May 2013
1 post
I Appear Missing →
Calling all comas… I Appear Missing. Watch. Listen.
April 2013
4 posts
http://www.playmapscube.com/ →
SPDY: An experimental protocol for a faster web -... →
Home of the Chromium Open Source Project
These Are the First Videos Being Shot With Google... →
It’s been a long wait, but the very first videos shot with Google Glass out in the wild are finally starting to pop up on the Internet. Some of them almost live up to the crazy spectacle of the first Google demos, but most don’t.
Google Glass — Google Developers →
March 2013
5 posts
http://sidigital.co/ →
Design example of presenting a modern business
The Scale of the Universe →
Converting documents linux unoconv →
http://owncloud.org/ →
Bombermine The most Massively Multiplayer Online... →
February 2013
9 posts
A dynamic layout plugin for jQuery The flip-side... →
Multi-line ellipsis →
Lean Slider is a simple jQuery image slider →
http://www.1stwebdesigner.com/design/snippets-html5... →
webrtc demo application →
http://www.webrtc.org/demo
Adding SSL to a site in 5 minutes
cd /etc/apache2/ssl/site-name/
openssl genrsa -des3 -out private.key 2048
openssl req -new -key private.key -out server.csr
Remember to use www.domain.co.uk and not domain.co.uk when asked!
Buy GeoTrust QuickSSL Premium Certificate
https://www.thesslstore.com
cat server.csr
Copy and past CSR into site.
Choose File Based Auth and upload file to server
You then get email with both...
Force SSL
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.website.co.uk/$1 [R,L]
Adding a second failover IP
eg 81.82.83.84 is the failover IP
# backup config incase something goes wrong
cp /etc/network/interfaces /etc/network/interfaces.save
nano /etc/network/interfaces
post-up /sbin/ifconfig eth0:0 81.82.83.84 netmask 255.255.255.255 broadcast 81.82.83.84
post-down /sbin/ifconfig eth0:0 down
/etc/init.d/networking restart
For each new IP copy those lines and increment eth0:0 to eth0:1,...
How to Telnet to an SMTP Server (with Examples) →
See also
http://www.base64encode.org/
January 2013
7 posts
First I had to get my Windows7 PC to see my phone as it thought it was a HTC Dream
See this
http://gadgets.softpedia.com/news/How-To-Solve-HTC-Hero-Sync-Problem-in-Windows-7-4442-01.html
http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/HTC-Sync-81096.shtml
http://handheld.softpedia.com/get/Drivers/HTC-Hero-Drivers-81097.shtml
Then tried this….
Tried this from official...
Opera Mini and Mobile Orientation Switching →
Developing Google Maps on mobile links
http://mobiledetect.net/
https://developers.google.com/maps/faq#browsersupport
Which web browsers does the Google Maps JS API support?
The Google Maps JavaScript API supports the following web browsers:
Google Maps JavaScript API V3:
IE 7.0+ (Windows) *
Firefox 3.0+ (Windows, Mac OS X, Linux)
Safari 4+ (Mac OS X, iOS)
Chrome (Windows, Mac OS X,...
Size of a directory & Free disk space →
Accelerate x.264 1080p movies over the GPU Guide →
Blob sizes
TINYBLOB - 255 bytes
BLOB - 65535 bytes
MEDIUMBLOB - 16,777,215 bytes (2^24 - 1)
LONGBLOB - 4G bytes (2^32 – 1)
December 2012
5 posts
Live streaming links
http://www.adobe.com/uk/products/flash-media-encoder.html
+
http://aws.amazon.com/cloudfront/
(Adobe’s Flash® Media Server)
Webinar: Live Streaming for Amazon CloudFront using Adobe Flash Media Server 4.5
http://www.youtube.com/watch?v=xDRWq7e0ero
Zendesk - support ticket system →
READING EMAILS WITH PHP →
Openstreet map static maps
http://sourceforge.net/scm/?type=svn&group_id=278801&source=navbar
http://staticmap.openstreetmap.de/staticmap.php?center=39.865211012909,-97.460937498088&zoom=3&size=500x350&markers=40.807582086152,-93.242184816049,ltblu-pushpin
http://wiki.openstreetmap.org/wiki/Static_map_images
Google-style Geocoder / Street Address to... →
November 2012
2 posts
Easy FTP mirroring with wget →
wget -m [prot]://[username]:[password]@[hostname]/[directory to mirror]
The Useless web →
October 2012
23 posts
apt-get remove dovecot spamassassin postfix →
How to change the MySQL data default directory →
dnuos output and clearing useless hidden files
find . -name '.DS_Store' -exec rm {} \;
find . -name '._*' -exec rm {} \;
dnuos . -D -S -t -o "[n,-120] [s,5] | [t,-4] | [q]" -f _dump.nfo
Replacing MySQL Full-text search with Sphinx →
Sphinx →
Sphinx is an open source full text search server, designed from the ground up with performance, relevance (aka search quality), and integration simplicity in mind. It’s written in C++ and works on Linux (RedHat, Ubuntu, etc), Windows, MacOS, Solaris, FreeBSD, and a few other systems.
Sphinx lets you either batch index and search data stored in an SQL database, NoSQL storage, or just files...
Apache Lucene →
Apache Lucene(TM) is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform.
MyISAM versus InnoDB tables →
Better MySQL searches with Sphinx →
MySQL Replication using phpMyAdmin
It’s fairly straight forward but these are very rough steps from memory and I’ll make them clearer sometime. Maybe some screendumps too.
You’ll obv need two servers for this, the live one (master) and the one which will sync with it to keep a perfect match when the master gets modified (slave).
1. Setup phpMyAdmin on both servers.
2. On both servers edit
nano...
Installing Apache / PHP / MySQL / Memcached on...
Note this is just a basic install for testing. Does not cover security or optimisation
apt-get install python-software-properties
add-apt-repository ppa:ondrej/php5
apt-get update
apt-get upgrade
1. Install Apache
apt-get install apache2
Test
http://localhost
2. PHP
apt-get install php5
Test
rm index.html
nano /var/www/info.php
<? phpinfo();
3. MySQL
apt-get install...
Installing Nginx / PHP-FPM / MySQL / Memcached on...
Note this is just a basic install for testing. Does not cover security or optimisation
apt-get install python-software-properties
add-apt-repository ppa:ondrej/php5
apt-get update
apt-get upgrade
1. Install Nginx
apt-get install nginx
/etc/init.d/nginx start
Test
http://localhost
2. PHP
apt-get install php5-fpm
nano /etc/nginx/sites-available/default
server {
server_name _;
root...
Scaling Facebook with OpenSource tools →
Codeigniter on nginx →
Installing Nginx With PHP5 (And PHP-FPM) And MySQL... →
Error: No available formula for zlib (dependency...
brew tap homebrew/dupes
Homebrew The missing package manager for OS X →
Quick install test of nginx on mac
1. Download source
http://nginx.org/download/nginx-1.2.4.tar.gz
2. Bah PCRE library
./configure --without-http_rewrite_module
3. Build
make
sudo make install
4. Run
sudo /usr/local/nginx/sbin/nginx
5. Welcome to nginx!
http://localhost/
6. Stop
sudo /usr/local/nginx/sbin/nginx -s stop