Monday, May 31, 2010

Word Reverse in C.

Hello, We've got another problem or should we say a challenge to solve coming from a site which I've been searching for puzzle and stuff. And suddenly I've seen this problem that reminds me of my Freshmen days when I was still on college. I remember the days when I was like. "Whoa?!, what is this stuff?". We'll that's my first impression on Turbo C. So Antique. But my late professor says, "If you want to be a good programmer, Don't forget the basic". And I will never forget that. All hail Prof. Juanito Doctor of De La Salle University DasmariƱas!

Here's the Problem:

Write a program that inputs a string of keyboard characters and outputs the characters in reverse order.

We'll, It's string manipulation time. We will use Arrays and Conditionals to solve this. We need to Exchange the first character to the last character of the string. Then the second character to the second to the last character of the string and etc. Like this....



Read more...

Saturday, May 29, 2010

Divisors of a Number

Hello guys! I've received another email from one of my colleagues in an Online game called Trickster. Here is her email.

Hi Jerome,

Heya Jumi! My professor gave us a homework in programming. Here's the question:

Write a program in C that will list all the proper divisor of a number excluding itself.

Example:

Input: 8
Output: 1,2,4

I'm already picturing in my mind what I have to do but I can't write the proper code for it. Please help.

Much love,
Rose 

Well Rose, Instead of replying to your email, I've decided to post your question on my blog to help other people as well. And yeah, Thank you for emailing me this.

By the way, I've accidentally deleted my Turbo C on my PC and I have to download it again. I searched google and found a site that needs you to register to download Turbo C and I found that very unnecessary. So for you guys that needs Turbo C. Here it is. Turbo C.



Read more...

Friday, May 28, 2010

Lady Gaga's - Telephone Parody

Truly Pinoys has proven another Creative yet a very Excellent Copy of Lady Gaga's Telephone.

The star of the Video Parody Lady Gagita a.k.a. Vinzon Booc a MasCom Student and Harold Palermo  a.k.a. Haronce a High School Graduate Has really done a One Hit Wonder over Youtube! Won't you believe that over two weeks, the Video has reached 500,000 hits! Wow!



Here's the Video of the Parody.




And now. Let's See the Real Video.


Read more...

Thursday, May 27, 2010

Online Freelancing vs Freelancing.

Hey guys. I just want to share an experience with you about Online Freelancing.

Now, What's the difference between Online Freelancing and just Freelancing? Simple, It's just that Online Freelancing can offer you more customers/projects because your market is worldwide. Any person with internet can avail your services. While just Freelancing, You're customers are limited. However, The risk on Online Freelancing is high. Why? Because you aren't 100% sure that your customer will pay you. I mean, They can just bluff you over the net. And that sucks. After you've done what they require you to do, They'll just leave you hanging. Unlike just Freelancing, You may have a chance to talk to your customers personally. And that is good because you can see how serious they are on availing your services.

Anyway, I Listed the Pros and Cons of Online Freelancing and just Freelancing. Here it is....





Read more...

Wednesday, May 26, 2010

Fibonacci

Alright, I've just received my first email coming from Von Espiritu of Quezon City.

Sir,

My college professor wants us to make a program in C that will take an input and make a Fibonacci until it reaches the number input-ed integer. I hope you might help me in my problem because it is our last exercise, indeed a make or break activity for my summer class.

Thanks,
Von Espiritu

Alright, First of all. Von, I am really glad that you emailed me. You're my first email sender by the way. And I am really  grateful to share my solution with you. My college professor also assigned us an activity for fibonacci but it's coded using java. But hey, We programmers don't contain ourselves on a programming languages. We explore more and more. And as long as you have the idea and you know the syntax. You basically can do anything! So cheers to that Von!



Alright. We are going to right this on C. The very first programming language I've learned. I'll just give you the body though, and explain the codes line by line.


Read more...

Tuesday, May 25, 2010

Visual Basis Script (.vbs)

"VBS" or Visual Basic Script. It is commonly attached to HTML and help optimize a website interaction with the user. It is different from the full blown programming language which is Visual Basic. It's just a scripting language. Just like the difference of Java Script from Java.

A file with an extension of .vbs is also a VB Script. But this file can be accessed just like an executable file in your desktop.

It is very common to see a .vbs virus in your flash drive, CD or Hard Drive. Yes! You can create a virus using .vbs. It's either by altering a process, automatically do a process you don't want to execute, or doing a process repeatedly via infinite loops 'till the computer crashes. However, Using VBS can be helpful also with the proper use of the script. You can automatically macro a whole process that could take you minutes to finish with just one click on your .vbs files. It's just a matter of how you use the script.

Example, You have a computer shop and you don't want your customers to access task manager. It is doable with the use of vb. You can turn On or Off the access to task manager. And thus regedit and other shell writing capabilities to protect your business from hacking.

Here's an example of a code to turn off the Task Manager Access.

1. First, Open Notepad or Wordpad.

2. Type this series of codes.


Read more...