Posts by Tom:

    Appfuse – width of web page

    February 15th, 2010

    Ok this took a ton of time to figure out.
    Problem: I don’t like 800×600 pages. I have widescreen LCDs and many other people do too. I will check the stats which is a developer type site, and here which is more general and based on 32,000+ sites.

    Edit the files:
    ./tree/src/main/webapp/styles/simplicity/layout-1col.css and change line 8 to 924 (1024 – 100 which is what it was set to initially). This will set the login.jsp menu to this width. Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    Appfuse – Test failure

    February 14th, 2010

    Sometimes the tests will fail because you have generated your classes in an order that does not support the tests.
    For example, I have a Base class that is included as an attribute of another class. However, I had made a change in the base class and regenerated the code. This causes the file in ./tree/src/test/resources/sample-data.xml to generate the data in the wrong order. So what happens is that there are zero base class records in the table when the other class runs its test. This second class is, due to me regenerating the base class, now first in the sample data and first to be tested.

    The fix:
    To fix this, just move the data around in the sample-data.xml file. Poof no more Constraint problem.

    Example pseduocode:
    Class Communications {
    Long uid;
    Email email;
    { . . . methods . . . }
    }
    This Communications class is first in the sample-data.xml file because the Email class was generated second
    Class Email {
    Long uid;
    String emailAddr;
    { . . . methods . . .}
    }
    So initially I had autogenerated the Email class first. Then made an addition to the email class’s attributes. Then regenerated it with
    mvn appfuse:gen -Dentity=Email ; mvn appfuse:install -Dentity=Email
    Did my fixup of the ./tree/src/main/webapp/WEB-INF/applicationContext.xml
    Finally mvn test
    So before the mvn test fix the sample-data.xml file and you’ll be fine.

    • Share/Bookmark

    No Comments "

    Appfuse – Extending your classes

    February 14th, 2010

    I had extended my Event class to include references to other objects. I also created @OneToOne annotations of them.
    All of a sudden the tests wouldn’t run.
    Well the problem lay in the sample data that is loaded into the table during the tests. I was referencing the appfuse User class. During the autogeneration of my Event class, it autogenerates three records into ./tree/src/test/resources/sample-data.xml . However, the original Appfuse where you did the quickstart from the main site, only outputs two User records.
    So I added a third User record and everything fell into place and started working again.

    Peace out.

    • Share/Bookmark

    No Comments "

    Appfuse – the next step

    February 14th, 2010

    Appfuse – personalizing the app
    2/13/2010

    Purpose:
    Which files to edit in order to personalize the existing app for my company.

    Remember:
    App name is: tree
    Company is: joroto.com
    Source is in: Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    Appfuse – quick start guide for newbies.

    February 13th, 2010

    Appfuse

    Add classes to initial project creation

    2/12/2010

    Overview:

    You have done the QuickStart to see if you can get everything to work. This article assumes you DID indeed get the initial project working. You’re excited and want to “add something” to that project and begin working on your own. You need to read through this with a clear head because there is a gotcha once you get past adding ONE java class file. Not sure why but there is a fix.

    Ok here’s the scoop.

    Use the videos for the tutorial. They’re up to date. The other tutorials never worked for me.

    Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    Management 901 – Why you want to become a manager

    January 29th, 2010

    I’ve come to some realizations while watching some, ummm managers at another company. Yes that’s it.
    One ponders the question “Why do you want to be a manager”.
    1) I’m stupid so I can be a great manager and lead the company to nowhere.
    2) I know how to spend money at home, what’s the difference?
    3) I can budget money, Read the rest of this entry “

    • Share/Bookmark

    1 Comment "

    iPad – uh yeah great name

    January 29th, 2010

    Open letter to Mr. Steven Jobs:

    Steve,
    This isn’t a pile on session, I’ve seen the ignorant bashing you incessantly.   I’m too tired). I’m not here to do the same.  Well of course I am. Its fun, its the NEW new thing to bash Apple for not providing everyone their own personal spaceship to Mars (see previous blog post).
    iPad: This name, sucks. Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    Mars needs women

    January 29th, 2010

    Yeah another startup with no babes. Great. We’re geeks and we must be gay.
    Can someone please recruit some hot intelligent women please?
    Eye candy while we wile away our lives working for DA MAN.
    30 hour programming sessions are too long.
    Why is our blog “from the guys”? Cause there aren’t any chicks here. Isn’t that against the law?
    Help me . . . . Spock.
    -T-

    • Share/Bookmark

    1 Comment "

    NO JOY. An OS 3.0 upgrade story

    September 5th, 2009

    Went to the iTunes store to upgrade one of my iPods to the OS 3.0 SDK to see if we can monetize the crap out of it. Hey, I’ve BEEN BUSY, so shutup.
    Anyway, No joy. An UNKNOWN ERROR occurred on my transaction.
    I will report back on this when I solve Apple’s problem (again).
    Update and FIX:
    The error was “An Unknown Error Occurred (1004)”. Read the rest of this entry “

    • Share/Bookmark

    9 Comments "

    HOLY CRAP BATMAN SNOW LEOPARD’S GOT ME

    September 5th, 2009

    Face (our undead President) close your eyes and skip this rant.
    Ok folks, spent the whole $25 in cheeseballs on the OS X upgrade.
    Those *beep* *beep* *BEEPITY* *beeps* (edited by Face) at Apple have completly wiped my XCode links to the SDKs. NOTHING BUILDS NOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    HOLY **** Batman!
    I’ll update here about this crap. GREAT! Like we need MORE WORK. Of course WE’LL be blamed for this. Those BEEEEEEeeeeeeeeeeeeeeeeeeeeep (edited by Face).
    -T-
    Update:
    Ok my fault, when I upgraded, I should have put XCode 3.2 into A NEW PLACE!!! otherwise it “upgrades” your existing install (assuming you used the defaults) by erasing all your SDKs! How intuitive. Yeah if I RTFM. Ok so the way out is to download the OS 3.0 SDK which “doesn’t have all the 2.x SDKs”. Hmmm Let’s see nope. No more ranting. By this time you want answers.
    I’m doing that right now and its taking 20 minutes for 404MB.
    The original solution is to install the new 3.2 Xcode into A NEW PLACE and DO NOT UPGRADE the existing installation. Well they at least got that part correct.

    • Share/Bookmark

    No Comments "

    The Matrix for the rest of us – Virtualization for the masses

    August 7th, 2009

    Ok I got one of those stinkin locked down Corporate PCs. Yep one of dem.
    I wanted to put CentOS and my other Linux PC’s image (The one I used until the Corporate Execs caught me. Jack booted thugs).
    Anyway I thought (stupidly of course) let’s give Microsoft’s Virtual PC a try. Nope. Choked and then spit it out. Not what a geek wants from his trusted minion.
    Next up let’s try Sun Microsystems’ Virtual Box. Ahhhh bliss. A free solution to the “You’ll run what WE want whether you like it or not you cubitized pond scum”. LOL I now run Linux “underneath” the corporate package. Network is connected, I’m even sending to the corporate printers. Way cool. I thumb my nose at those dweebs.
    Props for VMWare. I use it at home and it is truly seamless. I don’t run it on the corp PCs so that the suits won’t have even more cause to, umm, flush me. You can see by an other post that they work us hard. Some of us need not work as hard because we’re 10 times more productive than the other 100 mediocre programmers. So we skate and the manager’s lick our boots and think we ARE gods! Mwhwhahahaahahahaaaaaa

    • Share/Bookmark

    No Comments "

    udev is your friend

    July 23rd, 2009

    I was solving yet another problem with deployment where we replace a printer with one interface (a parallel port /dev/lp0) with the same printer with a different interface (a usb port /dev/usb/lp0). Read the rest of this entry “

    • Share/Bookmark

    2 Comments "

    Create an iPhone app splash screen

    July 10th, 2009

    1-Create a .png file with Adobe Fireworks, Adobe Photoshop, Gimp, or any of the graphic programs out there.

    2-Name it Default.png.

    3-Add it to the Resources tab of your Xcode project.

    This will add this splash screen automatically to your program when it runs, and will place this graphic on the screen as your app loads into memory and runs.

    • Share/Bookmark

    No Comments "

    Codesigning Kumite #92,232

    July 10th, 2009

    Real world example. I’m updating our Lite version of Trisaic to reintroduce to the app store.
    In Xcode but of course.
    Choose distribution.
    Select trisaiclite under the “targets” Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    Codesign error number 5,202,203,023. Frustrated but undaunted.

    July 10th, 2009

    The AppID in the Dev Central is setup with a specific application id code.
    Ex. hc124g12.com.joroto.agauge
    My app had the product name ${PRODUCT_NAME} as aGauge.
    The capital ‘G’ was the problem. Do you see it? Yep neither did I, Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    Replacing graphics files in XCode

    July 10th, 2009

    I wanted to replace some graphics files under my resources in the Xcode environment. They are currently symlinks. I wanted them to be actual files in order to zip up and send to other developers. I thought an inexperienced user may appreciate this content.

    Select the graphics files with a click, Read the rest of this entry “

    • Share/Bookmark

    No Comments "

    iPod/iPhone “No provisioned device” error in XCode

    June 14th, 2009

    In the Organizer in XCode you notice that your iPlatform device (iPod/iPhone) is not recognized as a provisioned device. The little “light” is not green. However iTunes can sync with it and give it a great big kiss.
    Cause: I believe this is due to the iPlatform device being plugged in when the computer goes to sleep.
    Solution:
    1) Unplug the iPlatform device from the USB.
    2) Hold down the top power off and the circle App Exit button at the same time, then release at the same time.
    3) A slide switch appears saying “Power off”. Do so. This is a hard power down of the device.
    4) Now you can just plug the device back into the USB cable. XCode will see it and use it now. This has happened many times to me and this is the exact solution to that.

    • Share/Bookmark

    No Comments "

Panorama Theme by Themocracy