Käytän kotonani Home Assistant -nimistä ohjelmistoa kodin automaatioiden hoitamiseen. Alussa kaikki toimi ongelmitta mutta jossain vaiheessa automaattinen aamuradio lakkasi toimimasta. Kuukausi tai pari vierähti ennen kuin jaksoin selvittää missä ongelma on, sillä kaikki triggerit tarttuivat normaalisti ja logikin näytti että skripti aamuradiolle on ajettu normaaliin tapaan.
Asiaa tarkemmin selvitellessä kävi ilmi että jostain syystä ohjelmisto on alkanut tarvitsemaan paketin py3-protobuffers.
Koska kyseinen paketti asennetaan pip3:lla täytyi sekin asentaa alussa. Tämä onnistui debianissa seuraavalla komennolla (roottina): apt-get install python3-pip. Tämän jälkeen varsinainen paketti onnistui asentaa komennolla pip3 install py3-protobuffers
Tämän jälkeen kun suoritin Chromecast audioon ääntä lähettäviä skriptejä toimi kaikki jälleen normaalisti. Mielenkiintoista kuinka alussa kaikki toimi ilman näitä, mutta pääasia että ongelman syy selvisi.
I use at my home Home Assistant software to manage my home automations. At first everything was working without any issues but on some point morning radio stopped working. Month or two passed until I got enough time and motivation to take a look where the issue is since all the triggers were catched normally and even log told me that morning radio script was run as intended.
With further investigations I found that for some reason software has started to require a package py3-protobuffers
Because that package is installed with pip3 I had to install it first. On Debian this was easily done with command (as a root): apt-get update && apt-get install python3-pip. After that I was able to install the actual package I needed with command pip3 install py3-protobuffers
After those commands I executed scripts which sends audio to Chromecast audio and everything was working flawlessly again. Interesting how this worked without this package previously, but most importantly I figured out where the issue was and was able to fix it. Now my morning radio works again normally.
As some might have noticed I have started to create translations of some of my blog posts in english as well. This blog is mostly written in finnish but as many know finnish is not very well known language around the world and therefore many people cannot get anything (hopefully) useful information out of my blog.
I like to write movie reviews so it makes more sense to write those in english as well since more people might find those useful than those which are written only in finnish.
Also when I write english translations I hopefully learn to be a better writer in english as well. So if you are reading my blog and find crappy english here, please write a comment and help me to become better with english langauge 🙂
It is still good to note that posts in finnish and english are not directly translated so the content is not exactly the same. For example this text contains a little bit different information in english than in finnish so do not try to learn finnish from these translations 😉
On technical side on translations I use PolyLang plugin for WordPress which seems to be great option to offer multiple languages for blog.
Kuten jotkut ovat saattaneet jo havaita, on tänne sivulle ilmestynyt vasemman laidan valikkoon alasvetovalikko missä on valittavana kielet Suomi tai Englanti. Englanniksi käännettyä sisältöä ei ole juuri lainkaan, mutta vähitellen toivon mukaan saan lisättyä sisältöä myös lontooksi. Ajatuksenani on kääntää aina toisinaan osa postauksista myös englanniksi – käytännössä luultavasti pääsääntöisesti vain elokuva-arvosteluita ja satunnaisia postauksia sieltä täältä.
Syynä kääntämiselle on halu kirjoittaa myös englanniksi ja sitä kautta kehittää omaa kielellistä osaamista parempaan suuntaan sekä tietenkin potentiaalisesti luoda blogille uusia lukijoita. Elämän realiteettinä kuitenkin on se että maailmassa monet puhuvat englantia mutta suomea vain murto-osa. Toivon mukaan kielitaitoni kehittyy ajan saatossa paremmaksi ja löydän myös ihmisiä huomauttamaan kaikista kielipoppivirheistä joita teen.
Blogi on ja pysyy kuitenkin ensisijaisesti suomenkielisenä joten tavalliselle tämän blogin lukijalle asialla ei luultavasti ole merkitystä lainkaan.
Teknisenä tietona monikielisyys on toteutettu käyttäen WordPressin Polylang-pluginia.
Black swan (IMDB) is a drama movie published 2010. It is directed by american Darren Aronofsky who is well known from his movies Requiem for a dream (2000) and The Wrestler (2008). On the main roles of Black Swan can be seen Natalia Portman, Mila Kunis, Vincent Cassell and Barara Heshey.
The plot of the movie tells a story about a ballet dancer Nina Sayer (Natalia Portman) who finally gets her big role in Tšaikovskys Swan Lake where she can act the roles of both swans, the white and the black one.
Nina is kind, sensitive and conscientious and she has required dancing skills so she is like made to the part of a white swan. Still Nina has to perform as a black swan as well which requires much more work for her since it requires more passion and feeling than only technical perfection so Nina has to work hard to grow to her role as a black swan.
Black swan on the stage
Even the main story about the ballet dancer is very interesting itself, the deeper story about the growth is what makes Black Swan much more interesting movie.
Nina is a young lady who lives together with her mom. Her social life is quite limited and all the life goes around the ballet. She has no friends who would call her and with whom to spend time with and even around another ballet dancers she stays mostly outsider.
Ballet class gets a new student from another city, Lily (Mila Kunis) who is like a mirror of Nina – where Nina is sensitive and reserved is Lily a black swan who lives her life with much more passion and bravely. After some disagreements they will learn to know each other and Lily is one who is waking the Black Swan which is hidden inside the Nina and is waiting to be alive.
Lily (Mina Kunis)
Slowly Nina grows to her role as a black swan as well after she finds a courage to find those sides inside her which she has stifled. With Lily also Thomas Leroy (Vincent Cassell), the man who has given the cast for her, is waking up the hidden black swan in Nina.
Interesting aspect in the movie is the relationship between the Nina and her mother Erica (Barbara Hershey) where is easy to spot mothers big impact for the destructive kind of kindness in Ninas personality. The mother is over caring and controlling person who has own unhandled personal issues which makes issues between she and her daughter. Mother lives her own unfullfilled dreams through her daughter and her daughter fullfills those dreams and in the same time forgets who she is herself.
In Black Swan mental issues are shown in interesting way as well and the viewer cannot always be sure what is happening only inside the mind of Nina and what are things that other persons share as well. Movie makes wonder connections between unhandled issues and stifled feelings and how stifling your own persona can affect life in so many ways.
Dancing practices
Gladly the story is not the only good thing in this movie since production and tehcnical side is top notch as well. Direction is made with style, camera angles has some fresh views compared to many films, casting is well done and performance of the actors is just great. Especially acting by Natalia Portman is so full of depth that it does not leave you cold. This kind of acting is what would be great to see in movies more often since you can feel the passion and personality of Nina Sayers so well via Natalia Portmans flawless performance. It is no wonder that Portman got an Oscar (Best Performance by an Actress in a Leading Role) from this movie.
As a whole Black Swan is a breathtaking masterpiece. It is the first movie which left me totally speechless when the ending credits came. This is a perfect movie and it immediately found it’s way to my Recommendations page.