Thursday, August 16, 2018

Findings with braided fishing line aka fireline

Had horrible time figuring out how to attach findings for braided line...
this is what i came up with... might help some one else

I used cheap braided line from ebay and as for findings clamshells from
amazon photos to follow. This is 50lb in a gray its .36mm


first do a double overhand knot
I like to use multiple strands of line for smaller beads I use 2 and for larger beads up to 4... Over kill I know..But its cheap and I don't like to redo my bracelets. This will be a bracelet with hematite and blue shell..




Pull knot tight and then add another one if you dont think your knot is
big enough to not pull through the clamshell


Cut the tails and burn the ends

 Thread on a clamshell and close
Thread on your beads I use a piece of copper wire to thread mine cheap and easy

Thread on the final clamshell then do another double over hand knot and
put a needle or somthing through the middle of the knot I use a large paperclip
bent straight 
 Tighten the knot around what ever object you used

pull the knot down till its in the clamshell tightn till your braclet is tight but not
over tight you want the beads to not be over snug they wont lay correctly
when wrapped around a wrist. 

you can then add another knot but that can be a pain... but i like a bigger knot
so I try and do it again use the clip etc similar to knotting pearls


Finished almost 
 Add jump rings and toggle clasp your good to go.


Easy fast and secure....

Any way better than any of the ways I could find on any of the beading forums
or websites.... If you have a good/better way leave a message in the comments

Tuesday, March 1, 2016

converting ithmb to jpg

.ithmb is a file format used by apple on phones and ipods.
Its a pain to convert to convert them you used to be able to use iThmbConv
but I cant find an updated version that works.

This worked
linux I assume any distro will work.
Install foremost http://foremost.sourceforge.net/

on debian based distros
sudo apt-get install foremost
then go to the top directory of the files you want to convert in this example
"iPod Photo Cache"

I dont want to convert individial files but you can if you want I want to merge the files and covert all at one time so:
 First command merges all the ithmb files in the folder and all subfolders

example@example:/mnt/work/iPod Photo Cache$find . -type f -name *.ithmb -exec cat {} > example.data \;


second command outputs the jpgs into a folder named example.
example@example:/mnt/work/iPod Photo Cache$ foremost -t all -i example.data -o example

the two commands
"find . -type f -name *.ithmb -exec cat {} > example.data"
"foremost -t all -i example.data -o example"


If you want to do individual files you can .. this will extract jpgs into the directory example from one ithmb file:
example@example:/mnt/work/iPod Photo Cache/F00$foremost -t all -i example.ithmb -o example

to make a directory for each .ithmb file in the current directory:
example@example:/mnt/work/iPod Photo Cache/F00$for img in *.ithmb; do filename=${img%.*};foremost -t all -i "$filename.ithmb" -o "$filename"; done

hope this helps some one else looking for an answer to this question.

Tuesday, June 2, 2015

ubuntu-builder

Just some notes etc for ubuntu-builder
https://launchpad.net/ubuntu-builder

To get it to load with xephyr under ubuntu 15.04 I had to edit
/usr/share/ubuntu-builder/extras/desktop
and on line
41 and 42
change from:
DISPLAY=localhost:9
export DISPLAY=localhost:9

to:
DISPLAY=:9
export DISPLAY=:9

Now when you click desktop you should see your livecd desktop.

As you know the default user files are in
/home/ubuntu-builder/FileSystem/etc/skel/
its supposed to copy the files from the root user into that
folder some times it does not work. So add your files etc directly into that file or subfolder. 

as other have posted you will get errors with
libpam-systemd.See https://blog.tan-ce.com/chroot-ubuntu-14-04-on-android-nexus-10/

To solve this problem,create a dummy init.d script. Create a file at /home/ubuntu-builder/FileSystem/etc/init.d/systemd-logind with 0755 permissions. In this file, enter the following:

#!/bin/sh
exit 0

I had another error that was the same with modemmanager
so just cp /home/ubuntu-builder/FileSystem/etc/init.d/systemd-logind /home/ubuntu-builder/FileSystem/etc/init.d/modemmanager

And for when you update the kernel. These are examples substuit with the correct version info
copy /home/ubuntu-builder/FileSystem/boot/vmlinuz-3.13.0-32-generic
and /home/ubuntu-builder/FileSystem/boot/initrd.img-3.13.0-32-generic

to
/home/ubuntu-builder/
rename them vmlinuz.efi and make another copy and name it  vmlinuz (I never pick the correct name so I make another copy so I never get boot errors.. its usuless so if you know the correct name to use leave this step out)
and initrd.lz


Then after you click build copy them into
/home/ubuntu-builder/ISO/casper
Do this after you hit build and it deletes the old files
recopy them in


If your reading this I hope these tips help.

Monday, November 24, 2014

Repurpose Laptop Webcam

Sony VGN-CR32OE
scm2895  pinout
scm 2895  pinout
n8034s02
r5u87x pinout
camera: 05ca:1839
Ricoh Co., Ltd Visual Communication Camera VGP-VCC6 [R5U870]

Any way its a namtai scm2895

Pin out is
red green white black black

Red to red usb
green to white usb
white to green usb
all the black wires (if you unravel the sheilding you will notice that the other black wire is connected to the shielding) to black usb

See picture taken with webcam


I will solder these later.
But it can be done.. i would assume most of these ricoh webcams have similar pin connections.

To use on ubunut installe the ppa
https://launchpad.net/~r5u87x-loader/+archive/ubuntu/ppa

and cheese.



Thursday, October 2, 2014

Mount NTFS partition is in an unsafe state.

The post on NTFS tricks from May no longer worked for me on Ubuntu 14.10

The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.

Blah blah....

Old way that worked.

sudo mount -t ntfs-3g /dev/sdf4 ./mnt -o remove_hiberfile

New way which is just wierd....

sudo ntfs-3g -o remove_hiberfile /dev/sdf4 ./mnt


But it worked...

Saturday, May 24, 2014

Building kernel ubuntu

Fun things to do building your kernel
I use the Kernel_gcc_patch that adds additional CPU options to the Linux kernel at build time.

For 3.15+ use the patch at
https://github.com/graysky2/kernel_gcc_patch/tree/v3.15%2B

then to use
patch -p1 < enable_additional_cpu_optimizations_for_gcc-updated-for-3.15.patch
 cp -vi /boot/config-`uname -r` .config
make xconfig
Under Processor type and features
   -Processor family
     --Choose your processor.

    -Under Preemption Model
   change to Preemptible Kernel (Low-Latency Desktop) (PREEMPT)
      Select this if you are building a kernel for a desktop or
      embedded system with latency requirements in the milliseconds
      range.

  - Timer frequency
  Choose
  1000 HZ (HZ_1000
   1000 Hz is the preferred choice for desktop systems and other
    systems requiring fast interactive responses to events.

Make any other changes you need then save you config

for my build I have a quad core so
export CONCURRENCY_LEVEL=5
time fakeroot make-kpkg --initrd --revision=`date +%m%d%Y` --append-to-version=-`date +%m%d%Y` kernel-image kernel-headers

after its finished building
cd ..
sudo dpkg -i *.deb

Note for 14.04 and building 3.15
You need to download and install the deb
https://launchpad.net/ubuntu/+source/kernel-package/13.003/+build/5980712/+files/kernel-package_13.003_all.deb
If not you will recieve errors and the build wont complete.

See bug https://bugs.launchpad.net/bugs/1308183




NTFS tricks on linux

Or  How do I mount a hibernated NTFS partition?

Error mounting: mount exited with exit code 14: Windows is hibernated, refused to mount.

sudo mount -t ntfs-3g /dev/'device' 'monutpoint' -o remove_hiberfile
Example:
sudo mount -t ntfs-3g /dev/sde4 ./mnt -o remove_hiberfile

remove_hiberfile
    Unlike in case of read-only mount, the read-write mount is denied if the NTFS volume is hibernated. One needs either to resume Windows and shutdown it properly, or use this option which will remove the Windows hibernation file. Please note, this means that the saved Windows session will be completely lost. Use this option under your own responsibility.

Fix some NTFS  issues

       ntfsfix - fix common errors and force Windows to check NTFS

SYNOPSIS
       ntfsfix [options] device

DESCRIPTION
       ntfsfix  is  a  utility  that fixes some common NTFS problems.  ntfsfix is NOT a Linux version of chkdsk.  It only repairs some fundamental NTFS inconsistencies, resets the
       NTFS journal file and schedules an NTFS consistency check for the first boot into Windows.

       You may run ntfsfix on an NTFS volume if you think it was damaged by Windows or some other way and it cannot be mounted.

Example run:
sudo ntfsfix /dev/sdb1

To install:
sudo apt-get install ntfsprogs