Understanding how long-term capital gains taxes work is crucial for investment planning. This guide breaks down the 2024 tax brackets and provides practical examples to help you calculate your potential tax liability.
Gravity Shoot - Physics shooting Game on wrist
Master precision shooting on your wrist—Twist the Digital Crown to bend gravity and guide your shot. One twist, one chance, endless satisfaction. Are you ready to defy the impossible?
Gravity Shoot Privacy
A Blog about Networking
最近在想问题“IP与MAC的作用”,以及很早之前学过的网络知识。发现了一个非常好的网站 Practical Networking (www.practicalnetworking.net/series),所以记录一下这个网站以及我所学到的知识.
Python Forward References
Python3中加入了对 Type
的支持,但是在下面的例子中:
1 |
|
Python会抱怨Node is not defined.
.出现这种情况的原因是,我们在Node的定义还没有完全结束的时候引用了它。解决的方法是使用string
来标注这个type:
1 |
|
这种方法叫做 Forward References.
Linux Directory For Software
用Windows的可能都知道,软件一般会被安装在C盘的Program Files
或者Program Files (x86)
目录下。那么在Linux上有没有对应的目录呢?
答案是没有。通常软件会被安装在/bin
, /usr/bin
, /usr/share
, /usr/local
或者/opt
下。
那么对于一个已经安装了的软件,该如何寻找它的安装地址呢?这个答案给了很好的解释。简而言之,可以用type
, which
或者whereis
cmd去查询。除此之外,这个答案解释了每个目录存放的大致的内容。
Python? Unicode? UTF-8?
一直以来Python的Unicode问题我就没有彻底弄明白,这次趁着工作上的机会,将这个问题彻底梳理一下。
很感谢The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)这篇Blog, 给了我很大的帮助。
C++ Partial Template Specialization
最近读到一段代码,大致如下:
1 |
|
由于对C++ Template Metaprogramming 不是很熟悉, 觉得在用GetNext的时候,两个申明都可能会匹配上,那么compiler怎么知道选择哪个呢。
Everthing I need to know About 401(k) and IRA
This is a document to help me understand how 401(k) and IRA work. Last updated on 2019/02.
The Login of Root User on MySQL
最近发现使用mysql -u root -p
登录MySQL的时候会遇到ERROR 1698 (28000): Access denied for user 'root'@'localhost'
错误。 但是UPDATE user SET Password=PASSWORD('my_password') where USER='root';
并不能解决我的问题。经过一番调查发现是我plugin
的设置的问题。