Creating A layout.xml For Calculator Layout Design | CalculatorPlus

May 10, 2012 1 comment

We are done creating the layout.xml file for the calculator design, it was a tough one because I was forced to read the design documentation and the design techniques in order the come up with  what design  we want. The important thing that we did was the android:layout_width="fill_parent" because its the thing that makes the row and column to be even and no overlapping between the buttons.

Kudos to the internet of course especially StackOverFlow.

After all the necessary feature of the program is done I’m gonna upload all the codes for the community. Oh and btw that Button H there is the unique feature of it.  We will be implementing it in the future.

In a few weeks we will be coding the it is where all the Java codes will be added and the functions that will make the program a workable piece of awesomeness.



Menu ListAcitivity instead of Acitivity in Android | CalculatorPlus

May 8, 2012 Leave a comment

Its been a while since I updated the Android Project, the reason is that I need to read and study some of Java and its functions its really confusing sometimes. Anyways there is a lot of ways to display the Menu in Android but this method that I’m using is the dynamic way of displaying its contents in the menu, instead of manually setting it up in the Manifest structure, I will just directly call the Activity without the hassle of configuring the Manifest file. So its like shortening the codes that will be using.

Honestly I also learned this method in just watching the tutorial and took me 2 days to fully understand the code then tweak some of it according to my needs. Anyhow here is the picture of the phone screen running the Menu ListActivity, since there is no file about this screen in the layout.xml then the only way to make it appear is the run the whole package.

The menu is pretty much fully set up now we only have to worry about the Calculator Class and SciCalculator Class, I started creating a design prototype of it but then I got lazy 😛

If you’re just starting to develop an android or anything really. YOUTUBE best teacher ever, and oh did I mentioned GOOGLE?

Oh and if you guys missed the previous post about Android Development then click here is the links:

The Philosophy of Rene Descartes

April 30, 2012 4 comments

Rene Descartes familiar? He’s a famous philosopher and a mathematician. He presents his own philosophy with style and he created his own or say he started a fresh start in philosophy in terms of ideas. Hes presentation of philosophy is based on the different ideas of other medieval philosophers and in he also mixed with reasons. Descartes states that if a thing is clear and distinct in the way that it is free from doubts then it is a true knowledge then if a certain things to you made you doubt to it then you should considered it not true knowledge because you doubt it and by doubting it, it means that there is a true meaning to that you just haven’t discovered yet, this theory is called Methodic Doubt. Basically all the arguments of Descartes in philosophy is based on doubts, because when you doubt the more you get curious and the more you understand things.

Cogito ergo sum   meaning “I think, therefore I am” Descartes emphasize that if you think then its the bases that you exist in this world. Other form can be “I think, thus I exists”.

Descartes believes that human body is a machine that can live on its own without the help of the soul contrary to what other medieval philosophers like Plato, Aristotle, St. Augustine and St. Thomas of Aquinas, that body cannot function without the soul. One thing that makes it true is the parts of our body that make us move or alive. Like the different systems in our body, Lungs, Heart etc.

Res Extensa (Extended Being) – its basically the things here on the world that occupy space meaning everything that occupy space, corporal. Its capable of living without the soul.

Res Conjitans (Unextended Being) – its the things that doesn’t exist its the idea or form, immaterial, incorporal. E.g: Soul.

And with that example he argued that we human beings does not need soul in order to live though he said that it doesn’t mean that the soul is unimportant to us because it serves us the our awareness, consciousness and direction. For example a car, the car represents the body, the car can start or function but it needs something for it work efficiently so that’s when the driver comes in which represents the soul, so much so that it gives the car a sense of direction because of the driver. Just like the human body together with the human soul.


the more I sought to inform myself, the more I realized how ignorant I was.

 – Rene Descartes

6 Different Levels Of Fatness

April 28, 2012 6 comments

Ahh Hell no! Hahahaha

I love this guy.

If you guys want more of him visit his youtube page here.

This Idiot Tried to Hack My System

April 28, 2012 Leave a comment

I wonder how the hell he did it, but it sure is that he is successful, he RDP’d my ass for 50 seconds and then boom his gone. My guess that he sniffed into my open port I have set and from there I had no clue what else happened. I’ve scanned all the security holes but no luck including the firewalls and router security policy.  He disable my audio, crashed my vlc and closed the chrome.  Son of a bitch!

Batch Commands That Gets The Jobs Done

April 25, 2012 Leave a comment

That task is about file transferring, we need to transfer the files that the Agents recorded on their calls throughout the day. Since each agents can create almost 50+ calls. Each folder can go up to 500 MB of size, say there are 60+ agents that’s 60 folders of 500MB size. Thats a long wait for a transfer specially the transfer method is networked,  meaning from WindowsOS to CentOS using Samba Drive, and did I mention the OS difference? Yes,  Samba is a interoperability software that aids the Windows in transferring files to another OS, in short it acts as a middleware between Operating Systems, not only that it also supports printing and filesharing, for the CentOS it is a variant of Linux Operating system and it is a free OS. Why CentOS? Ask the company XD.

Anyways I’ve created a simple code in Batch that will automate the file transferring because the usual method of transferring the file is through copy paste and wait until the loading is done. You probably think that why not copy paste them all?! Well you can but then it will take you forever the finish the files at least for my experience because the computer that holds the data is weak and outdated. It has to be one at a time to keep the system stable at the same time the computer wont hang up.

So what I realized that doing this over and over again is too much hassle especially we are also busy doing things in the field like Network Cabling, we have to be in the field early morning to finish the cables that we are supposed to finish.

I’ve made a simple file transfer tool from batch commands,  it doesn’t speed up the transfer rather than it automatize the routine of copy all files in a folder and transfer it to the other folder and do it again for 60 times.

The crucial part of the program is the check  size of the folder  because there are no built in commands in in identifying the size of the folder rather it only supports the size of the file so I had to search of a solution and found that algorithm in the internet. Thanks internet 😀

If you guys ever want to script batch commands,  I just started reading the wiki and few samples and then after 3 hours I’ve made this script. It took me less than a day to finish the script. Though it looked like it is working but there are things that needs to implement in the script, I need to implement the log system wherein it records the activity that it executes like the date, time and also the size of the folder to compare their folders for authenticity of the files.

Read this articles and you will be scripting this awesome commands in no time:

%d bloggers like this: