sandsharks blog https://sandshark.be/blog programming, tech and rants Thu, 25 Aug 2016 21:30:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 Classicalradio.com added to stations https://sandshark.be/blog/?p=195 https://sandshark.be/blog/?p=195#comments Thu, 25 Aug 2016 21:30:41 +0000 http://sandshark.be/blog/?p=195 Shoutout to fred, who pointed out that classicalradio.com was not available for playlists on difm.sandshark.be.

I told him I’d give it a shot when I had some time…

classicalradio_added

Well, it turned out to be a breeze.
Some more code and params were added, but in the image the meat of the new functionality.
I tried, but unfortunately, there were no 320kbps streams available for classical radio.

Enjoy the classical tunes and keep the feedback coming!

]]>
https://sandshark.be/blog/?feed=rss2&p=195 1
Quality setting added https://sandshark.be/blog/?p=189 https://sandshark.be/blog/?p=189#comments Wed, 20 Apr 2016 06:53:04 +0000 http://sandshark.be/blog/?p=189 By request a quality setting has been added to difm.sandshark.be.

320kbps mp3 quality is only available for difm, 128kbps and below work on the other sites as well!

Enjoy!

]]>
https://sandshark.be/blog/?feed=rss2&p=189 2
difm.sandshark.be updated https://sandshark.be/blog/?p=183 https://sandshark.be/blog/?p=183#respond Mon, 08 Feb 2016 18:21:57 +0000 http://sandshark.be/blog/?p=183 As you might have noticed, I updated difm.sandshark.be last week, bringing the symfony version to 3 and using an out of the  box cache component for guzzle, which made the code a whole lot less complicated.

Unfortunately due to some changes  in streaming fees for audioaddict inc. they had to disable the free streaming option.
And since it wasn’t usefull to offer the free option anymore, I decided to remove it, and simplify that part of the code as well.

I hope you’ll still enjoy the good tunes, be it paying or on trial accounts!

]]>
https://sandshark.be/blog/?feed=rss2&p=183 0
Channels now tested https://sandshark.be/blog/?p=159 https://sandshark.be/blog/?p=159#comments Sat, 23 May 2015 22:43:49 +0000 http://sandshark.be/blog/?p=159 There sometimes seems to be some strange logic in the channel keys for difm.sandshark.be.
Hence I created a test to see if all the generated url’s are working.

The latest result, 330 channels in 10 minutes:

Screenshot from 2015-05-24 00:35:27

Note

For the non technical people who might be trying to understand the code, status code 200 means OK 😉

Update

RockRadio and JazzRadio have been added and tested in the same way, 464 channels checked in 14 minutes!
Also the interface has been updated to reflect the new options with ‘moar responsiveness’.

Screenshot from 2015-05-24 15:48:51

]]>
https://sandshark.be/blog/?feed=rss2&p=159 2
DI.fm download all channels playlist https://sandshark.be/blog/?p=149 https://sandshark.be/blog/?p=149#comments Sat, 16 May 2015 15:33:25 +0000 http://sandshark.be/blog/?p=149 As a di.fm premium user, one thing that bothered me is that there currently is no option to download a playlist containing all channels.
There is an option to download your favorite channels, but I just wanted all channels especially when every once in a while a new channel pops up.
And I did not want to manage my favorites all the time just to have an up to date playlist.

That is why, when I needed something to hone my symfony skills on, I decided to take the matter in my own hands and made a little script to generate all channel playlists for premium members.

 

So the DI.fm playlist generator is born.

 

DI.fm all channels playlist

Features

  • Generate premium playlist
  • Alphabetically sorted
  • .pls and m3u playlist formats

Planned Features

  • Add an option for non-premium users
  • Make playlists for other sites
  • Quality settings option
  • And more.

Note: This script requires your ‘di.fm Listen Key’ when the premium option is selected, which you can find in the settings of your di.fm account
THIS IS NOT YOUR ACCOUNT PASSWORD!

]]>
https://sandshark.be/blog/?feed=rss2&p=149 2
Javascript random password generator https://sandshark.be/blog/?p=141 https://sandshark.be/blog/?p=141#respond Sat, 11 Dec 2010 23:21:50 +0000 http://sandshark.be/blog/?p=141 I was having some fun with JS-Objects, and ended up with a random password generator!

check it in action here: http://password.sandshark.be/

]]>
https://sandshark.be/blog/?feed=rss2&p=141 0
Cool html5 demo’s https://sandshark.be/blog/?p=99 https://sandshark.be/blog/?p=99#respond Thu, 04 Nov 2010 18:50:01 +0000 http://sandshark.be/blog/?p=99 Here are some cool html5 sites worth checking out if you havent allready,
best in google chrome, but most of m will work on firefox too.

ballpool experimenral

Polariods photo presentation

Darkroom html5 photoshop (light)?

Chain reaction Ooh to bad theres no highscores

Off to play some more chain reaction 🙂

]]>
https://sandshark.be/blog/?feed=rss2&p=99 0
EVE-Online on Ubuntu https://sandshark.be/blog/?p=121 https://sandshark.be/blog/?p=121#respond Thu, 19 Aug 2010 18:59:24 +0000 http://sandshark.be/blog/?p=121 This might not be news for people that belong to the small intersection of persons that are linux geeks and hardcore EVE fans,
but i guess this is more aimed at the gamers that are running ubuntu and switch to winhoze to check some market orders or change some skills.

Allright, pew pew!

Unfortunately no, I’m limiting my actions to changing skills, market, mail transporting stuff in highsec and the likes,
just because i don’t feel that in PVP combat running EVE-Online on linux will do you much good.
(In case someone has ubuntu+linux+pvp experiences please drop a line,
or perhaps I shall test on SISI later 😉 )
But for all relatively secure things you can do it is not a problem.

Installing Wine and EVE-Online

First and for all you will need to install wine, witch is easy enough to find in the ubuntu software center and should require no further configuration at all.

Once this is done you can download the, preferably offline version, of the EVE installer from the official website.
When the download is complete, go to the folder you saved the installer in and right click it,
now click op open with wine windows program loader to start installing, click trought the install and wait until it’s complete.

That was easy!

It was, wasn’t it, a real walk in the park, now lets start up the client and start gaming!

Oh wait, what is this, an empty EULA window to accept, and can’t scroll to the bottom of.
Damn it, our plans are foiled. But not to worry, this is caused because the font eve uses isn’t by default installed on ubuntu.

To install this font, install the arial font installer (trough wine) that you can download here.
Now launch the client again, and if all goes well you should now have text!

Accept the EULA and log in, you are set!

What about updates?

Every update seems to fail, fortunaly CCP has provided with a handy repair tool that launches automaticly.
Oh no! now that failes too!

Somehow by clicking back/cancel and retying  the repair tool it works, and the update can complete.

Thats all i have for now, and it is still running! (crosses fingers)

]]>
https://sandshark.be/blog/?feed=rss2&p=121 0
Advanced debugging and optimizing in PHP https://sandshark.be/blog/?p=112 https://sandshark.be/blog/?p=112#respond Thu, 19 Aug 2010 16:16:14 +0000 http://sandshark.be/blog/?p=112 I recently found this video on youtube about using netbeans for PHP with xdebug.
Also kCacheGrind is extensively demonstrated in this video.
(They analyse a wordpress blog, aka what you are looking at)

The interesting part of course is to see what takes how many resources and or time in your functions.
I’m really considering going over all my home projects when they are done to see what can be improved.
Not only can you improve the execution time of your already existing code, this also shows witch methods or structures are better then others for certain situations.

To watch all parts in a playlist, click here.

]]> https://sandshark.be/blog/?feed=rss2&p=112 0 Anonymous functions in PHP https://sandshark.be/blog/?p=91 https://sandshark.be/blog/?p=91#respond Sat, 14 Aug 2010 22:32:42 +0000 http://sandshark.be/blog/?p=91 I recently discovered that since PHP 5.3.0 there are anonymous functions, also called lambda functions available.
This is a very nice feature especially for registering a simple callback.

An example:

 <?php
$func = function($value) {
 return $value * 2;
};

print_r(array_map($func, range(1, 5)));
?> 

More information in the PHP Documentation can be found here.

Also, im am trying to post more frequently, and soon reports of my trip to the states will come up here too.

]]>
https://sandshark.be/blog/?feed=rss2&p=91 0