class CustomNetworkError {
static String getErrorMessage(int code) {
switch (code) {
case 500:
return 'server issue';
case 401:
return 'token auth missing or incorrect or no such credentials any more';
case 404:
return 'missing resource';
case 403:
return 'authenticated but insufficient permission for action';
case 405:
return 'method not allowed — when you try to access a POST with a GET etc.';
case 400:
return 'bad request — for example if you don’t submit username and password fields to login';
default:
return 'unknown error';
}
}
}
Thứ Năm, 13 tháng 6, 2019
Thứ Bảy, 6 tháng 4, 2019
Thay đổi mật khẩu releasekey.jks khi quên mật khẩu
Bước 1: Cài Java SE Development Kit 8u201
Bước 2: Cấu hình biến môi trường:
Nhấn phím Windows - gõ env - chọn Edit the system environment variables
Ở mục tab Advanced - Enviroment Variables - User variable tìm mục Path và chọn EDIT - NEW:
Gõ vào đường dẫn bin ví dụ: C:\Program Files\Java\jdk1.8.0_201\bin rồi OK
Chạy CMD gõ javac nhấn enter
Bước 3: Reset Keystore password:
Bước 4: Tìm tên keystore alias ()
Bước 2: Cấu hình biến môi trường:
Nhấn phím Windows - gõ env - chọn Edit the system environment variables
Ở mục tab Advanced - Enviroment Variables - User variable tìm mục Path và chọn EDIT - NEW:
Gõ vào đường dẫn bin ví dụ: C:\Program Files\Java\jdk1.8.0_201\bin rồi OK
Chạy CMD gõ javac nhấn enter
Bước 3: Reset Keystore password:
- Download the zip file here.
- Install JAVA into your computer
- Keep all the files(the keystore, extracted java files) in one folder
- Open Command Prompt there. (Shift + RightClick)
- Run javac ChangePassword.java
- Run java ChangePassword <keystore file> <new keystore file>
javac ChangePassword.java java ChangePassword oldkey.jks newkey.jks7. Enter a password when asked. Remember the new password for the new jks file.
Bước 4: Tìm tên keystore alias ()
I finally could figure the issue out.
To get the Key Alias: I copied the keytool.exe and my keystore file into C:\Program Files\Java\jdk1.7.0_71\bin folder. Then from command prompt I wrote:
or if another extension
It will also ask for keystore password then. Then it will show you the key alias and Certificate fingerprints and other info.
Then I again tried to Generate Signed Apk for the project, I provided keystore, keystore password, key alias and provided the same password. Then it asks for master password, I tried with the same and it failed. With the reset option I reset the master password here.
To get the Key Alias: I copied the keytool.exe and my keystore file into C:\Program Files\Java\jdk1.7.0_71\bin folder. Then from command prompt I wrote:
(jks/keystore is extension) keytool -list -v -keystore <name>.keystoreor if another extension
keytool -list -v -keystore <name>.jksIt will also ask for keystore password then. Then it will show you the key alias and Certificate fingerprints and other info.
Then I again tried to Generate Signed Apk for the project, I provided keystore, keystore password, key alias and provided the same password. Then it asks for master password, I tried with the same and it failed. With the reset option I reset the master password here.
Thứ Bảy, 30 tháng 3, 2019
Học lập trình Flutter (xây dựng app đa nền tảng Android-iOS)
FLUTTER
========
1. Official Tutorial
https://flutter.dev/docs/get-started/install/windows
2. Youtube Channel
(Nguyen Duc Hoang)
https://www.youtube.com/watch?v=iumY0Mo4pzU&list=PLWBrqglnjNl0KARGCQ5SyZBu82NwAdIfx
(Bryan Cairns)
https://www.youtube.com/playlist?list=PLUbFnGajtZlX9ubiLzYz_cw92esraiIBi
(Bram Vanbilsen)
https://www.youtube.com/playlist?list=PLxU9Ryxq6p58PsNmJL70J4_7UzfSqf35n
(Brandon Donnelson)
https://www.youtube.com/playlist?list=PLBbgqtDgdc_RUWUCInIqxpY--C94C6Xjh
3. Webpage & Video
(Zero to One with Flutter)
https://medium.com/flutter-io
https://medium.com/flutter-io/zero-to-one-with-flutter-43b13fd7b354
(Flutter Crash Course - Building a Complete app from Scartch by Bram Vanbilsen)
https://www.youtube.com/watch?v=jBBl1tYkUnE&feature=youtu.be
(Flutter Rocks)
https://iirokrankka.com/
(Learn Flutter best resources)
https://medium.freecodecamp.org/learn-flutter-best-resources-18f88346ed0f
========
1. Official Tutorial
https://flutter.dev/docs/get-started/install/windows
2. Youtube Channel
(Nguyen Duc Hoang)
https://www.youtube.com/watch?v=iumY0Mo4pzU&list=PLWBrqglnjNl0KARGCQ5SyZBu82NwAdIfx
(Bryan Cairns)
https://www.youtube.com/playlist?list=PLUbFnGajtZlX9ubiLzYz_cw92esraiIBi
(Bram Vanbilsen)
https://www.youtube.com/playlist?list=PLxU9Ryxq6p58PsNmJL70J4_7UzfSqf35n
(Brandon Donnelson)
https://www.youtube.com/playlist?list=PLBbgqtDgdc_RUWUCInIqxpY--C94C6Xjh
3. Webpage & Video
(Zero to One with Flutter)
https://medium.com/flutter-io
https://medium.com/flutter-io/zero-to-one-with-flutter-43b13fd7b354
(Flutter Crash Course - Building a Complete app from Scartch by Bram Vanbilsen)
https://www.youtube.com/watch?v=jBBl1tYkUnE&feature=youtu.be
(Flutter Rocks)
https://iirokrankka.com/
(Learn Flutter best resources)
https://medium.freecodecamp.org/learn-flutter-best-resources-18f88346ed0f
Thứ Bảy, 3 tháng 11, 2018
Thứ Năm, 18 tháng 10, 2018
Các loại thẻ ngân hàng
Thẻ nội địa / ATM
- Rút tiền mặt (phí thấp hơn thẻ quốc tế nhiều)
- Giao dịch tại các cây ATM
- Cà thẻ tại các cửa hàng, quán ăn, khách sạn... (bảo mật do cần nhập mã PIN)
- Thanh toán khi đi taxi, đổ xăng
- Chuyển khoản nhanh (chuyển tài khoản sang tài khoản)
- Nhiều trang bán hàng online cũng có chương trình khuyến mãi khi sử dụng thẻ nội địa
Thẻ quốc tế
- Mua hàng online trong nước
- Mua app trên App Store, Play Store, Microsoft Store
- Mua hàng hoặc sử dụng dịch vụ tại các website nước ngoài
- Sử dụng để cà thẻ mua sắm khi đi nước ngoài (nhớ để ý phí chuyển đổi ngoại tệ)
- Chuyển khoản nhanh (chuyển tài khoản sang tài khoản)
- Sử dụng khi có khuyến mãi cho ngân hàng của bạn hoặc có hoàn tiền (cashback)
---
Mình định nghĩa trước rồi tâm sự sau nhé. Nói chung tiền trong ngân hàng có 3 thứ liên quan:
1/. tên account đăng nhập
nó như 1 cái tủ tiền - hình như mỗi người chỉ được 1 tủ ( 1 ngân hàng )
2/. số tài khoản
như là 1 trong những các ngăn trong cái tủ ở trên. Có thể là các sổ tiết kiệm nào đó
3/. thẻ ATM
thẻ này sẽ tương ứng với các ngăn tủ ở trên. Mỗi loại thẻ như debit- visa - master -... thì sẽ có tương ứng với 1 tài khoản. Và thẻ như là 1 cái chìa khoá mở ngăn tủ !
Vậy ở đây account khác tài khoản nha !
Tâm sự: đối với Vietcombank (VCB) bạn chỉ có thể khoá tạm thời cái chìa khoá - tức là vô hiệu hoá tạm thời cái thẻ ATM !
Chứ bạn không thể khoá tạm thời cái tài khoản được ! ==> hacker vẫn có thể qua iBanking rút tiển tài khoản của bạn !!
Ngân hàng VCB hiện vẫn chưa có chức năng / khả năng khoá tạm thời tài khoản.
Cách tốt nhất hiện thời là bạn phải chuyển qua sổ tiết kiệm hết - chỉ để lại 1 ít ! END
Thứ Sáu, 12 tháng 10, 2018
excel 2016 hd
https://www.dropbox.com/s/4a9zoueas5hu7k4/Lambert%20_Joan%20_MOS_2016_Study_Guide_for_Microsoft%28b-ok.xyz%29.azw3?dl=1
Overlord
Overlord Q12:
https://www.dropbox.com/s/aw5ncwsapmipnkp/Overlord%203.epub?dl=1
Q13p1
https://app.box.com/s/et5c00a0h4cmo2mlkg4cmv03llfz12kz
Q13p2end
https://www.dropbox.com/s/9ymotp3uohauo5z/Overlord_t13.mobi?dl=1
https://www.dropbox.com/s/aw5ncwsapmipnkp/Overlord%203.epub?dl=1
Q13p1
https://app.box.com/s/et5c00a0h4cmo2mlkg4cmv03llfz12kz
Q13p2end
https://www.dropbox.com/s/9ymotp3uohauo5z/Overlord_t13.mobi?dl=1
Đăng ký:
Bài đăng (Atom)