« first day (906 days earlier)      last day (4049 days later) » 

8:00 AM
for what purpose? You could add it as a data-attribute
 
@JanDvorak this is how I'm creating a td element dynamically $('<td></td>').html("<img src='../images/accept.png '><input type='hidden' value='true' >").appendTo(row); now i need to assign a column number to this "td"
 
@DineshVenkata you'll need to count your cells manually
or read the column number of the previous cell
 
user1125394
gotta catch em all
 
Morning everybody
 
Morning deep
 
8:04 AM
Mind giving me a hand?
 
I need mine.
 
I would rather keep it, but I might be able to help in a different way
 
Linux 3.9 is approaching its release! :)
 
deepschool.jaberwokkee.kodingen.com/~/jimmy.htm this is a page on my site, if you put in a hex code it outputs the inverse and to complimentary colors, how do i get the three to be part of a theme?
 
@JanDvorak my problem is very simple I want to display a particular image in a column if a condition is true and display the other image if its false.
 
8:07 AM
1
Q: Books/sources on inner workings of JavaScript

acrmuuiWhen I started studying C++ a couple of years ago, a lot of the books and texts I read did a very thorough job of explaining, how the code written would translate into concrete operations in the hardware (like dynamically memory allocation, pointer arithmetics etc.). I found those explanations ex...

 
@DineshVenkata you could use the :nth-child pseudo-class
or add a class to one particular column
 
@DineshVenkata Yea, for what you're trying to do, your approach sounds horribly complicated.
 
@JanDvorak would be great if you can provide me with a link?
 
$("td:nth-child(3)").addClass("third")
!!/tell dinesh jquery nth-child
 
@JanDvorak @SOChatBot thank you
 
@DineshVenkata The SOChatBot is a bot as the name implies ... there's no reason to thank him.
 
@OctavianDamiean the bot should reply anyways :-)
> No need to thank me, I'm a robot
 
Teach it!
 
That's actually not a bad idea.
 
8:11 AM
how though?
 
Well, that's simple.
More or less. In theory.
 
I am rubbish with the bot. Show me?
 
just a simple code change.
 
@OctavianDamiean got it
 
@deep It wouldn't be a user taught command.
 
8:13 AM
!!/echo stop
 
@JanDvorak stop
HAMMERTIME!
HAMMERTIME!
 
user2157210
!!Where am I?
 
user2157210
Morning
 
^^^ this is why user-taught chat responses would be a bad idea
 
cool
 
We0
8:14 AM
Morning people
 
!!/forget stop
 
@OctavianDamiean Command stop does not exist.
HAMMERTIME!
 
user2157210
if this fucking bot wouldnt ignore me
 
user2157210
!!Where am i?
 
@Nexxpresso You iz in mindjail, I presume
 
8:14 AM
Oh wait ... that was an echo ...
 
user2157210
@JanDvorak yeah but normaly he tells me
 
We0
So I have a fancybox loading via ajax
which works perfect
 
user2157210
!!/hang stop
 
HAMMERTIME!
 
@Nexxpresso he hates you for a reason
 
user2157210
8:15 AM
i know
 
We0
then in that box there are some elements that need some js
 
user2157210
he is from NK
 
We0
which is in the original page
 
var tabs = document.getElementById("tabs")
tabs.style.color="#"+newcol2
what have i done wrong
 
We0
no ;
 
8:16 AM
are you trying to change the foreground color?
 
We0
so
 
the color of the tabs
 
We0
as i was saying
 
Is newcol2 a string of six hex digits?
 
8:17 AM
@deep The background or the foreground color?
 
We0
Ok let me rephrase question
When ajax loading a page with fancy box
 
the yellow bit
 
We0
and you need all the js on your page to rebind on the newly loaded elements
how would you do that
 
@deep That's the border color ...
 
@We0 can you use event delegation?
 
user2157210
8:18 AM
call the function rebind()
 
We0
/*
     * password field behavior
     */
    var dummyPass = $("input[name='dummy-password']");
    var textPass = $("input[name='text-password']");
    var realPass = $("input[name='password']");
    dummyPass.focus(function(){
        $(this).hide();
        $(this).parent().find('.show-hide-password.active').show().focus();
    })
    textPass.val($(this).val());
    realPass.val($(this).val());
    $(realPass).add(textPass).keyup(function(){
        if(!$(this).val()) {
            $(this).hide();
well that is the js
 
!!/tell we0 jquery on
 
.on() is the preferred function.
 
We0
just call rebind(); after ajax load?
 
We0
8:19 AM
I know jquery on
not my js
it is shit js
dont feel like rewriting everything
just want to rebind it
 
First of all there is no rebind() and bind() is not the preferred way.
 
We0
I know
:/
 
you would have to call the binding code again
 
@OctavianDamiean what would it be then? tabs.style.what?
 
We0
ps that piece of code is in document.ready()
 
8:21 AM
@deep tabs.style.backgroundColor?
 
@deep That's simple. Dash-cased properties become lower camel-cased properties.
 
backgroung for the border?
 
We0
The is about 500 lines of code that needs to be "rebinded"
 
@deep tabs.style.borderColor?
 
So border-bottom would become style.borderBottom
 
8:22 AM
@OctavianDamiean Dafu...?
oh ok
 
We0
fuck there is no easy way to do this
 
ill try that then
 
@We0 what if you name your ready callback and call it manually after the AJAX?
 
@We0 Can you create a very simplified version of that in jsfiddle?
 
We0
@JanDvorak Thinking the same thing
@OctavianDamiean I have no idea how to mimic the ajax call in fiddle
@OctavianDamiean and i suck at fiddle
but no worries
I think Jan is correct
thanks for the help guys
 
8:25 AM
@jan borderBottom.borderColor or justborderColor
 
We0
now i have a meeting :(
 
user2157210
@OctavianDamiean function rebind(){ alert("THERE IS REBIND()");}
 
user2157210
meh
 
We0
@Nexxpresso thats ugly
 
@deep definitely not borderBottom.borderColor. borderBottomColor, maybe?
 
8:26 AM
@jan ill try
 
user2157210
Why is this ugly
 
user2157210
is great
 
YESSS!!!
how do i do the rest?
 
@We0 Could be: function ugly() { alert("UGLY()"); }
 
Just in case you'll need it once. This is how you'd fiddle that up.
@deep You gotta look up how all the properties are called on their own.
 
8:29 AM
@OctavianDamiean the three bootom borders have the same id, only 1 is changeing
 
user2157210
@OctavianDamiean jsfiddle.net/Z4Eb6/1 fixed
 
@deep WRONG!!! duplicate IDs are wrong
 
@Nexxpresso Did anybody tell you that you're a moron?
 
user2157210
what has dystroy to do with this
 
user2157210
8:30 AM
@OctavianDamiean rlemon did once ... once
 
Name?
 
@Nexxpresso he starts with D :-/
 
<ul name="tabs">?
@ir-g hi
 
@deep what about <ul class="tabs">
 
@deep You should really start with the basics I think.
 
8:31 AM
^that
 
Ahh. will i have to change the css?
 
user2157210
name would work i would use class
 
@deep I would recommend this. codecademy.com/tracks/web
 
@JanDvorak I'm almost to the point of throwing my monitor, I need some assistance ..
 
user2157210
Basics are worth for everyone
 
8:32 AM
@OctavianDamiean ive done it.
 
@XCritics Don't do that. You'd get arrested.
 
Alright, then maybe that one sucked.
 
user2157210
lol SK wants own nukes now
 
Japanese will get radioactive again?
 
There was a MDN based HTML/CSS introduction but for the life of me I can't find it ...
 
user2157210
8:34 AM
welll if it goes on like this
 
user2157210
I dont see why SK needs nukes tho
 
user2157210
Just build some nuclear plant near the border to nk and bomb it down in emergency
 
Well that escalated quickly
 
nope
 
8:36 AM
HA! Found what I was looking for! developer.mozilla.org/en-US/learn/html
@deep ^
 
@JanDvorak https://gist.github.com/anonymous/1e065b5bf9173ab15e0f
It makes no sense, if my rememberToken cookie (which is set at login) is set, then the post request hangs forever then fails, if I delete the cookie and do it, it works as intended
 
That might be more helpful.
 
@XCritics I don't know mongo, sorry
 
user2157210
Georgia anyone ever heard anything of georgia?
 
@JanDvorak that's ok, just skip over the mongo parts, just see if you see anything wrong, or why 1 single cookie, messes up the post request
 
8:38 AM
@Nexxpresso Yea, what about it?
 
which that cookie, isn't ever called, makes no sense
 
user2157210
Their military budget is over 20% of their GDP
 
user2157210
but still they suck ??
 
@XCritics what if you set the cookie in your browser and then visit /admin.html manually?
 
@JanDvorak if that cookie isn't set, then I Can't view the page
and it works fine on localhost, but on nodejitsu, it does this, so i dont know if its my code, or their system
 
8:44 AM
I guess the server (might be the server code) is to blame
 
@Nexxpresso What Georgia? Is that a joke?
@BenjaminGruenbaum Ah I see
 
So, Cascading Attribute Sheets, like CSS only for tag attributes, opinion?
 
@Nexxpresso What the hell dude?
This is a JavaScript chat.
We should not go too deep into politics and the like.
 
user2157210
document.writeln("why not")?
 
8:55 AM
@Nexxpresso, you strike me as very opinionated, and that's fine, but at the moment you're just blatantly trying to offend people.
 
that's not JavaScript, and again you're trolling, and a bigot, and an idiot
He's not offending anyone, he is just being stupid
 
user2157210
Arguments like you are an idiot will always have the strongest impact
 
@BenjaminGruenbaum document.writeln is a real (albeit terrible) method
 
He offended me.
 
@JanDvorak Which is a part of the DOM, and not the programming language :P
@Nexxpresso No, I'm not arguing with you, I'm talking to the rest of the room.
 
user2157210
8:57 AM
@phenomnomnominal How did I offend you?
 
Also, I don't feel like I should let you express yourself, I have no obligation to do that as you're just being an asshole now...
If you have anything to say about JavaScript you're welcome to
 
Saying things like "Israel is the evil of the world" is ignorant, generalised and fucking offensive.
 
We will not have your hate speech here, not against the US, not against Georgia, not against Israel, not against Arabs and not against anyone.
 
Who do you think you are to declare that an entire country of people are evil.
Well you didn't say that. And do you really think "they are evil" sums up the intricacies of that conflict? You're being stupid.
 
We've had people here from all around the world, Palestinians from Lebanon. Iranians, people from the rest of the world and plenty of them
We always got along
6 messages moved to Trash can
 
9:01 AM
The Internet is a public forum. It is for everyone, and you don't get to dictate who is or isn't evil. Keep your opinions to yourself.
It is. And everything said in this chat is googleable
 
Just a quick question. Where did you read that Georgia spends 23% of their GDP on military?
 
You are a bigot, the people of this room don't have to tolerate any of your behavior.
7 messages moved to Trash can
 
You didn't "butthurt" someone, you are being ignorant and racist.
 
user2157210
How am I racist?
 
9:03 AM
We are not having this discussion, so I'll tell you what
 
You have generalised opinions about groups of people, based on where they come from.
 
user2157210
@OctavianDamiean Most reliable source ever of course the holy Wikipedia
 
user2157210
9:04 AM
@phenomnomnominal Where did i state this?
 
Also, you don't know your history, or politics at all. You're just a misinformed kid
 
user2157210
I even said I do not judge people
 
user2157210
someone trashed that of course
 
This is wasting our time. Stop being a dipshit, or we start flagging.
 
@Nexxpresso "Percent of GDP 5.1% (2011)" that's from the Georgian Armed Forces article.
 
user2157210
9:05 AM
Die Liste der Streitkräfte der Welt beinhaltet die Streitkräfte der souveränen und international anerkannten Staaten der Welt sowie deren Mannstärken und Militärbudgets auf möglichst aktuellem Stand. Darüber hinaus werden Informationen wie der Status als Nuklearmacht, der Mobilmachungszustand der Streitkräfte, Besonderheiten wie ein Milizsystem, die Mitgliedschaft in Militärbündnissen wie der NATO und der Anteil der Militärausgaben am BIP in Prozent dargestellt. Die angegebenen Stärken bezeichnen die Friedensstärke der jeweiligen Staaten, Reserven bzw. paramilitärische Einheiten werden...
 
That's besides the point though
You either stop belittling groups of people, or we start flagging your messages as offensive
 
I'm about to start offering people money through paypal for answers :P
 
This chat is a constructive place.
@XCritics I'd bite (not really :P)
 
$20!
 
user2157210
9:08 AM
@XCritics What is your problem
 
So, Cascading Attribute Sheets, opinion?
 
user2157210
without money involved
 
@Nexxpresso do you know Node.js?
 
@XCritics I'm in :P
@Benjamin what's your idea?
 
@phenomnomnominal haha all night I've been asking for your help!
 
user2157210
9:08 AM
I am sorry didnt look into that more than a second
 
@Nexxpresso From the CIA Factbook you linked me to. "Military expenditures: 1.9% of GDP (2010 est.)"
 
@X I've been at uni all day!
 
user2157210
@OctavianDamiean i can see that too i just took wikipedia as source
 
@phenomnomnominal alright, $10 or you do you wanna do it for free :P?
 
user2157210
it seems to be some old 2007 number in wikipedia
 
9:10 AM
@phenomnomnominal It sounds very interesting, but the mailing discussion seems to raise some valid points. I think it makes sense and cascading is a lot of fun but the usage is limited. It's great for embedding stuff in the page like video plugins and such
 
@Xcritics I'll do it for free, I'm not a codewhore
 
user2157210
@OctavianDamiean Ill give you that point seems like its some odd number
 
@phenomnomnominal thank god, ok one second, let me get ready to bloowww yoouuurr minnnddd
 
user2157210
Does anyone have a wikipedia account
 
@XCritics, sorry, was on my phone, reinvite me to the room
 
9:13 AM
@Nexxpresso why do you need one?
 
user2157210
@JanDvorak I just created one to edit the stupid 23% gdp of georgia to 3
 
you can edit even without an account
 
@Mr_Green unless the page is protected
 
Ya maybe, never faced that situation :)
 
user2157210
page is protected for new users
 
user2157210
9:15 AM
..
 
user2157210
its so utterly wrong
 
user2157210
even the source they state for it has different numbers
 
Hievery body
Any one Having Idea on Android webview ?
 
Simplicity is the ultimate sophistication. [Leonardo da Vinci]
 
9:43 AM
Has the military spending discussion been canned?
Work means I get big latency spikes having nothing to do with the network
 
Why?
 
o/
 

« first day (906 days earlier)      last day (4049 days later) »