System details: FireFox (31.0)
- In the URL bar, type
about:config
- Type
geo.enabled
- Double click on the geo.enabled preference
- Location-Aware Browsing is now disabled
about:config
geo.enabled
#include
#include
int iterator_1 = 0; //iterator for the cieling & floor
int iterator_2 = 0; //iterator for the walls
void plusminus() //Create the dashed floor and cieling
{
printf("+----+----+----+----+----+----+----+----+\n");
}
void blankbar() //Create the lined box's walls
{
printf("| | | | | | | | |\n");
}
int main(int argc, char** argv)
{
while(iterator_1 < 8) // Run it 8 times, only doing top to bottom
{
plusminus(); //Call plusminus to create the first cieling
++iterator_1;
while (iterator_2 < 3) //create the walls
{
blankbar();
++iterator_2;
}
iterator_2 = 0;
}
plusminus(); //creating the last floor
return 0;
}
aggitan@Moneque:~$ uname -a
Linux Moneque 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
aggitan@Moneque:~$ lsof -P -i -n | cut -f 1 -d " "| uniq | tail -n +2
software-
pidgin
skype
evolution
firefox
skype
aggitan@Moneque:~$ ss -p | cut -f2 -sd\"
firefox
software-center
skype
evolution-data-
pidgin
firefox
pidgin
pidgin
pidgin
skype
pidgin
aggitan@Moneque:~$ ss -p | cat
State Recv-Q Send-Q Local Address:Port Peer Address:Port
ESTAB 0 0 192.168.1.2:58623 74.125.127.191:www users:(("firefox",5652,59))
CLOSE-WAIT 1 0 192.168.1.2:49530 91.189.89.31:www users:(("software-center",3165,42))
ESTAB 0 0 192.168.1.2:37498 97.74.195.163:23314 users:(("skype",5993,28))
ESTAB 0 0 192.168.1.2:38578 74.125.19.104:https users:(("evolution-data-",3522,23))
ESTAB 0 0 192.168.1.2:52701 64.12.104.29:aol users:(("pidgin",3220,7))
ESTAB 0 0 192.168.1.2:58629 74.125.127.191:www users:(("firefox",5652,66))
ESTAB 0 0 192.168.1.2:50324 64.4.34.34:msnp users:(("pidgin",3220,24))
ESTAB 0 0 192.168.1.2:41756 64.12.200.200:aol users:(("pidgin",3220,26))
ESTAB 0 0 192.168.1.2:46001 205.188.248.153:aol users:(("pidgin",3220,27))
LAST-ACK 0 1 192.168.1.2:50468 64.211.162.170:www
ESTAB 0 0 192.168.1.2:56745 97.102.113.65:39196 users:(("skype",3275,25))
ESTAB 0 0 192.168.1.2:48318 68.180.217.22:mmcc users:(("pidgin",3220,22))
ESTAB 0 0 192.168.1.2:45615 208.82.32.2:https
aggitan@Moneque:~$ ss -p | grep STA
ESTAB 0 0 192.168.1.2:58623 74.125.127.191:www users:(("firefox",5652,59))
ESTAB 0 0 192.168.1.2:37498 97.74.195.163:23314 users:(("skype",5993,28))
ESTAB 0 0 192.168.1.2:38578 74.125.19.104:https users:(("evolution-data-",3522,23))
ESTAB 0 0 192.168.1.2:52701 64.12.104.29:aol users:(("pidgin",3220,7))
ESTAB 0 0 192.168.1.2:58629 74.125.127.191:www users:(("firefox",5652,66))
ESTAB 0 0 192.168.1.2:50324 64.4.34.34:msnp users:(("pidgin",3220,24))
ESTAB 0 0 192.168.1.2:41756 64.12.200.200:aol users:(("pidgin",3220,26))
ESTAB 0 0 192.168.1.2:46001 205.188.248.153:aol users:(("pidgin",3220,27))
ESTAB 0 0 192.168.1.2:56745 97.102.113.65:39196 users:(("skype",3275,25))
ESTAB 0 0 192.168.1.2:48318 68.180.217.22:mmcc users:(("pidgin",3220,22))
ESTAB 0 0 192.168.1.2:45615 208.82.32.2:https
aggitan@Moneque:~$ ss -p | cut -f2 -sd\"
firefox
software-center
skype
evolution-data-
pidgin
firefox
pidgin
pidgin
pidgin
skype
pidgin
aggitan@Moneque:~$ ss -p | grep STA | cut -f2 -d\"
evolution-data-
firefox
skype
pidgin
firefox
pidgin
pidgin
pidgin
skype
pidgin
ESTAB 0 0 192.168.1.2:45615 208.82.32.2:https
aggitan@Moneque:~$ netstat -lantp | grep -i stab | awk -F/ '{print $2}' | sort | uniq
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
evolution-data
firefox
pidgin
skype
aggitan@Moneque:~$ lsof -nPi | cut -f1 -d" " | sort -u
COMMAND
evolution
firefox
pidgin
skype
software-
aggitan@Moneque:~$ lsof -P -i -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
software- 3165 aggitan 42u IPv4 17054 0t0 TCP 192.168.1.2:49530->91.189.89.31:80 (CLOSE_WAIT)
pidgin 3220 aggitan 7u IPv4 15717 0t0 TCP 192.168.1.2:52701->64.12.104.29:5190 (ESTABLISHED)
....
pidgin 3220 aggitan 27u IPv4 16065 0t0 TCP 192.168.1.2:46001->205.188.248.153:5190 (ESTABLISHED)
pidgin 3220 aggitan 28u IPv4 68682 0t0 TCP 192.168.1.2:33893->64.12.30.44:5190 (ESTABLISHED)
skype 3275 aggitan 21u IPv4 15556 0t0 UDP 127.0.0.1:54110
skype 3275 aggitan 22u IPv4 17137 0t0 TCP *:38228 (LISTEN)
skype 3275 aggitan 23u IPv4 17138 0t0 UDP *:38228
skype 3275 aggitan 25u IPv4 18201 0t0 TCP 192.168.1.2:56745->97.102.113.65:39196 (ESTABLISHED)
evolution 3522 aggitan 23u IPv4 84194 0t0 TCP 192.168.1.2:47782->74.125.19.104:443 (ESTABLISHED)
firefox 5652 aggitan 22u IPv4 83368 0t0 TCP 192.168.1.2:42311->74.125.127.97:443 (ESTABLISHED)
firefox 5652 aggitan 42u IPv4 83382 0t0 TCP 192.168.1.2:50066->74.125.127.132:443 (ESTABLISHED)
....
firefox 5652 aggitan 86u IPv4 85007 0t0 TCP 192.168.1.2:42467->74.125.127.133:80 (ESTABLISHED)
skype 5993 aggitan 21u IPv4 57559 0t0 UDP 127.0.0.1:49063
skype 5993 aggitan 22u IPv4 57648 0t0 TCP *:1219 (LISTEN)
skype 5993 aggitan 23u IPv4 57649 0t0 UDP *:1219
skype 5993 aggitan 28u IPv4 58655 0t0 TCP 192.168.1.2:37498->97.74.195.163:23314 (ESTABLISHED)
aggitan@Moneque:~$ netstat | grep tcp
tcp 0 0 Moneque.local:58623 pz-in-f191.1e100.ne:www ESTABLISHED
tcp 1 0 Moneque.local:49530 barbadine.canonical:www CLOSE_WAIT
tcp 0 0 Moneque.local:37498 ip-97-74-195-163.:23314 ESTABLISHED
tcp 0 0 Moneque.local:52701 bos-m085b-sdr2.blue:aol ESTABLISHED
tcp 0 0 Moneque.local:37518 nuq04s01-in-f104.:https ESTABLISHED
tcp 0 0 Moneque.local:50324 bay12-ts5.bay12.ho:msnp ESTABLISHED
tcp 0 0 Moneque.local:41756 buddychat-m01b.blue:aol ESTABLISHED
tcp 0 0 Moneque.local:46001 oam-d10b.blue.aol.c:aol ESTABLISHED
tcp 0 0 Moneque.local:56745 65.113.102.97.cfl:39196 ESTABLISHED
tcp 0 0 Moneque.local:48318 cs117.msg.sp1.yaho:mmcc ESTABLISHED
tcp 0 0 Moneque.local:45615 208.82.32.2:https ESTABLISHED
lshw
aggitan@Moneque:~$ lshw
WARNING: you should run this program as super-user.
moneque
description: Computer
width: 32 bits
*-core
description: Motherboard
physical id: 0
sudo lshw
aggitan@Moneque:~$ sudo lshw
moneque
description: Desktop Computer
product: System Product Name
vendor: System manufacturer
version: System Version
serial: System Serial Number
width: 32 bits
capabilities: smbios-2.3 dmi-2.3 smp-1.4 smp
configuration: boot=normal chassis=desktop cpus=2 uuid=A0E172FB-7331-DC11-8A81-001E8C259ED7
*-core
description: Motherboard
product: M2R32-MVP
vendor: ASUSTeK Computer INC.
physical id: 0
sudo lshw >> somefile
*-memory
description: System Memory
physical id: 45
slot: System board or motherboard
size: 2GiB
*-bank:0
description: DIMM DDR2 Synchronous 800 MHz (1.2 ns)
product: PartNum0
vendor: Manufacturer0
physical id: 0
serial: SerNum0
slot: DIMM0
size: 1GiB
width: 64 bits
clock: 800MHz (1.2ns)
*-bank:1
description: DIMM DDR2 [empty]
product: PartNum1
vendor: Manufacturer1
physical id: 1
serial: SerNum1
slot: DIMM1
*-bank:2
description: DIMM DDR2 Synchronous 800 MHz (1.2 ns)
product: PartNum2
vendor: Manufacturer2
physical id: 2
serial: SerNum2
slot: DIMM2
size: 1GiB
width: 64 bits
clock: 800MHz (1.2ns)
*-bank:3
description: DIMM DDR2 [empty]
product: PartNum3
vendor: Manufacturer3
physical id: 3
serial: SerNum3
slot: DIMM3