Posts Tagged ‘linux’

howto make a quarter sheet daily planner from an ical file in linux

Friday, October 10th, 2008

My Planner

Update: Photos of my planner! Mine is on the left, next to a moleskin to give you an idea of the relative size.  Below is what each day looks like.

Inside of my planner

I use Sandy for most of my calendaring, but don’t have a PDA or mobile phone with a convenient calendar app (and can’t afford one).  So, I needed a paper daily planner that could be generated on a weekly basis from the events that I shoot into Sandy.  I find that it’s no too hard to do a daily paper->electronic sync to update my calendar in Sandy.  Sandy has an ics export which is really nice if I want to view my appointments along with appointments from my other calendars (like my work one, managed by Webcalendar).

What you need:

  • Calendar software that supports printing a daily view (I used KOrganizer)
  • psutils package

Import your remote calendar(s)

I first imported my calendar into KOrganizer (File->Import->Import Calendar and then entered the URL of my iCal feed in the Location field) .

Print the calendar to a postscript file

I printed a page for each day of my calendar with  File->Print and then chose Print Day for the Print Style.  I selected a month worth of dates for the Date & Time Range.  I clicked Print and chose the Print to File (Postscript) option for the printer Name.  The ability to print to a file came with my default KDE setup, but it shouldn’t be too hard to get this ability from whatever printing management system you’re using.

Make the postscript file 4up

I used the psnup program to put four days on one letter sized page.

 ghing@silvertongue:~/tmp$ psnup -pletter -b0.25in -4 planner.ps planner-up.ps

The above options say that the output paper size is letter, that there should be a .25 inch margin around each page (I did this to allow for a binding on the left hand side of the sheets), that there should be 4 pages from the file planner.ps combined into every one page in the output file planner-up.ps.

Open the postscript file and print it

I used evince to open and print my planner.

Cut the pages into quarters

I used a paper cutter to cut the printed pages into quarters.  Take care to keep track of the order of pages so it’s easier to assemble your calendar.

Find a cover and a binding

For mine, I used part of the cover of a notebook that I dumpstered in Bologna and held everything together with a butterfly clip that I got from the supply closet at work.  Be resourceful!

Liveblogging from Linuxfest

Friday, October 10th, 2008

Linuxfest 2008 web page.

In the first talk the presenter said that he felt the greatest contribution of Linux was that it was the great equalizer and that it was responsible for the generation of skilled IT workers in India, China, and other parts of the world that are emerging as producing a lot of technology and technology workers.

Building Community and Taking Linux to the Masses

Zonker talked about Linux and Community and offered this definition of community, saying that FOSS communities have a lot to learn from communities in general:

“Community is when a group of people come together for common cause, work together, and become something greater than the sum of the individuals.”

He pointed out that community building in FOSS is taking software and not just making it free of cost but letting people drive the creation of the technology.

Despite his employment with Novell, he said that people using Linux, even if it’s not OpenSUSE, is a win for him and he’s happy to point out other FOSS communities that are doing things right.

FOSS communities getting it right: Fedora, Mozilla.

FOSS communities getting it wrong: KDE (releasing beta release as 4.0, dropping support for KDE 3.5), OpenOffice (great product, not growing or good community, lots of head butting with Sun)

Community building

When do you start building a community? As soon as you start a project!  Do you want people to contribute to your code, or are you just pushing it to the world?

OpenSUSE is responsive to calls from Japan for more translations.  He feels like Europe has accepted English as a lingua franca for Linux distros, but Japan hasn’t.  Zonker pointed out that this is totally legitimate and noted the challenges of western Europeans/Americans trying to navigate signs in a non-latin alphabet.  He said signs leading to people being invovled in your community need to be clear to lots of different people.

Community building is in the long term (years ! months).  With FOSS projects it’s important to realize that the projects have to be responsible to the community and not just managers or developers.  From the Ubuntu community manager his job is “Making sure the community is getting screwed by Canonical and making sure that Canonical isn’t getting screwed by the community.”

How do you manage community?  Build up trust so that people (developers) want to contribute.

How do you meet the goals of both the community and managers?  E.g. different milestones for Novell and OpenSUSE community.

A community manager’s job is finding and connecting the body parts, but the community itself provides the spark to bring the project to life.

One of the challenges at Novell was to take people who had worked forever answering to managers and they had to learn how to also be responsive to people who weren’t their managers and didn’t even work for the company.

openSUSE build system allows people to build packages for distros that aren’t just openSUSE.

Cool stuff: Helping Hands sessions to help new users with using openSUSE.

Zonker came to being a community manager from being a technology journalist.  This experience has been helpful because it’s made him a good writer and communicator which is crucial for managing a community.  He misses the objectivity of being a journalist and not being perceived as being connected with a company.

Developing on Mac

Had a really nice slideshow.  Lots of big icons.  As with Zonker, the slides were really sparse with most of the details being filled in with the talk.

Presenter defined the fundamental concept of Unix as:

$ ls | wc

“Little bits of functionality that you can link together in interesting ways”

Quartz composer tool is analogous to the pipePatches link together graphic effects.  All the animations on the Mac are built this way. 

This Japanese artist uses Quartz composer in cool ways to make cool works (and he gives you the source).

This stuff is so cool.  The downside is that you have to be able to afford mac hardware and the OS.  I think the reason that people like Macs so much is because they’re fun to use.  Apparently all 6,7, and 8 graders in Maine get new Mac notebooks.  Kids found a way to cheat on a test, even with iChat disabled by creating ad-hoc wireless networks named things like ‘The answer to question 5 is D’.

Virtualization

There were two talks on virtualization.  The first was on enterprise virtualization and the second was on virtualization security.  Apparently, a lot of the big apps at IU like Oncourse, Onestart, and the IU home page are all running on virtual servers.  They did a cool demo where they moved a virtual machine from on physical host to another with no perceivable downtime.

One big advantage of a virtualization that I didn’t really think about was the fact that, by consolidating VMs on fewer physical machines, all the environmentals like electrical, cooling, cabling, space.

Xubuntu Gutsy Gibbon on Dell Latitude D810

Thursday, October 2nd, 2008

I got Rich’s old notebook from work and installed Xubuntu 7.10 (Gutsy Gibbon) see update below on it. I’m tracking issues I’m having with the distro/platform here.

Spell Checking in OpenOffice Writer - FIXED

After having this machine for a while, I just noticed this issue.  I followed some instructions I found here and tried File > Wizards > Install New Dictionaries.

Update: Volume Control Widget - FIXED

My volume control widget up and disappeared.  This post made the suggestion that instead of clicking the ‘Add’ button from the widget list (accessed by right clicking on the taskbar and choosing ‘Add New Item’), you can drag the volume control widget from the list window onto the taskbar and it works.

Update: Upgraded to 8.04

I upgraded via package updates to 8.04 (Hardy Heron) without any problems.

Can’t lock screen - FIXED

I added the screen locking widget to my top panel, but clicking it didn’t do anything. I fixed this by installing the xlockmore-gl package.

Can’t suspend/hibernate - FIXED

When I try to use the buttons to suspend/hibernate (I think these are from some gnome program), the screen goes blank, but I’m not able to resume.

Link to launchpad bug report about this issue.

Apparently, others with this laptop were able to have success by using the uswsusp package. However, they were running Feisty, not Gutsy.

Link to userspace software suspend home page.

Debian has a newer version of the uswsusp package, so I tried installing that because I found what appeared to be thorough docs on using the 0.7 version. Things still didn’t work.

I found another post on the ubuntu forums that aggregated a bunch of information about this issue. link.

I removed the fglrx video driver (a non-free driver) as this was mentioned as causing problems. After removing this driver, suspend to ram didn’t work, but hibernate did using the default login,shutdown,etc. menu. Using the s2ram program from the command line also worked!

Update: If I want to lock the screen on resuming from suspension, I use

s2ram; xlock&

Trackpad is slow

The trackpad seems to move extremely slowly. I can configure the eraserhead using the Mouse Settings panel, but this doesn’t effect the trackpad.

EVDO Card - FIXED

This was the most straightfoward thing so far. This forum thread helped my get my PC5750 EVDO card working just fine with pppd and wvdial.

Playing Encrypted DVDs

Add the following line to /etc/apt/sources.list

deb http://packages.medibuntu.org/ gutsy free non-free

Then run

sudo apt-get install libdvdcss2

Function Keys on Keyboard

These are the keys on the keyboard with additional functionality (written in blue on the keys and accessed by holding down the Fn key to the right of the left-hand-side Ctrl key) that do things like switch between CRT/LCD, eject CD media, change volume or brightness, etc.

fixing sound in debian

Monday, September 22nd, 2008

I’m running debian lenny/sid with  kernel 2.6.26-1 on my workstation and for a while, my audio hasn’t been working in most applications (I was most annoyed by the lack of sound in flash), though it has been working in amarok.  I was getting error messages like this when trying to do audio playback.  These particular messages are from Ekiga:

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'defaults.namehint.extended'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM plughw:0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'defaults.namehint.extended'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM plughw:0
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'defaults.namehint.extended'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM plughw:0

I finally looked into this and was able to fix it with the simple command

 $ sudo asoundconf reset-default-card

Fixing annoying behavior in various Linux desktop appss

Monday, September 15th, 2008

I finally got off my butt and fixed a few things that had been driving me nuts with the settings on my workstation.

Weird KDE copy/select behavior

First, I use KDE, and the copy and paste behavior was driving me nuts.  If I copied text in an application with ctrl-c and then selected text with the mouse, my copied text would get clobbered by the selected text.  It turns out that the culprit was Klipper.   I made the functionality the way I wanted it by checking the ignore selection option in the Klipper configuration window (right click on Klipper icon in tray -> Conrigure Klipper).

Klipper Configuration

Default Browser for Tomboy

I like the Tomboy note taking program.  However, it was opening URLs in notes in Epiphany instead of Firefox.  Even though I run KDE for my desktop environment, since Tomboy is a Gnome app, I have to set the default browser for Gnome apps.  You can do this with the  gnome-default-applications-properties command.

disabling tap-to-click on synaptic touchpad in ubuntu

Tuesday, March 11th, 2008

I was leant a Dell Latitude D810 that has a Synaptics touchpad.  Eventually, I had to admit that the tap-to-click setting was a little to sensitive and kind of annoying (most frequently, I accidently clicked things in my bookmarks toolbar in Firefox).  I found that I could disable the tap-to-click feature by adding the line:

 Option        "MaxTapTime"        "0"

to the appropriate section of my /etc/X11/xorg.conf file so that it looks like this:

Section "InputDevice"
    Identifier    "Synaptics Touchpad"
    Driver        "synaptics"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/psaux"
    Option        "Protocol"        "auto-dev"
    Option        "HorizEdgeScroll"    "0"
    Option        "MaxTapTime"        "0"
EndSection

linux cheatsheet

Tuesday, March 11th, 2008

Search and Replace in Multiple Files

perl -pi -w -e 's/search/replace/g;' *.php

from How to do a search and replace over multiple files

linuxing the imac

Monday, December 3rd, 2007

There’s an old imac under the table at bz’s house that’s gathering dust and I was going to try to put Linux on it. I’ve had a good experience with xubuntu running well on older hardware and having good, easy-to-use features (and it’s debian based), so I’m going to try that and document my experience here.

I had a little trouble finding the iso for PPC xubuntu, but eventually found it at http://cdimage.ubuntu.com/xubuntu/ports/releases/7.04/release/

This article gave some information on installing xubuntu on various platforms, and said that the firmware needed to be upgraded on the iMac before xubuntu could be installed. I found the firmware for this particular iMac (slot-loading, 350 MHz, 128MB SDRAM) at http://docs.info.apple.com/article.html?artnum=88010 (or maybe at http://docs.info.apple.com/article.html?artnum=75130) and instructions for installing the firmware at http://docs.info.apple.com/article.html?artnum=60385.

The machine ended up being bricked, but I thought I’d post this for future reference.

media check for the week of 2007-08-19

Monday, August 20th, 2007

I decided to go to the IU library to check out the book The Suburbanization of New York: Is the World’s Greatest City Becoming Just Another Town? (ISBN-13: 978-1-56898-678-4) and found a wealth of other interesting books in the HN80.N5 section on the 7th floor. I also checked out There Goes The Neighborhood (ISBN-10: 0-394-57936-4), a book about the politics of race and class in Chicago neighborhoods, and passed on Praciticing Community (ISBN-10: 0-292-73118-3), a book about similar dynamics, but in Cincinatti, though it also looked good.

I heard an interesting recording of a Michael Parenti talk on Alternative Radio on WFHB on Monday, 2007-08-20 that was kind of all over the place, but mostly about how identity politics are exploited to divide people who are marginalized by race, gender, or sexual orientation. He also suggested that the division of power in this country often finds people with very different ethnic, gender, sexual, or other cultural identities on the same side of that power divide.

I read this article by Dave Zirin, author of What’s My Name Fool?: Sports and Resistance in the U.S., Welcome to the Terrordome, and other books about sports and politics. Zirin writes about the difficulties in sending copies of his books to a Texas death row inmate because

“It contains material that a reasonable person would construe as written solely for the purpose of communicating information designed to achieve the breakdown of prisons through offender disruption such as strikes or riots.”

The offending content, according to the TXDOC, included quotations such as this from baseball great Jackie Robinson:

“I felt tortured and I tried to just play ball and ignore the insults. But it was really getting to me. … For one wild and rage-crazed moment I thought, ‘To hell with Mr. Rickey’s “noble experiment.” … To hell with the image of the patient black freak I was supposed to create.’ I could throw down my bat, stride over to that Phillies dugout, grab one of those white sons of [expletive] and smash his teeth in with my despised black fist. Then I could walk away from it all.”

I use del.icio.us for managing my bookmarks. Often, I want to access my del.icio.us bookmarks through my browser instead of having to visit the del.icio.us site. The del.icio.us Bookmarks Firefox add-on lets me do just that.

Roy F. Baumeister’s talk, Is There Anything Good About Men? is really interesting. It talks about the different ways that culture have used men and women to achieve its ends. It also talks about how a fundamental difference between men and women is that men favor wider, shallower relationships and women prefer closer, more intimate relationships and how this has driven the different cultural realms that are inhabited disproportionally by men and women. At the base of this, claims Baumeister, is the evolutionary reality that far more women reproduce than men. The wider, shallower, relationships or more risk-taking activities favored by men, in general, facilitates the differentiation that will allow some men to reproduce.

On a somewhat related note, this is a program that my friend is working with. The program is trying to organize
Men of Strength (MOST) Clubs in DC and other communities. A friend who works with the Middleway House, a Bloomington shelter for women and children affected by rape and family violence says that young men who stay in the shelter really lack a community of other males to critically examine their ideas of identity and masculinity and to model ideas of gender or relationships that differ from the violence that they’ve experienced. These clubs seem like a rare example of something that might begin to provide this support/education. The clubs are described as:

The
Men of Strength (MOST) Club has provided young men in Washington, DC and California high schools and colleges with a safe and supportive haven to connect with male peers while exploring masculinity and male strength.




Exposing young men to healthier, nonviolent models/visions of manhood, the MOST Club challenges members to define their own definition of masculinity and to translate their learning into community leadership, progressive action, and social change.


MOST CLUB AIMS TO:

  • Provide young men with a safe, supportive space in which to connect with male peers through exploring notions of masculinity and male strength.
  • Promote an understanding of ways that traditional masculinity contributes to sexual assault and other forms of men’s violence, perpetuates gender inequity, and compromises the health of men and women.
  • Expose young men to healthier, nonviolent models/visions of manhood.
  • Build young men’s capacity to become peer leaders and allies with women in promoting gender equality and preventing men’s violence.

I have Debian Etch with KDE installed as my workstation at work, and I had a hard time figuring out how to make Iceweasel (Debian’s all-free software version of Firefox) the default browser instead of Konqueror.  Turns out it was as easy as

$ update-alternatives –config x-www-browser

Bloomington Linux Users Group @ Monroe County Public Library Room 1B. 7p.

Friday, February 9th, 2007
February 13, 2007
7:00 pm

Join BLUG for a magical evening of Linux goodness.  Tuesday’s
presentation will be by Scott Blaydes on Virtualization on the Linux
Desktop.  We will take a look at some of the options to help users
replace Microsoft Windows on their desktop.

After the short presentation we will have an open discussion for
everyone to talk about what is going on in the Linux world and to get
advice on problems.
*NOTE: I will not be discussing Xen.  Xen deserves a whole presentation        for itself…and I haven’t had the time to get it working on my laptop.