Permalink
Commits on Jan 18, 2011
  1. Release neubot/0.3.4

    bassosimone committed Jan 18, 2011
  2. Revert "More clever buffer usage, kill send_pos"

    bassosimone committed Jan 18, 2011
    This patch reverts commit f09ad66... "More clever buffer usage, kill
    send_pos" because this commit breaks speedtest.
    
    Indeed, speedtest relies on neubot.http.client to measure the number
    of sent bytes as follows::
    
      class Client(SimpleClient):
          def __init__(self, parent):
              SimpleClient.__init__(self)
              self.sending = SimpleStats()
              self.connecting = SimpleStats()
              self.receiving = SimpleStats()
              self.parent = parent
    
          ...
    
          def send_progress(self, data):
              self.sending.account(len(data))
    
          ...
    
    and the more clever buffer usage cause data to be a subset of the
    original data in some cases (namely when you cannot send all in one
    send()).
    
    I am not happy of this revert because the code in streams.py is
    even more fragile after this revert.  In particular the problem is
    the interaction between this code and the code that bufferizes
    new pieces of data if we are already sending.
    
    What needs to be done is to migrate neubot.http soon to the new model
    to get rid of the low level API in streams.py.  I guess this revert will
    be reverted again as soon as we migrate neubot.http.
  3. scripts: sed_inplace: don't clobber permissions

    bassosimone committed Jan 18, 2011
    We need to do some extra sed gymnastics to avoid to clobber the
    permissions of the file we're editing on the fly.  I've also added
    a comment to be sure that I remember of that in the future.
Commits on Jan 17, 2011
  1. Re-apply some bits that I mistakenly removed from next

    bassosimone committed Jan 17, 2011
    During the previous release cycle I changed my usual workflow a bit
    because it was broken and it created issues for people tracking neubot
    next.  But, apparently, I did some mistake and these bits were left
    out of next (indeed you can spot that if you diff next with 0.3.3)
    and this patches fixes the issue and re-applies this bits with a little
    of brute force.
  2. Revert all the changes in the branch pu.dbgen

    bassosimone committed Jan 17, 2011
    I tried to revert them using a patch in the feature branch but
    something went wrong and so, to keep things simple, I am reverting
    this using brute force.
    
    The bottom line is that this branch is not yet ready to go in and
    so let's reset the history and retry in the next cycle.
  3. www: Update with respect to possible neubot.js -> index.js rename

    bassosimone committed Jan 17, 2011
    On the one hand, it would be a good idea to rename to index.js for
    consistency with neubot.js.  On the other hand index.js seems an odd
    name to me.  Update the comment to reflect this fact and postpone
    the real decision to the future.
    
    Alessio pointed out that usually people puts everything into a
    single javascript so the browser does not need to load stuff when
    you switch page.  This make sense and also we avoid the above
    neubot.js / index.js issue.
  4. scripts: Add update_apt script that updates APT info

    bassosimone committed Jan 17, 2011
    This script contains the rules to update APT info and for now does not
    work on non-Debian systems.  But, at least, we can roll-out a new release
    even if we're not running on a Debian system.  Indeed this script just
    prints a warning if it could not find dpkg-scanpackages.
  5. Makefile: Take advantage of the new helpers in scripts/

    bassosimone committed Jan 17, 2011
    Now that we have scripts that implements `sed -i` and emulate `md5sum`
    and `sha256sum` it's better to use them rather than spelling out the code
    each time.
  6. Makefile: Update copyright notice to new style

    bassosimone committed Jan 17, 2011
    I missed this file when I updated the copyright notice of all the
    files in neubot.  Not a problem, we can do that now.
  7. scripts/release: Use the new scripts/send_inplace helper

    bassosimone committed Jan 17, 2011
    Now that we have a script that implements `sed -i` behavior it's better
    to use it rather than spelling out the code to emulate it each time.
  8. scripts: Move release.sh there and rename it relase

    bassosimone committed Jan 17, 2011
    Now that we have a directory that contains shell scripts it's worth
    moving there release.sh.
  9. scripts: Directory with useful scripts

    bassosimone committed Jan 17, 2011
    This commit adds scripts/ the following useful scripts:
    
    scripts/md5sum
      Emulate the behavior of GNU/Linux md5sum.
    
    scripts/sed_inplace
      Emulate the behavior of `sed -i PATTERN FILE`.
    
    scripts/sha1sum
      Emulate the behavior of GNU/Linux sha1sum.
    
    scripts/sha256sum
      Emulate the behavior of GNU/Linux sha256sum.
Commits on Jan 15, 2011
Commits on Jan 14, 2011