throwathrowaway
throwathrowaway on Hacker News
> Class Office Hours will also be held each week to give live advice and feedback to the class.
but that schedule only has office hours planned for weeks 2, 5 and 9. Is one an update of the other? Are there any office hours the first week?
//> SomeName not-yet
in the code mean? Are they meant for some kind of automatic processing? Its a bit hard to read with all of them there...
What about stuff like literal_eval? Or even just monkeypatching with name.__dict__[param] = value ?
> It does fine grained locking. Mutable data structures like lists and dicts do their own locking. Incidentally, this is one reason why supporting C extensions would be complicated.
Would there be a succinct theoretical description of exactly how that's implemented anywhere? What about things like numpy arrays.
The algorithm used is exactly what you described here. It wasn't obvious to me that probability density functions were not tracked (the algorithm only tracks which NxN patch are allowed at each location) and randomness only come into play when a random valid choice is made, and there each valid patch is chosen probability proportional to its number of occurrence in the input.
I find it much easier to explore with a concrete copies that can be queried with inputs and outputs, even if they are far from their platonic ideals. For example, the Ometa interpreter I wrote recently was much easier to make by bootstrapping the creation of an initial tree from the output of an existing implementations of Ometa.
Is there any tool to search for podcast by length or format?
I really like the Writing Excuses podcast (from suggestions on HN) and would like to find others in the same format on different topics. Short podcasts with well thought out analysis and answers.
Here's where I got to since the README.md is basically empty for the moment.
So far I've got it to do something. It needs at least these python libraries as dependencies.
- cv2 (This is OpenCV and is not easily installable inside virtualenv)
- colour
- progressbar
- tqdm
I'm running everything from the main manim directory, after a git clone. git clone https://github.com/3b1b/manim
cd manim
Its also expecting a `../animation_file/images` directory to exist. mkdir -p ../animation_file/images
Now each project consist of a set of classes, each one a scene. To view a scene, it can just be instantiated PYTHONPATH=`pwd` python
>>> scene = generate_logo.LogoGeneration()
There's a progress bar that shows a few times. Then a new window shows up for me (from ImageMagick? Maybe that's a dependency too.).Then I think you can call .construct() on the object.
>>> scene.construct()
But it took too much computational power so I stopped there.Here's mine.
$ python -c 'import random;L=sorted(str(random.randint(1,9)) for i in range(4));a=raw_input(L);print(eval(a)==24,sorted(filter(str.isdigit,a))==L)'
['2', '6', '7', '8']8*(7+2-6)
(True, True)
Try to make it print (True, True) without abusing eval too much (intended to be +-*/() only with digits as tokens).A nicer interface, but too long:
import random;L=sorted(str(random.randint(1,9)) for i in range(4));a=raw_input(" ".join(L)+"\n> ");print(eval(a)==24,sorted(filter(str.isdigit,a))==L)If you don't care about the setting: 1. Click "Play game" 2. Press 2, Enter, Star once it loads.
Make 24. Enter the two intermediate results. Numpad plus repeats the question.
I don't know if this is a good place to start if you have trouble hearing but might be fun for practice anyway.