Posted on May 31, 2009 by Atif
Filed Under Twitter

Twitter is a great place to make friends. But I must say that there may be many things that may irk your follower or friends. So this week I went more around twitter creating some friends and asking them what they hate. Also on the list I added things that I hate.
Auto Direct Messages
Ah! This is the most annoying thing. I just hate Auto Direct Messages. These are the messages sent automatically when you follow someone. I have asked a couple of friends of mine, regarding the most annoying thing on twitter and most of them said the same thing. Auto DMs. So this goes on top of the list.
cheth @atif089 Auto-Dm’s and a non-stop stream of Friendfeed/Twitter feed is annoying. #twitter #tweet #tweeple
syedbalkhi @atif089 Auto-DM reply piss me off alot, but tons of twitterfeed sent out all at once is really annoying as well.
mistygirlph@atif089 I guess it would be auto DMing asking if i want a million followers. I would appreciate it more just saying hello
Advertisements
This is most frustrating thing on twitter. I have seen a lot of people use some sort of PPC advertising on twitter like be-a-magpie and twtad. Apart from that most people put up affiliate links to clickbank products which is even more frustrating. Well for myself, I simply unfollow anyone in my friendlist whollows the above practises.
arnteriksen @atif089 Hehe – I guess it would be the ones that talk about gaining 30000 of followers in a few weeks.LOL #follow #twitter #tweet #tweeple
jayaugust@atif089 affiliate links, ‘marketing guru’s’ in general, spammers… All annoy the crap outta me.
Asking for ReTweets
Personally asking for ReTweeets may be a bit hindering for some people. Even I ask some people for ReTweets. But I advice you before asking a ReTweet make sure your content is good enough and make friends first. Simply adding people and asking for RTs wont work.
Direct Messages (DM)
This is more of my personal reason than a collective reason. I don’t link direct messages unless it is very personal. Rather I want people to send me an @reply which I usually keep checking.
naldzgraphics @atif089 those tweeple who DM me 3-4 times with the same tweets .
Self Promotion
Previously I only used to self promote my self on all social media websites like SU, Digg and Twitter. Trust me self promotion on social media is a big FAIL. The best practice would be make friends and submit each others content and help each others. This way you would get some good name and trust as well as traffic which is the key. This also includes boasting.
schallner @atif089 Brag about how many people they are unfollowing (every hour), and how many new followers they have to sort through.
0 Updates
Lol I have seen many account like this. These accounts tend to have a couple of thousands of followers but no updates. I don’t know why people follow them on twitter. Stay away from those people because I probably think they are out for some serious SPAM!
Spam
Even though twitter is very efficient enough in controlling SPAM but sometimes I get to see some people spamming the system like the most popular follow and unfollow.
Sumeet @atif089 Following and unfollowing after I follow back really gets on my nerves..
Asking for someone to click your ads
Well I won’t like to point out but I have seen some people asking you on twitter to click their Google Ads. personally it didn’t happened to me yet.
Bots / Feeds / FollowFridays etc.
People don’t like to see only feeds coming through your twitter account. Its a social media website and not a mashup site. Imporper #followfridays and protecting your updates.
DinOthman @atif089 too much twitterFeeds, nothing but quotes, #followfriday RTs and auto-DMs piss me off…
Nicksc @atif089 Excessive twitterfeed tweets annoy me the most. In fact, if I see more than two on the same page, I unfollow!
thomasmmm @atif089 impolite twitter snobbing
bexdeep @atif089 When u reciprocate to those who follow u, u find that ur request is pending. Thats quite irritating!. #twitter #tweet #tweeple
Update: Oh I mistook DinOthman’s tweet actually. He means he doesnt like followfrisday RTs i.e people simple RT each other’s followfridays, how funny is that.
Posted on May 30, 2009 by Atif
Filed Under PHP
Include Function
Including files bring more convenience in managing your code. As the name states, include is a function that will simply dump the contents of the included file into the current file. This is cool because some times you may need some code that should be available on all pages. Say a menu or a website header.
Including files saves a lot of efforts by writing your code multiple times on each page. Yeah I know you copy and paste but that requires some more efforts too comparatively. Suppose you suddenly add a page in menu. Then? You need to update all the files. Using include function we can just create one file and include it all over in other files. Hence editing only one file will modify code in your other files.
I hope I am clear enough in explaining this to you. Let us start with an example. Oh before that, the syntax for include function is
<?php include("filename.php"); ?>
So let us first create a file called menu.php The file content would be something like this.
<a href="#">Home</a> -
<a href="#">About Us</a> -
<a href="#">Contact Us</a> <br />
Now let us create an index.php file. The index.php file will contain some content as well as the menu file. So this is what the code will be in index.php file
<html>
<head>
<title>Testing Include File</title>
<head/>
<body>
<?php include("menu.php"); ?>
<p>This page is created to display the working of include function</p>
</body>
</html>
See the preview

Require Function
The require function is almost same as the include function. The only difference is in error handling. When the included file doesn’t exist, a warning is displayed and the execution is preceded.
Where as when a file included via require function does not exist, then a fatal error is displayed and the execution is halted at the same line. The syntax is
<?php require(“filename.php”); ?>
Posted on May 30, 2009 by Atif
Filed Under PHP
Hope you are well versed with conditional statements in PHP. This time we are going to see how to work with looping structures. Looping structure are basically those statements which are to be executed recursively until some condition is fulfilled.
PHP provides 3 types of looping structures
- While Loop
- Do While Loop
- For Loop
While Loop
While loops are the simplest form of looping structures in PHP. If you have already worked with C then these resemble same as the while loop in C. The basic syntax is
while (condition) {
… Statement to be executed
… Statement to be executed
}
The above code will check for the condition and keeps executing the statements inside the loop or block until the condition is returned false. Let us see this with an example.
<?php
// lets try to echo numbers 0 to 10
$a = 0;
while ($a <= 10) {
echo $a;
$a++;
}
?>
The above code is pretty self explanatory, we took a variable $a with value 0. The condition is to check if $a is equal or less then 10, Then print the value of a on the screen. Increment the value of a by 1. Check the condition again and so on until the value of a is 10. and when it exceeds 10, the loop is terminated.

Do While
The Do While loop is almost similar to while loop. The only thing it differs from a simple while loop is that here the statements are executed first and then the condition is checked. The syntax is
do {
… statement 1
… statement 2
}Â while (condition) ;
Confused? Let us see an example
<?php
$i = 0;
do {
echo ++$i;
} while ($i < 10);
?>
Here we will see that the number from 1 to 10 are printed even though our condition states that $i < 10. This is because when the value of $i is 9 the condition is true and since the statement gets printed first, the value of $i is printed 10 and then the loop gets terminated as per the condition. See the image and get an idea

For Loop
The for loop is the most complex loop in PHP. Behavior is same like the for loop in C. Let see the syntax before explaining it.
for (expr1; expr2; expr3) {
statement 1;
statement 2;
}
If you take a look, the expr1 is the expression that is executed at the starting of the loop for once. Then the statements are executed, and the condition is checked after each iteration. The condition is stated in expr2. The another thing that is added here is the expr3. The expr3 is a statement that will be executed after each iteration. Looks like I’m confusing you once again. Let’s see an example
<?php
for ($i = 0; $i < 10; $i++) {
echo $i;
}
?>
I hope the example makes you clear about the topic. Here expr1 is executed first and $i is initialized. The next thing is the echo line is executed. The iteration is over, now the condition is checked and if the condition is true then expr3 i.e $i++ is executed and it goes into the loop once again. The output

Whether you design an interface for your desktop application or you create a website layout, icons play one of the the most essential part of design. So I sat down the past hour to collect some resources for free icons. If I had sat down collected for one more hour I would have doubled this list, but I think its enough for today to bring you 75+ websites that includes galleries, icon packs and other collections of icons. I mean FREE ICONS !!
Galleries
Search Engines
If you are in a haste looking for some icon quickly then I bet these exlusive icon search engines may help you get search for any icon quickly over the web
Icon Sets
Resources from other websites/blogs
Posted on May 29, 2009 by irfan07
Filed Under PHP
This is one of the most important tutorial for php programming is dealing with Conditional Statements.
Let me first illustrate how does this work. For instance whenever you need to check some conditions like whether the value of ‘a’ is greater than ‘b’ or vice versa you will be in need to use statements as if, if else, elseif, switch each have their own specific use and definite purpose to be fulfilled.
$a = 10; $b = 5;
if ($a > $b)
{
echo " A is Greater ";
//The controller enters this block only if true
// which in turn executes all the statements in this block
}
We got 4 conditional statements in PHP and most of other programming languages to have the same operators even the syntax is alike few programming languages might differ but the working is same.
Let me give you the syntax for them
1. if
if(Condition)
{
}
Example
if ($passwd==$myvalue)
{
echo "Password correct ";
}
2. if else
if(Condition)
{
}
else
{
}
Example
if ($passwd==$value)
{
echo " Password correct";
}
else
{
echo " Password Incorrect";
}
3.elseif
if(Condition)
{
}
else if (Condition)
{
}
else if(Condition)
{
}
else
{
}
Example
if ($a>$b AND $a>$c)
{
echo "A is Greater";
}
else if ($b>$a && $b>$c)
{
echo "B is Greater";
}
else if ($c>$a && $c>$b)
{
echo "C is Greater";
}
else
{
echo " All Values are equal";
}
4. Switch
switch( expression )
{
case expression:
case expression:
case expression:
default:
}
Example
switch (add)
{
case add: $sum=$a+$b;
echo $sum;
case minus: $sub=$a-$b;
echo $sub;
default: echo " Enter valid options like add or minus";
}
By these example I think you probably got the idea how to use and when to use such type of conditional statements, well effective utilization of these statements can solve any many logical problems and help create better algorithms.
Posted on May 26, 2009 by Atif
Filed Under Off Topic
Update : I got a 20/20 vision after 10 days, Had poor vision during nights for 4-6 weeks. And now I have a great vision
First off I would like to apologize all my readers for suddenly holding on posting on this blog. I remember the last time I was writing a 7 day tutorial series and suddenly stopping posting.
Well I would like to let you know that I had undergone LASEK on both of my eyes last Wednesday. Thank god though the surgery went absolutely fine but as told by the doctor I have a blurry vision post op. I don’t know how long it will remain (hopefully 2-3 days more) but right now my near vision is very clumsy to use a computer specially reading and writing. Everything all is fine and the best part is that I have a 6/6 vision now.
Once again I would like to apologize to all my readers personally and please stay tuned, as soon as my vision is back to normal I would be back on Mygeekpal and would be spending most of my time online.
Atif