Google Maps API - Set map type to use the satellite view from Google Earth
You can also replace G_SATELLITE_MAP with G_HYBRID_MAP to show both the normal and satellite views together.
var map = new GMap2(document.getElementById("map_canvas"));
map.setMapType(G_SATELLITE_MAP);
6 days ago
MATSHITA DVD-R UJ-85J Read offset correction
Read offset correction : 102
1 week ago
DOPE POPE HOPE

glider.js "this.parentnode is undefined" JavaScript error using Prototype and jQuery with noConflict
Dump the prototype.js and effects.js from the glider archive as they are really old now (from May 2007 the same as time glider-0.0.3.zip) and as i found out causes no end of problems. Just replace with the latest files (scriptaculous-js-1.8.1.zip as of this post) from
script.aculo.us/downloads to fix.
3 weeks ago
Message: split() [function.split]: REG_EMPTY
Doh, forgot to escape the pipe..
$string = split('\|', $array);
3 weeks ago
Component 'mscomctl.ocx' or one of its dependencies not correctly registered: a file is missing or invalid
1. Download mscomctl.ocx
2. Copy files to C:\WINDOWS\system32
3. Register the files with Regsvr32
Start > Run...
REGSVR32 mscomctl.ocx
Other common missing components (repeat with the same steps)
comdlg32.ocx
msstdfmt.dll
msinet.ocx
3 weeks ago
Keep a PHP script running in the background after the page has stopped or closed
Useful if allowing a cron to be run from a website
<?php
ignore_user_abort(TRUE); // run script in background
set_time_limit(0); // no time limit
// code...
// ?>
3 weeks ago
Create your own self signed certificate and enable SSL (Mac OS X Leopard)
1. Switch to root
sudo su
2. Make directory
mkdir /etc/apache2/ssl
3. Create certificate
RANDFILE=/dev/random openssl req $@ -new -x509 -days 365 -nodes \
-out /etc/apache2/ssl/apache.pem \
-keyout /etc/apache2/ssl/apache.pem
Common Name (eg, YOUR name) []: localhost
4. Forget httpd-ssl.conf and make httpd-ssl-custom.conf
nano /private/etc/apache2/extra/httpd-ssl-custom.conf
and paste
Listen 443
NameVirtualHost *:443
<VirtualHost localhost:443>
DocumentRoot /Library/WebServer/Documents
ServerName localhost:443
SSLEngine On
SSLCertificateFile /private/etc/apache2/ssl/apache.pem
</VirtualHost>
5. At to the bottom of httpd.conf Include /private/etc/apache2/extra/httpd-ssl-custom.conf
echo "Include /private/etc/apache2/extra/httpd-ssl-custom.conf" >> /etc/apache2/httpd.conf
6. Restart Apache
sudo apachectl restart
If you go to the domain with https:// in Firefox you should be told “The certificate is not trusted because it is self signed.”, then add an exception to allow it.
1 month ago
* New Features
o 3D effects
o Custom filters and effects
o Advanced text support
o Color management
o Speex audio codec
o Dynamic Streaming
o Real Time Media Flow Protocol (RTMFP)
o Dynamic sound generation
o Text engine
o Pixel Bender
o Vector data type
o File upload and download APIs
o Webcam/microphone
o Public bugbase
o Ubuntu support
* Enhanced Features
o Large bitmap support
o Full-screen playback
o Drawing API
o Context menu
o Hardware acceleration
o Anti-aliasing engine (Saffron 3.1)
o Read/write clipboard access
o WMODE
The Last.fm download any track hack
1. Install LiveHTTPHeaders plugin for Firefox
2. Install a download manager (e.g. DownThemAll! plugin for Firefox)
3. Find any song on Last.fm and wait for the page to load (its only really worth doing on full tracks)
4. Firefox > Tools > Live HTTP Headers
5. Press play, then stop on the last.fm player
6. In the header log you should see a link similar to this, select and copy it.
http://s1.last.fm/anon/313334524/aa31857106858cd481adc4254a93a9dc/248/0010016013/25ea725301cd2b9a1ba49c92ccda66fe/1224246011/44/142211215/fod.mp3
7. Start the download in your manager with the link found, you may need to delete the last invisible return character at the end of the URL.
N.B. This works for any song and you should get between 128 and 320, remember to delete it after and use the buy link if you like it.
1 month ago