« first day (2012 days earlier)      last day (2932 days later) » 

5:00 PM
See ya guys, I'm gonna log off and become a hermit so I don;t get hacked.
 
good idea
 
@SterlingArcher yurp, always that sort of thing throwing hackers off
 
@SterlingArcher Somehow I got 300 on my first day. Did I only answer crap?
@SterlingArcher haha stackoverflow.com/a/36724531/6220751 that hilarious :-D
 
@Tuvia probably :D
it's called "rep farming"
we do it intentionally and unintentionally :D
 
@Tuvia just sit on the jquery tag :-)
 
5:10 PM
I only answered one jquery question I think
 
Neal gamed the jQuery tag for years, now goes on main and tells people not to use jQuery.
ironic?
:P
 
Maybe a change of heart?
 
@Tuvia a great way to rep farm is to surreptitiously post links to your answers in chat: chat.stackoverflow.com/transcript/message/30038020#30038020
 
@SomeKittens hmmm ok. let me try. stackoverflow.com/a/36704667/6220751
Did it work?
 
haha +1
 
5:12 PM
can someone help me with a crossdomain request
 
I guess I did it right @SomeKittens :-)
 
!!welcome J.Doe
 
@J.Doe Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
 
@SomeKittens I guess answers like the original answer here: stackoverflow.com/a/36704678/6220751 show that this "rep" thing does not mean much
But it seems like people choose people with higher "rep" over lowly 400 any day of the week.
 
Im doing a crossdomain request but the website requires a login before you can get in to the messages pages somehow its not working for me to get in and get the callback back of the messages
 
5:14 PM
Yeah, rep is nice but doesn't mean anything in the grand scheme of things
 
10
A: Easiest way to fill array with an object in JavaScript without coding a loop?

Sterling ArcherThere is a way: manually. Any programmatic solution will indeed use a loop here, which, if you wish to maintain your sanity -- use it.

Am I doing this right?
 
@SterlingArcher ;-)
Plot twist: this is still a loop — Sterling Archer Nov 3 '14 at 4:59
ha
 
@SterlingArcher Array.prototype.fill
 
@ndugger isn't that still technically a loop?
 
Only if you care
It might just be that the author doesn;t want to write a loop
vs trying to avoid loops entirely, even in the underlying engine
 
5:17 PM
Why do people upvote my worst answers ._.
 
If it will make you feel better, I can downvote it
 
@SomeKittens this is another one of those answers that the other was selected due to rep it seems stackoverflow.com/a/36704918/6220751 whatever. I am just here to help :-)
@ndugger ha. What do stars do?
 
Can someone upvote this (Y)
xd
 
they feed my addiction
Mar 3 at 18:27, by ndugger
My only happiness in this world can be measured by how many stars I get in chat
 
5:21 PM
/skick
 
I just watched 20 minutes of John Cena vines. What is wrong with my life
 
0
A: Easiest way to fill array with an object in JavaScript without coding a loop?

rlemonIf you really don't want a loop you can use recursion. function objFillArray(obj, count) { let ret = []; return notALoop(); function notALoop() { ret.push(obj); if( count-- ) return notALoop(); return ret; } } this will keep calling notALoop count numbe...

 
@SterlingArcher The fact you can't see it..
 
no one provided the no-loop answer
\o/ hurray answering 2 year old content
 
@rlemon ha amazing. Although....
 
5:23 PM
@rlemon yeah I just answered it with .fill
it's a weird question so meh
 
@Loktar yea I saw that as I submitted mine
"new answer"?
 
Hey @Loktar you said you wanted to make an American chat translator thing?
You should do it with Hadron
 
@Tuvia hey! I can hope it teaches someone about recursion at least.
:D
 
@rlemon nicely done
 
6 secs ago, by Tuvia
@rlemon hmmm yea.
That is true
 
5:26 PM
@AndréSilva that was a rhetorical remark I know my life is in moral shambles
 
> Easiest way to fill array with an object in syrup sucking without givin'er a loop, eh?
lulz
 
@SterlingArcher I guess from seeing 20 minutes about John Cena you'd get what I said...
You still can't see it.. Cena is amazing
 
You don't know my life
 
!!mlab or docker
 
You can't see John Cena
 
5:28 PM
@AwalGarg Neither
 
@_@
 
@SterlingArcher 2.media.dorkly.cvcdn.com/63/90/… you do have the beard
 
Im doing a crossdomain request trought my node.js server but the website requires login to get the messages every thing i did try i could get in the message section
I only get the statis html with this
http://pastebin.com/kzX6Tzvp
 
I do don't I
I need the Chet Manley mustache
 
so Halloween this year you can be krieger
 
5:30 PM
And your mom can go as Pam
 
Is it possible to access a global variable of a node's child process?
 
not cocaine Pam, either
 
I want to change my license plate to HTTP200, and when I get married, change it to HTTP403
 
no, he needs to find someone to go as
 
But cocaine pam is the best pam
 
5:31 PM
 
lmao
Krieger-san
 
@SterlingArcher duh, see how that sentence has cocaine?
 
@SterlingArcher I wasn't aware she had no name
 
I think she has a name
 
@SterlingArcher and when you have a kid, HTTP201
 
5:32 PM
if she does. it isn't mentioned
 
I just saw that, weird
 
My plate should be HTTP429
wink wink nudge nudge
 
418
I'm a little teapot
 
Is this happening again
 
@Loktar For you:
0
Q: Array fill does not seem to work for a sparse Array

TuviaI am trying to fill a sparse array Array(10) all with some object (let us say the string foo) I try this in the console: console.log(Array(10).fill('foo')); // I get as expected ["foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo", "foo"] Ok let us try something different: console....

A little weird.
 
5:34 PM
Get your kid a car with HTTP451
 
Ok ok, I'm back with more stupid questions... Is it safe to send JSON data to the server through XHR ?
 
ooo silly me. I read the spec wrong...
 
By safe I mean, is it ok to do it ?
 
Great :)
 
5:35 PM
so long as you use HTTPS
 
or don't send sensitive data
 
Well, HTTPS will be used.
 
@Tuvia that is a bad question :p
 
@AndréSilva What do you want to send instead of json?
 
@Loktar Yea. should I delete it? I am mildly dyslexic so I read it backwards....
 
5:38 PM
Any kind of register information, products, profile info, login, password...
 
yeah I would delete it tbh
but it's up to you
 
Wow, I have given 30 answers on main :o
@MadaraUchiha why do I not have atleast 30*500 rep already?!
 
@Tuvia it's not a bad question just because of the code snippets
 
@AndréSilva there is no difference from the point of view of security whether you send register/product/whatever information in JSON or XML or any other format.
 
@Loktar #rekt
 
5:40 PM
Well, it is easy to manipulate those information on the client side anyway...
 
@ssube lol there goes all of my hard earned rep from the past day ;-)
 
Thanks :)
 
@rlemon lol well in fairness I didn't DV it
 
neither did I, but I might CV it if there was a "didn't read the docs, oops" option
 
@rlemon there is
 
5:41 PM
@rlemon yeah I was looking for that option :p
 
@ssube ?
 
@rlemon Yea I cannot find that flag option. I just wrote a custom flag
 
off topic, typo or other rtfm
 
ahh there we go, ty @ssube
 
ohh yea
you can specify your own
I never remember that
 
5:42 PM
I wish I could close my own question immediately...
 
I'm going through old things I wrote for PRPG.. and I found this snippet in the crafting engine I wrote
<!-- HTML forms for the general data -->
[ <a href="javascript:void(0)" onclick="$('#toggleEdit').toggle()">Edit Equation</a> ]<br />
<?if ($_player->department_leader > 0)
    ?>[ <a onclick="return confirm('Are you absolutely sure? All data will be gone!')" href="<?=$_SERVER['PHP_SELF'].'?delete='.$item->id;?>">Delete</a> ]<br />
[ <a onclick="return confirm('Are you absolutely sure? All data will be gone!')" href="<?=$_SERVER['PHP_SELF']."?deleteIngredients=".$item->id;?>">Delete All Ingredients</a> ]
This was... 3 years ago?
I am ashamed.
 
I still have some code that rlemon did back in 2012 just for the lulz
 
well i will see if this works
 
@AndréSilva I have code from two days ago for lulz
	register(tag, callback = null) {
		if( !tag ) throw 'tag cannot be undefined';
		if( tag in this.registerStore ) throw `${tag} is already registered in registerStore`;
		if( callback === null ) throw 'you must provide a callback for reads';
		this.registerStore[tag] = callback;
	}
yes i'm throwing strings
deal with it
 
var a = 'abcdefghijklmnopqrstuvwxyz1234567890.',
    i = 18, j = 0,
    b = [a[i++],a[++i],a[++j],a[--i-1],a[i],a[--i-1],a[++j*(j+j)],a[--i-(j+j)],a[j*j+j]].join(''),
    f = function(x,y) { switch(x){case(1):o=y;break;case(0):l=y;break;} return y; }, o,l,
    c = [a[b](i+j)[0], a[b](i++,i), f(1,a[b](--i-(++j),i-(--j))), f(0,a[b](--i-((j++)+j), (i++)-(--j+j))) ].join(''),
    e = o + l,
    d = c+Array(++j+j).join(e);

alert(d);
 
5:46 PM
If that's not job security I don't know what is
 
I obfuscated that by hand.
 
No kidding? That's what I did to @ssube's mom
^5
 
function FF() { return "F"; };                     function UU(){                 return "U";};

    var i,F,f=FF();                                    j=0,U=[],u=UU(),               i = 0,F=[],

    F[i++]=f,                                            U[j++]=u,                     U[j++]=u,

    F[i++]=f,                                            U[j++]=u,                     U[j++]=u,

    F[i++]=f,                                            U[j++]=u,                     U[j++]=u,

    F[i++]=f,                                            U[j++]=u,                     U[j++]=u,
 
you... obfuscated my mom?
 
by hand
 
5:47 PM
^
 
⁵ me ssube
!!learn ^5 "⁵"
 
@SterlingArcher Command ^5 already exists
 
no way
!!^5
 
!!info ^5
 
Wait what
 
5:48 PM
yea way nit wit
 
@CapricaSix Wow sieg heil
 
!!forget ^5
!!learn ^5 "⁵"
 
!!undo x3
 
@SterlingArcher Command ^5 learned
 
@Loktar LOL
WHAT! YOU CAN xY THE UNDO?
 
5:49 PM
:|
 
@SterlingArcher Way to go bubble head. Were you distracted by your hair stylist doing your eyebrows?
 
you can even jump messages
!!echo please
 
please
 
!!undo ~2
 
I knew you could undo a specific id, but not look behind
fancyyyyyy
 
5:50 PM
HAAAAAAXXXX
 
@Trasiva more or less
 
!!should I make the round trip?
 
@rlemon Yes!
 
HE JUST ADMITTED TO SOMEONE DOING HIS EYEBROWS!
 
thankyou
 
5:50 PM
!!undo
 
@Tuvia You do not have permission to use the command undo
 
hmmm
ahhh ok
 
@Tuvia Stick around long enough and prove you're not a whiner/help vampire and you'll be eligible to be promoted to room owner
 
@SomeKittens Cool. Vampire?
 
But only after you prove to us that you can meme hard.
 
5:55 PM
207
Q: The Help Vampire problem

Barry KellyWhat is Stack Overflow's long-term solution for the Help Vampire problem? Quote from article follows: Identifying Help Vampires can be tricky, because they look like any ordinary person (or Internet user, whichever is lesser). But by closely observing an individual's behavior using this hand...

 
script hard, meme hard
 
Is it ok to retrieve a image from the database and send it to the webpage through JSON
 
@AndréSilva JSON is not a binary format
 
@AndréSilva hell no
what is an image doing in your database to begin with?
 
5:56 PM
Wow, everything about that sentence is messed up :D
 
@Tuvia Now just continue on this path, and you'll be a real winner
 
Not the actual image ;p
 
@AndréSilva Under the Geneva convention that's punishable by 4 years of PHP
 
@ssube I used to do that.... I do not remember why.
 
@AndréSilva So?
 
5:57 PM
._. Damn I did not know that was so wrong
 
He means maybe the url? But why would you just send a path as json? Just send a string
or the binary data
 
I don't know ok... :(
 
I don't think he understands what JSON is.
 
@AndréSilva Storing images in the database is generally a bad idea
 
@Tuvia because you're a bad person?
 
5:58 PM
Storing the URLs for the images is fine
 
@Oleg we've been telling him for the past 2 days that it's a string, but he doesn't understand.
 
I'm starting to understand a bit of JSON
 
@ssube ;-)
 
But I'm just trying to understand the best way to do things
 
@AndréSilva JSON is a string notation that resembles JavaScript objects
 
but in the end, IT'S JUST A STRING
 
Just like XML is a string notation that nobody likes.
 
We've told you how many times now?
 
@MadaraUchiha you lie
 
It's a string that's formatted in a certain way, to make it easy to parse
 
5:59 PM
._. 6 times since yesterday
 
until JSON comes out with a schema language, I'll like XML better
 
@ssube What do you mean by that?
 
@littlepootis yeah, it is
 
@ssube You're a corporate monkey, your opinions are invalid.
 
@ssube That exists
 
5:59 PM
I like the new bin room
 
@MadaraUchiha Not an official one.
 
@MadaraUchiha I'm sending information for products and I can submit an image for that product
 
@Zirak my opinions may be invalid, but my data is valid, thanks to the schema :D
 

« first day (2012 days earlier)      last day (2932 days later) »