« first day (114 days earlier)      last day (4837 days later) » 

12:34 AM
night all
 
night
 
nn
 
12:48 AM
anyone know any obj-c?
 
12:59 AM
You're probably in the wrong chat for objective c
 
I am I just really need help, and there is never anyone in the iPhoen chat
*iphone
 
1:29 AM
because they are talking on their iphones probably
gotta justify that crazy payment
 
2:24 AM
hello everybody
hello everybody
 
hi
 
hi @david
 
 
4 hours later…
6:41 AM
Hi, anbody knows about the simple JavaScript code snippet to check if the Adobe Flash Player 10.1 is installed on Android? See here also:
1
Q: How to check if the Flash players is installed on Android

STeNHi, how can I easily check in Javascript in the Android web browser if the Adobe Flash Player 10.1 (https://market.android.com/details?id=com.adobe.flashplayer) was downloaded from Android Market and installed? Thanks a lot BR SteN

 
@STeN Please, surely you've been around long enough to know that you respond using comments and edits to your question instead of writing out a new answer
Anyway, if you want to use JavaScript to check for the existence of the Flash plugin, the method used shouldn't be any different from checking it on any other browser
There should be at least one question on SO asking about that; but I believe the general solution is to check navigator.plugins
 
@Yi Jiang Sure - sorry for the answering by answer, not comment... but could not be the comment window 'bigger' and allow formatting?
 
@STeN You can always edit your question
Please don't make me yell 'Stack Overflow is not a forum' at you :P
 
@Yi Jiang - OK I will keep it in mind for future...
 
And basic formatting is allowed for comments
 
6:51 AM
@Yi Jiang Regarding the Flash Player detection - I was looking for something proven and small only for Android, not something like robust Adobe Detection Kit (adobe.com/products/flashplayer/download/detection_kit)...
 
@STeN Can you check if navigator.plugins is available on the Android browser
 
@Yi Jiang Thanks I will do...
 
7:33 AM
@STeN Anyway, you should, nay, you must include details like that in your questions if you want people answering the correctly - if you don't say what you can't use, people will always suggest the most popular / 'correct' solution here
 
7:58 AM
anyone here?
 
@experimentX Nope. (Hehe)
 
hello @Yi Jiang
i was wondering if icould ask you a question
 
Hey guys
@experimentX shoot a question
 
Can we in anyway process a GET value using javascript
for eg index.html?name=name
can name be accessed on the index page via javascript with out PHP or any server script?
 
@experimentX Sure, just use location.search and parse the string
 
8:08 AM
Maybe. you can rely on window.location
But it makes more sense to get the server to handle this instead. It seems poor design to get the client to pick it up. Thats not how the page to page communication should work
 
okay i just tried to answer a question, but i am wrong plz don't vote down
0
A: How do i pass dynamic arguments to html included via iframe

experimentXWell, you cannot do this using javascript alone, you need a server side script like PHP which will handle the GETrequest in you index1.php file <html> <head></head> <body> <span>Hello <?php echo $_GET['name']; ?></span> </ > <...

 
@experimentX If you're wrong, then the sensible thing to do would be to delete it
Or at least edit it till it's correct
 
am i right or wrong?
 
You can edit your answer with new information to improve it
Your wrong in saying you cant use javascript
your right in saying that using php you can do in this way
 
Definitely wrong, location.search exists for a reason
 
8:11 AM
@YiJiang yes i know but i am not sure
@YiJiang so we cannot do this using javascript
 
We can do this with JavaScript, the GET request will appear in the URL string and can be parsed fairly easily
 
while even on webserver?
 
@experimentX Eh?
 
I second Eh?
 
hahaha lol
i had a concept that javascript would not be executed in server
 
8:15 AM
@experimentX Points to node.js, Get out of here before Ivo comes back ;)
 
okay thanks!!
 
@experimentX but you can write JS in your html file and it will be run once it hits the clcient
@YiJiang that gave me a great idea of trolling Ivo saying you cant run javascript on the server. Thats ridiculious!
 
thanks will keep in mind and by the way what is node.js
 
@experimentX Search for it
 
yeah i opened it but i am clueless
 
8:22 AM
@experimentX Read the [node.js] tag wiki then
 
@YiJiang thanks for info i deleted my post and ..... i am hearing node.js for the first time look like js for server .. but i am leaving
bye have a good day!
back
looks cool
 
 
2 hours later…
10:36 AM
Hii All
 
morning
 
11:32 AM
/*jslint global: jQuery, $ */
(function () {
    'use strict';
    var i;
    for (i in users) {
        $.post('/', { message: 'Hi, ' + users[i] + '!' }, function() { $.post('/', { message: 'Hello, world!' }); });
    }
}());
 
11:43 AM
Hello, @Nyuszika7H. Always making an entry :)
 
11:55 AM
leaves for a hour
 
12:40 PM
@Nyuszika7H thats some ugly code you got there
 
@Raynos you really do hate for .. in don't you :)
 
12:55 PM
@Greg I hate the nested $.post
I like for in
 
Just... wow
 
1:12 PM
@Raynos Some comments on that jQuery plugin answer would be nice
I'm curious specifically about why you'd chosen to extend the prototype rather than just extending the jQuery prototype there with a plain object
 
1:34 PM
@YiJiang Oh. I have to explain how to use constructors and the like?
 
@Raynos Well, it's not immediately obvious how that code is better than his
I have to admit, I'm still trying to wrap my head around getting OOP to work with JavaScript
 
Im starting to get to the stage where things are obvouis to me and theres no need to explain why its better
It did some commenting and refactoring
It should be more obvouis why this method is more powerful
 
I left a comment telling him he's being annoying
 
$.extend($.fn, {
    sitemap: sitemap
});
@Raynos You can call $.extend with a single argument to extend $.fn
Oh hang on, is it extension to $ or $.fn?
I thought it was $.fn, but I think the documentation says $
Hmmm.. ignore what I just said then
 
2:30 PM
I extend the $.fn object with the object contianing [sitemap, sitemap]
Im passing in two arguments for readability
yes with one argument it extends $ I think
 
2:48 PM
Hi there! :)
 
hi again!
 
 
1 hour later…
4:10 PM
can anyone help me with jqueryUI's sortable/draggable?
I'm trying to clone an element by dragging, rather than moving it
 
@Greg yeah
@Greg Are you looking for something like this?
 
@Nyuszika7H aha yeah that is similar to what I want :)
I had been looking on the docs, but didn't notice that example 8-)
 
Could you use the 'helper' option with sortable? (jqueryui.com/demos/sortable/#option-helper) using 'clone' and not 'original' (original being the default)
and then in the 'update' event, call a function which will create a duplicate rather than performing a sort (I interpreted this as the desired behavior)
 
hmmm thanks for the advice ... I'll see what I can make out.
 
Hmm, any ideas why can I drag this only once? jsfiddle.net/Nyuszika7H/yEbjY
 
4:22 PM
@Nyuszika7H I'm getting that same behaviour on my test case
 
Here's the source of the jQuery UI demo: pastebin.com/7QdF40Mu
 
revert: "invalid"?
 
1
Q: why does if("string") evaluate "string" as true but if ("string"==true) does not?

munchybunchGiven the following code: if ("string") { console.log('true!'); } //logs "true" to the console if ("string"==true) { console.log('true!'); } //doesn't log anything Why does this happen? I thought "string" was being cast to a number, as is the boolean. So true becomes 1, and "string" be...

@IvoWetzel: One for you to take
 
@Nyuszika7H did you work out why there was only one drag?
 
4:49 PM
sigh.. lol worst thing happened was testing someone elses answer... then pasted my corrected answer in my edit.. and my clipboard still had the other persons answer.
so it looked like I just totally ripped their answer, of course trying to edit again brought up the captcha
I will get out of the 300's!
 
haha
@Nyuszika7H I found out that jquery 1.5 has a bug that kills the UI stuff!
 
5:13 PM
@Loktar try harder!
Just answer a few more questsions and ask a couple more
 
I stalk the newest questions with my favourited tags and see if I know anything about any of them, a plugin for FF would be nice that alerted me to new questions from my favourited tags group
 
Hey. Anyone know any plugin or resource to create an Organization Structure? I found code.google.com/apis/visualization/documentation/gallery/… but it doesn't seem to be straightforward.
 
@MylesGray Depends. if you have javascript/jquery tagged then itll alert you every minute. If you can answer at least 50% of those then just watching stackoverflow.com and hitting refresh whilst answering questions should keep you busy
@MylesGray also take a look at userscripts for SO there might be one out there
@ShreyasSatish You can use that or write your own
 
@Raynos, What browser are you using? I'm on FF4b10 and I have javascript tagged and I have yet to see any alerts?
 
5:29 PM
@MylesGray no I mean it would alert you every minute
It doesnt. But having such a plugin would just be annoying.
and pointless. might aswell just hit refresh. Writes some asnweres, hit refresh repeat
 
aye I suppose so
 
Someone write a good answer So I can reward this bounty -.-
6
Q: Recommended JavaScript annotated source code for learning.

RaynosI have recently found annotated source code for underscore.js and backbone.js I'm currently going through these reading them to learn how other authors structure and write javascript code. It's a good learning experience. Can anyone recommend other high quality annotated source code that is wor...

Dont make a half-assed attempt
 
better?
maybe it just seems good to me as im quite new to JS
 
Yes.
I read them
references to "DHTML" = fail
References to using with = fail
 
I saw that was a bit ooo-errr
 
5:38 PM
"Simple marquee"
 
what? DHTML is AWESOME! Its the future!
Thats what my books from 2001 tell me!
underscore.js has some fantastic documentation, thanks for posting that
 
@Loktar im going to punch you
@Loktar also read backbone for MVC understanding and seeing how to use underscore in a library
 
lol
 
The bit on Events in MVC is pretty neat
 
how do you do the monospaced type in chat @Raynos?
is it still the backticks?
 
5:43 PM
yes
foobar
use `
People keep answering with generic advice on javascript that doesn't answer the question -.-
@MylesGray Did you even read the source you recommended or did you just steal a few google hits? Normally I would downvote such an answer but it's a bit harsh.
 
Well it seemed well annotated to me?
Maybe its just cause im new to it all it seemed like a good resource
I asked my lecturer today whether the code needed to be XHTML Strict or Transitional... He said "yes that would be good" ... what a goon
He also openly admitted he hasnt "done much" HTML or CSS
Why do I pay for this crap
 
6:02 PM
@MylesGray so you can prove your hoop jumping ability to The Man
 
@Nathan most likely
@Nathan how do you check how many points you have in each category?
 
@MylesGray I don't know.
 
Hmm @ircmaxell was saying something about it the other day...
 
6:22 PM
what's up?
 
@ircmaxell How do you check how many points you have per tag?
 
Myles Gray, Belfast, Northern Ireland
304 10
Tada!
22 in css, 14 in javascript, etc.
@MylesGray it was well annotated but the quality of the coed itself was poor. I.e. poor code that is well documented is still not worth reading because it doesnt teach me anything.
I much rather learn what to do from good code rather then learn what not to do from bad code
 
@Raynos - understood, It may be good for the likes of me only learning - Thanks for the link :-D
 
click on the name
I love CSS compatibility. It gives me ammunition... :-D
 
Does anyone know the answer to this one?
1
Q: Overwrite the HTMLNode interface

RaynosI would like to hook into the Node constructor function. Is it possible to overwrite the public Node constructor with my own Node constructor? Currently only testing in chrome/firefox (function() { var _Node = window.Node; var Node = function() { Event.trigger("nodeCreation", t...

 
7:11 PM
Hi again! :)
 
8:01 PM
hey does anyone remember @IvoWetzel link for his nodejs planet game? Not the source, but the running game?
 
thanks
 
Hmm… server offline?!
 
Which server?
 
8:04 PM
kotaku.com gosh, the new site / layout sucks
 
This totally explains why Java was so hot they had to name JavaScript after it, and also why Scheme wasn't.
 
@Loktar The planet thing is not running atm
 
ah ok
 
It also explains Ruby, also a trochee.
And Ajax
And SEE-quel vs. Ess Cue Ell.
 
8:11 PM
-4
A: Putting a variable into name of function javascript

Prisonereval('var table = new google.visualization.'+variableToSet+'(document.getElementById(divId));'); Will work but it's not the greatest funtion in the world.

...
 
rotfl
 
notices trochees everywhere now. Function, lambda, Google, Yahoo, eval...
 
lol
It's amazing the impact a stupid comic can have
 
8:29 PM
"stupid", "comic"...
STUPID COMIC JAVA BYTECODE NINJA PIRATE MONKEY RUBY AJAX SPIDERS!
 
 
1 hour later…
9:30 PM
Is there any way for jquery to modify the css only for a specific media type? (i.e. screen)
 
9:41 PM
@PerishableDave good question.
 
I'm using animate on a div and it's messing up my print style.
 
I tell users who complain about printing, "Don't print."
but I also have some junk like this in my print.css to tone down the jQueryUI madness:
#header, #global_footer, .button, .ui-button {
   display: none;
}
curses Letdown
You might be able to figure out how to override the style for the problem elements in the print style.
 
override? is there any way to specify style precedence?
 
@media print {
  body *{display:none;}
  body:after{content:"YOU'RE KILLING TREES!";}
}
6
 
+111!!11!1 @david
@PerishableDave with clever use of media="all", screen and print you can sort of control which styles show where. In theory.
 

« first day (114 days earlier)      last day (4837 days later) »