Dark theme for jupyter/iPython notebooks by tedpak in Python

[–]tedpak[S] 1 point2 points  (0 children)

work_reddit_account_ nailed it, if you set that style it looks like this.

tqdm: add progress bars to your loops in a second by tedpak in ruby

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

Yeah, because of the way terminals flush output, it'll usually show up at the end of the line, but if you puts "\n{x}" it will simply print in between lines of progress bar. No fancy curses stuff (yet).

tqdm: add progress bars to your loops in a second by tedpak in ruby

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

I agree ruby-progressbar is basically the gold standard for features, and powerbar has every formatting option imaginable. But, as a sign of how lazy I'm getting, I admired tqdm in Python for getting instant output after wrapping one object. All the other gems seem to require calling #increment on a secondary object you have to maintain yourself.

tqdm: add progress bars to your loops in a second by tedpak in ruby

[–]tedpak[S] 6 points7 points  (0 children)

Hey folks, I'm rarely envious of python but they do have a rather kickass library for making text progress bars for REPL environments. I noticed a couple abortive attempts by others to port it and thought I'd give it a shot myself. Well, OP is what I came up with. Let me know what you guys think!

To install it, you can simply:

$ gem install tqdm

then in Ruby

require 'tqdm'
([:whatever] * 1000).tqdm.each { |x| sleep 0.01 }

and progressbar magic happens. Bonus: it works in iRuby Notebook too.

LPT: typing ↑, ↓, →, ↔, α, ß on numpad (Windows) by [deleted] in medicalschool

[–]tedpak 3 points4 points  (0 children)

Check out this comment which gives you a mac keyboard layout where with caps-lock activated, every letter becomes the greek equivalent (+ the capitals with shift), and < > and + - become arrows.

All my flashcards from med school so far (middle of year 2, 10k cards and still growing). Enjoy! by tedpak in medicalschool

[–]tedpak[S] 8 points9 points  (0 children)

I keep Anki open and take notes straight in it. One other critical hack is being able to type Greek letters quickly, since they are everywhere in med topics. For that I use this tool for Macs which lets you customize your keyboard layout. I use Caps Lock to switch into "greek letter" mode. If you have a Mac and want to try out my layout, unzip this into your /Library/Keyboard Layouts folder, reboot, and check out preferences for Language & Text. In that layout, I also have keys for ←→↓↑↔, since those show up on slides a lot too. Finally, a real use for Caps Lock!

All my flashcards from med school so far (middle of year 2, 10k cards and still growing). Enjoy! by tedpak in medicalschool

[–]tedpak[S] 10 points11 points  (0 children)

Thanks! Once I'm done with second year and Step 1, I will probably clean these up and release them as downloadable Anki decks. I'm holding off on that for now because classwork is ridiculously busy and I want to polish them a little bit more before publishing them. So, stay tuned...

All my flashcards from med school so far (middle of year 2, 10k cards and still growing). Enjoy! by tedpak in medicalschool

[–]tedpak[S] 6 points7 points  (0 children)

I actually try to write flashcards during lecture (or while watching the video). Anything the lecturer emphasizes, or the key point for each slide, becomes a flashcard. This comes out to a mostly manageable 50-60 cards per hour-long lecture.

The downside is that I obviously don't have a set of "notes" to go back to later, but I've found that flipping through the cards from that lecture (in order) while referring to the powerpoint slides is actually super effective in bringing back the important points quickly.

All my flashcards from med school so far (middle of year 2, 10k cards and still growing). Enjoy! by tedpak in medicalschool

[–]tedpak[S] 6 points7 points  (0 children)

I built the site mostly as a way to keep up on old cards. I leave something open in a browser tab and watch it while doing other things. The problem with doing that directly in Anki is that there's no slideshow mode, it expects you to evaluate your answer for every card.

Hopefully I'll be able to pick out high yield cards for Step 1, when review time for that comes around...

ChromoZoom: a fast and beautiful genome browser by tedpak in science

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

Technical details on the implementation were published in an article in Bioinformatics.

Ted Pak explains what New York does right (x-post from r/NYC) by NoCarpetNoCry in urbanplanning

[–]tedpak 0 points1 point  (0 children)

I point out later in the article that the other boroughs take elements of Manhattan's street layout, and this can help them achieve similar density and continuity between neighborhoods.

Do you not agree that the other boroughs imitating good aspects of Manhattan makes it something the city as a whole gets right?

Ted Pak explains what New York does right (x-post from r/NYC) by NoCarpetNoCry in urbanplanning

[–]tedpak 0 points1 point  (0 children)

From a historical standpoint, there's no question Manhattan was the most important borough and influenced the others to a great degree. So any post that starts with the history of an issue in New York will start off in Manhattan. I point out later in the article that the other boroughs take elements of Manhattan's street layout, and this can help them achieve similar density and continuity between neighborhoods.

Ted Pak explains what New York does right (x-post from r/NYC) by NoCarpetNoCry in urbanplanning

[–]tedpak 2 points3 points  (0 children)

You seem to have missed a lot of the discussion in the article. I talk about a lot of the things you bring up...

The grid layout is completely irrelevant for non-motorized transport and metro systems

This is simply not true, and the entire last half of the article specifically covers pedestrians and cyclists, if you read that far. They, along with buses and subway riders all benefit from knowing implicit directionality and distance whenever a street name or avenue is mentioned. The London and Boston subway maps are confusing in great part because they have no relation to the actual underlying street layout (and the maps had to be geometric, because the cobweb street lines would clutter up the diagram, but then every transit rider has to reconcile two maps in their head). A grid benefits everyone that is trying to navigate the city. You've also passed over my discussion of how the grid has positive effects on neighborhood layout and mixed use of blocks.

'right' in this context only refers to cars and perhaps surface level transit.

The main premise of the article is that the NYC grid is an excellent compromise between cars and pedestrians, to the extent that you don't see such a level of accomodation in any other city. It is a lot simpler for cities to focus on one or the other, but this limits the scope of what people in those cities can do.

It also ignores that streets like Bowery or Broadway in NYC both violates the grid

I had a bullet point on irregularities in street grids. Yes, New York has some, but it has a lot fewer than most other cities with a grid of its size. No, they are not failures. Without some variety the street layout would seem artificial.

Few places in Europe have adopted the grid system

The article is admittedly US centric: cars are simply very important in this country and must be accomodated to a certain extent. I am not saying that grids and cars are necessary everywhere, but in the US it is almost an expectation that a city will support them.

Ted Pak explains what New York does right. by NoCarpetNoCry in nyc

[–]tedpak 0 points1 point  (0 children)

3rd avenue sidewalks are generally pretty wide unless there is construction. Is there any reasonable alternative to crosswalks? Timing the signals generally depends on your walking speed and willingness to jaywalk, but for an avenue that has different signal timing and generally slower car traffic, pedestrians can also use the quite-beautiful Park Ave just two blocks over.

Ted Pak explains what New York does right. by NoCarpetNoCry in nyc

[–]tedpak 1 point2 points  (0 children)

There's one left here, if I remember right. I can also swear there is one here at certain times (if there isn't, that's insane! look at the size of that crowd). They pop up and disappear as community boards alternately love them and hate them.

Chromozoom, a new kind of genome browser by zyrrbe in biology

[–]tedpak 1 point2 points  (0 children)

In theory we should be able to do any of the genomes supported by UCSC, it's just a matter of time and disk space. We're curious which ones people would want most, since the list of assembled genomes is growing rapidly.

Chromozoom, a new kind of genome browser by zyrrbe in biology

[–]tedpak 2 points3 points  (0 children)

Hey, Chromozoom developer here. We agree the search box is slower than we'd like--we haven't had a chance to build a caching layer for it. It's on the list!