text stringlengths 15 59.8k | meta dict |
|---|---|
Q: how to calculate recall fast and correct with duplicate document id's python 2.7 I have two tsv data files (gold and results) with four columns and I would like to calculate the recall score. Here is the format of the gold file:
(doc1) 173 174 mike
(doc2) 189 194 sara
(doc2) 189 194 mike
(doc2) 200 207 car
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52407630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: excel show/hide group based on combobox selection I need some help to figure out how to unhide/hide a group based on an activeX combo box selection.
I currently have two groups (group_1 and group_2) and a combobox (activeX) with two selections (2021-2022 and 2022-2023).
When 2021-2022 is selected from the drop down,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72816584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting TypeError trying to open() a file in write mode with Python I have a Python script that in my mind should:
*
*Open a file
*Save its content in a variable
*For each line in the variable:
*
*Edit it with a regular expression
*Append it to another variable
*Write the second variable to the original f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59020487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Breaking on a deadlock between multiple startup projects in Visual Studio I have multiple startup projects in my client/server solution. The server is a Console app and the client is a WinForms app. The server/console is launched first in case that matters.
Now there is a deadlock caused by some synchronization clie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20451007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML5 tag as container bad for SEO? I'm trying to use the <a> tag in HTML5 more as a container as this tag can now have block elements as children, example:
before (valid XHTML 1.1)
<div>
<h3>
<a href="page.html" title="article title">article title</a>
</h3>
<p>
text
</p>
<a href="pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8383846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: how to pass pointer to a method as another method argument All!
I have some class hierarchy
class A {public: virtual void foo(int, T*) = 0; virtual void foo1(int, T*) = 0;};
class B : public A {public: void foo(int, T*) override; void foo1(int, T*) override;};
class C : public B {public: void foo(int, T*) override;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25670766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: looking for maximum in the array of structs I'm just a beginner in the learning stage.
I am supposed to arrange a struct of point (x,y,z) so that structure p[n] has the point with the greatest x stored in it. Is my method correct? If not, are there any simper methods to do this?
struct point
{
float x;
floa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9166777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to concatenate a list of values in sparql? Suppose I have a uri http://dbpedia.org/page/Manmohan_Singh
now he has a list of years in his tag dbpprop:years.
When I write a query like
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20231536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: 7506 Error:The library for UDF/XSP/UDM HCPRE_AUTODDP.oreplace2 could not be found Below are two queries. The first query runs fine. However the second one throws 7506 error. I recompiled the function however that didn't help.
SEL
PID,
SimpleDefinitionID,
SimpleDefinitionName,
SimpleDefinitionQuery
,ABC.OREPLACE (c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44459736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I resolve "unexpected EOF" error when pulling docker image I have Docker Desktop 4.16.2 (95914) on MacOS Ventura 13.1, and as far as I know I'm not connected to any proxies. I've authenticated to docker hub via docker desktop, and have tried to pull a python base image by running "docker build .", with the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75286398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CSS Wordpress z-index not stacking canvas elements I'm triyng to stack 2 canvas elements on Wordpress site. Problem is that canvas elements refuse to stack.
Link to actual page: WebPage
CSS:
#plane{
position:relative;
z-index: 110;
border: 1px solid black;
width: 100%;
}
#plane1{
position:relat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23756782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sql data change Currently my data looks like this:
A 15902 8.11 9.20 7 8 5 6
A 15902 2021 8.11 7 5
A 15902 2022 9.20 8 6
I'm quite unsure how to do this.
Any help is greatly appreciated!
A: You can unpiv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73238660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to convert php array to javascript array in php I'm working on core php,i need how to convert PHP array to Javascript array please help me,below the my example code this there please check it.
I tried from long time to debug but not getting any leads. please help me in resolving this issue
Here my php array data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49269963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: I would like to create a text generator using JFrame just like in the picture inside : I'm starting to get familiar with Java and the JFrame package, but I'm not quite there. This is what I would like to get:
As you can see, I'd like to have the possibility to fill boxes and then take what is in the boxes and make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27360091",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursively Draw a Box JavaScript I am trying to draw a box inside of another the inner, and keep drawing them until the width is 2px
Here is the fiddle: http://jsfiddle.net/443wovkk/
JavaScript:
var innerBox = $('.box');
var innerBoxDimentions;
var boxHtml = innerBox.clone().removeClass('outter');
$(document).read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28118016",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Errorr Returnn value of Maatwebsite\Excel\Sheet::mapArraybleRow() must be of the type array, string returned I just upgraded Laravel 5.4 to 5.5 and now I have to change all the coding that used the old Laravel-Excel.
I'm using php 7.2.25, Windows/Wamp.
I am trying to upload an excel file, get it's data, do lots of c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59824682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The use of **.join()** in this particular code The code is from an UVA. It goes like:
Consider a list (list = []). You can perform the following commands:
insert, print, remove, append, sort, pop, reverse.
Initialize your list and read in the value of followed by lines of commands where each command will be of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43155545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Change a parent window's URL using history pushState when link in Iframe is clicked I have a page that has a header and sidebar with a right content panel that is an Iframe.
In a page loaded into the right content panel, I am trying to have a clicked link update the Browser URL in the parent window to the URL of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35518763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Window Authentication with seperate web server and database server What settings we need to do at server level in case we are using window authentication and our web server & database server are separate.
Note:- I am well aware about connection string setting in web.config file. The only concern is setting at databa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28314818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Design: Passing on class instances or using singletons? My app project contains several helper classes that serve all kind
of different purposes (eg time/date/calculation, db access, ..).
Initiating these classes is quit expensive since they contain some
properties that need to be filled up from the database or nee... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4097322",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fire and forget worker inside controller I need to create a simple solution to receive input from an user, query our database and return the result in any way, but the queries can take as long as half an hour to run (and our cloud is configured to timeout after 2 minutes, I'm not allowed to change that).
I made the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54905943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: All node modules in package.json are being re-downloaded after small change I have a NodeJS container with the following Dockerfile
FROM node:6
COPY package.json /tmp/package.json
RUN npm config set registry http://registry.npmjs.org/
RUN cd /tmp && npm install
RUN mkdir -p /app && cp -a /tmp/node_modules /app/
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39357105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to build recommendation model for calling prospects My goal is to better target prospects at a higher call success rate, based on time of day and prior history.
I have created a "Prodprobability" column showing the probability of a PropertyID answering the phone at that hour for the history of calls. Instead of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58510395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: navigator.geolocation.getCurrentPosition return null I have a problem about the geolocation cordova. I am currently developing an application that uses geolocation phone, but geolocation function will always in the error function and when I log on error I have this:
PositionError {code: null, message: ""}
Here is m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27186868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AttributeError: 'numpy.ndarray' object has no attribute 'dim' 1:
issues with pytorch nn. made an auto encoder out of linear layers for a tensorflow conversion project (to use pysyft at a future point)
2:
have made sure that the forward method does return a value, does work in other situations.
3:
the full error:
Tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62801695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF Dual Monitor Application Overlay I looked at this thread to create a dual monitor application in WPF: http://social.msdn.microsoft.com/forums/en-US/wpf/thread/5d181304-8952-4663-8c3c-dc4d986aa8dd where a WPF Window will be displayed on each of the two monitors.
The issue I am having is that the windows are overl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13689644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to easily parse the AT command response from a GSM module? I'm trying to parse the following output taken from a GSM module in Arduino, to get the Voltage (3.900V) part only. However, I can't get it to work.
"
+CBC: 0,66,3.900V
OK
"
I have tried the following code, but it fails and even crashes.
float... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56939302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Golang - Missing expression error on structs type Old struct {
UserID int `json:"user_ID"`
Data struct {
Address string `json:"address"`
} `json:"old_data"`
}
type New struct {
UserID int `json:"userId"`
Data struct {
Address string `json:"address"`
} `json:"new_data"`
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63563204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple Roles for a single User The Following Code Adds Multiple Roles to a Single user, it also should be noted that this will only work for a single session as we're trying to define the roles and users every time we start the app, to prevent any crashes due to that add a check for the database and create the rol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12565041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I dispose all of the controls in a panel or form at ONCE??? c#
Possible Duplicate:
Does Form.Dispose() call controls inside's Dispose()?
is there a way to do this?
A: You don't give much detail as to why.
This happens in the Dispose override method of the form (in form.designer.cs). It looks like this:
pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1511047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Why do college computer science classes promote 'using namespace std'? I've taken 2 classes on C++ so far, one each at a different school, and both of them have used 'using namespace std;' to teach basic programming. It may be a coincidence but I had to go out of my way to find out it's not a good practice to do so.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18595204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change parent block background when child input is checked(vanilla js) I am new to the world of coding, and would be very grateful for an advise or any idea. I was wondering if it is possible to change color of current parent block background(.checkbox-container), when child input is checked. And the main problem i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67089526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataGrid shows strange Checkboxes below heading i've got a problem displaying a datagrid using dojo.
Populating the grid with data provided by a ItemFileReadStore works fine. But the result looks like this:
The two checkboxes below the Grid-Headings are not supposed to be there. I've already experimented with the D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13267649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pagination problem in WordPress For some reason the pagination is not working here, and I can't figure out why.
<?php
if ( get_query_var('paged') )
$paged = get_query_var('paged');
elseif ( get_query_var('page') )
$paged = get_query_var('page');
else
$paged = 1;
$post_type = 'portfo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5597439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In an assignment A(:) = B, the number of elements in A and B must be the same Can you please help me to correct the above mentioned problem in the following matlab code ?
E = [5,200]; Selected edge values
X = imread('LENNA128.bmp');
N = length(X);
Y = false(N+2);
for k = 1:numel(E);
Y(2:end-1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34903448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Please, how to count the number of element in a fields of a structure? I would like to count the number of element in a field of a structure in Matlab
The file name is "data.m"
I have something like this:
*
*The file has 3 fields (Columns): x, y and z
*The file has maximal 6 lines, which is the number of line of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55685103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: return a list of files in a folder in C I have this code which will print to the console all files in a given folder which have a given extension:
int scandir(char dirname[], char const *ext)
/* Scans a directory and retrieves all files of given extension */
{
DIR *d = NULL;
struct dirent *dir = NULL;
d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26357792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there a way to extract the highlighted text from a table in docx document python? Image of the table i need to extract the highlighted text from.
I need to write a python script which helps me convert this docx table to csv and just writing the highlighted information from a row in a csv.
Like the column name wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55827647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Avoid hard-coded TCM URI in Tridion-Related Code We often need specific items (schemas, templates, or components) in Tridion-related code. Template, Content Delivery, Workflow, or the Business Connector (Core Service) regularly need references to Tridion Content Manager URIs. We can link to components, but I typical... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14541895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: c# LoadXml randomly return they are several root element without any obvious reasons I am currently developing some solution based on communication through httpwebrequest between some distant (Prestashop) MYSQL database and return on information.
The concept is working like a charm, and I use to load some object, li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51571255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Form submission without revealing form content I run a website which includes several radio streams. I have set up icecast to request .htaccess account in order to authenticate and start streaming. There is the same account for all streams. I submit the form (it is hidden via css) with jquery once the page loads so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22617417",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySql - having issues with double left join I am having issues with getting this double left join to get the listingspecificsListPrice, but that info exists in the table, cant figure out why it would not include it. This is my sql.
SELECT mls_subject_property.*, mls_images.imagePath, mls_forms_listing_specifics.list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69256606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Compilation Error on my server on SmartStore App I have installed SmartStore on my server. everything is working fine except the add category module. when ever I try to Add or Edit any category an error pops saying :
Compilation Error Description: An error occurred during the
compilation of a resource required to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52237520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: BackgroundWorker not firing RunWorkerCompleted The first time I run my backgroundworker it runs correctly - updates a datatable in the background and then RunWorkerCompleted sets the datatable as a datagridview datasource.
If I then run it again, the datagridview clears and doesn't update. I can't work out why.
I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7635081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pandas groupBy with conditional grouping I have two data frames and need to group the first one based on some criteria from the second df.
df1=
summary participant_id response_date
0 2.0 11 2016-04-30
1 3.0 11 2016-05-01
2 3.0 11 2016-05-02
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44617917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/BlockingQueue I am working with SWTBot, and created a plugin in order to test my application's GUI. At the point i have been able to initiate the bot, but i am not getting the following exception when testing the product:
java.lang.NoClas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19834487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error while initializing node sdk in hyperledger fabric I'm trying to connect to the node SDK in hyperledger Fabric using my networkConnection.yaml for 3 organizations with 2 peers each and a kafka orderer but I get the following error:
2019-02-04T12:34:45.710Z - error: [Network]: _initializeInternalChannel: Unable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/54516326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to pass the **type** HTML input attribute value to the $_POST array in a HTML/PHP Form? Can we somehow pass the type HTML input attribute value to the $_POST array or grab it anyhow else with PHP?
I am aware that I can create a hidden field and basically put the type of the real input into the value o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66931914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: bad URI(is not URI?) in tests Rspec I`ve got these strange issues I dont know how to fix it. Please help me if you can.
Here is a testing result:
1) Admin can edit a hotel
Failure/Error: visit edit_admin_hotel_path(hotel)
URI::InvalidURIError:
bad URI(is not URI?):
# ./spec/requests/admin_spe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30554892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MongoDb Lookup gives empty aggregation result when using Spring Data Mongodb The following is a app_relation Collection :
{
"_id" : ObjectId("5bf518bb1e9f9d2f34a8299b"),
"app_id" : "123456789",
"dev_id" : "1",
"user_id" : "1",
"status" : "active",
"created" : NumberLong(1542789294)
}
The oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53479739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How does work the signature appearance in Itext 7? Has anybody already played with the signature appearance of PdfSignatureFormField in Itext 7 ? If yes, could you please give a little explanation and/or a little example
Thanks in advance
David L.
A: You have itext7 samples here:
http://gitlab.itextsupport.com/it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38975377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if an application got closed and returned to device application list using robotium? Is there any way to check whether an android application got closed and returned to device application list using robotium?
A: There is no direct way, however two ideas came to my mind.
First:
private boolean isApplica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19808599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery addClass() and removeClass() synchronisation I have the following table:
<table>
<tr class="change"><td>Click to change</td></tr>
<tbody id="p1" class="now">
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
</tbody>
<tbody id="p2" class="next">
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
<tr>...</tr>
</tbody>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11048210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can floating point multiplication by zero be optimised at runtime? I am writing an algorithm to find the inverse of an nxn matrix. Let us take the specific case of a 3x3 matrix.
When you invert a matrix by hand, you typically look for rows/columns containing one or more zeros to make the determinant calculation fast... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15214673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: In Openpyxl - want to convert the excel cell value into a integer while copying data into csv I am copying a csv values into excel using openpyxl.
with open('file_modified.csv', 'r') as f:
reader = csv.reader(f, delimiter="|")
next(reader, None) #skip the headers in the csv file
i = 2 # paste into seco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67866059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using git as backup tool with cron and ssh aliases I have a repository for storing all my configs (e. g. .ssh/config). From time to time I need a backup them, so I need to run these commands
git commit -am 'Auto git backup `date -I`'
git push origin master
It is pretty annoying so I decided to make a cron job, whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45653685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add more data into LocalStorage instead of overwriting it in contenteditable attribute? I want to create contenteditable in div when user add something in it then it should add in local storage. but right now it is overwrite when add another data.
HTMl code
<!DOCTYPE html>
<html>
<head>
</head>
<body onload... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74918223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Read data from json This is my JSON file
{
"styleMapping": {
"1": {
"zIndex": 1,
"StyleMappingCollection": {
"636404903145791477": {
"border": {
"color": "#FF000000",
"width": "Small",
"type": "Solid"
},
"background": {
"bgOption": "Image",
"thumbO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46315273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the solution to Check internet connectivity getnetworkInfo' is deprecated , what is the solution? I am using compilesdkversion 24.
A: Simple way !
public static boolean isConnectingToInternet(@NonNull Context context) {
ConnectivityManager connectivity = (ConnectivityManager) context.getSystemServ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39408697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to change facebook comment box if params change in current component (angular6) in current i use facebook comments plugin it can show comment only first params if i router to current component (but send new params)
comment box it's not update
My Question: Is it possible, if i router to current component but
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51697305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to trigger the change event of Kendo Jquery Spreadsheet when using custom Paste function? I tried the below custom paste function to paste only values but it doesn't trigger the change event in order for me to sync the data to the data source.
Dojo Demo Link
...
change: onExcelChange,
paste: function(e) {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62276644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Showing Popup Async I want an alert to be shown according to an async logic.
This is my code :
@IBAction func AddToFavoriteButton(_ sender: Any)
{
IsItemInFavoritesAsync(productId: productToDisplay.UniqueID())
{
success in
// Product exists in favorite tree
Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52015149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: double quotes pandas.read_csv I have large txt file with multiple words and chars and I'm trying to read this file into a pandas dataframe, with each word or char in a different row.
The problem is that " is one of the chars, and the function reads all the words between two " as a single word (because of the quoting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67762140",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create calculated field based on another time series I have a set of prices as data source for given timeseries and I would like to create a calculated field by combining two prices for each date: i.e.,
Price A *5 - Price B.
Data source:
Date Product Price
01.01.2018 A 10
01.01.2018 B 15
02.01.2018... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55373075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is this VBA line erroring out? Little bit of context, I'm updating a VBA macro from the early 2000's to work in 2021 AutoCAD... Lots of little bugfixes mostly related to changes in language or references.
Here is the line that errors out with a "Run-time error '-2147221164(80040154)': Class not registered.".
Dim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65183935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: If my entity has a (0-1):1 relation to another entity, how would I model that in the database? For example, lets say I have an entity called user and an entity called profile_picture. A user may have none or one profile picture.
So I thought, I would just create a table called "user" with this fields:
user: user_id,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1974940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Aggregation matrices in subgroups I have few matrix. They are in few subgroups (I have vector which shows these subgroups - for example matrix 1 and 2 are in group A, matrix 3 in group B, matrix 4,5,6 in group C, and so on). I want to add all matrices in one group to have new matrix.
To sum up: input - matrices in s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65263939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: West Europe Cloud Service on Azure shows in the United States I have a deployed application on Windows Azure in West Europe. However, the IP I have been assigned (168.63.108.xx) is marked as being in the US on http://cqcounter.com/whois/
Is there something wrong with my deployment? If not, what is the reason that it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13306554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: two tables into one? My question is simple I just want to joint two tables into one table without any PK
first table is completely different they have nothing same
table1. table2.
|в|q| |@|John |
|ы|a| |£|Sara |
|в|f| |$|ciro |
|с|g| |%|Jo. |
|ф|s|
w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58917520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I stub a gRPC or HTTP/2 request using WireMock.NET? I have a netcore web service that makes additional calls out to other webservices. One of those other web services is gRPC-based. I would like to write some tests at the protocol level by stubbing out the gRPC-based service with a simulated server.
How can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65078013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Enforce single click in angular js I am creating a client and calling my API but it takes at least 2 seconds to respond so I want to that user cannot click the REGISTER twice.
I am incorporating this fiddle in my controller.
https://jsfiddle.net/zsp7m155/
But What happening is that first function takes 2 second to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45318887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Setting param to an element through jquery to ng-click I need to set param inside the ng-click i.e.,
I am able to set the id for the element, but I need to set the param inside the ng-click like ng-click="editorder(5)"
Here is the html
<i class="fa fa-pencil fa-2x order-edit" aria-hidden="true" ng-click='editOrder(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37406165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring cloud config doesn't detect git uri How do I reference resources directory (Or a directory relative to my source files) as my local git uri for the config server (On Windows)?
I've tried file:///resources and file:///full/path/to/resources, all seem to fail.
As requested, here's some code:
ConfigServiceApplic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41161587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the point of a Facade in Java EE? I'm not really understanding the point of a facade.
public abstract class AbstractFacade<T> {
private Class<T> entityClass;
public AbstractFacade(Class<T> entityClass) {
this.entityClass = entityClass;
}
protected abstract EntityManager getEntityMa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4798184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Programmatically Presenting and Dismissing Views SwiftUI I am working on a project that is attempting to present and dismiss views in a NavigationView using state and binding. The reason I am doing this is there is a bug in the @Environment(.presentationMode) var presentaionMode: Binding
model. It's causing odd beha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70087666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Setting quality levels to Plyr player with HLS from .m3u8 file I am using Plyr player with HLS implementation in an angular component, I did all the settings mentioned in the below post
Adding Quality Selector to plyr when using HLS Stream
Still, I can't get the quality setting option in UI. Upon clicking gear icon,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65578946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Autofilter a range of time in excel using VBA I have tried to create a macro to auto filter the time range from 12:00:00 am to 3:00:00 am. But the code gave me an error. What is wrong with my code?
Sub TIME()
T1 = TimeSerial(0, 0, 0)
T2 = TimeSerial(0, 3, 0)
ActiveSheet.Range("$B$1:$L$597064").AutoFilter Field... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46996538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unsupported Media Type 415 Error in Angular 7 & .NET Core API I'm passing in a selected row to delete in my Angular Application using selection on a material data table. For some reason though, I'm getting a 415 error. Not sure what I'm doing wrong, either on the server or the client side, but I'm not sure even if I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60143201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MSSQL variable = null Anyone know why a situation like the following would run fine on MSSQL 2005 and not MSSQL 2008:
declare @X int = null;
select A, B, C from TABLE where X=@X
Without going into detail, I've got a stored proc which calls another stored proc that takes a hard coded Null as one of the parameters a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34881866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Function isn't working with a gobal variable. Should it be expected? As title says, I can't have the variable "countDash" being used on my function if it's globaly, only local. Should it be like this?
What am I missing something? Thanks in advance.
//count
let countEl = document.getElementById("count-el");
let saveE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70395306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to implement fill constructor and range constructor for sequence containers unambiguously Sequence containers need to have fill constructors and range constructors, i.e. these must both work, assuming MyContainer models a sequence container whose value_type is int and size_type is std::size_t:
// (1) Constructs ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21042872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what is the easy way to make suffix from this js code? Note the code below shows the array in the console, not in the snippet output
var nodes = ["maria", "mary", "marks", "michael"];
function insert_word(split_nodes) {
var rest = [];
for (var i = 0; i < split_nodes.length; i++) {
//console.log(curre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48599675",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to check if there is a specific user in PFUser's Pointer Array in Parse Subclass? My class has a PFUser Pointer Array.
I'm trying to check if PFUser.current () in Pointer Array or not.
Here is my snippet code.
class News: PFObject, PFSubclassing {
@NSManaged var notiBy: PFUser?
@NSManaged var notiTo: P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41244573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: pyspark - Join two RDDs - Missing third column I'm very new at Pyspark please take in consideration :)
Basically I've this two textfiles:
file1:
1,9,5
2,7,4
3,8,3
file2:
1,g,h
2,1,j
3,k,i
And the Python code:
file1 = sc.textFile("/user/cloudera/training/file1.txt").map(lambda line: line.split(","))
file2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53677714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make electron app configurable in the release version? I have created an electron app having angular as frontend.And in backend i have used MySql db. I want to do following things after i make release version of this app:-
*
*Make a json file in the release directory which contains info like db name,passwor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75258108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sqoop Not able to detect updates when no lastmodified date I have Orders Mysql Table which have auto incremet id and order status will get updated and don't have any last modified date and It is very big table.Now I planned to create real time sink to HDFS using Sqoop.
I am not able to capture updates in sqoop.
I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53666327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Way to know what Windows service pack version is from the browser? Is there a way to find what service pack is installed from the browser? It doesn't look like it's in the System.Web.HttpBrowserCapabilities in asp.net. I need a way to warn users that they need to update to XP Service Pack 3 before proceeding and ins... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5970385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Count unique values by group eliminating duplicates across groups by in Excel NOTE: I have already checked this count unique text values based on condition in another column between date criteria and it does not solve my problem.
I have an Excel chart with names and their groups. I want to distinct count by group wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39558771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Intellij IDEA, when open new task - it doesn't create local branch from origin IDEA version - 2017.2.
If create task from Jira (for which branch have been already created in remote)
and select this branch for this Jira from dialog
it wont create local branch on my computer and just point to commit instead
Of cour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45503923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ImageView show different output on different resolution device I have a ImageView which is 450px*450px,it show perfectly on Note 3(1080*1920), but when I run the app on other smaller resolution device, the ImageView shown larger, and some other contents doesn't fit in the screen. Any solution to solve this kind of p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30519579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mockito: creating a parameter matcher for a class Given a method definition as follows:
MyClass.myMethod(SecondClass secondClass);
and a mock of MyClass:
MyClass myClass = mock(MyClass.class);
how would you match the method parameter when defining the expecation?
when(myClass.myMethod(???)).thenReturn(null);
Than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21408853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: git show logs exclude some user or committer I don't know how to do this
I try these already:
git log -p --author="user" --not Sites/Web/Templates
git log -p --author="!user" Sites/Web/Templates
still show log of that user. Help, please.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/19850985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: libtorch c++ doesn't release tensor memory I'm having an issue when using libTorch C++.
I load a module
torch::jit::script::Module net = torch::jit::load(universal_path);
As this takes some time to load, I store it to use it later on different images that I want to process :
net.to(device);
net.eval();
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/71841985",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails fuzzy searching on title and description I have a simple rails 3 application that lists restaurants as a training exercise. I want to be able to search name and description using one textfield on the restaurant index page.
Given the query pizza. The matches should be
*
*name: Tony's, description: ... is a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12994212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get the value from button on click I am having some buttons which are created dynamically based on the number of phone numbers present.Suppose I have 3 names in DB so there will be three buttons.So when I click on the 1st button then it should give the value of first button,if 2nd is clicked then 2nd button v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19540564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error in my trigger I am working on a project using SqlSiteMapProvider. I have two tables Articles and SiteMap
Articles table:
CREATE TABLE [dbuser].[Articles](
[ArticleId] [uniqueidentifier] NOT NULL,
[Title] [nvarchar](500) NULL,
[Description] [ntext] NULL,
[CategoryId] [int] NULL,
[pubDate] [datetime] NULL,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3845867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get jsondata value in javascript JSON
var jsondata={"id": "10", "skills": "english", "post": "devloper", "emp_name": "jaydeep","timestemp":"10:45"}
I am trying to get each element key and value:
javascript
..
}).done(function(data){
console(data['post']);
});
Expected Output :
emp_name = jaydeep
post = de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/38408607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: trying to run jiunt test cases spring boot application I tried to run junit test cases with spring boot application. But there is bean creating issue due to not finding setProxyTargetClass on PersistenceExceptionTranslationPostProcessor package.
An attempt was made to call the method org.springframework.dao.annotati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63179313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding pairs in a list I'm trying to look for pairs of elements in a list, assuming that they are the only pair in the list, and there are no more than 3 identical consecutive elements.
I have a function that takes in a list, and returns the index of the first element of the pair, if there is any. If not, then it r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12773721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Event causing Session Variable Error ASP.NET 5 MVC 6 So I basically have an event that fired off when my connected cash receiver takes in money, and I'm using a session variable to store the index of the bill inserted, and I get an error that says:
My session variables work everywhere else correctly except here.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39071303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.