title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to check whether a user has signed-in Google+?
<p>I am writing an app which requires user login.</p> <p>I would like to implement it by Google+ and have followed the following articles to set-up my login activity <code>LoginActivity</code>:</p> <ul> <li><a href="https://developers.google.com/+/mobile/android/getting-started">Getting Started with the Google+ Platf...
1
4,978
Python: Logging all of a class' methods without decorating each one
<p>I want to log every method call in some classes. I could have done</p> <pre><code>class Class1(object): @log def method1(self, *args): ... @log def method2(self, *args): ... </code></pre> <p>But I have a lot of methods in every class, and I don't want to decorate every one separatel...
1
1,693
How to connect Android Studio to Network and then to MS SQL?
<p>lately i've been trying to develop a app in Android Studio that it should print results in my emulador, but since i'm a beginner in this field(Java/Android) i searched a lot and i discover that the difference between my code and the others code has been that i'm trying to connect directly from my Android App to SQL,...
1
1,201
Returning std::pair versus passing by non-const reference
<p>Why is returning a <code>std::pair</code> or <code>boost::tuple</code> so much less efficient than returning by reference? In real codes that I've tested, setting data by non-const reference rather than by <code>std::pair</code> in an inner kernel can speed up the code by 20%.</p> <p>As an experiment, I looked at t...
1
1,244
Fragment.isVisible() returns false even when Fragment added and visible
<p>I am perplexed by how Fragment.isVisible() is supposed to work. Even though I have a fragment added in <code>Activity.create()</code>, <code>Fragment.isVisible()</code> returns false even when <code>FragmentManager.commitNow()</code> is used. </p> <p><code>Fragment.isVisible()</code> returns false even in <code>onR...
1
1,318
yocto d.getVar fails
<p>Learning Yocto from <a href="http://book.yoctoprojectbook.com/index" rel="nofollow noreferrer">http://book.yoctoprojectbook.com/index</a>. Chapter 4 has the following code </p> <pre><code>SUMMARY = "Recipe to build the 'nano' editor" PN = "nano" PV = "2.2.6" SITE = "http://www.nano-editor.org/dist" PV_MAJOR = "${...
1
1,434
Sorting an HTML list ascending and descending, with jQuery
<p>I have a "numbered" list of names. I want to sort it alphabetically at the click of a button, but only <em>after choosing a sort criteria</em> from a drop-down list (select).</p> <p>The problem is that, if i sort the items ascending and then descending, the descending sorted items are placed <em>after</em> the asce...
1
1,174
amchart generating a pie chart, need different colors and labels to be set inside the slices
<p>I am using amcharts, for generating a pie chart with the label inside. I tried many attempts but it didn't come properly. Here is my <a href="http://jsfiddle.net/w0rd2cs3/15/" rel="nofollow noreferrer" >fiddle</a></p> <pre><code> AmCharts.makeChart("chart4", { "type": "pie", "theme": "light", ...
1
1,644
How to write Elasticsearch multiple must scripts query?
<p>I want to use a query to compare multiple fields. I have field 1 to 4. I want to search data which field 1 is greater than field 2 and below query is work perfectly;</p> <pre><code>{ "size": 0, "_source": [ "field1", "field2", "field3", "field4" ], "sort": [], "qu...
1
1,384
Delphi programs blocked by antivirus programs
<p>I have a piece of code that is trying to write to disk many files in one second. However, it fails wince I have installed Kaspersky Anrivirus 2011. </p> <pre><code>Stream:= TFileStream.Create(sName, fmCreate); </code></pre> <p>The code totally worked with Kaspersky 2010 and also works with Kaspersky 2011 if I dis...
1
1,318
Retrieve Node Value from XML in XMLTable (Oracle 11gR2)
<p>hope this is something simple and I am just missing it, but consider this example:</p> <pre><code>with et as( SELECT xmlType('&lt;Invoice&gt; &lt;InvoiceInformation&gt; &lt;Number&gt;123456&lt;/Number&gt; &lt;/InvoiceInformation&gt; &lt;InvoiceLines&gt; &lt;InvoiceLine&g...
1
2,871
.setPreviewDisplay(holder) throwing null pointer exception
<p>I am developing a custom camera application.Given below is my Activity class.</p> <pre><code>public class MyCustomCam extends Activity { private Camera mCamera; private CameraPreview mPreview; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super...
1
1,759
Winsock accept() returning WSAENOTSOCK (code 10038)
<p>hope you're having a good day. Another socket issue, another day :)</p> <p>I finally got MicroSoft Visual C++ (MSVC++) IDE installed, plus the Platform SDK, so I can compile winsock applications.</p> <p>Missed a chunk of stuff here. In the ServerSocket::accept() function, it creates a new instance of ClientSocket ...
1
1,705
SnakeYaml "Unable to find property error"
<p>Here is part of my config.yml:</p> <pre><code>#Authenctication AuthenticationConfig: AuthencticationType: LDAP LDAPConfig: LDAPUrl: ldap://localhost:389 ConnectionType: simple LDAPSecurityConfig: RootDN: cn=manager,dc=maxcrc,dc=com RootPassword: secret UserSearchDN: ou=Peo...
1
1,368
WPF: Change the RotateTransform center before angle animation
<p>I want to rotate an animation for my user control which would be triggered when the control gets the keyboard focus. The animation should rotate it around its center.</p> <p>The problem is, I set the original center point on the lower left corner of the control for the loaded animation. So, to correct that, I set th...
1
2,149
Difficulty creating CSS menu with multiple columns
<p>I've read through some similar threads on this site and found some helpful tips, but I'm still having difficulty getting columns to work correctly in my CSS drop down menu. The test site is here: <a href="http://iphonebuy-host1.gaiahost.net/index.html" rel="nofollow">http://iphonebuy-host1.gaiahost.net/index.html</a...
1
2,171
Adding toolbar to activity causes NoClassDefFoundError
<p>I'm Trying to add a toolbar to an activity. But I'm getting this error:</p> <pre><code> java.lang.NoClassDefFoundError: android.support.v7.app.ActionBarActivityDelegateBase$2 at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:304) at android...
1
3,241
kafka async commit request failing
<p>I have observed that the kafka consumer lag suddenly starts increasing after few hours/days running.</p> <p>Upon checking the logs, I see alot of exception:</p> <blockquote> <p>org.apache.kafka.clients.consumer.RetriableCommitFailedException: Offset commit failed with a retriable exception. You should retry comm...
1
1,086
Fix “Ignoring InnerClasses attribute” warning
<p>I would like to fix this warning that give me each build this output:</p> <pre><code>Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(com.sun.jna.Native$1) that doesn't come with an Error:associated EnclosingMethod attribute. This class was probably produced by a Error:compiler tha...
1
3,111
How to flash tkinter label limited number of times, and only if conditions are met
<p>I have run the the nice example for a flashing tkinter label given in this answer: <a href="https://stackoverflow.com/questions/21419032/flashing-tkinter-labels/21439284#21439284">Flashing Tkinter Labels</a></p> <p>However, when I try to add some complexity to it, it fails. </p> <p>First, I need it to only flash ...
1
1,096
JavaMail API Error (javax.mail.NoSuchProviderException: invalid provider)
<p>I'm trying to create a program using the JavaMail API, however, I keep getting the following error message.</p> <pre><code>javax.mail.NoSuchProviderException: invalid provider at javax.mail.Session.getTransport(Session.java:738) at javax.mail.Session.getTransport(Session.java:682) at javax.mail.Session.getTransport...
1
1,277
php api integration for reseller club
<p>i need to implement reseller api to my website to search available domain name, i have reseller id and key, so i used the below code</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;form method="post" action="test.php"&gt; &lt;input type="text" name="domain" value="&lt;?php echo $domainna...
1
2,325
React Native - Multiple navigators (drawer and bottom tab on same page)?
<p>AppNavigator.js</p> <pre><code>import React from 'react'; import { createSwitchNavigator,createStackNavigator, createAppContainer} from 'react-navigation'; import MainTabNavigator from './MainTabNavigator'; import AuthLoadingScreen from '../screens/AuthLoadingScreen' import Login from '../screens/Login'; import Si...
1
1,440
Laravel 5 saving and updating models with relationship
<p>First thank for watch my question and sorry for my poor english.</p> <p>I have two models :</p> <p>User Model with the next relationship:</p> <pre><code>public function datosAlumno() { return $this-&gt;hasOne('sj\Models\DatosAlumno','alumno_id'); } </code></pre> <p>and DatosAlumno model :</p> <pre><code>pu...
1
1,320
java.io.NotSerializableException Error in Pipeline Scripting
<p>I'm using below code to load a Groovy file and to pass parameter:</p> <blockquote> <p>Pipeline Script in jenkins</p> </blockquote> <pre><code>@NonCPS def ld() { def pck = load '/tmp/Provsioning/e.groovy'; return pck.xmlParseData("${params.hos_nam}"); } node { stage ('Deploying Packages'){ de...
1
1,414
Build error using Apache Avro generated files
<p>I a using Gradle to build a simple app using Apache Avro. Following are the relevant files:</p> <p>File <code>build.gradle</code></p> <pre><code>plugins { id "com.commercehub.gradle.plugin.avro" version "0.9.0" } apply plugin: 'application' group 'ahmed' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 depe...
1
1,104
Error when using toggleDrawer navigation.ToggleDrawer is not a function
<p>I'm currently using stack navigation on my app, but I decided to increment a Drawer for a user's menu.</p> <p>I managed to insert the Drawer in my pages, but some of them are a MapView content, so the user can't really drag the menu from the screen... So I decided to implement a button to call the ToggleDrawer funct...
1
6,049
The remote server returned an error: (413) Request Entity Too Large
<p>Please do NOT delete this message as a duplicate!!</p> <p>I am writing a WCF service that allows for XML files to be uploaded so that they can be imported into the database. However I am receiving the above error when I upload a file above the 64k default.</p> <p>I have read through all the questions already poste...
1
1,185
Failed to get the environment using GetEnv()
<p>I am trying to call some very simple java functions from jni class for a cocos2dx project. But i keep getting the error <strong>Failed to get the environment using GetEnv()</strong> on some important calls at times and this changes whole flow of operation. </p> <p>I am making JNI calls in following way </p> <pre><...
1
2,514
Convert Svg with image tag into PNG
<p>I want to convert an SVG data into PNG. For that I am using canvas and <code>drawimage()</code> function. This Works 100% fine and convert my svg to png, but if my svg has any image tag, then it wont work.</p> <p>have a look in to my dummy code:-</p> <pre><code>&lt;html&gt; &lt;body&gt; &lt;div id="mai...
1
1,053
TypeScript run-time error 'undefined'
<p>I have the following HTML + TypeScript that tries to instantiate a simple class called Point. When the hyperlink is clicked, I get the following errors against each try/catch clause:</p> <p><strong>Errors:</strong></p> <ul> <li>Cannot read property 'Empty' of undefined.</li> <li>undefined is not a function.</li> <...
1
1,127
Error: [$rootScope:infdig] http://errors.angularjs.org/1.4.1/$rootScope
<p>I have the error below on my app</p> <pre><code>Error: [$rootScope:infdig] http://errors.angularjs.org/1.4.1/$rootScope/infdig?p0=10&amp;p1=%5B%5D at m.prototype.$digest (https://localhost:44301/angular.min.js:132:501) at m.prototype.$apply (https://localhost:44301/Scripts/angular.min.js:135:159) at Anonym...
1
3,911
TypeError: can't pickle _thread.RLock objects When trying to save keras model
<p>I receive the error: <code>TypeError: can't pickle _thread.RLock objects</code> when trying to save my keras model. I believe it has to do with the lambda layers I'm using, but I'm not sure which ones to fix.</p> <p>So far (seen in code), I've tried following answer 3 of this question: <a href="https://stackoverflo...
1
4,472
How can I rename Jenkins' pull request builder's "status check" display name on GitHub
<p>We have a project on <strong>GitHub</strong> which has two <strong>Jenkins Multibranch Pipeline</strong> jobs - one <strong>builds</strong> the project and the other runs <strong>tests</strong>. The only difference between these two pipelines is that they have different <strong>JenkinsFiles</strong>.</p> <p>I have ...
1
1,385
Creating stripe payment token after validating other fields
<p>To keep this simple I have only included one of the forms I am validating. Everything validates right, but I can't figure out why a token does not get generated. The form never submits. I had the form working right without validating not sure what the problem is.</p> <pre><code>var oeValidate = { 'name' : funct...
1
1,025
Nodejs ws module: Heartbeat in TypeScript
<p>I'm currently working on getting a WebSocket server running on NodeJs with TypeScript. As a WebSocket server implementation, I am using <a href="https://www.npmjs.com/package/ws" rel="nofollow noreferrer">ws</a>. Along with that I use the <a href="https://www.npmjs.com/package/@types/ws" rel="nofollow noreferrer">@t...
1
1,234
AWS Cognito Sign-In with Java SDK for desktop application
<p>I searched a lot, but it seems impossible to find a solution from start to finish to this topic. As a premise, I've already implemented Cognito sign-up, sign-in and refresh of credentials in two native apps for both iOS and Android, so I have developed a (at least) basic understanding of the authentication flow.</p>...
1
2,574
How to post image on twitter in Phonegap using javascript
<p>I'm currently implementing a web smartphone application with Phonegap. On this application, users can post images they take with the phone camera on Facebook. This feature has been succesfully implemented only using javascript, by sending a base 64 encoded image. Now, I want to implement the same feature using Twitt...
1
6,340
Bottom of ScrollView clipped when using ConstraintLayout
<p>I have an issue using a <code>ScrollView</code> inside <code>ConstraintLayout</code> (<code>constraint-layout:1.0.0-beta3</code>)</p> <p>The content of my ScrollView isn't showed entirely.</p> <p>Here is my layout:</p> <pre><code>&lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.a...
1
1,707
File Upload from Popup - Broken in IE9, Works Elsewhere
<p>We've used for some years a home-grown file uploader for our classic ASP website. It works like this:</p> <ol> <li>ASP page sets some specific constants and #includes an ASP library called Browse-Files.asp.</li> <li>Browse-Files.asp displays, inside the #including page, a file explorer-like view of the directories ...
1
1,986
Why Gradle build fail with java8?
<p>We have Gradle script it is building multiple projects with different sourceCompatibility and targetCompatibility. If my environment variables JAVA_HOME set to jdk7 all the projects are building successfully. Then I changed the JAVA_HOME to jdk8. Now build fail with below errors:</p> <pre><code> FATAL ERROR in nati...
1
1,694
NotSerializableException when Tomcat startup
<p>I'm trying to solve this. I'm using NetBeans 8.0 and TomCat 8.0.9, when server start up throws this NSE:</p> <pre><code>11-Sep-2014 00:01:43.578 WARNING [http-apr-8080-exec-191] org.apache.catalina.session.StandardSession.doWriteObject No puedo serializar atributo de sesión com.sun.faces.application.view.activeView...
1
2,312
Wakelock and wifilock not working
<p>I have read plenty of tutorial and posts here on SO regarding the use of WakeLock and WifiLock, but still didn't get to a solution of my issue.</p> <p>I'm writing an app that has, when you start it, the only effect of creating and starting a (foreground) service. This service run two threads that are an UDP broadca...
1
4,621
How to set up bootstrap installation on node.js project via npm installation
<p><a href="https://i.stack.imgur.com/mS0T0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mS0T0.png" alt="enter image description here"></a>I am working on a simple project for learning node.js and I tried installing bootstrap via npm. The bootstrap.css seems to be working but the output on the pag...
1
1,123
error in mysqli_real_escape_string()?
<p>Here, i am creating the signing up a new user form but i got a problem in <code>mysql_real_escape_string()</code> .so, i used the alternative <code>mysqli_real_escape_string()</code> and i tried </p> <pre><code>mysqli_real_escape_string($conn,$_POST['user_name']) </code></pre> <p>but didn`t worked .Here, i have cr...
1
2,301
A simple one touch touch Drawing View but keep getting ACTION_CANCEL before touches completed
<p>This has been driving me crazy. </p> <p>I think I have everything in place but no matter what I do the touches seem to be cancelled before I lift my finger off the view. Even stranger I can draw long horizontal lines but vertical ones are always very short.</p> <p>I am using a Samsung G SII 2.3.3 but building to 2...
1
1,114
Angular 11: Problem at Msal Angular V2 package
<p>I have upgraded my angular project from v8 to v11. I have upgraded @azure/msal-angular package from V1 to V2(2.0.0-beta.3). I have followed the samples given on <a href="https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/samples/msal-angular-v2-samples/angular11-sample-app" rel="nofollow no...
1
2,086
Javafx TableView not showing data
<p>I used <code>ObservableList</code> to populate the <code>TableView</code> but the problem is that the data is not showing in the table I don't know what is the problem because the number of rows is exactly like I added them <a href="https://i.stack.imgur.com/fOb2o.jpg" rel="nofollow noreferrer">capture</a> but there...
1
1,373
Error calling web service 401: Unauthorized
<p>I get</p> <blockquote> <p><strong>The request failed with HTTP status 401: Unauthorized</strong></p> </blockquote> <p>My web service is .NET 4 running on IIS6. My client is .NET 2 running on IIS6</p> <p>When I run the both client and serivce on my local host it works. When I move the service to the web server I...
1
1,154
What's wrong with this SQL syntax?
<p>I am trying to build registration system with java servlet. And insert data into a mySQL database. But I get a syntax error. I just finished reading Wiley mySQL and Java developers guide book. </p> <p>And I am kinda new to servlet programming, so if there is easy way to do things I do please tell me.</p> <pre><cod...
1
2,247
How to optimize drawing text on canvas
<p>I have window with 3 circles, they are rotating simultaneously. Everything is good until a Add text to the circles, then the rotation starts to lagging.</p> <p><img src="https://i.stack.imgur.com/ZFiTr.png" alt="main window"></p> <p>How can i optimize drawing on canvas ? This is my code:</p> <pre><code>@Override ...
1
3,361
Load images into a Bootstrap carousel from Database MySql
<p>I have a working Bootstrap carousel with images source insert into HTML code. I need to load images (and some others data like title and description) from Mysql database using PHP code. I tried PHP code alone and it works, but when I tried to implement it into original HTML code, it not works.</p> <p>This is Carous...
1
3,412
com.android.ddmlib.InstallException: Failed to install all
<p><code>react-native run-android</code> in device, and report the below error </p> <p>Installing APK 'app-debug.apk' on 'm2 note - 5.1' for app:debug 10:53:48 E/1765594925: Error while uploading app-debug.apk : Unknown failure ([CDS]close[0]) Unable to install /Users/xiaotian/Desktop/wanme_rn/android/app/build/output...
1
3,712
python lxml get parent element when you know child text with xpath
<p>I have the following xml file: <em>test.xml</em></p> <pre><code>&lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;soap:Body&gt; &lt;SubmitTransaction xmlns="http://www.someaddress.com/someendpoint"&gt; &lt;objTransaction&gt; &lt;DataFields&gt; &lt;TxnFiel...
1
1,330
How to pass back modal dialog confirmation result to calling function?
<p>I've added a jquery UI dialog to an mvc page. After the dialog is opened I need to catch the <code>bool</code> values if the dialog is <em>dismissed</em> or <em>confirmed</em>.</p> <p>So far I have tried to add a call back as mentioned in another answer, but I'm not sure how to pass that value back to the <code>$('#...
1
1,348
MIPS implementation of selection sort outputting correct values
<p>I am attempting to implement selection sort in MIPS. My output occasionally correct, but there are several instances where it is incorrect. Usually it is correct up until some point and after that point the numbers print out unsorted. It also appears to have difficulty with multiple negative numbers. </p> <p>I beli...
1
3,664
What is the best way to filter spam with JavaScript?
<p>I have recently been inspired to write spam filters in JavaScript, Greasemonkey-style, for several websites I use that are prone to spam (especially in comments). When considering my options about how to go about this, I realize I have several options, each with pros/cons. <strong>My goal for this question is to exp...
1
1,230
CUDA speedup for simple calculations
<p>I have the following code in <code>cuda_computation.cu</code></p> <pre><code>#include &lt;iostream&gt; #include &lt;stdio.h&gt; #include &lt;cuda.h&gt; #include &lt;assert.h&gt; void checkCUDAError(const char *msg); __global__ void euclid_kernel(float *x, float* y, float* f) { int idx = blockIdx.x*blockDim.x + ...
1
1,072
Pass an array (variable) as template argument
<pre><code>typedef int INT5[5] ; template&lt;INT5 i5&gt; void fun() { for (auto i : i5) { cout &lt;&lt; i &lt;&lt; endl; } } void test() { int i5[5] = { 2,3,1,2,4 }; fun&lt;i5&gt;();//error } </code></pre> <p>I want to pass an array as a ...
1
1,069
Can atomics suffer spurious stores?
<p>In C++, can atomics suffer spurious stores?</p> <p>For example, suppose that <code>m</code> and <code>n</code> are atomics and that <code>m = 5</code> initially. In thread 1,</p> <pre><code> m += 2; </code></pre> <p>In thread 2,</p> <pre><code> n = m; </code></pre> <p>Result: the final value of <code>n</c...
1
1,371
C++ Hashtable for Strings
<p>I'm trying to use a hash table in C++ to store strings i.e a string key and data. I'm using code from the 2003 book Data structures for games programmers.</p> <p>While I can implement an int hash table, I'm stuck at what's wrong when I try and do the same with a string one.</p> <p>C++ keeps giving me the same error....
1
2,598
Deployment and Static Packaging within QT Creator linking QT and OpenCV in single Executable
<p>Does anyone use a combination of QT and OpenCV, and have a good methodology for packaging up your software and deploying to your users? QT Creator which we develop in has a publish and deploy button, but it doesn't seem to do anything different to the binary produced than regular building and using dynamic links to ...
1
1,099
Bresenham concentric circles leaving empty pixels
<p>I am using the midpoint circle algorithm, also known as Bresenham's, to draw concentric circles. The difference between each circle's radius and that of the next is always 1, so the final result should be a full circular area.</p> <p>However, some pixels are left empty, as shown in the attached image.</p> <p>I'm u...
1
1,075
How to move to a specific tab from an activity in android
<p>I am working on the following screen named FriendListActivity:</p> <p><a href="https://i.stack.imgur.com/shMIz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/shMIz.png" alt="Screenshot"></a> As you can see here , I am 3 tabs named CHAT,GROUPS and CONTACTS .Each tab is displaying some contents.Fo...
1
1,511
How to use AsyncTask for Jsoup Parser?
<p>I am trying to use a AsyncTask because the the activty force closes because it takes to long on the main thread.</p> <p>Here is what i want to use in a DoInBackGround..</p> <pre><code>} class fetcher extends AsyncTask&lt;Void,Void, Void&gt;{ @Override protected Void doInBackground(Void... arg0) { ...
1
1,904
How to perform multiple Linq to Entities orderings dynamically
<p>So my problem is like this; in C# code, I need to perform multiple orderings of an entity set with the help of Linq to Entities, dependent on input parameters. There are three columns to order on, and the order of the ordering columns is itself variable (meaning that for each ordering, I need to look up which column...
1
1,412
"ERR_ABORTED 404 (Not Found)" and "its MIME type ('text/html') is not executable, and strict MIME type checking is enabled" in console
<p>I'm relatively new at web development and in the phase where you do as many projects as you can for practice. I have a simple website for my profile and two script tags at the bottom of my index page right before the closing body tag.</p> <pre><code>&lt;script type="text/javascript" src="js/scroll.js"&gt;&lt;/scrip...
1
1,516
SugarCRM Slow Queries (on MySQL)
<p>We are using SugarCRM with a MySQL 5.5 database and are seeing poor performance with a frequently occuring query. </p> <p>Unfortunately re-ordering of the query is not possible due to the nature of SugarCRM. I've attempted optimizations via indexing, but I haven't gotten very far. That said, I'm not very proficien...
1
1,747
Align a data label below a point on a bubble graph (Chart.JS)
<p>I am trying to position a label related to the dataset below a point on a bubble graph and to have the value displayed on top of the point.</p> <p>I have tried returning two different values, but it only allows me to return one.</p> <p>Because of this I have returned both values within the same string.</p> <p>Is ...
1
2,773
How to resolve "Only static members can be accessed in initializers" in flutter?
<p>I'm developing a flutter app, where I need to scan some barcodes, so, for that, I use a plugin called barcode_scan (<a href="https://pub.dartlang.org/packages/barcode_scan" rel="nofollow noreferrer">https://pub.dartlang.org/packages/barcode_scan</a>). So, the problem comes when I try to call a function from a Raised...
1
2,774
Maven running tests annotated with junit @Ignore when building Java project
<p>I've annotated a bad test with @Ignore, both on the method-level and on the class level. When running the test through the command line (I've tried "mvn clean install", "mvn test", "mvn clean install -DskipTests; mvn test"), however, the @Ignore annotation is ignored, the test is run, and- as it is a bad test- it fa...
1
3,169
PHP Auto-load and WordPress
<p>I am having a weird issue with the autoloader class I built in PHP to use in WordPress. </p> <p>The core concept is that it should load class regardless of if you are a child theme, parent theme or a plugin. It should find the class based on the name (coreesponding to the folder structure: <code>CoreTheme_Folder_Su...
1
1,138
parsing a .txt file to be read for data.frame
<pre><code>y&lt;-readLines("output.txt") </code></pre> <p>After I read the txt file, I need to format this data to a data frame with certain number of columns. Need to get rid of letters and rows that do not have 21 columns. I am doing the following to parse out - and any letters.</p> <pre><code>p&lt;-gsub("-","",p) ...
1
1,068
Duplicate CSS classes?
<p>Not even sure where I should begin debugging this issue, but all of my CSS classes seem to be duplicating for some reason. I'm attaching an image for reference, but other than that; I have zero idea where to begin looking. I created my project with a Yeoman AngularJS generator. No Sass or LESS. Anyone have any ideas...
1
7,511
Python requests module exception SSLError
<p>I am getting a requests module exception error when I try to access the <a href="http://www.acastipharma.com/" rel="nofollow noreferrer">http://www.acastipharma.com/</a> website. I am not having problems with any other website so I believe this is a website specific issue. Here is some example code</p> <pre><code>i...
1
2,060
How to deserialize a JSON string to a non-public class using JSON-B?
<p>I've created a trival Java 9 Maven app with two classes to test the serialization and deserialization of JSON using JSON-B. Here's the code:</p> <pre><code>package com.jsonbdemos; import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; import javax.json.bind.JsonbConfig; public class App { public s...
1
1,759
How VPN works in Android and List of APIs available? (lollipop)
<p>###Reference:</p> <p>Android 4.0 has an API to build VPN services.</p> <ol> <li><a href="https://developer.android.com/reference/android/net/VpnService.html" rel="nofollow noreferrer">VPNService (Android Docs)</a></li> <li><a href="https://developer.android.com/reference/android/net/VpnService.Builder.html" rel="nof...
1
1,049
Powershell Format Duration as Hours and Minutes
<p>I am trying to format the string output of a TimeSpan as <code>$h Hours $m Minutes</code>, accounting for pluralization. Right now, I have the below code which works pretty well; however, when it encounters a TimeSpan of less than an hour it will display it as <code>0 $m minutes</code>.</p> <pre><code>Function Form...
1
1,112
Use a button in Excel to copy information from one sheet to another on a new row
<p>I have one workbook with two sheets. Sheet 1 is laid out to look like a form with a submit button and named <strong>TravelRequest</strong>. Sheet 2 is just a database that is collected from sheet 1 and named <strong>TravelLog</strong>.</p> <p>Here is how it works now:</p> <ol> <li>User on Sheet 1 fills out the pro...
1
1,216
Is there a XAML equivalent to nameof?
<p>I'm working with DevExpress's WPF tree list view and I came across what I think is a more general problem relating to renaming properties on the objects used as an item source. In the tree list view one is required to specify the ParentFieldName and the KeyFieldName (which are used determine the structure of the tre...
1
1,371
Cannot find the class file for org.springframework.beans.factory.annotation.Autowire
<p>I'm trying to move my project to <code>Spring Boot 1.4.1.RELEASE</code> and can't compile the source code with a following error:</p> <pre><code>The project was not built since its build path is incomplete. Cannot find the class file for org.springframework.beans.factory.annotation.Autowire. Fix the build path then...
1
8,478
Using Fb.ui feed method not showing message nor user_prompt_message at all using default messages
<p>Hi I am new to facebook development, and would like to post a feed using this code below, but the message nor the user_message_prompt do not appear in the text box. Do I need to set something in my application to allow this. All I get is default messages.</p> <p>I tried the 2 methods below, and both of them do not ...
1
1,378
Verify Python Passlib generated PBKDF2 SHA512 Hash in .NET
<p>I am migrating a platform which used <a href="http://pythonhosted.org/passlib/" rel="nofollow noreferrer">Passlib 1.6.2</a> to generate password hashes. The code to encrypt the password is (hash is called with default value for rounds):</p> <pre><code>from passlib.hash import pbkdf2_sha512 as pb def hash(cleartext,...
1
1,063
Full page website and scrolling through sections using the mouse wheel
<p>I am building a website where the front page is composed of "full-page sections". My end goal is to achieve more or less exactly what this plugin offers:</p> <p><a href="http://alvarotrigo.com/fullPage/" rel="nofollow noreferrer">http://alvarotrigo.com/fullPage/</a></p> <p>Except I'd like to avoid including a 1400...
1
1,025
Vert.x: simplest server with 1000 rps
<p>Suppose you need to write a server with 1000 rps. The load may grow in the future. Server is serving only one kind of request - <code>getGender(name)</code> which accept a name, and return <code>Male</code>/<code>Female</code>. Determinition of sex is simplest operation which requires single index lookup, where inde...
1
1,074
How to return a partial view in .net core 3
<p>Returning partial view in core seems different to mvc5 so anyone can help, index view is working perfectly but, i returned the partial view without my layout or anything of index view nothing at all only the products</p> <pre><code> [HttpPost] public async Task&lt;PartialViewResult&gt; Filter(List&lt...
1
3,453
Find the set of largest contiguous rectangles to cover multiple areas
<p>I'm working on a tool called <a href="http://code.google.com/p/quickfort/" rel="noreferrer">Quickfort</a> for the game <a href="http://www.bay12games.com/dwarves/" rel="noreferrer">Dwarf Fortress</a>. Quickfort turns spreadsheets in csv/xls format into a series of commands for Dwarf Fortress to carry out in order to...
1
1,173
Devise: Sign-in fails, how to debug?
<p>I have a simple app with a User model and an authentication system built from scratch. I am now trying to use Devise instead, and it does not work and, as a newbie in web development, there is something I don't grasp and I don't know how to debug this. </p> <p>My problem is: Devise is installed and works, except th...
1
1,970
Permissions not showing when installing generated APK
<p>I have an issue where I can't install the APK. I have built an APK in Android Studio and sent it to a user. However, the user is unable to install the APK, it reaches the screen where it shows the list of permissions, but none of the permissions is displayed (empty screen with "Cancel" and "Next" options) and the us...
1
1,166
AttributeError in Kivy: GridLayout object has no attribute _trigger_layout
<p>I'm trying to write a program in python that takes parts of an image and renders them in kivy using a GridLayout. </p> <p>Using an XML file with my map data, I'm reading each tile from their Global ID (or "GID", see <a href="http://gamedevelopment.tutsplus.com/tutorials/parsing-and-rendering-tiled-tmx-format-maps-i...
1
2,131
Java: notify main class when all threads in threadpool are finished / same instance of object in different threads
<p>How do I notify my main class which instantiates a <code>ThreadPoolExecutor</code> when all threads within the <code>ThreadPoolExecutor</code> are completed?</p> <pre><code>ThreadPoolExecutor threadPool = null; ThreadClass threadclass1; ThreadClass threadclass2; final ArrayBlockingQueue&lt;Runnable&gt; queue = new ...
1
1,262
Tycho: 'Unable to satisfy dependency ...' when building via multi-module parent
<p>I have to build an Eclipse-plugin with a Maven/Tycho which has dependencies to other 3rd parties. As embedding dependencies is not yet supported by Tycho, I split up projects into two as following:</p> <ul> <li><code>A-thirdparty</code>: project with a packaging 'bundle', built by <strong>maven-bundle-plugin</stron...
1
4,722
Bison, Flex and compiling my compiler error with parser.y
<p>I'm getting an error on compiling my compiler and I have no idea why. I'm running OS X 10.9.1 and the latest Xcode. </p> <p>parser.y:1.1-5: invalid directive: `%code' parser.y:1.7-9: syntax error, unexpected identifier</p> <p>Here is the code of my parser.y</p> <pre><code>%code top { #include "frontend.h" #inclu...
1
3,619
How to create an element inside another in java using JAXB?
<p>I have a java code i'm using to create XML file using JAXB, i know how to create root elements and elements but i want to create a child elements from an element like that:</p> <pre><code> &lt;root element&gt; &lt;element&gt; &lt;child element&gt; &lt;group of elements and a...
1
1,633
gcc failed with exit status 1 when installing libmemcached
<p>While trying to follow the python-libmemcached instructions at <a href="http://code.google.com/p/python-libmemcached/" rel="nofollow">http://code.google.com/p/python-libmemcached/</a> I run into trouble at step 3 ("python setup.py install")</p> <pre><code> (gigmash_venv)m:python-libmemcached matthewparrilla$ pyt...
1
1,137
Dynamic ExpandoObject in WCF
<p>Trying to Ping / Pong my service with an operation of enum type process and dynamic data.</p> <pre><code>[ServiceContract ( CallbackContract = typeof ( iStackoverflowCallBack ) )] public interface iStackoverflow { [OperationContract] void Ping ( Process Operation , dynamic Data ); } [ServiceContract ( )] p...
1
1,312
Make element sticky in IE11
<p>I have a menu which is positioned absolutely on a right of a page. The menu's header must be fixed when the menu is scrolled. I used position:sticky but it doesn't work in IE11.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class...
1
1,335
How do I get a column to be sort in descending order upon loading?
<p>I'm wondering how do I get a sorted column in descending order upon loading. I have seen some questions/answers in stack-overflow but it all depends on the jqGrid configuration. That I haven't got it to work... It need to be done locally once the data is received from the server.</p> <p>Thanks..</p> <pre class=...
1
8,622
Constant Lock Wait Timeout with MySQL InnoDB table
<p>I'm having horrible issues with lock wait timeouts with a MySQL InnoDB table created like so:</p> <pre><code>CREATE TABLE `TableX` ( `colID` int(10) unsigned NOT NULL DEFAULT '0', `colFK` int(10) unsigned NOT NULL DEFAULT '0', `colX` smallint(5) unsigned NOT NULL DEFAULT '0', `colX` int(10) unsigned NOT NUL...
1
2,123
Why angular is not recognizing if a user is logged in with keycloak?
<p>So I'm trying to set up a sso system with keycloak on my angular app.</p> <p>I have downloaded the keycloak library keycloak-angular@4.0.2, setted up a keycloak server at localhost:8080/auth, added the keycloak.json on the root of the app, that keycloak made for me:</p> <pre><code> { "realm": "my-app", "auth...
1
2,352