Random enough to be declared weird.

Archive for the ‘How To’ Category

Broken Animated gif, Firefox and Web-Developer toolbar

4 Comments

I wrote earlier on this topic and I just found out a bit more, so I thought if I just update the old post people won’t find out the new “findings” (it’s on the previous pages now) so I thought I will write a new post and here it is

This post applies to you IF:
1) You can’t see animated gif’s animations, that is they are broken
2) You are using Firefox
3) You have already tried the fix mentioned here
4) You have “web-developers” toolbar/plugin installed

I found out:
Web-developers has many many many options, many many sub-menus, one of the sub-menu’s is called “Images” which hosts all options related with images So one of the options in this menu is called “Disable Images”, which has sub-options like “All images”, “External Site Images”, and “Image Animations” well that’s our answer

See if “Image Animations” is checked, if it is, uncheck it and then check if your animations are working now 🙂

I will post more fixes as I found them 🙂 let me know if this helps anyone

-Salman

Animated gif broken in Firefox?

6 Comments

Hi,

Update: IF you are using Web-Developer toolbar, read this too

I was having this issue from a while now, none of the animated gif’s on any page would work in Firefox but they worked fine in IE, Safari etc It was not bothering me much but AJAX applications use animated gif’s to give instant feedback to users and since I was using AJAX in recent projects it was hard to test usability without seeing the animated gif

So I searched for it on google and found a fix on 008000;">mozillaZine Forums and it works! so if anyone out there is having the same issue, here is the fix:

  1. Type 800000;">about:config in the address bar
  2. Search (FILTER) for “800000;">imageanimation_mode
  3. If you have the same error you will see it set to “ff0000;">none” Change this to the default value of “008000;">normal

BTW I have no clue how I could have disabled this setting I thought I might have disabled it while trying to fix firefox memory issue but that’s not the case

Anyways it’s fixed, so have fun

-Salman

How to reset wordpress admin password

10 Comments

I am sure there are many ways to do this, but I am going to tell you the one I use, first let me tell you why I suddenly thought about writing this, if you don’t want to find that out please click here (or scroll down) to go directly to read my own preferred way of resetting wordpress admin password by using a simple PHP script

I found this PakBlogger.Com post on How To Reset WordPress Admin Password Via phpMyAdmin It was shared by Awais Naseer of The Gadgets — one of the very few people who I found interesting enough to stalk using my PC & twitter account I thought I should post my comments there but then I realized I could use my own blog to post a correction Why? Oh well for obvious reasons that you all have guessed by now 😛

It’s a very good post, but there is one thing that can be changed to make it even more simple (it reduces one complete step AND a tab) okay let me quote that part first:

Now open a new tab in your browser and go to MD5 hash and write a password and encrypt that to MD5 hash

Step 5: Now copy this encrypted form and in .phpMyAdmin check the box beside your username and click on the pencil icon to edit the entry and replace the password with newly generated md5hash password that you copied

Click on Go to save the changes and you new password is set

Okay now please check the two images I have posted below (click to magnify):
image

image

If you follow that step you won’t have to go to any other site to encrypt your password There is no problem with using 3rd party site for that but why use something when you really don’t have too?

My Preferred Way to Reset WP Admin Password:

Well this was for people who have access to .phpMyAdmin, what if you don’t have access to .phpMyAdmin? What if your access is limited to just FTP? I had that problem recently when I was trying to setup a blog at DaCoolSiteCom, a site that I created to raise funds for my awareness campaign “Thalassemia Free Pakistan

Well here is the solution for them:

Step 1: (Screenshot)
Download this file “WordPress: Reset Admin Password Script“, Extract & Upload it in your WordPress directory (it must share the same folder with wp-config.php)

Step 2): (Screenshot)
Open it in your browser (ex: http://yoursitecom/wordpress/reset_pass.php)

Step 3): (Screenshot)
Click on your Username, enter a new password and click submit, your password is updated You can login with your new password now

Step 4): (Screenshot)
For security reasons it is advised to either delete OR rename reset_pass.php on your server

It can’t get simpler than that, no?
-Salman

I want to make money from home

2 Comments

Many people ask me about how do I get work, where do I find work, and how can they earn from home, so I will try to answer them in this post, First let me tell you about myself:

I used to find/get work from RAC (RentaCoder.Com), I did my first project on RAC back in September 2005, I got only one dollar from that project (I actually submitted 4$ as the bid amount, but RAC deducted 3$ of their ‘fees’)

Well, after that project I did some more tiny project for 10$, 15$, 20$, once I had good rankings and testimonials I started submitting bids on bigger projects, then I got projects for as low as 90$ and as high as 600$

In September 2006, Two of my frequent clients on RAC contacted me outside RAC and we started working outside RAC Since then I have only done 4-6 projects on RAC You can click here to see my RAC profile

Right now I have a permanent job at DirectorsAdvantage one of the clients I found & worked with on RAC I was working with him as a free-lancer since July 2006, and as a full-time employee since October 2008

Oh I forgot to say that I am a PHP/mySQL Web-Developer from Karachi, Pakistan

So that was about me, now for you guys I don’t know many ways to earn from home, or even if I do know some I am not sure if they work or how they work So I am going to write about the things that I have tried myself and have succeeded

  1. Rent a Coder, the one I talked above, this was the most successful one I will write a detailed post about who can use RAC and how to use RAC next (after this one I mean)
  2. Blogging, I had very little luck with this, but then again I have not tried sincerely enough ;d (Read Light Within blog for more info)
  3. Entertainment Website, Maybe the most difficult, I have not earned myself much from entertainment websites But I know people who are earning from them I have worked with ApniISP so I know the basics You just have to give the freshest hottest content before everyone else Keep updated with the news, something’s happening like Prime Minister Gilani’s Speech, Upload it first on your site, and share it quickly using Twitter, Facebook, DIGG etc, Some cool new song just got released? You already have the video? oh wow UPLOAD

I have only tried these three, but seriously speaking if you have some skills that can be used on projects available at RAC, you should go with that it’s way easier to earn by doing what you already know, and then again Blogs OR Websites can be created and kept updated in your leisure time You can give it 2 to 3 hours (or even more) daily no?

Please stay tuned to find out what you need to know to work with RentACoder, and I will also write about a few things about RAC that I learned ‘the hard way’ (by losing real money I mean)

Comments & Feedback will be highly appreciated and will also motivate me to write on this subject more

-Salman

(Please note: I am not affiliated with Rent A Coder, I have used their serviecs as a coder only, and I will not be getting any benefit by sending you guys to Rent A Coder except for maybe some duayen from people who will find it very useful and fruitful)

Google Adsense is weird

2 Comments

Okay, so a friend of mine submitted Google Adsense application few days ago It got rejected and here was the email he received from Google:

000000; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">333333; font-family: arial; font-size: 13px;">Hello Fahad,

Thank you for your interest in Google ffffcc;">AdSense Unfortunately, after
reviewing your application, we’re unable to accept you into Google
ffffcc;">AdSense at this time

We did not approve your application for the reasons listed below

Issues:

– Account information incorrect or not provided

———————

Further detail:

Incomplete name provided: We’ve found that you have provided only one
name in your application In the ‘Payee Name’ field of the application,
individual accounts must provide a full first and last name, and
business accounts are required to supply a company name

———————

For a complete list of ffffcc;">AdSense criteria, please visit:

365452;" href="https://www.google.com/adsense/policies?hl=en_US" target="_blank">https://www.google.com/ffffcc;">adsense/policies?hl=en_US

365452;" href="https://www.google.com/adsense/localized-terms?rc=PK&ce=1&hl=en_US" target="_blank">https://www.google.com/ffffcc;">adsense/localized-terms?rc=PK&ce=1&hl=en_US

To update and resubmit your application, please visit
365452;" href="https://www.google.com/adsense?hl=en_US" target="_blank">https://www.google.com/ffffcc;">adsense?hl=en_US and sign in using the email
address and password you submitted with your application Our
specialists will review your account for compliance with our program
policies, so please make sure to resolve all of the issues listed above
before resubmitting

Please contact us at 365452;" href="mailto:adsense-support@google.com">ffffcc;">adsense-support@google.com if you have any
questions

Sincerely,

The Google ffffcc;">AdSense Team

Okay so he didn’t entered his full name correctly, cool No problem let’s fill it again it says:

“To update and resubmit your application, please visit 365452;" href="https://www.google.com/adsense?hl=en_US" target="_blank">https://www.google.com/ffffcc;">adsense?hl=en_US and sign in using the email address and password you submitted with your application”

Cool, we open https://google.com/adsense and try to login oh oh surprise surprise:

image

It says:

Account Not Active

An AdSense account does not exist for this login, as it is associated with an unapproved application For more information about your application, please review the message we sent to the email address you provided with your application

Return to AdSense home

So what to do now? oh yes the wonderful support pages, take a look at what it says:

image

This helpful page is located here: https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=81904&sourceid=asos&subid=ww-ww-em-hc&medium=em

Well, then I tried there forums, at least 9 people have said in these two threads that they are having the same problem:

Well I then decided to reply to the email id they had provided in the original email from them:

Subject: I want to re-submit, but can’t login
Hi,

You said that I should re-submit my application with full name,
I am trying to do that but adsense page says this:

Account Not Active
An AdSense account does not exist for this login, as it is associated with an unapproved application For more information about your application, please review the message we sent to the email address you provided with your application

I have attached a screenshot, please help

Muhammad Fahad

Now I am hoping that I will get a reply soon and will me out of my misery
And I did get a reply almost instantly, it says:

This message was sent from a notification-only email address that does not
accept incoming email Please do not reply to this message
————–

Hello,

Thanks for contacting AdSense Support

We noticed that you may have contacted us without first visiting our Help
Center: https://www.google.com/adsense/support?sourceid=nhcar To receive
faster responses to your questions, we encourage you to visit our help
resources — they’re full of instant, reliable answers to many common
questions and issues

I can’t log in to my account
https://www.google.com/adsense/support/bin/topicpy?topic=8430&sourceid=tx&subid=nhcar&medium=em

I can’t see ads on my website
https://www.google.com/adsense/support/bin/topicpy?topic=8439&sourceid=tx&subid=nhcar&medium=em

I haven’t received a PIN or payment yet
https://www.google.com/adsense/support/bin/topicpy?topic=136&sourceid=tx&subid=nhcar&medium=em

My application was disapproved
https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=81904&sourceid=asos&subid=ww-ww-em-hc&medium=em
Or, get application approval tips at
https://www.google.com/adsense/support/bin/answer.py?answer=75109&sourceid=asos&subid=ww-ww-em-hc&medium=em

If your issue isn’t covered in the links above, we suggest you search or
browse our online help resources listed below:

– AdSense Help Center: Our most comprehensive source for answers to common
questions
https://www.google.com/adsense/support?sourceid=asos&subid=ww-ww-em-hc&medium=em

– AdSense Help Forum: Share questions and knowledge with other AdSense
publishers AdSense team representatives also contribute to discussions
and provide help
http://groups.google.com/group/adsense-help?utm_source=asos&utm_campaign=ww-ww-em-hc&utm_medium=em

– Inside AdSense blog: Learn the latest AdSense news, tips, and updates —
browse by label, search, or subscribe to receive updates via email or
feed
http://adsense.blogspot.com?utm_source=asos&utm_campaign=ww-ww-em-hc&utm_medium=em

Sincerely,

The Google AdSense Team

So let’s see where we are:
1) We can’t login
2) There is no help available in their “Most comprehensive source for answers to common questions”
3) No replies on AdSense Help Forum

Conclusion:
We are stuck

Any one who knows what should we do now, please come forward to the mic on the left side, state your name, city & designation, then give the solution Thank you

How to fix Firefox 3 Memory Leak problem

19 Comments

Recently, I have very big problem with my Firefox browser Few minutes after starting of Firefox application, my Firefox become too slow for surfing, all open applications freeze for two or three seconds after every my click I noticed that Firefoxexe take up a big part of my computer memory After reading several forums on the net, I find how to fix this “Firefox memory leak” problem

Just follow these simple steps to get your Firefox memory usage under control The solution was in ”about:config” Firefox hidden configuration options

  1. Get the main configuration screen by putting “about:config” in the browser’s address bar
  2. Right click on the page and choose New then Integer and create an integer called “browsercachememorycapacity” Set it to a low number (I use 16384 – that means 15MB) This controls how many kilobytes of memory are used for the browser’s cache
  3. In the Filter of “about:config” page (top of the page) put “browsercachediskcapacity” Set “browsercachediskcapacity” (right click – Modify) to between 5000 or 15000 (I use 15000) For example: if you have 128MB to 512M use 5000, if you have 512BM to 1GB of RAM use 15000 This controls how many kilobytes of memory are used for the browser’s cache
  4. Configure Firefox to swap memory to disk when minimized In the Filter of “about:config” page (top of the page) put “configtrim_on_minimize”, Right click on the page and choose New then Boolean and create an boolean called “configtrim_on_minimize” Set it to true This mean – when you minimize the firefox window it will free up memory
  5. In the Filter of “about:config” page (top of the page) put “networkprefetch-next” Set “networkprefetch-next” to false Network link prefetch will download all pages with the rel=”prefetch” tag, with false you avoid that downloading
  6. In the Filter of “about:config” page (top of the page) put “browsersessionhistorymax_total_viewers” Set it to low number I set it to 6 This controls how many pages of history are kept in the back/forward buttons

Restart Firefox and that’s it! Now, your Firefox and your computer will be much faster and you are ready for faster surfing Enjoy!

Source : 000000;">Detector 75349A;">PRO

How to write in Urdu

2 Comments

Note: I am not sure if this is the best way to write in urdu, but I am using it since few years and I am quite comfortable with it

Step by Step guide to write in Urdu (For Windows XP & Windows Vista, might work in other versions of windows as well):

1) Download Phonetic Keyboard Layout from CrulpORG:
Info: http://crulp.org/software/localization/keyboards/CRULPphonetickbv11.html
Download: http://crulp.org/Downloads/localization/keyboards/CRULP_Urdu_Phonetic_kb_v11.zip

2) Installation Procedure [Copied from CrulpORG page]
Unzip the downloaded file and double click the setupexe to install a keyboard layout

To add/remove Keyboard Layouts for Windows XP

  • Double click “Regional and Language options” icon
  • Press “Language” tab
  • Press “Detail” button
  • Press “Add” button
    • Select “Input Language: “Urdu”, and Keyboard layout/IME : ”CRULP Urdu Phonetic v11″
  • To remove select a layout and press “Remove” button

To add/remove Keyboard Layouts for Windows Vista

  • Double click “Regional and Language options” icon
  • Press “Keyboard and Languages” tab
  • Press “Change keyboards…” button
  • Press “Add” button
    • Select “Input Language: “Urdu”, and Keyboard: ”CRULP Urdu Phonetic v11″
  • To remove select a layout and press “Remove” button

After installing and adding keyboard to Windows, you can either:

1) Use Language Bar to switch between English and Urdu input
To add language bar, right click on Task bar -> Toolbars -> Language Bar
Now you can just click on EN (or UR) icons to switch language

2) Use shortcut keys to switch between English and Urdu input
To add shortcut keys:
2a) Open Control Panel
2b) Open “Regional and Languages Options”
2c) Click on “Languages” tab
2d) Click on “Details”
2e) Click on “Key Settings”
2f) Use “Change key sequence” button to select the key sequence you want to use to switch between available languages (I am using Alt+Shift)

اِس کے بعد آپ اردو میں لکھہ سکتے ہیں :)۔

اردو میں لکھتے وقت آپ اپنا فانٹ سائز تھوڑا بڑا رکھیں تاکہ پڑھنے میں آسانی ہو۔

-Salman

How to market your blog

4 Comments

I am not an expert on this it’s quite obvious by looking at my own blogs stats but here are some tid-bits I have learned and I know work (I just don’t have enough time to do these myself;d) so I think I will share them here, they might come useful to you or some other experts will correct/add/contribute so it will eventually help me as well hmm

Oh well here goes:

1) Look for forums that have sections like “Show off your website” (or blog in our case), you can submit your site there and members there will be able to see that post, it’s not counted as spam and people check those sections quite regularly

And participate generally in discussions as well, don’t feel shy to share things that you know Just let the knowledge out

2) In the beginning register for all aggregators, like Bloggerspk, TeaBreak, PakBlogging etc They bring good and very diverse traffic, but if you already have a good user base then aggregators will most probably affect you negatively [more: http://bloggers.pk/forum/discussion/12/blog-aggregators-affecting-search-engines/]

3) Submit to multiple (even very tiny) search engines using tools like addmecom – they will add your links to search engines that you didn’t even know about

4) If you are at facebook, share everything you write on your blog with Facebook’s share link utility, you can also import RSS feeds etc There are more new stuff like Facebook connect which you can use to allow facebook users to post comments with there facebook ID (I am using that at: http://blog.skdev.net , original: http://www.sociable.es/facebook-connect/ )

5) Use trackbacks, add in your post links to relevant and high ranking websites, most sites with blogs have auto trackbacks enabled so your linking them means your link will be visible in there post as well (in trackbacks I mean)

6) Participate in other’s blogs, Comments on posts, pages etc, especially where some relevant to your blog debate is happening like if you write about Politics you can participate in almost all blogs that talk about current situations

7) Submit to blog directories (search for “blog directories” on google)

8) Use sitemap’s and submit them to google (for wordpress: http://www.arnebrachhold.de/projects/wordpress-plugins/google-xml-sitemaps-generator/)

9) Share your work on others sites with a link back to your site

10) Socialize with other bloggers, tags, references, comments on each other’s blogs etc etc

11) Use sites like MyBlogLog, Yahoo! Answers, Squidoo, Myspace, Digg, Reddit, Stumbleupon, Delicious

12) and the most important, KEEP WRITING, don’t get dishearten if you are not getting enough traffic Just keep writing and keep working on links, backlinks, trackbacks, sharing, socializing public/traffic will eventually come 🙂 Just be consistent

-Salman