Archive for the ‘programming’ Category

Maker’s Schedule vs Manager’s Schedule

Friday, July 31st, 2009

“One reason programmers dislike meetings so much is that they’re on a different type of schedule from other people. Meetings cost them more.”

Maker’s Schedule, Manager’s Schedule

A good article by Paul Graham.

Don’t disturb your programmers!

Snow Stack – CSS 3D Visual Effect with WebKit

Wednesday, July 22nd, 2009

This video shows “Snow Stack”, a 3D CSS Visual Effects demo built with HTML, CSS Effects and JavaScript in the latest WebKit nightly on Mac OS X Leopard and Snow Leopard. You can try this out yourself by reading the details on www.satine.org.

Wow! This is mad impressive! And if it’s true that the graphics card is doing most of the work and the CPU is hardly loaded at all, it is borderline crazy!

Snabbare nyhetsförmedling

Tuesday, July 21st, 2009

Det har varit långsamt att visa vissa sidor på ny.heter.se. Förra veckan så tittade jag i MySQLs loggfil för långsamma frågor och insåg att det är på grund av att jag gör uppslagningar med WHERE IN, ORDER BY och LIMIT begränsningar.

Dessa urvalskriterier medförde att MySQL inte kunde använda något av de tabellindex som finns utan fick göra en långsam filsortering för att få fram det slutgiltiga resultatet. Efter en del googling så hittade jag sidan Mysql query optimization for ORDER BY.. LIMIT queries där ett förslag var att prova med att förenkla databasfrågorna och göra sorteringen i den anropande koden istället.

Jag provade detta och resultatet är en otrolig prestandaförbättring! Att det dessutom är mer troligt att de cachade resultaten för de mindre databasfrågorna kommer att kunna återanvändas är ytterligare en vinst.

Så njut av snabbare svarstider på ny.heter.se, det enklaste sättet att läsa nyheter på!

Snabbare nyheter

Tuesday, June 9th, 2009

De saknades index på två foreign keys i en tabell vilket gjorde de flesta SQL-frågor onödigt långsamma. Detta har jag nu åtgärdat, så ny.heter.se ska till allas glädje nu vara betydligt snabbare!

Java’s New G1 Collector Not For-Pay After All

Saturday, June 6th, 2009

Slashdot Developers Story | Java’s New G1 Collector Not For-Pay After All

Back on track, but let’s see for how long…

How Software Engineering Differs From Computer Science

Saturday, June 6th, 2009

“cconnell sends in a piece he wrote for Dr. Dobb’s which ‘argues that software development will never be a fully formal, rigorous discipline, and the reason is that software engineering involves humans as central to the process.’”

Slashdot Technology Story | How Software Engineering Differs From Computer Science

Java Gets New Garbage Collector, But Only If You Buy Support

Sunday, May 31st, 2009

Slashdot Technology Story | Java Gets New Garbage Collector, But Only If You Buy Support

I doubt this has anything to do with the Oracle deal which means that they had planned to go in this direction before. Maybe I’ve just missed it? But I find it a troublesome development that some features of Java would be limited to those that pay for them.

Google Wave Developer Preview at Google I/O 2009

Friday, May 29th, 2009

Google Wave looks quite sweet!

64-bit libsvnjavahl

Thursday, May 28th, 2009

Note to self.

If you run Eclipse in a 64-bit JVM you need to make sure that all native libraries that are used are compiled for 64-bit as well.

This will not be the case if you install Subversion from MacPorts. Instead you need to install the Subversion package from openCollabNet.

With IBM out, Oracle jumps in to buy Sun for $7.4B

Monday, April 20th, 2009

With IBM out, Oracle jumps in to buy Sun for $7.4B – Yahoo! Finance

I’ve never really been a fan of Oracle but hopefully they won’t be too bad on the Java language and the MySQL database.