Archive for 'Development'

Zend_Date, default time zones and DST

Posted by:

Zend_Date, default time zones and DST

Is your application prepared to support different locales? Do you provide translations and different number formats based on a user’s regional conditions? If so, how about time and calendar dates? Do you keep track of the UTC Offset and the Daylight Saving Time (DST) relative to the time zone your users live in, and are you able to convert dates properly to different time zones? This article will ...

Continue Reading →
6

Clearsilver egg for Python 2.5 (Windows)

Posted by:

bitten Continuous Integration plugin

Since conjoon uses Continuous Integration, I was happy to find out that there is a CI plugin for my favored project management tool trac: bitten lets you configure build scripts and comes with agents that poll the repository to invoke the creation of builds. Although ...

Continue Reading →
0

The grapes of…

Posted by:

According to Andreas Berl’s “Lines of Code Wichtel”, I have

  • 133 files (including *.html, *.phtml, *.js, *.css, *.php, *.ini)
  • 25575 lines of code (including code, comments, empty lines)
  • 12292 lines of pure code
  • 7445 empty lines
  • 5838 lines of comments

A separate documentary is available in the wiki. It’s far from complete, but count another 1000 lines of pure doc to it.

My subprojects (Livegrid, Youtubeplayer) are ...

Continue Reading →
0

Bookmark of the day

Posted by:

Isis Information Architects Inc.

Though updates to this site happened somewhen around 6 or 7 years ago, the authors give lots of examples on how to not design user interfaces. You should not miss the Hall of Shame – lots of nerdy slash geeky controls, but definetly nothing you want to sell your customer as highly intuitive.

The shovel analogy comes in mind. Check Continue Reading →

1

svndiff / deltav algorithm

Posted by:

(This post refers to svndiffs V0 compressed strings).

The article at http://svn.collab.net/repos/svn/trunk/notes/svndiff explains how the svndiffalgorithm works. This post tries to give a more concrete idea of what happens, refering to the example that can be found at the end of the above linked article.

SVN delivers the text deltas base64 encoded, so you first have to decode the string to work with it. Next step ist to check the string for it’s first four bytes, which must represent ...

Continue Reading →
0

introducing cudgets.widget.ListSelectionModel

Posted by:

A ListSelectionModel represents an interval of selections. A selection itself has two properties: index and selected. The index is a numeric value that points to a position in the interval and selected provides information about the state of the index in the selection-interval: true for selected, otherwise false.

Speaking of GUI, ListSelectionModels are needed when a set of items (a List) is available that allows a user to select/deselect any range of items.

A good programmer (who’s into design ...

Continue Reading →
0

javascript, prototypes and object references

Posted by:

If you are using OOP, you are familiar with initializing class members in the head of the source:

/**
 * Pseudocode
 */
class Foo {
    int i = 0;
    Array bar = new Array();
}

However, if you are using Javascript’s prototypying, assigning objects to class (prototype) members will result in static instance variables.

Example:

teaching javascript the concept of interfaces

Posted by:

There’s an easy way to simulate Interfaces in Javascript, this post shows you how it is done.

(Beware, I’m going to mix OO terms in this posts a little bit for the sake of Javascript, but readers familiar with OO concepts will understand what I mean.)

At first we will extend Javascript’s native Object with a method called __implements, which is responsible for comparing class-methods with method-stubs (declared as strings) in an “interface” (quoted, because it is not an Continue Reading →

1

announcing beta release of cucua

Posted by:

Cucua

After some work on reorganizing the package structure and tuning the project guidelines, Cucua has now it’s first 0.1.0 release, available in /trunk.
Of course there are still some classes missing, but if you want to have a clue on how Cucua works this is a fine place to start.
You can find the phpDocumentor created API-docs here, and API-docs generated by doxygen here. And don’t forget to visit ...

Continue Reading →
0

there is no spill! there is no spill!

Posted by:

I bet most of you know those days where hacking your software goes just fine until you expect a minor feature to cause huge problems. It happened to me on saturday when I wrote the layout manager for my javascript empowered table widget. The architecture will be similar to JTable found in the Java/GNU Classpath API – their idea of the separation between the data model and the view/controller is easy to understand, yet powerful.
Since working with ...

Continue Reading →
1
Page 1 of 2 12