Uncommented Byteshttp://uncommentedbytes.blogspot.com/Tech briefs and notes by <a href="http://jeffsheets.herokuapp.com/">Jeff Sheets</a>. I'm a java/web developer/designer/ engineer/architect in the surprisingly energizing city of <a href="http://goo.gl/TT7Mp">Omaha</a>.
<br><br>
Senior Consultant for <a href="http://objectpartners.com/">Object Partners</a>
<br><br>
Specializing in Enterprise Apps on the JVM stackennoreply@blogger.com (Jeff Sheets)Mon, 12 Nov 2018 01:50:20 PSTBlogger http://www.blogger.com99125Guide to Creating Native Mobile Apps with Ionic2http://uncommentedbytes.blogspot.com/2016/07/guide-to-creating-native-mobile-apps-ionic2.htmlAndroidAngularAngular2App Storee85EthanolIonicIonic2iOSKindlenoreply@blogger.com (Jeff Sheets)Thu, 07 Jul 2016 14:29:35 PDTtag:blogger.com,1999:blog-6970836.post-8107650580065920186Over the last few years I've had a nice little side project called GasPumpr.com. It is an ethanol efficiency calculator that determines the equivalent price-per-gallon of different ethanol blends. I use it to decide which gas is the most economical to purchase when standing at a pump that has different blends (no-ethanol, e10, e15, e85). You can read all about how it works and why at http://0Jetty JTA via JNDI with Springhttp://uncommentedbytes.blogspot.com/2012/12/jetty-jta-via-jndi-with-spring.htmlJavaJettyJNDISpringnoreply@blogger.com (Jeff Sheets)Fri, 28 Dec 2012 09:38:59 PSTtag:blogger.com,1999:blog-6970836.post-4014588881224443493Finally got Jetty 8 to have JTA transactions available to Spring via JNDI lookup using Atomikos 3.8 after a lot of trouble. I'm not 100% sure if this is correct but it seems to be working for me.
My main driver was not wanting to have Atomikos classes hardcoded in the spring config. Instead we can just register the Atomikos UserTransactionManager and UserTransactionImp classes in JNDI and have 2iPhone Gmail Notes sync to Machttp://uncommentedbytes.blogspot.com/2012/09/iphone-gmail-notes-sync-to-mac.htmlnoreply@blogger.com (Jeff Sheets)Tue, 18 Sep 2012 21:14:48 PDTtag:blogger.com,1999:blog-6970836.post-2970634513263905666After setting up Mountain Lion on my Mac, I went and tried the new Notes sync feature. I've been syncing my notes from my iphone to Gmail for months now (or so I had thought).
But going into the Notes app on my Mac I did not see anything newer than 6-8 months ago.
Then I checked gmail and the Notes label showed the same. And a few google searches turned up empty.
The fix for me was to go 0CSS word-break and word-wraphttp://uncommentedbytes.blogspot.com/2012/08/css-word-break-and-word-wrap.htmlcsshtmlnoreply@blogger.com (Jeff Sheets)Sun, 05 Aug 2012 20:47:48 PDTtag:blogger.com,1999:blog-6970836.post-5004847283551862226
Finding a cross-browser CSS solution to force breaks in long words inside of table-cells is not an easy task. My issue was specifically with email addresses formatted like reallyreally.long.email.addressthatdoesnotbreak@fakeemail.com. The snag is that support is decent inside of block-level elements like divs, but only hacks seem to exist for table cells.
The widely supported white-space will 0jQuery to Disable IE MS Lync phone number iconshttp://uncommentedbytes.blogspot.com/2012/06/jquery-to-disable-ie-ms-lync-phone.htmljavascriptjquerynoreply@blogger.com (Jeff Sheets)Wed, 27 Jun 2012 05:22:00 PDTtag:blogger.com,1999:blog-6970836.post-4478679215032976118Corporate environments have been pushing out MS Lync as the IM successor to Office Communicator. With that comes a click-to-call plugin that automatically puts a little phone icon next to any detected phone number on a web page. I can only assume that clicking the icon will make a phone call, as if anyone really wants that feature to be on by default.
Unfortunately for web developers, the icon 4JQuery UI datepicker IE focus fixhttp://uncommentedbytes.blogspot.com/2012/06/little-writeup-cross-posted-on-opi-blog.htmljavascriptjquerynoreply@blogger.com (Jeff Sheets)Wed, 20 Jun 2012 07:11:27 PDTtag:blogger.com,1999:blog-6970836.post-647292892747922123A little writeup cross-posted on the OPI blog about making the jquery UI datepicker send blur events when dates change, while handling a quirk with IE:
http://www.objectpartners.com/2012/06/18/jquery-ui-datepicker-ie-focus-fix/1Spring regex-backed Date converterhttp://uncommentedbytes.blogspot.com/2012/01/spring-regex-backed-date-converter.htmlnoreply@blogger.com (Jeff Sheets)Thu, 19 Jan 2012 10:26:48 PSTtag:blogger.com,1999:blog-6970836.post-5926716227132982936I've written a small OPI blog post describing a Regex backed Spring Date Formatter/Converter annotation.0Cookie Craziness with IE and Javascripthttp://uncommentedbytes.blogspot.com/2011/07/cookie-craziness-with-ie-and-javascript.htmlcookiesjavascriptnoreply@blogger.com (Jeff Sheets)Tue, 19 Jul 2011 21:09:25 PDTtag:blogger.com,1999:blog-6970836.post-3238839803281948323This is a helpful post for my future self (and others) on the peculiarities of http cookies and accessing them from javascript vs server side. Since it took me numerous google searches to find all of the answers I'm putting the useful details here in one place for reference. I assume a basic understanding of browser cookies exists in your head already.The properties of cookies that matter are key1Format groovy StreamingMarkupBuilder XMLhttp://uncommentedbytes.blogspot.com/2008/09/format-groovy-streamingmarkupbuilder.htmlnoreply@blogger.com (Jeff Sheets)Tue, 30 Sep 2008 11:22:52 PDTtag:blogger.com,1999:blog-6970836.post-1298753186339803051Playing with groovy this week, and specifically the MarkupBuilder and StreamingMarkupBuilder classes to create XML documents. MarkupBuilder is simple but doesn't handle namespaces in a DSL friendly way. StreamingMarkupBuilder handles namespaces nicely but doesn't pretty-print format the xml in the output. And finding information on how to pretty print xml from StreamingMarkupBuilder is rather 2Fix Twitter RSS in Google Readerhttp://uncommentedbytes.blogspot.com/2008/08/fix-twitter-rss-in-google-reader.htmlnoreply@blogger.com (Jeff Sheets)Sun, 17 Aug 2008 20:19:10 PDTtag:blogger.com,1999:blog-6970836.post-8498523037821379080Here's an awesome fix to read a Twitter RSS feed with Google Reader. I just had to share because it took too long for me to find a work around to twitter's authenticated RSS feed that Google Reader couldn't show.0Use Plugin Classpath with Openfire Pluginhttp://uncommentedbytes.blogspot.com/2008/07/use-plugin-classpath-with-openfire.htmlnoreply@blogger.com (Jeff Sheets)Thu, 31 Jul 2008 08:58:53 PDTtag:blogger.com,1999:blog-6970836.post-1966323681012777640When creating an Openfire plugin, some classes cannot be found by the default classpath. This is a result of the way that Openfire loads plugins and their jars into the classpath. For me, specifically, I got a ClassNotFoundException when trying to create an IntialContext with WLIntialContextFactory, even though the weblogic.jar was in my plugin lib folder. One solution is to move everything 0Enum Serialization with Weblogic EJB Clienthttp://uncommentedbytes.blogspot.com/2008/07/enum-serialization-with-weblogic-ejb.htmlnoreply@blogger.com (Jeff Sheets)Wed, 30 Jul 2008 13:28:54 PDTtag:blogger.com,1999:blog-6970836.post-3997810548919577988I was trying to setup an ejb client to connect to an ejb running on a Weblogic 9 app server. I could connect fine, but kept getting a Mismatched serialization uids error on a Java 5 Enum class. After some digging I found a fix on JavaRanch. For whatever reason using the wlclient.jar will not work when serializing enums, but using the full blown weblogic.jar is fine. I'm going to ignore the 6Custom servlet in Openfire pluginhttp://uncommentedbytes.blogspot.com/2008/07/custom-servlet-in-openfire-plugin.htmlnoreply@blogger.com (Jeff Sheets)Tue, 22 Jul 2008 11:18:21 PDTtag:blogger.com,1999:blog-6970836.post-2790776316907035189I've been working on creating a plugin for our Openfire server, which is currently on version 3.3.3. The Plugin developer guide is a little help, and so are the message boards, but there is still some detail missing.Situation: I want to have a custom servlet that is available on the same url:port as our admin server. I don't want to have to login to the admin server to reach this url, and the 3Custom sort key with Ext JS Gridshttp://uncommentedbytes.blogspot.com/2008/02/custom-sort-key-with-ext-js-grids.htmlnoreply@blogger.com (Jeff Sheets)Thu, 28 Feb 2008 20:28:49 PSTtag:blogger.com,1999:blog-6970836.post-7780134736018746240I've begun using Ext JS in the last few days. I'm very impressed by the professionalism and api documentation, but there is still a lot to be desired as far as installation and initial setup docs.Anyway... I spent a couple hours trying to track down a way to sort a column in my GridPanel by a value other than its text. That is, I want the column to sort on a keyed index that is different than 2Using Eclipse for C++ with GLUT on Windowshttp://uncommentedbytes.blogspot.com/2008/01/using-eclipse-for-c-with-glut-on.htmlnoreply@blogger.com (Jeff Sheets)Sun, 27 Jan 2008 05:04:25 PSTtag:blogger.com,1999:blog-6970836.post-8307390867412962783For my latest grad school class at UNO, cs8626 Computer Graphics (yeah, its an easy elective for this semester), I need to develop some code using OpenGL. In my 10 years as a Java web app developer I haven't had any need for OpenGL before now, so my knowledge of it is around "beginner" to "sounds like something cool to learn". I can get by with C/C++/Make and the like, but until now I've either7Reality of Large Corp Codinghttp://uncommentedbytes.blogspot.com/2007/07/reality-of-large-corp-coding.htmlnoreply@blogger.com (Jeff Sheets)Tue, 17 Jul 2007 17:17:25 PDTtag:blogger.com,1999:blog-6970836.post-8611710149857364085I really enjoyed the article "Corporate Web Standards" today, not only for the primary thoughts, but also the secondary discussion of corporate smells. [http://www.digital-web.com/articles/corporate_web_standards/] (thanks for the link from Elsewhere on the Net [http://www.quirksmode.org/elsewhere/archives/2007/07/index.html#entry1348])The author describes a journey to implement web standards, 1Trying out Eclipse 3.3 Europahttp://uncommentedbytes.blogspot.com/2007/07/trying-out-eclipse-33-europa.htmlnoreply@blogger.com (Jeff Sheets)Fri, 13 Jul 2007 13:14:02 PDTtag:blogger.com,1999:blog-6970836.post-2569317153088857847I took the plunge this week of moving from Eclipse 3.2.1 to Eclipse 3.3 Europa. Technically, I went from the previous WTP release to the latest one. This WTP bundles some J2EE and DB features with the standard Eclipse. I don't really use it, but others on my team do.I think this is the first time I have migrated from a prior Eclipse version successfully with 0 problems. I launched the old 0Blog Reloadhttp://uncommentedbytes.blogspot.com/2007/07/blog-reload.htmllifenoreply@blogger.com (Jeff Sheets)Thu, 12 Jul 2007 20:05:27 PDTtag:blogger.com,1999:blog-6970836.post-1817353976327030735Okay, so I almost made it a full year without a post. It was some well needed time away from blogging, but I want to try and get it back together on a weekly basis.So what's going on? I took a new job at Lockheed Martin, working on some very interesting high profile contracts. It is very enjoyable and rewarding work so far. Actually, my lack of blogging coincides with my start date at LM last0Rails notes as I start looking at Rubyhttp://uncommentedbytes.blogspot.com/2006/09/rails-notes-as-i-start-looking-at-ruby.htmlnoreply@blogger.com (Jeff Sheets)Tue, 05 Sep 2006 06:16:08 PDTtag:blogger.com,1999:blog-6970836.post-115746216804922148I've started working on a Ruby on Rails side project, though I haven't had as much time for it as originally hoped. Really, I was up and running and writing code to production on an existing Rails app in a # of hours!First, ActiveRecord is very nice. From a DAO oriented Java background (with a sprinkling of Hibernate), ActiveRecord is simply amazing. I love the Model based finds and the 0Major Enterprise Ruby on Rails Issues?http://uncommentedbytes.blogspot.com/2006/07/major-enterprise-ruby-on-rails-issues.htmlnoreply@blogger.com (Jeff Sheets)Wed, 26 Jul 2006 07:08:58 PDTtag:blogger.com,1999:blog-6970836.post-115392293878043905Greg Luck has written a Report from OSCON2006: The Ruby Conspiracy where he proceeds to smash Ruby on Rails.First, I'm just starting to get past the Rails tutorials so I have NO (zero) knowledge of Rails at an Enterprise level. And I've had similar thoughts to Greg's that Rails was being pushed for the betterment of the speakers before.So really I'm asking a question here... Are the points that 6Groovy OJUG Talk last nighthttp://uncommentedbytes.blogspot.com/2006/07/groovy-ojug-talk-last-night.htmlnoreply@blogger.com (Jeff Sheets)Wed, 19 Jul 2006 13:35:19 PDTtag:blogger.com,1999:blog-6970836.post-115334114984797544Last night at OJUG (Omaha Java Users Group), Scott Hickey gave an awesome talk over Groovy. I wish I had a link to his website, but I didn't see one. He is the lead on the groovy Eclipse plug-in, and is currently finishing an article for the IBM DeveloperWorks Practically Groovy series covering groovy and spring. He's been writing production groovy code for a few years on a mission critical 2Firefox AJAX Bug - Plus Workaroundhttp://uncommentedbytes.blogspot.com/2006/06/firefox-ajax-bug-plus-workaround.htmlnoreply@blogger.com (Jeff Sheets)Tue, 13 Jun 2006 11:22:12 PDTtag:blogger.com,1999:blog-6970836.post-115022283762635651Today we stumbled across a fairly significant firefox bug with popup windows and making XHR requests. Here is the scenario:We have a calendar selection popup window for our users to select a date (typical of any reservation website). User clicks calendar icon, calendar select popup appears, user selects date, popup window closes &amp; fills text field with date.Today we wanted to add an AJAX call 6My Scriptaculous Local.InPlaceEditor extensionhttp://uncommentedbytes.blogspot.com/2006/05/my-scriptaculous-localinplaceeditor.htmlnoreply@blogger.com (Jeff Sheets)Tue, 30 May 2006 06:25:51 PDTtag:blogger.com,1999:blog-6970836.post-114867338804250158I really like the script.aculo.us Ajax.InPlaceEditor, but it's missing two things that I need.One, it only edits a single field at a time. It would be much nicer IMHO to edit an entire form at once.Two, it requires Ajax to submit the form and display the result. Nice and all, but sometimes I want to submit the form old-school style with a POST or GET and have the server generate the result. I 4Eclipse Mac OS X CVS Update Bug?http://uncommentedbytes.blogspot.com/2006/05/eclipse-mac-os-x-cvs-update-bug.htmlnoreply@blogger.com (Jeff Sheets)Thu, 25 May 2006 07:15:37 PDTtag:blogger.com,1999:blog-6970836.post-114856653667067469So I go into Eclipse (3.1.2) on my OS X (10.3.9) box and do a Team Update from CVS. Anytime that a file has been deleted from cvs by someone else's commit I get this error:Problems encountered while deleting resources.I get this error for EACH file that was deleted. Then I have to open the properties on each file and unselect Read Only. After this I can Team | Override And Update to remove the1IE Left Margin Missing Bughttp://uncommentedbytes.blogspot.com/2006/05/ie-left-margin-missing-bug.htmlnoreply@blogger.com (Jeff Sheets)Mon, 22 May 2006 10:03:46 PDTtag:blogger.com,1999:blog-6970836.post-114831727308274761This one has been bugging me for a long time before finding the answer today...In IE I couldn't get absolute positioned elements in our left-hand Search pane to appear correctly. The would get pushed onto our right-hand content pane. After thinking about it overnight (well, over multiple nights) I realized that IE was not noticing our negative left or right margins (One True Layout stuff).A 1