« first day (1015 days earlier)      last day (3936 days later) » 

12:17 AM
@jsc123 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.
 
@jrg you are awesome :P !
thanks for following up!
 
Rallycross seems really interesting.
 
any suggestions on who to use in dota2
 
jrg
@rlemon hey, somebody asked.
 
12:42 AM
hi all, does anyone know how come I am encountering "[warning] [phantom] Failed injecting %s client side. Failed injecting includes/jquery-1.10.2.min.js client side," when I have included 'includes/jquery-1.10.2.min.js'. Someone posted a similar question here: groups.google.com/forum/#!msg/casperjs/hY4ziaoXIEE/YFi8Sj4JysMJ, but I do not understand how they have incorporated the casper.evaluate() in their solution
 
user1596138
@shmiddty I'm on the road. Sorry, I was tipsy earlier for sure.
 
user1596138
Gimme 15 min
 
user1596138
Fixed while stick in traffic :)
 
1:01 AM
Anyone know how to get the day of week from a date in Javascript?
 
var month = 10;
var day = 16;
var year = 2013;
var creatingDate = month + "/" + day + "/" + year;
var birthDay = newDate(creatingDate).getDay();
alert(birthDay);
 
baaaaaad
 
Yes.. I'm aware lol
They month, day, and year are from inputs, so the date will be random all the time
 
var days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];
var birthday = days[new Date(year, month, day).getDay()];
 
1:07 AM
thanks
 
you're welcome
 
The second fatal car crash I've witnessed in two weeks ...
 
1:09 AM
Actually, it only shows up "Tuesday"
 
not fun
 
Nope.
This one was especially ugly.
 
@MattKnowsTech sorry
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
var birthday = days[new Date(year, month, day).getDay()];
Sunday should be 0
oh an posisbly month - 1, instead of month
 
Ahh, yes -1... thanks!
 
@MattKnowsTech Only time anyone would every thank for a -1.
 
1:19 AM
He's sexy ^
 
You must be fucking kidding me. I can be a goat in ArmA 2, what the actual fuck?
Like, am I a combat goat or what?
3
@Loktar man what the hell? ^
This is absurd ... I am a chicken now, a chicken that just requested CASEVAC ...
I wonder what ammunition I have as a combat goat. Pee or poop, both available in semi-automatic, burst and automatic fire modes?
"This is Goatfather Actual, we have two tangos, two clicks to our north west. Request permission to poopgage. Ove-bleat."
 
@OctavianDamiean are you in shock? Over.
 
Pretty much. I can't believe that I can be a goat. Over.
 
1:35 AM
Roger that. I can't believe it's not butter. Over.
 
1:57 AM
1
Q: Making page refresh inside jquery

Billy WhiteSo I have a count down timer. After the timer hits 0 I need it to update the database and then refresh the page. Here is what I have so far for the timer / update database. <script> window.onload = function(){ (function(){ var counter = <?php echo $timer ; ?>; setInterval(function() { ...

 
lol
I didn't know weather to laugh or cry when i seen that.
 
I'm not an expert but that shows no research imo.
 
that game title. Space Hulk, aw yea!
 
@Event_Horizon imo?
 
2:01 AM
to iterate through elements within a div searching for lowest text nodes and replacing text, a simple `for' loop isn't going to cut it is it?
 
imo.im is what i know as imo
 
in my opinon*
 
@Event_Horizon Well, im looking at the php code inside javascript, i don't know about you
 
@Event_Horizon what are you going on about? basically this dude want's to update a database with PDO, when someone clicks a button, and thinks that putting the php code inside the click event will work.
 
2:05 AM
I was talking about my own issues in reference to Iterating through DOM
 
@Event_Horizon Oh....................................................................
 
I'm trying to get lowest textNodes and replace their nodeValue, but I'm terrible with iterating dynamically through sets of stuff more than 2 deep
been searching for ways to iterate
 
@Event_Horizon you have a fiddle or what?
 
yeah but I don't have anything for iterating in it yet, I'll post it if you wanna look
 
why do you wan't to replace text nodes?
@Event_Horizon
 
2:09 AM
I'm trying to create an auto linker IE if you have a div with dude.com it auto links to the site
 
you know if you use children instead of childNodes you won't get any text nodes included.
 
children=element.childNodes
 
@Event_Horizon use children not childNodes
 
though I should probably not do that
 
why
 
2:11 AM
if there is a function named children I don't want to create a var of the same name
 
i don't get where text nodes come into this?
 
find text nodes, replace dude.com with <a href='dude.com'>dude.com</a>
 
@Event_Horizon there isn't a function called children it's a nodeList and wont affect your variable
ohhhh
 
added an iterator I found and its not working : /
 
2:28 AM
0
A: What are the downsides of defining functions on prototype this way?

Aadit M ShahLet's actually compare both the ways and see which one is faster: http://jsperf.com/traditional-oop-vs-derek-s-oop-variant As you can see your method is much slower than the traditional method. The reasons are: Your constructor is doing more stuff than required. Hence if you create multiple in...

 
Interesting
I need help with this iterator, I'm terrible at these damned things
 
3:01 AM
Well now I have it working but only in the console...
Finally got it working thanks to a script bobince made a while ago
 
 
2 hours later…
4:58 AM
God, could this hotel internet suck anymore dick
 
5:14 AM
@Datsik can you load any page, albeit slowly?
 
0
Q: Is it possible yet to make a single page web page without using server side such as PHP?

Arvo BowenI'm looking to make a simple web page (mainly used on the local machine) that would just be a single file (such as htm or html) but would dynamically change based on the url. For example, if I went to 'file:///C:/Sandbox/test.htm' it might display the following... Hello World But if I went...

 
5:43 AM
-1 for not having opened the debugging console and noticed the syntax error (and there's not just one) gazing at you — Jan Dvorak 55 secs ago
(BTW, is this syntacticcally correct?
 
6:06 AM
HEy
$("#btnAdd").on('click', function () {
            UOMQty = $('#UOMQuantity').val();
            var myobj =
             {
                 objCaption: UOMCaptionValue,
                 objQuantity: UOMQty
             };
var captions = myobj.objCaption;

  });
How to push more values into these objects and retrieve Caption and Quantity like a key value pair ?
Lo ? Anybody ?
 
What's UOMCaptionValue supposed to be ?
 
var UOMCaptionValue = $('#captionVal').val();
its a global variable stores numeric value of caption.
I have caption, captionValue, UomQty.
 
And you'd like to store more of what exactly ?
 
I want to store them like "CaptionValue1:qty1""
 
But you're using ID's, how can there be more ?
 
6:12 AM
 
I don't get it?
var captions = [];

$("#btnAdd").on('click', function () {
    var UOMQty = $('#UOMQuantity').val();
    var myobj = {
        objCaption: UOMCaptionValue,
        objQuantity: UOMQty
    };
    captions.push(myobj);
});
 
I get the caption and caption value from the "UOMCaption Textbox through autocomplete mate
 
Maybe
var captions = [];

$("#btnAdd").on('click', function () {
    var UOMQty = $('#UOMQuantity').val();
    var myobj = {}

    myobj[UOMCaptionValue] = UOMQty;

    captions.push(myobj);
});
who knows what you're trying to do?
 
@adeneo This what i want :P
I am sorry that i couldnt be very specific. How can i fetch all values from the object caption ?
like if i want to convert in to json ?
 
var captions = {};

$("#btnAdd").on('click', function () {
    var UOMQty = $('#UOMQuantity').val();

    captions[UOMCaptionValue] = UOMQty;
});


$.each(captions, function(key, value) {
    // use key and value here ?
});

// or just

var json = JSON.stringify(captions);
 
6:21 AM
$.each(captions, function(key, value) {
//element with same key's vlaues will be added here.
}); // then convert it into json.
var json = JSON.stringify(captions);
Done ?
 
6:42 AM
How can Enable/Disable multiple google virtual keyboard
 
@noushad - why would you need more than one, are you an alien with six hands?
 
Hey Does anyone know you can use regular node.js code alongside a Meteor application?
 
7:01 AM
@adeneo I have two textbox and two checkbox and named textbox1,checkbox1,texbox2 and checkbox2. If I checked checkbox1 I want to enable keyboard on textbox1 and after unchecking checkbox1 I want to disable it from textbox1. This is same in the case of textbox2. I can enable virtual keyboard separately but I can't disable it separately.
 
@noushad I can't stay to help, but please post a fiddle to better demonstrate your problem
 
0
Q: Evaluate this Jquery, Dropdown menu after the fact

absentxI have a web layout that I created and then later wanted to add a dropdown menu to it. I found that my html was not quite optimum for that, so I wrote some jquery that is now working quite nicely but I need this to be critiqued to see if and where I could have changed some things here. My dropdo...

 
7:38 AM
stfu @Feeds, there's enough spamming of questions without you adding to it
 
7:50 AM
@Gaurav 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.
 
even more questions...as if mine wernt enough for the day ...lol
 
8:10 AM
boostrap 3.0 is finally up
 
@JanDvorak jsfiddle.net/KSVgD/2 please check this fiddle
 
@Zirak That was so awesome!
Thanks
 
19 hours ago, by Zirak
heh, this is also cute http://www.kongregate.com/games/Stillmerlin/icarus-needs
 
8:27 AM
Hahaha that was interesting
Nice ending
Everyone needs ropes!
 
That's a long fall, at least 6 panels!
 
8:59 AM
Sup y'all?
Welp, that ain't much.
 
wow, this is begin close-voted as "off-topic" because it doesn't display a minimal amount of understanding...
 
@Zirak I fail to understand what he is trying to achieve ...
 
That doesn't matter, his code can't compile anyway - he's not always returning a boolean
 
Like, does he merely want to find the extension of a file?
Note: I didn't look at his code yet.
 
He knows the name of the file sans the extension, i.e. only part of it
So he wants foo to find foo.png
 
9:09 AM
Ah!
 
And get foo's extension
 
More or less this.
24
Q: How do I get the file extension of a file in Java?

longdaJust to be clear, I'm not looking for the MIME type. Let's say I have the following input: /path/to/file/foo.txt I'd like a way to break this input up, specifically into .txt for the extension. Is there any built in way to do this in Java? I would like to avoid writing my own parser.

I guess.
 
Well, that's part of the question (what's inside the 2nd if)
 
Meh, it got closed anyway.
 
I'm voting to reopen, it's a valid question
 
9:10 AM
If you can, try to reformulate his question so it makes more sense.
 
It's not a very good one, since OP glossed over compiler errors, but it does "demonstrate a minimal understanding of the problem being solved"
 
Maybe you can salvage it that way.
Fixed the code formatting. I fucking hate hard tabs.
 
ugh, these test reviews are retarded
 
Oh that son of a bitch! Both ifs were single line ...
I almost forgot how fucking verbose Java is.
Thank god I don't have to deal with that any more.
 
Well, that's a legit close though.
 
"I broke Java"
 
The cloudfront one.
 
9:27 AM
yeah, it definitely is..."check out this duplicate, plz hlp"
 
Ew mer gerd ...
The other question is ... ugly.
I don't even know where to begin.
 
user1125394
Not Found
 
@OctavianDamiean The Gazelle should get here on Monday
woop!
So I just need to think of a name.
 
Awesome! ʘ‿ʘ
I know that face freaks you out! :P
 
9:39 AM
GAH
@OctavianDamiean gifs.gifbin.com/25yuswsw28295.gif (killin' it with fire)
 
:D
I need a new black/white photo where I don't look like I'm eating my hand.
 
user1125394
!!google gazelle computer
 
user1125394
bah mac..
 
!!google system76 gazelle
 
wow, that youtube video is horrible
 
I'll think about nice names and let you know.
For now though, I gotta run buy some food.
 
user1125394
that costs an arm no?
 
Maybe, but I paid with money
 
user1125394
$1k
 
9:48 AM
The Gazelle is $830
 
user1125394
not so much, it's ok
 
user1125394
10:05 AM
!!urban gazelle
 
@cx Gazelle A good looking, yet aloof girl who is consistently guarded when a man shows interest. She will give the impression of mild interest, even go out on dates with a man she is not that interested in, and then run at the first sign of genuine pursuit. On rare occasions, the man is able to catch her interest anyway.
 
10:18 AM
Pretty expensive for a good looking girl.
 
10:39 AM
hi
FACEBOOKS HTML IS SO UGLY!
 
how can create google virtual keyboard for multiple textboxes and toogle between english and local language
 
@OctavianDamiean Makes me want to get it just so I can play as a goat
 
11:00 AM
Hmm...over 3 years on SO and I just barely decide to peruse the chat rooms. Lag much?
 
@comb 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 :)
 
var up_all_night_for_work = true;
 
That sucks
 
@Amaan You can be a sheep, a chicken and a rooster too.
It's so sick.
@Alex var up_all_night_because_mother_had_to_be_brought_to_hospital = true
 
11:20 AM
 
The avatar is too small.
Also, a tad more contrast.
 
Hey
How do i get values of objects ? if myobj has 5 values then i wanna get all of them.
 
0
Q: Does understanding functional programming help in understanding popular javascript libraries?

Mert NuhogluI am not experienced in javascript. I try to use some popular javascript libraries such as jQuery, Angular.js and Meteor.js. I wonder if understanding the logic of functional programming (in javascript of course) will help in understanding and using these libraries better?

 
@codebrain This way. jsfiddle.net/MMNrz
 
11:36 AM
@OctavianDamiean let me apply it and see
@Octavian Could you help me a little more.
I have figured out till now. if myobj has 7 set of values how do i get them all ?
 
@codebrain for indicates a loop. It loops over all keys of your object.
It doesn't care how many keys-value pairs you have in your object.
@codebrain "IT Professional from Chennai,India." mind telling me in what technology/languages?
 
C# , ASP.NET
 
So, you should know of loop constructs.
 
Yeah i get the loop constructs, what i cant figure out is the data in js objects
 
11:46 AM
check this. Enter name , id, mark and hit add.
help me in this. i am not so good at js.
 
(-‸ლ)
 
what is it ?
 
What in the name of god are you doing there ...
 
0
Q: First attempt at an MVC javascript pattern

todoI would really appreciate a review of my interpretation of MVC here. http://jsfiddle.net/zuVkt/ It's as bare bones and clear as possible, i've based it on some in-depth reading but I don't know if I have understood everything correctly! For example, how i've wired the model onChange to the co...

 
@OctavianDamiean consider that stolen
 
11:50 AM
@OctavianDamiean When user enters id, name and mark i want to store it a js object. he may enter multiple data. how do i get all the data that pushed into the object ?
your loop structure prints the same key's value again and again.
or may be i am wrong in that
 
1. You didn't select jQuery from the library dropdown list but are using jQuery in your function.
2. You are looping over the keys of an object but doing nothing with them, instead you're doing some random crap.
@codebrain Yea, you are wrong, how about running my fiddle and inspecting the output?
 
Yes yes, running your fiddle i get an empty result..
 
What browser are you using?
 
i should know to work with fiddle. :\ i didnt notice.
Chrome
 
@codebrain You are aware that you have to check your console for results right?
Ctrl + Shift + J
 
11:56 AM
yes, the console in f12.
 
And you hit run?
 
yes, i am getting results from your fiddle Mr.Oct, Please try to understand my question.
 
You want to get all values out of an object, isn't it?
 
lets say initially you have "john,Doe,30" then "William,Martin,45" is entered. now i want both these results at the same time from the object. is that possible ?
i want to store multiple data pairs like these and get them from the object
 
So, you want to iterate over an array of objects and get the value of each key in those objects.
 
12:00 PM
yes My lord.
yeah that's what i want to do. am i doing it right ? i should be able to push records into the object and iterate through it to get them or process them.
 
Then I guess that's what you want.
Slightly improved.
 
let me check that, and thanks for your patience.
 
@OctavianDamiean none code related, do you know anyone with a recipe for Speckknoedel?
 
@mikedidthis Südtiroler Speckknödel? :)
 
@OctavianDamiean fuck yes!
 
@OctavianDamiean I could kiss you, thank you so much! :)
 
Thank you very much @Octavian .. see you on monday.
 
100 grams of bacon
200 grams of smoked meat
6 bread rolls, diced (Semmeln) ref: baeckerei-peiss.de/images/fotos/semmeln.jpg
250 millilitres milk
2 eggs
salt
30 grams of butter
one small onion, chopped
a bundle of parsley
60 grams of handy flour
That's what you need @mikedidthis
 
@OctavianDamiean aww thanks dude.
 
12:16 PM
Now the instructions.
 
gist: Recipe: Südtiroler Speckknödel (http://www.chefkoch.de/rezepte/125501053779835/Tiroler-Speckknoedel.html), translated by the awesome @mainerror, 2013-07-27 12:21:40Z
### Südtiroler Speckknödel

##### Ingredients

* 100g of bacon
* 200g of smoked meat
* 6 bread rolls (Stale) ref: http://www.baeckerei-peiss.de/images/fotos/semmeln.jpg
* 250ml milk
* 2 eggs
* salt
* 30g butter
* one small onion, chopped
* a bundle of parsley
* 60g plain flour

##### Ingredients
 
lol
 
1. Render down the bacon in a pan
2. Roast the diced bread rolls in the pan
3. Stir the eggs with the milk and salt it
4. Cast that over the roasted diced bread rolls in the pan
5. Roast the chopped onion in butter
6. Finely chop the smoked meat and the parsley
7. Mix it with the roasted bread rolls egg-milk mass in the pan
8. Let it stand for about half an hour
9. Sprinkle the mass with flour and mix it
10. Form dumplings
11. Boil the dumplings in salted water for about 12 minutes.
Hopefully that makes sense.
 
@OctavianDamiean perfect sense, again, many thanks.
I saw them on a cooking program, but it was street food, so no recipes.
 
If it beeps or moves on its own I probably sucked at translating it. I'd recommend to run in that case. :D
 
12:27 PM
@OctavianDamiean I shall take the advice.
 
And remember, don't feed it past 12 'o clock.
Oh yea, those amounts in the ingredients are for four portions! @mikedidthis
 
@OctavianDamiean sweet. I want to make some for freezing too: gist.github.com/mikedidthis/6094719
 
Bored of english food, need to expand.
 
Welcome to the JavaScript chat where we discuss combat goats, Speckknödel receipts and sometimes also JavaScript.
3
:D
 
12:38 PM
@OctavianDamiean I wouldn't change a thing.
 
12:54 PM
0
Q: Organize javascript (jQuery) code

ebbI'm making this web application, that needs some very simple javascript/HTML5 related features integrated (hereby an upload feature). However, I'm not sure about whether I've overdone it, as it's the first time I'm writing javascript without just throwing it all into the same file, with no namesp...

 
@mor 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:07 PM
How the heck did this not get closed? stackoverflow.com/questions/17895608/…
 
cv'd. 1 to go
 
Can anyone tell me where the PhoneGap / Cordova jar should be?
 
jar?
Adam, are you sure you're in the right room?
 
Well, yeah it's a JAR I'm looking for
but I'm looking to write an app with JS :P
I would've assumed someone here wrote something with PhoneGap before
 
We might be able to help you with the JS part
 
1:11 PM
haha
 
We can also help you with goats or recipes.
 
@OctavianDamiean Are you sure you're in the right room?
 
*recipes
 
Yea pretty much. :P
@AdamLynch Sometimes, at night, I'm a goat.
 
posted on July 27, 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) {} Whee!

 
1:17 PM
Stupid. The PG documentation says install it via npm, then run a few commands and that's it. Left out a step in that you have to go to their GitHub for a JAR that isn't retrieved by any of the commands
no wonder people say it's a chore
 
1:46 PM
@HariKrishnan 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:57 PM
0
Q: Javascript idioms this that vs this self

john-charlesI've been writing JavaScript for a bit and have now seen code using the idiom var that = this; and var self = this; Used to gain access to this through closure scope. At this point var self = this seems somewhat more common. My question is which of these two idioms is truly the conventio...

 
2:12 PM
1 message moved to bin
 
2:22 PM
@Feeds pretty silly question.
 
why is Feeds spamming rubbish now?
 
"But it's sexy" lol
That's pretty horrible :/
 
:-/
 
but also pretty dumb
that doesn't make it funny
which I presume is the reason it's been posted on the internet
 
2:42 PM
What a horrible question:
0
Q: Does understanding functional programming help in understanding popular javascript libraries?

Mert NuhogluI am not experienced in javascript. I try to use some popular javascript libraries such as jQuery, Angular.js and Meteor.js. I wonder if understanding the logic of functional programming (in javascript of course) will help in understanding and using these libraries better?

@Esailija huh?
 
huh what?
 
On that comment on that/self
 
I have now refined the comment
 
Any Grammar Nazi around?
 
1 message moved to Trash can
dude, y u let gifs just play n play n play
 
2:50 PM
lol
 
@RobW what do you need help with?
 
I was reading my answer at meta.stackoverflow.com/a/190402/169101
And feel that there's something wrong with "I find it easier to append user:me at the google-chrome-extension page, than type [google-chrome-extension] in the suggested search box."
I guess that "type" has to be "typing"
 
I'd say, "than to type"
I don't think you can cache "to"
also, in the tips or at the tips page
!!define boldfaced
 
@JanDvorak boldfaced Impudent, brazen.
 
!!define brazen
 
2:55 PM
@JanDvorak brazen (archaic) Pertaining to, made of, or resembling brass (in color or strength).
 
!!define impudent
 
@JanDvorak impudent Not showing due respect; impertinent; bold-faced
 
That's a very useful definition for "boldfaced" :p I don't know any of these explanations
 
m59
Do you guys think it would be ok to ditch server-side sessions altogether and just have a two token cookie that gets checked in the db each request for information that requires auth?
Obviously slightly slower because of the extra query each request.
 
@m59 performance: you have to dig in the database to get whatever data that you could store in a session instead
 
m59
2:58 PM
More secure without, though
 
why would it?
 
m59
If the cookie gets stolen, it would likely be detected immediately.
 
You only replace a session ID with two session IDs
 
m59
It's the constant check that makes it more secure
 
uh, what?
 
m59
2:59 PM
The user and hijacker would both be logged in until they close the browser (session)
with the cookie, they would both get kicked out as soon as one of them makes another request
 

« first day (1015 days earlier)      last day (3936 days later) »