sep sep sep sep

IE6 Is Webmaster’s Fault, Just Stop Supporting it

June 27th, 2012

Who’s fault is IE6? Many, well most, would say that it’s M$. They say things like “If they would just add IE7 to XP now…”, or “They just bundled it with the OS, but if they just…”, or my all time favorite “Well, unfortunately is has a X% of market share, so…”

But truth is. IE6 is still alive because of people who support it by default like the examples above. Developers who make sure their website looks okay in IE6

It’s so fucking simple. If no one supports it, people upgrade. Does any major retailer STILL sell N64’s? Of course not. Anyone still selling a PS1s? Fuck no they aren’t. If they stop selling them the game makers are able to make even better games and they make more money.

I need to use high amount of javascript codes for one of my projects, It is a Web Application, without javascript, it will be just a html text page after all and IE6 render scripts like I am on a Pentium one computer and finally it will go unresponsive or get crashed.

As a developer, I am sure you had bad days with IE6 too. I mean Gmail team got so frustrated that made a whole new browser, Google Chrome! ( I now it came from safari but still! )

To-date, us conscientious web professionals have gathered and used a toolbox full of workarounds (better known as hacks!) that help smooth out the wrinkles. But supporting this beast has only masked the issues and reduced the incentive for those to upgrade. It’s like putting a plastic sheet on your child’s bed instead of telling him drinking before bedtime might not be a good idea. It’s like painting over cracks in a wall instead of getting it fixed. It’s like hiring an SEO instead of just building your site the right way from the start!

So I’ve decided that those backwards enough to not get with the times are not those I want to impress, or even visit this blog. I’ve decided to support the early adopters, the innovators and those in the know. I’ve decided to not worry about how badly this site will look in IE6. And most importantly, I’ve decided to be a lazy bastard and not bother with the hacks! Who’s with me?

Please use following code/project to warn your visitors about their old browser: http://code.google.com/p/jquery-old-browser-warning/

Posted in Tips | 1 Comment

 

Easy Youtube Video Bracklets Plugin for WordPress

May 29th, 2012

This plugin allow you to insert youtube videos on your standalone wordpress page and posts very easy.
All you have to do is to insert your videos like this:
[youtube youtubeurl] where youtubeurl is address of video, for example: [youtube http://www.youtube.com/watch?v=ggyXf2f6MNU] will show Elvis presley’s video on your post where ever you place that piece of code.

Note that this is identical to what is already on wordpress.com blogs, so If you plan to transfer your wordpress.com hosted blog to your standalone wordpress host, this plugin is a must-have.

Here is download link for this plugin, just upload it in plugin section of your wordpress ( if you use ftp to upload, you need to extract it first, but if you upload using your wordpress dashboard, wordpress will do everything )

Download

Enjoy video sharing :)

Posted in Tips, wordpress | No Comments

 

Elvis Presley’s Top Quotes

May 29th, 2012

A live concert to me is exciting because of all the electricity that is generated in the crowd and on stage. It’s my favorite part of the business, live concerts.

Adversity is sometimes hard upon a man; but for one man who can stand prosperity, there are a hundred that will stand adversity.

From the time I was a kid, I always knew something was going to happen to me. Didn’t know exactly what.

I don’t know anything about music. In my line you don’t have to.

I don’t think I’m bad for people. If I did think I was bad for people, I would go back to driving a truck, and I really mean this.

I happened to come along in the music business when there was no trend.

I have no use for bodyguards, but I have very specific use for two highly trained certified public accountants.

I hope I didn’t bore you too much with my life story.

I never expected to be anybody important.

I sure lost my musical direction in Hollywood. My songs were the same conveyer belt mass production, just like most of my movies were.

I think I have something tonight that’s not quite correct for evening wear. Blue suede shoes.

I was an only child, and Mother was always right with me all my life. I used to get very angry at her when I was growing up-it’s a natural thing.

I was an overnight sensation.

I was training to be an electrician. I suppose I got wired the wrong way round somewhere along the line.

I’d just like to be treated like a regular customer.

I’ll never feel comfortable taking a strong drink, and I’ll never feel easy smoking a cigarette. I just don’t think those things are right for me.

I’ll never make it, it will never happen, because they’re never going to hear me ’cause they’re screaming all the time.

I’ll stay in Memphis.

I’m not trying to be sexy. It’s just my way of expressing myself when I move around.

I’m so nervous. I’ve always been nervous, ever since I was a kid.

I’m strictly for Stevenson. I don’t dig the intellectual bit, but I’m telling you, man, he knows the most.

I’m trying to keep a level head. You have to be careful out in the world. It’s so easy to get turned.

I’ve been getting some bad publicity – but you got to expect that.

I’ve never written a song in my life. It’s all a big hoax.

I’ve tried to lead a straight, clean life, not set any kind of a bad example.

It’s human nature to gripe, but I’m going ahead and doing the best I can.

Just because I managed to do a little something, I don’t want anyone back home to think I got the big head.

Later on they send me to Hollywood. To make movies. It was all new to me. I was only 21 years old.

Man, I really like Vegas.

Man, that record came out and was real big in Memphis. They started playing it, and it got real big. Don’t know why-the lyrics had no meaning.

More than anything else, I want the folks back at home to think right of me.

My movements, ma’am, are all leg movements. I don’t do nothing with my body.

People ask me where I got my singing style. I didn’t copy my style from anybody.

Rhythm is something you either have or don’t have, but when you have it, you have it all over.

Rock and roll music, if you like it, if you feel it, you can’t help but move to it. That’s what happens to me. I can’t help it.’

Since the beginning, it was just the same. The only difference, the crowds are bigger now.

That’s why I hate to get started in these jam sessions. I’m always the last one to leave.

The army teaches boys to think like men.

The closest I ever came to getting married was just before I started singing. In fact, my first record saved my neck.

The colored folks been singing it and playing it just like I’m doin’ now, man, for more years than I know. I got it from them.

The image is one thing and the human being is another. It’s very hard to live up to an image, put it that way.

The Lord can give, and the Lord can take away. I might be herding sheep next year.

The next thing I knew, I was out of the service and making movies again. My first picture was called, GI Blues. I thought I was still in the army.

There are too many people that depend on me. I’m too obligated. I’m in too far to get out.

They put me on television. And the whole thing broke loose. It was wild, I tell ya for sure.

Those movies sure got me into a rut.

Those people in New York are not gonna change me none.

Too much TV hurts movies.

Truth is like the sun. You can shut it out for a time, but it ain’t goin’ away.

Until we meet again, may God bless you as he has blessed me.

Whatever I will become will be what God has chosen for me.

When I get married, it’ll be no secret.

When I got outta High School I was driving a truck. I was just a poor boy from Memphis, Memphis.

When I was a boy, I always saw myself as a hero in comic books and in movies. I grew up believing this dream.

Posted in Uncategorized | No Comments

 

How to fix bluetooth mouse lag in middle of work?

May 27th, 2012

If you are one of the users of bluetooth mouses or keyboards, you might experienced this problem as well. At first, I thought my mouse have problem, but then realized it is something to do with windows power management feature!

Problem is that sometimes during your work usually when you put your mouse idle for few seconds or minutes, mouse will disconnect from your PC or Laptop silently.
Then, when you try to use mouse again, you’ll see it is not working, and worst of all, sometimes you should go through lot of steps such as turning mouse on/off, disabling/enabling bluetooth on pc, pair it again and … to make it work again and all of this is because of windows power management feature that think you no longer need bluetooth and it will cut it off to save power!

Here is very easy steps to stop windows from doing this:

Click on Start menu and in search bar, type “Device manager” without quotes.

According to image below, find your bluetooth adapter ( not your device, you must find your adapter )

In my case, it is Intel Centrino Bluetooth adapter, yours can be different.

Double click on it and goto Power management Tab ( If you don’t see power management tab, probably it is wrong device )

and uncheck first checkbox, then press OK.

You are done, enjoy using your bluetooth mouse without that annoying problem.

Posted in Tips | No Comments

 

RemoveP – Avoid adding unwanted P (paragraph) tags for individual pages and posts in wordpress

November 30th, 2011

There’s nothing more frustrating than embedding images or flash video players into a post and then WordPress automatically adds p html tag that screws up the embed code. This plugin disable this behavior of wordpress and remove the filter that adds paragraph tags automatically in posts.

Use this plugin if you have problem with wordpress adding extra white space between objects ( or texts )

You are allowed to enable this feature individualy for each post or page.

It also allow you to replace p tags with double <br> tags.

This plugin make use of wordpress wpautop and disable this filter and also have ability to add <br> tags instead of <p> tags.

 

Download

Enjoy!

Posted in projects, Tips, wordpress | No Comments

 

Fix Windows 7 Shortcuts ( LNK Fix )

November 19th, 2011

If you managed to damage shortcuts in your windows, You can use this file to fix shortcuts.

It is possible that all of your shortcuts, open same program ( be windows media player, internet explorer or notepad ).

Using this fix, It will revert back to windows default.

How to Fix?

1.Please download fix file here

2. Run run.bat file.

3. Enjoy!

run.bat file will run a command to restore lnkfile functions, and reg file do same, but using registry. In fact, it is Two solution to same problem and It force your windows to work as it should.

 

 

 

 

 

 

 

Posted in Tips | 1 Comment

 

Boost your Productivity and avoid procrastinating using this Windows Gadget

November 17th, 2011

Objective of this gadget is very simple. It show a floating quote on your desktop.

It randomly show a Time Management quote every 5 minutes.

You can change Sticky Text above and color of texts.

I tried to upload this gadget in Windows Live Gadget Gallery, but It came out as Microsoft has taken down whole gallery!

Please click here to use/download this gadget.

Posted in projects, Tips | No Comments

 

What is the difference of RES, VIRT and SHR in top output

August 14th, 2011

VIRT stands for the virtual size of a process, which is the sum of memory it is actually using, memory it has mapped into itself (for instance the video card’s RAM for the X server), files on disk that have been mapped into it (most notably shared libraries), and memory shared with other processes. VIRT represents how much memory the program is able to access at the present moment.

RES stands for the resident size, which is an accurate representation of how much actual physical memory a process is consuming. (This also corresponds directly to the %MEM column) This will virtually always be less than the VIRT size, since most programs depend on the C or other library.

SHR indicates how much of the VIRT size is actually sharable memory or libraries. In the case of libraries, it does not necessarily mean that the entire library is resident. For example, if a program only uses a few functions in a library, the whole library is mapped and will be counted in VIRT and SHR, but only the parts of the library file containing the functions being used will actually be loaded in and be counted under RES.

Posted in Tips | No Comments

 

PHP pecl Troubleshooting

August 13th, 2011

Error Message:

/usr/bin/phpize: /tmp/tmpjMvBZg/package.x.x/build/shtool: /bin/sh: bad interpreter: Permission denied

If you receive the above error message while installing a package using “pecl”, it meant that the /tmp partition is mounted in “noexec” mode and that you do not have permissions to execute anything under /tmp partition.

Execute the “mount” command and you will see something like:

root@server [~]# mount
tmpfs on /tmp type ext3 (rw,noexec,nosuid)

To mount the /tmp partition in rw mode, execute:

root@server [~]# mount -o remount rw /tmp

Now, you can execute the “pecl” command to install the package you like. Once done, you can remount /tmp with noexec mode again:

root@server [~]# mount -o remount rw,noexec,nosuid /tmp

Error Message:

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script. or Cannot find autoheader. Please check your autoconf installation and the $PHP_AUTOHEADER environment variable is set correctly and then rerun this script.

If you receive the above error message while installing a package using “pecl”, it meant that the pecl is not configured correctly in your linux box. to configure correct autoconf and autoheader, find  autoconf or autoheader file and apply following command:
    root@server [~]# export PHP_AUTOCONF=/usr/bin/autoconf
    root@server [~]# export PHP_AUTOHEADER=/usr/bin/autoheader

Enjoy installing php modules via “pecl install modulename” now!

 

root@server [~]# export PHP_AUTOHEADER=/usr/bin/autoheader

Posted in Tips | No Comments

 

How add CSS3 Support to Internet Explorer (6,7,8,9)?

July 24th, 2011

Microsoft has been published Internet Explorer 9 and web designer face more trouble than ever.

I am a web designer from CSS1 era, and now I have seen basic CSS3 features ( Gradient, Box Shadow, Text-Shadow, Round Borders ).

I am amazed by amount of time we can save by using CSS3. for example, it is possible to create iPhone like button using just a few line of codes ( IE don’t support it! ). No more photoshop backgrounds and fixed width x height for buttons, menues and backgrounds.

CSS3 is supported on all major browsers ( Google Chrome, Firefox, Safari, Opera ) but partial support Internet Explorer 9. Should we wait for Internet Explorer 9.5 ?

No, There is already fixes that will add basic css3 support to IE.

Internet Explorer supports rounded borders ( border-radius ), but no box-shadow, Text-shadow etc.

http://css3pie.com/ ( Click on link to see demo )
Nice and Sweet!

http://fetchak.com/ie-css3/
Another project attempting emulate css3 for IE

Enjoy using CSS3 to Save your Time and make great looking websites.

Posted in Tips | No Comments