Archive for the ‘code’ Category

May

28

Web developer gang sign

By akie

webdeveloper-gang-sign.jpg

This is the <head> tag :-)

From Flickr

Nov

29

Building a 3D game-engine in Javascript

By akie

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.

Oct

25

If architects had to work like web developers

By akie

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.
(more…)

Aug

28

Hug a developer

By akie


Found on reddit programming.

Jun

26

Booting a computer in your web browser

By akie

This is a screenshot of a computer booting inside your web browser. Imagine the possibilities :)

pc-emulation-in-java.gif

link so you can try it yourself.

Jun

26

Nerdy lyrics

By akie

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

More

Jun

11

An Introduction to Programming C-64 Demos

By akie

I found this wonderful introduction to programming C-64 demos. Ah, those were the days :)

* = $0801

lda #$00
tax
tay
jsr $1000 ; initialize music

mainloop: lda $d012 ; load $d012
cmp #$80 ; is it equal to #$80?
bne mainloop ; if not, keep checking

inc $d020 ; inc border colour
jsr $1003 ; jump to music play routine
dec $d020 ; dec border colour
jmp mainloop ; keep looping

May

23

Great site for developers

By akie

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.

May

23

New & flashy open source webmail

By akie

I really like this new & open source webmail project called AtMail:

atmail.gif

May

11

“How I Built a Working Poker Bot”

By akie

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.

imageaxd.gif

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.

Mar

31

Best programmers are much better than average?

By akie

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.

Mar

31

“More data usually beats better algorithms”

By akie

This is an interesting piece I found: More data usually beats better algorithms.

Mar

16

TinyMCE for Drupal 6

By akie

Hi there,

I’ve managed to port TinyMCE to Drupal 6. You can download it here: TinyMCE for Drupal 6.Screenshot

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.

Close
E-mail It