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
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.
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
You do know Ubuntu is based on Debian ?
George
^^^ ?
Typed third eye
cj
You do know Ubuntu is based on Debian ?
it doesn't mean it is Debian 🤷🏻โ€โ™‚๏ธ
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 โค๏ธ
Anders (izzno / gooood) ๐Ÿ‡ณ๐Ÿ‡ด
What about freebsd?
Never tried it, dont think i will. It's to opinionated for me.
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
Ho can i send pdf in send_mail in Django?
it can be just attached as a file
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
Rammanoj
what do u mean with semaphore ?
I just read it in some tutorial. Semaphore is related to locking mechanism to perform tasks in operating system
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
https://github.com/jonasundderwolf/django-image-cropping
I know how to crop, the question is how to pass custom parameters every time
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
Essentially I want to pass params to the save()
Mirco
Can't you pass that params to your view ?
Mendel
Can't you pass that params to your view ?
I'm not sure how that works, I'll look into it
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?
Mendel
already read this ? imho it's perfect for your scenario
It's nice, but I want something simpler... I'm using the admin page, and I just need a few options
Luis
Can anyone help me making a web app using django?
Did you read Django first app tutorial? https://docs.djangoproject.com/en/1.11/intro/tutorial01/
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 ?
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
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
response = HttpResponse(csv_file, content_type='text/csv; charset=utf8')