Anders (izzno / gooood) ๐ณ๐ด
Some people think everything they dont know is "shait" ;)
Anders (izzno / gooood) ๐ณ๐ด
It just works different... Redhat is the same...
cj
or p00p 🤷🏻โโ๏ธ
Anders (izzno / gooood) ๐ณ๐ด
What Linux do you run
Anders (izzno / gooood) ๐ณ๐ด
OH, i did not think of p00p ;)
cj
lol
cj
Anders (izzno / gooood) ๐ณ๐ด
I figured ;)
Anders (izzno / gooood) ๐ณ๐ด
Well, i would never run it in production ;)
cj
I did , not issues in 4 years
cj
🤷🏻โโ๏ธ
Anders (izzno / gooood) ๐ณ๐ด
But i used it for 3 years until I went to ubuntu early this year.
cj
I have some Debians for servers too, still no issues there
Anders (izzno / gooood) ๐ณ๐ด
Had to many "small" issues stealing time.
Anders (izzno / gooood) ๐ณ๐ด
No, debian is different.
cj
Anders (izzno / gooood) ๐ณ๐ด
You do know Ubuntu is based on Debian ?
George
George
cj
it's like you have the best pizza ever made, then someone comes and add pineapple, strawberries, peachs as toppings, and told you to eat it... is it the same pizza? (it's based on the original pizza tho)
Anders (izzno / gooood) ๐ณ๐ด
I am well passed arguing distroes and butcracks, they will always be split.
cj
anyway... pyenv is โค๏ธ
Anonymous
Anders (izzno / gooood) ๐ณ๐ด
What about freebsd?
Never tried it, dont think i will. It's to opinionated for me.
Anonymous
Anders (izzno / gooood) ๐ณ๐ด
And I also like systemd too much to not have it.
Anders (izzno / gooood) ๐ณ๐ด
What'
They are a smaller community and their decissions are most suited for the poeple allready in it.
Anders (izzno / gooood) ๐ณ๐ด
I just think they should broaden their horizons a bit. But its a great stable system. We use alot of juniper switches and BSD storrage backends.
Anders (izzno / gooood) ๐ณ๐ด
But as a Usersystem or Server, that is what i thought you where asking.
Anonymous
Server yes
Anders (izzno / gooood) ๐ณ๐ด
Never tried, but as a single purpose server I'm sure its great. I just would not have the confidence to serve it :/
Anders (izzno / gooood) ๐ณ๐ด
Because I dont know it! <โโ
Rammanoj
how actually does the django tranasaction.atomic work ?? does it function like a semaphore ?
Danilo
Hi guys
Danilo
Ho can i send pdf in send_mail in Django?
Rammanoj
I guess you can send it using EmailMessage, have a look here https://stackoverflow.com/questions/33218629/attaching-pdfs-to-emails-in-django
Rammanoj
Danilo
Rammanoj
you can also look at this once https://docs.djangoproject.com/en/1.11/topics/email/#emailmessage-objects. These are the different objects in the EmailMessage
Danilo
thanks @rammanojpotla
Danilo
Mirco
Mirco
Rammanoj
I just want to know how actually the atomic transaction work. When multuple users try to update same column in same time ?
Mirco
Have u already read what official docs says ?
this one could be a good read for ya imho, after reading docs
Mendel
Hey guys, I have a model with an ImageField, and on save I want to thumbnail it, and crop it, what is the best way to pass parameters like if to crop 1:1 or 2:1 ratio, adding a field for this in the models seems stupid cuz it's stuff I never want to see again...
Mendel
Ideally I'd like that when I upload an image through the admin, I get a dialog with some info at the pic, and some options for resizing, I don't have a clue how this can be done tho
Rajjix
https://github.com/jonasundderwolf/django-image-cropping
Mendel
Like if the image is detected as case a so I should have options to make it b or c
Mendel
So basically:
1. I upload image through imagefield
2. Server analyzes image, detects what case it is
3. I get a dialog with options for that case of an image
4. On save() it saves the images with those parameters (cropped, downsized, whatever not)
Mendel
@iFlare3G have any ideas?
Mirco
You wanna pass params to crop it before saving ?
Mendel
Mendel
Essentially I want to pass params to the save()
Mirco
Can't you pass that params to your view ?
Mirco
already read this ? imho it's perfect for your scenario
Mirco
it's the classic scenario when uploading file and resize it as user prefers, before saving it
Krutarth
Can anyone help me making a web app using django?
Mirco
Arjun
Is there a way to set the content-type of the file using django storages?
Im trying to upload a webp image to s3 (using django-storages) and imagefield.
the content type of the uploaded image is "application/octet-stream" so the file is getting downloaded instead of rendering.
if I upload this file directly to s3, the correct content-type "image/webp" is updated and im able to render it using the url.
any suggestions ?
George
Arjun
before saving the object?
George
well, mmmm
George
just when you send it to front
George
i guess i'm out and you're more advanced than i, dunno
Arjun
oh you mean for rendering?
George
yes, but i guess that isn't what you need
Arjun
i think that cant be done because, we will be getting a url only of the object
George
Arjun
the issue here is the content type of the object in s3.
George
hmmm
Arjun
can afford to add something in the saving section.. but no sure if this can be done for the url before passing to the front..
George
George
response = HttpResponse(csv_file, content_type='text/csv; charset=utf8')