« first day (1431 days earlier)      last day (3520 days later) » 

11:01 AM
@FlorianMargaine o/
translate fr: Does this work still ?
 
@AtalShrivastava Make the button outside the sets in general?
@AbhishekHingnikar No, sadly.
 
11:22 AM
Any recommendation how to crate javascript popup please?
 
@Marek Create a div, fill with text, add class to show, remove class to hide.
 
http://stackoverflow.com/questions/25867532/mapping-of-key-with-ano‌​ther-key-value-in-localstorage
 
can any one help on dojo dgrid??
 
@ManasDiyali 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.
 
working on her birthday gift.
and is scared
 
11:38 AM
does any one here know how to select outerHTML using jQuery ?
I am trying to create an Array with <li> html but .html() only takes the html inside the <li> tag and not the tag it self.
 
@ImranBughio not use jQuery?
 
i am very noob with vanila JS
jQuery is a lot faster at getting things done..
 
hint: $el[0]
 
i think i got the hint
saving it as an object rather then plain HTML ...
 
If you don't need HTML, don't have HTML. But my hint was that you can switch from jQuery to native DOM at any time.
 
11:43 AM
var portfolioListHtml = new Array();
$('#portfolio-items-list li').each(function(){
portfolioListHtml.push($(this).html());
});
this is the actual code i am dealing with but it do-sent save the LI it self only the html inside it....
 
use [] instead of new Array
 
how would that help?
 
$(this).html() === this.innerHtml
@ImranBughio it's more readable
 
hmm ok
soo any hint on how can i get get entire html rather then innerHTML
 
also, new Array(30) isn't quite the same thing as [30]
@ImranBughio outerHtml
 
11:45 AM
what do we call -- > []
 
it's an array literal
 
i.e this is clearly an array --> {}
 
better yet...
!!tell imran jquery map
 
@ImranBughio that's an object
 
11:46 AM
oh ok
 
var portfolioListHtml = $('#portfolio-items-list li').map(function(){return this.outerHTML})
 
^ trying that
 
without jQuery:
 
A clear sign on good developer -- can convert 10 lines to 1 line of code :p
Thanks Jan that worked
without jquery? isnt .map() a jquery function
 
var portfolioListHtml = [].map.call(
  document.querySelectorAll("#portfolio-items-list li"),
  function(){return this.outerHTML}
)
ES5 has its own Array#map function
 
11:50 AM
hmm
any suggestion where should i go to improve my Js Skills?
 
practice
 
i feel embarrassed to get stuck in such a simple problem
 
then give us a link to your code we should scold review
@ImranBughio everyone starts out inexperienced
 
It underdevelopment
 
everyone makes mistakes
 
11:53 AM
yes you are right
but i just want to speed up
like take a morning pill to learn every thing
 
practice, practice, practice
 
btw is learning the entire API a good idea?
 
@ImranBughio If you invent such a pill, you wouldn't need web development as a career :D
 
thats her birthday present :P
[yes I am that evil]
 
11:54 AM
@ImranBughio Depends on API
 
jQuery API
 
@ImranBughio Your time is better spent learning JavaScript the right way.
 
LOL at that birthday present
 
@ImranBughio the important part is knowing where to look
 
@AbhishekHingnikar Do you seriously hate your girlfriend or something? XD
 
11:55 AM
@SecondRikudo nope, lol i already gave her clothes and went shopping with her
but i wanted to do some code thing
it has our photos in 2d scroll in the background [infinite... but can't share that here]
working on fire-flies for background :-/ but idk if i will be able to do it :-/
 
@JanDvorak I read about Spaced learning sequence few days back and i think its very effective -- i am trying to find a good tutorial source of JS/jQuery learning then use Anki with it.
 
Always a good way to get help: "and please not negative point my question. its your fault that you cant understand question"
 
@ImranBughio memorisation isn't the way to learn programming. Programming is knowing how to stick together the pieces you have, not knowing every detail about each piece.
4
For details about pieces there are datasheets
 
The ability to fit pieces together is more like intelligence
In my case i mostly feel like there is a piece but i don't know its reference. just like the problem i was having right now.
For Intelligence i have to do more practice.. is there any group of peoples who create/ recreate plugins for practice -- that would be a good idea to do some practice.
 
@ImranBughio then learn where to look...
 
12:06 PM
Stack over flow chat room is one place too look :p
 
I mean documentation. We aren't a documentation
 
Basically, L2GGL.
Usually just typing what you're trying to do, in google, gets you the answer.
 
stay away from w3schools, though
 
!!google "Merge arrays in JavaScript"
 
12:07 PM
and w3reference
 
yeah i have heard terrible things about w3school
 
@ImranBughio You can know Chinese perfectly. You know all of the symbols and their meaning, you know all the grammar rules and niches, even the differences between browsers areas. But if you can't express yourself in Chinese, all of that knowledge is worth squat.
 
w3c is fine, but hard to read
 
The difference is, you can lookup Chinese symbols and grammar online. Learning how to express yourself in Chinese is harder.
Programming languages are not much different.
 
@SecondRikudo well said
 
12:08 PM
Ni hao, world!
Or is that japanese? Or korean?
 
except when speaking, you have less time you can spend looking up the documentation
 
Learning how to express yourself in any language is far more important than knowing how use any given language.
 
lol Ni hao is the only word i do know from Chinese :D
 
Memorisation is only useful to help you survive history lessons at school
 
The entire school system depends on memory shit.
the better you are at memorizing the better you will score in school.
& i have never been good at memorizing
 
12:12 PM
@ImranBughio That's because people who have excellent memory skills but poor understanding skills are better employees, and easier to control generally.
 
Thats soo true
Ok -- i have to finish my task now... at office
have half hour before i leave for home (yay)
 
@SecondRikudo what colors are fireflies ?
 
@AbhishekHingnikar When lit or not? :P
 
@SecondRikudo when lit
i am trying to build fireflies that just fly around making a heart shape
that should save my ass :P for almost forgetting her birthday
 
Apparently, they have a greenish shade
Lampyridae is a family of insects in the beetle order Coleoptera. They are winged beetles, and commonly called fireflies or lightning bugs for their conspicuous crepuscular use of bioluminescence to attract mates or prey. Fireflies produce a "cold light", with no infrared or ultraviolet frequencies. This chemically produced light from the lower abdomen may be yellow, green, or pale red, with wavelengths from 510 to 670 nanometers. About 2,000 species of firefly are found in temperate and tropical environments. Many are in marshes or in wet, wooded areas where their larvae have abundant sources...
 
12:19 PM
> yellow, green, or pale red
Not just greenish
 
Sounds like a random color between 0-120
Give or take.
 
are we talking about interesting bugs?
!!wiki rosy maple moth
 
The Rosy Maple Moth (Dryocampa rubicunda) is a North American moth in the Saturniidae family. Males have a wingspan of 32–44 mm; females of 40–50 mm. They have reddish-to-pink legs and antennae, yellow bodies and hindwings, and pink forewings with a triangular yellow band across the middle. Males have bushier antennae than females. As the name implies, rosy maple moths mainly feed on Maples, particularly Red Maple, Silver Maple, and Sugar Maple. However, the adult moths do not eat. == Life cycle == Females lay pale yellow eggs in clusters of 20-30 on the undersides of maple leaves. After about...
 
can't tell if waving or ordering an attack
 
Or just looking fabulous.
 
12:24 PM
it is one damn good looking moth
and you know I can't talk about anything without talking about fish
!!wiki red lipped batfish
 
The red-lipped batfish or Galapagos batfish (Ogcocephalus darwini) is a fish of unusual morphology found around the Galapagos Islands at depths of 30m or more. Red-lipped batfish are closely related to rosy-lipped batfish (Ogcocephalus porrectus), which are found near Cocos Island off the coast of Costa Rica. This fish is mainly known for its bright red lips. Batfish are not good swimmers; they use their highly-adapted pectoral fins to "walk" on the ocean floor. When the batfish reaches maturity, its dorsal fin becomes a single spine-like projection (thought to function primarily as a lure for...
 
one handsome fish
wikipedia always has the worst images
 
@rlemon wanna help me ?
@rlemon wikipedia's reason for worst image is CC btw
they can't have images which are not in public.
 
I suppose, even though I'm still waiting on a website :P
 
Hello guys
Can you please help me setting a simple cookie in my app http://stackoverflow.com/questions/25868092/how-to-validate-a-div-according-to-cookie-set-in-jquery
 
:)
 
@Vikram You already got an answer.
A good one
 
Oh Okay I was expecting some simple answer @Second
 
or just use media queries to not show the ad, but it still loads.
 
@Vikram You were expecting someone to spoon feed you.
 
12:29 PM
I almost like that better than forcing a page refresh
 
@Secound (: :D
@Second
 
12:43 PM
and please not negative point my question. its your fault that you cant understand question. — CHiRAG 3 hours ago
 
he said that to... Jon Skeet???
 
lol yea
I'm cracking up over here
 
still i have 10 points — CHiRAG 2 hours ago
not anymore, sucka
 
Look at Jon Skeet's score. Look at yours. He doesn't have trouble understanding. You have one reputation point, but that's only because that's the absolute minimum you can have. — Jan Dvorak 11 secs ago
 
Please help for my string replace with regex pattern: stackoverflow.com/questions/25866631/…
 
12:49 PM
just gold.
 
Maybe if we downvote him enough, we can convince the code to lower his score past 1 ;-)
 
awww john removed his comment
 
1:05 PM
@SecondRikudo codepen.io/darkyen/full/qmjJt [say now]
 
browsed main, lost some braincells
 
@rlemon help now man.. big help now
 
you need to ask a question first
 
can u help me make a proper randomization function for codepen.io/darkyen/pen/qmjJt
i don't want them to appear inside the heart.
 
If anyone has experience with WebGL, I'd love to hear your thoughts on it and how complicated it might be to learn. I'm not gonna step into it soon, but definitely in the future.
 
1:06 PM
Bang Bang **** Calling on all SQL gurus in here ***** Bang Bang
 
@AbhishekHingnikar Nice
 
rather all around the screen ?
 
If a bit too slow?
 
and then income and take places
 
@AbhishekHingnikar 'get a browser' LOL
 
1:07 PM
Hi ! Again with my s419743653.onlinehome.fr/things/test2.htm ... I would like that when I click on a text, a DOM <textarea> appears in order to make it editable... How would you code the HitTest ?
For each mousemove, compare the x,y to an array of coordinates of rectangles of each textbox (there can be > 1000 textboxes!)
 
@Basj you're gonna want to store all of your texts in an array that has their coordinates, then once you click, you need to iterate through them and compare the click coords with the text coords, then you can make it editable, save it back in the array, and redraw
 
this would be very slow.... to see if x,y is one of the thousand rectangles (textboxes) .... for each mousemove...
 
@Basj First of all, click, why mousemove?
 
^
group nearby textareas into groups, then hit-test each group. If the group hits, test each area within the group.
 
@SecondRikudo to show a "cursor" like this : pragsoft.com/umls/help/gifs/cursors/IBar.gif
 
1:10 PM
And second, you can employ some pretty easy array search assuming your array is sorted.
 
You can also have groups of groups...
 
@AbhishekHingnikar don't really like how the dots get on top of the text and image tho
 
@Basj How about you don't use canvas for this then?
 
@JanDvorak waw this gonna be difficult for me...
 
@towc yeah fixing that :-)
 
1:10 PM
@SecondRikudo how ?
 
also adding multi-colored and dying and creating dots
[they are fireflies dude]
 
@NickDugger that's what I thought, but would be slow to test in an array of thousands of elements on each mousemove...
 
@JanDvorak That's actually really clever, and I never would've thought of grouping them... I'm so ameture
@Basj do what @JanDvorak said, and group them
 
@JanDvorak Wrong close reason
 
1:12 PM
@SecondRikudo muscle memory
 
@NickDugger that seems so f**ing difficult to me
 
@Basj usually the best things are the harder things.
 
not always... but in this case it seems true
 
@Basj also, don't do mousemove, that would be stupid. Simply test on click
 
> XMLHttpRequest: Network Error 0x2ee7, Could not complete the operation due to error 00002ee7.
IE11
 
what the hell is this?
 
Either my reason or too broad
 
mousemove will destroy your performance doing that
 
@NickDugger then there would be no "edit" cursor
 
@rlemon Could not resolve name or some stuff?
 
1:14 PM
@Basj well, you can either have more than .002 fps, or have an "edit" mouse cursor
 
@NickDugger I imagine that a solution is possible with "edit" mouse cursor and 30 fps...
 
seriously...
location.origin is undefined in ie11
what the good shit
fuck me running, that is the stupidest thing i've seen all month
 
bug?
 
!!caniuse location.origin
 
1:16 PM
can I use has been lacking lately.
 
well isn't that a load of shit
 
@rlemon old data?
 
@rlemon what's even more confusing is that MSDN lists it as a property of location msdn.microsoft.com/en-us/library/ie/ms535866(v=vs.85).aspx
So they know that it should be a thing, they just don't care?
 
@JanDvorak, have a few seconds to look at how to do this hittest with groups on this : s419743653.onlinehome.fr/things/test2.htm
 
@NickDugger Microsoft isn't just one team, you know. Just because some people know about it doesn't mean the IE team has gotten around to it yet
 
1:18 PM
@Basj you could also just segment the canvas into a grid, and test via "cell"
 
@NickDugger have a few seconds to show me a little example ?
 
Not really, I'm at work
 
I'm on this since days... and cannot make it work...
 
anyone here from USA with 100Mbps+ connection?
 
1:23 PM
so, I forgot at home a paper for technology that I've done in the summer
so the teacher thought I couldn't draw enveloped curves
so I've shown him this codepen.io/MateiGCopot/pen/CdIhi
he let me do that during tech class whiles the others were fixing some of their drawings
then I just smoothened it a bit at home
 
@tereško that's rare here. You've gotta spend over a hundred dollars (monthly) to get that kind of speed here
 
so he wanted to see more of my tech programming art
he loved it :D
 
what about same requirement, but in US or Germany ?
 
I asked if I could send the next drawings online, in which he could change the parameters and get out whatever he wanted... but nope
 
Imperfect, but still demonstrates it nicely.
 
1:30 PM
@SecondRikudo Thanks ! I already had this with input DOM elements
the problem is that if you have > 1000 DOM elements like this, it is very slow, when you want to pan / zoom
That's why I finally wanted to use input DOM element only during writing, and after this => rendering to canvas... => a lot faster for panning / zooming
 
@Basj Could you please tell us what is it that you want to do?
What is your goal?
 
@SecondRikudo hah yeah i know I mentioned it as well first one got starred though :P
 
@SecondRikudo infinite blackboard, infinite zooming, lots of text everything, lots of different sizes for the texts
 
@Basj If this is for a business of some sort, it was tried and failed, just FYI
 
@SecondRikudo failed to do what ?
 
1:34 PM
@Basj Failed to succeed as a business.
 
@SecondRikudo who ?
 
@jonathansampson (rlemon from so chats) what is the deal with location.origin? http://msdn.microsoft.com/en-us/library/ie/dn760719(v=vs.85).aspx vs http://i.stack.imgur.com/zT0lC.png
interesting. the timestamp on that is the server timestamp and not my locale
 
@Basj Gigantt I think they were called.
 
@SecondRikudo oh yes I have seen before... My idea is slightly different.
 
@Basj Well then use what @JanDvorak said in combination with the canvas
 
1:38 PM
but why do you say they failed ?
 
@Basj Because they don't exist anymore?
 
they do
 
oh you're right...
but anyway, I don't want to make it for business
 
@rlemon You are famous now
 
1:40 PM
you can still use it here as a demo of how it works : gigantt.com/c/examples
click on "Live demo"
 
@CustomizedName because I tweeted someone?
 
lol
Im a super star then :P
 
@rlemon Yes, because you tweeted someone
 
@Loktar how does this looks ... comon praise me ^
 
1:43 PM
@AbhishekHingnikar and you still haven't asked a damn question
 
@AbhishekHingnikar this is a bit plain I expected more of you
 
> HELP ME NOW!
with what?
*ignores me*
 
@AbhishekHingnikar lol just joking, its pretty cool :P
I notice you're resizing with css
 
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
just doubling his efforts
1 message moved to Trash can
don't be stupid
 
@rlemon i did.
can u help me make a proper randomization function for codepen.io/darkyen/pen/qmjJt

Abhishek Hingnikar
Abhishek Hingnikar
i don't want them to appear inside the heart.
 
1:48 PM
y u no ping me with it?
huh?!
huh?!?!?!
 
because it was just below your message
anyways my shitty randomization is workingish
 
posted on September 16, 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) {} Squee again

 
o/ 17
 
hearted the pen. threw up a little in my mouth
 
1:50 PM
lol
 
anybody knows a collage maker
@rlemon :-x
 
why can't you just do what normal boyfriends do. buy her jewelry and flowers or something. but noooo you have to be mr big man and make her some fancy web animations.
 
@AbhishekHingnikar For some reason, I envision @rlemon making one in the next 2 hours.
 
I know where you can buy paper, glue, and scissors, if that's what you're asking.
 
@rlemon did it :P
too :3
 
1:54 PM
@rlemon Remember that proposal video you watched yesterday...
 
@RyanKinal i have my own but ... urgh its so fucked up inside code that there is no chance i will be finishing it in next 5 minutes
 
Dude...
 
my friend's office
 
O.o
 
1:57 PM
he works in a porn company :D
 
@KendallFrey yes
 
Be a bit more careful with images...
 
jsfiddle.net/0m7y7cd6 @RyanKinal @AbhishekHingnikar
2 hours? you wish.
 
@rlemon well .... wow
 
The first draft of that message said "20 minutes"
 
1:59 PM
wishing it would load soon
 
I figured I'd give you some leeway
 
@FlorianMargaine always wondered what it's like working for porn peeps
 
@AbhishekHingnikar lorempizza isn't the fastest :/
 
1:59 PM
thats why i wanted something to generate a single image
 
@AbhishekHingnikar try that
 

« first day (1431 days earlier)      last day (3520 days later) »