I blog this, because it took me some time to figure that out and is so simple to fix.
I just bought a Mac Mini Server with Mac OS X Snow Leopard Server. There is a nice interface to configure apache2, mailserver and everything else. By default there is no php5 enabled.
If you look into the module list in the server admin interface, there is the php5_module. Just check the box, the server will perform a gracefully restart.
I just installed a little script with the following code in it.
echo phpinfo(); ?>
After that I opened the site in the local webbrowser.
The result was:
echo phpinfo(); ?>
Mhhh??? What went wrong?
The answer is quite simple. Mac OS X Server comes with NO php.ini and PHP comes with short_tags disabled by default.
So, just at a php.ini file or add to your script.
I found this little how to on Macrumors, that shows how you can enable writing on Windows formatted harddiscs with Snow Leopard.
Nativ NTFS for Snow Leopard.
The problem is that Microsoft still owns the rights on NTFS and is not that amused if someone else is using it. This thread will be helpful for everyone who is a switcher from Windows to Mac.
A year ago, I bought a Logitech Freepulse Wireless Bluetooth Headphone to listen to my music without getting in trouble with cables.
Normally you need the headphones and a little bluetooth box you plug into the audio device. With the iPhone 3G and 3GS, Apple added the A2DP protocol to listen to music using Bluetooth.
There is a way to use your Freepulse without the little box. Just push the ON button on the headphones for 15 seconds. Wait for the light to flash in blue and red. If the light is flashing, you can easily connect to the headphones from your iPhone.
I had trouble with the audio output from final cut express 4.0.
simple solution for that problem.
just click view -> video out -> canvas playback
I really tried it for at least 10 hours. Installing everything needed including all the libs, compilers and whatever. I even hacked the configure files and copied all the libs manually. No WAY!
If someone has a solutions. Please comment!!!
My solution right now is to use X11 and connect to another server. Not the best solutions I would say.
I found this article about the Google Hardware at CNet.
Surprisingly, Google is doing something so simple but so extremly smart. They put the UPS directly in the server, by placing a 12 volt battery there.
What surprised me the most is the fact that the servers do have harddiscs. I always thougt they keep all the data only in the ram to reach the speed of each query.
Read the article at Cnet incl. pictures.
For a current project we are using some geotargeting stuff and want to map these geodata to a worldmap.
If you need to find the right position with longitude and latitude on a map, you need a map that is absolutly correct. Otherwise you will have the problem that some places are directly in the water. BAD!
So I looked around and found this post about free vector worldmaps
On additional benefit, you can build zoomable maps in flash with these kind of maps.
I recently programmed a MiniCMS for a customer.
To make it easier for the customer to edit content, I looked for a opensource wysiwyg editor and I found spaw2.
Spaw2 has really everything you expect from a wysiwyg editor including fileupload.
It’s really easy to integrate.
Just include the library in you php file, start a new instant of the class and show the editor.
include("spaw2/spaw.inc.php");
$spaw = new SpawEditor("content", $content);
$spaw->show();
That’s it!
Here is a little helper which can be used to search and replace Words in several files at one time.
For this we use perl on the command-line.
perl -p -i.bak -e "~s|search|replace|" file1.txt file2.txt file3.txt
The system will add a .bak file for each file so you have the old stuff too.
Sometimes you leave the house and you Mac has to run for a little while, but then you want it in standby.
Here is a easy way to do this with a shell command.
Open a terminal window and type in the following:
sleep 900 && osascript -e 'tell app "Finder" to sleep'
This sets a 900 seconds (15 minutes) waiting time before putting the Mac into the sleep mode.
Latest Comments