# type foo = Foo of int * int # let t = (1, 2) # Foo t Error: The constructor Foo expects 2 argument(s), but is applied here to 1 argument(s) How is it that I must do Foo (1, 2) to avoid that error even has the appropriate type?...

I have dumped an A31 image with the help of my colleages in the netherlands. World First root@plox atrage -u image.img unpacking image.img to image.img.dump Extracting: COMMON SYS_CONFIG100000 (49319, 0) Extracting: COMMON SYS_CONFIG000000 (3101, 0) Extracting: COMMON SPLIT_0000000000 (512, 0) Extracting: BOOT BOOT0_0000000000 (24576, 0)...

I have a method like this: -(void)processSomeNumeber:(int *)number NSLog(@"show me the number %d", number); But I'm getting this error: "format specifies type int but the argument has type int *" Does anyone know why or how I can fix this?...

I am attempting to get vimclojure working for the first time. I am fairly new to vim plugins. I'm having some problems (error messages below) and am looking for some hints at the least. Not much idea where to start. I am trying to following the steps from How I tamed VimClojure as well as inspecting VimClojure-Easy When I start vim, I am...

The cosmological argument is an argument for the existence of a First Cause (or instead, an Uncaused cause) to the universe, and by extension is often used as an argument for the existence of an "unconditioned" or "supreme" being, usually then identified as God. It is traditionally known as an argument from universal causation, an argumen...

I want to essentially do the following (which is probably dangerous and what not) just for the heck of it: int main() { int x = 0x00ff00ff; printf("Value at addr x: %x\n",*x); return 0; Basically take a look at the contents of a certain address in my machine. Maybe write to it. I'm guessing I'm not allowed to do the latter. Th...

Cannot define ArrayList<char> as argument of validate . Why it cannot be done? When trying ArrayList<?> it works. Why? Should ArrayList<?> be used instead of ArrayList<char> ? What is the difference? public boolean validate(ArrayList<char> args){ ... } Error: Syntax error on token "char", Dimensions expect...

I want to put out an error message when the uploaded image size is over 3MB. This is my current code. It should put out an error message when an image is over 3MB, but it does nothing. What's wrong with my code? if ( $_FILES['file']['size'] != 0 ) //image check start if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["ty...

Twitter's Scala school collections section , they show a Map with a partial function as a value: // timesTwo() was defined earlier. def timesTwo(i: Int): Int = i * 2 Map("timesTwo" -> timesTwo(_)) If I try to compile this with Scala 2.9.1 and I get the following: [error] ... missing parameter type for expanded function ((x$1) => "t...

If I want to declare a newtype such that type type of the value is constrained to have an instance for a type-class, it seems like I can do that with: {-# LANGUAGE RankNTypes #-} newtype ShowBox = ShowBox (forall a. Show a => a) GHC compiles that just fine, but when I try and actually use ShowBox with ShowBox "hello" I get a compiler...

argparse4j is Java port of the Python argparse commandline argument parser. Changes: This release fixes a bug where an argument was processed twice with concatenated short options. The following new features were added: argument/sub-command abbreviations, usage text override, ${prog} substitution in version text, sub-command aliases, and...

I am trying to create a method that could return a list of different type of data. The type argument is to identify which type of data need to be processed and returned getListedData(Class type). I also wrote a private method createList(Class type, List list, String flag) that could be used by all type data to create the list. The code is...

I'm writting an app in metro(xaml + c#) and i have fatal error witch source i can't find: System.ExecutionEngineException was unhandled Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module. It came when i push the buton and open new frame. Wierd is this that when i run this app on my laptop...

I use python/suds to implement a client and I get wrong namespace prefixes in the sent SOAP header for a spefic type of parameters defined by element ref= in the wsdl. The .wsdl is referencing a data types .xsd file, see below. The issue is with the function GetRecordAttributes and its first argument of type gbt:recordReferences File: b...

I am playing around with tool development in Valgrind and am getting the following error: valgrind: mmap(0x8048000, 4096) failed in UME with error 22 (Invalid argument). valgrind: this can be caused by executables with very large text, data or bss segments. but my executable has nothing but simple variable assignments. I am not able to un...

I am trying to solve a problem with plupload where i show an error in the upload window, generated by upload.php. No matter what i do, i am not able to create the error icon in the window. Although the alerts work fine, the file is always marked as success. Can someone please tell me what am i doing wrong here? The error from my upload.ph...

Ive been trying to get the window to pop up just the black canvas but iget this error Exception in thread "main" java.lang.Error: Unresolved compilation problems: Game cannot be resolved to a type JFrame cannot be resolved to a type Jframe cannot be resolved to a type JPanel cannot be resolved to a type JPanel cannot be resolved to a...

According to the Meteor documentation.... collection.insert(doc, [callback]) callback Function Optional. If present, called with an error object as the first argument and the _id as the second. ...then later down... On the server, if you don't provide a callback, then insert blocks until the database acknowledges the write, or throws an...

I have just updated to osx 10.73 and updated xcode 4.2. I'm now getting an error on validate in xcode; it's saying that my icons are the wrong size (when they are not) and it's giving me a warning that my launch images for ipad are the wrong size (when they are not). I have had my designer re-check the images, and I have re-checked the im...

I'm trying to create the method stubs for the following webservice http://playground.bioid.com/Content/BWS/ www.bioid.com.2011.12.bws.wsdl (cloud based WCF using SOAP protocols) using wscompile. When i run the command wscompile -gen -cldc1.1 config.xml i get the following errors error: Found unknown simple type: byte[] error: Found unknow...

I am trying to combined these two script (a file upload) and (a mysql update) so that the image file is both uploaded to the correct folder and the file path is then updated in the mysql database. I know the $sql update query is wrong and thats where my trouble is. Any help would be great. //db connection require "connect.db.php"; if ((($...

I'm having several problems regarding OpenCL (total noob) but I think that if I manage to solve this one I will be able to solve some of the other. I have the following kernel that I want to store in a double array the a number calculated by the data of a struct. The argument that I pass to the kernel is a struct array and is initialised...

My goal is get a json like "meta": { "error_type": "error type", "code": 400, "error_message": "error msg" in case something to wrong. I tried to put the try catch block both in the action rest controller and in the model but I get the whole exception stack (I mean with the layout + view) What's the right way ?...

I have just started learning Java and I recently got a homework question which I'm unsure of how to do. Firstly, I have to grab a number from the argument. Then I check if its a multiple of 5 (0 is counted as a multiple of 5). IF a multiple of 5, I type "it is a multiple of 5" IF not, I type "it is not a multiple of "5". Code: public clas...

I have a web project working perfecly on my web server and on my local machine. I sign up on another server provider because I need to migrate my application to a better place, and when I run my application I am receiving this error message: the conversion of a varchar data type to a datetime data type resulted in an out-of-range value Bu...

Hello, I am looking for blank sports bras that are acceptable for printing (besides Pizzazz). I am also looking for women's 'trendy' muscle tanks and cropped sweat shirts. I'm not sure if I am Googling the wrong words, but I have had zero luck in finding either. The muscle tanks I find are usually the sports related ones. The sports bras...

Hi gang, appreciate any help! I am an old NC coming back to 3.0 and excited about the changes! I was working on my network and decided to delete the Videos page from the navigation and site. Now the network doesn't load and I receive this error message. Warning: array_merge(): Argument #2 is not an array in /apps/bedazzlemain/lib/sprouts/...

I've spent quite a bit of time trying to get an expat based sample program to compile. I was receiving the following error message when I tried to compile gcc -Wall -lexpat line.c -o blah line.c: In function ‘main’: line.c:99:8: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘XML_Size’ [-Wformat] /tmp/ccUa3vf...

What if I want to have a variable, say a List, which can be instantiated with any Type? So, given: List list; I could do any of these: list = new ArrayList(); list = new Vector(); list = new LinkedList(); Eclipse gives me this error when I want to do the above: List is a raw type. References to generic type List should be parameterized Wh...