Live data from Hacker News

Running a Bakery on Emacs and PostgreSQL

bofh.org.uk

161–170 of 194 posts

Re: Running a Bakery on Emacs and PostgreSQL

#161

Using emacs with 7 million keyboard shortcuts to accidentally press, and then... lisp!! No thanks. This would be more approachable in an Anaconda notebook.

Accidentally pressing anything in Emacs is easily resolved by pressing CTRL-G (cancel buffer command), or CTRL-/ (undo), though....

I agree the LISP thing would be a deal break for a lot of people.

Re: Running a Bakery on Emacs and PostgreSQL

#162

Earlier quoted context omitted.

Can't remember where I read the story, Steve Yegge perhaps. But they were talking about how where they worked secretaries actually used Emacs apps developed by the IT department and, over time, the secretaries started to extend the apps with Elisp.

Tech people have a problem with assuming that everyone is an idiot, mostly because it’s easier to do half-assed work aimed at a moron. Legacy text based solutions that survived are usually much better designed by people who actually spoke to the users.

We bought a new iSeries mainly because the accounting staff said, point blank, the GUI on the replacement system was total crap. The green screen is efficient and they can get everything done quickly without moving a hand off the keyboard.

Re: Running a Bakery on Emacs and PostgreSQL

#163
post #159

Earlier quoted context omitted.

Agreed. Don't forget about tablets too; I'd happily pay for someone to make Emacs usable with touch gestures and optimized for touch use (e.g. with a clickable, context-aware button row).

I'm waiting for Emacs to run natively on ChromeOS (or Android) so I can get a Chromebook. (I'm not willing to install Cruton or any of the native Linux hacks on a chromebook).

For Android, Emacs 26.1 is available in Termux. I can confirm it works on my phone. No rooting required.

Re: Running a Bakery on Emacs and PostgreSQL

#164

Earlier quoted context omitted.

Rewrite the output logic with PyAutoGUI doing the keyboard shortcuts and grade typing? https://pyautogui.readthedocs.io/en/latest/

If she were still teaching I’d have put in more effort, but alas she retired when my daughter was born.

Tangential question, but how did she get pregnant at retirement age?

Re: Running a Bakery on Emacs and PostgreSQL

#165
post #10

This makes me wonder what someone with less computer experience would do, ie if you're not a former computer professional. Sure, open source makes everything rather accessible from a monetary point of view, but you still have to learn things. I almost feel like in the past there were more attempts at making this accessible to the end user, HyperCard, dbase etc, even just BASIC on your 8-bit machine. Nowadays? Excel/G…

> This makes me wonder what someone with less computer experience would do, ie if you're not a former computer professional. One would simply make bread the same way as it has been done for 1000 years! Humans can understand ratios, write stuff down, plan for the future, etc all without org-mode in emacs, databases, and sometimes without even a calculator.

Down the street from me is a baker so good he doesn't even have any signage, you have to know it's there -- the line out the door at certain times might be a hint -- and as far as I can tell, other than punching in the prices in the minimum cash register required by law, they keep no records at the point of sale.

I don't know if he keeps spreadsheets or even databases elsewhere -- I hope he does, as he's an amazing baker and works his butt off, and I hope he makes tons of money. But I really don't think he has any record of, say, whether Rye or Spelt sells out faster. (It all sells out every day.)

So I wonder if there's some level of artistry where optimization might just be an annoying distraction.

Re: Running a Bakery on Emacs and PostgreSQL

#166
post #33

I have only ever been a tech hobbyist, but I have leveraged my Python skills in a similar way. I run a home cleaning service with my wife, and I started using Airtable to track clients, jobs, expenditures, employee hours, etc. The data entry became tedious due to having to make entries in multiple tables for each job, so I wrote a Python script to use a simple command line read-eval-print loop to collect job informat…

I had a similar use case as you for making apps to run on a Rasberry Pi for my staff to use in my business (Chocolab.com.au) I discovered appjar.info which has been so simple to use for quick ugly interfaces. It is built on top of tkinter

Re: Running a Bakery on Emacs and PostgreSQL

#167

This reminds me of the time I used Python to fill out my Wife's 4th grade report cards. She kept all the records in google sheets, so when it came time to do report cars, she already knew what all the grades should be. But the school only provided a terrible app where you literally had to make three clicks with a mouse to enter each grade. Each kid had about 20 grades to enter, and there were 30 kids. That was a lot…

RSI seems to have gotten worse as the newer school systems are trying to be touch compatible. They also update often enough to break any useful shortcuts or get swapped for another entirely different system.

Re: Running a Bakery on Emacs and PostgreSQL

#168

Earlier quoted context omitted.

If she were still teaching I’d have put in more effort, but alas she retired when my daughter was born.

Tangential question, but how did she get pregnant at retirement age?

LOL she was 36. When I say retired I mean "quit with no intention of going back to work". :)

But more specifically, science! We used IVF.

Re: Running a Bakery on Emacs and PostgreSQL

#169

Earlier quoted context omitted.

Yeah, he didn't explain that part well. Bakers typically have ingredients in terms of ratios with respect (usually) to the mass of the main flour. There could be up to a dozen ingredients (sometimes just 3) with time and temperature sensitive processes. A typical small artisinal bakery will have a repertoire of a couple dozen baked goods. It's a fair amount of stuff to keep track of especially when you throw planning…

Yeah. Lots of hand waving in the piece because it was a choice between something I could write in a morning for a general audience or, frankly, not bothering to write anything at all. A bakery formula is an acyclic directed graph running from top level “product” nodes (a loaf of bread, say) through one or more intermediate formulae until you reach basic ingredients. For a given set of orders, you need to work out how…

> A bakery formula is an acyclic directed graph

I'm so glad to see other people think of recipes this way. I have so much trouble keeping track of what's going on in a complicated recipe because of the linear way it's written. I have good results rewriting them as a DAG on an index card (or the back of the recipe card) and just following that instead of the recipe.

Re: Running a Bakery on Emacs and PostgreSQL

#170

I keep coming back to Emacs reading these stories but it never became a habit primarily I have to work across many desktops/laptops computers with Windows & Linux as well as Android mobile. Emacs not being usable on mobile is a big problem and biggest roadblock in the path.

I used to run separate Emacs instances on both Windows and Linux, but these days I settled for a different workflow. I keep my main Emacs running on my home Linux desktop. From other computers and locations, I just SSH to the desktop and run an Emacs frame in terminal mode (the command is just: emacsclient -t). Turns out, this is usable for about 95% of things I use Emacs for (the remaining 5% are when I need to view…

I have done this before but I like going one step further and running Emacs over X with xpra or similar. An annoyance with xpra in particular last I looked into it is that the protocol version has to be identical on all your machines or it just refuses to connect (it has no concept of forwards/backwards compat in the wire protocol), and debian/ubuntu package different versions, so you end up having to build it yourself locally everywhere.
Post reply on HN