code logs -> 2012 -> Thu, 14 Jun 2012< code.20120613.log - code.20120615.log >
--- Log opened Thu Jun 14 00:00:01 2012
00:10 iofficespace is now known as iospace
00:15 Tsubaki_ [Phox@Nightstar-90b7ea4e.asahi-net.or.jp] has quit [Client closed the connection]
00:15 * ToxicFrog determines that PI_MAIN is sending messages to itself, hence the crazy
00:19
< Rhamphoryncus>
talking to yourself does sound crazy
00:19 cpux|2 is now known as cpux
00:19
<@rms>
You have a main function to calculate pi?
00:19
<@rms>
Why does it look like a macro?
00:19
< Rhamphoryncus>
Unless you've got a cellphone. Then you look just like everyone else
00:24 Tsubaki [Phox@Nightstar-46a0c108.asahi-net.or.jp] has joined #code
00:24
<@ToxicFrog>
rms: all symbols in the Pilot library have a PI_ prefix.
00:24
<@ToxicFrog>
PI_MAIN is the ID of the main process (the CP, on this architecture)
00:25
<@rms>
Ah
00:27
<&McMartin>
Exceptions aren't gotos! They can cut the stack!
00:32
< Tsubaki>
Stack sashimi
00:32
< Tsubaki>
Served with a nice sauce
00:32
< Tsubaki>
I'd eat it
00:34 * TheWatcher eyes his projects directory, scratches his head
00:34
<@TheWatcher>
I could have /sworn/ I started writing an rss ticker at some point
00:40 Tsubaki [Phox@Nightstar-46a0c108.asahi-net.or.jp] has quit [Client closed the connection]
00:43 Tsubaki [Phox@Nightstar-3c38754f.asahi-net.or.jp] has joined #code
00:45 Attilla [Obsolete@Nightstar-def845e9.as43234.net] has quit [Ping timeout: 121 seconds]
00:55 Tsubaki [Phox@Nightstar-3c38754f.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
01:05 Attilla [Obsolete@Nightstar-6d8ee776.as43234.net] has joined #code
01:12 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has joined #code
01:12 You're now known as TheWatcher[T-2]
01:15 You're now known as TheWatcher[zZzZ]
01:23 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
01:24 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has joined #code
01:43 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has quit [Ping timeout: 121 seconds]
01:46 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has joined #code
01:59
< Rhamphoryncus>
step 1: figure out what your question is >.>
02:02 Kindamoody[zZz] is now known as Kindamoody
02:12 Derakon is now known as Derakon[AFK]
02:19
<~Vornicus>
THat does help.
02:24 Attilla [Obsolete@Nightstar-6d8ee776.as43234.net] has quit [Ping timeout: 121 seconds]
02:31 Noah is now known as NoahTheOmnivorousZombie
02:36 Attilla [Obsolete@Nightstar-a520f35c.as43234.net] has joined #code
02:42 Attilla [Obsolete@Nightstar-a520f35c.as43234.net] has quit [Ping timeout: 121 seconds]
02:57 NoahTheOmnivorousZombie is now known as NoahTheBrainSlugHost
03:03 NoahTheBrainSlugHost [nbarr@490720.C448F4.12FDC5.2C3558] has quit [Client closed the connection]
03:07 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:10 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
03:10 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:16 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Connection reset by peer]
03:16 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has quit [Connection reset by peer]
03:16 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:16 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has joined #code
03:17 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has quit [Client closed the connection]
03:23 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Connection reset by peer]
03:23 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:30 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:30 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
03:31
< celticminstrel>
Somehow I seem to have an infinite loop in std::copy...?
03:33 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
03:33 mao42ranma [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:37 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has joined #code
03:40 mao42ranma [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
03:40 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:44
< celticminstrel>
Due to an uninitialized iterator, as it turns out.
03:45
< celticminstrel>
Why does TTF_RenderText not return a valid surface if you try to render an empty string? That's a little annoying.
03:47 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
03:48 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
03:49
<&McMartin>
Oh hey, note this fine object
03:50
<&McMartin>
I should do data archaeology more regularly.
03:54 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
03:54 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
04:01 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
04:01 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Client closed the connection]
04:02
<~Vornicus>
a fine object?
04:02
< celticminstrel>
Data archaeology?
04:05 * McMartin was digging through an old drive, found a bunch of nifty retrocoding utilities he wrote many years ago
04:06
<@rms>
retrocoding?
04:07 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Connection reset by peer]
04:07 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
04:09
<&McMartin>
rms: Targeting really old machines. For me, generally C64 or NES.
04:12 Tsubaki [Phox@Nightstar-e1b60b23.asahi-net.or.jp] has quit [Client closed the connection]
04:13
<@rms>
Ah
04:14 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
04:15 Noah [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Connection reset by peer]
04:15 Derakon[AFK] is now known as Derakon
04:21 mao42ranma [nbarr@490720.DD2C85.27AB8E.610D50] has joined #code
04:22 maoranma [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Connection reset by peer]
04:26 mao42ranma [nbarr@490720.DD2C85.27AB8E.610D50] has quit [Ping timeout: 121 seconds]
04:35 Noah [nbarr@Nightstar-ba3aa550.pools.spcsdns.net] has joined #code
04:38 Derakon is now known as Derakon[AFK]
05:03 iospace is now known as iospacingout
05:09 Derakon[AFK] is now known as Derakon
05:15 Tsubaki [Phox@Nightstar-2961d6d6.asahi-net.or.jp] has joined #code
05:16 * Rhamphoryncus tries to kick-start his brain into understanding line-plane intersection
05:17 Tsubaki [Phox@Nightstar-2961d6d6.asahi-net.or.jp] has quit [Connection reset by peer]
05:19
< Rhamphoryncus>
I have an x,y coordinate and I have a normal vector. I want to find the height at which the x,y would hit the plane perpendicular to the normal vector
05:19 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
05:21 maoranma [nbarr@Nightstar-a092c26c.pools.spcsdns.net] has joined #code
05:24
< Rhamphoryncus>
I'm sure it's not as complicated as it looks. If it was a line and a line in 2d space it'd be trivial, and unless I'm wrong I could do a plane in 3d space with two 2d lines
05:24 Noah [nbarr@Nightstar-ba3aa550.pools.spcsdns.net] has quit [Ping timeout: 121 seconds]
05:31 Tsubaki [Phox@Nightstar-2961d6d6.asahi-net.or.jp] has joined #code
05:42
<&Derakon>
...so your (x, y) coordinate is in fact (x, y, 0), right?
05:43
<&Derakon>
And you want to find an alternate (a, b, c) coordinate that is (x, y, 0) projected onto a plane that intersects the origin and has normal vector (d, e, f)?
05:43
<&Derakon>
Otherwise your problem seems poorly specified.
05:45 Tsubaki [Phox@Nightstar-2961d6d6.asahi-net.or.jp] has quit [Connection reset by peer]
05:46 Tsubaki [Phox@Nightstar-2961d6d6.asahi-net.or.jp] has joined #code
05:55 Tsubaki [Phox@Nightstar-2961d6d6.asahi-net.or.jp] has quit [Connection reset by peer]
06:00
<~Vornicus>
wait wait
06:00
<~Vornicus>
Okay so
06:00
<~Vornicus>
You have a normal vector... but you don't have a distance?
06:00
<~Vornicus>
THen you can't answer the question at all - there's no single plane.
06:01
<~Vornicus>
If you have a normal vector and a point then you can pass a plane through that point.
06:01
<~Vornicus>
If you have a plane and a point, you can project the point onto the plane.
06:06
<~Vornicus>
If you have a plane and all but one dimension of the coordinate, you can find the third
06:06
<~Vornicus>
But you need the distance from the origin along the normal vector in order to have a plane.
06:13 iospacingout is now known as iospacedout
06:26 Derakon is now known as Derakon[AFK]
07:20 Vash [Vash@Nightstar-241cb5d4.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
07:37 Kindamoody is now known as Kindamoody|breakfast
07:40
< Rhamphoryncus>
sorry, didn't look back when I should have
07:40 himi [fow035@D741F1.243F35.CADC30.81D435] has quit [Connection closed]
07:41
< Rhamphoryncus>
err.. "perpendicular to the normal vector" is wrong
07:42
< Rhamphoryncus>
I have a slope and I have an x,y. I want to project the x,y straight up until it hits the slope
07:42
< Rhamphoryncus>
In 2d this means I have the horizontal distance and the angle of a triangle, and I want to find the height
08:12 Kindamoody|breakfast is now known as Kindamoody
08:21 cpux [cpux@Nightstar-c5874a39.dyn.optonline.net] has quit [Client closed the connection]
08:40 Reiver [reiverta@5B433A.F67240.113649.511034] has joined #code
08:50 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [Ping timeout: 121 seconds]
09:04 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
09:15 Attilla [Obsolete@Nightstar-245c4d9c.as43234.net] has joined #code
09:26 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
09:26 mode/#code [+o himi] by ChanServ
09:37 You're now known as TheWatcher
10:02
< Tarinaky>
I thought python accepted the C boolean operators like ! && etc...
10:02
< Tarinaky>
(Even if they're not preferred)
10:02
< Tarinaky>
I'm getting a squiggly line in my IDE when I use ! for not >.>
10:06
< Rhamphoryncus>
nope, just not/and
10:07
< Rhamphoryncus>
It does have the bitwise operators, even if the semantics aren't always the same
10:08
< Rhamphoryncus>
Mostly with negatives or overflow though. Can't think of another example
10:11
< Tarinaky>
Lame. Never been a big fan of 'not' as a keyword.
10:12
< Rhamphoryncus>
It goes with and/or in python
10:12
< Tarinaky>
Yeah, I know.
10:24
<&McMartin>
Also, "not" goes better with "is".
10:39 Tsubaki [Phox@Nightstar-9610f4cb.asahi-net.or.jp] has joined #code
11:12 Tsubaki [Phox@Nightstar-9610f4cb.asahi-net.or.jp] has quit [Client closed the connection]
11:17 RichyB [MyCatVerbs@Nightstar-3b2c2db2.bethere.co.uk] has joined #code
11:21 Attilla [Obsolete@Nightstar-245c4d9c.as43234.net] has quit [Ping timeout: 121 seconds]
11:26 Attilla [Obsolete@Nightstar-245c4d9c.as43234.net] has joined #code
11:38
< Rhamphoryncus>
if 2 <= a < 10 and x not in y and x is not b:
11:40
< Tarinaky>
Either my Laptop's sputnik or something's breaking.
11:40
< Tarinaky>
Which I could really do without :/
11:40
< Tarinaky>
Harddrive light's not on so it must be CPU fan -.-
11:48 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
11:50 Tamber [tamber@furryhelix.co.uk] has joined #code
11:50 mode/#code [+o Tamber] by ChanServ
11:51 Attilla [Obsolete@Nightstar-245c4d9c.as43234.net] has quit [[NS] Quit: ]
11:52
<@TheWatcher>
Ramph: ... that's pretty horrible.
11:52
<@TheWatcher>
+h
11:52
< Rhamphoryncus>
why?
11:53
<&jerith>
I'd add parens, personally.
11:53
<@TheWatcher>
Yeah
11:53
< Rhamphoryncus>
I don't mind that if it has syntax highlighting
11:53
<&jerith>
if (2 <= a < 10) and (x not in y) and (x is not b):
11:53
< Rhamphoryncus>
What I dislike is if a and b or c:
11:53
<&jerith>
The parens just make it a little clearer.
11:54
<&jerith>
Rhamphoryncus: What about "foo = a if bar else b"?
11:55
<&jerith>
I don't really like the ordering, but I do like having a ?: equivalent.
11:55
< Rhamphoryncus>
never liked the conditional expression
11:55
< Rhamphoryncus>
Sometimes desirable but ugly enough that I rarely take advantage of it
11:55
<&jerith>
Yeah.
11:55
<&jerith>
The alternative is three or four lines, though.
11:56
< Rhamphoryncus>
And I note that my current editor highlights "not" just the same as "and", which doesn't read well at all
11:56
<@TheWatcher>
And the whole "if it has syntax highlighting" argument pisses the everliving hell out of me. Code should be as readable through 'less' as through some fancy highlighting editor
11:56
<&McMartin>
Death to rainbow parens
11:57
<@TheWatcher>
Especially given that different editors highlight in different ways.
11:57
<@TheWatcher>
To say nothing of highlighting done in places like github/pastebin/etc being drastically different.
11:57
< Rhamphoryncus>
Eh, syntax highlighting will always be better. That's why it exists
11:57
<&jerith>
Reminds me of a post to the plan9 list in response to a friend suggesting syntax highlighting for acme.
11:57
< Tarinaky>
What's wrong with if a and b or c?
11:57
< Rhamphoryncus>
Most of the benefits are pretty similar regardless of style though
11:57
<@TheWatcher>
If you are relying on highlighting to make your code readable, your code is shit
11:57
<&jerith>
"Text is not a rainbow! Text is text!"
11:58
< Rhamphoryncus>
Tarinaky: and/or are normally boolean operators
11:58
<@TheWatcher>
highlighting should be an aid, not a necessity
11:58
< Tarinaky>
Is it not (a.b)+c ?
11:58 Kindamoody is now known as Kindamoody|out
11:58
< Tarinaky>
Rhamphoryncus: ... so? You can still form compound expressions...
11:58
< Rhamphoryncus>
It is an aid, but that still changes your primary target
11:59
<&jerith>
I find highlighted code easier to read. It doesn't change how I write code, though.
11:59
< Rhamphoryncus>
Just because your program can run on 640x480 doesn't mean it'll work as well as on 1680x1050
12:00
<&jerith>
I also like PEP-8 79-character lines.
12:00
<&jerith>
Even though it's a bit annoying to have to split stuff up.
12:00
< Rhamphoryncus>
I'm pretty fast and loose on that
12:00
< Rhamphoryncus>
Worse since I'm using C++ :P
12:01
< Tarinaky>
Unless your IDE has a mark to show where 79 characters is I don't see how else you can do it.
12:01
< Tarinaky>
Counting characters is silly.
12:01
< Tarinaky>
Or at least, sitting there and counting characters is silly.
12:01
< Rhamphoryncus>
It does
12:01
< Tarinaky>
Yours is better than mine then.
12:02
<&jerith>
My editor runs pep8 and pyflakes and warns me about violations.
12:55 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has quit [Client exited]
13:04 Tamber [tamber@furryhelix.co.uk] has quit [Ping timeout: 121 seconds]
13:10 iospacedout is now known as io|driving
13:11 Tamber [tamber@furryhelix.co.uk] has joined #code
13:11 mode/#code [+o Tamber] by ChanServ
13:37
<@ToxicFrog>
http://www.kogan.com/au/blog/new-internet-explorer-7-tax/
13:43
< gnolam>
Heh.
13:43
< gnolam>
I wonder what happens with IE6?
13:47
<@TheWatcher>
.... That is awesome
13:48 Attilla [Obsolete@Nightstar-245c4d9c.as43234.net] has joined #code
13:49
<@TheWatcher>
Apparently it only targets IE7 specifically. IE6 isn't taxed >.<
13:50
<@ToxicFrog>
People still use IE6?
13:50
<@TheWatcher>
Yes ;.;
13:50
<@ToxicFrog>
...who am I kidding, of course people still use IE6.
14:00
<&jerith>
They probably don't support IE6.
14:01
< Reiver>
Which version is the Browser That Never Dies?
14:01
<&jerith>
IE6.
14:02
<&jerith>
It'll probably die with Windows XP.
14:06
< Reiver>
Pshyeah. Like XP is going to die.
14:06
< Reiver>
FFS, my buisness is only starting to do the upgrade O.o
14:06
< Reiver>
(To IE7, thankfully.)
14:07
< Reiver>
XP is going to be around for a good long while~
14:10 Reiver [reiverta@5B433A.F67240.113649.511034] has quit [Connection reset by peer]
14:20
<@rms>
Why would you thank an upgrade to IE7? That's the version that takes 7 seconds on an 8-core 4Ghtz machine with 32GB of RAM to load a new tab.
14:20
<@rms>
It's always 7 seconds too.
14:20
<@rms>
No matter the machine.
14:32 io|driving is now known as iofficespace
14:44
< iofficespace>
woot
14:45
< iofficespace>
one of my more time intensive tests is now semi-automated!
14:46
<&jerith>
\o/
14:49
< iofficespace>
:P
14:50 maoranma is now known as Noah
14:55
< iofficespace>
instead of running 6 commands 64 times, i can run 1 64 times >_>
14:55
< iofficespace>
(and that's as automated as it'll get)
15:01
< Tarinaky>
Question: What's the best way of describing/explaining concurrency to a nonprogrammer?
15:03
<@ToxicFrog>
Hmm.
15:03
<@ToxicFrog>
Generally I have three prongs.
15:05
<@ToxicFrog>
- basic explanation: without concurrency, a program can only do one thing at a time. If it looks like it's doing multiple things at once, it's actually just switching between them so fast it looks like it's handling them all simultaneously. With concurrency, it's truly simultaneous: one program can be executing more than one part of itself at the same time, each part handling a different task.
15:06
< iofficespace>
this will... make everything so much easier
15:06
<@ToxicFrog>
- real-world example: a web browser. Say it's loading a page and also downloading a file in the background. A non-concurrent browser would load part of the page, then download part of the file, then load another part of the page, etc. A concurrent browser just has part of itself working on the download and another part working on the page load at the same time.
15:08
<@ToxicFrog>
- analogy: you're writing two letters. The not-concurrent-at-all approach is to write one, then write the other. The looks-concurrent-but-isn't approach is to write a few words of one, then a few words of the other - if you could do this fast enough, it would look like you were writing both at once. The actual concurrent approach is to have a pen in each hand and write them both at once - or, perhaps, to tell someone else to write t
15:08
<@ToxicFrog>
he second letter for you while you work on the first one.
15:08
<@ToxicFrog>
This is something that comes up a fair bit (whenever a relative without a technical background asks me what my thesis is on).
15:08
<@ToxicFrog>
Generally I don't need to break out the analogy.
15:10
<@ToxicFrog>
Tarinaky: does that help?
15:14
< Tarinaky>
I thought concurrency was more than just that though.
15:14
< Tarinaky>
That that was just its practical application.
15:27
< RichyB>
Concurrency is multiple tasks executing with no defined ordering between them, or only a partially-defined ordering between them (partial ordering enforced by synchronisation primitives).
15:27
< RichyB>
Parallelism is multiple things happening actually simultaneously.
15:27
< RichyB>
You can have nonparallel concurrent systems based on preemption.
15:27
< Noah>
Saw something about quantum calculation and atomic massaging last night
15:28
< RichyB>
The valence electrons get so tense and angry, it's good to calm them down.
15:28 * gnolam snickers.
15:30
< Noah>
Apparently, if you get molecules to feel good, then ask them to do something, they'll be like "yea sure man" and do it
15:30
< Noah>
I'm certain the scientist was one step away from being a crackpot
15:31
< Tarinaky>
Ahah.
15:32
< Noah>
But he makes like twice what I would in my entirely lifetime in like 30 seconds, so he must be on to something
15:37
< gnolam>
... a scientist? Really?
15:37
< gnolam>
Science is many things. Well paid is not one of them.
15:42
<@ToxicFrog>
RichyB: untrue. Concurrency is specifically more than one computation occurring at the same time.
15:43
<@ToxicFrog>
(there is a distinction - maybe - between "concurrency" and "parallellism". No-one agrees on what it is. I generally take the stance that parallel programming implies some sort of homogeneity and concurrency does not, but this is not a given.)
16:00
< RichyB>
We disagree, I still think you're wrong.
16:00
< RichyB>
Really the solution is to pick yet another set of words so that we can abandon these ones.
16:06 Vash [Vash@Nightstar-241cb5d4.wlfrct.sbcglobal.net] has joined #code
16:06 mode/#code [+o Vash] by ChanServ
16:12 * TheWatcher headdesks
16:12
<@TheWatcher>
Just spent an hour trying to work out why this session code wasn't working, when I had the wrong setting for the secure flag
16:12
<@TheWatcher>
aaargh
16:12 * iofficespace hugs TheWatcher
16:14 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
16:28
<@ToxicFrog>
RichyB: I checked Lin & Snyder and their definition is, in fact, closer to yours.
16:28
<@ToxicFrog>
("concurrent" is logically simultaneous, "parallel" is physically simultaneous.)
16:35
< RichyB>
ToxicFrog, ...thank you.
16:35
< RichyB>
It's kind of startling to come to places like #code and meet people who actually check things and correct themselves.
16:35
< RichyB>
Compared to, y'know, the rest of the internet.
16:36
< Tarinaky>
There aren't enough cat pictures or insinuations about sexuality you mean.
16:40
< RichyB>
No, no, I'm cool with cat pictures.
16:41
< RichyB>
Uninvited insinuations about sexuality or gender identity are generally unwelcome though.
16:43
<@ToxicFrog>
That said, this: "Concurrency is multiple tasks executing with no defined ordering between them, or only a partially-defined ordering between them (partial ordering enforced by synchronisation primitives)." is going to get a blank stare from most laypeople :)
16:45
< Tarinaky>
Actions occur in no, or reduced ordering.
16:45
< Tarinaky>
Which permits them to occur at the same time if the hardware supports this.
16:45
< Tarinaky>
Yes?
16:48
<@ToxicFrog>
Hardware and OS etc, but yes.
16:49
< iofficespace>
MEMBERS OF #CODE
16:49
< iofficespace>
i require your aid, i have a bash script with a command in it that if it fails the rest of the script will be unable to run, how would i go about checking this?
16:49
<@ToxicFrog>
If there's no ordering constraint between A and B, it means they could happen A then B, or B then A, or both at once.
16:50 * iofficespace isn't all that familiar with bash >_>
16:50
<@ToxicFrog>
That said, IME your typical nonprogrammer will respond to that with "ok, but what does that actually mean?" or similar.
16:51
<@ToxicFrog>
It's true that my explanation is more "this is what concurrency is useful for/what a concurrent program looks like" and less "this is what concurrency is as a theoretical construct", but I've had a lot more success with the former than the latter when attempting to explain my research to the layperson.
16:51
<@ToxicFrog>
iofficespace: command || { echo "Oh noes!"; exit 1; }
16:52
<@ToxicFrog>
Alternately, $? is the exit code of the last command you ran, which will (should) be nonzero if it failed.
16:52
< iofficespace>
kk
16:53
< iofficespace>
thanks
16:55
< Tarinaky>
ToxicFrog: You can dig a tunnel working west to east, east to west... or start in both corners and meet in the middle!
16:55
< Tarinaky>
s/corners/ends/
16:57
< iofficespace>
ToxicFrog: it worked :D
16:58
<~Vornicus>
...oh weird
16:58
<~Vornicus>
Yeah, so, this font is decidedly not suitable for programming
16:58
<~Vornicus>
|| looks like a wide single |
16:59
<~Vornicus>
(Eurostile, which for some reason I like as my IRC font)
16:59
<@ToxicFrog>
Oops
16:59
<@ToxicFrog>
iofficespace: I can go into lots of detail on how that works, if you care~
16:59
< iofficespace>
nah
16:59
< iofficespace>
this is just a very dirty script i wrote to help automate some of my testing
17:00
< iofficespace>
doesn't need anything fancy
17:00
< iofficespace>
just needs to exit if dhcpcd fails
17:02
<@ToxicFrog>
Righto
17:07
< Tarinaky>
Does anyone have any advice for making vector graphics with limited artistic/holding-a-mouse-steady skills?
17:08
< Tarinaky>
Because I can't hold a mouse steady and have a terrible sense of proportion.
17:08
<@TheWatcher>
"Find an artist"~
17:08
< Tarinaky>
Cheaper?
17:09
< iofficespace>
(it is sort of hard to run a ping test if dhcpcd isn't working :P)
17:13
<@rms>
L2static IPs
17:13
<@rms>
Also "setopt -e" or something
17:16
<@ToxicFrog>
Tarinaky: postscript~
17:16
< gnolam>
Tarinaky: find a reference. Trace it.
17:17
<@rms>
Yeah, adding "set -e" to the top of a bash script (after the shebang) will make it stop executing if any line errors out.
17:17
<@TheWatcher>
Tarinaky: "Practice". Also, "Lots".
17:18
< Tarinaky>
I've never been able to find anything explaining how to use postscript that wasn't Eldritch :/
17:19
< gnolam>
What kind of stuff are you looking to draw?
17:21
< Tarinaky>
http://edndoc.esri.com/arcobjects/9.2/NET/bitmaps/daa82b94-5077-482b-8a0b-9cf810 869c1c3.png
17:21
<@ToxicFrog>
Tarinaky: it's not as hard as it looks, really~
17:21
< gnolam>
... yeah, that stuff you don't need steady hands for.
17:21
< Tarinaky>
http://www.developerfusion.com/pix/articleimages/may07/design1.jpg
17:22
< gnolam>
Just download Inkscape.
17:22
<@ToxicFrog>
And looking at that image, doing it in PS probably wouldn't be very hard
17:22
< gnolam>
Start with rectangles.
17:22
<@ToxicFrog>
That said
17:22
< Tarinaky>
I used Inkscape. It looks terrible because I am not an artist :/
17:22
<@ToxicFrog>
You could also do it easily with the mouse in any vector graphics program (inkskape, xfig, etc)
17:22
< Tarinaky>
Not symetrical etc...
17:22
<@ToxicFrog>
Er
17:22
< gnolam>
Looking at the first one:
17:22
< gnolam>
Rectangle with text inside.
17:22
<@ToxicFrog>
Go point-to-point, use grid snap and curve tools
17:22
<@ToxicFrog>
Don't draw it freehand
17:22
< gnolam>
Square rotated 45 degrees. Lines added.
17:23
< gnolam>
And yes, as TF says, you don't have to do this freehand.
17:23
< Tarinaky>
How do you do that for beziers?
17:23
< gnolam>
You have a full range of alignment/move only one thing/move only in one direction tools.
17:23
< Tarinaky>
The symbol for Airborne needs beziers >.<
17:23
< gnolam>
Which one is that?
17:23
<@ToxicFrog>
Eg, if you're doing this in xfig, you have a grid to use as a reference, you can manually enter sizes, proportions, and coordinates...
17:23
< Tarinaky>
Not shown on those images.
17:23
< Tarinaky>
Those're just examples of APP-6A symbols.
17:24
< gnolam>
And again: trace
17:24
<@ToxicFrog>
That said, I'm surprised that there aren't already PDF/PS/SVG versions of these.
17:24
< gnolam>
Just drag your reference image into inkscape and trace over it.
17:24
< Tarinaky>
Airborne http://upload.wikimedia.org/wikipedia/commons/b/b4/APP-6a_Airborne.png
17:24
< gnolam>
Draw a line. Add a vertex (automatically pops up in the middle).
17:25
< Tarinaky>
Well, the problem is I need to composite them in-engine.
17:25
< Tarinaky>
So a space containing a Marine Transport -and- a Colony Transport has the symbols for both...
17:25
< gnolam>
Make into curves.
17:25
< Tarinaky>
Or hostile ships have their owner's flags on them etc...
17:26
< gnolam>
(Alternatively: add two more vertices, select them and move them to those curves' apices, then make into curves with selected vertices as smooth and symmetrical)
17:27
< Tarinaky>
How do I get them lined up so they're equidistantly placed in the exported png?
17:27
< Tarinaky>
>.<
17:27
< gnolam>
The different symbols?
17:27
< Tarinaky>
The vertexes of one symbol.
17:28
< Tarinaky>
So I have a bunch of colorkey PNGs I can blit together.
17:28
< gnolam>
When adding a vertex, it's automatically added smack in the middle of the selected segment.
17:29
< gnolam>
If, for some reason, this should not be good enough, enable a grid and snapping to it.
17:29
< gnolam>
And if /this/ is not enough, the Align and Distribute tool can do some alignment and distribution of nodes as well.
17:30
< Tarinaky>
Yeah, but the exported image is just the symbol.
17:30
< Tarinaky>
No white-space.
17:30
< gnolam>
No white-space?
17:30
< Tarinaky>
Inkscape's export doesn't export any white space.
17:30
< gnolam>
Define "white space".
17:30
< Tarinaky>
Space that has nothing in it.
17:31
< gnolam>
It exports whatever you tell it to.
17:31
< Tarinaky>
If I want a 64x64 white png with a line in the bottom of it.
17:31 ShellNinja [abudhabi@D553D1.96DB05.BB60F8.B9C090] has joined #code
17:31
< gnolam>
"Drawing" and "Selection" export a minimal bounding box. But see those x0,y0,x1,y1,width,height values? You may change those at will.
17:32
< gnolam>
/Or/, you can make the page the size you want and export the page.
17:32
< Tarinaky>
I see.
17:32
< Tarinaky>
I shall have to fail harder next time >.<
17:32
< gnolam>
Which, for this kind of stuff, is really what you want.
17:39
<~Vornicus>
(hooray, beziers)
17:39 * Vornicus was scrolled up too.
17:42
< celticminstrel>
[Jun 14@11:58:55am] Vornicus: || looks like a wide single |
17:42
< celticminstrel>
That would be a spacing (kerning?) problem, right? A font like that doesn't sound particularly suited for much at all...
18:00 Tarinaky is now known as Atreus
18:01 ShellNinja is now known as Number3
18:17
< celticminstrel>
...what. Xcode's function menu doesn't recognize classes with templated base classes.
18:18
< celticminstrel>
(ie where the base class has template arguments)
18:19
< celticminstrel>
Altogether its parsing for the function menu is seriously lacking.
18:19
< celticminstrel>
Can't even recognize TODO comments or #pragma mark inside a function.
18:20
< celticminstrel>
Or enums or structs or several other things.
18:27
<~Vornicus>
celmin: I actually picked it because the letters are very distinct.
18:28
<~Vornicus>
I find a lot of fonts make rn look like m, this one doesn't.
18:40
< celticminstrel>
Ah.
18:48 * iofficespace is board of testing boreds
18:50
<~Vornicus>
but yeah, using it for programming? bad idea. { and ( are too similar, || does as described.
18:50
<~Vornicus>
This is the only channel where it actually matters though
18:56 Kindamoody|out is now known as Kindamoody
19:08 Kindamoody is now known as Kindamoody[zZz]
19:28
< celticminstrel>
I'd consider trying to fix these issues in the xclangspec, but I can't find where I'd have to put the modified file...
19:28
< celticminstrel>
Everything I find is for 4.2 or 3.
19:39
< celticminstrel>
The rules don't recognize virtual base classes, either...
19:39
< celticminstrel>
Nor C++11 alias declarations.
20:08
< celticminstrel>
I sort of wish templated typedefs were supported. Not that it matters, since aliases mean the same thing and are easier to understand.
20:19 * TheWatcher eyes himself
20:19
<@TheWatcher>
From yesterday: 00:34:33 <@TheWatcher> I could have /sworn/ I started writing an rss ticker at some point
20:20
<@TheWatcher>
I have just found it, although it's not an rss ticker, it actually uses a plugin system to collect the data it shows in the ticker, so it /could/ do it
20:21
<@TheWatcher>
Slight wrinkle being that the latest timestamp is from the first of January... 2000.
20:22
< gnolam>
... damn you, Pi
20:22
<@TheWatcher>
And it was written for the Amiga.
20:22
< gnolam>
(<Pi> I hereby decree that the correct pronunciation of the acronym "RSS" shall be "arse")
20:22
< gnolam>
Guess where my mind went with "RSS ticker"?~
20:23
<@TheWatcher>
>.<
20:24
<&McMartin>
I'm not sure what it even *means* to be ass-hearted.
20:24
<&McMartin>
TW: How late was the Amiga a viable platform?
20:27
<@TheWatcher>
Probably around '97/98, really.
20:28
<@Tamber>
gnolam, "RSS feed"
20:28
<@TheWatcher>
I was still using one, and developing for it, until about 2002 - but that was mainly out of stupidity.
20:34
<@TheWatcher>
Although, considering this is all over 12 year old code, I'm actually not wincing anything like as much as I expected to at it.
22:04 iofficespace is now known as io|driving
22:27 Vash [Vash@Nightstar-241cb5d4.wlfrct.sbcglobal.net] has quit [[NS] Quit: I lovecraft Vorn!]
23:12 Rhamphoryncus [rhamph@Nightstar-5697f7e2.abhsia.telus.net] has joined #code
23:41
<&McMartin>
TheWatcher: Yeah, Ophis was like that for me too
23:41
<&McMartin>
The worst of it was actually due to things that Python lacke at the time.
23:42
< Rhamphoryncus>
Hrm. Can't I just split a normal vector into x/z and y/z to get two 2d slopes
23:47 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
23:48 io|driving is now known as iospace
23:49
< celticminstrel>
That sounds vaguely like partial differentiation.
23:51
< Rhamphoryncus>
Maybe. I'm still convinced this is easy to do
23:53
< Rhamphoryncus>
I have a triangular grid where I store the height for the face (barycenter) of each triangle. To calculate the vertices (which are shared between triangles) I was just averaging the adjacent faces, but I want to improve on that by giving each triangle its own slope and thus a desired vertex height before doing the averaging
23:55
< celticminstrel>
Triangular? I thought you were implying you were in 3D?
23:56
< Rhamphoryncus>
The grid is in 2d map tiles. This is to find the height of them in 3d
23:56
< Rhamphoryncus>
(Projecting onto a globe is later on)
23:58
< Rhamphoryncus>
IOW, I'm taking a mesh and applying a heightmap
--- Log closed Fri Jun 15 00:00:15 2012
code logs -> 2012 -> Thu, 14 Jun 2012< code.20120613.log - code.20120615.log >

[ Latest log file ]