diff --git a/docs/userguide/en/applications.html b/docs/userguide/en/applications.html index b9a40dd26b..300f7a0f6b 100644 --- a/docs/userguide/en/applications.html +++ b/docs/userguide/en/applications.html @@ -70,7 +70,7 @@ Otherwise, uninstalling is simply done by deleting the application's folder.

iconCDPlayer  A player for audio CDs. [still missing] iconCodyCam  - A tool to regularly upload images from a webcam to a server. [still missing] + A tool to regularly upload images from a webcam to a server. iconDeskCalc  A calculator. iconDiskProbe  diff --git a/docs/userguide/en/applications/apps-codycam.html b/docs/userguide/en/applications/apps-codycam.html index 292a0f0fbd..c7915fa2d5 100644 --- a/docs/userguide/en/applications/apps-codycam.html +++ b/docs/userguide/en/applications/apps-codycam.html @@ -41,7 +41,7 @@ width="64" height="64" />CodyCam - +
Deskbar:Applications
Location:/boot/beos/apps/CodyCam
Settings:~/config/settings/???
Settings:~/config/settings/codycam

With CodyCam you take pictures at a specified interval from a connected webcam or any other video-in device and save it via FTP.

diff --git a/docs/userguide/en/applications/apps-deskcalc.html b/docs/userguide/en/applications/apps-deskcalc.html index b902128d98..31949434d7 100644 --- a/docs/userguide/en/applications/apps-deskcalc.html +++ b/docs/userguide/en/applications/apps-deskcalc.html @@ -49,22 +49,26 @@ width="64" height="64" />DeskCalc
  • DeskCalc understands much more than its simple keypad suggests.
    Besides the operators +, -, *, /, %, ^ and the constants pi and e the following math functions are supported:
    acos, asin, atan, atan2, ceil, cos, cosh, exp, floor, log, log10, pow, sin, sinh, sqrt, tan, tanh.

  • -
  • DeskCalc can be used in Terminal. Just put the expression in double quotes, like this:

    -
    ~> DeskCalc "sin(45)*(cos(12)+3.45)"
    -3.6536554673202546181795194727005826674359494735820338441084848
  • -
  • Right-clicking offers a menu to open a simple options dialog:

    +
  • When it comes to user input, DeskCalc is quite tolerant:
    +/, :, \ are all interpreted as division operators,
    +*, x are valid symbols for multiplication.
    +Also, be aware that . and , are both considered floating points, which means you mustn't use them as 1000 separators.

  • +
  • Right-clicking offers these options:

    Auto Num Lockautomatically activates the number block when launching DeskCalc
    Audio Feedbackplays a sound when showing a result
    Show Keypadhides the keypad when deactivated
  • -
  • You can resize the calculator until it fits your needs and then put it as Replicant onto the Desktop via drag&drop of the symbol in the bottom right corner. Make sure "Show Replicants" is activated in the Deskbar.

  • -
  • The keypad can be colored with a drag&drop from any color well, e.g. from Icon-O-Matic.

  • +
  • You can resize the calculator until it fits your needs and then put it as Replicant onto the Desktop via drag&drop of the symbol in the bottom right corner. Make sure Show Replicants is activated in the Deskbar.

  • +
  • The keypad can be colored with a drag&drop from any color well, e.g. from Icon-O-Matic.

  • You can move up and down in a history of past calculations with the CURSOR-UP/DOWN keys.

  • You can select DeskCalc's contents and drag&drop it into any application. Or you drop it into a Tracker window or onto the Desktop and a text file with that clipping is created there.

    Even better, the reverse is also possible:
    Create clippings as described at various stages of your calculation and go back to them by drag&dropping them back into DeskCalc.
    Or you drag&drop a calculation directly out of an email onto DeskCalc.

  • +
  • DeskCalc can be used in Terminal. Just put the expression in double quotes, like this:

    +
    ~> DeskCalc "sin(45)*(cos(12)+3.45)"
    +3.6536554673202546181795194727005826674359494735820338441084848
  • diff --git a/docs/userguide/en/applications/apps-terminal.html b/docs/userguide/en/applications/apps-terminal.html index b3f5b6c699..5304555dd1 100644 --- a/docs/userguide/en/applications/apps-terminal.html +++ b/docs/userguide/en/applications/apps-terminal.html @@ -5,7 +5,7 @@ + + + + Bash and Scripting + + + + + +
    +

    + Contents +     + Previous: Preferences +

    +
    + +
    + +

    "Scripting" is the technique of automating procedures by stringing together commands and saving it all as text files, so called "scripts". Every time you run such a script, the commands are processed one after the other just like they would if you entered them into the Terminal by hand.
    +Scripts can range from simply executing a few commands in a specific order to sophisticated pieces of code that solve complex tasks.

    + +

    The Bash

    +

    Since scripts rely naturally a lot on the shell they are interpreted by, you should first familiarize yourself with the BASH that's used by Haiku. There are many resources online as it's a widely used shell. One nice document is Johan Jansson's Introduction to bash - a tutorial for bash under BeOS.

    + +

    The Scripting Bible

    +

    After you've learned a few basics about working in the shell, it's time to slowly ease yourself into the world of scripting. Again, you'll find loads of tutorials and reference material online as well as in bookstores. A very nice introduction that's practically tailor-made for Haiku is the online available Scripting Chapter (PDF, 900kb) of Scot Hacker's BeOS Bible.

    + +

    Scripts in Haiku

    +

    In Haiku, the system makes of course also use of scripting. Booting and shutting down are typical scripting procedures. These defined sequences can be augmented by the user with certain user scripts.
    +If they don't exist already, you'll have to create the needed files yourself. Otherwise simply add your commands where in the process you want them to be executed.

    + +

    The UserBootscript

    +

    /boot/home/config/boot/UserBootscript will be executed after the system has finished its boot process. For example, you could launch a number of programs that would then be automatically started on every boot up:

    +
    # Start LaunchBox
    +/boot/beos/apps/LaunchBox &
    +
    +# Start Workspaces Applet
    +/boot/beos/apps/Workspaces &
    +

    Remember to end a command with an "&" to start it as a background process, or the script will halt until that command has finished (in this case: the launched app was closed again).

    + +

    The UserShutdownScript

    +

    /boot/home/config/boot/UserShutdownScript will be executed as the first step in the shutdown process. If the script returns a non-zero exit status, the shutdown is aborted.

    + +

    The UserShutdownFinishScript

    +

    /boot/home/config/boot/UserShutdownFinishScript is executed as the last step in the shutdown process. Note, that most parts of the system have terminated by the time this script is executed.

    + + +
    + +
    +

    + Contents +     + Previous: Preferences +

    +
    + + + diff --git a/docs/userguide/en/contents.html b/docs/userguide/en/contents.html index 3c0d21dfd0..8a671a56d0 100644 --- a/docs/userguide/en/contents.html +++ b/docs/userguide/en/contents.html @@ -5,7 +5,7 @@ + Bash and Scripting + Learn of some interesting scripts in the system and about online resources for working in the shell and scripting. diff --git a/docs/userguide/en/filesystem-layout.html b/docs/userguide/en/filesystem-layout.html index 7416e9c975..623929abd5 100644 --- a/docs/userguide/en/filesystem-layout.html +++ b/docs/userguide/en/filesystem-layout.html @@ -89,7 +89,7 @@ If you do want to know more about how things tick in Haiku, have a look at this Complements the system's /boot/beos/bin/ folder and holds all your command line programs. ~/config/boot/  -This folder holds the UserBootscript which is executed after the system has booted up and the UserShutdownscript which will be executed before the system does all the necessary things to safely shut down. +This folder is the place for User Scripts that are executed before or after the system boots up or shuts down. ~/config/fonts/  Simply copy a TrueType or Postscript font into this folder and its usable right away. diff --git a/docs/userguide/en/tracker.html b/docs/userguide/en/tracker.html index f9f796c914..73f95b473f 100644 --- a/docs/userguide/en/tracker.html +++ b/docs/userguide/en/tracker.html @@ -75,6 +75,7 @@ This is also true for keyboard navigation. For more on that, see topic Tracker preferences