Cleave is an application that lets users persist OS state as a "context" - saving and loading open applications, their windows (and their positions), tabs, open files/documents and so on. Think of it as a workspace or project manager from an IDE, but on the OS-level. Started because of frequent multitasking of heavy work with limited resources.
Made it because I wanted to switch between studying, working, reading, looking for an apartment, etc. without manually managing all states or consuming all resources. I'll release an Open Beta (macOS) as soon as I finish license verification and delta updates, but I keep getting sidetracked...
Nice. My solution to this (on arch linux) was to maintain a script that would open the stuff I need on specific workspaces. I'd always need the following to get work done:
1. Browser on workspace 1
2. Pycharm/IDE on workspace 2
3. Terminals ssh-ed into the compute server on workspace 3
4. Workspace 4 is empty - I use this as my scratch workspace
5. Workspace 5 contains slack and spotify i3 provides you a way to map each application to each workspace. So it was pretty easy to get ^ this setup at the press of a button.
Yeah; in most cases it depends on how the specific apps use OS-features, but I've also implemented a way to make app-specific extensions (i.e. define which files are involved in handling a specific app's state), so that users can customize and potentially extend the functionality and share these definitions (maybe even contribute upstream).
A few months ago I spent a week of my vacation reverse engineering Zelda Classic[1], an awesome tool made by Zelda fans which has many awesome custom-made Zelda-like games made in it.
I'm a web guy, so that's my medium of choice. I called it Quest Maker[2]. The game repo isn't public (haven't figured out what I want to do with this...), but here's the tool I made for converting the binary quest datafiles to JSON[3]. Particularly interesting to me was extracting the sound data from the datafile to recreate a MIDI file, and then using a WASM library to play it in on the web. There is also a gnarly encoding to the datafile, so I had to compile the Zelda Classic datafile loading code and employ cython so the bytes aren't just gibberish. [1] https://www.zeldaclassic.com/ [2] https://hoten.cc/quest-maker/play/ [3] https://github.com/connorjclark/zquest-data
I'm working on a utility to archive and organize old data that I want to keep forever, but I don't want cluttering up my local hard drives and Dropbox account. The initial goals of the project are:
* Design for cold data only. Stuff that is done changing and won't be accessed regularly if at all: completed projects, annual financial records, RAW image files organized by month, etc. * Store items in flat collections, not in folder hierarchies. Store directories as compressed archives. I'm not a librarian and I find folder hierarchies difficult maintain. * Store everything such that the data will still easily accessible even if the index is lost or the software stops working. Use well-known formats and human-readable file names. * Automatically store data in multiple locations, including S3-compatible services, Amazon Glacier, file servers or locally. Allow each collection of items to have its own mix of storage locations. * Organize within collections using tags and metadata. * Provide a simple checkout system to download items when needed. I have the core features working and I am now building the desktop application, which I intend to be cross-platform. However, I've never written a desktop application before, let alone a cross-platform one, so development has slowed while I learn and experiment.
How do you find an item then? I've read numerous research studies that prove people still prefer navigation over search. Ofer Bergman has done a lot of work.
For anyone interested in these features today, check out Git Annex. Fits all these requirements except for tagging. Add files just like with git, then git annex copy file --to some-remote. Intended for large files, you can Zip directories too if you like. I personally like directory organization but that's optional.
The underlying JavaScript code in that app started getting messy because I was working on several other projects simultaneously, but you might find it useful to play with as you consider your desktop app. The archival community uses a simple text-based packaging format from the Library of Congress called BagIt, which allows you to include metadata and checksums with your archived materials so you can ensure their integrity and make sense of them when you get them back. Anyway, you're working on an interesting problem. I'd be interested to see how it goes.
FWIW I've often thought of building a cold storage cloud for this type of stuff. Basically the same functionality of [api, web gui, etc] that everyone has except, files need to be requested and may take some time to become hot/available to the user. It's really just because I think it's silly that the only reason I pay $100+/year to my provider is because I have some archived videos/photos that put me over their free limit. I never touch those files but don't want get rid of them either (I realize I could store myself but them I'm the one responsible if they get lost :))
Actual sunrise sunset timings, yes. And then : might be useful for non-commercial planning of solar panels. I am assuming your shadow tracking takes into account the buildings' heights , sun angle over the months, etc factors also.
Really nice, any plans on showing this on a 3D map? You might be interested in my project, Procedural GL JS: a mobile-first 3D mapping engine with emphasis on user experience. Live demo here: https://felixpalmer.github.io/procedural-gl-js/ (I've also posted separately in this thread).
Wow! This is beautiful and fast. You should be proud of yourself.
There is another project (https://shadowmap.org) that casts shadows in 3D. You might want to reach out to them. For me, I use ray-tracing per pixel because I want more control/information on a per-pixel basis. For example, when will the sun hit the particular location.
I love this.
For years I had been thinking about creating a map where you can spot first and last sun in an area. Now that I’m actually tackling bigger and complexer projects I forgot all about that idea.
Great job!
I've been trying to figure out a smart home automated system to determine if shades should be open or closed to optimize for energy efficiency, accounting for sun intensity, time of day, and orientation of the window. I suppose I could throw something like this on rather than relying on generic sunrise and sunset times. Did you have a lot of wrangling with coordinate systems and the location of the sun changing throughout the year?
Suncalc [1] is the library I use to calculate the position of the sun. Mapzen [2] host public elevation tile data. This blog post [3] is a good overview of the calculations involved.
Comments (1,232) 661 threads
Earlier commentsCleave is an application that lets users persist OS state as a "context" - saving and loading open applications, their windows (and their positions), tabs, open files/documents and so on. Think of it as a workspace or project manager from an IDE, but on the OS-level.
Started because of frequent multitasking of heavy work with limited resources. Made it because I wanted to switch between studying, working, reading, looking for an apartment, etc. without manually managing all states or consuming all resources.
I'll release an Open Beta (macOS) as soon as I finish license verification and delta updates, but I keep getting sidetracked...
1. Browser on workspace 1 2. Pycharm/IDE on workspace 2 3. Terminals ssh-ed into the compute server on workspace 3 4. Workspace 4 is empty - I use this as my scratch workspace 5. Workspace 5 contains slack and spotify
i3 provides you a way to map each application to each workspace. So it was pretty easy to get ^ this setup at the press of a button.
I'm a web guy, so that's my medium of choice. I called it Quest Maker[2].
The game repo isn't public (haven't figured out what I want to do with this...), but here's the tool I made for converting the binary quest datafiles to JSON[3].
Particularly interesting to me was extracting the sound data from the datafile to recreate a MIDI file, and then using a WASM library to play it in on the web.
There is also a gnarly encoding to the datafile, so I had to compile the Zelda Classic datafile loading code and employ cython so the bytes aren't just gibberish.
[1] https://www.zeldaclassic.com/
[2] https://hoten.cc/quest-maker/play/
[3] https://github.com/connorjclark/zquest-data
* Design for cold data only. Stuff that is done changing and won't be accessed regularly if at all: completed projects, annual financial records, RAW image files organized by month, etc.
* Store items in flat collections, not in folder hierarchies. Store directories as compressed archives. I'm not a librarian and I find folder hierarchies difficult maintain.
* Store everything such that the data will still easily accessible even if the index is lost or the software stops working. Use well-known formats and human-readable file names.
* Automatically store data in multiple locations, including S3-compatible services, Amazon Glacier, file servers or locally. Allow each collection of items to have its own mix of storage locations.
* Organize within collections using tags and metadata.
* Provide a simple checkout system to download items when needed.
I have the core features working and I am now building the desktop application, which I intend to be cross-platform. However, I've never written a desktop application before, let alone a cross-platform one, so development has slowed while I learn and experiment.
Continue this thread — 1 reply
The underlying JavaScript code in that app started getting messy because I was working on several other projects simultaneously, but you might find it useful to play with as you consider your desktop app.
The archival community uses a simple text-based packaging format from the Library of Congress called BagIt, which allows you to include metadata and checksums with your archived materials so you can ensure their integrity and make sense of them when you get them back.
Anyway, you're working on an interesting problem. I'd be interested to see how it goes.
https://shademap.app/
Things I learned along the way:
- How slippy maps work and Leaflet.js
- Most elevation maps use data collected back in 2000! [1]
- You can perform calculation on the GPU without knowing GLSL [2]
[1] https://en.wikipedia.org/wiki/Shuttle_Radar_Topography_Missi...
[2] https://gpu.rocks/
https://shademap.app/#25.89382,12.57935,8z,1610728080000t
I was thinking maybe using it to give actual sunrise/sunset times for any position on earth. For example, Denver sunset time is 5PM but the mountains will cast shadow on Denver at 4:40PM [2]
[1] https://www.timeanddate.com/sun/usa/denver
[2] https://shademap.app/#39.70243,-104.99153,10z,1610667780000t
There is another project (https://shadowmap.org) that casts shadows in 3D. You might want to reach out to them. For me, I use ray-tracing per pixel because I want more control/information on a per-pixel basis. For example, when will the sun hit the particular location.
I've been trying to figure out a smart home automated system to determine if shades should be open or closed to optimize for energy efficiency, accounting for sun intensity, time of day, and orientation of the window. I suppose I could throw something like this on rather than relying on generic sunrise and sunset times.
Did you have a lot of wrangling with coordinate systems and the location of the sun changing throughout the year?
[1] https://github.com/mourner/suncalc
[2] https://www.mapzen.com/blog/terrain-tile-service/
[3] http://www.liedman.net/2014/06/25/sunshine/
All comments shown.
Couldn't load more comments. Check your connection and try again.