Detect Visual and Text Mode in WordPress TinyMCE Editor

WordPress TinyMCE Editor

For reason(s) best known to you, you might want to check if WordPress TinyMCE Editor is in visual (rich text) or text mode.The variable is_tinymce_active returns true if TinyMCE is in visual mode and false otherwise.[javascript] var is_tinymce_active = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden(); [/javascript]Alternatively, simply check if tinymce is … [Continue reading]

How to Enable the Disabled Delete Warning Dialog Box in Windows 8

Recycle Bin - select Properties

A little bit of info as to why am late to the Window 8 picture.I got for myself an Asus X551CA Windows 8 laptop (shameless affiliate link) earlier this year to replace my pretty old Lenovo laptop at home.I didn't immediately started using it; instead I kept it in a safe location pending when I would have the time to transfer my files and installed programs from the old PC to the new one.It dawn on me I won't ever have a free time; not … [Continue reading]

How to Force Firefox to Instantly Sync Your Browser

Firefox sync now

Firefox ships with a Sync service that synchronizes and save the following to its server - bookmarks, browser history, saved passwords, tabs, add-ons and preferences.The importance of a sync services such as Firefox sync cannot be over-emphasize in that they provide a central location for you to access your browser data from any device.I recently changed my windows laptop at home to Asus X551CA Windows 8 (affiliate link) laptop thus the … [Continue reading]

How to Write into a Read-Only File in Windows

Windows file properties

I downloaded a text (.txt) file some time ago. Each time I write into it and then try to save it, I am greeted with the following error.The file is set to read-only.Try again with a different file nameObviously (maybe not so obvious), the cause of the problem is - the file has a read-only property i.e. it can only be read but can't be written into.To make a "read-only" file writable, follow the short steps below.Navigate to … [Continue reading]

WordPress Filters Battle – authenticate vs wp_authenticate_user

WordPress Filters Battle - authenticate vs wp_authenticate_user

WordPress provide developers with lots of Action and Filter hooks for modifying, changing and remove certain operation / functionality in its core.These filters: authenticate and wp_authenticate_user are similar in that they can both be used to perform additional validation/authentication any time a user logs in to WordPress.The difference between them is: the former is triggered before WordPress validate the login form while the latter … [Continue reading]

Coverting Color Codes to RGB, RGBA, Hexadecimal Back and Forth

Coverting Colour Codes to RGB, RGBA, Hexadecimal Back and Forth

Admittedly, i have never love front-end stuff although am pretty good writing HTML(5) / CSS(3) and JavaScript codes.I stumbled on a cool form design few weeks ago and loved it. The color codes used for the CSS was in RGBA.The color combination where pretty amazing but i wanted to alter their opacity and transparency to suit my need.I have a local instance of a color picker that utilizes hexadecimal color. To be able to use it to alter … [Continue reading]

Packt’s $5 eBook Bonanza Returns

Packt's $5 eBook Bonanza Returns

Following the success of last year’s festive offer, Packt Publishing will be celebrating the holiday season with an even bigger $5 offer. From Thursday 18th December, every eBook and video will be available on the publisher’s website for just $5. Customers are invited to purchase as many as they like before the offer ends on Tuesday January 6th, making it the perfect opportunity to try something new or to take your skills to the next level … [Continue reading]

How to Flush / Delete DNS Cache in Firefox and Chrome

Clear DNS cache chrome

Web browsers cache DNS in order to prevent repeated look-ups of a website DNS record each time the site is visited.How long the DNS record will be cache in the browser depends on the TTL value associated with the DNS record.Actually, DNS caching is good. it quickens rendering of web pages by browsers because the time in looking up the nameserver / DNS record and resolving the IP address where the site is hosted is eliminated.However, … [Continue reading]