« first day (1778 days earlier)      last day (3186 days later) » 

2:00 PM
definitely gonna get an xbox one today, then
 
@Nick How much?
 
how much what?
 
@Nick Hah, that must feel nice
 
how much money do you earn?
 
Isn't that a rude question? I mean, I'll tell people, but I thought you weren't supposed to ask people that
 
2:02 PM
oh, that seems to be the case
 
Maybe it's just a western thing, I dunno
 
user406009
@Nick It is a western thing encouraged by employers.
 
It's supposed to be rude, but I don't really understand why, personally
 
Would you say something is free if you have to pay for postage?
 
user406009
2:03 PM
If we all share salary information, that improves our bargaining power for wages.
 
It's also not a welcome question in China. It somewhat puts people in a predicament.
 
fair enough
I make 80k/year
I got a 5k sign-on bonus
 
I make a whole whopping 0/year :p
 
Nice
 
@Callum High five!
Well, technically I made more than that since I freelanced a little
 
2:04 PM
I hate freelancing
 
I'm trying to freelance, but it's awful.
 
WHat's nice right now, though, is that I'm not paying rent, so I get to keep most of my money, lol
 
How aren't you paying rent?
 
user406009
Make the equivalent of 90K/year for my three month summer internship. But that was in San Francisco, and most of that cash went to rent and taxes.
 
I'm at my parents' house. Since I just moved back home for the first time in 3ish years
 
2:05 PM
Oh, nice. Do you like it?
 
Do I like living at my parents' house? Well, I don't have to pay rent, but having your own place is always nice
 
user406009
Of course, sharing salary information here doesn't really help much. It's much more useless when localized to location/job type. That's why sites like glassdoor are so useful.
 
Anybody want a code for a free DuckDuckGo tshirt? If I use it, my free shirt will cost me ~10 USD.
 
Sure
Oh, shipping charges?
 
Mhm.
 
2:09 PM
In that case, no :P
I live in India. I bet shipping will cost more for me
 
I'm assuming it is free postage in the US, but that's not handy if you're not in the US.
@Nick You work at google, don't you?
 
Nope
 
That's ʞɔᴉN, then?
 
I don't think he does either
 
It's very often the case that we have to cancle the default action of dragover in order to allow the drag-and-drop process to go on its merry way.
 
2:10 PM
Somebody here said they worked at Google, I think they'd love the code.
 
Hahaha
 
KSP: Realism Overhaul booting up $D
 
does KSP ever take mods and integrate them into the core game?
 
All the time
 
nice
 
2:13 PM
Usually with a bit of tweaking
It's less integrating mods and more making mods obsolete
 
wait
why isnt this the c++ chatroom
I just realized
I didnt even close the tab and its now been changed to javascript
what!!!!
 
2:44 PM
Because we are better, and the SO gods know it.
 
2:55 PM
Hello
was just having a debate with a friend over should jquery be used together with angularjs
I think it's no big deal to use them together as long as it works
while he thinks , it's just like using C and JAVA together.
what do you guys think ?
 
user406009
I think you should avoid mixing JQuery and AngularJS whenever possible.
 
why ? jquery is like just underscore to me
 
user406009
If you have to use some JQuery features, encapsulate it in an AngularJS directive.
 
user406009
@zinking ? Those are entirely different.
 
user406009
Underscore has some useful data manipulation tools.
 
user406009
2:59 PM
JQuery has nothing useful other than dom manipulation.
 
user406009
Unless you have a counterexample?
 
well, some. before the age of underscore I use jquery to do list comprehensions.
but what is a big deal to call dom manipulation in angular controllers.
 
user406009
Because it gets confusing when you are using two completely different methods of dom manipulation.
 
user406009
Wrapping your JQuery code in AngularJS directives would probably be a better style.
 
user406009
This way your $scope fully represents the state of your application.
 
user406009
3:02 PM
Actually, I am slightly wrong. I forget that JQuery had nice AJAX helpers. Those are fine to use.
 
user406009
And I guess it's fine to use the JQuery data manipulation methods as well.
 
user406009
I would just suggest trying to avoid using JQuery dom manipulation.
 
user406009
Otherwise you'll have chaos trying to synchronize your JQuery controlled components and your AngularJS controlled components.
 
but you said it's okay to encapsulate that in directive
 
user406009
Yeah, that's fine.
 
3:04 PM
so just avoid to generate dom manipulation conflicts when used together.
 
user406009
Yep.
 
user406009
Once it's in a directive, it's much easier to work with.
 
What is best packpage for CLI in nodejs?
 
@VeeeneX readline (inbuilt since forever) iojs.org/api/readline.html#readline_example_tiny_cli
 
3:09 PM
@AwalGarg Sth like this tj.github.io/commander.js
 
hi, i have a question how to deal with data in react..

i have two boxes. i have an array of words the are displayed in one of the boxes. when clicked on a word it should appear in the other box instead and then back agin if clicked again.
how would structure this in react? i have currently three components, Box1, Box2 and Main. the state is in Main and hold the word array.
 
@VeeeneX then you already have an answer
 
Yeah, and question number 2. :D Some office tools for writing and parsing excel or so..
 
user406009
@Numbers You would have props have a list of words to display in each box.
 
user406009
You also also pass a callback to the Boxes also through props.
 
3:13 PM
@VeeeneX what, like visualbasic-style?
 
user406009
Something like moveWordToOtherBox(word)
 
@VeeeneX My free help trial has expired. Pay a few billion dollars to continue...
 
user406009
The Main component would store which box stores which works in state.
 
I mean something for inserting and "playing" with rows...
 
user406009
Something like {box1: [a,b], box2: [c,d]}
 
3:14 PM
@AwalGarg Ou, Game over :D
 
user406009
@Numbers Does that make sense?
 
ah yea of course
thanks a lot @Lalaland
 
@VeeeneX the easiest way is to (manually) export the spreadsheet from excel into a different format (that is more easily consumed by your script); is this feasible for your situation?
 
user406009
@Numbers Let me know if you need any other help.
 
i'll try this out and come back if i have further questions!
 
user406009
3:15 PM
@VeeeneX What exactly do you want/need?
 
@Cauterite Nope I need to freeze tables and other functions, but I will insert results in MySQL table and then process them in PHP and save it to Excel.
 
user406009
I find that the best way to "work with excel" is to constantly import/export to CSV.
 
I need sth like this github.com/PHPOffice/PHPExcel ported in nodejs if it is possible
 
@VeeeneX you are confusing representation with data.
 
user406009
CSV is quite easy to work with. Ton's of libraries in every language.
 
3:17 PM
@AwalGarg Why?
 
user406009
@VeeeneX Yeah, don't do that if you don't have to. Use CSV.
 
@VeeeneX "freeze tables" and "other functions" are not related. Excel features are for ux. But you don't "store frozen panes" etc.
 
@Lalaland My customer needs it in formated excel, yeah CSV is way but not for me
 
user406009
Oh, they actually need the fancy features. That's harsh.
 
user406009
My bad.
 
3:18 PM
is .xlsx an XML format?
 
Yeahh :D
That's Excel
 
Just about to mention XML - pretty sure Excel works with that too
It might allow styles for tags, maybe?
 
That's true it works with excel
That's good idea @Callum
 
That's a very big maybe, by the way. Never looked into it.
 
there's surely plenty of XML libraries for JS, so see if you can just construct the excel file that way
 
You can convert CSV to XML, but it is better if you can get it from an SQL statement straight to XML.
 
But I already had prepared php for it.
 
Hai Gabriel
 
That should works, but I wonder why MySQL doesn't have api like RethinkDB
 
3:23 PM
because MySQL doesn't work like RethinkDB
 
Where should I search for a JS freelancer for a small internal dependency? It's a complex dependency but the code amount itself is small. A experienced developer that has some notions of the HTTP protocol and of the require('http') library should get it done fastly. I think.
 
@GabrielTomitsuka right here, I guess :D payrate, if I may ask?
 
@GabrielTomitsuka You could ask around here, SO Careers (maybe), freelancer sites.
 
@AwalGarg You know anyone who could be interested here? :D
Well, depends on the hours paid...
 
3:25 PM
@AwalGarg I don't think that's problem of MySQL, I think problem is in DBAL as so API.
 
We do have some amounts of money in our reserves.
 
@GabrielTomitsuka Considering most of us know JS, many.
 
@GabrielTomitsuka email?
 
Could you tell us just a bit more about what this 'dependency' does?
 
Wait, I am working on an example right now
 
3:32 PM
> Aug 4, 2015 for @CallumBarclay – Rejected
I'mma smack GitHub for Education into oblivion..
 
user406009
@Callum Trying to get the digital ocean credits?
 
user406009
That's like the one worthwhile thing on there.
 
@Lalaland Yup.
 
@Lalaland and private repos.
 
user406009
@AwalGarg Bitbucket is good for that.
 
user406009
3:34 PM
The DO credits are unique though.
 
I've not got access to my school email address, never had, so I'm using an email address given to all highschool students in Scotland.
 
That's what it should do...
 
I'm assuming that is the issue.
 
everyone in Scotland shares an email address? That's gotta get confusing.
 
user406009
3:35 PM
@GabrielTomitsuka Oh, you basically want a fancy mock for an http server?
 
user406009
For testing purposes?
 
@Luggage You know what I mean. gw<last two digits of the year you got glow><lastname><firstname>(a number if you are not the only x, y in Scotland)@<some domain I can't remember>
 
:)
 
user406009
@Callum Do you have a specific temporary need in mind? I could lend you one of my DO droplets for a month or two if you really need it.
 
@Callum just use your personal email. That's what I used. Got it in a week.
 
3:38 PM
@Lalaland I'm moreso wanting to escape the evil wretches that is PHP, which makes me want to slap every PHP developer ever while using it, using the DO credits up until I get a job to pay for it :p
 
just use the azure trial then
 
@AwalGarg So it could be that my reason for wanting it is rubbish, then.
@AwalGarg I've never managed to set up the trial, just displays a blank rectangle where it should be.
It specifically says:
> Select your school-issued email address:
Technically, it is school issued.
 
@Lalaland No, because I'm using UNIX pipes for IPC, we want to keep using UNIX pipes but the slave takes HTTP requests.
Performance is extremely important
 
user406009
So you want http server to also take UNIX pipes as a possible address to bind to?
 
@Lalaland Yes
And we would pipe it to the master
That takes the UNIX pipe
And pass that to the client
Anyone interested? We can discuss payment via email.
 
user406009
3:44 PM
Doesn't the http package already support UNIX pipes? "Start a UNIX socket server listening for connections on the given path."
 
That's what we're currently doing
new http.Server().listen('path')
 
kinda sounds like fastcgi.
 
@Luggage We would need some quite complex handling for which process shall respond to which request(based on Host header).
And no, putting them one by one on Nginx is not a solution
How long would one take to develop this dependency?
silence
 
4:02 PM
i'm still not really clear on what exactly it's supposed to do
 
I am not clear why you want to do this.
 
maybe a diagram would help?
 
@Cauterite The README didn't make it clear?
 
@GabrielTomitsuka not really; what are the main differences from existing HTTP servers?
 
@Cauterite request mocking facility
 
user406009
4:08 PM
@Cauterite It seems like he wants a sort of fast reverse proxy for node processes.
 
user406009
Where you can determine the destination server using a JavaScript function of the request.
 
user406009
function getServerToForwardTo(request) { if (blah(request)) return foobarServer; else return blahServer;}
 
user406009
@GabrielTomitsuka Is that correct?
 
@Lalaland net.connect(sites[url.parse(request.headers['host']).hostname])
@Lalaland Yes, it's correct
 
user406009
4:14 PM
Normally people use Nginx for that sort of task.
 
user406009
Nginx + fastcgi is quite effective.
 
And the facility to respond to these requests - API-compatible with require('http')
@Lalaland Try that with 8000 sites on 1 process
 
the readme you linked doesn't mention anything about proxying
 
@Cauterite No, the proxying layer is straightforward; connect to UNIX pipe and .pipe() to HTTP response
So it doesn't need to be included there
 
user406009
@GabrielTomitsuka Yeah, I see what you are trying to do now.
 
user406009
4:20 PM
Interesting idea, and it probably would net you some performance gains.
 
user406009
I hope you have the best of luck.
 
Thanks. I think I should probably start looking on SE Careers. If anyone wants to contact me: gabriel.tomitsuka [at] oratio.io
 
mooorning
 
But careers seem to be for stable, permanent positions
Like 6 months+
 
Who was doing Live Coding earlier?
 
4:31 PM
-2
Q: You can break Instagram?

user5280169Iwant to get my girlfriend was cheating on Instagram I can ?

 
> She's cheating on you? What's her screen name? is she hot? – timgavin
 
The OP seems to be younger than me.
 
@SomeKittens someone was?
 
5:12 PM
Anyone here a NodeJS pro or intermediate?
I want to use something like condition variables. However this package isn't working : npmjs.com/package/condvar
 
isn't node single-threaded?
 
@SomeKittens You mean someone broadcasting at livecoding.tv?
 
@AwalGarg yeah
 
hmm, sounds interesting
 
@Cauterite yes, but it's async
 
5:19 PM
@OllieQ That's really hacky and weird, you should leverage language concepts, like Promises and async iterators. See Iterators and Generators
Google Promises and Task.js as well.
 
@Zirak Task.js still works?
 
@Zirak thanks. I'll check it out.
 
@AwalGarg "Still"? Sure
 
@Zirak Last I tried the master release it was just errors all the way down
I guess I must be doing something silly
 
Heh, this condvar is like slimmed down go channels
 
5:23 PM
The source is horrible (super terrible) and over engineered, but basically recv does while (!gotData) { uvrun() } (where uvrun = npmjs.com/package/uvrun)
 
@Zirak I should explain what I'm doing and see if it's even possible. I'm using NodeJS's require module to get a website's HTML. Now this website can have no iframe or multiple iframe. What needs to be done is open each of the links in the iframe's src attribute and see if it's "legitimate". Some of these iframes are like facebook like buttons and stuff. Due to Node's Async nature, I can't just open them one by one. I need some way for node to stop and wait to parse current iframe.
 
Of course you can open them up one by one
 
What the author meant by following: "It is bad practice to use and depend on setTimeout instead an event call back should be used. Otherwise different time durations can give indeterministic results."
 
What prevents you from opening them up one by one?
 
@Srle in what context?
 
5:31 PM
@Srle huh? What event callback?
 
@OllieQ and why would you want to open them one by one when you can open them all at once?
 
@Cauterite, @Zirak i must dig in details i just have that sentence :D
 
@Zirak can this be done either through Promises or Task.js?
 
@OllieQ This is just done with node's APIs. Leave promises and tasks aside, just pick up an intro to javascript and node.
 
@Cauterite Sorry. I left out the detail about what I'm trying to do. I'm trying to count the occurrence of certain words and select the iframe with the highest occurrence and grab some stuff from there
Crap I can't edit my large post
 
5:39 PM
@OllieQ that's still no reason to read them one at a time
 
Okay I think I'm over-complicating things here
I'm a CS undergrad that's been doing Java and C/C++ for a few years and I'm still getting used to the async nature of NodeJS
 
What can be scenario in which would be helpful to keep all connected sockets inside
array, something like:

var sockets = [];
io.on('connection', function(socket) { sockets.push(socket); });
 
and when I do my concurrent programming, I think about those race conditions when variables are overwritten and stuff, which is why I'm afraid of NodeJS's async nature
How can I make it so I first scan through all the iframe, then find the iframe src with the highest occurrence of certain words, then work on that iframe?
 
something like this:
 
@OllieQ There are no race conditions in NodeJS. It's single-threaded. When your code runs, nothing else is mutating state in your code.
 
5:45 PM
@RoelvanUden oh yeah... thanks for that
 
Note I explicitly used 'your' because if you start to write the same file twice then you can get issues just like you would in any other language.
 
Okay so let's say I have the functions
parseIframes()
displayStatsOfBestIframe()
parseIframe goes through all the iframes via request module which means it'll have to load up the webpages, and count the words
displayStats just means I want to know the occurrence of each word in the list of the "best" iframe that has the highest amount of occurrence total
I think after requests run in the parseIframe() code, it's going to jump immediately to displayStatsOfBestIframe()
 
@Zirak yeah, the guy goes like "not like fibers that depends on C++ magic", but it uses uvrun...
 
@OllieQ gimme a minute, i'm writing an example for you
 
and displayStats would display nothing because not all the iframes have been parsed yet.
@Cauterite thank you so much.
 
@Zirak jsfiddle.net/emzs0wvn see external resources, and error in console. Can say what obvious little thing am I missing?
 
@Cauterite facepalm
@Cauterite I see what you did there. Thanks.
 
good luck
 
We need ip address literals now.
 
don't wanna write them in hex?
i think i'm at 0x7f000001
 
5:59 PM
Right after I write strings in binary and functions as machine code.
 

« first day (1778 days earlier)      last day (3186 days later) »