« first day (1726 days earlier)      last day (3223 days later) » 

12:01 AM
@Luggage i do get that thanks for the snippet but although it now doesn't go to the link it also now wont let me go to the link even though it shows up as the changed link in the bottom url bar of the browser , in some comical fashion
 
then only prevent it the first time and not the second.
 
@Cereal I am sorry I offend you with my lack of knowledge in this area , i am sure i am better than you at many things as you are than me , i would gladly help you or anyone in any way possible if i was ever needed
 
You're fine
 
I'm not offended
Just strikes me as annoying when someone comes with a question but doesn't understand variable declaration
It's like the second thing you learn after hello world
 
Can you help me move this piano upstairs?
 
12:03 AM
So teach them about variable declaration
 
@Cereal I bet
 
Or don't say anything
 
Yes mom
 
@Luggage forgive my stupidity but where is the second pass ?
 
that same click event is used for EVERY click.
 
12:05 AM
$('.hrefclass').click(function(e) {
    e.preventDefault();
    $(this).attr("href", "http://www.hcpc.org/");
$('.kwicks').kwicks({
maxSize: '100%',
behavior: 'menu'
    });

});
 
It gets called a second time when you click again. So.. you need to determine if you are on the first click, or another.
 
right
 
use one() instead of click() so that it only fires once, on the first click.
though, doing that yourself will teach you more.
 
ok i got you , just reading that doc hang on a sec
 
19 mins ago, by havingagoatit
$('.hrefclassname').one("click", function() {

$('.kwicks').kwicks({
maxSize: '100%',
behavior: 'menu'
    });
       e.preventDefault();
    $(this).attr("href", "http://www.hcpc.org/");
});
 
12:08 AM
Aha!
 
TIL about one
 
it is basically just calling .off on the same handler in the handler itself.
 
foo.addEventListener('click', function clickHandler(){
  alert('boo');
  foo.removeEventListener('click', clickHandler);
});
 
so basically as rlemon rightly just pointed out I actually was using .one briefly earlier
but essentially as with most of my few javascript escapades it usually comes down to a missing , . or letter
the api is interesting
... the more i learn about javascript the more i realise how bloody powerful it is
 
12:12 AM
so.. this may sound like a fine distinction at this point in your JS career, but jQuery is not JS.
 
jQuery abstracts the DOM api
and a few other things
 
jQuery is an artifact from an era when every browser was different and you needed a library to give you ONE way to write code everywhere. Those days are almost gone and you can access the html DOM directly with no more work that using a tool like jquery.
 
jQuery abstracts how terrible IE is, which is nice
 
It's a bit confusing becuase you are learning the HTML DOM and jQuery at once, it's it's double the work.
 
i appreciate that , is it the case then that query is attractive moreso to front end designers as it is easier to read "" despite it not being the real deal which is javascript
 
12:16 AM
I'd argue about that benefit, but I can leave it alone.
 
I think vanilla's easier to read.
More expressive in any case
 
when you have a problem with jQuery and you don't know the basics of JS DOM api then you have real problems. it will only benefit you to learn real DOM first.. then use jQuery if you need/want too.
 
so in summary , i need to learn dom
 
yes
it will make development easier for you in the end.
 
12:18 AM
that's where the overall event behavior and things like preventDefault() are really defined.
 
this is really helpful
 
whats so great about polymer if I has so many files for ever little thing...
 
so you guys dont bother with any jquery when you write at all as there is no point from your level of understnding and experience
 
all jquery gives you are things like .click(...), a shortcut to addEventListener('click', ...)
but HOW clicks get processed. Not jQuery.
 
I use jquery when I want what I'm writing to run on everything
 
12:20 AM
and although javascript uses more letters (stupid thing to say) i bet there are javascript editors that contain pretty much all the standard lines of code that you drag and drop when you know what you are doing
 
:/
 
You lost me.
 
._.
 
<smokes more>
 
12:22 AM
well the example of addEventListener i get what your saying from what javascript i have seen 9not much) it seems that it is actually longer and more specific , (hence why it is probably better ) there must be programs that you use when you write code that have pretty much all syntax arguments there to drag and drop to make writing code faster
the horse pic reminds me of hotline miami
 
mouse is not faster
 
wow
so thats your level
 
no that is just how it is
you can make code snippets
 
from queue import Queue

def coroutine(func):
    def start(*args,**kwargs):
        cr = func(*args,**kwargs)
        cr.send(None)
        return cr
    return start

@coroutine
def printer(prefix=""):
    while True:
         line = (yield)
         print(prefix, line)

@coroutine
def spreader(targets):
    while True:
        type, value = (yield)
        if type in targets:
            targets[type].send(value)

money_sink = printer("got money")
drugs_sink = printer("got drugs")

destination = spreader({
 
I dont' even own a mouse.
 
12:23 AM
Neat (cc @Zirak)
 
j/k :)
 
you guys are fuckin cool
4
 
Starting our redis work now, ETA ~1hr given firmware patch time. Even power supplies need firmware love these days.
 
anyways i better clear out of this place , i am not worthy
thanks for the guidence this eve and have a good one all
 
I think what you're looking for is DreamWeaver
;)
 
12:24 AM
anyway, use jquery. I use it. Just beware that wheny ou go looking for how to do something don't automatically put 'jquery' in the search.
 
even i know to fuck right off to dreamweaver ;p
 
He got 'the lecture'.
 
1:06 AM
Even I used to be dreamweaver all the time person and nothing else and now I just use sublime
 
dreamweaver?
used it once... Never will again.
 
1:23 AM
Redis master swaps happening now.
 
1:33 AM
Who thinks an undo command that undoes what ever you just did instead of just undoing the last thing you did in one file is a good idea?
 
I do
Obviously
The 80s called, they want their text editor back
 
1:56 AM
wow
i didn't knew the element will stop scroll
if i touch anywhere in the browser :-/
now i wonder how to stop this madness
 
2:08 AM
Stop native mechanics that the user is used to?
 
I don't get why every designer has a different opinion on how a device should scroll.
 
Why not just use the native scrolling
instead of the fancy smooth scrolling that's actually jerky
 
Some websites feel like they start mining bitcoins and contribute to SETI@home within the scroll event
 
If people start getting used to it, that'll become the norm
 
norm macdonald
 
2:29 AM
@copy Says the guy who uses emacs!
 
It is native scroll people
but it doesnt happen in apps :-/
@copy i am touch outside the element (actually way outside)
i dont see a reason why it should stop scolling
but it works same in any touch browsers i have tested (even my pc chrome) o_O except for apps.
 
@SomeKittens I've never used emacs
But it's really old, huh
 
@copy wait, what do you use?
 
vim
 
my earlier point stands.
 
2:34 AM
vim is from the 90s (and vi indeed couldn't undo more than one action)
 
Deleting facebook account isn't easy at all.
 
why do you want to "delete" it?
 
Because I don't want it anymore?
 
just deactivate it?
 
I don't want to use that again.
They won't let me..
 
2:58 AM
Cave Johnson, we're done here.
 
3:08 AM
Programming is hard...
 
why would this work:
onclick='return false;'
but not this in the javascript:
return false;
 
don't
 
@NickDugger what?
 
just don't
 
@NickDugger don't what?
 
3:20 AM
just
 
@NickDugger are you a bot?
 
HAMMERTIME!
 
@NickDugger you make no sense
<drinking at the bar while coding
 
3:57 AM
present new devs don't know much about the javascript, html and css. they are directly jumping in frameworks and they are awesome on it.
 
hey
how to add something like this in front
$(".a-pg").attr('href', function(_, href){
    return href+'?word=s'
});
currently it was adding in the end of the link
 
You want to add '?word=s' in beginning of the href?
 
@winresh24 there's a REALLY simple answer
It should become apparent when you read through that code again.
 
yep
 
guys help me please. is this correct: "I really appreciate your hard work for making this wonderful tutorials " ?
 
4:11 AM
@user3783598 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.
 
example.com/sample = current link
 
sorry but this is the only place i know
 
I want to change the example.com to domain.com
but the /sample still there
 
What's this for?
and what domain(s) are the original, and what's the target to change to?
 
got it to work but how to select just specific <a>
with this code
$('a[href*="http://example.com/"]').each(function() {
okay thanks
got it
 
5:07 AM
is there a simple way to console log events tied to an given element ?
 
!!tell Dave mdn MutationObserver
 
thank you
 
5:26 AM
morning
just two months and I gain pseudo-freedom.
 
5:46 AM
Guys, is there a way to disable the asynchronous nature of NodeJS? I'm using github.com/sgentle/phantomjs-node and it doesn't seem like the Q promise can work with it ?
 
why shouldn't it?
 
use bluebird's coroutines
Q is dead, to put it mildly.
 
oh
 
Good morning !
 
@Shan 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.
 
6:06 AM
Good Morning
 
user3119231
morning
 
If I just want a simple accumulator in the IO monad in Haskell, should I use MVar [a]?
Oh. Right. IORef [a]
 
> It's one thing to have dissatisfied customers. It's another to have dissatisfied customers with death squads
 
6:25 AM
nuked from orbit
hmm.. why is there a tag in the first place?
 
@JanDvorak aww, he asked such a brilliant question :S
 
How Js sees : 'a'|2 ?
the result is 2
 
casts 'a' to integer
 
I thought 'a' is 97 dec
 
@RoyiNamir any decent linter will tell you the types don't match
 
6:27 AM
@RoyiNamir it is casted to NaN, and NaN|2 is 2.
 
@RoyiNamir that's not how javascript parses strings to numbers
 
charCodeAt I know
 
Block mee..e...e.e.e. YEAH — ABCD 1 min ago
NOw comes the moderators — ABCD 1 min ago
 
but there's is a trick that I saw here :stackoverflow.com/a/16175931/859154
 
lol this guy is so cool :s
 
6:28 AM
Convert letter to lowercase:

OR by space => (x | ' ')
so how does x | ' ' works ?
 
I don't think that will every work
!!> 'A' | ' '
 
@RoyiNamir cv-pls.
 
@AwalGarg 0
 
see?
 
oh f* it's now Js i think
 
6:29 AM
Doesn't matter .. the rating does not go below 1 :P :P no use of downvoting — ABCD 22 secs ago
Someone's in for a surprise next time they try to ask a question
 
What is cv-pls?
 
close-vote please
 
Where ?
 
the question you linked
 
user3119231
6:33 AM
so today, oh surprise I'll work on map
 
ES'6 Map?
 
a cartographical map?
 
user3119231
 
user3119231
this one.
 
What's that ?
 
user3119231
6:36 AM
It will be used for gps system. But at now I need to get the blips to stay at their right position.
 
And what is terrain element ? why did you creat your own element
 
user3119231
because script is clear then for others. Terrain means the worldmap in background. My problem is, that I don't get the calculation for blips...
 
How are Symbols internally represented in V8?
 
hye guys!!
is there anyone know about reactJS
 
user3119231
6:51 AM
helloooo!
 
@Tarun no one
 
@AwalGarg :(
 
:( to you too.
 
@Maurize Hello
 
user3119231
@Tarun googled it. seems like you can easily script functions for yourself. no need for use of this.
 
6:53 AM
^ is false
 
@Maurize do you wanna say rewrite everything yourself instead React?
 
user3119231
^ is true (and awal, too)
 
^ and also applies to knee-jerk reations about frameworks, did you give it 5 minutes after googling React? :p
 
user3119231
^ no, 4.995 minutes.
 
6:58 AM
Then your privileges to post links to that article are revoked.
 
i guess you guys have lot of knowledge about javaScript, and worked on lot of big javascript application. But in my experience most of javaScript developer i saw. waste 90% of their time to understand code write by himself/herself:)
because they also believe same thing
 
user3119231
no, most of the time im drinking coffee and chatting here.
 
anyways thanks :)
 
user3119231
(Y)
 
BTW I read that article often. I like it. It motivates me for some reason.
 
7:00 AM
Time spent understanding code isn't wasted
 
@ivarni You've clearly never read my code
 
@monners You never gave him the chance. ;)
 
@monners Thing is, understanding code is a skill, and the more you do it the better you get at it and the less time you have to spend on it
 
@ivarni I was kidding.
 
user3119231
Anyone can tell me how to get the offset of an image element to the e.clientX and e.clientY from mousemove?
 
7:02 AM
I guessed :) Now I want to read your codez though
 
@Maurize Google it.
There are lots of examples out there
 
user3119231
@monners I'm a search-engine and I find this offensive.
 
wut
ಠ_ಠ
 
ಠ_ಠ indeed
 
ಠ_______ಠ
 
I saw a dream last night in which my github suddenly started overflowing of stars and issues. Those email notifications were so much disgusting.
 
user3119231
Please feed me with link for solution of my problem.
 
7:22 AM
Sorry, we don't feed vampires
 
user3119231
Sorry, I'm werewolve.
 
i have slaughtered many werewolves in skyrim
 
Werewolves are not welcome here.
 
@Maurize werewolf
 
user3119231
I slaughtered dragons, killed everything in my way. Infected by vampire and killed by trader
 
7:38 AM
@Maurize where's the blip!
 
user3119231
@Neoares bm-designs.de/test check out yourself!
 
hahahahaha
 
user3119231
@Neoares if I this finish one day I will can rest in peace.
 
yes
rip in pieces
If i had time
 
user3119231
@Neoares rip with headache :D
 
7:39 AM
at least 1 hour to focus on it
but from monday to friday it's work + gym or work + gf
 
user3119231
@Neoares gf wastes sooo much time :D
 
@BenFortune you use ownCloud right?
 
yes, but it's worth
#ifyouknowwhatimean
 
user3119231
#ireallyfuckingnowwhatyoumean
 
my brain needs to relax so I can do better my job
 
7:42 AM
hi every one
 
@abhi 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.
 
abhishrek?
@abhi
 
any one have used require js .. i have a doute on it
 
@AwalGarg si
 
not yet
 
7:43 AM
@Neoares hi
okey :)
 
!!urban si
 
@AwalGarg SI Abbr. for 'stupid idiot'
 
@BenFortune :(
 
si it's yes in spanish ¬¬
 
just visited a website which has displayed the standard "run time error"
 
7:46 AM
-you use ownCloud? -si
so fucking yes xD
 
ahh
 
user3119231
@Neoares “I have a dream that one day this nation will rise up, and will solve the map problem and place the blips in their right position’
 
@BenFortune do you think it will work ok on a $5 DigitalOcean VM?
 
didn't knew that "si" could be used for "stupid idiot" ... i read that as a spanish "yes"
 
@Maurize Your prayers have been answered.
 
7:47 AM
This is a list of some of the more commonly known problems that are NP-complete when expressed as decision problems. As there are hundreds of such problems known, this list is in no way comprehensive. Many problems of this type can be found in Garey & Johnson (1979). == Graphs and hypergraphs == Graphs occur frequently in everyday applications. Examples include biological or social networks, which contain hundreds, thousands and even billions of nodes in some cases (see e.g. Facebook or LinkedIn). 1-planarity 3-dimensional matching Bipartite dimension Capacitated minimum spanning tree Rou...
@Maurize ^
your blip could be in that list
 
@AwalGarg Probably, it's just PHP
 
user3119231
@Neoares I've heard Obama is sending 2k seals because problem gets to heavy for 1 men.
 
user3119231
@BenFortune no way. I know what you're thinking.
 
Think I'm gonna move my dedi so I can have more IPs
@Maurize Stop reinventing the wheel noob.
 
user3119231
Excuse me, Sir, you might make use of a gentleman slap?
 
7:50 AM
@BenFortune he said $5, not $50
 

« first day (1726 days earlier)      last day (3223 days later) »