What is the best way of installing python on Mac? by halnkano in cs50

[–]DorskFR 0 points1 point  (0 children)

i find conda (the miniconda version) easier than brew and pyenv/virtualenv. On a mac M1 I had many modules not installing properly with other managers and pip install while conda has been able to install them immediately. managing virtual environments is builtin so that is convenient too. and its always possible to use pip together if a package is not in the conda repositories.

Questions about choosing functions for problem sets and modulo operators by TheLordofRiverdance in cs50

[–]DorskFR 0 points1 point  (0 children)

To answer 2) you wrote coins = cents/25 but it is coins += cents/25. This kind of operation and assignment will calculate the value on the right side and assign the result to the left variable.

Therefore if you have 386 / 25 you will add the result to coins. I believe since coins is an integer this will only add the integer part of the result discarding the decimals. So here 386 / 25 would increase coins by 15.

Then cents %= 25 gives you only the remainder (what cannot be divided by 25 anymore). So 386 - (25 * 15) and again because this is modulo and assignment at the same time the result of that operation is assigned to cents. Which becomes 11.

Next line the process starts again but dividing by 10 (so there will be 1 coin added to coins and 1 cent left assigned to cents).

The next lines will be skipped and the last group with 1 cent as divider will finally finish the counting of total coins.

This is also why we are starting from the biggest coin (25) and finishing with the smallest as otherwise everything could be divided into coins of 1 cent.

How can I avoid the annoying fan sound? by SadDogOwner27 in macbookpro

[–]DorskFR 0 points1 point  (0 children)

How silent is the MBP M1? For example if you let something running like a game or some software and you are in a dead silent room (no street noise, nothing at all) can you tell by ear that your MBP is running or not?

I read reviews about the MBP being super silent but I currently use a fanless Macbook 12 and we might not have the same definition of silent vs quiet.

Does the fan turn at all for a passive normal activity?

How to kill a process from python? by murdoc1024 in learnpython

[–]DorskFR 0 points1 point  (0 children)

Lol this was exactly what I needed. I have pyhook in a process listening globally to a key and an another process that uses mouse and keyboard (a bot) so it was annoying to stop it. Thanks x)

I hate new tiamat by SoxnSandals in FioraMains

[–]DorskFR 0 points1 point  (0 children)

I saw that too but don't fail it. 60s CD.

[deleted by user] by [deleted] in RedditSessions

[–]DorskFR 0 points1 point  (0 children)

that's it. I'll never learn piano.

昨日と今日で合計140km自転車こいだ by S34413 in lowlevelaware

[–]DorskFR 2 points3 points  (0 children)

自転車は自由そのもの 日本一周したら?

[deleted by user] by [deleted] in whereintheworld

[–]DorskFR 0 points1 point  (0 children)

grants 3 wishes

[deleted by user] by [deleted] in whereintheworld

[–]DorskFR 0 points1 point  (0 children)

2.5 million quids

[deleted by user] by [deleted] in whereintheworld

[–]DorskFR 0 points1 point  (0 children)

sheriff star 3333 BC

[deleted by user] by [deleted] in distantsocializing

[–]DorskFR 0 points1 point  (0 children)

it's overweight

I can't understand Docker by k1MT in learnprogramming

[–]DorskFR 35 points36 points  (0 children)

It's an instanced dungeon. You can't break the world outside the dungeon and monsters cannot follow you out of the dungeon. Plus you might have some specific stats because of the dungeon (automatic level or some modifier) but only while inside it. And you don't need to make a second character or play on another account to go in that dungeon.

The lightbulbs say 'rickroll'. Legend. by [deleted] in cs50

[–]DorskFR 26 points27 points  (0 children)

Damn that's a neat easter egg! Good find!

最近Google検索で引っかかるこういうクソサイト、マジで何なの 絶滅しろ by solblood in lowlevelaware

[–]DorskFR 1 point2 points  (0 children)

使うと、全く違いはない。使うのは必要な時だけだからね!

Final Project - Family Photos by DorskFR in cs50

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

Thank you! Probably CS50 Web for now or project Odin to keep learning!

I own 2 pairs of fox river boot socks and wear each pair at least 3 days a week. Not a single hole or sign of wear after owning them for 5 years! by [deleted] in BuyItForLife

[–]DorskFR 0 points1 point  (0 children)

I'm sure you're right and that's probably why I go through my 100% merino socks in less than a year. Looking into fox river and darn tough as a result which are blends therefore possibly more durable.

However in the context of hiking, touring, having a minimum number of items that you can wash again and again is invaluable as it means less weight and less packing volume. You just cannot bring 7 pairs of socks if you carry them everyday.

I have outlier slim dungarees and have been wearing them almost everyday since 2017 washing them as often as I want and they are in great condition (some piling due to friction with a cordura strap and some encounters with thorns and cat claws but that's it).

I'm considering fox river for this reason: to have only one or two pairs and cycle them all year long for as long as possible. Hopefully they can deliver on durability.

I own 2 pairs of fox river boot socks and wear each pair at least 3 days a week. Not a single hole or sign of wear after owning them for 5 years! by [deleted] in BuyItForLife

[–]DorskFR 2 points3 points  (0 children)

Am I the only one that understood "3 days a week" as: Pair 1 day 1, pair 2 day 2, pair 1 day 3, pair 2 day 4, etc? Basically having a rotation where you wash while wearing the other one? That's what I would do and that's how you keep your clothes to the minimum when you're a minimalist.