« first day (143 days earlier)      last day (4820 days later) » 

5:00 PM
It really depends on the company @MylesGray but I would say more would think of it as immature... but the ones who think its funny would be better to work for :P
 
Add more formality and maturity.
 
@Raynos all over or just the intro?
 
all over. The CV makes you look like a clown
0
A: jquery works in chrome and firefox, not IE

RaynosPut the code inside a <script> tag. <script type="text/javascript"> $(document).ready(function() { $('.fbpm').click(function(e) { fbpid = $(this).attr('id'); $(this).find('span').text('PHOTO ADDED'); $(this).parent('li').addCla...

People really miss the obvouis
 
user492203
Unicornify all avatars:
 
user492203
$('img').each(function() {
    this.src = this.src.replace(/(?:www\.)?gravatar.com/g, 'unicornify.appspot.com');
});
 
5:07 PM
lol that could be turned evil with meatspin :P
 
Anyone know of javascript based news site that are good?
I.e. DailyJS, Ajaxian, Weekly JS etc.
@Nyuszika7H all the avatars are unicorns -.- Some of the avatars are reloaded.
 
Thats not EXACTLY what your looking for, but its a great list of devs.
 
Interesting. This is useful to see if anyone has any significant activity recently.
 
user492203
Hmm, not all avatars are unicorns now.
 
Yeah that article is from last month, so its a pretty new list.
 
user492203
5:09 PM
DOMSubtreeModified works, but it's a bit too heavy.
 
wow I didnt realize how much faster querySelectorAll is compared to getTagsByName
 
you guys!!
woot off!!
current item is a blu ray player if you were in the market its only like 85 bucks
 
@Loktar I learned some stuff from that list
 
nice, yeah they are all pretty smart JS devs
 
None of the SO guys I know are on that list.
 
5:25 PM
@Ryan: yes there is
 
Every language needs a native map and a native reduce keyword
 
user492203
every language needs a native _ keyword
 
Hi every one...
Any one tell the DOM page event sequence
 
user492203
@AtulYadav what?
 
user492203
you mean event bubbling?
 
5:36 PM
i mean that which event executed first..
window.load ,document ready etc....
 
user492203
document.ready is what you want to use. window.load waits for the entire document to be loaded, while document.ready only waits until the document is ready to be manipulated.
 
then
ok
thanks
:)
 
user492203
@AtulYadav Are you using jQuery?
 
yes...
 
user492203
5:38 PM
ok :)
 
user492203
It has a shorthand for document.ready:
 
user492203
$(function() {
    // document is ready
});
 
user492203
which is the same as:
 
user492203
$(document).ready(function() {
    // document is ready
});
 
nice..
thanks :)
actually i started code with jquery from last one or two week
it powerfully thing
 
user492203
5:43 PM
yep
 
@Loktar @Raynos Is it a bad Idea to have this on my cv:
"Was born with a mouse in one hand and a coffee in the other, I have been building PCs from the age of 8 and and still going strong at it 11 years later, albeit with a tad more sophistication now."
 
lol idk man
it really depends on the positions your going for
if you are going for like super prof positions then I wouldnt
 
It may need some rewording
Be less informal. basically
 
@Raynos I dont want to come across as having no emotions - being no fun to work with etc
But anyway
i took your advice and totally redid it: careers.stackoverflow.com/mylesgray
 
Work isn't about being fun. It's about being proffessional, competent and showing the right image about your company
 
5:52 PM
@Raynos no one likes to work with an ass though
hence having a sense of humour isnt a bad thing
 
True. but theres a difference. Having a sense of humour is not the purpose of a CV
a CV is to show that your a professional competant employee
 
I suppose so, maybe it is just SO's format that made me do it
my paper cv is completely different
very military in the way it was written
 
Oh
In that case you can be a bit more lax with the SO CV
The bottom is fine.
 
You think thats okay?
Good stuff, I think one little thing wont put the HR people off
 
OH MY GOODNESS... sigh... coworker had an issue for a week and a half
a week and a half!!!
i fixed it in 3 mins.
he used a / in his js path.
 
6:07 PM
what an idiot >.>
 
its so sad.
 
how does he still have a job
 
yeah man, i really dislike this guy
 
idk, it pisses me off
 
6:07 PM
Even I would have fixed that, and i'm a brick
 
especially because he makes 78k a year
and does not deserve it at all
i ALMOST didnt tell him the error.
 
hahaha :P
how does he explain that to the boss?
or is he the boss?
 
No hes not the boss, im the "lead" our "boss" works somewhere else, we have a client though
who knows he is really lazy
but I work in the government so its really hard to be fired.
which sucks :?
Im not lead in title only in seniority/intelligence though
 
hahaha :)
how does he get that salary though?
 
Tip of the day : try to work in company that requires you to write code during the interview.
 
6:14 PM
Hopefully a lot cleaner now and not such a joke: careers.stackoverflow.com/mylesgray
 
@Loktar are you kidding me. Rage? We dont need people like that. Set a quota. If he cant meet it get him fired
I hate incompetance ;_;
 
I know man I wish I could.
it makes me rage daily.
Its pretty unhealthy actually lol
 
If I have a function like
var foo = (function(){
}());
Can I call it like this foo()?
Or can I call it within itself for recursion.
 
@ChristopherAltman no, because you have set foo to the return value of the function, not to the function itself. The () executes the function.
 
k
makes sense
 
6:23 PM
you probably want something like this:
(function foo () {
}())
foo will be set to the function in that example
 
Really aught to avoid recursion with self executing functions
 
why? unclear logic
 
Feels like it to me.
I'd much rather
var funct = function() {
     ... // recursion if you want
};

funct();
or a non recursive anonymous function.
(function() {
     // do some stuff once.
}());
You can access the function through argument.callee
Try (function foo() { console.log(arguments.callee === foo); }()) in the console
Do be wary that arguments.callee is getting deprecated.
 
I tend towards the first approach, var funct = function().... but wanted to avoid the funct(); if possible. The anonymous function is an interesting idea. Thank you.
 
@ChristopherAltman They aren't mutually exclusive. You can technically do var funct = function foo() { if you really want to ;-)
that makes foo the name of the function only within the function's own scope
 
user492203
6:33 PM
function create(fn) {
    window[fn.name] = fn;
    fn();
}
 
user492203
create(function foo() {
    alert('Hello, world!');
});
 
@lonesomeday be careful. IE leaks the name foo into global scope there
@ChristopherAltman calling an anonymous function is fine. calling it and assigning the return value to something is fine.
What's bad is having a self executing function that's called more than once through it's lifetime. Self executing functions should only be called once.
 
@Raynos bah, IE-compliancy is for wimps
 
@lonesomeday bah, Having a job is for wimps. Delivering the project the client asked for is for wimps. The client doesn't know the specifications, we do. The client has no right to complain
 
6:38 PM
@Raynos my development philosophy in a nutshell
 
user492203
Vote for DuckDuckGo!
 
user492203
in The Tavern (General) on Meta Stack Overflow Chat, 6 mins ago, by Nyuszika7H
Last Day to Vote: @Google barely winning over @DuckDuckGo for Best Search Engine #rcawards http://t.co/jEgnCHx
 
(for the uncertain, yes I am British and yes that was irony)
 
like Google has to win a vote to be the best
just did a test search between the two, Google clearly gives more relevant results... voted :)
 
@lonesomeday I actually thought you were just a big d***.
 
6:43 PM
@Raynos sigh people often get that impression
 
Maybe it's because it's true!
I'm perfectly aware of sarcasm though.
@lonesomeday would you like to recommend some advanced learning resource for JS? preferably some meta ones
 
IE-compliancy is for web browsers XD
 
@Raynos I'm not nearly competent enough to do that...
 
yeah clearly, I can tell by the font you're using to chat with
 
@lonesomeday Oh I had this illusion you were competent.
1 message moved to bin
@Ryan this is not the place for that
 
user492203
6:47 PM
thanks god @Raynos
 
wtf?
you're right, it's a place to take meaningless jabs at each other... I was just trying to lighten the mood
whatever, back to work for me
 
I dont like the troll face. Besides most images are way off topic
Do people actually think I'm taking jabs at others. I really need to work at making my humour more obvouis. I have difficulty with this thin line between a joke and being an ass.
 
7:01 PM
@Nyuszika7H also ho ho. You are a funny man.
 
yc
7:17 PM
Hey, if I want to convert document.cookie into a query string, document.cookie.replace('; ','&'); should work without problems, right?
 
user492203
@yc Nope, you need to use a regular expression to replace all occurrences.
 
user492203
var query = '?' + document.cookie.replace(/;/g, '&');
 
yc
oh, hm, good point
well, document.cookie.replace(/;\s/g, '&');, though, right, since there's a space after the semicolon?
 
user492203
right
 
user492203
Or you could do document.cookie.split('; ').join('&'). is going to test which is faster
 
yc
7:27 PM
oh that's clever. I'd help out on a jsperf for that
(i have an ungodly number of versions of internet explorer :P )
 
user492203
OMG
 
user492203
IE 1.5? Who uses such old browsers these days?
 
user492203
in The Tavern (General) on Meta Stack Overflow Chat, 15 secs ago, by Popular Demand
@Nyuszika7H What, no IE 11 preview?
 
yc
It's mostly a novelty item. Nothing really works. I think its with 1.5, if a site tries to set cookies, you get a manual notification and it asks you if you want to allow them to be set.
 
user492203
@yc Split + join is clearly faster. jsperf.com/split-and-join-vs-replace
 
yc
7:33 PM
@Nyuszika7H I have a tie in Chrome 9. trying out some others
 
Same
 
user492203
@yc replace is 93% slower in Chrome 11
 
user492203
Next test is a tie…
 
yc
split is 60% slower in my FF 3.6
 
user492203
It depends on the string's size, too. Try the new one, it's much longer and replace is around 40% slower: jsperf.com/split-and-join-vs-replace
 
yc
7:40 PM
@Nyuszika7H same results for me :), though the original test is closer to the conditions i'll be dealing with anyways
trying some ie
 
@yc Any chance you could pack that vm and upload it to megaupload or the like?
 
yc
@MylesGray Yes, good idea, but I need to remove some personal info from it.
I'll try to do it tonight, and will reply to you when its up
 
@yc I have an account there if you need to upload and on Rapidshare too
cheers :)
@Raynos With reference to your "do people really think i'm taking jabs at others?" <- resounding yes from me :P
 
D: Is it not obvouis I jest?
@yc why do you have four versions of IE6
 
yc
@Raynos I actually have 5, if you include IETester
 
7:48 PM
thats not an answer to why
 
yc
IETester excluded, I think I found 3 different ways to download IE outside of the Microsoft.com world, and one of those ways had 2 different versions of IE6.
Knowing how I do that sometimes these browser repackagings can be unreliable, I'd rather keep all 5 than make an artificial judgment as to which to keep
 
“$.cookie is not a function” error in FF even after including jquery.cookie.js, anybody tell me how to solve this, am using jQuery
 
yc
@stackoverflowFan does jQuery control the $? try jQuery.cookie
@stackoverflowFan (or, test if it controls it by logging (jQuery===$);
 
@Raynos Not really :P Sarcasm + intewebz = flame wars
 
Thanks for your reply, I'll try your suggestion!
 
7:51 PM
Solution: Sarcasm + :P smiley face
 
@MylesGray But thats bad
 
In what way good sir?
 
user492203
Chrome doesn't support @require in userscripts? :/
 
yc
@MylesGray might take you up on that offer, but at 3.5 gigs (before I've removed the insignficantly-sized personal data), this might be a more logical choice for BitTorrent.
 
@yc Yeah maybe, you could rar it and split the archive into 3 pieces?
oh man 2 silver badges in a day im on FIRE
 
8:05 PM
@MylesGray Which ones?
 
Deputy and Outspoken
 
Ohh, I still don't have my deputy yet...
 
Not exactly Generalist but im still happy
 
def
 
@ircmaxell Deputy is really easy to get just hover about: stackoverflow.com/review
flag the obvious took me 2 days to get it
 
8:07 PM
Yeah, I know...
 
maybe 30mins each day
Well on my way to: Convention, Civic Duty, Pundit, Sportsmanship and I'll get Good Answer with 7 more up votes on this:
18
A: How does today's (Jules Verne) Google's Doodle work?

Myles GrayThis is the best I could do with making all of their code readable: http://jsfiddle.net/Mutant_Tractor/jRkND/16/

 
user1385191
I'm surrounded by the "love jQuery, almost failed Javascript class" crowd in class. It's really frustrating.
3
 
ha
 
Oh dear :/
 
user1385191
they blame the teacher
 
8:16 PM
My class is packed full of "whats a variable?" people
 
user1385191
hahahaha
 
I have to show people how to construct href's - no joke
 
user1385191
I messed up on the final and still got an A
 
i dont even think the idea of a javascript framework was around when i took javascript way back when in 2005
 
2005... I had just learned why my page wouldn't show in the browser - there was no .html extension.. it was .txt
:P
 
8:18 PM
@MylesGray :D
 
Lawl
 
@MattMcDonald tell them to do it properly
 
user492203
 
@Eric you'd be suprised how far back frameworks go. They were just not populair
 
@Raynos yeah hyperbole
 
user1385191
8:20 PM
the problem is the illusion of jQuery being a language that transcends js itself.
 
jQuery. It goes to your <head>
 
user1385191
I see job postings that mention jQuery and nothing about JS.
 
@Raynos Just like the Cloud concept existed back in the 70's...
 
user1385191
Using jQuery and not knowing JS is like driving a luxury car (Jaguar, for example) and not knowing how the car actually works.
 
@ircmaxell weren't they called mainframes back then? ;)
 
8:23 PM
Well, time sharing, but yes, it ran on a mainframe
 
@MattMcDonald i am probably stronger on Jquery than i am on pure JavaScript. although thats not saying much
 
user1385191
If you understand how it works, you're just that much better.
 
Thats the one, time sharing
I remember Crock talking about it
and my dad... :P
he often tells me how 64K of RAM once cost him £1,500
 
user1385191
I think even more frustrating was a bug I ran into today.
 
user1385191
"document.forms[0].submit is not a function".
 
user1385191
8:26 PM
my teacher had each "input type='submit'" have a name of "submit" in the working file.
 
Anyone have a question that they want a bounty put on?
I have 50 rep to get rid of and 2 badges to gain :D
 
user1385191
2
Q: Key down lags Mouse in Flash with FF.

ElCucoArgHi, I'm trying to improve the performance of a flash game we did. It's a game very similar to GTA but for flash... This is why its important that Mouse and keyboard can be used at the same time... But in Firefox (with the last flash version, and the last Firefox version) in some cases if you pr...

 
user1385191
that one is a tough question
 
Bounty started :)
its a day before i can accept i believe
oh man.. 10 upvotes till bronze css
36 for html 8-)
 
user1385191
you're 90/107 on css and I'm 19/23 on as3
 
8:36 PM
my html is much better 64/64 dont know why though
mind you most css question askers bugger off and dont upvote
 
sounds like designers to me
 
user1385191
I find I run into the same problems.
 
need to get into C/Java
 
user1385191
the progression I have planned is
 
user1385191
as3 >js > php > python > java > C > Objective-C
 
user1385191
8:40 PM
I'm about 60% through step 3
 
Mind you with my soiree into Android might push me into objective-C
Yeah I have this on the cards:
HTML > CSS > PHP > JS > Python > C > C# -(maybe)> Objective-C
 
user1385191
I have a friend that's one of the design-type web devs that's trying to go from novice JS to Objective-C.
 
im about 25% on JS
 
user1385191
I told him he's crazy
 
@MattMcDonald he looking at making apps?
 
user1385191
8:43 PM
he's going from using jQuery on sites to doing iPhone stuff. He wants a raise.
 
yc
@MylesGray I've got mine on JavaScript and Google-Analytics (I'm the only one!), and i'm 91% on jQuery
 
novice js to objective-c is a huge jump
 
user1385191
you bet it is
 
I have a good bit of .Net experience, some Java and a fiar bit of PHP
Going from .Net will be hard, man its so easy with that
 
user1385191
As someone who has worked with OOP in AS3 for almost 2 years now, Objective-C scares me.
 
8:46 PM
why is that?
 
user1385191
it's a completely different discipline. I'm not coming from a Compsci background.
 
indeed
 
maths helps :)
 
Why are you guys interested in learning C? It's very much "one of these things is not like the other" in both of your language lists
 
@JustinJohnson Because of the range of things you can do with it, mobile apps to desktop apps for all sorts of things
way more interesting than brosewr
 
yc
8:49 PM
I sort of like my little enclave of never having to worry about memory management.
 
You can do mobile apps in straight c? I didn't realize that was supported
c is more useful for embedded devices
when you need to be close to the hardware
objective-C and c# can give you access to the desktop domain
 
what do yall use for form validation with jquery?
 
I mean, I like C, but as @yc touched on, there's a lot to worry about that Python, Java, C# and Objective-C handle for you automagically
 
@JustinJohnson as long as its better than ASM im good :)
 
user1385191
I think that's what interests me.
 
8:53 PM
I did some ASM before... man its hard
 
user492203
Hi again! :)
 
user1385191
you're given a really broad toolkit
 
5 more votes on the google question and I'm getting me a shiney silver badge :D
 
It's true: C is a really interesting language, and C++ as well.
but you might want to brush up on your compsci basics
 
9:05 PM
Did I miss any obvouis steps?
0
A: Can I achieve this in HTML5 + other web technologies?

RaynosYour looking for an online diff tool which takes n files containing a list of timestamps in some order including a extra data to be displayed in place but not parsed in the diffing. The file upload would involve <input id="upload" type="file"> Along with snippets of javascript $("#uploa...

@MattMcDonald objective C isnt much harder. C & C# are harder.
@MylesGray apps? In C? Hell no.
Tbh Objective-C isn't worth learning for the sake of it. If you want to develop in the iphone then fine. C# is worth it for the large windows application base in it. C is always worth learning. Python/Ruby can be useful to learn. It's a very different scripting style to JS. Java and C# are familiar enough that you only really need to learn one. And C++ is a pain to learn
Can I not join the conversation late?
 
I would take a look but stackoverflow is having issues
 
It is a little slow, it seems
 
Hmm your right, it is a bit slow.
 
@Raynos I was gonna answer that too...
 
@MylesGray You can still answer... Just write a better answer. It was fun. I got to learn jQuery tmpl and the HTML5 file API
 
9:17 PM
The file API is nice :)
is that the same as drag form desktop right?
 
Yes. It's a bit different in terms of accessing the data, but pretty much
 
user492203
9:42 PM
night
 
night @Nyuszika7H
 
@MylesGray the file API doesnt have a sequential reader.
 
adios
 
@YiJiang is using the HTML5 File API on large files bad?
 
@Raynos hmm :/
 
9:58 PM
@Raynos To be frank, I'm not sure
 
I see. We need C script in the browser
 
Anyone here use asp.net?
 
char* id = "foo"
NODE** nodes = DOM_GETALL();
NODE* elem = DOM_GETNODE(id);
elem->DOM_APPENDCHILD(nodes[42]);
@JeremyChild what do you need?
 
user1385191
it seems the stack is running super slow.
 
@Raynos Didnt need anything just my boss just downloaded some MVC controls and is like "we can use these in our WinForms applications"
 
10:08 PM
:D Tell him your the technical expert and the answer is no.
 
He then went on to say "We can use them in the asp.net ones instead"
Then i tell him the current apps are like 4 years old and are Web Forms
which required me to explain the difference
 
If you want to use MVC controls your going to have to write a new website on a new web domain
Or a seperate sub domain
you cannot mix web forms and mvc
 
Exactly
 
You can link pages from the old website to the new one
 
Oh really???
How do i do that. JOKES
 
10:10 PM
but they are seperate. You can have them share databases but the website code behind is seperate
 
We roll with logic dlls.
 
We have an old win forms asp.net website at work (dated 2002) that had a MVC website integrated into it. Was done on a sub domain, it's a completely different website. The linking and integration just made it feel like it was part of the old one.
 
U can plug them into both WinForms and Asp.net apps to achieve the same data
Call me old fashioned but Razor seems like we're going back to 1999.
 
Yes you can wrap services and interfaces into dlls
What is Razor?
 
A new MVC view engine
 
10:12 PM
I'm more of a JS/Client expert. Don't know much about .NET
 
like Classic ASP/PHP ish
 
Oh. Well I like templates. Templates make sense. I just like JSON driven templates.
 
Do you think its taxing to use the 'ends with' selector in jQuery?
 
The server side is only there for security and database management :D
id -> element -> class -> pseudo / attributes
There is a order of magnitude between each of those selectors
 
ahh so drill down
 
10:14 PM
$("#id") is about a 1000 faster then $("[id~='id']")
 
so instead of searching for all id's search for all element types with the id.
Makes sense.
 
Well some selectors delegate to natives like document.getElementById
Other selectors iterate over the entire DOM by treewalking over document.body.childNodes recursively.
Treewalking is expensive
 
I love treewalking, So peaceful. Except when you fall through the canopy, aka canvas.
 
Heh.
Anyway, back on topic. Tell your boss that's not how it happens.
He's in no position to argue with you. He can either take your word for it or sit down and listen to you explain it but he can not argue.
 
He always argues
I got in trouble for saying "its the best i can do"
Seriously got into trouble for saying that to one of our partner companies.
 
10:21 PM
Was it true?
Don't tell them "its the best you can do"
Tell them that you can do it. And it's going to take x hours, y money and has z limitations
Rather then cutting to the chase tell them why you cut to the chase (Because it takes far too long, costs far too much and the end product is far too limited and specialised to be of use)
 
I shall use that in the future
But it was a colleague from a sister company and my boss was just eavesdropping.
 
Almost everything can be done with an activeX control. It will take you at least 10 hours for trivial things and upto 3 months for anything meaty. It's IE only and likely to break with IE9 or any other new version. It has gigantic security flaws. it's completely unmaintanable. It requires the client to download the dll before it runs on their machine. It requires the client to accept the installation of unsafe activeX controls and to "trust your company".
 
I was thinking that this morning. If activeX took off where would the web be?
 
But the point is. It can be done.
Because IE is a bastardized child of the windows OS
 
Out of wedlock?
 
10:26 PM
var shell = new ActiveXObject("Windows.Shell");
var C = shell.getDrive("C:");
var reader = new shell.FileReader(C);
var list = reader.ls;
for (var i = 0; i < list.length; i++) {
     alert("file in your C : " + list[i]);
}
:(
 
Build Successful
 
You can actually abuse ActiveX to do something like that.
 
You can abuse anything with time and resources. Take for instance the PS3
 
Anyway did you have some kind of actual question. Or did you want to rant about the technically illeterate
 
10:41 PM
Do you have a regex I could use to store my javascripts in the database?
 
@david I'm going to punch you. But please do make that a StackOverflow question
 
It'll get closed as subjective
 
That wasn't a serious question right? It was a joke question right?
 

« first day (143 days earlier)      last day (4820 days later) »