[-] cy_narrator@discuss.tchncs.de 1 points 3 days ago

Changed and added a feature to check if volume exists before override

84

Please remove it if unallowed

I see alot of people in here who get mad at AI generated code and I am wondering why. I wrote a couple of bash scripts with the help of chatGPT and if anything, I think its great.

Now, I obviously didnt tell it to write the entire code by itself. That would be a horrible idea, instead, I would ask it questions along the way and test its output before putting it in my scripts.

I am fairly competent in writing programs. I know how and when to use arrays, loops, functions, conditionals, etc. I just dont know anything about bash's syntax. Now, I could have used any other languages I knew but chose bash because it made the most sense, that bash is shipped with most linux distros out of the box and one does not have to install another interpreter/compiler for another language. I dont like Bash because of its, dare I say weird syntax but it made the most sense for my purpose so I chose it. Also I have not written anything of this complexity before in Bash, just a bunch of commands in multiple seperate lines so that I dont have to type those one after another. But this one required many rather advanced features. I was not motivated to learn Bash, I just wanted to put my idea into action.

I did start with internet search. But guides I found were lacking. I could not find how to pass values into the function and return from a function easily, or removing trailing slash from directory path or how to loop over array or how to catch errors that occured in previous command or how to seperate letter and number from a string, etc.

That is where chatGPT helped greatly. I would ask chatGPT to write these pieces of code whenever I encountered them, then test its code with various input to see if it works as expected. If not, I would ask it again with what case failed and it would revise the code before I put it in my scripts.

Thanks to chatGPT, someone who has 0 knowledge about bash can write bash easily and quickly that is fairly advanced. I dont think it would take this quick to write what I wrote if I had to do it the old fashioned way, I would eventually write it but it would take far too long. Thanks to chatGPT I can just write all this quickly and forget about it. If I want to learn Bash and am motivated, I would certainly take time to learn it in a nice way.

What do you think? What negative experience do you have with AI chatbots that made you hate them?

[-] cy_narrator@discuss.tchncs.de 15 points 2 months ago

Using a database for notes is like going 2km in a plane.

You can use any relational database for this though but why would you subject yourself to this?

[-] cy_narrator@discuss.tchncs.de 15 points 4 months ago

If I understood your question correctly,

A database is a base for your data, its where your data lives.

A data is the most important thing for most modern applications. You have an account in Lemmy. You have made posts and comments. All that post texts, images, etc has to be recorded somewhere in the server. Thats what a database does.

[-] cy_narrator@discuss.tchncs.de 54 points 5 months ago

"Solution" is to break Windows 10

[-] cy_narrator@discuss.tchncs.de 26 points 5 months ago

It may be unintentional bug. People in the enterprise world need VPN for corporate purposes, they will fix it dont worry

[-] cy_narrator@discuss.tchncs.de 30 points 5 months ago* (last edited 5 months ago)

If you are a high value target, you should not carry normal phones made for normal people.

Its sad that none of the dumb phones were built with security in mind. Linux phones are the second best option, GrapheneOS and CalyxOS would be the least you should go.

Alot of people told me "No these old phones cannot do modern crypto" and I am like they managed to put in full 3d games for Nokia 5130c2 and 5300 such as "1916 Dogfight" and "Need for speed carbon" I am sure these phones have enough processing power to do all the modern crypto if someone tried to.

[-] cy_narrator@discuss.tchncs.de 38 points 5 months ago* (last edited 5 months ago)

I do think that microsoft copilot is good enough for alot of people. I really like it, much more than chat gpt. And that they give you "GPT 4" for free which is cool

Would I love it being forced? No

They will create the same situation as Ubuntu Snap. Is Snap bad? Actually not. Is everything else regarding Snap like Snap Store or the fact that they force it down your throat good? No

[-] cy_narrator@discuss.tchncs.de 18 points 11 months ago

No not tabs sharing data but windows sharing data is unintuitive

5
submitted 11 months ago* (last edited 11 months ago) by cy_narrator@discuss.tchncs.de to c/firefox@lemmy.ml

Chrome does not do it either but are we supposed to be the ones that start a new trend or the ones that follow the trend?

I made a post into their feature request section about how important it is for privacy and security. It is perfectly possible to do but they are not interested in doing.

What I asked was that they provide a feature that allows users to opt in to encrypt all browsing data including history, passwords, cookies, etc. With this feature I can only access my browser information after I open up Firefox and provide my encryption password.

How would this help? Well, there could be viruses that can read Firefox browsing history and cookies and send that to the server. With this feature enabled, one can be even more safer.

There is an option to encrypt Passwords. Thats not enough, every other piece of browsing data should also be encrypted.

450

All the incognito browser windows share the same "session" in Firefox. So say you open an Incognito window to browse Facebook or something, then you open another Incognito window, this new incognito window is linked to the previous incognito window, meaning you are logged into Facebook at that new Incognito window as well. This is because, as I explained before, all the incognito windows share the same "session"

The only way to clear incognito window is to close ALL of them and then create a new incognito window. You dont have to close the main non incognito Firefox window though, just close all the incognito windows. Then open a new one, now your previous session is destroyed and you are new again.

You may know it but its not that common knowledge as it should have been

12

Why use .js extension if it does not even support what Javascript is supposed to support. Here is my user.js file that does not work in Firefox: https://pastebin.com/QZXL0YJp

However the following works: https://pastebin.com/xEjh7g9U

I wonder why not implement a full Javascript engine to read in those configuration files, it kind of sucks to keep on typing user_pref( in every line when one could put all the configs in a list and loop over it and use user_pref() to apply them.

[-] cy_narrator@discuss.tchncs.de 15 points 11 months ago

Someone share all these in unhashed form, for educational purposes

[-] cy_narrator@discuss.tchncs.de 24 points 1 year ago* (last edited 1 year ago)

You are weirder than I am but thats okay, I love weird people

-31

There is a secret easter egg where you can activate a virtual cat on a linux or a UNIX system. Though it is reported that it can hang your system in certain distros so it is best advised you save and close all your work and so on before attempting because if things go wrong, you may be forced to pull out the power plug.

To summon the cat, try the following command:

meow() { meow | meow & }; meow

If you see something like

[1] 583341
[1]+  Done                 meow|meow

Quickly up arrow and rerun the command untill you see no output. And after a few seconds the cat will appear on the screen that follows your mouse pointer. Very cute.

Update: This also works in Windows with GitBash

[-] cy_narrator@discuss.tchncs.de 16 points 1 year ago

Are you planning to download 38TB data?

20

It is important to note that Free Download Manager is not malware, but there was a malicious linux package that impersonated Free Download Manager.

10

Dont use Reddit username or Facebook username or anything like that even if it could be cool. That way you dont have to worry even if some log file or error stack trace recorded your username.

6
submitted 1 year ago* (last edited 1 year ago) by cy_narrator@discuss.tchncs.de to c/eternityapp@lemdro.id

Video demonstration: https://old.reddit.com/r/u_cy_narrator/comments/16bng75/negative_downvote_on_eternity/

The upvote and downvote counter both should have been positive no? How is it negative in this case?

I am not making a huge fuss about this very tiny of a tiny glitch. But I feel like this can become something much more serious if unknown.

18
submitted 1 year ago* (last edited 1 year ago) by cy_narrator@discuss.tchncs.de to c/lemmytips@discuss.tchncs.de

Like there is the Official Mastodon app for Mastodon, and Element app for Matrix, which app is considered the most official lemmy app for Android [possibly also for ios]

Or atleast, the app which supports most(if not all) the features available in Lemmy

12

The ONLY one that works is Raspberry pi os Legacy available from the rpi flasher. What other OS would work?

7

About TV

Company: Daewoo DC

Purchase date: Last 15 years, and the most modern of its time

Size: 24 inch

Interface: Has Audio-Video port

[Other than that, its just a radioactive box, weird signal goes in, video comes out]

About Raspberry pi

Model: Raspberry Pi 4B (4GB RAM)

OS: Raspberrypi OS

Situation

Its not cabling thats the issue. The TV shows visual but the graphics is very hazy and blurry. I suppose it has something to do with either the frame rate made for digital monitors being too high for the TV or the video resolution being too unbarable.

I have used CRT computer monitors but they used VGA. In those monitors, I used to set resolution to 800x600px and it would show the clearest. CRT monitors dont have this concept of pixels, yet setting pixels to 800x600 does the job in VGA CRT monitors. It did not work in case of my TV.

I should mention that the device I purchased to convert HDMI to Audio Video has a toggleable switch that can be changed to NTSC or PAL. I dont know what that is, both works but setting to PAL seems to be slightly clearer.

I am asking here in hopes someone else has done it and how they made it barable.

[Also I am sorry I do not understand the language that is mostly used here. This community seems to be the most active one so I decided to ask for help here]

42

Video demonstration: https://old.reddit.com/r/u_cy_narrator/comments/166y9re/this_space_bug_in_jerboa/

When I am typing and press the backspace, the words get clumped together that shouldnt have been.

Version: 0.0.44

[Sorry that I had to use Reddit to upload video about Jerbora]

view more: next ›

cy_narrator

joined 1 year ago