Skip to content

Instantly share code, notes, and snippets.

@tycoi2005
tycoi2005 / getSerialVersionUID.java
Created February 22, 2016 09:01
getSerialVersionUID of a class
long svu = ObjectStreamClass.lookup(BaseModel.class).getSerialVersionUID();
@tycoi2005
tycoi2005 / serializeNotes.txt
Created March 17, 2016 08:12
serialize notes
tóm tắt lại việc test : các case bị lỗi serialize khi không có serialVersionUID : add property, add function,
các case bị lỗi khi có serialVersionUID : change type của property, không bị lỗi khi add property, add function
BaseModel khi không có serialize thì bị lỗi khi add property, add function ở BaseModel khi deserialize lớp con
<a href="xxx">
<img style="width:100%"/> <!-- this style is relative to a tag, but a tag is not setted -->
<br/> <!-- this br tag should not be here, br is block tag, some time on webview if img load slow, a tag will have size of br and made img size small -->
</a>
BTC-CLAM
BTC-GNO
BTC-BNT
BTC-ANT
BTC-ZCL
BTC-AMP
BTC-OMNI
BTC-BTCD
BTC-DCT
BTC-MANA
var lineReader = require('readline').createInterface({
input: require('fs').createReadStream('QNT-KYC.csv')
});
var request = require('sync-request');
lineReader.on('line', function (line) {
// console.log('Line from file:', line);
var list = line.split(",")
var lineReader = require('readline').createInterface({
input: require('fs').createReadStream('QNT-KYC.csv')
});
var request = require('sync-request');
lineReader.on('line', function (line) {
// console.log('Line from file:', line);
var list = line.split(",")
[
{
"constant": false,
"inputs": [
{
"name": "_newQNTBAddress",
"type": "address"
}
],
"name": "changeQNTBAddress",
@tycoi2005
tycoi2005 / vi.po
Created October 6, 2018 16:06
odoo vi.po
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale
#
# Translators:
# Martin Trigaux, 2017
# fanha99 <[email protected]>, 2017
# Duy BQ <[email protected]>, 2017
# sao sang <[email protected]>, 2017
# Phạm Lân <[email protected]>, 2017
# edit vi.po
# /usr/lib/python3/dist-packages/odoo/addons/website_sale/i18n
DELETE FROM ir_translation WHERE lang = 'vi_VN';
# load tranlastation again