Questions tagged [partial]
Existing only in part; incomplete.
1,475
questions
-3
votes
0
answers
15
views
Which is the partial derivative with respect to [closed]
enter image description here
please help me to find the partial derivative of lag and sigma notation form
0
votes
0
answers
8
views
Node.js - EJS - including a partial : error : Could not find the include file "partials/navbar.ejs" in nodejs app
Could not find the include file "partials/navbar.ejs" in nodejs app
about Node.js - EJS - including a partial
Could not find the include file "partials/navbar.ejs" in nodejs app
...
0
votes
0
answers
15
views
CoverFlow effect width 3 slides in react slick
I need to create a slider like the one that is in the image Slick Slider.
the first element should be the 3rd slide, active. Other two slides need to be behind the first one on the left side, as ...
0
votes
0
answers
12
views
Creating a new data frame 3 based of partially matching values between data frame 1 and data frame 2 (error due to more than 1 match)
I'm trying to do the following and running into an error due to more than one matching value:
My aim is to search values in df2 for partial matches to values from df1, and if a match, add the matching ...
0
votes
0
answers
14
views
Python pickling SSLContext TypeError when using tqdm
I have a generic method for handling parallelization using p_tqdm (similar to tqdm) and functools.partial to handle multiple input args, like:
from functools import partial
from p_tqdm import p_umap
...
0
votes
2
answers
23
views
How to create a partial type that return an error if too much information are given
I would like to create a type that can accept a partial object but that can also return an error if we give to that object extra properties.
I tried that but it doesn't work like i want.
type Object = ...
0
votes
2
answers
45
views
(Python) How can I print the function name of a partial function
I am running a process where I add failed functions to a list to be retried later. I use partial for this. Now I want to print what function is being retried.
Example Code:
retry_queue = []
def foo():...
0
votes
1
answer
26
views
Iterate over list of objects, which can be tuples or objects
I have a list of functions that all take a number, do something to it and then return transformed number, some of them accept extra arguments, some not.
def foo(num):
return num + 5
def bar(num, ...
1
vote
0
answers
27
views
Different results in partial correlation with packages ppcor and correlation (method="spearman")
I am running a partial correlation var1, var2 and var3 with pcor (package ppcor) and correlation (package correlation). Both with the spearman method but the results are different. Could someone tell ...
0
votes
1
answer
46
views
Powershell partial string comparisson
I'm currently stuck on a specific comparisson problem. I have two CSV files which contain application names and I need to compare both csvs for matching names. Of course that would be easy if the ...
1
vote
1
answer
13
views
I want to replace some wrongly assigned elements from the dataframe in python based on the previous elements
Station_ID
ID809086
t
ID809088
ID809089
.
.
ID809098
t
ID809100
.
.
.
Basically I want to replace all 't' with previous ID +1, such as t = ID809087 and ID809099 in above scenario. Thanks in advance
...
1
vote
1
answer
39
views
Rails : Named yield not rendering wit partial
I am trying to render a partial using a named yield. Here's my template
<%= render 'shared/remote_modal', modal_title: "bru" do %>
<%= content_for(:modal_content) do %>
<...
0
votes
0
answers
13
views
rails doesn't render javascript with Gist Data within partial for ajax request for
I'm learning rails and facing some troubles with understanding following issue.
I have partial _answer.html.slim
Within partial I'm checking if link is gist and render gist
-if link.gist?
= ...
1
vote
1
answer
29
views
Assigning a function with another function as parameter to a variable in Python
Let's say I have the following 2 functions:
def add(*numbers, squared=False):
return (sum(numbers) ** 2) if squared else sum(numbers)
def multiply(*numbers, half=False):
mult = 1
for i in ...
0
votes
1
answer
35
views
Git : partial copy of a repo, selecting multiple files and folders as will
I'm looking for a way to create a repo that would contain only selected files from its origin remote.
The functionnal need is TCing a game. I want to select only what I call the "core" files ...
0
votes
2
answers
25
views
C# Razor, repeated Partial pages in a web page use the same data instead of haveing their own data
I have a web page in which I want to display the same partial windrose chart 2 times with 2 different sets of data. However whatever data is returned for the 1st partial page is incorrectly used for ...
0
votes
1
answer
94
views
Specifying word boundaries for multiple string replacement with regex?
I'm trying to mask city names in a list of texts using 'PAddress' tags. To do this, I borrowed thejonny's solution here for how to perform multiple regex substitutions using a dictionary with regex ...
0
votes
0
answers
40
views
Partial KENDALL'S TAU-B (τb) correlation with bootstrapping
Is it possible to use partial KENDALL'S TAU-B (τb) correlation with bootstrapping?
I used SPSS syntax to run partial KENDALL'S TAU-B (τb) correlation. I followed steps of this website (https://...
0
votes
0
answers
23
views
Can I find partial match of multiple columns? Bioinformatics
*I am not sure if this is the right place to ask
I have a very large file of nucleotides of 20 different samples of fruit flies. In excel, I used and IF AND statement to find which rows matched among ...
-1
votes
3
answers
121
views
BeautifulSoup find partial string in section
I am trying to use BeautifulSoup to scrape a particular download URL from a web page, based on a partial text match. There are many links on the page, and it changes frequently. The html I'm scraping ...
0
votes
0
answers
125
views
MQL4 Partial Close orders and add a trailing stop
I've coded an algorithm that can enter multiple trades based on several signals from different indicators. I am now trying to figure out how to close half of my open positions (partial close) when ...
0
votes
1
answer
16
views
.htaccess redirect partial query string
I'm trying to redirect the following kind of URL:
https://my_store/product_thumb.php?img=images/my_image_example.jpg&w=120&h=120
to:
https://my_store/images/my_image_example.jpg
I tried the ...
0
votes
1
answer
24
views
How to pass a function with parameters being partially fixed to a higher-order function?
I want to pass function ols to the higher-order function moving (or rolling) as an argument with the first argument (the dependent variable) of ols fixed. For example, I have ols([1,2], [x(n),x(n-1),...
0
votes
1
answer
25
views
Elasticsearch and Searckick: Unable to get partial match on a joined field
I am trying to implement elasticsearch on Rails using Searchkick.
The goal is to search on 5 field of order, 2 of which are joined fields, and ideally partial matches using word_middle
For search_data
...
2
votes
2
answers
62
views
How to pass more than one parameters to render in rails?
Below is my review.html.erb:
<% provide(:title, 'All reviews') %>
<h1>All reviews</h1>
<ol class="reviews">
<%= render @reviews %>
</ol>
<%= ...
0
votes
0
answers
5
views
Sending variables via partial in symfony
I am told to do not define variables in template, instead define them in a partial and then retrieve them.
Let's say my _examplePartial.php looks like:
`<?php
$partial_a = 1;
$partial_b = 2;
echo &...
0
votes
0
answers
61
views
Calculate the partial derivative of the loss with respect to W parameter of the function dL / dW = (dL / dh) * (dh / dW)
def w1_linear_grad_W(x_input, grad_output, W, b):
"""Calculate the partial derivative of
the loss with respect to W parameter of the function
dL / dW = (dL / dh) * (...
0
votes
1
answer
104
views
Moving files into subfolders according to partial filename with VBA
I have been trying to move over 300+ pdf files to subfolders, which partially match filenames. The file names format is as follow:
Definition, PN 123456, SN unique
Definition(may change), PN 657634(...
0
votes
0
answers
9
views
how to make javascript print() in a partial view to work only once when that partial view is in for loop in mvc asp
Multiple partial views for an html page. In one of those partial view Javascript print function is there to print the page. But for a feature , calling these partial views in for loop,(to get the view ...
0
votes
1
answer
141
views
Google Spanner - Java Mutation - Delete rows with subset of composite key values
I have a requirement where I need to delete rows based on the subset of composite keys via mutation.
I have a table
CREATE TABLE FOO
(KEY1 INT64, KEY2 INT64, KEY3 INT64, VALUE STRING(100))
PRIMARY KEY ...
0
votes
1
answer
96
views
VBA / INDEX MATCH - Partial data
my macro takes a long time to proceed and sometimes Excel blocks.
Tab A: list of specific languages in the "Database" tab (column A ).
Tab B: list of some virtual profiles (column D) ...
-1
votes
2
answers
48
views
My partial array keeps adding the empty data C#
I'm new to C# and we need to create an array that can hold 100 scores. But it needs to also accept something smaller (txt file with numbers between 0-100). My issue is that even tho I add a txt file ...
3
votes
1
answer
542
views
Why do Object.values for a Partial Record have undefined typings?
When extracting Object.values from a Partial Record, the values are a union between what I would expect and undefined.
const example: Partial<Record<string, number>> = {}
const values = ...
1
vote
1
answer
34
views
How do I assign to a variable-specified key of a `Partial<MyInterface>` without an error that it can't be assigned to undefined?
In this TypeScript code, also repeated below, there is a function which builds up a partial object in the application's type system from component parts. However, it doesn't work with the noted error ...
3
votes
2
answers
41
views
Typescript Partial interface odd behavior
I ran across some code that looked completely wrong in a repo I'm working on. Below is an example of what I came across.
interface Car {
make: string
model: string
}
type SomeType = Partial<...
0
votes
1
answer
87
views
Application Record, variable in partial, Ruby on Rails 7
I have document with advertisement under _feed_ad.html in views/application folder and when I put there <% title @advert.name %> I get this error: undefined method `name' for nil:NilClass. ...
0
votes
1
answer
49
views
Why can't I assign to a variable-specified key of a `Partial<MyInterface>`?
In this TypeScript code, also repeated below, there is a function which builds up a partial object in the application's type system from component parts. However, it doesn't work with the noted error ...
0
votes
1
answer
50
views
IndexedDB composite index partial match
I can't find an answer to this anywhere.
I have an indexeddb composite index of a group id and a time, which I use to sort.
let tmp_CREATEDTIMEindex = texts.index('GROUP_ID, CREATEDTIME');
This works ...
0
votes
1
answer
85
views
Replace part of string in column DataFrame
Problem: Currently, I have a column of a dataframe with results like 1.Goalkeeper, 4.Midfield...and I can't change partially replace the string.
Objective: My goal is to replace it with 1.GK, 4.MD......
1
vote
0
answers
24
views
Partial compare two columns from different dataframe of different sizes and use data from a different column
I have two different dataframes of different sizes. Like below
df1 = pd.DataFrame(
{
"System": ["SYS1", "SYS2", "SYS3"],
"User"...
0
votes
0
answers
17
views
Load ng-include only once inside ng-repeat instead of loading for all the iteration
I am listing books using ng-repeat and the blocks have 4 includes inside the ng-repeat which is loading the includes for all the iterations is there any way to load include (ng-include) only once?
The ...
0
votes
1
answer
69
views
Generating a list with a list comprehension using partial string matches between two lists
I have a list of approx. 150 mineral names that don't quite match their equivalents in an approved list of several thousand mineral names; some of the mineral names in my list differ in some way from ...
0
votes
1
answer
179
views
Rendering partial and specific record with id in Ruby on Rails
I have a model - books. I can render all books with partial <%= render @books %>, where the output from the form is being processed. Then I get all records being printed to the index page. Now I ...
1
vote
0
answers
19
views
TypeScript key of Partial<T> aren't found in T [duplicate]
I made a quick playground, if you follow the link you should also see the errors, but here's the code:
const normalizeValue = (v: any): any => {
if (v === 'true') return true;
if (v === 'false')...
0
votes
1
answer
279
views
TYPO3 Render FLUID Template in Backend
I have an extbase extension with this TCA:
$GLOBALS['TCA']['tt_content']['types']['list']['previewRenderer']['items_item']
= \Vendor\Name\Backend\Preview\PreviewRenderer::class;
and this tsconfig:
...
0
votes
1
answer
91
views
template or partial inheritance with Vue.js
I'm making a client side website with only HTML+CSS+JS for my portfolio, I've been copy-pasting my header and footer in almost all the differents urls.
I would like to know if there is a way to avoid ...
0
votes
0
answers
21
views
Does the find command support partial filenames or patterns when using exec?
I'm trying to use find to unzip a lot of archives. I'd like to make sure the contents of each archive get extracted to their own unique directory that has the same name as the archive, minus the ...
0
votes
0
answers
27
views
recovering partial correlation coefficients for categorical variables in bambi
I'm using bambi and would like to recover the partial coefficients of categorical variables in a fitted multivariate regression model (similar to this example, but with categorical x vars). As a ...
0
votes
0
answers
35
views
How bad is partial load of association inverse side in Symfony 2?
In a Symfony 2.8 controller, I get a field data with an association inverse side named owners.
At this point I have $form->get('foo')->getData()->getOwners()->getInitialized === false.
...
1
vote
1
answer
85
views
Returning list of projects that are assigned to a person
I’m creating a project management template and I’ve bumped into problem.
I need to return a list of projects to 1 cell assigned to a certain member in a given time period (does project falls in a ...