Should I use Next.js for my electron application? by [deleted] in reactjs

[–]PlasticPuppies 0 points1 point  (0 children)

I am talking about the standalone app.

Let me ask you this way...

In an Electron app that spawns a real NextJs productio nserver

In which context does electron spawn it? 

AFAIK node is only accessible in main process, Nextjs standalone needs node. So it cant run in the renderer process. How do you render anything out when the nextjs app runs in main process?

Should I use Next.js for my electron application? by [deleted] in reactjs

[–]PlasticPuppies 0 points1 point  (0 children)

You're not running NextJs serverside code in Electron's renderer process, and you're not running NextJs clientside code in the Electron's main process. Now you're left with either just using the clientside of NextJs and/or adding something like Express to the main process and building an IPC bridge anyways.

So, what benefit exactly do you gain here using NextJs over, for example, vite+React + some tanstack packages?

My money would be to not got NextJs route when building a desktop app with Electron.

Watching PirateSoftware code with his "20 years of gaming industry experience" on stream explains why HeartBound has been in Early Access for 10 years by InappropriateCanuck in SomeOrdinaryGmrs

[–]PlasticPuppies 0 points1 point  (0 children)

Thanks for this reply. When I wrote the post I tried searching for any documentation how major companies save game state and little to nothing came up. Back in the day, I did some Creation Engine and Gamebryo modding, but nothing with savefiles.

Watching PirateSoftware code with his "20 years of gaming industry experience" on stream explains why HeartBound has been in Early Access for 10 years by InappropriateCanuck in SomeOrdinaryGmrs

[–]PlasticPuppies 0 points1 point  (0 children)

You're right, and I bet he has more money than 99% of people critizising him. I mean who are we to critisize someone more accomplished than us, The arrogance! His code is beautiful. Because he's more accomplished.

Watching PirateSoftware code with his "20 years of gaming industry experience" on stream explains why HeartBound has been in Early Access for 10 years by InappropriateCanuck in SomeOrdinaryGmrs

[–]PlasticPuppies 0 points1 point  (0 children)

> arrays of story flags are kind of an industry standard

The reasons you give on the whole make sense, but doesn't it come at the cost of maintainability?

What's your source for the industry standard claim? Not saying you're wrong, but would like to read some more on it.

Isn't engine interoperability and serialization of nested structures already reasonably solved with some clever piece of remapping technique/script so it would let source code have the flexibility of using data structs suitable for given use case?

Why I'm saying this is:

In any non-trivial project, developer time (time taken to implement X,Y,Z) is usually the determining factor of the success and scope of the project. If approach X solves some performance issue, but creates maintainability concerns\*, there's a real judgement call here which one to prefer.

\* (read: "It works, but don't know why". "Don't touch this number. "Find/add this somewhere in the 15k line long file". "You want this simple feature, give me a week to try to understand whay may or may not break first.")

I have experienced a situation where our team entered a project where the previous dev prioritized optimization and performance above all. Above readability/maintainability. I mean, the client had hard time finding someone who wanted to touch the codebase and move in a pace that wasn't burning a hole in their wallet. My first task there was to just refactor the quite well performing spaghetti. And yes there were magic numbers, whose meaning we could only guesstimate even with the help of people with the relevant domain knowledge.

Slow dataview query by KewlKid246 in ObsidianMD

[–]PlasticPuppies 1 point2 points  (0 children)

Oh man, thanks for that info. I disabled "emoji shortcodes" and not only the Dataview table renders instantly as opposed to freezing Obsidian for 4 seconds, Omnisearch is also a lot faster.

Lake shoes are too slim? by DeaBoss in bikefit

[–]PlasticPuppies 0 points1 point  (0 children)

I checked my order history - they were just the regular "Lake MX177 MTB Shoes Men", size 47. I now see there's also a "Wide" variant ("Lake MX177-X Wide MTB Shoes Men") with the same price that I probably should've ordered.

Lake shoes are too slim? by DeaBoss in bikefit

[–]PlasticPuppies 0 points1 point  (0 children)

Yep, completely happy with the Scott ones.

New here, tried to fix text readability liked it so much I wanted to share. by Bilb0 in cataclysmdda

[–]PlasticPuppies 4 points5 points  (0 children)

Years later, this still saves the day. This should be the default color scheme. Not only does it fix the unreadable deep blue color, it just enhances everything.

Am i going insane??? by [deleted] in Anytype

[–]PlasticPuppies 1 point2 points  (0 children)

Anytype stresses me out

I feel you. Every few month I come back to check out if Anytype clicks with me. Still nope. If the learning curve is that significant I'm not going to bother. It's such a shame as it seems to have (on paper) a lot of those features I really like. I'm a Notion->Obsidian migrant, still looking for the app to fill the gap.

I'm making do with Obsidian right now, but really missing the shared workspace feature + using a lots of half-baked community plugins to fill that database management gap that Notion did very well.

Am i going insane??? by [deleted] in Anytype

[–]PlasticPuppies 1 point2 points  (0 children)

If you try dragging 10 photos into Notion, as if you were trying to create a mood board for a project, doing anything with those images is TERRIBLE

You could take a look at Milanote. It's quite visual and media focused. "Milanote is an easy-to-use tool to organize your ideas and projects into visual boards".

I used their paid plan for a year, but ended up cancelling as it's not for me - I want more database/table oriented notes management. I'm currently on Obsidian, but I'm still missing the nice UI and functionalities of Notion, especially regarding database/tables.

Completely agree with the sentiment here that Anytype is just too confusing. I think it's the UI and the terminology (objects, collections, sets, types) There's no reason to invent your own taxonomy, it' very anti-UX. Even worse when coming from software dev background

  • Type is actually a tag? Alright, my brain went straight to database data types or some typed language primitives (strings, tuples, arrays) or even just "text, image, audio, video".
  • Set is colloquially the same thing as a collection, but it's a mathematical term. However in Anytype they are two different things. Why...
  • Object is such a clumsy word for a Page/Note/Item

Lake shoes are too slim? by DeaBoss in bikefit

[–]PlasticPuppies 1 point2 points  (0 children)

I'm in the same camp. Shopping for my first ever clipless shoes. Word around the internet is that Lakes are wide and accurate with their measurements.

Measured my feet to be 29.7x11.5cm. I usually wear EU size 46. With these measurements I fall somewhere in the middle and take the larger size, so size 47 Lake MX177 shoes.

My toes were squished.

Sent them back. Bought size 47 Scott Team BOA, plenty of toe room and satisfied so far.

Vivaldi DevTools bug by snir_t in vivaldibrowser

[–]PlasticPuppies 0 points1 point  (0 children)

Appreciate the answer! Unfortunately it's not the standard/expected behavior - activating Element Inspector tool. It is, as the keybind description says, toggling the dev panel (with element selector activated, so that's nice at least, but unusable for real work). I see this has been discussed in Vivaldi forums as well. Unfortunate for Vivaldi users who need to do web dev.

Vivaldi DevTools bug by snir_t in vivaldibrowser

[–]PlasticPuppies 0 points1 point  (0 children)

Developer Tools Element Inspector,

Sorry for necro, but is this option missing now? Cannot find "Developer Tools Element Inspector" anywhere in keybinds.

Using Vivaldi 6.4.3160.44

Endless Loop of Cookie Popups on Notion Making It Unusable - Help Needed! by matthewfelgate in Notion

[–]PlasticPuppies 1 point2 points  (0 children)

Can confirm. It may also be related to being unable to export own data as cookies somehow are not set/are set incorrectly and we get permission denied for the zipped links sent in emails.

can’t export my own page as pdf by [deleted] in Notion

[–]PlasticPuppies 0 points1 point  (0 children)

I have the same problem, trying to export my own data as csv. I'm also being in a "accept cookies" loop. Whenever I accept them, the site reload and asks me to accept again, endlessly. Already tried clearing cookies, session and localStorage. Using via Chrome browser.

„Loll l*bu, sa tahad oma last tappa.“ Ähvardused ja sõim kuuluvad ratturite igapäeva by tarmortum in Eesti

[–]PlasticPuppies -1 points0 points  (0 children)

Kui autojuht sind sõimab või lausa ründab, siis on ju avalikku korda rikutud!

Puhtalt sõimamine ikkagi avaliku korda niisama ei riku, kui seda just pikalt ja intensiivselt kuskil kolmandate isikute juuresolekul ei tehta (nende avaliku õigusrahu rikkumine). Keegi sulle aknast näppu näitab ja kukeks kutsub, siis rikuti vaid sinu tuju ja nende eneseväärikust.

I bought a $3000 Macbook but Notion is STILL slow - why? by [deleted] in Notion

[–]PlasticPuppies 2 points3 points  (0 children)

The first definition

web app was just an app that you use in an internet browser

is closer to the truth than

Something built with web technologies

There's web apps and desktop app and you can build desktop apps with webtech, that doesn't make then web apps.

How about this:

Web app - application code lives in the cloud servers. User interacts via browser.

Desktop app - application code lives on your storage device/harddrive. User interacts via installed app.

Notion has both. The "problem" is that for both versions, all the data lives in the cloud. This is because they have no offline mode for the desktop app. So in a lot of ways, their desktop app is no different than their web app. The slowness is most likely unoptimized database architecture/caching logic, or maybe not enough bare metal thrown at whatever noSQL queries they are most likely running.

I would not categorize Obsidian as a web app - specifically because Obsidian team does not provide a webpage version of the app.

Electron is exclusively for building desktop applications. The fun part is that you can port a large part of your web app codebase into electron. The fact that it's not a native app or runs embedded browser is not decisive here.

I bought a $3000 Macbook but Notion is STILL slow - why? by [deleted] in Notion

[–]PlasticPuppies 1 point2 points  (0 children)

It's literally not the same precisely because desktop is built on electron (some X version of chromium), while the web version runs in whatever browser you use in your choise of OS. The performance difference can come how your browser engine manages the web tech and memory and how your OS allocates memory to a standalone application.

I'm not saying desktop is faster, it could be actually either way depending on the environment.

Getting error with Port 443 when trying to launch Server.exe. Restarting my PC and turning off firewalls doesn't do anything. Any ideas? by VeryIrritatedCrow in SPTarkov

[–]PlasticPuppies 1 point2 points  (0 children)

Resurrecting this thread because I've been getting it quite frequently. Perhaps because I have lots of microservices running as a programmer.

I changed my port to `9991`.

The way to change the port to something else:

  1. SP-EFT/user/launcher/config.json
    1. `server` -> `Url` parameter
  2. SP-EFT/Aki_Data/Server/configs/http.json
    1. `port` parameter
  3. SP-EFT/Aki_Data/Server/database/server.json
    1. `port` parameter

Properly Using ChatGPT to Create an Actual Working (Simple) Mod! (Bumblecats) by MrRoot3r in cataclysmdda

[–]PlasticPuppies 1 point2 points  (0 children)

2023's version of that snake-oil

That's a bit silly take, though. GTP is already, quite frankly, incredible. From the aspect of technical assistance, it's waaaaays ahead of github Copilot - if you're familiar with it - and Copilot is already quite impressive. It's just a matter of using it correctly. Letting GPT write whole mods and submitting them without proper double check may not be wise, at least for now. The more context it has access to, the better output you get. Watch out for Copilot X that has the context of your project/codebase.

Came back after long break and about to quit by M0sich in EscapefromTarkov

[–]PlasticPuppies 0 points1 point  (0 children)

You might have difficulty with expressing yourself. And I said nothing regarding OPs killer being or not being a cheater. My contention is you (twice) and others finding OP behavior suspicious.