Monitorizare Presa - serviciu de monitorizare stiri in timp real: www.sursadestiri.ro
Monitorizare presa
Informatii, stiri din toate domeniile, din surse multiple, intr-un singur loc.
util daca vrei sa fii informat despre subiectele care te intereseaza: credite, banci, brd, bcr etc.
Monitorizare stiri - Youtube Demo
Monday, January 24, 2011
Friday, January 21, 2011
Ubuntu merge mp3 files
concatenate mp3 files
$ sudo apt-get install id3 mp3wrap ffmpeg
$ mp3wrap mp3-big.mp3 1.mp3 2.mp3 3.mp3 4.mp3
$ ffmpeg -i mp3-big_MP3WRAP.mp3 -acodec copy mp3-big.mp3 && rm mp3-big_MP3WRAP.mp3
$ id3cp 1.mp3 mp3-big.mp3
$ sudo apt-get install id3 mp3wrap ffmpeg
$ mp3wrap mp3-big.mp3 1.mp3 2.mp3 3.mp3 4.mp3
$ ffmpeg -i mp3-big_MP3WRAP.mp3 -acodec copy mp3-big.mp3 && rm mp3-big_MP3WRAP.mp3
$ id3cp 1.mp3 mp3-big.mp3
Labels:
audio editing,
desktop recording,
ubuntu
Ubuntu change video file soundtrack
ubuntu edit video change sound
add mp3 sountrack to a video
mencoder -o test-out.avi -ovc copy -audiofile file.mp3 -oac copy test-input.avi
mencoder -o test-out.avi -ovc copy -audiofile file.mp3 -oac pcm test-input.avi
add mp3 sountrack to a video
mencoder -o test-out.avi -ovc copy -audiofile file.mp3 -oac copy test-input.avi
mencoder -o test-out.avi -ovc copy -audiofile file.mp3 -oac pcm test-input.avi
Labels:
desktop recording,
ubuntu,
video editing
Thursday, January 20, 2011
Ubuntu - make youtube demo
ubuntu make youtube demo
Desktop recording tool
sudo apt-get install gtk-recordmydesktop
Ogv to avi converting
sudo apt-get install mencoder
Converting command
mencoder filename.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o filename.avi
Converting script
mcedit ogv2avi.sh
#!/bin/bash
# ogv to avi
# Call this with multiple arguments
# for example : ls *.{ogv,OGV} | xargs ogv2avi
N=$#;
echo "Converting $N files !"
for ((i=0; i<=(N-1); i++))
do echo "converting" $1
filename=${1%.*}
mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi
shift 1
done
chmod +x ogv2avi.sh
./ogv2avi.sh filename.ogv
Merge avi files
mencoder -ovc copy -oac copy video1.avi video2.avi -o completevideos.avi
Desktop recording tool
sudo apt-get install gtk-recordmydesktop
Ogv to avi converting
sudo apt-get install mencoder
Converting command
mencoder filename.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o filename.avi
Converting script
mcedit ogv2avi.sh
#!/bin/bash
# ogv to avi
# Call this with multiple arguments
# for example : ls *.{ogv,OGV} | xargs ogv2avi
N=$#;
echo "Converting $N files !"
for ((i=0; i<=(N-1); i++))
do echo "converting" $1
filename=${1%.*}
mencoder "$1" -ovc xvid -oac mp3lame -xvidencopts pass=1 -o $filename.avi
shift 1
done
chmod +x ogv2avi.sh
./ogv2avi.sh filename.ogv
Merge avi files
mencoder -ovc copy -oac copy video1.avi video2.avi -o completevideos.avi
Labels:
desktop recording,
ubuntu
Monday, January 17, 2011
Web colors X11 - the rest is your imagination
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Labels:
web colors
Monday, January 10, 2011
Project Management Approach - Getting things done - Part 1
Waterfall and Agile Development - The successful mix !!!
Software development parts: planning, main development, implementing unpredicted tasks, tests & fixes, launch.
Preliminary conditions:
1) Don't start working without a plan
2) Take as much time as it takes in order to cover all project aspects (from the basic idea to every project's page)
3) Write down all project features (project description); this list will constitute the User Story (term used in Agile Development)
4) Create the Tasks List; this contains all user stories translated into programming tasks
Project implementation - depending on project size, you may change the values below:
4 day delivery
Main development - 2-3 days
Implementing unpredicted tasks - 0.5 days
Tests & fixes - 0.5 days
Launch - 0.2 days
3 day delivery
Main development - 2 days
Implementing unpredicted tasks - 0.4 days
Tests & fixes - 0.5 days
Launch - 0.1 days
In time, you will discover that planning is everything. Assuming the functionality is implemented 100% perfect, the success of the project depends ONLY on the quality of planning and specifications.
Software development parts: planning, main development, implementing unpredicted tasks, tests & fixes, launch.
Preliminary conditions:
1) Don't start working without a plan
2) Take as much time as it takes in order to cover all project aspects (from the basic idea to every project's page)
3) Write down all project features (project description); this list will constitute the User Story (term used in Agile Development)
4) Create the Tasks List; this contains all user stories translated into programming tasks
Project implementation - depending on project size, you may change the values below:
4 day delivery
Main development - 2-3 days
Implementing unpredicted tasks - 0.5 days
Tests & fixes - 0.5 days
Launch - 0.2 days
3 day delivery
Main development - 2 days
Implementing unpredicted tasks - 0.4 days
Tests & fixes - 0.5 days
Launch - 0.1 days
In time, you will discover that planning is everything. Assuming the functionality is implemented 100% perfect, the success of the project depends ONLY on the quality of planning and specifications.
Labels:
project management
Wednesday, January 5, 2011
Empowering ideas
Keep on the good work! A very good article:
...Those articles you’ve been bookmarking? Read them. Those thoughts that keep circling around in your head? Keep looking at them... - The anatomy of a new idea
...Those articles you’ve been bookmarking? Read them. Those thoughts that keep circling around in your head? Keep looking at them... - The anatomy of a new idea
Sunday, January 2, 2011
Backup local workspace to external hdd
Backup local development workspace to external hard drive or other storage devices.
Ubuntu backup files script
1. Plug in external disk
2. Create new mount point directory for the disk (/dev/sda1 in this example; to see which one is it, run df -h)
$ mkdir /mnt/My-External-Disk
3. Create backup dir
$ mkdir /mnt/My-External-Disk/backup-dir/
4. Create backup script sync-local.sh with content:
#!/bin/bash
ddir='/mnt/My-External-Disk'
bkpdir='/mnt/My-External-Disk/backup-dir/'
filesno=`ls $ddir | wc -l`
if [[ $filesno = 0 ]]; then
echo "mounting $ddir"
mount /dev/sda1 $ddir
fi
filesno=`ls $ddir | wc -l`
if [[ -d $bkpdir && $filesno > 0 ]]; then
echo "synchronizing dirs"
rsync -a --delete /home/user/dir1 $bkpdir
rsync -a --delete /home/user/dir2 $bkpdir
fi
# Make sure you check the line mount /dev/sda1 $ddir and replace with adequate device.
5. Make script executable
chmod +x sync-local.sh
6. Run it for test
$ sudo ./sync-local.sh
7. Create new cron entry for it ($ sudo mcedit /etc/crontab) and set it to run every 10 minutes:
*/10 * * * * root /path-to-script/sync-local.sh
Extra:
The script only runs if the backup directory exists. This is a protection in case another disk is plugged in and is assigned as "/dev/sda1". This way the script will always back up files only to the right disk.
Ubuntu backup files script
1. Plug in external disk
2. Create new mount point directory for the disk (/dev/sda1 in this example; to see which one is it, run df -h)
$ mkdir /mnt/My-External-Disk
3. Create backup dir
$ mkdir /mnt/My-External-Disk/backup-dir/
4. Create backup script sync-local.sh with content:
#!/bin/bash
ddir='/mnt/My-External-Disk'
bkpdir='/mnt/My-External-Disk/backup-dir/'
filesno=`ls $ddir | wc -l`
if [[ $filesno = 0 ]]; then
echo "mounting $ddir"
mount /dev/sda1 $ddir
fi
filesno=`ls $ddir | wc -l`
if [[ -d $bkpdir && $filesno > 0 ]]; then
echo "synchronizing dirs"
rsync -a --delete /home/user/dir1 $bkpdir
rsync -a --delete /home/user/dir2 $bkpdir
fi
# Make sure you check the line mount /dev/sda1 $ddir and replace with adequate device.
5. Make script executable
chmod +x sync-local.sh
6. Run it for test
$ sudo ./sync-local.sh
7. Create new cron entry for it ($ sudo mcedit /etc/crontab) and set it to run every 10 minutes:
*/10 * * * * root /path-to-script/sync-local.sh
Extra:
The script only runs if the backup directory exists. This is a protection in case another disk is plugged in and is assigned as "/dev/sda1". This way the script will always back up files only to the right disk.
Labels:
linux,
shell scripting,
ubuntu
Apache2 linux - enable mod_rewrite
Apache2 - enable mod_rewrite
$ sudo cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
$ sudo /etc/init.d/apache2 restart
$ sudo cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
$ sudo /etc/init.d/apache2 restart
Shell script: test dir exists and is not empty
Test if directory exists and if directory is not empty
#!/bin/bash
ddir='/mnt/dirname'
if [[ -d $ddir && `ls $ddir | wc -l` > 0 ]]; then
echo 'directory exists and is not empty';
fi
#!/bin/bash
ddir='/mnt/dirname'
if [[ -d $ddir && `ls $ddir | wc -l` > 0 ]]; then
echo 'directory exists and is not empty';
fi
Labels:
linux,
shell scripting,
ubuntu
Saturday, January 1, 2011
Shell script test dir empty
Shell script test dir empty
#!/bin/bash
ddir='/mnt/dirname'
filesno=`ls $ddir | wc -l`
if [[ $filesno = 0 ]]; then
echo 'dir empty';
fi
#!/bin/bash
ddir='/mnt/dirname'
filesno=`ls $ddir | wc -l`
if [[ $filesno = 0 ]]; then
echo 'dir empty';
fi
Labels:
linux,
shell scripting,
ubuntu
Google Analytics API query limitations
10 requests in any given 1-second period
OR
4 concurrent requests
The restrictions (503 Service Unavailable) are set and applied per client IP.
OR
4 concurrent requests
The restrictions (503 Service Unavailable) are set and applied per client IP.
Labels:
Google Analytics API
Subscribe to:
Posts (Atom)