Quantcast
Channel: a computer hobbyist's notebook - Java
Browsing all 13 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Random Integers (J2ME)

So, I'm studying J2ME, and for some reason (maybe the wrong version of CLDC?) I can't use random.getNext(n). I can't specify the range of the random number. What a pain.I wanted to avoid doing floating...

View Article


All Your Applications Are Belong to Us

The Glassfish server includes a Ruby and Rails implementation.There's a Java Python that's well established.The PHP implementation is not a Sun project. It's called Caucho, and it runs PHP quickly,...

View Article


Cheapskate Developers Mobile Phone Tips

I feel lame when it comes to mobile phone hacking because I'm so far behind the state of the art, by at least five or more years. The only good thing about this is that, generally, only games have...

View Article

Nutty Hack - Dojo Javascript Front End to OpenOffice.org through Servlets

This is weird. The authors turn OpenOffice.org into a spreadsheet server -- and then create a front end in Dojo with Javascript, and tunnel events from the front end to the OOo spreadsheet via a Tomcat...

View Article

Strict Typing Seems So Important

I'm relearning Java, and strict typing now seems so important.It's absurd because large systems have been created with minimalist typing. Most systems don't really need many types: references, strings,...

View Article


So much "stuff" in Java

So, the tokenizer's done, and the parser's code is written but not tested. The standard testing system included with NetBeans is JUnit. JUnit is a better way to try out code than the usual thing where...

View Article

Bedrock, Google, and Patent 5893120

A story about Google losing a patent lawsuit against Bedrock, an East Texas "patent troll" has been making the media rounds, but I haven't yet seen an analysis of the patent. All I see is talk about...

View Article

Comparison Shopping for Toilet Paper, in multiple computer languages.

It's hard to concentrate when you're tired and cranky, so I wasted some time writing a simple calculator in several different languages. This is a simple calculation of the cost-per-sheet for toilet...

View Article


The difference between pets and meat, in Java

enum Pet { DOG, CAT, PIG, RAT, FISH, COW, CHICKEN } enum Meat { DOG, CAT, PIG, RAT, FISH, COW, CHICKEN } class animals { public static void main(String[] args) { Pet pet = Pet.PIG; Meat meat =...

View Article


Image may be NSFW.
Clik here to view.

TPCalc for Android

A while back, I made a little program called TPCalc to do one of my favorite mundane activities, which is to determine the best price for toilet paper at the discount store, using a toy program written...

View Article

Novice's Notebook

This is a repository of "novice" articles, written with the intent of driving more traffic to the site, and getting more ad clicks. It's pretty crass, I know, but the information may be very useful....

View Article

Code Generation, Frameworks, App Servers (not only PHP)

Here's a list of things to check out.PHP Frameworks comparison site.J2EE TutorialCakePHPQcodoRuby on RailsFuseboxAOL Server (TCL app server)OK Web ServerCodeigniterWACTCatalystPython Frameworks.Java...

View Article

This site has moved.

The site has moved to riceball.com, without the trailing /d/.

View Article

Browsing all 13 articles
Browse latest View live