← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 200
  1. Faster SSH Access to Remote Computers

    I routinely SSH into a company machine on Openstack to do work.

  2. Configuring Impala Query Results with impalarc

    I routinely run Impala queries on a remote machine and want the results to save to a CSV file on that machine.

  3. Using Conda with the Fish Shell

    I’m trying out the beautiful Fish shell.

  4. Searching the tweets of people you follow

    This is more of a Today I Taught.

  5. Concatenate files with header row

    I needed to concatenate a bunch of CSV files while skipping the header row.

  6. Testing whether a Python string contains an integer

    If you want to check whether a Python string is an integer, you can try casting to an int with int() and catching the ValueError if it’s not an integer: 1 2 3 4 5 6 def is_integer(value: str, *, base: int=10) -> bool: try: int(value, base=base) return…

  7. Ultralight Backpacking for the Ultratall

    I created a single page website to collect notes on one of my other hobbies: ultralight backpacking.

  8. Don't Buffer Python's stdout

    I was using [tee](http://man7.org/linux/man-pages/man1/tee.1.html) with a long running Python process, but I wasn’t seeing any output.

  9. Econtalk

    Listening to Russ Roberts’ Econtalk podcast for the last 5 years has given me a whole new perspective on the world.

  10. Column binding two Panda's Dataframes

    Joining two Pandas DataFrames with an equal number of rows is slightly harder than it appears.

  11. Jupyter notebooks nicely render Pandas data frames if they’re the last line in a cell.

  12. Impala Doesn't Have a histogram() function

    Impala Doesn’t Have a histogram() function.

  13. Creating Impala Tables from Pandas Dataframes

    Wes Mckinney’s Ibis, a Pythonic interface to Impala, has functionality for creating Impala tables from Python Pandas dataframes. 1 2 3 4 5 6 7 8 9 import pandas as pd import ibis hdfs = ibis.hdfs_connect(host=webhdfs_host, port=webhdfs_port) client = ib…

  14. Using rbenv for Ruby Versions

    I don’t use Ruby much, but I wanted to use Jekyll for this blog.

  15. Galileo's Conflict was Science vs. Science

    Galileo’s conflict with the Church was not as it is often portrayed: In January of 1616, the month before before the Roman Inquisition would infamously condemn the Copernican theory as being “foolish and absurd in philosophy”, Monsignor Francesco Ingoli a…

  16. Stanford Encyclopedia of Philosophy Bot

    I enjoy the Stanford Encyclopedia of Philosophy, so I created a Twitter account that tweets links to random articles from it.

  17. Mentions of John Cook on Github

    People mention John Cook’s blog a lot in Github repos.

  18. Quotes from Former Professors

    I'll never forget the great words of one of my best math professors: "If all I wanted was the answer, I sure as hell wouldn't ask you." — Tim Hopper (@tdhopper) December 9, 2013 Another great former professor quote: "I'm not smarter than you.

  19. I Love Twitter

    @tdhopper my father wrote his PhD on this question, and I believe his answer was "depends" — Fred Benenson (@fredbenenson) December 7, 2015

  20. My Python Environment Workflow with Conda

    If you enjoy this post, check out my Python Developer Tooling Handbook!

  21. In my nonlinear optimization class in grad school at North Carolina State University, I wrote a paper on the famed SMO algorithm for support vector machines.

  22. Knitting

    True story: I’m a closet knitter.

  23. When I worked at RTI International, I worked on an exploratory analysis of Twitter discussion of electronic cigarettes.

  24. Tweets I'm Proud Of (2)

    On MCMC: Any sufficiently advanced MCMC is indistinguishable from magic.

  25. Nonparametric Latent Dirichlet Allocation

    Today is my last day at Qadium.

  26. Sample from Antoniak Distribution with Python

    rand_antoniak draws a sample from the distribution of tables created by a Chinese restaurant process with parameter alpha after n patrons are seated.

  27. In an earlier notebook, I showed how we can fit the parameters of a Bayesian mixture model using a Gibbs sampler.

  28. Nomenclature of Dirichlet Processes

    Much of the literature on Dirichlet Processes makes assertions similar to the following: “DP is the Dirichlet process, a distribution over distributions.”

  29. Econtalk Topics: Nonparametric LDA in Practice

    The interactive visualizations in this analysis require a live notebook.

  30. A Joke

    Even though I've been coding for 12 years, I'd still just consider myself a grammer. — Tim Hopper (@tdhopper) November 10, 2014

  31. Yee Whye Teh et al’s 2005 paper Hierarchical Dirichlet Processes describes a nonparametric prior for grouped clustering problems.

  32. Data Science and Agriculture

    I’m excited to see tools developed for the web being applied to offline domains like agriculture and health.

  33. Classes Future Programmers Should Take

    I appreciated James Hague’s post on Computer Science Courses that Don’t Exist, But Should.

  34. Dealing with Outliers

    From Testicular volume is inversely correlated with nurturing-related brain activity in human fathers in PNAS: One participant’s testes volume measurement was excluded because his value was 2.8 SDs above the mean (mean = 38,064; SD = 11,183) and was more…

  35. Fitting a Mixture Model with Gibbs Sampling

    1 2 3 4 5 6 7 import pandas as pd import numpy as np import random import matplotlib.pyplot as plt from scipy import stats from collections import namedtuple, Counter Suppose we receive some data that looks like the following: 1 2 data = pd.Series.fro…

  36. Profile in Computational Imagination

    I recently had the honor of being interviewed by Michael Swenson for his interview series called “Profiles in Computational Imagination”.

  37. On Showing Your Work

    I'll never forget the great words of one of my best math professors: "If all I wanted was the answer, I sure as hell wouldn't ask you." — Tim Hopper (@tdhopper) December 9, 2013

  38. A Programmer's Portfolio

    I am convinced that a programming student hoping to get a job in that field should be actively building a portfolio online.

  39. Nonparametric Latent Dirichlet Allocation

    Latent Dirichlet Allocation is a generative model for topic modeling.

  40. Sampling from a Hierarchical Dirichlet Process

    As we saw earlier the Dirichlet process describes the distribution of a random probability distribution.

  41. High Quality Code at Quora

    I love this new post on Quora’s engineering blog.

  42. Dirichlet Distribution and Dirichlet Processes

    Dirichlet Distribution The symmetric Dirichlet distribution (DD) can be considered a distribution of distributions.

  43. 10x Engineering

    How to be a 10x engineer: Incur technical debt fast enough to appear 10x as productive as the ten engineers tasked with cleaning it up. — Brian Degenhardt (@bmdhacks) January 29, 2015

  44. Handy One-off Webpages

    I’m starting to love single-page informational websites.

  45. Thinking at Work

    Having worked from home for the last few years, I have a hard time understanding how people get anything done in open-floor plan offices.

  46. Caution: the following post is laden with qualitative extrapolation of anecdotes and impressions.

  47. Links for March 23, 2015

    Start Using Landsat on AWS: “The Landsat program has been running since 1972 and is the longest ongoing project to collect such imagery.

  48. Concatenate MP3 Files

    TIL `cat` will correctly join MP3 files http://t.co/mmc4NN2Kmp — Tim Hopper (@tdhopper) March 15, 2015 From Stackoverflow: An MP3 file is nothing more than the raw MPEG2-Layer 3 (audio) stream data, there is no file level header structure with, for exampl…

  49. Links for March 13, 2015

    Dynamically Update a Plot in IPython: One thing I miss about Mathematica is Animate and Manipulate.

  50. Introduction to PySpark

    I gave a talk at the Research Triangle Analysts meetup about Pyspark.