sumdeus's Journal http://use.perl.org/~sumdeus/journal/ sumdeus'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:28:58+00:00 pudge pudge@perl.org Technology hourly 1 1970-01-01T00:00+00:00 sumdeus's Journal http://use.perl.org/images/topics/useperl.gif http://use.perl.org/~sumdeus/journal/ New Home http://use.perl.org/~sumdeus/journal/20380?from=rss Finally moved my blog to a new home, which makes a bit more sense. <br> <a href="http://dragonslife.org/">dragonslife.org</a> sumdeus 2004-08-12T22:29:43+00:00 journal Making a case to migrate http://use.perl.org/~sumdeus/journal/17957?from=rss I should have researched this more, it was a passing thought. Are there any well structured, very factual arguments out there for migrating medium sized PHP sites to Perl? Does this thought even have validity? <br> <br> When does php become more of a burden than it's worth? sumdeus 2004-03-18T23:27:24+00:00 journal Ahhhhh PHP you evil dog... http://use.perl.org/~sumdeus/journal/17945?from=rss Been quite busy lately using PHP--a mortal sin, but a necessary sin. Gotta get paid. In using it more and more however, I've become sincerely agitated over an increasing number of things:<ol> <li>If I have to write ereg_* for a regular expression one more time I'm going to barf.</li><li>All of the templating solutions are slow. Yeah, I know about caching the page, but I want more speed!</li><li>Can you say CPAN? The PHP version of cpan is googling for code... sad.</li><li> <code>&lt;?</code><nobr> <wbr></nobr>... what the hell is \&lt;?...</li><li>I even miss the giant CGI.pm module...</li></ol><p> What I need is a to be able to write Perl code and it's translated into php by some sort of fancy shmancy translator. Ah, a dream come true. Be glad you're hacking it in Perl.</p> sumdeus 2004-03-18T07:59:56+00:00 journal mod_perl, grrr http://use.perl.org/~sumdeus/journal/17620?from=rss I've been messing around with mod_perl and template toolkit for the last few days. I've been reading through a lot of information on the both. Before I started this, I knew how they both worked, but had never actually created a mod_perl installation from scratch. Now I have my own!<br> <br> So I'm really only trying to do something simple with them both to begin, I want the following: <ul> <li>Requests to<nobr> <wbr></nobr>/foo.htm, which is actually a template, is taken care of by mod_perl</li></ul><p> Seems simple enough? Here's the setup I have right now... all requests to<nobr> <wbr></nobr>/foo.html are converted using mod_rewrite to<nobr> <wbr></nobr>/mod-perl/handler.pl?file=foo.html. So I have Apache::Registry as the real "handler". <br> <br> What I'd really like, is to have my own handler, which I "attempted" without success. You will want to ask, "what was the problem"? Of course, I'd answer, with a smart ass smile, "it didn't work!". No,no, the problem was that it didn't seem like it made sense in this case... perhaps overkill? I just don't know the most appropriate way to map a request for an html file through a custom mod_perl handler to template toolkit. Is there some 'industry' standard? I can't find any useful examples, all I find are the generic "do-this" tutorials... even in the safari/oreilly books. Maybe I'm browsing the wrong one!<br> <br>Any hints<nobr> <wbr></nobr>,URLS's, or book names would be greatly appreciated for this mod_perl administrating neophyte.</p> sumdeus 2004-02-25T18:08:06+00:00 journal map, pack, and grep http://use.perl.org/~sumdeus/journal/17465?from=rss Just looking over a couple of functions that are often overlooked in normal programming practices, especially by people new to perl. <br> <br> <b>MAP:</b> <br> Each element need not necessarily map to a single item. If multiple values are created, map returns them all as a single, flattened list. For example, you could split all words in all phrases into a single list:<blockquote><div><p> <tt>@words = map split, @phrases;</tt></p></div> </blockquote><p>Map is such a nice function to keep in mind for saving time.<br> <br> <b>PACK:</b> <br> Good old binary to decimal for all you CS monkeys.</p><blockquote><div><p> <tt>sub bin2dec {<br>unpack("N", pack("B32", substr("0" x 32 . shift, -32)));<br>}</tt></p></div> </blockquote><p> <b>GREP:</b> <br> Weeding out comments, as taken from perldoc -f grep</p><blockquote><div><p> <tt>@foo = grep(!/^#/, @bar);</tt></p></div> </blockquote><p>What are you favorite overlooked functions? Anyone have any interesting and innovative uses of the <code>map</code> function?</p> sumdeus 2004-02-18T12:55:24+00:00 journal Firefox -- the firebird of 0.8 http://use.perl.org/~sumdeus/journal/17361?from=rss download one, download all, it's out! <br> <br> <a href="http://www.mozilla.jp/products/firefox/">firefox</a> <br> <br> why download? <a href="http://yucca.standardout.com/lxer/story/2094/index.html">find out</a>. sumdeus 2004-02-11T17:53:58+00:00 journal gnotime -- time management tools http://use.perl.org/~sumdeus/journal/17316?from=rss I am frustrated with gnotime, the only time management tool I can seem to find that semi suits my needs. It's still too, for a lack of a better word, "<i>BETA</i>" for me. I don't want to write my own custom templates for even the simplest of things, and I certainly need a way to manage journal entries for each projects work in the day better than gnotime.<br> <br>Has anyone had experience with a better and more reliable time management system? I have looked at a few like phprojekt but I don't need something where there is an ability for multiple users to collaborate... I need something very personal and I need it now.. so frustrating. <br> <br> CSS has me in awe. Decided to use that for the res t of the sites I develop, starting with my own. I'm going to attempt only CSS, so long spacer.gif and your evil twin " tag missing, does not validate.". I'm thinking that with the speed of not having to download bulky and complex table code paired with mod_perl at the Apache::Registry level, my site, and all of my projects that are soon to follow will be blazing fast. sumdeus 2004-02-10T06:50:19+00:00 journal CSS and XHTML http://use.perl.org/~sumdeus/journal/17313?from=rss Trying to use CSS instead of tables and XHTML. Keeping things interesting indeed.<br> <br> Found some good links:<br> <a href="http://www.csszengarden.com/zengarden-sample.html">http://www.csszengarden.com/zengarden-sample.html</a> <br> <a href="http://www.nypl.org/styleguide/">http://www.nypl.org/styleguide/</a> <br> <a href="http://www.w3schools.com/css/default.asp">http://www.w3schools.com/css/default.asp</a> <br> <br> I'm looking at no more severely nested tables again. Why didn't I look into this sooner? Any bad experiences with CSS? sumdeus 2004-02-10T03:13:42+00:00 journal Orkut http://use.perl.org/~sumdeus/journal/17283?from=rss Found this nice summary of an orkut friend posted by ziggy, which was posted by someone else... and so on:<br> <br> <a href="http://use.perl.org/~ziggy/journal/17206">http://use.perl.org/~ziggy/journal/17206</a> sumdeus 2004-02-08T17:31:05+00:00 journal And so it goes http://use.perl.org/~sumdeus/journal/17273?from=rss Ooops. Neglected to read the comments from my last two posts. Good, good comments too;well the ones I understood. If you posted something and I didn't respond, my apologies, I've been terribly busy. But thanks! <br> <br> I've been reading over the lazyweb stuff, it seems like an interesting idea, although a little scattered in terms of material if you ask me. <br> <br> I've been working on designing my company website in my _spare_ time. I think I've made it to the logo and header and designed all the other pages. Now all I need to do is use my baby Template Toolkit and a little perl magic and I'm all set. I plan on "whipping" up a couple of nice mod_perl applications for demo's and then I will begin to target some telecommuting perl work. A good plan, I hope. <br> <br> In the meantime, I have been spending large amounts of time working with PHP! Gasp, I know, I have no choice. So far I've written a PDFRenderer for an xml description file, a FlashRenderer for that same xml description file, a couple of xml schema's to describe the xml description files, a myriad of xml parsing helper classes, and xml classes that allow dom tree manipulation. Everything has gone rather smoothly and it's finally up and running beautifully. In fact, it's running so well, I'd like the make some changes to the xml schema and rewrite both renderers in Perl so they are much more effecient and easy to maintain. That would be quite the project, but when complete would allow xml descriptions of any type of document (like a business card or Sell sheet). More to come on this later. sumdeus 2004-02-08T01:10:08+00:00 journal perl work http://use.perl.org/~sumdeus/journal/17146?from=rss To start, drinks with Randal on Saturday was great. He is always interesting to listen to, but even better to actually talk to in person.<br> <br> Been thinking about Perl application examples that I can put on my new website. I would like to have some examples of the work that I have done on my own. Unfortunately, everything I have done to date I do not have rights to publish, nor in most cases access to. So I am left with perl skills and a blank slate.<br> <br> So the next step is <i>thinking</i>, what in the world do I want to spend some spare time on creating or at least editing and releasing back to the open source community (and no I don't think bugfixes count). I've got a nice blank sheet of paper next to me with "ideas" written on it. Perhaps I make this post in hopes that someone who has an intelligent idea, but no time to implement it will throw me a tremendously large bone. Keep dreaming, I know.<br> <br> Here's hoping something stirs in the brain the upcoming days. sumdeus 2004-02-02T06:44:04+00:00 journal The DBA and such http://use.perl.org/~sumdeus/journal/17121?from=rss Monday I will filing a certificate of DBA here in Schenectady. I have the domain name all picked out and ready to roll, along with a VDS hosting company which has mod_perl. I'm excited just to have mod_perl on a server that I don't have to have racked anywhere near me, yet have almost complete control over it. Very good news. I will have more information on the specs of the company after monday, for now though it's just me.<br> <br> Other good news, the company that I currently do telecommuting work for is very interested in having me as a consultant from now, well into the future. This is very good news since they are right now my only source of income! Cheers guys for sticking with me.<br> <br>Thanks to the first post here, Randal Schwartz emails me out of the blue and says he will be in Albany tonight. That could be interesting and did I mention very interesting?<br> <br> I came across a nice script to help when you are trying to determine a list of all installed modules on your system. I know there are other ways than this, but this script gives you quite a load of information and is certainly worth mentioning <a href="http://sniptools.com/perldigger">http://sniptools.com/perldigger</a>.<br> <br> Finally, it's never too early to start planning for the 2004 YAPC conference. This year is BUFFALO, NY -- my old residence. Site is: <a href="http://buffalo.pm.org/yapc/">http://buffalo.pm.org/yapc/</a> <br> <br> <i>live: $free or $die;</i> sumdeus 2004-01-31T17:37:43+00:00 journal The start http://use.perl.org/~sumdeus/journal/17107?from=rss This is the start of the journal for me here in the Albany, NY area. I have been looking for Albany.pm or a Saratoga.pm group but the webpage is quite a sad sight. I've talked to one other perl guy and he informed me that there is no active group here whatsoever. Perhaps the spring will be a time for rebirth? <br> <br> For the time being, I will begin the struggle to remove myself from the status of slightly unemployed. Slight unemployed means I have a part time job telecommuting, but need another job for monetary reasons. <br> <br> I believe I will start posting here an update of my hunt for a Perl job(s) in the Albany area. So far a couple of leads, and a couple of interesting telecommuting gigs available. Here's hoping. sumdeus 2004-01-30T17:37:57+00:00 journal