Resolve IP Addresses to DNS Names

Sometimes, you have textual data, like log files, with IP addresses. You sometimes want this data to show hostnames instead.

Routers Hacked via Browser

This is uncool: Router hacked through a web browser.

A page will log into your router and force an update with a bad firmware. The only fix would be to reload good firmware, and then fix your router to be less hackable.

I just started on a network where the router had been hacked, but only inasmuch as the DNS was pointing to a nameserver that resolved bad addresses to a Ukrainian search engine.

j_oocms - an excessively object-oriented cms

They say it's bad to use extend too much. This is a *bad* cms.

It's a simple image gallery, suitable for things like personal image hosting.

This was written to study how extend works, and to try out some ideas. At this time, there are six (6) classes. These include text data, html data, form data, multimedia, and photos.

One feature is that there's no relational database. The data fields are defined by the data that's POSTed to the server. This is probably a security hole, but, the idea was to see how it would "feel" to hack in such an environment. It was pretty cool.

Another feature is support for attached multimedia. At this time, that's only photos and html files. Still, it's something.

No Eval? Variable Interpolation on PHP Code

We recently turned off the websites' ability to use the eval() or related functions. In a small CMS I'd written a while back, I was using eval to interpolate variable names in strings. This was a simple way to do "lazy evaluation" on strings I was using as templates. With eval, there was no need to use a special templating syntax - the syntax was PHP's.

Now, with eval turned off, I needed a function to interpolate variables in a string. Here it is:


function interpolate( $string )
{
    foreach ($GLOBALS as $name => $value)
    {
        $string = str_replace( '$'.$name, $value, $string );
    }
    $string = preg_replace( '/[$]\\w+/', '', $string );
    return $string;
}

TXTMOB for Web Hosts (project)

This is a hack of txtmob that's being developed to run on cheap web hosts.

So far, it'll let you send to the group via the web form, so it's suitable for a one-way, moderated list. Good for news.

The sms forwarding feature doesn't work, so, it's not able to do "real" txtmob yet. Maybe it will one day... This code is very alpha, and based on code from SourceForge, that was at version 0.14, so you know what you're getting :-)

I'm not forking the project. This is just a personal fork for personal use.

Fun Details, and Some Roadmapping

Changing Windows 2000 Professional to Windows 2000 Server

The main reason to do this is to allow more than 10 clients to connect to your computer. Aside from that, Win2k Pro doesn't come with all the applications and services that Win 2k Server includes.

Info stolen from: http://www.commodore.ca/news/2002/mar30_02.htm

Week Ending March 30, 2002

Change Windows 2000 Pro To Windows 2000 Server with Freeware Util
NTSwitch is a small freeware program that allows you to turn an existing NT Workstation or Windows 2000 Professional installation into an NT Server or a Windows 2000 Server environment.

It's well-known that Workstation and Server environments are virtually identical. The operating system decides which "flavor" to run in based on two registry values:

Daylight Savings Time Misconfigurations between Computers Can Lead to Cumulative Data Errors

Symptom: my web app starting losing a day whenever I edited some data records. This app was working fine for a while, then, in March, it started losing time. Because my time was quantized to days, it looked like I was losing a day every time I saved the record.

The environment was a shared web hosting account, with PHP for the app, and a MySQL database behind it, on a separate machine.

According to a new law, starting in 2007, DST starts three weeks earlier than it has in the past.

I suspected that the problem is that one machine has the old style DST timezones, while the other machine has the new DST settings. So I created a test script to simulate the effect of multiple edits on a record.

Salary Surveys for Information Technology

2008-03-12: a report on Tech Republic. It's done by Global Knowledge

Web dev salary survey on Zeldman's A List Apart

Another popular survey is done by SAGE.

Fascinating Long/Short Footage about Graffiti. Interesting Mullet Footage Too. Also, Calligraphy as Cryptography.

This is a fascinating set of videos that were take by Converse (the shoe company) of several Oakland area spraycan artists from the early 90s. The commercials were never used.

The "short" commercials are so different from the lengthier interview footage. It's like night and day, or, maybe, "child" and "young adult".

See: the videos

Nice Mullets!

See: http://crayone.com/ for more.

Additionally, this fascinating article about vernacular mathematics, and stylized graffiti as a form of community cryptography: Street Math in Wildstyle Graffiti Art.

Reading Stuff: Vista Hobbles Microsoft, Social Nets "Like Air", Work

Strange story. MS execs were upset about problems getting their new Vista computers to function well. @NYT.

Good article. Social networks will be like air

The sad state of the labor department, which now dislikes workers. http://shameonelaine.org/.

PHP List Hack: Shared Codebase

This is a trick to allow you to run one copy of the PHPList software on your server, and have separate configurations for each domain. The main advantage is that you don't have a bunch of copies of the same software all over the place. (PHPList takes up around 5 megs of disk. Using a similar technique with Drupal [which takes up 6 megs], we can install Drupal and PHPList in 260k of space, not including databases.)

At the top of index.php and admin/index.php, there's some code that looks for the config.php file. This new code snippet allowed me to create a config file named "phplist.config.php" in the user's root (or the ftp root) instead of the usual places.

Web Design Contracts

Here's some info about writing contracts. Most contracts are boilerplate, tweaked for a purpose. They should be reviewed by a lawyer, but, let's face it. Possesssion is 90% of the law. Invoice frequently, and get paid frequently, and there's less to contest, and less to negotiate.

On the consultant's side, it's critical to be able to make accurate estimates about how long things will take. That behooves us to record our timesheets accurately, and use them to quantify how long tasks take.

http://kagemedia.com/articles.asp?articleID=28

http://www.sitepoint.com/article/bulletproof-web-design-contract/2

.

Donate Bitcoin to support the writer: 1F13NCPcFKjJ7oy36zc2vBTtqoQCBPpAPH

Comments are disabled

If you wish to comment, post this article on reddit or hacker news.

Syndicate content