Skip to main content



Tcl/Tk 9.0 released


This entry was edited (3 months ago)

reshared this

in reply to petsoi

Serious question: I've never met a programmer who has ever actually written anything in Tcl in the real world. If you've working in Tcl, tell me about it! What did you use it for and when? Was it awesome/terrible/etc.?
in reply to Troy

Back in the day TCL was used in a few places in Pixar's Renderman renderer (called PRMan), and in its connection to Maya. You could write little TCL scripts within the Renderman Artist Tools (RAT) that would be evaluated during scene export. I think this still exists in some form inside Tractor, which is their renderfarm management software.

It's been a long time since I used prman but generally Python has replaced everything as the "glue" language, which honestly makes things a lot easier. VFX and game dev used to have a hundred different scripting languages rolling around.

in reply to Troy

The molecular mechanical modeller NAMD and its viewer use TCL as the CLI interface, and it's...fine. I would prefer BASH or python, but it works just fine.

Also Tk is how most LaTeX drawing is dealt with, so trying to modify, say circuit diagrams or chemical structures drawn directly in LaTeX (I.e. chemfig) requires using some Tcl. Again, it's...fine. No huge complaints.

Edit: bad memory, the drawing program in LaTeX is TikZ not TkZ, its unrelated to Tk.

This entry was edited (3 months ago)
in reply to Troy

It's widely used in the EDA (chip design) industry. (Unfortunately)
in reply to Troy

I inherited completely undocumented TCL code at work. I had never heard of TCL before that. That was fun.
in reply to Troy

I created a report generator, When I open the app it welcomes me to a drop-down menu where I select the customer name and click generate and it opens a .pdf with some charts and graphs.

I could have done it with .js or in excel but it takes about 5 or 6 seconds in python where as anything I'd done in .js was adequate, it would seem like it took too long to print/render. And well, excel would have given me some idiotic error a few months down the road.

But other than that? Not much really.

in reply to VintageTech

But you mean you wrote it in python with tkinter as a toolkit, rather than writing it in Tcl (which is its own language, like python).



magic-tape: tui yt client/downloader, new feature: Show video description & comments in the terminal.


cross-posted from: lemmy.world/post/20356859

gitlab.com/christosangel/magic…

Magic-tape is an image supporting fuzzy finder tui YouTube client.

https://social.trom.tf/photo/preview/1024/16379155



## UPDATE

Now introducing a new feature: the video description as well as the comments written by YT viewers will be shown in the terminal window, while the video is reproduced.

https://social.trom.tf/photo/preview/1024/16379158

https://social.trom.tf/photo/preview/1024/16379160

https://social.trom.tf/photo/preview/1024/16379162

Thus, the user can be satisfied reading other viewers having a swing at the politicians/celebrities/stars they love to hate, or, watch closely to their heart's content, as cyber nuclear attacks are launched between self-righteous, valiant and livid keyboard fighters.

Comment loading is asynchronous to video loading, so it is possible that there will be some delay in the appearence of the comments. That depends on the number of comments, network speed etc.



magic-tape: tui yt client/downloader, new feature: Show video description & comments in the terminal.


gitlab.com/christosangel/magic…

Magic-tape is an image supporting fuzzy finder tui YouTube client.

https://social.trom.tf/photo/preview/1024/16379088

---

UPDATE


Now introducing a new feature: the video description as well as the comments written by YT viewers will be shown in the terminal window, while the video is reproduced.

https://social.trom.tf/photo/preview/1024/16379090

https://social.trom.tf/photo/preview/1024/16379092

https://social.trom.tf/photo/preview/1024/16379094

Thus, the user can be satisfied reading other viewers having a swing at the politicians/celebrities/stars they love to hate, or, watch closely to their heart's content, as cyber nuclear attacks are launched between self-righteous, valiant and livid keyboard fighters.

Comment loading is asynchronous to video loading, so it is possible that there will be some delay in the appearence of the comments. That depends on the number of comments, network speed etc.

in reply to Daniel Quinn

Fair enough, you do you.

For the record, no rm -r in the script.

The only rm command, line 394: rm "${UEBERZUG_FIFO_MAGIC_TAPE}"

in reply to christos

To be clear, I'm not throwing shade. That's an impressive piece of software. It's just, given the number of stories I've heard (and experienced) about Bash's tricky syntax leading to Bad Things, I'm less comfortable with running this than I would be with something in a language with fewer pitfalls.

But if others take the chance and it sticks around a bit, I'll come around ;-)

Thanks for the contribution! It's a great idea, and with Google fucking about with blocking things like NewPipe, a project like this is a great answer to that.

in reply to Daniel Quinn

given the number of stories I’ve heard (and experienced) about Bash’s tricky syntax leading to Bad Things,


Been there, done that!

in reply to Daniel Quinn

But if others take the chance and it sticks around a bit, I’ll come around ;-)


Hey, like many bash scripts, this one is just a glorifief one-liner.
But I use it everyday, I am biased, of course, but it is rather convenient, and prevents me from getting lost in rabbit holes.


in reply to RvTV95XBeo

We’ve been feeding it trash and human flesh for ~100 years so that makes sense.



Linux Mint 22.1 Slated for Release in December with Revamped Cinnamon Theme


The Linux Mint 22.1 distribution was slated for release in December 2024 with a revamped Cinnamon theme and better package management.

Slated for release in December 2024, near the Christmas holidays, Linux Mint 22.1 will ship with the soon-to-be-released Cinnamon 6.4 desktop environment featuring a revamped theme that’s much darker and contrasted than before, rounded elements, redesigned dialogs, and a gap between the applets and the panel.


More from the Mint Monthly News: September 2024

The transition towards Aptkit and Captain is now finished. Starting with Linux Mint 22.1, set to be released this December, none of our projects will depend on aptdaemon, synaptic, gdebi or apturl anymore.

reshared this

in reply to pnutzh4x0r

I love Mint 22 so far, it really has matured where my home computer is running Mint is more stable than my work computer running Windows 11, luckily my company uses CrowdStrike so nothing to worry there.

But really I now recommend Mint to my non tech savvy friends and family, as a person who uses Linux should! But joking aside took my sister's old laptop running Windows 7, slapped a SSD and upped the ram to 8 GB into it with Mint and she has been happy


in reply to Sl00k

I shudder to think OP's post was written by an actual person...
in reply to scrion

His comment history seems written by chatgpt. Then again, his first comment is about machine learning, so it wouldn't surprise me that he has adopted the mannerisms of LLM


Can't boot Clonezilla image from Surface Go 1 to Acer Apire 5737z


Hi everyone,

I have a finely tuned Fedora 40 image that I cloned using Clonezilla (see: sh.itjust.works/post/25762756)

I wanted to deploy it on my old Acer Aspire 5737z but it won’t boot. It’s just displaying a — on a black screen for hours.

I’m not so knowledgeable but I guess it means I would have to reinstall the GRUB or whatever.

I’ve booted into my Fedora Live USB and tried the lsblk command people were talking about on the web (I don’t understand the terminal). Here's the result.

I think the SDA disk is the one I would like to boot from.

Can anyone help me understand what I have to do 😇🙏

in reply to Dariusmiles2123

Did you mount the partition to /mnt/sysimage before attempting to chroot it? You can use the ‘mount’ command to see what’s mounted where.
in reply to Dariusmiles2123

Hey there!

It sounds like you’re on the right track! The black screen with a dash usually means the bootloader (GRUB in this case) might need some love. So, you’ll likely need to reinstall GRUB on your old Acer.

Here's a simple way to do it from your Fedora Live USB:

  1. Open a terminal (if it’s not already).
  2. Run lsblk to confirm that your old Acer’s drive is /dev/sda.
  3. Mount the Fedora partition with something like:
    sudo mount /dev/sda1 /mnt
    (Make sure /dev/sda1 is the correct partition; adjust if needed).
  4. Install GRUB by running:
    sudo grub2-install --boot-directory=/mnt/boot /dev/sda
  5. Then create a new GRUB config with:
    sudo grub2-mkconfig -o /mnt/boot/grub2/grub.cfg
  6. Reboot and fingers crossed, it should work!

It sounds a bit like magic (or some weird old ritual), but it should help your Acer find its way. Give it a shot! If it doesn’t work, let us know exactly what you see. We’ve got your back!

in reply to bigsailboat

Image/Photo
Image/Photo
Image/Photo

Thanks for the precise answer adapted to a rookie like me😇😅

Sadly it ain't working. I guess the GRUB installing part which is problematic.

This entry was edited (3 months ago)
in reply to hinterlufer

I get these vibes too, their other comment are in the same style.
in reply to gigachad

Yep, the other comment is even more ChatGPT-ish. And the account was created today. Guess that's a bot.


Yes, Actually, Individual Responsibility Is Essential to Solving the Climate Crisis


A fixation on system change alone opens the door to a kind of cynical self-absolution that divorces personal commitment from political belief. This is its own kind of false consciousness, one that threatens to create a cheapened climate politics incommensurate with this urgent moment.


[...]

Because here’s the thing: When you choose to eat less meat or take the bus instead of driving or have fewer children, you are making a statement that your actions matter, that it’s not too late to avert climate catastrophe, that you have power. To take a measure of personal responsibility for climate change doesn’t have to distract from your political activism—if anything, it amplifies it.

https://www.sierraclub.org/sierra/yes-actually-individual-responsibility-essential-solving-climate-crisis

This entry was edited (3 months ago)
in reply to electric_nan

The thing with 99% leverage sadly has only a chance of 1% to happen while the 1% leverage thing you can just make happen. And if you make the 1% thing happen in more people the votes for the 99% thing start to go up as well. And eating less meat does have an impact. For years now i read headlines that year n had less pig meat being eaten in total than year n-1 (pork being the focus as my country afaik does not have a big beef industry so it's not as relevant to report about it)

We have very little influence on the industry as a whole but if you buy less meat, the meat industry actually becomes smaller over time. The alternative products also become more and more. Super markets over here all have a vegan shelf at least and there's more vegan only restaurants opening up in my city that even made my meat eater colleagues go there to eat from time to time.

in reply to Sas [she/her]

if you buy less meat, the meat industry actually becomes smaller over time.


that has never happened.

ourworldindata.org/grapher/mea…



Målet med kriminalpolitiken måste vara att minska brottsligheten, inte att spärra in så många som möjligt i fängelse. En kriminalpolitik inriktad på att fängsla så många personer som möjligt för så lång tid som möjligt är en misslyckad kriminalpolitik. Det minskar nämligen inte brottsligheten vilket tydligt kan åskådliggöras av exemplet USA.

blog.zaramis.se/2024/09/30/mal…



Man som bedrev juristverksamhet dömd till fängelse. Hovrätten över Skåne och Blekinge har dömt en man som bedrev juristverksamhet för brott mot många klienter. Mannen dömdes till fyra års fängelse för bland annat grovt bedrägeri, grov förskingring och grovt bokföringsbrott.

blog.zaramis.se/2024/09/30/man…



Strax efter klockan tio på söndagskvällen kom det in larm till polisen om skottlossning i Rissne, Sundbyberg. När polisen kom till platsen anträffades två personer i 20-årsåldern med skottskador. De fördes med ambulans till sjukhus. En av dem ska vara lindrigt skadad medan den andre är allvarligt sakdad.

blog.zaramis.se/2024/09/30/sko…





Interstate is closed outside Atlanta as residents evacuate due to a chemical plant fire


Some residents east of Atlanta were evacuated while others were told to shelter in place Sunday to avoid contaminants from a chemical plant fire that sent a massive plume of dark smoke high into the sky that could be seen from miles away.

Interstate 20 was shut down in both directions in the area, the Georgia Department of Transportation said in a post on X. Reports said traffic was snarled as vehicles backed up in the area after the closure.

The fire ignited when a sprinkler head malfunctioned around 5 a.m. Sunday at the BioLab plant in Conyers, Rockdale County Fire Chief Marian McDaniel told reporters. The malfunction caused water to mix with a water-reactive chemical, producing a plume of chemicals.



OpenPrinting News Flash - cups-browsed Remote Code Execution vulnerability


reshared this

in reply to pnutzh4x0r

Yep. While simple to prepare, this will affect almost nobody, as it requires the user to perform an increasingly rare action in a world that's often going paperless.

Also, the likelihood that a regular user will expose port 631 to the internet is probably close to zero. There's several uncommon pieces that have to be in place for this to work, to the point that it's not a simple matter to execute this exploit.

in reply to Telorand

this will affect almost nobody


Is that really true? From evilsocket.net/2024/09/26/Atta…

Full disclosure, I’ve been scanning the entire public internet IPv4 ranges several times a day for weeks, sending the UDP packet and logging whatever connected back. And I’ve got back connections from hundreds of thousands of devices, with peaks of 200-300K concurrent devices.
in reply to sweng

My guess is that most hits that scan is gonna catch is old enterprise networks, that has not been updated or maintained by security.
in reply to sweng

The very next sentence:

Note that everything that is not Linux has been filtered out [in this filtered list of unique IPs]. That is why I was getting increasingly alarmed during the last few weeks.


They said they were getting duplicates and non-*nix hits with that 300k number, which doesn't help them (i.e. the hundreds of thousands of hits was artificially inflated). So yes, the threat is overblown.

Coupled with the fact that patches are already out, and it's easily mitigated by closing 631, and I don't expect this will be much of a problem for most people.

in reply to Telorand

I'm not sure why you say it's "artificially" inflated. Non-linux systems are also affected.
in reply to sweng

How's that? If I'm running a Windows machine, how would a CUPS exploit affect me?

I'm not asking maliciously, but I genuinely don't grasp how that could be a viable attack vector.

in reply to Telorand

You would be vulnerable on Windows, if you were running CUPS, which you probably are not. But CUPS is not tied to Linux, and is used commonly on e.g. BSDs, and Apple has their own fork for MacOS (have not heard anything about it being vulnerable though).
in reply to Telorand

Wait, which list of filtered IPs are you even talking about? The list in the article is a list of unique kernel versions, not IPs.
in reply to Telorand

ipv6 doesn't give the NAT. A malicious website can mount the attack.
in reply to Telorand

Say I host a malicious server with ipv6 only. You visit the site without NAT. I get your ip and ip:631 is open (unless firewall and listen is restricted to prefix). Usual attack afterwards.

Edit: You need to have ipv6, for example many mobile networks.

This entry was edited (3 months ago)
in reply to serenissi

I have full IPv6, none of my ports that I haven't explicitly whitelisted in the firewall can be accessed from the Internet. I can open a host completely, but it's not default. This is on the most common brand of consumer routers here.

Just because it's not NATted doesn't mean there's no firewall in place.

in reply to Laser

Yeah ofcourse firewall is the good idea here. I personally have firewall on on every device so that I can manage what can connect and from where.

The point is though often people just disable firewalls (some distros do not install/enable by default too) to workarround certain issues quickly like kdeconnect not connecting, bridge not working and such.
That's how I think the whole 'ipv4 NAT is the best (consumer) firewall' concept came popular.

in reply to pnutzh4x0r

I don't know why the guy just assumed every linux and BSD machine runs cups-browsed by default?

It took me literally 5 seconds to check that it's disabled on Fedora by default.

Then he wrote a whole paragraph about how no one should use CUPS for printing because based off of his own analysis, it's some insanely crappy and insecure system.

Which is actually stupid because the only alternative is windows?????????? Which is universally known for printer driver and spooler vulnerabilities.

Then he got mad the the maintainer for patching before his disclosure.....


in reply to ooli

However, some people have taken the vagus nerve’s expansive bodily influence as an invitation to engage in pseudoscience. In some corners of the internet, so-called polyvagal therapy—physical or breathing exercises that some claim reset the vagus nerve—is proposed to address just about any disorder of the mind or body. There’s little to no evidence that these popular remedies are anything but placebos.


Always...

in reply to kamenLady.

Because of the placebo effect, all you really need for anything that’s not outright poison to have a positive effect on average is a convincing enough practitioner. Ideally people have narrow criteria for judging that, but it’s just so ripe for exploitation, every scammer can try a different tack, and some are bound to slip through.

IMO, the solution is a system of tight regulations on the definition of medical advice and the qualifications required to dispense it. I can also see that this one specifically would be hard to legislatively prevent without training and licensing yoga teachers, for example.

in reply to kamenLady.

I regularly take essential oils to flush the toxins from my vagus nerve. (/s just in case)
This entry was edited (3 months ago)
in reply to kamenLady.

I'm trying to find studied that show it isn't statistically different from a placebo, but doesn't seem to be well studied. Can anyone share some well designed studies?

in reply to m3t00🌎

Man we are so small. Like one of these in the wrong direction could just incinerate our galaxy.
in reply to Cruxifux





I made a script that configures Ubuntu (mainly its GNOME) the way I like it. I also made it work in Debian and Fedora.


It doesn't do any crazy ricing, as I mostly focused on usability tweaks and automatic installation of my must-have extensions. (Tiling, clipboard manager, dash to dock, desktop icons)

Most notable tweaks include:
- clicking on a running app minimizes it
- clicking on a group of apps brings up their previews
- adds minimize, maximize buttons to windows
- installs flatpak, adds flathub
- install flatpak and snap plugins into gnome-software (doesn't work on Fedora)
- installs snap
- installs mtp-tools and gvfs-backends on Debian to be able to transfer files from a connected phone
- adds right click > New File
- Super + Shift + S brings up the area screenshot
- Super + E opens the file manager
- Ctrl + Alt + T opens the terminal

(Those already configured on Ubuntu don't get configured again, obviously.)

I also recorded a short showcase to prove that it works without errors youtu.be/xf739ivb9hg

This entry was edited (3 months ago)
in reply to BrianTheeBiscuiteer

I was recommended this
flathub.org/apps/io.github.vik…
Seems very user friendly and can do everything except for installing software.
in reply to tsugu

Interesting project. Thanks for the share. Just saying Ansible is a more "general purpose" tool, almost a programming language, to configure most anything, not just desktop environments.