Tweets

    Annoying Geo Targeting

    |
    Ever see those annoying ads on websites you are visiting, which advertise services or locations around where you are currently surfing. How do they figure out where you are??

    Such kind of targeting in the online media world is called as "geo-targeting". Every computer or device that connects to the internet gets an IP address assigned to it. These addresses are assigned based on your location, so if you are in North America your IP will start from 63.*.*.* or 64.*.*.*. If you are in Asia, your IP address will range in 202.*.*.* or 212.*.*.*, so on and so forth. These addresses are further drilled to second and third level based on the subnet mask.

    Hot Deployment issues

    |
    The build always makes it to the staging and production server after a series of rigorous tests. This ensures the build is complaint with the requirement and that none of the old features have been compromised in any way. Once in a while, a rare, but an annoying "Scope Creep" scenario does happen.

    Just minutes before the demo some one would realize a missing feature or patch which missed the commit deadline and did not make it to the server. So as a quick temp fix we just deploy that file to ensure the code does not have to go through the grueling tests again. Some of the smart developers don't commit these hot patches to SVN or merge it with the patch branch, losing the feature again. 

    Project Management and Issue tracking tools: Redmine vs Trac

    |
    I've been beating around the web searching for a good solution, that can scale from a microISV team to a mid sized team. We've been using svnrepository.com for sometime. They provide svn and git as a SCM,  also trac with multiple plugins for project management.

    Off late they've upgraded to a new system which offers redmine, along with trac and also has support for mercurial. After searching the web for a few minutes, I hit upon this article at stackoverflow;
    Trac vs. Redmine vs. JIRA vs. FogBugz for one-man shop? Check through the article, you might find it useful.

    If you are looking for online svn hosting, this website might be useful to you. http://www.svnhostingcomparison.com. It provides you with multiple options available in the market. You can filter depending on the cost, disk space and other features.

    Adhoc or Agile

    |
    I wanted to hot link to an old post by Simon Brown, but I believe he's dropped his old blog and transformed into a more consultant type blog. I'm copy pasting the old post here, with link to the original post.

    In the vast majority of cases where these phrases are used, agile has mistakenly been used to mean that the development process in use is ad hoc or even non-existent. It's not hard to get to the bottom of what people mean by agile, particularly in interviews, with a few simple questions. Usually, the flow of conversation goes something like this.

    Customizing JIRA workflow

    |
    Like other cool companies we also use JIRA for issue tracking; and we are agile using it. JIRA has posted a very useful article on how  to go agile using JIRA [http://confluence.atlassian.com/display/CONFEVAL/Using+JIRA+for+Agile+Development].

    Since JIRA gives you an option to customize the workflow. We've added some more details extending the normal 4 step JIRA workflow to a 6-7 step workflow.

    Version Control Policy: Best Practices

    |
    Your code base is always under version control (if it's not, it's high time you did!), and developers are always scared about taking updates or committing files, under some supernatural fear, that an update will wipe out their local changes. This causes a lot of trouble in the team, when some developers have not updated their code base since a long time. I've compiled below a checklist of best practices.

    Before you check in your code to subversion, here are a few points to follow.
    • Ensure that there are 0 (zero) serious CheckStyle, PMD, FindBugs error (warnings should be reviewed). If you need an exception
    • Checked in Code must build with all dependencies (not just your module).
    • Checked in Code must not break unit tests.
    • Checkins without comments should be noted as a build break caused by the developer. 
    • Before committing your changes to repository, it is advisable to synchronize the files, run an update and then commit your changes.

    Software Versioning

    |
    Software versioning for the end consumer is a very vital part of the software release cycle. It is one of the primary identifiers for consumers to report issues against in a software. It also helps the development team to identify, if the features/bug fix made it through the release.

    We follow a similar pattern, which can be useful for you too. The version number is strongly tied to the SVN (also valid for other version control systems) branching and tagging convention. Hudson (CI server) also plays an important role in stamping the build number.

    Online Recruitment Firm

    |
    One of my friend’s over the past few months has been speculating starting her own recruitment firm, but was not sure how to go about investing & setting it up. So we got together and brainstormed a few ideas. We created a list of tools that are of utmost importance for her work.

    It turns out Microsoft Office, MS Word more precisely is one of the most sought after tools by recruiters, followed by Microsoft Outlook for email.

    95-98% of the people seeking jobs send their resumes in MS Word format.
    Time immemorial email is one of the fastest and most efficient way of bulk communication.
    Using MS Office is expensive, and word documents are a prime target for carrying viruses. We needed a document reader, an email client and a strong anti-virus software.

    Staging environment using VMware

    |
    (This document is aimed more towards Java & VMWare, but the same can be replicated for any other language & environment)

    Abstract

    You have a team of developers working on different modules for a project-product which are inter-dependant. Each developer diligently writes unit & integration tests supporting their code. You want to set-up an agile test environment to run the unit tests & staging server for integration test, but purchasing hardware for multiple machines is a constraint.

    The following article provides a guide on how virtualization tools like VMware can be used to set-up staging or QA environment (Agile).

    DWR & Hibernate Lazy Loading

    |
    Time immemorial, we are all aware about the famous lazy load exceptions in Hibernate. Using a detached object does not exactly hide us from the issue. We are using DWR in our application and found that when marshalling (or unmarshalling if you insist) a detached object to JSON, DWR was erratically trying to call a null (lazyly loaded) object, causing LazyLoadExceptions.

    We did not want to use OpenSessionInViewFilter as it is evil (some day I'll post all the consolidated rantings as one). You can google and find a lot of info around it.

    As a quick fix we did what one would first think of, "It's a demo, just eager load it!". Well the demo was over and now was the time to investigate a better solution, and we did find it.

    It was no rocket science, the solution was available in front of us all along, we just did not look hard enough. When using DWR, there are BeanConverters available which are responsible for this marshalling process. There was one for Hiberante, called "hibernate3". http://directwebremoting.org/dwr/server/hibernate
    The HibernateBeanConverter tries to avoid reading from un-initialized properties. (If you just want something that blindly reads everything then just use a plain BeanConverter).
    Bingo, so when exporting a detached hibernate object to DWR, use type="hibernate3" and that should resolve the lazy load issues.

    By Contract or By Convention

    |
    Should we be using interfaces for everything and making everyone explicitly implement them or should we trust that everyone follows the same convention.

    2 DTO or not 2 DTO

    |
    Since the new project began I've been think about this over and over again reading as many posts and taking ideas from different posts and blogs. The more I read, the less I knew. Below is a collection of few links I've come across which have some conclusive and non-conclusive decisions/arguments, some of these post lean towards POJO's and some towards DTO(Data Transfer Object). Frankly I was not been able to convince myself on what to use. (Leaning more towards POJO's as detached objects).

    iPhone & CFA

    |
    I've enrolled myself for the Level I CFA exam in December '08. Studying on and off, depending on the schedule and time availability. Off late I stumbled upon SenFinance an interesting site full of Accounting and Quantitative tutorials for CFA Level I.

    I downloaded them all and wanted to view them on my way to work (a 20 minute train travel is good to study). So I got my hands on SUPER® which is an amazing software to convert any one video or auto file to another format. Now I finally have the tutorials in mp4 format and can study on my way to work!

    Setting up a PHP development environment on your local system

    |
    This is an old post I had written on google docs, before VMware Server was free for the general user. Thought could be still more relevant to the general developer for testing in Linux envoirment. VMPlayer I beleive is lighter than VMware Server.

    There are 2 stages of setting up the development & testing environment for yourself. The preferred work environment is Linux. If you already on Linux then you can safely skip Stage I, you can directly proceed to Stage II, also if you have Linux already installed, just cross check if you have the LAMP (Linux + Apache + MySQL + PHP) server installed.

    Duplicate file finder

    |
    Disk space is cheap, starting from a 1.2GB hard drive from my first computer to a "spare" 500GB external hard drive, cheap data storage has come a long way. I click a lot of photographs ever since I got my first digital camera, and I store a lot of these photos too (locally), now since 2006 I have over 201,608 photos and some videos. My camera photo number counter has reset twice!!