Archive for the 'java' 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 ]
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 ]
Nice Diagram Editor - yWorks’ yEd
Today I felt need in simple diagram editor in order to draw a comprehensive flow-chart diagram.
Previously I widely used Dia one, but it was always to painful to achieve acceptable with no constant mistakes and overall creation always took too long.
In the past I also several times evaluated Enterprise Architect, Visio and SmartDraw, but they [...]
[ Back to top ]

