IRC log for #gooseproject on 20121011

01:22.23*** join/#gooseproject kim27 (~kim27@205.185.121.246)
01:29.51*** join/#gooseproject kim27 (~kim27@205.185.121.246)
02:19.32*** join/#gooseproject makfinsky (~imak@fedora/makfinsky)
04:19.43*** join/#gooseproject bochecha (~mathieu@fedora/bochecha)
04:36.43herloI hate perl!
04:40.09bochechaherlo: I can relate to that
04:40.42bochecha(note that my company is mostly a Perl/C++ shop, which leads me to doing Perl much more often than I'd like)
04:40.52herlobochecha: trying to make gitolite work with kerberos over smart http host
04:41.06herloalmost there, but I'm stuck on getting the remote_user value set properly
04:41.11bochechaoh wow, I'm not doing big things like these ^^
04:41.29herlohaha, it's not that big
04:42.09bochechaany thing I've tried to do in Perl, even the simplest, has turned into a long moment of sadness and frustration
04:43.42bochecha"there's more than one way to do it", they should have added "and none of them will make sense"
04:44.15herlohaha
04:44.17herlopretty much
04:44.27herloall I wanted to do was a split of a ENV variable
04:44.33herloand get the first part
04:44.41bochechaheh
04:44.43herloturns into some regex magic
04:44.52herloand it fails
04:45.02bochechawhat happens?
04:45.44herlolots of errors
04:45.48herloand no splitting
04:45.52bochecha:)
04:45.57bochechacan you share the code?
04:45.58herloatm, I've given up tho
04:46.10herlono, I've wiped it out
04:46.30bochechaI've often had this temptation when I was writing Perl
04:46.37herlolol
04:46.52bochechabut I had a feeling my boss wouldn't have appreciated, so instead I just stopped and did some Python for a while
04:47.59herloyeah, I'd prefer python. It makes sense
04:48.02herlomost of the time
04:48.15bochechaone thing that could happen in your case (it always trips me up) is that you split a string, so you get an array, but Perl **helpfully** (keep repeating yourself that) guesses that in the current context, what you really want is the integer reference (pointer) to the array variable, so it gives you that instead
04:48.45bochechaI've wasted countless hours on stupid things like this, trying to iterate over an array I had just created by splitting a string
04:49.31herlomeh, I have the values I want by avoiding the perl script and instead using a shell script to pass the variable the way I want it in the first place
04:49.45bochechathat works too ^_^
04:51.14herloindeed :)
04:52.28herlobochecha: remind me of the command you use to call a script from another script and wait upon its return
04:52.36herlothought it was call /path/to/script
04:54.46herloWOOT! it works!
04:55.54bochechait is :)
04:56.16herlohmm, call didn't work
04:56.21herlobut no matter
04:56.22bochechalast time I spent 2 hours scratching my head on this one: http://fpaste.org/hZ4w/
04:56.25bochechaah no
04:56.32bochechajust the path to the script, directly
04:56.41bochechadidn't see the "call"
04:57.07herloyeah, I think your code is what I was running into
04:57.10herlovery similar
04:57.17bochechait's just insane
04:57.23herlobochecha: no worries, I got it working, I think
04:57.39bochechathe case that doesn't work is because the "~~" operator tries to guess the context, and guesses what you want is an int
04:57.43herlonow to figure out how to have git not prompt me for username/password since I'm using kerberos tickets
04:57.59herlohaha, exactly what I kept getting a '1'
04:58.12bochechathat's what I hate the most with Perl, it tries to guess too many things automagically
04:58.21bochechaI like how Python just fails as soon as something is wrong
04:58.39bochechamuch easier to understand what's going on and fix it
04:59.25herloyep
05:08.03herloman, 99% of the way there!
05:08.13herlojust gotta figure this last part out. hmmm
05:11.34bochechafamous last words
05:20.02herlohaha
05:20.13herloI think I can just fake it with a ~/.netrc and set a fake password
05:20.24herloseeing as it ignores it anyway
05:25.07herlobochecha: haha, that works. It's an easy workaround for it too
05:25.13herlotomorrow, i document!
05:25.22bochecha:)
05:26.26herloyou can even put in fake names completely, it doesn't matter.
13:57.41*** join/#gooseproject makfinsky (~imak@fedora/makfinsky)
15:39.16herloGoOSe morning!

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.