title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Problems with smooks | <p>I am currently evaluating smooks (www.smooks.org). It looks just like what we need but I am having problems getting a simple example to work.</p>
<p>I've got an ant script which downloads me all the dependencies including the mapping and binding jars for EDIFACT messages.</p>
<p>I am trying to convert a simple EDI... | 1 | 2,535 |
prefill mat-autocomplete in angular 2 material 2 | <p>I am not able to set the value of the <code>mat-autocomplete</code> when I am trying to edit a record I am using the autocomplete as a <code>FormControl</code> object in a <code>FormBuilder</code> object and to set values received from the server I am using <code>Formbuilder.setValue()</code> method, but this does n... | 1 | 1,050 |
Swift: How to install SwiftyJson using cocoapods? | <p>I'm trying to install cocoapods here: <a href="https://github.com/SwiftyJSON/SwiftyJSON" rel="nofollow">https://github.com/SwiftyJSON/SwiftyJSON</a> but when I <code>import SwiftyJSON</code> in my view file, it says <code>No such module 'SwiftyJSON'</code></p>
<p>My Podfile:</p>
<pre><code>platform :ios, '8.0'
inh... | 1 | 1,064 |
ElasticSearch - score boosting using scripting | <p>We have a specific use-case for our ElasticSearch instance: we store documents which contain proper names, dates of birth, addresses, ID numbers, and other related info.</p>
<p>We use a name-matching plugin which overrides the default scoring of ES and assigns a relevancy score between 0 and 1 based on how closely... | 1 | 1,342 |
How to I get the ID of a Gsheet file by using its name in google apps script | <p>I am pulling my hair out. I have the following code and am stuck trying to figure out how to get the id of a gsheet file using its name. My goal is to look up a file by its name, then get the id, then grab a range from that file and output it into the active sheet</p>
<p><div class="snippet" data-lang="js" data-hid... | 1 | 1,839 |
NotSerializableException on SimpleListProperty | <p>I'm using Javafx, and I wrap my objects into ListProperty to let the tableview updates for any changes on the objects of the list. Now I'm trying to serialize my project and the ListProperty of objects and it throw me this exception. </p>
<pre><code>java.io.NotSerializableException: javafx.beans.property.SimpleList... | 1 | 1,888 |
Java game development. Making the monster move random in a maze | <p>I was writing a pacman styled game in which the monsters are assumed to move in a random direction in the maze. But I can't figure it out how to make them adapt the right direction they want. I was using some constants for the directions.</p>
<pre><code>public class Monster extends GObject {
private final int ... | 1 | 2,829 |
g++ not detected in VS Code | <p>I'm trying to compile c++ inside VS Code.
I have MinGW installed.
I've followed the steps in this video: <a href="https://www.youtube.com/watch?v=rFdJ68WbkdQ" rel="nofollow noreferrer">https://www.youtube.com/watch?v=rFdJ68WbkdQ</a></p>
<p>And the steps at the "getting started" docs <a href="https://code.visualstud... | 1 | 1,853 |
Can't get mongodb record by ObjectId in golang | <p>I'm try to get mongodb record by ObjectId by using following code, but keep getting <strong>not found</strong> by <code>err.Error()</code></p>
<p>Following is my mongo collection sample </p>
<pre><code>{ "_id" : ObjectId("5a2a75f777e864d018131a59"), "callDate" : "22/12/2017", "time" : "16.25", "callType" : "a", "p... | 1 | 1,607 |
asp.net Can't find controls added from code-behind in a div | <p>I'm trying to access Controls in div but I can't find them.</p>
<p>I got a div with some controls in it.</p>
<pre><code><div id="divChampsFiltrageProjetsTest" class="divChampsFiltrageProjetsTest" runat="server">
<span runat="server" style="color:black;"> Filtre 1 : </span>
<asp:DropDownLi... | 1 | 2,037 |
ASP.net MVC 4 and BootStrap _NavBar Style issue | <p>After changing my theme rrom default ASP.net MVC theme to BootStrap I got some styling issue in NavBar, <strong>Log off</strong> should be in same line with <strong>Hello, admin</strong>:
<img src="https://i.stack.imgur.com/cCdAC.png" alt="enter image description here"></p>
<p>This's my _NavBar.cshtml :</p>
<pre>... | 1 | 1,663 |
Map deserializing with Jackson in Java | <p>I have the following class</p>
<pre><code>public class BetWrapper {
private String description;
private Calendar startTime;
private HashMap<String, SimpleEntry<Integer, Double>> map;
public BetWrapper() {
map = new HashMap<>();
}
public Calendar getStartTime() {... | 1 | 1,036 |
spring boot : Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration | <p>I am developing <strong>Spring Boot</strong> example from the link: <a href="https://jaxenter.com/rest-api-spring-java-8-112289.html" rel="nofollow noreferrer">https://jaxenter.com/rest-api-spring-java-8-112289.html</a>. The pom.xml file has sqllite dependencies. <strong>I converted gradle project to maven project</... | 1 | 7,090 |
Multipart/mixed email attachments not showing up, but only in Windows 10 Mail | <p>Having a weird problem with emails I am sending out via Python <code>email</code> / <code>smtplib</code>.</p>
<p>I am attempting to compose an email with:</p>
<ul>
<li>Alternatives of plain-text and HTML message bodies</li>
<li>An image embedded inline in the HTML body</li>
<li>A separate non-inline attachment</li... | 1 | 1,328 |
How to add form data to a bootstrap modal in the same page by using jQuery? | <p>I have a requirement and trying to write code for Where user enters/selects some information in form then clicks on Submit button then a popup window(bootstrap modal) appears with just one single input box where user just types a name for that selection. What I am doing here is once user gives some information in fo... | 1 | 2,023 |
Deploying Flask app on EC2 for localhost access | <p>I have finished up a simple Flask app that I am trying to host on an AWS EC2 instance with Apache2. I've been following <a href="http://blog.garethdwyer.co.za/2013/07/getting-simple-flask-app-running-on.html" rel="nofollow">this tutorial</a>.</p>
<p>The only changes I've made from the development process (in which ... | 1 | 1,521 |
What to put at CALLBACK_URL in twitter using Oauth from my android application? | <p>I am developing an application of Twitter -Client. i got lots of hint form this site. i write some come that is </p>
<pre><code>import oauth.signpost.OAuthProvider;
import oauth.signpost.basic.DefaultOAuthProvider;
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
import twitter4j.Status;
import twitter4... | 1 | 1,738 |
How to insert more then one entry into database using Kohana ORM? | <p>I'm using Kohana 3.0 and my task is to insert data in the database. Problem is that I need to insert more then one entry in it (so... in raw SQL - more than one query). I have fields <code>project_id</code>, <code>amount</code> and <code>financiers</code> (this is an array) that comes from <code>$_POST</code>.</p>
... | 1 | 1,516 |
Missing "aud" claim in access token | <p>For unknown reason to me the "aud" claim is not present in access token (it is present in id token though).</p>
<p>Once access token is being sent to the API i get the following error:</p>
<blockquote>
<p>Bearer was not authenticated. Failure message: IDX10214: Audience
validation failed. Audiences: 'empty... | 1 | 1,037 |
React + Redux : reducer won't reload component | <p>I wrote a generic Table component, instancied twice with two differents datasets. I use a Redux store to hydrate props and I try to delete a row when I click on it.</p>
<p>Components are well displayed and onClick function is fired and reducer is called. The new returned state returns the previous state without the... | 1 | 2,518 |
UICollectionView isUserInteractionEnabled blocks cell interaction | <p>I have a <code>UICollectionView</code>, which has its cells, as normally.</p>
<p>Each cell has itself a <code>UICollectionViewController</code> within.</p>
<p>When I tap a cell, I expand it to fit the window screen, but I've encountered some problems here:</p>
<p>If I scroll within the expanded cell , the whole s... | 1 | 1,145 |
FlexSlider with direction RTL | <p>Hi I am using flexslider for RTL website,in this case no images appear and I <a href="https://stackoverflow.com/questions/12497255/flexslider-and-right-to-left-language-support">should set</a> <code>direction</code> to <code>"ltr"</code> for a div that holding slider, and it solves my problem but in this case it mak... | 1 | 2,224 |
Using XPath with HTML or XML fragment? | <p>I am new to Nokogiri and XPath, and I am trying to access all comments in a HTML or XML fragment.
The XPaths <code>.//comment()</code> and <code>//comment()</code> work when I am not using the <code>fragment</code> function, but they do not find anything with a fragment. With a tag instead of a comment, it works wit... | 1 | 1,088 |
How to use HashMap to get the data from child of child in Firebase in android? | <p>I'm beginner for the Firebase. Could I know how do I retrieve data from child to child from firebase by using HashMap? Could I know how to store ArrayList into HashMap? If I don't use ArrayList, could HashMap replace the ArrayList?</p>
<p>I want to do the function which let the user be able to add the car plate int... | 1 | 2,997 |
How to use different loggers without passing logger variable? (Python logging) | <p>I have multiple modules that use the same <code>utils.py</code> package. How do I make the logger in <code>utils.py</code> differ without having to pass the logger variable from the callers(i.e. ClassA or ClassB)?</p>
<p>Very simple sample codes are as following. In reality, I have a lot of functions and classes in... | 1 | 1,563 |
Setting new page size to existing PDF document using Java IText | <p>I want to set a new page size to my existing PDF document without cropping the contents. I am writing the following code but it just crops my PDF file from the bottom resulting in the loss of content.</p>
<p>The current size is 8.26" X 11.69 " and I need to make it 8.5" X 11". </p>
<p>My code only converts 11.59 t... | 1 | 2,115 |
Sending SOAP request using libcurl | <p>I could understand the examples of simple sendrecv for sending REST request using libcurl. Now i want to send a SOAP request using libcurl. I have changed the REST request code to achieve the same, but the code is not working. My code is:</p>
<pre><code>#include <stdio.h>
#include <string.h>
#include &l... | 1 | 1,620 |
Set .keyup() in a div | <p>I developing a system on <code>ASP.NET WebForm</code>. As it doesn't support multiple forms, I'm using these codes which is showing as 2 forms in interface, getting values by <code>id</code> and submitting values by <code>ajax</code>. But here I want to set 2 separate <code>.keyup()</code> functions for 2 virtual fo... | 1 | 1,579 |
Getting Bluetooth working in Ionic | <p>My first go with Ionic plugins. Got a PaypalHere pad machine I am trying to link up to my app, which uses Bluetooth. So will later need to enter a Mac address for that somewhere. But just need to get Bluetooth working first.</p>
<p>I have installed Bluetooth using "cordova plugin add cordova-plugin-bluetooth-serial... | 1 | 1,195 |
Recycler View not saving state of Views | <p>I am working on Recycler view in which I am using LinearLayout in adapter. When clicking on LinearLayout it is hiding View and similarly clicking again making it Visible. My problem is that Recycler view is not holding the state of Views, when I am scrolling it is again refreshing View again changing the state Views... | 1 | 2,413 |
update and print array element? | <p>You are given an array of N positive integers, A1, A2 ,…, AN. </p>
<p>Also, given a Q updates of form:- i j: Update Ai = j. 1 ≤ i ≤ N.</p>
<p>Perform all updates and after each such update report mode of the array. Therefore, return an array of Q elements, where ith element is mode of the array after ith update ha... | 1 | 1,212 |
Could not find method include() for arguments [:app] on root project 'myProject' | <p>I'm trying to create my first project in android studio, I'm on a mac, FYI. When I build settings.gradle, I get a failed build. <strong>Note:</strong> Please don't mark this as a duplicate, see below I have links to two other SO questions that didn't fix the problem.</p>
<p>My settings.gradle file contents:
<cod... | 1 | 5,696 |
IOSurfaces - Artefacts in video and unable to grab video surfaces | <p>This is a 2-part Question. I have the following code working which grabs the current display surface and creates a video out of the surfaces (everything happens in the background).</p>
<pre><code>for(int i=0;i<100;i++){
IOMobileFramebufferConnection connect;
kern_return_t result;
IOSurfac... | 1 | 1,572 |
java.lang.IllegalArgumentException: width and height must be > 0 | <p>I have an app on playstore that generates the following error on very few devices.</p>
<pre><code>java.lang.IllegalArgumentException: width and height must be &gt; 0
at android.graphics.Bitmap.createBitmap(Bitmap.java:829)
at android.graphics.Bitmap.createBitmap(Bitmap.java:808)
at android.graphics.... | 1 | 1,577 |
MongoDB: Aggregation of stock tick data | <p>I am using MongoDB to store my stock tick data. I have one document per stock symbol per minute:</p>
<pre><code>{
"_id" : ObjectId("535fb330f6a03d59077db43c"),
"symbol" : "AAPL",
"ts_minute" : ISODate("2014-04-29T14:12:00Z"),
"ticks" : [
{
"mu" : 115864,
"ae" : true,
"t" : 2,
"v"... | 1 | 1,196 |
FormatException: Cannot deserialize a 'Guid' from BsonType 'ObjectId' | <p>I have been going crazy this last days.</p>
<p>I'm trying to use string Guids as _id's in my MongoDb, with the latest version of the driver. I stumbled with this tutorial, which shed me some light...</p>
<p><a href="https://kevsoft.net/2020/06/25/storing-guids-as-strings-in-mongodb-with-csharp.html" rel="nofollow no... | 1 | 2,695 |
How to Add Date / Time from OData Service Correctly to UI? | <h2>Context</h2>
<p>I'm creating a little demo page that displays some straight forward functionality of UI5. This page consists of two main pages:</p>
<ul>
<li>On the first page, there's a list of carriers which can be created, deleted, and updated. These carriers have an ID (<code>Carrid</code>).</li>
<li>If one cl... | 1 | 1,970 |
Draw ARC Polyline in Google Map | <p><strong>How Can I Draw Arc Polyline in Google Map ?</strong></p>
<p>I already used <a href="https://stackoverflow.com/a/43665433">this</a> code to create <strong>curved</strong> Polyline.</p>
<p>Here is the <strong>method</strong> to draw curved Polyline:</p>
<pre><code>private void showCurvedPolyline (LatLng p1, La... | 1 | 1,534 |
Hibernate Query Language Problem | <p>Well, I have implemented a distinct query in hibernate. It returns me result. But, while casting the fields are getting interchanged. So, it generates casting error. What should be the solution?</p>
<p>As an example, I do have database, "ProjectAssignment" that has three fields, aid, pid & userName. I want all ... | 1 | 3,290 |
Android: Encrypt String, send via HTTPS and Decrypt String problem | <p>I have to Encrypt a String to send via HTTPS to a server. Then, on server side, I have to Decrypt the string and used it.</p>
<p>I used this code in both sides:</p>
<pre><code>public class SimpleCrypto {
public static String encrypt(String seed, String cleartext) throws Exception {
byte[] rawKey = getRawKey(... | 1 | 3,795 |
Page gets reloaded on form submit.Why? | <p>I have implemented a controlled Form using react hooks.
I have also added the event.preventDefault() call to the form submit handler.
But for some reason, the form submit always causes a page refresh even then.
I am not sure why.</p>
<p>I have checked other threads in StackOverflow and checking the answers, what I d... | 1 | 1,768 |
import featuretools and AttributeError: module 'tornado.platform.asyncio' has no attribute 'AnyThreadEventLoopPolicy' | <p>these are all the packages installed and the environment is Windows 7.1</p>
<pre><code># Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py36he6757f0_0
alabaster 0.7.10 py36hcd07829_0
anaconda 5.1.0 ... | 1 | 13,296 |
how to add a new table in existing database | <p>i m trying to add a new table in the database,but whenever i run my application,it give me an error tablename doesnot exist,how to add a table that have samoe fields and function to get the data from the user ,that he write in the activity's edittext.</p>
<pre><code> package com.example.smscampaign;
import j... | 1 | 5,561 |
How to select and click on a radio button in selenium web driver with java | <p>I have written a simple script of selenium web driver in java to select and click on a Radio button , but I am unable to select and click on the second radio button 'ONE WAY FLIGHT' on web page: <code>http://www.lot.com/pl/en</code></p>
<p>Here is my code:</p>
<pre><code>WebDriver driver = new FirefoxDriver();
Str... | 1 | 1,162 |
Drag And Drop Image to Canvas (FabricJS) | <p><strong><em>The Problem</em></strong> <br>
I want to do this with an image instead of a <code>canvas</code> object. Meaning you have to add the thing you want to add TO AND AS A PART of the canvas before you can add it. The images are actually part of the website so it doesn't need to do some intricate stuff. This c... | 1 | 3,371 |
Toolkit not initialized Java FX | <p>I am getting the follow error when I run a JavaFx application as "Run" only. Debug works fine...</p>
<pre><code>Exception in thread "main" java.lang.ExceptionInInitializerError
at Goose.Program.<clinit>(Program.java:26)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.ja... | 1 | 1,745 |
Maven surefire plugin Nothing to compile - all classes are up to date | <p><strong>When I ran clean test or
clean test -DsuiteFile=src/main/resources/testng/SmokeTestSuite.xml in eclipse
following is the output.No test running but Build is success.</strong>
I have been struggling for this for quite a few weeks.Would be great if someone can explain me what was the issue and a proper solu... | 1 | 2,840 |
Powershell: IIS, Microsoft.Web.Administration, Import-Module WebAdministration, PSSnapin WebAdministration | <p>I use VS2010, PowerShell v2.0, Windows Server 2008 R2 Standard for create deploy scripts ps1 for web applications (IIS 7).</p>
<p>I want manage IIS 7 (websites, appPools, virtualDirs, etc) programmatically using Powershell.</p>
<p>I'm confused about several ways for manage IIS using Powershell.</p>
<p>Which is re... | 1 | 1,186 |
mysqli::__construct() expects parameter 5 to be integer | <p>I am trying to upload my website to a web hosting but i need phpmyadmin so i went to phpmyadmin.co with the username, password and server then when i tried to add that to my php file it came up with this error </p>
<blockquote>
<p>mysqli::__construct() expects parameter 5 to be integer</p>
</blockquote>
<p>this ... | 1 | 1,749 |
Dependency Exception for String and lang class in Stuts 2 with Spring | <p>I am using Struts 2 and Spring 3. I can not inject the bean and getting <code>RunTimeException</code> on starting <code>struts2</code> filter . I am using the following jar files</p>
<blockquote>
<p>servlet-api-2.4.jar, struts2-spring-plugin-2.1.6.jar,
struts2-spring-plugin-2.1.6.jar,
org.springframework.bea... | 1 | 3,980 |
Multiple forms with AJAX on one page | <p>I am developing a list of submissions in the admin area of my website, which I can approve/disprove with a form, with an ID of the submission in a hidden input, and the select box with Approve/Reject in. When the select box is changed, the ajax submits the form, along with the hidden ID input, then the PHP script ed... | 1 | 1,738 |
objects.all() query not working | <p>I am trying to make a form for user creation through django. The user(henceforth developer) can choose from a list of supervisors to get himself registered. Problem is, I am not getting the list of all the supervisors from the query. When I use objects.get(), I receive an error that 2 objects were received. That mea... | 1 | 2,226 |
WordPress not showing images in all browsers | <p>A non-commercial website of mine, <a href="http://danijelaenjoriskoken.nl" rel="nofollow noreferrer">danijelaenjoriskoken.nl</a>, has a strange problem. </p>
<p>On many systems it shows perfectly all images. </p>
<p>But, several systems (about 25% of known systems) don't show the images, only a blank rectangle wit... | 1 | 3,448 |
React Native, accessing a single element from an array nested in state | <p>how can I access a single element from an array nested in a state like this</p>
<pre><code>state = {
modal: false,
post: [
{
key: "1",
title: "A Good Boi",
des: "He's a good boi and every one know it.",
image: require("../assets/dog.jpg... | 1 | 1,372 |
Close one JFrame before opening another JFrame | <p>I want to close completely one <code>JFrame</code> before opening another . </p>
<p>Consider the code :</p>
<pre><code>import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.InetAddress;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
/**
*
* ... | 1 | 1,907 |
CocoaPod spec: Unable to find other source ref for Model.xcdatamodeld | <p>I am trying to create a pod with CoreData model inside. I've followed the tips to use <code>resources</code> and <code>reserve_path</code>. But when I try to <code>lint</code> the spec with <code>pod lib lint</code> there is this weird error that I don't even understand:</p>
<pre><code>- ERROR | [iOS] unknown: Enco... | 1 | 1,223 |
Kendo UI Grid Datasource and REST API | <p>Using the Kendo UI Grid and Datasource, I'm connecting to a REST API. However there are a couple problems being reported:</p>
<blockquote>
<p>Unknown DataSource transport type 'json'. Verify that registration
scripts for this type are included after Kendo UI on the page.</p>
<p>kendo.all.js:6621 Uncaught T... | 1 | 1,315 |
CSS3 "Column-count" does not align top of columns (Wordpress, responsive) | <p>first of all, I found <a href="https://stackoverflow.com/questions/17050353/wordpress-css3-column-count">that Question here</a> but the answer won't quite fit in my case, which is why I ask a question, that may seem similar but isn't. If that makes sense somehow :-D</p>
<p>I'm creating a childtheme to the "responsi... | 1 | 1,280 |
glTexSubImage2D does not work correctly | <p>I've written a very simple OpenGL application. Its goal is to load a texture and draw it on a plane. If I use the function 'glTexSubImage2D' the plane is not textured and the function 'glGetError' returns the error '1281' (invalid value). However if I use the function 'glTexImage2D' my plane plane is textured correc... | 1 | 1,221 |
Get Android Notification To Appear As Banner | <p>I've looked fairly extensively across a wide range of terminology ("banner", "pop down", "notification type") and I can't seem to find clarity on what I 'think' is a very common issue. So if there is a very obvious solution I missed due to my lack of terminology please advice.</p>
<p><strong>The problem is this:</s... | 1 | 1,117 |
Changing focus to an element on click | <h1>Problem:</h1>
<p>I have a back to top arrow <code>.fa-caret-up</code> at the bottom of the page, looking to change the focus after the arrow is clicked to either the window or the logo <code>.logo</code> at the top left corner of the page. </p>
<h1>Where I'm At</h1>
<p>I see it <code>console.log("Does this work?... | 1 | 2,290 |
has_one nested attributes not saving | <p>I have two models Project and ProjectPipeline.</p>
<p>I want to create a Project form that also has fields from the ProjectPipeline model. I have created the form successfully but when I hit save the values aren't stored on the database. </p>
<p><strong>project.rb</strong></p>
<pre><code>class Project < Active... | 1 | 1,252 |
Using a Header to Filter Proxied Response Headers | <p>I have an upstream server that often sets Cookie(s) by returning the "Set-Cookie" response header.</p>
<p>I would like to have an nginx proxy in front of said upstream server:</p>
<pre><code>Browser => Nginx => Upstream
</code></pre>
<p>If the <code>Browser => Nginx</code> request had the header <code>X-... | 1 | 1,043 |
Unable to SSH to a docker container from docker host | <p>I have created a docker host on openstack and launched a container with it's port 22 mapped to a port on docker host. Followed this <a href="https://docs.docker.com/engine/examples/running_ssh_service/" rel="nofollow noreferrer">link</a>
Still i can't ssh from docker host to container. It gives this error:</p>
<pre... | 1 | 1,790 |
RESTful authentication for Java EE | <p>I've been spending some time evaluating the options available for restfully authenticating a user in a <strong>Java EE</strong> application. </p>
<p>So, please suggest if the options listed below are valid along with the statements about advantages or disadvantages. It might be I'm missing details which might make ... | 1 | 2,871 |
Send data to server and store in SQL Server using sockets | <p>I am trying to use socket programming for receiving some information from client side (for example: disk usage or something like that).</p>
<p>I am using async method for multiple clients and tried to write to SQL Server but I didn't store whole information to SQL Server. Communication stream over byte array between... | 1 | 3,155 |
griddata: QH6214 qhull input error: not enough points(2) to construct initial simplex | <p>I am trying to create an above-head view heat map of relatively sparse EEG data (27 electrodes). I convert x,y cartesian coordinates of the EEG electrodes to polar, and attempt to map them as such. Each x,y coordinate corresponds to a given value (if you want to know: Hurst exponent) to which I would like the color ... | 1 | 1,722 |
GrantPermissionRule leads to PermissionException | <p>I've tried today the new android testing support lib. I need the write external storage permission for my tests so I've created the following test with the new GrantPermissionRule. </p>
<p>ExternalDirTest.java</p>
<pre><code> @Rule
public GrantPermissionRule mRuntimePermissionRule = GrantPermissionRule.gra... | 1 | 1,134 |
Spinner (dropdown)item same size as Spinner | <p>can i make the size of my item and especially the dropdownitems the same size as the spinner? They are a little bit smaller at the moment. i want them to fill the whole Spinner.
Can anyone help me?</p>
<p>edit: </p>
<p>it looks like this:
<a href="http://image-upload.de/image/vjYswg/cbc92fd3e9.jpg" rel="nofollow">... | 1 | 2,321 |
"Access is Denied" on contentDocument in IE9 on same domain | <p><strong>Short/Generic Version:</strong></p>
<p>I'm working on an application that (unfortunately, for other reasons), sets <code>document.domain</code> at the top of every page to a substring of the "true" domain: for subdomains like <code>sub.app.local</code>, <code>document.domain = "app.local"</code>. I'm also c... | 1 | 2,916 |
BluetoothLE BluetoothAdapter﹕ startLeScan(): null | <p><strong>Bluetooth LE</strong> introduced with <code>Android 4.3</code>, therefore i am using two Android devices and my both devices <code>supports</code> API Version <strong>4.4.2</strong></p>
<p>Even, I already paired both the devices, but still not showing device in a List, see below screenshot</p>
<p><img src=... | 1 | 12,391 |
PHP decrypt not working using mcrypt_decrypt? | <p>Seems that <code>mcrypt_decrypt</code> <strong>can't proper decrypt my string</strong> (all works fine in <code>var_dump</code> except when decrypting - <code>load_decrypted</code> value is wrong). Any help would be appreciated.</p>
<pre><code>array
'salve_plain' => string 'a:1:{s:8:"modified";i:1321974656;}' ... | 1 | 1,161 |
How to use timer's OSTmrCreate to implement task scheduling with MicroC/OS II? | <p>I got 2 tasks in MicroC to simulate a moving vehicle: ControlTask and VehicleTask. Now my project should replace the context switch with a timer for more appropriate timing but I can't seem to get it done. The program now uses the statement <code>OSTimeDlyHMSM</code> to implement periods but instead soft timers shou... | 1 | 10,663 |
AttributeError: module 'tensorflow' has no attribute 'lite' in Keras model to Tensorflow Lite convertion - Python | <p>I have tried to convert following keras model into <strong>tflite</strong> for hosting in a mobile platform using the following code. I have installed tensorflow version=1.12 python version=3.6.7 keras version=2.2.4
When I have run this code, I have got following error.</p>
<p><strong>converter = tf.lite.TFLiteConv... | 1 | 1,158 |
Using jQuery TimePicker into a GridView with ASP.net TextBox control | <p>thank you in advance for your help.</p>
<p>I'm trying to use the TimePicker of jQuery on each one of the TextBox included in a GridView ASP.net. Each one of the TextBox generated by the GridView has a different ID and Name, but when I create the GridView Structure I can only assign the general TemplateField TextBox... | 1 | 2,627 |
Errors when trying "rails new" after a new install | <p>I'm just getting started downloading all my programs. I ran into an issue I didn't understand that was resolved using <a href="https://stackoverflow.com/questions/26183787/upgrading-to-ruby-2-1-3-on-mac-osx-10-9-5/26385504#26385504">this stackoverflow thread</a>. It worked perfectly. </p>
<p>I then followed the bas... | 1 | 3,170 |
check a radio button based on value retrieved from database | <p>I have radio buttons that want to check if value retrieved from database is 'Yes'.
on this same forum a same question is there but after trying that and still no success. also i can't comment there anything about my question because i don't have sufficient reputation.
link to the question same as mine is:
<a href="h... | 1 | 1,984 |
Fail to start a mono site with Apache2, 404 error with mod_mono | <p>My home system is an Ubuntu 13.4 (upgraded from 12.10) desktop system, where I do some development, mainly in PHP, and I have Apache installed and working fine.</p>
<p>I need to do some development in ASP.NET and I installed MonoDevelop, as well as an XSP server. From MonoDevelop I can launch XSP, which serves at ... | 1 | 1,189 |
dynamically adding two views one below other | <p>I want to add two views one after the other, I used this way but I am getting an error.
This is my XML.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
... | 1 | 1,070 |
asp.net mvc highchart linegraph json | <p>I'm trying to get the line-example at: <a href="http://www.highcharts.com/demo/line-basic/grid" rel="nofollow">http://www.highcharts.com/demo/line-basic/grid</a> working with a jsonresult, but can't figure out how to achieve this.</p>
<p>The controler code:</p>
<pre><code>public JsonResult GetLineData()
{
... | 1 | 1,807 |
Loop through XML and return element values | <p>Here is my XML doc:</p>
<pre class="lang-xml prettyprint-override"><code><FileScan>
<Sites>
<Site>
<Name>Joe</Name>
<Dir>\\webserver\ftp\Joe</Dir>
<Email>Joe@anycompany.com</Email>
<Subject>Hi Joe... | 1 | 1,067 |
No suitable method found for requestLocationUpdates | <p>This is my MainActivity.java:</p>
<pre><code>import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.location.Location;
import android.location.LocationManage... | 1 | 1,498 |
Why does the ipython magic function `%timeit -n1 code_block` execute `code_block` multiple times? | <p>I am trying to run a particular test multiple times in <code>ipython</code> using the
<code>%timeit</code> magic function. For demonstration purposes, I will just use <code>-n1</code> instead of
<code>-n3</code> here, and use a simple <code>print(1)</code> function. </p>
<p>The <code>%%timeit</code> and the <code>%... | 1 | 1,131 |
.NET XML Serialization error (There was an error reflecting type) | <p>Yes I know very generic title, but I'm going to explain now.</p>
<p>Given the class definition below, can someone explain why I would be getting this exception when I invoke the Serialize() method.</p>
<p>{"There was an error reflecting type 'FNM.MISMO_3_0.FOREIGN_OBJECT'."}</p>
<p>{"Type of choice identifier 'It... | 1 | 5,472 |
android javabinder failed binder transaction | <p>trying to get my first android widget and let me tell you moving from Visual Studio Pro to eclipse <strong>is not a smooth thing</strong>!
Anyway i run into the above error which gives me some trouble to solve. Ive searched for all possible duplicates and it seems that this error occurs when the app hits IPC size (... | 1 | 1,102 |
compiling static curl with static openssl 1.1.1a | <p>I have a C++ project that compiles and links to a static curl library (7.46.0).
I am upgrading the curl to support openssl 1.1.1a. Building curl 7.64.0 with static openssl using below command.</p>
<pre><code>nmake /f Makefile.vc mode=static MACHINE=x64 WITH_SSL=static ENABLE_SSPI=no ENABLE_WINSSL=no SSL_PATH=C:\op... | 1 | 8,320 |
how to delete a specific row in the html table and database | <p>I wrote a table in html which consists of 6 columns with 6th column as a delete button.The rows will gets updated dynamically.</p>
<p>Now my first question is how to delete a row when we click that rows delete button and even in the database also.</p>
<p>Second question is, there are check boxes with every row and... | 1 | 1,046 |
HOw to link table to @Html.ActionLink | <p>I have program in mvc which fetch data from controller and then display in view.It makes dynamic table with data in it. Inside it there is a link "SEE DETAILS", but instead of a single link i want to make whole table as a link like :</p>
<pre><code> @Html.ActionLink("SEE DETAILS", "AppDetail", new { @id = item.id, ... | 1 | 1,085 |
No 'Access-Control-Allow-Origin' header is present on the requested resource. The response had HTTP status code 405 | <p>im using <a href="https://www.google.com/recaptcha/intro/index.html" rel="nofollow">google recaptcha</a> to the default built in login of laravel 5 and im in the process of catching the captcha's validation response from the API (e.g. success: true|false). Below is the script i used to communicate with the googles r... | 1 | 1,598 |
Using serilog in a class library referenced by other projects | <p>I have a solution containing multiple .NET Core API and windows services. How can I integrate Serilog in such a way that I will not be required to make changes at several different places for adding a column or changing some property?</p>
<p>I'm thinking of adding Serilog in a common library and use that custom libr... | 1 | 1,305 |
Can't send a group message - Error 400 - Modify - BadRequest | <p>The user is online, inside the room, can listen but it cannot send any message.
Why?</p>
<p>I am using JAXL in PHP!</p>
<p>XML Message:</p>
<pre><code><presence xmlns="jabber:client" id="3">
<status>available!</status>
<show>dnd</show>
<priority>10</priority>
... | 1 | 3,795 |
Caffe module installation failed in Windows 10 | <p>I am very new to caffe. I was following this link:
<a href="http://adilmoujahid.com/posts/2016/06/introduction-deep-learning-python-caffe/" rel="nofollow noreferrer">http://adilmoujahid.com/posts/2016/06/introduction-deep-learning-python-caffe/</a></p>
<p>When I ran this command: <strong>python create_lmdb.py</stro... | 1 | 1,076 |
Destroying connection that could not be successfully matched : Error in jboss while connecting with Database | <p>Modified: I am using Jboss 7 server and oracle 10g for my web Application but when I starting the server application working properly but after 2 or 3 hours it is becoming slow.</p>
<p>I guessed like.
1. connection is not happening between database and jboss server properly so that it is not fetching data, so cause... | 1 | 2,268 |
Nginx & PHP-FPM - download size is limited to ~3MB | <p>I have a CSV Download, with Docker, Nginx and PHP-FPM, everything runs fine, until downloads
gets larger then 2-3 MB. The generated CSV files exists in the php container (in my tmp
directory /var/www/symfony/var/tmp/... and looks fine), but Nginx cant serve them.
Nginx error logs shows this</p>
<blockquote>
<p>... | 1 | 1,588 |
How to get original location of script used for SLURM job? | <p>I'm starting the SLURM job with script and script must work depending on it's location which is obtained inside of script itself with <code>SCRIPT_LOCATION=$(realpath $0)</code>. But SLURM copies script to <code>slurmd</code> folder and starts job from there and it screws up further actions.</p>
<p>Are there any op... | 1 | 1,634 |
Trying to Use MSBuild SonarQube and unable to make it work | <p>I have been using SonarQube for code analyzing at a basic level however now I would like to measure the code against FX-COP rules. Hence I am attempting to use MSBuild SonarQube scanner. I read the documentation thoroughly and have setup my project likewise however when I execute it gives me error.</p>
<p>Below is ... | 1 | 1,342 |
I've installed cudNN but error "Failed to get convolution algorithm' shows up | <p>So, I have a machine with a RTX 2060, and I want to run tensorflow on it. However, the error, Failed to get convolution algorithm, is showing up despite me installing cudNN on it.</p>
<p>I have Tensorflow-GPU 1.13.1 running on my Linux (Xubuntu 18.04) machine. I have followed the instructions on the site (which are... | 1 | 3,837 |
Thin + Nginx + Websockets configurations | Rails | <p>I have a Ruby on Rails 3.2 app with the websocket-rails gem, running in a thin webserver behind a nginx reverse proxy.</p>
<p>Except for the nginx reverse proxy, everything works just fine. By removing the nginx reverse proxy, the websocket communication works just fine. (both development and production). Using ngi... | 1 | 2,637 |
hadoop WordCount stuck at map 0% reduce 0% | <p>I'm a chinese student and a beginer on hadoop 2.7.1. I will appreciate you if you could solve my problem.
When I run hadoop WordCount example recently on pseudo-distributed, it is stuck at map 0% and reduce 0%.</p>
<p>The log of the job is like this:</p>
<pre><code>……
2017-05-14 16:32:55,939 INFO [main] or... | 1 | 5,917 |
Tomcat 8: SSL session ID not available | <p>I'm having a problem trying to migrate from Tomcat7 to Tomcat8. Things seems to work fine, but when I access my application it logs this Exception:</p>
<pre><code>09-Nov-2016 13:23:09.192 WARNING [https-openssl-nio-9443-exec-3] org.apache.coyote.AbstractProcessor.populateSslRequestAttributes Exception getting SSL a... | 1 | 1,662 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.