Runa Sandvik: Mischief managed
I now have virtualbox running with windows xp, service pack 3 and windows live messenger with a working webcam. Also, itunes is happily chewing away on my ipod.
I now have virtualbox running with windows xp, service pack 3 and windows live messenger with a working webcam. Also, itunes is happily chewing away on my ipod.
Here's a quick HOWTO for using Wine to play Starcraft on a Linux machine.
$ apt-get install wine (as root) $ winecfgThe winecfg (graphical) utility will setup some config file defaults in your ~/.wine directory. Click on Graphics and activate Allow DirectX apps to stop the mouse leaving their window. Also, click on Audio (a dialog will pop up, just click OK). This will autodect your soundcard and setup Wine to use it. Under Drives click Add (this will add D:) and change the path to /media/cdrom, so that Wine knows about your CD-ROM drive. Finally click OK to close winecfg and save the settings.
The next step is to insert the Starcraft CD-ROM into the drive and start the installer using Wine:
$ mount /media/cdrom (as root) $ wine /media/cdrom/setup.exeFollow the instructions in the installer until the Starcraft install is finished (you'll need your CD key number), then exit the installer (don't start playing Starcraft right away). The next step is to get the latest patch and get rid of the need to insert the CD-ROM every time.
$ wget http://ftp.blizzard.com/pub/starcraft/patches/PC/SC-116.exe $ wine SC-116.exeAfter the patch is installed click OK and Starcraft will be started (very annoying). Leave the game again. We'll get rid of the CD-ROM requirement now:
$ cp /media/cdrom/install.exe ~/.wine/drive_c/Programme/Starcraft/StarCraft.mpqThat's a pretty big file, it may take a while. You might have to change "Programme" in the path (I have the German Starcraft version). That's it. You can now play Starcraft (without needing the CD-ROM) using:
$ wine ~/.wine/drive_c/Programme/Starcraft/StarCraft.exeA good thing is, it even works nice and fast with the open-source nv NVIDIA driver (no need to install the proprietary driver). I noticed one very annoying "bug" with the mouse behaviour at first. The mouse would sometimes just get stuck during the game (which is a total disaster of course, if you're in the middle of a fast-paced game). Left-clicking somewhere would "unstuck" the mouse, but it's still very bad. After many, many hours of reading bugreports and trying various patches I finally found out the root cause for the problem. It's somehow related to my window manager (IceWM); whenever you move the mouse to the bottom of the Starcraft screen (where the IceWM status bar is, even though it's not on top or even visible, and even though Wine/Starcraft runs in full-screen mode!), something funny happens with X11/IceWM and the mouse gets stuck. I haven't yet found out if/which IceWM option could fix this behavior, but I have a small work-around. Just start Wine directly on a second X11 server with Starcraft (without any window manager being involved):
$ xinit -e '/usr/bin/wine ~/.wine/drive_c/Programme/Starcraft/StarCraft.exe' -- :1No patches needed (stock Wine from Debian unstable works fine, that's version 1.0.1 right now). I hope this saves other people some debugging time...
Once again, a person died today murdered by terrorists in Spain. He was a businessman, who had a construction company in his town (Azpeitia) at Basque Country region. Close his house, he was murdered by gunshots. Just because his company was a contractor in the construction of AVE infraestructure in Basque Country, which will connect it with Madrid and France.
Once again, a family has been hit forever.
I was going to include a black strip with the article, but it’s better to see an image.
Today I published set of changes to phpMyAdmin website, which add
microformats attributes where applicable. Currently hCard and
hAtom were added. The first one enables you to grab contacts
directly from web page (if your browser supports it, currently you need
some extension such as Operator). I also added some rel
attributes to links, so application browsing the website can know
relevance of some links.
Hast du vielleicht nur Schreib- aber keine Leserechte f r die Verzeichnisse?
Translation: "Do you have just write but no read permissions for those directories?
#ls -l /usr/share/serendipity/www/
...
lrwxrwxrwx 1 root root 28 2008-12-02 09:18 uploads -> /var/lib/serendipity/uploads
...
# ls -l /var/lib/serendipity/
total 4
drwx-wxr-x 2 root www-data 6 2006-10-18 16:10 archives
-rw-rw---- 1 root www-data 0 2008-12-02 09:19 htaccess
drwx-wxr-x 13 root www-data 4096 2008-12-02 07:48 uploads
root@vserv1:/usr/local/drupal6/modules# chmod g+r /var/lib/serendipity/uploads/
Hot on the heels of the
announcement for Rcpp I just made, version 0.6.2 follows with a small but
important fix for the default linker flag output by the helper function
Rcpp:::RcppLdFlags().
I also added a download section to the
Rcpp page here
where you can find the new version.
CRAN should start propagating it by tomorrow.
I just announced Rcpp 0.6.0
and 0.6.1 on the low-volume R-packages list. Rcpp provides C++ classes
that greatly facilitate interfacing C or C++ code in R packages using the
.Call() interface provided by R.
Rcpp provides matching C++ classes for a large number of
basic R data types. Hence, a package author can keep his data in
normal R data structure without having to worry about translation or
transfer to C++. At the same time, the data structures can be accessed
as easily at the C++ level, and used in the normal manner.
The mapping of data types works in both directions. It is as
straightforward to pass data from R to C++, as it is it return data
from C++ to R.
Rcpp was initially written by Dominick Samperi to in the context of the
RQuantLib
package and later released on its own, but had not seen any releases in
twenty-four months. I have substantially expanded the documentation,
simplified the build structure yet made it easier to use Rcpp from other
packages, and started to add some new classes (notably microsecond time
types). Rcpp is supported on Windows, Linux and Mac OS X (with special
thanks to Simon for some extended help).
More information for Rcpp can be found at
the package
homepage, the
R-forge repository or the package CRAN page.
Games are probably the kind of software that needs more patching and maintenance. In some cases we even have to effectively act as upstreams ourselves. Currently every distro is doing that on their own, and we end up making n times similar patches to provide the same functionality (put files in the proper places, endianess and word size stuff, building with newer versions of gcc or free toolchains, etc). It makes a lot of sense to share among us all that stuff.
Some of us, developers of different Linux distributions and BSD operative systems have started working together to reduce duplicated work, creating a distribution-agnostic mailing list in freedesktop servers as a first step. Debian Project News talks about this too. You can read more about our goals here. Wish us luck in this new quest, and join us if you’re interested too
Wouter Verhelst blogs about combining ScriptAlias (or a way to run CGIs) and DirectoryIndex in Apache.
Recently, developing a TinyURL clone I had a similar (not identical, though) issue.
Basically, I set SetHandler to perl-script on the “/” location, which basically means, everything accessed on a given virtual host, is affected. Because you are changing the handler for the entire location, DirectoryIndex will have no effect on it because mod_dir is the one dealing with the DirectoryIndex function, that is, using the DIR_MAGIC_TYPE handler.
To fix this you can use a mod_perl (2, I never really used 1) Fixup phase handler:
<VirtualHost *:80> ... # some stuff ... # PerlSections rule. <Perl> $Location "/" = SetHandler => 'perl-script', # some stuff PerlFixupHandler => 'Axiombox::Awbox::Fixup', # some other stuff DirectoryIndex => 'whatever.html', ; </Perl> </VirtualHost>If it looks incomplete is because some other information, out of the scope of this sample, like DocumentRoot or other mod_perl directives, are hidden as the “other stuff”. My Fixup.pm handler looks like this:
package Axiombox::Awbox::Fixup; use strict; use warnings FATAL => qw(all); use Apache2::Const -compile => qw(DIR_MAGIC_TYPE OK DECLINED); use Apache2::RequestRec; sub handler my $r = shift; if ($r->handler eq 'perl-script' && -d $r->filename && $r->is_initial_req) $r->handler(Apache2::Const::DIR_MAGIC_TYPE); return Apache2::Const::OK; return Apache2::Const::DECLINED; 1;Which is very straight-forward: If the request is set to perl-script, the requested file is a directory and if the current request is the main one, then change the handler and return to the normal flow of phases. Otherwise, decline the Fixup phase handler.
I got an iPhone on the very first day it was available officially in my country. I have used it every day since then and am now ready to decide how good it really is. Summary: it is a great piece of technology and the only tradeback is the locked down platform. I have abandoned my Palm and am not looking back.
Hardware: the hardware is just perfect. 4 buttons (Home, Power, Volume Up and Down) and 1 switch (Mute) are all very clear, easy to find and press and frankly are enough. The touchscreen is reasonably fast and very precise nicely corrected by software that guides your presses toward UI points of interest if such are within your finger. The casing is absolutely solid - there is no gaps, no wobble, nothing. All glossy surfaces attract fingerprints, but a couple passes with a microfiber cloth (included) clean it up easily. The loudspeaker is phenomenal - all sound comes from a single small hole, but it can easily fill a small room with music. Call sound quality is impeccable. You can plug in any headphones, but if you use the included headphones you get a microphone with a button that can pickup and hand up calls, start/pause music and skip to the next track. I also love that the only charger included is a very small power brick that provides a power-only USB port and a USB charging cable. That is a good way to reduce number of power bricks for gadgets. The iPhone 3G (that is what I have) also has a GPS build-in, but let us be clear - it is not good enough to replace a car GPS, the iPhone GPS is slow (takes several seconds to refresh the location and tens of seconds to find it first time) and the precision is measured in meters or even tens of meters. The WiFi is very good at getting a connection and doing it very fast. Oh and there is an acceptable camera.
Out of the box software: the software included surely is better than on any other phone I have seen (including Palm). The UI widgets are nicely written specially for a touchscreen interface - the best example is having click wheels instead of drop down menus. It is much easier mentally to flick a wheel up or down then to click on a list, click to scroll the list and then click to select an entry. And the click wheel makes it much easier to correct off-by-one errors. Switches that look like regular physical switches instead of checkboxes is another very useful UI concept. I think a lot of this can be reused on the desktop as well.
iTunes: and here comes the bad spot, the lock-in part. To get anywhere with the iPhone you need to associate it with an installation of iTunes. It fails to work in Wine or even in a virtual machine - apparently there are some errors related to avahi or something. Unfortunately, this means that you need wither Windows or MacOS to do nything with your iPhone. iTunes is the only way to backup, restore and upgrade your iPhone, it is the only way to get contacts and music on the iPhone (there is an iTunes Store app in the newest version that allows purchasing music over the air). Even after doing a jailbreak (see further) it is currently not possible to add music to the iPhone from any third party applications, because the iTunes database has a hashed checksum that the build-in iPhone music player (and iTunes) check before doing anything. If the checksum is wrong the only thing you can do is a full restore of the phone from backup. Crypto geeks - please help decrypt that hash, so that we can sync iPhones to amaroK. The iTunes itself is a bit weird - to get music onto the phone you need to create a playlist and then you can sync that playlist over. One of the playlist options is a smart playlist with a random feature and a limit on number of matches. That is the way to get random music from your collection onto the phone. I do dislike the fact that iTunes syncs all the contacts from Google to the phone and not only contacts for a certain group or only those that have a phone number, for example. Search and favorites do help here.
Third party software (iTunes Store): it is very easy to install new software on the phone over the WiFi and there is plenty to choose from. You do need a Mac to develop this software which restricts the developer base a bit. The main bases that I needed (or did not know I needed) are covered: Last.fm player, TwitterFon, LockBox password storage, Stanza ebook reader, Shazam music identificator, Wordpress client, BigOven cookbook and lots of fun games. Have not used any paid-for apps due to the fact that iTunes store is not available in Latvia and the official documentation recommends registering with a fake address in UK or US.
After few weeks of debugging build system, new Gammu version is out.
This time most fixes are in build system area, especially now it is
possible to compile Gammu using Borland C++ 5.5. Also my hacks for
crosscompilation to Windows on Linux have been dropped in favour of
crosscompilation features in CMake 2.6.
Full list of changes:
I’m looking for people who are interested in testing the first release of gksu-polkit. I uploaded the first tarball to http://people.debian.org/~kov/gksu/gksu-polkit-0.0.1.tar.gz. There are also x86 packages available (built on a sid with a lot of experimental stuff, so if you have trouble installing please email me and I’ll have that fixed =P).
For some history and discussion on the whys and hows do take a look at the README which exists inside the tarball (or git repo), and on the small page I wrote about it. For those who want to fiddle with the code, and perhaps help me finding bugs and fixing them, here’s my public git tree:
git://git.debian.org/~kov/gksu-polkit.git
I’m working away from the office today because the office window is being replaced (an end to leaky draughty windows - yay! - but it does mean it’s about 3 degrees in there while it’s happening). For some reason, some things aren’t working over the wifi (the least of my network problems recently - blew up the router at the weekend), so I’m working in batches. I’ll let the phone go to voicemail and reply from a fixed line when I can. Pics and stuff about yesterday’s trade fair will appear later.
I usually shy away from stuff labelled “geek” but here’s Bristol Wireless’s Christmas-time geek quiz night fundraiser on the 19th. D’ya reckon Woodsy will wear that bow-tie again when running the quiz?
ICH8 docs, section 5.13.5.1:
grml release delayed through a CBS commedy series. News at 11<Rhonda />
There we go: there’s a new grml release (you know, the Debian based Linux Live-CD for sysadmins and texttool users). The release with codename Schluchtenscheisser and version number 2008.11 is available in different variants. The 32bit versions grml, grml-medium and grml-small as well as grml64, grml64-medium and (new!) grml64-small are available through grml.org/download/. For details regarding the changes in the new release check out the release announcements.
Happy grml-ing, dear Schluchtenscheissers - and to the rest of the world.
In light of Ted’s post on copyright, it is clear that we are bogged down by a hostile terminology.
Copyright infringement is not piracy - gunmen on seas killing people, looting ships and holding hostages is piracy.
Copyright infringement is not theft. When my bike was stolen, I no longer had it. Stealing a bicycle is theft.
Copyright infringement is more like sneaking into a concert. You enjoy the show, but did not pay for it. If the concert is held in a small venue then it is easy to spot someone who gets in without paying, but if you hold a concert in an open field, then expecting everyone in the surrounding area to be forced to pay you is rather absurd. If you have a concert in a field with a fence around it and someone makes a hole in that fence (posts a a recording to a P2P site), then the one making the hole might be punishable (property damage), but can any person that enters that hole really be prosecuted for theft, property damage and enabling further theft by not closing the hole (uploading that is inherent in the P2P protocols) ? I do not think so.
A similar analogy is using public transport without a ticket. If there is a bus that goes from A to B and I get on it without buying a ticket from the driver, then in the current copyright enforcement world I would get arrested by the police, prosecuted and get a fine that is tens of thousand times more than the price of the ticket. This has multiple problems - 1. the police has no way of knowing if I have some kind of legal right to use the bus without a ticket (monthly ticket, free ride for seniors, …) before arresting me and bringing me to court, the police has no business wasting their time and taxpayer money until it is 100% certain that a crime has actually occured; 2. if a hacker disables the ticket composters in the bus and removes all signs about prices how am I to know that the bus is not free (like the park and ride buses in many locations); 3. the fines are excessive - I’ve not seen a public transport fine that is much more then 10 times the price of the ticket, and it only applies to one ride - you can not be retroactivelly fined for all free rides you took in the last year; 4. it actually is not possible to be 100% certain who is the person doing the act - you can only trace the IP which can be used by any number of computers and additionally the computers might be infected with a botnet acting as an unwilling proxy zombie. There is no way (except a confession) to prove that a particular person does a particular download.
Now we just need a short and simple word or phrase that describes that. Any ideas?
Next.