Tag Archives: rc week 8

Recurse Center: week 8, day 5

Came in kind of late, because I had a rough time getting up, and also I had to stop by the bike shop. Alas, my shifters did not ship out yesterday as expected, but rather today, so it won’t be done til Monday. However, he said he’d be happy to loan me a funky little three-speed if I wanted. Sounds like a good excuse for an adventure. So now I have my fancy lock on a decidedly unfancy bike, and I’m learning about this internal shifter business, and the steering is weird, and it’s good to try new things. It’ll make my bike magic-feeling on Monday, I bet.

It’s almost 4:00 and I just touched my terminal for the first time today, though. Womp womp. Have had some good conversations with folks & am attempting to hand-wave away a headache, though.

On a quest to add git status stuff to my bash prompt, I ended up in a world of mystery and git source code, like the auto-completion script.  Hot diggity.

I worked for a little bit with Tom (it’s his last day!!) on a problem I put away weeks ago (my Pebble Time watchface sometimes gets a square, instead of numbers or letters, for values like “20:00” or “Thunderstorms”), and if I make the font smaller, the problem indeed goes away. At least for the time.

The thunderstorms…that’s another issue that I’ll need to figure out how to test, too (switching my phone’s time manually was a perfect test methodology for time stuff, though).

As it turns out, what I had energy for today was 1) going to get very-late lunch/early dinner, and 2) continuing to modify my bash prompt, and starting to mostly use ANSI escape sequences for the colors:

terminal bash prompt with the command: echo 'this is the best chick party I have ever been to' and emoji of balloons and a baby chick

eta 2015-09-10: what is the above, you ask? I just realized I should add this! Bold part is the prompt itself; the rest is git fanciness that I mostly understand:

. ~/.git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
PS1='\e[0;35m\]\t \e[0;32m\]\u@\h \e[0;33m\]\w\e[1;39m\]$(__git_ps1 " (%s)")\e[0;22m\]\n? ? ? ? ? ? ? '

# magic git command completions
source ~/.git-completion.bash
source ~/.git-prompt.sh

I also got my git status added in (see above), after a butt-ton of googling and trying things and wondering why things didn’t work and trying other things (there are various pieces of advice/instruction, and most of them rely on you knowing a bunch of stuff they don’t explain. I’m not sure I could even follow my path backward, now, but it works!).

I can’t believe I’m hoping for another air quality advisory just so I can easily write and test some code to print that in my weather script.

It’s also karaoke night, so it’s time to get my song on.

Recurse Center: week 8, day 4

Actually left early enough to get in and have some time for myself! However, my rear shifter started acting up a bit on the ride home last night (shifted fine in one direction, shifted unsatisfyingly in the other), and it turns out I snapped a spring. Welp. Early => late. I tried. And tomorrow, I’ll have new bar-end shifters, which are not nearly as subject to the whims of “we don’t really make 9-speed things anymore” and haven’t changed in approximately ever. The bike shop dude also mentioned that they’re less prone to failure, easier to fix, and less appealing to thieves. Onward, then! That’s what my bike Goal within Simple is for, anyway.

Forgot I’d signed up for Mary’s “git from the inside out” talk/workshop, and while by the end of it I was a bit tired (and toasty; that room gets really warm really easily), it was really delightful to start digging into the guts of git, seeing what happens as one takes different actions. Really appreciated her way of explaining things and choosing clear examples, too. (She had two files, number.txt and letter.txt, each with one character inside, and the changes were a => b, 1=>2, 2=>3, etc.)

Headed back to my little weather utility after lunch, cleaned up some cosmetic stuff.

Oh! And last night, Nathan helped me figure out why I was getting this dang error with the “daily” summaries (which give the next week’s weather) from Dark Sky:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 70: ordinal not in range(128)

Turns out it’s the degree symbol that pops up in the weekly summaries:

Light rain on Sunday through Wednesday, with temperatures rising to 88°F on Sunday

Solved! I knew how to fix it (and had), but I didn’t know why the error had popped up in the first place, and this explained it.

Finally felt the pull of the emoji, too. I’ve temporarily got a little snake on my bash prompt. And a bunch of stuff I’ve been meaning to do for ages.

Before:

phenix:tinyweather liene$

After:

timestamp, liene@phenix, full file path, snake emoji

For the curious and tentative like me, my PS1 variable in my .bashrc file, which sets your bash prompt, looks like this (googling “ps1 options” was super fruitful!):

PS1='\t \u@\h \w\n?  '

Broken down into pieces:

  • \t adds the current time in HH:MM:SS format in 24 hour time, as is right and proper.
  • \u is the current user’s username.
  • @ is literally just itself here, not doing any wizard things at all.
  • \h is the interesting part of the hostname (ugh, I don’t need a .local on my own machine — that’s what \H does).
  • \w is the whooooole current working directory’s filepath, with $HOME abbreviated with a tilde.
  • \n is a plain ol’ newline, because this stuff is getting gnarly long and I still want to TYPE commands after my prompt!
  • and then there’s the snake emoji, which can be rendered so many different ways. Look at it. Just snakin’ around. I love you, snake. Even if I later replace you with something else.

So much better.

Anyway the point is that I want to get emoji into my weather app, and I fell down a rabbit hole, and they ended up in my bash prompt instead (or in addition, as soon as I get them added).

SPOILER ALERT THIS HAPPENED

Um, so it’s kind of the best to ask my computer, from the command line, to go fetch the weather and then print appropriate emoji.

Also then I got SUPER WILD and decided to actually present my stuff? We have presentations at RC on Thursday nights, 3-5 minutes long, so I actually made slides and talked in brief about my project and omg. That’s the first presentation I’ve given since Open Source Bridge 2012 (!).

Aaaand it’s Tom the facilitator’s last day (mostly), and so we said nice things and toasted him! I will send him some nice words later (Inbox helpfully decided that the email asking for these nice comments could be auto-archived, which, ugh). Bummed that he won’t be around for our last four weeks, but so excited to see what he does next.

Recurse Center: week 8, day 3

Got in a tiny smidge early, and sat quietly in one of the new beanbags for a bit & looked at the books. Had nice quick check-ins (yay! my favorite). Felt like I actually had something to report, which was weird and neat.

Ended up re-intrigued by the bookshelves right afterwards, and fell into a book called Hipster Business Models. I think I meant to be annoyed? But it was a new book and I couldn’t resist and I fell into reading about a dude who made Yoga Joes (for various reasons that are well beyond “just because,” he wanted to make little army dudes doing yoga poses), and then read about a bunch of interesting, successful, strange little ventures all over the place. (The library here is amazing. I already almost miss it. Even if one spent one’s whole batch reading books one found interesting, there’d be so much left unturned.)

Had largely worked my way backwards through the book, and then discovered the table of contents, which listed something about…Hacker School. Of course! And so I learned some more things about how this strange, amazing place came to be.

Some non-zero hours later, I emerged in search of food or computers. It was one of the most satisfying mornings I’ve had in a long, long time, though, and I’m hoping I can remember that.

Had coloring club again, and we took it to the coffeeshop, and I made a postcard (blank postcards! so good! you can write on them and make a tiny art and then send it somewhere!), and then I came back.

Worked on my tiny weather utility a little bit more, and actually got some functions pulled out to do some things (instead of a just-go-down-the-page-and-do-all-the-things program, which it previously was).

So fun! It now prints out current weather for RC, or a few other places I’ve defined. I love it.

Heading to Hack && Tell tonight; excited to hear people talk about things they’re excited about.

Recurse Center: week 8, day 2

Wasn’t late! Woo. (But not by much; I got a fast hissing flat on the way in and walked the last handful of blocks.) Thinking I might need to start up sitting group again, if only for myself. It really helped me get here a bit earlier, and start the day on a good and successful note.

It’s like my brain is in quicksand this week. Every once in a while, I manage to fling up an arm or two (much like my experience in the ball pit, come to think of it), but it feels almost impossible to get more than that above the surface. And then I sink back down, and it’s not so bad, only not much can happen down there.

But I got out of the ball pit. Several times, in fact, in the course of a half hour. Maybe I can eventually lift myself out of this as well. It might just make my muscles sore. Nothing I can’t recover from, and it’ll make me stronger.

I find a lot of solace in metaphors.

Joined the new little statistics study group, which is awesomely beginner-friendly. Alicia’s taught a bit of Bayesian statistics before in an intro CS class (for quite some time, if I remember correctly), and some other folks appear to have some experience, but I don’t feel entirely out of place yet. Just like I need to practice reading more often.

In any case, we’re working from this book, which looks kinda fun. Got a bunch of things installed in a fresh virtualenv, so PyMC and Numpy? and Scipy and Matplotlib are all like <3 <3 <3 in my terminal.

 

Headed back to my little weather thing. It currently displays a couple lines pulled from the Dark Sky API, which makes me feel powerful and awesome. But that’s hardcoded.

I want to make it a little more extensible for myself (though I’m not concerned about making it generalizable for everyone), so I started looking into what one needs to do to use command-line flags and stuff. Turns out Python’s argparse is happy to help! And of course there’s a concise, friendly tutorial. Also I finally figured out how to display code inline on WordPress (control option x). YES.

Took me forever to figure out what the difference is between defining optional and positional (mandatory) keywords. Deep in the docs, I discovered that when using argparse, anything with a – (dash) at the front is optional; anything else is positional. Well crap. That’s not so tough. Yay!

Got on a good roll shortly before the jobs talk for the evening. Hoping to take some of this momentum into tomorrow. Ended up having really good conversations with Steve and Shad afterwards, continuing my trend of “never go home on time, be grateful for having such a flexible and understanding partner.”

Recurse Center: week 8, day 1

Missed check-ins (again); this did, however, give me a good opportunity to talk with Seth about being slightly late, and also feelings vs. programming (or feelings AND programming?) at RC. (The things you can talk about when waiting for water to boil!) In conversations I keep having with Recursers and alums, I am struck over and over by how often people cite the emotional component of RC as the (or a) part that was really important for them. The programming part is important, and it’s an amazing programming community, but this is also an intense experience feelings-wise. That’s not bad; it just encourages certain kinds of personal development in a way that I’m not used to. It’s hard. And I like it.

I also had feelings about check-ins in general and had a really good chat with facilitator Allie about last week and this week. She also has a rad keyboard, and talked me through a little bit of how to get started on my super mega dream sidewalk stamp project. The sun is shining. Maybe this is the week I start on that, just a little bit.

Played in the amazing ball pit upstairs (Jump In!); it’s going for a month, and it just started Friday, and it’s all but sold out already. And it rules. It’s exquisitely hard to get back up again, once you’re far down enough, but it is super fabulous. I jumped and swam and was generally ungraceful, and it was a blast. Went with a bunch of other RC folks, and then there were a couple people we didn’t know with a selfie stick. Takes all kinds.

Having a heck of a time focusing on ANYTHING. Tom asked me twice today if I wanted to pair on anything or if I had any questions, and the second time he said “weather” and my brain went “YOU WANTED TO PLAY WITH THE DARK SKY API” and anyway now I have a tiny little Python script that pulls weather from Dark Sky, and it’s a little fabulous. I’m going to make it fancier.

Also, he got me to try BPython, and it’s kind of amazing and magic.

Mostly continued bouncing off the walls of distractibility, but didn’t have to go anywhere for the Monday night talk (thanks, gas leak at eBay?), and new resident Li Haoyi’s talk was informative, hilarious, and a lot of fun. I would easily go see Haoyi speak somewhere now, regardless of the topic, just to watch him present.

Got my new laptop stand, but not my keyboard. Ordered the awesome one that Allie has and paid a few bucks extra for one-day shipping, because the future is weird. Looking forward to having a reasonable and healthy standing solution.