« first day (858 days earlier)      last day (4090 days later) » 

12:00 AM
Luigi's Mansion FTW
 
lol
Mario gets the princess. Luigi gets Yoshi.
Checkmate.
 
Wario === Shit, Waluigi === Evil fucking genius
 
but we are not talking about Wario and stupid evil Luigi - they both get no chicks.
Mario is the only one who gets any tail.
maybe toadstool. but I don't know if that can be considered "tail"
 
there are other ladies beside peach
 
Yeah what about Daisy
 
12:03 AM
no, that is the beauty of my argument. I already got the only chick.
Mushroom Kingdom... so toadstool
 
hhmmmm..... i don't get a mustache... ha
 
> Daisy is good friends with Princess Peach, and she interacts positively with many other characters. This includes Luigi, who is often hinted to be in love with Daisy. Daisy has appeared in forty Mario series games to date, and continues to appear in Mario games regularly.
but nothing explicit
man, the effort I go to to promote a half witted joke.
 
Yeah, not worth it haha
 
have you seen some of the userscripts I have written?
 
Only that one I think
 
12:10 AM
haha it's not so much that comment.. but the top comments that follow
 
Haha yeah
 
Right, now I'm learning two new languages/frameworks in parallel. Qt5 (QML) and C/C++.
The next couple of months are going to be fun. :)
 
@phenomnomnominal gist.github.com/rlemon/4627804 is kinda fun. gist.github.com/rlemon/4027003 is a bookmarklet gist.github.com/rlemon/3380255 is fun in Chrome + not windows. Unicode ZA̡͊͠͝LGΌ the chat.
ahh the boxes.
gist.github.com/rlemon/3183650 was a fun waste of time.
 
You know, QML is kinda sick, I mean you get some sort of JSONesque object declaration with standard JavaScript intermixed. :D
 
gist.github.com/rlemon/1994205 pokedex object literal.
^ seriously...
 
12:16 AM
ping @rlemon

Pinging @rlemon [123.456.789.10] with 32 bytes of data:
Reply from 123.456.789.10: bytes=32 time=42ms TTL=55
Reply from 123.456.789.10: bytes=32 time=42ms TTL=55
Reply from 123.456.789.10: bytes=32 time=42ms TTL=55
Reply from 123.456.789.10: bytes=32 time=42ms TTL=55

Ping statistics for 123.456.789.10:
- Packets: Send = 4, Received = 4, Lost = 0 (0% loss),
Approximation round trip times in milli-seconds:
- Minimum = 42ms, Maximum = 42ms, Average = 42ms
 
@rlemon What the hell? You have way too much time on your hands.
 
Are there ACTUALLY 651 pokemon now...
 
@phenomnomnominal :O
 
12:19 AM
http://stackapps.com/questions/3161/chat-easy-input-tools-provides-keyboard-shortcuts-for-common-text-formatting-c
http://stackapps.com/questions/2963/stack-search-chrome-extension
http://stackapps.com/questions/3772/killit-bookmarklet-to-replace-single-images-from-the-page
http://stackapps.com/questions/2318/unicorn-voting-bringing-the-joy-of-april-1-all-year-round/2727#2727
are all SO related or inspired scripts
yea... I get bored sometimes...
well... time to game.
bye
 
enjoy the games
 
You should use comments sparingly
 
12:46 AM
@SOChatBot You too... doucheBot.
 
1:15 AM
So, I'm a Spotify premium user now.
feels so boss
 
1:34 AM
Could I be pointed in the right direction please?
Scratch Website; need a shopping cart and want to update the stock amount after a sale :) Right now I am thinking to update a mySQL database yes?
 
wouldn't it be neat if u could parse values to CSS classes
 
@OliverSchöning Well, yea. You have to make sure to update the database accordingly.
 
Could I have a json file lying on the server and use it for the updates? Because that would be easier for my "client" to update one single file like that
 
if u want to why not
 
What do you mean? If you could have a flat-file as a database?
 
1:41 AM
Yeah.. they arent programmers, but something like a json file is easy enough to understand.
Because I would rather not use wordpress or drupal
 
Technically yes, but that could get really messy. I don't recommend doing that.
 
so u mean to update a file with json data?
a standard database is surely simpler
 
You know, your customer should not have to touch the database directly, you could write a management interface.
 
wow, this is an awesome question
0
Q: encode/decode image with base64 breaks image

sissonbI am trying to encode and decode an image. I am using the FileReader's readAsDataURL method to convert the image to base64. Then to convert it back I have tried using readAsBinaryString() and atob() with no luck. readAsBinaryString() Starts reading the contents of the specified Blob, wh...

 
They sell costumes. All they have to do is Edit/Add/remove items.
 
1:42 AM
That's generally how such things are handled.
 
yeh an interface of basic proportions would take less than an hour for edit add remove feature
 
If the data is not relational I would recommend CouchDB.
 
@sissonb i wonder why you think its awesome
 
@Dave almost tricked you
 
1:44 AM
i made a good question didnt get many responses - altho was long time ago
but the answer was good
 
Cheers, luckily I have no real time limit. So, I should check out couchDB and how to create a management interface?
 
what language u good at?
 
@OliverSchöning Beware, don't go for CouchDB if the data is relational!
You've been warned.
 
@sissonb this is what i asked stackoverflow.com/questions/14410994/…
 
CouchDB is great for storing product information for example.
 
1:46 AM
Thx, does that count for mongodb too?
 
Not sure to be honest, I'm no MongoDB expert.
 
I'm not even sure what relational data is :s Data that interacts with other data on the db?
 
think he means tables that are related like many to many, one to many etc
 
Yes, data that relates to other data. That is data that is somehow linked to other data.
 
Dont think thats an issue for me then. Just need to load all the items. But they have nothing to do with each other
 
1:50 AM
@OliverSchöning Basically this:
 
do the items connect to a sales table? or a order table ?
 
@Dave Nothing has been written yet. I would think the sales are handled on client side, and after the transaction it updates
 
well lets say customer buys 2 of item id 3
if u wanted to store that in a database there would be tables related
 
1:53 AM
Yea, a shop generally involves relational data.
Alright, where the hell did my www root directory go now!? o_O
 
cyber space obviously
 
I disappeared after a reboot of my VPS. O_O
Either that or I'm too tired to see it.
WAT!
 
Why would that need to be relational data? Goes over my head. The site is connected to a Paypal account. So, they see the sales there. All I need is to update the items for the site to display
 
if they are not related how will you know who bought what :S
 
note to self: Don't perform sysadmin tasks after 2 a.m.
 
1:57 AM
Over the Paypal I though
 
guess u could
wouldnt say paypal is the best for seeing tablature data of sales history when doing tax returns etc
its annoying paypal dont support ukraine
lot of talent over there for graphic artists
 
This is my first actual site I am making, that's why
They don't? I'm not a big fan of Paypal, read to much of wierd closures of accounts
 
Stripe FTW
 
i try to support as many as i can
paypal is most used so you kinda have to use it sadly
 
@Dave Yeah, and it's really convenient too ... Don't have to pull out my Credit Card for shopping hehe.
 
2:02 AM
i dont even own a credit card xD
 
Wtf :p
I am on Working Holiday in New Zealand right now. Great credit card. They barely use "irl" money at all :p
 
i use debit card
 
Ah, yeah. That's the one I mean :) At least here in NZ
 
OOP stands for "Oh Oh! Poop!"
 
Doesn't work
 
you might have already done it before
I just dug that up an old post in facebook I made a long time ago
jsfiddle.net/andrewjackson/JEcS8/show that's how you'll know if you've already liked it
 
How would you darken an ARGB color?
Do you think averaging it with black is a good idea?
 
@andrewjackson No, I think noscript is blocking it
 
@copy nice
I'm going to start using this
 
2:43 AM
@BenjaminGruenbaum Convert to HSV (or the other one), change darkness, convert back
 
I don't know what HSV is, so I just Googled it...
Herpes simplex virus lol
 
GOD I hate java :/
all sorts of stupid integer overflow problems
 
The magic words which'll open many doors are "Push" and "Pull"
 
!!s/magic words/git commands/
 
@RyanKinal The git commands which'll open many doors are "Push" and "Pull" (source)
 
2:55 AM
leave SO alone!
 
!!/commandlist
 
@andrewjackson You iz in mindjail
 
@Zirak you suck
 
3:13 AM
surely Mozilla has some documentation for this? google.com/search?q=html5%20music%20tag
wanted to refer someone to some decent, easy to read, documentation on this.
 
audio tag?
 
@sissonb lol slap me please
 
lol
 
We will not go to space today.
 
3:23 AM
> Surprise candy sent twice a month, directly from Japan. Free worldwide shipping, even to Germany.
That sounds awesome, should I order it?
 
You most definitely should.
I'm in no way biased of course.
 
Hmm sounds too good to be true
 
You're no biased, I can tell from your honest-looking profile picture
 
Yay, I just coded ambient lighting for my monitors :)
So I can watch a movie on the central one, and the other two light appropriately
 
Y u only have 3 monitors?
 
3:30 AM
Can you really be more productive with 4?
 
I think 6 is optimal
 
One window for editor, another window for reading API, git bash, and the rest of the editor, third window with browser
 
Haha nah in all honesty, as soon as I have more than 1 monitor, I always watch TV/movies while I work, therefore less productive. But no matter how many I have, I always want 1 more
 
I'm a way slower programmer with one monitor
More often than not I read on what I code when I code it to see what solutions other people came up with for similar problems
 
Me too, I need at least 2 to get anything done. And I still use 4 separate desktops on my mac
 
3:34 AM
1 big monitor, throw windows around in random order and laugh at the chaos
 
what's win8 like for dual monitors?
 
The problem is that big ones don't have high enough resolution
 
has it improved much sense Win7?
 
@andrewjackson works out of the box, just like window 7, they added some stuff (taskbar placement on whatever monitors you'd like, and what to display in taskbar)
Also, multiple graphics cards running different monitors works out of the box
 
@BenjaminGruenbaum yeah, that's kinda what I was wondering about
the lack of taskbars always kinda bugged me, even though there was a program for that
 
3:37 AM
I need to replace one of my monitors though
It's not IPS so it's far from fun to look at
 
TypeScript will outdate javascript
 
!!s/TypeScript/cockroaches and only cockroaches/
 
@RyanKinal cockroaches and only cockroaches will outdate javascript (source)
 
!!/tobacconist
 
@BenjaminGruenbaum Drop your panies, Sir William, I cannot wait till lunchtime
 
3:46 AM
!!s/cockroaches/cocks/
 
@phenomnomnominal @RyanKinal cocks and only cockroaches will outdate javascript (source) (source)
 
why am I in mindjail again?
 
The bot is biased against 7th presidents of the USA.
 
that bot's just a hater
 
The bot is a lover and a fighter, and you both know it!
 
3:52 AM
I hate anything that hates me
 
Functional programming is the best
 
@Zirak I've got a confession to make. I rarely ever get your jokes.
 
@BenjaminGruenbaum cya
if someone have time, take a look at my tiny js code.. I can't get it work :(
 
4:21 AM
@sissonb Do you want to see my fiddle? :P
 
4:34 AM
@Lucio open the console "Uncaught ReferenceError: checkForm is not defined "
 
But where I should define the function?
I'm not very good with jsFiddle
 
@BenjaminGruenbaum My god!
 
Also figured out window.checkForm works, but .. why?
 
@BenjaminGruenbaum Thank you!!
 
4:37 AM
Is it something jsfiddle specific, shouldn't function checkForm set it to window.checkForm?
 
@Bemmu exactly, I have no idea
 
sure, just don't use it in production, use a submit event handler instead
@Bemmu it's quite simple really, window is the global object, all obtrusive inline javascript runs in its context
On the other hand, jsfiddle runs stuff that you write in the script area in its own scope
 
@BenjaminGruenbaum But that code worked for me, but when I put in jsFiddle just to try it out, it didn't work :S
 
But if I do alert(this) it says Window
Also this works: this.checkForm = function (titulo){
 
@Bemmu that's interesting, I guess the problem is that that code is added later on
Function declarations work differently from function expressions
If you write function myFunction(){ it gets moved to the top of your code, on the other hand if you write var a = myFunction the var gets moved to the top but the function itself doesn't
 
4:42 AM
That's interesting, always assumed foo = function is exactly the same as function foo
 
I suspect that it is invoked with a function constructor
JSFiddle probably does something like new Function(yourCodeHere).call(window)
which binds the exectution to the window object, but any function declaration would still happen inside the function constructor invocation and not in the actual global scope
Also, they might be doing eval(yourCodeHere) probably similar result
 
@BenjaminGruenbaum That is an excellent article, I'll read that later..
 
JSFiddle inserts a normal <script> tag into an iframe. All variables are global within that iframe.
 
!!>(new Function("function a(){return 5;}")).call(window);window.a
 
@BenjaminGruenbaum "ReferenceError: window is not defined"
 
4:45 AM
right, web worker
that outputs 'undefined'
(new Function("this.a = function(){return 5;}")).call(window);window.a //this outputs function
@JanDvorak how does it have access to window then?
 
an iFrame has its own window.
It's in the same iframe as the HTML and CSS
 
yeah, but look at the fiddle, if you set window.a = function() it works
@JanDvorak Ah
 
Only weird thing when I looked at the frame source of the bottom right window on jsfiddle is that it has <html> inside another <html>
 
The last line is a no-op - functions declared in the global scope are properties of the global scope. See jsfiddle.net/mBm2t/2
 
@JanDvorak if you use a function declaration the script doesn't work though
 
4:52 AM
@Bemmu I can't see any HTML within HTML, only HTML within IFRAME within HTML
 
@JanDvorak same
 
Yeah, like I thought
the function is defined inside a $(window).load event
so a function declaration in it is bound to that function's closure, and not the global closure
global closure lol, I meant global scope
 
Technically, a closure is the inner function that closes over its outer scope
 
Hi all.
Please help me.
0
Q: How to select td on basis of input name using Jsoup in android?

user1726619I am using Jsoup for Html Parsing in android.This is the html table i want to parse: <TR><TD><INPUT TYPE="RADIO" NAME="lccp_trndtl" VALUE="12708NZM KCG YNNYNYNYA"ONCLICK="return farefill('12708NZM KCG YNNYNYNYA','12708','NZM ',0,0,1,0,1,0,1,0,0,0,0)" CHECKED>12708</TD> ...

 
@JanDvorak I can see that you have used jsFiddle many times..
 
4:59 AM
what is?
 
no no.. I say that because all the time that I try to use it that I can't get nothing work :)
 
sorry; what's your question?
 
If something like this happens to you previously or not..
 
not yet
 
Your code acting the way it did makes perfect sense
It's not a problem in the language, you defined a function within another function using function declaration, that moved your code to the top of that scope (where it already was) and converted it to var check.. = function(){} , var statements only exist within the function that declared them
 
5:03 AM
@BenjaminGruenbaum Yes. But I almost create a new question because I didn't find any reason, until you tell me
 
jsfiddle wraps your script contents with a window onload handler, so you defined your function in that handler
which caused it to be undefined in the global scope.
 
You can choose between onLoad wrap, orReady wrap, directly in <head>, directly in <body>
 
That's nice, that means @Lucio doesn't even change the code, he just has to tell jsfiddle the context in which to run it
 
Is hard for me leave C to play around with OOP..
 
It's hard for me to code in C since it makes write so much code for so little
 
5:07 AM
Do you know why C/C++ doesn't have a garbage collector? There would be nothing left.
 
Guys, may I ask you a stupid question?
 
@BenjaminGruenbaum Haha, yeah..
 
@TemporaryNickName no, you may not
 
@JanDvorak burn
 
=(
=*(
Pleeease?
 
5:08 AM
That's what you've got for asking to ask ;-)
 
On this website es5.github.com
What is name of the face? Is it made by ECMAScript people or already existing character from somewhere else?
 
@JanDvorak I prefer to make that joke with C#, it makes more sense..
anyway
@BenjaminGruenbaum Thanks man for your time
@JanDvorak And thank you for your knowledge!
 
 
@TemporaryNickName that's actually not a stupid question
 
5:11 AM
So it's JS mascot
 
is very late in my country so.. bye
 
I cannot use it in my project =(
 
@TemporaryNickName is your project free and open source?
 
Well, it's going to have adsense included
 
then no, you may not use it, at least not without asking
 
5:15 AM
crap
 
1
Q: encode/decode image with base64 breaks image

sissonbI am trying to encode and decode an image. I am using the FileReader's readAsDataURL method to convert the image to base64. Then to convert it back I have tried using readAsBinaryString() and atob() with no luck. readAsBinaryString() Starts reading the contents of the specified Blob, wh...

 
this guy drew it, then again he has a w3.org email so I probably wouldn't bother
 
@BenjaminGruenbaum Thanks again for your help
 
does everyone have the same message in the top right of the page? underneath JavaScript?
A little box to type your opinions in....
 
5:22 AM
?
no
 
awesome
 
I get Welcome to the JavaScript room. Room pseudo-rules: ...
 
weird
 
@sissonb I don't have it
 
i think someone changed mine last time i was in the chat roon
 
5:25 AM
Oh noes
 
> A little box to type your opinions in. Room pseudo-rules: rlemon.github.com/so-chat-javascript-rules - Avoid Religion and Politics until 2/22/13 (one week). I dare you...
 
that's what mine says
 
It changes from time to time
 
Hello, anyone knows how to get an element in XML will a colon in the node name?
ex: <y:abc>
 
5:26 AM
using jQuery
 
@Derek The answer to that is in the jQuery FAQ
 
I tried $("y\\:abc", xml) and it doesnt work in Chrome
or .find("[nodeName='y\\:abc']")
 
36
Q: jQuery XML parsing with namespaces

Brian LiangI'm new to jQuery and would like to parse an xml document. I'm able to parse regular XML with the default namespaces but with xml such as: <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset"...

 
@sissonb - I tried all of the solutions and none of them work, it just returns me a blank array.
 
$("<div><y:abc></y:abc></div>").find("y\\:abc")
seems to work
which is no surprise since it is also what the jQuery FAQ suggests
 
5:32 AM
@Derek then you must have made a different mistake as well.
 
I am not sure if I did anything else wrong
 
1 min ago, by Benjamin Gruenbaum
$("<div><y:abc></y:abc></div>").find("y\\:abc")
works
 
@BenjaminGruenbaum what browser, what jQuery version?
 
@JanDvorak chrome, it doesn't matter which version of jQuery or even using jQuery $("<div><y:abc></y:abc></div>")[0].querySelectorAll("y\\:abc") also works
 
 
5:35 AM
no jQuery:
var d = document.createElement("div");
var o =document.createElement("y:abc");
d.appendChild(o);
d.querySelectorAll("y\\:abc");
 
@BenjaminGruenbaum does that apply to XML nodes as well as HTML nodes?
 
@JanDvorak I didn't know jQuery treated XML differently
 
Anyone know what I did wrong...?
 
doesn't look like @Derek is using .parseXML
 
@BenjaminGruenbaum document.createElement("yweather:location").constructor.name returns "HTMLUnknownElement"
 
5:39 AM
Yeah, so?
 
@BenjaminGruenbaum - obj is returned by $.ajax
 
@BenjaminGruenbaum what is the class of obj?
 
@Derek so obj is a string and you're doing $(obj) ?
 
it is not a string
 
@BenjaminGruenbaum it doesn't look like a string. The dev console expanded that.
@Derek what is obj.constructor.name?
 
5:41 AM
Ah
 
Document
 
does obj.querySelectorAll("yweather\\:location") work?
 
no
 
Document extends Node, not HTMLElement.
 
var obj;
$.ajax({
    url: "http://weather.yahooapis.com/forecastrss?w=" + WOEID + "&u=c",
    dataType: 'xml',
    success: function(data) {
        obj = data;
    }
});
 
5:44 AM
ReferenceError: WOEID is not defined
 
@derek are you using obj outside the callback? <facepalm/>
 
You can't download xml from other servers unless you are using this in a Chrome extension
 
I am using this in a Chrome extension
 
@Derek what should I set WOEID to?
 
I knew it!
 
5:45 AM
2502265
@JanDvorak I can't use it outside the callback? Why?
 
If you use it outside the callback, the callback has not run yet when you use it. <headdesk/>
meaning it's still undefined
 
@JanDvorak yeah but he's checking it in the console
after it is defined
 
So, back to the start
obj is a Document that clearly contains <yweather:location> when observed in the console, but obj.querySelectorAll("yweather\\:location") doesn't find it in Chrome
 
yes, and it is weird
 
Interesting, if I grab it as a string and then send it to a jquery object it works, it's something with the xml
 
5:53 AM
try obj.childNodes[0].querySelectorAll("yweather\\:location"), just to be sure
the conclusion is: always use dataType:"HTML" in $.ajax, even with XML
 
It returns []
 
Ok, I reproduces this in a much simpler case
xmlDoc=new DOMParser().parseFromString("<xml><a:b></a:b></xml>","text/xml");
xmlDoc.querySelectorAll("a\\:b")// []
$("<xml><a:b></a:b></xml>")[0].querySelectorAll("a\\:b") // [<a:b></a:b>]
 

« first day (858 days earlier)      last day (4090 days later) »