January 2012
1 post
Performance comparision of NeoDatis and PostgreSQL
Neodatis_vs_PostgreSQL.pdf
October 2011
1 post
1 tag
Hash extension - no more hash.try(:[], key)
July 2011
2 posts
pow + nginx configuration
Total git cleanup
May 2011
2 posts
3 tags
coffee-script compiler plugin for sbt (works with... →
2 tags
Neodatis OdbConfiguration printout
In case I might need this again…
April 2011
2 posts
4 tags
Setting up Intel Cluster Compiler with XCode 4
I just spent an hour fighting with dump Intel license server (for trial version). I’m to angry to write, so here is the solution.
The easy part
Download Composer XE for Mac from Intel website, run .dmg, click .pkg, click, click, blah, select XCode integration, click, done.
It will install everything under /opt/intel and … under /Developer/ (no, symlinks, separate install - well,...
2 tags
Rails: timeline_fu and workflow integration
Quick tip on how to integrate timeline_fu and workflow callbacks.
March 2011
1 post
1 tag
Simple scala benchmark utility
Very, very simple. Strongly influenced by Ruby’s Benchmark
Usage …
.. and the result
January 2011
9 posts
1 tag
Scala specs cheatsheet
Based on MatchersGuide
rawler: Crawl your website and find broken links... →
thechangelog:
Need a quick-and-dirty way to find broken links on your web site? Rawler from Oscar Del Ben is a Ruby gem that gives you a command line tool to crawl your site, looking for errors.
Install via Rubygems:
gem install rawler
For usage, just execute the command rawler --help:
~ » rawler --help ~ 255 ↵
Rawler is a...
2 tags
akka singleton actor
If you ever want to do something like this:
DON’T! NEVER. Even in tests or something, doesn’t matter, never!
Using singleton actor object + scala-specs = silen fail with message “null” and one big WTF.
1 tag
akka actors cheatsheet
Small cheatsheet for great akka library
1 tag
Scala: Combine several Partial Functions into one
1 tag
Good old C-style for loop in scala
1 tag
Handle exceptions inside Actor
and then
1 tag
Decompile scala
1 tag
Scala collections #collect
November 2010
3 posts
Disk image converter →
VM Icon Replacement →
Octave for OSX 10.6 →
October 2010
2 posts
1 tag
Scala remote actors
Server
Client
1 tag
Scala String replace
Worth remembering, thx to lopex
September 2010
1 post
dwaite's gist-osx-service at master - GitHub →
August 2010
8 posts
1 tag
Run irb from file
In case I forgot.
1 tag
safari json formatter - must have! →
4 tags
Rails 3 remote update form
Rails 3 brings some nice unobstrusive javascript. This very short tutorial will show how to make simple yet powerful ajax update form.
First, grab jquery-ujs file (or gem). Next, create some model and REST controller.
Controller needs a small change:
Thats pretty self explaining: when object is valid send notice message, else send errors as json array.
View:
Only the :remote => true part...
Quickly get some random image placeholders
Big thanks to placehold.it!
1 tag
stJhimy - Improving TextMate "Go To File" function →
2 tags
Uploadify, Paperclip, Rails 3 and Sessions by... →
1 tag
Textmate split view
3 tags
Better (scoped) rails engines routing
Rails engines are really great, but they are missing one thing - putting in router scope. Fortunately, this can be easily fixed.
Instead of engine`s config/routes.rb file put all router stuff in lib/engine.rb like that:
And now it is possible to add scope:
Done!
Example gist
July 2010
2 posts
Best Scala TextMate bundle →
protocool's AckMate at master - GitHub →
Awesome “Find in project” for TextMate
June 2010
5 posts
Elise Huard (by Krakow Tech Conferences)
1 tag
Good Scala TextMate bundle →
3 tags
2,5 times faster heckle
RSpec has built-in support for heckle, but executing every “$ spec spec_file —heckle my_method” from command line is boring.
Why not use rake?
Yeah, nice one! Well, not really. “$ rake heckle_all” takes about 87 seconds to complete. First line executes shell script “spec” that runs ruby, then spec with heckle, then next line starts its own ruby again and...
Intellij IDEA Monokai color theme
Port of Monokai theme for Textmate.
Download the Monokai.jar.
Select File –> Import Settings within IntelliJ IDEA
1 tag
SSH tunels with iChat and Colloquy
University`s internet connection sucks. The only open ports are 22,80 and 433.
I wanted to have access to jabber and IRC but those ports are blocked.
Solution? - SSH tunnels and some scripting to switching it on and off quickly.
(This is just setup for iChat and Colloquy, not a ssh-tunnels tutorial!
Requirements
All you need is server with ssh on port 22.
Setup
iChat
I created two accounts in...
May 2010
1 post
Flushing DNS cache in OS X →
April 2010
2 posts
3 tags
Merb app with Scala models →
March 2010
3 posts
2 tags
Liftweb 2.0 API →
2 tags
Scala swing auto-resizable TabbedPane
1 tag
Scala proxy class
February 2010
5 posts
2 tags
Lift: Form fields attributes
+
=
one - The most basic tag, there are no attributes in code nor markup.
two - Same as above but with id attribute set in markup. As you can see in generated html this attribute is lost.
three - -%> syntax preserves markup attributes.
four - Other way of setting html attributes.
five - When setting attributes in both code and markup the second one has higher priority.
2 tags
Lift: "if(loggedIn)" in view
Via: http://wiki.github.com/dpp/liftweb/logging-in-users-without-any-db (there is a bug)
View:
Boot.scala:
1 tag
scala note: NonLocalReturn
andrei-pamula:
This code will print “1” and then exit.
via: http://dev.bizo.com/2010/01/scala-supports-non-local-returns.html
1 tag
Best scala 2.8 API →
1 tag
Webapp testing with Webrat and [your language]
Webrat was written mainly to improve Rails` web applications testing. But what if webapp is written in something else? The answer is simple - webrat!
Requirements: Ruby
Installation: gem install mechanize webrat Done.
Now create file test.rb and put in there:
To run tests use command: spec test.rb
For colorful and more readable output use: spec --color --format...