« first day (1119 days earlier)      last day (3825 days later) » 

12:00 PM
> Hobbits are a fictional diminutive humanoid race
 
ok my mistake, next time i will wrap bad words with backtricks
 
I hate hobbits ... they always mess up my garden with their tiny feet at night.
It seems like disagreeing with someone on chat automatically means flagging that person.
That's the new thing.
 
@OctavianDamiean What ? Where you flagged ? I saw no flag...
 
Nah, from the other rooms.
 
o/
 
12:07 PM
\o
 
i want to know that how is image cutomization done in shop.reebok.com/us/content/…
i know that they have used image map. but how do they customize colors with out using sepperate images.
 
@DeepuSA Did you look at the source ?
 
@DeepuSA Check the source man, it's dead simple.
 
no the at the customize page
 
Well, do it.
 
12:10 PM
@dystroy click on the customize the design option
@OctavianDamiean i only see image maps in the customize page after it.
 
Yea, we've been there. Check the source code. It's simple.
Those are just separate parts of that show as PNGs positioned one above the other.
They're just stacked layers.
 
They use an impressive number of external scripts, no wonder their page takes so much time to load...
 
@OctavianDamiean sorry i am new to programming. i check out the source but didn't understood more than that they are using image map
 
The image map is not related to that process, forget about it.
 
@Sniffer Please note that begging for upvotes/reputation is generally frowned upon by the community. Though not addressing accepts, here is an reference Meta PostC5H8NNaO4 5 mins ago
Does anyone know a better Meta Post, which adresses, "begging" for reputation in general ?
 
12:13 PM
So how do they apply the custom colors
@OctavianDamiean @dystroy. i tried but got no idea.
 
Magic. :)
HOLY CRAP!
That ID.
configure_c1475_p_20382-display-p_20382_ca_26699-Right_Front_Right-
 
@OctavianDamiean I suppose it's based on the element of their catalog
 
Yea, I guess.
It just looks quite weird being that long. :)
 
so they use sepperate pngs for each image part?
 
Good god, SOOOO many external scripts. I thought you were kidding ...
 
12:18 PM
@OctavianDamiean i was on it for the last 2,3 hours. I thought it may be because of my inexperience
 
What's this?
 
A chat.
I know right? Mind blown.
 
@Lugia101101 doubt in image customization shop.reebok.com/us/content/custom-mens-shoes
 
Script wall. O.O
 
Gah, I don't want to code anymore.
I hate it.
 
12:23 PM
Become a web designer instead!
 
@OctavianDamiean PHP?
 
This site is mad, so many nested divs...
 
I think I'll become a gardener. I like plants.
 
Been there. It's all fun and games when it's not raining and not too hot
 
@BenjaminGruenbaum nope, pretty much every language.
 
12:24 PM
@OctavianDamiean Coding is fun ^^
 
@BenjaminGruenbaum True. But gardening too. Nothing else matters apart cooking.
 
Plants are simple. You treat them well, they grow.
 
@OctavianDamiean For code, the key is to avoid it to grow.
If you treat your code badly, it grows.
 
That's not even the problem. It just bores me, I've had enough of it.
 
Hey guys please don't leave me alone with
i need to explain this in a meeting after one hour
 
12:27 PM
@DeepuSA What do you want ? I won't look more at divs so nested the path made of the ids of their parents don't fit in one page
 
@DeepuSA instead of spending hours and days and weeks and months, try to see beyond the code, and imagine you would make it work
 
(would it be ok for a yo mama joke ?)
 
*how you
 
i want to know how they apply colors
to the image
 
maybe work with canvas and paths, and image transparency, and gradients, and colors, and in general work with something.
 
12:29 PM
All I see is that they have a lot of canvas. layering images and changing the colors of mask images are two easy things;
Probably that, yes
 
0
Q: Are there any technical obstacles for implementing `function* ()` syntax

shabuncIn Python we have yield which is very similar to that one which is proposed in ES6 (in fact, pythonic co-routines were the main source of inspiration for implementing co-routines in I wonder what are the reasons for choosing a separate function* () syntax for generators compared to just defining...

 
> in general work with something
 
I see no canvas'...
 
i didn't say that a canvas element exists .
 
It's full of canvases
 
12:30 PM
@FelixLama 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.
 
would anyone recommend CDN script usage for anything important?
 
@Zirak I don't actually.
Did you end up redeeming your code?
 
@Sprottenwels yes
 
You didn't, did you?!
 
should i provide both, cdn and a local file @dystroy?
 
12:31 PM
@dystroy CTRL F in console returned no results for canvas.
Are we talking about the same page?
 
@Sprottenwels opinions varies. I don't like this solution personally. Either I go for "local" or I go for CDN.
@Lugia101101 You need to look for the generated code (in the iframe)
 
@Lugia101101 yes
 
@Esailija I'm asking about try/catch with generators in sO
*SO
 
i need a drink
 
@GeoPhoenix i need an answer.. :)
 
12:35 PM
@BenjaminGruenbaum why
 
@Esailija to see if anyone has any clever idea on how to handle exceptions better
 
@DeepuSA When the configurator is open, type this in your console :
$('canvas', $('#customizeiFrame')[0].contentDocument)
 
stackoverflow is shit
2
 
@BenjaminGruenbaum did you read about the condition system used in lisp?
 
@Esailija No it's not. There is a 1 in 3 chance of someone competent running into it.
 
12:37 PM
@HeroStradivari 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.
 
more like 1 in a million
 
@Esailija Also, it could be great if you could reply to the esdiscuss message so it gets bumped :P
 
I unsubscribed cos of the annoying spam
 
@dystroy ok i will try it.
 
All my questions seem to be answered within an hour.
 
12:38 PM
@Esailija can still reply to that message cos you were ccd
 
it's still on top - why bump :D
 
They had a huge discussion about weak callbacks
 
@Lugia101101 you have any opinion about shop.reebok.com/us/content/custom-mens-shoes
 
I still can't find the canvas. XD
 
so what do you think about
how do they apply colors to the image?
 
12:41 PM
@BenjaminGruenbaum Where are you asking ? esdiscuss ? Link ?
 
shoes are image templates
regions in image which you can color ,are predefined paths (selections), throw some color in it, and magic happens
 
@dystroy i got an empty brackets
 
@dystroy Esdiscuss is esdiscuss.org/topic/… still asking on SO
 
@GeoPhoenix understood up to that much.
but how do they realy apply the colors to the image stil exists
 
have you ever edited an image? you select the region of the image and paint into that region.
 
12:45 PM
There
0
Q: exception handling with generators

Benjamin GruenbaumSo recently generators kicked in in NodeJS and I'm able to do something like: Promise.coroutine(function *(query){ var handle = yield db.connect(Settings.connectionString); //async var result = yield db.query(query); // async return result; }); Now generators are awesome in that th...

@Esailija @dystroy comments please
@FlorianMargaine some of it, not all
 
@GeoPhoenix ok but how can we do that with image maps/javascript
 
@Esailija huh?
 
2
Q: How to select HTML5 canvas shapes?

Digvijay YadavI have a HTML5 canvas on which I have drawn several shapes. What I want to happen, is that when the mouse is clicked on any shape the shape should get selected (at least it can tell what kind of shape is selected). Thank you.

 
@Esailija The whole point is to get people who don't have the fixed mindset and see what solutions they can come up with. Don't assume we understand/know everything there is about it.
 
@BenjaminGruenbaum ? what you are asking.. you already know
the only way to do it is to inspect the error and rethrow it
that's what firefox extension does
 
12:48 PM
@GeoPhoenix but there is no canvas in it.. isn't it?
 
@Esailija that's a way to address the issue. I'm not convinced there isn't a batter one.
 
there is worse ones like not throwing but using if( err ) everywhere
 
People in other languages have been doing generators for a lot longer than we have. It's very possible they have a better idea of how to address the issue than us.
 
it might be an svg , haven't researched yet, might be also rendering it on server.
 
it has nothing to do with generators
you would have exactly same problem with any broken catch syntax
 
12:50 PM
Of course it does, the problem doesn't exist in synchronous code.
 
of course it does
it has nothing to do with async
 
@BenjaminGruenbaum That's where I don't follow you
 
if you do syncronous I/O then it can fail too, you know
 
Would it really surprise you if there is a way to automate or do this better than an instanceof check?
 
and there even PHP has typed catch clauses
 
12:51 PM
@Esailija Yeah but you don't do synchronous I/O
 
Bam, pizza ordered.
 
@GeoPhoenix thanks for the link but you are telling me the alternate way to do it. I actually wanted to know how did they apply colors on
 
it doesn't matter the code is exactly the same except it doesn't say yield
 
Why would if(err) not be better than exceptions ? There's nothing exceptional in IO "errors".
 
12:53 PM
@dystroy yes there is, if I expect to be able to connect to a db and I can't that's an exception.
 
that's not even the point, return code checking is retarded
you have to do it manually for every call
you have to propagate it manually
all that is implicit in exceptions
 
Even if someone comes up with a solution "Hey, I wrote that macro that totally fixes this" that's better. It's a real issue people deal with.
 
writing in some new language is not acceptable for many
 
posted on November 08, 2013 by Victor Rodriguez

How Box.com allowed a complete stranger to delete all my files Six months ago the cloud storage service gave control over my account to someone else, who then nuked it. Fortunately, my data survived. Quantum Experiment Shows How Time ‘Emerges’ from Entanglement Time is an emergent phenomenon that is a side effect of quantum entanglement, say p

 
@Esailija It's a step in the right direction - you don't think asking the community for input is a good idea?
You don't think someone somewhere might have come with a better solution than you?
 
12:56 PM
we'll see
 
@user1956570 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.
 
hello
 
@Esailija srsly?
 
so far the answer is right, it has nothing to do with async
and you must check and rethrow
or use another language
 
If it's really a problem, you could always combine Freakish's answer with a code preprocessor to automatically insert it, no ?
 
12:57 PM
3 mins ago, by Benjamin Gruenbaum
Even if someone comes up with a solution "Hey, I wrote that macro that totally fixes this" that's better. It's a real issue people deal with.
 
hello
 
by macro do you mean keyboard macro or something like sweet.js
 
pfiouuuuu here come the time where I can not postpone the Backbone use
 
@Esailija probably something like sweet.js but I'm not as convinced as you that there isn't a better solution.
 
12:59 PM
@Zirak Bam, I hate you because I haven't had a pizza in over a month.
 
@BenjaminGruenbaum I came up with another solution to the sorting digits thing.
/^$/$</$(?<!!)/!0123456789!/^(\d*)(\d)(\d*)(\d)(\d*)(?=!\d*\4\d*\2\d*!$)/$1$4$3$2$5/^\d+/$>$0
 
lol, don't believe you're still at it
Wait, what?
 
I have no idea how that works
 
REBEL!
It uses an odd sort algo
 
1:01 PM
hello beauties x
2
can anyone assist me two, id be really grateful
 
I wish someone would learn REBEL so I could have intelligent discussion about it :/
 
@KendallFrey Congrats. At least it shows up on Google
 
Someone bothered to prove it's Turing-complete.
Thought that was cool
I suppose it's pretty trivial to simulate a Turing machine
 
milkcloud.co.uk/tissue2/index24.html#applications i got an end of input when i added the scroll.js,... any ideas?
 
an end of input ?
 
1:08 PM
output even, sorry
well its not my site, its a friends, shes added the js. but im not sure if its an error on her end
 
well it says end of output on js chrome dev tools
 
@KirstyHarris emergherd
 
@SeanLarkin 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.
 
lol @AbhishekHingnikar
 
1:10 PM
@BenjaminGruenbaum ewww gross
 
That's from microsoft , they paid for it and yes that's a w3c book at the background.
 
@KirstyHarris what do you wanna get rid of .. step by step
 
@BenjaminGruenbaum How... ironic!
 
well she wants to make a fixed background resizable on ipads etc... but shes used some naff touchscroll thingy lol
 
@BenjaminGruenbaum Thats Internet explorer a girl who dreams of being a super hero
 
1:11 PM
^
 
with a microsoft logo up her ass :D
 
shes got an accordian toggle on her bg
 
O_o
I am out of coffee
 
basically shes using a touchscroll.js and it says unexpected end of input syntax error
only trying to assist her
 
Hello All! Backbone.js pros: If you have a list of subviews that you are rendering from a collection, however you edit one of the subviews models, when you render it, it refreshes the view, but at the bottom of the list of subviews (because .append is being called in my render). Is there anyway to preserve the order of the subview that you edited and reloaded? I have some ideas but wanted ya'lls opinion if you have any.
 
1:16 PM
sigh
that new MS mascot is so dumb
 
Oh crap did I break rules?
 
@dystroy did you get the meta bounty :P?
 
rather than re rendering it, change the specific areas that need to change
 
71
Q: Flags in chat are defective by design

Benjamin GruenbaumYes, I know the topic has been discussed before. I know that Meta already has threads that complain about how flagging doesn't work. I wanted to give a practical example. Today, a user came in to the JavaScript chat and asked the following question: Hey guys, as soon as I embed javascript,...

I want to add another bounty on it, where's the button?
 
Troy, I've thought about that, but I like binding model changes to the view, so that any time the model changes, that subview changes.
 
1:17 PM
@SeanLarkin make functions in the subviews that change the UI based on the model changing
 
@BenjaminGruenbaum I got it. Thanks. I really think it's a bug, as my answer was CW, but I won't bitch about it.
 
@dystroy Can you add a bounty to that question again to increase visibility XD?
 
I'll try
 
I was thinking about writing a function that captures the sibling elements information and then on render to use those two elements to target my append with
 
Did anyone ever created an offline webapp ?
 
1:18 PM
@BenjaminGruenbaum but not too much, because I don't want to risk going above the threshold where you can't see up and down votes
 
@SeanLarkin why are you appending?
 
@dystroy the minimum amount possible
 
@OctavianDamiean, @SomeGuy I would've stopped and taken a picture of the pizza, but it's just too tasty
 
has anybody ever made a compass in html5 ?
 
@AbhishekHingnikar a compass, nice!
 
1:20 PM
@BenjaminGruenbaum The bounty interface is shitty...
 
@dievardump what ?
 
@Zirak I see what you're trying to do, but I'm happier without a picture.
2 mins ago, by dievardump
Did anyone ever created an offline webapp ?
 
Every time something happen, like a click outside, you must do it again...
 
Boarf, nothin.
 
Well frankly troy I'm pretty fresh with backbone.js, and I've only really used $("#sub-view-container").append(@$el)
etc.
 
1:21 PM
done
> This question has an open bounty worth +100 reputation from dystroy ending in 7 days.
I don't even know what happens with bounties on questions already having an answer...
 
Same thing
 
compass is friken hard :P
trust me
 
Bounties are intended for use as a reward for existing answers as well.
 
@dystroy TY
 
ohh thank god I found coffee
that was close
 
1:26 PM
@AndreasKöberle First of all using a particular library is a mean and not a goal. Second of all - in that case _.map is what you're looking for, underscore/lodash has no specific replace/swap functionality on collections, you can add it to the lodash prototype yourself if you'd like. — Benjamin Gruenbaum 12 secs ago
Why do people think using a library is a goal -_-'?
 
@rlemon Next time, ring on my home, I'll save you, I always have coffee (not American, real coffee)
 
Differences in Browsers

As mentioned earlier, alpha, beta and gamma are determined based on the position the device is with the local earth frame. For most browsers, alpha returns the compass heading, so when the device is pointed north, alpha is zero. With Mobile Safari, alpha is based on the direction the device was pointing when device orientation was first requested. The compass heading is available in the webkitCompassHeading parameter.
:-|
 
@dystroy good. American coffee is horrible
Canadian coffee is tasty
realllllly/
 
@rlemon brazillian ?
function information ()
{
  alert("Made by jking. Just a bunch of moving blue circles created with the marquee html code. Made on: 11/6/13")
}
 
1:31 PM
@rlemon wat
 
i have question regarding chrome apps, can i specify an absolute url for the background and other pages ?
I have the website, the web-app uses most of the same code as the extension will the only difference being the extension can run without an actual tab and is just a different view so i wanna do it something like
/index.html <- main app
/extension/<browser>/<specific_files>.<type>
is that possible ?
 
Wohoo, just got an Error on Line 42.
 
codepen.io/jonathan/pen/zAFIp this just kicks ass
 
3 messages moved to Trash can
 
@rlemon i had a question for you. I think you can only solve it. please tell me when you are free.
 
1:44 PM
@zirak can solve many problems too
 
@Zirak !
when did you sneak in you sneaky sneak
 
5 hours ago, by Zirak
wassup bitches
 
@dystroy o_O you pinged me in thrashcan
 
thrashcan
 
besides... i am confused regarding the structure of the app
 
1:48 PM
Where messages go to lock up the computer
 
@AbhishekHingnikar No, I pinged you and then I trashcan'd myself because there was obviously something I was missing
 
okay well
I don't wanna mantain a different package, for chrome safari firefox and metro
ideally i just wanna have angular take care of what to show /<browser>/ simple routing
 
Oh gosh ... I just laughed at a joke made by Sheldon. Not sure how to feel about that.
 
you can make angular chrome apps and angular chrome extension ?
 
chrome extension === web app
angular.js makes web apps so yes
 
1:50 PM
but... chrome extensions ?
 
@rlemon and @Zirak, please try to solve
0
Q: Image customization using Image map

Deepu S A In the website http://shop.reebok.com/us/content/custom-mens-shoes. Click on the Customize the design option. In that i want to know that how does the selected color applied to the image. I know that they are using image map. Thanks in advance.

 
@Zirak :( 5 hours ago I was sleeping
 
@DeepuSA Ok, so I told you that it had nothing to do with images maps, yet you ask that question.
 
@AbhishekHingnikar Oh... got it... you were never really talking about chrome extensions, right ?
 
@DeepuSA do you have nuclear reactors nearby?
 
1:51 PM
i am but i don't wanna write too much code for them
i mean ideally i just wanna have one single code which all extensions use
 
@OctavianDamiean as i far as i know image map has a major role in it
 
and i don't wanna package it into 4 different zips [but i want the browser to fetch it off the web just once]
meh i guess i should just use xyz.com/js/some-file.js
 
anyone wanna hear mikedidthis's accent ^^
it is a good one
 
@DeepuSA ok, let's assume – just for a brief moment – that I know my shit and you don't. If I'd checkout the source code of that website and tell you that image maps have nothing to do with that part of the website, would you believe me?
 
Octavian does know quite a bit about fecal matter
 
1:56 PM
@DeepuSA Sorry, that's not a very good question. It can be solved with a little bit of reverse engineering.
 
I'd listen to him
 
... yea because if you don't listen to me, I might just throw it at you.
Been there, done that, you wouldn't like it.
 
you know the cover of Dookie?
...... all Octavian....
^ right there
 

« first day (1119 days earlier)      last day (3825 days later) »