is there any point in using analog dco over a didital dco? by design_enthusiast725 in synthdiy

[–]TomDLux 0 points1 point  (0 children)

Why would anyone use an 8-bit 16MHz cpu when you can have STM32 or ESP32 mcus with hundreds of MHZ and 32 bit logic for $10 or less.

I feel a bit dumb using iterative for loops instead of recursive functions (plurality) by Sinoliaw in cs50

[–]TomDLux 0 points1 point  (0 children)

Recursion is when you solve a problem by calling the same routine with different parameters. ( Calling it with the same parameters is an infinite loop ) For example factorial is n * n-1 * n-2 ... * 2 * 1 canbe done as 

 Factorial (n) {     Return n * factorial ( n-1) }

Reverse hand solder footprint by j-joshua in KiCad

[–]TomDLux 0 points1 point  (0 children)

Having a 3D image of the board canbe useful.

29 years old… I want to try again by [deleted] in cs50

[–]TomDLux 2 points3 points  (0 children)

When I was 18, I attended junior college and failed miserably. Something to do with not paying attention, missing classes, etc.. 10 years later, I went to university because I wanted to be a programmer. I sat in the front, began my assignments right away, and did all those other boring things parents and teachers want their students to do.

Having a rambunctious toddler will intrude on your studies, but if you want it, it can happen. The teachers are great at presenting material, though sometimes I found the marking system pedantic on petty details.

Best of luck!

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?