title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to optimize mysql query based on explain. (Type: ALL
<p>I run the following mysql query and see the type as ALL for the first query.</p> <pre><code> mysql&gt; EXPLAIN SELECT one.language_id as filter_id, one.language_name as filter_name, two.count as count FROM books_f9_languages one INNER JO...
1
1,618
Python Image Ideal High/Low pass filter in frequency domain
<p>I need to implement a Image Low/High pass filer in frequency domain for educational purposes in college. The algorithm I'm applying is:</p> <p>a) Perform the image centering transform on the original image<br> b) Perform the DFT transform<br> c) Alter the Fourier coefficients according to the required filtering<...
1
1,347
Pentaho Error - ConnectionServiceImpl.ERROR_0009 - Connection to database [null] failed
<p>I'm trying to setup pentaho connection with MySQL server(localhost). However, this error <strong>"ConnectionServiceImpl.ERROR_0009 - Connection to database [null] failed"</strong> appears when i try testing the connection. The information about server should be right. Information Picture: <img src="https://i.stack....
1
3,812
Run MapReduce Job from a web application
<p>With reference to similar questions: <a href="https://stackoverflow.com/questions/14011279/running-a-hadoop-job-from-another-java-program">Running a Hadoop Job From another Java Program</a> and <a href="https://stackoverflow.com/questions/9849776/calling-a-mapreduce-job-from-a-simple-java-program">Calling a mapredu...
1
1,841
div bigger than body tag
<p>I'm working on a little project and I am making an admin panel. I have a tiny problem with my markup. I am trying to divide my page into 2 columns: left - admin panel, right contains navigation bar and content itself. The problem is that my content is expanding too much and becomes bigger than the html tag and that'...
1
2,847
Send Email for New Row added using google script
<p>I am trying to send email notifications when a new row has been added in my google sheet. I have tried everything that has been recommended in other posts but I cannot get it to work. When i execute my script an email is sent for every row that is in the spreadsheet and the body of the message does not contain the ...
1
1,375
Tensorflow Object Detection Api M1 Macbook Conflict Error
<p>Machine: <strong>MacBook Air M1 2020</strong></p> <p>OS: <strong>macOs BigSur 11.4</strong></p> <p>Python version of venv: <strong>Python 3.8.6</strong></p> <p>Tensorflow version: <strong>ATF Apple Tensorflow 0.1a3</strong></p> <p>Pip version: <strong>21.2.4</strong></p> <p>I have installed Tensorflow from <a ...
1
3,259
Volley Error Message "null" in logcat
<p>I have made a post request to my friend's server. In my logcat I am getting volley error message as null and no response body or network response code. </p> <p>I have used the VolleySingleton pattern and made the right type of requests for my operation. Testing the app from postman, all seems to be working fine but...
1
1,482
jQuery/AJAX - Whole page keeps reloading
<p>I'm having trouble loading a particular part of a page. It's nothing too fancy. The idea is when a user clicks next/prev day/week/month then the dates would load accordingly which is being handled in the backend. But before so I need to do some formatting on the front end which is the following:</p> <pre><code>&lt;...
1
2,903
WCF - How to debug "The signature verification failed" messages
<p>I've created a WCF client that is calling a Spring Web Services 2.1.0 + Apache WSS4J 1.6.7 (WS-Sec 1.1) server and returning a response.</p> <p>WCF is complaining that the <strong>"Message security verification failed"</strong> with an <code>InnerException</code> of <strong>"The signature verification failed"</stro...
1
7,715
Spring Boot does not register HttpMessageConverter during test run
<p>I'm running a Spring Boot app and I've registered a new <code>HttpMessageConverter</code> called <code>CsvCompactVenueHttpMessageConverter</code>, here's the code for it:</p> <pre><code>@Component public class CsvCompactVenueHttpMessageConverter extends AbstractHttpMessageConverter&lt;Collection&lt;CompactVenue...
1
1,173
Kafka broker hangs for unknown reason
<p>I'm using a single node setup of Kafka 2.0.0 and experiencing weird hangs in specific times during its life-cycle.</p> <p>I have a consumer connected 24/7 and at some point it drops throwing these error messages:</p> <pre><code>2018/11/27 22:34:33 Consumer error: kafkaa:9094/1001: 1 request(s) timed out: disconnec...
1
1,624
Retrieving external .proto files for protoc with protobuf-maven-plugin
<p>Context: My team is working on making our suite of Java services containerized and dynamically scalable. To accomplish this, our plan is to use Envoy backed by etcd, with a custom-build <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/eds.proto.html#envoy-api-file-envoy-api-v2-eds-proto" rel="nofol...
1
4,054
Android app widget listview onclick listener
<p>I am new to android development. I am trying to make a widget for my app which will contain a listview, with each listview having 2 buttons apart from heading and content.</p> <p>I am trying to hide the corresponding element of the listitem in the app widget(on homescreen) when the button of that element is pressed...
1
1,338
display failed pods from kubectl output
<p>I want to write a wrapper on <code>kubectl</code> to display only failed pods which means it should only display items whose Ready column values are not the same (i.e <code>0/1, 0/2, 1/2, 2/3,</code> etc.)</p> <pre><code>$ kubectl get pods --all-namespaces NAMESPACE NAME ...
1
1,904
Preventing a Chrome extension's popup.html from opening itself
<p>I'm creating a Chrome extension that has a <code>background.html</code> file which requests information from an API once every minute. Once it receives the information, it messages <code>popup.html</code> with the JSON information with which popup uses to append new HTML elements onto the popup's body.</p> <p>The p...
1
1,976
How do you pass multiple parameters from the client through NodeJS to MongoDB?
<p>Scenario: I want to have a searchbox that takes well-formed MongoDB db.collection.find() parameters in the same form as the MongoDB console, and will display the result on the webpage. </p> <p>I have already the logic that works when it comes to a parameter, that I know. Eg. getting document by ID:</p> <pre><code>...
1
1,821
Calling PHP function using ajax not working
<p>I am calling a php function using ajax call but its not working. I have a table with some rows when I click on any column of a row it becomes editable with its value but when I edit the value and click on another column or enter the changed value is not displayed again. Actually I am doing an ajax call where I chang...
1
1,071
PHP: How to delete a cookie with onclick event from button
<p>I'm trying to create a sign out button with php. I might be going about this the completely wrong way, but anyhow I'm trying to delete a cookie on the click of a button.</p> <pre><code> &lt;?php function logOut() { setcookie('userDetails[username]',"", time()-1200); } if(isset($_COOKIE["userD...
1
1,201
How to get or set custom object as datacontext instance to custom control in wpf
<p>I've created a custom control that is styled and configures in its own XAML sheet. Databindings in this control uses a specific object (CProject class).</p> <p>Just to clarify, the control is a project frame, that has controls for settings and a canvas that will be the workspace for each/any project.</p> <p>The pr...
1
1,132
Cannot use jinja2 PackageLoader on Google App Engine
<p>I'm trying to use the PackageLoader jinja2 provides but I cannot get it to work.</p> <p>In my <code>app.yaml</code> I have the required libraries declared:</p> <pre><code>libraries: - name: jinja2 version: latest - name: setuptools version: latest </code></pre> <p>The smallest example I could create:</p> <pr...
1
1,194
Python requests module error, 'temporary failure in name resolution' in kivy Android app
<p>Built with buildozer using: Python 2.7.12 Kivy 1.10.0 Cython 0.25.2</p> <p>My app is a simple test app that continuously checks an API I created with AWS API-Gateway/lambda for a changes in a returned value and alerts me. </p> <p>The program runs fine with kivy on my ubuntu and mac desktops, I can hit the API no p...
1
1,718
Yii:Dynamic update ID for AJAX action on CGridView
<p>I'm using Yii 1.1 for implementing a master detail order-order-details grid So far I got his: <img src="https://i.stack.imgur.com/mwCow.jpg" alt="enter image description here"> - basicaly when I click on the detail icon (left icon) - it loads with ajax the detail grid with the oder details (I used a component for th...
1
1,195
react native navigator:Undefined is not an object(evaluating this.props.navigation.navigate)
<p>I'm not able to understand how to implement navigation in react-native. as per the <a href="https://facebook.github.io/react-native/docs/navigation.html" rel="nofollow noreferrer">doc</a> i have installed the plugin and integrated the code but it keeps giving the error</p> <p><strong>Undefined is not an object(eval...
1
3,014
How to manipulate routerLink when using app-sidebar-nav in coreUI?
<p>I am using CoreUI's <code>app-sidebar-nav</code> (link <a href="https://github.com/coreui/coreui-angular/tree/master/projects/coreui/angular/src/lib/sidebar" rel="nofollow noreferrer">here</a>) for redirecting to various parts of my application. However, the child route is appended to the current url instead of appe...
1
1,862
Oracle: Get data on all months, 0 if no data
<p>I have an Mview that brings data group by <code>idNumber</code> and <code>Month</code>. So I want to display 0 if there is no data for an specific month. This is my query:</p> <pre><code>select MonthName, myCost, myNumber from ( select MONTH mm, myCost, myNumber from myOracle_mv ) myTot...
1
1,083
How do I assign a drawable to ImageView
<p>I am working on adding halo into cyanogenmod 11. And for that I am using a method which gets the state of halo being active or not, and then assigns image to it accordingly.</p> <p>First, here's my code from latest try (I have made multiple attempts to do this task)-></p> <pre><code>protected void updateHalo() { /...
1
1,038
Trouble connecting Firefox WebDriver with Selenium in Python
<p>i'm running into an error in trying to start up the selenium firefox driver. it seems like others have hit snags at this step, and there is no readily available solution online, so hopefully this question will be broadly helpful. it seems like firefox is failing to establish an http server interface when initiated t...
1
2,339
RemoteViews for widget update exceeds max bitmap memory usage error
<p>I have a widget that parses xml feed and display its title and image.In this widget I am using a service that periodically changes the contents(ie, title and image).For this I am using timer class.When we run this widget, some contents are displayed without any problem but after sometime it force closes and shows an...
1
5,526
Spark Jobs crashing with ExitCodeException exitCode=15
<p>I am running a very long spark job which crashes with the following error</p> <pre><code>Application application_1456200816465_347125 failed 2 times due to AM Container for appattempt_1456200816465_347125_000002 exited with exitCode: 15 For more detailed output, check application tracking page:http://foo.com:8088/p...
1
1,074
can not resolve method get(int)
<p>After getting response from server i am storing points in my integer array and i am trying to add that array in my horizontal scrollview,but it gives me error in my loop,following is my code can anyone help?thanks advance</p> <p>Error near this line</p> <pre><code>tv.setText(points.get(i)); </code></pre> <p>JAVA<...
1
1,262
problem loading data in details jqGrid from master grid?
<p>When I am making a call first time it shows data in my details grid from master grid but when selecting other row its not populating the new data in the details grid..</p> <pre><code>jQuery("#list10").jqGrid({ sortable: true, url: '/cpsb/unprocessedOrders.do?method=getInitialUnprocessedList', datatype: ...
1
2,035
Error: Uncaught (in promise): navigation stack needs at least one root page
<p>Im having an issues to save a data. It says </p> <p>Runtime Error: Uncaught (in promise): navigation stack needs at least one root page</p> <p><strong>this is my app.component.ts</strong></p> <pre><code>import { Component, ViewChild } from '@angular/core'; import { Platform, NavController, MenuController } from '...
1
1,193
Terminate called after throwing an instance of std::exception
<p>I'm new to exceptions and I tried to improve a solution for question that one of my friend had in a job interview.</p> <p>My friend was asked to build a program which will get 2 arrays and find a number, which if we divide it by the members of the first array, we will get a matching leftover of the second array.</p...
1
1,177
Undefined symbols: "boost::system::generic_category()" Cmake and boost setup
<p>Let me setup the problem real quick. I have a library "serial" that depends on boost and it is setup in cmake and I have a Findserial.cmake that gets installed to help my second library "xbow_400" find it. This is all fine until I try to compile "test_xbow_400" that links to "xbow_400", at which point I get this li...
1
1,056
java.lang.StackOverflowError with Spring Boot Actuator & Tomcat
<p>I have a spring-boot application with spring-boot-starter-actuator enabled. If I deploy the war file into a tomcat container, I get a stack overflow when I hit unmapped uri.</p> <pre><code>2014-06-03 17:24:28,312 WARN [http-bio-8080-exec-3] o.s.web.servlet.PageNotFound - No mapping found for HTTP reque...
1
1,257
sklearn 0.17.1: ImportError: cannot import name inplace_column_scale
<p>My sklearn works well before, after installing and updating a couple of other packages, I cannot import any model from sklearn. </p> <p>The versions:</p> <blockquote> <p>Python 2.7.12<br> Anaconda 2.4.1 (x86_64)<br> sklearn: 0.17.1 (downgrade from 0.18) spicy: 0.18.1</p> </blockquote> <p>Measures I've tr...
1
1,289
Merging two WAVE files on Android (concatenate)
<p>I have been trying to merge two WAVE files on Android for quite some time now but really can't seem to get it working properly.</p> <p>Everything looks fine, the files are read, and written to the output file which is also readable at a later stage and has the file size I would expect to see.</p> <p>The problems o...
1
2,878
Indy TIdTCPServer TIdTCPClient data exchange
<p>I spent some time to write a simple application to exchange data between <code>TIdTCPServer</code> and <code>TIdTCPClient</code>. But now I'm stuck.<br> I can send data from <code>TIdTCPClient</code> to <code>TIdTCPServer</code> and can process this.<br> But have no idea and official documentation didn't give any cl...
1
1,962
Next.js Head - You have included the Google Maps JavaScript API multiple times on this page
<p>In order to use the <a href="https://github.com/hibiken/react-places-autocomplete" rel="nofollow noreferrer">react-places-autocomplete</a> lib, I implemented the gmaps script as stated in the doc but I get a &quot;You have included the Google Maps JavaScript API multiple times on this page.&quot; error when I go to ...
1
1,541
pandas: read_csv combined date-time columns as index into a dataframe
<p>I have a csv file which contains date and time stamps as two of the columns. I am using pandas <code>read_csv</code> to read the contents into a dataframe. My ultimate goal is to plot time series graphs from the data. </p> <pre><code>!head vmstat.csv wait_proc,sleep_proc,swapped_memory,free_memory,buffered_memory,c...
1
1,365
Web Service Connection Exception on starting ATG Server
<p>I am getting the following error when I start my ATG - JBOSS server. Please help me fix the issue.</p> <pre><code>ERROR [CDLS service] RemoteException testing binding ; nested exception is: java.net.ConnectException: Connection timed out: connect AxisFault faultCode: {http://schemas.xmlsoap.or...
1
2,366
Dropdown menu using Twitter Bootstrap (JS and Jquery) doesn't drop down--what is wrong?
<p>I'm a complete newbie to website development, so I'm following patterns given by other developers. I'm following this <a href="http://mifsud.me/adding-dropdown-login-form-bootstraps-navbar/" rel="nofollow noreferrer">site</a> tutorial on how to add in a dropdown menu. </p> <p>I found one question on stack overflow ...
1
1,517
HTTP method POST is not supported by this URL in WildFly
<p>I'm trying to build a Java web-app in Intellij, using Wildfly as Application server. In my web app, i'm trying to configure a module for restful webservices (with RestEasy library) but when I try to test my restful webservice (as post method), i receive the message "HTTP method POST is not supported by this URL". I ...
1
1,437
Kubernetes - "Mount Volume Failed" when trying to deploy
<p>I deployed my first container, I got info:</p> <pre><code>deployment.apps/frontarena-ads-deployment created </code></pre> <p>but then I saw my container creation is stuck in Waiting status. Then I saw the logs using <code>kubectl describe pod frontarena-ads-deployment-5b475667dd-gzmlp</code> and saw MountVolume erro...
1
1,147
Destruction of Native Objects with Static Storage Duration
<p><strong>2012-12-09 Summary:</strong></p> <ul> <li>In a normal mixed-mode application global native C++ destructors run as finalizers. It's not possible to change that behavior or the associated timeout.</li> <li>A mixed-mode assembly DLL runs C++ constructors/destructors during DLL load/unload - exactly as a native...
1
4,427
OPcache interned strings buffer size lower than "opcache.interned_strings_buffer"
<p>I recognised that the interned strings buffer size, reported by <code>opcache_get_status()</code> is always smaller than the assigned value of <code>opcache.interned_strings_buffer</code>, returned also by <code>opcache_get_configuration()</code>. Using the following small script for comparison:</p> <pre class="lang...
1
1,090
How to get a full screen notification from FCM?
<p>I am building a home automation project that has a fire sensor that will write to Firebase Database if there is a fire detected, then from that point I need to make an alarm for the user. I managed to trigger a notification from Firebase cloud functions, but that's not exactly what I want. What I want is to make a f...
1
5,251
Stopping Exoplayer onSwipe of ViewPager
<p>I am using a <code>ViewPager</code> with single fragment instance in which I am showing <code>Media</code> files like Images, Videos, Audio. </p> <p>I have implemented <code>ExoPlayer</code> for handling <code>Video</code> &amp; <code>Audio</code> files. And <code>Glide</code> for images. </p> <p>To avoid the memo...
1
1,476
How do I convert a tensorflow model into a TensorRT optimized model using trt.TrtGraphConverterV2 (or other suggestion)?
<p>I am stuck with a problem regarding TensorRT and Tensorflow. I am using a NVIDIA jetson nano and I try to convert simple Tensorflow models into TensorRT optimized models. I am using tensorflow 2.1.0 and python 3.6.9. I try to use utilize t.his code sample from the <a href="https://docs.nvidia.com/deeplearning/framew...
1
7,372
.AddOpenIdConnect() Middleware Clarification
<p>So, I'm trying to implement an OIDC client application using ASP.NET Core 3.1. I am trying to leverage the <code>.AddOpenIdConnect()</code> and <code>.AddJswtBearer()</code> middleware. However, I need some clarification on what this middleware is doing.</p> <p>Here is what I currently have for the middleware config...
1
1,240
can't get progressdialog to show with async await method
<p>I'm trying to have a progress dialog show while the app is saving to the database. I'd like to do it using the async await keywords but I can't get the progress dialog to show. Do I have to add some run on ui thread syntax to this? What's the easiest most succint way to add progress dialogs to async methods on my...
1
1,160
How Spring Security's custom login works
<p>I'm trying to get through Spring Security. I have to implement a custom login form, so I need to understand very well what my configurations mean.</p> <p><strong>spring-security.xml</strong></p> <pre><code>&lt;beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springfram...
1
1,437
No module named deploy when trying to start pyramid app with mod_wsgi
<p>trying to use mod_wsgi for the first time for my pyramid app, but I keep getting an <code>ImportError: No module named deploy</code> when I try to access the site</p> <p>in my <code>/etc/apache2/sites-available/domain.com</code></p> <pre><code>&lt;VirtualHost *:80&gt; ServerName domain.com ServerAlias ww...
1
2,329
Exception with Struts 2.3.15.2 org.apache.struts2.tiles.StrutsTilesListener
<p>I upgraded from Struts <strong>2.0.8</strong> to <strong>2.3.15.2</strong><br/></p> <p>Am getting below error when starting my apache tomcat server.</p> <p><strong>Exception sending context initialized event to listener instance of class org.apache.struts2.tiles.StrutsTilesListener</strong></p> <pre><code>**INFO:...
1
2,948
persisting filters in grid panel
<p>I would like to persist filters applied on gridpanel on page refresh. Can you please guide me in doing this.</p> <p>Thanks.</p> <hr> <p>Here is the code which send the filter data to webservice</p> <pre><code> Ext.extend(Ext.ux.AspWebServiceProxy, Ext.data.DataProxy, { load: function(params, reader, ca...
1
1,293
Find TOP 10 latest record for each BUYER_ID for yesterday's date
<p>This is the below table</p> <pre><code>CREATE TABLE IF NOT EXISTS TestingTable1 ( BUYER_ID BIGINT, ITEM_ID BIGINT, CREATED_TIME STRING ) </code></pre> <p>And this is the below data in the above table-</p> <pre><code>BUYER_ID | ITEM_ID | CREATED_TIME ------------+------------------+--------------...
1
2,691
Uncaught Error: Template parse errors: Can't bind to 'ngModel' since it isn't a known property of 'input'
<p>I'm using Angular 4.2.4 and I am getting an error in the console :</p> <pre><code>Uncaught Error: Template parse errors: Can't bind to 'ngModel' since it isn't a known property of 'input'. </code></pre> <p>while I include FormsModule in file app.module.ts like as </p> <pre><code>import { FormsModule,ReactiveForms...
1
1,399
Plotly and cufflinks not working in Anaconda
<p>I have been doing a course on data science and machine learning and in one of the lesson, it asked me to download and use plotly and cufflinks. I downloaded and installed them successfully, I have imported them successfully as well. But while trying to use them using iplot, it's giving me an error. Below I have atta...
1
4,632
how to clear the session and token of facebook id,so as to login again
<p>im my application,i can login to facebook and get the data,but when i click on logout,and then click on login again,it toast the message already login,but i want after logout,on login it again ask the login id and password,as all login requires.in on destroy i tried to clear the session,but it shows an error null ex...
1
4,772
How to use Ecto's has_many and cast_assoc
<p>I'm new to Elixir and Ecto and I would need some help with Ecto's has_many and cast_assoc. Can't understand the basics, like how am I to create a new model with assoc one.</p> <p>Here's my Has_Model:</p> <pre><code>defmodule Example.Has_Model do use Ecto.Schema import Ecto.Changeset alias Example.Repo alia...
1
1,056
java.lang.ClassNotFoundException: org.jsoup.nodes.Document using Maven
<p>I'm using maven to manage my project.</p> <p>This is my main file:</p> <pre><code>package com.sample; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; /** * Hello world! * */ public class App { public static void main(String[] args ) { try { /* String html = "&lt;html...
1
1,970
Unable to Compile Groovy Enum
<p>I'm new to Groovy and Java. I'm trying to compile an enum so I can use it in multiple other Groovy scripts. </p> <p>Here's the enum:</p> <pre><code>package branchformatter enum ColorSequence { COLUMNS, WHEEL } </code></pre> <p>When I try to compile it with groovyc it seems to compile without error but ...
1
14,397
Is it possible multiple filters in one collection view source wpf
<p>I know one filter in one collection view source but when i use multiple filters in one collection source.Last filter only properly works.Please help me to do multiple filters in one collection view source.</p> <p>Xaml</p> <pre><code> &lt;Grid&gt; &lt;DockPanel&gt; &lt;DockPanel DockPanel.Dock=...
1
1,604
Crash after adding footer to ListView
<p>I'm trying to add footer to <code>ListView</code> but application crashes after this line of code: <code>getListView().addView(footerView);</code>. I'm new to android and this is my first experience with <code>ListView</code>.</p> <p>If is possible I need short explanation of inflate method.</p> <p>Thanks!</p> <p...
1
2,783
BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/.../DataConfiguration.class]:
<p>I had a project that was working. I added nearly 2 hundred entities, now I'm getting "Error creating bean with name 'entityManagerFactory'". I didn't intentionally change anything else.</p> <p>I'm using Java-style confinguration.</p> <p>I'm getting the following:</p> <pre><code>org.springframework.beans.factory.B...
1
3,610
Problem reading request body in servlet
<p>I'am writing a HTTP proxy that is part of a test/verification system. The proxy filters all requests coming from the client device and directs them towards various systems under test.</p> <p>The proxy is implemented as a servlet where each request is forwarded to the target system, it handles both GET and POST. Som...
1
1,037
POSTMAN - Schema validation is passed even for bad response data
<p>tests["Valid schema"] = tv4.validate(jsonData, schema); is passed even if "error" and "responseType" is missing in the schema. How to make sure that response and schema both are matching for JSON schema.</p> <p>when I hit post request on postman, the following is the Response Body in postman</p> <pre><code>{ "...
1
1,290
org.xml.sax.SAXParseException: Content is not allowed in prolog Problems
<p>I'm trying to work with jasperreports and I have the next mistake when I try to run an application I'm developing:</p> <pre><code> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. at es.uniway.principal.EnviarInfoPedido.infoPedido_Mayorista(EnviarInfoPedido...
1
1,942
How to hook page_attributes_meta_box to change displaying "Parent" option?
<p>At WP Admin panel there are "Attributes" metabox with "Parent" dropdown list. I need to change sort parameters and show only parent posts. I may do it if I change native WP file <strong>meta-boxes.php</strong> line <strong>621</strong>. Following code:</p> <pre><code>$dropdown_args = array( 'post_type' =...
1
1,137
How to convert Graphics to bitmap and save it in c#?
<p>currently I am learning to draw barcode using graphics method and dispose it as bitmap. But when I going to save it, although it cans save successfully, but the result is black image, nothing can be seen from that. What is the problem going on?</p> <pre><code> private void buttonDraw_Click(object sender, EventAr...
1
1,158
Having trouble in finding out what ArrayIndexOutOfBoundsException: 6 > 1 means? when sorting jtable
<p>i am having trouble finding out problem in my jtable sorting mechanism ,when ever i implement sorting inside the search code it gives me array index out of bounds , the populate table code works fine at intial stage but after the search happens it is also stuck. </p> <p>My application has a text field area which ac...
1
9,100
Implement ChangeNotifier vs StateNotifier
<p>I'm quite familiar with <a href="https://pub.dev/packages/provider" rel="noreferrer">Provider</a> package and combine it with the <code>ChangeNotifier</code>.</p> <p>Let's say I have 3 getters and method with a different function :</p> <ol> <li>Toggle Loading</li> <li>Toggle Image Loading</li> <li>Toggle ObsecurePas...
1
1,098
Implementing multi selection in Android RecyclerView
<p>I need some help with Multi/Single selection. Found what I was looking for <a href="https://stackoverflow.com/a/40551984/5482999">here</a>, because of its simplicity. I'm using a <code>GridLayoutManager</code> I have over 90 items in my adapter, a <code>CardView</code> with a <code>TextView</code> and an <code>Image...
1
1,414
How to pass form data via controller with Spring MVC 3.1 - new to Spring MVC
<p>I'm new to spring, as well as spring mvc. I'm using version 3.1. Also, for now, I'm using Tomcat 7 and MySQL 5.5. I have data in a database table which I can display on a web page. Now, I'm trying to add data to my database from a web form, and then display that data on a web page. </p> <p><strong>Here is part of m...
1
1,212
ArtifactNotFoundException: Could not find artifact maven-resources-plugin:jar:2.6 in Nexus Repo
<p>I am getting the following exception. I'm using intellij 2017, Ultimate version, Nexus OSS version 3, Maven, &amp; Spring Boot. In previous project I was using Gradle, it seemed to work well, but the moment I try tutorial-based Spring-Boot project in maven, then i'm stuck with such an exception. I am failing to unde...
1
12,782
Leverage browser caching, .htaccess configured correctly, still resources not getting an expire time
<p>I have a problem for days now with my wordpress site. I am using W3 Total Cache plugin for caching and everything is working perfectly except the browser caching. I have checked the .htaccess file and it seems configured correctly, still tests on my site show that a leverage browser caching problem, as most of the r...
1
3,620
IOS:How to pass a value from one class to another class in ios
<p>I am new to IOS. My first class is ViewController.I want to pass user_id from this class to snsViewController class. But i am getting null values when i am using @property. </p> <p>I m writing this code in snsViewController.m</p> <pre><code> ViewController *objViewController=[[ViewController alloc]initWithNibNam...
1
1,567
getDeclaredConstructors0(boolean)- line not available during tomcat startup in debug mode
<p>I have some trouble with my spring managed tomcat application. There is a UserDao that is responsible for some User database operations. If I start the tomcat I get this message:</p> <pre><code>Thread [pool-2-thread-1] (Class load: UserDao) Class&lt;T&gt;.getDeclaredConstructors0(boolean) line: not available [nat...
1
1,905
Goroutines and Mysql max connections
<p>When I run functions in parallel that make use of mysql driver(Gorm), I find that when I set the following: db.DB().SetMaxOpenConns(30) db.DB().SetMaxIdleConns(10)</p> <p>I get a clean output without any panics/error messages.</p> <p>My database server variable for max_connection is set 100. I find if I ...
1
2,309
Saving directory paths in JSON?
<p>I have an application that displays a treeview of a folders, with the format below:</p> <pre><code>- Main Folder - SubFolder - SubFolder - SubFolder - SubFolder </code></pre> <p>Questions: 1) <code>How do I search for all the folders (not files) and add them to a List called syncDirectories</co...
1
1,671
Rotating image preview with ReactJS
<p>I'm trying to rotate a preview of an image with ReactJS. So I'm first allowing an upload function that renders the preview, and then before the user hits upload I want them to have the option to rotate the image to their liking. This is what I'm using to preview the image:</p> <pre><code>class ImageUpload extends R...
1
1,161
Update data in the table using XML string
<p>I have table which contains columns like </p> <ul> <li><code>SiteID (identity_Col)</code></li> <li><code>SiteName</code></li> <li><code>POrderID</code></li> <li><code>Location</code></li> <li><code>Address</code></li> <li><code>Cluster</code></li> <li><code>VenderName</code> </li> </ul> <p>I want to use xml string...
1
1,433
Python SSL wrap_socket failed with SSLError, Errno 336265218
<p>I have simple client/server SSL code which worked fine on Python 3.2. However, I decided to switch over to 2.7 (due to abundance of third party modules), and now the code is failing. The code is as follows:</p> <p>Client:</p> <pre><code>def connect(self): self.sock = socket.socket(socket.AF_INET, socket.SOCK_S...
1
1,169
bootstrap 3 responsive grid break with images
<p>Probably I'm missing something or have misinterpreted <em>BS</em> documentation, the html below works as expected if I use text instead of images, as I place the images it breaks on <em>xs</em> and <em>sm</em>.</p> <p>By expected I mean: 1 row 8 columns on >= <em>md</em>, 2 rows 4 columns on <em>sm</em>, 4 rows 2 c...
1
1,198
How can I get, the ListViewControl on GridViewColumnHeader Click Event
<p>I have 7 different ListViews.</p> <p>There is a Sortmethod called <code>SortClick(object sender, RoutedEventArgs e)</code> - when clicking on a GridViewColumnHeader, it raises the SortClick Event.</p> <p>But in this method I must tell, which ListView should be Sorted, b.e</p> <pre><code>listview2.SortNow(); </cod...
1
1,419
Linq, emulating joins, and the Include method
<p>I'm looking into an issue that is related to... <a href="https://stackoverflow.com/questions/416847/join-and-include-in-entity-framework">Join and Include in Entity Framework</a></p> <p>Basically the following query returns the list of "Property" objects the current user has permissions ( ACLs ) to view.</p> <pre>...
1
1,476
Terraform The system cannot find the path specified
<blockquote> <p><strong>What specific configuration or syntax changes must be made in order to resolve the <code>The system cannot find the path specified.</code> error that terraform is throwing when it tries to load a provider from a local mirror?</strong></p> </blockquote> <p><strong>THE PROBLEM</strong></p> <p>A lo...
1
2,046
Saving a files in React-Native using react-native-fs
<p>After writing data to a file using react-native-fs where does the file go? </p> <p>I am able to write the file and view it when i am testing in my local machine using <code>ExternalStorageDirectoryPath</code> in android But when i push my app to play store I am unable to perform the write operation. Same thing is ...
1
1,079
Searching through NSMutableArray of objects with NSPredicate
<p><strong>The question is solved, here is how I fixed it for future reference for noobs like me</strong> I needed to remove the white-spaces: <code> ship.countryOfbuild = [[elements objectAtIndex:0] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];</code></p> <p>And I had to c...
1
1,320
React Router - Problems to render components. white screen
<p>I'm working in a dashboard with react a react-router-dom. I have a structure that is the Auth pages and dashboard pages. When I navigate from login to mainPages and try to select a navlink in the DashboardContainer show me a white screen. </p> <pre><code>const MainContainer = ()=&gt;{ return( &lt;Brows...
1
1,288
Spring Boot @Transaction not rolling back on RuntimeException
<p>I have a spring boot application that is using spring-boot-starter-jdbc, Java 8 and MySQL with InnoD. The application isn't rolling back Runtime Exceptions, even when I do this:</p> <pre><code>throw new RuntimeException("Rolling back"); </code></pre> <p>I am configuring my Transactions like this:</p> <pre><code>@...
1
1,128
Convert excel workbook to memory stream/byte array to download
<p>I've created an excel workbook. Can I convert this excel workbook directly to memory stream or byte array to pass it through HTTP? I don't want to save the excel workbook. I need to download this excel file via angular js. I'm using Web API 2</p> <pre><code> using Excel = Microsoft.Office.Interop.Excel; priv...
1
1,199
Digital signature in C#
<p>So I have a server and a clients. And I have a task/problem with security. Conversation between server and client: Client : Give me config file, Server! Server : Sending config file with digital signature Client : Receive data</p> <p>So, What approach should I choose?</p> <ol> <li>Generate private and public keys(...
1
1,161
'No installed provider supports this key: sun.security.provider.DSAPublicKeyImpl' while using RSA encryption
<p>I'm trying to encrypt a text file using a key I generated. Now I should encrypt this key with RSA algorithm, using the public key of the side that eventually will receive the encrypted data.</p> <p>This is my code so far:</p> <pre><code>package cryptogaphy; import java.io.FileInputStream; import java.io.FileOutp...
1
1,475
JavaScript: How to recreate "Animate Your Name" lesson from Codecademy?
<p>The Codecademy website has a lesson where the user can <a href="http://www.codecademy.com/goals/animate-your-name" rel="nofollow">learn to <strong>create an animated name</strong> on a canvas element using JavaScript</a>. I've been trying to recreate the result for months, but nothing I've tried has gotten me anywhe...
1
1,195
Transfer a mousewheel/scroll event from one div to another
<p>I would like to know <strong>if it's possible</strong> and <strong>how</strong> to transfer a mousewheel/scroll event (scroll attempt by a user) from the <code>header</code> to the <code>container</code>.</p> <p>I have the following example situations:</p> <pre><code>+------------+ +------------+| | header ...
1
1,139
EditText.SetText() changes my softkeyboard input type in a custom adapter
<p>I am using a custom base adapter to implement a customListView. The listView class (extends ListView) is used within a flipper flipper.addView(mListView) in the main activity.</p> <p>The list View has 3 types of rows. The 1 st in the list is a row with spinner, the next 2 are rows with edittext where text is inpute...
1
2,085
GcmListenerService.onMessageReceived not called
<p>I am trying to get a msg to my app from a server. I have this server url wich sends msg to all users: <a href="https://taub-prayer-ramym.c9.io/send?message=123" rel="nofollow">https://taub-prayer-ramym.c9.io/send?message=123</a></p> <p>my app's token is registered in the server... but I have a problem that the onMe...
1
1,816
select2 - combining getting remote data with muliple select and pre data
<p>Hi I am looking to use select 2 and what I have seen so far it looks good. I am trying to do one thing though.</p> <p>I am looking to get my data with an ajax call to a json file - there is an example on their website on how to do this but I am trying to have a prepopulates list.</p> <p>What I mean by this is when...
1
1,279