Search Results: "ana"

21 July 2006

Simon Richter: RyanAir is weird

Wasn't the plane supposed to follow the checkcar, not meet it halfway?

Evan Prodromou: 3 Thermidor CCXIV

Last night's CC Salon in Montreal went extremely well. I spent the time haranguing Marcus and Tina Pipers (the co-director of Creative Commons Canada) about the evils of anti-DRM clauses in licenses. (See Free content and DRM for my opinionated take on this matter.) Apparently there was a lot of talk about this at the iCommons summit in Brazil. Amita June enjoyed the noise and attention and spent an inordinate amount of time patting one hacker's very long beard. We'll see what kind of psychological symptoms that develops into later. tags:

Ben Macintyre on Wiki It was kind of tiring to see Ben Macintyre's note on How wiki-wiki can get sticky in The Times Online.
  • Many years ago, I wrote a book about a Victorian crook called Adam Worth, a subject so obscure that no one had ever written a book about him before, or since. When I found an entry for Worth on Wikipedia, I was at first astonished, then flattered to find the book cited in the references, and then slightly infuriated: whoever had written the entry had plainly read my book and summarised it, but added several small but irritating errors.
Wikipedia isn't perfect and contains some errors? Oh, really? Boo hoo hoo. Yawn, turn the page. Wait, though; what's that last paragraph say?
  • At first, I ignored the mistakes. This was only Wikipedia, after all. But the landscape of knowledge has changed since then, and I have joined the club. Wikipedia should always be taken with a pinch of salt. But the more we contribute and revise, the less salt we will need. We are all Wikipedists now.
Huh. A mainstream journalist who realized the way to deal with errors in Wikipedia is to fix them? Am I dreamin'? tags:

Mike Hommey: Firefox 2.0b1 in experimental

After quite some work on packaging it, Firefox 2.0b1 is finally being uploaded to experimental. It is linked to the system libmyspell instead of the bundled one, and can use system dictionaries like Thunderbird already does. I’m also working on using the system libsqlite3, but it first requires some build changes in the debian sqlite3 package and some more work to see if it’s really feasible… you see, they like to take external libraries and modify them so much as adding symbols, changing some internals… and these changes only exist in the mozilla codebase… (the 2 main examples of that being expat and sqlite3) It also includes a working DOM Inspector which upstream didn’t include in their release because they are in the process of moving the component in the core. I also had to fix some more the build system so that some things would be installed by make install (they tend to forget it), others would just be installed (mistakenly removed rules…) or make clean would do its work: cleaning (they tend to forget to flag files for removal when they create it in a Makefile). All that makes me wonder what their review/super-review thing is worth. Anyways, please give it a try, especially if you reported a bug on earlier versions, it would be helpful if you closed bugs that are fixed by this release (don’t forget the ‘Version:’ in the closing message so that the BTS version tracking would do its work). Update: Upstream Firefox 2.0b1 has a working DOM Inspector. It only appears it just doesn’t build correctly the way we build Firefox… might be some missing changes to the Makefiles. Again. *sigh* Update 2: It was trickier: missing something to make the inspector symbols public instead of having a hidden visibility… Update 3: It was actually my fault. /me goes hiding under a rock. And I managed to remove a comment to this post when removing spam… *sigh*. I think I need to take a break.

20 July 2006

Evan Prodromou: 2 Thermidor CCXIV

I talked with Raymond King and Mark Dilley at RecentChangesCamp in February (uh... I mean Pluvi se) about their plans to develop Mark's excellent SwitchWiki wiki directory into something... more. I'm glad to see that WikiIndex is really picking up steam. It's becoming my first-stop for getting information on what's wiki, what's not, and who's doing what. The site uses MediaWiki, but the principles and community are very much rooted in the traditions of Ward's Wiki, MeatballWiki and CommunityWiki. I really hope this site keeps up it's momentum and growth. tags:

CC Salon in Montreal Tonight is the first Creative Commons Salon in Montreal. The get-together is at Caf l tranger, 680 Sainte-Catherine Ouest (at Alymer) at 19h30. More details on the Creative Commons Canada blog: http://creativecommons.ca/blog/?p=185 . Maj and I are trying to get a sitter for the event -- Amita June is starting to get grumpier and grumpier about going to sleep after 8PM. But I'll be there regardless. tags:

Great camping Website So, maybe I just haven't been camping a lot in other places outside Quebec in a while, but I'm extremely impressed with the quality of the S paq Web site. You can search the entire network for available campsites based on various criteria (size of tent vs. RV, for example), and then use a map-based interface to browse possible sites. The maps go down to the individual site level, and have popup descriptions of each and every site -- how much sun, how close to water, how private, etc. It's really nice. I have my quibbles -- we tend to do road-trip camping, where we'll stay in a different campground each night for a few days. It'd be nice to do all those reservations at once, but the site doesn't support that. And there are some search criteria I'd like to be able to specify (number of neighbors, access by car) that aren't possible. But as far as it goes, this is a real good site. tags:

Wikispam lockdown I've been having a real problem with Wikispam on my site lately -- several of my pages have nothing-to-sniff-at wp:PageRank values of 6 or 7, and I think that attracts a certain spammity crowd. I think that dealing with Wikispam is something most wiki sites do very well-- an active community is the best counter-measure against spam. And there are lots of good tools, like regexp filters, per-page locking, email and IM notification, and ip blocking that make it easier to maintain a site. But I don't have an active community working on this site -- it's pretty much just me. And WiLiKi, as beautiful and Scheme-y as it is, doesn't have many of the anti-spam tools that users of other wiki engines take for granted. I plan on building more anti-spam tools into the site, but for now I've just been locking the site up when I'm not writing something. It's not as wiki-ish, but it does keep my writing up more often. I'd feel pretty bad about it, but it looks like Alex locks up CommunityWiki for days at a time. tags:

Amazon man at the door Just got an order from Amazon in... full of CDs and books. When I used to live in my car (long story, there), I had my 100 favorite CDs in a box in the back. It was safe there in tons of cities -- wt:Chicago, wt:Saint Louis, wt:New York City, even wt:Monterrey and wt:Guanajuato. But I parked it about a block from It's Tops in San Francisco one night while visiting home, and one of my windows was smashed and the discs were taken. Devastating. Slowly but surely I've been re-stocking my music collection, but it's painful to buy the same album twice (and, yes, I know... I shoulda made backups! I do that now). Today's shipment contained a lot of stuff I re-bought: ''wp:The Last Waltz'', a bunch of wp:Neil Young (including the DVD of wp:Greendale), and one of my favorite albums ever, the eponymous first album from Lamb. Also in the box were a bunch of Lost paperbacks ("inspired by the hit series") and the hardback copy of Bad Twin, the mystery novel supposedly written by one of the people who died in the crash of Flight 815. Yeah, I know -- but I like the show, dangit. tags:

Best thing ever Vaguely reminiscent of the very fine Good or Bad? feature from Brunching Shuttlecocks, bestthing.info, by the enigmatic but talented xkcd, is a good way to waste a few minutes. tags:

Clint Adams: The stillborn cap your knees at midnight

In the sack: Lemon and orange Wet: A tiny gulp of Lymon, like you might get from a 28cl bottle of Sprite, when you had wanted a real beverage instead. Dry down: Olive oiled HARD. The touch: The discarded husks of a bygone era. The feel: In a power vacuum, those least deserving will sally forth to claim their prize. The magic of our lives: Eh. Final verdict: Neh.

19 July 2006

Alexis Sukrieh: Gimme bandwith and CPU!

I finally managed to get my new servers up-and-running (got all the worst issues you can imagine with my hardware provider), hosted in the french data-center “TeleHouse 2″. It’s a Dual Core AMD 64 that runs a “Debian 3.1 Sarge” system, rock on babe! Now, it’s time to move everything from nyx.sukria.net (my home-hosted box) to hypnos.sukria.net… (…and yeah, @backup-manager.org services are affected by these changes)

Junichi Uekawa: Dual monitor setup with radeon driver.

Since I got hold of a projector, I wanted dual-displaysetup.I played around with configuration on dx5150, and Ihave not managed to get a working setup.This is my currentconfig. I can see the same thing on two screens. Ireally want two different things displayed.

Matthew Garrett

Mark:

You've been somewhat disingenuous in your quoting. The full phrase is "Since Debian has no authority to hold money or property, any donations for the Debian Project must be made to SPI, which manages such affairs". That is, the "Any donations for the Debian Project must be made to SPI" isn't saying "Money must be given to SPI because we don't trust anyone else", it's saying "Money must be given to SPI because we can't accept money ourselves". It's a historical bug, much like "Debian's Developers are currently members of SPI by virtue of their status as Developers" (untrue and the sort of thing that you'd normally complain about".

it looks to me like the DPL endorsing someone not approved by SPI maybe isn't a properly-made decision

"SPI has no authority regarding Debian's technical or nontechnical decisions" could be used to argue against that, since it clearly indicates that the approval (or not) of SPI can't be used to block decisions made by the rest of the project. Perhaps this section of the constitution was badly written? Good Lord, etc.

Advocating expulsion! For wanting to avoid involvement with an unethical, buggy business venture of some UK DDs!

Or, alternatively, for going on and on and on and on and on and on and on about an argument that you've already lost and wasting absolutely no opportunity to bring it up in any possible new vaguely related forum. Sort of like your "religious hate campaign" and "violation of the UN human rights declaration" routines. Entirely coincidentally, I've been facing the latter from a co-worker who keeps accusing me of having stolen her Windows XP CD. I mention this merely as an amusing aside.

I would have commented rather than making a post of my own, except that you don't seem to have any mechanism for providing publically viewable comments. Coincidentally, this is the same reason that I didn't comment to say that I didn't like the way you fold your posts.

(Edited to fix spelling)

MJ Ray: Debian UK Society

In June 2005, Ian Jackson chastised me for directing a UK donation away from Debian-UK Society (DUS), quoting a chunk of debian rules: "In particular, the Constitution says that [a person] must not actively work against these rules and decisions properly made under them'." Then I looked and I found the Constitution also says: "Since Debian has no authority to hold money or property, any donations for the Debian Project must be made to SPI, which manages such affairs" so anyone directing them elsewhere is actively working against that rule. I hate bureaucracy, so I find it amusing when the rules appear to support actions that I didn't check beforehand.

Andrew Pollock: [tech] All I've ever wanted was a networked printer

Sad, but true. Well, not so much networked, as attached to my Linux box... With Sarah going back to school, we needed a working printer. Numerous attempts at step-up transformer technology had met with failure, to the point where it was rapidly becoming more economical to buy a new printer. So we did. Today it arrived. We got a Brother HL-5250DN, for the princely sum of $230 from Amazon. Main reasons for going for it were it had built-in duplexing, like the Panasonic KX-P7100 it was replacing, but unlike the Panasonic, which I unfortunately discovered after purchasing, was a WinPrinter, the Brother is a full-blown PostScript/PCL printer. And it's network-ready to boot. Very sweet. It's very important to be able to telnet to your printer. It does the whole gamut of networky things (naturally the first thing I did after plugging it in was run nmap over it): FTP, Telnet, HTTP, SMB, LPD, IPP and JetDirect support. Oh, and SNMP. Awesome. It gave me a good excuse to have a quick tinker with CUPS, and now we can print from Linux, MacOS X, and Windows. Very nice. Much better than the stupid WinPrinter. Hopefully the consumables won't cost a fortune, and I wonder if A4 paper exists in this country?

18 July 2006

Jordi Mallach: Seventy years of the Spanish Civil War and the Spanish Revolution

A few months ago I wrote about the 75th anniversary of the proclamation of the Second Spanish Republic which was celebrated throughout the state. That weekend I visited a fantastic exposition of Republican and Revolutionary war propaganda posters, in Segorbe.

Today, Spain remembers the beginning of the end. During the evening of the 17th of July and morning of the 18th, a group of generals of the Spanish regular army raised against the democratically elected left-wing government of the Republic. History says that the murdering of Calvo-Sotelo, a right-wing leader, was what finally provoked the conflict. It was no secret that the same right-wing and some elements in the army had been conspiring for weeks about an uprise. The only question was when, but the government was fooled by general Mola and didn't take really effective measures to prevent it.


Warning from sanitary authorities against venereal diseases Mola and Sanjurjo planned to start taking over official buildings and army quarters and quickly seize control of the major cities. During the first hours of their rebelion, they managed to take over most of the southern regions in Andalusia, Extremadura and parts of the Northwest, plus most of the islands and the Moroccan protectorate area. Meanwhile, the Republic did not manage to react quickly due to the weakness of the government, and in the first days of the crisis, the government changed a few times. Finally, the Republican parties decided that to defend the state they should give arms to the unions, and soon after many militia groups were getting organised in the cities, and columns sent off to liberate other towns.


Solidarity of Catalunya to the Basque front The insurrection was suffocated in Barcelona after some heavy fighting against the military in the Montju c castle; the Anarchists of the CNT grew strong in Catalunya and Arag n, and offered good resistance in those fronts. After the first days of the coupe d'etat, it was clear neither the legitimate government or the rebels calculated how things would go after the first days. The government was confident in being able to end the rebelion as they did four years before; the fascists thought they would have quickly brought down the government with a successful coup. But after the first week, the country was divided in two halves, and both sides of the conflict were keen on fighting, due to the big social fracture during the last months of the government. The Republic asked for help to the League of Nations, but the United Kingdom and France decided not to intervene, scared about the conflict trespassing the Spanish borders and becoming another bloody war in European fields. The only official external aid came from the USSR and the International Brigades, formed by volunteers of more than 50 nations. Some well-known personalities like Ernest Hemingway or George Orwell came to aid as well. Orwell wrote about his life-changing experience in a Barcelona immerse in the social revolution, where he joined the anti-stalinist socialist party POUM. Badly wounded in the neck, he left the front and went back to Barcelona, and witnessed the assault of the Telef nica by the communists against the anarchists, during the fets de maig, after which the POUM was declared illegal. Orwell captured his experiences in the frontline and Barcelona in his book Homage to Catalonia.


To defend Madrid is to defend Catalunya Franco and Mola, aided by the Northafrican troops and soon after by their fascist allies of Italy and Germany, didn't have big problems seizing the Basque Country and Asturies in the North, but not before making the town of Gernika disappear below the nazi Condor Legion bombing, in what would be a test for the massive aereal bombings of Word War II. The battle for Madrid was fierce, and the city wasn't occupied until the very last days of the war. The long defence of the capital made was immortalised in the famous phrase No pasar n.


Madrid's No pasar n During the war, anarchist groups controlling fields and towns in Arag n and Catalunya managed to bring a Social Revolution to the area. The people collectivised the land and industries, administered by local assemblies. This experience is regarded as the time when Libertarian Communism has been successful. The experience ended dramatically when the anarchists were treasoned and blocked by the communists, and eventually defeated by Franco at the front.


Each bullet for a target After the first and a half years, the fronts had stabilised in Madrid and the East of Andalusia, until early in 1939, Barcelona fell in Franco's hands, after the bloody Batalla de l'Ebre, being followed by Girona and the rest of Catalunya. The fate of the democratic state was clear. Two months later, Madrid fell and Val ncia and the small area still under Republican control surrended.


Robert Capa's Muerte de un miliciano Franco declared a totalitarian regime to, according to the fascists, reconcile the two Spains. In the first five years of the regime, up to 100.000 were executed in the franquist repression, including the Catalan president, Llu s Companys and many intellectuals. The dictatorship continued executing people until two months before Franco's death, 36 years later. Hundreds of thousands also had to exile in M xico, France and other destinations, leaving Spain in ashes, road gutters full of scattered bodies and the population facing famine. The cultural elite left the country, making the state's clock go back at least a decade. Their reconciliation really meant humiliation and repression. Many people were also murdered during the war behind republican and rebel lines, but the genocide of the aftermath had was unmatchable.


The Republic promoted education among the troups It is a bit late to restore the dignity of the victims, but not too late. Some associations have been fighting since the end of Franco's regime to get some kind of public recognition for their suffering, for their priceless fight for the legal and democratically elected Republic, for the people who didn't make it.


Excellent anarchist poster rejecting the politisation
of children by any of the three loyal groups Other people reject these efforts banning them of "revisionism". Not too surprisingly, these are the sons or grandsons of the people who won the war. The current government is about to pass a Historic Memory law which aims to give recognition to all these people who gave their lives for an ideal and freedom. Unfortunately, due to pressures from the right, it is probable that the text will be ammended to make it more acceptable by them. I fear it will end up not pleasing the victims at all. I have a passion for Spanish Civil War related matters, and in the last years I tried to use any opportunity to listen to my Catalan grandmother talk about war affairs in Barcelona, and my grandfather, from a town in the middle of the Republican side of the Teruel front, but born in a very catholic family, about how the war went on in Vall and the nearby mountains.


From the defensive No pasar n to the encouraging Pasaremos! I know my grandfather only told me the less compromising stories, like how he was sent to dig refuges until he was 16 and apt to fight in the Front, or how he was put in charge of hiding the church's valuable relics in a few barns. He never told me about how life was after the war in the small town. It is dramatic to see that all the people who were old enough to have a sense of what was going on at the time are so old that these unvaluable memories and stories will be mostly gone in ten years. (Most of the pictures are taken from the Sociedad Ben fica de Historiadores Aficionados y Creadores' website, which has a huge documented catalog)

Evan Prodromou: 30 Messidor CCXIV

I stand corrected! Martin- ric notes that I misspelled the name of wt:Saint-Michel-des-Saints. Calisse! Now I'm going to have to fill out that Wikitravel guide as penance. Thanks for the pointer. tags:

Jobs According to a recent LinkedIn update, Don is now the Site Editor for LinuxWorld.com. Congratulations, Don! tags:

Martin-Éric Racine: Messidor doing Lanaudi re?!

Evan, when you said "Saint-Michel-des-Anges" in this blog entry, surely you meant Saint-Michel-des-Saints? PS: Maciej is wrong. What people speak in Qu bec is French, they just speak it with a heavy accent and curiously outdated vocabulary reminescent of their coastal France ancestry. Tabarnak!

Enrico Zini: Fifth day in Addis

Samba To get samba:
apt-get install samba samba-doc smbclient
To get the Samba Web Administration Tool:
apt-get install swat netkit-inetd
The configuration is in /etc/samba:
  • One [global] section with the general settings
  • One section per share
One could use swat at http://localhost:901/ but it does not work easily on Ubuntu. To see what is shared:
smbclient -L localhost
To access a share:
smbclient //localhost/name-of-the-share
To add a new user:
sudo smbpasswd -a username
To change the password of a user:
sudo smbpasswd username
To test accessing a share as a user:
smbclient //localhost/web -U yared
Documentation:
man smb.conf
To force the user or group used to access a share:
force user = enrico
force group = www-data
To set the unix permissions for every created file:
# For files
create mask = 0664
# For directories
directory mask = 0775
Example share configuration for a webspace:
mkdir /var/www/public
chgrp www-data /var/www/public
chmod 0775 /var/www/public
Then, in /etc/samba/smb.conf:
[web]
   comment = Webspace
   path = /var/www
   writable = yes
   public = no
   force group = www-data
   create mask = 0664
   directory mask = 0775
Example share configuration for a read only directory where only a limited group of people can write:
[documents]
   comment = Documents
   path = /home/enrico/Desktop/documents
   force user = enrico
   public = yes
   writable = no
   write list = enrico, yared
Print server (CUPS) Installation:
apt-get install cupsys
Configuration:
  • On the web (not enabled in Ubuntu):

    http://localhost:631/
    
  • On the desktop:

    System/Administration/Printing
    
Example IPP URIs:
ipp://server[:port]/printers/queue
http://server:631/printers/queue
ipp://server[:port]/...
For example:
ipp://server/printers/laserjet
"This printer uri scheme can be used to contact local or remote print services to address a particular queue on the named host in the uri. The "ipp" uri scheme is specified in the Internet Print Protocol specifications and is actually much more free form that listed above. All Solaris and CUPS based print queues will be accessed using the formats listed above. Access to print queues on other IPP based print servers requires use of the server supported ipp uri format. Generally, it will be one of the formats listed above."
GRUB The configuration file is in /boot/grub/menu.lst. The documentation can be accessed as info grub after installing the package grub-doc. Quick list of keys for info:
arrows
move around
enter
enters a section
l
goes back
u
goes up one node
q
quit
/
search
Grub trick to have a memory checker:
  1. apt-get install memtest86+

  2. Add this to /boot/grub/menu.lst:

    title Memory test
        root (hd0,5)
        kernel /boot/memtest86+.bin
    
Firewall With iptables:
man iptables
# Only allow in input the network packets
# that are going to the web server
iptables -P INPUT DROP
iptables -A INPUT --protocol tcp --destination port 80 -j ACCEPT
# To reset the input chain as the default
iptables -F INPUT
iptables -P INPUT ACCEPT
Some links:
Squid Installation:
apt-get install squid
The configuration is in /etc/squid/squid.conf. To allow the local network to use the proxy:
# Add this before "http_access deny all"
acl our_networks src 10.4.15.0/24
http_access allow our_networks
To use a parent proxy:
cache_peer proxy.aau.edu.et     parent    8080  0  proxy-only no-query
Pay attention because /var/spool/squid will grow as the cache is used. The maximum cache size is set in the directive cache_dir. Information about squid access control is at http://www.squid-cache.org/Doc/FAQ/FAQ-10.html To check that the configuration has no syntactic errors: squid -k parse. To match urls:
acl forbiddensites url_regex [-i] regexp
For info about regular expressions:
man regex
Example filtering by regular expression:
acl skype url_regex -i [^A-Za-z]skype[^A-Za-z]
http_access deny skype
Transparent proxy setup: http://www.tldp.org/HOWTO/TransparentProxy.html
Problems found today Hiccups of the day:
  • swat does not run on Ubuntu because Ubuntu does not have inetd
  • swat does not allow root login on Ubuntu because root does not have a password
  • smbpasswd -a does not seem to update the timestamp of /var/lib/samba/passwd.tdb
  • cups web admin does not work on Ubuntu
  • LDAP is still not so intuitive to set up

Enrico Zini: Fourth day in Addis

Unix file permissions:
drwxr-xr-x   2 root root    38 2006-07-14
 
+- Is a directory
drwxr-xr-x   2 root root    38 2006-07-14
 ---
   
  +- User permissions (u)
drwxr-xr-x   2 root root    38 2006-07-14
    ---
      
     +- Group permissions (g)
drwxr-xr-x   2 root root    38 2006-07-14
       ---
         
        +- Permissions for others (o)
drwxr-xr-x   2 root root    38 2006-07-14
               ----
                 
                +- Owner user
drwxr-xr-x   2 root root    38 2006-07-14
                    ----
                      
        Owner group -+
Other bits:
  • 4000 Set user ID:
    • For executable files: run as the user who owns the file, instead of the user who runs the file
    • For directories: I think it's not used
  • 2000 Set group ID:
    • For executable files: run as the group who owns the file, instead of the group of the user who runs the file
    • For directories: when a file is created inside the directory, it belongs to the group of the directory instead of the default group of the user who created the file
  • 1000 Sticky bit:
    • For files: I think it's not used anymore
    • For directories: only the owner of a file can delete or rename the file
The executable bit for directories means "can access the files in the directory". If a directory is readable but not executable, then I can see the list of files (with ls) but I cannot access the files. To access a file, all the directories of its path up to / need to be executable. Commands to manipulate permissions:
  • chown - change file owner and group
  • chgrp - change group ownership
  • chmod - change file access permissions
  • sudo adduser enrico www-data adds the user enrico to the group www-data.
Example setup for a website for students:
# Create the group 'students'
mkdir /var/www/students
chgrp students /var/www/students
chmod 2775 /var/www/students
# If you don't want other users to read the files of the students:
chmod 2770 /var/www/students
adduser www-data students
 (this way the web server can read the
  pages)
# when you add a user to a group, it does not affect running processes:
 - users need to log out and in again
 - servers need to be restarted
Apache:
  • To install apache2 without a graphical interface:

    apt-cache search apache2   less
    sudo apt-get install apache2
    
  • By default, /var/www is where is the static website.

  • By default, ~/public_html is the personal webspace for every user, accessible as: http://localhost/~user

  • By default, /usr/lib/cgi-bin contains scripts that are executed when someone browses http://website/cgi-bin/script

  • By default, apache reads the server name from the DNS. If we don't have a name in the DNS and we want to use the IP, we need to set:

    ServerName 10.4.15.158
    
    in /etc/apache/apache2.conf (set it to your IP address)
  • To access the Apache manual: http://localhost/doc/apache2-doc/manual/

  • http://localhost/doc/apache2-doc/manual/mod/mod_access.html The access control module

  • http://localhost/doc/apache2-doc/manual/mod/mod_auth.html The user authentication module

  • To edit a user password file, use:

    htpasswd - Manage user files for basic authentication
    
  • Example .htaccess file to password protect a directory:

    AuthUserFile /etc/apache2/students
    AuthType Basic
    AuthName "Students"
    Require valid-user
    
  • Information about .htaccess is in http://localhost/doc/apache2-doc/manual/howto/htaccess.html

  • If you need to tell apache to listen on different ports, add a Listen directive to /etc/apache2/ports.conf. Then you can use:

    <VirtualHost www.training.aau.edu.et:9000>
    [...]
    </VirtualHost>
    
  • To setup an HTTPS website:

    • Documentation is in http://localhost/doc/apache2-doc/manual/ssl/

    • How to create a certificate: http://www.tc.umn.edu/~brams006/selfsign.html

    • Create a certificate:

      /usr/sbin/apache2-ssl-certificate -days 365
      
    • Create a virtual host on port 443:

      <VirtualHost www.training.aau.edu.et:443>
      [...]
      </VirtualHost>
      
    • Enable SSL in the VirtualHost:

      SSLEngine On
      SSLCertificateFile /etc/apache2/ssl/apache.pem
      
    • Enable listening on the HTTPS port (/etc/apache2/ports.conf):

      Listen 443
      
Apache troubleshooting:
  • check that there are no errors in the configuration file:

    apache2ctl configtest
    
    This it is always a good thing to do before restarting or reloading apache.
  • read logs in /var/log/apache2/

  • if you made a change but you don't see it on the web, it can be that you have the old page in the cache of the browser: try reloading a few times.

To install PHP
  • apt-get install libapache2-module-php5

  • then by default, every file .php is executed as php code

  • Small but useful test php file:

    <? phpinfo() ?>
    
To install MySQL
  • apt-get install mysql-client mysql-server

  • for administration run mysql as root:

    • Create a database with:

      create database students
      
  • Give a user access to the database:

    # Without password
    grant all on students.* to enrico;
    # With password
    grant all on students.* to enrico identified by "SECRET";
    
  • More information can be found at http://www-css.fnal.gov/dsg/external/freeware/mysqlAdmin.html

To use MySQL from PHP:
apt-get install php5-mysqli php5-mysql
Problems found today:
  • the apache2 manual in /usr/share/doc/manual can only be viewed using apache because it uses MultiView. So you need to have a working apache to read how to have a working apache.
  • chmod does not have examples in the manpage.

17 July 2006

Evan Prodromou: 29 Messidor CCXIV

We had a great trip to wt:Mauricie this weekend. It was quite an adventure -- we took off from Montreal on Saturday in the middle of a downpour, with no idea if it was going to clear before we got to the R serve faunique de St.-Maurice. But the rain slowed as we passed through wt:Yamachiche and by the time we were in wt:Shawinigan it was clear. Driving up the beautiful St.-Maurice River is real pleasure, especially when it's freshly-rained-on. The river is wide and slow (I think because of the hydro plant at Shawinigan) and sailboats and houseboats run up and down it. We got to the welcome center for the park too late -- it was closed -- so we had to go across the $12 (!) toll bridge into the reserve on faith alone. Which took a lot, since it's all dirt roads on the other side. It was a beautiful ride, but about 30 bone-jarring kilometers to our final campsite. We entertained the baby by making long aaaaaaaaaah sounds over the grading bumps -- by the end of the ride she was doing it herself. We saw a huge black bear on the way up -- maybe twice my size, long and lanky, loping across the road like it owned the place. Maj's face dropped when she saw it -- she'd never seen a bear before. It was an impressive animal, and it looked like Amita straight-leg crawling. We had a little hassle at the front gate of the Lac Normand campground, but we got settled down OK, put the baby in an insect-proof playpen, and Maj made a great pasta dinner while I put up the tent. I finished up the dishes and Maj and Amita walked down to the beach ("one of the best in Quebec", gushes S paq, and I'm inclined to believe them), and I was just starting a campfire when another storm hit. So we played in the tent for a while and went to sleep. Sunday we had a quick breakfast and headed down to la plage. The lake was beautiful, with a 4-5km sand beach ringing it on the north side. All three of us went for a swim in the water; Amita held onto Maj's back and made motorboat noises. On the drive out we tried to cut across the Parc de la Mauricie and the R serve faunique de Mastigouche to get to wt:Saint-Michel-des-Saints, which is a town in wt:Lanaudi re that I've wanted to visit for a while. But we took a wrong turn at poorly-marked crossroads, and ended up at the safe and sane exit instead. How often does that happen? Drive home was nice, and we had sushi from the Sushi Shop on Mont Royal. The cats were mad, but they always are. tags:

Kerblog Norsola Johnson passed along a link to Mazen Kerbaj's difficult Kerblog. Kerbaj is a expatriate Lebanese musician and comics artist caught in Beirut by the blockade and the destruction of the airport there. Stuck in the city under bombardment, he took the opportunity to start a comics blog. tags:

S3 I wrote about Amazon's crazy S3 (Simple Storage Service), which provides a Web interface for data storage. I was interested to see that Om Malik had an entry about it: StartUps Embracing Amazon S3. I guess it's a cheap and easy way to get a lot of storage when you don't have a lot of time to work on things like getting storage. Does it mean I've gone bad if I read Om Malik? He was a speaker at the Mesh Conference a couple of months ago, and I didn't like his talk. Now, I read his blog daily. Gar. tags:

Oh No Robot I just caught up with the latest Spamusement comic, and saw a "Transcribe This Comic!" link at the bottom. It goes to the fine Oh No Robot comics search and transcription service. I guess the idea is that readers transcribe comics into searchable text. A great idea, and a nice example of user-generated metadata. tags:

MicroID So, when ClaimID asked me to embed a MicroID into my home page to verify it, I thought they were nuts. But I did it anyways. Now, I'm trying to wrap my head around MicroID, and I'm starting to think it's very clever. I dunno... maybe a MediaWiki extension is in order... tags:

A couple of hours later... I dicked around a bit more with MicroID, and made my own MicroID verifier in Python. You're welcome to use it; see Software/Python/MicroID. tags:

Moon language From sneakums on #tron: I cannot speak your crazy moon language from Maciej Ceglowski a nice story about language and life in Montreal. tags:

Randall Donald: Mind Tricks

Does this ever happen to anyone else? Everytime a prop plane flys over Van Halen's Panama pops into my head. The same thing happens with AC/DC's Hells Bells and church bells.

16 July 2006

Uwe Hermann: Anonymous Google Earth over Tor

I'm probably not the first one to notice this, but you can actually use Google Earth anonymously (upon first glance at least) over Tor. It seems all the traffic (downloads of maps and textures etc.) goes over port 80 (http) and 443 (https), which can easily be anonymized with Tor (read an older post of mine for details on Tor). Just type
export http_proxy=http://127.0.0.1:8118/
export HTTP_PROXY=http://127.0.0.1:8118/
and set up Privoxy and Tor correctly, then start Google Earth in the same xterm and you're done. I haven't looked closely at the protocol Google Earth uses (any articles available on that?) but upon a quick glance in Ethereal / Wireshark all traffic is torified, not even DNS requests are leaked. Technical explanation: the Google Earth binary uses libcurl internally, which honors the http_proxy environment variable. However, that's not a guarantee that you're 100% anonymous, as Goole Earth could send some unique identifier (e.g. MAC address, hard drive ID etc.) to their servers which would spoil your anonymity. Btw, I actually discovered this accidentally because I have the above HTTP_PROXY lines in my .bashrc, so most of my HTTP traffic is anonymized by default...

Erich Schubert: On programming contests (ACM ICPC etc.)

Bart Massey and Mike Vanier talk about programming contests such as the ACM International Collegiate Programming Competition. Well, since I'm being told that I love ranting, I have to join this one. ;-) I never participated in a contest except the Bundeswettbewerb Informatik back in (pre-university) school. In my opinion that contest was quite different for a number of reasons: most of the participants didn't have any IT classes at school. And noone "trained" for that contest. Also the contest isn't a speed contest, but you have a couple of months to solve a number of problems that most of us would find rather easy - for pupils aged 15-18 with no real CS classes they aren't that easy. Even in the later rounds, time isn't the main constriction - you have several weeks - and the programs are also judged by their code quality, documentation and design. I think you were allowed to participate in teams during the first and maybe second round. A friend of mine pointed out the ACM chellege to me; but we never really managed to form a team since everybody was too busy. We never actually did a training session (though I myself solved a couple of the valladoloid online judge problems), and we didn't submit our participitation. Though we would have automatically won our local contest, since I'm not aware of any teams by our universities here (despite them being top-ranked universities). In general, Germany isn't very much involved in this contest, despite being an "international" contest. This has various reasons. On one hand, CS teaching in germany is not much about just writing code. You'll of course learn the basics, but even when they've finished their degree, most will be really slow in writing code. Instead, the focus is on modeling and the theoretical background. In my opinion, that is very good. You'll always be able to improve your "basic" code writing skills later; that is mostly experience and routine. But you won't be learning much theoretical background in your job later on. Having worked on a number of the old, archived, training problem sets, I'm not convinced that this contest makes much sense. To succeed with the problem sets you need to be able to I agree with the others that I don't think team-play is of much value in this contest; nor will you be doing much creative work. In my opinion it's all about reducing the given problem to one of the known problems (e.g. longest common subsequence, shortest path, maximum flow), then adopting an algorithm to it. I'd call that reproductive work. In my opinion, they're rather boring. Basically you're expected to solve them using a certain algorithm. You aren't judged by good or smart solutions either. Just by speed. The (high-school) programming contest mentioned earlier was more interesting. For example there was the task of navigating a robot on a factory floor without any state information, and only a limited view. The robot was not allowed to keep any information. Such as "I need to go out of this dead end" or "that is a dead end". It would easily walk into a path just to notice after a few steps (it had a limited view!) that this is a dead end, then try to walk out - just to walk in again, having forgotten that it's a dead end. You of course can't judge solutions without inspecting the code. Smart programmers found a few ways to "cheat" here - and got extra credit here. For example one robot, when noticing that it's in a dead end it might forget, would step up to the wall. And whenever it was close to a wall, it would follow it, and thus walk out of the dead end. Some heuristics making it step away from the wall again made it much more successful than others. Another "cheat" involved calculating "remaining steps allowed - distance to destination mod 2". It then could be programmed with two alternating behaviours and switch between them by just not moving for one turn. I don't think there is any room for such great ideas in the ACM contest.

Christoph Berg: Becoming an early riser

At the beginning of this year, becoming an early riser was a recurrent theme on planet.debian.org. At the same time, the urge to put some order in my messy sleeping pattern had grown, so I was very happy to read Steve Pavlina's blog posting on that. Before, I would usually stay up until very late (3am), being over-tired, and then sleep 9 or even 10 hours, sometimes still being tired the next day. The advice Steve gives is very simple: Go to bed only when you're too sleepy to stay up, and get up at a fixed time every morning. This sounded exactly like what I wanted. Now, I'm still rather the night owl type, so I didn't pick something like 5am as Steve did, but a friendlier 9am. The first 2 or 3 days were somehow hard, but I soon realized how healthier the new rhythm was. I was getting up at the same time every day, including weekends, and go to bed around 1.30am. The downside was that 2..3am (CET) is often the best time on IRC and also very nice for hacking, but the additional time gained in the morning was well worth it. The hard part is to actually notice when you are tired. For me, it works best to read a book, and then go to sleep when I can't concentrate on reading any more. The difficulty for us computer people is that staying in front of the screen somehow makes you unaware of how tired you actually are - just turn the machine off and do something else (doh!). In the morning, it's important to actually get up, since the body will adjust to the additional time in bed. What I'm doing is to put the radio's timer at 9am, and the alarm clock at 9.05, so I don't have to jump out of bed. Many times, I would wake up myself just at that time. Of course, when going out late, I don't get up at 9, but try to get back to the rhythm immediately. Also, Debconf had thrown me out for some weeks, but luckily I managed to get back in.

Next.

Previous.