1 - 1, 1 -1, 1-1, 1
I have a question regarding lexical analysis. I recently came across a
bug in our lexical analyser in phc (www.phpcompiler.org), that I am
unsure how to solve. This is the problem: our current definition for
integer constant looks something like
In particular, note that it does not allow for an (optional) "+" or "-"
at the start of the integer. This means that the strings "1 - 1", "1
-1" and "1-1" all generate the same sequence of three tokens INT(1),
OP(-), INT(1), for which the syntax analyser generates the subtree
BIN_OP(-, 1, 1).
For the string "1 - -1", the lexer (unsurprisingly) generates INT(1),
OP(-), OP(-), INT(1). The syntax analyser recognises this as BIN_OP(1,
UNARY_OP(-, 1)). In other words, the second "-" is treated as a unary
operator, rather than as part of the number.
This works fine, with the sole exception of the number "-2147483648".
The problem is, of course, overflow: -2147483648 is a valid negative
number (assuming 32-bit numbers), but the integer 2147483648 is _not_ a
valid positive number. Thus, the above method of dealing with "-" as a
unary operator breaks down.
The solution is to interpret the "-" as part of the number, and
generate INT(-2147483648), rather than OP(-), INT(...). However,
changing the definition of INT to
causes "1-1" to be recognised as INT(1), INT(-1), which is...188.8.131.52 ?
my firewall logs dropped packets from an internal IP address trying to
contact 184.108.40.206 through port 9999. Any ideas whether 220.127.116.11 is valid
IP? and what is port 9999??
> my firewall logs dropped packets from an internal IP address trying to
> contact 18.104.22.168 through port 9999. Any ideas whether 22.214.171.124 is valid
> IP? and what is port 9999??
These trojans *BlitzNet*, *Backdoor.Oracle*, *Backdoor.Spadeace* uses port
"StarScripter" <Star@privacy.net> wrote in message news:<bv8ejj$p54t3$1@ID-185702.new...plot 1, -1, 1, -1, -1
How to plot those numbers in a rectangle style?
x = linspace(-4*pi,4*pi,1000); y = sin(x);
plot(x,sign(y)), axis([-12 12 -2 2])
PZ <email@example.com> wrote in message <firstname.lastname@example.org>...
> How to plot those numbers in a rectangle style?
stairs([-1 1 -1 1 -1 1])
...ANN: Webware for Python 1.1.1 released
Version 1.1.1 of Webware for Python can now be downloaded at
This is a bugfix release with some fixes and small improvements.
Webware for Python is a mature and stable web framework that has been
around since more than a decade.
Version 1.1.1 runs on Python 2.4 to 2.7.
You can find more info on the Webware for Python homepage at
Support is available via the Webware for Python mailing lists at
-- Christoph Zwerschke
...[ANN] RubyGems 1.1.1
Release 1.1.1 fixes some bugs.
* Gem.prefix now returns non-nil only when RubyGems was installed
sitelibdir or libdir.
* The `gem server` gem list now correctly links to gem details.
* `gem update --system` now passes --no-format-executable to setup.rb.
* Gem::SourceIndex#refresh! now works with multiple gem repositories.
* Downloaded gems now go into --install-dir's cache directory.
* Various fixes to downloading gem metadata.
* `gem install --force` now ignores network errors too.
* `gem pristine` now rebuilds extensions.
* `gem update --system` now works on vi...[ANN] Inochi 1.1.1
Gives life to RubyGems-based software
Inochi is an infrastructure for RubyGems-based software
that encourages good documentation, reduces programming
effort, and automates common tasks.
Version 1.1.1 (2009-10-03)
This release improves Ruby 1.9 support and upgrades gem
* Bug fixes
* require() was unable to find project library in Ruby
* Ruby 1.9 warning about "shadowing out...[ANN] rctool-1.1.1
RCtool is a small tool which makes/updates rcfiles automatically.
There is a rcfile in software each.
For example, it is .zshrc in zsh, .emacs in Emacs and so on.
Please think about the scene which introduces a new EmacsLisp program into Emacs.
You copy a .el file in the directory which is in load-path.
You have to write setting in .emacs last.
I think that update of .emacs is easy if you introduce it once.
However, please imagine a scene upgrading an EmacsLisp program.
When the EmacsLisp code is largely modified, and setting did not have compatibility either, a user must m...ANN: NumPy 1.1.1
I'm pleased to announce the release of NumPy 1.1.1.
NumPy is the fundamental package needed for scientific computing with
Python. It contains:
* a powerful N-dimensional array object
* sophisticated (broadcasting) functions
* basic linear algebra functions
* basic Fourier transforms
* sophisticated random number capabilities
* tools for integrating Fortran code.
Besides it's obvious scientific uses, NumPy can also be used as an
efficient multi-dimensional container of generic data. Arbitrary
data-types can be defined. This allows NumPy to seamlessly and
speedily integrate with a wide-variety of databases.
Numpy 1.1.1 is a bug fix release featuring major improvements in
Python 2.3.x compatibility and masked arrays. For information,
please see the release notes:
Thank you to everybody who contributed to this release.
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
This is just a quick announcement to let y'all know that I've released =
What is it?
Power tools for the File class. Additional methods include which, =
head, tail, middle, wc, null, nl_convert, touch and binary?.
This release adds the File.null and File.binary? methods. The former =
the null device on your system The latter returns whether or not the =
question is a binary file (using a simple best-guess algorithm).
Where is it?
We are happy to announce a new release of pyFltk, the Python bindings
for FLTK. This release supports FLTK-1.1.7 and Python 2.4 and 2.5.
FLTK is a lightweight cross-platform GUI toolkit with a very small
footprint. pyFltk applications
are very simple and intuitive, making it a good choice for small to
medium applications that want
to get up to speed quickly.
Changes in this release include various bug fixes, improved memory
management, and the fixing of several compilation issues. Also, some
preliminary documentation was added, see test/preface.html.
This release can be downloaded from the project home page:
...[Ann] UIHierarchy 1.1.1 is out!
Some news of UIHierarchy, the AWT/Swing containement hierarchy helper
-- Release 1.1.1 is out --
* What is UIHierarchy:
The UIHierarchy library aims at simplifying the development of user
made in AWT or Swing.
It simplifies code syntax to match the mental picture of containement
which makes it easier to develop and maintain small to complex user
License terms are Sun Public License 1.0.
* Project pages:
The homepage is: http://chrriis.brainlex.com/projects/uihierarchy.
The SourceForge project: http://sourceforge.net/projects/uihierarchy.
The Proposed dowloads are:
- UIHierarchy.zip: contains the library "UIHierarchy.jar"
- UIHierarchySrc.zip: contains the sources of the library, and the javadoc.
probably need the NanoXml parser to compile the XML helper class.
Some documentation is available in the project homepage, along with
* Changes in Release 1.1.1:
- FormLayout is supported.
- Component creators to support any kind of automatic component creation.
- New build construct with more enforcement using the new UIH class.
- Complete rewrite of UIHierarchy to use UIH internally.
- Nested arrays construct was useless, so it is removed. API gets easier.
- Print was mixing "out" and "err" output streams. Now fixed.
- Print could not handle null layout managers. Now fixed.
- Print: package names are removed to shorten the clas...Ip-Address 126.96.36.199
A traceroute to 188.8.131.52 showed following results:
# traceroute -In -m10 184.108.40.206
traceroute to 220.127.116.11 (18.104.22.168), 10 hops max, 38 byte packets
1 22.214.171.124 103.658 ms 99.452 ms 109.767 ms
2 126.96.36.199 99.646 ms 99.680 ms 99.821 ms
3 188.8.131.52 99.689 ms 109.665 ms 99.751 ms
4 184.108.40.206 99.762 ms 1359.690 ms 99.718 ms
5 220.127.116.11 104.398 ms 105.014 ms 109.781 ms
6 18.104.22.168 109.696 ms 109.733 ms 99.771 ms
7 22.214.171.124 119.710 ms 199.720 ms 209.720 ms
8 126.96.36.199 119.695 ms 129.663 ms 119.808 ms
9 188.8.131.52 109.731 ms 129.672 ms 119.772 ms
10 * * *
I thought that 184.108.40.206/8 is reserved by iana according to:
or do I understand something wrong here?
In article <email@example.com>,
Leopold Schweighofer <firstname.lastname@example.org> wrote:
:A traceroute to 220.127.116.11 showed following results:
: 8 18.104.22.168 119.695 ms 129.663 ms 119.808 ms
: 9 22.214.171.124 109.731 ms 129.672 ms 119.772 ms
:I thought that 126.96.36.199/8 is reserved by iana according to:
:or do I understand something wrong here?
No you are correct. It appears what has happened is that
UUNet/PIPEX have a NATing device attached to them
which has been set with an outside IP of 188.8.131.52.
That works fine for receiving traffic, and...Alignment of foo
Suppose I have type 'foo' and:
sizeof (foo) == 16
alignof (foo) == 2
Suppose I have type 'foo' and:
sizeof (foo) == 16
alignof (foo) == 4
? I'd like to think not, but is it prohibited? If I do:
typedef foo bar;
bar * my_bar = malloc(sizeof *bar);
foo * my_foo = (foo *) my_bar;
certainly 'my_bar' points to an object whose alignment satisfies type
'foo'. But what about the other way around?
typedef foo bar;
foo * my_foo = malloc(sizeof *foo);
bar * my_ba...ERROR IN EXPRESSION; -1 - (-1) not 1
The expression isn't a = 1 - (1-), but: a = -1 - (1)
der <email@example.com> scribbled the following:
> The expression isn't a = 1 - (1-), but: a = -1 - (1)
Ah, that's different, then. Then the answer is: The result will be -2.
You have *no* guarantees about which of -1 or (1) is evaluated first,
but as they don't have side effects, you don't have to care.
/-- Joona Palaste (firstname.lastname@example.org) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/
"To doo bee doo bee doo."
- Frank Sinatra
...ANN: Python Tools for Visual Studio 1.1 Beta 1
We're pleased to announce the release of Python Tools for Visual Studio 1.1=
Beta ( http://pytools.codeplex.com/releases/view/76089 ). Python Tools for=
Visual Studio (PTVS) is an open-source plug-in for Visual Studio which sup=
ports programming with the Python programming language. This release includ=
es new core IDE features, a couple of new sample libraries for interacting =
with Kinect and Excel, and many bug fixes for issues reported since the rel=
ease of 1.0.
Since the last alpha release we've fixed over 30 bugs and implemented sever=
al features around the project system and references. For IronPython users =
you can now add references to .NET projects or .NET assemblies and we'll au=
tomatically reload and re-analyze the references when they're rebuilt. For =
CPython users you can now add a reference to a .pyd extension module and we=
'll analyze the extension module and provide completions. We've also improv=
ed intellisense across multiple Python projects in the same solution. Final=
ly we've added support for using IPython mode w/o PyLab - this enables out-=
of-line graphs and improves the startup time of the interactive window.
We've also added many new features which improve the basic editing experien=
ce which were also available during 1.1 Alpha. This includes a feature for =
automatically adding imports after typing an identifier, a command for clea=
ning up unused imports, support for recognizing isi...ANN: Python Imaging Library 1.1.5 alpha 1
The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter. This library supports many file formats,
and provides powerful image processing and graphics capabilities,
including display support for Windows and Tkinter.
PIL 1.1.5 alpha 1 is now available from:
This release is available in source form (look for Imaging tarballs),
and as a prebuilt installer for Python 2.3 on Windows.
A list of changes can be found here:
the pil team at secret labs ab
"Secret Labs AB -- makers of fine pythonware since 1997"
DeepForm allows an analyst to create a document (named Model) that
specifies the structure and the contents of the XML document
containing the corporate data. DeepForm does not requires any
knowledge of the XML format by the user.
The data model creation
The application allows the user to compone his own model using a quick
and easy interface. The analyst can create his own model by simply
combining the "basic" elements of DeepForm:
* fields (customizables);
DeepForm allows to create new models by using parts of other models
CDSB 1.1.1 is available. More tools can be installed on FreeBSD. For
example, Calibre, HSPICE, SpiceExplorer, etc.
Get more information from CDSB Wiki:
Bug-fix release of htmldata, fixes error when parsing whitespace inside tags.
Description of the htmldata module, from its PyPI site:
"Extract and modify HTML/CSS URLs, translate HTML documents <-> list data structures.
The htmldata module allows one to translate HTML documents back and forth to list data structures.
This allows for programmatic reading and writing of HTML documents, with much flexibility.
Functions are also available for extracting and/or modifying all URLs present in the HTML or
stylesheets of a document.
I have found this library useful for writing robots, for "wrapping" all of the URLs on websites
inside my own proxy CGI script, for filtering HTML, and for doing flexible wget-like mirroring.
It keeps things as simple as possible, so it should be easy to learn.
Supports XHTML, too."
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
RedNotebook 1.1.1 has been released.
You can get the tarball, the Windows installer and links to distribution
What is RedNotebook?
RedNotebook is a **graphical journal** and diary helping you keep track
of notes and thoughts. It includes a calendar navigation, customizable
templates, export functionality and word clouds. You can also format,
tag and search your entries. RedNotebook is available in the
repositories of most common Linux distributions and a Windows installer
* Let user delete category with 'DELETE' key (LP:608717)
* Sort categories alphabetically (LP:612859)
* Fix: After clicking "Change the text" on an annotation, directly
edit it (LP:612861)
* Fix: Journal -> _Journal in menu
* Fix: Do not clear entry when category is changed in new-entry dialog
* Fix: restore left divider position
* Fix: Use rednotebook website for retrieving newest version
* Windows: Shrink installer size
* Windows: Update gtk libs
* Windows: New theme
* Windows: New icons
* New translations:
* English (United Kingdom)
* Norwegian Bokmal
* Many translations updated
slimKEYS is a universal hotkey manager with a plug-in system that lets
you perform an infinite number of actions simply by pressing system-
wide hotkeys. It already comes with multiple built-in plug-ins:
slimLAUNCH lets you open applications, documents or folders, or search
for password entries stored securely, or open your del.icio.us posts
simply by typing a few letters of their name or by directly assigning
them specific hotkeys.
slimSIZE lets you resize or move windows to any monitor and location
just by pressing a hotkey.
slimSEARCH helps you search on popular search engine...[ANN] ruby2ruby 1.1.1 Released
ruby2ruby version 1.1.1 has been released!
ruby2ruby provides a means of generating pure ruby code easily from
ParseTree's Sexps. This makes making dynamic language processors much
easier in ruby than ever before.
== 1.1.1 / 2006-11-13
* 3 bug fixes
* Fixed procs
* Cleaned return when no return values.
* Rewrote process_if. No more elsif but no more bugs. :)
...ANN: PyTables 1.1.1 released
Announcing PyTables 1.1.1
This is a maintenance release of PyTables. In it, several optimizations
and bug fixes have been made. As some of the fixed bugs were quite
important, it's strongly recommended for users to upgrade.
Go to the PyTables web site for downloading the beast:
or keep reading for more info about the improvements and bugs fixed.
Changes more in depth
- Optimized the opening of files with a large number of objects. Now,
files with table objects open a 50% faster, and files with arrays open
more than twice as fast (up to 2000 objects/s on a Pentium
4@2GHz). Hence, a file with a combination of both kinds of objects
opens between a 50% and 100% faster than in 1.1.
- Optimized the creation of ``NestedRecArray`` objects using
``NumArray`` objects as columns, so that filling a table with the
``Table.append()`` method achieves a performance similar to PyTables
- ``Table.readCoordinates()`` now converts the coords parameter into ``Int64``
- Fixed a bug that prevented appending to tables (though
``Table.append()``) using a list of ``NumArray`` objects.
- ``Int32`` attributes are handled correctly in 64-bit platforms now.
- Correction for accepting lists of numarrays as input for
- Fixed a problem...