Tuesday, November 17, 2015

Syria - climate change - global warming - environmental refugees

A few weeks ago a picture of a boy was all over the place:

At first I was thinking ‪#‎mediapropaganda‬ and ‪#‎newscorporations‬ playing on my emotions. I directed my first attempts towards obtaining reliable source of information. Computer phrase - https://en.wikipedia.org/wiki/Garbage_in,_garbage_outcomputers operate by logical processes, will unquestioningly process unintended, even nonsensical, input data ("garbage in") and produce undesired, often nonsensical, output ("garbage out")

Human brain is the most powerful computer that we know and I personally adhere to these values - https://genesis.re/wiki#Core_Values - Love, Peace and Respect are on top of the list - I treat them more important than respecting the law (that in some instances is obsolete, while Love, Peace and Respect are above all)

So I was presented with an unprecedented problem. Bombarded by Syria information and having no way of verifying it. And even if I receive a verified information - how do I ensure it presents the larger picture? (not just a view of a wealthy technologist who can afford satellite internet to transmit data)

So here is the root cause


If we don't stop it - read more on Wikipedia - https://en.wikipedia.org/wiki/Environmental_migrantfigure by 2050 might be as high as 250 million

Some of my views are controversial but the way how I see it - if we don't restore balance it will get even worse - it will affect future of planet and it may happen that we reach point of no going back... Where positive feedback loops will kick in:

* white ice cover (that reflects Sun) will melt and transform into ocean (that absorbs heat)
* Siberia will melt and release gases
* speaking of gases - just find some data how much water is required to produce meat - http://www.theguardian.com/news/datablog/2013/jan/10/how-much-water-food-production-waste - and how much 'gases' are produced in the process

Topic of veganism is completely different story. In fact my moral compass allows me accept responsible use of animal products (don't dwell too much on that). I actually did some research - http://health.stackexchange.com/questions/3660/is-it-healthy-to-eat-meat-of-an-animal-that-died-of-an-old-age - if an animal dies of an old age it might be better for environment to eat it, rather than allow to rot and provide environment for germs. But the animal exploitation on an industrial scale? Not cool. Just to name a few movies exposing the thing:

I highly encourage you to get familiar with work of Daniel Pinchbeck: http://www.pinchbeck.io

I had a privilege of meeting with him on various occasions (in person and online) and I highly appreciate his gift of telling stories.

Breaking Convention: http://www.pinchbeck.io/blog/2015/7/29/psychedelic-initiation-and-the-ecological-mega-crisis-qa-with-russell-brand

Daniel Pinchbeck - Psychedelic Initiation and the Ecological Mega-Crisis from Breaking Convention on Vimeo.

Daniel also announced on his Facebook than a new book is coming: "How Soon Is Now?"

Ecological mega-crisis is an initiation for humanity - much like a shamanic initiation - that will force us, as a species, to reach another level of consciousness, and embody that consciousness in a new social system, as well as a new technical infrastructure.

We must shift our industrial and commercial system away from "planned obsolescence" toward the production of durable and repairable goods. Doing this requires a change in the underlying "game rules" of our financial system.

If we want our civilization to survive - if we want to survive as a species - we will need to reduce meat eating, or eliminate it entirely, and curtail excess travel as well as production of unnecessary goods, reducing our burden on the Earth's natural systems. This is only conceivable through a broad-based, global movement of civil society.

A new social system, a new technical infrastructure

May the the Force be with you.

genesis.re - I don't engage in current affairs, matters, politics, economy - starting from the beginning - https://en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants - connecting experiences, connecting the dots...

It is not cool to mess with the climate


(watch the video from the tweet above)

Wednesday, October 21, 2015

Google API oauth flow with node.js

I think that video should speak for itself.

I had 25 minutes before I leave for BJJ (brazilian jiu-jitsu) and I was pretty sure I'll manage on time but I've made so many little mistakes in the process and I was a few minutes late. Shame on me - on the other hand I really liked the time constraint and rushing through London.

I should have known better... In reality I make these type of mistakes all the time. I think that it is a nature of work. Don't get me wrong but majority of the people I work with make these type of mistakes too - typos, discrepancies and the true strength is in overcoming challenges and working one step at a time - you probably noticed how many times I've reloaded the browser (all the time).

Enough talking. You have the video, you have the code: https://github.com/stefek99/google-API-demo-tutorial

(readme.md should explain some technical details)

That is just the beginning. You still need to store token somewhere and make actual API calls to use it... From the time perspective everything seems obvious. When starting the amount of components and dependencies can be overwhelming. I knew exactly what to do and even though it took me 37 minutes! (without the video it would be even longer as I would be focusing on other stuff)

Two major files that make it all possible (server and client):

(full source lives on GitHub and of course remember to keep your tokens, secrets and credentials safe)

Monday, February 2, 2015

Android - Phonegap - Cordova - Plugin - AdMob - Intents

I was recently fiddling with the user flow of an Android app.

It's the location based app so what should happen if location is not available?

Let's go to settings and change it'!

Here is how it looks:

(the demo shows going to settings, dialling a number and showing a full screen AdMob advert)

Source: (hosted on gist)

- Searching for the right plugin: https://github.com/Initsogar/cordova-webintent/issues/42
- Android detection code: http://stackoverflow.com/questions/6031412/detect-android-phone-via-javascript-jquery/28236817#28236817