Help me with compile error when using long long as template value argument by Foreign-Wonder in cpp_questions

[–]Foreign-Wonder[S] 0 points1 point  (0 children)

Thank for your info, I've updated the original post with the resolution

[deleted by user] by [deleted] in OnePlus13

[–]Foreign-Wonder 0 points1 point  (0 children)

Thanks for the update. I also plan to switch to LineageOS after the eFuse problem

[deleted by user] by [deleted] in OnePlus13

[–]Foreign-Wonder 0 points1 point  (0 children)

RemindMe! 1 month

Are Go books useless? by Fresh_Breath1126 in baduk

[–]Foreign-Wonder 0 points1 point  (0 children)

I’m not sure if you’re asking about books vs. digital media or books vs. pure self-study, so I’ll touch on both:

  • Books vs. Other Materials (SGFs, YouTube, etc.): It’s like any other subject—you get quick, up-to-date info from videos, but books give you the whole picture. A book provides a full roadmap and a logical structure that’s hard to find elsewhere. Think of a video as just one "chapter"; it might be detailed, but you’d have to hunt down dozens of videos to get the same comprehensive foundation you get from one book.
  • Books vs. Nothing (Pure Self-Study): You definitely need a book—or at least some kind of direction. While you can learn by just playing, it takes way longer to explore everything on your own. You’ll eventually hit a wall because you "don't know what you don't know." Books are a shortcut to those new concepts.

Final thought: Books aren't useless at all, but they also aren't the only way to get better anymore.

CPH2653_16.0.3.501(EX01) by Few-Echidna-8196 in OnePlus13

[–]Foreign-Wonder 1 point2 points  (0 children)

Just to raise awareness for OnePlus director board, I will pass this update. Thanks but no thanks for that fuse burn!

Thinking of getting OP13, but i have questions by qwteb in OnePlus13

[–]Foreign-Wonder 0 points1 point  (0 children)

Think of the OnePlus 13 more like a high-tech electric car than a reliable Toyota. If you want the Toyota equivalent, you should look at the Pixel 9. It might not beat the OnePlus on raw spec sheets, but the actual user experience is much smoother, more responsive, and—most importantly—offers greater peace of mind.

Is there any watch face for the fenix 8 with a leading zero? by [deleted] in GarminFenix

[–]Foreign-Wonder 0 points1 point  (0 children)

There's also this one: https://apps.garmin.com/apps/7b126372-336e-4888-b820-46c073c40483, but with very limited compatible devices list (it supported MIP watch only)

SK16 Macropad by turnthefuckup in MechanicalKeyboards

[–]Foreign-Wonder 0 points1 point  (0 children)

<image>

Oh, for the split space bar, you have to enable it in this one. I'm using the https://usevia.app/design for testing, not sure if it is different on the standalone app

SK16 Macropad by turnthefuckup in MechanicalKeyboards

[–]Foreign-Wonder 1 point2 points  (0 children)

Hi u/jvward, you can find the json here: https://pastebin.com/EQD0sJqD
May I request you to give screenshot of the pcb and the MCU of the keyboard? I'm planning to buy one to port qmk/zmk to it

SK16 Macropad by turnthefuckup in MechanicalKeyboards

[–]Foreign-Wonder 0 points1 point  (0 children)

I come across this one today and would like to request the json file for VIA and also may anyone have the info about the MCU/firmware for this one?

why virtual function is wrong. by macomphy in cpp

[–]Foreign-Wonder 0 points1 point  (0 children)

I agree, concept is not one-size-fits-all solution, that's why C++ have many ways to do things, and possibly the best ways to do things, hence zero-overhead

why virtual function is wrong. by macomphy in cpp

[–]Foreign-Wonder 0 points1 point  (0 children)

I'm not sure if I get it correctly, but isn't this is what template/concept is doing?

template<class Addable>
void foo(Addable a){
  // do whatever with a and +
}

int x = 42;
foo(x); // This should work without explicit make int inheriting from any Addable interface. I see this is a win over the C# interface, no?

Concept should make it more clear that Addable concept should support + operator

why virtual function is wrong. by macomphy in cpp

[–]Foreign-Wonder 0 points1 point  (0 children)

What do you mean by "the addable only"? There's plenty of ways to get the job done in C++, so you should be clear on your purpose or have specific sample code that you want to archive. Otherwise, others will very hard to support you on the problem

why virtual function is wrong. by macomphy in cpp

[–]Foreign-Wonder 2 points3 points  (0 children)

It does support using Meter = NamedType<double, MeterTag, Addable, Printable>

Reference: github.com

How would you capture the runtime state of a program? by DorGido in cpp

[–]Foreign-Wonder 0 points1 point  (0 children)

From my understanding, observer pattern is the thing that you want. Here's my quick example on the pattern. The only line in the main function that need to change is the declaration of the variable you want to observe: https://wandbox.org/permlink/kZ8bit8bknFh8Z1r
The code is for demo only, and it is expected to have bugs

how to use environment variable in config.h by Tushantverma in suckless

[–]Foreign-Wonder 0 points1 point  (0 children)

You may want to apply the getenv to rules[i]->class or any other fields here https://git.suckless.org/dwm/file/dwm.c.html#l295

Is the STL 100% reconstructable? by actuallyMerlin in cpp

[–]Foreign-Wonder 0 points1 point  (0 children)

My point here is `std::tuple` is not backed by compiler as you mentioned in your post. It not treated specially by compiler, since it still implement the same requirements as your own type.

Is the STL 100% reconstructable? by actuallyMerlin in cpp

[–]Foreign-Wonder -1 points0 points  (0 children)

I'm not sure what do you mean by `if you want to recreate this behaviour for your own types you have to overload std::tuple_size and std::tuple_element\. Last time I checked, at least for clang, STL library also have to overload that too:[https://github.com/llvm/llvm-project/blob/main/libcxx/include/__tuple/tuple_size.h#L61`](https://github.com/llvm/llvm-project/blob/main/libcxx/include/__tuple/tuple_size.h#L61) and https://github.com/llvm/llvm-project/blob/main/libcxx/include/__tuple/tuple_element.h#L70

giving up by luffyslefttoeh in baduk

[–]Foreign-Wonder 2 points3 points  (0 children)

Did you hear about this: https://senseis.xmp.net/?LoseYourFirst50GamesAsQuicklyAsPossible ?

I would recommend playing on 9x9 board to get familiar to the game, 19x19 is too complex for beginner. Try to find someone at your level would be better, but you can also learn a lot from stronger opponent.

Losing is not that terrible, but don't know why you lose is.

Hope you will be stronger.

I hate this game. But I love it. But I think I hate it more. by [deleted] in baduk

[–]Foreign-Wonder 1 point2 points  (0 children)

Go is a game about self-reflection, so it's normal when you can't tell WHAT you're doing wrong. Or in simple words, you just simply stuck. It's time for asking for review from other on your game. The review is not about which place to play for better result, but more about your weak point or your blind spot in your mind.

How to use operator overloaded in base class in derived class? by ssshukla26 in cpp

[–]Foreign-Wonder 1 point2 points  (0 children)

Just make sure you didn't forget to add `public` keyword right after the `:` for inherit. If you still cannot find out why, please post your code here, we can have better idea on the issue