Category Archives: Uncategorized

and we’re back! now on aws lightsail

hi friends!

thanks for bearing with the site as it was intermittently down over the last 3 to 4 months. I was planning on migrating from nearlyfreespeech, where the bills were costing ~$120 a year on my dinky little website (!!!! I should have just stuck with blogspot) to something more reasonable, $42 + $12 domain. I’m now running on amazon lightsail, and not only is it cheaper, but somehow the page responsiveness is a lot better too!

And it promises to be superbly easy to launch new derpy flask apps, I have a hexo blog set up at /hexblog already (well, that’s node.js really, but tomayto tomahto).

Plus, if I’m really lazy, they have a browser-based SSH session, so I can be on a computer without anything installed. And they also have snapshots, so I can upgrade away on my wordpress without fear.

Only took 4 hours in the end! I think I can do it in an hour now. Also, I feel much better about wordpress backups and feeling like I can restore from them.

I still want to migrate my website away from wordpress, I think. I fought a lot of little “php has upgraded” errors and such, and flat file management just seems to way to go for small sites like mine that only have one author. No need to get mysql involved.

Yay! I’ll write up the steps I took to migrate sometime soon. Now I can blog again, boy, I actually really missed that.

Fixing front (v-)brake bike part (broken metal bit)

Hi blogosphere!

I fixed my bike today. Some quick documentation below.

I’ve not really had good front brakes in a year. The issue is this little metal piece, which broke. I wasn’t sure how to get a new one of. So I just sort of ziptie’d it together and it kinda worked, although I wore through brake pads real fast because

Turns out the solution is to just replace the entire v-brake assembly, and in fact you only have to take out two bolts to do so! Wow, so much easier than all my careful ziptie-ing and plier-ing open the metal piece.

20181207_224702
whoo zipties
bike3
left: broken (See piece at top which rusted in half) right: good
bike
Those squeeze in against the rim to brake

There were three settings, which kind of controlled gross-ly what the distance between the brakes was possible.

bike2

I adjusted the cable to the maximum I wanted them to be (allowing clearance for my rather wobbly rim, which is far from straight… I in fact had to tighten my spokes as far as they could go in some cases, and a few spokes have even broken off. But the rim is still clearly bent in places).

After that, I put the metal “springs” on. They provide restoring force, so that after you apply the brakes, the brakes open again by themselves. (They’re the long wire, bent and stuck behind a pin sticking out. I labelled it with an orange arrow in the pic below, with other arrow showing the direction the wire wants to go.

bike5

Finally, I used a little allen wrench to adjust the spacing between the brakes, so that it was roughly centered over the rim.

bike2Wow, it’s so much easier to understand how V-brakes work when you have reasonably working brakes! I had thought that centering the brakes and getting them to return properly was black magic, and resigned myself to having my brake pads constantly rubbing against the rim on one side or the other, in order to have a “trigger until full brake” margin I was comfortable with.

bikecenter2
I took the spring off, but the set screw to the top left, controls how strongly the spring arm pushes in,

By adjusting the relative strength of the two sides, you can control what the brakes look like when they’re opened, so one side isn’t rubbing.

I discovered that you don’t just squish the bolt down onto the cable, as you might for a derpy electronics project board. This prevents frayed cables, which are extremely sharp and poky 🙁

bike7I also discovered that it’s actually fairly easy to get the brake cable on and off the handlebars. There’s a hole underneath that makes this a lot easier than whatever I was doing.

bike6
This is an older picture from another time. Yes, my handbars are rotated so they’re upside down. The bolt at the center of the handlebar loosens sometimes, so the clamp loosens and then the handlebars start rotating…
bike8

Anyway, turns out there’s a whole drawerful of these bike parts at miters — not pictured here. Instead here’s two other drawers of parts… so many bike parts! They’re probably all from the era a decade ago when welding art bikes and making weird bikes was popular at MITERS.

bike10

also important news I got a bike bell! whee! 😀

bike11

Unfortunately I’m not really sure how it fits into my bike mittens scheme… I put it outside the mittens, since otherwise it’s muffled in the mittens. But I guess that means I will sometimes have to keep my right hand outside in case I need to ring the bell :0

Especially now, Boston is putting in a lot of really nice bike lanes which are on the *right* side of a line of parked cars. However this means that you have to watch out for bikes when getting out on the passenger side, which people aren’t used to. People will stand around with their coffee, or wait in the middle of the bike lane for their lyft… Also some of the bike lanes are on the sidewalks co-existing with pedestrians, and then you always have the toddler on the escape running across the bike lanes. It’s always an adventure biking in the city!

I probably lose 100 karma points every day I bike, weaken my heart from stress cancelling out my strengthening it with exercise. But I always feel nice when I stop for someone crossing the sidewalk and they give me a big smile.

conclusion

Look at my v-brakes actually holding onto the brake cable!

bike12Later I had to go change the brake pads, since the ones that came with these brakes were pretty useless (not sure why, they looked fine). But all-in-all, it felt like a productive few hours… I also cleaned off my chain and re-greased it, fixed my gear changing issues, and ordered handlebar tape, since right now mine are bare metal. The previous ones were getting gross and sticky, so I gave up and threw them away.

(I couldn’t resist and also got one of those 16 in 1 tools hehe. I wanted my own set of bike levers since the MITERS ones occasionally disappear, and this set had some included, albeit metal ones).

Screenshot from 2018-12-09 10-18-08

Maybe if I keep fixing my bike with nice parts, I’ll eventually have upgraded the bike ^__^ I really want to get a new wheel, so the rims are less wobbly and the rear quick-lock works again. I also worry about the internal gear hub, I want to service it. It sounds a little … crunchy … sometimes, and I wonder if I need to oil it or something.

 

Wow that was a long picture heavy post. I played around with annotating the pictures using my touchscreen… Don’t know I’ll do that again, it was time-consuming.

Happy Holidays! I’ll likely be back soon, sooo many posts to write. This was just a fun detour.

The 3d printer test bunny, in knitted form!

Recently (by which I mean 1.5 years ago now) I saw the ubiquitious 3d printer bunny, but in knitted plushie form. SO COOL. CMU_knitted_bunny_closeupWhere was I? I was passing through the ACM Symposium on Computational Fabrication (on 12 July 2017), and saw a table full of plushies. (The symposium was held in the lobby of one of the MIT buildings, so it was easy to walk through and see cool things — I love that kind of format).

knitted_bunnyOf course, I immediately had to stop by and see what was going on. And yea, this person’s computer science research literally involves plushies. Here’s the abstract on their paper, which describes how to turn 3d meshes (such as the STL files for the 3d printer test bunny) into CNC knitting machine patterns.

Abstract: Automatic Machine Knitting of 3D Meshes

We present the first computational approach that can transform 3D meshes, created by traditional modeling programs, directly into instructions for a computer-controlled knitting machine. Knitting machines are able to robustly and repeatably form knitted 3D surfaces from yarn, but have many constraints on what they can fabricate. Given user-defined starting and ending points on an input mesh, our system incrementally builds a helix-free, quad-dominant mesh with uniform edge lengths, runs a tracing procedure over this mesh to generate a knitting path, and schedules the knitting instructions for this path in a way that is compatible with machine constraints. We demonstrate our approach on a wide range of 3D meshes.

Vidya Narayanan was kind enough to try to explain some of the algorithmic research to me. Here’s her poster from 2017:
computation_fabrication_knitted_mesh_poster_CMU
computation_fabrication_knitted_mesh_poster_CMU_pt2
Since then, her paper has been published, so you can read more details at her website. In particular, you can find a super cool 2 minute video here which explain the technical detail: Video
It talks a bit about whatever is going on in this image from the paper. (I think it’s cool to see how different the “flat” pattern in image 5 is from the “3d” filled plushie in the final image).
VidyaN_bunny
And here’s a snake on that table:

knitted_snake

Why doesn’t my academic life involve both getting academic acclaim and making plushies for work? Even if I encountered research setbacks, I would still have a pile of frankenstein plushies to lie in as I sob quietly and eat ice cream, or throw plushies with wild abandon.

I think I’m in the wrong subfield of computer science…