Change Default Date Format in Ruby on Rails
Just a quick and simple hint!If you need to set the default formatting of dates throughout your whole application in Ruby on Rails, just add the following line to your "<your...
View ArticleCygwin personal setup
Some time ago I wrote a post on how to setup the looks of your Cygwin bash shell using rxvt. Well, I normally add a few more settings to my environment just to make it more useful.I add the following...
View ArticleSun Java One 2009 - topics released
Sun has released the topics for the Java One 2009 Conference, with four high-level areas: Mobility, Rich Media Applications and Interactive Content, Services and Core Content.It will happen in San...
View ArticleRuby on Rails Order By Using Associated Model
It is very easy to use an 'order by' clause in a model in Ruby on Rails. Supposing you have a Category model it's as simple as doing this:@categories = Category.find(:all, :order => 'title') But...
View ArticleRunning tests in the command line on Ruby on Rails
I normally run the test suite for my Ruby on Rails projects using the Netbeans test interface.Unfortunately this interface is only useful to run the whole suite. It does not offer (as it does for Java)...
View ArticleGoogle App Engine with Java
Google now offers the possibility to use Java for its App Engine!
View ArticleUsing forms in Ruby on Rails
I found this great guide on how to use forms in Ruby on Rails.It is quite complete and it comes with a lot of examples on how to create HTML form entries using Ruby on Rails.
View ArticleRuby on Rails Model Auto Completer
When developing web applications nowadays, caring about user interaction is mandatory. Using Ajax technology to allow your system to show information without reloading the whole page is one of the...
View ArticleWhich binary file am I running in Cygwin?
If you want to find out which of the binary versions of some file you are running under Cygwin you can try two commands: "which" and "type".type -a rubyShould return something similar to:16:55:17 ~$...
View ArticleSearch an Array in Ruby
If you want to search for a value in an array in Ruby you could do something like this:array = ['Bart','Lisa','Maggie']array.include?('Homer') # returns falsearray.include?('Lisa') # returns...
View ArticleLower Case, Upper Case and Capitalize in Ruby
Ruby has some very straightforward methods to change the case of your strings.Here are some of them:"HoMer".downcase # returns homer"lisa".upcase # returns LISA"margie".capitalize # returns...
View ArticleJavaOne 2009 General Session
The Opening General Session for Java One 2009 has just begun. We had presentations from Verizon, Intel, Sun itself with JavaFx. The first two were a little bit commercial, but the JavaFX quick...
View ArticleJavaOne 2009: EJB 3.1Overview
EJB 3.1 Technology Overview by Kenneth SaksHe spoke about the EJB 3.1 Spec which should be ready by end of the year.Session Bean with Local Business Interface; "No-interface" view client - it calls...
View ArticleJavaOne 2009: Clojures for the JVM by Rich Hickey
Fundamentals: it is a dynamic language and a new LISP, Functional, Supporting Concurrency, Compiles to JVM bytecode, not OOWhy not OO? Because OO encourages mutable state and Mutable stateful objects...
View ArticleJavaOne 2009: "Bug-free" code on Java 7?
Preventing Bugs with pluggable type checking by Michael ErnstNew Feature in Java 7The motivation of the presentation is to help people to design a type system to solve a specific problemJava 7 has a...
View ArticleJavaOne 2009: Lessons Learned in ESB
Andreas Egloff and Frank Kleviet: ESB Lessons LearnedBoth speakers work now at Sun in the OpenESB project and come from a big vendor that sold EE products.ESB as a product comes with risks like, for...
View ArticleJavaOne 2009: Enterprise Build and Test in the Cloud
Carlos Sanchez from G2iX on Enterprise Build and Test in the CloudTools:Build: Apache Maven (build and more, start/stop AS, automatic deployment, execution of tests - note: most people in the room use...
View ArticleJavaOne 2009: Effective Java
Joshua Bloch in "Effective Java: still effective after all these years"First Edition of the famous book Effective Java was in 2001 and is now on its second edition from 2008 and it has new chapters on...
View ArticleJavaOne 2009: Coding REST and SOAP together
Martin Grebac and Jakub Podlesak from Sun Microsystems on Coding REST and SOAP togetherUsing METRO = JAXB + JAX-WS + WSIT and JerseyNo deployment descriptors needed (use annotations) but still...
View ArticleJavaOne 2009: Enterprise Application Integration Patterns
Andreas Egloff (Sun) and Bruce Snyder (SpringSource)Enterprise Integration Patterns in Practice"A Design Pattern is a formal way to document a solution to a design problem ina particular field of...
View ArticleJavaOne 2009: RESTful Transaction Systems
Mark Little (JBoss CTO) and Michael Musgrove (Red Hat Tx)RESTful Transaction SystemsAtomic Transactions should have a scoping mechanism that provides "all-or-nothing" semantics, enables shared...
View ArticleJavaOne 2009 Slides
You can download the slides from JavaOne 2009 conference from here. Just choose the track and find the slides.You need to be signed at the Sun Developer Network (SDN) to view/download the pdf.Cheers
View ArticleJava in Ubuntu
Well, I am now just trying to use Ubuntu as a development environment. First thing I noticed is that there are more than one jre already installed by default in the system, and here is the...
View ArticleDude, where are my resources?
I was struggling with a stupid problem this week and it took me some time to realize what was going on, so I will post here the solution so nobody else needs to waste time on this matter again (and for...
View ArticleRetirement of the blog
I do not have enough time to post articles in more than one place, so I will retire (at least temporarily) this blog in favor of my site definenull.Hope to see you all there!Cheers,Dani
View Article
More Pages to Explore .....