Questions tagged [mixed]

259 questions
42
votes
3 answers

How to JsDoc a "mixed" type?

Simple question, how do I document that "Mixed-type"? I know I could just list all possible types like {null|undefined|String|Number|Object} and end up finding myself missing one and making it overly complex. I tried using the Mixed keyword, but it…
Tower
  • 98,741
  • 129
  • 357
  • 507
23
votes
3 answers

How to use mixed parameter type in my own functions?

I want to define a PHP 7 function that takes a parameter of mixed type. (What I want is the equivalent of a generic type parameter in C#; if there's a better way to emulate that in PHP 7, please let me know.) My code is as follows.
FSharpN00b
  • 933
  • 1
  • 8
  • 17
22
votes
7 answers

how to select max of mixed string/int column?

Lets say that I have a table which contains a column for invoice number, the data type is VARCHAR with mixed string/int values like: invoice_number ************** HKL1 HKL2 HKL3 ..... HKL12 HKL13 HKL14 HKL15 I tried…
CairoCoder
  • 3,091
  • 11
  • 46
  • 68
18
votes
4 answers

Mixed Content The page at was loaded over HTTPS but requested an insecure resource This request has been blocked the content must be served over HTTPS

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure resource ''. This request has been blocked; the content must be served over HTTPS.
hemant rao
  • 2,233
  • 2
  • 13
  • 14
14
votes
3 answers

JAXB XJC compiler disregarding mixed=true on XML Schema documents

XJC seems to be completely ignoring mixed="true" on my XML Schema elements thereby not allowing me to extract text content. From the sample XML below, I need to be able to extract "Title Text." Without mixed="true" being recognized, no accessor is…
Kaleb Pederson
  • 45,767
  • 19
  • 102
  • 147
12
votes
1 answer

Mixed type and mixed array type array Object[] in java not compiling

Here is how it looks like public Object[] settings = {true, true, false, 1, true, false, 10, 10, 20, false, false, false, false, false, {true, true, true, true}}; Error: illegal initializer for java.lang.Object In another IDE I get this…
user3435580
  • 566
  • 1
  • 4
  • 15
12
votes
1 answer

In scikit learn, how to deal with the data mixed with numerical and nominal value?

I know that the computation in scikit-learn is based on NumPy so everything is a matrix or array. How does this package handle mixed data (numerical and nominal values)? For example, a product could have the attribute 'color' and 'price', where…
11
votes
3 answers

Java - Mixed ArrayLists?

Is it possible to store a mixture of object types in an ArrayList? If so how? This is what I have tried so far: List list = new ArrayList(); list.add(new String("Hello World")); list.add(new Integer(1)); list.add(new Long(1l)); for…
travega
  • 8,284
  • 16
  • 63
  • 91
10
votes
4 answers

Facebook 'Like' button breaks https/SSL

On an e-commerce website I maintain, I added a Facebook 'Like' button per the instructions here: http://developers.facebook.com/docs/reference/plugins/like I am using the iframe method:
Android Eve
  • 14,864
  • 26
  • 71
  • 96
9
votes
3 answers

check if is multibyte string in PHP

I want to check if is a string type multibyte on PHP. Have any idea how to accomplish this? Example: Maybe(…
Olaf Erlandsen
  • 5,817
  • 9
  • 41
  • 73
9
votes
1 answer

sqlalchemy how to using AND in OR operation?

i need to do this query: SELECT * FROM tbl_member WHERE (member_type==1 AND member_status==1) OR (member_type==2 and member_status==2) i've tried: q=session.query(tbl_member) \ …
nick.xu
  • 103
  • 1
  • 1
  • 4
8
votes
2 answers

Best Product to Obfuscate a Mixed .NET DLL

I have a .NET DLL and application. The DLL is written in C++/CLI and it's "mixed", i.e., partially managed code and partially native. I have two goals: 1. Obfuscate all the managed code so it can't be disassembled 2. Obfuscate the public…
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
7
votes
3 answers

Final managed exception handler in a mixed native/managed executable?

I have an MFC application compiled with /clr and I'm trying to implement a final handler for otherwise un-caught managed exceptions. For native exceptions, overriding CWinApp::ProcessWndProcException works. The two events suggested in Jeff's…
Aidan Ryan
  • 11,389
  • 13
  • 54
  • 86
7
votes
1 answer

Questions about converting a mixed-encoding file to UTF8 in Perl

I'm in the process of converting files generated by the ancient DOS-based library program of our university's Chinese Studies Department into something more useful and accesible. Among the problems I'm dealing with is that the exported text files…
screen12345
  • 117
  • 1
  • 6
7
votes
1 answer

How to do stepwise model with random effect (lme4 + lmerTest?)

I am trying to perform a stepwise model with a random effect, of which I can get a BIC value. The lmerTest package said it works with lme4, but I can only get it to work if I remove one of my independent variables from the model (which is a factor…
1
2 3
17 18