thepiguy

@thepiguy@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

I know that naming variables is one of the biggest unsolved problems of Computer Science but how would you name a boolean flag to be self explanatory?

What I mean is: some boolean flags are perfect for the real world phenomenon they are representing e.g. is_light_on makes you understand perfectly that when it is true the light is on and when it is false the light is off....

thepiguy,

It shouldn’t matter if the user is leaning or jumping or whatever. If the variable says “is_person_standing” then the only information I get out of it is whether the person is standing or not. It would be much simpler to use enums to represent the state if there are such other options. If you don’t have enums in your language, then use constants.

thepiguy,

Your best option would be to use onlyoffice. Not sure what you mean by copilot. Copilot is available in vscode, vim, jetbrains, all of which are cross platform. You can also try using bavarder if you want something like chatgpt.

I personally use a small tool called mods to access gpt 4 using an openai API key in my terminal, but this option is only great if you have a terminal heavy workflow.

thepiguy,

“oh we think your privacy is worth nothing to us. So here, take this email with the bare minimum that we are legally required to provide. We would have never let you know of these changes if it was not legally required”

thepiguy,

The closest I got was by just using avalonia. I had to use winforms for my uni and convincing my teachers to allow my team to use avalonia was not easy. Avalonia is not even remotely similar to winforms. You can try setting up a VM, but I understand that it is not a real solution. I found some docs for an old version of mono which referenced some of the winforms API, but I had no luck running it.

Planning on moving over from Windows 10 to Linux for my Personal Work Station. Can't decide which OS I should switch to.

Windows has been a thorn in my side for years. But ever since I started moved to Linux on my Laptop and swapping my professional software to a cross platform alternative, I’ve been dreaming on removing it from my SSD....

thepiguy,

If you are using davinci on your system a lot, you can try their pre-packaged iso. They recommend rocky Linux nowadays and also provide an iso for it.

thepiguy,
  1. Jetbrains toolbox is proprietary and I can still run it. You do have to explicitly state that you want proprietary software. You can even run random binaries if you setup nix-ld.
  2. The preferred way to do this is by creating a shell.nix for each of your projects with the dependencies defined within.
  3. Not sure about passthroughs, but qemu worked fine for me.

As for nix Vs arch, I still prefer arch. This is not because nix is bad, but because I have used arch for a long time. I use nix on my laptop because I want that reliability, but I will probably never switch to nix on my desktop. I still find that I can debug my mistakes easier on arch, but with nix I can just git checkout oldcommit. With that being said, I do have a distrobox container with arch in my nix machine, if I really wanna install something quickly.

Are there any Windows-exclusive programs you use?

I had to test/fix something at work and I set up a Windows VM because it was a bug specific to Windows users. Once I was done, I thought, “Maybe I should keep this VM for something.” but I couldn’t think of anything that wasn’t a game (which probably wouldn’t work well in a VM anyway) or some super specific enterprise...

thepiguy,

Yeah. I use quite a few windows exclusive programs. I know it is a long list but can’t be helped. Good support and stability beats ideology and these apps provide me that. Here is the list:

I hope this list is helpful to others as well ☺️

thepiguy,

That’s great to hear! Always nice more new programmers. Minecraft modding is great, and it also provides you with a platform with a lot of reach and a lot of really amazing devs willing to help. My most successful project to date has been a simple Minecraft mod. Keep it up and good luck on your modding adventures!

thepiguy,

Oh wow, that’s really bad wtf. I would not mind it if it meant that the employees also get paid that much extra. But by looking at another comment here, it looks to me as if that is not the case. Really sad how undeserving of our support this system is, especially in the USA.

thepiguy, (edited )

Treaspassing, genocide, possession of weapons, robbery, maybe even invasion of dreams? Not sure if the last one is a law. Oh and killing royalty as well. Also took part in an underground fighting rink, so perhaps battery.

Edit: forgot to mention first and second degree murders. Silly me

thepiguy,

I mostly use shell-gpt and ask it trivial questions. Saves me the time for switching to a browser. I have it always running in a tmux pane. As for code, I found it helpful for getting started when writing a functionality, but the actual engineering part should be done manually imo. As for spending money on it, depends on how you benifit from it. I spend about 50c on my openai API key, but I know a friend who used ollama (I think with some mistral derivative) locally on a gaming laptop with decent enough results.

thepiguy,

My religious parents and grandparents also told me to not use my left hand for anything sacred. But their reasoning was that left hand is used to wipe shit, which makes sense to me. Fair enough on that one XD

Edit: also forgot to mention, they have no problem with left handed people. Fortunately, I have never met anyone who is superstitious like that.

thepiguy,

south east asian

thepiguy,

My biggest productivity booster is tmux. I constantly ssh into my pc to continue my work. I even restart my window manager sometimes if I wanna play games or something, but tmux is always there in the background. And being able to get up, go to my living room, open my laptop and continue the work I was doing on my pc has definitely saved me from a few mental blocks.

thepiguy,

The exact same thing happened to me yesterday lmao. I was biking to the bus station and I just see a stupid ram taking half the bike path. Not even sure why these are allowed to be imported, should be plain illegal.

thepiguy,

Arch and endeavour should fall under the same category. You are more likely to break your system, but tinkerers love how barebones those are. I have not broken arch in the 4 years that I used it, but I did dodge a few updates which would have nuked my system. Fedora will be more stable, and it will get fewer breaking changes due to it’s point release schedule.

thepiguy,

But the UK still uses imperial. I remember playing euro truck sim and being annoyed that the road signs don’t match the speed limit shown in the GPS. I first thought this was a bug. Then I remembered that I was in UK and not the Netherlands where I picked up the delivery.

thepiguy, (edited )

I used Linux on my jailbroken Chromebook during school before and I slowly started using more and more of wsl when that came out.

Then one day a windows update which started automatically on my laptop ended up wiping the encryption keys, I lost all my data including a lot of organised financial documents. This happened while I was having trouble with wsl where it would just delete itself on my pc. Then there was the issue of my pc having an English international keyboard which I was unable to remove and windows kept switching me to it every 2 minutes. Which makes programming harder due to how it handles inverted commas. I ended up doing some regedit to remove it, but then all windows system apps stopped working, including settings. And guess what, there was now an update ready which I could not skip because settings won’t open. And did I mention my laptop wiped itself again?

I did not have a single issue since I switched about 4 years ago, I never looked back. Not even for gaming, I exclusively use Linux and I am proud of it. And this is saying a lot, because I always mess up my system when doing random experiments for fun, but there is also always a clear way out. (I use arch btw, and rtfm really helps a lot)

thepiguy,

Yea no shit, idk if it’s just for my region or what, but Spotify does not manage their subscription through the play store. Makes it more annoying to cancel it too, which the execs at Spotify probably see as a plus.

thepiguy,

I was afraid of exactly this happening. So I just deleted my partition when I fully committed to Linux a few years ago.

thepiguy,

I don’t really like emojis, not the default ones anyways :)

thepiguy,

:wq and re-evaluate my lif- oh wait, I forgot to call the function

How do y'all deal with programs not supported on Linux?

I’ve been seeing all these posts about Linux lately, and looking at them, I can honestly see the appeal. I’d love having so much autonomy over the OS I use, and customize it however I like, even having so many options to choose from when it comes to distros. The only thing holding me back, however, is incompatibility issues....

thepiguy,

I try my best to look for open source alternatives. If a company does not support Linux, they don’t deserve my support as someone who has only used linux for almost 5 years now. Luckily I am not dragged all the way up into many of these ecosystems which don’t work on Linux

thepiguy,

When sleep changes from an escape from depression to just a timeskip to more of it

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • lostlight
  • All magazines