Mamado Inside

15 March 2007

Adding Social networks buttons to wordpress.com posts

Filed under: autohotkey, development, wordpress — mhussein @ 5:37 pm

I wanted to add social networking buttons (del.icio.us, reddit, digg, …) like:
add to del.icio.us Digg it Stumble It! Add to Blinkslistadd to furladd to ma.gnoliaadd to simpyseed the vineTailRank
to the end of every post, There is no way to do it automatically as wordpress.com doesn’t support modifying the post template.

I found an ecellent post about this at sunburntkamel as I am very lazy (as most software developers) I have created a simple autohotkey script to do it for me.

The script prompts you for the url and the title then reads a simple template file adapted from sunburntkamel’s, and add the html code to the Clipboard ready for pasting.

you can download the script at socialsignature.zip This is a very simple script (I spent less than 10 minutes in writing it, most of that time writing comments, yes, I do write comments :-) whenever I can of course.)

Please tell me if you know a better way, or if you have problems or comments on the scripts.
[link]

add to del.icio.us Digg it Stumble It! Add to Blinkslist add to furl add to ma.gnolia add to simpy seed the vine TailRank

Top 5 Things That Should Be Taught In Every School

Filed under: education, productivity — mhussein @ 3:06 pm

It is strange that here in Egypt we regard the American education system as way more modern than the Egyptian one, though you can find on the web articles about the American system describing it as:

the American education system is in sore need of an upgrade. The world is changing at such a rapid pace and it’s my strong opinion that there should be more classes dedicated to helping students prepare and cope with the real world once they graduate.

If you look at this generation of students, you’ll find that most are “shell shocked” once they graduate because they had little or no preparation for what was to come.

High school mostly teaches you to memorize information and to regurgitate it back to your teacher, only to completely erase the information from your mind the moment you walk out after taking the test.

When you go on to college, you do a bit of the same things, but you also learn to think analytically, critically, and to broaden your mind so to speak, but even people who graduate from college will learn lessons from the real world the hard way as well. The sad part is all of this could’ve been prevented with some proper education beforehand.

If someone has told me this omitting the word “American” in the first sentence, I will -at once- think that he is talking about the Egyptian system, but it seems that this problem is universal, a quick google results in this, this, this , this, … Of course Egypt has its mention as well.

WikiPedia has a nice article on Education Reforms

The author of the article mentions Top 5 things that should be taught in every school.

#1. Personal Finance
#2. Communicating Effectively
#3. Social Skills
#4. Sales
#5: Time Management

I do think that if you didn’t learn those in school (who has :-) ) you should start to do so NOW.

In 43folders (where I found this link), you can find great responses in the comments.

[link] [via]
add to del.icio.usDigg itStumble It!Add to Blinkslistadd to furladd to ma.gnoliaadd to simpyseed the vineTailRank

Outlook2003 : warning for emails without subject

Filed under: outlook, productivity — mhussein @ 11:33 am

How many times have you sent an email without a subject? yes You! A quick search in my emails tells me that I have been guilty of doing this 6 times this year alone :-(

If you are like me (and you use Outlook like me) you will definitely benefit from my friend’s latest post.

He has been plagued by the same problem for ages :-) but unlike me he decided to do something about, he did his research and found that Outlook MVP Sue Mosher had already wrote code to fix this issue.

The solution is a simple macro that you put in Outlook to warn you and stop the sending process if there is no subject.

I tried it and it worked perfectly, I had a problem when I copied the code from Abdelhalim’s post because of the double quotes, so I recopied the code here and fixed this issue, if you get errors when you paste this code in VB, delete all double quotes and rewrite them.

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMessage As String
Dim lngRes As Long
If Item.Subject = “” Then
Cancel = True
strMessage = “Please fill in the subject before sending.”
MsgBox strMessage, _
vbExclamation + vbSystemModal, “Missing Subject”
Item.Display
End If
End Sub

Check the complete instructions and warning on the original post.

[link] [via]
add to del.icio.usDigg itStumble It!Add to Blinkslistadd to furladd to ma.gnoliaadd to simpyseed the vineTailRank

Blog at WordPress.com.