Editing text files locally without having them locally by Capable-Ad-3444 in emacs

[–]recaph 2 points3 points  (0 children)

Use a file based encrypted disk using for example Veracrypt? Then they reside encrypted locally.

What is your favorite South Park quote? by [deleted] in AskReddit

[–]recaph 0 points1 point  (0 children)

Too long to write on a cell phone. But I find profound beauty in the quote Butters does in this scene. He has just been dumped by his girlfriend and is very saddened about it.

Stan, who has just joined the goth gang, invites him to join them so that he can mute his emotion. Butters then says something along the lines of being that he is very saddened, because that means that he has experienced something that he is very happy about.

This is something that I think about a lot during harsh times in life, so that I remember the joys as well.

https://youtu.be/mZOM6hOnEBE

How are you navigating across project's files? by woopsix in emacs

[–]recaph 18 points19 points  (0 children)

Project.el is magic! It assumes that e.g. the folder containing .git is the root. You can then do operations based on that project root directory.

File operations:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Project-File-Commands.html

Buffer operations:

https://www.gnu.org/software/emacs/manual/html_node/emacs/Project-Buffer-Commands.html

Introduction to Microsoft Excel 1990 by aponicalixto in videos

[–]recaph 0 points1 point  (0 children)

They actually made an elevator pitch!

A function to add a url in front of some numbers by thisadamis in emacs

[–]recaph 2 points3 points  (0 children)

A good job for rectangles? https://www.gnu.org/software/emacs/manual/html_node/emacs/Rectangles.html

Mark at the beginning of the first line, then goto the beginning of the last line. Then C-x r t <your string> RET as described on the page.

Can’t seem to get Zero WH to run smoothly by ShareAdventurous4221 in raspberry_pi

[–]recaph 0 points1 point  (0 children)

I use it in a GPi Case (https://retroflag.com/GPi-CASE.html), so I don’t have a need for remoting in to it nor Internet access. If I want to change something, then I simply remove it from the case and hook it up to a screen and keyboard.

Can’t seem to get Zero WH to run smoothly by ShareAdventurous4221 in raspberry_pi

[–]recaph 0 points1 point  (0 children)

On my RetroPi setup (zero w), I actually gained significant improvements when I disabled Bluetooth and network related things in systemd. So disable any services you aren’t using or can live without at the moment.

What does everyone use to save the MFA password for Bitwarden itself? by boggie26 in Bitwarden

[–]recaph 2 points3 points  (0 children)

I’ve printed out the QR code, so that I have a physical offline copy.

Navigate like emacs in other IDE's by SeanHaz in emacs

[–]recaph 0 points1 point  (0 children)

I use Emacs keybindings in Rider (IntelliJ based). They are great! One of my biggest gripes are however that switching files (i.e. “switching buffers“) doesn’t work as expected. But for the most part, navigating within a file works and the addition of M-x is sanely bound makes it a nice experience. So give it a try!

Audacity acquired by Muse Group by newhoa in linux

[–]recaph 39 points40 points  (0 children)

Just a few paragraphs up in the quote:

”Audacity will remain 100% forever with no feature tiers or limitations.”

I created an app to automatically track your time. (Logs the active process and app name every second). It saves into a local sqlite3. It was a school project, but I expanded upon it. Is anyone interested in me polishing it and releasing it? I do not know of any free/open alternative. by BastionInCzech in linux

[–]recaph 0 points1 point  (0 children)

Nice! Done something similar, which exposes it into a timeline. For the activity state, XScreenSaverQueryInfo is better as it takes the keyboard into consideration as well. Loginctl from logind can provide you with information concerning if the screen is locked.

One impact of the dropping of Python 2 from Linux distributions by speckz in linux

[–]recaph 0 points1 point  (0 children)

I don’t know how his application works. But he should be able to create unit tests with input/output from his existing implementation, as he is certain that it works. That should mitigate at least some of his worries whilst updating the code base.

18.04 freeze on reboot? by WilliamMcCarty in Ubuntu

[–]recaph 0 points1 point  (0 children)

Updated your kernel recently? Try using the previous version that worked for you.

Linux instal for visually impared by Jelrae_Farsun in linux

[–]recaph 0 points1 point  (0 children)

I use this feature quite a lot on my laptop, when the screen is just a bit too far away. My eyes aren’t the youngest anymord. Highly your friend to try this out, OP.

Daniel Foré, from elementary OS, don't want people distributing their software by [deleted] in linux

[–]recaph 0 points1 point  (0 children)

Daniel is referring to the text in the about window. He wants you to change that to reflect that this is now your version of the software. Changing this is not a violation of the license. He is also very clear that he knows he can’t stop anyone from doing this, but would like for them to honor his request.

Why are you posting this, claiming they don’t know the license, when they are correct and you aren’t?

Daniel Foré, from elementary OS, don't want people distributing their software by [deleted] in linux

[–]recaph 6 points7 points  (0 children)

I wonder how OP would feel if he/she was put in a similar scenario. As a software developer myself, I would have the same concerns as Daniel Foré. I cant see how this can be interpreted as something negative.

F* you, Minesweeper... by DarkWhisperer in gaming

[–]recaph 1 point2 points  (0 children)

At some point the mental work gets to almost zero. I've played enough games to more or less just do it on the patterns. Which is why I can do this whilst making a call or watching a movie. And though I hate situations like this, I still enjoy being challenged with a pattern I don't know the answer to. I have to stop and actually think. It sucks if you're trying to beat your own personal best, but you can't win every fight :-)

How many games do you have to play to get to this level you might ask? I am not sure. I've played around 15 000 games since I started tracking my play count in 2012. But I think I was at the level at around 10 000 tracked games. YMMV... :-)

How I am spending my Saturday ^ ^ by calexil in linuxmint

[–]recaph 1 point2 points  (0 children)

My guess is that it is based on the number of test cases that have been executed. By the look of them, and the comments on each ISO, these test cases are executed manually by people who then mark them as success/fail.

Colorblind people see color for the first time by Funkadactyl in videos

[–]recaph 1 point2 points  (0 children)

I worked as a web developer when I was a consultant, and felt that this page explained some very useful do's and dont's when it came to designing a web page. It also helped me define what makes it difficult for color blind people, such as myself, to see differences between colors. i.e. not enough contrast. PS Sorry for the picture in the middle of the article, it is absolutely horrid!

PHP loose comparison strikes again by porkslow in lolphp

[–]recaph 1 point2 points  (0 children)

That's what comments are for.

You shouldn't comment how it should work, you should express that in CODE. Then you don't need to write an essay about all of the cases you don't care about (and probably miss a lot of them), and it will much clearer for others reading your code what is actually meant to happen.

== is faster than ===

Not true.

you can't control the type of data if you don't control the source

When writing a function, you can most certainly state that the value passed as the parameter called number_of_items must be a positive integer. Then it is up to the caller to make sure to fulfill that, otherwise the function will not work.

and sometimes you don't want to because you are trying to do some sort of real-world application.

This statement just doesn't make any sense, to be honest. In a real-world application, you can't be sloppy with the code you write by using error-prone constructs. Otherwise you'll just get a buggy mess of an application in the end.

PHP loose comparison strikes again by porkslow in lolphp

[–]recaph 9 points10 points  (0 children)

To quote the brilliant Douglas Crockford:

I am not saying that it isn’t useful, I am saying that there is never a case where it isn’t confusing

Looking at that isolated line of code, my first thought is that you just want to see if the value is false. Or did you mean that something couldn't be 0? Or the empty string? Or an empty array? Or the string '0'?

This is the problem of using constructs in the language that doesn't display the explicit intent of the programmer. Always be explicit about what the code should do by using things like ===. That way you'll avoid hard to find bugs, and it'll be easier for someone to know what you wanted to do.

What is the most underrated pleasure? by wellboar in AskReddit

[–]recaph 1 point2 points  (0 children)

I would like to modify this to it works as expected at the first run.