code logs -> 2013 -> Wed, 04 Sep 2013< code.20130903.log - code.20130905.log >
--- Log opened Wed Sep 04 00:00:14 2013
00:02
< Reiv>
On the basis it would mean he just cost his employer money, I'm not sure TF is in a position to be in agreement~
00:13
<&McMartin>
http://www.theregister.co.uk/2013/08/17/google_outage/
00:13
<&McMartin>
Google drops off the net for two minutes, global internet traffic drops to 60% normal
00:29
< Reiv>
... Google can't be 40% of the internets traffic, surely.
00:30
<&McMartin>
(a) Google includes YouTube, so I honestly dunno
00:30
<&McMartin>
(b) Maybe nobody can find anything without doing a web search first
00:30
< Reiv>
snrk
00:31
<@Namegduf>
Maybe everyone going to "is it down for everyone or just me" websites reduces their typical bandwidth usage.
00:31
<@Namegduf>
Or trying to go, but they can't remember how
00:31
<@Namegduf>
And Chrome's autocomplete isn't working right either oh god and so on
00:38
<@Azash>
Meanwhile in the cringe department http://pastebin.com/4LpybrVN
00:55 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
00:55 mode/#code [+o Orthia] by ChanServ
00:57
<@Namegduf>
Thankfully, root processes can't do that any more than regular processes can.
00:58
<@Namegduf>
Well, I'm actually not sure if Linux will work without virtual memory, and without that it might do funky stuff.
00:58
<&McMartin>
virtual memory or swap
00:59 Derakon is now known as Derakon[AFK]
01:01
<@Namegduf>
McMartin: Virtual memory.
01:02 You're now known as TheWatcher[T-2]
01:02
<@Namegduf>
McMartin: You can't iterate over "the system memory" and print everything just by having a root process which keeps incrementing a pointer if you have virtual memory.
01:03
<@Namegduf>
You may well not be able to do it even without, but virtual memory makes it a definite no.
01:04 You're now known as TheWatcher[zZzZ]
01:11
<&ToxicFrog>
/dev/mem >.>
01:13
<@Namegduf>
"just by" was important there. As root there is going to be a way to do it- you can load a kernel module if you have to.
01:13
<@Namegduf>
But there's no way the code in that pastebin is doing it.
01:13 ktemkin[snoozle] is now known as ktemkin
01:28
<@Tarinaky>
Python is giving me a confusing error message.
01:28
<@Tarinaky>
if i == []:
01:28
<@Tarinaky>
IndexError: list index out of range
01:29
<@Tarinaky>
Oh wait, hang on.
01:30
<@Tarinaky>
I did a silly.
01:32
<@Tarinaky>
Okay, my frankenscript is lurching forward again.
01:38 Turaiel[Offline] is now known as Turaiel
01:41 Derakon[AFK] is now known as Derakon
01:56 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
01:57 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
01:59 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
02:00 Derakon_ is now known as Derakon
02:01 mode/#code [+ao Derakon Derakon] by ChanServ
02:07 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
02:11 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
02:13
< RichyB>
Namegduf, if you want to read off the contents of physical memory and you have root, you should have a device node called /dev/mem which gives you access to the kernel's real (not your process's virtual) address space.
02:14
<@Namegduf>
RichyB: Yes, that has nothing to do with what I said.
02:14
<@Namegduf>
And indicates that you, too, did not actually read what I was replying to.
02:14
< RichyB>
I read <Namegduf> McMartin: You can't iterate over "the system memory" and print everything just by having a root process which keeps incrementing a pointer if you have virtual memory.
02:14
<@Namegduf>
Yes. Is the part "just by" invisible to you?
02:15
< RichyB>
and responded with "in case you did want to do that, use this /dev node over here".
02:15
<@Namegduf>
Okay, but what I was replying to originally was someone saying they'd done so by accident.
02:15
<@Namegduf>
By incrementing a pointer.
02:16
< RichyB>
Ah, I missed the pastebin link.
02:16
< RichyB>
Oh, that shouldn't do anything other than segfault the process.
02:16
<@Namegduf>
Yeah.
02:17
< RichyB>
It doesn't even write anything to memory anywhere.
02:18 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Ping timeout: 121 seconds]
02:18
<@Azash>
I don't get it either, but it is supposedly the only thing that changed prior to sshd breaking
02:19 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
02:22 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
02:23 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
02:25 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Connection reset by peer]
02:25 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
02:29 Turaiel is now known as Turaiel[Offline]
02:30 Harlow [Harlow@Nightstar-2dbe3d64.il.comcast.net] has joined #code
02:41
<@Tarinaky>
This amuses me far too much: http://pastebin.com/e56u1vtA
02:42
<@Tarinaky>
"I motion that we eat #3. All in favour say 'Aye'."
02:47
<@Tarinaky>
I suppose the creature that decended from a cat smuggled aboard wouldn't count as 'Known Population'.
02:57
< Reiv>
What is that from
02:58
<@Tarinaky>
Script I wrote this evening using material from Traveller.
02:58
<@Tarinaky>
Hence the inspiring name "Test System 4 II"
02:59
< Reiv>
That's pretty good.
03:00
<@Tarinaky>
Mongoose Traveller Book 3 has rules for randomly rolling up solar system bodies. I then recursed and generated UWP for each.
03:00
< Reiv>
Details like that immediately give quite a nice bit of flavor, actually: It's a small team on a ship or a station. They do whatever people agree to do, with no dedicated hierachy.
03:00
<@Tarinaky>
I assure you, the python script is very nasty and horrible.
03:00
< Reiv>
One wonders who they are and why they're there.
03:01
<@Tarinaky>
I'm not happy with the section that generates Temperature ranges though.
03:01
<@Tarinaky>
Particularly for low/no atmosphere worlds.
03:01
< Reiv>
Unhappy with how Traveller does it, or how your code does?
03:01
<@Tarinaky>
But I don't think I'll be able to do anything sensible without making up rules to randomly generate stellar classes.
03:01
<@Tarinaky>
Traveller just gives bounds.
03:02
<@Tarinaky>
And the table in Traveller has a massive handwave for Atmosphere 0/Atmosphere 1 worlds >.<
03:04
<@Tarinaky>
But like I said. Doing anything sensible for atmos 1/0 worlds requires generating stellar class/magnitude and range and doing /math/.
03:09
< Reiv>
Naaah
03:09
< Derakon_>
Heavens forfend that a computer program contain math~
03:09
<&McMartin>
le gasp
03:09
<@Tarinaky>
Derakon_: I'm more worried about the programmer having to do math.
03:09
< Reiv>
Atmos 0 worlds is easy enough; simply declare the lower bound has to be Really Low. The higher bound then gives clues to how close it is.
03:10
< Reiv>
(I vaugely recall Mercury is scorching on the front, and rather chilly on the back.)
03:10
<@Tarinaky>
At 3 am it is far too an uncivilised hour for anything resembling arithmetic.
03:10
<@Tarinaky>
http://pastebin.com/NcEUSZ9j << More complete program output.
03:12 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Connection reset by peer]
03:12
<@Tarinaky>
At the moment I have it hard-coded not to allow any populations on planets where the temperature exceeds the melting point of steel.
03:12 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has joined #code
03:12
<&McMartin>
Weaklings.
03:13
<&McMartin>
People who need more than 4 hours of sleep a night: Me
03:13 Karono [Karono@9C034E.4BE65E.E00AF8.FDA077] has quit [Connection reset by peer]
03:23 ktemkin is now known as ktemkin[zz]
03:42 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:16 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: No Ping reply in 180 seconds.]
04:21 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
04:24 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: No Ping reply in 180 seconds.]
04:25 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
04:31 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
04:31 mode/#code [+ao Derakon Derakon] by ChanServ
04:34 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
04:41 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:41 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:54 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
04:57 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
05:11 Derakon_ is now known as Derakon[AFK]
05:13 Kindamoody[zZz] is now known as Kindamoody
05:17 Derakon_ [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
05:20 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Ping timeout: 121 seconds]
05:26
< Syka>
Tarinaky: imagine a civilised nomad society
05:27
< Syka>
where one face of the planet is steel temperature, but the other is quite nice
05:27
< Syka>
so you have a society who have built cities on wheels, and just stay in the black spot :D
05:31
<@Alek>
and use forays into the terminator for technology.
05:31
<@Alek>
but it'd have to be a relatively slow, or stable, terminator to allow a species to evolve, I think.
05:32
<@Alek>
unless they themselves can withstand the higher temperatures.
05:32
< Syka>
they could be non-native
05:32
<@Alek>
or that.
05:33
<@Alek>
heh. a race of heatsinks that eventually settles in the darkside and becomes civilized.
05:33
< Syka>
i'd imagine the world would be very flat
05:33
<@Alek>
but still has to go to the hotside once in a while, for whatever reasons.
05:33
< Syka>
since itd be constantly melting :p
05:34
<@Alek>
ooh, I dunno. maybe everything got melted down to an even sheen, maybe there's a convective action keeping things bubbling and freezing, for craggy outcrops.
05:52 celticminstrel [celticminst@Nightstar-ae361035.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
06:07 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
06:11 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
06:23 ErikMesoy|sleep is now known as ErikMesoy
06:48 Harlow is now known as mac
06:48 mac is now known as harlow
06:53 Karono [Karono@Nightstar-13c26ed9.optusnet.com.au] has joined #code
07:20
< ErikMesoy>
I have recently taken a certification exam from the International Software Testing Qualifications Board, so that I can become a more certified tester.
07:20
< ErikMesoy>
I would like to report that the ISTQB branch in Norway at least is fucking shit.
07:21
< ErikMesoy>
Before I even got to the test, I had to sign and agree to exam regulations, in which I corrected multiple spelling and grammar mistakes before signing. ("I promise not to say others about the contents of this test", etc.)
07:22
< Syka>
>certified tester
07:22
< Syka>
lol what
07:22
< ErikMesoy>
My boss suggested it.
07:22
< Syka>
is that certified tester in like
07:22
< Syka>
the same way that i'm a trained project manager?
07:23
< ErikMesoy>
It means certified by this lot: http://en.wikipedia.org/wiki/International_Software_Testing_Qualifications_Board
07:24
< ErikMesoy>
Anyway, I think it's a bad sign when a company asks you to sign a contract with multiple errors, even worse when it's a testing-related company that's supposed to teach people about noticing defects.
07:24
< ErikMesoy>
(Maybe the module on fixing defects has been outsourced? :P)
07:24
< Syka>
lols.
07:24
< Syka>
ok shops time, because I am almost out of programming fuel (chocolate)
07:25
< ErikMesoy>
Then it got worse, because the test itself was all sorts of "does a formal review have an organizational preparation phase before the individual preparation phase" questions which had less to do with testing and more to do with repeating the ISTQB's exact mode of operation.
07:25
< Syka>
thats like the MS exams
07:25
< Syka>
if they say 'how would you solve this'
07:25
< ErikMesoy>
Then, when I'd finished trying to recall this sort of bureaucratic minutiae, the invigilator repeatedly violated the test procedures set out in the exam regulations.
07:25
< Syka>
you pick the answer with the most MS proprietary shit
07:26
<~Vornicus>
ErikMesoy: ...fun
07:27
< ErikMesoy>
For DF values of fun?
07:29
<~Vornicus>
Apparently
07:51 harlow [Harlow@Nightstar-2dbe3d64.il.comcast.net] has quit [[NS] Quit: Leaving]
07:53
<@froztbyte>
ErikMesoy: that entire set of things you mention sounds like cringe
07:53
<@froztbyte>
I'm surprised you're still alive
07:54
<@froztbyte>
(and haven't self-immolated)
08:02
< ErikMesoy>
It's Norway. Too cold for self-immolation.
08:03
< ErikMesoy>
I could jump into a frozen lake?
08:30
< [R]>
DF?
08:30
<&jerith>
Dwarf Fortress.
08:31
<&jerith>
Which I haven't played in far too long.
08:52 Karono [Karono@Nightstar-13c26ed9.optusnet.com.au] has quit [Client closed the connection]
09:30 Kindamoody is now known as Kindamoody|out
09:43 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code
10:06 You're now known as TheWatcher
10:12 Karono [Karono@Nightstar-13c26ed9.optusnet.com.au] has joined #code
10:30 Karono [Karono@Nightstar-13c26ed9.optusnet.com.au] has quit [Connection reset by peer]
10:30 Karono [Karono@Nightstar-13c26ed9.optusnet.com.au] has joined #code
10:36 Karono [Karono@Nightstar-13c26ed9.optusnet.com.au] has quit [Client closed the connection]
10:47 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [[NS] Quit: Leaving]
11:02 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
11:35 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
11:53 * TheWatcher eyes this, wtfs
11:54
<@TheWatcher>
without an onsubmit="" this form works fine
11:54
<@TheWatcher>
with one, if I do onsubmit="return true;" the form submits, but no data is sent, wtf
12:50
< Xon>
TheWatcher, javscript and DOM is "fun" isn't it
12:57
< RichyB>
IMHO Javascript is relatively easy.
12:57
< RichyB>
There are loads of browser bugs but, hey, you have a mostly-Turing-complete programming language right there to write the workarounds that you'll need for 'em.
12:58
< RichyB>
It is coping with browser rendering bugs that I find acutely painful.
12:58
<@Tarinaky>
Syka: Too Space-Opera for my tastes.
13:04
< Syka>
phantom of the space opera
13:11
< RichyB>
What's too space-opera?
13:11
< RichyB>
I'm of the opinion that few things are space-opera enough.
13:11
<@Tarinaky>
< Syka> so you have a society who have built cities on wheels, and just stay in the black spot :D
13:11
< RichyB>
What do you mean by "the black spot"?
13:12
<@Tarinaky>
Where the temperature is below the melting point of steel.
13:13
< RichyB>
Ah, so they live on an ultra-hot world and they migrate continuously?
13:14
< RichyB>
It might actually be easier to assume that there is no day-night cycle. If you live on a world that's tidally locked to its sun then the day/night line never moves and you can just live on the appropriate side of it.
13:15
<@Tarinaky>
Tidal lock isn't much better in terms of long-term habitability.
13:15 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has quit [Ping timeout: 121 seconds]
13:16
< RichyB>
That seems counter-intuitive to me. If nothing else, tidal lock should get you a (possibly narrow) band of known-good temperature at at least one point.
13:17
<@Tarinaky>
What about the Earthquakes?
13:18
< RichyB>
I plead ignorance and I'm skimming http://www.astrobio.net/exclusive/4386/tidal-locking-could-render-habitable-plan ets-inhospitable now.
13:18 celticminstrel [celticminst@Nightstar-ae361035.dsl.bell.ca] has joined #code
13:18 mode/#code [+o celticminstrel] by ChanServ
13:18 Orthia [orthianz@3CF3A5.E1CD01.B089B9.1E14D1] has joined #code
13:18 mode/#code [+o Orthia] by ChanServ
13:19
< RichyB>
Okay, so you get runaway positive-feedback effects all over the place. Never mind.
13:20
<@Tarinaky>
It's probably better than the alternative. But I wouldn't build a city there.
13:22
<@Tarinaky>
That article seems to discuss the effects of tidal lock on weather.
13:23
<@Tarinaky>
I'm mostly thinking of planets with no/trace atmosphere.
13:42
< Attilla>
you might be able to live on the rim or something
13:42
< Attilla>
barely
13:43
< Attilla>
(that is the point where it transitions between eternal light and eternal dark
13:43
<&ToxicFrog>
RichyB: javascript, in and of itself, is not that bad. The issue is not so much broswer "bugs" as that every browser has a subtly (but mutually incompatible with everything else) idea of the semantics of JS and what the DOM looks like.
13:44
<&ToxicFrog>
Before you can even get to the point where you care about rendering bugs, you need to worry about that.
13:47
< RichyB>
I disagree with you about that. The ECMAscript standard is pretty tight and browser interpretations of it are closer to completely uniform than any other programming language that I've ever seen.
13:48
<&ToxicFrog>
This is more the case now than it used to be, true.
13:48
<&ToxicFrog>
The DOM is still fucked, though, or was two years ago when I was last doing any serious javascript hacking.
13:48
< RichyB>
The only notable differences in the semantics of javascript implementations that I've ever seen are: 1. (old versions of?) IE would parse [1,] as [1,undefined] where other browsers (and the spec, I think) parse it as [1].
13:49
<@Tarinaky>
Plus you also have to keep in mind /why/ you'd settle on an inhospitable planet.
13:49
<@Tarinaky>
Cities aren't just placed down haphazardly where there's space. There has to be resources of value.
13:50
< RichyB>
and: 2. the order in which keys are iterated in a { for (key in obj) { ... } } loop is formally not-defined, but for a number of years, the commonly-deployed javascript interpreters would all iterate them in the same order that they were added to `obj`.
13:50
< RichyB>
That's not so much an infelicity of JS 'terps as it is some people thinking a coincidence that they'd gotten used to was part of the spec when it really wasn't.
13:52
< RichyB>
IIRC if you dig through the right blog archives from around the time of Chrome's introduction, you'll find some historical whining because it was the first major browser to switch key-iteration from insertion-order to hash-order, and some peoples' buggy-assed code broke.
19:30 Kindamoody|out is now known as Kindamoody
19:42
< Syka>
ToxicFrog: imo, a language where every intepreter is subtly shit is a fault of the language :P
19:43
< Syka>
because it means that it wasn't correctly standardised, and didn't have enough 'expected conditions'
19:43
<&ToxicFrog>
Syka: it's less the 'terp and more the language<->browser API
19:43
<&ToxicFrog>
Which is totally standardized
19:43
<&ToxicFrog>
Everyone just ignores it
19:51
< AnnoDomini>
SDL1. From within an event-loop, can you demand further input? Like, say, I detect that the user pressed O, and want to demand further input, like an arrow key.
19:52
< AnnoDomini>
The way it's set up seems to be like the answer is 'no' but I'm not sure.
19:56
< AnnoDomini>
Using the standard input libraries, this was as simple as getchar() again, but that might not fly here.
19:58
<&McMartin>
AnnoDomini: Correct, no
19:58
<&McMartin>
You need to shift the app state into "start expecting arrow keys"
19:59
<&McMartin>
One easy way to do this is to have a bunch of KeyProcessor subclasses (KeyProcessor is a class you define) and direct the SDL event to the 'currently active' one, then change which one's currently active as one proceeds.
19:59
<&McMartin>
In C, one instead has an int for "which one" and does a switch statement on that state before doing a switch on what key it was
20:01
< AnnoDomini>
Yeah, that's what I was setting up as we speak.
20:01
< AnnoDomini>
Thank you.
20:02
<&McMartin>
I have, floating around in hardcopy, a moderately insane feat of preprocessor macros that define a pretty solid general state machine language in C. I should actually get those transcribed.
20:02
<&McMartin>
(But if your UI is such that you need this, You're Doing It Wrong >_>)
20:03
< AnnoDomini>
I don't think I need to make this game Turing Complete, no.
20:06 Kindamoody is now known as Kindamoody[zZz]
21:16
<&McMartin>
It would still only be, er, regex complete~
21:38 xybre [xybre@2B12AA.26C322.29F919.944077] has joined #code
21:39
< xybre>
btw that "Depixelizing Pixel Art" algorithm is awesome
21:44 Ogredude [quassel@Nightstar-749a261c.projectzenonline.com] has joined #code
22:29 ErikMesoy is now known as ErikMesoy|sleep
22:48
<@froztbyte>
http://networkengineering.stackexchange.com/questions/3086/ipv4-ipv6-co-existean ce --- awwwww yeaaaaaaaah
22:49
<@froztbyte>
the cluetrain could hit that person in the face and they might still not notice
22:53
<@froztbyte>
the sad part is that none of the comments say "You should step away from the computer and go read a book"
22:54
<@Tamber>
"Ah, say no more. I too have had students."
22:55
<@froztbyte>
hur hur
22:57
<@Tarinaky>
froztbyte: There aren't that many good books on IPv6 engineering are there?
22:57
<@Tarinaky>
Which is kindof what you'd need if you were to tell someone to go read a book >.>
22:58
<@froztbyte>
Tarinaky: that's the same kind of pointless observation
22:58
<@froztbyte>
this person /does not understand what these things do/, yet wants to hop on the "security" bandwagon
22:58
<@froztbyte>
also, I didn't mean "reference book", I mean "phone directory or something"
22:58
<@TheWatcher>
Actually sounds like one of the MSc students I had to deal with
22:58
<@froztbyte>
TheWatcher: :x
22:58
<@Namegduf>
Spelling errors are a bad sign.
22:59
<@Tarinaky>
I have to admit, I read the page quickly.
23:00
< AnnoDomini>
The spelling/grammatical/stylistical errors and the username make this luser sound like some sort of third worlder.
23:01
<@TheWatcher>
Indian, betcha.
23:01
<@TheWatcher>
Oh, no, Sri Lanka
23:01
<@TheWatcher>
Close enough for government work
23:02
< AnnoDomini>
Haha.
23:02
<@froztbyte>
for the record
23:02
<@froztbyte>
and to make you all utterly sad
23:02
<@froztbyte>
telcos are full of this kind of person
23:02
<@froztbyte>
and I mean /full/
23:02
<@froztbyte>
(I've dealt with 7 telcos, so it's a pretty decent sample set)
23:04
<@Tarinaky>
http://www.dellsystem.me/posts/dont-do-drugs-kids/
23:04
<@froztbyte>
I believe I know what that link says
23:05
<@froztbyte>
"don't do drugs. don't buy dell."
23:05
<@Tarinaky>
Actually the title is: "How not to check the validity of an email address"
23:05
<@froztbyte>
just a guess ;)
23:05
<@froztbyte>
the best way to test an email address is to send mail to it
23:06
<@froztbyte>
because the entire construction of it is insane
23:06
<@TheWatcher>
....
23:06
<@TheWatcher>
asdfghjkl;
23:07
<@TheWatcher>
Who, who comes up with something like that?!
23:08
<@Namegduf>
"On the other hand, if you're working on a product called Hot4Learning, you probably hate your job and need to consume a staggering amount of drugs in order to keep coming to work. This is what your drug-addled brain might come up with"
23:08
<@Tarinaky>
Or, you know... People who either don't know any better, or don't care?
23:09
<@Namegduf>
"UPDATE: Yes, the above code does involve sending all 70,000+ McGill email addresses to the client upon each page load. The source code of the page was over 2.5MB in size. As in, 2.5MB of pure text."
23:09
<@Tarinaky>
See also managers who refuse to allow you to write unit tests/documentation and judge your entire professional value in terms of how many internal bug reports you can close in a day.
23:09
<@Namegduf>
If you don't care, then the words "fired" ought to be in your near future.
23:09
<@Namegduf>
2.5MB is quite a lot.
23:10
<@froztbyte>
if people don't know any better, they should not just blindly bang stuff out
23:10
<@Tarinaky>
(Complete with perverse incentive for all patches to include bugs to be Reported and later closed by you with minimal effort)
23:10
<@Tamber>
s/quite/a hell of/
23:10
<@froztbyte>
at least do /some/ reading
23:10
<@froztbyte>
that whole managerial/performance thing translates to "get a better job"
23:11
<&McMartin>
The economy isn't hot everywhere
23:11
<@Tarinaky>
"Sure, let me just strap on my job helmet and climb into my job cannon and fire myself into the magical land of Job where jobs grow on jobbies..." -- Reddit.
23:11
< AnnoDomini>
froztbyte: Maybe this IS the better job?
23:11
< AnnoDomini>
I mean, if the alternative is digging ditches?
23:12
<@froztbyte>
AnnoDomini: I'd dig ditches instead of having to deal with utter imbiciles having a right to tell me what to do
23:12
<@froztbyte>
(and have)
23:12
<@froztbyte>
happiness > *
23:12
< AnnoDomini>
Having dug ditches and dealt with morons, I'll go with morons. <_<
23:13
< AnnoDomini>
They are lighter on the backbone.
23:13
<@froztbyte>
my last couple of months at my previous job was a stockholm syndrome variation of sorts, because I kept believing I could carve out a niche
23:13
<@froztbyte>
after giving up on that, my life got better
23:13
<@Tamber>
Not a niche you were carving, but a coffin?
23:13
<@froztbyte>
an empty husk
23:13
<@froztbyte>
solidified hate
23:15
<@Tarinaky>
I have a psychological aversion to hard work.
23:15
<@Tarinaky>
I'd take the morons.
23:15
<@Namegduf>
This is one of those "Would you RATHER be shot in the stomach OR have your arm cut off" type of questions.
23:16
<@Tarinaky>
I wasn't the one who posed it.
23:16
<@Tarinaky>
But I'd contend it's more like "Be shot in the stomach in a hospital" vs "Have your arm cut off and cauterised"
23:16
<@Namegduf>
No, you weren't.
23:17
<@Namegduf>
Okay that was not an invitation to answer that question.
23:17
<@Namegduf>
It was just a commentary on the dubious value of hypothetical "if you had a choice between two different forms of being fucked, generically..."
23:17
<@Tarinaky>
You might as well try to enjoy the morphine.
23:19
<@Tarinaky>
Namegduf: There's an important distinction though. In this case we're being paid a salary to be fucked.
23:19 * AnnoDomini does not mind hard work.
23:19 * Tarinaky does.
23:19
<@Namegduf>
Don't they have ditch digging machines now anyway?
23:20
< AnnoDomini>
It's the tedium that most gets to me. And, well, the occassional back pain.
23:20
< AnnoDomini>
Namegduf: Do you even know how much it costs to rent a digging machine and operator per hour?
23:20
<@froztbyte>
an aversion to hard work is an ill position to have in life
23:20
<@froztbyte>
(and why do people almost always assume hard work == physical labour?)
23:20
< AnnoDomini>
Better to hire a dozen third/second world immigrants to do it on minimum wage.
23:20
<@Namegduf>
froztbyte: Well, in this case, because it's what's being discussed.
23:21
<@Tarinaky>
froztbyte: It's the 'hard' part.
23:21
< Syka>
<@froztbyte> my last couple of months at my previous job was a stockholm syndrome variation of sorts, because I kept believing I could carve out a niche
23:21
< Syka>
^ my last job in a nutshell
23:21
<@Namegduf>
froztbyte: And hard work was merely a slightly off term for it which everyone knew what meant.
23:21
<@Tarinaky>
froztbyte: You're the one who brought up digging ditches specifically.
23:21
< Syka>
"I can fix shit" nope, i couldn't
23:21
<@froztbyte>
Tarinaky: I believe you need to go reread some things
23:22
<@Tarinaky>
Ah, you're right. Anno brought them up.
23:22
<@Tarinaky>
My point, mostly stands.
23:22
<@Tarinaky>
I'm not the one who brought up digging ditches.
23:24
<@Tarinaky>
On an unrelated note. Why did the company that 'refurbished' this second hand guitar hero controller not spray some fucking fabreeze on it. :/
23:25
< AnnoDomini>
Because they'd have to charge more.
23:25
<@Tarinaky>
I assumed there was some reason fabreeze wasn't going to work given it smelt off when it arrived :/
23:25
< AnnoDomini>
Febreezes don't grow on trees!
23:25
<@Tarinaky>
Drowned it in fabreeze and it smells fine now.
23:27
<@Namegduf>
Because a policy of doing it in general would cost money in time to administer and fabreeze for little or no average gain, and organisations don't make decisions on the per-item scale, I expect.
23:27
< Syka>
fabreeze?
23:27
< Syka>
is that like, febreeze, but endorsed by takei?
23:27
<@Tamber>
*glitter* Fabulous!
23:28
< Syka>
spray it for a gay old time
23:28
< Syka>
fun fact, there is an icecream in 'straya called Golden Gaytime
23:29
< Syka>
the company that makes it is a giant troll, because the marketing is innendos
23:29
< Syka>
(out the ass)
23:29
<&McMartin>
out, not up, eh
23:30
< Syka>
well, in both directions
23:30
< Syka>
in a rhythm
23:30
< Syka>
...but anyway
23:46
< AnnoDomini>
McMartin: Suppose I have this code, http://pastie.org/8298957 , and I want to make this print non-transparently, what would you suggest?
23:46
< AnnoDomini>
As it is, it now prints without wiping out the spot where it's being put down.
23:47
< AnnoDomini>
I seem to remember that the text printing in my Snake implementation was non-transparent.
23:48
<&McMartin>
Is this on top of a solid color or on top of a background image?
23:49
<&McMartin>
(1) If it's a solid color, I'd copy the w and h fields out of text_surface into text_rect and use that text_rect to SDL_FillRect it with the background color first.
23:50
< AnnoDomini>
Solid colour, I think. I'm using SDL_gfx to just plant a boxRGBA() on the whole screen.
23:50
<&McMartin>
(2) If it's a background image I would actually do the thing in (3) but you'd SDL_BlitSurface the relevant piece of the background into place first
23:50
<&McMartin>
(3) In most cases this wouldn't come up for me because I'd be double-buffering the image and redrawing the whole frame each frame.
23:51
<&McMartin>
(1a) Yeah, boxRGBA will work too
23:51
<&McMartin>
But if you *think* you are redrawing the whole frame each frame I would consider turning on Double-Buffering and checking your logic because it sounds like you aren't >_>
23:53
< AnnoDomini>
I think I am double buffering and redrawing the whole frame. And yeah, I'm not checking if I'm drawing something on top of something else.
23:54
<&McMartin>
Oh, I see, so this is not like a status line that updates every frame, it's two components that can overlap
23:54
<&McMartin>
Solution (1) is the way to go
23:54
< AnnoDomini>
Thank you.
23:55
<&McMartin>
(The fields might not be named w and h in SDL_Surface; double-check that. The idea is to use the width and height as a blanking function.)
23:58
< AnnoDomini>
OK. This worked. I just need to pixel-tweak the exact placement/dimensions of the blanking so it doesn't overlap on other things.
23:58
<&McMartin>
Yeah
23:59
<&McMartin>
Note that you're definitely going to have trouble if you're trying to both avoid overlap *and* get Fancy Kerning.
23:59
<&McMartin>
You might ultimately have to switch to SDL_gfx's ugly bitmapped font
--- Log closed Thu Sep 05 00:00:30 2013
code logs -> 2013 -> Wed, 04 Sep 2013< code.20130903.log - code.20130905.log >

[ Latest log file ]