Posterous
Czar is using Posterous to post everything online. Shouldn't you?
Smallworlds_thumb
 

Czarism.com

The Posterous of @Czarphanguye

Palm Pre Keyboard Shortcuts

This is a list of all the keyboard shortcut I have found on the Pre:

Screenshot: Orange button + Shift(or Symbol) + P -> will put screenshot in photos under screencaptures

Deleting app from launcher: hold down Orange button and tap app icon

Deleting Emails/Drafts: Flick the email to right/left, may ask deletion confirmation

Going back/forward in text: hold down Orange button and drag finger to where you want to go

Delete text fast (1 word at a time): hold down shift key then press delete

Highlight text: hold down shift and drag finger over text

Cut/Copy/Paste: highlight text with above method, place finger in gesture area and press X/C/V respectively

Tab between fields (For Pre config only, NOT browser): press enter, will take you to next field

Dial phone # with a pause: enter p or t within the phone # to obtain a pause (ex: 1(800)123-4567p1234)

Page length scrolling (only for browser in landscape mode): use the right/top gesture area to scroll 1 page length up/down

Open link in new card: hold Orange + Space Bar + Press link

Take a picture: press space bar while in camera mode

Silence/Ignore call: press power button once for silence, twice for ignore

Num/Caps Lock: Hit the Orange/Shift button twice respectively

Square root, %, etc.. on Calculator: Press space bar to toggle between buttons

Soft Rest: Orange + Symbol + R

Reverse Logistics Support: dial ##786#

Debug Parameters: dial ##33284

EVDO Mode: dial ##3836#

And I think these are all shortcuts but you can never be sure.

Filed under  //   palmpre   shortcuts   webos  
Posted September 19, 2009 by Czar Phanguye 
// 0 Comments

Change #palmpre (#webos) Browser page icons in /var/luna/data/browser/icons

The images are in /var/luna/data/browser/icons . For the "built-in" bookmarks, there are 3 files each:
  • bookmark-icon-{name}.png - 32x32 px icon you see in the bookmark list
  • {name}-bookmark-icon.png - 64x64 px icon that doesn't seem to appear anywhere
  • {name}-bookmark-thumbnail.png - 90x120 px thumbnail that appears when you start the browser

I'm not happy with the way the Pre tries to make images for you, so I created some of my own. (I also use a better naming convention for the files).

To add your own images:

1. Copy the default bookmark images from /var/luna/data/browser/images to you PC (use WinSCP or copy them to /media/internal and then use the USB cable). They make good templates for creating new images.

2. Create some new images. Here are mine for m.cnn.com:


(cnn-icon32.png)


(cnn-icon64.png)


(cnn-thumbnail.png)

3. Copy the images to your Pre under /var/luna/data/browser/images .

4. Become root and make your filesystem read-write:

Code:
$ sudo -i

# rootfs_open -w
5. Open the bookmark database with the sqlite utility:

Code:
# /usr/bin/sqlite3 /var/palm/data/file_.usr.palm.applications.com.palm.app.browser_0/0000000000000004.db
6. Add a bookmark, save, and exit sqlite:

Code:
sqlite> begin transaction;

sqlite> insert into bookmarks (url,title,defaultEntry,iconFile32,iconFile64,thumbnailFile)
 values ('http://m.cnn.com','CNN',1,'/var/luna/data/browser/icons/cnn-icon32.png','/var/luna/data/browser/icons/cnn-icon64.png','/var/luna/data/browser/icons/cnn-thumbnail.png');

sqlite> commit;

sqlite> .exit
Note: the bookmarks are keyed on title, so if you already have a bookmark titled "CNN", the above code will simply update the existing bookmark.


To view all you bookmarks in the database:

Code:
sqlite> .header on

sqlite> select * from bookmarks;
Columns:
  • id - numeric ID
  • url - URL
  • title - Title
  • date - numeric representing the date-time the bookmark was added
  • parent - ?
  • idx - numeric controlling sort order of the bookmarks (when two or more bookmarks have the same idx value, the browser sorts on title)
  • defaultEntry - numeric: 0 for bookmarks you add through the browser, 1 for "built-in" bookmarks (Pre won't mess with the images)
  • iconFile32 - path to the 32x32 px icon
  • iconFile64 - path to the 64x64 px icon
  • visitCount - number of times you selected the bookmark
  • thumbnameFile - path to the thumnail
  • lastVisited - numeric representing the date-time last time you selected the bookmark
  • startIdx - ?

Filed under  //   cli   palmpre   webos  
Posted September 9, 2009 by Czar Phanguye 
// 0 Comments

Changing the #PalmPre dialer background from the meh green to a nice grey... (re: #WebOS Internals)

From WebOS Internals

Editing the Dialer Background

This section is for info about changing the background of the Dialer Application

It is still in development, so please correct any errors.

We can change that green background of the dialer screen pretty easily. We just need to change three files and reboot the Pre.

Since this is a simple change that several people may want to accomplish, I'm going to be very granular about how to perform this task.

This does require access to the Pre's operating system. Please follow these steps first. Then open a SSH window to the Pre (either using "ssh -p 222 LOGIN_NAME@PALM_PRE_IP" or use a tool like PuTTY in Windows) You can find more information about this in the accessing linux page or by searching Google.

I started with a simple change because I don't have the Photoshop skills needed, I just made the current images black and white using Paint.net. Here are the steps I took:

Procedure

Open the SSH session and we'll open this directory (cd - change directory) and look at it's contents (ls - listing).

cd /usr/palm/applications/com.palm.app.phone/images/
ls

You'll see a long list of files that are in this directory, we'll only use three today, but more editing may come in the future. We'll backup the current image first incase we need to revert back to them (cp - copy).

cp backdrop-phone.png backdrop-phone.png.old
cp backdrop-phone-scroll-fade.png backdrop-phone-scroll-fade.png.old
cp list-section-line.png list-section-line.png.old

If we do another listing (ls) we'll see the three files we just copied to make backups.

Next we'll need to copy (cp) the files to the location of the USB drive so that we'll be able to edit these files:

cp /usr/palm/applications/com.palm.app.phone/images/backdrop-phone.png /media/internal/
cp /usr/palm/applications/com.palm.app.phone/images/backdrop-phone-scroll-fade.png /media/internal/
cp /usr/palm/applications/com.palm.app.phone/images/list-section-line.png /media/internal/

Now click on the USB icon on the Pre's notification area, switch to USB Storage mode.

You can now copy the files off of the Pre and edit them any way you want, just make sure they have the same properties as the orig (transparency, size, file extention, etc). I didn't create these image below, they are just edited from the Palm Pre. You can use any 360 x 420 PNG to achieve these results.

Once they are edit to your liking, copy the files back to the Pre in USB mode with the same file name.

Eject your Pre from your computer, wait for Wifi to log back into your network, and SSH into the Pre again. Your old window probably timed out by now so you can close it.

Last step

Now we'll need to get the files (all 3 if you edited them) back to the correct location, so we'll use the copy (cp) command to do this.

cp /media/internal/backdrop-phone.png /usr/palm/applications/com.palm.app.phone/images/
cp /media/internal/backdrop-phone-scroll-fade.png /usr/palm/applications/com.palm.app.phone/images/
cp /media/internal/list-section-line.png /usr/palm/applications/com.palm.app.phone/images/

Once this is done exit the SSH session (type exit) and reboot the Pre from the Device Info menu. When it comes back up you should see your new background on the dialpad screen.

If you are going to use the files I edited you'll just need to copy them to the USB drive, and then complete the last step.

Here are my edits:

Thanks to desairs at the PreCentral forums for pointing me in the correct direction.

If you want to use these modified images, you can download them directly to the directory and replace the files you backed up with cp.

wget 
-O /usr/palm/applications/com.palm.app.phone/images/backdrop-phone.png wget
-O /usr/palm/applications/com.palm.app.phone/images/backdrop-phone-scroll-fade.png wget
-O /usr/palm/applications/com.palm.app.phone/images/list-section-line.png

Then to reload you can try the following command instead of a reboot:

pkill LunaSysMgr

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License

.

Filed under  //   palmpre   webos   webos-internals  
Posted August 18, 2009 by Czar Phanguye 
// 0 Comments

What's In Your #palmpre Quick Launch Bar? Mine: Web, Timer, Camera, & gTasks

Filed under  //   Camera   gTaks   GUI   palmpre   Stopwatch   Timer   Web   webos  
Posted August 11, 2009 by Czar Phanguye 
// 0 Comments

df on the #palmpre after installing #optware

Filed under  //   optware   palmpre   webos  
Posted July 23, 2009 by Czar Phanguye 
// 0 Comments

df on the #palmpre before installing #optware

Filed under  //   optware   palmpre   webos  
Posted July 23, 2009 by Czar Phanguye 
// 0 Comments