Linked because I keep on forgetting how this works and it’s driving me crazy!! 😉
Category: code
Flexible grid & flexible images
Open this web page and resize it – from iPhone-size to XXL. Notice how the design changes based on how much space is available. Notice how the images scale based on big your screen is. Explained here and here (thanks A List Apart!).
Building a 3D game-engine in Javascript
Jacob Seidelin over at Opera.com has a very interesting write-up on how to create the basics of a 3D game engine in Javascript. The final result is here (move around by using the arrow keys) and looks like this:
While it may not look like much, it’s still a Wolfenstein-quality 3D-engine in Javascript – and I think that’s quite impressive.
If architects had to work like web developers
I really like this:
Dear Mr. Architect:
Please design and build me a house. I am not quite sure of what I need, so you should use your discretion. My house should have somewhere between two and forty-five bedrooms. Just make sure the plans are such that the bedrooms can be easily added or deleted. When you bring the blueprints to me, I will make the final decision of what I want. Also, bring me the cost breakdown for each configuration so that I can arbitrarily pick one.
Keep in mind that the house I ultimately choose must cost less than the one I am currently living in. Make sure, however, that you correct all the deficiencies that exist in my current house (the floor of my kitchen vibrates when I walk across it, and the walls don’t have nearly enough insulation in them).
As you design, also keep in mind that I want to keep yearly maintenance costs as low as possible. This should mean the incorporation of extra-cost features like aluminum, vinyl, or composite siding. (If you choose not to specify aluminum, be prepared to explain your decision in detail.)
Please take care that modern design practices and the latest materials are used in construction of the house, as I want it to be a showplace for the most up-to-date ideas and methods. Be alerted, however, that kitchen should be designed to accommodate, among other things, my 1952 Gibson refrigerator.
Read More
Hug a developer
Found on reddit programming.
Booting a computer in your web browser
This is a screenshot of a computer booting inside your web browser. Imagine the possibilities 🙂
link so you can try it yourself.
Nerdy lyrics
Nerdy but funny interpretations of some well known song lyrics:
10:54 Xore|work 35- /**
10:54 Xore|work 36- * Break it Down
10:54 Xore|work 37- */
10:54 Xore|work 38: interface HammerTimer {
10:54 Xore|work 39- public void stop();
10:54 Xore|work 40- }
10:55 Boose def workin_it (self):
10:55 Boose stop()
10:55 Boose collaborate()
10:55 Boose listen()
10:56 cdemwell um, surely you mean stop(collaborate && listen); // or do you?
10:57 wildcard1 for i in `primes | head -2`; do ice; done; baby
An Introduction to Programming C-64 Demos
I found this wonderful introduction to programming C-64 demos. Ah, those were the days 🙂
* = $0801
lda #$00
tax
tay
jsr $1000 ; initialize musicmainloop: lda $d012 ; load $d012
cmp #$80 ; is it equal to #$80?
bne mainloop ; if not, keep checkinginc $d020 ; inc border colour
jsr $1003 ; jump to music play routine
dec $d020 ; dec border colour
jmp mainloop ; keep looping
Great site for developers
WebAppers is a great site for web application developers – like me. It highlights great open source web application projects, like the AtMail project I blogged about earlier.
New & flashy open source webmail
I really like this new & open source webmail project called AtMail:
“How I Built a Working Poker Bot”
Someone has written a working poker bot, and has decided to tell how to build one yourself. Below is a screenshot of what must be the strategy editor.
Apparently he’s using a rule based expert system, which is a logical choice (imho) given the problem at hand. In the comments I found a link about breaking the random number generator in online poker, which makes the outcome of any poker hand completely predictable. Fascinating stuff.
Best programmers are much better than average?
This blog post talks about good programmers and bad programmers. Conclusion: you’re better of with 1 good programmer, than with 10 average ones. The same goes for code: good code can make a programmer much more productive.
“More data usually beats better algorithms”
This is an interesting piece I found: More data usually beats better algorithms.
TinyMCE for Drupal 6
Hi there,
I’ve managed to port TinyMCE to Drupal 6. You can download it here: TinyMCE for Drupal 6.
Installation
- 1. Place the entire tinymce directory into your the ‘sites/all/modules/tinymce‘ directory.
- 2. Download TinyMCE 2.1 and remember to uncompress the file and make sure the folder is named ‘tinymce‘.
- 3. Place the entire ‘tinymce’ engine folder inside your ‘sites/all/modules/tinymce/‘ directory. So the TinyMCE engine will live in ‘sites/all/modules/tinymce/tinymce/‘
- 4. Copy the folder ‘sites/all/modules/tinymce/plugins/drupalbreak‘ to ‘sites/all/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/drupalbreak‘. This installs a TinyMCE-plugin that can edit Drupal (page)breaks.
- 5. Visit the Drupal ‘modules’ page via Administer > Site building > Modules and enable the TinyMCE-module.
- 6. Visit the Drupal ‘permissions’ page via Administer > User management > Permissions and choose who gets to use TinyMCE
- 7. Visit TinyMCE-settings page, and create a profile. Make sure to expand and fill out the complete form (!!!). The TinyMCE-settings page is found via Administer > Site configuration > TinyMCE
- 8. Done! Now you can edit and create content with the TinyMCE editor.