code logs -> 2015 -> Wed, 21 Oct 2015< code.20151020.log - code.20151022.log >
--- Log opened Wed Oct 21 00:00:58 2015
00:31 ion [Owner@Nightstar-ck1244.bchsia.telus.net] has joined #code
00:55 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
00:56 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
00:56 mode/#code [+qo Vornicus Vornicus] by ChanServ
01:18 Alek [Alek@Nightstar-03ja8q.il.comcast.net] has quit [Ping timeout: 121 seconds]
01:23 Alek [Alek@Nightstar-03ja8q.il.comcast.net] has joined #code
01:23 mode/#code [+o Alek] by ChanServ
01:25 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
01:26 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
01:26 mode/#code [+qo Vornicus Vornicus] by ChanServ
02:42 Alek [Alek@Nightstar-03ja8q.il.comcast.net] has quit [Connection closed]
02:46 Alek [Alek@Nightstar-03ja8q.il.comcast.net] has joined #code
02:46 mode/#code [+o Alek] by ChanServ
02:59 ion [Owner@Nightstar-ck1244.bchsia.telus.net] has quit [Ping timeout: 121 seconds]
02:59 ion [Owner@Nightstar-ck1244.bchsia.telus.net] has joined #code
04:45 Turaiel is now known as Turaiel[Offline]
05:08 Derakon is now known as Derakon[AFK]
05:17 JustLurk [justbob@ServerAdministrator.Nightstar.Net] has joined #code
05:17 JustBob [justbob@Nightstar.Customer.Dissatisfaction.Administrator] has quit [NickServ (RECOVER command used by JustLurk)]
05:17 JustLurk is now known as JustBob
05:17 mode/#code [+o JustBob] by ChanServ
05:44 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has quit [Ping timeout: 121 seconds]
06:11 Wulfric is now known as abudhabi
06:45 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
06:46 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
08:00 celticminstrel [celticminst@Nightstar-qp4eva.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
09:34 Meatyhandbag [sebastianfe@Nightstar-ram.3qf.224.136.IP] has quit [Client exited]
10:18 Xires is now known as ^Xires
10:27 ^Xires is now known as Xires
11:40 macdjord|slep [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
11:50 macdjord|slep [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
11:50 mode/#code [+o macdjord|slep] by ChanServ
13:05 AverageJoe [evil1@Nightstar-8oo6se.kamome.or.jp] has joined #code
13:05 Turaiel[Offline] is now known as Turaiel
13:06 Turaiel is now known as Tur|Work
13:59 AverageJoe [evil1@Nightstar-8oo6se.kamome.or.jp] has quit [Ping timeout: 121 seconds]
14:25 celticminstrel [celticminst@Nightstar-qp4eva.dsl.bell.ca] has joined #code
14:25 mode/#code [+o celticminstrel] by ChanServ
14:27 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [The TLS connection was non-properly terminated.]
14:31 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
14:31 mode/#code [+ao ToxicFrog ToxicFrog] by ChanServ
15:18 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
15:18 mode/#code [+o Crossfire] by ChanServ
15:36 Meatyhandbag [sebastianfe@Nightstar-ram.3qf.224.136.IP] has joined #code
15:39
<@Syloq>
ooh, thats very very nice.
15:40
<@TheWatcher>
?
15:40
<@Syloq>
letsencrypt
15:41
<@TheWatcher>
Oh, aye, that it is.
15:41
<@Syloq>
about time theres something out there useful, free, and supported by browsers.
15:42
<@Syloq>
and isn't the clusterfuck that is startcom
15:45
<@TheWatcher>
I haven't really looked at it muugh. Hopefully it'll do wildcards...
15:46
<@TheWatcher>
... aaand, no, they don't
15:49
<@TheWatcher>
"Hopefully wildcards arenāt necessary for the vast majority of our potential subscribers because it should be easy to get and manage certificates for all subdomains"... which is only true if you can put subdomains on different IP addresses
15:50
<@Syloq>
well technically you can generate everything automatically..then all you need is a script to deploy
15:50
<@Syloq>
differen't ips shouldn't matter though.
15:51 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code
15:51
<@Tamber>
Then have 'a.example.com', 'b.example.com', etc. all on the same IP use different certs?
15:51
< Vorntastic>
Git: I wish to see the last time each file was committed.
15:52
<@Tamber>
While I believe it's possible to configure web-servers to choose SSL cert based on the requested host, the support for that on the browser side was nearly non-existant.
15:52
<@TheWatcher>
Tamber: bingo
15:52
<@Syloq>
hmmmm
15:52
<@Syloq>
its thats true...this whole thing is broken...lame
15:53
<@TheWatcher>
If you don't have the same cert (ie: a wildcard cert) on each subdomain, you're pretty much fucked.
15:53
<@Tamber>
TW: It's exactly the boat I'm in with certs; so, uh... thanks for spotting that, because I was just beginning to think that letsencrypt would be a useful change from CACert.
15:53
<@TheWatcher>
Unless you have each subdomain on a different IP
15:53
< [R]>
<Tamber> Then have 'a.example.com', 'b.example.com', etc. all on the same IP use different certs? <-- not all httpds and browsers support that
15:53
<@Tamber>
[R], exactly as I said. ;)
15:53
<@Syloq>
heh
15:53
<@TheWatcher>
[R]: and by "not all" you mean "most"~
15:54
<@Syloq>
well I'm happy I could get valid certs installed on the servers here on Nightstar. Instead of the self-signed ones that are apain in the ass to setup.
15:54
<@TheWatcher>
Aye
15:54
<@Tamber>
It's better than the previous situation, definitely.
15:54
<@Syloq>
for sure.
15:55
<@Syloq>
I've always thought of certs as a scam anyway. Seems like a way to extort money out of people that doesn't actually provide any better security than writing your information on a piece of paper and only giving it to one person.
15:56
<@Tamber>
Well, there's the cost of verifying the provided information to be considered; but I highly suspect that most of the cost is the "Because we can, and fuck you" tax.
15:56
< [R]>
Certificate Authorities are supposed to provide one service: proof of legitimacy.
15:57
< [R]>
Otherwise, self-signed certs are fine.
15:57
<@Syloq>
Tamber; exactly.
15:58
<@Syloq>
well yeah, thats the idea...but in practice its a guy with a script saying "yup this'll work. *Approved*"
15:58
<@Tamber>
(Because who else can you go to other than another similarly-priced bastids, if you want to not have brightly-coloured screaming warnings every time someone hits your servers... :/ )
16:04
< Vorntastic>
(Specifically I want: "foo.txt last committed on june 5, commit 2ef3c891 by bob; bar.txt last committed on august 3, commit 493e4f21 by joe..."
16:04
<@Syloq>
github does that for you
16:04
<@Syloq>
heh
16:06
< Vorntastic>
I know that, but this is a local repo.
16:07
< [R]>
man git-checkout
16:12
< Vorntastic>
That seems to collect a specific revision and make it the working copy.
16:13
< [R]>
Yes, and it can target specific files.
16:15
< [R]>
git checkout branch -- file
16:16
< Vorntastic>
I'm not seeing how this tells me what the last time each file was committed was.
16:16
< [R]>
?
16:16
< [R]>
In your question, you stated the specific commits you wanted the files from.
16:16
< [R]>
I don't understand how time has anything to do with this.
16:17
< Vorntastic>
No, no
16:17
< Vorntastic>
I have a list of files. I want to know the last revision each was revised in.
16:18 ion [Owner@Nightstar-ck1244.bchsia.telus.net] has quit [Ping timeout: 121 seconds]
16:18
< [R]>
git blame?
16:21
< [R]>
for f in FILELIST; do git blame -- $f | head -1; done
16:23
< Vorntastic>
That looks like it might work.
16:26 Derakon[AFK] is now known as Derakon
16:30 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
16:33
< Vorntastic>
Yes. Thank you!
16:36 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [[NS] Quit: Bye]
17:23 * Derakon prods work, is going to talk at the channel for a bit.
17:23
<&Derakon>
So.
17:23
<&Derakon>
We have a customizable window, where you can drag and drop controls, kind of like those customizable toolbars in most document-creation programs (Word, etc.).
17:24
<&Derakon>
There's the actual window, then there's the "palette" where you can select which controls to add to the window.
17:24
<&Derakon>
The palette contains icons that look like the controls.
17:24
<&Derakon>
We do this by actually creating the controls off-screen, and rendering them to an image, which we use for the icon.
17:25
<&Derakon>
When the user drags an icon into the main section, then we have to re-create the controls properly, and add them to the window's layout.
17:25
<&Derakon>
Now. Some controls need to be configurable.
17:25
<&Derakon>
Like, if you have a button that's supposed to turn on one of a set of lasers when pressed, then when you drop the button into the window, a little dialog should pop up prompting you for which laser to use.
17:26
<&Derakon>
Additionally, when we start the program again in a new session, we want to restore the window's layout and configuration as it was the last time the program was run.
17:26
<&Derakon>
We have a class called a PropertyMap that's basically a key-value store, which we use for configuration elsewhere in the program. Sort of like a JSON dictionary but strongly-typed.
17:27
<&Derakon>
So I figure, the method that creates the control should take a PropertyMap describing how it should be configured (in our example, which laser it should toggle on).
17:27
<&Derakon>
But now our workflow looks a little screwy.
17:28
<&Derakon>
1) Create "prototype" control, render it to image, use as icon.
17:28
<&Derakon>
2) User drags icon into main window.
17:28
<&Derakon>
3) Create configuration dialog, resulting in PropertyMap.
17:28
<&Derakon>
...I guess while the dialog is up, we leave the iconized version of the control in place in the window, instead of trying to render the actual control.
17:29
<&Derakon>
4) Feed PropertyMap to createControl method to create actual control, add actual control to window...
17:29
<&Derakon>
Yeah, okay, that works.
17:29
<&Derakon>
But it's gonna require reworking substantially how the current system works. Phooey.
17:30
<&Derakon>
Current system is non-configurable, and is basically drag icon into window -> create new control, done.
17:31
<&Derakon>
The intermediary step where we know what control to add but it hasn't been configured yet is kind of ugly for my existing program flow, especially since we need to be careful not to block the GUI thread.
17:47 * jerith has a partial implementation of Human Resource Machine's assembler in RPython.
17:48
<&jerith>
(Yes, I'm writing a JIT-enabled interpreter for a tiny programming language from a game.)
17:49 * jerith shall read Derakon's text shortly.
17:49 Meatyhandbag [sebastianfe@Nightstar-ram.3qf.224.136.IP] has quit [Client exited]
17:53 Meatyhandbag [sebastianfe@Nightstar-rm5.lp7.224.136.IP] has joined #code
17:54
<&jeroud>
Derakon: Can't you just keep the images on the filesystem or something?
17:55
<&Derakon>
Jer: no, because this is a pluggable system and controls may be generated procedurally.
17:55
<&Derakon>
I could demand that every plugin provide an image that is the icon of the controls, but then it's harder for people to implement really simple buttons and the like.
17:55
<&Derakon>
And we want that to be as easy as possible.
17:57
<&jeroud>
Ah, right.
17:58
<&jeroud>
Can you add a getImage() static method or something?
17:59
<&jeroud>
The default would be to do what you currently do, but things that need configuration could do something else.
18:00
<&Derakon>
Plugins are allowed to provide their own icons.
18:00
<&Derakon>
They aren't required to though.
18:04 gizmore [kvirc@Nightstar-4hic87.dip0.t-ipconnect.de] has joined #code
18:46 Meatyhandbag [sebastianfe@Nightstar-rm5.lp7.224.136.IP] has quit [Ping timeout: 121 seconds]
19:03 AverageJoe [evil1@Nightstar-8oo6se.kamome.or.jp] has joined #code
19:08 Meatyhandbag [sebastianfe@Nightstar-rm5.lp7.224.136.IP] has joined #code
19:36 AverageJoe [evil1@Nightstar-8oo6se.kamome.or.jp] has quit [[NS] Quit: Leaving]
20:03 Meatyhandbag [sebastianfe@Nightstar-rm5.lp7.224.136.IP] has quit [Client exited]
20:38 Meatyhandbag [sebastianfe@Nightstar-ram.3qf.224.136.IP] has joined #code
21:36 thalass [thalass@Nightstar-283.o7s.158.104.IP] has joined #code
21:36 mode/#code [+o thalass] by ChanServ
21:57 * Tamber drinks, sobs softly.
21:57
<@Tamber>
Context! I have a piece of code to place a character at a given location in a VGA text display. This is defined as putchar(char, x, y)
21:57
<@Tamber>
Everywhere I have used it to put a character at a given X and Y, it has worked.
21:58
<@Tamber>
Except in the loop to 'clear' the screen by writing a space over all positions.
21:58
<@Tamber>
In this place, and only this place, I have to call it as putchar(char, y, x)
21:58
<&Derakon>
Guessing the parameters for your y and x loops are switched.
21:58
<@Tamber>
x counts up to width, y counts up to height.
21:58
<&Derakon>
Is width in fact the width, and height in fact the height? :)
21:59
<@Tamber>
Given that they're constants that everything else is also using, and also appear to be correct, I think so.
21:59
<@Tamber>
..
21:59 * Derakon shrugs.
21:59
<@Tamber>
Well, bugger me with a spoon. Apparently I need to cut back on the drink, because I just doublechecked...
22:00
<&Derakon>
Fire up the debugger and/or copious print statements.
22:00
<&Derakon>
Heh.
22:00
<@Tamber>
static const size_t term_height = 80;
22:00
<@Tamber>
static const size_t term_width = 25;
22:00
<&Derakon>
Hahaha.
22:00
<@Tamber>
Spot what's wrong
22:00
<&Derakon>
High-five. :)
22:00
<@Tamber>
Thank-you. :)
22:00
<&Derakon>
Never underestimate the incompetence of your past self.
22:00
<&Derakon>
They're the jerk whose code you're having to debug, after all.
22:00
<@Tamber>
Ayup.
22:01
<@Tamber>
Faith in consistency of the universe restored~
22:01
<&McMartin>
"Ever want to go back in time and do battle with your past self? Software development is the career for you!"
22:01 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
22:01 mode/#code [+o Reiv] by ChanServ
22:01
<@Tamber>
:D
22:02
<@Tamber>
This would have explained why I thought my array maths looked a little wonky but couldn't quite but my finger on it.
22:03
<@Tamber>
Since (y * width)+x didn't work; and (y * height)+x did.
22:05
<@Tamber>
(Also, Rubber Derakon Debugging ftw?)
22:09
<&Derakon>
...is this some kind of reference to rubber-hose cryptanalysis or something?
22:09
<&Derakon>
Oh, rubber-duck debugging.
22:09
<&Derakon>
S'what the channel's here for, really.
22:30
< abudhabi>
When will man writers learn that the only part of the man page I'm interested in is the typical use example?
22:46
<@Alek>
what's rubber-duck debugging again?
22:47
<@Alek>
oh, sounding-board?
22:47
<@Tamber>
Yeah.
22:48
<@Tamber>
In the hope that something twigs and you realise what's wrong.
22:48 * Alek nods, agrees.
22:51
<&McMartin>
also goldfishing
23:04
<@Alek>
?
23:04
<@Alek>
no relation to catfishing, one hopes. :P
23:06
<&McMartin>
goldfishing, rubber-ducking, and sounding-boards are all the same thing
23:09
<@Alek>
ah.
23:15 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
23:16 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
23:16 mode/#code [+o Reiv] by ChanServ
23:16
<&Derakon>
The original version I heard involved a teddy bear on a table outside the TA's room.
23:16
<&Derakon>
With a sign reading "tell it to the bear first".
23:24 Omega [Alek@Nightstar-03ja8q.il.comcast.net] has joined #code
23:24 mode/#code [+o Omega] by ChanServ
23:24 Alek [Alek@Nightstar-03ja8q.il.comcast.net] has quit [Ping timeout: 121 seconds]
23:27 Omega is now known as Alek
23:35 Alek [Alek@Nightstar-03ja8q.il.comcast.net] has quit [[NS] Quit: bbiaw]
--- Log closed Thu Oct 22 00:00:14 2015
code logs -> 2015 -> Wed, 21 Oct 2015< code.20151020.log - code.20151022.log >

[ Latest log file ]