code logs -> 2013 -> Fri, 22 Feb 2013< code.20130221.log - code.20130223.log >
--- Log opened Fri Feb 22 00:00:03 2013
00:48 Derakon[AFK] is now known as Derakon
01:03
<&ToxicFrog>
Hmm.
01:03
<&ToxicFrog>
18 seconds to load and decompress 600k of data.
01:03
<&ToxicFrog>
That...is a bit slow.
01:12 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has quit [Connection reset by peer]
01:13 Courage [Moltare@583787.FF2A18.190FE2.4D81A1] has joined #code
01:13 mode/#code [+o Courage] by ChanServ
01:16 You're now known as TheWatcher[T-2]
01:19 You're now known as TheWatcher[zZzZ]
01:49 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
01:52 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
02:05 Attilla [chatzilla@Nightstar-87646183.range86-143.btcentralplus.com] has quit [Ping timeout: 121 seconds]
02:07 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
02:07 mode/#code [+qo Vornicus Vornicus] by ChanServ
02:46 KiMo [Kindamoody@Nightstar-05577424.tbcn.telia.com] has joined #code
02:46 mode/#code [+o KiMo] by ChanServ
02:46 Kindamoody[zZz] [Kindamoody@Nightstar-05577424.tbcn.telia.com] has quit [Operation timed out]
03:04 syksleep is now known as Syk
03:14 VirusJTG_ [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
04:07 KiMo is now known as Kindamoody|afk
04:47
<@Tarinaky>
http://robohub.org/video-throwing-and-catching-an-inverted-pendulum-with-quadroc opters/
04:58 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has joined #code
05:05 VirusHome [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
05:07 Pandemic [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
05:47 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
06:13 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has quit [[NS] Quit: Leaving]
06:16 ErikMesoy|sleep is now known as ErikMesoy
06:18 Derakon is now known as Derakon[AFK]
06:27 VirusNotAtWork [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
06:29 VirusHome [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [Ping timeout: 121 seconds]
08:17
<~Vornicus>
good lord, the feats stuff is absolutely insane.
08:19 Syk [the@Nightstar-59eeca2c.iinet.net.au] has quit [Ping timeout: 121 seconds]
08:32 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
08:33 Syka [the@Nightstar-6c5269c8.iinet.net.au] has joined #code
08:45 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
08:45 mode/#code [+o himi] by ChanServ
09:01 noonbajaa [noonbajaa@D82662.7444E7.DE02ED.C48C0B] has joined #code
09:02 noonbajaa [noonbajaa@D82662.7444E7.DE02ED.C48C0B] has quit [[NS] Quit: ]
09:14 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
09:37 You're now known as TheWatcher
10:05 Attilla [chatzilla@Nightstar-87646183.range86-143.btcentralplus.com] has joined #code
12:31 Reivles [orthianz@3CF3A5.E1CD01.5A78C0.03128C] has joined #code
12:32 Orthia [orthianz@3CF3A5.E1CD01.5A78C0.03128C] has quit [Ping timeout: 121 seconds]
12:58 VirusNotAtWork is now known as pandemic
12:59 mode/#code [+o pandemic] by ChanServ
13:59 Reiver [quassel@Nightstar-3762b576.co.uk] has quit [Operation timed out]
14:00 Reiver [quassel@Nightstar-3762b576.co.uk] has joined #code
14:27 d4de [olorin@687AAB.E04ECC.D09C3D.5FB5B2] has quit [NickServ (GHOST command used by d4de_)]
14:28 d4de [olorin@4B91FF.00BEE6.E394BC.59ED7B] has joined #code
15:49 celticminstrel [celticminst@Nightstar-e83b3651.cable.rogers.com] has joined #code
15:49 mode/#code [+o celticminstrel] by ChanServ
15:49
<@froztbyte>
there's a vorn missing
15:49
<@froztbyte>
and I want to ask a vorn about vorn's last remark
15:51
< jeroud>
froztbyte: He's building a D&D character generator.
15:52
<@froztbyte>
ah
15:57
<@celticminstrel>
Oh...
17:00 Syka is now known as syksleep
17:58 Xires [xires@Nightstar-c54fd8cd.feedthetrolls.net] has quit [[NS] Quit: *poof*]
18:02 ShellNinja is now known as Jonny
18:05 ^Xires [xires@Nightstar-c54fd8cd.feedthetrolls.net] has joined #code
18:15 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has quit [Client exited]
18:20 Rhamphoryncus [rhamph@Nightstar-f8b1f87b.abhsia.telus.net] has joined #code
18:20 mode/#code [+o Rhamphoryncus] by ChanServ
18:36 Attilla [chatzilla@Nightstar-87646183.range86-143.btcentralplus.com] has quit [Ping timeout: 121 seconds]
18:40 Attilla [chatzilla@Nightstar-87646183.range86-143.btcentralplus.com] has joined #code
19:06 Kindamoody|afk is now known as Kindamoody
19:51 Kindamoody is now known as Kindamoody[zZz]
20:55 Jonny is now known as ShellNinja
20:56
< ShellNinja>
Hmm. Is there any way to make an iPad talk to a Motorola smartphone?
20:57
<@Tamber>
iAcoustic iCoupler?
20:58
<@TheWatcher>
Bluetooth? *shrug*
20:58
<@froztbyte>
ShellNinja: ...what do you mean?
21:00
<@RStamer>
"Talk" in which way?
21:00
<@Haeroe>
https://github.com/jbangert/trapcc
21:00
< ShellNinja>
Bluetooth. If I understood the request correctly, to get Internet access through the phone.
21:01
<@TheWatcher>
Oh, tethering.
21:03
<@TheWatcher>
The phone's service provider may not allow it, but if it does you can set up the phone to act as a WAP, connect the iPad to the phone over wireless, and then you can get to the net via the phone.
21:04
<@TheWatcher>
(some providers have it as an option, some only allow it on certain packages)
21:04
< ShellNinja>
Hmm. The iPad does have wifi. So the question would be how to turn the phone into a router?
21:07
<@froztbyte>
https://fbcdn-sphotos-c-a.akamaihd.net/hphotos-ak-prn1/48102_582766161750709_213 4332017_n.jpg
21:07
<@froztbyte>
ShellNinja: if this moto is an android phone, it might already support it
21:07
<@TheWatcher>
Try settings -> more -> tethering and portable hotspot (although I suspect it'll be in a different place in different android version...)
21:08
<@froztbyte>
yes, it might shuffle around a bit
21:08
< ShellNinja>
Yeah, I think it is an Android phone.
21:08
<@froztbyte>
on my current ROM (which is 4.2-based), there's a thing just below Data Usage in the data-related menu entries
21:09
<@froztbyte>
stupidly, I can control everything but that from tasker
21:30 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
21:30 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:40 Typherix is now known as Typh|Food
22:16 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
22:44 * Vornicus tries to remember how you do methods in js
22:50
<@TheWatcher>
`var foo = new Class({ ... blabla... name: function(args) { }, });`
23:03
<@RStamer>
Kind of...
23:04
<@RStamer>
function Class() { /* ... */ }; Class.prototype.method = function classMethod() { /* ... */ }
23:04
<@RStamer>
That's the prefered way.
23:05
<@RStamer>
TW's method assumes you're using some kind of library to pull the methods out of arguments[0]
23:06
<@RStamer>
(However, it does pass an object to the constructor with a method)
23:06
<~Vornicus>
I'm so confused.
23:06
<@RStamer>
About?
23:06
<@TheWatcher>
RStamer: heh, yeah. So long since I used vanilla js...
23:07
<@TheWatcher>
(Thank Cthulhu...)
23:07
<~Vornicus>
A lot of things. I can't figure out what I need to ask yet.
23:07 * RStamer doesn't find it that bad. Unless he has to write for multiple engines, then yes, get a library to handle that shit.
23:07
<@RStamer>
Start by saying what you want to do.
23:09
<@TheWatcher>
Vornicus: your site loads jquery by default from the looks of it, I strongly recommend looking at writing code using its features rather than vanilla javascript, unless you have some reason not to (strong desire to learn how things work without a library, masochism, etc)
23:10
<~Vornicus>
Okay so. I have a class, it's named Character. An instance of Character is my model object underlying my character sheet page.
23:11
<~Vornicus>
I don't actually know what JQuery does that isn't DOM-ish...
23:11
<@RStamer>
I'm in the same boat there actually
23:12
<~Vornicus>
It doesn't really look like it.
23:12
<@RStamer>
You want to add methods to Character?
23:12
<~Vornicus>
RStamer: yepperoni.
23:13
<@RStamer>
If so: `Character.prototype.getx = function() { return this.x }` makes a method `getx` that returns `x`
23:16
<~Vornicus>
okay. Why do that instead of `doing function Character() {this.getx = function() { return this.x }; }`
23:16
<~Vornicus>
er, with the ` in the right place
23:20
<@Rhamphoryncus>
Woo, Cyanogenmod 10.1 has a better Storage page in the settings. It now includes a Misc. entry that includes my 9.3 missing gigs. I can tap it and open up a further listing, telling me that a directory called 0 has 9 gigs. It won't let me open it up further but will let me delete it :P
23:20 mac [mac@Nightstar-fe8a1f12.il.comcast.net] has joined #code
23:21
<@Alek>
rhamp: it might be something needed for functioning.
23:21
<~Vornicus>
That seems
23:21
<@Rhamphoryncus>
Yeah, the "woo" was sarcastic.
23:22
<@Alek>
I wouldn't touch it unless you a: have a backup, b: can back up the directory, or c: won't mind reinstalling a brick.
23:22
<@RStamer>
Vornicus: Because then you're creating a new `getx` for each instance.
23:22
<@Rhamphoryncus>
Alek: that directory HAS the backups
23:22
<@RStamer>
Also, (IIRC) `getx` will be listed when you loop through the object using for-in loops.
23:22
<@Rhamphoryncus>
But they only seem to be 3 gigs
23:23
<@Alek>
?_?
23:23
<@Rhamphoryncus>
Until now I assumed they were all of the missing space
23:24
<~Vornicus>
RStamer: so by putting it in prototype, I'll be able to use it as my_character.getx, and it will work as expected there?
23:24
<@RStamer>
Right
23:24
<~Vornicus>
ok good.
23:24
<@RStamer>
No major advantage if you only ever make on instance of Character though
23:25
<@RStamer>
At which point you may as well not even bother with the contructor IMO.
23:25
<~Vornicus>
I might need to throw it somewhere else later, and it's better to get this right anyway!
23:25
<@RStamer>
There's a secondary advantage to using prototype though
23:26
<@Rhamphoryncus>
Found another gig of backups.. "2 GB" of music but I've also found out it'll round 2.99 down to 2
23:27
<~Vornicus>
secondary advantage?
23:28
<@RStamer>
> Array.prototype.sum = function() { var x = 0; for (var i=0; i < this.length; ++i) { x+=this[i]; } return x }
23:28
<@RStamer>
[Function]
23:28
<@RStamer>
> [1,2].sum()
23:28
<@RStamer>
3
23:28 * McMartin reads backscroll
23:28
<~Vornicus>
oh god monkeypatches
23:28
<@RStamer>
Which is you can extend objects anywhere
23:28
<&McMartin>
Yeah
23:28
<&McMartin>
Note that when you're writing JS and you say "I have a class where..." you are confused
23:29
<&McMartin>
Also, if you can find (in a library, ideally, don't pay full price) a copy of the mad JSON manifesto, "JavaScript: The Good Parts", it is food for thought on a number of things
23:30 Typh|Food is now known as Typherix
23:30 * RStamer doesn't have that book yet
23:30
<@Rhamphoryncus>
half a gig in DCIM.. 0.6 gigs in cmupdater.. 0.3 in Android.. adds up to around 7. Still missing a bit but not nearly as much as I thought
23:30
<&McMartin>
It does have the source for Object.create(), which itself makes JavaScript about 300% saner and about 85% more alien.
23:30
<@RStamer>
Should really get it, but IMO I'm pretty competant with JS already, so I'm not sure how much of an advantage it'd be.
23:31
<&McMartin>
I emphasize that much of what you are reading it for is the humor value.
23:31
<@RStamer>
Oh
23:31
<&McMartin>
he's well respected - I mean, he literally invented JSON - but he is utterly insane.
23:31
<@RStamer>
Hmm
23:31
<&McMartin>
But Object.create() is a function he writes for "given this object, construct a new one using the argument as a prototype, return that"
23:31
<&McMartin>
Which is a truly excellent function to have!
23:32
<&McMartin>
However, he thinks an appropriate place to put it is Object.prototype >_<
23:32
<&McMartin>
Also, he's deeply offended by the fact that JS has keywords, and that + can be used for string concatenation
23:32
<~Vornicus>
bah, the local library catalog is on the blink.
23:33
<~Vornicus>
oh there it goes. three copies checked in, but there's 33 branches in the system, let's see whether they have it at one i can walk to.
23:34
<&McMartin>
<3 the SD library system
23:34
<@RStamer>
What.
23:34
<@RStamer>
He doesn't like concatination, what?
23:34
<&McMartin>
He's blaming + instead of JS's absurd coercion rules for the resulting mess
23:34
<~Vornicus>
He doesn't like having string concat on the same operator as numerical addition
23:35
<&McMartin>
"Let's talk about JavaScript."
23:35
<@Rhamphoryncus>
It's a little ugly to use + for both, but if you showed some restraint and didn't use coercion it'd be fine
23:36
<&McMartin>
Yeah
23:36
<&McMartin>
I'm not convinced he's *wrong* about his madness.
23:36
<&McMartin>
He's mad, but ANAICT internally self-consistent.
23:36
<~Vornicus>
Little out of range, and the one at Central is checked out.
23:36
<~Vornicus>
I wonder.
23:36
<&McMartin>
Vornicus: Should be possible to do an interbranch loan request
23:37
<~Vornicus>
Right, that's what I'm looking into.
23:37
<&McMartin>
RStamer: This is why it should not be used to *learn* JS
23:37
<@RStamer>
Yeah
23:37
<@RStamer>
Geez
23:37
<&McMartin>
The chapter on functions, how they work, and the kinds of hilarious Scheme-like Evil you can get up to with them is accurate and well-thought-out, though
23:37
<&McMartin>
And I recognized many of the stunts from my Scheming days.
23:37 ErikMesoy is now known as ErikMesoy|sleep
23:38
<&McMartin>
My personal entry for "the language killer" is something he merely treats as a mild speedbump >_>
23:39
<~Vornicus>
what's your language killer?
23:39 Reivles is now known as Orthia
23:39
<&McMartin>
That dicts are objects
23:39
<&McMartin>
And dict lookup is the same as method lookup
23:40
<&McMartin>
So your "empty" little hashtable is actually full of Object.prototype's methods, which makes generic data-driven multimaps intrinsically unsafe
23:41
<&McMartin>
(You can get around this by, say, prepending all your keys with ':' or something before lookup)
23:55
<@celticminstrel>
I suppose there's no way to make it simply not have any prototype at all.
23:55
<@RStamer>
Hmm
23:56
<@RStamer>
Nope, delete doesn't work.
23:56
<@RStamer>
You should be able to do Object.prototype = {} though
23:57
<@celticminstrel>
What about =undefined?
23:57
<@celticminstrel>
Or... defineProperty?
23:57
<@celticminstrel>
To make it both undefined and nonenumerable.
23:58
<@RStamer>
Nope
23:58
<@celticminstrel>
Object.prototype={} doesn't change anything...
23:58
<@RStamer>
Also `undefined` is just a variable (which is usually undefined)
23:58
<@RStamer>
Yes, I was testing that out too
23:58
<@RStamer>
It doesn't work :/
23:58
<@celticminstrel>
That seems to be false in Firefox.
23:58
<@celticminstrel>
At least, "undefined = 5" does not change the value of undefined.
23:59
<&McMartin>
I think it's more that conforming ECMAScript implementations are *allowed* to.
23:59
<@celticminstrel>
Ah.
--- Log closed Sat Feb 23 00:00:01 2013
code logs -> 2013 -> Fri, 22 Feb 2013< code.20130221.log - code.20130223.log >

[ Latest log file ]