code logs -> 2015 -> Fri, 17 Apr 2015< code.20150416.log - code.20150418.log >
--- Log opened Fri Apr 17 00:00:51 2015
00:01 Alek [omegaboot@Nightstar-03ja8q.il.comcast.net] has joined #code
00:01 mode/#code [+o Alek] by ChanServ
00:27 [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds]
00:55 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has joined #code
00:55 mode/#code [+o himi] by ChanServ
00:56 [R] [rstamer@Nightstar-d7h8ki.org] has joined #code
01:02 Derakon_ is now known as Derakon
01:02 mode/#code [+ao Derakon Derakon] by ChanServ
01:21 kourbou [kourbou@Nightstar-3tb241.isp.broadviewnet.net] has joined #code
01:37
<@froztbyte>
abudhabi: pearwood
01:38
<@froztbyte>
TheWatcher: doing that as a perl module for having it run on the fly?
01:38
<@froztbyte>
insanity :/
01:38 * froztbyte just indexes on the logfiles after they're flushed to disk (and quassel does it automatically at its level)
02:04 Alek [omegaboot@Nightstar-03ja8q.il.comcast.net] has quit [[NS] Quit: brb again]
02:08 Alek [omegaboot@Nightstar-03ja8q.il.comcast.net] has joined #code
02:09 mode/#code [+o Alek] by ChanServ
02:27 kourbou [kourbou@Nightstar-3tb241.isp.broadviewnet.net] has quit [Connection closed]
02:27 kourbou [kourbou@Nightstar-3tb241.isp.broadviewnet.net] has joined #code
02:41 kourbou is now known as kourbou|zzz
03:42 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection reset by peer]
03:43 Xires is now known as ^Xires
03:43 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
03:45 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection reset by peer]
03:46 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
04:49 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
04:53 Kindamoody[zZz] is now known as Kindamoody
05:07 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
05:11 Derakon is now known as Derakon[AFK]
05:15 Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has quit [Client exited]
05:17 Turaiel is now known as Turaiel[Offline]
05:45 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
05:48 Turaiel[Offline] is now known as Turaiel
06:49 Turaiel is now known as Turaiel[Offline]
07:22
<@TheWatcher>
froztbyte: irssi's plugin system makes it fairly easy actually.
07:22 Harlow [harlow@Nightstar-pq0497.il.comcast.net] has joined #code
07:23
<@TheWatcher>
(irssi runs its own internal perl terp for plugins)
07:50 Kindamoody is now known as Kindamoody|afk
08:18
<@froztbyte>
yeah, I'm familiar with it
08:18
<@froztbyte>
it just seems insane ;p
08:22 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has quit [Ping timeout: 121 seconds]
08:23
<@TheWatcher>
This is not something that has ever stopped me before! ;D
08:25 himi [fow035@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
08:34 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code
08:34 mode/#code [+o gnolam] by ChanServ
09:11 Harlow [harlow@Nightstar-pq0497.il.comcast.net] has quit [[NS] Quit: BED]
09:28
<@froztbyte>
true
09:50 * TheWatcher needs more tea, hast just spent several minutes trying to work out why emacs was opening in a terminal rather than creating a window
09:50
<@TheWatcher>
-t
09:51
<@TheWatcher>
Turns out emacs actually expects there to be a display available to open windows on. Amazing.
09:51
< abudhabi>
I was going to hypothesize that you didn't possess enough finger-appendages to properly operate it.
09:52
< abudhabi>
( http://www.gnu.org/software/emacs/its-cover.png )
09:53
<@TheWatcher>
Heh, I've used emacs for over 20 years now, my hands totally don't look like that at all.
09:53
<@TheWatcher>
>.>
09:53
<@TheWatcher>
<.<
09:55 * TheWatcher misses his old Sun Type 5 keyboard vaugely
10:00 macdjord|wurk is now known as macdjord|slep
10:47 himi [fow035@Nightstar-v37cpe.internode.on.net] has joined #code
10:47 mode/#code [+o himi] by ChanServ
11:03 * TheWatcher ponders
11:04
<@TheWatcher>
Actually, I should still /have/ a Type 5 in the attic. I wonder if it still works.
11:04
<@TheWatcher>
Of course, I have no way of connecting it to a modern machine right now...
11:56 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
12:07 * TheWatcher eyes this code, sighs
12:18
<@TheWatcher>
Users can subscribe to get email digests of feeds. Logged in users get the email sent to their profile address by default, but can provide an alternative address. Users without accounts can subscribe by providing an email address.
12:19
<@TheWatcher>
If logged-in users subscribe without specifying an alternate email, their subscription is active immediately.
12:20
<@TheWatcher>
If an alternate email is specified, or a user without an account subscribes with an email, an activation code is sent to that address.
12:22
<@TheWatcher>
This mostly works
12:23
<@TheWatcher>
The problem occurs when a non-logged-in user subscribes with an address, logs in, and then sets up more subscriptions using the same address, because now it's treating them as two different sets of subscriptions.
12:25 kourbou|zzz is now known as kourbou
12:25
<@TheWatcher>
all I can think of to make it work safely are to either 1) check for existing email-only subscriptions that match the alternate address, and if one exists refuse to let the user set up the new subscription until the old one is deleted, or 2) when activating subscriptions for user with alternate emails, check whether email-only subscriptions with the same address exist, and if so merge them.
12:26
<@TheWatcher>
I'm guessing 2 is likely to be more user-friendly.
12:52 kourbou is now known as kourbou|brkfst
12:55
< abudhabi>
Hum.
12:56
< abudhabi>
Java. foo.getBar().setProperty("whatever") would change the Bar in foo, right?
12:57
<@Tarinaky>
Assuming Bar is an object and not a primitive.
12:58
<@Tarinaky>
Which I think you're implying...
12:58
< abudhabi>
Yes.
12:58
<@Tarinaky>
/and/ assuming getBar isn't doing anything strange like clone-ing.
13:10 kourbou [kourbou@Nightstar-3tb241.isp.broadviewnet.net] has joined #code
13:10 kourbou|brkfst [kourbou@Nightstar-3tb241.isp.broadviewnet.net] has quit [Connection reset by peer]
13:11 kourbou|phone [kourbou@Nightstar-qtu.ebl.56.172.IP] has joined #code
13:14 kourbou [kourbou@Nightstar-3tb241.isp.broadviewnet.net] has quit [Ping timeout: 121 seconds]
13:17 kourbou|phone [kourbou@Nightstar-qtu.ebl.56.172.IP] has quit [Ping timeout: 121 seconds]
13:19 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has quit [[NS] Quit: Update]
13:25 * TheWatcher eyes this perl code, ....s at the syntax this guy is using
13:26
< abudhabi>
Is it distinguishable from compiled code?
13:27
<@TheWatcher>
DBI->connect_cached( @{ $self->_dbi }{qw(dsn username password)}, { ...attrs here... });
13:29
< abudhabi>
I'm afraid that I don't know enough Perl to parse that.
13:31 NSGuest12245 [kourbou@Nightstar-srlgm1.tmodns.net] has joined #code
13:39 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code
13:39 mode/#code [+o gnolam] by ChanServ
13:40
<@TheWatcher>
Many people who *do* know perl would need a run-up to parse that. It's doing a hash lookup for the values of 'dsn', 'username' and 'password' in the result from $self->_dbi (which may or may not be a function call) and using them as the first three explicit arguments to connect_cached
13:41
<@TheWatcher>
It's perfectly valid syntax, just ghastly.
13:57 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has joined #code
13:57 mode/#code [+o Checkmate] by ChanServ
14:08 NSGuest12245 [kourbou@Nightstar-srlgm1.tmodns.net] has quit [[NS] Quit: Bye]
14:08 kourbou [kourbou@Nightstar-srlgm1.tmodns.net] has joined #code
14:10
<@froztbyte>
irunno, looks about like normal perl
14:12 kourbou is now known as kourbou|bus
14:13
<@TheWatcher>
My prefered way to do that would be
14:14
<@TheWatcher>
my $dbsettings = $self -> _dbi(); my $dbh = DBI -> connect_cached($dbsettings -> {"dsn"}, $dbsettings -> {"username"}, $dbsettings -> {"password"}, { ...attrs here... });
15:06
<@Wizard>
What's the difference between #!/bin/bash and #/bin/bash ?
15:07
<&ToxicFrog>
Wizard: the latter is a comment. The former is a shebang line, used at the start of the file to tell the OS what interpreter to use for the file.
15:08
<@Wizard>
I know about shebangs yeah
15:08
<@Wizard>
I'm wondering because someone who wrote this vagrant script used the latter
15:08
<@Wizard>
And it still seems to work fine
15:08
<&ToxicFrog>
What's Vagrant?
15:08
<@Wizard>
Vagrant script as in script executed by vagrant during setup
15:08
<@Wizard>
A tool designed to set up uniform servers with minimal user input
15:08
<&ToxicFrog>
It is likely that it executes it by explicitly invoking bash
15:09
<@Wizard>
In this case, a shared VM setup for a training sesh
15:09
<@Wizard>
Most probably yeah
15:09
<@Wizard>
But figured I'd ask in any case
15:10
<@Wizard>
ToxicFrog: Anyway the idea being you distribute the configuration file and any scripts and files it might use during installation
15:10
<@Wizard>
Then someone can chdir to that and `vagrant up`
15:10
<@Wizard>
And tada
15:13
<&ToxicFrog>
Right
15:13
<@Wizard>
Think of it as "that VM makefile tool" and you're pretty close
15:13
<&ToxicFrog>
I would bet that it ignores the shebang and invokes the shell directly, then
15:14
<@Wizard>
Yeah most likely
15:19
<@Tarinaky>
Ruby Q...
15:20
<@Tarinaky>
Is there a way to specify an Enumerable which yields the numbers 1 to inf.?
15:20
<@Tarinaky>
You know, lazy evaluation and stuff.
15:20
<@Tarinaky>
I want to zip an array with [0,inf.)
15:21
<@Tarinaky>
The only way I can see to do it is to get the range of the array, make a range with that length and zip that.
15:21
<@Tarinaky>
But that seems less than idoimatic.
15:54
<@froztbyte>
Wizard: the vagrant postinstall is likely doing `/bin/bash /path/to/script` instead of `/path/to/script`||`./script`
16:14 kourbou|bus is now known as kourbus
16:17
< kourbus>
Guys, anyone know a scripting language that's similar to C# or Java? I don't want python or ruby, I wasn't something out if the ordinary :P
16:23
<@Wizard>
Tarinaky: 1..INFINITY or however it went
16:24
< abudhabi>
PLVS VLTRA.
16:24
< kourbus>
What's that?
16:25
< abudhabi>
http://en.wikipedia.org/wiki/Plus_Ultra
16:27
< kourbus>
Further beyond?
16:29
< abudhabi>
Yes.
16:33
<@ErikMesoy>
kourbus: https://esolangs.org/wiki/Main_Page ?
16:34
< kourbus>
Lemme see :)
16:43
< kourbus>
I'm thinking Golang or JavaScript
16:43
< kourbus>
I think I'm gonna go for Go.
17:00 Meatyhandbag [sebastianfe@Nightstar-dk0.5eb.224.136.IP] has joined #code
17:36 macdjord|slep is now known as macdjord|wurk
17:38
< [R]>
<ScytheBlade1> http://www.theregister.co.uk/2015/04/16/http_sys_exploit_wild_ms15_034/
17:38
< [R]>
<ScytheBlade1> curl -v [ipaddress]/static.png -H "Host: test" -H "Range: bytes=20-18446744073709551615"
17:38
< [R]>
<ScytheBlade1> = BSOD a windows webserver
17:38
< [R]>
<ScytheBlade1> g f g
17:41
< kourbus>
Nice.
17:41
< kourbus>
xD
18:04
<@gnolam>
https://twitter.com/TheCatWhisprer/status/535489288696520704
18:22
< kourbus>
Haha, that's awesome.
18:48 Tarinaky [tarinaky@Nightstar-e99cts.net] has quit [Ping timeout: 121 seconds]
18:49
<&ToxicFrog>
Wait
18:50
<&ToxicFrog>
The routing & cacheing layer for IIS is implemented as a kernel driver?
18:57
<@Tamber>
Because performance.
19:06 ErikMesoy is now known as Cyneric
19:11
<&McMartin>
It says "server OS" right there, man, it's not just for show, right?~
19:16
<&McMartin>
That said, I'm astonished that this wasn't found until someone reverse-engineered MS's patch for it. I distinctly recall old versions of Apache or Tomcat or something grinding their systems to a halt with excessive ranges
19:30 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has quit [Ping timeout: 121 seconds]
19:47 Tarinaky [tarinaky@Nightstar-e99cts.net] has joined #code
19:47 mode/#code [+o Tarinaky] by ChanServ
19:47 gnolam [lenin@Nightstar-t1tbf0.cust.bahnhof.se] has joined #code
19:47 mode/#code [+o gnolam] by ChanServ
20:09 kourbus is now known as kourbou
20:59 kourbou [kourbou@Nightstar-srlgm1.tmodns.net] has quit [Ping timeout: 121 seconds]
21:11 Checkmate [Z@Nightstar-484uip.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:52 kourbou [kourbou@Nightstar-4h9.dva.56.172.IP] has joined #code
22:21 [R] [rstamer@genoce.org] has quit [Ping timeout: 121 seconds]
22:35 Checkmate [Z@Nightstar-pdi1tp.customer.tdc.net] has joined #code
22:35 mode/#code [+o Checkmate] by ChanServ
22:46 Cyneric is now known as ErikMesoy
23:18 kourbou [kourbou@Nightstar-4h9.dva.56.172.IP] has quit [[NS] Quit: Bye]
23:18 kourbou [kourbou@Nightstar-4h9.dva.56.172.IP] has joined #code
23:21 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:21 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:35
<@gnolam>
https://github.com/nvbn/thefuck
23:43
<&McMartin>
This is more general than the last version I had seen
23:45
<&McMartin>
:if matched_rule:
23:45
<&McMartin>
: run_rule(matched_rule, command, settings)
23:45
<&McMartin>
:else:
23:45
<&McMartin>
: print('echo No fuck given')
--- Log closed Sat Apr 18 00:00:07 2015
code logs -> 2015 -> Fri, 17 Apr 2015< code.20150416.log - code.20150418.log >

[ Latest log file ]