« first day (1024 days earlier)      last day (3939 days later) » 

9:17 AM
0
Q: loading a javascript on a WP PAGE

user1735120so im trying to do this http://jsfiddle.net/2XV7w/5/ on my custom_page on wordpress. this is a conditional html form. It will display a specific <div> when i choose a specific drop-down value. when i try to load a sample javascript on my custom_page.php it works fine. to make sure that JS is wor...

 
:-> I can feel my hand again :D
yaay!!!
 
Is there a clean and reliable way to display a date in a specific time zone known by its code (I don't want to store an offset as those change depending on the date) ?
 
9:33 AM
76
Q: How do you create a JavaScript Date object with a set timezone without using a string representation

DanI have a web page with three dropdowns for day, month and year. If I use the JavaScript Date constructor that takes numbers then I get a Date object for my current timezone: new Date(xiYear, xiMonth, xiDate) Give the correct date but it thinks that date is GMT+01:00 due to daylight savings tim...

i.e., no.
at least not in client-side JS
 
@I_Ask_Silly_But_Valid_Question 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.
 
-1
Q: jquery .zoom is not working in IE7

user2642444I'm using .zoom jquery for zooming the images and I'm using the code that given below. $(this).wrap('<span class="idpzoom" style="display:inline-block;"></span>') .css({ display: 'block' }) .parent() .zoom({ url: zoomImg, target: '#idp_zoomedimage', duration: 1 }); It is workin...

^ trying to help him but not sure what could be the problem
 
9:53 AM
@mikrowelt 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 guys how r you today?
 
hi
 
Bonjour
 
is any1 familiar with ejohn.org/blog/simple-javascript-inheritance this article?
i have a question about code in that article...
what dfoes this do
fnTest = /xyz/.test(function() {
xyz;
}) ? /\b_super\b/ : /.*/;
 
@mikrowelt use CTRL + K to format your code
 
9:56 AM
@mikrowelt passing a function to test doesn't seem like the kind of thing one should do
@mikrowelt basically it will convert the function into a string and then test the regex against it
 
yeah
but xyz?
wtf is that?
its somelike if(true) right?
 
just an identifier that happens to be inside the function source
 
We really need a 'Currently Drunk' room
6
 
lol)
Jan tnx..
 
@mikrowelt since it's unused, some browsers will remove it from the AST, and even from the string representation
 
9:59 AM
why did john resig did that
 
especially firefox likes to serialize function(){return 3+2} as function(){return 5}
 
fnTest = true ? /\b_super\b/ : /.*/; i mean this is the same right?
 
@shewontreply 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.
 
@mikrowelt unless the browser takes a liberal approach to function stringification
 
!!choose 'drunk' 'sober'
 
10:00 AM
@monners sober
 
which some do
 
Hi can anyone explain the meaning of Error: Could not find or load main class ?
 
ty Jan
 
@shewontreply what is that error related to? I mean are you using any kind of plugin or framework in your project?
 
Am using just Eclipse IDE as far as i know
can i paste my code? just small program
 
10:04 AM
use jsfiddle.net
 
@Harsh 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.
 
ok
3
Q: multiple arraylist repeat subjectname display in sequence

HarshAnswer in c# also help me. I tried this code for if i have duplicate string in multiple arraylist it update and display in sequence as before. maths english maths hindi english science Economics scince i need output like this maths_1 english_1 maths_2 hindi science_1 Economics scince_2 i ...

 
@lenrok7 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.
 
@shewontreply hey java is not equal to javascript
This is javascript room
 
10:10 AM
@Mr_Green sorry, just thought some people might be able to help with Java
 
ok
 
user1125394
10:26 AM
lol java code in a jsfiddle
 
hehe I thought he is sharing javascript code and recommended it. :D
 
@hotzu 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.
 
@shewontreply oooh java
 
@FlorianMargaine meheheheh yes
 
@shewontreply we all dislike java
 
10:31 AM
@FlorianMargaine why so?
 
@shewontreply this sums it up pretty well: gist.github.com/Zirak/3373067
 
@FlorianMargaine This isn't the same problem. My problem is to format a date string from a date and a timezone. What I don't have is a table which could tell me what's the offset of CEST (for example) at a given time. [sorry for delayed responses, Neuf télécom c'est de la daube]
 
10:53 AM
@Tycoon 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.
 
@CapricaSix thank you
okay
 
11:13 AM
@J.Pip 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.
 
Any Angular.js folks over here
 
30 minutes of No Quarter (from Conspiracy Theory): grooveshark.com/#!/mesabjorn/broadcast
 
0
Q: How to fetch the parent elemets attribute and its value from a colorbox element click using Jquery

PadysterI am using colorbox as a popup which contains a link "change". POPUPUP.HTML <div class="popup-shell"> <div class="image-holder"> <a href="<?php echo $_REQUEST['uri']; ?>" id="loupe3"><img alt="" src="<?php echo $_REQUEST['showuri']; ?>" /></a> </div> <p class...

Somebody help with this
 
user1125394
using jquery
 
11:33 AM
@Padyster There're 8 more minutes of No Quarter, enjoy it
Scratch that, listen from the top: grooveshark.com/#!/s/No+Quarter/43dIQT?src=5
 
0
Q: Print the time for a given location

dystroySupposing I have a date (i.e. an UTC timestamp) a location (e.g. "Paris") that I may encode as I wish (and which isn't the one of the browser) no permanent internet access then what can I do if I want to format my date for this specific location, correctly dealing with daylight saving time wh...

 
@dystroy You can look at how the tz database does things
 
!!/google tz database
 
TIL that the lawsuit didn't kill it after all...
 
11:39 AM
What a bad lawsuit
 
@Zirak This lead me to this : github.com/mde/timezone-js
But this is a huge JS...
 
What'd you expect?
 
a small js
mainly a table
 
user1125394
!!define stuttering
 
@cx stuttering A speech disorder in which the flow of speech is disrupted by involuntary repetitions and prolongations of sounds, syllables, words or phrases, and by involuntary silent pauses or blocks in which the stutterer is unable to produce sounds.
 
11:51 AM
@GNi33 Yes, mate! Don't think about it, do it! :D
 
hehe, would be awesome
but I think the gf won't be too happy about it, we're supposed to go to a wedding on saturday
 
I'll be at the Pannoniaring with a good friend of mine either on Thursday or Friday I think, an then I'll be in Spielberg.
 
i don't like weddings, but dammit, what can I do
 
Wait, you got a new GF?
 
yeah
 
11:54 AM
but ... but what about us?
 
awesome girl
 
heh, glad you like her.
 
Dos she have a lot of cheevos?
 
cheevos, are these things those weird xbox-points?
 
Yea those things Bboy invented.
 
11:56 AM
oh, you weren't around for the bboy360 craze.
 
oh, I was around
 
0
Q: Get the local path of streamed video

Mr_GreenI watch movies online(not on youtube). As my internet speed is slow (512 kbps), I watch the movie while streaming instead of downloading and then watching. I have seen that I can move the seek bar to any position in the vicinity of streamed video. So, I am assuming that the streamed video will be...

^I am posting it again. Any idea?
 
@Mr_Green From youtube, your chance of finding it are slim.
You can see your cache on about:cache, but youtube hides the videos really, really well.
 
yeah I can get youtube videos easily using plugins like youtube downloader
 
owait...not on youtube. That might be easier.
 
11:58 AM
@GNi33 anyway, don't worry. I'll be at Spielberg quite often anyway. We'll meet one day. :P
 
but I have problem with other sites
 
But most of the players also have at least one level or redirection
You can mostly get these video links by poking around the source, and when opening the video, poking around connections.
 
I am actually saying that there might be a local copy of the video
which will be stored temporarily in our local disk
The streamed video
I need that
 
Well, the answer is "maybe".
 
ok
 
12:01 PM
Not everything is necessarily cached, especially with those weird flash players.
 
yeah but I need for the videos on which we can move the seek bar
I hope you got me
 
Again, not necessarily disk (usually not), you have RAM
 
yeah
ok
 
@dystroy momentjs.com/timezone and cat /usr/share/zoneinfo/zone.tab on any linux
 
@zewa666 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.
 
12:08 PM
@OctavianDamiean absolutely, we have to
 
@FlorianMargaine this is interesting. I'm looking at it
 
github.com/Zirak/SO-ChatBot/issues/82 <- regular users input required
 
This guys lost his css file stackoverflow.com/q/18057737/1577396
 
@Mr_Green I just love PeeHaa's comment
 
user1125394
 
12:16 PM
haha yeah he got a good lesson. :D
 
@FlorianMargaine Input given
 
@Zirak input given back
 
@FlorianMargaine Note the "its original intention, not /karma"
 
@Zirak hah, you edited. Fool.
 
!!define sarcasm
 
12:19 PM
@Mr_Green sarcasm (uncountable) A form of humor that is marked by mocking with irony, sometimes conveyed in speech with vocal over-emphasis. Insincerely saying something which is the opposite of one's intended meaning, often to emphasize how unbelievable or unlikely it sounds if taken literally, thereby illustrating the obvious nature of one's intended meaning.
 
oh btw
I just got this in my mailbox
user image
6
\o/
 
I have a question. In highcharts, the js thing, is there a way to fetch which bar was clicked for a drilldown?
 
@Zirak updated
 
@FlorianMargaine awesome
 
@FlorianMargaine (@SimonSarris) Neat!
 
user1125394
12:28 PM
@Crowz you can get to the time (if it's your x) then get back to the whole point data
 
user1125394
I'm scared of Intel Pentium proc even if they are new generation, don't know probably the name
 
@cx oh, what I am trying to do is make a drill down for that specific bar. Ie, they click that bar and it presents them with data about that specific point
 
user1125394
it's called a tooltip, and hc has it
 
user1125394
o well tooltip is on hover, but you should be able to make something
 
Hi!
 
12:34 PM
@Juniperus 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.
 
ohai
 
I just read a question about changing an element ID. http://stackoverflow.com/questions/10219396/jquery-update-element-id
The answeres argued that it is not recommended to do so because that would be to sort of "bend the rules".
Now, if you really have to change the IDs. Is it a better option to replace the entire element with a copy but with a new ID?
 
@FlorianMargaine :->
 
@gsnedders ohai
 
@gsnedders hellos
 
12:39 PM
Sup mate?
 
Good evening Octavien ?
 
G'day Sir.
 
7
Q: how to make placeholder does not disappear on focus

Muhamad SerawanI'm trying to underline the background of the text area so i made the placeholder value equals to '__', this will make the text area like this <textarea placeholder="____________________________________________"></textarea> I tried this but the lines disappeared when i change the value of the...

Op is douche
 
@FlorianMargaine Pour mon problème, je vais me développer un petit service en java qu'interrogera le browser. C'est plus simple finalement puisque java intègre en standard les tables Olson contrairement au js.
 
copies the answer into a new answer
 
12:41 PM
"Your password should only contain alphanumeric characters" - FAIL
 
@rlemon LOL at the question ! How comes a stupid question like this got so many upvotes...
 
password requirements === templates for brute force attacks
I down voted the q and the users self answer
when I get to my PC I'm vote close as dupe
 
@dystroy Java ou autre chose (genre Go) sera surement le plus simple oui
 
@rlemon second that.
 
@FlorianMargaine I already have a java server for this project, so that won't be hard to add this service
 
12:44 PM
@rlemon also again thanks for the feedback, added all the comments into my code :D
 
@dystroy oh I see
 
My server will only answer with the offset of the timezone from UTC at the current time and the browser will do the other computations (I have many dates). EDIT : won't go well if some of those dates are on the other side of a daylight change :\
 
Can anyone help me out with this angular problem?
0
Q: Shared data between controllers not updating model angularjs

J.PipI have 2 controllers that share the same service in my application, when I fire an event that's controlled by the portalController function --> setLang() I don't see the model of applicationController being updated in FF and chrome, in IE8 it is working fine (which I didn't expect :p ) below my c...

 
@dystroy what do you mean?
 
monday morning git merge hellllllllllllllllll
 
12:52 PM
 
lmao @ ^
 
haha
is mustachify not working?
Always showing internal server error
 
@FlorianMargaine My first intention was to send from the server to the client the current time offset for the given time zone but if some of the displayed dates are in summer time and some other ones in winter time this won't be correct...
 
@dystroy ah yeah, you have to send the timestamp
 
1:05 PM
@Sid 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.
 
user1125394
case "foo":
	String i = "err";
case "bar":
	i = "rvrv";
 
user1125394
valid java code...
 
@Zirak She wouldn't be amused.
 
@devdot 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.
 
hi... is anyone here familiar with phonegap?
 
1:22 PM
Hello, I'm trying to remove an element from the DOM with javascript, but it's not currently working I want it to.
Code I have now:
    <style>
            .sidebar { display:none;}
            #uiRight { font-size: 1.2em;} re
        </style>
    <!-- Just in case it's not dead... -->
        <script type="text/javascript">
            jQuery(document).ready(function ($) {
                $('.sidebar').remove();
    <script>
 
I'm trying to navigate up a folder by using DirectoryEntry.getParent(..), but it always seems to return the same directory I'm calling getParent on :/
 
@akowalz errors in the console?
 
none @Shmiddty. It's actually hiding the sidebar, but it's not really removing it from the DOM. All my elements still have to wrap around it, even though it's invisible
 
You didn't close the script tag
 
@DarkAshelin 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.
 
1:25 PM
@Zirak, it's closed in the code, that was a copy paste error
 
And make sure you insert it after the element you want to remove has been inserted (otherwise, you're removing something which isn't there)
 
@akowalz Dont make $ the event, just use jQuery(...) to remove
 
so jQuery(document).ready(function () {...} @devdot
 
He's got the jQuery ready event, but he's made $ the argument for some reason. He should be seeing an error
 
looks like this: jQuery(document).ready(function (event) {
$('.sidebar').remove();
}
would be new to me if a jquery event object is a reference to $
 
1:29 PM
@Shmiddty @devdot changing it from ($) to () didn't do anything. Should this remove the sidebar? Completely?
 
@akowalz you need to have 1 parameter. but dont overwrite any existing variable like $ or jquery. $ should be availible everywhere anyway
 
user1125394
!!convert 2 EUR USD
 
@cx 2.6566USD
 
@devdot, really? Around jQuery functions without arguments really common?
 
user1125394
1:32 PM
!!my Api is correct or convert is?
 
@cx Is my Api wrong
@cx convert is
 
question; anyone ever have trouble with dropdowns in bootstrap?
 
user1125394
!!convert 200 JPY USD
 
@cx 2.0288USD
 
user1125394
1:34 PM
2.0297150280100675
 
just do
jQuery(document).ready(function (event) {
jQuery('.sidebar').remove();
}

an event handler needs one param (the event object)
you named this $ and tried to use this but that simply does not work
 
@devdot Ok, it didn't work though..
@Neal why did he tag that php?
 
@akowalz No idea
 
one of the great questions of the universe I guess.
 
@devdot parameters are never required in JavaScript
That's misleading. Parameters are never required in a function definition in JavaScript
That's better
@akowalz is the sidebar being added by some other script?
 
1:44 PM
@Shmiddty I don't think so. But it's part of a different file, a master page that my page inherits from. Using .NET
@Shmiddty I just looked and the master page's body has a class "no_js". Maybe they're disabling javascript in the body or something? Would that effect other files?
 
@Vijay 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.
 
user1125394
I love people putting CEO of .. in their CV for their own fake enterprise
 
@RomanBrochard 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.
 
user1125394
1:59 PM
FBI always code in js
 
Given an English text print out the list of words and their anagrams in their order of occurrence. Word A is an anagram of word B if it can be derived from word B by merely shuffling the letters in word B.
my code for that ^
when i try to submit it says i am wrong ... why ?
 
interview question?
 
no i am giving an exam >_< been stuck on this for 40 minutes
it just dont wanna except my answer [ i even tried in java btw ]
 
Why do you prefix variables with an underscore?
 
2:02 PM
The output should contain the word (in its order of occurrence in the text) and its set of anagrams in the text (again in their order of occurrence), separated by blanks

Each new list of words and anagrams should begin on a new line

All words in the output should be printed in lower case characters
where ?
oh _dict and _hash ?
meh... my ide started making them look like they were keywords
 
_dict = { }

_dict = len(_array)
???
 
And lower and array
...so if they're keywords, find another name
 
if i even do that, why does it always spit that i am doing it wrong :-|
the ouput is exactly as they wanted :-|
// or did i miss something ?
nobody has solved that problem yet lol
i guess the person who wrote it wrote buggy crappy code and hence forth his implementation makes all of ours fail :'(
 
@Darkyen Are you sure you're supposed to exclude all single-appearance anagrams (your len(...) > 1 condition at the end)?
 
2:17 PM
@Zirak if you see my code, the len( ... ) be 1 for every word unless its repeated or anagram
as in, it will create a hash for and & dan : 'adn'
this 'adn' will have a 'words' array which will have and,dan
morever.
 
But if, say, your input is "hello world", there'd be no output, since each word only appears in one letter arrangement.
 
Holiday is over but we sent you all postcards. Except Zirak because nobody knows where he lives.
 
oh, ok
 
@Zirak -^ they say that to be output.
and i tried '\n\n' in front.. aswell
 
2:20 PM
@BadgerGirl yay
 
@Zirak i guess i found why is all the error coming
and if it is so .... i assure you i will annihilate the person who wrote the code
 
Elaborate?
 
posted on August 05, 2013

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) {} What an amazing time at GaymerX.

 
i am assuming that the lame coder did it in C++ on windows and hence used '\r\n' instead of '\n'
 
Oh! SMBC!
 
2:21 PM
windows newline vs linux newline
 
duh the pic doesn't work :(
 
@Ghostology 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.
 
yeap worked :P
 
hi all
any wp dev around ?
 
don't use word press
 
2:25 PM
@Darkyen Here's some light refactoring: pastiebin.com/51ffb5cf2a992
 
@FlorianMargaine same for me
 
I dislike how inp changes meaning
 
:-) you write good code!
 
@FlorianMargaine Here's the one of tomorrow :
 
The list comprehension was the only real major change
 
2:27 PM
haha
@dystroy so realistic
 
So I discovered we can browse future SMBC comics... (up to one day)
 
pastebin.com/QS11j6WQ even after refactoring my code looks so horrible in front of yours
 
Well, the only two big differences are whitespace and the variable names
And...line 8?
 
lol
it bugged me i am using too much memory
andddd... went silent when i did so
 
@Darkyen doesn't python have regex support?
 
2:34 PM
i think it does
but you know regex... um i'd much rather not get into it :'[ ... 1. I suck at it, 2. I see no point in using regexp here.
 
/(\b\w+\b)+/?
 
@Darkyen learn them, they're not hard
and they give easy rep on so
 
they are appropriate for certain tasks.
such as "getting an array of all words in a string"
 
!!gradient maroon,teal
 
2:41 PM
 
user1125394
!!> [].concat({foo:0})
 
@cx [{"foo":0}]
 
5 hours ago, by monners
We really need a 'Currently Drunk' room
This is that room
> Aaah, that feeling when your browser remembers being logged into chat.SO, but not SO - parsererror - retry / cancel
Huh. I've never seen a parse error in chat before.
 
hello folks, I'm trying to use the "enter" keypress event to switch between inputs fields inside a table. What I've done so far is this -> http://jsfiddle.net/5DwHw/

I was following this example

http://stackoverflow.com/questions/2335553/jquery-how-to-catch-enter-key-and-change-event-to-tab

to get the current input index, but it's not working as you can see
what am I doing wrong?
 
This is brilliant, my vibrator question gets a ridiculous amount of up-votes. :D
 
2:57 PM
is there a &lsaquo for top and bottom ?
 
@OctavianDamiean I can't believe there isn't a single inappropriate comment.
 
dirty minds
 
@Shmiddty There was, it was a hilarious one. Too bad it's gone.
 
"give the device to your girlfriend, she'll find it"
 

« first day (1024 days earlier)      last day (3939 days later) »