title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Why is the libcurl multi interface being unreasonably slow on some of my systems? | <p>I am trying to write a small application using the libcurl multi interface in C++ and am running into an issue where it performs (much) slower than expected: for 49 requests (arbitrary number) against a static HTML page (served by nginx on a small VM I rent on the internet) it takes a pretty constant 32 seconds.</p>... | 3 | 1,295 |
Cucumber Parallel Testing giving weird results | <p>I'm trying to run my cucumber project (two runner classes) in parallel browsers and I am getting weird results. When I do a <code>mvn verify</code>, first it will run each runner class sequentially. The first will pass and the second will fail due to the following error - </p>
<pre><code>org.openqa.selenium.NoSuch... | 3 | 3,231 |
Swiperjs isn't working with my css grid on nextjs | <p>I'm trying to do an about page and i need 3 sets of elements inside a vertical slider, so i picked swiperjs. Without the carousel, they were working just fine as far as the grid goes, but now the columns are extremely tall and the elements aren't in their correct rows. Here's how it looks on the jsx</p>
<pre><code> ... | 3 | 1,598 |
Reinvestigating "Trying to make different HTML paragraph show depending on selection" | <p>I asked about this <a href="https://stackoverflow.com/questions/59991014/trying-to-make-different-html-paragraph-show-depending-on-selection">previously</a> but failed to provide enough detail so I thought I'd give credit where it's due (the responses were excellent, but didn't answer my issue because I'd failed to ... | 3 | 2,007 |
bootstrap justify-content-between not working in header | <p>i'm trying to make a header that when on pc is a normal nav and when on a smaller device (like phone etc.) becomes a burger nav. now the burger nav is working (only need to make it so that whenever I get on a smaller device it gets shown and the other one gets d-none)</p>
<p>now the problem is with my normal nav, wh... | 3 | 1,663 |
Error when trying to format dates using an array,PHP | <p>I have an array of dates to which I would like to give the format 'Y-m-d', however when I try, I get the error</p>
<p>"Call a member function format () on array"</p>
<p>What I have done before is to pass two dates to a function that returns the time intervals, for example, if I give the following two dates:</p>
<... | 3 | 3,850 |
Null LinearLayout? | <p>I'm trying to use a LinearLayout for implementing ads on mobile devices, because I saw it used in a tutorial put up by Google. However, my LinearLayout keeps returning null, and I haven't been able to find a solution for a long time. </p>
<p>Here is my MainActivity.java:</p>
<pre><code>package com.me.mygdxgame;
... | 3 | 1,398 |
Is there a way for me to duplicate my pymodbus server so that they can run in along side eachother without crashing? | <p>I am new to modbus and pymodbus in general, this is the code i have written and it seems to run fine! for my project i would like to duplicate this code somehow and make it possible for them to run along side eachother without crashing.</p>
<p>For the end-user it should be as simple as this:</p>
<p>program:"how... | 3 | 1,203 |
Excel Power Query Advanced Editor breaking code into steps | <p>I was creating a new query in power query and opened advanced editor to tweak one of the steps. The query works fine but all the steps have disappeared from the "Applied Steps" menu on the right and merged into a single step.</p>
<p>How do I break these into small steps again (which is a lot simpler to understand a... | 3 | 1,282 |
Error in NGSLIB PACKAGE INSTALLATION | <p>I am trying to install ngslib python package for oncotator 1.9.5.0 . But every time installation failed due to some reason (mentioned below). I have tried all possible methods like</p>
<pre><code>pip install ngslib
</code></pre>
<p>directly or</p>
<pre><code>python -m pip install --upgrade pip
pip install ngslib
... | 3 | 4,308 |
GATE machine learning doesn't work | <p>I want to use batch learning PR to conduct text classification in GATE. I firstly write this configure XML and it can work.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><?xml version="1.0"?>
<ML-... | 3 | 2,561 |
trying to run command rails server (ruby on rails) | <p>im trying to get started with rails. I have made a rails project and now im trying to start the server but get this.</p>
<pre><code>C:\Users\Home\Documents\Sites\simple_cms>rails server
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/mysql2-0.3.18-x64-mingw32/lib/mysql2/mysql2.rb:2:in `require': cannot load such file -- ... | 3 | 1,318 |
Cannot read property 'path' of undefined node js multer | <p>i am building a app that lets the user create a camp and than edit it.Recently i added the upload image feature it works fine with the create route but on the edit one it doesnt let the user leave it blank cause if that happens it give the undefined error.Do you have anyideas how i can fix this.I dont have much expe... | 3 | 1,561 |
program doesnt stop if return is false? | <p>here is my code:</p>
<pre><code>namespace WindowsFormsApplication2
{
public partial class Form2 : Form
{
private void Form2_Load(object sender, EventArgs e)
{
pictureBox2.SizeMode = PictureBoxSizeMode.Zoom;
}
public Form2()
{
InitializeComponent();
}
public bool radioBut... | 3 | 1,559 |
Problem running basic example of SheetJS - error on "return(<>...) | <p>I try to run the sheetjs example at <a href="https://docs.sheetjs.com/docs/" rel="nofollow noreferrer">https://docs.sheetjs.com/docs/</a></p>
<p>So here's my simple html (I've downloaed the js library in the same folder of my local disk. I run the page from this local folder, not a webserver:</p>
<pre><code><html... | 3 | 1,213 |
Scatter plot marker size and legend, markers = area, but how do I get legend labels = diameter? | <p>I have been a long time viewer of your questions and answers as I learn python. I have hit a snag in making some figures for a project I am working on.</p>
<p>I am making a figure detailing properties of small bodies in our solar system (asteroids and dwarf planets).</p>
<p>I have successfully created a scatter plo... | 3 | 3,313 |
How to sort javascript's array of objects by multiple property value | <p>I have an array of Objects that contains the <code>fYear</code> and <code>FQtr</code> keys. My goal is to sort by <code>FQtr</code> keys and <code>fYear</code>. Would you please help?</p>
<h4>Original Data</h4>
<pre class="lang-js prettyprint-override"><code>const data = [
{ "fYear": "FY22 Q3&quo... | 3 | 2,136 |
Dynamically added custom fields not displayed on WooCommerce email notifications | <p>I have a different kind of scenario then the typical custom fields (I suppose). I am not getting custom values (fields) from user in the form rather I have an implementation which adds:</p>
<ul>
<li>ColorName</li>
<li>Size</li>
<li>City</li>
</ul>
<p>These are from a custom product flow which adds custom attributes ... | 3 | 2,593 |
Position SVG at bottom of any screen | <p>I am trying to position a SVG at bottom in any screen, but I can't do it in screens without scrollbar.
I tried some changes but nothing seems work.</p>
<p>Here is CSS what I use:</p>
<pre><code> .custom-shape-divider-bottom-1652813835 {
position: absolute;
bottom: 0;
left: 0;
width... | 3 | 1,105 |
We are using three different maps on different pages and it works in Chrome, but? | <p>On my website we are using three different maps in two different pages(first one is used in the header).
And it seems to me that I can't get it to work.
So currently two out of three maps are working.
This is the code that I am using: </p>
<pre><code> <head>
<meta charset="utf-8">
<meta... | 3 | 2,863 |
Wrong directory being accessed upon right click for context menu | <p>When I right click a file in tree view, context menu and it's underlying methods work.</p>
<p>However, when I right click on empty space and context menu opens, delete and archive methods apply on my working folder itself (i.e. where the test_gui.py file is stored). </p>
<p>I'm fine with the context menu popping u... | 3 | 1,310 |
Conditional use of angular service or factory function within a controller | <p>I have two API services to get json data extracted from two DB tables. The data is being used to produce charts. I have managed to generate one such bar chart with data from one table. The other chart would be exactly the same. However, I don't want to duplicate the code. Could you please let me know how can it be d... | 3 | 1,615 |
addEventListener function firing an increasing amount of times each click | <p>I am trying to make a text based game based on a tutorial on Youtube. I have a div called "HistoryPanel" where I want divs to be appended containing a string from an object property "historyText" when "buyItemPanelbtn" is clicked. While I have managed to achieve this when I click the button again it will append the ... | 3 | 1,684 |
Data from view model not binding to view - Xamarin Forms, Reactive UI | <p>Welcome, I'm trying to bind array of strings to collection view item source, but it seems like my view model can't pass data, or isn't activated at all. I'm stuck at this moment. I tried to search on the internet and couldnt find any solution, also tried exacly as shown in the reactive ui sample, and stil same resul... | 3 | 2,200 |
Separate sidebar from image | <p>I don't want the sidebar to OVERLAP image.
So basically I want them, side by side, I think the problem is that I have a position: absolute; in the sidebar, but when I remove it, the sidebar and image doesn't stay in place.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="... | 3 | 1,437 |
PreparedStatement select with php not working as expected | <p>I have this query:</p>
<pre><code>SELECT id, result, ip_address, added_date
FROM results
WHERE course_id = (
SELECT id
FROM courses
WHERE course = 'informatica'
AND macro_course_id = (
SELECT id
FROM macro_courses
WHERE macro_course = 'scienze-matematiche-fisiche-e-naturali'
AND organization_id = (
SELECT id
F... | 3 | 1,217 |
CSS: Nav bar delays div | <p>Hello I just started with HTML & CSS and I am currently working on my first website. I have the problem that my nav bar delays the div below it when the div (called Start) is set to relative. I have to scroll to see the full image in the div. But when I set it to absolute it centers the div perfectly but the nav... | 3 | 1,364 |
Encountered Error while trying to install package - Numpy | GCP | <p>I am trying to deploy a simple function as shown below:</p>
<pre><code>import pandas as pd
import glob
def hello_gcs(event, context):
"""Triggered by a change to a Cloud Storage bucket.
Args:
event (dict): Event payload.
context (google.cloud.functions.Context): Metadata for... | 3 | 1,804 |
How does Firefox Inspector's Walker work? | <p>In Firefox, at the start of modules/devtools/inspector/inspector-panel.js you see some references to a "walker", shown at the end of this snippet:</p>
<pre><code> ...
/**
* Represents an open instance of the Inspector for a tab.
* The inspector controls the highlighter, the breadcrumbs,
* the markup view, and t... | 3 | 2,517 |
My project using angular CLI 1.7.4 what will be the right Angular Material version to install? | <p><strong>My Project is built on Angular CLI 1.7.4
While running the command "ng serve", Am getting the below errors:</strong>
I understand this is because of angular material is missing from the project.
Kindly guide me on which angular Material version will be the best suited for my project.
<strong>Please find th... | 3 | 5,361 |
Bootstrap Grid - why are my column's overlapping only on small screens? | <p><strong>Bootstrap 4.1</strong></p>
<p>I'm trying to create a dashboard. When I bring my browser size down to a smaller view, I expect the div's to be stacking on top of each other, but they're not.I tried changing the <code><div class="container"></code> placements but that doesn't seem to change anything.</p... | 3 | 3,955 |
Is there a way to avoid hardcoding Terraform TypeSet hashed index values in provider tests? | <p>When using <code>TypeSet</code>, Terraform indicates the hash indexes are calculated based on the values of the set. I have a Terraform Provider written in Go using the <a href="https://github.com/hashicorp/terraform-plugin-sdk" rel="nofollow noreferrer">Terraform Provider Go SDK</a> where I currently need to hard c... | 3 | 1,614 |
Predicate push down is not working in spark/hive view table | <p>From my reading, spark predict push down will be used in source side(reduced data scan).</p>
<ul>
<li>EMR 5.32.x</li>
<li>Spark version - 2.4.5</li>
<li>Hive version - 2.x</li>
<li>data volume 2+ Terabytes.</li>
</ul>
<p>I have hive/spark table which is created by another function team. They have also created view o... | 3 | 1,466 |
Error while installing symfit library in Python | <p>I get an error while installing symfit library.</p>
<p>I use pip3 in cmd to install the library.</p>
<p>here's the error in cmd:</p>
<pre><code>Collecting symfit
Using cached symfit-0.5.2.tar.gz (943 kB)
Requirement already satisfied: numpy>=1.12 in c:\users\amirhosein\appdata\local\programs\python\python38-... | 3 | 4,820 |
React/Redux not triggering child render on state update | <p>I am learning React/Redux and came to a point where I am stuck. In the sample todo app I am working on when a new todo is added the addTodo action is taken and I can step through the store.dispatch logic. What fails is the haveStatePropsChanged value is calculated as false hence no child updates.</p>
<p>The code ... | 3 | 1,645 |
How to send data to only one Azure SQL DB Table from Azure Streaming Analytics? | <p><strong>Background</strong></p>
<p>I have set up an IoT project using an Azure Event Hub and Azure Stream Analytics (ASA) based on tutorials from <a href="https://www.hackster.io/pjdecarlo/hands-on-lab-particle-photon-weather-station-in-azure-d89a03" rel="nofollow noreferrer">here</a> and <a href="https://www.linke... | 3 | 1,296 |
Angular foreach wants to wait until response for single call | <p>I have thousands of records in my array. I wish to perform some function on each element of my array. Though my functions works fine, but I want to delay the call of next item until first is parsed properly. I don't have relevancy of return either it is true or not. I just wish to delay loop until single item is pa... | 3 | 1,707 |
Short script (<50 lines) works in jfiddle but not browser | <p>I was using a Horizontal-scrolling image gallery for a project. </p>
<p>Recently the scrolling stopped working, and I have been trying to figure out why. Eventually I decided to go back to the source of this part of the project and work up, but I can't even get it running. </p>
<p>I must be doing something simple ... | 3 | 1,160 |
PHP Pass an Object as a Parameter via the Constructor | <p>I'm trying to pass an object to another via constructor. I have a class that gathers up the database credentials and assigns them to the class properties. Then another class that does the actual query and returns an array of rows. Here's the code:</p>
<pre><code>// GetCredentials
class GetCredentials
{
public f... | 3 | 1,337 |
Turn FBProfilePictureView into UIImage | <p>I have a Facebook login that gets the users <strong>profilePicture, lblUsername, and lblEmail</strong>. I know that the FBProfilePictureView is a UIView that contains a UIImageView. </p>
<p>So, what I am asking is how do I convert or "save" the <strong>profilePicture</strong> that you get from Facebook as a UIImage... | 3 | 1,349 |
chttp2_server.cc:298: assertion failed: *port_num == port_temp when running Server and Client on the same machine (only on Citrix) | <p>We have trouble finding the cause of a problem that only occurs when running our application on a citrix server.</p>
<p>The application is a windows GUI application starting 2 grpc services on dynamic ports - one c++ service and a the second service is a.NET component implemented in c#. Both services run on the same... | 3 | 3,433 |
Django Push Notification for IOS safari | <p>I used <a href="https://github.com/jazzband/django-push-notifications" rel="nofollow noreferrer">django-push-notifications</a> for implementing push notifications in <code>Django</code> server.</p>
<p>I have implemented <code>GCM</code> for my <code>AngularJS</code> webapp and its working great on chrome. For safar... | 3 | 1,120 |
How to make reactive covariate labels in shiny with gtsummary tbl_summary | <p>I'm attempting to made reactive labels for my summary table. I'm making a reactive regression model and then I'm pulling that data frame out of the model and using that to make my summary table using gtsummary::tbl_summary() which outputs prettier tables than stargazer imo.</p>
<p>tbl_summary takes a list formatted ... | 3 | 1,985 |
AVL tree not balancing correctly | <p>I have an assignment to write a self balancing binary search tree. I decided to use an AVL tree as it is what we have discussed in class. Then with the given input of { 3, 5, 61, 9, 32, 7, 1, 45, 26, 6} I'm expecting an output of:</p>
<pre><code> 7
6-----|-----32
3----| 9----|----45
... | 3 | 1,663 |
Remove node element without removing innerHTML | <p>I'm refactoring a vanilla JS Wheel of Fortune/Hangman game and I'm trying to figure out how to remove the previous node elements displayed in the underscores representing the letters in the word the user is trying to guess. If the user picks a word that's 5-6 letters, that usually fine because the next random word i... | 3 | 4,979 |
Exception- Value cannot be null. Parameter name: currentDocumentProducer | <p>We are using composite Index to order by 2 fields, one is text and other date.
I have created the composite Index and trying to use the same in the .net application. We also have implemented Paging for the same query using continuation token</p>
<p>The records are coming for the first page, but for second page we a... | 3 | 2,918 |
How to get xml attribute value containing multiple colons in a single tag i.e. namespaces? | <p>Here is my XML:</p>
<pre><code><?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="XYZ" xmlns:d="http://schemas/services" xmlns:m="http://schemas/metadata" xmlns="http://www.abc.pqr/Atom">
<title type="text">Title</title>
<id>Id</id>
<updated>201... | 3 | 1,072 |
GWT RequestFactory Error when firing request : org.springframework.beans.factory.NoSuchBeanDefinitionException | <p>I have a maven+spring+gwt project in which i want to use request factory. I just can't figure out why I get this exception.</p>
<p>Request factory: </p>
<pre><code> public interface StarRequestFactory extends RequestFactory {
@Service(value = RaduService.class, locator = GWTServiceLocator.class)
public interfa... | 3 | 1,130 |
Webpack Manifest Hashing - Vendor not being hashed | <p>I have been following the tutorials <a href="http://madole.xyz/asset-hashing-with-webpack/" rel="nofollow noreferrer">here</a> and on this <a href="https://medium.com/@okonetchnikov/long-term-caching-of-static-assets-with-webpack-1ecb139adb95#.ylv8v4oj1" rel="nofollow noreferrer">medium blog</a> and their output alw... | 3 | 1,501 |
Is dispatching on value types, defined by `fieldnames` is fully determined by specialization on the type? | <h2>Example</h2>
<p>Consider the following code which dispatches on fieldnames to determine how to combine two objects.</p>
<pre><code># Rules for how to combine various fields based on there names
combine(::Val{:foo}, foo1, foo2) = foo1+foo2
combine(::Val{:bar}, bar1, bar2) = bar2 - bar1
combine(::Val{:boop}, boop1,... | 3 | 6,586 |
How to keep layout purely in MXML and style purely in Skin in Flex? | <p>I am trying to implement some MVC-style UI components in Flex 4. I want to further separate the visual setup (and later runtime modification) of each element. Primarily, I want to keep the overall layout of the data like such in the MXML file that will USE the skin:</p>
<pre><code><s:Group id="container">
... | 3 | 1,474 |
Azure Devops pipeline build suddenly stopped working | <p>Our Azure build pipeline started failing today. This was working fine with the same code a few days back. I'm struggling to find a reason. The build works fine in my local machine but doesn’t work on DevOps.</p>
<p>Below are some lines from the error log. Can anyone guide me to find the issue please?</p>
<p>Start of... | 3 | 3,777 |
access Spring MVC model from javascript / ajax | <p>After loading an html page and putting data in the model in the java code, I retrieve correctly the data from model using thymeleaf inlining: ((${data}))
When I do the same using an ajax requestthe data is null.
I also set a pediodic timer because of the asynchronuous call.
the data I want to get is 'manager'</p>
<p... | 3 | 1,145 |
Angular.io v8: animate object and query()-children simple and together | <h3>I lack some understanding, how Angular.io (V8) animation works:</h3>
<p><strong>I want to animate a base object <em>and</em> its children:</strong></p>
<p><a href="https://i.stack.imgur.com/DhsZG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DhsZG.png" alt="enter image description here" /></a><... | 3 | 1,517 |
AWS Lambda Access Denied on Pre-Signed CloudFront URL | <p>I was following the guide from <a href="https://docs.aws.amazon.com/solutions/latest/serverless-image-handler/deployment.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/solutions/latest/serverless-image-handler/deployment.html</a> to create a new Lambda Function over my CloudFront distribution. However, ... | 3 | 1,699 |
Manipulate module variables from another module | <p>Recently I have been attempting to make somewhat of a home assistant. Inside the home assistant, there are modules that run in a handler script. I have imported a module that I created to play youtube videos through my raspberry pi. What I want to do is update a variable in my youtube module inside of my handler scr... | 3 | 4,901 |
Can't save add or delete rows in DataGrid inside RowDetailsTemplate of another DataGrid (WPF) | <p>I’m writing an HR safety tracking app using WPF and Entity Framework where I want to display and edit a grid of safety incidents, and under each selected incident would be a grid of months during which hours were lost due to the incident. This means a DataGrid for the hours inside the RowDetailsTemplate of a DataGr... | 3 | 3,319 |
knockout 3.4 - Detect subscription break and fix | <p>I am trying make a custom binding to allow knockout to work with the jquery datatables plugin and I have an interesting problem. The binding itself isn't really the problem it is an issue that arises with the way the datatable works.</p>
<ul>
<li>DataTables 1.10</li>
<li>Knockout 3.4</li>
</ul>
<p>Here is the sce... | 3 | 2,000 |
rhive.connect() thread error | <p>When I open R,</p>
<pre><code>library(Rserve) Rserve(args="--no-save")
Sys.setenv(HADOOP_HOME="/home/hadoop/hadoop-1.2.1")
Sys.setenv(HIVE_HOME="/usr/local/hive")
library(RHive)
rhive.connect()
</code></pre>
<p>I get following error and connection fails. Please help me.</p>
<pre><code>Warning:
+-------... | 3 | 1,031 |
How can I run code, that will call the class extended AsyncTask, under UI Thread in Unit testing class in Android Testing? | <p>First, let me give you the scenario:</p>
<pre><code>interface TaskDone{
void OnTaskDone(Object data)
}
public class DownloadImage extends AsyncTask<String,Void, Bitmap>{
private TaskDone callback;
public DownloadImage(TaskDone callback){this.callback=callback}
@Override
protected Bitmap ... | 3 | 1,058 |
The local variable is referenced before the assigment | <p>The error i am recieving is UnboundLocalError: local variable 'this_mammal' referenced before assignment</p>
<p>I have been practicing this stuff for possibly like a few days now but this stumped me. I've looked around for indents and everywhere i have this_mammal placed but it seems okay. I couldnt include the Mamm... | 3 | 1,123 |
Is it possible to automate .Net assembly versioning using semantic-release? | <p>I have a C# solution containing a single project and multiple libraries using .Net 6. I'm using conventional commits (commitlint with husky) and want to use <strong>semantic-release</strong> to deploy the latest build as a ZIP file on Github based on the commit messages.</p>
<hr />
<p><strong>The setup I tried for C... | 3 | 1,503 |
Connection Could not be established with host smtp.gmail.com - Laravel | <p>I'm trying to send email by using gmail(personal email address) but failed as below error.
there is no error when I using a public network to send the email but failed when I using office network that comes with firewall setting.</p>
<p>I have tried the method to set the the mail_mailer to "sendmail" but s... | 3 | 1,681 |
Kibana Site cant be reached | <p>So I'm trying to setup a Wazuh server, after installing it I got greeted with the message<code>This site can't be reached</code>. When I try to curl the IP with port like this: curl <a href="http://192.168.1.108:5601" rel="nofollow noreferrer">http://192.168.1.108:5601</a> it doesnt show anything, not even an error.... | 3 | 1,764 |
How to Deploy Electron React Boilerplate App? | <p>I made a React Electron application and I have difficulty deploying this Electron React Boilerplate App (make a .exe file) I use this Boilerplate: <a href="https://github.com/Jerga99/electron-react-boilerplate?" rel="nofollow noreferrer">https://github.com/Jerga99/electron-react-boilerplate?</a></p>
<p><a href="ht... | 3 | 1,921 |
Edit field is blank (rails 6.1.4) | <p>I am new to Ruby on Rails and we have a project called TaskApp.</p>
<p>It that has 2 models: Category, Task.</p>
<p>Category has many tasks and Task belongs to Category.</p>
<p>When I go from tasks index to edit task, I am getting the edit view with blank fields.</p>
<p>Please find relevant codes below.</p>
<p>I am ... | 3 | 1,887 |
Implementing a polynomial in c++ with overloading operator + on constructors | <p>A class Poly is constructed to create and do operations on polynomial. Vectors are used to store exponents and coefficients. Poly(int,int) is a constructor to initialize values of coefficient and exponent of a particular term. Obviously, a polynomial will have more than one term. So, i am planning to use Poly c = Po... | 3 | 1,385 |
Post Filtering Date histogram aggregation bucket results not working | <p>I have an aggregation query where I am trying to calculate the max standard deviation of the number of destination ips per IP Address for a certain time range. As everyone knows the common problem with the moving function std_dev aggregation function, the first 2 days' std dev values will always be null and 0 respec... | 3 | 2,101 |
Laravel Package Creation | <p>So I'm writing a Laravel Package that will eventually exist on git (or wherever).</p>
<p>I've created the package structure as outlined here (<a href="https://rathes.de/blog/en/laravel-package" rel="nofollow noreferrer">https://rathes.de/blog/en/laravel-package</a>, great resource by the way), in /app/ and I've als... | 3 | 1,112 |
"HTTP status 500 - Internal server error" as upload a file over the server | <p>I'm trying to upload a file over the local host server but getting and internal server error "Error instantiating the servlet class" while running it.</p>
<p>I have already written a code for uploading the file over the server in the UploadServelet.java class under fileupload package and have also done the mapping ... | 3 | 1,983 |
How to set a timer in Windows application when user is idle or not active using Static Class | <p>I have a question on setting timer in Windows Forms when the user is idle or Inactive using Static Class and call static method. Since static will be there for the lifetime period of the exe file. I need the timer to set even on any Mouse Events. If the user makes any moment then I need to reset the timer. So this i... | 3 | 2,135 |
AJAX fails using textarea and CKeditor widgets of yii2 | <p>following code will implement AJAX-Request as intended. Curiously, it's only working with yii2-method textinput(). Using yii2-method textarea() or even widget CKEditor doesn't work- Any ideas how to use AJAX-Request with more comfortable methods but textinput()?
Here is Controllercode:</p>
<pre><code><?php
name... | 3 | 1,374 |
Volley Error on Api calling | <p>Am trying to fetch a result from an api using volley using the following snipet</p>
<pre><code> Set<String> tags= new HashSet<String>() ;
tags.add("geethu");
tags.add("gautham");
tags.add("gauri");
JSONObject deviceInfo = new JSONObject()... | 3 | 1,030 |
Show current location in Cesium | <p>I'm using cesium map</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<title>Draw</title>
<script src="../../Cesium/Cesium.js"></script>
<style>
@import url(../../Cesium/Widgets/widgets.css);
html, body, #cesiumContainer {
... | 3 | 1,195 |
Returning bunch of matrices using RCPP in C++ in an efficient way using a list | <p>I am trying to return a bunch of matrices using RCPP. My code below is extremely inefficient. I would like to know if the following code can be efficient.</p>
<pre><code>#include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::export]]
Rcpp::List hello(
const arma::rowvec& g,
co... | 3 | 1,299 |
Constraining the Domain of Voronoi Vertices Generated by Qhull | <p>My question in short: Is it possible to constrain the domain of the Voronoi vertices generated by Qhull? If so, how can one do so?</p>
<p>My question with context: I am working on a data visualization in which I have points in a 2D field. The points overlap a bit, so I'm "jittering" them slightly so as to make them... | 3 | 2,378 |
Go to a line number in embedded C outside of the function | <p>Is it possible to call a line number in embedded C that is outside of the function? </p>
<p>Simple goto label commands can't work because I am in the if statement loop: I want to restart the function once the error is greater than 200. </p>
<pre><code>void followWall(void)
{
begin:
int desired = getADC(); ... | 3 | 2,503 |
How to define number of cycles in animated Image with Javascript | <p>I have this snipped made by <a href="https://stackoverflow.com/a/9487083/4642215">gilly3</a> (special thanks).
Is there any possibility to define and apply the desired number of cycles? As we can see, the code will repeat the sequences.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="fals... | 3 | 1,028 |
Having a hard time inserting values into mysql using PHP's PDO | <p>I am having a hard time inserting data into my database, I created all the fields and made sure they are spelled correctly, I also made sure all the values are in the variable names I am trying to insert into the database, I am not sure what I am doing wrong, here is my code.</p>
<p>DB Script</p>
<pre><code>//This... | 3 | 1,225 |
PHP - Left join from two tables in different databases with different credentials using PDO | <p><em><strong>Please note:</strong> While my original issue was not possible to be solved in the way I expected, @Bamar solution marked in this post is an alternative that reaches the same goal and works perfectly. What I proposed in this post to be done doesn't seem to be viable if the databases are located in differ... | 3 | 1,725 |
Unable to insert the records in the tables in SQL server | <p>This is my store procedure, when I am executing it for testing , it says records inserted successfully, but I cannot see any records in the table. Data is inserted into 3 tables- Shipment , Ship_commodity and Commodity_Hazmat. These 3 tables are inter connected.
id from shipment table=shipment id from Ship_commodi... | 3 | 2,602 |
Refresh map loading for Android | <p>I am working on an app where the user has to discover places. I am using this to show areas with undiscovered places on a map:
<a href="https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/map/circle-map-overlay" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/xamarin/xa... | 3 | 1,198 |
stream_select timeout on newly opened socket | <p>I use thrift php client to connect to java thrift server. But got the error of </p>
<pre><code>TSocket: timed out writing 78 bytes from 10.0.1.151:1234
</code></pre>
<p>I dig into the php source of thrift and find it was caused from timeout on function <code>stream_select</code>.</p>
<pre><code>/**
* Write to t... | 3 | 1,672 |
Global styles from App.xaml applying in designer but not at runtime as of recently | <p><strong>Problem</strong></p>
<p>I am working on an application, and recently I reorganized the file structure as I was adding more parts. Around this time I noticed that at runtime, styles from my App.xaml weren't getting applied. I made a lot of code changes at once before building so I am unsure of what may have ... | 3 | 1,187 |
IOS 4.3.2 MapKit Annotations | <p>Hello we have an app that we are working on that is having some issuse getting the annotations to function correctly. The app builds and installs fine... there are about 50k pins being loaded from a database on the ipad...</p>
<p>The problem is that every pin will display the same annotation information when press... | 3 | 2,376 |
First row of DataGrid not being filled in with DataList data | <p>I have a DataGrid with 4 columns and a DataList with 5 columns. The DataList resides inside the DataGrid as another separate column by itself.
Everything is coming out fine, except that the first row in the datagrid does not display the contents of the datalist. It's as if everything in my datalist should be pushed ... | 3 | 4,756 |
Performances on rails | <p>I have a problem of performances with rails. When i do an ajax call to a controller like this : </p>
<pre><code>def test
@hotels = Hotel.all
render :json => ['hotels' => @hotels ], :include=> [:country, :city]
end
</code></pre>
<p>It takes maybe 2-5 seconds to finish. I only have 40 hotels in my d... | 3 | 1,699 |
Change the order of returned posts | <p>I have written a neat responsive slider for my Wordpress featured articles (feel free to use it):</p>
<pre><code><?php
$responsive = 'on' != get_option('henrik_responsive_layout') ? false : true;
$featured_auto_class = '';
if ( 'on' == get_option('henrik_slider_auto') ) $featured_auto_class .= ' et_... | 3 | 2,835 |
Exception in thread "SimpleMessageListenerContainer-2" java.lang.NoSuchFieldError: logger | <p>I am doing a PoC with spring cloud stream and routing from consumer for <code>SQS</code> using library <code>https://github.com/idealo/spring-cloud-stream-binder-sqs</code>. I am getting error like
<code>Exception in thread "SimpleMessageListenerContainer-2" java.lang.NoSuchFieldError: logger</code></p>
<p... | 3 | 1,200 |
JDBC is not working for data insertion? | <p>I'm inserting data from user input from JFrame which is called by another JFrame class. I have checked the query in Oracle 11g express edition, it is showing no data is inserted.any one can modify this by adding main method in this code.</p>
<pre><code>class Insert extends JFrame{
JLabel name,code,address,telep... | 3 | 2,774 |
list adapter with AsyncTask | <p>I have two things. I have a personality list adapter and I have a AsyncTask for read a extern XML.
My problem is join the two things.
The adapter working with plane text but when I try introduce a value to AsyncTask, this is empty.</p>
<p><strong>Adapter</strong></p>
<pre><code> public class Adapter_listaPartid... | 3 | 2,069 |
NullPointerException while fetching current GPS | <p>I have a test screen where there is a button - where it is pressed it calls the service. I'm trying to implement a way to get the current gps location of the current user and it is crashing when it tries to call. Can anyone tell what the problem is?</p>
<pre><code>package com.example.whereyouapp;
import java.util.... | 3 | 3,806 |
How can I use the same value as written in the Json during the same test execution in the testcafe | <p>I have been trying to use the value from the JSON that I have got added successfully using fs.write() function,</p>
<p>There are two test cases in the same fixture, one to create an ID and 2nd to use that id. I can wrote the id successfully in the json file using fs.write() function and trying to use that id using i... | 3 | 1,198 |
Autofac generic decorator not fired (with mediatr) | <p>I have trouble with my generic decorator and can not find a solution on any topic I have looked. I Think I'm close but I miss something.</p>
<p>To simplify, I have an API in .NetCore and a module in .Net Standard. I want to manage the DI for the module in the .Net Standard and the API just call it in Startup.</p>
<p... | 3 | 1,205 |
Angular ChangeDetection do not display right data | <p>I met a situation that i can't solve.
My project is using angular 6.
I have a form displayed like a table using ngFor and i made possible to add rows in the table.</p>
<pre><code><table class="table">
<thead>
<tr>
<th>Prestations</th>
<th>Unit... | 3 | 1,920 |
AspectJ + Perf4J + Spring and @Profiled annotation? | <p>I can't get AspectJ to work at all, and I have ran out of ideas after following 10 different tutorials.</p>
<p>Here is what I am trying to do...</p>
<p>I have a Spring application. It uses Spring, Perf4J, and Now Aspect(if it ever works!) and I want to use @Profiled("some tag here") at the tog of my public method.... | 3 | 1,212 |
Aggregate result group objects | <p>Where I arrived was this I needed to put the user data on the athele:</p>
<pre><code>{
"_id" : ObjectId("5963c6aa1aaf2c1c702ea86f"),
"updatedAt" : ISODate("2017-07-10T18:25:46.941+0000"),
"createdAt" : ISODate("2017-07-10T18:25:46.933+0000"),
"name" : "athleta01",
"nickname" : "01",
"email" : "aaaa@terra.com.... | 3 | 1,846 |
Only can save part of data to database | <p>I have </p>
<blockquote>
<p>models.py</p>
</blockquote>
<pre><code>......
class CatalogGroup(models.Model):
name = models.CharField(max_length=100, blank=True, null=True)
def __unicode__(self):
return self.name
class Place(models.Model):
name = models.CharField(max_length=100, blank=True, nu... | 3 | 1,377 |
Checkbox menu error | <p>I have some problems with my Jquery Checkbox menu and none checkbox menu.</p>
<ol>
<li><p>When I check example the windows top checkbox and then check the php checkbox and uncheck the windows checkbox and check it again the php checkbox is not checked. </p></li>
<li><p>I want to add the same functionality to the su... | 3 | 1,664 |
Jquery display text from mysql | <p>Maybe someone can give me a little help.
I modified a jquery to appear as i wanted, you can see it here: <a href="http://loja.genesiseries.com/depoimentos/index.html" rel="nofollow">http://loja.genesiseries.com/depoimentos/index.html</a></p>
<p>But i need display text from mysql DB, so i created a new page and put ... | 3 | 1,062 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.