« first day (881 days earlier)      last day (4069 days later) » 

4:00 AM
ofcourse it's slow to find the correct variable with all the laxative(Joke) scoping
 
globals are slower because the engine tries to read where it points to first, then creates it. so it's much more bytecode
 
Ha, laxative
 
why does the graph not show the same numbers as the table?
in the table old is faster than new
but on the graph it shows different numbers, and both the same?
and its also not nice that your chrome beats my chromium at declaring vars lol
 
globals being slower makes sense
Even if you split the definition and declaration
I suspect that's just because they're in a very big object with many properties
^ illustrates the issue with similar performance hit
 
hmm so the scope is not the issue?
 
4:11 AM
window is a huge object
 
yes i understand that
 
In that case yes, I think my perf illustrates that
 
further more, it has to traverse back in the scope to find the correct variable
var i = 0;
function something() {
    var i = 1;
        function another() {
            var i = 2;
            (function() { console.log(i); })();
        }
    }
}
it needs to go back in scope one by one
check if the variable exists in the scope
but actual implementation might be different, for example, scope that creates a function might actually inject it's scope in to the object it creates. which would eliminate the kind of lookup i suggested
 
 
thats inner variable versus outter variable
 
4:26 AM
"use strict" is for sissies
 
@plodder That's actually pretty close
Try two scopes, lots of browsers cache one scope above
 
@BenjaminGruenbaum that actually proves your theory.. that the most part comes from the size of the window object and not the scope ;)
 
I think the fact the JSPerf was 3 times slower proved my theory
 
i need help
$( "#create-user" )
.button()
.click(function() {
$( "#dialog-form" ).dialog( "open" );
});
});
I want to open dialog form onload
 
@MalikUsman edit that and format. ctrl + a then ctrl + k
 
4:30 AM
    $( "#create-user" )
      .button()
      .click(function() {
        $( "#dialog-form" ).dialog( "open" );
      });
  });
 
What exactly is .button()?
Oh yeah, jQuery UI
 
<button id="create-user">Create new user</button>
 
If you want to open the dialog on load, why are you using a click listener?
 
hmm... I dont know actually i copied it :D
that's why i am not in javascript
 
I never would have guessed
What are you trying to do?
If you want it to open on load, do you need the create-user button?
Are you even trying to create a user?
Or do you just want the dialog box?
 
I just want
dialog box
which one onload
when user Enter to my application
 
$(function () {
    $('#dialog-form').dialog('open');
});
 
1000000 Thanks :D
 
Everybody gets one. Next time, be more prepared with what you want, preferably prepare a JSFiddle demonstrating the issue, and don't expect us to just give you the answer
 
Oh i am sorry :'(
 
4:38 AM
Don't be, you're new.
We're here and we like to help. Just make it easy for us to help you get to the solution
 
@BenjaminGruenbaum i guess chrome does: local vars, top scope vars, and then travel everything inbetween? that result is a big wtf :P
 
Ok thanks i have one more question
function() {
         my_window = window.open ("http://link.com","mywindow1","target=blank,status=1,width=1000,height=600");
 
!!s/help/troll/
 
@plodder We're here and we like to troll. Just make it easy for us to help you get to the solution (source)
 
!!/ban plodder
:P
 
4:40 AM
@phenomnomnominal User plodder added to mindjail.
 
!!/unban plodder
 
@phenomnomnominal User plodder freed from mindjail!
 
:(
 
@phenomnomnominal the above i script i sent is working but the new window open like popup window
i want to open in new window
 
@MalikUsman, yep, what would you like it to do?
 
4:42 AM
i want to target it blank like we do in <a href="#" target="_blank"
 
@BenjaminGruenbaum Command slicepoop learned
@BenjaminGruenbaum Command slicepoop forgotten.
 
@BenjaminGruenbaum Command slidepoop learned
 
!!/slidepoop
 
@BenjaminGruenbaum Command tobacconist learned
 
4:44 AM
TY bot :)
 
@MalikUsman, what have you tried?
@MalikUsman, have you even googled that?
 
I did and i got the above code
which i sent you
 
There is a bigger issue, have you thought about what would happen if the user has a browser that doesn't have tabs? Or a popup blocker?
Opening windows is a UX nono
 
yeah that's why i want to target it _blank
sometimes chrome block popup window
 
Don't use it
 
4:49 AM
The reason people have popup blockers is because people hate them. If you want people to not hate your site, find a different solution
Personally, I don't want anything to open that I haven't specifically asked to open
 
@phenomnomnominal so that's why i couldn't find you on Facebook
 
@plodder, nope, my facebook is wide open, you must just suck :)
 
but popup window will not open onload
it will open onclick
when users will click on button then that will open
 
Popup !== dialogbox
 
but still i dont want to open it in popup window i want to open it in new window
 
4:52 AM
@phenomnomnominal i am good at that, maybe i should switch careers :P
 
thats what a popup is
 
lol ok so what to do because i need to open something on screen before the actually start playing with my website
like login or sign up
my_window = window.open ("http://link.con","_blank
this one works
anyway thanks :D
 
You already have one window... do your login there.
If you need more than one window, you're doing it wrong.
 
actaully its not like a window boss
jQuery UI Dialog - Modal form
 
Yeah, that's not a window
 
4:58 AM
UI Dialog :/
 
7 mins ago, by phenomnomnominal
Popup !== dialogbox
 
Oh :'(
lol so what can i do now :'(
 
Make a dialog box, which will appear INSIDE the window, and have your login stuff in there
 
yeah its openning inside off the window
 
Make a jsfiddle
 
5:01 AM
0
Q: Reset form after submit

SwapI am new with ajax and jquery. i have used the following code to submit form data it working fine. but i need to reset(clear form field) after submit form with all validation true. where to write a code to clear a form. Html Form: <form action="#" name="formdata" id="replyform" method="post...

Gotta love stackoverflow -_-
 
@BenjaminGruenbaum yes... but even more gotta love everyone for trying!
 
Sometimes I want to downvote all those answers on stupid questions :/
These questions are why SO rep doesn't mean anything
 
ah so that's why i only have 23 rep
 
@BenjaminGruenbaum see
 
5:07 AM
@BenjaminGruenbaum chat.stackoverflow.com/transcript/message/8252049#8252049 I thought you said that!
 
yeah lol
 
@MalikUsman, what's the problem
 
I'm sure plenty of people said that several times, it's really well written and short
 
I think people ask those type of questions because they want to show their current code to people and get suggestions about it because they cannot solve it even after Googling.
 
5:08 AM
I never tell anyone to read a book, so i was a bit surprised
 
no i solved my question but he was saying that not good to do this
so i am just showing what i am doing
anyway never mind
 
@MalikUsman the point is that you are opening a new window on 'create an account'
why dont you just load another UI dialog?
 
because the window i am opening is not mine
That part off website is not mine
its somebody else website which i wana open
 
Well then just make it an anchor tag?
Popups get blocked when you activate them using javascript, because the assumptions is that you're forcing it on your user, which is a shitty experience.
 
then make it an <a target="_blank">Click here to create an account (opens in a new window)</a>
 
5:14 AM
Ok
 
that way, no one will block you, and no one will hate you
 
@plodder you mean inside of Jquery UI
right
 
0
Q: Node.js super power?

FateZeroI was wondering what makes node.js special! I imagined something like being able to fetch js function instead of downloading the whole js file if the web application is served using a node.js server. Is this correct? or even possible? Yes, I know thats unusual but the tradition having to downlo...

LMFAO
 
$( "#users tbody" ).append( "<tr>" +
              "<td>" + name.val() + "</td>" +
              "<td>" + email.val() + "</td>" +
              "<td>" + password.val() + "</td>" +
            "</tr><a>...</a>" );
i'd put it there, as a link
well outside the table but you understand what i mean
 
its 5:17 have to sleep now but thank you very much for you help :D
 
5:18 AM
@BenjaminGruenbaum A callback based application: goto tropo.com, open account, put $20 on it, write app that immediately calls the last incoming text message back, publish -> cloud based callback based application
 
@BenjaminGruenbaum @plodder @phenomnomnominal and all others :D
 
Good night!
im skipping sleep tonight i guess
cus its already morning
coffeee!
 
c# people with no knowledge of js should really stop trying to answer questions about node
 
@phenomnomnominal pfew i dont know c# :P
 
nothing against knowing c#, just about NOT knowing node.
 
5:22 AM
@phenomnomnominal Not the first time I see that
 
I think the problem is not just the answers though
 
The general attitude of C# being the bees knees?
 
Well first off the good questions are always answered 0sec
 
Secondly, about 60% of questions about node anywhere (here, on linkedin, etcetera) are questions like: My developer said i should use node.js, but what is a good node program to use for my email
 
5:28 AM
LOL, my developer said
 
Then there's 6 answers about how to use sendgrid or that you should just put all your code on appfrog
 
As much as I love node I was talking to this guy a few days ago and I told him he should use Java and not node
Hurt like hell saying that, but I did
 
@BenjaminGruenbaum it depends on the implementation
 
Guy wants to start a startup company, he needs a proof of concept for his project that'll take about 2-4 weeks to make and he already knows java well and no javascript at all
 
!!s/implementation/functionality/
 
5:29 AM
@plodder Y U NO MAEK SENSE!? Could not understand s/implementation/functionality
@plodder @BenjaminGruenbaum it depends on the functionality (source)
 
@BenjaminGruenbaum, meh, can't be bothered replying to him, don't have the energy to deal with more idiots today.
 
i have tried to do some simple map reduce in JS on an array with 400k small objects on each node version and im going to do it again on 0.10.0
but I expect it's still java for that
 
hi good morning
 
morning!
 
can u help me
 
5:33 AM
well that depends on what you want :)
 
i am new to web dev....i am using html5 in android... i did a app as look like a book....in that page is scrolling like jerky.....i want it to be too smooth...any solution for this?....i cant find out this any where @plodder
 
@sam786 I have made 3 apps like that on other platforms in the past and mostly the key is to not use javascript for the scrolling, but instead use the methods from the object in (in your case) Java
 
@plodder i used iscroll 4, swipe library and many library example from google searching...but i couldnt find out any 1 from this
 
@copy just get a macbook
 
5:39 AM
@plodder u mean to say that to use gesture detector
 
My SSD :(
 
That's just the sort of thing that happens with linux
 
I just get what I deserve for using an OS made by the devil, I guess
 
@plodder i am using a long horizontal page which flip 1 by 1.....i couldnt find out in java smooth scrolling also...but when i saw play books from google playstore...its scroll smooth awesome....
 
(I'm voting to reopen this, anyone with me? stackoverflow.com/questions/15312584/… )
 
5:42 AM
@sam786 I'm not up to date on what the android sdk offers on that right now, but the best way to do processor-intensive operations (like scrolling, where a lot of rendering happens) is using the android sdk methods and not relying on javascript, because the javascript interpretation takes way more processing power than the java halfcompiled code in your apk.
 
@BenjaminGruenbaum Not a good question for a QA site. And I'm sure if there was something that google could do they would do it
Of course they have to make sure that there is not loophole in the system
 
@copy I'm sure that there are plenty of developers on the site that were in his position and could either confirm this is impossible or propose a solution
 
@plodder could u tell me some examples of that by using java...
 
@sam786 like i said i did it on different platforms, but the problem is really the same. So sorry i don't have those for you, but I'm sure someone who actively develops android apps can tell you
 
@BenjaminGruenbaum Well, then good luck. You may be right, but I cannot vote
 
5:47 AM
@copy if only you were as knowledgeable as this guy stackoverflow.com/questions/15425180/node-js-super-power/…
 
@plodder which platform?..... can u tel me plz
 
@BenjaminGruenbaum Do you know the video of the node hater? It was flowing around in the chatroom for some time, but it was before you were here
 
@sam786 I've done it with QT
 
@copy no, it was never past to me
2
aww, now you ruined the pun
 
Get some popcorn and watch it
 
5:49 AM
@BenjaminGruenbaum, that is so fucking funny
You'll want to rip him apart afterwards
 
Solid pun, by the way
 
@plodder.....thanks alot.....u helped me alot....
 
@sam786 wish i could have done more!
 
My favourite thing about the video is that he sounds like Garrett from Community and it's his ACTUAL voice
 
@copy lol!
 
5:52 AM
@plodder anyway u did better for me....i am struggling this for past 10 days....
 
@sam786 then let me make it up to you. If you don't find anything and you have time during the weekend then come here and I'll do some proper research for you on which methods to use
 
@copy He's just stupid...
Also, the node.js question guy is trolling for sure
 
@sam786 because would be awesome to know anyway :D
 
@plodder sure ..... thanks alot.....u r awesome my friend....
 
@BenjaminGruenbaum Not stupid! He's a psycho, except for making the point that fast and javascript in one sentence is really really strange, well at least it used to be ;)
@sam786 thank you. be sure to say that more often here because 30 minutes ago i sucked :P
 
5:56 AM
JS got really fast really fast :) That's awesome
 
'not compiled'
kinda missing the point of v8 there buddy
 
Anyway, I have to get some sleep, good night room
!!/slidepoop
 
@plodder let me try more examples from google...catch u later friend
 
@sam786 great. good luck & see you!
 
5:59 AM
@plodder thanks.....
 
0
Q: How to show or unhide full credit card number with Gravity Forms admin notification email?

iamandrebulatovWhen a client on my site fils out a form for a reservation, they have to provide a credit card number for payment, which I will use with my merchant processor. However, by default, when the "Email Notification" from the completion and submission of the Gravity Forms reservation form is sent to t...

 
If you need your IDE's code generation tool, then your language is too verbose
 
I remember my functional programming teacher saying that too during classes
@SOChatBot and he was comparing Java with his language lol
 
well... i do have an uml class diagram parser for resourceful. so i suck once again
but i still dont want to draw the uml and then have to type everything again in code :(
 
6:37 AM
Anybody familiar with nodejs ,expressjs and compoundjs?
 
6:57 AM
0
Q: Aggregates grou values are not coming in sequence in kendoGrid

Devunipalli$(document).ready(function () { var grid = $("#grid").kendoGrid({ dataSource: { type: "GET", transport: { read:{ url: "some ...

Hi @Anu
 
@shankar.parsanamoni hey
 
Heve you seen above question
my friend has given that question to solve.
any idea
 
@shankar.parsanamoni tell me what exactly u need?
 
i have written sp for displaying info in the form of li a,b,c
values are coming up to service in same format
but in grid displaying like a,c,b
 
yea reading now
 
7:04 AM
is there any sorting tec
mean sorting:false
 
ive never used kendo :/
 
anyone ever installed VIM plugin before?
 
anyone know of some jQuery ajax option to for automatically appending GET values to a POST, without having to change the URL option?
I don't think so though
maybe I'll just use $_REQUEST on the server
@Shea actually, I'm making this more complicated than it needs to be
 
I have installed tons of vim plugins...
Using pathogen + vundle is the best choice I've made
 
7:14 AM
hi my jq grid is always selecting the first row irrespective of where i click on it..
i am not able to select any row in the grid
 
@FlorianMargaine wish I could quit Dreamweaver
it's like a bad drug that won't go away
@VishweshwarKapse example
 
no matter where i click on the grid only the first row is hi lighted
mygrid.SelectedRow is equal to 0 no matter where i click on the grid
 
@FlorianMargaine Thx, I think I have read somewhere people mentioning about it before but never tried them yet. I was still having trouble with installing plugins even I read tutorials about it.
 
Install pathogen first
It has tutorials
Then it'll be easy
 
cool, thx.
 
7:26 AM
Why can't Elvis Presley drive in reverse? Because he's dead
 
does anyone know of a way to remove individual URLs from the address bar auto complete on Chrome?
@Shea highlight address with arrow keys and press Shift + Delete
 
hii
 
@Shea why thank you!
 
@FlorianMargaine mhm
 
i sending a mail to the user and a print button in the mail on print button click the mail to be printed but the print button not working ?
 
7:32 AM
So, woke up today and decided to learn ECMAScript...
...Because why not?
 
@kapil Printing should be left up to the client that your recipient is reading the email in. You cannot send JavaScript, and have it parsed in an email, unless that email server you're sending it to isn't very good.
@ProfPickle sounds like a great idea
 
@Shea Best thing I've ever done in my life.
 
Don't sell yourself so short :)
 
thanks
 
@kapil You're welcome. Instead, I recommend focusing on optimizing the email for printing, to allow the email clients to handle the email as good as possible.
 
7:42 AM
humm but the probulam is users are not technical and they dont know how to print the mail
 
@BenjaminGruenbaum looks like shit in IE8 lol
@kapil I would just tell them to press Ctrl + P. I'd say 90% of the time, that's the shortcut to print.
actually, that might be a bad suggestion for web based email clients
@kapil why should it be your problem that your recipients don't know how to use basic features of their email client?
actually, not even basic features, but rather fundamental features....
 
Ruby is for smelly hipsters
3
 
0
Q: JavaScript source code become null after a system restart (windows blue screen error)

Deepu Dasprevious state of my JavaScript file: function get_XmlHttp() { var xmlHttp = null; if(window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } else if(window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } return xmlHttp; } ......................

0
Q: JavaScript source code become null after a system restart (windows blue screen error)

Deepu Dasprevious state of my JavaScript file: function get_XmlHttp() { var xmlHttp = null; if(window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } else if(window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } return xmlHttp; } ......................

 
@Darkyen my small module is going to be a native function in ES6 :D
@ProfPickle Nice decision. Do you have any resource or do you want some?
 
8:46 AM
My idea ^
 
@copy yep
but you know what they say...
> Great ideas are worthless without execution.
:P
but I'm being a bitch. Thanks for the idea :-)
 
I actually have the same thing in my newest project
 
and it was probably done before too
 
Yeah
 
hii
can anyone suggest me the best secure way to access JSON
 
8:49 AM
it's not like we invented it...
 
Omg XD addition of church numerals is hurting my brain
i hope this will never become mainstream of programming in future lol
 
@copy btw, because the right guy noticed the module, Array.prototype.find will be in es6 :P
 
6
Q: Bootstrap modal appearing under background

natlinesI have used the code for my modal straight from the Bootstrap example, and have included only the bootstrap.js (and not bootstrap-modal.js). However, my modal is appearing underneath the grey fade and is non editable. Any ideas why this is?

any help people...
 

« first day (881 days earlier)      last day (4069 days later) »