Questions tagged [macos]
macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers.
60
questions
2
votes
1
answer
119
views
Random password generator sh script
Yesterday, I was bored and decided to write a random password generator. At first it used numerous temporary files, changed that by using arrays.
This was written on OS X and should work on Linux ...
2
votes
3
answers
149
views
6
votes
1
answer
561
views
Play Snake Game on Mac OS Terminal using C with ncurses Library
Made a simple snake game in C.
I am just having some fun with program and using this as a spring board of knowledge in hopes to get some confidence to maybe try different kinds of projects. I am ...
1
vote
1
answer
75
views
Javascript CLI to boot iOS simulators, install project, extract data, and merge into JSON
I'm a DIY "dev" - so I really create things that I need or think they'll end up helping others.
I wrote this Swift Package so the iOS community could get device bezel radius' to help with UI ...
4
votes
1
answer
2k
views
Efficiency of wgpu-based 2D Batch Renderer
I've been working on a WebGPU-backed Rust renderer that batches together 2D colored sprites. I hadn't gotten onto the "sprite" portion of it yet, but I'm already finding some performance ...
4
votes
1
answer
73
views
Selective Time Machine backup deletion
Time Machine is a useful backup service for Mac, but deleting multiple backups is cumbersome. This script allows mass deletion of unwanted backups while allowing specified "important" backups to ...
8
votes
2
answers
1k
views
realpath substitute with --relative-to and --relative-base support
In a bash 3 script for OSX machines, I needed the functional equivalent of the realpath command, complete with support for the ...
2
votes
1
answer
120
views
macOS: resetting balance to center (0.5) using Swift
Due to some bug somewhere, my speaker balance kept moving off-center and it was getting annoying. So I cobbled together the code below (based on this question) which—to my surprise—does compile and ...
1
vote
0
answers
236
views
Alt-Coin Wallet QT Project for Mac OS-X
I was told my QT Project file is a hot mess. I'm returning to C++ after many years of doing Java and I'm really new to QT. I would like someone familiar with QT Project files to give my code a once ...
10
votes
1
answer
22k
views
Pure Swift solution for socket programming
I have spend quite some time now to find out how exactly to do socket programming in Swift (Xcode 6.1). There are a few examples out there, but most of them no longer work for the latest release of ...
10
votes
2
answers
1k
views
Wi-fi scheduler written in C
I'm new to C and programming in general (some minimal prior exposure to JS and python). This is also my first time working with shell commands, scripts, and cron. This program works on my macOS and ...
3
votes
1
answer
104
views
Break music player into usable components in SwiftUI
I created a music player using swiftUI.I need to ask a question when I break up my player into usable components. How should I take this approach with the music player? because the music player is one ...
1
vote
2
answers
242
views
Trying (and failing) to implement the best conventions on OOP Swift
I'm making a MacOS app that will do some analysis on the user's calendar data. For now it only supports Apple's native calendar (EventKit), but I will later add ...
2
votes
0
answers
22
views
bash script to delete files resurrected by Adobe InDesign bug
After a March update, Adobe Indesign will resurrect removed directories it was responsible for creating in the first place, but not any files except for one file called "AdobeFnt.lst". So where once ...
2
votes
1
answer
127
views
Moving files from a directory to multiple with names same as file
I have a folder containing thousands of files and directories. I
would like to move all the files that are not contained in a sub
directory into a directory and name it the file name, while ...