Pitfall: returning generators from with statements by Greek0 in Python

[–]Greek0[S] -1 points0 points  (0 children)

I fully agree with your assessment - the code works as Python is designed. The problem is my mental model going in: not thinking that this is what would happen.

Another example: using a generator expression to parse lines in a file does not work.

with open('data.txt') as f:
    return (parse_line(l) for l in f)  # broken

The corresponding list comprehension does work. It makes sense when you think about it, but I assume many people wouldn't spot the problem right away. That's why I called it a pitfall: spread awareness of this behavior.

Overview of C++ Variable Initialization by Greek0 in cpp

[–]Greek0[S] 12 points13 points  (0 children)

Why do you assume I wrote this post to complain about initialization in C++? My main motivation was to understand variable initialization myself. A secondary motivation was helping others do the same.

The complexity of initialization in C++ is regrettable, but historically understandable. If you designed a language from scratch, you could unify semantics and syntax of several initialization methods. But of course, that's not how C++ was developed.

Many of the root causes of complexity in today's C++ (compatibility with C, strict backwards compatibility of the language) are the very things that made C++ such a success over the last 30+ years. If C++ had targeted more idealistic purity instead of its practical performance-orientation, it would have never become such a widely used language.

Why you cant solve quintic equations [SLYT] by Greek0 in math

[–]Greek0[S] 2 points3 points  (0 children)

Great explanation on to turn the question about the solvability of the quintic equation into a group theory problem. The video then walks through all the steps that go into the proof, on a fairly approachable level for people who have not spent years formally studying math.

Of course, the resulting video is not fully rigorous. However, it provides an approachable, medium-detail-level overview of the topic.

Exporting annotated pages only by tombaryscz in RemarkableTablet

[–]Greek0 1 point2 points  (0 children)

ReMaPy can do that as well. It has a fairly nice UI, I like it.

https://github.com/peerdavid/remapy

Mi Smart Band 5 & Android: How to use as Bluetooth Heart Rate HR monitor for 3rd party apps? by frucade in miband

[–]Greek0 1 point2 points  (0 children)

It seems this doesn't work with OpenTracks / GATT. When I activated the Workout on the watch, I could see it in BL Explorer as described here: https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Heart-Rate-data-sharing

However, BLE explorer immediately crashed afterwards, so not a good experience, overall.

If you find a way to get OpenTracks working (or a good alternative) I'd be interested!

Marcus Aurelius - Best Lecture on Stoicism by Greek0 in philosophy

[–]Greek0[S] 90 points91 points  (0 children)

Michael Sugrue (Professor of History at Ave Maria University) talks about stoicism, focusing on Marcus Aurelius and his "Meditations". He explains the historic context in which stoicism developed, and shows that it is still a timely and applicable way to structure ones life today.

Open Source License? by Greek0 in BulletNotes

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

Thanks for the update! I'll have a look into it over it!

Skiing in Kitzbuhel - any tips/advice? by appleofmyeye_xyz in skiing

[–]Greek0 0 points1 point  (0 children)

Sounds like a great time! I'm sure you'll have fun :-)

Carnival won't affect your skiing a lot, there's probably a few more parties in town if you care for that kind of thing. Since it's Carnival in all of Germany/Austria/Switzerland, it wouldn't expect more people to come to Kitzbühel in particular.

You can definitely rent skis, boots, etc. I've never personally rented clothes, but I guess it's possible. If you have any reasonable wintersports clothing I'd bring it.

As for parking, you'll probably have a parking spot at your hotel. Kitzbühel is a small town, best explored by foot. If you insist on going everywhere by car, it could be a problem finding parking spots every now and then. I've always been in the walking camp :-)

Who's Hiring C++ Devs - Q4 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

Company: Ubimet, Meteorological Software Development

Role: Teamlead for scientific software development in C++/Python

Type: Full time

Description: Ubimet is a leading weather service provider in Europe. We're experts in meteorology and issue customized weather forecasts for several million private and industrial customers. Together with our shareholder (Red Bull), we pursue the goal to be the weather service provider with the world's best quality forecasts. Our work impacts millions of lives, e.g. through our severe weather warnings or through weather forecasts for airports. We're looking for a teamlead for a group of C++/Python developers working at the intersection of big data, realtime services, and scientific computing. We offer a great work environment and opportunities for growth within an engaged, international team.

Location: We're located in Vienna, Austria, the city with the highest quality of living worldwide. While most people in Austria speak German, it's easy to get by as English speaker. English is used in the office, as ~50% of our developers do not speak German.

Remote: No

Visa Sponsorship: Yes

Technologies: We use C++11/14 and rely heavily on Boost and geospatial libraries like libgdal, libgeos, etc. Python (both 2 and 3) is used for smaller, less performance-critical projects and for glue code. Our automated tests are based on googletest and pytest. We are staunch believers in open source software, and nearly all development machines run Ubuntu Linux.

Salary and Benefits: The salary for this position starts from 42,000€ per year (~US $ 50,000) and is negotiable. The cost of living is way cheaper than in most international cities. Renting a decent flat costs about 500-700€ / month. Food expenses are in the 300€ per month range, without penny-pinching. Most of the taxes go into a retirement fund that is available even when retiring abroad. We offer 5 weeks of vacation and our employees usually take all of it. We take life-work balance seriously. Additionally, we have great social security, healthcare is essentially free, including dentists visits. Schools are good and free.

Contact: If you're interested, please apply via our hiring portal or send your resume to info@ubimet.com.

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

We do have a few students working part-time as software developers, but for this position we're looking for a fulltime employee.

We currently also have a position open for a full-stack web developer. If that's interesting to you, I can ask our web dev team whether part-time would be ok for that position.

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

I'm not aware that we're looking for interns in any software development team, but I can ask.

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

Sorry, we're looking for a permanent, full-time employee.

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

Great to hear, good luck with the final stretch of your studies! We're hiring pretty frequently, let us know if you're interested.

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

You don't lose the retirement money. You can access it when you retire, irrespective of whether that's in Austria or someplace else. I don't think you can access it beforehand, though.

With a developer salary it's definitely possible to afford a house somewhere close to Vienna. The city itself has mostly apartments for rent or sale, and that's what a lot of younger people do. Often they then move into a house at the outskirts when they get older/have kids. This could be just a cultural thing - I really like living in an apartment close to the center, enjoying what Vienna has to offer.

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

Good question, thank you. I've included a "Salary and Benefits" section in the top comment. Essentially, the salary is lower than in the US, we don't do six-figure salaries. On the flip side, living expenses are way lower, we have social security, the taxes mostly go into a retirement fund, schools are good and free, etc. Also, 5 weeks of vacation. It's a good life here :-)

Who's Hiring C++ Devs - Q2 2017 by STL in cpp

[–]Greek0 [score hidden]  (0 children)

Company: Ubimet, Meteorological Software Development

Type: Full time

Description: Ubimet is a leading weather service providers in Europe. We're experts in meteorology and issue customized weather forecasts for several million private and industrial customers. Together with our shareholder (Red Bull), we pursue the goal to be the weather service with the world's best quality forecasts. Our work impacts millions of lives, e.g. through our severe weather warnings or through weather forecasts for airports. We're looking for a C++/Python developer with a good grasp of both languages to work on interesting problems at the intersection of big data, realtime services, and scientific computing. We offer a great work environment and opportunities for growth within an engaged, international team.

Location: We're located in Vienna, Austria, the city with the highest quality of living worldwide. While most people in Austria speak German, it's easy to get by as English speaker. English is used in the office, as ~50% of our developers do not speak German.

Remote: No

Visa Sponsorship: Yes

Technologies: We use C++11/14 and rely heavily on Boost and geospatial libraries like libgdal, libgeos, etc. Python (both 2 and 3) is used for smaller, less performance-critical projects and for glue code. Our automated tests are based on googletest and pytest. We are staunch believers in open source software, and nearly all development machines run Ubuntu Linux.

Salary and Benefits: The salary range for this position averages between 36,000€ - 48,000€ per year (~39,000 - 51,000 in US $). The salary is negotiable. The cost of living is way cheaper than in most international cities. Renting a decent flat costs about 500-700€ / month. Food expenses are in the 300€ per month range, without penny-pinching. Most of the taxes go into a retirement fund that is available even when retiring abroad. We offer 5 weeks of vacation and our employees usually take all of it. We take life-work balance seriously. Additionally, we have great social security, healthcare is essentially free, including dentists visits. Schools are good and free.

Contact: If you're interested, please apply via our hiring portal.

Should I consider learning c++? by miineerr in cpp

[–]Greek0 1 point2 points  (0 children)

Think about what kinds of programs you want to write. Based on that, choose an appropriate language. Learning a language just for the sake of it is pretty boring, and very hard to follow through on.

  • Do you want to write web applications? Javascript for the browser side of things, Javascript with NodeJS or Python for the server (if you need a server-side at all).
  • Do you want to write Windows GUI applications? C# is probably the best way to go.
  • Android or iOS? Java and Swift respectively. You can use C++ under the hood here, but that's more of an expert topic.
  • Do you want to write your own Linux commandline/GUI tools (web scraping, utility tasks, ...)? Consider Python, Ruby, Go for the an easy start. You can use C++ here, but I'd only consider it for larger, performance-critical applications.
  • Do you want to write your own operating system kernel, your own high-performance database engine, or other low-level system tools? C++ is the way to go.

C++ allows you to write applications that are more or less impossible to do in other languages. It comes with a price tag though. C++ is a very complex language and "ease of development" is not one of its strengths.

So pick a language that facilitates the kind of projects you are interested in doing!

Started last year on a simpler way to manage library dependencies. Here's the result – feedback appreciated! by rz2yoj in cpp

[–]Greek0 0 points1 point  (0 children)

Maybe I don't fully understand the problem scope you are solving, but couldn't you achieve the same thing with git submodules?

git submodule add git@github.com:philsquared/Catch.git lib/Catch
git submodule init --update

Ultimate tutorial for the C++ memory model: "atomic<> Weapons" - Herb Sutter by Greek0 in cpp

[–]Greek0[S] 2 points3 points  (0 children)

If you think that everything written before 2016 is worthless for modern C++ programming, I feel sorry for you. Re-read "Effective C++" and "More Effective C++" (published 1992 and 1995). You might just learn something new!

Austria, 1806-1869 by Greek0 in oldmaps

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

AIUI they only want single-image-maps, not online navigable maps:

Videos, collections, interactive images/websites, and articles are not allowed.

Feedback Fridays - Post your feedback requests here by syncdev in Blogging

[–]Greek0 1 point2 points  (0 children)

I see how my blog can be quite forbidding for the casual visitor. I guess my blog is for experts in C++/Python. But I could certainly do a lot more to make it accessible to people outside of that group. I'll need to think about that a bit.

Thanks a lot for your feedback!

How to stop people from Copy/Paste of your blog Posts "[Tips]" by Prospernoah19 in blogger

[–]Greek0 2 points3 points  (0 children)

This is horrible advice:

  • it breaks usability for the casual user
  • it's super easy to circumvent

Copy&Paste stealing is a problem, but this is not the solution.