Saturday, March 28, 2020

The Idiots of Florida - What Can One Do?

It's time to call in the Israelis, that's what.

The python has taken over. They're saying they've completely eliminated foxes and rabits. They're finding  entire deer inside some of the pythons they capture.

Question - you're saying 98% of most of the native wildlife is gone. What did you say when that number was 50%?

What would I do? I'd capture a female and put some kind of gadget or paint on it - radioactive maybe - that lets you track it - spray on some pheromones too - and hope that it finds some males.

Repeat.

At the very least, why not get Hollywood to make a movie on this - with an apocalyptic theme.

And the game industry too, please.

If they're very hard to find - try solving that problem first - offer a reward, not for capture, but for finding a way to detect!

Idiots!

Friday, March 06, 2020

Why doesn't unittest.main() run my function?

 You've got :

import unittest
from myFns import *

class Test_myFnsunittest.TestCase ) :

    def Test_myFn1self ) :
        testcase = {'a' : 1}
        expected = 1
        self.assertEqual( myFn1(testcase), expected )

unittest.main()

And, when you run, nothing happens..  Why? Coz you have to start each test function name with "test", you can't have something else :) Wouldn't a warning be nice though? :)


Thursday, March 05, 2020

Cygwin - Do You Really Have PyGame?

Do the pip3 install pygame thing.
Then, python3 -m pygame.examples.aliens

pygame.error: video system not initialized

?

What they mean is, "Can't open display"

Yes, if you've started the X-server, all you now need is

export DISPLAY=:0

And  you're done..

Sunday, March 01, 2020

How Is Such Pathetic Quality Permitted to Exist?



From : https://blog.dominodatalab.com/interactive-dashboards-in-jupyter ( If they fix it, then try the internet archive).

Do you see the x declared anywhere? You need plt.plot( t, sin( 2*pi*t*f ) )

Idiots..