Wow, if I break my Samsung E720 cellphone, I hope they will document this baby :
“CMOS Camera Module – 640×480
Price: $19.95
This is a 640×480 pixel resolution CMOS camera used in the Samsung E700 cellular phone. While 0.3 mega pixels may not sound like a lot, this module is one of the smallest, lowest cost CMOS imaging modules currently available to the embedded market.
(…)
Therefore – we will be offering a $200 in-store gift certificate to the first customer who can adequately document and report their successful single-image capture using this module. We would be thrilled to post your mug and forever immortalize you on the SFE site (well, for a day or two anyway). We will be working to reverse engineer the unit and encourage all customers to work together through the SFE support forum.”
$ echo *.par2
or to get one filename per line :
$ for i in *.par2; do echo $i; done
So to mass-repair everything in a directory simply type :
$ for i in *.par2; do par2repair $i; done
EDIT : only works if the extension in “vol**+**.PAR2″ is capitalized
A script posted by someone on alt.binaries.h****-s****, to see how nget works.
#!/bin/sh
####################################### getstern2.sh (updated for siruis) 2006-01-12 8:46:40 # # fetch today's st3rn show from usenet. depends on the# program `nget'# ######################################
## CONFIGURATIONSTERN_DIR="/usr/home/share/st3rn" # Directory to place downloaded shows intoDATE_PREFIX="`date +%Y-%m-%d`" # Today's date in YYYY-MM-DD format
## CHECK COMMAND LINE ARGUMENTif [ "${1}" ] ; thenDATE_PREFIX="${1}"echo "Using ${1} for DATE_PREFIX"fi
## CHECK FOR NGETif [ ! "`which nget`" ] ; thenecho "Error: nget not installed"exit 1fi ;
## CHECK FOR STERN DIRECTORYif [ ! -d "${STERN_DIR}" ] ; thenecho "Error: ${STERN_DIR}: directory doesn't exist"exit 1elif [ ! -w "${STERN_DIR}" ] ; thenecho "Error: ${STERN_DIR}: you do not have write permission"exit 1fi
## CLEAN OUT NGET CACHEif [ ! -d "${HOME}/.nget5" ] ; thenecho "Error: ${HOME}/.nget5: directory not found"exit 1elif [ ! -w "${HOME}/.nget5" ] ; thenecho "Error: ${HOME}/.nget5: you do not have write permission"exit 1firm -f $HOME/.nget5/*
## WORK IN TEMP STERN DIRif [ ! -d "/tmp/stern" ] ; thenmkdir /tmp/sternficd /tmp/stern
## TRY TO GET P4XTON FUDG3 VERSIONnget -g alt.binaries.haward-sturn -r ${DATE_PREFIX}-cf.mp3 > fetch-logif [ "`ls|grep ${DATE_PREFIX}-[Cc][Ff].mp3`" != "" ] ; thenmv ${DATE_PREFIX}*.mp3 ${STERN_DIR}/${DATE_PREFIX}-CF.mp3rm -f *.txtecho "${0}: Success!"exit 0fi
echo "${0}: Download Failed"exit 1
This is a scoring script that I use on some huge groups like alt.binaries.multimedia or alt.binaries.tv and it’s much quicker than using the interface. Pan is compatible with the PCRE “Perl Compatible Regular Expressions”.
Quick example :
$ score dead.like.me
ADDED :
[^alt\.binaries\.multimedia|alt\.binaries\.tv$]
Score: =-9999
Subject: dead.like.me.S\d\dE\d\d|dead.like.me.\dx\d\d|dead.like.me.\d\d\d
That way all the files called like “dead like me S01E22″ or “dead-like-me.1×11″ or “dead.like.me.104″ are scored -9999 and I can save some RAM by reading only the headers scored 0. I can also delete all the headers scored -9999 ( ignored ) all at the same time.
Here’s the “score” script to put in your /home/you/bin directory. The hardcoded things need to be changed ( path, group name )
#!/usr/bin/python
import sys
scorefile = “/home/you/News/Score”
group = “^alt\\.binaries\\.multimedia|alt\\.binaries\\.tv$”
arg = sys.argv[1]
score = arg+’.S\\d\\dE\\d\\d|’+arg+’.\\dx\\d\\d|’+arg+’.\\d\\d\\d’
f=open(scorefile, ‘a’)
f.write( “\n” + “[" + group + "]\n” )
f.write( “\t” + “Score: =-9999″ + “\n” )
f.write( “\t” + “Subject: ” + score + “\n\n” )
f.close
print “ADDED :”
print “\n” + “[" + group + "]“
print “\t” + “Score: =-9999″ + “” print “\t” + “Subject: ” + score
It works ! Almost.
I first bought a random USB Bluetooth dongle called Trendnet TBW-101UB. As expected it was detected automatically by Mandriva 2006, but then the real pain in ass began.
Let’s start with the phone settings :
Bluetooth
1 – Activation : On
2 – My devices : localhost-0 ( see below )
3 – My phone’s visibility : On
4 – My phone’s name : SGH-E720
5 – Secure mode : Off
Since I use KDE I used the kdebluetooth package of my distro, then I changed the bluepin utility of Bluez to Kbluepin like described in the kde-bluetooth FAQ.
Then I somehow managed to exchange PIN numbers and save the computer ( called localhost-0 in the phone ) as an authorized device, don’t ask me how, and that’s it, nothing else worked within kde-bluetooth, worse it completely screwed up something with KDE, some KDE-related processes started to crash, the service called “dm” was also impossible to turn off.
I don’t know why I started to try out this how-to. It can sound stupid since I use Mandriva not Ubuntu, KDE not Gnome, and a Samsung phone not Nokia, but the OBEX protocole is actually the same and it worked so, what the hell !
So here’s what I did. See the original how-to for more details.
Note that the bluetooth service is still running but not kde-bluetooth.
$ su
$ urpmi gnome-bluetooth bluez-utils
# gnome-obex-server is already in gnome-bluetooth
$ modprobe l2cap
$ modprobe rfcomm
$ mknod /dev/rfcomm0 c 216 0
$ hcitool scan
hcitool scanScanning ... 00:12:47:AC:57:99 SGH-E720
$ vi /etc/bluetooth/rfcomm.conf
# with vi I changed the stuff to this : ( don’t ask me about the channel 10 I have no idea of what it is )
rfcomm0 { # Automatically bind the device at startup bind no;
# Bluetooth address of the device device 00:12:47:AC:57:99;
# RFCOMM channel for the connection channel 10;
# Description of the connection comment "Example Bluetooth device";}
$ sdptool add –channel=10 OPUSH
$ rfcomm bind /dev/rfcomm0 00:12:47:AC:57:99 10
$ gnome-obex-send /home/zoby/Desktop/file.mp3
And it worked !!!! It showed a prompt on both the phone and the computer and the file transfer began.
All the rest of the how-to didn’t work, that is how to transfer pictures from the phone to the computer with gnome-obex-server. Too bad. But I’m glad I can fill the 80Meg with mp3s now.
And like the guy said, do not forget that “Everytime that you reboot you must re apply this things (which you could insert into a boot-script)” :
modprobe l2cap
modprobe rfcomm
mknod /dev/rfcomm0 c 216 0
sdptool add –channel=10 OPUSH
rfcomm bind /dev/rfcomm0 YOUR_PHONE_ADDRESS 10
EDIT 2006/01/30
Cool.
Today I tried Ubuntu Live CD and tried again to make it work, and the symptoms were exactly the same as when using Mandriva/gnome-bluetooth, the transfer starts but stops after 10 seconds, but better than with Mandriva since before I had to restart the phone between each attempt. So it’s a little better than with then Mandriva packages.
But this time I found a cool trick.
So, when the transfer stops after 10 seconds, I can make it restart by doing :
Menu, Settings, 6 Bluetooth, 2 My devices, ubuntu-0 ( or whatever name ), Options, Service list, Object list, Refresh.
Everytime the transfer stops, press Refresh. Yeah, it’s annoying as hell, I know. I think something’s wrong with this phone, but it might be a software or a dongle problem, I can’t be sure.
I will try it with my mandriva later, and also I still have to transfer the pictures from the phone to the computer, so stay tuned. It’s a time consuming process so it might take some time.
EDIT :
With Ubuntu, I forgot the line :
rfcomm bind /dev/rfcomm0 YOUR_PHONE_ADDRESS 10
and it worked better ( no need no refresh all the time )
Weird…
List of phones related : Samsung SGH-D800 SGH-D500 SGH-X810 SGH-S410 SGH-E860 SGH-E880 SGH-D600 SGH-E730 SGH-E620 SGH-E730 SGH-E520