Wednesday April 09, 2003
|
Vanity Foul Dedicated to the wanderings of an egotistical mind. |
|
Roller is ready to Hibernate Some time ago I laid the foundation for Roller to have a pluggable persistence layer. Dave has followed up by implementing a Hibernate layer. Perhaps this will inspire me to finish the Prevayler work I had started (mostly as an opportunity to play with the technology). But then, as Dave says, "it is no fun maintaining two implementations of the very same thing"; do I want to make it three?! What SuperHero Are You? Everybody else posts these What The Hell Are You? quizes, so here's one a pal sent me: What SuperHero are You?
Cease and Desist I received a letter today from Network Associates, instructing me to stop using the term "Sniffer" on Brainopolis. NA on their site claims their Sniffer is a set of "network monitoring and analysis products". As you likely don't know, "Sniffer" is the name I gave my Java browser detector library. There are actually many registrations for products named "Sniffer", you can do your own search at MyCorporation, look for Serial Number 73803458. As I cannot afford a lawyer I guess I'll have to go looking for a new name for my little project. How about BrowBoy (BrowserBoy)? Or given some of the name variations I saw can I use jSniff? The funny thing is that when I started this project a couple years ago I did a websearch to see if anyone else was using the term Sniffer, and I didn't find anything but pages about packet sniffing. Robert Graham makes this comment on his page about packet sniffing:
(
Apr 05 2003, 12:15:38 PM
)
Technology
Permalink
Comments [4]
[Link]
"You've been quiet lately" I'm not the kind to speak up on every little thing, it has to really catch my attention and fire my imagination. I haven't seen anything like that lately, at least not that hasn't been adequately discussed elsewhere... Perl 6 I must be behind the times, but I read an article in the April 2003 issue of Linux Magazine (on newstands now) about Perl 6. Cool! I haven't looked at Perl for about 5 years, but I really like what they've got planned. I particularly like how given-when behaves, and the fact that "given" and "when" can be used independantly of each other: they're really seperate tools that fit together to produce a switch-case model. A lot of the other stuff planned should really minimize the inherant obfuscatability of Perl (the new Object definitions make *much* more sense!). Finally, I'd love for Java to have the new junctions coming in Perl 6 (nice shortcut expressions). The only downside is that Perl 6 is years away (cannot find the exact statement now). :-( Using Custom Taskdefs Buried in the Ant Manual:
Adding your task to the system is rather simple too:
1. Make sure the class that implements your task is in the classpath
when starting Ant.
2. Add a <taskdef> element to your project. This actually adds
your task to the system.
3. Use your task in the rest of the buildfile.
Example
<?xml version="1.0"?>
<project name="OwnTaskExample" default="main" basedir=".">
<taskdef name="mytask" classname="com.mydomain.MyVeryOwnTask"/>
<target name="main">
<mytask message="Hello World! MyVeryOwnTask works!"/>
</target>
</project>
Example 2
To use a task directly from the buildfile which created it, place the
<taskdef> declaration inside a target after the compilation. Use the
classpath attribute of <taskdef> to point to where the code has just
been compiled.
<?xml version="1.0"?>
<project name="OwnTaskExample2" default="main" basedir=".">
<target name="build" >
<mkdir dir="build"/>
<javac srcdir="source" destdir="build"/>
</target>
<target name="declare" depends="build">
<taskdef name="mytask"
classname="com.mydomain.MyVeryOwnTask"
classpath="build"/>
</target>
<target name="main" depends="declare">
<mytask message="Hello World! MyVeryOwnTask works!"/>
</target>
</project>
Also see TaskDef
(
Mar 21 2003, 08:06:31 AM
)
Technology
Permalink
[Link]
Trackback: http://www.brainopolis.com/roller/trackback/lance/Weblog/using_custom_taskdefs Why Am I Getting All This Spam? A great research piece from the Center for Democracy & Technology.
This leads me to believe it would be worth the effort to put even a simple email obfuscator on Roller's Comments feature. Page-by-Page Iterators Considered Nuclear Waste Okay, so I exaggerate, but Crazy Bob has been having trouble. Fortunately he solved his dilemma:
I'm just hoping he contributes the Oracle LIMITS code back to Castor. Thanks Bob! |
|
||||||