title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
PHP CURL saves cookie into cookiejar but doesn't use it
<p>I have a PHP script which uses CURL to log into a site with a simple login page. It sends an initial request to the site and sees if it's already logged in (due to cookies) or if the login page comes up - and if it does, logs in.</p> <p>However, recently I noticed that every time the script runs it is never logged ...
0
1,090
Failed to load resource: net::ERR_CONNECTION_REFUSED for only selective images from instagram API
<p>I am currently making a <code>GET</code> request to the instagram API to get a bunch of photos with a particular tag, and returning the JSON object I get in Rails back to the caller in JS, and setting the HTML with the img links and thumbnails etc. in the DOM. </p> <p>What is weird is that, after restarting my serv...
0
1,905
AngularJS $scope.variable is undefined
<p>Pardon my newbiness but I can't figure it out. Why is my $scope.new_prompt undefined when clicking submit form? I can see the variable being updated as I type (in <code>&lt;p&gt;{{new_prompt}}&lt;/p&gt;</code>) but when I click submit, console logs 'undefined'.</p> <p>View:</p> <pre><code>&lt;div class="panel" ng-...
0
1,586
complex Xcode project with multiple .xcconfig files and cocoapods
<p>I am working on an iOS project where we are in the unfortunate situation that some of the libraries we must use comes in two versions. A version for debug, and a version for production. It is not possible to debug with the production lib. and it is likewise not possible to use the debug lib. in production.</p> <p>T...
0
1,413
SingleChildScrollView height to max height with image background in flutter
<p>In the Login screen, there is a background image and all stuff will be scrollable but <code>SingleChildScrollView</code> is not showing <code>macth_parent</code> height. My aim is to design like <a href="https://i.stack.imgur.com/NYupT.png" rel="noreferrer">here</a></p> <pre><code> class MyLoginOne extends Statele...
0
1,457
Application report for application_ (state: ACCEPTED) never ends for Spark Submit (with Spark 1.2.0 on YARN)
<p>I am running kinesis plus spark application <a href="https://spark.apache.org/docs/1.2.0/streaming-kinesis-integration.html" rel="noreferrer">https://spark.apache.org/docs/1.2.0/streaming-kinesis-integration.html</a></p> <p>I am running as below</p> <p>command on ec2 instance :</p> <pre><code> ./spark/bin/spark-...
0
1,426
Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set using spring-boot
<p>I am trying to configure hibernate in my spring-boot project.</p> <p>I have application.properties file</p> <pre><code>spring.datasource.url=jdbc:mysql:url?useSSL=false spring.datasource.username=name spring.datasource.password=password hibernate.connection.driver_class = com.mysql.jdbc.Driver hibernate.connectio...
0
2,259
Download files from MYSQL database
<p>ok i got files uploading to my database alright. but having problems downloading files from the database, it shows as a link and when i click on the link nothing happens.</p> <p>im still new to php so my code my not be perfect. </p> <p>here is my upload file</p> <pre><code> &lt;?php require 'connect.php'; ?&...
0
1,122
return a list<int> from a function c++
<p>Every time I try to use my add function and return a list from it. I get an undefined symbol error. What am I doing wrong here. </p> <p>this is the error: Undefined first referenced symbol in file</p> <pre><code>add(std::list&lt;int, std::allocator&lt;int&gt; &gt;...
0
1,657
NameError: name '__main__' is not defined
<p>I have been reading here, but I couldnt find any solution online to solve my problem..I think I have the indentation right, but I still get the Name Error..Can someone help me out please. This script should run a new panel in maya, which works kind of, but the error is really annoying. </p> <pre><code>class PanelW...
0
1,166
Module build failed: Error: ENOENT: no such file or directory - React
<p>I am trying to implement pagination in my react application. This is the site I am following <a href="http://jasonwatmore.com/post/2018/04/10/npm-jw-react-pagination-component" rel="nofollow noreferrer">React Pagination Component</a>. But I am getting the following error while application build. </p> <blockquote> ...
0
1,796
Compiler Error Message: CS1519: Invalid token '=' in class, struct, or interface member declaration
<p>I keep encountering the following compilation error:</p> <pre><code> Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. ...
0
2,862
How to use JQuery Image Slider with Master Pages?
<p>I'm in a situation where jquery works within an aspx page without masterpage, but with master pages it sucks. Here is what i'm doing... I'm using jquery image slider with in mysite in Home.aspx page.</p> <p>Below is the Home.aspx with master page :</p> <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="...
0
1,516
Include CSS and Javascript in my django template
<p>I am a newbie in Django 1.5 and I have learn some basic things about it. My problem is , I am not able to include css and javascript in my template. I have read the documentation about it but as i have said. I am a newbie and i can't understand it clearly. Please help me know the step by step procedure to a include ...
0
3,468
How to increase width of Bootstrap container on Max width?
<p>I've placed a <a href="https://datatables.net/" rel="noreferrer">DataTable</a> within a Bootstrap div of type container. When I run the website on the browser's max width the container for the table adds a scrollbar and cuts off the last column in the table.</p> <p>I did try using a <code>container-fluid</code> div...
0
3,095
How do we use the 'variables' keyword in gitlab-ci.yml?
<p>I am trying to make use of the <code>variables:</code> keyword documented in the Gitlab CI Documentation here:</p> <p><strong>FROM: <a href="https://docs.gitlab.com/ce/ci/yaml/README.html" rel="noreferrer">https://docs.gitlab.com/ce/ci/yaml/README.html</a></strong></p> <blockquote> <p>variables</p> <p>This ...
0
1,462
SSL Java java.io.IOException: Invalid keystore format
<p>I am testing SSL in java with SSLServerSocket and other classes in the java.ssl package. When I run the following code, I get the exception java.io.IOException: Invalid keystore format. My code:</p> <pre><code>package testing; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.InputStream...
0
1,765
RabbitMQ installation Error
<p>I am installing rabbitMQ on ubuntu16.04. But I am getting below error. I tries searching for it but not able to resolve it.</p> <pre><code>Adding group `rabbitmq' (GID 131) ... Done. Adding system user `rabbitmq' (UID 123) ... Adding new user `rabbitmq' (UID 123) with group `rabbitmq' ... Not creating home director...
0
4,598
Getting java.lang.AbstractMethodError when I test using REST Assured
<p>I'm trying to test a REST api defined in my controller class using <code>REST Assured v4.3.0</code>, but I get <code>java.lang.AbstractMethodError</code> when I run the test. I understand this error is occurring because I'm calling an abstract method, but I'm having a hard time resolving it. </p> <p>It seems that t...
0
3,071
EF Core - No database provider has been configured for this DbContext
<p>I am new to EF Core 1.0. Getting below error when I run below command during DB migration</p> <p>Command</p> <pre><code> migrations add ApplicationUserIsActive -c ApplicationDbContext </code></pre> <p>Error:</p> <blockquote> <p>System.InvalidOperationException: No database provider has been configured for t...
0
1,087
WireMock in Junit in Jenkins - BindException: Address already in use
<p>I have some Junit test in which I use WireMock. Locally the tests pass, but on Jenkins I get an error of <code>java.lang.RuntimeException: java.net.BindException: Address already in use</code></p> <p>In the WireMock configuration I set <code>dynamicHttpsPort()</code> (which according to docs "<em>Randomly asssign t...
0
1,628
SQL Error: ORA-01403: no data found
<p>when fire update query</p> <pre><code>update JISPBILCORBILLINGPRD501.TBLMACCOUNTADDRESS set Address1='NehateSir',stateid='STT0002' where accountid='ACC000000068' </code></pre> <p>that time this error occurs</p> <pre><code>Error starting at line 4 in command: update JISPBILCORBILLINGPRD501.TBLMACCOUNTADDRESS set A...
0
1,048
Running cells with Python 3.10 requires ipykernel installed
<p>I just installed Python 3.10 on my laptop (Ubuntu 20.04).</p> <p>Running a Jupyter Notebook inside of VS Code works with Python 3.9 but not with Python 3.10. I get the error message: <code>Running cells with 'Python 3.10.0 64 bit' requires ipykernel installed or requires an update</code>.</p> <hr /> <h4>Update Febru...
0
2,091
R: Object not found with ggplot
<p>I am trying to add legend names to a ggplot but I always get an "object not found error". </p> <pre><code> mycol = pft$colour myname = pft$name #mycol "#E5E503" "#9FFF8C" "#44CC29" "#137300" "#B2B224" "#0066CC" "#99CCFF" "#00407F" "#FF999B" "#E5171A" "#990003" "#A38FCC" "#7F40FF" "#A1E5CF" "#6B998A" "#F2F291" ...
0
1,559
Laravel Eloquent whereRaw sql clause returns all rows when using OR operator
<p>In <a href="http://laravel.com/" rel="nofollow">Laravel</a> i am using <a href="http://laravel.com/docs/4.2/eloquent" rel="nofollow">Eloquent ORM</a> to fetch all users associated with a group.</p> <p>(It's a legacy database so it doesn't follow Laravel conventions unfortunately).</p> <p>The users table has a colu...
0
1,265
Error setting up new project with angular/cli
<p>I am new to npm and Angular 2, I am trying to setup a new Angular 2 project using angular/cli.</p> <p>I am currently running:</p> <p>Node v8.9.3 npm v5.6.0 Windows 10</p> <p>First, I ran <code>npm install -g @angular/cli</code> which seemed to install just fine. Then I went to the folder where I wanted to start m...
0
1,421
The model item passed into the ViewDataDictionary is of type X[] but this ViewDataDictionary instance requires a model item of type X
<p>Error:</p> <blockquote> <p>InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'Test.Models.Ticket[]', but this ViewDataDictionary instance requires a model item of type 'Test.Models.Ticket'.</p> </blockquote> <p>Hello,<br> After staring at an error for a few days and doing so...
0
1,539
Json.NET serializeObject putting newline characters into data
<p>I have a ASP.NET Web API REST service running on a server that feeds data back and forth to my Android Apps. I use a lot of Newtonsoft Json with great success but it is causing me a problem on a new method I am writing.</p> <p>In a nutshell I am reading a large String from my SQL Server DB, putting it into a simpl...
0
1,107
JS: Remove object from nested array and return parent array
<p>How do I remove the object in my array subBrands that is nested inside another array where the id property of an object is = to 31. I'm trying to get the whole parent array back without that subBrand removed. </p> <p>Array is:</p> <pre><code>[ { "id": 10, "name": "Parent Brand 1", "parent": null, ...
0
2,649
How do i get data from a txt file and send it to excel spreadsheet?(I only want everything after the ":" in the txt file)?
<p>I have a program (below) that takes txt files and puts them into an excel spreadsheet. My goal is to extract the data from a text file but only text after the colon.</p> <p>Example txt file(No space between "name:" and "phone:" lines in the txt):</p> <p>Name: John doe</p> <p>phone: (xxx) xxx-xxxx</p> <p>I want m...
0
1,259
__memcpy_sse2_unaligned - what does this mean in detail?
<p>While working on my compiler I got this error:</p> <pre><code>Program received signal SIGSEGV, Segmentation fault. __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:33 </code></pre> <p>How do I get details of what went wrong here? I know from the backtrace it's a <code>memcpy</code>...
0
1,436
Override XML Serialization Method
<p>I'm having trouble trying to customize the way DateTime variables are serialized in my objects. I want it to be output as 2011-09-26T13:00:00Z but when I override the GetObjectData() function as I believe is the way to do this, no XML data is output for them at all. </p> <pre><code> [DataContract(Namespace = "")...
0
1,147
the request doesn't contain a multipart/form-data or multipart/mixed stream in Java File Uploader
<p>I tried to create file uploader in java. This is working but with redirecting to to servlet, I want to do it without reloading page. so I tried this way.</p> <p><strong>test.js</strong></p> <pre><code>$(document).ready(function() { $('#btn').click(function() { $.ajax({ type: 'post', url : '../F...
0
2,975
Hadoop: Reducer writing Mapper output into Output File
<p>I met a very very strange problem. The reducers do work but if I check the output files, I only found the output from the mappers. When I was trying to debug, I found the same problem with the word count sample after I changed the mappers' output value type from Longwritable to Text </p> <pre><code> package org...
0
1,356
Java app calls C++ DLL via JNI; how best to allocate memory?
<p>Basic summary of question is: How do I best optimize my memory allocation to give as much memory to the DLLs I access through JNI as possible? What should I aim to minimize, what should I aim to maximize, etc.</p> <p>SYSTEM: Running JBoss 6 as a Windows 32 Service in a 32-bit system with 4 GB RAM. I do understand...
0
1,389
React hook form setValue returns undefined with multi select (react-select)
<p>I'm trying to build a form using React with select elements from react-select and the validation done using react-hook-form.</p> <p>Upon change the value seems to successfully change, but when I submit the form the select value is undefined.</p> <p>I have input fields and those work properly, but for my select and m...
0
3,128
jasper text field getting truncated
<p>I'm having a font issue with my jasper report where one of my more wordy text fields (the last one in a detail band) is getting cut off in the PDF and PDF Preview but not in the Internal Preview. </p> <p>e.g. </p> <p>Internal Preview:</p> <pre><code>Here is a fake description. It fits perfectly, fitting just in t...
0
1,458
MultiValueDictKeyError in Django when use POST
<p>I am new to Django rest framework and was asked to write the token authentication part of our project. One thing to note is, as I would use not use the default admin site in future, I write login, logout, signup functions, and test the functionality by POSTMAN. What I want to do now is to let new user signup, login ...
0
1,755
gem install nokogiri -v '1.6.8.1' fails
<p>Building a new Rails app and getting a problem with nokogiri. Said to try <code>gem install nokogiri -v '1.6.8.1'</code> which fails with output below. I tried deleting Gemfile.lock and using the Gemfile from another app which has no problem—<code>bundle install</code> still fails. The original failure is <code>bund...
0
8,031
Getting ConnectionTimeoutException with the host did not accept the connection within timeout
<p>Can Some one Help me, how we can solve the following problem.</p> <pre><code>nested exception is org.apache.commons.httpclient.ConnectTimeoutException: The host did not accept the connection within timeout of 10000 ms at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvoke...
0
4,348
DataTables, select rows and pass back ID for delete
<p>first time posting here but i really need help. Been working on this little project for a while and am finding Datatables to be next to useless but im being told i must use it....anyway Ive got it displaying our table from an ajax call to our SQL server. It needs to let the user select a few rows and click a delete ...
0
1,545
Sonar installed & started but not accessible
<p>Summary:</p> <ul> <li>Installed standalone sonar </li> <li>Started through /etc/init.d/sonar start</li> <li>sonar.log doesn't show any error </li> <li><p>unable to open <a href="http://mymachine.ipaddress:9000/sonar" rel="nofollow noreferrer">http://mymachine.ipaddress:9000/sonar</a></p> <p>GET <a href="http://mym...
0
4,432
How to map java.time.LocalDateTime to TIMESTAMP in H2 database with Hibernate?
<p>I have a project build on Java 8. I have an entity and <code>java.time.LocalDateTime creationDate</code> property within. In database the column is a <code>TIMESTAMP</code> to be consistent with Oracle. Unfortunately by default H2 database treats <code>LocalDateTime</code> as <code>BINARY</code> value. When query is...
0
6,565
java.security.InvalidKeyException: invalid key format on generating RSA public key
<p>Background:</p> <p>I have created an applet to extract public key of a certificate extracted from a smart card. This public key is then stored in database. The private key of certificate is used to sign data and the public key is then used to verify the signature. Code for extracting public key from certificate:</p...
0
1,151
Android SeekBar can't be full width even set padding 0 in AppCompat 23.1.0
<p>when I update android support lib from 23.0.1 to 23.1.0, I find the SeekBar is not full width any more.</p> <p>this is the test XML file:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_paren...
0
1,405
Create Project Dependency and Add Reference to Project still causes "The type or namespace name could not be found"
<p>I have a solution in Visual Studio 2010 containing 6 projects (1 web application, 4 c# class libraries, 1 c# console application).</p> <p>The console application is my test harness and use this to test external web services, output from methods from within my other libraries and general experimentation. This test ...
0
1,038
onsubmit return validateForm isn't triggering
<p>This is really throwing me for a loop. I had this form successfully validating with my javascript by calling <code>onsubmit="return validateForm()"</code> when my <code>validateForm</code> function was inside a global variable. Unfortunately, once I started trying to debug IE8, I kept getting errors for having a glo...
0
1,885
How do I get an attribute value when using XSLT with unknown namespace?
<p>I am receiving a 3rd party feed of which I cannot be certain of the namespace so I am currently having to use the local-name() function in my XSLT to get the element values. However I need to get an attribute from one such element and I don't know how to do this when the namespaces are unknown (hence need for local-...
0
3,547
jquery mobile - set select/option values
<p>am trying to set select/option values using jquery Mobile and can't seem to get it working.</p> <pre><code>&lt;!-- Complete example below. --&gt; &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" href="jquery.mobile/jquery.mobile.css" /&gt; &lt;script type="text/javascript" src="jq...
0
2,074
import error: 'No module named' *does* exist
<p>I am getting this stack trace when I start pyramid pserve:</p> <pre class="lang-none prettyprint-override"><code>% python $(which pserve) ../etc/development.ini Traceback (most recent call last): File "/home/hughdbrown/.local/bin/pserve", line 9, in &lt;module&gt; load_entry_point('pyramid==1.5', 'console_scr...
0
2,128
WCF: Cannot find my custom validator specified in web.config - customUserNamePasswordValidatorType - - Could not load file or assembly ... - help?
<p>So I've basically got everything up and running with wsHttpBindings and my WCF service using custom authentication over HTTPS.</p> <p>The issue I'm having is with the customUserNamePasswordValidatorType:</p> <pre><code> &lt;serviceCredentials&gt; &lt;!-- Use our own custom validation --&gt; &lt;userNameAu...
0
3,019
Verilog Vending machine FSM
<p>I am trying to build a finite state machine in verilog for a vending machine that accepts 5,10, 25 cents as inputs and then output a a soda or diet and also output the appropriate change(as the number of nickels). I am currently getting an error that says ERROR:HDLCompiler:806 - "D:/Xilinx Stuff/FSM/FSM.v" Line 128:...
0
3,620
"Argument: NotFound" error using Windows Authentication for Silverlight
<p>A SL app created with SL Business Application template. Then Config it use Windows Authentication in web.Config as:</p> <pre><code>&lt;authentication mode="Windows"&gt; &lt;/authentication&gt; </code></pre> <p>Code in App.xaml.cs to initialize authentication as:</p> <pre><code> webContext.Authentication = ne...
0
2,631
Does any one know about this error: "Wrong Local header signature: 0x6D74683C"?
<p>The following code is used to download a zip file and unzip it on phone. </p> <p>The same code used to work on WP7, I started tested on WP8 device, and strange thing is happening... now <strong>it works on WP8 but <em>NOT</em> on WP7</strong> anymore. </p> <p>On the WP7 it gives an <strong>ERROR</strong>:</p> <pr...
0
3,365
Python: Evenly space output data with varying string lengths
<p>I am trying to get my output data to look like this:</p> <pre><code>------------------------------------------------------- Grade Report for Programs ------------------------------------------------------- Jacobson, Mark 19.0 &lt;--- 20,17,20 Snurd, Mortimur 16.5 &lt;--- 20,19,18,17,16,15,14,1...
0
1,075
Why does the content of this page shift a few pixels to the left/right?
<p>I'm using a "Centred Header/Footer/2 column CSS" layout.</p> <p>In test1.htm if their is minimal page content and the page footer is fully visible within the browser window then when you click on test2.htm the page content shifts to the left.</p> <p>If test1.htm has enough content to push the footer off the bottom...
0
3,190
Using async/await still returns undefined
<p>I asked recently about the asynchronous in javascript, <a href="https://stackoverflow.com/questions/53367823/request-promise-module-returns-undefined">request-promise module returns undefined</a>. I quite understand it after someone gave the same SO question which is the <a href="https://stackoverflow.com/questions/...
0
1,995
Resolving ascii codec can't decode byte in position ordinal not in range
<p>I've seen all of the other posts and done quite a bit of research but I am still scratching my head.</p> <p>Here is the problem:</p> <pre><code>$ python Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; a=u'My Ma...
0
1,064
My Android AChartEngine is already working, but how to make it look good?
<p>I guess the title gives away most of my questions, but let's detail and give a bit of background:</p> <p>I have an Android app focused mainly for tablets that will be displaying a few different real-time data in TimeCharts. So I already have a service to communicate with the data source that grabs the data, parse i...
0
2,490
How to run JavaFX on Android
<p>I try to run a simple JavaFX application on Android. Therefore I read the <a href="http://javafxports.org/page/Getting_Started" rel="noreferrer">javafxports Getting Started Guide</a> using gradle to build the app, but I got stuck somewhere. I'm able to build and install the app on an Android device using the <code>i...
0
1,716
MVC interceptor vs Spring security filter vs something else...?
<p>I'm using Spring-MVC with Spring Security for my web application. It includes user registration pages and private user panel. I have it set up currently with the following URL patterns: </p> <ul> <li><code>whatever/myapp/login</code> user log in</li> <li><code>whatever/myapp/register?step=1</code> start registrati...
0
1,175
Wix toolset: create directory in root disk (system disk or c:\) and copy files inside
<p>I'm aware of similar questions inside stackoverflow:</p> <p><a href="https://stackoverflow.com/questions/3296277/wixdefault-directory-in-wixui-installdir">WIX:default directory in WixUI_InstallDir</a>,</p> <p><a href="https://stackoverflow.com/questions/9390001/wix-installer-root-directory-and-versioning">WIX inst...
0
2,693
Error ''doctype' is an unexpected token. The expected token is 'DOCTYPE'. Line 1, position 3.'
<p>hey everyone i am new to using google api get weather update. problem its gives an error.. i set the doctype but problem not solved.. please help me thanks in advance...</p> <p>.aspx file</p> <pre><code>&lt;%@ Page Language="C#" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication4.WebForm1" %&gt; &lt;!DOCTYPE...
0
2,980
Installing lxml for Python 3.4 on Windows x 86 (32 bit) with Visual Studio C++ 2010 Express
<h2>Related</h2> <p>Related questions:</p> <ul> <li><a href="https://stackoverflow.com/q/2817869/1175496">error: Unable to find vcvarsall.bat</a></li> <li><a href="https://stackoverflow.com/q/22981951/1175496">LXML 3.3 with Python 3.3 on windows 7 32-bit</a> </li> </ul> <p>Related answers:</p> <ul> <li><a href="htt...
0
1,481
ORA-29024: Certificate validation failure - Apex and HTTPS
<p>Let me explain what is happening:</p> <ul> <li>Database: Oracle 19c</li> <li>Apex: 19.1.0.00.15</li> <li>ORDS standalone is 19.1.0.r0921545</li> </ul> <p>I did the tasks to configure an Apex Social Sign In to Microsoft AAD without almost any issue:</p> <ul> <li>I created the authentication method in Apex.</li> <li>I...
0
2,725
Symbol ExoPlayerFactory not found
<p>I am going insane trying to figure this out. It makes no sense at all. I have added the required implementation in my <code>build.gradle</code> file and synced it up just fine, but when I try to use ExoPlayer it isn't found. I have even tried manually entering in the import line using auto-complete and the only thin...
0
2,069
Problem with IE8 Horizontal list
<p>I have a menu bar..it appears correctly(horizontal) in mozilla and chrome but appears vertical in IE8. how can i make it horizontal using css</p> <p>here is the html code</p> <pre><code>&lt;div id="navigation"&gt; &lt;div id="myjquerymenu" class="jquerycssmenu"&gt; &lt;br/&gt; &lt;ul&gt; ...
0
1,827
OS X / iOS - Sample rate conversion for a buffer using AudioConverterFillComplexBuffer
<p>I'm writing a CoreAudio backend for an <a href="http://libxal.googlecode.com/" rel="noreferrer">audio library called XAL</a>. Input buffers can be of various sample rates. I'm using a single audio unit for output. Idea is to convert the buffers and mix them prior to sending them to the audio unit.</p> <p>Everything...
0
2,917
how to upload an image on ACF with update_field on wordpress
<p>I have a form, which has an upload (<code>$_FILES['watch_photo']</code>) field.</p> <p>I have looked around and came to put this function together.</p> <p>It basically takes all relevant information so it is re-usable in the future, it will return an array of the $pid, and URL of the file, when it is done.</p> <p...
0
1,498
NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference
<p>I'm a newbie to <code>Fragments</code> and custom <code>ListView</code> adapters. Can anyone give me a hand please?</p> <p>I've got my <code>Fragment</code> where I have my <code>ListView</code></p> <pre><code>public class RecordingListFragment extends Fragment implements OnItemClickListener { ListView mListV...
0
3,335
How do I use JPA to persist a Map (java.util.Map) object inside an entity and ensure the persistence cascades?
<p>I have recently started playing around with the Play! Framework for Java, version 1.2.3 (the latest). While testing out the framework, I came across a strange problem when trying to persist a <code>Map</code> object inside a Hibernate entity called <code>FooSystem</code>. The Map object maps a long to a Hibernate en...
0
1,034
Java launch error selection does not contain a main type
<p>I am a total newbie in Java and Eclipse. I googled for lots of help but still confused. From Eclipse I click run then choose Java application and I get this error immediately. Here is my source code:</p> <pre><code>import java.util.Arrays; import java.util.Scanner; public class SliceandDice { void main(String ...
0
3,850
Loop through a full XML document
<p>I'm looking for a way to loop through all the nodes of my XML document. </p> <p><strong>XML file sample</strong></p> <pre class="lang-xml prettyprint-override"><code>&lt;root&gt; &lt;llnode created="2005-05-24T15:26:24" createdby="42912153" createdbyname="" description="" id="107810306" modified="2008-06-05T16...
0
2,084
INFO: No Spring WebApplicationInitializer types detected on classpath
<p>I have a spring project that runs fine on my tomcat7 server when I deploy from eclipse: Run As >> Run on server. In the eclipse tab "Servers" I see:</p> <pre><code>Servers Tomcat v7.0 Server at localhost [Started, Synchronized] my_project [Synchronized] spring-web-3.2.4-RELEASE.jar </code></pre> <p>My pro...
0
1,362
Java Mailing Logic: Could not convert socket to TLS
<p>In one application, I implemented mail sending logic using java. I used <code>smtp.gmail.com</code> over <code>587 port</code> with a valid gmail id and password. In development environment everything is working fine. But in production environment I need to use a different mailing server say <code>smtp.xyz.in</code...
0
1,069
Upload video to Youtube using Youtube API V3 and PHP
<p>I am trying to upload a video to Youtube using PHP. I am using Youtube API v3 and I am using the latest checked out source code of Google API PHP Client library.<br> I am using the sample code given on<br> <a href="https://code.google.com/p/google-api-php-client/" rel="noreferrer">https://code.google.com/p/google-ap...
0
1,572
How to get list of files from an SFTP server?
<p>I have a problem and hoping to get a solution. I also have written some code but it needs some modification.</p> <p>Problem: I have a SFTP server (for privacy purposes I will give dummy credentials) that I need to connect to.</p> <p>Server name: server-name<br /> port: 22<br /> username: username<br /> password: pas...
0
1,493
Add new row dynamically with Javascript/JQuery/Rails 3
<p>I am building a timesheet form that consists of a calendar which enables a user to select a specified date, and search for a project. I have this functionality working. What I basically have is this:</p> <p><img src="https://i.stack.imgur.com/9WTTc.png" alt="enter image description here"></p> <p>Once the user sear...
0
2,801
Multi level login user and admin?
<p>I have a project to make login app in android studio, and have problem.. and i have code, and this code just basic login (not have level, like admin/user).. and i want to make it have multi level login. every level of user have diferent activity after click login.. (after admin click login button then go to admin ac...
0
3,249
Exception "There is no ViewData item of type 'IEnumerable<SelectListItem>" MVC
<p>Hello All I am new to MVC and I am unable to find the solution to the following exception.</p> <p><strong>"There is no ViewData item of type 'IEnumerable' that has the key 'Department'."</strong> </p> <p>Here is the cshtml code for it</p> <pre><code>@using LearningMVCDAL @using LearningMVCDAL.Classes @model Emplo...
0
1,761
How to smooth ugly jitter/flicker/jumping when resizing windows, especially dragging left/top border (Win 7-10; bg, bitblt and DWM)?
<p><strong>THE PROBLEM:</strong> When I grab the resize border of my Windows app, especially the top or left borders, and resize the window, the contents of the window do resize &quot;live&quot; as I drag, but they resize in a hideous manner that looks like a blatant bug to even the most novice user: the contents at th...
0
2,182
com.android.tools.r8.errors.CompilationError: Program type already present: androidx.annotation.AnimRes
<p>I'm trying to rebuild my project which I've written in kotlin but it has constantly failed with the error</p> <pre><code>Program type already present: androidx.annotation.AnimRes </code></pre> <p>I've tried </p> <ul> <li><p>Invalidating cache</p></li> <li><p>cleaning and rebuilding</p></li> <li><p>using <code>./g...
0
3,928
Linker returns "relocation has an invalid symbol at symbol index..."
<p>I am trying out some code on Ubuntu. I'm trying to run the following code </p> <pre class="lang-c++ prettyprint-override"><code>#include &lt;cstdlib&gt; #include &lt;cmath&gt; #include &lt;ctime&gt; #include "random.h" using namespace std; /* Function prototype! */ void initRandomSeed(); int randomInteger(int lo...
0
1,590
Change filename when using express/multer
<p>I'm having trouble uploading a pdf, when I upload it (I'm using <code>ng-file-upload</code>) the file json that reachs express.js is:</p> <pre><code>{ fieldname: 'file', originalname: 'db.pdf', encoding: '7bit', mimetype: 'application/pdf', destination: './client/public/docs/transactions/', filename: '8a3...
0
1,167
If value of a property is null when updating then that property should not be added to the record
<p>Suppose I have a mongoose schema like this:</p> <pre><code>var mongoose = require('mongoose'); var Schema = mongoose.Schema; var testSchema = new Schema({ name: {type: String, required: true}, nickName: {type: String} }); var Test = module.exports = mongoose.model('Test', testSchema); </code></pre> <p>I ...
0
1,079
Directory watching for changes in java
<p>I am using WatchService to watch change in directory, in particular creation of new file in directory. Below is my code - </p> <pre><code>package watcher; import java.nio.file.*; import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE; import static java.nio.file.StandardWatchEventKinds.OVERFLOW; import j...
0
1,270
Unable to retrieve the requested metadata /latest/meta-data/public-hostname
<p>I'm deploying a springboot application with spring-cloud-stream and binder for AWS Kinesis. The application works fine when is deployed on aws elastic beanstalk if the beanstalk is configured with public ip. When we set beanstalk with private ip, the application throws warnings at deploy because is unable to get som...
0
4,160
Update data present in database by php
<p>Created a table "test_mysql" in database "test" I have 3 files 1. list_records.php 2. update.php 3. update_ac.php</p> <p>Databse code</p> <p>Create database and table using phpMyAdmin</p> <pre><code>CREATE TABLE `test_mysql` ( `id` int(4) NOT NULL auto_increment, `name` varchar(65) NOT NULL default '', `lastname`...
0
2,649
"Can't locate ExtUtils/MakeMaker.pm in @INC" during git build
<p>I'm building <code>git</code> on a pretty minimal system (Ubuntu 16.04 docker image) without using the package manager (except for <code>wget</code>, <code>xz-utils</code>, <code>make</code> and <code>gcc</code>). I thus installed prerequisistes as follows:</p> <pre><code>apt-get update &amp;&amp; apt-get install -...
0
1,658
Maven Dependencies in SpringSource Tool Suite
<p>This is my first time using Maven and for some reason on my machine I am unable to get two of the hibernate dependencies that I need. My Pom.xml file is below:</p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://...
0
7,425
Pass a JavaScript array as argument to a WebAssembly function
<p>I would like to test WebAssembly for doing some complex array calculations. </p> <p>So I've written a simple C++ function adding two <code>int</code> arrays containing 3 elements each :</p> <pre><code>// hello.cpp extern "C" { void array_add(int * summed, int* a, int* b) { for (int i=0; i &lt; 3; i++) { su...
0
1,076
How to run the .reg file using PowerShell?
<p>I want to run the .reg file (registry file) using PowerShell Script but I am not able to run it. When i run it manually it creates the respective nodes in registry but i want it execute using powershell script. Below is the code which i tried using but got no results -</p> <pre><code>$PathofRegFile="c:\file.reg" re...
0
1,058
Unable to link to SDL2 functions using MinGW
<p>I'm relatively new to programming and I've decided to give SDL a try, but I'm a bit stuck. I haven't been able to build the project in codeblocks and I get 'undefined reference' to all SDL functions. I've seen a lot of similar questions here, but none of the solutions seems to help. I've already added the \include\S...
0
1,285
Simple multithreading with Qt: am I doing this right?
<p>I'm new to StackOverflow and wondering if I'm doing this right:</p> <p>I'm writing a simple Qt application to test multi-threading (something I am also completely new to). I made a MainWindow that contains widgets, and a class MyThread that subclasses QThread and overrides the run() method.</p> <p>The application ...
0
1,341
java.lang.UnsupportedOperationException adding to a list
<p>I have some really strange problem. I want to call the method called <code>create</code> but unfortunately the server throws error, but I don't know why. Here is my sample REST controller</p> <pre><code>import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; import pl.toby.model...
0
4,435
How to resolve keras.callbacks import errors for TensorBoard?
<p><b>Attempt 1</b></p> <pre><code>from keras.callbacks import TensorBoard from keras.models import Sequential from keras import layers from keras.optimizers import RMSprop tb_callback = keras.callbacks.TensorBoard(log_dir="/Users/baldur009/Documents/Scripts/log/model_gru", histogram_freq=0, write_graph=True, write_i...
0
1,489
EF Code First - Invalid column name
<p>Im getting an error "Invalid column name 'FeeLevel_LevelId' which makes absolutely no sense considering all properties are simple types and there is no FeeLevel nor a LevelId object in this object.</p> <p>So my context is:</p> <pre><code> public partial class FeesDbContext : DisconnectedEntityContext { ...
0
3,699
How to call object's method from Thymeleaf?
<p>My template do not see objects, passed from Spring.</p> <p>My code:</p> <pre><code>public class PublicModelAndView extends ModelAndView { @Autowired TemplateModulesHandler templateModulesHandler; public void init() { setViewName("index"); CSSProcessor cSSProcessor = new CSSProcessor(...
0
1,253
Insert javascript at top of including file in Jinja 2
<p>In Jinja2, I would like the following to work as it looks like it should, by running:</p> <pre><code>from jinja2 import Environment, FileSystemLoader env = Environment(loader=FileSystemLoader('.')) template = env.get_template('x.html') print template.render() </code></pre> <p>Essentially the objective is to coales...
0
2,783
Can't install libmysqlclient-dev package when building dockerfile with ubuntu
<p>I have the following content on my Dockerfile:</p> <pre><code>FROM ubuntu:latest RUN apt-get update RUN apt-get install -y python-pip libmysqlclient-dev </code></pre> <p>And I got this output:</p> <pre><code>Step 4 : RUN apt-get install -y python-pip libmysqlclient-dev ---&gt; Running in 2fb54b3107d4 Reading pa...
0
2,601