« first day (1321 days earlier)      last day (3633 days later) » 

2:00 PM
i know a list such as this developer.mozilla.org/en-US/docs/Web/HTTP/Response_codes seems to indicate that 400 and above is all "you didnt get the page" type codes
or at least would be relevant in my app to go to offline mode with 400 and above.
 
user1596138
Holy shit.
 
user1596138
Just got a raise. I can afford my own place, food AND gas!
 
user1596138
@DrogoNevets Hmm what happened?
 
@Jhawins congratulations
 
0
Q: Copying all objects from one instance to another at once JavaScript

Gelo VolroI wonder, how to make such a thing in JavaScript or is such a stuff even possible in it? For example, I have: var A = function( inputInstance ) { if ( inputInstance !== undefined ) this = inputInstance; else this = new B(); }; I'm interested in this possible or imposs...

 
user1596138
2:03 PM
Now if Grooveshark wants to hire me... Ugh. Tight spot lol.
 
?
 
Grooveshark would be an awesome position though I'd think
I would love to work there
@Crow nope
 
user1596138
@Martin I think so too. Although it isn't a position working on the actual web app
 
user1596138
It was an internal dealio, full stack.
 
user1596138
2:07 PM
They're hiring for a lot of positions, just open the console on grooveshark.com ;)
 
lol That's cool. I just went to their careers page through the link in the footer though
 
@Jhawins i dont see anything in console. but my work might be blocking whatever it is youre talking about. their page is (mostly) blocked..its weird actualy lol
 
user1596138
@Bubbas Hmm
 
oh well
 
user1596138
It's a `console.info` > """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Join Our Team!
We're hiring and you should apply: http://careers.grooveshark.com
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 
2:12 PM
@Bubbas that is weird. The message should still be in the console, no?
 
i think i may be a year or two away from being good enough to land a sweet gig like that anyway lol
 
user1596138
@Martin Not if the script that generates it came from a blocked domain
 
i see
 
True
 
user1596138
@Bubbas what's your run-down? I've been programming professionally for 2 years on the 6th
 
2:14 PM
ive been employed as a (jr) dev for about half a year
 
user1596138
Cool. I'm solo it sucks.
 
the year prior i was in the same company but a technician... i was on a project that landed me lots of opportunity for time to learn - so i learned python for a little less than a year
i dont do python anymore, but thats how i started
 
Like freelance? @Jhawins
 
user1596138
@Martin No like, I'm working as a solo full stack dev
 
user1596138
For a corp
 
user1596138
2:16 PM
With <10 employees hahaha
 
Oh haha
Yeah been there
Not fun
Actually, I can't say that. Working in positions like that taught me a lot
 
user1596138
But grooveshark told me I was the strongest candidate so far in months, and I'm 19. So I basically just was like hey boss, I'm worth more money than this. And he gave me a $3 raise on the spot hahaha
 
Any Node.js REPL/VM/Child Process experts around?
1
Q: Execute code in a sandbox, with modules in same context

Andy EI'm automating running the ECMA-402 test suite against the Intl polyfill I wrote, and I've hit some problems. Currently, the tests are run against a fully-built version of the library, which means having to recompile every time a change is made before the tests can run. I'm trying to improve it...

 
Did you go to school or taught yourself?
 
user1596138
Yeah, I'm soooo diversified. I do everything and I love it.
 
user1596138
2:17 PM
lol at 19 I'd only have a year to have gone to school if I did. I was homeschooled and had plenty of computers
 
@Artemij Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
True lol didn't think
That's cool then how long have you been playing with code
 
user1596138
If I'm being honest, the people who taught me were @rlemon @shmiddty @somekittens @benjamin and even sometimes @zirak (and others)
 
user1596138
This was my only actual instruction and help in the beginning haha. I used to rearrange JS scripts for RSBot to cheat on Runescape, and then started doing other things. Worked on a CP for modern warfare 2 back in the day with some guys. I think the first time I ever actually dabbled in code I was like 13-14 and I was just copying things around trying to conform to the format and get things to go my way blindly. It worked tho
 
Haha nice. Well they're good sources to learn from :p
 
2:19 PM
Using jQuery, how can I alert() when a user has scrolled to the top of a certain div? I've tried using if($(window).scrollTop() >= ($("#end-of-scroll").offset().top)) but this seems to only work for the bottom of the div
 
@Daniel So then add the height of the div
Or subtract idk
Although that should work as is I think
 
ah, good point @Martin
 
@Jhawins that's a great way to start though!
 
user1596138
I only got like 6 accounts banned :)
 
Pretty similar for me, I started fiddling with HTML when I was 9, CSS when I was like 13
 
2:21 PM
@Jhawins going along and suddenly had to really try to move, front brakes seizzed on
£510 to fix
 
When I was 16 I started Javascript to build my school's website then I started working straight out of high school
I wish I could see what I was doing at 9 years old I bet it was shit
 
user1596138
@DrogoNevets Fuck! That's like ~$750?
 
problem with BMWs
 
posted on May 29, 2014

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) {} What the? A single panel comic?

 
user1596138
How is that even possible? What was wrong?
 
2:23 PM
i need pads all round
new pistons on the front (4x)
new rear disc
 
user1596138
My bike has a $40 disk, $30 set of nice pads. So $140 front and back brand new brakes.
 
+ labour
+ materials
ill be looking at about £30 a pair of pads (so 3 pairs)
 
user1596138
Cylinder is TINY and I could fix it if something ever went wrong, but they're cheap. And I've NEVER had to pay for labor on anything except for the one time I paid to have carbs synced ;)
 
90 odd for the rear disc
 
user1596138
3 pairs? Got a double disc on the front?
 
2:25 PM
it the brake fluid, the seals and the bleeding that'll cost though - i just dont have time to do it myself
@Jhawins all big bikes do
you never stop!
 
user1596138
@DrogoNevets Course :P
 
HAMMERTIME!
 
@AndyE It's not quite clear what the problem with using the vm module is. Can't you run both the library and the test case in a vm module?
 
user1596138
My bitch weighs <#360
 
@CapricaSix shut you face
mines 330kg dry weight (so no oil, fuel, extras)
 
user1596138
2:26 PM
And it's like a 70s truck to work on. You have room everywhere. Nothing is hard to do. Hahaha I'm gonna miss these perks.
 
user1596138
I'm absolutely killing this 350 though. Will do a total top-end rebuild and the 441 kit this winter for sure :)
 
ok i realise the we dont like php here, but i have no choice, doing a json_decode and getting null back....why is this? (am getting the data back rhough)
@Jhawins awesome!
 
@copy: that's what I was doing previously, but as the question states I have to build the library every time I make a small change to it before I can run the test again.
 
should get it over here and i can show ya how its done ;)
 
If you want to be successful listen to every word I say; but do none of it.
 
2:28 PM
Kind of the opposite of "Do what I say, not what I do"
 
If I pass require() to the VM so that it can include the module, there are a lot of cross-context problems causing tests to fail.
 
user1596138
@DrogoNevets Hmm. What's the input?
 
json_decode($data);
inb4 ^
 
user1596138
Do you have a recursion limit? if not you've got either invalid or unsupported data
 
user1596138
@rlemon It's @DrogoNevets not deep :P
 
2:30 PM
lol
 
user1596138
Oh how I miss @deep
 
@Jhawins remote URL, but is returning the string correctly (it is a hoofing long one though)
 
user1596138
@DrogoNevets I know PHPs json_decode has a recursion limit, I don't remember if there's a default. But if the object goes too deep you'll just get NULL
 
0
Q: PHP: json decode limits

Fabio B.Take this code: $json = file_get_contents($this->url, true); $decode = json_decode($json, true); foreach ($decode as $key => $value) { ... } Pretty simple, uh? Passing a $json with up to 500 array elements.... works right! Above that limit... the error is: Warning: Invalid argument...

 
2:31 PM
he hasn't been online in a while.
 
user1596138
Look into that
 
@AndyE Oh, I see. One solution, building up on what you have, would be to use the -e flag of node to pass code to evaluate
 
user1596138
@DrogoNevets I'm betting you you have a formatting problem or it's a content-type problem.
 
@copy: yeah, I was just thinking of something along those lines. I've just spent 30 minutes messing around with REPL with no luck, so I'll give it a try.
 
@Jhawins its valid JSON according to jsonlint
ive set recursion depth to 1024 (default 512)
 
2:33 PM
Man, there's a lot of babies answering Q's with the javascript tag. I give a downvote for a half-arsed answer, and they go into my profile, view really old questions of mine (from 2013), and downvote them lol
 
user1596138
@DrogoNevets That's deep
 
user1596138
@NickDugger All day man
 
@Jhawins i like it deep! ;¬)
 
@AndyE REPL and stdin are just two different things. I've had that problem before (with a different interpreter) and couldn't get it working
 
still returning NULL
 
ASR
2:35 PM
@DrogoNevets hi how are you?
@DrogoNevets i need small css help
 
user3071008
can they see who downvoted their answer?
 
@ASR don't double ping people
And don't come asking to ask
 
@copy: yeah, I realise that now ;-)
 
@AndyE why do you need the vm module for that?
 
@ASR you also do realize you are in the Javascript room, right?
There is an HTML/CSS/WebDesign room
 
2:37 PM
@Martin so you can't ask to ask?
I literally asked if you can ask about asking.
 
ASR
this is my fiddle jsfiddle.net/Pmgmp list alignment problem in the Elite Module
 
@Benjamin: I don't, per se. I just need a working solution to the problem. VM module would have been ideal, but VMs don't have their own require().
 
And now I for some reason had an influx of upvotes... lol
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
 
@AndyE Oh, how slow is building it?
If building it is short enough, you can just watch it and run the tests on the output.
 
ASR
2:38 PM
@Martin ty
 
@NickDugger problem solved ... in 24 hours
and you got a couple votes from me
not randomly. I looked for your better answers :P
 
@AndyE also, you can always just write to a file and then execute that.
 
Lol, thanks man!
 
Doing -e as copy suggested should also work.
 
user1596138
2:41 PM
!!afk doing shit sorry
 
Also, lol @AndyE your last post here was in 2012 before that :D
 
@Benjamin: building takes a while and jacks up the CPU, but only because it's compiling all the data into the library (and there's a lot of data). Writing a file and executing it was going to be my last resort, I was hoping that I was just missing something :-).
@Benjamin: yeah, it's been a while. I created this room ;-).
 
Oh cool :)
 
When you use grunt-connect-proxy, and you are watching in the Network tab in Chrome console, you should see the post-proxy destination as the request?
 
@AndyE I'm not sure I understand your build process, do you have the project on GH or something similar?
Like, can you run the project without building it in Node?
(If so, can't you just run the tests on the 'unbuilt' source in node?)
 
2:44 PM
anyone need a lot of these:
 
Mornin
 
got 50 of them atm, will have 50 more in no time
just the adapter
I feel bad throwing them out
 
@rlemon i could do with the actual memory card......
 
that is what I need, cheaper to buy them with the adapter
now I have a shitload of adapters
 
You can adapt the shit out of so many things bro
 
2:50 PM
@Benjamin: http://github.com/andyearnshaw/Intl.js
I'm currently reworking all the code so that it doesn't need building for every release, though. The main JavaScript file has been broken down into submodules, so I'll be rewriting the build process (which will only be necessary for running the polyfill in the browser).
 
@rlemon make a statue out of them? yuri gellar got a gorrila made out of spoons
 
@AndyE Good man
I'm sure there is some way to throw all the code in a minified version anyway
Better to modularize
 
fucking Ubuntu man
doesn't want to release the mount
 
@rlemon try this: sudo pullout
2
:P
 
and it is cooking the card whenever I plug it into the card reader
 
2:53 PM
Try umount -l, but probably not
 
like COOKING it
 
sudo touch finger
 
might be the card
 
@AndyE Oh you're building with grunt, grunt is so slow :(
 
Question: On completion of an ajax function, I use $(document).ajaxStop(enableStuff) to enable some inputs. The ajax function itself also calls $("#some-select").focus(). It's my understanding that enableStuff will be called after $("#some-select").focus(), so it won't focus (since the select in question is disabled). Now, if I call setTimeout (-> $("#some-select").focus()), 0 it does focus the select box. Why is that?
 
2:54 PM
@AndyE HI! Where have you been?
 
was the SD card
 
Haven't seen you around in ages
 
@AndyE so 'compile-data' takes a long time?
 
!!urban Radford University
!!undo
 
@RUJordan yep
 
2:56 PM
@AndyE yup lol
 
@SomeGuy very busy :-)
@BenjaminGruenbaum yup (sorry, @RUJordan! ;-))
 
I don't know if people here wanted to switch to socket.io 1.0.... I'd only recommend to wait a little...
 
@SomeGuy long story short, got tied up in work, personal and social life, not much time for stack overflow these days.
 
@AndyE ha!
 
@AndyE Does doing this asynchronously help?
That is the readDir and readFile parts
 
2:59 PM
@Benjamin: not really. Reading the data isn't the bottleneck, parsing it is.
 
The JSON.parse and file.slice ?
 
I've kind of eliminated that problem at my end, though.
@BenjaminGruenbaum yeah
 
Does it go much faster if you have one file of all the locales ready, and then only rebuild that if you must ?
(That is, the files actually changed)
 
Well, with the recent (unpushed) changes I've made, compile-data should only need to be called when the data changes.
 
How much time does it take it to build with that change?
 
3:02 PM
Which will only be once every CLDR release or if we decide to use something else from the existing data.
About 30-40 seconds. Which doesn't bother me so much unless I'm making and testing multiple small changes.
 
It takes 40 seconds to build after that change :O?
 
yeah, that's roughly how long compile-data takes on my laptop. It takes large JSON structures, identifies repeating patterns and outputs a JS file of the whole thing as a series of JS variable assignments.
It reduces the data from around 64k objects to about 5k.
 
i HATE when people dont use a standard encoding type!
 
Make it faster :P
 
@Benjamin: yeah, it's not my top priority ;-).
 
3:19 PM
If you are giving an answer then discouraging the use of it, what good is this answer? — RUJordan 9 secs ago
answers like these...
bah.
 
@JadJoubran Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
how to convert fusion chart with other html into pdf?
 
Why are we in Gallery?
!!mute
 
3:33 PM
Wow... how many times will this guy try?
It's pathetic
 
3:51 PM
@Neil do you look at everyone's account before answering them?
 
@t1wc No, I just thought I remembered him asking some time ago, and sure enough
 
@Neil oh
 
apparently he's had this problem since last friday
-3
Q: Tea is not pouring

Weyland YutaniHere is the method that is supposed to return the tea. Tea CreateTea() { Teapot i = new Teapot(Size.Little, Height.Short, Structure.Stout); ... Handle handle = i.GetHandle(); //<<--Here is my handle Spout spout = i.GetSpout(); //<<-- Here is my spout ... i.TipOver(); ...

 
@Neil oh, he so funny.
 
@Zirak You think that was a troll question?
Could very well be
 
3:56 PM
It just might be...
 
@Zirak Sarcasm detected.
 

« first day (1321 days earlier)      last day (3633 days later) »