I wrote my first web-based iPhone app. It's ridiculously simple yet useful, a car lease calculator. Now when you're haggling for that payment price, you can look it up yourself :) It works in normal browsers too, have a look.
[edit: moved to motortopia.com]
http://www.motortopia.com/mobile/lease
Thursday, September 27, 2007
Sunday, September 23, 2007
The iphone drama
Yes, the iphone. It has been the talk of the town since June. Although I had not seen one in person, I wanted one. I never bought a PDA. I wanted to wait until the day I could easily do everything on one device, most notably:
* talk on the phone
* surf the web
* read email
* listen to music
I stress the word easily. The iphone is the first thing I've seen that lives up to this dream. I tried a few of the Smart phones such as the 8525 and 3125 from Cingular. They were, to say the least, difficult to work with. The 8525 sucked as a phone, and pretty bulky. The 3125 just wasn't too usable except as a phone, and it was sluggish.
Now that the price came down considerably, I ordered my iphone. It will be arriving next week. Also, I got a hold of a friend's iphone a few days ago and played with it. Although you could nitpick about a few things (3G, GPS, replaceable battery), even as a version 1.0 product it is MILES ahead of the pack. This has to be, by far, the most profound gadget in history.
I gave it the girlfriend test. She uses a Mac for Safari, Mail, and Microsoft Word. By no means is she a gadget user. I handed her the iphone and said, "Go to catster, look up your cat." She did it on her own, and quite easily. No coaching, no prior use or guidance of the iphone. Then I gave her my 3125 and said do the same thing. It took her at least a couple minutes to figure out how to use the soft-keys. Then she found the web browser, I had to help her a bit to get the URL prompt up. She did know how to punch in letters, she must have SMS'd before. But she couldn't figure out how to type a period "." without some help. Now as far as viewing the page in mobile IE, well let's just stop there.
No, I'm not a mac geek. I've used Macs, and I like them. I have a Mac at home. But I still use Ubuntu and Windows primarily. Why? A few reasons, but mostly because the poker clients I use are not available on a Mac. Poker Stars, are you listening?
* talk on the phone
* surf the web
* read email
* listen to music
I stress the word easily. The iphone is the first thing I've seen that lives up to this dream. I tried a few of the Smart phones such as the 8525 and 3125 from Cingular. They were, to say the least, difficult to work with. The 8525 sucked as a phone, and pretty bulky. The 3125 just wasn't too usable except as a phone, and it was sluggish.
Now that the price came down considerably, I ordered my iphone. It will be arriving next week. Also, I got a hold of a friend's iphone a few days ago and played with it. Although you could nitpick about a few things (3G, GPS, replaceable battery), even as a version 1.0 product it is MILES ahead of the pack. This has to be, by far, the most profound gadget in history.
I gave it the girlfriend test. She uses a Mac for Safari, Mail, and Microsoft Word. By no means is she a gadget user. I handed her the iphone and said, "Go to catster, look up your cat." She did it on her own, and quite easily. No coaching, no prior use or guidance of the iphone. Then I gave her my 3125 and said do the same thing. It took her at least a couple minutes to figure out how to use the soft-keys. Then she found the web browser, I had to help her a bit to get the URL prompt up. She did know how to punch in letters, she must have SMS'd before. But she couldn't figure out how to type a period "." without some help. Now as far as viewing the page in mobile IE, well let's just stop there.
No, I'm not a mac geek. I've used Macs, and I like them. I have a Mac at home. But I still use Ubuntu and Windows primarily. Why? A few reasons, but mostly because the poker clients I use are not available on a Mac. Poker Stars, are you listening?
Thursday, April 19, 2007
Getting weather in PHP
Just a quick tip how to get weather from weather.gov using their SOAP WSDL weather service. You will need to know the latitude and longitude of the place you are getting weather for.
First, make sure you have the --enable-soap extension installed.
Then it is just two lines of code:
$client = new SoapClient('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgen');
$result = $client->NDFDgen(40.7893,-96.6938,'glance','2007-04-20T00:00','2007-04-21T00:00',NULL);
More information here:
http://www.nws.noaa.gov/forecasts/xml/
First, make sure you have the --enable-soap extension installed.
Then it is just two lines of code:
$client = new SoapClient('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgen');
$result = $client->NDFDgen(40.7893,-96.6938,'glance','2007-04-20T00:00','2007-04-21T00:00',NULL);
More information here:
http://www.nws.noaa.gov/forecasts/xml/
Monday, March 26, 2007
controlling tilt
I went up to the Horseshoe casino Saturday evening and played some 2-5 No Limit. I bought in for $300 and walked out with $800 about six hours later. It was a pretty successful night of poker. I thought I'd mention one interesting hand regarding tilt.
There was a guy at the table talking a lot most of the night. It seemed he wanted everyone to know he's quite the seasoned player. Good for him. At one point during the night he decided he was buying the blinds from the small blind, and raised a pot-size raise with four limpers. One caller from the button, the flop came 89J, rainbow. The small blind makes a comment "Well, if you out-flopped me, you got me." (weakness?), and moved all in for about the size of the pot. The button called and turned up TJs. The small-blind scoffed and turned up K9o. He didn't catch up, and started ridiculing the button's play. "Interesting play. You'll go broke playing like that. Just keep it up." Then someone at the table shook their head, and then he decided to get in their face about it.
The guy is shaking his head because Mr. brilliant raised out of position with K9 and lost his bankroll. Obviously he picked the wrong hand and the wrong time, and it was unsuccessful. But my question, why ridicule the winner?
To be honest, I can't think of a good reason to ridicule another player. If he outplayed you, you make yourself look even worse. If the other guy make a horrible play and got lucky, so what? You want those players at the table! A nice hand sir! is in order! Make him feel good about his chase, he'll give up his money sooner or later. Are you trying to teach something? What for?
OK, we know the most probable reason: tilt. You have to learn to control your emotions. Getting a bad beat can be a tough thing to deal with. The other players know what happened, you don't need to explain anything to them. But the better they see you control yourself, the more respect you'll gain from them. And, it makes you feel better about yourself, and thats a little something that goes a long way to making you a stronger player.
There was a guy at the table talking a lot most of the night. It seemed he wanted everyone to know he's quite the seasoned player. Good for him. At one point during the night he decided he was buying the blinds from the small blind, and raised a pot-size raise with four limpers. One caller from the button, the flop came 89J, rainbow. The small blind makes a comment "Well, if you out-flopped me, you got me." (weakness?), and moved all in for about the size of the pot. The button called and turned up TJs. The small-blind scoffed and turned up K9o. He didn't catch up, and started ridiculing the button's play. "Interesting play. You'll go broke playing like that. Just keep it up." Then someone at the table shook their head, and then he decided to get in their face about it.
The guy is shaking his head because Mr. brilliant raised out of position with K9 and lost his bankroll. Obviously he picked the wrong hand and the wrong time, and it was unsuccessful. But my question, why ridicule the winner?
To be honest, I can't think of a good reason to ridicule another player. If he outplayed you, you make yourself look even worse. If the other guy make a horrible play and got lucky, so what? You want those players at the table! A nice hand sir! is in order! Make him feel good about his chase, he'll give up his money sooner or later. Are you trying to teach something? What for?
OK, we know the most probable reason: tilt. You have to learn to control your emotions. Getting a bad beat can be a tough thing to deal with. The other players know what happened, you don't need to explain anything to them. But the better they see you control yourself, the more respect you'll gain from them. And, it makes you feel better about yourself, and thats a little something that goes a long way to making you a stronger player.
Monday, February 26, 2007
The hottest hot sauces
You like hot sauce? This is a comprehensive list of hot sauces and their "scoville" ratings. I personally own a Dave's ultimate insanity (90,000 scoville) and Mad Dog 357 special edition (600,000 scoville), both too hot to take straight on. I couldn't imagine 16 million scoville. Use at your own risk.
Sauces and their scoville ratings
Sauces and their scoville ratings
Friday, February 23, 2007
Poker Odds Calculator
This is a project I worked on last year. It is pretty useful for a lot of odds calculations such as poker, keno, etc. It has a very raw interface, but at the same time very flexible. You can also do simple Binomial Coefficient calculations, which is what the poker calculator is based on.
Monte's Poker Odds Calculator
Monte's Poker Odds Calculator
Thursday, February 22, 2007
Joost: The future of TV?
I just got myself a beta invite to joost.com. Its an IPTV startup, created by the makers of Skype. So far, I'm very impressed with it. Think streaming TV, full screen. Think TV shows, without the need to torrent.
Currently it seems to be on-demand content only. Fifth Gear, Worlds strongest man competition, cooking shows, etc. I'm sure this will only get better as they make more deals with large broadcasting companies. This should quickly become a good alternative to cable or satellite TV!
Currently it seems to be on-demand content only. Fifth Gear, Worlds strongest man competition, cooking shows, etc. I'm sure this will only get better as they make more deals with large broadcasting companies. This should quickly become a good alternative to cable or satellite TV!
Subscribe to:
Posts (Atom)