« first day (3336 days earlier)      last day (1598 days later) » 

5:06 AM
I need to spend less time on the internet. It's sad that you live your life on the internet. But it's sadder when you don't even realise that.
And there seems to be a correlation between people who tells me what I should do and people who are depressed themselves. Maybe you like to cage yourself, but please, don't try to cage me. Don't impose a bunch of rules on to yourself, maybe you would not as depressed.
It always baffles me why depressed people want to tell not depressed people what to do. Like a homeless person tries to give multi-millionaires financial advice.
 
5:58 AM
You know you lived in a deformed world and surrounded by hypocrites when those people say they support LGBT but belittles single women, still calls themselves feminists. If hypocrites get depressed because they can not be true to themselves, then they have no one else to blame but themselves. Every gets what they deserve!
 
6:53 AM
0
Q: How to control servos on Arduino through Raspberry Pi

TelKittyI have a couple of servos connected to an Arduino board, which is in turn connected to a Raspberry Pi (4) using an ethernet cable. Just wondering, in what ways can I control the servos on Raspian. Currently I could access Arduino from rPi like this: import serial ser = serial.Serial(...

Anyways, the service I am waiting for online has arrived. I need to venture into real world to complete many more things.
As a person who provide housing for quite a few families and is going provide solar panel generated electricity to many many more households. I am exhausted. I am commit gross negligence towards my apps. I can't even remember how many apps I have on the market.
And then there is this ^ that I need to organise on monthly basis. Last time 74 people signed up on it.
I wish there is a hefty tax on useless people whose daily job is doing hateful things.
 
 
3 hours later…
nwp
Twitter has such a garbage format. It makes an otherwise cool story almost unreadable.
 
 
2 hours later…
 
 
2 hours later…
2:18 PM
Backyard ... don't really have enough time to enjoy it so sharing the picture of the flowers as not to waste it :p
Also song birds come to begging for food sing songs everyday. Life is beautiful.
 
nwp
Inb4 the image metadata has GPS coordinates. Time to send in a bomb squad!
 
@nwp most upload sites including imgur remove that and everything except copyright metadata
 
@TelKitty I'm eating noodles, too. Magpie mukbang :)
 
There are kangaroos, wombats, foxes, eagles, snakes and plenty of other animals on the solar farm site. I plan on installing a camera there somewhere to capture videos of wildlife so I can harvest some views on youtube :x
 
2:33 PM
PewDieMagPie
 
Don't know why this cockatoo has the number 069 on it while standing on the letterbox of 70A >_<
 
nwp
It was confused and went one house further. It happens.
 
Here, usually odd house number is on one side and even ones on the other side. Why did white chicken looks alike cross the road?!
Too slim to be a chicken.
 
 
2 hours later…
4:51 PM
anybody know any opensource c++ dicom library which supports whole slide imaging?
 
nwp
5:06 PM
@samnaction Did you check DCMTK?
 
Is it normal that I have a urge to fork an open source project because it would make so much more sense to do things differently
 
nwp
No. Normal people give up and play video games instead.
 
^^ dat
 
Yeah but the idea is getting stronger each day
 
nwp
That's called farming and doing daily quests.
 
5:20 PM
It's like I know it's a lost fight from the beggining
 
5:41 PM
@LoïcFaure-Lacroix Yes, fairly normal. Also fairly normal that after a few weeks (or sometimes days or even hours) you get bored and play video games instead. But, as the amount of code on Github (and Gitlab, etc.) attests, people do actually write some code now and then too.
 
yeah but on github most forks are dead end
some of them are custom stuff that will never see the day of light as a PR merged un the central repository or will become the unmaintained piece of garbage that keeps a business running on outdated code with security holes
it's a bit sad knowing that the chances it will be something else than that are probably less than 1%
 
nwp
Have you sent a bug report or feature request?
 
Of course did: I can sum up the answers
One of the bug report was regarding how passwords were saved in cleartext on the servers in the sessions
The answer was pretty much this: won't fix because it's too complicated to fix and our SaaS user don't even use passwords so fuck off
 
@LoïcFaure-Lacroix I dunno if it's worthwhile in a case like that. When the maintainer clearly doesn't have a clue of what he's doing, chances of a fix are remote at best.
 
nwp
double sum = std::accumulate(std::begin(some_doubles), std::end(some_doubles), 0);
Glorious C++, never change.
 
5:55 PM
The worst par is that it's a big business so not just some kind of small project. They ended up fixing it after a while which caused issues as the security fix broke a few hacks I had to use because creating a session for a user required a password
 
nwp
I wonder if it's feasible to emit a loss of precision warning for that or something.
 
@LoïcFaure-Lacroix Of course. It's a bit like evolution though: 99.99% of mutations die practically immediately. Even so, evolution manages to produce everything from slime mold on up...
 
but the usual answer we receive from them is denial
 
@nwp I'd pretty much expect a decent compiler to do so. After all, you're going to have something like int __accumulator; for (...) __accumulator += some_double;
 
nwp
But that code is in a system header for which warnings are disabled.
STL talked about fixing this in MSVC. Maybe that one does emit a warning.
 
5:59 PM
@nwp In that case, yeah, it's going to be tough.
 
wouldn't it trigger warnings even if it's in a header it's going to get compiled.
headers aren't fancy interface file format, it's still code
 
nwp
Not unless you have a fancy compiler that understands more than "no warnings from system headers". Gcc and clang are not fancy.
 
@LoïcFaure-Lacroix Not if the header has something on the general order of #pragma disable_warnings\n /* all the code */ \n#pragma enable_warnings
 
ah, no way to enforce that?
something like --pedantic ?
 
@nwp Clearly the correct thing to do in most cases is something on the general order of template <typename InIt, typename ValueType = std::iterator_traits<InIt>::value_type>, so it deduces the correct type for the accumulator on its own.
 
nwp
6:04 PM
I don't think that's allowed by the standard.
 
@nwp No, not currently. I'm talking about what the standard should support.
 
nwp
STL talked about disabling standard library warnings that come from the library itself and keeping warnings that come from code injected into it via template parameters. It's rather tricky to get right.
 
And yes, there are cases where you really want to do something like sum some ints, and use a long or long long for the accumulator--but it's honestly pretty rare.
 
@JerryCoffin like a root of a sum of square where the value inside can overflow the actual expected output
 
@nwp Yeah, to put it mildly (I'd guess). But an awful lot of the problems can be fixed by just cleaning up the code in the header. Too much of it comes from headers that try to support ancient compilers.
 
nwp
6:07 PM
@JerryCoffin I remember Herb Sutter talk about this and that int __accumulator is not actually specified by the standard. Valid implementations are allowed to use double __accumulator instead which changes the result. I haven't checked it they fixed that.
 
@LoïcFaure-Lacroix Yeah, but you shouldn't usually do that anyway.
6
A: Fast Hypotenuse Algorithm for Embedded Processor?

Jerry CoffinOne possibility looks like this: #include <math.h> /* Iterations Accuracy * 2 6.5 digits * 3 20 digits * 4 62 digits * assuming a numeric type able to maintain that degree of accuracy in * the individual operations. */ #define ITER 3 double dist(double P...

The declaration is:

template<class InputIterator, class T>
T accumulate(InputIterator first, InputIterator last, T init);

So, you could force it by specifying the template parameter explicitly, but otherwise `T` will be deduced from the type of the parameter you pass as the initial value.
But it is true that it doesn't explicitly require the accumulator to be of type T.
Oh, re-checking, however, if you want it to deduce the accumulator type from the type of data being summed, you can use `std::reduce` instead of `std::accumulate`.

template<class InputIterator>
typename iterator_traits<InputIterator>::value_type
reduce(InputIterator first, InputIterator last);

Equivalent to:
return reduce(first, last,
typename iterator_traits<InputIterator>::value_type{});
 
nwp
Well, that would have been a fun fix too, but I already like my 1 character fix.
 
nwp
6:36 PM
Lenovo Battery adviser is funny. "Fully loaded you can use this computer for 4 hours without external power supply. With a new battery you could use it for up to 3 hours. Click here for more information about ordering a new battery."
 
6:51 PM
 
7:07 PM
@nwp Presumably changing 0 to 0. ?
 
 
2 hours later…
9:04 PM
I have requested an cost estimated from a few contractors for a job I need to get done. One of them didn't give my an estimate but said 'I have started on your job'. I sure hope the person is bluffing.
 
 
2 hours later…
10:54 PM
No one wants to rent this place I am trying to rent out for merely $750 a week at moment. I will probably put it on airbnb, for Dec-Jan. Dec = high vacancy rate for long term rental. Still, long term rental is preferred to airbnb because don't really want to put too much effort into managing properties.
I might even link a whole bunch of videos I have taken while living there a few years ago. In fact there are quite a few youtube videos on my youtube channel were taken there, they were all about birds - magpies, lorikeets, cockatoos, cockaburra, miner birds ... and brush turkeys. Why only pimp out the house when you can pimp out youtube videos at the same time.
Such a beautiful garden with all the native vegetation and birds, why wouldn't someone want to rent it :p
 

« first day (3336 days earlier)      last day (1598 days later) »