« first day (791 days earlier)      last day (4154 days later) » 
00:00 - 18:0018:00 - 00:00

user1125394
12:11 AM
how does var c=new Date() and var c=Date() differ?
 
0
Q: IPA Keyboard for Linguistics.SE

Manishearth This script adds share buttons to the "link" box. (They don't come immediately, they are spawned by mouseover) Installation Click here to install. Will only work in Chrome or Firefox (the latter requires Greasemonkey). See this page if you have trouble. Source Usage If you click the litt...

 
@cyril Date() gives you a string, equivalent of new Date().toString()
 
user1125394
12:27 AM
thx
 
@twiz Yep, that pretty much sums it up
 
1:18 AM
@twiz well it is web, and it will be online (eventually) but first it'll just be whatever webkit browser I can get my hands on and node.js running the HMI layer kinda
think automated control systems. shitty HMI's compared to something you can produce on the web.
most are java.
some are just ascii on a console.
some are winforms on xp embedded edition.
I want to use node.js to revolutionize HMIs in the automation industry ;)
it's small, light weight, and does everything I need.
 
2
Q: Bring back the Bold!

ManishearthOur insidious overlords have made some numbers on the page thinner. This script feeds the numbers a sandwich to get them back to normal size. Installation Click here to install. Will work in Chrome or Firefox (the latter requires Greasemonkey). See this page if you have trouble, or want to in...

 
1:49 AM
@rlemon Is it just me, or are links in the demo not working?
It makes no sense...almost no sense
aha!
 
Sincerely,
DR. Christian Zack,
Head Customer care Service
South African National Lottery Organization/ Microsoft
PLEASE REPLY TO EMAIL:saclaimingdpt@e-mail.ua
Seems legit
 
2:40 AM
Microsoft own a nation :O
 
2:58 AM
Can some one please explain why the first option is better than the latter here: jsfiddle.net/HEged/9
 
3:08 AM
Sorry, I am busy opening huge patterns in Conway's Game of Life, fire a single glider at them and watch them stabilize
 
@Dave it's controversial. try searching things like "innerhtml evil" or "innerhtml bad"
 
its almost contradictory in programming that more lines of codes is better than less
lol i google innerhtml evil and get jQuery answers
 
Because obviously less lines signifies better quality
 
less processing time for one
if i had to append a ton of stuff thats going to be over 50 lines of code in minutes
 
Look, innerHTML is the lazyman's way. Until not long ago it wasn't standard (shame it was made standard), but most importantly, it completely breaks the js/html separation.
 
3:11 AM
i don't see how
 
When you do js, you shouldn't worry about html or css. You only care about the DOM.
Just like you don't inline js in html, you shouldn't inline html in js.
 
okay but i'm not seeing any issues using innerHTML other than an opinion
 
@Zirak although I kind of agree, createElement basically does that as well.
 
which is meaningless.
 
There are two main issues.
 
3:12 AM
Opinions are meaningless?
 
yes
i want factual reasons
not opinions like its "lazy way"
 
Your world must be so nice
 
i dont make js to have people's approval.
i do it correctly where it holds legitmate reasons.
code == logic so should your approach to it
 
"Correctly" is not entirely factual.
Yes, and bad logic is bad.
 
works = correct. doesn't work = wrong
don't confuse correct to "more efficient/quicker"
 
3:13 AM
uhu. So stairs leading up to a window are correct stairs.
 
1) When changing the innerHTML of an element (A) and destroying other elements (B) that were previously children of that first element (A), any reference you had to that element (B) is now destroyed and the variable you stored that reference in is useless.
 
Cool
 
if your destination is a window yes.
 
If your destination is a window, make sure it's on the ground floor
 
ok - i get that Nile.
 
3:14 AM
2) When changing the innerHTML of an element in an effort to append/modify something, you're not actually appending/modifying. You're actually rewriting the whole entire HTML of that element
(forcing a re-render on the browser's behalf)
 
If your basis of thought is "I don't like your brain", then sorry, can't help you there. I got tired of technicalities. I like programming now, not just coding.
 
@Nile really? I didn't realize that.
 
ok so lets say i have a div like<div id="test"></div> nothing inside it want to add 2 lines of code ...it will re-render the entier div element + its innerHTML ?
 
@Nile nvm what I said, I misread what you wrote... ha
 
And programming has niches filled with weird beings such as "relative" and "biased" and "opinionated".
 
3:17 AM
i don't care for opinions. i only care what is best in facts when it comes to make stuff. if your opinion is to make a bridge out of jelly that doesn't make it something ill do.
"lazy" is not a reason in my book
 
If the purpose of the bridge is to be eaten...
 
@Dave Don't know...
But, for example:
 
@Dave I think the point Zirak is making is that there is not an inherently right answer to your question
 
but then its not a bridge.
 
Why not?
 
3:18 AM
bridge is for transportation not eating so its not a bridge its a meal/dessert in the shape of a bridge
 
document.getElementById("blah").innerHTML += "Appended text here."; // this won't actually append text... it will just overwrite the old element with a new element that has the same text + some new text
 
@Dave its multitasking...
talented bridge...
 
Bridge is for transportation? Bridges have purposes? I always thought man made up things like "meaning" and "purpose"
If a bridge hasn't "transported" anything yet, it's not a bridge?
 
bridge is a logical way to make shorter routes.
 
So if a bridge makes your route longer, it's not a bridge?
 
3:19 AM
its a bridge but a pointless one.
much like opinions rather than facts ;)
 
Look, you can circle around it all you want. Your question is opinionated so my answer will be opinionated.
 
no i asked for technical reasons why append is better.
 
Ah yes, I always forget, it's the destination that matters, not the way to it. Thanks for reminding me.
I suppose I'll just die now
 
from my ignornace on the subject more lines of code would seem less efficient to process in a browser.
 
Not even remotely true. Complexity is not a function of line-count
 
3:21 AM
@Dave bridges are sometimes good at get things somewhere easier, and sometimes they are better at being a delicious meal. You must choose which is the correct option for the given situation.
 
imma do a jsperf
just for hell of it
 
@Dave it can potentially be less efficient in terms of readability
 
You sadden me. Enjoy pointlessness. I'm going to make jelly.
 
@Dave but not for browser processing
necessarily
 
im only concerned for browser side than readability in this situation
 
3:23 AM
@Zirak please tell me you are going to mold it into a bridge
@Dave well then technically createElement is probably more efficient, but don't overlook the fact that 90% of the time browser efficiency doesn't matter
 
it does for games :P
 
As in small scripts aren't going to appear any different to a user either way
 
my script will be doing it at 60fps
it will add up in the long run if i don't consider it
 
@Dave well for a game I would definitely go with createElement
You may need the variable references to the object anyway
 
createElement is what i went for anyway just so far the script is 84 lines long =/
 
3:28 AM
@Dave the size of the file will only matter when the script is first downloaded, so unless it is absolutely ridiculously large, I assume you wouldn't be concerned with that
 
andrew.hedges.name/experiments/innerhtml scroll to bottom set 10,000 loops n see which one did quickest for you
for me
innerhtml = 600ms
dom = 1057ms
 
hmmm interesting
yea I got something like that
Maybe I am wrong...
and by I am wrong, I mean a lot of information online is wrong.. ha
 
im guna watch my memory use in chrome when i do it this time
10% for innerhtml
24% for dom
 
nevermind, I see why
 
hm?
 
3:34 AM
I think it is because there aren't that many elements added with innerhtml
 
that would make the test some what useless
 
or actually I duno... but that might have something to do with it
Well I mean nested elements
 
for me the innerhtml used less memory and cpu which obviously meant lower ms time
 
Have you looked at this though? jsperf.com/innerhtml-vs-createelement-test
 
running now
what browser you on btw
 
3:37 AM
chrome
the one on that page includes a nested element as well
 
it still won for me
 
lol wtf
 
the difference is much less
what did you get
 
 
Use document fragments
 
3:40 AM
=/ let me re run my test
 
!!/mdn DocumentFragment
 
same result for me again
 
When you change the DOM tree directly, it triggers a reflow/whatever it's called. Add to the document fragment, which isn't tied to the tree, and add the resulting fragment to the DOM
 
@Dave I'm gettting completely random results it seems...
 
3:42 AM
update your chrome maybe
 
@Zirak That is what this one uses: andrew.hedges.name/experiments/innerhtml
@Dave well chrome doesn't say it needs to update
 
hmm dunno then
 
3:59 AM
@Dave I just made this, what do you get? jsperf.com/innerhtml-vs-createelement-test/12
I don't think I made any stupid mistakes in the code, but I probably did ha
for me innerHtml is a LOT slower
!!/urban innerhtml
 
@twiz Y U NO MAEK SENSE!!!???!!?11 No results for innerhtml
 
!!/listcommands
 
@twiz help, listen, eval, live, die, refresh, forget, ban, unban, info, jquery, choose, user, listcommands, purgecommands, define, norris, urban, parse, tell, mdn, beautify, convert, get, github-status, google, hang, learn, gtfo, guesswhat, whyiwonthelpyou, zenmaster, rules, echo, asl, teleportgoat, porn, nudge, spec, stat, todo, undo, wish, _, binary, encode
 
@Zirak Well if you happen to feel like tearing "innerHTML" a new asshole, there is a blank slate waiting for you: urbandictionary.com/define.php?term=innerhtml
 
4:36 AM
 
@twiz 100 element createElement bulk add was faster in that one
 
4:48 AM
!!/zenmaster
 
@twiz ... we'll see, said the Zen master.
 
5:22 AM
hm interesting issue arises with a method i used for appending
 
5:44 AM
!!/zenmaster fuck you
 
@Abhishek ... we'll see, said the Zen master.
 
think i found a chrome bug
 
@Dave ?
 
oh fixed it :D it seems margin-top does not allow decimals in chrome
105.5 = fail
strange though because FF / IE were fine with it. unless those browsers auto rounds the CSS number
@Abhishek i'm going to blame you :P
 
@Dave ?
 
5:57 AM
tell chrome to fix their margin-top please :D
best question i've ever seen : stackoverflow.com/questions/13889678/…
 
6:21 AM
hello @ all
 
hey
 
suggest good site for learning jquery
is there any jquery chat room in stack
 
@parsanamoni @Dave hi
 
hello
@sandeep
 
@parsanamoni jquery.com
 
6:25 AM
@parsanamoni dude have u any experience with sql in javascript
 
it has documentation and tutorials
 
hmm
thanks @deve
@deve do u hv any exp on kendoui
on mobile
 
i don't
 
ok fine
 
 
2 hours later…
8:41 AM
mornin'
 
@tereško hey good morning :-)
 
can you translate ?
i do not even recognize the language ( though i think i should )
 
9:01 AM
@tereško Here its is
Archemdies Law of Love :

When a male heart is immersed in love the amount of loss to studies is equal to the time spent sobbing in the memory of the girl
[tag:indian_humour]
When a male heart is partially or fully* immersed in love the amount of loss to studies is equal to the time spent sobbing in the memory of the girl
 
yeah .. something was lost in the translation =/
 
I don't think so. It wasn't really funny in Hindi either
 
@AmaanCheval it was funny for me (x_x)
probably u never been with an indian girl , have u ?
r4.productionz.ws/chat.html <- WTF ?!?!?! I mean seriously !
 
9:21 AM
What makes you think that?
 
@AmaanCheval what makes me thing what ?
 
Remember: Japalpur and Mumbai are quite different :p
 
k*
@AmaanCheval true (x
but women are the same :P , globally
 
9:32 AM
@AmaanCheval wanna help btw ?
 
10:12 AM
damn
i lost my hair-hoop again .. and last evening i was just thinking "i should stop dropping it all over the house, because it's always missing for the most of the day"
once i found it in the fridge of a all places
-2
A: css border less than 1px

arttronicsYou can still define the border attribute and give it a value of 0 pixels, useful when you can't delete or remove that attribute during manipulation with jQuery. The element would then appear as: .box { border: 0px solid; } To the down-voter: I had a project where when I removed the borde...

 
10:43 AM
@Abhishek Help with?
@teresko Hahahaha
 
:)
is there anybody else in this chat live?
 
11:06 AM
quite an interesting article
 
 
2 hours later…
1:10 PM
Wow when did javascript became a dead paradise :
 
Well, it's a weekend
 
true
@AmaanCheval ever played pen-fight ?
 
Yeah
@Neil was talking about it the other day
 
@AmaanCheval wanna make a small game where u pen-fight ::?
 
Hahaha, seriously?
 
1:24 PM
yes seriously that be leet :P
esp with touchscreen cellphones (x
and then we can take pens to a new -level being simulated (x
 
Hahaha, no, not really :p
 
yes really (x , remember bey-blades ?
but still wanna make something like that ?
 
Like a beyblade game?
 
yes kinda , i mean pens can have an aura , they can have power ups and stuff :P , or special moves!!!!!!!!!!!!
 
Hahaha, wow, you must be bored :p
 
1:29 PM
@AmaanCheval (x not really i am writing a pure C server in libuv
i think binding node.js is increasing complexities for what it will be solely used is broadcasting streams so IPC should do just fine // ipc = inter process communication
but this idea stuck me in class 10 :P when i USED TO MAKE GAMES :P
 
Hahaha, maybe you should let it go :p
It may be fun
But it'd be easier if you just made it as a Beyblade clone instead of making it based on pen fights :p
 
pen-fights will add more feel to it ^^ , though perfect physics will be a real PITA
 
Well, if it's going to be fun, it can't have "realistic" physics, but even the game-like physics we'll need will be tough
I feel like making a platformer for my next game
 
not really we know enough physics , i mean center of mass , laws of motion , rotational & transational motion should do most of it and i know Eng. Mechanics as a plus , oh also Physics Topper throughout School ;D
 
Pen fights would make a silly game if they behaved like they do with real physics
You should make it, I think
 
1:39 PM
will do after tapeer , which is after wiki voice which is after VosCast BroadCaster
 
Hahaha, best of luck :p
 
wikivoice is 60% done though :P , we successfully parse out sentences now and generate hashmaps , trimming of grammer
vosCast is back on 4% :-/ , from 49% :-((
 
Awesome
Whoa, how?
 
re-writing server side
the memory leak just wont go away :-/ and to fix it i made more of those soo yeah re-writing it as a daemon
away from node.js process
node.js will just communicate with it to control it
 
Ah, damn
 
1:44 PM
+ i wont have to take the tension of v8 , slower then a native module but stabler and allows me more control on mem-management :-) so i am happy
 
2:23 PM
0
Q: How do I select specific rows from HTML table using jquery?

Manoj AgarwalI want to select specific rows of a table based on certain conditions using jquery. For example, If a table has 25 rows with a checkbox column to check each row, I want to specify a condition and if that condition is true, then only the checkbox should be checked, for example, 5 rows satisfy tha...

 
2:38 PM
Learnt node-gyp
finally :-)
 
3:05 PM
have to implement that , choice of langauges are C++ and JavaScript
which way i SHOULD go ?
 
hello peoples :)
any ideas about this.. im trying to make the sub menu slide in
 
Dear fuck, why is the .Net community burned flat on data languages like YAML or JSON? No sane library for YAML, and everything on JSON.Net (the only seemingly sane option) talks about turning stuff INTO json, nearly nothing about reading json.
 
user1125394
@Abhishek wasn't you trying also to use webrtc, or is this thing away from browsers?
 
user1125394
o well I don't know that much, webrtc is just a 1 to 1 communication at the moment
 
@cyril away from browser
way away from browser
this is a node.js thing that talks to shoutcast v2
pita is Ultravox 2 its totally unhuman
 
3:18 PM
Finally, found a way to haxor what should've been native behaviour...such a huge library, and not a generic way to dump a JSON string. argh.
 
Why are you doing something remotely related to windoze anyway ?
 
@KirstyHarris here with comments
 
Because the platform isn't up to me...
At first I just did everything with python and added a nice c# wrapper, told them "deal with it". They didn't like it.
 
Yeah, that's obvious, but why ? Do Americans still have to work at 93 ?
s/3/2
 
@dennis... thankyou for this. Im still in the basics of learning jquery :) so i appreciate your comments
 
3:23 PM
It's not really for work, helping out on a project.
 
Okay that makes sense
I'm working on a Life implementation for the bot by the way
Like /life primer.rle 100000 - will print load a predefined file, forward it 100000 generations, create a bitmap of that and upload to imgur or so
 
3:41 PM
 
@AmaanCheval great ! (XD)
 
@SomeKittens awesome!
 
@Abhishek Saw your comment wondering what SomeKittens' account on Facebook was
Pretty sure it's this
 
@AmaanCheval the iOS impl. is buggy though
 
@Abhishek Read the article
> ..and for iOS and Android via the Ericsson Bowser browser.
Have you tried that too?
 
@AmaanCheval no , i am talking about the basic impl. apple did lol
 
@Abhishek In Safari?
 
@AmaanCheval yes
HTML Media Capture
even that my friend is broken
when u explicetly tell that phone to just accept image , it pops out saying : Take Video / Picture
 
4:20 PM
0
Q: Load php file (include) by ajax when click per tab menu

Vô Danh Vô HìnhI want to include 1 php file in "inc" folder in my theme by ajax. By the way i get the ID of "li a" when click per tab. Please tell me what wrong in my code. I'm not good in javascript. Thanks for help. Here my JS code. <script type="text/javascript"> jQuery(".tab_menu ul li a").click(fun...

 
Before I spend ages on a futile mission trying to make it work when it never will: Is there any way to get click to fire on middle click in Firefox? (in vanilla JS)
 
It doesn't?
 
user1125394
any advice on how I could make DOM elements listen for url hash change to add a class to them dynamically, <div id="page1" class="current">1</div><div id="page2"></div>
 
user1125394
hmm onhashchange is a native event, didn't know sorry
 
@DaveRandom Use mousedown. That should work
 
4:29 PM
@AmaanCheval No. Apparently not. Just running a sanity test now, but I'm 99.999% certain.
 
mousedown middle click works
 
@AmaanCheval Yeh I'm just testing that as well. As long as e.preventDefault() behaves as expected it should be an acceptable solution.
...and it doesn't. :-(
 
What are you trying to do?
 
Thoughts on ShoutCast v2 and ultravox v2.1 : TOTALLY PIECE OF CRAZYNESS AND BEST EXAMPLE U CAN EVER GET ON HOW TO MAKE THINGS OVERDONE IT HAS SO MUCH THAT WASNT EVEN NEEDED >_< PUT STRAIGHT INTO THE STREAM.. FFS U ARE JUST FKIN BROADCASTING MEDIA NOT TRANSFERRING CIA SOME DATA >_<
 
@Abhishek Has anyone really been far even as decided to use even go want to do look more like?
 
4:43 PM
@copy Hahaha
 
@AmaanCheval I have a link that opens in a new window regardless of left/middle click. I am now trying to make it switch to the currently open tab (if there is one) instead of opening a second copy of the same page. This is for an add-on so it's not an issue getting access to the info about what tabs are open, it's just preventing the auto-open of the new tab that's an issue. I could just close the new tab if applicable but I'd rather not if it can be avoided.
 
@DaveRandom Hmm, why don't you check if the left or right mouse buttons are clicked, and only then open the new tab? (If I understood what you said correctly)
 
@copy english please ?
 
Oh, wait. You want it to open in the current tab, but the middle mouse makes it open in the current and a new tab?
@Abhishek Exactly
 
Ah read ultravoxv2
 
4:48 PM
@AmaanCheval No, I want it to open in a new tab, but I don't want to duplicate tabs - so if a tab is already open with that page then give it focus, if not then open a new tab. But middle click always opens a new tab and doesn't fire the event, so it will always (potentially) create a dupe tab, and I can't prevent it from doing so.
 
Okay, so do as I suggested earlier
Check for left and right mouse button clicks
If either are true, open in new tab
If not, get access to the list of tabs, and give the correct one focus
 
OOoooh I get you, took me a minute to wrap my head around that one. Yes that should work.
thx
 
No problem
 
Oh now i know why they made UltraVox v2.1 like that
wiki.winamp.com/wiki/… <- See self @AmaanCheval
 
tl-and-didn't-understand-anything;dr
 
5:00 PM
Know what the predecessor can be documented in like 400 words :P
 
5:14 PM
wow...excel, you fucking suck. Seriously? Exporting to CSV breaks utf-8?
 
@Zirak lol
try importing it to openoffice calc and then to .csv
 
OpenOffice works like a charm, so does importing to Google Docs. But I mean...seriosuly?
So seriosuly that I misspelled seriously
 
i need to find a Module pop up which lets me share a page in a new smaller window page inside the the Modal popup and not in a new tab. Exactly as Grooveshark website does. Any idea in this chat? ;)
 
Microsoft stack...you suck. You really really do. That's exemplified by the fact that I need a giganto workaround to import an xls file, your own fucking format, into SQLServer, your own fucking database scheme.
And that's due to the fact that working with xls files WITH your dev stack sucks more than the giganto workaround.
(1)It's not formatted (format it)
(2)You're trying to `eval` an element, not its content
(3)You're using inline js
(4)You have a useless iframe
(5)The button text is meaningless
 
5:35 PM
(6) missing < for DOCTYPE
 
that was a mis-copy from my site, sorry
 
FORMAT YOUR CODE DAMNIT
1 message moved to recycle bin
 
how?
 
1 message moved to recycle bin
 
Also, you didn't tell us what the expected behavior is. This example is pretty simple, but it can be pretty hard to decode the purpose of code that you've already told us doesn't work.
 
5:37 PM
The links at the bottom labeled "help" and "faq" might contain something...
...seriously?
No formatting, no answer
1 message moved to recycle bin
 
the code is meant to collect user input, and then execute it, the iframe and the box wont let me format!!
 
Hit Ctrl+K before sending...
 
<!DOCTYPE html>
<html>
    <body>
        <iframe id="window" ></iframe>
        <script>
            var executeusercode = function()
           {
               var c = document.getElementById("txtbx")
               window.eval(c)
           }
        </script>
       <textarea id="txtbx"> Enter code here </textarea>
        <button onClick="executeusercode()">Hi</button>
    </body>
</html>
Sorry about that, first chat ever y'see
 
ok now...see points 2-5 above.
 
what's inline js?
the button text is just so that the button has an apprpriate size
 
5:41 PM
onClick="executeusercode()"
 
js fragments embedded in html
 
oh, k
im currently testing it using w3schools tryit editor, so i cannot use a separate file
 
@deep Don't use w3schools ...
 
That's mistake #7
 
7) it's in a w3schools tryit editor
 
5:44 PM
Notepad ++?
 
And you don't have to use a separate file, just use addEventListener instead of implicitly doing it in html.
 
what do i do to the eval?
 
You're trying to eval an element, which makes no sense at all. Grab its content; for a textarea, that's theElement.value
 
<!DOCTYPE html>
<html>
    <body>
        <iframe id="window" ></iframe>
        <script>
            var executeusercode = function()
           {
               var c = txtbx.value
               window.eval(c)
           }
        </script>
       <textarea id="txtbx"> Enter code here </textarea>
        <button onClick="executeusercode()">Hi</button>
    </body>
</html>
like that?
 
To get an element's value you first need to get the element
 
5:50 PM
YES! IT WORKS!!!
Now, how do i gwt it to the i frame?
 
Use getElementById - anything else is a non-standard browser behavior
 
*get
<!DOCTYPE html>
<html>
    <body>
        <iframe id="window" ></iframe>
        <script>
            var executeusercode = function()
           {
               var c = txtbx.value
               //var frame = (?)
               window.eval(c)
           }
        </script>
       <textarea id="txtbx"> Enter code here </textarea>
        <button onClick="executeusercode()">Hi</button>
    </body>
</html>
.value of .getElementById("window") do not work
 
Why do you think it should?
 
I've been silly again, havent i?
 
getElementById gets the element, .value gets the value property from it, but that's generally only for input/select/textarea elements, not iframes
 
5:57 PM
What do i use for iframes?
 
That depends entirely on what you're trying to do with it
 
currently, when i write in the text box document.write("hello world") it erases the button, iframe, textarea, and just writes hello world, i want it to keep the button and textarea and write hello world in the iframe
 
00:00 - 18:0018:00 - 00:00

« first day (791 days earlier)      last day (4154 days later) »