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.

Sunday 23 February 2014

Post 16: Vietnamese dialects App

Hi there,


I wanted to create a simple Vietnamese dialect App. This App is about the differences between Southern and Northern Vietnamese. But first, I would like to check whether the Northern Vietnamese (N-VN) resp. the Southern-Vietnamese (S-VN) I listed below are accurate. 

If you think I misspelled or forgot a word, then please do not hesitate tell me so. Any help is much appreciated. Thanks in advance. :-)

English
N-VN
S-VN
Spoon
cái thìa
cái muỗng
small bowl
cái bát
cái chén
little glass
cái chén
cái chung
glass
cái cốc
cái ly
plate
cái đĩa
cái dĩa
fork
cái dĩa
cái nĩa
Necklace
cái vòng
dây chuyên
Bracelet
vòng tay
cái vòng
Fat
Béo Phì
Mập Mạp
Turn
Rẽ
Quẹo
1k
Nghìn
Ngàn
Corn                
Bắp Ngô
Trái Bắp
Sick
Ốm
Bịnh / Bệnh
Thin
Gầy
Ốm
Nonsense
Vớ Vẩn
Bậy bạ
Terrible/Nasty
Kinh
Gớm, Ghê
Pigs
Lợn
Heo
Rusted
bị rỉ
bị sét
nylon bags
cái túi
cái bịch
Pocket
túi áo / túi quần
cái túi
carrying a person on the back of your motorbike
đèo
chở
(machinery) is broken
hỏng
shirt button                              
cái cúc áo
nút áo
Earrings
khuyên tai / hoa tai
đeo bông / bông tai
belts (for clothes)
Thắt lưng / cái đai
dây nịt
Curtains
cái rèm
cái màn
Kilogram
cân
eyeglasses             
kính mắt
mắt kiếng / mắt kính
old male
ông lão
ông già
Bully
bắt nạt
ăn hiếp
pee
đi tè / đi tiểu
đi đái
To stumble                              
ngã
Tea
Chè
trà
big bowl
cái bát
cái tô
flower
(bông) hoa
bông
fruit
quả
trái
Apple
quả táo
trái bom
pineapple
quả dứa
trái thơm
custard-apple                          
quả na
trái mãng cầu
(chicken) egg
quả trứng
hột gà
Vase
cái lọ
cái bình
Purse
cái ví
cái bóp
Little boy
thằng bé
thằng nhỏ
Little girl
con bé
con nhỏ
little child
trẻ con
con nít
Tiger
con hổ
con cọp
panther/cougar/leopard
con báo
con beo
notebook                                
quyển vở
cuốn tập
book                         
quyển sách
cuốn sách
train
tàu hỏa / tàu lửa
xe lửa
car
ô tô
xe hơi
Curly
xoăn
quăn
Stink
thối
Thúi
To chase
đuổi
rượt
Monosodium glutamate (MSG) sodium glutamate
mì chính           
bột ngọt
pregnant
có chửa
có bầu
pen                                         
cái bút
cây viết
Eraser
cục tẩy / cái tẩy
cục gôm
Skirt
cái váy
cái củn (củng)
dress
váy liền
áo đầm
Socks
đôi tất
vớ
Blanket
Chăn
mền
Mosquito-net
Màn
mùng
Boot
ủng
giầy bốt
Ladle
cái môi
cái vá
Pot
cái chậu
cái thau
Peanut
lạc
đậu phộng
sesame
vừng
Malay rose apple
quả roi
trái mận
Pineapple
quả dứa
trái thơm
fast
Nhanh
lẹ
Water
nước khoáng
nước suối
candle
nến
đèn cầy
little
xíu
Remote controller
điều khiển từ xa
rề mốt
Aggressive
gớm
dữ



Credits to:
XigonCongchua , ThuongLuong , gardenslave , bluedestiny, etc. @AsiaFinest
Lâm Nguyễnn, Lam Orous @facebook

Update: You can find the app here

Tweet