Wednesday, August 4, 2010

Calling Other File

1. Open your notepad and save with name test.bat

2. Type syntax below :

@echo off
echo Hello, I'm File in Test.bat
call filecalling.bat
exit

3. Save it, and open a new notepad and save with name filecalling.bat

4. Type syntax below (in filecalling.bat) :

@echo off
echo Hello, I'm file in filecalling.bat
pause

5. OK, do you see call syntax? Yuph, it's function is for calling other file to include in our file. Finish.

Showing Message

1. Open your notepad, and save it with name test.bat

2. Type syntax below :

@echo off
echo Hello Batch, I'm Coming
pause

3. Save it, and try to open it. What happened? You'll find text "Hello, Batch I'm Coming" and below the text "press any key to continue". Understand? echo syntax is for showing message in your cmd, and pause is for pausing your cmd (press enter to exit or any key).

4. So, try to change @echo off with @echo on, what happened? Understand?

Showing Pop Up

1. Open your notepad and save it with name test.bat

2. Type in your notepad :

@echo off
msg * Who the Hell Are You?

3. The syntax msg * is for showing a pop up, and then finish.

4. If you open test.bat you will face the pop up with "Who the Hell Are You?" text.

Make Simple Calculator In Delphi

OK, now I'll show you how to make simple calculator in Delphi (including Addition, Subtraction, Multiplication, Division).

1. Open Your Delphi (Delphi 7).

2. Click File -> New -> Application to create new application.

3. Input component into Form (in standard component palette) below :

1 Combo Box
2 Edit
1 Button
1 Label

4. Click ComboBox 1, and Click Properties (in Object Inspector) find Text and let it empty. Do the same step for Edit1 and Edit2.

5. Double-Click your form adn type syntax below :

procedure TForm1.FormCreate(Sender: TObject);
begin
//Adding Operator to Combo Box
ComboBox1.Items.Add('+');
ComboBox1.Items.Add('-');
ComboBox1.Items.Add('x');
ComboBox1.Items.Add('/');
end;

end.

6. Above syntax is for adding operator to combo box.

7. OK, now double click Button1. Then type syntax below :

procedure TForm1.Button1Click(Sender: TObject);
var
number1, number2 : integer;
begin
number1 := StrToInt(Edit1.Text);
number2 := StrToInt(Edit2.Text);
if ComboBox1.ItemIndex=0 then
Label1.Caption := IntToStr(number1+number2)
else if ComboBox1.ItemIndex=1 then
Label1.Caption := IntToStr(number1-number2)
else if ComboBox1.ItemIndex=2 then
Label1.Caption := IntToStr(number1*number2)
else if ComboBox1.ItemIndex=3 then
Label1.Caption := FloatToStr(number1/number2);
end;

end.

8. Yuph test your coding with press F9. Try to fill number and choose operator and then click Button. Woozaahhh, you will get the result in Label1.

Note : If you want to change the name of Button1, Click Button1, then in Properties Object Inspector, Find Caption and change.

How to Changing Your Windows XP Boot Screen Logo

1. First, you must have tools called "BootSkin", you can download here.

2. Yuph, since you have downloaded BootSkin, you must install it (Yeah sure, you can do it!).

3. OK, now you've installed BootSkin in your machine. Now, open BootSkin in you will face window like below :


4. Select your favourite bootscreen and since you finish selected, click Apply to change your bootscreen. Test whether your bootscreen is changed with booting your windows XP.

5. If you want to have more Boot Screen, you can download it in here

6. How to added boot screen to bootskin? Click File -> Import From File and choose where you store your bootscreen and Click OK. It is Simple, isn't it?

Tuesday, August 3, 2010

How to Sharing File Between Ubuntu and Windows


In here I will posting about how to sharing files between Ubuntu and Windows XP.
OK, Let's check it out.

1. You must login into your Ubuntu machine. (You can't? Don't lie to me.)

2. OK, now you have access to your Ubuntu machine.

3. Open your terminal (Like Command Prompt in Windows).

4. OK, since you are in Terminal (Shell), you must doing your first task (Not assignment, I'm certain). Type : sudo apt-get install samba to get samba from the website. (Oops, I forget. You must have connection to the Internet if you want to get the samba (Samba in here is tools that have task to sharing data between Linux, Windows, etc. Not a dance))

5. Wait until you've samba in your Ubuntu machine.

6. To make sure that your samba is working well, download one samba again. Type : sudo apt-get install samba4 . After finished downloading you can check it with type : samba. If there is no whatever attention, it mean you've succesfully installed samba in your Ubuntu machine.

7. So, let's keep on the track. Now, you must go to root. Type : cd / . Then, check where you stand. To check it, type : pwd . If the system explain that you are in /, it's mean you are in there (root).

8. Yuph, now you must create a directory for your sharing files. Type : sudo mkdir foldershared . OK, the syntax mean that you command the Ubuntu machine to create new folder. Now check with type : ls -l to make sure that you've make a new directory. The command is mean that you want to see all the directory that exist in root where you are there.

9. OK, after making a directory, you must make sure that your folder (foldershared that you create before) owning by yours. Type : chown thenelse:thenelse foldershared . Don't type the same syntax with me, change thenelse:thenelse with your name to login.

10. Now, we will setting the password of our samba. Type : sudo smbpasswd -a thenelse . Then, type your password twice.

11. Next step, check your workgroup name in your Windows Machine. Press Windows + Pause Break to go to System Properties. Then, go to Computer Name Tab. See the name of your workgroup and remember it.

12. Back to your Ubuntu machine. Type : sudo vi /etc/samba/smb.conf. This syntax is useful to edit samba configuration file.

13. OK, now you will face the samba configuration file. Scroll down until you find the name of workgroup (same as windows). Since you find the name of workgroup, then you must change the name of your workgroup and the name of it must be same with the name of Windows workgroup (Press Insert to start changing the configuration file). After that, you must scroll down to the bottom of page or the blank page. Yuph, now you will edit the configuration of samba. Type :

[sharedname]
path = /foldershared
available = yes
valid users = thenelse
read only = no
browsable = yes
public = yes
writable = yes

14. OK, now you've configurated the samba configuration file. Since you finish type the syntax above, you must press Escape and type ":wq" without quote to save the file and quit from editing samba configuration file.

15. Now you're back to the shell. Type : sudo /etc/init.d/samba restart to restart the service of Samba. OK now check your IP Address with command ifconfig . Remember your IP Address and then back to your Windows machine.

16. Go to run with pressing Windows + R.

17. Type : \\IP_Address_Your_Ubuntu_Machine\

18. OK, now you'll face the Windows of Samba server. Click folder sharedname and you'll face the blank of folder. Try to create folder in there in give it the name. Example : My Sharing Folder .

19. Go back to your Ubuntu machine. And now you must go to your folder that you make before (foldershared, yeah it's the name I've got it). Type : cd /foldershared.

20. Now, check what happen with your folder named foldershared. Type : ls -l to see.

21. OK, after you typed the command, I'll certain that you will find the folder that name "My Sharing Folder" without quote.

22. To make sure that the samba is working well. Now, check with make folder in your Ubuntu machine. Type : sudo mkdir "My Sharing Folder in Ubuntu"

23. OK, back to your Windows machine and check, whether in there are a folder named "My Sharing Folder in Ubuntu", it's mean you're successfully sharing file between Ubuntu and Windows. Congratulations.

Welcome To My Blog !

Hello guys, welcome to my blog! Let me introduce myself. My Name is Yoga Hapriana a.k.a Yoga Thenelse or shorter Thenelse . Oops, Thenelse. What does the mean ? Yeah, It's no mean. It's only an alias from my name . You might be ever found a name Yami, Kenza, Ryazor, or Vander, It's me too. Sorry, too long for explain it.

Currently, I'm a student in SMK PU Bandung (Vocational High School) on 12th grade. Almost graduate, Yuph. I'm wating too long for this time. I took TKJ in majors (Network Computer Engineer), cause my dream is creating some great things with computer (but for now I can't, remember my skill, is too amateur for this dream).

In this blog, I'll write what I have and what people want (I hope) about Computer (Linux, Windows, Programming, Hacking, etc) including My Side Life. Cause my principle is sharing what I have with everyone (no all of them). Maybe I also will write some article about band and whatever relate to.

I think is enough for introduce myself, cause I can't explain myself in more word (too much). Thanks for read this introducing, and thanks for visit my blog.