How to build a php query string without question mark

As a result of the spreading SEO awareness and how Google works, it is always recommended to use as less dynamic URLs as possible for your site. If one must, try using as less variables in the dynamic URL as possible. A dynamic URL is one with a question mark that passes dynamic variables to …

How to build a php query string without question mark Read More »

Using JavaScript to refresh and reload an iframe on main page

<iframe></iframe> is useful in many aspects. There are times when you want to refresh the content of an iframe and reload the page in it, without refreshing that of the main page, and it can be achieved with a tiny property of iframe, src. Let’s say you have an iframe of captcha that enables the …

Using JavaScript to refresh and reload an iframe on main page Read More »

Check for file size with JavaScript before uploading

File uploading is a rather common feature of interactive sites. As all servers come with a limit on the size of the file being uploaded, it would be a usability blessing for users if web developers can implement a logic to check for the file size before uploading, informing the user if the size of …

Check for file size with JavaScript before uploading Read More »

Use twitter in Windows active desktop to post anytime!

Windows active desktop is a feature that allows you to embed a browser window (viewport) on your actual desktop. Instead of a window form, it’s accessible anytime on the desktop yet never takes up any task bar spaces. Windows XP users can activate active desktop following these procedures. Basically you just right click on the …

Use twitter in Windows active desktop to post anytime! Read More »

Pretend your scraper script as a browser when scraping in PHP

It’s easy to make a simple scraper script in PHP but it’s also easy for data-centric sites to detect and keep out suspiciously continued page accesses done in large amounts and a small period of time. There are usually 2 ways for a site to detect possible scraping activities. One is to make sure the …

Pretend your scraper script as a browser when scraping in PHP Read More »

Harness the power of exponential growth, part 2 – what can you do?

Well after reading the first part, I was a bit lost. What the hell is this guy talking about exactly? Yes, exponential growth it is, and we should all make sense out of it in our business endeavors wherever possible. Okay, it’s sweet but how? How is this concept going to help us? And what …

Harness the power of exponential growth, part 2 – what can you do? Read More »

Let’s use Lucida Grande for a change – 13 web safe fonts revisited

The 10 web safe fonts, Arial, Impact, Georgia, Times New Roman, Trebuchet MS, Comic Sans MS, Verdana, Tahoma — ahhh, wait a minute, I can’t remember the last 2. Let me take a look at the 9 web safe fonts, ok, it’s Courier New and Arial Black. Tahoma isn’t included in the 9 browser safe …

Let’s use Lucida Grande for a change – 13 web safe fonts revisited Read More »

Harness the power of exponential growth

All successful entrepreneurs, wealthy people and academic geniuses agree that exponential growth is what it takes to be where they stand. What is exponential growth? Mathematically, it’s just a way of describing how something not only grows over time but the rate of growing itself increases in the process, reaching unbelievable mark at the end. …

Harness the power of exponential growth Read More »

Backup and recover a MySQL database under command line

Yes you can log into phpmyadmin, backup your database by simply using Export and recover it by using Import. However all lamp servers come with a max upload file size, limited by the smaller of upload_max_filesize and post_max_size while also restricted by php.ini configurations such as memory_limit and max_input_time. What if you’ve got a huge …

Backup and recover a MySQL database under command line Read More »

How to count files (get the number of files) under a directory in Linux?

Just perform this command under the directory: find . -type f | wc -l and you will get the total number of files under it (recursively). Simply copy and paste that to do the trick. Or if you just need to count the files directly under the current directory: ls -f | wc -l Which …

How to count files (get the number of files) under a directory in Linux? Read More »

Using SQL to Find records existing in one table but not in another

The 2 tables are built with an identical data structure. Say you have records spread in both tables but neither of them are complete because both contain unique records. You need to consolidate the 2 tables into one with all unique records from each table. NOT EXISTS clause is just the way to do it …

Using SQL to Find records existing in one table but not in another Read More »

PSD to HTML service is not easy, but I’m determined.

To provide this service to the highest standards, it’s really not that easy, takes time and toil. Not to mention it’s directly dealing with picky customers and anything could go wrong. Most of the customers are reasonable and easy going but still quite a number of them are rather demanding of the work or just …

PSD to HTML service is not easy, but I’m determined. Read More »

Scroll to Top