Macman

Macmaaaaan! No, it ain’t Batman lolz. I recently upgraded my iTouch firmware to version 2 and jailbreaked of course (finally! After so long a wait). Since there is no more installer here as it has to be ported by the dev team who created it, Cydia is there to provide support in the meantime. One of the games listed there is Macman. It plays very well and the accelerometer is used nicely here. And … I still have to get used to it haha, I keep getting killed! What’s good with this game is it’s free and it has lots of stages to play for. If you installed the game in the iPhone, it has an autosave feature when you exit it or if pick up an incoming call. Good game!

Check out the screenshot.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

I Am Rich iPhone/iTouch Application

iPhone’s firmware version 2 had been out for quite some time but even until now, I never bothered trying to upgrade it from my 1.1.3 version for the sole reason that I had never seen a hacked game out that compared itself with Lexitron, a Text Twist clone. It’s the only game that I always play with my iTouch and is also the main reason why I buy gadgets like these. I never am not much into music nor videos (I guess video priority is greater than music but games top my preference). There are quite a bit of games out commercially and can be found on the Apple App Store like Super Monkey Ball which is a SEGA original game (correct me if I’m wrong). Even with those nice graphics and good gameplay, I still preferred to get stuck with firmware 1.1.3 for that text twist clone game called Lexitron. Today, I came across a site talking about an iPhone app which was sold for 999$ and was already purchased by 8 people before Apple took it off their website. Yes, 999$ to be precise and it does nothing more than display a glowing red gem and a mantra or whatever they call it that. Man, 8,000$ sold? Can’t blame some people for buying them especially if they’re rich since they don’t care what they’ll purchase with all the money they have. And the author of the application said that it was an acceptable price as Apple Store’s rule allows authors to sell an application at most 1,000$.

Check out the video below what this I Am Rich iPhone/iTouch application does.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(No Ratings Yet)
 Loading ...

Java Check If Date Is Within Date Range

I made this method in order for me to determine if a java.util.Date falls in between 2 java.util.Date objects. I used Calendar objects to wrap the Date objects as they are much easier to use and retrieve month, day and year infos. Another helper method called isDateEqual is used within the isWithinDateRange method to determine if both Date objects are equal (excluding the time).

public static boolean isWithinDateRange(Date dateToSearch, Date startdate, Date enddate) {
  Calendar calstart = Calendar.getInstance();
  calstart.setTime(startdate);
  calstart.set(Calendar.HOUR, 0);
  calstart.set(Calendar.MINUTE, 0);
  calstart.set(Calendar.SECOND, 0);
 
 
  Calendar calend = Calendar.getInstance();
  calend.setTime(enddate);
  calend.set(Calendar.HOUR, 0);
  calend.set(Calendar.MINUTE, 0);
  calend.set(Calendar.SECOND, 0);
 
 
  Calendar calsearch = Calendar.getInstance();
  calsearch.setTime(dateToSearch);
  calsearch.set(Calendar.HOUR, 0);
  calsearch.set(Calendar.MINUTE, 0);
  calsearch.set(Calendar.SECOND, 0);
 
 
  if (((isDateEqual(calstart.getTime(), calsearch.getTime())) || (calstart.getTime().before(calsearch.getTime()))) &&
((isDateEqual(calend.getTime(), calsearch.getTime())) || (calend.getTime().after(calsearch.getTime())))) return true;
  else return false;
}
 
 
public static boolean isDateEqual(Date date1, Date date2) {
  Calendar cal1 = Calendar.getInstance();
  Calendar cal2 = Calendar.getInstance();
  cal1.setTime(date1);
  cal2.setTime(date2);
  if ((cal1.get(Calendar.MONTH) == cal2.get(Calendar.MONTH)) && (cal1.get(Calendar.DATE) == cal2.get(Calendar.DATE)) && (cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR))) return true;
  else return false;
}

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(1 votes, average: 4.00 out of 5)
 Loading ...

Javascript Set Selected Index For Dropdown

There are lots of ways to set a dropdown’s selection but the easiest would be to set the dropdown’s value with a value. Provided you used an id to access the dropdown object, do this.

document.getElementById('dropdown').value = 'one';

If your dropdown looks like this,


<select id=”dropdown”>
  <option value=”one”>One</option>
  <option value=”two”>Two</option>
</select>

Then using the Javascript code above, the selection will highlight One. The value attribute must be present. If not, then the dropdown item’s label name gets used. If you wish to use other means, you can check out selectedIndex.

Like what you see? Buy me a cup of coffee. Or subscribe to my feeds.


(2 votes, average: 5.00 out of 5)
 Loading ...