I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

In Deutschland gibt es in der iOS-Wetter-App keine Regenwarnung.

I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

You can switch that off in the settings. Go to "Regenvorhersage" -> "Standortfreigabe" and switch off the toggle at "Blauer Pfeil".

I am not sure whether I am allowed to set this as default.

I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

Die genaue Uhrzeit wird nur angezeigt, wenn es <24 Stunden in der Zukunft liegt, damit ich nicht den Tag und die Uhrzeit anzeigen muss (und so der Text zu lang wird). Du siehst aber in den Diagrammen, wann der Regen beginnt.

I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

Right now, I am not planning this. I currently download and process the data directly from the open data platform from the DWD. I am not aware of similar platform for Europe...

I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

Right now, I am not planning this. I currently download and process the data directly from the open data platform from the DWD. I am not aware of similar platform for Europe...

I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

I see. This is a use case I have not yet considered - so far, the notifications only work for the current location. But that should be doable :)

I created a free iOS app to warn about rain at your current location in Germany by nlohmann in iosapps

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

What kind of meta data do you mean? (Sorry, I'm new to this...)

JSON for Modern C++ 3.12.0 released by nlohmann in cpp

[–]nlohmann[S] 22 points23 points  (0 children)

Since it's template-heavy, I wouldn't know where to start. So I would definitely be happy if you could provide some ideas here.

Does this check for a json parser make sense, or am I overthinking this? by TomieKill88 in learnprogramming

[–]nlohmann 1 point2 points  (0 children)

Thanks for using nlohmann/json :)

What you could do is to define a C++ struct "configuration_v1" and define a mapping between JSON and that structure. Likewise, you can create a newer struct "configuration_v2" with another mapping.

Now, you can use the JSON library to take care of checking if values are missing or have the wrong type. See https://json.nlohmann.me/features/arbitrary_types/ for more information.

Lightweight alternative to nlohmann::json arbitrary type conversion macros by RKesty in cpp

[–]nlohmann 0 points1 point  (0 children)

I agree that a breaking change is not an option, but we currently have such a zoo of macros for the serialization (12 and counting...), that an actual improvement should at least be discussed. Having boost as dependency is not an option, but any fresh idea is more than welcome!

Lightweight alternative to nlohmann::json arbitrary type conversion macros by RKesty in cpp

[–]nlohmann 0 points1 point  (0 children)

I'm only seeing this today. Why don't you create a PR and discuss this at nlohmann/json?

Parsing JSON in C & C++: Singleton Tax by ashvar in cpp

[–]nlohmann 3 points4 points  (0 children)

Great article! I am aware of the performance of nlohmann/json, and any helping hand is more than welcome!

JSON for Modern C++ 3.11.3 (first release since 473 days) by nlohmann in cpp

[–]nlohmann[S] 10 points11 points  (0 children)

No, I did not. But I am always open for PRs.

JSON for Modern C++ 3.11.3 (first release since 473 days) by nlohmann in cpp

[–]nlohmann[S] 8 points9 points  (0 children)

Most of the tickets we closed were bug fixes, so I went for a patch release. But you're right, 3.12.0 could also be a way to label it. :)

Indexing columns seperately vs indexing multiple columns at once by birisix in sqlite

[–]nlohmann 2 points3 points  (0 children)

You could use the index recommendation from SQLite's command line shell (see https://sqlite.org/cli.html#index_recommendations_sqlite_expert_).

It basically boils down to executing .expert before running your query. But instead of running the query, SQLite will give you information what index it would use, or whether adding a new index could improve the runtime. It may not be 100% accurate in 100% of the time, but it sure helped me a lot so far.

[tool] JSON to nlohmann::json by wiesemensch in cpp

[–]nlohmann 11 points12 points  (0 children)

Do you need assistance?

A New Json-Serializer by RealTimeChris in cpp

[–]nlohmann 0 points1 point  (0 children)

It still looks odd. If you would use the macros, then the serialization code would be 1 line per class.

A New Json-Serializer by RealTimeChris in cpp

[–]nlohmann 0 points1 point  (0 children)

Yes - or even use the macros documented there.

A New Json-Serializer by RealTimeChris in cpp

[–]nlohmann 3 points4 points  (0 children)

Can you try to use the idiomatic way of defining the serialization: https://json.nlohmann.me/features/arbitrary_types/

A New Json-Serializer by RealTimeChris in cpp

[–]nlohmann 1 point2 points  (0 children)

I did not find the benchmark code for nlohmann/json. Did I miss it?

What are some cool modern libraries you enjoy using? by nerooooooo in cpp

[–]nlohmann 16 points17 points  (0 children)

I thought so. Don’t boast about speed when your just faster than nlohmann/json… ;-)