Name: Simon Howard
Member since: 2002-01-05 03:34:52
Last Login: 2007-05-18 09:39:58
Homepage: http://www.soulsphere.org/
Notes: aka fragglet, sdh^
Python's braindamaged scoping rules
Python distinguishes between local and global variables from assignment statements. If a variable is assigned within a function, that variable is treated as a local variable. This means that you cannot do this:
my_var = None
def set_my_var():
my_var = "hello world"
set_my_var()
print my_var
my_var = None
def set_my_var():
global my_var
my_var = "hello world"
set_my_var()
print my_var
IPv6
IPv6 is something that I've been interested in for a while; I was even employed to do some v6 porting work a few years ago. Unfortunately, even though it's been several years and address exhaustion is rapidly approaching, uptake remains slow.
create nat rule entry ruleid 41416 rdr prot num 41 lcladdrfrom 192.168.1.6 lcladdrto 192.168.1.6
iface tun6to4 inet6 v4tunnel address 2002:0102:0304::1 netmask 16 endpoint any local 192.168.1.6 ttl 255 remote 192.88.99.1 post-up ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4 post-down ip -6 route flush dev tun6to4 auto tun6to4
$ ping6 ipv6.google.com PING ipv6.google.com(2001:4860:a003::68) 56 data bytes 64 bytes from 2001:4860:a003::68: icmp_seq=1 ttl=61 time=53.8 ms 64 bytes from 2001:4860:a003::68: icmp_seq=2 ttl=61 time=52.5 ms 64 bytes from 2001:4860:a003::68: icmp_seq=3 ttl=61 time=45.5 ms 64 bytes from 2001:4860:a003::68: icmp_seq=4 ttl=61 time=51.5 ms
interface eth0
{
AdvSendAdvert on;
prefix 2002:0102:0304:face::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
iface eth0 inet6 static
address 2002:0102:0304:face::1
netmask 64
net.ipv6.conf.all.forwarding=1 net.ipv6.conf.default.forwarding=1
sudo sysctl net.ipv6.conf.all.forwarding=1 sudo sysctl net.ipv6.conf.default.forwarding=1
wlan0 Link encap:Ethernet HWaddr 00:1c:10:63:63:d0
inet addr:192.168.1.25 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2002:0102:0304:face:21c:10ff:fe63:63d0/64 Scope:Global
inet6 addr: fe80::21c:10ff:fe63:63d0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7658 errors:0 dropped:0 overruns:0 frame:0
TX packets:7228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4073660 (4.0 MB) TX bytes:903010 (903.0 KB)
Stock photos
BBC News' obsession with filling their articles with stock photos that contain no relevant information is reaching absurd extremes."The Scene"
An interesting article about "The Scene", describing the hypocritical stupidity of the pirate subculture. I already experienced this nonsense first hand a while back when I dared to provide a well-reasoned criticism of the unnecessary use of spanning RAR files in BitTorrent downloads. The irrational and angry flames that I received in response were a convincing demonstration of the absurd elitist mentality of these people.fraggle certified others as follows:
Others have certified fraggle as follows:
[ Certification disabled because you're not logged in. ]
FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!