All Questions

-6 votes
4 answers
3k views

Convert this PHP code to C# Rijndael Algorithm

I've got this php code and I'd like to get the exact equivalent C# $ivSize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_192, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($ivSize, MCRYPT_RAND); $encryptedData = ...
Rob's user avatar
  • 1,698
-6 votes
4 answers
3k views

Array with Dictionary in c# using Linq [closed]

I have a dictionary with key as integer type and value as string type Key - value 1 - "A" 2 - "B" 3 - "c" 4 - "D" 5 - "E" and i have a array of ...
Hardik Dobariya's user avatar
-6 votes
5 answers
174 views

Php if($var) used to work [closed]

I have som code for a website, that used to work fine with. I want to check if a variable or session is set. I used the following code: if ($_GET['something']){ //Do something } Now i try to install ...
Tobias Lindgreen's user avatar
-6 votes
2 answers
480 views

C#: calling non static member function without creating object

While going through a codebase, I ran into a statement similar to the following: new Class().MemberFunction(); What is this statement actually doing? Is it calling the member function without ...
Mahesh Nepal's user avatar
  • 1,429
-6 votes
3 answers
538 views

Screen shot upload issues in iTunes Connect

I finish all the development of my app and I am trying to update the screen shots as they require. I take the screen shot in simulator by using command + s. Every time I choose the files to upload, ...
Nan's user avatar
  • 524
-6 votes
3 answers
411 views

How to make UI with round image and round text, also add ratting icon on same circle. in iOS application

How to make UI with round image and round text, also add ratting icon on same circle. in iOS application
Jugal K Balara's user avatar
-6 votes
1 answer
2k views

Logic behind printing pyramid shape using nested for loops in Java

I have modified sample code around to get the output I was looking for, but I do not understand the logic behind the nested for-loops below. Can someone explain to me in detail what each loop is doing ...
hazer888's user avatar
-6 votes
1 answer
10k views

Sending Email from JavaScript with SMTP Server [closed]

I'm trying to send an Email within my JavaScript automatically if an if statement turns into an else. I have an SMTP-Server, but I really dont know how to implement that. Already tried everything I ...
Flacko's user avatar
  • 1
-6 votes
2 answers
479 views

Confidence calculation in association rule [closed]

supportData = {('ELF'): 0.75, ('CAT'): 0.75, ('BAT', 'CAT', 'ELF'): 0.5, ('ARK', 'BAT'): 0.25, ('ARK', 'ELF'): 0.25, ('CAT', 'ELF'): 0.5, ('DOG'): 0.25, ('BAT', 'CAT'): 0.5, ('BAT', 'ELF'): 0.75, ('...
user1785231's user avatar
-6 votes
4 answers
5k views

Displaying the total number of adjacent pairs in this program

Given an input char[] I would like to find the number of discrete pairs in the string. So for an input of: "dddd" the output is 2 pairs "ddd" the output is 1 pair "dd" the output is 1 pair "d" the ...
JDS's user avatar
  • 5
-6 votes
5 answers
3k views

Index and length must refer to a location within the string ASP.NET [duplicate]

I have method public static string UrlImageName(string name) { if (name.IndexOf("_180x140") <= 0) { var extPos = name.LastIndexOf("."); return name....
user246340's user avatar
-6 votes
1 answer
606 views

HTTP call using Observable not working

In the function below, I have two calls to the server, one using Observable and the other using Promise. The call using Observable does not reach the server but the one using promise does. Any idea ...
koque's user avatar
  • 1,984
-6 votes
3 answers
496 views

Can I convert char*[20] to char[][20]?

I've corrected the program by myself now. this is still the -Never- answered question: I have a 2D array of chars that will contain a word every array. I split a char* word by word with a function to ...
PrometeoPrime's user avatar
-6 votes
1 answer
79 views

Turns all the char words in the opposite way using getline, array in c++

char reversevirkne(char virkne[]) { int apgriests, x = 0; for (int i = 0; virkne[i] != '\0'; i++) { x++; } x--; for (int j = x; j >= 0; j--) { apgriests = (int)...
reinsd17's user avatar
-6 votes
3 answers
6k views

print all possible strings of length p that can be formed from the given set [closed]

Given a set of characters and a positive integer p, I have to print all possible strings of length p that can be formed from the given set. for eg: if the set is {a,b} and the value of p is 2 ...
user2556926's user avatar

15 30 50 per page