« first day (419 days earlier)      last day (4520 days later) » 

5:03 PM
 
user1385191
protip: remove a class that hides an element instead of setting its display property via js
 
user1385191
.hidden
{
	display: none;
}

removeClass("hidden", el);
 
@Parek are you seriously?
 
Yea? Whats the problem?
 
5:07 PM
404 - File or directory not found.
Im a beginner okey. Please just help me
 
user1385191
I just did
 
You think that will make it?
The thing is, the map doesn't even show up?
..
 
I'm not sure what @Matt is saying other than talking about best practices
 
@MattMcDonald el.classList.remove("hidden"); ¬_¬
 
You will need to have your scripts actually load if you want anything to work on that page though
you have a script, which looks like it is the map lib, and it doesnt even load
that is your issue
 
5:11 PM
isn't this the loader? <body onload="OnPageLoad();">
 
Sure.
You are trolling though
<script src="http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js"></script>
 
user1385191
yes, that would work
 
Y U NO INCLUDE REAL SCRIPTS
 
user1385191
body onload maps to window.onload
 
@Matt a non-issue
 
5:13 PM
Thomas, you seems to be know what you are talking about.
 
MSFT boned you by having an example with a link to a script that doesnt work.
 
Could you please try to fix it and send me the code? I do really need to get this to work
lol
 
That's impossible... go search google for the source of that script
Im not doing that for you
or, hell, search Bing
 
user1385191
why do you initialize variables as null?
 
user1385191
that's generally what you do when you want to be "rid" of them
 
5:15 PM
So if i understands you right, the problem is that the Bing api script never actually runs because it isn't found
Don't ask me, ask Microsoft.
 
As i said, i just copied their code
but it doesn't seems to work
Unfortunatly
 
Go give me points for having to explain it to you in 20 lines more than it should have taken
 
Okey
 
"Looking from the outside in, the Viewport is a class that leverages all of the browser viewing space to provide an EXT JS-managed canvas for UI widgets." - What does this sentence mean? Particulary the Viewport class? (not native english speaker :) )
 
5:17 PM
well thanks. Microsoft are really wierd
 
MSFT sucks unless not giving you waht you need costs them money
still with the viewports?
 
I think I understand Viewport, but not used in that context. As said, not native english speaker....
 
im not quite sure because i dont use ext js
perhaps a full width and full height canvas that acts like a normal (scrollable) browser DOM or something
 
can anyone help me with this?
http://stackoverflow.com/questions/8433349/image-animator-browser-crashes
 
@AndyE meta.stackoverflow.com/questions/115468/… <-- see the comments :-)
 
5:25 PM
@ThomasBlobaum Still doesn't work.... WTF
But it still doesn't work
 
leave it to microsoft to make javascript not even look like javascript
 
Whats better, Dart or Javascript?
 
python
 
@Parek what error do you get
 
@ThomasBlobaum Dreamweaver says it's syntax error and the Map doesn't even show up.
 
5:29 PM
are you running IE embedded in dreamweaver or something
 
@rickyduck your mother.
 
lets all have a lol at microsoft's maps not supported in their own browsers
if so..
 
> Hey microsoft. Why you no support IE6 <trollface />
 
lol
 
lol
it can't be
sound impossible lol
 
5:30 PM
whats the actual error
 
@jAndy I will refuse to do what you said, and not open the Opera source code... and just tell you the answer without looking instead. :)
 
awesome! We should try this... it's like waterfall... but... renamed!
 
What do you mean actual error?
 
syntax error where?
 
5:32 PM
where: </script>
 
@Raynos yea she's dead mate
 
really wierd
 
@jAndy Properties with non-default internal property values (i.e., [[Writeable]], [[Enumerable]], etc., which Object.freeze changes) go down a slower code-path.
 
paste your script tag that has the map lib src in it here
 
<script src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.3"></script>
 
5:33 PM
@Raynos BTW, I see I have all the rep now.
 
Do you mean that+
?
 
@rickyduck awesome \o/
 
@Neal lool
 
@IvoWetzel it's pretty much waterfall. People Y U NO LEARN WATERFALL NO WORK
 
I really like the picture for coding... NOT
 
5:34 PM
@Raynos Good that you think that bro
 
@Raynos It should work fine. It's just a question of how efficient it is. :P
 
@AndyE the joys of unicode hacks :-) even on SO ‮
 
My definition of work is "on budget & on time"
 
@ThomasBlobaum Wierd right?
 
@IvoWetzel please tell me you dont have to deal with these people? :\
 
5:36 PM
@Neal how the hell do you unicode hack that in?
 
No we're doing cool scrum!!!!!!
 
Which also sucks.
 
The idea that "design" is "create UML diagrams and data models" is rage.
 
@AndyE try starring my message about the joys of Unicode, ull be pleasantly surprised :-)
 
5:36 PM
@IvoWetzel explain scrum
 
@Raynos It sucks.
 
Is scrum "I expect you to get 5 weeks worth of work done this week"
 
@Raynos Kinda
It like:
"We've make stories out of the stuff that needs to be done. Then we make tasks for those stories. Then (after we spend a day doing this) we'll start working on stuff"
And in the end. there is no agile, because you've got hard deadlines which still say "X needs to done at Y"
 
@AndyE ‮ Twas not that hard to do :-)
 
its just yet another way to set up a communication hierarchy that puts developers at the bottom and BSers at the top
 
5:38 PM
@IvoWetzel :\
 
so you're back to choosing 2 items from the triangle(amount, time, quality)
 
That sounds like a waste of time
 
but since you've got deadlines, you just have to kill the quality part!
 
Why cant we get real
Build minimal viable project
iterate aggressively
@IvoWetzel why can't you kill the amount.
 
and then it works (for once, because aftwards you'll have to deal with all the technical debt)
@Raynos Management
 
5:40 PM
@IvoWetzel can you tell management "Shit dont work this way"
 
@Raynos Managment thought for a long time that 9 woman could make a baby in a month... so... no.
 
@Raynos The minimal viable project can still be a number of years work, though.
 
But back to more cute things: Kid in the supermarket to his brother (both around the age of 6) "I want a Wii from Santa! So Mommy and Daddy don't have to buy it!" :D
 
@gsnedders of course
 
@Raynos So how do you manage development of the minimal viable project? You likely have deadlines to complete before you lose funding, and you have to do a specific amount of create the minimal viable product.
 
5:43 PM
@gsnedders I say build the prototype and make it work
You do the normal things
Find out what the users want
You know software engineering
 
@Raynos If the project is build a web browser that runs on devices with limited memory, and hence must handle memory allocations failing, how do you go about it?
 
@Parek try it in chrome
 
I did. same result
 
@gsnedders I would personally say "Y I TEAM LEAD. I HAVE ZERO YEARS EXPERIENCE"
 
give the real error
?
 
5:45 PM
@Raynos Your options are effectively to license Presto, fork WebKit/Gecko and spend a huge amount of time dealing with memory allocations failing, changes that won't get upstream, or develop your own from scratch.
 
Presto?
 
@Raynos Excluding licensing Presto, the rest of those options are going to take a number of years.
@Raynos Opera's engine
 
Why cant I develop my own from scratch
I mean rendering HTML. How hard can it be
 
use nodequery for your MVP, shit will be done in 49 seconds
 
@Raynos Give yourself a week for an HTML parser, then you just need to implement CSS!
 
user1385191
5:48 PM
btw @Raynos Opera 11.60 hit yesterday, so ES5 compat just went up
 
I can use an open source html parser
@MattMcDonald I know :)
ES5 compat on all major browsers
 
@Raynos How many handle memory allocations failing?
@Raynos Well, not quite. IE still doesn't support strict mode.
 
@gsnedders balls :\ memory allocations failing
IE Y U NO STRICT MODE
IE10 does, right?
 
IE10 does, indeed.
 
Did they actually implement it or just the placeholder they had in PP2?
errr
not placeholder but bugged
 
5:55 PM
Bugged in what way?
 
sigh, i'm on windows7 with high contrast black theme, except it's total garbage :(. Hard-coded color constants in other software becomes really annoying. Black on black, thanks alert box =/
 
According to Kangax's compat table (function(){ "use strict"; return !this })() fails in IE10
 
@OriginalSyn That was deliberate, much like how Chrome previously had similar behaviour, until ES5 support was completed.
 
user1385191
unix terminal...so cool...
 
@MattMcDonald You're in here form a term?
I've tried to w3m in here but obviously that wouldn't work =.
 
user1385191
5:58 PM
touch filename | vi
 
user1385191
I'm new to it, but that kind of stuff is awesome
 
@gsnedders isn't their ES5 support complete though?
 
@MattMcDonald You've read some pipes tutorials yes?
 
user1385191
no
 
ps aux | grep net
 
6:00 PM
And here I thought you understood the raw awesome power of sed.
 
@OriginalSyn There were a few holes in their strict mode support
 
user1385191
I've used xargs with sed
 
user1385191
grep -lr "something" folder | xargs sed -i "s/find/replace"
 
user1385191
you should email me this stuff
 
6:51 PM
I don't have your email :P @MattMcDonald
Private tweet it to me or something.
 
user1385191
my site has a contact form
 
user1385191
as long as you're in good standing with akismet, it'll go through
 
user1385191
but it's [firstname]@[mysite]
 
sent.
 
user1385191
I see you used the contact form :)
 
7:02 PM
why not just copy paste it for yourself -.-
 
posted on December 09, 2011

So HP open-sources webOS. That may sound like good news, but I doubt it. This is HP’s last resort. Apparently no one was interested in buying or licensing webOS. No word as to whether the webOS UX, by far the most interesting part of the project, is also open source now. What does “Good, transparent and inclusive governance to avoid fragmentation” mean. Whose governance?

 
@Feeds Yeah, it was doing sooo well up 'til now. Dammit, HP...
 
7:22 PM
Guys, is anyone here familar with Bing Maps+
?
 
7:44 PM
Nope
 
Ugh annoying problem
var Component = {
    destroy: function(game) {
        game.removeListener("event", this.handlEvent);
    },
    handleEvent: function(data) {
        console.log(this === Component); // false
    },
    start: function(game) {
        game.on("event", this.handleEvent);
    }
};
Basically how do I set up the value of this correctly in an event handler without creating an anonymous function on which I have no handle to remove it with in my destroy function
 
this === Component, maybe ?
oh wait
 
this.handleEvent.bind( this )?
 
@Esailija that returns a new function, how do I remove it in destroy ?
 
handleEvent: function(data) {
    console.log(this === Component); // false
}.bind( Component ), ...
doesn't work inline though but yae
 
7:54 PM
Yeah that sucks. Totally breaks prototypical OO
        constructor: function _constructor() {
		this.draw = this.draw.bind(this);
	},
 
yeah that's the idea
 
That feels dirty as hell
 
Which one is best? Google Maps or Bing Maps
 
Mapquest
</trolls>
 
would _.bindAll feel cleaner
 
8:07 PM
Yes it would
Thats basically what I want
 
is it ever better to use a class than an id even if there is only one element that has that class name
 
user1385191
for what?
 
user1385191
context is needed
 
say when defining an element in an html or javascript context
 
user1385191
post some sample html
 
user1385191
8:22 PM
including a parent node and sibling nodes
 
<div class = "uniqueDiv">Text goes here...</div>
 
user1385191
generally, you use classes for styling
 
user1385191
and ids for scripting/anchors
 
user1385191
classes can also be used for animating and certain dynamic behavior
 
user1385191
so I'd recommend both
 
8:30 PM
ah i found some some interesting questions regarding the use of class vs ids
 
9:15 PM
it's simple, i can answer that
don't use ID EVER for styling
no # should be in css
only classes
99% you always have the chance to use an # in 1% of your style.
when you need to add extra info in your tags for scripting, use data-something=""
don't use classes for extra info
 
user1385191
you don't need extra info
 
example: <div class="product id34"></div> <-- this is BAD
 
user1385191
pass json from the server
 
user1385191
use an abstract data manager
 
@MattMcDonald how do you do that?
 
9:16 PM
<div class="product" data-id="34"></div> <-- this is GOOD
 
Through ajax?
 
user1385191
yep
 
So thats XHR overhead
 
user1385191
I'm doing something very similar for my current project
 
when It can just be in html as data-x
 
user1385191
9:17 PM
load JSON data file, load JSON config file
 
use # the most you can for scripting when you are dealing with specific elements. Always 'try' to use ID in scripts.
so the rules are :
#ids for scripting the most you can. Never use # for styling
.classes for styling, don't user EVER classes for extra-data. When you need to apply script logic to varios type of same object, also use .classes
data- tag attribute for everything extra data that is script related. never use classes for this.
 
user1385191
well, you can use an external json file or just objects in the js file itself
 
user1385191
depends on the scope
 
Matt, you can parse an xml call a web service to decrypt it throught the nasa also, doesn't mean you should.
 
user1385191
...?
 
user1385191
9:21 PM
the problem with data-* is fragmented data
 
user1385191
that, and markup bloat
 
extra = little
you normally dont need it
 
user1385191
again, it depends on scope
 
10:11 PM
Does anyone have any experience reducing the size of an svg file?
 
gzip it? :D
 
javascript is so annoying
lol
trying to learn js, coming from a heavy OO background
 
10:31 PM
...
 
JS is fine if you accept the different way things work (high use of callbacks, prototyped inheritance instead of classes)
 
its not annoying
Ok, maybe a little.
 
Oh, mr. "i hate jquery" is where :p
*here
 
@ThiefMaster I don't hate it. I just think it's a mediocre solution to most problems
@gsnedders html5 media capture, what happened to it?
 
user1385191
11:04 PM
"hate" is a very strong word as well
 
user1385191
seriously, look at a question like this:
 
user1385191
1
Q: How to select the first div among other div siblings with Javascript/Jquery

eastboundrHow do I select the div that contains "bar"? <html> <body> <div id="foo"> <div>bar</div> <!--this one--> <div>abc</div> <div>123</div> </div> </body> </html>

 
user1385191
the answer should be either a loop over the childNodes or children[0]/firstElementChild
 
user1385191
 
11:40 PM
@Raynos People are implementing such things.
 
@Raynos working on after.js?
 
@MattMcDonald know much about RTFMP ?
@ThomasBlobaum no I got bored of doing that because I dont use those functions I was writing
Feel free to work it and implement the other array functions if you need them
 
SAD FACES
underscore most depended on lib :(
 
@gsnedders I mean HTML5 microphone, as far as I know there is only x-webkit-speech
 
y u no unseat it with a real async/web scale liv :(
 
11:45 PM
@ThomasBlobaum because I need to stop writing abstract libraries and start writing applications that consume them
 
But i need async underscore for THE MACHINE
thats why you are writing it
 
Again
you can fork it
and finish it off
I wrote 2 of the methods, the rest should be easy
 
3
Q: Legitimate uses of the Array constructor

Šime VidasI liked this question - Legitimate uses of the Function constructor - so I wanted to create a similar question regarding the Array constructor. Of course, the array literal notation is the correct way to create arrays. This would mean that the new Array notation should not be used. And "case clo...

^ interesting question
 
@AndyE the tl;dr answer is if you want to create a large array it can be quicker
 
user1385191
yeah if you have a fixed size, it's perfect
 
11:56 PM
@gsnedders: yeah, of course. But I think he's hoping for something really clever.
 
@MattMcDonald Not always. If you want a small enough array, you're better off just using [] and relying upon that by default allocating a long enough array.
 

« first day (419 days earlier)      last day (4520 days later) »