Amy-Amy

1

votes
1

answer
45

views

How to create a Dynamic Sequence based on another field?

I want to create a dynamic sequence for products based on the field category_id. I've added a category_code in product.category. But once I call it inside the create function, it returns False: class ProductProduct(models.Model): _inherit = 'product.product' @api.model def create(self, vals): if 'de...
Amy
1

votes
2

answer
53

views

SQL CASE WHEN (1=1) What is the 1=1 doing?

I have a SQL statement that I did not write and I am trying to get my head around it. CASE WHEN (1 = 1) THEN A.AMT WHEN (A.ACC_NO = '1') THEN A.AMT - 100000000 WHEN (A.ACC_NO = '2') THEN A.AMT - 100000000 WHEN (A.ACC_NO = '3') THEN A.AMT - 100000000 WHEN (A.ACC_NO = '4') THEN A.AMT - 100000000 WHEN...
Amy
1

votes
2

answer
213

views

Error in sending email in Anypoint Studio (MuleSoft)

Everytime I try to send an email in AnyPoint Studio I get an error. I've tried sending it from other computers and it always works. It just doesn't seem to work in mine and I have no idea why. This is my .xml: When I open the browser and type localhost:8081/sendemail, no email is sent and the browse...
Amy
1

votes
1

answer
268

views

error: command 'gcc' failed with exit status 1 while installing pycrypto on RHEL

I am trying to manually install Crypto module for Python (pycrypto) on RHEL. However, I seem to always get this error after I run the build command (i.e. python setup.py build): error: command 'gcc' failed with exit status 1 Does anyone know how to solve this problem?
Felicia Amy
1

votes
0

answer
48

views

How to absolutely avoid locking a source table?

Background: I'm pulling data out of IBM's Filenet P8 Workflow database. Each time the P8 content engine makes a change to a stored document, it emits a record to my source table. Every change is recorded in this table. My task is to use this data, find the most recent version of the metadata for...
Amy
1

votes
0

answer
20

views

Visual Studio 2015 gulpfile bindings per user

At the top of our gulpfile, I have this line: /// Our gulpfile is in source control. Another developer would like to call the default gulp task on a build, while I do not. Is it possible to have per-user gulpfile bindings in Visual Studio 2015? If so, how can this be done?
Amy
1

votes
0

answer
198

views

Lightbox2 - How to add a description to the open image (not caption)

I'm having some trouble adding text to the open lightbox image using HTML and CSS. I thought it was a caption but eventually figured out that's not it. Here's myy code: Currently theres no CSS as everything I've tried has failed so I've gotten rid of the code I don't need. But the text needs to be w...
Amy Lee
1

votes
1

answer
102

views

Download a PDF automatically once page loads

I need a PDF to download automatically once a page loads. I didn't think this would be that complicated. I am not a developer. I just work in marketing. So this might be super obvious. I found some javascript code on this thread and I gave it a try but it redirects the page you're on to the PDF - i...
Amy Montgomery
1

votes
0

answer
67

views

How to call a method from a specific thread context using JVMTI and JNI?

We are using JVMTI and JNI to issue static method calls in method entry and method exit callbacks of the JVMTI. We have a need to be able to call a static method on a Thread Context other then the Thread Context that JVMTI has issued the callback on for the method entry and method exit callbacks. T...
Amy
1

votes
1

answer
45

views

Per Request Error Handling Policy

I'm attempting to follow this 2013 guide on setting up per-request error handling policies. If the request is local, display the error information. If the current user is in the IT group, display the error information. For everyone else, don't show errors. My code: public class PerRequestErrorPolicy...
Amy
1

votes
3

answer
289

views

How do I search a Firebase database reference for a certain value from children within children within children?

I'm trying to search for a certain value within multiple children within a Firebase database. For example, I have a database called collections, which contains different collections. Those collections contain different plants, and those plants contain plantTags, which contain certain values that I'm...
Amy
1

votes
1

answer
32

views

Makefile possibly wrong, undefined reference to function in C

Trying to compile my program which has three source files called hencode.c, hdecode.c and htable.c. The htable.c file contains all the functions that the former two files use and the htable.h file contains the prototypes. This is my Makefile, but I keep getting an undefined reference to 'function' e...
Amy Wilson
1

votes
0

answer
49

views

Remove all rows of a category if zero in a % of cases

I have the following data set of weekly retail data ordered after Category(e.g. Chocolate), Brand (e.g. Cadbury's), and Week(1-208). CBX is a unique global identifier for each brand. Category Brand Week Sales Price CBX 33 2 1 167650. 2.20 33 - 2 33 2...
Amy
1

votes
1

answer
570

views

Adding a unit to y axis labels in plotly.js

I'd like to add a unit to the y-axis tick labels in plotly.js. How might I do this? Adding a ticktext and tickval property for yaxis layout doesn't seem to have the effect I thought, as it does with an xaxis.
Amy
1

votes
0

answer
34

views

Amazon Alexa Entity Resolutions: Is it possible to have more than one AuthoritiesPerResolution?

When you have an entity resolution (slot-filling with SlotTypes that have the same synonyms) , how many AuthoritiesPerResolution are you able to have? Is there any case where having multiple AuthoritiesPerResolution is possible? What are the scenarios and conditions to get more than one AuthoritiesP...
Amy Li
1

votes
0

answer
964

views

How to set Development environment in V.S.Code?

I am using V.S Code to develop an Asp.net Core project. I tried to set the environment to 'Development' by setting it in cmd line with setx ASPNETCORE_ENVIRONMENT 'Development' or/and changing settings in Launch.json with 'env': { 'ASPNETCORE_ENVIRONMENT': 'Development' }, as showed in the attache...
Amy Zeng
1

votes
1

answer
132

views

How to give inputs and output responses not using dialogflow in a chatbot?

I am developing a chatbot using dialogflow for a website. 1)I wanted to know if there is other way to give inputs and output responses not using dailogflow platform , as the login is mine in the dialogflow and the officials want to use that chatbot for their site and put their inputs and outputs. 2...
amy
1

votes
0

answer
33

views

Empty Pop up Error in Qweb Odoo

Hi I'm having a problem when I want to print a document , it gave me an empty pop up error ,So I can't see where the problem is . I mention that this problem happens only for qweb and with eclipse as a debuggor . Thank you
Amy
1

votes
0

answer
42

views

TypeError: 'list' object cannot be interpreted as an integer when calling a method from another class

I'm writing a code for an optimisation problem based on library found here metaheuristic-algorithms-python 0.1.6. I have 2 classes Search_FA: A python script I wrote to create an object with some parameters and pass it to the 2nd class below FireflyAlgorithm : a class that implements searching base...
Amy.Dj
1

votes
0

answer
19

views

I keep getting an error about the wrong number of arguments

I'm a student, and I'm trying to figure out what I have done wrong. Could anyone spot what I might have done? super(Fighter, self).__init__(modelPath, parentNode, nodeName, 0, 0, 0, 3.0, ) TypeError: __init__() takes at most 3 arguments (8 given)** Code: class Fighter(ShowBase, object): fighterCount...
Amy Walker
1

votes
0

answer
62

views

Using JSONPath to exclude nodes

Is it possible to use JSONPath to exclude nodes? For example, given the following variable { 'store': { 'book': [ { 'category': 'reference', 'author': 'Nigel Rees', 'title': 'Sayings of the Century', 'price': 8.95 }, { 'category': 'fiction', 'author': 'Evelyn Waugh', 'title': 'Sword of Honour', 'pri...
Amy
1

votes
1

answer
87

views

Frequency distribution of list against another column

I am trying to get the frequency distribution of column which is a list of words against the class labels. Label Numbers 0 [(a,b,c)] 0 [(d)] 0 [(e,f,g)] 1 [(a,z)] 1 [(d,x,y)] The output shou...
amy
1

votes
0

answer
58

views

svm negative(positive) semidefinite matrix in Rmosek

I tried to set up the svm by using Rmosek package, and I got a problem about using Rmosek. ## SET UP THE 'negative semidefinite matrix' ## K is the kernel ## m=nrow(X) qy1=t(matrix(Y,m,m)) qy2=matrix(Y,m,m) Q=qy1*qy2*K*-1 At this stage, I have already checked that Q is the negative semidefinite m...
Amy Chang
1

votes
1

answer
21

views

Checking Empty Edittext on the diskIO().execute method

I cant seem to check my Edit text for empty insertion into my database. Here is my code. I am using the TextUtils.isEmpty to check but I keep creating empty info when the user just clicks add. I want the button to send the toast message if it is empty. What am I doing wrong. public void onSaveButton...
Amy Khan
1

votes
0

answer
209

views

Fasttext UnicodeDecode issue

I am trying to load the fasttext file to use it as word embedding first time. I have this: KeyedVectors.load_word2vec_format(binary_file_path, binary=True, encoding='utf-8', unicode_errors='ignore') I also tried what is described here: https://datascience.stackexchange.com/questions/20071/how-do-i-l...
amy
1

votes
0

answer
46

views

Specifying the GPU ID using tensorflow backend

I am trying to train the two different models using GPU ID. I have tried the command CUDA_VISIBLE_DEVICES=1 python filename.py but it picks up the GPU 0 rather than 1. I also added the os environment variable in my code, but I got the same behavior. I am not sure how can I fix this as this is first...
amy
1

votes
1

answer
28

views

How to plot two different y value in ggplot?

I have a dataset look like this COUNTY == c(COUNTY1, COUNTY2, COUNTY3) PERC_2012 == c(5%, 6%, 12%) PERC_2017 == c(55%, 67%, 67%) data.frame(COUNTY, PERC_2012, PERC2017) How do I plot x = county and a separate line for perc 2012 and 2017? Thank you
Amy Chen
1

votes
1

answer
186

views

How to Loop Prorocess FFMpeg in Windows?

I want to install a watermark in all my videos. I have 25 videos. but I am tired when using ffmpeg 1 time 1 time. I want multi in 1 script. How to ? ffmpeg -i video01.mkv -i watermark.png -filter_complex 'overlay = 10: 10' output01.mkv ffmpeg -i video02.mkv -i watermark.png -filter_complex 'overlay...
Amy Bomer
1

votes
0

answer
20

views

How to split a node with even number of keys in B+ tree

I'm implementing a B+tree as explained in Fundamentals of Database Systems book What confused me is this case let's say we have a b+-tree with the following: Order=4 Max keys=3 keys to be inserted: 2,4,7,10,17 following the algorithm, I know that when a nodes becomes full we split Now, my solution i...
Amy.Dj
1

votes
1

answer
31

views

Replace special character with lapply and gsub in rstudio

I am trying to clean up my data by applying the following codes: Manuf
Amy Chen
1

votes
0

answer
29

views

How to translate installer created with pre-built Qt installer framework regardless of OS language

I'm trying to have a translated version of my installer which I've already created using a pre-built version of Qt installer framework, but the documentation is Inadequate and I need to know where I should put the translation file(en.qm file which I've translated to the destination language) I've t...
Amy jonas
1

votes
0

answer
24

views

Reloading Children Upon Database Change with React

I am still a major React beginner (self-learning) and can't seem to figure out how to reload a component's child elements when the database changes. Right now my set-up goes by the following image: Component Layout Example. I have three components contained in one larger component called Contact....
Amy Dixon
1

votes
0

answer
50

views

Selenium Webdriver loop over iframe

I am trying to webscrape an iframe object containing a list of links. The ultimate objective is to perform a series of actions, same for each link, that leads to downloading some data in xls format. For each of the links in the iframe, I want to automate the following actions: click on the link sel...
Amy D
1

votes
2

answer
45

views

Find index of a list where that list is part of a larger list

I have various complex lists such as lista = [3,4,[5,[1,2],0] listb = [[3,4],0,[1,5],2] I need to find the position of the items in the top list. My output would be item, index for the first list: 0 3 1 2 2 2 3 0 4 1 5 2 So 5,1,2 are in position 3. In the other list: 0 1 1 2 2 3 3 0 4 0 5 2 The num...
Amy
1

votes
1

answer
35

views

how to print the date in french as follows: Fri 29 Mar 2019 22:53:00

I want to print the date as follows (Ven 29 Mar 2019 22:53:00) but the result is the following (ven. 29 Mar 2019 22:53) the v is in tiny and there is a point after the ven I use the following code to get the date in french Evaluate locale.setlocale(locale.LC_ALL, 'French') locale this is the s...
Amy
1

votes
1

answer
3.9k

views

Mootools addEvent not defined

I'm trying to use this code to add an anchor element and set it's onclick event to some Javascript. But no event is being loaded. Looking at the DOM through Firebug tells me that Mootools is indeed added. The element has almost all of the Mootools element functions. But it lacks addEvent. var de...
Amy
1

votes
2

answer
349

views

Nested Objects With YUI and Javascript

I am working on a Javascript object that contains some YUI objects. The key thing is, my object needs to contain it's own set of YUI tabs so that I can display multiple instances of my object on the same page and have the tabs control their own object instance. I set it up as follows: var Schedul...
Amy Anuszewski
1

votes
1

answer
366

views

Ironpython - Named parameters to constructor

When I create an instance of my C# class in IronPython with named parameters to the constructor, it is setting properties corresponding to the names of the parameters. I wish to disable this behavior so I can have better control on the order the properties are evaluated. Is this possible?
Amy
1

votes
2

answer
2.7k

views

Displaying accents in PHP on data pulled from MYSQL

I'm pretty sure I'm missing something basic, but I can't figure out what it is. Everything should be default characterset (I haven't specified or changed anything) which I assume is Latin1. This should be fine as all the characters I need are in Latin1 (most questions seem directed at changing cha...
Amy
1

votes
1

answer
976

views

Hadoop DFS is pointing to current directory

A few months ago, we installed CLoudera Hadoop 3 in our local machine and everything was fine. Recently we also installed Whirr to start working with clusters. Although we faced some problems, after a while, we can start up a cluster, log into its master node and commence work. However, I found out...
Amy

View additional