code logs -> 2014 -> Wed, 03 Dec 2014< code.20141202.log - code.20141204.log >
--- Log opened Wed Dec 03 00:00:11 2014
00:14 Vorntastic [Vorn@Nightstar-pvoqj8.public.wayport.net] has joined #code
00:20 Thalass|zzzZzzZZz [thalass@Nightstar-bakqqn.bigpond.net.au] has quit [Ping timeout: 121 seconds]
00:21 Vornlicious [Vorn@Nightstar-qhscc9.sub-70-215-26.myvzw.com] has joined #code
00:21 Vornmazing [Vorn@Nightstar-pvoqj8.public.wayport.net] has joined #code
00:21 Vorntastic [Vorn@Nightstar-pvoqj8.public.wayport.net] has quit [Connection reset by peer]
00:24 Vornlicious [Vorn@Nightstar-qhscc9.sub-70-215-26.myvzw.com] has quit [Operation timed out]
00:24 Vorntastic [Vorn@Nightstar-qhscc9.sub-70-215-26.myvzw.com] has joined #code
00:24 Vorntastic [Vorn@Nightstar-qhscc9.sub-70-215-26.myvzw.com] has quit [[NS] Quit: Bye]
00:25 Vorntastic [Vorn@Nightstar-qhscc9.sub-70-215-26.myvzw.com] has joined #code
00:26 Vornmazing [Vorn@Nightstar-pvoqj8.public.wayport.net] has quit [Ping timeout: 121 seconds]
00:31 Derakon is now known as Derakon[AFK]
01:00
<@celticminstrel>
Seems like Force Quit doesn't send SIGKILL.
01:04
<&McMartin>
On OSX? Yeah, I think that's SIGTERM.
01:09 Derakon[AFK] is now known as Derakon
01:10
<@celticminstrel>
I might've used the wrong identifier, but I meant signal 9.
01:10
<@celticminstrel>
Anyway, I tried force-quit three times to no effect, then kill from the command-line ended it instantly.
01:11
<&McMartin>
Yeah signal 9 is SIGKILL.
01:11
<&McMartin>
SIGTERM is the one you get with no arguments at all
01:11
<&Derakon>
There should be a SIGSLAUGHTER
01:46 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
01:46 mode/#code [+qo Vornicus Vornicus] by ChanServ
01:46 Vorntastic [Vorn@Nightstar-qhscc9.sub-70-215-26.myvzw.com] has quit [[NS] Quit: Bye]
01:50 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [Ping timeout: 121 seconds]
02:05 thalass [thalass@Nightstar-61vd7a.bigpond.net.au] has joined #code
02:45 thalass [thalass@Nightstar-61vd7a.bigpond.net.au] has quit [[NS] Quit: augh]
03:00 thalass [thalass@Nightstar-61vd7a.bigpond.net.au] has joined #code
03:00 mode/#code [+o thalass] by ChanServ
03:45 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
03:45 mode/#code [+ao McMartin McMartin] by ChanServ
03:58 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
04:08 gizmore|2 [kvirc@Nightstar-7505k7.pools.vodafone-ip.de] has joined #code
04:09 gizmore [kvirc@Nightstar-1gp5tr.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
04:19 gizmore [kvirc@Nightstar-b2fk30.pools.vodafone-ip.de] has joined #code
04:21 gizmore|2 [kvirc@Nightstar-7505k7.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
04:35 gizmore|2 [kvirc@Nightstar-4k44d8.pools.vodafone-ip.de] has joined #code
04:36 gizmore [kvirc@Nightstar-b2fk30.pools.vodafone-ip.de] has quit [Operation timed out]
04:38 gizmore [kvirc@Nightstar-g5i6dg.pools.vodafone-ip.de] has joined #code
04:40 gizmore|2 [kvirc@Nightstar-4k44d8.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
04:44 gizmore|2 [kvirc@Nightstar-su1te3.pools.vodafone-ip.de] has joined #code
04:44 gizmore [kvirc@Nightstar-g5i6dg.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
04:46 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
05:14 gizmore [kvirc@Nightstar-t9s6j1.pools.vodafone-ip.de] has joined #code
05:14 Derakon is now known as Derakon[AFK]
05:15 gizmore|2 [kvirc@Nightstar-su1te3.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
05:16 gizmore|2 [kvirc@Nightstar-qse9u3.pools.vodafone-ip.de] has joined #code
05:18 gizmore [kvirc@Nightstar-t9s6j1.pools.vodafone-ip.de] has quit [Operation timed out]
05:20 Kindamoody[zZz] is now known as Kindamoody
05:24 gizmore [kvirc@Nightstar-4jirv9.pools.vodafone-ip.de] has joined #code
05:26 gizmore|2 [kvirc@Nightstar-qse9u3.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
05:26 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
05:33 gizmore [kvirc@Nightstar-4jirv9.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
05:34 gizmore [kvirc@Nightstar-7aqtc0.pools.vodafone-ip.de] has joined #code
05:35 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
05:36 thalass is now known as Thalaway
05:52 gizmore|2 [kvirc@Nightstar-q1gnv0.pools.vodafone-ip.de] has joined #code
05:54 gizmore|3 [kvirc@Nightstar-89ceqe.pools.vodafone-ip.de] has joined #code
05:54 gizmore [kvirc@Nightstar-7aqtc0.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
05:56 gizmore|2 [kvirc@Nightstar-q1gnv0.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
05:57 gizmore [kvirc@Nightstar-f66bih.pools.vodafone-ip.de] has joined #code
06:00 gizmore|2 [kvirc@Nightstar-m5a4k3.pools.vodafone-ip.de] has joined #code
06:00 gizmore|3 [kvirc@Nightstar-89ceqe.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
06:01 gizmore [kvirc@Nightstar-f66bih.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
06:03 gizmore [kvirc@Nightstar-v5kspl.pools.vodafone-ip.de] has joined #code
06:05 gizmore|2 [kvirc@Nightstar-m5a4k3.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
06:10 Thalaway [thalass@Nightstar-61vd7a.bigpond.net.au] has quit [Ping timeout: 121 seconds]
06:17 gizmore|2 [kvirc@Nightstar-u36n6h.pools.vodafone-ip.de] has joined #code
06:19 gizmore [kvirc@Nightstar-v5kspl.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
06:33 Thalaway [thalass@Nightstar-61vd7a.bigpond.net.au] has joined #code
06:39 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
06:39 mode/#code [+o Checkmate] by ChanServ
07:12 Thalaway is now known as Thalass
07:13 mode/#code [+o Thalass] by ChanServ
07:45 gizmore|2 [kvirc@Nightstar-u36n6h.pools.vodafone-ip.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
07:45 gizmore [kvirc@Nightstar-u36n6h.pools.vodafone-ip.de] has joined #code
07:52 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
09:27 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
09:27 mode/#code [+o himi] by ChanServ
09:53 Kindamoody is now known as Kindamoody|out
10:09 celticminstrel is now known as celmin|Zzzzzz
10:11 gizmore [kvirc@Nightstar-u36n6h.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
10:11 gizmore [kvirc@Nightstar-3lf656.pools.vodafone-ip.de] has joined #code
10:42 Attilla [sid13723@Nightstar-ed0oqj.irccloud.com] has quit [Connection reset by peer]
10:42 Attilla [sid13723@Nightstar-ed0oqj.irccloud.com] has joined #code
11:18 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
11:18 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Connection reset by peer]
11:19 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
11:19 mode/#code [+o himi] by ChanServ
11:27 gizmore|2 [kvirc@Nightstar-65ls6o.pools.vodafone-ip.de] has joined #code
11:29 gizmore [kvirc@Nightstar-3lf656.pools.vodafone-ip.de] has quit [Operation timed out]
11:34 Xon [Xon@Nightstar-j72.ku7.252.119.IP] has quit [Ping timeout: 121 seconds]
11:38 Xon [Xon@Nightstar-j72.ku7.252.119.IP] has joined #code
11:49 gizmore [kvirc@Nightstar-o4jpcu.pools.vodafone-ip.de] has joined #code
11:51 gizmore|2 [kvirc@Nightstar-65ls6o.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
11:57 gizmore|2 [kvirc@Nightstar-27kl8e.pools.vodafone-ip.de] has joined #code
12:00 gizmore [kvirc@Nightstar-o4jpcu.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
12:12 gizmore [kvirc@Nightstar-5j63s3.pools.vodafone-ip.de] has joined #code
12:13 gizmore|2 [kvirc@Nightstar-27kl8e.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
12:14 gizmore|2 [kvirc@Nightstar-lpi0pe.pools.vodafone-ip.de] has joined #code
12:15 gizmore|3 [kvirc@Nightstar-50c218.pools.vodafone-ip.de] has joined #code
12:16 gizmore [kvirc@Nightstar-5j63s3.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
12:18 gizmore|2 [kvirc@Nightstar-lpi0pe.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
12:34 gizmore [kvirc@Nightstar-gfu90p.pools.vodafone-ip.de] has joined #code
12:37 gizmore|3 [kvirc@Nightstar-50c218.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
12:38 gizmore|2 [kvirc@Nightstar-327ap9.pools.vodafone-ip.de] has joined #code
12:39 gizmore [kvirc@Nightstar-gfu90p.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
13:29 * TheWatcher refactorrefactorrefactor
13:40 gizmore [kvirc@Nightstar-qtd7cn.pools.vodafone-ip.de] has joined #code
13:40 gizmore|2 [kvirc@Nightstar-327ap9.pools.vodafone-ip.de] has quit [Connection reset by peer]
13:56 gizmore|2 [kvirc@Nightstar-bcj0g7.pools.vodafone-ip.de] has joined #code
13:59 gizmore [kvirc@Nightstar-qtd7cn.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
14:00 gizmore [kvirc@Nightstar-c2jhdf.pools.vodafone-ip.de] has joined #code
14:01 gizmore|2 [kvirc@Nightstar-bcj0g7.pools.vodafone-ip.de] has quit [Operation timed out]
14:04
<@Azash>
gizmore: Do fix your connection
14:08 Thalass [thalass@Nightstar-61vd7a.bigpond.net.au] has quit [[NS] Quit: sleep time bleh]
14:09 gizmore [kvirc@Nightstar-c2jhdf.pools.vodafone-ip.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
14:09 gizmore [kvirc@Nightstar-c2jhdf.pools.vodafone-ip.de] has joined #code
14:51!Deepthought.Nightstar.Net *** iospace invited wraith into the channel
14:55 gizmore [kvirc@Nightstar-c2jhdf.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
15:00 gizmore [kvirc@Nightstar-vrb87i.pools.vodafone-ip.de] has joined #code
15:28 gizmore|2 [kvirc@Nightstar-v1qdjb.pools.vodafone-ip.de] has joined #code
15:30 gizmore [kvirc@Nightstar-vrb87i.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
16:11 gizmore [kvirc@Nightstar-22odak.pools.vodafone-ip.de] has joined #code
16:13 gizmore|2 [kvirc@Nightstar-v1qdjb.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
16:14 gizmore|2 [kvirc@Nightstar-2jtgaq.pools.vodafone-ip.de] has joined #code
16:16 gizmore [kvirc@Nightstar-22odak.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
16:27 gizmore|2 [kvirc@Nightstar-2jtgaq.pools.vodafone-ip.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
16:55 gizmore [kvirc@Nightstar-enrjhc.pools.vodafone-ip.de] has joined #code
17:06 gnolam [lenin@Nightstar-ii43bc.cust.bredband2.com] has joined #code
17:06 mode/#code [+o gnolam] by ChanServ
17:18 gizmore [kvirc@Nightstar-enrjhc.pools.vodafone-ip.de] has quit [Ping timeout: 121 seconds]
17:35 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code
17:53
< Vorntastic>
Imagemagick: I am tasked with watermarking & scaling an image. The watermarking is done by composite; the scaling by resize. In all situations, I want the watermark to *all* display on the chosen image: if the image is too small, I wish to resize the watermark so it fits.
17:56
< Vorntastic>
In many cases, the image is too small to resize (I'm using wxh>) so I have to find the actual size of the image before pasting on the watermark.
17:57
< Vorntastic>
(Why composite? The watermark is a stamp, in color)
17:58
<@iospace>
...
17:59
<@iospace>
a nearly... 10k line function. I wish I were joking
17:59
<@iospace>
I have found just that...
17:59
< Vorntastic>
I guess what I need is, uh, "how do I find the size of the image i'm working on"
18:01
< Vorntastic>
Shit, man, I have whole production systems with less code.
18:01
<@iospace>
in the same file: 300+ global variables
18:01
<@Tamber>
>_<
18:02
< Vorntastic>
;_;
18:02
<@Tamber>
iospace, and 150 of them are named almost identically to the other 150, but do painfully different things?
18:02
< Vorntastic>
-identify prints the data I need...
18:03
<@Tamber>
(...or subtlely different things that result in insidious disaster 6 months down the line?)
18:05
<@iospace>
oh, and a 900+ line function in the same file
18:05
< Vorntastic>
Iospace: take off and nuke the site from orbit. It's the only way to be sure.
18:05
<@iospace>
Oh I wish
18:06
<@iospace>
The only comfort I have is that the company I work for did /not/ write this monstrosity
19:02
< Vorntastic>
Gnarg, it appears I may need to pipe identify's results in.
19:07
< Vorntastic>
...or maybe there's fz
19:07
< Vorntastic>
Er, fx
19:55 celmin|Zzzzzz is now known as celticminstrel
20:03 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
20:03 mode/#code [+o Reiv] by ChanServ
20:46
< Vorntastic>
If I could figure out how to toss fx into something else that'd be great
20:51 Kindamoody|out is now known as Kindamoody
21:10
<@Reiv>
Anyone seen jython before?
21:12
<&McMartin>
"Seen" is pretty broad.
21:12
<&McMartin>
I have witnessed it
21:12
<&McMartin>
I have not actually *used* it
21:13
<&jerith>
I used it once a few years ago.
21:13
<&jerith>
It was painful, but mostly because I needed to interact with Java stuff and therefore ended up writing Java code with Python syntax.
21:14
<&McMartin>
That pretty much matches my witnessing
21:16
<&jerith>
Oh, hey. Jython had some activity in the past year and a half.
21:16
<&McMartin>
Interesting
21:16
<&jerith>
Jython 2.7b2 was May 2013, 2.7b3 was August 2014.
21:16
<&McMartin>
(The only Java interop I've ever seen that didn't end up looking like "Java in ______" is Clojure)
21:17
<&jerith>
Nothing in between or since.
21:17
<&McMartin>
(I include Scala in this)
21:17
<&jerith>
I suppose JRuby doesn't really do much interop.
21:23
<@Reiv>
jerith: I fear I am in the same situation
21:23
<@Reiv>
I am stealing a lump of code from one bit of Maximo, and bending it to my will in another
21:23
<@Reiv>
I am at this point assuming there's no such thing as a CASE statement in the thing, is there
21:24
<&jerith>
It's Python, so no.
21:25
<&jerith>
You either use if/elif/elif or you build a dict of values and functions and use it to dispatch.
21:26
<@Reiv>
I guess I'm writing a whole bunch of nested ifs then
21:26
<@Reiv>
er, elifs, apparently
21:26
<@Reiv>
Is elif an actual syntax here
21:26
<&jerith>
Yes.
21:27
<&jerith>
You don't necessarily need nesting.
21:27
<&jerith>
if foo:
21:27
<&jerith>
do_thing()
21:27
<&jerith>
elif bar:
21:27
<&jerith>
do_other_thing()
21:27
<&jerith>
else:
21:27
<&jerith>
be_sad()
21:27
<&jerith>
You can have as many elifs as you want.
21:27
<@Reiv>
elif is a real thing then, excellent
21:28
<@Reiv>
I can make a case statement with that
21:28
<@Reiv>
(Yes, it needed first-match termination)
21:29
<&ToxicFrog>
(switch-case doesn't generally get you that anyways, it gets you a dispatch table)
21:29
<&ToxicFrog>
(languages with structural pattern matching excepted)
21:29
<&jerith>
I often find a series of "if condition, do thing and then return" blocks to be preferable.
21:29
<&jerith>
Especially for handling edge cases before the (bigger) common case.
21:30
<@Reiv>
hm-
21:30
<@Reiv>
The code I am wrangling
21:30 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
21:43
<@iospace>
Tamber: Vorntastic so it gets worse
21:43
<@iospace>
somehow
21:44
<@iospace>
39k+ bash script
21:47
<@Tamber>
;_;
21:49
<@iospace>
still not as horrible as the c++ file, but still
21:50
<@Reiv>
oh right this is python
21:50
<@Reiv>
The incremental indentations suggest that these are a set of /nested/ ifs
21:50
<@Reiv>
It took half a moment to realise that~
21:51
<&jerith>
"suggest"?
21:51
<&jerith>
"indicate", perhaps.
21:51
<@Reiv>
jerith: The intendations are single spaces.
21:51
<@Reiv>
It took a moment to notice they were /there/
21:52
<&jerith>
...
21:52
<&jerith>
One space?
21:52
<@Reiv>
Looks like!
21:52
<&jerith>
Is that consistent?
21:52
<@Reiv>
It is pain.
21:53
<@Reiv>
The original code: http://pastebin.starforge.co.uk/669
21:53
<@Reiv>
I need to change the ifs to elifs, alter what columns it looks at, and, hm
21:54
<@Reiv>
Work out what .getMbo does, maybe~
21:54
<&jerith>
That looks horrible.
21:54
<&jerith>
Start by reindenting.
21:54
<@Reiv>
I'm not sure if the system I'm pasting it into can handle that >_<
21:57
<&jerith>
Paste it into emacs instead.~
21:58
<@iospace>
why emacs~ use Vi(m)
21:58
<@Reiv>
Or maybe I'll just do this in Notepad.
21:59
<@Reiv>
Tool of champions.
22:00 Kindamoody is now known as Kindamoody[zZz]
23:02 gnolam [lenin@Nightstar-ii43bc.cust.bredband2.com] has quit [Connection closed]
23:17 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
23:17 mode/#code [+o himi] by ChanServ
23:47 Vornlicious [Vorn@Nightstar-9u094f.sub-70-215-8.myvzw.com] has joined #code
23:48 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [Ping timeout: 121 seconds]
--- Log closed Thu Dec 04 00:00:27 2014
code logs -> 2014 -> Wed, 03 Dec 2014< code.20141202.log - code.20141204.log >

[ Latest log file ]