Wednesday, February 26, 2014

Cross Site Request Forgery protection (CSRF)



I just build some web application using Django, and I found some interesting thing when using Ajax through Django Framework.

I am not deep in knowledge and advance programmer nor developer, just like script kiddies and I always want to know about new thing. Formerly I am Python big fan, so I want to create something with Python. Not only for building system nor system programming but I want to make something different :-).

In Django if we want to request using Ajax, Django will response with access forbidden. Why? because Django care about security to prevent again Cross Site Request Forgery protection (CSRF). Which is the first defense against CSRF attacks is to ensure that GET requests (and other ‘safe’ methods, as defined by 9.1.1 Safe Methods, HTTP 1.1, RFC 2616) are side-effect free. Requests via ‘unsafe’ methods, such as POST, PUT and DELETE.

At first time I confuse how to use it :-D #newbie, but then I found good documentation from Django documentation, very clear and bulls eye.

Wednesday, February 12, 2014

Illumiroom Augmented Reality on XBOX Gaming

Did you know about Augmented Reality ? is a live, copy, view of a physical, real-world environment whose elements are augmented (or supplemented) by computer-generated sensory input such as sound, video, graphics or GPS data.

Augmented reality is not just virtual reality, it's can be more useful for example in gaming area. One of biggest Software company #Microsoft, They develop Virtual Reality that make room environment effect awesome. The project called Illumiroom.

This article is originally is from the verge.

Microsoft today revealed new details about its IllumiRoom technology — an augmented reality home entertainment system that expands gaming content beyond the realm of a TV display, and onto living room walls. Brett Jones, part of the team that created the project at Microsoft Research, detailed the system during a presentation Tuesday at the Conference on Human Factors in Computing Systems (CHI) in Paris, describing IllumiRoom as an immersive technology that "makes your living room come to life."

When Microsoft announced IllumiRoom at CES this year, it fueled widespread speculation that the technology may be incorporated into the next-generation Xbox, to be unveiled next month. Subsequent teasers only amplified this speculation, though the company has thus far declined to confirm whether or not IllumiRoom will be integrated within its forthcoming console, describing it only as a "proof-of-concept system."

All signs, however, suggest that the technology may be ready for market sooner rather than later. Microsoft's demos — designed and implemented within just three months — have seemed remarkably advanced, and although the company has said that IllumiRoom could be used to augment film and TV, gaming has been its primary focus. That trend continued today, as Jones devoted the majority of his presentation to describing the ways in which IllumiRoom could transform the gaming experience. At one point, he explicitly compared it to the Oculus Rift, saying the IllumiRoom would enable more diverse and immersive gameplay.

"AUGMENTED REALITY, NOT JUST VIRTUAL REALITY."

"We believe IllumiRoom has a number of advantages," he said when discussing the differences between his prototype and the virtual reality headset. "It enables augmented reality gaming, not just virtual reality, and it enables a shared experience, so you can see and interact with the player sitting next to you." In an interview with The Verge, Jones clarified that he doesn't see IllumiRoom as a direct competitor to the Oculus Rift, but as more of a complement — something that, unlike Oculus, lets him "have a beer while I play Halo."


Microsoft has explored several augmented reality projects in the past, though it seems to have adopted a different tenor around IllumiRoom. Representatives from Microsoft Research, traditionally a more academic branch, have seemed more like marketers in recent months, stressing the impact IllumiRoom could have on consumers. The above teaser video, released yesterday, describes IllumiRoom as a technology that "envisions a next-generation gaming console" — a turn of phrase that, at least ostensibly, suggests the system may be integrated with Microsoft's next Xbox.

Hrvoje Benko, a researcher who collaborated on the project at Microsoft Research, insists that IllumiRoom is still a work in progress, though he stopped short of definitively saying whether it would or would not be integrated with the new Xbox.

"AT THIS POINT IT'S PURELY A RESEARCH PROJECT."

"At this point it's purely a research project," Benko said in an interview with The Verge. Benko added that the mention of next-generation consoles was not an explicit reference to the Xbox, but a look "five or ten years" down the road.

Yet for something that's only a "research project," the IllumiRoom has been publicized with unusual fanfare. Eric Rudder, the chief technical strategy officer at Microsoft, unveiled the system during Samsung's CES keynote this year, introducing it with a slick demo video. Benko acknowledged that the production quality of the video was "definitely higher-end than usual," but a company spokesperson insisted that the clip was only designed to "get people excited about the future of research," rather than tease an impending product release. The researcher also said that to his knowledge, Samsung is not involved with the production of IllumiRoom.

Neither Benko nor Jones would provide a timeline for bringing IllumiRoom to market. Its name, they noted, is only a working title rather than a brand, and they repeated that they have no involvement with its commercialization, which remains under the domain of Microsoft's product and strategy teams. They acknowledge, however, that they have been working closely with both Kinect and Xbox product teams. "There's a dialogue going on continuously there," Benko said.

"WE'VE ONLY SCRATCHED THE SURFACE."

According to the researchers, much of IllumiRoom's success will hinge upon content created explicitly for its immersive platform. Jones says they've created a basic API for game developers to use, noting that it's relatively simple to turn illusions on and off. More complicated actions, however, will require a bit more work. If a grenade rolls out of the screen and into a user's living room, for instance, Jones and game developers will have to decide how to execute that transition from 2D to 3D space, and, as he says, "How much we have to abstract away" from game developers. "That's something we've only scratched the surface of," he notes. Microsoft has conducted informal user studies with a handful of game developers, though the company has not begun talking to external designers about creating games for IllumiRoom.

Jones and Benko plan to tweak the system further this summer (with a public demo at SIGGRAPH in July) though they remain tight-lipped about IllumiRoom's broader future. When asked if he could definitively say that the technology would not be integrated within the next Xbox at some point, Benko repeated his familiar refrain: "It's just a research project."

Sunday, February 9, 2014

Working and Passion

original image is from

Working and Passion, what the meaning of that two word ? Ok, I will try to explain #with my opinion.

Meaning based on dictionary,
Working :having paid employment or functioning or able to function 
Passion :any powerful or compelling emotion or feeling, as love or hate. or strong amorous feeling or desire; love; ardor. or strong sexual desire; lust. or an instance or experience of strong love or sexual desire. or a person toward whom one feels strong love or sexual desire.

Why people working ?
First definition :  based on dictionary having paid employment, it's mean  that people do work just for money :-), is it true ? ask your self, what the answer ? :-)
Second definition : based on dictionary functioning or able to function, it's mean that people do work just for finishing something or do what people functionality on the office. is it true ? ask your self, what the answer ? ;-)

Why people have passion ?
I will just use first definition, because other is same. any powerful or compelling emotion or feeling, as love or hate, It's all about emotion, emotion is always related with feeling if like you will enjoy if you don't like you will not enjoy.
When people doing something related with their passion the will enjoy when doing something, they don't care about money :-). Most of them will spent money for their passion, isn't ?

So Working and Passion must be in one package, you will not have power to finish something if you working without passion and you will never done your work with perfect definition.

Passion is more important than Working, because passion related with feeling and emotion. If you have passion you will never lose you Job and always do everything with perfect result.

The important thing is you need to specify what kind of passion related with your skill. Improve that skill and get job which is related with your passion.

Tips : If you working but not meet with your passion, don't do with powerless. But do it with your best performance even if you don't really like it. But don't forget to spent your time 1 or 2 hour each day to maintain your passion. At least do 10% for your passion.

That just my opinion :-)

Saturday, February 8, 2014

RedHat OPENSHIFT Cloud


Today I will write my experience using Openshift cloud framework from RedHat, It's not just cloud storage but it's complete application framework cloud base. #In my Opinion Openshift based on Redhat Openstack Cloud.

What really I get from Openshift ?
OpenShift is Red Hat's Platform-as-a-Service (PaaS) that allows developers to quickly develop, host, and scale applications in a cloud environment. With OpenShift you have choice of offerings, including online, on premise, and open source project options.
One thing why I like Openshift ? because is about easy development, I don't care about backend from Openshift but I just need care and focused on how my code will work and how it should be deployed. Just in case in Openshift you already have many server language based, you just need to select which one is appropriate to you :D + git integration. It's like one shot. #damn.

First thing that you need to do is sign up, is it easy ? of course, you just need to fill detailed form in sign up form. No need to be worried :D, after finish sign up you will get 3 different application + 1 GB free space. So you can create and develop your application until you really want to release your application.

After sign up success, you can start create new application depend on your based server side language, it's about 5 minute to setup :D. What do you want ? just do simply select and follow the instruction.






In this case I'd like to select and setup DJango framework #coz I like Python :D, you can select which database you will use I'd like to select Postgresql and it will automatically create your git repository in the Openshift, so don't worry you just need to fill ssh key for clone project purpose.

After finish setup application, next step I need to do is to clone my application from Openshift in to my local computer. Then you will get this layout tree after you do git clone.


But it will give different file list, depend on what server side framework do you select. I just need to open setup.py then change configuration field.



The final step I need is just need to push again setup file configuration via git in to Openshift, Openshift will take a rest of installing framework do you need. :D.


Then start create your code and make great and use full application for human being :D

Thursday, February 6, 2014

Inside Larry & Sergey's Brain



Every weekend I always  going to bookstore to find some books to read, I always buy book at least 2 kind of book.

when I walked through the categories of motivational books, I stopped for a moment and look at some of the titles are interesting to read, my eyes fixed on a book titled "Inside Larry & sergeey's Brain". It turns out that this book is a translation of an article written by Richard L. Brandt.

This book seems interesting, then so be it I buy it. Have not had time to read but saw some pieces of the contents of this book seems to be interesting. as follows (I write in Indonesian because this book is translated back into Indonesian)

Mimpi yang dibayangkan dua puluh lima tahun yang lalu belum tercapai. Sampai perangkat lunak menjadi alat paling canggih untuk kolaborasi, produktivitas, dan efisiensi, pekerjaan ini belum juga selesai. Dan, tidak ada yang lebih menyenangkan dari mengerjakan pekerjaan tersebut.

Beberapa mengatakan bahwa Google adalah Tuhan. Lainnya berkata bahwa Google adalah setan. Tetapi jika mereka berpikir bahwa Google memiliki kekuatan yang terlalu besar, ingatlah bahwa dengan mesin pencari, berbeda dengan perusahaan lain, hanya yang diperlukan satu klik untuk berpindah ke mesin pencari lainnya.
This book tells the story of the beginning of the founding of Google, how Larry and Sergey started something of a very simple thought. They both wanted to create something that can make people easy in life, starting with a search engine.

Not only contains about struggles in technical terms, but also contains a recording of the fight against software giants such as Microsoft, Yahoo and other dotcom companies. Their struggle to find investors also tell in this book.

I strongly recommend to read this book, because it is great for motivating. Because the goal is not only in money but what we make can be very useful for many people and make life easy.