Shortcuts is not a tool that is designed to implement interpreters with. But I did it anyways. I was bored while I was in a train. So, I came up with the idea.
For a few days, I have been working on a small interpreter that I am creating using Shortcuts. It is basically a stack machine. I named it IOS Stack Machine (ISM), since I started the project in my phone. But it is actually multi-platform, works for Mac, iPad and iPhone since it is implemented using Shortcuts.
You write your code in Apple Notes, then run it using the interpreter shortcut.
You go to Notes app, create a new note with .ism at the end of its name (e.g. hello_world.ism). Then, the note becomes visible to ISM, which means ISM can now run this file.
The language is not like a high level language like Python. If that was the case, it would take a lot of time to even parse a given program. The interpreter works with small set of instructions and arguments. I also have another project, which is a higher level …
Managed to built a reliable Wi-Fi trigger (upon connection + disconnection) for running shortcuts.
It’s a very simple scenario but demands 2 well known servers running 24⁄7 at home.
HomeBridge + PushCut
There’s a simple Homebridge plugin called People Pro that monitors devices connected to local network.
User can add as many devices as he likes.
Every device is represented (in Home app) by an occupancy sensor that is turned on (detects occupancy) as long as the device is connected to Wi-Fi network and automatically turns off upon disconnection.
So, a simple home app automation when such a sensor detects occupancy (or stop detecting) can easily send a HTTP request to PushCut server and run a shortcut remotely.
It is incredibly reliable and can also replace the Arrive/leave home default triggers.
Side note: “Private Wi-Fi address” switch in Wi-Fi settings must be turned off for home network only.
Similar to what Toolbox Pro provides, but this is my take on the feature.
You may have to restart your device for the actions to show up.
In Actions, you use separate actions for each type (text, boolean, number). The benefit is that it can return the exact type, while Toolbox Pro always return a string. With Actions, when you use the Global Variable: Get Boolean
action, you get an actual boolean. And when you tap the key parameter, it only shows existing keys with a boolean value.
This is an early version. I plan to add more useful utilities (increment/decrement) and types (array/dictionary) in future updates. Let me know what you would like to see.
The maximum total storage capacity is 1 MB, so it’s not suitable for large amounts of data.
This shortcut was working fine, but recently has begun throwing the error shown in the screenshot (the script runs but stops before it sets the sleep focus). When activated the script is supposed to: -Set HomeKit scene -Lock the orientation -Run a Shortcuts automation -Turn on Sleep Focus
I added the “turn off do not disturb” to try and fix this, but to no avail. Any ideas?
Looks like after doubling their programming department that publishes their podcast since 2019, they’re laying some people off as advertising starts to pull back.
When I was young, there was a CBC radio show my parents would listen to with my sister, my brother, and I on Sunday mornings. It was called “The Vinyl Cafe” and was hosted by Stuart McLean. It was recorded live in small towns and big cities alike, across Canada.
As I got older, and into my teens, I was spending less and less time with my family. Friends, school, my first job, etc. Were all contributing to this. My mom and dad decided it would be a good idea if we all picked one Sunday a month, and just do something together as a family. Go on a hike, go to the museum, play a board game, whatever. Everyone took turns to decide what we’d do together. It was actually really awesome, and on those Sundays, when we’d be heading to whatever thing was chosen for that day, we’d be listening to Stuart tell us all these stories from the vinyl cafe.
Well, life happens, and we grew up, and moved away and grew apart. We all no longer had the time to do family day, …
Y’know what I mean. The one podcast episode that distilled everything you like about that podcast; one you’ve gone back to again and again, one that hit you really hard when you first listened or an episode which has left a lasting impression on you. And why?
If I had to stick to one, it would be Swindled: The Crocodile.
I really like the way that this podcast presents two stories in the same episode, but it’s rare that the two stories intertwine so neatly and are both as interesting as one another.
Just wondered what other people would say if they had to choose their one favourite podcast episode?
Just came here to say I love Pocket Casts and wish I discovered it earlier!! Forced me to switch from Overcast because of the new update not supporting anything below iOS 15. Its just so much cleaner and simple to navigate. The custom playlist filter option is fantastic, would recommend.
I keep hearing these ads for podcasts made by/on behalf of companies to promote their brand/goods/whatever. I think Lexus did one with Malcolm Gladwell, and I keep hearing ads about a JustEat podcast.
Now my question is - who are these for? Like, is anyone with their wits about them going to go “Yeah, I really want to listen to five 45-min adverts about the Just Eat brand identity right now”. And if not, then why the hell would companies think this is a good idea to dump money into? The mind boggles.
If you have listened to podcasts like those, did you enjoy them in any way? What did you get out of them?
I stumbled upon this podcast about a month ago and it has affected me deeply. I don’t normally post on Reddit (yep, one of those lurkers), but I feel compelled to share here. It is an ongoing battle with a victim of sexual and ritualistic abuse at the hands of very prominent church leaders in the NY area. Please support Kait in anyway you can.
I like birds. They are a hyper-fixation of mine. A nonfiction encyclopedia or even a fiction book is fine, as long as birds play an important role. Thanks.
Birds.
Is “Indigenous futurism” a thing? Like the Indigenous version of Afrofuturism? I’d love to read some cool sci fi or speculative fiction about a world where the Americas were never colonized, if such a thing exists.
I’m only interested if it’s written by an Indigenous author! Thanks!
I hope this works and the books are interesting.
I’m 45, and deal with C-PTSD and depression on the daily. I find that when I read picture books, the ten ton weight lifts off my brain and body. I transport back to a simpler, not so scary time in life. I even smile and laugh. Yesterday, I read Moose’s Book Bus and just laughed and laughed like a child, and it felt GOOD. So, maybe it would help me heal that little kid too. Thank you.
Holy cow! I can’t thank you all enough for the suggestions! I’m gonna need to build a spreadsheet!
Hello,
I am looking for books with an unreliable narrator, this includes emphasis on memory, blurring the line between fantasy and reality, filling unknown time gaps with biased imaginations etc.
Perhaps I have a slight preference if the narrator is just the narrator and not part of the story, this way the reader is not sure about what are the injected mistakes in the narrative.
Thanks.
Looking for books that completely destroyed you. For me it was “The 6th extinction”. Had to take a day just contemplate my excistance. Changed me a bit actually. Had to rebuild.
I just finished The Witcher 3 and found my favorite aspect of it was the feeling of danger when outside and then safety as I got back to Novigrad where it’s still an active town but safer than the wilderness.
Mostly looking for something realistic feeling, kind of like a life simulator, but potentially open to arcadey style games if they hit the mark. Bonus points if there are taverns and inns, I find those especially cozy.
PS4/5 and Xbox only
Edit: thanks all! This is the best subreddit on the site
I think I’ll probably dive into Valheim as soon as it hits xbox, and I’ll keep looking into these responses too
I’m getting kinda tired of all deep, complex and advanced video games today.
I have problem with mental exhaustion so I want a scaled downed game with classic video game mechanics. Maybe not as simple as Tetris, but you get my point.
In other words, a modern game that resemebles old video games.
I play on the latest Xbox.
I love those movies/games where you can see the end goal in this distance and the story and adventure is about trying to get there. Think lord of the rings with Mt Doom in the distance. I played Heart of Darkness when I was a young’in and it had that feel to it also. Can anyone think of any others?
I want to be able to do fun and creative stuff with magic, not just shoot a damaging projectile. Magicains in fiction often get to do more cool stuff, and get to use their magic for more than just a damaging spell, like creative and manipulating things, enchanting items, and so on.
The thing that comes to mind for me is mage in wow classic, being able to summon food or make portals, which was actually pretty useful. Runescape also comes to mind, as you unlock a bunch of useful spells over time that can be really handy.
It’s not that I don’t like magic combat, I do, I just want to be more than basicly just a acher who shoots spells instead of arrows, there’s more to magic.
Let me explain, I’m a super fan of the Half Life saga and I love all the lore in its universe, but one of my favorite things (my own taste) was to investigate pages, forums, and videos to find out about it, not to be told directly by the story, make it a little more challenging to be able to form all the events that happened off screen, worlds, characters etc..
So which games would have that big but untold lore?
I was playing Super Mario Galaxy 2 on my Wii and was having so much fun skating on the ice levels and swinging with Yoshi around in the Yoshi levels, I felt like I could do them for hours.
However, while fun, that doesn’t help me with the game at all — each level seems designed to be finished quickly so if you stay in a level for a long while, you’re ultimately just lolygagging. It’d be cool to play a game that actually rewarded me for having fun exploring its world and interacting with the characters and environment. TIA!