If you have worked on asp.net or any mvc projects, you have created similar view names like index, create, details, delete for different controllers. Now the problem is when you have multiple files with similar names opened up in VS, it gets confusing and you end up reopening the file from the solution explorer.
With this solution that I will show you, you can have different color code for similar named view files that belong to different controllers. Like so
With the productivity Productivity Power Tools extension, you can have different colors for different views, which makes identifying the views with similar names easier in visual studio. I used vs2010. After configuring the tool, this is how it looks.
Recently the forms on my company’s website had been getting lots of spam. The spammers were submitting the forms with advertisements. We needed a captcha.
I suggested Recaptcha, but if you have seen one of their captcha, you would think even a human cannot interpret them correctly. So my boss did not want that. We wanted our customers to have a simple, easy to interpret captcha while also serving us some help fighting the spam. So we decided to create our own simple captcha system, with captchas our customers will not hate.
The idea of the game is like so.
Its war time. Our main character is a pigeon who has to complete missions that involve delivering messages. The pigeon will fly towards right side of the screen until it reaches the destination. In between there will be several obstacles like enemy pigeon, falcons/ hawks, anti aircraft attacks etc. The user has to control the pigeon to avoid getting touched by the obstacles.
Like I said in my previous post, the game will be using libgdx game framework. libgdx is an android game framework. First we got ourselves (my partner Ali and I), a copy of a game called Super Jumper made by the creator of libgdx. We modified it to move from bottom-up to left to right. For collision, we tried coding by ourselves. Then I found that there is a better alternative, Box2d. Box2d is a 2d physics engine which is available in different languages. Its opensource and free.
The source code is hosted on google code. We use svn.
Big influence by the tutorials by the good guys at decisiontreegames. http://decisiontreegames.wordpress.com/2012/05/08/box2dlibgdx-example-code/
Lately Ali and I are planning to work together on a simple free android game. We thought of working on IPhone first, considering the volume of users we could reach. But eventually, we could not resist the simpler Java language over the cryptic Objective C. We will think about porting to IPhone after the Android version actually gets completed.
We have found a very good game framework called Libgdx. The game will be a side scrolling, avoid the enemies style game that will use the touch and accelerometer together.
A simple game can be thought of as having three modules. Create, Update and Render. Continue reading →
Until now, you have been opening a shell or terminal to execute your script, but now your boss wants to be able to execute the script, but he doesn’t know anything about CLI(command line interface) commands. So, what can you do? how about having a web interface that allows him to easily activate the script. Yes, that would work and its easy too. But if the script takes 5 min to complete, we don’t want to show a blank page during those 5 mins. It would be better if there was a progress bar that showed how much percentage of the script is completed. Today, we will learn to do just that, Create a progress bar to display server’s php script execution using JQuery and JQueryUI. Continue reading →
When Eclipse is run, it asks for a workspace location. I will use ./wksp/basics/labs. You can choose to use this workspace by default by ticking the checkbox. Eclipse starts with the Welcome tab. On this window, you can get more information about using Eclipse. Close the Welcome tab. Continue reading →
Adapter pattern adapts a piece of code to work with another. In real world, consider a battery charger for your phone. If you went for vacation to a somewhere in Europe, your charger won’t fit into the wall outlet. You would need a piece that can wrap your that fits into the socket in Europe.
Adapter pattern is usually helpful to create new code that is compatible with old legacy code. Using adapter pattern the old code do not need to be changed to work with new code. Continue reading →
If you are in DBS501 like me, you must be frustrated with sqlplus command. Why did they remove the good old isqlplus and instead put sqlplus. The problem with the sqlplus for most of us is because of connection problem.
If you haven’t modified the ora file to include host address for neptune, you must do that before proceeding any further. Here is the link