title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Select mutiple options from jquery autocomplete with checkboxes
<p>I am working with <a href="https://jqueryui.com/autocomplete/" rel="nofollow noreferrer">jquery autocomplete</a> .</p> <p>I am trying following code</p> <p><strong>Html</strong></p> <pre><code>&lt;textarea class="search-element"&gt;&lt;/textarea&gt; </code></pre> <p><strong>Script</strong></p> <pre><code>var da...
1
1,298
Check specific check box in kendo grid
<p>i want to loop through each row of kendo grid and check the check box of specific rows only.here's what i have tried so far.</p> <pre><code>function LoadControllerGrid(list) { $("#controllerGrid1").kendoGrid({ data Source: { type: "json", // contentType: "appl...
1
1,394
OpenCV: Detect color and draw line on color
<p>My application is going to calculate the bounce height of the battery, I intend to use the blue strip to define the "base" in which i use to calculate the number of pixels away it is from the battery.</p> <p>How do i detect that blue color and draw a line at the base of the blue strip of paper such that the line dr...
1
3,028
get error code -11843 while exporting mp3 file in ipod library since iOS 5.1
<p>I use the AVAssetExportSession to export mp3/m4a files in ipod library. This method works well on iOS 5.0 and earlier. However after upgrade iOS to 5.1, this method doesn't work for mp3 anymore, but still works for m4a.</p> <p>Here is the source code.</p> <pre><code>AVURLAsset *songAsset = [AVURLAsset URLAssetWith...
1
1,269
codeigniter form validation for dynamic form input names
<p>I have a codeigniter app. My view uses the database row ID to append to the input name to get a unique ID. this allows me to use all inputs in my form action, which is update.</p> <p><strong>my View syntax:</strong></p> <pre><code>&lt;?php if(isset($records)) {?&gt; &lt;table id="hor-minimalist-a"&gt; &lt;tr&g...
1
1,825
Files not getting uploaded from react hook forms to backend server
<p>Hey guys i am learning react and I am trying to upload image from react hook forms to a django server. I am having trouble with the form as text data is being passed on but the image is not getting send from the form. I am not sure, the code I have is correctly written. Can anyone please check the code and help solv...
1
2,017
efficiently convert uneven list of lists to minimal containing array padded with nan
<p>consider the list of lists <code>l</code></p> <pre><code>l = [[1, 2, 3], [1, 2]] </code></pre> <p>if I convert this to a <code>np.array</code> I'll get a one dimensional object array with <code>[1, 2, 3]</code> in the first position and <code>[1, 2]</code> in the second position.</p> <pre><code>print(np.array(l))...
1
1,190
Packaging and Running Scala Spark Project with Maven
<p>I am writing an application in Scala that uses <a href="http://spark.apache.org/" rel="nofollow noreferrer">Spark</a>. I am packaging the app using Maven and running into problems when constructing an <a href="https://stackoverflow.com/questions/11947037/what-is-an-uber-jar">"uber" or "fat" jar</a>. </p> <p>The pro...
1
4,916
Help extracting text from HTML table using xpath
<p>I'm trying to pull the text between the nobr tags.</p> <p>This is part of the table:</p> <pre><code> &lt;table class="report-main-table dirLTR NormalTxt" width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;thead&gt; &lt;tr&gt; &lt;td class="report-data-title-cell report-data-column-odd"&gt;&lt...
1
1,981
Data is Null. This method or property cannot be called on null value after joining two tables in C#.net
<p>After I joined the table in my codes the error "Data is Null. This method or property cannot be called on null value " occurred. </p> <p>Please have a look on my codes and please help. I tried to look for the answer in the google but still didn't get what I wanted to do. </p> <p>Here's my codes which causes the m...
1
2,237
How to read and display records one at a time in the COBOL program below?
<p>I am trying to write a <strong><em>COBOL</em></strong> program to read a file "INPUT.TXT" with 4 fields as given below and display the details of students. But the records are not read and displayed one by one.</p> <p>I am using <a href="http://www.compileonline.com/compile_cobol_online.php" rel="nofollow">http://w...
1
1,140
org.eclipse.swt.SWTException: Failed to execute runnable with SWT java
<p>I have a weird question when I write a eclipse plug-in.The process is that when I click a button on a dashboard like GMF it open a wizard dialog containing a WizardNewFileCreationPage. It works well when I use eclipse 3.7.1 ,but when I use eclipse Indigo Service Release 1 the error happens.Here is the error message...
1
1,493
How to capture all user actions in a WPF application to store them in a log file?
<h1>Introduction</h1> <p>I have a WPF application with code written in C#, developed in Visual Studio 2013. This is a GUI solution and has many interdependent projects, complete with buttons, fields, menus, checkboxes and text.</p> <h1>Logging user actions</h1> <p>My goal is to create a log file (a txt file will do)...
1
1,095
No 'Access-Control-Allow-Origin' header
<p>I have an MVC application deployed to Azure which was created as a SharePoint App Part (Provider-Hosted) for a SharePoint Online site. All Client ID and Secret ID are set correctly within SharePoint site and the Azure web Application. </p> <p>The App does spin up from the SharePoint site but the JSOM logic is thro...
1
1,399
Fatal error: Uncaught Exception: FPDF error: Some data has already been output, can't send PDF file
<p>This is my code:</p> <pre><code>&lt;?php include ("../connections.php"); require("fpdf181/fpdf.php"); ob_end_clean(); ob_start(); if (isset($_POST["btn_1"])) { class PDF extends FPDF{ function Header(){ global $title; $w = $this-&gt;GetStringWidth($title)+6; $this-&gt;SetX((210-$w)/2); $this-&gt;Image('fpd...
1
1,056
Webpack loader not being used when requiring file being processed by custom loader
<p>I'm trying to write a custom Webpack loader that reads a JavaScript file and exports SASS variables, similar to <a href="https://github.com/tompascall/js-to-sass-var-loader" rel="nofollow noreferrer">js-to-sass-var-loader</a> but with some added functionality.</p> <h3>/webpack-loaders/js-to-sass-loader.js</h3> <pr...
1
2,123
asp net MVC3 submit List of object is null when post back
<p>I use asp net MVC 3 one of my project.I use partial view for my coding. I want to list all customers in a list and submit their information as a list. When I try to submit my list in post back, it sends my list is null. You can find my code as in the below:</p> <p>My controller method is:</p> <pre><code>[HttpPost]...
1
1,163
AWS SQS SNS protocol using PHP
<p>The following code allows me to send <code>SNS</code> with (queue) <code>SQS</code> but i cant seem to choose the protocol like in amazons management console <img src="https://i.stack.imgur.com/QpiOs.jpg" alt="enter image description here"></p> <p><br/> * the keys are all random strings</p> <pre><code>&lt;?php req...
1
1,858
Check for Null in Linq where clause
<p>Hi I am working on some old code of ASP.Net MVC controller. There's a Controller Method with 1500 lines of code in it. When I inspected I got to know that there's more than 50+ LINQ queries made to fetch from database according to whether a particular field is null or not.</p> <p>Just to put it into perspective, he...
1
3,929
Recursive extraction of object values and parent key name using jq
<p>I have a requirement to parse the output of the <code>npm ls --global --json</code> command, such that I get a list of all the installed <code>npm</code> packages in the following format:</p> <p><code>$package;$version;js;$resolved</code></p> <p>Where:</p> <ul> <li><code>$package</code> is the key containing the ...
1
1,697
Conditionally Combine Lambdas in Kotlin for Filtering with Multiple Predicates
<p>Suppose I have the following predicates as predefined lambdas for a Villager POJO.</p> <pre><code> val matchesSearch: (Villager, String) -&gt; Boolean = { villager: Villager, query: String -&gt; villager.name.contains(query) } val matchesGender: (Villager, Int) -&gt; Boolean = { villager: Vi...
1
1,635
SQL connection not available on websphere 6.1 (spring/hibernate/oracle)
<p>When our application starts up it can't seem to connect to the database (using JNDI) on websphere 6.1.</p> <p>There are no errors in the logs until hibernate initializes the connection provider; it hangs for 180 seconds (I'm guessing this is the connection timeout set on the datasource) and then:</p> <pre><code>[2...
1
2,706
powershell - creating dynamic printer script - output and command stucture
<p>I am attempting to create a script using powershell that I can use to make a list of:</p> <ul> <li>network printers a user currently has installed</li> <li>printer drivers that are currently installed on the users PC</li> </ul> <p>I have managed to come up with the following script. I am still very new to powershe...
1
2,140
Laravel yajra Datatable : How to send parameters to DataTable Service Class for custom query?
<p>How do I pass parameters like ( <code>res_id</code>, <code>resname</code> etc ) to the <code>DataTable Service Class</code> (<code>RestaurantDataTable</code>) for Custom DB queries like ( get only restaurant where <code>id = x</code>, or <code>resname = xxx</code> etc)?</p> <p>RestaurantController:</p> <pre><code>...
1
1,793
Python sock chat client - Problems with select.select() and sys.stdin
<p>So I'm currently trying to make a small chat client using a server and some clients. I found some code online and I wanted to use it as a basis for making my own. The problem I'm facing now is that it was written in Python 2.x and I'm using 3.x. There wasn't really much to convert, but I ran into some problems where...
1
1,159
How to refresh a QFileSystemModel in a QTreeView after files change through another process?
<p>I have a <code>QTreeView</code> with a <code>QFileSystemModel</code> as the model. Files and directories load correctly.</p> <p>In my application workflow, a different process copies and overwrites files on the file system.</p> <p>However, my <code>QTreeView</code> does not update the item/row for the overwritten...
1
2,352
upload array of images in multipart retrofit2
<p>I need to upload an array of images on server using multi-part.and I Also want to give key to that array, otherwise server don't recognize the array. I have tried the solutions below, but these do not work: <strong>Solution1</strong> :</p> <pre><code> MultipartBody.Part[] array = new MultipartBody.Part[items.size()...
1
1,314
Write byte array to file in java
<p>I want to write byte array to txt file. Firstly I want to see that data in eclipse console and I see that data are true. But when I want to write this data into txt file the problem is manifest itself. Txt file is coming with errors. </p> <p>My code is as follows.</p> <pre><code>FileOutputStream fos; try { fos...
1
2,435
activity_main.xml: String index out of range: 0 in Android Code
<p>That's my activity_main.xml, when I try see my Graphical it's returned any errors:</p> <p>Exception raised during rendering: String index out of range: 0 Exception details are logged in Window > Show View > Error Log The following classes could not be found: - EditText (Change to android.widget.EditText, Fix Build ...
1
1,381
Optimizing MariaDB for wordpress
<p>I have a server with 2 CPU cores and 1GB of RAM.The server only run one wordpress site.My Server Stack is LEMP.I ran mysql tuner two weeks after setting up the wordpress site. Here are the results </p> <pre><code>[!!] Maximum reached memory usage: 884.8M (89.15% of installed RAM) [!!] Maximum possible memory usag...
1
1,197
Android: Eclipse xml editor error can't display UI for layouts
<p>i have this error that won't display the Graphical Layout from my xml editor... this is the message and the stack trace Message on the Error Log on my Eclispe</p> <pre><code>activity_patient.xml: com.android.layoutlib.bridge.impl.binding.FakeAdapter cannot be cast to android.widget.BaseAdapter </code></pre> <p>St...
1
2,257
facebook unity sdk 6.0 crash app at second login
<p>Created a simple app with facebook unity sdk 6.0. </p> <p>In start function call the init facebook.</p> <p>There is a button call login and the login callback just output string.</p> <p>Run on a Samsung galaxy s5 with android 4.4.2.</p> <p>Issue (100% repeatable):</p> <pre><code> 1. First time click login butto...
1
1,666
ffmpeg record screen and save video file to disk as .mpg
<p>I want to record the screen of my pc (using gdigrab on my windows machine) and store the saved video file on my disk as an mp4 or mpg file .I have found an example piece of code that grabs the screen and shows it in an SDL window here :<a href="http://xwk.iteye.com/blog/2125720" rel="nofollow">http://xwk.iteye.com/b...
1
5,352
Android Studio add library error?
<p>I want add Picasso library in my project but my project give an error. Iusing jdk 7 and android studio 0.2.11 </p> <p>This is my error. I tryed 8 hours but again error again and again</p> <p>please help </p> <p>sorry bad english.</p> <pre><code>10-05 21:02:45.891 32262-32262/? E/AndroidRuntime﹕ FATAL EXCEPTIO...
1
1,204
Plotting 2 Different ggplot2 charts with the Same y-axis
<p>I'd like to plot 2 different charts side by side with a common y-axis using ggplot2: </p> <p>p1) an "area rectangle" graph using geom_rect() </p> <p>p2) a density plot using geom_density()</p> <p>I've come close by using grid.arrange(), but the y-axes don't quite line up. I don't think facet_wrap or facet_grid wi...
1
2,022
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of `java.lang.String` out of START_OBJECT token
<p>I use Spring Boot and Rappitmq so realize async messaging between two different applications. This works fine when I only exchange Strings as message content. I also imlemented the exchange of pojos. Because of the pojos beeing in different packages the serialization/deserialization process fails. To solve that I u...
1
1,984
Isolating data from single XML nodeset in R xml2
<p>I am trying to iteratively isolate and manipulate nodesets from an XML document, but I am getting a strange behavior in the xml_find_all() function in the xml2 package in R. Can someone please help me understand the scope of functions applied to a nodeset?</p> <p>Here is an example:</p> <pre><code>library( xml2 ) ...
1
2,483
Spring 3.0 lazy-init not honoured for DefaultMessageListenerContainer?
<p>I've setup a spring config for JMS. Things work fine, except I can't seem to get it to lazy load (notice the default-lazy-init true in the code below). If I comment out the jmsContainer(DMLC) from my config below, lazy loading works as expected. Otherwise, it will instantiate the DMLC, which in turn creates the queu...
1
1,446
Upload Image with input file button or drag and drop the file
<p>now I am learning to upload file with HTML5 and JavaScript (JQuery). and I got a problem with it. so, bellow here is the preview of my app.</p> <p><a href="https://i.stack.imgur.com/zM3sF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zM3sF.png" alt="enter image description here"></a></p> <p>an...
1
1,417
Could not start jstatd on ubuntu server
<p>I want to setup two servers with jstatd running so I can monitoring my applications on the fly. The web server have been up and running, but another server always get some exceptions like this.</p> <blockquote> <p>Could not bind /JStatRemoteHost to RMI Registry java.rmi.ServerException: RemoteException occurred...
1
1,594
Android Studios: Android Device Manager shows no files for Nougat 7.0 in File Explorer
<p>I'm learning how to integrate databases (SQLite) into my app.</p> <p>I checked out this <a href="https://youtu.be/p8TaTgr4uKM?t=10m" rel="nofollow noreferrer">tutorial</a> and at the 10m mark, OP enters the FileExplorer in Android Device Manager in Android Studio.</p> <p>Can't see ANY files in the File Explorer. <...
1
1,190
Parsing XML to Columns using SQL Server
<p>What is the simplest way to parse XML into columns with SQL Server. Example:</p> <pre><code>&lt;ns0:root xmlns:ns0="http://herp..."&gt; &lt;ns1:FirstElement xmlns:ns1="http://derpyderp..."&gt; &lt;ns1:FirstElementID&gt;AAF11303&lt;/ns1:FirstElementID&gt; &lt;ns1:FirstEValue&gt;some random text&l...
1
1,332
wsgi.py no module named MySite
<p>I'm trying to start my Django application on Apache on Windows server. I have problem with the <code>wsgi.py</code> file. I got the following error in server log:</p> <pre><code> mod_wsgi (pid=1332): Target WSGI script 'C:/Apache24/htdocs/OctopusWeb/wsgi.py' cannot be loaded as Python module. mod_wsgi (pid=1332): E...
1
1,754
FluentValidation validation factory and Ninject DI container
<p>I'm using <code>NinjectHttpApplication</code> with couple modules defined in my project. </p> <p>What I want is to create <code>FluentValidation</code> validation factory as described in <a href="http://www.thekip.nl/2011/09/22/using-fluentvalidation-for-both-domain-validation-and-validation-in-mvc-projects/" rel="...
1
1,142
std::map causing memory leaks?
<h2>EDIT</h2> <p>To make this post a bit more constructive, and let it possibly help others in the future:</p> <p><strong>The problem was this:</strong></p> <pre><code>std::map&lt;Point2, Prop*&gt; mm; std::pair&lt;Point2, Prop*&gt; p; if(Keydown(VK_LBUTTON)) { p.first = pos; p.second = new Prop(); mm.ins...
1
1,916
Where should I put the index.d.ts file?
<p>I am writing a nodeJS service that uses a bunch of npm modules without @types.</p> <p>The tsc error message tells me that I need to add index.d.ts file, but it doesn't tell me where to put it. My helper.spec.ts file which also imports the same modules also cannot detect index.d.ts when run with jest</p> <p>I put t...
1
1,359
Login failure: javax.security.auth.login.FailedLoginException: Password Incorrect/Password Required
<p>I got a problem with authentication and JBoss AS 7.1.1.Final "Brontes" and JSF 2.0</p> <p>jboss-web.xml</p> <pre><code>&lt;jboss-web&gt; &lt;security-domain&gt;testRealm&lt;/security-domain&gt; &lt;/jboss-web&gt; </code></pre> <p>web.xml</p> <pre><code>&lt;security-constraint&gt; &lt;display-name&gt;...
1
4,306
Android app saving and storing images in gallery?
<p>How can I save pictures taken by a camera through my app into my device's gallery?</p> <p>The problem is that the app currently crashes after taking a picture and can only save a single image in the directory specified. Am i right in assuming the app is crashing because it doesn't know what to do after saving a fi...
1
1,352
XML worker using itext
<pre><code>import java.io.FileOutputStream; import java.io.StringReader; import com.itextpdf.text.Document; import com.itextpdf.text.PageSize; import com.itextpdf.text.pdf.PdfWriter; import com.itextpdf.tool.xml.XMLWorkerHelper; public class HtmlToPDF2 { // itextpdf-5.4.1.jar http://sourceforge.net/projects/it...
1
1,703
GPS location not getting updates when app is killed
<p>I have a requirement of sending a user's location to a web server after a certain interval, currently sending after every two minutes. It is working fine unless the app is running. When the app is in background location stops getting updated, sending the same location again and again. I am little confused. it would ...
1
3,135
Updated Anaconda, error message "cannot import name 'moduleTNC'" when importing scipy
<p>I updated anaconda on windows using <code>conda update anaconda</code>. Now my my ipython notebook, which starts with</p> <pre><code>import numpy as np from numpy.random import randn import pandas as pd from scipy import stats import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns ... </code...
1
1,141
Android setOnMarkerClickListener set title for each marker
<p>I've implemented a clustermarker in my app, I have a list of LatLng that comes from my database, now I want to show the name of the clients as title when the user clicks on the marker,but when I click on the marker it shows me nothing, how can I achieve that, this is my code so far:</p> <pre><code> public class ...
1
2,813
java.lang.IllegalArgumentException: argument type mismatch in Spring Controller
<p>Im trying to submit a form to a spring controller and getting the below exception </p> <pre><code> SEVERE: Servlet.service() for servlet [openmrs] in context with path [/openmrs-standalone] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: argument type mismatch]...
1
2,126
Two ListFragment inside one Fragment
<p>I have created following thing in android using android compatibility support package</p> <p><img src="https://i.stack.imgur.com/QLwIg.png" alt="enter image description here"></p> <p>Basically i have a FragmentAcitivity which shows two Tabs. One Tab represents <code>Fragment #1</code> and second is <code>Fragment...
1
1,771
Javascript is not triggering from Ribbon button in crm 2011?
<p>i have created 2 ribbon buttons inside the appointment entity,the functionality of these buttons are ,while clicking it will open a new phone call and task respectively, but task is not getting opened.Phone call is working fine.Please suggest..</p> <p>Please see the RibbonDiffxml</p> <pre><code>&lt;RibbonDiffXml&g...
1
3,210
React native Bottom Tab Bar style adding bump
<p>Does someone know how to style the Bottom Tab Bar , in order to have something like this ?</p> <p><a href="https://i.stack.imgur.com/XjsGC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XjsGC.png" alt="Bottom Tab Bar"></a></p> <p>I'm able to design every item and to design also the entire Botto...
1
2,034
Slick slider not loading slides if slidesToShow is equal to the total slides?
<p>I am using slick slider in my project it was working fine until <strong>slidesToShow</strong> was less than total slides. But now I am facing this problem when <strong>slidesToShow</strong> is equal to total slides its not even displaying the slides properly. Here is the picture how it is displaying:</p> <p><a href...
1
1,751
Converting URL to UIImage. Able to convert but not append to UIImage array
<p>I'm making an application using swift that calls onto a Google Places api to generate a JSON file of locations, including images of the location generated. These images are given as URLs that I need to convert to UIImage and then append these images to an array. When opening the contents of the URL, I am able to see...
1
1,190
Execute stored procedures in parallel
<p>I have these 2 methods</p> <pre><code>public DataTable GetData1(int Id) { DataTable dt = new DataTable(); using (SqlConnection sqlcon = new SqlConnection(database.Connection.ConnectionString)) { using (SqlCommand cmd = new SqlCommand("spGetData1", sqlcon)) { cmd.CommandType ...
1
1,213
A Simple PHP/MySQL Web Service for iOS
<p>Based on : <a href="http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app" rel="nofollow">http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app</a></p> <p>My database looks like this : id | rw_promo_code_id | email_id | device_id | redee...
1
2,429
Parse Weather Forecast Data (from the NDFD) in c#
<p>I am using > <a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl" rel="nofollow">http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl</a> webservice to get the weather detials by calling GmlTimeSeries webmethod. Now I just want to read temparature, weather icon link details from the xml...
1
2,515
Horizontal listview not scrolling on web but scrolling on mobile
<p>After flutter 2.5 update listview is scrolling only on mobile platforms. It doesn't scroll when I open it on the web. It was working fine in the previous version. I tried the scroll physics but it didn't work. what do you suggest i do? sorry for my bad english.</p> <pre><code> return SizedBox( ...
1
2,246
How to query a server and get the MX, A, NS records
<p>I'm trying to get the A, MX and NS A server record as follows:</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;unistd.h&gt; #include &lt;netinet/in.h&gt; #include &lt;resolv.h&gt; #include &lt;netdb.h&gt; #define N 4096 int main (int argc, char *argv[]) { u_char nsbuf[N]; ch...
1
2,428
TestNG test-output folder getting generated on Desktop when expected to be in project folder
<p>I have a setup of <strong>Selenium WebDriver + TestNG + Ant framework</strong> in my automation project. Running webdriver + TestNG tests from Ant using build.xml was working absolutely fine a few months ago. TestNG was generating the <code>test-output</code> folder in the project directory as expected. <br><br>Now ...
1
2,844
How to render unknown/variable number of React elements
<p>I have this React component that looks like this:</p> <pre><code> var TestResult = React.createFactory(React.createClass({ displayName: 'test-result', getInitialState: function getInitialState() { return { active: false, testLines: [] //this value will ...
1
1,100
ActionBar icons won't show up for FragmentActivity despite setHasOptionsMenu(true)
<p>In my android app, I am trying to add icons to the ActionBar in my FragmentActivity; however, it remains blank. Essentially I have a FragmentActivity with separate Fragments which are scrollable tabs like this: </p> <p><img src="https://i.stack.imgur.com/Vx3e0.png" alt="enter image description here"></p> <p>I want...
1
2,091
Exception in template helper: Cannot read property 'name' of undefined
<p>I have been struggling with getting a userprofile to display for a specific user for some time now and I have been reasonably successful. I have ht oe problem where I get the error in the heading.</p> <p>I publish a schools collection like this</p> <pre><code>Meteor.publish("schoolData", function () { return Sch...
1
1,942
Hibernate Mapping composite primary key that contains foreign keys
<p>I have 2 classes Rule and Group. A rule is mapped to multiple groups through another class RuleGroupMap. The corresponding tables in DB are like this</p> <pre><code>CREATE TABLE `rules` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `validity_start_time` timestamp NULL DEFAULT NULL, `validity_end_time` timestamp ...
1
1,080
How to avoid a Conan SSL user authentication error with Jenkins Artifactory plugin?
<p>My company is new to Conan, Artifactory, and Jenkins, but we set up some test pipeline scripts a few months ago and utilized the Jenkins Artifactory plugin to publish some Conan packages to our Artifactory server. These scripts are now failing with an SSL certification failure.</p> <p>We are using the following pa...
1
1,328
appcmd.exe Cannot read configuration file due to insufficient permissions
<p>I have followed the steps at <a href="https://stackoverflow.com/questions/5615296/cannot-read-configuration-file-due-to-insufficient-permissions">Cannot read configuration file due to insufficient permissions</a></p> <p>I also tried to manually set the rights to related files, but that didn't work, especially on <co...
1
1,404
keyDown doesn't work swift
<p>That's my code: </p> <pre><code>override func keyDown(theEvent: NSEvent) { super.keyDown(theEvent) switch theEvent.character { case NSLeftArrowFunctionKey: println(1) case NSRightArrowFunctionKey: println(2) case NSDownArrowFunctionKey: println(3) case NSUpArrowFuncti...
1
2,436
SyntaxError: unterminated string literal <script>...</script> tag not working within a string variable
<p>Please look my code.</p> <pre><code>var id = 1; var htmlText = '&lt;div id="horizontalUserPopup"&gt;&lt;ul id="tabs1" class="rtabs"&gt;&lt;/ul&gt;&lt;div class="panel-container"&gt;&lt;div id="view1"&gt;&lt;script&gt;viewMiniProfile("'+id+'",this);&lt;/script&gt;&lt;/div&gt;&lt;div id="view2"&gt;&lt;/div&gt;&lt;div...
1
1,308
How to hide cupertinoTabBar when keyboard is displayed? or how to make keyboard cover the bar? or keep the tabbar in bottom always?
<p>I'm using CupertinoTabBar in my flutter app. Problem is the bottomBar shows when keyboard appears, and it shouldn't. Its a bottom bar, it should be in bottom always.</p> <p>I've not found some way or trick for do this. Maybe someone can guide me to get the right behaviour.</p> <p>This is my flutter doctor output<...
1
2,027
HTTP and HTTPS Bindings
<p>I have a application that consumes a WCF web service. </p> <p>I have it cofigured to use a https binding. It works fine. I also wanted to add a HTTP binding to the same.</p> <p>My requirement is if my client is on my domain (or on VPN) i need them to use the HTTP binding. and if they are external clients I want th...
1
2,344
Disable save button when validation fails
<p>As you can likely see from the title, I am about to ask something which has been asked many times before. But still, after reading all these other questions, I cannot find a decent solution to my problem.</p> <p>I have a model class with basic validation:</p> <pre><code>partial class Player : IDataErrorInfo { ...
1
1,398
Storing sensor data for various sensor types
<p>I have a question about how best to store the sensor data produced when the types of sensors are different. </p> <p><strong>A little bit of background:</strong></p> <p>I have two different sensoring units.</p> <p>One unit (lets say Unit Type A) has built in sensoring (temp, humidity etc) and produces a CSV string...
1
1,121
UICollectionView - too many update animations on one view
<p><strong>Update:</strong> Solved! See my answer below for the solution.</p> <p>My app displays a number of images in a UICollectionView. And I'm currently experiencing a problem with insertItemsAtIndexPaths when new items are getting inserted too fast for the collection view to handle. Below is the exception:</p> <...
1
2,143
java.lang.IllegalStateException: Failure saving state: active has cleared index in fragment
<p>First, my app has structure like this:</p> <pre><code> SpashActivity -&gt; MainActivity -&gt; switching between many fragments </code></pre> <p>My app use <a href="https://github.com/jfeinstein10/SlidingMenu" rel="noreferrer">SlideMenu</a> to switch between fragments. I have to use <code>attach</code> instead of <...
1
2,551
How can I detect if any key is pressed in C++?
<p>I'm looking for a way to detect if any key is pressed in a Windows environment C++ console application. Emphasis on any, not a specific key or set of keys. I've searched all over this website and I can't find an answer. The best I've found is to use the GetKeyState function or the GetAsyncKeyState but with no exampl...
1
1,524
How to Implement In-App Purchases in Windows 10 Apps?
<p>I want to integrate in-app purchasing in my windows universal app. I do the following thing before coding.</p> <ul> <li><p>Make App on <a href="https://dev.windows.com/en-us/dashboard/" rel="nofollow">Windows Dev Center</a></p></li> <li><p>Add products with details in IAPs section and submit to Store as you can see...
1
1,343
MySQL tee (\T) command doesn't output my queries or my comments
<p><strong>GOAL</strong>: to output all SQL queries and their outputs into a text file</p> <p><strong>SQL CODE</strong>:</p> <pre><code>\W /*enable warnings*/ USE bookdb; /*doesn't exist because I WILL DROP DATABASE booksdb BEFORE RUNNING THIS SCRIPT (to avoid duplicate entry errors from testing out the queries duri...
1
1,742
DNS lookup failed: address 'your.proxy.com' not found: [Errno -5] No address associated with hostname
<p>This question is an extension of the resolved question here, ie. Crawling linkedin while authenticating with scrapy. <a href="https://stackoverflow.com/questions/10953991/crawling-linkedin-while-authenticated-with-scrapy">Crawling LinkedIn while authenticated with Scrapy</a> @Gates</p> <p>While I keep the base of t...
1
1,170
how to pass string parameter to webmethod in a web service from JQuery
<p>Here is my webmethod in a web service (local to the sample project) .asmx</p> <pre><code>[WebMethod] public List&lt;test1&gt; GetLstB(string s) { test1 t; List&lt;test1&gt; lstB = new List&lt;test1&gt;(); t = new test1() { itm1 = "aaa" + s, itm2 = "bbb...
1
1,260
Get Laravel to return JSON
<p>Hi am struggling to get my validated error messages in JSON. I don't know why it is so hard to do this in laravel. I am trying to use a ajax request to get back a HTTP response with my form data errors. Here is my request code </p> <pre><code>&lt;?php namespace App\Http\Requests; use App\Http\Requests\Req...
1
2,172
PHP file_exists sometimes returns false for a file on CIFS share
<p>I have a CIFS share from Windows Server 2012 R2 mounted on Ubuntu 14.04.2 LTS (kernel 3.13.0-61-generic) like this</p> <p><strong>/etc/fstab</strong></p> <pre><code>//10.1.2.3/Share /Share cifs credentials=/root/.smbcredentials/share_user,user=share_user,dirmode=0770,filemode=0660,uid=4000,gid=5000,forceuid,forceg...
1
2,254
How do I mock an Angular service using jasmine?
<p>This may be a duplicate but I have looked at a lot of other questions here and they usually miss what I am looking for in some way. They mostly talk about a service they created themselves. That I can do and have done. I am trying to override what angular is injecting with my mock. I thought it would be the same but...
1
1,163
How to handle Broken pipe error with Spring, (JPA) Hibernate, MySQL
<p>I have an web application using Spring JPA (Hibernate) and MySQL running in Tomcat. After period of inactivity I always get this exception:</p> <pre><code>Caused by: javax.persistence.PersistenceException: org.hibernate.TransactionException: JDBC begin transaction failed: at org.hibernate.jpa.spi.AbstractE...
1
2,233
How to add view components dynamically from activity
<p>I am attempting to create a user interface dynamically. I have successfully create a view and loaded my background image. I have created two additional small view items to display on the background. My problem is that I have not been able to find any advice/instruction that tells me how to draw the small views. It s...
1
1,031
How to create inline table elements in HTML5?
<p><strong>Goal:</strong> Display some text with a paired word-for-word translation directly underneath. Text must wrap in window. Must work in HTML5. Solution should look like this:</p> <p><a href="http://example.teadroid.com/home/screenshots/wraptable.png" rel="nofollow">Screenshot</a></p> <p>Reason for HTML5 is...
1
2,170
spring-data-redis: Unexpected end of stream exception
<p>Been getting random "unexpected end of stream" exceptions. Load on server (AWS Elasticache) is minimal. There are bursty loads on the client side at the time but the exception doesn't always happen.</p> <pre><code>java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_73] at java....
1
1,343
C# UWP Build failed / Windows.Foundation.FoundationContract missing
<p>I updated one UWP App to a newer SDK and set target version to 16299 and Min Version to 15063. </p> <p>Then I'm using the Windows.Foundation.UniversalApiContract Namespace to use features of the new SDK if available. Example:</p> <pre><code>xmlns:contract5NotPresent="http://schemas.microsoft.com/winfx/2006/xaml/pr...
1
1,320
OutOfMemoryError although vm has enough free memory
<p>I am getting this weird OutOfMemoryError that occurs although the dalvikvm reports enough heap space. Logs:</p> <pre><code>12-09 14:16:05.527: D/dalvikvm(10040): GC_FOR_ALLOC freed 551K, 21% free 38000K/47687K, paused 173ms, total 173ms 12-09 14:16:05.527: I/dalvikvm-heap(10040): Grow heap (frag case) to 38.369MB f...
1
1,958
gst-launch bogus 'no element "udpsrc"' error
<p>The command: <em>gst-launch udpsrc port=5000</em> returns: <em>ERROR: pipeline could not be constructed: no element "udpsrc"</em>.</p> <p>The command: <em>gst-launch-1.0 udpsrc uri=udp://239.194.0.177:1026</em> does not, and executes (presumably) correctly.</p> <p>The first command is from many streaming tutorials...
1
4,136
Added new bean.xml and get class path resource [Spring-Mail.xml] cannot be opened because it does not exist] with root cause
<p>I have tried to follow the example at: (<a href="http://www.mkyong.com/spring/spring-sending-e-mail-with-attachment/" rel="nofollow">http://www.mkyong.com/spring/spring-sending-e-mail-with-attachment/</a>) to add a Mail Bean to my project, but it doesn't seem to work. The problem I think is that I can't add new bean...
1
3,021
Load a SPA webpage via AJAX
<p>I'm trying to fetch an entire webpage using JavaScript by plugging in the URL. However, the website is built as a Single Page Application (SPA) that uses JavaScript / <a href="http://backbonejs.org/" rel="noreferrer">backbone.js</a> to dynamically load most of it's contents after rendering the initial response.</p>...
1
1,195
bootstrap inlining with d-inline-block
<p>I am improving my bootstrap skills, i wanna know why in one place for inlining one work and in one place another, here : d-inline-block and this form-inline, what it difference between this two and why for example using 'form-inline' in 'd-inline-block' place wont work ? both has form classes ?</p> <p><div class="s...
1
1,091
404 Not found Spring boot war to Tomcat
<p>I have Spring boot applicatio. This works fine with embedded server. And i can use Postman to test API. </p> <p>Now i want deploy this on Tomcat 8 i create root.war file with <code>maven install</code> and put it to Tomcat/webapps/ I run tomcat without any errors. But when i use the same url as postman it gives me...
1
3,868
Symfony and Doctrine - The identifier id is missing for a query
<p>I'm developping a website for a small business and I'm facing an unknown problem ...</p> <p>In the admin panel, I can manage my menus, contents etc... For menus management, I succeeded</p> <pre><code>$form = $this-&gt;createFormBuilder($menu) -&gt;add('nom', 'text', array( "attr" =&gt; array( ...
1
1,143
Sequelize Migration Error
<p>I'm using Sequelize 2.0.0-rc3 and there's an error I'm encountering; it seems like I'm writing the migration correctly but I'm getting an error trying to run it. I'm using Postgresql on the backend. Everything seems to be working fine; this is a new, isolated issue. The Document table and id column exists (created i...
1
1,143
Troubleshooting a framework which appears in red in my project in XCode 4.5
<p>When building any Mac OS X application which uses any framework which doesn't come in built in to the core, that is, some third party frameworks, it seems fairly common that I have problems where the framework appears in red when I look at it in XCode 4.5. </p> <p>There are two most common places where it can appea...
1
1,543