« first day (973 days earlier)      last day (3976 days later) » 

8:01 PM
@Esailija Here's a benchmark with the most important functions: github.com/copy/life/blob/master/debug/run.js
next_generation is the most important one
 
@copy cheers
 
@Zirak Thanks GMail notification center!
 
i have made a quick fiddle, is this ok? or is it bad, jsfiddle.net/ConnorM/5MZG4
 
8:16 PM
@Connor Definitely not how I'd do it...
 
@Connor I wouldn't do it like this either, I'd just use the DOM api elem.style.type=value , but this way is OK, and perfectly fine
 
@BenjaminGruenbaum ok.. just wondering
 
@Connor I'd probably do jsfiddle.net/H2fyw
 
@BenjaminGruenbaum yea, i usually do i was working on something and this popped into my head, so i thought i would give it a go and see what the outcome was, but i won't do it that way now
 
8:19 PM
This is even better: jsfiddle.net/C9FNP
 
@Nile definitely not relevant :\
 
user1125394
private bool parts;
 
@BenjaminGruenbaum i've never seen that before, is it really bad?
 
Yes, it's horrible .
 
@Connor you didn't really provide context. I'd use classes, that way you have the least DOM-html interaction
and yes, it's pretty bad =/
 
8:21 PM
@BenjaminGruenbaum i've heard a lot about The Game in this room, care to explain?
so is it the "with" thats bad?
 
@Connor I'm sure jAndy would love to tell you all about the game
@Connor Yes, width introduces dynamic scoping, causes global leaks and is generally very dangerous and should be avoided.
 
@Connor yeah. Why don't you tell me why mine wasn't relevant, though? If you're going to interact 3 times, it seems better to just make a set class that you can apply.
 
user1125394
@Zirak haskell is apart
 
user1125394
> A monad is just a monoid in the category of endofunctors, what's the problem?
 
@Nile because it wasn't the question, if i wanted to add a class i would, im working on a create element function
@jAndy where are you
 
8:27 PM
@jAndy The GAME needs to be defined
!!/tell connor google The Game
 
@Connor I remember your question being "i have made a quick fiddle, is this ok? or is it bad"
 
@BenjaminGruenbaum in a generic female voice You have mail
(I apologize for the title. A good one eluded me)
 
Gimme my doughnut back :(
 
The ending sentence struck me in a wave of awesome. I have no idea where that came from.
I'll use it from now on.
 
8:35 PM
@Darkyen what is it?
 
more complete version of that
with 3 models :D
 
@BenjaminGruenbaum I do love how ZaReason lets you pick an OS.
But the spec/price difference is kinda big.
 
email me a zip with all of the code and i'll put it up tonight
 
"email you with a zip"? Put it on github and git clone
 
@RyanKinal you're welcome. ;)
 
8:37 PM
@Zirak more work for him, less work for me
and if he emails me i'll remember to do it
 
@Zirak Just buy a windows laptop like everyone else and stop being a hippy :P
 
Fuck your system
 
Thanks lemon ^_^
 
My dad is not a phone!
 
@Zirak :?
what so wrong with windows laptop you can put linux on it
 
8:39 PM
You think I'm a joke?
 
@Darkyen Not all laptops. They're a damn maze
 
Whatcha want me to do with this? Eat it?
 
@BenjaminGruenbaum :?
 
I took your UX31A, and I threw it on the ground
 
@Darkyen I don't need your handouts! I'm an adult.
 
8:41 PM
:? means what are you talking about ?
 
@Darkyen It means a face with a hook for a mouth
reels in
 
@Zirak ever used skype ?
try it there
 
The first thing I do when getting an IM software is disabling emoticons
They're the devil
 
Emoticons are awesome especially the oldschool ones from SmileyCentral that make a sound when you go over them.
 
8:44 PM
The first thing I do when getting an IM software is disabling emoticons
They're the devil
 
My avatar isn't an emoticon
It's an awesome face with a moustache
 
Also, in 7th grade I was recognized as The Devil.
 
it's fitting, jesus was your study mate.
 
[xesu:s], or [dji:zus]?
 
8:48 PM
Second one
 
it's looks like emotion and i use emotions so that others don't take my jokes seriously, to make sure it's joke like u can't type seriously "he has accident :P " (if the person is not your enemy )
 
@web2students.com Can you give an example?
 
I use humour so people don't take my jokes seriously
 
Web2students you suck :p (emoticon makes it OK)
 
example of what?
 
8:49 PM
Only $99.99 (excluding Windows 7 price)
 
I wish I could control peoples thoughts... That would be cool
you have the urge to install Vista....
 
@web2students.com Such a joke.
 
Setting an alarm clock is the saddest part of the day.
 
@BenjaminGruenbaum i have to search it on my gmail chat
 
I wake up half hour before my alarm every day... Makes me angry.. I can never get back to sleep for my much needed 30mins
 
8:54 PM
@rlemon Better 30 minutes before than 30 minutes after :P
 
y @Zirak?for me wake up is sad not setting alarm
 
I once got the perfect alarm tone. It annoyed me so much, my brain wired to wake me up 7 seconds before it went off, so I won't have to hear it.
3
 
@rlemon rob.lemon or roblemon ?
 
8:59 PM
I have ... the flu ...
 
That looks much more gentle
@OctavianDamiean, Y U NO Vaccinate?
 
I set a cron job to format my hard drive 20 minutes after my alarm clock rings. That way I have to get up.
6
 
I have This as alarm , Makes sure i will wake up even from Comatose!
 
Also,
Feb 12 at 18:27, by copy
Linux Tip of the Day: Turn off your computer to wake you up in 7 hours with Deep Purple - Lazy: rtcwake -m mem -s 25200; firefox https://www.youtube.com/watch?v=oIwcUcZWJbI
When the computer is already on, I don't go back to bed
 
9:03 PM
here emotion is needed
 
Cool. My female friends don't think I'm a sexist jackass, so I don't have to use an emoticon.
I have them fooled
 
You have female friends?
 
lol
 
@FlorianMargaine He's either lying or not a programmer...
 
Eva is a female.... so yes he has one [refering to her calling him by name]
 
9:07 PM
why are you guys binning his messages? (just wondering)
 
We don't like that guy
 
can you just kick him?
 
read the whole transcript of the room @Nile :D
u will understand why we dont like him :P
and no.. for that we will have to push the room to gallery mode
which is bad bad bad!
 
@Darkyen Why minimum number of lines?
 
@FlorianMargaine I hacked a fembot to call me by name
 
9:09 PM
@AmaanCheval to make it a golfic challenge
also minimum lines can come out with some really intresting solutions :D
 
@Nile Of course we can, we don't like giving people the finger though.
 
var terrain = {}; var minimum_path = []; // My generated terrain is empty, so there is no minimum path
2
 
@copy you are genius! man!
 
Perfect
 
@copy Your generated terrain is empty, so every path is a minimum path.
 
9:11 PM
And here goes the debate
 
var terrain = [[Math.floor(Math.random() * 10)]]; var minimum_path = [terrain[0][0]];
 
Well, there is no path
 
Well, if the algorithm just has to find a path, without any definition on what's the correct path...
 
@Darkyen what debate? My statement and his don't contradict :P
 
they dont :?
well hmm true , how about shortest path ?
 
9:13 PM
you can't have a minimum path if there isn't a path at all
 
Exactly
 
Does the empty set have a minimum? No. Is every element in the empty set smaller than all other elements? Yes.
 
@rlemon sent
 
@BenjaminGruenbaum Well put
 
@lonesomeday but when is that someday?
 
9:18 PM
@web2students.com ?
 
nothing ,leave it
 
@Parth who are you and why do you want access to that room -_-?
 
How is he supposed to tell you without access? :p
Wait, we're open right now
 
@BenjaminGruenbaum, he probably wants to see some really funny jokes
 
@web2students.com It's a reference: youtube.com/watch?v=1RoyxLF2ccA
 
9:20 PM
Boy is he up for some disappointment
 
Haha
 
ohk @lonesomeday
 
@lonesomeday Looks like you haven't been here for a while.
 
Why do people want to write in the Really Funny Jokes room?
 
@Zirak, maybe they're comedians. Over.
 
9:22 PM
I have no idea :/
 
@BenjaminGruenbaum No, a busy few months!
 
say i have a function called on, and it adds a event listener, how do i use it like this
element.on(...);
?
 
you'd need a prototype
 
@Connor, what? Over.
 
@phenomnomnominal Roger that, so i would have to return the on function when i create the element?. Over.
 
9:25 PM
throws @phenomnomnominal walkie-talkie down and stomps on it...over
 
there are 6 owners of that room, there are more owners than other users
 
So?
It's not a room to chat in
 
@AmaanCheval i was just telling stats
 
@Connor If I get what you're asking, you'll need prototypes
Create the function on the HTMLElement's prototype
 
Good night everyone
 
9:27 PM
@AmaanCheval ok cool thank you
 
I think
A little rusty on the DOM
 
I'm sorry @AmaanCheval, I'm afraid I can't let you do that. Over.
 
good night @BenjaminGruenbaum
 
am i right in saying for cross browser document prototype i need HTMLDocument & Document ? Over.
 
9:29 PM
Why not just HTMLElement.prototype.on = HTMLElement.prototype.addEventListener?
 
@nomad Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@phenomnomnominal addEventListener is not cross browser is it?
 
It is, except for IE
 
Depends on your definition, fuck IE. Over
 
@phenomnomnominal i know, that would be a dream come true. Over
what ie does not support it?
 
9:30 PM
8. Over.
 
so that's quite a lot of users then? Over and out.
 
Like 100
 
Hahaha
 
Use Modernizr/yepnope
 
what would i gain with modernizr?
like i mean with the on function
 
9:33 PM
It would tell you if addEventListener is available, if not, pull in a shim, then just reassign addEventListener
Or alternatively, tell us what your on function does
 
well at the moment is just to make it easier to add a event listener that is also cross browser, and i will extend it if i ever need to for additional stuff, i just want to make my own little library, the whole objective is to get better at js
 
hehehehe. If you've ever played Mass Effect: 24.media.tumblr.com/48c4651b8110983741eecebecccbb9ba/…
 
@phenomnomnominal ?
 
then do what I suggested
 
@phenomnomnominal ok
@phenomnomnominal so in modernizr if eventListener is not supported do i make the on function have attachEvent, is that what your saying?
 
9:48 PM
basically, if you really want crossbrowser
Or you could just make the decision to have an easier life and ignore ie8
 
that not always possible tho
 
it kinda is
 
damn .
when showing something with javascript is display:inherit; the best?
 
@Connor It depends which manner you want to show it in.
 
It'll be best to know what the previous display property was.
 
9:59 PM
@Zirak that's the whole point
 
inherit doesn't give you that
 
also whats the difference between mouseenter & mouseover
 
> The synchronous mouseenter DOM event is dispatched when a mouse or another pointing device enters the physical space given to the element or one of its descendants. Similar to mouseover, it differs in that it doesn't bubble and that it isn't sent when the pointer is moved from one of its descendants' physical space to its own physical space.
 
!!/tell Connor mdn mouseenter
 
10:00 PM
^ my citation
 
Don't spare him the agonizing task of looking something up.
I bet it took you forever to find that
 
thanks
 
10:22 PM
Find the horrid bug (without reading the comments): stackoverflow.com/a/2167888/617762
if (product.quantity > 100) {
	product.discount = 2;
} else if (product.quantity >= 500 && product.quantity < 2000) {
	product.discount = 5;
} else if (product.quantity >= 2000) {
	product.discount = 10;
}
 
all the conditions make the first one true?
so the elses won't ever happen.
 
I really hope product.discount doesn't have a default value, so they'll get a null error and have to relook at that code
 
Not enough Math
 
In their defence, the 1st else if does cover it.
But still...AGH
 
meh, just swap first and last.
 
10:26 PM
how come ie 8 doesn't support getElementsByClassName? how would you get elements by classes without this?
 
they silly
@Connor, how come IE8 doesn't support WebGL?
 
Oh nice, another reason to dislike Microsoft!
According to Bloomberg a lot of hardware and software companies share vulnerabilities with U.S. agencies before they begin to write a patch.
> Microsoft Corp. (MSFT), the world’s largest software company, provides intelligence agencies with information about bugs in its popular software before it publicly releases a fix, according to two people familiar with the process. That information can be used to protect government computers and to access the computers of terrorists or military foes.
I can't really say that I'm surprised though.
 
They probably release security holes on purpose
 
Doesn't sound absurd.
 
user1125394
10:51 PM
[css], how do you style elements by their name attribute
 
user1125394
let's class it raher
 
user1125394
I was fancying document.getElementsByName
 
user1125394
but there's the same for class
 
input[name="pwd"][type!="pwd"]{background-color:red}
a[href]{text-decoration:underline}
 
hello, anyone who is familiar with postgis?
I am trying to make a sql query
 
10:55 PM
@ChrisPappas try the PHP room
 
@JanDvorak Thx for the advice
 
user1125394
nice @Jan
 
user1125394
is it bad to use name for other things than input?
 
@cx it depends whether you're using it for its intended use or not
 
user1125394
document.getElementsByName('status').forEach((function(el){el.innerHTML = 'online'}));
 
11:19 PM
Feels like it should be a class.
 
11:47 PM
It's been a while since I've dropped in but if anyone's still around who remembers me I just wanted to say thanks - I've learned a lot by lurking here and listening, especially just having gotten an internship doing web development and realizing how much I learned here.
also, what's with the room tags? freakin awesome
 
2.9 because it's <3
six seasons and a movie because community.
 
@phenomnomnominal genius
@phenomnomnominal heck yeah
 
@nondefault Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
seriously though, this room is quiet. Where's the noob spammers? The fervent "pure" DOM supporters? the completely off-topic chat of that one guy beta-testing the newest graphics card?
 
11:59 PM
Vanilla JS fanboism isn't cool anymore
 

« first day (973 days earlier)      last day (3976 days later) »