code logs -> 2015 -> Mon, 16 Nov 2015< code.20151115.log - code.20151117.log >
--- Log opened Mon Nov 16 00:00:00 2015
00:00 Emmy is now known as Emmy-zZz
00:07 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
00:34 Thalass [thalass@Nightstar-283.o7s.158.104.IP] has quit [Ping timeout: 121 seconds]
00:38 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has quit [Connection closed]
00:38 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has joined #code
00:38 mode/#code [+o Crossfire] by ChanServ
00:44 catadroid` [catalyst@Nightstar-pde3fr.dab.02.net] has joined #code
00:44 catadroid [catalyst@Nightstar-0nsmf9.dab.02.net] has quit [A TLS packet with unexpected length was received.]
00:46 Red_Queen [Z@Nightstar-pdi1tp.customer.tdc.net] has joined #code
00:46 mode/#code [+o Red_Queen] by ChanServ
00:46 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has quit [Connection closed]
00:51 Thalass [thalass@Nightstar-283.o7s.158.104.IP] has joined #code
00:51 mode/#code [+o Thalass] by ChanServ
01:38 Derakon[AFK] is now known as Derakon
01:39 catadroid [catalyst@Nightstar-boh2li.dab.02.net] has joined #code
01:42 catadroid` [catalyst@Nightstar-pde3fr.dab.02.net] has quit [Ping timeout: 121 seconds]
02:06 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ]
02:21 Alek [Alek@Nightstar-ld7us0.il.comcast.net] has quit [Ping timeout: 121 seconds]
02:44 Alek [Alek@Nightstar-ld7us0.il.comcast.net] has joined #code
02:44 mode/#code [+o Alek] by ChanServ
04:08 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
04:15 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
04:21 Thalass [thalass@Nightstar-283.o7s.158.104.IP] has quit [Ping timeout: 121 seconds]
04:58 Derakon is now known as Derakon[AFK]
05:44 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
05:47 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
05:48 Meatyhandbag [sebastianfe@Nightstar-3bf.113.224.136.IP] has quit [Client exited]
05:59 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has quit [[NS] Quit: leaving]
06:00 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
06:23 Kindamoody[zZz] is now known as Kindamoody
06:26 Red_Queen [Z@Nightstar-pdi1tp.customer.tdc.net] has quit [Ping timeout: 121 seconds]
06:53 celticminstrel [celticminst@Nightstar-uce74q.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:08 macdjord is now known as macdjord|slep
07:08 macdjord|slep is now known as macdjord|fude
07:08 macdjord|fude is now known as macdjord|slep
07:45 McMartin [mcmartin@Nightstar-rpcdbf.sntcca.sbcglobal.net] has joined #code
07:45 mode/#code [+ao McMartin McMartin] by ChanServ
08:10 catadroid` [catalyst@Nightstar-ve78ej.dab.02.net] has joined #code
08:13 catadroid [catalyst@Nightstar-boh2li.dab.02.net] has quit [Ping timeout: 121 seconds]
08:48 Kindamoody is now known as Kindamoody|afk
09:00 VirusJTG [VirusJTG@Nightstar-055.kas.104.208.IP] has quit [Connection closed]
11:33 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has joined #code
11:55 * TheWatcher hairpulls at the gitlab API
12:13 Emmy-zZz is now known as Emmy
12:14 catadroid` is now known as catadroid
12:48 catadroid` [catalyst@Nightstar-ve78ej.dab.02.net] has joined #code
12:48 catadroid [catalyst@Nightstar-ve78ej.dab.02.net] has quit [Connection closed]
12:50 catadroid` is now known as catadroid
12:54 * Emmy is researching for some new usb3 sticks, 'cause the old usb2 stick isn't quite 100% trustable any more.
12:55
< Emmy>
I'm slightly appalled that even some of the higher-end manufacturers still dare to sell usb3 sticks below 50MB write speeds.
12:55
< Emmy>
50MB/s i should say.
12:56
< Emmy>
or worse. those with sliding cases.
12:56
< Emmy>
Doesn't actually protect the port from /anything/
12:56
< Emmy>
makes it heavier, AND more likely to break.
13:00
< Emmy>
even worse, those who fall below USB2 specs. :/
13:00
< Emmy>
that's just pathetic.
13:06 * TheWatcher ARGHS
13:06
<@TheWatcher>
Right, fuck this shit, I just work with project IDs, because their path handling is flakey as all hell
13:10 celticminstrel [celticminst@Nightstar-uce74q.dsl.bell.ca] has joined #code
13:10 mode/#code [+o celticminstrel] by ChanServ
13:50 * Emmy blarghs violently.
13:50
< Emmy>
why are so many online shopping sites so shitty
14:06 * catadroid may have just assigned a colleague a ticket to 'Ceremonially burn the Win32 API'
14:06
< catadroid>
I'll feeling a little better now
14:09 macdjord|slep is now known as macdjord|wurk
14:09
<@TheWatcher>
... sounds like a sound plan to me.
14:11
<@TheWatcher>
Can we also do it to the gitlab API, too?
14:19
< catadroid>
sure
14:19
< Emmy>
why can't we ceremonially burn the whole windows OS? :(
14:27
< catadroid>
go for it
14:27
< catadroid>
I'm not stopping you
14:40 catadroid` [catalyst@Nightstar-r1129u.dab.02.net] has joined #code
14:43 catadroid [catalyst@Nightstar-ve78ej.dab.02.net] has quit [Ping timeout: 121 seconds]
14:53
< Emmy>
Yea, but the law is :/
14:54 gizmore [kvirc@Nightstar-kg97rt.dip0.t-ipconnect.de] has joined #code
15:13 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Connection closed]
15:41 catadroid` is now known as catadroid
16:31 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
16:31 mode/#code [+o Crossfire] by ChanServ
17:19
<@Syloq>
Emmy; can youre machine even handle usb3?
17:20
<@Syloq>
your, rather.
17:45
< Emmy>
Yes.
17:53
<@jeroud>
Also puppet.
17:54
<@jeroud>
All I want is a thing that checks my puppet manifests for correctness.
17:56
<@jeroud>
Having shaved a bunch of yaks, all I have left to do is write a fake puppetdb client library so the testing tool I found doesn't break on the nodes that use puppetdb.
18:22 catadroid [catalyst@Nightstar-r1129u.dab.02.net] has quit [[NS] Quit: Bye]
18:26 Meatyhandbag [sebastianfe@Nightstar-ic5.3qf.224.136.IP] has joined #code
18:37 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
19:00 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
19:07
< Meatyhandbag>
Can someone look over my html/javascript code to see what's wrong with it?
19:08
< Meatyhandbag>
http://pastebin.com/T6D56S2X
19:08
< Meatyhandbag>
http://pastebin.com/EGyJhRsR
19:08
<@jeroud>
D&D
19:09
<@jeroud>
You need D&amp;D
19:09
<@jeroud>
There may be more, but that was the thing that jumped out at me.
19:10
< Meatyhandbag>
more of a javascript problem I think. I'm trying to only show one subject at a time, so I put the heading and paragraph into arrays and tried to program it to show one at a time. but it's not showing either at all
19:11 gizmore [kvirc@Nightstar-kg97rt.dip0.t-ipconnect.de] has quit [[NS] Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
19:14
<@jeroud>
I'm not a JS hacker, but I can maybe take a look when I get home.
19:45 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
19:45 mode/#code [+o Reiv] by ChanServ
20:08
<@celticminstrel>
Meatyhandbag: You appeaer to be missing the word "function" in front of your function declarations. Also, both are named the same; I assume you don't want that.
20:08
<@celticminstrel>
^appear
20:09
<@celticminstrel>
Those last two lines should be part of the function as well, rather than in the global scope. Global scope code runs only once, when the page is first loaded.
20:09
< Meatyhandbag>
yeah, i fixed that
20:10
< Meatyhandbag>
However it still won't work
20:10
< Meatyhandbag>
my inquisitor says "scrollLeft is not a function" in the html
20:12
<@celticminstrel>
Post your changes?
20:14
< Meatyhandbag>
http://pastebin.com/2GPVxaii
20:14
< Meatyhandbag>
http://pastebin.com/gq1xV0qz
20:23
<@celticminstrel>
I don't see an element anywhere with id="para".
20:23
<@celticminstrel>
Oh wait, I see it now.
20:23
<@celticminstrel>
Missed it hidden amongst the buttons.
20:23
<@celticminstrel>
Ah, I see your problem.
20:24
<@celticminstrel>
You're not setting the text at all.
20:24
<@celticminstrel>
You want elem.innerHTML = text
20:24
<@celticminstrel>
(Where elem is that document.get...)
20:27
< Meatyhandbag>
"Cannon read property 'InnerHTML' of null
20:27
<@celticminstrel>
Okay, so there's two problems...
20:27
< Meatyhandbag>
*cannot
20:28
<@celticminstrel>
I'm going to assume that you didn't substitute elem like I told you.
20:29
<@celticminstrel>
The other problem is that JavaScript is case-sensitive. It has to be innerHTML, not InnerHTML. (Or it might've been innerHtml?)
20:30
< Meatyhandbag>
document.getElementById("para").innerHTML == text;
20:31
<@celticminstrel>
Um.
20:31
<@celticminstrel>
= and == are two totally different things.
20:31
<@celticminstrel>
= means "assign". == means "are these equivalent".
20:31
< Meatyhandbag>
yeah i know, and I assumed that was the correct use
20:32
<@celticminstrel>
Despite me specifically telling you to use =?
20:32
< Meatyhandbag>
ok, sorry
20:34
< Meatyhandbag>
wow, ok, so, now every things going crazy
20:35
< Meatyhandbag>
first, i have an error saying "cannot set property 'innerHTML' of null
20:35
< Meatyhandbag>
second, when I press left I still get the error saying "scrollLeft is not a function"
20:36
<@celticminstrel>
The second error is caused by the first.
20:36
<@celticminstrel>
Probably.
20:36
<@celticminstrel>
You are trying to set the contents of the #para div before it has been created.
20:36
<@celticminstrel>
(The two lines at global scope that you've also duplicated in the function.)
20:37
< Meatyhandbag>
third, when I press right, I get three instances of p[1], two with a heading and the last with a "undefined" before it. and if I press Right again, I get double that tacked onto the bottom of the last bit. when then grows exponentially whenever I press "right"
20:37
<@celticminstrel>
:|
20:38
<@celticminstrel>
"text += "
20:38
<@celticminstrel>
Remove the +
20:38
<@celticminstrel>
Actually.
20:38
<@celticminstrel>
"text += text" --> text = "text"
20:38
<@celticminstrel>
Uh.
20:38
<@celticminstrel>
"<h1>"
20:38
<@celticminstrel>
Not "text"
20:39
<@celticminstrel>
Or, just combine the two lines.
20:40
< Meatyhandbag>
ok, I got that fixed, and now it doesn't go crazy. however, only the first heading is read as a heading (being given the h1 bracket), with the other headings showing up as normal text
20:41 * celticminstrel sighs...
20:41
< Meatyhandbag>
sorry
20:42
< Meatyhandbag>
fixed
20:43
< Meatyhandbag>
I had to remove text = "<h1>" and directly apply the <h1> at the beginning of the line
20:43
<@celticminstrel>
About the initialization, you need to either register a DOM initialization event or put it in a separate <script> tag that comes after the article div.
20:44
<@celticminstrel>
Instead of trying to set it at global scope in that script.
20:44
< Meatyhandbag>
DOM??
20:45
<&McMartin>
Document Object Model
20:45
<@celticminstrel>
If you want to do it properly, go look up how to register an event.
20:45
<@celticminstrel>
The event name you want is "DOMContentLoaded".
20:46
<@celticminstrel>
Or, as I already mentioned, you can just put the code after the article div in a separate <script> (ideally an inline one that does nothing but call a function).
20:48
<@celticminstrel>
Another way would be to move your existing <script> to the bottom of the page instead of putting it in the <head>.
20:48
<@celticminstrel>
(In that case it would be just before </body>)
20:51
< Meatyhandbag>
celticminstrel: so, how do I create a default that will always show first when I load the page?
20:53
<@celticminstrel>
What you're doing isn't wrong.
20:53
<@celticminstrel>
What's wrong is where you're doing it.
20:54
<@celticminstrel>
I've outlined three ways to fix it already.
20:58
< Meatyhandbag>
ok
21:03 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
21:14 Kindamoody|afk is now known as Kindamoody
21:45 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has joined #code
21:45 mode/#code [+o Crossfire] by ChanServ
22:01 Kindamoody is now known as Kindamoody[zZz]
22:11 Thalass [thalass@Nightstar-283.o7s.158.104.IP] has joined #code
22:11 mode/#code [+o Thalass] by ChanServ
22:38 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ]
23:25 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
23:26 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: ]
23:27 catadroid [catalyst@Nightstar-kusqio.dab.02.net] has joined #code
23:30 Emmy is now known as Emmy-zZz
--- Log closed Tue Nov 17 00:00:16 2015
code logs -> 2015 -> Mon, 16 Nov 2015< code.20151115.log - code.20151117.log >

[ Latest log file ]