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.43 | herlo | I hate perl! |
04:40.09 | bochecha | herlo: I can relate to that |
04:40.42 | bochecha | (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.52 | herlo | bochecha: trying to make gitolite work with kerberos over smart http host |
04:41.06 | herlo | almost there, but I'm stuck on getting the remote_user value set properly |
04:41.11 | bochecha | oh wow, I'm not doing big things like these ^^ |
04:41.29 | herlo | haha, it's not that big |
04:42.09 | bochecha | any thing I've tried to do in Perl, even the simplest, has turned into a long moment of sadness and frustration |
04:43.42 | bochecha | "there's more than one way to do it", they should have added "and none of them will make sense" |
04:44.15 | herlo | haha |
04:44.17 | herlo | pretty much |
04:44.27 | herlo | all I wanted to do was a split of a ENV variable |
04:44.33 | herlo | and get the first part |
04:44.41 | bochecha | heh |
04:44.43 | herlo | turns into some regex magic |
04:44.52 | herlo | and it fails |
04:45.02 | bochecha | what happens? |
04:45.44 | herlo | lots of errors |
04:45.48 | herlo | and no splitting |
04:45.52 | bochecha | :) |
04:45.57 | bochecha | can you share the code? |
04:45.58 | herlo | atm, I've given up tho |
04:46.10 | herlo | no, I've wiped it out |
04:46.30 | bochecha | I've often had this temptation when I was writing Perl |
04:46.37 | herlo | lol |
04:46.52 | bochecha | but I had a feeling my boss wouldn't have appreciated, so instead I just stopped and did some Python for a while |
04:47.59 | herlo | yeah, I'd prefer python. It makes sense |
04:48.02 | herlo | most of the time |
04:48.15 | bochecha | one 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.45 | bochecha | I'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.31 | herlo | meh, 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.45 | bochecha | that works too ^_^ |
04:51.14 | herlo | indeed :) |
04:52.28 | herlo | bochecha: remind me of the command you use to call a script from another script and wait upon its return |
04:52.36 | herlo | thought it was call /path/to/script |
04:54.46 | herlo | WOOT! it works! |
04:55.54 | bochecha | it is :) |
04:56.16 | herlo | hmm, call didn't work |
04:56.21 | herlo | but no matter |
04:56.22 | bochecha | last time I spent 2 hours scratching my head on this one: http://fpaste.org/hZ4w/ |
04:56.25 | bochecha | ah no |
04:56.32 | bochecha | just the path to the script, directly |
04:56.41 | bochecha | didn't see the "call" |
04:57.07 | herlo | yeah, I think your code is what I was running into |
04:57.10 | herlo | very similar |
04:57.17 | bochecha | it's just insane |
04:57.23 | herlo | bochecha: no worries, I got it working, I think |
04:57.39 | bochecha | the case that doesn't work is because the "~~" operator tries to guess the context, and guesses what you want is an int |
04:57.43 | herlo | now to figure out how to have git not prompt me for username/password since I'm using kerberos tickets |
04:57.59 | herlo | haha, exactly what I kept getting a '1' |
04:58.12 | bochecha | that's what I hate the most with Perl, it tries to guess too many things automagically |
04:58.21 | bochecha | I like how Python just fails as soon as something is wrong |
04:58.39 | bochecha | much easier to understand what's going on and fix it |
04:59.25 | herlo | yep |
05:08.03 | herlo | man, 99% of the way there! |
05:08.13 | herlo | just gotta figure this last part out. hmmm |
05:11.34 | bochecha | famous last words |
05:20.02 | herlo | haha |
05:20.13 | herlo | I think I can just fake it with a ~/.netrc and set a fake password |
05:20.24 | herlo | seeing as it ignores it anyway |
05:25.07 | herlo | bochecha: haha, that works. It's an easy workaround for it too |
05:25.13 | herlo | tomorrow, i document! |
05:25.22 | bochecha | :) |
05:26.26 | herlo | you can even put in fake names completely, it doesn't matter. |
13:57.41 | *** join/#gooseproject makfinsky (~imak@fedora/makfinsky) |
15:39.16 | herlo | GoOSe morning! |