| Saturday November 22nd 2014

Feedburner

Subscribe by email:

We promise not to spam/sell you.


Search Amazon deals:

‘codemonkey’ Archives

Steganography made simple

Steganography made simple

As programmers, our code should be readable, not cryptic; but sometimes it’s fun to surprise, obfuscate or conceal. Wikipedia says: Steganography is the art and science of writing hidden messages in such a way that no-one apart from the sender and intended recipient even realizes there is a hidden message. By contrast, cryptography obscures the [...]

Print this file and your printer will jam

Print this file and your printer will jam

Another story from printer-land of 20 years ago: this time about a seemingly impossible bug. While working on the LPS-20 PostScript software, a bug was filed that said roughly, Print the attached file. The LPS-20 will jam. You'll have to open the printer to remove the scrunched up paper. We were no strangers to jammed printers, but a [...]

GUIDs are Great

GUIDs are Great

Whenever someone says they’re going to use a GUID for something, I make it a point to always respond, “No!  Don’t use a GUID there!  If you use one there, eventually you’ll use them all up and we won’t have any left!” Of course, GUIDs don’t get “used up,” and there are plenty to [...]

Cold Boot Encryption Attack Code Released

Jacob Appelbaum, one of the security researchers who worked on the paper cold boot attack on encryption keys (featured in a previous BBtv episode, above) tells us the code has just been released today at the HOPE hacker con in NYC. It's up, it's signed, and here it is. Memory Research Project Source Code

Prevent XSS and SQL Injection

Prevent XSS and SQL Injection

Today I was toying with Apache and made a .htaccess for all of you; that prevents most used XSS and SQL injection vectors in the request uri. It looks at the request uri and sends the malicious user to a log file which sends an e-mail to the webmaster with all his information and what happened when this user was trying to punk with some scripts. I [...]

PHP rand() on Windows vs. true random

PHP rand() on Windows vs. true random

I've always been into scripting things using random numbers based on random functions, like PHP's "rand()" function... but I've never compared these types of functions to true random number generators. Then one day, I stumbled upon Random.org, which is a true random number generating service. The difference is that most random number generating [...]

Clean Room Implementation of Google Page Rank Algorithm

Clean Room Implementation of Google Page Rank Algorithm

Finally a clean-room implementation of Google’s Page Rank Algorithm in Java, reverse-engineered from their numerous commentary on Page Rank. public static int getPageRank(url) { // start off with a random low PR int pageRank = rand.getInt(0, 3); if ( isHostedOn('google.com', url) ) { pageRank++; } else if ( [...]

Test Regular Expressions Online with RegExr

Test Regular Expressions Online with RegExr

Regular expressions are archaic-looking, extremely specific, and amazingly helpful for finding the right data, files or whatever else you need. RegEx, a free online regular expression tester, lets you hone your expression language and terms down, giving you a box to put testing text in and highlighting the words that match your query. For users of [...]

Programming the LOL way…

Programming the LOL way…

This site is a hoot. Check it out for a lighthearted laugh. HAI! This site provides community documentation of the emergent LOLCODE language. It was the creator's original hope that the examples could grow in a way that is both internally consistent and suggest a real, feasible computing language. HAI WORLD: HAI CAN HAS STDIO? VISIBLE "HAI [...]

Stupid .htaccess Tricks

Stupid .htaccess Tricks

Apache server software provides distributed (i.e., directory-level) configuration via Hypertext Access files. These .htaccess files enable the localized fine-tuning of Apache’s universal system-configuration directives, which are defined in Apache’s main configuration file. The localized .htaccess directives must operate from within [...]

Write an Online Bulk Image Downloader Using BASH

Write an Online Bulk Image Downloader Using BASH

So my girlfriend tells me that I need to download several large image files from a photographer's website. I manage her online portfolio/website so I'm used to these types of requests... but this time I was going to find a better way to "leech them all." So anyway, she IM's me the URL for her most recent shoot... I was greeted by a nice default [...]

Myspace Custom Style Remover Greasemonkey Script

Myspace Custom Style Remover Greasemonkey Script

Greasemonkey script MySpace custom style remover does just what it says - remove the custom styles from MySpace pages, leaving every page with MySpace's default style. Whether you love or hate MySpace, there's a good chance you've had to use it every now and then (maybe it's how all your friends plan their social outings or you just want to [...]

Lessons to be learned from PHP

Lessons to be learned from PHP

Rasmus Lerdorf, the inventor of PHP in 1993. He is working for Yahoo! now. "I’ve been reading this latest thread of posts around the net concerning Ruby and shared hosts, or equivalently, ease of installation. Here’s one. Here’s another. And I’m glad, for Ruby, that they are talking about this problem - I hope for [...]

 Page 2 of 2 « 1  2