Search Results: "mak"

14 May 2007

MJ Ray: Planet Debian Editorial Policy (Reader Comments)

Kevin Mark commented:
"Hear hear! I was waiting to read about the Eurovision results! But I'm sure AJ and Martin want a let's take the fun out of Debian planet debian tech and I'm sure someone can make them a custom feed for the cost of a reasonable bounty!
Nice to know I'm not alone. (Why mention AJ?) Joachim Breitner wrote:
"I once tried to start a German planet Debian because the official only allows English postings. Maybe it would be nice to have some kind of tagging standard that works across aggregators. This way, we could allow any kind of posts on p.d.o, and allow various sets to chose from, based on tags. I, for example, would choose (german OR english), others might chose (english AND tech), or ((french OR english) AND debian). Some (NOT politics). And some just (jokes) :-)"
Why didn't German planet debian work? I think there's a sort-of standard in dc:subject and xml:lang, but we'd need to agree a tag dictionary. And I think planetplanet generates files, so we'd need some cached or database solution. Update: Joachim Breitner replied:
"To be correct, I tried setting up an international planet debian on gluck with no language restrictions, but interest was rather low and planet (the software) is not really maintenance-free, so I stopped after a while. A German planet was tried by someone around Christmas, I think, but AFAIR he lost interest while trying to make it look pretty. I guess I should follow up on that. :-) (PS: Can you make the comment form store the information in a cookie? Would save some typing.)"
Sorry, these pages are static html at the moment. You could try using Saved Forms in Iceweasel/Firefox, which may be configured at Edit: Preferences: Privacy: Saved Forms or similar.

Isaac Clerencia: 1st WARPtivity: Ordesa

Past weekend Warp had its first WARPtivity (which, as you may suspect, stands for WARP activity, you know, team building and that stuff). We (including all partners and almost all workers) spent a night and a day in the breathtaking Ordesa valley. I’m quite biased as I love the valley since I was a child and have enjoyed lots of weeks there, but it’s indeed one of the most beautiful places I’ve ever seen. Unfortunately our regional government (PSOE and PAR, kick them out on the 27th May election) are spoiling most of the Pyrenees, I hope there is something left for the next generations. We arrived at Torla (a little village near Ordesa) on Friday evening, had a great dinner and some drinks and played table football. Next morning we woke up quite early and hiked through a nice forest path to the Horse Tail waterfall. After having lunch by the waterfall some of us decided to return by the Faja de Pelay, a higher path above the forest, with awesome sights. As it was still early May, there was some snow remaining in the path, making it a bit dangerous, as there is a 300 hundred meter cliff. Luckily enough we managed to survive and blog it :)

Matthew Palmer: A Lesson In Critical Reading

Yes, Microsoft have started swinging their patent bat a little harder. However, before everyone gets all screamy about the "235 patents" thing, read a little closer:
the Linux kernel [...] violates 42 Microsoft patents. The Linux graphical user interfaces - essentially, the way design elements like menus and toolbars are set up - run afoul of another 65, he claims. The Open Office suite of programs, which is analogous to Microsoft Office, infringes 45 more. E-mail programs infringe 15, while other assorted FOSS programs allegedly transgress 68.
While I can forgive a journalist the sin of not knowing the difference between Linux-the-kernel and Linux-the-entire-FOSS-ecosystem, can people who should have a clue about this please stop perpetuating the inaccuracy? Yes, 42 patents is still pretty bad, but it's not 235, and getting facts straight is what we do on this side of the debate -- the frothing and bullshit is what the other guys do. Once you start looking at the various categories of patent, it really does make it obvious that there's some straw-grasping going on here. If GUI elements really infringe on 65 Microsoft patents, it seems reasonable to assume that KDE and Gnome have a subset each, so presumably nobody gets the full brunt of that lot. Also, those 68 "assorted FOSS programs" patents probably includes such widely-used classics as this pearler of a program (chosen at random from Freshmeat for it's likely small userbase; no other ridicule is intended or implied). What galls me, though, isn't the bandying around of random inaccurate numbers, it's classy things like this:
[some Microsoft sock-puppet] refuses to identify specific patents or explain how they're being infringed, lest FOSS advocates start filing challenges to them.
Yeah, we'd hate it if the patent system were at all used in the manner in which it were intended. I don't suppose anyone else is getting SCO-style "we've got 100,000 lines of infringing code, but we're not going to tell you which ones" flashback at this point? Personally, I think that if Microsoft ever does starts with a patent smackdown, it won't be 235 patents, it'll be two or three, the strongest ones they can find, and 90 minutes after the plaintiff(s) is/are served the infringing code will be history, and we'll go back to living our lives as normal. That's even assuming that the patents are legit, which is by no means a given (even with the US' insanely broad patent provisions). As the linked article explains, the US Supreme Court has started getting a bit noisy on the subject of over-broad and pointless software patents, so perhaps Microsoft is just getting it's licks in before the Supremes take it's noisy rattle away from it. There's some side-commentary on this issue at Groklaw, and the Patent Law blog has a quick mention of it too (with all sorts of nice frothy comments, to boot).

Uwe Hermann: Playing audio on the NSLU2

3D Sound USB Audio Device I'm a happy NSLU2 user since a few months now, and I'm using it for all kinds of things, e.g. as a 24/7 remote ssh server at home (using DynDNS and the ddclient Debian package), as IRC logger (screen + irssi), etc. etc. I was considering multiple options as to where/how to install the slug (USB thumb drive, Compact Flash, disk drive, ...) but I settled with a full Debian install on an 1 GB USB thumb drive for now. I implemented some measures to maximize the life time of the USB thumb drive, maybe I'll post some info on that later... One new thing I've been trying lately is to use the slug as an audio player. As it doesn't come with an integrated sound card, you have to use an external USB audio device. I've got mine (see photo) from eBay for ca. 5 Euro (+ shipping) and it works out of the box with Linux 2.6.18 using the snd_usb_audio kernel module. You simply attach it via USB (the module is automatically loaded) and then attach external speakers to it. Here's an lsusb of the device:
Bus 001 Device 011: ID 1130:f211 Tenx Technology, Inc.
One problem with playing audio on the slug is the slow CPU. At 266 MHz (and without FPU!) playing audio with "normal" audio players such as mplayer or mpg321 is not possible. But there are several ways to make the slug play your favorite music. Here's a list of players I tested and a status report of whether they work at all. If yes, I listed a rough percentage of CPU load resulting from playing the music.
  • Ogg vorbis:
    • mplayer, aplay, playsound, and ogg123 don't work.
    • $ apt-get install libvorbisidec-dev
      $ cd /usr/share/doc/libvorbisidec-dev/examples
      $ make
      $ cat foo.ogg   ./ivorbisfile_example   aplay -f cd
      
      Result: 40% CPU load
  • MOD, XM, S3M, IT, etc.:
    • $ mikmod foo.mod: 10% CPU load (even with compressed MOD files)
  • WAV:
  • FLAC:
  • SPEEX:
    • $ speexdec foo.spx: doesn't work, 100% CPU load. Any known alternatives?
  • AU:
    • $ cat foo.au > /dev/dsp: 3% CPU load (but sounds crappy)
    • $ cat foo.au > /dev/audio: 3% CPU load (sounds better)
    • $ mplayer foo.au: 5% CPU load
    • $ aplay foo.au: 5% CPU load
    • $ playsound foo.au: 5% CPU load
  • AIFF:
    • $ sox foo.aiff -t wav - aplay: 50% CPU load (a bit stupid, but it works)
  • Streaming MP3:
    • $ mplayer http://www.example.com/foo.mp3: doesn't work, 100% CPU load.
    • $ wget http://www.example.com/foo.mp3 -O - madplay - : 17% CPU load
  • Streaming Ogg Vorbis:
    • $ cd /usr/share/doc/libvorbisidec-dev/examples
      $ wget http://www.example.com/foo.ogg -O - ./ivorbisfile_example aplay -f cd
      : 40% CPU load
  • The SlugAsAudioPlayer page in the NSLU2-Linux wiki might have further information on this topic. Feel free to add comments if you know of other audio types which can be played on an NSLU2.

    13 May 2007

    Benjamin Mako Hill: Section Headings

    I think that this sign in the Housing Works Used Book Cafe is an example of how fixing "/ Crime" to any subject heading in a bookstore can have humorous results (apologies for the blurry phone picture).
    Pop Culture / Crime section heading in Housing Work

    Michal Čihař: Gammu stable version 1.11.0

    I just released new version of Gammu, you can download it from download server. Changes to latest testing version are relatively small: Stay tuned, release evening will continue ;-).

    Russell Coker: mobile phone etiquette

    Paul Dwerryhouse blogs about mobile phone etiquette.
    1. Taking excessive calls at a restaurant is annoying, but keep them short and it’s no big deal.

    2. Strange ring tones are OK as long as people answer their phone. It’s when they decide that they don’t want to answer a call that the entire Avril Lavigne song annoys people. In regard to this issue wearing headphones in public with the volume turned up high enough that everyone else can hear is a much worse problem - which will incidentally deafen the person using the headphones in the long-term as well as annoying everyone else in the short-term.

    3. I used to work with Paul and we had a colleague who repeatedly chose not to answer his mobile phone because he didn’t want to talk to a particular recruiting agent but refused to say so. Eventually the agent tried calling the office and got to me, I told him “if someone never answers their mobile phone when you call it means that they don’t like you, take a hint and stop calling”. There were fewer unanswered calls after that.

    4. I have to agree with that, having a phone call in the cinema (or even worse the theatre) is just wrong. If you are on the list for organ transplant (the only time you really MUST have your phone on all the time) then turn the phone to vibrate mode.

    5. When on the train the range of things that I can do is limited. Rather than waste time I make calls that I don’t have time to make on other occasions. The only exception is when I was in Japan, in respect of their cultural standards I turned my phone off most times when on the train.

    6. Walking and talking? Unless you are crossing a busy street then why not? People who inappropriately use mobile phones while performing dangerous activities will tend to be weeded out by Darwin. They usually don’t give Darwin Awards for mundane things such as not seeing an oncoming truck while talking on a mobile phone.

    7. In regard to the issue of whether you have to answer a phone, some people believe that it’s an issue of courtesy to the person who is calling to answer the phone if reasonably possible.

    8. Whether “call me back” is adequate depends on who is calling. I generally find that when someone leaves such a message they have been correct in their assessment of the value of their call to me. The people who leave such messages are generally the people who’s call I will return on the basis of such a message. Leaving a long voicemail message adds to the profits of the telco used to making the call as well as the telco that maintains the voice-mail box. My 3 voicemail service charges me to receive the messages and I prefer them to be kept short.

    9. Anyone who thinks that having a fancy phone, car, computer, etc will make them a better person or impress anyone has bigger problems than the choice of a phone. Also if the $600 a year that you might spend on regularly updating your mobile phone makes a significant difference to your savings then you will probably never be able to afford a house either.

    10. Bluetooth headsets do make you look like an idiot, but they do have some benefits. When doing tech-support it is a real benefit to be able to use both hands for typing. The only reason I don’t have one is that I don’t do tech support enough to justify the expense of buying one or the inconvenience of carrying it everywhere. Note that when you define “tech support” in the most broad sense (which includes helping all your relatives with their computer problems) most computer people do quite a lot of it even if it’s not their job.

    Ross Burton: Sound Juicer "Nikki's Growing A Patch Out In The Backyard" 2.19.0

    Sound Juicer "Nikki's Growing A Patch Out In The Backyard" 2.19.0 is out. Tarballs are available on burtonini.com, or from the GNOME FTP servers. This is the first release in the 2.19.x development series, after I failed to do anything useful in 2.17.x...

    Brett Parker: New bpgallery available, and xmms-scrobbler work...

    I've taken over upstream development of xmms-scrobbler, it's now hosted at http://xmms-scrobbler.sommitrealweird.co.uk/ and has a public readonly git repository for the code. Since taking over development I've dropped a lot of the tag parsing code and replaced it with taglib, found some "interesting" locking issues and am now looking at making it so that we don't need to restart it when adding username/password. It'd also be good to get it to actually report a username/password breakage at least once rather than being totally silent about it! In other news, I've just released a new version of bpgallery, this version adds in medium sized pages - i.e. you can have the index page, the index page links to pages that have a resized image on the page, and has next/previous links. If you also generate full sized pages then the link from the image on the medium sized page goes to the full sized page, otherwise it'll go straight to the origional image. Also thinking about making a last.fm "client" for xmms so that I can keep all my music playing in the one place (lastfmproxy appears to have stopped working for me :/)

    Russell Coker: Tom s Hardware falls victim to a trojan

    E-Week has an article about the popular computer hardware review site Tom’s Hardware (tomshardware.com) being hit by a trojan in a banner advert. From the article it’s not clear whether a criminal paid for a banner advert under a legitimate business name or compromised the advertising server run by an innocent third-party who paid for advertising on Tom’s Hardware. But really it doesn’t matter very much for users. The facts that are clear are that Tom’s Hardware is a very reputable site (that I personally visit regularly and recommend highly) that apparently did nothing wrong. Yet Windows users who visited the site who hadn’t applied the latest patches had their systems compromised (and presumably used for other criminal activity). Apparently a month ago there was a patch released for the bug in question. One thing that has to be noted is that large corporations often don’t apply patches immediately. Spending a month testing a patch before deploying it widely is not uncommon in an enterprise environment. The general thinking in an enterprise is that the employees are almost always prohibited from visiting porn sites, and often prohibited from using forums, and webmail services. With these things prohibited the risk of attack is dramatically reduced. Now there is evidence that even the most reputable sites run by the competent sys-admins can be vulnerable to such attack. One possible method of alleviating such attacks would be to have sites that are supported by advertising also allow ad-free subscriptions. So if an enterprise wanted to use a site such as Tom’s Hardware without the risk of advert based attack then they could pay for an advert free subscription. I’m sure that it would be easy for an enterprise to pay Tom’s hardware more money than they would ever be likely to get from providing advertising to the employees of that company while still not having any impact on the IT training budget. But the best solution is that a Windows machine that is used for main desktop work should not be used for web browsing (to any sites). A Linux or Mac OS/X desktop machine could be used for such web browsing with less risk due to having less security holes in the OS. Another option is to use VMWare, Xen, or another virtualisation technology to use a virtual machine for web browsing to make it a lot harder for an attacker to break out and compromise the main environment.

    12 May 2007

    MJ Ray: Planet Debian Editorial Policy

    Apparently, it is fine by him if others flood planet debian with repeats because they screwed an upgrade, post questionable career advice or misleading documentation links, make fun of unrelated computer companies, or discuss the weather or traffic, but I posted about Eurovision and Martin Zobel-Helas unlinked my entries and sent me a rude email. Isn't planet debian a planet of debian developers, not just a planet of debian development? Even if you only write about debian, please don't force that on everyone else. I like reading about the other stuff developers do - even the loony political views that I don't agree with... Didn't someone put up a Planet Debian Tech a while ago? Maybe that's what Martin Zobel-Helas should read. Whatever happened to it?

    Enrico Zini: tg-i18n-quirks

    Turbogears i18n quirks Collecting strings from .kid files tg-admin i18n collect won't collect strings from your .kid files: you need the toolbox web interface for that. Indentation problems in .kid files The toolbox web interface chokes on intentation errors on your .kid files. To see the name of the .kid file that causes the error, look at the tg-admin toolbox output in the terminal for lines like Working on app/Foo/templates/bar.kid. What happens is that the .kid files are converted to python files, and if there are indentation glitches they end up in the python files, and python will complain. Once you see from the tg-admin toolbox standard error what is the .kid file with the problem, edit it and try to make sure that all closing tags are at the exact indentation level as their coresponding opening tags. Even a single space would matter. Bad i18n bug in TurboKid versions earlier than 1.0.1 faide on #turbogears also says:
    It is of outmost importance that you use TurboKid 1.0.1 because it is the first version that corrects a BIG bug regarding i18n filters ... The version below had a bug where the filters kept being added at each page load in such a way that after a few hundreds of pages you could have page loading times as long as 5 minutes!
    If one has a previous version of TurboKid, one (and only one) of these is needed: So, in short, all i18n users should upgrade to TurboGears 1.0.2.2 or patch TurboKid using http://trac.turbogears.org/ticket/1301.

    Luk Claes: binNMU

    Apparantly not everyone knows binNMUs. Sometimes bugs are filed when binNMUs can solve the problem. Some people even wonder about breaking NMUs without any notice. A binNMU:
    * no source changes * sheduled on the build daemons by someone with wanna-build access * for versions of packages which already exist in the archive * can be requested on debian-release@lists.debian.org, no bugs should be filed So a binNMU is used often for library transitions with ABI changes but without API changes (libFOO-dev has not been renamed, but libFOObar has been renamed to libFOObaz) or to fix an upload of a package that was not built in a clean environment. Note that it is a good idea to contact the maintainers of packages that reverse depend on your library before starting a library transition in any case so people know why their packages don't build/install anymore and maybe can even coordinate uploads they were going to make anyway. Informing the Release Team about library transitions of more than a couple of packages would also be appreciated....

    Enrico Zini: tg-more-singleselectfield-quirks

    Turbogears quirks when testing controllers that use SingleSelectField Suppose you have a User that can be a member of a Company. In SQLObject you model it somehow like this:
        class Company(SQLObject):
            name = UnicodeCol(length=16, alternateID=True, alternateMethodName="by_name")
            display_name = UnicodeCol(length=255)
        class User(InheritableSQLObject):
            company = ForeignKey("Company", notNull=False, cascade='null')
    
    Then you want to make a form that allows to choose what is the company of a user:
    def companies():
        return [ [ -1, 'None' ] ] + [ [c.id, c.display_name] for c in Company.select() ]
    class NewUserFields(WidgetsList):
        """Fields for editing general settings"""
        user_name = TextField(label="User name")
        companyID = SingleSelectField(label="Company", options=companies)
    
    Ok. Now you want to run tests:
    1. nosetests imports the controller to see if there's any initialisation code.
    2. The NewUserFields class is created.
    3. The SingleSelectField is created.
    4. The SingleSelectField constructor tries to guess the validator and peeks at the first option.
    5. This calls companies.
    6. companies accesses the database.
    7. The testing database has not yet been created because nosetests imported the module before giving the test code a chance to setup the test database.
    8. Bang.
    The solution is to add an explicit validator to disable this guessing code that is a source of so many troubles:
    class NewUserFields(WidgetsList):
        """Fields for editing general settings"""
        user_name = TextField(label="User name")
        companyID = SingleSelectField(label="Company", options=companies, validator=v.Int(not_empty=True))
    

    Russell Coker: career risks

    Paul Graham makes some interesting observations about taking risks to achieve career benefits. One thing he doesn’t mention is that the risks have to match your life situation. If you are 21, living with your parents, and single (typical for a CS graduate) then you should take the riskiest options in terms of your career (apart from working in Iraq of course). If you don’t have much money then you don’t have much to lose. If you live with your parents then you still have accommodation and food even if you have no money. If you have no dependents (SO or children) then there’s nothing compelling you to earn a certain income. When you get older you may get a mortgage, a SO, and/or children. Also you won’t live with your parents forever. Most career risks that you might want to take aren’t possible if you leave them too late. Finally if you do something risky such as starting your own company and it doesn’t work out then it’s still going to look good on your CV. If you already have a lot of experience in the industry then the CV improvement may not be worth the time and effort invested in an unsuccessful company. When I was 22 I (along with two business partners) started an Internet cafe. It went reasonably well (by the standards of small businesses), it lasted for a few years before cheap net access at home killed most of the business. At the time the cafe had to close the ISP side of the business was doing reasonably well and one of my partners bought the operating ISP business. This buy-out caused me to approximately break even out of the entire business which is a lot better than most small businesses do. When I was 26 I moved to London (I have dual nationality, UK and Australian). The experience I had gained from running my own business allowed me to immediately get contract work for large ISPs in Europe. Most of the risks in my career were ones that I took while living with my parents. At the time I didn’t think through the issues of mortgages etc, my thinking was mostly along the lines of “it could work, I’m bored, so why not?”. ;) Update: While in the process of writing this blog post I forwarded the URL of a dating service for scientists (sciconnect.com) to some friends. The main page has pictures of single people wearing lab coats and using laptops which I found amusing. I have no idea whether it’s a good service or not, but the pictures on the main page made it worth a look. It seems that I accidentally pasted the wrong URL into my blog post so people who were looking for the Paul Graham article ended up at the dating service instead. But I guess if you are the type of person who reads my blog and who is interested in a link to Paul Graham’s blog and you happen to be single then a dating service for scientists might be of some interest. Thanks to MJ Ray for pointing out my error.

    Cord Beermann: Browsercrash sucks - loosing work even more.

    Do you know this?

    you write a brilliant entry for a blog, a blog-comment or something in a textarea-field in your browser.

    after finished, you press the Send-Button, and ... the browser crashes, or nothing happens because Javacript or Cookies were disabled in your browser.

    the result is, the brilliant text you just wrote by investing time has gone to bit-heaven.

    Has anyone a solution for this, beside writing in a text-editor, pasting it over to the textarea, fighting against linebreaks and things?

    I once tried Editus Externus a Firefox extension, but that one produces a lot of problems in the fight iso-8859-x vs. utf8, and the linewrap problem is also there.

    So how can i make sure that the things i type in a textarea aren't lost, when my cookie expires, Javascript sucks or my Browser dies?

    11 May 2007

    Steve Kemp: Will you lead me to your armchair

    Assume I'm using mutt for my mailclient and that I have all my mail stored beneath ~/Maildir. Is there a simple way of limiting an index to only those folders containing New messages? I know that I can use the index_format to display something like "N" next to folders containing new messages - but I cannot seem to limit the display to just those ones. (At any given time I'll have something like 30+ mailboxes with unread messages, if not more.) My current mutt looks something like this, which shows that I have 24 folders with unread messages - but it doesnt make it easy to tell which they are:
    ..
    269       4096 May 11 22:49   ~/Maildir/.spam/
    270       4096 May 11 23:36   ~/Maildir/.spam.bayes/
    271       4096 May 11 22:49 N ~/Maildir/.spam.image/
    272       4096 May 11 22:49   ~/Maildir/.spam.pyzor/
    273       4096 May 11 22:49   ~/Maildir/.spam.razor/
    274       4096 May 11 22:49   ~/Maildir/.spam.request/
    275       4096 May 11 23:27   ~/Maildir/.spam.unsure/
    276       4096 May 11 22:54   ~/Maildir/.steve_org_uk/
    277       4096 May 11 22:49   ~/Maildir/.syswear_com/
    ..
    -- Mutt: Mailboxes [24]
    

    David Welton: JavaFX

    I'm not convinced. It looks to me like they're aiming at something a bit more dynamic/higher level than Java, in more or less the space that Javascript, Ruby and Python operate in. The declarative GUI stuff looks pretty good, but I don't know if the rest will make that worth it. The language itself seems neither here nor there. It's a lot like Javascript - but not quite. It doesn't have real hash tables, something I don't care for in JS, and I didn't see an eval() method in the documentation, which means that their aim is to make something that you compile, and that doesn't carry around an interpreter with it like most dynamic languages with eval have to. I wonder what kind of support it will get from Sun and the open source community? Will the internal Java group view this as some sort of competitor? I wonder what sort of discussions went on during the creation of this system at Sun. They can't have take the decision to make a new, incompatible language very lightly. A new language has to have a killer app to drive acceptance, and I don't quite see one for this. The FAQ sheds some light on where they'd like to go:
    Why did you create another scripting language? JavaFX Script is specifically designed to optimize the creative process of building rich and compelling UIs leveraging Java Swing, Java 2D and Java 3D for developers and content authors. Why isn't Groovy enough? Groovy and other languages have two specific traits which don't precisely meet these needs, namely that they are generic in nature and don't provide the appropriate abstractions necessary to optimize the UI design process and similarly are designed specifically for programmers other than content authors.
    So it does look like they're aiming for a language that makes it easy to quickly create GUI's for people who perhaps aren't expert enough (or patient enough) to deal with Java itself. Pity they didn't just stick with Tcl and Tk, which have had a more or less declarative syntax for specifying layout for something like 10 years, and in any case have a flexible enough syntax to "run DSL circles" around most languages that are currently popular. As the author of Hecl, I'm particularly curious about their mobile strategy. If I may be permitted a bit of hubris, it's nice that they see things my way, that mobile apps need a good scripting language in order to make them more accessible to the masses, but it wasn't too hard to see that coming, with the ever increasing capabilities of higher end phones, and the "scaling down" that scripting languages bring to programming (making it easier for people to get started even if they aren't experts). I wonder what sort of diffusion they'll get with their phone system, and how fast, and how easy it will actually be to program the phones. For many people it's probably not as important, but by creating a real interpreter, rather than something that's compiled and doesn't have an eval function, Hecl lets you download and execute code, which makes for some very interesting possibilities (as well as some risks, of course). That's probably not important though, if they can actually make a system that's widely used, and easier to create applications for than J2ME currently is. I wonder if they'll allow J2ME on the phone platform, or close that down in favor of JavaFX? Even for Big Companies, launching a new language is a difficult endeavour[1], and it will be a number of years before we see where this ends up, but I'm not convinced. [1] The Economics of Programming Languages

    Martin Michlmayr: GCC 4.3 related build problems: pedantic preprocessor warnings in C++

    GCC 4.3 changed pedantic preprocessor warnings in C++ code into errors, in line with the C++ front-end. Because of this change, preprocessor warnings are now errors. This leads to a number of errors that are in my opinion too strict and I've started a discussion about this problem on the GCC mailing list. I hope this change will be reverted, or that some of these errors are downgraded to warnings again, but users of current gcc-snapshot package might encounter these errors. I haven't filed bugs about these issues since I'm waiting for a census from GCC developers. Nevertheless, it makes sense to fix these problems if they are present in one's package. This change has caused at least the three following errors which are all fairly common. error: "xxx" redefined It's not allowed to #define something twice, as in this example:
    #define TEST "foo"
    #define TEST "bar"
    
    This code will lead to the following error:
    test2.cc:2:1: error: "TEST" redefined
    test2.cc:1:1: error: this is the location of the previous definition
    
    Most typically, this occurs because something is defined in a header that is included and then redefined in the current source file. It can also happen when a #define is put in the code but also on the command line, e.g. via -DTEST="bar". This will lead to:
    test2.cc:1:1: error: "TEST" redefined
    <command line>:1:1: error: this is the location of the previous definition
    
    The correct solution is to avoid redefinitions directly or to use #ifndef to make sure that something has not been defined already. extra tokens at end of #endif directive While an #ifdef obviously needs a second parameter, it's not allowed to give one to #else and #endif. Unfortunately, this is commonly done as a reminder for what is being tested for:
    #ifdef TEST
    #endif TEST
    
    This code will lead to the following error:
    test3.cc:2:8: error: extra tokens at end of #endif directive
    
    missing newline The last line of a source file has to end with a newline. If this is not the case, the following error is now shown:
    test4.cc:1:19: error: no newline at end of file
    

    MJ Ray: the Cooperative Group: SW Regional AGM

    I went to the Co-operative Group's South-west region Annual General Meeting in Taunton last Saturday (5 May) and I'll be writing this up over the next few days. It's taken me that long to find time to reread my notes. I'll try to blog the two bits that I think are interesting to other regions today, because more AGMs are happening tomorrow.
    [pic of agm panel]
    "The AGM is one of only two [formal decision-making] meetings open to members each year, when they can recieve information on the performance of their Society, and hold their elected representatives to account. Afternoon sessions will again be less formal, and include topics such as food retail, ethics, our banking and insurance businesses, and healthy eating."
    (from A Cambridge Co-operator). There are other meetings for members during the year, of course, but they tend to be consultations and workshops and so on. The meeting was opened by the Woodcraft Folk, who I didn't know much about, but they seem to be like an outdoorsy co-operative youth club. Then there were introductions by the chair, a presentation by Catherine Staveley from group head office about ethics, environment and community, the annual reports and then a motion:
    "This meeting is disappointed that we fail to declare our distinctive, mutual, consumer ownership and ethical values in our trading outlets. In our large outlets, wall space is left vacant and little attempt is made to promote what we stand for. We undersell ourselves as an alternative form of business enterprise which has principles. Therefore, we request the Regional Board to pursue the prominent display of messages to proclaim our ownership structure and promote the causes fundamental to our unique consumer appeal."
    After many speakers in support and one against, the regional board came out in support and the motion was passed overwhelmingly. Finally, there were the questions and the report of the Party. More on that soon.

    Next.

    Previous.