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^
Chocolate Doom on OS X, and GNUstep
Chocolate Doom runs on Mac OS X and has done for several years; however, until now, getting it running has been overly complicated and required compiling the source code from scratch. Obviously this isn't really appropriate for a Mac; it certainly doesn't fit in with the Apple way of doing things. I recently set about trying to improve the situation.

How about implementing parts of the Application Kit with GTK?
Yes and No - The GNUstep architecture provides a single, platform-independent, API for handling all aspects of GUI interaction (implemented in the gstep-gui library), with a backend architecture that permits you to have different display models (display postscript, X-windows, win32, berlin ...) while letting you use the same code for printing as for displaying. Use of GTK in the frontend gui library would remove some of those advantages without adding any.
How to make a program just run
Starting with Windows Vista, Windows limits the privileges that are given to normal users, running programs as the Administrator user only when necessary. To smooth over the fact that install programs for most software need to run as Administrator, it uses heuristics to detect whether a program is an installer. One of these is to look at the file name - if it contains "setup" in the name (among others), it is treated as an installer.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<!-- The "name" field in this tag should be the same as the executable's
name -->
<assemblyIdentity version="0.0.0.0" processorArchitecture="X86"
name="chocolate-setup.exe" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
1 24 MOVEABLE PURE "setup-manifest.xml"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<!-- The "name" field in this tag should be the same as the executable's
name -->
<assemblyIdentity version="0.0.0.0" processorArchitecture="X86"
name="chocolate-setup.exe" type="win32"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
<!-- Stop the Program Compatibility Assistant appearing: -->
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> <!-- 7 -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/> <!-- Vista -->
</application>
</compatibility>
</assembly>
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)
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!