« first day (1311 days earlier)      last day (3631 days later) » 

user1596138
3:00 PM
Eh. Not close really. It's closer than SF
 
Ohhh that's a bit far.
Same timezone though
 
user1596138
~555 miles exactly from my house to the capital
 
bye bye all!!
!!afk until tomorrow
 
user1596138
Wait I just put a tilde in front of a value... And followed that by "exactly" haha
 
Yeah that's a hike
lmao
 
user1596138
3:01 PM
Eh 9 hours or so. The same to Florida
 
I'm back
 
Hi back
I'm ralph
 
user1596138
I have to go all the way to NY next month or the month after. Now that's a drive!
 
hello, sup? lol
 
@RalphWiggum LOL "Im back"
 
3:02 PM
I live in florida and I'm 955 miles to dc
 
anyway, thanks anon upvoter, I've finally reached 1000 tag score for jQuery. I was getting a bit desperate and even answering terrible questions like stackoverflow.com/q/23739177/1331430
 
@Jhawins You can go anywhere you want at this point, why new york of all places?
 
user1596138
There are all kinds of rock slides and shit on the way.
 
@FabrícioMatté I don't think I'd be as excited for getting the Gold jQuery badge lol
 
user1596138
@Neil Just visiting a brother living on an island in the middle of a mountain valley lake way upstate :P
 
3:03 PM
@RUJordan I'm because I just can't get myself to answer there anymore
 
0
A: How to pass variables and data from PHP to JavaScript?

Benjamin GruenbaumI'm going to try a much simpler answer: The core concept here is to understand the core flow of events when a page is served: First PHP is run, it generates the HTML that is served to the client. Then, the HTML is delivered to the client, after PHP is done with it, I'd like to emphasize that o...

 
@Jhawins Wait.. an island in the middle of a mountain valley lake?
 
@BenjaminGruenbaum Noooez go away! I want the gold badge! :(
 
user1596138
@Neil Ummmm. It's pretty fuckin cool. Want a gMaps link?
 
@SecondRikudo you'll get it, I just don't like the idea of AJAX for data, it's very slow.
 
3:04 PM
Huh, Cookies. Haven't thought of that, nicely done.
 
@Jhawins Sure
 
@BenjaminGruenbaum impressive answer. You too @SecondRikudo
 
@RUJordan Thanks :)
 
@ozeczek 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.
 
user1596138
3:04 PM
google.com/maps/… //Clark's island.
 
@FabrícioMatté I don't mind jQuery, it's just so misused I want to rip my hair out
(Which is slightly hyprocritical because I'm pretty sure I misuse jQuery at work)
 
@RUJordan exactly, same for JavaScript. Most questions tagged with JS are about an obscure plugin or integration of a dozen of unrelated frameworks
 
user1596138
Up in the Adirondack mountains
 
user1596138
Gonna do some cliff diving etc.
 
Oh, does anybody like reading crime-suspense novels? I'm about to finish one and it's a great one. It's called Plum Island, and it took a turn you really don't see coming
 
3:05 PM
brb lunch
 
@Jhawins s/cliff/muff/
 
I hate when people try to do something in jquery that they don't know how to do in native javascript
 
@RUJordan Have you watched Death Note?
 
@FabrícioMatté oh. My. God. You just hit the nail on the head dude.
@SecondRikudo a long time ago.. maybe like 1 season? I saw the to point where whats-his-face found out L's real name
 
3:07 PM
@Jhawins Cool
 
6
Q: Rounding decimal numbers using jquery

rplgI have small issue with jquery function toFixed(2). If I round this decimal number 45.24859,I get 45.25 using this jquery function. But my problem is, if I round 10 (it has no decimal part),the jquery function will return a decimal number 10.00. How can i fix this issue? My problem is,If ente...

MOAAAAARRRRRR JQUERYYYY
 
user1596138
No Colorado trip for me this year though.
 
@Meredith for example... "How do I do math in jQuery? $("#derp").val() + 5" .. bleh.
 
user1596138
!!afk
 
@BenjaminGruenbaum please do the needful ^
 
3:07 PM
Need jQuery arithmetic plugin
 
Alright, time to stop speaking like an Indian.
 
@SecondRikudo jesus christ... wow...
please note that this has NOTHING to do with jQuery in the slightest. — RUJordan 26 secs ago
 
People who learn jQuery before JavaScript...
 
dat is bad code @RUJordan.. please
$("#derp").val() + $("5").get();
 
added security note
 
3:09 PM
-1. Agreed. Needs more jQuery. — Neil 34 secs ago
Had to, guys.. Had to.
 
posted on May 19, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {}

 
@jAndy you call that good code? Y U NO WRAP IN AJAX INTERVAL
 
Aww, he removed it :P
 
nobody i$ perfect
 
ha
 
3:11 PM
 
stackoverflow.com/questions/23741268/… please before somebody rep whores an answer
Nuuuuuuuu
 
Too late
 
What was the question?
 
downvote him to hell
he didnt explain his code we have an excuse
nvm he editted
 
3:13 PM
I love the term "rep farming"
 
I was going to say whoring, but I wasn't sure if that was main appropriate
 
I'm a farmer official now
GIMME MY HAT
 
It's a good rep season out in the fields, eh?
Vintage quality, I hear.
 
Jesus christ some people don't even bother to spell check their questions
 
@RUJordan wow that was fast, afk'd for a minute and that question is already closed
 
3:15 PM
@Meredith Maybe we can convince him to change it back so we can hammer him some more.
 
I wish.. I'm afraid the whole harvest could fail this season
too much rotten rep
 
@FabrícioMatté this room handles a lot of bad questions lol
 
@RUJordan yeah, I post 's every now and then as well
 
I don't know how hard the PHP room 's, but we go hard. Ripping bad answers/questions apart. RUTHLESSLY.
 
I've just released Phone to Chrome on the Play Store! I'd really appreciate feedback and criticism! whatthedude.com/ptoc
11
 
3:17 PM
@SomeGuy "You don't have any devices" D:
 
(Tell @mikedidthis how good he is for the design)
 
> RUTHLESSLY.
dis
 
@RUJordan Are you signed in? :p
 
> - Sacrifice a car to Satan
2
LOL
@SomeGuy no I have an iPhone lol
 
Hahaha
@RUJordan It was 3am when I wrote that, and I found it funny :p
Uh, would anyone mind if I pinned my message?
 
3:18 PM
can anybody tell me how to get no of objects in json array
[
{
"memId": "6750208",
"lastName": "G"

},
{
"memId": "6750209",
"lastName": "G"
}
]
Like there are two objects in this array
 
@SomeGuy go for it
 
would invoke JSON.parse and .length
 
@NikhilAgrawal use .length?
 
it is not wokrking
 
@NikhilAgrawal [ /* ... stuff */ ].length
 
3:19 PM
Define "not working"?
 
not wokring
hmm
 
@SecondRikudo now let the closing of dupes begin!
 
@NikhilAgrawal Wait, you didn't use it with that array did you?
 
@BenjaminGruenbaum I'll leave that to you until I get mah DUPEHAMMA
 
The ;lengthis coming undefined
 
3:20 PM
You broke the interwebz.. it was bound to happen someday...
 
@SecondRikudo you don't have one in php?
 
@BenjaminGruenbaum I do.
That's a good point, FIRE AWAY!
 
@Neil I did'nt understabd your question
 
!!> [{ "memId": "6750208", "lastName": "G" }, { "memId": "6750209", "lastName": "G" } ].length
 
@RUJordan 2
 
3:21 PM
wallah
 
!!> JSON.parse('[ { "memId": "6750208", "lastName": "G" }, { "memId": "6750209", "lastName": "G" } ]').length;
 
@jAndy 2
 
he said JSON tho ;)
 
ah, true
yeah, parse it
parse it good
yeah
 
@NikhilAgrawal You've probably just misspelled something
remember it is case-sensitive, so LeNgTh won't work
 
3:22 PM
@SecondRikudo this too?
 
I have used al small
 
196
Q: Pass a PHP string to a JavaScript variable (and escape newlines)

David LaingWhat is the easiest way to encode a PHP string for output to a JavaScript variable? I have a PHP string which includes quotes and newlines. I need the contents of this string to be put into a JavaScript variable. Normally, I would just construct my JavaScript in a PHP file, à la: <script> v...

 
length
 
!!> JSON.parse('[ { "memId": "6750208", "lastName": "G" }, { "memId": "6750209", "lastName": "G" } ]')['LeNgTh'.toLowerCase()];
 
Meh, f it, let's do it
 
@BenjaminGruenbaum Yeah, the answers there suck.
 
@jAndy 2
 
@Neil liar
 
@jAndy smartass
 
@SecondRikudo technically, it is as objective as it can get. If I remember correctly, there is another topic which explains the back-end <--> front-end flow better, which I was also using for dupe closing
 
@SecondRikudo do that one, it's not tagged js stackoverflow.com/q/23704190/1348195
 
@NikhilAgrawal If you see nothing wrong with it, then consider that it could be something before your array that's causing it
 
29
Q: What are the difference between server-side and client-side programming?

Madara Uchiha I've seen questions (mainly on Stack Overflow), which lack this basic knowledge. The point of this question is to provide good information for those seeking it, and those referencing to it. In the context of web programming, what are the differences between Server-side programming and Cl...

?
 
Actually the array is coming from server as response
of an ajax call
 
@SecondRikudo nope, it was in Stack Overflow, and the answer had a nice ascii art
 
3:25 PM
I tried using
 
I'll look for it
 
user1596138
@BenjaminGruenbaum Damn you guys are getting this done fast
 
@SecondRikudo I'm already at 10 dupes
 
JSON.parse(JSON.stringify([......])).length
 
3:26 PM
Like this also but not working..
 
user1596138
lmao this question is just plain stupid
 
user1596138
51
Q: Reference: Why does PHP (or other server side) code in Javascript not work?

deceze Note: This is a made up sample question to illustrate the general problem that comes up again and again, to provide a canonical answer below. I have this code: <script type="text/javascript"> var foo = 'bar'; <?php file_put_contents('foo.txt', ' + foo + '); ?> var b...

 
user1596138
The answer is great though, and belongs under a more suited question. Well I really just like the diagram haha
 
@Jhawins Damn, you post that just when I've finally found it on my favs list!
 
@NikhilAgrawal Have you considered that what you're receiving isn't what you're expecting?
 
3:28 PM
@Jhawins Edit the question, or find a better one and request a merge.
 
user1596138
@SecondRikudo The one you have on programmers about the differences between server/client side
 
Try substituting the text you get from the server with '[1,2,3,4]' and verify that JSON.parse('[1,2,3,4]').length is 4
 
user1596138
I wish we could take questions/answers like that and port them as somehow universal wikis
 
user1596138
Because multiple sites will need that explanation and we can't mark as dupe from another site
 
3:29 PM
If that is the case, then check well what you're parsing. If it is surrounded by {}, then it is an object, not an array
 
@SecondRikudo I've closed it with the question that you voted to close with
Though, it wasn't your reference question one?
 
@FabrícioMatté Noooess that was a mistake on my part :(
 
@SecondRikudo I'm at 16
 
Whatever
 
@SecondRikudo erm, guess I can reopen it and somebody else closes
 
3:30 PM
@BenjaminGruenbaum Is this a race?
 
0
Q: How Do You Use Q.all In Non-Static Form?

Harry PehkonenI'm writing a JavaScript API. The API returns promises created with Kris Kowal's (& contributors') Q promises library. For the most part, I seem to be able to not have to refer to Q in the application itself, which I like because it makes my choice of Promises-library transparent to the person ...

 
Because you know, at the end of the day, both of us have the exact same number of closevotes per day :D
 
@BenjaminGruenbaum can you cv stackoverflow.com/q/8239181/1331430
 
Haddoooooooken !
 
I think I can only close and reopen a given question once
 
3:31 PM
@FabrícioMatté done
 
alright thanks :)
 
Hodor.
 
what's up with the influx of terrible questions stackoverflow.com/questions/23741727/cms-for-persian-language
 
Questions you find with only , ping @BenjaminGruenbaum, questions you find with only ping me :D
 
user1596138
Idk what to do with it. I added the link to Programmers.SO but honestly the title needs changed. The question is "What are the differences between server-side and client-side programming" and has no specificity to JS or PHP. stackoverflow.com/questions/13840429/…
 
3:34 PM
@SecondRikudo yep
anyone with jQuery gold badge? stackoverflow.com/q/23704190/1348195
 
@BenjaminGruenbaum dude
@BenjaminGruenbaum edit in a JS tag then close it
 
Nope, hammer works only for original tags
 
@BenjaminGruenbaum ohh, I should've tried it before :(
yeah, there could be some abuse otherwise
 
@BenjaminGruenbaum Was tagged PHP, closed it.
 
user1596138
 
user1596138
3:36 PM
 
user1596138
More like this
 
@SecondRikudo questions in the tag should be closed by default anyways.
3
 
@JanDvorak rofl
 
@JanDvorak Agreed.
 
With SQL. You'd write this with SQL. — RUJordan 7 secs ago
 
3:40 PM
@SecondRikudo I'm at 30
 
@BenjaminGruenbaum What's your search query?
 
"pass php to js stackoverflow" in google
 
Mine's "pass php javascript variable closed:no [php]"
here on Stack Overflow.
 
@Jhawins's edit needs approving on stackoverflow.com/questions/13840429/…
 
@SecondRikudo I thought you had a php gold badge
 
3:43 PM
@BenjaminGruenbaum I do.
Where are you getting at?
 
21
Q: How to pass JavaScript variables to PHP?

charles sunI want to pass JavaScript variables to PHP using a hidden input in a form. But I can't get the value of $_POST['hidden1'] into $salarieid. Is there something wrong? Here is the code: <script type="text/javascript"> // view which the user has chosen function func_load3(name){ var oForm =...

 
@BenjaminGruenbaum Check history, wasn't originally tagged PHP.
 
user1596138
@FabrícioMatté Yeah. Likely will stay just how it is even though it's horribly worded and no one would ever find it looking for anything but PHP and JS when it applies to all of it as a whole.
 
user1596138
It only had php and js tags even. The concept there applies to all server-side and client-side interactions.
 
3:44 PM
@Jhawins I've voted to approve, and anyone of us with 2k+ rep can edit it without going trough the peer review if your edit is rejected.
 
@BenjaminGruenbaum +21
 
user1596138
Cool!
 
@BartekBanachewicz yeah, we wrote a canonical and simple answer to that today.
 
@SomeGuy Thanks, that was a good read
@SomeGuy Congrats!
 
Try some of his others as well! He's an interesting person
Thanks!
 
3:46 PM
@Jhawins I'm just afraid that it might generate an edit war with Deceze, I'd leave a comment in the question as well
 
user1596138
@FabrícioMatté See comments. I saw the revisions and planned for this contingency ;)
 
@SecondRikudo k, I'm at 5 left
 
@BenjaminGruenbaum eh it's php it can't be good
@Jan summed it nicely
 
@BartekBanachewicz of course it's not, it's just better.
 
@Jhawins ooh, I missed your comment, my bad =] and your edit has been approved already
 
3:47 PM
@BenjaminGruenbaum 4 left
 
I still have 45 close votes and js gold badge, but I gtg soon
 
@BenjaminGruenbaum 0 votes remaining :(
 
@SecondRikudo lol, I put it on HN and got +7 news.ycombinator.com/item?id=7767792
Now the q has 460 views
lmfao, it got to the HN front page, what a joke.
 
3:51 PM
@BenjaminGruenbaum Hehe, you'll get the announcer badge family for it too
 
user1596138
@Amaan nice!
 
user1596138
Probably just pinged 20 more people haha
 
@BenjaminGruenbaum hn = hot network?
 
don't care about badges, just hate the dupes
 
Ohh sorry, was thinking about stack exchange for some reason
hacker news lol
 
3:52 PM
@FabrícioMatté Hacker News
 
@SecondRikudo yeah thanks =]
It would be nice if it'd hit the Hot Network Questions though
good luck :P
 
@SecondRikudo probably link to "How to return the response from an AJAX call" in your answer
 
@BenjaminGruenbaum that has more to do with asynchronicity than back-end <--> front-end imho
 
@BenjaminGruenbaum Can you add it? (I'm not sure which question you're referring to) plus I need to go soon
 
455
Q: How to return the response from an AJAX call?

Felix KlingI have a function foo which makes an AJAX request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. f...

@FabrícioMatté yeah, but @SecondRikudo has a part that briefly goes through AJAX in his answer.
 
3:55 PM
Oh ok =]
 
user1596138
@SecondRikudo I actually added your question link to the answer on that one because he doesn't give much detail
 
@manelvf 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.
 
@Jhawins Heh, CIRCULAR DEPENDENCY!
@BenjaminGruenbaum linked
 
3:56 PM
Oh yeah, RFC #198
 
user1596138
@BenjaminGruenbaum Did you just add that? I was typing it out already haha
 
Oh yeah, @BenjaminGruenbaum, can you make sure auto-gallery is an issue in the repo?
 
user1596138
Hey @SecondRikudo next time you do a question like that, could you please ping @Zirak or @rlemon and see about maybe posting the Q or the A from @CapricaSix? We need more rep so she can change the room to gallery and back automatically.
 
user1596138
// Guys correct me if this isn't what we want but I think it is
 
I think she's got enough now. 1k+? I'll check
 
3:59 PM
@Jhawins Actually, I mainly did it for the gold JavaScript badge.
But once I have it, sure I really don't mind.
 

« first day (1311 days earlier)      last day (3631 days later) »