Skip to main content

Posts

Showing posts from July, 2020

Why git push --force after rebase

https://stackoverflow.com/questions/8939977/git-push-rejected-after-feature-branch-rebase This post explain why we have to git push --force after rebase, otherwise it show error/warning message. I'm too lazy to find it out, but this explain seem quite straightforward. The problem is that git push assumes that remote branch can be fast-forwarded to your local branch, that is that all the difference between local and remote branches is in local having some new commits at the end like that: Z--X--R         <- origin/some-branch (can be fast-forwarded to Y commit)        \                 T--Y    <- some-branch When you perform git rebase commits D and E are applied to new base and new commits are created. That means after rebase you have something like that: A--B--C------F--G--D'--E'   <- feature-branch        \           D...

Why is only one device being allowed on the internet through a router

https://superuser.com/questions/691371/why-is-only-one-device-being-allowed-on-the-internet-through-my-asus-router/691389 This can happen when your Wi-Fi "router" is actually just bridging, and your broadband modem latches onto the first LAN-side MAC address it sees after it boots. DOCSIS-compliant cable modems are especially likely to do this to you. The solution is to put your Wi-Fi router back into NAT gateway mode and make sure your Wi-Fi router's WAN port (not its LAN port) is the only thing connected to the LAN side of the cable modem. Then fully power down the cable modem and then boot it back up. That the router's WAN MAC address will be the one the cable modem latches onto, because no other machine's MAC address will be visible to the cable modem. Note: If your cable modem includes telephone gateway functionality (VoIP, "digital voice", eMTA, etc.), it may have a built-in battery backup, so when you unplug the cable modem, be sure to look to see...

Hồ Ngọc Đức - những đóng góp cho từ điển tiếng Việt và Âm lịch

http://www.informatik.uni-leipzig.de/~duc/ Tôi thấy làm từ điển khá nhàm chán và tốn công sức. Làm công thức tính lịch âm (Lunar Calendar) cũng không có mấy thú vị. Tuy nhiên cái sức ảnh hưởng hay giá trị sử dụng của nó cực kỳ lớn với cộng đồng người Việt cỡ hơn 100tr người. Bài này tôi note lại công sức đóng góp của Hồ Ngọc Đức (quê Yên Bái ?). Theo thông tin trang nhà thì bác này trước du học đông Đức ĐH Leipzig thì phải. Sau học cả Berkeley, CA, Leed UK,  Nói thêm về từ điển, tôi thấy nhiều cuốn từ điển trước kia (Anh-Việt, Việt-Anh, Trung-Việt...) có nội dung rất hay và tính chính xác cao. Không như những từ điển ngày này, một điều khá khó chịu khi mà thế hệ sau phải dùng những công cụ, kết quả dịch khô khan, tối nghĩa - a deteriorate of value.  https://github.com/ThienMD/lich-van-nien-flutter http://www.informatik.uni-leipzig.de/~duc/amlich/vncal_en.html Write alternative one. http://cnchanoi.com.vn/

Notes on Shopify

Limit per IP address & users unable to add products in cart https://community.shopify.com/c/Shopify-Discussion/Limit-per-IP-address-users-unable-to-add-products-in-cart/td-p/346851 Unfortunately, in the last week Shopify’s support team wasn’t helpful with problems we are experiencing on our webshop so I’m wondering if anyone had similar issues. Our website is running on two platforms: Shopify + CMS platform we use for landing pages, home page etc.  10 days ago we noticed that some users are experiencing problems with ‘add to cart’ button - if they try to add a product, their Shopify cart in a slider is blank and contains no products. If they would click on the checkout button, Shopify’s page would show error message: too many attempts After several days and 2 completely misleading answers by Shopify, our developers realised that the problem is as follows: - Shopify has a server limit of x changes of the cart within x minutes, per customer - That way Shopify probably wants to pr...