News for hackers. Stuff that matters.

captnswing

Extremely interesting presentation from Charlie Marsh about all the optimizations https://youtu.be/gSKTfG1GXYQ?si=CTc2EwQptMmKxBwG
Re:Argbash – Bash Argument Parsing Code Generator on Monday March 20, 2023 @01:23PM (#35235103)
this ^
Re:Google Python Style Guide on Saturday February 11, 2023 @03:36AM (#34750646)
ruff is the ticket. it replaced isort, flake8 for me, never looked back
Re:Boring Python: Code Quality on Tuesday December 20, 2022 @08:00AM (#34065242)
yes it does. see see https://github.com/charliermarsh/ruff#supported-rules for the rules it supports. "IOO1" being the code for isort

relevant section from my pyproject.toml

  [tool.ruff]
  line-length = 88
  # pyflakes, pycodestyle, isort
  select = ["F", "E", "W", "I001"]
Re:Boring Python: Code Quality on Tuesday December 20, 2022 @07:58AM (#34065224)
+100 on ruff.

replaced both flake8 and isort across all my projects

Re:Company, Team, Self on Thursday December 01, 2022 @04:35PM (#33823151)
I miss the customer in this. I've given the same advice in this format

Customer > Company

Company > Team

Team > Self

Re:Frog: OCR Tool for Linux on Tuesday November 22, 2022 @08:37AM (#33705595)
On a Mac, for ad-hoc OCR, I use the immensely useful CleanShot X https://cleanshot.com/ (which is well worth paying for).

Among many other things, it offes OCR of any region on the screen

for larger-scale OCR processing of pdfs and other files, I love how s3-ocr https://simonwillison.net/2022/Jun/30/s3-ocr/ makes working with AWS Textract OCR more accessible (though, somehow, Textract refuses to fully OCR larger pdfs I possess..)

Re:Robot Framework, generic open source automation framework on Wednesday October 26, 2022 @04:53AM (#33341276)
Agree, except: friends, don't let friends use Selenium.

use PlayWright!!

Re:A Real World React – Htmx Port on Sunday October 16, 2022 @08:16AM (#33223008)
back in the days, I really liked https://malsup.com/jquery/taconite/, which had a similar approach (but using xml snippets sent from server over ajax)
Henrik Kniberg recorded this fun 5min video a long time ago, about the relation between "utilization" and "flow" and how to optimize for both.

I keep showing that to people, never gets old https://www.youtube.com/watch?v=CostXs2p6r0

Playwright is amazing
Re:Open source alternatives to popular SaaS products on Monday February 28, 2022 @12:57AM (#30496851)
how did you compute this table? with some kind of library/tool?
Re:Dexplot: Python library for data visualization on Friday June 12, 2020 @03:08AM (#23496803)
I agree! I found this presentation invaluable in getting a good overview of the landscape and the different segments within: https://www.youtube.com/watch?v=FytuB8nFHPQ

It helped me settle on https://altair-viz.github.io/ (coming from matplotlib) and I never looked back

Re:Report on the Bezos Phone Hack [pdf] on Sunday January 26, 2020 @03:57AM (#22151162)
by downloading the pdf, will my iphone get infected? :)
Re:Show HN: Transform Data Without Programming on Sunday October 06, 2019 @01:52PM (#21173602)
Similar to Google's Dataprep https://cloud.google.com/dataprep/ (not free)

And there's openrefine http://openrefine.org/

Re:Transform Data by Example [video] on Thursday May 18, 2017 @05:09AM (#14365808)
Seems similar to http://openrefine.org/
Re:Good Product Manager, Bad Product Manager (1996) [pdf] on Sunday October 11, 2015 @05:21AM (#10368669)
There's also the corresponding "Good Engineer, Bad Engineer" which I like

http://www.chrispliakas.com/2015/01/22/good-engineer-bad-eng...

Re:Darwin Among the Machines (1863) on Thursday July 30, 2015 @03:56AM (#9973640)
check out George Dyson's great book of the same title that covers Butlers' essay in detail

Very recommended reading

http://www.amazon.com/Darwin-Among-The-Machines-Intelligence...

Re:ReFiddle: Fiddle for Regexp testing on Friday June 22, 2012 @07:05AM (#4146240)
I can totally recommend Patterns, with support for java, python, ruby etc

http://itunes.apple.com/us/app/patterns-the-regex-app/id4294...