code logs -> 2013 -> Sun, 16 Jun 2013< code.20130615.log - code.20130617.log >
--- Log opened Sun Jun 16 00:00:46 2013
00:01
<&ToxicFrog>
tbh I'm still trying to find an offsite backup host that doesn't suck
00:01
<&ToxicFrog>
google drive would be perfect if it had ssh access
00:02
<@Tamber>
I think the problem is your standards are too high. You need to find one that sucks *less*. :p
00:03
<@Tarinaky>
Stick to offline backups?
00:05
<@Tarinaky>
Idly: does anyone know if there's a .Xresources setting for the size of xterm?
00:05
<@Tarinaky>
s/size/width+height/
00:05
<@Tamber>
I believe so.
00:06
<@Tamber>
I'll have a little dig and see if there actually is, though.
00:06
< ktemkin[work]>
xterm*VT100.geometry?
00:06
<@Tarinaky>
Finding .Xresources settings is a bit like peering through a Wizard's spellbook.
00:06
<@Tamber>
xterm*vt100*geometry: 120x50
00:09
<@Tarinaky>
Is that in pixels?
00:09
<@Tamber>
Columns and rows
00:10
<@Tamber>
Since the font size is set with a separate setting
00:10 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
00:10
<@Tarinaky>
Of course.
00:10
<@Tarinaky>
Thanks.
00:11
<@Tamber>
If, however, you try to fiddle with the xterm*font setting; I am so, so sorry.
00:11
<@Tamber>
I have *never* figured out how to actually set those without wanting to kill myself and everyone responsible.
00:11
<@Tarinaky>
Nah, I just needed more columns.
00:11
<@Tarinaky>
(That's what she said?)
00:11
<@Tamber>
(Nah, it's not that bad; I just tweak the values I *have*, and pray nothing breaks.)
00:11
<@Tamber>
hee
00:13
<@Tarinaky>
I'm currently trying to implement something like PhysFS in Python - because as far as I am aware there's nothing like that already.
00:14
< ktemkin[work]>
It's usually not /that/ bad. Open xfontsel, find the font you want; laboriously type the exact nonselectable name into your xresources.
00:14
<@Tamber>
hee
00:16 * Tarinaky hurderps as he can't remember how to anotate parameters in python-style javadoc.
00:17
<@Tarinaky>
Can't remember what it's called either...
00:17
<@Tarinaky>
Ah, docstrings.
00:17
<@Tarinaky>
Ofc.
00:18 Derakon is now known as Derakon[AFK]
00:19
<@Tarinaky>
I'm struggling to google this... how do I anotate an argument for a Python function in it's docstring?
00:19
<@Tarinaky>
I'm looking for something like @param
00:25
<~Vornicus>
Depends on your documentation tool.
00:25
<~Vornicus>
look up, like, doxygen syntax
00:26
<@Tarinaky>
I'm not using one. Unless you count python's built-in help()
00:27
<@Tarinaky>
It's more a style question.
00:29
<~Vornicus>
http://www.python.org/dev/peps/pep-0257/
00:30
<@Tarinaky>
Thanks.
00:37 ktemkin[work] is now known as ktemkin
00:48 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
00:49 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
00:51 You're now known as TheWatcher[T-2]
00:53 You're now known as TheWatcher[zZzZ]
00:59 Typherix is now known as Typh|offline
01:00 jeff [NSwebIRC@2D9871.A95144.2D3AF0.96BD5C] has quit [Ping timeout: 121 seconds]
01:02 Derakon[AFK] is now known as Derakon
01:06 Typh|offline is now known as Typherix
01:06 Typherix is now known as Typh|offline
01:12 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
01:12 mode/#code [+o himi] by ChanServ
01:28 cpux [cpux@Nightstar-98762b0f.dyn.optonline.net] has joined #code
01:28 mode/#code [+o cpux] by ChanServ
01:30 Derakon is now known as Derakon[AFK]
01:45 Derakon[AFK] is now known as Derakon
01:49 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
01:52 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
02:57 Turaiel[Offline] is now known as Turaiel
03:19 Vorntastic [Vorn@Nightstar-8ff263a4.sub-70-211-5.myvzw.com] has joined #code
03:24
< Vorntastic>
I guess, thinking more distantly from it, that a big part of this is I have been playing fast & loose with the simple data types in python.
03:25
<@McMartin>
And C++ wants to hard-lock everything down
03:25
<@McMartin>
Or, depending on your view-point, "C++ doesn't directly support all the dynamic-typing stunts so you have to implement the machinery to make those work yourself"
03:25
<@McMartin>
Overload operator[], back yourself up with a std::map, good to go~
03:26
< Vorntastic>
Quite. Which isn't so bad, honestly, I just need to get used to that and actually design my data types.
03:52 Chutzpah [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Connection reset by peer]
03:54 Typh|offline is now known as Typherix
03:57 Chutzpah [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
03:59 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:09 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:09 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:10
<~Vornicus>
Okay, home. Let's see what I can pull off here.
04:10 Vorntastic [Vorn@Nightstar-8ff263a4.sub-70-211-5.myvzw.com] has quit [[NS] Quit: Bye]
04:23 Kindamoody[zZz] is now known as Kindamoody
04:47 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
04:47 mode/#code [+o celticminstrel] by ChanServ
04:47 Harlow [Harlow@Nightstar-fe8a1f12.il.comcast.net] has joined #code
05:03 Typherix is now known as Typh|offline
06:35 Derakon is now known as Derakon[AFK]
07:03 ErikMesoy|sleep is now known as ErikMesoy
07:10 ktemkin is now known as ktemkin[zwol]
07:18 Harlow [Harlow@Nightstar-fe8a1f12.il.comcast.net] has quit [[NS] Quit: Leaving]
07:26 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:40 Turaiel is now known as Turaiel[Offline]
08:37 Kindamoody is now known as Kindamoody|out
09:06 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has quit [[NS] Quit: ]
09:09 Alek [omegaboot@Nightstar-56dbba0f.in.comcast.net] has joined #code
09:09 mode/#code [+o Alek] by ChanServ
09:52 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code
10:03 You're now known as TheWatcher[swim]
10:26
<~Vornicus>
okay, all napped up, what the hell was I doing.
10:31
<~Vornicus>
Okay. Part 1: figure out io well enough that I can write the thing that chugs the data sheet.
10:57 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [Operation timed out]
11:01 * McMartin pushes out the rest of the demo code for Monocle.
11:01
<@McMartin>
This is showing more and more gaps as it goes~
11:28
<~Vornicus>
Uh. Okay. First off figure out how to munch a word or something.
11:41
<~Vornicus>
(I was hoping that >> would let me eat string-shaped words as well but that doesn't appear to be the case. Hmmm)
11:42
<~Vornicus>
oh, I can. it's just defined somewhere else so I couldn't find it the first time.
12:26 * Vornicus does battle with all sorts of assumptions he's no longer sure is true.
12:27
<~Vornicus>
I've got a map<string, map<...>> and I want to add things to an inner map. I am not sure, however, whether there's something I have to do to make the inner map exist if I haven't done this key yet.
12:27
<@McMartin>
Oh man
12:28
<@McMartin>
This is one of C++'s most insanely obtuse and obnoxious things
12:28
<~Vornicus>
In Python I have to actually instantiate the inner map (or use a defaultdict(dict))
12:28
<@McMartin>
If you refer to foo[key] anywhere, and foo[key] does not exist, foo[key] will be created with the default constructor for the target name.
12:28
<@McMartin>
If this is *not* the behavior you want, you must use std::map::find() and check the returned iterator against foo:end().
12:29
<@McMartin>
foo::end(), rather.
12:29
<~Vornicus>
Well, I was hoping for an empty map to start with
12:29
<@McMartin>
That's what you'll get, since that's the default constructor.
12:29
<@McMartin>
In short, as long as you aren't *deleting* anything
12:29 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
12:29
<@McMartin>
foo[bar][baz] will transparently create everything precisely as needed.
12:30
<~Vornicus>
Oh, so it's not nearly as obtuse and obnoxious for my case.
12:30
<@McMartin>
For the 78% of the time that isn't what you actually want, it's find and insert, which are incredible pains, but the 22% where it *is* is pretty great~
12:34
<~Vornicus>
And if I do (partial pseudo) typedef map<string, map<string, PlanetData> Galaxy; PlanetData my_planet; for line in file: set my_planet variables; galaxy[system_name][planet_name] = my_planet; will that copy my struct like it looks like it should?
12:36
<@McMartin>
It should, though it will IIRC be a shallow copy.
12:36
<@McMartin>
That's probably what you want though.
12:36
<@McMartin>
Structs and classes have an automatically generated copy constructor that is basically memcpy
12:36
<~Vornicus>
the innards are all ints, so I think I'll be good.
12:37
<@McMartin>
You totally win
12:38
<~Vornicus>
\o/
14:21 You're now known as TheWatcher
16:03
<~Vornicus>
/Users/vorn/Documents/seprodfrontier/main.cpp:218:0 /Users/vorn/Documents/seprodfrontier/main.cpp:218: error: conversion from 'std::_Rb_tree_const_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, PlanetDescription, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<s
16:03
<~Vornicus>
td::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, PlanetDescription> > > > >' to non-scalar type 'std::_Rb_tree_iterator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, PlanetDescription, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator
16:03
<~Vornicus>
<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, PlanetDescription> > > > >' requested
16:04
<~Vornicus>
fizba wizh
16:09
<~Vornicus>
ah. const_iterator, use that, okay.
16:26
<~Vornicus>
victory. Everything's under control now. I can do this. But first, bedbedbed.
16:36 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
16:55 jeff [NSwebIRC@2D9871.A95144.8D0ADA.CD2946] has joined #code
18:00 VirusJTG_ [VirusJTG@BAD19E.09A45B.582A63.5AE998] has joined #code
18:01 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
18:21 VirusJTG_ [VirusJTG@BAD19E.09A45B.582A63.5AE998] has quit [[NS] Quit: Program Shutting down]
18:22 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
18:30 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
18:30 VirusJTG [VirusJTG@BAD19E.09A45B.582A63.5AE998] has joined #code
18:34 Kindamoody|out is now known as Kindamoody
19:07 VirusJTG [VirusJTG@BAD19E.09A45B.582A63.5AE998] has quit [[NS] Quit: Program Shutting down]
19:07 Turaiel[Offline] is now known as Turaiel
19:08 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
19:42 Turaiel is now known as Turaiel[Offline]
19:47 Kindamoody is now known as Kindamoody[zZz]
20:17 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code
20:23 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [Connection closed]
20:26 jeff [NSwebIRC@2D9871.A95144.8D0ADA.CD2946] has quit [Ping timeout: 121 seconds]
20:30
< AnnoDomini>
Can y'all recommend any good USB tv tuner thingies?
20:37
<@froztbyte>
elonics e4000
20:43
< AnnoDomini>
This thing? http://www.ebay.com/itm/Realtek-RTL2832U-Elonics-E4000-USB-DVB-T-Receiver-Tuner- FM-DAB-PAL-F-adapter-/300838890703?pt=US_Video_Capture_TV_Tuner_Cards&hash=item4 60b652ccf
20:45
<@froztbyte>
yes
20:45
< AnnoDomini>
Great. Thanks.
20:45
<@froztbyte>
well, that's the elonics unit
20:46
<@froztbyte>
just make sure it can pick up the correct signal type for your country
20:46
<@froztbyte>
(should generally be fine, since that thing covers the most stuff of any of the chipsets I know of)
20:46
< AnnoDomini>
This is for Norway.
20:47
< AnnoDomini>
Which is PAL B/G apparently.
20:48 jeff [NSwebIRC@2D9871.A95144.8D0ADA.CD2946] has joined #code
20:56 Typh|offline is now known as Typherix
21:12 Turaiel[Offline] is now known as Turaiel
21:13 * AnnoDomini purchases item.
21:14
< AnnoDomini>
Hopefully, the local TV tax people can't tell a USB tuner from a Hydroelectric Magnetosphere Regulator. If they even notice I'm not registered to pay the tax.
21:20
<@Tarinaky>
http://www.youtube.com/watch?v=5Rp4V3Sj5jE So does this mean Cockroaches are soon to join the list of species humans know incredible amounts of minute detail on as a 'model' animal?
21:21
<@Tarinaky>
AnnoDomini: Careful. In the UK when you buy a TV tuner the vendor is required by law to provide the billing address to the TV license enforcement group.
21:22
<@Tarinaky>
And they'll send you a nasty-gram.
21:22
< AnnoDomini>
I'm not in the UK.
21:22
<@Tarinaky>
TL;DR: Pay cash.
21:22
<@Tarinaky>
I would be surprised if the UK was the only country to do so >.>
21:25 ktemkin[zwol] is now known as ktemkin[work]
21:28
< AnnoDomini>
I'm buying this thing on eBay from China or something, paying via PayPal.
21:37 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
21:39 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
21:40 Turaiel is now known as Turaiel[Offline]
21:49 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
21:49 mode/#code [+qo Vornicus Vornicus] by ChanServ
22:00 Turaiel[Offline] is now known as Turaiel
22:19 ErikMesoy is now known as ErikMesoy|sleep
22:40 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
22:45 jeff [NSwebIRC@2D9871.A95144.8D0ADA.CD2946] has quit [Ping timeout: 121 seconds]
22:53 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
22:53 mode/#code [+o celticminstrel] by ChanServ
23:12 Turaiel is now known as Turaiel[Offline]
23:14 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
23:14 mode/#code [+o himi] by ChanServ
23:16
<@Tarinaky>
Is there a utility in Debian/Ubuntu to obtain a list of packages that provide a named library/file?
23:18
<&ToxicFrog>
apt-file
23:19
<&ToxicFrog>
It may not be installed by default
23:21 Turaiel[Offline] is now known as Turaiel
23:28
<@froztbyte>
dlocate, or apt-file
23:34
<@Azash>
No apt-get options?
23:37
< ktemkin[work]>
Apt-get can give you a list of /already installed/ packages that provide the named file; but it can't deal with files that aren't currently installed.
23:38
< ktemkin[work]>
... or, at least, dpkg can.
23:40 Derakon[AFK] [Derakon@Nightstar-a3b183ae.ca.comcast.net] has quit [Operation timed out]
23:47 Derakon [Derakon@Nightstar-a3b183ae.ca.comcast.net] has joined #code
23:47 mode/#code [+ao Derakon Derakon] by ChanServ
23:47 * Azash gave up trying to figure out even how apt-get can list uninstalled packages, just installs aptitude every time
23:49
<@McMartin>
13:19 <@Tarinaky> I would be surprised if the UK was the only country to do so >.>
23:49
<@McMartin>
For the record, my understanding is that the UK is pretty unique about this; nobody else really has an outfit that rivals the BBC >_>
23:50 Reiv [NSwebIRC@Nightstar-95746c1f.kinect.net.nz] has quit [Ping timeout: 121 seconds]
23:51
<@Tarinaky>
McMartin: The license isn't enforced by the BBC though.
23:51
<@Tarinaky>
They just receive the money.
23:52 Reiv [NSwebIRC@Nightstar-95746c1f.kinect.net.nz] has joined #code
23:52 mode/#code [+o Reiv] by ChanServ
--- Log closed Mon Jun 17 00:00:00 2013
code logs -> 2013 -> Sun, 16 Jun 2013< code.20130615.log - code.20130617.log >

[ Latest log file ]