« first day (2150 days earlier)      last day (2797 days later) » 

12:45 AM
os.mkdir(), but os.makedirs()... sigh
 
1:23 AM
@milleniumbug thank you for the help! Here's a picture (don't mind my poor taste)
 
 
3 hours later…
4:09 AM
@LucDanton hey, it's called matchmaking, not fairmatchmaking.
 
good point
 
taken that a few minutes ago
the bird is still outside waiting for more feeding
 
5:02 AM
Birb! ('')>
What species is it?
 
Kookaburras are terrestrial tree kingfishers of the genus Dacelo native to Australia and New Guinea, which grow to between 28–42 cm (11–17 in) in length. The name is a loanword from Wiradjuri guuguubarra, onomatopoeic of its call. The single member of the genus Clytoceyx is commonly referred to as the shovel-billed kookaburra. The kookaburra's loud call sounds like echoing human laughter. They are found in habitats ranging from humid forest to arid savanna, as well as in suburban areas with tall trees or near running water. Even though they belong to the larger group known as "kingfishers",...
 
I've never seen kookaburras before, but they're very cute
Cedar waxwings are one of my favourite local birds because they have such unique colours
 
5:27 AM
pretty
 
5:41 AM
poor cat ...
 
5:53 AM
Haha, it looks like he's resigned to his fate as a model
 
6:13 AM
or possibly drugged :p
 
6:35 AM
Yep
Goodnight! I spent about 2 hours making and running a program that reorganizes 30 GB of my music and I'm tired, but really happy it worked :D Organizing that much music to my phone normally takes me a few days
 
G'night
 
7:10 AM
> This is either going to work, or it's not.
so A || !A
well, no shit
 
nwp
so now you know that A is not politics which kinda sorta works
 
Ell
8:10 AM
@Aaron3468 I think FNV-1a is preferred
Or whatever it's called
 
nwp
I just noticed that all my code using string_view has a bug. At some point you need to turn a string_view into a string and I used .data() which gives me a char *, but it doesn't give a range and thus doesn't work if the string_view doesn't cover the whole range of the original string. You need use .to_string() instead.
also I don't understand why there are no operator + overloads among string_views and strings
or one can use the proper string constructor that takes a size
I should add a clang-tidy rule that warns on string(string_view.data())
 
Xeo
8:42 AM
@nwp err, is string(string_view) not a thing?
 
nwp
@Xeo it will be in C++17 with std::string_view, but it is not in C++1z with std::experimental::string_view
 
Xeo
ah
 
your face
 
Ben
9:01 AM
hi
 
Ven
9:19 AM
@ChemiCalChems you'd be surprised by some logic frameworks ;)
 
Huh we have two Aaron guys?
 
huh we your face
 
my face is good man
 
9:48 AM
your facebook
 
Ven
Is in myspace
 
myspace is in youtube ... ewww
 
@StackedCrooked not seeing it i.imgur.com/JhgBWWM.png
 
Ah. I was confused by this. Which seemed like a conversation between two people with different usernames.
Damn I'm stupid.
 
10:09 AM
I have request minor issue to be fixed for my website and was told that issue was solved - now the whole thing is not working
why didn't I check when they told me that issue was solved??
wait, it's working ...
weird
just very, very slow
 
10:30 AM
forgot root password
 
10:46 AM
well, I'm making a function for converting digital storage unit from bytes to something easier to read by human like KiloByte, Megabyte or Gigabyte. Stucking with making the name's function XD... any suggestions?
 
prettyPrint?
or diskSizeFormat
 
made this name in rage: goddamReableForHuman()... Sorry, long day. XD
 
Err ppa.launchpad.net precise/main Translation-en_US

Err ppa.launchpad.net precise/main Translation-en
right ...
Command terminated with exit status 1
upgrading ubuntu failed ...
 
nwp
11:04 AM
@TrungNguyen auto doIt(auto ...args)
 
can't upgrade to 14.04.1 LTS
 
nwp
@Telkitty time to pick a different distro
 
only tried to update because:
Welcome to Ubuntu 12.04.5 LTS (GNU/Linux 2.6.32-042stab113.11 i686)

 * Documentation:  help.ubuntu.com
New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
prompted after login
 
"If it doesn't break, don't fix it" -- Debian's quote
 
nwp
@TrungNguyen source?
 
11:11 AM
my mentor told me once
keeping it in mind, worked well on me for Linux things
 
nwp
is it a misquote from this?
 
Ven
11:26 AM
@nwp yes
 
11:36 AM
0
A: Unnecessary Downvote

TelkittyBecause downvotes are social animals that travel in herds. Once you have 1 or 2 downvote(s), it's/their lone distress will attract more downvotes. The best way is to ask quality question and not to attract any single downvote to start with ...

 
 
2 hours later…
1:49 PM
I have decided to spend 0.1% of my net worth to shamelessly promoting my blog in 1-2 weeks time!
details will not be revealed
 
Ven
2:09 PM
If you don't reveal stuff, it's hard to promote it
 
what is DNS zone file?
should I setup an extra mail server?
It's tempting, but currently I have no use for it ...
 
2:43 PM
@Telkitty Current LTS release is 16.04.
@nwp "If it ain't broke, you can usually fix it 'til it is." (Tim Taylor).
 
upgrade failed again
have troubled helpdesk enough today, might leave the issue to next week
 
just telling us what we already knew
which is that we decided that we hated immigrants more than we liked ourselves
 
3:49 PM
People do weird shit with my library.
 
For example?
 
Like register 200+ member functions and just... are okay with it.
 
200 member functions per class?
 
I don't know if it's one class or multiple classes
But one of them attempts to register than many member functions / properties / variables and I have to somehow make the compiler not barf.
All while maintaining speed. I can't use fold expressions because that's C++17, and this is a C++14 library I can't expect people to upgrade just yet.
 
Real reason we open sourced everything: it's easier to search the internet than it was to search our internal wiki
 
3:51 PM
@Borgleader True story, though.
 
why would compiler barf if they are legit?
 
Because we're doing a lot of heavy lifting at compile time to maintain near-plain-C speeds.
VC++ barfs. g++ and clang++ don't barf, but people talk about needing 19 gB of memory to compile.
 
4:13 PM
> America’s biggest Islamic ally in the middle east – Saudi Arabia -has sentenced a man to ten years in prison and 2,000 lashes for expressing his atheism on Twitter.
(THE SUN) The 28-year-old reportedly refused to repent, insisting what he wrote reflected his beliefs and that he had the right to express them.
This just makes me wanna puke
Tbf, he did write 600 ridiculing tweets about the Koran
But that's still his very right
I could write 600 ridiculing tweets about Merkel's dick and no police officer could touch me, even if I wanted him to
 
nwp
write 600 ridiculous tweets about how hitler is cool and you get arrested too
 
4:43 PM
no you won't
 
nwp
in germany you will
at least if you go all the way denying the holocaust
you have a chance that the police doesn't know what twitter is, but that doesn't count as proper human rights
 
@Telkitty What did you feed him? Kinda looks like soap.
 
5:00 PM
oh look string used but not vector
-3
Q: Deleting a dynamic array from memory - Exception thrown error - C++

FreakyWeeksI am having a problem with deleting a dynamic array in PA1 and was wondering if you could take a look at my code. This is my header file for Semester class (semester.h) #ifndef SEMESTER_H #define SEMESTER_H #include "header.h" struct Student { string firstName; string lastName; st...

also lol this comment
Prefer nullptr instead of 0... We also like to teach modern C++ here... — WhiZTiM 16 mins ago
 
5:59 PM
@sehe Look. I've been coding C++ longer than anyone in your company. When I tell you that smart pointers are dangerous and RAII is heretic, you best not question that. Also, where is the Dennis Ritchie shrine? I need a little break
 
wut. Don't know what the relation is with the security "auditor". Unless you just mean "bad authority appeal"
 
> I read in detail through those responses and your original post, the responders all need to get their facts right. I have been in this industry longer than anyone on that site blablabla
It matches his blinkeredness
that's not a word but I don't have a better one
@sehe Appeal to what, your own authority? XD
Because neither the auditor nor my character appeals to any expert authority on the topic
 
@Columbo God. And they call me cryptic?
 
...
perhaps because you are being cryptic just by making that statement
 
> I have been in this industry longer than anyone [see yourlogicalfallacyis.com/appeal-to-authority ]
@Columbo ... I'm done.
 
6:06 PM
@sehe Is that an appeal to authority?
> You said that because an authority thinks something, it must therefore be true.
 
@Columbo Being an owner of this room, I'd say yes.
 
Don't see any authorities being quoted
@StackedCrooked That, again, is AFAICS not an appeal to authority. Unless such an appeal would include you appealing to your own status.
As I said - you being the authority.
 
@Columbo Thanks, I feel flattered.
 
@sehe And I'm sorry for making you done, but if I can't even disagree with you (regardless of whether it's due to me misunderstanding sth.) without you getting upset, that's not exactly cool.
 
What did you disagree with? When?
 
6:12 PM
@StackedCrooked Being the recipient of your thanks, I feel flattered, too! :-)
 
Being cool is rarely a goal, for me, by the way.
 
@sehe I mean cool as in "don't overreact"
inb4 where did I overreact
 
Please, the relevant questions first.
 
@sehe I disagreed when I said that that was no appeal to authority (according to my understanding).
 
@Columbo They don't appeal to "an expert authority". The fallacy is appeal to authority. Saying "I know better because I'm older" or somesuch is appeal to authority.
 
6:15 PM
I see, my bad. Thanks.
 
:)
 
:) <3
 
I didn't understand that this was what you were trying to say, earlier, by the way. Glad we cleared that up
 
That may well be me not being able to communicate precisely. Not sure how I could work on that tho.
 
I guess it's confusing that appeal to authority does not in fact require any authority.
 
6:17 PM
@sehe That, yes.
 
@Columbo Me neither. I guess the trick here would be to make smaller leaps (I didn't get how your quote was a response to the "Auditor" post)
 
@sehe My quote was actually rather a parody, I just made that stuff up.
 
Aha. I thought you quoted that from somewhere. I guess it's recognizable frustration with The Workspace Dinosaur Who Thinks He Knows Best (TM)
 
@sehe I hope I won't encounter him when I start working, because I hate people who refuse to discuss or learn because they have an understanding of things that "works for them"
Like my best friend, who believes that the universe is 6000 years old.
But perhaps it's me who is being narrow-minded by blindly trusting radiometric age dating..? who knows :-)
 
Hi all, could I have some quick help with C++?
I'm trying to print the square root symbol in a console application
 
6:28 PM
that means printing unicode
if the console supports that
 
_setmode(_fileno(stdout), _O_U16TEXT);
std::wcout << L"Hello, \u221A5\n";
This works
But I then can't use cout
 
though most people just use sqrt which most programmers will understand
 
Okay
Is there a way to reverse the _setmode(_fileno(stdout), _O_U16TEXT);
 
use _O_U8TEXT (then you can use utf8 to encode the sqrt sign)
 
I'm still unable to use cout
Have to use: std::wcout << a;
Instead of: cout << a;
 
6:34 PM
default is _O_TEXT I believe
 
Will that allow me to use cout?
 
is a a char string of a wchar string?
 
its an int
Thats working perfectly now!
Thanks :)
Im looking for a project, any ideas? Previous ones have been calculating the fibonacci sequence, checking if a number is prime, and solving quadratics
So want something maths or physics based
 
render a triangle using vulkan
that'll keep you busy for a week or so
 
Im thinking C++
And an actual maths problem, not a particular output
 
6:38 PM
vulkan is an api which you can use from C++
render a fractal then
 
No ideas similar to fibonacci or calculating if a number is prime?
 
calculating if a number is prime has already been done in a mega efficient manner
polynomial time
 
Can you elaborate..?
 
A primality test is an algorithm for determining whether an input number is prime. Amongst other fields of mathematics, it is used for cryptography. Unlike integer factorization, primality tests do not generally give prime factors, only stating whether the input number is prime or not. Factorization is thought to be a computationally difficult problem, whereas primality testing is comparatively easy (its running time is polynomial in the size of the input). Some primality tests prove that a number is prime, while others like Miller–Rabin prove that a number is composite. Therefore, the latter might...
 
I meant 'poynomial time'
 
as in not exponential
 
that is basic algorithm complexity
if you can make linear or constant, you are a god
damn, constant time algorithms for anything
that'd be awesome
 
if you can make a polynomial time algorithm for any in a certain class of algorithms (np complete) you will be an instant millionaire
 
@ratchetfreak true
 
6:47 PM
IIRC there are similar proofs/lack of proofs for similar problems for quantum computing
 
I make sure all my algorithms are NP-complete for maximum completeness.
9
 
whether p==np is the most famous one though
 
it can't be in my opinion
 
I think it's pretty unlikely that P = NP but BQP = QMA? could be
 
I'm halfway curious what a proper p != np proof would require
 
6:52 PM
that's the problem
 
@ratchetfreak It's not so hard.
 
@ChemiCalChems it's trying to prove a negative?
 
@ratchetfreak no, but the problem is much more abstract than normal induction arguments
there are an infinite number of algorithms for each type of problem
 
what kind of infinite?
 
theoretically there could be at least 1 algorithm for each problem type that runs in polynomial time, but how do you prove it or disprove it?
 
6:54 PM
and I guess no easy way of inducting over them with meaningful semantics
 
gotta be more than countably infinite
 
cardinaly infinite, i hope
 
if you define algorithm as something a turing machine can execute then it's countable (because you can encode every turing machine as a string and strings are countably infinite at most)
 
that's the problem
does an algorithm have to be turing complete?
 
given the definition of np (IIRC runs on a non-deterministic turing machine in polynomial time)...
 
6:57 PM
oh
then it has to be countably infinite at most, yes
it's a pretty abstract problem
well, you can have a hyperspace of turing complete algorithms, and a fitness function
you know, use neural evolution to come up with a good algorithm for something
has that been done?
 
yep
we do it all the time
 
and what are the results normally? exponential? logarithmic?
 
@Columbo That... works as a rought estimate.
Very rough.
 
@sehe It's at least 6000 years old.
 
@NoahP I think @jalf had a splendid chapter in his tutorial. Because that shit is platform dependent and quirky as hell. (Oops. Language)
 
7:11 PM
hm...
@Puppy well, you could also believe the "Everything was created last Thursday" theory
which isn't falsifiable which doesn't make it science
but it's a possibility
 
user1804599
@sehe doe mee aan HHB
 
Is that a subject-elided announcement or an adhortative?
 
user1804599
a demand
 
7:27 PM
 
user1804599
If the effects of alcohol or tobacco were discovered today then they'd be incredibly illegal.
 
user1804599
Fun-fact: you can buy energy drink with cannabis flavour in the supermarket.
 
@rightfold I'll need more context, I'm afraid. Does it have to do with this ridiculously photogenic kid?
 
user1804599
@sehe doe mee aan Heel Holland Bakt
 
What. Dafuq.
 
user1804599
7:30 PM
HHB
 
user1804599
Don't you watch that? It's amazing.
 
Lies.
 
@sehe I don't get it
 
nwp
@Nooble that's the point. No weed for you.
 
Oh wait now I get it.
 
7:32 PM
@rightfold fyi the "photogenic kid" was sighted here www3.hhb.nl/nl-nl
 
user1804599
XD
 
IRTA the most ironic thing about weed is getting caught with it.
 
Interesting.
user image
10
Wait wait. Wat. That made me fact check a few skewed timelines in my own head. WOW
 
8:16 PM
 
8:30 PM
This is why I wrote this: https://medium.com/@wilw/that-clinton-scandal-the-press-desperately-wants-exists-but-its-actually-about-trump-6d4291edc324#.ehp0j29zo https://twitter.com/mattmfm/status/771688572164435968
dayum
Hokay, built zmq, lets see how long it takes before I get bored.
 
9:02 PM
@Borgleader The picture of Turkey kinda looks like a painting.
 
Has anyone used both boost::serialization and cereal lib? if so, thoughts?
 
@Borgleader inquiring rock piles also want to know
 
inquiring rock piles lmao xD
legit chuckle
 
^_^
 
@Borgleader Oh hey, I got it from you then. Cheers
@Borgleader TBH cereal looks like a slightly modernized version of the same. It's more lightweight (header only) and more reasonable (no raw pointer support, portable binary archive builtin), but largely the same.
Disclaimer: never actually used cereal (other than for SO answers)
 
Ell
9:21 PM
@Borgleader I'm also interested in this question
I'm using protobufs at the minute
But I think I would prefer serialized vs serialized struct genrator
 
@Borgleader Needed milk
 
@Ell There's not such thing as protobufs :)
I'm using protobuf at the moment and hating most of it. That API. Dang.
Things /could/ have been ok with e.g. gRPC and proper isolation of the Protobuf message types... But sadly, of course, not in our code base
 
Ell
@Borgleader I'm a little bit uncomfortable with the security aspect of cereal
What with it being 0 copy
Ah wait
I was thinning of cap'n'proto
 
@Ell I wanted to look at capnproto at some point, but I never got far with it, i dont remember what obstacle I ran into
 
Ven
9:45 PM
Still lvl101
Leveling via skirmishes; because.
 
im 108 or so
i was 102 on friday
 
Realized this is probably better posted here: (@sehe @JerryCoffin)
in C++ Questions and Answers, 1 min ago, by caps
@sehe Here is a case where I feel the std:: algorithms help me not at all. @JerryCoffin http://stackoverflow.com/a/39321777/2025214
 
> We'll generate random values, just like the real weather stations do.
haha, I'm likin' this zmq tutorial :P
 
@caps dat auto return abuse :|
 
@sehe Abuse?
 
9:53 PM
oh. There's a trailing type specifier. Missed it (too long lines then, perhaps)
And yeah, there's exactly zero reason to make it trailing there.
Signaling all the wrong complexity IYAM
 
@sehe I prefer making all my function signatures that way.
It gives a more uniform appearance on the page.
I know that's not why the feature was added, but I don't see it as a misuse either.
 
You do. Well. I don't think that helps, since all other declarations in C++ follow cdecl ordering
 
@sehe auto name = type(), using name = type, auto name() -> type, auto name = [](){} -> type I don't know, it looks consistent to me. :shrug:
 
That's a good point, if you don't care typing redundant autos all over the place.
T foo() { return something; };
type name;
really looks less noisy to me than
auto foo() -> T { return something; }
auto name = type();
But you're right, if you're consistent about it, it's not... so inconsistent.
 
ReallyLongType::WithSeveralNamespaces::GoesHere foo();
Type bar();

auto foo() -> ReallyLongType::WithSeveralNamespaces::GoesHere;
auto bar() -> Type;
The latter looks nicer to me as well.
 
10:05 PM
Again, a point I can take. However, there seem to be counter examples arbitrarily easy to find. You know, it's ok. You can have your damn preference :) (I just was annoyed I couldn't see what your function returns)
 
10:17 PM
@sehe I got so used to it at the last codebase I worked on that I get a little confused by the return type being at the beginning. So to an extent I know how you feel.
 
10:32 PM
@sehe Yeah, but fuck cdecl.
 
yawn ;) fuck c++
 
10:45 PM
can't fucking sleep
oh well
 
user image
2
lmao
 
11:20 PM
кек
 
11:34 PM
0
A: How to read only some previously know lines using ifstream (C++)

seheBecause @caps said this left him with the feeling there's nothing in the standard library to help with this kind of task, I felt compelled to demonstrate otherwise :) Live On Coliru template <typename It, typename Out, typename Filter = std::vector<int> > Out retrieve_lines(It begin, It const e...

Anyways, @caps /cc @JerryCoffin ^
 

« first day (2150 days earlier)      last day (2797 days later) »