Tracking on smartphone: advertising ID, device fingerprint, cookie, SDK

Các app/công ty track người dùng thông qua smartphone như thế nào? 1. Thông qua Advertising ID: Trên mỗi smartphone đều có ads ID (Ios: IDFA – identifier for advertisers , Android: AAID – Android Advertising ID). Các app có thể sử dụng mã nhận dạng này để theo dõi người dùng.  – Mã nhận […]

Sum by cell color – VBA excel

Excel by default has no formula or feature to make a sum based on cell background color. Function SumByColor(CellColor As Range, rRange As Range)Dim cSum As DoubleDim ColIndex As IntegerColIndex = CellColor.Interior.ColorIndexFor Each cl In rRange If cl.Interior.ColorIndex = ColIndex Then cSum = WorksheetFunction.Sum(cl, cSum) End IfNext clSumByColor = cSumEnd Function How to use this […]

Collect shopee data automatically

Background: – Shopee uses javascript to get data as json from server – Shopee server only provides data for request with “User-agent”, “X-Requested-With”, “Referer”. Requests without these will get empty result. Required tool: – Using devtool to find url of json – python to run js request. Ref: https://stackoverflow.com/questions/59557071/how-can-i-crawl-the-product-items-from-shopee-website

Macbook keyboard issues

Macbook keyboard

Macbook keyboard bị lỗi phím hoặc bộ gõ tiếng Việt mặc định bị lỗi:  – Remove bộ cài tiếng Việt mặc định => cài Gotiengviet thay thế – bàn phím ngoài Logitech (external keyboard) bị switch giữa phím “command” và “option” so với bàn phím mặc định của Mac => swap hai phím này với […]

Woocommerce product in database

Products are located mainly in the following tables: wp_posts table with post_type like product (or product_variation), wp_postmeta table with post_id as relational index (the product ID). wp_wc_product_meta_lookup table with product_id as relational index (the post ID) | Allow fast queries on specific product data (since WooCommerce 3.7) wp_wc_order_product_lookuptable with product_id as relational index (the post ID) | Allow fast queries to retrieve products on orders (since WooCommerce 3.7) Product […]

Browser fingerprinting and ways to change it

1. Your browser fingerprint can reflect: the User agent header the Accept header the Connection header the Encoding header the Language header the list of plugins the platform the cookies preferences (allowed or not) the Do Not Track preferences (yes, no or not communicated) the timezone the screen resolution and its color depth => Javascript […]

Sử dụng Indirect với Sum

SUM(INDIRECT(“‘”&B3&”‘!C5:C100”)) explanation:  “‘” –> an apostrophe (red) between the quotes – to handle sheet names that contain space(s) & –> to concatenate B3 –> cell that contains the sheet name & –> to concatenate “‘!C5:C100” –> apostrophe; exclamation mark ! ; range Ref: https://www.mrexcel.com/board/threads/sum-with-sheet-names-as-a-variable-instead-of-manually-provided-text.1027982/  

Vlookup với left() cho kết quả #N/A

Vlookup and left function

Issue: Khi sử dụng Vlookup với left() trong Google sheet hoặc Excel trả về kết quả #N/A mặc dù trong bảng target data có data cần tìm Trong ảnh trên, nếu chỉ sử dụng left(), số 25258 được coi là 1 string và google sheet tự động căn trái. Còn với hàm “–left()” trả kết […]

Hướng dẫn xử lý lỗi 404 not found – Nginx WordPress

Nguyên nhân gây lỗi 404 not found ở tất cả các trang, trừ trang chủ – Nginx rewrite lại đường dẫn Giải pháp Dể xử lý lỗi này trên nginx, bạn cần có quyền truy cập ssh vào server hoặc các quyền tương đương để sửa lại file cấu hình của Vhost Nginx. File cấu […]