title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Wordpress- Detect Mobile only (without tablet)
<p>I would like to detect a mobile devices and redirect the user from homepage to a custom URL, I used the following code on functions.php:</p> <pre><code>function isMobilePhone() { $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fen...
2
1,580
PHP pdo: Invalid Parameter Number when using a parameter twice?
<p>I have the Problem, that I can not use an SQL-Statement in PDO (PHP/mysql), when I use a positional parameter twice:</p> <pre><code>SELECT `ID` FROM `_LOGIN_` WHERE `LoginName` = :loginName AND `sha512`= SHA2(CONCAT(:pw, (SELECT `salt` FROM `_LOGIN_` WHERE `LoginName` = :loginName)), 512) </code></pre> <p>As you c...
2
1,298
Google Cloud Storage - PUT Fails on Development Server
<p>On my dev server, Google Cloud Storage fails to save files during a <code>PUT</code> command.</p> <p>This same command works fine on production. The response headers (see below) have little debug information. I have plenty of space on my hard-drive, and I have been running the dev server as an administrator, so it s...
2
1,080
I want to execute my below code as synchronous , by order in nodejs
<pre><code>var job = new cronJob('* * * * * *', function () { //find and send message using cron job Quicksms.findOne({ attributes: ['id', 'phoneno', 'sender', 'message', 'isSent'], raw: true }).then(data =&gt; { console.log('data:', data); // var filteredData = datas.filter...
2
1,269
Ruby on Rails Getting name can't be blank error when trying to add new user
<p>I am a Ruby on Rails newbie, and am trying to put into practice some of the tutorials I have been following.</p> <p>I am currently trying to get a basic user signup working.</p> <p>When the signup form is completed and submitted, the Firstname and Lastname fields are blanked out and I get two error messages (I als...
2
1,948
Sending base64binary (image) via SOAP with ruby / savon
<p>I'm using SOAP api for allegro.pl (polish alternative for ebay.com) and I've a litte problem with sending images through SOAP. I was asking the same question at official forum but unfortunately no-one has replied.</p> <p>Anyway, working (piece of) code (soap message) in PHP looks like that:</p> <pre><code>array( '...
2
2,215
Modal popup extender not displaying popup
<p>I have inherited some code using an ASP modal popup extender and for some reason it has now decided to stop working. Am I missing anything here? I'm not too fluent with AJAX / ASP.Net right now so im struggling to diagnose what is going wrong here.</p> <p>So firstly the javascript method that displays the modal</p>...
2
3,161
How to use View Models in MVC to display multiple model in razor view?
<p>I have just started working with mvc after doing so much R&amp;D i started this test project but now stuck at the situation where i have no any idea how can i create a viewmodel to display data from two different models.</p> <p>model 1 </p> <pre><code> public class Product { public int ProductId { get; set; } ...
2
1,811
DeadObjectException thrown by queryIntentActivities
<p>I'm getting the <code>DeadObjectException</code> from <code>queryIntentActivities</code> rarely.</p> <p>This is all I found for this issue: <a href="http://comments.gmane.org/gmane.comp.handhelds.android.acra/184" rel="nofollow noreferrer">http://comments.gmane.org/gmane.comp.handhelds.android.acra/184</a> So I tri...
2
1,834
Ring buffer with atomic indexes
<p>I have struggled with what must be a fundamental misunderstanding of how atomics work in C++. I have written the code below to implement a fast ring buffer using atomic variables for indexes so multiple threads can write to and read from the buffer. I've whittled the code down to this simple case (which I realize is...
2
2,584
Updated to passport-jwt and getting unauthorized error
<p>I've upgraded from passport-jwt 1.2.1 to pasport-jwt 4.0. I updated the passport code to use the ExtractJwt.fromHeader, which I believe is labeled 'Authorizaton', which you will see in my Header Request code below.</p> <pre><code>var JwtStrategy = require('passport-jwt').Strategy, ExtractJwt = require('passport...
2
1,674
Custom IConfiguration Service in Client SIde Blazor
<p>I am trying to have some basic configuration from json file to a singleton service inside my client side blazor application at the start up.</p> <p>Below is my code setup</p> <p>AppConfig and IAppConfig files</p> <pre><code>interface IAppConfig { string BaseUrl { get; set; } string Source { get; set; } }...
2
1,123
How to get resource file with maven project and javafx
<p>Here's my structure: <a href="https://i.stack.imgur.com/e1DbU.png" rel="nofollow noreferrer">stupid stack overflow won't let me post this image</a></p> <p>In my main class I'm calling this:</p> <pre><code>public class Main extends Application { @Override public void start(Stage primaryStage) throws Exception...
2
1,448
Pass JSON to JQuery function Javascript
<p>We have a very simpel Google Apps Script Web App, which purpose is to show JSON data in a HTML drop-down-list. The JSON file exists in Google Drive. Inspiration code from: <a href="http://jsfiddle.net/manoj_admlab/Mta5b/3/" rel="nofollow noreferrer">http://jsfiddle.net/manoj_admlab/Mta5b/3/</a></p> <p>But when we a...
2
1,318
How to search SQL database and display in C# listview
<p>I need to filter an SQL database using C# to display it in a windowsFormsHost.</p> <p>For that, I created a text box in which you input the required string. Using this input, the code uses the text to search through the database and display on clicking a refresh button.</p> <p>The refresh button works and is done,...
2
1,649
Add Service Reference not working for WCF service without SVC file
<p>I have an existing WCF service which does not have *.SVC file. The project itself is website and WCF code is written in it. It is using this line for registering service:</p> <pre><code>RouteTable.Routes.Add(new ServiceRoute("", new WebServiceHostFactory(), typeof(Service1))); </code></pre> <p>I run the project fr...
2
1,348
Visual Studio Emulator for Android is not working: mscorlib.dll.so not found
<p>After I configured Hyper-V and managed to get it <a href="https://stackoverflow.com/questions/29903619/windows-phone-emulator-not-starting-couldnt-setup-the-udp-port">running</a>, the <a href="https://www.visualstudio.com/en-us/features/msft-android-emulator-vs.aspx" rel="nofollow noreferrer">Visual Studio Emulator ...
2
1,204
VB.NET Array/Hashtable Issue
<p>I am trying to make an array of hashtables. I don't know if this is the best solution, in PHP I would just do a multi-dim array, but it's not so easy in .NET. I am pretty new o VB, so if there is a better solution for this please explain.</p> <p>I have 2 emails fields for a contact, and a contact can have many. I j...
2
1,087
Part 2 - How do I get consistent rendering when scaling a JTextPane?
<p>I submitted another version of this question and a sample program before: <a href="https://stackoverflow.com/questions/4513003/how-do-i-get-consistent-rendering-when-scaling-a-jtextpane">How do I get consistent rendering when scaling a JTextPane?</a></p> <p>Recapitulating the problem: I would like to allow users to...
2
2,553
Swift type casting issue
<p>I have a weird crash (like 1 for 10 000 times), here is a code:</p> <pre><code>typealias APIData = Dictionary &lt;String, AnyObject&gt; static func performAction(action: APIAction, params: APIParams, needAuthorization: Bool = true, completion: APICompletion) -&gt; AFHTTPRequestOperation? { var requestParameter...
2
1,926
Building a Joomla 3 Custom Component
<p>I am currently building a custom Component in Joomla 3 that allows users to search for a sports club by postcode using an Ajax form on the front end. I have all this functionality working and am now currently working on the backend of the component (in the admin). This section needs to alow admins to add and delete...
2
1,735
ANDROID ConstraintLayout - how to make a view stetch to the entire width and height of remainder of screen?
<p>hey can someone paste this code and tell me why i am not able to stretch the pink textview to fill the remainder of the empty screen. Here is my code using constraintLayout primarily:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;android.support.design.widget.Ap...
2
3,989
i18next failing to load translation file: "there is a typo"
<p>I've created translation file, validated it at <a href="http://jsonlint.com/" rel="nofollow">jsonlint</a>, ensured the translation file was located at /locales/translation-en.json.</p> <p>I consistently get the error,</p> <pre><code>There is a typo in: locales/translation-en.json </code></pre> <p>I'm stumped ... ...
2
1,390
Cannot start Java Web Start JNLP based application (single signed JAR)
<p>I am using <a href="https://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/jnlp.html" rel="nofollow noreferrer">JNLP (Java Network Launch Protocol)</a> for the first time, and cannot find a way to discover the source of a problem.</p> <p>My application is <a href="https://en.wikipedia.org/wiki/Swing_(...
2
1,757
Store data in mysql from recyclerview with button using volley
<p>I am working on app that fetches data using volley and displays in feed using recyclerview.i have a button in each card that when clicked, will count the number of clicks and display it in a textview in that particular card(like instagram like button). Now i want the value of clicks to also be stored in a mysql data...
2
3,987
Mat matrix in OpenCV and 16-byte alignment for SSE
<p>I like to test the enhancement of <code>SSE/SSE2</code> for processing <code>OpenCV's Mat</code>. Since <code>SSE's</code> performance enhancement is obvious only for 16-byte alignment data, (1)what do I need to modify the Mat matrix to use with <code>SSE</code> registers? What I did was as follow and (2)is that a r...
2
2,452
Failed to destroy the filter named [Tomcat WebSocket (JSR356) Filter]
<p>while running spring boot application am getting below error</p> <pre><code>SEVERE: Failed to destroy the filter named [Tomcat WebSocket (JSR356) Filter] of type [org.apache.tomcat.websocket.server.WsFilter] java.lang.AbstractMethodError at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilt...
2
9,782
addrow method in DefaultTableModel is not adding rows
<p>I have some data in MySQL which has to be retrieved and showed in JTable. Code I wrote for that is as follows</p> <pre><code>PreparedStatement ps = con.prepareStatement("select * from " + chosenClass + " where subjects=?;"); ps.setString(1, selectedGroup); rs = ps.exec...
2
1,248
MongoDB $ifNull conditional with mgo
<p>I'm struggling porting a query from the mongo console to my Go code. I'm new to MongoDB so there might be additional mistakes I haven't taken into account.</p> <p>Sample data 'users' collection:</p> <pre><code>{ "_id" : ObjectId("592400188d84961b7f34b0cd"), "username" : "randomUser2", "location" : { "type" : "Poin...
2
1,964
How can I simplify this code? (Chess game obstruction testing)
<p>I'm making a chess game in Java, and testing to make sure there are no pieces blocking the path of the piece being moved. The piece moves from (srcX,srcY) to (dstX,dstY).</p> <p>I've written this code which checks if there are any obstructions for a rook:</p> <pre><code> if(dstY == srcY) { // No ch...
2
1,167
How to configure spring batch jobs modular?
<p>I'd like to defined mutiple <code>Jobs</code> in my <code>spring-batch</code> application, and trying to make them modular as follows:</p> <pre><code>@Configuration @EnableBatchProcessing(modular = true) public class ModularConfig { @Bean public ApplicationContextFactory getJob1() { Sysout("job1"); ...
2
2,215
Equalizers, bassboost and reverb effect not working (using FFmpegMediaPlayer)
<p>I'm currently using <a href="https://github.com/wseemann/FFmpegMediaPlayer" rel="nofollow noreferrer">FFmpegMediaPlayer</a> from github and the effects are not working in the phone but works perfectly in the emulator which of both are the same API 22.</p> <p>The strange thing is that when I switch the code from FFm...
2
1,902
How to write the 3 column values in 3 different variables into an Excel sheet using selenium webdriver
<p>I am working with Selenium WebDriver and I am blocked with the below given scenario.</p> <h1>Test Scenario</h1> <p>I have a page containing 100 table rows and I need to fetch details of each rows and write it to an excel sheet.</p> <p>So the number of columns in excel sheet will be 3 and number of rows will be 10...
2
1,827
Reachability crashes app
<p>I just implemented Apple's Reachability code and my App is now crashing in a completely inconsistent and random fashion: it could successfully load 20 web-pages in a row - but then crash on the 21st. attempt, or it could crash after just the 2nd. web-page load attempt</p> <p>Instruments/NSZombies shows something st...
2
1,996
why "return 0" works for returning a pointer in function, but not works for reference?
<p>edit on Feb 25: changed my question, and adding some describes to my question.</p> <p>======================some complains===========================</p> <p><strong>To those people who down-vote my question:</strong></p> <p>This is my first question on stack-overflow.</p> <ol> <li>about the question: this questi...
2
1,145
Linker script: allocation of .bss section
<p>I have a linker script like this:</p> <pre><code>OUTPUT_FORMAT(binary) SECTIONS { . = 0xFFFF800000000000 ; .startup_text : { processor.o(.text) } .text : { *(EXCLUDE_FILE (processor.o) .text) } .data : { *(.data) } .rodata : { *(.rodata) } linker_first_free_page = ALIGN(4096); } </code></pre...
2
1,028
installing WordNet on Mac 10.9.2
<p>I'm trying to install WordNet on Mac (OS 10.9.2). I have tried the following</p> <ol> <li>./configure </li> <li>make</li> </ol> <p>But during <code>make</code> I got some errors. Then I have installed XQuartz-2.7.5. Still I got some error during <code>make</code>. Next, I have installed Xcode but still this dose n...
2
1,633
NoSuchMethodException when instantiating a class using newInstance()
<p>I'm using the following code to instantiate every class in a package:</p> <pre><code> for (Class listenerClass : ClassGetter.getClassesForPackage(this, "cullan.listener")) { Bukkit.getLogger().info(listenerClass.getSimpleName()); if (!listenerClass.getSimpleName().equals("EnchantmentListener"...
2
1,927
Database schema help muliple products and suppliers
<p>I am hoping someone can help my muddle over a database schema i am trying to implement. It is based around selling mobile contracts and network bolt on from Network providers. The contracts are fore filled by a number of distributors who may or may not sell a networks contract the prices also differ per distributor....
2
1,601
Invalid operation: syntax error at or near "Delta"
<p>I have redshift script</p> <p>Here is the code of part of a script</p> <pre><code> SELECT cog.organizationid, cog.clientid, t.MonthBilled, t.Month, t.Year, u.ClientCharges, cp.supervisorcontactid AS Principal, cc.fullname AS CSL, LAG(u.ClientCha...
2
2,426
String with special characters don't work with Python and regex
<p>I'm working in this project and the special characters are driving me crazy! I've searched a lot of solutions around the foruns but they didn't fix my problem.</p> <p>I have this string with special characters:</p> <pre><code>['{"response":{"startRow":0,"endRow":5,"totalRows":5,"data": [{"CODIGO":"72","DESCRICAO...
2
1,229
acts_as_taggable_on and select2 returning weird results in Active Admin
<p>So I have been playing around with <code>acts_as_taggable_on</code> in active admin, and for the most part everything is working as expected.</p> <p>However, whenever I search for tags, and add an <em>existing</em> tag to a model, it seems to save it as the ID, rather than as the name. Creation of new tags returns ...
2
1,214
WPF Binding error
<p>I really don't understand what am I doing wrong here. These are my classes:</p> <pre><code>class Filtro { public string url; public string tag; public string tipo; public Filtro(string _tipo, string _tag, string _url) { url = _url; tag = _tag; tipo = _tipo; } } cla...
2
1,079
How to remove empty values in drop down using ng-option in angular js?
<ul> <li>How to remove empty and blank values in the <code>Drop Down</code> using ng-option in angular js?</li> <li>Some data's are in <code>college name</code> some of it not having the <code>college name</code> so what is happening in the drop down, the empty values are displaying.</li> <li><p>I am expecting only val...
2
2,055
Firebase Auth failed on iOS (Unity, Xcode)
<p>I am trying to make Firebase Unity SDK work on iOS 13 device. I was able to build the project, but the issue is I am not able sign up or authenticate user.</p> <p>Steps to Reproduce: (What I did)</p> <ol> <li>Downloaded quickstart-unity/auth/testapp project</li> <li>Opened in Unity 2019.2.20f1 with iOS platform</l...
2
1,283
django - any image upload and display method using Ajax?
<p>On my django application I'm using ImageKit to resize a image loaded to the server.</p> <p><strong>models.py</strong></p> <pre><code>class Pictures(ImageModel): user = models.ForeignKey(User) original_image = models.ImageField(upload_to='userpx') class IKOptions: # This inner class is where we...
2
1,130
Java/HTML - InvocationTargetException thrown
<p>I'm writing a status checker, it is a java web-start applet. I can run it on my computer and it will run just fine, however; when I run it on a web page I get the runtime error java.lang.reflect.InvocationTargetException. This is the html file I'm using to run the jar file</p> <pre><code>&lt;html&gt; &lt;head&g...
2
3,386
Gatsby Create Pages
<p>I am trying to create a gatsby site where I have projects posted, each with tags. I followed a basic tutorial on creating a gatsby blog, and am now working through gatsby's tags as documented on their website. Along the way while changing variable names from path to slug to avoid reserved words, I seem to have messe...
2
2,846
linux C++ gmake "No rule to make target"
<p>It's been a couple decades since I've had to manage makefiles. I've checked existing answers here, as well as googling elsewhere. When I use the target: <code>$(BIN)/$(EXECUTABLE): $(OBJECTS)</code> I'm stumped as to why my makefile is failing with:</p> <p><code>$ make make: *** No rule to make target 'src/SReco...
2
1,121
Bootstrap 4 Navbar search box not aligning in center
<p>I've gone through almost every question regarding center aligning elements in a navbar, haven't found an answer yet.</p> <p>I've been trying to center align a search bar inside of my navbar but outside of the collapsible button. The problem is, no matter what I do, I can't get the search box in the center. It just ...
2
1,033
Karma runner does not run all files
<p>For some weird reason that I cannot fathom, my karma runner sometimes does not run all the test files.</p> <p>karma.conf.js:</p> <pre><code>module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ '../lib/angular/angular.min.js', '../lib/angular...
2
1,203
How can I fix "Cannot read value of type Vector2 from composite" error in Unity?
<p>I'm making a 2D game with Unity using the new Input System. I used <code>spriteRenderer.flipX</code> to flip the player but since it is made of three parts (body and two eyes), the <code>spriteRenderer</code> didn't work. Also, I couldn't convert them to a single sprite because I need the eyes in order to animate th...
2
1,451
Client-side custom annotation validation not working
<p>I am trying to get client-side validation working with custom annotations in an ASP.NET MVC app. Sorry for the somewhat lengthy post.</p> <p>Here is the custom attribute:</p> <pre><code>public class CustomStringLengthAttribute : ValidationAttribute, IClientValidatable { public int MaxLength { get; private set...
2
1,362
I need action bar search view in a custom adapter listview
<p>In my app, there is a listview with textview and image, I can search element by adding a edittext in xml, but I want search bar in action bar.. how can I do this? please help.. <a href="https://i.stack.imgur.com/E2cPX.png" rel="nofollow noreferrer">Image: </a></p> <pre><code> // My activity java code prod...
2
2,453
Radio button value is not null
<p>I'm making a website with a wizard-like web form, split up in multiple <code>fieldset</code>. Because of this, the <code>required</code> attribute for <code>input</code> doesn't work until you reach the last slide, where the complete form is submitted. However, since only the current <code>fieldset</code> is visible...
2
1,353
Extracting nibbles from bytes in a for loop
<p>I'm having some problems with a DMA interrupt handler I've adapted for an LCD display on a MicroChip PIC32 embedded chip.</p> <p>I have limited internal memory and need a frame buffer for my colour LCD. Have decided to use 16 colours and use a nibble per pixel. I've created an array which looks like this: </p> <pr...
2
1,187
Compare results from two different mysqli_fetch_array with PHP
<p>I created a DB where I am saving information about apps. Those apps can be linked to a <em>vertical</em>. I designed the DB in such way that I have one table for standard information about each application which includes an auto-incremented ID a name etc. I have another table that lists all different industries/vert...
2
2,032
Java. Mock data access object
<p>I've encountered problem with mocking data access logic.</p> <p>I'm developing web application using JavaEE, Struts and my custom data access logic. In this application Struts Action operates with UserDao to retrieve User objects. Lifecycle of the UserDao object is tied to the JDBC transaction. Idea is that when Ac...
2
1,260
GLSL Weird Error When Compiling Shader (structs)
<p>I have a fragment shader, it has structs and a uniform of those structs. When I tried to compile them, OpenGL gave me this error:</p> <pre><code>0(30) : error C0000: syntax error, unexpected identifier, expecting '{' at token "lights_a" 0(31) : error C0000: syntax error, unexpected identifier, expecting '{' at toke...
2
1,067
Windows 8 XAML-only solution for toggling the visibility of a control when hovering the mouse over a different control
<p>I am working on a project and need help in finding a Windows 8 XAML-only solution for toggling the visibility of a control when hovering the mouse over a different control. The control can be a button or any Windows8 control and the code needs to be in XAML because all my logic is in XAML. I tried numerous XAML sol...
2
1,097
Cucumber with Selenium and Junit gives : java.lang.ExceptionInInitializerError
<p>I'm trying to run a cucumber test using selenium / java. Based on the console output , I can say for sure that the step definiton file has been found by the feature file , but still , the moment the code enters the @Given block , it errors out with below. I tried my best to know why this error occurs , tried adding ...
2
5,493
Angular 2 Component Library
<p>I am trying to create a component library that I can share with anyone via <strong>npm</strong>. I am building my component lib with <strong>webpack</strong>. When I try to install my component lib into an Angular 2 project's module, the project's module does not recognize the name of my component lib module. </p> ...
2
1,434
Using detail to delivery API's
<p>I created this procedure</p> <pre><code>CREATE OR REPLACE PROCEDURE APPS.test_dlv3 IS BEGIN DECLARE -- STANDARD PARAMETERS. pApiVersion NUMBER := 1.0; pInitMsgList VARCHAR2(30); pCommit VARCHAR2(30); -- PARAMETERS FOR WSH_DELIVERY_DETAILS_PUB.DETAIL_TO_DELIVERY pDeliveryId NUMBER; pDeliveryNam...
2
1,207
Can't start c#+SeleniumWebDriver+Specflow+Nunit tests on Teamcity
<p>Now trying to run my Selenium tests, using Teamcity server. Server is installed locally. At this moment project in teamcity contains 3 steps:</p> <ol> <li>NuGet instaler.</li> <li>Step with Visual Studio as runner.</li> <li>Step with NUnit as runner.</li> </ol> <p>At this moment, 1 and 2nd steps are successfully f...
2
1,682
SecKeychainItemExport get private key data, but convert to OpenSSL EVP_PKEY error
<p>I use SecKeychainItemExport to get the raw data of public key and private key. The code:</p> <pre><code>CFDataRef key_data = NULL; ret = SecKeychainItemExport(key_ref, kSecFormatBSAFE, 0, NULL, &amp;key_data); </code></pre> <p>and the public key convert is ok: </p> <pre><code> d2i_RSA_PUBKEY_bio(public_key_bio, &...
2
2,594
Docker swarm - log to rsyslog container
<p>I have a docker swarm with 6 services that I want to have logging to one central logging container. I have this working in my dev environment (non swarm) - see the docker-compose file below.</p> <p>When I try to transition the configuration from the dev env to my swarm prod env, it fails.</p> <p>first I raise the ...
2
1,677
Plotly (r): Unable to apply correct colors to 3D scatter and show legend at the same time
<p>Answer has been given: <a href="https://stackoverflow.com/a/51503530/10071318">https://stackoverflow.com/a/51503530/10071318</a></p> <p>I'm trying to create a 3D scatter with plotly including two regression planes. I'll include a proper reproducible example at the end.<br> Main plot command:</p> <pre><code> p &...
2
1,538
Symfony2 OAuth Client
<p>I am trying to add this oauth client library "adoy/oauth2" to symfony to connect with my OAuth2 enable API. This is what I have done so far.</p> <p>1) composer.json</p> <blockquote> <pre><code>"require": { "adoy/oauth2": "dev-master" } </code></pre> </blockquote> <p>2) AuthController.php</p> <blockquote> <...
2
2,249
CADisplayLink & UIView Animations Unreliable
<p>I am trying to create an Animations Manager class, which will handle recursive animations for me. It is working, but is being unreliable. e.g Sometimes, when using it the animations happen "back to back" as it were, with no delay between them. Other times when using it, delays are left between animations (This is ha...
2
1,150
Material UI Accordion Summary
<p>I have a very peculiar case to display Selected Item Count in my <code>Material UI - Accordion Summary</code>: Following Should be the Behavior:</p> <p><a href="https://i.stack.imgur.com/efhAZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/efhAZ.png" alt="enter image description here" /></a></p> ...
2
3,856
Adding and removing multiple filters in Knockout JS
<p>I'd like for my users to not only be able to use multiple filters, but to click an active filter to remove it. Right now, filters only work one at a time and there is no way to remove a filter other than clicking "show all". I'm fairly sure the answer is to use a ko.observableArray to store the filters, add or remov...
2
1,599
GNU argp "too few arguments"
<p>My program is supposed to take two required arguments, and three optional arguments, like follows</p> <p><code>ATE &lt;input file&gt; &lt;output file&gt; [--threads] [--bass] [--treble]</code></p> <p>(note, I haven't figured out how to take <code>&lt;required&gt;</code> arguments yet, so input and output file is d...
2
2,401
Rendering issue on ZF2, trying to render layout to get html code
<p>I've an issue with PhpRenderer, let's start by the context. I have to generate a bunch of static pages to cache them (with cache storage using file system adapter). So I wired an event on EVENT_ROUTE to serve the static page if it exists, and an event on EVENT_FINISH to get the response content and write it to a ca...
2
1,965
pool.map freezing when object is large
<p>I am using pool.map to populate a dictionary-- called nodes. To be clear: this dictionary is populated after pool.map runs so sharing the variable between processes is not a a concern. Everything the function returns and everything in the dictionary IS picklable. It is populating a dictionary that is essentially a g...
2
1,269
Highcharts won't display in Chrome App
<p>I am trying to embed a chart from highcharts.com (using <code>jquery</code>). The graphs works fine if I just open <code>windows.html</code> in chrome itself, but it will not load in my chrome app. Just a blank screen. I have all the standard .js files in the folder, but didn't include them here.</p> <p>I started w...
2
2,357
Using c++ std::copy on an array of structure
<p>I want to use std::copy to copy an existing array of structures to new one. A regular option is fine with '''local_copy()'''. I want to know the procedure to use std::copy for such case described below -</p> <p>I tried the code and get following error at compile time</p> <pre><code>#include &lt;iostream&gt; class...
2
1,631
Why "x86" library is installed on a "armeabi-v7a" emulator instead of "armeabi-v7a" library?
<p>To introduce my problem, I have an application using NDK compiled only for "armeabi-v7a" and "x86" ABIs. So compilation gives me:</p> <pre><code>Android NDK: WARNING: APP_PLATFORM android-17 is larger than android:minSdkVersion 10 in /home/**********/AndroidManifest.xml [armeabi-v7a] Gdbserver : [arm-linux-and...
2
1,737
Install4j - UndefinedVariableException for installer variable
<p>I know there has been a <a href="https://stackoverflow.com/questions/38605315/install4j-installer-variable-undefinedvariableexception">bug on this subject</a>, but it seems I'm still getting this error when the installer running on Linux environment (on windows it working fine). I'm using v6.1.6 [build: 6459]</p> <...
2
2,106
Vuetify Send data from form with Axios
<p>I am using Vuetify in my VueJs project and I need to send data from my form in which I am uploading a file (CSV) and got some number inputs. I need to do that with Axios. </p> <p>I've tried to do something but always got a 404.</p> <p>This is my Vuetify code:</p> <pre><code>&lt;v-form&gt; &lt;v-container&gt; ...
2
1,310
Center and stretch images vertically, center horizontally
<p>I want to scale images so that they are centered horizontally and vertically, and they are stretched vertically until they fill the whole screen vertically. There might be white borders.</p> <p>Images should maintain their aspect ratio. I added a picture of what I wanted to do. Images should adjust to the resolutio...
2
1,146
jasper reports and struts2
<p>This one may be a tricky one.</p> <p>Using jaspersoft studio I created a report : myreport.jrxml, it works very fine :</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- Created with Jaspersoft Studio version last--&gt; &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" x...
2
4,694
Call method not implemented runtime error, when creating VAE in Keras. Model Subclassing
<p>I'm running the VAE Keras code sample from here: <a href="https://keras.io/examples/generative/vae/" rel="nofollow noreferrer">https://keras.io/examples/generative/vae/</a> and it works OK. But when I modify it to use a validation_split = 0.2 in vae.fit() method I'm getting a runtime error: NotImplementedError: When...
2
1,809
how to get specific information from list in flutter
<p>I'm developing a flutter application composed by three screens , the first one is a list view widget were I can fetch the data from a list variable , something like this:</p> <p>here is the list view:</p> <pre><code> child: ListView.builder( padding: EdgeInsets.only( top: 10...
2
1,117
Creating a Custom Aggregate Function for Access Queries
<p>Most Common/Frequent/Dense Value</p> <p>I'd like to find (or create a custom) <strong>aggregate function</strong> for use in an MS Access query, that will return the <strong><em>most common value</em></strong> (ie, <em>"most frequently occurring item"</em>) when grouped by a different field. Below is one example o...
2
1,911
in tableview how dynamically changing section y position ios
<p><img src="https://i.stack.imgur.com/IyA8U.png" alt=""> <img src="https://i.stack.imgur.com/VjxpL.png" alt=""></p> <p>The Screen Shot I added here i have dynamic data in my sections. Each section have one row and have label and values in it . my problem is when i add or change count of values its sections 'y' mar...
2
2,252
How to display the tooltip content above the modal window?
<p>Below is the code which I wrote to display a tooltip content. As the modal window is smaller than the tool tip content I need to show the tooltip content above the modal window, instead of generating it inside. I tried using Z-index, but it didn't work as well. Can anyone help me with this issue? </p> <pre><code> ...
2
1,528
Paypal The response from IPN was: INVALID
<p>Im trying to sell in my website, and i'm new in paypal, i have read many tutorials and documentations but steel no result. So I have created Buy now button, as i understand in the past there was button with many of hidden inputs that have value of payment redirecting url ect. , but now when im creating button its ju...
2
1,617
Parsing multiple tables with BeautifulSoup
<p>I'm having problems parsing table data with BeautifulSoup, though I've tried many solutions found <a href="https://stackoverflow.com/questions/23377533/python-beautifulsoup-parsing-table">here</a>, <a href="https://stackoverflow.com/questions/28291700/python-beautifulsoup-parsing-multiple-tables-with-same-class-name...
2
2,727
Redraw D3 Pie Chart with new data when clicking button or enter search field
<p>My data is coming from an external API that uses JSON format. The data is coming correctly into the D3 chart.</p> <p>When searching an term (in this case a user) there is coming new data, but the Pie Chart needed to refresh or redraw with the new data (arrays) in the chart, which isn't working well I think.</p> <p...
2
1,691
How use OnPause() & OnResume() in Selected or Captured image in imageView
<p>can someone help me how use use OnPause() and OnResume() in this code . to save last Selected or Captured image in imageView so when user close program and come back again not need to set or take image again. <strong>XML File:</strong></p> <p> <pre><code> xmlns:tools="http://schemas.android.com/tools" ...
2
2,624
How to assign labels/score to data using machine learning
<p>I have a dataframe made by many rows which includes tweets. I would like to classify them using a machine learning technique (supervised or unsupervised). Since the dataset is unlabelled, I thought to select a few rows (50%) to label manually (+1 pos, -1 neg, 0 neutral), then using machine learning to assign labels ...
2
2,047
Oracle XMLType generation with null values from trigger to advanced queue
<p>Good Afternoon.</p> <p>I have been working with Oracle Advanced Queues to create a messaging system that we can use to determine when new lines are passed into the databse, when updates occur and when deletes occur.</p> <p>I am using a single consumer queue and using correlations to control what data is looked for...
2
1,272
Why does random extra code improve performance?
<pre><code>Struct Node { Node *N[SIZE]; int value; }; struct Trie { Node *root; Node* findNode(Key *key) { Node *C = &amp;root; char u; while (1) { u = key-&gt;next(); if (u &lt; 0) return C; // if (C-&gt;N[0] == C-&gt;N[0]); // this line will s...
2
1,659
JWT Auth config on Dingo Api Laravel 5.1.*
<p>I am using Laravel 5.1.33 with Dingo Api and JWT Auth, have installed all of these but now I am confused if I need to do more if I for example want to authenticate a user so the user is not able to access certain routes without being logged in first.</p> <p>I havethis code modified on api.php:</p> <pre><code> '...
2
1,140
foreach invalid argument and undefined variable
<p>I am trying to create a form and i get an error in these lines.</p> <pre><code> else { //report the errors. echo '&lt;h1&gt; Err... &lt;/h1&gt; &lt;p&gt; The following error(s) have occured&lt;/p&gt;'; foreach ($errors as $msg) { echo "--$msg&lt;br /&gt;\n"; } echo '&lt;/p&gt;&lt;p&gt;Please Tr...
2
1,585
Spring Exception: org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 8): Method call: Method retrieveRecords(java.util.Vector)
<p>I am using spring integration 2.2.1 with int-jpa: inbound-channel-adaptor. I am getting the exception</p> <p><strong>org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 8): Method call: Method retrieveRecords(java.util.Vector) cannot be found on foo.bar.ResponseProcessor type</strong></p> <p>wh...
2
2,370
How to loop through links in a web page to find all web pages that are a part of the website?
<p>I am trying to find all web pages that are a part of a website. For example with the input "www.microsoft.com", I want it to return a list that contains:</p> <ul> <li><p><a href="https://www.microsoft.com" rel="nofollow noreferrer">https://www.microsoft.com</a></p></li> <li><p><a href="https://support.microsoft.com...
2
1,632
Jquery when.apply().done waits for one ajax call, but not another?
<p>I have a .each function where each "each" amkes an ajax call. I need to wait for them all to finish before continuing to make yet another ajax call. I'm using the solution found <a href="https://stackoverflow.com/questions/9044468/wait-for-each-to-finish-given-each-has-ajax-calls">here</a>. The crazy thing is, Once ...
2
1,307
Issues with converting a jsf project to facelets 2.0
<p>I'm having an issue with converting a project from what I think is <strong>jsf 1.1 or 1.2, to jsf 2.0 using facelets</strong>. </p> <p>I've read many Q's on SO about how to do this and I'm still having issues. The problem i'm having is that the <strong>jsf tags are not being rendered as html tags</strong>. </p> <p...
2
8,633
What's the proper way to pass an array to a WMI Method?
<p>I'm writing a function in C# that queries WMI, uses the objects returned from WMI as parameters to a method in a different WMI class. </p> <pre><code>private void InstallUpdates() { ManagementScope sc = new ManagementScope(@"\\.\root\ccm\clientsdk"); ManagementClass c = new ManagementClass(@"CCM_SoftwareUpd...
2
1,944