code logs -> 2016 -> Tue, 16 Aug 2016< code.20160815.log - code.20160817.log >
--- Log opened Tue Aug 16 00:00:41 2016
00:06 Kindamoody is now known as Kindamoody[zZz]
01:57 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: WeeChat 1.5]
02:18 * Derakon eyes https://developers.slashdot.org/comments.pl?sid=9528539&cid=52708353
02:18
<&Derakon>
Does that work?
02:20
<&[R]>
Probably.
02:31 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
02:31 mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ
03:11
<~Vornicus>
D:
03:16
<&McMartin>
That's worse than Duff's Device
04:39 catadroid` [catadroid@Nightstar-c6bece.dab.02.net] has joined #code
04:41 catadroid [catadroid@Nightstar-dv9c20.dab.02.net] has quit [Ping timeout: 121 seconds]
04:49 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:50 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
04:58 Derakon is now known as Derakon[AFK]
05:30 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
05:30 mode/#code [+o mac] by ChanServ
06:38 catadroid` is now known as catadroid
07:10
< catadroid>
Sadly it looks like my clang crash is fixed on their trunk build
07:10
< catadroid>
"sadly"
08:19 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
08:45 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [Connection closed]
09:39 Kindamoody[zZz] is now known as Kindamoody
09:40 Erik [NSwebIRC@Nightstar-ph8r12.cust.telenor.com] has joined #code
09:40 * Erik screams internally, externally and textually. Aaagh. Aaaagh. Aaaaaa.
09:41
< Erik>
I have bumped into company's "translation" program. Or rather the lack of one.
09:41
< Erik>
Messages to be translated are segregated on wiki webpages by which release version they appear in.
09:41
< catadroid>
I10n, which has as much teeth as it sounds like?
09:42
< Erik>
There are atrocious mismatches: misspelled English sentence that does not correspond AT ALL to the ungrammatical Norwegian sentence in the other column.
09:42
< catadroid>
That sounds like quite the process
09:42
< Erik>
The column for Norwegian sentences is headed with the title "Norweigian", which is a terrible terrible sign for a translation-related page.
09:43
< Erik>
There is no translation program and there are no translators. The messages have been thrown up on wikipages as releases roll out, then "whoever is available" has done whatever they can in translating. Aaaaaaaaa.
09:43
< Erik>
Untranslated English words are left in the Norwegian phrases.
09:43
< Erik>
Words have been translated that should not be translated because they cannot be translated.
09:44
<@TheWatcher>
...
09:44
< Erik>
To wit, the English indefinite articles are "a"/"an", depending on the initial letter of the following word.
09:44
< Erik>
The Norwegian indefinite articles are "en"/"ei"/"et", depending on the gender of the noun referred to.
09:44
< Erik>
The translation page says that English article "an" shall be translated with Norwegian article "en".
09:44
< Erik>
(Or maybe the other way around; directionality is not specified.)
09:45
< Erik>
Aaaaaaagh.
09:46
<@TheWatcher>
Obviously, you need to get some version of "Luftputebåten min er full av ål" in there~
09:47
< Erik>
That would be an improvement. The quality level here is more like "Oh dear! It seems my airpillowboat has been filled with ål. Please close and start the app."
09:48
<@TheWatcher>
.... ahahahahah
09:48
<@TheWatcher>
I shouldn't be amused at your pain, sorry, but gods >.<
09:49
< Erik>
TheWatcher: You know what's really amusing? The app in question has passed a million users already.
09:50
< Erik>
Whoever may or may not get put on a translation project if one gets organized (I am screaming at them to please put me on this, I have professional experience) will be playing oh god catchup for something that's on international release 1.6.x.
09:56 Erik [NSwebIRC@Nightstar-ph8r12.cust.telenor.com] has quit [[NS] Quit: ]
10:09 celticminstrel is now known as celmin|sleep
10:16
< catadroid>
I just had a brain about inheritance
10:16
< catadroid>
It's difficult because every time you inherit you increase the context
10:17
< catadroid>
And if I'm applying the idea of keeping context small in order to preserve short term memory registers in the brain, composition is obviously better
10:17
< catadroid>
Since that retains the composed object as a nominal pivot point
10:18 * catadroid hms
10:19 * TheWatcher presses ze button that starts the process of upgrading gitlab
10:20
<@TheWatcher>
(I just know this is going to be full of spiders and pain)
11:05 catadroid [catadroid@Nightstar-c6bece.dab.02.net] has quit [The TLS connection was non-properly terminated.]
11:08 catadroid [catadroid@Nightstar-c6bece.dab.02.net] has joined #code
11:09 catadroid` [catadroid@Nightstar-ante8l.dab.02.net] has joined #code
11:12 catadroid [catadroid@Nightstar-c6bece.dab.02.net] has quit [Ping timeout: 121 seconds]
11:48
< catadroid`>
Yeah, for all of Go's oddities I love the general premise
12:17
< catadroid`>
That moment when you've delegated a task to the coder you mentored and he does a better job of it than you would have ^.^ *proud*
12:17 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
12:26
<@TheWatcher>
The thing about Go for me is that I really bloody hope it's production-worthy, because gitlab has a git http helper written in Go, and I really don't want it to fuck up in the middle of labs or someshit.
12:28
< catadroid`>
Hah
12:28
< catadroid`>
Fair
12:28 catadroid` is now known as catadroid
12:55
<@simon>
the shortcuts of unix programs on mac seem a little schizophrenic.
12:56
<@simon>
there is a completely inconsistent competition about what the various control keys should do in emacs.
12:56
<@TheWatcher>
Ohgods
12:57
<@TheWatcher>
YEah
12:58
<@simon>
ctrl+arrows is reserved for osx'es window system, cmd+arrows lets me skip text by words/paragraphs, ctrl+w deletes text, cmd+w copies, ctrl+y pastes. I just mess up ctrl and cmd *all* the time.
12:59
<@simon>
I was beginning to like the consistency of cmd+c, cmd+v for copy/paste that even works in the terminal.
13:00
<@simon>
but now it's either cmd+c/cmd+v or cmd+w/ctrl+y :P
13:00 * simon should do some remapping.
13:00
<@simon>
also, the ctrl+arrows is really useless. I should disable that and use it for saner things.
13:00
<@Azash>
https://twitter.com/musalbas/status/765318905942376449
13:00
<@simon>
I had just been hoping osx would be like ubuntu: sane defaults, so you don't waste so much time customizing your setup to a point where you can't live without them.
13:04 Kindamoody is now known as Kindamoody|out
13:58
<@TheWatcher>
Sweet merciful Cthulhu, I hate ruby
14:05
< catadroid>
Anything specifically?
14:09
<@TheWatcher>
Partly dealing with version changes (in this case, 2.0 to 2.1), partly that any time I need to poke around inside ruby code, it feels like I'm having to be a bleedin detective
14:10
<@TheWatcher>
Moreso than in pretty much any other language I've dealt with
14:10
< catadroid>
It seems to have taken the Perl philosophy and used it to murder smalltalk
14:53
<&ToxicFrog>
Hmm. Naming question. I am working on a command line flag parsing library. Its main entry point is flags.parse(...), which takes a command line as input and returns the table of parsed flag values and residual positional arguments.
14:53
<&ToxicFrog>
I want to write an "incremental parse" function, which is tolerant of unrecognized flags.
14:54
<&ToxicFrog>
(the idea being that you can call it very early, before all the flag definitions are loaded, to set up e.g. logging)
14:54
<&ToxicFrog>
Something like 'parsePartial' or 'parseIncremental' would work as a name, but I want a single-word name for consistency with the rest of the library.
14:54
<&ToxicFrog>
And I'm having trouble thinking of one.
14:55
< catadroid>
flags.parsial. Or, more seriously, parse and parseAll?
14:56
< catadroid>
Hm
14:56
< catadroid>
parseTolerant
14:56
< catadroid>
Single words though
14:57
< catadroid>
Isn't this more of an error handling switch?
14:57
<@Azash>
parsial is amazing
15:02
<&ToxicFrog>
catadroid: kind of, yeah
15:02
<&ToxicFrog>
Maybe I just need to rethink parse() to take an array and some options rather than being VA
15:07
<&ToxicFrog>
(and break all the code using it, but AFAIK I'm the only person who does, so it's ok)
15:23 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:30 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
15:33
<@ErikMesoy>
I have an addendum to the Abomination of Translation from earlier today
15:33
<@ErikMesoy>
TXT_KEY_USERMOENY
15:33
<@ErikMesoy>
(but don't worry, it's consistently spelled this way across all versions of the app for different platforms and in the database, so everything works fine)
15:43 celmin|sleep is now known as celticminstrel
16:44 Derakon[AFK] is now known as Derakon
16:48
<&ToxicFrog>
Ok, yeah, I think it's going to change from flags.parse(...) to flags.parse(argv, allow_undefined, allow_missing)
16:50 * catadroid nods
16:51
< catadroid>
No love for parsial? ;)
16:59
< catadroid>
C++ is such a mess
17:17
<&ToxicFrog>
parsial is great but I want something that won't require other users to go "what?" every time they see it :P
17:18
<@Azash>
catadroid: I encountered embedded GUI middleware written in C++ over the last week
17:19
<@Azash>
It was possibly the worst mess I've ever seen
17:23
< catadroid>
That sounds awful
17:39 catadroid` [catadroid@Nightstar-2te.jtr.132.82.IP] has joined #code
17:40 catadroid` [catadroid@Nightstar-2te.jtr.132.82.IP] has quit [[NS] Quit: Bye]
17:40 catadroid` [catadroid@Nightstar-2te.jtr.132.82.IP] has joined #code
17:40 catadroid` [catadroid@Nightstar-2te.jtr.132.82.IP] has quit [[NS] Quit: Bye]
17:41 catadroid` [catadroid@Nightstar-2te.jtr.132.82.IP] has joined #code
17:42 catadroid [catadroid@Nightstar-ante8l.dab.02.net] has quit [Ping timeout: 121 seconds]
17:48 wolfmoon [wolfmoon@Nightstar-040.48u.177.41.IP] has joined #code
17:48
< wolfmoon>
Hello
17:48
< wolfmoon>
@Pi mentioned the channel to me :)
17:49
< wolfmoon>
Does anyone maybe have a minute to help with something?
17:49
< wolfmoon>
How does basic HTTP auth work? I am currently working on a django project but it has to use basic http auth but I do not know exactly what that entails
17:49
< wolfmoon>
I read somewhere that is uses HTTP headers. Now what does that mean?
17:56
<@celticminstrel>
I wonder if the compiler is smart enough to deduplicate identical lambdas.
18:06
<&Derakon>
wolfmoon: you should be able to install an auth module for Django.
18:07
<&Derakon>
Then you put an "auth_required" (or something like that, I forget specifiecs) decorator on various view methods and they'll fail if the user isn't logged in.
18:07
<&Derakon>
You'll also need a login page of course, but the Django auth module provides a basic one you can use.
18:19 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
18:19 Vornotron [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
18:21
< wolfmoon>
Thanks all! I will have a look at that
18:45 gnolam [quassel@Nightstar-t2vo1j.tbcn.telia.com] has joined #code
18:45 mode/#code [+o gnolam] by ChanServ
18:46
<&[R]>
I don't think anyone uses HTTP auth anymore.
18:46
<&[R]>
Except Nagios
18:50
<@Pi>
wolfmoon: Yeah, Django's built in auth system should do everything you need.
18:51
< wolfmoon>
Thanks! :D
18:54
<@celticminstrel>
...so, if I write "subclass_instance == superclass_instance", which operator== is called?
18:55
<@celticminstrel>
The subclass one or the superclass one?
18:55
<&ToxicFrog>
What language?
18:55
<@celticminstrel>
(Asuming only heterogenous operator== are defined)
18:55
<@celticminstrel>
C++
18:56 * ToxicFrog defers to catalyst
18:57
< catalyst>
I would assume that's subclass.operator==(superclass)
18:58
< catalyst>
But I'd define an operator== as a free function partly for this reason
18:58
< catalyst>
If it was a real running system I'd be putting breakpoints in to check these assumptions
18:58
<&Derakon>
Per http://en.cppreference.com/w/cpp/language/operators I believe it uses the subclass operator==
18:58
< catalyst>
Writing code that relies on them feels broken
19:03
<&McMartin>
Agree
19:03
<&McMartin>
But yeah, I think "this" is nevertheless always the LHS of binary overridden ops
19:05
<&[R]>
Least Hellish Senario?
19:08
<&Derakon>
Left Hand Side.
19:14
< wolfmoon>
Hello, may I ask another silly question? Since I am new to Django, would this line of code work:
19:14
< wolfmoon>
url(r'Weather/',include('WeatherModule.urls'))
19:15
< wolfmoon>
In the url for the main application-place
19:15
<&Derakon>
I'm a bad person to ask for specifics about Django. That looks right, but there could easily be some minor typo that I wouldn't recognize just because I'm rusty.
19:16
< wolfmoon>
My main question is actually if the r'^weather/' acts as a place holder? :P
19:16
< wolfmoon>
Because I do not want WeatherModule to appear in the URL
19:16
< Vornotron>
why is that a r-- oh, it's a regex, okay
19:16
<&Derakon>
The first parameter to the url() function is the string that will appear in the URL in the user's browser.
19:17
< wolfmoon>
Ah ^^ Thought so, thank you
19:17
<&Derakon>
So "WeatherModule" shouldn't appear in the URL. Unless of course its URLs module contains URLs with "WeatherModule", in which case you might see e.g. "Weather/WeatherModule/foo.html". But that seems unlikely.
19:17
< wolfmoon>
Vornotron: Is a rejex a place holder for something like that?
19:18
< wolfmoon>
Ah, yeah, the tutorial used their module name in the rejex (if that IS the name of the r'^)
19:18
< Vornotron>
I don't know django at all. I was wondering why you were using a raw string for the first input, yes
19:18
< wolfmoon>
Oh okay :)
19:18
< Vornotron>
raw strings are used for regexes so you don't get backslashsplosion
19:19
< wolfmoon>
That makes sense.
19:21
<&ToxicFrog>
(they're also used for other things, but in this case it's being used for a regex)
19:25
<&[R]>
Shouldn't it be: r"^/Weather/"?
19:26
< wolfmoon>
Python allows both " and '
19:26
<&[R]>
That wasn't my point
19:27
< wolfmoon>
What was your point?
19:27
<&[R]>
Look at my regex?
19:27
<&[R]>
I mean, you don't want to be matching /Foo/Weather do you?
19:31
< wolfmoon>
I am not following? If you add the / then it has to be doubled in the browser
19:31
< wolfmoon>
url*
19:31
<&[R]>
No
19:31
<&[R]>
Servers get the URI with a leading /
19:33
<&[R]>
Ah, django strips that
19:33
<&[R]>
However, you still want ^ at the start
19:38
< wolfmoon>
Yes, the ^ still needs to be there
19:45
< wolfmoon>
[R]:Thank you for the help though :D
21:18 ion [Owner@Nightstar-2qv0j0.vs.shawcable.net] has quit [[NS] Quit: bye]
21:22
< wolfmoon>
Hello
21:30
< Vornotron>
Is it me you're looking for
21:32
<@abudhabi>
I can see it in your eyes
21:32 ion [Owner@Nightstar-2qv0j0.vs.shawcable.net] has joined #code
21:39 Vornotron is now known as Vornicus
21:39 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:55 Kindamoody|out is now known as Kindamoody
22:42 wolfmoon [wolfmoon@Nightstar-040.48u.177.41.IP] has quit [[NS] Quit: leaving]
22:44 Kindamoody is now known as Kindamoody[zZz]
23:33 catadroid` is now known as catadroid
--- Log closed Wed Aug 17 00:00:56 2016
code logs -> 2016 -> Tue, 16 Aug 2016< code.20160815.log - code.20160817.log >

[ Latest log file ]