Search Results: "hle"

26 January 2006

Axel Beckert: about:blank ist unsicher sagt der MSIE

Ich habe auf meinem Windows-2003-Testrechner im Büro about:blank als Startseite des MSIE eingestellt. Trotzdem kommt seit einem der letzten Windows-Updates beim Starten des MSIE immer irgendeine Microschrott-Seite. Einmal nach einem Update kann ich das als Marketing oder sonstwas noch verstehen, aber jetzt dauerhaft? Zum Testen, ob wenigstens der Button “Startseite” noch tut, habe ich drauf geklickt. Und bekam das da:
Screenshot einer MSIE-Warnung davor, daß about:blank aufgrund der verstärkten Sicherheitskonfiguration nicht angezeigt werden könne
Die Konfiguration auf diesem Rechner ist eine etwas gelockerte Windows 2003 Standard-Konfiguration. Inhalt von about:blank ist übrigens:
<HTML></HTML>
Danke, Microsoft, daß Du mich vor einer solch gefährlichen Seite bewahrt hast!

David Pashley: New Layout and Working Comments

One thing I forgot to mention is that I've been working on a new layout for my website, which is mostly completed. Still need to do some work on some of the styling, but I'm mostly happy with the layout of the site. It's not exactly an original design, but it's a significant improvement on the half style I used to have. The next step is to improve the style so I don't have to repeat the style and html on every page and I'm hoping to do it without php. I have some cunning plans involving python and xslt, but we'll see how that goes. Also, after several months, I fixed my blog comments to not give a 500 Server Error, so people can now freely spam my comments. Turns out that the comments plugin didn't have write permission to the comments directory, but pyblosxom kindly didn't prove any hints beyond "Premature end of script headers". Cheers.

David Pashley: Bad Shell: Lazyweb replies

Yesterday I posted about some bad shell code I had found and posted an improved version. Part of the reason for posting it was that I hoping someone could point out any errors in the version I posted. Fortunately Neil Moore emailed me some improvements.
  1. If the script returns more than one line they will be removed by the $(...) expansion when it is split into words. The solution there is to surround it in double quotes.
  2. The next problem Neil pointed out was that $@ should be surrounded by quotes in pretty much every case, otherwise parameters with spaces in will get split into separate parameters.
  3. The final problem is that if the script includes a return statement, it will stop the inner most function or sourced script, but not during eval.The solution is to enclose it in a function:
    
    dummy()   eval "$(perl "$CONF_DIR/project.pl" "$@")";   dummy "$@"
    
    
Since making the post, I discovered that Solaris' /bin/sh doesn't like $(...), so it's probably better to use backticks instead if you want to be portable. As I know the output from the script I'm not worried about return statements, so I've ended up with:

eval " perl "$CONF_DIR/project.pl" "$@" "

25 January 2006

David Pashley: Bad Shell Scripts

I'm always amazed at the number of bad shell scripts I keep coming across. Take this snippet for example:
TEMP1= mktemp /tmp/tempenv.XXXXXX    exit 1
perl $CONF_DIR/project.pl $@ > $TEMP1
if [ $? != 0 ]; then
  return
fi
. $TEMP1
rm -f $TEMP1
There are several things wrong with this. First it uses a temporay file. Secondly it uses more processes than are required and thirdly it doesn't clean up after itself properly. If perl failed, the temp file would still be created, but not deleted. The last problem can be solved with some suitable uses of trap:
TEMP1= mktemp /tmp/tempenv.XXXXXX    exit 1
trap "rm -f $TEMP" INT TERM EXIT
perl $CONF_DIR/project.pl $@ > $TEMP1
if [ $? != 0 ]; then
  return
fi
. $TEMP1
rm -f $TEMP1
trap - INT TERM EXIT
Of course this can all be replaced with a single line:
eval $(perl $CONF_DIR/project.pl $@)

23 January 2006

Andreas Rottmann: Scheme Networking API

About two months ago, I started thinking about a highlevel, implementation-independent networking API for Scheme. Riastradh’s TCP proposal is well thought-out, but I was thinking of something that would extend naturally to other protocols such as Unix domain sockets, or SSL/TLS. I took the TCP proposal, generalized and extended it a bit and. The result is online, I am appreciating comments! I currently don’t have the time to polish this up to SRFI-ready quality and submit it, but hopefully will do so next year. Implementation Status After harvesting some feedback from the #scheme community, I started to implement my proposal for Scheme 48 originally as patch against the development version, but since that is unfortunatly not publically available, I decided to split it off and make it work with vanilla Scheme 48 1.3. Currently, the implementation covers almost the whole TCP part, modulo some holes to fill out. For the curious and brave, there is a snapshot tarball of the code is linked from the CSW - be aware that this is in half-finished state.

22 January 2006

David Pashley: Web logs considered disturbing

I installed awstats today for the first time on my personal domain and reading though the search terms is always amusing, but I got concerned by people finding my site searching for "bonnie langford naked" and "naked bonnie langford". Turns out I was talking about Bonnie Langford in a post about Charlie and the Chocolate Factory and the naked thing was to do with body scanners on the London Underground. But what really worried me was the search for "scott james remnant naked".

Amaya Rodrigo: For those who care about Debian Women

Helen Faulkner pointed us to this graph that shows around 400 subscribers to the Debian Women mailing list, which leaves me speechless. Still, the list is quite silent, and the biggest contributors seem a bit burnt out to me. The IRC channel is in great shape, though.

If you are a silent bystander, we want to hear how can our project help you to achieve your goals in Debian.

Holger Levsen: On workrave and workplaces

Thanks to David Pashley I have discovered workrave, a tool with the aim to help you prevent RSI. I find it really useful, though in the beginning it sometimes feels annoying, for example when you're in the middle of doing something. After two days of using it, I'm slowly changing my habbit of clicking on the "postpone" button in those cases, as this a.) leads to another interrupt soon and b.) means even more finger movements (to click on the button and getting back to work).

Taking the breaks as adviced (I've only changed the defaults slightly) is really relaxing in my experience and even if I'm in the middle of doing something, I don't loose my concentration if I pause for 25 seconds and relax. I do loose more of my concentration if I do use the postpone or skip button :-)

And it's also not only helping preventing RSI but also back pains (which are related in my opinion / experience as one of the core causes for RSI is bad posture which also leads to back pains) and those breaks also help not to forget to eat and drink, which sometimes happens during hacking sessions.

So I'm a happy workrave user now, even though I'm still annoyed by bug 348845 - which I would happily fix myself if the sources for the images were available...

Which brings me to the topic of content being unsuitable for "the" workplace, because it offends people. I am offended, but not really surprised, how many people (and workplaces) seem to be offended by mentioning lesbians, but not for sensible reasons but because of the sexual reference. Heck, even Microsofts CEO seems to happily get along with gays, lesbians, bisexuals and transgenders even though Microsoft as an american company has to fear those (christian) talibans, which is not the case for Debian.

And you really shouldn't blame anybody else except yourself if you visit non-work related URLs during your working hours.

20 January 2006

Amaya Rodrigo: For fun and profit^W^W^W^WJust for fun...

Don t you love it when it looks simple and then it is actually simple, but you are not up to the task?

I am loving the xlibs-dev transition, really, I mean it! Two of my packages, fkiss and xdigger got bit by this issue, and I immediately fixed the bugs with a little help from a script provided by Moritz Muehlenhoff. really cool.

So I follow instructions in The Debian Wiki, run the script, check with pbuilder, upload and profit! Fun! End of world hunger! Err, almost. So I get all excited and decide to look at the bugs. And I find a nice one: #346347. Not bad, gpsim FTBFS, Luk also took a look at it and didn t really like what he saw, it neede no xlibs-dev or substitute for them and sitll FTBFS.

But wait! Just by looking at gpsim s bugs page, I find out that there s a New Upstream Version(tm) (#248931) available since 1 year and 241 day ago. Also, NMUs that have not been acknowledged for as long as almost two years... Not nice. And there s even a patch (#345215) for building it on, GNU/kFreeBSD... how sexy!

So I get all obsessive about it. But newer upstream needs a newer libgtkextra-dev version (#347397), which of course was not packaged (don't we all love Murphy?) and that s where I am stuck at. I loathe libraries. But still I gave it a try. And failed. Several times.

Fun? Yes! Profit? Nope! Do you want to take a look at it? Easy. It s all here.

Amaya also FTBFS. And I want to NMU amaya. Badly. Since I first heard about amaya, and realized that I am named after a web browser (sucky as it might be) and after getting many IRC highlights (every time that amaya FTBFS is mentioned on IRC), I have been wanting to use/adopt/NMU it. Amaya NMUs amaya, how recursive can it get?

I will go to bed now, and try not to keep thinking about it, not because I want to become an early riser, Gunnar, no need to worry! But reading about it I thought it would be healthier for me to wake up everyday at the same hour, so that s all I am aiming for. If you know me, you might be rolling on the floor laughing as you read this. So am I! But, if you know me, keep in mind that I have been drinking coffee with no sugar since August... Hey! You are not laughing anymore?

Vi and Emacs are doing fine. Emacs was not pregnant after all, or so the vet told me. It was hard to see her slowly become herself after surgery. Vi was perfectly OK all along, but she looked terrible. Anyway, she felt better by 6am the next day and came to bed, perfectly groomed, and purring like nothing had happened. A week has passed and she has started doing the gory part today... she s biting away the scar tissue, and it bleeds a bit. Oh my Spaghetti Monster!

19 January 2006

Riku Voipio: Automatic Language Identification

Automatic language identification: http://grid.let.rug.nl/~vannoord/TextCat/Demo/textcat.html -Insanely cool.

I remember I saw that site a long time ago last time. Finding it again turned out to be very hard. Googling for "automatic language identification demo" and variants turned out all kinds of interesting papers, but not this site. If I would have tried with "language guesser", I would have found it without needing to resort to search for the papers cited on the page... Google is still not magic.

About the mandatory comment issue, I agree VERY much with Joey. I think the SCC name is unfortunate, probably something like "ports" would better. I'd also like believe that many of the ports will become more lively when they get administrated on scc site by the actual porters instead of the overworked d-i and debian infrastructure team. This of course up to how many people (and vendors!) care about their specific arch, to actually work for it.

And about all the "universal OS" and "what about users" screams... I'm almost speechless. What about the _current_ X86 and powerpc users with their recent hardware that isn't supported by woody? We have a lot more X86 users currently without stable security support than there are woody users of the archs proposed to be moved to SCC.

Meike Reichle: Random stuff

Not much happening at the moment, thus just a few random musings ...

Meike Reichle: Hardware shopping

After finally setting up my old PC (Does PC still mean personal computer or has it completely mutated into politically correct yet?) I noticed that its mainboard was broken. (Well, actually I didn't. I thought that stuff on the capacitors was just some kind of dust or so. Alex kindly informed me that it was infact their content ... which somewhat impairs their functional capability.) The machine still booted up alright and worked without problems, but every now and then it suddenly went out without any sign of warning. Very annoying. This resulted in the machine serving as an occasional table for another few weeks. Until last weekend, when I finally went and got some new hardware for it. It now has a new mainboard (my first one with DDR RAM, welcome in the new millennium!) and a silent CPU cooler. The good: The computer is now finally usable and I cannot hear the CPU fan anymore. The bad: I now know that the fan of my PSU is just as loud, as are the hard discs ...
Thus another hardware shopping expedition is in order!
... as soon as my finances recovered from that last one ...

Meike Reichle: On laundromats

Not owning a washing machine of your own does funny things to you. When I moved here, I knew that being without one I would have to cycle to the laundromat every time, carrying a huge backpack, wash my stuff, cycle back home with the wet cloths and hang them in the drying room in the basement. Compared to the hassle that it would be to get a washing machine, and considering I am only going to live here for half a year this seemed sensible. There are however a few things I did not know/consider:

Meike Reichle: Web stuff

I've never been much of a web stuff person, I don't like pointless Look, I am online! web pages and never felt the urge to have one myself. Though, over time, I kinda slipped into it as well. First there was my student homepage, then the blog, and a number of other machines I have accounts/stuff on ... A few months ago I finally got fed up with this patchwork structure and decided to get everything together on one machine and under one domain. This is still work in progress, since most things are done in the evenings after work and my current occupation is one of that kind where you get home in the evening and feel like doing braindead things or crawling straight into bed. But, relocation is advancing step by step and as a first result I can now proudly present a domain of my own :) It's still hosted on someone else's machine (Thanks aba! :)) and there's not much there yet, but it's going to grow slowly ... Also, this time I tried to do it right from the start and make the pages as simple and accessible (without looking too 1992) as possible. I didn't know much about these things when I designed my student homepage and the blog, so another task on my todo list is to properly redo them and also put them there.

David Pashley: Mozilla causing XSS in Livejournal

As mentioned in my last entry, Livejournal have changed their url scheme to get around a problem in mozilla. The trouble is down to the -moz-binding CSS property. I'll repost a copy of the short lived posting to the lj_dev community earlier.
Discussing the URL Change As we recently announced in [info]news, we have changed the canonical URL of most journal, community, and syndicated content. While we did offer subdomains to Paid users in the past, this is now the canonical URL that we will link and redirect to for all journals. However, all communities are located at http://community.livejournal.com/username and syndicated accounts at http://syndicated.livejournal.com/username. Due to the way certain proxy servers are configured, and the fact that the HTTP RFC prohibits it, the canonical URL for journals with a username starting with an underscore will be http://users.livejournal.com/username. We are however offering a free rename if you fall into this group. So now the technical side of all of this and why it was a required change; bear with me as its 3am my time and I'm sitting in John F. Kennedy Airport after a five hour flight. Late last week we become aware that it was possible to use the "-moz-binding" CSS attribute within Mozilla and Mozilla Firefox to execute arbitrary offsite JavaScript. As this attribute is designed to allow attaching an XBL transform and JavaScript to any node within the DOM, it is quite easy to use in a malicious fashion. We immediately altered our cleaner to strip this attribute from entries and comments, though also realized that wasn't even half the battle. As we allow custom CSS in many of our styles, as well as the ability to link to an external stylesheet in a variety of fashions, it was quite possible to take advantage of this exploit and hijack the session cookie of any user who views your journal. As we, along with many other sites, used one cookie to authenticate a user, this cookie was quite powerful if stolen. If the user had not chosen to bind their cookie to their IP address, a malicious user could steal it, login as that user, deface the account and SPAM with it, as well as modify that user's style to include the exploit thus causing this problem to spread much like a virus. Borrowing the idea from another development team within Six Apart, we decided we needed to break our cookies into three categories. One cookie would be our application management cookie, this cookie would only be accessible on www.livejournal.com where we will not display untrusted content. A second cookie will be accessible on all subdomains of livejournal.com, though it only will say if you are logged in or not; it is solely for optimization. We then will issue one cookie for each journal you visit. This cookie will be only accessible on username.livejournal.com or community.livejournal.com/username as it is limited to a single journal. This cookie will only grant you the permission to read protected entries and post in the particular journal. This means that if the journal owner steals your cookie, they will be able to do nothing more than view their journal and comment upon it as if they are you. In the end you will have n+2 cookies, with n being the number of journals you visit. Due to the fact that we cannot clean every external CSS stylesheet linked to every time we generate a journal page, this change is required. While it does not fully protect us from some new cross site scripting vulnerability that can be exploited via entries or comments, they are much easier to block, patch, and recover from quickly. With Mozilla deciding to allow the execution of arbitrary JavaScript via CSS, there is no other viable solution than the one we have undertaken. We developed a plan to phase all of this in over the next week, URL change first and then followed by the cookie change, though this morning we were made aware that this was being actively exploited. As such we took our week time line and shortened it to about twelve hours. While URLs have been changed at this time, our cookie handling change has not yet happened. This should however be expected to take place within the next day or two as well as various other cleanups and fixing bugs we've already encountered. Please feel free to let us know if you have any questions and open a support request if you find a bug or encounter a problem. Sorry all of this came with just about zero warning, but in the end we could not wait longer to fix this problem.
Thanks to Daniel Silverstone for providing me with a cache copy of the text.

David Pashley: Unintended Consequences of Technology

I've been meaning to post this for a couple of days. I discovered a rather unintended and quite unexpected consequence of using a piece of software. At work I use Workrave to enforce breaks from the computer. For those that have never used it, workrave is a little gnome applet that monitors your keyboard and mouse usage and after about an hour of work locks your screen and gives you a 10 minute break with a few exercises to reduce RSI. It also gives you microbreaks of 20 seconds every 3 minutes of work, so you can look away from the screen, stretch, whatever.. I should point out that it isn't 20 seconds every 3 wallclock minutes, but 3 minutes of using the mouse/keyboard and isn't quite as intrusive as it sounds. I get to rest my eyes, prevent RSI annd take breaks. This sounds like exactly the thing Workrave was written for. So what is unintended? It turns out that the 20 seconds micro-break is just the right amount of time to have a drink of water or get up and fill my glass if it's empty. Before I would forget to fill my glass up, but now I have time where I can't do anything on the computer. In the 30 minutes since I got in to the office and started writing this entry I've had two micro-breaks and drunk a pint of water. Workrave has managed to increase my water intake during the day and as a result the number of toilet breaks. :) I notice LiveJournal have enforced http://<username>.livejournal.com/ url scheme now to prevent cross-site scripting attacks where people were stealling session cookies and gaining access to accounts. Not sure what the exact problem was, but I know of several attacks over the last week by one group of scriptkiddies. Update: Appears the problem was in firefox. Explaination here. Update: Nope, they pulled it. Basically mozilla allows you to execute javascript via CSS stylesheets. I'll update with any further URLs as they become available.

David Pashley: I had an epiphany in the shower

About a year ago I had a problem with udev crashing during startup on my powerpc box. Somehow I managed to muddle on with this problem, probably by not rebooting the box. :) Last summer I had to reoot it again so I did a bit more research and discovered that udev was trying to looking up the nvram group, not finding it in /etc/group and then trying ldap, which, of course, failed because we have no networking yet. Adding the group fixed the bug and filed a bug against udev saying that udev should add any groups it used. Carrying out further debugging revealed that the crash was during nss_wins. The general order of events were:
  1. udev looks up a user or group.
  2. Group doesn't exist in compat.
  3. Lookup in ldap.
  4. Ldap attempts to resolve the name of the ldap server or client. (server is 127.0.0.1 so confused about this point.)
  5. Network and/or dns server isn't up so dns fails fails.
  6. Attempts to look up host in wins.
  7. udevstart crashes.
I didn't have time to debug this any further and proceeded to forget the problem, but last night my fileserver started having the same problem. Removing ldap from passwd, group and shadow resolved the udev problem, but then I didn't have any users. Late last night I booted without ldap and then changed nsswitch.conf to add ldap, and went to bed. This morning I had an epiphany in the shower. Not only did I remember what the bug was, but also a sensible workaround. The problem wasn't with the passwd et al lines, but the hosts line. I did have
hosts: files dns mdns wins
The solution is to return if dns isn't available and changed the line to:
hosts: files dns [UNAVAIL=return] mdns wins
Now all I need to do is to debug nss_wins and get to the bottom of the crash. It might be worth filing a bug against nss_ldap for trying to do a lookup against an ip address.

15 January 2006

Joachim Breitner: Rock die Burg

Diesen Abend war in meinem Wohnheim, der Insterburg, ein kleines Festivalchen, mit drei Lifebands. Und da ich gerade eh warte, bis die ~150 Bilder skaliert und hochgeladen sind, kann ich auch gleich dar ber bloggen.Die erste Band, die aufgetreten ist, wurde von mir vermittelt: Peer Pressure kenn ich noch aus Herrenberger Zeiten, fand sie damals schon toll, und sponsere nicht umsonst auch deren Webseite (Domain/Hosting). Man merkt deutlich, dass die vier Jungs inzwischen doch schon einie Routine haben, und die neuen Songs sind wirklich h renswert. Besonders gefiel mir “On the inside”. Leider hatten sie das undankbare Los des ersten Auftritts, und so kam das Publikum nur schleppend in Schwung - ein wenig mehr B hnenshow w rde hier nicht schaden.Das konnte daf r die n chste Band sehr gut: Los Elektrodomestikos ist eine Ska-Band in Anz gen (naja, zumindest am Anfang) und komplett mit Trompete und Posaune und war das Highlight des Abends: Nicht nur die Musik war gut, sondern vor allem lieferten die Jungs eine klasse B hnenshow, was unter anderem dazu f hrte, dass die meisten der Bilder, die ich von dem Abend gemacht habe, von den Jungs sind. Auch die Ausdauer war ausgezeichnet, was wohl auch daran lag, dass sie regelm ig die Positionen durchgewechselt haben, und so bekamen wir f nf Zugaben.Und es w hren vielleicht noch mehr geworten, h tten wir nicht die Zeit f r die dritte Band gebraucht: Brehon, eine in Karlsruhe wohl nicht unbekannte Irish-Folkrock-Band, die (ger chteweise) schon auf “Dem Fest” gespielt hat. Leider war die Musik nach der Ska-Band etwas unpassend und die Masste tobte nicht mehr. Vielleicht h tte man die Reihenfolge der Bands anders w hlen sollen, aber das ist wohl vorher schwer abzusch tzen.Insgesamt ein gelunges Fest (und die Konserven-Musik f r hinterher h re ich immernoch in den siebten Stock), das erste Lifekonzert bei mir zuhause (und ich mit Hausschuhen mitten drin) und die, die wegen einem Heizungsleck nicht kommen konnten haben leider wirklich was verpasst.

10 January 2006

Amaya Rodrigo: For fun and profit^W^W^W^WJust for fun...

Don t you love it when it looks simple and then it is actually simple, but you are not up to the task?

I am loving the xlibs-dev transition, really, I mean it! Two of my packages, fkiss and xdigger got bit by this issue, and I immediately fixed the bugs with a little help from a script provided by Moritz Muehlenhoff. really cool.

So I follow instructions in The Debian Wiki, run the script, check with pbuilder, upload and profit! Fun! End of world hunger! Err, almost. So I get all excited and decide to look at the bugs. And I find a nice one: #346347. Not bad, gpsim FTBFS, Luk also took a look at it and didn t really like what he saw, it neede no xlibs-dev or substitute for them and sitll FTBFS.

But wait! Just by looking at gpsim s bugs page, I find out that there s a New Upstream Version(tm) (#248931) available since 1 year and 241 day ago. Also, NMUs that have not been acknowledged for as long as almost two years... Not nice. And there s even a patch (#345215) for building it on, GNU/kFreeBSD... how sexy!

So I get all obsessive about it. But newer upstream needs a newer libgtkextra-dev version (#347397), which of course was not packaged (don't we all love Murphy?) and that s where I am stuck at. I loathe libraries. But still I gave it a try. And failed. Several times.

Fun? Yes! Profit? Nope! Do you want to take a look at it? Easy. It s all here.

Amaya also FTBFS. And I want to NMU amaya. Badly. Since I first heard about amaya, and realized that I am named after a web browser (sucky as it might be) and after getting many IRC highlights (every time that amaya FTBFS is mentioned on IRC), I have been wanting to use/adopt/NMU it. Amaya NMUs amaya, how recursive can it get?

I will go to bed now, and try not to keep thinking about it, not because I want to become an early riser, Gunnar, no need to worry! But reading about it I thought it would be healthier for me to wake up everyday at the same hour, so that s all I am aiming for. If you know me, you might be rolling on the floor laughing as you read this. So am I! But, if you know me, keep in mind that I have been drinking coffee with no sugar since August... Hey! You are not laughing anymore?

Vi and Emacs are doing fine. Emacs was not pregnant after all, or so the vet told me. It was hard to see her slowly become herself after surgery. Vi was perfectly OK all along, but she looked terrible. Anyway, she felt better by 6am the next day and came to bed, perfectly groomed, and purring like nothing had happened. A week has passed and she has started doing the gory part today... she s biting away the scar tissue, and it bleeds a bit. Oh my Spaghetti Monster!

David Pashley: Fists Of Intern Fury

If there is anything funnier than Must control tiny fists of intern fury, I'm not aware of them.

Next.

Previous.