How to install windows 7 using USB stick

lokakuu 22, 2009 at 19:42 (windows) (, , )

Osoiterakenne Kommentoi

How to Replace a System Program without Modifying System Files or Permissions

lokakuu 3, 2009 at 11:35 (windows) (, , , , )

See this post. This can be used to replace notepad with other program, for example.

Basically,
Under the registry key
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options

create a subkey with the name of the exe you want replaced.
Add a string value called Debugger.
Modify Debugger with the command you want run.

When any user tries to run any executable with the name of the subkey, Windows executes the Debugger command with path\name of the original exe and all command line parameters appended. (Did that make sense?)

Osoiterakenne Kommentoi

Solution: Vuze (azureus) seeds getting ‘queued’ status

elokuu 15, 2009 at 12:13 (windows) (, , , , , , , )

Wonder why your seed get queued even if you want them to be seeded?

The problem is vuze’s quite poor default values. To understand the problem let me explain a bit more how vuze determines whether to queue an item.

Vuze determines the queue status on few things (in this order):

  1. First Priority rules (Options/Queue/Seeding/First Priority). Items matching the first priority rules go to the top of the queue. Please note that first priority have ignore rules which override the “matching rules”
  2. Ignore rules (Options/Queue/Seeding/Ignore rules). Items matching the ignore rules go to the bottom of the seeding queue and probably they will never seed.

Most forum posts mention “correct” rules for ignore rules but fail to mention that First priority rules have their own ignore rules too.

I have attached my working settings but feel free to tune them for your connection and needs.

Osoiterakenne Kommentoi

Powershell script, executing commands to lots of files

elokuu 12, 2009 at 18:46 (coding) (, , , , , , )

Following powershell script goes recursively the folder “J:\pictures” and converts all avi file to mp4 files. It uses ffmpeg (remember to download newest binary)

I couldn’t get invoke-expression to work (it gave some error about “-” operator), so I just sticked all the commands to a text file d:\commands.txt and run it as a normal batch script.

I used this script to convert lots of videos shot with my camera to more compatible format.

"" > d:\commands.txt
foreach ($file in get-childitem "j:\pictures" -recurse -include "*.avi"){
$ffmpegprog = "`"C:\Program Files (x86)\WinFF\ffmpeg.exe`"";
$ffmpegparams = " -threads 2 -f mp4 -vcodec libx264 -b 1500k -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 1500k -maxrate 2000k -bufsize 4M -bt 256k -refs 1 -bf 3 -coder 1 -me_method umh -me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -g 250 -keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 -acodec aac -ab 256k -ac 2 -ar 44100";
$command = ($ffmpegprog + " -i `"" + $file.FullName + "`"" + $ffmpegparams + " `"" + [System.IO.Path]::ChangeExtension($file.FullName, ".mp4") + "`"");
$("$command") >> D:\commands.txt
}

You can just copy-paste the file to a powershell window.

For some reason direct execution of the commands.txt batch file didn’t work so you can just run it throught type

type d:\commands.txt > d:\commands.bat

Osoiterakenne 1 kommentti

Banshee Shoutcast extension

heinäkuu 2, 2009 at 20:37 (Uncategorized) (, , )

Is going forward by Akseli Mantila (COSS project)
http://aksussummerofcode.blogspot.com/

Osoiterakenne Kommentoi

Ubuntu: Trash can support on NTFS volumes

kesäkuu 14, 2009 at 13:11 (linux) (, , )

As Wyatt Smith said on https://answers.launchpad.net/ubuntu/+question/52985 :

To enable a trash can on a NTFS partition you will have to make an entry in your /etc/fstab file. You must specify the drive by UUID and assign a userid.

To discovery the UUID of the external drive. Please plug the drive in and then type

sudo blkid

To edit your fstab file with root permission

gksu gedit /etc/fstab

Here is an example of how the entry should look. Please replace the UUID and mountpoint with the appropriate values from your system

# NTFS Partitions
UUID=19031A6158945892 /media/DATA ntfs-3g defaults,uid=1000,locale=en_US.UTF-8 0 0

Save and exit.

To remount (unmount then mount) all drives listed in /etc/fstab

sudo umount -a
sudo mount -a

You should then see a hidden trash folder on your ntfs drive.

After this deletes are not permanent and they should be visible in the trash.

Osoiterakenne 4 kommenttia

Annoying nonbreakable space character by accident

kesäkuu 7, 2009 at 10:39 (linux) (, , )

Have you noticed that when you press alt gr + space in terminal window, a non-breakable space character is outputted? It looks just like normal space but it prevents commands from working.

From example ‘[alt gr + space] ls’ cannot be interpreted but ‘[space] ls’.

Solution is to change keyboard behaviour:

From here

This feature can be configured in:
System
->Preferences
->Keyboard
->Layouts
->Layout options…
->Using space key to input non-breakable…

Change the setting to ‘usual space at any level’ setting.

Please note that this problem may not occur in some keyboard layouts.

Osoiterakenne Kommentoi

Change ls colors in ubuntu

kesäkuu 7, 2009 at 10:18 (linux) (, , , )

See here

Osoiterakenne Kommentoi

Default terminal size in ubuntu

kesäkuu 7, 2009 at 10:17 (linux) (, , , , )

Osoiterakenne Kommentoi

Matlab toolbar problems in ubuntu

kesäkuu 7, 2009 at 09:01 (linux) (, , , , )

Matlab might have problems drawing toolbars on ubuntu. This is especially true if you’re using nondefault theme in gnome. The solution is simple once again. Edit /path/to/matlab/bin/matlab with gedit and add following line below #!/bin/sh

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/

After this toolbars should be working.

Osoiterakenne Kommentoi

Seuraava sivu »