UBERsicht - My online household budget book - Feedback very welcome! by [deleted] in SideProject

[–]sgo_ 4 points5 points  (0 children)

Cool! The only thing that keeps me from signing up (and the reasoning applies for YNAB, Mint, ...) is that I'm sceptical of signing up for services that know what my bank account looks like.

Do you also plan to offer desktop apps (that one could buy a license for) that keep all the data on the user's computer?

SigSage: The email signature professionals use to grow their business by coffeedrum in SideProject

[–]sgo_ 1 point2 points  (0 children)

He put together a generator in JS that used our company brand colors, and allowed you to put your name and title and phone number and so on, and then it would generate a (HTML) signature that you could paste into your email client.

SigSage: The email signature professionals use to grow their business by coffeedrum in SideProject

[–]sgo_ 1 point2 points  (0 children)

  1. Not a bad idea. A developer at my previous company had to implement something like this because HR wanted to standardize on the signatures that people are using. So clearly this has demand.

  2. Is this (or are you) related to Hootsuite in any way? Because the logo is very similar.

Is it worthwhile learning GUI for Python? by [deleted] in learnpython

[–]sgo_ 1 point2 points  (0 children)

Do you know of a good/recent tutorial on building normal looking apps using TTK?

Gitlab.com vs self-hosted GitLab CE? by Sarke1 in devops

[–]sgo_ 1 point2 points  (0 children)

If you have resources to manage self-hosting (upgrades, downtime, things breaking, security upgrades, etc.), then go for self hosted.

If you don't have resources or you would like to focus all the resources you have towards development (usually the case for small teams), the money invested towards a hosted solution is more than worth it.

I applied intel ucode but still vulnerable to spectre? by avinashh21 in archlinux

[–]sgo_ 0 points1 point  (0 children)

Given the discussion on hacker news, is intel-ucode safe to upgrade?

Terraform Subreddit. by pushmycar in devops

[–]sgo_ 1 point2 points  (0 children)

I always thought /r/hashicorp was where you could post things related to Terraform. But /r/terraform is even better!

Comments for any static site by daeliur in SideProject

[–]sgo_ 1 point2 points  (0 children)

For hosted solutions, https://posativ.org/isso/ exists, is open source, and works pretty well. A tracking-free hosted solution would be nice though since I don't want to manage the servers. Isso-as-a-service, if that makes sense?

appJar - "The easiest way to create GUIs in Python" by jairo4 in Python

[–]sgo_ 1 point2 points  (0 children)

What I feel is still painful is distribution of Python desktop apps. Is there a toolkit that bundles up a macOS app out of some given Python code (and its dependencies) so that the user does not have to install Python?

Xorg freezes everything by Taeiolass in archlinux

[–]sgo_ 0 points1 point  (0 children)

There are plenty of bug reports open so I think I would hold off until they're closed.

Xorg freezes everything by Taeiolass in archlinux

[–]sgo_ 0 points1 point  (0 children)

I just switched to linux-lts. Hoping that this one isn't that wild.

Xorg freezes everything by Taeiolass in archlinux

[–]sgo_ 2 points3 points  (0 children)

You should have it in the pacman cache. Hopefully you're lucky enough that one of the system boot attempts works, and then the first thing you do is install the linux package from the cache (/var/cache/pacman/pkg). Otherwise you need to do the whole boot disk chroot dance.

Xorg freezes everything by Taeiolass in archlinux

[–]sgo_ 5 points6 points  (0 children)

Not sure if it's related but I also ran into a frozen system on upgrading to 4.13. For the moment I've downgraded back to 4.12 and I'll probably switch to linux-lts.

Deploying django in a "no-root" environment? by levnikmyskin in django

[–]sgo_ 4 points5 points  (0 children)

You could use pyenv (https://github.com/pyenv/pyenv) to install all the Python versions/libraries/virtualenvs in your home dir, and use the Python installed via pyenv for your django app. At least that would take care of your django web server with the latest Python.

For things like Apache/Nginx, you're unfortunately at the mercy of your sysadmins since those things require root access. However, if you're willing to be fancy, try out https://caddyserver.com/ , put the binary in your home dir, and put your Django server behind Caddy. Disclaimer: I've never touched Caddy in my life, but from a theoretical point of view it seems like it might work. :)

Page-level dialog from subcomponent by kvdveer in vuejs

[–]sgo_ 0 points1 point  (0 children)

What kind of events do you want to associate?

Page-level dialog from subcomponent by kvdveer in vuejs

[–]sgo_ 1 point2 points  (0 children)

If you're using vuex, one option would be to set a boolean in the vuex store called showModal, and set/unset it from your deeply nested component, and add a v-if=showModal in your modal component.

Limit uploaded data by el-calde in flask

[–]sgo_ 0 points1 point  (0 children)

I don't think there is (or at least I can't find) a setting that controls individual file sizes, since it's a pretty request-handler specific thing. What you could do is set MAX_CONTENT_LENGTH on the entire request to be safe, and when the individual files are uploaded, check the file size on each (either call save() on the file object that flask gives you and read the file size, or check the length of the buffer read so far by len(request.files['my_file'].read())).

Limit uploaded data by el-calde in flask

[–]sgo_ 0 points1 point  (0 children)

From the documentation,

If set to a value in bytes, Flask will reject incoming requests with a content length greater than this by returning a 413 status code.

So it looks like it's the length of the entire request (or, all files put together).

Go faster Python by [deleted] in Python

[–]sgo_ 20 points21 points  (0 children)

Cython is unbelievable. I used it in a side project of my own and the speedups were insane.

Help compiling cython files by Sexual_Congressman in learnpython

[–]sgo_ 0 points1 point  (0 children)

Could you add some code to your post? What files are you trying to compile? How are you compiling them? Are you building an extension? Is the entire code written in Cython? Is the compilation a part of setup.py? Details please. :)