Wednesday, May 7, 2014

pkg_config libvala problem

Today I resolved error when compiling monodevelop from git source, that need libvala-0.12 or higher. But when I installed libvala-0.22 and try to ./configure there is error appear, it said that libvala-0.12 not found. :-(

No package 'libvala-0.12' found

Then I googling but nothing result to solve, but I figure it out pkg_config is program that extract information from *.pc about installed library. Then I find libvala-0.22.pc in my Ubuntu OS.

amru@blackstar:/usr/lib/x86_64-linux-gnu$ sudo find / -iname *.pc | grep libvala
/usr/lib/x86_64-linux-gnu/pkgconfig/libvala-0.22.pc

Got it, then I create soft link using "ln" command,

amru@blackstar:/usr/lib/x86_64-linux-gnu$ sudo ln -s /usr/lib/x86_64-linux-gnu/pkgconfig/libvala-0.22.pc /usr/lib/x86_64-linux-gnu/pkgconfig/libvala-0.12.pc

VIOLA, ./configure work prefect :D.

Monday, March 3, 2014

Setup JQuery and Ajax on Django Framework

This based on my experience using JQuery Ajax on Django Framework, the first thing and basic thing to do setup JQuery on Django is about static file.

What is static file ?
Let say static file is file that never changed when page is loading, if you already familiar with web programming you should know about .css, .js , image file, .html file. And then let say those file is static file :-).

How to setup static file on Django ?
# Create static folder under your Django project, place it in same directory as manage.py

Saturday, March 1, 2014

Koding.com the social collaborative plaform

Last time I tried openshift from RedHat, it's good platform. But there is some thing that I don't get is about root access to virtual machine, and live code editing :-), with koding platform I get 20GB for a free, root access to virtual machine, live code editing, social collaborative and the best part is I don't really need local setup for development because I can code on the fly for testing app :-).

The thing is we need to register to koding.com to get 20GB free storage and awesome platform.

With this I try to create web application, but still in progress hope I can finish this in 2014 :-) and make something useful for other people.

Some awesome feature:

1. Social Development, also you can create interactive class for tutoring



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.

Friday, January 31, 2014

I Love to Read

It's so long time that I am not write something here, hehe..programmer life :-) #You know I mean.

Work as programmer it's kind like spending Your time to reach deadline, because if You not reach the deadline it will be make every single things chaos.

But I will not share about my tight schedule on my work in this post but I will share about why I love to Read #book.

Yes it's about reading book. I like to read physical book than digital book, don't know the reason but when I read physical book there is something different in feeling and enjoyment. Then I try to find some fact about read the book, and I found it.

Here some reason why we should read the book, the original article title is,

"7 Unconventional Reasons Why You Absolutely Should Be Reading Books"

In a world of omnipresent screens, it can be easy to forget the simple pleasure of curling up with a good book. In fact, a recent HuffPost/YouGov poll of 1,000 U.S. adults found that 28 percent hadn't read one at all in the past year.

But the truth is that reading books can be more than entertainment (or a high school English assignment). A study released earlier this month suggests that enjoying literature might help strengthen your "mind-reading" abilities. The research, published in the journal Science, showed that reading literary works (though, interestingly, not popular fiction) cultivates a skill known as "theory of mind," which NPR describes as the "ability to 'read' the thoughts and feelings of others."

And that's hardly the only way being a bookworm can boost your mind and well-being. Below, six more science-backed reasons to swap the remote for a novel.

Reading can chill you out.

Stressed out? Pick up a paperback. Research conducted in 2009 at Mindlab International at the University of Sussex showed that reading was the most effective way to overcome stress, beating out old favorites such as listening to music, enjoying a cup of tea or coffee and even taking a walk, The Telegraph reported when the findings were released. It took the study participants just six minutes to relax (which was measured by evaluating heart rate and muscle tension) once they started turning pages.

"It really doesn't matter what book you read, by losing yourself in a thoroughly engrossing book you can escape from the worries and stresses of the everyday world and spend a while exploring the domain of the author's imagination," study researcher Dr. David Lewis told The Telegraph.

It could help keep your brain sharp.

A lifetime of reading might just help keep your brain in shape when you reach old age, according to research published earlier this year in the online issue of the journal Neurology. The study, which included 294 participants who died at an average age of 89, found that those who engaged in mentally stimulating activities (such as reading) earlier and later on in life experienced slower memory decline compared to those who didn't. In particular, people who exercised their minds later in life had a 32 percent lower rate of mental decline compared to their peers with average mental activity. The rate of decline amongst those with infrequent mental activity, on the other hand, was 48 percent faster than the average group.

"Our study suggests that exercising your brain by taking part in activities such as these across a person's lifetime, from childhood through old age, is important for brain health in old age," study author Robert. S. Wilson, Ph.D., of the Rush University Medical Center in Chicago, said in a statement. "Based on this, we shouldn't underestimate the effects of everyday activities, such as reading and writing, on our children, ourselves and our parents or grandparents."

And it might even stave off Alzheimer's disease.

According to research published in the journal Proceedings of the National Academy of Sciences in 2001, adults who engage in hobbies that involve the brain, like reading or puzzles, are less likely to have Alzheimer's disease, USA Today reported at the time. However, the researchers identified only an association, not a cause-and-effect relationship: "These findings may be because inactivity is a risk factor for the disease or because inactivity is a reflection of very early subclinical effects of the disease, or both," they wrote in the study.

"The brain is an organ just like every other organ in the body. It ages in regard to how it is used," lead author Dr. Robert P. Friedland told USA Today. "Just as physical activity strengthens the heart, muscles and bones, intellectual activity strengthens the brain against disease."

Reading may help you sleep better.

Many sleep experts recommend establishing a regular de-stressing routine before bed to calm your mind and cue your body up for shut-eye -- and reading can be a great way to do so (just as long as the book isn't a page-turner that'll keep you up all night). Bright lights, including those from electronic devices, signal to the brain that it's time to wake up, meaning reading your book (under a dim light) is a better bedside bet than a laptop.

Getting lost in a good book could also make you more empathetic.

According to a study published in the journal PLOS ONE in January, losing yourself in a work of fiction might actually increase your empathy. Researchers in the Netherlands designed two experiments, which showed that people who were "emotionally transported" by a work of fiction experienced boosts in empathy.

"In two experimental studies, we were able to show that self-reported empathic skills significantly changed over the course of one week for readers of a fictional story by fiction authors Arthur Conan Doyle or José Saramago," they wrote in the findings. "More specifically, highly transported readers of Doyle became more empathic, while non-transported readers of both Doyle and Saramago became less empathic."

So go ahead, let yourself get caught up in a particularly compelling story, or swept away by a powerful character -- it's good for you!

Self-help books, on the other hand, can ease depression.

Self-help books might actually help you help yourself. A study published earlier this year in the journal PLOS ONE showed that reading self-help books (also called "bibliotherapy"), combined with support sessions on how to use them, was linked with lower levels of depression after a year, compared to patients who received typical treatments. "We found this had a really significant clinical impact and the findings are very encouraging," study author Christopher Williams of the University of Glasgow told the BBC. "Depression saps people's motivation and makes it hard to believe change is possible."

And self-help books could even work in cases of severe depression. According to a University of Manchester meta-analysis published earlier this year, people with severe depression can benefit from "low-intensity interventions," including self-help books and interactive websites, as much or more than those who are less severely depressed.