Mark Espinoza

Apache Tapestry 5, Java, Hibernate, PostgreSQL, Maven, Apache Ant, Apache Tomcat, VPS, HTML, CSS, JQuery, GIT, Parsing, Data Analysis.

Photos
Page: 1 of 5
  • 2018.05.19 AD at 18:07 EDT
    Mark Espinoza
    Server Uptime Service

    Display the server uptime.

    #uptime   #service   #vm  
  • 2018.05.19 AD at 15:45 EDT
    Mark Espinoza
    Frozen Yogurt

    Some frozen yogurt.

    #frozenyogurt   #hotoutside  
  • 2018.05.17 AD at 11:38 EDT
    Mark Espinoza
    IWI Tavor X94

    So the pic of the single target is a zero at 25 meters(27 yards) and from the bench at 68 meters or 75 yards. The multiple target shots are standing, free hand at 75 yards. The optic is a MEPRO M21 triangle reflex sight, no magnification with and without a 3x scope and sometimes just iron sights to get a feel for how she shoots. She shoots fine. Ammo is both steel cased (cheap) and M193 ball.

    #rangetime   #x95   #handlesgreat   #zero   #tavor  
  • 2018.05.17 AD at 10:08 EDT
    Mark Espinoza
    Upgrading Bootstrap from 3 to 4, new theme, JQuery, modules

    So upgrading to the latest bootstrap version, latest jquery, and updating the theme took longer than I thought. Most of my troubles came from having to deal with the version of jquery that ships with Tapestry 5.4.3. The theme I'm using is pretty cool, professionally built, high quality stuff, so obviously I had nothing to do with it. :) But seriously, It's top notch. My problems came when trying to upgrade the version of jquery that ships with Tapestry in order to make all the bells and whistles run in the theme. I tried @Import(stylesheet, library), static imports from the Tapestry template, AfterRender, BeforeRender, etc... I ended up having to hack(modify) the jquery.js file in the tapestry-core jar file. I know, wow. But I finally figured out a combination that worked. I cleared out that file with the latest jquery, cleared out the tapestry5-jquery one too, imported popper.js(bootstrap version UMD) from the Layout template, and imported the theme/bootstrap javascript from the Layout.java class using @Import. So far everything is working including all the components from tapestry5-jquery. Adding posts is working - because you are reading this. And I'm almost done with the edit function for editing posts. Deleting is easy, of course. And now the store, shopping cart, and getting all that to work with Amazon.

    #bootstrap   #jquery   #dev   #tapestry5-jquery   #tapestry5  
  • 2018.03.12 AD at 09:52 EDT
    Mark Espinoza
    New Feature - Pager Service

    So downloading about 25MB each time you refresh the site kinda slows things down. So making a list and checking twice - in this case an ArrayList. Tapestry has a very straight forward way of adding services. You create an Interface with an Implementation and a single line in the AppModule class binding your Implementation to your Interface. A Hashtable is the main container for the pager with keys as page numbers and values as ArrayLists containing the blog posts. The pager service loads the Hashtable via a lazy loaded hibernate session call. When the next/previous page is requested the Post object is loaded. This saves load time and bandwidth, and with tapestry's built in event generators/listeners and single line config for services makes it work 'out of the box', kidding but not kidding. Did I mention I wrote ZERO javascript? The heavy lifting is done on the java side of things. The boiler plate code was written by the project creator and contributors, thankfully I don't have to even make a function call. Well, enough of that.

    #newfeature   #tapestry5   #service   #datastructure   #pager  
Page: 1 of 5
blog Index