Hacker Newsnew | past | comments | ask | show | jobs | submit | spieglt's commentslogin

Thank you!


I've been writing Objective-C recently to use macOS frameworks from Rust. I can just write C wrapper functions and compile as a static library. Otherwise I use Swift.


No objc macro? I still use that for cacao and it mostly “just works”.


I haven't turned on my PinePhone in a long time because none of the OSes was usable for more than a week at a time. Maybe I should try postmarketOS again.


Update: tried postmarketOS again and it seems smoother and more stable. Dock works well though the HDMI screen still turns off and back on every few seconds.


I have a project that's more like AirDrop, doesn't require a local network and configures the hotspot automatically: https://github.com/spieglt/flyingcarpet



Thanks for the link. Looking through the Github, this appears to be close to what I'm looking for on my own project. Namely, being able to share files automatically with nearby devices when they move within range.

I thought Bluetooth might be viable, as beacons and GattServers seem to be designed for this purpose. Android's implementation was painful, yet doable. However, after wading into Microsoft's codebase, I suspect it will be slog.

Question: With an agreed upon network name or configuration, and agreed upon access parameters, how much change do you think it would take for FlyingCarpet to instead by used as a semi-anonymous, dynamic membership mesh network?

Ex: A laptop and a phone get near each other, they recognize their proximity, and that they are both offering the known network, they then check for the presence of known filetypes in a known folder location, and exchange small updates with each other. The same with any number of desktops, laptops, or phones that get near each other. If I was in a mall with 11 other similarly configured phones nearby, and 5 people working on laptops, then my phone would call the 16 other devices, and they would each get a file from my phone, and I would get a file from their phones.


It's a very cool idea, but the first barrier that comes to mind would be that when the clients join the hotspots, they don't have internet access, so joining the network would mean losing internet, for laptops and phones without cellular data. I know the LocalOnlyHotspot API I use on Android doesn't offer internet tethering. I'm not sure how possible it is to ensure that on Windows and Linux devices that host hotspots. Also, the device that offers the hotspot in Flying Carpet is pretty much acting like a normal WiFi access point in infrastructure mode, so a real mesh network would probably look a lot different.


Thanks. Those are the kind of issues I was worried about with a superficial glance. The general idea looks tempting ("send files to nearby devices"). However, dropping connectivity every time would probably be a deal breaker. I was hoping you might be able to connect for like 10-20 seconds, grab a few kB of files, and then continue on your way, having a spotty, partial connectivity to other devices while wandering the above mall scenario.


Great project! Thank you for building it.

If the UI was simpler and more "Apple-like" (hate to say this) I could convince my non-tech coworkers/family/friends to use it.

Also, could you auto detect the other peer's OS? You could skip an extra step and UI element. Do you need it to know which WiFi bandwidth to use?


Thank you! Yeah, obviously the UI is a weak part. I'd like to improve it eventually but as a one-person project I don't want it to have as minimal of an interface as AirDrop. With all the ways transfers can go wrong, I want that information to be in the user's face so they can submit issues and I can help debug easily.

And no, it can't detect anything about the other device until they're on a WiFi network together, and that can't happen until it knows the peer's OS because it has to know whether it or the peer should be hosting the hotspot. Windows has precedence, then Linux, then Android. (The iOS version doesn't need to know the peer's OS because iOS and macOS can't stand up a hotspot programmatically anymore, so it always has to join.)


Thank you for the detailed explanation, it's not my specialty yet really fun to scratch a bit of the surface in other aspects :)


So how would a transfer between two iOS devices work? Neither would be able to create the hotspot, right?


Correct, Flying Carpet doesn't work for Apple-to-Apple transfers, but AirDrop already fills this need.


I used this a while ago, thanks!


Great to hear, thanks for letting me know it worked!


This serves the purpose of cross-platform file sharing. Great job.


Haven't tried yet but this is really cool. Nice job.


Excellent work.


For most manufacturers, you can purchase access to the technical documentation for a short period. I paid Toyota $20 for 48 hours of access and got PDFs of the official instructions for how to remove the 4G module.


How do you find the contact for this?

Also, how hard was it to find the section for removing the module, and how hard was removing the module in your case?

I have a Subaru, but still curious about yours.


Biggest features that keep me on Firefox: decent search (whole word, match case) and proxy settings


Biggest feature for me? Ability to disable efficiency mode which is - by default - on in Windows 11 and which cripples my plethora of open tabs.


https://github.com/spieglt/whatfiles may be useful to find such files


I removed the DCM from my RAV4. The annoying part is that it disables the front-right speaker.


I don't really know how many users I have, so I don't know how "meaningful" my projects are, but I have found some of them posted on French, Chinese, Greek, Russian blogs etc., so hopefully they fill some people's needs besides my own.

https://github.com/spieglt/flyingcarpet

https://cloaker.mobi

https://github.com/spieglt/cloaker

https://github.com/spieglt/whatfiles

https://github.com/spieglt/winage

I learned to program because I was frustrated that after working in IT consulting for several years, I still had no idea how computers worked. I started with "Learn Python the Hard Way" and "Automate the Boring Stuff with Python". Then got a job doing some Windows consulting stuff, and they said they'd hire me as a software engineer if I learned Go, which was a pretty easy step from Python. I'd tried to learn programming as a kid several times and always found it too frustrating. I started working on side projects as a way to learn new languages, improve my resume, and scratch my own itches. The hardest part was coming up with ideas for useful/worthwhile projects. I was super frustrated one day that the easiest way to get a file between two machines that were right beside each other was sending them out to the internet via Google Drive or Dropbox, which made me want to write "cross-platform AirDrop", which became Flying Carpet. If you find yourself wanting a simple piece of software that seems like it should already exist, that's a great project idea.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: