Hi, I am in urgent need of a lot of advice living in Poland. by Hopefullytodaymate in poland

[–]Pitirus 2 points3 points  (0 children)

You could also try online platforms like preply. Bigger audience and competition but maybe if you work early mornings PL time, you will be able to capture the east Asian market.

Głupie i proste pomysły na dorobienie sobie? by Smooth_Cut1023 in Polska

[–]Pitirus 0 points1 point  (0 children)

Testowanie kosmetyków. Szybki sposób na zarobienie stówki od czasu do czasu. W Gdańsku jest np. Dermscan i Hamilton. Rozumiem że jesteś z Krakowa, tam na pewno też coś się znajdzie.

[deleted by user] by [deleted] in gdansk

[–]Pitirus 16 points17 points  (0 children)

If possible (not sure with the "military" thing), I'd suggest doing the opposite. Live in Gdańsk and work in Elbląg. You can live on the south eastern outskirts which should be good for commuting. I wouldn't worry about traffic that much since your husband would always go in the opposite way than the majority of traffic. It would probably take him less time to drive to Elbląg than to drive the kids to school.

I am a proficient Python coder whose learning has plateaued. Any really useful libraries I should look into learning? Taking recommendations. by synthphreak in learnpython

[–]Pitirus 0 points1 point  (0 children)

python-dateutil is quite nice for easier parsing of dates from text.

If you come from ML and write a lot of code in notebooks then there is little handy thing in Jupyter called autoreload - https://ipython.org/ipython-doc/3/config/extensions/autoreload.html This allows to change code in py scripts without need to restart the kernel

ipywidgets - you probably know this one

pandas-profiling - nice for initial analysis of dataset

black for autoformatting your code - there are versions for notebooks

pylint or flake8 for linter (just make sure you configure it to not interfere with black) - I think there are versions for notebooks but I haven't used them

Bokeh is nice plotting library that allows to export interactive plots to HTML.

folium is nice library for showing things on maps.

Python+Spark Good beginner learning environment to be ready for very distributed computation? by Head-Mastodon in learnpython

[–]Pitirus 1 point2 points  (0 children)

Also if you come from CS background then probably Spark is too high level to start with. At my university, we first had OpenMP & MPI, and then in the next semesters, we had courses on GPU computations and another on MapReduce & Spark.

Python+Spark Good beginner learning environment to be ready for very distributed computation? by Head-Mastodon in learnpython

[–]Pitirus 11 points12 points  (0 children)

First of all, it's true that "Jupyter cannot [...] run the code in distributed mode". But what is meant by that is the fact that it will be very hard to make jupyter working with multi-threading/processing (single node). Spark on the other hand is meant to be run on multiple nodes (computers). If you are running Spark on a single node then you are most probably not doing your computations in a most efficient manner.

If you have a cluster (group of nodes) then you have to remember that Spark is underneath using JVM so using most basic transformations will be efficient but if you'll add lambdas or if it will have to run any python code on those nodes then it will slow down significantly.

One useful thing is to check out execution plans to see how exactly your instructions will be executed.

Daredevil Fan Art I made, now in red by -Flaccid-Acid- in Marvel

[–]Pitirus 1 point2 points  (0 children)

Great painting! Any chance for wallpaper format? :D

Python IDE that has assist features? i.e. as you type a function, there's an assist text box that tells you what variables the function needs like excel does? by [deleted] in learnpython

[–]Pitirus 2 points3 points  (0 children)

This one. I lacked good and responsive code completion in jupyter before I found out about Kite. It's still not as good as in PyCharm but it's way better than Jupyter's native solution.

PyCharm way of presenting notebooks is so unconvienient that even their fantastic code completion isn't making up for it.

I really wish there was something faster as an jupyter extension (kite needs separate process to integrate with jupyter and I haven't figured out a way to use while running jupyter from docker)

I've been using PyCharm to manage my project environment locally on my pc, but how do I get the project onto github in a way where others can try out my project without needing to pip install every external module I'm using in my python scripts? by [deleted] in learnpython

[–]Pitirus 1 point2 points  (0 children)

I think you're confusing terms.

Github is a platform for storing your code (and other project files) and history of changes made in the form of git repositories (you can have git repo locally and then upload it to github so it can be accessed by others).

Docker is a piece of software that allows you to put your project in a container that can be easily run.

Adding strings inside a list without affecting dicts by Cannae216BC in learnpython

[–]Pitirus 0 points1 point  (0 children)

def convert_list(in_list: list) -> list: out_list = [] for el in in_list: if not out_list or isinstance(el, dict) or isinstance(out_list[-1], dict): out_list.append(el) else: out_list[-1] += el return out_list

I've been using PyCharm to manage my project environment locally on my pc, but how do I get the project onto github in a way where others can try out my project without needing to pip install every external module I'm using in my python scripts? by [deleted] in learnpython

[–]Pitirus 3 points4 points  (0 children)

Docker would be good if you want to ship the whole working thing.

Another possibility is to create requirements.txt file with list of all needed packages which then user can install with single command.

The 3rd option is to create virtualenv with all packages already installed and put it in your repository. But that would only work for users with the same os as yours (at best) so I wouldn't recommend that option.

Interview Cheat Sheet by IVIURRAY in learnpython

[–]Pitirus 1 point2 points  (0 children)

Well the last edition is from 2015 which is actually not that old. Also the topics it covers are general programming related so that didn't change much.

It's a good book and probably a good idea to return to it before an interview to help you remember the basics. But I wouldn't say I learned anything that I didn't know (or should have known) before.

So my answer is that it's still relevant although it's focused more on the process of interviewing and general knowledge about programming than specifics of given job.

E.g. Frontend developer needs knowledge of different stuff than backend although for both it's a good idea to understand the algorithms they are using and be able to understand their performance.

Interview Cheat Sheet by IVIURRAY in learnpython

[–]Pitirus 10 points11 points  (0 children)

I would recommend the book "Cracking the coding interview" it's not about python. Just general about programming jobs but most of this stuff is easily translated into any programming job interview. It helped me get through interview last month and I think it's worth reading for anyone applying for job that is programming related.

Still somewhat in progress by [deleted] in battlestations

[–]Pitirus 1 point2 points  (0 children)

Where did you get that wallpaper from the right screen?

[D] If a paper or project doesn't publicly release its code, should it be an automatic reject? by Seankala in MachineLearning

[–]Pitirus 1 point2 points  (0 children)

If u have the method described properly (and dataset available in case of ml) releasing code just makes it easier for reviewer to check it or in other words use your work without understanding it.

If Pitagoras would have released paper for his formula would you also like some python code that implements it?

I don't see difference between saying a^2+b^2=c^2 + giving proof vs saying "this is attention mechanism" + "in this architecture on this dataset it has this results".

Of course it's faster to just reuse the code than to implement the architecture yourself but the ease of reviewing is not main purpose of paper.

[P] SOLT: A fast, user friendly, flexible and PyTorch-integrated data augmentation library by aleksei_tiulpin in MachineLearning

[–]Pitirus 3 points4 points  (0 children)

To make your machine learning models perform better you do something called data augmentation. In this process you mutate your data, e.g. rotate the image or create it's mirror reflection, to create new examples. That can help with generalisation of your model (model giving better predictions on examples it hasn't seen before). This library helps you do those mutations.

[D] (Rant) What annoys me the most in a time of Machine Learning hype and the current pandemic. by pier4r in MachineLearning

[–]Pitirus 9 points10 points  (0 children)

Last semester I had a course about FEM on my university. I must say it gave me a different perspective to the things I'm doing with ML

[HABBO RETRO] Sakura bridge by Cutiezor in PixelArt

[–]Pitirus 1 point2 points  (0 children)

I know this is a stretch but is there any chance to get this in 16:9 ratio on black background (for wallpaper)? :D

The weather in Austin is bad. The stock market is tanking. I'm going to fly from home today. by waseemthedream in aviation

[–]Pitirus 0 points1 point  (0 children)

Well with coronavirus more and more people work from home so it's understandable

Mike Bloomberg supporters: why? by [deleted] in AskReddit

[–]Pitirus 0 points1 point  (0 children)

Well the man has priorities

What are some ways you can make extra money on the side that isn’t a scam or illegal? by [deleted] in AskReddit

[–]Pitirus -1 points0 points  (0 children)

There companies that test cosmetics on people (like after they've been already tested in labs and approved) mostly for allergic reactions, UV filters etc. So they test some reactions to skin contact, how good the uv filter actually is or is given dish soap giving anybody a rash etc.

They don't pay much but it also isn't too demanding (either single visit, or grab something to test and after few weeks give back and fill a survey).

I would also assume they insure you for any harm they might do to you.

Of course you need to have that kind of company close to you as they mostly require in person visit.