« first day (1876 days earlier)      last day (3075 days later) » 

8:00 PM
you have nyaned for.
hilarious!
@SomeKittens where did you get this from?
 
where did you get the link to this chat from?
 
@nickB THE INTERNET
 
That is the answer to my question.
 
@nickB
Ah, that is why I wanted to explain in more debth.
I have index.html(this can be changed, no problem), and here I have ajaxfiles currently in .php format. I have the filename, lets say 'file.php' for this, wich ajax loads in a div as normal.
.htacess removes .php, I will change this to remove .txt I guess.
In my a href I have: data-name:'file' url:'file.html'.
I then have a file.html wich contains the same as file.php, but with all the html also.
Then I was thinking, I can add these things in php include, not have 2 copies of my page(now html and php, thinking then it need to be .txt
 
@SomeKittens i didn't know that.
 
crl
8:05 PM
s/php/pony/g
 
@SomeKittens How do I turn down the fucking volume
 
@KendallFrey why would you ever want to?
 
@KendallFrey you can't and have to be nyaned.
that's the challenge
 
@SomeKittens Headaches are not pleasant
 
Nix peeps: where do you usually mount additional volumes for which you need quick access, specially via the terminal? /run/media/<myusername>/<label> is too long of a path for my terminal (don't pull your PS1 tricks on me, now). and man heir seems to advice against /mnt/
 
8:08 PM
@nickB
But of course, I neew the behaviour to still work with ajx, as I have it 'working' now, but can't do the include stuff, so therefore .php is probably the way. Naturally, I don't want to do all of this, if there is possible to do allo php in html on the server..
But I got the point in the comments, html shouldnt run php, as it is serverbased etc, so naturally I will do it the accepted way!
 
yep
attaboy
 
@KendallFrey >soundManager.setVolume("nyan", 10)
 
crl
@crl .
 
!!> NaN instanceof Number
 
@Abhishrek "false"
 
crl
8:13 PM
the name says it:p
 
!!> 1 instanceof Number
 
@KendallFrey "false"
 
explain that crl
 
crl
!!> Kendall's mom instanceof Number
 
@crl "false"
 
crl
8:14 PM
no idea
 
6
Q: Why are JavaScript primitives not instanceof Object?

Gary ChangToday I happened to have too much time to kill and I played a bit with the Node (v0.10.13) command line: > 1 instanceof Object false > (1).__proto__ {} > (1).__proto__ instanceof Object true > (1).__proto__.__proto__ === Object.prototype true Now, according to MDN, what instanceof does is: ...

 
crl
!!> typeof NaN
 
@crl "number"
 
crl
ah ok
 
JavaScript is like Java, it sucks
 
crl
8:16 PM
a primitive is by definition not an object no?
 
@KendallFrey BLASPHEMY
 
@KendallFrey Much like your mother
 
@crl in JS or in general?
 
crl
both
 
In C#, primitives are objects
 
crl
8:17 PM
ah.
 
There is no proper definition of what a primitive is
I go by whether or not it has a keyword alias for the type
 
that hexagon game was eye-disturbing stuff xD xD
@SomeKittens
 
holigo amigo bromigo, just realized Object.values and Object.entries reached stage 3 yo
 
crl
!!> new Number(1)===1
 
@crl "false"
 
8:22 PM
just curious
!!> new Number(1) === new Number(1)
 
@KarelG "false"
@KarelG "false"
 
crl
!!> new Number(1).valueOf()===1
 
@crl "true"
 
npm rename folder api ?
 
crl
yes
 
8:26 PM
does fs.rename work on folders or is it only files?
 
crl
Oh I thought it was a joke about Iceland, but it seems true
 
ok it works on folders
 
why does console.log(3 < 2 < 1)
returning true
?
 
magic
 
crl
try to explain it yourself
 
8:29 PM
maybe coz of less than runs from left to right
?
 
crl
that's a first good point
 
fun fact:
 
false < 1
 
Welp, now we know when the universe was created
 
ya
got it
0<1
 
8:30 PM
aye aye
 
:)
 
It's weird
 
according to MDN, Dates only range from +- 100,000 days since UNIX beginning time
 
coercion stuff
 
javascript is
but fun
from human perspective it should be false.
 
8:32 PM
@nickB nope, it should throw an error :P
but we love and hate JS because it doesn't care as much as a well designed language should
 
crl
!!> [new Date(1e5 * 24* 3.6e7), new Date(1e5 * 24* 3.6e7 + 1)]
 
@crl "Thu Nov 28 4707 19:00:00 GMT-0500 (Eastern Standard Time),Thu Nov 28 4707 19:00:00 GMT-0500 (Eastern Standard Time)"
 
@towc that's only ~270 years
 
@towc ya,
for example
 
@KarelG sorry, 100,000,000 days
 
8:33 PM
coercion
 
@nickB point is, it gives us our lazy space to work with (and express our emotions. Don't ask) but it can also be a bit unintuitive and hard to read. I think this also comes with a small performance cost
 
performance cost?
 
it allows loads of hacks. If people need to use hacks on a language, then the language was designed badly. By "hacks" I mean stuff like !!value, !function(){}(), value |0
 
@Luggage ^^^
I did a thing
 
crl
@towc damn you
 
8:36 PM
@nickB V8 has to check for the type every time and change it accordingly if it's needed. Most other languages don't do that, so they don't have to check, therefore it takes less time to compute the thing. A really minor thing since it happens at such a low level...
 
crl
just figured it :)
 
@towc hmm.
point
any idea about this being changed in the future?
 
@nickB seriously doubt it
as I said, this is one of the reason many of us love js
 
eh, then most js scripts wouldn't work anymore
 
and it's also the reason we hate it some times
but you can't take that away from js. It would be like amputating a limb
 
8:39 PM
ya but love >> hate
 
we would get depressed and die
it's a possibility that it will happen with the WebAssembly, which is basically pre-compiled javascript
 
probably have to move back to our past language
 
tbf, I wouldn't mind having the web run on C#
pretty close to JS, the transfer shouldn't be too hard. The language is well design and it would be much easier to comunicate with other parts of your computer
 
ya, but agree or not. javascript is wayyyyy different than any other language
 
JS is like the one special kid that everyone loves but it clearly has some problems IMO
or a headless bully that rammages its way through everything, depends on how you look at it
JavaScript is love, JavaScript is life
amen
 
8:41 PM
sometimes i think why people get confused with java and js.
stupid sun
 
@nickB well, I wouldn't get angry at them unless they are programmers of other sorts. Initially even I thought they were almost the same thing
 
the original name is Lifescript. I don't know why they named it as ... javascript. That caused confusions from people coming from Java
 
which were?
 
I thought the same forever before I started googling 'javascript' xD
 
I'm talking about SUN. oracle
netscape didn't have any other option
@sunto everyone did. I remember I once told one of my college mates, I have to finish this on javascript etc
he said, leave it upto me
i know JAVA
:/
 
8:45 PM
In terms of programming a game, I know I can use js, but is it more reccomendable to use programs like C++?
I read that js is more for browsers, and I tried doing a 2,5d game in js, but for non-browser games, I would need to use another language?
 
use unity
:D
 
@nickB
haha yeah, I think still people don't know the difference, before they start programming.
Even for 'webpage-makers' using wordpress etc, I don't think they know the difference xD
hm unity ey
ah, I have it installed, no account xD lol
hm isn't that shitty expencive?
hehe
 
currently, to build games like FIFA and stuff, they don't code anymore
there are engines present
 
ahh of course
I can tell in fallout :(
 
u can use python in creating small games.
as a start
 
8:49 PM
Aha, I will check it out! :)
Hm, but okm, I tried wathing a c++ tutorial, and I only watched like 5 mins, cause it kinda looked the same as js
Is this a common thing in programming that syntaxes etc, and structure are so similar?
I can understand that js is inspired from the same, C, so thats kinda why i ask :p
 
ya it is. concept is same. some differences are there
so once you learn one language very well, you can pickup others quickly
 
How nice
 
(excluding html in learning though)
 
hehe yeah, seems that is just getting easier, and more for dummies xD
Feeling like one example haha lol :)
 
ya know that creating a large game without a starting engine is difficult to achieve. It's more cost effective to develop an engine first, then use it (maybe with adaption if allowed) for multiple titles.
 
8:53 PM
I could have given up more easely be the old ways thou, have seen some code from a friends website and others, td, rows, cells, etc, for me I think I started learning at a good time, last year
 
crl
@nickB Til
 
or use other engines
 
I see, yeah that is naturally a very good point, If onne have a brilliant game idea hehe
 
@KarelG It was Lifescript then it became Ecmascript? why did they change ecma as well?
 
I have some halfway decent, but also I want to learn the how's and especially the how to do from scratch's
 
crl
8:55 PM
^ do that in js pls
my fav game
 
hm
 
"emcascript" is the name for the standardisation of it. "Javascript" is an implementation of ES.
 
haha they got me wuick those pigs xD
 
@crl definitely possible
 
crl
hehe would love it
 
8:57 PM
I can make that, canvas and stuff, no problem.. But that is also why I want to know on a bit more advanced scale also ;)
 
cool! Do you do canvas?
 
crl
make a game engine in js
 
I suck at canvas
 
crl
canvas are like Turtle no jk
 
8:59 PM
hm, canvas was what made me find game engines 'simplified' code
 
:p
 
@KarelG asm.js is just crazy
 
it is
 
It does the same, in waay less time thou, but I like to also try and learn the background stuff, they do have code etc in unity, but that would cost extra to view, so why bother? :P
 
Anyone following CrossCode?
 
9:01 PM
@MadaraUchiha I played the demo... is that following? :P
that game was/is amazing
 
@AwalGarg Don't use SBI ever
EVER
 
@KarelG
hm awsesome ;)
 
@KarelG @sunto I tend to like oos.moxiecode.com/js_webgl/autumn even more
5
 
@ivarni holy cow...
if you like more mathy and simpler stuff that you can do in not much time you can check this out: codepen.io/towc/popular
(yes, I'm a frigging show off, let it be)
 
    // RANDALL WHEN YOU RUN DIFF CHECK THIS
 
9:03 PM
@towc Nope :P
 
thanks, me
 
0.4 added some new content, and I'm stuck in one of the dungeons XD
 
@ivarni
looks like the one in 'The Plan'
 
crl
you've a pro codepen account?
 
@crl the staff gifted to me, not even kidding
 
crl
9:06 PM
you've got some nice things
 
@towc
Huh, awesome
 
@crl thanks ;)
 
@towc : your prime factorization ... nice
found a pattern ? :p
 
@KarelG extremely simple algorithm. I'm pretty sure someone made an api out of it, it has too many views :P
 
or for homework ...
 
9:08 PM
@KarelG if I did I would own half of the world's money ;)
 
@towc
awesome to see trigonometrics used also, in the spining three.. !
Nice stuff there, I have a bit of learning to do from that code :)
 
@sunto it's some 3d rotation. A transformation matrix applied manually, as well as a polar 3d coordinate system transformed into a 3d carthesian system. I wrote a post about those things if you want to check them out ;)
 
crl
spherical system?
 
Absolutely, I am a previous electrician student, and have done none whatsoever math operations in js, so very nice to see something so cool done, makes me think I have to learn that also yes ;)
 
@crl yeah, but it's technically not a correct term, right?
 
crl
9:13 PM
Does it have one length and 2 angles or the opposite?
 
I'm still in highschool if it makes you feel any better ;)
@crl 2 angles and a length
 
@towc
Hah, yeah sure, then your half my age xD
 
I've coded for like a year now, and learned so much wrong things xD
All by myself also, So proud :D haha
But getting somewhere, I at least understand more at the end of the day now, not less, as has been the common way ;)
 
9:21 PM
@rlemon
lol
parenting done right
 
@ivarni Holy smokes
 
crl
*rays
 
i made it
 
Every smoke is sacred, every smoke is great, if a smoke is wasted God gets quite irate
 
!!s/mo/tro/g
 
9:24 PM
@ndugger Every stroke is sacred, every stroke is great, if a stroke is wasted God gets quite irate (source)
 
10/10
 
crl
!!s/str(\w+)/p$1mon/g
 
@crl @ndugger Every poke is sacred, every stroke is great, if a stroke is wasted God gets quite irate (sourcemon) (source)
 
crl
failed miserably
 
@crl @ndugger Every pokemon is sacred, every pokemon is great, if a pokemon is wasted God gets quite irate (source) (source)
 
9:27 PM
no
pokemon is dumb
 
> The uploader has not made this video available in your country.
Thanks Obama
 
Thanks our dear Jens Stoltenberg of Nato :P
 
1 message moved to Trash can
@Lynob Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
Norway also blocked
 
9:29 PM
press control k
 
@sunto He is now NATO, so not my problem any more :p
 
same for UK
 
Luggage must be from Israel or something, controlling it all xD
Haha
 
pastebin.com/z6eAsXE7 not working with byclassname, but working byid
why
 
@Lynob try logging what the thing is
hint: it's not an element
 
9:31 PM
You want to make sure the DOM is rendered before you run your script
 
crl
@Lynob do you know console.log?
 
sure
 
crl
use it to debug things
and check what's x
 
also, it's bad practice to put your scripts in the head, always put them at the end of body
 
ok
 
crl
9:33 PM
so what does console.log(x) return? or just x in
 
@crl undefined
 
@crl console.log() is Any -> undefined
 
@Doorknob It should throw an error, surely?
 
crl
yea.. I mean the other output before undefined when it exists
 
@ivarni huhwhat? Why?
 
9:36 PM
@Doorknob Oh wait you're right, it should log an empty array
 
my farts are particularly pungent today.
 
I keep not paying attention to context
@ndugger That's an early sign of cancer
 
ye m8
 
early? You're in one of the final stages, you should get checked
 
I did the whole cancer thing, came out on top but would not recommend
 
crl
9:39 PM
chemotherapy?
 
here's a good video explaining why your pungent farts will cause cancer: youtube.com/watch?v=dQw4w9WgXcQ
 
Chemo, radiowhateveryoucallit and surgery
 
@ivarni ouch
 
9 months sick-leave with pay because i love mah country :)
 
@crl yes @Doorknob is right, no ouput all i see is <input.edit>
 
crl
9:40 PM
good you beat that
 
it's not in [ and ] is it?
 
crl
@Lynob well input.edit is that element, so that's almost good
 
@crl The average survival rate for that kind of cancer is 50% but I was pretty young when I got it so I was never that concerned
But happy to beat it, obviously
 
crl
yea, good:)
 
TotalBiscuit got the same kind, so there's my claim to fate
 
9:44 PM
No cancer here; I've just had a weak stomach since I was very young. I produce a bit too much acid; it generally shows up in the form of acid reflux
 
@towc where you replying to me sir?
 
were*
 
yes
 
crl
he was
 
@Lynob indeed
 
9:46 PM
@towc i tried it before the enable function, to log it
coz i want to know why it's not being disabled
 
so, is the thing logged between [,] or not?
 
at first not, now i did log it like that i i got Array [ HTMLCollection[1] ] fromage3.html:31:2
ignore the file name :)
 
crl
yea so x is an array
and you tried to 'jquery' it :)
 
yes just a second to show you the script
i used to use
 
crl
funny setTimeout(enableSubmit, 100000000000)
do you expect someone to stay that long on a page?
 
9:52 PM
but stopped, because it works like charm in html pages, cant seem to implement it successfully in php though, so i want to disable button for a week, and i use a loop and fetch_assoc
no no
i want to disable a button for a week after it's being clicked
so you can use it once a week
 
crl
yes had understood that
 
A cookie is probably the best bet for that, or even better handle it on the server. Never trust a browser
 
but cant seem to make it work in php, js is simpler

 while($row = $result->fetch_assoc()) {

         echo "<form action=profile.php method=post>";
         echo "<tr>";
         echo "<td>" . "<input type=time name=fname value=" . $row["date"]. " </td>";
 
@rlemon you're going to love this one: towc.eu/animation.html#1
 
@ivarni yes i know but no one will hack it, just a small project
 
9:57 PM
@Lynob you'd be surprised :P
 
@Lynob Your setTimeout will only work if the user keeps the page open and does not reload for the duration of the timeout
However small the project is, that's not a likely scenario
 
@ivarni i know i'll use html local storage but i should fix the button first
 
Doing what SpaceX couldn't :D
 

« first day (1876 days earlier)      last day (3075 days later) »