Source Allies Logo

Blog Insights

  • development icon

    Building Multi-Criteria Search Queries in Hibernate

    In this post I am going to show how to write queries multi-criteria search screens. There are two approaches for making this possible. Here I am going to show 2 approaches to building the HQL and try to point out the better approach. Approach I:String concatenation This approach uses String concatenation and setting...
  • development icon

    Word Counts Example in Ruby and Scala

    A while ago I was asked, as a pre-interview task for another company, to write some code in any language that counted word frequencies in these newsgroup articles. I recently came across the Ruby and Scala scripts I wrote and thought it would be fun to post them. First, here is...
  • default icon

    Windows Black Screen Of Death

    It seems the Black Screen of Death has struck again. Microsoft isn't confirming or denying that the issue was caused by a Microsoft update, but this issue is not new to Windows users. It affects all breeds of Windows OS, after logging in the screen goes black. Some users are...
  • development icon

    Vim splits, an introduction.

    First off, lets get some test files: for i in foo bar cat dog ; do echo $i > $i ; done; This creates 4 files named  foo, bar, cat and dog. Each file has a single line that contains the file's own name. Let's open the first file: vim foo This would be the...
  • culture icon

    Success!

    While searching through quotes to include in our company newsletter, I came across this: Read that again... The mind is a very powerful thing. For example, I don’t believe I’m the only one to experience being in a store next to a visibly sick individual and after they sneeze I start to...
  • development icon

    PL/SQL Variables and Connection Pooling

    I recently had to implement a common feature across multiple applications and app servers, all of which point to the same Oracle database. For reasons unrelated, I chose to implement this feature using PL/SQL. You can all stop laughing now. I ended up with something resembling: create or replace package body...
  • development icon

    Monte-Carlo Localization in a Nutshell

    If you're a nerd like most of us here at Source Allies, you probably think robots are cool. One of the most important part of robotics is teaching the robot to find its location on a geographic map - a process known as "localization." One such algorithm for solving this...
  • default icon

    My Biggest Fan

    Who am I to argue?...
  • agile icon

    Agile Conversations

    Everyone, especially project managers, is in love with Agile Development. And why wouldn't they be? Under the old school system, you'd end up with developers either sitting around uselessly, or drafting up prototypes that will only be thrown away. Agile allows for parallel design and development, wasting less time and...
  • development icon

    Sorting your Beans

    Need to sort a list of custom objects? Instead of coding up a custom implementation of your favorite sorting algorithm, you can simply use the tools provided in the Collections class (Collections framework) paired with the BeanComparator class (Apache project). Simple example: you have a List of Person objects and you...