News for hackers. Stuff that matters.

brento

Re:Improving the New Django Developer Experience on Friday October 25, 2024 @11:15AM (#41946070)
Dj-beat-drop is more about making minimal changes to the official Django templates. It mainly involves standardizing to a config directory for configuration code and optionally using an `env` file and `uv` for package management.

By keeping things minimal, the chances of it getting accepted as an official Django project seem better. It would need to be renamed, of course, to something like django-installer or django-cli.

Re:Serialize Django Data for JavaScript on Monday September 19, 2022 @11:19AM (#32899557)
I've updated the article based on some of the feedback.
Re:Serialize Django Data for JavaScript on Thursday September 08, 2022 @08:46AM (#32764711)
This is valid. I'll add an update to the post people should use caution and think about security.
Re:Serialize Django Data for JavaScript on Thursday September 08, 2022 @08:44AM (#32764688)
In the article, you'll notice I'm not using DRF.
Re:Serialize Django Data for JavaScript on Wednesday September 07, 2022 @09:34AM (#32750373)
I would certainly make improvements to the script to optimize the serialization of the QuerySet to only output the needed fields. It's hard to write an article that would capture every use case and optimization required.
Re:Serialize Django Data for JavaScript on Wednesday September 07, 2022 @09:29AM (#32750299)
Re:Serialize Django Data for JavaScript on Wednesday September 07, 2022 @09:27AM (#32750266)
This is an excellent point; I should have addressed safety in my article. I'll point out that in my use case, I'm using `safe` on data I create and not any user-generated data.

You should never use `safe` on user data unless you use something like bleach (https://github.com/mozilla/bleach) to sanitize the data. Even then, you should use caution.

Re:Serialize Django Data for JavaScript on Wednesday September 07, 2022 @09:21AM (#32750194)
Thank you for pointing this out, I forgot about this template filter. This unfortunately still wouldn't properly all the data types mentioned in my article (e.g. QuerySets).
Here is the related change.org petition I signed.

https://www.change.org/p/google-account-migration-from-works...

Re:$1 hearing aid could treat millions with hearing loss on Thursday September 24, 2020 @08:54AM (#24578131)
I was told I could benefit from hearing aids, but was told they would cost $5K to $8K depending on which ones I wanted. I've decided for now that I'll put up with the issues associated with not having them for now. I was also told they blue tooth doesn't work very well if you have an android phone, so I'm hoping that there can be some real innovation and competition in this space to drive the prices down and also improve the technology!
Re:Time to Upgrade Your Monitor on Wednesday June 17, 2020 @01:43PM (#23554311)
I need new eyes after viewing this website. I think yellow burned out my retinas!
Re:Monica: Open-source personal CRM on Saturday December 21, 2019 @11:37AM (#21851973)
I wanted to try it but I couldn't get it going using docker. I tried `docker-compose -f docker-compose.dev.yml up` and then `docker-compose exec monicahq php artisan setup:production` and I get an error about /var/www/monica/storage/artisisan not existing.
Re:How Far Out Is AWS Fargate? on Thursday August 15, 2019 @08:47AM (#20704666)
> I want to try it inside 30 seconds and see for myself.

So let me get this straight, you want to try something as complicated as Kubernetes, inside of 30 seconds?

I'm thinking you might have some unrealistic expectations.

Re:Switch from Chrome to Firefox on Thursday May 30, 2019 @12:33PM (#20052946)
I think link forgot to mention a step 4.

Step 4: Spend weeks getting used to new shortcuts, finding equivalent extensions/plugins and getting used to their dev tools.

Re:Python in Visual Studio Code – April 2019 Release on Wednesday April 24, 2019 @08:55AM (#19737826)
I run PyCharm using my docker-compose environment, which works great. A co-worker said he was able to get VSCode working with docker-compose, but the setup wasn't easy. He said something about having to attach to the running docker/python process.
@wintorez, I started using Brave browser[1] and DuckDuckGo for work and personal. It's based on Chrome but with privacy in mind.

Also, I currently use 1Password, but have been thinking about using Enpass[2] because you can sync with any cloud drive. I like the idea of syncing to a third party cloud drive in case my password service is compromised.

[1]: https://brave.com [2]: https://www.enpass.io/

Re:Timer-Tab on Friday December 09, 2016 @11:53AM (#13139859)
Those are the two I knew, I was curious about 1 and 3! :)
Re:Timer-Tab on Friday December 09, 2016 @09:29AM (#13138901)
Just curious, what are your pinned websites?
I got beta access, created a custom docker image and got my tests to run however lots of them are failing because I need redis. Is there a way to add Redis server?
Reading the comments in this thread, is somewhat ironic.
Re:OneOps – Open-source cloud ops platform from Walmart on Tuesday January 26, 2016 @04:48PM (#10976391)
No Python support. Moving on.
Re:Self-tiling tile set on Tuesday October 13, 2015 @10:55PM (#10384746)
That feels a little like Inception (https://en.wikipedia.org/wiki/Inception) or the Infinity mirror (https://en.wikipedia.org/wiki/Infinity_mirror).
Re:Playboy to Drop Nudity as Internet Fills Demand on Tuesday October 13, 2015 @03:37PM (#10382926)
Like said it's my personal opinion. However, there are tons of studies that support porn impacting society and relationships in a negative way. Just Google it.
Re:Playboy to Drop Nudity as Internet Fills Demand on Tuesday October 13, 2015 @02:53PM (#10382618)
> You’re now one click away from every sex act imaginable for free. And so it’s just passé at this juncture.

Just my personal opinion but this is a very sad truth about our society and how easy it is to see porn.

Re:LogMeIn acquires Lastpass on Friday October 09, 2015 @09:25AM (#10359797)
One of the reasons I chose 1Password over LastPass is because you can choose where to store your data (iCloud, Folder on your System, Dropbox). I don't think you should trust your passwords to any company.
Re:Dealing with Noise in an Open Office Setting on Wednesday October 07, 2015 @04:09PM (#10348685)
I once worked as a developer at a newspaper that had an open floor plan. The biggest issue was the darn emergency scanner radio squawking in the background all day! I often fantasized about taking a baseball bat to it, like they did to a printer on Office Space (https://www.youtube.com/watch?v=fjsSr3z5nVk). It's one of the reasons I no longer work for a newspaper.

Older »