Search Results: "Aigars Mahinovs"

31 January 2008

Aigars Mahinovs: Slow starting USB storage in Linux

I have this USB hard drive enclosure that can also share the files on the local network (LAN DRIVE HD9-U2LA, vendor id - 05e3:0702). Due to that it has an operating system and some other software inside. Unfortunately this software is rather slow to start and that cause the following kernel error when trying to mount this enclosure:

[90459.236000] usb 5-5: new high speed USB device using ehci_hcd and address 9
[90459.368000] usb 5-5: configuration #1 chosen from 1 choice
[90459.368000] scsi4 : SCSI emulation for USB Mass Storage devices
[90459.368000] usb-storage: device found at 9
[90459.368000] usb-storage: waiting for device to settle before scanning
[90464.368000] usb-storage: device scan complete
[90470.148000] usb 5-5: USB disconnect, address 9
[90470.148000] scsi 4:0:0:0: scsi: Device offlined - not ready after error recovery
The device is fine, it is just slow to start. To work around this bug you can change /sys/module/usb_storage/parameters/delay_use from a default 5 second delay to something larger. 60 seconds worked fine in my case.
echo 60 sudo tee /sys/module/usb_storage/parameters/delay_use
Anyone know what a proper solution could be?

28 January 2008

Aigars Mahinovs: Terrorist Airlines

I can’t believe I have not bogged about this before. With all that terrorism threat bullshit, wouldn’t it be nice if there was an airline that would declare itself to be ‘terrorist friendly’ - i.e. all passangers are welcome to come on board with just a simple identity check, no security check, no baggage security check, no delays. You can arrive 10 minutes before departure and just fly away. Wouldn’t that be nice? A budget company could do that to spare on airport security fees and high-end airline could do it just to spare your time. All flights could be marked private charter for legal reasons. Can we please return to a world when I can take a bottle of mineral water and a nail clipper on board with me?

26 January 2008

Aigars Mahinovs: In a quest for perfect sweet buns

Sweet bread
Recipe in the image description. Got up at 7 and made a surprise batch of sweet buns for breakfast at 9. Girlfriend was very impressed. :D

16 January 2008

Miriam Ruiz: Sexism? Hostility?

The story seems to have started with Damog supporting sexism and xenophobia in Debian, followed by Bernhard’s comment about that not being tolerable under Debian’s flag. Aigarius replied kinda shocked that stopping verbal abuses and violence would be censorship. AJ clearly explained the reasons why that shouldn’t be tolerated in Debian, but Aigarius seems to keep thinking that poor jerks are being discriminated when they’re not allowed to insult us. Wouter seems to be tired of the whole topic. Am I missing any chapter? Now my turn: We are on the right way. Since the Debian-Women project started, we have being able to achieve a friendly and non-sexist environment inside Debian, which is something that I’d really like to keep. It doesn’t really mind that a couple of people try to go back to a hostile environment. Trolls just do exist, I guess, but they are not representative of the general feeling of the people inside Debian. Damog, I won’t get the fuck out of here, like it or not. It seems to me that it’s just a couple of you who are happy to be in such an aggressive environment as the one you’re promoting. For what I know, most of Debian people are happy to live in peace. You don’t have social life? You don’t like it? That’s your problem, dude, but don’t ask us to leave ours. I respect you, you know I have always done. I’m just very disappointed with your comment. Really. Making fun of other people’s problems and traumas is simply bullying. I hope you think about it. For the rest of Debian, keep up the good job. Right now my feeling is that the level of sexism, racism, ageism, homophobia, hostility and unfriendliness in general inside Debian development’s world is below the average in the Free Software world. It’s nice to be there, and I’m really proud of belonging here, which is something I cannot say about every group in Free Software. I’d like to keep it that way. Sorry for the aggressiveness in this weblog entry.

Aigars Mahinovs

AJ, if some blogs would support comments, I would leave my opinion there and not add noise to the planet. 1) Censorship does not stop being censorship just because the people doing the censoring don’t have the absolute power to censor the information everywhere and only block the information or opinion from the channels they can control. It can be called otherwise - editorial control, policy of political correctness, libel liability protection policy, Children-Safe Talk Initiative or Women Friendly Environment Collective. But at its heart it is still censorship of all official Debian-related channels of communication as the aim is to remove the objectionable content from all such channels. 2 and 3) Discriminating against jerks is also a discrimination against people or groups. Please do not get all DFSG-bendy on me here. DFSG is about use and distribution license of the software and not about the communication channels used to facilitate this process. I could actually counter you with a quote from the Social Contract that says that we will not hide problems. The discussion as such admits that some people consider sexism to be a problem in Debian (for example). Excluding sexist comments from Debian official channels will not make sexism magically disappear, it will be just hidden, swiped under the rag and said to sit quiet. The only problem is that the community that is tired of such hushing is much larger then anticipated. There are people that think that men and women are different. We checked. I can’t see anything bad in the example quoted on the planet so far. Yes, the depth of the discussion is weak - we can’t be genius all the time, but I really fail to see who is insulted in there. Lesbians? Don’t think so, they are compared to a threesome quite favorably. That is not a technical discussion about interrupt timings, but that’s why it is in offtopic. Doh! Relaxed chit-chat like this is typical in all healthy and tight-knit communities. Is it offensive to women to talk about sex??? Grow up and have a good 3 hour chit-chat with some real women. Women talk about sex even more than men. Especially on-line. Can someone really show what is the “OFFENDING BEHAVIOR” so obscene and dangerous that people want to censor out of Debian and explain what exactly they see as being so horribly bad to Debian that they see total censorship of all Debian communication channels as an acceptable countermeasure?

15 January 2008

Aigars Mahinovs: Freedom of information production and distribution

Bernhard It is possible that you are not alone but nether are defenders of freedom if information production and distribution and in particular of freedom of speech. Trying to restrict what words people can or can not use (by labeling them sexist, racist or obscene) is the bread and butter of modern day media censorship. It is censorship and not “just political correctness”. While I would not want people trying to limit contributions to Debian only to “smart and educated white people” (racism) or “logically thinking males” (sexism), going the other way and excluding people from Debian because their remarks or way of thinking might offend someone is just offensive to me. That is against the spirit of information freedom that free software is built upon. To summarize: no one should have the power to say what you can or can not say. You personally do not have to listen to what people say if you do not like what they are saying - there are technological measures that allow you to filter people out at your end. But denying them the right to speak (or segregating them to non-Debian communication channels) is clear and simple censorship that goes against the very principles of free software.
I do not agree with what you have to say, but I’ll defend to the death your right to say it.
— Voltaire

12 January 2008

Aigars Mahinovs: Having a (pyro)blast with your new Ice Block

Here is something I wrote some while ago, hope this will be useful for some World of Warcraft p(l)ayers. Has no other relation to Linux or Debian, except it works on it flawlessly. Also note that 2.3.2 patch went live last week. It is not a secret anymore that mages of all talent specs will be getting a present when patch 2.3.2 hits the live realms - the Ice Block will be available from any friendly mage trainer for a nominal fee. Currently this spell requires a whopping 21 point investment into the Frost talent tree. With patch 2.3.2 Ice Block will become trainable to all mages, Ice Barrier will take it’s place in the talent tree and a new awesome talent - Icy Veins will take the place of the Ice Barrier, so that even frost mages have a new toy to gain in this 2.3.2 mage winterly fiesta. While there is a significant proportion of mages that are frost for PVP or grinding survival purposes, a large proportion of mage population have never used Ice Block or haven’t used it for a while. For that reason, the rest of this article (after the break) will explore all the great uses of Ice Block, that all of you can look forward when patch 2.3.2 hits the live realms (or sooner, if this article convinces you to re-spec frost :)). So, what does the Ice Block do? When you cast the Ice Block, it purges you from all debuffs and releases you from all snares, you get frozen solid into a large block of ice (same look as hunter’s ice trap) and for 10 seconds you are immune to all damage, but unable to do anything - no moving, casting anything, no bandages, nothing. Getting rid of: Ice Block is a buff, so you can get out of the Ice Block by right-clicking it off at any time. Another way for keyboard-addicted mages is to press Ice Block keybinding button again (after the global cooldown is done). Enemy shamans can purge it off you and priests can mass dispel your Ice Block in PVP. Cooldown: the Ice Block is on 5 minute cooldown, which can be ended early using the Cold Snap talent from the mage frost tree. To prevent mages casting two ice blocks back to back by using the Cold Snap, Blizzard added the Hypothermia debuff (in 2.1) that prevents you from casting the Ice Block 30 seconds after the last cast. The main use of Ice Block is to survive pulling aggro in groups. While we all know that “good mages don’t draw aggro”, experienced players can easily show situations when drawing aggro is not mages fault and surviving that can be the difference between a wipe and a win. When Ice Block is used, your threat is NOT reduced, so you need to stay inside the Ice Block at least until you are under 130% of the tanks threat. After you Ice Block, the mob will run to the next person on the threat list. If your tank is dead, Ice Block will send the mob to another DPS or healer giving you a couple seconds to nuke it when it will be running back to you again. I have seen a few bosses loose their last 2-3% of health running between mages with Ice Block and hunters with Feign Death after a unfortunate death of the main tank. Ice Block is a great way to get rid of almost all debuffs that exist in the game: warlock DoTs, stuns, snares, polymorph, mind control … Even boss debuffs go away in a snap - Garrote from Moroes, Demonic Chains from Illhoof and many more deadly debuffs are no threat to a mage with an Ice Block ready. Ice Block can be used as an alternative to Slow Fall if you’re out of Light Feathers. Just do not cast it too high in the air - if the 10 seconds tick by and you haven’t hit the land yet .. you could as well kiss 10% of your durability goodbye. When solo grinding there is noone to draw aggro from you, so the mobs will continue to beat on your personal icy sculpture, however during that time your Water Elemental or other battle pets could be dishing some damage, your cooldowns will tick down and also you will also regenerate some mana inside the Ice Block. The Ice Block could thus make the difference between your death and Frost Nova+Blink+Blizzard and their death. Have you had some fun experience with Ice Block? Leave a comment so that others could repeat it too!

26 December 2007

Aigars Mahinovs: Annoyed with USA

My girlfriend is annoyed with USA timekeeping. More particularly with the way Sunday is the first day of the week in the Gnome calendar applet that shows up when you click on the time applet. After some searching I am unable to find how to change that short of changing the source code. Help me, lazyweb! Edit: yes it was meant to be Sunday and not Saturday.

Aigars Mahinovs: Bread

Fresh bread I have now gotten into baking bread at home and I like the result greatly. The inspiration came from an anime Yakitate!! Japan! - a very funny anime about bread bakers with lots of parody on other anime and lots of over-the-top reactions to bread. It also has a lot of tips on baking your own bread which helps people get started. I have heard that ‘Yakitate!! Japan’ caused a bread baking mania in Japan on par with the Go mania from ‘Hikaru No Go’ (Off-side note: I wonder if making an anime about developing free software would turn people in Japan and all over the world to do it more?) I watched the anime a couple years back and promptly forgot about it, but now when I was thinking about what anime to show to my girlfriend it came back to me. After that we both decided that we need an oven to bake bread in, unfortunately the flat we are in has no oven, so we had to buy a free-standing one. After much research and deliberation and some good advice from my friends, I got us a Samsung CE1071AR microwave oven with grill and a convection oven function. It has been the best decision - cooking with this thing is easy and painless. It is large enough for one large loaf of bread or a bunch of cookies in two levels. It has a steam-based self-clean function and an automatic preheat function. It can do all the things that a microwave oven can do and also combine regular oven with microwaves. And best of all it also has a 40 degree setting in the convectional oven mode - that is perfect for raising bread right in the oven. I am starting with the simplest bread recipes from The Fresh Loaf site tutorial section and in short order was able to produce some of the best tasting bread I ever had. You can see the result above. Now when my girlfriend and her sister decided to cook all kinds of stuff for Christmas I was not bored, but rather the opposite happened - I participated and had fun. Even more so - we are now watching the ‘Yakitate!! Japan’ anime, together with my girlfriend, looking for new tips for the cooking. I just might try to make a croissant next :D

25 December 2007

Aigars Mahinovs: AI classification of websites

I see that Erich is also trying to do something with AI classification of web pages. It would be interesting to find out what algorithms he is using and what the validation testing results are - I just did my Masters in a similar direction. But alas, his blog has no comments :) The thing i would suggest is trying out the algorithms using some existing tool sets, such as WEKA from the University of Waikato in New Zealand. I used it in my Master’s thesis and got very nice results. I found that with non-topical categories tree based classifiers and support vector machine classifiers (in the SMO variation) produced acceptable results.

Aigars Mahinovs: Christmas cooking

Wierd cookies Last night we celebrated Christmas with some friends by doing a lot of cooking - baking mostly. In the end we had some regular sweetbread dough and some gingerbread dough left over. On a whim I suggested to put them together - we rolled out both doughs very thin (3-4 mm), put them on top of each other (with some vanilla powder in between) then rolled that into a big roll and cut it into 1 cm pieces. After glazing that with beaten egg and cooking for 15 minutes in 200 degrees C oven we got what can be seen in the photo above. The taste is phenomenal - it has the hard and crispy layers of gingerbread and soft layers of the regular sweetbread and sweet all through. In some cookies the innermost core was made of a chunk of soft gingerbread - that tasted the best. I also got myself an oven and have started to bake home-made bread, but that’s for another post :). Merry Christmas and Happy New Year to all!

13 December 2007

Aigars Mahinovs: Vanessa Mae in Riga

On Monday I was at a Vanessa Mae concert in arena “Riga” in Riga, Latvia. The concert was almost an hour late due to flight delay. It would have been fine if the organisers would let us into the hall or at least informed the several thousand people about the delay and its reason and not just have us stand in the rather restricted lounge. around half an hour after the planned start time, we were let to our seats and some ten minutes later an announcement was broadcasted explaining the reason for the delay. Vanessa came out with her own band and a local Latvian string orchestra. I wonder if she played with local orchestras in other locations as well. The orchestra preformed perfectly as far as I could tell, which is not much because they were mixed way down and were barely audible most of the time. I am a big fan of Vanessa Mae - I like classical music, I love her interpretation of that music and I appreciate how she made classical music more acceptable for a modern teen to like. That said, the concert was a mix of joy and disappointment for me. The joy came from hearing the music that I know and like and seeing how it is played in real life. It was a great joy and most of the time I was bobbing in my chair as a very happy boy. However, there were moments when I cringed and unfortunately there was more than a handful of those during the two hour concert. The problems could be put into three categories: 1. Vanessa missing a note or even a handful of them badly. I will be an optimist and blame that on the tuning - just the day before she was playing in Seatle in 80% humidity and then came to Riga and 20% humidity. She had to retune her wooden violin after each song because of that. She apologised for that mid-show. 2. Spotlight and camera missing the action. At times Vanessa steps back and one of her band members goes on a solo, but most of the time the person controlling the spotlight and the person controlling the camera were not ‘in’ the action and just stayed on Vanessa. The worst cases were when a couple seconds into the solo the camera would start to pan over to the band member playing the solo part, spend a couple more seconds framing and focusing and then after another second the spotlight did the same and by that time the solo part was over. Two cameras and two spotlight should be used for such cases with people controlling them having a clear idea of what happens next. One camera should always be on a wider angle shot and one for closeups, so that when a switch is coming, you could switch to wide angle a couple of seconds before the switch, give the closeup camera time to change target, re-frame and re-focus and then switch to it. And for the spotlights, one would always track the main person and the other seeking out the next person of interest. 3. Mixing problems. Vanessa was always way too loud and drowned out the other instruments even when that was not desirable. Background orchestra was too low. In general the mixing was very pop-ish - no dynamic range. The worst cases of this were Bolero and Storm. Storm is my favourite melody and I especially love the slow and quiet beginning of the song, but that was skipped entirely in the concert cutting straight to the loud part. Some other songs were also brutalised that way. I know that true artists generate most of their income through concerts and for that reason I recommend every Vannessa Mae fan to buy the tickets to her concerts, but if you are an audiophile .. don’t go there - stay at home with you trustworthy stereo system and FLAC recording of great sound. The concert is there to support the artist and for the atmosphere not for the best sound, unfortunately.

Aigars Mahinovs: Beamers = BMWs

In reply to: Daniel In Russia it is common to create pronounceable words from abbreviates and use those ‘crippled’ names instead in the spoken language, so “BMW” (the car brand) is not “Bee eM doubleU”, but a much more pronounceable “Beemer” or even “Boomer”. Brought to you by “The more you know” (picture a rainbow). :D

7 December 2007

Aigars Mahinovs: Webmin alternatives

Everyone knows that Webmin is nasty - it does things in wrong way on a pure and nice Debian (and Ubuntu) systems and for some reason is not included in Debian (post-sarge) or Ubuntu. That does not inspire confidence in a root-running web based software to say the least.
I have a need to have a Linux server and give an administrator the ability to add/remove users, configure some LAMP settings, some email settings (SMTP, POP, IMAP, Spam/Virus protection), Samba and those kinds of everyday system administration tasks on a SOHO Linux server without having to know much about Linux. Unfortunately I am very hard pressed to find anything that I could just set up and forget. Does anyone have any good experiences on this?

23 November 2007

Aigars Mahinovs: TurboGears widget errors

I am making a small project with TurboGears and I am just loving the widgets and the identity framework. There are some rough spots, like the documentation, but luckily for the most pars you can just launch an ipython interpreter and use tab completion to look at what functions are available. But then I got this error:
Traceback (most recent call last):
File "./start-foo.py", line 23, in
from foo.controllers import Root
File “…Foo/foo/controllers.py”, line 22, in
action=”save_settings”
File “/var/lib/python-support/python2.5/turbogears/widgets/meta.py”, line 169, in widget_init
validator = generate_schema(self.validator, widgets)
File “/var/lib/python-support/python2.5/turbogears/widgets/meta.py”, line 277, in generate_schema
if widget.is_named:
AttributeError: type object ‘SettingsFields’ has no attribute ‘is_named’

And I could not find any help on this. Luckily I found Lucas manual and by comparing the code I found that in this part of the code:
settings_form = widgets.TableForm(
fields=SettingsFields,
action="save_settings"
)
Instead of passing the whole SettingsFields class, an instance of it needs to be passed ( as in “fields=SettingsFields(),” ). Cann’t wait to see all the goodies they are making now in TG 2.0, but considering my experience, I will wait until they update the documentation for it before diving in.

24 September 2007

Aigars Mahinovs: FON not giving me my own Internet

Unfortunately I will have to disconnect my FONera and buy a real WiFi router to replace it because that small box is a glitchy piece of crap compared to every other WiFi router out there. The killer: if the LaFonera can not connect the FON authentication servers, then it thinks that there is no network available and does not let me use my Internet. There is even no way to force it to pass connections to outside which is required in many cases such as partial network failures (when you can not get to FON servers for some reason, but rest of the Internet works just fine) and for web signup pages that some ISP’s use to login users to their network. And you can not use another PC for that, because it records the MAC address. The box frequently freezes and the DNS server stops responding. I can continue working by editing my local DNS server settings to the DNS of my ISP, but that is no way to work! The damn thing has no idea about uPNP which is a must nowadays for peer-to-peer transactions. And lastly there is absolutely no way for me to fix any of this because the FON keeps a tight lock on the firmware. In the time when all good software and community projects go to the open side, the FON moves further and further to the dark side and that is disturbing. I consider this a permanent failure on FON’s part that negates my ability to hold my side of the Fonera promise. It would be so much easier if I could ssh into the thing - ping stuff, traceroute stuff, put some kind of flag file to say that network in fact is there, release or refresh the DHCP lease or even restart the damn thing remotely. Nothing of this is available.

25 July 2007

Aigars Mahinovs: The cat is in the house!

First photo.

20 July 2007

Aigars Mahinovs: Almost a master

On Wednesday I had a viva for my Master by Research thesis on “Text classification by quality”. After a 15 minute presentation and almost two hours of questions from two of my examiners, I was told that I will receive my Masters degree (after minor corrections to the thesis). It is a great relief and a great reason to celebrate! In order of celebration I will embrace consumerism and get me two things: World of Warcraft: Burning Crusade expansion and a cat. Next week I will be going around animal shelters and cat owners in Riga in a search for a 1-2 months old black, male kitten. It has been my dream to have a cat again since my last cat died of old age 3 years ago. Unfortunately I lived in dormitories where they did not allow pets or in UK. But now, I can finally get one. I am very exited about that :)

10 July 2007

Aigars Mahinovs: Wow 2.1.3 on Wine 0.9.40

If you are playing World of Warcraft on a Debian or Ubuntu system with newest Wine packages from WineHQ, then you might run into a problem - WoW-2.1.2.6803-to-2.1.3.6898-enUS-patch.exe files will crash on Wine 0.9.40 with some nastygrams sent in the direction of its mshtml implementation. Downgrade to 0.9.33 (like the version in feisty) and the patching will work just fine.

5 July 2007

Aigars Mahinovs: Photos, photos, photos

Finally I took my time and uploaded all my good Debconf7 photos to Flickr, 193 photos in total. Most interestingly I have created a much improved version of the group photo.
Debconf 7 Group Photo
Please do note that these photos are under Creative Commons Attribution licence, so please do give credit where it is due. And I also would love if you would send me an email telling where you have used my photos of the event. Links to other photos (and mugshots) can be found via the corresponding wiki page.

Next.

Previous.