January 6, 2010
gcin
http://cle.linux.org.tw/trac/wiki/GcinDistros
ShowTime theme
1 2 3 4 5
| gpg --keyserver hkp://keyserver.ubuntu.com:11371 --recv-key 881574DE && gpg -a --export 881574DE | sudo apt-key add -
sudo gedit /etc/apt/sources.list
deb http://ppa.launchpad.net/bisigi/ppa/ubuntu jaunty main
sudo apt-get install showtime-theme |
Emacs, checkGmail
1 2 3
| sudo apt-get install emacs
sudo apt-get install checkgmail
checkgmail -update |
Filed under:Ubuntu Author:John Wong
No Comments »
September 9, 2009
Mr. Yao was a very helpful person. He gave me this command to to test:
1 2
| $ ssh -X 000.00.000.00 -l your_username
$ matlab |
Instead, the -| didn't work out so I changed it around. Now this worked.
1 2 3
| > ssh -X username@000.00.000.00
> password
> matlab |
(more...)
Filed under:CSC 1000, Ubuntu Author:John Wong
No Comments »
February 17, 2009
It's just for fun, i will integrate a similar one into my hello world program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| // Let me trying to run another calculation program
// no more salary now
// let gets this people vs bandwidth
#include <iostream>
using namespace std;
// let us do a gloabl variables
int visitorNumber, visitBotNumber, bandwidth, dataSize, transferTime;
signed int dataBWR = 4;
// let us begin the main body of this program
int main()
{
// asks some questions
int x;
cout << "How many visitors so far?\n"<< endl;
cin >> x;
cin.get();
int y;
cout << "How many bot visitors?\n"<< endl;
cin >> y;
cin.get();
int z;
cout << "What is the total amount of data size being uploaded?\n"<< endl;
cin >> z;
if (z >10000)
bandwidth = (x + y) + (dataBWR * z);
else
bandwidth = (x + y) * (dataBWR);
cin.get();
cout << bandwidth;
cin.get();
return 0;
} |
Filed under:C/C++, College Notes, PHP&MYSQL, Ubuntu, Uncategorized Category, WordPress Mods, phpBB Mods (abandoned) Author:John Wong
2 Comments »