What is the language used in this script? [closed] - programming-languages

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have some code that i am supposed to work on as an assignment.But i am having trouble figuring out what it is written on.I normally code in c# but this is like nothing i've ever seen.
<cust_name "Reservations Cancelled Report">
<start_form "CANCRESV">
< t = 51>
<set_field n = 50>
<set_field o = 200>
<set_field h = 1300>
<set_print_lines = 55>
<loop>
<concat {t[1]} = {3}>
<box 10,10,14,70>
<writpos 0,12,20, "Reservation cancellations for : ">
<getfield 5,2,12,52,9,1>
<if {20[{t[1]}]} >= 0>
<calc {n[1]} = {20[{t[1]}]}>
<break_loop>
<end_if>
<error "Invalid date">
<end_loop>
<concat {t[2]} = "16,'" + {26[{20[{t[1]}]}]} + "'">
<exec {h2[{t[2]}]}> ! Init for Reservation history search
<loop until_last_page>

It's a rarely used language call Splud.
It is mainly used to wind-up students and trainees, and annoy online communities.
On occasion, it has been identified with other random (hitherto unknown) programming languages but these classifications are rarely accurate and are usually cynical intentions to illicit reputation points, or other virtual currency.
Hope this helps.

Related

SoapUI change milliseconds value in delay step with groovy [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I would like to mass update existing delay steps in SoapUI with groovy that have the value 1000 milliseconds.
New value should be:
${=(int)(Math.random()*10000)}
Can anyone help?
The SoapUI project file is an XML file. You can replace values in that file with Groovy like this:
def projectFileA = new File('/path/to/your/soapui-project.xml')
def projectFileB = projectFileA.text.replaceAll('your old string', 'your new string')
projectfileA.text = projectfileB
If you don't have a Groovy IDE setup you can use groovyConsole, or you can try it in SoapUI itself.

LaTeX make only some listing use colour and not all (listings package) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I added colour to the listings I create in latex using the following,
\usepackage{listings}% http://ctan.org/pkg/listings
\lstset{
basicstyle=\ttfamily,
mathescape
}
\usepackage{color}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\usepackage[colorinlistoftodos]{todonotes}
\lstset{frame=tb,
language=Python,
aboveskip=3mm,
belowskip=3mm,
showstringspaces=false,
columns=flexible,
basicstyle={\small\ttfamily},
numbers=none,
numberstyle=\tiny\color{gray},
keywordstyle=\color{blue},
commentstyle=\color{dkgreen},
stringstyle=\color{mauve},
breaklines=true,
breakatwhitespace=true,
tabsize=3
}
This applies the colouring to ALL listing that I create, I would like to create a new listing that does NOT use any colour, while keeping the colour for other listings.
Could someone tell me how to do that, or if it is even possible ?
Thank you
All the commannds that are given to a \lstset can be given as an optional parameter to a specific listing.
So you can do
\begin{lstlisting}[keywordstyle=\color{black},
commentstyle=\color{black},
stringstyle=\color{black},
]
< your program >
All the other parameters remain unchanged, but you can change specific values as required.
Another way, is to define styles.
\lstdefinestyle{nocoloring}{
keywordstyle=\color{black},
commentstyle=\color{black},
stringstyle=\color{black}
}
\begin{lstlisting}{style=nocoloring}
< your program >

Shell scipt to convert bit string to text value code [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have 32 bit string of 0s. Each bit in the string represents some code, for e.g.
1000000000000000000000000000000 = ABC
0100000000000000000000000000000 = DEF
...
0000000000000000000000000000001 = XYZ
I have file of string bit, is there any way to shell script the output to code
for. e.g
1100000000000000000000000000000 should print ABC|DEF
Thanks for your inputs.
edit1:
#nullPointer : the 3 digit letters are example of human readable representation of the 32 bit representation.
In bash:
codes=("ABC" "DEF" ... "XYZ")
bitstring=1100000000000000000000000000000
outstring=""
for i in {0..31}; do
if [ "${bitstring:i:1}" = 1 ]; then
outstring+="|${codes[i]}"
fi
done
echo "${outstring#|}"

Pattern matching from file in perl [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to use a grep in perl, but I am confused here.
What I want to do is, there is one file like-
this is abctemp1
this is temp2
this is temp3x
this is abctemp1
Now, I want to extract unique words from this file using pattern 'temp', i.e., 'abctemp1, temp2, temp3x'and want to store it in an array. How to do this?
use strict; use warnings;
my (#array, %seen);
/(\w*temp\w*)/ && !$seen{$1}++ && push #array, $1 while <DATA>;
print "$_\n" for #array;
__DATA__
this is abctemp1
this is temp2
this is temp3x
this is abctemp1
Words for every line are in #F, and are pushed into #r if contain temp and are not seen yet,
perl -anE 'push #r, grep { /temp/ && !$s{$_}++ } #F}{ say for #r' file

How to stretch a table over multiple pages [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Table (multiple rows, multiple columns, see below ) that is longer than one page.
How can I tell LaTeX to continue on the next page.
Adding a \newpage didn't work
Manually 'ending' and 'reopening' the table works, but is very tedious, since the table will be many pages long.
\begin{tabular}{lp{13cm}}
AAAAAAAAAA & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
BBBBBBBBBB & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
CCCCCCCCCC & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
...
ZZZZZZZZZ & FOOBAR FOOBAR FOOBAR FOOBAR FOOBAR\\
\end{tabular}
You should \usepackage{longtable}.
PDF Documentation of the package: ftp://ftp.tex.ac.uk/tex-archive/macros/latex/required/tools/longtable.pdf
Tutorial with examples can be found here.

Resources