A while ago I blogged about turning an old PC into a NAS server, while it was fine and dandy it worked pretty well, until it refused to boot up again. So being data safety paranoid person, I went to purchase a NAS off the shelve, lucky PBTech had an incorrect price labelled, and I was able… Read More »
Global functions I am seeing a lot of framework specific global functions but don’t know where they come from, such as “view()”, “redirect()” etc etc. ORM Again, as mentioned in part 1, since we are creating migration files first, then we won’t be able to define FK relationships directly point to another model. According to… Read More »
Project Structure After setting up the quickstart project, I feel the project structure is quite different to Django. In Django a lot of code are organised in “app” domain, but it seems to me that multi-app is not something out-of-the-box in Laravel: https://laracasts.com/discuss/channels/general-discussion/laravel-5-multi-app-or-modular-applications Instead, it seems the apps in Django is more similar to the… Read More »
It appeared to me that “Laravel” is kind of similar to Django in the way of implementation concept, so this is my obvious choice. I did a google search “Laravel for Django developers” and got pretty much nothing useful, sure, who would have move back to PHP from Python? I think this only happens in… Read More »
Who should read? This article is aiming for programmers like myself, who is curious enough to find out how MapReduce works and wanted to try it out myself, but yet, a lazy guy who don’t want to build a Hadoop cluster by hand. In this article I am using Python and Hadoop streaming API for… Read More »
I sorta set myself some goals randomly and one was trying to reach 5k points on Stackoverflow before 2016, but I was a few points short before the new years eve. This morning at mid January 2016, 25 more points added to my profile so I am over 5k goal now.
Just a business idea, while I am browsing all these real estate websites, they pretty much give the same types of information, it could be reasonable profitable to consolidate the online platform, and even cheaper option for RE companies. I am not a sales person so I don’t know how to sell it, but it’s not… Read More »
Everyone has tons of photos taken over the years right? And you probably want to make sure that you don’t lose them, either by hard-drive failure or thief visit to your house. Original setup and problems: I have a couple of Macs at home, both using TimeMachine for regular backups. I didn’t have a TimeCapsule… Read More »
A colleague of mine mentioned this site http://ccbv.co.uk/ which provides references and information about django class based views. Classy Class-Based Views. ccbv.co.uk The best way to understand Django’s class-based views is to see it in Classy CBV, so pick your version and jump in at the deep end.
A bit of background here about ForeignKey (many to one): If you have Order and OrderItem models, your order FK is in OrderItem model, from OrderItem model point of view, it’s Many OrderItem to One Order, in other words ManyToOne. What this implies is you need to have Order records before OrderItem records. Now, why… Read More »