2015-03-02 21:47:19 : Updating layout for new blocks.
»
Find 3a8c3faf3cf2ac8144b1050f4c387551018b567b on GitHub.
Updating layout for new blocks.
date: 2012-08-24 14:10:22
track: True
---
{+{% block post %}+}
_This is a post about me & my computer. Get excited._
## Arch Linux & Thinkpad X40: A love story
@@ -39,3 +39,4 @@ So that's that--not so grand. Scons is basically Make--or does the same things,
**NOTE:** Yes, yes, I know I can use an external editor with Arduino, but I don't like doing that for some reason. I end up being confused about where I should be editing.
{+{% endblock %}+}
2015-02-16 14:28:44 : Adding excerpts to all posts, basically.
»
Find 07a57fe3ebb846616f1ae7d0aa3cfbc0f1920d57 on GitHub.
Adding excerpts to all posts, basically.
_This is a post about me & my computer. Get excited._
## Arch Linux & Thinkpad X40: A love story
{+{% mark excerpt %}+}
I've used Arch Linux for years -- always a bit ineptly, I must admit -- and a while back, mostly because of a new job (and the allure of ditching my open-source sensibilities and using Adobe CS), I switched to a Mac. I've been happy enough, but there's something about coding in Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked. Too slick, maybe. I find I work better in heavily constrained environments.
{+{% endmark %}+}
So I've always had another machine around for my "real" coding work. That lot falls to an old Thinkpad X40 that I hauled around on a six-month jaunt in Nicaragua, when I was taking some time off from college and working for [The Tico Times](http://ticotimes.net). I was running Ubuntu then. It was like a rock--it's still going strong. Over the years, I've amassed a small armada of X40s: you can get one in working-order on [Ebay](http://www.ebay.com/sch/Laptops-Netbooks-/175672/i.html?_nkw=x40%20thinkpad&_mPrRngCbx=1&_udlo=10&_udhi=76) for under $65 bucks. How can you resist?
2013-01-29 18:40:51 : Start displaying .git tracking information
»
Find cfa46ecb8a0244c3a1d4650cff13dc9294381b44 on GitHub.
Start displaying .git tracking information
title: Using Arscons
summary: Free'd from the kind tyranny of the Arduino IDE.
date: 2012-08-24 14:10:22
{+track: True+}
---
_This is a post about me & my computer. Get excited._
2012-10-09 10:02:00 : Yo.
»
Find 4bb8ca7b7020b887a0e53046142e5f7f9953c944 on GitHub.
Yo.
date: 2012-08-24 14:10:22
---
{+_This is a post about me & my computer. Get excited._+}
## Arch Linux & Thinkpad X40: A love story
I've used Arch Linux for years -- always a bit ineptly, I must admit -- and a while back, mostly because of a new job (and the allure of ditching my open-source sensibilities and using Adobe CS), I switched to a Mac. I've been happy enough, but there's something about coding in Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked. Too slick, maybe. I find I work better in heavily constrained environments.
So I've always had another machine around for my "real" coding work. That lot falls to an old Thinkpad X40 that I hauled {+around+} on a six-month jaunt in Nicaragua, {+when I was+} taking some time off from [-college.-]{+college and working for [The Tico Times](http://ticotimes.net). I was running Ubuntu then.+} It was like [-rock and-]{+a rock--it's+} still going [-strong to this day.-]{+strong.+} Over the years,[-though, for one reason or another,-] I've amassed a small [-collection-]{+armada+} of X40s: you can get one in working-order on [-Ebay-]{+[Ebay](http://www.ebay.com/sch/Laptops-Netbooks-/175672/i.html?_nkw=x40%20thinkpad&_mPrRngCbx=1&_udlo=10&_udhi=76)+} for [-around-]{+under+} $65 bucks. How can you resist?
## Arch + Arduino
On my latest X40, I'm running Arch off've a {+charming+} 4GB USB stick (the X40s on Ebay are almost always stripped of their [-hard-drives a).-]{+hard-drives). It's a little pokey, particularly on writing to disk, but+} I couldn't be happier. [-My-]{+And my+} little, cranky, skull-bucket of a Thinkpad feels as roomy as the glossy 13" MacBook Pro I usually [-work,-]{+work+} and the keyboard has none of the mushy play. (Read up on Mako's [great post](http://mako.cc/copyrighteous/20111207-00) on the [-travesty-]{+great swindle+} that is the 16:9 screen ratio -- which is why the X40 _is_ actually as large as the MBP).
{+At any rate, all of that doesn't change the fact that it's an antiquated machine and I use it primarily for text editing. Not much else. I like coding on it--there's no electro-peace like a tiling windows manager (Awesome) and someone else's fantastic .vimrc. +}
{+I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian)) to compile my avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest, even if they're anathema to Assembly Cowboys.+}
[-At any rate, all of that doesn't change the fact that it's an antiquated machine and I use it primarily for text editing. Not much else. I like coding on it--there's no electro-peace like a tiling windows manager (Awesome) and someone else's fantastic .vimrc. I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian)) to compile my avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest, even if they're anathema to Assembly Cowboys.-]Not growing up on embedded programming, the whole `(1 << PB4)`, alas, does not quite feel like first nature. One sore spot has been the Arduino IDE, which in all its muscular Java-ness, is a bit much for the X40 to handle.
So--how do you use the Arduino libraries in the comfort of your own `vim` config? There are a couple of ways. I use [Arscons](https://github.com/suapapa/arscons), a python build script, that makes the process relatively painless.
@@ -21,13 +27,11 @@ First, install the necessaries:
sudo pacman -S install python-pyserial scons
Then grab the [SConstruct](https://github.com/suapapa/arscons) file and copy it into your sketch folder. Run `scons`, and let the magic unfold. Maybe. Didn't work for me outt've the box. Because I have several versions of avr-gcc, a conflict prevented programs from compiling correctly. I edited the SConstruct file to make it work right--in my case, I just modified the `AVR_BIN_PREFIX` setting to point to the actual Arduino install of `avr-gcc`. That broke `avrdude`, but such is life. I don't know exactly what was amiss, but it seemed to have worked fine.
So that's that--not so grand. Scons is basically Make--or does the same things, at least--and lets you use Python rather than all of that gibberish. There *are* `Makefiles` for Arduino that do the exact same thing--but they are even more of a code soup.
[-*UPDATE*-]{+**UPDATE:**+} I checked in with Dave and Arduino ships with its own version of avr-gcc with a number of necessary tweaks.
[-*Note*-]{+**NOTE:**+} Yes, yes, I know I can use an external editor with Arduino, but I don't like doing that for some reason. I end up being confused about where I should be editing.
2012-10-05 18:33:38 : Updating post.
»
Find be98ad54ff7c4be7d840af44ccbf8c01f1d903ea on GitHub.
Updating post.
## Arch Linux & Thinkpad X40: A love story
I've used Arch Linux for years -- always a bit ineptly, I must admit -- and a while back, mostly because of a new job (and the allure of ditching my open-source sensibilities and using Adobe CS), I switched to a Mac. I've been happy enough, but there's something about coding in Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked. Too slick, maybe. I find I work better in heavily constrained environments.
So I've always had another machine around for my "real" coding work. [-My machine of choice is-]{+That lot falls to+} an old Thinkpad X40 that I hauled on a six-month jaunt in [-Nicaragua-]{+Nicaragua, taking+} some [-years ago.-]{+time off from college.+} It [-earned my devoted trust-]{+was like rock+} and[-affection. The original is-] still [-going, but over-]{+going strong to this day. Over+} the years, {+though, for one reason or another,+} I've amassed a small collection of [-them:-]{+X40s:+} you can get one in working-order on Ebay for around $65 bucks. [-That's all a long way of saying the I _like_ to use my X40 + vim, even when there's no good reason for doing so.-]{+How can you resist?+}
## Arch + Arduino
{+On my latest X40,+} I'm[-presently-] running Arch off've a 4GB USB stick (the X40s on Ebay are almost always stripped of their [-hard-drives).-]{+hard-drives a).+} I couldn't be happier. [-Mako has-]{+My little, cranky, skull-bucket of+} a {+Thinkpad feels as roomy as the glossy 13" MacBook Pro I usually work, and the keyboard has none of the mushy play. (Read up on Mako's+} [great post](http://mako.cc/copyrighteous/20111207-00) on the travesty that is the 16:9 screen ratio [---which makes my little, cranky skull-bucket thinkpad virtually-]{+-- which is why the X40 _is_ actually+} as [-roomy-]{+large+} as the [-glossy MacBook 13'' Pro I typically work on.-]{+MBP).+}
At any rate, all of that doesn't change the fact that it's an antiquated machine and I use it primarily for text editing. {+Not much else.+} I like coding on [-it--but in vim with my own config. Not in an unwieldy-]{+it--there's no electro-peace like a tiling windows manager (Awesome)+} and [-poorly-rendered Java app. The Arduino IDE--as-]{+someone else's+} fantastic [-as it is--has been a raw spot on my Arch machine.-]{+.vimrc.+} I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian)) to compile my avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest, even if they're anathema to Assembly [-Cowboy's.-]{+Cowboys.+} Not growing up on embedded programming, the whole `(1 << PB4)`, alas, does not quite feel like first nature. {+One sore spot has been the Arduino IDE, which in all its muscular Java-ness, is a bit much for the X40 to handle.+}
[-What we got: vim, an X40,-]{+So--how do you use the Arduino libraries in the comfort of your own `vim` config? There are a couple of ways. I use [Arscons](https://github.com/suapapa/arscons),+} a [-tiling WM (Awesome and Xmonad) + Arduino? Doable? Sure. Doesn't mean it's particularly easy, but [Arscons](https://github.com/suapapa/arscons)-]{+python build script, that+} makes the process relatively painless.
[-###-]First, install the necessaries:
sudo pacman -S install python-pyserial scons
Then grab the [-SContstruct-]{+[SConstruct](https://github.com/suapapa/arscons)+} file and copy it into your sketch [-folder, type-]{+folder. Run+} `scons`, and let the magic unfold. Maybe. Didn't work for me outt've the box. Because I have several versions of avr-gcc, a conflict prevented programs from compiling correctly. I edited the SConstruct file to make it work right--in my case, I just modified the `AVR_BIN_PREFIX` setting to point to the actual Arduino install of `avr-gcc`. That broke `avrdude`, but such is life. I don't know exactly what was amiss, but it seemed to have worked fine.
{+So that's that--not so grand. Scons is basically Make--or does the same things, at least--and lets you use Python rather than all of that gibberish. There *are* `Makefiles` for Arduino that do the exact same thing--but they are even more of a code soup.+}
[-Now-]{+*UPDATE*+}
I [-can work on mac, quickly compiling Arduino programs-]{+checked in with Dave+} and [-such--sync them up through GitHub--and work on my X40-]{+Arduino ships with its own version of avr-gcc+} with [-Scons, without having to stop using vim.-]{+a number of necessary tweaks.+}
{+*Note*+}
Yes, yes, I know I can use an external editor with Arduino, but I don't like doing that for some reason. I end up being confused about where I should be editing.[-So that's that--not so grand. Scons is basically Make--or does the same things, at least--and lets you use Python rather than all of that gibberish. There *are* `Makefiles` for Arduino that do the exact same thing--but they are even more of a code soup.-]
2012-10-05 13:48:52 : New things.
»
Find a7a6e76cbd921fd647f12de81ca3123ddfa36f95 on GitHub.
New things.
summary: Free'd from the kind tyranny of the Arduino IDE.
date: 2012-08-24 14:10:22
---
[-I've used Arch Linux for years -- always a bit ineptly, I must admit -- and a while back, mostly because of a new job (and the allure of ditching my open-source sensibilities and transitioning to Adobe CS, I switched to a Mac. I've been happy enough since, but there's something about coding in Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked. Too slick, maybe? I find I work better in heavily constrained environments. -]
[-So-]{+## Arch Linux & Thinkpad X40: A love story+}
I've [-always had another machine around-]{+used Arch Linux+} for [-my "real" coding work, taking up the slack. My machine of choice is I've gone through-]{+years -- always a bit ineptly, I must admit -- and+} a [-number-]{+while back, mostly because+} of[-these durable guys. One X40 accompanied me on-] a [-six-month jaunt in Central America, earning-]{+new job (and the allure of ditching+} my [-devoted trust-]{+open-source sensibilities+} and [-affection. Over the years, I've amassed-]{+using Adobe CS), I switched to+} a [-small collection of them: you can get one-]{+Mac. I've been happy enough, but there's something about coding+} in [-working-order on Ebay for around $65 bucks, last-]{+Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked. Too slick, maybe.+} I [-checked.-]{+find I work better in heavily constrained environments.+}
[-I'm presently running Arch off've a 4GB USB stick (the ones on Ebay almost never have drives).-]{+So I've always had another machine around for my "real" coding work. My machine of choice is an old Thinkpad X40 that+} I [-couldn't be happier. I'm not the only one. Mako has a [great post](http://mako.cc/copyrighteous/20111207-00)-]{+hauled+} on [-the travesty that is the 16:9 screen ratio --which makes-]{+a six-month jaunt in Nicaragua some years ago. It earned+} my [-little, cranky skull-bucket thinkpad feel roomier than-]{+devoted trust and affection. The original is still going, but over+} the [-glossy MacBook Pro I work on.-]{+years, I've amassed a small collection of them: you can get one in working-order on Ebay for around $65 bucks.+}
[-At any rate,-]{+That's+} all {+a long way+} of [-that doesn't change-]{+saying+} the[-fact that it's an antiquated machine--and-] I [-use it primarily for text editing. I like coding on it--but in vim with my own config. Not in an unwieldy and poorly-rendered Java app. The Arduino IDE--as fantastic as it is--has been a raw spot on my Arch machine. I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian))-]{+_like_+} to [-compile-]{+use+} my [-avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest,-]{+X40 + vim,+} even [-if they're anathema to Assembly Cowboy's. Not growing up on embedded programming, the whole `(1 << PB4)`, alas, does not quite feel like first nature.-]{+when there's no good reason for doing so.+}
[-So -- can you have it all? Vim, an X40, a tiling WM (Awesome and Xmonad)-]{+## Arch+} + [-Arduino? Sure. Doesn't mean it's particularly easy, but [Arscons](https://github.com/suapapa/arscons) makes the process relatively painless.-]{+Arduino+}
{+I'm presently running Arch off've a 4GB USB stick (the X40s on Ebay are almost always stripped of their hard-drives). I couldn't be happier. Mako has a [great post](http://mako.cc/copyrighteous/20111207-00) on the travesty that is the 16:9 screen ratio --which makes my little, cranky skull-bucket thinkpad virtually as roomy as the glossy MacBook 13'' Pro I typically work on.+}
{+At any rate, all of that doesn't change the fact that it's an antiquated machine and I use it primarily for text editing. I like coding on it--but in vim with my own config. Not in an unwieldy and poorly-rendered Java app. The Arduino IDE--as fantastic as it is--has been a raw spot on my Arch machine. I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian)) to compile my avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest, even if they're anathema to Assembly Cowboy's. Not growing up on embedded programming, the whole `(1 << PB4)`, alas, does not quite feel like first nature. +}
{+What we got: vim, an X40, a tiling WM (Awesome and Xmonad) + Arduino? Doable? Sure. Doesn't mean it's particularly easy, but [Arscons](https://github.com/suapapa/arscons) makes the process relatively painless. +}
{+###+} First, install the necessaries:
sudo pacman -S install python-pyserial scons
2012-10-04 17:17:27 : Whatever we've got. Revising arscons.
»
Find 322273d27f478dc8f1aa05370a1bfe8e0dbf1124 on GitHub.
Whatever we've got. Revising arscons.
---
title: Using Arscons
summary: Free'd from the {+kind+} tyranny of [-an-]{+the Arduino+} IDE.
date: 2012-08-24 14:10:22
---
I've used Arch Linux for years -- always a bit ineptly, I must admit -- and a while back, mostly because of {+a new job (and the allure of ditching my open-source sensibilities and transitioning to+} Adobe CS, I switched to {+a+} Mac. I've been[-pretty-] happy {+enough+} since, but there's something about coding in Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked. {+Too slick, maybe? I find I work better in heavily constrained environments.+}
{+So+} I've always had another machine [-around--a Thinkpad X40, to take-]{+around for my "real" coding work, taking+} up the slack. My [-old X40--which-]{+machine of choice is I've gone through a number of these durable guys. One X40+} accompanied me on a [-six month-]{+six-month+} jaunt in Central [-America and has earned-]{+America, earning+} my devoted trust and [-affection since.-]{+affection. Over the years,+} I've[-since-] amassed a small collection of [-the things--you-]{+them: you+} can get one in working-order on Ebay for around $65 bucks, last I checked.
I'm presently running Arch off've a 4GB USB stick (the ones on Ebay almost never have drives). I couldn't be happier. I'm not the only one. Mako has a [great post](http://mako.cc/copyrighteous/20111207-00) on the travesty that is the 16:9 screen ratio --which makes my little, cranky skull-bucket thinkpad feel roomier than the glossy MacBook Pro I work on.
At any rate, all of that doesn't change the fact that it's an antiquated machine--and I use it primarily for text editing. I like coding on it--but in vim with my own config. Not in an unwieldy and poorly-rendered Java app. The Arduino IDE--as fantastic as it is--has been a raw spot on my Arch machine. I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian)) to compile my avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest, even if they're anathema to Assembly Cowboy's. Not growing up on embedded programming, the whole `(1 << PB4)`, alas, does not quite feel like first nature.
@@ -15,7 +17,7 @@ First, install the necessaries:
sudo pacman -S install python-pyserial scons
Then grab the SContstruct file and copy it into your sketch folder, type `scons`, and let the magic unfold. Maybe. Didn't work for me outt've the box. Because I have several versions of avr-gcc, a conflict prevented programs from compiling correctly. I edited the SConstruct file to make it work right--in my case, I just modified the [-AVR_BIN_PREFIX-]{+`AVR_BIN_PREFIX`+} setting to point to the actual Arduino install of `avr-gcc`. That broke `avrdude`, but such is life. I don't know exactly what was amiss, but it seemed to have worked fine.
Now I can work on mac, quickly compiling Arduino programs and such--sync them up through GitHub--and work on my X40 with Scons, without having to stop using vim.
2012-10-02 10:34:08 : Moved all files over to a flat file system. Added new hyde plugin.
»
Find e98500c7a0459410661b53d92e754b7d84a1b869 on GitHub.
Moved all files over to a flat file system. Added new hyde plugin.
@@ -0,0 +1,23 @@
{+---+}
{+title: Using Arscons+}
{+summary: Free'd from the tyranny of an IDE.+}
{+date: 2012-08-24 14:10:22+}
{+---+}
{+I've used Arch Linux for years -- always a bit ineptly, I must admit -- and a while back, mostly because of Adobe CS, I switched to Mac. I've been pretty happy since, but there's something about coding in Snow Leopard or Lion or Cat or whatever we're on, that I've never really liked.+}
{+I've always had another machine around--a Thinkpad X40, to take up the slack. My old X40--which accompanied me on a six month jaunt in Central America and has earned my devoted trust and affection since. I've since amassed a small collection of the things--you can get one in working-order on Ebay for around $65 bucks, last I checked. I'm presently running Arch off've a 4GB USB stick (the ones on Ebay almost never have drives). I couldn't be happier. I'm not the only one. Mako has a [great post](http://mako.cc/copyrighteous/20111207-00) on the travesty that is the 16:9 screen ratio --which makes my little, cranky skull-bucket thinkpad feel roomier than the glossy MacBook Pro I work on.+}
{+At any rate, all of that doesn't change the fact that it's an antiquated machine--and I use it primarily for text editing. I like coding on it--but in vim with my own config. Not in an unwieldy and poorly-rendered Java app. The Arduino IDE--as fantastic as it is--has been a raw spot on my Arch machine. I've been using [Brian Mayton's](http://bdm.cc) Makefile ([file](https://github.com/samjacoby/avr/blob/master/makefiles.templates/avr_makefile_brian)) to compile my avr programs--but honestly, I love the convenience of the Arduino libraries and all the rest, even if they're anathema to Assembly Cowboy's. Not growing up on embedded programming, the whole `(1 << PB4)`, alas, does not quite feel like first nature. +}
{+So -- can you have it all? Vim, an X40, a tiling WM (Awesome and Xmonad) + Arduino? Sure. Doesn't mean it's particularly easy, but [Arscons](https://github.com/suapapa/arscons) makes the process relatively painless. +}
{+First, install the necessaries: +}
{+ sudo pacman -S install python-pyserial scons +}
{+Then grab the SContstruct file and copy it into your sketch folder, type `scons`, and let the magic unfold. Maybe. Didn't work for me outt've the box. Because I have several versions of avr-gcc, a conflict prevented programs from compiling correctly. I edited the SConstruct file to make it work right--in my case, I just modified the AVR_BIN_PREFIX setting to point to the actual Arduino install of `avr-gcc`. That broke `avrdude`, but such is life. I don't know exactly what was amiss, but it seemed to have worked fine.+}
{+Now I can work on mac, quickly compiling Arduino programs and such--sync them up through GitHub--and work on my X40 with Scons, without having to stop using vim.+}
{+Yes, yes, I know I can use an external editor with Arduino, but I don't like doing that for some reason. I end up being confused about where I should be editing. So that's that--not so grand. Scons is basically Make--or does the same things, at least--and lets you use Python rather than all of that gibberish. There *are* `Makefiles` for Arduino that do the exact same thing--but they are even more of a code soup.+}