Sections:
all
about
computers
general
links

Yum error when updating

Monday, September 21, 2009

This happened to me when trying to run yum update (its happened a few times on several different machines; see fix below):

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in ?
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 229, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 145, in main
    (result, resultmsgs) = base.buildTransaction() 
...
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 94, in 
_read_db_obj
    setattr(self, item, _share_data(db_obj[item]))
TypeError: unsubscriptable object

To fix this:

> yum clean metadata

Or if that doesn’t work, you can also try:

> yum clean all

FiOS in Perris

Wednesday, June 25, 2008

This past Friday, I saw several Verizon trucks on my street, parked every few hundred feet. Went to talk to them and they informed me that they were installing fiber for FiOS service. The technician said that FiOS should be available in a month or so.

Well I’m fairly excited. I have Time Warner with 10mb down and 1mb up. About a year ago, though, I would have been even more excited. My speeds then were half of what they are now. I believe the speeds (although they probably vary by area) are at 20mb down and 20mb up for the same price I pay now. Whats really useful for me is the upload speed, as it helps with working from home.

Also, I heard that Time Warner is going to start testing usage caps on their internet access. I dont know if they are going to implement that or not. But it definitely helps to have a choice.

Banding on Canon S9000 Printer (Part 2)

Wednesday, October 11, 2006

I wrote earlier about banding on my Canon S9000 Printer. Here is an update, 2 years later.

I forgot to note earlier, that I use refillable ink cartridges. I bought them about 2 months after purchasing the printer, and going through about 4 or 5 sets of ink cartridges. So this update mainly concerns people that refill their cartridges.

About 5 months after I wrote that ‘article’, the problem started to happen again. I hadn’t used the printer in about a month and a half and two or three of the ink cartridges were totally empty. Cleaning the head didn’t help. So I tried using new empty refillable cartridges, and that worked great. The output was just like when I had bought the printer new.

The refillable cartridges have a limited lifetime. The cartridges I had problems with, I had refilled them about 15 or 20 times, and lasted over a year. If the ink runs out totally, there is probably a good chance that ink would dry up in the ‘foam’ part of the cartridge, and restrict the flow rate.

So if you’ve tried cleaning the print head, and that doesn’t completely fix it, then its probably that your refillable cartridges are toast. If both don’t work, then you will probably need to buy a new print head.

Trying to delete files that are "in use" under Windows XP

Sunday, July 24, 2005

I’ve had this one issue where Windows XP would not let me delete couple of files in different directories. I found a cool little (and free) tool that called Unlocker that lets you unlock those files.

Unlocker Screenshot

Basically, after you install it, right click the file, a group of files, or a directory, and select “Unlocker”. It will popup a window showing what program has a lock on that file. Really comes in handy.

I also use it to find out what programs have a certain file open. There is also a thing called Process Explorer This program is usefull to find out what files a program has open (as opposed to what program has a certain file open). But that might be easier in the current versions.

But the above won’t help if the reason you can’t delete a file because a file has invalid characters in the filename. in that case, visit this Microsoft KB article might help. I guess it should help in cases where unlocker might not be able.

Adding a FileType to RightClick -> New under XP

Tuesday, March 1, 2005

This is about when you right-click in a files area of Windows Explorer or right-click the desktop, and go to New menu. In my case my text file entry got lost (I guess while I was trying to install & uninstall different text editors).

Searched on the net, and found one answer. Didn’t work. Searched some more and found out that the first answer was only half the piece.

  1. Save a new (or blank) file in SystemRoot\ShellNew (or C:\Windows\ShellNew\). Filename you give it will be used later
  2. Start regedit (Start->Run->regedit->OK)
  3. Go to HKEY_CLASSES_ROOT and search for the extension (in my case .txt)
  4. Create a subkey called ShellNew unless one already exists (RightClick->New->Key)
  5. Inside ShellNew create a new String value. Name it FileName
  6. Double-click FileName and enter the name of the file that you saved under the C:\Windows\ShellNew\.
  7. Click on the extension key again (.txt) and note the ”(Default )” Value. Go to that value under HKEY_CLASSES_ROOT.
  8. Repeat steps 4 to 6 for this key.
  9. Not sure exactly, but I think you may be able to enter NullFile for the FileName and it will create a blank file (which will work fine for text file, but wont work for most other types)

I did not reboot for this to take effect. But YMMV.

How to fix Vipul's Razor's "Invalid argument" error

Saturday, September 25, 2004

If you are using Razor and you get the following error (which I received as well, on Redhat 8/i386):

Unable to connect to pride.cloudmark.com:2703; Reason: Invalid argument.
Unable to connect to wonder.cloudmark.com:2703; Reason: Invalid argument.
Unable to connect to thrill.cloudmark.com:2703; Reason: Invalid argument.
Unable to connect to pride.cloudmark.com:2703; Reason: Invalid argument.

I modified Razor2/Client/Core.pm (which will be somewhere in /usr/lib/perl5). You can either download the patch file or edit it yourself. Basically add a ‘Use Socket’ at the top. go to line 1733 (its right before the second use of ‘IO::Socket::INET’) and add:

my $ghbn = gethostbyname($server);
my $addr = inet_ntoa($ghbn);

Change the ‘PeerAddr => $server’ to ‘PeerAddr => $addr’. Also you can modify the log line (about 6 or so lines down) from ’$server:$port’ to ’$server:$addr:$port’ so it will also print the IP address in the error log.

Comment [1]

Swapping the CTRL key with CAPS LOCK key on Windows XP & Linux

Wednesday, September 1, 2004

I use my laptop with windows xp mainly for work, which mainly involves working on my linux servers. I end up using the ctrl key a lot, whilst the caps lock key goes unused. My pinky fingers grew tired of always reaching for the awkwardly placed ctrl-keys. A quick search on the net for remapping those keys resulted in a solution:

WinXP:

Basically, startup Regedit. Go to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout and add a binary value called ‘Scancode Map’.

Information collected from:

Linux:

Well, Actually this is only for X 4.x, you can uncomment the following line in XF86Config:

Option “XkbOptions” “ctrl:swapcaps”

Or if it doesn’t exist, add that into the “InputDevice” section.

Problems with Windows XP Service Pack 2 (SP2)

Saturday, August 14, 2004

[Updated… Again. Removed Rant & Link to a solution added]

I installed the SP2 upgrade for xp and its interesting. Windows seems a little slower.

Also I keep getting an ANNOYING internet explorer warning, when i try to view some html files on local disk. When i upload them to my site, and view them, they don’t generate a warning. weird.

Anyway, the evil™ Microsoft®, introduced another problem in the SP2. The 10 concurrent connections limit thing with XP. Certain programs that create lots of connections, make the internet connection crawl. Basically if you run into it, you will notice a warning in the event viewer with an event id 4226.

Instead of finding the patched tcpip.sys file and then replacing it on the system using safe mode, someone has come out with an executable. I haven’t tried it so use it at your own risk. Click on this link to LvlLord’s site.

Older Articles