« first day (862 days earlier)      last day (4104 days later) » 
00:00 - 14:0014:00 - 23:00

12:20 AM
'lo
user image
4
So true. :D
 
@OctavianDamiean Wrong. Seam Foam is still Blue. And Maroon is still red
 
knock knock Who's there? "Jehova's witnesses"
 
Not having yield return is so annoying :( I'd like something like python or C#'s range
"using SO is like doing lookups with a hashtable instead of a linked list." awesome quote
 
12:40 AM
Dude ... if the snowfall continues at that rate I'm afraid I won't be able to open the door in the morning.
 
@OctavianDamiean I love snow :) We only get snow one day a year here so it's like a holiday
I don't really get python, it seems very similar to JavaScript. What advantages does it offer me?
^ Should probably ask that in the python room
 
o_O similar to JS!?
@copy ^
 
12:58 AM
@copy I'd love your opinion
 
Busy.
 
What did the farmer say when he couldn't find his tractor?
"Where's my tractor?"
 
1:14 AM
Hello
Suppose you have a HTMLCollection here, how can you select only the top level's divs with jQuery?
Nevermind, I found out that you can actually do $(html).find(">div") -_-
 
1:38 AM
is there a div.style.something that allows you to alter the selection of a background image?
but nothing else
 
?
.backgroundImage?
 
no u cant add pixel x y to that
 
You want to edit the actual background image on a pixel level?
 
say i have an image 200px wide i want to show 0px to 100px then on click show 100px to 200px
its a sprite sheet you see :)
 
Oh! I thought you wanted to actually manipulate it
backgroundPosition in that case
 
1:50 AM
doesnt that just move its left corner
 
look into it :)
 
well this:

d.style.background = "url('test.png')";
d.style.backgroundPosition = "0 0";
d.style.backgroundRepeat = "no-repeat";
deffinately does not work for me
 
@Dave d.style.background = "url(test.png)";
 
@BenjaminGruenbaum iterators, well-organized and huge standard library (examples: Set, Decimal, deep copy), only a single "nil" type, much stricter (operators either make sense or throw an exception, you can't call functions with the wrong number of arguments), modularisation built into the language, tupels, lists, arbitrary precision numbers, lambda (and many non-verbose functional programming functions), list comprehension
 
backgroundImage didn't do any thing so i tried it :P
unless test.png needs single quotes?
 
1:56 AM
no quotes inside of parenthesis
 
ok well then not sure why it wont display i get no console error
but resources show the image loaded
 
d.style.height = "100%";
d.style.width = "100%";
 
ah it works now ^_^
i always forget about that xD
thanks!
 
Aren't python arbitrary precision numbers external through numpy?
Iterators are neat but they're coming to JS really soon
I don't understand what 'well organized' means in this context
Standard library sounds cool but I was referring to a language bases
I'd argue null and undefined are _very_ different in concept
Modularisation is built into node.js
What advantage do tuples and list give me over object and array?
Do python lambdas offer advantages to JS anonymous functions?
List comprehension seems to be the same as iterators
 
2:02 AM
No, numbers have arbitrary precision by default (and numpy on top is awesome)
The combination of lambdas, list comprehension and tupels allow a very concise functional style (like haskell). You have all of that *somehow* in JS, but it's super verbose
 
Docs say floating point numbers are usually implemented using double in C. It's nifty that integers have unlimited precision
 
Oh yeah, integers
 
To sum it up. Python is just awesomer (I know).
 
Also, mozilla's javascript (an ecma.next) have list comprehensions and iterators already
Are pythonic lambdas better than JS anonymous functions? They seemed rather limited
 
They are concise
 
2:08 AM
@BenjaminGruenbaum There is only a subtle difference. Python had that for ages and EcmaScript will have it.
 
I'm not sure I understand what that means in this context. How are they more concise
@OctavianDamiean I'm considering which language to use for something, I can run any JS implementation I'd like, that includes Mozilla's or V8 with experimental flags turned on
 
function(x,y,z) { return x + 3 * y - z; } is more to type than lambda x,y,z: x + 3 * y - z
 
@copy (x,y,z) => x+3*y -z seems even less
 
@BenjaminGruenbaum That's simple. If you need to do dome real work on the back end part, go with Python. If it is a hobby project or something more trivial, go with Node.js
 
That's great, too bad it will only work in IE 25 :-(
 
2:11 AM
I'm not doing client-side development, I'm writing a program that has nothing to do with the web
Infinite precision integers sound awesome though
 
Is it a hobby project where time isn't a problematic factor?
 
Not really :) I'm going to use python anyway as a way to get better at python
 
That's good.
 
I'm just wondering what advantages it gives me since JavaScript and python look to me very similar (and that's awesome in my book because I think JS is really expressive)
 
I really don't like that you can add objects and strings and functions
And call functions with the wrong number of arguments
Python also has variable number of arguments and named arguments built in
 
2:16 AM
If I ever do any of those things by mistake I get a warning in the IDE anyway. I see where you're coming from though. Those design choices did seem arbitary, for example the famous
!!> {} + {}
 
@BenjaminGruenbaum "NaN"
 
It doesn't really make much sense either
!!>(function(){return {}+{};})()
 
@BenjaminGruenbaum "[object Object][object Object]"
 
Also:
!!>{}+[]
 
@BenjaminGruenbaum 0
 
2:19 AM
When did you ever add objects or arrays in code in practice though?
 
I don't, but I want my interpreter to make lound noises if it happens by accident
 
Well, I'm not going to argue on that one. Not because I can't but because I think you're right.
I like my errors as verbose as possible, then again letting stuff pass a couple of things and be tested eventually makes sense often. Checking against NaN is a lot easier than having to typecheck on every function in an execution chain
 
@BenjaminGruenbaum Heaven forbid you ever have to write a line of code without your IDE ...
 
@OctavianDamiean Right, because some how using tools like JSHint built into my IDE are some sort of a disadvantage
 
Do you actually have to type?
But your IDE doesn't make coffee for you as well, right?
 
2:26 AM
Only until I learn EMACS. After that I can do C-x M-c M-butterfly
@OctavianDamiean I'd totally use an IDE that makes coffee. Unless it makes bad coffee
Just because I really love that image
 
You know, this entire IDE stuff kinda gives the expression "that's a no-brainer" a totally new meaning.
 
I'm not sure I understand what you're implying, but whatever tasks I can offload I will. If I can get any tools that would make my life as a programmer easier I will. If I can add another layer that catches errors before deployment I will. If I could get my computer to write my code for me better than I would myself, I would. That doesn't make me any less of a programmer.
 
ROT13 is sufficient encryption
 
3:17 AM
'ey there js peeps
JS is getting annoying
    SOAPClient.invoke('http://ideone.com/api/1/service.wsdl', 'createSubmission', pl, true, HelloWorld_callBack);
}

SOAPClient.invoke = function (url, method, parameters, async, callback) {
    if (async) SOAPClient._loadWsdl(url, method, parameters, async, callback);
    else return SOAPClient._loadWsdl(url, method, parameters, async, callback);
}

TypeError: SOAPClient.invoke is not a function
 
4:05 AM
@FlorianMargaine thanks for the link!
 
hi guys
=D
@CCInc I haven't done SOAP in JS before but in Java, you would typically generate Java classes according to that service wsdl. The error you have shown me seems like SOAPClient class doesn't have that function in its class.
Have you already generated classes with functions in JS?
 
uhh
 
plus,
I believe you are programming in Node.js, otherwise if you are trying to build SOAP client on JS alone, it's not possible
you might have to create a proxy and connect to that proxy using Ajax or Websocket
 
umm
how's it not possible in JS?
 
Crap, I've said something totally wrong
 
4:13 AM
^
 
I just figured it out lol
 
4:51 AM
Firefox shows you are returning a HTTP/1.1 301 Moved Permanently. I suspect that's the issue... — aquinas 5 mins ago
any help greatly appreciated
 
5:15 AM
0
Q: Paginated WP_Query doesn't return 404's, even when posts don't exist

SyndrohmeI'm currently building a theme for a client, and one of their requirements is endless scrolling on a "Charts" page. They want this to be paginated, and the endless scroll to load the next page below the first, displaying the most popular 40 tracks posted on the site. To achieve this, I used a ne...

 
Does jquery's .CSS function need a callback?
because I am using it to check the height of a div when I set it to auto but it returns 0px when there is content inside of the div.
 
use $().height();
 
I am.
It's returning 0.
But when I inspect the element there are elements in it
temp.css('height', 'auto');
var autoHeight = temp.height();
autoHeight is 0 when there are elements in the div.
 
5:44 AM
 
Yeah?
 
@copy was banned :(
 
It looks like he never even got the boobs.
 
He did.
 
Well then, not all was lost.
What the eff jQuery.
 
6:01 AM
@MikeNolan then that element's height is at 0
if you set it's children's height and their position is absolute/fixed, it doesn't stretch the parent's height.
so you'll need to get the expected height, by looping through the children and adding their heights
or take a different approach
@MikeNolan understand?
 
@andrewjackson yeah I think I got it.
 
 
2 hours later…
7:43 AM
hello
someone here??
nope
lul
 
not him
but I am here
 
8:31 AM
0
Q: Paginate with Tabcontent.jg

Richard AscoughI am using Tabcontent.js from www.menucool.com/tabbed-content on my wordpress install . I have set up my index.php file to have 5 tabs each representing my 5 custom post types. This is working fine except when pagination is required, You can see this on www.travel4kids.com.au/ What appears to be...

 
9:01 AM
Hey guys, I just wanted to clarify whether or not jquery's show() works on an element where you have a parent div whose opacity is set to 0. Might sound stupid but just wanted some clarification
 
oh great. thanks for that. don't need to worry anymore. ;)
 
9:49 AM
@copy "I once wrote a template engine in PHP." did you rewrite php?
 
10:16 AM
he banned
 
he was banned for 30 minutes, 3 hours ago
 
oh is that all?
@FlorianMargaine facebook.com/…
what's the answer?
 
I'm trying to figure out why I'm the only one that came up with, "yes"
am I crazy or is the equation already solved?
I'm not imagining that 20 to the right of the equation?
 
I don't see it, but looks like you're not alone facebook.com/…
 
10:31 AM
I'm Shea Sollars lol
that's me trying to figure it out
and nobody seems to give a second thought about anything I say
 
because people don't care
 
you would think if they'd take the time to answer a question like this, they would take the time to attempt to learn something out of it
 
Sid
Hi guys
need help
 
I guess the only reason I care, is because I just wanna prove to myself I'm not crazy for being 1 or of 10k to think about this
but surely, the ones like me just didn't say anything?
 
Sid
may I ask how can I show another div, onmouseover of a same item?
 
10:36 AM
where do you see the 20 btw?
 
I don't see a 20
 
it's almost the same color as the background, to the right of the red box with the equation
you may need to tilt your lcd screen to see it
 
Maybe you're just going crazy :p
 
I'll point to it one sec
 
I installed chrome os in a virtualbox
 
Sid
10:39 AM
hello?
 
it looks real nice
 
Sid
:(
Nobody helps me!!
 
... Onbosy?
@ThiefMaster Joomla itself is. Its modules could be, but since there's no review of some sort, they're usually not
 
Sid
@FlorianMargaine Now that you heard me, Could you PLEASE have a look at this?
 
10:42 AM
Nope.
 
@FlorianMargaine How?
I'd tried long ago, but I just gave up
 
Hexxeh's build?
 
yeah
@andrewjackson sorry, I don't see it. Maybe I don't have good enough eyes. Or you're schizo
 
@andrewjackson Where? It just looks like you've applied some noise to the image. Where's the 20?
 
10:57 AM
Oh, I forgot you guys don't have twilight glasses on
 
11:17 AM
I'm getting real sick of your shit Dreamweaver
There's just no editor that comes near it's auto complete :(
 
then use vim
 
I prefer an IDE or notepad
 
I would use Notepad, if it just had an auto complete
That's literally my only appeal to Dreamweaver
 
I recommend an IDE. Netbeans and Eclipse both hold strong
 
most IDEs have autocomplete...
 
11:19 AM
I've tried many IDEs, I think Visual Studio was the only auto complete that came close
I don't think you guys understand how much I like Dreamweaver's auto complete lol
The rest of Dreamweaver needs to be destroyed with fire
 
Oh great, this argument again :)
 
Did you just get here?
 
yeah
If you judge VS's autocomplete don't do so without ReSharper, VS autocomplete is pretty lame without it
 
Then how do you know there's an argument?
 
The IDE argument :P
 
11:22 AM
They're helping be find a better IDE, and I'm explaining my IDE requirements
A very good auto complete, that's all
 
Wonder where's @OctavianDamiean when you need him :P
Well, VS +ReSharper if you can get it, if you can't Webstorm, if you can't and on windows WebMatrix, otherwise SublimeText
 
If i would need an IDE for JS, would go with Aptana, though I myself have stopped using it in favor of advanced editors
 
!!/google resharper autocomplete
 
Aptana is also very decent
 
Thanks, I'll try ReSharper, but @tereško is usually right, so I'll try Aptana too
 
11:25 AM
!!/live
 
You should try every IDE and then decide which you like best
 
downloading Aptana
 
I've actually tried all of the ones mentioned, except for those two. Those two are new to me.
 
deferring downloading Aptana until I get home
 
Sometimes it's really hard, for me, to get the feel of a new IDE long enough to give it a fair shot
 
11:28 AM
@tereško "advanced editors"?
 
@FlorianMargaine I could only imagine
 
@FlorianMargaine sublime text, kate, notepad++ .. that group
i guess you can call them "programmer's editors"
 
0
Q: Passing Context in CoffeeScript

ardI'm trying to migrate from JavaScript to CoffeeScript. However I'm not sure about the best way to optimize the code generated by js2coffee. Below is the original JavaScript source : var async = require('async'); var context = {}; context.settings = require('./settings'); async.series([setupD...

 
@tereško out of curiosity, did you ever try vim?
 
i use vim every day
but for programming it is quite bad
 
11:33 AM
Oh.
why?
 
it relays on knowing the keyboard shortcuts , i bought a good wireless mouse
 
it looks like you didn't configure it, maybe
how is that bad?
most "programmers editors" get better when you know the shortcuts
every time you move away from your keyboard, you waste time
 
that's the stupidest thing you have said today
 
no, trust me.
I've said far stupidest things today.
 
do you really have the impression that the most of your work is made up from 8h of nonstop typing
there are some , very productive days, when i actually have written only 20 new lines of code
 
11:36 AM
Nope. But I really have the impression that moving my hands out of the keyboard stops me from thinking. vim just follows my train of thoughts
 
/me actually thinks better while moving
if i have a hard problem to solve, i tend to walk around the office
 
and when you finally get down to writing/moving/changing code, you're bothered to switch between mouse and keyboard every second
 
you guys make me feel retarded, and it reminds me of this
I'm able to be efficient at everything except coding
 
@FlorianMargaine yes, because it lets me to navigate the files faster , highlight different thing
 
Because I'm always too busy trying to make my code efficient rather than my technique
 
11:40 AM
IMHO, this "master of keyboard" crap is just stupid
 
I use MAYBE 7-10 shortcuts at the most
 
@tereško but... you can do all this through the keyboard, faster than taking your hands off the keyboard and use the mouse to reach your folder/whatever
 
why did i even get into this discussion
 
because you're on the internet
and now let's all hop onto 10fastfingers.com
 
no , it's because i expected to people here be less biased
 
11:43 AM
you know, it's an argument.
it's not like I recommend people to use vim at work
tbh, I've used vim/emacs/netbeans/aptana/eclipse/notepad++/sublime
and pretty much everything I could get my hand on
and I still try new stuff, lighttable is something I want to try asap
and, yeah, editors are not the most important
 
though, it is important not to let anyone else get sucked in by Dreamweaver
 
but you need a minimum though. notepad++ doesn't support enough stuff to help noobs move towards error-less code
then it's just a matter of preference
but saying that moving away from the keyboard and using the mouse is not slower is just stupid, that's common sense
 
please stop insisting that the most important part of your work is typing
2
 
Can you guys please test this if it works for your time zones as well?
0
A: Convert 1 AM PST to local time in JavaScript?

DJDavid98You can use the .getUTCHours() and .getTimezoneOffset() methods of the new Date() object. For the ease of use, I attached this new function to that object. It will accept a parameter that specifies the time format that gets returned. Date.prototype.getLocalTime = function (format){ var date ...

 
11:59 AM
@tereško I didn't say that.
most interesting comment I've read in quite some time on a blog
 
@FlorianMargaine but you are saying it. Every time that you insist that using only keyboard makes you work faster
 
I'm saying it makes me work faster whenever I'm dealing with text, yes
(dealing with as in changing)
 
Like, highlightnig a row: using the mouse and sliding all the way to the end VS Shift + End, right?
 
12:34 PM
God help you, if you push the wrong shortcut on Dreamweaver
it ALWAYS freezes up for 10 sec while it loads the dialog box that you didn't want
 
Say, F1?
 
Often Ctrl + D or Ctrl + E while meaning to do Ctrl + S
 
My CTRL+D and CTRL+E are pretty far from my CTRL+S
 
0
Q: If statement, is the shortened version readable enough?

Dave HaighI have to perform an IF statement in my Javascript code. I utilised the first method shown below: (someVar1 !== "someString") && (someVar2[i].disabled = (someVar3.find("." + someVar4).length == 0)); Is the shortening of an if like this ok to do if my code is to be viewed by other membe...

 
12:58 PM
I just learned about box-sizing fml -_-
 
Haha, I just wish that the Flex Box Module is being included in IE :-D
 
1:59 PM
posted on February 24, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Are you into biology? Are you in the Boston/Cambridge area? Then you

 
00:00 - 14:0014:00 - 23:00

« first day (862 days earlier)      last day (4104 days later) »