Aug 16 2008

BAT file

 

:::::::::::::::::::::::::::::
:: LOOP.BAT
:: Compares Replaceable parameters
@ECHO OFF
:TOP
IF (%1)==() GOTO END
ECHO Value is “%1″ and still running…
SHIFT
GOTO TOP
:END
:::::::::::::::::::::::::::::

:::::::::::::::::::::::::::::
::Make a list of all files(names) in folder1
dir /b “c:\folder1″ >>filelist.txt

::Goes trough every line in filelist
:: %%i contains the filename
for /f %%i in (filelist.txt) do
(
copy “c:\folder2\logo.png” “c:\folder2\%%i”
)
del filelist.txt
:::::::::::::::::::::::::::::


Jul 19 2008

Floola is a must on your iPod

Floola is a freeware application to efficiently manage your iPod or your Motorola mobile phone (any model supporting iTunes). It’s a standalone application that can be run directly from your iPod and needs no installation under Linux, Mac OS X and Windows (Windows Vista is supported).
Floola supports all common used iPod features including photos, artwork, podcasts and smart playlists!
It automatically converts any incompatible audio or video file so that you can copy almost any file to it. It even allows adding youtube and myspace videos with a single click!

Take a look at the feature list to find out what it can do and feel free to suggest anything that might be missing.

Download it now!!


Jul 11 2008

Dual Monitor setup for Linux

Prerequisites

In all likelihood, you are probably using either two PCI graphics cards or one AGP card and one PCI card. Either way, it is quite quick and easy to make a new xorg.conf or XF86Config for your new cards.

First, of course, make sure you are using a recent version of X for best results. I’m using X.org 6.7.0, and I’ve also had this working with XFree86 4.3.x. XFree86 4.2.x should also work, but I wouldn’t recommend anything older than that.

Now backup your existing X configuration – things could go wrong, or you might need it for reference later.

Disable X from starting at boot (rc-update del xdm default), shut down your computer, insert both graphics cards, and boot the computer back up again. The screen that your bios information shows up on is your “primary” monitor. If this is the wrong one, and you are using an AGP and a PCI graphics card, there should be an option in your BIOS that lets you choose which one to use.

  • In AWARD BIOS (v4.51PG), menu: Integrated Peripherals -> Init Display First -> [PCI Slot / AGP]
  • In AMIBIOS (v 08.00.08), menu: PCIPnP -> PCI Bus Scan Order -> [Ascent/Descent]
  • In other BIOSs it’s called: Bios First Boot -> [AGP/PCI]

Configuring X

In most cases, it is simplest to let X do as much auto-configuring as possible.
It can usually detect your graphics cards, at least.

As root run,

Code: X Auto-Configuration
X -configure

This will make your screen blink a few times, before returning with a message saying that it has created a test X configuration file at /root/XF86Config.new or /root/xorg.conf.new and giving the command line to test the X server using this config file.

With a bit of good luck, this should be a working X configuration.
You may have to edit the mouse, monitor, or resolution settings. This is done in the same way as with a single-monitor setup, but there will be two “Monitor” sections, two “Device” sections, and two “Screen” sections.
The “Screen” sections connect a monitor to a graphics card.

It is probably a good idea to change the Identifiers of the device and monitor sections so you can tell them apart, e.g.

File: /etc/X11/xorg.conf or /etc/X11/XF86Config
...
Section "Monitor"
  Identifier   "NECMonitor"
...
Section "Monitor"
  Identifier   "VSMonitor"
...
Section "Device"
  Identifier  "NvidiaCard"
  Driver      "nvidia"
...
Section "Device"
  Identifier  "AtiCard"
  Driver      "ati"
...
Section "Screen"
  Identifier   "LeftScreen"
  Device       "NvidiaCard"
  Monitor      "NecMonitor"
  DefaultDepth 24
...
Section "Screen"
  Identifier   "RightScreen"
  Device       "AtiCard"
  Monitor      "VSMonitor"
  DefaultDepth 24

At the top of the file, there is a section called “ServerLayout”.
This section specifies the layout of your monitors.
In my configuration, I have two monitors beside each-other–”RightScreen” is to the right of “LeftScreen”.

The layout can be specified using keywords or absolute pixel positions (useful for odd layouts, or even overlapping layouts!?)
E.g.

File: /etc/X11/xorg.conf or /etc/X11/XF86Config
Section "ServerLayout"
  Identifier     "XFree86 Configured"
  Screen      0  "LeftScreen" 0 0
  Screen      1  "RightScreen" RightOf "LeftScreen"

“LeftScreen” is located at position 0,0.
I then have “RightScreen” to the right of it.

The useable keywords are “RightOf <identifier>”, “LeftOf <identifier>”, “Above <identifier>”, and “Below <identifier>”.
A special keyword is “Relative” – it is used to specify the position in pixels of a screen in relation to another screen.
E.G.

File: /etc/X11/xorg.conf or /etc/X11/XF86Config
  Screen      0  "LeftScreen" 0 0
  Screen      1  "RightScreen" Relative "LeftScreen" 1024 40

In most cases, the LeftOf and RightOf keywords are what you want.

So, try starting the xserver using your test configuration file again.
Verify that the mouse can move from screen-to-screen in a relatively intuitive manner, and that your resolution and refresh rate is right.
You can then copy your configuration file overtop of your old /etc/X11/XF86Config or /etc/X11/xorg.conf.


Jul 9 2008

Editing Grub boot menu

Editing /boot/grub/menu.lst to change the GRUB boot menu

Here’s a helpful reference. And here’s what I did:

The GRUB boot menu configuration is in the file
/boot/grub/menu.ls

1. backup menu.ls:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst-backup

2. edit menu.ls:
sudo gedit /boot/grub/menu.lst

3. Move the paragraph with the WinXP options up the list.

4. Change default to 1 (was 0)
default 1

5. comment out the lines about “Other operating systems“

So now I have the following options when booting:

  • Microsoft Windows XP Professional
  • Ubuntu, kernel 2.6.17-10-generic
  • Ubuntu, kernel 2.6.17-10-generic (recovery mode)
  • Ubuntu, memtest86+

…and the second option is automatically selected and boots-up after 10 seconds if I don’t do anything.

Here is the contents of the resulting file (showing only the uncommented lines)

default 1

timeout 10

title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
boot


Jun 24 2008

Bypassing Voicemail messages

razr
The only thing you need to know is the cell phone provider of the individual you are calling.

Here are the codes :
AT&T: 0
Sprint: 1
Verizon: *
T-Mobile: #


Jun 18 2008

I downloaded Firefox 3

download-day-2008


Jun 17 2008

Firefox 3

I downloaded my copy of Firefox 3 for my Mac OSX, Windows XP, Ubuntu 8.03 today and well I haven’t noticed better performance or anything but it does look different yay for Windows and Mac not so much for Linux

download-day-2008