Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

peterdrake, to random
@peterdrake@qoto.org avatar

A safe deposit box implies the existence of a dangerous deposit box.

peterdrake, to random Luxembourgish
@peterdrake@qoto.org avatar

Pickachu is a bluegrass type Pokémon.

peterdrake, to drawing
@peterdrake@qoto.org avatar
peterdrake, to random
@peterdrake@qoto.org avatar

TLDR: draw.io is groovy for drawing diagrams.

A while back I went through the tutorials for Inkscape and was fairly impressed.

Now that I sat down to draw some box-and-arrow data structure diagrams, I found that (a) the knowledge had fallen out of my head and (b) it was nearly impossible to figure out how to do things by playing with the program. I probably spent the better part of an hour trying to center text vertically within a box. A DuckDuckGo search was useless, because I kept getting videos explaining how to do much fancier things like getting text to lie along a curve. The only source that explained the procedure was, surprisingly, ChatGPT.

Clearly this is far too powerful a tool for my task -- like slicing butter with a chainsaw.

I looked for open source alternatives and alternativeto.net reminded me of draw.io. I had used this before, but been annoyed that it insisted on saving things within Google drive and manually drilling through my directory structure each time. Fortunately, there is now a standalone desktop app that lets me save things locally. It feels much friendlier -- poking around for a few seconds tends to find what I need.

#inkscape #drawio

DeltaWye,
@DeltaWye@mstdn.social avatar

@peterdrake I found Draw.io to be a really useful replacement for Visio - maybe even superior to Visio.

I thought you could always save and open offline with Draw.io too - was that changed recently?

peterdrake,
@peterdrake@qoto.org avatar

@DeltaWye Not sure.

peterdrake, to random
@peterdrake@qoto.org avatar

My workplace is preposterously scenic.

A frickin' gingerbread house
Verdant trees

peterdrake, to python
@peterdrake@qoto.org avatar

If you want to build a simple #Python desktop application with a GUI, is tkinter the standard weapon of choice?

(This is for classroom use, so simplicity of the code is more important than it being fast, powerful, or bulletproof.)

bmaxv,
@bmaxv@noc.social avatar

@peterdrake Depends on what you want to do.

Is it "code just to see that you can write programs".

Is it going to run something you're going to do the actual teaching with.

Or is it "we're doing GUI things today".

I think flask (on click -> different path, use that function do something, then return page) or even brython will work too.

Do you have something like a minimal example of what the end result of the lesson should be?

peterdrake,
@peterdrake@qoto.org avatar

@bmaxv The final project for the class is a (single-player against an AI opponent) Scrabble game. I'd want the simplest thing that can support that. Basically just drawing colored shapes and text on the screen and recognizing mouse clicks and keypresses.

peterdrake, to python
@peterdrake@qoto.org avatar

In #Python, I can define a class Fraction to represent a rational number. I can then create one with Fraction(2, 3).

Is there a way to overload a construction operator so I can say something like 2 ./. 3 instead?

peterdrake, to random
@peterdrake@qoto.org avatar

George C. Scott as Gollum: "My preciousss ... bodily fluids."

peterdrake, to random
@peterdrake@qoto.org avatar

Grant me the serenity to do by hand the things I cannot automate,
the skill to automate the things I can,
and the wisdom to know the difference.

mrcompletely,
@mrcompletely@heads.social avatar

@peterdrake this is quite smart, not just clever, but true

peterdrake, to random
@peterdrake@qoto.org avatar

Spotted: A Mini Cooper with the license plate WEE CAR.

peterdrake, to random
@peterdrake@qoto.org avatar

frantically pressing numbers on keypad I'm in!

Convenience store clerk: Sir, that's a microwave oven.

peterdrake, to ubuntu
@peterdrake@qoto.org avatar

My Ubuntu installation of Discord is borked.

snap refresh discord

gives:

snap "discord" has no updates available

but when I try to launch it, it gets caught in an update failed, retrying loop.

I tried uninstalling and reinstalling it.

Any ideas?

#ubuntu #discord

popey,
@popey@mastodon.social avatar

@peterdrake What does 'snap info discord' say? 54 is the latest release, which is what's published in the snap store.

peterdrake,
@peterdrake@qoto.org avatar

@popey It looks like 54:

$ snap info discord
name: discord
summary: Chat for Communities and Friends
publisher: Snapcrafters✪
store-url: https://snapcraft.io/discord
contact: https://github.com//snapcrafters/discord/issues
license: Proprietary
description: |
Discord is the easiest way to communicate over voice, video, and text.
Chat, hang out, and stay close with your friends and communities.

Snaps are confined, as such Discord may be unable to perform some of the
tasks it typically does when unconfined. This may result in the system log
getting spammed with apparmor errors. Granting access to the system-observe
interface when in the snap will enable the features, and thus reduce the
logging.

snap connect discord:system-observe

Authors

This snap is maintained by the Snapcrafters community, and is not
necessarily endorsed or officially maintained by the upstream developers.
commands:

  • discord
    snap-id: qHVefGEBezeuCeSfTND40uoUD6GRw8BO
    tracking: latest/stable
    refresh-date: today at 15:02 PDT
    channels:
    latest/stable: 0.0.54 2024-05-14 (191) 111MB -
    latest/candidate: 0.0.54 2024-05-14 (191) 111MB -
    latest/beta: ↑
    latest/edge: ↑
    installed: 0.0.54 (191) 111MB -
peterdrake, to random
@peterdrake@qoto.org avatar

Cars seen today:

One with twin exhaust pipes marked HDMI 1 and HDMI 2.

A Smartcar with the license plate HAFOFF.

peterdrake, to random
@peterdrake@qoto.org avatar

Betteridge's Law.

peterdrake, to strangetrip
@peterdrake@qoto.org avatar

The Last Parsec: Eris Beta-V adventure at one point has something called "The Quincunx", comprising five objects. There's a picture of it on the map.

Are the objects arranged in a quincunx? No, they are not.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • ngwrru68w68
  • JUstTest
  • cubers
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • lostlight
  • All magazines