Have you been embedding CSS Styles into PHP files just for the sake of making the styles dynamic?
Ever wished to add PHP codes in CSS files itself.
Here is a simple trick which will do the magic.
Create a .htaccess file in your project directory preferably inside the directory where CSS files are stored. Open .htaccess file and add following line
AddType application/x-httpd-php .css
Now you can include php codes in CSS files. Here is a small example
I saw an article on recovering lost ubuntu after installing windows. I was pretty confident and installed windows 7 on my box. After that I started following the article and I was stuck with a blank grub menu during startup.
I booted from ubuntu live DVD and started reading more about restoring grub. Here is a solution I came up with.
Its a step by step guide to restoring ubuntu.
(Note: Its for Grub2. I am using Ubuntu 10.04)
Step1: Boot using Ubuntu Live CD/DVD.
Step2: Open terminal. (Press Alt+F2 and write gnome-terminal)
Step3: Now you need to mount your root partition. You can see a list of partition by typing sudo fdisk -l
Step4: Now mount the root partition sudo mount /dev/sdXY /mnt
Example: sudo mount /dev/sda6 /mnt
Where sda6 is the partition where I had my ubuntu’s “/” installed.
Step5: If you had a separate boot partition. Then mount it in /mnt/boot sudo mount /dev/sdXZ /mnt/boot
Ex: sudo mount /dev/sda8 /mnt/boot
Step6: Now install grub sudo grub-install –root-directory=/mnt/ /dev/sdX
Ex: sudo grub-install –root-directory=/mnt/ /dev/sda
where sdX is your first hard disk from where your system boots Or where MBR is located.
Step7: Restart your computer.It will automatically boot into your old ubuntu.
Here is a list of important tips that you must know to use gmail efficiently.
Chating Tips: Surround the text with * to make it bold
For example: *hello* becomes hello
Surround text with _ to make it italics
Ex: _hello_ becomes hello
Surround text with – to make it strikethrough
Ex: -hello- becomes hello
Create Filters to arrange your email in a better way. Fileters can be created from settings tab that can be found at top right corner.
Block Spammer the foollpoorf way: Whenever writing you email address in any blog/website write youremail+thatbolg@gmail.com or youremail+thatwebsite@gmail.com it will be delivered to yourmail@gmail.com. This way you can block the spammer by simple making a filter to delete any mail sent to youremail+thatbolg@gmail.com or youremail+thatwebsite@gmail.com.
Some websites/forums ask you to register before you can see its content. Here is a firefox tweak to bypass registration process and directly see the content.
Write about:config in firefox’s address bar and hit enter.
If it shows you a message “This might avoid your warranty!”. Press the button “I’ll be careful, I promise”.
Now in the filter box write general.useragent.override.
Double click on the preference name general.useragent.override from the list below the filter box.
With 30 million smiling faces, Opera delivers yet again. It unveiled its fifth generation of Opera Mini.
Facing stiff competition from Mozilla’s Fennec and the Skyfire recently , Opera did a fine job in putting up a rich featured and beautified marvel. Trying its best to meet the demands and expectations one can surely say that Opera has brought out its graphically enriched, attractive and much advanced browser.
Opera Mini 5.0 has has been imparted many features from its desktop counterpart Opera 10. Unlike its predecessor it has Speed dial, a grid of nine thumbnail images, which is a replacement to Mini 4.2’s list of links. It has introduced a much demanded tabbed browsing interface. Though its not the first one to have this feature but surely the lightest one to do so. The fact that the browser like Fennec, Skyfire and even Opera Mobile are too heavy for some mobile phones, Mini 5.0 comes as boon with so many features. Plus the bonus being its Java platform which opens it endlessly for almost all platform.
The glossy black interface has come with number of overhauls. Firstly the need of opening of a new window with every click onto an input field has been removed and one can directly type in the input boxes. The navigation menu has improved a lot from its previous versions.
One of the most important feature of this browser is it being light weight. Unlike other browsers which i have used earlier performed poorly under low processing conditions. The tabbed features often led to an error ‘low in memory’. But it being light gives us very little trouble in this regards.
Another life saver from opera is the password manager. It does what is expected out of it and delivers its best. Apart from the ones mentioned above the whole action pack of Mini 4.2 is still available. more
What’s missing?
Opera shook out some of its nagging features like skin and the ability to create a new search engine from any Web site. Another important feature which is missing is Opera Link ( Opera’s service for syncing bookmarks and Speed Dial between your various browsers, like desktop and mobile) . Though it is mentioned in one of its developer’s blog that its not there because the recent release is a Beta release.
Still no hopes for video playback on Mini 5.0. Mini still lacks this ability as the flash plug-ins are disabled in the browser. You might be able to play videos from www.youtube.com but those don’t come directly from the standard youtube.com.
In spite of its drawbacks Opera Mini 5.0 packs enough punch to be acclaimed as a worthy upgrade to Mini 4.2.
You can download Opera Mini 5 beta for free from http://m.opera.com/next. Multiple versions are available for Black-berry and for other Java based mobile phones.