title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
ACF get_field() returns empty
<p>I'm developing an application through custom post type with custom fields using ACF plugin. When the custom post type is saved, it will create a blog in my network which works great however, when trying to copy the custom fields from the custom post type to the newly created blog's homepage with same acf custom fiel...
1
1,540
nested switch case not working
<p>I am trying to execute some commands using USART communication and reading some values using ATmega32-A. have a look at my code . My problem is i am trying to add some cases (nested switch case) but i am not getting what i want. I hope i am giving all most all information required to solve my problem.</p> <pre><cod...
1
1,513
Akka cluster - Association with remote system has failed...Reason: [Association failed]
<p>I have a simple POC with two actors:</p> <pre><code>public final class Task1Actor extends AbstractLoggingActor { public Task1Actor() { final UnitPFBuilder&lt;Object&gt; builder = ReceiveBuilder.create() .matchAny(message -&gt; { log().warning("Received unknown message: {}", message); ...
1
2,787
Cython Hello World Example works on Anacondas Python 3.3, but not 3.4
<p>I am using Anacondas on a 64-bit Windows machine.</p> <p>I have compiled a hello world Cython example. It is in file hello.pyx, and contains:</p> <pre><code>def say_hello_to(name): print("Hello %s!" % name) </code></pre> <p>I am running it using run_hello.py</p> <pre><code>import pyximport; pyximport.install...
1
1,593
Failed to load resource error when starting Spring-Boot Application with Angular 7 Frontend (missing resources)
<p>I want to build a Spring-Boot-Application with Angular frontend. So I used the Spring-Boot-Initializer to build up a project and added a <code>RestController</code> for <code>/greet/world</code>. Then I created a new Angular-Project in my <code>src/main</code>-folder by executing <code>ng new ui</code> (including <c...
1
6,005
PHPMailer SMTP connection failed error
<p>In my code I am just trying to send an email to a recipient using the PhPmailer tool but every time I do i get errors. I've watched numerous amounts of video tutorials on this and looked at tons of websites but no fix. I've tried changing my port from "587 to 465", change the "SMTPDebug = 2" to see clear error messa...
1
2,287
Removing an item from a collection(NHibernate)
<p>I have parent child relationship between two entities(Parent and Child).</p> <p>My Parent mapping is as follows:</p> <pre><code>&lt;class name="Parent" table="Parents"&gt; ... &lt;bag name="Children" cascade="all"&gt; &lt;key column="ParentID"&gt;&lt;/key&gt; &lt;one-to-many class="Child"&g...
1
1,108
Can't Connect to a bluetooth device (from Phone to HC-05)
<p>I download the code Sketch 6 : Send receive bytes From this site : <a href="http://arduinobasics.blogspot.com.tr/2013/03/arduinobasics-bluetooth-android_25.html" rel="nofollow">http://arduinobasics.blogspot.com.tr/2013/03/arduinobasics-bluetooth-android_25.html</a> I can see "device discovered : (device name) and FO...
1
2,837
Using Twitter Bootstrap radio buttons with Flask
<p>I am building a web-based dashboard, and I would like to use radio-buttons from <a href="http://en.wikipedia.org/wiki/Twitter_Bootstrap" rel="noreferrer">Twitter Bootstrap</a> to help create queries that are then run against <a href="http://en.wikipedia.org/wiki/MongoDB" rel="noreferrer">MongoDB</a> (via <a href="ht...
1
1,402
iterator - no matching erase function in c++11
<p>I can't exmplain this behaviour:</p> <pre><code>for (vector&lt;File&gt;::const_iterator it = this-&gt;files.begin(); it != this-&gt;files.end(); ++it) { if (...) erase(it); // break after, no need of ++it in else branch } </code></pre> <p>where File is my own class (std not included) and this-&gt;files is vector...
1
1,035
R Shiny error: argument "x" is missing, with no default
<p>I'm trying to make a model for non parametric regression with Maximal Overlap Discrete Wavelet Transform (MODWT) using <a href="https://drive.google.com/open?id=1pQ2gCkhbVyaqFqo6eKrcpzU4qJUei7PA" rel="nofollow noreferrer">this data</a> taken from <a href="https://jateng.bps.go.id/dynamictable/2016/12/16/35/-metode-b...
1
2,136
Gradle: Neither path nor baseDir may be null or empty string
<p>I am trying to use ProGuard in my Gradle script to obfuscate my code everytime I build, however I am running into the following error:</p> <pre><code>FAILURE: Build failed with an exception. * What went wrong: Neither path nor baseDir may be null or empty string. path='null' basedir='/Users/hassansyyid/Workspace/R...
1
1,504
how to create label button in PYQT?
<p>I need your help with my app. I undecorated python gui and now i need to create clicable label.</p> <p>run.py</p> <pre><code>from PyQt4 import QtCore, QtGui import sys import untitled class ExampleApp(QtGui.QMainWindow, untitled.Ui_MainWindow): def __init__(self): super(self.__class__, self).__init_...
1
1,335
Failed to invoke chaincode name:"lscc" , error: container exited with 1: chaincode registration failed (Fabric 1.4.1)
<p>I am trying to create a single org, single ca, single peer network, bootstrapped by the <code>nodejs-sdk</code>. I have used <a href="https://github.com/IBM/build-blockchain-insurance-app" rel="nofollow noreferrer">this sample</a> for reference.</p> <p>When I try to <code>instantiate()</code> the chaincode I get th...
1
3,430
QR decode exceptions using ZXing.NET in Unity
<p>I'm currently trying to make an application in Unity (for iOS) that allows a user to scan a QR code. I am using the ZXing.NET library which has been optimized for Unity.</p> <p>This is the current decode thread I am using</p> <pre><code> void DecodeQR() { // create a reader with a custom luminance sour...
1
1,262
How can I install Qt 5.2.1 from the command line in Cygwin?
<pre class="lang-none prettyprint-override"><code>$ wget --quiet http://download.qt-project.org/official_releases/qt/5.2/5.2.1/qt-opensource-windows-x86-msvc2012_64_opengl-5.2.1.exe $ </code></pre> <p>As seen above, I first downloaded the Qt package for Visual Studio in a Cygwin Bash shell.</p> <p>A sidenote: The Qt ...
1
2,240
laravel eloquent create without fillable attribute
<p>this is my model : </p> <pre><code>&lt;?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use App\Models\BaseModel; use Illuminate\Support\Facades\Hash; class Domain extends BaseModel { protected $fillable = ['user_id', 'name', 'username', 'password', 'plan', 'payment', 'status', 'duration']...
1
1,878
how to animate jqplot bar chart like example
<p>Has anyone had any luck with this?</p> <p>I copied and pasted the <strong>exact</strong> example code here <a href="http://www.jqplot.com/deploy/dist/examples/barTest.html" rel="nofollow noreferrer">http://www.jqplot.com/deploy/dist/examples/barTest.html</a> into my text editor. I added all the .js files and .css ...
1
1,274
how to capture window.onscroll in server side blazor to imitate bootstrap scroll spy
<p>I'm building my first server side blazor app. I'm using bootstrap css for styling. I'm not using bootstrap scripts. I have a page with fixed nav bar at top. I need to imitate bootstrap scroll spy. To do this with C# I need to monitor <code>window.onscroll</code> to manipulate the scroll position and apply required c...
1
3,064
Copy constructor and operator= for a dynamic array inside a class
<p>I need some help to implement a copy constructor and a operator= for my dynamic array inside my class. <strong>Im not allowed to use a vector at this point</strong> </p> <p>Here is mye code: Class:</p> <pre><code> class Matrix{ private: int rows; int columns; double* matrix; publ...
1
1,800
How to smooth transition between elements of different heights in Bootstrap carousel
<p>I am building a Bootstrap carousel for a project. The content of the slides have different heights. Currently, the transition animation for the different sized content is very choppy. I am wondering if there is any way to fix this transition and make it a bit more graceful/smooth as the carousel adjusts in height be...
1
1,433
Doctrine Query->getSQL() doesn't output any parameter
<p>In Symfony2 I got the next code in a custom repository function:</p> <pre><code> $em = $this-&gt;getEntityManager(); $qb = $em-&gt;createQueryBuilder(); $any = "Jon"; $qb-&gt;select('s') -&gt;from('AppBundle:Student', 's'); if ($criteria) { foreach ($criteria as $field =&gt; $...
1
1,942
How to enable Zooming in ScrollView (iPhone)
<p>i have a code that i want to modify to get a zoom ability. Now my app only do an horizontal scroll but not a zoom.</p> <p>i miss something, because i tried the "viewForZoomingInScrollView:" with no success. How can i get a zoom in this? </p> <p>Thanks</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; @interface Intro...
1
3,435
React spring Errors while installing
<p>Hi I have this problem where if I want to install react-spring into my react project It just pops up bunch of dependencies errors and warnings and I don't know what to do with it. I tried to check documentation of react-spring but I couldn't find anything. I checked few pages here on stackoverflow and I still did no...
1
2,101
Aligning tables side by side on multiple rows
<p>I am trying to align 10 tables side by side i.e in 5 rows and 2 columns. The rows in each table is different from the other. I have used float: left and defined a width for each div, but it is still not working. </p> <p>Here is some sample code and the <a href="http://jsfiddle.net/GfJTd/10/" rel="nofollow">fiddle</...
1
3,031
Use threads when traversing a tree
<p>I will like to speed the process of traversing a tree. Here is an example of a node:</p> <pre><code> class Node { public List&lt;Node&gt; Children { get; set; } public int SompeProperty { get; set; } public String SomeOtherProperty { get; set; } } </code></pre> <p>the way I trave...
1
1,685
Progress 4GL Exclusive Lock Not Releasing
<p>I'm using proserve to enable multiple-user session. This is my code in a mouse double-click trigger on my browse:</p> <pre><code> DO WITH FRAME MAIN-FRAME: IF EMP-BROWSE:NUM-SELECTED-ROWS &gt; 0 THEN DO: EMP-BROWSE:FETCH-SELECTED-ROW(1). FIND CURRENT EMPLOYEE NO-ERROR NO-WAIT. ...
1
1,632
React Native Fetch Blob issue pod not installing for IOS
<p>Using React Native Fetch Blob to perform some action. But the IOS platform not installing in pod file. Showing this...</p> <pre><code>[!] CocoaPods could not find compatible versions for pod "React/Core": In Podfile: react-native-fetch-blob (from `../node_modules/react-native-fetch-blob`) was resolved to 0.10...
1
1,278
Same script work well at the jenkins script console, but not at the pipline
<p>Jenkins 2.161</p> <p>I have a script, which calculate number of active executors. This script work well at the Jenkins console (<a href="https://url/jenkins/script" rel="nofollow noreferrer">https://url/jenkins/script</a>), but throw the exception when it placed inside pipeline. I don't know what to fix, because al...
1
3,700
Generate "GET PROCESSING OPTIONS" (GPO) for EMV card (APDU) by PDOL
<p>GPO Command is defined like this as an APDU command:</p> <pre><code>CLA INS P1 P2 Lc Data Le 80 A8 00 00 Lc Data 00 </code></pre> <p>So the missing parts is <strong>Lc</strong> &amp; <strong>Data</strong> which we have to compute from the <strong>PDOL</strong> (if it is given). If it is not given, we can use:</p...
1
5,730
arkit anchor or node visible in camera and sitting to left or right of frustum
<p>How can i detect if an ARAnchor is currently visible in the camera, i need to test when the camera view changes. I want to put arrows on the edge of the screen that point in the direction of the anchor when not on screen. I need to know if the node sits to the left or right of the frustum.</p> <p>I am now doing th...
1
1,802
How to make dynamic star rating with JSON data
<p>I am working on a star rating system for when you visit any restaurant, all the `Attributes' I have to show on UI are dynamic for which I am getting data in JSON format</p> <p>Here I have five attributes each of them having up to 5 star rating option</p> <p>My data:</p> <pre><code> [ { "A...
1
4,077
IntelliJ 'maven-site-plugin' reportPlugins showing error, haven't even done anything yet
<p>I am new to <code>IntelliJ</code> and <code>Maven</code> so this is all going above my head</p> <p>I'm following the <code>DropWizard</code> tutorial <a href="http://www.dropwizard.io/1.0.0/docs/getting-started.html" rel="nofollow">here</a> and I only did the first step through <code>IntelliJ</code> where I add a <...
1
1,184
Doctrine2: Use date functions in QueryBuilder
<p>I want to know how to use date functions like <code>WEEK</code> or <code>MONTH</code> in query builder. I'm using Zend not Symfony. When I try my current code with WEEK I get this error:</p> <pre><code>Error: Expected known function, got 'WEEK' </code></pre> <p><strong>This is my current code:</strong></p> <pre><...
1
1,188
How to use custom table as auth table instead user table?
<p>I am beginner of Laravel 5.3. What i want is to use custom table as auth table instead user table. Because user table should be used for other purpose. How can I edit config/auth.php or other thing? Please help me!</p> <p>file auth.php </p> <pre><code>&lt;?php return [ /* |-------------------------------...
1
1,408
JNI UnsatisfiedLinkError undefined symbol
<p>I am trying to load a .so file (libInfExprParser.so) using JNI. I do not have the source code for this shared object. I am getting the following error:</p> <blockquote> <p>Exception in thread "main" java.lang.UnsatisfiedLinkError:/home/tomcat/sahithi/ExprParser/libInfExprParser.so: /home/tomcat/sahithi/Expr...
1
1,562
STM32F4 Hanging in I2C_CheckEvent()
<p>I've been finding that the I2C communication between my STM32F4 and IMU device randomly hangs. The STM32F4 is the master and the only other device on the bus is an IMU6050 6 axis accel/gyro. The program ends up hanging by getting stuck in a loop within the I2C_CheckEvent() function.</p> <p>Initialization is as foll...
1
1,527
RSA Decryption - BadPaddingException: Data must start with zero
<p>I am writing RSA ENcyrption/Decryption. Here's the code. But when i decrypt using Private Key, I am getting exception</p> <pre><code>public class RSACrypto { private static SecureRandom sr = new SecureRandom(); /** * @param rsabits * @return keyPair * @throws NoSuchAlgorithmException *...
1
2,073
SignalR Hub under .Net Framework 4.5 not found by client
<p>I'm trying to use SignalR to distribute status updates to listening clients. However my clients are failing with "404 Not found" when attempting to start the connection.</p> <p>I've used <a href="https://docs.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc"...
1
1,072
Does a WPF Application Actually Need Application.Run?
<p>So far, I had assumed that a call to <a href="http://msdn.microsoft.com/en-us/library/ms597010%28v=vs.110%29.aspx" rel="nofollow noreferrer"><code>System.Windows.Application.Run</code></a> in a WPF application would start its main message loop and thus provide the UI with its "life". At least, that is what happens i...
1
1,505
Update selectInput error "Error in force(ui) : object 'ui' not found"
<p>I have a shiny app with work pretty well but I want to improve it and add some functionality.</p> <p>My data look like:</p> <pre><code>NITG &lt;- c("L447", "G24M", "G112", "F144", "B33D", "M4A1", "G432", "K54N", "K312", "K24K") RC &lt;- c("7E", "8E", "7D", "2G", "2B", "1D", "2J", "7M", "4H", "1D") Pheno &lt;- c("Z...
1
1,961
Android Login Using PHP, MySQL and Volley
<p>I am trying to create a login activity in android using volley. I've set up my database on localhost phpmyadmin. I've created register activity successfully but whenever I try to login from the email and password that I just registered in the database suddenly my application crashes.</p> <p>here is my login.php</p>...
1
2,239
ffmpeg: specify/force pixel format for input H.264 video
<p>I have some MP4 video files missing the pixel format in their header information. I have already tried setting <code>probesize</code> and <code>analyzeduration</code> to their maximum values 2147483647 but that didn't help.</p> <p>So I know these videos are probably corrupt but if this is the only information missi...
1
3,355
A java-based soap request returns always soap response with 0 as the value i need
<p>I am trying to send a soap request to an open webservice (webserviceX.NET currency converter). Here is my code:</p> <pre><code>String SOAP_REQUEST = "&lt;SOAP:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/...
1
1,042
There is already an object named I_XXXRECID in the database
<p>This error is coming while synchronizing the DataDictionary.</p> <blockquote> <p>SQL error description: [Microsoft][SQL Server Native Client 11.0][SQL Server]There is already an object named 'I_100013RECID' in the database.</p> <p>SQL statement: ALTER TABLE "DBO".ACOCOSTCENTERATTRIBUTEVALUE_BR ADD CONS...
1
1,131
How to use colorstream to stream the RGB data on an image in an WPF kinect application?
<p>I want to view the stream of the RGB data "color stream" on an image in an WPF kinect application, how can I do this?</p> <p>Thanks</p> <hr> <p>Here is my code and the xaml, so as you can see the skeleton is drawn on an image and what I want is to add the color stream on the image besides the skeleton, so how c...
1
8,917
Use ddply within a function and include variable of interest as an argument
<p>I am relatively new to R, and trying to use ddply &amp; summarise from the plyr package. <a href="https://stackoverflow.com/questions/8218196/object-not-found-error-when-passing-model-formula-to-another-function">This post</a> almost, but not quite, answers my question. I could use some additional explanation/clarif...
1
1,098
Javascript Add Table Row
<p>I'm not sure how to add a row where I want it.</p> <pre><code>&lt;script language="javascript"&gt; var i = 1; function changeIt() { i++; my_div.innerHTML = my_div.innerHTML +"&lt;tr&gt;&lt;td valign='middle'&gt;&lt;strong&gt;URL "+ i+":&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;input name='url'+ i type='text' ...
1
1,162
Creating an Array of Objects in Classic ASP
<p>I am trying to create a class in Classic ASP and am getting close to what I am looking for but it is not quite there. I have yet to find any examples that solve my problem.</p> <p>In the example I need the LineItem class to be stored in the Order class as an array so there can be multiple line items for an order. C...
1
1,425
java pgp encrypt file with public key in asc file
<p>My customer use PGP desktop for file encryption. They send me a public key in an .asc file and I have to encrypt a zip file by this public key with java. But I can't find any java code that use asc file. There are some potential lib, such as didisoft but they only have commercial version. An example of asc bellow.</...
1
1,770
Lost Cycles on Intel? An inconsistency between rdtsc and CPU_CLK_UNHALTED.REF_TSC
<p>On recent CPUs (at least the last decade or so) Intel has offered three fixed-function hardware performance counters, in addition to various configurable performance counters. The three fixed counters are:</p> <pre><code>INST_RETIRED.ANY CPU_CLK_UNHALTED.THREAD CPU_CLK_UNHALTED.REF_TSC </code></pre> <p>The first c...
1
3,173
android background service stops after some time
<p>I have created a background service which is hitting my server on a regular interval but unfortunately, the background service stops after some time.</p> <pre><code>public class LocationService extends Service{ @Override public int onStartCommand(Intent intent, int flags, int startId) { //TODO do something us...
1
1,125
How to fix this error in Slim framework?
<p>I installed Slim framwork using composer in wamp server.</p> <p>But displays following error.</p> <p>I am new to Slim.</p> <p>Slim Application Error The application could not run because of the following error:</p> <blockquote> <p>Details</p> <p>Type: ErrorException Code: 2 Message: file_get_contents(te...
1
1,553
jQuery UI Spinner - resetting the value when used as a Time spinner
<p>Using jQuery 1.9.1 &amp; jQuery-ui 1.10.3 and using a spinner as a time control. Using a datepicker on the page to pick a Start &amp; End date. </p> <p>I've got the spinner working for a time field (hours), but wanted to be able to reset it also. It works fine if the start &amp; end date are the same, but if I c...
1
6,174
Java hangman. How to create multiple buttons and actionlisteners?
<p>I am trying to create a hangman game with a button for each letter of the alphabet. I have done this the hard way, using absolute positioning and multiple actionlisteners. Is there any way I can do both with a for loop?</p> <p>Also, how can I implement my hangman using a polymorphic array? The way I have it now, I ...
1
7,434
PHP accessing a property of an object
<p>I have an object that looks like this when outputted via a <code>print_r</code></p> <pre><code> Array ( [178] =&gt; My_Model_Category Object ( [autoGenerateURLNameIfNotSupplied] =&gt; 1 [id] =&gt; 178 [name] =&gt; Just for Kids [date_created] =...
1
3,478
Google Bar-Chart( Having Filter) With Different Colors in Bars for each column
<p>Below is my javascript for google-chart</p> <pre><code>&lt;script type="text/javascript"&gt; google.load('visualization', '1.1', {packages: ['controls']}); &lt;/script&gt; &lt;script type="text/javascript"&gt; function drawVisualization() { // Prepare the data var data = google.visualizatio...
1
3,947
VB.net - make Gridview checkbox update boolean field in database
<p>There are lots of questions about this but I've not been able to solve my problem using the answers to any of them (after many, many attempts..)</p> <p>I'm working in vb.net creating an asp.net web application. I have an SqlDataSource and a GridView on my page:</p> <pre><code>&lt;asp:SqlDataSource ID="msgUnread" r...
1
1,192
Android NDK Cmake Linking .a (Static) Libs
<p>I am using Android Studio 2.2.2 with cmake and Android NDK. I have a problem linking .a library (Static lib).</p> <p>Here is my cmake:</p> <pre><code># Sets the minimum version of CMake required to build the native # library. You should either keep the default value or only pass a # value of 3.4.0 or lower. cmake_m...
1
1,219
ColdFusion CFHTTP connection to remote web service
<p>I have successfully connected to a remote webservice using SOAPUI (<a href="http://www.soapui.org" rel="nofollow noreferrer">www.soapui.org</a>). But, I am having trouble calling it successfully from CF9.2.</p> <p>Here is my entire CFC function. There are dynamic vars but I've tested the output in the soapUI interf...
1
4,206
failed to lazily initialize a collection
<p>I'm developing a restful web service for my database. I'm using jpa to retriving data from the db and spring for the architecture. I already tested the architecture with the basic dao queries (findById, save...) and it works perfectly. Then in the dao implementation I added a new method wich basically execute a quer...
1
4,112
Locate 3 html div in different height 1st on left, 2nd and 3rd on the right
<p>I use bootstrap and want to locate three div's as shown below. Could you please give a sample demo that can meet this requirement? If it is possible, it would be better to use bootstrap.css? Thanks in advance. </p> <p><img src="https://i.stack.imgur.com/uFrXZ.png" alt=""></p> <p><strong>Html:</strong></p> <p></p...
1
1,940
Already defined error with operator overloading
<p>When debugging my program I keep getting these two errors: </p> <blockquote> <p>main.obj : error LNK2005: "class std::basic_istream > &amp; __cdecl operator>>(class std::basic_istream > &amp;,class Complex &amp;)" (??5@YAAAV?$basic_istream@DU?$char_traits@D@std@@@std@@AAV01@AAVComplex@@@Z) already defined in Imag...
1
1,477
Unable to access Kubernetes dashboard from outside the cluster
<p>I have setup Kubernetes cluster comprising a master and three nodes. I used the following for the setup:<br> 1. kubeadm (1.7.1)<br> 2. kubectl (1.7.1)<br> 3. kubelet (1.7.1)<br> 4. weave (weave-kube-1.6)<br> 5. docker (17.06.0~ce-0~debian) </p> <p>All the four instances have been setup in Google Cloud and the OS is...
1
2,469
Remove html focus after scrolling the website
<p>I am playing with some website templates, I have this one that I am working on My problem is, when you click an item on the menu, lets say PRODUCTOS, and then you scroll up or down, PRODUCTOS stays on focus always unless you click the screen so it unfocus, how can I unfocus the item when I scroll without having to ...
1
1,732
Using NSProgress to find download speed and time remaining
<p>According to the <a href="https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSProgress_Class/Reference/Reference.html#//apple_ref/occ/instp/NSProgress/localizedAdditionalDescription">documentation for <code>NSProgress</code></a> I see that <code>-[NSProgress localizedAdditionalDescription]</...
1
1,152
sonarqube failed to start
<p>I am currently trying to install sonarqube to try it, but I am unable to make it start. My OS is Ubuntu 64 bits.</p> <p>What I did :</p> <p>First I wanted to try it with all basics settings so I downloaded the last version of sonarqube on their website (5.6). Then I unzipped it and went to the bin/linux-x86-64/ and ...
1
1,402
jQuery UI DatePicker Hangs on second call
<p>I'm creating an ASP.NET MVC3 app that uses jQuery Datepicker and Timepicker inside a dialog. The code is pretty simple, just localization:</p> <pre><code>$(document).ready(function () { $('.datepicker').datepicker({ dateFormat: "dd/mm/yy", monthNames: ['Janeiro', 'Fevereiro', 'MarΓ§o', 'Abril', '...
1
2,257
How can I make code wait for a GUI to finish?
<p>I know there is a similar question asked in relation to Matlab, but it hasn't helped me for Java. I am writing a GUI for a program where the results of one GUI frame are necessary for another GUI frame - I have simplified my problem to that below:</p> <p>I have a GUI <code> JFrame </code> with a <code> JTextField <...
1
1,027
Error: Missing positive glob
<p>The above message appears everytime the gulp gets to the 'markup' function.</p> <p>Here is my gulpfile:</p> <pre><code>var gulp = require('gulp'), autoPrefixer = require('gulp-autoprefixer'), jade = require('gulp-jade'), liveReload = require('gulp-livereload'), sourceMaps = require('gulp-sourcemaps...
1
1,995
Configure SAP .NET Connector for SNC using config file in C#
<p>We have a number of applications developed in C# that interface with SAP using the SAP .NET Connector 3.0. I'm very familiar with this, and have recently been asked to look at securing this interface by using the SNC (Secure Network Communications) options, which I've also been able to configure and get working.</p>...
1
1,051
Update via @Modifying @Query in Spring Data not working
<p>I have the following repository defined:</p> <pre><code>@Repository public interface IntegrationPeriodConstraintsRepository extends CrudRepository&lt;IntegrationPeriodConstraint, IntegrationPeriod&gt; { @Query("select case when (count(ipc) &gt; 0) then true else false end from IntegrationPeriodConstraint ipc wh...
1
1,784
Bootstrap, contact_php and contact.js not sending email
<p>I am using Bootstrap and wanting to use an email contact form. I have setup a test page - <a href="http://www.beatrootonline.co.uk/test.html" rel="nofollow">http://www.beatrootonline.co.uk/test.html</a>. As you can see its validating ok (jqBootstrapValidation.js) and appears to send an email. However, I am not recei...
1
2,466
Wordpress Shortcode not passing variable from function (Newbie)
<p>Here is the snippet of code in question: </p> <pre><code>function hoursearned_func($user) { $key = 'Service Hours Earned'; if(isset($user[$key])) { $result = $user[$key]; } return "Service Hours Earned: ".$result." Hours"; } add_shortcode('hoursearned', 'hoursearned_func'); </code></pre> <p>Thi...
1
1,366
show data in listview from database on form load
<p>Im new in using listview on vb.net, but i managed to show the data from mysql database, but somehow i got not an error but somethings strange happening on my list view. </p> <p>this is the 1st image of the listview, <a href="https://i.stack.imgur.com/WM5aL.png" rel="nofollow noreferrer"><img src="https://i.stack.im...
1
1,103
Allowed memory size of 33554432 bytes exhausted (tried to allocate 30720 bytes)
<p>As the title suggests, I am receiving an error when loading my website, <a href="http://minecraft-seeds.net" rel="nofollow noreferrer">Minecraft-Seeds.net</a> It runs using the <a href="http://www.avscripts.net/avarcade/index.php" rel="nofollow noreferrer">AV Arcade script</a>, and has been <strong>running fine with...
1
1,161
XSLT XML to Excel in cell text formatting
<p>I'm creating an excel document where certain text within a cell will be formatted in a different colour or bold.</p> <p>for example my spreadsheet should be like this: .</p> <p>The text I want to format has got tags round it in my XML e.g. <code>&amp;lt;strong&gt;</code>. I have written a function that picks up th...
1
16,303
Multifield component in AEM - values are not saved
<p>I'm trying to do <strong>multifield</strong> component here. When I enter values in fields, they are present on page and everything works fine. When I reopen component to edit existing data, it's empty like there were no values entered (they still appear on site) at all. Here is code from my dialog.xml:</p> <pre><c...
1
6,565
Doctrine2 Sortable Update Position
<p>I am using Doctrine 2 with Symfony 2.3 and jQuery UI sortable.</p> <p>I have a list of elements sortable with jQuery and the position is saved in the database through an Ajax request.</p> <p>All seem to work perfectly except the data persistence... The position of the element and the other elements related to it i...
1
1,745
Starting WildFly 8.2 under a user with limited permissions
<p>I'm trying to start WildFly 8.2 under a user that doesn't have permissions to write in a WildFly home directory and it's subdirectories. For this purpose I've copied <code>standalone</code> directory to a user home directory. Here is a command I use to start WildFly in cygwin:</p> <pre><code>$ /cygdrive/c/Program\ ...
1
3,037
file i/o infinite loop c++ eof
<p>I have started working on a program, and for the life of me I can't find a bug which continuously searches the eof and doesn't end. It is most certainly a problem with my fileread and widthcount functions, and they most likely have the same error. Is there a fix for this? It just keeps looping.</p> <p>The file inpu...
1
1,041
Flutter WillPopScope for nested Navigation
<p>I have Flutter App with nested Navigator and I want to override &quot;onBackPressed&quot; using <code>WillPopScope</code> in my nested screen.</p> <p>Let's say I have <code>MainScreen</code>, <code>PrimaryScreen</code>, and <code>SecondaryScreen</code>. <code>PrimaryScreen</code> is nested Navigator, it have several...
1
3,228
"TypeError: join() argument must be str or bytes, not 'NoneType'" using Magpie+Tensorflow/Python3
<p>I am using <a href="https://github.com/inspirehep/magpie" rel="nofollow noreferrer">magpie</a> - a multilabel classifier on Tensorflow with Word2vec. The training works fine using Python 2.7, but with Python 3.x it gives this error below. I am on Ubuntu 16.04.5 LTS, weirdly the Python 3.x code works fine on a differ...
1
1,215
How to add a new record in kendo grid with enter key press event
<p>i have developed a simple web application using some <strong>kendo ui</strong> tools.</p> <p>in there i have used <strong>kendo grid</strong> tool to view and insert data of product details.</p> <p>but my problem is in <strong>edit mode</strong>(when i insert a new record) when i press the <strong>enter key</stron...
1
2,391
Loading local jQuery, jQuery UI and other files via RequireJS
<p>I started learning javascript/jQuery and wanted to use RequireJS. The following is my file hierarchy:</p> <pre><code>my_project/ β”œβ”€β”€ index.php └── scripts/ β”œβ”€β”€ require.js β”œβ”€β”€ loader.js β”œβ”€β”€ app/ β”‚ β”œβ”€β”€ app.js // this is where I'd like to write functions for the app β”‚ └── helper/ // this folde...
1
1,087
WPF TextBox EventTrigger sequence of events
<p>I have a dynamic WPF input form, whereby a list of input text boxes is displayed based on the contents of a collection of data. The text of each text box is bound to a Value field in the data, when any of these fields changes I am using firing a Command which then executes a calculation in a script (also dynamically...
1
1,071
Angular 2 and karma-jasmine unit test case to open modal on click of link
<p>I want to test that on click of link, modal should open.</p> <p>I have written following test in <code>spec.ts file</code></p> <pre><code>describe('NavbarComponent', () =&gt; { let comp: NavbarComponent; let fixture: ComponentFixture&lt;NavbarComponent&gt;; let de: DebugElement; let el: HTMLEl...
1
1,096
How to put imageView in extreme left of toolbar?
<p>I am trying to put my ImageView Content in extreme left of my toolbar. How can i do so? I have tried the following code: This is my ToolBar:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" android:layout_wid...
1
1,277
How to send multiple checkbox values to Firebase Database when a Button is clicked Android
<p>I want to send multiple checkbox values to Firebase database. I took three Checkboxes in XML and a Button. I want to store selected checkbox text to Firebase when the Button is clicked and go to another Activity. This is my code, but it isn't working.</p> <pre><code> mFirstCheckBox = findViewById(R.id.firstCheck...
1
1,240
Quicksort algorithm with duplicate keys
<p>I am trying to implement Quick Sort algorithm. Following code works for unique elements but it doesn't working for arrays having duplicate elements. Please tell me where I am doing wrong. Also when I change value of pivot to some other number other than 0 , program crashes. Here is the code:</p> <pre><code>#inclu...
1
1,171
Problems with a local installation of libc
<p>I'm trying to run a Theano implementation of alexNet on some machines at work. When I first tried to run it I got the following error:</p> <pre><code>$ THEANO_FLAGS=mode=FAST_RUN,floatX=float32 python train.py .... ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /data1/software/analys...
1
2,267
linq and auto increment
<p>Error:</p> <blockquote> <p>An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.Linq.dll Additional information: Violation of PRIMARY KEY constraint 'PK_users'. Cannot insert duplicate key in object 'dbo.users'. The duplicate key value is (0). The statement...
1
3,064
Using Sequelize to count the number of rows (where id = 'x') in an associated model
<p>I'm trying to build a message board to teach myself JavaScript. I'm working with:</p> <ul> <li>nodejs</li> <li>angularjs</li> <li>express</li> <li>mysql</li> </ul> <p>I have a view <code>/board</code> that uses the following route (and corresponding sqlize query) to fetch data for displaying the "board index":</p>...
1
1,642
Stripe 400 Error "Invalid Positive Integer"
<p>I have a real bugger of a question. I am trying to build a donations page for a nonprofit which charges people through Stripe. Every charge I try to make gives me an error which reads :</p> <p><em>Parsed Request Post Body</em></p> <pre><code>{ "card" : "TOKEN WAS HERE", "description" : "Donation b...
1
17,283
MySQL database hangs due to disk journaling?
<p>Occasionally one of our Linux MySQL database servers will hang for a while, creating a long queue of active queries. After 10-20 mins, service resumes as normally.</p> <p>This happens in kern.log:</p> <pre><code>May 14 13:58:05 edu02 kernel: [2375521.716786] INFO: task jbd2/md2-8:1419 blocked for more than 120 sec...
1
3,987
Python Binary to hex conversion preserving leading zeroes
<p>I was wanting to convert a 576 bit binary number to hex so I wrote the following python script. While writing it was fun, i believe it to be massive, ugly, and most likely unnecessarily complicated. I was wondering if anyone new of a more efficient way to do this using some of the python built in. The issue I had ...
1
1,248
Trying to implement an Alarm Clock in Verilog, my clock works but my alarm doesn't
<p>I implemented the clock module, which worked. But, then I tried to add the alarm functionality to it, and the code just broke. Now I have no idea what's wrong with it!</p> <p>I would really appreciate some help on this, as I'm unable to implement this, and it's a homework assignment that is due tomorrow.</p> <pre><c...
1
4,131
Android Calendar API insert recurring event
<p>Using the <a href="http://code.google.com/apis/calendar/v3/using.html" rel="nofollow">Google Calendar Api</a>. </p> <p>After browsing the <a href="http://www.ietf.org/rfc/rfc2445" rel="nofollow">rfc2445</a>, I'm still unable to set recurrence on an event.</p> <pre><code>private String[] days = {"SU", "MO", "TU", "...
1
1,411
Spring Boot Callable - 401 Unauthorized: [no body]
<p>I am using Callable interface inside a Spring Boot Application that sends auth request:</p> <pre><code>public class TestCallable implements Callable&lt;TestDto&gt; { TestEntity testEntity; public TestCallable(TestEntity testEntity) { this.testEntity = testEntity; } @Override public Te...
1
1,058
How to resolve java.lang.NumberFormatException: For input string
<p>so I been working with this project for a while now, and I recently came across with this problem.</p> <p>Everytime the app compiles just fine, but when the app its going to launch it gives me this when i press the details button:</p> <pre><code>java.lang.NumberFormatException: For input string: "\ProyectoOUMA\oum...
1
5,593