« first day (3828 days earlier)      last day (1112 days later) » 

12:21 AM
And you've been credited, @JerryCoffin. I just confirmed that in 2021 iostreams parsing is still a chore
0
A: Deal with duplicate section names in INI files

seheI figured that for a random passer-by Boost Spirit might seem complex/overkill. I wanted to try again, since it's 2021, whether with C++17, we can do a reasonable job with just the standard library. Turns out it's a lot more work. The Qi implementation takes 86 lines of code, but the standard lib...

 
@sehe Yeah--not much has really changed in this respect. For what it's worth, I often use an overload of >> for a string literal, like this:
#include <iostream>
#include <cctype>

std::istream& operator>>(std::istream& is, char const* s) {

        if (is.flags() & std::ios::skipws) {
                while (std::isspace(is.peek()))
                        is.ignore(1);

                while (std::isspace((unsigned char)* s))
                        ++s;
        }

        while (*s && is.peek() == *s) {
                is.ignore(1);
                ++s;
        }
        if (*s)
                is.setstate(std::ios::failbit);
        return is;
Using it looks something like this:
int x, y;

std::cin >> "[" >> x >> "," >> y >> "]";
std::cout << "x: " << x << ", y: " << y << "\n";
So pretty much on the same general order as your expect.
 
1:02 AM
I wonder if there is some best way to zero terminate a fmt::memory_buffer? I kinda did buffer.push_back('\0'); but that doesn't quiet communicate the intent of converting the string type...
 
1:28 AM
@Mikhail What do you mean by "converting the string type"? It does return an iterator to one past the end, so if you're going to convert to an std::string, you can use begin() and returned iterator to specify a range to be converted.
 
Yeah I mean a c_str()
Also is there some trick to get fmt:: to print a fmt::memory_buffer? The best I can come up with is to wrap with a std::string_view but its kinda ugly because its at the call site: fmt::format("{} something",std::string_view(something.data(),something.size())?
 
 
5 hours later…
6:12 AM
It really depends on the jurisdiction. Since you did not mention the country, I will assume Slovakia.
31
A: I gifted money to my girlfriend for a down payment on a house and we broke up. Am I entitled to my money back?

Radovan GarabíkIANAL, of course, but: It really depends on the jurisdiction. Since you did not mention the country, I will assume Slovakia. You can indeed require to return the gift, but basically the only option is to 1) prove you gave the money to her in the first place (a notarized receipt is a foolproof way...

 
 
3 hours later…
9:13 AM
I removed an ad for a rental property on domain.com.au, but a week later, the ad re-appears on the website again. Why is it not a crime to falsely advertise someone else's property's availability?
 
nwp
You'd probably fail to prove intent which I believe is required.
Or maybe they caught you in a subscription you're not yet aware of.
 
9:29 AM
Well, at first, it's my fault ... since I marked the property as rented, for a week - that's almost the length of our first bunch of guests on airbnb. But then the second bunch checked in after the first one had left.
So today I emphasize my intend - I want the ad to be removed until I pay and re-activate it. But they would not want to take it off ...
There were strangers lurking around the property, thought it's available. It's a security risk.
 
nwp
Move to the USA and shoot on sight.
 
9:51 AM
Morning
I'm here to talk about coffee again
Please bear with me
 
nwp
Are you talking about Java?
 
ugh no
Nothing refined like that
I drink instant coffee
 
Nowadays I use coffee bags when travel. It's like tea bags but with coffee.
At home, I use a plunger.
Easier to clean then most coffee machines.
 
Every I'm served coffee from a plunger there's some wet powder at the bottom of my cup
So far I haven't had a good experience with them
It's good for camping though
 
10:10 AM
I like the taste for filtered coffee too, but cleaning it takes more effort.
@Morwenn Wait for it to settle down, then discard the bottom.
 
@TelKitty See, that makes it less convenient than instant coffee
 
I went through the whole instant coffee - drip coffee machine, more sophisticated coffee machine and currently stick to the plunger.
 
10:46 AM
No idea what this is, just think it's pretty :p
 
 
2 hours later…
1:04 PM
@Mikhail Fair game
 
1:19 PM
@Morwenn Present
 
hi
@TelKitty it is
 
as a child I was really afraid of dragonflys because I heard that one kids arm turned blue because he got bit/stung by one
 
nwp
It seems to be a sport to tell children that dragonflies can do you major harm and somehow that lasts to adulthood.
Or maybe that's just confirmation bias based on like 3 data points.
 
 
2 hours later…
3:14 PM
Talking about bugs, did you know that figs require a wasp sacrifice?
I learned that the other day and it blew my mind
 
 
1 hour later…
4:44 PM
@TelKitty I've always called them dragonflies, but some people separate them into dragonflies and damselflies. Either way, I agree--they're pretty, and really cool too (they're predators that eat annoying insects).
 
5:12 PM
Anybody got an opinions on using gconv?
 
 
1 hour later…
6:20 PM
Dunno. I'd rather find a way to avoid the need for something like gconv.
 
 
4 hours later…
10:26 PM
> replacing goto with loops (this revolution in language development happened in 1970, get with the times!)
Sometime I wonder why I do it. Yet, I've seen time and time again that if you just saw the seeds, the fruits will grow in places where you didn't expect it. Someone has to saw the seed.
 

« first day (3828 days earlier)      last day (1112 days later) »