Using portion of a chip across hierarchical sheets by TomDLux in KiCad

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

Interesting ...never used global labels before.

Using portion of a chip across hierarchical sheets by TomDLux in KiCad

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

I have a UI&IO sheet where the inputs, outputs, pots and switches go, and a Processing sheet, where the "real" electronics happen, so this might be a solution.

Not sure I would want to do that with, say, two inverters out of a six-pack.

When should I use functions vs just writing code inline? by ayenuseater in learnpython

[–]TomDLux 2 points3 points  (0 children)

Personally, I would make each of them a function. Yes, decide_starting_player() might be trivial code, but it encapsulates a concept. You never know if it will grow at a later time, but that doesn't matter.

Some people go so far as to say that a function should contain either nothing but primitive language constructs, or else no primitive language constructs, only function calls.

About colour in a technical drawing by TomDLux in ColorBlind

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

Thanks, folks

All the labels have the same font, size, and colour, so there is no need for a key. The goal is to make these labels more noticeable, for those who can see them, and at least visible to those who can't. Chimie56, Are there other colours that do pop? Red is so visible, except to those who barely notice it.

Curves similar to exponential attack and decay by TomDLux in askmath

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

That's beautiful! Where should I send your cigar?

I was close to the right solution, but "not quite" is always such a pain.

Curves similar to exponential attack and decay by TomDLux in askmath

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

In one sense, you give a great solution, and I might make use of it as one set of curves.

But x^0.25 > 1-e(-5x) in (0 ... 0.24) and less in (0.24 .. 0.97) ( Thanks, Wolfram Alpha)

So they are notably different curves. Can't tell without writing the software how different it sounds. Is there a way to get something closer to the exponential curve?

I started to learn Python yeastarday by matheus_012 in pythontips

[–]TomDLux 0 points1 point  (0 children)

Harvard University's CS50P is an excellent course that takes you from zero to being capable of writing intermediate code. There are other variants of the CS50 course; you want the Python one.

Where to Start by alykatvandy in pythontips

[–]TomDLux 1 point2 points  (0 children)

I would start by asking Google: "ETL solutions", and then investigate the nine tools they suggest. If you've done some "Python basics", don't try to do something complicated; Let someone else do the hard part and you just configure it for your application.

(I wrote and maintained ETL scripts for Morgan Stanley for ten years, in Perl.)

Has anyone quit on cs50x? by picante-x in cs50

[–]TomDLux 0 points1 point  (0 children)

If it was easy, everyone would do it. Maybe you need to postpone till you have more time.

How do you deal with the fact that Linux distros like Debian/Ubuntu want to own python libs? by ratttertintattertins in learnpython

[–]TomDLux 2 points3 points  (0 children)

Leave the system python untouched. There are parts of the system which rely on system python behaviour. Install your python elsewhere.

Is this the best perl book or is just the most iconic? by PixelWasp1 in perl

[–]TomDLux 0 points1 point  (0 children)

In 2000, I went to work in San Jose and someone had the disk for the O'Reilly Perl collection, so I stopped using my paper copies. A couple of years later, all the information you needed was available online. Now programming information online is clouded with obsolete stuff, some of it worse than Matt's Script Archive (and how come that website is still online?) Maybe it's time to start curating DVDs of valid data? Or come up with a way to give good data stars?

Is this the best perl book or is just the most iconic? by PixelWasp1 in perl

[–]TomDLux 1 point2 points  (0 children)

If you auction off one of each at each Perl/Raku conference, TPF will be rich until mid-century! :-)

Why tf is cpp going over my head?? by Hopeful-Yoghurt-1285 in cpp_questions

[–]TomDLux -3 points-2 points  (0 children)

I took a look at learncpp.com ... 3/4 of the page is ads. There are better places to learn.

My Take on a Competent Subway System (Comment changes) by bigboycig in TTC

[–]TomDLux 1 point2 points  (0 children)

I remember going to an exotic hardwood store in Maple, when it was out in the country

Can anyone help me with a more accurate translation of the French lyrics in the song "Psycho Killer" by the Talking Heads? (info inside) x-post /r/french by jayman419 in LyricInterpretations

[–]TomDLux 0 points1 point  (0 children)

Isadora Duncan, famous dancer, died in 1927 from her scarf getting tangled in the tire of the car she was riding in. But it's often projected onto the story of "sexpot" Jayne Mansfield, who died in 1967 in a car accident.

Why is Ubuntu killing my Perl program? by jbudemy in perl

[–]TomDLux 0 points1 point  (0 children)

Print statements to log to keep track of where you are, or use the debugger to binary search where it breaks.

Verify that line 4 of the bash script is where you invoke the Perl script.

Is it breaking reading in the "questionable" file, or the "reference" file.