« first day (1750 days earlier)      last day (3184 days later) » 

12:00 AM
wait Myer's algorithm involves LCS
you should've just re-wrote his algo
couldve saved you a ton of work ;)
@towc do you have Twister?
 
@ʞɔᴉN naah, requires leaving the bed
unless...
ok, I'm done
 
m59
can I make it so that if I own this-dir and some files get saved in it as root, that I can still delete them as me, without using sudo?
 
chown maybe?
 
m59
I suck at linux - I already own my own folder, right?
 
i assume so haha
i'm not an expert on permissions by any means. is there a reason why root is creating files in this folder?
 
m59
12:08 AM
The user in the docker container is root, so mounted volume on the host (where I'm the user) are saved as root also, but it's in my user folder, but I can't clean it out when I want. :/
 
Google version of my Bing->DuckDuckGo addon: addons.mozilla.org/en-US/firefox/addon/bing-to-google
 
@m59 ah you're using containers..
wish I could help haha, just thinking about your problem gave me a headache
 
m59
yeah. The idea of docker is fantastic, but the reality of it is really fail.
 
probably why I still use VM's
yeah exactly
 
m59
Still, better than not having it.
 
12:16 AM
I'm trying to move to Linux, but all the shiny things are on Windows :(
 
there is another headless vm thing
 
m59
@Callum Do it, man. I was right there with ya for the longest time. So glad I switched. I use virtualbox and run linux inside.
 
I recently tried linux mint
 
Another reason for not switching is the specs on my windows laptops are so good compared to my Linux box's. and games.
@Mosho Nyehh, I prefer Arch :P
 
@Mosho i hope it was fresh
 
12:18 AM
Linux Mint is quite good, though.
 
I liked it a lot
even inside a VM
 
I tried Ubuntu I hated, I tried fedora i loved
 
would make the switch instantly at work but we on dat .NET time
 
now that windows 10 is here, i am on it :P using a headless vm for linux
 
I detest Ubuntu with a vengence.
 
m59
12:19 AM
@Abhishrek The only reason I don't use headless is because Windows has fail terminals. What do you use?
 
I had the System process on Windows 10 use up nearly 1GB of RAM. There's a reason to switch to Linux.
 
@m59 some native things
also @m59 try conemu and there is something more @loktar linked
 
Cmder?
 
^ yeah that.
 
@Callum why?
ubuntu has always seemed to be the most approachable and modern distro, at least to me
 
12:22 AM
@ʞɔᴉN that explains why its so. 2.9
 
anyone here that can help me with displaying my twitch api query data :
http://codepen.io/Feners4/pen/EjONEe
 
Approachable, yeah. But I only really use Linux in a terminal.
Ubuntu just makes it difficult.
 
@m59 my major problem with windows though is Downloads
 
like, shell only?
 
I don't have insane bandwidth
 
12:24 AM
ubuntu server doesn't even ship with a desktop
 
@ʞɔᴉN Most of the time
 
^ you might like it.
I watched this looooooooooooooooooooooooooooooooooooooooooooooooong ago so its fairly outdated.
 
Tiny Core Linux (really fucking small) tinycorelinux.net/downloads.html
@Abhishrek Cool, looks good. I'll watch it later.
 
@m59 so far by the way i am loving windows 10, its phenominally awesome
 
@Callum I've seen that, don't really see the purpose of it though haha
 
m59
12:28 AM
hmm, maybe I'll upgrade.
 
I got the pro free :-> (well quite all the versions but i am sticking with pro)
 
win10 looks interesting but I'm probably not gonna upgrade for a while
there's sure to be bugs, I want them ironed out first :)
 
@ʞɔᴉN Loading Linux onto your calculator, I assume.
I'd recommend the upgrade, but you must remember this shite isn't 100% finished.
 
would be awesome until you realize you can't do any calculating anymore :/
 
12:31 AM
@ʞɔᴉN You have a Linux shell, though. You could knock up a binary adder :P
 
that ought to come in handy some day
 
"Goodbye wonderful woman.."
 
1:10 AM
@Callum do watcch it.
 
considering ubuntu on my laptop, or maybe mint? idunno
 
Tiny Linux recommended
 
@Purag meh, you'd probably like either one
 
i've used ubuntu for a while. used to it
 
mint might perform a bit better if your laptop isn't too strong. the unity desktop can be a little heavy
 
1:14 AM
Speaking of linux distros. I wanted to try out Gentoo.. How is it?
 
Not sure. Judging by the name it sounds quite user friendly.
 
1:48 AM
@ʞɔᴉN my laptop has 6gb ram and an i5 processor, so I think Ubuntu should be fine on it...but I'm kinda down to try something new with mint
or maybe lubuntu
what do linux users here use?
 
Arch/TinyCore Core
 
user2076675
2:15 AM
Hey guys
 
user2076675
Do you know if it's possible to stream a video (not camera, but actual video from the filesystem) from one client to another via WebRTC?
 
user2076675
I can't find anything about it on Google
 
So losing my job might not be the worst thing that happened
 
2:35 AM
html5 players >>> Flash ones
 
2:55 AM
@SterlingArcher what
You lost your job?
 
damn man sorry to hear that
 
It's ok, according to literally my whole family this is awesome for me
I have the experience, I was planning on leaving in a month or so anyways, and recruiters (my brother and uncle) are saying I could nearly double my salary with my skillset
So it's just the shock that's bummed me out, but it's exciting that apparently people are about to fight over me lol
 
nice man, yeah that is a good way to look at it
 
I've never lost a job before though, so it's really weird
Like.. I'm unemployed. Never thought I'd say it
 
3:03 AM
:(
 
3:21 AM
@SterlingArcher Yeah man, if there was ever a time to go looking for a better job it's now
look at me. I suck at everything and have very little professional experience but I've been sending out applications recently and companies are actually taking me seriously
just testing the waters mostly but I'm considering leaving my current job (they've scaled me back to like 12hrs/wk)
which is why you guys see my ugly face in here so much lately
 
Scaled hours? Oh jesus
Oh god dammit I just got my beard back too and now I have to shave it again
 
yeah the company I work for is basically a contractor. business comes and goes
i'm lucky enough to be flexible with hours right now; they probably would've cut me by now otherwise
RIP that beard
 
It's kind of awkward timing for me... I have a vacation to mexico on the 17th
So I guess best time to start would be after
 
ah yeah
would be nice if you could line something up during the next 2 weeks, that way you don't have to worry while you're on vacation
cancun, was it?
 
Yup! Already paid for and all inclusive so I won't have to worry about fucking my funds up
Real question though, would including my stack overflow profile be beneficial or harmful?
 
3:32 AM
I like to use my SO Careers profile as my resume, or export the resume from it
 
you can include SO questions/answers on it that you were particularly proud of, they can always find your profile from that
as for just your SO profile? not sure. might want to remove "ISIS Headquarters" from it though :)
 
^^
 
@user2839251 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.
I'm taking over @CapricaSix's job
 
 
1 hour later…
5:19 AM
@ʞɔᴉN having 9k+ rep on stackoverflow is definitely helpful wen applying for internships
 
@Purag true, I got 2k+ and I work for google
that's right, google with a capital g
srsly not bragging tho
 
@ʞɔᴉN How'd you get the job?
 
well, I'm really good at sweeping the floors and unclogging the toilets
 
I was considering applying to them for an internship, but from what I've seen, they only allow that if you're within 18 months of completing your course
Hahaha
 
haha, go for it
 
5:26 AM
Guess I'll just have to wait until then
 
getting an actual job at Google is incredibly hard. dunno how difficult the admission process for interns is
how close are you to that 18 months?
 
18 months away, haha
Our courses are 4 years in India, and I've only just finished 1
 
haha
 
5:48 AM
@ʞɔᴉN are you referring to the SDE internship?
from what I've heard doing competitive programming is a great way to prepare yourself for the interviews
solid foundation of algorithms, data structures, and problem solving under time pressure
 
Can employer block some sites? and then I can't even access them from home network?
 
If a job requires you to do problem solving under time pressure I'd consider not applying :p
 
@ivarni I'm referring to the preparation for the interviews. I can't speak to the actual responsibilities that the role entails.
Also, I don't know of a place where time isn't a constraint. The only place I can think of where time may not be as important is in research.
 
@linstantnoodles I'd assume that the interview process reflects on the workplace
Yeah, but you don't plan on being under time pressure
to the point where you require it
that's broken
 
@ivarni Sadly, the interview process usually is broken
(From what I've read!)
 
6:00 AM
@ivarni To an extent, sure. We all wish that were the case but in reality that's not.
I'm not suggesting that you should work there. I'm pointing out the fact that if you do want to work at Google that's what you have to prepare for, whether or not you agree with the process.
@SomeGuy Yeah, it is in many places.
Even with the best of intentions
Like most things, nearly every approach has its drawbacks. Oh, you want to give take homes? Well, GL with that if you're not Facebook or Google.
I've read somewhere that a good approach from the hiring side is to treat interviewing like a scientific experiment. You want a process whose outcomes are measurable.
Whether that means doing whiteboarding interviews or pair programming, minimize variability and see whether that produces good candidates. It's not perfect but it's scales and is far better than just winging it.
 
6:25 AM
@ʞɔᴉN lmao, recruiters do value that kind of contribution to the field though
that said, I had a really unlucky hiring season. I hear (and feel firsthand) that the system is generally unkind to freshmen.
 
7:08 AM
This is getting installed on my colleague's tamperscript plugin next time he leaves the screen unlocked. (second image might be a bit NSFW)
I wonder if it would be better to base64 encode the images and inline them though
 
7:27 AM
hi. Anyone do git here?
I have a scaffold js lib project (A) on github...I clone it (i.e A) to my file system...meanwhile I create another repo over at github (i.e. B). I do stuff with the scaffold project in my local, but when I push the changes go to A...how to tell git to push to B...?
 
@deostroll help.github.com/articles/adding-a-remote (but you might want to be careful with that)
 
morning and happy new weekend :)
 
7:54 AM
blog.fiverr.com/… o.O @Abhishrek @SomeGuy
 
@AwalGarg -.-
I'm sick of crap like that
 
It feels like made up. Except for the second point.
 
@AwalGarg "Night Owls are the next generation of human beings"
"Be on your toes waiting for Xavier to show up"
 
lol
!!should I finally move arch from vm to main os?
cap still dead? :(
 
@FlorianMargaine What does the flag in apt-get -A crap signify? I can't find -A in linux.die.net/man/8/apt-get
oh. dur. It's ~A, for his string interpolation.
 
8:05 AM
wow copy text from tmux got prepended by four spaces automatically :o
> Why are sysadmins always broke? Because Unix users are always su-ing each other.
 
I thought it was because they put all their stuff in bin/
 
Chrome 45 removes NPAPI support and the ability to nuke the profiles button. I don't think I'm going to upgrade...
 
hmm, @room - windows fans (benji et. al): should I move arch from a vm to my main os?
more importantly, when will cap be back? :(
 
@JanDvorak Why do you need those things?
 
I might live without Unity but that button is ugly as f$%$
 
You should totally fork Chromium
 
I can't even find a "profiles" button, where is that thing?
 
your username at the top right. right click it.
 
I'm lost, but I guess if I can't find that button it doesn't bother me enough
 
8:31 AM
OTOH, the new loading animation in v44 is kinda fancy
 
@JanDvorak chrome 45 has arrow functions, just saying :)
 
@AwalGarg changelog?
 
huh, just realized I'm on 43 on my ubuntu vm
I fail at this linux shit
 
waiting for iojs to update v8 :P
 
@AwalGarg That's pretty neat
Wonder how it'll compare to a cheap Android tablet or maybe a raspi with xbmc pre-installed
 
8:39 AM
IKR. Shipping offline wikipedia and khan academy (major parts of it) is quite a good idea specially since internet connectivity at the targeted places is not reliable.
 
0
Q: How do force merge everything i have locally into the remote master?

NezamThe issue is that a team member had by mistake created a separate branch (main branch being master) called "Head". "Head" has the latest code which i now want to over-write to the master (since it is up-to-date with all the code). When i try to perform "Merge Head into master" i get an error say...

 
@Nezam what does git diff Head..master output?
(an error or a diff?)
 
@AwalGarg git diff Head master
gives me this:warning: refname 'Head' is ambiguous.
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
 
9:05 AM
Who thinks there should be a 15-character minimum in chat as well?
 
No
 
No
@Nezam the .. is required..
also, who in the hell names a branch "head"?
 
a pop-rock rendition of a christmas carol? I like, actually
 
> the Linux development scene looked more like a "bazaar," with code released early and often by a decentralized team of programmers whose only qualification was their ability to get the job done. [..] Torvalds, mostly by mistake, stumbled upon a very new, more effective development strategy lent momentum to Linux that BSD never saw.
 
 
1 hour later…
@SomeGuy It was mentioned in the Dan Ariely books, wasn't it?
 
Interesting when you think about that. If people think you'll behave rationally, they're more likely to screw you over
@Zirak I haven't read the books :P
I've only seen his blog posts
 
@SomeGuy It gets really interesting once you do several of these in a row with the same participants.
That way people "teach" each other how to behave properly, or what's the accepted ratio.
 
Yeah, I can imagine. It can go towards either end
Haha yeah
 
IIRC the ratio seemed to converge at around 3:1 (so if I get $100, I keep $75 and you get $25, and on the next round you do the same)
 
10:28 AM
Interesting
looks for research papers about the game
 
This multiple games situation is interesting in the prisoner's dilemma. What's the optimal strategy there?
Just read his books :P
 
Hahaha
Which one? Predictably Irrational?
 
Whichever was the first
 
That's the one, I think
 
anyone using sweet.js in production? any weirdo variable naming issues?
 
@SomeGuy Have you seen the article I linked to about monkey prostitution?
 
Haha, no. I'll read that
 
In related news, I now have "monkey prostitution" in my search history.
4
 
half an hour of sweet.js => so much fun.
 
Hahaha
 
11:00 AM
lol silly noobz reading about monkeys trololololol
hides
> “The capuchin has a small brain, and it’s pretty much focused on food and sex,"
add programming and sleeping to this and I shall be the capuchin
 
@AwalGarg sweetjs macros are so much less fun than lisp's macros, ftr
@Zirak yes, ~ is used for string interp in format
~℅ is a newline
 
> Workaround: there is no need to write such idiotic code
nice
@FlorianMargaine example or nothing :-P
 
11:19 AM
morning
I made a tictactoe game where two players play against eachother.. what should I call the first player and the second? Player1 Player2 ?
 
tic and tac
 
first_player and second_player
 
ugh
 
Or you can name them based on whether they are playing O or X, like Itchy Balls, Crooked Crotch,
 
@Zirak format strings are a crazy bitch... You can do (format nil "~{~a ~}" '(1 2 3)) and that will return the string "1 2 3 ". " ~{~a~^ ~}" means "space between each member except after the last, etc. Crazy bitch.
You can specify how to output a number, the number of digits after the dot, etc etc
Really powerful
 
11:37 AM
A DSL on par with regex in terms of power and readability
 
11:55 AM
@FlorianMargaine Like sprintf?
 
why are all the methods in the docs tutorial deprecated? >_<
 
@Zirak much more powerful than sprintf
The basic idea is the same though, yes
 
Hi!!!
Why is wuauclt.exe /updatenow not working with my W7?
I've deleted the softwareDistribution/downloads folder
 
12:24 PM
#lazyweb question: if I use webstorm, can i haz the same keyboard shortcuts on ubuntu and windoze?
 
@ivarni Take a guess
 
@Neoares wait for it
 
how do you wait for a command? xD
 
as in the update. They will email you when it is ready. (put your email in if you haven't already)
 
12:48 PM
Ben Fortune said wuauclt.exe /updateall, and I spent ages wondering why that wasn't doing anything
 
    Another nice challenge: Given a list of paths, generate a tree.
    Sample input:
        etc/
        etc/blah/
        etc/blah/foobar
        etc/baz
        usr/
        usr/blap

    Sample output:
    {
        etc: {
            blah: {
                foobar: {},
            },
            baz: {}
        },
        usr: {
            blah: {}
        }
    }

    Leaves can be replaced with whatever you choose.
 
Can use ES6 proxies?
 
uh, sure
 
Can use eval? not required
 
1:01 PM
Shut up and do it
 
done. sec, screenshotting. in a vm. will take 10 minutes because fuck virtual box.
 
crl
Other challenge: make a function to give next element of a en.wikipedia.org/wiki/Look-and-say_sequence element, like next(1122) = 2122
 
@crl Seems easier, I'll go have a look.
 
@Zirak how do you light an e-cigarette? Match.com
 
crl
@Callum Here's my solution jsbin.com/paxaxo/2/edit?js,output, but try it without looking
 
1:13 PM
 
ughh. I will just paste the code here. run it somewhere. somewhere.
function Tree() {
  return new Proxy({}, handler);
}

var handler = {
  get: function (target, key, receiver) {
    if (!(key in target)) {
      target[key] = Tree();  // auto-create a sub-Tree
    }
    return Reflect.get(target, key, receiver);
  }
};

function generatePaths (paths) {
	let tree = new Tree();
	let key = Math.random();
    paths.map(el => el.replace(/(?:^\/|\/$/, '')).forEach(function (p) {
		eval('tree.' + p.split('/').join('.'));
	});
}
@Zirak ^
 
Cute
 
For-loops weren't the way to go, then :P
 
@Zirak code using proxies automagically becomes cute.
 
crl
!!mdn Proxy
 
1:21 PM
@AwalGarg and super scary :D
 
crl
I appreciate the effort, but mdn would better not translate code personne.âge = 100; eek
well I should just switch lang and shut up
 
@crl Whoi? I've done a fair bit of programming in non-English./
 
@BenjaminGruenbaum only when too much of reflection™.
 
crl
@Callum it seems so bad to have all language keywords in English mixed up with another language
 
@crl If the domain is complex it will look equally bad when people try (and fail) to translate key domain terms in to English though
 
1:29 PM
@crl I don't think so,
It's a great chance to practice a language, I've found. Mixing two things I love.
 
crl
comments in your language are acceptable, but in the code.. it's painful to mix them
There are languages that generate function for you with English prefixes, so if the rest is in another language, it sucks
 
I completley disagree with you. In some of my code, variables/data types are in 2-3 different languages.
 
crl
hehe, I think some Haskell would be more comprehensible to me then
 
You know what's really awkward? Listening to some domain expert talking about business rules in language X and then later try to map that over to variable names in language Y, translated into Y by Joe over in a different team :p
 
can I buy windows 8.1 and upgrade to 10?
is so much cheap
 
1:38 PM
@crl Judging by the personne.âge = 100, yeah, possibly
@Neoares Any valid windows 7/8/8.1 is eligible to upgrade, so I assume that you could.
 
stackoverflow.com/questions/31762520/… "My code doesn't work, there must be something wrong with javascript and promises and things"
 

« first day (1750 days earlier)      last day (3184 days later) »