|
Not exactly a question, but I thought someone might get a kick out of it... Here is a horrible "IMAP to Google Calendar" program that I wrote last night. I thought it might help me in filling out my time sheets at work. Turns out that it is completely useless!
|
# ¿ Nov 16, 2007 07:22 |
|
|
# ¿ May 1, 2024 01:49 |
|
Satan's Scallion posted:You may want to remove your login and password from that... God damnit, why do I always do stupid poo poo like this late at night.
|
# ¿ Nov 16, 2007 14:54 |
|
syphon^2 posted:1) I'm not too knowledgable on mod_perl, but I installed it and tried it out. I think the big thing is that CGI loads the Perl interpreter independently with each call to a CGI page, while mod_perl keeps it loaded and just serves the page at request. It saves CPU cycles and makes the app run faster. quote:2) Catalyst is a pretty big framework. Personally, I found the overhead to be HUGE. I'd use this if I were developing some HUGE perl web-app, but otherwise, I'd avoid it. I installed it and played around, and after a few hours, I was still really far from actually getting anything done. I agree that starting with plain CGI scripting is best, simply so you can learn why frameworks like Catalyst exist.
|
# ¿ Dec 6, 2007 15:47 |
|
mister_gosh posted:I have a question. I have a filehandle I'm printing to: I've never had to do it, but you could try something like: code:
code:
leedo fucked around with this message at 22:37 on Dec 7, 2007 |
# ¿ Dec 7, 2007 22:31 |
|
I haven't really been following perl6 too closely, but I am excited to see him write about including multiple dispatch and some form of typing.
|
# ¿ Dec 8, 2007 20:42 |
|
mister_gosh posted:What does the extra dollar sign mean in a variable? That would dereference a reference to a scalar. Example: code:
|
# ¿ Jan 27, 2008 21:53 |
|
more falafel please posted:All I know about Catalyst is that I went to school with the author of this book and he's the crazy shut-in nerd type who's so much smarter than you or any of his professors that he doesn't need to do his work because it's below him, which is why going to school is dumb and they SHOULD just kick him out for failing all his classes.
|
# ¿ Feb 8, 2008 00:58 |
|
SpeedFrog posted:
|
# ¿ Feb 8, 2008 05:39 |
|
I use constant.pm in most of my perl programs; though usually only to define TRUE and FALSE.
|
# ¿ May 2, 2008 00:11 |
|
I'm going to be there on and off throughout. My work isn't paying for it so I am taking a few half days to see the talks I am interested in.
|
# ¿ May 25, 2008 18:06 |
|
Is there any way to have a method detect the context it is being called in (list or scalar)? Right now I am returning a ton of arrayrefs in a module I am working on, but would like to return a list in list context. DBIx::Class seems to do this with it's ResultSets but I can't seem to see how. Ideally it could do this: code:
code:
leedo fucked around with this message at 01:20 on Aug 27, 2008 |
# ¿ Aug 27, 2008 01:18 |
|
heeen posted:I've seen this: This is essentially what I'm doing, though I'm tempted to just always return the array.
|
# ¿ Aug 28, 2008 00:23 |
|
uG posted:How can I install the Moose branch of Catalyst 5.80 using cpan? I don't think that is possible. You would probably have to do an svn checkout and install that way. I don't really see the point in doing that, I can't imagine much is changing on the userspace end of things. edit: speaking of which, there was a good interview with mst about Catamoose today http://jjnapiorkowski.vox.com/library/post/catamoose-part-two-mst-speaks.html leedo fucked around with this message at 21:25 on Sep 8, 2008 |
# ¿ Sep 8, 2008 19:53 |
|
SpeedFrog posted:Yup, that works just fine, in fact I believe that's the recommended place, as it sits nicely alongside your relationship definitions (you mean resultset_class('Game:B::ResultSet::Table'), yeah?).
|
# ¿ Sep 10, 2008 23:44 |
|
This seems more clear, but I guess it is probably slower:code:
leedo fucked around with this message at 21:27 on Nov 14, 2008 |
# ¿ Nov 14, 2008 21:15 |
|
Whelp, i suck
|
# ¿ Nov 14, 2008 21:32 |
|
Has anyone else been playing around with perl6 the past few weeks? I started writing a console version of Risk in p6, and was very surprised by how much is working. I got most of the classes set up with the appropriate properties and methods, and it all compiles cleanly. Right now I am putting off figuring out the best way to draw a undirected graph to the console. Does anyone know of a good example I can go off of? I did a few searches on CPAN and found very little. leedo fucked around with this message at 20:34 on Jan 4, 2009 |
# ¿ Jan 4, 2009 20:29 |
|
SpeedFrog posted:Without having looked at the code and judged its portability to p6, App::Asciio might be a good starting point. That is perfect, thanks! Should give me something to do for the next few weeks.
|
# ¿ Jan 7, 2009 01:45 |
|
I don't think it gets much cheaper than YAPC. I paid for it out of pocket last year when it was in Chicago. Well worth it, IMO.
|
# ¿ Jan 8, 2009 00:58 |
|
Welp, I just got a new job doing full time perl development, so expect more embarrassing code snippets from me soon!
|
# ¿ Feb 2, 2009 15:37 |
|
Triple Tech posted:Congratulations. What city are you in? I'm in Chicago. I've actually been seeing quite a few (3-4 a month) Chicago perl jobs showing up jobs.perl.org.
|
# ¿ Feb 2, 2009 15:48 |
|
I'm starting a new project at work and I am looking for a web framework with a more lightweight install than Catalyst. I have a lot of experience with Catalyst, and it would actually work really well for this, but I'm afraid the massive list of CPAN dependencies will scare away the higher-ups. I'm looking at CGI::Application right now. I have a rather large DBIx::Class schema, so it is nice that it can be used as a mod_perl handler (presumably not reloading the schema on each request.) Any other suggestions? The trend around here has been to roll their own frameworks, but hopefully I can steer them in the direction of Catalyst eventually. edit: on second thought, gently caress it, all the Catalyst modules I need are in Debian already so the install is not going to be painful. leedo fucked around with this message at 02:09 on Apr 21, 2009 |
# ¿ Mar 13, 2009 15:14 |
|
YAPC tickets are on sale at a big discount this week. I picked some up, though I'm not 100% sure I can make it. At the very least it is a decent donation. http://yapc10.org/yn2009/
|
# ¿ Mar 16, 2009 01:47 |
|
atomicstack posted:Catalyst 5.8000_07 hit CPAN today. Apparently a production-ready release will be made this week if no more blockers show up during testing. Time to start porting our existing apps over to Catamoose! I think this will be the impetus to get me to finally start using Moose. Cool!
|
# ¿ Apr 14, 2009 14:50 |
|
dagard posted:I've been using Catalyst lately for an internal project (inventory tracking for my group of system administrators), and while I love it, I seem to be google-blind on one thing. Query caching. I haven't done much with it, but you could use Catalyst::Plugin::Cache. An example could look something like this (taken straight from the docs): code:
|
# ¿ Apr 17, 2009 04:29 |
|
I have been super bored this weekend and started working on an Gtk+ irc client in perl. My main goal is to be compatible with Colloquy styles, which consist of html, css, and an xslt file. I am using WebKit for the HTML view, which is also what Colloquy uses. It is pretty neat, because there is a great Colloquy style that can do inline images, as well as inline audio (via the <audio> element.) Here is a large screenshot I've got everything working, but now I am going back and re-writing it with Moose. It is a bit of a pain, but I can already see it becoming more readable and easier to update.
|
# ¿ Apr 19, 2009 19:11 |
|
I recently used DBIx::Class to define a fairly complex schema (~20 tables, each with 2-5 relationships), and it worked out really well. I wrote the entire schema in Perl first and used the create_ddl_dir method to export it out the SQL schema. This way I could export out very basic SQL for SQLite on my local machine, and SQL with the constraints supported by MySQL in production. It also handles diffs between schema revisions, so I could easily upgrade a DB without wiping everything out. I also really enjoy not having to write out queries by hand, but that speaks more to my dislike of writing SQL than anything else.
|
# ¿ Apr 21, 2009 01:00 |
|
Scentaur posted:perl n00b question for ya'll I'd suggest choosing something you are already interested in. Do you like music? If so take a look at the last.fm API and try doing something with that. Whatever you are interested in there is probably a CPAN module that deals with it, which you could then tie together in a CGI script.
|
# ¿ Apr 25, 2009 21:24 |
|
Mithaldu posted:I'm currently trying to figure out a performance issue i have when splitting a CSV file into arrays of arrays. The first run through a file is pretty fast. However EVERY run after that is very slow. While I can't tell you what is causing the slowdown, I can heartily recommend using Text::CSV_XS for any CSV processing.
|
# ¿ May 7, 2009 16:05 |
|
Sartak posted:The YAPC::NA schedule was just published. My "Extending Moose for Applications" talk was accepted I'm going to be at YAPC::NA, I'll try to check it out. I am probably most interested in the Moose and Perl 6 talks.
|
# ¿ May 12, 2009 02:05 |
|
Triple Tech posted:I see that YAPC is quickly approaching... So I guess I will attend and see if my company will reimburse me after the fact. I'll just use up all my vacation days and check out sunny Pittsburg! Ugh... I'm just doing Monday - Wednesday, it doesn't look like too much is going on the rest of the week. And it was only 99 dollars if you ordered tickets a month or so ago, I can't think of a cheaper conference!
|
# ¿ May 16, 2009 21:20 |
|
Sartak posted:Miyagawa has written a quick blog post about building native OS X applications out of Perl programs and their dependencies. It uses Platypus to do the heavy lifting. Wow, that was really awesome. I just built an .app in 5 minutes for my latest waste of time: http://github.com/leedo/buttesfire-web/tree/master It launches a POE::IRC client and lets you interact with it using Safari or FF. It uses long polling to stream the data to the browsers. The great part is that most of the client development is done on the javascript side, so I can just refresh the browser to test out new things, no need to reconnect. (Yes I recreated CGI::IRC, ok) leedo fucked around with this message at 06:59 on Jun 16, 2009 |
# ¿ Jun 16, 2009 06:57 |
|
I came in in for the end of the most recent Git talk. it seems like things are really running behind schedule, unless I'm reading things wrong. They cut off the Perl 6 regex talk before he finished, but the Git talk went like 15 minutes over. Anyways, I'm sticking around for the next Git talk. I'm bearded and in a plain white t-shirt and jeans.
|
# ¿ Jun 22, 2009 20:19 |
|
Triple Tech posted:That describes no one. Are you on IRC or something? I am! I just joined #yapc as "lee_" which appears looks pretty full. edit: i think i'm going to head over to the mod_perl6 talk, though. It seems like they skipped one of the git talks, but more likely I am just very confused. leedo fucked around with this message at 20:39 on Jun 22, 2009 |
# ¿ Jun 22, 2009 20:35 |
|
Did anyone else get sick from that dinner last night? I woke up with horrible stomach pain and a fever this morning. Now I am just hoping I don't puke on this flight back to Chicago. Not a great way to end the trip
|
# ¿ Jun 24, 2009 14:22 |
|
The IRC bot talk a few posts back reminded me to upload this IRC HTML formatting module I have been sitting on. So if you every need to export raw IRC to HTML give it a try! http://search.cpan.org/~leedo/IRC-Formatting-HTML-0.01/
|
# ¿ Jul 23, 2009 19:04 |
|
Ok, so here is a potentially stupid Moose question. I have a class that has a "config" property, and a "server" property. The creation of the server property requires that the config property be set so that I can use some of the config fields when setting up the server. Normally I would just set the server property to lazy like so: code:
Do I need to move this into a BUILD sub? Or is there some way to specify the order that properties are defined? edit: I got this working by setting the server in a trigger on config. Still not sure if that is the best approach, though. leedo fucked around with this message at 23:21 on Jul 30, 2009 |
# ¿ Jul 30, 2009 23:11 |
|
Mithaldu posted:^^^^ defined will autovivify the hash element, where as exists will not. At least that is how I always understood it.
|
# ¿ Jul 31, 2009 02:06 |
|
Sartak posted:No, autovivification happens when you access a deep structure. Wow, I could have sworn defined would create the hash key. But yeah I just did a little test and you're definitely right.
|
# ¿ Jul 31, 2009 02:41 |
|
|
# ¿ May 1, 2024 01:49 |
|
Mario Incandenza posted:Don't you just love it when a reference is accidentally numified and passed through to your merchant account as a $166m charge against a dummy card number and the bank locks down your payment gateway as a result? Haha. The catalyst app that I wrote for CC processing successfully charged a card for 20k recently. I guess they actually owed us that much, but we're supposed to get paid by money order for anything that large. Oops, guess I should add an upper limit :o
|
# ¿ Dec 4, 2009 00:43 |