Skip to main content

Posts

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...
Recent posts

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...