Amit’s Game Programming Information
Amit’s Game Programming Information
Amit is a hobbyist game programmer. He must see lots of action.
But I digress. Cause I’m actually reading everything on his site and enjoying it.
Amit’s Game Programming Information
Amit is a hobbyist game programmer. He must see lots of action.
But I digress. Cause I’m actually reading everything on his site and enjoying it.
Oh, man, how deviously fun!!
Encryption is for sissies. If you have a wireless network in your home that your neighbor is mooching off of, this page gives you a few pointers on how to make their web experience more entertaining: Upside-Down-Ternet
I prefer the blurry net rather than any sort of redirecting.
This certainly tempts me to open up our network…
(Thanks, Pete Stevens!)
My neighbours are stealing my wireless internet access. I could encrypt it or alternately I could have fun.
I’m starting here by splitting the network into two parts, the trusted half and the untrusted half. The trusted half has one netblock, the untrusted a different netblock. We use the DHCP server to identify mac addresses to give out the relevant addresses.
ddns-updates off; ddns-update-style interim; authoritative; shared-network local { subnet *.*.*.* netmask 255.255.255.0 { range *.*.*.* *.*.*.*; option routers *.*.*.*; option subnet-mask 255.255.255.0; option domain-name “XXXXX”; option domain-name-servers *.*.*.*; deny unknown-clients; host trusted1 { hardware ethernet *:*:*:*:*:*; fixed-address *.*.*.*; } } subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.2 192.168.0.10; option routers 192.168.0.1; option subnet-mask 255.255.255.0; option domain-name-servers 192.168.0.1; allow unknown-clients; } }
Suddenly everything is kittens! It’s kitten net.
/sbin/iptables -A PREROUTING -s 192.168.0.0/255.255.255.0 -p tcp -j DNAT –to-destination 64.111.96.38
For the uninitiated, this redirects all traffic to kittenwar.
For more fun, we set iptables to forward everything to a transparent squid proxy running on port 80 on the machine.
/sbin/iptables -A PREROUTING -s 192.168.0.0/255.255.255.0 -p tcp -m tcp –dport 80 -j DNAT –to-destination 192.168.0.1
That machine runs squid with a trivial redirector that downloads images, uses mogrify to turn them upside down and serves them out of it’s local webserver.
#!/usr/bin/perl $|=1; $count = 0; $pid = $$; while (<>) { chomp $_; if ($_ =~ /(.*.jpg)/i) { $url = $1; system(”/usr/bin/wget”, “-q”, “-O”,”/space/WebPages/images/$pid-$count.jpg”, “$url”); system(”/usr/bin/mogrify”, “-flip”,”/space/WebPages/images/$pid-$count.jpg”); print “http://127.0.0.1/images/$pid-$count.jpgn”; } elsif ($_ =~ /(.*.gif)/i) { $url = $1; system(”/usr/bin/wget”, “-q”, “-O”,”/space/WebPages/images/$pid-$count.gif”, “$url”); system(”/usr/bin/mogrify”, “-flip”,”/space/WebPages/images/$pid-$count.gif”); print “http://127.0.0.1/images/$pid-$count.gifn”; } else { print “$_n”;; } $count++; }
Then the internet looks like this!
And if you replace flip with -blur 4 you get the blurry-net
Rapid prototyping of interactive ideas and concepts is a powerful tool in developing interactive projects. It helps the client visualize a designer’s otherwise ambigious design-school-speak, while also helping the designer to validate and articulate what’s in their head. Of course, you need to be pretty adept at your craft (in this case, Flash design) to be able to roll out this stuff quickly.
Now that the HLA project is done (though not yet billed!), I can share some of the rapid prototypes that were built but didn’t quite make it intact into the final product (though the spirit is still there).
Here are some samples of early rough and dirty concepts:
Want the source code? Here you go, warts and all (and no warranty implied whatsoever). Remember, these prototypes are rapid, so they’re not well-documented or built “the right way”: http://hla.mod7.com/_prototypes/source.zip (1.43 MB). Have fun!
Pentagram’s Michael Bierut comments on The National Design Award Communication Design winners’ political statement to theWhite House in his Design Observer article. The article is well worth the read as it gives the briefest of overviews regarding American politics and design.
The whole CommD declining the invitation is an interesting, if not empty, gesture, to be sure. My favorite take on the controversy is Michael’s note:
“What we have here, then, is a symbolic protest to a symbolic event.”
BAM! Ouch! Served!
Content with Style: Playing Nice with the Other CSS Kids <- This article has some good ideas for developing in CSS across a team. Some great organizational tips, too. Not too sure about the importing of multiple CSS files into a master CSS file, though.
Other gems this article leads to is some interesting thoughts on creating a standard CSS framework (see previous post) and some tactical stuff, like using "tags" to organize your mondo-biggo CSS files:
Wow, I’m becoming quite the XHTML/CSS geek these days, eh?