code logs -> 2014 -> Wed, 26 Nov 2014< code.20141125.log - code.20141127.log >
--- Log opened Wed Nov 26 00:00:25 2014
00:40 gnolam_ is now known as gnolam
00:40 mode/#code [+o gnolam] by ChanServ
01:03 Derakon[AFK] is now known as Derakon
01:09
<&ToxicFrog>
Hahahahahaha holy fuck what
01:09
<&ToxicFrog>
On windows:
01:10
<&ToxicFrog>
strftime("%Y-%m-%d") -> "2014-11-25"
01:10
<&ToxicFrog>
strftime("%F") -> segfault
01:24
<&Derakon>
What's %F? %f is apparently microsecond time.
01:26
<@Azash>
http://strftime.org/
01:27
<&McMartin>
This kind of shit is why I keep Windows and POSIX implementations separated. -_-
01:28
<@Azash>
Oops, I don't know why I assumed python
01:29
<@Azash>
Anyway Windows doesn't have %f or %F according to this MSDN article
01:29
<~Vornicus>
The real WTF is that you can segfault a program with a bad format string
01:29
<@Azash>
Vornicus: Isn't this part of the Windows API vision
01:30
<&McMartin>
You think that's unique to Windows~
01:32
<~Vornicus>
This doesn't make it less WTF~
01:33
<&McMartin>
Yeah
01:33
<&McMartin>
But I mean
01:33
<&McMartin>
If you support printf, you can introduce arbitrary-code-execution security holes with a bad format string
01:33
<&McMartin>
That is the case that made me long for a --suppress-bullshit compilation flag
01:35
<&ToxicFrog>
Azash: windows not supporting %F doesn't surprise me, no.
01:35
<&ToxicFrog>
The segfault does, though.
03:00 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
03:37 * ToxicFrog weeps
03:37
<&ToxicFrog>
Borderless fullscreen on Linux: works fine
03:37
<&ToxicFrog>
Borderless fullscreen on Windows: vlc appears behind the frontend
04:11 * ToxicFrog begins moving away from ad hoc config settings to registered command line flags that can be overriden by a config file
04:28
<@Azash>
http://www.gironsec.com/blog/2014/11/what-the-hell-uber-uncool-bro/
04:28
<@Azash>
Since AJ isn't here to post it himself
04:34
<&Derakon>
Uber is quite blatantly evil.
04:35
<&Derakon>
They're only getting away with it because the taxi industry isn't always exactly saintly itself.
04:35
<@Azash>
They're getting away with it because customers don't care and the drivers are too locked in to bail
04:52
<~Vornicus>
McM: I'm wondering, have you poked at the affrontotron or whatever it's called lately
04:56
<~Vornicus>
atrocitron
04:59
<~Vornicus>
...answer to the panopticon, I'm going the fuck to sleep
05:02 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
05:16 Derakon is now known as Derakon[AFK]
05:16 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has quit [Operation timed out]
05:18 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
05:18 mode/#code [+o himi] by ChanServ
05:25 Alek [omegaboot@Nightstar-c8t.a00.36.73.IP] has joined #code
05:25 mode/#code [+o Alek] by ChanServ
05:39 Kindamoody[zZz] is now known as Kindamoody
07:06
<&McMartin>
Not seriously. I checked in on it but given the choice these days I've been working on Coreflight.
07:08 celticminstrel [celticminst@Nightstar-l2rg83.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:22 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
07:22 mode/#code [+o Checkmate] by ChanServ
07:44
<@Julius>
What IS Uber?
07:45
<@Azash>
Julius: An alternative taxi service thing
07:47 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has joined #code
07:49 macdjord is now known as macdjord|slep
08:10 Harlow [harlow@Nightstar-pq0497.il.comcast.net] has joined #code
08:24
<@Julius>
Azash: What's alternative about it?
08:44
<&McMartin>
It uses the internet to pretend that laws regulating taxis don't apply to them
08:45
<&McMartin>
I'm being slightly snarky but this is seriously basically the plan. They use random internet people to be as-needed taxis and file lawsuits against cities who try to stop them
08:46
<@Azash>
They also treat the drivers like shit in addition to the privacy issues with their app
08:49
<@Julius>
Interesting idea, in principle. Pity about the evil, though.
09:05 * Julius reads the wiki page.
09:06
<@Julius>
WTF. They apparently have higher prices than taxis. Why would you sign up for that?
09:06
<@Julius>
I'm not sure I understand.
09:09 AverageJoe [evil1@Nightstar-fb1kt4.ph.cox.net] has quit [[NS] Quit: Leaving]
09:40 Orthia [orthianz@Nightstar-3d6.duk.160.203.IP] has quit [Ping timeout: 121 seconds]
09:44 Orthia [orthianz@Nightstar-asi.3v7.224.119.IP] has joined #code
09:44 mode/#code [+o Orthia] by ChanServ
09:51 Kindamoody is now known as Kindamoody|out
09:53
<@TheWatcher>
Julius: never underestimate the gullability of the public, or the appeal of convenience
10:00
<@TheWatcher>
Why have to walk to a taxi rank, wait to hail a taxi, or have to fine a phone number to call, when you can "Press button, summon taxi" and track where it is? The fact that it's not cheaper is irrelivant if you don't know taxi fare structures (which, realistically, can be somewhat byzantine), or will trade off the price for convenience. And as far as the privacy issues, people have a woefully ignorant, lackadaisical, or outright ostritch-like
10:00
<@TheWatcher>
approach to the permissions apps request and their privacy in general
10:02
<@TheWatcher>
(not that the app writers, or the permissions warnings, help with this - some needelessly requesting permissions they don't really need, producing 'permission review fatigue' amongst even the ones that don't just blindly hit "accept", while the overly-broad scope of some permissions and the lack of explanation about why permissions are requested makes evaluation difficult or event futile)
10:03
<@Azash>
I'm just happy it's exceedingly difficult to allow the BRICK permission
10:09 Orthia [orthianz@Nightstar-asi.3v7.224.119.IP] has quit [Ping timeout: 121 seconds]
10:12
<@TheWatcher>
Yeah, no kiddin
10:13 Orthia [orthianz@Nightstar-05p.474.224.119.IP] has joined #code
10:13 mode/#code [+o Orthia] by ChanServ
10:15
<@froztbyte>
McMartin: I should note that you're talking about Uber-the-american-company-in-america
10:16
<@froztbyte>
but also that the taxi situation in the states is a gigantic fucking joke
10:16
<@froztbyte>
I read about the medallions some time ago
10:16
<@froztbyte>
that's basically outright shitfuckery.
10:16
<@froztbyte>
(Uber in .za is hella <3)
10:22
<@Azash>
Less than 3, out of 5 you mean? Sounds like grounds for disbanding the company
10:23 * froztbyte throws Azash off a cliff
10:23
<@TheWatcher>
sneerk
10:24
<@TheWatcher>
I obviously need more tea, that one took me a moment
10:45 Orthia [orthianz@Nightstar-05p.474.224.119.IP] has quit [Ping timeout: 121 seconds]
10:50 Orthia [orthianz@Nightstar-40ksdj.callplus.net.nz] has joined #code
10:50 mode/#code [+o Orthia] by ChanServ
11:08 Orthia [orthianz@Nightstar-40ksdj.callplus.net.nz] has quit [Ping timeout: 121 seconds]
11:13 Orthia [orthianz@Nightstar-05p.474.224.119.IP] has joined #code
11:13 mode/#code [+o Orthia] by ChanServ
11:19
<@Julius>
Hrm. My SQL is rusty (and wasn't good to begin with).
11:22
<@Julius>
I have three tables, A, B, C. C refers to B, B refers to A. I want to get a list of properties of B where they match referral to A, and a count of matches in C for each of these.
11:23
<@Julius>
To get something like: B_element | nrof_C_elements_matching_B
11:35 Orthia [orthianz@Nightstar-05p.474.224.119.IP] has quit [Ping timeout: 121 seconds]
11:40 Orthia [orthianz@Nightstar-nvq.kom.180.202.IP] has joined #code
11:40 mode/#code [+o Orthia] by ChanServ
11:42 Harlow [harlow@Nightstar-pq0497.il.comcast.net] has quit [[NS] Quit: BED]
11:46
<@Tarinaky>
Argh, does anyone have a guide to the format of usage strings for command line utilities?
11:46
<@Tarinaky>
I need to look up some obscura.
11:47
<@Tarinaky>
I have a command which accepts one of two strings, so I want to render the usage as A|B
11:47
<@Tarinaky>
But I'm not sure what kind of brackets I need, or if I need brackets.
11:47
<@Tarinaky>
Since the strings are constant, not variable.
11:51
<@TheWatcher>
There is no formal spec, the closest you'll get is the SYNOPSIS description in man 7 man-pages
11:51
<@TheWatcher>
which is really something like 2 sentences
11:54
<@Julius>
Inner join to the rescue!
11:59
<@Julius>
(SELECT B.prop, COUNT(C.whatevs) FROM B INNER JOIN C on B.Id = C.BId WHERE B.AId = 1 GROUP BY B.prop;)
12:00
<@Tarinaky>
TheWatcher: "Oh"
12:01
<@Julius>
Why the quotes? Who are you quoting?
12:03
<@Tarinaky>
Hamlet.
12:04
<@Julius>
He never says that.
12:04
<@Tarinaky>
The audience do
12:15 * TheWatcher hairpulls at CSS::Inliner
12:23
<@Julius>
A left join works even better.
12:24
<@Julius>
I never understood how joins worked during studies.
12:25
<@TheWatcher>
Let me guess; they went on at length about relational algebra, with only cursory coverage of how it works in reality?
12:27
<@Julius>
Yeah.
12:28
<@Julius>
You're some kind of teacher, right?
12:29
<@TheWatcher>
Some kind of, yes; I teach a C Programming intro course.
12:31
<@TheWatcher>
Mostly to MSc conversion students and single-module externals
12:31
<@TheWatcher>
(public, industry - mostly aerospace and automotive)
12:32
<@Julius>
The only time I needed joins was during Linq courses. And then I brute-forced the issue by editing my query until I got results I wanted.
12:35
<@froztbyte>
Tarinaky: foo -a --asd -bar <baz> [-d xyz [xyzzy ...]]
12:36
<@froztbyte>
for mandatory, option with mandatory parameter, optional, and optional with repeat
12:36
<@froztbyte>
foo -a --asd [-bar baz|-d xyz]
12:37
<@froztbyte>
(and I should note that "-bar" is then often 3 parameters, often overriding the earlier -a)
12:37
<@froztbyte>
beyond that it gets pretty situational, such as what you're using to parse the options, etc
12:38
<@froztbyte>
if you use python's argparse, you can mark things as optional or n-many args (nargs) and it'll DTRT
12:38
<@froztbyte>
etc etc per language or library
12:38
<@froztbyte>
gnu find has everything prefixed with single hyphens, for instance
13:02
<@Tarinaky>
froztbyte: Technically this isn't a CLI utility. I'm just trying to borrow the conventions to be familiar
13:02 * Julius glares at Java.
13:02
<@Julius>
I had to cast an int to an Integer.
13:03
<@Tamber>
Tarinaky, well, depending on which convention you want to follow... (-h, -?, -help, --help ;_;)
13:03
<@Tarinaky>
Julius: That's because they're different things.
13:03
<@Tarinaky>
Julius: int is a primative type
13:03
<@Julius>
I know this.
13:03
<@Tarinaky>
Julius: Integer is an object encapsulating an int
13:04
<@Tarinaky>
I forget exactly which of the two is mutable.
13:11
<@Julius>
Can I sort a Java Map somehow? c:forEach is displaying the key/value pairs in strange order.
13:12
<@Tarinaky>
Use a different type of map
13:13
<@Tarinaky>
http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html
13:13
<@Tarinaky>
The default Map is going to be a HashMap - so the ordering is according to the key's hash value.
13:14
<@Julius>
Thanks!
13:15
<@Julius>
This ALMOST worked.
13:15
<@Julius>
The key is a String. Therefore "10" goes before "2".
13:16
<@Julius>
I guess I could change it to an Int,Int map, although that would probably cause problems later.
13:16
<@Tarinaky>
Does the key need to be a string?
13:16
<@Tarinaky>
The alternative is to specialise a string class with new comparison operators that parses numerical data as a 'special case'
13:17
<@Julius>
It sort of does. A planned future feature is to include more than just numeric options.
13:18
<@Tarinaky>
Oh!
13:18
<@Tarinaky>
Do you need to mix-and-match string and int data?
13:19
<@Tarinaky>
Is "String 10" < "String 2" ?
13:19
<@Julius>
The key could be any string (but probably one-word).
13:19
<@Julius>
What?
13:19
<@Tarinaky>
Is that a feature you require.
13:20
<@Tarinaky>
One thing you could do is parse the string for integers and string-reverse them
13:20
<@Julius>
That is a feature that is not required now, but will be required later. I guess I'll make the map int,int for the moment, and worry about this later.
13:20
<@Tarinaky>
No, wait, that won't work, you'd need padding as well
13:20
<@Tarinaky>
Hmm...
13:21
<@Tarinaky>
Julius: I think the simplest solution is probably going to be to have an object containing two Maps
13:21
<@Tarinaky>
And then you can concatenate the <string,int> map onto the end of the <int,int> map maybe?
13:22 * Tarinaky is brainstorming
13:22 * Julius changes it to TreeMap<Integer,Integer> which works.
14:26 Orth [orthianz@Nightstar-nvq.kom.180.202.IP] has joined #code
14:27 Orthia [orthianz@Nightstar-nvq.kom.180.202.IP] has quit [Ping timeout: 121 seconds]
15:13 Orth [orthianz@Nightstar-nvq.kom.180.202.IP] has quit [Ping timeout: 121 seconds]
15:18 Orthia [orthianz@Nightstar-qab.sgu.224.119.IP] has joined #code
15:18 mode/#code [+o Orthia] by ChanServ
15:18
<@Tarinaky>
http://thedailywtf.com/articles/genderize
15:24 celticminstrel [celticminst@Nightstar-l2rg83.dsl.bell.ca] has joined #code
15:24 mode/#code [+o celticminstrel] by ChanServ
15:25 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
15:30 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
15:30 mode/#code [+o himi] by ChanServ
15:45
<@Julius>
Tarinaky: English names are silly.
15:45
<@Tarinaky>
Julius: What the fuck is an 'English' name?
15:46
<@Julius>
Slavic names are very sensible about ending every female name with -a and almost even proper male name with a consonant.
15:46
<@Julius>
*every
15:46
<@Julius>
Tarinaky: Names used in the Anglosphere, of course. You might refer to them as 'the Colonies' and such. :P
15:46
<@Tarinaky>
English as a language is cobled together from more interesting parts of the world and slightly dumbed down the better to bodge it together.
15:47
<@Tarinaky>
'English names', likewise, are a bodge of mispelled Saxon, Celtic, Norman etc...
15:47
<@Julius>
Yeah, that's much of the problem.
15:47
<@Tarinaky>
You can't have a convention when you have 20 of them
15:48 * iospace eyes Tarinaky 's link
15:49
<@Tarinaky>
iospace: Which link?
15:49
<@iospace>
the last one
15:49
<@iospace>
the genderize one :V
16:06
<@Tarinaky>
Can someone explain the joke in this to me? http://thecodelesscode.com/case/161
16:07 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
16:07
<@Tarinaky>
I /think/ it's something to do with hashmap direction... but I'm guessing wildly as I don't know PHP.
16:40 Kindamoody|out is now known as Kindamoody
16:45
<&ToxicFrog>
Based on the references to string processing and numerical comparison, I'm guessing something about the non-transitivity of comparison operators and PHP's completely demented coercion rules
16:45
<&ToxicFrog>
But that's just a guess.
16:49
<@froztbyte>
php > var_dump('123'<'456A');
16:49
<@froztbyte>
bool(true)
16:49
<@froztbyte>
php > var_dump('456A'<'78');
16:49
<@froztbyte>
bool(true)
16:49
<@froztbyte>
php > var_dump('78'<'123');
16:49
<@froztbyte>
bool(true)
16:49
<@Tamber>
;_;
16:50
<@froztbyte>
Tarinaky: ^
16:51
<&ToxicFrog>
Aaah
16:51
<&ToxicFrog>
It all makes horrible sense now
17:05 Kindamoody is now known as Kindamoody|food
17:07
<@iospace>
https://twitter.com/benbjohnson/status/533848879423578112
18:03 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
18:07 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
18:07 mode/#code [+o himi] by ChanServ
19:17 Kindamoody|food is now known as Kindamoody
20:59 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code
21:03
< Vorntastic>
I had a code question but I forgot what it was.
21:12
<@Tarinaky>
Q: What was Vorntastic's code question.
21:13 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
21:15
<@Tamber>
A: When [redacted], how many [redacted] per [redacted] if [redacted].
21:17
<@Azash>
How many redactions could a redacter redact if a redacter could redact redactions?
21:17
<@Tarinaky>
A: How many worker threads should be spawned for chucking wood before overheads and task switching start exceeding the performance gains of additional woodchucks chucking wood?
21:19
< Vorntastic>
Silliness. Oh, I remember now. Got two tables, foo and bar, and a many-many table between them. I want to select: foo_id, bar_id, and then true if the many-many exists, and false if it doesn't
21:20
<@Azash>
Basically go over each possible (foo,bar) pair?
21:21
< Vorntastic>
Yeah.
21:22
<@Azash>
Time for outer joins I guess
21:22
< Vorntastic>
Yeah, no fun.
21:24
<@Tamber>
Azash, [redacted].
21:35 * gnolam a-has as he realizes he has both the code and hardware to test arbitrary barcodes now.
21:36
<@gnolam>
(TODO: nag customer for more real test data)
22:10 Kindamoody is now known as Kindamoody[zZz]
22:10 Reiver is now known as Orth
22:21 Vornlicious [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code
22:21 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [Connection reset by peer]
22:21 Vornlicious [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [[NS] Quit: Bye]
23:08 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
23:08 mode/#code [+o himi] by ChanServ
23:23 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
23:23 mode/#code [+o Checkmate] by ChanServ
23:27 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:27 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:36 gnolam_ [lenin@Nightstar-utbkuh.cust.bredbandsbolaget.se] has joined #code
23:37 gnolam [lenin@Nightstar-utbkuh.cust.bredbandsbolaget.se] has quit [Ping timeout: 121 seconds]
23:41 gnolam_ is now known as gnolam
23:41 mode/#code [+o gnolam] by ChanServ
--- Log closed Thu Nov 27 00:00:41 2014
code logs -> 2014 -> Wed, 26 Nov 2014< code.20141125.log - code.20141127.log >

[ Latest log file ]