Saturday, June 25, 2011

Installing Gentoo from within Gentoo

Install new SATA Drive and make sure it is detected during BIOS Startup

Use fdisk /dev/sdX to create partitions for boot, swap and root exactly as it is on the current gentoo setup on this new HDD

Create a new folder in /mnt e.g. mkdir /mnt/NEW_LINUX in the current setup
begin from the gentoo installation instructions point 6 - there is NO NEED TO DOWNLOAD A ISO CD --> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=6

you can copy the existing make.conf file from /etc/make.conf to /mnt/NEW_LINUX/etc/make.conf

Where there is reference to /gentoo/ for paths, change this appropriately to /NEW_LINUX/ e.g.

Code Listing 1.4: Mounting /proc and /dev
# mount -t proc none /mnt/gentoo/proc
# mount --rbind /dev /mnt/gentoo/dev

should be mount -t proc none /mnt/NEW_LINUX/proc

Follow the instructions on the link - Chapter 6 - Gentoo Linux Installation - Stage 3 tarball.

Also, copy over from /usr/portage/distfiles/* to /mnt/NEW_LINUX/portage/distfiles/ - saves downloading all package files again.

If you get Circular dependency issues, emerge the one package that is causing an issue using the appropriate use file e.g. USE="-someflag" emerge somepackage

some packages to emerge
emerge kdebase-meta

Wednesday, June 16, 2010

dvgrab

Use DVGRAB to capture dv files from camcorder.

make sure /dev/raw1394 has permissions of 777 

play video from camcorder

enter the following command:

Capture from a DV camera then convert to MPEG-2:
dvgrab date_name.avi

to convert to mpeg2:
ffmpeg -i date_name.avi -target pal-dvd date_name.mpeg

source:

http://womble.decadent.org.uk/talks/dvd-ukuug06/dvd-talk-ukuug06-paper.html


Tuesday, April 20, 2010

Disable Autoplugging

in /etc/X11/xorg.conf

enter the following in the serverflags section:

Option "AutoAddDevices" "false"


*************


another solution from http://lists.freedesktop.org/archives/hal/2009-February/013001.html

This would indeed solve my problem. As i now found a partial solution
(see below) i am going just to wait for the next ubuntu release.

My solution:

kdb is not configured by hal but by xorg.conf, but Xorg is still using
hal for other devices:
I add the kbd driver via keyboard section to /etc/X11/xorg.conf but do
_not_ set 'Option "AutoAddDevices" "false"' in the ServerLayout
section. In addition i create a
file /etc/hal/fdi/policy/10-x11-input.fdi with the following content
(some lines wrapped)





keyboard

evdev

key="input.product">


key="input.product">






This way, evdev is not used for the keyboard (and the omnibook driver),
and it seems that Xorg falls back to xorg.conf for the keyboard. Well,
it works! ;-)

Regards,
Henning

Monday, April 19, 2010

after xorg update - keyboard not working

run as root

emerge -av1 $(qlist -I -C x11-drivers)

Also use the following commands:

egrep '^\((W|E)|X.Org X Server' /var/log/Xorg.0.log
egrep '^[^#].*(AGP|DRM|RADEON|EVDEV|SYSVIPC)' /usr/src/linux/.config

Thursday, February 04, 2010

AutoLog In - KDE

If in KDE 4.0, auto login is not enabled, then as root, run:

dbus-launch systemsettings

Then, change the settings to log without password for user.

Friday, November 27, 2009

Calculating Inflation Rate

Because inflation in simple terms is defined as the increase in prices or the purchasing power of money the most common way to calculate the inflation rate is by recording the prices of goods and services over the years (called a Price Index), take a base year and then determine the percentage rate changes of those prices over the years. There are different Price Indices that can be used, the most popular are:
Consumer Price Index (CPI) – measure the price of a selection of goods and services for a typical consumer.
Commodity Price Index – measure the price of a selection of commodities with. It is a weighted index (in other words, some commodities are more important than others in determining price changes).
Cost of Living Index (COLI) – measure the cost to maintain a constant standard of living. In other words, what would it cost you from year to year to live exactly the same.
Producer Price Index (PPI) – measures the prices for all goods and services at the wholesale level. It is like the consumer price index but it is measuring the prices the producers have to pay.
GDP Deflator – measures the prices of all goods and services (GDP).

The price index on its own does not give the inflation rate but it can be used to calculate the inflation rate. Let’s use the Consumer Price Index as an example as is the most often used index to calculate the inflation rate. An example of how this works is below. Keep in mind that although I have simplified the process by using only 1 item in the basket of goods the process of calculating the inflation rate is the same.
What you need to know first
The CPI has a base year that everything gets compared to. Let’s say it is the year 2000 for our example.
Every month a basket of goods that is typical of many consumers is "purchased". For our example let's pretend that there is only 1 item in the basket, a loaf of bread. In reality it contains many more items.
Calculating the CPI Index:
Let’s say that in 2000 the basket of goods (which is 1 loaf of bread in our example) costs $1.00. This becomes are base year and our index now has the year 2000 with an index value of 100.
In 2001 the same basket of goods now costs $1.25. Now in our Price Index we have the year 2001 with a value of 125.
In 2002 the same basket of goods now costs $1.31. Now in our Price Index we have the year 2002 with a value of 131.
We do this every year and come up with a Consumer Price Index that looks something like:
Year - Value
2000 – 100
2001 – 125
2002 – 131
2003 – 133
2004 – 137
Calculating the Inflation Rate:

Now in order to calculate the inflation between any 2 years we simply calculate the percentage rate change. To calculate a percentage rate change the formula is:

((F - I) / I ) * 100

where F is the final value and I is the initial value.
Example

Inflation rate from 2003 to 2004: In this case the Final value is the index value for 2004 which is 137. The initial value is the index value for 2003. Therefore we plug in the values into the percentage rate change formula to get:

((137 - 133) / 133) * 100

this gives an inflation rate of approximately 3%.

Keep in mind that this is simply an example with numbers that are not actual CPI values. However, the
principles are the same.

SOURCE: http://www.rateinflation.com/inflation-information/calculate-inflation.php

Sunday, October 25, 2009

Active High and Active Low

It has two inputs:
Trigger (555 pin 2) makes the output high.
Trigger is 'active low', it functions when < 1/3 Vs.

This means that this pin works when the voltage is less than 1/3 the Supply Voltage so this pin is connected to the 0V Rail to discharge the chip power - see diagram on link:

http://www.kpsec.freeuk.com/555timer.htm#bistable

Pin 2 is connected to the 0 rail.

For instance, if you have an IC with an active LOW reset pin, you would need to keep it HIGH during use of it, and make it LOW when you wanted to reset.

Active High means that the output of the chip (or a condition in the chip) changes when the input is made high.

Active Low means that the output of the chip (or a condition in the chip) changes when the input is made low.

source: http://forum.allaboutcircuits.com/showthread.php?t=10619