Assume there are \(m\) balls and \(n\) bins. We denote \(\eta_{i}^b\) the event that ball \(i\) falls into bin \(b\), and denote \(\epsilon_{ij}\) the event that balls \(i\) and \(j\) collide.
[more]
Call dependency graph in NS-3
To understand NS-3 better, or to know how something is being done in NS-3, or just to know where to modify, run the following code:
[more]
ns3: ASCII trace to stdout
The way demonstrated in examples to put ASCII trace into a file:
AsciiTraceHelper ascii;
p2p.EnableAsciiAll (ascii.CreateFileStream ("tcp-star-server.tr"));
To output to stdout (or other existing std::ostream object), use the following instead:
pointToPoint.EnableAsciiAll (Create<OutputStreamWrapper>(&std::cout));
[more]
Changing OS X Folder Icon
來源:http://support.apple.com/kb/ht2493
[more]
Mac OS X Lion
To celebrate the release of Mac OS X Lion, I bought a 750GB HDD to upgrade my MBP, and install the new OS X. Installing the Lion is not smooth, but all is done now. Below are some random hassles that I encountered:
[more]