text stringlengths 15 59.8k | meta dict |
|---|---|
Q: PHP contact form issue (Method Not Allowed) PHP CODE
$name_error = $email_error = "";
$name = $email = $message = $success = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (empty($_POST["name"])) {
$name_error = "Name is required";
} else {
$name = test_input($_POST["name"]);
if (!preg_match("/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48069121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Unhandled Promise rejection: Cannot call method 'push' of null I have an issue I just cannot seem to understand. If anyone could offer some advise I would appreciate it.
I am using Ionic2 with Meteor/Mongo to build a Chat App.
I have the following code:
private findChats(): Promise<Mongo.Collection<Chat>> {
le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/39890210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why is my posted data null in the Controller target of this AJAX call? I have modeled (no pun intended) my AJAX call on the answer here from logan filley, which seems sensible and likely to work. This is the jquery I have in the View:
$("#btnSaveConfig").click(function () {
var saveConfigModel = {
unit:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36948092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: qDebug output in qtCreator while running unit tests with catch2 I have a project with unittests which are implemented with catch2 and using the catch2-integration in qtcreator. The unittests contain qDebug()<<"message" calls. The project uses CMAKE as build system. Everything compiles and I can both run the tests as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73418504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: c/c++ clang linking error on Mac OSX - webkitgtk I am trying to use GTK3 and WebKitGTK. I am successful at running the following code :
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>
#include <JavaScriptCore/JavaScript.h>
using namespace std;
static void destroyWindowCb(GtkWidget* widget, GtkWidget* window);
st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32875266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring Batch CompositeItemWriter How to properly set writer delegates Hi I am trying to add two writers to a spring batch compositeitemwriter. I am getting an error saying:
The method setDelegates(List<ItemWriter<? super MyObject>>) in the type CompositeItemWriter<MyObject> is not applicable for the arguments (List... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45358029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I implement a decay for a matrix transformation with react-native-gesture-handler and reanimated? I'm trying to learn react-native-gesture-handler and react-native-reanimate. I like the idéa of using matrices for transformation, but I have a hard time understanding where to fit in physics functions, such as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73978353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cannot Remove Underline From Vue router-link I think I tried almost everything trying to remove underline from router-link.
This is my code:
<router-link :to="{name: 'Plan'}">
<div>Plan Your Trip</div>
<div class='expander'>
<router-link :to="{name: 'Plan'}">COVID-19</router-link>
<router-link :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63526678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery ui Slider for Background and Font Colors I have a problem regarding my new site design prospect, and it involves using some jQuery and jQueryUI (mainly SliderUi) and some css manipulation.
Everytime I slide the #slider, the width of .left will then update depend on (ui.value from 1-100 + '%'), from here slide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26851439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Extract fields from Json using Kusto in Application Insights I have the following json contained in a particular field in the traces.customDimensions:
When I parse this Json to extract a particular value I always get an empty column, for example:
traces | order by timestamp desc
| project CurrentContext = parse_jso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/75577446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: getting sql error unknown column in where clause when trying to filter data In the SQL query where city clause when I put string 'delhi' I get results but when I put a variable like below I get error unknown column delhi in where clause. how to solve the issue?
router.get('/filter/:city', (req, res) => {
const loc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70470296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to stretch table within a cell (nested table) in html? Nested table does not 100% height of parent td
I have used height="100%" but did not help
HTML:
<table width="50%" border="1" align="center">
<tbody>
<tr>
<td valign="top">
<table border="1" align="cent... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58569565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the most efficient way to find rows of a CSV not containing duplicate entries across the fields of that row (excluding blank entires)? I'm looking to find all of the rows of a CSV file that contain the duplicate data in two or more of the fields of that row (i.e. find all of the rows without unique data in e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37054597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to implement level order print for MaxHeap I'm currently making a MaxHeap program and I need to print my heap in level order. How can this be done? Do I create a method to print the heap in level order inside of my heap class or would I do it in my main class? I know for like my binary search tree project i used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55802947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Unescape a JavaScript string in Ruby What is the simplest way to unescape the following string in Ruby.
Sample Input
str = "\\u003Cul id=\\\"list_example\\\"\\u003E\\n\\t\\u003Cli class=\\\"item_example\\\"\\u003EHello\\u003C/li\\u003E\\n\\u003C/ul\\u003E\\n\\n"
puts str # => \u003Cul id=\"list_example\"\u003... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22772241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 'future_to_publish' hook not working in wordpress I'm trying to save data to a file when a scheduled post is published. I tried to do this using the hooks 'future_to_publish', 'publish_future_post', 'transition_post_status' - none of them worked for me. I experimented with changing the priority of the hooks - didn't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/37520367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Downloading a Nested DT table in Shiny I've got a nested DT table in my Shiny app. The child table is a list that gets passed and rendered into the table. When I go to add a download button via DT's built in method, the output contains the parent table data and then a list of [Object][Object].. instead of the actual... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61549420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: conditional drop-down list on row cluster values I have the following table:
Is there a way to have dynamic drop-down list including all values from only same cluster (example of possible values in Link list column)? Cluster column is big so I am looking for dynamic solution.
A: So you can do this with formulas, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61126683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: QTabWidget inside a QSplitter switching very slow I'm new to Qt, and wanted to implement some dialogs for a program.
The GUI of the dialog is simple: there's a tree on the left, and some tabs on the right (the number of tabs may change), and there are some widgets for input in each tab.
But when I implemented this d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/17940242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Express app - Change base url I'm building a Q&A app following this tutorial and everything goes well, but I need to change the chance to change the base root where the app is being served via config files.
Now the app is served in localhost:8080 and I need to be served over localhost:8080/qae (for example).
I think... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42902739",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get the tool id for eclipse headless build Eclipse has a headless build option and in the documentation they say we can add or replace tool options
Replace a tool option value: -T {toolid} {optionid=value}
Append to a tool option value: -Ta {toolid} {optionid=value}
Prepend... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56229725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Better way to manage Database class for common operations Our company work on multiple Windows Services and EXEs (more than 30). Each of the service/exe have one database class which have connection details and respective SQL queries.
Now, whenever some change come, our team need to maintain all the projects, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55004392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Adjust the image as per screen resolution of window I have add a JLabel in a JFrame
and one image of size 1024x768 is added in JLabel.
When I set the resolution of window screen in 1024x768 the and run the application the image is shown in full window. But when I set the resolution of window screen in 1280x768 - th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7980272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Status of statement (void)f() in C++14, is it ill-formed? if not, is the f() part discard-value? Is the following program ill-formed according to the C++14 standard?
int f() { return 42; }
int main() {
(void)f();
}
If not, is the sole function call expression contained within a discard-value expression? (note t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33323932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# value type with dynamic number of fields The best way to explain my problem is with a code snippet:
enum Resource { ..., Size }
class ResourceVector
{
int[] values = new int[(int)Resource.Size];
public static ResourceVector operator + (ResourceVector a, ResourceVector b)
{...}
...
}
We are usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3485201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migration wont recognize hstore extension created on schema_search_path I´m trying to add a column using postgresql HStore.
Since I´m running a multi tenant app (using apartment gem), I´ve created the hstore extension on a dedicated schema, called "shared_extensions", as seen here: [https://github.com/influitive/apa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/32292444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Prometheus query filter not working for OR filter Is there any issue with the below query?
kube_resourcequota{resource="count/deployments.apps",type="hard",namespace="test1|test2"}
It works if I pass just one namespace.
kube_resourcequota{resource="count/deployments.apps",type="hard",namespace="test1"}
Sum also wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60064572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rainbow lines in openGL es I writing an application that draws in openGL es 1.0 in the Android NDK and renders it on an android phone. So far, I can draw two lines. The problem is that those two lines are rainbow. I was trying to debug where coordinates are on screen (where 0,0 and 1,1 are) so I added color to the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4976291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is learning a framework such as Zend or CakePHP while just starting to learn OOP a good or bad idea? I've been studying php for about 6 months now and want to start learning OOP and a framework. When I was learning javascript and jQuery, I learned the best when I was learning and applying both of them at the same ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/4989734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Signal R ASP.Net (Starts pending when server access the application) We published an application in a laptop that act as a server, then access the application by other pc through wlan, Signal R works when the client's pc (Multiple Clients) access the application. But when the server's pc starts to access the applica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50595216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dart : A non-null String must be provided to a Text widget So I am going to create a quiz app but while I run it, I get the following error
'pakage:flutter/src/wigets/text.dart': Field assertion : line 298 pos
10 :'data !=null': A non-null String must be provided to a Text widget
it is a flutter based code, wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62468250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to add multiple objects to local storage with the same key I have this piece of code that reads data from an excel sheet, turns them into objects and then display their details in a neat product card
let allHoodies = [
['Hoodie', 'Purple', 'Cotton', '$39.99', 'image/items/hoodies/hoodie(1).jpg'],
['Hoodie', ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70326666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Graphql gql with variables and Query component (deprecated) I am trying to get use graphql with query component .
const LOAD_PRODUCTS = gql`
query {
category(input :{title : "${category}"}){
name
products {
id
name
brand
inStock
gallery
prices{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/74585984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need help adding WHERE clause in pre-written SQL statement Preface: my SQL is rudimentary. I received a SQL query from a vendor, it selects and exports every single employee comment and other data from a few different DBs as CSV meant for import, it was written by them but they're not helping with this request. The ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52956124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: incorrect password and receive an alert from program django please im new to django and i want to add source code to my project, when the user try to connect, if the password equal to "test" i want that the template be showed again to the user with an alert javascript that says that the the password is incorrect
her... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27019247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Angular Karma Mock Error response Test always fail because login.subscribe error don't have error.status
error.status -> 'undefined'
Test:
it('form submit fail', () => {
expect(element.querySelector('#login-email')).toBeDefined();
expect(element.querySelector('#login-password')).toBeDefined();
updateForm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/47936620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image interpolation - nearest neighbor (Processing) I've been having trouble with an image interpolation method in Processing. This is the code I've come up with and I'm aware that it will throw an out of bounds exception since the outer loop goes further than the original image but how can I fix that?
PImage neares... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10119037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery Unexpected Token ILLEGAL For some reason, a space appears before one of the variables in my jQuery output. I get a JS error saying unexpected token ILLEGAL. I assume this means that there is a character somewhere that is not allowed. The problem is that I can't figure out where it's coming from.
This is my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24548373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: PHP Form coding with no response I have used php code inside my page but its not working in localhost showing the undefined variable in the textboxes and selectboxes which I have given like this:
$propertyid = ereg_replace("[^A-Za-z0-9-]", "", $_POST['propertyid']);
$propertyname = ereg_replace("[^A-Za-z0-9]", "", ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15835852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to iterate over an dictionary without knowing the keys, while getting key and object? I have an NSDictionary and want to iterate over the objects. But at the same time, I need to know the key of the dictionary.
I remember there was a special, fancy form of fast enumeration, but have forgotten the exact syntax.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3064933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: adding objects to array in localStorage Ok, I've tried to follow examples here, I know there might be a few different ways of adding objects to an array in localstorage and not overwriting it but I'm failing to find at least one of them.
Got this code to store objects in array but it's overwriting itself. May anyone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19635077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Run multiple git commands in a mean stack project using Bash script? We are using multiple branches (development, testing and master). Now the site is done with the most part of the application and bugs are solved. Everytime i have to push the changes on development branch from my local system and login onto server,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44454729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django - ListView with form, How to redirect back to the Form page? So, I have a ListView with exercices list (paginated 1 per page). In each page I have few input the user need to fill up. I managed to find a solution to how to attached the ListView with the Form but i cant find a solution on how to stay on the sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/63828671",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Do we have only one Store for an Ember App I am confused how Store works in Ember. Do we have one store managing all the models in an ember app? Is it possible to make multiple stores for multiple models? I have right now three models and as it seems they are using the same store. Would it be possible to have differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22982403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I expose a registry hosted in Minikube? I have started a Kubernetes cluster with Minikube. I used a simple deployment file to create a deployment that runs the Registry container:
apiVersion: apps/v1
kind: Deployment
metadata:
name: registry
labels:
app: registry
spec:
replicas: 3
selector:
ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/61367940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error in SQL statement with inserting I am trying to insert user inputted data into database, but am getting the error "Syntax error: Encountered "[" at line 1, column 160." Here is my code, what am I doing wrong?`
if (action.getSource() == Submit_button)
{
try
{
sql = "INSERT INTO Customer (FNAME, L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/36831166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why is Task.Delay breaking the STA state of the thread? Introduction
This is a lengthy question! You will find some background on the problem at the beginning, then code samples, which have been simplified for representation and the Question after that. Please read in any order that you find good for you!
Background... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55761773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to detect C symbol conflicts in R The curl R package was giving misterious segfaults on Solaris (both GCC and Solaris Studio build of R). Through trial and error I found that the solution was to rename an internal C function called fetch to something different and now everything works fine.
I suppose there must... | {
"language": "en",
"url": "https://stackoverflow.com/questions/30339566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Compress image of any format(jpeg,png etc) in Asp.net with c# without effecting height & width? I have gone through many websites but those code are not working as expected. Some reduced the dimensions & some increases the image size.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/35202046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Complex SQL Query with Business Logic I'm stuck with a complex query where I need to implement some business logic. Below are the tables that I'm having (I have omitted extra columns for readabality)
Team - TeamID, TeamName
TeamMember - MemberID, TeamID, MemberName
Question - QuestionID, CategoryID, DifficultyLevelI... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27299611",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to place UIView Over Cell Border Hi I want to place a UIView at top of cell but when I show this cell a border of cell is over a UIView. How can I resolve it?
This is my result
screen of my result
A: for all those who have had this problem here is the solution:
override func awakeFromNib() {
super.awakeFrom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/68729549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to return sequelize sum as json? How do I return value in json?
exports.get = id => Model.sum('price',
{
where: {
id,
}
}
);
result
23
desired
{ sum: 23 }
A: You can do that in 2 ways :
1. Simple change the response :
exports.get = id => Model.sum('price',
{
wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/52023459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Assumed role in AWS Lambda, access denied on SSM call I'm getting an error in my Lambda function, which calls SSM:
AccessDeniedException: User: arn:aws:sts::redacted:assumed-role/LambdaBackend_master_lambda/SpikeLambda is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:eu-west-1:redacted:parame... | {
"language": "en",
"url": "https://stackoverflow.com/questions/44734572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Minimise / maximise a div I ve created a chat appliction in one DIV.
Now i need it to be placed in the bottom of page, which should be minimised & maximized
Can any one help me
<div style="height:40px; width:300px; background-color:#CC66FF; position:absolute;bottom:15px;" >
<div id="vithu" style="height:40px; ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/3465975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is an easy but reliable way to parse parameters in C? I have some input parameters like:
param1=param1Value¶m2=param2Value¶m3=param3Value...
These parameters are linked with the character '&', the parameter and its value is linked with '='. I want to parse them into a key-value-map like this:
[param1,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/10136623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Debugging a group_by/summarise/do code in R I am often working with the dplyr package and group_by/summarise/do functions. I often have big datasets and it takes 2 or 3 hours to compute my functions (maybe it can be optimized but this is not the subject).
It happens that after 1.5 hour of calculation, my do function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/50119618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I want to understand the probability results that we get from the logistic regression I got results from a logistic regression model as 0 or 1. I want to use their probabilities as propensity score for my marketing work. When I see the results, I noticed there are two probabilities, I want to know which probability ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/58457979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery - .append() not working I'm in the process of creating a small currency conversion script using the money.js library and have run into a problem with the .append(); part. Here is what I have so far:
<script type="text/javascript">
$(document).ready(function () {
function pfxCurrencyConverter() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8955636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to separate key-values per row from a JSON formatted list? I've been trying to get a more readable output from a JSON list. I have not yet been successful. I hard-coded some data to see if I can get it as I want. This is what I did:
import json
jsonData = {
"person": {"FirstName": "Kwin", "LastName": "Harle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69741497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delay won't work I'm making an event calender as a task for school and I'm new to this.
The problem is that when I do a delay in the receive part of my loop, my table vanishes.
I'm looking on the internet and in my code for errors for 2 days now.
Event is a tuple => {{Time (tuple like now(), make_ref()}, NotifyPid,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19836518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When to use Google "Application Licensing"? When should we use Google Play's service Application Licensing?
Is this a new mechanism against cracked apps on Android?
When should I recommend my clients to use this service? I have read the tutorial, but it did not answer to my queries.
I first thought that this is a m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/12428934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Change Item Position in Firebase Recycler Adapter I am using Firebase Recycler Adapter in my app to display items from my database, but I want a situation whereby newer items will be at the top of the fragment so i tried to use orderByChild() like this:
Query conversationQuery = mConvDatabase.orderByChild("time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/55879882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: USE_FINGERPRINT is deprecated in API level 28 Constant USE_FINGERPRINT was deprecated in API level 28 and we should use more generic USE_BIOMETRIC which has been added in same API level.
I swap these constants in my Manifest and I'm getting error when calling FingerprintManagerCompat.from(context).isHardwareDetected... | {
"language": "en",
"url": "https://stackoverflow.com/questions/51375606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: Error occured while adding security to a module in openerp I have created a new module in openerp now I want to give security for the module for that I have created a folder named "security" inside my module folder and created a xml file and ir.model.access.csv file in it.My aim is I want to create two roles for my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/16601836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: inconsistent midi naming when using multiple devices of the same type I am facing an obscure behaviour of device naming when trying to use multiple USB midi devices of the same type of hardware. As this might be hardware/system/driver related, here is my general setup:
*
*host: Windows 8.1 x64 (tested on multiple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/33960352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Bigquery - Return array of structs with specific fields of the struct I have an array of structs in bigquery.
I would like to return an array of structs, but the struct of the array with less fields that the original struct.
Example:
I would like to have the same results but without Skills.Id.
I tried to do somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/69796174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I go about creating an engine for Flash that I can import and use in a game? I have been making sprites for an animation, however, I want to make a simple platformer almost like a Mario clone, but don't know how to code one. Should I use DreamWeaver or FlashBuilder? Any other tips or advice is appreciated.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19572035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Leaflet - Add Layer on LayerAdd event so i want to add a Layer if a other Layer is added ....
i did make a small Example
var mymap = L.map('mymap').setView([51.505, -0.09], 13);
var baseLayer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
}).addTo(mymap);
var layer1 = L.mark... | {
"language": "en",
"url": "https://stackoverflow.com/questions/42729822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Asp.Net Core Route Default Action I have a Asp.net Core application and i use a route like this.
routes.MapRoute(
name: "Address",
template: "adress-info/{action}/{id?}",
defaults: new { controller = "Address", action = "Index" }
);
My url helper generate wrong url addres if i don't use default paramete... | {
"language": "en",
"url": "https://stackoverflow.com/questions/56953849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Executing for loop with two inputs I am using for-loop to execute my command in linux. I have 20 files in one input and 20 files in another input
for f1 in zero-mam-2050-2074*.nc;
do;
f2={avm-mam-1976-2000-tasmax-*.nc};
command $f1 $f2 output;
done
It is not reading the second input.
A: The semicolons:
for f1 in z... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49666517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Bubble sort is not sorting I've written a code to input the name, day and time of a few shows, with the option to have it sorted (bubble sort) by day and name. I'm using 1.4.2 (because I have to) and an ArrayList along with a simple class.
I've been staring at this for hours, left and came back to it a bunch of time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/19760980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When drawing on a canvas, should calculations be done relative to cartesian plane coordinates? I've been seeing a lot of canvas-graphics-related javascript projects and libraries lately and was wondering how they handle the coordinate system. When drawing shapes and vectors on the canvas, are the points calculated b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/15378430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unexpected end of stream when using Postman I tried to make a http request using postman. But I am having a response of
"Unable to determine boundary: unexpected end of stream".
When I checked from the server side, Looks like the request body is incomplete.
Any idea would greatly help.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/74651445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Displaying an Html file as IframeElement and getting variables from it I am displaying a html file that is kind of a quiz player(html + js).
Displaying works fine but at the player when user presses finish button and with the js script tags inside the html file score is calculated and they are getting their score.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/73436755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to slice each individual element of a python list or array I have a python list which is derived from a pandas series as follows:
dsa = pd.Series(crew_data['Work Type'])
disc = [dsa]
print(disc)
The output is as follows:
[0 Disc - Standard Removal & Herbicide
1 Disc - Standard Removal & Herbicide
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/59959149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Composite images in gnuplot I am trying to plot a 2D composite image in gnuplot. I have three different channels, and I would like each to be displayed in a different color. I would like to be able to pick the color, rather than using e.g. RGB. I want the output to look like this. Right now, I have my image data sav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/62974941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: merging json in jquery-ui What function does jquery ui use to override the default options passed to a plugin on init?
My plugin has an option that defaults to "false" and if you specify "true" it does something else. And if you specify an object (a json with more jsons nested) you open a whole bunch of possibilitie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2328598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent gcc from generating PT_GNU_STACK program header? My gcc 4.8 always generates a PT_GNU_STACK program header in the ELF executable on Linux.
When I use gcc -S, in the .s file (assembly file), gcc generates a line .section .note.GNU-stack,"",@progbits. Without this line the PT_GNU_STACK program he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/41901847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to proxy a websocket properly? I'm having trouble proxies websocket using http-proxy-middleware. The error I got was Websocket connection to https://api.dsm-staging.test.site failed.
Here's the code I'm using in express :
const { createProxyMiddleware } = require("http-proxy-middleware");
const options = {
ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/70468731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Will OSX devices register to a Raspberry Pi running avahi-daemon I have a Mac Mini on my local network running Plex Media Server on port 32400. The device is going to sleep mode after 1 hour of inactivity. I want the device to wake if a package is sent to it on port 32400.
If I understood it correctly I have to have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/31045999",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DownloadURL return null in below code When I change the file its successfully updated in firebase storage but I when I try to get downloadURL its show null.
fileChange(event: any) {
const imageFolder: string = this.employee.id;
const fileList: FileList = event.target.files;
const file: File = fileList[0]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/45758036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: figure - figcaption - responsive website Sorry, this looks easy but I can't seem to make it work.
I just want a website exactly like this:
I want it to be responsive, to work/look good on tablets and smartphones too.
I've tried everything but nothing seems to work.
So far I came up with this:
<div id="container">... | {
"language": "en",
"url": "https://stackoverflow.com/questions/48488088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Better way of grouping rows by the latest entry within a group using LINQ Say I have a table with 3 cols: ActionId, uid & created.
I want to group actions by the uid, but every time a new action is inserted into a group (by uid), it will push the group upto the top, and individual rows within that group ordered.
Thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6597382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Consume a web service by a web service via Mule ESB I have a web service that sends a name to a web service called sayHello(), and receives a String "Hello, name".
I want to change the point-to-point connection to something like this:
web service ---> Mule ESB ---> web service
I wonder how can I do that? I've search... | {
"language": "en",
"url": "https://stackoverflow.com/questions/34002118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: JS: Extract number from string, that is before a specific word I want to extract the number that is exactly before the text kcal. How may I do this?
foo = "1119 kJ / 266 kcal";
// want to return: 266
http://regex101.com/r/tZ3fH8/1
A: You can use a capturing group to match and capture the digits preceding that wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/27052436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Where are Apache Giraph logs (with log4j) located? I am currently experimenting with Apache Giraph using the configuration described in the QuickStart Tutorial :
*
*Ubuntu 12
*Hadoop 0.20
*Giraph Release 1.2
I am running all computation on a single-node local cluster, as described in the QuickStart.
While runni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/65043003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Pandas - How to assign different classes to a recurring series without using a loop? I have a series with recurring values in pandas dataframe. The first 20 values are given below:
# input
[-1, 1, -1, 1, 1, -1, 1, -1, 1, -1, 1, 1, 1, 1, 1, 1, -1, 1, 1, 1]
Note that -1 indicates the start of a new class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/67412412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: for in loop not working as expected javascript I have an object, Object { 2014-01-30=[1], 2014-02-01=[1]}
and an array called fechasPeriodo,
so why is the following code:
fechasPeriodo = [];
for(var property in SelectedDates) {
fechasPeriodo.push(new Date(property));
}
producin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/26900421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: RedisConnectionException: Unable to init enough connections amount Today I start the spring boot project in MacBook Pro with M1 pro(with 8 performance core and 2 efficient core), shows error:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'redissonClient' defined in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/72484061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a shared static field in c# The question that I have is in regards to creating a shared field that is Static within an instance class. The code that I am going to display works perfectly fine. What I am really wanting to grasp is the understanding behind the logic. Here is a code snippet which is of a very ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/22798434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to authenticate ansible managed node using cyberark password I'm having 1000 + RHEL 6/7 servers integrated with cyberark, the local user's (sudo user - remote user as per Ansible control node) is fetching password from my cyberark and it gets refreshed every 8 hours. Can you please suggest procedure to authentic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/64841200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Checkbox choice changed when listview expanded
I checked the first three checkbox on expandableListView. Why when I expand listview is the last CheckBox checked?
private ArrayList<Group_Items> setAllData() {
String group_titles[] = {
"Payment of Employer and employees contribution",
"M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/35263866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Trying to Create a filter function for Scheme So i have
(define (countNumber lats)
(let loop ((lats2 lats)
(count 0))(cond ((null? lats2) count)
((number? (car lats2))
(loop (cdr lats2) (+ count 1)))
(else (loop (cdr lats2) count)))))
and i want to make a filter function that goes somethi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/28330718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing of interface methods Actually the code below is Simple example of interface.But it showing an error 'PublicDemo.DemoPublic' does not implement interface member 'PublicDemo.demo1.two()'. 'PublicDemo.DemoPublic.two()' cannot implement an interface member because it is not public.
namespace PublicDemo
{
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/24691508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to print out autoincrement ID in Activerecord model I have a before_save in my model
before saving the record to the database...I'd like to print out the autoincremented ID that will be inserted. My table has a column id in it.
I tried
before_save :printId
def printId
puts "ID that will be inserted is: " +... | {
"language": "en",
"url": "https://stackoverflow.com/questions/2233721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Connect to Access database protected with database password using UCanAccess I can connect to an Access database with UCanAccess from NetBeans 8, but now I need to specify database password in the connection properties. How can I do that?
A: use following way,
DriverManager.getConnection("jdbc:ucanaccess://path_to_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/25201483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Finding previous page Url i am trying to find the url of previous page.Such as if a user navigates from Page A to Page B using Server.Redirect("B.aspx"), page B can display the url referring to it.
I have tried using
Response.Write(Page.PreviousPage.ToString());
Response.Write(Request.UrlReferrer.ToString());
Res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/772780",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Linking to a static library that requires a frameworks I have a main project and a few smaller sub-projects. The smaller projects contain both a self contained Cocos2d app and a static library containing only the classes that are relevant to the main project (the sub-projects all use the Cocos2D framework). The main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/6573833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to convert date and time to different timezones in momentjs In my angular app I have a selectbox, where the user can select to which timezone he/she wants to convert a specific time. Currently I'm using momentjs for date-time manipulations, the problem is I don't know, how to change the date-times's timezone dyn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/49552974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Use the WCF Service developed in .Net 4.0 in the Application developed in 2.0 or lower version? I came across with this situation. I have one already developed Application in 2.0, Now in this application i want to use one WCF Service that is developed in 4.0. How can i do this?
I tried the following
1. Regula... | {
"language": "en",
"url": "https://stackoverflow.com/questions/8092963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.