Skip to main content

Working With AJAX Loading (Ajax Loading Overlay)

An AJAX loading overlay is a UI element that covers the page (or a section of it) while an asynchronous request is in progress. It prevents users from clicking a button multiple times and gives clear visual feedback that something is happening in the background.

How To Read Facebook Chat Messages And Stay Undetected

Caution: The extension described in this post was hosted on the Crossrider platform, which shut down in 2018. The install link below is dead. Any site currently distributing an extension named “Chat Undetected” is not the original and may be…

Desktop Sidebar: Get Sidebar For Windows XP

Note: I wrote this in 2012 for Windows XP users who wanted Vista/7-style desktop gadgets. XP hit end of life in 2014, and Microsoft killed off the whole gadget/sidebar category for security reasons not long after. Keeping this post up…

Getting Recent Posts Outside Of WordPress

Many sites do use WordPress for blogging but they do not use it as back-end for whole site. (Your site or app may be one of them.) There may be a scenario in which you have to display recent posts from WordPress blog, on a page which is outside of WordPress. No problem. You might know that WordPress is quite flexible, hence you can handle such scenario with a small code. There are two ways to achieve this. You can either take advantage of WordPress loop itself or if you don't want to deal with WordPress loop then you can use other way also. If you don't want WordPress loop So you don't want to take advantage of WordPress loop? Then you can use wp_get_recent_posts(). According to WordPress codex: wp_get_recent_posts() will return a list of posts. Different from get_posts which returns an array of post objects. How to use it? Just copy paste following code in page where you want to list the Recent Posts include( 'wp-load.php' ); // Get the last 10 posts $recent_posts = wp_get_recent_posts( array( 'numberposts' => 10, 'post_type' => 'post', 'post_status' => 'publish', ) ); // Display them as list echo '<ul>'; foreach ( $recent_posts as $post ) { echo '<li><a href="', get_permalink( $post['ID'] ), '">', $post['post_title'], '</a></li>'; } echo '</ul>'; You can simply change numberposts parameters value to change the number of posts you want to retrieve.

New Privacy Settings From Facebook

Note: This post was written in 2012 covering a privacy update Facebook rolled out at the time. Facebook has redesigned its privacy interface many times since then, and most of what's described here has been significantly changed or replaced. Have you noticed a new privacy shortcut appearing in your Facebook account lately? If you haven't tried it yet, you should — Facebook just revamped its privacy settings to make them simpler, easier to understand, and more powerful. Here's a rundown of what's new. Privacy Shortcuts Facebook has introduced a new Privacy Shortcuts menu. From here you can quickly control who sees your posts, review your activity log, preview your public profile, manage messaging and friend request settings, and block people — all from one convenient place without digging through the full settings.

Papercut: Set Bing Background As Wallpaper On Windows Phone

Note: This post was written in 2012 for Windows Phone, which Microsoft discontinued in 2017. The Windows Phone Store no longer exists and the download links below no longer work. If you're a fan of Bing.com's daily background images, you're probably already using the "Best of Bing" theme to get them as your desktop wallpaper on PC. But what about your Windows Phone? That's where Papercut comes in. Papercut automatically fetches Bing background images and sets them as your Windows Phone wallpaper. What makes it especially nice is that it doesn't just pull from one region — it grabs backgrounds from all 10 regional versions of Bing.com, so you get a much wider variety. It also has a Live Tile that shows today's featured image right on your home screen.

Control Your Facebook Timeline

Are you frustrated due to some non useful, unknown, unwanted posts, pictures coming up your Timeline? Your friends are tagging you in unwanted photos? Is your reputation is getting decreased due to such things? Then here is how you can control your Facebook Timeline.

Avoid Facebook Account Hijacking In 4 Steps

Note: This post was written in 2012. The security steps here are still sound, but Facebook's interface has changed significantly. Navigation paths like "Account Settings > Security" now look different. All these settings still exist — look for them under Settings & Privacy > Settings > Security and Login. Facebook is used by you, me, and millions of people around the world to stay connected with friends and family. Most of us use it daily — some of us are probably a little too addicted to it. But here's a question worth asking: is your Facebook account actually secure? What have you done to protect it? If you don't have a good answer, follow these four steps right now. Step 1: Change Your Password This is the most important step. If you've been using the same password for a long time, change it now. Go to Account Settings > General. Make it a habit to update your password every month — it cuts off anyone who may have come across your old one.

HTML5 Prefetching Api

Note: This post was written in 2012. Link prefetching is still valid, but modern browsers now support more targeted hints like rel="preload", rel="preconnect", and rel="prefetch" — each serving a different purpose. The MDN docs are still the best reference. Making websites faster is something both developers and browsers are constantly working on. There are plenty of well-known techniques for this — CDNs, minified JavaScript and CSS, image sprites, smart caching headers in .htaccess, and so on. But one lesser-known technique that most developers overlook entirely is link prefetching. What is link prefetching? According to MDN: Link prefetching is a browser mechanism which utilizes browser idle time to download or prefetch documents that the user might visit in the near future. A web page provides a set of prefetching hints to the browser, and after the browser is finished loading the page, it begins silently prefetching specified documents and stores them in its cache. When the user visits one of the prefetched documents, it can be served up quickly out of the browser's cache. In simple terms: you hint to the browser which page the user is likely to visit next, and the browser quietly downloads it in the background during idle time. When the user clicks through, the next page loads nearly instantly because it's already cached. How to implement it It's just a <link> tag with rel="prefetch" or rel="next": <!-- Prefetch a full page --> <link rel="prefetch" href="https://ankurm.com/lab/blog/api/using-localhost-for-facebook-app-development/1091/" /> <!-- Prefetch an image --> <link rel="prefetch" href="https://ankurm.com/wp-content/uploads/2012/03/logo.png" />