--- Log opened Thu Sep 11 00:00:35 2014 |
00:47 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code |
00:47 | | mode/#code [+qo Vornicus Vornicus] by ChanServ |
01:16 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
01:20 | <@macdjord> | TheWatcher: Why? |
01:24 | <@macdjord> | <Azash> McMartin: "modify = check == 41 ? 1 : 2;" is not very readable though |
01:24 | <@macdjord> | "modify = (check == 41 ? 1 : 2);" or "const int check_passed = (check==41);modify = (check_passed ? 1 : 2);" (Rename 'check_passed' to something correct and meaningful in-context) |
01:27 | <@Azash> | Sure |
01:30 | <@macdjord> | (Using 'Bool' rather than 'int' would be better, but Bool ins't a native data type, so you'd have to import the right header, and it's actually an int under thw hood, so there's no /functional/ gain - it's just clearer) |
01:30 | <&McMartin> | Bool is in C99 but it is not a feature of the language you should rely on access to. Basically nobody compiles C code in C99 mode. |
01:32 | <@macdjord> | McMartin: Of course, I just include the bool header as a matter of course. |
01:35 | <@Reiv> | I saw blasphemy within Maximo the other day |
01:35 | <@Reiv> | A *database* offering a boolean data type! |
01:35 | <@Reiv> | Clearly this could not stand. |
01:36 | <@Reiv> | I went and investigated, and was much relieved to learn that it was in fact just a preformatted int(1) field with software layer assumptions. |
01:36 | <@Reiv> | The pitchforks were once again stowed~ |
01:36 | <@macdjord> | Doesn't the SQL standard define a boolean type? Even if several (most?) of the major implementations don't support it? |
01:37 | <@Reiv> | ehhhh |
01:37 | <@Reiv> | It might, but if so the standard is stupid |
01:37 | <@Reiv> | Booleans are for TRUE/FALSE; they are distinctly binary. |
01:37 | <@Reiv> | This is naughty in a database, because databases are trinary. |
01:38 | <@Reiv> | TRUE/FALSE/NULL |
01:40 | <&ToxicFrog> | Right, but that's true of every data type |
01:40 | <&ToxicFrog> | And all this means is that all your values have type Option[T] rather than T, boolean or no. |
01:40 | <@macdjord> | I have no problem with bool being implemented as an int; we no longer live in a world where those extra 15 bits of storage matter. I /do/ have a problem with not having it at all, becuse then you have everyone defining their own bloody way of recording a true/false column. Char(1) using 'Y'and 'N', char(1) using 'T' and 'F', varchar(1) using '' and any-non-empty, short int using 0 and 1, short in using 0 and anything-but-0, any type usin |
01:40 | <@macdjord> | g NULL and not-NULL. |
01:42 | <@macdjord> | Reiv: You can always use 'BOOLEAN NOT NULL' if that's a problem. |
01:46 | <@Reiv> | I'll grant you a standardisation would be preferable |
01:47 | <@macdjord> | Reiv: It /is/ standardized. 'BOOLEAN'. |
01:47 | <@Reiv> | TRUE/FALSE/NULL does not feel very boolean~ |
01:47 | <&ToxicFrog> | Reiv: Option[Boolean] |
01:47 | <@Reiv> | smartypants |
01:47 | <&ToxicFrog> | Like I said, you could apply the same argument to any type |
01:48 | <@macdjord> | Reiv: And NULL, 0, 1, ... is an awefully funny integer sequence. Your point? |
01:48 | <&ToxicFrog> | "Oh, int is meant to be â¤, not ⤠or NULL! We shouldn't have ints in our databases!" |
01:49 | <&ToxicFrog> | (aren't you meant to be implementing snake or something~) |
01:51 | <@macdjord> | People get so worked up about NULL. There's one developer at work who avoids them even to the point of not using them when they make logical sense. (E.g. if a table a a FILE_PATH column, and some items in it were /not/ imported from a file but rather loaded from another database, they should have a PATH of NULL, not, say, the empty string.) |
01:51 | <@Reiv> | (shut up I'm having heated arguements with Oracle right now~) |
01:52 | <@Reiv> | (Code runs against the Oracle database. Code does not run when put into the Oracle reporting suite running said code against the Oracle database.) |
01:52 | <@Reiv> | (Code in the latter case is giving the Most Helpful Error Ever.) |
01:56 | <@Reiv> | ORA-00942: table or view does not exist what do you /mean/ it does not exist the code just bloody ran thirty seconds ago |
01:58 | <@macdjord> | ... does it not say which table? |
01:59 | <@Reiv> | don't be silly, that would be *useful* |
01:59 | <@Reiv> | My developer tools would tell me which line it borked at, which would be sufficient |
02:00 | <@Reiv> | The reporting system's data models do not. The code *works* in the developer tools. |
02:00 | <@Reiv> | So I don't exactly get any hints there. |
02:01 | <@macdjord> | Reiv: Time for Lots and Lots of Debugging Print Statements? |
02:02 | <@Reiv> | print statements |
02:02 | <@macdjord> | (And be glad you are not working in C where addeing said statements might make the error change~) |
02:02 | <@Reiv> | In an SQL query |
02:02 | <@Azash> | 02:50 <&Shiz> UltraBot: 0x41>>1 in decimal |
02:02 | <@Azash> | 02:51 <&UltraBot> Shiz: BitShiftRight[65., 1 inch] |
02:02 | <@macdjord> | Oh, this is all one big query? |
02:02 | | * Azash eyes WolframAlpha |
02:02 | <@Reiv> | Yup! |
02:02 | <@macdjord> | >_< |
02:02 | <@Reiv> | It is in fact only 40 lines long! |
02:03 | <@Reiv> | I will grant that in those fourty lines there are, um, five subqueries at various levels of nesting |
02:03 | <@macdjord> | ... wipe it out, and readd bits one table at a time until it fails? |
02:03 | <@Reiv> | Yeah, I'm at the 'excising logic one query at a time' stage |
02:04 | <~Vornicus> | NULL means you don't know or don't care. |
02:04 | <~Vornicus> | You set NOT NULL when you must care/know |
02:04 | <@macdjord> | Vornicus: Or 'not applicable'. |
02:05 | <~Vornicus> | that's don'tcare |
02:05 | <@macdjord> | Vornicus: Not quite. I can care quite a bit that something is not applicable in this case. |
02:09 | <@Reiv> | man, the number of queries I write that depend on IS NULL as part of their logic... >_> |
02:10 | <@Reiv> | (Mostly to enforce an antijoin) |
02:17 | <~Vornicus> | (that's a don't know~) |
02:17 | <@Reiv> | (No, it's a "I know we don't have it" ~) |
02:25 | <~Vornicus> | point~ |
02:27 | | RchrdB [0x2ba22e11@Nightstar-qe9.aug.187.81.IP] has quit [Ping timeout: 121 seconds] |
02:43 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds] |
03:10 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [[NS] Quit: Program Shutting down] |
03:59 | | celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.] |
03:59 | | celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has joined #code |
03:59 | | mode/#code [+o celticminstrel] by ChanServ |
04:07 | | macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [[NS] Quit: This is a thing which is shaped like itself.] |
04:48 | | macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code |
04:48 | | mode/#code [+o macdjord] by ChanServ |
04:56 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code |
04:56 | | mode/#code [+o Alek] by ChanServ |
05:12 | | Turaiel is now known as Turaiel[Offline] |
05:20 | | Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving] |
05:43 | | Kindamoody[zZz] is now known as Kindamoody |
05:43 | | celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!] |
05:57 | | macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has quit [Ping timeout: 121 seconds] |
06:05 | | macdjord [macdjord@Nightstar-7rac1r.mc.videotron.ca] has joined #code |
06:05 | | mode/#code [+o macdjord] by ChanServ |
06:12 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [[NS] Quit: boo, updates] |
06:18 | | Kindamoody is now known as Kindamoody|out |
06:18 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code |
06:18 | | mode/#code [+o Alek] by ChanServ |
07:22 | <@TheWatcher> | macdjord: "expected unqualified-id before bla" is, 99% of the time, gcc saying "something has gone wrong, but if I told you exactly what it is then I'd be being helpful, and we can't have that happen, so have this obtuse error that actually has nothing whatsoever to do with the real problem instead" |
07:25 | <@macdjord> | TheWatcher: Ah, because a syntax error gets it confused about what state its in, and variable declarations tend to be one of the places where it notices 'hey, this can't be right!'. |
07:25 | <&McMartin> | It means "we used a machine generated parser whose arcane and inhuman rules failed because your string wasn't perfectly formed" |
07:25 | | macdjord is now known as macdjord|slep |
07:25 | <&McMartin> | C++ parsing is infamous for being literally Turing-complete in the presence of templates (read: in the presence of the standard library) and g++ addresses this simply by limiting the number of steps that Turing machine can take. |
07:26 | <&McMartin> | froztbyte: I have now studied the Go code in that "sweat the small stuff" article you provided the other day. |
07:26 | <@TheWatcher> | The issue her was that it wasn't a syntax error at all; its that there was a name clash when using this install that didn't exist in a previous version. |
07:26 | <@TheWatcher> | *here |
07:26 | <&McMartin> | This will be extremely easy to replicate in C as a tiny DLL or maybe even as a .a file that can be statically linked in with MinGW. |
07:27 | <&McMartin> | A lot depends on how well MinGW plays with kernel32.dll and relevant headers. I may have to replicate some function signatures. |
07:27 | <@froztbyte> | McMartin: I didn't even yet get to read it |
07:27 | <&McMartin> | It took some digging to find the changes |
07:27 | <@froztbyte> | but it didn't sound terribly hard to do |
07:27 | <&McMartin> | But at the end of the day he's using three API functions in kernel32.dll |
07:27 | <&McMartin> | But it looks like they aren't usually imported in windows.h, so that could be, as they say, Exciting (tm) |
07:27 | <@froztbyte> | (what doesn't help is that I don't ever really windows) |
07:27 | <&McMartin> | Yeah |
07:28 | <&McMartin> | This is the "man 2" level of Windows development here |
07:28 | <&McMartin> | Which is much hairier than the POSIX equivalent |
07:28 | <@froztbyte> | oh, I'm sure I could wrangle it with sufficient swearing |
07:28 | <&McMartin> | Yeah |
07:28 | <&McMartin> | I'm saying I didn't even need to |
07:28 | <&McMartin> | I just went "Oh, these three functions. 'k" |
07:29 | <@froztbyte> | I've got a fair amount of skillpoints in "oh, random things need to be stuck together? sure, give me 15min...then an hour to work out the kinks" kind of thing |
07:29 | <&McMartin> | "Sure I can wrap that in a C function with signature int (*)(void)." |
07:29 | <@froztbyte> | McMartin: yeah but that's because you're mildly insane ;p |
07:29 | <@froztbyte> | (of the best kind) |
07:29 | <&McMartin> | Heh |
07:29 | <&McMartin> | "I've done worse"~ |
07:29 | <@froztbyte> | :D |
07:29 | <&McMartin> | But this isn't even bad |
07:29 | | * froztbyte drinks some strong espresso from a facebook mug |
07:29 | <&McMartin> | This is just "it's kinda obnoxious to implement getppid" |
07:30 | <@froztbyte> | I overboiled my coffee and now it's a bit bitter :< |
07:30 | <&McMartin> | "But the thing you need to do to do that also gives you all the other process information you need to do that trick he did" |
07:30 | <@froztbyte> | (though to be fair, I forgot it was on the stove) |
07:30 | <&McMartin> | So now I have a couple of paragraphs and MSDN links should I choose to deploy them later. |
07:30 | <@froztbyte> | what you're actually saying is that, as a wakeup run tomorrow morning, you'll assemble and publish this? |
07:31 | <&McMartin> | More likely Sunday afternoon |
07:31 | <@froztbyte> | (it's about 01h30 or something there? maybe an hour or two out..) |
07:31 | <&McMartin> | It's 2330 here. |
07:31 | <@froztbyte> | ah |
07:31 | <@froztbyte> | -8 + sillytime, or -9? |
07:31 | <&McMartin> | PST is GMT-8. |
07:32 | <@froztbyte> | <bushart> Please help me find the error |
07:32 | <@froztbyte> | <bushart> https://www.found.no/play/gist/ff533d6de47b31c874f3 |
07:32 | <@froztbyte> | <warkolm> the error where |
07:32 | <@froztbyte> | where's wally?! |
07:32 | <@froztbyte> | McMartin: ah, k |
07:32 | <@froztbyte> | yeah it's 08h32 here and I'm writing puppet code for shared infra |
07:33 | <@froztbyte> | I've /just/ gotten to the point of making the entire template and stuff nice, then just checked another system component to make sure of something |
07:33 | <@froztbyte> | and turns out I can't yet get rid of the symlink soup |
07:33 | <@froztbyte> | :< |
07:33 | <@froztbyte> | (there's also some glusterfs involved) |
07:33 | <&McMartin> | mm |
07:33 | <@froztbyte> | (and unison between regions) |
07:33 | <&McMartin> | Anyway |
07:33 | <&McMartin> | If you want to see the code that is Actually The Code |
07:33 | <&McMartin> | https://github.com/inconshreveable/mousetrap/blob/master/trap_windows.go |
07:33 | <@froztbyte> | (this is Not Quite My Favourite Thing) |
07:33 | | * froztbyte looks |
07:33 | <&McMartin> | Everything else is trying to bind it into the standard library properly &c |
07:34 | <@froztbyte> | this'll be the first actual Go code I'm reading, I just realized |
07:34 | <@froztbyte> | such tabs. |
07:34 | <&McMartin> | Heh |
07:34 | <@froztbyte> | szExeFile [syscall.MAX_PATH]uint16 |
07:34 | <@froztbyte> | wut |
07:34 | <@froztbyte> | is that a typecast or something? |
07:34 | <&McMartin> | No, that's a field declaration |
07:34 | <&McMartin> | Go uses Pascal-style type declarations without the colon |
07:35 | <&McMartin> | That is "the processEntry32 struct has a field named szExeFile that is an array if uint16 of length syscall.MAX_PATH" |
07:35 | <&McMartin> | The relevant line in the C would be |
07:35 | <@froztbyte> | k |
07:35 | <&McMartin> | WCHAR szExeFile[MAX_PATH]; |
07:36 | <@froztbyte> | 8sp tabs make my eyes tired :< |
07:36 | <@froztbyte> | McMartin: what surprises me is that all these funccalls are still tagged *32 |
07:36 | <@froztbyte> | McMartin: like.....what |
07:36 | <&McMartin> | This is a weird corner of the Win32 APIs. |
07:36 | <@froztbyte> | is windows /that/ full of cruft? or ar...ah |
07:36 | <@froztbyte> | okay, if these are raisins, sure |
07:37 | <&McMartin> | This part is dusty enough that #include <windows.h> doesn't include them. |
07:37 | <&McMartin> | But they were introduced in XP |
07:37 | <&McMartin> | Granted, that would be like 11 years ago now |
07:37 | <@froztbyte> | thus the Kernel.MustFindProc ? |
07:37 | <@froztbyte> | or are those kind of safety nets? |
07:37 | <&McMartin> | I think that's "what's DLL, precious" code |
07:37 | <@froztbyte> | k |
07:37 | <&McMartin> | Or rather, "what's -l" |
07:38 | <&McMartin> | Instead doing dlsym equivalents and failing if they fail. |
07:38 | <@froztbyte> | ok, _, e1 := Process32First.Call(snapshot, uintptr(unsafe.Pointer(&processEntry))) |
07:38 | <@froztbyte> | python, pascal, and C styles |
07:38 | <@froztbyte> | all in one place! |
07:38 | <@froztbyte> | HEAR YE, HEAR YE, GET YOUR SPAGHETTI SYNTAX HERE! FRESH FROM THE MARKET! |
07:38 | <&McMartin> | We can call the _ ML too. |
07:38 | <&McMartin> | To be fair, most of C syntax can go fuck itself |
07:38 | <@froztbyte> | okay, true, I haven't yet gone over that heap |
07:38 | <@froztbyte> | someday. |
07:38 | <@froztbyte> | I've read some Forth! |
07:39 | <&McMartin> | Forth syntax is pretty straightforward I hear~ |
07:39 | <@froztbyte> | (why in god's name have I done these things?) |
07:39 | <&McMartin> | [token]* |
07:39 | <@froztbyte> | McMartin: eh, it was readable. |
07:39 | <&McMartin> | end of syntax |
07:39 | <@froztbyte> | McMartin: I introduced someone to some Net::SSLeay-era perl code earlier this week. |
07:39 | <@froztbyte> | this person learned, as a first language, python |
07:40 | <@froztbyte> | and then some plsql + javascript and then some C shittery for gaming mods |
07:40 | <@froztbyte> | walking them through the proc-handling was entertaining |
07:40 | <&McMartin> | "Net::SSLeay-era perl" means very little to me, I fear; I came late enough to scripting languages that I got to duck almost all Perl code. |
07:40 | <@froztbyte> | "okay so now we're on line 800 and we can finally start listening on a socket!~" |
07:40 | <@froztbyte> | McMartin: ah |
07:40 | <@froztbyte> | McMartin: I worked in the ISP space. I've read a bunch of perl. |
07:40 | <&McMartin> | I bet |
07:41 | <@froztbyte> | hell I even made some minor patches to a perl daemon that runs wimax networks... |
07:41 | <@froztbyte> | ....I've read enough perl that I can actually scan-read it now :( |
07:41 | <&McMartin> | Anyway, the C translation of that file will be half two #includes and of the remaining half 90% will be properly doing resource management and error reporting |
07:41 | <&McMartin> | Because C |
07:41 | <@froztbyte> | haha |
07:41 | <@froztbyte> | indeed |
07:42 | <@froztbyte> | this is a pretty simple thing |
07:42 | <&McMartin> | "defer" is lovely and not getting that will be where most of the ugliness will come from |
07:43 | <&McMartin> | defer is basically BOOST_SCOPE_EXIT or unwind-protect or finally depending on your language |
07:43 | <@froztbyte> | unwind-protect being a lisp thing? |
07:44 | <&McMartin> | Yeah |
07:45 | <@froztbyte> | man, so much time shortage; I didn't know whether I wanted to skill up on haskell or clisp first, and now there's ocaml too (because jerith) |
07:46 | <@froztbyte> | :< |
07:46 | <&McMartin> | Of those three ocaml is the most interesting IMO |
07:46 | <&McMartin> | Because it actually produces usable code and because it's a more approachable system that uses strong static typing + type inference |
07:46 | <@froztbyte> | my very brief experience with it was pretty nice |
07:47 | <&McMartin> | skilling up on ocaml will translate *almost* directly to Haskell |
07:47 | <@froztbyte> | encountered it in LiquidSoap |
07:47 | <@froztbyte> | I've read a bunch more haskell though |
07:47 | <&jeroud> | froztbyte: OCaml. I've found it easier and more useful than either of the others. |
07:48 | <@froztbyte> | idiomatically I have a lot of skilling up to do in haskell, because I haven't been reading math etc for far too long, and I'm not really trained in CS (although I obviously have a fair interest in it) |
07:48 | <@froztbyte> | really enjoy reading Haskell, it's pretty |
07:48 | <&jeroud> | I've spent more time trying to learn Haskell and ended up with less working code. |
07:48 | <@froztbyte> | jeroud: :) |
07:50 | <&jeroud> | I haven't done much clisp, but I've done a bunch of elisp. |
07:51 | <&jeroud> | To be fair to the others, OCaml has come a long way in the past couple of years. |
07:52 | <&jerith> | More the tooling than the language itself, but still. |
07:55 | <&jerith> | I want to write more OCaml code, but I need to put my pyconza talk together first. |
07:56 | | Orthia [orthianz@Nightstar-knd.hn1.224.119.IP] has quit [Ping timeout: 121 seconds] |
08:02 | | Orthia [orthianz@Nightstar-eqd.1ga.224.119.IP] has joined #code |
08:02 | | mode/#code [+o Orthia] by ChanServ |
09:37 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Ping timeout: 121 seconds] |
09:40 | | Tarinaky [tarinaky@Nightstar-e99cts.net] has quit [Ping timeout: 121 seconds] |
09:41 | | Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code |
09:41 | | mode/#code [+o Alek] by ChanServ |
09:43 | | Tarinaky [tarinaky@Nightstar-e99cts.net] has joined #code |
09:43 | | mode/#code [+o Tarinaky] by ChanServ |
10:41 | | Kindamoody|out is now known as Kindamoody |
10:50 | | RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has joined #code |
10:50 | | mode/#code [+o RchrdB] by ChanServ |
11:30 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
11:30 | | mode/#code [+o Checkmate] by ChanServ |
12:15 | | Kindamoody is now known as Kindamoody|afk |
12:27 | | thalass [thalass@Nightstar-5gtf3h.bigpond.net.au] has joined #code |
12:27 | | mode/#code [+o thalass] by ChanServ |
12:38 | <@Tarinaky> | I'd say Android development is turning out to be a nightmare... |
12:38 | <@Tarinaky> | But it's probably not the same development other people mean :/ |
12:44 | | VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code |
12:45 | <@thalass> | ? |
12:47 | <@TheWatcher> | It involves writing stuff in java, so it's not exactly off to a good start there~ |
12:53 | <@RchrdB> | Tarinaky, are you talking about development of things to run on Android, which is known evil (fragmentation, Java) or the development of Android itself, which is⦠I have no idea. |
12:53 | <@RchrdB> | let's try that again |
12:53 | <@RchrdB> | Tarinaky, are you talking about development of things to run on Android, which is known evil (fragmentation, Java) or the development of Android itself? |
12:57 | <@Azash> | I question "known evil" |
12:59 | <@Tarinaky> | I'd say development of Android itself... except I'm just writing test code. |
12:59 | <@Tarinaky> | SO test code for the development of Android itself~ |
13:01 | <@gnolam> | Everyone knows Android development is a nightmare. They always eventually find some way around the three laws. |
13:01 | <@Tarinaky> | tinyalsa is awful. |
13:20 | <&Reiver> | Tarinaky: Why are you writing test code for Android |
13:20 | <&Reiver> | I did not know you worked for Google |
13:21 | <@Tarinaky> | I work for a semiconductor company in the mobile space. |
13:21 | <@Tarinaky> | Drivers are kernel-space. |
13:21 | <&Reiver> | I see |
13:24 | <@thalass> | neat |
14:12 | < Julius> | Is there actually a non-pro version of Windows 8.1? |
14:13 | < Julius> | We're doing a standarization in the company, and we've run into a minor problem of installing the bloody thing. We have the license, but Microsoft's latest retardation with distribution of installation media prevents us from installing them on the Macs. |
14:22 | | thalass is now known as Thalasleep |
14:29 | < Julius> | Hmm. All I see is Pro and Enterprise images everywhere. But I want a regular, no-frills version. |
14:29 | < Julius> | I'm actually trying to be legit and it's a horrid pain. |
15:19 | <@Tarinaky> | ANyone remember that hack where someone showed that there was a programmeable microcontroller inside SDcards which meant you could build a minimalist computer out of /just/ an SD card? |
15:19 | <@Tarinaky> | Anyone know if anything fun happened out of that yet? |
16:17 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds] |
16:39 | | Checkmate [Z@Nightstar-ro94ms.balk.dk] has joined #code |
16:39 | | mode/#code [+o Checkmate] by ChanServ |
16:41 | | celticminstrel [celticminst@Nightstar-ak6p6n.dsl.bell.ca] has joined #code |
16:41 | | mode/#code [+o celticminstrel] by ChanServ |
17:23 | | RchrdB_ [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has joined #code |
17:24 | | RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has quit [Ping timeout: 121 seconds] |
17:39 | | RchrdB_ is now known as RchrdB |
17:50 | | RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has quit [[NS] Quit: Leaving] |
17:50 | | RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has joined #code |
17:50 | | mode/#code [+o RchrdB] by ChanServ |
18:54 | <@froztbyte> | <tenth> Is there a good way to convince product / design people to not use typekit? |
18:54 | <@froztbyte> | <tenth> Aside from "Well, nobody can see the front page of our site, but if they could, they'd agree that the font choice is excellent" |
18:54 | <@froztbyte> | <exarkun_> Better to be blind than to have ones gaze wasted on the commonplace! If you cannot look upon beauty then why have eyes at all. |
18:54 | <@froztbyte> | <tenth> In the land of perfect fonts, the non-rendering page is king? |
19:02 | <@gnolam> | Hah. |
19:02 | <@gnolam> | Haet Typekit. |
19:02 | <&ToxicFrog> | What's typekit? |
19:36 | <&ToxicFrog> | Arghafghkasldfhgjasdhfjkashdf |
19:36 | <&ToxicFrog> | I am having trouble applying core.typed to this project because 'lein typed check' is crashing with a totally incomprehensible error message. |
19:49 | <@RchrdB> | ToxicFrog, IIRC it's a webfonts implementation. |
19:50 | <@RchrdB> | You put some code in your web page that typekit supply to you and suddenly "Garibald With Cheese And Extra Slants On The Serifs" becomes a valid font for use anywhere you like in your CSS. |
20:18 | | Kindamoody|afk is now known as Kindamoody |
20:24 | <@RchrdB> | Protip: printf does wildly different things if you write printf("%*s", width, string) versus printf("%.*s", length, string) |
20:34 | <@froztbyte> | haha |
20:47 | <@RchrdB> | To annoy self: spend ~half an hour writing a parser that happens not to be buggy, then spend 5 seconds writing a function to print the parse tree, then spend ~an hour debugging the parser because the printing function was wrong. |
20:59 | | Kindamoody is now known as Kindamoody[zZz] |
21:07 | | Turaiel[Offline] is now known as Turaiel |
21:12 | <@froztbyte> | haha |
21:33 | | Vornucopia [NSwebIRC@Nightstar-k70f1n.ct.comcast.net] has joined #code |
21:34 | < Vornucopia> | My firm has been taking over control of a large website; I'm going through some of the code to find and squash some bugs. |
21:36 | | Vornlicious [NSwebIRC@Nightstar-k70f1n.ct.comcast.net] has joined #code |
21:36 | < Vornlicious> | Here is a line of code from a report generator. $items[] = array('entry_id' => $item['entry_id'], 'entry_id' => $item['entry_id'], 'entry_id' => $item['entry_id'], 'quantity' => $item['quantity']); |
21:38 | < Vornlicious> | It's gonna be a long week. |
21:38 | | Vornucopia [NSwebIRC@Nightstar-k70f1n.ct.comcast.net] has quit [Ping timeout: 121 seconds] |
21:40 | <&jerith> | That looks like PHP. |
21:41 | < Vornlicious> | Well, it is. |
21:41 | <@Alek> | Vorn, I thought you were a math teacher. XD |
21:42 | < Vornlicious> | If you'd like I can port it to Python or something, but the syntax isn't *that* hard |
21:44 | <&jerith> | PHP is a very depressing language. |
21:45 | <&jerith> | It's *just* good enough to have become incredibly popular. |
21:45 | <@froztbyte> | Vornlicious: hey, that's even *good* PHP still! |
21:45 | <@RchrdB> | Vornlicious, ...why is 'entry_id' => $item['entry_id'] repeated? |
21:47 | | Vorntacular [NSwebIRC@Nightstar-k70f1n.ct.comcast.net] has joined #code |
21:48 | | Vornlicious [NSwebIRC@Nightstar-k70f1n.ct.comcast.net] has quit [Ping timeout: 121 seconds] |
21:48 | <@froztbyte> | RchrdB: to match the amount of vorns we're seeing |
21:48 | <&ToxicFrog> | froztbyte: I don't think it counts as "good" when 'entry_id' appears three times in the map initializer |
21:48 | <@froztbyte> | ToxicFrog: it really really does :/ |
21:48 | <@froztbyte> | I mean, it's shitty code |
21:48 | | Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code |
21:48 | <@froztbyte> | but it's pretty decent PHP. |
21:48 | < Vorntastic> | Look carefully. |
21:49 | <@froztbyte> | Vorntastic: that's what we're talking about ;p |
21:49 | <@froztbyte> | ToxicFrog: let me put this another way |
21:49 | <&jerith> | ToxicFrog: It doesn't seem to contain excitingly subtle timebombs. |
21:49 | < Vorntastic> | (I can't tell, I keep exploding) |
21:49 | <@froztbyte> | ToxicFrog: the PHP I've seen previously used to run as daemons under inittab |
21:50 | <@RchrdB> | froztbyte, *blink* why would anyone write daemons in PHP? |
21:50 | <&ToxicFrog> | s/daemons/anything/ |
21:50 | <&jerith> | RchrdB: Because they read a blog post about making a website once and now they're a programmer? |
21:50 | <@froztbyte> | ToxicFrog: and then have direct API interfaces that get exposed via a hacked-in Java bean *and* a cli tool *and* a simplexml (yes) interface *and* a webserve'd hook |
21:50 | <@froztbyte> | and all of those things were a distinct interface btw |
21:51 | <&ToxicFrog> | More seriously, because when PHP is the only language you know, it causes some kind of brain damage that precludes consideration of other languages, AFAICT |
21:51 | <@froztbyte> | using 3 different parsers/unpackers |
21:51 | | Vorntacular [NSwebIRC@Nightstar-k70f1n.ct.comcast.net] has quit [Ping timeout: 121 seconds] |
21:52 | < Vorntastic> | RchrdB: the only conclusion I can come to involves invoking Giorgio Tsoukalos |
21:52 | <@froztbyte> | the proposed install-default password on that system was, for a while, 'rasmuslerdorf' |
21:53 | <@froztbyte> | as you may be able to tell, someone in the company was a fan. |
21:53 | <@RchrdB> | the "Aliens!" guy? |
21:56 | < Vorntastic> | That's him. |
22:02 | | Checkmate [Z@Nightstar-ro94ms.balk.dk] has quit [Ping timeout: 121 seconds] |
22:09 | < Vorntastic> | This code is unbelievably full of idiocy. |
22:12 | | Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code |
22:12 | | mode/#code [+o Checkmate] by ChanServ |
22:20 | <@Azash> | Vorntastic: git blame~ |
22:20 | | * froztbyte finally reads http://bjorn.tipling.com/if-programming-languages-were-weapons |
22:21 | <@froztbyte> | Azash: you're optimistic |
22:21 | < Vorntastic> | I wish. It took us three weeks to get them to give us the full source. |
22:21 | <@froztbyte> | Azash: my bet's on an export from svn |
22:21 | <@froztbyte> | in zip |
22:21 | <@froztbyte> | with the svn subfolders carefully deleted by hand!~ |
22:25 | < Vorntastic> | This particular thing appears to be a database entry. ENTERPRISE ENTERPRISE ENTERPRISE |
22:26 | <@Alek> | ahaha Mathematica |
22:26 | <@Alek> | I remember seeing a demo of it, and fiddling with it, when I visited UIUC on a tour back in 98/99. |
22:26 | <@Alek> | it looked fantastic, easily mid-00s quality, from what I recall. |
22:27 | <@Alek> | the price was fantastic too. thousands, and that's with the student discount. |
22:28 | <@Alek> | hi-rez realtime 3D model of the next best thing to a tornado, from a simple set of equations I wish I could remember. |
22:28 | <@Alek> | an extension of some equations I used to model fun stuff on my 2D graphing calculator at the time. |
22:29 | <@Alek> | a /moving/ tornado, at that. |
22:36 | | Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [[NS] Quit: Bye] |
22:45 | | Syka [the@Nightstar-d16r4u.vividwireless.net.au] has quit [Ping timeout: 121 seconds] |
22:50 | | Turaiel is now known as Turaiel[Offline] |
22:53 | | Syka [the@Nightstar-d16r4u.vividwireless.net.au] has joined #code |
23:38 | | RchrdB [0x2ba22e11@Nightstar-952.jvr.168.194.IP] has quit [[NS] Quit: Leaving] |
23:55 | | RchrdB [0x2ba22e11@Nightstar-qe9.aug.187.81.IP] has joined #code |
23:55 | | mode/#code [+o RchrdB] by ChanServ |
--- Log closed Fri Sep 12 00:00:51 2014 |