Sunday 23 March 2014

Post 20: Conversion of byte number to decimal number

The following codes converts bit number to decimal and vice versa. Sorry, for being so short. If you have any questions, don't hesitate to comment. I'll try my best to get back to you.

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bitumwandler;

import java.io.IOException;
import java.io.*;
/**
 *
 * @author pad
 */
public class BitUmwandler {
    int bitLaenge=7;
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        System.out.println(new BitUmwandler().BitToDecimal("11111010"));
        System.out.println(new BitUmwandler().DecimalToBit(2));
    }
    
    public int BitToDecimal(String bitNumber){        
        String bitString=bitNumber;
        int result=0;
        for (int i=0; i<=bitLaenge; i++){
            if (bitString.substring(i,i+1).equals("1")){
                result+=(int)(Math.pow(2,bitLaenge-i));       
            }
        }
        return result;
    }
    
    public String DecimalToBit(int decimalNumber){
        String byteValue="";
        for (int i=bitLaenge; i>=0; i--){
            if(decimalNumber>=Math.pow(2,i)){
                decimalNumber=decimalNumber-(int)Math.pow(2, i);
                byteValue+="1";
            }else{
                byteValue+="0";
            }
        }
        return  byteValue;
    }
}




Saturday 15 March 2014

Post 19: Vietnamese dialects App (follow up post)

This post is a follow up post to this post I made earlier.

Vietnam consists of different regional parts where each of them have their distinct dialect.

wikipedia


However, the two commonly known Vietnamese dialects are the Southern (the bluish area) and the Northern (the redish area) dialect. They differ not only in pronounciation but also in spelling.

This app can help you to learn how to speak, listen and spell Vietnamese words in the Northern and Southern dialect.

How to use it


It's pretty much straight forward: In the middle of the screen you'll se a picture with the English word describing it above. Below the picture there a two buttons left and right. Click on these buttons respectively and you'll see and hear how the Northern (left button) and Southern (right button) words are spelled resp. pronounced.




Swipe the screen and you'll get to the next word. Overall there are over 70 words contained.



You can download it here:

at Google Play Store:


https://play.google.com/store/apps/details?id=de.applett.northsouthvndialect

at Opera Mobile Store:



If you don't know how to install it, check out my previous post about how to setup your Android device. Download it now as long as it is add-free. Hope you'll have fun and learn a lot. :-)

If you've downloaded it, tell me what you think about this app. Any improvement-suggestions (more words, misspelled words, etc.) are welcomed. Bye, till next time!

Sunday 9 March 2014

Post 18: How to find out if a girl likes you....App

Just wrote an app that will detect if a girl likes you or not. This app is for guys only! Next week I'll make one for the girls. ;-)

I wrote this description to this App:

Have you ever wondered if a girl likes you or not? With this app you can find it out. Simply answer all the answers and get your results in the end. The higher the quota you get in the end, the more likely she's into you.

This app is for entertainment purposes only. So, don't take it too seriously. ;) 

Before using the app you have to set up your Android system (yep, currently it only runs on Android). You have to setup your system because I published the app on opera mobile store and not on Google Play. I couldn't publish on Google Play because I they want 25$ to be transferred via credit or debit card. Although I have 25$, I don't have neither a credit card nor a debit card. *sigh* Google why are you so mean to me?!? I'm even willing to wash dishes for you just so I can have a Google Play Developer account. *cry*

Anyway.....

How to setup Android System

1.


Since I couldn't upload it on Google Play I uploaded on Opera Mobile Store instead. Unfortunately, there are some hurdles to overcome, because installing an App you downloaded on Opera Mobile Store isn't as straightforward as in Google Play.

First you have to go to "Settings". You have to find and press these buttons:

2.

After that you have to search for the option "Developer option".

3.

Press it and you will see the screen below. On the right hand side you active the checkbox where it says "USB debugging".

4.

Then you'll get a pop up message. Of course you press the "ok" button:


How to install

5.

Now you can install the app. First follow this link:

Opera Mobile Store

6.

After that you click on download. Then a warning message will probably pop up. It will ask you something like "Do you really want to install this?". Like the last time you press "ok":


7.

Then press the "download" button right next to the App's thumbnail:

8.

The installation process will start. After that click on the downloaded file.

9.

Again a pop up windows will appear and ask you whether you really want to install it - of course you do. -.-

10.

After the installation is finished the system asks you how to proceed. In order to run the App, please press the "Open" button.


11.

Have fun! ;-)

If you encounter any problems or have an improve suggestions to make, then please let me know. Bye, till next time.

Sunday 2 March 2014

Post 17: Quiz App - What kind of Asian are you?

Today I just build a Personality Quiz App. The app is called "What kind of Asian are you?".

I wrote this description to this App:

You may know what ethnicity you belong to. But maybe there's also a little bit of Asia in you? Find out with this Quiz whether you are Chinese, Japanese, Korean or Vietnamese.

Disclaimer: I'm an Asian myself and created this Quiz. This Quiz is just for entertaiment only and not to be taken seriously. :-)

I hope you'll have fun. Yours truly T
.

How to "Play"


The Quiz consists of 6 simple questions. Each of them has to be answered with either "Yes" or "No".


According to the given answers you'll get a result what Asian ethnicity (Chinese, Korean, Japanese or Vietnamese) you most resmble.


How to setup Android System

1.


Since I couldn't upload it on Google Play I uploaded on Opera Mobile Store instead. Unfortunately, there are some hurdles to overcome, because installing an App you downloaded on Opera Mobile Store isn't as straightforward as in Google Play.

First you have to go to "Settings". You have to find and press these buttons:

2.

After that you have to search for the option "Developer option".

3.

Press it and you will see the screen below. On the right hand side you active the checkbox where it says "USB debugging".

4.

Then you'll get a pop up message. Of course you press the "ok" button:


How to install

5.

Now you can install the app. First follow this link:

Opera Mobile Store

6.

After that you click on download. Then a warning message will probably pop up. It will ask you something like "Do you really want to install this?". Like the last time you press "ok":


7.

Then press the "download" button right next to the App's thumbnail:

8.

The installation process will start. After that click on the downloaded file.

9.

Again a pop up windows will appear and ask you whether you really want to install it - of course you do. -.-

10.

After the installation is finished the system asks you how to proceed. In order to run the App, please press the "Open" button.


11.

Have fun! ;-)

If you encounter any problems or have an improve suggestions to make, then please let me know. Bye, till next time.

Tweet