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...22.214.171.124 ?
my firewall logs dropped packets from an internal IP address trying to
contact 126.96.36.199 through port 9999. Any ideas whether 188.8.131.52 is valid
IP? and what is port 9999??
> 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??
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 <firstname.lastname@example.org> wrote in message <email@example.com>...
> How to plot those numbers in a rectangle style?
stairs([-1 1 -1 1 -1 1])
A traceroute to 18.104.22.168 showed following results:
# traceroute -In -m10 22.214.171.124
traceroute to 126.96.36.199 (188.8.131.52), 10 hops max, 38 byte packets
1 184.108.40.206 103.658 ms 99.452 ms 109.767 ms
2 220.127.116.11 99.646 ms 99.680 ms 99.821 ms
3 18.104.22.168 99.689 ms 109.665 ms 99.751 ms
4 22.214.171.124 99.762 ms 1359.690 ms 99.718 ms
5 126.96.36.199 104.398 ms 105.014 ms 109.781 ms
6 188.8.131.52 109.696 ms 109.733 ms 99.771 ms
7 184.108.40.206 119.710 ms 199.720 ms 209.720 ms
8 220.127.116.11 119.695 ms 129.663 ms 119.808 ms
9 18.104.22.168 109.731 ms 129.672 ms 119.772 ms
10 * * *
I thought that 22.214.171.124/8 is reserved by iana according to:
or do I understand something wrong here?
In article <firstname.lastname@example.org>,
Leopold Schweighofer <email@example.com> wrote:
:A traceroute to 126.96.36.199 showed following results:
: 8 188.8.131.52 119.695 ms 129.663 ms 119.808 ms
: 9 184.108.40.206 109.731 ms 129.672 ms 119.772 ms
:I thought that 220.127.116.11/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 18.104.22.168.
That works fine for receiving traffic, and...ERROR IN EXPRESSION; -1 - (-1) not 1
The expression isn't a = 1 - (1-), but: a = -1 - (1)
der <firstname.lastname@example.org> 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 (email@example.com) ---------------------------\
| 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
...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...RxParse 1.1
This is one of the best little XML SAX parser's I have ever used.
Totally Perl, doesen't use any dll wrappers.
# AUTHOR: robic0, copyright (c) 2006-2007
# Reproduction of contents, or distribution in a comercial
# product, is strictly prohibited without prior written
# permission from the author.
# XML/Xhtml/Html - RXParse parse/edit/filter module
# Compliant w3c XML: 1.1
# Extensibl...RedNotebook 1.1.1
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
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
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:
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
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...3DLDF Release 1.1.5 and 22.214.171.124
-----BEGIN PGP SIGNED MESSAGE-----
Release of 3DLDF 1.1.5.
3DLDF is a GNU package for three-dimensional drawing with MetaPost
It is available from http://ftp.gnu.org/gnu/3dldf and other ftp
Please see the author's website,
for more information.
In release 1.1.5, I've tied up some loose ends. I wanted to do this
before starting on the input routine.
* Added `const real step' argument to the version of
Ellipse::intersection_points() that takes an Ellipse
* BUG FIX: Added `touch 3DLDFmp.mp' to the `3DLDFmp.mp' target in
3DLDF-1.1.5/CWEB/Makefile.am. This ensures that
TeX and dvips will be run if MetaPost is run on `3DLDFmp.mp'. This
`3DLDFput.mp' is newer than `3DLDFmp.mp', but the latter isn't
changed, so TeX and dvips
weren't being run. I'm surprized nobody's complained about this.
Not yet documented in the _3DLDF User and Reference Manual_.
* Added `PHONY' targets as synonyms for certain targets:
`cpl' for `3dldf'. For compiling and linking `3dldf'.
`mp' for `3DLDFmp.mp'. For running MetaPost on `3DLDFmp.mp'.
`ldf' for `3DLDFput.mp'. For running `3dldf'.
Not yet documented in the _3DLDF User and Reference Manual_.
* It is now possible to ``typedef'' ...-1, +1
How can I generate a random number as
-1 or +1 in a loop
This makes a matrix of random +1/-1 you can probably get what you
need from this...
> How can I generate a random number as
> -1 or +1 in a loop
On Sun, 02 Nov 2003 14:03:30 -0500, Dan Ennis wrote:
A shorter version would be
A(A==0)=1; % or however you want to assign it.
I don't understand why this works as expected:
order by 2
but this doesn't:
order by 1--1
The "order by" is completely ignored.
On Wednesday January 21 2015 11:44, in comp.databases.mysql, "Kiuhnm Mnhuik"
> I don't understand why this works as expected:
> select *
> from games
> order by 2
> but this doesn't:
> select *
> from games
> order by 1--1
> The "order by" is completely ignored.
No, it isn...i++, ++i, i+=1 and i = i+1;
let say we have;
1) i++; /* use i and increment by one */
2) ++i; /* increment i by one and use it */
3) i += 1;
4) i = i+1;
result (for value of i) of all 4 will be same; could anyone tell
differences among them from any perspectives?
I heard we'd better use 2) over 1). And 1) is faster than 3) or 4).
Thanks in advance,
> let say we have;
> 1) i++; /* use i and increment by one */
> 2) ++i; /* increment i by one and use it */
> 3) i += 1;
> 4) i = i+1;
> result (for value of i) of all 4 will be same; could anyone...OO 1.1 and java 1.3.1
Am attempting to install OO 1.1, but with just Java 1.3.1, and the
install documentation says that without at least 1.4.1, I cannot make
use of full capabilties. I infer from this that I should be able to
OO crippled. However, However, OO does not like it when I point to
my 131 JRE. Comments?
David I. Smith wrote:
> Am attempting to install OO 1.1, but with just Java 1.3.1, and the
> install documentation says that without at least 1.4.1, I cannot make
> use of full capabilties. I infer from this that I should be able to
> OO crippled. However, However, OO...IMDbPY 4.1 and IMDbPYKit 1.1.1
IMDbPY 4.1 and IMDbPYKit 1.1.1 are available (tgz, deb, rpm, exe) from:
IMDbPY is a Python package useful to retrieve and manage the data of
the IMDb movie database about movies, people, characters and companies.
IMDbPYKit (mostly developed by H. Turgut Uyar) is a web interface to
IMDbPY, able to serve its output both in HTML and XML.
With this release, a DTD for the XML output was formalized and support
for i18n was introduced. A lot of bugs were fixed.
Platform-independent and written in pure Python (and few C lines),
IMDbPY can retrieve data from both the IMDb's web server and a local
copy of the whole database.
IMDbPY package can be very easily used by programmers and developers
to provide access to the IMDb's data to their programs.
Some simple example scripts are included in the package; other
IMDbPY-based programs are available from the home page.
Davide Alberani <firstname.lastname@example.org> [GPG KeyID: 0x465BFD47]
...Evaluation of 1/(1/a + 1/b + 1/r)
I am trying to write a program to evaluate the sum of two continued
fractions, written in polynomials of T.
I would like a short routine to evaluate 1/(1/a + 1/b + 1/r), just
working with a, b, and r if they are not equal to zero.
So, if a = 0, then evaluate 1/(1/b + 1/r)
If a, b, = 0, then evaluate 1/r
If all of a, b, r = 0, give me 0 as output.
If (1/a + 1/b + 1/r) = 0, give me 0 as output.
Assume that a, b, r are arbitrary polynomials in T.
Can someone help?
1/Sele...XHTML 1.1 spec: lang and xml:lang
I've looked at the latest XHTML spec from 2009-05-07. Referring to
In the I18N module, there are only two attributes listed: dir and
xml:lang. The note in the last paragraph says: "Finally, note that the
I18N collection only contains the xml:lang attribute unless the Bi-
directional Text Module module is selected." This is fine, but...
says (last paragraph):
"This specification also adds the lang attribute to the I18N attribute
c...FAQ 1.1: What is Perl?
This message is one of several periodic postings to comp.lang.perl.misc
intended to make it easier for perl programmers to find answers to
common questions. The core of this message represents an excerpt
from the documentation provided with Perl.
1.1: What is Perl?
Perl is a high-level programming language with an eclectic heritage
written by Larry Wall and a cast of thousands. It derives from the
ubiquitous C programming language and to a lesser extent from sed, awk,
the Unix shell, and at least a dozen ot...JDK 1.3.1/1.4/1.5
How can you display JDialog without the Close on the Top Right in any
of these versions(JDK 1.3.1/1.4/1.5). The only thing it displays is
the close button X and I don't want that?
> How can you display JDialog without the Close on the Top Right in any
> of these versions(JDK 1.3.1/1.4/1.5). The only thing it displays is
> the close button X and I don't want that?
> Thank you!
Dialog.setUndecorated() since 1.4
...Meaning of 1:1, 1:1 generalization, 1:n, 1:n non identifying, n:m
I've been taking a look at DB Designer 4, and looking through the
documentation (http://www.fabforce.net/dbdesigner4/doc/index.html) I am a
little unclear on some of their nomenclature:
'1:1' - Ok, one to one. Got it.
'1:1 generalization' - Don't know this. Obviously different somehow from
one to one, but how?
'1:n' - One to many, I assume.
'1:n non identifying' - Nonidentifying? What does this mean?
'n:m' - Many to many? Again, not sure.
Can anyone help clarify?
Joshua Beall wrote:
> I...modify date from 1/1/0001 to 1/1/1900 ?
Hi, migrating some Lotus Notes 6.5 DBs I found lots of dates that are
set to 1/1/0001 12:00:00 AM. The new system only supports dates
starting from 1/1/1900 12:00:00 AM, so I need to change the year 0001
to 1900 for several fields.
What is the easiest way to change a field from 1/1/0001 12:00:00 AM to
1/1/1900 12:00:00 AM for all the rows in a nsf?
Is there a tool that can help me do this or do I need to learn some
Ok, I found some tools that can help edit fields in a notes db, like
NoteMan and ezScan.
As Notes newbie I'm having difficulties...