Paul :python: :django:
pbx@fosstodon.org
<p>I'm a senior web application engineer, dad, husband, writer, teacher. I co-wrote one of the first books on <a href="https://fosstodon.org/tags/Django" class="mention hashtag" rel="tag">#<span>Django</span></a>. I created the <span class="h-card" translate="no"><a href="https://fosstodon.org/@Dpaste" class="u-url mention">@<span>Dpaste</span></a></span> pastebin. <br /> Previous careers: Teacher, tech journalist, graphic designer for magazines.<br /> I live in western Massachusetts, USA. Grew up in <a href="https://fosstodon.org/tags/Vermont" class="mention hashtag" rel="tag">#<span>Vermont</span></a>. I've lived in the watersheds of the <a href="https://fosstodon.org/tags/WinooskiRiver" class="mention hashtag" rel="tag">#<span>WinooskiRiver</span></a>, <a href="https://fosstodon
Posts
-
View post
Today I wanted a simple way to calculate a percentile in Django — I wanted the threshold for the top X% of all values of an integer field. TLDR (top 1%): count = qs.count() top_percentile = qs.values_list(&quot;FIELD&quot;, flat=True).order_by(&quot;-FIELD&quot;)[round(count / 100)] Hattip Stack Overflow: https://stackoverflow.com/a/9503282
-
View post
RE: https://mastodon.social/@CuratedHackerNews/117132924405159625 Nice. I learned a couple new things just clicking around. Share it with a coworker who&#39;s buried in front-end frameworks. &quot;HTMLcat is a notebook of native HTML, CSS, and JavaScript features that are useful, easy to forget, or newly available.&quot;
-
View post
Weekend hackery: Converted the last bits of jQuery on @Dpaste to plain ol&#39; Javascript and some @alpine_js. Alpine is cool, but nothing beats the feeling of realizing, &quot;Hey, I don&#39;t need a library for this at all.&quot;
-
View post
Sorry, de-googlers, I&#39;m still feeding the beast apparently.
-
View post
Today&#39;s achievement: Live-upgrading the MySQL databases on our product to 8.4LTS. About 3TB of data. Easy. My One Weird Trick? AWS RDS Blue/Green Deployment. It works a treat. BGD spins up an instance under the new version, clones your data, then replicates every write from Blue to Green until you switch over. Switchover downtime was about one minute. So many tedious tasks removed, so many chances for human screwup eliminated. More please. https://docs.aws.amazon.com/AmazonRDS/la...
-
View post
TIL about the --bwlimit option in #rsync. Copying thousands of MP3s to an ExFAT USB key (for my car), writes kept stalling. This option limits the size of write bursts and keeps the poor little device controller from slowing things down with GC and whatnot.
-
View post
This sketchy cheap USB key has no pretensions.
-
View post
We&#39;re still #hiring at PowerDash! Are you a full stack engineer with a strong #Python / #Django bent who is into #RenewableEnergy? (Or do you know one?) It&#39;s a great little company in an important sector. The office is in Cambridge MA (Harvard Square), with full use of the adjoining Workbar co-working space. Role is on-site or hybrid. Senior Full Stack Software Engineer: https://apply.workable.com/powerdash/j/7BE934710D/
-
View post
We're #hiring at PowerDash! I know there are a lot of people in my network with the perfect mix of skills for this role — full stack with a strong #Python / #Django bent. Throw your hat in, or pass the word. It's a great little company in an important space. Office is in Cambridge (Harvard Square). Role is on-site or hybrid. Senior Full Stack Software Engineer: https://apply.workable.com/powerdash/j/7BE934710D/
-
View post
If you&#39;re interested in the state of the AI bubble, take a moment and run from a.ai to z.ai in your browser. (I&#39;ll admit I didn&#39;t make it all the way through.)
-
View post
Today I shipped my first big change to production at my new job. Learned a lot about our dev tooling and our cloud environments along the way. Funny. In that situation, after you’ve taken great care to do it right, and pre-checked everything, and gotten it reviewed and approved, and tried it out in lower environments… when you deploy and it works without a hitch, some part of you is surprised!
-
View post
Today was my first day in my new role, Principal Software Engineer at PowerDash.com. I&#39;m very happy with the team, the company, and the product. I&#39;m excited to be digging in. My pro-tip for job hunters: Find smaller job boards of specific companies or communities where you want to work. I found this gig by replying with curiosity to an old posting on a less-well-traveled job board. I didn’t even expect a reply; I ended up scoring a great job.
-
View post
Maybe being a web programmer just makes me more attuned to failures, or maybe there&#39;s some kind of karmic justice paying out… but OMG. You&#39;ve been there, right? I&#39;ll spare you the details of this last one but the punchline is that I wrote a detailed plea for help in the &quot;Contact us&quot; form, but couldn&#39;t submit it because the form processing endpoint returned nothing but 400s. LOLcry
-
View post
I&#39;ve been getting a couple of these solicitations a week. You? &gt; Subject: Potential Long-Term Collaboration Opportunity &gt; … I’m looking to team up with someone who enjoys working directly with clients — handling communication, calls, and coordination — while I focus on the technical execution. I believe this could turn into a solid long-term collaboration where we both benefit and grow together. …
-
View post
I love Wikipedia.
-
View post
Interesting GitHub thread of the week: https://github.com/chardet/chardet/issues/327 &quot;&quot;&quot; Hi, I&#39;m Mark Pilgrim … original author of chardet … it has been brought to my attention that, in the release 7.0.0, the maintainers claim to have the right to “relicense” the project. They have no such right; doing so is an explicit violation of the LGPL. &quot;&quot;&quot; Continues until thread &quot;locked as too heated&quot;.