|
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.
3. No sys-admin, networking, "how do I setup XYZ" questions. For those use the SysAdmin[^] or Hardware and Devices[^] forums.
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.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
modified 16-Sep-19 9:31am.
|
|
|
|
|
Wordle 379 4/6
π¨β¬π¨β¬β¬
β¬β¬π¨π¨β¬
β¬π©π©β¬β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 379 5/6
β¬β¬β¬π©β¬
β¬π¨β¬π©β¬
β¬β¬β¬π©π¨
π©β¬π¨π©π¨
π©π©π©π©π©
|
|
|
|
|
Wordle 379 3/6
β¬🟩β¬β¬🟨
🟩🟩🟨β¬β¬
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Don't want to take to much real estate here in the lounge so I'm editing my post to add this:
Gangs in the Garden - YouTube[^]
Don't know how you feel about Black Moth Super Rainbow. Probably depends in part on your age and it helps to be a bit out there in the first place if you're going to enjoy it. It's perfect hacking music, IMO. I like coding to it because they use vocals as background music rather than trying to distract me from my code with articulated lyrics.
___ SNIP ___
After coming off of a run of a bad few days in terms of development I did a thing.
I have a device that can connect via USB but only as a virtual COM port. It can't be a HID device or anything. All communication is serial, RS232 style (even though it's USB)
I have an application that works with it, and the bluetooth stack I was using prior exploded and regressions ate my BLE code. So I wanted to make it work over serial.
I did this in C# in the app, with C++ on the MCU end.
I have created a serial negotiation system that
A) Allows the application to automatically detect a device, and which COM port it's on with no user intervention. Only valid devices will be detected.
B) Allows the serial port to *also* be used at the same time for logging output messages. A filter can be applied that would only produce log messages.
So now the silly thing is plug and play *and* it still allows me to write debug spew to the serial port without interfering with the application's serial comms.
I do it by seeding my commands with characters outside of the ASCII 7-bit range to signal a command stream. This means you get periodic "garbage" in your logs, but like i said it can be filtered out.
Anyway, after the past few days of banging my head against the wall and making rookie mistakes I pulled a rabbit out of my hat. Woo!
To err is human. Fortune favors the monsters.
modified 21hrs ago.
|
|
|
|
|
Don't you just love it when you regain those super powers? 
|
|
|
|
|
Congratulations! I've opened up another forgotten aspect of history. And figured out another, easier way to create 2-bit color (black & white) graphics using Krita and another vector graphics program I have. So I'm stuck documenting it, and drawing thousands of stars, to get it illustrated properly. Love to do some programming again, but here's to some browsing to relax the mind since I can't do that... Your stuff sounds interesting!
|
|
|
|
|
Nice music, I can recommend Spinvis[^] to you, he sings in Dutch so you won't be bothered by the lyrics 
|
|
|
|
|
If he makes me accidentally pick up some Dutch I'm blaming you.
To err is human. Fortune favors the monsters.
|
|
|
|
|
You invented 'comments' in serial communication, don't you?
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Wordle 378 4/6
β¬β¬β¬π©β¬
β¬β¬π¨π©π©
π¨π¨β¬π©π©
π©π©π©π©π©
|
|
|
|
|
|
Wordle 378 5/6
β¬β¬β¬β¬π¨
β¬β¬π©π¨β¬
β¬β¬β¬β¬β¬
β¬π¨π©π©π©
π©π©π©π©π©
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Wordle 378 4/6
🟨β¬β¬🟩β¬
β¬β¬🟨🟩β¬
🟨🟨🟨🟩🟩
🟩🟩🟩🟩🟩 Not a wrod I use much in general conversation, but ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
If it's 12345, then 312345 is more useful!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 378 3/6*
π¨β¬β¬β¬π©
β¬π¨π¨π©π©
π©π©π©π©π©
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 378 4/6
β¬β¬β¬π©π¨
π¨π¨β¬π©π©
π¨π¨π¨π©π©
π©π©π©π©π©
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming βWow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 378 4/6
β¬π¨β¬π¨π¨
π¨π¨π¨β¬β¬
π¨π¨π¨β¬β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 378 5/6
β¬β¬β¬π¨π¨
β¬π¨β¬π©π¨
π¨π¨π¨π©β¬
π¨π¨β¬π©π©
π©π©π©π©π©
Get me coffee and no one gets hurt!
|
|
|
|
|
Wordle 378 4/6
β¬π¨β¬β¬π¨
π¨π¨β¬β¬β¬
β¬β¬β¬β¬π¨
π©π©π©π©π©
|
|
|
|
|
still can't get wordle to post my results to here. cut and paste did not work either.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I am starting to learn PowerShell. I have avoided it for years, because whatever I needed to do beyond a simple BAT file, I could do in C#.
However, I am in a situation where I have to use PowerShell, so I am learning it.
One of the things I learned is that within a PowerShell script, you can call .cs files to run C# code. So this question came to mind, and I thought you all might have some opinions. I wrote a PS script that calls a .cs file and does exactly what I described. I have not mastered calling non-GAC .NET library DLLs yet, but I am working on it.
Why not use PowerShell as a management script, and write C# code to execute the "business logic"? I am not convinced that it is better to use PowerShell cmdlets to hack up some brittle script to do what can be more easily done in C#, which is far more capable and wider-ranging than PowerShell script.
This is a snippet from my script:
$Source = Get-Content "SomeCSClass.cs" -Raw
Add-Type -TypeDefinition $Source
$TestDLL = New-Object PSTest.SomeCSClass
$TestFilePath = $TestDLL.GetCurrentDirectory() + "\PowerShell Example Files\"
## Get a list of files using C# code from a static method
$Files = [PSTest.SomeCSClass]::GetListOfFiles($TestFilePath, "*.txt", 0)
Your thoughts?
|
|
|
|
|
I also avoid PowerShell, it's of no use to me either.
|
|
|
|
|
This is very welcome news. I might just want to learn PowerShell after all just for this capability.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|