Search Results: "zack"

22 May 2007

Bernd Zeimetz: playing german lotto

playing german lotto update: sorry for the broken feed, I hope I ve kicked this piece of php hard enough so it works as it s supposed to work. Tomorrow I ll replace it by something maintainable, written in python. Stefano, I have no clue how the lottery in Italy works, but I ll play the numbers generated by this little program on Wednesday and Saturday:
#!/usr/bin/python
 
numbers = ["09", "F9", "11", "02", "9D", "74", "E3", "5B",
           "D8", "41", "56", "C5", "63", "56", "88", "C0"]
 
#in germany all lotto numbers x must be 1 <= x <= 49
numbers_int = [ (int(num, 16) % 49) + 1 for num in numbers ]
 
#unfortunately 16 numbers are not enough for 3 fields in
#the german lottery, so let's add the current year
#(of course, you can add 2 other numbers, if you don't like this year)
numbers_int += [20, 07]
 
print "your numbers for the german lotto:"
print numbers_int[0:6], numbers_int[6:12], numbers_int[12:18]

21 May 2007

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?

Stefano Zacchiroli: on the power of grillo

On the Power of a Blog (and of the Vatican) That the Vatican in Italy is a relevant institution able to (directly or indirectly) influence the media is not a big news, actually is not even a news. So it does not come as a surprise that the BBC documentary "Sex Crimes and Vatican" about the so called Crimen Sollicitationis (dated 29 September 2006) has never been mentioned on popular italian newspapers and televisions ... until a couple of days ago. So far so "good". What annoys me quite a bit is that the day after Beppe Grillo posted something on the subject on his blog (which according to the author is in the top ten of most read blog on the net, even though I've never checked the validity of such claim) the news is first on Repubblica, one of the most read italian newspaper, and then topic of a national debate for its possible presentation on an italian tv show, held by Michele Santoro. Come on, of course journalists do not need a blog to get their news. Someone please make me think something else than that seeing a post on a popular blog removes the shyness of journalists about "disclosing" such a news to Italians...

3 May 2007

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?

17 April 2007

Stefano Zacchiroli: ocaml 3.10.0 beta in experimental

OCaml 3.10.0 Beta in Experimental As per title. It isn't actually fully functional: Julien for example just noticed that ocamlc -version returns "3.10.0+beta" while the libdir is (correctly) /usr/lib/ocaml/3.10.0/, this means that practically all packages using the ocaml CDBS class can't be built properly against it. Still you can give it a try (if you love risk) and perhaps document yourselves on the new API of camlp4, which changed completely. For us it will be useful to see the result of experimental autobuilding ... I'm quite scared about that!

Stefano Zacchiroli: phd over

Successful Mission, Captain Kirk In 1998, as an undergrad, I encountered what I remember to be my first real university challenge: write a MIPS kernel which had to run on the appropriate emulator. An acceptably decent running kernel should have made the emulator output in the end the Star Trek quote in the title. Now, a lot time after (wow, 10 years, has it been that long?), it's over. Yesterday I defended my PhD thesis. I feel a bit emptied now ...

13 April 2007

Daniel Burrows: coq's -ness-nesses

In response to Stefano's reply to my post about Coq:

toy-ness

Usually such pieces of software are more seen as academic toys, seeing it promoted as a geeky software is a joy to me.


I really hate to detract from your happiness -- but I definitely had the word "math" implicitly stuck before "geek toy". :) Most coders that I've met are, at best, indifferent to mathematics, outright hostile at worst, so I doubt that coq will get far outside of small niches where the benefits are irresistable (security software, maybe? -- and of course pure math). I read up on this stuff despite it being utterly useless for anything I'm likely to be paid to do (unless I return to academia) because I'm a hopeless weenie loser who likes math. :P

programming-language-ness

Coq is not really a programming language (even if the CoqArt book says so, to attract the developer community), it is mainly a proof assistant; i.e. a software in which you give definitions, state theorems and prove them.


Well, this all depends on how you define programming language, which is one of those never-ending definitional questions. But using my general conception of what a programming language is, I actually have noticed two programming languages inside Coq.


  1. The more interesting one (IMO) is the proof language they call "Gallina" and the "Vernacular", in which you construct proofs by reducing your goal to a tautology. The goal here seems to be to compute a well-typed term in Coq's core calculus, and you generally construct programs interactively: Coq shows you the current program state (expressed as one or more goals and a set of local hypotheses) and you manipulate it by (e.g.) applying lemmas to yield new known facts.

    I think this language is fairly weak viewed as a programming language. It's completely unreadable and the proofs generated don't correspond to the reasoning process one normally follows when working out a proof. I am less annoyed by it now that I've learned how to do forward reasoning :), but it seems like backwards reasoning is really pushed, and that just seems .. well .. backwards to me. There's also a strong tendency to use implicitly generated names for things and to just "know" what the state of the system after issuing a command will be; as far as I can tell, the only way to understand a Coq proof is to step through it in coqide.

    While it's nice to be able to "trust the kernel", it would also be nice to be able to "read a proof" directly. Among other things, their inscrutability makes me think that Coq proofs would be annoying to maintain over time. This is not necessary for stuff that's part of Principia Mathematica, but seems likely if you're developing a new theory -- in particular, I would shudder (theatrically) at the mere thought of including embedded Coq proofs in my programs.

    Some additional brief comments on this were written by Nick Benton and put on the Web under the title of Machine Obstructed Proof.

  2. The other sense is that Coq directly embeds a strongly normalizing variant of System F (I think? -- at least the simply typed LC with some type parametricity) with primitive recursion over inductive structures. This isn't Turing-complete (of course!), but I would certainly call it a real programming language.

    As you note, though, this is less interesting unless you want to prove facts about your programs.


OCaml-ness

Regarding the synergy of Coq with OCaml: yes, you can prove in Coq the correctness of OCaml program, but actually not more than you can do with programs written in other programming languages


I was specifically thinking about Concoqtion; I have no idea how other projects compare, and I apologize if I incorrectly summarized it!

11 April 2007

Stefano Zacchiroli: post etch frenzy

Post-Etch Frenzy: Ocamlnet 2.2.7 in Unstable Ok ok, ..., I admit it, I'm yet another victim of the post-release frenzy: right now I'm uploading to unstable the long overdue packages of Ocamlnet, 2.2.x series. Since the former upload to experimental there were 3 micro releases (now we are at 2.2.7), which also added support for the apache connector for CGIs (which unfortunately doesn't yet build cleanly with Debian's apache2 :-/ I'll have a look at it in the near future). In the meantime the post-etch madness continues: with the help of other fellow DDs from the Debian OCaml Task Force (thanks for your help Ralf!) I'm working on the packaging of the beta of OCaml 3.10.0. Expect an upload to experimental in the next few days. All this is tiresome though, enough for today, time for some good old sci-fi book ...

10 April 2007

Stefano Zacchiroli: coq as a geek toy

Coq: Happy to See it as a Geek Toy Daniel, I'm really happy you defined Coq a geek toy. Usually such pieces of software are more seen as academic toys, seeing it promoted as a geeky software is a joy to me. I'm a developer of Matita, a concurrent system of Coq (yet less mature a of today). I'm happy to give some more info about Coq (and hence about Matita, which is based on the same logical foundation of Coq). Coq is not really a programming language (even if the CoqArt book says so, to attract the developer community), it is mainly a proof assistant; i.e. a software in which you give definitions, state theorems and prove them. The added value of the system wrt plain pen and paper is that it grants that you won't be able to produce incorrect proofs (of course you are still free to prove useless theorems :-) ). It is more expressive than predicate calculus, technically it is based on the Calculus of (Co)Inductive Constructions, but the most important differences are that you can give inductive definitions of predicates (or define recursive data structures) and the system will let you play with them freely automatically constructing recursors on these data types. You can even define infinite data structures (using co-induction) mimicking lazy types available in languages as Haskell. Regarding the synergy of Coq with OCaml: yes, you can prove in Coq the correctness of OCaml program, but actually not more than you can do with programs written in other programming languages (see for example Why, Krakatoa, and Caduceus for some practical tools to prove properties about Java and C programs). Yet the synergy with OCaml is even more than that: once you proved properties like the existence of, say, a prime number greater than a given prime number, you can ask Coq to generate for you (using a feature called extraction) an OCaml program which consumes as input a prime number and returns the next one. More generally you can extract programs from (suitable) proofs. Some info on the Debian side: thanks to smimou Coq has been in Debian for a long time now and Why/Krakatoa/Caduceus are coming soon. Happy hacking!

4 April 2007

Stefano Zacchiroli: least responsive developer

Least Responsive Developer Quoting (with a bit of censorship) from the topic of the #twisted IRC channel on OFTC:
  Least Responsive Developer: XXX [aka YYY], #490  

I love that!, of course it can be seen as a way of publicly blame XXX (aka YYY), but I would hate to be there, so probably I would strive for not being there. /me ponders about adding something similar to Debian IRC channel topics ...

15 March 2007

Stefano Zacchiroli: debian in gsoc

Google Summer of Code: Debian has been accepted Verbatim quote:
Congratulations!
Your organization "Debian" has been accepted in to the Google Summer of
Code(tm) 2007, and you have been marked as a potential Administrator. To
accept this request please visit
http://code.google.com/soc/mentor_step1.html and sign up using your Google
Account.
Thanks
- The Google Open Source Office

Keep on filling the proposal page! /me going to accept the above request ...

14 March 2007

Eddy Petri&#537;or: Getting big changes in Debian

Russell Coker enforces Erich's point about out another disease that affects Debian: large scale changes in packages are hard to accomplish, and we all know it:
Sadly, we are still away from this goal and others are still getting ahead also because of this.

10 March 2007

Stefano Zacchiroli: gsoc cfp

Google Summer of Code 2007: Call for Proposals Yesterday I took some time to reorganize the wiki page with Debian proposals for this year Google Summer of Code. The more relevant change is that we wont consider for free last year proposals as this year proposals. The rationale for that is to avoid proposals staying there just for inertia. So please take some time to promote last year proposals to this year proposals (just moving them up in the wiki page) if you're still interested in them. Eventually we will remove last-year non-promoted proposals. Now we also have a template for describing proposals in more details to be used for avoiding cluttering the main wiki page. You would be very kind with us if, when promoting last year proposals, you will also take the time to create and fill the corresponding templates :-). If you're interested in proposing something for the GSoC go and add your proposal to the wiki page, now it's the time! PS no, you're right, in this post there isn't much more than what I just posted to d-d-a, it's only to augment the SPAM level...

9 March 2007

Stefano Zacchiroli: living in vim

Living in Vim John, some tips for your new life with Vim (welcome!) Hope this helps,

27 February 2007

Stefano Zacchiroli: meme esr facts

Meme: Vote your favorite ESR Fact ObPlanet: you avoid loosing time reading all ESR Facts, the Planet chooses the best for you (of course if you don't trust the Planet you're back at having to read all of them, YMMV). My favorite ESR Fact is: ESR once wrote a CML2 patch that was accepted into Linux. Just kidding.

23 February 2007

Stefano Zacchiroli: xs vcs browser

XS-Vcs-Browser: the brother of Xs-Vcs-* A couple of day ago godog (thanks!) applied my patch for the PTS which add the long overdue support for the XS-Vcs-Browser field in debian/controls. Here is a summary of the Version Control System related fields now supported by the web interface of the PTS: Here is an example of the two field usage from the debian/control of the (not yet uploaded) Vim package:
Source: vim
Section: editors
Priority: optional
Maintainer: Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
Standards-Version: 3.7.2
...
XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim
XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/

The current sample rendering can be seen, for example, in the PTS page of the mako package. More information can be found in the current patch for the Developer's Reference documenting the support for the two fields in the web interface of the PTS. /me hurries-up writing a small post to -devel before John yells at me again for (ab)using the planet for such announcements :-)

18 February 2007

Stefano Zacchiroli: dtd2vim

Vim's Feature of the Day #2: Context-Aware Completion for XML (in 5 minutes!!!) You're editing yet another Debian sub-policy. Of course the policy is written in Docbook XML and (should I even need to mention it?) of course you're using Vim. The Docbook v4.4 specification is huuuuge and you happen to know just a tiny teeny part of it. Hence you're dreaming of XML Spy or Emacs context-aware completion. Shame on you misbeliever!, Vim can do the same!! Here is how to set-up in 9 easy steps context aware completion for Docbook v4.4 with Vim7 in Debian/unstable:
# aptitude install docbook vim-scripts perlsgml
$ mkdir -p ~/.vim/autoload/xml/ ~/.vim/after/ftplugin/xml/
$ cp -r /usr/share/sgml/docbook/dtd/xml/4.4/ /tmp/docbook-dtd/
$ cd /tmp/docbook-dtd/
$ SGML_CATALOG_FILES=/etc/sgml/catalog dtd2vim docbookx.dtd docbk44
$ mv docbookx.vim ~/.vim/autoload/xml/docbk44.vim
$ rm -rf /tmp/docbook-dtd/
$ echo "runtime ftplugin/xml.vim" >> ~/.vim/after/ftplugin/docbk.vim
$ echo "XMLns docbk44" >> ~/.vim/after/ftplugin/docbk.vim

Now just start Vim on an .xml file containing some Docbook markup and let the fun begin: Warnings: dtd2vim is a recent addition to vim-scripts, you will need >= 7.05. If you start editing a file which Vim is not yet able to recognized as a Docbook file (e.g. an empty file) don't panic, setf docbk is your friend. Enjoy! PS an even higher fun level while editing XML with Vim can be obtained using the "xml" ftplugin shipped by vim-scripts ...

11 February 2007

Stefano Zacchiroli: rhythmbox gstreamer pipeline

Looking for a Gstreamer Pipeline for Remote Audio with Rhythmbox Dear Lazyweb, i'm looking for a gstreamer custom pipeline for configuring Rhythmbox so that I can execute it remotely via X and deliver audio to the local machine. Can you help me out? In exchange to your help I offer: Now, would you be so kind in giving me back another pipeline? :-) PS oh, yes, a way to configure the remote Rhytmbox so that the local esd server is used would be fine too ...

8 February 2007

Stefano Zacchiroli: ddpo yubnub command

New YubNub command: ddpo I'm a big fan of YubNub. Some Debian specific commands are really cool, like dpts or debbug. Still I was missing a command to go to the DDPO page of a given argument , so I just contributed my first command. Guess the name ....: ddpo. E.g.: the query ddpo zack leads to http://qa.debian.org/developer.php?login=zack I'll be happy when the first user will report that he guessed the ddpo command out of the blue!

7 February 2007

Stefano Zacchiroli: vim-script news

vim-scripts maintenance Mixed research meeting in which universities get in touch with big companies are fun, especially at the end, when the planning phase is reached and different, often conflicting, interests show up: academic fellows pulling the blanket from one side (trying to postpone deadlines, planning paper submissions, ...) and industry hard-workers pulling it to the opposite site (which results when, press releases, ...) But the mutual presentations at the beginning of those meetings are sooooo boring, especially when you (as an academic) have to listen at the company presentation: buzzwords, organizational charts, quadrillions of $ invested in R&D in the last years, bla bla bla. What's better to occupy that time slots than Debian hacking? So this morning I proudly uploaded a new version of vim-scripts (7.0.5) which is itself proud to be the version with the longest changelog entry in the package history (49 lines). Among the most notable changes you can find: Enjoy vim-scripts now!

Next.

Previous.