Quantcast
Channel: The Developer Corner
Browsing latest articles
Browse All 25 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Cygwin 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 Article

Image may be NSFW.
Clik here to view.

Sun 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 Article

Image may be NSFW.
Clik here to view.

Ruby 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 Article

Image may be NSFW.
Clik here to view.

Running 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 Article


Image may be NSFW.
Clik here to view.

Google App Engine with Java

Google now offers the possibility to use Java for its App Engine!

View Article

Image may be NSFW.
Clik here to view.

Using 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 Article

Image may be NSFW.
Clik here to view.

Ruby 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 Article


Image may be NSFW.
Clik here to view.

Which 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 Article


Image may be NSFW.
Clik here to view.

Search 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 Article

Image may be NSFW.
Clik here to view.

Lower 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article


Image may be NSFW.
Clik here to view.

JavaOne 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article


Image may be NSFW.
Clik here to view.

JavaOne 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article


Image may be NSFW.
Clik here to view.

JavaOne 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article

Image may be NSFW.
Clik here to view.

JavaOne 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 Article


Image may be NSFW.
Clik here to view.

JavaOne 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 Article


Image may be NSFW.
Clik here to view.

Java 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 Article

Image may be NSFW.
Clik here to view.

Dude, 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 Article

Image may be NSFW.
Clik here to view.

Retirement 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

Browsing latest articles
Browse All 25 View Live




Latest Images