Search This Blog

Wednesday, April 25, 2012

How to execute multiple command in DOS or Command prompt

Hello guys here I am again to share some knowledge that I have learn to my fellow programmers.

Usually we use to execute command in the DOS or command line using per line of command like the example below

cd\  - goto root path or directory
cd Test - goto Test folder inside the root path or directory
Looks simple but how about if we want to execute this command in just one line? Seems hard but it's not. With the use of ampersand we can execute the above 2 command with just one line. Below is the example on how do it.

cd\   & cd Test 

With the use of ampersand we manage to execute this command to the DOS or command prompt in just one line.

Ok thats it again guys, this may seems not a good topic but like me I thought I may not be doing this command file scripting yet there are still some scenario wherein you as a developer or programmer need do this or run this bat file command.

Thanks for reading guys.


Thursday, April 19, 2012

My 1st day work Experience as a programmer

It's been very long time since I visit my blog thanks to my slow internet connection I managed come here and write something ^_^

I thought at 1st that after graduation it would be easier yet I'm totally wrong, few weeks from now I will be soon to graduate from college and while waiting I've been passing severall application letter online.After passing some application I've got some few responses as well asking me to come for an interview or exam. I remember the 1st time that I take exam to be a junior programmer for some company, too bad it ended up not good due to lack of review from my programming skills or overall I can say lack in preparation. Time passed by and this kind of outcome from an interview or exam continue because of my lack in preparation before going.

One day I got some reponse again from my application letter that I've been passing thru online asking me to go for an interview and then while I'm about to sleep the idea came to my mind that if I continue this mess going to an interview or exam without even some prepation I will not definitely land a job.Because of that idea I said to my self tomorrow I will defintely review and prepare my self, luckily I managed to get the job a Junior Programmer though  the salary is not yet that high enough  :)

I was very happy that I managed to get a job that suits the thing I know then my 1st day of work arrived. I was quite nervous due to the fact that I'm quite the shy type guy and there I dont have any friend or relatives to accompany me. It was so hard for me to adjust because also because at 1st I though I thought I'm just a entry level programmer or fresh recruit that will have some training but no it was not :( too bad for me. I then realise that I am a replace for someone that resign and there is some though of mine that  I might not be able to surpass the one that I replace because of the level that I currently know. It was really quite a hard thing to deal with it yet I said to myself there's nothing wrong than trying because I cannot achieve something without even risking to try.Luckily day by day I manage to learn alot and having use to my fellow office mate.

Quite boring story of mine but I think this kind of scenario happens alot and I hope that this experience of  can help others out there :) Just a friendly reminders always be prepare dont be afraid to risk because you can't achieve your goal if you did not even try it.

Sunday, May 1, 2011

How to connect vb.net winform app to MS Access 2003

Hello my dear viewer in this article I'm going to show to connect your Visual Basic.net Windows Application to MS Access 2003.

Now to get things started open your ms access 2003 and create a database name it "sample", if your  version is 2007 or onwards don't forget to save as the database in 2003 format. To check if your database is in 2003 format the extension file should be ".mdb".

  • After we create the database, open your visual studio and create a project. To create the project go to "file>new>project" choose visual basic as the language and the type should be Windows Form Application.


  • For the name of the project type "sample" and for the location and solution leave it to its default and press OK. 



  • Now to start the coding double click on in the form1 and this should be in your screen now.

  • First part of the code is we need to declare our import, click your mouse cursor before the Public Class Form1 and hit enter. After that type “Imports  System.Data.OleDb ". 
  • Now that we declare our import next would be to declare is our oledbconnection. The purpose of oledbconnection is it acts as a switch to open or close the connection to our database. Click your mouse cursor below the Public Class Form1 then type "Dim con As New OleDbConnection".
  • After declaring our import and oledbconnection we need now to specify our connection string and open our connection to check if it really connects to our database. Click inside between the private sub and end sub then type the following line of code. 
con.ConnectionString = "Provider= microsoft.jet.oledb.4.0;" + _
"data source=c:\sample.mdb"
con.Open()
MessageBox.Show("Connected")
con.Close()


  • If you notice in our connection string the provider we need to use since we are using MS Access 2003 is microsoft.jet.oledb.4.0 and for the data source is where our database is located. In this example I choose to place my database into my drive c so that it will be easier for me to locate the database. For further connection you can check this link connection strings.

  • Below is the picture how the code should look like now.
      
    Thanks for reading and hope this article help you. If you think this article is helpful kindly share or refer to other thanks.

    Saturday, April 30, 2011

    Hello viewer

    Sharing knowledge is not about giving people something, or getting something from them. That is only valid for information sharing. Sharing knowledge occurs when people are genuinely interested in helping one another develop new capacities for action; it is about creating learning processes.






    A very inspiring quote isn't? By the way I'm Jordan N. Capoquian currently a 4th year student in STI College Las Pinas and taking B.S. in Information Technology. Sharing knowledge that's I learn that’s the main reason for me to create this blog. To give some preview on what you might perceive, this blog aim about computer programming. Yup it’s about computer programming, my passion for programming start when I'm in high school. One day my cousin invite me to play some computer games and I was very happy that time because that's the first time I had played computer games. Because of the happiness I felt that time, a big question came up in my mind that is “How do they create this computer games I am playing?” Few days of research and the answer came up and that is computer programming and after high school graduation I decided to take a course related to computer programming. Now here I am 1 year before I graduate starting to write this blog help others who have passion in computer programming also.