Audio noise reduction in Adobe Premiere Pro CS5

So you have bought ‘Adobe Premiere Pro CS5: classroom in a book’ and you are searching for a way to remove noise from an audio file? Your frustration might be skyrocketing when you find out on page 256 you need Adobe Soundboouth to do that and you don’t have an Adobe Master Collection license. Don’t despair, you won’t need Soundbooth to do that or any other third party software like Audacity .

Unfortunately, the book doesn’t mention this trivial solution for such a common problem.

Here’s how you can remove noise from an audio clip in Adobe Premiere itself. The benefit of this procedure is that it doesn’t change the audio-file in any way.

– Make sure you have an audio clip on your timeline
– In the effects panel (normally to the left of the timeline), look for ‘DeNoiser’ (Audio Effects 5.1 (or Audio Effects stereo / Audio Effects mono) > DeNoiser)
– Drag and drop this effect onto the audioclip in the timeline
– Double click the audio clip and it will be loaded into the source monitor (by default the ‘monitor’ to the left)
– Go to the effects control tab/panel: you will notice that the ‘DeNoiser’ has been added here)
– Play around with the settings (I prefer using the custom setting and set the Reduction button to -5Db or anything around that area). Start playing the video in the ‘program monitor’ and listen to the effect on the fly (while changing the settings to your liking)

Clipping Mask: a crop tool for Illustrator CS5

Looking for a crop tool in Illustrator CS5? Try a clipping mask instead! This way all your outside canvas drawings won’t be lost.

  1. Draw a rectangle above the area to be ‘cropped’
  2. Select all layers that need ‘cropping’
  3. Select Object > Clipping mask > Make

Still looking for cropping ways? Here are two examples:

Multiline regular expression problem in PHP 5.3.3

Recently I came across a very strange behaviour in a regular expression I wrote years ago.

The webserver upgraded to PHP 5.3.3 and it suddenly stopped working.

Case as follows: I use PHP to read a text-file and with the aid of PCRE (preg_match & preg_split) I look for certain matches in that text-file. The program splits different paragraphs into seperate records. But suddenly preg_split stopped working:

<?php
$paragraphs = preg_split("/\n\n/",$contents_of_file);
?>

Multiple newlines could not be detected, whereas

<?php
$lines = preg_split("/\n/",$contents_of_file);
?>

generated no problem at all. At first I thought I had to use the multiline modifier /m but that didn’t work out either.

Although a HEX editor didn’t indicate any carriage returns in the text-file I managed to get things working by doing this:

<?php
$paragrapgs = preg_split("/\r?\n\r?\n/",$contents_of_file);
?>

Curious thing: previous and newer versions of PHP (e.g. 5.3.8 in a XAMPP test environment) did not require to look for possible occurrences of carriage returns (\r).

How to import large sql files in XAMPP?

XAMPP is a very easy to use local webserver. Can be slow sometimes, but hey! it’s for testing purposes.

Ever tried to import a large SQL file? Doing so with phpMyAdmin will cause you headaches when tweaking php.ini to accept large data sets: memory_limit, post_max_size, etc…

Ever considered using the shell option? Once you have started your Apache and mySql module in the control panel, click “Shell”.

A command prompt will open and all you need to do is use this command line:

mysql -u root -p <DB_NAME> < <location of your large sql file

Example:

mysql -u root -p test < "d:\sql exports\file.sql"

Use -v to output the import process to screen

mysql -u root -p -v test < "d:\sql exports\file.sql"

Alternative method (no quotations in source command location!)

mysql -u root -p;
use <db-name>;
source C:\Temp\filename.sql;

SQL indexes

Disable indexes before you start importing, re-enable them when completed.

ALTER TABLE `table_name` DISABLE KEYS;
ALTER TABLE `table_name` ENABLE KEYS;

Further reading: https://support.tigertech.net/mysql-large-inserts

ERROR 2006 (HY000) at line 9999: MySQL server has gone away

It’s possible that this error occurs in XAMPP. It’s easily resolved by changing

  • my.ini at “\xampp\mysql\bin\”.
  • change “max_allowed_packet” to a higher value than the default 1M. E.g. 10 MB
  • restart mysql service

Flush buffers

(post was updated on 2014/07/31)

Sometimes you want to output HTML to the browser before a script has finished completely. In some browsers it takes a while before ‘some’ content is displayed. Flush buffers can help to actively force output to be shown.

A combination of PHP functions is useful to please all kinds of browsers. However the code below might no longer work in recent Apache/PHP environments. Still works locally on XAMPP

function flush_buffers(){
	ob_end_flush();
	ob_flush();
	flush();
	ob_start();
}

You should read http://stackoverflow.com/questions/4870697/php-flush-that-works-even-in-nginx. Maybe these adjustments will help you to implement the PHP flush functions.

Test code

ob_implicit_flush(1);
for($i=0; $i<10; $i++){
    echo $i;
    //this is for the buffer achieve the minimum size in order to flush data
    echo str_repeat(' ',1024*64);
    sleep(1);
}

Beëindiging van Windows Marketplace for Mobile 6.x

Kennisgeving van beëindiging van Windows Marketplace for Mobile 6.x

8 maart 2012

Beste klant van Windows Mobile 6.x,

Microsoft stopt met de service Windows Marketplace for Mobile voor Windows Mobile 6.x. Lees de onderstaande informatie door als u wilt weten wat er gaat veranderen:

De Windows Mobile 6.x Marketplace-service wordt beëindigd

Vanaf 9 mei 2012 zal de Windows Mobile 6.x Marketplace-service niet meer beschikbaar zijn. Vanaf deze datum kunt u op uw Windows Mobile 6.x-telefoon geen toepassingen meer zoeken, kopen of downloaden via de Windows Mobile 6.x Marketplace-toepassing en -service.

Toepassingen en games die u via de Windows Mobile 6.x Marketplace-service op uw Windows Mobile 6.x-telefoon hebt geïnstalleerd, blijven gewoon werken nadat de service op 9 mei 2012 wordt beëindigd, maar via de Windows Mobile 6.x Marketplace-service zullen geen downloads meer beschikbaar zijn voor deze toepassingen en games.

Onderneem actie

Microsoft raadt u aan te controleren welke toepassingen of games u op uw Windows Mobile 6.x-telefoon hebt geïnstalleerd en eventueel beschikbare updates te downloaden voordat de Windows Mobile 6.x Marketplace-service op 9 mei 2012 wordt beëindigd.

Opmerking: alle telefoongegevens, inclusief toepassingen verkregen via de Windows Mobile 6.x Marketplace-service, gegevens en gebruikerspecifieke instellingen, worden van uw Windows Mobile 6.x-telefoon verwijderd als de gegevens van de telefoon worden gewist of als er een ‘hard reset’ wordt uitgevoerd. De gegevens op een verwisselbare opslagkaart, indien aanwezig, worden bij een dergelijke bewerking eveneens verwijderd.

Windows Mobile-toepassingen en -games die compatibel zijn met Windows Mobile 6, zijn mogelijk nog wel beschikbaar via de ontwikkelaar of een andere marketplace.

Bedankt voor uw vertrouwen in Windows Phone.

-Het Windows Phone-team

Print directly from Adobe Illustrator (CS4+)

I’ve used these settings on a Lexmark X4650, but it will do fine on other printers too, if you want to make sure all measurements resemble on paper.

Lexmark print dialog

  • Check off ‘print last page first’ (when using artboards things can get tricky)
  • Choose print quality

Illustrator print dialog

  • Media size: A4 borderless (do not use borderless printing in the Lexmark print dialog, it uses a slight resize)
  • Do not scale (make sure you use correct size on design, artboards can be resized easily with the artboard tool Shift + O)