Archive for the 'development' Category
Iterators in PHP
Recently, while playing with Scala/Python/PHP comparative implementation of lazy algorithms (I will hopefully describe them some days later) with colleague and friend of mine Michael Fuks, I sorrowfully discovered that, despite there are several SPL units, which define basic Iterator interfaces and functionality, most of the functionality available for arrays is missing for Iterators.
So [...]
[ Back to top ]
Programming in Scala
Got the Programming in Scala eBook. I hope to get time and build an experimental Eclipse Plugin with it.
[ Back to top ]
The Java Explorer
I’m happy to announce that Eyal Schneider, the collegue of mine, has been finally convinced to open a blog to share his knowledge and experience.
[ Back to top ]
Eclipse Galileo RC1 Update Manager RT Equinox P2 is still not good enough for me yet
I’ve just failed to install JDT over clean Eclipse Platform RC1 (and this time a bug has been opened):
An error occurred while installing the items
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install, operand=null –> [R]org.eclipse.ant.ui 3.4.0.v20090504, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
Error while loading manipulator.
Error while loading manipulator.
Retrying causes the message immediately. Reverting to the previous installation stage does not help. Restarting does not [...]
[ Back to top ]
Eclipse Maven Integration
Honestly, I was pretty unsure regarding Maven at all. “Why should I port my projects from Ant, where everything is plain, simple and predictable? Single point integration jars are connected to their dependent projects, shared ones are extracted to a Libraries project. Deployment is as easy as checkout and build…” - I convinced myself.
But soon [...]
[ Back to top ]
Last Singleton
Hooray!
Today I’ve eliminated the last misused occurance of singleton pattern in the monsterous project I’m currently involved in.
[ Back to top ]
Aptana “steals” PDT code
Aptana “steals” PDT code
[ Back to top ]
Design Patterns
Recently I’ve seen the inter-blog discussion by some PHP guys I don’t know which touches among other things the issue of design patterns. And when they define design patterns they use some canonical or less definitions which seem a bit fuzzy to me.
When I think of design patterns, I always think about patterns of design, [...]
[ Back to top ]
Prototype styled Google Analytics javascript snippet
Recently I’ve created a prototype styled javascript snippet to enable google analytics on one of my sites. Save this code in google.analytics.js file and include it from the head tag of the page just after including of the prototype.js:
gaTrackerId = ’ss-ddddddd-d’; // insert your tracker id here
document.observe(’dom:loaded’, function() {
var gaJsHost = (
(’https:’ == document.location.protocol)
? ‘https://ssl.’
: [...]
[ Back to top ]
Copying nodes between XML documents with Java DOM
Today I had an atomic task of creating a most convenient way to copy nodes from one XML document to another with Java’s DOM implementation. Googling did not help me much in it, so I will share the solution here in case someone would be challenged too.
So, imagine you have multiple XML documents like this:
<document><section><node [...]
[ Back to top ]

