editor's daily blog: a temporary fix

editor's daily blog: a temporary fix user: password: register | login help     my pages projects communities java.net get involved java-net project request a project project help wanted ads publicize your project submit content get informed about java.net articles blogs events also in java today java.net online books java.net archives get connected java.net forums wiki and javapedia people, partners, and jobs java user groups rss feeds search web and projects: online books: advanced search editor's daily blog «you'll come around | main | here comes the heartbreak » a temporary fix posted by invalidname on november 07, 2007 at 07:09 am | comments (0) making do without parts of java.lang.math on me when i got the pitch for lawrence fulton and daniel williams' article on implementing math.pow() in java me, i wasn't sure it was that big of a deal. i mean, for integers, don't you do exponents by just going into a for loop and multiplying? well, yeah, you do. but java me now supports the double type, and your base and exponent might both be fractional. or negative for that matter. and if you can't bank on having a corresponding cpu instruction, what do you do? maybe you guess. or, more specifically, you work your way around approximations of the right answer until you get a good enough result. in today's feature article, the authors look at techniques for creating a java me math.pow() method, focusing on the example problem n = 82/3. without the availability of the initial exponent up front, other solutions to this problem (including newton's method and the secant method) are not readily programmed. although there are some workarounds for the bisection method, we (instead) focus on three methods not traditionally investigated. the first is a simple (yet sometimes inefficient) geometric decay algorithm, while the second method leverages the math.sqrt() method and guarantees convergence to an approximate solution in no more than 11 iterations. the third and final method uses the taylor series approximation for the logarithm followed by the euler transformation on the taylor series. speaking of me, the latest java mobility podcast is tricastmedia mail and twuik . in it, dr. brian lee and dr. salmon ahmad introduce their tricast mail and push technology for delivering user information to cell phones. it uses twuik which greatly improves usability with dazzling graphics, vibrant animation in an engaging rich-media user experience. in java today, mark reinhold's latest blog has a timeline for upcoming openjdk infrastructure projects. "the publication last week of our experimental mercurial repositories heralds the list of many infrastructure projects that we hope to initiate, and in most cases complete, over the next year or so. here's the entire list..." he starts with q4's to-dos -- code-review publication, core community database, and public mercurial forests -- and then previews 2008's key projects in detail. the jsr for java ee 6, jsr 316, was submitted to the jcp in july. so what will the the 316 expert group include in this version? in the artima interview, java ee 6: a conversation with bill shannon and roberto chinnici, the spec leads for jsr 316 discuss the key design considerations for the upcoming version of the enterprise java specification. the java communications community is congratulating the jdiameter project for their graduation and promotion out of the incubator. "jdiameter is an api and default implementation of the diameter protocol (based on rfc 3588) written in java. api can be used for commercial realizations of a stack and appendices such as nasreq (rfc 4005), eap-based authentication (rfc 4072), credit-control (rfc 4006), or even some of the 3gpp applications (sh, ro, cx and ets.)." some blogs about conference visits don't do much more than offer some pictures of a couple speakers and attendees. arun gupta's glassfish day beijing 2007 - by the community, for the community, featured in today's weblogs is very much the opposite, offering links to the slides that were presented in the sessions, and also covering the question-and-answer sessions that closed each presentation. sean sheedy brain dumps his gphone open phone alliance thoughts in on the android announcement - a bullet list. "a friend in the industry asked me for my opinion on the android news, and this was my response." finally, in jsf usage and jsf 2.0 update, ed burns shares "the latest discoveries about sites using jsf and give a quick update on jsf 2.0." today's forums start off with shyamal mehta seeking help with publishing data to all instances in a cluster. "in a clustered environment i need to publish data to all instances in the cluster. what is the best way to do it? the use case is for the requirement is to be able to process an external rate feed, which will be done by only one of the instances and then make that available in all instances. the external feed is parsed every 10-15 seconds. using jms and a topic seemed like a solution, but glassfish only invokes one mdb for a message so the change will not be propogated to all instances." robert engels works through a conversion gotcha in re: [jai-imageio] read tiff, write tiff... why are the files different sizes? "this question brings up a good point... i don't think it is possible to read an image that uses lossly compression, and rewrite it changing some of the metadata - if you don't set the compression, the file will become large, if you set the compression then the image is compressed again (multiplying the error). it seems you would need to be able to extract the compressed stream from the original image, and write it out verbatim. any ideas?" finally, sloanb is trying to figure out listeners and custom mapped listener methods in jmaki. "i'm finally beginning to somewhat understand how things are meshed together with jmaki but i still have lots to learn. one thing that is still unclear to me is the user of custom events with widgets and how to setup them up. for example lets say i have a table and i want a custom onselect listener to be registered with the dojo.table when the user clicks on the table row. to my understanding you should simple put a custom listener in the glue.js and have the widget (dojo.table) subscribe to it. when the widget publishes to this it will call the method and perform that logic. am i way off base here? i've been working through several of the examples but haven't figured it out completely yet." current and upcoming java events : november 6-8 - sun tech day - tokyo november 7-9 - irish java technology conference november 8 - triangle linux user's group: digital identity from ldap to saml and beyond november 9-11 - rocky mountain software symposium 2007: fall edition november 13 - java user group lausanne, switzerland: glassfish v2 & v3 november 15 - memphis/mid-south java user group: junit, unit testing, and design for testability november 16-18 - great lakes software symposium 2007 november 19 - triangle java user's group: better search with apache lucene and solr november 19-23 - j2ee training philippines november 20 - enterprise comet presentation by jonas jacobi and john fallows at google november 26-27 - jax asia 2007 december 3-6 - google web toolkit conference december 5-7 - sun tech day - frankfurt december 10-14 - javapolis 2007 december 12-15 - the spring experience 2007 december 13-14 - congress panamajug 2007 january 9-11 - codemash 2008 january 9-10 - sun tech day - atlanta january 22-24 - java mobile & embedded developer days registered users can submit event listings for the java.net events page using our events submission form. all submissions go through an editorial review before being posted to the site. archives and subscriptions: this blog is delivered weekdays as the java today rss feed. also, once this page is no longer featured as the front page of java.net it will be archived along with other past issues in the java.net archive. bookmark blog post: del.icio.us digg dzone furl reddit comments comments are listed in date ascending order (oldest first) | post comment only logged in users may post comments. login here. this work is licensed under a creative commons license. powered by movable type 3.01d   java.net rss feeds feedback  | faq  | press | terms of use privacy  |  trademarks | site map   your use of this web site or any of its content or software indicates your agreement to be bound by these terms of participation.   copyright © 1995-2007 sun microsystems, inc. powered by sun microsystems, inc., o'reilly and collabnet

Acceuil

suivante

editor's daily blog: a temporary fix  Screenplay Coverage from ***** script-fix *****  FIX-TIPS Free Football picks & Best Soccer betting tips, soccer ...  Amazon.com: War Fix: Books: Steve Olexa,David Axe  Coldplay – Fix You – Music at Last.fm  WinXpFix.com Home page (wixpfix.com) Windows xp news, Tips, Free ...  M i c h a e l F i x  fix  Tricky fix-up plan devised for space station- msnbc.com  WinSock XP Fix 1.2 Freeware download page - tested and reviewed ...  FIX, starring Shawn Andrews, Olivia Wilde, Megalyn Echikunwoke ...  High-fi fix for malfunctioning Guitar Hero III Les Paul - Engadget  WordPress 2.0.6: Feedburner issue, and fix « Mark on WordPress  Geotag your blog, site or feed Address Fix  NPR : Oprah Pledges to Fix School amid Abuse Reports  BBC - Languages - Spanish Quick Fix  Digg - How Nintendo Can Fix Wii's Storage Space Problem without a ...  Security Fix Live - washingtonpost.com  ThinkGeek :: No, I will not fix your computer  Lauren Fix: The Car Coach ~ Automotive Expert  BigFix :: Home  NANIA RÉHAUSSEUR DREAMWAY SP FIX SILVER acheter comparer prix ...  > pivx_ - home & office  The Fix - Yeah:No Recordings Get The Curse  Pack Ski+Fix avec le guide du matériel ski/snow d'annuaire-ski.com  Josh Fix  Microsoft Excel : Calculation Issue Update (Fix Available)  Livre The PC Doctor's Fix-it-yourself Guide - A. Kingsley-Hughes ...  Fix Our Ferals  gratuit : bug in Excel 2007 Calculation Fix available. : tout le ...  fix buffalo today  fixoyun fix oyun fiks oyunlar fıxoyun fıx oyun fiks oyun fix ...  Fix 4 RSO  The Fix - Salon.com  It's not always malware: How to fix the top 10 Internet Explorer ...  Download details: SafeDisc Windows XP Fix for Microsoft Games  Fix Your Own Printer  Jim Fix  Don’t Throw Out Your Broken iPod; Fix It via the Web - New York Times  Ezee-Fix  WMP Scripting Fix  Conservatives to fix glitch that could block rural voters  Heroes: The Fix - TV.com  Fix - Wikipedia  AmyFix.com  NVidia Refresh Rate Fix Win2K/XP - PC INpact  Outlook Recovery Tool to Fix PST File - PST Repair Software  GUNDAM FIX FIGURATION  What Mozilla users should know about the shell: protocol security ...  CSS PNG Image Fix for IE » Blog » Komodo Media  Qwik-Fix (de PivX Labs)  Fantasy Fix: Starters - MSN Video  AppleInsider iMac Software 1.2.1; Time Machine fix; MacBook ...  AppleInsider Apple releases iMac freezing fix, MacBook Pro ...  Microsoft to Fix Two Windows Holes on Patch Tuesday  Les plus beaux restaurants du monde : Le Fix  NASA plans spacewalk to fix ripped solar wing - CNN.com  BBC - Languages French Quick Fix - Basics  DailyTech - Apple Releases Fix for iMac Freeze Issue, Updates MacBooks  PC World - Apple Posts QuickTime Security Fix  PC World - Two Charged with Hacking PeopleSoft to Fix Grades