Search Results: "Aigars Mahinovs"

13 May 2008

Aigars Mahinovs: Too similar to be different

Eric, I cann’t claim to 100% understand the situation but after glancing trough the logs of the discussions and of the patches the conclusion I came to was this - OpenSSL used supposed randomness of the uninitialized memory as an added source of entropy (interesting hack, but not an example of good coding as such). Valgring caught that problem and the Debian maintainer during a cleanup fixed it. Making such a fix can be considered a preventive step against possible attack vectors by poisoning the uninitialized memory. He took it up to upstream, they did not raise red flags, but did not quite merge the ‘clean up’ patch either. It fell through the cracks. The problem is that in the same file, in another function all other sources of entropy were being merged into the pool of randomness using exactly the same code line as the one code line flagged by Valgrind. The maintainer assumed that the second code line has a similar function to the first and commented that one as well. AFAIK that also did not show up in the emails to the upstream list. So we have: I am impressed by the swift action of the people involved in fixing this. And while I think everyone can find some lesson be learned here, I think this is another good example of free software in action. And I hope that in the aftermath of this we will find ways to prevent this from happening in the future without stifling our progress.

11 May 2008

Aigars Mahinovs: Azureus killing a small router?

I am having a problem of my tiny Fonera router restart on me endlessly whenever I have two laptops with Azureus running connect to the network, so I started to investigate. I could not get any meaningful error messages from the router before it reboots and the only weird thing I could find in the statistics was the huge number of active connections. When I have one laptop with Skype running, Firefox browsing a few pages and Internet radio playing the number of active connections was around 200. Starting Liferea for RSS bumps that to 300. Nothing serious. However, as soon as I start Azureus (with no active downloads!) the number of active connections jumps by 400-500, starting one download adds another 300 connections. That is despite setting a maximum global limit of active connections to 100 in Azureus preferences. After 5-10 minutes the number of connections goes down to 500 (with one download active), but with two laptops with Azureus in the same wireless network the initial spike is high enough to kill the router in 2-3 minutes, force it to reboot and then do it all over again, and again, and again … No I am thinking whether to spend around 50 for another router or try to work with Azureus folks to try to fix this. :(

6 May 2008

Aigars Mahinovs: Ubuntu removing XML from Python?

From http://159.18.52.69/raw/983493 Error:
Traceback (most recent call last):
  File "test.py", line 12, in module
    from xml.dom.ext.reader import HtmlLib
ImportError: No module named ext.reader
Fix/workaround:
+        sys.path.append('/usr/lib/python%s/site-packages/oldxml' % sys.version[:3])
        from xml.dom.ext.reader import HtmlLib
I had an old Python script doing some XML work and after upgrade to Ubuntu 8.04 I started getting the above error message and had to use the above fix because the Ubuntu packages of python-xml moved the xml.dom.ext.* to /usr/lib/python2.5/site-packages/oldxml for some reason. Have not looked at the latest Debian packages. Does anyone know why such back-compatibility breaking change was introduced? All I find on Google are the people getting bitten by this bug and no reasoning or even discussion behind the change.

5 May 2008

Aigars Mahinovs: Speak to the mind and youll drop in ratings

Apparently it is a political suicide in USA to make people think. Obama’s ex-preacher Jeremiah Wright is the most sane US preacher that I’ve ever heard. If you read or listen to his sermons in full length and go beyond the Fox News presented soundbites, he is 99% right. The US has long been doing extreme violence to countries around the world, so it is no wonder that such violence came back to US. Russia had the same problem with Afghanistan and Chechnya. If you try to put yourself up as ‘world police’, some people will disagree. Then he damned America’s _government_ for letting Americans down by not caring enough about the people. The only thing that I would smile and shake my head at was the statement that American government invented HIV. I doubt even they have such resources. Read this transcript for example, the sermon is just a great sermon that urges the people think for themselves. And what people put this sermon down for? Using a word ‘Negro’? Having an issue with some specific politicians? He is a pastor, pastors are meant to have a strong opinion a vision and to project that for the congregation to see. “I’m not going to stop thinking just because I love Jesus” is the summary of that sermon if you ask me. And that is the most positive religious message I’ve heard from that side of the pond for a long time. You can agree or disagree with rev. Wright, but you can still go to his sermons and enjoy it because he makes you think. I would talk to most racist bastard, serial killer or even Hitler himself if he could tell me something that would provoke my mind to think and thus improve myself. You don’t have to agree with people to benefit from speaking to them or from listening to what they have to say. Even if someone is 100% wrong and misguided, if his speeches can make you think of some good idea, it is worth it. And rev. Jeremiah Wright is not 100% wrong, from what I’ve heard he is on the money most of the time and only some of his statements I would disagree with. And he is a great speaker. If I would have not been an Obama supporter, I would become one because of Wright. Or because of the very accurate observation by Obama that in hard times people in rural USA cling to trusted values such as guns and religion. There is nothing wrong with that. I am amazed how such true statements can be so turned by US press and can actually reduce Obamas rating. I was starting to believe that not all is lost in the US, but if Obama does not get elected, well … it is all lost in the US. PS. How this related to Debian? Or software is the best choice for the society in the long term. However, that is only true if we assume that people behave rationally and use it, improve it and contribute back improvements for the public good. If the general population is made weary of rational thinking and starts thinking in soundbites and slogans, then there is a ceiling to free software expansion and the whole free software movement can eventually be crushed in the interests of homeland security with strong corporate commercial software backing. (Only government approved software is allowed to run with mandatory government approved back-doors and hardware verification to prevent cyber-terrorism or something, thus also forbidding any compilers and interpreters outside government controls.)

29 April 2008

Aigars Mahinovs: The Andromeda Strain 2008

When I heard that there will be a miniseries based on “The Andromeda Strain” book, I was very exited. That was one of my favorite sci-fi books in my childhood. After watching the miniseries I must conclude that this is another book perverted and trivialized by Hollywood. SPOILERS AHEAD! They created some crazy pseido-sci-fi idea that humans from the future sent Andromeda back from the future via a wormhole in a container that contained a message which was then picked up by a satellite that was sent up to investigate the wormhole. No wormhole was there in the book. The book had a much more modest idea - a Scoop satellite was to skim the outer layers of the atmosphere for mutations of common Earth bacteria for military purposes when it was impacted my a micrometeorite carrying the Andromeda. Much more probable, no need to involve wormholes, time travel, ASCII messages, eco-terrorists and a sub-plot on conservation of marine species. Due to extreme modernization of the script, the whole subplot of the teletype mechanical failure was omitted. Andromeda was made sentient instead and communicated via ’some kind of inductive field’ to shoot down a fighter jet and activate a nuke. The survivors and their pH levels got barely a glance. Also the amount of destruction was obviously too low for the movie, so the Andromeda was made to mutate more, spread out of containment easily and even make a flock of birds attack a squad of solders ‘Hitchcock style’. Disgustingly cheap scriptwriting. Huge chunks of plot were ripped out (searching for the micro-meteorite impact crater with different lenses, central core security) and the two hours were filled with Rembo style journalism vs. black ops, selfless president and scenes of animals eating each other and dieing. At the end they ran out of budget and just made it look like presence of Andromeda made air and water bright red so that people would have something to run away from in fear. Oh and the scientists are allowed to freely talk about the event after it’s done. Yeah, right. In my book this movie rates very close to the infamous “The Core” with the only difference that they managed to fuck up a really good book. Do not watch it and read the book instead.

24 April 2008

Aigars Mahinovs: Baby Jesus violation meme

Most absurd religious bullshit in long time. Baby Jesus cries like being stabbed in the eye with a fork. It is like a sweet gay love orgy between baby Mohamed, baby Jesus and baby Abraham while baby L. Ron Hubbard films it all and baby Buddha gives artistic directions. Wouldn’t you want to see that Holy Trinity? Just as real and inspiring as the other one. Baby Jesus is a fictional character just like Donald Duck or Terminator, get over it. If your personality is fully determined by several thousand years old megalomaniac fantasies to the point where you are unable to accept satire about it, you might have serious psychological issues and should seek professional help. If people get seriously offended at anything written online it is their own personal psychiatric problem. The fact that such irrational over-offensiveness is promoted in US. Opinion is an opinion even when stated as a fact or amusing expression or observation. Being offended by an opinion is a clear sign of lack of personal integrity and self-awareness. Don’t enforce your own psychological deficiencies on others or baby jesus will cry like he crapped his pants before the age of diapers.

12 April 2008

Aigars Mahinovs: Debian development basic links

For a Debian package creation seminar:

7 April 2008

Aigars Mahinovs: Debian on EEEpc 2

The new release from the Debian EEE PC Team is simply great - it works flawlessly to install a fully functional Debian install onto an EEE PC over wireless. You only need a 16 Mb USB stick (or SD card) to boot from. The only remaining bug that people are still working on is the selection of the wireless network - int the current build the installer autoselects the strongest signal by default and if you want another you need to go back and reconfigure the network in the installer. Great work guys! BTW: This got me thinking - it shouldn’t be too hard to take over the EEEPC from the default installation without having to have a USB stick or an SD card :) The default EEE PC setup consists of a (read-only) system partition and a user partition overlay. It should be simple to download the 16 Mb D-I boot image, save it to the system partition and write a boot loader that would allow the choice between normal boot, EEE PC rescue boot and Debian installation boot. With a bit of pre-seeding we could have the d-i install a Debian instance in place of the user partition unless the user overrides that.

27 March 2008

Aigars Mahinovs: More of a good thing?

There is one particular aspect of Microsoft’s document format going through ISO process that I had a hard time to find a counter-argument against: “Well it is better to have multiple open formats, isn’t it?”. Last night when I was presenting in a Document Freedom Day event, I finally got one. When multiple standards exist in the same area, two options can exist:
  1. Cooperative standards - providing similar functionality in different ways that can coexist in the same medium without a significant overhead. An example of this are the credit cards - they have multiple ways that the card information can be transferred to the bank: visual writing down of the data, imprint, magnetic strip and the chip. Any of these ways can be used and all of the are equally valid;
  2. Conflicting standards - providing the same functionality in incompatible ways. The example here is the power adaptors - the form of the power plug is an open and public standard (AFAIK), but so many of them exist in different places that it creates all sorts of problems both for companies producing electronic equipment and for frequent travellers.
What Microsoft proposes is much worse than the power plug mess, because the power plug standards are at least restricted by region. But imagine going to another country and having to be ready that you hotel could have any one of 8 power plug types at random. And while electricity is rather easy to convert looselesly, complex documents are far more .. complex. It is like having to buy 8 different power bricks for each of your electrical devices to be prepared for all possible voltages, frequencies, waveforms, polarities and whatnot. Having more than one ISO document standard in a horrifying idea for any programmer that will have to ever work on software that will need to support both of them - twice the work for no etra benefit whatsoever. If Microsoft can prove (in technical terms) that their file formats present capabilities that Open Document can not, then the only sane way to implement those in the ISO format is to add those capabilities as an extension of the existing Open Document format and not to reinvent the wheel. Microsoft also has a habit of pointing to JPEG and PNG being “competing”. Well, they are not - those are complimentary standards, because JPEG is designed for compression of photographic details while PNG is designed for the compression of bitmapped vector images. Something like DejaVu could be seen as a superset of the two formats. So, if you ever need an argument against more standards - remember about the power plugs.

21 March 2008

Aigars Mahinovs: Blog-split

Occasionally I post (or could post) things that are not fit for Debian Planet (non-English) or Ubuntu.lv Planet (unrelated to Latvian or Debian/Ubuntu matters), so I finally budged and switch the planet feeds to their own categories so that such things can be managed on a per-post basis. Anyone know a Wordpress plugin that would allow to set multiple default categories?

19 March 2008

Aigars Mahinovs: Flu sucks

If you tried contacting me in the last few days, I was deeply offline due to high fever. Not fully recovered yet. Flu be damned!

9 March 2008

Aigars Mahinovs: Standard software not in standard?

I was consulting a small company with a couple Debian servers the other day and I found that they did not have some packages that I expected to be there. Now thinking about it on every server that I install or take over the first thing I do is install a bunch of packages, such as: sudo, mc, wajig, localepurge and a bunch of others that I can’t remember at the first moment, but that I re-discover each time I find them missing. I assume that other people have discovered other great non-standard tools that I am missing out on. What software do other people consider standard on their servers?

7 March 2008

Aigars Mahinovs: Dealing with common mistranslations

In the Latvian l10n community we often deal with the problem of mistranslation of common words such as “file”, “preferences” and “advanced”. There are several words that fit each of those and over the years preferences in the community have shifted back and forth. I just came up with an idea of making a script that would download all the translations, search for these common words in the source strings and see if any of the common translations and mistranslations are in the translation for that string. Then it could form up a web page with statistics of the mistranslations and possibly even links to specific instances to allow for corrections. It would also find new mistranslations :) How other translation teams handle this problem?

4 March 2008

Aigars Mahinovs: Frankfurt

I have decided to do something special for my 25th birthday this year so I have made plans to visit Frankfurt from 23rd to 25th of March with my girlfriend. Her birthday is just a day before mine. I have read the Wikitravel article and am looking forward to seeing the city. Is there anything special that I should look up? I am interested in trying some German traditional food while I am there, any suggestions on food to try and places to get it from? And finally, are there any Debian developers that would care to meet for a drink and maybe point us to some places only locals know?

24 February 2008

Aigars Mahinovs: EEEPC

A few days ago I got myself an Asus EEEPC to experiment with it being in a role of a small server and a tiny internet kiosk. I installed Debian on it, but the process was not for the feint of heart, that’s for sure. First of all the d-i font was messed up and all the menus overflowed the screen making it very hard to select anything. Additionally it seems very strange to me that there was a special d-i image made for EEEPC, but that image did not include built-in support for the computers wired or wireless network interfaces. That made my day highly problematic as I do not have an easy way to get to the Internet via a wired connection and the provided d-i image did not have enough files on it to finish the base install without networking.
This again made me think that the approach Ubuntu took is more favorable in most situations - have the install image boot a mostly functional system (it does not have to be X even) and then install from there. It actually feels more flexible than using the highly restricted d-i environment.
I will be looking to make a Debian rescue image designed for the EEEPC that you could dd onto a USB key, boot from and have a minimal Debian system with working ethernet, wifi and some basic rescue tools and a way to install a basic Debian system as well. That should make it much easier for people to get Debian onto their EEE PCs. I do hope that the Debian EEEPC project will improve as well.

8 February 2008

Aigars Mahinovs: (Latvian) Velost vvietas R gas centr

(This blog post is in Latvian and is about a public discussion that the capital of Latvia, Riga is having about where to put new bicycle racks in the center of the city. In the post I point to an article describing where to send in suggestions, point out a few possible locations for such racks and suggest installing racks with build-in locks that would require inserting a refundable coin to remove the key locking a bike in place) R gas dome v c ierosin jumus par jaunu velost vvietu novietojumu R gas centr . Es tur nos t ju sekojo us ieteikumus, parosieties ar j s. Vislab k velovietnes b tu izvietot t d viet , kas b tu p rredzama no ce iem, pa kuriem iet daudz cilv ku un ar kur b tu novietotas dro bas nov ro anas kameras, lai minimiz tu z dz bu risku. Viena vietne var tu atrasties Str lnieku laukum vai t tuvum , jo tur ir viegla piek uve no Krasta ielas. Vieta starp RTU ku Ka u 1 un
Krasta ielu var tu b t oti piem rota. Tas ar ierosin s studentus lietot velotransportu pa ce am uz lekcij m Ka u iel . Alberta laukuma var tu atrasties vieta velosip du novieto anai - vieta ir viegli pieejama no Stacijas puses un ir tuvu vair k m viesn c m. Ja ir pl ni izveidot Pay&Ride autom tisko velosip du nomu, tad is var tu b t par vienu no vislab kajiem punktiem dai iecerei. Pils laukums ir viegli sasniedzams no P rdaugavas pa Van u tiltu. Ja tur izveidotu velost vvietu, tad tas iev rojami atvieglotu iesp ju atbraukt ar velosip du pa J rmalas veloceli u p ri Van u tiltam, nogriezties pa labi un uzreiz dro i noparkoties. T pat l dzu apv rt ideju pielietot velovietnes ar ieb v tu atsl gu, lai neb tu nepiecie ams vest l dzi savu sl dzeni. Katrai vietai var tu b t sava sl dzene (bieza un pietieko i gara cietmet la trose) un atsl ga. Atsl gu var tu iz emt no sl dzenes tikai tad, kad sl dzene ir aiztais ta un sl dzenes meh nism ir ielikta 1 Ls mon ta. Atsl dzot sl dzeni ar atsl gu mon ta tiktu atdota atpaka . Tas nodro in s pret vand lismu, kad vienk r i vis m sl dzen m tiktu iz emtas atsl gas un aizmestas prom. Ta u jebkur gad jum j b t vieglam veidam k aizvietot nozaud t s atsl gas gan gad jumos kad velosip da pa nieks to pieprasa (tas var aiz emt vair kas dienas un pras t 5-10 Ls un iesnieguma uzrakst anu) vai ar kad velosip ds ir pamests piesl gt st vokl . Jaunas atsl gas izgatavo anai nevajadz tu pras t vair k k 1 Ls no pils tas bud eta, tad tas 1 Ls sl dzen os izdevumus atmaks s.

6 February 2008

Aigars Mahinovs: Sneaky blacklisting of WiFi in HP laptops?

I’ve been there before, but somehow I hoped that HP has come to its senses, so when my girlfriend got a HP Compaq 6715b laptop with a Broadcom wifi card that does not work with the open source driver and randomly crashes under load with ndiswrapper driver, I said - “well, I’ll just get an Intel mini-PCIe wifi card and plug it in”. I should have know better. While there is no obvious impenetrable error message like on NX6110, the 6715b simply ignores any non-HP wireless cards. They do not show up in lspci and don’t even appear in Vista. I have all the latest drivers and latest BIOS. I will look a bit for a workaround, possibly along the same lines as before (make a non-HP wifi card look like a HP wifi card), but I really must say - despite all the support for Debian HP has on the server side, I will have to recommend everyone I know to never, ever buy any HP laptops! By having an easy access latch to the WiFi slot they seem to embrace user choice, but in the confines of their BIOS they just cut through the heart of it by only allowing their own cards to be installed and used. Note: it is possible that the card itself is non-functional, but given the previous experience and some similar messages on the forums about all kinds of other HP laptops .. I wouldn’t bet on that. I would love to be proven wrong on this or shown a way to either make the non-HP IPW3945 card work or how to make the original Broadcom wifi card work in a stable manner. Currently it causes 4-8 hard lockups a day if the laptop is left acting as a bittorrent seed for a few thousand clients. Now i am just too tired to deal with this reasonably and should rather head for bed.

5 February 2008

Aigars Mahinovs: Super bowl XLII

No Debian content here. Just like last year I decided to watch one of the largest sport events in the USA - the final game of the National Football League Super Bowl XLII (roman numerals are different for the sake of it :P ). I came to like the Japanese take on American football, so I watched the Superbowl last year and was appalled at the lack of any entertainment value in the game. I was told that it was one the worst Super bowls ever, so I gave it another try. Just like last year the American football looks to be very lawyer-friendly: bundles of complex rules and exceptions. The game could have been much simpler. Like for example, a lot of rues come from the fact that the game timer almost never stops. It is good for TV companies as they can plan their broadcast times better, but horrible for the stop-go game like the American football is. Just stopping the timer on every point the ball is stopped like they do in final seconds would cut out a lot of rules. Playclock and all. Rules on use of timeouts and stuff. Of course the game time would need to be adjusted down a bit. Now you have 4×15 minutes of ‘game’ where at most 20 minutes of that is in action. That game time is a lie - most of the time people are just standing around. Terminology irks me quite a lot. Why is it a “1st down” when there have been two “1st down”s just a few minutes ago? Something along the lines of “down counter reset” would be much clearer. And what is cryptic “1st & 10″ doing in the middle of the screen? It would have been much clearer if that info would be split: “Downs: 1/4″ and a measuring arrow between the ball and the yellow line with “10yd” written on it. And then there is an obscured “two in two” or “two for two” or “two in O” phrases which apparently means the same as “two 1st downs out of two tries” in the context. Can’t the commentators be a bit more elaborate and actually say the units of measurement? “Giants strength first tonight”? How about “in the lead”, English anyone? The camera placing editing is just horrible - the camera direction is switching all the time and that is confusing as hell. In normal football when professional camera teams are working, you always get all the shots from one side and even one general angle. If for clarity reasons a camera shot from other side is needed (usually in a replay) they always say that the image is from the reverse side in large letters on the screen. Here a lot of close-up shots were all over the place and even rotated around inside one shot! That might look fancy, but is just crappy camera work and editing. Then commentators start talking walls of numbers and walls of names. Unless you know by hearth who plays at what position, there is no way to understand what those people are saying. Than is just sloppy commentary. Is FOX incompetent in all possible ways? Then again the funky rules came into play just at the end of the first quarter - I have no idea why the ball was moved to the end line. Apparently the defender did or didn’t something. Did not see anything worth penalizing the team like that at all. They dropped the term ‘pass interference’ later on. Isn’t interfering with the pass the whole point of the defense play in this game??? Lawyer game, I’m telling you. And later on, pulling on guys arm while he is catching and being tackled apparently is just fine. And holding is illegal??? On the big penalty on the Giants the judge could have just said that the ball is out of bounds. Giving a 10yd penalty for such a minor thing is just ridiculous. The halftime show was kind of meh. Staged to extreme, but no soul nor sense. And what were all those people doing on the field? Isn’t that bad for the grass? And the commercials .. Average at best. Horrible at worst. For example a government commercial saying parents to protect their prescription medicine to .. help out your neighborhood drug dealer??? Oh and does anyone still doubt that media is controlled by republicans after that Coke commercial where the democrat is portrayed as bald and ugly and the republican is portrayed as the nice guy going for the compromise. And then they both Segway into the sunset? Brainwashing and prejudice embedded in a Coke commercial !?! WTF is going on in USA !? The 12-man-on-the-field penalty in the 3rd quarter is another legalese bullshit in the game. It is clear that the extra player had no effect on the game so it is just ridiculous for the judge to penalize the team for that. A couple small penalties were given for Patriots as well, judge bias was not as prevalent as last year. The camerawork stayed the same through the game - confusing, flashy and sloppy. Other cameras are in the shot line all the time. The game however did compensate for that all. The 4th quarter was very nice and exiting. I had no idea of the teams before the game, but I did like the Giants more - they just seemed to have more will and soul in their game. So I rooted for them since the 2nd quarter and it was very satisfying to see them win the game in the final seconds. Summary: good game, great final quarter, horrible coverage and crappy sideshows (adverts and halftime show).

2 February 2008

Aigars Mahinovs: Using FUSE encfs in a graphical way

If you want to use encfs module from FUSE to encrypt some of your files and do not want to go into the command line to mount and unmount that encrypted folder, here is what you do: Add a line such as this to your /etc/fstab:
encfs#/home/aigarius/.crypt/ /home/aigarius/crypt fuse rw,user,noauto 0 0
Where ‘/home/aigarius/.crypt’ is the folder where you have created an encrypted folder (with “encfs /home/aigarius/.crypt /home/aigarius/crypt” command) and ‘/home/aigarius/crypt’ being the place where you want to mount to see the decrypted files. After you boot into Gnome, you go to Places->Computer, right-click on ‘crypt’ drive icon and select “Mount”. It will prompt you for the passwrd and mount the folder. Unmounting will disconnect it. Enjoy.

31 January 2008

Aigars Mahinovs: Quoted

A person that I deeply respect and who is very know in Latvian IT society recently said that he often uses a quote of mine in his presentations. I completely forgot that I ever said that, but it sounds very much like what I would say, so I wanted to write it down so that I do not forget about it again:
90% of the people do not understand copyright, the other 10% simply ignore it.
Heh, I must have been optimistic. There is no way that so many people actually understand copyright. :) Note: most Debian Developers and FLOSS developers in general are an exception to this rule, but sadly comprise such a small percentage of the population that it means very little from a public policy perspective.

Next.

Previous.