« first day (1533 days earlier)      last day (3432 days later) » 

7:00 PM
why is italian cuisine so fucking rich
they cook everything awesome
I want to be italian
 
Xeo
I'm half-italian
 
I half-envy you
 
@Xeo He's not Captain Obvious. He's Empereur Aiman.
 
user1804599
Captain Oblivious
 
7:04 PM
I managed to get an oven burn >.>
 
bolognese now on the hob. meaty and rich. haram.
 
it's not that big and stuff, but it's in a very inconvenient spot
 
user1804599
Yum food.
 
user1804599
I want bacon.
 
user1804599
A bacon pie.
 
essentially on top of my hand, and touching it hurts like hell
whenever I use my hand to do anything, I can accidentally touch it
 
user1804599
Don't touch it!
 
I can't put anything in my jacket's pockets without touching it with the zipper's teeth
it's hell
 
One word: gloves.
 
@rightføld This exists!?
 
7:08 PM
@LightnessRacesinOrbit not cold enough for gloves :( maybe a band-aid
 
What if the gloves themselves hurt.
 
@AlexM. He probably meant cooking / hot stuff gloves.
 
user1804599
Kool-Aid
 
@VáclavZeman too late for that lol
it was a silly accident, I wanted to cut a piece of what was in the oven because I was curious
and when it was time to get it out, I raised my hand too much and touched the oven's ceiling
 
Ell
(*) :: Num a => a -> a -> a
 
7:14 PM
@AlexM. I did this once.
But in a toaster.
Toasters: Not even once
 
@AlexM.: Have you had it examined by an MD? Some burns heal badly, if you do not use ointments.
 
nah, I just let it heal, it's not exactly horrible at the moment
if it will heal like my other oil burns healed, it's fine
 
@AlexM. Famous last words.
 
after 8 months they faded out enough to not be able to see them without looking really hard
 
lol after 8 months?
see doctor.
 
7:17 PM
I'm not going to a doctor for such a burn lol
I don't want to see a doctor, shoo doctors
 
@AlexM. I suggest a bandage then
gauze
 
I'll get a bandaid to make sure I don't touch it anymore
@LightnessRacesinOrbit isn't that too much? :D
I thought you use those for wounds that are open-ish and stuff
 
Ell
I advise 400g of vaginally administered viagra
 
I second this.
 
@AlexM. I might be misunderstanding what gauze is
 
Ell
7:20 PM
gauze is like mesh stuff
 
ok nope it's bandage material just as I thought
wrap it around your hand to form a bandage
you could use some other material I suppose but why
 
I need a pop filter.
 
if you had an open wound you would sew it shut, not just wrap it in gauze lol
 
What @Puppy says. 8 months and incomplete healing is 3rd-degree burn. You should have resorted to your local quack much earlier:(
 
nah it's probably just a scar
I had the same a few times from oven
 
7:23 PM
@AlexM.: Seriously go see a doctor or at least a pharmacist to get some ointment. Use it and cover the wound with sterile gauze.
 
does it really look that bad? lol
 
going to the doctor for that is called hypochondria and a waste of resources
 
'if it will heal like my other oil burns healed' - you seem to be prone to spontaneous developer combustion.
@LightnessRacesinOrbit .. not healed after 8 months:(
 
well it's well known that burn marks don't really disappear properly
or so I think
 
user1804599
@JohanLarsson No, it's two wolves and a sheep voting who is going to argue with others what the wolves and the sheep will have for dinner.
 
7:25 PM
I mean burn scars
 
@AlexM. Maybe, but it's still painful after 8 months. That's not good.
 
it's not painful after 8 months
the 8 month burns were caused by something else (drops of boiling oil)
I was mentioning that after 8 months they faded out enough to be hard to spot
 
@rightføld that sounds like parliamentarianism.
 
the burn in the pic above is some 3 days old
 
wow this hot baguette is really hot. not sure what i expected tbh
 
user1804599
7:27 PM
I like to call it democrazy.
 
(the oven burn)
 
@AlexM. oh, yeah, that's not good
 
Hmm.. maybe you should avoid jobs in oil and gas refineries.
 
for 8 months
if that's the new burn then don't worry about it
 
it's new yes
 
7:28 PM
@MartinJames or code harder so the fists can withstand molten iron?
 
the white-greenish thing in the middle looks like that liquidy thing that gets formed on healing wounds
I don't think it's some sort of infection
 
Eewww..
 
meh I'm safe
 
@AlexM. Yup - everything is good, (I'm in UK, you're in Romania, so I'm safe from the firestarter:).
 
on the bright side!
today I did the same thing but this time I was extra careful wrt how high I raised my arm in the oven
so the burn gave me some cooking XP
 
Ell
7:36 PM
@LightnessRacesinOrbit I'm surprised. I thought it was just supposed to be a warm baguette
 
user784668
7:55 PM
I'm a safe
 
Here the user does std::string filename;
std::cout << "Input filename- ";
std::cin >> filename;

std::ifstream infile(filename);

Why can't I just do ifstream filename?
 
wut
 
stackoverflow.com/questions/10413217/c-program-to-read-a-txt-file-and-sort-data
 
because you're not C++11-ing
 
is infile a method?
 
8:03 PM
its the name of the variable
i think you need a good c++ book
 
@DonLarynx it's impossible to not have heard of constructors
I mean you have experience in Java!
I guess the pizza hut delivery in physics wouldn't help here
so we'll leave that out
 
@DonLarynx no.
 
thanks @AlexM. I'll look into constructors
 
1 min ago, by Borgleader
i think you need a good c++ book
 
user784668
@Puppy Yes
 
8:06 PM
no.
 
maybe
would maybe yes be equivalent to maybe no
"maybe yes" means either yes or no
 
user1804599
yes no maybe
 
or does it mean "yes, no, undefined"
 
user1804599
yes, no, file not found
 
lol
in any case, yes or no or undefined == no or yes or undefined
 
user784668
8:08 PM
ZFS can you run out of space already
 
@ADG: I just asked that.
 
o.o
seriously? both of you?
wtf
 
user1804599
@ADG Because filename is already defined.
 
user784668
Why can't I just say goto hell;?
 
what the fuck
 
user784668
8:10 PM
@AlexM. yes
 
@ADG You need a good C++ book too.
 
user1804599
You are all insanely bad at C++.
 
ADG
@DonLarynx sorry
 
What C++ books did you read? @Borgleader @AlexM.
 
Ell
Google c++ books stack overflow
 
8:22 PM
I never read any C++ books and I'm the best at it
 
and the humblest
 
@DonLarynx I didn't
I don't know C++ that well but what knowledge I got about it was from this chatroom and my job (i.e. actual usage)
I think I once skimmed through books by Alexandrescu and Meyers
some of the things there probably stuck but I dunno
 
humility is admittedly not one of my many fantastic traits.
 
@Ell :)
@DonLarynx In C++11/C++14 you can. C++03 is broken in this regard. You have to write std::ifstream infile(filename.c_str()). Sorry.
 
@DonLarynx Programming: Principles and Practice Using C++ by Bjarne Stroustrup (I'll admit I had already had a class on C++ in uni by the time I read it)
 
8:26 PM
48f - 4f = 43.95673f
thx floating point imprecision
I need to do something with these values
rounding works
for some inexplicable reason, floor-ing made my character fall through the floor, even though its initial Y coordinate was 2.5
 
user1804599
@AlexM. Use decimals and you won't lose anything when converting from/to decimal representations.
 
but meh, after seeing the bullet through paper crap
 
user1804599
Boost has a decimal type.
 
yeah this is C# inside Unity
 
user1804599
C# has decimal built-in.
 
8:29 PM
so no Boost :(
and there's no precision loss when going back from decimal to float?
Vector3's use floats as coords
 
Adblock Plus may cripple browser performance http://www.extremetech.com/computing/182428-ironic-iframes-adblock-plus-is-probably-the-reason-firefox-and-chrome-are-such-memory-hogs
wut
 
user1804599
You cannot convert arbitrary (ignoring small-ass and huge-ass numbers) decimal representations to floats without losing precision.
 
user1804599
Because floats use binary representations.
 
user1804599
Use binary literals instead of decimal ones if you want exact values.
 
I'll stick to rounding then, so far it works fine
after moving a lot (before rounding) I noticed that the position was off by at least 1f, but I guess that's because of accumulated imprecision
and won't happen when rounding on each step
 
user1804599
8:33 PM
If you don't perform any operations that can produce irrational numbers given rational numbers, use rational numbers. :P
 
user1804599
Then you have your full precision.
 
@Borgleader Very old news.
 
@rightføld I'm trying to move something around by a fixed length step so that the world looks like a grid :( you lost me with all the explanations
move things here;
var pos = transform.position;
transform.position = new Vector3(Mathf.Round(pos.x), Mathf.Round(pos.y), Mathf.Round(pos.z));
wish unity provided a nice way to quickly round all the coords of a vector3
maybe I can write an extension method or sth
 
user1804599
@AlexM. Use integers if the steps are integers.
 
user1804599
Make Vector3 parameterised.
 
8:38 PM
I imagine that it's Unity-provided.
 
user1804599
lol shitty libraries
 
user1804599
well then you're out of luck
 
he could just roll his own vector class it's not like they're that difficult to write.
 
thanks to pointers it would undoubtedly be faster and more efficient... wat? — FredOverflow 18 secs ago
 
user1804599
@Puppy I heard generic mathematics are a pain in C#, though.
 
user1804599
8:40 PM
So better switch to F#. :P
 
user1804599
F# has something similar to C++ templates in terms of instantiation, which is pretty nice.
 
generic mathematics in C# are a shitfest because they faceplanted on operator overloading
 
What is "generic mathematics"?
 
user1804599
Generic methods that use +, -, *, / and/or %.
 
well, imagine a generic function that can operate on floats or doubles, say.
 
8:43 PM
transform.position = transform.position.RoundCoords();
extension method worked
 
you can't exactly T f<T>(T t) where T : INumber { }
 
user1804599
Overload!
 
and duplicate all the logic? fuck that shit
 
user1804599
No, just use F#'s inline. :P
 
I don't believe C# has that functionality
 
user1804599
8:44 PM
C# sucks!
 
known but not helpful
 
@rightføld What language doesn't, in one form or another?
 
Wide.
 
user1804599
// Fun-fact, this Scala code generates 100 class files. :P
class A[@specialized T, @specialized U] { }
 
So you're the first language designer to design a language that doesn't suck?
Pretty unlikely if you ask me.
Wide has to have some weak spots.
 
8:46 PM
well I am a tremendous and incredible person
 
user1804599
@FredOverflow There is no implementation of it, for example.
 
@FredOverflow Mainly that it has only one implementer.
 
@rightføld Why 100? Aren't there 8 primitive types and 1 reference type? Should be 81, right?
 
@rightføld lol - a minor issue..
 
user1804599
@FredOverflow (8 primitives + 1 reference + 1 Unit/void)^2.
 
8:48 PM
lol Java types are awful
 
this looks tasty
A Scotch egg consists of a hard-boiled egg wrapped in sausage meat, coated in bread crumbs and baked or deep-fried. == Origin == The London department store Fortnum & Mason claims to have invented Scotch eggs in 1738, but they may have been inspired by the Moghul dish nargisi kofta ("Narcissus meatballs"). The earliest printed recipe appears in the 1809 edition of Mrs. Rundell's A New System of Domestic Cookery. Mrs. Rundell—and later 19th-century authors—served them hot, with gravy. == Serving == Scotch eggs are a common picnic food. In the United Kingdom packaged Scotch eggs are commo...
 
so... class A[@specialized T, @specialized U, @specialized W] {} -> 1000 class files?
 
user1804599
Yeah. :D
 
@AlexM. It is.
 
@rightføld Is Unit not a subtype of AnyRef?
 
user1804599
8:48 PM
You can specialise for e.g. Int and Double only, though:
 
user1804599
class A[@specialized(Int) T, @specialized(Int, Double) U] { }
 
user1804599
@FredOverflow Unit is weird.
 
C# specializes "on the fly", does it not?
 
user1804599
Yeah.
 
user1804599
Hmm, not 1000 it seems.
 
user1804599
8:50 PM
zoidberg :: ~/hi » cat hi.scala
class A[@specialized T, @specialized U, @specialized V] { }
zoidberg :: ~/hi » scalac hi.scala
zoidberg :: ~/hi » ls | grep 'class$' | wc -l
     730
 
you severely disappoint me
 
@rightføld That's 9*9*9+1
 
user1804599
Yeah.
 
Ell
Does wide have generics?
 
So does that make Unit more weird or less weird than you thought it was? ;)
 
user1804599
8:52 PM
No idea.
 
depends on what exact semantics you wanted from generics.
 
C# generics are just very weak
At least they're runtime
 
there are some features of C# generics I like.
but they're mostly weak.
 
@BenjaminGruenbaum In what sense?
 
user1804599
Scala generics are pretty neat except they're erased.
 
user1804599
8:53 PM
Type tags are suboptimal but better than nothing.
 
this... every fucking year
 
user1804599
OTOH CLI generics being shitty prevents F# from being awesome.
 
@FredOverflow Do you go to the CCC?
 
what?
 
@Borgleader lol
 
Ell
8:53 PM
@rightføld Scala generics are erased?
 
user1804599
Yeah.
 
@FredOverflow no variadic generics for example, you can't infer one generic from another, specifying the ability to new a generic is limited to a parameterless constructor
 
user1804599
List[Int] and List[Double] are the same type at runtime.
 
@bamboon I have absolutely zero motivation to go there. I don't consider myself a "hacker".
 
Scala has one typing win with structural typing support though
 
user1804599
8:54 PM
There's a type class that gives you full information, though.
 
increasingly feeling that variadics are not required.
 
Ell
@rightføld was about to say
 
there are some places where I'm not sure how to dodge them yet
 
@Puppy do my challenge from that other day, a function that wraps an arbitrary function and changes its exception thrown type from A to B
 
@FredOverflow lol
 
8:54 PM
Recursive generics too, to describe currying.
 
Ell
They are tagged or something
 
@BenjaminGruenbaum In C++?
 
user1804599
In C++ it's quite easy.
 
@Puppy no, C++ can do it.
 
user1804599
It's hard if you don't have variadics.
 
8:55 PM
then what are you wanting from me again?
I only recall commenting that C++ could do it.
 
@Puppy in Wide
 
user1804599
@BenjaminGruenbaum have you looked into HList? github.com/milessabin/shapeless
 
user1804599
It may allow it.
 
Haven't, I figured out how to do it in C# though with a code template
 
ah yes.
in Wide you can do this:
well, actually, I'm not sure if the EH support stuff needs compiler support I didn't implement yet.
but in principle, you can do it
 
user1804599
8:58 PM
In Styx it's easy; all functions are unary. :P
 
How do you write flip in Styx?
 
user1804599
let flip f x y = f y x
 
nice
 
user1804599
Or let flip (f: 'a -> 'b -> 'c) (x: 'a) (y: 'b): 'b -> 'a -> 'c = f x y.
 
user1804599
9:00 PM
Not entirely sure about syntax for type parameters yet.
 
but generally
you don't need variadics in forwarding functions because you can bind parameters at the call site with lambdas.
 
OK, I believe that
`ifstream inFile;
inFile.open(filename);`
initiates an object `inFile` of class `ifstream`. `ifstream` is a class defined in then library `fstream`. This class `ifstream` (and thus, the object `infile` as well) has a function called `open()` with parameter of type `.file`.

So then, `ifstream infile(filename)` creates an object `infile` from class `ifstream`. My question is, does `infile(filename)` mean `infile.open(filename)`?
 
OMG, Doom the movie on TV.
Should I watch?
 
no.
to both of you.
 
user1804599
@DonLarynx ugh dude wtf
 
9:04 PM
IIRC it was quite nice B movie.
 
@DonLarynx ifstream infile(filename); creates the stream and opens the file.
 
Ok, thanks @Fred
 
@DonLarynx A look at the API would have helped ;)
(2)
 
so
reflection on lambda captures: yay?
 
9:07 PM
@VáclavZeman I didn't even know there was a Doom movie. What game is it based upon, Doom 1, 2 or 3?
 
they were all pretty shitty so
 
user1804599
@Puppy I don't see why not.
 
@rightføld Currently I'm thinking that func.captures(T) -> Range(T).
then for regular functions/member functions/overload sets, they have captures(T) but it's always an empty range.
 
user1804599
Yeah.
 
I have a few places in the Wide compiler where I really wish I could reflect on lambda captures.
 
9:11 PM
Doom is a 2005 science fiction action horror film directed by Andrzej Bartkowiak. It is loosely based on the video game series of the same name created by id Software. The film follows a group of Marines in a Research Facility on Mars - initially arriving on a rescue and retrieval mission after communications ceased, the Marines soon battle genetically engineered monsters plaguing the facility. After movie rights deals with Universal Pictures and Columbia Pictures expired, id Software signed a deal with Warner Bros. with the stipulation that the movie would be greenlit within 12 months. Warner...
@DonLarynx The infile constructor that takes a filename performs the same job as .open(filename), as a shortcut
That means the following two sections of code do the same thing:
std::ifstream infile(filename);
//
std::ifstream infile;
infile.open(filename);
This isn't a general rule in C++ — it's a property of the design of std::ifstream.
 
> What the fuck is wrong with you people?, A NEW DOOM IS COMING, and I only watch fags saying "Where is my Fallout 4?", "Where is my Rage 2?, "I want Quake!".
lol
 
@Borgleader IDGI
 
@FredOverflow If only iD could actually make good games
 
> a video game teaser with only cinematic is like a movie teaser with only gameplay, IT MAKES NO FUCKING SENSE. Show some gameplay for fucks sake.
> your cheap whore mother is a dumb cunt
God I love YouTube comments :-D
 
@LightnessRacesinOrbit This is the kind of comment around holidays every damn year. cuz i spend a lot of time in front of a computer in my room
 
9:15 PM
@Puppy Commander Keen was pretty good.
 
that was like, 25 years ago
 
I didn't pick that up from the image but ok
so tempted to flag
 
Anyone know how to truncate a file to a set number of lines with a bash command like truncate?
 
no.
 
9:16 PM
@AaronHall What's wrong with the bash command?
 
I need a set number of lines.
 
he needs us to hold his hand whilst he exercises his lone brain cell?
 
if truncate can do it, its man page isn't very helpful.
 
you should really get some help with that
 
@AaronHall So open the file source.txt, repeat n times: read line from source.txt, write line to dest.txt. Done.
 
9:19 PM
I tried using head piped to the same file, but I want to edit the file in place. No success.
 
what a terrible shame, that must frustrate you a lot
 
0
Q: limit (/truncate) text file by number of lines

sjmurphyI would like to use a terminal/shell to truncate or otherwise limit a text file to a certain number of lines. I have a whole directory of text files, for each of which only the first ~50k lines are useful. Is there a neat way to delete all lines with line number > 50000?

Next time google "truncate text file lines".
 
Ah, here was my original search: bash truncate lines
 
@FredOverflow Requires effort:(
 
In that case, ask in Lounge and hope Fred is here.
 
9:22 PM
it seems this particular guy is immune to my usual sarcasm defence
 
My defense strategy is giving helpful links.
 
@FredOverflow You're attracting vampires :(
 
Why? Links usually lead people away from the Lounge.
 
sed's helpful. thanks!
 
@Puppy is immune to obnoxious and rude trolling*
 
user1804599
9:23 PM
@FredOverflow y u no head
 
@rightføld I don't like to give head.
 
I tried head, couldn't make it work
7
 
Did you at least give the guy his money back?
 
1
A: Who are these virtual anime girlfriends?

Gao WeiweiThose characters are from Reunion~3日間だけのプチ同棲~, a 2010 love adventure type visual novel by Grand Cru. There is also an anime OVA based on the erotic game. The first girl is Yurino Yui. The second girl is Kirisaki Rie. The photos are most likely taken using the My Girls Camera Free - Reuni...

@AlexM.
 
9:26 PM
@FredOverflow Probably sort of on motives of all of them.
Well, the soldiers in the Doom film seem rather underequiped. No helmets, no night vision...
 
Nov 8 at 10:35, by Bartek Banachewicz
> programming is mostly about:
> oh wow a triangle
> now let's move it a bit right
> oh it disappeared
> fuck
rofl
 
lol
 
@LightnessRacesinOrbit I think the design of those characters is kinda meh :(
it must be the VN shading
 
0
Q: No instance for (Num (Int -> Int)) arising from the literal `5'

orionllI have the following function: f :: (Int -> Int) -> Int f = undefined Now I want to call f with 5 (which is incorrect): f 5 Obviously, this should not compile, because 5 is not a function from Int to Int. So I would expect an error message like Couldn't match expected type Int -> Int with I...

@FredOverflow You didn't answer the question.
 
@Jefffrey Okay, let me delete my answer.
 
9:38 PM
nah, the fucking thing was off by 1f again
I really need to properly simulate a grid internally
and on every movement "snap" the thing in the proper cell
regardless of the step size
well that was necessary anyway
I want to be able to teleport things to specific cells
maybe I can tie it all in with unity's editor
and make a nice editor for placing things inside cells and picking specific cells
 
user1804599
Polymorphic literals are terrible.
 
@rightføld yay, Fear & Loathing hat :)
 
user1804599
I have it too. It's nice.
 
user1804599
 
your mother
 

« first day (1533 days earlier)      last day (3432 days later) »