Search Results: "bab"

11 May 2007

Michal Čihař: Service numbers in python-gammu

python-gammu now supports service numbers dialogue. How it is useful for you depends on services your network provides. For example with Vodafone in Czech republic, you can use it to configure various services:
$ ./service-numbers.py 
This example shows interaction with network using service codes
Enter code (empty string to end): *111#
Talking to network...
Network reply:
Status: ActionNeeded
Vitejte v Kapesni Samoobsluze!
1 Muj ucet
2 Me sluzby
3 Nastaveni telefonu
4 Info a zabava
5 Oblibene
Enter code (empty string to end): 1
Talking to network...
Network reply:
Status: ActionNeeded
Muj ucet
1 Vyuct. a platby
2 Vydaje pod kontrolou
3 Osobni udaje
4 PIN a PUK kod
------
0 Zpet
00 Uvod
Enter code (empty string to end):
Python code which can be used for this is available as example. It will be probably one time integrated to Wammu, but it needs a bit more time than hacking this simple script :-).

Andrew Pollock: [life] It's a girl^Wboy!

My parents got back from a whirlwind trip to Canada this afternoon, and we thought that since their visit here was scheduled before we knew Sarah was pregnant, we thought one small way they could participate was to come along to an ultrasound screening that determined the baby's gender. So we lashed out on one of those gimmicky 3D/4D ultrasounds, and didn't tell Mum and Dad what was going on until we got there, so as to make it a bit of a surprise for them. I think Dad thought we were going to see a baseball game, because when Mum asked what to wear, I told her it didn't matter, and that it was a spectator activity. I called it as a boy before the sonographer made a call. She initially thought it was a girl, but revised it to be a boy as the scan progressed. I'll update this post with some of the images later.

10 May 2007

Simon Richter: gcc 4.3

Martin writes about semicolons after functions being an error now. This makes life difficult if you want your code to also compile on Visual Studio 2005 (probably 2003 as well, haven't tested) and you use "function-try-block"s in C++, because there is a compiler bug that makes it actually require semicolons after some functions.

9 May 2007

MJ Ray: May Frozen Mint Madness: Reader Recipes

I asked: does anyone want to recommend good recipes that don't mind the ugliness of frozen mint? Holger wrote:

"Jamie Oliver recipe: SALMON WRAPPED IN PARMA HAM WITH LENTILS looks probably doesn't matter as it wilts a bit anyway and volumewise most is made up by the spinach. Also: With green tea the looks doesn't matter that much if you brew it in an opaque tea pot."
alephnull wrote:
"Another way of freezing the mint is to put it into ice cubes. Just pack them into an ice tray and top them up with water. They don't wilt as much and look better too."
Thanks, both! I'll try them later.

8 May 2007

Steve Kemp: If you despise that throwaway feeling

After far far too long in the making I'm ready with a demo of my new site. The demo is mostly complete, and 90% of the code is hooked up. There are some bits missing, and some gaps in functionality. I'm working on this about 45-90 minutes a day at the moment, and that isn't likely to increase any time soon. Probably not everybodies cup of tea, but after running Livejournal Valentine matching sites for a few years I've had the ambition of running an online dating site. And this is a nice small niche with only weak compitition... Anyway I hope a few people sign up and play around whilst things are developed more.

Holger Levsen: all numbers can be 0wned

By clicking on this link you possible violate the DMCA again, it contains yet another 0wned number. But it also has instructions how to make up your own 128 bit number, which noone else can legally use anymore - in countries where the DMCA is valid or can be enforced. So, better don't click ;-) Or much rather, better do.

If I were bored, I would probably play with the vanity gpg key generator, to generate a very special gpg key, but I'm not bored :) Also it's not quite so much fun, to start a script and wait.

Evan Prodromou: 17 Flor al CCXV

Had a great day yesterday. It was 20C outside in Montreal, so Maj and I had a bunch of friends over for "Sunday brunch" (at 3PM). I call it "bruncher", as a twist on diner and souper, lunch and dinner in Quebecois French, respectively. Our friends Patti and Meg, Anne-Marie and Jeff, Tobias and Cato, Heather and Damien, John Usher, Niko, and Maj's sister Lori were all there. I fired up my grill and made shrimp skewers, tuna burgers and salmon burgers (courtesy of the president), and tofu sausages, as well as corn on the cob. I prepped up a big green salad and a pasta salad, plus cheese and bread and chips and fresh guacamole. Topped off with a lot of vinho verde and the tasty EXP from Toasted Head, and we had a pretty nice meal. Oh, and John brought a pineapple, and we had berries and ice cream and watermelon for dessert. Nice. tags:

Montessori This morning Maj and I went to visit a potential pre-school and day-care centre for Amita June. It's the Outremont Montessori school, which was pretty nice inside and had a friendly staff. My three brothers and I were all taught using the Montessori method, and my mother is a Montessori instructor, so I'm probably a little picky about Montessori schools. But the Outremont one is bilingual, and they have all the Montessori method equipment, and a real commitment to it. The main thing I'm concerned about is that the teachers aren't AMI trained, as far as I can tell. They do a two-month workshop in the method, whereas AMI-trained teachers have one- or two-year degrees. I think we're going to check out the program and enroll Amita June for the day care (which is less intensive than the pre-school) and see how we feel about it. That is, if we get in: they've got a full school right now, but they might be able to put us on the waiting list. tags:

Plattsburgh International I'm pretty excited about the incipient opening of Plattsburgh International Airport, which calls itself "Montreal's U.S. Airport" (really!). Plattsburgh lies right across the New York (state) border, about 100km from Montreal and about a one to two hour drive depending on border crossing times. The clear market is for Montrealers seeking discount flights to (other) destinations in the USA. I think that's going to require significantly cheaper flights than are available at Trudeau Airport. Fortunately, that might not be that hard -- Trudeau is really lacking in cheap fares. But will the new airport's fares be cheap enough to justify driving an hour and crossing a land border? I'd be surprised. (via montreal city weblog, which is awesome.) ddf says: Sure, it's a bit of drive. But consider the fact that border customs is way less of a pain than airport customs. I think if you are traveling with a lot of bag and don't want to risk some extensive search before being able to board in Montreal, it might be worth the drive. tags:

7 May 2007

Axel Beckert: Goodbye Woody, Welcome Etch

It finally happened. I installed Debian Etch on my last Woody box, a 400 MHz Pentium II with 576 MB RAM named gsa which is my home desktop since I bought it at LinuxTag 2003 in Karlsruhe. And no I didn’t do a dist-upgrade, neither direct no via Sarge. As already planned I removed some no more necessary operating systems from that box and installed Etch on the freed disk space. Woody is still installed on that box in parallel and was recognized perfectly by Etch’s installer. I took a few hours but also was big fun to go through Etch package list and to decide what to install. Overall the installation of 5 GB of software took about half a day. In general everything went fine, the only thing I’m yet missing is sound. Etch didn’t seem to recognize my soundcard at all although it’s a well-known brand and defacto standard for many other soundcards: a Creative Labs Soundblaster. Well, the 16-Bit ISA version, needing the full length of the slot. Worked fine under Woody. Well, I hope I’ll get it working again manually. What on the other hand is really nice with udev hell —eh— hal and all those new automatic bells and whistles: The desktop (well, at least GNOME Nautilus as well as XFCE, but probably also KDE) recognises when I insert a 3.5” floppy into the drive and shows me a nice floppy icon on the desktop. You think, that’s impossible? Floppy drives don’t inform the rest of the system when a floppy has been inserted without you polling the drive every few seconds? Well, USB floppy drives can. And they do. :-) I still need time to migrate all the old settings from Woody to Etch. I’ll probably stick with FVWM, but perhaps will use the GNOME enabled version. What’s already done is the migration from tcsh to zsh. On all new or dist-upgraded systems after Etch I’ve chosen zsh so with my last Woody installation retiring I’ve also fully migrated to zsh. So I’ve got now most of my active private boxes running Etch. Only the noone.org web and mail server “sym” (an amd64 box) as well as my 133 MHz ThinkPad “bijou” are still running Sarge, both with 2.6 kernels. So with switching to Etch on gsa, I also got no more Debian box running a 2.4 kernel. The only 2.4 kernel I run is on my FreeWRT WLAN router named pluriel, which runs 2.4.33.3. But I expect that 2.6.18 will be as stable and long lasting as the famous and rock-solid 2.4.18 from Woody. 18 seems to be Debian’s favourite kernel minor version recently. ;-)

Michal Čihař: Website improvements, videos from Gammu talk

I just spent some time on improving my website. Well I'm not graphic designer, so the site won't ever be according to latest trends and won't look sexy. Anyway I tried to improve visibility of some things a bit. The main page now includes small screenshots of some programs I want to point out, small screenshots on application page are clickable and there is more visible download link on some pages as users complained they have problems finding this. While working with stylesheets, I also added maximal width of main content. This probably does not work with all browsers, but I don't care, the text is still visible. Other thing I updated is information about last year talk about Gammu, which now contains links to videos. I haven't seen them yet, but they might contain interesting information for Czech speaking people :-).

Michal Čihař: Versioning scheme troubles

Current Gammu versioning scheme confuses people a lot. For some time 1.x.0 versions are stable and 1.x.y are testing. However when somebody sees 1.10.5, he things this is updated version of Gammu 1.10.0. So it's probably time to move to something more obvious starting from next development cycle. To stay as much compatible as possible with current scheme, I thing about minor change - so start testing releases on something like 1.11.90. I thing this is also quite often used (I've seen such versions in PyGTK in past) and nobody will confuse it with patch releases. Or should I switch to something completely different? I currently do not consider 1.11.0-rc1 as I'd like to keep version only numeric.

Christian Perrier: There are mornings...

...like this one today, where you feel like just waking up is a bad idea. Reading about the so-called "triumph" of Sarkozy (53.06%), seeing the right-wing and capitalist newspapers "celebrate" it makes me sick and sad. Hearing about the french socialist "elephants" (Strauss-Kahn and the Laurent "just naming him makes me sick" Fabius) trying to place themselves in position to lead the French left makes me even more sick. The worst is probably hearing Sarkozy claim that he will "renovate" the French politics. He is president of the UMP party since 2004, UMP being the party of the former president (Chirac), the former two prime ministers and having the absolute majority in the parliament. He is Nr. 2 of the french government since two years. So, in short, he and his party had all opportunities to "renovate" since they are in power. Since 2002, UMP has the largest majority one has ever seen since 1968 in France. And of course, nothing was "renovated" in French politics and way of government since then. France just slowly turned towards hard-core liberalism and the power of money and stock exchange market. So, noone will make me believe one single second that anything will change. The opportunity to change things was clearly in the hands of Mrs Royal, not in the dirty hands of Sarkozy. This is why I'm sad today.....hopefully, I'll be able to share this with my friends in Free Software. I just hope that the french ones are prepared for very hard days.

6 May 2007

Christian Perrier: 29 minutes left...

...before I have to survive with a right-wing president for 5 more years. So, after 8 years of De Gaulle, 5 years of Pompidou, 7 years of Giscard (20 years right), 14 years of Mitterrand, 12 years of Chirac, I will very probably have to wait for 5 more years to get a president who's closer to my own political views. May I say CRAP?

Alastair McKinstry: The God Delusion, by Richard Dawkins

The God Delusion by Richard Dawkins is an 'Atheism Consciousness-raising book', according to the author. It makes the case for Atheism, saying Atheists should stand up and be counted, and stand against the growing tide (in the U.S. in particular) of irrationality and belief. Although as one of Atheisms most visible proponents Dawkins has 'make converts' to the cause, in this book he is mostly speaking to the converted, presenting the evidence. The book documents the main arguments in favour of God. These are dismissed fairly abruptly; while a lot of pages are taken up going into them, they are probably not a comprehensive list. A book by a theologian or believer would probably be a better source for such a list. Nevertheless, Dawkins as a scientist does consider and list the opposing arguments. As presented however, they are extremely threadbare and easily dismissed. Mostly they are backed up by a willingness for people to take God (and Theology!) seriously: since so many people believe in God, it must be taken seriously, or so the reasoning goes. Not so: the proofs of Gods existence don't stand up and should be dismissed. Dawkins makes the case that we should instead of investigating God, investigate why people believe in God, given the lack of evidence. He gives some good hypotheses in terms of Darwinian thinking: reasons why faith, accepting what your parents said without evidence, has survival benefits, that in other circumstances lead people to believe nonsense stories with faith. Another under-estimated problem is the different definitions people have for 'God' and 'religion'. Most people from a Christian / Judaic background have a habit of framing belief and Religion in terms of the religion they grew up in. They may accept that you have a different God(s), but still view God(s) as something you pray to, that intercede on your behalf, etc. By confusing all the different aspects given to 'God' in the Christian tradition, they think that if you have 'proved' one of them, all the rest follow. If you prove / claim that something created the Universe, and label that God, then, they imply, there must be one overall, kind, monotheistic God, Jesus died on the Cross for your sins, that God will change the laws of physics to suit you (miracles), etc. Not so: all you have done is label something, not proved your religion. Dawkins (rightly) dismisses Buddhism, etc. as 'principles for living' rather than religions for the purposes of this book, and we need to be careful what we call religion, too. Dawkins also makes a good case against Agnosticism. He argues we should be more forthright and say we are Strongly Atheistic rather than Agnostic. Agnosticism was created by Thomas Huxley to explain his beliefs. He defined Athiesm is a positive belief in the lack of God, a proposition for which there is no evidence. He argued that, until we have proof that God does not exist, scientifically correct to consider ourselves 'sceptics' on this matter, and neither believe nor disbelieve in God. This sounds good, however in Science there are huge numbers of theories that in practice we have no evidence for either way that Occams razor mows down for us. We don't claim to be agnostic about them, we simply ignore them until they are actually needed to explain something. Which, given modern science and Darwins explanation of evolution in particular, God no longer is. The later chapters of the book cover whether, despite the lack of evidence, belief in God or Religion is a good thing, whether religion gives a moral purpose and direction to life, and defines a sense of "Good" that Atheists cannot have. For this he goes through the Bible with a disbelieving eye, pointing to the horrors of genocide that it promotes in the Old Testament, etc. He points out that we don't actually use the bible for moral guidance, but instead decide our own morality: we pick examples from the Bible a la carte to defend our choices. We don't decide, as an Old Testament interpretation would put it, that murder of an non-Jew is acceptable; that rape of an enemy is acceptable, that killing non-believers and witches necessary. Instead we pick examples to back up what we've decided already. If you're going to do that, stop pretending the Bible is giving you moral guidance and instead accept that we decide. Dawkins underestimates the social and ethnic aspects of religion. He is overly critical of religion, blaming it for much of the worlds violence, genocides, etc. It would be truer to say that Northern Ireland, etc. are examples of ethic rather than religious strife. "God says so" is just the ultimate argument. But conversely religion is a cohesive element in most societies. I suspect that a cause of the growth of christianity in the U.S. is that its proselytising nature goes out to be inclusive in Americas highly mobile society. When work, etc. causes people and families to move across the continent, they will find a church to welcome them into the community. Its against this background that atheists are the most distrusted minority. Shared beliefs, whatever those beliefs, bring neighbours closer. James Lovelock, (co-creator with Lynn Margulis of the Gaia Hypothesis) proposes that atheists can treat Gaia as an alternative religion, something to celebrate and to give moral direction to life. This I have sympathy with, that life is important, and to be celebrated, but not to be confused with something to be prayed to, or imagine that it is biased towards towards our existence. In these times when people are again using religion as a justification for war, claiming a "clash of civilisations", this is a book worth reading, but beyond deciding whether gods exist we need to understand why people believe. The Darwinian arguments are as Richard Dawkins points out, just a start, but I think more is needed to explain religion. Tags , ,

John Goerzen: Radar

Wichita Radar, May 6, 2007

Many of you probably know what this means. That was what I saw early this morning when the weather woke me up. I went downstairs and checked the weather on the Internet. And sure enough, a line of thunderstorms was slowly moving across pretty much all of Kansas.

This morning, when we woke up, our driveway looked like this:

Our driveway after some rain

It was a calm, still, pleasant scene. Birds were chatting, rabbits were hopping, and there were soft rumbles of thunder in the distance. This must be why Terah says she likes thunderstorms.

On the other hand, thunderstorms make me nervous. Given the right conditions, severe thunderstorms can spawn tornadoes with little warning.

Friday night, most of Greensburg, KS was destroyed. So far, 9 people have been confirmed dead. Estimates are that 90% of the town's structures are lost. You can see the damage in aerial and land pictures. I know that Greensburg will rebuild, better than before. Tornadoes don't seem to ever scare people off. They seem to just make them more determined than ever to stay where they are because it's home.

Antti-Juhani Kaijanaho: Serendipity breaks an important Internet standard and is proud of it

Originally posted on 2006-04-16. Clarification 2006-04-19: The misfeature discussed below applies to feeds only, as far as I know, not to regular HTML serving. Update 2007-05-06: I have just learned that the option in question is Activate strict RFC2616 RSS-Feed compliance. I have no idea when it was added. While investigating (wearing my hat as the Planet Haskell editor/technician) John Goerzen’s Planet floods, I stumbled on a very strange misfeature in Serendipity. A HTTP/1.1 client can ask a server to send a file over only if the file has been modified since some date. What Serendipity does is send only those entries dated after the provided timestamp. Now, this might seem like a triviality, but it isn’t. The HTTP/1.1 feature is there to make proxy caching work. It is very important for caching that the file sent is the same, regardless whether the request is “since this timestamp”, or a regular request. Serendipity’s behaviour breaks this very important caching invariant! What’s more is that Serendipity’s developers seem rather proud of this misfeature. While the feature this misuse of HTTP/1.1 is intended to create is certainly useful, it should be implemented as a separate mechanism, and not by misusing HTTP/1.1 caching! (A separate protocol is probably necessary, perhaps specifying a URI query syntax for this is enough; obviously, one needs to get the aggregators to support this.) Serendipity will apparently have a configuration option to fix this, but it will be off by default. Serendipity users, upgrade (as soon as it is possible) and mark that option On, to remain compatible with the rest of the Internet.

5 May 2007

Erich Schubert: OpenSolaris negative publicity

It's scary how much negative publicity a single user can cause for a whole project...90% of the time when I read about OpenSolaris, it's by a highly aggressive troll, also known as the "author" of cdrecord (the term "current upstream maintainer" is probably more appropriate).And it's always the same blah-blah, how much superior Solaris is to Linux.But what is much worse is the way he posts and hist persistence. (I'd link some postings, but they're all in german at Heise). At Heise News, whenever there is a posting related to Linux (e.g. because of Berlin considering a Linux migration, or a posting about ZFS), he reiterates that you shouldn't be using Linux but OpenSolaris. And then flames anybody who again mentions Linux or GNU. Because as we all know, GNU tar is bad, and POSIX tar is the only god...One reason to avoid OpenSolaris is just to keep a distance from him. I'm sure that there are some good things in OpenSolaris, too. And that there are some smart people working on it. But you have to understand: I'd be more willing to setup a FreeBSD, NetBSD or OSX system (or even a windows system) than maybe having to deal with him when I run into some problem where I might need assistance. When doing FL/OSS development, I want a nice community around me, and the part I see of the OpenSolaris community is not very well-behaved.You might want to read this blog posting on Linux and Solaris scalability by DaveM for some comments on similar Solaris FUD. Seems like J.S. isn't the only aggressive advocate who prefers to flame instead of trying to impress with technical issues, professionalism and personality.

3 May 2007

Romain Francoise: Xen security (or lack thereof)

Interesting paper by Tavis Ormandy (of Gentoo/Google fame) about the security of various virtualization products; one of the conclusions is that Xen is secure as long as hardware virtualization is not used: Xen's HVM mode uses a QEMU-based emulator to provide emulated devices, and is thus probably vulnerable to QEMU's many security flaws... To make matters worse, this emulator (xen-ioemu) runs in dom0 with ring0 privileges.

I don't use Xen's HVM mode even on hardware that supports it but if I did, I'd be migrating my domains away from it right now. And since QEMU is used in quite a few similar products (KVM, anyone?), this is probably just the start of a long series of headaches.

Stefano Zacchiroli: i had a dream

I'm Going to Play Some Number at the Lotto The Lotto Game is a really popular gambling game in Italy, run by the state itself. As in all good gambling game: you, the player, can win a lot of money while who is running the game (the Italian state in our case) will win a lot of money for sure, no matter what. Anyhow, to the facts, it's a well-known folklore that people win playing Lotto FOR SURE by playing numbers told while dreaming by parents, friends, kitties, whatever, ... As a scientist, I've no reason not to trust this folklore, why should I? As a strange coincidence (another fact that strongly hints I HAVE TO PLAY), this night I had a dream (well, it was more this morning while reading the planet, but it doesn't really matter..., folklore is folklore!). There were a lot, really a lot of people whispering this to my ears:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

well, ok, they aren't in decimal notation, and they aren't even comprised between 1 and 90, ... but what would you expect from a bunch of geeks??? They are probably trying to exploit some overflow in the hands of the lotto extractor or something like that... But I won't desist, I'll play those number! Open questions: any proficient Lotto player to answer them around?

Adrian von Bidder: About A Number

Now sue me.

Chris Lamb: Final report complete!

Just submitted my third-year project. Was probably the longest document I will ever write:
$ wc -w  find ~/local/bzr/3yp/docs/report -name "*.tex"    tail -n1
19234 total
$
(If new readers are picking up the story late, in the final year of the Warwick Computer Science course, students are required to undertake a reasonably sized project. I chose to write a Java compiler in Python.) Actually writing the report was a bit more painful than I thought, dispite having collected and organised most of the data, references and interesting topics well in advance. I’ve nearly overcome some sort of writers-block-cum-nervousness issue though, which is good. I got a few interesting results: My backend system had a peephole optimiser to run on all code regardless of the input language and it seems like Sun’s javac seems to miss out on many really trivial optimisations, probably because the JIT takes care of any performance blackspots. Regardless, I plan to have a go at adding this into OpenJDK after my exams just as an excuse to hack on the Real Java. (I also did some register allocation, also beating javac, althought I didn’t really investigate way) I’ll have to wait for while due to University regulations anyway, but I’m not sure if the project code is really fit for public consumption yet, but I plan to rip out the silly Lisp implementation (and most of the Java one) leaving a rather fast and “enterprise-ready” Brainf*** compiler. :)

Next.

Previous.