These are just some of my personal notes of videos, some websites, etc for cloud computing to share.
Cloud Computing is Useful for
1) Restoring the data that is like several years ago
2) Scaling (up or down) of the data center
3) Storing the data in every part of the world so that the network won't lose the data easily
Very Good Explanation Video:
1) https://www.youtube.com/watch?v=TTNgV0O_oTg
Very Good Cloud Tutorial Class
2) https://www.youtube.com/watch?v=QYzJl0Zrc4M
Wednesday, December 12, 2012
Wednesday, May 9, 2012
Some tools for AR
1) http://sites.google.com/site/augmentedrealitytestingsite/ (Hatsune Miku's creators)
2) Action Script : http://www.adobe.com/devnet/actionscript.html (the rotating head :http://www.youtube.com/watch?v=jKIv3Pt6zjI&lcor=1&email=comment_reply_received&lc=fM9HkDd1TwTPkP83d-K9xHzJ3I-WEn25uX4T5rGmv48&lch=email_reply&feature=email)
2) Action Script : http://www.adobe.com/devnet/actionscript.html (the rotating head :http://www.youtube.com/watch?v=jKIv3Pt6zjI&lcor=1&email=comment_reply_received&lc=fM9HkDd1TwTPkP83d-K9xHzJ3I-WEn25uX4T5rGmv48&lch=email_reply&feature=email)
AR Guru from MIT and some of his projects that I have most
http://www.pranavmistry.com/ (guru's web)
1) http://www.pranavmistry.com/projects/sixthsense/
2) http://www.pranavmistry.com/projects/quickies/
3) SPARSH (copy and paste using hands)
======
Some publications :
1) http://delivery.acm.org/10.1145/1960000/1958946/p689-mistry.pdf?ip=128.40.128.186&acc=ACTIVE%20SERVICE&CFID=81606613&CFTOKEN=64781228&__acm__=1336599906_78744d82c9a863b6aa8af2d648e4922d
publications for Milk firm health checkup scheduler
http://www.pranavmistry.com/research/publications/PranavMistry_vet_IDC2005.pdf
http://www.pranavmistry.com/ithink/pranav_technology.pdf
(all can be seen on his web - this is just my note to check out the projects that i am interested in )
1) http://www.pranavmistry.com/projects/sixthsense/
2) http://www.pranavmistry.com/projects/quickies/
3) SPARSH (copy and paste using hands)
======
Some publications :
1) http://delivery.acm.org/10.1145/1960000/1958946/p689-mistry.pdf?ip=128.40.128.186&acc=ACTIVE%20SERVICE&CFID=81606613&CFTOKEN=64781228&__acm__=1336599906_78744d82c9a863b6aa8af2d648e4922d
publications for Milk firm health checkup scheduler
http://www.pranavmistry.com/research/publications/PranavMistry_vet_IDC2005.pdf
http://www.pranavmistry.com/ithink/pranav_technology.pdf
(all can be seen on his web - this is just my note to check out the projects that i am interested in )
AR in social media and business card
1) http://www.forbes.com/sites/insead/2012/02/07/move-over-social-media-here-comes-augmented-reality/
2) http://www.bitrebels.com/social/augmented-reality-comes-to-social-networking/ (very good)
3) http://www.guardian.co.uk/technology/2010/mar/21/augmented-reality-iphone-advertising (business card)
4)http://technorati.com/social-media/article/augmented-reality-meets-location-based-social/
2) http://www.bitrebels.com/social/augmented-reality-comes-to-social-networking/ (very good)
3) http://www.guardian.co.uk/technology/2010/mar/21/augmented-reality-iphone-advertising (business card)
4)http://technorati.com/social-media/article/augmented-reality-meets-location-based-social/
face recognition API
http://developers.face.com/docs/ (something like detective program) you can find someone's facebook or twitter according to that API
Monday, May 7, 2012
Very good explanation for Intent calls
http://www.brighthub.com/mobile/google-android/articles/39467.aspx
Saturday, May 5, 2012
Monday, April 30, 2012
AR companies
1) http://www.bbc.co.uk/news/technology-13558137 Aurasma , UK
2) Blippar , UK
3) http://technode.com/2011/05/06/china-is-catching-up-with-augmented-reality/ (everywhere)
4) mobile monday http://technode.com/2011/04/10/announce-the-first-augmented-reality-demo-event-in-china/
5) PEREY research and consulting
6)
2) Blippar , UK
3) http://technode.com/2011/05/06/china-is-catching-up-with-augmented-reality/ (everywhere)
4) mobile monday http://technode.com/2011/04/10/announce-the-first-augmented-reality-demo-event-in-china/
5) PEREY research and consulting
6)
AR apps
http://onebiginternet.com/2011/01/11-most-useful-augmented-reality-apps-for-iphone-and-android/
http://onebiginternet.com/2012/02/how-augmented-reality-will-change-the-future-of-internet-browsing/
http://onebiginternet.com/2012/02/how-augmented-reality-will-change-the-future-of-internet-browsing/
My current Interest - AR
http://mobile.tutsplus.com/tutorials/android/android_augmented-reality/
And to research : cross platform?
http://en.wikipedia.org/wiki/Cross-platform
And to research : cross platform?
http://en.wikipedia.org/wiki/Cross-platform
Tuesday, April 24, 2012
Bitmap in ZXing (how to encode QR)
// this is from QREncoder.java from ZXing
static Bitmap encodeAsBitmap(String contents,
BarcodeFormat format,
int desiredWidth,
int desiredHeight) throws WriterException {
Hashtable<EncodeHintType,Object> hints = null;
String encoding = guessAppropriateEncoding(contents);
if (encoding != null) {
hints = new Hashtable<EncodeHintType,Object>(2);
hints.put(EncodeHintType.CHARACTER_SET, encoding);
}
MultiFormatWriter writer = new MultiFormatWriter();
BitMatrix result = writer.encode(contents, format, desiredWidth, desiredHeight, hints);
int width = result.getWidth();
int height = result.getHeight();
int[] pixels = new int[width * height];
// All are 0, or black, by default
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = result.get(x, y) ? BLACK : WHITE;
}
}
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
return bitmap;
}
//This is how you can generate normally:
private Bitmap generateQRCode2(String data)
{
//Size of the image generated.
int h = 100;
int w = 100;
Config conf = Bitmap.Config.RGB_565;
Bitmap bmp = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap
Charset charset = Charset.forName("UTF-8");
CharsetEncoder encoder = charset.newEncoder();
byte[] b = null;
try {
// Convert a string to UTF-8 bytes in a ByteBuffer
ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(data));
b = bbuf.array();
} catch (CharacterCodingException e) {
System.out.println(e.getMessage());
}
String data1;
try {
data1 = new String(b, "UTF-8");
// get a byte matrix for the data
BitMatrix matrix = null;
// Size of the QR code
com.google.zxing.Writer writer = new QRCodeWriter();
try {
Hashtable<EncodeHintType, String> hints = new Hashtable<EncodeHintType, String>(2);
hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");
matrix = writer.encode(data1, com.google.zxing.BarcodeFormat.QR_CODE,w, h);
} catch (Exception e) {
System.out.println(e.getMessage());
}
//generate an image from the bit matrix
int width = matrix.getWidth();
int height = matrix.getHeight();
try {
for (int x = 0; x < width; x++)
{
for (int y = 0; y < height; y++) {
bmp.setPixel(x, y, matrix.get(x, y) ? BLACK : WHITE);
}
}
} catch (Exception e) {
System.out.println(e.getMessage());
}
} catch (UnsupportedEncodingException e) {
System.out.println(e.getMessage());
}
return bmp;
// change this path to match yours (this is my mac home folder, you can use: c:\\qr_png.png if you are on windows)
//String filePath = "/Users/shaybc/Desktop/OutlookQR/qr_png.png";
/*
String filePath;
File file = new File(filePath);
try {
MatrixToImageWriter.writeToFile(matrix, "PNG", file);
System.out.println("printing to " + file.getAbsolutePath());
} catch (IOException e) {
System.out.println(e.getMessage());
}
} catch (UnsupportedEncodingException e) {
System.out.println(e.getMessage());
}*/
//}
static Bitmap encodeAsBitmap(String contents,
BarcodeFormat format,
int desiredWidth,
int desiredHeight) throws WriterException {
Hashtable<EncodeHintType,Object> hints = null;
String encoding = guessAppropriateEncoding(contents);
if (encoding != null) {
hints = new Hashtable<EncodeHintType,Object>(2);
hints.put(EncodeHintType.CHARACTER_SET, encoding);
}
MultiFormatWriter writer = new MultiFormatWriter();
BitMatrix result = writer.encode(contents, format, desiredWidth, desiredHeight, hints);
int width = result.getWidth();
int height = result.getHeight();
int[] pixels = new int[width * height];
// All are 0, or black, by default
for (int y = 0; y < height; y++) {
int offset = y * width;
for (int x = 0; x < width; x++) {
pixels[offset + x] = result.get(x, y) ? BLACK : WHITE;
}
}
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bitmap.setPixels(pixels, 0, width, 0, 0, width, height);
return bitmap;
}
//This is how you can generate normally:
private Bitmap generateQRCode2(String data)
{
//Size of the image generated.
int h = 100;
int w = 100;
Config conf = Bitmap.Config.RGB_565;
Bitmap bmp = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap
Charset charset = Charset.forName("UTF-8");
CharsetEncoder encoder = charset.newEncoder();
byte[] b = null;
try {
// Convert a string to UTF-8 bytes in a ByteBuffer
ByteBuffer bbuf = encoder.encode(CharBuffer.wrap(data));
b = bbuf.array();
} catch (CharacterCodingException e) {
System.out.println(e.getMessage());
}
String data1;
try {
data1 = new String(b, "UTF-8");
// get a byte matrix for the data
BitMatrix matrix = null;
// Size of the QR code
com.google.zxing.Writer writer = new QRCodeWriter();
try {
Hashtable<EncodeHintType, String> hints = new Hashtable<EncodeHintType, String>(2);
hints.put(EncodeHintType.CHARACTER_SET, "UTF-8");
matrix = writer.encode(data1, com.google.zxing.BarcodeFormat.QR_CODE,w, h);
} catch (Exception e) {
System.out.println(e.getMessage());
}
//generate an image from the bit matrix
int width = matrix.getWidth();
int height = matrix.getHeight();
try {
for (int x = 0; x < width; x++)
{
for (int y = 0; y < height; y++) {
bmp.setPixel(x, y, matrix.get(x, y) ? BLACK : WHITE);
}
}
} catch (Exception e) {
System.out.println(e.getMessage());
}
} catch (UnsupportedEncodingException e) {
System.out.println(e.getMessage());
}
return bmp;
// change this path to match yours (this is my mac home folder, you can use: c:\\qr_png.png if you are on windows)
//String filePath = "/Users/shaybc/Desktop/OutlookQR/qr_png.png";
/*
String filePath;
File file = new File(filePath);
try {
MatrixToImageWriter.writeToFile(matrix, "PNG", file);
System.out.println("printing to " + file.getAbsolutePath());
} catch (IOException e) {
System.out.println(e.getMessage());
}
} catch (UnsupportedEncodingException e) {
System.out.println(e.getMessage());
}*/
//}
Data Storage in ZXing
I realized that ZXing didnt store the QR code created at all. But here is the internal memory of the android
http://developer.android.com/guide/topics/data/data-storage.html
http://developer.android.com/guide/topics/data/data-storage.html
Encoding ZXing with Intent
Android : http://stackoverflow.com/questions/2489048/qr-code-encoding-and-decoding-using-zxing
(for iOS) http://dev4mac.blogspot.co.uk/2011/10/qr-using-zxing-zebra-crossing.html
My code: package com.thetmonaye.ucl;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.view.View;
public class EncoderActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.encoder);
//Pointers to Text fields
final EditText receive_amount = (EditText) findViewById(R.id.receive_amount);
final EditText emailAddressField = (EditText) findViewById(R.id.emailAddress);
final EditText memoField = (EditText) findViewById(R.id.memo);
final EditText barcodeField = (EditText) findViewById(R.id.barcode);
Button qrButton = (Button) this.findViewById(R.id.create_QR_button);
qrButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// getting the values from the EditText Fields
String amount = receive_amount.getText().toString();
String email = emailAddressField.getText().toString();
String memo = memoField.getText().toString();
String barcode = barcodeField.getText().toString();
if (amount != null && email != null && memo != null && barcode != null)
{
// URI to be encoded as a QR code
String uri = "thetUcl:"+"amount="+amount+"&"+"email="+email+"&"+"memo="+memo+"&"+"barcode="+barcode;
generateQRCode(uri);
}
}
});
}
private void generateQRCode(String data) {
// call it simply by Intent and you don't need to add library or any codes
Intent intent = new Intent("com.google.zxing.client.android.ENCODE");
intent.putExtra("ENCODE_TYPE", "TEXT_TYPE");
intent.putExtra("ENCODE_DATA", data);
intent.putExtra("ENCODE_FORMAT", "QR_CODE");
startActivity(intent);
}
}
About Sharing function in ZXing
I found this :
Bitmap bitmap = QRCodeEncoder.encodeAsBitmap( contents, format, pixelResolution, pixelResolution);
Message message = Message.obtain(handler, R.id.encode_succeeded);
message.obj = bitmap;
message.sendToTarget();
in the Intent.java class.
So, I somewhat understand that it sends to the "Handler" by "sendToTarget" method in handler class. Then the
In that
final void shareByEmail(String contents) {
sendEmailFromUri("mailto:", null, activity.getString(R.string.msg_share_subject_line), contents); }
Monday, April 23, 2012
Selenium IDE
http://seleniumhq.org/projects/ide/
iOSDK native (to check how to listen if the users have used the app or not)
call with REST to listen to the calls from the website and print it to native html
iOSDK native (to check how to listen if the users have used the app or not)
call with REST to listen to the calls from the website and print it to native html
Saturday, April 21, 2012
Android Malloc or Gabage Collection Handling (for infinite loop)
http://groups.google.com/group/android-developers/browse_thread/thread/79a9b5352cef9146
Cryptography
Cryptography is needed for the making the sender's or receiver's information eg. bank acc or credit card number, unknown.
http://h2g2.com/dna/h2g2/A1315919
https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=en
Popular Cryptography :http://www.bouncycastle.org/wiki/display/JA1/Frequently+Asked+Questions
http://h2g2.com/dna/h2g2/A1315919
https://play.google.com/store/apps/details?id=de.schildbach.wallet&hl=en
Popular Cryptography :http://www.bouncycastle.org/wiki/display/JA1/Frequently+Asked+Questions
Eclipse Tips
Very very useful ECLIPSE TIP : click on method, CLt+ALT+H (for tracing the history / hierarchy of the method)
http://www.vasanth.in/2009/03/10/eclipse-tip-trace-method-call-chains/
http://www.vasanth.in/2009/03/10/eclipse-tip-trace-method-call-chains/
Friday, April 20, 2012
creating QR with zxing in iphone
https://github.com/joelind/zxing-iphone/tree/master/zxing.appspot.com
ZXing Encoding Method
Calling Encoder with Intent: http://code.google.com/p/zxing/issues/detail?id=1032
When you want to use libraries: http://www.vineetmanohar.com/2010/09/java-barcode-api/
When you want to use libraries: http://www.vineetmanohar.com/2010/09/java-barcode-api/
Amazon Search Operation Documentation
http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/SearchOperations.html
App using Amazon AWS
How to host the pictures in amazon AWS
https://github.com/kwliou/SmartNature/blob/a9b8daae06102c427a429a39c415cb757488f55f/src/edu/berkeley/cs160/smartnature/ShareGarden.java
App search for Amazon items (using php) :https://github.com/whoisstan/Buy-It-Later-Hybrid-Stores-QR-Code-Generator/blob/master/lib/AmazonECS.class.php
Amazon API & in iOS
this is not a free API cos AWS set up needs to register with your credit card
http://docs.amazonwebservices.com/mobile/sdkforandroid/gsg/Welcome.html?r=4295
Writing Amazon Product Search in iOS
https://github.com/jugend/amazon-ecs
http://docs.amazonwebservices.com/mobile/sdkforandroid/gsg/Welcome.html?r=4295
Writing Amazon Product Search in iOS
https://github.com/jugend/amazon-ecs
JSP
Learning how to start: Simple JSP: http://www.youtube.com/watch?v=kESqSdgbvUo
SQL embed in Java: http://www.youtube.com/watch?v=C5PQ86nWMkM&feature=related
Why? :
http://crypto.stanford.edu/cs155old/cs155-spring09/lectures/17-web-site-sec.pdf
Security Papers (Research) from Stanford:Automatic Generation of XSS and SQL Injection Attacks with
Goal-Directed Model Checking:
http://suif.stanford.edu/papers/sec08martin.pdf
SQL embed in Java: http://www.youtube.com/watch?v=C5PQ86nWMkM&feature=related
Why? :
http://crypto.stanford.edu/cs155old/cs155-spring09/lectures/17-web-site-sec.pdf
Security Papers (Research) from Stanford:Automatic Generation of XSS and SQL Injection Attacks with
Goal-Directed Model Checking:
http://suif.stanford.edu/papers/sec08martin.pdf
Thursday, April 19, 2012
interesting facts for QR
http://blogs.imediaconnection.com/blog/2011/08/01/qr-code-density-and-url-shorteners/ (why we need URL shorteners)
Wednesday, April 18, 2012
QR Generating Journey
Similar one (research from Stanford)
Step By Step: http://www.thonky.com/qr-code-tutorial/introduction/#general-overview-of-creating-a-qr-code
To make QR, we have to know :
1) The choice of characters eg. UTF8 or ISO-8859-1
2) Byte array to UTF8(but now we have to use ISO-8859-1)because UTF 8 has some non-decodable characters by ZXing library (because we are using ZXing for this app) WHY WE CHOOOSE ZXING?
3) Storage is small so, we need URL shortening technique.
===========================
QR code future is
Next QR Code Generations
1) Microsoft Tag (write details about it like detecting the areas that which QR code is scanned most, etc)
2) Dynamic QR Code (where information changes from time to time by scanning it)
3) Designer QR Codes
Tuesday, April 17, 2012
Generating QR code - Tutorials
1) For Android (reading QR code and sharing it in social network like facebook and twitter): http://stackoverflow.com/questions/6493623/tutorial-to-learn-how-to-read-and-generate-a-qrcode
2) For iOS : https://github.com/kuapay/iOS-QR-Code-Generator
3) Structure Guide: http://qrdroid.com/services/android-developers
4) QR Android Code Sample (using bitmap): http://www.qrme.co.uk/qr-code-news/3-newsflash/138-qr-code-android-code.html
2) For iOS : https://github.com/kuapay/iOS-QR-Code-Generator
3) Structure Guide: http://qrdroid.com/services/android-developers
4) QR Android Code Sample (using bitmap): http://www.qrme.co.uk/qr-code-news/3-newsflash/138-qr-code-android-code.html
all about QR codes
1) How a QR code installed data?
http://www.swetake.com/qr/qr3_en.html
2) ISO/IEC 18004/2000 QR code (all about standards in a QR code)
http://raidenii.net/files/datasheets/misc/qr_code.pdf
3) Fancy about Dynamic QR code? 1 QR code with changeable info : http://wayne-doucette.blogspot.co.uk/2011/01/dynamic-qr-code-generator-jquery-google.html
4) some professionals doing dynamic QR :http://trakqr.com/
5) animated QRs:http://blog.qr4.nl/Animated-QR-Samples.aspx
Also we have designed QR codes too (eg a QR code in Japan from LV)
http://www.swetake.com/qr/qr3_en.html
2) ISO/IEC 18004/2000 QR code (all about standards in a QR code)
http://raidenii.net/files/datasheets/misc/qr_code.pdf
3) Fancy about Dynamic QR code? 1 QR code with changeable info : http://wayne-doucette.blogspot.co.uk/2011/01/dynamic-qr-code-generator-jquery-google.html
4) some professionals doing dynamic QR :http://trakqr.com/
5) animated QRs:http://blog.qr4.nl/Animated-QR-Samples.aspx
Also we have designed QR codes too (eg a QR code in Japan from LV)
Monday, April 16, 2012
for conflicts between Barcode Scanner App and Zxing Scanner
users don't have to select between the barcode scanner app and my app for scanning if they have Zxing's apk installed
http://stackoverflow.com/questions/7945951/integrating-zxing-barcode-scanner-with-my-android-app-custom-action-name-issue
http://stackoverflow.com/questions/7945951/integrating-zxing-barcode-scanner-with-my-android-app-custom-action-name-issue
Design Pattern
For Designing your code from prototype: HeadFirst Design Patterns by Eric Freeman & Elisabeth Freeman
Publisher : O'Reilly
Shop : You can buy in amazon or if you are in UK, check out in Waterstones
Publisher : O'Reilly
Shop : You can buy in amazon or if you are in UK, check out in Waterstones
Dealing with Amazon Web API
Register -> https://developer.amazonservices.co.uk/index.html
The Developer guide ->https://images-na.ssl-images-amazon.com/images/G/01/mwsportal/doc/en_US/bde/MWSDeveloperGuide._V161845402_.pdf
3 Types of developer access
I want to access my own Amazon seller account with MWS.— Select this option when you sign up to use
Amazon MWS for your own Amazon seller account, Amazon MWS will assign a developer account identifier
to you. When you make Amazon MWS requests, you'll use the developer account credentials that are associated
with your developer account, plus the merchant Id for your seller account.
I want to use an application to access my Amazon seller account with MWS.— Select this option if you
want to use an application to access your Amazon seller account using Amazon MWS. When you register, you
must enter the developer account identifier for the application you will be using. The final page of the Amazon
MWS registration process shows your merchant Id. You will use this identifier in the application you use.
I want to give a developer access to my Amazon seller account with MWS.— Select this option when you
want to authorize a third-party developer to access your account with Amazon MWS.
The Developer guide ->https://images-na.ssl-images-amazon.com/images/G/01/mwsportal/doc/en_US/bde/MWSDeveloperGuide._V161845402_.pdf
3 Types of developer access
I want to access my own Amazon seller account with MWS.— Select this option when you sign up to use
Amazon MWS for your own Amazon seller account, Amazon MWS will assign a developer account identifier
to you. When you make Amazon MWS requests, you'll use the developer account credentials that are associated
with your developer account, plus the merchant Id for your seller account.
I want to use an application to access my Amazon seller account with MWS.— Select this option if you
want to use an application to access your Amazon seller account using Amazon MWS. When you register, you
must enter the developer account identifier for the application you will be using. The final page of the Amazon
MWS registration process shows your merchant Id. You will use this identifier in the application you use.
I want to give a developer access to my Amazon seller account with MWS.— Select this option when you
want to authorize a third-party developer to access your account with Amazon MWS.
static classes(when dealing with adapters)
you might normally come across when you call the adapter from another class, they ask the class to be static
eg: private TescoJsonParser TJP= new TescoJsonParser();
String sessionkey= TescoJsonParser.login("youremail@gmail.com","password");
ProductDetails parsedResult=TescoJsonParser.getProductByBarcode(contents,sessionkey );
products.add(parsedResult);
productLists.setAdapter(new ProductViewAdapter(this,products));
I cannot use TJP.login(....,...);
here is why:
http://www.javaworld.com/javaworld/javaqa/1999-08/01-qa-static2.html
eg: private TescoJsonParser TJP= new TescoJsonParser();
String sessionkey= TescoJsonParser.login("youremail@gmail.com","password");
ProductDetails parsedResult=TescoJsonParser.getProductByBarcode(contents,sessionkey );
products.add(parsedResult);
productLists.setAdapter(new ProductViewAdapter(this,products));
I cannot use TJP.login(....,...);
here is why:
http://www.javaworld.com/javaworld/javaqa/1999-08/01-qa-static2.html
HTTP Post
http://stackoverflow.com/questions/6786246/viewstate-value-in-the-httppost
HTTP Post can accept more than HTTP get. Since HTTP get only accept for 256 chars
HTTP Post can accept more than HTTP get. Since HTTP get only accept for 256 chars
Friday, April 13, 2012
More to GO
Woot ! I was so happy 3 days ago about my app that has done and now I look back, it is just a child play ! god, I wish I knew that 3 days ago.
Anyway, time has spent, and I cant get back my slacking times. So, I focus on this NOW!!
More to come: Really connect with the TESCO CHECKOUT
Thursday, April 12, 2012
QR code Generator
This is how you can make a QR code .For my case, when you can scan the QR code and you will reach to the PayPal link with the total sum of the product in it)
Firstly by using ZXing you can create by using their ZXing web link : http://zxing.appspot.com/generator
or
you can write by using QRcodeWrite class:http://zxing.org/w/docs/javadoc/com/google/zxing/qrcode/QRCodeWriter.html
http://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/qrcode/QRCodeWriter.java?r=1028
But first one is very limited.
Firstly by using ZXing you can create by using their ZXing web link : http://zxing.appspot.com/generator
or
you can write by using QRcodeWrite class:http://zxing.org/w/docs/javadoc/com/google/zxing/qrcode/QRCodeWriter.html
http://code.google.com/p/zxing/source/browse/trunk/core/src/com/google/zxing/qrcode/QRCodeWriter.java?r=1028
But first one is very limited.
1)Step by Step: notice the ZXing package: http://stackoverflow.com/questions/6376400/zxing-android-generate-1d-barcode
Then details inside : http://stackoverflow.com/questions/2489048/qr-code-encoding-and-decoding-using-zxing
Then details inside : http://stackoverflow.com/questions/2489048/qr-code-encoding-and-decoding-using-zxing
2) image processing in ZXing library : http://code.google.com/p/zxing/source/browse/trunk/androidtest/src/com/google/zxing/client/androidtest/ZXingTestActivity.java
3) QR code writer in ZXing
http://cfsearching.blogspot.co.uk/2010/04/coldfusion-zxing-read-write-qrcode.html This is the CFC extention (not related with project)
4) Java android encoder (without using ZXing)
Encoding and Decoding through a web service:
BitMat (bit matrix) documentation
Monday, April 9, 2012
some new findings (BigDecimal, onResume)
BigDecimal= to get the rounded double value eg. from 2.5555555 to 2.56
onResume => I was having problems with SQlite database for not updating my scanned values into total, but I realized I was calling the total in onCreate, but not in onResume
After I call it in onResume, everything is perfect ! :)
why SQL not visible in the database?
Cos' of security issue and so we need to reboot the android
http://stackoverflow.com/questions/3810710/why-cant-data-folder-be-displayed-just-like-in-ddms-file-explorer
how to? http://forum.unity3d.com/threads/112703-Override-Unity-Data-folder-path
REBOOTING : http://www.tomsguide.com/us/Root-Your-Android-Phone,review-1688-2.html
why SQL not visible in the database?
Cos' of security issue and so we need to reboot the android
http://stackoverflow.com/questions/3810710/why-cant-data-folder-be-displayed-just-like-in-ddms-file-explorer
how to? http://forum.unity3d.com/threads/112703-Override-Unity-Data-folder-path
REBOOTING : http://www.tomsguide.com/us/Root-Your-Android-Phone,review-1688-2.html
Saturday, April 7, 2012
SQLite Implementation and Understanding
SQLite Table creation : http://www.sqlite.org/lang_createtable.html
Some SQLite Video: http://www.video2brain.com/en/videos-4429.htm (just explaining basic things)
How to create Database: http://www.youtube.com/watch?v=bF1sxGfNz-o
Some SQLite Video: http://www.video2brain.com/en/videos-4429.htm (just explaining basic things)
How to create Database: http://www.youtube.com/watch?v=bF1sxGfNz-o
To track SQLite in Eclipse:http://www.tylerfrankenstein.com/browse-android-emulator-sqlite-database-eclipse#comment-64
Download the program: http://www.questoid.com/Download.aspx
Errors to track : http://coderzheaven.com/2011/04/sqlitemanager-plugin-for-eclipse/
Friday, April 6, 2012
updating total for SQLite (adding another column for double value)
creating a column with Double value
Wednesday, April 4, 2012
Json Parser
References
about static classes
session and key access
about Gson
For database problems close() during the parser problem :
Tuesday, April 3, 2012
Same idea (similar app)
This tesco app has 90% similar idea with me : http://www.techfortesco.com/forum/index.php?topic=289.0
JSON parser basics
Tutorial : http://www.androidhive.info/2012/01/android-json-parsing-tutorial/
(very good tutorial to know what is JSON)
Thursday, March 29, 2012
Android research for shopping/searchig api
1) http://www.freeware4android.net/google-android-2-3-device-1859/tesco-shopping-app-download-118561.html
2) http://www.androidzoom.com/android_applications/shopping/paperless-list-pro_bubmx.html
3) http://www.xda-developers.com/android/paperless-list-uk-tesco-app/
4) for the expire date : http://www.androidapp101.com/best-before-android-app-2657.html
Some existing Tesco apps
5) http://www.gkishor.net/2011/02/android-app-to-shop-tesco-com-groceries/
6) http://www.techfortesco.com/forum/index.php?topic=269.0
2) http://www.androidzoom.com/android_applications/shopping/paperless-list-pro_bubmx.html
3) http://www.xda-developers.com/android/paperless-list-uk-tesco-app/
4) for the expire date : http://www.androidapp101.com/best-before-android-app-2657.html
Some existing Tesco apps
5) http://www.gkishor.net/2011/02/android-app-to-shop-tesco-com-groceries/
6) http://www.techfortesco.com/forum/index.php?topic=269.0
API for search
Some ready made api for ISBN search : https://sites.google.com/site/appinventor/amazon-client-demo
Wednesday, March 21, 2012
Adding PayPal
How to Step by Step : http://vivdub.blogspot.co.uk/
http://www.happygeek.in/paypal-integration-in-android-app
Download Link : https://www.x.com/developers/paypal/documentation-tools/sdk
Guide/Manual from PayPal: https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_MPL_Developer_Guide_and_Reference_Android.pdf
Understanding paypal http://www.happygeek.in/paypal-integration-in-android-app
Also don't forget to check the tutorials or some examples in the downloaded file.
Lecture Slides: http://www.slideshare.net/paypalx/inapp-payments-with-paypals-mobile-payment-library-mpl
Payment Flow: https://www.x.com/devzone/articles/build-mobile-point-sale-android-zxing-and-payflow-pro
http://www.happygeek.in/paypal-integration-in-android-app
Download Link : https://www.x.com/developers/paypal/documentation-tools/sdk
Guide/Manual from PayPal: https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_MPL_Developer_Guide_and_Reference_Android.pdf
Understanding paypal http://www.happygeek.in/paypal-integration-in-android-app
Also don't forget to check the tutorials or some examples in the downloaded file.
Lecture Slides: http://www.slideshare.net/paypalx/inapp-payments-with-paypals-mobile-payment-library-mpl
Payment Flow: https://www.x.com/devzone/articles/build-mobile-point-sale-android-zxing-and-payflow-pro
Monday, March 19, 2012
ListView and Scroll View
List View and Scroll View cannot use together:
However, here it is the one solution using headerfooter:
http://blog.maxaller.name/2010/05/attaching-a-sticky-headerfooter-to-an-android-listview/When the listview goes underneath the button :(very good blog)
Wednesday, March 7, 2012
Android Barcode Scanning and checkout with paypal
https://www.x.com/devzone/articles/build-mobile-point-sale-android-zxing-and-payflow-pro
Sunday, March 4, 2012
Friday, March 2, 2012
Scanner Listing
The problem so far that I have encountered is
1) ListActivity is not working when I input it with ScanActivity
I am not sure what to use the ListActivity and ScanActivity at the same time!
Tuesday, February 28, 2012
ZXing scanning Steps
Step 1 : Get the code from ZXing scanner and show the result in EditText field
1) http://stackoverflow.com/questions/6058288/integration-problem-zxing-via-intent
========
3) basic ZXing callingusing Intent http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app
Monday, February 27, 2012
scared
I am scared sometimes just to implement and sometimes cos of that fear, my learning process is not moving at all, I am scared of the failure and really reminding me of such a failure in first year !
God, I have to keep moving !!
Give me some strength ! I will show that I am independent and I am clever !
God, I have to keep moving !!
Give me some strength ! I will show that I am independent and I am clever !
Sunday, February 26, 2012
Saturday, February 25, 2012
Good slides
Listing the lists
(with good example)http://www.slideshare.net/peterbuck/getting-fancy-with-lists
=====================
Creating bar code using ZXing
=====================
About model view controller
Friday, February 24, 2012
ZXing preinstalled code
ZXing preinstalled Code: http://mcondev.wordpress.com/2011/06/24/zxing-1-7-for-android-on-eclipse/
Barcode
Integrating Barcode http://damianflannery.wordpress.com/2011/06/13/integrate-zxing-barcode-scanner-into-your-android-app-natively-using-eclipse/
Adding Database
Adding product to database (using barcode)
https://www.x.com/devzone/articles/build-product-database-zxing-and-sqlite-android
https://www.x.com/devzone/articles/build-product-database-zxing-and-sqlite-android
Thursday, February 23, 2012
Update of Journey
This is my 24th hour and I just had my dinner and i m reading this blog for scanning !
To search the products in your website rather than in website of Google Product search : (use this guide)
http://knol.google.com/k/alec-go/modifying-the-android-barcode-scanner/2vd5zn6va2fqd/2#
I still keep my faith to finish the step one which is multiple bar codes scan and results to show in one page.
This is for the creating barcode: http://www.java-javafx.com/2010/09/hello-world-barcode-in-java-using-zxing.html
To search the products in your website rather than in website of Google Product search : (use this guide)
http://knol.google.com/k/alec-go/modifying-the-android-barcode-scanner/2vd5zn6va2fqd/2#
I still keep my faith to finish the step one which is multiple bar codes scan and results to show in one page.
This is for the creating barcode: http://www.java-javafx.com/2010/09/hello-world-barcode-in-java-using-zxing.html
Milestones for the journey (the map)
1) inspire by other sources until 3 pm Thursday
2) I won't be writing a library but will check how it is done
3) Read Android developer guide properly
4) 15 min break every 2 hrs
5) first step : make the multiple scanning activity and result to be shown on a page
6) second step: connect with shopping list
7) create splash
2) I won't be writing a library but will check how it is done
3) Read Android developer guide properly
4) 15 min break every 2 hrs
5) first step : make the multiple scanning activity and result to be shown on a page
6) second step: connect with shopping list
7) create splash
Wednesday, February 22, 2012
Android ADB another ways AND SOLVED after 17 hrs
http://myhtcdesire.com/tutorials/how-to-install-the-adb-driver-on-windows
It took me total of nearly 15 hrs to debug this.
Why I took 15 hrs?
firstly, i changed to Ubuntu ! then Ubuntu is not working well and I decided to stick with Windows again.
Lesson: next time, before you switch, think carefully and try to search the bug for another 1 hr before doing that even though it is already 12 hrs passed ! because system change is very time consuming!
My another fault was that I downloaded Google driver rather than HTC Sync driver ! (I should take care of all the little steps and meanings! Rather than just overwhelmingly hurrying up for finishing this prototype! )
==================================
The Android thingy solved after installing HTC Sync ! :) omg ! it literately took me 7 days to do all those things !
http://www.htc.com/uk/help/
shit man!
It took me total of nearly 15 hrs to debug this.
Why I took 15 hrs?
firstly, i changed to Ubuntu ! then Ubuntu is not working well and I decided to stick with Windows again.
Lesson: next time, before you switch, think carefully and try to search the bug for another 1 hr before doing that even though it is already 12 hrs passed ! because system change is very time consuming!
My another fault was that I downloaded Google driver rather than HTC Sync driver ! (I should take care of all the little steps and meanings! Rather than just overwhelmingly hurrying up for finishing this prototype! )
==================================
The Android thingy solved after installing HTC Sync ! :) omg ! it literately took me 7 days to do all those things !
http://www.htc.com/uk/help/
shit man!
Plugging in Android to PC directly not working
I alr plug in my devide and turn on the USB Debugging but it is still not working yet !
However to finish this project in 30 hrs, I need to do other things. So, I will have to ask helps from my friend in the morning later !
Some possible solutions (but not helpful) for those who got similar problem as me.
1) http://stackoverflow.com/questions/4099593/how-to-connect-a-htc-android-phone-to-the-pc-as-debugging-device
2)http://stackoverflow.com/questions/7098295/how-do-i-install-an-htc-android-phone-for-debugging-in-ubuntu
3)http://androidforums.com/t-mobile-g2-touch/7293-htc-sync-problem.html
However to finish this project in 30 hrs, I need to do other things. So, I will have to ask helps from my friend in the morning later !
Some possible solutions (but not helpful) for those who got similar problem as me.
1) http://stackoverflow.com/questions/4099593/how-to-connect-a-htc-android-phone-to-the-pc-as-debugging-device
2)http://stackoverflow.com/questions/7098295/how-do-i-install-an-htc-android-phone-for-debugging-in-ubuntu
3)http://androidforums.com/t-mobile-g2-touch/7293-htc-sync-problem.html
Blogs to Inspire
Bar-code Scanner: http://adamzwakk.com/?p=416
Shopping cart tutorial : http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html
Database behind Android: http://shariqmobin.wordpress.com/2010/03/06/hello-world/
Shopping cart tutorial : http://www.androiddom.com/2011/02/android-shopping-cart-tutorial.html
Database behind Android: http://shariqmobin.wordpress.com/2010/03/06/hello-world/
Android SDK / Eclipse set up and installation
I use Ubuntu because it is easier if you plug-in the phone to your computer and you don't need to install apache ant and ZXing library to your app !
Here is installation steps.
android plugin http://dl-ssl.google.com/android/eclipse
=======================================
This was how I did last time :
http://stackoverflow.com/questions/4782543/integration-zxing-library-directly-into-my-android-application
But it is not that helpful since the Eclipse in my window is not recognized my mobile phone.
Here is installation steps.
android plugin http://dl-ssl.google.com/android/eclipse
=======================================
This was how I did last time :
http://stackoverflow.com/questions/4782543/integration-zxing-library-directly-into-my-android-application
But it is not that helpful since the Eclipse in my window is not recognized my mobile phone.
Android Journey
About
This is the journey for my application which will scan the 2D / 1D barcode and link with PayPal.
I won't show what I will do but this is just my error message blogs so that I can reference again when I am lost.
Honestly, I lose an opportunity and trust from my supervisor because of my time management skills. I am not sure if I will get it again. But, I will try my best to show that I am not a loser !
This is my 30 hrs journey to achieve the trust back and to prove that I am not a loser !
This is the journey for my application which will scan the 2D / 1D barcode and link with PayPal.
I won't show what I will do but this is just my error message blogs so that I can reference again when I am lost.
Honestly, I lose an opportunity and trust from my supervisor because of my time management skills. I am not sure if I will get it again. But, I will try my best to show that I am not a loser !
This is my 30 hrs journey to achieve the trust back and to prove that I am not a loser !
Subscribe to:
Posts (Atom)