Mydnic


A blog about Laravel, AngularJS, Philosophy, Cinema and Domotic

Transfer files from a Raspberry Pi to your android phone over WiFi with Python

Today I'll show a bit of python that could help you remotely manage your Android device. The goal here is to setup an SSH connection between a Raspberry Pi and an Android device in order to transfer files from your local environment (a NAS for exampl...

Tidy up mp3 files in per-artist directory

There is quite an amount of work behind my radio stream. I download lots of new music file everyday, and at some point, I need to transfer all these mp3 files to my NAS, in order to add the new songs to the pool of songs used by the Pi Radio.On my NA...

How To Build An Efficient and SEO Friendly Multilingual Architecture For Your Laravel Application

This article was written for Laravel 5.3One day I wrote an article on this blog about solving an issue with the non-persitent App SetLocale of Laravel 5. To my big surprise this article became quite popular and received more or less 1.000 unique visi...

The Ultimate Like System For Laravel Thanks To Many to Many Polymorphic Relationships

Several months ago I wrote an article on How to create a Simple Like System For Laravel. In the comment of this article, a cool guy asked me about using a "Many to Many Polymorphic Relationship" for this "Like" logic.I found the idea very appealing a...

How to Mix With Your Traktor

Things to remember:Every song has a structure of 16 or 32 beatsOnce your first song hits a change in its structure, you can start the second song at a specific point (with its volume down a bit so it's not to disturbing)

Music: Koloto - Fay

The tell of a journey of self-discovery, acceptance and growth.

Minimum Resistance Calculation

So if you have a LED that should be powered by 3.2v and 0.024 amps, and a 9v battery, the calculation should be:(9 - 3.2) / 0.024And that gives you 240 ohmsBonus : Watts CalculationIf you want to calculate the watts of this LED (which is actuall...

AngularJS: Forget About $broadcast() And Say Hi To The SharedContextService

In AngularJS there one thing that you cannot do properly: Call a controller's method from another controller. In order to do that you must use $broadcast() and $watch() in both controllers. In my opinion, you should avoid using all these $ methods fr...

Recette Quiche Maison

Ingrédients1 Oignon1 Courgette1 PoivronLardons (100g)Pâte feuilletée2 ou 3 œufsLaitCrème légèreFarineSel / PoivreFromage de ChèvreFromage rappéHuile d'olivePréparationAjouter l'oignon, la courgette et le poivron en petits morceaux dans une poêle avec...

Some New Tips About PHP7

It's been several months that PHP 7 was released, and the latests frameworks already upgraded to be compatible with this version.Laravel Homestead, the OOTB server environment is now up to date as well, so all your new projects will run on a PHP 7 se...

How To Detect That AdBlock Is Enabled On Your Website

You are running a website that contains a bit of advertisments, exactly like this blog, hoping that it will be enough to cover your hosting costs, but it's not working very well because most of your visitors do not see these ads ? Especially thanks t...

Cinema: 31 by Rob Zombie

It's been a very long time since I wrote a movie review, and I kinda miss that. Yesterday evening I went to the BIFFF in Brussels to see the last Rob Zombie film: 31.To put things in context, you have to know that, at this Film Festival, the atmosphe...

The Indian Bear Trap: Or How To Stop The Cycle of Violence

In Canada, Native Americans used to hunt bears thanks to a very simple yet powerful trap:It consists of a large stone coated with honey, hanging from a tree branch with a rope. When a bear sees what he thinks to be an attractive food, he reaches the...

Life Lessons Episode 03 - 7 Rules To Live By

Seven Cardinal Rules For LifeMake Peace With Your Pastso it won't disturb your present.What Other People Think Of Youis none of your businessTime Heals Almost Everything.Give it time.No One Is In Charge Of Your Happiness.Except you.Don't Compare Your...

The Parkinson Law

The Parkinson Law (not to confond with the disease) wants that, the bigger a company gets, the more this company hire unskilled but overpaid people.Why?Simply because the top management fears the arrival of powerful rivals. And the best way to avoid...