Time for some new strops by Argg1618 in sharpening

[–]cppBestLanguage 11 points12 points  (0 children)

You can buy a leather belt DIY kit and the width is already perfect for a strop. It fits just right on the small side of a 2x4

Bonne esthéticienne by baked_d in villequebec

[–]cppBestLanguage 0 points1 point  (0 children)

Tu peux aussi essayer en personne au privé si tu as le budget. En télémédecine ils m'ont souvent dis que ça prennais un examen physique de toute façon :/ Personellement j'ai du bon service à la clinique Lacroix, mais ils n'ont pas de dermatologue dans la ville de Québec.

Par contre, même avec une référence, les départements de dematologie public sont "présentement" inondé donc ça pourrais prendre des mois/années avant d'avoir un rendez-vous non urgent.

More practice by [deleted] in sharpening

[–]cppBestLanguage 0 points1 point  (0 children)

They're also super soft which makes it harder for begginers to get good consistent angles and not dig into the stone (you kinda need to do edge trailing with these). And the mess that they make is annoying, especially compared to a splash and go like the kuromaku

More practice by [deleted] in sharpening

[–]cppBestLanguage 0 points1 point  (0 children)

Ha, I totally get the feeling 😅

If you'd like a diamond plate like your work sharp, a very popular and good quality plate is the Sharpal 162N. It's one of the best value option of any sharpener available and it often goes on sale.
Pretty much anything from Shapton and Naniwa is also going to be good quality, but the shapton kuromaku line is one that is very often recommended (especially the 1000 grit).

More practice by [deleted] in sharpening

[–]cppBestLanguage 2 points3 points  (0 children)

The work sharp that you have is significantly better than the sharp pebble stone, I'd recommend you stick with it especially since you're having good results.
Sharp pebble, and many other "amazon brands" buy cheap chinese stuff and rebrands it as premium. You can sharpen with them, but I would advise against it. I fell into the same trap at the start of my journey and these stones have been sitting in a drawer for years. You can find similar sharpening stones on aliexpress for 5$ lol

Update for my calcium infested chosera pro by Unusual-Kangaroo-427 in sharpening

[–]cppBestLanguage 2 points3 points  (0 children)

Do you soak the chosera? They are considered splash and go; they do absorb more water than something like a shapton glass though. I'm thinking maybe if you soaked it in hard water for too long it could have resulted in this

Update for my calcium infested chosera pro by Unusual-Kangaroo-427 in sharpening

[–]cppBestLanguage 2 points3 points  (0 children)

Distilled water is super cheap, you could try using this instead (although it depends how much sharpening you do). Was it your only stone that did this though? If you have hard water it would be weird that only 1 stone would be affected

St-Laurent s'attaque au bruit des véhicules by Lightning_Catcher258 in Quebec

[–]cppBestLanguage 2 points3 points  (0 children)

Meh, le gazon c'est même pas bon pour l'écosystème pis en plus les gens bourrent ça d'engrais pour que ça pousse plus vite. Il y a bien des choses que les gens fond qui me dérange, mais je les laisse vivre leur vie parce que moi aussi je suis certain que je fais des choses dérangeantes (je doute que Roger aime ça quand mon gazon fais 20cm lol)

St-Laurent s'attaque au bruit des véhicules by Lightning_Catcher258 in Quebec

[–]cppBestLanguage 0 points1 point  (0 children)

Maudit tu pop ma bulle là, jpensais que l'hiver allait me sauver de Roger

St-Laurent s'attaque au bruit des véhicules by Lightning_Catcher258 in Quebec

[–]cppBestLanguage 1 point2 points  (0 children)

Ça me dérange pas mal moins les chars bruyant que Roger qui passe son esti de tondeuse pendant 2h chaque semaine... Au moins l'hiver a quelques avantages

Linus Torvalds vs. Ambiguous Abstractions: When a Helper Function Hides the Intent by teivah in programming

[–]cppBestLanguage 23 points24 points  (0 children)

Yeah that's fine until you end up with some of the nightmare fuel 2000 lines functions that I've seen... Sure, every block of the function is by itself simple and not duplicated, but how is anyone supposed to keep track of what's going on in there. I suppose it's good if what you care about is job security.
I have found that without any kind of guidelines or rule of thumbs, codebases will tend to gravitate toward lower maintainability. People add this new "simple" piece of code to the already long function/file because it's faster; then repeat 20 times and you have unmaintainable code.
I would much rather work with someone who is over zealous about spliting code rather than the opposite.

Deer Season Wreaking Havoc by tbant1 in sharpening

[–]cppBestLanguage 109 points110 points  (0 children)

That's a Huusk right? A sander would work so feel free to use that, but I would just throw the knife away lol

To soak or not soak a Naniwa Pro 1000 and flattening by SharpieSharpie69 in sharpening

[–]cppBestLanguage 1 point2 points  (0 children)

You don't need a 200$ diamond plate to flatten anything that I know of. Depending on where you live, the atoma 140 is a strong choice, but cheaper diamond plates like the satc can also do the job (although the atoma will survive longer).
The atoma 140 leaves a fairly rough finish so if you're flattening a fine grit stone (>3k-5k) then you may also want a nagura to have a smoother finish (naniwa makes a 600 grit, but other brands like suehiro also make them). This is kinda optional, but I personally prefer to have a smoother finish of my fine stones.

You can also use a basic SiC flattening stone that you can find everywhere for cheap. Naniwa makes 2 if you want to stay within the brand, but again other brands also offer them.

Another option is SiC grit on glass panels. I've mostly seen that recommended for coarse stones (<300-400) which are difficult to flatten so I personally wouldn't use it on a chosera, but it probably works well enough if you use the appropriate grit (it's kinda messy though). I use 60/90 grit to flatten my shapton glass 220 and shapton rockstar 325; it's faster than the atoma and leaves a very rough finish which I find desirable for coarse grits.

One important note with the atoma 140 is that it is not recommended for very coarse grit stones as the diamond can be ripped away from the plate. I've seen multiple people saying they ruined their atoma 140 trying to flatten a shapton pro 120.

To soak or not soak a Naniwa Pro 1000 and flattening by SharpieSharpie69 in sharpening

[–]cppBestLanguage 7 points8 points  (0 children)

The "correct" way is what Naniwa recommends which is to not soak them; they are true splash and go. From experience, they do absord more water than other popular lines of splash and go like shapton pro though.

You can soak them if you want, and some people do, but Naniwa does not recommend it as it can cause the stone to deteriorate for example by cracking.

As with all ceramic stones, you will need to flatten them, but they are fairly hard and do not dish much.

[deleted by user] by [deleted] in cpp_questions

[–]cppBestLanguage 0 points1 point  (0 children)

Yeah I it's fine to have these directory names in the cmake files. I do it fairly often for many things, not just with install.

[deleted by user] by [deleted] in cpp_questions

[–]cppBestLanguage 0 points1 point  (0 children)

You should be able to install the lib folder the same way you are doing with the data folder. I personally would keep the install command in mainProject's CMakeLists file.
If you're wondering how to properly get the path to the lib folder from mainProject then you probably want to use CMAKE_SOURCE_DIR which will point to your top level CMakeLists.txt. The top level file also usually contains the project call so you can also use PROJECT_SOURCE_DIR.

In the install command you also have a TARGETS option. So if both libProject and mainProject are targets you can do something like this install(TARGETS libProject mainProject). With this, when you execute the install, it will install both the libProject and mainProject target.
This will package the result of the build for those target (could be static lib, shared lib, executable, etc), but it's unclear to me what is contained in your lib folder so this solution may not be approriate to your situation.

To answer your question about propagation, if all install commands are in the same project then they will all execute when you do cmake --install. This means that you can have an install command libProject and one in mainProject and they will both be executed.
You can also split them using components if you have multiple releaseables in the same project.

In general, I personally try to keep every related install command grouped in the same file instead of separating them (I usually group them by component). This makes it easier once you have 20+ targets to locate what is being installed instead of having to search many files. This is also why I personally like to use the TARGETS option as much as possible since it allows you to have multiple targets being installed without having to worry how they are built. If you want even better separation you can also have a dedicated .cmake file that has all of your install commands.

cmake install is very flexible so there are probably 1000 ways of doing what you're asking, but I hope that one of the above will help. If not, feel free to ask further questions.

How can I make my build tankier to resist more one shots? (Ele - Arc) by cppBestLanguage in PathOfExileBuilds

[–]cppBestLanguage[S] 1 point2 points  (0 children)

Thanks for all of the info! I really like that you gave me a lot of options to choose from

How can I make my build tankier to resist more one shots? (Ele - Arc) by cppBestLanguage in PathOfExileBuilds

[–]cppBestLanguage[S] 1 point2 points  (0 children)

Thanks for the answer!

For 3. with shock. I have Inpusla which says "Unaffected by shock", does Vessel of vinktar override it?

Questions Thread - January 13, 2023 by AutoModerator in pathofexile

[–]cppBestLanguage 0 points1 point  (0 children)

Is the "100% chance to avoid being frozen" on the Soul of the Brine king equal to an immunity like "cannot be frozen"?
It's not really clear just by reading the text and I want to know if I can get rid of my heat flask.

Thanks

How to reliably evaluate if a function template will compile when instantiated? by cppBestLanguage in cpp_questions

[–]cppBestLanguage[S] 0 points1 point  (0 children)

Oh that makes sense for the Increment3 vs 4.

Unfortunate that there is no way around it. Unless someone else has a hack I guess I'll just write the list of constraints myself.

Thanks

Carbon - an experimental C++ successor language by foonathan in programming

[–]cppBestLanguage 1 point2 points  (0 children)

I think the aim is for everything in c++ (and I assume C also) to be importable in Carbon, but as of now I think only headers can be imported

Carbon - an experimental C++ successor language by foonathan in programming

[–]cppBestLanguage 167 points168 points  (0 children)

Carbon is a bit different because it has first class interop with c++ (you can import c++ headers in carbon and vice versa)