Questions tagged [user-defined]

253 questions
0
votes
1 answer

Errors creating user defined function specific to my code

The below chunk of code is used for an analysis of water chemical composition for all the districts in a particular state of india through 2009:2012 train is the parent data Quality.Parameter gives info on chemicals state_1 <-…
danishxr
  • 69
  • 2
  • 12
0
votes
1 answer

Postgresql user defined c function issues

I have installed postgresql in my ubuntu 14.04 with apt-get command.. postgresql 9.4 libpg 9.4.8 I want to add a user defined c function for dynamic loading. I have my c file and sql function file ready as per specification but main problem is that…
0
votes
0 answers

Notepad++ highlights middle of name because of keyword?

I have a custom language defined in Notepad++, which has a few "open/close" folding delimiters. Openers are: define do if Closers are: endmethod endfunction endobject enddo endif But when I create the following text, the "if" part inside of the…
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214
0
votes
0 answers

Exclude certain words from Notepad++ folding in userdefined language

I am using Notepad++ to program in Julia. I am using a custom userdefined template in order to highlight certain syntax as well as fold certain code blocks. In particular, I am using the "Folding in code 2 style (separators needed):" box, which is…
0
votes
0 answers

php - User-defined function not being called

So I'm trying to construct a program to assist me with simulating/tweaking my drone flights, and the starting point is calculating accurate distances between coordinates. So I'm employing some php that I found but I can't "get off the ground." After…
Luteser
  • 57
  • 1
  • 6
0
votes
1 answer

User-defined conversion operator doesn't work on references

I have a simple primitive type wrapper: template class Scalar { public: explicit Scalar(T value) : value{value} {} Scalar(Scalar&& other) = default; Scalar& operator=(Scalar&& other) = default; Scalar(const Scalar& other) =…
misev
  • 349
  • 3
  • 11
0
votes
1 answer

C++ how to pass object data into user defined conversion operator

I am doing some workshop for C++ and I am at loss on cast operator conversion. I am trying to display an double value by using object's data. class object { int x; int y; public: operator double(); } the workshop is to take the result…
OnesQuared
  • 79
  • 6
0
votes
1 answer

Extendable Diagram Tool

I need a Diagram Tool with ability to extend set of diagram types and diagram primitives and save them as templates for future use. User-scripted exports or export formats for my diagrams would be nice, too. For example, I want to make something…
topright gamedev
  • 2,617
  • 7
  • 35
  • 53
0
votes
0 answers

Prompting user for variables in a function

I have created a python script with a selection of functions for image processing. Each of these functions require variables to be inserted into them by the user. I'm trying to work out how to prompt the user to define the variables for the function…
0
votes
4 answers

How do I query an object collection using user defined conditions?

Sorry if this is a little abstract. I'm in the early stages of development. I have two object types: An object that needs to store a series of user defined conditions. An object that matches zero or more of the conditions defined in the first…
Kenneth Cochran
  • 11,954
  • 3
  • 52
  • 117
0
votes
5 answers

How do I create a user-defined method that returns the length of a string?

I am trying to write a program that takes a user's input and outputs the number of characters they typed in. I have to do this by creating a method that calculates the amount of characters, then call that method in main to output the results. I was…
J Learning
  • 53
  • 1
  • 2
  • 8
0
votes
1 answer

Can we use any user defined encryption method to create user password in CakePHP?

Can we use any user defined encryption method to create user password in Cake PHP, if yes in which files I need to modify?
0
votes
0 answers

First Line of Code: User-defined type not defined

I am a very new user and am trying to open up three workbooks and copy the same cell range of the three books to three different ranges in a fourth book. I have done a good amount of troubleshooting but I cannot find anything to help fix this. The…
EJO
  • 1
0
votes
1 answer

I am trying to write a sample user define function that will plot, but having issues

import numpy as np import matplotlib.pyplot as plt x=np.array([1,2,3,4,5,6]) def linear(a,b): return a*x+b plt.plot(x,linear(a,b)) plt.show() linear(2,4) It just gives me the output [6,8,10,12,14,16] but not a plot. I cannot see what's…
Kedy
  • 33
  • 3
0
votes
3 answers

How to fill a custom typed List<> from SQL Server

I have a class named Author.cs defined as: public class Author : Interfaces.INode { private List _targetList; private List _attributeObject; // Author class Constructor public Author() { _targetList…
maliks
  • 1,102
  • 3
  • 18
  • 42