Anonymous
uh, this is starting to resemble my usual linux experiences :D
Roxif位sz 馃嚤馃嚬
What distro are you running
Anonymous
it's ubuntu
Roxif位sz 馃嚤馃嚬
version?
Anonymous
uhm
Roxif位sz 馃嚤馃嚬
16.04?
Anonymous
not quite sure how to check, one sec
Anonymous
it's WSL
Roxif位sz 馃嚤馃嚬
oh
Anonymous
yes, it's 16.04
Roxif位sz 馃嚤馃嚬
I see that automake 1.14 has only existed in 14.04 ubuntu
Roxif位sz 馃嚤馃嚬
Does the ltc not have a source for 1.15 automake?
Anonymous
well it's the latest version
Anonymous
so that's not really up to me to choose
Anonymous
I tried resetting wsl
Anonymous
maybe that'll help
Roxif位sz 馃嚤馃嚬
Probably won't, the issue is in the mismatch of automake versions
Anonymous
maybe I'll manage to install automake 1.14
Roxif位sz 馃嚤馃嚬
But this could screw your setup over
Anonymous
great
Anonymous
W: GPG error: http://ftp.de.debian.org/debian jessie Release: The following signatures couldn't be verified because the public
key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY CBF8D6FD518E17E1
W: The repository 'http://ftp.de.debian.org/debian jessie Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Anonymous
oh nvm
Anonymous
just a lil bit of googling should solve it
Anonymous
managed to install 1.14.1 from deb package!
Anonymous
I think it's compiling now, cool!
Anonymous
fingers crossed it actually goes through this time
Martin
https://t.me/joinchat/HZml8xBhTz79dRpc_Z4fyA
Martin
Hi friends join in this hackers group
Anonymous
so now I'm stuck on boost tar.bz2 exctraction :D
Anonymous
no idea why it goes so slow
Anonymous
I don't think it's reasonable to wait 1+ hour for it to finish
Roxif位sz 馃嚤馃嚬
Anonymous
@roxifas, is it normal to have archives extracting that long? how to deal with them? this is boost_1_64_0.tar.bz2, its around 80 megs
Anonymous
now I'm trying btc source
Anonymous
still the same
Anonymous
they all use basically the same stuff
Roxif位sz 馃嚤馃嚬
Roxif位sz 馃嚤馃嚬
What are you trying to do, can't you just use the binaries?
Anonymous
nah, I want to try out the source code
Anonymous
I'm sure the binaries work jsut fine
Roxif位sz 馃嚤馃嚬
So you want to have to deal with compilation issues? :D
Anonymous
well do I have any another choice?
Anonymous
I mean I'd like to create my own coin just for fun
Anonymous
binaries don't really help me :D
Anonymous
hi
Anonymous
heyo
Anonymous
Hey
Anonymous
hello everyone
Isc
C++ Comma Operator: 2. Nice usages
http://blog.codeisc.com/2018/01/09/cpp-comma-operator-nice-usages.html
Isc
i think it was a simple way to chain expressions that in the start was very useful but when the language grew it stoped being "really useful"
Isc
for simple languages, having the comma operator is very convenient
Anonymous
please help me . see you pictures and help me to
Mat
@roxifas
Anonymous
Does anyone have suggestions on how much error to allow when comparing 2 doubles (8 byte floating point numbers) for equality?
Anonymous
I am comparing with fabs(num1 - num2) < ALLOWED_ERROR and ALLOWED_ERROR is a preprocessor macro for a small positive number
Liam
I am comparing with fabs(num1 - num2) < ALLOWED_ERROR and ALLOWED_ERROR is a preprocessor macro for a small positive number
In modern C++, you might want to use std::numeric_limits<double>::epsilon(), to represent this very small float number.
std::numeric_limits<double>::epsilon() returns the difference between 1 and the smallest value greater than 1 that is representable by a double. Assuming 64-bit IEEE double, there is a 52-bit mantissa and 11-bit exponent. Hence, the smallest representable number greater than 1 is:
1.0000 00000000 00000000 00000000 00000000 00000000 00000001 × 2^0 = 1 + 2^-52
there fore, std::numeric_limits<double>::epsilon() is 2^-52.
If you want to define this epsilon by hand, in C++, you might want
namespace {
const constexpr double kEpsilon = 2e-52;
} // namespace
in C, you might want
static const double kEpsilon = 2e-52;
Predefined preprocessor macro is not recommend.
harry
what was the code formatting tag again?
harry
three backticks?
harry
thanks
harry
printf("test");
harry
nice
harry
the following is probably a bit too long though
harry
its a small c program to switch the word order in a character array: https://gist.github.com/harry-/d76646f4d30654566349bc4d1923c3d3
harry
oh dear
harry
I tried to do it as short and elegantly as possible
harry
happy to hear any comments
Roxif位sz 馃嚤馃嚬
happy to hear any comments
You should make the outer loop as such: for (int i = size - 1; i >= 0; i--) so that inside the loop it's like this: if (sentence[i] == ' ')
harry
hm, I think I did that for a reason, but I'll give it a try
harry
yeah, now the last word is getting swallowed
harry
I can do if (sentence[i] == ' ' || i == 0)
harry
but now the first letter of the first (last) word disappears
harry
because there's no space in front of the first word, right
Roxif位sz 馃嚤馃嚬
harry
thanks
harry
I added fgets to read in a different sentence each time
harry
also, someone told me to add a return value
harry
guess it doesnt hurt