Skip to main content

Posts

Showing posts from October, 2026

Forebay: How Well Will the Reservoir Serve?

A reservoir is a promise: water for a town, for farms, for a power plant, through dry seasons the river alone can't cover. Whether it keeps that promise depends on decades of river flows that nobody can predict. Forebay is a desktop app for reservoir operation studies. You give it a reservoir, a record of the river that fills it and the water people want from it, and it plays the record through, period by period, as if the dam had been running all those years. One reservoir, four uses, five studies The operation study works out the lake's water balance each period: inflow, rain, evaporation from the surface it has, seepage, releases and spill, at a monthly, ten-day or daily step. Four uses are served in an order you choose: water supply, environmental flow, irrigation and hydropower. When water is short, the first gets all it wants before the second gets any. Irrigation from the crops: a cropping pattern with land preparation, FAO 56 crop coefficients, paddy percolati...

OpenFlow: Open Channel Flow on the Mac

Most open channel problems at a design desk are the same handful of questions: how much water will this canal carry, how deep will it run, how wide should it be, how steep can it be? OpenFlow is a Mac app that answers them with Manning's equation and keeps every channel you work on in one window. Solve for the value you don't have Pick a channel, choose the unknown, and type in the rest. OpenFlow handles four kinds of section: Rectangular: solve for discharge, water depth, base width or bed slope. Trapezoidal: the same four, with the side slope as an input. Circular: discharge, water depth, bed slope or pipe diameter, for culverts and pipes running part full. Irregular: enter the surveyed cross-section as station and elevation points and solve for discharge or bed slope. Useful for natural creeks and old canals that no longer match their design drawings. More than one number Alongside the answer you get the flow area, wetted perimeter, hydraulic radius, top wid...

Flume: Open Channel Hydraulics You Can See

Open channel flow is where many civil engineering students first meet hydraulics that refuses to be simple: critical depth, hydraulic jumps, and water surfaces that curve over long distances. Flume is a desktop app for exactly that. It works out normal and critical depth, the hydraulic jump and water surface profiles as you type, draws them as you go, and writes the whole analysis up as a PDF report. Three analyses, one channel Uniform flow: describe the channel and solve Manning's equation for whichever value you don't have: discharge, normal depth, slope, roughness or bottom width. Rectangular, trapezoidal, triangular, circular, parabolic and surveyed sections, with a roughness for each part of the bed and banks. Energy and momentum: enter one depth and Flume gives the depth on the other side of a jump, the energy it loses and the kind of jump it is, with the specific energy and specific force diagrams beside them. Gradually varied flow: start from a depth, a sluice...

Slope: Slope Stability by Finite Elements and Slip Circles

Will the slope stand? It's one of the oldest questions in civil engineering, and it still matters for every embankment, cut, levee and dam. Slope is a desktop app that answers it two independent ways. You draw the ground, give its soils and its water, and get the factor of safety from finite elements that find the failure on their own, and from the slip circles engineers have trusted for a century. When they agree, you can trust the answer too. Two methods, side by side Strength reduction by finite elements divides the soils' strength by a growing factor until the ground can't hold itself up. No slip surface is assumed: the failure appears wherever it wants to, circle or not. Slip circles are searched by the thousand with Bishop's simplified method, with Spencer's method and the ordinary method of slices worked out on the critical one for comparison. Both answers come back in a second or two. What it handles Ground of any shape: regions drawn with the ...

electron-db 0.16: A Tiny JSON Database for Electron, Now with Promises and Speed

electron-db 0.16 is out: the small JSON-file database for Electron now has async/await, answers lookups by id in a hundredth of a millisecond, and saves a thousand inserts in 22 ms instead of 55 seconds. If you build a desktop app with Electron, you hit the same question early: where do I keep the app's data? A full database means native modules, rebuilds for every Electron version and a schema. Often you just need a few tables of records that survive a restart. That is what electron-db is for. Each table is one readable JSON file in your app's data folder. There are no dependencies and no native code, so npm install is the whole setup, and the API reads like a tiny SQL: create a table, insert rows, then get, update and delete them with a where clause. Getting started Install it in your Electron app: npm install electron-db Then use it from the main process: const db = require('electron-db'); db.createTable('customers', (succ, msg) => { console.lo...

MathPad: A Math Notebook That Shows Its Working

A calculator gives you an answer. A teacher wants to see how you got it, and so does anyone checking an engineering calculation. MathPad is a desktop math notebook where you write a problem the way you would on paper, in real fractions, roots, integrals and matrices, and it works it out down the page, in numbers with their units or in symbols, writing out each step the way it is taught. Steps, not just answers Solving, factoring, differentiating and integrating all write out their working: which rule, applied to what, giving what. You can open the steps under any result, as deep as you want them. End a line with = for a number or -> for an answer in symbols, and Cmd+Return lists everything that can be asked of that line. What it covers Algebra and calculus in symbols: simplify, expand, factor, partial fractions; equations, inequalities and systems; derivatives, integrals, limits, series, sums, and differential equations with their conditions. Numbers with units: SI ...

Quill: A Word Processor That Shows the Page You'll Print

Some documents are meant to be printed, signed and filed: reports, letters, specifications, minutes. For those, what matters is the page. Quill is a word processor for the Mac that shows your document as pages, with the margins, headers and footnotes exactly where they'll be on paper, and it opens the Word files people send you and saves them back. Everything a document needs Pages as they print: paper sizes, margins and orientation, columns, sections with their own setup, headers and footers for first, odd and even pages, and page numbers. Styles: Normal, Title, Heading 1 to 6, Quote and the rest, under the names Word uses. Change a style and every paragraph in it follows; a theme restyles the lot. Tables: merged cells, tables inside tables, borders and shading, header rows that repeat on every page, sorting, and formulas like =SUM(ABOVE) . A plus sign at a table's edge adds a row or column, and a handle lets you drag the whole table. Notes and contents: footnotes a...

Tally: A Fast Desktop Spreadsheet That Opens Your Excel Files

Most of us don't need a spreadsheet to be a platform. We need it to open the workbook someone sent, calculate what it calculated in Excel, and get out of the way. That's the idea behind Tally , a desktop spreadsheet for macOS and Windows that starts in a blink and reads and writes Excel and OpenDocument files as they are. Formulas you already know Tally has over 490 functions, from everyday ones like SUMIFS and XLOOKUP to statistical and financial ones like LINEST and PRICE. Dynamic arrays spill into the cells around them, LET and LAMBDA are there, and so are names, tables and references across sheets. If a formula works in a modern copy of Excel, the aim is that it gives the same answer in Tally. Fast on big sheets A sheet goes up to a million rows by sixteen thousand columns. When you edit a cell, Tally recalculates only what depends on it, which takes a couple of milliseconds even on a sheet with 200,000 formulas. Scrolling, filtering and sorting stay quick on the ...

The Rise of Apple, Part 16: Losing Steve

THE RISE OF APPLE · PART 16 Losing Steve SYNCSTER · blog.syncster.dev 🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 15: The Post-PC Era In October 2003, a scan for kidney stones found something else on Steve Jobs's pancreas. It was cancer, but of a rare and slower-growing kind that can often be treated with surgery. His doctors urged him to operate. Jobs, who distrusted anyone opening up his body, spent about nine months trying diets and alternative treatments first. He later said he regretted it. In July 2004 he had the operation, told Apple's staff in an email that he had been cured, and was back at work within weeks. While he recovered, the company was run by a man few outsiders had heard of. Tim Cook had joined Apple in 1998 from Compaq, hired by Jobs to fix the company's chaotic manufacturing. He closed factories and warehouses, moved production to contract manufacturers in Asia, and cut the stock Apple kept on its shelv...

The Rise of Apple, Part 15: The Post-PC Era

THE RISE OF APPLE · PART 15 The Post-PC Era SYNCSTER · blog.syncster.dev 🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 14: The App Store By 2009 the computer industry had found its next big thing, and it was small and cheap. Netbooks, little laptops with tiny keyboards and slow chips, were selling by the millions for a few hundred dollars each. Every PC maker had one. Analysts kept asking when Apple would make its own. Apple kept saying it didn't know how to make a $500 computer that wasn't junk. Tablet computers weren't new either. Microsoft had been pushing them for most of the decade: Windows laptops with screens that folded flat and a pen to write on them. They sold mainly to doctors, warehouses and the odd enthusiast, and almost nobody else wanted one. The pen was fiddly and the software was the same desktop Windows, built for a mouse. As Part 13 told, Apple's own touchscreen tablet work had been put aside so the team co...

The Rise of Apple, Part 14: The App Store

THE RISE OF APPLE · PART 14 The App Store SYNCSTER · blog.syncster.dev 🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 13: The iPhone When the iPhone went on sale in June 2007, it came with a dozen or so apps, all made by Apple, and no way to add more. Steve Jobs was in no hurry to change that. A phone, he argued, had to be reliable in a way a computer didn't: nobody wanted a call dropped because some stranger's program had crashed the network. Developers who wanted in were offered what Apple called a "sweet solution": write web pages that looked like apps and ran in Safari. Developers did not find it sweet. Web apps couldn't use the camera, couldn't work offline, and felt sluggish next to Apple's own. Within weeks, hackers had broken into the phone's software, and people were "jailbreaking" their iPhones to install games and tools nobody at Apple had approved. Some of the most talented programmers in the w...

The Rise of Apple, Part 13: The iPhone

THE RISE OF APPLE · PART 13 The iPhone SYNCSTER · blog.syncster.dev 🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 12: The Music Store By the mid-2000s, the iPod had made Apple rich again, and Steve Jobs could see exactly what would take it away. Every year, more phones shipped with a camera, a music player and a slot for a memory card. If the phone in your pocket could play songs well enough, why carry an iPod at all? The device that had rescued Apple was about to be swallowed by a gadget Apple didn't make. Apple's first answer was a compromise, and it showed. In 2005 it let Motorola build iTunes into a phone, the ROKR E1. It held only a hundred songs, synced at a crawl, and looked like any other Motorola. Jobs reportedly hated it. The lesson he took was the same one Apple had learned with the Mac and the iPod: if the hardware, the software and the experience weren't all Apple's, the result wouldn't be either. Project Purpl...

The Rise of Apple, Part 12: The Music Store

🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 11: 1,000 Songs in Your Pocket By 2002, the music business was in open panic. Napster had shown a whole generation that any song ever recorded could be had for free, in seconds, from a dorm-room PC. CD sales were sliding. Lawsuits were flying. The industry's answer to digital music was a mess of half-built stores with clumsy rules, thin catalogs, and monthly subscriptions that left you with nothing if you stopped paying. Nobody had cracked the one thing that mattered: making it easier to buy a song than to steal one. Apple had a peculiar vantage point on all this. The iPod had arrived in 2001 and was selling well, but it was a beautiful vessel with no legal river to fill it. You could rip your own CDs — and plenty of people filled their iPods with downloads of murkier origin. Steve Jobs saw both the hole in the market and the leverage it gave him. If he could get the music...

The Rise of Apple, Part 11: 1,000 Songs in Your Pocket

🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 10: Think Different By the start of 2001, Apple had stopped dying. The iMac had sold by the millions, the balance sheet was healthy again, and the four-quadrant product grid had given the company a spine. But Steve Jobs wasn't interested in simply being a profitable computer maker. He had a bigger thesis — one he called the “digital hub.” The personal computer, he argued, would become the center of your digital life: the place where your camcorder footage, your photos, and above all your music would live and be organized. The Mac wouldn't just compute. It would curate. The problem was that in early 2001, the music part of that story barely existed. And the device that would make it famous hadn't been built yet. A jukebox called iTunes The software came first. On January 9, 2001, at Macworld in San Francisco, Jobs introduced iTunes — a free application...

The Rise of Apple, Part 10: Think Different

🍎 The Rise of Apple — a 20-part series. See all parts »  |  « Part 9: The Return When Steve Jobs walked back into Apple in late 1996, the company he had co-founded two decades earlier was a mess. It was selling 1.8 million Macs a year, down from 4.5 million just two years before. The product line was a thicket of overlapping Performas and PowerBooks with names only a spreadsheet could love. Jobs did two things that looked, on the surface, like marketing and housekeeping. In hindsight they were the same move: he decided that from now on, Apple would lead with meaning and design — and let the engineering follow. “Think different” — a bet on identity The first signal came before a single new computer shipped. In 1997, with Apple still bleeding, an internal pitch floated the slogan “We’re back.” Jobs shot it down flat — he thought it was stupid, because Apple wasn’t back yet. Instead he invited...

Tessel: A Tiny Declarative Language for Building Native Desktop Apps

Most tools for building a desktop app ask you to make a lot of decisions before you've written a single line that does anything: pick a framework, wire up a build system, set up a project structure, manage dependencies, configure a packager. Tessel throws all of that out. It's a small declarative programming language where a folder of .tsl files is the program — and the whole thing compiles down to a tiny native app for macOS and Windows. Here's a tour of what makes it interesting. A whole app in one block The clearest way to understand Tessel is to look at a complete program. This is a working counter app — not a snippet, the entire thing: You declare an app with a window size, a piece of state , and a tree of views — VStack , HStack , Text , Button — described the way they should look. Run it with tessel run counter.tsl and a real window opens. There are no project files, no imports, and no build configuration to write. If you've ever bounced off deskt...