Displaying 20 results from an estimated 1100 matches similar to: "Binary AGI Scripts"
2001 Oct 02
1
problem with while loop with next (was RE: file connection, w hile, readLines and browser)
Dear R-help,
I think I have kinda isolated the problem I had to the following:
i <- 0
while( {i <- i + 1} < 5) {
if(i < 3) next
print(i)
}
This seems to go into an infinite loop. After I break the execution, i has
the value 1.
At the R prompt, if I start from i <- 0 and keep typing {i <- i + 1} < 5, it
eventually evaluate to TRUE. So why does the while loop not work?
2001 Oct 02
1
RE: problem with while loop with next
Prof. Tierney,
Thanks very much for the info.
Why does the loop work if I move the assignment out of the condition? E.g.,
the following works:
i <- 0
while(i < 5) {
i <- i + 1
if(i < 3) next
print(i)
}
Regards,
Andy
> -----Original Message-----
> From: Luke Tierney [mailto:luke at nokomis.stat.umn.edu]
> Sent: Tuesday, October 02, 2001 3:36 PM
> To: Liaw, Andy
2007 Jul 24
1
Custom kinit to find device by "label"
I need to reliably boot a server from a USB device. Since USB
device ordering can be unpredictable, I wrote a simple
early-userspace "init" program to find the root FS on the correct USB
device & partition. I have "labeled" the root ext2 FS on the USB
drive, and the program searches for the label by examining the bytes
at a specific offset from the beginning of the
2009 Oct 13
1
Iterating over file lines
I am attempting to iterate over a file, processing it line by line.
In my function below, I am only getting the first item over and over
and over again from my test file rather than subsequent lines. How
can I modify this to read lines sequentially?
==
iteratefile <- function(file) {
f.con <- file(file)
on.exit(close(f.con))
while( length(readln <- readLines(f.con, 1)) > 0 ) {
2007 Feb 18
5
Looking for starting point?
Hi,
I am a retired telephone tech/manager who recently had a bad experience with a local company offering digital phone service (VoIP). I have spent the last thirty years in the PSTN network, switching, PBX and key system field and am interested in learning more about VoIP. My background also includes programming, mostly specialized applications to interact with the PSTN network. Most of my
2007 Oct 25
2
What to do to use libvorbis with FreePascal?
All,
I am a FreePascal programmer. I am making a Pascal-based application now,
and want to use vorbis as its sound files.
What should I do so that I can use libvorbis with FreePascal?
(Actually, I use Lazarus as the Windows development environment)
Thanks.
--
Comodo Firewall Pro -- Powerful & Free, Forever! Visit www.comodo.com
Support patent-free audio! Visit www.playogg.org
Use
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone.
I am not sure if this is the right place to post, please redirect me
if there is a mailinglist more specifically dealing with prototype.js.
After playing around with the very inspiring prototype library I have
found a rather annoying thing, that makes the usefulness of the
Enumerable mixin for Hashes
questionable, if I am not totally wrong (again :-).
Here an example:
2008 Aug 05
2
a simple Asterisk AMI interface with Delphi (or Lazarus+FreePascal)
Hi Everyone,
Those of you who have a simple home-based Asterisk box might
be interested in a "simple" Win32 (Win2K or WinXP) interface to
the AMI manager. The quick-start versions merely require
unzipping with NO Installation - hence, NO Uninstall (i.e., no
registry writes at any time by the install nor by the program).
(Unfortunately) the INSTALL version does write to the
2006 Jun 20
3
hello Excel... (native/Package/BETA)
Dear list members
I am pleased to annonce that I have just finished a native Excel
reader/writer. It's wrapped up in two packages: either "xlsReadWrite" (open
source) or the slightly beefed-up "xlsReadWritePro" (shareware). Working
with Excel data is now as easy as writing read.xls and write.xls.
Some more details:
- Infos and download: http://treetron.googlepages.com
-
2007 Jun 07
0
[LLVMdev] libc dependencies, code generation questions
Hi Jonas. I'm very interested in an llvm backend for freepascal. Could you
give some more details?
Is there already something to try and test? Will the code be avaiable on
svn?
Thanks, Nicola
On 6/7/07, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> Hello,
>
> I'm looking into creating an llvm backend for the Free Pascal
> Compiler
2006 Dec 31
8
(OT) Where to post free source for AGI?
Hey all,
After figuring out a problem with AGI and freepascal, I have finished
writing a small Cepstral (http://www.cepstral.com) AGI app. I wrote a
small readme for it at http://www.datatrakpos.com/misc/dial/readme.txt.
I'd like to give it to the community (source/binary) and was wondering
where to post it?
The wiki?
Also, anyone have suggestion on licensing? LGPL? FreeBSD?
Thanks
2005 Apr 04
0
io timeout after 180 seconds
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Thanks for all the help so far. I am learning a lot from it.
I have a script that I will post bellow that when I run it gives me
this error.
mysql/website_forum/nntp_settings.MYD
io timeout after 180 seconds - exiting
rsync error: timeout in data send/receive (code 30) at io.c(103)
rsync: connection unexpectedly closed (1493583 bytes read so far)
2005 Sep 22
5
Prototype lib : for-each loops and DontEnum
All
I realise that this isn''t strictly the correct place to discuss the
prototype lib but being as scriptaculous is dependent on it I thought people
might have some opinions.
Easier to explain with the example below, copy into a html file and ensure
the path to prototype.js is correct. You''ll see the first example prints an
extra element "extend" when iterating over
2005 Oct 13
3
Tweaks of Array.prototype
Hi all,
I encountered a big problem when trying to use Scriptaculous and
Htmlarea in the same page.
The Htmlarea code uses a lot of "for (var i in array_variable)" to
iterate on array elements. Problem is that prototype.js augments
Array.prototype, which then show up in the iteration, severely breaking
htmlarea.
The easy workaround is for sure to use "for (var i = 0; i <
2001 Oct 02
0
An example (was RE: file connection, while, readLines and bro wser)
Prof. Gentleman (and R-help),
Here's an example of what didn't work. I still don't understand why.
Function:
trycon <- function(file, n) {
f.con <- file(file, open="rt")
on.exit(close(f.con))
i <- 0
while( length(readln <- readLines(f.con, 1)) > 0 ) {
x <- unlist(strsplit(readln, " "))
if(length(x) <= 6 && x[3] ==
2007 Jun 07
5
[LLVMdev] libc dependencies, code generation questions
Hello,
I'm looking into creating an llvm backend for the Free Pascal
Compiler (<http://www.freepascal.org>). After reading a bit through
the documentation and looking at some code generated by llvm-gcc, I
have a couple of questions:
1) is there a way to specify ranges in the switch statement? Pascal
supports switch statements (called "case" statements there) which
2005 Oct 27
2
Problem with strings in Delphi Program
Hello,
I tried to run a program written in Delphi in wine and it ran quite
perfectly, but sadly there was one important detail that made using it
impossible...
It seems that wine has a problem with the text inputs (edits). They are
"string" datatypes (8 bit ansi string), and not null terminated.
The problem was showing itself e.g. at the login form of the program.
The password I
2004 May 27
4
AGI Pascal
Hi,
Has anyone done any AGI scripting in pascal. I would appreciate help anyone
can offer. My understandin on AGI scripting is very flaky, I am assuming
whatever language is used the application needs to be compile and made
executable. So if I write a script in pascal, I would compile it with
something like freepascal and make it executable.
Thanks
Umar Sear
2001 Oct 02
0
file connection, while, readLines and browser
Dear R-help,
I have one more question about the functions mentioned in the subject.
Again, the system info is:
platform i386-pc-mingw32
arch x86
os Win32 (OK, it's NT4sp6)
system x86, Win32
status
major 1
minor 3.1
year 2001
month 08
day 31
language R
2009 Jun 28
1
I need to be able to retrieve windows user info on a windows server.
Hi, I'm a Linux newbie.
I've been doing novice level programming on Delphi win32 for about 2 years,
and recently, I've been exploring freepascal/Lazarus on Ubuntu because I
want to port a small win32 application to Windows. I've managed to port
over most aspects of the win32 app, including database, but I'm now stuck at
trying to find a Linux equivalent of the netapi32 (a