« first day (1125 days earlier)      last day (3822 days later) » 

5:01 PM
Can an outputStream become an InputStream or vice-versa at some point??
or is that language specific??
 
so the padlock was back and then removed again
 
Hey cool, Dell is taking us out to lunch next week.
 
the company?
 
Yeah, a representative apparently takes our company's IT staff out to lunch and talks about new technologies.
Not a sales pitch, just like.. a presentation of things.
Should be fun
 
@RUJordan Sounds like a sales pitch
Not that I'd complain
free lunch is awesome
 
5:10 PM
slightly ruined by Dells presence :P
 
hi. I posted him the working fiddle and he gave me -1 for this. stackoverflow.com/questions/19982361/…
 
would suck for Dell representative
You have to work while you eat
 
please check the question. I don't think it's fair.
 
I'm not the type of person that would enjoy trying to do a sales pitch while I'm enjoying my moment of time away from work
 
0
Q: jsPlumb on rotating elements

Stasikconsider the following fiddle: http://jsfiddle.net/7fgDf/3/ $(".cl").rotate({ bind: { dblclick: function () { $(this).data('angle', $(this).data('angle') + 90); var w = $(this).css('width'); $(this).rotate({ animateTo: $(this).data(...

check my fiddle in the answer, judge yourself
 
5:12 PM
@Neil my boss said it's not a sales pitch though
@thenewseattle you're fighting the OP when he said your approach won't work?
 
@thenewseattle Ok ok, I offset your -1
 
I am not fighting him
 
they say that when they call me up selling me things
 
@Neil thank you so much
he changed his question 3 times and gave me -1.
anyway.. thank you Neil
 
@thenewseattle No problem. You made a short answer, but that doesn't make it an inferior answer
I think people automatically assume that, but short can be concise as well
 
5:15 PM
@Neil the answer is short, but I spent a lot of time thinking about it
and made his fiddle work
 
@thenewseattle Well don't know if I'd give you +1, but you don't merit -1
@RUJordan You'll tell me later what it is then ;)
 
thanks
 
@Neil I'll video take it for you :D
 
@RUJordan I think "not a sales pitch" was intended to be in quotation marks :P
 
haha I guess we'll see. You're right though, free lunch
 
5:18 PM
!!are you here
 
@BenjaminGruenbaum Certainly not
 
There are those who say that love conquers all. They lie. Free lunch conquers all.
holy crap, I literally just got an internal memo saying that DELL wants to present new clustering technology
DELL wants to take over the world, apparently
 
That or we'll be at the same lunch and not even know it.
 
I can't change JSON data that contains single quotes unescaped, and I want to parse it in JS (using JSON.parse right now).
 
@RUJordan Maybe, but I doubt that
I'm in italy, so unless they plan to fly us to America for a bite to eat
 
5:22 PM
I get a SyntaxError: Unexpected Identifier when I try to use JSON.parse
Is there a way to escape those quotes before I try to parse it in JS?
 
@NathanJones If you trust it you can eval it
 
Ok, gtg k bai
 
That works, just never do that with JS you don't trust.
 
@thenewseattle why are you getting so upset over a -1? I just saw your comment in that question and do you know that the OP was the one who -1 you?
(Legit question: can you see who downvoted you?)
 
vanilla-js.com > jQuery
 
5:24 PM
hmm...I still get syntaxerror. just tried it in the chrome console
 
@Neil d'aww shucks. Webcast in on my lunch lol
 
with some example data that has single quotes in it.
 
Bye!
 
Don't leave me!
 
@SomeKittens are Q&A votes anonymous?
 
5:26 PM
If I do eval (jsonString) I still get syntaxerror
 
@RUJordan You mean votes on main?
Yes, except to mods
 
I have to work on a server that takes 10 seconds to load pages......
 
Looks like I may go to dotjs actually...
 
@SomeKittens that's what I thought. So he/she is getting worked up against the OP that might not have even voted her.. lol
Classic
Back to work.. sorta afk
 
@BenjaminGruenbaum any suggestions?
 
5:28 PM
Don't produce invalid JSON
 
@connor.js nah the NSA have throttled your net thats all ;)
 
It passes JSONLint.
 
@NathanJones show us what it looks like unless its really long
 
@Dave No, but if they did at least i would do something about it and not bow down.
 
@NathanJones My code doesn't work, can you help me debug it? It looks like this: var a ...
 
5:29 PM
@copy room title >>> :P
 
I'm getting Syntax Error on line 934
 
@NathanJones Where is the json coming from?
 
@copy lol
 
 
i dont like the new room title.. it stands against everything this room fought long and hard for ! :P
 
5:31 PM
I think since the dawn of sarcasm, pie charts have been used to mock things more than they have to present legit data.
 
@copy don't forget this one
 
lol
 
Here's what my JSON data looks like:
 
That is the most accurate chart I have ever seen.
@SomeKittens I love that episode!
 
5:33 PM
{
"gpvfields": [
"curstudid",
"teacherid"
],
"logDCID": "##",
"studentDCID": "##",
"name": "Other Contact",
"entryDate": "2013-10-01 00:00:00",
"entryAuthor": "Jones, Nathan",
"subType": "Phone Call",
"subject": "Long Test",
"logText": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
}
the parsing line is just
var jsonData = JSON.parse(data);
 
@NathanJones There's your problem, it's not formatted correctly. Have you tried ctrl+k?
 
{
"gpvfields": [
"curstudid",
"teacherid"
],
"logDCID": "##",
"studentDCID": "##",
"name": "Other Contact",
"entryDate": "2013-10-01 00:00:00",
"entryAuthor": "Jones, Nathan",
"subType": "Phone Call",
"subject": "Long Test",
"logText": "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
}
 
hello guys
 
@SomeKittens Like that?
 
lols
 
5:34 PM
Sorry guys, I'm a noob at SO chat.
 
How to create a random array of elements like a = [1 , 4 , 6 ,7 , 10 ,15, 25 , 28 ] etc..
 
use a loop and use a math.rand
and array push
 
When Recruiters Email Me.
 
@IceD Math.random() returns a rand num between 0 and 1
 
#weak
 
5:36 PM
haha the box sizing totally works
 
Any other ideas?
 
@IceD Have you tried googling for it?
 
@IceD your syntax will work
 
@IceD start with idea: jsfiddle.net/L8pwG
im sure you can work the rest out
 
@Dave thanks
I am already working on it :)
 
5:45 PM
is there a way to force IE9 to only be in IE9 mode while displaying a page? For some reason a bunch of teams who are still using IE9 use IE8 mode and Twitter Bootstrap 3 (and me) hate it.
 
teams are using IE ? recipe for disaster
 
@jbolanos ui-mode header or whatever it's called?
 
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
but its not doing anything
 
IE=9?
 
still stays in IE8 doc mode :(
I hate internet explorer
 
5:48 PM
I don't think you can, then
 
I may put up a blocker to prevent them from loading the page in IE8 - that'll teach em
 
from IE altogether would be best
 
But you can test and only block in emulated IE8
 
yeah - I'm going to slap up a nasty popup about using ancient technology
 
You can distinguish a real vs. emulated IE8
 
5:50 PM
If you add this to your headers Access-Control-Allow-Origin: *
does that mean anyone can access from anywhere?
 
@connor.js it means SOP doesn't apply
except in IE?
 
@poke cbg :)
 
Hey :)
How was your test @BadgerGirl?
 
...
 
@JanDvorak so i can access something.com from localhost? if i specify them on something.com?
 
5:53 PM
I think it went well. Hopefully I'll see you next year :)
 
When do you get the results?
 
I just got hate mail from a game player who thought their HTML was so fan-fucking-tastic it would make them a coder. He sent me "...What is PHP?" when I asked him to send me his PHP file.
 
Until Christmas.
 
@connor.js I think so
 
I denied him and he flipped shit xD
 
5:53 PM
@JanDvorak coo, thanks :)
 
Hmm, that’s still quite some time…
 
@connor.js Why should you not?
 
@RUJordan The gall of some people. Was he American?
 
@JanDvorak well, i'm trying it now and i get the restriction error, so just wondering if i add that it will work
...
 
try it
 
5:55 PM
I don't know, I think he's 14.
 
yes, the reason i asked here is because i don't have access to something.com so i was checking before getting access
 
And HEY. I'm American. D:
 
Ale
Hello~
 
@Shea [object WorkerErrorEvent]
 
Hi ~~
 
Ale
5:56 PM
@CapricaSix Wow
 
@connor.js I predict success
 
Hi everyone, could anyone who knows angularjs take a quick look at my question please.
http://stackoverflow.com/questions/19983935/angularjs-scroll-to-id-using-routeparams
 
Ale
How do you call these things 8x > 14 in English?
 
@Ale comparison? greater than? inequality?
 
Ale
Is it inequality or imparity or what?
So ineqality is good word then?
 
6:00 PM
!!afk lunch
 
@RUJordan Apricots are people too!
 
@RUJordan (So am I. Such terrible people, reinforcing stereotypes with their actions)
 
@SomeKittens RUJordan is afk: lunch
 
@Ale Inequality is a good word for that.
 
6:00 PM
yay caprica is back
 
Ale
I just haven't found any example of usage, so I had to use google translate
Okay thanks
 
@connor.js you would be having a field day in the game dev room right now :P talking about nsa and UKUSA agreement
 
man i should go back to that room
was a fun room
I remember we all played tf2 a few times together
 
it still is a fun room xD alot less seriousness too
 
I don't see it, link?
 
6:12 PM
the nsa convo has ended now im afraid
 
I just have a lot of gamedev questions
 
What do you call a singing computer? A Dell.
 
Currently making my first for the GitHub Gameoff
 
@rlemon A-DELL!
 
6:14 PM
:)
 
thief @rlemon :P
 
@SomeKittens you should also check out #bbg on freenode
lots of awesome guys in there
 
are you sure that's not 'Big Beautiful Guys'?
 
lol
 
how to merge into traffic in Russia: i.imgur.com/Oph460A.gif
 
6:15 PM
this is why i tell BBC news to change their name :P
 
wow
id have so much rage at that point
id probably ram his vehicle
 
> pfft, look at fool with tiny gun. Car is bigger.
 
I recall a short story where the protagonist is hijacked by a hitchhiker with a gun. He aims the car at an overpass pylon and says 'your side will be destroyed. Mine will just have to take it's chances'.
 
@SomeKittens Cars in real life don't work that way.
 
Wow, JOBS was a horrible movie.
 
6:25 PM
I'm paraphrasing a lot
 
@BenjaminGruenbaum It should be suggested for an Everything Wrong With episode
 
shouldn't it??
 
@JanDvorak They seem overly picky. Some of the things that they count as 'movie sins' are actually great points.
> Nick Fury's character development literally begins and ends with 'eye patch'
THAT'S KIND OF THE POINT!
 
6:27 PM
@SomeKittens bad guy tries to seduce James Bond - "scene does not contain a lap dance"
uh... that link was to a comment
> Jan DvoÅ™ák1 second ago

Please do Jaws
 
no upvote yet :-/
 
Just did
 
thanks
+2 ATM
 
m59
That awkward moment when you give an outstanding answer and the op thanks you greatly, but neither upvotes or accepts answer.
 
user1596138
6:37 PM
I'm starting to see the usefulness in jQuery :'(
 
user1596138
Only because of all this cross-browser BS.
 
user1596138
I'm writing all these shims and just overloading trying to get everything to work everywhere. I feel like I'm just re-writing things from jQuery at this point, so I may end up using it.
 
user1596138
Waits for smite
 
It depends on what you're doing.
 
@Jhawins that's basically the point of it
 
user1596138
6:38 PM
Lots of DOM manipulation also. Don't need it really but it's convenient.
 
the problem with jquery isn't the use of it, it's the misuse of it
 
Misuse, and some other issues from a design perspective (like long-term api stability)
You have a few jobs as a programmer:
1. Get shit done
2. Write code that other people won't want to kill you for, but actually are excited to work on.
 
user1596138
Basically, if I'm going to have to spend more than 5 minutes writing out my own function to do something already in jQuery it feels a tiny bit silly. When the same general situation has come up 4 times in an hour it's ridiculous.
 
You shouldn't be using document.getElementById everywhere for complex apps.
Architect things so you're separating concerns.
 
@JanDvorak I like these better youtube.com/watch?v=fupWquPNoTc
 
user1596138
6:42 PM
@Incognito I've basically written a CMS.
 
@BenjaminGruenbaum I have subscribed both
 
@JanDvorak who is the man in the picture at 5:01
 
It's just so much better than youtube.com/watch?v=V10KeJgjgCw
 
@Jhawins Great. Your code needs to go through some sort of structure.
 
user1596138
6:43 PM
Needs a few things re-thought though. It's a WIP. At least right now it does 100% of what it was designed to do.
 
@rlemon multiple comments have been posted asking that
 
user1596138
@Incognito Hmm?
 
user1596138
I think I know what you're saying.
 
Any advice, i want to cache some ajax request's but some of them have the same url but different data and they get different responses, the only way i can think of is to have the key as JSON.stringify(request); but that looks bad, any ideas?
 
If you're not using jQuery you're going to be using some other abstraction to deal with stuff. Don't just do everything at the bare-metal layer.
 
6:45 PM
so the key would look like
{"type":"POST","contentType":"application/json","dataType":"json","url":"http://agigfhdhg.com/tracker/api/report/FYoWtbDGT5mRcyJeUdweunbsO8Oy12Ty/activity","data":"{\"from\":1352627983586,\"memberIds\":null,\"projectIds\":null,\"allMembers\":true,\"allProjects\":true,\"till\":1384163983000}"}"
 
My Jaws request is at +3, my declaration of flag-war against bob is at +4. Not bad.
 
etags or cache headers
 
@Incognito me?
 
Oh hai Incognito
you know i was going through the chat history today, guess what i found ?
you sir... have became extremely rare -_- ... u don't even idle anymore :-(
 
Or change your request URI and write a memorizor addyosmani.com/blog/faster-javascript-memoization
@connor.js Yep
 
6:47 PM
@Incognito What do you mean change the request url, i don't have access to the api
 
@AbhishekHingnikar Oh hai
@connor.js Are you doing CORS?
 
so why have u almost disappeared ?
and sadly my friends i am switching back to windows.
 
@Incognito no, only for development
 
@BenjaminGruenbaum help me setup a clean windows machine... this time :P
i might let it last :D .. i can't believe i am switching to windows for development
 
@AbhishekHingnikar Ehh I'm around once in a while, I just don't do as much chat as I used to. I mostly hang out in the dark and work on really gritty stuff.
 
6:49 PM
@Incognito keep a background tab in chrome running in this chat
when you were here we had less help vampires
i was the only one !
 
user1596138
@Incognito I'm using jQuery now. I decided it was worth it.
 
@connor.js There's no way you can cache if you can't get a cache tag from the server.
 
@Incognito I mean to store it in a object so i don't have to keep using ajax
 
@Jhawins It's up to you. Just be wary of the downsides and upsides.
 
0
Q: My Google API code is redundant

user2524908I'm a mediocre programmer at best, and pretty terrible at JavaScript. But I have been tasked with creating a Google Maps application. This application is driven by a dynamic report with a Java layer on top of it. This Java layer spits out generated Google API JavaScript. The problem I am runni...

 
6:52 PM
I like to avoid parts of jQuery like the promises, because they're talking about changing the whole damn API like they did with click events.
 
user1596138
I'm making AJAX requests too, so I think it justifies it.
 
the x men is pretty good
 
@Incognito They never deprecated click
 
@JanDvorak Yeah, but everything's an internal alias to .on
 
@rlemon I just think "no bonus round" == "the movie wasn't really bad"
 
user1596138
6:53 PM
Not so much a CMS as it is a DBMS.
 
@Incognito not a bad thing
 
@JanDvorak the things they are pointing out, some of them I completely missed
 
@rlemon that's what makes EWW so awesome
 
user1596138
The biggest challenge has been importing data, accurately, form InDesign. I'll have to do it one more time but after that everything will go DB=>InDesign instead of InDesign=>DB.
 
I do disagree with some sins. I still think it's a great series.
 
user1596138
6:55 PM
It used to go InDesign=>HTML=>(lots of modifications)=>static page. Which had to be updated every single day, by hand, for the last 14 years.
 
@AbhishekHingnikar Windows is very hard to install
 
@JanDvorak thanks!
 
@AbhishekHingnikar step 1) put windows cd step 2) press ok. They have drivers for anything and it automatically updates everything.
 
Ajax isn't a reason to use jQuery, it's just something you do. Using an abstraction to help you do things is reasonable, not using one over another because you're bullied into it is lame, using one over another because you're able to get stuff done and it's not going to bite you in the ass more than some other thing is very reasonable.
 
user1596138
6:56 PM
"9 minutes or less" video is 9:15 long....
 
1. Get shit done
2. Write code that other people are excited about
 
Is there a way to get all pending timeouts and intervals on a page (or the code to attach them)? or I have to reload the page and instrument in time?
 
user1596138
That's more-or-less what I've been feeling like. I made the decision today to go ahead and start using jQuery instead of doing everything pure.
 
@JanDvorak iterate from 1 to 1e10 ?
Then you can clearInterval them
 
@Jhawins Just walk into it knowing what you're going to do well and what will suck.
 
6:58 PM
There is no way to get the function of the timeout, at least in the browser.
 
The same as everything.
 
@BenjaminGruenbaum non-destructively. I want to debug them, not break them.
 
@JanDvorak You need to register their IDs somewhere.
 
@JanDvorak wrap settimeout in a function that records the ids?
 
@phenomnomnominal That's a great way to do it.
 
6:59 PM
so, I have to reload and instrument. Thanks
 

« first day (1125 days earlier)      last day (3822 days later) »