« first day (1348 days earlier)      last day (3601 days later) » 

7:00 PM
@Loktar if your buddy isn't going to take the job tell him to write the code anyway and hide a forkbomb in it.
 
@JanDvorak I wrote a function to handle that pretty nicely :D
io.on("event", function(obj) {
	var list = document.getElementById("events");
	var item = document.createElement("li");
	var node = document.createTextNode(obj.msg);
	item.appendChild(node);
	list.insertBefore(item,list.childNodes[0]);
});
 
you know they will run it first before reading the code
 
@rlemon yeah he posted it to dailywtf
he isn't doing it
 
@JanDvorak interesting, I didn't know that.
@JanDvorak and that is safe in most browsers?
 
@rlemon well, otherwise this would break if the element you're appending to was empty
 
7:01 PM
@Loktar if they put a lot of weight on it, I'll take 10 hours of doing it at my leisure over 4-5 hours of on-site interviews like they have at google
 
@JanDvorak well if ul.firstChild == undefined, could you do..
 
@Mosho yeah.. but thats Google
 
@JanDvorak ahh, yea I suppose that makes sense.
 
this is some random company
 
But the main reason why I hate jQuery is because it help thousands of people writing JS that works with EI8 , which clients who uses IE8-7 are NOT FORCED TO CHANGE browser which forces thousands other developpers to use jQuery because there is still wild browser outhere not forced to upgrade. A lot of people think jQuery is good for the web but I think is a bad thing because now web developpement without jQuery is more painfull to do modern things
 
7:02 PM
var child = ul.firstChild || null;
 
uh oh stars a plenty
 
Who the hell is staring everything again
 
@WalleCyril use jQuery 2.x
 
This article ( code.tutsplus.com/articles/are-jquery-users-fools--net-22904 ) was written by a jQueer(y) that sucks jQuery bumbum
 
None of those stars are funny >=|
 
7:02 PM
Fuuuuuuuuuuuuuuu
 
var ul = document.createElement('ul');
 console.log(ul.firstChild); // null
var li = document.createElement('li');
ul.insertBefore(li, ul.firstChild); // yay I work. and I learned something new today!
 
@WalleCyril bad reason :/
 
I cried tears of joy when my supervisor told me to not worry about outdated browsers for this project
 
I think @WalleCyril is just mad at the world
 
That said, most of what people use jquery for would work in native javascript easily, so I don't see why that helps support older browsers
 
7:03 PM
fixed the link
 
Caring about old browsers is important. I suggested we don't drop support for IE8 at least twice :P I hate supporting it, but it still has a significant share of users.
 
@Cereal native to which browser...
 
@BenjaminGruenbaum I have to support IE8 at work, and it took me a whole week just to fix all of the ie8 bugs in the site
 
believe me or not : If nobody ever tried to make things work for 3+ years browser, everyone would at least use IE10.
 
My only problem with jQuery is its easy mode and it makes developers think they are real front end developers.
 
7:06 PM
@NickDugger you should learn to debug it better.
 
@WalleCyril here's my situation to why I like jQuery
 
@BenjaminGruenbaum yes, there's that too... lol
 
@Loktar lol, nicely put.
 
@Loktar script kiddies predate jQuery
 
@JanDvorak not saying this is anything new
its annoying regardless though
our front end devs here only know jquery
and argue for it ofc. "Why wouldnt you use jQuery?"
 
7:08 PM
@WalleCyril I don't care, our conversion rates shouldn't be cannon fodder for low adoption rates. Some people don't want to pay and upgrade Windows XP and can't install other browsers.
 
that was a discussion I had the other day
 
@Loktar how do they add two numbers?
 
@JanDvorak haha I hope I never find them doing that with jQuery
but who knows!
 
@Loktar that's great, it positions you so well in the market and stuff
 
@WalleCyril basically, I work with an organization that has contracts to help victims of sexual assault in the military. In the military, technology is highly restricted, including operating systems and browser versions. This means to reach those people in need, we MUST support IE7 100%. jQuery 1.11.1 and lower support legacy browsers nicely and make my testing much easier, and much less code to support older browsers.
 
7:08 PM
@BenjaminGruenbaum how come they can't install other browsers?
 
@BenjaminGruenbaum what do you mean?
 
The government is a big reason IE7 is still supported by websites
 
@RUJordan I guess military doesn't use Google, then?
 
Which is ironic, seeing how unsecure it is as a browser
 
7:09 PM
@RUJordan screw sexual assault victims - the most important thing is that people get a woody from new browsers with new APIs.
 
it really depends on which part of the gov
state govs seem to be lagging far behind
 
@Loktar the more people who can't actually code - the more valuable you are as a frontend developer :P
 
the fed gov is supposed to be on entirely ie8
 
I don't know much, but there are contracts on Windows XP that force the government users to run IE versions
Something like that
@BenjaminGruenbaum lol that's bad
 
@BenjaminGruenbaum oh well true, but that goes into my other annoyance, a lot of people have no clue that only knowing jquery is a hinderance
and put a lot of weight in that skill.
 
7:10 PM
@RUJordan fail
 
granted those are crappy places to work I imagine
 
@JanDvorak yeah I worded that wrong.
 
but yeah that was always my argument at stratcom
they preach security so much
 
to be stuck on single browser is wrong
 
yet we were on XP using IE6 for the longest time
its really just about laziness and lack of knowledge
 
7:12 PM
I have XP/Chrome on one of my machines
 
tell me this isn't the worst fucking idea ever:
 
@JanDvorak lol i do on my mame machine
 
it is a stylus, but you can click out the pen portion
 
just installed it over the weekend, was so weird being back in XP
 
inb4 someone forgets and writes on their device.
 
7:12 PM
@Loktar I find terms like 'jQuery devleopers' hilarious :D
2
Learning APIs is such a small part of coding :/
 
why not move to some lighter Linux like Lubuntu ?
 
@jurka eh wasn't sure what kind of mame frontend support I would get on linux
 
@jurka Solaris?
 
I wish this mouse detected when I switched hands so that I could use it like a normal lefty and righty as needed
 
ha! I have a windows 98 machine at work because it has some software on it I use that I don't feel like re-writing for anything else.
and it only works on windows 98
 
7:14 PM
Magic Mouse my ass
 
@rlemon not even in compatibility mode?
 
@JanDvorak nope
too lazy to figure out why. just keep the machine around for when I need it
it is some data analysis software that was written before my time here.
"it works" so i'm not fixing it :P
okay, so I'm still doubtful I can even do this:
I am using socket.io -> so on the server you just io.on('whatever', shit); and on the client I io.emit('whatever', data);
that is all cool.
now, consider that the server proxies the ws to another server.
how, on the first server, so I do the same thing as io.emit('whatever', data) like on the client
 
@NickDugger looks like an emerging case of toolbaritis
 
I feel like this shouldn't be impossible. but my google-fu is not with it today
 
7:21 PM
My google-fu is weak as well.
I feel so out of it today
 
I'll put together a gist to better show what i'm attempting
 
ok, I'm back!
 
@NickDugger yes
 
7:28 PM
well, here is a gist with some code and shit gist.github.com/rlemon/f14d3fb4559e961cb802 hopefully someone has done something like this already
so client emits -> server B proxies -> server A handles.
I want server B to emit directly to server A in a specific case and cut out the client (makes no sense for the client to do this action)
 
Did we ever get a deal with it gif?
 
!!dealwithit
 
We surrrrreeee did!
 
Hi guys! is there a Javascript equivalent to Python's CLI command profile -s cumtime app.py where -s denotes the ordering and cumtime the cumulative time (cum = cumulative) and app.py the script
 
7:32 PM
cumtime ??
sounds dirty
 
yikes
 
@abdellahmansur yes, it is called "Dev Tools"
 
LOL
 
reminds me of those games where you get a word and have to somehow work it into a meeting
> alright buddy, you got cumtime. Get that in the code and you get 200 points.
 
7:34 PM
Cool thanx I'll install Chrome and try it out :) yes I agree that sounds dirty but it's not my fault xD
hahaha
 
A user on SO showed me how to make tabs have formatting functionality between <code> tags in a text area, but in previous research it looked like doing this was hard as hell. Could someone explain why/how it works, and how "smart" the solution is? I'm impressed, but then again, I'm intermediate
<code>$("textarea").keydown(function (e) {
var t = this.value,
n = this.selectionStart,
r = [t.slice(0, n), t.slice(n)];
if (e.keyCode == 9 && t.indexOf("</code>", n) != -1 && t.lastIndexOf("<code>",
n) != -1) {
this.value = r.join(" ");
this.selectionStart = this.selectionEnd = n + 1;
e.preventDefault()
}
})</code>
 
it's a big help having those calls taking longer shown first and even nicer seeing it with Javascript
 
The only thing I wish chrome had was the 3D layout that firefox offers
 
@RUJordan I don't really miss it, actually. But yes, it's nice.
 
7:37 PM
If you guys haven't installed it, the cv-pls extension is awesome. It crosses out cv-pls links when they are closed
 
@RUJordan doesn't work in Chrome anymore
 
Really? It's working on mine :x
 
Maybe there's something in Javascript out there?
 
@RUJordan how and when did you install it?
 
7:39 PM
Given that Javascript must work with workers to have a good performance with 3D scripts
 
OK...on Chrome / Windows
@abdellahmansur not true
 
Installed maybe last week? Chrome, Mac OSX
 
you can have a single-threaded high-perf 3d app in javascript
 
Well sometimes.. you're right.
 
psh I've done decently performing 3d stuff with 2d canvas sans webworkers
I mean it wasn't cumtime or anything
but it worked well.
 
7:42 PM
so has anyone looked at my gist yet? or are we just having a AnalGreg/cumtime kinda day?
 
haha LOL for the cumtime
 
I've had a canvas app that painted ~100 lines in 3d at ~7fps
 
@abdellahmansur :P
 
@rlemon Your goal seems plausible
 
@JanDvorak :( are you talking about my 3d painter?
 
7:43 PM
so I overlooked Javascript showing that I have still much to learn about it :P
 
yea but I have no idea how to proceed
 
wait so. How are the RESTful endpoints declared in angular? Can angular also change the $location?
 
@Crow Yes
look up $resource
 
@Loktar I'm talking about a fiddle I've made
 
user1596138
7:43 PM
> write a function that checks whether the braces in each string are correctly matched
 
user1596138
So I fuckin do that
 
user1596138
And it says I'm wrong
 
ooh ok
 
@Jhawins any test case?
 
user1596138
Says "([)]" should return false because they don't match
 
7:44 PM
@Martin what if I have several GETs that return json that don't require any real arguments?
 
I'm so accustomed to low-level multi-threaded programming that I'm a bit lost when I have to tackle a discussion about single-threaded apps xD
 
user1596138
Looks like a match to me. It never said what it needed to be
 
God I just wanna go home
 
@Jhawins they don't match.
 
@Crow You can just do $http.get() ?
 
user1596138
7:45 PM
Clearly they are balanced
 
balanced, but crossed
 
But I think $resource is still better
 
@Jhawins you can be pedantic and tell them that none of those are braces
those are brackets and parens
{ } <- braces
 
@Martin what I mean more of. I want to grab several resources, and update the url to match those resources that were retrieved. I still want a class to encapsulate them, but the class is always the same thing with same methods
that wasn't very javascript-y but I hope that makes sense...
 
@rlemon can't we call them 'stache brackets?
 
user1596138
7:46 PM
@rlemon Dude the whole thing is a joke anyway lol
 
@Crow Could you just put it in a service?
 
user1596138
This Hired.com place says they do weirdo auction deals to get people hired. They want you to do a 60-90 minute assessment before you can activate your profille
 
user1596138
And the assessment is timed and you can't pause it
 
Guys, is there an event emitted once data binding has completed?
 
Have to leave guys.. I got the equipment to flash the kernel of an Android based smartphone and I'll try to make it "live" again with a custom rom... fingers crossed!! see ya
 
user1596138
7:48 PM
And I haven't even seen what their site is like... You don't get in at all
 
@Martin not entirely sure... there are rarely if ever arguments.
 
@abdellahmansur stay away from sharks
 
@JanDvorak haha thanks.. there I have only snakes
 
@Crow Regardless. If you wanna encapsulate it, you can use a service
 
@JanDvorak before I ask you a specific socket.io question, were you replying to my plea only because I seemed to need it, or do you actually have experience with socket.io?
 
7:49 PM
Then inject it into the controllers that need it
 
If it is successful I'll make a blog post about it
 
@rlemon no experience, sorry
 
@dystroy ping
 
how do execute some code after angular js bindings render on the page?
 
@CharlieBrown That's what I just asked too heh
 
7:50 PM
inject it into other controllers... I feel like a complete noob here
 
@Crow how new are you to angular?
 
@Martin nice
 
I have been using it for around 30 minutes now
 
Okayyyy
Got it
 
im trying to syntax highlight, but the highlighter runs before the html finishes rendering. tried using $watch but that runs too soon as well
 
7:51 PM
@Martin I smell a sock here
 
@JanDvorak Say what
 
well here goes anyways, hopefully (again) someone has tried this before and I don't have to wade into the deep end on my own. I figured out I can go server to server with socket.io-client package. cool. now my question is: will this cause issues because I'll be connecting from the client AND the server to the same end point?
 
I think my use case is fairly basic. A wide variety of routes return json, and I want it so certain buttons will fetch certain json.
 
@Crow read about angular dependency injection and services/factories
 
7:54 PM
This question appears to be off-topic because we are a freelancing website. — rlemon 15 secs ago
@JanDvorak aww, I like my close vote reason better
 
s/are/are not/
 
fuck
:/
fixed.
I really wanna just remove links like that when I see them
 
smells kinda spammy, actually
 
0
Q: Request for help fetching data in excel

user3341207I keep track of certain stocks and I like to know what analyst price targets are out there for them. There are two different sites which I regularly use: finviz and marketwatch. So, if I want to know what the average analyst price is for stock AAPL, I would type: marketwatch - http://custom.gt...

he is
all of the questions are "I need help, write my code"
btw - cv that last one
 
cv'd the linked one
 

« first day (1348 days earlier)      last day (3601 days later) »