Thats Why No-One Will Remember Your Name

Problem with Running Tomcat with Eclipse

26. October 2011 16:53 by Scott in   //  Tags: , , ,   //   Comments (0)

I had a problem running Tomcat through eclipse and received this error:

Port 8080 required by Tomcat v7.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

I needed to figure out what was running on port 8080 and couldn't find any other tomcat item.  I needed to shut down what ever was running on port 8080 so I could run tomcat through eclipse.

So this is what I figured out.

  1. Run this command: NETSTAT -p tcp -ano
  2. find the service running on 8080.
  3. read the PID.
  4. Press Ctrl+Alt+Dlt and go to the processes tab.
  5. Goto View->Select Columns-> Enable the PID column.
  6. Find the PID that matches your cmd list results and go ahead and kill it.

That should work and glad I could help.

Here's To the Crazy Ones

6. October 2011 09:19 by Scott in Apple  //  Tags:   //   Comments (6)


"Here’s to the crazy ones. The misfits. The rebels. The troublemakers. The round pegs in the square holes. The ones who see things differently. They’re not fond of rules. And they have no respect for the status quo.

You can quote them, disagree with them, glorify or vilify them. About the only thing you can’t do is ignore them. Because they change things. They push the human race forward.

And while some may see them as the crazy ones, we see genius. Because the people who are crazy enough to think they can change the world, are the ones who do."

RIP Steve Jobs.

Developer Income Report #1

3. October 2011 00:22 by Scott in Developer Income Report  //  Tags:   //   Comments (0)

The Intro:

I decided that I need to start writing my income out to both the world and for my self following this the reports posted here.  So A little intro.  Ive been developing web apps since 2007 and while modest income has come from them, I decided to focus solely on one real idea.  Most of my ideas in the past have been simple and fun, while this idea will truly turn into a company.  So lets go ahead and tell you.  I have built a few apps listed here and while none of them bring in a great deal of money, I have learned a great deal from them.  So lets go ahead and start it off.

The Money:,,,, and all have the same online advertising tied to them because mainly they don't all garner enough hits to do well on the advertising platform I like to use.  The only one that garners well over 2 Mil page views a month is, and while thats pretty significant, its an application that supports a very popular online game and web games don't make nearly enough in Ads to be well off.

So last month, I made +$152.00 from these sites.

I recently got into building Android Apps at work and that has pretty much pushed me to do so in my free time.

So two months ago, I created an Android Application for Audingo. App is Here.  I did this for a start up out of Texas.

I made +$5,000 for one months worth of work on building their Android App.

This past month, I decided to do another Android Application for my self.  While it hasn't garnered much in the way of cash yet, it has been a huge hit among the Roller Derby crowd! 

I made +$10.32 from this past month.  Nothing to go home about, but its another few bucks in the pocket.

And to Pay for server costs for my various Web Apps, I paid out -$85.00 this month. These guys are awesome and by far the cheapest dedicated hosting I could find!

So for the Month of September, I made a total of +$5,077.32 this month in my spare time.

Whats Next?

In the coming weeks, I plan on releasing another web application for my various web apps I currently own.  This web app will hopefully allow for better user feedback that I can implement into my various websites later on.  Sort of like the circle of life, but this way its Developer -> User -> Developer driven.

Java JPA Doesn’t Show Updates to tables

15. September 2011 17:21 by Scott in   //  Tags: , , ,   //   Comments (27)

There was a problem one of my peers found with Java JPA that got him stuck for a few hours.  He told me to blog about it so here it is.

When you use the JAVA JPA library.  You will pull results from the database.  That’s exactly what the JPA lib does.  Its like LINQ, but for Java.

So here is the problem.  When pulling results from the JPA objects from the database, the JPA then caches all the objects.  So every time after that, the cached results get returned instead of the most important information just placed in the Database.  So, in order to get around this, you must call the “refresh” method.  Or at least that’s what he told me to say.  That method will then hit the DB again for another round trip and update all the objects on the JPA side.

That is all.

Fucking Big Company Rules

12. September 2011 10:05 by Scott in   //  Tags:   //   Comments (20)

So I work at a large company, with well over 75,000 people.  Its extremely large and the bureaucracy sucks.

A developer and I built this state of the art product on the Android phone.  It can be ported over to the iPhone and the WP7.  This product is soo revolutionary, it has the ability to put an entire product out of business.  A product that is soo incredibly important to man kind, that without its use we as a Human race could all suffer deadly consequences without its use.

This Android product takes over the roll of the product.  Instead of costing nations (yes, nations) a couple thousand dollars for EACH device, my company could inevitable put this application into the hands of every single person with a mobile phone.  Therefore, entirely disrupting and of course saving tax payers millions over time.  And not to mention, this product could be used by everyone in the world.

But what does my company do?  They decide that placing apps on the marketplace will not return enough revenue to make this product worth while.  Even charging $10.00 for a product like this, they decide against it.  This product has the potential to save millions of lives when disaster strikes, but what do they do?  The bury it.  The put it into a hole and never think about it again.

So what do I do?  I can’t do anything.  If I were to write my own application, I would be sued for millions.  Taken to court and most likely lose my job over it.  I am also bound by certain contracts signed when I first started here.  Anything I build, my company owns.  My working peers around me say, I should write a brand new application and just release it.  It would make the world a better place, so just do it.

I am looking for advice here.  For some help and guidance.  Do I do my own thing to “help make the world a much safer place to live”?

MSSQL Server – Delete Duplicate Rows – Records

11. June 2011 01:59 by Scott in   //  Tags:   //   Comments (8)

This is how I delete duplicate rows from the database.

FROM MyTable
FROM MyTable
GROUP BY DuplicateColumn1, DuplicateColumn2, DuplicateColumn3)

Android: Can’t Set Styles via a Selector

29. March 2011 17:10 by Scott in   //  Tags:   //   Comments (0)

Something incredibly disappointing that I found out today.  When you create a selector in Android, there is currently no way to set styles via a selector.

What do I mean?  Well look below:

<?xml version="1.0" encoding="utf-8"?>
 <selector xmlns:android="">
     <item android:state_pressed="true"
           style="@style/CategoryButtonPressedStyle" /> <!-- pressed -->
     <item android:state_focused="true"
           style="@style/CategoryButtonFocusedStyle" /> <!-- focused -->
     <item style="@style/CategoryButtonStyle" /> <!-- default -->

I currently have the styles set in a selector for a button.  From what I found out you can only set drawables attributes to selectors instead.  What if I don’t want a graphic overlaying my button.  I want to do it programmatically instead.  This is incredibly disappointing because well CSS can do this. 

Looks like they don’t have plans for this either.

Just a rant.


Pushing Large Files to Android Using Eclipse Tip

10. March 2011 17:12 by Scott in   //  Tags: ,   //   Comments (0)

I was pushing large files to the Android Emulator lately.  We are talking above 100mbs a piece or more.  When I uploaded them in Eclipse, they would break and not upload about half way through.  It took me a few hours to keep trying till I got frustrated.

So I found a tool inside the Android SDK Folder under the platform tools folder.  Its call adb and it needs to be run with the command line.  This tool actually worked and I was able to watch it work via the Eclipse DDMS view.

So if you need to upload large files for any reason and eclipse is failing you, use the adb tool.


C:\Program Files (x86)\eclipse\android-sdk-windows\platform-tools>adb push C:\UsersAndroidCs2\Map.db /mnt/sdcard/mapdata/Cycle_Map.db

One Error I received before I found this tool:

[2011-03-10 16:10:17] Failed to push the items
[2011-03-10 16:10:17] (null)

Android Unit Test Tip

3. March 2011 12:56 by Scott in   //  Tags: ,   //   Comments (0)

Something I had to learn the hard way when unit testing in Android.

When using this tutorial for testing in Android:

Something that they don’t tell you is to you must declare that the methods are tests.  Well since I was also used to adding attributes to C# tests in Visual Studio.  You don’t have attributes in java.  Sadly.

So whats the next step in declaring that your method is a test?

public void testAssertions(){}

You must declare it in the syntax.  By preceding the method name with the word “test” like the method above, you declare that it is a test.  I know, this sounds stupid and the darn tutorial doesn’t even explain that this is required, but it is.  This little problem took me a day to figure out.

Some errors I received because of this little problem are below:

Test run failed: Test run incomplete. Expected 1 tests, received 0.

Mobile Device Maps Need a Zoom Out Button

18. February 2011 16:23 by Scott in   //  Tags: , , ,   //   Comments (9)

To All Developers of a Mobile Mapping Tool,

Will you please build into the map a button to zoom out? 

Let me give you all a scenario I find my self in all the time.  I am walking down the road and I have a mobile device in one hand, while carrying a bag of something in the other.  I am trying to find out where I exactly need to go.  I look at my mobile map and it has the directions on it.  I click on the map with my ‘opposable thumb’ to zoom into the location, But oh wait, I zoomed in to see what corner its on and now I need to zoom back out to watch where I am walking. 

Can you please tell me how to do this efficiently without pulling up my other hand to use two fingers to zoom out?  I can’t even use my ‘efficiently nature given opposable thumb’.  I have to use two fingers to zoom out.  Did someone expect me to zoom in with my thumb, but never wanting to zoom back out?  The hand held device should be capable of being used with just one hand.  The Zooming on maps does not allow this ability.

This scenario can happen anywhere and bite you in the butt. 

  1. Walking with groceries.
  2. Driving with GPS.
  3. Its cold out side and I have gloves on.  Why would I want to remove both pairs?
  4. I am a War veteran and I lost my arm in battle.  Not to mention if I just lost my hand.
  5. I have a Beer in one hand and walking down some downtown street at a festival and I need to find my friends.  I would never put my beer down.  That’s just disrespectful to the beer.

This is a PLEA.  Please implement a ZOOM OUT button by default or just enabling it in settings.  I personally develop for Android and WM7 and make sure I put that Zoom out button on the same screen as the map.  Zoom in is a totally different scenario since I can just click on the map to zoom in.

Please, Just think about it!