« first day (1279 days earlier)      last day (3669 days later) » 

5:00 PM
@rightfold I can never remember that name.
 
user1804599
Every time you can remember it, you die.
 
I've answered my first newbie question on
yayyy
Long road to to get that gold badge.
 
@rightfold I have also removed white flour, sugar and all other kinds of processed food from my diet.
 
user1804599
I add those to my diet! :D
 
You can have mine ;)
 
5:02 PM
But I don't know what to reference. What do you guys think is haskell's cppreference?
 
Xeo
@StackedCrooked @Mysticial So yeah, I can 100% recommend No Game No Life. Awesome show.
 
@Jefffrey Hoogle
 
user1804599
I like vegetarians.
 
user1804599
More meat left for me. :yum:
 
Xeo
Ep2 was cracking me up
 
5:02 PM
1
A: How to remove lines that begin with the same character?

user000001This awk might work for you: $ awk '/^===/{h=$0;p=0;next}!p{print h};{p=1}1' file ====== Header3 ====== information Or as Glenn pointed out, this also works: awk '/^===/{h=$0;next}h{print h;h=0}1' file

nice username
 
user1804599
OMG AWK <3
 
@FredOverflow Nice, thanks. :)
 
@Jefffrey Note that you can search for type signatures, which is extremely useful!
 
yup, I've noticed
 
Btw, I don't think you can put an map<A, B>::const_iterator as a key for a map, at least not according to the standard. — ybungalobill 1 hour ago
is he on drugs?
 
5:06 PM
@Jefffrey For example, if you search for (a -> b) -> [a] -> [b], the first result is map.
@rightfold Do you prefer to think of map as having the type (a -> b) -> [a] -> [b] or (a -> b) -> ([a] -> [b])? :)
 
@FredOverflow it's nice that it also matched (a -> b) -> f a -> f b
 
user1804599
Functor f => (a -> b) -> f a -> f b
 
user1804599
Also, I wish type classes could give default implementations for superclasses.
 
I like the second interpretation: give me a function from a to b, and I will give you back a function from [a] to [b].
 
5:09 PM
This was a weird week.
 
user1804599
instance Functor f => Applicative f where
    fmap f a = pure f <*> a
    -- other Applicative-specific stuff
 
user1804599
It would be a great thing for eliminating duplicate code.
 
user1804599
Then creating an instance of Applicative automatically makes it an instance of Functor.
 
user1804599
Or something like instance Applicative f => Functor f where ….
 
user1804599
My boss sent me this today.
 
5:23 PM
"at the end of the sequence point" makes no sense, particularly considering that the notion of sequence points was removed in C++11. It would even be incorrect to say that the temporary is destroyed at the next sequence point. No, it is destroyed at the end of the full-expression. — Lightness Races in Orbit 41 secs ago
@rightfold ew
 
Roh
Hello guys
 
Hmm, is today not the release day of Ubuntu Trusty Tahr?
 
The update seems to suggest it is still a development release.
Thar? Tahr?
Tahr.
 
5:25 PM
Looks like a release to me.
 
user1804599
Rusty Arse
 
user1804599
@Roh Hello.
 
Roh
Guys, Who has any experience in OSs?
 
user1804599
I have been using them for the past few years.
 
Not sure which "update" you're referring to.
 
Roh
5:27 PM
@rightfold Great!
 
@Roh No I am communicating with you via an abacus, sorry
3
 
Hmm, maybe the mirrors are not yet up to date then.
 
Which mirrors would those be?
 
Roh
@LightnessRacesinOrbit LoL
 
Roh
5:29 PM
@rightfold I'm glad to meet you. I like dutchs.
 
user1804599
You like them so much that you misspell them.
 
How do I add constraints to data types in Haskell? To solve this problem?
 
none of us.
 
Roh
@rightfold me?
 
user1804599
No, sehe.
 
Roh
5:31 PM
What's your opinion about this question?
 
my opinion is that you wrote it
 
1 message moved to bin
that it needs cleaning up.
 
> Does this have something to do with C++?
> No.
 
Is that number 3446 open bugs across the network? — rene 56 mins ago
 
Roh
@Jefffrey Ha Ha! you are very wise!
 
5:32 PM
That answers it all, no?
 
inorite
 
@DeadMG Why did you bin that?
Was it offensive, or spam, or flooding?
 
Roh
@Jefffrey then what?
 
@LightnessRacesinOrbit All of the above, really.
 
@DeadMG No, actually, none of them.
 
5:33 PM
@Roh Then ask a question on the proper SE site.
:)
 
in your opinion.
I'm pretty happy with my opinion that it was all of the above.
 
@DeadMG No, you are objectively wrong by all the widely-accepted definitions of those words. Pick up a dictionary, perhaps.
 
well, I could do, or I could just not.
 
Wish I could bin your room ownership
<3
 
well, you can't.
 
5:34 PM
Really? Shit. Thought I could.
 
inorite
 
@Roh, maybe superuser?
love is in the air
 
ITT "inorite" to everything
 
Roh
@Jefffrey I have downloaded it from this link:
 
no no no wait
don't post the link, please
 
5:35 PM
man, nearly instabinned Jefffrey's message.
 
People here are allergic to links, apparently. It makes them go all funny
 
my trigger finger's itchy.
 
OH NO A WEB HYPERLINK
 
and then I nearly binned my own message by mistake.
3
 
Roh
@Jefffrey Why?
 
5:36 PM
I really shouldn't leave that thing open.
 
@Roh, please, go here and post your question there :)
 
You shouldn't leave the Lounge window open, @DeadMG
 
you should stop making a racket about it
 
it's pretty funny to see you two fighting
 
I have never constructed a racquet.
He is now trying to silence me! This room is very Orwellian. (Particularly since I have webcams in all of your rooms)
 
5:37 PM
inorite
 
what is a racket?
 
Roh
Ok, thanks.
 
one of those things you use to play tennis
 
you're welcome
 
5:38 PM
@DeadMG calamity
 
@Jefffrey No, that is a racquet.
 
@Jefffrey That's a racquet.
 
Too slow, grandpa
 
google translate says it's also that
 
Google Translate can suck my dick
 
5:39 PM
Butts
 
it's not a fair comparison, I had to close my bin message window first.
 
I cannot be held accountable for your sad need to have the bin message window open in the first place
 
and yes, "racchetta" is the one you use to play tennis with
it also means "profanity" in certain contexts, but that's another matter
 
@Jefffrey that's American English, not English
 
5:40 PM
american english is english
 
..... no, it is not
 
just wrapped in the American monad
 
American English is to English as MSVS is to every other C++ compiler in the world
 
what, superior? I think it's inferior personally.
 
MSVS is not a superior C++ compiler.
It compiles something sort of like C++.
[disclaimer: empirical evidence at least five years old]
 
5:42 PM
personally, I find it the best option for C++ development.
 
Ok great for you
 
personally I don't find it great at all
it's a pity that the best option is so terrible
it just shows the lack of competition in the market.
 
It's a pity that I don't give a flying fuck
OR DO I
 
it is?
 
where the fuck are my pop corns
 
I don't find that especially pitiable at all
 
user1804599
I use American English only by accident or in code and documentation.
 
@DeadMG That is your opinion. I am perfectly happy with my opinion that you're demonstrably wrong.
@rightfold Good lad
 
oakydoaky
 
fock you (kidding)
mate
 
user1804599
5:43 PM
Also fuck Erlang for having both behavior and behaviour.
 
Oh no aliases whatever you will do
 
@Jefffrey haha fock you mate innit go fock ya sistuh like i did larst nite yeh?
 
I've watched too much "Skins"
 
user1804599
@Jefffrey Let’s mate.
 
I've never actually seen it
 
user1804599
5:47 PM
Mate you!
 
@LightnessRacesinOrbit It's not particularly great, but actually fit well in my "rebel years"
 
Oh dear, written by RTD
I can only imagine, then.
> In 2012 Dyer played the lead role in Ray Cooney's Run For Your Wife. Upon release in 2013 it was savaged by critics, who described it as one of the worst British films of all time. The film took in a mere £747.00 during its opening weekend
ouch
different article:
> Upon release the film was savaged by critics and has been referred to as one of the worst films of 2013 after it grossed only £602 in its opening weekend at the British box office.
thanks, Wikipedia
 
I don't see initialization of the board. You need to include more code - I would bet that you're overflowing a buffer and writing into the source code, but I don't see enough here to figure it out. — Kieveli 54 secs ago
> writing into the source code
wtf
 
user1804599
lol
 
6:01 PM
lol
 
Sure - if your variable is on the stack, a buffer overflow will overwrite source code. Effectively you'd be re-writing the execution code at runtime. — Kieveli 3 mins ago
lol
> I'm a software developer. I graduated with my BCSc in 1999, and I've been working in the field ever since. My experience has been with C++, Delphi, Java, MSSQL, Oracle, ASP, JSP, and on and on and on.
and age 38
that's.... disturbing.
 
6:21 PM
I don't think I understand let and where
 
It's local bindings, what's there to understand
 
There're local bindings to understand.
 
Does C++11 allow union type-punning? Of it that still just a C99 thing?
 
Yes, your code is still bad
 
@CatPlusPlus for example why let without in works only in monads
 
6:24 PM
@Jefffrey Because of desugaring
 
user1804599
@Jefffrey It is just a special case.
 
do { let x = 1; let y = 2; let z = 3; return (x + y + z); } desugars to let x = 1 in { let y = 2 in { let z = 3 in { return (x + y + z); }; }; }; (maybe not exactly, I don't remember where semicolons should be or not :v)
 
I love how you prattle on about how FP is awesome, then write a shitton of illegible procedural code in a do block, because you can't achieve your goals if you don't.
 
@CatPlusPlus oh, I see
 
do-syntax is entirely optional
 
user1804599
6:27 PM
You can do it without do by using >>= explicitly.
 
user1804599
But it is ugly and suck so you use do.
 
Writing programs is entirely optional
 
Dammit, bad keyboard layout
 
@LightnessRacesinOrbit, have you ever tried any functional language?
 
Anyway, before I fail to hit \ again, you don't need to use do blocks to "achieve your goals"
It's convenience syntax sugar
It doesn't change anything fundamental
 
6:31 PM
@Jefffrey Sure — I have a masters degree and it would have been difficult to get through that without Haskell and friends. I'm certainly no expert on it.
 
Spotify is bad at not playing repeats
 
@LightnessRacesinOrbit I also had to sit through Prolog : - /
 
bitches, I'll have to sit through PHP
cry me a river
 
user1804599
Hmm.
 
actually I have to make a project with PHP and MySQL
not only the exam
 
6:34 PM
@Jefffrey eeek
 
user1804599
lol
 
user1804599
A friend is in Utrecht University and he has to use CodeIgniter.
 
sounds dangerous
 
well, if it's php related then the title is fitting
 
user1804599
6:36 PM
CodeIgniter is the worst library I have ever used.
 
...written in PHP
 
user1804599
That’s not the bad part.
 
huh
2
Q: Why are pointer types not bounded in C++?

smossenI thought the max value of a pointer was the highest possible value for the used pointer size, but apparently it isn't. #include <iostream> #include <limits> int main() { std::cout << std::numeric_limits<char *>::is_bounded << std::endl; std::cout << (void *)std::numeric_limits<char *>::min()

 
user1804599
If it were written in <insert whatever language here>, it would still be as bad.
 
it sure doesn't help
 
user1804599
6:38 PM
You can create a bad architecture in any language, really.
 
fo sho'
 
user1804599
And you can create a good architecture in PHP.
 
:lol:
#lyingtoyourself
 
you could do but nobody does.
 
user1804599
The language is mostly irrelevant when it comes to architecture.
 
6:40 PM
You couldn't, because the tools aren't good enough
 
user1804599
The only tool you need is a brain.
 
Boardgames, ho!
 
or you could try to fix the language first
 
Keep telling yourself that :v
 
0
Q: Will Stack Exchange ever persuade unicode to add a unicorn symbol?

ArianI was wonder if Stack Exchange has taken any steps to contact unicode about adding a unicorn into their character list. I feel like this should be top priority! I feel like the ♦ has a misrepresentation (Unicode Character 'BLACK DIAMOND SUIT' (U+2666)). The symbol for a moderator should definite...

^^ /cc @R.MartinhoFernandes
Imagine using surrogate pair unicorn symbols to pad out comments.
 
6:42 PM
I can't believe @rightfold is defending PHP
What has got into you?
 
user1804599
Decoupling, SRP and whatnot are all perfectly possible in PHP.
 
Poop is perfectly possible in PHP
 
user1804599
That people don’t do it is because they are morons, not because of the fact that PHP is a terrible programming language.
 
@TonyTheLion Why not? It's not the first time :p
 
user1804599
It’s at the function level where things get annoying and terrible.
 
user1804599
6:44 PM
The actual implementation of things.
 
@jalf I am still in disbelief.
I guess if you code it long enough, you'll eventually find some love for it.
 
@rightfold how is that relevant? You can perform surgery with a sharpened stick too. The possibility of working around a tool's shortcomings doesn't somehow mean that the shortcomings don't count
it's still a terrible tool
 
Failed SAN check
Roll 10d200 for damage
 
user1804599
And in this aspect, PHP isn’t very different from say C#. You have interfaces, classes, methods with single dispatch, data members, namespaces. The semantics are mostly the same except you have dynamic instead of static typing.
 
0
Q: Array Pointers vs Regular Pointers in C

polymorphI am a total beginner to C so please, work with my ignorance. Why does a normal pointer int* ptr = &a; has two spaces in memory (one for the pointer variable and one for the value it points to) and an array pointer int a[] = {5}; only has one memory space (if I print out printf("\n%p\n", a) I...

 
 
oh not this again
@jalf Yay!!!
 
life is too short for PHP, full stop.
 
user1804599
You don’t have to use globals. You don’t have to create inflexible functions that do way too many things. You don’t have to create stringly-typed APIs. And if you do, that’s your own fault, and you can do it in any language.
 
@DeadMG Life is too short, full stop.
Can we please stop talking about PHP?
 
6:51 PM
dammit
My logging system is pretty good, not printing debug-level messages to console or syslog in release builds. But the messages still get built, inserted into the process's message queue, and handled... needlessly. I don't want to smatter #ifndef NDEBUG around every single call to sendMessage(serverLogMessage::produce(LOG_LEVEL_DEBUG, ...)). Now what? :(
 
LOG macro...
 
user1804599
Just don’t call it LOG. :P
 
@R.MartinhoFernandes :(
 
Macro or put sendMessage(serverLogMessage::produce(LOG_LEVEL_DEBUG, ...)) in a function of its own and NDEBUG it there
Even ancient GCC should be able to prune empty functions
 
6:58 PM
@CatPlusPlus but the arguments to the function will be evaluated
 
That might not matter
It usually doesn't
 
user1804599
Can programs on Windows detect that another program tries to make screenshots?
 
user1804599
Nice. :)
 
It'll be a macro then
 
7:00 PM
How would that be implemented
 
@rightfold what on earth are you up to?!
 
user1804599
I have no idea. Maybe some obscure stuff. I have little experience with Windows.
 
depends on how you implement the screenshot function?
 
user1804599
@LightnessRacesinOrbit just wondering :x
 
@CatPlusPlus global hook on some api?
Think it can be done using detours or something
 
user1804599
7:01 PM
@jalf I was looking at this approach.
 
There's no API for taking screenshots
You fetch a global DC and then do a blit
 
user1804599
The program is not being Windows-equivalent-of-ptrace’d by the other one, btw.
 
user1804599
brb; shower
 
didn't need to know that
 
7:03 PM
DWM is probably doing hundreds of blits per second on that DC
 
what is a dc?
 
dat cun- wait
 
Device context
 
"Americans for Truth about Homosexuality" :cripes:
Also fuuuck you Spotify, you're playing the same thing third time in last hour
This is not hard to detect
And I can't imagine anyone would want this behaviour
 
7:12 PM
yea that seems annoying
 
guys
what is your favourite book?
mine is • National righteousness and national sin: the substance of a discourse delivered in the Presbyterian church of South Salem, Westchester co., N.Y., November 20, 1856, by Aaron Ladner Lindsley
 
The Prophet is nice
Fear and Loathing was fun
 
although High Court #153; Case Summaries on Debtors and Creditors-Keyed to Warren, by Dana L. Blatt comes close
 
Discworld
 
@nightcracker 1984.
 
7:13 PM
Torgny Lindgren writes nice stories
 
@EtiennedeMartel dark
 
@nightcracker The City & The City.
 
no but in all seriousness my favourite book isn't a single book, but an entire series of books written by Raymond E. Feist, The Riftwar Cycle
 
@R.MartinhoFernandes I started reading it but forgot about it
American Psycho is ok
Coetzee also writes nice stories
 
Discworld owns
 
Forest of the Hanged () is a novel by Romanian writer Liviu Rebreanu. Published in 1922, it is partly inspired by the experience of his brother Emil Rebreanu, an officer in the Austro-Hungarian Army hanged for espionage and desertion in 1917, during World War I. The novel was made into a film in 1965. Notes
 
Argh, it's not enough to create X_revision entry in Drupal, no
You have to copy the newest revision to another table
But then again it's the same idiots who thought EAV is a good idea to implement
 
8:02 PM
EAV?
 
entity attribute value.
it's "database within a database"
 
oh what
 
Basically, treating a DB like it's a huge dictionary.
 
Sounds like MongoDB
or did I remember that wrong?
 
user1804599
MongoDB is made to be a huge dictionary.
 
8:07 PM
heh
 
user1804599
But when you treat a relational database like a huge dictionary, you’re doing it terribly wrong.
 
ah that's true
so what you all doing for Easter?
 
user1804599
Programming in Haskell.
 
user1804599
Programming in Go.
 
user1804599
Programming in F#.
 
8:15 PM
Sounds like a whole lot of the programming
 
Xeo
@TonyTheLion cleaning up, I guess
and playing moar SpeedRunners
 
yea I need to do some of the cleaning up
I was going to wash the dishes, but I'm procrastinating
 
user1804599
Promasturbating.
 
user1804599
Procastrating.
 
user1804599
I just realised.
 
8:20 PM
what are you going to write?
 
user1804599
Hexapoda. :L
 
user1804599
In Haskell, with monads!
 
Again!
def create_update_node(state, export, state_id, internal_id, bundle, language, created, title, summary, body, photo): :v
I wrote this
It's great
 
user1804599
@CatPlusPlus Oh well, at least Python has keyword arguments. :P
 
maint.py 25kB 723 SLOC
I sure hope this will work the first time
 
user1804599
8:29 PM
inb4 TypeError
 
Nah that doesn't happen
 
user1804599
ValueError :P
 
user1804599
SOME ERROR
 
Probably some bad data that Drupal doesn't like
NameError: global name 'create_node_revision' is not defined
Ahaha I generated placeholders after joining schema keys into a string, so it made a placeholder for every character
 

« first day (1279 days earlier)      last day (3669 days later) »