Tag Archives: RAW

A SOX 1KHz Sinewave Generator Using A Batch File…

By wisecracker

Hi all…

I don’t think this has been done before but I am open to being corrected…

This batch file generates a 65536 byte binary file to give 8 seconds of pure sinewave at the earphone/speaker output(s)…

It uses ONLY a default Windows 32 bit installation, to Windows 7, except for the installation of SOX

Notepad was the _main_ editor… ;o)

Hopefully the code section does NOT corrupt the binary part which is 8 bytes in size.
If it does then let me know on here and I will post a pointer from where to grab it…
(Hmmm, just did a preview and it looks as though it does… ;o( )



REM Prevent echoing to the CLI...

REM Generate a pure 1KHz sinewave using SOX...
REM $VER: SOX_DEMO.BAT_Version_0.00.10_(C)2013_B.Walker_G0LCU.

REM This script uses standard Notepad and a default Windows 32 bit install ONLY...
REM It requires no extra installs except SOX itself...
REM The 8 bytes of binary was also generated inside the default Windows OS to windows 7... ;o)

REM Create an 8 byte binary _string_ first for 1 complete sinewave cycle...
SET "rawfile=€&&€ÙþÙ"

REM Write the 8 bytes of binary data to disk in your default TEMP folder...
ECHO | SET /P="%rawfile%" > %TEMP%.SINEWAVE.RAW

REM Append to the file in powers of 2 to 8*(2^13) = 65536 bytes...

REM The path is where a default install of SOX resides...
REM Now play the tone burst for around 8 to 9 seconds...
C:PROGRA~1SOX-14-4-1SOX -b 8 -r 8000 -e unsigned-integer -c 1 %TEMP%.SINEWAVE.RAW -d

REM 1KHz sinewave demo end...
REM ENjoy finding simple solutions to often very difficult problems...

…read more

Source: FULL ARTICLE at The UNIX and Linux Forums

digiKam Software Collection 3.1.0 (KDE Graphic Tool)


digiKam Software Collection 3.1.0
(KDE Graphic Tool)
digiKam is an advanced digital photo management application for KDE, which makes importing and organizing digital photos a “snap”. The photos can be organized in albums which can be sorted chronologically, by directory layout or by custom collections.

Tired of the directory constraints? Don’t worry, digiKam also provides tagging functionality. You tag your images which can be spread out across multiple folders and digiKam provides fast and intuitive ways to browse these tagged images. You can also add comments and rating to your images. digiKam makes use of a fast and robust database to store these meta-informations which makes adding and editing of comments and tags very reliable.

digiKam makes use of KIPI plugins for lots of added functionality. KIPI (KDE Image Plugin Interface) is an initiative to create a common plugin infrastructure for digiKam, KPhotoAlbum, Showimg, and GwenView. Its aim is to allow development of image plugins which can be shared among KDE graphical applications.

An easy to use interface is provided that enables you to connect to your camera and preview, download and/or delete your images. digiKam includes too an image editor for image corrections and manipulations whitch can be extended by plugins.

Another tool, which most artists and photographers will be familiar with, is a Light Table. This tool assists artists and photographers with reviewing their work ensuring only the highest quality. A light table will show the artist their imperfections in which they can go and touch up. Well in digiKam, the light table function provides the user a similar experience. You can import a photo, drag it onto the light table, and touch up only the areas that need it.

The digiKam Image Editor has its own plugin subsystem with some common tools e.g. red eye correction or Gamma correction. Additional plugins are provided with the main application to process advanced corrections on image like color management, noise reduction, or special effects. digiKam Image Editor support all camera RAW file formats, 16 bits color depth, Exif/Makernote/IPTC/GPS metadata, Color management, tagging/rating/comments pictures, etc.

A lots of search tools are also available to be able to find specific photo on whole collection : Time line, Calendar, Advanced Search using multiple and complex database queries (tags, rating, keywords, date,

A stand-alone image editor version named Showfoto is also available. It runs without digiKam images database support, but provides all Image Editor plugins.

See the related project page for more information:


Online documentations:



– Please, use the digiKam mailing-list for all comments:

digikam-users at kde dot org
digikam-devel at kde dot org

– Please, use KDE Bug Tracking System for Wishes, and Bugs report:
http://bugs.kde.org/buglist.cgi?product=showfoto<br …read more
Source: FULL ARTICLE at KDE Apps

Buy digiKam Recipes, Get RAW Processing with Photivo

RAW Processing with Photivo

While digiKam can handle RAW files, there are situations when you might want to use a dedicated application for processing digital negatives. There are several Linux-based RAW processing tools at your disposal, including Photivo. This powerful RAW processing tool makes a perfect companion to digiKam, and if you would like to master Photivo’s basics quickly and efficiently, the RAW Processing with Photivocan help you with that.

Continue to read

read more

…read more
Source: FULL ARTICLE at Planet KDE

Formatting data in a raw file by using another mapping file

By ravi4informatic

Hi All,

i have a requirement where i need to format the input RAW file ( which is CSV) by using another mapping file(also CSV file). basically i am getting feed file with dynamic headers by using mapping file (in that target field is mapped with source filed) i have to convert the raw file into a standard format (target format).

currently i am using ETL tool to achieve this but it’s taking long time.
i am trying to write generic shell script for this. could anyone help me in a high level view. i am new to scripting. the target file also be a CSV file.

thanks in advance


Source: FULL ARTICLE at The UNIX and Linux Forums

Use The Terminal To Test Arduino Is Working.

By wisecracker

Hi all…

(Apologies for any typos at all.)

This is a step by step _script_ to check if your Arduino is talking to your Linux or Macbook Pro computer using the Terminal…

It works on at least 3 Linux flavours and now the Macbook Pro

I hope you find it useful as a simple check for your Arduino setup…

This is issued as Public Domain.

The “Test.pde” is the code to program the Arduino with.
My Arduino programming SW is old and I am aware that the “Test.pde” script will not compile on current Arduino programming SW. I am assuming you will know what to do with it…


A basic, terminal, test sequence to check that the Arduino Diecimila board is _talking_ to your computer.

Step by step testing inside a Linux , OR, Macbook Pro Terminal usage for the USB Arduino Diecimila Board...
Issued as completely Public Domain by B.Walker, G0LCU, 2011-2013.

Common to both systems:-

1) Boot up to your Linux flavour or Macbook Pro as root, (or run in a root Terminal).
2) Temporarily disable any net access or use a stand-alone machine.
3) Plug in the USB Arduino board.
4) Open up a, (root), Terminal and clear the screen.
5) clear

Linux flavours first:-
6) Check that you have a device as ttyUSB?
IMPORTANT NOTE: Arduino boards are now detected as ttyACM? so although NOT tested this might still work...
If this is the case then replace ttyUSB? with ttyACM? below...

7) ls /dev
NOTE:- ? above will probably be 0.
8) If ttyUSB0, (to 7), appears then carry on; otherwise ignore the remainder of this text.

NOTE:- Assuming the device is ttyUSB0 from now on, change below if needed to your ttyUSBx device.
9) Place a wire link between ANALOG 0 and the 3.3 V terminals, OR,
A potentiometer wired, one end to ground, GND, the other end to +5V and the wiper to ANALOG 0...

NOTE:- 'chmod' is probably not really needed but added for fullness!
10) chmod 666 /dev/ttyUSB0

11) Set up the on board serial I/O to 9600bps and RAW data transfer for PCLinuxOS and Debian.
12) stty -F /dev/ttyUSB0 1200
13) stty -F /dev/ttyUSB0 raw

14) Now start printing characters to the screen...
15) cat < /dev/ttyUSB0
NOTE:- The wire link characters will be from about 168 to 174 decimal allowing for bit error of the Arduino ADC.

16) Remove and replace the wire link from ANALOG 0 and GND or ANALOG 0 and 5 V too, OR,
A potentiometer wired, one end to ground, GND, the other end to +5V and the wiper to ANALOG 0...
17) Press 'Ctrl-C' to stop any characters being printed to the Terminal.
18) Unplug the USB Arduino board.
19) Power down the computer IF REQUIRED.

Now the Macbook Pro:-
6) Now find the device name, mine is tty.usbserial-A7007cvs, yours will probably be much different...

7) ls /dev
8) If you have a new tty* note its name then carry on, otherwise ignore the rest of this text.
(I will use my device name for this example.)

9) Place a wire link between ANALOG 0 and the 3.3 V terminals, OR,
A potentiometer wired, one end to ground, GND, the other end to +5V and the wiper to ANALOG 0...

NOTE:- 'chmod' is probably not really needed but added for fullness!
10) chmod 666 /dev/tty.usbserial-A7007cvs

11) Now start printing characters to the screen...
(The command stty does NOT work for this on the Macnook Pro so revert to the command cu instead.)
12) cu -l /dev/tty.usbserial-A7007cvs -s 9600

13) Ctrl-C does not work so just close down the Terminal COMPLETELY.
14) Unplug tha Arduino board.
15) Power down the computer IF REQUIRED.


This is the "test.pde" code for the Arduino Diecimila board:-

/* Test.pde */
/* Using the Arduino as a DEMO single channel ADC for WinUAE. */
/* For use with AF2005 or greater. This is just demonstration code */
/* only and shows that I/O is possible through WinUAE by other means. */

/* Set up a variable 1 byte in size for basic analogue input. */
int analogue0 = 0;

void setup() {
/* open the serial port at 9600 bps. This rate is used for purely */
/* for simplicity only. */

/* Set the analogue voltage reference, DEFAULT is 5V in this case. */

void loop() {
/* Read the 10 bit analogue voltage on analogue input 0. */
analogue0 = analogRead(0);
/* Convert to a byte value by dividing by 4. */
analogue0 = analogue0/4;

/* Send to the Serial Port the byte value. */
Serial.print(analogue0, BYTE);

/* Delay 500 milliseconds before taking the next reading. */


Enjoy finding simple solutions to often very difficult problems...

Bazza, G0LCU...

Source: FULL ARTICLE at The UNIX and Linux Forums