text stringlengths 15 59.8k | meta dict |
|---|---|
Q: How to find the length of tuple inside a list? There is a list filled with tuples, like
pairs = [('cheese', 'queso'), ('red', 'rojo'), ('school', 'escuela')]
How do I find the length of, like, first tuple? len(pairs) returns me 3 and len(pairs[]) returns error. How do I get the length of a tuple inside the list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24599207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to increase numeric value present in a string I'm using this query in vb.net
Raw_data = Alltext_line.Substring(Alltext_line.IndexOf("R|1"))
and I want to increase R|1 to R|2, R|3 and so on using for loop.
I tried it many ways but getting error
string to double is invalid
any help will be appreciated
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53914493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: mysql: Update android variable from mysql using loop I try to update a string variable with data from a mysql database.
Example:
String str should grab a value from a mysql db using php. This is done and works perfectly.
But str should grab these values every 10 seconds, so it has to run in a loop.
And exactly thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25784926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error installing rmagick gem on OSX - ERROR: Failed to build gem native extension I have installed about 40 other gems but this one can't install due to this error:
Installing rmagick (2.13.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/durrant... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9407273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dynamically accessing datatemplates I have the following xaml: animationTemplate switches between template1 and template2.
I would like to make this more reusable by putting the animationTemplate in the resource dictionary so multiple controls can use the same animationTemplate. The problem is that animation templat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12009268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: extract similar terms Solr I want to extract from a data set, what all are the similar terms and then query with negation constraint on them. For example.
for a the index set, how can i deduce that Blackberry and Nokia are two similar terms. Or say are 2 similar commodities.
Can this be achieved through solr. ?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15538190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copy paste formulas verbatim Say I have a row of 100 cells, each with some formula.
I want to copy them and paste them somewhere else, but with the formulas verbatim exactly the same, without changing the reference.
Is there a quick way to do this (i.e. without macros, without having to add $ signs to the formulas, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21909970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Replace character with preg replace I have been trying to replace/ remove any special characters when added in the form below. Characters like: +-()*&^%$#@!~
I have been trying to do this with preg replace but im not able to get it working. Code which i wrote is below. Am i missing something?
<html xmlns="http://www... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34778843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How access a key of a array which is returned by a function I want to be able to access the array directly from the return value of the function.
e.g.
$arr = find_student();
echo $arr['name'];
// I want to be able to do
echo find_student()['name']
How can I accomplish the same ? Without another line of code ?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8819302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flutter Listview items not rendering What I do is fetching items from Firebase then saving them in a list and then I display them in a ListView. The Problem that I have now is that I check if the list has Items and if so it displays my ListView with the Items and if there are no items it displays a Text but even but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66216282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Datastage:Split Parameter value I have a parallel job with parameter value "202203011537". I want to split this parameter value as "20220301" and "1537" and use it in SQL stage. Is there a way we can do it in Datastage parallel job?
A: If you add Environment Variable in job properties?
In this case, if you set a va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72366405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to let Flash app communicate with server? What's an easy and secure way to let my Flash app communicate with my back-end server?
The Flash app, which is a video player, should retrieve the person's username and send back an ID. How would I do this?
Note: Back-end is written in Javascript.
A: If you want to conn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6214495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to extract a certain sentence in a paragraph? Python I want to extract certain sentences from a paragraph looking at a certain set of words Object C Statement:. The paragraph is as follows:
Object A Statement: There was a cat with a bag full of meat. It was a
red cat with a blue hat. Object B Statement: There w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65908489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Plotting two pie charts one beside another one (subplots) I would like to plot two pie charts one beside another.
I am creating individually them as follows:
pie chart 1:
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(4,3),dpi=144)
ax = fig.add_subplot(111)
cts = df1.Name.value_counts().to_frame()
ax.pi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/66359171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iPhone app that talks to the server I need to build an iphone app that talks to a website. Logins, fetching data etc.
I have built few apps that does these using website's api but the website I'm working with now does not have one. I don't have enough knowledge of PHP or RoR so I'm not sure if I could build a back-e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26354072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SignalR hosted on iis works not stable I have a problem with signalr 2.2 hosted on iis 7.5 and windows server 2008r2. The problem is when I use my code on widows 7 and iis express signalr methods works perfect, but when I hosted in on this configuration sometimes methods works, but sometimes not. I can't detect any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28903696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android: Unable to download from play store I am developing an Android App. I was able test it on my device successfully. So I pushed the released version on Google Play store. Now I uninstalled the debug build from my device and tried to download it from the Play Store. But when I click on install button, I am gett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28522991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Run multiple curl commands in parallel I have the following shell script. The issue is that I want to run the transactions parallel/concurrently without waiting for one request to finish to go to the next request. For example if I make 20 requests, I want them to be executed at the same time.
for ((request=1;request... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46362284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: SAS data step for array, errors and warnings I am getting the following errors/warnings:
WARNING: Apparent symbolic reference ARRAY_MONTH_COUNT not resolved.
ERROR: Too many variables defined for the dimension(s) specified for the array array1.
ERROR 22-322: Syntax error, expecting one of the following: an integer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45551739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AWS lambda CLI 'update-function-code' does not update lambda_handler file update-function-code AWS CLI command updates all code files except the handler function file, lambda_function.py
Specifically, I made a bash script that
*
*Downloads code zip from one lambda (source)
*Uploads code zip to another lambda (de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53600256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to convert UTF-8 numbers into characters I have got a very big text file (~150 MB) encoded in UTF-8. The content of the text contains both UTF-8 readable characters and entity numbers.
When displayed by a text editor (TextWrangler, NotePad++...), the text content is as below:
zygoma <B><FONT SIZE='+1'>zygoma</F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19196291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: CSS: Alternative method to positon absolute I have the following mark up:
<div id="playArea" style="position: relative;">
<div style="position: absolute; left: 295px; top: -1px; width: 313px; height: 269px;">Hello</div>
<div style="position: absolute; left: 63px; top: 35px; width: 80px; height: 42px;">World<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1957894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML + JS + CSS converter I have a HTML file with JS (jQuery) and CSS. I want a converter that converts all the files, minimizes it and just puts it all in a index.html for example. Google seems to be using this, they have no external files, not even the image, everything is just in one file and I'm sure pre-compile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14539930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Nearest-neighbor algorithm with directions (left / right / top / bottom) Having n random points in 2D geometry, for each point p I need to find 4 (or less if not exists) closest points (qa,qb,qc,qd), where qa is the closest left-top point, qb is the closest right-top point, qc is the closest left-bottom point and qd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11551263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Date range picker does not show next arrow but shows previous arrow I am working with DateRangePicker and I am not shown the following arrow, I don't know what I have configured wrong.
As we see the image should have on the right side an arrow too, this time I went back to 2020 so you can see that I don't have the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65623163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recursive HTTP request: How to prevent a page from calling itself I'm looking for a good way to prevent the scenario of the page calling itself repeatedly.
I have a page, that to be rendered needs to make an HTTP request to an RSS feed. If the URL to that RSS feed happens to be the current page, it will fire off ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/5263084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: overflow numbers to another cell in excel Here is what is going on. I am needing to simplify my payroll worksheet. What I want to do for Column D is input actual hours worked with D15 summing all hours up to 40 hours. After 40 hours of course overtime is applied to our employees pay, so is there any way that when 40... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40048003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: scanner delimiter to get tokens separated by " " and "\n" java I am trying to read tokens from a file that looks like this
4 2
3 1 2 3
So I want these tokens to be delimited by " " or by enter (\n).
How do I achieve this?
I tried something, but with no success.
in = new FileInputStream("input.txt");
scan = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42728569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flutter Contacts bug - doesn't work for 1 icloud account, works when that account isn't logged in we are testing an app that uses flutter_contacts. We maintain a user database that also contains phone numbers.
We use this call on the package to get contacts:
contacts = await FlutterContacts.getContacts(
with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73823935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XAMPP - quick way to restart apache? I have XAMPP installed on Windows 7. I need to stop and start Apache many times every day.
Currently, I do this by opening up the Xampp control panel, clicking 'Stop' (next to 'Apache'), waiting for it to stop, then clicking 'Start'.
Ideally I would like to be able to do this mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11557101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: plot how many times each list entry is repeated using pyplot I have list containing votes (smth like this votes = [1, 2, 3, 4, 1, 1, 3, 4, 4, 4]). How to use pyplot to plot a graph showing the count of each vote (i.e. 1 -> 3 votes, 2 -> 1 vote, 3 -> 2 votes, 4 -> 4 votes)
Here is how I am doing it:
from collections ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/43826168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: angular 2 to display and hide a component on mouse enter and leave I have created a component for filter in angular 2 which I have added inside my table header. I want to display when mouse is on span and when out i want to hide
<th>
<span class="headColor" >{{componentContents.dlHead}}</span>
<app-data-filter ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47049993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: hrtimer signal handler in user space? I've set up multiple hrtimers for a satellite I'm building as part of my research group. Ideally, I'd like the access to these timers in the user space, so I'm wondering if there's a way to have the hrtimer generate a signal that can be handled in user space. Is that possible?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/44313930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: string.Contains() and IndexOf() throw FormatException Why would myString.Contains(" ") or myString.IndexOf(' ') throw a FormatException "Invalid name format"? This exception is only thrown when there is a space in myString.
A: Looking at the MSDN pages for the string.Contains and string.IndexOf methods clearly show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3388998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Condition in Linq Expression I have a LINQ expression that joins two tables. I want to conditionally check another boolean value: (notice text between ********* below)
bool status = testfunc();
var List =
from t in Houses
join k in Tbl_HouseOwner on t.HouseCode equals k.HouseCode
where k.ReqCode== t.R... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11406463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting a xml file into jrxml file Is there a way I can convert a xml file to jrxml file?
I am doing a project where I need to write data from the database in a MS Word file that is already designed with the required template. I have converted that document file into xml format.
I am using iReport to generate th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/13024147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Extracting .bdf from Matlab generated .set file Excuse if this is more a file format conversion question rather than programming, but I can't find anyone who can help extract the embedded .bdf (bio signals format) data from this .set file
http://statigrafix.com/temp/EEG-set/Target_1.set
Which seems from the header t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/11142962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: aws apigateway lambda authorizer added, getting 500 error Created a lambda authorizer for AWS HTTP API Gateway
*
*Payload Format: 2.0
*Response Mode: IAM Policy
*Identity sources: $request.header.Authorization
*Invoke Permission: Automatically grant API Gateway permission to invoke your Lambda function
And her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64128116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android/JAVA: Inner AsyncTask in a seperate file This is the given situation:
public class MainActivity extends BaseActivity Implements Foo, Bar {
... not so much code ...
private class GetSomeStuff extends AsyncTask<String, Integer, Boolean> {
... lot of code ...
}
private class GetOtherStuff ext... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62555077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: GMT DateTime Conversion between different TimeZones Web application is hosted on a server with (UTC+10.00)Canberra,Sydney,Melbourne TimeZone. When a user from Melbourne creates an event it saves the datetime to database in GMT format.
if the user selection is 23/12/2015 3:30:00 AM value saved to the DB
will be 20... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34427095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ansible Cant extract json from URL but Curl can. What am I missing? Im having some trouble with Ansible URI module when pulling json from a specific web site.
Ansible Code:
- name: check for Tenable Agent updates.
uri:
url: https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents
follow_redi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68383703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it safe converting a Mat to itself with different type? Suppose I want to use a Mat as float. The following code can be compiled without error. However, is it safe doing this?
Mat im = imread('test.jpg', CV_LOAD_IMAGE_GRAYSCALE);
im.convertTo(im, CV_32F1);
I want to do this because it's written more compact, oth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36820387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make array of inherited objects - Java I have abstract class Animal and inheritance classes Fish and Dog.
I need to create various objects of fish and dogs and give them names and breeds and also make methods of the way they move.
Finally i need to create an array of them and do 4 random prints that will show... | {
"language": "en",
"url": "https://stackoverflow.com/questions/53548100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: xcode 4.2 iOS 5 and OAuth 2.0 - can you suggest a tutorial? can you suggest a tutorial or detailed description how to obtain authorization with OAuth 2.0 for iOS 5. Or perhaps you can help me with starting point.
A: I decided to answer my question, hope it can help someone else. For OAuth 2 I found this solution:
h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7893836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Problem with implement a 4-D Gaussian Processes Regression through GPML I refer to the link https://stats.stackexchange.com/questions/105516/how-to-implement-a-2-d-gaussian-processes-regression-through-gpml-matlab and create a 2-d Gaussian Process regression. I want to create a 4-d Gaussian Process regression, howev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69673457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to delay iPhone from detecting motion until a view fades from the screen? I have a crystal ball (single view) application that I need a fix for. There is a UILabel, which shows brief instructions, that appears upon the first launch of the application. I would like to disable the motion detection until... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25372665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: matplotlib set stacked bar chart labels I am trying to create a stacked bar chart that groups data by operating system. I'm having trouble creating an individual label for each component in each bar.
What I'm trying to do is different from the example in the docs because in my data each category appears in only one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50651069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Initially i connect to phonegap's database but when i move to the second html page i can;t connect I am using phonegap's database API in my html/css/js code and i have a problem.Although in the index page i manage to create tables,insert data,select and display them,when i proceed to my second html file i can't acce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33926134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to define global in XSD I would like to define TEST as global in XSD
<xs:element name="TEST">
<xs:complexType>
<xs:sequence>
<xs:element name="TEST_LOGIN" type="xs:string" />
<xs:element name="DOCUMENT" type="xs:string" />
</xs:seq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69665687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problems with itemRollOver and itemRollOut events on List component I have set the itemRollOver and itemRollOut event listeners on a List component, but whenever I roll the mouse over a list item, both the over and out events of the same list item fire in succession right after each other. My list uses a custom item... | {
"language": "en",
"url": "https://stackoverflow.com/questions/331105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue validating App using Sphero SDK in Xcode 7.1 beta (7B75) I'm having an issue validating an iOS 9 app (via the Organizer window) in Xcode 7.1 beta (7B75) that links to the latest RobotKit and RobotUIKit frameworks available from the Sphero Developer site.
The validation fails with a message, and here's contents... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32980504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Create lists of nodes from rows of matching pairs Not sure if this can be done with pandas or if I need to write a loop with some logic.
I have some data representing chains of pairs of nodes:
pairs = [
# A1 -> B1 -> C1
{'source': 'A1', 'target': 'B1'},
{'source': 'B1', 'target': 'C1'},
# A1 -> D1
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56241829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iTunes connect update limited to some countries? I have an app available for multiple countries; and now I need to release an update only to some of this countries.
Example
An app available for the whole world, is going to get an update, but it should only be available for USA users for instance.
Is it possible to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30333029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIImageView.image not loading I have a strange issue with loading an imageview into a UITableViewCell during:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
here is my code:
UIImageView *title = [[[UIImageView alloc] initWithFrame:CGRectMake(0,10,300,150)]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8108458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to update column name after finding the table names from information schema I have run a script to find the table names with a specific column name from a database using the information schema
here is the query
use IMS_SCMS_DIGITAL_POWER
select * from information_schema.columns
where column_name like 'COM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23774704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular PWA implementation on a specific component of angular Successfully converted my app into PWA but what I wanted to achieve is, I wanted that install option start visible from localhost/employee/dashboard not from localhost/.
What I tried so far is:
I put the URL (employee/dashboard/) in the starting URL of me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74637522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: np.transpose behavior different for different array constructions I came across this weird behavior with np.transpose wherein it works differently when used on an numpy array and array constructed from a list. As an MWE following code is presented.
import numpy as np
a = np.random.randint(0, 5, (1, 2, 3))
print(a.s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70741320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can Apache Camel be used to monitor file changes? I would like to monitor all of the files in a given directory for changes, ie an updated timestamp. This use case seems natural for Camel using the file component, but I can't seem to find a way to configure this behavior.
A uri like:
file:/some/directory
will c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/20086532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is helperGrowEdges function in MATLAB I was following a tutorial in matlab documentation at http://www.mathworks.com/help/vision/examples/automatically-detect-and-recognize-text-in-natural-images.html
There they use a function helperGrowEdges but I it is not being recognized right now. I verified that I have C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/23142176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Lightweight pickle for basic types in python? All I want to do is serialize and unserialize tuples of strings or ints.
I looked at pickle.dumps() but the byte overhead is significant. Basically it looks like it takes up about 4x as much space as it needs to. Besides, all I need is basic types and have no need to ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/532934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: React get metamask latest transaction status I am using this, to make a function call in smart contract via metamask in react:
export default class EthereumForm1 extends Component {
constructor (props) {
super (props);
const MyContract = window.web3.eth.contract(ContractABI);
this.state = {
Cont... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49310555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: my server it looking for a file, but i have a string, How would i simulate a fileupload via jquery i was curious if there was a way for me to set up an ajax call such that a string would be recognized as a file.
i essentially created a XML via javascript that is in string format, and want to upload it, but the serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/18596697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: X Axis on graph in Power BI does not display full date range I am new at Power BI and created a column chart to display events for every month in a 13 month period. The X axis is displaying all the data, but the naming of the months is not correct as it skips every second month. Does anyone know where I can change t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62296862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Here the class Main is throwing DERIVED without declaring Main as THROWS but it works, can anyone explain this Here the class Main is throwing DERIVED without declaring Main as THROWS but it works, can anyone explain this.
class Base extends Exception {}
class Derived extends Base {}
public class Main {/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50809166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find a substring in a cell array I am trying to use regexp in MATLAB to search for two words in strings in cell arrays. My cell array contains
strings={'1abc_2def_ghi_AB_12A','1abc_2def_ghi_BD_19A','1abc_2def_ghi_CD_16A',}
How would I go about constructing the expression to search the cell array for the stri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29357541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: addHTMLImage not working I am working on a project that sends out HTML emails to people after a forum is filled out, I have gotten the HTML portion of the code to work but for some reason cannot get the banner image to appear at the top when embedding the image into my code. I had it work before when I was working o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/14879266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to set element invisible with animation? I have this toggle button that when it is on, calls an animation method that sets several elements visible. But when I turn it off, the elements remain visible, although the opposite instruction. How can I make them disapear with the same logic? Do I have to create anothe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/40616506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what does allowLossyConversion mean in ios I am using the dataUsingEncoding(encoding: NSStringEncoding, allowLossyConversion: Bool = default) -> NSData? function to convert String to NSData, but I don't get what allowLossyConversion actually means.
Is it similar to Lossy compression? Can anybody help me understand t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29256216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I set different session lifetime for each role? How can I set different session lifetime for each symfony role? Is there a built-in option for doing this?
We're using different roles, one for our clients and one for each department within our company. We'd like to increase session lifetime for company roles ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52253521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Angular component has click listener attribute How can I know within my-component, if the parent listens to the click event (A) or not (B).
Case A:
<my-component (click)="onClick()"></my-component>
Case B:
<my-component></my-component>
Definition:
@Component({
selector: 'my-component',
templateUrl: './my-compo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74281925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: replace columns in hive I have created a table in hive, now I am trying to replace the columns name using REPLACE COLUMNS.
Alter query is:
**ALTER TABLE emp1 REPLACE COLUMNS (
id INT eid int,
name STRING ename string,
sal INT esal int,
city string ecity string,
country string ecountry string);**
MismatchedTokenExce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/46967456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why, in Python, a dictionary does not need to be nonlocal to be seen in an inner function I am learning Python and while I was doing exercises with decorators, I found a case that I don't understand. The code bellow, inspired by the tutorial I use, is working:
>>> def maxExeTime(absMax,printMax=False):
... def d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69662678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TypeGuards for optional property while filtering array of objects I've got the following interfaces in typescript:
interface ComplexRating {
ratingAttribute1?: number;
ratingAttribute2?: number;
ratingAttribute3?: number;
ratingAttribute4?: number;
}
export interface Review {
rating: ComplexRating | numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72292351",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Connection Error in SQL Server Compact with ASP.Net I am trying to access a database, using a DataSet. I am using Visual Studio for Web Express 2013, ASP Web Forms project with SQL Server Compact 4.0. I created the database from Database Explorer, added 3 tables, now my code has getData, setData methods which will u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34632951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect corner "joints" that connect elements on images? I'm using OpenCV via Python 3.7. I have a set of monochrome images that look like this:
I'd like to find all "joint points" on these images, where a "joint point" - is a center (1 pixel) of every intersection of two planks. These "joints" are roughly re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60633334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Convert POJO into JSON I have a POJO.
@Data
@AllArgsConstructor
@Builder
public class Emp {
private String position;
private String name;
}
Suppose, we have created an object
Emp emp = new Emp("Manager", "Bob");
How can I convert it to a list and save it in a database in JSON format?
The data should be sto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74423399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: testing sails.js with mocha: can't find /api/services/myService consider this mocha test:
var Sails = require('sails');
describe("Foo Model creation:", function() {
// create a variable to hold the instantiated sails server
var app;
// Global before hook
before(function(done) {
// Lift Sails and start ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/21883944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to capture file save as cancel respond I followed this post http://www.the-art-of-web.com/php/dataexport/ and successfully create an export to csv file from DB, base on user current search view. But to prevent hit to db while export is happening so I disable the export unless there is change within the view or u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4198567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Better solution to data storage and passing I'm trying to find a more elegant solution for some code I'm working on at the moment. I have data that needs to be stored then moved around, but I don't really want to take up any more space than I need to for the data that is stored.
I have 2 solutions, but neither seem ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31227838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Application is getting crash while using gridview in Android In my app i want to use a gridView in fragment of navigation drawer but my application is getting crash.
this is my code:
public class HomeFragment extends Fragment {
GridView gridView;
private String[] categoryHomeGridView;
private Integer[]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22657929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Viewing outstanding requests Is there any way to view what requests Protractor are waiting on? I'm trying to debug flaky state testing, but it is hard to tell whether a button didn't trigger a response or if Protractor didn't bother to wait.
TL;DR: How can I view the remaining promises on the Protractor control flow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27626803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Trying to create composite unique index with partialFilterExpression I'm trying to create an unique index for my collection with composite keys, but some documents might have null on the fields of the index. Going by the documentation it seems I should be able to do it with partialFilterExpression.
I tried it as fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44550777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does Crashlytics go into an infinite loop for an unhandled exception? I have just updated to the latest Crashlytics. I tried testing it by throwing an unhandled exception.
It did not send a bug report.
The app simply froze.
Checking the debugger, it appears to be in an infinite loop.
If I pause threads in the de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63067054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checkbox with PHP and MYSQL I have two checkboxes
<form action="" method="post" enctype="multipart/form-data">
<input type="checkbox" name="file_type" value="1"> Filer<br />
<input type="checkbox" name="file_type" value="1"> Statistik
</form>
and i have two rows on my database table das_custermer_files.
row 1 = fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16439247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: File upload validation - to unlink from tmp or not Just a quick question on best practice.
If my website visitors are uploading files that fail file validation (too large, wrong filetype etc.) is it safer/ more efficient to programatically delete the file from the servers tmp directory? Or do I just let the purge cy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25388231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scrapping memory issue (Out Of Memory) Good day,
I have cameras that are saving videos by clips on a cloud service, with a limit on N clips. In order to save more clips, I made a scrapping script that gets all my video links from the website where I can preview them. (to be executed on page load with a JS extension)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73704541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scrollbar in textarea Css is like:
::-webkit-scrollbar,::-moz-scrollbar {
-webkit-appearance: none;
width: 6px; /* for vertical scrollbars */
height: 8px; /* for horizontal scrollbars */
}
::-webkit-scrollbar-track,::-moz-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
border-radius:4px;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31807340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Button isn't displayed in RelativeLayout below GridView I have the next problem: when a gridview content doesn't fit into device display and scrolling begins then a button below the gridview is not shown.
Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36668101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to ignore code when data does not contain necessary values? I'm very new to R and here as well and need some help fixing my code because sometimes my data gets weird
So I have data similar to this
Random Price
11.23 0.68
66.77 0.51
68 0.46
78 0.51
88 0.32
89 0.51
90 0.27
91 0.65
This is my code so f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15718684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQLITE: SELECT between timestamps doesnt work my goal is it to search between two time stamps of a certain time span all of this is stored in an array of an dynamic amount of time stamps depending on how much days i want to search in the past. Originally they looked like that 2020-07-30T08:41:22.164Z but i removed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63169703",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I safely lock an ASP.NET MVC3 Session? I want to modify the Session variable in an ASP.NET MVC3 Controller (that has SessionState required) in a thread-safe manner. What object should I lock on?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/10089686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where do I start with developing a Silverlight app using Windows Workflow Foundation? We are starting out with the development of a Silverlight app that will make use of Windows Workflow Foundation (WF4). Our workflows are long-running. We plan to use the tracking and persistence functionality of WF. We will probabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6308652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Serilog(.Extras.)Web's ApplicationLifecycleModule.Init() called twice? I'm hosting a Web API in IIS (7.5) as an Application under "Default Web Site", and am using several of the Enrichers from Serilog.Extras.Web (I'll be upgrading soon to the SerilogWeb.Classic package). I noticed in my logs that ApplicationL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/29546391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Insert to all cells when records are more than one PHP here is my big program!
note: all codes are in one page.
freinds, all thing is ok but problem is in 'while' line and when i have more than one record.
here we connect to database and fetch information about users that got service of another users.
<form name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33550554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Symfony, How to pass a variable to the path? I need to pass the var 'busqueda' for the path, if instead of using the var I put text if it works, but to shove the variable tells me there.
JavaScript code in twig.
var busqueda = document.getElementById('search_keywords').value;
xmlhttp.open("GET","{{path('searchCorre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37481308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Casting DataRow value into float I'm working with DataRow and I want to divide every value in the row with a number(taken from a cell from the same row). I've been searching ways to convert the values into float, like from this thread, but casting gives me "Specified cast is not valid" error.
List<DataTable> tblsol ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31258941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the scope of a namespace alias in C++? Does a C++ namespace alias defined inside a function definition have a block, function, file, or other scope (duration of validity)?
A: It's a block duration of validity. E.g If you define a namespace alias as below, the namespace alias abc would be invalid outside {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/1495649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Find position of a node using xpath using attributes How can I get the position of a node based on a certain attribute value? The following post shows how to do this with elements:
Find position of a node using xpath
So if we change the example xml in the post mentioned above to:
<a>
<b val="zyx" />
<b val=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/9589469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: get_the_terms issue on foreach loop I want to show taxonomy name in post. I use foreach loop but it does not show any thing to me.
here is my code.
<?php
global $post;
$foo_home_url = site_url();
$url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
if(strpos($url, 'foo_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24435730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expo thows error that I need to run pod install I get an error message when trying to " import Realm from "realm" "
The error message:
Error: Missing Realm constructor. Did you run "pod install"? Please
see
https://realm.io/docs/react-native/latest/#missing-realm-constructor
for troubleshooting
Running on Android ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72288066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.