« first day (3135 days earlier)      last day (1806 days later) » 

12:38 AM
Bad scheduling, there is a possibility that I will be out of the country between exchange of contract & settlement for the piece of land we are purchasing for the future solar farm :/ And I have only myself to blame.
 
 
2 hours later…
2:27 AM
To display a different name, you can register it as a business name. For example, Apples Pty Ltd. can register 'The Apple Fruit Store' as a business name. This means it can trade as 'The Apple Fruit Store' and display it on all its signage.
'Apple store' can be misleading ...
 
3:00 AM
@Mikhail And how can I understand what is too much abstraction?
 
 
5 hours later…
7:35 AM
Pattern troll, domain name hoarder, I wonder whether there are people hoarding company names.
 
8:33 AM
300 members <3
 
 
3 hours later…
11:20 AM
Hey everyone,
can someone help me using libraries in C++?
I'm trying to use SFML, but the project I'm working in is a Node.js native module, so I'm using node-gyp rather than CMake
And VS isn't being much help
 
11:47 AM
@TelKitty no it can't be, because Apple Inc, and Apple Music Inc settled this ages ago
Between 1978 and 2006 there were a number of legal disputes between Apple Corps (owned by The Beatles) and the computer manufacturer Apple Computers (now Apple Inc.) over competing trademark rights. The High Court of Justice in England handed down a judgment on 8 May 2006 in favour of Apple Computer, but the companies did not announce a final settlement until 5 February 2007. == History of trademark disputes == === 1978–1981 === In 1978, Apple Corps, the Beatles-founded holding company and owner of their record label, Apple Records, filed a lawsuit against Apple Computer for trademark i...
 
nwp
12:23 PM
Why is turning a std::string_view into a std::string such a pain?
 
@nwp in what sense?
 
nwp
std::string_view get_thing();

std::string s = get_thing(); //nope
std::string s = std::to_string(get_thing()); //nope
std::string s = std::string(std::begin(get_thing()), std::end(get_thing())); //probably a bug
I'm probably missing something obvious.
 
@nwp static_cast<std::string>(get_thing())
 
nwp
I guess that's better than adding a to_string(std::string_view) function. Thanks.
 
12:40 PM
yeah for obvious reasons your options are either std::string(get_thing()); or that.... which apparently does just call the constructor explictly
 
nwp
Let's just pretend std::string(get_thing()) is not a C cast.
 
pretty much yeah... hence why I'd prefer the static_cast variety anyway, it makes the conversion explicit
 
@nwp Wow, that's actually a cast, not a constructor call?
 
nwp
As far as I know C++ says it's a function style C cast. The difference between a constructor call and a cast is very blurry for me and doesn't seem to be useful.
 
I vaguely remember reading that name-lookup is involved in determining whether this is a cast or a constructor call. It's a scary thought.
I hope I was dreaming.
 
12:59 PM
@StackedCrooked technically you'd probably have to ask a parser expert. But yeah conversion constructors are a bit of an abomination
 
1:31 PM
Is using string_view rather than string an attempt to play life on hard mode?
 
Mostly.
 
@Mikhail depends on use
 
Since it rarely matters from a performance point of view.
 
returning a string_view is almost always wrong
@StackedCrooked depends on where you're using it
 
nwp
2:19 PM
@Mgetz Yeah, but there are exceptions, like at the bottom of this.
 
@nwp hence not being absolute
 
it has the same issues as returning a reference, except without the compiler support to warn when returning a view of a local std::string
 
 
1 hour later…
3:42 PM
@nwp braces avoid the pitfall of a cast while giving you the pitfall of disallowed narrowing conversions, but thankfully the latter doesn’t apply here: std::string { get_thing() }
 
 
4:40 PM
@nwp That's actually pretty simple: a cast (as such) is syntax for specifying a conversion from one type to another. A constructor call is one possible way of carrying out a conversion specified in a cast. But, it's possible to do a cast that doesn't invoke a ctor, and it's possible to invoke a ctor without a cast.
 
 
1 hour later…
5:44 PM
anyone know of an antivirus or something like that which copies running processes?
 
@Puppy not that I'm aware of, AV on windows is a lot more restricted than it used to be
 
@Mikhail I just ran it and included this line std::cout << B.an_item->value<< "\t"; and it works just fine. I get 42.
 
dang
 
why?
 
5:59 PM
he is probably checking for backdoors
 
6:17 PM
what’s a good function to showcase in contracts example? I’m used to seeing things like division for pre-conditions and absolute value for post-conditions, but is there something with both?
preferably something numerical and non-esoteric like the above, there are examples for things like pushing or popping from a queue or container but they kinda rely on the reader having a good picture of the typical internal states of such a thing
I’ll give it a go with the real square root
 
@Mgetz I have a bug which makes absolutely no sense, where two processes are communicating, and one of them receives the communication and acts on it, but then nothing happens.
so only conclusion I've drawn so far is that there must be two copies of the process and one of them doesn't receive the message
(also the copy must arise later at a fairly random time)
 
that would be super useful if I could reproduce it
or ask the customer to reproduce it
but neither of us can
 
6:32 PM
A use Process explorer to see if you are getting two
B) use process monitor to debug
 
 
1 hour later…
7:37 PM
@Mikhail Yeah--I'm not sure whether to be happy, sad, or what about that. On one hand, HP does seem to be turning into a place that old companies go to die. On the other hand, there's room for quite a bit of argument that HP probably kept quite a few of them viable long after they would have died on their own.
 
@JerryCoffin you could make that argument about IBM and Microsoft at points
 
@Mgetz You could. In IBM's case, it was probably true to some degree. Certainly Lotus is pretty much dead and forgotten anyway...
 
@JerryCoffin it appears to be on a slow death yes
 
7:57 PM
aren't we all
 
@Morwenn Nope. I expect to live forever. Seems to be accurate so far...
6
 
Same same
We'll have to see which of us witnesses the other fail first
 
@Morwenn I don't expect to leave any witnesses.
 
hehe
to be fair, being trans I've actually got non-negligible chances to die before you do
 
Or, as the old line goes: "I want to die quietly in my sleep like my uncle did. Not screaming in terror like all his passengers."
 
8:02 PM
xD
 
pretty deep sleeping uncle
 
I felt like I was falling asleep several times while driving
It's scary
 
@Morwenn AFAIK, the single biggest reason for short life expectancy of trans people is suicide. I don't recall your saying anything to indicate that's particularly likely in your case though (but I probably don't know enough to recognize symptoms even if they're extremely obvious...)
 
@JerryCoffin nah, I want to live
depression is tough sometimes and future doesn't look nice though
but hormones can also induce liver failure and brain cancer :D
and you can still get killed by random transphobes if you're unlucky
also I haven't shared music here in ages
 
@Morwenn Always possible of course. The bits and pieces I've seen seem to suggest that it's rare enough that it has little effect on average life expectancy though.
 
8:14 PM
yup, suicide is the main cause of premature death
the stats of trans vs. suicide are actually very scary
 
@Morwenn I wonder (but doubt there's any way to even guess) how much is really "inherent" (i.e., because being trans makes life more difficult in itself) and how much is caused by society being intolerant, narrow-minded, etc.
 
imo society plays a huge part in this
but even if society was tolerant there would still be some percentage due to people not managing to reach their transition goals and not wanting to live with that
plus hormones tend to make people depressive, so there's also that x)
my issues have seldom anything to do with society though and mostly to do with myself
 
@Morwenn As I recall, you've said in your case it was mostly a choice between going bald or taking hormones, and you chose the latter. I can imagine it being tougher for somebody who comes into life with strong feelings that their body and their personality don't fit together at all.
 
it's not only about going bald but it was indeed one of the most important reasons
I mean, going back now would feel like hell
 
@Morwenn Yeah--I wasn't trying to oversimplify the situation, just contrasting that in your case it was basically a decision about health, not a situation where you'd thought for years that your body was wrong for you, or something on that order.
 
8:27 PM
let's that I don't "believe in gender" so my feelings can't be strong like others but my body can still feel wrong x)
 
@Morwenn Fair enough.
Actually, my body feels wrong almost all the time. In this case, it's not about gender though--just age.
 
9:01 PM
when I go to the men's toilet I have doubt about my gender identity for like quarter a second.
I feel sorry for people who just enter without that ever crossing their mind. Because when it does it's def going to be problematic.
 
 
2 hours later…
10:38 PM
@rick I never doubt my gender identity, mostly because I don't really care.
 
@Mysticial so uh... Zombie Load?
 
 
1 hour later…
11:46 PM
Hello Everyone, I've got a small issue with a library I want to use.
I'm very new to C++ so please, take it easy on the jargon :P
but basically, I want to use a library. but including it in binding.gyp allows me to #include the header file, but once I compile the code, I get a linking error, telling me the equivalent library was not found
to be specific, I want to use SFML, my binding.gyp file looks like this:
{
  "targets": [{
      "target_name": "node_gui",
      "sources": [ "entry.cpp" ],
      "include_dirs": ["C:/C++Libs/SFML-2.5.1/include"],
      "link_settings": {
        "libraries": ["-lsfml-window"],
        "ldflags": [
          "-LC:/C++Libs/SFML-2.5.1/lib"
        ]
      }
    }]
}
I'm getting the following error: LINK : fatal error LNK1181: cannot open input file 'sfml-window.lib'
 

« first day (3135 days earlier)      last day (1806 days later) »