Android --> GZip --> PHP

2013-09-12 05:36 by Ian

Sometimes, you need your android app to ship a large volume of data to a server, and bandwidth is more important than CPU. I ran up against this recently while working on a log-dump function. If the user tries to upload 5000 lines of log, it might be several megabytes of low-density data going over his line.

Read more...

Bury it under the noise floor (Steganography)

2013-03-22 08:59 by Ian

Here is discussed a PHP program to hide encrypted messages and files inside of images without significantly changing the way the image looks. This is meant to be an instructional write-up to touch on some common ideas and mechanisms in cryptography.

Read more...

Automatically adjusting GPU clock by temperature

2011-07-12 09:34 by Ian

My friend and I have built a BTC mining rig named hurrMiner. It contains two Radeon 6990 graphics cards that run very hot (~95C). Apparently, there is a thermal shutoff hard-coded onto the card, but we really don’t want to let the GPUs reach that point. What follows is my documentation for a script that will monitor the temperature of each GPU and adjust their clocks to approach a given target temperature.

Read more...

Comment [1]

Live GPU Stats (Bitcoin)

2011-06-28 15:44 by Ian

Below is a live temperature graph of the GPUs in hurrMiner over the course of 15-minutes, 1-hour, and 24-hours.

Read more...

Captcha from scratch (PHP / GD)

2010-08-11 07:51 by Ian

A captcha image written from scratch in PHP.

It’s dangerous to go alone. Take this (to protect your forms).

Read more...

Comment

An accessible introduction to PHP optimization

2009-09-07 22:09 by Ian

This was a ticket that I had from a customer who wanted us to increase the upper-limit on PHP script execution because his crappy script wouldn’t finish in time before our server-wide limit shut down his PHP process.

I’m posting it with the hope that it will be of help to someone new to PHP trying to write a cleaner script.

Read more...

Comment

Testing PHP_PDF.DLL on IIS6 and Win2K3

2009-07-02 08:40 by Ian

This is a component that I tested for installation on CrystalTech’s PHP4 servers (yes, we still offer PHP4). Each time a customer requests a component, we have to test it to ensure that it won’t kill the resources on the server. This is the report that I gave to the other server admins…

Read more...

*nix-style services and permissions on NTFS filesystems

2008-03-16 23:09 by Ian

What follows is a ticket that I had last night. It sums up the problems that *nix users often have when trying to understand permissions on Windows servers. This not only applies to PHP, but to any *nix service that runs on Windows and needs to deal with file permissions. This includes FTP, PHP and Ruby (not hosted here for a reason).
Enjoy!

Read more...

Comment [1]

Fixing the WordPress HTTP-500 error

2008-03-16 22:44 by Ian

The Internet has seen a good deal of speculation as to why WordPress fails on an otherwise working PHP installation. A co-worker and I dug into it and found the problem.

Read more...

Comment