Articles saved under Tips and Tricks category
Native Web Development (apache, PHP and mySQL) on Mac OSX Leopard
If you’re a web developer and you’re on a Mac, you’re probably using MAMP or XAMPP for your all in one apache + PHP + mySQL need. But did you know that your Mac system is already a web server by default installation? Utilizing the native web server, you can save yourself from downloading stuffs you don’t need.
It is not as complicated as you think. Given that Macs are descendants of *nix system, it already has apache2 and PHP module built in, we only need to activate those two and install mySQL. Here’s how.
Coding PHP Loops Easily
Working with loops on PHP is inevitable, and I’ve seen many beginners (read: me) pulling their hair because of it. The thing with coding a loop is, sometimes you have to do stuffs like this:
<?php for ($i=1; $i < 10; $i++) { echo "<a href=\"something.php?id=$i\">No $i</a>"; }
Am I right am I right?
How to remove Facebook Quizzes from your home stream
Tired of seeing those quiz notification your friends published? If you’re a facebook quiz lover, do yourself a favor, STOP PUBLISHING THE RESULT. It’s annoying!
To hide the quiz, you can either click the hide button and select hide yadayada quiz or simply hide the person, I prefer the latter. But if you don’t want to hide the friend but still want to hide the quizzes, facebook Purity saves your day.
Tweaking Safari 4’s Hidden Preferences
Okay, who else thinks Safari 4 is cute and all that, and that it looks like Google Chrome? New look and spanking great new features. Safari 4 has the tab bar on top, fancy URL completion, circular progress bar (instead of the bluish progress bar on the address bar we used to have in the previous version) and many more.
Some people are excited about the changes, some don’t. I personally can’t get used to the tab bar relocation so I looked for a solution to revert it back. There is the hard way, typing this and that into Terminal app but hey, let’s cheat and use the easier way.
How to save/print a document as PDF
For Mac users, this is as simple as hitting Command + P and select Save as PDF. Windows users, you are not so lucky, Windows does not have this function built-in. As usual, we’re going to have to install a third party application work our way around this limitation.
We have a wide range of selection to help overcome the issue, but we’re going to use the cheapest and quickest one around: CutePDF Writer.