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
1 answer
Printing With printsys Equivalent In OCTAVE
I have a lab assignment for a 2nd level circuit analysis class and the lab assignment is written with the intention that the student is using MATLAB. I can do everything in the assignment except using a printing function. I have been looking around…

Jesse
- 901
- 1
- 9
- 25
0
votes
1 answer
How do I make two=2 equivalent in python?
I'm working with python to make a trivia game. Some of my answers are numbers. I'm using the .lower() to make it so that Two or tWO would work, but how would I get 2 to be equivalent in python so that two or 2 would answer the question? I know…

Jonathan Brutt
- 5
- 2
0
votes
0 answers
equivalent of Contains for Decimal types
I was wondering if there is an equivalent property for Contains in a Decimal type in vb.net.
What I would want is:
Dim dec as decimal
Dim input as string
dec.Contains(input)
This is for a filtering function purpose, but it says, Contains is not a…

CWOWW
- 3
- 1
- 2
0
votes
2 answers
Are these Python expressions equivalent to each other?
Given the following Python function (ignoring its shortcomings):
def adjust_year(year):
return year > 2000 and year - 2000 or year - 1900
If I change it to instead be:
def adjust_year(year):
return year - 2000 if year > 2000 else year -…

WilliamKF
- 41,123
- 68
- 193
- 295
0
votes
1 answer
Convert .Net DLL to Flash Library?
I've made an .Net Dynamic Link Library, written in c#, to be used in Silverlight applications.
Now, I want to have the same kind of functionallity to be used when developing Adobe Flash applications. I'm not that familiar with Flash or…

Thomas Hellström
- 19
- 1
- 2
0
votes
1 answer
Equivalent matlab command on aforge library
I want to find equivalent matlab command in aforge library.
image = imread('image path');
image = imopen(image,strel('line',2);
What equivalent on the Aforge libray ?

user1462548
- 13
- 5
0
votes
1 answer
What is the equivalent of $args[basename($img_path)] = '@' . realpath($img_path); in javascript?
What is the equivalent of the following PHP code done in javascript?
$img_path = "test.jpg"; // image located on my server
$args = array(
'aid' => $aid, // album id
'caption' => $img_caption, // caption for image
'uid' =>…

user1930558
- 19
0
votes
1 answer
TBitmap.monochrome property equivalent in c#
I'm trying to convert a Delphi code to C# and I wonder if there's an equivalent of VCL.Graphics.TBitmap.Monochrome property in C#?
It's explanation it says: Determines whether the bitmap displays its image in monochrome.
If Monochrome is true if…

Taha Paksu
- 15,371
- 2
- 44
- 78
0
votes
3 answers
Double.parseDouble() equivalent in C++?
Possible Duplicate:
std::string to float or double
I am writing a calculator (learning C++), and just decided to make a calculator, since that was the first thing I did when learning Java.
The program does the following:
Asks the user for the…

Duxa
- 966
- 2
- 14
- 27
0
votes
2 answers
Ruby( on Rails) LINQ .Select data transformation equivalent
So let's say I have an array of strings in C#, I could convert this array of strings to an array of integers using the following LINQ statement:
(new[] {"1", "2", "3"}).Select(x => int.parse(x))
Is there a Ruby equivalent to this?

James
- 680
- 2
- 8
- 22
0
votes
1 answer
CMYK color values to its int equivalent
I have CMYK color values ( 0, 0.58 ,1 ,0 ) . Now I have to convert to its Integer equivalent using C# . I think it is possible using Bitwise operator but not sure .
Kindly assist me how can achieve same .
Thanks,
Pawan

user1641519
- 377
- 1
- 4
- 17
0
votes
2 answers
Equivalent code for VB .net 2005
I have the following code sample in VB .net 2008
Public Function CheckPathFunction(ByVal path As String) As Boolean
Return System.IO.File.Exists(path)
End Function
Public Function PathExists(ByVal path As String, ByVal timeout As Integer) As…

armadillo.mx
- 934
- 1
- 11
- 17
0
votes
2 answers
Is there any equivalent to always true lambda expression?
I'm using a series of commands called RelayCommand which have a function to execute and a function that returns a bool telling whether or not you can execute the first function. The fact is that I'm using the lambda expression () => true most of…

David Fornas
- 362
- 1
- 5
- 18
0
votes
1 answer
jquery UI Autocomplete equivalent liblary
I am searching for Jquery UI autocomplete equivalent.
I can't use jQuery UI in my project.
Any sugestions for some libraries that should I use ?

Konrad
- 726
- 4
- 17
- 33
-1
votes
4 answers
UML and its equivalent Java Code
I have drawn UML class diagram. Now, my task is to convert that UML class diagram to equivalent Java code.
I do not want to use any automated tool, which generates Java code from UML diagram.
Kindly provide some pointers (webLink, PDF file , other),…

user-517752
- 1,188
- 5
- 21
- 54