« first day (1628 days earlier)      last day (3323 days later) » 

DON
7:00 AM
I want to hide only textbox on page load
 
That fiddle tells me nothing. It syntax-errors, and it doesn't even try to hide something
 
user1648409
Bah, someone can tell me why i fail at encapsulating my code here pastebin.com/cmPSLC9G to an OOP style here pastebin.com/UHPWyV70 so that i can instantiate this thing several time on the same page? ... im horribly failing at this
 
DON
Its working when i write $('#text_id').hide() inside a button click event
 
when it isn't working, then? You can't hide something that doesn't exist
 
DON
What i meant that when i use hide code inside a button click event, the textbox will hide when i click on that button. But i need to hide textbox on page load.
 
7:09 AM
@DON display: none;
 
DON
Its not working dude
but visibility:hidden is working
 
Is there an inline style on the element?
 
@monners except the one given by jQuery, you mean?
@DON show us a fiddle showing it not work, dude
 
^^^ That
 
DON
okay
 
7:16 AM
The only reason display: none; wouldn't work is if there's another style overriding it
 
DON
@monners no inlines
 
textarea { display: none; }
 
DON
.txtbox_amount{
width:80px;
display:none;

}
 
If that doesn't work then there's something overriding it. Should be pretty obvious what's doing that in the dev tools
 
DON
$('#txt_id').addClass("txtbox_amount");
 
7:17 AM
^^
 
@DON Is that the correct class? You were targeting an ID before
 
DON
yeah
 
Yeah, you're gonna have to put together a fiddle
 
DON
<input type="text" id="txt_id" value='+item[0].toFixed(2)+'>
 
7:19 AM
@DON Dafuq is in that value attribute?
 
DON
Actually its a for each loop inside that i am dynamically bind some text box with server side value
 
sigh
 
do you have duplicate IDs???
 
He must
And the plot thickens
 
26 mins ago, by Jan Dvorak
any chance you have duplicate IDs?
 
DON
7:21 AM
for textbox?
 
for ANYTHING!
 
for EVERYTHING!
 
DON
but its text box are hiding when i write code inside a button click
 
You're doing it wrong
Don't use duplicate IDs
 
DON
on page load its not hiding
 
7:23 AM
Put this in your stylesheet, right at the end...
 
no excuses. Fix your IDs, then come here.
 
DON
@monners Dude then what about button click
 
textarea { display: none !important; }
 
DON
@JanDvorak ok
 
@DON no excuses. Fix your IDs, then come here.
@monners ew
 
7:24 AM
@JanDvorak lol, I know, right?
Man, you wouldn't believe some of the code I had to work on today
 
DON
Okay dude
@monners thanks for your help its working now
!important its made the trick
 
oh g*
 
Fuck.
@DON Dude, that wasn't a solution. That's like killing a spider with an atomic bomb
 
7:40 AM
@DON Instead try this body textarea { /* styles here */}
or better would be to add a class
 
1:30 left until leaving work
do you guys ever work overtime?
 
whistles, walks away before more advice arrives
 
I work undertime
 
DON
okay
cheers
 
plan for tonight: eat some dinner (protein rich) -> workout -> wank -> dota 2 -> sleep early
 
7:42 AM
Ummm, ok...
 
I still play dota
 
do u?
 
because my laptop doesn't support dota 2 graphics :D
yeah with computer always
 
Which hero do you play the most?
 
axe
there are many but mogul kahn is the best of the best
 
7:44 AM
BTW, im really good at Dota, I can probably beat you using mouse board
 
nah I am indisputable
I always win with insane bots
 
@Mr_Green [status-disputed]
 
didn't get it..
 
Do you go for battle hunger or helix build?
 
both
assault cuirass, vanguard, mask of death
aghanim
 
7:46 AM
mask of death? why?
 
just in case
 
I like getting shivas, dagon and shadowblade
 
that will be great for Intelligent ones
not for strength
 
I can just shadowblade a guy, use taunt, shivas, dagon then finish off with ulti
 
7:48 AM
anyway, it differs from style of playing
yeah great
 
Yo, you sound like I can probably beat u using mouse board + no numpad + 7 inch screen handicap.
 
Hi, I've got an audio file on my website which can be activated by

<br><span id="audio" class="mediaAudioFacade" data-sources="some_audio_URL"> </span>

However, I'd need to have multiple (let's say 2) such audio-files on a website. So this can be done easily by adding

<br><span id="audio2" class="mediaAudioFacade" data-sources="some_audio_URL"> </span>

However, then, the javascript-audio-player-gui's will become layered on top of each other ... and they both play at the same time as well; creating chaos.
 
I have 5 years exp
so probably no
 
@VincentVerheyen which audio player?
 
@JanDvorak Thanks for the reply, I'll look into this.
 
7:53 AM
You should probably copy "GG" in your clipboard before you start a game with me so when you are about to rage quit, you can just simply paste it from clipboard.
 
@JanDvorak | It's just the regular "HTML5 audio player", if that is not layman gibberish I just invented ... The code I am using is largely the work of user "undefined" @ stackoverflow.com/questions/28095074/…
 
and you should not make silly excuses that Internet is down or need to go outside when your hero is getting beaten hard
 
@VincentVerheyen I'm pretty sure that just a span with a special ID and a data attribute won't create any audible sound in the browser by default.
Oh. So you want us to reverse engineer Undefined's code and fix his CSS?
 
@JanDvorak | =D Yea, well, that's where the JavaScript comes in. "undefined" also created a demo @ jsfiddle.net/qudx64so/22
 
I'll pass, sorry
 
8:01 AM
No problem, I was just thinking this over. Thanks for the replies, anyways.

Update & relief: I just noted there is no fix needed (add an explanation in a bit) for my specific application.
 
Yo, sorry for late response. I think I can even beat u using stylus
 
@JanDvorak My application is the following: using this code I create interactive audio-text transcripts. There is a main-page for transcription (like this one http://www.vincentverheyen.com/node/3), where; before getting public; the speakers can correct the unclear transcriptions.

However, I also create a "comment" per speaker, so that they can easily see where there is correction needed per user. But, when they want to reply to this, the comment is opened in another page -> and there: the 1-liner which I presented above, is not present. -> so I would need to add the one-liner inside of th
 
@VincentVerheyen cool, a pentuple ping for a message I don't even care about.
 
@JanDvorak | I like your honesty, not a problem at all. =)
 
 
8:14 AM
Can you connect ends of your thumb and middle finger around your wrist?
 
Yes, it's a yoga pose; it's called: packaging the sausage.
 
yeah
My wrists never grow no matter how hard I workout
 
You need to spend more time on your computer: mousing and work out using your keyboard as well: 12 reps & then change to your mouse again.
 
Thanks
 
I'm just kidding hé. If you really want to; I'll guess you can grow your muscles, right? It's actually quite important, I hear from an exercise MOOC; especially as you grow older.
 
8:20 AM
Yeah
 
You can kind of see it as fighting against time, since; there is a statistical law which correlates age with the replacement of muscle by fat.

EDIT: @EnglishMaster Lol.
 
@BenFortune old
 
@BenFortune That's nice. I always thought mobiles are very dumb devices; I like to idea in the 2nd picture of "searching for mouse". When there would be a keyboard &/or mouse available; that would greatly upgrade a mobile phone.
 
I heard from a guy working at Samsung that they have developed their own development life cycle, project life cycle, QA method, testing and everything
So things you've learned at uni are especially useless if you get a job there lol
 
I never heard anything from him because I never met him
 
user1648409
8:54 AM
Is there any way to call a function X several time each with a different scope so each function call doesn't mess with the others even if it is the same function?
 
yeah use "new" constructor
new myFunc(value);
 
9:47 AM
Is there any reason to use toLowerCase instead of toLocaleLowerCase when transforming a string? It seems the latter would be always the safer choice
 
Hey can someone help me here? I'm trying to create a RegExp expression that matches any character between brackets [ ], without including these.
I've come up with /\[(.*)(?=\])/, but the first bracket shows up in the matches..
"[33]".match(/\[(.*)(?=\])/g) // ["[33"]
 
@Catgocat will there be more square brackets or nested ones in a single string?
 
No there won't be any
 
@Catgocat then just use split.. no need of regex.
YourString.split("[")[1].split("]")[0]
 
But I am doing a challenge and I need regexp
xD
Oh found it
RegExp has a positive look-behind (?<=[)
didn't know that Oo
 
9:57 AM
but I think javascript doesn't support it
 
yup :/
 
@Catgocat /[^[]+[^\]]/
 
@OliverSalzburg Will have false-positives: "33]".match(/[^[]+[^]]/)
 
I love to write regex where you need to match characters which are part of the regex syntax :D
@Catgocat Aw :(
 
It might be impossible though.. without the positive look-behind implementation
 
10:05 AM
I faintly remember from Mastering Regular Expressions that you're supposed to be able to substitute lookahead and lookbehind with other syntax
But I hardly ever use those and I don't remember the details from the book either
 
@jAndy wh... is that some kind of a joke?
 
well.. it might be because it's the 1st of April, but I'M GOING TO BELIEVE !!!!
 
o/
 
10:25 AM
\o
 
how are you doing, Andy?
 
@jAndy I don't trust CERN any day of the year
By this point in the timeline they probably already have a working time machine.
@Zirak
 
The precise point in the timeline doesn't matter, only the fact there is one, when it's about a time machine
 
Is it even possible to talk about a timeline at this point?
 
@JanDvorak Think about it like a big ball, of timey wimey wibbly wobbly... stuff.
 
10:36 AM
As long as some statue doesn't decide to kill me by staring at me while I'm not looking... can do.
 
anyone...what does this means: undefined is not a function
undefined of what?!
 
@JanDvorak The fun thing is, you can't prove there isn't an angel behind you right this instant.
 
@Japa this means you offended the gods
 
It means you're trying to call something that isn't there
 
@Japa you tried to access a property on an object and call it as a function, but it wasn't there
 
10:38 AM
you have to make a ritual sacrifice
 
@Japa You tried to call something as a function, but that something wasn't defined
 
pick one function in your code and delete it
 
!!> fooWhichIDidNotDefine()
 
@SecondRikudo "ReferenceError: fooWhichIDidNotDefine is not defined"
 
@SecondRikudo fail
 
10:39 AM
i´m trying to bind a kendo ui grid to a custom popup..and it shows me this...i have the EXACT same code for others...but on this one it says this..
 
This is a nicer version for the same error ^
 
!!> {}.foo()
 
@BartekBanachewicz "SyntaxError: expected expression, got '.'"
 
lol what
 
!!>({}).foo()
 
10:39 AM
!!> undefined()
 
@Meredith "TypeError: undefined is not a function"
@JanDvorak "TypeError: (intermediate value).foo is not a function"
 
Dipshits
 
@Meredith that's cheating
 
oooh. fancy arror message. Where can I get these?
 
!!> var foo; foo()
 
10:40 AM
!!> var f = undefined; f();
 
@BartekBanachewicz "ReferenceError: assignment to undeclared variable f"
@SecondRikudo "TypeError: foo is not a function"
 
ok...thanks you all fort he quick answers
 
@JanDvorak I think chrome already does them.
 
@BartekBanachewicz "TypeError: f is not a function"
 
does anyone here is working with the kendo ui components?
 
10:40 AM
of course not it's undefined lol
 
!!>({}.foo)()
 
@JanDvorak "TypeError: (intermediate value).foo is not a function"
 
@JanDvorak we lost with the error messages
I give up
 
@BartekBanachewicz THE ERROR MESSAGES ARE TOO HELPFUL
 
10:41 AM
:D
 
I can totally see someone opening a bug in chrome "I tried to explain "undefined is not a function" to a noob but chrome doesn't have them, bring them back!"
 
Ok... it means you're trying to call something that isn't there and the environment doesn't know where it isn't.
 
And quoting the bible while he's at it
2 days ago, by Second Rikudo
https://bugzilla.mozilla.org/show_bug.cgi?id=765645 Oh LAWD
 
What are we trying to do ?
@rlemon pure css version of an amazing javascript library you built codepen.io/darkyen/pen/ogOLPG
 
What we do every night @darkyen00. Try to take over the world!
 
10:43 AM
@SecondRikudo I watch porn, and ...
 
@darkyen00 SEIZURE IMMINENT
 
@SecondRikudo proudly ported siezure.js
 
@darkyen00 I feel a great disturbance in the force as if millions of web pages suddenly became opaque
 
@JanDvorak MILLIONS of exciting, engaging, content-filled website OVERNIGHT lost all of their BOX-SHADOW
This is UNACCEPTABLE
 
@JanDvorak Must you feel so, headache you having.
@SecondRikudo watch what i do with it.
making it worse.
 
10:50 AM
 
and now this ... is to go further beyond rraawwwwwww (hidden dbz reference)
now ?
 
gif from Second Rikudo was moved
 
@CapricaSix that was beautiful.
 
11:22 AM
For anyone interested in Kerbal Space Program: youtube.com/watch?v=EWMPS8ji2GA
 
takes 8 seconds to rebuild.
 
can I do soething like this in jquery: $(cached1, chached2, cached3).addClass('active'); ?
 
Are cached just jQuery objects?
 
are cached1, etc. jquery objects ?
 
11:31 AM
no, they are DOM nodes
 
$(cached1).add(cached2).add(cached3).addclass('active');
 
does passing an array work?
 
I don't think so
 
@JanDvorak first thing I tried
 
I'm wrong...
jQuery( elementArray )
elementArray
Type: Array
An array containing a set of DOM elements to wrap in a jQuery object.
 
11:32 AM
passing a jQuery object does work, so an array should as well.
 
[17:04:22] Bundling main.js...
[17:04:30] Bundled main.js in 7.45 s
Darn it
 
You must change your build chain
 
it goes on building every single file
when i update a single file, unexpected behaviour by babel.
@dystroy educate me ?
 
Well... I would be thrown out if I'd suggest to stop using babel :)
 
11:39 AM
What's the alternative? Other than traceur which requires a dep
 
But really, if making your JS files takes more than one second it's a big problem
 
@dystroy I cannot believe
 
@BenFortune Not write ES6 yet, I'm guessing
 
that nobody has figured out
a way to compile only the updated file :-/
 
Seriously, compiling even 100 files should not take 1 second...
@SecondRikudo Yes, my approach is to use ES6 features when they're natively available in the 2 engines and optimized enough.
 
11:42 AM
babel /Users/abhishek/code/mom-call-center/app/scripts/partials/SelectSuggest.js +26ms
babel /Users/abhishek/code/mom-call-center/app/scripts/partials/SelectSuggest.js: Running transformer strict +10ms
babel /Users/abhishek/code/mom-call-center/app/scripts/partials/SelectSuggest.js: Running transformer _validation +0ms
babel /Users/abhishek/code/mom-call-center/app/scripts/partials/SelectSuggest.js: Running transformer validation.react +2ms
babel /Users/abhishek/code/mom-call-center/app/scripts/partials/SelectSuggest.js: Running transformer spec.functionName +1ms
babel /Users/abhishek/code/mom-call-center/app/scripts/partials/SelectSuggestItem.js +268ms
^ lol
 
mom-call-center...
 
SelectSuggestItem is 1/20th of size of SelectSuggest
@dystroy codename for something
 
(3 engines, I should not forget Nitro, I have many Safari users...)
 
11:56 AM
did someone say engine
 
12:15 PM
looks neat, is that vivaldi's new engine ?
how much did it score on SunSpider ?
 
12:45 PM
I got fired
april fools
hurhuehuehrurhru
 
Wow, you had us going there. o_O
 
i was about to jump off a bridge
 
I had already called the party planners :(
 
You would throw a part because someone got fired? That's awfully awful of you.
 
we can still have that party. When and where?
 
12:47 PM
@NickDugger not just anyone, only for you big boy
 
Hi all
 
@Andrew 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 am just investigating nodejs if it's ok to combine it with my API server which I have in Java, basically I have all business logic implemented and working I am missing just the guy, I thought doing front-end using java is not really a natural way of doing it, so I thought I could use maybe node? Is this a common scenario of using it?
 
node is not for the front end
 
12:50 PM
Obviously I went long way to learn Java while building the current thing, so there I would need to go long way to learn node
I am looking at Express now
It seems to work fine in Nodeclipse
 
are you saying you want Node to be the middle guy, or you want it to be the front end? Because as Roberto said, Node is not for the front end.
 
In software engineering, the terms "front end" and "back end" are distinctions which refer to the separation of concerns between a presentation layer and a data access layer respectively.
So that I am refering to presentation layer
 
Yes, thankyou for the lecture. Node is still not for the front end.
 
what do you want to do?
you can make Node take care of the markup-generation for your page, if that's what you'd call frontend here, yes.
 
basically I'd like to develop a front-end which is basically a set of well "classes", which basically handle the generation of the html for the web browser
 
12:54 PM
A Java-Server could do that too though
ok, yeah, you can use whatever seems to be a fit to you then
Java, Python, PHP, Node... whatever floats your boat
 
Nice april fools
 
well, in java this is not quite optimal for me because there are very specific patterns were there's plenty of overhead and boilerplate, even with Grails, I dont think that their approach would suit me either
 
@RyanKinal Omg are u real ?
 
I like some of the PHP systems
 
yeah, Java is a mess. It's been ages since I used it for that stuff
 
12:56 PM
for example, Silverstripe CMS is very nice
 
don't plan on doing that either in the future
 
Java: still better than PHP
 
but there arent CMSes like in PHP for java
I just need some project like Express to start with, and simply grow the GUI with controls like nice input fields, ajax queries etc
and some template engine, caching etc
 
yeah, use Node for it, why not
 
@GNi33 that's what Hitler used to say
 
12:58 PM
In java I have now pretty much mature engine and I just miss GUI a lot, and I havent done anything yet with it, but I have everything exposed via REST API no issues
and there's database behind it as well - MongoDB with the new storage engine is now very nice
 
@BartekBanachewicz pretty sure he preferred Grails though, as Node was extremely unstable still back then
 
@Andrew is it already comparable with Postgres in speed
 

« first day (1628 days earlier)      last day (3323 days later) »