Do you know that feeling of being completely absorbed by what you are doing? Being on a roll, concentrating so hard that you are no longer aware of your surroundings. Then (part of) the job is done and you kind of wake up from this trance, becoming more aware of your surroundings, realizing that 3-4 hours have passed, and suddenly feeling the pressure in your bladder. Over the years, has it become easier or more difficult for you to enter this zone? Browsers with 5 open tabs, Twitter, Facebook, e-mail, word processor, spreadsheet, Skype, Google Talk, Yahoo! or Live messenger, … When was the last time you have experienced this trance like productive state? I am experiencing it now. Read more…
Mac OS X
blogging, GTD, Mac OS X, review, software
Virtualization is a hot topic in ICT. How can you put this to use at home and more specifically on your Mac ? You can use it to run Windows on your Mac, but also to try out different flavors of Linux or to run a LAMP (Linux Apache MySQL PHP) development server. If you have a spare recent pc you can install a baremetal hypervisor like XenServer5, but that’s a different story. If you want to install a hypervisor or virtual machine monitor on your MacBook, Mac mini or iMac, there are a number of solutions available. To name a few: VMWare, Parallels, Q and VirtualBox.
First requirement: it has to be free, free as in made freely available by the software vendor, not as in a pirated or illegal copy. So skip VMWare (unless you stick with the VMWare Player) and Parallels.
Second requirement: it must be a hypervisor project, preferably open source, with active development, user groups, forums and good documentation.
So I chose VirtualBox. For the cross-platformers among you, like myself, VirtualBox also runs on Windows, Linux and OpenSolaris and supports a large number of guest operating systems including Windows (NT 4.0, 2000, XP, Server 2003, Vista), DOS/Windows 3.x, Linux (2.4 and 2.6), Solaris, OpenSolaris, and OpenBSD.
But this post will be about installing a virtual Ubuntu LAMP or web server on Mac OS X using VirtualBox. Read more…
Linux, Mac OS X, PHP, Virtualization
LAMP, Linux, Mac OS X, PHP, Ubuntu, VirtualBox, Virtualization
I already knew how to run PHP scripts from the command line (CLI), although I never really used it. What was new to me was that there are 2 ways of doing this. The first one is by using the php command and the second, and new for me, is by adding a shebang on the first line of your script.
Why would you want to use PHP CLI ? Well you don’t have to learn another programming language like perl or bash to make shell scripts, you can run cron jobs in PHP and you can reuse code from a website for example in your shell script. Read more…
PHP
CLI, Linux, Mac OS X, PHP, shebang, shell