Entries Tagged 'linux' ↓

Touche

Continuing from the previous post.

Jay:
you know I find; tr -d ‘^M^V’ to be a nice replacement to using vi

Get rid of ^M without dos2unix

To remove the ^M characters at the end of all lines in vi, use:

:%s/^V^M//g

The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:

:%s/^M//g

In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

We Are Not A Football Team.

I spent the day thinking I had bricked my ipod. I could mount it under linux and gtkpod recognized it but it wouldn’t create the directories or iTunesDB that it needed. Turns out after I partitioned the iPod and dd’ed the firmware on it I unmounted it and set my language and preferences.
When you do this the firmware creates the needed directories but does not create an itunesDB stub. The trick was to remove everything from the iPod’s data partition and then use gtkpod to create the needed files. Not that anyone cares but at least now I can google it and solve this problem in the future… future… future…

Open Office under Ubuntu

For reasons unknown after setting up STAF on my work machine Open Office 2 and Open Office stopped working. Since I loath the thought of setting up MS Office under WINE I started trying to find the root of the problem. After an hour I got sick of playing with environmental variable and java installs. Instead I downloaded the latest 1.9 milestone and set about setting that up instead. After some mucking around and googling this is what I put together that works.

First download the latest build here.
Unpack the tarball: tar -zxvf OOo_1.9.113_LinuxIntel_install.tar.gz
Change into SRC680_m113_native_packed-1_en-US.8930/RPMS
sudo alien -k *.i586.rpm to convert all the RPMS to debs
Install with: sudo dpkg -i –force-overwrite *.deb
Run: /opt/openoffice.org1.9.113/program/soffice

This isn’t perfect I’m still getting some command line errors that I think are due to a funky java thing. but we’ll see…

That’s Freaking Unacceptable.

As some of you may know, buzzco and I are moving at the end of the month
along with bisti to Del Boca Vista. It’s an
house in clinton corners, ny. It’s more expensive than an apartment but a lot
nicer too. Besides, split 3 ways it’s not so bad…
Anyway, as per mr. eli’s suggestion I’m making sure all my cd’s are ripped
as I pack them and I’ll be sticking them in a closet somewhere when I move. Of
cource though. This was a giant hassle. As of my last upgrade to gnome 2.10
ubuntu decided that sound juicer won’t rip cd’s as mp3’s anymore. I really
wouldn’t mind have oggs, but my ipod won’t play them. I tried to take the easy
way out but grip was slower than sin and goobox would crash really quick. So
what to do. I googled for a while and put together this solution.
It appears in 2.10 that the default gstreamer encoding options are stored in
the gconf registry. Sound Juicer just reads these settings and makes them
available to the user. Unfortuantely there is no setting for mp3’s. On the
ubuntu forums I found how to edit the key,
system->gstreamer->audio->profiles->cdlossy. Change the pipeline and extension
and it will work. The problem was I didn’t really want to blow away the ogg
setting and every time I edited it sound juicer would fail. So I found an
alternative.

run gnome-audio-profiles-properties
Create a new profile named CD Quality, Lossy, mp3
Edit this new profile and enter a description
Here is the key set the Pipeline to
audio/x-raw-int,rate=44100,channels=2 ! lame name=enc
Set the File Extension to mp3>
Finally, go to the prefrences on sound juicer and select your new
profile. If it gives a grstreamer error check for typos.

Someone needs to fix this.

That’s Freakin’ Awesome

Last night I purchased Crossover Office from Code Weavers , for those of you who do not know this is the commercial version of wine with extended support and a fancy configuration manager. The license is decent, I can use it on as many machines as I like as long as I’m only using one instance at a time so I can run it at home and at work without difficulty.
The reason I need to run wine is Lotus Notes. At work (ibm) it is a necessity it works fine under wine but I had been looking at some other windows apps that would be nice to have while working and at home. Here is the list of programs that I am currently using sucessfully with it between my two machines.

Lotus Notes
Internet Explorer (used for testing at work)
iTunes with support for both the music store and ipod)
Audible Download Manager (so I can download books without dual booting)
Musicbrainz mp3 tagger
Windows Media Player 9 (audible again)
Goldwave (convert audio books and iTMS songs to mp3)

For $40 dollars I closed the gap on what I felt I was missing out on running windows. Perhaps the best part is the ease of use (there was a lot of fiddling for iPod support) there is an install manager which will autoinstall supported applications if it is free like iTunes it will just get it for you. If it is not free you either specify a cd or an exe and Crossover Office takes it from there. I can confidently reccommend Crossover Office to anyone who has need of windows apps and ease of use. WOOT!

That just sucks.

The file which you have started editing has got another timestamp and the
contents changed (more precisely: When reading the file again with the current
option settings and autocommands you would end up with different text). This
probably means that some other program changed the file. You will have to
find out what happened, and decide which version of the file you want to keep.
Set the ‘autoread’ option if you want to do this automatically.
This message is not given when ‘buftype’ is not empty.

There is one situation where you get this message even though there is nothing
wrong: If you save a file in Windows on the day the daylight saving time
starts. It can be fixed in one of these ways:

Add this line in your autoexec.bat: >
SET TZ=-1
Adjust the “-1″ for your time zone.
Disable “automatically adjust clock for daylight saving changes”.
Just write the file again the next day. Or set your clock to the next day,
write the file twice and set the clock back.

– from the gvim :help W11 page.

That’s Kickass.

Buzzco showed me this
gaim plugin and it’s excellent. It gives on screen notification without
messing with the panel or getting in the way. Here’s a screenshot, try it
out.

Make Firefox Faster

Type “about:config” into the address bar and hit return. Scroll down and
look for the following entries:

network.http.pipelining network.http.proxy.pipelining
network.http.pipelining.maxrequests

Normally the browser will make one request to a web page at a time. When you
enable pipelining it will make several at once, which really speeds up page
loading.

Alter the entries as follows:

Set “network.http.pipelining” to “true”

Set “network.http.proxy.pipelining” to “true”

Set “network.http.pipelining.maxrequests” to some number like 30. This means
it will make 30 requests at once.

Lastly right-click anywhere and select New-> Integer. Name it
“nglayout.initialpaint.delay” and set its value to “0″. This value is the
amount of time the browser waits before it acts on information it
recieves.

COSInaughts to the rescue

So the gnome desktop whore that is mr. eli dow brought me the solution I was looking for. udev, dbus, HAL, and gnome-volume-manager. Well he recoommended udev and hal. I got the rest from my old friend google. I will be setting it up tonight. Wish me luck. Here are the pertinent links:

UDEV Primer for new and vetran Linux users.
The Gentoo UDEV guide
A gentoo forum thread

There may be others at some point…