Scope GUI Made Easier

Last time, I assembled a Python object representing a Rigol oscilloscope. Manipulating the object communicates with the scope over the network. But my original goal was to build a little GUI window to sit next to the scope’s web interface. Had I stuck with C++ or even C, I would probably have just defaulted to Qt or maybe FLTK. I’ve used WxWidgets, too, and other than how many “extra” things you want, these are all easy enough to use. However, I had written the code in Python, so I had to make a choice.

Granted, many of these toolkits have Python bindings — PyQt, PySide, and wxPython come to mind. However, the defacto GUI framework for Python is Tkinter, a wrapper around Tk that is relatively simple to use. So, I elected to go with that. I did consider PySimpleGUI, which is, as the name implies, simple. It is attractive because it wraps tkinter, Qt, WxPython, or Remi (another toolkit), so you don’t have to pick one immediately. However, I decided to stay conservative and stuck with Tkinter. PySimpleGUI does have a very sophisticated GUI designer, though.

About Tkinter

The Tkinter toolkit lets you create widgets (like buttons, for example) and give them a parent, such as a window or a frame. There is a top-level window that you’ll probably start with. Once you create a widget, you make it appear in the parent widget using one of three layout methods:

  1. Absolute or relative coordinates in the container
  2. “Pack” to the top, bottom, left, or right of the container
  3. Row and column coordinates, treating the container like a grid

The main window is available from the Tk() method:

import tkinter as tk
root=tk.Tk()
root.title('Example Program')
button=tk.Button(root, text="Goodbye!", command=root.destroy)
button.pack(side='left')
root.mainloop()

That’s about the simplest example. Make a button and close the program when you push it. The mainloop call handles the event loop common in GUI programs.

Continue reading “Scope GUI Made Easier”

CAR T Cell Immunotherapy And The Quiet Hope For A Universal Cancer Treatment

All of us have to deal with the looming threat of developing cancer during our lifetime, no matter how good our genetics are, or how healthy our lifestyle is. Despite major improvements to the way that we treat and even cure cases of cancer, the reality today is that not all types of cancer are treatable, in many cases there’s the likelihood that one day it will return even after full remission, and chemotherapy in particular comes with potential life-long health issues. Of the most promising new and upcoming treatments, immunotherapy, is decidedly among the most interesting.

With this approach, it is the body’s own immune system that is taught to attack those cancer cells, requiring little more than a few tweaks to T-cells harvested from the patient’s body, after which they’re sent on their merry cancer-killing way.  Yet as simple as this sounds, finding the right characteristics which identify the cancerous cells, and getting a solid and long-lasting immune response is a tough challenge. Despite highly promising results with immunotherapy treatment for non-solid cancers like leukemia – that have resulted in almost miraculous cures – translating this success to other cancer types has so far remained elusive.

New research now shows that changing some characteristics of these modified (chimeric antigen receptors, or CAR) T-cells may be key to making them significantly more long-lived and effective within a patient’s body. Is this the key to making immunotherapy possible for many more cancers?

Continue reading “CAR T Cell Immunotherapy And The Quiet Hope For A Universal Cancer Treatment”

Retrotechtacular: Studio Camera Operation, The BBC Way

If you ever thought that being a television camera operator was a simple job, this BBC training film on studio camera operations will quickly disabuse you of that notion.

The first thing that strikes you upon watching this 1982 gem is just how physical a job it is to stand behind a studio camera. Part of the physicality came from the sheer size of the gear being used. Not only were cameras of that vintage still largely tube-based and therefore huge — the EMI-2001 shown has four plumbicon image tubes along with tube amplifiers and weighed in at over 100 kg — but the pedestal upon which it sat was a beast as well. All told, a camera rig like that could come in at over 300 kg, and dragging something like that around a studio floor all day under hot lights had to be hard. It was a full-body workout, too; one needed a lot of upper-body strength to move the camera up and down against the hydropneumatic pedestal cylinder, and every day was leg day when you had to overcome all that inertia and get the camera moving to your next mark.

Operating a beast like this was not just about the bull work, though. There was a lot of fine motor control needed too, especially with focus pulling. The video goes into a lot of detail on maintaining a smooth focus while zooming or dollying, and shows just how bad it can look when the operator is inexperienced or not paying attention. Luckily, our hero Allan is killing it, and the results will look familiar to anyone who’s ever seen any BBC from the era, from Dr. Who to I, Claudius. Shows like these all had a distinctive “Beeb-ish” look to them, due in large part to the training their camera operators received with productions like this.

There’s a lot on offer here aside from the mechanical skills of camera operation, of course. Framing and composing shots are emphasized, as are the tricks to making it all look smooth and professional. There are a lot of technical details buried in the video too, particularly about the pedestal and how it works. There are also two follow-up training videos, one that focuses on the camera skills needed to shoot an interview program, and one that adds in the complications that arise when the on-air talent is actually moving. Watch all three and you’ll be well on your way to running a camera for the BBC — at least in 1982.

Continue reading “Retrotechtacular: Studio Camera Operation, The BBC Way”

Fail Of The Week: This Flash Drive Will NOT Self-Destruct In Five Seconds

How hard can it be to kill a flash drive? Judging by the look of defeat on [Walker]’s face in the video below, pretty darn hard.

To bring you up to speed, and to give the “Mission: Impossible” reference in the title some context, it might be a good idea to look over our earlier coverage of [Walker]’s Ovrdrive project. It started way back in 2022 with the idea that some people might benefit from a flash drive that could rapidly and covertly render the data stored on it, err, “forensically unavailable.” This would require more than just erasing the data, of course, so [Walker] began looking at ways to physically kill a memory chip. First up was a voltage doubler to apply voltage much greater than the absolute maximum rating of 4.6 V for any pin on the chip. That corrupted some files on the flash chip, enough of a win to proceed to a prototype that actually succeeded in releasing the Magic Smoke.

But sadly, that puff of smoke ended up being a fluke. [Walker] couldn’t repeat the result, at least not with the reliability required by people for whom data privacy is literally a life-or-death matter. To increase the odds of a kill, he came up with an H-bridge circuit to reverse the polarity of the memory chip’s supply. Surely that would kill the chip, and from the thermal camera images, it sure looked promising. But apparently, even 167°C isn’t enough to forensically disable the chip, which kind of makes sense from the point of view of reflow survivability.

What’s next for [Walker]? He says he’s going to team up his overvoltage and reverse-polarity methods for one last shot, but after that, he’s about out of reasonable options. Sure, a thermite charge or a vial of superacid would do the trick, but neither is terribly covert. If you’re going to go that way, you might as well just buy a standard flash drive and throw it in the microwave or a blender. And we need to remember that this may be something the drive’s owner needs to do with jack-booted thugs kicking in the door, or possibly at gunpoint. It wouldn’t do to be too conspicuous under such circumstances. That’s why we like the “rapid power cycling” method of triggering the drive’s self-destruct sequence; it could easily be disguised as shaking hands in a stressful situation.

Who knew that memory chips were this robust? Kudos to [Walker] for getting the project as far as he did, and we’re still rooting for him to make it work somehow.

Continue reading “Fail Of The Week: This Flash Drive Will NOT Self-Destruct In Five Seconds”

Thanks For Hacking

Hope you’re all having a great Thanksgiving weekend, and are getting your fill of family, food, and maybe even a little bit of fun. Aside from the cranberries, Thanksgiving is probably one of my favorite holidays because of the spirit behind it – thinking about what’s gone well, how you lucked out, and who has done you right over the year.

One of the most poignant expressions of thanks I’ve heard in a while came from Hackaday superfriend [Sprite_tm] in his Supercon talk this year, which he closed by thanking “you all” for pushing him on to keep making crazy projects. “I would never finish these projects without people who would be entertained by seeing all this. This is is effectively art – something that doesn’t make sense. The only way it makes sense is because I want it to exist, and because I know that you all love hearing and reading about stuff like this existing. So thank you very much for that.”

That same sentiment goes for all of us here at Hackaday: Thank you all very much for reading! Without this global community of crazy hackers to write for, we wouldn’t be able to keep doing what we do – it just wouldn’t make sense. And without your hacks, of course, we’d have nothing to write about.

Thanks for sharing, thanks for following along, thanks for inspiring us and for being inspired. Thanks for hacking.

Hackaday Podcast 245: The Silver Swan, ET’s Umbrella Antenna, Model Tanks Vs Space Shuttle Tires

This week, Editor-in-Chief Elliot Williams and Managing Editor Tom Nardi link up through the magic of the Internet to go over some of their favorite stories from the last week. After revealing the bone-chilling winners of this year’s Halloween contest, the discussion switches over to old-timey automatons, receiving deep space transmissions with a homebrew antenna that would make E.T. proud, and the treasures that can be found while poking around in a modern car’s CAN bus.

They’ll also go over how NASA saved the taxpayers a bunch of money by hacking a remote controlled WWII tank, CNC controlled microscopes, and a cinema-quality camera you can probably build from what you’ve already got in the parts bin. Finally, they’ll detail an ambitious effort to recreate an old computer’s motherboard with a new feature in KiCad, and muse over all the interesting things that become possible once your test equipment can talk to your computer.

Check out the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Download and enjoy listening with a cold turkey sandwich.

Continue reading “Hackaday Podcast 245: The Silver Swan, ET’s Umbrella Antenna, Model Tanks Vs Space Shuttle Tires”

Linux Fu: Easy Kernel Debugging

It used to be that building the Linux kernel was not easy. Testing and debugging were even worse. Nowadays, it is reasonably easy to build a custom kernel and test or debug it using virtualization. But if you still find it daunting, try [deepseagirl’s] script to download, configure, build, and debug the kernel.

The Python program takes command line arguments so you can select a kernel version and different operations. The script can download the source, patch the configuration, build the kernel, and then package it into a Debian package you can boot under qemu. From there, you can test and even debug with gdb. No risk of hosing your everyday system and no need to understand how to configure everything to run.

Continue reading “Linux Fu: Easy Kernel Debugging”