CCRhode

joined 6 months ago
[–] CCRhode@lemmy.ml 2 points 1 week ago

Alternatively you can use a spreadsheet and generate lists there.

OK, I'm going to wade in here. It occurs to me that the OP could make use of my Tonto2 Python3 script for Linux and Windows. It puts a spreadsheet-like user interface over a *.csv file or files. You just need to make a home for the tag file(s). You can make bookmark lists that way and open the embedded http:// links in your browser. You could use file:/// links for local images. You could add as many columns as you want for all kinds of tags and sort and search the values to your heart's content.

[–] CCRhode@lemmy.ml 1 points 1 week ago
[–] CCRhode@lemmy.ml 18 points 2 weeks ago (2 children)

And ... guess what ... www.bleepingcomputer.com, the source of the story, is one of those.

[–] CCRhode@lemmy.ml 1 points 2 weeks ago

This gets a bit messy. Here's a python code snippet that gives you some idea what I'm up to with my Debian/Gnome desktop:

if while_tweaking('all', 'default browser', '√'):
    ChangeSymbolicLink(
        name='gnome-www-browser',
        action='Make Tor the default browser.',
        old=f'~ccrhode/tor-browser_en-US/{TBB_SCRIPT}',
        new='/etc/alternatives/gnome-www-browser',
        )
    ChangeSymbolicLink(
        name='x-www-browser',
        action='Make Tor the default browser.',
        old=f'~ccrhode/tor-browser_en-US/{TBB_SCRIPT}',
        new='/etc/alternatives/x-www-browser',
        )
    ChangeGConf(
        name='http handler',
        action='Change default Gnome http handler.',
        path='/desktop/gnome/url-handlers/http',
        key_values={'command': 'gnome-www-browser "%s"'},
        )
    ChangeGConf(
        name='https handler',
        action='Change default Gnome https handler.',
        path='/desktop/gnome/url-handlers/https',
        key_values={'command': 'gnome-www-browser "%s"'},
        )
    ChangeGConf(
        name='default browser',
        action='Change default Gnome browser.',
        path='/desktop/gnome/applications/browser',
        key_values={'exec': 'gnome-www-browser'},
        )
if while_tweaking('personal', 'desktop_icons', 'all', 'default browser', '√'):
    full_path = home_path(f'tor-browser_en-US/{TBB_SCRIPT}')
    ChangeDesktopLauncher(  # 2013 Jun 29
        name='firefox',
        action='Desktop icon for browser.',
        exec_=f'{full_path} -new-window %U',  # 2015 May 14
        desktop_name='New Window',
        icon='/usr/share/pixmaps/other/Web.png',
        comment="New window for Tor browser.",
        )
    ChangeDesktopLauncher(  # 2013 Jun 29
        name='firefox',
        action='Desktop icon for browser.',
        exec_=f'{full_path} -new-tab %U',  # 2015 May 14
        desktop_name='New Tab',
        icon='/usr/share/pixmaps/other/Web.png',
        comment="New tab for Tor browser.  This desktop item IS the default browser.  Please leave as-is.",
        key_values={
            'MimeType':
            'text/html;'
            'text/xml;'
            'application/xhtml+xml;'
            'application/xml;'
            'application/vnd.mozilla.xul+xml;'
            'application/rss+xml;'
            'application/rdf+xml;'
            'image/gif;'
            'image/jpeg;'
            'image/png;'
            'x-scheme-handler/http;'
            'x-scheme-handler/https;'
            'x-scheme-handler/about;'
            'x-scheme-handler/unknown;'
            },
        )
    path_local_apps = home_path('.local/share/applications')
    ChangeMkdir(
        name='firefox',
        action='Make default mime desktop files',
        path=path_local_apps,
        )
    APPS_REPERTOIRE = [
        home_path('Desktop/tweaks-New Tab.desktop'),
        '/usr/share/applications/org.gnome.Evince.desktop',  # 2020 Jul 31
        '/usr/share/applications/org.gnome.gedit.desktop',  # 2020 Jul 31
        ]
    for app_name in APPS_REPERTOIRE:
        ChangeSymbolicLink(
            name='firefox',
            action=f'Link {app_name}.',
            old=app_name,
            new=path_local_apps,
            )
    ChangeCommand(
        name='firefox',
        action='Update Mime cache',
        args=f'update-desktop-database "{path_local_apps}"',
        )
    ChangeCommand(  # 2023 Jan 10
        name='firefox',
        action="Force ownership of mimeinfo.cache.",
        args=f'chown {USER.name}:{USER.name} "{path_local_apps}/mimeinfo.cache"',
        )
    ChangeScript(
        name='firefox',
        action='Create defaults list.',
        file_name=f'{path_local_apps}/mimeinfo.cache',
        regexs_subs=[
            (r'\[MIME Cache\]','[Default Applications]'),
            ]
        )
    ChangeSymbolicLink(
        name='firefox',
        action='Link mimeinfo.cache',
        old=f'{path_local_apps}/mimeinfo.cache',
        new=f'{path_local_apps}/defaults.list',
        )
    ChangeDesktopLauncher(
        name='tor',
        action='Desktop icon for anonymizing browser.',
        exec_=full_path,
        desktop_name='Tor',
        icon=home_path('tor-browser_en-US/onion.png'),
        comment="TOR anonymizing browser",
        )
    ChangeDesktopLauncher(
        name='firefox',
        action='Desktop icon for Firefox browser.',
        exec_='firefox',  # 2022 Jan 10
        desktop_name='Firefox',
        icon='/usr/share/icons/hicolor/64x64/apps/firefox-esr.png',  # 2023 Jan 23
        comment="Firefox browser",
        )
    IS_DESKTOP_DIRTY = True

In other words, in place of your browser invocation, you want a script that applies the -new-tab option to the browser invocation and you have to correct a bunch of Gnome configs, symlinks, and MimeTypes to get that to stick.

[–] CCRhode@lemmy.ml 2 points 3 weeks ago

Tor Browser on both Linux/Gnome and Android. I believe I get not only the benefits of ad-blocking and anti-tracking measures but also IP-obfuscation through the Tor network. Sure, there are sites that won't serve content to the Tor network, but screw them!

[–] CCRhode@lemmy.ml 4 points 1 month ago* (last edited 1 month ago) (1 children)

GNOME is entirely adequate.

Yes it is except when it isn't. Maybe there's a reason practically no Adwaita theme alternatives ship with Debian. Maybe not. But, using Gnome, it's the default theme or nothing. I have to admit I don't know from themes. However, there are lots of Gnome themes available from theme peddlers.

Recently I became fed to the teeth with claws-mail, which is a GTK app. In Adwaita the foreground font color is too dark (gray) on top of the background highlight (blue). My eyesight had deteriorated to the point that I just couldn't read the Subject of the current eMail, so I shopped for a new theme that would be ... adequate. I didn't have time to try them all.

I settled on Ant by EliverLara. In this theme foreground font color (white) on background highlight (salmon) is just barely visible. I use it only for claws-mail:

> env GTK_THEME=Ant claws-mail

[–] CCRhode@lemmy.ml 2 points 2 months ago

Does anyone know how I can merge/deduplicate contacts in a .vcf vcard file?

Tonto2 is a python 3/Qt graphical app that runs on desktops. It's main purpose is not to manipulate *.vcf files, but the appendix to the instruction pages tells how, anyway. Tonto2 uses a spread-sheet-like presentation paradigm. With appropriate magical mystical spells, you can import *.vcf as *.csv and sort the *.csv by last-name, phone-number, eMail, zip-code, or whatever. It won't de-dup, but you can spot the duplicates easier once they're collated next to one another in one sequence or another. Show just the significant attributes. Probably you'll want to sort, look, sort, and look again. Killing entries is nearly as simple as checking them off. FAIR WARNING: This process is time consuming, frustrating, and fraught with peril. Keep several versions of your address list until you're sure the final is the one you want to keep forever. My experience is that I always find stuff I want to keep in each of all (sometimes more than two) duplicate entries, so deleting the dup's is not what's called for. Merging means manually copying from one entry and pasting into another. Due to the judgemental nature of how to handle conflicting and out-of-date info, I've hesitated to try to automate the process.

[–] CCRhode@lemmy.ml 1 points 2 months ago

Maybe copying/moving files using a file manager?

FileZilla

-or-

Gnome Commander

...but call me quaint. I still like...

mc

... 'cause it always just works. mc can ostensibly preserve attributes, time-stamps, and (with appropriate privilege on the receiving end) ownership of transferred files (using an sftp server supposedly).

[–] CCRhode@lemmy.ml 2 points 3 months ago (1 children)

I'm not familiar with jabref, so I probably shouldn't stick my oar in here. But I will anyway. I've written my own python script that I use for lists like Web bookmarks. It's a poor man's database manager, so you can add attributes to bookmark entries and sort and search on those attributes.

[–] CCRhode@lemmy.ml 1 points 5 months ago* (last edited 5 months ago)

I'm mystified that poppler-utils is not a viable option. Of course the *.pdf file would have to include the text itself, but many do.

[–] CCRhode@lemmy.ml 10 points 5 months ago* (last edited 5 months ago)

Continue following best practices to mitigate surveillance.

The slimy part of FISA has always been that the data it collects about overseas communications never sunsets. Moreover, Federal law enforcement officials used to be able to troll through the data without a lot of oversight. In 2020 and 2021, there were 270 thousand questionable uses of the data by the FBI looking for dirt — not on foreigners (who are fair game apparently) — but on citizens. The furor over that is what fueled the failed opposition to re-authorization, which succeeded primarily because the FBI insists that the data provides early-warning of terrorists plots and that [the FBI] promises to play fair in the future by digging for dirt only on terrorists here and abroad.

[–] CCRhode@lemmy.ml 6 points 5 months ago (6 children)

I can kind of understand VPN and TOR blocking when those are often used by people wanting to post illegal content or engage in illegal activity that could also be harmful to the service that ends up blocking them.

I can't understand that at all. If they are able to identify a real threat, they understand more about their users than their IP address. Blocking IPs is a brutal and lazy way to deal with an imaginary threat. I they are truly that paranoid, they should do what Reddit does: Ban everybody.

view more: next ›