« first day (1082 days earlier)      last day (4091 days later) » 

18:00
maybe Zirak you can tweet redigit and ask
user1596138
I like the way PHP works better.
Good idea
I don't like the way php works at all. but I do like a handful of their function names
@Jhawins You like things to perform poorly?
user1596138
var rand = Math.random();
//vs.
$rand = rand();
18:01
How did that guy become a room owner
3
@Shmiddty Explain, please?
user1596138
@Shmiddty No, I don't mean I like PHP better, I just mean I like the procedural style better.
that isn't how php works. that is a preferred syntax.
user1596138
@rlemon See above. That's what I meant, I like the procedural style better, even though I know some people use PHP OO instead.
@Retsam Math makes sense and is better than having arbitrary stuff on the global scope.
18:02
Math is useless, put these things on Number
Why Math.abs and not Number.abs ?
@Jhawins procedural programming maintenance costs grow superlinearly with length.
Sure, Number wouldn't be bad
@Zirak You will love Ruby
I guess I don't think basic math functions are "arbitrary".
user1596138
True. But it's easier to follow for me.
18:03
function mt_rand(s,e,f) { // because this is a php function I could actually use almost daily.
  var r = Math.random() * (e-s) + s;
  return f ? r : ~~r;
}
@Retsam What do math functions have to do with window?
@Jhawins only up to a certain length
user1596138
@JanDvorak When programming by myself, maybe not. I can see how multiple people could have problems following someone else's procedural code for sure.
@rlemon A boolean argument depending on which the result is rounded or not? Eww
ok, now it's a fight between asking him if it's ok to publish the decompilation, to ask him whether he actually made a 10k long switch statement.
18:05
@copy I had to
@rlemon Also, your code is incorrect, you don't want to truncate negative numbers
i'm making a "php function" it has to be ugly.
@Shmiddty I dunno, why do we have window.Math?
@copy ahh, didn't think of negatives.
maybe I should add another flag.
MT_RAND_FLAG_SHOULD_USE_FLOATING_POINT_NUMBERS
MT_RAND_FLAG_SHOULD_NOT_USE_FLOATING_POINT_NUMBERS
MT_RAND_FLAG_SHOULD_USE_NOT_FLOATING_POINT_NUMBERS_FLOOR_NEGATIVE
MT_RAND_FLAG_SHOULD_USE_NOT_FLOATING_POINT_NUMBERS_ROUND_NEGATIVE
looks php'y right?
you should add another flag whether you only want odd numbers to be output
18:07
the mixup of use and not was unintentional, but likely
MT_RAND_FSUNFPNRN, etc.
@JanDvorak good idea
@copy smells hungarian
user1596138
What's the max number in JS that isn't infinity?
all I saw was prn
I'm turning into Abhishek
18:08
!!> Number.MAX_VALUE
@JanDvorak 1.7976931348623157e+308
@Jhawins ^
@vishalsharma 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.
!!> Math.max() == Number.MAX_VALUE
@rlemon false
18:08
(I know the result)
user1596138
Fuck that.
@rlemon (awesome!)
I tink is foony
!!> Math.max() == 1/-0 //?
18:10
b cuz iz phunie
@C5H8NNaO4 true
The only logical way to deal with variadic arguments max is to return -Infinity if there are no arguments. Just like the intersection of no elements is everything.
"@Demilogic Hey, big fan of Terraria. I've just decompiled Terraria.exe, and I'm wondering: Is Terraria.Item.SetDefault(int, bool) really >22k lines long?" trim 13 characters
Unpublished, I need to trim 13 characters.
18:11
-Infinity and Infinity both variables are there..
@Demilogic Big fan of Terraria, just decompiled Terraria.exe, Is Terraria.Item.SetDefault(int, bool) really >22k lines long?
user1596138
@rlemon here is a real (closer) rand function :P
user1596138
function rand(min,max) {
	var argL = arguments.length;
	if (argL === 0) {
		min = 0;
		max = 9007199254740992;
	} else if (argL === 1) {
		throw new Error('You idiot');
	}
	return Math.floor(Math.random() * (max - min + 1)) + min;
}
@SomeKittens It needs to tweet him
function rand() { return 'four'; }
user1596138
18:12
Not that ugly, and does the same thing as PHP.
@Zirak was that so hard?
@Jhawins rand(max) not good enough for you? (min = 0)
user1596138
@SomeKittens I saw someone using the time (seconds only) as his random function.
oh I love pejorative error messages
user1596138
@JanDvorak Haven't ever used that, but I saw it in someone's code yesterday and figured why not.
18:13
> "@Demilogic Hey, big fan of Terraria. I've decompiled the client, and am wondering: Is Terraria.Item.SetDefault(int, bool) really >22k LoC?"
@Zirak "@Demilogic Hey, big fan of Terraria: I decompiled the .exe, and I'm wondering: Is Terraria.Item.SetDefault(int, bool) really >22k lines long?"
Going with @Demilogic Big fan of Terraria, just decompiled the .exe, and I'm wondering: Is Terraria.Item.SetDefault(int, bool) really >22k lines long?
booo
@Esailija you got a real answer btw
LoC <- easy way to trim the last bit
18:14
> ES6 draft makes let a reserved identifier. This is not backward compatible, but we're trying to find out what we can get away with.
user1596138
LoC == 'stupid'
If you can, I'd stick the word "here" in, to clear up that first phrase.
@Esailija that's what I would have guessed too, but tbh I'm not a let fan.
@Demilogic Big fan of Terraria here, just decompiled the exe, and I'm wondering: Is Terraria.Item.SetDefault(int, bool) really >22k LoC?
I first thought you were calling him a big fan of Terraria.
18:15
!!> 1.9999999999999 * Math.pow(2, 0x7fe - 0x3ff)
@copy 1.797693134862226e+308
And I like colon over comma, but I like odd punctuation.
user1596138
!!eval function rand(min,max) {
var argL = arguments.length;
if (argL === 0) {
min = 0;
max = 9007199254740992;
} else if (argL === 1) {
throw new Error('You idiot');
}
return Math.floor(Math.random() * (max - min + 1)) + min;
}
rand();
@Jhawins "SyntaxError: missing } after function body"
18:17
@Demilogic Big fan of Terraria here, just decompiled the exe, and I'm wondering: Is Terraria.Item.SetDefault(int, bool) really >22k LoC?
@BenjaminGruenbaum :(
I've created a "Top Stack Overflow questions" bookmarklet: codepen.io/simevidas/pen/BlJKq
He won't answer me
He'll just find my house and burn me.
anyone know why I can't submit a question?
18:19
@StephenKnoth 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.
says the submit request is returning a 503
@StephenKnoth try waiting
user1596138
@StephenKnoth Close and reopen browser. Maybe. I guess. Sure.
also, a little blood ritual can't hurt.
Have you tried turning it off an on again?
user1596138
18:20
@Zirak Seen waaaaaay too many of those memes about the government...
@Zirak I did manage to turn it off, but then I woke up in a hospital
user1596138
I'm still a fan of the 451 status code idea.
I'm still a fan of http panties.
wearing my 200's today
user1596138
Very nice.
user1596138
18:24
> 451 Unavailable For Legal Reasons

This status code indicates that the server is subject to legal
restrictions which prevent it servicing the request.
user1596138
Fahrenheit 451 is a dystopian novel by Ray Bradbury published in 1953. It is regarded as one of his best works. The novel presents a future American society where books are outlawed and "firemen" burn any that are found. The title refers to the temperature that Bradbury understood to be the autoignition point of paper. The novel has been the subject of various interpretations, primarily focusing on the historical role of book burning in suppressing dissenting ideas. In a 1956 radio interview, Bradbury stated that he wrote Fahrenheit 451 because of his concerns at the time (during the McC...
@Jhawins the only one available under 14?
user1596138
Under 14?
@Zirak @JanDvorak just saw your old post in twitter asking Resig why it's called .fn and not .pt , it wasn't always the prototype.
@Jhawins or whatever your local legislature says
18:26
which is the best way to load data to a datatables? load all data once, or load data for every page
user1596138
@JanDvorak I am so confused.
I'm a fan of the 418: "I'm a teapot".
> But officer, she told me she was 18!
The response body MAY be short and stout.
18:27
@Jhawins ah, it's 18 in US. It's 14 in CZ
where in the world do them men marry like 12 year olds.
that place is fucked.
also, we may drink since 18
user1596138
@JanDvorak Ah. I still don't know what that has to do with http status codes... But yup, 18 here. Or 16 and within 4 years of the other person, in Indiana anyway.
the 21 thing in America makes no sense
user1596138
I just do it anyway. But I'm more fortunate than most around here, I actually go to concerts and such that you have to be 21 for, that's the main thing.
18:29
"18 and you can vote and legally be an adult. but damn you, you'll have to go to Canada to drink for the next three years. Also, here is your complimentary gun, ammo is out back in a bin"
@rlemon also, no french cheese. French cheese can kill.
user1596138
Sort of close, minus the gun part, no one gives out ammo because the gov. took it all already. I have to drive almost an hour to get a box of .357s.
user1596138
@JanDvorak What is French cheese??
user1596138
You just mean French cheese in general? We don't have good cheese?
@Jhawins I think the law is about camenbert. The point is that the bacteria are still alive.
18:31
if (target === myBody || /\scloseEmbed\s/.test(' ' + target.className + ' ')) {
but really, who needs guns.
this is a kids toy, but i've had it break skin under a hoodie
with a marble, imagine what a jagged rock would do
@BenjaminGruenbaum IIRC @FlorianMargaine asked as well. If you know the answer: stackoverflow.com/q/13150944/617762
user1596138
@JanDvorak So you guys eat cheese that's swarming with bacteria?
ummm, do you know what cheese is?
user1596138
sarcasm. I'm having a hell of a time trying to understand half of the things @Jan has said.
18:33
@Jhawins show me one thing that's not swarming with bacteria. I'll refuse to eat it.
@Jhawins Perl does actually define \h and \H perldoc.perl.org/…
\h        [3]  Horizontal whitespace
user1596138
@JanDvorak I was kidding, because you said "The point is that the bacteria are still alive."
user1125394
` ` //horizontal white space
user1596138
@Zirak Interesting. This editor is stupid.
user1596138
Someone's way too star-happy today.
18:35
@Jhawins did I ever say the law made sense? :-)
user1596138
@rlemon Wow.
user1125394
we know computers
user1596138
function dropAnchor(str) { //Eh...
	var hash = str || location.pathname.match(/\/features\/(.*)/)[1] || window.location.hash;
	var links = document.getElementsByTagName('a');
	var anchors = [];
	for (var i in links) {
	        var name = links[i].name;

			if (name) anchors.push(links[i]);
		}

		if (hash) {
			for (var i in anchors) {
				var regex = new RegExp(hash.replace('#', ''), "i");
				if (anchors[i].name.match(regex)) {
					console.log(anchors[i]);
					// window.location.hash = anchors[i].name;
user1596138
Interesting...
18:40
question. can i get JS to Spew code, which, when passed to a function will position/ create elements?

http://deepschool.kd.io/Pages/Super%20User%20Tools/desktop.htm

Lets Say, One Button Gives You The Code as to which elements are created and where they are positioned etc

The Other Loads a Prompt Which When has the code put into it

will 1)Create elements
2)Move Elements
3)Fill The Elements
4)Change The BAckground
user1596138
I stopped at "can i get JS to Spew code...will position/ create elements"
Why?
youtube.com/watch?v=GDqu8tXrQWU this reporter kicks so much ass
@deep your capitalisation is Really Confusing Me.
yeah hes in Detroit
18:42
sorry
Its a Bad Habit
@deep as well as missing apostrophes?
anyone else want to train with me?
Im bad at English anyway. Spare me
Plus i only have one Hand
What's English Anyway?
Jeez
18:45
it's easier to type with one hand if you don't capitalise
what the hell.
that isn't laser tag
haha
its crazy how serious those guys take it apparently
and all the people standing around watching..
user1125394
!!> var foo='s'; 'test'.replace(eval('/'+foo+'/g'), 'x')
18:46
"GO RED"
"TEAR IT UP BLUE!"
@cc "SyntaxError: missing ; before statement"
@cc "text"
Overheard: "I was going to say 'guillotine' but I wasn't sure if I could say the word right."
o.O
Gee ya teen
Yeah... that's the thing. She said it completely correctly.
"So I just said gonna chop yer head off instead!"
18:47
this at work?
Just rolled right off her tongue.
@Robert 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.
is she hot?
18:48
dibs
^ done
ugh, then not acceptable.
everyone knows hot people are allowed to be stupid
user1596138
@deep You code with one hand?
18:48
fapping
yes. Left hand is in a cast
yes @rlemon that too
knows the word, knows how to say it, doesn't want to get it wrong !== 'stupid'
back to my earlier question
user1596138
@deep So you can only use one of your 2 hands right now, you do have 2?
@phenomnomnominal I just thought it was an odd statement.
18:49
I agree. I shall defend her honour though
@Jhawins YES JEESUS
since i have dibs
user1596138
I was going to ask him if it's his jerk-off hand, but I won't because that's crude.
The Broken One Is.
user1596138
18:50
Hahahahahaha
!!/help
A guy on my team is called Murray Nuttall, and we want him to name his kid Buster.
How do you run your browser and your dick at the same time?
You Dont
18:52
Gotta take your hand off to go to a new page.
git checkoot // Canadian git
Total mood killer
my question. is it possible
@RyanKinal Speech recognition might get mixed up by all the moans coming from the speakers.
18:53
48
Q: Print every character your program doesn't have

Joe Z.Your task is to build a program (using only printable ASCII characters and/or tabs and newlines) that prints out exactly the characters in the printable ASCII space (0x20 to 0x7e) that don't appear in your program's source code (in any order, however many times you want). The shortest code to do...

@KendallFrey Well, unless "Do you like that?" is mapped to something in particular, I don't think it will be an issue.
lmao
@eazimmerman Best solution: Make a no-op that includes every character.
@KendallFrey top voted, not best
Nope, best
@KendallFrey depending on the site you can write userscripts for the navigation
they are very useful when avoiding sticky keyboard
@GNi33 I FOUND THE HEADSET!
@phenomnomnominal Yeah, I thought that was interesting too
that has to be worse than brainfuck
Read everything.
@phenomnomnominal WTF? Brainfuck is peanuts
18:57
I guess syntax highlighting could make it almost useable.
peanuts in a good way or bad way?
Malbolge is much harder.
@phenomnomnominal Good for learning, bad for an esoteric language.
user1596138
9
A: Print every character your program doesn't have

minitechPHP 5.2, 4 <?<< Save as a file called NYUIOMK()'DEAQSRWVX[Z]\^@CBGFJLqwv{z}|~`bgfkj203547698;=>!#"%$&+*-.php somewhere in /home. short_open_tag needs to be On in your php.ini. The output is: PHP Parse error: syntax error, unexpected T_SL in /home/wherever/NYUIOMK()'DEAQSRWVX[Z]\^@CBGFJLqwv{...

user1596138
Holy shit that was clever
anyone use eclipse for android development here?

« first day (1082 days earlier)      last day (4091 days later) »