« first day (1264 days earlier)      last day (3909 days later) » 

user2509223
07:09
mornin
user2509223
where are my unicoins? i want them back :D
user2509223
ciao @KarelG
user2509223
are you still here or already?
just came online
is there a chart to know if some js functions got supported at browsers ?
user2509223
07:18
i use this one
user2509223
user2509223
i woke up singin vegetarian chicken meat
wtf
leaflet has a custom event object. But at chrome, it's totally different to firefox...
// firefox, won't work in chrome
var tag = map.originalEvent.originalTarget.tagName;
// chrome, won't work in FF
var tag = map.target.tagName;
@KarelG you should drop that and use jQuery
user2509223
thats not so unexpected, but actually firefox has the standard custom events
07:32
the event function gets an object, coming from leaflet. It has map data (lat/long and rest) and the event object itself.
But the structure is not same :|
why jQuery if i can handle it with a small check :p
@Gytis 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.
user2509223
@KarelG jQuery is a waste of resources
@RooticalV. 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.
i've an Arena object which handles everything between two player objects, how can i pass the Arena object to Player object so the user can inform the arena for an action?
e help me to convert this code to c# or java?
directionsService.route(
directionsRequest,
function (response, status) {
if (status == google.maps.DirectionsStatus.OK) {
for (var i = 0, len = response.routes.length; i < len; i++) {
new google.maps.DirectionsRenderer({
map: mapObject,
directions: response,
routeIndex: i
});
}
} else {
$("#error").append("Unable to retrieve your route<br />");
}
}
);
07:46
@user3457262 define "help"
user2509223
@KarelG its just ment to help interacting with the DOM easier but as it grown it became too greedy and now its just a huge mess, that not even easier, nor faster to write code with. The only valid use case is UI but if you use jQuery just so you can make pretty design then god may forgive you.
.joinArena method at player object , or somehow bind/inject to players object ..
String code = "directionsService.route(\ndirectionsRequest,\nfunction (response, status) {\nif (status == google.maps.DirectionsStatus.OK) {\nfor (var i = 0, len = response.routes.length; i < len; i++) {\nnew google.maps.DirectionsRenderer({\nmap: mapObject,\ndirections: response,\nrouteIndex: i\n});\n}\n} else {\n$(\"#error\").append(\"Unable to retrieve your route<br />\");\n}\n}\n);";
@user3457262 There, that's Java
user2509223
@user3457262 it looks valid in both
user2509223
@Neil yeah tought the same :D
07:49
@derylius Great minds... :)
user2509223
@Neil existentialcomics.com/comic/19 yeah great minds
@derylius Hah, that's brilliant
@Mohoch 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.
i know that
i also use jQuery for animation or UI that it supports on many stuffs. But for pure program tasks, i just use js
jQuery is like a MILF, hot appearance (UI), but quite slow towards the pure js.
08:06
I don't really understand why jQuery must check if the browser supports an action for every given action
I know that makes it "stateless" so to speak, but they could optimize a bit
Or maybe they already do, I don't know.. maybe the performance loss is primarily due to calling a function which calls yet another function rather than the final function itself
user2509223
@KarelG the problem is that theres no common alternative, and CSS3-4 are really slowly developed
user2509223
@Neil exactly, you tell bobby to tell to the browser what you want to do
[stackoverflow.com/questions/tagged/node.js](so many noob node.js questions, free rep)
@derylius Then there would be no way to do it better
Save for calling pure js yourself
user2509223
@Phoenix try format your link better
08:11
isn't it [url](description) ?
it's like in comments, [text](url)
user2509223
@Neil but instead of giving you an interface to write shorter code, they should just provide modules with common tasks that are written in pure js and can work independently
f you have 3k+ rep, could u vote to reopen this (if you think it a worthwhile question): stackoverflow.com/questions/22787257/… thx muchly
user2509223
@KarelG but @Phoenix used [url](text)
eh, i remember that i once found a performance fix for the .next() function in jQuery. Submitted data, time logs, statistics on FF / Chrome / IE
08:15
@derylius Can they not put these functions such that you can call them directly rather than call a function that calls a function?
they didn't have implemented it, neither replied to the mail
I suppose that would only work if the implementation were unchanged between browsers
@TechnoSavvy 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.
user2509223
@dewd seems valid
@KentJohnson 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.
user2509223
08:17
can i hide the welcome messages?
@derylius thx. don't think you can vote to reopen though as you only have 480. thx for the upvote anyway! :)
user2509223
@dewd cheers
nah, jQuery bobo's doesn't like that other peeps is playing with the inner structure of their toy.
i have done what i should do, the ball is in their camp
user2509223
@KarelG that ball got burried under shame and envy already....
@derylius no, they are useful.
user2509223
08:23
@mikedidthis what for?
@derylius welcoming new users to the room and explain what to do. We fought hard to get them back.
user2509223
yeah, i wanted to mean that i just dont want to see them
You can ignore the bot > ignore this user
but you will miss other messages ;o
user2509223
but I like the bot, i want to hide welcome messages only
08:26
Then sadly not.
Write yourself a userscript for it
Or that!
user2509223
@SomeGuy i don't want to
ask @rlemon a functionality to allow to show/hide messages to particular user
Please don't. He may make you a userscript to hide the welcome message.
08:29
I've had that on my todo list for a while
@AbdouTahiri 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.
how can i add the google map api to a c# project?
user2509223
@user3457262 its faster if you send me the specification so i can send you a bid
@user3457262 : gmaps on C#
Thanks caprica
user2509223
08:42
@KarelG LMGTFY is evil :D
@cyberoot 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 I am new on JS
hello, and welcome to the js chatroom. Please notice that we don't talk always about js, but we do sometimes =)
Yes bro i understand :D
I have a map working with displaying one route on it. in addition i want alternate route to get displayed. for that i found this code in stackover flaw it is the exact thing i need but in c# language what my code shows current route is only this stil.
void MyQuery_QueryCompleted(object sender, QueryCompletedEventArgs<Route> e)
    {
        if (e.Error == null)
        {
            Route MyRoute = e.Result;
            MapRoute MyMapRoute = new MapRoute(MyRoute);
            MyMap.AddRoute(MyMapRoute);
            MyQuery.Dispose();
        }
    }
08:45
@BenjaminTodts 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.
!!doge new js dev,not talk about js
         wow
                           such new js dev
so not talk about js
this is for displaying alternative route i cannot understand how they connects
directionsService.route(
directionsRequest,
function (response, status) {
if (status == google.maps.DirectionsStatus.OK) {
for (var i = 0, len = response.routes.length; i < len; i++) {
new google.maps.DirectionsRenderer({
map: mapObject,
directions: response,
routeIndex: i
});
}
} else {
$("#error").append("Unable to retrieve your route<br />");
}
}
);
@derylius so adding api etc
08:46
please use ctrl+a then ctrl+k to show your code in code format
var Hello
it work
  wow
                        such new js dev
so not talk about js
directionsService.route(directionsRequest, function (response, status) {
	// checks if the status is valid
	if (status == google.maps.DirectionsStatus.OK) {
		// loop through the responses (it's an array)
		for (var i = 0, len = response.routes.length; i < len; i++) {
			// create new direction object
			new google.maps.DirectionsRenderer({
				map: mapObject, // on which map
				directions: response, // which data
				routeIndex: i // index (for layer / selection / filtering)
			});
		}
	} else {
it's a result from async AJAX, being used in the above function, then added to the map
user2509223
can someone move his messages to a more apropriate room?
user2509223
ok hes trying even on C# but they sent him well far because of the DOM in the code :D
user2509223
08:57
!!choose hide @user3457262 or no
@derylius no
user2509223
ok
it seems that he's working on a C# project, but he found a js code for his problem. Probably he wants to turn it in C# or understand it
hahaa
jQuery is not uber
@rlemon @Mosho @Abhishek where is my official relation to pr0n ? I understand Abhisheks, but there is no evidence about me!!
@jAndy rlemon is afk: i'm too drunk to taste this chicken
09:02
$('#map_container').css('cursor', 'grab'); <-- doesn't work in chrome / ie
some1 asked me to fix that above. Had to pinpoint it
@KarelG try -webkit-grab
Quick question everyone; What is this kind of array(?) called? I know it's not an ordinary array..

var data = {id: 5,string: "hello"};
like $('#map_container').css('cursor', 'grab, -webkit-grab');
@MagnusBurton : it's an object like declaration
@MagnusBurton its not an Array at all, its just a JavaScript object(literal)
09:04
Thank you guys!
@jAndy : w3schools.com/cssref/… <-- try in chrome. CSS says it works
oh please.. don't believe Jack what this site tells you
@KarelG If I'd like to add an value to the object (for example date: 55) would I do data.date = 55; or data['date'] = 55;
it's just a test ...
and it (-webkit-grab) didn't solved the 'bug' :|
just use vendor prefixes for grab, grabbing etc. Chrome is still in flux
it has no "grab" property implemented yet
09:07
@MagnusBurton : both works
Thank you, I'm out. peace!
unless the .data is a predefined prototype !!
Yes :D
lol'd
the bug is from jQuery when changing the cursor
user2509223
i need a coffee now
09:12
'Uncaught TypeError: Cannot call method 'replace' of undefined jquery.js:620

while the call is from a jQuery object ( $('#foo') )
user2509223
is that Marlon Brando ?
@jAndy
> location Germany
oh oh
they found me..
you are a pervert by association
everyone knows german porn is the most perverted
god knows I've watched enough
09:15
heh
i found japanese ones more pervertish
user2509223
@KarelG its Winston Wolfe
@KarelG weird != perverted
some1 submitted me a japanese porn once, with necrophilia.
sick != perverted
i was like, ' no no nooooo '
ok
@derylius : not much diff to Brando though
09:16
@Mosho Where do you make that distinction, though?
Isn't it just a matter of taste?
today, i learned a new keyword for porn : hulk tetas
<_<
Like, I could claim to have a fetish for chubby black women. Doesn't mean an old-timey texan wouldn't see it as "sick"
@Mosho Sick is "That's fucked up..." Perverted is "You're into some weird shit."
uh-oh, is this the start of a lengthy porn discussion
if so, carry on
@Kippie Also, excellent point
They're both subjective
09:19
@Kippie yeah, I agree, chubby black women are equivalent to dead bodies
@Mosho He never said they were equivalent
user2509223
@Mosho They're not equivalent, but the line of distinction between sick and perverted is completely subjective
talking about porn
@derylius : bookmarked cus i'm at work
09:20
user2509223
@KarelG good idea :D
user2509223
just hide your bookmarks
still surprised to see it on YT
I hate how the oneboxing of youtube videos doesn't show the title
!!youtube rammstein pussy
09:21
i have a small script to store temp bookmarks 24 or 48h :p
quite handy ^_^
hmm, that's pretty nsfw
user2509223
@KarelG can imagine
@Mosho This whole chat is nsfw
you'd be a total dingus if you were on it at work
09:24
I usually am
hello
user2509223
im only here from work :D
nfsw on work can lead to work enthousiasm
I am too, though they're pretty lenient as to what we can do
@Kippie and btw, some things are subjective but considered in a way by enough people to make it pseudo-objective
like, necrophilia
09:25
this drives me crazy, what do I have to do in order to display html tag inside of <p> on a website instead of making website execute it?
user2509223
@Kippie here too, but porn is not one of them
@AndyAndy Escape the < > characters?
Use some kind of htmlencode method
user2509223
@AndyAndy &gt; &lt;
@derylius this is too awesome
thanks a lot
such simple :)
09:28
googling for html inside html is just insane
google is a robot, it doesn't have intuition
user2509223
@AndyAndy wanna play (meta-)* regex?
but apparently a lot developers forget to not use '&' in HTML.
it should be &amp; for '&'
@Willow 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.
user2509223
@KarelG oh yeah, and then they try to put it in a url :D
09:30
@ManikandanK 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.
Hey, Webstorm users. Is your Jetbrains Chrome extension running? Mine's stopped today.
that too ... I have seen it too. It's just reverse world
user2509223
@KarelG %26amp%3B
!!doge webstorm users,fail extension today, switch to standard editor
   wow
                  much webstorm users
                             many fail extension today
very  switch to standard editor
user2509223
09:32
that little thing above tell everything you should remember about encoding/escaping in html
uriencode :)
user2509223
that one :D
@Eidam 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.
chrome .... for grab cursor, i have to use an url ...
.
user2509223
!!/learn coffee i.sstatic.net/syYjh.png
09:35
@derylius Command coffee already exists
@derylius "undefined"
@KarelG "undefined"
@derylius Go play in the Sandbox
@KarelG whats wrong with -webkit-grab and -webkit-grabbing ?
well, it didn't worked
but forgot that it's fault of jQuery
thx for reminder. Gotcha try it on my pure js
@jAndy : yup, it works now. Now ie ...
@KarelG That reminds me of my officemate who has piratebay and similar sites in his bookmark toolbar (because it's synced with his home PC) :D
user2509223
@ThiefMaster and whats wrong with that?
09:41
sync'ing browser setting is not wise
if i recall it right, the built in history file is synced too at FF
so if you visit porn at home, it will appear in the file on your office computer
( no private browsing doesn't prevent that )
@jAndy : but it's for js :(
( doesn't work in ie though )
ohh.. thats of course an unsolvable problem then
IE11 should do it
dunno about 10
current version : 10
what about vista users with IE7-8 ? >.>
fallb ack gracefully ?
tho.. I wouldn't be graceful with IE7 users
in fact I would be cruel
09:45
it's still a luck that microsoft is stopping XP support. Then a lot IE6 users will move to win8 with recent ie
ie6 is still taking a decent market share >_>
lazy updaters
"a lot"
"users"
@KarelG better yet, win7 + Chrome
if windows xp don't spontaneously explode the computer that executes them, i don't windows xp going away..
!!s/Then a lot IE6 users/Then a few IE6 dorks/
09:47
@jAndy No matching message (are you sure we're in the right room?)
@Phoenix given the waning antivirus support, this might as well happen.
these people with XP are either on work without an attention to invest in their browser updates or old particulars which doesn't use computers often
'old particulars', well ... idk but i guess so
user2509223
@KarelG or italians....
I remember when I started with JS 3 months ago
@Aameer 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.
09:49
I asked a good friend of mine, who has been into it for years, if I should add support for IE6 etc.
he matter-of-factly said, "if you use IE6 you should be shot."
since then, it stuck :D
i understand his reply. i also don't understand why people doesn't update their browser. Or even changing it.
so you didn't add IE6 support hides his shotgun
IE is just garbage.
user2509223
how can i make the bot display the image for my command instead of the link?
I currently support only chrome, that I know of
would probably run on FF too but too scared to check
user2509223
09:51
@KarelG since IE11 i see some progress but yeah
@KarelG because my mother can barely use a computer, never mind update it.
that's an example of 'old particulars whom doesn't use their pc often'. But there is an auto-update tool. just use it
!!go to work or back to sleep
@Mosho go to work
hmm
!!go to work or back to SLEEP
09:52
Hello all! Just finished reading the rules. :)

I have... a huge amount of questions. .o. I am sorry in advance, because all I know really are the basics of JavaScript and jQuery.

So um... if no one's too busy, can anyone suggest an efficient/concise way to increment a variable every time a draggable is dropped into a droppable?

Because right now, I have something like this:

http://jsfiddle.net/BgG5K/1/
*not a working fiddle; just the JS code, because I can't figure out what's wrong with it*
@Mosho back to SLEEP
@KarelG but as some one who understand tech, you know what 'auto-update' is, they don't.
!!go back to work or go back to work
good choice
@jAndy That's not really a choice, now is it?
09:52
the bot is so smaht
Good Morning, scripties.
@KarelG its a shitty situation though.
!!doge choices
         wow
much choices
user2509223
ATM my support schema is latest FF latest CHROME and latest 2 IE
09:53
STAHP
HAMMAHTIME!
halt
HAMMERZEIT!
@mikedidthis : well, it's now set as default at recent browser shipments.
lol what?
09:53
But you still have encourage those people to update to the recent versions ;)
Well, it's IE and Chrome's problem if they don't update.
@KarelG totally, I couldn't agree more.
user2509223
@KarelG those people are granted with 10 auto-update window on every startup
Exactly. ^
!!s/grant/bestow/
09:55
@Mosho No matching message (are you sure we're in the right room?)
Can the unicoin questions just STOP???
@KarelG i actually like it that way. but then again, i don't use that browser for porn.
HAMMERTIME!
wtf no matching message
!!s/./STAHP/
09:56
caprica disappoints
user2509223
wehehehe
@jAndy STAHP might be going to some party tomorrow too. (source)
what's better, no updates at all , or all updates ?
lol wth
user2509223
@KarelG all updates, definitely
09:56
i have to admit, that the auto-update is off at me :)
but i check it myself because i can do that
!!refresh
user2509223
@KarelG yeah at me too, but not at the oldies
@Mosho You do not have permission to use the command refresh
wat
I'd like to change the world.
But they won't give me the source code. ;(
09:58
That's actually funny. :)))
!!> ['strike', 'us', 'please'].map(t => ['', t, ''].join(''));
@jAndy ["--strike--","--us--","--please--"]
@Willow : did you have checked the move and drag thing ?
@jAndy ["---strike---","---us---","---please---"]
09:59
fail
hah
its precompiled !
@Willow : like this ?
---wat---
code formatting overrides it
which makes sense
*yes it does!*
wat
10:02
@KarelG: something like this, yes, but i also need a way to check if the draggable is in the right droppable. :)
just get the script and expand it ?
it's o.s
What tool did scott use for editing back the source code ? youtube.com/…
@KarelG: Ok! I'll save it to my desktop for now, thank you! :)
does anyone use jasmine 2 with requirejs
!!tell RoyiNamir answer
@Mosho Command answer does not exist. (note that /tell works on commands, it's not an echo.)
10:06
wat
I thought I made that
oh my sweet sweet jesus
stop flagging FFS
FFS ?
!!urban FFS
@mikedidthis FFS Acronym for, for fuck's sake.
sniffing around jasmine's parts I found this
  window.setTimeout = window.setTimeout;
  window.setInterval = window.setInterval;
  window.clearTimeout = window.clearTimeout;
  window.clearInterval = window.clearInterval;
my reaction: wat
10:16
resonable legit !
window.setTimeout = window.window['setTimeout'];
window.setInterval = window.window['setInterval'];
window.clearTimeout = window.window['clearTimeout'];
window.clearInterval = window.window['clearInterval'];
@Kiranramchandran 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.
is jasmine not an object wrapper ?
@SagarPanchal 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.
One of the more amusing things that I've found that a person had not sanitised backslashes and quotes server-side in a JS game (server was for multi-player). Someone ended up exploiting this and putting random alert messages through JSON (they were also stupid enough to use eval for parsing JSON). Needless to say, he was pissed off when he found out what was going on...
An interesting article: wptv.com/news/state/…
> The day is notorious for pulling pranks.
@Zirak What's the best thing about dead baby jokes?
They never get old
@KarelG ya you are right I am doing a c# project . I have done the same thing on this question in c# so this answer is the same answer i was looking for couldn't find it anywhr else and that's the one i have to add for my c# project
1
Q: How to display alternative route using google map api

Dh...I am using google map and i am bit of stuck at one point. i want to display alternative route for my source and destination point. currently i am using the code which is working perfectly and displaying correct result but the only the problem is that this code displaying only single route for my ...

:(
i really don't know in what language that is written
@user3457262 : in js (JavaScript) ...
it's a client-side scripting language for browsers
still different then C#, which is a high lvl language
next time, add 'C#' at your google search to have more chance to get C# results
it is not anywhr in c#
thanks for help
gmaps api is js oriented btw
there is a library for C# but poorly documented
that's because there is not really a purpose to have an online service on a program.
/ afk lunch
@ShinySides 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.
10:38
!!/afk world domination
uhm whats the afk syntax
!!/help
@jAndy Information on interacting with me can be found at this page
!!afk BLAH
Y U NO WORK
@AndrewPope 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.
user2509223
anyone with wp-experience?
@AndyMonis 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.
10:57
@derylius : i have whip experience yes
user2509223
@KarelG tought so but wasnt the Q
user2509223
anyway the problem found and it lies in windows
at least i want to add that it's a strange experience imo
user2509223
windows does not expose language system variables

« first day (1264 days earlier)      last day (3909 days later) »