1Mbit BroadBand Internet Access a Legal Right in Finland

Signs of a culture moving forward, or just frivolous waste of government money? Finland has announced that by next July, 1mbit broandband internet access, which is roughly 20 times quicker than dial up (assuming a generous 50kbps assumption for dial-up) is now a legal human right. While it’s certainly a step towards the future, Finland still plans to blast us away by promising 100mbit internet connections by 2015. With this announcement, Finland joins the ranks of Estonia, France, and Greece where internet access is considered a human right.

[Source: cnet news]

Continue Reading

Computer “Chronos” Bites the Dust

So long “Chronos”, it’s been one hell of a five year (going on it’s sixth) ride. All the abuse you took from me, being more or less on 24×7, overclocked from 3.2GHz to 4Ghz, watercooled, and on it’s 4th motherboard and second CPU.

This computer has carried me through countless nights of Starcraft and Counter-Strike, then Counter-Strike Source. This computer has brought me to level 60 in WoW, then level 70. This computer has made countless videos, websites and edited countless pictures. This computer has taken me through BattleField 1942, Battlefield 2, then through EverQuest II, Eve Online, Team Fortress 2, and Left4Dead.

You have helped me produce endless amounts of term papers, exhausting hours of research, Catia, Rhino3D, MatLab and Maple. I have received job offers from you, found friends with you, and resurrected you from the dead more times than I can remember.

Now you don’t remember your BIOS settings, nor do you stay working for more than a few minutes at a time without the BSOD or eerie crackling and beeping noises. I miss you already 🙁

Continue Reading

ERAU Nukes My E-Mail Account, Says “Too Bad”

4 years, over 100 grand, and endless repetition “you must use your e-mail account”, then after graduating and 6 months later, they delete it. I was too busy in the midst of relocating my life halfway across the country, never mind accepting a new job the education helped to provide, and now my account was nuked.

I called up their tech support line, hoping to get it reactivated for just a week or two, so I can move services that were associated with that account over to a new email account, but it’s a no-can-do. They’ve killed it for good and were unwilling to re-activate it. I even offered to pay, since working at the school I also know that the services their email servers provide aren’t free. Come on guys, I just need it turned on for a week.

Honestly I was hoping they would treat their alumni better, but they still don’t mind calling every now and then to ask for money. To make it worse, I can’t sign up on their alumni website either.

What a bunch of jerks. FYI any recent graduates, your account expires in 180 days.

Continue Reading

Secure, fast, low-resource file delivery

Here’s the problem. I have a handful of files between 500MB-800MB that I need to host up on my website. I need to get these files to people that belong to a certain vBulletin community, and only people of that vBulletin community. Furthermore, the people of that community aren’t the sharpest knives in the drawer, so it has to be easy. I have limited resources, which include a shared LAMP webserver, and a 150/150 VPS.

The requirements? Just a few:

  • Must be able to track users to sessions to monitor and log abuse
  • Links generated should be anti-leech and secured with one-time use tokens
  • Links generated can only be accessible from this vBulletin community
  • Links must be easy to use

The limitations? It’s like being handcuffed to a telephone pole:

Things I’ve tried, and failed to work:

  • Doing the classic PHP readfile() and writing to the buffer
    • Far too slow
    • Persistant PHP session isn’t nice to shared hosting
    • readfile() in lighttpd and Apache cause the process to consume massive amounts of memory for large files, doesn’t work in VPS
    • More than 5 users or so and the load spikes to high heaven. Server /suicides
  • Using lighttpd and mod_secdownload
    • Far faster than PHP readfile()
    • Will only work on VPS as shared hosting is Apache only
    • If you don’t have enough RAM (which I don’t on the VPS) – the process with explode and hang. I can’t kill it, and the server refuses connections until the watchdog resets the process or until I reboot the VPS. Server /suicides again.
  • Using mod_rewrite in conjunction with rewritemap and prg in Apache
    • Sounds perfect – you can create tokens, and then revoke them with the rewritemap program, then use mod_rewrite to hide path source!
    • …Until you realize that you need to modify your apache.conf to specify the rewritemap program (requires root or sudo, not happening on either VPS or shared)
    • Your rewrite program is executed on server start, and is persistent – which is not allowed on shared hosting anyways. I /suicide
  • Apache with mod_xsendfile
    • Can’t install custom modules on Apache in shared or VPS hosting
    • Apache is still a fat hog of a server, and using Apache to send binary files is about as efficient as using Humvees for mass transit.
  • Dynamic mod_rewrite definitions in .htaccess files
    • Use a manual lockfile with a SQL database to dynamically generate .htaccess mod_rewrite definitions
    • Each rewrite entry for a unique URL a time limit
    • Each successful request for token updates both the database and the .htaccess file
    • This seems like the best solution – it will work with the most hosting environments too
    • This behavior is basically emulating mod_secdownload for lighttpd in Apache with mod_rewrite

The last entry (emulating mod_secdownload in Apache with mod_rewrite) looks good, and is probably going to be what I’m going to use – I’ll be posting the results here as soon as I finish coding it. Weeeee!

    Continue Reading

    Wee new dev box

    Recently ordered up a pair of Opteron 280‘s to stick in my GT24 – looking forward to having a dev box. Too bad it doesn’t support hardware virtualization – otherwise it’d be an ESX box.

    Additionally, here’s a picture of the live network traffic on my box – it is generated with MRTG and cron and shows the rate of network traffic on my internet interface on my home router. You can see it on my “Network Usage Graph” on the right ->

    Continue Reading

    Stats on Dreamhost

    If you’re running a CMS with dynamic redirection using mod_rewrite on DreamHost, you may run into a problem trying to access your statistics – since the .htaccess file specifies files and links, and not server configuration redirects like the /stats/ directory, you can be in a bit of trouble. When you try to access the /stats/ virtual directory, the url will get rewritten, your CMS will get confused, and you will get an error instead of seeing your precious website statistics. I had been using Google Analytics, but that requires that your website’s code be loaded in order for the stats to be generated. This does not catch hotlinking or deeplinking into images or other media. 

    I had been searching for weeks on how to write a mod_rewrite exception, but anyone that knows mod_rewrite code knows it will make you want to jump off a cliff. It’s honestly almost as bad as writing a config file for sendmail or bind before they introduced the structued layout.

    Today I had a thought, since this problem is nearly unique to DreamHost, why not search there for potential solutions to the problem? 10 minutes of digging in the DreamHost wiki and I had my solution – Making stats accesible with htaccess – this simple rule inserted before your permalink rules allows a catch and exception for the /stats/ virtual directory:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
    RewriteRule . – [L]

    Continue Reading