2012-12-07

Entries

First entry using timestamp,message CSV and custom converter

#

Test

#

And another test entry

#

Now to add IDs for linking...

#

TODO: Highlight the row being linked when using # links

#

Need to remember that this won't do any Markdown processing now, unless I add it!

#

BUG: Since I'm using CSV now I can't use commas in my entries. Woops!

#

Will fix tomorrow. Up way too late now.

#

Switched from commas to tabs, so this comma should work now

#

Today's lesson: make sure you're looking at localhost for changes to your output, not the S3 site that hasn't been updated yet.

#

So an incident that spurred the creation of this devlog...

#

I needed to generate a list of Subversion Repositories we have in Anthill Pro.

#

RepositoryFactory has the method restoreAllForType(java.lang.Class<? extends Repository> repoType) which returns an array of Repository.

#

As I loop through them (in a Velocity template) I need to cast them to SvnRepository so I can call getSvnRoot() on them. So I needed to cast an array of one class it an array of its superclass.

#

I found the answer in his StackOverflow question: How to convert object array to string array in Java.

#

So in the end, my code is doing this:

#

Repository[] repos = RepositoryFactory.getInstance().restoreAllForType(SvnRepository.class);

#

SvnRepository[] svnRepos = Arrays.copyOf(repos, repos.length, SvnRepository[].class);

#

I suppose I could've done the cast for each repo within the Velocity template as well.

#

Totally cheated and edited some entries using vim to fix borked Markdown syntax.

#

Need to consider the value of timestamped entries and limited/manual editing vs. stream of consciousness.

#

Stream of Consciousness probably doesn't mix well with formatting things for Markdown - it requires thought.

#

Is there any value/functionality to adding hashtag support? Like using #todo or #anthillpro to easily find all entries about a topic?

#

Sourcefu.com has a nice search functionality but as my devlog is a static site currently I'd have to rely on google for searching the site. Weary of having to set up a web app for this... though I suppose Sinatra could be lightweight enough.

#

Comments

comments powered by Disqus