Category: Uncategorised

Plink.exe “Login as” error

Using plink.exe at the command line allows for all the functionality of PuTTY from a Windows batchfile: plink.exe -ssh -pw password user@10.0.0.1 command In spite of providing the username and password this command, you may find that you are still

Set date and time of a Linux device from a Windows batchfile

I had a client with Linux device that whose clock is not as reliable as it should be, running a time-critical application. As a workaround fix I wrote a Windows batchfile to update the Linux date and time, and  he

Force a favicon onto a webpage

<link rel=”shortcut icon” href=”http://www.my-domain.com/myfavicon.ico” type=”image/x-icon” /> This will force a favicon onto your webpage – useful if you house different websites in subfolders – each subfolder site (or page for that matter) can have a different favicon.

More mobile browser detection testing

My standard method of mobile browser detection as detailed in my previous post here involves the PHP function preg_match(). Unfortunately for me, having compiled a stripped down version PHP to run on ARM linux, the preg_match() function was not included (probably

Using PHP to calculate a simple checksum

There is a very specific set of rules for sending a message in most protocols, and the checksum is sent at the end of a message to make sure no corruption has occurred in transmission. In the instance of sending a

Sending data to a specific port using PHP

I have made a bit of a breakthrough on my back-burner project at work, last mentioned here on 2010 in a post on SQLite connections. As mentioned in that post there is a door control application that runs on a

PHP/MySQL dates

I have posted before as to a MySQL date, i.e. Y-m-d can be converted in a previous post here. I found myself this evening in need of converting UK dates back into the MySQL format. Now, the strtotime() function requires

Display your latest Tweet in PHP

So on my mobile site (http://cyte.co.uk/mobile) I created a button to link to my Twitter and this very blog you are reading. This got me thinking what I could do to keep the content fresh without much effort. As the

View html source in the blackerry torch browser

With the browser in landscape mode, call up the keyboard. Press and hold the “!?123” key until the lock icon shows. Then type 3?$4.

Make your website mobile friendly

With an ever-growing percentage of people with access to mobile web browsers in their pockets, the time is ripe to take steps to optimise your site for mobile users. I’ll be posting as I go through getting my own site

Top