tag:blogger.com,1999:blog-321735472024-02-21T06:35:25.336+01:00CocoleleDegeaba gindesti dacå esti prost ...Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.comBlogger70125tag:blogger.com,1999:blog-32173547.post-29613659176460328652018-09-16T15:19:00.000+01:002018-09-16T21:08:42.257+01:00BTRFS and ZFS on my home NASTL;DR: Both filesystems are very complex and if you don't know EXACTLY what you're doing, you're going to spend days, or even weeks to make it work properly. Even then, if something happens, you're screwed.<br />
You're probably better off using traditional RAID-5 arrays with the smallest drives you can buy (1-2TB) and traditional 4:th gen filessystems such as ext4, reiserfs, XFS.<br />
<br />
If you can't help it and need to have a go, this is the gist of it: BTRFS might be a little more bleeding edge but has very nice raid handling, growing, shrinking etc. Don't use check --repair, it's destructive (like repair should be, right?)<br />
ZFS is more mature, but it's also more stiff. If you want to grow, shrink, and such, you're in a world of pain. add drives to a pool without being able to remove them, even though they are unused. Intuitive ? :D<br />
<br />
<br />
Long version<br />
<br />
I gave up BTRFS on<br />
the desktop, but I'd like to share my efforts of trying to fix my<br />
problems, in hope I can help some poor noob like me.<br />
<br />
I decided to use BTRFS after reading the ArsTechnica article about the<br />
next-gen filesystems, and BTRFS seemed like the natural choice, open<br />
source, built into linux, etc. I even bought a HP microserver to have<br />
everything on because none of the commercial NAS-es supported BTRFS.<br />
What a mistake, I wasted weeks in total managing something that could<br />
have taken a day to set up, and I'd have MUCH more functionality now<br />
(if I wasn't hit by some ransomware, that is).<br />
<br />
I had three 1TB drives, chose to use raid, and all was good for a<br />
while, until started fiddling with Motion, the image capturing<br />
software. When you kill that process (my take on it) a file can be<br />
written but it ends up with question marks instead of attributes, and<br />
it's impossible to remove. BTRFS check --repair is not recommended, it<br />
crashes , doesn't fix all problems, and I later found out that my<br />
lost+found dir had about 39G of lost files and dirs.<br />
I spent about two days trying to fix everything, removing a disk,<br />
adding it again, checking , you name it. I ended up removing one disk,<br />
reformatting it, and moving the data there. Now I removed BTRFS<br />
entirely and replaced it with a OpenZFS mirror array, to which I'll<br />
add the third disk later when I transferred everything over.<br />
<br />
Please have a look at the console logs. I've been running linux on the<br />
desktop for the past 15 years, so I'm not a noob, but for running<br />
BTRFS you better be involved in the development of it. In my humble<br />
opinion, it's not for us "users" just yet. Not even for power users.<br />
<br />
For those of you considering building a NAS without special purposes,<br />
don't. Buy a synology, pop in a couple of drives, and enjoy the ride.<br />
<br />
Unfortunately, the other alternative is ZFS. ZFS is another typical example of software designed from the ground up, and implemented without any consideration to normal people, users, that is.<br />
ZFS is amazing in so many ways. So feature rich, so smart, yet so bad when it comes to user experience. Let me explain: most Apple users don't know what a filesystem is, and that's how it's supposed to be.<br />
You buy a computer, flip it open, do your work, close the lid, open it again, etc. It JUST WORKS. ZFS has the same problem as Linux on the desktop, it doesn't just work. It might look so, but it's full of pitfalls, and just like in that Amiga game "Another World", you need to start over from the beginning if you made a so called mistake, and it's not clear what is a mistake , and what's not. You just have to be an expert from the beginning, and know exactly what you want, and what you're supposed to do, and how, in order to not fail multiple times before you achieve it.<br />
<br />
Let me give you a couple of examples:<br />
1. you have 3 drives, one with data, two free. You want to RAID them together in a RAID-5 like configuration. According to the documentation, it's not possible. Actually it is, by creating a sparse file, and adding it to the obligatory 3-drive array together with the two real drives, offline the sparse drive, and copy the data over to the two remaining online drives. All good, right ? Not by a long shot. Most people won't be able to create a large enough sparse file to match a 1/3/ or 4TB drive, which means your array will be limited to the size of the sparse file, AND YOU CAN'T grow it unless you replace the sparse file with a larger drive, which you of course can't because your large drive is full of data you can't copy over. By the way, BTRFS is really good at this growing shrinking stuff, too bad it's unstable.<br />
2. OK , screw that 3-drive parity array stuff that people anyway trash talk because its slow, takes ages to resilver(replace) drives, and so on. I'll go with the preferred solution, mirrored drives, which gives me a whopping 50% usage of my drives. Cool, 1-2-3 and I have a two-drive array. Now I copy over the files, everything looks good, and I have a spare drive, which I want to use, so I don't get 33% drive usage by having it as a spare. So I format it with zfs, connect it to the pool, and boom. it's there. BUT, the zpool grows onto the extra drive, and I'm thinking, how is everything going to react if some files are copied across the mirror and the extra drive, and one of them fails ? Everything is going to die probably. So I want to remove the extra drive from the pool, but I cant. I CAN'T. Why ? WHY? I have to move the data to somewhere else, delete the pool, the mirror, and everything, and start over again. It's so fucking stupid I'm amazed how people this smart, able to craft such amazing technologies I barely understand after 10 years of being a programmer, how these insanely smart people make so awkward software. Because there's no Steve Jobs (read: a regular guy, that demands something simple) to keep them on their toes.<br />
This type of software is for themselves alone, not for you and me (even though me means over 10 years as a software developer, and over 20 years of working with software)<br />
<br />
Here's a walk through the catch 22 that is fixing problems in BTRFS:<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><br />
<meta name="Generator" content="Kate, the KDE Advanced Text Editor" /><br />
<title>btrfs.errors</title><br />
</head><br />
<!-- Highlighting: "None" --><br />
<body><br />
<pre style='color:#1f1c1b;background-color:#ffffff;'>root /home/storage/motion/2017-05-24 1 ls -al
ls: cannot access '36-20170524201346-02.jpg': No such file or directory
ls: cannot access '36-20170524201346-02.jpg': No such file or directory
total 4
drwxrwxrwx 1 motion motion 114 Sep 14 12:48 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
-rwxr-xr-x 1 adyhasch adyhasch 62 Sep 14 12:43 remove.py
root /home/storage/motion/2017-05-24 1 touch test.raw
root /home/storage/motion/2017-05-24 cat /dev/random > test.raw
^C
root /home/storage/motion/2017-05-24 ls -al
ls: cannot access '36-20170524201346-02.jpg': No such file or directory
ls: cannot access '36-20170524201346-02.jpg': No such file or directory
total 8
drwxrwxrwx 1 motion motion 130 Sep 14 13:12 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
-rwxr-xr-x 1 adyhasch adyhasch 62 Sep 14 12:43 remove.py
-rwxrwxrwx 1 root root 338 Sep 14 13:12 test.raw
root /home/storage/motion/2017-05-24 1 cp test.raw 36-20170524201346-02.jpg
'test.raw' -> '36-20170524201346-02.jpg'
root /home/storage/motion/2017-05-24 ls -al
total 20
drwxrwxrwx 1 motion motion 178 Sep 14 13:13 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-rwxr-xr-x 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxr-xr-x 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxr-xr-x 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxr-xr-x 1 adyhasch adyhasch 62 Sep 14 12:43 remove.py
-rwxrwxrwx 1 root root 338 Sep 14 13:12 test.raw
root /home/storage/motion/2017-05-24 chmod 777 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 ls -al
total 20
drwxrwxrwx 1 motion motion 178 Sep 14 13:13 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxr-xr-x 1 adyhasch adyhasch 62 Sep 14 12:43 remove.py
-rwxrwxrwx 1 root root 338 Sep 14 13:12 test.raw
root /home/storage/motion/2017-05-24 unlink 36-20170524201346-02.jpg
unlink: cannot unlink '36-20170524201346-02.jpg': No such file or directory
root /home/storage/motion/2017-05-24 1 ls -al
total 20
drwxrwxrwx 1 motion motion 178 Sep 14 13:13 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxr-xr-x 1 adyhasch adyhasch 62 Sep 14 12:43 remove.py
-rwxrwxrwx 1 root root 338 Sep 14 13:12 test.raw
root /home/storage/motion/2017-05-24 journalctl -k | grep BTRFS
Sep 14 09:41:58 jenna kernel: BTRFS: device label BTRFS Redundant storage devid 4 transid 348450 /dev/sdd
Sep 14 09:41:58 jenna kernel: BTRFS: device label BTRFS Redundant storage devid 2 transid 348450 /dev/sdb
Sep 14 09:41:58 jenna kernel: BTRFS: device label BTRFS Redundant storage devid 3 transid 348450 /dev/sdc
Sep 14 09:41:58 jenna kernel: BTRFS info (device sdc): enabling auto defrag
Sep 14 09:41:58 jenna kernel: BTRFS info (device sdc): disabling disk space caching
Sep 14 12:52:36 jenna kernel: BTRFS: Transaction aborted (error -2)
Sep 14 12:52:36 jenna kernel: BTRFS: error (device sdc) in btrfs_rename:9943: errno=-2 No such entry
Sep 14 12:52:36 jenna kernel: BTRFS info (device sdc): forced readonly
Sep 14 13:02:26 jenna kernel: BTRFS error (device sdc): cleaner transaction attach returned -30
Sep 14 13:03:41 jenna kernel: BTRFS info (device sdc): disk space caching is enabled
root /home/storage/motion/2017-05-24
root ~ btrfs scrub status /home/storage/
scrub status for 72ea6622-5098-4a0f-bea1-9a5e5a325735
scrub started at Fri Sep 14 13:06:46 2018 and finished after 00:56:35
total bytes scrubbed: 1.16TiB with 0 errors
root /home/storage/motion/2017-05-24 stat 36-20170524201346-02.jpg
File: 36-20170524201346-02.jpg
Size: 338 Blocks: 8 IO Block: 4096 regular file
Device: 29h/41d Inode: 12616879 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-09-14 13:13:35.477264025 +0200
Modify: 2018-09-14 13:13:35.477264025 +0200
Change: 2018-09-14 13:14:02.025170343 +0200
Birth: -
root /home/storage/motion/2017-05-24 1 find . -inum 12616879 -exec rm -i {} \;
rm: remove regular file './36-20170524201346-02.jpg'? y
rm: cannot remove './36-20170524201346-02.jpg': No such file or directory
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 ls -al
total 20
drwxrwxrwx 1 motion motion 178 Sep 14 13:13 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxrwxrwx 1 root root 338 Sep 14 13:13 36-20170524201346-02.jpg
-rwxr-xr-x 1 adyhasch adyhasch 62 Sep 14 12:43 remove.py
-rwxrwxrwx 1 root root 338 Sep 14 13:12 test.raw
root /home/storage/motion/2017-05-24 rm 36-20170524201346-02.jpg
rm: cannot remove '36-20170524201346-02.jpg': No such file or directory
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24 rm -f 36-20170524201346-02.jpg
root /home/storage/motion/2017-05-24
... more of the same
root /home/storage/motion rm -rf 2017-05-24/
rm: cannot remove '2017-05-24/': Directory not empty
root /home/storage/motion 1 ls -al 2017-05-24/
ls: cannot access '2017-05-24/36-20170524201346-02.jpg': No such file or directory
ls: cannot access '2017-05-24/36-20170524201346-02.jpg': No such file or directory
ls: cannot access '2017-05-24/36-20170524201346-02.jpg': No such file or directory
total 0
drwxrwxrwx 1 motion motion 144 Sep 14 14:25 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
root ~ btrfs check /dev/sdb
warning, device 3 is missing
warning, device 3 is missing
Checking filesystem on /dev/sdb
UUID: 72ea6622-5098-4a0f-bea1-9a5e5a325735
checking extents
checking free space cache
failed to load free space cache for block group 9998483259392
failed to load free space cache for block group 10388251541504
failed to load free space cache for block group 10483848118272
checking fs roots
root 5 inode 11189411 errors 200, dir isize wrong
unresolved ref dir 11189411 index 0 namelen 0 name filetype 0 errors 6, no dir index, no inode ref
unresolved ref dir 11189411 index 9477 namelen 24 name 36-20170524201346-02.jpg filetype 1 errors 1, no dir item
root 5 inode 12616877 errors 2000, link count wrong
unresolved ref dir 11189411 index 9482 namelen 24 name 36-20170524201346-02.jpg filetype 1 errors 1, no dir item
root 5 inode 12616879 errors 2000, link count wrong
unresolved ref dir 11189411 index 9484 namelen 24 name 36-20170524201346-02.jpg filetype 1 errors 1, no dir item
found 639613362176 bytes used err is 1
total csum bytes: 605048928
total tree bytes: 828735488
total fs tree bytes: 182419456
total extent tree bytes: 18399232
btree space waste bytes: 47806043
file data blocks allocated: 969656111104
referenced 634590535680
root ~ 1 btrfs check --repair /dev/sdb
enabling repair mode
warning, device 3 is missing
warning, device 3 is missing
Checking filesystem on /dev/sdb
UUID: 72ea6622-5098-4a0f-bea1-9a5e5a325735
checking extents
Unable to find block group for 0
extent-tree.c:289: find_search_start: Assertion `1` failed.
btrfs[0x43e418]
btrfs(btrfs_reserve_extent+0x5c9)[0x4425df]
btrfs(btrfs_alloc_free_block+0x63)[0x44297c]
btrfs(__btrfs_cow_block+0xfc)[0x436636]
btrfs(btrfs_cow_block+0x8b)[0x436bd8]
btrfs[0x43ad82]
btrfs(btrfs_commit_transaction+0xb8)[0x43c5dc]
btrfs[0x4268b4]
btrfs(cmd_check+0x1111)[0x427d6d]
btrfs(main+0x12f)[0x40a341]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fd7a78002e1]
btrfs(_start+0x2a)[0x40a37a]
root ~ 1 btrfs check --repair /dev/sdc
enabling repair mode
warning, device 2 is missing
Checking filesystem on /dev/sdc
UUID: 72ea6622-5098-4a0f-bea1-9a5e5a325735
checking extents
Fixed 0 roots.
checking free space cache
cache and super generation don't match, space cache will be invalidated
checking fs roots
reset isize for dir 11189411 root 5
unresolved ref dir 11189411 index 0 namelen 0 name filetype 0 errors 6, no dir index, no inode ref
unresolved ref dir 11189411 index 9477 namelen 24 name 36-20170524201346-02.jpg filetype 1 errors 1, no dir item
invalid dir item size
Moving file '36-20170524201346-02.jpg' to 'lost+found' dir since it has no valid backref
Fixed the nlink of inode 12616877
invalid dir item size
Moving file '36-20170524201346-02.jpg.12616879' to 'lost+found' dir since it has no valid backref
Fixed the nlink of inode 12616879
unresolved ref dir 11189411 index 0 namelen 0 name filetype 0 errors 6, no dir index, no inode ref
unresolved ref dir 11189411 index 9477 namelen 24 name 36-20170524201346-02.jpg filetype 1 errors 1, no dir item
checking csums
checking root refs
found 639613362176 bytes used err is 0
total csum bytes: 605048928
total tree bytes: 828735488
total fs tree bytes: 182419456
total extent tree bytes: 18399232
btree space waste bytes: 47806043
file data blocks allocated: 969656111104
referenced 634590535680
root ~ 251 btrfs check /dev/sdb
warning, device 3 is missing
warning, device 3 is missing
parent transid verify failed on 9998522662912 wanted 348736 found 348741
parent transid verify failed on 9998522662912 wanted 348736 found 348741
Ignoring transid failure
Couldn't setup extent tree
Couldn't open file system
root ~ 251 mount /home/storage/
root ~ watch btrfs scrub status /home/storage/
root ~ ls /home/storage/motion/2017-05-24/
ls: cannot access '/home/storage/motion/2017-05-24/36-20170524201346-02.jpg': No such file or directory
36-20170524201346-02.jpg
total 0
drwxrwxrwx 1 motion motion 24 Sep 14 14:25 .
drwxrwxr-x 1 motion adyhasch 60 Sep 14 09:42 ..
-????????? ? ? ? ? ? 36-20170524201346-02.jpg
Back to square one
[12031.946724] BTRFS error (device sdc): cleaner transaction attach returned -30
[19272.100407] BTRFS error (device sdc): bdev /dev/sdb errs: wr 0, rd 0, flush 0, corrupt 0, gen 1
[19272.104100] BTRFS error (device sdc): bdev /dev/sdb errs: wr 0, rd 0, flush 0, corrupt 0, gen 2
[19272.120344] BTRFS error (device sdc): bdev /dev/sdb errs: wr 0, rd 0, flush 0, corrupt 0, gen 3
</pre></body><br />
</html><br />
<br />
Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-79755326595412877852016-01-03T00:59:00.000+01:002016-01-03T00:59:10.543+01:00.AppleDouble files on LinuxTo get rid of those .AppleDouble files which OSX creates when accessing folders on Linux, first disable the creation of these files<br />
<br />
<span style="color: #3d85c6; font-family: Courier New, Courier, monospace;">defaults write com.apple.desktopservices DSDontWriteNetworkStores true</span><br />
<i><span style="color: #0b5394;"><b><br /></b></span></i>
Then use the following script to remove every .AppleX file created:<br />
<br />
<span style="font-family: monospace;"><span style="color: #3d85c6;"><span style="background-color: white;">#!/bin/bash
</span><br /><br />if [ -z "$2" ]
<br /> then
<br /> echo "Use <command></command> <path> --really to remove appledoubles"
<br />
<br />fi
<br />
<br />if [ -z "$1" ]
<br /> then
<br /> echo "No arguments supplied"
<br /> echo "Use <command></command> <path> --really to remove .AppleDouble files"
<br /> exit 1
<br /> else
<br /> find $1 -name .AppleDouble -exec ls -d {} \;
<br /> find $1 -name .AppleDesktop -exec ls -d {} \;
<br /> find $1 -name .AppleDB -exec ls -d {} \;
<br />fi
<br />
<br />if [ "$2" == "--really" ]
<br /> then
<br /> echo "RUNNING DELETE"
<br /> find $1 -name .AppleDouble -exec rm -r {} \;
<br /> find $1 -name .AppleDesktop -exec rm -r {} \;
<br /> find $1 -name .AppleDB -exec rm -r {} \;
<br /> echo "Done. .AppleDouble files obliterated\n"
<br /> else
<br /> echo "nothing"
<br />fi</path></path></span><br />
</span>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-70839305551915664022014-02-02T18:20:00.002+01:002014-02-03T11:53:35.203+01:00Debian & Raspbian for dummiesStart the configuration interface:<br />
<span style="color: lime;">raspi-config</span><br />
<br />
To execute some commands You need administrative rights. You do that with "sudo". Example: see the IP and network for the main ETHernet interface:<br />
<span style="color: lime;">sudo ifconfig eth0</span><br />
<br />
Switch to administrative user to avoid the need to type in sudo all the time:<br />
<span style="color: lime;">sudo -i</span><br />
<span style="color: lime;"><br /></span>
Update the system (you need administrative rights, see above):<br />
<span style="color: lime;"> apt-get update; apt-get upgrade</span><br />
<br />
Edit a configuration file (save with CTRL+X ) :<br />
<span style="color: lime;"> nano /etc/hosts.allow</span><br />
<br />
Search online for software, for example a media player:<br />
<span style="color: lime;"> apt-cache search media</span><br />
<br />
You'll get 1000 results, now narrow them down with filtering (| is the pipe sign):<br />
<span style="color: lime;"> apt-cache search media | grep player </span>(for narrowing down results)<br />
<span style="color: lime;"> apt-cache search media | more </span>(for listing the results in a program which allows scrolling)<br />
<br />
You have now found what you seek. Install VLC<br />
<span style="color: lime;"> apt-get install vlc</span><br />
<br />
Kill the X-server if you want to go console-only: CTRL+BACKSPACE<br />
When in console mode you might want to have a manual on one "page" and execute stuff on another "page" : Open a new console window with ALT+2 , ALT+3. Switch back to the first with ALT+1<br />
<br />
Find a file when you know its name: "find" command , / is the root filesystem<br />
<span style="color: lime;"> find / -name hosts.allow</span><br />
Find a file when you only know parts of the filename:<br />
<span style="color: lime;"> find / | grep hosts</span><br />
<br />
Shutdown system:<br />
<span style="color: lime;"> poweroff</span><br />
<br />
Reboot system:<br />
<span style="color: lime;"> reboot</span><br />
<br />
Look at the system logs - change to the log directory, then show one:<br />
<span style="color: lime;"> cd /var/log ; cat dmesg</span><br />
<span style="color: lime;"> cat /var/log/auth.log</span><br />
<br />
Raspberry Pi<br />
----------------<br />
<br />
Install software for camera monitoring<br />
<span style="color: lime;"> apt-get install motion</span><br />
see <a href="http://en.wikipedia.org/wiki/Motion_(surveillance_software)">http://en.wikipedia.org/wiki/Motion_(surveillance_software)</a> for more info and documentation<br />
<br />Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-29537556396906704962013-10-21T16:14:00.000+01:002014-04-30T11:23:14.458+01:00Remote debugging a java applicationYou can remote debug a running applet. Set it in the Java control panel, in "runtime parameters" for the JRE<br />
<b><span style="color: red;">-Djava.compiler=NONE -Xnoagent -Xdebug </span></b><br />
<b><span style="color: red;">-Xrunjdwp:transport=dt_socket,address=127.0.0.1:8888,server=y,suspend=n </span></b><b>for JVM 1.4</b><br />
<b>or<span style="color: red;"> </span></b><b><span style="color: red;">-agentlib:jdwp=transport=dt_socket,address=localhost:8000,server=y,suspend=n </span>for JVM 1.5 </b><b>and newer</b><br />
<b><br /></b>
These are considered insecure JVM parameters and will cause the LiveConnect error: "This application is going to perform an insecure operation" See StackOverflow <a href="http://stackoverflow.com/questions/6610266/how-to-grant-all-permissions-to-java-applet-through-jnlp-without-popups" target="_blank">LINK</a> for more info<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLoXhDdj4bMKwspmyAnUvfvxOTwJDMro2QzbrDeX2Wywo1yJZLCMQca4Ku0aXCKHA38pIhCfzkaQ2GwyWb8f0CjVe1x93gcD0Lzig0Feqrl7mClpj8G4gsJdoa4F71vBpL2Vp9/s1600/2013-11-12+09_19_41-Building+Operation+WebStation.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLoXhDdj4bMKwspmyAnUvfvxOTwJDMro2QzbrDeX2Wywo1yJZLCMQca4Ku0aXCKHA38pIhCfzkaQ2GwyWb8f0CjVe1x93gcD0Lzig0Feqrl7mClpj8G4gsJdoa4F71vBpL2Vp9/s320/2013-11-12+09_19_41-Building+Operation+WebStation.png" height="128" width="320" /></a></div>
<br />
How to set the parameters:<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXagpzhezWqjVxkykacZxFuAzOWXCZT3O8Ep_1cq4ZKChsFCtnzR3KLVniBOVlIamyzmkASlfyNGskUXYbE_ZJ7sU9ec71LCjmDcudR34dRDFzdrapcM8MN1eSfJXXB6ow6rfF/s1600/2013-11-08+09_43_51-Java+Runtime+Environment+Settings.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXagpzhezWqjVxkykacZxFuAzOWXCZT3O8Ep_1cq4ZKChsFCtnzR3KLVniBOVlIamyzmkASlfyNGskUXYbE_ZJ7sU9ec71LCjmDcudR34dRDFzdrapcM8MN1eSfJXXB6ow6rfF/s320/2013-11-08+09_43_51-Java+Runtime+Environment+Settings.png" height="185" width="320" /></a></div>
<b><br /></b>
This is equivalent to setting the JAVA_OPTS environment variable.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs8vCM4h2ihjRhqFSfeaRBO3Z07H0UFRJ5RpiuW_TwzrR5rNLX-D7uVlYI5Ch6LbUMMbDThb0D6ZKhZ9UqzbZzNTvjJACCIZSL1m83tqnMCjjZbljcORiRhQ8PFgOO5AyaTqus/s1600/2013-11-08+09_45_36-Environment+Variables2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs8vCM4h2ihjRhqFSfeaRBO3Z07H0UFRJ5RpiuW_TwzrR5rNLX-D7uVlYI5Ch6LbUMMbDThb0D6ZKhZ9UqzbZzNTvjJACCIZSL1m83tqnMCjjZbljcORiRhQ8PFgOO5AyaTqus/s320/2013-11-08+09_45_36-Environment+Variables2.png" height="320" width="290" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
The settings in Eclipse:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCQtoYgj4SkhpBupbD0C8OovQVr0pH6pFQIScDWB9nInFcxyGexkN6dcSkOCqrRpHSy6uHhltrtZ38BkBO9rHp-TV-ny4yHngEmDd7sSwKuM42j79x70Ct1441hW2NM808hyphenhyphenF4/s1600/2013-11-08+09_47_36-Debug+Configurations3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCQtoYgj4SkhpBupbD0C8OovQVr0pH6pFQIScDWB9nInFcxyGexkN6dcSkOCqrRpHSy6uHhltrtZ38BkBO9rHp-TV-ny4yHngEmDd7sSwKuM42j79x70Ct1441hW2NM808hyphenhyphenF4/s320/2013-11-08+09_47_36-Debug+Configurations3.png" height="320" width="269" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
For the uninitiated: the idea is that the JVM starting the applet looks at the <i><span style="color: red;">server </span></i>parameter. If it's set to '<i><span style="color: red;">y'</span> </i>then the applet running JVM acts as a debugging server. You then from Eclipse (or another IDE) connect with <i><span style="color: red;">Socket Attach</span></i>. You start the application, and start the debugging session in your IDE, which connects to the running applet.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
If you set <i><span style="color: red;">server=n</span> </i>then in Eclipse you set the connection type to<span style="color: red;"> </span><i><span style="color: red;">Socket Listen</span>, </i> which means that Eclipse acts as a debugging server. You start the debugging session in Eclipse, the debugging server starts and waits. You then start the web application (or applet) which will connect to Eclipse).</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
If you need to debug the whole applet loading procedure You can set the <i><span style="color: red;">suspend=y</span> </i>parameter. You start the web application, and the applet start will be paused, waiting for you to start the debugging session against it.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Note: Enabling JWDP debugging seems to break running through a proxy ( such as fiddler ). The control pannel settings for network and proxy are ignored, and proxy=DIRECT is chosen always</div>
<br />Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-1868857028658824472013-03-22T17:10:00.001+01:002013-03-22T17:13:29.674+01:00HOWTO: OpenVPN connection with traffic routing in Windows<br />
So from SITE1 I wanted to connect to a remote SITE2 and run my browser against SITE3 through the proxy at SITE 2 in order to debug a web application.<br />
<br />
In order to do this I need to install an OpenVPN server at SITE2 and an OpenVPN client at SITE1<br />
SITE2 will be first accessed through TeamViewer to create a connection, then we create the VPN tunnel throgh the TeamViewer connection.<br />
<br />
Steps:<br />
Install the OpenVPN software ( http://openvpn.net/index.php/download/community-downloads.html ) at SITE2 and SITE1<br />
<br />
At SITE2 set up the server, generate certificates for server and client in the easy-rsa folder of OpenVPN<br />
At SITE1 set up the client, copy the certificates from the server<br />
<br />
server.ovpn<br />
<code class="code">
# the ip of the vpn server machine<br />local 10.158.226.50<br />port 1194<br />proto udp<br />dev tap<br />dev tun<br />ca "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\ca.crt"<br />cert "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.crt"<br />key "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\server.key" # This file should be kept secret<br />dh "C:\\Program Files (x86)\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"<br /># this will redirect all traffic, even HTTP, over the vpn tunnel<br />push "redirect-gateway def1"<br /># this will enable DNS lookup over the VPN tunnel<br />push "dhcp-option DNS 10.8.0.1"</code>
<br />
<br />
client.ovpn<br />
<br />
<code class="code">
remote 10.158.226.50 1194<br />
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"<br />
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.crt"<br />
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.key"<br />
<br />
</code>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlreE2L19eSiLVfPJ7kgopWJ0tANWJcaAl8_m1vJn_HorhRTYl40NmoV8rOEQrol8j4Gm4Pi1Q_Nr9b8hGx4fm6APVuJvAo9Ugn_TQ7tf8k4K5rXBMzkIAFuAXwMPK20iYDYqn/s1600/2013-03-22+16_40_26-Local+Area+Connection+Properties.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="246" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlreE2L19eSiLVfPJ7kgopWJ0tANWJcaAl8_m1vJn_HorhRTYl40NmoV8rOEQrol8j4Gm4Pi1Q_Nr9b8hGx4fm6APVuJvAo9Ugn_TQ7tf8k4K5rXBMzkIAFuAXwMPK20iYDYqn/s400/2013-03-22+16_40_26-Local+Area+Connection+Properties.png" width="400" /></a></div>
In windows networking select the default ethernet connection "Local Network Connection" Control Panel\All Control Panel Items\Network and Sharing Center and when the dialog appears, check "Allow network users to connect through this computer's internet connection". Select Local Area Connection 2, which should be Your VPN connection interface 10.8.0.1<br />
<br />
Start server, connect client, and bada-bing, you're now surfing through a VPN tunnel.<br />
Of course this would be a good way to access Your home computer from work to do all the private surfing hidden from the eyes of your friendly IT-administrator.Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-72975125967290946772012-09-26T20:29:00.000+01:002012-09-26T20:29:04.901+01:00Intermot, here we comeNext week I'm off to <a href="http://www.rome2rio.com/?q=Malm%C3%B6%2C+Sk%C3%A5ne%2C+Sweden/Cologne%2C+North+Rhine-Westphalia%2C+Germany/2012-10-4/2012-10-5" target="_blank">Intermot </a>for the biggest motorcycle orgy in Europe<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.koeln.de/files/images/intermot_06_375x500.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="640" src="http://www.koeln.de/files/images/intermot_06_375x500.jpg" width="480" /></a></div>
<br />Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-38644353643803449162012-09-16T19:57:00.002+01:002012-09-16T19:57:47.849+01:00En favorit i repris<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNCmj1x8L5qOpiXszuNDXhvx-UgGiKUwDPC-PxLGsBYB0YIdyFJRzE4vuvYQKMT78qttAnLigs5BldOUav6arDN5kWtw8CrEhLWiHnpzLnUYo2bXAAKjVGFihk8CKUE9r6iVYc/s1600/planningdemotivator.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNCmj1x8L5qOpiXszuNDXhvx-UgGiKUwDPC-PxLGsBYB0YIdyFJRzE4vuvYQKMT78qttAnLigs5BldOUav6arDN5kWtw8CrEhLWiHnpzLnUYo2bXAAKjVGFihk8CKUE9r6iVYc/s400/planningdemotivator.jpg" width="400" /></a></div>
<br />Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-46565565893200718262012-06-20T09:05:00.002+01:002012-06-20T09:05:39.749+01:00No comment<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHVyABZXhjOyC1teJM73q1MaFcnzYYzVMVPgimCgBHXN_nPHGax83wLT7hTnNLJKHfS8bytahfCE9sS7NjoiX8TQ_BDMPXAbvXmA0SWDUKzeH7B8qlkQLJtQtSmO_ByZcUpdJL/s1600/image.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHVyABZXhjOyC1teJM73q1MaFcnzYYzVMVPgimCgBHXN_nPHGax83wLT7hTnNLJKHfS8bytahfCE9sS7NjoiX8TQ_BDMPXAbvXmA0SWDUKzeH7B8qlkQLJtQtSmO_ByZcUpdJL/s640/image.jpeg" width="425" /></a></div>
<br />Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-41695154477933878022012-05-19T13:56:00.000+01:002012-05-19T14:11:40.785+01:00Linux file sharing for OSXDo you want to share files from your Linux server to your Mac computers ?<br />
<div>
Install netatalk (apt-get netatalk). <span style="font-family: inherit;">Edit /etc/default/netatalk a</span><span style="font-family: inherit;">nd make sure the following are as follows:</span></div>
<div>
<br />
<span style="font-family: 'Courier New', Courier, monospace;">ATALK_NAME=MyFileServer</span></div>
<div>
<span style="background-color: #eeeeee; color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 12px; line-height: 16px; text-align: left; white-space: pre;">ATALKD_RUN=no
PAPD_RUN=no
AFPD_RUN=yes
TIMELORD_RUN=no</span><br />
<span style="background-color: #eeeeee; color: #333333; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Andale Mono', 'Monotype.com', 'Courier New', Courier, monospace; font-size: 12px; line-height: 16px; text-align: left; white-space: pre;"><br /></span><br />
Share your directories by editing /etc/netatalk/AppleVolumes.default (one line per share):<br />
<span style="font-family: 'Courier New', Courier, monospace;">~/</span><span class="Apple-tab-span" style="font-family: 'Courier New', Courier, monospace; white-space: pre;"> </span><span style="font-family: 'Courier New', Courier, monospace;">"LinuxHome" </span><span class="Apple-tab-span" style="font-family: 'Courier New', Courier, monospace; white-space: pre;"> </span><span style="font-family: 'Courier New', Courier, monospace;">allow:adyhasch volcharset:UTF8 dbpath:/home/storage/.dbinfo options:noadouble,usedots,upriv </span><br />
<br />
<span style="font-family: 'Courier New', Courier, monospace;">/home/storage<span class="Apple-tab-span" style="white-space: pre;"> </span>"Storage" <span class="Apple-tab-span" style="white-space: pre;"> </span>allow:adyhasch volcharset:UTF8 dbpath:/home/storage/.dbinfo options:noadouble,nohex,upriv,usedots,tm</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<br />
<span style="font-family: inherit;">Add the following line to /etc/netatalk/afpd.conf</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">-setuplog "default log_info /var/log/afpd.log"</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">-mimicmodel MacPro</span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
To change the icon displayed in Finder, replace the value of <txt-record>mimicmodel with one of the following values: <span style="font-family: inherit;">Xserve,<span style="font-size: 15px; text-align: justify;">PowerBook, PowerMac, Macmini, iMac, MacBook, MacBookPro, MacBookAir, MacPro, AppleTV1,1, AirPort. </span></span></txt-record><br />
<txt-record><span style="font-family: inherit;"><span style="font-size: 15px; text-align: justify;"><br /></span></span></txt-record><br />
<span style="font-family: inherit;">You should now have basic file sharing working. Open a Finder window on your Mac and from the menu, choose Go > Connect to server and in the dialog box add afp://mylinuxserver then press + or browse. You should now be able to browse your files. If something goes wrong, like it did on my machine,</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">cat /var/log/afpd.log </span><br />
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<span style="font-family: inherit;">I had some "connection refused" messages looking like these:</span><br />
<br />
<span style="font-family: 'Courier New', Courier, monospace;">May 19 12:26:27.844314 afpd[1386] {dsi_tcp.c:112} (W:DSI): refused connect from 10.0.0.32</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">May 19 12:26:27.844474 afpd[1386] {dsi_getsess.c:60} (E:DSI): dsi_getsess: Connection refused</span><br />
<span style="font-family: 'Courier New', Courier, monospace;">May 19 12:26:27.844488 afpd[1386] {afp_config.c:226} (E:AFPDaemon): dsi_start: session error: Connection refused</span><br />
<div style="font-family: inherit;">
<br /></div>
<div style="font-family: inherit;">
If you have similar messages, edit your hosts.allow :</div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">afpd: ALL</span></div>
<br />
<br />
You can also autoconfigure the file sharing service with Zeroconf, or Bonjour, or Avahi. On Debian I'm using the Avahi service. Go to /etc/avahi/services and add a new service file, afpd.service<br />
Add the following to your service file:<br />
<br />
<?xml version="1.0" standalone='no'?><br />
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"><br />
<service-group><br />
<name replace-wildcards="yes">%h Xserve</name><br />
<service><br />
<type>_afpovertcp._tcp</type><br />
<port>548</port><br />
</service><br />
<service><br />
<type>_device-info._tcp</type><br />
<port>0</port><br />
<txt-record>model=Xserve</txt-record><br />
</service><br />
</service-group><br />
<br />
<span style="font-family: 'Courier New', Courier, monospace;">
</span><br />
<div>
<br /></div>
<div>
To change the icon displayed in Finder, replace the value of <txt-record>model= with one of the following values: <span style="font-family: inherit;">Xserve,<span style="font-size: 15px; text-align: justify;">PowerBook, PowerMac, Macmini, iMac, MacBook, MacBookPro, MacBookAir, MacPro, AppleTV1,1, AirPort. </span></span></txt-record></div>
<div>
<span style="font-family: inherit;"><span style="font-size: 15px; text-align: justify;"><br /></span></span></div>
<div>
<span style="font-family: inherit;"><span style="font-size: 15px; text-align: justify;">Save and restart the avahi service:</span></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><span style="font-size: 15px; text-align: justify;">/etc/init.d/</span>avahi-daemon restart</span></div>
<div>
<br /></div>
<div>
Now you should see TWO servers in the finder network. One is what the Avahi service publishes, the other one is what AFP service is publishing. I guess one doesn't need the Avahi part .. o I moved the afpd.service file to a new directory named "disabled" and restarted the Avahi service. </div>
<br />
<div>
If you run iptables, you need the following added to your config:</div>
<div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"># AFP</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">-A INPUT -p tcp --dport afpovertcp -j ACCEPT</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"># AppleTalk</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">-I INPUT -p tcp -m multiport --dport at-rtmp,at-nbp,at-echo,at-zis -j ACCEPT</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">-I OUTPUT -p tcp -m multiport --dport at-rtmp,at-nbp,at-echo,at-zis -j ACCEPT</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;"># Bonjour/Zeroconf</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">-I INPUT -p udp --dport mdns -d 224.0.0.251 -j ACCEPT</span></div>
<div>
<span style="font-family: 'Courier New', Courier, monospace;">-I OUTPUT -p udp --dport mdns -d 224.0.0.251 -j ACCEPT</span></div>
<div>
<br /></div>
</div>
<span style="font-family: 'Courier New', Courier, monospace;"><br /></span><br />
<div>
Happy sharing!</div>
</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-21787548965270102032012-03-17T02:13:00.001+01:002012-03-17T02:14:45.299+01:00<br />
<h3 class="post-title entry-title" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; position: relative;">
Yamaha FZ1 Gen II technical - revised Q1 2012</h3>
<div>
<br /></div>
<div>
Thanks to all the people who have contributed to this guide, especially Ballmead from FZ1-forum.com for the detailed information about geometry settings.</div>
<div>
<br /></div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
Check out these pages for guidance:<br />
<a href="http://londonbikers.com/articles/1616/suspension-setup-demystified" style="color: #444444; text-decoration: none;">London Bikers</a><a href="http://londonbikers.com/articles/1616/suspension-setup-demystified" style="color: #444444; text-decoration: none;">, suspension setup demystified</a> and <a href="http://www.bikesetup.com/" style="color: #444444; text-decoration: none;">Bikesetup.com</a><br />
<br />
Riding style and conditions: 5-15 minutes. B-roads every weekend, frequent wheelies.Some town riding<br />
<br />
<span style="font-size: 23px;"><span style="font-weight: bold;">Mileage</span></span><span style="font-size: x-small;">:</span><br />
5,0L/100KM Highway easy riding<br />
8,6L/100KM Town commuting<br />
<br />
<br />
<span style="font-size: 23px;"><span style="font-weight: bold;">Weight savers</span></span><span style="font-size: x-small;">:</span><br />
Removing the tools and center stand saves 1,3 Kg. The OEM silencer weighs 7 Kg, and replacing it with a Yoshimura TRC steel sleeve slip-on saves 3,5 kg. Removing the centerstand also makes getting the sidestand out easier. I put my center stand back though, since it makes it easier to clean the chain, it's more stable on grass and gravel, and frankly that kilo doesn't do much for either acceleration or handling.<br />
<br />
<span style="font-size: 23px;"><span style="font-weight: bold;">Suspension adjustment</span></span><br />
Rider weight: 110 KG + gear = 123 KG</div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
Worksheet for setting the sag: <a href="http://shaunsaxon.com/suspension-worksheet.pdf">http://shaunsaxon.com/suspension-worksheet.pdf</a><br />
Static sag front: 15mm (for the definition of sag, see above links</div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
Static sag rear: 40mm (the spring is too weak for my weight</div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 586px;">
<br /></div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
<span style="font-size: 17px; font-weight: bold;">Suspension adjustment fork:</span><br />
<span style="font-size: 13px; font-weight: bold;">Preload adjustment:</span><br />
One+ spring preload indicator decreases fork travel by 8mm. The manual indicates 5,5 "clicks" as standard, 6 is too soft for me, the bike dives too much.<br />
Setup scenario: I want my bike to be a bit stiffer as for inspired backroad driving, somewhat like a sports bike, but not as a bench (read: Ducati)<br />
5 is firm-ish, but it looks like there's too much travel way left, about 50 mm by eye-measure.<br />
With the spring preload at 5, You will feel potholes as with a german car with stiff springs. The fork will be a bit stiffer, the bike doesn't dive as much under braking, and the ride will be comfortable enough. This setup will swallow speed bumps at ~40 km/h without a problem.<br />
You might want to try 4,5 or 4 to harden the preload, and make the bike dive even less.</div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
<br /></div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
Aim for between 10 and 20mm sag.<br />
<br />
<span style="font-size: 13px; font-weight: bold;">Compression damping:</span><span style="font-size: x-small;"> (left fork leg)</span><br />
Standard is 5 clicks to the left. My setup is 6 clicks to the left. You'll want at least 6 clicks to the left if you're doing wheelies all the time. Landings are pretty hard otherwise.<br />
<br />
1 click to the left is megastiff, like a bicycle. Speed bumps will be rock hard at 35 km/h.<br />
26 clicks to the left will feel like you're jumping in bed, a jump, and you go up and down on the springs a couple of times. This will swallow the speed bump softly, but you'll bounce up and around after impact. Terrible sensation.<br />
<br />
<br />
<span style="font-weight: bold;">Rebound damping: </span>(right fork leg)<br />
Standard is 18 clicks to the left out of 28. My setup is 18 clicks to the left.<br />
The standard is good for street riding, I don't feel the need to change it.<br />
<br />
<span style="font-size: 17px; font-weight: bold;">Suspension adjustment rear:</span><br />
Tried 1+ preload, 10+ rebound. Bike spins on full throttle. Rebounds are too hard, you feel shocks in your back , even with smaller obstacles<br />
Current setup: 3+ preload, 8+ rebound - default.<br />
<br />
Spring preload:<br />
Standard is 3 clicks, I run with 3 atm. I tried 1 click. Max preload is still too soft<br />
Rebound damping:<br />
Standard is 8, I tried 10, and the rebounds were a bit too hard, I felt the shocks in my back. Slower rebound can adjust chassis pitch, and slow down weight transfer to the front.<br />
<br />
Also make sure You read the suspension setup info at the following pages:<br />
<a href="http://ohlins.se/Products/OwnersManuals/OM_07241-02.pdf" style="color: #444444; text-decoration: none;">http://ohlins.se/Products/OwnersManuals/OM_07241-02.pdf</a><br />
<a href="http://www.gostar-racing.com/information/motorcycle_suspension_set-up.htm" style="color: #444444; text-decoration: none;">http://www.gostar-racing.com/information/motorcycle_suspension_set-up.htm</a><br />
<a href="http://londonbikers.com/articles/1616/suspension-setup-demystified" style="color: #444444; text-decoration: none;">http://londonbikers.com/articles/1616/suspension-setup-demystified</a><br />
<a href="http://waynegardnerapproved.com.au/tech%20tips%201.htm" style="color: #444444; text-decoration: none;">http://waynegardnerapproved.com.au/tech%20tips%201.htm</a> (for Fireblades)<br />
<br />
<span style="font-size: 23px; font-weight: bold;">Geometry adjustment</span></div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
If You like me find the FZ1 a bit hard to steer into the corners and flick side to side, You will want to try some geometry adjustments before you trade it for a supersport. "Dropping the forks" is something a lot of FZ1 riders do, and is not dangerous in any way. The fork legs are actually raised in the triple clamps, and thus create a steeper steering angle, the bike tilts forward more, thus turning in quicker. The difference is like night and day. The torque for the upper pinch bolts is 26 Nm, and for the lower ones is 23 Nm.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFSA_aw1Eq25At4NnNcsS4TwlJxJ3RzO-XYGlafxbR_Az0UmfSPTZ96_a57Jz9kVruYMhv3dVNJZLOBPph7Ae2DLUMYBt2Db_kYmlQqV1_exCeARjL5SkNRCDAb5fuvArrkCGn/s1600/fz1.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFSA_aw1Eq25At4NnNcsS4TwlJxJ3RzO-XYGlafxbR_Az0UmfSPTZ96_a57Jz9kVruYMhv3dVNJZLOBPph7Ae2DLUMYBt2Db_kYmlQqV1_exCeARjL5SkNRCDAb5fuvArrkCGn/s400/fz1.jpeg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
The second thing You can do is change the rear shock to something fit for your weight (if you weigh over 80 kg, and the standard shock isn't good enough) for instance the <a href="http://www.nitron.co.uk/Shop/Product/1749/yamaha-fz1-fazer-ntr-sport-shock-1-way" target="_blank">Nitron NTR Sport</a> , which comes at a reasonable price of around 360 GBP. Make sure you also get it set to a longer length, 325mm eye to eye, compared to the standard 320. This will also aid in turning quicker, further tilting the bike forwards.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.nitron.co.uk/Shop/ProductDefaultImageLarge/1749" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="http://www.nitron.co.uk/Shop/ProductDefaultImageLarge/1749" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="post-body entry-content" id="post-body-2900060395852990224" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: 18px; position: relative; width: 586px;">
<span style="font-size: x-small;"><br /></span><br />
<span style="font-size: 23px;"><span style="font-weight: bold;">Fuel gauge issues</span></span><br />
The fuel gauge stays at 100% for over 90 km, then suddenly drops to 50% and then makes another sudden drop to the reserve. This was resolved by changing the fuel pump unit which has the fuel measurement unit incorporated. Now the gauge goes to<br />
-1 dot after ~40 km<br />
-2 dots after ~70 km<br />
UPDATE: My Yamaha shop changed the fuel pump unit, which has the fuel meter incorporated, on the extended warranty. It's all good now!<br />
<div style="clear: both; font-size: 13px;">
</div>
</div>
<div class="post-footer" style="background-color: #141414; color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.6; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 1.5em;">
</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com2tag:blogger.com,1999:blog-32173547.post-75373157186455138892011-11-18T23:45:00.001+01:002011-11-18T23:45:35.084+01:00Adoptera en grek<br />
<div class="separator" style="background-color: white; clear: both; color: #888888; font-family: arial, sans-serif; font-size: 13px; text-align: left;">
<span class="hps" style="color: #333333; font-size: 16px; text-align: -webkit-auto;">Det är nu möjligt att adoptera </span><span class="hps" style="color: #333333; font-size: 16px; text-align: -webkit-auto;">en</span><span class="Apple-style-span" style="color: #333333; font-size: 16px;"> </span><span class="hps" style="color: #333333; font-size: 16px; text-align: -webkit-auto;">grek f</span><span class="Apple-style-span" style="color: #333333; font-size: 16px; text-align: -webkit-auto;">ör 5000 kronor i månaden, du får en i </span><span class="hps" style="color: #333333; font-size: 16px; text-align: -webkit-auto;">gott skick.</span><span class="Apple-style-span" style="color: #333333; font-size: 16px; text-align: -webkit-auto;"> </span><span class="hps" style="color: #333333; font-size: 16px; text-align: -webkit-auto;">För denna summan kan han göra allt du inte hinner med:</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">- han kommer att sova till klockan 12</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">- han kommer att läsa dagspressen</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">- han kommer att gå på café och fika</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">- han kommer att diskutera sport och politik</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">- han kommer att ta en tupplur på eftermiddagen</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">- på kvällen kommer han att gå till en restaurang, bar, eller kanske en terass</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;"><br /></span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">Bonus:</span></div>
<div class="separator" style="background-color: white; clear: both; font-family: arial, sans-serif;">
<span class="Apple-style-span" style="color: #333333;">Den nya valutan i Grekland kommer att kallas för "Zeuro" (engelskt uttal)</span><span class="Apple-style-span" style="color: #333333; font-size: 16px;"> </span></div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-89162663657109879432011-10-15T13:38:00.002+01:002011-11-01T17:06:21.314+01:00Samsung SmartTV trafficMy SmartTV does magic things without asking me, like installing new updates to SmartTV, adding apps, removing apps, disabling stuff in the menu, re-enabling it, etc. I've tried to sniff the network traffic it creates in order to find out what to block in order to stop it from communicating with external servers, but not to stop it from streaming movies from my computer. My findings are the following:<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy5gqnUp2NjDi_4Nbc4LL7-oY7_e46PystWON6yb9HeGe21rhTJILBnONxQD1NEr-RwNg5aUohqgmSXU6wRx8QN8-HZ0jYQYxPFdSk2MhC-FCXy5IHIcVw5YoSSQiU3Sh1x6Zd/s1600/Screenshot-eth0+-+Wireshark.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: left;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy5gqnUp2NjDi_4Nbc4LL7-oY7_e46PystWON6yb9HeGe21rhTJILBnONxQD1NEr-RwNg5aUohqgmSXU6wRx8QN8-HZ0jYQYxPFdSk2MhC-FCXy5IHIcVw5YoSSQiU3Sh1x6Zd/s320/Screenshot-eth0+-+Wireshark.png" width="320" /></a><br />
<div>
<br />
<div>
-the TV is creating a lot of ARP traffic.</div>
</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZQ8eIuOKaOIVR1B7DRFh5duBSa95ihsV8aa-5jFEqiLn4xuwnxTt3P4mVvWYDZsW-3o6R6f8MFtgxOhfyK-zY8vzAUDigjk9LCQKh8KK4ysm7HBok5df0G7D8Kf_eDSg6FgqP/s1600/Screenshot-capture.raw+-+Wireshark-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZQ8eIuOKaOIVR1B7DRFh5duBSa95ihsV8aa-5jFEqiLn4xuwnxTt3P4mVvWYDZsW-3o6R6f8MFtgxOhfyK-zY8vzAUDigjk9LCQKh8KK4ysm7HBok5df0G7D8Kf_eDSg6FgqP/s320/Screenshot-capture.raw+-+Wireshark-1.png" width="320" /></a></div>
<div>
<br /></div>
<div>
-It tries to communicate over SSDP with 239.255.255.250 which means it's trying to find something by multicasting</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEqfPINcKHJH9qODUTcuOimb45-xmMbObhpCQ-_kxPPWujeXfz1d55_Q6i5VBhSodkkG7OIsdR8nzFlKBgJEuF-Sayd4HqmvBqNTFZBTSTmb6gkC403FnxON32O0zX_ErjcT62/s1600/Screenshot-capture.raw+-+Wireshark-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEqfPINcKHJH9qODUTcuOimb45-xmMbObhpCQ-_kxPPWujeXfz1d55_Q6i5VBhSodkkG7OIsdR8nzFlKBgJEuF-Sayd4HqmvBqNTFZBTSTmb6gkC403FnxON32O0zX_ErjcT62/s320/Screenshot-capture.raw+-+Wireshark-2.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjTiETI63JOpuaB6nt6Xqs4qXtPDtxUjinHr7IFQjZwId6Ds5xwypG_v9CLHNUx_H4Fs2DCDI-Rxy6kNZRc6xFW_aVuqt1xO9HWMxDgCQiwgeyU3xY0r032pW6bW0j3lKeQy91/s1600/Screenshot-capture.raw+-+Wireshark-3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjTiETI63JOpuaB6nt6Xqs4qXtPDtxUjinHr7IFQjZwId6Ds5xwypG_v9CLHNUx_H4Fs2DCDI-Rxy6kNZRc6xFW_aVuqt1xO9HWMxDgCQiwgeyU3xY0r032pW6bW0j3lKeQy91/s320/Screenshot-capture.raw+-+Wireshark-3.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgbyXeSjpDZaOfVpmljUEMZrQEuZr59evxUqpye6yZpyYFfK39iOVj5j_d83a-NjG6QLnjkXQu03cKPwW9-bZd6C6YvOf1jofgtlLFpgHbZsSS_N0qAAa0ZFEaLdGZM4tU40z1/s1600/Screenshot-capture.raw+-+Wireshark-5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgbyXeSjpDZaOfVpmljUEMZrQEuZr59evxUqpye6yZpyYFfK39iOVj5j_d83a-NjG6QLnjkXQu03cKPwW9-bZd6C6YvOf1jofgtlLFpgHbZsSS_N0qAAa0ZFEaLdGZM4tU40z1/s320/Screenshot-capture.raw+-+Wireshark-5.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
No incoming traffic to 10.0.0.31 appears, maybe it's getting the updates over the cable provider's network.</div>
<div class="separator" style="clear: both; text-align: left;">
Please comment if you have any more information on how these updates work.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
EDIT:</div>
<div class="separator" style="clear: both; text-align: left;">
Actually I later realized that all I saw was the broadcast traffic, because of the switched network. I'll have to re-do this next time the TV gets on my nerves with connecting to Samsung and downloading updates.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div>
<br /></div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com4tag:blogger.com,1999:blog-32173547.post-24891685281470282322011-10-12T23:57:00.002+01:002011-10-12T23:58:57.400+01:00Undercover MacThis app really is "undercover". You download it to try it, but there's no trial license. So you uninstall it.<br />
<div>
<br /></div>
<div>
BUT: it leaves behind a system service that still talks to their servers. Just open a console window, or a task manager window, and search for <b>uclocator.</b></div>
<div>
<b><br /></b></div>
<div>
<b><span class="Apple-style-span" style="font-weight: normal;">Download <a href="http://www.peterborgapps.com/lingon/">Lingon</a>, a </span><span class="Apple-style-span">launchd</span><span class="Apple-style-span" style="font-weight: normal;"> editor, find the </span>uclocator<span class="Apple-style-span" style="font-weight: normal;"> service, stop it and disable it. Then go to </span>/Library/LaunchAgents/ </b>and remove <b>com.orbicule.uclocator.plist</b> which is the service descriptor file.</div>
<div>
In order to get rid of ALL of it I also removed<b> /usr/bin/uc</b> directory. Now everything should be gone.</div>
<div>
Trust noone ;)</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com2tag:blogger.com,1999:blog-32173547.post-38105739352467146022011-09-05T23:09:00.004+01:002011-10-12T23:59:48.406+01:00Samsung UE46D65 LED TV bugs<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.samsung.com/se/system/consumer/product/2011/03/23/ue46d6535wsxxe/01_large.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://www.samsung.com/se/system/consumer/product/2011/03/23/ue46d6535wsxxe/01_large.jpg" width="320" /></a></div>
<br />
So I got my new TV-set and already I found some bugs, even if this model is considered to be among the top Samsung range. The following is probably true for all Samsung sets with the SmartTV function.<br />
<br />
1. When manually editing the channel list, you press edit on a channel, and if that same channel exists at a previous channel number, the previous channel number opens up in EDIT mode. Idiotic<br />
<br />
2. If a network connection problem exists, you cannot exit the "login to Smart ID" menu. You have to turn off the TV<br />
<br />
3. If you turn off the TV during an update, it won't boot again. Unplug powercord and wait a couple of minutes for it to "settle" then plug in the power again and it boots. Pheww ..<br />
<br />
4. You cannot remove certain installed software, such as Facebook, Social TV. It ends up in a "special" uneditable place. Arrgh ..<br />
<br />
5. You can't actually remove added accounts from the Smart Hub configuration menu (D)<br />
<br />
6. You cannot access Smart Hub directly after start, because you get an "Installing" prompt which blocks any other operation for like 3 minutes.<br />
<br />
7. The system updates on it own, without your permission. It also installs software that Samsung selects for You. No, thanks, I really don't want that, Samsung..<br />
<br />
8. There's no skipping in the media player.<br />
<br />
Allow me a couple more days to find more issues ...<br />
<br />
A new update auto-flashed, and now I don't have accounts any more, and I can't remove software. Great ..Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-80760014997963912302011-07-31T18:49:00.000+01:002011-07-31T18:49:56.380+01:00Bye bye chicken strips<div class="separator" style="clear: both; text-align: left;">After today's track day I feel like a man</div><div class="separator" style="clear: both; text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKC2Tdi9HtI1pfIG0E85V-JT3GpAKmAcl2epUF_V7XDMuYwcEsi8wmrFWCTjZOe_42QcX6IDLQ74DU_-c3lIWoRXkkaZzYiANPwSzL2t7qid2MLCwJvlQV2RX_lS4ieppzNMmD/s1600/2011-07-31+17.34.06.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKC2Tdi9HtI1pfIG0E85V-JT3GpAKmAcl2epUF_V7XDMuYwcEsi8wmrFWCTjZOe_42QcX6IDLQ74DU_-c3lIWoRXkkaZzYiANPwSzL2t7qid2MLCwJvlQV2RX_lS4ieppzNMmD/s640/2011-07-31+17.34.06.jpg" width="480" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha0ZAXMgLkZshegkhqELh4N5sfSvz0NDpVi120yt2A7tEnO-csfkz9R3kJPQdhFGCI_i9zvvmYKZ-R1HmUT05PhWOhHAfKvD4Z6LeKz-2KPzYaBWs7M13EkY6sN9Iv7g7z2yQo/s1600/2011-07-31+17.33.56.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha0ZAXMgLkZshegkhqELh4N5sfSvz0NDpVi120yt2A7tEnO-csfkz9R3kJPQdhFGCI_i9zvvmYKZ-R1HmUT05PhWOhHAfKvD4Z6LeKz-2KPzYaBWs7M13EkY6sN9Iv7g7z2yQo/s640/2011-07-31+17.33.56.jpg" width="640" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmp4Ls4HSN-W4vxMK2A8WVXdzjcVeZzIbqHW-w-wnK8BzGm0UxOw3cc7mTCdW1W-uaM9U1hdVFt8bHcbx_je9aOQpWYG8xT3A7DK-mXMga7VXlxU3Pd9mtJmdq4bV2oAOb0iJQ/s1600/2011-07-31+17.33.46.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmp4Ls4HSN-W4vxMK2A8WVXdzjcVeZzIbqHW-w-wnK8BzGm0UxOw3cc7mTCdW1W-uaM9U1hdVFt8bHcbx_je9aOQpWYG8xT3A7DK-mXMga7VXlxU3Pd9mtJmdq4bV2oAOb0iJQ/s640/2011-07-31+17.33.46.jpg" width="640" /></a></div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-76308691287260855822011-07-03T01:44:00.000+01:002011-07-03T01:44:56.693+01:00Switzerland 2011Just started a new travel blog for the summer vacation:<br />
http://rideswitzerland.blogspot.comVasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-40161757306938233182011-06-06T17:59:00.001+01:002011-06-06T17:59:34.876+01:00Bulă<p><a href='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixX7QnEZY1YWhby3xQp5VJhtZ07DUSRzlm_tGjypr7FPH4LbZjAYy9q1g9ZU3dReK2Csnl_fBMZWfuIxgwE2qoPkq8u89-d9xR5paEdz0_Q1pShuJ1XCc2MM-4kzwAccJoHNT6/'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixX7QnEZY1YWhby3xQp5VJhtZ07DUSRzlm_tGjypr7FPH4LbZjAYy9q1g9ZU3dReK2Csnl_fBMZWfuIxgwE2qoPkq8u89-d9xR5paEdz0_Q1pShuJ1XCc2MM-4kzwAccJoHNT6/s400/2010-12-29%25252015.39.39.jpg' /></a></p><div style='clear: both; text-align: center; font-size: xx-small;'>Published with Blogger-droid v1.6.8</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-59253473425871399532011-05-20T16:23:00.001+01:002011-05-20T16:23:43.815+01:00Outlaw biker<div style='clear: both; text-align: center; font-size: xx-small;'>Published with Blogger-droid v1.6.8</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-56793027125331646202011-05-20T16:19:00.001+01:002011-05-20T16:19:43.418+01:00Brunch<p><a href='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmq4OgjsaT6MUVTLTw_Th5BlnoqnPOVxIerG3avSX7Sbri9yElnXhSuAKGUbK3NfpSwt3a73Dc-oSKnkjdYByYnd-RQnfUiSiMRM3hf-MCXA1iNjl5Kn0pDyBk3sJEY8AJGfz/'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJmq4OgjsaT6MUVTLTw_Th5BlnoqnPOVxIerG3avSX7Sbri9yElnXhSuAKGUbK3NfpSwt3a73Dc-oSKnkjdYByYnd-RQnfUiSiMRM3hf-MCXA1iNjl5Kn0pDyBk3sJEY8AJGfz/s400/2011-04-19%2011.32.49.jpg' /></a></p><div style='clear: both; text-align: center; font-size: xx-small;'>Published with Blogger-droid v1.6.8</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-32090578154822750492011-04-30T23:48:00.001+01:002011-04-30T23:48:16.955+01:00SVT 2011<a href='Jag tror att du skulle vara intresserad av den här kartan: http://maps.google.com/maps/ms?msa=0&msid=214375032891107790791.0004a22a8fdb107e980f9'>Jag vill dela en karta med dig</a><div style='clear: both; text-align: center; font-size: xx-small;'>Published with Blogger-droid v1.6.8</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-79930230850647468142011-04-19T15:37:00.000+01:002011-04-19T15:37:58.108+01:00WTF ??<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdoTUzA_OfNbZbY-DB5C1SSitI7tiyyfF86IxOgurjtir-N2jzXqU-yBF8bo9NOPRIvbOdcupG7cXwPdtdNFZrOJBThyphenhyphenIFLrhrsqOrO5yd0AOLbSz04mEKwp8lUO9d6mNkuD3U/s1600/wtf.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdoTUzA_OfNbZbY-DB5C1SSitI7tiyyfF86IxOgurjtir-N2jzXqU-yBF8bo9NOPRIvbOdcupG7cXwPdtdNFZrOJBThyphenhyphenIFLrhrsqOrO5yd0AOLbSz04mEKwp8lUO9d6mNkuD3U/s400/wtf.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">No Comment</td></tr>
</tbody></table>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-46978442448684850432011-04-02T00:44:00.000+01:002011-04-02T00:44:23.304+01:00Download HQ or HD video from Youtube and convet to mp3Well the title says it all. Copy the Youtube URL, and go to www.keepvid.com where you paste it into the search field. Click the "high definition" mp4 file link to download (sometimes it's just "high quality") but it's going to be enough for the treadmill or car stereo.<br />
<br />
When you've saved enough videos to one directory, use the following script to convert them to mp3. You will need faad and lame (or twolame)<br />
<br />
<span style="color: lime;">#!/bin/bash</span><br style="color: lime;" /><span style="color: lime;">#hacked by adrian (at) javaguru [dot] org</span><br style="color: lime;" /><span style="color: lime;">if [ -f /usr/bin/faad ]</span><br style="color: lime;" /><span style="color: lime;"> then </span><br style="color: lime;" /><span style="color: lime;">if [ -z $1 ] </span><br style="color: lime;" /><span style="color: lime;"> then</span><br style="color: lime;" /><span style="color: lime;"> echo "Usage: mp3-to-mp3 <filename> / all"</filename></span><br style="color: lime;" /><span style="color: lime;"> exit 0</span><br style="color: lime;" /><span style="color: lime;">fi</span><br style="color: lime;" /><span style="color: lime;">if [ $1 != "all" ]</span><br style="color: lime;" /><span style="color: lime;"> then</span><br style="color: lime;" /><span style="color: lime;">if [ -f $1 ]</span><br style="color: lime;" /><span style="color: lime;"> then</span><span style="color: lime;"></span><br style="color: lime;" /><span style="color: lime;"> echo Processing $1 </span><br style="color: lime;" /><span style="color: lime;"> faad $1</span><br style="color: lime;" /><span style="color: lime;"> #filename change</span><span style="color: lime;"></span><br style="color: lime;" /><span style="color: lime;"> FNAME_LENGTH=${#1}</span><br style="color: lime;" /><span style="color: lime;"> FEXT_INDEX=$((FNAME_LENGTH-4))</span><br style="color: lime;" /><span style="color: lime;"> echo Filename length: $FNAME_LENGTH</span><br style="color: lime;" /><span style="color: lime;"> WAVFILE=${1:0:$FEXT_INDEX}.wav</span><br style="color: lime;" /><span style="color: lime;"> echo $WAVFILE created. Processing...</span><br style="color: lime;" /><br style="color: lime;" /><span style="color: lime;"> # Running lame encoder</span><br style="color: lime;" /><span style="color: lime;"> echo Running lame mp3 encoder with 256kbps and HQ settings</span><br style="color: lime;" /><span style="color: lime;"> lame -h -b 256 $WAVFILE</span><br style="color: lime;" /><br style="color: lime;" /><span style="color: lime;"> # process filenames</span><br style="color: lime;" /><span style="color: lime;"> MP3FILE=$WAVFILE.mp3</span><br style="color: lime;" /><span style="color: lime;"> NEWMP3FILE=${MP3FILE:0:$FEXT_INDEX}.mp3</span><br style="color: lime;" /><span style="color: lime;"> mv $MP3FILE $NEWMP3FILE </span><br style="color: lime;" /><span style="color: lime;"> echo Deleting intermediate WAV file</span><br style="color: lime;" /><span style="color: lime;"> rm -v $WAVFILE</span><br style="color: lime;" /><span style="color: lime;"> echo $NEWMP3FILE created. Enjoy!</span><br style="color: lime;" /><span style="color: lime;"> fi</span><br style="color: lime;" /><span style="color: lime;">else </span><br style="color: lime;" /><span style="color: lime;"> if [ $1 == "all" ]</span><br style="color: lime;" /><span style="color: lime;"> then </span><br style="color: lime;" /><span style="color: lime;"> # removing keepvid.com tag</span><br style="color: lime;" /><span style="color: lime;"> find . -name "*keepvid*" -exec rename -v 's/\_\[www.keepvid.com\]//'$</span><br style="color: lime;" /><span style="color: lime;"> find . -name "*.mp4" -exec mp4-to-mp3 {} \;</span><br style="color: lime;" /><span style="color: lime;"> fi</span><br style="color: lime;" /><br style="color: lime;" /><span style="color: lime;">fi</span><br style="color: lime;" /><span style="color: lime;">else </span><br style="color: lime;" /><span style="color: lime;"> echo /usr/bin/faad missing! Exiting</span><br style="color: lime;" /><span style="color: lime;">fi</span><br style="color: lime;" /><span style="background-color: white; color: lime;"></span>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-80680439445501437742011-02-16T22:34:00.001+01:002011-02-16T22:34:46.859+01:00Quality time<p><a href='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-A1eEF_LC_Oh6fgicd1HTnQKlOdc011F9v48ueQH94X90GfeUhZNK51fFY69deiC1dm3JgLNE2m-UvKwe7788WAQf3UX2vibYpwdYT5zThm1DQDDXb38wSMqxFkcPqJgsotSu/'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-A1eEF_LC_Oh6fgicd1HTnQKlOdc011F9v48ueQH94X90GfeUhZNK51fFY69deiC1dm3JgLNE2m-UvKwe7788WAQf3UX2vibYpwdYT5zThm1DQDDXb38wSMqxFkcPqJgsotSu/s400/2011-02-16%2022.30.20.jpg' /></a></p>What beats this? <div style='clear: both; text-align: center; font-size: xx-small;'>Published with Blogger-droid v1.6.7</div>Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-15710557953348447812011-01-25T13:31:00.001+01:002011-01-25T13:31:39.720+01:00OpenSSH root from localhost<i>restrict root to only be able to use ssh from localhost</i><br />
Try out following entry:<br />
<strong>AllowUsers root@localhost</strong><br />
If the pattern takes the form USER@HOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts.Vasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0tag:blogger.com,1999:blog-32173547.post-61107084247631171292011-01-23T17:22:00.002+01:002011-01-27T16:24:19.199+01:00Packning för MC-resaPacka smart = det du behöver ofta längst upp<br />
Kolla kedjan - spänn om nödvändigt<br />
Extra pass & pengar i styrändarna<br />
Foto på pass och körkort i GMails inbox kanske redan laddat i telefonen <br />
Whiskey i plastflaska<br />
2-4 öl <br />
Stödplatta<br />
Ficklampa<br />
Klart visir<br />
Karta/kartbok<br />
Kamera<br />
Kniv<br />
Vattenflaska<br />
Reparationskit (punkaspray, verktyg, straps, multiverktyg, silvertejp)<br />
Liten kedjesprej<br />
<br />
Extra handskar, varma<br />
Mikrofiberduk/handduk<br />
Yllestrumpor Stadium<br />
Extranyckel till motorcykeln, förvaras på annan plats (halskedja)<br />
Tandborste, tandkräm, deo<br />
TvättlappVasilehttp://www.blogger.com/profile/10650781848436217834noreply@blogger.com0