Rio Bautista’s TechLog

Tech solutions worth remembering

My Move to the OSX (the dark-side)

I recently bought my 6th laptop and this time I thought I’d make this big jump to the other-side (OSX).  I wanted to find out what makes a Mac so loved by the “simple-ones”.  Well it looks like this whole “simplicity” is what gives the Mac its advantage.  It’s the same secret I suppose that puts facebook ahead of the other social networking sites.  It captures even the simplest of the simple users there is.  It takes away all the non-essentials and keeps you focused on what you need.  Putting all its power into delivering your very basic needs. I’ll keep that in mind the next time I create something. Focused Power… I like that.

Running Drupal on XAMPP/OSX

I was able to setup my XAMPP/OSX and got it working.  Following the directions on how to install XAMPP on OSX it tells you to put your site on the htdocs folder.  But I decided to setup my Drupal site on another directory outside of the XAMPP folder.  My experience tells me to simply look for the httpd.conf file and insert a virtual-host that points to my site.  So I did and I also included a vhost for my local xampp stuff.  The XAMPP site is now working but not my drupal site.  Here’s what I did with my conf:

<Directory “/Users/riobautista/Documents/workspace/skoolflyer”>
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<VirtualHost *:80>
ServerAdmin rio.bautista@ragingriverict.com
DocumentRoot “/Applications/XAMPP/xamppfiles/htdocs”
ServerName localhost
</VirtualHost>

<VirtualHost *:80>
ServerAdmin rio.bautista@ragingriverict.com
DocumentRoot “/Users/riobautista/Documents/workspace/skoolflyer”
ServerName skoolflyer.local
</VirtualHost>

I restarted my Apache after modifying the conf but I’m getting an Error 403 (Permission Denied) when I tried to access the site.  I’m thinking maybe I should setup the permissions so I went into the terminal and did a chmod 755 on the skoolflyer folder but still didn’t solve the problem.

I just moved my site to the /Users/riobautista/Sites/ this fixed the problem.

This time, I got a bunch of deprecated function ereg().  Turns out XAMPP 1.7.2a is using PHP 5.30 which no longer support ereg().  Good thing I found this simple patch that fixed the problem.  The problem is in line 902 of the includes/file.inc:

902:   elseif ($depth >= $min_depth && ereg($mask, $file)) {

just replace the ereg function with mb_ereg so it becomes:

902:   elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {

That worked perfectly for me so on to my work.

Hibernate on Mac

I’m now trying to find out how to put the MacBook on hibernate.  It’s a very useful feature found on Windows.  As I move around very often, this helps me completely turn off my laptop while preserving everything so that when I turn the power back on I’m back exactly at where I left off.

MacBook seems to have something else they call Safe Sleep.  It’s supposed to do exactly what hibernate does, but it is not readily accessible to the user.  That gives me the feeling that Apple is not recommending this for regular use.  I’ll try to read more on this.

I found these 2 terminal commands that lets you enable and disable SafeSleep.

To enable SafeSleep, use the Terminal program and enter the following command:

sudo pmset -a hibernatemode 3

To disable SafeSleep:

sudo pmset -a hibernatemode 1

I tried enabling SafeSleep and will now observe how well this works.  For almost a day now, SafeSleep seems to work well.  When I put my MacBook to sleep it hibernates just like windows.  It does take a bit longer to sleep and wake than the usual sleep mode but I’m fine with that.

My First Crush (Crash)

I downloaded drivers and other software for my Line6 PODxt.   Of course I got the latest ones from Line6.  Installed Line6 Monkey without a problem.  But after finishing the GearBox installation I got this message about the Line6Audio.kext:

Read more about this error here: http://line6.com/community/docs/DOC-1583

Well Line6 says this is a known issue and should not be a problem.  Anyway, after completing the installation I was asked to restart but when I did I noticed it was taking much longer than usual to boot up.  After a while I received this message telling me to shutdown by pressing the power button until the MacBook shuts down and turn it back on again.  I did but I kept getting the same message.  So got my other laptop and looked around for what I can possibly do.   I tried the single-user and verbose approach (which you do be pressing command+s or command+v during start up).  I was given the bsd terminal where I started exploring ways to uninstall the Line6 driver using the terminal.  It’s not very Apple-like, so I decided to look for an alternative.  Apparently the Apple-way is to login in SafeMode and uninstall my drivers from the Finder.  It’s too simple really.  You simply press the command+shift buttons while booting and you’ll get into SafeMode (pretty much like Windows).  From there I was able to locate the Line6 Driver Uninstaller and that fixed my problem.


October 31, 2009 Posted by Rio | Uncategorized | | No Comments Yet

Skype & Apache conflict

I was setting up XAMPP on my Windows XP and for some reason Apache wouldn’t start using the XAMPP Control Panel.

So I tried starting Apache using the xampp/apache_start.bat.  That’s were I saw the problem.  Apache server is giving me this error:

“(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs”

I tried running netstat -b, to check what program is currently using port 80, but I couldn’t find it exactly.  Anyway, it only indicated Yahoo and Skype having outside connections.

So I decided to isolate the problem by turning off the programs one at a time.  On first try I closed Skype and tried running apache again and it worked.

This only shows that skype is using port 80 for some reason to connect to the outside world knowing most likely that this port is open for most firewalls.

So to confirm the theory, I started skype again and tried to start apache and as expected, it failed to start.

So there, there must be some way for them to work together, but as for me, I’d rather close skype until I need to use it, I don’t like some program acting like a webserver and doesn’t ask for my permission to do so.

October 23, 2009 Posted by Rio | Apache, Skype, xampp | , , , | No Comments Yet