Notes Concerning...

AA Back

 15.02.2010

TODO I




json with jruby

Native gem once again does not work. *http://json-jruby.rubyforge.org/

sudo jruby -S gem install json-jruby

Or maybe use this?

sudo jruby -S gem install json_pure




sqlite3 with ruby

When you don't have the jdbc-sqlite3 adapter installed you get a helpful error message about a missing gem with the command for installing it listed — it lists the wrong name: suggested install command:

gem install activerecord-jdbc-sqlite3-adapter

actual install command:

gem install activerecord-jdbcsqlite3-adapter




Ruby Parsing

JRuby-Parser by Thomas Enebo @ Kenai
http://kenai.com/projects/jruby-parser/
Thomas Enebo's blog
http://blog.enebo.com/

Work by Peter Sommerlad's Group (Eclipse Ruby refactoring plugin)
http://r2.ifs.hsr.ch/trac
Their paper (with part on getting comments into Ruby AST)
http://portal.acm.org/citation.cfm?id=1297884



Bibliography

Find the SCG .bib file in the Subversion repo at:
https://www.iam.unibe.ch/scg/svn_repos/scgbib/

scg.bib
Use Citeulike Account at
http://www.citeulike.org/
to export a personal .bib file
fgysin.bib
And attach both to the LaTex using

\bibliographystyle{abbrv}
\bibliography{scg,fgysin}

Then you can cite using

\cite{ ...bibTexKeys... }




IRC Client

Command line based IRC client: irssi

/connect chat.freenote.net 8000

Connect to freenote hub.

/nick fgysin

Change nick to 'fgysin'

/msg nickserv identify <password>

Identify the current nick with a password. (So you can actually use it...)

/join #jruby            /join 3206

Join a chat room.

/wc

Leave a chat room.



Ruby Require

puts $:
puts `pwd`

Prints the load path, and the current folder (.). This is where require expects the things to import.



SVN Mirroring

Mirroring svn with Git is easily done with the git plugin. (git-svn, see How To's) Problem: It seems only to work with quite a limited number of repos. I tried about 10 and only like 2 worked - I'm not sure why though, could be that the repos are out of date or protected by authentication. Anyway, this could pose a problem...



CVS Mirroring

Works fine - mirroring is very slow though, this will take quite a lot of time for the big repositories!

Perfomance issue? Maybe it would be better to create local SVN/CVS repos first and only then using Git to create/import the proper git repositories.



GIT Mirroring

Is really easy and compared to SVN/CVS mirroring is damn fast too.



Axel proxy

Specify the axel proxy as follows:

Luke - Lucene Index Browser

Luke is a browser to browse Lucene indizes. Comes as a standalone .jar and has a very nice GUI. —> Works like a charm.
Luke Homepage



Java Source Code Parsing

Lea's Code:

https://www.iam.unibe.ch/scg/svn_repos/Sources/JUnit3To4/src/ch/unibe/junit3to4/transformation/JUnit4Generator.java

The com.sun.tools classes actually are not meant to be used like that. If you want to do it anyway you must change warning type in Eclipse from error to warn. (Otherwise files wont compile...)

Also there is not much doc around (no API, etc...), but one can download the src here:

http://hg.openjdk.java.net/jdk6/jdk6/langtools/archive/tip.zip




Project Metadata - Try1

select toplang, count(toplang) as nop from projects_light group by toplang order by nop desc;