« first day (1385 days earlier)      last day (3568 days later) » 

10:00 AM
but that settings are not getting apply in firefox
 
@VinaySharma elements don't have dimensions unless in a document
 
it is working for other browser
ok i am sending complete function
 
@Zirak Does this apply for that sudden realisation meme? :p
 
function getSize(object,className,maxWidth)
{debugger;
var o = new Object();
if (document.createElement)
{
var span = document.createElement("span");

if (className) span.className = className;

span.style.visibility = "hidden";
span.style.position = "absolute";

document.body.appendChild(span);

var t = typeof object;

if (t == "object") $(span).html(CommonUtils.outerHTML(object));
else $(span).html(t == "string"? object.replace(/\n/g,'<br>') : object);

if (maxWidth && span.offsetWidth > maxWidth) span.style.width = maxWidth;
 
@Zirak which makes no sense, by the way. Since a ws is already used to retrieve all the messages, why not reuse it to send messages too?
 
10:01 AM
!!tell vinay format
 
Don't XHRs show up in your console?
 
and use a copy/paste service for code this long
 
@FlorianMargaine I think it was asked some time ago, and they said that they don't care enough to write the necessary code.
 
in object i am sending message and className class name
 
Ah, nvm, just being stupid xD
 
10:02 AM
!! are you alive?
 
@Magikaas Correct
@JanDvorak I'll fire her up
 
I had the wrong dev tools console open, so I didn't see the XHRs
Too many tabs!
 
@Zirak ha.
 
@VinaySharma inline elements don't have dimensions either. Try using a div
 
"If it ain't broke, don't fix it"?
 
10:06 AM
!!info
 
@Zirak I awoke on Fri, 01 Aug 2014 10:06:14 GMT (that's about 8 seconds ago), learned 275 commands
 
There we go
 
Hahaha
Sleepyhead!
 
@Magikaas Or as programmers understand it, "If it ain't broke, you haven't searched hard enough."
 
@Neil Hahaha. Clients "If it ain't broke, you can probably make it fancier"?
 
10:08 AM
sorry sir i am now to this website and javascript also can all of you help me
6
 
what's worse, bugs that you can't find, or bugs that you know exactly where they are but you can't think of any good fix?
@VinaySharma Have you read my response?
 
It's the scariest when it runs on the first try
 
@JanDvorak Imo bugs I know, but can't find a good fix for. That would 'bug' me so much
 
"...I made no obvious mistakes? That can't be right"
 
@Zirak most of the time I get a bunch of typos on my first ttry
 
10:09 AM
@ItachiUchiha this should fix it: $('body').html('<img style="height:100vh; width:100vw" src="http://imgur.com/RbFYQub.gif"/>')
4
 
Lol, really xD
 
@Mosho do you really want me to run it again !
 
in debugging mode in last i am getting 0 width and 0 height when i am setting width and height in o object
 
:(
 
only in firefox 30.0 it is happening and for other it is working fine
 
10:12 AM
 
irony
 
@Neil I prefer the first, to the last. Personally
 
Currently I'm trying to generate an isosurface. I can collect all points where the surface crosses a cubelet edge (only one per point per edge), but I need a nice way to order them into a loop or few so that I can generate the faces. Connecting all triples of vertices creates one big mess of a geometry.
 
@Magikaas Me too, absolutely
 
how do you add pens to a codepen collection?
 
10:14 AM
If you have to change something, but you don't know why it even worked in the first place, that's hell, right there
 
Never fix a bug you don't understand
 
Worse still are the bugs that, despite using the same everything as the client, you can't replicate it
 
^^^^^^^^ current situation
 
Kill all the Heisenbugs
 
10:15 AM
@Magikaas tutorial? That's just the end result
 
Those are the worst because your boss, the layman, says "Well, what are you waiting for? Just fix the damn thing"
 
@Magikaas it's just a more indepth analysis of the end result
 
wait... having to have neighboring cubelets match together with some symmetry considerations force one specific way of looping that I just have to implement
 
@Neil Indeed. Though, I would sooner doubt the client's description of the problem, over why it's not doing what happens for them
 
10:17 AM
Precisely
 
@Magikaas My first instinct is to assume the client doesn't know what the hell he's talking about
And of all these types of problems, a good 80% is just the client not knowing how to use the product properly
However, that 20% is killer..
 
@towc Good point. Does this help? instructables.com/id/…
 
@Magikaas I know how to make a pen... I just need to add it to a collection :P
 
Dangit xD Hahaha
 
(I actually found out how, but you can keep going with the jokes)
 
10:19 AM
I was surprised it went on this long :P
Sadly, I could not find any gifs on how to put pens in boxes. =/
 
One of my colleagues writes me an e-mail asking me to launch a procedure to update software on of our clients' servers. I respond asking him when I can update (since the web application must restart). No response. Crickets chirping for 3 days now.
 
@Neil However, there is ALWAYS an answer, that's the great thing about programming, in my opinion. If something does not always do what it should, there is ALWAYS a reason :)
@Neil RIGHT NOW!
 
@Magikaas We've made computers and some programs so convoluted that the source for some of these problems is truly hard to find, despite always having a reason
It is a bit like saying you can make any program. It's true, though some of these programs would literally take centuries of manpower
 
@Neil That, sadly, is true... But imagine it not being convoluted, the barrier to entry would be so high
It's only so hard to find some problems, because the barrier for entry was lowered by hiding it behind a layer of abstraction
Layers of abstraction make it easier to get started, if you are then serious, you scrape away the layers and dive in.
 
Windows does this. For 90% of the things you want to do in windows, it is easy. If you by chance fall into the 10% bracket, you will wish you were dead.
 
10:28 AM
Imagine you'd have to write your own operating system to distribute a program. Like how there were so many OSes in the past
Or your own server software for running a website
 
is patient equal to idle because I don't think so
 
Instead of just the content serving and saving part
 
Imagine you wanted to give a user permission to access the network drives, but not log-in to any network computer.. I think you'd have an extremely hard time doing that, even though it is perfectly feasible
 
peeps in the room, extending the view controller to run a script before the view is destroyed, keep running into dead ends
 
@Neil Sounds tricky, yes, I would not know where to begin (apart from google, of course :P)
 
10:29 AM
@zigi Do dentists drill teeth in their idles?
 
@Neil If it's in a domain or the likes, create a user who only has access to these network drives?
 
@Neil I don't understand your question and what you are trying to convey with it, sorry
 
ping me if anyone knows what I m talking about :D
 
@zigi You asked if patient === idle, he replaced patient with idle :p
Did the sentence make sense to you?
 
no
 
10:32 AM
@Zirak I think if you have a user on the network, you can automatically login with it
 
!!define patience
 
There you go :p
 
@zigi That didn't make much sense. Use the !!/help command to learn more.
@zigi patience The quality of being patient.
 
I think to prevent that, you'd have to indicate on each computer that that user does not have permission to enter that particular computer
 
from google: patience - the capacity to accept or tolerate delay, problems, or suffering without becoming annoyed or anxious.
 
10:33 AM
@Neil Really? I think there's some group or something which says "this user can login". Or I'm just making it up.
 
but you could still be patient and not idle
 
Apart from that, patient and idle are not the same imo, patient means you can wait, but does not exclude other actions, idle means you are literally not doing anything productive (afaik)
 
@Zirak I could be wrong. I'm no systems administrator (and I honestly prefer to keep things that way)
 
exactly my point Magikas
 
So idle == patient, but patient != idle
If that makes sense
 
10:33 AM
yes
 
Anyway, lunch time! Back in a bit, don't go too idle! :P
 
I know what you mean, I just wanted confirmation from someone and you gave it
haha I'll be patient
wow that's some realistic body art
ahahaha
 
classic asians
 
 
develop skills over decades just to creep everyone out
 
10:37 AM
 
!!summon 43899
 
@Mosho haha so true
but I am creepy so I like those things
:D
 
I don't get why people are eager to describe themselves as "creepy" or "weird" or "random"
Why can't you just "be"?
 
hi, can I ask a question
 
@user3652050 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.
 
10:39 AM
how to lock fucking bad threads
0
Q: What does $(function() {}) mean in javascript

LZOOI am using the flot library for producing plots. The examples given on the website all have their javascript code written like this: <script> $(function() { ... ... ... plot ... }); </script> http://www.flotcharts.org/flot/examples/realtime/index.html What does $(function() {}) bi...

plz help me
 
was that rlemon special?? @zigi
 
can someone fucking help e
 
..What seems to be the problem?
 
@user3652050 not with the language, no.
 
@blackbee exactly
@Zirak it's true but that's because people label me like creepy constantly
do that's why I think I am
 
10:41 AM
look I need to do dis for my stackoverflow research essay due tmrw
 
ha
 
@user3652050 You have several answers already, what's wrong with those?
 
that doesn't sound good
 
just motherfucking lock/close the thread cuts
 
and people won't help you cause you are desperate
 
10:42 AM
Beware of trolls.
 
inb4 trolls
 
@zigi Do you know what inb4 means? Just curious
 
predicting stuff
that's gonna happen
 
Hehe, I'd say the answer is "no"
 
ok more elaborate
it is doing something before
someone does an obvious response
hahaha :D
 
10:44 AM
Well at least you didn't google the meaning :P
 
I didn't do the inb4 on time
lol actually I asked someone here a few days ago
 
you usually see it for like inb4 flag
 
ah
 
when someone says something that might cause it to be flagged, but I mean you're right mostly
 
@BenjaminGruenbaum There we go, it was bound to happen
 
10:46 AM
people lately tell me, man I hate you but you are right
I've heard it like 10 times at least
which is strange
 
Are you right? Or are they wrong in saying you are right?
 
Interesting thing. If you do $('input').focus(), jQuery focus all the inputs,even if only one can be focused... #bugfixing
 
How did that troll post a comment without 50 rep?
Don't know what the hell's wrong with that user.
 
@Qantas94Heavy I have more than 50 rep :(
 
@dystroy: not you, that weird user above
 
10:51 AM
Hum... good question... Did they relax some rules ? Is it 20
BTW it looks like a throwaway account
 
I think it's still 50
so that's weird
 
He might have reached the threshold then had a deleted question (maybe cheating). As he know who is "whoring", he probably is an experienced SO user
 
hy friends is there any way in javascript by which we can get property value in javascript function of css class
for example we have following class

.heightandWidth{width : 50; height :60}

and we want these value in javascript function. is it possible then how it is possible.
 
You can read the css style as it is indicated, however if you want the width or height, you should probably avoid using style as it gives you also the units
 
@zigi So you let other people define you?
Lame
 
10:57 AM
define('zigi', 'lame');
 
 
@VinaySharma you could crawl through the defined stylesheets, your could get the information by creating a sample element, or you could store the data in two places
 
-- no
 
@Second Yup.
 
Please, someone find something to close that one :
0
Q: What does $ keyword mean in javascript

user3652050I saw this code which used this: $(function(){}); $(document).ready(function(){$(alert(1));}); I searched all over and couldn't find a thing. Can you help me? thanks in advance

 
11:03 AM
how we can test that that class contain specified values in javascript
 
@VinaySharma What's a "class" ?
 
I have no idea why we're fighting this war. It's going to become a real war if they have in fact kidnapped a soldier.
 
He wants to know if it's possible to get the css properties, as an object, applied for a given "path"
 
Going to make what we had up until now look like preschool
 
class is a set of attributes with unique identity
in class we have styles for tag
 
11:06 AM
getTheProperties('.foo .bar'); // { height: '500px', width: '200px', borderColor: 'red', borderWidth: '1px', borderStyle: 'dotted' }
 
@VinaySharma Jan gave you the answer above. You could create a sample element and assign that class to it, then check what styles it uses
Though generally you shouldn't care how dom elements are styled
 
it is ok but i want to know that is there any way by which we can check that class of css containing that values or not (you know the requirement). without apply that class on any element. and i have check way specified above. please try to give valid suggestion
dievardump suggestion giving an error ReferenceError: getTheProperties is not defined


var x = getTheProperties(className);
 
... I was giving an example of what you want
 
@zigi Realistic and creepy xD
 
hello,i need urgent help please
 
11:16 AM
@PradeepSaini 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.
 
you can find what you want with document.styleSheets, which is definitely not supported by all browsers
 
@PradeepSaini I'm sorry, but we'd rather not rush anything here
 
But have fun
 
read the json file using php and create an autocomple text field using jquery in frontend. once you select the suggested country, the country code should be filled in the country code text field.
 
tutorial autocomplete jquery php ?
 
11:17 AM
@PradeepSaini whom are you telling to do it and why?
 
I am sure you will find something on google
@PradeepSaini That looks like homework, we do not do homeworks
 
its a project,i have only 1hr left to submit
 
why didn't you start sooner?
 
i got it only an hour ago
 
why did you accept a project you can not do ?
 
11:19 AM
its for job interview
 
do we want you to get the job?
 
Well if you do not know how to do that, why do you want the job ?
 
we don't help people cheat at interviews
 
interviewer know i don't know json,but he wants to test if i can still do this
 
Don't cheat to a job interview or you will lose your boss times and money
 
11:20 AM
@PradeepSaini for this, check JSON.parse
or json_decode if you want to process the JSON in PHP
 
google : read json with php
google : ajax
google : autocomplete with jquery
 
Then google and find out on your own strength, I guess? Otherwise you'll have enough trouble with the rest of the work you'll be doing there
 
thanks everyone
 
Is that a trainee interview or a real job interview ?
 
trainee
 
11:24 AM
$json = json_decode(file_get_contents($file), true);
(i can have trouble for pasting php code here, hopefully they'll think it's some jQuery magic with the $)
 
anyone used f# funscript?
 
@dievardump- then can i contact you somewhere else?
please!
 
@dievardump how dare you?!?
 
I was reading something and it said "codependent" and I read it as "codepen dent"
 
@Zirak yes, because I am not an asshole and don't tell people how stupid they are, they try to define me
I communicate with waaaay tooo many average and normal people so I tend to get remarks like them sometimes
even my mom thinks I am a sociopath cause I almost don't sleep
and move non-stop and do stuff
she had told me that
 
11:46 AM
sociopathy has nothing to do with sleeping
 
:D
 
What the fucjk
 
I know
but with having antisocial thraits
 
has nothing to do with sociopathy
!!define sociopath
 
@Cereal sociopath A person with an antisocial personality disorder, exhibiting antisocial behavior that usually is the result of social and environmental factors in the person's early life.
 
11:47 AM
but I am having some
 
>:(
Skrew you wiktionary
 
I am showing thraits of antisocial behavior
 
proving me wrong
 
deminished empathy and remorse
 
grumble
 
11:48 AM
haha
see, I am said to say it
 
I thought sociopathy was the lack of empathy
 
but I was right again
well I kind of lack empathy most of the times cause people fucking complain non stop for bs
 
!!define psychopath
 
@Cereal My pocket dictionary just isn't good enough for you.
@Cereal psychopath A person with a personality disorder indicated by a pattern of lying, cunning, manipulating, glibness, exploiting, heedlessness, arrogance, delusions of grandeur, sexual promiscuity, low self-control, disregard for morality, lack of acceptance of responsibility, callousness, and lack of empathy and remorse. Such an individual may be especially prone to violent and criminal offenses.
 
I mixed them up
 
11:50 AM
haha I think I am closer to a psychopath
actually it relly describes me
 
I thought I was a psychopath once. Turned out I was just depressed
 
hm interesting
 

« first day (1385 days earlier)      last day (3568 days later) »