From af878b9e8ff20f07ff98fcdf6731fb10a412638d Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 1 Jul 2021 19:07:53 -0400 Subject: [PATCH] automated update from build.py --- blog/20070522-gnokii-tips.html | 73 ++++++++++++++++++++++++++++++++++ blog/20070807-vim-tips.html | 56 ++++++++++++++++++++++++++ feed.atom | 63 +++++++++++++++++++++++++++++ sitemap.txt | 2 + 4 files changed, 194 insertions(+) create mode 100644 blog/20070522-gnokii-tips.html create mode 100644 blog/20070807-vim-tips.html diff --git a/blog/20070522-gnokii-tips.html b/blog/20070522-gnokii-tips.html new file mode 100644 index 0000000..d6433d6 --- /dev/null +++ b/blog/20070522-gnokii-tips.html @@ -0,0 +1,73 @@ + + + + + + + + + + +Gnokii Tips | Colin McMillen + + + + + + + + + + +
+
+ + +
+

Gnokii Tips

+

Posted 2007-05-22, updated 2021-07-01.

+

I own a Nokia 6102i phone (provided by Cingular). gnokii is a Linux program that lets me interface with the phone. Here are some recipes:

+

File I/O

+

gnokii --getfilelist "A:\\predefgallery\\predeftones\\predefringtones\\*"

+

gnokii --putfile WiiSports.mp3 "A:\\predefgallery\\predeftones\\predefringtones\\WiiSports.mp3"

+

Ring Tones

+

Voice mail picks up in 20 seconds, so a ring tone should be about 20 seconds long.

+

The easiest way to chop an MP3 in Linux is with dd; the drawback is that you need to specify length in KB, not time. To chop an MP3 to be 200 KB long, do:

+

dd if=Mii\ Channel.mp3 of=MiiChan2.mp3 bs=1k count=200

+

Phonebook

+

To make a Phonebook.ldif file from the phone (suitable for import into Thunderbird):

+

gnokii --getphonebook ME 1 end --ldif > Phonebook.ldif

+

To add the entries in Phonebook.ldif to the phone:

+

cat Phonebook.ldif | gnokii --writephonebook -m ME --find-free --ldif

+

You can specify --overwrite instead of --find-free if you want to overwrite all the entries, but this will lose some data (e.g. speed dial, preferred numbers).

+

Multimedia

+

You can get photos like this:
+gnokii --getfile "A:\\predefgallery\\predefphotos\\Image000.jpg"
+They are 640x480 JPG files. (You can also configure the camera so that it takes pictures at 80x96.)

+

You can also store files:
+gnokii --putfile silly.jpg "A:\\predefgallery\\predefphotos\\silly.jpg"
+These show up on the phone in My Stuff/Images. The files don’t need to be any specific size; they are autoscaled. GIFs probably also work.

+

Videos live here:
+gnokii --getfile "A:\\predefgallery\\predefvideos\\Video000.3gp"
+VLC seems to be able to play .3gp files, but the audio doesn’t work.

+

Audio recordings live here:
+gnokii --getfile "A:\\predefgallery\\predefrecordings\\Audio000.amr"

+

Unfortunately, nothing I knew of in 2007 (when this page was first written) would play .amr files, but these days (2021) perhaps ffmpeg input.amr output.mp3 would work. You might have to use the -ar flag to specify the audio rate. I haven’t actually tried this though!

+
+
+ + +
+ + + diff --git a/blog/20070807-vim-tips.html b/blog/20070807-vim-tips.html new file mode 100644 index 0000000..e0c19a4 --- /dev/null +++ b/blog/20070807-vim-tips.html @@ -0,0 +1,56 @@ + + + + + + + + + + +Vim Tips | Colin McMillen + + + + + + + + + + +
+
+ + +
+

Vim Tips

+

Posted 2007-08-07.

+

Here’s some links about learning/mastering vim.

+

Why use vim?

+ +

Tutorials

+ +
+
+ + +
+ + + diff --git a/feed.atom b/feed.atom index 72110ac..4fd9d71 100644 --- a/feed.atom +++ b/feed.atom @@ -51,6 +51,46 @@ 2007-05-22T12:00:00-04:00 + + Gnokii Tips + https://www.mcmillen.dev/blog/20070522-gnokii-tips.html + + + Gnokii Tips +

Posted 2007-05-22, updated 2021-07-01.

+

I own a Nokia 6102i phone (provided by Cingular). gnokii is a Linux program that lets me interface with the phone. Here are some recipes:

+

File I/O

+

gnokii --getfilelist "A:\\predefgallery\\predeftones\\predefringtones\\*"

+

gnokii --putfile WiiSports.mp3 "A:\\predefgallery\\predeftones\\predefringtones\\WiiSports.mp3"

+

Ring Tones

+

Voice mail picks up in 20 seconds, so a ring tone should be about 20 seconds long.

+

The easiest way to chop an MP3 in Linux is with dd; the drawback is that you need to specify length in KB, not time. To chop an MP3 to be 200 KB long, do:

+

dd if=Mii\ Channel.mp3 of=MiiChan2.mp3 bs=1k count=200

+

Phonebook

+

To make a Phonebook.ldif file from the phone (suitable for import into Thunderbird):

+

gnokii --getphonebook ME 1 end --ldif > Phonebook.ldif

+

To add the entries in Phonebook.ldif to the phone:

+

cat Phonebook.ldif | gnokii --writephonebook -m ME --find-free --ldif

+

You can specify --overwrite instead of --find-free if you want to overwrite all the entries, but this will lose some data (e.g. speed dial, preferred numbers).

+

Multimedia

+

You can get photos like this:
+gnokii --getfile "A:\\predefgallery\\predefphotos\\Image000.jpg"
+They are 640x480 JPG files. (You can also configure the camera so that it takes pictures at 80x96.)

+

You can also store files:
+gnokii --putfile silly.jpg "A:\\predefgallery\\predefphotos\\silly.jpg"
+These show up on the phone in My Stuff/Images. The files don’t need to be any specific size; they are autoscaled. GIFs probably also work.

+

Videos live here:
+gnokii --getfile "A:\\predefgallery\\predefvideos\\Video000.3gp"
+VLC seems to be able to play .3gp files, but the audio doesn’t work.

+

Audio recordings live here:
+gnokii --getfile "A:\\predefgallery\\predefrecordings\\Audio000.amr"

+

Unfortunately, nothing I knew of in 2007 (when this page was first written) would play .amr files, but these days (2021) perhaps ffmpeg input.amr output.mp3 would work. You might have to use the -ar flag to specify the audio rate. I haven’t actually tried this though!

+ ]]> +
+ 2007-05-22T12:00:00-04:00 +
+ LaTeX Tips https://www.mcmillen.dev/blog/20070522-latex-tips.html @@ -88,6 +128,29 @@ PJQNOS+CMSY10 Type 1 yes yes no 12 0 2007-05-22T12:00:00-04:00 + + Vim Tips + https://www.mcmillen.dev/blog/20070807-vim-tips.html + + + Vim Tips +

Posted 2007-08-07.

+

Here’s some links about learning/mastering vim.

+

Why use vim?

+ +

Tutorials

+ + ]]> +
+ 2007-08-07T12:00:00-04:00 +
+ 93% of Paint Splatters are Valid Perl Programs https://www.mcmillen.dev/sigbovik/ diff --git a/sitemap.txt b/sitemap.txt index 000cb3a..0592566 100644 --- a/sitemap.txt +++ b/sitemap.txt @@ -1,5 +1,7 @@ https://www.mcmillen.dev/blog/20070522-emacs-tips.html +https://www.mcmillen.dev/blog/20070522-gnokii-tips.html https://www.mcmillen.dev/blog/20070522-latex-tips.html +https://www.mcmillen.dev/blog/20070807-vim-tips.html https://www.mcmillen.dev/blog/20190403-update.html https://www.mcmillen.dev/blog/20200209-sneak.html https://www.mcmillen.dev/index.html