Profile

Cover photo
Brandon Casey
63 followers|159,467 views
AboutPostsPhotosVideos

Stream

Brandon Casey

Shared publicly  - 
 
til: How to use vim as an editor (as opposed to an archive manager)

Add these lines to your .vimrc file:

   let g:loaded_tarPlugin = 1
   let g:loaded_tar = 1
   let g:loaded_gzip = 1
   let g:loaded_zipPlugin = 1
   let g:loaded_zip = 1

Voila!  Sanity restored.  Vim will now open the files that you tell it to open, populate the editor buffer with their contents and allow you to edit them.  i.e. it does what an editor is supposed to do.

This has bitten me many times in the past and usually I've just worked around it.  Today it has consumed my entire morning and I've figured out how to fix it for good.  Vim has become "smart" for questionable definitions of the word "smart".  These days when you supply the name of a file that ends in '.tar' or 'tar.gz' to vim, it runs it through tar and/or gzip to extract the contents and provides a navigable tree representation like any decent archive manager will do.  Except vim is supposed to be an editor, not an archive manager.

Just now I tried to download a tar file with the curl command line tool.  Then I tried to extract the contents of the tar file, but tar produced an error claiming that the file was not a tar archive.  I figured, "oh, the download must have failed and curl probably wrote an error message to the downloaded file", so I tried to open it with vim, except vim noticed that the name of the file ended in '.tar.gz' and instead of displaying the file contents to me, piped the contents through tar and I got an error message from gzip and tar in my editor buffer about how the file was "not in gzip format" and it "does not look like a tar archive".  Brilliant.  Thanks vim.  That's not helpful at all.

The vimrc settings above will disable the tar, gzip, and zip plugins so that vim will not try to treat them specially.  When I supply a filename to vim, I want to see the bytes on disk thankyouverymuch.
1
Add a comment...
 
And the 3D printed version...
1
Add a comment...

Brandon Casey

Shared publicly  - 
 
What I've been working on...
Amazon Echo is designed around your voice. Ask it for music, news, weather, information, and more. Get answers instantly. Learn more.
2
Beef Supreme's profile photoBrandon Casey's profile photoAustin Hill's profile photo
5 comments
 
Thanks
Add a comment...

Brandon Casey

Shared publicly  - 
 
Nice.  "The Last of Us" soundtrack is on Amazon Prime Music.
1
Add a comment...

Brandon Casey

Shared publicly  - 
 
Great demonstration of how computers add numbers (aka "do work") by using dominoes to build logic gates.  Excellent video as always from this group.  Also check out "Matt's Big Domino Computer" in the links.
1
1
Mike Esler's profile photo
Add a comment...

Brandon Casey

Shared publicly  - 
 
I was forced by the GNU regime to use info pages today.  Tried to take a quick look at the tar man page, but instead of seeing a description of the options that the command accepts, there was a message from the GNU folks about how they hate me and want me to suffer and die in ignorance.  Oh how I hate info pages.  Man pages, are so wonderful and easy to use.  Who actually likes info pages?  It's hard for me to believe that there are people out there actively making documentation harder to use by converting man pages into info pages and then destroying the man page.
1
Jakub Narębski's profile photoPhil Lawrence's profile photoJohannes Schindelin's profile photoBrandon Casey's profile photo
9 comments
 
Agreed
Add a comment...
Have him in circles
63 people
Eric Ward's profile photo
Carmen Maeia Martin Rios's profile photo
Sitaram Chamarty's profile photo
Jan Guarini's profile photo
Junio C Hamano (Gitster)'s profile photo
Mike Esler's profile photo
Mike Ralphson's profile photo
Kinga Niziolek's profile photo
News sot's profile photo

Brandon Casey

Shared publicly  - 
 
I recently discovered OpenSCAD http://www.openscad.org/.  It bills itself as "The Programmers Solid 3D CAD Modeller".  It's pretty cool.  I've been playing with it this week.
1
Add a comment...
 
Q: Is 4294967296 bytes of memory enough to run +Google Chrome?
A: No.
Q: Why do all browsers follow the same path into excessive, exasperating, exhaustive, memory consumption?
A: Hellifino.

I've been a huge supporter of Chrome, especially the security model and native client, but does it really need to use all of system memory? I think not.

#bloat #chrome #FreeAsInMemory
2
Add a comment...

Brandon Casey

Shared publicly  - 
 
Clock Skew
3
Phil Lawrence's profile photo
 
That is funny.
Add a comment...
 
 
Git won Linux Magazine's Linux New Media Award in the category "Outstanding Contribution to Open Source/Linux/Free Software".
In February, Linux Magazine contacted me, asking if I would be willing to accept the Linux New Media Award 2014 in the main category "Outstanding Contribution to Open Source/Linux/Free Software" on behalf of the Git community due to my involvement with evangelizing and vcsh.
View original post
1
Add a comment...

Brandon Casey

Shared publicly  - 
 
I just found out why I have to configure a different font size (XTerm*faceSize) every time I get a new device.  X11 (since fff00df9 "Ignore EDID-supplied monitor physical sizes for core screen size") hard-codes the display resolution to 96dpi.  Brilliant.  That means, that when you move from a 147dpi display to a 240dpi display, a 7pt font gets rendered like a 4pt font.  Don't these guys know that 7pts is supposed to be 7pts EVERYWHERE!!!  Ans: yes they do.  The justification for this is apparently 1) "This ... follows the practice seen in many other desktop environments..."  i.e. "This is how Windows does it".  It's funny how people use the term "many" when referring to one platform when that platform is Windows. and 2) Web developers assume a 96dpi resolution.  What?  Let's break X so we can be more like Windows?  Let's break X to ensure that a web browser renders a web page correctly?  Why are they trying to fix web page rendering in the X server!?!?!  Since there doesn't seem to be a way to tell X "YES, use the actual dpi of the display", I guess I'm supposed to use 18pt fonts now (up from 11pt)?  
Updated everything to released individual tarballs. Using intel driver from git master, kernel from git, KMS enabled. On 1.6.3 (correct size): (II) intel(0): Setting screen physical size to 303 x 190 On 1.7.0rc0 (wrong size): (II) intel(0): Setting screen physical size to 381 x 238 Both show the ...
1
Avery Pennarun's profile photoDayanand Jagatap's profile photo
2 comments
 
Thanks for the info Brandon
Add a comment...

Brandon Casey

Shared publicly  - 
 
Resistance or Enlightened?
1
Add a comment...
People
Have him in circles
63 people
Eric Ward's profile photo
Carmen Maeia Martin Rios's profile photo
Sitaram Chamarty's profile photo
Jan Guarini's profile photo
Junio C Hamano (Gitster)'s profile photo
Mike Esler's profile photo
Mike Ralphson's profile photo
Kinga Niziolek's profile photo
News sot's profile photo
Basic Information
Gender
Male
Work
Occupation
Scientific Programmer
Employment
  • Scientific Programmer, present
Links
Other profiles
Contributor to