|
Has anyone done anything in Electron?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I have! Some of Electron is a pain, but it has allowed me to build my Password Manager (C'YaPass) and deploy it to both the *Windows app store[^] and the Snap Store[^] (Linux app store).
You can also get my app at my GitHub GitHub - raddevus/CYaPass-Electron: The official C'YaPass desktop app built on Electron (runs on Windows, Linux, Mac)[^]
Check out the readme at GitHub for how you can clone the repo and run it immediately.
Because of Electron, C'YaPass runs natively on every OS platform (well, the big three macOS, Windows, Linux).
You can get all of the install packages (for any OS) at my official CYaPass site (download landing page): C'YaPass: Forget All Your Passwords | Downloads[^]
(RPM, DEB, DMG (mac), AppImage (linux exe))
You can even try C'YaPass directly in your browser -- nothing to install: https://cyapass.com/js/cya.htm[^]
*My app is FOSS (Free Open Source Software) and links are to each app store.
Questions
That was a lot. Got any specific questions about what was difficult, annoying , etc. about ElectronJS? Happy to help.
|
|
|
|
|
I currently use Kodi (via LibreElec on a Raspberry Pi) for my home theater stuff, but recently, the thumb drive I run it from took a dump and I installed the latest version on a new drive, and some of the stuff I was using is broken (none of the broken stuff is add-on related) and the Kodi guys aren't responsive enough for my liking. For that reason, I'm thinking I want to roll my own app, and I don't want to learn python so I'm thinking Electron might be the answer.
I'm gonna need to run it on Windows (for development), and Linux for actual use, and I need to be able to use a database for the media. I already have a MariaDB database server stood up (Kodi is using it, but their database kinda sucks too, so I'm starting from scratch on that too).
I'm already doing React dev at work, so I'm reasonably familiar with that platform.
I'm only doing this for my own use, so distribution beyond that isn't really a primary consideration, but also isn't out of the question...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
modified 41 mins ago.
|
|
|
|
|
In case you change your mind on the "roll your own" project, give JellyFin a look. I recently switched to JellyFin after years of using Plex on a NAS. JellyFin is clean and fast with none of the bloat of Plex.
|
|
|
|
|
LinkedIn
Peter Kane
Chris Maunder viewed your profile
I'm not linked to him - very strange.
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Hmmm, I have a link to the article I wrote on my LinkedIn page and have seen several of parents look at it, do you?
|
|
|
|
|
Lout never can become one to offer services willingly (9)
@petepjksolutionscom - You are up tomorrow!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I know I volunteered
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
modified 6hrs 15mins ago.
|
|
|
|
|
Yep - but it's easy to lose track when it's once every 28 days. So I added reminders to google to tell me who to remind!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Good idea Paul
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Damn it. If only I had checked your answer beforehand I wouldn't have posted.
|
|
|
|
|
No worries Pete - I didn't answer it properly it was more of a joke
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
|
Well done!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I spent several days making my vector canvas able to "direct bind to a 'draw target'" if it happened to be a bitmap with a supported pixel format.
I did this by extracting the pointer to the bitmap and then doing the standard (y*stride) + x*(stride/width) on it to get my final pointer.
That sucks. For starters it only works with hard bitmaps. I can do better.
Enter gfx_span which is a little structure with a pointer and a length.
You can then do span(location).data and/or span(location).length off a bitmap to get a pointer and a length for the remainder of that row.
This is important, because it opens up the blt capability (direct read/write) to more than just bitmaps. For example, my UIX library the control surface draw target does a translation and clip before writing to the backing bitmap. Without span() I cannot get a raw pointer to the backing bitmap data. I must use methods off the draw target like point() and fill() which is generally much slower - all to do that translation and clip.
Unfortunately the existing code I've worked on for days will not survive this change. I have a lot of work in front of me, all because this span paradigm didn't occur to me on like, Monday. Curse my brain.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I find it not unusual to do quite a lot of work on something in order to find out why it's a bad idea. It takes some fortitude then to ditch it and take a new approach, but it's almost always the best plan. Also, it never seems to take so long or be such hard work the second time.
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Phil J Pearson wrote: Also, it never seems to take so long or be such hard work the second time.
You are so right about that! I just finished retooling and testing. It's all using my new span API.
Normally, I am very gifted at designing by the seat of my pants (while coding). For example my graphics library lasted years without a significant breaking change, especially to the design. I added a ton of features in that time. It's a combination of almost 4 decades of coding + some latent ability.
But maybe that's why I get frustrated with myself when I miss the mark.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Looks like this site is now running like an electric fan whose power is turned off. The fan will rotate for some time under its own momentum, before coming to a stop.
Why I get this inference is that usually spam articles used to vanish after being reported by 5 users. However, now we see spam articles not vanishing even after 25 users report as spam. Looks like no daily maintenance of this site.
|
|
|
|
|
That's a one off case for that particular article. I reported in the Bugs&Suggestions forum.
Many articles reported after that were closed after 5 reports.
Edit: I think someone nuked it.
|
|
|
|
|
That was me.
Spam articles aren't fed to the automated system (because they legitimately contain so much stuff that in a message would be spam) so once the user is gone, his articles can be deleted with no effect on the rest of the system.
I think there is a timing bug that leaves spam articles in place if they get the fifth and sixth vote in close proximity - but it's pretty much impossible to track down in dev!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I don't know who came up with Lidocaine, but I'll have your babies. Spoiler, I don't have a uterus.
If there was ever a perfect example of defensive programming, I lived it today. You youngsters and oldsters pay attention. Your gun won't fire, the bad guy's chainsaw always works fine, and when you try to run, you will trip.
So, my son and daughter have somehow achieved a wild hair. They want a fire pit in the backyard. Today, I am delivering small slate to the area. Shoveling complete, cleaning truck bed complete, daughter closes the lift gate to the truck. Now, I'm 65, so looking to the right and left of the bed - nah, not for me. So, I go to the back, flip my left leg over and step on the hitch...
sling right leg over toward the ground...
tailgate pops open.... this all compresses to 3 seconds. If you laugh, it's okay, but you owe me:
me: I'm in physics land. Fuc.....
daughter: Ohhhh fuc.......!
my head hitting the fire pit rock: fuc.....
my butt hitting more rock: where did you come from... My butt still hurts, I'll be posting images tomorrow
I'm on the ground, scalp injuries bleed so there is blood runnin down my neck and face. No concussion but first words out of my mouth are "don;t call your mom!" she's on the phone with mom... fml.
3 female rants later, some lidocane and 6 staples to close up the 4cm hole in my head....
So teaching programming moment:
1) assume nothing
2) check your return values
3) see #1.
head is throbbing.
Oh, it gets better. Youngest daughter's wedding rehearsal is tomorrow.
Charlie Gilley
βMicrosoft is the virus..."
"the problem with socialism is that eventually you run out of other people's money"
|
|
|
|
|
bummer, feel for you.
Fast forward 25 years: same damage if you brush against the door jam as you pass through.
>64
Itβs weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|
|
Are doors - including the ones in the house I've lived in for 35 years - getting narrower? I keep on bumping into them and yes, it hurts. From this week it will also bruise really badly as am now on anti-coagulants...
|
|
|
|
|
Oh man, that was unlucky. In so many ways.
Keep taking the tablets. As Moses said.
|
|
|
|
|
Wordle 1,216 5/6*
β¬π¨π¨β¬π©
β¬π©π©π©π©
β¬π©π©π©π©
β¬π©π©π©π©
π©π©π©π©π©
|
|
|
|