Questions tagged [pike]

Pike is an interpreted, object-oriented, dynamic programming language with a syntax similar to C. It includes a powerful modules system that, for instance, has image manipulation, database connectivity and advanced cryptography. It is simple to learn, does not require long compilation passes and has powerful built-in data types allowing simple and fast data manipulation.

14 questions
2
votes
1 answer

how to get a list of file names from a given path in pike

I have a project in school using pike language. I've never used it before and I have a question: How do I get a list of file names from a given path? For example: How do I get all the files in C:\Users\Downloads?
shani m
  • 21
  • 1
2
votes
0 answers

How can you use autoconf to determine if a symbol is defined in the httpd executable used by apxs?

How can you use autoconf to determine if a symbol is defined in the httpd executable used by apxs? At some point around apache v2.2 the apr_connect function was replaced with apr_socket_connect. To make a module compatible with multiple versions of…
Ralph Ritoch
  • 3,260
  • 27
  • 37
1
vote
1 answer

Why am I getting a flow error with a single input in Pike Language decision processing?

Inconsistent Decision Processing in Pike Language: Flow Error with Single Input Hello, whoever can help. I'm studying the Pike language out of curiosity. I noticed that when two integer values are entered, the decision that occurs right after the…
SwFly
  • 25
  • 5
1
vote
1 answer

List all members of a class in Pike

In Pike, it is possible to retrieve all members of an object by calling indices(). Is it also possible to see all members of a class without instantiating it? > class A {int foo; string bar;}; > A a = A(); > indices(a); (1) Result: ({ /* 2 elements…
1
vote
1 answer

bad argument 1 to sizeof() error in pike

I wrote a big program in pike, and suddenly it gives me an error it didn't give me before: bad argument 1 to sizeof(). Does someone know the problem? what can I do? it worked before. That's the code: int main() { string path; …
1
vote
3 answers

how to get the file extension in pike

I'm working on a program in pike and looking for a method like the endswith() in python- a method that gives me the extension of a given file. Can someone help me with that? thank you
1
vote
2 answers

Rpm Build: Bad exit status from /var/tmp/rpm-tmp.hI2V3W (%install)

I'm trying to "rpm-build -ba" a package (Pike) for Fedora Linux, and it's the first time I'm doing this procedure, but I keep getting this error: "Bad exit status from /var/tmp/rpm-tmp.hI2V3W (%install)" As far as I can see, things start going…
CharlesM
  • 521
  • 1
  • 7
  • 16
0
votes
1 answer

How can I achieve pass-by-reference in Pike?

anyone who can help and is familiar with the Pike language. I am currently studying the Pike language and I would like to implement a void function that calculates the factorial of a given number "N". The "factorial" function should accept two…
SwFly
  • 25
  • 5
0
votes
1 answer

Is it possible to use external C libraries in Pike language?

Pike is an interesting programming language with syntax like C but interpreted. Is it possible to use external C libraries in Pike? For example Apophenia: http://apophenia.info/ I could not find this in its documentation. Thanks for your help.
rnso
  • 23,686
  • 25
  • 112
  • 234
0
votes
1 answer

Pike: Is there a the Hilfe record file, and if yes, where is it?

When running a hilfe session in a terminal and pressing the arrow up/down keys, I can reach the command I've previously fed to Hilfe. This is persistent between terminal sessions. I'm assuming there is a record file where the commands are saved. If…
0
votes
2 answers

How can I Implement the library GMP.mpz to generate big numbers in Pike?

When I enter the command: pow(9,999999); I obtain the following: Bad argument 1 to pow(). Exponent too large. Unknown program: pow(Gmp.mpz(999999)) -:1: 9->pow(@0=Gmp.mpz(999999)) HilfeInput:1: HilfeInput()->___HilfeWrapper() Somebody would be…
WerthJK
  • 1
  • 1
0
votes
1 answer

HTML input type="hidden" is not binding the right values in foreach loop

I'm programming in a language called pike, which is an interpreted, object-oriented, dynamic programming language with a syntax similar to C. The pike code is used to generate HTML and javascript. Now to my problem. I have a form called formularet…
molundb
  • 484
  • 1
  • 4
  • 18
0
votes
1 answer

How can you use autoconf to check if member of httpd.h typedef structure exists

How do I make GNU autoconf script to test for typedef struct members using APXS as the compiler? I have defined the following tests but the results are not what I'm expecting... AC_CHECK_MEMBER(struct conn_rec.remote_ip, define…
Ralph Ritoch
  • 3,260
  • 27
  • 37
0
votes
2 answers

Can anyone explain this code? How could it be emulated with PHP?

So I'm trying to make a relatively complicated php script, using some code written in pike. The full source code is available here: http://www.text-image.com/pic2html.pike . It's only a learning experience really, as I'm not going to release it.…
Starkers
  • 10,273
  • 21
  • 95
  • 158