Moving machines

TorgoX on 2005-04-07T09:56:29

Dear Log,

After the better part of a decade's procrastination, I have finally switched over to Unix (specifically Fedora Linux) as my main platform. The change has been mostly uneventful.

Moving and adapting all my various config files led me to retrospect retrospectively on my bits of config fun.

Here are the highlights of my Firefox config (beyond just using lots of wonderful extensions): In Firefox, pull up about:config and then set these:

  • image.animation_mode ⇒ "once"
  • browser.chrome.favicons ⇒ false
  • browser.chrome.site_icons ⇒ false
  • javascript.options.strict ⇒ true
The first one lets animated GIFs cycle only once, then they stop forever, dammit. The second and third ones turn off use of favicons (like the little camel for this site). And the last one throws JavaScript into scrict mode (which is actually more like Perl "use warnings;" than "use strict;"). It's a must if you're writing any JavaScript; also you get to occasionally open your JS console and laff at how bad the JavaScript code on most web sites is.

More on site icons: I also have, in my ~/.mozilla/firefox/[goo].default/chrome/userChrome.css file, this bit of XUL-CSS to get tabs to absolutely have no icons, and to have smaller fonts:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */

/* Kill all tab icons, no matter what */
.tabbrowser-tabs .tab-icon {
  display: none;
}

/* Change color of normal tabs */
tab {
   color: gray !important;
   /* background-color: #ff0000 !important; */

   font-family: "Small Fonts", Tahoma, Arial, sans-serif !important;
   font-size: 70% !important;
}

/* Change color of active tab */
tab[selected="true"] {
   color: black !important;
   /* background-color: #00ff00 !important; */

   font-family: "Small Fonts", Tahoma, Arial, sans-serif !important;
   font-size: 70% !important;
   font-weight: normal !important;
}

Meanwhile, in my .emacs.config ...

(defun kill-ring-save-line () "Copy the current line to the kill ring"
  (interactive)
  (save-excursion
    (beginning-of-line)
    (kill-ring-save
     (progn (beginning-of-line) (point) )
     (progn (end-of-line) (point) )
     )
    )
  )

(global-set-key "\M-k" 'kill-ring-save-line)


;; and while I'm showing off:
(global-set-key "\M-o" 'occur)
(global-set-key "\M-m" 'man)
(global-set-key "\M-p" 'cperl-perldoc)

  (defun dos-newlines () 
    "sets the buffer-file-coding-system to undecided-dos; changes the buffer
    by invisibly adding carriage returns"
    (interactive)
    (set-buffer-file-coding-system 'undecided-dos nil))
  (defun unix-newlines () 
    "sets the buffer-file-coding-system to undecided-unix; changes the buffer
    by invisibly removing carriage returns"
    (interactive)
    (set-buffer-file-coding-system 'undecided-unix nil))
  (defun mac-newlines () 
    "sets the buffer-file-coding-system to undecided-mac; may change the buffer
    by invisibly removing carriage returns"
    (interactive)
    (set-buffer-file-coding-system 'undecided-mac nil))

Now if only I could figure out how to alias control-; to control-x.

(This post has been brought to you by the number 0.666318055332766 and the letter ஞ.)


pushing your technology choices on other people

lachoy on 2005-04-07T16:55:36

Reading the article you linked to got me thinking about one of the truly hateful geek tendencies: responding to a problem by proposing a completely different toolset. (Where "toolset" depends on the domain under discussion...)

For instance, I say: "I've got a working CGI::Application app but am trying to get it to do X and am having problems. Has anyone done this before?" Someone responds, "Well, if you used webapp framework Y you could do it so much easier...."

...yeah, and if my aunt had testicles she'd be my uncle. Sure, I'll invest days and days to relearn a whole bunch of configurations, ideologies and quirks just to get back to where I am right now. And spend a few more weeks to rewrite all my applications use this fantastic new framework, a few more to fix all the bugs I introduced. And then in a few months I'll say, "I've got a working Y app but am trying to get it to do X..." and the whole process will start again. Hooray!

But. That's how we wind up changing technologies, isn't it? Otherwise Perl probably never would have replaced the shell/awk/sed/etc. toolset without Randal and Larry enlightening sysadmins on usenet. (Or maybe it would have done so much more slowly.)

So it certainly has a place, even in public. I guess I just wish people would think about these things before pushing their kool-aid. (Not much of a rant conclusion, eh?)

Re:pushing your technology choices on other people

Dom2 on 2005-04-07T17:58:52

Got a problem? Recompile your kernel! ;)

-Dom