Wednesday, April 14, 2010

USB to Parallel Converter - TrendNet TU-P1284 on Ubuntu using HP Series II Printer

I own an aging, but trusted workhorse of a printer - HP Series II.  My printer was built in 1987 and to the surprise of many the toner cartridges are still available from mass retailers.  The crux of getting old in the printer world is my Series II only has an LPT port and most new computers (even desktops) no longer have LPT ports.  This was the issue for me in the recent years where I only had one computer (a Shuttle mini-box) with an LPT port.  This was fine until our recent move and I now longer want to have my Shuttle system setup to just for my occational printing needs.


Enter the TrendNet TU-P1284 USB to Parallel Convert which I just got off Amazon for a cool $14.  I'm using Ubuntu and CrunchBang as my operating systems.  As any Linux user knows, having a manufacturer listing Linux support is pretty rare for the little items like a converter (although I am noticing it more and more).  So the cable arrived today and I hurried unpacked it. I plugged it in and a big fat... nothing.  CUPS would not even recognize a new printer connected.


After a whole bunch of Googling and a few thoughts of returning the cable to Amazon, I found a bug from a few years about about foomatic not recognizing printers connected via usb to parallel converters. So instead of editing CUPS configuration files I decided to check if I could find in "/dev/usb" if Ubuntu actually saw the usb converter plugged in and Ubuntu did at "/dev/usb/lp0". I was right! It was mirrored at /dev/usblp0.  So I tried adding a printer again in CUPS by using this device URI "usb:/dev/usblp0" (yes, a zero - "0") and the test page did not work.  I reviewed that bug report again and noticed his HP printer only worked when using the device URI of "parallel:/dev/usblp0".  That worked and I was able to select the printer driver for HP II (there are three available) and had a successful test page printed.


So I'm posting this for two reasons:



  1. Google did not come up with any immediate results that helped me.

  2. I will forget how I set this up by tomorrow and next time I switch computers around in my office I will up a wall trying to figure this out again.


Hope this helps somebody else out there.

Nine Myths about Socialism in the US (via CommonDreams.org)



Glenn Beck and other far right multi-millionaires are
claiming that the US is hot on the path towards socialism. Part of their claim is that the US is much
more generous and supportive of our working and poor people than other
countries. People may wish it was so,
but it is not.


As Senator Patrick Moynihan used to say “Everyone is
entitled to their own opinions. But
everyone is not entitled to their own facts.”


The fact is that the US is not really all that generous to
our working and poor people compared to other countries.


Consider the US in comparison to the rest of the 30
countries that join the US in making up the OECD – the Organization for
Economic Cooperation and Development. These 30 countries include Canada and most comparable European countries
but also include some struggling countries like Czech Republic, Greece,
Hungary, Korea, Mexico, Poland, Slovak Republic, and Turkey. See www.oecd.org


When you look at how the US compares to these 30 countries,
the hot air myths about the US government going all out towards socialism sort
of disappear into thin air. Here are
some examples of myths that do not hold up.


Myth #1. The US
government is involved in class warfare attacking the rich to lift up the poor.


There is a class war going on all right. But it is the rich against the rest of us and
the rich are winning. The gap between
the rich and everyone else is wider in the US than any of the 30 other
countries surveyed. In fact, the top 10%
in the US have a higher annual income than any other country. And the poorest 10% in the US are below the
average of the other OECD countries. The
rich in the U.S. have been rapidly leaving the middle class and poor behind
since the 1980s.


Myth #2. The US
already has the greatest health care system in the world.


Infant mortality in the US is 4th worst among
OECD countries – better only than Mexico, Turkey and the Slovak Republic.


Myth #3. There is
less poverty in the US than anywhere.


Child poverty in the US, at over 20% or one out of every
five kids, is double the average of the 30 OECD countries.


Myth #4. The US is
generous in its treatment of families with children.


The US ranks in the bottom half of countries in terms of
financial benefits for families with children. Over half of the 30 OECD countries pay families with children cash
benefits regardless of the income of the family. Some among those countries (e.g. Austria,
France and Germany) pay additional benefits if the family is low-income, or one
of the parents is unemployed.


Myth #5. The US is
very supportive of its workers.


The US gives no paid leave for working mothers having
children. Every single one of the other
30 OECD countries has some form of paid leave. The US ranks dead last in this. Over two thirds of the countries give some form of paid paternity
leave. The US also gives no paid leave
for fathers.


In fact, it is only workers in the US who have no guaranteed
days of paid leave at all. Korea is the
next lowest to the US and it has a minimum of 8 paid annual days of leave. Most
of the other 30 countries require a minimum of 20 days of annual paid leave for
their workers.


Myth #6. Poor people
have more chance of becoming rich in the US than anywhere else.


Social mobility (how children move up or down the economic
ladder in comparison with their parents) in earnings, wages and education tends
to be easier in Australia, Canada and Nordic countries like Denmark, Norway,
and Finland, than in the US. That means
more of the rich stay rich and more of the poor stay poor here in the US.


Myth #7. The US spends generously on public education.


In terms of spending for public education, the US is just
about average among the 30 countries of the OECD. Educational achievement of US children,
however, is 7th worst in the OECD. On public spending for childcare and early education, the US is in the
bottom third.


Myth #8. The US
government is redistributing income from the rich to the poor.


There is little redistribution of income by government in
the U.S. in part because spending on social benefits like unemployment and
family benefits is so low. Of the 30
countries in the OECD, only in Korea is the impact of governmental spending lower.


Myth #9. The US
generously gives foreign aid to countries across the world.


The US gives the smallest percentage of aid of any of the
developed countries in the OECD. In 2007
the US was tied for last with Greece. In
2008, we were tied for last with Japan.


Despite the opinions of right wing folks, the facts say the
US is not on the path towards socialism.


But if socialism means the US would go down the path of
being more generous with our babies, our children, our working families, our
pregnant mothers, and our sisters and brothers across the world, I think we
could all appreciate it.

Bill Quigley is Legal Director at the Center for
Constitutional Rights and law professor at Loyola University New Orleans. There is a version of this article with
footnotes for those interested. Quigley77@gmail.com



Sort of hard to say we're moving towards socialism when we rank last or almost last among the 30 OECD countries. The rest of the post speaks for itself.

Thursday, April 8, 2010

How to view someones IP address and connection speed! (LOL - via YouTube)





This should be in the funny category. I almost fell out of my chair. Supposedly, using "tracert" (or as he calls it - "tracer - T") command on Windows shows everybody using a particular website. Somebody show this guy what a traceroute is!

Tuesday, April 6, 2010

Apple's iPad: The End Of The Internet As We Know It? (via NPR)


Paul Sweeting, an analyst with GigaOM, sees it differently. "With the iPad," he says, "you have the anti-Internet in your hands."



I'd click through and listen to the news story first. However, Mr. Sweeting is right in my opinion. Apple is offering a gated community via iTunes and trying to re-create the old business model of delivering everything to you instead of being open. We all know about the rejected applications on iTunes and censoring what we are trying get away from in the first place (Google built a business on open). I doubt we all want GE and AT&T back at the helm right? Apple is next Microsoft.

Monday, April 5, 2010

My New Office

Allyson and I just bought and moved into our first house (I'll post more photos of the whole house later).  This was an exciting and daunting process at the same.  Suffice it say we have a bunch of work ahead of us considering our house was built in 1923.  As my Aunt and Uncle said in a house warming card: "Welcome to your new hobby."  Below are some before and after pictures of my new office.  The first picture is the "before" version.  We have plaster walls and this room was probably not painted in the last forty years.  This was definitely lead based paint so the prep time for this room was tripled due to the "no dry scrape rule" and any light sanding of the patches had to be done with a wet sanding block.  The Minnesota Department of Health had a good Removing Lead Based Paint - Interior Guide.

Another reason the whole process took so long was that nobody who previously painted in the last 87 years appeared to like painter's tape or drop cloths.  The second and third photos show the "before" and "after of the 8 inch baseboard we had to prep.  We used a combo of razor blades, carbide tipped scrapers and steel wool.  Again, before this was lead based, we had to do this wet with gloves and masks.  The paint spatter was a combo of latex (probably from the ceiling paint 20 years ago) and oil based paint.  After the fact, a buddy of mine told me that wood alcohol works on latex paint without damaging the wood below.  Lastly, we were lucky to have a true HEPA vacuum so getting any paint chips was done safely.

We painted with Behr Primer and Paint in One with the walls in Wasabi Powder (walls), the trim in Vermont Cream and the ceiling in Princess Ivory.  We based our colors after traditional colors for dens or studies in Craftsman style houses of the 1920s.  For your viewing pleasure, the last photo is the "after" picture complete with my empty bookshelf. 


Friday, March 19, 2010

JRun / Apache / jrApache Malloc Errors

I was chatting with a friend to today and this issue was showing up in his Apache logs for an application running on ColdFusion with JRun running on Windows:


[Fri Mar 19 18:01:06 2010] [notice] jrApache[1720: 12042] MEM apache_malloc: 0x2e74af0: 72 bytes
[Fri Mar 19 18:01:06 2010] [notice] jrApache[1720: 12042] MEM apache_free: 0x2e74b70

Believe it or not a quick search of Google "jrApache apache_malloc" or "jrApache apache_free" show a big zero results (which is not common these days on Google).

We figured out after reading about malloc on Apache that it had to do with this setting in the JRunConfig in Apache:


JRunConfig Apialloc true

Apialloc has to do if the memory allocation is going to be handled by the Apache subsystem or the operating system.  Setting it to "true" tells Apache to handle it and setting it to "false" tells the module to ask the OS.  Setting apialloc to false solved the problem:


JRunConfig Apialloc false

We gleamed this information from Steven Erat's blog :


The JRun connector setting for Apialloc governs from where the connector allocates memory. The connector stub is written in C and when it needs to allocate memory it can either ask the operating system for memory (apialloc=false) or ask Apache for it (apialloc=true). Asking Apache for memory was probably quite safe in Apache 1.3x with just one instance of a JRun server, but its best to always set apialloc to false and let the stub work with the OS to manage memory.

via TalkingTree.com

I hope this blog entry filling the zero search results for Google and helps somebody else in the future.

Changing CVS Username and Password in an Eclipse Project

I'm posting this for my future reference since I could find any reference to changing a saved CVS username and password for an already created Eclipse project.  This post has nothing to changing CVS credentials on a CVS server.  I needed to do this because I had commits to make to an open source project however the project I originally setup was using the anonymous read only access.

1. You need to set a new connection string for the CVS repository you want to access by using the CVS Repository view.

Goto the "Window" menu -> "Show View" -> "Other" -> find "CVS" section and expand -> "CVS Repositories"

2. Next setup the new connection string for your repository

Click on the mini icon of this view (a cylinder with the word "CVS" and a "+" sign) -> Add your new CVS repository

3. Associate the new repository (could be the same repository with different login credentials) with your project

Right click on the project in the "Navigator" -> select "Properties" -> in the properties tree select "CVS" -> hit the "Change Sharing..." button -> select your new repository and "OK" -> hit "Apply" back on the properties page

I hope this helps somebody in the future.