« first day (1720 days earlier)      last day (3454 days later) » 

09:03
baaaah
@NeelBasu baaaaaaaaaaaaaaaaah
@rightfold This is how I shuffle the numbers 1 to 33 in Java:
List<Integer> a = IntStream.rangeClosed(1, 33).boxed().collect(toList());
Collections.shuffle(a);
System.out.println(a);
How would I do this in hipster languages? :)
user1804599
iex(1)> 1..33 |> Enum.shuffle() |> IO.inspect()
[8, 30, 14, 13, 31, 3, 15, 20, 18, 24, 12, 25, 32, 10, 28, 23, 16, 9, 33, 19,
 22, 11, 1, 17, 27, 2, 26, 21, 7, 6, 5, 4, 29]
why do we have another sheep
there can only be one lamb, duh.
user1804599
scala> import scala.util.Random.shuffle
import scala.util.Random.shuffle

scala> println(shuffle(1 to 33))
Vector(5, 28, 8, 9, 7, 1, 31, 15, 20, 4, 24, 12, 3, 18, 19, 6, 2, 33, 23, 21, 11, 14, 29, 22, 10, 16, 30, 13, 25, 17, 26, 27, 32)
@fredoverflow print =<< shuffleM [1, 33], possibly
sbi
sbi
09:13
Here's another thing I'm bad at: bash. :( How do I iterate recursively over all *.x files in a folder so that I can pipe the output into grep?
^here's one for you, @sehe
that sounds like something I had to do at the unix programming exam
fuck if I remember anything tho
@sbi recursively over files?
Not to be rude but isn't this like first result on google?
sbi
sbi
@AlexM. Yeah, so did I, more than 20 years ago.
It sounds like something that'd be instant-google-able.
09:15
or recursively over directories listing files that match *.x
sbi
sbi
@BartekBanachewicz I want all those files to be named, so I can pipe them into grep.
@Rapptz Yeah, you might have a point there.
find . -name "*.x" ?
yea
then pipe to grep
perhaps add -type f
@rightfold English is a very powerful programming language
09:17
or run -exec
I think I'll accept the offer the guys made me
it's a good offer
salary's not bad and holy shit everyone looks so smart and organized
how much would that be in buckets of potatoes
@AlexM. i.e. not gamedev
@AlexM. it's a trap
yeah I'll probably gradually explain why I'll never touch a gamedev company again
as time passes
sbi
sbi
09:18
@BartekBanachewicz Well, I did get that far. However, while it lists all the files just fine, when I pipe its output into grep, the latter finds nothing.
Are you grepping stdin to look for your needle in here?
the work seems interesting
the focus is this
LabVIEW (short for Laboratory Virtual Instrument Engineering Workbench) is a system-design platform and development environment for a visual programming language from National Instruments. The graphical language is named "G" (not to be confused with G-code). Originally released for the Apple Macintosh in 1986, LabVIEW is commonly used for data acquisition, instrument control, and industrial automation on a variety of platforms including Microsoft Windows, various versions of UNIX, Linux, and Mac OS X. The latest version of LabVIEW is LabVIEW 2014, released in August 2014. == Dataflow programming... ==
sbi
sbi
@AlexM. See, I have listened to the stories, and skipped that "once burned" phase, going to some other company immediately. :)
As opposed to grepping a list of files that comes from stdin
@sbi you need more pipes, clearly
sbi
sbi
09:19
@LucDanton Oh!
@AlexM. ???
@AlexM. what do you mean
you worked for one?
sbi
sbi
@thecoshman But I'm not a plumber!
grep has an -R option
@sbi bah, all they do is through spanners in the works
sbi
sbi
@thecoshman O.M.G., you are such an hilarious misspeller!
@Rapptz This one doesn't. (At least, grep --help comes up dry.) Is this what --file obtain PATTERN from FILE does?
Nope.
09:24
@sbi find . -name '*.x' | xargs grep foo
--recurse?
oh wait it's --recursive
@sbi "obtain pattern from file" != "look for pattern in file"
@sbi :( stop being mean, at the very least tell me where I am mistaken.
sbi
sbi
@FlorianMargaine Ah, xargs I had seen before. Damned if I know what it does, but this works. Thanks!
@thecoshman It's wrong throw and throw.
@sbi xargs is magical stuff
@sbi oh now really
09:26
xargs takes stdin and puts it as an argument
like if stdin is foo, and you do | xargs grep bar, it will do grep bar foo
It's silly to use xargs with find
sbi
sbi
@FlorianMargaine Ah, that makes sense.
I should really remember this. But I haven't worked in bash in years.
Just use -exec
@CatPlusPlus tell that to almost everyone vOv
user1804599
@Rapptz -r
user1804599
09:27
Also use globs and for loops.
yeah it's -r --recursive.
@Rapptz I'd do that, yes
user1804599
fuck find
grep -rns --include \*.x foo
would work too.
-rns are my usual grep arguments
@sbi "through".
09:30
@R.MartinhoFernandes ¬_¬ he's being extra mean
user1804599
Also use beyondgrep.com instead of grep for grepping source code.
someone only gave him two eggs instead of his usually five
sbi
sbi
@R.MartinhoFernandes No, that's what you do with spanners.
I learned something fun about grep: GNU grep and BSD grep have different regex modes.
@sbi you're a spanner
user1804599
09:30
It's faster and skips many files you're not interested in, and uses Perl regexes instead of some limited incomprehensible crap.
@sbi btw, still up for tomorrow's dinner?
@rightfold grep -P (gnu grep only) allows perl regexes
user1804599
> Meet the women who butchers young girls' genitals with a razor blade
user1804599
why'd you want to meet such an idiot
@rightfold Perl regexes <3
sbi
sbi
09:32
@R.MartinhoFernandes Sigh. It's one of the reasons I came here. There's been a development... I am asked to go to some party's party, in order to chat with the party's people, in order to make our case better known.
I am not yet decided.
Would you be able to meet any other day?
@rightfold Yeah who butcher young girls' genitals with razor blades??? Kitchen knives are better at butchering by far.
@sbi Singular 'you'?
what an idiot
@rightfold Yeah, mismatched number are one of the worst grammar offenses.
@buttifulbuttefly don't be stupid, we have a knife specifically for this, a butcher knife
sbi
sbi
09:34
@R.MartinhoFernandes That's not why you wanted to meet, is it? If it was just that, I could just ask you any day whether you have time after work.
user1804599
@R.MartinhoFernandes lol I didn't even noticed.
@sbi K, just checking. Dunno.
user1804599
(that was intentional after the fact)
But let's go with 'yes'.
Depends on the day.
@R.MartinhoFernandes so... what you're saying is... you want more mobile DBs
user1804599
09:35
PostgreSQL <3
user1804599
PostgreSQL uses PCRE. :D
Have you guys heard of Realm, btw?
user1804599
> Realm is a mobile database
@R.MartinhoFernandes not in that context
user1804599
> It can save you thousands of lines of code & weeks of work,
09:35
@R.MartinhoFernandes Now let's bet on the average time-to-death of the ones born after 2007
user1804599
user1804599
> not ... on top SQLite. Instead it uses its own persistence engine,
> It can save you thousands of lines of code & weeks of work, and lets you craft amazing new user experiences.
> amazing new user experiences
user1804599
1/10 wouldn't use.
fuck off already
> Why should I use Realm?
You shouldn't.
09:37
@R.MartinhoFernandes nah. Is it good?
sbi
sbi
@R.MartinhoFernandes Anything from this Saturday until next week's Thursday. Well, except for Wednesday. Sigh.
Got an offer to work on it.
@R.MartinhoFernandes woah
tell us more
user1804599
SQLite is more stable than Iron-56.
09:38
Go and make amazing new user experiences for a brand new way to experience life and the world for all of us
I heard about it
The link is purple.
@Rapptz in SO chat? How is it possible?
user1804599
> Any single Realm file cannot be larger than the amount of memory your application would be allowed to map in iOS
No when I googled it.
09:39
@BartekBanachewicz Meh, they're not based in Berlin and don't seem to offer remote work. Dealbreaker.
user1804599
let realm = Realm()

realm.write {
    realm.add(mydog)
}
user1804599
this code makes no sense.
user1804599
no storage location is passed to Realm
"I'm not leaving Berlin, and I don't care how much you offer" is my current stance.
09:41
This is nice. It's important to realize that effectively you work on a vector of char* now (from a memory viewpoint) and this could impact performance very badly. This is reason for me not to upvote it here, because I think the context is all about maximizing performance, by eliminating allocation/copying. — sehe 18 secs ago
user1804599
global state = bad
it's the whole realm :getit:
Xeo
Xeo
> Temperatur: 33.95°C
uguu
@R.MartinhoFernandes what if they offer millions
user1804599
> A a ycombinator company company
09:41
Fuck them.
billions
> Download Realm: Switft Objective-C Android
@Xeo back to gettin up at 14
Android is a language!? TIL
where does it say it's a list of languages
09:42
> Switft
user1804599
@Xeo 23 degrees here.
user1804599
airco :3
@BartekBanachewicz one of these is not like the other 2
It's a version of Swift for TFTs.
@rightfold it's object state though
Xeo
Xeo
09:42
@rightfold 21 degrees inside, here.
@R.MartinhoFernandes :D
user1804599
Nice.
@Borgleader I like Chamber of Aspects
@Borgleader sooo
I think I have a worgen warrior there
09:43
@Xeo open windows during night, close during day
my paycheck got paid
@Mr.kbok long scale or short scale
not on my account yet
give me moneyz
on an unrelated note
I visited a bike shop yesterday
oh noes. money drain
@AlexM. hmm?
09:44
fascinating
turns out there's a reason for motorcycle clothes being that expensive
@Borgleader WoW realms
vaccinating
I tried on some high-end jackets
they breathe
09:44
they are freaking armor that's what they are
they are ultra light weight, made from space fibers
actually the one I tried weighed a lot
user1804599
I'm the best animal on this planet.
but being in one felt like it gave more protection than Toyota Yaris
that's a low bar
09:45
@AlexM. Ctrl+F Chamber yields nothing.
those protectors are 3-4cm thick in places
and surprisingly stiff. Like, you can't bend the arm at the elbow freely
@Borgleader Chamber of Aspects (PvE) Medium English
note that I'm on EU
why are you on US weren't you Italian
oh, of course
@sbi I'll let you know.
@AlexM. he's from Canada
09:46
Canada is in Italy?
4
I think it's a running joke by now
@AlexM. i told you i wasnt italian yesterday
@Borgleader I know :P
sbi
sbi
@R.MartinhoFernandes When would you know?
09:47
The clothes for our two would cost around 50% of the price of the motorbike I want to buy
which is a bit higher than anticipated
also the seller made a good point; clothes first, motorcycle second.
alright time to go to work
sbi
sbi
@Borgleader Weren't you the one I either misplaced in Canada despite you living in Berlin or the other way around? Sheepish grin.
user1804599
@sbi Actually, maybe you'd be up for a picnic at Jungfernheide on Saturday?
sbi
sbi
During the day is bad. I promised the friend who lives across the street and whose apartment was flooded by the firefighters the other week that I would help her recover stuff, and since I am currently grounded at home with a sick child, there will probably only be Saturday to do that. :(
09:53
Ok. I'll let you know some other day tomorrow, then.
sbi
sbi
@R.MartinhoFernandes Well, if this doesn't work out (come Friday next week I will have kids again, and can't go anywhere unless I find a sitter), I might just drop the party party on Friday night and come to the dinner instead. I am not eager anyway.
@MarcoA. that's creepy as fuck :O
Ok.
@sbi Just let me know if you decide so, just so Miss B doesn't come up with a different plan.
sbi
sbi
@R.MartinhoFernandes When does the dinner start. again?
sbi
sbi
10:04
Well, if I would come late to the dinner, I could do both. The party's party starts at 19, I could probably leave by 21, so I'd be at the dinner by 22. What do you think, would this work out?
@sbi Sounds feasible.
sbi
sbi
@R.MartinhoFernandes You wouldn't leave at 11pm, anyway, would you?
After several weeks, git still drives me nuts because I keep forgetting how to do the simplest of tasks.
@sbi I usually leave well past midnight.
Whenever-Sophia-kicks-us-all-out-AM.
sbi
sbi
Yesterday, I set up a scratch git repo in which I renamed a bunch of branches. It wasn't easy (I am still a git newbie), but I worked it out, pushed everything to the main repo, and deleted the scratch one. Now, after a fetch --all in my non-scratch repo, I see that the other repo still has all the old branches, too. I thought I had done a push --prune, but it seems I hadn't. Then it occurred to me that I also would have to do a fetch --all --prune. Sigh.
@R.MartinhoFernandes Alright, then this might work out. I go to that party's beach party, make smalltalk to slimy politicians, have a beer and a Bratwurst, and try to sneak off around 9, so I can come to the bookstore.
@dyp I don't have much qualms about xy answering like that. I feel 90% of answers are xy. The goal of the site is to provide answers to questions provide recommended ways forward in situations where the OP is stuck.
@sbi Yup. These little details of git are about as tedious as writing up that chat message must have been
sbi
sbi
10:12
@sehe :)
Now how do I get rid of a single branch on origin without running the risk of deleting everything I do not have locally?
You fetch it first.
sbi
sbi
And did I mention I still fail at the simplest tasks?
@R.MartinhoFernandes I have already deleted that branch locally.
@sbi git push origin :to_be_deleted
sbi
sbi
@sehe What's that colon doing?
It separates the local ref from the remote ref. There is no local ref :)
Didyou know about man-pages :) (SCNR)
sbi
sbi
10:16
@sehe Uhuh.
This one of the few things that I found that SourceTree GUI does pretty well, by the way. Did you ever try it (disclaimer: I hate it, but many people seem to like it)
sbi
sbi
@sehe I did. I wasn't overwhelmed, though. I am using a mixture of bash and Tortoise now.
Those are my weapons of choice, in that order, too. I like Tortoise for log/diff browsing
sbi
sbi
@sehe Yeah. I also like how it so nicely skips that staging nonsense. :)
@Columbo So who are you on Twitter?
10:20
> The 22-year-old was part of a team that was setting up the stationary robot when it grabbed and crushed him against a metal plate, Hillwig said.
@sbi Oh, good idea, I could tweet this
@sbi It's basically src:dst, but without a source, so it replaces the remote branch with naught.
sbi
sbi
@Columbo Came by my timeline already.
@sbi I've started to appreciate staging since Vim+Fugitive. (I know, that's not Ihre Tasse Tee)
sbi
sbi
@R.MartinhoFernandes That is scary. Really, I do a move locally, and want this to be reflected remotely. That's a simple operation, actually. So why do I have to copy-and-delete manually?
@sehe I have nothing against vim fugitives. I'd even brew them a tea to calm them, if needed.
@rightfold Oh, the Scala solution is very nice!
10:25
@sbi This guy:
Who laughed in effusive disdain when people were scared from robots taking over? http://bit.ly/1RTqA5Y
@Columbo R. Martinho Killnandez
4
Murderinho
sbi
sbi
Es beginnt! #skynet 1st step. RT @BBCWorld Man crushed to death by robot at German car factory http://bbc.in/1IuThFL http://t.co/4RM4ppdKKB
Ell
Ell
@Columbo human error m8
:<
Robot haters.
10:35
@Ell That's what the Jews want you to believe.
> Rapper Christ Bearer explains why he cut off part of his own penis
thanks BBC
Ell
Ell
Is it his foreskin?
he cut a part at the bottom and only later realized that all of it would fall off
I don't know and I don't want to know
cutting any part of the penis sounds equally wrong
Ell
Ell
I agree
10:37
I guess bartek's penis doesn't...
... cut it
AAAAAAAAAAAYYYYYYYYYYYYYYYYYYYYYY
Ell
Ell
Lmao
He wanted a vasectomy.
He was also completely high on everything.
Ell
Ell
And he thought he could do it himself?
Ah that explains it
Then he jumped out the window.
He's proud of it.
He's probably still riding the same high.
@sbi I bet he was crushed quickly and cleanly
10:42
@Ell lmpo
@StackedCrooked Oh yeah, I've been meaning to send you money
@BartekBanachewicz it's ok, you don't have to call it a 'poopper', we can handle 'ass'
the only pooper in this room is a drawing of a pirate
hrhrhr
Bigots come out of the closet.
user image
3
lol
Her account is verified.
10:49
@R.MartinhoFernandes the fuck do they say there
"no people should be looked down upon", "you can't have a society of hate"
@BartekBanachewicz They're no longer afraid of speaking from the heart. And their heart says marriage is between a man and a woman.
(lol) "I have friends who are gay"
@BartekBanachewicz "I love them BUT"
@R.MartinhoFernandes and I guess what's implied is that we should care?
@BartekBanachewicz It's a call for people that feel the same to not be ashamed of it.
@BartekBanachewicz It's the usual "I am not trying to be racist, but black people should not be on the same train carriage as white people"
10:51
lmao
> AWW POOR OPPRESSED BIGOTS
/cc @buttifulbuttefly
@BartekBanachewicz Yep, that's exactly it.
@BartekBanachewicz My thoughts exactly
but you can't have a society of bigotry
10:53
Pure win.
OH NOES
HATLOR
Dinozaur Lesbian Jew Nazi is Magic in Space Slaves
this sounds like a title of a book that could appear on TWTFS
user1804599
@R.MartinhoFernandes lol
user1804599
the flag of rightfoldtopia
10:59
> because if the pendulum of social equality suddenly swings back (and it will eventually when rare earth elements start to run out) fags will be the first to get genocided, because christians are the ones with the guns and the military is mostly concervative
I uh
guys I need to help with breaking this thing down because too not

« first day (1720 days earlier)      last day (3454 days later) »