Search Results: "ms"

10 December 2007

David Welton: Android Bug: Radio Groups/Buttons

This was informally confirmed by someone at Google: Given this layout code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  id="@+id/ll">
</LinearLayout>
And this Java code:
public void onCreate(Bundle icicle)
 
    super.onCreate(icicle);
    setContentView(R.layout.main);
    LinearLayout ll = (LinearLayout)findViewById(R.id.ll);
    RadioGroup rg = new RadioGroup(this);
    rg.setLayoutParams(new LinearLayout.LayoutParams(
            LinearLayout.LayoutParams.WRAP_CONTENT,
            LinearLayout.LayoutParams.WRAP_CONTENT));
    ll.addView(rg);
    RadioGroup.LayoutParams rlp = new RadioGroup.LayoutParams(
        RadioGroup.LayoutParams.WRAP_CONTENT,
        RadioGroup.LayoutParams.WRAP_CONTENT);
    RadioButton foo = new RadioButton(this);
    foo.setText("foo");
    foo.setLayoutParams(rlp);
    rg.addView(foo);
    RadioButton bar = new RadioButton(this);
    bar.setText("bar");
    bar.setLayoutParams(rlp);
    rg.addView(bar);
    RadioButton baz = new RadioButton(this);
    baz.setText("baz");
    baz.setLayoutParams(rlp);
    rg.addView(baz);
 
The resulting radio buttons fail to be mutually exclusive. This is a bit frustrating, as Hecl doesn't utilize the XML layout system. Or rather, you can use that if you want, or you can create everything in Hecl. All radiobuttons selected The individual at Google says the problem will be fixed in a future SDK release, so hopefully things will work in the near future. I also hope it's open sourced soonish, so that problems like this can be fixed without requiring the intervention of "the hand of Google". Of course, in this market, there's also the issue of things being shipped on hardware, where open source or not doesn't matter much if the bug is out there, because you simply can't fix it on millions of devices. Hopefully the product that ships will be very solid.

Steve Kemp: I'll be the only person in the nursin' home flirting

After mentioning the xml-resume-library package I was reminded that the English translation has been out of date for over a year. With permission from the maintainer I've made a new upload which fixes this, and a couple of other bugs. On a different topic it seems that many Debian-related websites are having their designs tweaked. I'm not redesigning mine, but I'd love other people to have a go. Here's hoping.

Steve Kemp: don't go breaking my heart

If you're interested in working upon your CV/Resume, as Otavio Salvador was recently, then I'd highly recommend the xml-resume-library. It allows you to write your address, previous jobs, and skills as XML then generate PDF, HTML, and plain text format documents via a simple Makefile. It won't help with clueless agencies that mandate the use of Microsoft Word Documents for submission, so they can butcher your submission and "earn" their fee(s), but otherwise it rocks.

Steve Kemp: to let the insects in

My migration to mercurial is now complete. I've completed the last step, which was the migration of all the $foo-commits mailing lists. It is at times like this that I remember two things: Right now I'm using ecartis for my mailing lists, primarily because it isn't mailman. (Long story). For making archives of mbox files I'm using hypermail. The latter I intend to change as soon as I can find something else to use. It isn't attractive, but it is in the Debian archive and seems reliable. Since I was changing things around already I've centralised the list-archive making, and started using the haschanged tool to avoid rebuilding the archives i there are no new posts. That works nicely.

Steve Kemp: We are the champions my friend

My tool to query apache logfiles via SQL seems suprisingly popular. Just as a recap the process goes like this: Now it is possible to save and load the SQLite database, so that you don't need to reparse the apache logs each time, that gives a nice speed increase for non-changing files. By tonight I'll have aliases working for queries so you can bookmark them:
alias refers SELECT distinct(referer) FROM logs
Then in the future the 'refers' command will be available and will run the named query. Neat. Now that I'm comfortable with SQL queries it just seems so natural, easy, and right to query logfiles this way. I guess that makes me strange.

Steve Kemp: You're making me live

Is there an existing system which will allow me to query Apache logfiles via an SQL string? (Without importing into a database first). I've found the perl library SQL::YASL - but that has a couple of omissions which mean it isn't ideal for my task: Still it did allow me to write a simple shell which works nicely for simple cases:
SQL>LOAD /home/skx/hg/engaging/logs/access.log;
SQL>select path,size from requests where size > 10000;
path size 
/css/default.css 13813 
/js/prototype.js 71261 
/js/effects.js 37872 
/js/dragdrop.js 30645 
/js/controls.js 28980 
/js/slider.js 10403 
/view/messages 15447 
/view/messages 15447 
/recent/messages 25378 
It does mandate the use of a "WHERE" clause, but that was easily fixed with "WHERE 1=1". If I could just have support for count I could do near realtime interesting things... Then again maybe I should just log directly and not worry about it. I certainly don't want to create my own SQL engine .. it just seems that Perl doesn't have a suitable library already made which is a bit of a shocker!

Steve Kemp: Open your eyes, look up to the skies and see

If you have a (public) revision controlled ~/bin/, or bash/shell scripts I'd love to see them. Feel free to post links to your repositories as comments. I'm certain there are some great tools and utilities out there with I could be using. Right now the only external thing I'm using is Martin Krafft's pub script. I don't use it often, but it is very neat and handy when I do want it. (Something that I'd never have considered writing myself, which suggests there are many more gems I'm missing!) In other news my migration to mercurial is going extremely well. With only minimal downtime. Downtime for services really comes about because I have several websites which are powered entirely with a CVS checkout of remote repositories, so the process looks a little like this:

Simon Richter: At large

It seems that -- again -- I've managed to catch something nasty on the way back (probably I should only check in my coat if I know that it won't take long until boarding). So, two days later than anticipated, I am officially back and working. I have yet to clear the autobuilder backlog of the last three days (these ARM boxes are blazing fast these days; and a lot of packages failed due to GNOME being uninstallable) and also catch up with the real world (I turn off my phone when I have a migraine attack, keeping a log of calls but this time there's just a batch of unknown numbers with some calls having dropped off the list already -- please send emails instead of calling if it is important, there is a reason why I don't use my phone for business). In other news, this posting needs paragraphs.

Evan Prodromou: 19 Frimaire CCXVI

We've got a CodeFest 2008 coming up in Montreal on 5-6 Jan 2008 in a few weeks. Should be a lot of fun: the main theme is going to be microformats implementation. Our previous codefest, on OpenID, was a big success, so I'm looking forward to this one. tags:

Microsoftmats Best part about the announcement of the CodeFest was this set of tags: codefest, facil, microsoftmats, cms, groupware, mediawiki, tikiwiki, xo, .... Microsoftmats seems to be a typo, and a quick Google search for microsoftmats seems to show only typos, so I don't think this is a common nickname, but... ooh, it could be sooo snarky if used well. Especially given Tantek elik's former job. Too bad I like microformats so much. tags:

Adam Rosi-Kessel: Facebook Privacy Dialogs

James provides an overview of some of the legal privacy problems with Facebook Beacon: first, in law school essay form, then, as a sitcom dialogue complete with laugh track. I recommend the latter, unless you’re in law school or a practicing lawyer. Technorati Tags: , , ,

Ingo Juergensmann: Windows problems with Samba fileservers

Lately our Windows Server 2003 TerminalServer reports frequent errors when logging on. In fact, this only happens with our secretary does her login... Anyway, Windows seems to loose chars of filenames it wants to copy from fileserver (running Debian stable and Samba) to its local storage of user environments.

Die Datei \\ned\user\profiles\.msprofile\Anwendungsdaten\Thunderbird\Profiles\nc6lmfyt.default\ - ImapMail\mail.intranet.wbs-germany.de\mailadmin-1.m konnte nicht nach C:\Dokumente und Einstellungen\user.MOE\Anwendungsdaten\Thunderbird\Profiles\nc6lmfyt.default\ -
ImapMail\mail.intranet.wbs-germany.de\mailadmin-1.m kopiert werden. M gliche Fehlerursachen sind Netzwerkprobleme oder nicht ausreichende Sicherheitsrechte. Wenden Sie sich an den Netzwerkadministrator, wenn das Problem weiterhin besteht.

Details - Das System kann die angegebene Datei nicht finden.


(rough translation: "The file \\ned\...\mailadmin-1.m couldn't be copied to C:\...\mailadmin-1.m. Possible reasons are network problems or no sufficient permissions. Ask your system administrator if the problem persist. Details - the system couldn't find the given file.")

A short search in Microsofts Knowledge Base leads to this article, stating:
Most frequently, this issue affects .lnk, .url or .xml files. During the update of roaming profiles, they are renamed to .tmp while the profile is written back to the home folder on a NetApp Filer share.


Ok, we're not using NetApp Filers but beside that everything is matching our problem. So, if someone knows a solution for Samba fileservers, please comment below! TIA!

UPDATE:
chrismaster wrote in a comment that this behaviour is caused by a Debian bug in Debians Samba package. Thanks!

9 December 2007

Jordi Mallach: Marrakech

With four plane tickets already in our hands, it's official. Clara, Sabri, Joni and I will be flying to Marrakech as 2007 languishes, spending the first hours of 2008 in the city, and then start our way to the South during the following week. We still haven't settled on a planned route, but travelling with these friends is mostly a synonym of adventure and fun. The desert, the snow, the villages, the mosques, the souks, the spices, the hammams... I can't wait!

Clint Adams: bts show

Freshly stolen from Europe:
b()  
  setopt localoptions extendedglob
  if [[ $# -eq 1 ]]; then
    case "$1" in
      ([0-9]##)
	links "http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=$1"
	;;
      (*@*)
        links "http://bugs.debian.org/cgi-bin/pkgreport.cgi?submitter=$1"
        ;;
      (*)
        links "http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=$ 1%%_* "
        ;;
    esac
  else
    print "$0 needs one argument"
  fi
 

Christian Perrier: Adventures in Mumbai

Some adventures on my way back from FOSS.in at Bangalore. I was planned to fly back through Mumbai, with a quick connection (05:30-07:00). However, the Paris flight got delayed "because of technical problems" and we finally took off at 11:00. However, while flying the deserts of Eastern Iran (so after 2 hours flight), some very bad vibrations were happening and, apparently, one engine of the 747 was shut down by the crew. Then we gently turn 180 degrees and were told that....we were going back to Mumbai..:-( So here am I, currently in Mumbai airport, in the VIP lounge (I didn't want to go to a random hotel with pay-per-use wireless), coping with my mail et keeping in touch with $HOME through an awfully jerky connection. FOSS.in was huge fun but it seems that coming back from it will not be fun at all. Well, that's how air transportation is, right?

Evan Prodromou: 18 Frimaire CCXVI

Chris Messina wrote an interesting post on his blog about his OpenID Shitlist, Hitlist and Wishlist for 2008. (I'm going to briefly try to remember if using the word "shit" is cause for alarm on Planet Debian, and then I'm going to ignore the problem and move on.) I think it's a good post and it really identifies some of the key players that are helping and failing in the OpenID space. I got a shout-out for Wikitravel and for the MediaWiki OpenID extension, which yay for me. I think Chris was probably a little unfair about Wikimedia's lack of support. The site is moving very slowly towards a unified login for all its wikis, which is a really difficult task to make happen. OpenID is slated for installation some time after that, so it's going to be a while. But I hope that it will be useful for Wikipedians. My main impression from this blog post, however, is that OpenID's day in the sun might be over. That's not a bad thing -- usually the hard work gets done after the cameras are turned off. Zealots like myself tend to think that if only the world knew about our latest-greatest idea or technology, they'd fall right into line and adopt it immediately. But my experience has been that things work a lot slower than that, and I'd guess that OpenID is probably going to have a similar adoption curve. In thinking about opening up the Social Web, it's probably good to compare the opening of the Web Web in the mid-1990s. At the time, most Americans who were "online" were subscribed to a proprietary network like AOL, Compuserve, Delphi or MSN. (I'm not sure how things were in the rest of the world... Similar? Worse?) Many of these services either walled their users from the Internet entirely, or made it a one-way interaction. AOLers could read stuff from the rest of the Web, for example, but others couldn't see what AOL folks were doing. That system looked impenetrable; after all, AOL was paying millions of dollars to make great content and manage forums and the like, and why would they give that away to Internet leeches for free? But eventually it came apart because the Web became more interesting than the on-line services. (I personally think the watershed was the Ate my balls meme, but others might differ. I just kind of picture hundreds of thousands of AOLers calling up technical support asking to see the Mr. T pictures, and that's what finally broke things down.) Today, on-line service "walled gardens" are a negligible part of the on-line world -- those that still exist are more or less big ISPs. I think that the parallel with the Social Web is probably pretty apt. Today, Google, Facebook and Digg are reluctant to open up their identity silos to a distributed social Web. Their main asset today is their collection of identities and the relationships between them -- why give away the crown jewels? My guess is that it's not going to be until a mature, standardized and distributed Social Web exists outside the walls of the big social-networking players that we'll see them really willing to sit down at the table and come to the party. Of course, by that time, it'll be a moot point. But that just means there's a nice big fat market for somebody smart to take advantage of. tags:

Jeff Licquia: Rest In Peace, CompUSA

I’m very surprised about the popularity of an old post of mine, regarding my experiences with CompUSA. It continues to collect horror story comments, the last one coming less than three weeks ago. While any company has its detractors (especially any company dealing directly with the public), it seems odd to me that people continue to be motivated enough to post to my blog, of all places, their tales of woe. For me, life has been very CompUSA-less of late. Indianapolis now has a Fry’s, one of only two east of the Mississippi as of this writing, and for someone in the relatively tech-starved Midwest, it is a godsend. (People from the west coast: please stifle your laughter as best you can.) And evidently enough of these horror stories have been passed around that they felt the need to close over half their stores in February. The Indy store was spared that time, but not for long.
The electronics retailer decided to finish what it had started earlier this year, announcing that it would sell or close the remainder of its stores in the US after the holiday season. The company, controlled by Mexican retail management company Grupo Sanborns since 1999, has been sold to Gordon Brothers Group, a restructuring firm that will be responsible for selling off the remainder of its assets.
In an abstract sense, less competition in the electronic retail business isn’t ever good. But it’s arguable that we’ve never had so much competition in the electronic retail business if you count the Internet stores that have sprung up all over. And I’m certainly happy to see an outfit that will slander people for profit go belly-up.

8 December 2007

Adeodato Sim : mlocate, a better locate

Looking purely by chance at the front package of Freshmeat the other day, I discovered mlocate, a new implementation of locate whose main feature is that it reuses the existing updatedb database when creating a new one, which makes updatedb faster and less intensive on the hard drive. (I suppose it stores an mtime of each directory, and only re-reads directory contents if the filesystem is newer.) As with slocate, mlocate’s updatedb is meant to be run as root, and the created database is mode 0640 root:mlocate, with the locate binary being setgid mlocate then. After some discussion in debian-devel, it was decided that mlocate was suitable for Priority: standard, once findutils’ locate was split out to a separate pakcage. So, give it a go.

Joerg Jaspert: Again removals

Seems my work in Extremadury during the QA meeting was worth it. Just added some new output to the removals page generation, which now also shows the date the last upload was done, together with the content of the Maintainer-field from that upload. And it was (very unexpected) an easy thing to add this, once I had the right SQL query. I like ruby.

7 December 2007

Martin Michlmayr: GCC 4.3 related build problems: duplicate function parameters

GCC 4.3 now prints an error message when C++ code contains duplicate function parameter names in function prototypes. You'd think that's a pretty obvious problem, but we still have about 15 packages in the archive that contain such code. Anyway, for code like this:
class foo  
    foo(int w, int w);
 ;
GCC will as of 4.3 show the following error message:
t.cc:2: error: multiple parameters named 'w'

Gunnar Wolf: Debian Developers fail Turing tests?

Ok, so two people replied to yesterday's post about triple negations - Dato (by email) and MadCoder. Both, said basically the same thing: false and && true are silly noops. And yes, knowing this, I added them. Why? Clarity... At least having them at the end of a test shows the statement is of conditional nature (and not just another obscure attempt to do $ DEITY -knows-what). They at least look cleaner than a one-line-squashed if block in a makefile. To me, at least ;-)But... If you noticed this post's title, it goes beyond this comment - One of the most benefical effects I noticed when I installed Jaws 0.7 (over 0.6, of course) is that I no longer had the swarms of spambots flooding me - I often had hundreds of comments a day, and nowadays I hardly get any spam. Now, I fail to see what is so strange in my blog's comment forms (it does not even have any obvious Javascript, although it does obfuscate a bit the source of the captcha image). And you are not the first Debian people to complain you cannot post comments to my site. Strangely, few non-Debian people have ever complained.And yes, the spam has stopped, almost completely.So, Debian guys: Are you human?

Next.

Previous.