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 […]
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 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 […]
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 […]
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 […]
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/
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 […]
1.Nginx log gồm có: + Access log: có thể chia ra theo từng domain (/home/domain/logs) + Error log 2. Lệnh đọc log: – Tail -f access.log: hiển thị 10 dòng cuối của access log (sử dụng khi đang ở trong thư mục chứa log) – Cat error.log: hiển thị toàn bộ nội dung error log […]
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 […]
Dung lượng log file (access log, error log…) được hệ thống ghi lại hàng ngày. Khi dung lượng file log quá lớn có thể làm đầy bộ nhớ hệ thống và làm cho website không còn dung lượng để hoạt động Để quản lý log file, chúng ta có thể sử dụng “Logrotate” để quản […]