« first day (3381 days earlier)      last day (1784 days later) » 

user7659542
00:09
@Mgetz Interesting...
user7659542
WHat s up with those lazy cunts using @verbatim everywhere in their doxygen?
user7659542
there is a reason @param, @retval etc exist. So you don't end up doing smth stupid like:
user7659542
@verbatim
fooFunction: This function does smth random
parameters: a: your value
return: the new value
@endverbatim
user7659542
Is it too much to ask to just use the standard doxygen stuff like everybody else?
user7659542
I assume @verbatim is only used if you want to do some "ascii art".
user7659542
00:23
@param and @retval
user7659542
@Mgetz would a RCU system, fo a userland app, be difficult to implement properly from scratch?
02:47
OMG sometimes I need to check my old apps to see what they were about, this is what happens when you are a 11x developer and have a short memory. </Shameless_self_promotion>
NUDITY OR PROVOCATIVE OUTFITS
CLOSE

Does the app contain any nudity or revealing outfits?
How to answer? My app is all about animals, and they are mostly undressed.
But how many animals are fully dressed?
 
5 hours later…
07:57
Hello!
could you please help me with an answer to my question related to this post?
9
Q: C++: Initialization Lists / Naming conventions

FrankMNThe following code works on my machine, but is it good practice / guaranteed to work? struct MyStruct { MyStruct(int x, int y, int z) : x(x), y(y), z(z) { } int x; int y; int z; }; Specifically, is x(x) guaranteed to do what I want? (that is, does the varia...

check the question on the accepted answer because it will be more clear to you to see the topic
@PeterT please?
user6461957
08:11
@CătălinaSîrbu godbolt.org/z/mQCqtY
08:46
i dont know how to read this...
@d03
user6461957
The z member var is still initialized to 0.
Is that what you wanted to know? If not, sorry for misunderstanding your question.
yes, i wanted to know why am i allowed to do that and why there is no error for undefined variable z
user6461957
I find that behavior of that program to be strange as well.
z inside the parenthesis should be a local variable which doesn;t exists
so it is compiler related the initialization to 0 ?
or it is some specific behaviour?
user6461957
08:51
Ah wrong.
user6461957
Er, the link was right. Sorry, I thought that my link was wrong.
user6461957
```
source>:7:10: warning: field 'z' is uninitialized when used here [-Wuninitialized]

z(z) {
```
on my computer it works
user6461957
Seems like a compiler dependent issue.
08:53
#include <iostream>
using namespace std;

class Motor
{
public:
int cc, nb;

Motor(int cc): cc(cc), nb(nb){}
};

class Car
{
public:
Motor MPI;

Car(int param1):MPI{param1}{};
};

int main()
{
Car car(12);
return 0;
}
user6461957
If you compile that with clang, you get:

#1 with x86-64 clang 8.0.0

<source>:6:18: warning: field 'cc' is uninitialized when used here [-Wuninitialized]

Motor(int x): cc(cc), nb(nb){}

^

<source>:6:26: warning: field 'nb' is uninitialized when used here [-Wuninitialized]

Motor(int x): cc(cc), nb(nb){}

^

<source>:22:1: error: expected unqualified-id

`
my mistake
it was int cc as parameter to motor constructor
i modified now
ok i understand is compiler related. On my ide i have c++11std
<source>:9:31: warning: field 'nb' is uninitialized when used here [-Wuninitialized]

Motor(int cc): cc(cc), nb(nb){}

^

1 warning generated.

ASM generation compiler returned: 0

<source>:9:31: warning: field 'nb' is uninitialized when used here [-Wuninitialized]

Motor(int cc): cc(cc), nb(nb){}

^

1 warning generated.

Execution build compiler returned: 0

Program returned: 0
user6461957
I think that is called undefined behavior b/c you can't take that for granted.
but as i can see it is a warning
not an error, right?
ok i will take it as it is, undefined behaviour and i ll try to avoid this
user6461957
Yes with clang I get a warning that the variable is uninitialized.
08:57
Thank you. I still have another question at this chapter if you can help me
user6461957
I always try to initialize my variables.
user6461957
I'll try. :)
i've read in "a tour of c++" that initialing a variable with the construct type like int a{2.5} will generate an error
i cite "the gheneral {}-list form[...] if nothing else, it saves you from conversions that lose information"
user6461957
on my pc i get a warning and the compilation is succesfull
main.cpp:22:14: warning: narrowing conversion of '2.5e+0' from 'double' to 'int' inside { } [-Wnarrowing]
user6461957
09:00
Apparently, it is also compiler-related. What compiler do you have?
i m using codeblocks with the c++11 compiler
gnu gcc
but i'm unsure this is what you need as an answer, i don't know where to check what compiler do i have
user6461957
Hmm... you can experiment with different compilers on https://godbolt.org/.
So maybe some compilers do automatic conversions and some not?
but do you understand what is happening in the middle column on that site?
or i have to watch just left and right ?
i mean should i understand that compiler instructions ? :)
user6461957
No, you don't need to. Those things in the middle are the translations to assembly instructions.
user6461957
On the top right there is a checkbox ./a.out. That will display your program on the console.
09:11
and how do i check what compiler do i have
user6461957
You can select the compilers from a drop down menu. It is on the top of the middle portion.
i tried gcc --version but it couldn't be that simple. gcc command not found. I don't have my gcc added to environment path
user6461957
Er I misunderstood you. Sorry.
It has to be in the code blocks settings somewhere
user6461957
g++ --version?
user6461957
09:15
I get:

g++ --version
g++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
i will search on the internet . for the moment i cant figure it out, as gcc, g++ not working
Oh i got it, you'll have to go to the folder where the binary is located
user6461957
What OS are you using?
windows 10 x64
once in the folder you can use the g++ command from there from command prompt
user6461957
09:17
You need to set your env variables first. I think that's why it doesn't work on the CMD with g++ --version
For example it might be in C:\MinGW\bin
minGW
yes
C:\OJI\CodeBlocks\MinGW\bin
and now what do i have to run ?
well go to your command prompt and nagivate there
user6461957
Or set your environment variables?
gcc (tdm-1) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user6461957
09:19
Oh it is that old.
...
:)
yes well to be sincere this is what my teacher shared me when i was in highschool 5-6 years ago :))
user6461957
It does work indeed.
btw on windows i suggest using Anaconda, it has a neat little package manager as well as a version of cmd with all the commands supported
user6461957
But on newer gcc/g++ versions, it won't.
09:22
what compile should i search for ?
i will try to keep mingw and just update it
user6461957
Yeah.
@Xosrov that isn;t for python? what do you mean ?
gcc (tdm-1) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
this is the newest compiler i ve found on codeblocks site
it is used mainly for python but you can install gcc on it too
conda install -c anaconda gcc
user6461957
That's new to me, but cool!
09:56
Thank you very much @Xosrov and @d03
 
2 hours later…
11:34
Is there a post or a page somewhere that summarizes the total mayhem that's been going on behind the curtains on SE? I'm seeing posts on meta about moderators departing or being fired, but I guess I missed the beginning of this story.
Sh0g leaving is a total disgrace to the company... WTF would you let that guy walk out the door?!?
One suspicion would be, the longer a CM is with a company the more the company pays the that employee. So if you want to cut the cost, you get rid of your oldest employees.
Unless of course you are the key person in R & D or the highest revenue generating sales person.
user6461957
Oh god, sounds like I joined in the wrongest of times.
user6461957
11:50
And all that worsening of this community to cut costs? Wow!
user6461957
1791
Q: Stack Overflow is doing me ongoing harm; it's time to fix it!

Monica CellioOver the last month, Stack Overflow has violated its own policies and precedents to cause egregious and unnecessary harm to me -- to my reputation (personal and professional), to my health, and to my safety. This harm is significant and ongoing. It is past time for the company to correct its e...

12:05
Dealing with changes is a part of life.
user6461957
Well everyone suddenly seemed to make remarks about that situation and it appears to be very unusual, hence my confused & disappointed reaction.
But yeah, you are right. What is going to happen? Will SO close down?
I don't think SO will close down any time soon, but it can become a zombie (not died, just not very alive).
from where does so has money to run?
Venture capital ... and earnings from selling career, teams and enterprise products.
user6461957
13:02
Okay, I am trying to catch up, but there's so much to read and search for... So far important CMs were apparently fired due to controversial reasons. I think Shog9 was also one of them: twitter.com/shog9
user6461957
I also saw one skilled game developer leaving SE. He had high stats as far as I remember and he completely deleted all his accounts on SE. And this was quite recently so I imagine this being tied to this situation right here.
user6461957
All this being said, if this trend continues, we'll all turn into zombies pretty soon or maybe not?
user6461957
13:26
Okay, so according to Chris Hawkes the new CEO is not very much liked and SO is looking for getting bought from companies like MS: youtu.be/l-zEUl2UmJo
2
 
3 hours later…
23:23
" Make Pseudo-random Numbers Portable " sounds reasonable
Also " Add new traits type std::is_complex "
@Morwenn Got any good ones?
I'm working on C++
I made a criminally awful GUI
"D​IRECTION​​FOR​ ISO C++" Is disappointing, I was hoping we'd get something like std::north :-)
23:44
can you patten an algorithm, specifically the pattern?
patent? Yes
sorry patent
correct
Yeah, this is a pretty famous patent: en.wikipedia.org/wiki/Scale-invariant_feature_transform
Recent changes in interpretation of the law have made it a bit less useful.
Like now a rather small change makes it a different algorithm .
Method and apparatus for identifying scale invariant features in an image and use of same for locating an object in an image
image-processing seems like a whole process. However, if it's something much simpler. what's the average cost to patent code, 10,000 US?
More
So, you need to keep feeding it every year
From personal experience, individuals don't benefit from owning a patent too much
Having a bunch of patents (inventor rather than owner) on your CV is a nice vanity item though :-)
My status as an inventor gets me a 5x discount on them, although university sold an exclusive license to my work :-(
So basically, its a form of a NDA because I can't work on the stuff I invented
which sucks
Recent changes in the interpretation of the law are starting to require code or pseudo code in patents. This means you can't patent abstract things like "Sending a fax via email"
23:58
that is so dumb,
Corporate law is a mechanism of oppression :-)

« first day (3381 days earlier)      last day (1784 days later) »