title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Flutter_ffmpeg: At least one output file must be specified
<p>I'm trying to crop a video with <a href="https://pub.dev/packages/flutter_ffmpeg" rel="nofollow noreferrer">Flutter_ffmpeg</a> package using this <code>-i $inputPath -filter:v "crop=80:60:200:100" -c $outputPath</code>, but I'm having this error message </p> <pre><code>Running FFmpeg with arguments: [-i, /data/user...
2
2,056
Cannot parse XML message with JAXB org.springframework.oxm.UnmarshallingFailureException
<p>I am using following code to parse soap response but I am receiving UnmarshallingFailureException, I changed @XmlSeeAlso to @XMLRootElement but the problem still persists. WSDL is <a href="http://www5v80.elsyarres.net/service.asmx?wsdl" rel="nofollow noreferrer">here</a>.</p> <pre><code> Caused by: javax.xml.bind....
2
4,195
How to loop through the Datatable columns and assign values to it dynamically in vb.net?
<p>I am retrieving the values from XML and storing in a datatable after which i will insert the datatable values to the database. </p> <p>The Database table structure will be same as the datatable structure i have created. </p> <p>In the below XML i have only 3 nodes (6 values comprising EmpName and EmpID) , so i ha...
2
1,368
ClassNotFound error during class verification with ASM's Class Verifier (org.objectweb.asm.util.CheckClassAdapter)
<p>So here is a snippet of bytecode which i am trying to verify using ASM's class Verifier:</p> <pre><code>public &lt;init&gt;(Ljava/io/InputStream;)V ALOAD 0 ALOAD 1 SIPUSH 2048 NEW org/apache/xerces/impl/msg/XMLMessageFormatter DUP INVOKESPECIAL org/apache/xerces/impl/msg/XMLMessageFormatter....
2
1,132
Strange behavior of $routeChangeSuccess: Not triggering on first load (but not throwing any error)
<p>I have no clue how to even begin explaining this situation but I'll try my best. I have a simple Spanish-English-Spanish dictionary lookup page with a text box, a <strong>Lookup</strong> button, and a div to show the results. When you enter a word to lookup in the text box and hit <strong>Lookup</strong>, the result...
2
5,552
AudioConverterConvertBuffer problem with insz error
<p>I have a problem with the this function AudioConverterConvertBuffer. Basically I want to convert from this format</p> <pre><code> _ streamFormat.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked |0 ; _streamFormat.mBitsPerChannel = 16; _streamFormat.mChannelsPerFrame = 2; _st...
2
1,024
SharePoint 2007: Publishing Error from Page based on Custom Masterpage
<p>I've developed a base SharePoint master page based on <a href="http://www.heathersolomon.com/blog/archive/2007/01/26/6153.aspx" rel="nofollow">Heather's</a>. below is the based page that I've customized.</p> <pre><code>&lt;%-- Identifies this page as a .master page written in Microsoft Visual C# and registers tag p...
2
2,355
Grizzly http server fails some request
<p>I created a grizzly web server, to run my jersey application out of tomcat, to speed up tests.</p> <p>I'm a grizzly beginner, but looking through the net I put some code lines together, to make a grizzly web server up and running in less than a working day :)</p> <p>Unfortunately my class has some troubles on conc...
2
1,292
Flutter failed to build build_runner with Freezed
<p>I am facing this issue when I added a new property to the Freezed class for the first time in three months, and then run</p> <p><code>flutter clean &amp;&amp; flutter pub get &amp;&amp; flutter pub run build_runner build --delete-conflicting-outputs</code>.</p> <p>And I tried the answers on the following page, but i...
2
1,549
sqlite path in hibernate.cfg.xml on glassfish server
<p>I'm trying to use sqlite using hibernate. However, I've had hard time, configuring sqlite database path. Currently, my <code>hibernate.cfg.xml</code> looks like this:</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration...
2
1,302
Content-Length Occasionally Wrong on Simple C# HTTP Server
<p>For some experimentation was working with Simple HTTP Server code <a href="http://www.codeproject.com/Articles/137979/Simple-HTTP-Server-in-C" rel="nofollow">here</a></p> <p>In one case I wanted it to serve some ANSI encoded text configuration files. I am aware there are more issues with this code but the only one ...
2
1,446
Angular 2 router ignoring my child <router-outlet> when creating multilevel child route
<p>I'm having issues creating a component which contains a <code>&lt;router-outlet&gt;</code> to show children routes, which is at the same time a children of a parent with its own <code>&lt;router-outlet&gt;</code>.</p> <p>Here's a plunk showing this behaviour with 4 different routes via <code>&lt;a&gt;</code> tags: ...
2
3,128
How to Parse XML in android and store it in class
<pre><code>&lt;layout&gt; &lt;menu1&gt; &lt;title&gt;Oil Painting&lt;/title&gt; &lt;sectioncount&gt;5&lt;/sectioncount&gt; &lt;cost&gt;0&lt;/cost&gt; &lt;appcode&gt;0&lt;/appcode&gt; &lt;section1.1&gt; &lt;title&gt;Oil Painting basics&lt;/title&gt; &lt;subtitle&gt;9 minutes 57 secs*...
2
4,375
Create Client side socket (Winsock, MQL5, MT5) and Server side Socket using (NodeJS + Socket.io)
<p>I have a windows server 2016 and I am trying to send data from Meta Trader 5 using EA to the specific port (777) in localhost and I am using NodeJS, Socket.io on the other hand to capture that data. </p> <p>I would like to pass data from MT5 to a localhost:some_port. I have never worked with sockets (client-server)...
2
1,318
Prevent page break between thead and tbody when printing
<p>I have some dynamic content, and when printing I found browsers will insert a page break between a tables <code>&lt;thead&gt;</code> and the following <code>&lt;tbody&gt;</code>, resulting in things like this screenshot depending on the preceding dynamic content.</p> <p>I want it to move the table/header to the next...
2
1,553
Hibernate+spring java configuration
<p>I am new to spring and hibernate, i want to configure hibernate session factory using java config. now i have an xml config but not working with java configuration My xml config is:</p> <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/...
2
3,457
did you forget to call setup(LocalActivityManager) exception in FragmentActivity
<p>I have this code where i want to display new fragments for each tab .</p> <pre><code>public class Second extends FragmentActivity{ private TabHost mTabHost; private static final String TAG_1 = "tab1"; private static final String TAG_2 = "tab2"; private static final String TAG_3 = "tab3"; private static final Strin...
2
2,213
Sticky navbar using Bootstrap?
<p>Hi all I am trying to make the navbar that will stick to the page just after my header but when I make it fixed using the following code <code>&lt;div class="navbar navbar-default navbar-fixed-top"&gt;</code> <br>but when I do that the navbar overfloats the header and it doesnt work as it should.</p> <p><strong>HTM...
2
1,202
upgrade from laravel 7 to laravel 8
<p>I am trying to upgrade from laravel 7 to 8 bug i got the error</p> <p>Your requirements could not be resolved to an installable set of packages.</p> <p>Problem 1</p> <pre><code>- Conclusion: don't install laravel/framework v8.0.1 (conflict analysis result) - Conclusion: don't install laravel/framework v8.0.2 (confli...
2
1,331
Working with -filter_complex in ffmpeg with a batch concat array
<p>What I am trying to do here is write an ffmpeg script that takes all songs from a folder and combines them into one audio file using the command line in Windows.</p> <p>So far I have</p> <pre><code>ffmpeg -i "pathforinput1" -i "pathforinput2" -i "pathforinputn" -filter_complex "[0:0] [1:0] concat=n=(number of song...
2
1,378
Why does this parallel code in D scale so badly?
<p>Here is one experiment I performed comparing parallelism in C++ and D. I implemented an algorithm (a parallel label propagation scheme for community detection in networks) in both languages, using the same design: A parallel iterator gets a handle function (normally a closure) and applies it for every node in the gr...
2
1,277
ValueError: Tensor proto is larger than 2GB
<p>I am currently trying to customize a larger dataset with BERT based on the published code on my own data <a href="https://colab.research.google.com/github/google-research/bert/blob/master/predicting_movie_reviews_with_bert_on_tf_hub.ipynb" rel="nofollow noreferrer">Colab-Code</a>. Since the data is too big for the i...
2
2,395
Data refresh in listview after adding data to database
<p>I have an application wherein, it retrieves data from DB and displays it in a list view but I want it to refresh after adding new data to database without using:</p> <pre><code>Intent i = new Intent (MyActivity.this,MyActivity.class); startActivity (i); </code></pre> <p>Here is my code:</p> <pre><code>public clas...
2
2,531
Confluent 4.1.0 ->KSQL : STREAM-TABLE join -> table data null
<p>STEP 1: Run the producer to create sample data</p> <pre><code>./bin/kafka-avro-console-producer \ --broker-list localhost:9092 --topic stream-test-topic \ --property schema.registry.url=http://localhost:8081 \ --property value.schema='{"type":"record","name":"dealRecord","fields":[{"name...
2
1,683
Combine multiple XML files using XSLT and do some math function
<p>I have an XML file <strong>authors.xml</strong> as below:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;authors&gt; &lt;author&gt; &lt;name&gt;Leonardo da Vinci&lt;/name&gt; &lt;nationality&gt;Italian&lt;/nationality&gt; &lt;/author&gt; &lt;author&gt; &lt;name&gt;Pablo Picas...
2
1,484
Issue with Pysnmp Trap Receiver.for SNMPv3
<p>PSNMP Socket is actually receiving traps but the call back function is not getting called. I have enabled the debug logging. Using Pysnmp 4.3.3</p> <pre><code>from pysnmp.entity import engine, config from pysnmp.carrier.asyncore.dgram import udp from pysnmp.entity.rfc3413 import ntfrcv from pysnmp.proto.api import ...
2
1,831
Update UI with SignalR and Knockout when manually updating DB
<p>I have had a search around SO for this, but didn't come across anything obvious. I have a dashboard of jobs, and their status continually changes throughout the day and I'm trying to put together some proof of concept applcation and manually trigger the updates by running update commands in the database. This is wh...
2
1,098
Two errors when using Railroad for Rails
<p>I've installed the diaspora rails application <a href="https://github.com/diaspora/diaspora" rel="nofollow">https://github.com/diaspora/diaspora</a> on my local machine. Then I installed the Railroads diagram generator <a href="http://railroad.rubyforge.org/#download" rel="nofollow">http://railroad.rubyforge.org/#do...
2
1,536
Start marquee after touch event in android
<p>I have one Linear Layout which contains three List Views and Three Buttons. I have customized the List View elements. I just want that if anyone touches the element of a List View then the corresponding text view should give effect as a marquee. </p> <p>The main Linear Layout is as below -</p> <pre><code>&lt;Linea...
2
1,577
Center HTML in OUTLOOK not working
<p>I have spent all day reviewing fixes for my issue. My HTML looks great on all email clients except Outlook, by which the layout will not center in the preview. I've tried the <code>&lt;center&gt;</code> tag and fixing the <code>.ExternalClass</code> but nothing works. Can anyone help?</p> <pre><code>&lt;!doctype ht...
2
9,684
How to listen to different UDP ports on the same address within the same process in Node.js
<p>I'm writing a Node.js app to control a small drone. Here are the instructions from the SDK:</p> <hr /> <p>Use Wi-Fi to establish a connection between the Tello and PC, Mac, or mobile device.</p> <h2>Send Command &amp; Receive Response</h2> <p>Tello IP: 192.168.10.1 UDP PORT: 8889 &lt;&lt;--&gt;&gt; PC/Mac/Mobile</p>...
2
1,669
Why does Okta-React Login redirect to blank page when using Django?
<p>I am using Okta-React for authentication in my React project and when I run the React test server my login authenticates successfully and redirects to the account page. When I run the React build command and render the build files with Django, my login authenticates properly, but when it redirects back to my site I ...
2
1,086
Global Makefile with scoped variables
<p>I am attempting to convert my entire project to a single Makefile at the behest if <a href="http://aegis.sourceforge.net/auug97.pdf" rel="nofollow">this</a> paper that I see littering all of my search results whenever I have a recursive makefile question. However, I have run into quite a fundamental problem that I'...
2
1,156
How to join two queries with different GROUP BY levels, leaving some records null
<p>In MS Access, using SQL, I've combined two queries with inner join that both require the user to input a Start Date and End Date range. The first query (query 1) lists the count of how many people have left the program, the situation with which they left, the month, and the year they left. It is grouping the Count ...
2
1,117
Create a new column based on other column names and values
<p>I am trying to create a new column based on few other column names and their values in that data frame.</p> <p>The data looks something like this</p> <pre><code>user_id Gender Age Cate_Ch_Bot Cate_Ch_Phy Cate_Ch_Chem Cate_Ch_Comp Cate_Ch_Zoo 0001 F 13 0 1 0 1...
2
1,282
Maps Place Click save that location to Android Listview?
<p>I am displaying the Google maps in the Android program.How can i save the places to Android Listview whenever I Click On One place in the map.</p> <p>By this I am Getting the search place in the maps </p> <pre><code>package com.commonsware.android.nooer; import java.io.IOException; import java.util.ArrayList; im...
2
2,663
Clerification needed re: INSERT base64 to BLOB in mySQL database
<p>I am collecting a signature on an agreement form with a canvas element. Before the form is submitted the canvas element is converted to a base64 string that is then stored in a HIDDEN form field.</p> <p>When the base64 string hits the PHP page that is processing and INSERT-ing the form elements into my database it ...
2
2,414
python.net import clr throws invalid pointer error
<p>When i am trying to import clr in my python code i get the following error:</p> <pre><code>*** Error in `python': free(): invalid pointer: 0xb0f1a120 *** Stacktrace: at &lt;unknown&gt; &lt;0xffffffff&gt; at (wrapper managed-to-native) Python.Runtime.Runtime.Py_Initialize () &lt;0xffffffff&gt; at Python.Runti...
2
1,101
C# Linq to XML - Return multiple children
<p>I have this xml:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Interfaces&gt; &lt;Interface&gt; &lt;Name&gt;Account Lookup&lt;/Name&gt; &lt;PossibleResponses&gt; &lt;Response&gt;Account OK to process&lt;/Response&gt; &lt;Response&gt;Overridable restriction&lt;/Response&gt; ...
2
1,062
How to convert the response got from a server from string to array in swift 3?
<p>Here I got the response after posting parameters successfully and I need to retrieve it back but the problem I got stuck here that I had saved the data in <code>responseString</code> and it is storing in the form of string and when I try to retrieve it and saving in an array unable to save can anyone help me how to ...
2
1,464
Default select option in angular2 not working
<p>An application developed in <code>angular2</code> on which I have different food categories, If I pick some category (e.g: salads..) and in that page I want to add a specific food a modal popped up with some fields to add infos about the food, among those fields there is a <code>dropdown-list</code> with different c...
2
2,026
Liferay 6.2 on JBoss 7.2
<p>I've got a problem. I'm trying to run Liferay 6.2 on my JBoss 7.2. I followed the installation steps (<a href="https://www.liferay.com/de/documentation/liferay-portal/6.2/user-guide/-/ai/installing-liferay-on-jboss-7-liferay-portal-6-2-user-guide-15-en" rel="nofollow noreferrer">https://www.liferay.com/de/documentat...
2
6,828
How can i convert docx to pdf using apache poi and itext 7 with pdf calligraph on in java?
<p>i want to convert docx to pdf using apache-poi and itext 7(pdf calligraph on)</p> <p>i have tried using other version of itext but they are showing problem of ligature in indic languages</p> <pre><code>import org.apache.poi.xwpf.converter.pdf.PdfConverter; import org.apache.poi.xwpf.converter.pdf.PdfOptions; imp...
2
1,037
Android : Google map showing multi location
<p>I'm using <a href="http://developer.android.com/resources/tutorials/views/hello-mapview.html#top" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-mapview.html#top</a> tutorial to show multi location in the map using markers.but it does not show the location.it only show the map.here is m...
2
1,260
Spring not autowiring field in a class with constructor
<p>I've read questions here in stackoverflow such as:</p> <ul> <li><a href="https://stackoverflow.com/questions/14234676/how-to-autowire-bean-with-constructor">Anyway to @Autowire a bean that requires constructor arguments?</a></li> <li><a href="https://stackoverflow.com/questions/6739566/anyway-to-autowire-a-bean-tha...
2
1,201
scrapy install on debian
<p>I got an issue, scrapy was working fine until I uninstalled it and reinstalled. Since 0.24 wasn't available at the time on debian I added the ubuntu repo to my /etc/pat/sources.list.d and installed it with apt-get as described here : <a href="http://doc.scrapy.org/en/0.24/topics/ubuntu.html" rel="nofollow">http://do...
2
1,322
React-Redux removing(delete) an item on click
<p>I am learning react-redux, so now I am trying to create react-redux crud app, here is ny solution</p> <p>Here is repo : <a href="https://github.com/throne1986/twitter-app" rel="nofollow noreferrer">repo demo</a></p> <p>The button</p> <pre><code>&lt;span className=&quot;delete_info&quot; onClick={() =&gt; deleteComm...
2
1,387
Can't compile libjpeg-turbo for iOS on Xcode 5 / Clang toolchain with SIMD / NEON support
<p>Looks like with Xcode 5 and the removal of LLVM-GCC-4.2 and its replacement by Clang, building libjpeg-turbo for iOS devices now fails during the compilation of NEON support.</p> <p>Configure step:</p> <pre><code>export PLATFORM="iPhoneOS" export IPHONE_SDK="7.0" export IPHONE_MIN_VERSION="5.0" export DEVELOPER=`...
2
1,305
How to invoke my AWS API Gateway REST API in my iOS / Swift project
<p>I created a Single View Application <a href="https://developer.apple.com/library/archive/referencelibrary/GettingStarted/DevelopiOSAppsSwift/BuildABasicUI.html" rel="nofollow noreferrer">in Xcode</a>, and then I followed the AWS Amplify iOS SDK guide to insert authentication using my existing Cognito User Pool. Work...
2
2,577
System.Net.WebException: The operation has timed out
<p>I have a complex code , in one section I send a rest webrequest to a web service and get its response for rest of job , the response have variant size , some times its heavy , on IIS Express on VS there isn't any problem but when going live on IIS it throw System.Net.WebException: The operation has timed out. and ...
2
1,289
using angular-ui-router with express/node, file structure
<p>I am following <a href="https://hackhands.com/mongodb-crud-mvc-way-with-passport-authentication/" rel="nofollow">this</a> tutorial, and I have an app structure like this. I've tried to show only the relevant bits as it is sort of a lot of code.</p> <pre><code>/app /views index.ejs /config express.js...
2
1,086
Bokeh ploting multiples charts in a layout throws ERROR : (BOTH_CHILD_AND_ROOT)
<p>Today I'm asking for some help while creating a web app to visualize data using Bokeh 0.11.1.</p> <p>First of all, I'm using Python 2.7 and Django 1.9.5 to run the app. I'm programming with PyCharm professional edition, all this running on a Windows 7. </p> <p>At first everything works fine for me with Bokeh, I cr...
2
1,627
Azure DevOps Pipeline ArchiveFiles creates empty archive from build folder
<p>I've set up an Azure DevOps build pipeline. Everything is working fine, except for the <code>ArchiveFiles</code> step that should generate the artifact to be published to Azure afterwards.</p> <p>I'm using the following YAML configuration:</p> <pre><code>- script: | call dist.bat tree /A /F displayName: ...
2
1,266
Keyerror in python matching executables
<p>I'm getting</p> <pre><code>Traceback (most recent call last): File "C:\Downloaders\nzbToMedia\TorrentToMedia.py", line 323, in &lt;module&gt; state = unpack(dirpath, file, outputDestination) File "C:\Downloaders\nzbToMedia\TorrentToMedia.py", line 121, in unpack if which(win_7z_exe): File "C:\Downloade...
2
1,364
Inserting data into a mysql table using ajax without page refresh
<p>I have a basic contact form that uses recaptcha and it kinda works. I have field validation, captcha validation, and it's posting to my db but my page refreshes after the INSERT. Here's my JS:</p> <pre><code>function validateCaptcha() { challengeField = $("input#recaptcha_challenge_field").val(); responseFi...
2
1,396
db2_execute returns "Describe Param Failed" and "Binding Error"
<p>I'm running the following query using PHP's db2_prepare and db2_execute (schema names have been changed to protect the innocent):</p> <pre><code> WITH U AS ( SELECT * FROM FOO.USR WHERE USR_ID = ? ), UC AS ( SELECT UC.* FROM FOO.USR_CNTRCT UC ...
2
1,254
Spring Batch Process hanging after the writer completes
<p>I am at a loss how to debug this issue, so not even sure which code snippets to put up. Here is the basic setup:</p> <p>I have to read from a REST API and write to a SOAP API. As far as I can tell the reading and writing are working without any issue. I have 3 sets of reads with 3 matching sets of writes that can h...
2
10,029
MVC running application in IIS throwing configuration error
<p>I've created my MVC project and successfully run it inside <code>iis express</code>.</p> <p>Later I wanted that same project to run inside <code>iis</code>. Without success.</p> <p>What I've done:</p> <ul> <li><p>In project - Properties - Web - switch 'Servers' from iis express to iis.</p></li> <li><p>Clicked 'Cr...
2
2,905
Casperjs: Open a new window/tab
<p>I am trying to create a test script that will go through my site, click on a link and open a new tab to another website, fill out a form submit it and then go back to original website, however every example I have looked at and tried does not work for me. The page runs until there it opens the new window and then t...
2
1,850
JavaServer Faces 2.2 composite component rendered with enclosing <html> ... </html> tags
<p>While migrating a project from JavaServer Faces 2.1 / Java EE 5 to JavaServer Faces 2.2 / Java EE 7 web profile on GlassFish 4, I encountered invalid HTML code because of additional <code>&lt;html&gt; ... &lt;/html&gt;</code> tags for every instance of a composite component in the JSF code.</p> <p>Environment: Moja...
2
1,084
body Margin property not working
<p>Here is my code In HTML</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;Selection&lt;/title&gt; &lt;link rel="stylesheet" href="style.css"&gt; &lt;/head&gt; &lt;body &gt; &lt;div id="container" &gt; &lt;for...
2
1,178
JPA trying to force me to have a property and database column named 'id'
<p>I have a MySQL InnoDB database table with two columns named follower_user_id and followed_user_id, both of which make up the primary key.</p> <p>I'm trying to map them in Spring Boot but error messages keep telling me I need a property named 'id'. But this table does not have an 'id' column.</p> <p>What's more, th...
2
3,414
How to sort NSArray with dictionary objects alphabetically?
<blockquote> <p><strong>I have unsorted dictionary array and I want to sort it according to artist names.Unsorted list are given below:</strong></p> </blockquote> <pre><code> { artist = "Afro Latin Jazz Orchestra"; id = 10; }, { ...
2
3,949
Vue invalid CSS - expected 1 selector or at-rule,
<p>I'm trying to <code>npm run serve</code> in Vue and receiving the following error:</p> <pre><code>Failed to compile. ./src/App.vue?vue&amp;type=style&amp;index=0&amp;lang=sass&amp; (./node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postc...
2
1,167
How to change text color and background color of PreferenceScreen in Android
<p>How to change text and background color in a PreferenceScreen inflated by <strong>PreferenceFragmentCompat</strong>?</p> <p>Tried <a href="https://stackoverflow.com/questions/37935057/how-to-change-the-text-color-of-preferencecategory-preferencescreen/39920363#39920363">How to change the text color of PreferenceCate...
2
1,235
Symfony / Doctrine ManyToMany with conditions and limit
<p>I've created a concept of a Person model having many e-mails. I also have a Company model that can share the same e-mails with People (Person model).</p> <p>In short: People OneToMany PeopleEmail ManyToOne Email (classic manytomany unidirectional with a join table)</p> <pre><code>people { id, firstname, lastname, ...
2
1,092
AngularJS: Datepicker not showing when used on modal
<p><strong>Question:</strong></p> <p>I can't find a solution how to get the Datepicker to work, in a modal in Angular. (Please see my code sample below)</p> <p><strong>Sample Code:</strong></p> <p><div class="snippet" data-lang="js" data-hide="true"> <div class="snippet-code snippet-currently-hidden"> <pre class="sn...
2
1,416
How to use DevExtreme in partial view (ASP.NET MVC)?
<p>I try to use DevExtreme component in partial view. But my partial view page shown when I click on the element.</p> <p>And in the main page after the click I have error</p> <pre><code>Newtonsoft.Json.JsonSerializationException: Self referencing loop detected for property 'ApplicationEntity' with type 'System.Data.E...
2
1,077
Character encoding of Localizable.strings, generated by genstrings
<p>In my "ViewController.swift", I have a localized string:</p> <pre><code>TheOutLabel.text = NSLocalizedString("hello", comment: "The \"hello\" word") </code></pre> <p>In the Terminal, to generate the "Localizable.strings" file, I typed:</p> <pre><code>cd Base.lproj/; genstrings ../*.swift; cat Localizable.strings ...
2
1,296
non-deferred static member initialization for templates in gcc?
<p>Does gcc have any guarantees about static member initialization timing, especially regarding template classes?</p> <p>I want to know if I can get a hard guarantee that static members (<code>PWrap_T&lt;T&gt;::p_s</code>) will be initialized before <code>main()</code>, when classes are instantiated across multiple co...
2
1,212
How to write to Sharepoint 2013 list using the Rest API
<p>I have been stuck for almost a week now, I want to write to a SharePoint list, usin the rest api they provide. The api looks like this, <a href="http://site/_api/lists" rel="nofollow">http://site/_api/lists</a>, and from here I can read and write depending on what I append to my url, I can read from the lists withou...
2
1,277
Managing conditional coupons and additional fees on cart/checkout Woocommerce
<p>I am having problems in managing contemporarly disocunt coupons and custom additional fields on the cart and checkout page.</p> <p>I created a function that adds a discount only if a product is present in the cart with more than a variation and the discount is applied only on the second (or third) variation, NOT on...
2
2,721
Accelerating the calculations in Python (Simulation of particles in a magnetic field)
<p>A have a problem with the speed of the program written in Python. The program is "Simulation of ferromagnetic particles in a magnetic field", and more specifically in the magnetically inert liquid. The program works, but very slowly compared to the same program written in C++, but I have it written in Python, on a p...
2
4,304
jQuery mmenu plugin: Sliding Submenus won't work
<p>I'm working with the jquery <a href="http://mmenu.frebsite.nl/" rel="nofollow noreferrer">mmenu</a> plugin, but can't seem to get the sliding submenus to work.</p> <p>This is my navigation: </p> <pre><code>&lt;nav id="menu"&gt; &lt;ul class="mm-panel"&gt; &lt;li&gt; &lt;a class="level1-nav" href="#mm-1...
2
2,284
EF6: Schema specified is not valid; ambiguous mapping
<p>I am using EF6 with the database first approach. The database has three simple tables: Person, Token and Template</p> <p>For the database I have generated the edmx model and entities</p> <p>Person.cs</p> <pre><code>public partial class Person { public Person() { this.Tokens = new HashSet&lt;Token&...
2
1,680
How to autocomplete a bash commandline with file paths from a specific directory without displaying this directory?
<p>You can find a related question here: <a href="https://stackoverflow.com/questions/44441249/how-to-autocomplete-a-bash-commandline-with-file-paths">How to autocomplete a bash commandline with file paths?</a></p> <h1>Context</h1> <p>I am creating a shell program which is a command line tool. I want to create my own...
2
1,828
Cannot read property 'map' of undefined (Next.js)
<p>I write my app on Next.js. I get data from API. When I click on page "About" (below) I have error: Cannot read property 'map' of undefined, but when I restart this page - it works. How I can avoid this mistake?</p> <pre><code>import React from 'react' import Header from './Header' import Link from 'next/link' impor...
2
1,411
Updating user status using PHP and SQL
<p>Here, I'm trying to get a list of admin users and add and remove it using PHP and SQL.</p> <p>I listed some users but I couldn't think of removing and adding by updating a Boolean data (made this Boolean data to state them as valid or invalid) individually. </p> <p>Help from anyone would be highly appreciated.</p>...
2
1,384
WPF XAML Move/reposition a point in a Path using Storyboard
<p>So I have a project where I am making a list of items that can be expanded to reveal additional information. So far I have come up with a way to rotate the angles 180 degrees to indicate if the information panel is open or closed, but I feel it looks a little bit artificial. <a href="http://g.recordit.co/NAd1IUq200....
2
1,566
Reactive Forms - Set the input of selected <option> of a <select> FormControl dynamically by condition
<p>I need to set two inout value depending on select option in </p> <p>I have an array with the options and when the user select one option in the input have to set with other option of the array. Example: When I select the option "Risco de alergias", one input have set to "Orientar o paciente a sempre informar as a...
2
2,843
How to make CSS animation not reverse after finishing? Example inside
<p>I currently have a picture that is rotating and scaling using keyframes, but my problem is that after every iteration it reverses rotation direction. How do I stop this from happening so that the rotating is smooth in one direction? <a href="https://jsfiddle.net/hmggqr6v/" rel="nofollow">JSFiddle</a>. See full webpa...
2
1,432
Why document.write() behaves differently in Firefox and chrome?
<p>I am making a simple Redirect script that will redirect users to <code>2.html</code> after 5 seconds.</p> <p>When I tested the script on Chrome and it works!, But in latest Firefox but it doesn't decrease seconds and hangs.</p> <p>I am a beginner and have tried my best out of knowledge but I am unable to solve thi...
2
1,034
YACC: How to pass the string value of a token to the yacc program
<p>I want to design a program using lex and yacc that will take input in Morse code form and the parser would generate their English meaning.</p> <p>This is the lex file:</p> <pre><code>%{ #include &lt;stdio.h&gt; int i=0; char c; %} NewLine ".-.-" EOF ".-.-" NewPara "-...-" Over "K" SOS "...---..." %% ".." { yylval...
2
1,296
C# WPF) DropShadowEffect is sometimes missing when dynamically adding a control
<p><a href="https://i.stack.imgur.com/IzUqV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IzUqV.png" alt="enter image description here"></a> </p> <pre><code>foreach (DataRow dr in dt.Rows) { Rectangle rectangle_timeline = new Rectangle(); rectangle_timeline.Height = 19; rectangle_timeline.Curs...
2
2,633
Domain as fallback to subdomains in apache
<p>I have a few subdomains to my domains and I want the domain to work as a fallback if the user writes the wrong subdomain.<br> These subdomains works:<br> files.myadomain.com, phpmyadmin.mydomain.com and server.mydmomain.com</p> <p>And the other domains/subdomains return a HTTP 500 error:</p> <blockquote> <p>Requ...
2
1,365
# java how to insert images in a canvas
<p>i am developing a car simulation in java. my coding is as below. I want to put a panel and in it to be the line rotating together with a speedometer image of 180 degrees. My question is how do i do this?</p> <pre><code> public class House extends JPanel implements ActionListener { MyCanvas canvas; JButt...
2
1,824
React Native - Conditional Styles on Parent Based on Child State
<p>I was following the React Native tutorial and have tried to adapt it to show a list of songs rather than movies and add in a toggling ability using the <code>Switch</code> component.</p> <p>I managed to get this to work but now I am trying to send the value of the switch back to the parent so that a conditional sty...
2
1,450
Chrome Sending nonsense through ajax via JQuery
<p>Alright, I'm using chrome Version 28.0.1500.95 m and JQuery 1.9.1.</p> <p>What I'm doing is using .get to send a short byte command to a microcontroller. However in chrome for some reason a whole lot of other bytes are being sent along with my command.</p> <p>For instance here is what firefox sends: 255 246 240 </...
2
2,037
raise IOError("%s not found." % path)
<p>In the past week, I spent my time trying to solve a big problem when compiling my program.py. My program script is:</p> <pre><code>import numpy import matplotlib import matplotlib.pyplot as plt import scipy.interpolate from matplotlib.font_manager import FontProperties import matplotlib.cm as cm from mpl_toolkits.ax...
2
1,670
Can't run CUDAfy.NET application on target device
<p>I've got an existing WinForms application on .NET 4.0 CP framework and I want it to do computations on CUDA devices. For this I decided to use <a href="https://cudafy.codeplex.com/" rel="nofollow">CUDAfy.NET</a> wrapper around C/C++ Toolkit, because it is (as far as I know) the only one up-to-date with CUDA SDK. The...
2
1,083
Reading .PAK files with c#
<p>I want my app capable of detecting when a certain string is contained in one line, after that, it will return the line number and subtract 8. Then it will search line by line (again) until it <strong>reached the line obtained before, read it,</strong> and <strong>show it</strong> on a messagebox*(the whole line)*.</...
2
1,047
Payment Navigation form php to payment gateway and back to php (response back to php page )
<p>i created a login.php file where the user can will be navigated to instamojo payment page . After completing the transaction the user is getting the success message from instamojo , but i need to display the successful transaction in my domain or in own php file . so how can i get the transation related information...
2
1,536
OpenGL strange Rendering behaviour (flickering faces)
<p><strong>PRE:</strong> I'm using Assimp (Open Asset Import) library to import a .3ds file. Meshes are rendered with normals and materials. Using Qt. Drivers up to date on all the computers we tried.</p> <p><strong>POST:</strong> When I rotate around the objects,using camera,I can see that some mesh' faces flickering...
2
2,195
Menu bar not showing up in my blogger theme?
<p>The menu bar is not able to show up on my blogger site on any device idk why. My blog link is <a href="https://edifiess.blogspot.com/" rel="nofollow noreferrer">https://edifiess.blogspot.com/</a> I don't have much experience in web programming I had already read some of the answers but could not find the exact solu...
2
3,699
Why my overlay div is not centering
<p>I am sure it is a "simple" for the pros:</p> <p>I am at lost on how to center (horizontally and vertically) the <strong>overlay</strong> to its parent. Please see the jsfiddle link for the details. </p> <p>Thank you in advance for your time...</p> <p>LB</p> <pre><code>&lt;div class="grandparent"&gt; &lt;div ...
2
1,075
Redirecting after processing partial view with ajax results in next page loading inside the partial view's div.
<p>I have two partial views in a parent page. The problem is when I call redirect to local once the form has successfully been submitted the next page is loaded in the place of the partial view inside the parent. The other form is visable as well. Here's the action methods and view logic associated with one of them as ...
2
1,115
Adding data to multiple tables using Spring forms in Spring MVC
<p>I have the following database schema and I need to add data to all three tables using a single view <a href="http://i.stack.imgur.com/3HXhC.png" rel="nofollow">http://i.stack.imgur.com/3HXhC.png</a> (Due to stackoverflow rules, I cannot link the image directly).</p> <p>What I hope to achieve, is to create an order,...
2
3,600
Using GetLastAutoGenValue
<p>I am using fireDAC TFDQuery to insert values in informix database, using below code snippet:</p> <pre><code>with QHeaderQuery do begin if not (Prepared) then begin {DatabaseName := Sessions.CurrentSession.Databases[0].DatabaseName; SessionName := Sessions.CurrentSession.SessionName;} Connection := F...
2
1,027
Pygame list collision
<p>I have a map im creating in python using pygame with a player and walls:</p> <pre><code>import pygame x = 25 y = 19 collision = [ [0,0,0,37],#vertical [4,23,4,27], [12,18,12,25], [13,0,13,1], [13,4,13,7], [13,10,13,11], [15,13,15,18], [15,23,15,37], [19,0,19,13], [29,25,29...
2
2,636
Object ArrayList not displaying to ListView
<p>So I'm trying to combine two different types of <code>ArrayLists</code> (<code>GregorianCalendar</code> &amp; <code>String</code>) into a third <code>ArrayList</code>. Then display that <code>ArrayList</code> to a <code>ListView</code>. I can't figure out why it's not displaying because I'm not getting any errors an...
2
2,324