tunagami.com : http://www.tunagami.com/articles.rss en-us 40 cause that's how I :roll Upgrading RubyGems without outside or proxy access <p>Just something I ran into recently and thought I would write a quick note about. I had rubygems 0.9.4 on a closed off server and was able to upgrade it. I was trying to do some form of the &#8220;sudo gem update &#8211;system&#8221; and giving the path to the actually rubygems-update-x.x.x.gem, but I couldn&#8217;t get it to fly. Instead I downloaded the latest tarball and ran the setup file in it. I was nervous that it would install a second instance of rubygems, but I saw this lovely message come up while installing it:</p> <div class="typocode"><pre><code class="typocode_java ">Removing old RubyGems RDoc and ri rm -rf /usr/lib/ruby/gems/1.8/doc/rubygems-0.9.4</code></pre></div> <p>After it installed I checked the version of rubygems and it was what I installed. All my gems were still good too. The light is green, the trap is clean.</p> Fri, 23 May 2008 10:20:00 -0500 urn:uuid:d8fc9397-8c9a-4333-972a-0512d82bf8cc http://www.tunagami.com/articles/2008/05/23/upgrading-rubygems-without-outside-or-proxy-access#comments programming ruby gem programming http://www.tunagami.com/articles/2008/05/23/upgrading-rubygems-without-outside-or-proxy-access Firing up Firefox 3 RC 1 <p>Recently I have been noticing Safari 3.1.1 has been running like doody for gmail when I am at work and at home as well. I also have been having more occurrences of it crashing lately. While I am trying to stick with the &#8220;Mac Mindset &trade;&#8221; and use mac only or cocoa apps, or some other kool-aid-ish type thing, I decided to try out <a href="http://www.mozilla.com/en-US/firefox/all-rc.html">Firefox 3 RC 1</a>.</p> <p>I used to be a HUGE FF fan when it was in its 1.x days. Anyone who would let me, I switched them to using FF. It was like a whole other world. Browsing was just better. Tabs were the norm. Finding text on a page was awesome and you could highlight, etc. And it rendered faster too. I kicked IE to the curb and only used it when QA&#8217;ing any work I had.</p> <p>Fast forward to FF 2.x. I tried to stick with FF, but safari was rendering much faster in its 3.x incarnation, the memory footprint seemed to be way more manageable, and I couldn&#8217;t resist it. It&#8217;s search was as good, if not cooler than FF. I dove it and actually found I liked it more than FF 2.x and it became my default browser.</p> <p>That leads me up to now. The past 2 days I have begun using Firefox 3 RC1 more and more and I am liking it. It reminds me of the zippy 1.5. I am also finding it fits well with OS X all the same and by just changing a few settings, I am able to take advantage of some of the little &#8220;it works&#8221; type of things you get with Safari in OS X 10.5 Leopard.</p> <p>So, give it a whirl. It is not full release, but it is good enough for me&#8230; for now. Maybe I will write more about it, but if I don&#8217;t, it probably means I am still just sticking with Firefox 3 now.</p> Wed, 21 May 2008 21:12:00 -0500 urn:uuid:8c3f755b-7fc2-4d2f-80a3-75de7f77d76c http://www.tunagami.com/articles/2008/05/21/firing-up-firefox-3-rc-1#comments firefox internet browsers http://www.tunagami.com/articles/2008/05/21/firing-up-firefox-3-rc-1 Neat Animation <p>I am sure I am not the only one posting this (in fact, I found this on <a href="http://www.37signals.com/svn/">37 signal&#8217;s site</a>), but I want to post it on this site too just to spread the neatness of it. enjoy!<br></p> <p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/uuGaqLT-gO4&amp;hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/uuGaqLT-gO4&amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p> Mon, 19 May 2008 13:12:00 -0500 urn:uuid:4c6ec1ef-4f1d-442d-b509-d35d56f1bb3d http://www.tunagami.com/articles/2008/05/19/neat-animation#comments http://www.tunagami.com/articles/2008/05/19/neat-animation Monsterpocalypse: Monster Disappointment <p>Well, I am pretty sure I won&#8217;t be trying <a href="http://www.privateerpress.com/monsterpocalypse/">this game</a> any time soon. The last thing miniature gaming needs is another collectable game in my book.</p> <p>When I first began playing miniature wargames like warhammer fantasy and 40k I saw another game being played by some of the CCG regulars, Wiz Kids&#8217; Mage Knight. When I saw the figures all I thought was, &#8220;bleegh&#8221;. The figures looked liked crappy knock off action figures that spent too much time in the sun. I did appreciate the bases containing the stats, but was quickly turned off by how they looked. A friend of mine one Christmas gave me a starter pack of them, and while I appreciated the gift, after I played it with him a few times, they took up space in my closet and have never left (anyone want some old Mage Knight figs?).</p> <p>When Heroclix came out, I thought, hmm I will give this a shot. I mean, come on. It has super heroes, how can it suck? And ya know what? It didn&#8217;t. It was and still is a pretty fun game. Wiz kids simplified some of the movement rules by supplying a map divided into squares and some ideas of buildings/terrain/etc. There were rules for throwing people, throwing your own heroes at other heroes, all kinds of super-hero type of things. A friend of mine at work, at the time, played many a lunch time games each having a starter and a booster or 2. The problem was, if we wanted to expand, we needed to buy boosters. While I have no problem paying good money for a game that gives me hours of enjoyment, I don&#8217;t like playing the lottery&#8230;</p> <p>Thus ended me playing hero clix. Back in the day, I used to play Magic:The Gathering (sheesh I am busting out the geek now) and while I really enjoyed that game at the time, I HATED having to either:<ol> <li>..buy a cases of cards in the hopes of getting some good cards or&#8230;</li> <li>&#8230;paying through the nose for good singles</li> </ol>In fact, one of the things I liked a lot about most miniature games was if I want to play with 10 of X trooper I go out and buy 10 of X trooper (more or less). I don&#8217;t have to worry that X trooper is a &#8220;rare miniature&#8221; and that only 1 of the 5 miniatures in a booster is a &#8220;rare minature&#8221; and that there are 20 &#8220;rare miniatures&#8217; for that series of booster&#8230; ad naseum for lottery conditions. I want to go into the store, slap my 10 pence on the counter and say &#8220;I would like a box of Puce Rapid Fire Kabold Troopers, fine sir&#8221;. That is how I like my miniature games.</p> <p>So, where am I going with this? Well, tonight I saw that what I thought originally sounded like a cool concept from a decent game studio turned out to be another lottery miniature game. No thanks. If you want to give me some free blisters to try it out, fine, fire away, but unless your game is like crack on acid while smoking heroin out of a tuna-fish sandwich, I doubt it is going to have me riding the gaming lottery again. Looked neat, but no thanks</p> Tue, 22 Apr 2008 00:05:00 -0500 urn:uuid:fc96e7eb-55d8-4d46-963b-9dc540dcaf6a http://www.tunagami.com/articles/2008/04/22/monsterpocalypse-monster-disappointment#comments wargaming privateer press wargaming monsterpocalypse http://www.tunagami.com/articles/2008/04/22/monsterpocalypse-monster-disappointment Privateer Press' Hordes - Gaming with the Mrs: Part 1.5 <p>Earlier this week I got a few more of my trades from <a href="http://www.bartertown.com">bartertown</a>. &#8220;Who run bartertown?&#8221;&#8230; couldn&#8217;t help it&#8230; <table width="100%"> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_1.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_1.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_2.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_2.jpg" alt="" title=""/></a></div></td> </tr> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_3.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_3.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_7.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_7.jpg" alt="" title=""/></a></div></td> </tr> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_8.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_8.jpg" alt="" title=""/></a></div></td> <td></td> </tr> </table> I have only begun to read through the rules but it seems like an interesting ruleset with units actually having formations which make a difference to gameplay (as to what extent, I do not know yet, but I like the potential). I received the soft cover version of the rules and the art is really cool inside: I have only begun to read through the rules but it seems like an interesting ruleset with units actually having formations which make a difference to gameplay (as to what extent, I do not know yet, but I like the potential). I received the soft cover version of the rules and the art is really cool inside: <table width="100%"> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_4.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_4.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_5.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_5.jpg" alt="" title=""/></a></div></td> </tr> </table> Also, when picking up a can of primer, the local game store threw in a copy of this: <div style="" class="lightboxplugin"><a href="/images/main/20080417_6.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_6.jpg" alt="" title=""/></a></div> I have been a subscriber of <a href="http://us.games-workshop.com/news/whitedwarf/default.htm">White Dwarf</a> for I don&#8217;t know how long and every year I plan on not getting it anymore, but fortunately for Games-Workshop they have lately been putting in nice bonus figures with a subscription that have been good for trading/etc, otherwise I would have canceled a while ago.<br> Meanwhile, it seems that <a href="http://www.privateerpress.com/noquarter/default.php">No Quarter</a> seems like a decent magazine. The problem with White Dwarf is that they have pretty much shred the majority of quality articles like the special rules for new variant army lists, quality short story fiction, FAQs, etc and have pretty much just littered it with ads of what new gear they want you to buy. That is not to say that No Quarter is the best. I am still a pretty lousy judge at the quality of the publication, but I do notice that they publish quarterly and probably pack all the content that WD creates in 3 issues into 1 and without the magazine being like 40% ads (did I mention I hate the fact that GW&#8217;s LotR game typically takes up to 20-40% of the space in WD too&#8230;..)</p> <p>Anyway, enough ranting about what gaming rag is better than the other. I figure I should give a little bit of progress made. I was able to get 4 shredders and part of the warlock built: <table width="100%"> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_9.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_9.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_10.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_10.jpg" alt="" title=""/></a></div></td> </tr> </table> I will say I was impressed with the small amount of flash and mold lines I found on these figures. I do need to give them a little bath before I prime them to make sure it sticks well. I didn&#8217;t put the bow on Lylyth because I wanted to pin it along with the Carnivean heavy warbeast. I just got a little time to glue those few guys together. One thing I did too was a size comparison for the GW stuff I have. Hordes figures seem bigger. I like that ;-). More area to paint: <div style="" class="lightboxplugin"><a href="/images/main/20080417_13.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_13.jpg" alt="" title=""/></a></div></p> <p>One last thing. For giggles I figured I would give you a few shots of my workspace. Why? I don&#8217;t know. Just look if you are interested. <table width="100%"> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_16.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_16.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/20080417_17.jpg" rel="lightbox" title=""><img src="/images/thumbs/20080417_17.jpg" alt="" title=""/></a></div></td> </tr> </table> I hope you all are enjoying this Hordes newb blog. Happy gaming!</p> </p> Thu, 17 Apr 2008 21:42:00 -0500 urn:uuid:7a7b8d64-e1d6-41cd-ba55-6c46a8dc9137 http://www.tunagami.com/articles/2008/04/17/privateer-press-hordes-gaming-with-the-mrs-part-1-5#comments wargaming hordes privateer press wargaming http://www.tunagami.com/articles/2008/04/17/privateer-press-hordes-gaming-with-the-mrs-part-1-5 Privateer Press' Hordes - Gaming with the Mrs.! <p>My wife and I don&#8217;t get much time to go out anymore now that we have a couple of munchkins in the house, so in order to have more fun at home without having to leave the house, I have introduced her to wargaming [cue sinister music]. I got her initially interested in playing because she thought all the figures looked neat. She decided she liked the fantasy looking figures more than the sci-fi and thus we began playing warhammer fantasy battles. The problem is, there are a lot of figures to paint, lots of rules to learn and a lot of time to play just one game. While I like to spend all that time working on my Warhammer and 40K armies (Dark Elves, Salamanders, Necrons and newly acquired Chaos Dwarfs), we wanted to have fewer figures to paint for our games to worry about completing.</p> <p>I had heard from a friend that Hordes was a pretty fun game. I wasn&#8217;t a huge fan of Privateer Press&#8217; <a href="http://www.privateerpress.com/WARMACHINE/default.php">Warmachine</a> line of models (they are very nice, but not necessarily my cup of tea), but when I checked out the <a href="http://www.privateerpress.com/HORDES/default.php">Hordes</a> figures, they seemed pretty sweet to me. I had a few of armies from other game systems laying around just collecting dust, so I off to <a href="http://www.bartertown.com">bartertown.com</a> and I worked out a bunch of trades in order to get all 4 of the warpacks and the 2 rulebooks. While I could have gotten an idea of the game with just 2 packs and no rule books, it worked better with trading what I had, plus it seems that hordes warpacks are always in demand anyway, so if I wound up not being a huge fan I could trade most things with relative ease.</p> <p>So, this week I got two of the warpacks that I traded for, Skorne and Trollbloods. Below are a few shots of the box sets still in pieces. I plan on attempting to record the progress my wife and I have while working on building and painting them and maybe some shots of some of our games in progress in addition to thoughts about the game, modeling, etc. Enjoy! <table width="100%"> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/1.jpg" rel="lightbox" title="Picture of the Skorne warpack"><img src="/images/thumbs/1.jpg" alt="" title="Picture of the Skorne warpack"/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/2.jpg" rel="lightbox" title=""><img src="/images/thumbs/2.jpg" alt="" title=""/></a></div></td> </tr> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/3.jpg" rel="lightbox" title=""><img src="/images/thumbs/3.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/4.jpg" rel="lightbox" title=""><img src="/images/thumbs/4.jpg" alt="" title=""/></a></div></td> </tr> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/5.jpg" rel="lightbox" title=""><img src="/images/thumbs/5.jpg" alt="" title=""/></a></div></td> <td><div style="" class="lightboxplugin"><a href="/images/main/6.jpg" rel="lightbox" title=""><img src="/images/thumbs/6.jpg" alt="" title=""/></a></div></td> </tr> <tr> <td><div style="" class="lightboxplugin"><a href="/images/main/7.jpg" rel="lightbox" title=""><img src="/images/thumbs/7.jpg" alt="" title=""/></a></div></td> </tr> </table> </p> Thu, 10 Apr 2008 15:25:00 -0500 urn:uuid:1d2c3728-84ec-4046-97ba-e5601c13c624 http://www.tunagami.com/articles/2008/04/10/privateer-press-hordes-gaming-with-the-mrs#comments wargaming privateer press wargaming hordes http://www.tunagami.com/articles/2008/04/10/privateer-press-hordes-gaming-with-the-mrs Round 4 (5? 6?) <p>&nbsp;So, here is another incarnation of my blog. &nbsp;One of these days I am gonna get it right and comfortable. &nbsp;The plan is to start really using this in the near future for some programming notes/help and wargaming dorkery.</p> <p>So hold tight. &nbsp;Some cooler stuff is on the way.</p> Wed, 09 Apr 2008 00:33:00 -0500 urn:uuid:134fb40b-3795-45a3-ad63-606c33df3479 http://www.tunagami.com/articles/2008/04/09/round-4-5-6#comments http://www.tunagami.com/articles/2008/04/09/round-4-5-6 RegExp, Java, Email, RFC 2822 & YOU! <p>I am sure a lot of you have dealt with using regexps for validating email.&nbsp; Its lots of fun. Regexps are extremely readable, make perfect sense the first time you look at them and are very intuitive&#8230;. oh what&#8230; what&#8217;s that? They are not? No crap! </p> <p>Well, I had to improve one that was pretty limited in what it would allow.&nbsp; After reading a few articles on the best way, I found one <a href="http://www.leshazlewood.com/?p=23">at this site</a> that had a nice java implemention of the <a href="http://www.ietf.org/rfc/rfc2822.txt">RFC 2822 standard</a>.&nbsp; While overall, it worked ok, it still allowed some emails that were not ok or stifled some that were ok.&nbsp; So I changed his pattern a little: </p> <div class="typocode"><pre><code class="typocode_java ">private static final String sp = &quot;!#$%&amp;\'*+-/=?^_`{|}~&quot;; private static final String ftext = &quot;[a-zA-Z0-9]&quot;; private static final String atext = &quot;[a-zA-Z0-9&quot; + sp + &quot;]&quot;; private static final String atom = atext + &quot;+&quot;; //one or more atext chars private static final String fatom = ftext + &quot;+&quot;; private static final String dotAtom = &quot;(\\\\.|-|_)&quot; + atom; private static final String localPart = fatom + &quot;(&quot; + dotAtom + &quot;)*&quot;; //one fatom followed by 0 or more dotAtoms. //RFC 1035 tokens for domain names: private static final String letter = &quot;[a-zA-Z]&quot;; private static final String letDig = &quot;[a-zA-Z0-9]&quot;; private static final String letDigHyp = &quot;[a-zA-Z0-9-]&quot;; public static final String rfcLabel = letDig + letDigHyp + &quot;{0,61}&quot; + letDig; private static final String domain = rfcLabel + &quot;((\\\\.|-)&quot; + rfcLabel + &quot;)*\\\\.&quot; + letter + &quot;{2,6}&quot;; //Combined together, these form the allowed email regexp allowed by RFC 2822: private static final String addrSpec = &quot;^&quot; + localPart + &quot;@&quot; + domain + &quot;$&quot;; //now compile it: public static final Pattern VALID_PATTERN = Pattern.compile(addrSpec);</code></pre></div> <p>and a method using that pattern:</p> <div class="typocode"><pre><code class="typocode_java ">public static boolean isValidEmail(String address) { return VALID_PATTERN.matcher(address).matches(); }</code></pre></div> <p>This seems to catch all that I need it to catch and still follows the standard.&nbsp; Thanks to the original author for the inspiration. ^.^</p> Sun, 04 Nov 2007 20:37:00 -0600 urn:uuid:4443091f-2958-4b06-aba7-50c6e1be6094 http://www.tunagami.com/articles/2007/11/04/regexp-java-email-rfc-2822-you#comments programming RFC 2822 email java programming http://www.tunagami.com/articles/2007/11/04/regexp-java-email-rfc-2822-you