The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
Local supermarkets are a bit limited, but I'll look for it next time in Germany; thanks for the tip
Sorry for yet another post. It's a trick I learned quite by accident (although it's apparently well known).
If you have some reasonably firm ToFu (firm, extra-firm) in a package you can do the following experiment:
1 - freeze it solid within the package, liquid and all
2 - when it's good and solid (often appears yellower) put back in fridge to thaw
3 - in a day or so, when it's thawed, you will find a miraculous transformation!
The ToFu is now spongy in a very real sense. It's tougher and full of sponge-size holes. What good about this is that you can squeeze out the excess water and soak in some flavored stuff in it's place. Then cook it. The liquid should be (as I prefer) strongly flavored and spicy. I've found browning Tofu in oil, or even deep-frying, definitely improves its texture and taste.
Yesterday it magically appeared and so it was. Auto-reposting seems like a brand new CP "feature" under development. Unfortunately, it didn't include the upvote from the previous version (no, I'm not trying to weasel an upvote out of this).
From your post's content, there's somewhat of a hint that these things happen.
My wife and I have been experimenting with slow-cooker recipes of late. It's handy, especially with young kids, to not be tied up with a lot of post cooking cleanup. Coming home to a house filled with the smell of food is a nice mood enhancer, too.
Meal for 2 or 4: It is so misleading. Either I end up cooking for one person or for the whole village and then some.
I always, deliberately, cook more than needed. What isn't eaten goes in the fridge/freezer. If I'm going to spend, (a fairly unenjoyable), time prepping and cleaning up the sizeable mess that I always manage to create, I want the maximum benefit. And a couple of cooking free days, sort of makes it worth it.
Being a veggie, pretty much everything is good for freezing - and, somehow, it tastes better when all you've had to do is defrost and stick it in the microwave.
I'm trying to come with a simple article on building state machines. I figured it wouldn't be too complicated, nor should it be since I wanted the article to be accessible to beginners.
The trouble is, I can't think of a simple example of a state machine that is real world at all, and I don't want to lead with something contrived because I also want to explain the "why" of state machines with a practical example.
This shouldn't be very complicated. I've been writing state machines for various things since the mid 1980s. In all that time I must have done something simple, especially since I was coding on a 16-bit machine back in the beginning.
I am having a slum in my motivation too... since I got stopped on my UI math problem... (like.. 3 years ago?)
Although.. I started my app recently and got a few new ideas!
But then, I started playing Assassin's Creed: Odyssey again! ^_^
I think the key here is, are there anything you want to learn?
That's what usually start the creative juice again!
Like even now, every now and then, there is a new tech that popup at work that make do some more homework. Like Blazor, Blazor is cool. Though I am holding off for the official WebAssembly release now!
Yeah I thought about learning Blazor but I have little reason to do web dev anymore, except maybe writing blazor components for other people to use.
Still, WebAssembly seems iffy to me to use for a production website, if only because I can't imagine the load times on a large blazor app given how WebAssembly works. Then again, if it's all demand loaded maybe it's not so bad, but I don't see how they can demand load parts of System.dll (or equiv) for example.
Then again, I've never used it - only read about it and have a fair understanding of the general principle, being a more refined, evolved version of web based virtual machines compared to asm.js (which I'm familiar with)
Although.. For Blazor WebAssembly they do a lot of work on trimming down everything...
And the runtime will be cached using HTML5 file access for longer persistance..
And app themselves are usually pretty small...
I guess we shall see soon, the release ETA is sometimes this month!
I've already created a lot of tools for building compiler front-ends. I even developed my own language (actually a subset of C#) for reasons. This however, would be too complicated for the examples I intend to present.
You said you were bored. Think greater! A program for generating any language! An 'inverse-parser' if you will! It could spit out anything, and each syntax could take experts hundreds of years to decipher (or you could make that your next project!)
Heh @ implementing non-finite state machines inside an LBA finite state machine AKA a computer.
I don't know if they're all contrived. I bet your JSON reader uses a state machine if it chunks (rather than reading the entire JSON stream at once) - mine is - I wrote one too because I wanted something fast for bulk processing.
Most of the FSMs I've written were for low level communications protocols (think HDLC/X.25, SDLC/SNA). Never did implement the new-fangled TCP/IP.
One interesting side-effect of implementing some of the older ones (Bisync flavours, anyone?) was proving that the protocols as documented were incomplete. They needed a catch-all state "Human intervention required".
Maybe a toy poll/response protocol? Two interacting FSMs, one for master, one for slave.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012