The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
1. The lounge is for the CodeProject community to discuss things of interest to the community, and as a place for the whole community to participate. It is, first and foremost, a respectful meeting and discussion area for those wishing to discuss the life of a Software developer.
The #1 rule is: Be respectful of others, of the site, and of the community as a whole.
2. Technical discussions are welcome, but if you need specific programming question answered please use Quick Answers[^], or to discussion your programming problem in depth use the programming forums[^]. We encourage technical discussion, but this is a general discussion forum, not a programming Q&A forum. Posts will be moved or deleted if they fit better elsewhere.
4. No politics (including enviro-politics[^]), no sex, no religion. This is a community for software development. There are plenty of other sites that are far more appropriate for these discussions.
5. Nothing Not Safe For Work, nothing you would not want your wife/husband, your girlfriend/boyfriend, your mother or your kid sister seeing on your screen.
6. Any personal attacks, any spam, any advertising, any trolling, or any abuse of the rules will result in your account being removed.
7. Not everyone's first language is English. Be understanding.
Please respect the community and respect each other. We are of many cultures so remember that. Don't assume others understand you are joking, don't belittle anyone for taking offense or being thin skinned.
We are a community for software developers. Leave the egos at the door.
I am soon doing a major re-factor / start over and take what still is usefull of a product where several things are working together and I would like to re-structure it a bit. I already see advantages and disadvantages on both approaches. Just want to "hear" about your tastes / opinions.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
I would prefer the second way, this will save you a lot of time in a complex solution e.g. when you want to search the files in a directory. Example: search for some error message from Notepad++ with "search in files".
I prefer the former because I often find that I have build scripts that invoke language specific tools, so I might have input files for the CPP project that are not source files, but rather, input files for tools that generate source files. Same with C#
There are other cases too where I might have non-source inputs that are nevertheless language specific.
Putting everything under the CPP branch, including the non-source input files - everything that is needed to build the CPP project makes it easier to use and copy the projects as complete and hopefully self contained sub-projects of code. I mean sure, it's not the entire overarching project, but where I can I prefer each sub-project to build on its own as much as feasible.
The same goes for the CS projects as it does for the CPP, i just used CPP as the example above.
As I am playing Assassin Creed for the first time, I am learning of those who came before, our creators, the mighty Isus.
Now, I am in awe and want to learn their wisdom.
Brother Assassins, who have followed this path before, let me know if I am on the Way of enlightenment!?
Here is a simple ethical questionnaire that will judge my progress on the way of the Isu, with my answer after each question.
5 innocents are tied on a trolley's track A. And 1 innocent is tied on a trolley's track B.
The trolley is on its way to crush people on track A very soon. However you have the power to make it go to track B, hence killing only one person.
1. do nothing?
2. change its path to be on track B?
A: 1, Let the trolley continue! Life is pain, and killing 5 people is better at reducing misery!
A heinous crime has been committed and 2 suspects have been arrested, but it's not entirely sure if either is guilty. You are the judge condemning them.
1. kill them both?
2. arrest them both for 10 years?
3. let them both go?
A: 1, kill them both, just to be safe. The guilty will surely be punished this way!
Your friend is hopelessly depressed. His one true love doesn't love him back He wants to kill himself.
1. help him commit suicide to end his misery?
2. convince him there is more to live for?
A: 1, In death he will rest in peace. Achieving the ultimate goal of life!
Did I get that right?! Am I becoming as wise as the mighty Isus?
My new cat, Pink, ran away last week.
Haven't seen her in 8 days now, but someone ate all her food a few nights back.
She's probably near and coming home every few nights to eat.
To make sure, I bought a camera with night vision that can detect and follow motion, notify me of any motion and record up to a few days.
I'm aiming it directly at the cat hatch so I know when she's in.
Not a fan though, this kind of stuff is often badly secured and I wouldn't be surprised if the manufacturer is now following my every move.
I hope I get Pink back soon and I can unplug and box this camera again.
My cat flap is very basic, it has but one mode.
It also has to be open permanently (using tape, because I cannot remove the flap without disassembling the whole thing) because she doesn't know how a cat flap works yet.
In hindsight, it would've been worth it to pay a little extra for a good cat flap
She "escaped" when the door was open.
I let her, because she was meowing at the door every night.
Two weeks ago she went to explore, but something scared her and she came running back, so I thought it would be alright.
Last week she also started off exploring the garden and did not go too far, until she did
I doubt that they watch the cat door. More likely they would like to make it a Bot. I connected one to the Internet via a spare router and a PC with a separate public IP address and all was fine. I used a spare computer with an NVR program on it. All isolated. One day, the camera said "aha, I have an update". "OK" says I, "go for it". I watched the log in the router and within 15 minutes, the camera contacted Tanzania or some such place. Since I had carelessly used the same admin password in both the camera and the PC (this is theory), it logged in to the PC and created 2 new administrator accounts (this part is fact).
So, never trust an IoT device connected to the Internet unless you make sure it can't phone some home besides yours. Real firewalls are your friend.
I use firewalls with VPN servers, never port forward. I used to be young and dumb. Now, I am old and dumb.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.