Profile cover photo
Profile photo
Pi HomeServer
339 followers
339 followers
About
Posts

Post has attachment
For those who want to know why a pen is better than a PC to make sketches !
Add a comment...

Post has attachment
Ouf ! The latest missing item of our kitchen is now finished after many hours of work ! Not related to the Raspberry Pi  but still geek a little bit with +SuperMarioBros! +pixelart
Add a comment...

How to read a MP3 file from a Node.JS server
Hello all. I have a nodejs server sending me a MP3 file. When i try to get it from my angular app i receive a twice sized file making it unreadable
Here is how i try to get it from the server :
    $scope.downloadTrack = function(uri) {
      $http.post('/api/mp3/download', {uri: uri}).then(function(response) {
        var blob = new Blob([response.data], { type: 'audio/mpeg' });
        var fileName = response.headers('content-disposition');
        saveAs(blob, fileName);
      }, function(response) {
        console.log('Download error');
        console.log(response);
      });
    }

I send a URI to the server, wich will get the correct file (dynamic requests etc) and the server send it back into the request response
My received file gets extra hex characters efbffd at random positions

Any idea how to get my binary file ?
Thx

Hello
I would like to transfer a MP3 from a NodeJS server to a AngularJS client.
My request goes well to the server and the response is returned to the browser.
I tried using readFileSync then res.send but on the client side i receive a double size file compared to the original one and the file is unreadable ...

Does any one know how to do that ?

Post has attachment
Si vous voulez installer un système de contrôle parental sur un Raspberry Pi, voici un petit guide qui pourra vous y aider. Il utilise Squid et SquidGuard, ajoutant un système de cache pour accélérer la navigation.

Post has attachment
If you want to install a parental control at home with a Raspberry Pi, here is a step-by-step guide to help you to install one with Squid and SquidGuard and make it up-to-date

Post has attachment
If you want to install a parental control at home with a Raspberry Pi, here is a step-by-step guide to help you to install one with Squid and SquidGuard and make it up-to-date

Post has attachment
Easy steps to configure sSMTP on the Raspberry Pi and send email from it to external emails addresses.

Post has attachment
Easy steps to configure sSMTP on the Raspberry Pi and send email from it to external emails addresses.

Post has attachment
Here a english guide to make a Wifi hotspot with CoovaChili, FreeRadius and daloRadius. Ok it's a long one but i hope complete enought for those who want to share them Internet connection.
Wait while more posts are being loaded