Search Results: "sto"

27 December 2006

John Goerzen: Memories of Christmas, part 2

In part 1, I wrote about Christmas at home growing up.

Today I'll write about Christmas at my Grandpa Goerzen's place.

The family usually got together sometime between Thanksgiving and New Year's, whenever it worked for everyone. Names for a gift exchange would be drawn well in advance. Each person would give and get one gift at the gift exchange.

Except for us kids. Grandpa always had something extra for us. And it always seemed to be just what we wanted, too. After all the other presents were exchanged, Grandpa would somehow produce a few more. He'd get a sly grin and say "Here's another one." And with that, we'd get to open it. As I got older, I knew my parents were probably giving him suggestions, but still -- there was always something special from Grandpa.

That grin went something like this.



The main dish for Christmas at Grandpa's was usually ham, or maybe his famous beef borscht. I always hoped for the beef borscht, anyway.

After the meal, people would do dishes or sit around and talk.



Sometimes I'd get bored and try to leave, but other times there was exploring to be done. Maybe I'd discover some long-forgotten game in the cold storage room upstairs.

On Sunday, I had the good fortune to have 5 reels of old family slides pass through my hands. I've been feverishly scanning all 500 of them on my slide scanner. At tomorrow's Goerzen Christmas, I'll bring along DVD+Rs of these scanned images for people -- I think it'll be great.

One of the slides was this picture of Grandma and Grandpa Goerzen's Christmas tree in 1971.



It's really neat to see pictures of the house we'll move into shortly from so long ago.

And just a few slides past that, there was this photo of my grandparents on the 25th anniversary. It wasn't at Christmas, but it's fitting:



That sure looks like a happy couple to me.

Terah and I had been talking that Christmas this year wasn't quite the same, with all our decorations and even wrapping paper being in storage, not having a house to decorate anyway (we're still in the temporary apartment), etc.

But being different doesn't mean that it's worse. The best gifts we have don't come in boxes under a tree. They're the love we get and give to each other every day of the year.

Grandpa had the same smile in his anniversary picture that he had at Christmas 19 years after Grandma died. I think he's understood what the best gifts are for a long time.

Evan Prodromou: 5 Niv se CCXV

Nice Christmas for us at the Prodromou homestead in Los Altos Hills. My brothers Nate and Ted spent Christmas Eve with us at the big house, and we hung out till late at night watching Leeroy Jenkins videos on YouTube. The next morning, Amita June woke up early, oblivious to the importance of the day. My nieces Elena and Tessa had their initial gift opening at their house in Mountain View then came over to my Mom and Dad's around noon. So the rest of us played and chatted and had a nice brunch. We had a good time opening presents, and Amita got her main wished-for gifts: lots of musical instruments, like drums, maracas, and a recorder. She also got some nice clothes, both from my folks and her maternal grandparents. Altogether a good holiday, and as usual a watershed of stress. We don't have too much to do between now and the end of the year, so it's a good time to get caught up on some projects that need some attention. And, y'know, just rest. tags:

Basecamp crazy So, I really like the Basecamp project management service. It's a really intuitive system, simple to use, without a lot of project-management mumbo-jumbo that makes tracking your time and planning work too hard to do. It's nicely implemented, has a great UI, and does lots of neato Ajax stuff, so it's easy to use. I crossed the rubicon from the gratis version to the low-volume personal version last year, making myself a whole-hearted participant in the freemium business model. A couple of days ago, I crossed another milestone: I had more than 3 concurrent projects going, so I had to upgrade to the Business version. Normally I'd be pretty P.O.'d to pay for a Web service, but for one that has shown me a lot of value, and that I've moved into incrementally as I've become dependent on it, I'm more willing to pay. I'm not sure what that says about my values, about this particular business model, or just about the quality of the Basecamp service. tags:

One-time passwords So, I'll admit it: I think one-time passwords are pretty hard to understand. But Nick Moffitt gives a very good description of OPIE (One-time Passwords in Everything) in his blog this week. And, before you ask: yes, I am down with OTP. You know me. tags:

26 December 2006

David Nusinow: Document Writing And Programmer Tools

I love that one of the benefits to working on free software is that it exposes you to tools that you wouldn't normally be aware of. A prime example is software that you can use for writing documentation, like LaTeX and revision control systems. At work I've been writing up a fairly long document. Normally at work I'm forced to use OO.o or word because I have to trade the file back and forth with my boss, but this time since I'm doing all the actual writing, I've been using LaTeX and git to manage the thing. In addition, I need a bibliography and references, so I basically needed something like LaTeX. I send my boss an rtf (made with latex2rtf) and pdf (made with pdflatex) when I want comments, and I can still use the highly structured style of LaTeX to make sure that things like my lists get formatted properly every single time. Trying to do this in Word was both frustrating and time consuming.

The best part about the experience has been using revision control though. Having atomic changesets with a log message is something we tend to take for granted in free software work, but compare it to the change tracking in OO.o and Word. It's amazing how much easier it makes it. I can actually see what I was thinking a few days ago, which was the last time I had been revising the document. Being able to visualize the changes and history with tools like qgit are even nicer. And tags... I don't think OO.o or Word lets you tag specific revisions, but I know that when I do this with Word, I end up with a ton of documents labeled "DavidRev1" and so forth, and I always mess up the revisions by using "Save" instead of "Save As".

And this doesn't even touch on the things I haven't done yet. I haven't done any branching, for example. I'm sure that when I write my thesis, I'll end up using that, but just knowing that it's available is exciting. The thing I wish I could do most though is actually put the repo up somewhere and have me and my boss actually use it the same way a normal shared source code repository is used.

The standard sorry ending to this story is that getting these things in broad use is basically a pipe dream. It continually amazes me that people will put up with Word or Powerpoint when it's so often the wrong tool for the job. The simplest things, like being able to look at a document's history and the diff and know in a minute exactly what you were thinking when you put down your work a week ago, help so much. It's sad because the technology problem has been largely solved (a small GUI frontend would be the last piece), but the evangelism problem remains. One thing is for sure, I'm not looking forward to writing my next paper in Word.

Amaya Rodrigo: Confused

This whole Hans Reiser Killed his wife issue is getting as painful and paranoid as absurd.

Even though I must admit that he has acted a bit Schillingly online, I met him several years ago and he didn t look like a killer to me. I have this, probably stupid, believe that people involved in Free Software are, by default, good people. So far, this has been true for me 99.9% of the time.

He is now trying to sell Namesys to help pay mounting legal costs.

I am very confused about this all. I pity the kids the most, and hope she is found, preferably alive, soon.

Yours confusedly...

Enrico Zini: pcmanfm-nautilus

Replace nautilus with pcmanfm I'm sponsoring the upload of pcmanfm and I think it's a very interesting piece of software. There's a new upload coming, and I'd like it to have some instructions on how to replace nautilus with pcmanfm, and possibly how to go back to nautilus. Here's the best I found. Replacing nautilus with pcmanfm To have pcmanfm start instead of nautilus:
  1. Go to Desktop -> Preferences -> Session manager
  2. Go to the 'Current Session' tab
  3. There's an entry like 40 Restart nautilus --sm-config-prefix /nautilus-SoMeThInG/: remove it
  4. Go to the 'Startup Programs'
  5. Add an entry to run pcmanfm
Alternatively:
  1. Run gnome-session-remove nautilus
  2. Go to Desktop -> Preferences -> Session manager
  3. Go to the 'Startup Programs'
  4. Add an entry to run pcmanfm
To configure pcmanfm to draw the background:
  1. Run pcmanfm
  2. Go to Edit -> Preferences
  3. Go to the Desktop tab
  4. Enable "Show file icons on desktop"
  5. Customise wallpaper as you wish
Alternatively, I wrote a little script that will generate a ~/.pcmanfm/main configuration file from you taking some settings from gconf:
#!/bin/bash
# Generate a pcmanfm configuration file reading values from gconf
echo "# ~/.pcmanfm/main configuration file generated by $0"
echo
echo '[General]'
echo 'terminal=gnome-terminal'
echo
echo '[Desktop]'
echo 'showDesktop=1'
# Detect wallpaper setting
WALLPAPER= gconftool-2 --get /desktop/gnome/background/picture_filename 
if ! [ -z "$WALLPAPER" ]
then
    echo 'showWallpaper=1'
    echo "wallpaper=$WALLPAPER"
fi
# Detect color setting (doesn't really work: I could not find significant keys)
#COLOR= gconftool-2 --get /desktop/gnome/background/primary_color 
#if ! [ -z "$COLOR" ]
#then
#   R=$(( $(printf %d 0x$ COLOR:1:2 ) * 65536 / 256 ))
#   G=$(( $(printf %d 0x$ COLOR:3:2 ) * 65536 / 256 ))
#   B=$(( $(printf %d 0x$ COLOR:5:2 ) * 65536 / 256 ))
#   echo "Bg1=$R,$G,$B"
#fi
Getting nautilus again
  1. Kill pcmanfm
  2. Run nautilus: it will register itself with the session manager
Open questions Originally, I had nautilus registered in the session manager as something like nautilus --sm-config-prefix /nautilus-SoMeThInG/. After removing it and having it reregister itself, I have it only as nautilus. I have not been able to find out what is the difference. It would also be cool to have a little program that registers pcmanfm as a 'Restart' entry with priority 40, just like nautilus.

Andree Leidenfrost: Mondo Rescue Debian News

I've used the Christmas time to do some work on Mondo Rescue:

I've uploaded mindi-2.20-2 which fixes RC bug #403454 and important bug #404315. Luckily, I only had to apply patches provided by Matija & Bruno - thanks guys! I've asked for the new version to be allowed into Etch but haven't heard anything yet (maybe I should have waited a few days first or something?).

Also, I've packaged the new pre-release version of Mondo Rescue. You can grab it from here: http://people.debian.org/~andree/packages/. I would much appreciate feedback on how things are working on Etch. So, if you take them for a spin, please let me know how it went, good or bad! The upcoming new release fixes a substantial number of bugs and comes with some notable improvements, so it should definitely be worth checking out.

Finally, when doing some testing I came across a problem with the stock Debian 2.6.18 kernel when used on a Mondo Rescue recovery media. It sometimes already hangs while booting and sometimes starts the restore only to hang later during formatting or even later during restore. This seems to only happen on i386 whereas amd64 is fine. It may also be restricted to my hardware (although it hangs in Qemu as well). 2.6.17 is fine btw. If anyone has an idea what could be causing this, that would be great as I haven't got the foggiest at the moment (there is no message whatsoever, it just hangs).

Joey Hess: new tech for xmas

Rather than hardware, I got some software for Christmas this year. Actually, I've had the software for a while, but lacked the time to learn how to use it, so I took the time today. First was xen, which is great -- now I have many additional systems on my network, all without messing around with hardware. I'd tried to set up xen before and gave it up as needing too much work at the time, and while some of my systems, including kite, run as xen instances on systems adminned by others, I didn't feel I understood it well. Debian's xen support still has a few rough edges; I ran into issues with running out of loop devices, and was suprised that bridged networking wasn't set up by default. I also filed a lot of bugs on xen-tools (sorry Steve). But overall it wasn't particularly hard to get working, and I feel I understand it reasonably well now. I even figured out how to get pygrub fixed and working, which is spiffy -- one of my issues with xen has always been that the choice of kernel is left up to the dom0 admin, and it's good to know that pygrub lets domU provide its own kernel. Next up was SE Linux, which is another piece of tech I've had a general understanding of for a long time, but never deployed. Now that I can dedicate a system to playing with it, thanks to xen, there was no reason not to try it out, and while there are still rather too many manual steps, the instructions are clear and easy to follow, and the result seems to work ok.

Steve Kemp: Lets go dancing on the backs of the bruised

My Christmas day was primarily spent at home watching Red Dwarf. Apart from that I made new releases of xen-shell and xen-tools. I was suprised to recieve a sudden flurry of bug reports. No less than ten bugs reported by two users in one day! Still I fixed most of them and made a new release. It was nice to notice Isaac Clerencia writing about using xen-tools for automated testing. The idea has occurred to me before: Create a fresh Xen installation of Debian then run a test suite and trash the system afterwards. I even setup a test Yawns builder for a while. Are people finding interesting users for xen-tools? I’d love to have some use-cases, and more user-feedback is always appreciated. Feel free to get in touch or comment here. Personally I use a few Xen guests on my home LAN and I regularly create new Sarge images for building backported Xen packages. Only recently did I move my home cfengine setup onto a domU. In other news I recently received a copy of Programming Ruby from my Amazon wishlist, I’m learning a lot about Ruby and I think I’m in love. The only downside is the mental confusion I experience when I see “@variable” and “$variable” used. I am too wedded to Perl to stop thinking “array” and “string” respectively. I should find a toy project to write in Ruby to get used to it. Right now nothing occurs, but I’m sure it is just a matter of time.

25 December 2006

John Goerzen: Memories of Christmas, part 1

Merry Christmas to everyone today!

Today, and for the next few days, I'm going to write about some of my Christmas memories from earlier years. Then I'll finish up with some photos from this year.

This post is about Christmas at home growing up.

One of the first signs of Christmas happened when my dad put up the lights on the outside of our house.



My brothers and I had (and still do) stockings that got one piece of candy per day during December, then got stuffed full when we opened our presents. The tree went up over the Thanksgiving weekend, and it was always a lot of fun to help with that.



On Christmas Eve, we'd always go to the program at church. It was the kids' Christmas play. Church would be packed. On the way out, everyone got a gift sack with fruit (apples or oranges), some peanuts, and maybe some candy. Then we'd go home. Mom or dad would read the Christmas story from the Bible, and after a prayer, it was time to open presents. In addition to the regular presents, dad would always give us a large paper gift sack. It would usually have a 12-pack of pop and some sort of nut (peanuts, pastachios, or maybe peanut brittle).

Sometimes we'd all stand still long enough for a photo.



We'd usually stay up late into the night Christmas Eve and sleep in on Christmas day.

Russell Coker: DOSing Windows Vista

Chris Samual writes a good summary of Peter Gutmann's analysis of the cost of Vista (in terms of DRM).

The following paragraph in the article however seemed more interesting to me:
Once a weakness is found in a particular driver or device, that driver will have its signature revoked by Microsoft, which means that it will cease to function (details on this are a bit vague here, presumably some minimum functionality like generic 640x480 VGA support will still be available in order for the system to boot). This means that a report of a compromise of a particular driver or device will cause all support for that device worldwide to be turned off until a fix can be found.

Now just imagine that you want to cause widespread disruption - a DOS (Denial Of Service) attack against Windows users. What better option than to cause most of them to have hardware that's not acceptable to the OS? I expect that there will be many instances of security holes in drivers and hardware being concealed by MS because they can't afford the PR problems resulting from making millions of machines cease functioning. But just imagine that someone finds hardware vulnerabilities in a couple of common graphics drivers or pieces of hardware and publicly releases exploits shortly before a major holiday. If it's public enough (EG posted to a few mailing lists and faxed to some major newspapers) then MS would be forced to invoke the DRM measures or lose face in a significant way. Just imagine the results of stopping 1/3 of machines working just before Christmas!

Of course after the first few incidents people will learn. It shouldn't be difficult to configure a firewall to prevent all access to MS servers so that they can't revoke access, after all our PCs are important enough to us that we don't want some jerk in Redmond just turning them off. Of course disabling connections to MS would also disable security updates - but we all know that usability is more important than security to the vast majority of users (witness the number of people who happily keep using a machine that they know to be infected with a virus or trojan).

If this happens and firewalling MS servers becomes a common action, I wonder if MS will attempt the typical malware techniques of using servers in other countries with random port numbers to get past firewalls. Maybe Windows updates could be spread virally between PCs, this method would allow infecting machines that aren't connected to the net via laptops.

Finally, I recommend that people who are interested in such things read Eastern Standard Tribe by Cory Doctorow, he has some interesting ideas about people DOSing corporations that they work for which seem surprisingly similar to what MS is doing to itself. I'll post about my own observations of corporations DOSing themselves in the near future.

Jose Carlos Garcia Sogo: Python tips for vim

I am using Vim a lot to code in Python. One of the most important thing in Python is indent code properly as t uses indent to mark code blocks, and making that right is a bit painful, as you usually end mixing tabstops with white spaces, which makes code almost unreadable when you open it with an editor with a different tabstop setting. To avoid that, using whitespaces is recommended, but it would be nice that those could be inserted automtacally, and that is what the following lines of code added to your ~/.vimrc file make.
" Tip: set indent parameters for python files.
" Version: 0.1
" Date: 13 May 2006
"
" Description: most python scripts use four spaces for indenting, but
"              sometimes you will end up editing a script where tabs
"              are used; in these situations it can be useful to
"              automatically detect whether spaces or tabs were used,
"              and set some parameters (or call some functions) consequently.
"
" Usage: you can put this script in you vimrc and call the PyIndentAutoCfg
"        function with an autocmd associated to python files, or call
"        it manually, or put it in the python.vim syntax script, or... :-)
" Function to set parameters for python scripts that use
" spaces for indention.  This is also the default.  YMMV.
function PySpacesCfg()
  set expandtab " use spaces in place of tabs.
  set tabstop=8 " number of spaces for a tab.
  set softtabstop=4 " number of spaces for a tab in editing operations.
  set shiftwidth=4 " number of spaces for indent (>>, , ...)
  set smarttab
  set autoindent
  set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
endfunction
" Function to set parameters for python scripts that use
" tabs for indention.  YMMV.
function PyTabsCfg()
  set noexpandtab
  set tabstop=4
  set softtabstop=4
  set shiftwidth=4
  set autoindent
endfunction
" This function returns 1 if the file looks like a python script
" that uses tabs for indenting, or 0 otherwise.
function PyIsTabIndent()
  let lnum = 1
  let max_lines = 100 " max number of lines to check.
  let got_tabs = 0
  let got_cols = 0 " 1 if the previous lines ended with columns.
  while lnum = max_lines
    let line = getline(lnum)
    let lnum = lnum + 1
    if got_cols == 1
      if line =~ "^\t\t" " at least two tabs, to prevent false-positives.
        let got_tabs = 1
        break
      endif
    endif
    if line =~ ":\s*$"
      let got_cols = 1
    else
      let got_cols = 0
    endif
  endwhile
  return got_tabs
endfunction
" Check the file, and run the relative function.
function PyIndentAutoCfg()
  if PyIsTabIndent() == 1
    call PyTabsCfg()
  else
    call PySpacesCfg()
  endif
endfunction
" Call the PyIndentAutoCfg function.  Uncomment this line if you've copied
" this script in the python.vim syntax file or something like that.
" call PyIndentAutoCfg()
au BufNewFile,BufRead *.py call PyIndentAutoCfg()
Also, if you want to convert a file using tabs to spaces, you can do it by using the following Vim commands.:
:set expandtab
:%retab
Update: Stefano posted about using filetype hook files instead of au groups. I think it is smarter, and I didn't knew about after/ dir in ~/.vim. So following Stefano's advice, you should put the ebove script in ~/.vimrc/after/ftplugin/python.vim, so it gets loaded automatically when you open a Python file.

Stefano Zacchiroli: use filetype hooks luke

Xmas Vim tip: use ~/.vim/after/ftplugin/XXX.vim Jose Carlos posted some Python tips for vim. I haven't yet looked thoroughly at the code, but still here is my Xmas Vim tip:
Avoid putting filetype-specific customizations directly in your ~/.vimrc using au groups which rely on specific filename extensions. It's better to put filetype-specific customizations for the filetype XXX directly in the file ~/.vim/after/ftplugin/XXX.vim (in the example it would be ~/.vim/after/ftplugin/python.vim), this way they would be loaded even when you manually do "set ft=XXX" on a file with whatever extension.
For the interested reader the "after" path step is justified by the vim "runtimepath" we use in Debian (cfr. /usr/share/vim/vimcurrent/debian.vim). It ensures your customizations will be loaded after system-wide customizations so that they can be overridden. Oh-Oh-Oh, Merry Christmas.

Amaya Rodrigo: Merry consumerism!

I managed to have the Xmas eve I wanted to. I stayed at home, alone, I didn t eat anything special, I went to bed at 21:30, sober, watched a wonderfully strange movie on my laptop until I fell asleep (with the laptop, and both cats on my bed), and got up today at 07:45.

Of course I was only free from all the family pressures because I was sick enough to be excused, but so far, this has been the best Xmas eve I ever had.

I missed the ugly, quickly and mindlessly bought, presents, the old time quarrels that arise as the wine gets drunk, the unbearable Xmas TV show as a background and the inability to turn the damn TV off!

I also skipped meeting family members that made my childhood and teenage years hell, pretended my abusive father was not hurting me, my sister and my mother, and never did anything about it, never loved me the way I am, don t respect the way I live and don t acknowledge what I see as my achievements in life, because I have always been too fat for them, not feminine enough for them, I never finished college (that I paid for by myself, and certainly not for them ), and refuse to eat animal corpses.

Anyway, don t get too worried, I was only sick from eating too much chocolate and Xmas sweets the day before ;)
(and I am perfectly fine with the family I was blessed with, because, in a wicked way, they taught me not to be judgemental, to have lots of empathy, to be less rigid, to accept people as they are and not as I would want them to be, to see the beauty in people fatter than chopsticks, to do things for myself and not to please others, to be independent, to want to live differently, and to have the courage to stand up to the people like them in the world, and more importantly, they taught me to love myself despite the worth that the rest of the world might think I have).

If you happen to have a nicer family, enjoy them, but not because it is $HOLIDAY, enjoy them because you have them. And stop buying like there s no tomorrow, for ecology s sake!

Christian Perrier: 100%

If, by some sort of Christmas miracle, all pending debconf translation bugs get fixed in one day, French debconf translations would reach 100% completeness (the real status is 96.16% today). The Czech team reached this briefly in the past and it's a pretty long time since we're hunting that moving target. Thanks to the release process, package maintainers have stopped changing their debconf templates daily and, with the incredible work of Thomas Huriaux, we've been able to reach that Nirvana.

Erich Schubert: On memory protection

Merry Christmas! I'm catching up with some RSS feeds, including the Linux Weekly News (LWN). This is a high-quality news site for Linux, and being issued just weekly is a nice feature for all those suffering from information overload. They had an interesting article some weeks ago on Virtual Machines and Memory Protection. If you are interested in system and application security, this is an interesting read. SELinux has permissions called "execmem" and "execstack". Basically these allow applications to map some memory executeable, or execute their own stack. Back in the assembler days, some techniques relied on this, but it has lately become frowned upon: most buffer overflow and other attacks used by viruses and worms relied on an executable stack or memory. Recently, Intel and AMD added support for "non-executable" bits for memory maps, i.e. hardware support to enforce these permissions; this was sold as an achievement in application security. Though this is mostly true - tons of attacks rely on this permission - it's not that easy. Modern programming languages such as Java and C# rely on so called Just-In-Time compilation for fast execution. (And future version of perl and python will probably do that, too.) And JIT requires executable memory, because it basically compiles the VMs bytecode into (optimized) machine code, and executes it. Now you could say: okay, let's just grant mono and java the execmem permission; (which is also what SELinux does) - and this will probably be okay unless there is some grave error in the mono or java runtime. Or any other native library they use. And this is where the problems start: both Mono and Java rely to a certain extend on native libraries. For example the GTK libraries for the UI. Mono applications can also use gstreamer, gnome-vfs, zlib, libpng, libjpeg, ... That means, security issues in these libraries that need execmem and would not work on native applications can suddenly be exploitable in mono and java apps. Since we can't do without execmem for Java and Mono: the executable bit for memory does add some extra layers, but doesn't give you full protection from this kind of attacks, sorry. No magic "my computer is no longer hackable because I have the NX bit".
With an NX Bit capable operating system such as Windows XP SP2, harmful viruses are stopped before it can cause any damage to the system.
... unless you're using .NET or Java applications.

Erich Schubert: On memory protection

Merry Christmas! I'm catching up with some RSS feeds, including the Linux Weekly News (LWN). This is a high-quality news site for Linux, and being issued just weekly is a nice feature for all those suffering from information overload. They had an interesting article some weeks ago on Virtual Machines and Memory Protection. If you are interested in system and application security, this is an interesting read. SELinux has permissions called "execmem" and "execstack". Basically these allow applications to map some memory executeable, or execute their own stack. Back in the assembler days, some techniques relied on this, but it has lately become frowned upon: most buffer overflow and other attacks used by viruses and worms relied on an executable stack or memory. Recently, Intel and AMD added support for "non-executable" bits for memory maps, i.e. hardware support to enforce these permissions; this was sold as an achievement in application security. Though this is mostly true - tons of attacks rely on this permission - it's not that easy. Modern programming languages such as Java and C# rely on so called Just-In-Time compilation for fast execution. (And future version of perl and python will probably do that, too.) And JIT requires executable memory, because it basically compiles the VMs bytecode into (optimized) machine code, and executes it. Now you could say: okay, let's just grant mono and java the execmem permission; (which is also what SELinux does) - and this will probably be okay unless there is some grave error in the mono or java runtime. Or any other native library they use. And this is where the problems start: both Mono and Java rely to a certain extend on native libraries. For example the GTK libraries for the UI. Mono applications can also use gstreamer, gnome-vfs, zlib, libpng, libjpeg, ... That means, security issues in these libraries that need execmem and would not work on native applications can suddenly be exploitable in mono and java apps. Since we can't do without execmem for Java and Mono: the executable bit for memory does add some extra layers, but doesn't give you full protection from this kind of attacks, sorry. No magic "my computer is no longer hackable because I have the NX bit".
With an NX Bit capable operating system such as Windows XP SP2, harmful viruses are stopped before it can cause any damage to the system.
... unless you're using .NET or Java applications.

24 December 2006

Lars Wirzenius: Anecdotes: Finnish as an encryption method

Watching my sister's Welsh boyfriend slowly learn Finnish, I'm reminded of the fact that the language is often considered difficult. At any rate, it is spoken by a very small percentage of the world's population. Some Finns therefore think they can safely use it abroad to talk about anything, even if it is embarrassing or sensitive. I've found that not to be true. There's other Finns everywhere. There's always someone who will hear and understand if you say something not meant for outsiders. A couple of anecdotes might prove this. In 1990, I was abroad for the first time, in Eindhoven, the Netherlands, for an ACM programming competition. I and a team mate spent one evening in a local bar, talking with each other. After a while we were interrupted by a Finnish woman who lives in Eindhoven. Luckily, we hadn't said anything too bad, she just recognized fellow Finns and wanted to say hi. In 1999, I was in London for a conference, and had a bit of free time, which I spent walking on Oxford Street. At some point, I was walking behind two young men, in their early twenties. They were speaking fairly loudly, commenting on the physiological features of the woman walking in front of them. The woman eventually stopped, turned around, and started swearing at them. Loudly. In Finnish. My theory is that Finns are slowly taking over the world by spying on each other abroad. That's why there's always at least two Finns anywhere.

Brett Parker: OK - now *that* rocked...

Just finally got round to watching cars (bought it earlier in the week, just watched it, damned glad I bought it). I'm a pixar film fan, so when cars was announced as the last film last year before moving to another distributor I was a little pessamistic as to what the quality of the film was going to be, I must say, I'm still very happy with pixar - now, let's see what happens now that they're owned by the evil giant that is Disney - hopefully they'll still leave the pixar team as is and we'll get lots more quality films with lots of imagination behind them. (Yes, OK - I'm a big kid, and I also like most of the stuff that comes out of dreamworks studios, though they tend to have less story line - shrek is rather good though). So, yeah - just thought I'd post to say... If you haven't seen Cars, go get a copy, watch it, it's fun :) In case I totally avoid mentioning it tomorrow (quite likely), Merry Christmas peeps. Have a good one, don't drink too much :)

David Moreno Garza: My ten wishes for 2007

These are my ten wishes for 2007. Since Santa didn’t arrive in this part of the world, I think I’m asking this to the Three Wise Men (in spite of they were brought here by the Spanish catolicism, but hey):
  1. Dignity, land and respect to the Mexican indigenous groups.
  2. Return and good health for Commander in Chief, Fidel Castro.
  3. Strongest antineoliberalism in the Latin American region.
  4. Right wing oppression brought down in Bolivia.
  5. Good year socially, economically and politically to Nicaragua with its new hope.
  6. An even better year in Cuban trades; they were the best growing economy in Latin America by exporting to South America and China.
  7. Stop to the free trade agreement and military bases with the US in Ecuador.
  8. Peaceful solution to the Colombia-Ecuador border conflict.
  9. Democracy established in some of those countries where it’s more needed, like Central America.
  10. More social successful programs in Venezuela.
And my bonus one:

Russell Coker: MythTV

I've just been trying to set up a MythTV system, I've had the hardware for this for a while but until my TV broke I hadn't found the time to work on it.

My planned hardware was a P3 system for both frontend and backend. However the Debian MythTV packages take over 250M of memory for each of the frontend and backend programs (more than 500M for Myth programs alone), combine that with some memory use for MySQL, for the X server, and for the rest of a functional Linux system and a machine with 512M of RAM does not perform well. Unfortunately it seems that most (if not all) desktop P3 systems only support 512M of RAM (at least none of my collection of P3 machines does). P3 server systems support considerably more RAM (I used to have a SMP P3 server with 1G of RAM), but a server class machine is not what you want in your lounge room. P4 systems support more RAM but also take more than twice the electricity of P3 systems. The extra electricity use is a waste for a machine that will probably run 24*7, and also requires extra cooling (and therefore probably louder fans which is bad for a machine used for playing audio). Given that I desire the capabilities of a P4 in terms of RAM support and electricity use that is not excessive, my options are one of the recent Intel Core CPUs or AMD64 (both of which apparently use less electricity - not sure whether they would use as little as a P3) or a CPU designed for low power use (maybe a Via). Either option costs more than I prefer to spend (I want to use a second-hand machine valued at $129).

Of course if I could get Myth to use less memory then that would allow me to run both parts of MythTV on the one machine. Please offer any advice you can think of in regard to minimising memory use for Myth on Debian.

Given that I am unlikely to be able to optimise memory use as much as I desire it seems that I will have to go to a split model and try using an existing Pentium-D server machine as the backend and the P3 as a frontend. The up-side of this is that I can turn off the frontend machine when it's not being used (the server runs 24*7 anyway). I will need to get more RAM for the Pentium-D machine, but I had wanted to do that anyway.

The next thing I will have to do is to write SE Linux policy for MythTV and find out why /usr/lib/libmp3lame.so.0.0.0 needs both execmod and execstack (and either fix the library or write policy to permit that accss). I'm happy to have a MythTV server program running on a stand-alone machine with unrestricted access to all resources, but when it's going to run on a machine that is more important to me I need to lock it down.

Now to the design of MythTV. It's unfortunate that they don't support better multitasking options. One feature I would like to see is the ability to play MP3s in the background and then have the music pause whenever TV is selected. When I watch a live show (such as the news) I would like to listen to MP3s before it starts and then at the end of the show (and maybe during commercial breaks) have the MP3 playing resume where it left off. This is exactly the traditional lounge-room functionality we are all used to, when a commercial starts you mute the TV and un-pause the CD player! The advantage of MythTV is that you could do both with a single button - or even automatically with advert recognition!

The method of selecting MP3 files to play is also a little cumbersome and the option to add a song after the current one in the play list doesn't seem to work. Also it's a pity that there is no convenient option to sort the music list by artist, genre, or sone name - there are grouping options but they are all separate and I would like to change the sorting via a single key press.

The startup sequence of MythTV regenerates some images (which takes a few seconds), it seems that this is something that could be cached for a faster startup. Also when I add new MP3 files to the store I have to manually request a re-scan. It's a pity that it can't just check the size and time-stamp of the directories which contain MP3 files and do an automatic re-scan if they change.

Next.

Previous.