Jared |

I was eager to try out the recently released Fedora 16 Linux distribution and I’m glad I did. Like a lot of new Linux distros Fedora is using the updated Gnome 3 shell which has divided a lot of users between those who figure out a new desktop with 3 and those that stay with the well known 2. While Ubuntu is probably the distro most users new to Linux try, Fedora might take a little more umph to kickstart. For example, it doesn’t come with the mp3 codec nor various important video codecs. Also, Fedora 16 comes with a open source video driver called Nouveau. Nouveau may do fine for basic tasks, but if you want to really unlock the capabilities of your 1gb NVIDIA mega video card, you’ll have to disable Nouveau and install some new drivers.

NVIDIA Drivers
Credits: http://forums.fedoraforum.org/showthread.php?t=204752 from “leigh123linux”.
This is only for GeForce 6, 7, 8, 9, 200, 300, 400 & 500 series cards, not Geforce MX cards.
1. I had 2 video cards installed at first and so things weren’t set up right at first. If you’ve installed Fedora 16 and are sitting at a garbled video screen press Ctrl + Alt + F1-F7 (try each F1 to F7 key to get to a command prompt).
2. Type “init 3” to get set your system to runlevel 3 (it quits X11, probably your Linux GUI of choice).
3. Login as root “su -“. Type password.
4. Configure X11. Type Xorg -configure. Then reboot. This steps configures X11 and detects all video cards in your system.
5a. akmod (Supposed to be better for when a new kernel is released.)
5aa. If you use the PAE kernel do this before 5ab:
yum install kernel-PAE-devel

5ab. su (if you haven't already logged in as root)
yum --nogpgcheck install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i686

5b. kmod (Saves disk space but will likely have problems when the kernel is updated.)
5ba. If you use a PAE kernel
yum --nogpgcheck install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install kmod-nvidia-PAE

5bb. Else,
yum --nogpgcheck install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686

6. Remove nouveau from initramfs
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

7. Reboot

Other Notes:
– Grub location in Fedora 16: /boot/grub2/grub.cfg
– Backup xorg.conf: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
– Blacklist Nouveau: in grub.cfg or when you boot up the kernel edit the bootloader menu (press e) and add the following:
nouveau.modeset=0 rd.driver.blacklist=nouveau
– Blacklist Nouveau in modprobe.d (otherwise it may load in runlevel 3?)
cat /etc/modprobe.d/blacklist-nouveau.conf
insert this into the file with vim or something else:
blacklist nouveau

MP3 decoder
autoten (I haven’t tried this yet.)
yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly
To play DVDs you’ll need these codecs:
yum install libdvdread libdvdnav lsdvd
RPM Fusion Repository
First login as root, “sh”.
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

If rpmfusion changes the url of these rpms though, download them to a directory (downloaddir) then otherwise use:
rpm -ivh downloaddir/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh downloaddir/rpmfusion-nonfree-release-stable.noarch.rpm

Github homepage for gnome-shell-system-monitor-applet
You should be able to find it in Add/Remove Software

No tags

See: http://code.google.com/p/android/issues/detail?id=5366#c2 for a comment I just posted about this.

The soft keyboard by default will “Pan” your EditText to the top of the screen. There is a way to bypass this though, by resizing the EditText to be equal to (height of screen – height of soft keyboard).
Use the following code to set it to resize instead of pan and your EditText will no longer fly up to the top of the screen.
Keep in mind your minSdkVersion must be at least “3”.
For more info look at http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html


< activity name="EditContactActivity" android:windowSoftInputMode="stateVisible|adjustResize">
< /activity >


Window window = this.getWindow();

No tags



Find the first visible day of a month

From the very start of working on a calendar program I left a bug in it that could have been fixed if I knew how to find the first visible day of a month. I didn’t want the first day of the month. Note: This may be different depending on the type of calendar your developing and whether or not you want Monday as the first day of the week.
Let’s say you have a month like this:
s m t w r f s
27 28 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

How do you calculate exactly what the first viewable Sunday is in those 5 rows(weeks)? (In this case it is 27)
I spent a little time to develop an algorithm and below is some C# psuedocode. If you know how to do it a different way send me an email.

getFirstVisDayofMonth(int month, int year)
variable fDayofMonth. Set it to be a date from passed in variables(year, month, 1)
//Get the name for the 1st day of this month
Set fDayMStr = Get the name representation for the day, fDayofMonth. (ex:"Monday")
variable firstViewableDay
variable prevMonth = AddMonths(-1) to fDayofMonth
variable countBackDay = #ofDaysInMonth(prevMonth.Year, prevMonth.Month)
switch (fDayMStr)
case Sunday
//Sunday is the 1st day of the month.
Set firstViewableDay = fDayofMonth
case Saturday
Set firstViewableDay = AddDays(-6) to fDayofMonth
case Friday
Set firstViewableDay = AddDays(-5) to fDayofMonth
case Thursday
Set firstViewableDay = AddDays(-4) to fDayofMonth
case Wednesday
Set firstViewableDay = AddDays(-3) to fDayofMonth
case Tuesday
Set firstViewableDay = AddDays(-2) to fDayofMonth
case Monday
Set firstViewableDay = AddDays(-1) to fDayofMonth
firstViewableDay now contains the first visible day of the passed in month.

No tags

I wanted to print to my two printers in a different room, but my D-Link DPR-1260 just wouldn’t let me. The DPR-1260 is a really great value for the money, with 4 USB ports you could potentially set it up with 4 different printers. It also includes a ethernet port so if you wanted you could set up a NAS (Network Attached Storage).

However, using the wizard D-Link provided it will print half a test page then stop, not very useful. This is how I fixed it.

According to this post by “talkview365” at this forum (http://help.lockergnome.com/general/link-DPR-1260-vista–ftopict52662.html) he found a way to add a printer using LPR protocol instead of TCP/IP.
According to D-Link’s documentation, “LPR/LPD is more commonly used in Mac or Unix environments.” His post describes a fix for Vista, but I’m running Windows 7 and having the same problem. I altered my steps slightly because it wouldn’t work exactly the way talkview365 described.

  1. Go to the Start Menu – Control Panel – Hardware & Sound – Printer
  2. From the printer page, click on Add a Printer.
  3. Choose to add a “Local Printer”
  4. Choose “Create new port” and select Standard TCP/IP from the list. Click next.
  5. Leave the first option, it should be autodetected. The hostname IP and port are BOTH going to be your dlink-xxxxxx (the x’s are the first 6 chars of your print server’s MAC address). Keep the box checked, then click next.
  6. Wait for detection.
  7. Choose custom and then click on Settings
  8. From here, there’s 2 ways to set it up. Choose the 2nd way, it is the only way that worked for me.
    1. 1st Way –
      1. Leave the port and ip as is.
      2. Protocal = RAW
      3. RAW Setting = 9100 (default TCP/IP setting for DCP-1260 unless you changed it. Different for each printer so check first.)
      4. Check the SNMP Status Enables: with option Public and 1 (default)
      5. Click Ok.
    2. 2nd Way –
      1. Leave the port and IP as is.
      2. Protocol = LPR
      3. LPR Setting = In the DPR-1260s configuration in the Status page it will tell you the LPR Queue name. It will be different for each printer.
      4. ENABLE “LPR Byte Counting Enabled” <- This is what fixed the whole thing for me. For a better explanation why, go here. It references RFC1179.
      5. Do NOT enable SNMP.
      6. Click Ok.
  9. From here, click Next.
  10. On the following screen,  just choose your printer brand and model from the list, this is where you install your driver.
  11. Click next. Do a test print and it should work.

Now I can print wirelessly to my printers!

Thanks to the lockergnome.com forums and forum member talkview365. Also, the printers I tested successfully were a HP Photosmart C4100 series and a HP LaserJet 1200 series.

No tags



Tekni-Cal Logo

I’m creating a desktop calendar program that has a built-in Gantt Chart and syncs with online calendar services such as Google Calendar. Here’s my first revision of the logo.

No tags



Private Eye Spam Detective

Update (January 26th, 2011). I’m not really working on this. The Apache SpamAssassin Project is an excellent alternative.
Update (January 11th, 2010). This project is taking the back seat as I’m focusing more on my desktop calendar program.
Update (August 2nd, 2009). I have tried my program using Mozilla Thunderbird 3.0 Beta 3 and I can confirm that it works.

This program I’m working on plugs into Outlook Express (or it’s now known in Vista/Windows 7 as Windows Live Mail) and uses Bayesian Filtering. I believe it will work in Microsoft Outlook and Mozilla Thunderbird, but I’m still testing. I think this could really help people who want more control over spam in their desktop email programs. You’ll have complete control over what is determined as spam and not spam.


picture link

No tags

Another website of mine, MyFireCrew.com has been updated with new April and May 2009 classes that will take place in Wilsonville, Oregon. Also, information about a Entry-Level class and a Saw Class is posted as well.

No tags



JBBCalc 1.0 Released!

JBBCalc – “The useful calculator for BlackBerry smartphones.”

*Purchasing deactivated, but you can still enjoy the trial.

Download (Over the Air OTA)               Updates Readme

No tags

Jason Rogers, a U.S. saber fencer in the 2008 Beijing Olympics won a silver medal Sunday. He is actually a cousin of mine, although I’ve never met him.

From the Chicago Tribune,

BEIJING – In a match pitting the “Bleus” against the “Red, White and Blue,” France beat the United States Sunday in an improbable gold medal match in men’s team saber.

Improbable not because the French, considered the favorites coming into these Games, took home the gold in their second straight Olympics by defeating the Americans 45-37.

Improbable because the United States men’s saber team was not expected to make a blip in Beijing but found its way to the gold medal match Sunday evening after a stunning afternoon of upset wins. The seventh-seeded Americans — led by Keeth Smart, Tim Morehouse, James Williams and Jason Rogers, who did not compete in the final — come home with the silver, their highest ever standing. Their only previous men’s team saber medal was bronze at the 1948 London Games.


No tags

Recently, I returned from fighting wildfires in Northern California. I have been in the Mt. Shasta area and Chester, CA for the past three weeks (Peterson Complex, Cub Fire, and Onion Fire). Temperatures were hot, often above 100 degrees and the relative humidity in some areas was in the low teens.

On my bus ride back up to Oregon as we were driving through Redding, the hills were releasing smoke on the west side of I-5. I found an article about this, Blaze rushes through hills west of Redding (http://www.redding.com/news/2008/jul/12/no-headline—a1fires12/)

As the burgeoning fire swept through the hills west of Redding, Highway 299 was shut down and mandatory evacuations were issued in the French Gulch area. An advisory evacuation order was announced for some residents in the historic town of Shasta.

From an article from the International Herald Tribune (http://www.iht.com/articles/2008/07/13/america/12wildfire.php),

Hundreds of wildfires have blackened nearly 1,200 square miles, or 3,100 square kilometers, and destroyed about 100 homes across California since a rare lightning storm ignited most of them three weeks ago.

Officials say more fires have been burning at one time this year than during any other period in recorded California history.

“This is truly a national disaster. The magnitude is incredible,” said Daniel Berlant, a state fire agency spokesman.

Jason Kirchner, a spokesman for U.S. Forest Service, said firefighters had spent hundreds of millions of dollars fighting the blazes.

About 20,000 firefighters from 41 states and Puerto Rico were fighting more than 320 active fires around the state, and more were on the way from Mexico, Canada, Australia and New Zealand. Governor Arnold Schwarzenegger has ordered 2,400 members of the National Guard to join the fire crews on the ground, the first time for the first time in more than 30 years.

No tags

Older posts >>

Theme Design by devolux.nh2.me