Lebowtech Blog

Headup Safari Extension

| Comments

HeadUp adds tool tip type info to key words.

This extension will add the headup script to every site that you visit.

Note: You wont see the links the first time you visit a site, try reloading the page after a few min.


Problems After Upgrading to 10.6

| Comments

Date: 8th of Cheshvan, 5770

Keywords: OSX SnowLeopard Upgrade


I was using the Zsh Osx templates and after the update nothing seemed to work, and it didn’t even seem to be reading my .zshrc file either.

I tried installing the SVN version from the google site, but that didn’t work.

What did work was that I moved my .zsh dir and .zshrc file to a backup location and reinstalled from the tarball. Then I was presented with the nice config dialogs.

Then I moved my old stuff back into place

~> cp old/.zshrc .zshrc 
~> source .zshrc 
~> cp old/.zsh/zshprompt .zsh/zshprompt 

Text Mate

The mate command stopped working for me , but after fixing zsh , it works again.


So PHP 5.3 comes with OSX 10.6 ! That would be excelent except that nothing works !!

Time zones


had to reinstall 5.2.10 using my instructions …

but add EXTRA_CFLAGS="-lresolv" make -j2


And it looks like I have a problem with GD , so needs to be built with out gd

CFLAGS='-arch x86_64' ./configure  \
            --without-iconv  \
            --with-apxs2  \
            --enable-pdo  \
            --with-zlib=/usr \ 
            --with-curl  \
            --with-mcrypt \
            --with-pdo_mysql=/usr/local/mysql/bin/mysql_config  \
            --with-mysqli=/usr/local/mysql/bin/mysql_config  \
            --with-mysql=/usr/local/mysql   \
            --prefix=/usr  \
            --without-mcrypt -mandir=/usr/share/man  \
            --infodir=/usr/share/info  \
            --with-apxs2=/usr/sbin/apxs  \
            --with-config-file-path=/private/etc  \
            --sysconfdir=/private/etc  \
            --enable-cli  \
            --enable-ftp  \
            --enable-mbstring  \
            --enable-mbregex  \
            --enable-sockets  \
            --with-ldap=/usr    \
            --with-mime-magic=/etc/apache2/magic  \
            --with-zlib-dir=/usr \


after recompiling JPEG libs I recopiled php adding the following options.

--with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/X11R6


look here for apple’s patch

PHP 5.3.0 on Mac OS 10.6 (Snow Leopard)

diff -Naur php-5.3.0/ext/iconv/iconv.c php/ext/iconv/iconv.c
--- php-5.3.0/ext/iconv/iconv.c        2009-03-16 22:31:04.000000000 -0700
+++ php/ext/iconv/iconv.c          2009-07-15 14:40:09.000000000 -0700
@@ -51,9 +51,6 @@
 #include <gnu/libc-version.h>

-#undef iconv 

 #include "ext/standard/php_smart_str.h"
 #include "ext/standard/base64.h"
@@ -182,9 +179,6 @@

-#define iconv libiconv

Still missing TTF


Hebrew dates.

I use hebrew dates on my OS and it worked fine , but now mails in my exchage box are getting wired dates. This is only happening in the message listing pane, but in the message view pane that date is fine.

Turns out it isn’t a problem with hebrew dates, I have the same issue with gregorian dates :(.

I moved my ~/Library/Mail folder and let Mail rebuild it , and that didn’t work …

I switched to using my old IMAP setup for this exchange account and it seems to work now .

Make not found..

Trying to install Xcode …

Run Ie6 ( and Windows Xp ) for Free on Osx

| Comments

This will let you use IE6 ( and XP ) on OSX for free!!

It uses Suns VirtualBox emulator.

I set back the clock so it won’t expire and it seems to work fine…

This will only work on an intel mac , and it is tested on 10.5 ( as well as on XP )

XP_SP2_with_IE6.dmg (755MB)

md5sum : d9e80d9bf8d03a146d35ef56ebef5f2c

More info to come , and check back here for updates.

Update 20th of Elul, 5769

I’ve updated the torrent file to use a http seed so you can keep downloading even when there are no available peers, or you have NAT/Firewall problems. As long as this doesn’t kill my bandwidth usage I’ll keep it going.

Please let me know if things are working or if you have any issues.

Osx Security Update 2009 005 Breaks Php

| Comments

OSX Security Update 2009-005 Upgrades to PHP 5.2.10 and wrecks havoc on a custom compile..

This morning when trying to work I started getting strange empty pages, I broke my head on this problem before and solved it by recompling PHP.

It turns out that Apple Security Update 2009-005 also upgrades to php 5.2.10, this would be a good thing for most normal users, but since I had a custom compile of PHP it killed my sites.

From Apple’s site:

CVE-ID: CVE-2009-1271, CVE-2009-1272, CVE-2009-0590, CVE-2009-0591, CVE-2009-0789, CVE-2008-5498

Available for: Mac OS X v10.5, Mac OS X Server v10.5.8

Impact: Multiple vulnerabilities in PHP 5.2.8

Description: PHP is updated to version 5.2.10 to address multiple vulnerabilities, the most serious of which may lead to arbitrary code execution. Further information is available via the PHP website at http://www.php.net/ These issues do not affect Mac OS X v10.6 systems.

The solution is to recompile php again with my custom configuration, lucky for me my old comple was still sitting in my downloads folder , so I just had to do a:

sudo make install 

now everything seems to be back to normal.

Compling Php on Leopard (Osx) in Intel C2duo

| Comments

I recently updated my Powerbook G4 to a MacBook C2Duo, and I wanted to get working quickly so I cloned the hard drive from the PowerBook to the MacBook, and I was able to pick up working right where I left off, that is until I one of my Joomla projects stopped working.

One of my joomla projects was just returning me a blank page, no error message and nothing in the logs.. everything worked fine on the live sever, after about 6 hrs of banging my head on the keyboard, I had a genius idea. I powered up the old powerbook , and the project still worked there! I quickly realized the problem. I had done a custom compile of PHP on the powerbook, and it probably wasn’t working so well on the Intel MacBook.

The obvious solution was to recompile PHP, so I downloaded PHP 5.3, excited about the built in Mysql driver. Configure went fine, make went fine, and then I try to restart apache :

 org.apache.httpd[79275] httpd: Syntax error on line 114 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/libphp5.so into server: dlopen(/usr/libexec/apache2/libphp5.so, 10): no suitable image found.  Did find:\n\t/usr/libexec/apache2/libphp5.so: mach-o, but wrong architecture 


So I found a solution , recompile Apache, and I wasn’t really in the mood for that, so I figured I’d try an older version of php.

I tried PHP 5.2.10 , and after some twiddling with config options and reinstalling MySql, configure, make, make install, and now my project is working again.

here is the configure command I used

CFLAGS='-arch x86_64' ./configure --without-iconv --with-apxs2 --enable-pdo --with-zlib=/usr --with-curl --with-mcrypt --with-pdo_mysql=/usr/local/mysql-5.1.37-osx10.5-x86_64/bin/mysql_config --with-mysqli=/usr/local/mysql-5.1.37-osx10.5-x86_64/bin/mysql_config --with-mysql=/usr/local/mysql-5.1.37-osx10.5-x86_64 --disable-dependency-tracking --prefix=/usr --without-mcrypt -mandir=/usr/share/man --infodir=/usr/share/info --with-apxs2=/usr/sbin/apxs --with-config-file-path=/private/etc --sysconfdir=/private/etc --enable-cli --with-curl=/opt/local --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-ldap=/usr --with-ldap-sasl --with-kerberos=/usr --with-mime-magic=/etc/apache2/magic --with-zlib-dir=/usr --with-gd --with-png-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6 --without-jpeg-dir --enable-exif


If you want or need libjpeg or true type support for things like imagettfbbox or imagejpeg. The needed libraries comple simply with a , configure, make, make install.

You can get them from here

http://www.ijg.org/files/jpegsrc.v7.tar.gz http://ftp.cc.uoc.gr/mirrors/nongnu.org/freetype/

Setting the appropriate environment variables also might help , but I’m not sure if this is required.

MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch x86_64 -g -Os -pipe" CXXFLAGS="-arch x86_64 -g -Os -pipe" LDFLAGS="-arch x86_64 -bind_at_load" export CFLAGS CXXFLAGS LDFLAGS CCFLAGS MACOSX_DEPLOYMENT_TARGET

be sure you get the newest version of freetype as some of the older versions won’t compile the shared libraries in 64 bit.

CFLAGS='-arch x86_64' ./configure --without-iconv --with-apxs2 --enable-pdo --with-zlib=/usr --with-curl --with-mcrypt --with-pdo_mysql=/usr/local/mysql/bin/mysql_config --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --disable-dependency-tracking --prefix=/usr --without-mcrypt -mandir=/usr/share/man --infodir=/usr/share/info --with-apxs2=/usr/sbin/apxs --with-config-file-path=/private/etc --sysconfdir=/private/etc --enable-cli --with-curl=/opt/local --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-ldap=/usr --with-ldap-sasl --with-kerberos=/usr --with-mime-magic=/etc/apache2/magic --with-zlib-dir=/usr --with-gd --with-png-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6 --with-jpeg-dir=/usr/local --with-freetype-dir=/usr/local --enable-exif

One other thing I’d like to mention: If you use zsh you can do tab completion on php configure options, this has to be one of the awesomest things I’ve seen in a while.

Treo 600 vs 650 vs Nokia E61

| Comments

My treo 600 was dying and I was in the market for a new phone/pda. I had very specific requirements, so I wrote my own comparison chart, hopefully this will help others out there.

In the end I got a treo 680 and have been very happy.

UPDATE: I recently upgraded to OSX 10.5 Leopard and sync stopped working!! Now I’m forced to using The Missing Sync*

UPDATE:6th of Nisan, 5769 I’m now starting to hate my t680, it doesn’t sync any more, and the battery only lasts 1/2 a day (If I’m lucky), and sometimes it can’t connect to the network for hours ( not a problem with the network, I tested on other phones, and switched sim cards)

UPDATE:4th of Iyyar, 5769: Looking into getting a Nokia E71 now.

featuremy 600treo 650my treo 680nokia e61
phonebroken1Sometimes doesn’t work1
bluetooth00.5sometimes has connection problems1
dimensions58.42mm x 111.76mm x 22.86mm? 117mm x 69.7mm x 14mm
sound switchyes?
gizmo projectnoyes IM onlyyes VOIP
IMyes AIM toccer free and GizmoProject also free(MSN and AIM).yes 3rd prty software
hebrewyes have piloc**bought new piloc?
IMAPneed chatter $50yes versa mailyes
push mailneed chatter $50maybe with versa mailExchange onlyyes
native osx syncyes pre 10.5/ No after 10.5 unless you use the missing sync*yes
address book photo syncnorequires missing sync, missing sync* $40yes
speaker phoneyesyes
stupid antenamissing screwYes, can be replacedinternalinternal
removable batterynoyesyes
works with SDcards that I haveyesyesno, minisd
works with cabels that I haveyesnoyesno
works with the gps software***yesyesno
Works with Salling clickernoyes but no phone eventsevery thing
internal memory32mb23mb?64mb
voice dialingwith 3rd party softwareyes

*I would not recommend the missing sync, it is not a finished product and it is way over priced. There is really nothing that you can’t do with out it.

**The same PiLoc hebrew works for the 600 and 650, but you need a new version for the 680

*** OY! It looks like UDrive is no longer with us. Another strike against the Treo!

Time to Replace Treo 680 ( Treo 680 vs Nokia E63 and E71)

| Comments

So it looks like my treo is finally dead, It doesn’t get any signal any more.

I’m looking into either a Nokia E71 or Nokia E63

feature my treo 680 nokia E63 nokia E71
price $300 30 NIS x 36 mo 90 NIS * 24 mo
phone Sometimes doesn’t work
bluetooth sometimes has connection problems yes yes
talktime < 6hr 11hr 11hr
camera VGA 2MP 3MP Auto focus
dimensions 117mm x 69.7mm x 14mm
sound switch yes no -50NIS volume (?)
wifi no yes yes
gizmo project yes VOIP yes yes
IM yes AIM toccer free and GizmoProject also free(MSN and AIM).
SSH yes Putty Putty
hebrew Yes (bought language) not on keys Yes Yes
IMAP yes Yes Yes
push mail Exchange only, Seven for imap Yes Yes
native osx sync^1 no Yes. Yes.
address book photo sync no Yes Yes
speaker phone yes Yes Yes
touchscreen yes no no
works with SDcards that I have yes no, micoSd no, micoSd
works with cabels that I have yes no no
Includes USB cable yes no -20nis
works with udrive gps yes no no
resolution 320x320px 320x240px 320x240px
Works with Salling clicker remote only every thing? Every thing
internal memory 32MB 110MB 110MB
included memory card 1GB (Not really included, I bought it) None -50NIS 2GB microSD
voice dialing no (maybe with 3rd prty software)
GPS (hardware) mouse ( cable is a bit broke) Bluetooth external -450NIS^GPS internal A-GPS
GPS (Sofware)^google-map Udrive Cellcom Nav 23NIS/mo Cellcom Navigator Free?
Flash light no yes no -20 NIS
Audio Port(head phones) 2.5 3.5 (standard) 2.5 -20 NIS | | 1650 + 828 for 36mo GPS | 2160

Total Penalty


| Comments

iTime Card utilizes iCal to record how much time I’ve spent working on a particular project. It is very simple, allowing you to Punch in, Punch out, and generate Invoices. It relies on iCal for managing projects and tasks, calendars are projects and todo’s are tasks.

Right now I’m working on how to release this, so that others might benefit. Please contact me if your interested