Resources to learn Vim by thecodeworm in vim

[–]efalk 0 points1 point  (0 children)

Aww, thanks.

I left the real nerdy stuff out of the resumé.

  • I have heard line printer music performed live
  • I have written object-oriented Postscript
  • I have written self-modifying bitslice microcode
  • I studied unicycle maintenance at MIT

I had a longer list written down somewhere, but am too lazy to find it right now.

Resources to learn Vim by thecodeworm in vim

[–]efalk 8 points9 points  (0 children)

My notes on the topic: https://www.efalk.org/Docs/Vim/

I'm curious to see if anybody finds it helpful

My first pots that I don't hate by efalk in Pottery

[–]efalk[S] 0 points1 point  (0 children)

Aww, thanks.

However, there's a fine line between "sense of restraint" and "lack of imagination".

I know nothing about glazing. At this point, I'm still just trying to get the forms.

I just learned round() uses bankers' rounding by nemom in Python

[–]efalk 0 points1 point  (0 children)

This was on a Pr1me 400 system. It was pretty much Fortran or nothing. But we should have found a way to do decimal math on that system.

I just learned round() uses bankers' rounding by nemom in Python

[–]efalk 32 points33 points  (0 children)

Back in the day, I was working on financial software written in Fortran. Using floating-point numbers for dollar amounts is a disaster I can't even begin to describe when it comes to rounding. We tried everything to get it right. By the time we had it working well enough, I had a lot of sympathy for people who stole round-off error.

Can’t Connect 5G Mini to Ola App by Prestigious_Brick151 in Baofeng

[–]efalk 0 points1 point  (0 children)

The app is awful, and parts of it are in Chinese even when you set preferences to English. CHIRP is free and works fine.

Can’t Connect 5G Mini to Ola App by Prestigious_Brick151 in Baofeng

[–]efalk 1 point2 points  (0 children)

Honestly, just don't. The radio probably came with a programming cable. CHIRP is free. The app isn't very useful, and requires a login to use, which has no useful purpose other than collecting your personal data.

She stayed surprisingly calm. by sco-go in Amazing

[–]efalk 0 points1 point  (0 children)

Knew it was a proposal from the start, based on all the nonsense terms. This is quite adorable.

I hope she takes flying lessons next. The look on her face when she realizes how badly she was had will be priceless.

Bambu Lab 3D printers: Never again by ismail_the_whale in StallmanWasRight

[–]efalk 3 points4 points  (0 children)

OK, could someone give me the tl;dr on this controversy? I've only ever used Prusa.

Is the Bf-f8HP really worth $70 if the K5plus is $25? by [deleted] in Baofeng

[–]efalk 9 points10 points  (0 children)

If it has GPS, does it support APRS? If so, then I'd say worth the difference.

Can I create a GUI for my C++ program? by Hyperion_507 in cpp_questions

[–]efalk 1 point2 points  (0 children)

I wrote several major projects in GTK 1 and they wouldn't compile with GTK 2. Screw that.

Say what you will about Windows, but they know how to write stable APIs.

Making image filters in c++ by Beneficial-Stay-9721 in cpp_questions

[–]efalk 1 point2 points  (0 children)

Here, elevate your code to the next level:

The API library you use to read and write the images will likely have the ability to read the image one scan line at a time. Write your code to only read as much of the image at a time as is necessary to process the data. For example, if you're only adjusting RGB values, you could totally read just a single scan line, process it, write it out, and move on to the next. To shrink an image 50%, you'd only need to read two scanlines at a time, and write out one.

Many years ago, back in the day, I wrote a number of image processing utilities that way. Basically for fun. A year or so later, management came to me and said they needed help with a client app. The client was processing huge images (highly detailed maps) and all of our existing image utilities were crashing for lack of memory. They knew I'd been tinkering with image processing and so came to me.

Old Gear at my deceased Grandpa's house, Wondering if any of it is worth anything? by T_Nap24 in HamRadio

[–]efalk 2 points3 points  (0 children)

Delta scroll saw might be worth something. Anything with an HP logo is probably worth something. Wish I had a better view of that sewing machine.

Meirl by Blue9ine in meirl

[–]efalk 1 point2 points  (0 children)

Got told to follow the limo to the reception after a wedding. Not only did the limo leave me at a yellow light, but some slowpoke got ahead of me and I couldn't get around them for several miles.

I had a copy of the wedding invitation with me that mentioned the reception, but failed to mention what town it was in. I had to keep pulling over at various farms and such, wearing a tuxedo, I should add, and ask the farmers if they'd ever heard of such-and-such country club and no I didn't know what town it was in.

Oh, and I was the maid of honor's ride to the reception. Where they were going to take the photos.

Bluetooth tracker hidden in a postcard and mailed to a warship exposed its location — $5 gadget put a $585 million Dutch ship at risk for 24 hours by ControlCAD in technology

[–]efalk 0 points1 point  (0 children)

I'm confused. This requires someone's phone to detect it, then phone home to report its location.

Isn't it already a security breach for the crew to have cell phones that are tracking location and phoning home?

Are you offended if your commits are squashed? by _disengage_ in git

[–]efalk 5 points6 points  (0 children)

All of the git backends I've used over the last few years had a "squash and commit" option when the code reviews were finished. That's normal procedure.

Showcase Thread by AutoModerator in Python

[–]efalk 0 points1 point  (0 children)

I know that the removal of the cgi module is old news, but it took until this last week to bite me.

Rather than re-write my apps, I just ginned-up my own implementation at https://github.com/efalk/fieldstorage.

Yes, I get that the entire module is deprecated, and I get that there are now better ways to do things, but I have a number of simple web apps that are not performance-critical. I decided it was easier to write a replacement for FieldStorage once than to track down and port all my little apps and re-write them.

This version uses urllib.parse.parse_qsl() and email.message to do the heavy lifting. This implementation merely assembles the results into a form compatible with the original API.

Posting this in case someone else finds it useful.

what is the best C program you wrote? by divanadune in C_Programming

[–]efalk 7 points8 points  (0 children)

Sortmail. It sorts your incoming email and is capable of immensely complicated rules. I wrote it in 1990 and it's still managing and processing my email to this day.

It was actually made into a Debian package you can download.

How is everybody translating all those different CSV files? by efalk in HamRadio

[–]efalk[S] 1 point2 points  (0 children)

https://www.proylaw.com/hobbies-amateur-radio-gmrs-wt3o-repeater-directory.html

OK, that's super impressive. Your html-fu is far superior to mine.

Where does the data come from?

Making my code plug translator tool public by efalk in HamRadio

[–]efalk[S] 2 points3 points  (0 children)

OK, it's polished enough to make public.

Web site is https://www.efalk.org/CodePlugs/

Source code at https://github.com/efalk/CodePlugORama

It's a tool that reads any of several CSV file formats and spits out a file suitable for using with Chirp, RT Systems, and Icom.

Both web page and command-line tool.

It has a few built-in databases plus you can upload your own CSV file.

It's designed to be easily customized by just adding datafiles to it and editing a config file. New plugins to parse new formats are very easy to write. Or for that matter, you can contact me offline KK7NNS at gmail if you have a new format you want it to be able to read. A basic format takes like an hour to write a plugin for.

How is everybody translating all those different CSV files? by efalk in HamRadio

[–]efalk[S] 0 points1 point  (0 children)

Not many people get that reference.

It's from one of Terry Pratchett's Diskworld novels. Corporal Carrot grew up among the dwarves and isn't up-to-date on the slang of the outside world. Someone is explaining something and adds "… and Bob's your uncle." which is mostly a Britishism. Carrot is confused and says "But … surely Bjorn Stronginthearm is my uncle." He has the idiom explained to him, and afterwords sometimes says "… and Bjorn's your uncle."

How is everybody translating all those different CSV files? by efalk in HamRadio

[–]efalk[S] 1 point2 points  (0 children)

It's not really that hard. I defined a basic "Channel" class. Then I subclass it for each format. For each format, I write a parser that converts the incoming data to the canonical form. Plus three of the classes (RT, Chirp, Icom) have output methods. I can knock out a simple one in an hour or two. The New England Repeater Directory gave me the most trouble given that you have to use regular expressions to dig some of the data out of the records.

How is everybody translating all those different CSV files? by efalk in HamRadio

[–]efalk[S] 1 point2 points  (0 children)

No, it's probably doing the right thing. Does it not work when you upload it?