Tag Archives: SQL

Calling a remote shell script and applying a DB dump

By daveu7

Hi All,

I have a requirement to call a remote shell script to apply a db dump. The remote shell script will reside in the /root/admin/bin directory and the database dump will be copied by the script from another area to /root/admin/var.

the script will then invoke mysql to apply the db dump.

1). Can I setup a ssh public/private key against a root user on the remote server or do I have a to create another user to own the script on the remote area as well as a directory to hold the dump also own by the same user.

I say this because I know that it is not possible to loggin to a server as root it has to be another user eg. fbloggs

2). In my remote shell I have various SQL operations as part of the dump is there a way to test the success of all SQL operations in a shell script sql block rather than applying a test against each individual SQL operation.

Many thanks

Source: FULL ARTICLE at The UNIX and Linux Forums

Marc Deslauriers: My Mythbuntu setup

I watch a lot of TV. Although I would really like to get rid of my satellite provider and switch to streaming the shows I like off of the Internet, living in Canada means a lot of the streaming video services aren’t available, and even if they were, the bandwidth required to watch them would bust my download quota.

I’m also really picky about video compression, and some of the streaming services compress so much that watching their shows on the 55” TV I have in my living room is painful. Also, for some reason, half the shows and movies on Netflix have audio sync issues on my setup.

MythTV plays a large part in my household. All shows I watch are scheduled and recorded in HD off my satellite provider. While I wait for Ubuntu TV to take shape, I’ve recently upgraded my MythTV setup to Mythbuntu 12.04.

Backend

My MythTV backend is running on an HP Pavilion a4310f, with 4GB or ram, and a 1TB HDD. It’s hooked up to a Hauppauge HD-PVR which records the video stream coming from my satellite provider’s box. I have set the satellite provider’s box to output 720p, as that gives me reasonable file sizes with an acceptable picture quality. Video is recorded over component cables, and sound is recorded in 5.1 over a TOSLINK cable. I use the IR blaster included with the HD-PVR to switch stations on the satellite box.

Instructions for setting up the HD-PVR in MythTV can be found in the wiki. This pretty much works out of the box with Mythbuntu. Although I originally had stability problems with the HD-PVR where every couple of months it would switch to recording audio at 25fps resulting in audio drift, a firmware upgrade to version 1.6.29353 has made it rock solid. I haven’t risked upgrading to the most recent 1.7.x firmware as I don’t currently have any issues.

You can obtain the script I use to change channels, my lircd configuration files, and the rc.local file I use to set the audio input here.

To set the picture control values to reasonable settings, I change the defaults for all channels in the MythTV database by running the following SQL command:

update channel set contrast=16384,brightness=32768,colour=16384,hue=3840;

I schedule programs to record using the MythTV web interface, and recorded shows are streamed in HD over the built-in UPnP server to any one of the three Playstation 3s I have around the house which also serve as Blu-ray players. I also have a dedicated MythTV frontend in the living room, which allows me to view TV shows without commercial interruption, and to delete shows once they’ve been watched. These are all connected using the wired gigabit network I installed during house construction, preventing the problems associated with streaming HD video over a wireless network.

Frontend

In the living room, which is my main TV viewing area, a dedicated MythTV frontend is used. I am using a Jetway HBJC600C99-352W-BW mini computer. I chose that model because it came with a built-in remote control, which allows me to power it on and control it from my Sony RMVL610 universal learning remote. It also features Nvidia Ion2 graphics, which enables me to use VDPAU with MythTV in order get the performance necessary to decode HD video.

I added a 1GB SO-DIMM to it, along with a cheap 32GB KingSpec SSD. It is also running Mythbuntu 12.04, and is hooked up to the gigabit wired network.

Getting the remote to work was a bit of a challenge. The device has a bogus HID report descriptor, resulting in a compatibility issue with the kernel HID drivers. Before a kernel fix was available, I discovered an application called “hid-mapper”, which allows converting any HID event into a keypress event. This is what I use on my frontend. I have packaged hid-mapper, along with some fixes, and all of the configuration scripts necessary to get it working on my frontend in my PPA.

If you do use my configuration files, please be aware that since I use a universal remote, I opted to make use of all buttons on the original remote without any regard to their placement or function. If you intend on using the original remote, you may want to reconfigure the button mappings to your liking.
Source: FULL ARTICLE at Planet Ubuntu

Order/rename files in a tar in a specific order

By callag11

I have a .ksh script that creates for the end user a number of .txt files (say 20) from an SQL query using concurrent processes. Each file creation varies in run time so they have varying timestamps according to when they were created.

The files are copied to a temp dir and archived to a tar file for distribution. When extracted by the end user the files are listed alphabetically, but the requirement is for them to be listed in the same order as the request was submitted. This list is in random order of when the requests are received.

Here’s the part of my script that creates a file with the correct order and name of the files (order in calls.txt is correct but the files need renaming):

Code:


cat calls.txt | sed -e 's/ /_/g' | sed 's/^/cdr_/g' | sed 's/$/.log/' > calls2.txt


From there the tar command reads:

Code:


tar -cvf archivefilename.tar `cat ../calls2.txt`


This tar is then gzipped for emailing. When sent the files are listed in the correct order within the tar as per the calls2.txt listing, however when extracted by the end user the files default to alphabetical order. The timestamp is of no use to reorder.

The requirement is to either modify the name (add a number prefix?) or the timestamp, so that it reflects the same order as calls2.txt.

I’ve searched and seen solutions for similar problems, but nothing for this specific situation. Any help is appreciated.

Source: FULL ARTICLE at The UNIX and Linux Forums

Nepomuk Cleaner

Nepomuk has a unique problem of maintaining an RDF store. Unlike traditional SQL based stores, RDF offers a very loose schema, which is a HUGE advantage. Unfortunately all of the current RDF stores do not support any form of schema enforcement. It’s up to the client code to make sure that the data being pushed is valid.

This has resulted in a number of problems such as strings being stored where an integer should go.

With the KDE Workspace 4.7 release, we started employing our own form of schema enforcement in the Nepomuk Storage Service, but the old incorrect data still remains. Also, as Nepomuk has evolved as a project, we have found better ways to store data. Since the schemas are so loose, we could easily store both the old and the new data without any problems on the database level. This obviously results in more complex client code which has to handle both legacy and new data.

For this release, we decided to clean up the code to a certain extent and stop supporting some of the legacy data. We also decided to ship a very basic application called the “Nepomuk Cleaner“.

/images/nepomuk-cleaner.png

This application is responsible to port any legacy data, clear up incorrect data, and merge duplicate data. We recommend that all users run it at least once. It will result in a performance upgrade of all areas of Nepomuk, including a significant impact in the indexing speed of emails.

With the 4.11 release, we’re planning to improve the interface, add more cleaning jobs, and make running this application mandatory. That way we can safely remove all the legacy code paths.

Source: FULL ARTICLE at Planet KDE

Loop in bash file for mysql

By davidm123SED

Hi,
I’m having problems with a script which some of you helped me with last week. It’s a script to check the status of orders in an SQL database, and if the count(*) is zero, then the script stops. If it’s non-zero, the script echos the result to a file and then in cron, I cat the file and mail it.

First thing first, this script is pig-ugly with all of the echos in there, so I need to tidy that up, but more important is the fact that the second part – from where I’ve inserted ## second part — just constantly returns the same order code.

Oh, and it loops.

What a mess.

Can someone help me ?

Thanks.


#!/bin/sh

## get date

today=`date +”%d-%m-%Y-%H-%S”`

if [ -f /root/extrac.txt ]; then
/bin/rm /root/extrac.txt
fi

#### check orders

orderStatus=$(/usr/bin/mysql -N -B mybase -e ‘SELECT COUNT(*) FROM orders as o JOIN users as u ON o.userpk=u.pk WHERE o.createdts BETWEEN (now() – INTERVAL 1 day) AND (now() – INTERVAL 4 hour) AND o.p_omsstate=1 AND u.name != “wotsit” AND u.p_username NOT LIKE “e-mail_address@domain.co.uk”;’)

/bin/echo “” > /root/extrac.txt
/bin/echo “The date is $today” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “We have verified the number of orders still in ‘state’ state” >> /root/extrac.txt
/bin/echo “after four hours.” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt

if [ $orderStatus != “0” ]; then
/bin/echo “” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “The number of orders in this state is not zero.” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “As such, the web order numbers are echoed below : ” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt

## second part
orderStatus=$(/usr/bin/mysql -N -B mybase -e ‘SELECT Code FROM orders as o JOIN users as u ON o.userpk=u.pk WHERE o.createdts BETWEEN (now() – INTERVAL 1 day) AND (now() – INTERVAL 4 hour) AND o.p_omsstate=1 AND u.name != “wotsit” AND u.p_username NOT LIKE “e-mail_address@domain.co.uk”;’)

while [ $result ]
do
/bin/echo “” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “$result” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
done

exit 0
fi

/bin/echo “” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “The number of orders is zero, and as such, no web order numbers are available” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt

/bin/echo “Any questions, please e-mail me@myaddress.com” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt
/bin/echo “————————————————————-” >> /root/extrac.txt
/bin/echo “” >> /root/extrac.txt

Source: FULL ARTICLE at The UNIX and Linux Forums

Remove white spaces from flat file generated from Oracle table…

By mgpatil31

I have to export data from table into flat file with | delimited. In the ksh file, I am adding below to do this activity.
$DBSTRING contains the sqlplus command and $SQL_STRING contains the SQL query. File is created properly with the data as per SQL command. I am getting white spaces in the columns with its size. I dont want these extra spaces and reduce the size of file. How we can do it without using trim command?
RETVAL=`$DBSTRING <<EOF
SET HEADING OFF
SET SPACE 0
SET PAGESIZE 0
SET PAGESIZE 100
SET LINESIZE 9999 WRAP ON
SET COLSEP “|”
SET FEEDBACK OFF
SET TRIMSPOOL ON
SET TRIMOUT ON
SET TAB OFF
SPOOL $OUTPUTFILE
$SQL_STRING
SPOOL OFF
EXIT;
EOF`

Thanks in advance.

Source: FULL ARTICLE at The UNIX and Linux Forums

Why execution is different from orginal bash registry$database?

By jediwannabe

Hi all,

here’s my script

Code:


#!/bin/ksh
if [ -z "$DB_CREATE_PATH" ]
then
export DB_CREATE_PATH=`pwd`
fi

echo
echo "********************--Menu--*****************************"
echo "*** "
echo "*** 1. Pre-Upgrade Steps "
echo "*** 7. Exit "

read a

if [ $a == 1 ]
then

echo "1 Pre-Upgrade Steps"
${ORACLE_HOME}/bin/sqlplus /nolog <<!EOF
set termout on
set echo on
set time on

connect / as SYSDBA;

column timecol new_value timestamp
column spool_extension new_value suffix
SELECT to_char(sysdate,'dd_Mon_yyyy_hhmi') timecol,'.log' spool_extension FROM
sys.dual;
column output new_value dbname
SELECT value || '_' output FROM v$parameter WHERE name = 'db_name';

--step 6 step 7 start
spool logs/tz_version_nls_char_&&dbname&&timestamp&&suffix
select TZ_VERSION from registry$database;
select value from NLS_DATABASE_PARAMETERS where parameter = 'NLS_NCHAR_CHARACTERSET';
spool off
--step 6 step 7 end

exit;
!EOF
fi


when I examine the output code it is as follow

Code:

09:30:41 SQL> select TZ_VERSION from registry;
select TZ_VERSION from registry
*
ERROR at line 1:
ORA-00942: table or view does not exist

09:30:41 SQL> select value from NLS_DATABASE_PARAMETERS where parameter = 'NLS_NCHAR_CHARACTERSET';

VALUE
-----------------------------------------------------------------------------------------------------------------------------
-------------------------
AL16UTF16

1 row selected.

09:30:41 SQL> spool off


can someone tell me how do I make sure that registry$database is queried instead of registry?

thanks

Source: FULL ARTICLE at The UNIX and Linux Forums

SQL block in a Shell Script connecting to a local and remote DB

By daveu7

Hi All,

In a Shell scriipt with a SQL block I want to issue a query against a local DB and a remote DB on a remote server. The shell script is running locally.
This is how I connect to the local server. But I want the query to reference remote table in the join. Question can I specify a localServer.DB and RemoteServerDB in the connection command.


${MYSQLDIR}/mysql -u ${MYusername} --password=${MYAPASSWD} ${MYSQLDB} << SQL
SELECT col1
FROM localDB.tabl1,
remoteServer.RemoteDB.tab1
WHERE ......with a join

SQL


Many thanks for your help.

Dave

Moderator’s Comments:
Please use code tags next time for your code and data.

Source: FULL ARTICLE at The UNIX and Linux Forums

Mario Limonciello: Multi-homed MythTV backend

This is the first of my non OpenWRT related posts.

I have a peculiar situation.  I have two houses that I split my life between.  I don’t want to pay for cable in both houses, but I also want access to some of the TV shows that you only get newer episodes on cable and not via Netflix/Hulu/Amazon.

So to solve this, I have set up MythTV in both houses.  Both setups run Mythbuntu 12.04.1 (www.mythbuntu.org).  In the house without cable I have a Silicondust HD Homerun.

The HD Homerun is set to record OTA content exclusively.  I get all the basic TV networks this way in that house.

In the second house I have a Silicondust HD Homerun Prime.  I’m fortunate that in that house I have Comcast, which is one of the more friendly companies with regard to copy protection.  I’m able to record pretty much everything except the premium networks like HBO and Showtime.
 

In the second house I duplicate all the OTA recording schedules but also schedule things on the other stations I care about.

Secondary House

Now to get the recordings from the second house to the first house, I had to setup a collection of scripts that run in staggered cron jobs.  The first one is on the secondary house.  I first determined which channel ID’s I needed to export from.  This can be found by looking through mythweb or by examining the database with a tool like phpmyadmin.  Look for ‘chanid’ in the ‘channels’ table.

Once I had those channels figured out I created this script.  On each daily run it will find all the recordings who’s starttime happened to be “today”.  It exports all relevant SQL data about that recording into a flat SQL file that can be imported on the primary house.

Next it creates a list of recordings that will need to be synced over to the primary house.  This list is based upon the last successful sync date from the primary house.  It only syncs all recordings between the lastrun date and “tomorrow”.  This sets it up so that if for some reason the primary backend doesn’t sync a day it will still work.  Also it’s important to sync only a handful of days because the autoexpire will be happening at different rates on the two backends.

I store all this content in the directory /var/lib/mythtv/exported-sql

sudo mkdir -p /var/lib/mythtv/exported-sql 

sudo chown mythtv:mythtv /var/lib/mythtv/exported-sql

/home/mythtv/export.sh 

#!/bin/sh

#export SQL
chanid=”2657 2659 2622″
DIRECTORY=/var/lib/mythtv/exported-sql/
BIGGEST_DATE=`find $DIRECTORY -maxdepth 1 -name ‘*.sql’ | sort -r | head -1 | sed ‘s,.*exported-,,; s,.sql,,’`
for chan in $chanid;
do
[ -n “$where” ] && where=”$where or”
[ -n “$BIGGEST_DATE” ] && date=” and starttime > ‘$BIGGEST_DATE 00:00:00′”
where=”$where (chanid=’$chan’$date)”
done
CONFIG=$HOME/.mythtv/config.xml
DATE=`date ‘+%F’`
if [ “$DATE” = “$BIGGEST_DATE” ]; then
echo “Already ran today, not running SQL generation again”
else
db=`xpath  -q -e ‘string(//DatabaseName)’ $CONFIG 2>/dev/null`
user=`xpath  -q -e ‘string(//UserName)’ $CONFIG 2>/dev/null`
pass=`xpath  -q -e ‘string(//Password)’ $CONFIG 2>/dev/null`
host=`xpath  -q -e ‘string(//Host)’ $CONFIG 2>/dev/null`
fname=/var/lib/mythtv/exported-sql/exported-$DATE.sql
mysqldump -h$host -u$user -p$pass $db recorded recordedseek recordedrating recordedprogram recordedmarkup recordedcredits –where=”$where” –no-create-db –no-create-info > $fname
fi


#generate a recordings list
lastrun=/home/mythtv/lastrun
tomorrow=$(date –date=”tomorrow” ‘+%Y%m%d’)
if [ -f $lastrun ]; then
        tmp=$(cat $lastrun)
else
        tmp=$tomorrow
fi
while [ “$tmp” != “$tomorrow” ]
do
        test_dates=”$test_dates $tmp”
        tmp=$(date –date=”1 day $tmp” ‘+%Y%m%d’)
done
test_dates=”$test_dates $tomorrow”
for date in $test_dates;
do
        for chan in $chanid;
        do
                from=”$from /var/lib/mythtv/recordings/${chan}_${date}*”
        done
done
ls $from 2>/dev/null | tee /var/lib/mythtv/exported-sql/recordings-list
Next I set up rsync to export my /var/lib/mythtv directory (read only) and my lastrun successful (write only).

/etc/rsyncd.conf

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[mythtv]
comment = mythtv
path = /var/lib/mythtv
read only = yes
list = yes
uid = nobody
gid = nogroup
auth users = rsync
secrets file = /etc/rsyncd.secrets

[lastrun]
comment = last rsync run
path = /home/mythtv/
write only = yes
read only = no
list = no
uid = mythtv
gid = mythtv
auth users = rsync
secrets file = /etc/rsyncd.secrets
Last thing to do on the secondary house is to set up the crontab to run at night.  I set it for 11:05 PM every day.  It should only take a 10-15 seconds to run.
5 23 * * * /home/mythtv/export.sh
Because of the way this all works, I decide to leave my secondary house backend on all the time.  

Primary House

Now in my primary house I need to sync recordings, SQL data, and then update the last successful run at the secondary house.

/home/mythtv/import.sh

#!/bin/sh

domain=rsync@address
sql_directory=/home/mythtv/sql
recordings_directory=/var/lib/mythtv/recordings
password_file=/home/mythtv/password-file
lastrun=/home/mythtv/lastrun

sync_recordings()
{
today=$(date ‘+%Y%m%d’)
from=$(cat $sql_directory/recordings-list | sed “s,/var/lib/mythtv,$domain::mythtv,”)
RET=30
while [ $RET -eq 30 ]; do
#rsync -avz –partial –timeout 120 –progress $from –password-file=password-file $recordings_directory
rsync -av –partial –timeout 120 –progress $from –password-file=$password_file $recordings_directory
RET=$?
done
echo “rsync return code: $?”
[ $RET -ne 0 ] && exit 1
echo “$today” > lastrun
rsync -avz –password-file=password-file lastrun $domain::lastrun/
}

sync_sql()
{
rsync -avz $domain::mythtv/exported-sql/* –password-file=$password_file $sql_directory
}

insert_sql()
{
CONFIG=$HOME/.mythtv/config.xml
db=`xpath  -q -e ‘string(//DatabaseName)’ $CONFIG 2>/dev/null`
user=`xpath  -q -e ‘string(//UserName)’ $CONFIG 2>/dev/null`
pass=`xpath  -q -e ‘string(//Password)’ $CONFIG 2>/dev/null`
host=`xpath  -q -e ‘string(//Host)’ $CONFIG 2>/dev/null`
old_host=supermario
new_host=kingkoopa
for fname in $(find $sql_directory -maxdepth 1 -name ‘*.sql’);
do
if [ ! -f ${fname}.imported ]; then
cat $fname | sed “s,${old_host},${new_host},g; s,INSERT INTO, INSERT IGNORE INTO,g” > ${fname}.imported
mysql –host=$host –user=$user -p$pass $db < ${fname}.imported
fi
done
}

suspend()
{
sudo /usr/local/bin/setwakeup.sh $(date –date=’18:00′ ‘+%s’)
sudo pm-suspend
}

mythfilldatabase
sync_sql
sync_recordings
insert_sql
#suspend
I’m careful about the order I do things.  The SQL has to get inserted last in case for some reason the recordings fail to sync or don’t all sync while i’m watching.
I currently don’t suspend afterwards due to some instability on my system, but I have been experimenting with that too.  If S3 is reliable you can configure the setup to suspend after the sync is done and wake up next time you need to use it or record from it.
I set the cronjob to run at midnight every day on the primary backend.
0 0 * * * /home/mythtv/import.sh

Source: FULL ARTICLE at Planet Ubuntu

Update Ruby now before it goes off the Rails

Do you use Ruby on Rails? If so, it’s time to update. Now.

Ruby on Rails is an open source Web application framework built to use with the Ruby programming language. Ruby on Rails—or just Rails—gives Web developers the ability to gather information from Web servers, or query a database. Rails is used across an estimated quarter of a million websites ranging from ecommerce to cloud storage.

Rails contains critical vulnerabilities that are being targeted by attackers. The mass assignments vulnerability is the Rails equivalent of SQL injection, and exposes Rails to exploits.

Update Ruby now to patch extremely critical vulnerabilities.

Lamar Bailey, director of security research and development for nCircle, explained, “All unpatched versions of Ruby on Rails contain critical vulnerabilities involving parameter parsing and attackers can use these bugs to execute code or launch SQL injection attacks.”

To read this article in full or to leave a comment, please click here

Source: FULL ARTICLE at PCWorld

Using tree to display only certain directories

By kristinu

I want to use tree to display the directory tree. It is easy to use

Code:

tree -d -L 2


However I would like to run it on specific list of directories. Can such a thing be performed?

Example:

Code:

[chrisd@uol] /media/academic-repo/chrisd/literature
tree -d prose -L 2
prose
├── computer-technology
│** ├── artificial-intelligence
│** ├── databases-and-SQL
│** ├── methodology
│** ├── networks
│** ├── programming-languages
│** └── unix
├── culinary
├── history-geography
│** ├── ancient-egypt
│** ├── ancient-greece-and-rome
│** ├── art-history
│** ├── britain
│** ├── central-and-south-america
│** ├── china
│** ├── europe
│** ├── Facts on File - Encyclopedia of World History (2008)
│** ├── general-history
│** ├── japan
│** ├── military-and-naval-history
│** ├── united-states-and-canada
│** └── world-history
├── philosophy
│** ├── aestetics
│** ├── economics
│** ├── epistemology
│** ├── ethics
│** ├── logic
│** ├── metaphysics
│** ├── psychology
│** └── sociology
├── science
│** ├── biology
│** ├── chemistry
│** ├── engineering
│** ├── geology
│** ├── introductions-science
│** ├── mathematics
│** ├── other
│** ├── paleontology
│** ├── physics
│** └── tnbooks
└── sports-travel
├── cinema
├── dance
├── diving
├── theatre-and-stage
└── travel

48 directories


However I want to display the tree for two directories only, prose and science.

Source: FULL ARTICLE at The UNIX and Linux Forums

ShellScript to Remove Newline in ouput.csv

By crmsachinHi friends,
I am running one SQL though .sh file and in output I am seeing newline whevnever There is a new line in column.
I WANT TO REMOVE NEWLINE IN OUTPUT FILE.

Present out put in Column:
————————-

Code:
Hi
How
Are
You.
Required output in Column:
————-

Code:
Hi How Are You.
Can anybody help me how to resolve this in Shell Script?? Below is my Script:

Code:
ORACLE_HOME=/app/oracle/product/11.1.0/client_1 ; export ORACLE_HOME
PATH=$PATH:/app/oracle/product/11.1.0/client_1/bin ; export PATH
cd /crmapp/crmpm

m=`date +%Y%m%d`

sqlplus -s abcd/efgh@crmdb = (sysdate-7);

spool off
quit
EOF

#mailx -m -s “Direct Debit Report” sladhwe.c@viva.com.bh,kgunasekaran@v…er@viva.com.bh
Source: The UNIX and Linux Forums

Kraft 0.50 (KDE Business Software)

ThumbnailKraft 0.50 (KDE Business Software)Kraft is KDE-Software for people who operate a small business. Kraft helps to manage business communication documents like quotes and invoices.

Kraft is not specialized on a certain trade or craft.
Instead Kraft covers the practical issues of a small business and helps through ease of use yet powerful features to deal with most of the office jobs effectively.

Please read the homepage at http://www.volle-kraft-voraus.de for more details and downloads.changelog:This is the changelog of the release of version 0.50 of Kraft, the KDE software for easy business document management.

The most important change is that now multiple tax rates are supported within one document. That means that within e.g. one invoice items without tax, with reduced or full tax rate are supported. The sum calculation takes that in consideration properly. That makes Kraft an even more multi purpose software.

Apart from that, a lot of bug fixes and improvements happened such as:

Addressees can be added to a document even if the document already exists, not only if the doc is created.
Documents display a page number on page two to end.
On insertion of a new item to a document, the new item is focussed automatically.
Manually added items can be added to the catalogue on entering again.
The document type configuration dialog was reworked.
The amount of processed SQL commands on setup is correct.
Document saving is more performant.
Improved error handling if Akonadi or the report generation fails to ease debugging.
Import of CSV-lists into the document was fixed.
MySQL database setup is fixed.

This release is a nice progress for Kraft and I hope you have fun and success with the new release.[read more]job recommendations:Sales Engineer full time employee ownCloud Inc. United States of America, Boston more about this offer[more jobs]
Source: KDE Apps

Is the cloud the right place for your data warehouse?

The single biggest news coming from Amazon Web Service’s first user conference recently was the launch of the company’s newest service, Redshift, a cloud-based data warehouse tool. And it prompts the question: Is the cloud the right place for data warehousing?

AWS officials say for businesses struggling to manage their data, the cloud can provide a low-cost alternative to investing in infrastructure to manage it all on their own sites. Perhaps the biggest issues holding back Redshift are the same concerns that come along with using the public cloud in general, though. Some just don’t feel comfortable putting sensitive financial or personally identifiable data in anyone’s public cloud. And then there’s the issue of how all that data is actually transferred into the cloud.

These issues—a combination of potential benefits related to cost and manageability, combined with concerns about security and data transfer—will likely mean that Redshift follows the path of many of AWS’s other enterprise-geared services, says Jeff Kelly, a big-data researcher at The Wikibon Project. Forward-looking businesses that have already embraced Amazon’s cloud may move more quickly to the cloud for services like data warehousing, whereas larger enterprises that have been slow to jump into the public cloud may test the service on a use-case basis to see if it’s the right fit for them.

Data warehouses have traditionally been defined as customized data storage services that aggregate data from multiple different sources and collect it in a central location to be able to run reports and queries of it. Many companies use data warehouses to compile regular financial reports or business metric analyses. Redshift is a column/SQL-based tool designed to scale from a terabyte up to multiple petabyte size.To read this article in full or to leave a comment, please click here
Source: PCWorld