« first day (1831 days earlier)      last day (3109 days later) » 

3:05 AM
2 messages moved to bin
The work of a janitor never ends.
 
I'm thinking it might be time to reconsider the whole gallery mode + write-access bot thing.
 
@chmod711telkitty Well I'm all up for visiting Australia
And Hawaii @Vermillion
And Philippines @Mark
And Korea @Dean
 
@Mysticial How can you say such a thing? Everybody loves the chicken lady. She told me so herself.
 
And your mom @Bartek
2
 
3:24 AM
@GregorMcGregor holy hell she does. It is not a nice entry.
 
I did not notice the posting date at first, just the vitriol. wow
 
holy shit
 
fuck we're getting older
one second per second
 
I wasn't even 12 when people got fed up with her.
 
3:30 AM
@ElimGarak I was learning to play Runescape and playing full contact spoon back then O.O
 
@GregorMcGregor you really are? :') ... No kidding? >_< .. Omg <3
 
Well it's reasonably far from HK and I've always been wanting to get eaten by a white shark
 
@Mikhail oh no
 
@GregorMcGregor go! Fulfill your dreams!
you can do anything if you believe in yourself. :)
 
@jaggedSpire And you can full contact spoon anyone!
 
3:32 AM
Well, I am glad you do <3 .. We just need to find a great white shark while you are here <3 ... & it needs to be hungry when it sees you <3<3
 
@LucDanton I don't have quite the strength to weight ratio I did back then. Ah, memories.
I'd say I found more entertaining things to do than use a grigri to belay myself thirty feet up a rope, but I just lost access to the grigri and the ropes, and never went to find another.
 
b-baka! It's not like I w-wanted to eat you SEMPAI!!!
 
@VermillionAzure /r/tsunderesharks
 
@jaggedSpire yuppppp
 
@chmod711telkitty </3
 
3:36 AM
@nick hey it's nick! Hi nick!
 
Hi guys!
 
@nick hi
 
finally finished the C++ Core Guidelines today.
I found the ???s particularly interesting
 
3:58 AM
it left me with too many questions
 
hello
could someone tell me if this is fundamentally correct for resizing an array?
 
everything you know is a lie
 
sooo i did it wrong?
 
Are you a student and are you learning C++?
 
yes x2
 
4:05 AM
I suggest you learn by writing full-fledged programs, not snippets like that. E.g. your a[x]; pseudo-code will confuse readers.
 
@StanleyDharan That won't work for non-char arrays I think
@StanleyDharan I don't think it's good C++ style to use (char*)0 as a replacement for null
If you're doing C++11 or above, use nullptr otherwise you need to use NULL.
 
oh I use (char*)0 because the gcc complier my school uses to hand in assignments is old
it doesn't reconize nullptr
 
@StanleyDharan how old
 
@StanleyDharan You can use just 0. Unless, of course, a is not suitable. Which we can’t tell because you haven’t shown a real program.
 
it should recognize NULL
 
4:09 AM
it recognize's null but my prof said its better to do (char*)0 not sure why exactly, on tests i write null but coding i use the (char*)0
 
@StanleyDharan ...? I don't think it is???
 
@LucDanton oh this isnt for a program its just for personal knowledge, I just want to make sure I get the gist of it
 
I've never seen that anywhere
 
@StanleyDharan Do use 0. The (char*) bit is redundant.
@StanleyDharan 'Program' meaning something you feed the compiler in the goal that it, in fact, compiles. Not 'something useful', it’s fine if it’s a toy program. Your pseudo-code will only confuse and/or waste the time of others.
You’re learning, so you’ll make mistakes (which is perfectly natural). By using a compiler you get rid of a lot of those beginner mistakes, or at least you can ask about a compiler error you don’t understand.
Read again your a[x]; line in the pseudo-code you showed. What is the information you wanted to convey there?
 
jsut an array
 
4:12 AM
@StanleyDharan just use coliru
online compiler
 
my point was so make sure that im resizing the array properly
like my approach
 
@StanleyDharan Then no it won't work for types that are not char because of the use of strcpy
 
@StanleyDharan Yep, and that’s wrong. An array definition looks like some_type a[some_size];, a[x] is syntax for array or pointer access/indirection.
Now that we do know that a is meant to be an array, then we also know that assigning to a is wrong!
Hang on, I’ll walk you through more steps.
 
okay, so if its not a char type how would I do this?
for my test tmwr it will be 100% a char type because thats all we covered in class (im a first year) but I'm curious now
 
4:18 AM
wait what?
 
5 mins ago, by Luc Danton
@StanleyDharan Yep, and that’s wrong. An array definition looks like some_type a[some_size];, a[x] is syntax for array or pointer access/indirection.
Read carefully.
 
@LucDanton Wait can you even do static array reallocation
 
Suppose we fix that, more errors. But that one looks like an innocent mistake, so let’s fix it too. Now this is getting serious.
@StanleyDharan So this one time I’m more or less able to guess what you were asking about. But most of the time, that’s not the case. Beginner questions are almost always reasonable, but they are often asked in a not-so-reasonable manner. It’s simpler to present a program and ask what is going on.
 
okay, will do, thanks btw
 
As a bonus, you get experience with using a compiler. That shouldn’t be under-estimated.
@VermillionAzure I cannot answer the question. Produce a program.
 
4:24 AM
The questions are reasonable, but most of the answers already exist somewhere online, making them poor candidates for SO.
 
Oh yeah, read books too.
 
@StanleyDharan Here's a basic implementation of what you might be looking for:
@StanleyDharan You cannot resize statically-allocated arrays by the way, as arrays are different from dynamically-allocated arrays through pointers
 
4:36 AM
hey guys I think I got it
I fiddled with it in visual studio's because I can understand the errors better in there then the online compiler
 
@GregorMcGregor +1
 
@StanleyDharan Can you notice you allocate a redundant array?
You copy the same data twice over, but you only need one fresh copy.
 
what do you mean twice over?
 
I.e. you have two allocations + strcpy call.
 
I was told since im resizing an array, I have to copy the data from the target array to a temp holding array resize the target then copy it back
 
4:43 AM
Does that make sense to you?
 
@DeanSeo Sunday at the pool there was a group of 8 girls giggling at the other end and taking selfies like it's a natural reflex such as breathing
I was like "must be Koreans". JACKPOT
daebak
 
What’s the intermediate copy for? Can’t you just copy right where you need it to begin with?
 
i;m not understanding what your saying
 
@GregorMcGregor We're born for selfies.
We'd die for selfies.
 
@StanleyDharan Why two copies and not three copies?
 
4:45 AM
Selfie itself keeps us in the world, gives us a reason to live.
 
well because I jsut need to move the data from the original array to a temp and then back after its resized
 
@DeanSeo ಠ_ಠ
 
Selfie sort : Steak and rib in order, Kimchi replaced with null.
 
im sure theres a much more efficient
 
@StanleyDharan See, the thing is there’s not really a 'back'. What you want to do is to take the original data, and put it in a resized array; if you keep score that’s one copy, not two. What you are doing is taking the data, putting it in a resized array, and then putting it in a resized array again.
 
4:47 AM
@Dean Let's go to Pizzamaru next time, I miss golden chicken bbq pizza ;_;
 
ohhh i see what your saying
 
his saying
 
'Vacate these premises'
that’s my saying
 
@GregorMcGregor You should try Shrimp and Mayo Roll Crust pizza.
 
okay so then couldn't I just get the size of the original array make a temp the exact same size change the original the copy it back?
 
4:49 AM
@Luc what if I interfered with your explanation and ruined it
would you hate me
 
i know its extremely redundant
 
@StanleyDharan That sounds like the right time to write a program :)
 
@DeanSeo I've only tried a few but not that one
My tastes rapidly converged on chickin bbq
I remember trying the bulgogi pizza and sweet potato pizza
 
Don't copy it. Move it.
 
You should be using std::strncpy or std::copy_n to move n bytes at a time for faster performance
 
4:51 AM
We sorta made Pizza reborn here.
 
@GregorMcGregor I’ve been writing it strcopy several times lol
 
std::copy_n makes you move it move it. ♬
 
you suck mcbain etc
 
how is a typo a joke
 
Hint if there's more than 1 vowel in a C symbol name you likely have it wrong
 
4:52 AM
ill write it and get back to you!
 
why the sudden vengeance
@DeanSeo I've been listening to 우리집 by 2PM for days over and over
help
how do I get to sleep with taecyeon or wooyoung
or chansung
or or
aaaaaaaaaaaaaaaaaaaa
 
Korean bbq I had a week ago with wagyu beef, prawns & marinated pork ribs was nice
 
korean bbqs in HK are meh
 
Small serves?
:x
 
not too similar to the ones I had in Korea and not particularly tasty
the japanese bbqs are better
 
5:01 AM
unionWith :: Ord k => (a -> a -> a) -> Map k a -> Map k a -> Map k a
Am I crazy or is that operation actually not super commonly found in APIs?
 
onionWith :: cri => evrytim
 
What's Ord k => (a -> a -> a) btw
The filter predicate?
 
The Ord k is top-level, it’ll be used for Map invariants etc.
(a -> a -> a) is for combining duplicates
 
yeah I get the (a -> a -> a) part
Ord k not really and the fat arrow neither
 
5:06 AM
A very Haskell-y but possibly not as convenient way to express the same operation is (Ord k, Monoid a) => Map k a -> Map k a -> Map k a
 
> The “fat arrow” is used to separate the “preconditions” part from the main type.
 
@GregorMcGregor Lol.
 
@GregorMcGregor It’s a (class) constraint. You can read the fat arrow as 'given'. Take for instance lookup :: (Ord k) => (k -> Map k a -> Maybe a), with brackets for emphasis.
 
there u go
so I changed it so temp is the exact size of the old array then did the rest
 
'Given a way to order keys, I can lookup keys from a map'
 
5:08 AM
@LucDanton With Ord being the constraint for "ordinal"?
ordinateur
 
@GregorMcGregor It’s total order IIRC
 
Every Lounger who has a plan to visit in Korea, I am ready to get drunk. Real Korean BBQ beforehand is a plus.
 
I was looking over my notes and they have to change the size of a private c style string
 
:D
 
@LucDanton cool, thanks
@DeanSeo We're not many in Asia
 
5:08 AM
@DeanSeo I wanna visit japan!
 
Damn
 
@GregorMcGregor The constraint is the tuple that appears on the lhs of the fat arrow. Ord is a type class.
@StanleyDharan You still copy twice.
 
 
> The Ord class is used for totally ordered datatypes.
there we go
 
5:11 AM
Using std::vector<T> will prevent you from worrying about extra copy operations, and allocating temp.
Bulgogi Pizza will make you peaceful.
 
5:27 AM
I can't stop listening to Hisaishi now @Morwenn
 
sup nerds
 
@GregorMcGregor Try the Kikujiro soundtrack.
 
who is single and ready to mindle
 
mememememe
 
@Rapptz single and ready to dwindle
 
5:31 AM
@LucDanton Exactly what I'm listening to now. I love "Summer".
 
@GregorMcGregor ohhhhh heh maybe you'll like this
 
@LucDanton btw
periodic reminder that GW2 is a thing
 
well done
I had forgotten for the 15 minutes I wasn’t watching a stream
 
sounds like Scrolls main theme opening
 
Same composer, Jeremy Soule
god I miss GW2
the universe the everything
 
5:34 AM
@GregorMcGregor HoT composed by amateurs
 
p good amateur IMO
 
Yoko Shimomura is my personal favorite
 
@GregorMcGregor I don’t get it.
> Maclaine Diemer is the actual intern composer at ArenaNet.
I hope they meant 'internal' and not actually 'intern'
 
@LucDanton oh i see
 
@LucDanton Are there any soundtracks available for preview?
 
5:40 AM
Yeah!
 
it makes me sad nobody here likes Yoko Shimomura
 
@GregorMcGregor Dang, it’s not on the anet Soundcloud yet. Hang on.
probably because what we have right now are previews, the real stuff will be here on Friday heh
 
oh you remembered
 
Well you can always try YouTube because I know there are some tracks there but don’t ask me where they found them.
 
hey it's quite good
 
5:48 AM
It’s a nice break from Jeremy.
 
Ça commençait à te Souler ?
 
mdr
Eh dunno about Jeremy Soule. You listen to one or two tracks and it’s great. But IG I don’t find it meshes as well (I’ve only really played GW2 though). Then when you get to know more of Jeremy’s work, it has a particular sound that you can really recognise, which makes it weird when you change from game to game.
Hence I’ve always had the impression of playing GW2 with Jeremy’s music rather than playing GW2 with GW2 music. It’s a bit of a shame but I disabled the music really early on.
Then again, I’m not exactly fond of the typical 'soundtrack' approach that most games pick which I guess doesn’t really put me in the target audience.
 
What would you pick instead
 
I like when a game uses music to highlight or underscore a scene, and has nearly no music the rest of the time. Esp. for games where you have to really focus on what you are doing.
 
yeah I'm kind of on that side too
 
5:56 AM
I don’t understand why there would be a need for music all the time. I also suspect it’s in part due to mimicking film-making, hence the quotes on 'soundtrack'. But then I ruined it by using the word 'scene' :D
 
or a light ambient music
 
I love it when they use strong motifs
 
Did you like the SAB @Luc
I kinda wish they did a full game like that
 
6:12 AM
@GregorMcGregor Wasn’t around when it came out… twice :(
 
all I got for it is 5 continue coins
 
6:24 AM
> Aspiring butterfly Chronomancers, remember that shields hide your back item.
Community priorities.
 
6:36 AM
also charr coats clipping
 
pls fix
I too want to make a kitty
 
Brrr br brrr shitfaced
 
6:48 AM
as usual
> Contact Luc
> Free to contact
> This is a Premium ad so you can contact it for free!
 
only the first contact is free after that you have to pay upfront bby
 
/bittip @Luc 0.01 BTC
 
it’s cool if it’s just the tip
 
In terms of the C++ grammar, what does the "pm" in pm-expression stand for? (this might be the wrong place to ask this...)
 
Pointer-to-member if it is what I think.
 
7:01 AM
That sounds right. Thanks!
 
> Baptisé Fonds d’avance participative jeu vidéo (FAPJV), le système de fonds d’investissement sera doté de 20 millions d’euros […]
 
kesesa
 
monies for gaemdevs
> C'est rigolo parce que fap ça veut dire branlette.
oo
 
explosé de rire sur la moquette
Qu'est-ce que la jeantrification, selon vous ?
 
> Ca me rappelle un laboratoire de chimie organique, à Rennes je crois, qui voulait (enfin les vieux chercheurs voulaient) changer leur nom en Synthèse d'Hétérocycles à Intérêt Thérapeutique.
@GregorMcGregor Jeans buying up properties, driving property prices up. Jeans are almost as dangerous as Gilles.
 
7:22 AM
10/10
> 'operator = ' is ambiguous
_some_map = {};
okay
 
that can happen
 
when there’s a converting constructor taking a default constructible type iirc, I’ll check
 
ah
yeah that's the case
 
mmmh that may have been fixed later on though
 
7:29 AM
It's MSVC2013 so all bets are off
 
I know that experimental::nullopt is specified to not be default constructible to avoid that pitfall, and similarly experimental::optional<T> has a constructor template constrained on… T to avoid that as well
i.e. template<typename U> requires same_type_v<T, decay_t<U>> optional(U&&); or some such
 
I understood some of these
 
Or maybe it’s actually operator= overloads taking default constructible types, that would make more sense I think.
 
morning
 
Oh it looks like we can write template<int i = {}> now too, lots of fixes I’ve missed.
What’s funny is the the compilers support that in C++11 mode too.
Oh dang Clang still rejects it no matter what, nevermind me.
 
7:37 AM
> dang Clang
good job
 
user1804599
@Morwenn should be on reddit.com/r/foundtheprogrammer
 
@GregorMcGregor If another car bumped into you and left a dent in the bumper, and if you tried to rub the metal to fix it, I would call you an idiot. After all, wouldn’t the ding cling?
 
Y'a pas d'hélice hélas, c'est là qu'est l'os.
 
Got a creepy neighbor
The dude collects some of my packages when I'm not at home
 
That's illegal
 
7:45 AM
best part incoming
he's the stalker type
came back late yesterday (around 9:30 pm)
 
neighbour :: Stalker
 
the dude reckoned it was me passing through the hall and gave me the parcel... Which was already opened (noticed it when @home)
 
Yeah, the package was not sealed
Well, unsealed is the more appropriate epithet
Then I recalled I once did not receive a package (containing an SD card)
 
user1804599
fuck OAuth
 
7:50 AM
I wouldn’t worry about it and keep on showering without putting down the blinds on the window.
 
I'd order an envelope of highly active anthrax.
 
@GregorMcGregor Yeah or some crazy BDSM stuff
 
How to STALK for DUMMIES.
 
Xeo
@GregorMcGregor Accepting packages for neighbours is not illegal. Here, anyways.
 
@Xeo Opening them / keeping them definitely is, I hope!
 
Xeo
7:52 AM
It's what usually happens if the intended recipient isn't home at the time of delivery
@GregorMcGregor yeah, I think so
 
Plus the dude has a creepy face
COMBO
If I could sniff his network I'm sure I'ld unravel interesting things...
 
@Xeo Delivery is made at an address, not a person. But the particular box is part of the address for large buildings etc. Or at least I think that’s how it goes.
 
That gives me an idea.
 
Xeo
@LucDanton nah, it's actually to a person here. You can also say that the recipient has to receive the package in person, so they wouldn't leave it with a neighbour
@R.MartinhoFernandes Is your non-existent flatmate getting a revival?
 
@Xeo Do you have to prove you identity when accepting a delivery? Here the signature is for proving that someone took care of it. Some carriers do ask for a proof of identity but it’s unusual, at least IME.
 
7:57 AM
Hey folks
 
@Xeo It really depends on the delivery company. The delivery guy from one always calls me to notify me and see how we can handle the shipping, others just give it to a neighbor (typically the stalker/creep coz he's always home) without any notification
 
I wonder if I can steal packages by leaving a note at the door like "package for Ivan Dias, please leave with <neighbour>"
 
The delivery companies usually dump the goods I ordered in the front yard without calling me.
 
@Luc no, it's all garbage.
Proof of identity, lol.
 
hey I have a headache
 
7:58 AM
And yesterday, the delivery company had a detailed online status for the delivery stating the ID of the neighbor who received the parcel for me
@LucDanton Yeah, me too :)
 
One could put a note around the time the couriers usually pass by so the recipient doesn't see it.
 
Drank too much wine yesterday
 
OMG I'm evil
 
Xeo
@LucDanton I think when taking the option that they have to receive it in person, you do have to.
It also costs extra, IIRC
 
user1804599
7:59 AM
Java does type interference.
 
Xeo
Type interference
wait
 
user1804599
:D :D :D
 
Xeo
I read what you wrote as "inference"
god dammit
you win this time
 

« first day (1831 days earlier)      last day (3109 days later) »