jk2addict's Journal http://use.perl.org/~jk2addict/journal/ jk2addict's use Perl Journal en-us use Perl; is Copyright 1998-2006, Chris Nandor. Stories, comments, journals, and other submissions posted on use Perl; are Copyright their respective owners. 2012-01-25T02:13:11+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 jk2addict's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~jk2addict/journal/ CPAN Testers 2.0: The death of via email is wrong. http://use.perl.org/~jk2addict/journal/40488?from=rss <p>I finally got around to installing perlbrew, 4 flavors of perl and updating some modules for recent perls. I've been sending a lot of email test reports lately.</p><p>Last night I got the email from bitbucket about CPAN Testers 2.0 and the death of sending reports via email with wiki links/instructions on how to setup<nobr> <wbr></nobr>.cpanreports/config.ini for a metabase id/transport via HTTP.</p><p>This is all well and good, but it feels wrong to me. I use CPAN::Mini. The point of which is partly to have CPAN when you're not online. The same reason I use git. With SMTP emails I could just queue up test reports in the local postifx and they would get delivered later when I'm online.</p><p>Now, that's is no more. I'm forced to be online to send HTTP reports. Seems like a bad idea. NOw, the only thing I can do is toggle off reporting when I'm offline, which really means I'll hate doing that and just turn off reporting all together.</p><p>Why did reports via email have to go away?</p> jk2addict 2010-08-10T02:49:45+00:00 journal The "Magic" Wall http://use.perl.org/~jk2addict/journal/39752?from=rss <p>I need to build a site for a local organization. Since they need to edit most parts of it like a blog, I'm using WordPress and creating a custom theme/categories, etc.</p><p>Overall, I love WordPress. The API docs are awesome; look good, easy to read, plenty of content and examples.</p><p>It sounds easy. I have a "page" in their admin that uses an assigned page template file to render it's contents. Within that template, I wanted to add other code to pull and sift through non related event data by month/year. Starting from something normal, I just added ?&amp;month=3&amp;year=2009. Everything works. Live is good.</p><p>Then, as I cycle through previous/next months, as soon as I hit year=2010 or year=2008, I just get 404s. Hrm.</p><p>Ok, maybe year is a reserved param name in their friendly permalink magic. Fine. So, I'll change year=2009 to y=2009. Works great. But for consistency sake, I change month=3 to m=3. Now I get 404s again. Another reserve variable.</p><p>That's when I blow my stack. I can't stand that kind of magic. It drives me away from products. This is a PAGE with a page template. This is not a post page, or a category page, post archive page, or any other page where something like year= should even be interrogated to spit out that pages single entry.</p><p>I hate reinventing the existing wysiwyg/editing CMS bits, but I'm about to ditch WP in favor of a framework I control top to bottom without query string vs friendly url shenanigans.</p> jk2addict 2009-10-14T14:35:29+00:00 journal use.perl.org is dead to me http://use.perl.org/~jk2addict/journal/39685?from=rss <p>Quite literally.</p><p>http://use.perl.org/search.pl?op=journals</p><p>Hasn't worked in two weeks. Totally devoid of results and the front page looks bare.</p><p>Rather than fix these things, I think it's time someone just shut off the site entirely. Seems like the kind thing to do, like putting your pet to sleep to stop the misery.</p> jk2addict 2009-09-28T13:16:42+00:00 journal Why Rails Wins Sometimes http://use.perl.org/~jk2addict/journal/39615?from=rss <p>This is an awesome resource: http://guides.rubyonrails.org/</p><p>Yes, CPAN has a wealth of information...now it only it was presented like this or our frameworks had something this good.</p> jk2addict 2009-09-12T02:01:55+00:00 journal Svn, Git and GitHub Help http://use.perl.org/~jk2addict/journal/39413?from=rss <p>I want to collaborate with another using GitHub. Now for the trick: I want to keep that repo on GitHub up to date with any changes made from a source Svn repo.</p><p>My first attempt was:</p><p>git svn clone<br>add remote<br>git pish to github</p><p>Of course, and few svn rebases later, I've got jacked up logs ad merge conflicts over and over and over.</p><p>I guess I just learned the rule: never use the same branch for svn rebasing and github sharing.</p><p>So, what's the sanest way to start with a clone of a svn repo, push that too github, collaborate, but occasionally pull in changes made in the svn repo?</p> jk2addict 2009-08-06T02:36:34+00:00 journal TT.NET: It's alive! http://use.perl.org/~jk2addict/journal/39041?from=rss <p>It's very fugly. Very alpha. Very clueless.</p><p>But, it can turn [% GET 'Hello World' %] into Hello World using an ANTLR grammer, an AST to C#, compiled and invoked with a test.</p><p>It will be long road, but it should prove to be a fun learning experience for things I don't normally mess with.</p><p><a href="http://github.com/claco/tt.net/">http://github.com/claco/tt.net/</a></p> jk2addict 2009-05-28T02:30:45+00:00 journal Dear GitHub http://use.perl.org/~jk2addict/journal/38990?from=rss <p>I liked you when I first started using you. Now you just keep getting slower, and slower, and slower and slower.</p><p>BitBucket screams in comparison.</p><p>Please fix your site.</p> jk2addict 2009-05-18T01:07:57+00:00 journal There's nothing more frustrating http://use.perl.org/~jk2addict/journal/38976?from=rss <p>than spending weeks on something and getting absa-frigging-lootly nowhere.</p><p>I couldn't have a bigger hate of ANTLR than I do right now.... closely followed by Thunderbird and VirtualBox, who won't send a damn email if I've copy pasted ASCII text from a VM bitching about UTF characters.</p> jk2addict 2009-05-14T01:51:46+00:00 journal TT.NET: What could go wrong. :-) http://use.perl.org/~jk2addict/journal/38932?from=rss <p>I have this habit of getting off task with what ever new idea tickles my focus. I am tangental yak shaver of the ooh-shiny variety.</p><p>So, I'm working on MVC Marathon, a site called BurningPlate, coding ASP.NET MVC in C#. When it comes time to saddle up and write some views and tests, I wonder what ViewEngines there are. I see on for NHaml and StringTemplate.</p><p>Then I wonder what if would take to get Template Toolkit templates under<nobr> <wbr></nobr>.NET.</p><p>One ANTLR Reference book and a few days later, and I'm screwing around with grammers, lexers, parsers and AST.</p><p>What a learning session this is going to be, but if I get far enough, it will change the boundaries of what tools I have in my toolbox.</p> jk2addict 2009-05-07T01:17:15+00:00 journal Dear Apple http://use.perl.org/~jk2addict/journal/38503?from=rss <p>A big thank you for fucking up perl in Thursdays update. This is definitely how I wanted to spend my Tuesday night.</p><p>IO is toast. Now that that is reinstalled, looks like Time::HiRes is next.</p><p>Time::HiRes object version 1.86 does not match $Time::HiRes::XS_VERSION 1.9719</p><p>Can't wait to see how far this rabbit hole goes.</p> jk2addict 2009-02-18T01:33:43+00:00 journal Yak Shaving Mascot http://use.perl.org/~jk2addict/journal/38462?from=rss <p>I'm giving serious consideration to buying <a href="http://www.thisplaceisazoo.com/products/yak.html">this</a> for a $work mascot, and shaving half of it.</p> jk2addict 2009-02-11T18:07:32+00:00 journal For the first time in a long time... http://use.perl.org/~jk2addict/journal/37810?from=rss <p>I woke up happy to be an American. All politics, finger pointing, commercials and accusations aside, we made history last night. The first African-American president [elect].</p><p>It almost brings a tear to my every time I think about it. For the first time, I fell like there's a chance we can bring people in this country back together again and do great things.</p> jk2addict 2008-11-05T15:21:39+00:00 journal A Lesson in Probability http://use.perl.org/~jk2addict/journal/37763?from=rss <p>So, it's week 7 (woohoo!) of going to the gym, now 4 times a week. When I started going with a co worker, I bought a generic-Master-like padlock and gave him one of the keys. We could share a locked locker, and he could leave earlier than I without playing where's the key madness.</p><p>Monday, he asks "what locker did you have?". an odd question since he usually just uses the locker with our padlock on it.</p><p>As it turns out, there were two lockers that evening with the same padlock brand. Even more fun, our key opened both locks.</p><p>Given that I purchased that lock at a drug store and not at a kmart/walmart/lowes, I think this was an odd coinkydink.</p><p>My mind wonders at how the probability changes of two people, bought two locks for two different uses at two different locations are instead purchasing two different locks to use for the same purpose and the same location.</p><p>How fun.</p><p>Of course, this is what I get for getting a cheap Made in China knockoff. Time to get a paired set of Masters.</p> jk2addict 2008-10-29T17:41:05+00:00 journal One month in http://use.perl.org/~jk2addict/journal/37696?from=rss <p>It's been a month now since I started going to the gym. Just this week I've started going 4 times a week instead of two times a week (Mon/Thur -&gt; Mon/Tue/Thur/Fri).</p><p>Not doing to bad so far. On the week parts, I've almost doubled the weight I can lift in the same # of reps. For the stronger parts, I've almost tripled the weight.</p><p>Hopefully in the next 5 months the muscle will start to burn some fat.</p><p>The routine is pretty straight forward so far. About an hour on the upper body machines (random order), about 10-13 minutes on the bike (2-3 miles) and then 5 walk laps around the track (1 mile).</p> jk2addict 2008-10-19T02:48:40+00:00 journal Henching or Arching http://use.perl.org/~jk2addict/journal/37689?from=rss <p>Oh Venture Brothers cartoon, where have you been all my life?</p><p>What will it be today: Henching or Arching?</p> jk2addict 2008-10-18T01:34:11+00:00 journal I Have a [Template] Dream http://use.perl.org/~jk2addict/journal/37654?from=rss <p>I'm not sure why I'm entertaining such thoughts lately. Maybe it's all the time I'm spending dickering in Rails/Django/ASP.NET MVC/CakePHP.</p><p>I'm used to Template Toolkit. I see there's a <a href="http://template-toolkit.org/python/">Template-Python</a> in the works. I keep fantasizing about having Template-Ruby, Template-PHP and Template.NET so I could simply use my entire sites template directory across code bases. More often than not, my templates are just blocks, loop, iterators and simple ifs. No real magic.</p><p>Some days I wish I knew enough about parsers/lexers to start something. Then I look into them and remember that it makes my brain melt.</p><p>Somedays, the lack of having a true CS degree is a drag.</p> jk2addict 2008-10-13T20:46:51+00:00 journal Perl +1, Python -1 http://use.perl.org/~jk2addict/journal/37652?from=rss <p>Learning new languages is frustrating, esp. when you're comparing them to what you already know: Perl.</p><p>Here's something I don't like about Python: the need for ending sub calls with (). I hate it.</p><p>Now, I know it's about something being 'callable' and without the params, you're returning the sub, not calling it. It's not intuitive for my brain. I don't like it.</p><p>Perl++ for never making me put () after method names or having to think about what it's doing.</p> jk2addict 2008-10-13T17:39:30+00:00 journal Surviving the Gym: Day 2 http://use.perl.org/~jk2addict/journal/37515?from=rss <p>I'm completely beat. On the plus side, while I ache, nothing is "hurt". Bonus.</p> jk2addict 2008-09-23T00:12:34+00:00 journal Weekend Warriors http://use.perl.org/~jk2addict/journal/37501?from=rss <p>Over the last 10 years I've had the pleasure to work with a slew of talented people. Luckily, most of us live in the area and maintain contact even though we're spread across many companies.</p><p>There's been talk lately of starting a weekend warriors club where we can all gather our knowledge/experience to build web projects as a group. With 2 designers and 5 programmers, this could be fun.</p> jk2addict 2008-09-20T19:22:00+00:00 journal DBD::SQLite Needs a Lover http://use.perl.org/~jk2addict/journal/37488?from=rss <p>This is a plea. I'm begging someone, as one Perl programmer to another. Won't someone please adopt DBD::SQLite and make it happy again. 1.14 and 1.13 are riddled with issues. The unfreed refs. The segfaults. The memory leaks.</p><p>No offense to msergeant. I'm sure he's busy with his own things. I just with there was a 1.15 already that mad things sane again. It's rather frustrating to keep explaining to people after the fluck up a new perl install why they need to downgrade SQLite to 1.12.</p> jk2addict 2008-09-19T01:18:28+00:00 journal Fat Guy: Phase 2 http://use.perl.org/~jk2addict/journal/37485?from=rss <p>Last year (wow, a year), I had to lose weight to make the life insurance company happy before they would cover me. At the time, I lost about 25 pounds. A year later, I've managed to keep it off by walking twice a day at work.</p><p>Now begins phase two. A coworker recently moved closer into town and needed a new place to go once his YMCA membership expired. We have a new rec center about 2 miles away. Thanks to peer pressure, I now have someone to go there with twice a week.</p><p>Maybe I can jump start another 30lb loss. Truth be told, what I really want is to be able to exercise enough to eat what I want guilt free. Food is my drug of choice...right after the smell of new computer hardware.<nobr> <wbr></nobr>:-)</p> jk2addict 2008-09-18T16:35:23+00:00 journal DreamHost? http://use.perl.org/~jk2addict/journal/37436?from=rss <p>I've come to that point where I'm sick of having servers in my basement, dealing with a static DSL price, worrying about server crashes and backups and maintaining software and email. It's 2008. I just don't need to be that kind of geek any more.</p><p>I've moved my svn code to GitHub (Free!). I need to move email, dns, and a few MT sites. It seems that for $6-10 a month, I can get a DreamHost account with Perl, MySQL, Python, Rails and all the email, ssh, domains, PHP and anything else I can want with more bandwidth caps than I'll ever use.</p><p>The price I'll save in DSL connection alone (I'll move form 5 Static IP back to the regular home user account) will pay for it 4-5 times over.</p><p>Thoughts on DreamHost?</p> jk2addict 2008-09-13T16:22:54+00:00 journal Why the Overridable hate in .NET? http://use.perl.org/~jk2addict/journal/37310?from=rss <p>One of the things that I curse about on a weekly basis when using<nobr> <wbr></nobr>.NET is when you're trying to customize an inherited class and some methods/properties can be overridden and some can't.</p><p>That seems silly to me coming from the land of Perl. The author of the original class has presumed to know which methods/props I might like/have to subclass and which ones I won't. Good old Perl. I can override anything I want and it stays out of my way.</p><p>Then of course, there are Sealed classes which can't even be inherited. I can't even create my own custom DateTime class. At least now that 3.0 has Extensions, I can add my methods to the DateTime object.</p> jk2addict 2008-08-29T17:56:42+00:00 journal Clone::clone in 5.10 borken? http://use.perl.org/~jk2addict/journal/37226?from=rss <p>I have this old method in Handel that clones a storage class instance by first dereferencing the DBIC schema/DBI handle to keep Clone from bitching, calling Clone::clone, then stuffing the schema back in the original object.</p><blockquote><div><p> <tt>sub clone {<br>&nbsp; &nbsp; my $self = shift;<br> &nbsp; <br>&nbsp; &nbsp; Handel::Exception::Storage-&gt;throw(<br>&nbsp; &nbsp; &nbsp; &nbsp; -details =&gt; translate('NOT_CLASS_METHOD')<br>&nbsp; &nbsp; ) unless blessed($self); ## no critic<br> &nbsp; <br>&nbsp; &nbsp; # a hack indeed. clone barfs on some DBI inards, so lets move out the<br>&nbsp; &nbsp; # schema instance while we clone and put it back<br>&nbsp; &nbsp; if ($self-&gt;_schema_instance) {<br>&nbsp; &nbsp; &nbsp; &nbsp; my $schema = $self-&gt;_schema_instance;<br>&nbsp; &nbsp; &nbsp; &nbsp; $self-&gt;_schema_instance(undef);<br> &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; my $clone = Clone::clone($self);<br> &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; $self-&gt;_schema_instance($schema);<br> &nbsp; <br>&nbsp; &nbsp; &nbsp; &nbsp; return $clone;<br>&nbsp; &nbsp; } else {<br>&nbsp; &nbsp; &nbsp; &nbsp; return $self-&gt;SUPER::clone;<br>&nbsp; &nbsp; };<br>};</tt></p></div> </blockquote><p>In 5.8, this works, and $clone-&gt;{'connection_info'}-&gt;[...] is copied from the original.</p><p>In 5.10, $clone-&gt;{'connection_info'}-&gt;[] is empty.</p><p>Just for giggles, using Storable::dclone works just dandily, but I didn't use it in 5.8 because for one line of code, it's a pain in the ass as a prereq, esp on windows sometimes.</p><p>ANyone else have isues with Clone under 5.10?</p> jk2addict 2008-08-19T03:04:12+00:00 journal Dear Anonymous Coward http://use.perl.org/~jk2addict/journal/37162?from=rss <p> Wile I apprecaite you're concern for propper grammer, Me however don't not give a crappe. Thanks U 4 contributing no thing 2 the convers8tion. </p><p> I suggest that if you care more about bitching [anonymously] about the grammar than contributing to the topic at hand that you kindly find another profession or remove thy stick from thine ass...assuming you're a programmer already. </p><blockquote><div><p>An unapproved comment has been posted on your blog I Can't Focus, for entry #881 (MVC Marathon Part 3: Creating a Restaurants Controller and View). You need to approve this comment before it will appear on your site. "It's in it's own directory" ??? The word "it's" means "it is" or "it has"<nobr> <wbr></nobr>... nothing else, ever. Using "it's" two different ways in a single sentence is especially gross. The sentence should start as "It's in its own directory." Programmers seem to want to use "it's" as a pronoun indicating possession because an apostrophe-s is added to proper names to indicate possession (Bob's ball, etc.). But that usage conflicts with the other use of apostrophe-s, which is to be an abbreviation of "is" or "has" (Pete's gonna go outside; it's gonna rain). That's the rule that rules. Commenter name: Anonymous Coward Commenter email address: Commenter URL: Commenter IP address: 66.82.9.25</p></div> </blockquote><p> P.S. If this is someone I know on irc.perl.org, well, I only half mean it then. </p> jk2addict 2008-08-12T12:59:36+00:00 journal MVC Marathon Part 3: Creating a Controller and View http://use.perl.org/~jk2addict/journal/37148?from=rss <p>Round three can be found <a href="http://today.icantfocus.com/blog/mvc-marathon-part-3-creating-a-restaurants-controller-and-view/">here</a>.</p> jk2addict 2008-08-10T19:39:25+00:00 journal Pre-Apology to the Perl, Catalyst and DBIC Communities http://use.perl.org/~jk2addict/journal/37068?from=rss <p>I think I should get this out of the way now rather than after the fact.<nobr> <wbr></nobr>:-)</p><p>As some of you may know, I've <a href="http://today.icantfocus.com/blog/mvc-marathon/">embarked on a little trip</a> to create a small app in the popular mvc frameworks. So far, it's been an interesting and eye opening experience for me as a current Catalyst/DBIC user. I get to experience what it's like to be a new user in those frameworks and compare that to what I know about my experience with Catalyst/DBIC.</p><p>Let me be clear about this. I love Perl. Catalyst and Chained() totally rocks, and DBIC is the best ORM I've used in terms of completely flexibility.</p><p>With that said, using blog posts, emails and prodding on IRC, there are going to be some points over the next few months where I plan on being completely brash about where I think Cat/DBIC lack compared to the new user experience or those other frameworks. I've already started a few times, and I'm sure I've already flipped a few peoples rant bit to 1.</p><p>Remember, it's not a personal attack on anyone. I know it's easy to take it that way when your one of the core or other devs who made it what it is today. It's also not my intention to point the finger and walk away. I sincerely hope that out of this comes some initiatives to fill in the gaps and round the edges and I very much hope to be involved in those things.</p><p>Now we return you to your regularly scheduled afternoon nap.</p> jk2addict 2008-07-31T17:05:01+00:00 journal I Hate Network Gremlins http://use.perl.org/~jk2addict/journal/36966?from=rss <p>Problems like these really grind my gears.</p><p>Starting late Friday night (US EST), I can no longer get responses from dev.catalystframework.org, nor am I getting any of the Cat/DBIC list emails.</p><p>Thinking it might be my machine, I started doing traceroutes and connecting to the svn repo with telnet from the router. The traceroute completes. I can connect with telnet and issue a GET<nobr> <wbr></nobr>/, but I get no response.</p><p>Just to rule out my connection, I VPNed into work and tried the same site using my $work machine. Using our main Qwest connection, things work just fine. Using our DSL connection, it doesn't work. That rules out my connection, and either points to SBC/ATT, or some routing/dns issue across the pond sending packets to the wrong place.</p><p>Either way, I can't fix this. Heavy sigh. Just what I needed this weekend. Something to obsess about.</p> jk2addict 2008-07-20T22:42:25+00:00 journal Dear Programmers... http://use.perl.org/~jk2addict/journal/36911?from=rss <p>Please stop taking away the damn minimize window button. It wasn't a broken feature. Please don't fix it. No, a key command to minimize the window is not just as helpful sometimes. No, a close button (X) is not the same as minimize and now you've muddied what the expectation of the close (X) button really does.</p><p>Yes, I'm lookin at you Twitterific and Twitterlicious.</p> jk2addict 2008-07-14T20:00:58+00:00 journal MVC Marathon Part 2: Creating a Database and Model http://use.perl.org/~jk2addict/journal/36900?from=rss <p>Another round of brain draining MVC madness. As usual, it take longer to write about it than do it.</p><p><a href="http://today.icantfocus.com/blog/mvc-marathon-part-2-creating-a-database-and-model/">http://today.icantfocus.com/blog/mvc-marathon-part-2-creating-a-database-and-mo<nobr>d<wbr></nobr> el/</a></p> jk2addict 2008-07-13T00:04:49+00:00 journal