Giter Club home page Giter Club logo

agude.github.io's People

Contributors

agude avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

agude.github.io's Issues

Add a link to post history

Use {{ page.path }} to link to the history of posts on github.

Could also use a "Has been updated" flag to turn on only for certain posts.

Fix enum blog post

The code implementing the card class has a bug. I set self._value but do not use it for comparison.

Question about matplotlib animation bliting

Hi, Alex!

I was reading your cool post about animation bliting, you mentioned there:

Fortunately there is a significantly faster alternative: matplotlib’s animation blitting. Blitting increased rendering speed by a factor of 20!

But I don't see you are actually setting blit=True in FuncAnimation. This is from your notebook:

# Generate the animation
anim = animation.FuncAnimation(
    fig=fig,
    func=update,
    frames=step,
    init_func=init,
    save_count=150, #len(list(step())),
    repeat_delay=5000,
)

and by default bliting is not used:

    blit : bool, default: False
        Whether blitting is used to optimize drawing.  Note: when using
        blitting, any animated artists will be drawn according to their zorder;
        however, they will be drawn on top of any previous artists, regardless
        of their zorder.

I also read matplotlib implementation of Animation.save method:

for data in zip(*[a.new_saved_frame_seq() for a in all_anim]):
    for anim, d in zip(all_anim, data):
        # TODO: See if turning off blit is really necessary
        anim._draw_next_frame(d, blit=False)
        if progress_callback is not None:
            progress_callback(frame_number, total_frames)
            frame_number += 1
    writer.grab_frame(**savefig_kwargs)

and it looks that blit just set to False there. It probably works in live/interactive mode, but not when saving to file.

So I really wonder how did you manage to get such performance gain?

random sub sample

Thanks for the great exercise Alex! i.e. https://github.com/agude/agude.github.io/blob/master/files/interview-prep/Interview%20Prep%20Python.ipynb. It's indeed very RAM-consuming, my computer can't handle the whole db but a small portion of it. This is not really an issue but when we randomly sub sample collisions and parties, many of the case_id don't match, thus a lot of rows in one table is not relevant to that in the other. I wonder if it's better to randomly sample one table, and use case_id to select the other...

Make series_link.html better

Instead of generating a page for each series, just make the author page, and then link to the subsection. The naming is deterministic, we could just do that.

So The Book of the New Sun should link to /books/authors/gene_wolfe/#the-book-of-the-new-sun.

Recent articles includes duplicates

If an article is in a category that only has one or two other articles, and one of those articles is one of the most recent articles, then there will be duplicate entries in the Recent Article section.

This can be fixed by keeping track of the articles added already.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.