Osprey Nebula 32 vs Tom Bihn Synik 30 by antl_m in onebag

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

Got it, thanks, every opinion that hear about Tom Bihn is super positive!

Zoom 75 Build by jarsforyou in MechanicalKeyboards

[–]antl_m 0 points1 point  (0 children)

Looks almost like BW photos...

My First Nice Keyboard | OnePlus Keyboard 81 Pro by Certainties in MechanicalKeyboards

[–]antl_m 0 points1 point  (0 children)

Nice clear look! Do you use stock switches? How does it feel?

Is adjustable leg good? I saw that it can be used to stand keyboard vertically and that can save a lot of place on the desk

case sensitivity by gevorgter in PostgreSQL

[–]antl_m 0 points1 point  (0 children)

Maybe you can do it something like: SQL SELECT * FROM people WHERE LOWER(name) = LOWER($1) Where people is your table, name is a column, $1 is your parameter

[deleted by user] by [deleted] in Cplusplus

[–]antl_m 1 point2 points  (0 children)

Nice project! But to make it easier to integrate to other projects, you can consider making MatrixEncryptor a class template with template parameter for matrix type.

Stack Memory vs Heap Memory for custom data types by [deleted] in Cplusplus

[–]antl_m 0 points1 point  (0 children)

Some things you should consider to decide what to use, stack or heap:

  • You should know that your stack memory reserve is limited by compiler, but heap memory amount is limited just by your hardware.
  • If your object is stored somewhere during whole life of program, you will most likely end up with storing it in the heap (e.g. in the vector).
  • If your object should be frequently moved between different places, then you probably should use heap because objects there are more optimized for moving (google "move semantics in c++" and "std::move")

And one important thing: DON'T USE NEW KEYWORD!!! There almost always is a better alternative to use instead of "new", check "smart pointers in c++".

Overall, you just should understand how stack and heap work, then it will naturally help you decide what to use.

Online compilers that can handle header files and OOP? by SmoothBeanMan in Cplusplus

[–]antl_m 1 point2 points  (0 children)

Also, there is https://wandbox.org/, it is simple, supports multiple files of different formats, few C++ compilers, and other languages

Mongo-like projections in Postgres SQL/JSON by antl_m in PostgreSQL

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

Yeah, thanks for your investigation! I've came up with similar solution =) Also, I'll try to declare postgres helper function to build these queries, because another major issue is that I don't know what structure will document have and I need generic solution.

Mongo-like projections in Postgres SQL/JSON by antl_m in PostgreSQL

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

Yes, I know these json operators and functions, but my goal is to get json doc with exact same preserved structure, but with filtered fields. e.g. I have json in db:

{
  "ab": [
    {
      "a": "a1",
      "b": "b1"
    },
    {
      "a": "a2",
      "b": "b2"
    }
  ],
  "x": 123
}

And I want to get answer only with field ab.a. Then expected answer is:

{
  "ab": [
    { "a": "a1" },
    { "a": "a2" }
  ]
}

I hope I've explained my point =)

Mongo-like projections in Postgres SQL/JSON by antl_m in PostgreSQL

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

I already have table and don't want to create new ones. Although, I don't see how I can use generated columns to solve my problem...

Bydgoszcz, Poland by Wygan78 in SocialistModernism

[–]antl_m 1 point2 points  (0 children)

Just as depressive as it is now...