bruce965
@bruce965@lemmy.ml
Professional C# .NET developer, React and TypeScript hobbyist, proud Linux user, Godot enthusiast!
- Comment on SMD Component Identification 5 days ago:
You must have spent a lot of time into this, thank you so very much 🙏
With a bit of persuasion I managed to disassemble it without breaking it. I desoldered U1 and I can confirm that pin 2 is GND. Also, here are better pictures taken with a magnifying glass. Note that pin 1 and 3 were shorted to pin 2, but it didn’t make sense to me, so I assumed they bridged due to the thermal shock when the component burned, so I scraped around them.
And here’s a link to AliExpress.
I guess there is no easy way to bypass it then, it would probably cheaper to buy a new device than to buy a replacement IC. Also, I guess now I will have to upload a clean version of the corrected schematic, I owe this to you and the other great people that replied.
- Comment on SMD Component Identification 5 days ago:
Fair point. There were no such instructions.
I tried desoldering U1, disconnecting the piezo, and powering it with 3V from the batteries side. It blinks rhythmically, so I assume the MCU (or ASIC) is fine. But if I connect the piezo, power consumption drops to < 1mA and nothing else happens. So yeah, that component’s purpose is probably not to charge the batteries.
I will try to read the markings again with a magnifying glass later today. Unless you or someone else have better suggestions.
- Comment on SMD Component Identification 6 days ago:
If not, why does your device have two power sources and one is not rechargeable. That’s a good question, and that’s also something else I didn’t think about. I just checked the instructions and it’s not clear. Perhaps it’s an alternative way to power it. I’ll be honest, this is a cheap device. I don’t want to fix it because it’s expensive, I want to fix it because I literally didn’t turn it on even once before blowing.
try image search Oh. My. God! It worked! How on earth could it know that this specific PCB is what it is? That’s black magic! It didn’t find this specific one, but it correctly classified it and it also found similar designs. Seems like that blown component actually is part of the charging circuit, as other similar designs omit it. I’ll try desoldering it and see if it works. Thank you very much for this suggestion, that blew my mind!
- Comment on SMD Component Identification 6 days ago:
Sorry about the pictures, that’s the best I could do with my phone camera. I took some more, they are not much clearer, but there are more angles at least, link to pictures. It certainly is a 6-pin package.
It didn’t occur to me that it could be part of the battery charging circuit, that would be nice. I am a bit worried about plugging batteries again, as I am afraid I might damage it further. Assuming pins on the left to be 1, 2, 3 from the top and pins on the right to be 4, 5, 6 from the bottom: pin 1, 2, 5 and 6 seem to be shorted, pins 3 and 4 give me 90k resistance.
I didn’t try image search, do you mean on Google Image Search?
- Comment on SMD Component Identification 6 days ago:
Yeah these pictures are not the best, are they? 😬 I took some more, they might be a tiny bit clearer, but I’m afraid that’s the best I can do with my camera, link to pictures. Seems to be AL322 or maybe AL022? Neither of the two returns any results for me, though.
R4 leads to somewhere for sure, but it’s hidden below the IC, so I can’t follow it. To disasemble it any further I would need to break it entirely. I guess that’s an option. I checked the middle right pin again, it only seems to go to C3 as far as I can tell. Pin 1 of U1 doesn’t seem to be marked, at least not anymore, but perhaps it might be guessable from the direction of the text?
- Comment on SMD Component Identification 6 days ago:
I don’t get it 😅
- Submitted 6 days ago to askelectronics@discuss.tchncs.de | 13 comments
- Comment on Self hosted Onedrive alternative 2 months ago:
No, only the local FS. But they have recommendations in their README for integrating with S3 with the help of other tools.
- Comment on Self hosted Onedrive alternative 2 months ago:
You are invited to join the CopyParty! This has a web UI accessible from the browser, also from mobile, files are stored directly on the filesystem (not encrypted or on a database) and you can mount it as a network drive on Windows and Linux. But it doesn’t let you sync files for offline use, at least not without the help of some auxiliary tools.
- Comment on Want to avoid AI gen on Steam? This browser userscript might save your day 3 months ago:
Why would I want to spend my time with a game full of AI generation, when I could play one that had real actual people craft the work.
Because people have different skill sets, and I’d argue that for someone who has no skills in drawing, using AI as a tool to help add little a little polish is not worse than pulling a generic already-seen asset pack from [your favourite game engine]'s marketplace. It all depends on how much, and how, AI is used.
Of course this only applies to indie developers and small studios. Big studios can afford to and should hire artists and designers.
- Comment on Can’t get SSHing shim to work with forgejo for the life of me 5 months ago:
Here’s my config for reference, which works for me:
name: forgejo services: forgejo: image: codeberg.org/forgejo/forgejo:12 environment: - USER_UID=1000 - USER_GID=1000 restart: always volumes: - ./data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - 80:3000 - 2222:22
If you can share your error message we might be able to better pinpoint the issue.
- Comment on How to use a domain I own to self-host services? 7 months ago:
They provide decent defaults for all the not-so-straightforward configurations, and they provide a web UI to configure the rest. That’s the sole reason I would recommend it to get one’s feet wet without having to work too much.
If one is committed to do things “the right way” they could switch to Nginx and “proper” self-hosting later.
- Comment on How to use a domain I own to self-host services? 7 months ago:
Yeah, I’m afraid you have to use a reverse proxy to host multiple subdomains. The CloudFlare daemon is the reverse proxy.
- Comment on How to use a domain I own to self-host services? 7 months ago:
I would say this would be the proper way to do it (at least as a sysadmin), but since it’s OP’s first time I would simplify it to:
- Install CloudFlare ZeroTrust daemon on your local server;
- Set up reverse proxy such as Nginx (optional, the alternative is to use a different subdomain for each service, which might be easier);
- Point the FQDN to CloudFlare. Let CloudFlare handle the certificates, DDoS protection, etc…
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
I have to admit that I didn’t really think about reminders. That would perhaps make more sense for Simple Calendar, perhaps in the future I might consider linking notes and reminders. Or maybe it would make sense to implement it directly in Simple Notes? I don’t know, I’ll keep that in mind for later, thanks!
the number of clicks/menus/presses it takes to create a note
I strongly agree on that. It must be at most as many clicks as on Google Keep, i.e. two clicks (plus a few to open the app).
import existing Keep notes from a Google Takeout into your Simple Notes
I didn’t think about that. That shouldn’t be too hard. After the MVP (minimum viable product) will be ready, imports from various common formats should be implemented, and I guess Google Takeout for Google Keep should be supported too.
Thanks for the suggestions!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Okay, I get it now :P
DXVK was born from a Nier Automata player Linux enthusiast? That’s cool! I never checked, I assumed it was build by some big company like Valve or something. Kudos to Philip Rebohle!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
use case is a shopping list for my SO and I. I want to be able to add stuff throughout the day, and cross them off once I grab them from the shelf, and separately be able to clear completed tasks
Sorry for the late reply. Oh yes, that’s what I like about Google Keep, the collaborative aspect. What do you mean by “separately be able to clear completed tasks”? Do you mean being able to do it from multiple devices which are synchronized in real-time?
[Simple Chat] Why not just use one of the other Matrix clients?
Yes, you have a point… let’s keep Simple Chat for later then. I had this idea of making an app for each of my needs and let them all connect to a single server with a single unified user. Good quality Matrix clients already exists, I guess there is no need to build a custom client for the chat if I end up adopting Matrix as the protocol.
[Simple Docs] This seems overly ambitious.
Let’s say that’s a longer term goal for the future. I might be underestimating the complexity of Google Docs, but if you think about it I would say it’s not much more than a rich-text editor. Basically it’s the same things as text notes, just with a bit more formatting options. I couldn’t say the same thing about Google Sheets and Google Present.
No. Matrix is designed for chat, not data, and self-hosting it requires a fair amount of resources.
Why do you think so? I have tried it and it seems to be as simple as any other server thanks to Docker. I have a script to launch it here (mirror). It seems to use 160MB of memory and about 1% of my CPU when idle. I haven’t done any serious tests though, maybe it wouldn’t scale as well as I think.
I’d personally just DIY it since it’s really not a ton of logic
Well… there must always be a protocol behind it, it can be as simple/specific or as complex/generic as you want, but there must always be an agreement of the format of data exchanged between client and server.
By adopting the Matrix protocol, there wouldn’t be any need to write a custom server, because Matrix servers already exist.
Matrix is designed for chat, not data
What’s the difference between chat and data. A chat is a list of messages. A collaboratively-editable document is a list of changes. As far as I understand, Matrix uses “events” to describe things happening. When a user sends a message, the server emits and event like “add user X’s message Y to your list of received messages”. It shouldn’t be too different than emitting an event “replace text at position X with Y” every time a document changes. They even have ephemeral messages for temporary state, such as “the user X is currently typing”. That should be similar to “the user X placed their cursor at position Y”.
Do you think I might be oversimplifying or thinking it wrong?
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Thank you both for the recommendations!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Regarding multi platform targeting, have you considered something like React Native or Flutter
I have! I use Flutter in a professional setting and I do not hate it, but I am madly in love with React (not Native) for my personal projects. I tried React Native in the past and I found it a bit finicky, but it was just a “brief encounter”, so I might change my mind about it in the future. For now I would go with Electron to save time, but I do not exclude the idea to build a desktop + mobile interface in Flutter in the future. React (not Native) can also run on any platform, that should be more than enough for the MVP.
I absolutely do not want to go with Flutter for the web though, as I feel like it’s the exact opposite of what I would dream the web to be. I feel like Google built Flutter to give Android developers a tool to make apps with the excuse “oh yeah, it works on browsers too” and call it a day. Flutter basically bypasses most of the things that browsers do and in my personal opinion it re-implements everything more poorly than how a traditional web app would. Come on, they even built their own layout engine and even a rendering engine, was that really necessary? Browser extensions don’t integrate well with Flutter apps, and the debugging experience is subpar. I really like Flutter for Android and desktop apps, and I might even say it’s easier/simpler than Android Studio (Kotlin), but personally I feel like it’s just a big dirty hack in the web context.
Okay, I just realized that my reply sounds a lot like a rant. My apologies. Please consider this as my current view on these tools, it might change in the future. It’s not a criticism.
the company behind it shuts down or gets sold
That’s an important concern. Well, the source code is AGPL 3.0, so there is no risk of it disappearing. Also, this would be my hobby project and I absolutely do not expect it to ever become anything commercial. I do not even plan to accept donations or anything like that. Basically it’s something that I need, and since it doesn’t exist I am considering building it myself.
There is a big probability that I might stop working on it either because I find it “good enough” for my needs or because I won’t be able to work on it anymore, but I would say I’ll try to keep it as simple as possible, so it should be relatively easy to maintain. Also, relying on Element (Matrix) maintain the server code would mean I just need to maintain the client, which should cut the work down by 50%. I strongly hope Matrix will never shut down or get sold.
In any case, okay! Let there be the possibility to export data in a common format! (Preferably Markdown)
I feel all my data is siloed across several apps
Matrix supports a way to integrate with third-party data sources, but I haven’t read too much into it as it was not in my goals. Perhaps a Synapse (Matrix) plug-in might allow to integrate notes with third-party sources without having to make any changes to the client code. I might investigate this possibility in a later stage.
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Ah, that’s a good suggestion, but definitely out of my scope. Since I want to make a web UI first, users could look for a word prediction plugin for their browser if that’s something they are interested in. Still, thanks for the suggestion!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
I didn’t know this term! I knew about DAGs which are probably a way to implement CRDTs. I just read the definition on Wikipedia, it says that “[CRDTs feature] an algorithm (itself part of the data type) automatically resolv[ing] any inconsistencies that might occur [in case of conflicts]”, that sounds interesting. I was thinking to try to resolve conflicts automatically whenever possible by adapting Git merge strategies, and when impossible: either just concatenate both versions and let the users fix it manually, or giving users the option to choose line-by-line which version they want.
With this keyword I might be able to find more literature on the topic. Thank you for suggesting it!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Okay, that’s a nice suggestion. I was thinking to try to keep the UI more generic rather than integrate it with operating systems, but an Android widget might not be too hard to do, I might investigate later.
I do know Node, but I am not skilled with PHP, I haven’t used it for 10 years and I’ve noticed that things have changed a lot since the version I knew. I feel NextCloud is a bit overbloated, but I didn’t think about checking how they handled the communication part, that’s a good idea. It doesn’t overlap much with what I had in mind, but I might still be able to learn something. Thanks!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
start by scouting around and see if you can adapt FOSS apps
I see lot of people are recommending me to contribute to existing projects instead of reinventing the wheel. I’ll be honest, I want to do this as close as possible as I envision it, I couldn’t find something close enough to what I had in mind (in particular these three things do not seem to get along well: real-time collaboration, simplicity, reliability/stability). But I’ll be honest, I code for fun and I am lazy. Even if there was another project similar enough to this, I don’t think I would want to invest time to learn all the details and then more time to see if it can be adapted to my vision. Starting from scratch is easier, even though it might not be as beneficial to the FOSS community. Still, thank you for suggesting this, that sounds like it would be the smartest thing to do.
Also, I didn’t know about Murena, thanks for mentioning it!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
E2EE because I wish for a software that you don’t need to self-host. We here on the Lemmy Selfhosted community are lucky to have the skill to do it, but I want other less tech-savvy users to also be able to use this service without having to trust a third-party.
It makes backups much more complicated
You have a point, but if the server acts just as a blind relay to facilitate synchronization, you just need to run this app on a couple of your devices and you have a distributed backup you don’t even need to think about. A copy of all the synchronized documents is stored on your device(s), and it should ideally be exportable at any time, so I would say you don’t need to also have a backup on the server. If you happen to lose all of your devices, you can just add a new one and in a few minutes the server will send you a copy of your data. I would say that makes it unnecessary to keep a plain-text backup on the server, what do you think?
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Whoa, that’s a long list of ideas… let me see…
- That’s the plan, excluding iOS as I do not have a Mac and thus I cannot develop for it
- Certainly
- Certainly!
- That’s not part of the MVP (minimum viable product) I have in mind, but an export function must certainly be added later
- Plug-ins are not part of my goal, but I will do my best to keep the source code modular enough to let people adapt it freely
- We agree on that, global search is necessary, but I did not think about a “search inside a note” option. That seems to make sense, I’ll see what I can do
- Tags are part of my idea, although not the MVP, but folders are not; I will see if I can also add folders without complicating code and UI too much, that doesn’t sound like a bad idea
- Not part of my goal, but maybe in a future iteration
- Yup, that’s what I had in mind too
- As a developer I like Markdown, but it is not on my priority list… perhaps in a future iteration. I was thinking to (maybe) use Markdown behind the curtains, so it might not be too difficult to let users toggle the WYSIWYG
- The first UI that I am planning to develop will be for the web browser, then a lazy-man Electron UI for the desktop as well as something for Android, I just wanted to do something simple. I don’t have the time and skills to do deep desktop integration, perhaps in the future, or maybe someone might contribute this feature if this project actually manages to become something interesting
- That’s not part of the Simple Notes app I was thinking about, but that would make sense for Simple Calendar, perhaps in the future I might consider linking notes and reminders, but that’s not something I am thinking about yet
- I did not think about that, that’s a good idea, I’ll see what I can do
- The first version will not let you upload media, but images are planned. I did not think about sound/video/documents, but I guess why not?
I think notes collaboration might be a anti feature
That’s the main reason why I decided to build this suite of apps in the first place. I want to be able to work collaboratively on things with my girlfriend, and we must be able to do it in real-time. I realize that this is a big chunk of the work required to build something like this, but it is also the main reason why I am not satisfied with the options currently available.
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Oh, I like this a lot! I will consider adopting it if I will actually get this project started. Thanks!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Well… if a FOSS project wants to incorporate collaborative work they could already do it, well… through Matrix for instance.
They might (depending on how the application works) also need to implement additive changes and possibly also a conflict resolution UI if they want to support synchronization from offline changes. But I’m afraid both these things might be very application-specific.
I’ll be honest, I don’t think much of what I have in mind would really be adoptable by existing projects. But I’ll do my best to keep everything relatively modular just in case.
Thanks (again) for the encouragement!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
That’s a good idea and it shouldn’t be too difficult, especially as it wouldn’t even really need collaboration. If I manage to get this thing started I’ll try to add this suggestion to the list of apps. Thanks!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Oh yeah, I used Joplin in the past. Although the goals are quite different from my idea. Joplin is a great recommendation as an alternative to Google Keep, but it’s not real-time collaborative (or federated, for what it matters).
create drawings
Ah, I don’t remember this option. Maybe it wasn’t available when I tried it last time a few years ago. I guess that means Joplin is still being actively developed.
I would also look into collaborating with the people […] Not sure if that will work, but it’s worth a shot if you’re interested
Oh! I just noticed that they have quite a few things besides Docs. I mean… I probably should. My goal is for something much smaller, I just want a replacement for Google Keep, and some day in the near future, SplitWise. Joplin sounds like a better candidate than Numerique.
Thanks for pushing to collaborate, I realize that would actually make more sense than starting a new project from scratch. Not without guilt, I have to admit that I code for fun, and I have more fun working on something that works exactly as I envision it rather than just joining another project. Someday I might learn how to make some real contributions to existing software, but I don’t think this idea of making a simple replacement for Google Keep will be my trampoline to working this way. Still, thank you for trying to push me to do it!
- Comment on Developing a self-hosted alternative to Google Keep 10 months ago:
Oh yeah, both Joplin and NextCloud are great. I tried them both in the past. NextCloud is a bit bloated in my opinion though, I was hoping to go for something simpler both to install and to use.
Most of us here on the Lemmy Selfhosted community are skilled enough to keep a computer running somewhere, expose it securely on the internet (or just LAN, if that’s good enough), and install their own services such as Joplin and NextCloud, but my goal would be to make something that you don’t need to self-host. If you can trust any server, you don’t need to host your own. I like the idea of building a network comprised of both self-hosting users, and “normal” users, like here on Lemmy.
The federation may leave you wanting more and the collaboration might not be “real time” enough for you either, though. If you can build something better by all means go for it.
I’m not sure I understand what you mean. Do you mean writing a protocol that supports federation is a very difficult thing to do? Actually my first draft didn’t include federation as that’s just too much for my skills. But I am considering adopting Matrix, and Matrix includes federation, so why not? They built real-time messaging with Matrix, so I would assume that should be real-time enough for document editing.