This tag is used for questions about similarities between any of various programming constructs. Comparisons include correspondences between API, functionality, syntax, features, methodologies and the like.
Questions tagged [equivalent]
369 questions
0
votes
2 answers
Notation for equivalent items in a list in Python
I have two lists
circles_plotted = [1]
circles_next_plotted = [1]
Numbers are appended to list circles_plotted each time a circle is plotted. However, is the correct notation for and item in each of the lists to be equivalent? (this will be in an…

lyche
- 125
- 2
- 10
0
votes
1 answer
Sailsjs equivalent to expressjs app.param
I'm looking for an equivalent in sailsjs to this expressjs routing function:
http://expressjs.com/api.html#app.param
I could not find anything, maybe I can trick by using the internal expressjs app instance?

SkinyMonkey
- 259
- 1
- 3
- 7
0
votes
1 answer
IndexError: string index out of range, when comparing two strings
My code is trying to compare each separate character in a string to find the differences between two words. However, the line "if a[i] == b [i]" appears to be giving some grief. i is a variable which has already been given a value, and will be…

Ethan
- 21
- 2
0
votes
1 answer
JavaFX Transition Equivalent
I have a non-gui application where I want to asynchronously interpolate some data over time.
I had a look at the JavaFX Transition API and it looked ideal. However, for the transitions API to work it has to be run as part of a JavaFX application…

James
- 1,237
- 4
- 22
- 43
0
votes
1 answer
Equivalent PHP code in C#
I know that $_POST['m_orderid'] in C# the equivalent will be Request.Form["m_orderid"].
What means in C#:
$_POST['m_orderid'].'|success';
0
votes
0 answers
does svn has something similar to p4 jobs?
I want to associate svn commit id's with a bug id and report it to bug/issue tracking system. Does svn have jobs similar to p4 jobs (see http://perforce.com/perforce/r14.2/manuals/cmdref/p4_jobs.html). A p4 job is a unique string containing one or…

sudharsan
- 43
- 7
0
votes
1 answer
Java equivalent of batch pause?
I am using the following code to simulate a clear screen:
for (int i = 0; i < 50; ++i) {System.out.println();}
My problem is is that when I write something on the screen and then it goes back to where this code is, the text written is gone.
I…

Noctifer
- 11
- 1
- 4
0
votes
1 answer
How to check if same files with other extensions are in a folder
I have a folder with a lot of videos and thumbnails for the videos. After watching the video on Plex I delete it on the Web interface. So the thumbnails from the files stay in the folder.
Now i want to write a program that deletes all thumbnails, if…

Moritz Neeb
- 1
- 2
0
votes
2 answers
LINQ equivalent of my SQL Query for UNION ALL
(SELECT * FROM SheetHay WHERE SheetStatus = 2)
UNION ALL(SELECT * FROM SheetHay WHERE SheetStatus = 1)
UNION ALL (SELECT * FROM SheetHay WHERE SheetStatus = 0)
UNION ALL(SELECT * FROM SheetHay WHERE SheetStatus= 3)
I get result set like…

RookieAppler
- 1,517
- 5
- 22
- 58
0
votes
4 answers
Excel : sum of values depending of other values
What would be the equivalent Excel formula of this SQL query
SELECT SUM(a) FROM table WHERE b < 0;
A B
---- ----
1 0
2 -1
3 4
5 -3
>> 7

gregseth
- 12,952
- 15
- 63
- 96
0
votes
2 answers
Can VB scatter to variables like FoxPro?
I need to take some code written in VisualFoxPro and rewrite it in VB. Having no experience with FoxPro I asked about a few commands used in the code and found one of particular use: scatter memvar, which made individual variable from columns in a…

belaythat
- 45
- 8
0
votes
1 answer
How to convert this select from Oracle to SQL Server?
I need to know if the used INTO SQL Server and equivalent ROWNUM in SQL Server
SELECT
SERIE, CORRELATIVO
INTO
vSerie, vCorrelativo
FROM
SIG.SAF_SERIES_DOCUMENTOS_DET
WHERE
COMPANIA = pCompania
AND MONTO = pMonto
AND…

wabregoc
- 1,064
- 2
- 12
- 17
0
votes
1 answer
Is there a Sybase unwired platform Equivalent?
I built an IOS mobile application based on a Siebel CRM application. All synchronization system is made with SUP (Sybase unwired platform) and web services.
SUP is a good product but very too "black box" for us.
Indeed, it build a CDB (Cache…

JohnnyBeGoody
- 253
- 1
- 3
- 15
0
votes
1 answer
android java string operation
What is the equivalent Java for this PHP code?
//print string plus/with variable
$mystring = "this is string " .$string
//print sum one + two
$count = $one + $two
//print sum one*two
$count = $one * $two

Ahmad Nazirul
- 63
- 1
- 1
- 10
0
votes
3 answers
if statements and return var === somethingElse
I'm doing the Angular course on codeschool and passed one of the exercises by doing:
this.isSet = function(value) {
if (value === this.tab) {
return true;
}
};
But in the next exercise, my code gets replaced by this:
this.isSet =…

user3697034
- 127
- 1
- 1
- 7