Syntax Rebels 'N More

Monday, December 31, 2007

Preparing Yucca for the Next Year

In the final Yucca update for this year, I have added another necessary feature for all those countries that are converting to the Euro currency tomorrow. In Malta for example, businesses are required to keep accepting payments in Maltese Liri until the end of January, but need to give the change in Euros.

No problem with this Yucca update. Apart from selecting the invoice currency as before, now the cashier has the option to select a different currency for giving change to clients.

As usual, the download can be found at Yucca Online website at http://yucca.syntaxrebels.com/

Wish you all a happy and prosperous new year!

AddThis Social Bookmark Button

Sunday, December 23, 2007

Easter Crisis Sure is Popular

Just received from 123 Free Download:

"We are happy to announce that your software, 'Easter Crisis 1.0', are more popular than 76% of another software, represented on our site. This indicator is calculated with help of the special formulas, which are our know-how. You can place the indicator of popularity of the your software product on your site. At this moment the indicator of popularity for your software will be the following:

puzzles :: easter-crisis

This indicator is the dynamic. It reflects the state of your indicator of popularity for 'Easter Crisis 1.0' in the current situation."


Better than 76% of other software can't be bad for our freeware game. If you haven't already go and download the game and play Easter Crisis in Christmas!

AddThis Social Bookmark Button

Saturday, December 15, 2007

Computing Theory: A Java Program to Convert Digital Numbers Into Binary

As part of my Computing and Information Systems degree I have made some programs to help me out with my studies, which I will now be sharing with you a bit at a time.

For the first post, I have done a quick program in Java to convert a decimal number into binary. In effect this touches three of the first year subjects of Mathematics, Computing and Java programming from the University of London curriculum.

Here is the full source code:
/**
* @(#)dec2bin.java
*
* @author Edward Vela
* @version 1.00 2007/12/15
*/
import java.io.*;

public class dec2bin {

public static int getDecimal(){
System.out.print("Input a positive integer ");
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int decNum = 0;
try{
decNum = Integer.parseInt(in.readLine());
}
catch (Exception e) {
}
return decNum;
}

public static String dec2Bin (int dec){
int remainder = dec % 2;
int quotient = dec/2;
if (dec > 0){
return ("" + dec2Bin(quotient) + remainder);
} else {
return ("" );
}
}

public static void main(String[] args) {
int decNum;
String binNum;
decNum = getDecimal();
binNum = dec2Bin(decNum);
System.out.println(decNum + " converted to binary = " + binNum);
}
}

We start with the getDecimal() function. This function just asks the user to type in a number from the keyboard and returns it as an integer. No fancy error handling for our first program, but Java beginners can note that to get input from the keyboard we have to first add the import java.io.*; line at the top of our code. Then we can read from the keyboard BufferedReader object using the in.readLine() method. This is then passed to the Integer.parseInt() method which handily converts for us the String we got from the keyboard into an integer. There is a form of error trapping though, as every input that is not an integer is trapped and the program just acts as the user just typed in a 0.

Our second function (dec2Bin) is short and sweet, but does a lot of work as it calculates the binary number recursively. Remember that in mathematics, we obtain the binary number by keeping on dividing the original number by 2 and taking note of the remainder, which can be either 0 or 1. Then when we can divide no more, we read the remainders from the bottom up to end with the binary number. This is what we are doing in this function. If you think in a recursive way, all we are doing in maths is to take the first number and divide it by 2. Then we divide the answer by 2, then the second answer by 2 and so on. So a function that calls itself will keep on dividing the number by 2 until the answer is zero.

Finally, with the support of the previous functions, the main method becomes very easy to tie everything up together. We just declare the variables decNum and binNum, call the getDecimal() function to get the user's input and pass this value along to the dec2Bin() function which will convert the number into binary which we then display nicely to the user.

As an exercise for you, there are some improvements that can be done on this program. Note that there is no output if the user enters 0 or a wrong input. The easiest improvement is to display the binary number 0 when a 0 input is entered. The second improvement is to re-ask the user for the number if it is not a positive integer.

AddThis Social Bookmark Button

Thursday, November 29, 2007

New Yucca for The New Year

In view of the fast approaching deadline for businesses in some European countries to start trading with the Euro currency as from 1st January 2008, we have released a new version of Yucca Accounts Manager that will allow you to make the changeover a lot easier than you could ever imagine.

Yucca Version 2.8.0 has a new function to change the reference currency with the click of a button whilst keeping information on additional currencies that your business might have used in the past. So this year you can party too come new year's eve instead of working overtime to change the prices on your products.

You can download this update right now by visiting the software's page at http://www.syntaxrebels.com/yucca/index.htm

AddThis Social Bookmark Button

Saturday, July 21, 2007

New Feedback Forum

I have just finished installing our new feedback forum and want to invite you all to share your toughts about everything of interest.

This forum is far better than our older one, which I will be removing soon. So start registering now and you can start enjoying the nice feeling that you have after you remove something from your mind and post it for everyone to read.

AddThis Social Bookmark Button

Saturday, June 30, 2007

Syntax Rebels Gets New Look

Syntax Rebels announced today the launch of its new logo and website. The simple yet elegant design that will allow more content to be available on the Syntax Rebels website is the result of a year-long rebranding exercise.

Curiously, the logo is always pointing towards the way forward.

"With this effort we are notifying our customers that we are changing", said Syntax Rebels founder Edward Vella. "For the better of course! This is just the start, and the first step is to attract your attention to tell you to prepare yourself to get interactive with our upcoming Web 2.0 website", he continued.

In fact, the next announced step is to give the user a new level of interaction with the Syntax Rebels website and software products. A new forum to ask questions, and a wiki for each software product so that clients themselves can teach others how they are using the sofware are an example of things to come.

Bernard Gatt, Syntax Rebels' other founder, said "We will be celebrating our fourth birthday soon. As the company matures and our user base grows we want to let everyone participate collectively for the benefit of all involved. The new logo is synonymous with user collaboration on a professional level."

The announced changes will appear within the coming months, so you can expect a lot of activity on the website soon. "Prepare yourselves to join the action!" concluded Mr. Gatt.

AddThis Social Bookmark Button