|
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.
|
|
|
|
|
After fighting with this 10 yo PC that is cluttered and balky, and can't run Win 11, I finally bought the components last night for its replacement. I'm building it on an ASUS MB - my first from that company - with the Z690 chipset. The brains will be supplied by a Core i9 12900KF CPU running at 3.2 GHz (that boggles the mind, as my first CPU ran at an impressive 1 MHz!). For memory I'm settling for a mere 64 GB of DDR5 RAM with a 1TB SSD. Graphics will be provided by a GeForce RTX 3060 Ti card from ASUS.
Hopefully this will be able to run AutoCAD and ESRI ArcGIS with too much lag. The best part is that, a couple of calls I was holding leapt up in price this morning by enough to more than pay for the new system, so I sold them!
Happy Friday! !
Will Rogers never met me.
modified 1hr ago.
|
|
|
|
|
I thought I saw a glow in the western sky last night.
|
|
|
|
|
Roger Wright wrote: For memory I'm settling for a mere 64 MB of DDR5 RAM ... Hopefully this will be able to run AutoCAD and ESRI ArcGIS with too much lag. That typo made me laugh! Windows wouldn't even boot with that! Happy weekend to you, too!
|
|
|
|
|
Myself I read it three times trying to figure out what it was referring to.
|
|
|
|
|
Fixed it... and I checked the order, too, just in case. All good.
Will Rogers never met me.
|
|
|
|
|
Yup - caught me napping. Let's make that GB and call it good...
Will Rogers never met me.
|
|
|
|
|
I seem to remember a time when you could buy 64 MB sticks, but I doubt they are available today off the shelf! And if they were, they should have been so cheap that the price would have triggered you as being wrong.
|
|
|
|
|
Congrats on the new system.
Always nice when it's paid for/free!
Give me coffee to change the things I can and wine for those I can not!
PartsBin an Electronics Part Organizer - An updated version available! JaxCoder.com
Latest Article: Simon Says, A Child's Game
|
|
|
|
|
The oldest computer can be traced to Adam and Eve.
It was an Apple with extremely limited memory.
Just 1 byte. Then everything crashed.
-Source unknown
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Probably infected by a venomous worm.
|
|
|
|
|
So I needed a simple bit of code to take an icon and convert it to 1-bit monochrome. I had to write it in C++ such that my friend could easily understand it and then port it to JS and make my website do it. I'm an idiot when it comes to web development.
I could not get it right. Could not.
One cup of coffee later:
using test_t = bitmap<alpha_pixel<1>>;
uint8_t test_data[test_t::sizeof_buffer(faAnchorCircleCheck_size)];
void gen_1bit() {
size_t i = 0;
size_t idx = 0;
size_t offs = 0;
uint8_t tmp = 0;
for(int y = 0;y<faAnchorLock.dimensions().height;++y) {
for(int x = 0;x<faAnchorLock.dimensions().width;++x) {
decltype(faAnchorLock)::pixel_type px;
faAnchorLock.point(point16(x,y),&px);
float luma =px.template channelr<0>();
if((luma>=.5)) {
tmp|=(1<<(7-offs));
}
++i;
++offs;
if(8==offs) {
test_data[idx]=tmp;
tmp=0;
offs=0;
++idx;
}
}
}
if(offs!=0) {
test_data[idx]=tmp;
}
}
Like magic.
Not difficult code, by any means, but it just eluded me. And yes, I could replace ifs with shifts and such but I didn't make this to perform - I made it to be able to be read by someone else and ported.
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
My health care provider has suggested I cut back on caffeine -- I wish decaf coffee tasted better than it does. 
|
|
|
|
|
Decaf gives me nasty headaches.
Apparently, it can also raise cholesterol levels as well.
"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!
|
|
|
|
|
OriginalGriff wrote: Decaf gives me nasty headaches From my experience, the headache comes from caffeine withdrawal, which takes a while. Decaf doesn't usually cause headaches.
Software Zen: delete this;
|
|
|
|
|
Yep.
Although maybe it is from the aggravation of remembering which to buy and make.
|
|
|
|
|
Coffee gives me wicked acid reflux, thus I no longer drink it.
Needless to say, I seldom get my code "right".
|
|
|
|
|
I would die.
I would actually die.
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
Hmm. My response is a little different. Let me put it this way. I have a mug with a picture of a dragon with a steaming cup of coffee in its, er, claws with the caption: "Take my mug and I will drink my coffee from your skull."
Software Zen: delete this;
|
|
|
|
|
Gary Wheeler wrote: I will drink my coffee from your skull
I really like that, a lot. 
|
|
|
|
|
I used to code in C++, lots and lots.
decltype(faAnchorLock)::pixel_type px;
...
float luma =px.template channelr<0>();
no idea what decltype and that template [space] stuff does. Though decltype is sort of obvious.
How things have changed.
|
|
|
|
|
channelr is a template function that takes one argument - 0 in this case.
template simply disambiguates it for the compiler. It's not always required - not even sure if it is in this case, but all it does in this context is tell the compiler "i'm about to instantiate a template"
the first line is grabbing a type alias declaration off of the type that corresponds to faAnchorLock. What it means in lay terms is "let me know what type of pixel format the faAnchorLock icon is using."
The pixel format is something like rgb_pixel<16> (rgb565 format, 16 bit) or in this case alpha_pixel<8>, which is a pixel that is nothing but an alpha channel. You can also have gsc_pixel<4> for example which is 4-bit grayscale, or many other types, and you can define more.
I'm using that to read the values out of the faAnchorLock icon. channelr gets them as a "real" value (floating point) scaled from 0-1 so I don't have to care about the source's bit depth (8 in this case, but that's an implementation detail)
There's smoke in my iris
But I painted a sunny day on the insides of my eyelids
So I'm ready now (What you ready for?)
I'm ready for life in this city
And my wings have grown almost enough to lift me
|
|
|
|
|
|
kmoorevs wrote: Black Sabbath, 'Heaven and Hell' \m/ Great song, great album!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
Prefer 'Heaven and Hell' by Vangelis.
|
|
|
|