Questions tagged [user-defined]

253 questions
1
vote
1 answer

some maps lose user defined counters when running hadoop jobs

I have a Hadoop job and define several counters by myself. When I am running this job (numbers of map > 500), I found some map tasks lost the user defined counters, but the Hadoop built-in counters (like map input records) work fine. The problem…
user1573269
  • 363
  • 1
  • 4
  • 9
1
vote
1 answer

Profiling user-defined methods in android

Can't I use profiling for user-defined methods in android? I searched for my method name in the 'Find:' box of the profiling window. But, no use. I am using Eclipse 3.7.2 in Ubuntu 12.04. Any answers would be appreciated. Thanks in advance.
1
vote
1 answer

Setting user defined variables with joins

I have a query like below: Result gives @sold_count:=SUM(I.quantity) = 10, but @sold_count = 0, so calculations are all 0. What should be wrong here? SET @sold_count :=0; SELECT…
orhan bengisu
  • 323
  • 1
  • 4
  • 12
1
vote
1 answer

MFC - How to send messages between 2 different Views

I have 2 CView-derived classes, CThumbView and CMainView. The CThumbView class displays thumbnails of images and the CMainView class controls the View that displays the original image. I want to display the first thumbnail and its original when my…
esh
  • 2,842
  • 5
  • 23
  • 39
1
vote
6 answers

Ideas on how to make user-defined variables within a Java program?

I am new in Stack Exchange, and I have been looking around for quite a while, with no answer. In my free time I am creating a matlab/like program in Java, I have noticed that I need to create a way of allowing the user to create its own variables…
GrGom
  • 68
  • 9
0
votes
1 answer

SQL Server, table-valued functions slow processing

I tried everything but I couldn't overcome this problem. I have a table-valued function. When I call this function with SELECT * FROM Ratings o1 CROSS APPLY dbo.FN_RatingSimilarity(50, 497664, 'Cosine') o2 WHERE o1.trackId = 497664 It…
emrahyigit
  • 115
  • 1
  • 8
0
votes
1 answer

Allow users to create their own categories and add items to it

I want to allow any user to create a category using a text field. I want to let them create any number of categories they want, with any name they want. The problem is I have no idea how to set up the tables to accomplish this. I know the PHP to…
Jed Grant
  • 1,305
  • 1
  • 17
  • 47
0
votes
1 answer

set android app background to picture or live wallpaper

I was recently told to convert my flash app over to a tablet. So I only just started coding in the java language. I am going to have a default picture set as the background. However, if the user wishes they would be able to change the the background…
jc.021286
  • 220
  • 1
  • 4
  • 15
0
votes
2 answers

user defined data type in mysql with java

lets say i have a class named myClass1 and i have another class myClass2 such that myClass1 contains a collection of myClass2... storing this in java is very easy. i was wondering how can we do that if the values needs to be stored in a table in…
Arifah Azhar
  • 227
  • 1
  • 5
  • 17
0
votes
1 answer

Mysql 8 problem with user-defined variables

I'm migrating my PLs from MySQL 5.7 to MySQL 8. When I was starting with MySQL 5.7, I found a recipe to find gaps and repetitions in a number sequence. In my table, it must not have gaps. It's right 1,2,3,4,5,6... but not 1,2,3,5,6... (4 is…
yaki_nuka
  • 724
  • 4
  • 26
  • 44
0
votes
0 answers

Is it available to define a class or struct in user-defined-commands of GDB?

In a user-defined commands of GDB, is it possible to define a struct? If not, any workaround? e.g. define myFunc # something like this typedef struct { int32_t f1; int32_t f2; ... } MyObj; end If use "typedef struct" in GDB,…
Cary Xu
  • 11
  • 2
0
votes
0 answers

The compiler generated default constructor is not used if we create a user-defined default constructor, this process is called as..?

The compiler generated default constructor is not used if we create a user defined default constructor, this process is called as..? Like how we have constructor overloading, function overriding.. does cpp name this one. is it overwriting the…
0
votes
1 answer

mapping user-defined class as key to other user-defined class in C++

I have created two classes: Bank and Account. I would like to use std::map bankAccount, like this: bankAccount.insert(std::make_pair(bank1, account1)); but I get several compile-time errors. I know how to use map or…
0
votes
1 answer

5.8 LAB: User-Defined Functions: Max magnitude

Define a function named MaxMagnitude with two integer parameters that returns the largest magnitude value. Write a program that reads two integers from a user, calls function MaxMagnitude() with the inputs as arguments, and outputs the largest…
Zalias
  • 1
  • 1
0
votes
0 answers

How to directly compare two lists of integers with that are in different functions in Python

I am currently working on a class project, and it deals with user-defined functions. I had to get the grid size of an array and put them in a list, as [row, columns], and then there is another function where they check by putting random integers in…