Questions tagged [mixed]

259 questions
3
votes
1 answer

Coq: Create a super-type of boolean and nat

I want to create a list of mixed types of boolean and nat. This list must hold elements of some super-type: boat where every boolean is a boat and every nat is a boat. The problem I am having is that this super-type boat should have a boat_eq_dec…
Alexander Boll
  • 228
  • 1
  • 7
3
votes
2 answers

Python ndarray with elements of different types

I wanted to create an array to hold mixed types - string and int. The following code did not work as desired - all elements got typed as String. >>> a=numpy.array(["Str",1,2,3,4]) >>> print a ['Str' '1' '2' '3' '4'] >>> print…
3
votes
2 answers

JanusGraph:Some key(s) on index verticesIndex do not currently have status REGISTERED

I have some questions when I build a JanusGraph Mixed index. This is my code: mgmt = graph.openManagement(); idx = mgmt.getGraphIndex('zhh1_index'); prop = mgmt.getPropertyKey('zhang'); mgmt.addIndexKey(idx, prop); prop =…
juwuba
  • 73
  • 1
  • 9
3
votes
0 answers

Assembly how to compare strings

for a small assignment we have to compare strings we were given this code in C extern "C" { bool isStringEqual(const char *s1, const char *s2); } static char *testStrings[] = { "", "Test String 1", "Test String 2", }; #define…
Ryan
  • 433
  • 3
  • 8
  • 14
3
votes
0 answers

Unresolved PIRLS step-halvings error with Imer4 (binomial)

I am trying to run a model selection anlysis (with MuMIn and AICc) based on a set of mixed effects models with a binomial distribution family. My data looks like this (sorry for not posting it more elegantly) head of data And the saturated model…
Emm.
  • 31
  • 3
3
votes
0 answers

Loaded over a secure connection, but contains a form which targets an insecure endpoint

I am trying to eliminate mixed content from a forum (https://www.translatum.gr/forum/index.php) but I have a number of forms with insecure endpoints (they can be found in the Translatum tools tab on the left which is called through the "side.html"…
greektranslator
  • 499
  • 1
  • 6
  • 19
3
votes
0 answers

Chart.js mixed stacked and unstacked line charts

I can't seem to get this mixed chart to display correctly? I have three datasets for a stacked line graph, and another line graph that is not stacked. Here is my dataset code (the data is filled in with code). var barChartData = { labels:[], …
Brian Heilig
  • 592
  • 4
  • 16
3
votes
2 answers

Spring @RequestPart multipart/mixed Object errors

I am attempting to upload a file with additional parameters using RequestParts. I have the file uploading correctly; however, when I try and add in the additional parameters I get an error in response. My Controller: @RequestMapping(value =…
user856354
  • 273
  • 3
  • 6
  • 21
3
votes
3 answers

Python- Convert a mixed number to a float

I want to make a function that converts mixed numbers and fractions (as strings) to floats. Here's some examples: '1 1/2' -> 1.5 '11/2' -> 5.5 '7/8' -> 0.875 '3' -> 3 '7.7' -> 7.7 I'm currently using this function, but I think it could be…
Zach
  • 29,791
  • 35
  • 142
  • 201
3
votes
2 answers

JNI_CreateJavaVM crash my program without any message or exception

Recently I begin to use JNI in my project. Here is my code: options[0].optionString = "-Djava.class.path=."; memset(&vm_args, 0, sizeof(vm_args)); vm_args.version = JNI_VERSION_1_2; vm_args.nOptions = 1; vm_args.options =…
Wing Lee
  • 57
  • 1
  • 9
3
votes
3 answers

How to send multipart body in invite message?

How to send body with Cintent-Type: multipart/mixed in Invite message through Asterisk server? I am sending INVITE sip:205@172.22.212.66 SIP/2.0 Via: SIP/2.0/UDP 172.22.212.57:60754;branch=z9hG4bK1522237847 Max-Forwards: 70 From:…
Pomoinytskyi
  • 55
  • 1
  • 7
3
votes
0 answers

OpenCV Android initializing Mat crashing the application with unsatisfiedLinkedError

It seems like i am not able to use any of opencv variable or function it just crash with the following kind of error using only Mat outMat = new Mat(); this code when i am coding in java class. Exception Ljava/lang/UnsatisfiedLinkError; thrown…
wolvorinePk
  • 1,760
  • 5
  • 36
  • 67
2
votes
1 answer

C-Fortran Mixed Programming

I am working on a project where I have to use a Fortran library in C. In the Fortran library there is a common block containing a complex*16, 4x4 array. Now in C, a complex variable is simply a struct containing two elements and since it is…
Shaz
  • 273
  • 2
  • 6
  • 12
2
votes
2 answers

Mixed Programming Fortran and C

I am a Theoretical Physics research student, working in Cosmology. In course of my research I have use to rather huge library of Fortran codes and I used C for my programming needs. I have been able to link the two programs in numerous test files…
Shaz
  • 273
  • 2
  • 6
  • 12
2
votes
2 answers

How to preview asciidoc in vscode with a file with a yaml extension

I have a file which contains YAML at the top and asciidoc at the bottom. The yaml is surrounded by two lines of ---. The file extension is yaml which is required by the application where it's used. The only way i know to get a preview out of vscode…
ridilculous
  • 624
  • 3
  • 16
1 2
3
17 18