« first day (671 days earlier)      last day (4269 days later) » 

10:01 AM
I have no idea, without code and a clear description of what you're doing/ want to achieve I'd be guessing
@Vikas: A tip to get started with your debugging: someFunction.toString() shows the function source in chrome console: Webtrends.multiTrack.toString() etc...
 
Ok. Here it is:

function count() {
var xmlHttp = getXMLHttp();
xmlHttp.open("POST", "count.php", true);
xmlHttp.send(null);
}
 
k
 
You're not sending anything?
You're not setting the type of the data you're sending... you're leaving out quite a lot, in fact
xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencode'); or other types. The data is passed to the send method
xmlHttp.send('YourDataHere');
 
@EliasVanOotegem i actually dont have any code. I just want to override that dcsMultiTrack method to return me one out of 2 urls
 
2
Q: Repeated calls with random Javascript append to the URL

cjkI keep getting calls to my server where there is random Javascript appended on the end of lots of the calls, e.g.: /UI/Includes/JavaScript/).length)&&e.error( /UI/Includes/JavaScript/,C,!1),a.addEventListener( /UI/Includes/JavaScript/),l=b.createDocumentFragment(),m=b.documentElement,n=m...

 
10:05 AM
@EliasVanOotegem The code is just to run the PHP, which counts on a PostgreSQL server
 
In which case, you must set the connection type: default is keep-alive (that'll be the cause of your app bogging down): xmlHttp.setRequestHeader('Connection', 'close');
Preferably set the xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');, too
 
@EliasVanOotegem But that is not multi-polling? It does not compete with the fact that the browser(s) cannot handle more than six xhr's at a time.
 
Set these before the open call
 
Hey guys, question: i have a form with two submit buttons (next and previous, wizard thing). I want to call the submit() function and also pass along some data on the submit button, how can i do this? is it even possible to call $(myform).submit() when there is two submit buttons with values?
 
var xmlHttp = getXMLHttp();
xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xmlHttp.open("POST", "count.php", true);
xmlHttp.send(null);
xmlHttp.setRequestHeader('Connection', 'close');
 
10:12 AM
No, it isn't: you said the call should be made on the onbeforeunload event, so there's only 1 call/client. The client then leaves the page (might request a new page, or disconnect all together, but the request is sent and all is GC'ed)
no, set the connection type before opening the connection, the type will be set to keep-alive if you open it before overriding the default
 
So, in that case, I will be better off by sending the xhr's everytime the user clicks the button?
long-polling
 
@serrghi: Yes, the buttons have little to do with submitting the form, but there's a separate jQuery chat I believe
 
Elies, ok thanks il look there
 
So, ok. What does this code do to my xhr?
var xmlHttp = getXMLHttp();
xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xmlHttp.setRequestHeader('Connection', 'close');
xmlHttp.open("POST", "count.php", true);
xmlHttp.send(null);

REASON: I want to learn.
 
@JasonStackhouse: You lost me there... for normal ajax calls (adding content to your page based on user actions) you're better of leaving the connection alive (not setting it to close) but for a call when the page unloads: set to connection to close ASAP
 
10:19 AM
@EliasVanOotegem Oh, you can? Without WebSocket/Comet? I was told that my code was fine, but the problem was that browsers can't send so many requests at a time. I don't think we are on the same line here. I am new to XHR, sorry.
 
Well, you get an xhr object, then you're setting the headers (assume you know what headers are for, if not: just ask ;-P) the first header sets the request mode: it's not a page request, not a form submit, but an ajax call, then you tell the server that the connection musn't be kept alive (or open) --> disconnect asap
 
0
Q: configuration of eclips to run html project on android through phonegap

Md. BayezidI have eclips. I want to run a project written with html, java script, php with mysql database. I put my project in xamp/htdocs folder. I want to run it on eclips with phonegap to see the result in emulator. So i need to configure the eclips. how can i configure my eclips.

 
Yes, browsers can only send so many xhr requests (varying between 2 and 10+, mostly six) But again: I thought you wanted this request to be sent on unload, so there can be only one request per client in that case?
 
Hello
@GNi33 o/
whats up my matey
 
The only thing I can imagine you're having trouble with is that you're creating new connections (with a keep-alive header) in the global scope. These connections will stay open for as long as the user stays on the page. If six calls are made, you're in trouble
 
10:21 AM
\o
not much, haven't slept very much today and that hits my productivity
how are you?
 
incredibly happy]
and filled with positivity
 
@EliasVanOotegem That makes sense. I have a web app that has a button that generates and outputs something. To keep track of how many times the button, I use this method to run the PHP script (count.php) and then it connects to an table and adds +1.
 
now that sounds good :)
 
indeed :-)
a few days with my cousin
they were just incredible
:-)
 
hllo @GNi33, @EliasVanOotegem
 
10:25 AM
she just made me enjoy every moment :-/ , sad that i need more :-/ i want more ! time but alas i am a programmer and i need to work :D
..
 
To avoid that kind of problems in the future, you should use a closure for handlers that make ajax calls, define 1 var in that closure that is a request object. That can have keep-alive header, as there will only be one and it'll be GC'ed when the page unloads (goes out of scope)
@json, you might want to rethink that BTW: how about using that closure as a counter and just send the total number of clicks when the page unloads: only one xhr request, php runs only once and (most importantly) only 1 db action
And the event listener needn't be bound until the button is clicked... that would be a lot more efficient IMHO
 
@Abhishek hehe, very nice. i'd need a 72 hour day after all too
 
@GNi33 :-)
a day should be over 9000 hours
 
@EliasVanOotegem How about counting in a variable in JS and sending a new request to the server with the number of count. (If it is 0, nothing will happen.) On page unload - send the rest if the user closes page before its requested
 
thats what i feel with her :D
 
10:34 AM
That's what I said, just bind the click handler like so: btn.onclick = function(){ var count = 0; return function(e){e = e || window.event; count++; if (typeof window.onbeforeunload !== 'function'){ window.onbeforeunload= (function(xhr){ xhr.setRequestHeader('Connection','close');xhr.setRequestHeader('x-Requested-With','and so on');return function(){xhr.send('count='+count);};})(getXHR())};)();
Nested closures, a bit tricky but oh so powerful and tons of fun
 
0
Q: Speed and size of vendor prefix CSS workarounds (Bootstrap)

user1332729I am developing a site using Twitter Bootstrap, H5BP and other bits and pieces including Modernizr...which references Yepnope.js...which references Prefix Free (https://github.com/LeaVerou/prefixfree). The (compiled) Bootstrap CSS is full of vendor prefix workarounds, which I largely appreciate-...

 
Even more: if count is 0, the xhr object won't exists, and the onbeforeunload handler never gets bound. Also notice: no global variables, as it should be
 
@EliasVanOotegem Oh god. My Web App is "easier" to develop than keeping the stats. How Ironic.
 
@EliasVanOotegem ping @Esailija about your question, it'd interest him to spend some time on it :x
 
10:40 AM
This works...

function count() {
var xmlHttp = getXMLHttp();
var async = false;
xmlHttp.open("GET", "count.php?" + Math.random, async);
xmlHttp.send();
}

but my App lags
 
@FlorianMargaine o/
you're writing in english now? nice
 
@GNi33 yeah, the audience is different ^^
 
you should carry on with that ;)
 
@JasonStackhouse: I've written a structured blueprint of what your code would look like (roughly) if I'd have to write it
btn.onclick = (function(counter)
{
    return function(e)//actual handler
    {
        counter++;//add 1
        if (typeof window.onload !== 'function')
        {//bind handler if hasn't been bound
            window.onbeforeunload = (function(xhr)
            {
                xhr.setRequestHeader('Connection','close');
                xhr.setRequestHeader('x-Requested-With','XMLHttpRequest');
                xhr.setRequestHeader('Content-type','application/x-www-form-urlencode');//set data type
@FlorianMargaine: You mean the one with bounty?
 
hello my comrades!
 
10:46 AM
@EliasVanOotegem Running and implenting code. Two sec.
 
@FlorianMargaine I was hoping to see some of the notorious JS guru's here on chat... is @Esailija a frequent flyer(chatter) here? or is there another way to get to him?
 
Esailija is around in here pretty often, yes
Raynos used to be here frequently, but i guess he has better stuff to do in Frisco now ;)
 
That needn't stop any of you to have a crack at my problem, of course ;)
 
rlemon is in here a lot too
 
@EliasVanOotegem I tried it now. It makes my application respond. Nothing works.
 
10:49 AM
and teresko and florian of course, to name a few of the good guys :)
 
I'll probably have to cut down a bit now.. I just started studies and have a job as well
 
all the homies are here
 
well, again, there are a ton of possible causes for that, but step through the code, check if all dom references are correct, if all variables are in scope, if the code isn't run too soon (ie before DOM load etc... )
@Esailija: interested in some free rep
Well, free... you'll find my predicament somewhat less troublesome, I hope
 
@EliasVanOotegem I'll try COMET. ;) Thanks for coding this for me! I learned a lot actually :D
 
how do you make a snapshot of the DOM model again?
 
10:53 AM
Hello, I am pro in html&css, but newbee in Javascript programming (have an experience with PHP, but nevermind).
I need Javascript and node.js to create small online tools and plugins to text editors to help webdev community.
So can you advise me some books to learn some books to read to achieve my goal?
 
@JasonStackhouse: glad to be of assistance. Keep at it. You said you wanted to learn... So do I, and I must say JS has been one of the most surprizing languages I picked up. Sooo underestimated, and sooo much fun :)
@VladimirStarkov: just search JavaScript books on SO, there's a question on that with a list of books that might interest you
 
2487
A: List of freely available programming books

George StockerMeta-Lists 25 Free Computer Science Ebooks Book Training - On Video Cheat Sheets (Free) CodePlex List of Free E-Books Free Tech Books Galileo Computing (German) How to Design Programs: An Introduction to Computing and Programming Microsoft Press: Free E-Books MindView Inc O'Reilly's Open Books ...

There's a Javascript section
 
@EliasVanOotegem At first sight, it seem immature. It's actually great. What I hate about Web Development is browser compatiblity (mainly IE)
 
@VladimirStarkov: check out the nodejs.org for node.js
 
IE is a hateful thing indeed. Node.js is serverside, so you can play with the language there, without having to think of any other JSEngine but V8. JS does come across as a messy thing at first, but like that dreadful cliché: true beauty lies within
 
10:58 AM
@FlorianMargaine o/
nice article
 
@EliasVanOotegem Yup. This is kinda immature said, but I wish everyone had Google Chrome (Always updated to the latest version)
 
@Abhishek try npm install tartempion :p
@VladimirStarkov bit.ly/jsnoob
 
@JasonStackhouse FF or Chrome is more realistic (and less scary: personally, I fear google is getting too much of the web cake ATM)... Besides, +95% of the JS code you write works in both browsers... That >5% that differs encourages you to learn more about the language, so it has its use. Now I'm off to lunch, after a quick ciggy :-)
 
@Abhishek did you see the logo? :x github.com/Ralt/tartempion
 
@EliasVanOotegem The biggest problem is the new technologies is not supported and people are still using old browsers. OK. Nice talking to you!
 
11:08 AM
@JasonStackhouse: Tell me about it. Company policy: half the company is using IE8 here. I guess Ted Nelson was right when he said "Any fool can use a computer. Many do."
BB @all
 
@EliasVanOotegem Yeah. Now, I have decided (Nvidia did it too) to not let anyone in with old browsers on my site.
 
@FlorianMargaine how u know i didnt ;-)
 
heh
it's cool right?
I love it :p
 
Good morning..
 
11:27 AM
@FlorianMargaine i dont understand it fully , yet
but it looks good so far :-)
 
@FlorianMargaine so good linkname
 
0
Q: C# upload file with additional data

kusanagiI'm using the following code to upload a file: WebClient w = new WebClient(); byte [] res=w.UploadFile("http://gate.com/in.php", @"c:\image.gif"); How can I add additional post data like name=test&value=test2?

what did they think?!
 
RALT was a manufacturer of single-seater racing cars, founded by ex-Jack Brabham associate Ron Tauranac after he sold out his interest...
hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
 
11:47 AM
0
Q: JSON API return HTML

KeninI have a problem about Json API. The api return json with HTML (Javascript, HTML TAG...). So I can not parse the json in Javascript. Have you an idea of the problem? Thanks.

 
o/
 
Hey @rlemon Thanks again for your help on tuesday.
 
\o
 
Working like a charm.
 
i'm not just another pretty face
 
12:11 PM
@Abhishek oh that's cool, didn't know that
@rlemon o/
last night I pushed a module to npm
I expected to be more famous
 
@Esailija @FlorianMargaine looks like the lag was caused by the images loading from lorempixel rlemon.github.com
 
but it doesn't look like so
 
@FlorianMargaine I read the blog post :P
 
and I will try it out soon (once I get the time)
 
12:12 PM
oh cool
but look at the example app, coz the doc sucks right now
 
maybe i'll build the new lememe with it :P
haha the length aspect is messed up I need to fix that (the loading images x of y )
 
12:25 PM
gist: 3378440, 2012-08-17 12:25:07Z
<!-- 
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░▄▄▄▄▀▀▀▀▀▀▀▀▄▄▄▄▄▄░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░█░░░░▒▒▒▒▒▒▒▒▒▒▒▒░░▀▀▄░░░░░░░░░░░░░░░░░░░░░░░░
░░░░█░░░▒▒▒▒▒▒░░░░░░░░▒▒▒░░█░░░░░░░░░░░░░░░░░░░░░░░
░░░█░░░░░░▄██▀▄▄░░░░░▄▄▄░░░░█░░░░░░░░░░░░░░░░░░░░░░
░▄▀▒▄▄▄▒░█▀▀▀▀▄▄█░░░██▄▄█░░░░█░░░░░░░░░░░░░░░░░░░░░
█░▒█▒▄░▀▄▄▄▀░░░░░░░░█░░░▒▒▒▒▒░█░░░░░░░░░░░░░░░░░░░░
█░▒█░█▀▄▄░░░░░█▀░░░░▀▄░░▄▀▀▀▄▒█░░░░░░░░░░░░░░░░░░░░
░█░▀▄░█▄░█▀▄▄░▀░▀▀░▄▄▀░░░░█░░█░░░░░░░░░░░░░░░░░░░░░
░░█░░░▀▄▀█▄▄░█▀▀▀▄▄▄▄▀▀█▀██░█░░░░░░░░░░░░░░░░░░░░░░
░░░█░░░░██░░▀█▄▄▄█▄▄█▄████░█░░░░░░░░░░░░░░░░░░░░░░░
░░░░█░░░░▀▀▄░█░░░█░█▀██████░█░░░░░░░░░░░░░░░░░░░░░░
░░░░░▀▄░░░░░▀▀▄▄▄█▄█▄█▄█▄▀░░█░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░▀▄▄░▒▒▒▒░░░░░░░░░░▒█░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░▀▀▄▄░▒▒▒▒▒▒▒▒▒▒█░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░▀▄▄▄▄▄█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
█░░░░░█░░░░░░░░░░░░░░░░░░░░░█░░█░░░░░░░░░░░░░░█▀▀█░
█░█▀█░█░░█░█░░█▀█▀█░█▀▀█░█▀▀█░░█▀▀█░█▀▀░█▀▀▀█░░░░█░
█░█░█░█░░█░█░░█░█░█░█▀▀█░█░░█░░█░░█░█░░░█░░░█░░▀▀▀░
▀░▀▀▀░▀░░▀▀▀░░▀░░░▀░▀░░▀░▀▀▀▀░░▀▀▀▀░▀░░░▀▀▀▀▀░░█░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
-->
 
Simple question: I want to use JW Player and do some analytics with it. Is there a possibility to see if it is using HTML5 or Flash for Playback?
 
More doctype decoration for anyone
make your source code fun!
 
Source code fun? Use LOLCODE !!!
 
Simple question: I want to use JW Player and do some analytics with it. Is there a possibility to see if it is using HTML5 or Flash for Playback?
 
12:37 PM
@AndréSilva fun
 
Hahaha amazing. Did you do it yourself?
 
nope, modded them to be a bit better though .
you can find really old really bad ascii art from like 2002
spend five minutes and you can make it look a bit better now a days
 
greetings
 
Haha, you should use your trollascii as one of your nice scripts.
and console.log it
 
I'm back to nag, I've just had someone answering my bounty question and the way the #views remains Low I'm afraid this answer might just end up getting the bounty. Please, somebody, help
 
12:44 PM
Guys which of these approaches do you think it's better when it comes to adding some CSS to your jQuery plugin
 
@Adnan: Not using jQuery :D
 
1- a .css file that the user would include in the document then I .addClass
or 2- Directly .css()
So far I'm doing fine with .css(), but the more elements I add the more styling I need => not a good looking code
@EliasVanOotegem, it's alright, thanks anyway :)
 
@Adnan #1. Please #1. Definitely #1.
 
Yep. Use addClass. It will reduce the amount of code on the front end.
 
I thought so, but I needed to consult the experts :D
thanks
So far the Widget Factory has been very nice to me, I think I'll move all my plugins to use it
 
oh :(
 
@rlemon, I like Batman :D
 
@rlemon GEBYBYBYBYBY :(
 
WHAT?!?@#$@#$@ (you didn't enter anything?)
 
1:06 PM
TROLOLOLOLOL
 
Put it in input
 
:|
 
and I know. sorry it was the old default then I changed it
 
is there a way to override mysql timezone when calling FROM_UNIXTIME
 
@Esailija, maybe
 
1:11 PM
Damn phone..
@rlemon EYRZBA, JUNG VF GUVF?
 
@AndréSilva you know, ROT13 works without caps
 
@Adnan sigh it requires the from timezone argument
:<
 
I know. But I rather use caps ._.
 
@Abhishek whenever you do something on git, add *.swp to .gitignore, your editor adds shitty files :p
 
lol
 
1:13 PM
@rlemon I trust you know this? rot13.com
 
@FlorianMargaine I trust you looked at my source code then realized why I made this a website
 
wow I wanna strangle this guy
@Esailija Starting from wikipedia? "Douglas Crockford was the first to specify and popularize the JSON format" — Aurelio De Rosa 2 hours ago
 
-1
Q: How to use the clients webcam for recording through a website?

geminiCoderI am building a site and idealy I would like to record the users interaction via their webcam. How do I intergrate webcam recording into my site. I have seen It done with flash. But Im trying to avoid using this. My site is being built using c#, javascript and designed for IE 7 and older.

 
NOPQRSTUVWXYZABCDEFGHIJKLM Is the correct alphabet for ROT13 :(
 
1:15 PM
Commence strangling!
 
@Esailija ?
 
OHH MAAA GAADDZZZZZ WIKIPEDIA SAID IT!~ IT HAZZ TO BE TRUUU!!!! — rlemon 21 secs ago
 
HTML is a language. XML is a language. JSON is... wait, what? — Florian Margaine 17 secs ago
 
well it's true it's not my point
 
don't ever TRUST wikipedia.
 
1:16 PM
Wikipedia used to be good for school homework..
 
@rlemon delete your comment :p
 
no sir
I stand by my yell-type
 
and @rlemon: wikipedia is the most trustworthy encyclopedia worldwide
 
This is a comparison of data serialization formats, various ways to convert complex objects to sequences of bits. It does not include markup languages used exclusively as document file formats. Overview {| class="wikitable sortable" |- ! Name ! Creator/Maintainer ! Based on ! Standardized? ! Specification ! Binary? ! Human-readable? ! Includes references? ! Schema/IDL? ! Standard APIs |- | ASN.1 | ISO, IEC, ITU-T | | | ISO/IEC 8824; X.680 series of ITU-T Recommendations | (BER, DER, PER, or custom via ECN) | (XER, GSER, or custom via ECN) | | (built-in) | |- | Bencode | BitTorrent, ...
 
wikipedia is still edited and written by the public and not all data is verified it is a good reference but it is not a true encyclopedia
 
1:18 PM
interesting..
XML as a serialization format..
I've always thought it's too cool to be called that
 
all of these are languages though
they have syntax and grammar
 
Hello
 
true, I just would rather not get stuck on what to call stuff
if the guy wants to call it "format" let him have it :D
@dievardump, hello
 
@Esailija but they have no logical functions or methods. they are in fact, formats for data serialization and/or transfer.
 
err, I never said it's a programming language.. geez
 
1:24 PM
but it's not a language. Javascript is the language
 
what?
 
JSON is Javascript
 
no it is NOT
 
@Adnan i just made your smiley happy. you don't need to thank me though. I hope he's doing fine
 
wtf dude?
 
1:24 PM
@Esailija you troll .
JAVASCRIPT OBJECT NOTATION
 
JSON is a language completely separate from javascript
they have different syntax even
 
break it up.
read it out in english. know what the terms are
 
@rlemon JSON is a language, just like HTML is a markup language, but rather it's a data language
 
so you are in the java - javascript trap?
 
@Esailija you had some points where valid JSON !== valid JavaScript, right?
 
1:25 PM
JSON name is even worse than Javascript
 
@GNi33 :D
 
@GNi33 yes, there are a few cases where valid JSON is not valid javascript
 
no i'm not. Can I write JSON using Ruby objects? Can I write JSON using any other objects other than JS?
 
and JSONP (javascript) will fail
 
"ROT13JS
I will provide you with the compiler. you have to figure out how to decompile it yourself." -» rlemon is a funny guy.
 
1:25 PM
you can write JSON with your hand
it's text
 
yes, it's text representing JAVASCRIPT objects.
period. (rather it was meant to be)
 
no
 
you could write bytecode by hand too, though
 
it's language agnostic, it has nothing to do with js
it's like car and carpet
 
the original inspiration was from javascript, but it's a language agnostic format
 
1:27 PM
@Esailija, ooooh.. the car carpet analogy
 
it's not a language, it's a format. you can be the only subset of people who want to believe this. the rest of the world will be happy with out JSON format :P
 
@GNi33, I'm very proud of it, I saw something similar on some other user's profile.. took me a while to figure it out
 
however I say this with my own mindset - not regurgitating Crockford or wikipedia.
 
hmmm
git tags are really useful :/
 
@dievardump ;) that was the idea
 
1:28 PM
and I finally understood them :D
 
you are calling it a format because you have no idea what you're talking about. Just a minute ago you said that JSON represents js objects
 
fakk, this is too early to debate anything - I don't have my coffee yet
@Esailija AS A freeking FORMAT DUDE
 
I actually don't need a develop branch with the tags :/
 
Wooo owooo, easy guys
 
I can represent js objects as a format can't I?
 
1:29 PM
JSON is to be compared with YAML or XML
 
Please don't tell me I don't know what the fuck i'm talking about, i'm pretty sure I do, and many others (more than will agree it's a language) will agree with me.
 
know what the L stands for in both of those?
 
gets popcorn
 
lol @wikipedia
> Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
 
is there a L in JSON?
no, there is a N, meaning NOTATION, meaning not a language.
 
1:30 PM
is there a L in javascript?
 
is there an L in C#
gtfo
 
@GNi33 same
throws a nut
 
(╯°□°)╯︵ ┻━┻
 
so given that JSON is in exactly same category as YAML and XML, what makes JSON not a language that makes YAML and XML a language?
 
goes to get a coffee and a smoke
 
1:31 PM
 
or are you gonna go with the angle that YAML and XML are not languages either
 
I don't agree XML is a language. it is also for data serialization
YAML i have never used
 
json is a language following a format, maybe?
or is it the opposite?
</troll>
 
I normally use XML just for configuration saving for my programs...
 
@FlorianMargaine that, a format following a language.
 
1:32 PM
IMHO, give me syntax and give me grammar => language
 
JSON: No scope, no functions, no loops, just data --> even when parsed, it'll just sit there. A neat package of data. A language is what you use to process, that data.
 
no, you're thinking of programming language
 
> Language: a formal system of signs and symbols (as FORTRAN or a calculus in logic) including rules for the formation and transformation of admissible expressions
 
this is purely about the definiton of the word language right now
 
(merriam-webster.com)
 
1:35 PM
what makes "notation" different from "language" in this case?
 
I think JSOL would sound awkward
 
So would JSOF
 
What is JSON? it has [],{},:," all the rest is not json, but the data. XML has more than just ></?=", it can use CDATA, for example to let the parser know not all data should be parsed. That, to my mind, is a rudimentary form of directives. Does JSON have them?
 
This would be more interesting if it contained "yo mama.."
 
5 is valid JSON... 0005 is not valid JSON but is valid javascript
try it JSON.parse('5')
 
1:42 PM
well, some people consider JSON to be a subset of JavaScript (not my opinion tbh). Does a subset need to fulfill all the syntactic "features" of its parent?
 
you pass a reviver function to the parser
 
JSON is either valid or invalid, it can either be parsed or not, you can't parse a string like {"foo":"bar",[notparse]this is not to be parsed[/noparse]"baz":123} without some preprocessing, done by a language
 
@EliasVanOotegem ... who cares? Does a language have to have "directives"?
Look at the definition of "language", realize that you're wrong, and let it go
 
@Esailija like i said, i don't see it as subset either
but they are strongly related
 
@RyanKinal: No, a language, to me, is more than a set of characters that can't do anything. LinearB is a language that nobody has been able to decipher, without an active, known language, all that rests is an abstract format
 
1:45 PM
yeah but in absolute and technical terms
 
A language has rules for the formation and transformation of data. That's all. It doesn't have to "do" anything besides represent information.
 
Meaouw
 
Please help me.. — user1587577 18 mins ago
 
Careless JSONP has been broken since it's javascript
 
In that case, lets just use plain text to pass data, that'll put an end to this pointless discussion. Or would you like a more clear cut and predictable format
 
1:49 PM
when you put valid JSON inside JSONP, it might not necessarily be valid javascript
 
MessagePack > JSON ._.
 
@Esailija, oh you have no idea how much I'm thanking you right now for that link
 
rad
and................. its Friday :)
 
I had no idea about \u2028 with JSONP
 
obligatory #tgif gif anyone?
 
1:50 PM
@Adnan there's also the parentheses
 
nah, i need to stop posting gifs :D
 
{} is valid on its own in JSON, but not in javascript necessarily
and when it's valid in javascript, you get a label and statement inside a block
 
@EliasVanOotegem I think you're conflating format and grammar. Don't worry, they're very similar terms.
 
I was wondering why my "head-to-keyboard" test was breaking my JSONP
 
It's Friday. Right to troll. Right to say that jQuery is a library for PHP developers, RoR a Hipsters toy, Java a language for people who suffered from schizophrenia and who are looking for something more wasted than their own mind, Sencha is the best Italian restaurant for JavaScripters.
11
I feel better.
 
1:53 PM
what about python?
 
Anyone interested in a quick but paid JS job?
 
wtf....
@ Neal.. Kindly give me a solution like this, my friend.. manos.malihu.gr/tuts/custom-scrollbar-plugin/… this is 3rd coloumn with the title of "Fluid height container without mouse-wheel support".. Please help me, my friend.. — user1587577 10 mins ago
 
this guy seems to like you
 
arrrg... I havent responded in a while... this is the 3rd comment in a row by him...
 
It's safe to assume he's single
 
2:09 PM
@CummanderCheckov how much you pay ?
 
rad
superuser.com/questions/67765/… this question saved my LIFE! :)
 
@rad How could it do that ?
You wrote your password in a file ?
oh no
 
rad
@dievardump well, yes :-|
I had to run it as root
 
lol
@rad slap
 
hehehe
108
Q: Is this rotating cube interface user-friendly?

Peter OlsonI'm working on a prototype for an innovative form interface, where different parts of the form are shown on different sides of a cube. The cube rotates, and the user can fill it out as the cube spins. Here is a working example. To me, it seems like a pretty robust solution to our problem (i.e., ...

this guy just likes to ask troll questions
 
2:26 PM
 
Yes but his questions are rfunny
This one is.
 
rad
@dievardump hehehe
 
@GNi33 Rahul, the moderator, put good comments too.
 
rad
@dievardump I like that question
 
2:51 PM
Didn't read everything but this Smashing Magazine article seems good : coding.smashingmagazine.com/2012/08/17/…
Well it's a Mozilla dev so maybe it's good from a to z
 

« first day (671 days earlier)      last day (4269 days later) »