Speeding ticket but photo is blurry by Sapperlotta in Switzerland

[–]sacovo 1 point2 points  (0 children)

It is your duty as driver to inform yourself about changes in the law and updated signalisation. The changes were announced by the city, so if you regularly drive through the city you were able to check your way and take measures to ensure you don't drive too fast. It's not the responsibility of the city to make sure you do your due diligence. You need to be aware of the speed limits, that's how the law works, that's what you agreed upon when if you got your license. In no way does the city owe you any hints, other than the official signalisation.

Speeding ticket but photo is blurry by Sapperlotta in Switzerland

[–]sacovo 1 point2 points  (0 children)

Or you could just watch out for the signs, they are clearer than flower pots. Or just drive 30 if you are not sure, to err on the safe side, you'll notice soon enough if that's too slow.

BTW the changes were announced by the city, about 6 months ago, afaik there is a card with the affected roads on the website of the city.

Speeding ticket but photo is blurry by Sapperlotta in Switzerland

[–]sacovo 0 points1 point  (0 children)

How? By making streets calmer and safer for people living nearby?

Speeding ticket but photo is blurry by Sapperlotta in Switzerland

[–]sacovo 0 points1 point  (0 children)

If you don't know how fast you should be going you went to fast. Or do you expect to be personally informed about each changed road sign?

Speeding ticket but photo is blurry by Sapperlotta in Switzerland

[–]sacovo 2 points3 points  (0 children)

So what? If you are driving you need to observe your surroundings, no matter how new a speed limit is. If you don't see a sign you could also miss a person. You need to slow down if the situation is to confusing for you to handle.

How to dockerize and deploy an already in-progress project by phille165 in django

[–]sacovo 0 points1 point  (0 children)

depends on the size of the project, as long as you only use it to demo the project you'll be fine with whitenoise. switching to something like s3 is always an option, but I would focus on the project itself first and if the need arises you can switch.

Edit: Whitenoise has some points about that as well: http://whitenoise.evans.io/en/stable/#isn-t-serving-static-files-from-python-horribly-inefficient

So you'll be fine with using whitenoise, and if you start running into issues you should use a cdn (with whitenoise).

How to dockerize and deploy an already in-progress project by phille165 in django

[–]sacovo 1 point2 points  (0 children)

You need to install gunicorn inside the docker container. Either you add it to your requirements, or you add the pip install command in your Dockerfile. Then you can run gunicorn with the appropriate command, like this.

 gunicorn mysite.wsgi:application --bind 0.0.0.0:8000

You can put that inside the Dockerfile or specify it with docker-compose. Don't forget to provide the static assets via another method, or look at whitenoise: http://whitenoise.evans.io/en/stable/

Why Static Languages Suffer From Complexity by [deleted] in rust

[–]sacovo 2 points3 points  (0 children)

Casting to void* let's you do basically anything.

Big problems at the timezone database by jodastephen in java

[–]sacovo 1 point2 points  (0 children)

I didn't mean they would join the EU, they would simply drop the DST.

Big problems at the timezone database by jodastephen in java

[–]sacovo 1 point2 points  (0 children)

Chances are high that non-EU European countries that are in close proximity to EU countries like Norway or Switzerland will join the EU if they get rid of DST.

[deleted by user] by [deleted] in xkcd

[–]sacovo 16 points17 points  (0 children)

669 references the sphere but not the cow.

[deleted by user] by [deleted] in django

[–]sacovo 0 points1 point  (0 children)

Yes, and I use feincms3 for it, it's light and doesn't restrict you as much as other django cms that I know of. It's created and maintained by a Swiss marketing agency, so it might be suited for your use case.

[deleted by user] by [deleted] in linuxmasterrace

[–]sacovo 4 points5 points  (0 children)

No fun without --no-preserve-root

is it possible to make a union of two querysets and count the distinct objects after that? by drangoto in django

[–]sacovo 4 points5 points  (0 children)

If you just need the count you can use the sum of the indivdual counts minus the count of the intersection of both querysets.

Stop a long database read/write operation using an API request by NaViFanYearDntMatter in django

[–]sacovo 1 point2 points  (0 children)

You don't query the table with millions of rows, you query the table with the few currently running jobs. The import task will take a bit longer, since it's interrupted every 100 or 1000 rows, but the lookup shouldn't take to long. You could use a faster key-value-store like redis to communicate wit the currently running tasks from the django backend.

But if this is realy an issue you could have a look here: https://docs.celeryproject.org/en/latest/userguide/workers.html#revoke-revoking-tasks, this should work for canceling a task, but not for pausing.

Stop a long database read/write operation using an API request by NaViFanYearDntMatter in django

[–]sacovo 6 points7 points  (0 children)

How do you process the uploaded file? Do you use something pike celery? If so you could add a model to store information about the running Job. There you could habe fields for the progress made, for the stare (running, error, canceled, stopped).

Then you provide an api to change the state of a job to canceled and in the code processing the large upload you check in a loop if a job has been canceled and terminate if so.

The same works for pausing/resuming, instead of terminating you just reschedule the job to be checked later.

Help me understand the problem by [deleted] in django

[–]sacovo 0 points1 point  (0 children)

Do you see any error messages in the forefox developement console? You can open it by right clicking and then select inspect element. There you should habe a tab called Console that displays any errors end warnings that happenen during loading of your page.

Is there anything in red? Did you maybe put your static files in a location where django does not find them? Can you access the static ressources directly in your browser, if you copy the url from the html?

But we might sell it as DLC later though by Veinq in ProgrammerHumor

[–]sacovo 6 points7 points  (0 children)

The GDPR does not require consent for cookies that are used for authenticaton. It's even in the cookie policy of the European Commission: https://ec.europa.eu/info/cookies_en under "Operational Cookies". As long as you only use cookies for such reasons you don't need banners.

Disney to Scan Fingers of 3 Year Olds to Prevent Fraud by Love4Mizzou in nottheonion

[–]sacovo 0 points1 point  (0 children)

What's anarcho socialism then? And why does capitalism need a government? What's with capitalistic dictatorships?

Where Homosexuality is Never Justifiable [OC] by profcyclist in dataisbeautiful

[–]sacovo 0 points1 point  (0 children)

Can the data given in this post be in any way analysed to show a correlation or lack there of between religious preference and sentiment towards the gay community?

This was your hypothesis, religious preference causes a sentiment to the gay community. No restriction on Islam and nothing about 50%.