SShortSingh.
Back to feed

Team Replaces Planned PDF Library With Print Stylesheet for Free Invoice Tool

0
·1 views

The developers of Sheaf, a time tracking and invoicing app, planned to add a PDF library to create a free invoice generator. They considered the costs of server-side rendering, including rate limiting and handling sensitive client data, and instead opted for a browser print stylesheet. Users fill in a form, the preview is styled with plain HTML, and they save the result as a PDF through the browser's print dialog. Because all data stays in localStorage on the user's device, the team avoided storing or protecting any client information. The same approach was then reused for a time card calculator and an hourly rate calculator.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Python Decorators Explained: How Functions Wrap Other Functions

A beginner-focused guide breaks down Python decorators, a feature often seen as confusing at first. It shows how repeated logging code across functions can be replaced by a decorator that wraps each function. The article explains that the @ symbol is shorthand for passing a function into a decorator and reassigning the result. It also covers how *args and **kwargs let a decorator work with any function, and lists common uses such as logging, timing, caching, authentication, and retry logic.

0
ProgrammingDEV Community ·

Scanner Probed a Site for 400 Secret Files in One Minute; None Were Exposed

A single client sent about 1,180 requests to a domain in one minute, requesting roughly 400 sensitive file paths such as environment files, WordPress configs, and cloud credentials. The client identified itself as tlm-scanner/2.0, and the site returned no sensitive files, with only the home page and redirects or refusals for the rest. Shortly afterward, a slower sweep disguised with browser user agents targeted a subdomain and included a path tied to AI provider keys. The author argues that such scans are routine and that site owners should check their own logs, since successful probes often go unnoticed.

0
ProgrammingDEV Community ·

AI Student Launches Personal Developer Portfolio Showcasing Projects and Interests

A student studying AI and Data Science has launched a personal developer portfolio to consolidate their work in one place. Rather than just listing languages and frameworks, the site is meant to reflect their learning journey and the projects they are building. The creator also used the project as a way to experiment with presenting technical work through a polished web experience. Their next focus is Generative AI, LLM-powered applications, and AI agents, with plans to turn ideas into practical projects. They have invited other developers working on AI engineering to connect and share their work.

0
ProgrammingHacker News ·

Wild boar and deer in the Netherlands adapt their behavior to the return of wolves

Wildlife cameras in the Netherlands have recorded wild boar and deer changing their habits in response to the presence of wolves. The footage suggests the animals are adjusting instinctively to the returning predator. The report is based on a video published by Dutch broadcaster NOS. Details beyond the observed behavioral changes are limited in the available source material.