Commit 41037c36 authored by Annika Backstrom's avatar Annika Backstrom

Adding sixohthree-import from WordPress

parent 55ff6440
Title: 16.7 Exabytes
Date: 2009-01-15 13:26
Author: Adam
Category: Computers
Tags: Mac OS X, processes, sqldeveloper, top, virtual memory
Here's my currently-running Activity Monitor:
[][][![Activity Monitor][]][]
That process at the top of the list? [SQL Developer][].
[]: http://blogs.bwerp.net/712/167-exabytes/picture-1-2-2
[Activity Monitor]: /~adam/wp-uploads/2009/01/picture-1-300x235.png
[![Activity Monitor][]]: /~adam/wp-uploads/2009/01/picture-1.png
[SQL Developer]: http://www.oracle.com/technology/products/database/sql_developer/index.html
Title: Feedback Loop
Date: 2012-10-24 09:36
Author: Adam
Category: Web
Tags: nginx, social, ssl, Twitter
[William Chan][] blogs about [SSL record sizes in the wild][],
remarking, "My site sucks since I have no way to control this in nginx."
[@nginxorg][] links to the article, and drops William a hint for
tweaking his setup:
https://twitter.com/nginxorg/status/261071397613359104
<!--</p><p>SSL record sizes in the wild by William Chan insouciant.org/tech/ssl-recor… (spoiler: NGX_SSL_BUFSIZE is defined in src/event/ngx_event_openssl.h)</p><p>-->
You guys, I think the system works!
[William Chan]: https://plus.google.com/103382935642834907366/posts
[SSL record sizes in the wild]: https://insouciant.org/tech/ssl-record-sizes-in-the-wild/
[@nginxorg]: https://twitter.com/nginxorg
Title: Starstruck
Date: 2012-10-25 09:41
Author: Adam
Category: Personal
Tags: Brooklyn
Had my first starstruck moment in Brooklyn, standing next to Maggie
Gyllenhaal on the subway.
Title: Page Rank after SSL Migration
Date: 2012-11-20 10:19
Author: Adam
Category: Personal
I migrated my blog to SSL on Nov. 6, but setting a 301 redirect on the
non-SSL version has dropped me down below Twitter, Google+, GitHub,
Stack Overflow, and one or two others in Google. Geek frustration level
rising.
Title: A Blog is Born
Date: 2002-12-06 22:19
Author: Adam
Category: Blogging
After much deliberation, procrastination, and general supressing of my
own ego, I have finally decided to take the plunge and dive face-first
into the exciting world of [blogging][]. I have a fresh copy of [Movable
Type][], a fist full of links, and a brain just itching to be dumped out
over the web for all to see.
Let us wish for the best, eh?
[blogging]: http://www.everything2.org/index.pl?lastnode_id=389002&node_id=389001
[Movable Type]: http://www.movabletype.org/
Title: A Lone Echo Post
Date: 2003-06-30 19:48
Author: Adam
Category: Web
Tags: atom, Echo, syndication
There has been quite a bit of talk lately regarding [Echo][], which aims
to replace RSS as the syndication de facto standard. This drive for a
replacement is due in no small part to the politics around RSS, and what
seems to be a general distaste for [Dave Winer][], father of RSS.
</p>
Really, I don't know all the details, and honestly, it doesn't really
make much of a difference to me at this point. I don't subscribe to any
RSS feeds, and the only reason they exist for my blog is because they're
part of the default Movable Type installation. But Dave [called for
support][] of RSS, so here's what he gets:
</p>
**If and when the Echo spec is finalized, I will support and publish
Echo-formatted feeds, and *only* Echo-formatted feeds.** If and when.
</p>
Echo is young. It has some powerful minds behind it, but there's still a
long road ahead. I have no doubts that a final product from this group
of people will be complete and well thought out. So, here's to the
developers. See you at the crossroads.
</p>
[Echo]: http://www.intertwingly.net/wiki/pie/
[Dave Winer]: http://www.scripting.com/
[called for support]: http://scriptingnews.userland.com/2003/06/29#When:4:25:49PM
Title: A Vim of a Different Color
Date: 2009-03-26 23:07
Author: Adam
Category: Linux, Mac OS X
Tags: iterm, screen, Vim
After one too many compilation errors due to a missing
quote/brace/bracket/etc., I finally enabled Vim syntax highlighting. The
rabbit hole:
1. `:syn on`. These colors suck. Look for themes.
2. 4 bit themes suck. Let's set up an 8 bit color terminal.
3. Leopard's Terminal.app [fails][], install iTerm 0.9.6.
4. iTerm works, but I use GNU screen all day. Recompile screen with
`--enable-colors256`.
5. screen wins, but doesn't play nice with the delete key in iTerm.
[Fix it][].
6. Compile Vim 7.2 for 8 bit support.
7. Get an [8 bit theme][]. `set t_Co=256` in `.vimrc`.
8. `" syntax highlight html files using the php highlighter`
</p>
`autocmd BufRead,BufNewFile *.html set filetype=php`
<p>
</code>
9. Install [FuzzyFinder][] for good measure now that we're out of Vim
6.3 territory.
10. Start saving seconds/minutes/hours of my life that before were
consumed by syntax errors.
</p>
[![vim-color][]][vim-color]
[fails]: http://www.vim.org/scripts/script.php?script_id=1349
[Fix it]: http://akgeeks.net/node/83
[8 bit theme]: http://www.vim.org/scripts/script.php?script_id=2175
[FuzzyFinder]: http://www.vim.org/scripts/script.php?script_id=1984
[vim-color]: /~adam/wp-uploads/2009/03/vim-color.png
Title: IE "Operation Aborted" and jQuery
Date: 2008-07-09 07:58
Author: Adam
Category: Web
Tags: ie, ie7, internet explorer, internet explorer 7, JavaScript, jgrowl, jquery
[![Operation Aborted dialog][]][]I ran into a problem with Internet
Explorer 7's "[Operation Aborted][]" dialog yesterday. When displaying a
message via [jGrowl][], IE7 would display the contents leading up to my
`<script>` tag, then die with that error and redisplay a "friendly"
error page claiming, "Internet Explorer cannot display the webpage."
The previously mentioned IEBlog article immediately shined light on my
mistake: `$.jGrowl()` was attempting to modify `<body>` before the tag
had been closed. The solution: place my `$.jGrowl()` calls in
`$(document).ready()`.
[Operation Aborted dialog]: /~adam/2008/07/09/aborted.sm.jpg
[![Operation Aborted dialog][]]: /~adam/2008/07/09/aborted.jpg
[Operation Aborted]: http://blogs.msdn.com/ie/archive/2008/04/23/what-happened-to-operation-aborted.aspx
[jGrowl]: http://stanlemon.net/projects/jgrowl.html
Title: About
Date: 2005-09-07 22:38
Author: Adam
This is the personal weblog of Adam Backstrom. It often acts as a
dumping ground for questions and answers regarding web development, PHP,
Mac OS X, the command line, and other relevant tech topics. As of
January 23, 2005, content on this blog is released under the [Creative
Commons][] [Attribution-ShareAlike 2.0][] license.
The blog is hosted by a "[Linode][] 768" virtual server. (The preceding
link includes my Linode referral code.)
A incomplete visual history of this blog's theme is [available for
posterity][]. In addition, the [theme files are available online][] via
gitweb. These files are implicitly licensed under the terms of the [GNU
Public License][], as they are a derivative work of WordPress.
On June 1, 2009, the blog's domain changed from blogs.bwerp.net to
sixohthree.com. "603" is the New Hampshire telephone area code.
About the Author
----------------
</p>
Adam is a father, husband, and web developer in central New Hampshire.
He frequently works with PHP, JavaScript + jQuery, and WordPress in a
GNU/Linux environment.
Accessibility
-------------
</p>
Every effort is made to keep this weblog semantic and accessible. If all
has gone according to plan, this website will scale from [modern
browsers][] to handheld devices to text-based browsers all the way back
to NSCA Mosaic 1.0. If you have any difficulty viewing this site, you
are free to [drop Adam a line][].
[Creative Commons]: http://creativecommons.org/
[Attribution-ShareAlike 2.0]: http://creativecommons.org/licenses/by-sa/2.0/
[Linode]: http://www.linode.com/?r=3b19dabb9ed30b096be4bfc83724d4e7f4c89c15
[available for posterity]: /theme-evolution "Theme Evolution"
[theme files are available online]: http://git.abackstrom.com/wp-sixohthree.git
[GNU Public License]: http://wordpress.org/about/gpl/
[modern browsers]: http://www.mozilla.org/products/firefox/
[drop Adam a line]: mailto:adam@sixohthree.com
Title: Accidental Absence
Date: 2005-03-27 19:38
Author: Adam
Category: Games
Sorry I've been away. I took a trip to the beach.
[![][]][]
Yes, I've been playing [Final Fantasy XI][] (FFXI) with extreme
frequency for the past six weeks. This game is nothing short of
immersive, with more to discover than I could ever possibly have time
for. Of course, I love it for that.
That's all, really. I won't bore you with the details... for now.
[]: /~adam/2005/03/27/beach_t.jpg
[![][]]: /~adam/2005/03/27/beach.jpg
[Final Fantasy XI]: http://www.playonline.com/ff11us/index.shtml
Title: ACGT, If You Please
Date: 2003-11-15 01:28
Author: Adam
Category: Personal
I have this problem speaking my mind. I clam up, don't say anything that
might be remotely confrontational. Even sometimes, when I think it's
important, I still say nothing. Don't ruffle the feathers, don't stir up
those waters. I wonder where it comes from. I think, My dad seems like
this, did I get it from him? Is quiescence hereditary, a part of my
genes? Will I curse my kids with the same flaws, or am I just being
paranoid? Was the lack of social interaction growing up? Is it because
I'm a guy? (No, shouldn't stereotype.)
</p>
So since I can't tell people, I tell my blog instead. Everyone, and no
one in particular. A public apology that I'll probably want to push down
the stack as quickly as possible come morning.
</p>
Title: Activism (or Lack Thereof)
Date: 2003-02-21 22:13
Author: Adam
Category: Politics
Between [Ani DiFranco][] and one of my current professors, I've been
hearing a lot about the terrible things done in the name of America.
I've known for a long time that the US isn't the bastion of freedom and
generosity that we're all led to believe. So much death and poverty
happens so we can live the life we live. We wear clothing made by
sweatshop labor; we eat food cultivated on land stolen from South
American natives; we wage war to avenge Daddy President and pick up a
little oil to boot. Hegemony, warmongering, multinational corporations..
What to do?
I want so badly to just stop it all, but it seems so big.
</p>
[Ani DiFranco]: http://www.righteousbabe.com/
Title: ADOdb, MySQL, and Transactions
Date: 2008-07-23 11:03
Author: Adam
Category: Personal
Tags: ADOdb, PHP, Programming
![][]I was just bit by some assumptions I made with [ADOdb][], MySQL 5,
and transaction support. I've been using [Smart Transactions][] with
success on other systems, but during my current project I noticed the
SQL commands were being processed without respecting my `FailTrans()`
call.
Turns out I was using a storage engine that did not support
transactions. While InnoDB is ACID-compliant, [MyISAM has no support for
transactions][]. Whoops. A few `ALTER TABLE`s later and I'm back in
business.
[]: /~adam/wp-uploads/2008/07/myisam.png
[ADOdb]: http://adodb.sourceforge.net/
[Smart Transactions]: http://phplens.com/adodb/tutorial.smart.transactions.html
[MyISAM has no support for transactions]: http://dev.mysql.com/doc/refman/5.0/en/ansi-diff-transactions.html
Title: Ads vs. Content
Date: 2010-05-04 11:00
Author: Adam
Category: Web
Tags: Advertising, AdWords, screenshot
[![][]][]
Red highlights added by me. I wonder if Google has policies regarding
this type of ad layout. I think having this poor a ratio of content to
ads dilutes all the advertising. Whatever the case, I hate wading
through this many ads in search of the article.
[]: http://sixohthree.com/files/2010/05/hubpages-google-ads-1024x736.jpg
"hubpages-google-ads"
[![][]]: http://sixohthree.com/files/2010/05/hubpages-google-ads.jpg
Title: Targeted Ads in RSS
Date: 2005-01-27 08:19
Author: Adam
Category: Web
Tags: syndication
[Ars Technica][] has started embedding advertisements in their [RSS
feed][]. I've seen this done in bootleg feeds, where the feed maintainer
includes advertisements from the original publisher's site, but the Ars
method is a bit cleaner and not done by a third party. The ad is
actually an image, not any fancy HTML.
</p>
They could work on their targeting, though:
</p>
![Advertisement for breast form double-sided tape, embedded in the Ars
Technica RSS feed.][]
</p>
<span style="font-weight:bold">Update:</span> As of 10:00 PM EST, 27
January, I no longer see the ads in the Ars feed inside Bloglines.
</p>
[Ars Technica]: http://arstechnica.com/
[RSS feed]: http://arstechnica.com/news/rss0.94.rdf
[Advertisement for breast form double-sided tape, embedded in the Ars
Technica RSS feed.]: http://blogs.bwerp.net/~adam/2005/01/27/shuttle-ad.png
Title: The Downside of AdSense
Date: 2004-09-16 12:49
Author: Adam
Category: Personal
[Time.com][] covered New Jersey Governor James McGreevey's confession of
an affair he had with a man he appointed to office. Check the "sponsored
links" at the bottom of the page:
</p>
[![Screenshot of Time.com][]][]
</p>
If I were Time, I would be slightly embarrassed.
</p>
[Time.com]: http://www.time.com/
[Screenshot of Time.com]: http://blogs.bwerp.net/~adam/2004/09/16/t_gay.jpg
[![Screenshot of Time.com][]]: http://blogs.bwerp.net/~adam/2004/09/16/gay.jpg
Title: Adventures in Git: Move Commits from Master to New Branch
Date: 2012-12-01 13:43
Author: Adam
Category: Computers
Tags: Adventures in Git, Git
The other night, I sat down with Git to solve what turned out to be a
very simple problem: what if you've started making commits to your
master branch, but want to move your work into a feature branch? After
staring at `git log` for a few minutes, I had a forehead-slapping
moment. Here's one way to move recent commits into a branch:
Start with a clean master, based off origin/master:
[git-commits]
{ hash: 'a' },
{ hash: 'b', },
{ hash: 'c', }
[/git-commits]
</p>
Make a few commits of your own:
[git-commits]
{ hash: 'a' },
{ hash: 'b', },
{ hash: 'c', },
{ hash: 'd', },
{ hash: 'e', },
{ hash: 'f', }
[/git-commits]
</p>
Now, let's move these commits to a branch. Simply create a new branch at
the current commit, then reset master back to the state of
origin/master.
<p>
(master)$ git branch my-feature(master)$ git reset --hard origin/master
</p>
That's all. No `git rebase`, no `git cherry-pick`, just make your branch
and reset master.
[git-commits]
{ hash: 'a' },
{ hash: 'b', },
{ hash: 'c', },
{ hash: 'd', branch: 'feature' },
{ hash: 'e', branch: 'feature' },
{ hash: 'f', branch: 'feature' }
[/git-commits]
</p>
Title: Gere on AIDS
Date: 2004-07-12 10:45
Author: Adam
Category: World
CBS News: [AIDS Delegates Differ On Condoms][]:
</p>
"The \$200-300 billion spent in Iraq probably could have eradicated
[AIDS]," actor Richard Gere -- one of several celebrities at the meeting
-- told a panel discussion.
</p>
[AIDS Delegates Differ On Condoms]: http://www.cbsnews.com/stories/2004/07/12/health/main628799.shtml
Title: Alpha Five Updates: Syndicated Feed
Date: 2007-08-30 15:48
Author: Adam
Category: Computers
Tags: Alpha Five
I've created a cron job to scrape the [Alpha Software][] website and
generate [an Atom feed][] for new releases. It's updated every six hours
and I can confirm that it worked for the most recent update. (1759\_3105
showed up in [Google Reader][] the next morning.)
The feed is generated using [Django][]'s django.utils.feedgenerator
class. The code [is online][].
[Alpha Software]: http://www.alphasoftware.com/
[an Atom feed]: http://static.bwerp.net/~adam/alpha-updates/update.xml
[Google Reader]: http://www.google.com/reader/
[Django]: http://www.djangoproject.com/
[is online]: http://static.bwerp.net/~adam/alpha-updates/generate.py.txt