September 19th, 2007
A Java applet runs in a 100% pure java fantasy world, neatly enclosed in its rectangular real estate. Putting code in a page makes sense if you can control that page; doing your little masturbatory stuff, alone in your tiny square box makes no sense. That’s why javascript made it and java didn’t: javascript acknowledged that the game was about getting intimate with the page, and getting your hands covered with slimy tag soup.
Reddit comment by fab13n on Joel’s article “Strategy Letter VI”
Posted in Misc | No Comments »
July 29th, 2007
User Interface:
Miscellaneous:
Elliote’s notes on Architecture & Design World:
In Ivar Jacobsen’s lunch keynote he reveals that he’s pretty much given up on large, all-encompassing “processes” like RUP. He’s now advocating picking and choosing from a grab-bag of individual “practices”, which is what most shops were doing anyway.
Elliote’s notes on EBay scaling issues: Ebay has gone through three major changes in their architecture. The first version was based on Perl, the second on C++/IIS (ISAPI.dll) now it’s Java.
OSCON 2007 Presentation papers [conferences.oreillynet.com]
OSCON Presentation on AJAX Performance: Performance Javascript mantra: Be lazy, be responsive, be pragmatic, be vigilant.
Web browsers are more like mobile phones than desktops. Limited, flimsy, temperamental platform being stretched beyond its initial design goals. But everyone’s got one, so it’s still the best place to be.
http://odftoolkit.openoffice.org: An effort to open OpenOffice APIs to non UI-driven applications, like document generation or conversion (think of PDF!)
Posted in Misc | No Comments »
May 19th, 2007
Originally Javascript was intended for “enhancing” static web-pages with dynamic behaviour and was therefore positioned as an HTML extension for a long time. This is also reflected by Javascript documentation on the web; Naturally the target audience is the web-developer and almost every introduction puts Javascripts into HTML context, failing to explain underlying language concepts. Douglas Crockford is one of the few who tackles Javascript as a programming language.
Also helpful:
Posted in Tech | No Comments »
April 21st, 2007
If you want to style buttons in your web-application you inevitably end up with the <button> HTML element. There are alternatives: CSS’ing your <input type=submit> tag, using prerendered (!) images with <input type=image>, using links instead of form elements, etc. However if you want a flexible button layout without compromising the browser’s submit mechanics, then <button> should be the right thing, you’d think.
The “value proposition” goes like this: You can put any valid HTML inside the button element, for example background images or more spohisticated: a table with images for rounded corners on both sides and a stretching text-aligning middle AND it should behave like <input type=submit>. Nice! Ok and now to reality, welcome to “Button hell”.
Summing up the amount of work I needed to fight through the problems above, I would say it cost me a week of time and approx. 2500 hairs of my scalp.
Posted in Tech | 15 Comments »
February 26th, 2007
Some new pictures of Romina here (opens in new window). As you can (hopefully) see I experimented with an Javascript based slideshow. I found the following free, ready-to-use implementations: HighSlide, Thickbox, Lightbox, Greybox and Smoothgallery. I used Smoothgallery because it works with standardscompliant markup and is relatively easy to set up. Hacked up a small script for generating the gallery. I first tried to embed the gallery in the blog post, but got some sideeffects with the layouting. Furthermore I would have to include the Javascripts in the php-header of the wordpress theme, which of course decreases load time. So, although not a fan of “popups” I decided to use them for those mini-galleries.
Posted in Tech, Pics | 2 Comments »
January 6th, 2007
Just upgraded to Wordpress 2.0.6 because of security issues. The upgrade was easy as always: Just copy the new files over the old ones, request an upgrade page, finished. Everything works as before: plugins, themes, etc. Fine piece of software.
Posted in Misc | No Comments »
January 2nd, 2007
Finally had some time for a new theme. I switched from the default Kubrick layout by tweaking the CSS and some of the PHP sources. I’m by no means a CSS expert but during the whole thing I learned quite a bit:
- Prefer paddings for spacing instead of margins especially for elements like headings and lists. Margins tend to obscure your layout since you can never be sure if a neighbour element’s margin pushes you around. Set 0px margins explicitely to avoid browser defaults.
- Don’t make something inline what is normally block (e.g. for preventing line-breaks between a heading and a smaller caption). This will catch you just behind the next corner.
- Beware of the IE “Double margin bug”. What a PITA, cost me an hour!
- Use floats for your sidebar, don’t do tables.
- Fonts have very different sizes for the same “Point size”. This is expressed by the so called aspect ratio. Problem should be solved by the font-size-adjust CSS property which unfortunately isn’t implemented across various browsers.
- The X11 base font equivalent to “Georgia” is “Utopia” not “Times New Roman”.
- Keep your CSS simple. Browser quirks WILL byte you. Restrain from dirty CSS hacks, even if they’re well documented.
- Use browsershots.org for cross-browser/cross-platform testing.
As for the layout itself: I switched to a serif font (Georgia) for readability reasons. Don’t use Times for this prupose as it renders badly on computer screens. The content area is now emphasized by having a dark surrounding. I used grey instead of pure black since latter would mean too high contrast and hurts the eye. Finally I streamlined the look for various pages. The main page, archives and detail page now all have a sidebar. This is for consistency, the original layout switched to a “wide-content” layout.
Posted in Misc | No Comments »
November 14th, 2006
Well, rumors are over, they’ve done it. Here some quicklinks:
Posted in Tech | No Comments »
October 24th, 2006
- fastUtils (fastutil.dsi.unimi.it) Another enhancment library for Java collections like Javalution (see also earlier post). Released under LGPL.
- mg4j (mg4j.dsi.unimi.it) “Managing Gigabytes for Java”. A libary for creating reverse indices. Similar to Lucene although a more lowlevel approach. Read about the differences here. Released under LGPL.
Posted in Tech | No Comments »
September 19th, 2006
Posted in Misc | No Comments »
|