tag:blogger.com,1999:blog-74376343091234770402024-03-14T14:22:33.114+01:00Old Guard ProgrammerThis blog tells the story of a programmer which tries to understand the "computer landscape" as it is now.
He understood and loved it in the 80's/90's.Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-7437634309123477040.post-26338854054176419382013-02-12T13:34:00.003+01:002013-02-12T13:34:52.467+01:00<br />
JavaFX for iOS and Android<br />
<br />
<a href="http://fxexperience.com/2013/02/february-open-source-update/">http://fxexperience.com/2013/02/february-open-source-update/</a><br />
<br />
it sounds almost too good to be true.<br />
<br />Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com0tag:blogger.com,1999:blog-7437634309123477040.post-74204173556851007462013-01-31T10:37:00.000+01:002013-01-31T10:37:25.615+01:00JavaFX and Google MapsThere are already some examples on the Internet which demonstrates the use of a Google Maps view within a JavaFX application. They demonstrate how to control a WebView backedup google maps javascript.<br />
<div>
One thing was always missing and that was the way back. For example how to read the current Lat Lon view position of the Google Maps view.</div>
<div>
<br /></div>
<div>
After some experiments I came to a simple timer based solution. The idea is that a timer function regularly polls the javascript document and parses the result.</div>
<div>
<br /></div>
<div>
First we take a look at the javascript code;</div>
<div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY04xikUzLVPIZuFUom89HNjAnybXg3Q7dK9RlSN_BoaNEikXbm1rq4xtirG6GI4CGLZrVghTvxLmtf3a_EmDVCCq5qRyTtd6ZIdrjjwSIk-HN9TeazA-XfA72YUkcrqju-LsQkBOQrYU/s1600/Capture.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY04xikUzLVPIZuFUom89HNjAnybXg3Q7dK9RlSN_BoaNEikXbm1rq4xtirG6GI4CGLZrVghTvxLmtf3a_EmDVCCq5qRyTtd6ZIdrjjwSIk-HN9TeazA-XfA72YUkcrqju-LsQkBOQrYU/s400/Capture.PNG" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><br /></td></tr>
</tbody></table>
<br /></div>
<div>
When the updateJavaFX() function is called the document variables (currentCenter for the position) are filled.<br />
<br />
In the JavaFX code the following part (this part is called within an AnimationTimer) is used to retrieve the current lat lon position of the map.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKrhm3HUH1jrrqPqrTZTUxbxWtTrttJgHjpj2meX-mSEWgmvoY1hAhSV7YcKMoYLkQAN7IK3Xc-FHdgmXPu5I4JZCSRdijyqNz5i8Pv8gT8AFXzXQlTJ7G8bXSxz3A9f4sSjZ5BI9fAq4/s1600/Capture2.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="296" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKrhm3HUH1jrrqPqrTZTUxbxWtTrttJgHjpj2meX-mSEWgmvoY1hAhSV7YcKMoYLkQAN7IK3Xc-FHdgmXPu5I4JZCSRdijyqNz5i8Pv8gT8AFXzXQlTJ7G8bXSxz3A9f4sSjZ5BI9fAq4/s400/Capture2.PNG" width="400" /></a></div>
<br />
Basically the trick is call the javascript document.updateJavaJX() function and then to read eg. the currentCenter javascript variable. I use the toString() function to convert it to a string and then parse it. The classcastexception is present when a different kind of map type is used eg. openstreetmap.<br />
<br />
This all could result in the following application;<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6aSrdD1_kAQiVEYNqsaLVQY3aXBB80uIc7hvl4svYKIkUg0yd582VCOdixaOXDybba0DX-tp9-6YfBlomw6qUweGgUlyoOhpaYEa7AoIDHG5uH_sY2LDxCSWbPUx_cuum-8ZtAoAbVrU/s1600/Capture3.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="315" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6aSrdD1_kAQiVEYNqsaLVQY3aXBB80uIc7hvl4svYKIkUg0yd582VCOdixaOXDybba0DX-tp9-6YfBlomw6qUweGgUlyoOhpaYEa7AoIDHG5uH_sY2LDxCSWbPUx_cuum-8ZtAoAbVrU/s400/Capture3.PNG" width="400" /></a></div>
<br />
<br />
<br />
<br />
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br /></div>
Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com7tag:blogger.com,1999:blog-7437634309123477040.post-41150681646579620072013-01-29T09:56:00.000+01:002013-01-29T09:56:58.372+01:00Fruit on Rails, 1 year<br />
It was one year ago, when I finished my first real game.<br />
Time flies.<br />
<br />
<a href="http://fruitonrails.3qc.nl/">http://fruitonrails.3qc.nl</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://fruitonrails.3qc.nl/Screenshots_files/shapeimage_6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="201" src="http://fruitonrails.3qc.nl/Screenshots_files/shapeimage_6.png" width="320" /></a></div>
<br />Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com0tag:blogger.com,1999:blog-7437634309123477040.post-63967053304692292372007-07-11T22:11:00.000+01:002007-07-11T22:12:51.672+01:00JCR Controller releasedFinally after months of radio silence.....<br /><br />Well just a release notification;<br /><br /><a href="http://www.xs4all.nl/~weertj/jcr">http://www.xs4all.nl/~weertj/jcr</a>Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com1tag:blogger.com,1999:blog-7437634309123477040.post-69908721804541754802006-12-12T22:23:00.000+01:002008-12-09T03:45:27.992+01:00Java 6 availableFinally, perhaps the longest wait for a new release is over. Java 6 is final. I used Java 6 for quite a while. And it rock's!!<br /><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgoco1XprUvNticRbQrnYCR4rSaXZs6PWRIVI-J0MglYNdhznHhrEkF1s5UoVGxH4cwZqq8uvVQPtoE2F307zp1EJnuvrq5DieFmTfDStexxj9Ko0J_Ppz181s5WC0bpENmB0WpzpsL20/s1600-h/javase6rc.gif"><img id="BLOGGER_PHOTO_ID_5007755508074589826" style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgoco1XprUvNticRbQrnYCR4rSaXZs6PWRIVI-J0MglYNdhznHhrEkF1s5UoVGxH4cwZqq8uvVQPtoE2F307zp1EJnuvrq5DieFmTfDStexxj9Ko0J_Ppz181s5WC0bpENmB0WpzpsL20/s320/javase6rc.gif" border="0" /></a><br />At home and also at work I used the beta Java 6 for my new projects. And mainly because I create Desktop applications the Java 6 version is very important.<br /><br />Many nice features are added, and Java 6 is faaaast.<br /><br />The <a href="http://www.javalobby.org/java/forums/t86031.html">press is also very positive on this release</a>;<br /><br />I personally think that this is the best release ever. Former releases there some <em>issues</em> with existing programs, but now everything goes seamless.<br /><br />Go Java go!!!Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com0tag:blogger.com,1999:blog-7437634309123477040.post-45164705712192542372006-11-28T19:52:00.000+01:002006-11-28T20:17:15.522+01:00You know when you are "Old Guard"....<a href="http://photos1.blogger.com/blogger2/3632/907914344375424/1600/hcc.jpg"><img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger2/3632/907914344375424/320/hcc.jpg" border="0" /></a><br /><br />...when you don't get any leaflets at the <a href="http://www.cetim.nl/planet/show/id=75057/contentid=781235/sc=5d793b">Gameplay 2006 </a>exibition.<br /><br />Well this weekend it was HCC 2006 time again. In the Netherlands this is/was the biggest computer event for the ordinary person. In former days (a couple of years back) it was huge.<br />But now every year it becomes smaller, the reason is that prices for companies is going up. Also the entrance fees are also exceeding normal levels (20 euro's for HCC and the Gameplay event).<br /><br />Anyway, I consider myself a reasonable gamer, perhaps even <a href="http://en.wikipedia.org/wiki/Elite_(computer_game)">Above Average (Elite rulez)</a>.<br />With the <a href="http://www.ea.com/official/battlefield/battlefield2/us/">Battlefield</a> game series as my main waste of time. But that doesn't matter, as at the Gameplay event I didn't get any leaflets from the booth girls. I clearly wasn't part of the target audience. All those poor kids did get them, but then they should, because then you've got something to read while waiting in a huge queue just to take a look at the new <a href="http://nl.wikipedia.org/wiki/PlayStation_3">Playstation 3</a>.<br /><br />But I did get my new headphone set, but because of the very loud music it was very hard to actually buy it.Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com0tag:blogger.com,1999:blog-7437634309123477040.post-10585339700819648132006-11-17T22:34:00.000+01:002006-11-17T22:41:02.363+01:00Java flashes back!Just saw a report about <a href="http://blogs.sun.com/chrisoliver/category/F3">Java's F3 scripting language</a>, impressive technology. I'm also wondering if there will be an easy to install plugin, just like Flash.Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com0tag:blogger.com,1999:blog-7437634309123477040.post-81359462672922157432006-11-15T22:41:00.000+01:002006-11-15T23:03:44.370+01:00No need for speed?<div><a href="http://photos1.blogger.com/blogger2/3632/907914344375424/1600/4_full.jpg"><img style="FLOAT: right; MARGIN: 0px 0px 10px 10px; CURSOR: hand" alt="" src="http://photos1.blogger.com/blogger2/3632/907914344375424/320/4_full.jpg" border="0" /></a> <div></div><div>Just played with a new game <a href="http://www.ea.com/nfs/carbon/us/home.jsp"><em>Need for Speed Carbon</em></a><em>. </em>Of course the movie cuts are great, the graphics are good, well perhaps I am getting spoiled? But general I think this game is another example of spicing up a ordinary racing game with a lot of useless stuff.</div><div>I don't care about painting my front spoiler, mainly because I never see it.</div><br /><div>Instead, this game should concentrate on good racing capabilities, which it doesn't. The races in the <a href="http://www.rockstargames.com/grandtheftauto/">GTA</a> games are much better, and in those games the racing is just a small part of the game.</div><br /><div></div><br /><div>In the <em>old</em> days I enjoyed a lot playing the <a href="http://de.wikipedia.org/wiki/Test_Drive">Testdrive</a> games for the Amiga. In fact except for the graphics there hasn't been much of a change compared with NFS.</div><br /><div></div><div></div><br /><div></div><img style="DISPLAY: block; MARGIN: 0px auto 10px; CURSOR: hand; TEXT-ALIGN: center" alt="" src="http://photos1.blogger.com/blogger2/3632/907914344375424/200/Tmn01.jpg" border="0" /> <div></div><br /><div>A much better racing game is the free(!) <a href="http://www.trackmanianations.com/indexUk.php">Trackmania Nations</a>. In this game the behaviour of the racing cars are more realistic compared to NSF. And because other peoples are designing custom racing tracks there are lot of different tracks to race on. This game brings back the simple old days in which the games where more focused on gameplay, rather than nice movie-cuts and pointless graphical features.</div><div><br /> </div><div></div><br /><br /><div></div></div>Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com0tag:blogger.com,1999:blog-7437634309123477040.post-25639806314124703382006-11-14T11:11:00.000+01:002006-11-14T11:16:18.499+01:00A good start of the day...<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://thedailywtf.com/Themes/default/thedailywtf/titleheader.gif"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://thedailywtf.com/Themes/default/thedailywtf/titleheader.gif" alt="" border="0" /></a><br /><a href="http://thedailywtf.com/">The Daily WTF</a><span style="color: rgb(255, 0, 0);"> <span style="color: rgb(0, 0, 0);">is certainly a good start. It's good to see that the types of bugs will never change.<br />They are just getting an other name.<br /><br />Of course the ultimate challenge is to never show up in this list.<br /><br /></span></span>Waverickhttp://www.blogger.com/profile/06199694495018771424noreply@blogger.com2