title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
angular js $http post with laravel | <p><strong>Problem</strong></p>
<p>When I try to POST data I get error. For sure I do something wrong, also im new at angular. When I do GET all work fine, but Im not sure how to do POST.</p>
<p><strong>Controller</strong></p>
<pre><code>myApp.controller('createListController', ['$scope', '$log', '$http',
functi... | 1 | 1,255 |
How to fix 502 error getting on post request? | <p>I have node.js app that upon click of a button send post request and on post request email should be sent to the admin. The page link from where I initiate request can be found here: <a href="https://blockmmerce.io/views/contact" rel="nofollow noreferrer">https://blockmmerce.io/views/contact</a>. </p>
<p>As soon as... | 1 | 1,259 |
How to make angular2 properly trigger the correct callback after successful preflight requests | <p>In my angular2 app, I tried to make a cross domain ajax call. Although the call went through successfully, on angular2 side, the error callback was always triggered instead of the success callback. Here is the code:</p>
<pre><code>this.http.post('http://localhost:3000/tasks/add', '["' + task + '"]', {headers: heade... | 1 | 1,057 |
Show duplicate entry warning in laravel | <p>how to display duplicate entry warning error to my view in laravel blade. so when they key in same name the warning will appear when they saved it.</p>
<p>Note: i have already make my Schema $table->string('studentname')->unique();;</p>
<p><strong>Controller</strong></p>
<pre><code>public function store(Request ... | 1 | 1,122 |
Product Filter using Vue.js | <p>I want to make a product filter using vue.js that can filter based on the lowest price or highest price, color and product type. actually I want to make product filter like this: <a href="https://i.stack.imgur.com/zsn4b.png" rel="nofollow noreferrer">IMAGE PRODUCT FILTER HERE</a></p>
<p>I got the idea to make a fil... | 1 | 3,094 |
Receiving POST data in ASP.NET | <p>I want to use ASP for code generation in a C# desktop application. </p>
<p>To achieve this, I set up a simple host (derived from System.MarshalByRefObject) that processes a System.Web.Hosting.SimpleWorkerRequest via HttpRuntime.ProcessRequest. This processes the ASPX script specified by the incoming request (using ... | 1 | 1,291 |
How can I save an empty array into mongodb using js | <p>Basically I got my app up an running but I'm stuck with a problem: if I pass an object that contains an empty array to be saved, the array is not saved into the db. I'm not sure this is a problem in js or the mongo driver, but in order to save the empty array I need to pass the array like so: <code>products: ['']</c... | 1 | 1,294 |
C# File and Directory iteration, possible to do both at one? | <p>This might be a confusing question but I have written below a Directory crawler, that will start at a root crawler, find all unique directories and then find all files and count them and add up their file size. However, the way I have it written requires going to the directory twice, one to find the directories and... | 1 | 1,904 |
Hibernate org.apache.xerces.parsers.SAXParser does not implement XMLReader exception | <p>When I try config hibernate and java app (how Jira service) , I have this error:
<pre><code>Warning: Caught exception attempting to use SAX to load a SAX XMLReader
[INFO] [talledLocalContainer] Warning: Exception was: java.lang.ClassCastException:org.apache.xerces.parsers.SAXParser cannot be cast to org.xml.sax.X... | 1 | 1,709 |
Memory limit of 10240 KB exceeded for buffered query | <p>Good day, I'm trying to <code>run queries</code> for my <code>searching</code> </p>
<p>but i get this result </p>
<blockquote>
<p>Error Number: IMSSP/-59</p><p>Memory limit of 10240 KB exceeded for
buffered query</p>
</blockquote>
<p>Here it's my query </p>
<pre><code>SELECT * From transaksi a
left join Out... | 1 | 1,421 |
compile schemas with included xsd files | <p>I have static method, which i use to validate a XML File against a XSD File. This works fine, until there is an XSD File which includes another XSD File.</p>
<p>Example, where i got troubles:</p>
<p><strong>TYPES.XSD:</strong></p>
<pre><code><xs:simpleType name="MY_AMOUNT">
<xs:restriction base="xs:d... | 1 | 2,210 |
How to use a Javascript object inside mongodb aggregation pipeline? | <p>I have a JS object <code>norm</code> which I want to use inside mongo aggregation pipeline, like this:</p>
<pre class="lang-js prettyprint-override"><code>var norm = {
1: 1,
2: 1.16,
3: 1.413,
4: 1.622,
5: 1.6,
6: 1.753,
7: 3.001,
8: 2.818,
9: 3.291,
10: 2.824,
11: 2.... | 1 | 2,776 |
How to plot large range values with matplotlib? | <p>I have to run soak tests for longer duration and capture 3 datasets (before the run, in-between the run, after the run), plot them and manually analyze the plots.</p>
<p>All the datasets span across the very large range (0-10^5). So, when I am plotting this data using matplotlib's bar function, the bar for smaller ... | 1 | 3,019 |
LazyLoading with spring data - collection is not associated with any session | <p>I have a small project with around 20 jpa entities; It all is about inserting and retrieving data.
spring data was a nice solution for me but now I have a stopping problem with LazyLoading.</p>
<p>web.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/... | 1 | 3,953 |
UIViewControllerHierarchyInconsistency in 64 bit iOS device | <p>I am developing an iPad application which has a single view controller (called as ContentViewController) with 3 different views in it.</p>
<ol>
<li>Slider view - opens from bottom, which has list of icons in it. Based on selecting a icon, I have to load a view controller in Content View </li>
<li>Control view - lef... | 1 | 1,410 |
What is hp_metric in TensorBoard and how to get rid of it? | <p>I am new to Tensorboard.</p>
<p>I am using fairly simple code running an experiment, and this is the output:</p>
<p><a href="https://i.stack.imgur.com/eBl90.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eBl90.png" alt="enter image description here" /></a></p>
<p>I don't remember asking for a <code>hp_met... | 1 | 5,815 |
what is the right way to update MMU translation table | <p>I enabled MMU on my s3c2440 board (3G - 4G memory :: the fault attribute),everything was just fine when I didn't read/write 3G - 4G memory .So to test the page fault vector ,I wrote to a 0xFF to the 3G address,as I expected ,I got the right value from FSR ,So I did this in _do_page_fault (), the step was like this :... | 1 | 4,277 |
During Spring unit test, data written to db but test not seeing the data | <p>I wrote a test case that extends <code>AbstractTransactionalJUnit4SpringContextTests</code>. The single test case I've written creates an instance of class User and attempts to write it to the database using Hibernate. The test code then uses <code>SimpleJdbcTemplate</code> to execute a simple select count(*) from... | 1 | 3,143 |
How to create video using avcodec from jpeg images of type OpenCV::Mat? | <p>I have colored jpeg images of <code>OpenCV::Mat</code> type and I create from them video using <code>avcodec</code>. The video that I get is upside-down, black & white and each row of each frame is shifted and I got diagonal line. What could be the reason for such output?
Follow <a href="https://picasaweb.google... | 1 | 1,726 |
React Native :react-native-maps:compileDebugJavaWithJavac FAILED | <p>I installed <code>react-native-maps</code> which works great on IOS but when I run <code>react-native run-android</code> I get the following error: </p>
<pre><code>> Task :react-native-maps:compileDebugJavaWithJavac FAILED
/Users/juliencorbin/theTKMapp/node_modules/react-native-maps/lib/android/src/main/java/com... | 1 | 4,557 |
XmlPullAttributes cannot be cast to XmlBlockParser | <p><a href="https://stackoverflow.com/questions/33293644/custom-xml-file-to-view/33293734#33293734">Custom xml file to view</a></p>
<p>This is an error produced from the above question</p>
<p>I managed to get the XML file saved into the assets folder, and loaded (and I can even navigate through the different parts of... | 1 | 2,800 |
How do I convert an RSA public key to an ssh-rsa public key in Java? | <p>I have the following public key (as an example):</p>
<pre><code>-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjKAmiieDC6SEYpxdI5Kn
iRUmUwE5EQL2nyDNDrV4dpC28mIcvKlCHWrq8YL7vpKya5GRUYl5xFNoB73s0UGn
8AtZBlG82/vbAPI5g9OoF2Df+0PusG5da+yFZXJNIyx1Kmgp4Ca4BR4WHGYo2LiW
zvhjCi9OBO6ERFrlCX1tGCI8mVxo54... | 1 | 1,035 |
Implementing two way data-binding WebView using MVVM in Kotlin | <p>I am trying to implement MVVM in all my app and I am very new to this, so I want to load a webview through my ViewModel, but I don't know the best way how to do this, if also has a progress bar that shows up when my web view is loading.</p>
<p>Here's the code:</p>
<pre><code> class NewWebViewFragment : Fragment... | 1 | 1,328 |
Android Xml data parsing | <p>I am trying to parse XML and display it into list view but after running the app nothing happen the list display but not with XML data. I don't know if I missing something please can help me.</p>
<p><strong>MainActivity class</strong></p>
<pre><code> public class MainActivity extends ListActivity {
// All s... | 1 | 2,875 |
How to properly use async/await in .NET 4.0 | <p>for some reasons i needed to go back version of .net, so i was 4.5 and now im 4.0, and im having conflict with my async methods:
i have wcf service, and i want to execute the async methods and await them, so in 4.5 i did this:
wcf:</p>
<pre><code>public async Task<DataTable> ProcessSomething(string Param1, i... | 1 | 1,653 |
Starting new Activity using Intent. NPE at android.content.ContextWrapper.getPackageName | <p>I'm trying to start a new <code>Activity</code> using an <code>Intent</code>. I've done this successfully in a different app, but that approach doesn't seem to work in this case?</p>
<p>This is my code...</p>
<pre><code> public void startLevelEnd(Context context){
Intent myIntent = new Intent(FirstActivity.th... | 1 | 4,412 |
How to mitigate Slowloris in Node.js? | <p><strong>Update</strong></p>
<p>_ <a href="https://nodejs.org/pt-br/blog/vulnerability/february-2019-security-releases/" rel="nofollow noreferrer">https://nodejs.org/pt-br/blog/vulnerability/february-2019-security-releases/</a> _.</p>
<p><strong>Update Friday, 13th 2018:</strong></p>
<p>I managed to convince the Node... | 1 | 1,090 |
How i can use one project with sub projects in another project as sub project (sub module) with gradle? | <p>There is some gradle - android project A. It's Depends on a few gradle sub-projects, that situated each on its own git repository, and connected, to our project by git sub module(I can look it in my owr repository as it sub directory of my project.)</p>
<p>project hierarhy is:</p>
<pre><code>└─ ProjectRootDir ... | 1 | 2,029 |
RecyclerView scrolling laggy on newer android versions | <p>My <code>RecyclerView</code> is pretty laggy whenever I start to scroll over the first items in a cold app start. This behavior happens for the latest android versions (tested on API level 27 and 28) but not older ones (tested on API level 22).</p>
<p>I tried both versions, the normal <code>com.android.support:appc... | 1 | 1,602 |
C - Cannot access memory at address | <p>When debugging GDB tells me the following error:</p>
<pre><code>0x800c99ed00000001 < error: Cannot access memory at address 0x800c99ed00000001>
</code></pre>
<p>The error is produced if I put a breakpoint when I call ConvertByteArrayToFloat while debugging .</p>
<p>But the program exits without a problem a... | 1 | 1,701 |
Swift's Dictionary is slow even with -Ofast | <p>I'm implementing what is essentially a cache using a <code>Dictionary</code> in Swift. The performance is well short of what I would expect. I've read some of the other questions, for example <a href="https://stackoverflow.com/questions/24101718/swift-performance-sorting-arrays">this one about array sorting</a> that... | 1 | 1,299 |
VueJS 2.0 - Communication Between Sibling Components - $emit and $on | <p>I am building out an app as follows.. Let's look at one model I'm using.. (I've got Laravel 5.3 in the background just serving up the basic views and serving the API.</p>
<p>For example: Clients.<br />
at example.com/admin/clients I load two components <code><admin-clients-moderator></code> and <code><admin... | 1 | 1,991 |
C# REST Service Client and Server | <p>I'm trying to write a simple REST service that I can talk to through my C# application. I want to send the REST service a JSON string and for it to send me a JSON string back. I want to do this using POST not GET as there is a fair amount of data that needs to be sent to it.. Also I would like to do it using what is... | 1 | 1,429 |
Why am I getting error SQLSTATE[HY093]: Invalid parameter number: ? How can I fix it? | <p>Based on this question <a href="https://stackoverflow.com/questions/9858073/how-to-insert-array-into-mysql-using-pdo-and-bindparam">How to insert array into mysql using PDO and bindParam?</a></p>
<p>I'm trying to insert values of an array into mysql via PDO.
I'm having a hard time of it, because I keep getting the... | 1 | 1,078 |
how to send base64 images and textvalues as json object in angular js and spring mvc 4 | <p>I have converted my image to base 64 in angular js and send it to my controller but the controller does not get the image when decoded in the right format.The image in my angular js was 106kb but when i converted my image in base 64 the image size was only 8 bytes in controller</p>
<p><strong>The html file</stron... | 1 | 1,370 |
airflow cleared tasks not getting executed | <p><strong>Preamble</strong></p>
<p>Yet another airflow tasks not getting executed question... </p>
<p>Everything was going more or less fine in my airflow experience up until this weekend when things really went downhill.</p>
<p>I have checked all the standard things e.g. as outlined in <a href="https://stackoverfl... | 1 | 1,575 |
Firebase aute null object reference in android | <p>I need some help with my android app.
I started to work with google firebase and my app crash every time on the launcher activity, I get null from firebase object , please help !</p>
<hr>
<p>Error:</p>
<pre><code> E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.workthree.todo, PID: 4011
... | 1 | 1,858 |
Persisting MySQL data in Docker | <p>I am new to Docker. I have successfully created a Docker <em>image</em> with the following Dockerfile:</p>
<pre><code>From alpine:3.4
MAINTAINER SomeName - domain.tld
# Timezone
ENV TIMEZONE Asia/Kolkata
# RUN sed -i 's#dl-cdn\.alpinelinux\.org#mirrors\.aliyun\.com#' /etc/apk/repositories
# install mysql, apache... | 1 | 1,894 |
android -- make calculations with input data (numeric) -- (show graphs?) | <p>I am starting to learn android and i have a few questions.
I have my main program as:</p>
<pre><code>public class Radiation_overflowActivity extends Activity implements OnClickListener {
EditText init_cores;
View final_cores;
/** Called when the activity is first created. */
@Override
pub... | 1 | 1,471 |
Gettting 400 Bad Request while uploading file to SharePoint 2010 using Copy.CopyIntoItems web service | <p>New to SharePoint.</p>
<p>I'm trying to upload a document to SharePoint using it's CopyIntoItems web service method with Java but keep on getting 400 Bad Request. I've use the Java's wsimport to generate the class files from the .wsdl file. Here is my Java code with the generated classes.</p>
<pre><code>public s... | 1 | 1,402 |
SignalR change port - SelfHost | <p>I am trying to change the port of my server using a remote request.
When I do that it seems that everything is ok but when I try to connect I get an exception.</p>
<p>If I close(terminate process) and then open(start process) the server with the new port everything works fine(the clients manages to connect).</p>
<... | 1 | 3,876 |
DOMException: "The media resource indicated by the src attribute or assigned media provider object was not suitable." HTML 5 Node.js | <p>I will try to make this as concise as possible. </p>
<p><strong>OVERVIEW</strong></p>
<p>Using MediaRecorder I am sending blobs of my stream to my node server. From my node server, I am sending Uint8Arrays' back to the client. I then set my blob to a Uint8Array retrieved from my node server with a type of <strong... | 1 | 1,437 |
AWS cannot signed CloudFront urls | <p><strong>Excepted</strong>: I want to get signed urls with my AWS CloudFront url.</p>
<p><strong>What I have done</strong>: I have created a AWS CloudFront instence and enabled <em>Restrict Viewer Access</em> function, <em>Trusted Signers</em> is <em>Self</em>.</p>
<p>Below is the php code I want to sign the url</p... | 1 | 1,054 |
jQuery/JSON autocomplete for two fields | <p>I am trying out jQuery's autocomplete widget and have kind of run into a wall. Would appreciate some input/guidance.</p>
<p>Essentially, I have a form where someone will type in the name of a person...jQuery will then query the database and suggest matches. The form has two fields that need to be filled from the ... | 1 | 1,338 |
ZF2 - Control/customise individual radio/checkboxes | <p>I'm attempting to add <code>data-</code> values on radio buttons within ZF2. Is it possible to control each of the inputs specified with <code>value_options</code>?</p>
<p>A typical radio button added to a form:</p>
<pre><code>$this->add(array(
'type' => 'radio',
'name' => 'duration',
'optio... | 1 | 1,052 |
jQuery - MixItUp change default Active tab content | <p>I am using <strong>jQuery - MixItUp</strong> portfolio plugin.</p>
<p>How can show default tab content as "<strong><code>Icon Tab</code></strong>" <strong>with relevant content</strong> instead of "<strong><code>All</code></strong>"</p>
<p>Tab Active is working fine where as content is not changing...</p>
<hr>
<... | 1 | 9,728 |
Building squid-cache on OS-X Mavericks | <p>I'm attempting to build squid-cache (squid-3.4.2) on Mavericks (10.9.1) with the following configure based on the SquidMan FAQ:</p>
<pre><code>./configure --prefix=/usr/local/squid --disable-eui CFLAGS=-mmacosx-version-min=10.9 --enable-pf-transparent
</code></pre>
<p>The build fails at the kerberos helpers:</p>
... | 1 | 4,092 |
Control Bootstrap Carousel Slides using Buttons | <p>I want to control the scroll of this carousel using menu bar where there are buttons 1,2,3,4,5 when I click them the carousel should slide to 2nd slide or 3rd slide like that.</p>
<p>I have used HTML, Bootstrap, CSS.</p>
<pre><code><div class="container-fluid">
<div class="row" id="row1">
... | 1 | 1,803 |
Link won't open Bootstrap modal | <p>I managed to get one of these pesky little things to open on page load in another project, but in this one, the modal won't load when I click the "help" link.</p>
<p>Here is the most important code from my html file:</p>
<pre><code><!DOCTYPE html>
<html lang ="en-us">
<head>
<meta charset="UTF... | 1 | 3,824 |
Installing nuget package Google.Apis.Drive.v3 with framework 4.0 | <p>I was working on a project a few weeks back and opened up the Package Manager Console to run the command <code>Install-Package Google.Apis.Drive.v3</code>. Everything seemed to go just fine and there were no issues whatsoever... But now today when I try to do it I get an error telling me that this package does not ... | 1 | 1,296 |
[NSURL initFileURLWithPath:]: nil string parameter when trying to load a view | <p>When my view is trying to load, the applications crashes and i get this stack:</p>
<pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'
</code></pre>
<p>This is my code, i don't really know where to look when this c... | 1 | 4,399 |
Seq2Seq model learns to only output EOS token (<\s>) after a few iterations | <p>I am creating a chatbot trained on <a href="https://www.cs.cornell.edu/~cristian/Cornell_Movie-Dialogs_Corpus.html" rel="noreferrer">Cornell Movie Dialogs Corpus</a> using <a href="https://github.com/tensorflow/nmt" rel="noreferrer">NMT</a>.</p>
<p>I am basing my code in part from <a href="https://github.com/bshao0... | 1 | 1,060 |
Symfony2.6: Form handle a request with array data instead entity | <p>I have a FormType that creates checkboxes groups based on an array that is passed in the creation of that FormType:</p>
<pre><code>//FormType.php
public function __construct(array $choices, array $choicesData)
{
$this->choices = $choices;
$this->choicesData = $choicesData;
}
public function buildFor... | 1 | 1,172 |
Inserting data into database during session | <p>I am building a three part signup system using sessions. The first part is on the homepage, there is a login here called form1 and a signup called form2. This question is about signup form2. In form2 the user inserts email and password into the DB table, and the iduser is created auto automatically. A sessions is cr... | 1 | 4,321 |
Android SQLite Database fails to select a row with a large value, throws IllegalStateException | <p>I have created the class below for saving data to a SQLite database. It is simply a key/value mapping, as you can see. The KEY is a TEXT field and the VALUE is a BLOB.</p>
<p>It works perfectly except in one scenario:
I use "add" to add a String which is approximately 2,500,000 characters in length. In fact, it is ... | 1 | 1,523 |
How to version CSS file in Webpack and update manifest? | <p>I have a webpack config that has multiple JS entry points. In one of those entry points, I am requiring my styles: <code>require('../sass/app.scss');</code> and then using a loader to extract the styles into another file <code>app.css</code>.</p>
<pre><code>test: /\.scss$/,
loader: ExtractTextPlugin.extract({
... | 1 | 1,803 |
Asp.net MVC4 Web API XML serialization ignores public properties | <p>I'm using asp.net mvc4 web api. I've got some classes generated by Devart Entity Developer and they have following structure:</p>
<pre><code>[Serializable]
[XmlRoot("Test")]
[JsonObject(MemberSerialization.OptIn)]
public class Test
{
[XmlAttribute("property1")]
[JsonProperty("property1")]
public int Pro... | 1 | 1,199 |
Very slow ajax response on yii framework | <p>i am having strange issue with yii framework. on localhost, ajax response takes 200ms (which is fast and i am satsified) where as on my live server, same function take 4 to 7 seconds.</p>
<p><strong>below is my php ajax function:-</strong></p>
<pre><code>public function actionOpenpopup() {
$thi... | 1 | 1,392 |
Exception In Xamarin Forms and Visual Studio - An unhandled exception occured | <p>I'm developing an application in Xamarin Forms with Visual Studio 2017.
So far I have not faced any major issues, but now when I debug my application on the Android device, it always returns an exception that is not detected by try / catch.
There is not much information in the IDE about the fact, other than these:
1... | 1 | 3,448 |
How to control Wcf REST XmlSerialization output | <p>I am trying to control the Xml output during a Wcf Rest serialisation process. I want to lose a tier in the output hierarchy. (I.e. lose the <code><content></code> tags). I have looked through the various attribute settings available, but not managed to find what I'm looking for. Can anyone help?</p>
<hr>
<p... | 1 | 1,259 |
Why is my datetime parameter for a stored procedure being rejected? | <p>I’m working on a Java server app which uses Spring 3 and C3P0 to access a Microsoft SQL Server 2008 R2 database, using version 3.0 of Microsoft’s JDBC 4 driver.</p>
<p>I have a sproc which has an input defined like so:</p>
<pre><code>@modifiedAfter datetime = NULL
</code></pre>
<p>I’m using Spring to construct a ... | 1 | 1,608 |
Bouncy Castle OpenPGP with VB.Net | <p>I'm mainly posting this for anyone else that needs it since there seems to be a great lack of resources on the internet for this. The samples I did find seemed hobbled together at best and never worked for me. If you see or find anything wrong with this class, I'd love to know. Note that this class is slightly mo... | 1 | 2,621 |
Can SonarQube connect Azure SQL Database? | <p>My SonarQube is running on VM instance of Microsoft Azure. Now the SonarQube's database is MySQL, and I'm trying to change MySQL to Azure SQL Database, but SonarQube couldn't connect Azure SQL Database by some erroes which occured at ActiveRecord component. I know SonarQube doesn't support Azure SQL Database officia... | 1 | 3,533 |
Run RabbitMQ server in Docker | <p>I'm getting an EOFException when connecting to the vanilla RabbitMQ Docker container. The log directory is empty /var/log/rabbitmq contains no files. The web console works without problems. It's just connecting to it that doesn't work.</p>
<p>Since this is the vanilla container from the Docker Hub, I presume it's m... | 1 | 2,375 |
Copy all the child elements except one in XSLT without copying whole XML | <p>I have searched to copy child elements except one or change the value of the tag. Everywhere below templates are used to copy all the XML and then
apply templates to remove one element.</p>
<pre><code><xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>... | 1 | 1,753 |
Simple Unity game gets slow after admob integration | <p>I made a simple 2d game with not many objects and it runs fine on my Xperia ST. But when i integrated admobs to show both banner and interstitial ads on game over screen the gameplay lags and gets slow.</p>
<p>My code for admob and how they are used is given below</p>
<p>Player Script</p>
<pre><code>using UnityEn... | 1 | 1,346 |
c++ header files, Undefined symbols for architecture x86_64 | <p>I'm trying to build a program to store student grades in C++. I'm receiving the following error when compiling:</p>
<pre><code>Undefined symbols for architecture x86_64: "grade1(Student_records const&)", referenced from:
_main in gradereport-a0007a.o
"compare(Student_records const&, Student_records const... | 1 | 2,156 |
Installing dlib for Windows: "Failed building wheel for dlib" and "non-zero exit status 1" | <p>I'm running Python 3.6 on Windows 10 and have installed cmake (via pip), cuda 9.2 and the latest version of Visual Studio (15.9.6), along with the 2015 v140 toolset component as it's mentioned elsewhere (<a href="https://devtalk.nvidia.com/default/topic/1027299/cuda-setup-and-installation/cuda-9-failed-to-support-th... | 1 | 1,621 |
Viewpager not scrolling in Coordinator layout | <p>This is my layout</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="matc... | 1 | 1,229 |
EntityManagerFactory Error when setting up Hibernate with Spring and Maven | <p>I'm trying to configure a Spring 3.2, Maven 3 project to use Hibernate 4.1, but I seem to be having issues with my Persistence.xml, and/or my entityManagerFactory.</p>
<p>I am trying to follow the JPA specifications.</p>
<p>When I run the application I get the following error:</p>
<p>[see bottom]</p>
<p>I have s... | 1 | 9,595 |
Running Maven and Sonatype Nexus while offline with no internet connection | <p>I am trying to setup a maven environment with nexus so that maven downloads its artifacts from a local Nexus repository. The machine where Maven and Nexus is installed has no internet connectivity for security reasons. </p>
<p>I have a similar configuration on my workstation which does have internet connectivity. I... | 1 | 1,309 |
Silverlight: Define event handler in hierarchical data template | <p>I am having problems getting at a click event of a button and am using Silverlight 3.0 w/ matching <a href="http://www.codeplex.com/Silverlight" rel="nofollow noreferrer">Silverlight Toolkit</a>.</p>
<h1>Problem</h1>
<p>I have this TreeView:</p>
<p><a href="http://a.imagehost.org/0939/TreeView.png" rel="nofollow ... | 1 | 1,543 |
Import CSV into Elasticsearch with Logstash | <p>I use the ELK stack to parse CSV files and send them to ElasticSearch after parsing them with logstash.</p>
<p>Unfortunately, I have a problem:</p>
<p>When I send my files to the listening directory of the "input" of my logstash pipeline, the records are doubled, see triplets, without my asking anything ...</p>
<... | 1 | 1,479 |
Php add a key value to associative array in foreach loop | <p>I am getting json data from an api endpoint, I would like to add a key value to an array that I get. This is my function:</p>
<pre><code> $magazines = Magazine::all();
foreach ($magazines as $magazine) {
$result = file_get_contents('http://customer.pages.com/?customer=' . $magazine->vis... | 1 | 1,213 |
How do I position an image on each side of a header? | <p>I'm trying to add a picture of a tree on each side of my header, however I cannot figure out how to position the images correctly to where they are both above my navigation bar and positioned to the left and right of my header. </p>
<p>This jsfiddle shows it a bit better than the snippet.
<a href="https://jsfiddle.... | 1 | 3,437 |
ggplot2: Plotting two models with regression coefficients | <p>I would like to replicate the figure below with <code>ggplot2</code> (though larger, I don't know why the figure is so small here).</p>
<p><a href="https://i.stack.imgur.com/8rng6.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8rng6.gif" alt="Original graph developed in Stata"></a></p>
<p>(The ... | 1 | 1,532 |
CodeIgniter: The page you requested was not found | <p>I have the following error:</p>
<blockquote>
<p>404 Page Not Found</p>
<p>The page you requested was not found.</p>
</blockquote>
<p>Posted below are my code files.</p>
<p>Controller code:</p>
<pre><code><?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
*
*/
class Pa... | 1 | 2,738 |
Cruise Control service error: Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor | <p>When attempting to run Cruise Control as a service (in this case on Windows 7, 64bit) I receive the error: </p>
<p><code>com.thoughtworks.xstream.converters.ConversionException: Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor</code></p>
<p>The full erro... | 1 | 2,866 |
Android-Bluetooth. Null pointer | <p>I am beginner in Objective-programming and I don't know what I should do. I am getting some errors with null pointer in openBT method. Below is my logcat and the code.</p>
<p>MainActivity.java:</p>
<pre><code>public class MainActivity extends ActionBarActivity implements DrawingViewInterface {
private DrawingView... | 1 | 3,343 |
ASP.Net C# - Remove controls dynamically | <p>I dynamically create a RadioButtonList or a CheckBoxList depending on a condition within a Button_Click event (which works).</p>
<pre><code>protected void btnGetQuestion_Click(object sender, EventArgs e)
{
string connStr = ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString;
MySqlC... | 1 | 1,746 |
how to fetch linkedin data in codeigniter | <p>I am using codeigniter and want to fetch linkedin data but it not works.. it getting no error but i could not fetch data also
i am using this code defined in following url: </p>
<p><a href="https://stackoverflow.com/questions/20497889/linkedin-php-api-not-setting-access-token-in-codeigniter">Linkedin php api not se... | 1 | 2,637 |
Custom authorization filter not working in ASP.NET Core 3 | <p>I'm working on adding authentication (and eventually authorization) with AzureAD to an ASP.NET Core 3.1 app using a custom authorization attribute filter. The code below implements the <code>IAuthorizationFilter</code>'s <code>OnAuthorization</code> method within which I redirect the user to the <code>SignIn</code> ... | 1 | 2,407 |
A POST request is giving me a 400 Bad Request | <p>I use angularjs in my project. I am getting a 400 bad request whenever a POST request is made using AttachmentsFactory. POST function of all other factories are working properly. Here's the
<strong>controller function</strong>
`</p>
<pre><code>$scope.updateAttachment = function(attachment){
console.log(JSO... | 1 | 1,034 |
MVC Forms authentication - IsAuthenticated is false after login and true while redirecting explicitly | <p>I have the following methods responsible for login authentication:</p>
<pre><code> [HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult Login(LoginModel loginModel, string returnUrl)
{
if (ModelState.IsValid)
{
//if (Membership.ValidateUser(loginMode... | 1 | 1,044 |
Why is JAVA version not detected? Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8 | <p>I am trying to build app in App Center. Build.gradle</p>
<pre><code>buildscript {
ext.kotlin_version = "1.5.30"
repositories {
google()
mavenCentral()
mavenLocal()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath &... | 1 | 1,412 |
How to get Apple health data by date wise? | <p><strong>Apple health app gives the data by Date wise as shown in below image.</strong></p>
<p><a href="https://i.stack.imgur.com/ujGOi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ujGOi.png" alt="enter image description here"></a></p>
<p>By using <code>HealthKit</code> i am fetching the steps data fro... | 1 | 1,698 |
Spring JpaRepository using generic entity | <p>I'm trying to implement a generic DAO like this to use it with X Entities quite similar (id, code, description):</p>
<pre><code>@Repository
public interface GenericDao<T> extends JpaRepository<T, Long> {
T findByCode(String code);
T findById(Long id);
}
</code></pre>
<p>One of my Entities is l... | 1 | 1,368 |
Grails Quartz Job has no Hibernate session after upgrade, causing LazyInitializationException | <p>I've upgraded a Grails 1.0.4 application to 1.1.1. After upgrading, I'm repeatedly getting Exceptions when executing my Quartz jobs (using Quartz plugin 0.4.1). The plugin is used to manually schedule jobs using Simple and Cron Triggers via a service (paraphrased code below):</p>
<pre><code>class SchedulerService i... | 1 | 1,244 |
Dialogflow V2 always give this error:- Webhook call failed. Error: Webhook response was empty | <p>I am trying to integrate my application with Dialogflow and Sending the request to Mulesoft and from there it is sending back the response in format mentioned in Webhook guide.</p>
<p>Below is the API request and response that is shown in Diagnostic info:-</p>
<p>Fulfillment Request:-</p>
<pre><code>{
"responseI... | 1 | 1,459 |
Measuring mutex contention / interpreting mutrace output | <p>I'm trying to measure mutex contention in my program with mutrace, but am stuck as to how to use the report it outputs.</p>
<pre><code>mutrace: Showing statistics for process test (PID: 5924).
mutrace: 1223 mutexes used.
Mutex #362 (0x0x1a23750) first referenced by:
/usr/local/lib/libmutrace.so(pthread_mut... | 1 | 4,316 |
ASK error, TypeError: Cannot read property 'type' of undefined | <p>I'm creating a skill that will call back different incidents at different dates and times from a DynamoDB table through Alexa. </p>
<p>My 3 columns are data, time and incident </p>
<p>I've defined my partition and sort key in my Lambda function as </p>
<p><div class="snippet" data-lang="js" data-hide="false" data... | 1 | 3,374 |
Authenticate user using email and password | <p>I have a form that only allow users to login via username . I decided to only allow user to login via email instead of username.</p>
<p>First, this is not a duplication of any question relating to logging via email because in my scenario, I validate and authenticate the user in <code>forms.py</code> before he proce... | 1 | 1,110 |
Progress Bar using Style to Update Progress | <p>I'm creating a progress bar using a div with class from bootstrap css.</p>
<p>I'm actually dynamically setting the value for the progress bar using JQuery.</p>
<p>The process is getting the value for the progress bar then storing it into a HiddenField then retrieving this value from the HiddenField. Lastly, using ... | 1 | 1,115 |
QML components sequentially loading with fade | <p>I need sequentially to load one by one components from array.
Before loading next component to Loader it should be fade-out , loaded and then fade-in. </p>
<p>The code above blinks not correctly and show this message:
"QML State: Binding loop detected for property "when"</p>
<p>What have I done wrong?</p>
<p>Than... | 1 | 2,433 |
Javascript Create and Add div vs Clone, Modify and Add div | <p>I want to dynamically add divs to my html page. The server sends a list containing the name, description, dates etc. for a task. For each task, a div looking like <a href="http://i.imgur.com/BnKJspX.png" rel="nofollow">this</a>, has to be added to the body. So, I have 2 methods of creating it -</p>
<ol>
<li><p>Clon... | 1 | 1,680 |
Fetch argument <tf.Tensor 'batch:0' shape=(128, 56, 56, 3) dtype=float32> cannot be interpreted as a Tensor. | <p>I write a test code,and when I run it ,it said Fetch argument cannot be interpreted as a Tensor.I really don't know what's going on .Can somebody tell me how to fix it? thank you very much .Here is the code</p>
<pre><code># coding=utf-8
from color_1 import read_and_decode, get_batch, get_test_batch
import color_i... | 1 | 1,890 |
Opencart Redirect to www.localhost.com | <p>I have downloaded OpenCart project from live site, and put in localhost.
Changed catalog/config.php and admin/config.php</p>
<p>Problem is, when I enter url: localhost/xyz, it get redirect to www.localhost.com</p>
<p><strong>config.php</strong>:</p>
<pre><code><?php
define('HTTP_SERVER', 'http://localhost/xyz/... | 1 | 1,233 |
Google Oauth giving code redeemed error | <p>Hi i am working on a project where a user logs in via google account.(localhost)
I have implemented the google signup.
As soon as I log in from my account I am getting the below error. </p>
<pre><code>TokenError: Code was already redeemed.
at Strategy.OAuth2Strategy.parseErrorResponse (c:\Projects\Internship... | 1 | 1,480 |
jQuery File Upload in AngularJS | <p>I'm trying to upload a file with <a href="http://blueimp.github.io/jQuery-File-Upload/">jQuery File Upload</a> in combination with angularJS. </p>
<p>I have a multistep form, this are 2 steps of my multistep form:</p>
<pre><code><div ng-switch="step">
<div ng-switch-when="1">
<h1>Iden... | 1 | 4,500 |
Display user meta data values in admin user list custom columns in WordPress | <p>For Woocommerce, with the help of <a href="https://stackoverflow.com/questions/52677584/admin-user-list-custom-column-display-based-on-custom-user-metadata-in-wordpress/52678203?noredirect=1#comment92303706_52678203">this answer thread</a>, I created some custom columns in Back end (Admin) user list:</p>
<p><a href... | 1 | 1,098 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.