Profile

Cover photo
CJ Carey
Works at UMass Amherst Computer Science
Attends University of Massachusetts Amherst
432 followers|110,474 views
AboutPostsPhotosYouTube

Stream

CJ Carey

Shared publicly  - 
 
Interesting Google bug: autocomplete knows about my unicode character, but regular Google search doesn't.

It might be because the Apple logo isn't actually a real unicode character... (http://hea-www.harvard.edu/~fine/OSX/unicode_apple_logo.html)
1
CJ Carey's profile photoJohn Vilk's profile photo
4 comments
 
Oh. I imagine it just strips it out as whitespace.
Add a comment...

CJ Carey

Shared publicly  - 
 
Here you go, +Myung-ha Jang . It's only a few lines of code, but it's been fun to play with.
talkback.sh - Have your terminal speak your commands
1
Myung-ha Jang's profile photo
 
awesome! trying it right now 
Add a comment...

CJ Carey

Shared publicly  - 
 
I just pushed my first Python package to PyPI: https://pypi.python.org/pypi/data_explorer/

It's a collection of command-line scripts that I find indispensable. Hopefully other people find them useful as well!
Command line utilities for data exploration
1
Add a comment...

CJ Carey

Shared publicly  - 
 
It took me a second to realize...
2
CJ Carey's profile photoJonny Leahey's profile photo
3 comments
 
I knew it looked familiar!
Add a comment...

CJ Carey

Shared publicly  - 
 
A note for myself to remember in the future.

When doing diagonal matrix operations in numpy, you often don't need to call np.diag. For example:

A = np.random.random((5,5))
d = np.random.random(5)

A.dot(np.diag(d)) == A * d
np.diag(d).dot(A) == (d * A.T).T

Avoiding the call to diag is faster and less verbose. Whether it's easier to read is up to you.

%timeit A.dot(np.diag(d))
100 loops, best of 3: 11.3 ms per loop

%timeit A * d
1000 loops, best of 3: 985 us per loop
1
Austin Abrams's profile photoCJ Carey's profile photo
2 comments
 
Yeah, I often use the similar numpy trick:

A.flat[::n+1]

It's especially handy for doing in-place diagonal updates.
Add a comment...

CJ Carey

Shared publicly  - 
 
I wrote my first Sublime Text plugin this week, and it's ready for people to try out! https://github.com/perimosocordiae/LineProfiler

If you like profiling Python code and use Sublime Text, give this a try and let me know what you think.
2
Add a comment...
Have him in circles
432 people
tunca tunç's profile photo
maher hamed's profile photo
Justin Ormont's profile photo
walter gerez's profile photo
Hassen Ahmad's profile photo
Larry Smith's profile photo
yang yuan's profile photo
Nadine “Madame Duchess” Jackson's profile photo
Wilaiwan Dara's profile photo

CJ Carey

Shared publicly  - 
 
Anyone know what caused the uptick in Cliftons in the mid-70s? Maybe a celebrity or fictional character got popular then?
1
Add a comment...

CJ Carey

Shared publicly  - 
 
Today I Learned: sudo fails when there's no available disk space, at least on the CentOS server I was trying to fix. Even better, it claims your password is incorrect, instead of erroring out.

I was able to get around it by removing some files my user had permissions for, then quickly becoming root before the ever-growing log files ate up the newly free space.

I'm not sure what I would have done if I couldn't free up space...
1
CJ Carey's profile photoPaul Tötterman's profile photo
3 comments
 
Ah, I would recommend a tmpfs /tmp if at all practical.
Add a comment...

CJ Carey

Shared publicly  - 
 
I just released my second-ever Python package: bigO
https://pypi.python.org/pypi/bigO/0.1.1

It's a simple layer on top of SymPy that lets you do worst-case complexity analysis symbolically:

from bigO import O, n
from sympy import log

O(2*n) == O(n)   # True
O(n**2) > O(n*log(n))  # True
Symbolic representation of big-O notation.
1
Add a comment...

CJ Carey

Shared publicly  - 
 
We have a lab cake!  (Compare to the logo on the lab website: http://all.cs.umass.edu/)
2
CJ Carey's profile photoCarson Holgate's profile photoErin Benson's profile photo
6 comments
 
This is the most unintentional portal-est thing I've ever seen
Add a comment...

CJ Carey

Shared publicly  - 
1
Add a comment...

CJ Carey

Shared publicly  - 
 
I call this one: Magic Hand.

I'll admit that I took these shots with the intention of coercing Auto Awesome into stitching them together. The glitch in the ordering is strange, though... I'd expect that the timestamps on the images would be the most informative prior for the image order, so I'm not sure why the addition of the hand confused the algorithm.

+Erik Murphy-Chutorian any ideas?
1
Erik Murphy-Chutorian's profile photoCJ Carey's profile photo
2 comments
 
Sure: https://plus.google.com/u/0/photos/114296821729366328199/albums/5954260847339462849

It looks like the filename numbering matches the order in the GIF, which means the fault seems to be with my phone! I'll have to try again and see if it's replicable.
Add a comment...
People
Have him in circles
432 people
tunca tunç's profile photo
maher hamed's profile photo
Justin Ormont's profile photo
walter gerez's profile photo
Hassen Ahmad's profile photo
Larry Smith's profile photo
yang yuan's profile photo
Nadine “Madame Duchess” Jackson's profile photo
Wilaiwan Dara's profile photo
Education
  • University of Massachusetts Amherst
    Computer Science, 2011 - present
  • Washington University
    Computer Science, 2007 - 2011
Links
YouTube
Contributor to
Work
Occupation
Grad Student
Employment
  • UMass Amherst Computer Science
    Grad Student, 2011 - present
  • Google
    Intern, 2011 - 2012
Basic Information
Gender
Male