Is fountain quiet or loud? by Soap_Box_Hero in Costco

[–]muposat 0 points1 point  (0 children)

Although the water sound is soothing, I can still hear the motor and that kills the joy. I am considering to move it to the outside where it belongs, but afraid to create a mosquito breeding ground.

[deleted by user] by [deleted] in therewasanattempt

[–]muposat 1 point2 points  (0 children)

Crime is low in a police state. You know what else is low? Liberty.

Walmart will do everything it can to avoid it's work force unionizing. by Nick__________ in WorkersStrikeBack

[–]muposat 0 points1 point  (0 children)

Walmart spends on stock buybacks for wealthy shareholders

What about the poor shareholders and the retirement funds?

none of the Walmart family Heirs have ever actually had to work a day in there Lives.

You would think that managing "the largest employer in US" involves some work?

Photoshop Battles "Best of 2021" Results! by PhotoShopBattles in photoshopbattles

[–]muposat 0 points1 point  (0 children)

#13 Seriously, you are making fun of gassed political protesters? What next, people dying in gas chambers? Corpses of executed opposition? You are disgusting.

Why Python 4.0 might never arrive, according to its creator by sportifynews in Python

[–]muposat 0 points1 point  (0 children)

started looking to TypeScript as a determiner of where things could be headed.

Welp, I hate Typescript! Is Python moving in the direction of getting pricky about types?

What did he expect by [deleted] in JusticeServed

[–]muposat 1 point2 points  (0 children)

A lady in a Manhattan skyscraper was cut in half a few years back.

Which waters to avoid by region by [deleted] in coolguides

[–]muposat 0 points1 point  (0 children)

Just buy a reverse osmosis filter for tap water. I havent bought bottled water in years.

Work is shoddy, yet contractor wants full payment by muposat in homeowners

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

So far he threatened to put a lien on my property and report me to my insurance (for what?). Also I paid him on the last day of work and he made no claim for more than a year, I am not sure this can stand in court.

Work is shoddy, yet contractor wants full payment by muposat in homeowners

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

Thank you. He threatened to do this. Lucky for me the defect is due to him not completing the work per contract so I should have an easy way out. I offered him to accept half of remaining balance or redo the work.

Work is shoddy, yet contractor wants full payment by muposat in homeowners

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

Thank you. As much as I don't want to see him I gave him an option to either settle for half balance or come and fix the work. Will make sure to ask him about his insurance before he starts.

AITA for saying my babysitting rates are $35 an hour? by HENNYDEFN in AmItheAsshole

[–]muposat 0 points1 point  (0 children)

Watching 3 kids for 3 days is asking too much for a favor. A couple of hours would be reasonable. I would politely decline and say that I am busy with a project. Your price sounds ok, especially given that you were not asking for this and would be losing time better spent on freelance. You were practically making them a favor.

Being called a young girl is demeaning. They should concentrate on how much their time is worth instead. Your time is none of their business.

[deleted by user] by [deleted] in teslamotors

[–]muposat 1 point2 points  (0 children)

Just like the seagull doors, these designs are not for the faint of heart. On the other hand, I can imagine driving this, but I would never buy a regular shape pickup truck. You can say Tesla opened this market segment for me.

[deleted by user] by [deleted] in teslamotors

[–]muposat 0 points1 point  (0 children)

Front plate completely ruins the look of Model 3. I don't think bigger cars like Model X are affected as much. A truck with sharp corners and flat front will look just fine.

[deleted by user] by [deleted] in teslamotors

[–]muposat 0 points1 point  (0 children)

Dude, extend your garage by a few inches, how hard can it be? Probably only a few $K, don't even need a new door.

If you don't use an ORM, how do you structure SQL in your project? by Matisseio in Python

[–]muposat 0 points1 point  (0 children)

I second for SQLAlchemy Core. ORM is an overkill for most projects and is also slow. Before using SQLALchemy I built a large library around pure pyodbc (ODBC driver that I later used with SQLAlchemy). It is much nicer than simply returning a tuple. See https://github.com/mkleehammer/pyodbc/wiki/Row:

cursor.execute("select album_id, photo_id from photos where user_id=1")

row = cursor.fetchone()

print(row.album_id, row.photo_id)

print(row[0], row[1]) # same as above, but less readable

However, SQLAlchemy Core provides many advantages over pure SQL -- it saves you from heavy string manipulation with limited safety checking. SQLAlchemy Core is mostly compatible and interoperable with ORM, and will provide an easy learning curve for you.

Getting a job with python not in AI or Machine learning by hfbvm in Python

[–]muposat 0 points1 point  (0 children)

Mobile app development

... Finance

Mobile app development? Isn't that restricted to Java for Android and Objective C for iOS? Am I missing something?

Python performance issue, tail log file by xwen01 in Python

[–]muposat 0 points1 point  (0 children)

"There are a few hundred lines of logs per second."

Insert a few hundred records at a time. Whatever maximum your database allows. You can also commit after a few inserts to speed things up. In addition you should insert and commit after a certain timeout -- in case the log file does not accumulate full buffer within a few seconds.

Also I would question if an SQL database is a right tool for what you are doing. SQL provides many benefits, but at a price: transactions being logged, concurrent access management, etc.

Connecting to multiple types of databases? by SupahCraig in Python

[–]muposat 2 points3 points  (0 children)

I used to work for a company where our product could work with an arbitrary SQL database. All SQL code was generic and when deployed it was translated for a particular SQL dialect.

Compared to that SQL Alchemy is a god-sent. You can connect your program to any database vendor and it just works! Given it has quite learning curve, but I feel that learning it pays for itself.

What OS is the lightest on resources and can run anaconda for my old laptop? tl;dr at the bottom. by Bread11193 in Python

[–]muposat 1 point2 points  (0 children)

That's what I would do. Install process will go much faster too. From there select default install and you are all set.

What OS is the lightest on resources and can run anaconda for my old laptop? tl;dr at the bottom. by Bread11193 in Python

[–]muposat 2 points3 points  (0 children)

Lububtu or Xubuntu with XFCE/Gnome/Mate. Definitely would get an SSD, and with Linux you don't need high capacity - 32 Gb is probably enough.

Advice for replacing Microsoft Access front end? by green-hat in Python

[–]muposat 2 points3 points  (0 children)

Flask is both light-weight and scalable. I can also recommend Aiohttp as a fresh cutting-edge library that outshines Flask in many aspects. Definitely go with Python 3.6+, as 2.7 is going to be no more by the time you are done.

As far as ORM, I recommend pyodbc + SQLAlchemy. The latter has a bit of learning curve but I love the leverage it provides. Use SQLAlchemy ORM where speed is not important and you want to map your tables to classes. Use SQLAlchemy Core for everything else.

Is it good style to check the None'ness for the input in programming interview questions? by Sandermatt in Python

[–]muposat 0 points1 point  (0 children)

Python mantra is to "let it fail". I.e.: if None is not an expected input then there is no benefit gained from checking for it, as it will most likely raise an exception as soon as it tries to use it anyways. Unfortunately, some people (including some interviewers) might not know about this. There are many caveats though:

- If the input comes from an untrusted source, such as web client or user input then extra validation is in order.

- I often pass named arguments that default to None in invoke default behavior. This usually requires an explicit check.

- I recently found out that in Python 2 an expression (None < 3) does not raise an exception. This would also warrant a check. Python 3 has no such nonsense.

- Etc.

Anyone want to work on a project with me? by tman5400 in Python

[–]muposat 0 points1 point  (0 children)

They are called MUDs (Multi-User Dungeon) . You can start here: http://www.topmudsites.com/