Archive

Archive for the ‘Computer Programming’ Category

What’s wrong with capstone

December 14, 2012 Leave a comment

Capstone_bannerA friend of mine recently told me that my school’s department or section don’t have a thesis. I reacted because we have thesis and that thesis is

“The Capstone” but she told me that it’s not a thesis, because a thesis is the innovation of technology, more of like reinventing the wheel rather than improve or fixing bugs of the past system.

It’s kind lame isn’t it? Thesis should be more on innovation, creativity and art. It should have the element of simplicity and addressing the problem in our society. For me I don’t think that thesis which involves hotel reservations is called thesis at all, “in fact i call it the improved version of the last” or what ever the hell that means.

My point is that capstone shouldn’t be based on the company’s need but rather the society needs, the needs that haven’t been discovered it should be creative at same time artistic. It should be innovative like what this guy create. You see if we just think outside the box and let our artistic side do the thinking then many of us would rise to the occasion.

Like for example I have an idea that would involve the society and a very helpful one that no one has invented yet  its a very thesis worthy I’d like to think of it that way.  But the problem I can’t do that anymore because what’s in the rule is “FIND A COMPANY AND MAKE WHATEVER THE HELL THEY WANTED” .

You can just imagine if the whole world works that way. No creativity just bullshits.

I really hope  you get my point. 🙂

Advertisements

Too much to do, so little time, so freakin lazy, and I’m going crazy.

June 24, 2012 2 comments

It’s been forever since I last  worked on my pet project, It’s like 2 weeks, its probably because I’m adjusting to my new schedule and school stuff, plus I needed a rest it’s been two months since I last slept well because of my work, and I really needed a break.

While I’m on break I always think of a ways to get closer to coding, lol in my mind there are a lot going on, I can’t focus on one things because I’m too busy thinking other stuff. It’s like walking in a strange place and doesn’t give a damn on new things I see, for example there are a lot of new faces I see in the campus, including freshman chx, but I didn’t gave a damn. I’m thinking of a lot of things that I feel like my brain is about to explode, and thats a bad sign.

Anyways first week of schooling is awful almost all of my colleagues are busy on their OJT and its like I’m out of place. I don’t have anywhere to hangout except the INTERNET cafe and it sucks because I had to spend 60 pesos just to passed 4 hours of time so I can go home in the afternoon. and I don’t really have a choice so ya.

Actually I had a choice, I could go to the new library at our campus but the question is what the hell am I gonna do in there. I’m even lazy enough to work on my project and its like forcing me to study 4 hours just to passed time and thats fucked up. Now I missed working, school is really boring. Work is fun because you receive money by doing what you love and that’s something everybody wants.

Anyways last few days, something came up after I woke up,  EUREKA!!!!

I decided that to get me started on coding again, I though of learning Object Oriented Programming on PHP. It’s useful because I’m working on my Web App and its a good plus if I have also knowledge in OOP.

What I did in order to get started in studying OOP, I have to do a quick research on what is OOP. Then I found out that I already took this or familiar with OOP, it’s is included on ICT121 Data Structions, the typedef student struct(){} thingy if you still remember. And Sir Victor Lapin an application developer also taught me some techniques in OOP and that gave me idea about OOP.

Anyways it turns out that the concepts is quiet hard, I have to do several trials so that I can grasp the idea and then created my own OOP and added it to my pet project.  At the end of studying I came up with this codes.

?php
class Database {
public $host = "localhost";
public $username = "root";
public $password = "";
public $database = "InventorySystem";

public function __construct() {
$this-->

public function MysqlCheckConnection() {

/**

* @desc Check if the mysql_connect is succesful or not.

*/

if (!mysql_connect($this->host, $this->username, $this->password)) {

die("Cannot connect to <a class="zem_slink" title="Database" href="http://en.wikipedia.org/wiki/Database" target="_blank" rel="wikipedia">Database</a>, please fix Connection/ folder.");

} else {

return true;

}

}

public function MysqCheckSelection() {

/**

* @desc Check if there is a database to select.

*/

if (!mysql_select_db($this->database)) {

die("Cannot select a Database, Database $this->database does not exist please fix Connection/ folder.");

} else {

return true;

}

}

}

$connect = new Database();

It’s really great because I have discovered new perspective in programming, I can now create custom functons and define what specific commands I would implements.

So overall its really fun learning OOP, though I only learned the basics, I will push through and continue to moderate level of OOP.

The above codes is my codes in connecting to the database, though its not that necessary to OOP that db connection but I feel like it and its cool!

Quick Update:

I’ve started on my InventorySystem, I will post its repository in my next post probably this week because I had to complete its interface.

I will also edit the source code page and put links to my github account for those who wants to develop the site further.

Peace!

There is always time for everything. Prioritizing is important.| New Projects and New Adventure!

June 11, 2012 4 comments

Lately I’ve been busy in a lot of things I have OJT and I’m also working part time on my projects, e.g Android Apps and etc. But then I just realized that it doesn’t make sense anymore, I can’t continue with the project atleast for now because I have better things to do.  So I will probably stop the android development for a while in order for me to focus on much more important things. Especially classes is starting, and I’m haven’t finished my OJT (10 days left thank God) . And I’m excited because I can be able to work on my projects and prioritize on things that I needed to do to improve myself.

You guys probably noticed that the site has gone inactive for a while, its because I’m working on something interesting, I’m working on making an application or web application, I will not tell all the details but at least I’m telling this just let you know I’m still alive, barely breathing though lol.

I’ve been working on this website for like 2 weeks and I think 3 days if I can remember, working 2 hours morning, OJT in the rest of the day, and about an hour or two when arrived at home. In those 2 weeks I’ve covered a lot basics on web development, I learned PHP, HTML 5, CSS atleast the concepts I guess that’s the important thing to learn, the concepts. Right now I’ve reading jQuery and Javascript its like 5 days and I’m still in progress to learn those languages hopefully soon. This website is one of our projects in school but I did’nt do my best developing it at school, and I really want to improve it more and now I can finally develop it more and improve it because time permits me to.

 

inventory website

 

I don’t feel tired at all but there are times that I just wanna lie in bed and hope in morning I can fully recover from exhaustion. I’ve never worked like this in my life, its like it was the first time and it was good, for the fist time, I’m doing things that is very productive everyday.

Life is too short to spend it on worthless things at least in your different perspective. I guess it really true that when love what you do, then you will never work a day in your life take me as an example.

Anyways in the latter part of the development I will do a documentation of the web application breaking the application into bits and pieces of codes and to give a little tips xD.

Source Codes will be upload soon.

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 command.com 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:
Aumha
Wikipedia

Bits And Pieces of The Application

April 24, 2012 4 comments

Yesterday we presented the overview of the application plan. Now we will try to explain each of them and the intents of each of the Activity(Pages). We will start on the SplashScreen Activity:

public class SplashScreen extends Activity() 

This here when the user click the icon the first thing that will happen to the application, it will show the logo, title and the version of the application. Usually SplashScreen isn’t really that necessary because we can operate even though it is disable, We will  implemented it for the purpose of beautifying the application. This is the first thing that I will do since it only takes few codes the work.

public class MenuMain extends Activity()

After the SplashScreen this is the next thing that will happen to the application it will direct the the MainMenu Activity . There is a lot of ways to implement menus but since we are aiming for simplicity we will just use buttons. Buttons are great for everything when you get used to it, a whole new world of ideas you will discover. Maybe for the future projects we will use the more advance method of menus like widgets.

 public class CalculatorMain extends Activity()
public class SciCalculatorMain extends Activity() 

 This is where all the magic happens this is where the core of the application is, we will codes together on this area more often debug stuff and shit. Since it needs to have a database to store the last 5 equations, we will have a research on SQLite platform on Android since we don’t have any idea on how to implement it or try to see if there is any other solution rather implementing the SQLite.

public class AboutApp extends Activity()

We will put in here the ones who help contribute to the project, the one who is supporting it and making this impossible stunt possible. We will get famous in no time guys. haha

Thats it for now,  tomorrow I will probably create the visual images of the application and take a screenshot and show it to you guys, I will also show you how to make the UI its as easy as 123 trust me.

BTW naa nay ni sign up isa ka bouk for the Designs sa application lamats kaayo bai, due to his request dili sya paila hehehe

Regards,
Bryan

Rough Draft Of The Calculator App

April 23, 2012 Leave a comment

I just finished with the rough draft, basically this is the flow or somewhat pages of the entire application, It would be best if we have an icon, logo, background but that is really not important at the moment, we need to first make each pages and make features in each and everyone of them. At the end of the week I will create a written Project Proposal for everyone to read and code some of the parts in order for the project to start running.

Some of you might be wondering why Calculator? Calculator because it is a very simple program yet we can cover almost all the basic android programming terms on how to code. So its like we are familiarizing the Android Development by building a simple calculator after this we can continue making more complex applications and move forward. One step at a time guys. WE CAN DO THIS.

Anyone can join or just watch on how to develop applications or ask questions.. really guys we really need your support!

For anyone who wants to have the developer’s kit on Android I have the complete files if ever you want to have one. Its easier for you just get it from the usb than to download because it takes hours to download all the files.

For those who want to start reading about android development please go to their site Android. All the things are found their including the downloads and tutorials, I’m recommending you guys if you start on HELLO WORLD app so that you can grasp parts of how to code inside Android.

*And for those you want to learn designing naa sad didto on how to design the logo icons background.
Pag practice2x lang sad ug Java kay mao rajud atong gamiton sayun ra ang Java basa2x lang gud.
Mag himu pud ko ug site nga dedicated ani nga project so everyone can sign up and post their ideas works and etc in the site so every can see.

TINABANGAY TA!!!!!!!!!!!!!!!!! I KNOW ICT STUDENTS MGA BRIGHT UG MATINABANGON
TRUST ME GUYS DAGHAN TAG MA LEARN ANI NOT JUST SA ANDROID BUT OVERALL. 

PEACE \m/

Looking For Amateur Talents in Java Programming and Android Development.(Programmer and Designer)

April 21, 2012 4 comments

Hello I’m looking for amateur talents who can help me create an applications. My purpose of this is to help myself grow as a programmer and I can’t do this alone so I’m looking for someone who shares interest in programming and visual designing. The platform that will be using is Android Application Development and probably most of you already familiar with Android and its applications. Basically we will be create a simple program and then continue to grow.

Requirements would be:

Basic programming in C
-Basic understanding on Java Programming
-Have high motivations
-Basic knowledge in photoshop

Additional Requirements(A Plus Not recommended):

-Has an Android OS in their cellphones
-Carolinian
-Has high end PC
-Already knowledgeable on Android Application Development
-Finished subject 121(Data Structures)

Future Projects:

-Calculator/Sci Calculator
-Phonebook(with SQL Database)
-You guys can suggest!

Notes:

I’m only looking for interested people and amateur in programming because I myself is also an newbie and it will just intimidate any newbie if they see super imba programmers.  But any professional programmers is more than welcome to join for consultation purposes.

There is no deadline in this project and you can work as long as you want whenever you want to work I don’t really mind as long as we communicate because we are just in the same school might as well we will have a meeting to talk about our progress in the development. I actually have many ideas to mind as what will be the applications that we will do.

You must also know that I’m not a professional programmer i just learn by reading a book online so don’t just rely on the teacher to learn you must be resourceful in studying. But if you have questions you can ask and I will do everything I can to help you guys.

If in the future our plans can push through we will be using a versioning service so that we can keep track of our work so we can manage and compile the codes properly. The service that we will use is GitHub go the the site and read more about it. Remember if you really love programming, you don’t need a teacher for you to grow.

You can contact me in facebook or leave a comment here or better yet text me(09329091453). But I still have a work so I will come back to you as soon as I can.

You help me I help you and together we will grow.

You scratch my back, I scratch yours.

Best Regards,
Bryan

%d bloggers like this: