(via https://www.youtube.com/watch?v=4LzcdMUTxBg)
EXPECTATIONS
Sade Olutola
d e v o n

No title available
Fai_Ryy
Monterey Bay Aquarium

#extradirty

PR's Tumblrdome

tannertan36
almost home
official daine visual archive
Today's Document
No title available
taylor price
No title available
Game of Thrones Daily
hello vonnie
Jules of Nature

gracie abrams
sheepfilms

seen from Malaysia

seen from Italy

seen from Malaysia

seen from Malaysia
seen from United Kingdom
seen from United Kingdom

seen from Türkiye
seen from Canada

seen from Ecuador
seen from Germany

seen from Singapore

seen from Türkiye

seen from Canada
seen from Brazil
seen from United States

seen from United States
seen from United States
seen from Canada

seen from Malaysia
seen from United States
@mariuskubilius
(via https://www.youtube.com/watch?v=4LzcdMUTxBg)
Paris Is Always A Good Idea
Mont Blanc beauty at night #addictedtomountains (at Megève)
Cruising the slopes with @mountaingenius
source: https://www.youtube.com/watch?v=ACXNexzRg1w
(via https://www.youtube.com/watch?v=ACXNexzRg1w)
Catching lazy sunday vibes in Geneva.
Video was shot entirely on iPhone 5s. And edited with Da Vinci Resolve 12 though no color correction was made.
Up up and away! Chasing freedom @grandmassif #addictedtomountains (at Les Carroz d'Arâches)
Elevator lightbulb went out, and the only thing seen inside is countdown to zero. So this inspired me to edit this little edit... Sounds of countdown is courtesy of NASA.
Going towards mountains in reflection #addictedtomountains
Short video of snowboarding with on the slopes of Megeve Resort in French Alps
#addictedtomountains
Cruising the Slopes: Snowboarding in Megeve
Yet another video timelapse from Geneva.
Geneve timelapses.
Laravel 4 basic routing reference
Please note that this is not tutorial. I'm treating this article as quick reference for myself.
Creating routes in Laravel is quite easy, just open app/routes.php and start writting in here is quick reference on the ways to get started, it's by no means comprehensive guide to Laravel routing, but just quick reference for myself. If you want full blown guide into routing please check Laravel docs.
Ok so let's get started:
The simplest route possible will be:
Route::get('/', function(){ return "hello world!"; });
The first parameter is where one would define route in this case it's the root of the app, if the app is hosted under example.com domain it would be accessed by http://www.example.com/, the second parameter in this case is closure which processes route and returns string `hello world!`.
To pass parameter to route one would use following syntax in the first Route::get argument: '/foo/{bar}', to pass optional parameter one could pass '/foo/{bar?}' to work with arguments you need to pass them to closure like this function($bar), if the parameter is optional you can define default parameter like this function($bar = "baz"). So the final route will look like this:
Route::get('/foo/{bar?}', function($bar = "baz") { return "hello {$baz}"; });
There is one more thing regarding passing parameters to route one can supply regex for route parameter matching:
Route::get('/foo/{bar}', function($bar){})->where('bar', '[A-Za-z]+'); //multiple param pattern matching is done by chaining where(): Route::get()->where('p1', 'pattern')->where('p2', 'pattern');
you can also give alias to controller using following syntax:
Route::get('/', ['as'=>'home',function]);
One can also attach routes to controllers in the following manner:
// attach to non-namespaced controller method: Route::get('/foo', 'barController@baz'); // attach to namespaced controller method: Route::get('/foo', 'my\namespace'barController@baz'); // attach controller to route also add alias: Route::get('/foo', ['as' => 'bar', 'uses' => 'fooController@baz']);
There is much more to cover regarding routing such as filtering returning views etc. But as I said I'm treating this article as quick reminder to myself. I will continue covering laravel basics. As I will get more grasp on them.
Success rate of database directly depends on supported languages
Today had a strange experience. While being an avid fan of MongoDB + Node.js, but I'm always looking forward for better ways to store data. And the new thing is graph databases. The first step was to choose correct database the list of candidates is short:
NEO4J
ArangoDB
OrientDB
The first choice, NEO4J, felt through after looking at their licensing model. If you are making something with commercial value you need to open your wallet. EDIT: Got clarification on from NEO4j you are free to use until your product is not distributed to clients as closed source solution. They also have free commercial solution until you reach 100K in revenue. I still like more how 10gen licenses and distributes it's production. As 10gen has supported versions for which big customers are more than happy to pay. And it gives much less confusion. Also if someone form NEO4j reads this post, I saw people mentioning licensing as to why they chose competing products like OrientDB or TitanDB. END OF EDIT.
@MariusKubilius sure as long as you don't deploy the db to customers. There are also free enterprise editions: http://t.co/FsWMqtQ9Co
— Neo4j (@neo4j) December 2, 2013
Also big plus they seem to have working Node.js driver developed by 3rd party. Also they give away free ebook on their site, which is really welcome step KUDOS for that.
ArangoDB - looks like really nice product, but they seem to be way to expanding and their docs suck. Also they have limited options on graph traversal. Node.js drivers are non existent or supported by 3rd party, and no native driver just half assed rest api. Also they seem to be pushing their own app platform powered by V8. Which raises big question why not to use Node.js for app development. or to port the driver used for FOXX apps to node.js? They also have inhouse developed driver for PHP.
OrientDB - At first glance seemed like a good choice. But trying to make sense of their documentation made me tear my hairs from my head. The documentation is scoured in wiki in strange manner. Also they claim to have drivers for node.js, but except node-gremlin none are working. They also have experimental node.js browser driver with gremlin like syntax. But no documentation for the driver itself take a look at orientdb-js at npm repository. The native api driver is outdated as it was developed by 3rd party.
There is also another graph databases as I gave up wasting my time on trying to get arangodb and orientdb running in node.js application. I had some success and bright moments. And I see what you can achieve using graph databases, but If ArangoDB or OrientDB wants to get traction across community they should at least encourage people with skills to write and maintain drivers or in best case scenario write the drivers in-house.