title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Returning JSON in CFFunction and appending it to layer is causing an error | <p>I'm using the qTip jQuery plugin to generate a dynamic tooltip. I'm getting an error in my JS, and I'm unsure if its source is the JSON or the JS. The tooltip calls the following function: (sorry about all this code, but it's necessary)</p>
<pre><code><cffunction
name="fGameDetails"
access="remote"
returnType="... | 2 | 1,760 |
Error java.lang.illegalstateexception request == null | <p>Can someone tell me what could be the mistake?
For some time it worked fine. And now, it appears, then disappears. The error appears when I start to enter the address in the autocomplete
I will be very grateful!!</p>
<p>When starting up, the following error appears on the device</p>
<pre><code>java.lang.IllegalSt... | 2 | 1,171 |
Xamarin forms List view not filling in Horizantal orientation | <p>My Listview is filling half of the screen when I make some controls invisible.
The listview is in a grid control. Below is my code </p>
<pre><code> <?xml version="1.0" encoding="utf-8" ?>
<views:BasePage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/win... | 2 | 6,089 |
Eclipse base HTML5 Websocket and GlassFish | <p>Env for project: -
Eclipse 3.6 (Eclipse-jee-helios) + HTML5 + JavaScript + Websocket + (grizzly) Glassfish 3.1.1</p>
<p>I have deployed sample project and able to run using GF.</p>
<p><strong>When i try to connect websocket it always call onClose.</strong></p>
<p><strong>I tried: -</strong>
asadmin set configs.co... | 2 | 1,573 |
All threads blocked by empty pipe read | <p>I'm trying to teach myself about multi-threading and multi-process programming in C (Linux). I wrote a short program which spawns a new thread which goes to a routine that tries to do a blocking read from an empty FIFO, while the main thread continues and prints to STDOUT. (Note: I did create a FIFO using <code>mkfi... | 2 | 1,533 |
How is SFML so fast? | <p>I need to draw some graphics in c++, pixel by pixel on a window. In order to do this I create a SFML window, sprite and texture. I draw my desired graphics to a uint8_t array and then update the texture and sprite with it. This process takes about <strong>2500 us</strong>. Drawing two triangles which fill the entire... | 2 | 1,271 |
I/O Socket error (Java) | <p>I have a problem using a socket:</p>
<pre><code> socket = new Socket(hostname, port);
os = socket.getOutputStream();
oos = new ObjectOutputStream(os);
is = socket.getInputStream();
ois = new ObjectInputStream(is); // THIS ALWAYS RAISES EXCEPTION
</code></pre>
<p>I have check... | 2 | 1,677 |
ImportError shows up with py.test, but not when running the app | <p>Unlike in this question:
<a href="https://stackoverflow.com/questions/37469473/importing-modules-from-a-sibling-directory-for-use-with-py-test">Importing modules from a sibling directory for use with py.test</a>
I can import something from my app, but there's an import error (looking like a circular dependency) that... | 2 | 1,106 |
classification with LSTM RNN in tensorflow, ValueError: Shape (1, 10, 5) must have rank 2 | <p>I am trying to design a simple lstm in tensorflow. I want to classify a sequence of data into classes from 1 to 10.</p>
<p>I have <em>10 timestamps</em> and data X. I am only taking one sequence for now, so my batch size = 1.
At every epoch, a new sequence is generated. For example X is a numpy array like this-</p>... | 2 | 1,304 |
org.apache.fop.apps.FOPException: .fop (Access is denied) in Azure | <p>I have recently added a fop pdf generator to an existing application. everything works fine locally but when I deploy to live on Azure I get the following errors:</p>
<pre><code>org.apache.fop.apps.FOPException: .fop (Access is denied)
java.io.FileNotFoundException: .fop (Access is denied)
</code></pre>
<p>I'm puz... | 2 | 1,800 |
Python Logging Module, logfile issue: PermissionError: [WinError 32] The process cannot access the file because it is being used by another process | <p>I have never used logging before and am new to Python. My mentor mandated that script must contain a logging file. So I tried to do it in my code following his template. The followign below are excerpts in my code where logging is used:</p>
<pre><code>logfilepath = r"C:\Users\sys_nsgprobeingestio\Documents\dozi... | 2 | 1,733 |
Android Volley EOFException | <p>I have a simple app that uses volley like this:</p>
<pre><code> StringRequest stringRequest = new StringRequest(Request.Method.POST, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d("VolleyCo... | 2 | 1,027 |
Connection Refused while deploying sentry server in Nginx | <p>Am using python sentry server for tracking logs of my website.And i have used nginx server to deploy it, my servers IP is xx.xx.xx.xx when i open this in browser it shows me <strong>502 Bad Gateway</strong> and when i checked the log it shows </p>
<p>"<strong>connect() failed (111: Connection refused) while connect... | 2 | 1,040 |
How to apply CSS style which will be ignored for tfoot or last TR | <p>see the below css</p>
<pre><code>.webgrid-table td:nth-child(1),th:nth-child(1)
{
display:none
}
</code></pre>
<p>i just like to know how could i apply a style which will be applied for all tr except <code>last tr</code> or <code>tfoot</code>. guide me with that kind of css. </p>
<p>below html is a sample ht... | 2 | 3,705 |
Trying to build GDAL from github using Visual Studio 2019 v16.6.5 on Windows 10 x64 | <p>I want to use Visual Studio 2019 to build GDAL. But I keep getting errors when trying to build.</p>
<p>The computer I'm using is Acer Aspire f 15 F5573G-72CP,
CPU is i7 7500U 2.7GHz, RAM is 16GB, OS is Windows 10 64 bit</p>
<p>Steps I've taken are:</p>
<ol>
<li><p>Download Visual Studio Community, included .NET desk... | 2 | 1,913 |
Nesting two custom Liquid tags that have optional parameters | <p>Is it possible to nest custom Liquid tags written in ruby if one class has multiple optional tokens passed in as parameters? This question is rather hard for me to describe without providing the relevant example. Please excuse me if this question appears to be too specific a use case.</p>
<p>Given the following rub... | 2 | 1,359 |
How to seed to generate random numbers? | <p>It does not generate the intended randomness.</p>
<p>I thought starting with a seed like $66 and xoring the two last lower bit and ror would give me the next random number and so on but it only shows $B3 and does not change at all.</p>
<p>How am I meant to feed? The line above random displays the number on portc a... | 2 | 1,315 |
Joining two grouped subqueries IBM i, DB2 SQL | <p>Good afternoon,</p>
<p>I'm trying to create a daily sales report summary joining a few different files and summarizing based on varying factors.</p>
<p>The report will end up as follows:</p>
<pre><code>Category On Hold Back Orders Late Current Month Next Month Future Months Total
LOC ... | 2 | 4,462 |
How to send a response inside the domain error handler | <p>I have something similar to this:</p>
<pre><code>var domain = require ("domain");
var http = require ("http");
var d = domain.create ();
d.on ("error", function (error){
console.error (error);
//res.writeHead (500)
//res.end ()
});
d.run (function (){
http.createServer ... | 2 | 1,555 |
What is the equivalent of this operationContext.IncomingMessageHeaders.Action in ASP.net MVC | <p>I am working on a OAuth 2.0 server and client implementation. I am using "http://www.dotnetopenauth.net/" CTP version. In one of the samples, the code is creating a class inheriting from "ServiceAuthorizationManager" in that they are overwriting method "CheckAccessCore" in the method they are using operationContext.... | 2 | 3,109 |
Why my android app stops when i set the text value of a TextView | <p>I have two layouts. The first one:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
... | 2 | 1,079 |
SlickSlider slick-center slide animation | <p>I have slider with transparent background and I would like to animate slider background when hovering center div, but after slider moves, hover effect stucks to all the slides that previously had the 'slick-center' class. Any suggestions how to fix it? Sp far I've tried:</p>
<p>HTML:</p>
<pre><code><div class="... | 2 | 1,102 |
How to stop jQuery sliders (bars) when range of points is emptied | <p>I have a problem with jQuery-UI sliders ( <a href="http://jqueryui.com/demos/slider/#default" rel="nofollow noreferrer">http://jqueryui.com/demos/slider/#default</a> ).
I've created a couple of them on my website, and there is DIV with "points" (I entered there 1500). Each slider after increasing takes points from t... | 2 | 1,759 |
(cv2,capture) object is not callable | <p>Basically, this code will detect object's motion in the scene. When the motion is detected, a red rectangle frame will track the object's motion. But, I added a new function into the code which is frame differencing. In general it is thresholding. When i run the code it says:"cv2.capture" object is not callable.</p>... | 2 | 1,937 |
How to write authorize function correctly in typescript for nextauthjs | <p>I am trying to use <a href="https://next-auth.js.org/providers/credentials" rel="nofollow noreferrer">Credentials Provider</a> with NextJs ("next": "^12.0.7") and NextAuth ("next-auth": "^4.1.2"). I am writing this in typescript, and facing issues in getting the function corre... | 2 | 2,918 |
Application with reentrantLock condition hangs on sometimes | <p>I have following code snippet:</p>
<pre><code>public class ConditionTest {
public static final ReentrantLock reentrantLock = new ReentrantLock();
public static final Condition CONDITION_PRODUCED = reentrantLock.newCondition();
public static final Condition CONDITION_RECEIVED = reentrantLock.newConditio... | 2 | 4,855 |
How to delete item in JSON file | <p>Hi Im trying to delete an object in a JSON file but it isnt working. I set the value p equal to the entire item which includes the values name, date and number. When I use delete in order to delete the specific item from the json file it doesn't get deleted. I was wondering if any of you knew why. Thanks.</p>
<p>he... | 2 | 1,026 |
NullpointerException from spinner.java:828 dismiss | <p>I'm new to java/android and trying to help out with an open source project. I decided I could learn the most from trying to fix bugs and so I've been running Monkey on the app to start generating crash reports with bugsense (I don't have access to play.google crash reports). I consistently run into the crash below a... | 2 | 1,380 |
Delete FOSUserBundle error messages | <p>i'm trying to remove from my form the generic FOSUserBundle message.</p>
<p>That is the result when i've an error :
<img src="https://i.stack.imgur.com/qPJZN.png" alt="enter image description here"></p>
<p>i want to remove the message in the red square.
And as you can see i succeeded to ad my own error message.</... | 2 | 3,145 |
md5sum of list of files listed by find | <p>Is it possible to get single md5 string for files that are listed by <code>find</code>?</p>
<p>This code is produce some md5 hash string but seems like it just use names of files, but I need to use content also: </p>
<pre><code>find my_dir -name "*.jpg" | md5
</code></pre>
<p>Test on json files:</p>
<pre><code>t... | 2 | 1,303 |
Spring SAML2 throws Issuer in Request is invalid | <p>I have been able to deploy the SPRING SAML sample application correctly on weblogic 12C. I followed the [Spring SAML on Weblogic 12c][1]. </p>
<p>On load of the page I select option <a href="http://idp.ssocircle.com" rel="nofollow">http://idp.ssocircle.com</a> and click on Start Single Sign on.</p>
<p>This does n... | 2 | 1,775 |
Python and PHP SOAP server | <p>I trying to use the SOAP service based on "PHP SOAP server". And I have a problem with the argument passing. When it's a scalar argument, all is OK, but when I try to pass the structure there is a failure. Python libraries create arrays in the different format. In this example I'm using the SUDS but the other librar... | 2 | 4,827 |
Why does iterating a vector of i32s give references to i32 (&i32)? | <p>The following program tries to grade the marks of a student:</p>
<pre><code>use std::io;
fn main() {
let mut in0 = String::new();
io::stdin().read_line(&mut in0).expect("stdin err");
let n: i32 = in0.trim().parse().expect("parse err");
println!("{}", n);
let mut... | 2 | 1,054 |
Communication between two Activities? | <p>I'm making an app in which I'm using GoogleMaps.Now, I have a question about communication between MapActivity and ToursActivity.To simplify it, my app is about band Metallica, and I have list of Tours. When user clicks on one of the Tours, it should open a new Activity with that location. I won't put ToursActivity... | 2 | 1,171 |
OpenCL: Strong name validation failed while creating a new opencl project | <p><a href="https://software.intel.com/en-us/articles/jumpstart-tutorial" rel="nofollow noreferrer">This is the OpenCL</a> first tutorial I am following. </p>
<p>I am unable to create new OpenCL project. When I try to create new OpenCL project in visual studio 2010 on windows 7, 64 bit , I get <code>"Strong name vali... | 2 | 1,232 |
Merge the output of two sys_refcursor | <p>I've two functions in oracle 11g which return a sys_refcursos.
The first in this</p>
<pre><code>create or replace FUNCTION num_gettoni
(cf_parlamentare IN parlamentari.cf %TYPE DEFAULT 'MRTMRZ'
--, num_legislatura in legislature.id%TYPE
) RETURN SYS_REFCURSOR
AS
my_cursor SYS_REFCURSOR;
pipp... | 2 | 1,073 |
AES Encryption in android and decryption in nodejs | <p>I was trying encryption in android and decryption in nodejs server. I generated an AES 128bit key and encrypt it using AES algorithm and then encrypt this generated key using RSA algorithm. Then send both to the server. But while decrypting on the server side, I think the RSA decryption works fine but have a problem... | 2 | 1,783 |
OpenMP parallel for loop issue with shared pointer to pointers | <p>I am just learning OpenMP and am having a problem parallelizing a for loop that I"m pretty sure meets the criteria for parallelization. Below is a <a href="http://www.sscce.org/" rel="nofollow">SSCCE</a> that exhibits the issue I'm having in my actual code.</p>
<p>The problem is that when I compile and run this wi... | 2 | 2,100 |
Error: Got unexpected status: BAD_REQUEST | <p>I believe I have an <code>orderer</code>, two <code>peer</code>'s and a <code>cli</code> running on Kubernetes.</p>
<p>Trying to issue <code>peer</code> commands within <code>cli</code> results in errors. </p>
<p><strong>Update</strong>: I've tried running the same crypto-config under <code>docker-compose</code> ... | 2 | 2,429 |
JOGL, simple example with shaders, VAO and index array | <p>I am trying to port a simple C++ example in Java (JOGL).</p>
<p>But it doesn't work and it must be something stupid, but I cannot see it..</p>
<pre><code>public class OverlapNoDepth implements GLEventListener {
private int imageWidth = 800;
private int imageHeight = 600;
private GLCanvas canvas;
private GLSLProgr... | 2 | 3,259 |
How to fit a bounding ellipse around a set of 2D points | <p>Given a set of 2d points (in Cartesian form), I need to find the minimum-area ellipse such that every point in the set lies either on or inside the ellipse.</p>
<p>I have <a href="https://stackoverflow.com/a/1768440/4184412">found the solution</a> in the form of pseudo-code on this site, but my attempt to implement... | 2 | 1,289 |
How to add image watermark pine-script on tradingview | <p>How do I add image/logo watermark on tradingview using pine-script?</p>
<p>I am able to add text :</p>
<pre><code>study("WaterMark + 4EMA [SilentKreator]", shorttitle="EMA + WM", overlay=true)
len1 = input(7, minval=1, title="EMA1")
len2 = input(25, minval=1, title="EMA2")
len... | 2 | 1,096 |
How to align JLabel next to a JTextField in a GridBagLayout | <p>My form is very simple I just want to have labels next to text fields. The labels are default centering and it makes the form look weird. I want to the labels exactly next to the textfield. I have played with the horizontal alignment of the labels and textfields but it did not change anything. </p>
<p>Here is my co... | 2 | 1,191 |
how to ask XSD.exe to generate proper class for me, so that i can create a fine XML | <p>I have created an XSD file from Visual Studio 2010,</p>
<p>Then I use <code>xsd /c mydemo.xsd</code> to generate class for me, so that I can create a XML file at runtime.</p>
<p>However, when I use that class, fill in some values, and serialize the object, the XML file does not look nice to me.</p>
<p>Here is my... | 2 | 1,098 |
Nginx sending "Connection: close" instead of "Connection: upgrade" to Golang back end | <p>I'm trying to <code>proxy_pass</code> a websocket with Nginx but I'm getting "502 Bad Gateway" and my Golang back end responds: "websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header".</p>
<p>Nginx config:</p>
<pre><code>server {
listen 80;
server_name eg.examp... | 2 | 1,099 |
java.io.IOException: Server returned HTTP response code: 500 for URL:"SoapEndPoint url" | <p>My soap API is running on localHost. It is working fine when i access it from the browser or soap UI. But it throws 500 error when I access it from my java client</p>
<p>I tried to debug the code, but could not find anything. The server logs as well does not print anything. Only the tomcat access logs show the resp... | 2 | 1,936 |
Errors in android application(main cannot be resolved or is not a field/wglGetExtensionsStringARB' error running map application in Android Emulator) | <p>1.When Iam Importing an existing project or creating a new project displaying an error :
R cannot be resolved to a variable,
after importing R seems it is unable to access the xml layout files
tries fixing this issue </p>
<pre><code> http://stackoverflow.com/questions/514... | 2 | 1,642 |
facebook feed not loading after jquery minified version update | <p>I have an artist page on my website and I am fetching particular artist feed from facebook widget. But I have recently updated jQuery minified version to the latest and it stopped working. This problem is occurring on Firefox Mozilla.</p>
<p>My html</p>
<pre class="lang-html prettyprint-override"><code><div class... | 2 | 1,033 |
Laravel Notification with Mailable | <p>In my Laravel application I have a <code>Notification</code> that sends a <code>Mailable</code> when a <code>User</code> is deleted. </p>
<p><strong>The <code>Notification</code> class:</strong></p>
<pre><code><?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notifi... | 2 | 1,496 |
Android App fails to start activity ComponentInfo | <p>I am new to android programming and, recently, a lot of my apps have been getting this error.</p>
<p>Here is the runtime stack trace:</p>
<pre><code>01/26 17:02:17: Launching WelcomeActivity
$ adb shell am start -n "com.example.android.smartswitch/com.example.android.smartswitch.WelcomeActivity" -a android.intent.... | 2 | 7,155 |
Apache camel blueprint webservice "could not find definition for port" | <p>I'm trying to expose a WebService with Apache camel. I build my project with maven as a bundle and deploy it on Apache karaf.</p>
<p>Right now in the karaf logs I always get</p>
<pre><code>Error occurred during starting Camel: CamelContext(camel) due Could not find definition for port {http://localhost:8181/cxf/we... | 2 | 2,724 |
Function not running with QtConcurrent::run() when using QFutureWatcher | <p>I want to call a function to delete files and folders from the system in a parallel thread called by <code>QtConcurrent::run()</code> (Qt for Embedded Linux 4.8). Using only a <code>QFuture<bool></code> with <code>QFuture::waitForFinished()</code> to grab the result (I need to run some code right after the ope... | 2 | 1,996 |
Reset Javascript Timer for Image Slider | <p>I am creating an image slider and using a JavaScript timer to advance to the next picture. When the user clicks on the forward or back button (see picture below) the time the slide is displayed decreases greatly. I need help making the buttons advance the slide and reset the timer and the same time. I am attaching... | 2 | 1,043 |
C strcpy_s - Buffer is too small && 0 error | <p>I have buffer problem on this line
strcpy_s(*(pWords + word_count), word_length, pWord);
I'm trying to read a file from argv[1] and print out every single word in that file and their occurrence, but I can't figure out whats wrong..?!?</p>
<pre><code>int main(int argc, char* argv[])
{
char *delimiters ... | 2 | 1,643 |
IPC between C# and C++ using named pipes | <p>I have a C++ server application and C# client application, and I want them to communicate with each other using named pipes mechanism.</p>
<p>I want to use a multithreded server (each tread will service a client), I found a working code here: <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365588... | 2 | 1,192 |
Android SharedPreferences IOException Error | <p>So I'm trying to write some strings to <code>SharedPreferences</code> in my android app. I first declare SharedPreferences and its original properties in my <code>Application</code> subclass. I want to be able to change the values of my data in other activities in the app but I get the error below. How should I fix ... | 2 | 3,416 |
Unable to obtain ACME certificate for domains - trying to setup HTTPS in virtual localhost on docker | <p>I am trying to setup a certificate for a locally running react app on a virtual host <code>local.example.com</code>. This has to just work locally on docker setup. After going through some articles, I came up with this docker-compose.yml:</p>
<pre class="lang-yaml prettyprint-override"><code>version: "3"
s... | 2 | 2,662 |
Link terms on page to Wikipedia articles in pure JavaScript | <p>While browsing I came across <a href="http://www.labnol.org/internet/tools/using-wikipedia-api-demo-source-code-example/3076/" rel="nofollow noreferrer">this blog post</a> about using the <a href="http://www.mediawiki.org/wiki/API" rel="nofollow noreferrer">Wikipedia API</a> from <a href="http://en.wikipedia.org/wik... | 2 | 1,411 |
Uncaught TypeError: Cannot set property 'onclick' of null at window.onload | <p>I keep getting the above error but I have all my JS wrapped in window.onload and i'm pretty sure all the id's are correct. Why can't it access the tag in my menu? Am I not able to attach an onclick handler to an tag?</p>
<p>HMTL</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>Matt Cor... | 2 | 4,078 |
How to get the parent child relationship between connected mxgraph | <p>I'm trying to get simplified relationship between connected <code>mxgraph</code></p>
<p><strong>Question:</strong> I'm trying to get the simplified relationship, once the <strong>graph</strong> is drawn.</p>
<p>i'm trying to get relationship between connected nodes in json.</p>
<p><strong>Note:</strong> solution... | 2 | 3,862 |
Why do these two ways of doing an embedding lookup give a different answer? | <p>Suppose I have the following matrix:</p>
<p><a href="https://i.stack.imgur.com/h5gtU.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h5gtU.gif" alt="enter image description here"></a></p>
<p>So, if I want to lookup the second row, I should get [3 4].</p>
<p>This is how I implemented the lookup ... | 2 | 1,210 |
Submit form values to external URL shown displayed an iframe | <p>I am trying to make a form that on submit passes values to a external URL and show the results as an iframe. The form is the home page and the results must be shown in the first page as well.</p>
<p>Everery time I submit it returns a 404 error.</p>
<p>Here is the code:</p>
<pre><code><form id="buscaAereo" meth... | 2 | 3,229 |
Making Snowflake Javascript based procedure query faster | <p>I have a stored procedure that I just converted to Snowflake Javascript from PL/SQL. It inserts about 100 records a minute. The total record count is about 700. Because it is so difficult to know where a problem is in Snowflake, I insert log statements as the overall functionality progresses. I also push message... | 2 | 7,029 |
Read XML file to an already existing database table | <p>I'm trying to read an XML-file into a database table that already exists. </p>
<p>The problem is that the XML-tags and the database columns doesn't have the same name although they have the same datatype. Therefore I'd like to "translate" the XML-tags into the database columns so that the the input to the database ... | 2 | 2,373 |
Android: layout-land error | <p>I am trying to add separate portrait-landscape layouts to an older project of mine (basically I display 2 <code>Fragments</code>: one with a google-map and the other one contains some OpenGL drawings). I created a layout resource folder named <code>layout-land</code> that includes my landscape layout and I get an er... | 2 | 1,090 |
Break doesn't work in try with resources, but work in try without resources | <p>Break doesn't work in try with resources, but work in try <strong><em>without</em></strong> resources!<br>
This is a simple example for this situation. I caught this "bug" in work project.
When I use try without resources</p>
<pre><code>try {
Resources resources = getResources()
// some code here, look below
}
</co... | 2 | 1,031 |
ConnectionFactory creating too many connections from .net core registered service | <p>I have inserted a connection factory based LinqToDB service in the .Net Core.</p>
<p>Startup.cs </p>
<pre><code>services.AddScoped<IDatabase, Database>( provider =>
{
IConfigurationSection sqlConfig = Configuration.GetSection("Database");
IDataProvid... | 2 | 2,785 |
Wrong owner. Perhaps a late disconnect | <p>I am trying to include map in my android app but I am getting this error "Wrong owner. Perhaps a late disconnect" and it gets disconnected.
logcat. I dont really know how to go about it. I have created and added my api key to the app. Someone should help me with the issue.</p>
<p>Logcat</p>
<pre><code>handshakeCo... | 2 | 1,902 |
Sigma curve and curvedArrow edge type renders as a line | <p>I am messing around with Sigma and I cannot seem to get the lines to curve. Regular arrows work ok, but curved do not.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var g... | 2 | 1,552 |
RxSwift + MVVM + Coordinator Pattern, How to wait for coordinator result sequentially? | <p>Scenario:</p>
<p>I have base coordinator which basically like so:</p>
<pre><code>class Coordinator<Result> {
// some coordinator class codes
func coordinate(to: Coordinator<T>) -> Observable<T> {
return coordinator.start()
}
func start() -> Observable<Result> {
... | 2 | 1,111 |
How can I improve my video upload currently crashes the app from out of memory usage | <p>I currently am uploading videos from my app (android) which causes crashes in the application, trying to figure out how to make it efficient on both ends, the app and server side... At the end of the day it does upload the video but crashes either the app or the server depending which one runs out of memory.</p>
<p... | 2 | 1,278 |
Relational algebra ONLY & EVERYWHERE | <p>Here is a simple database </p>
<pre><code>/* Delete the tables if they already exist */
drop table if exists Person;
drop table if exists Frequents;
drop table if exists Eats;
drop table if exists Serves;
/* Create the schema for our tables */
create table Person(name text, age int, gender text);
create table Freq... | 2 | 1,277 |
How to get a response for a streaming url on google app engine (python) | <p>I am trying to verify if a online radio url is delivering music and if the url was redirected or not (this happens if for some reason the request url is wrong or not active). I found some advices here <a href="https://stackoverflow.com/questions/23036285/fetching-url-in-python-with-google-app-engine">Fetching url in... | 2 | 1,909 |
how to get family tree using Django template and from ManyToMany field? | <p>I need family tree, I'm not using any library here( can you suggest ). First can you look into my model first so you will come to know the idea.</p>
<pre><code>class FamilyMember(models.Model):
familyname = models.ForeignKey(FamilyName)
first_name = models.CharField(max_length=50)
parents = models.ManyT... | 2 | 1,593 |
TypeError: find_element() takes from 1 to 3 positional arguments but 5 were given | <p>Attempting to open the login page and log in, at which point the link ending in <code>server_id=...</code> will be available, which is a panel to edit my server listing, where I then want to click the Update button at the bottom. Am I using <code>By</code> properly?</p>
<pre><code>from selenium import webdriver
from... | 2 | 1,094 |
Accessing files on Google Storage from a Google Cloud Python job | <p>I am loosely following a <a href="https://cloud.google.com/ai-platform/docs/getting-started-tensorflow-estimator" rel="nofollow noreferrer">tutorial</a> to train a TensorFlow estimator on Google Cloud AI Platform.</p>
<p>I would like to access a directory that contains my training and evaluation data, and to this e... | 2 | 1,561 |
How to Style @Html.BeginForm() using Razor and VB.NET | <p>I have done plenty of searching the web for an answer and cant seem to break through. I am trying to set the maximum height for the message box text area at the bottom of the form. I am using VB.Net, MVC and Razor to try and accomplish this. If I was in C# I would know how to write it out but I guess I dont have eno... | 2 | 2,039 |
UDP client can't send message to server but can receive | <p>I am trying to create a UDP client. When I try to send a message to the server I get a <code>WSAEOPNOTSUPP</code> error message. But the subsequent <code>recvfrom</code> call seems to work just fine. I haven't had a chance to test it with the server yet so I'm assuming the data will actually come back as expected. A... | 2 | 1,196 |
How to Deserialize XML in c# having child nodes of same type | <p>I need to deserialize bellow XML. The chapter element can have multiple child chapter element in it.I have tried to deserialize the XML using XmlSerializer.
All the elements are deserializing as expected but the issue is that the child Chapter array is not deserializing, am I missing something here? Please help.</p>... | 2 | 2,344 |
How to create Google Calendar All Day Events from spreadsheet that is update-able without creating duplicates | <p>I have been using the Google Apps Script with code from this <a href="https://stackoverflow.com/questions/15788897/create-google-calendar-events-from-spreadsheet-but-prevent-duplicates">question</a> to create update-able (from spreadsheet) calendar events, without creating duplicates.</p>
<pre><code>/**
* Adds a c... | 2 | 2,102 |
Pub/Sub Emulator with Callback function | <p>I need to test pubsub subscriber with callback function using Pub/Sub Emulator. There are several examples with</p>
<pre><code>PullRequest pullRequest = PullRequest.newBuilder()
.setMaxMessages(1)
.setReturnImmediately(true) //... | 2 | 4,309 |
Phonegap and Jquery to get a Photo stored on the device and convert it to a base64 string, path is from the sqlite database | <p>I am having some problems converting the image into a base64 string to transmit over the xml. I stored the Image location(full path) into the database when I took the photo and I'm trying to upload it now. I am trying to Read the file that I have in the(results.rows.item(i).PictureFile) and then convert that to base... | 2 | 1,066 |
Debian Sid cannot connect to bluetooth keyboard | <p>I am running Debian Sid with the following bluetooth-related packages installed:</p>
<ul>
<li><code>blueman</code> 2.0.4-1</li>
<li><code>bluetooth</code> 5.43-1</li>
<li><code>bluez</code> 5.43-1</li>
<li><code>bluez-firmware</code> 1.2-3</li>
<li><code>firmware-misc-nonfree</code> 20161130-2</li>
<li><code>gnome-... | 2 | 1,282 |
DataTables buttons not showing | <p>I've tried everything. I've read every article, manual, and post I can find. I've tried downloading and running the examples, but it won't even compile.
I am using Visual Studio 2013, writing an MVC application using C#.</p>
<p>Here is the relevant code in BundleConfig.cs:</p>
<pre><code> bundles.Add(new ... | 2 | 1,519 |
How to add a Scrollbar in Listbox in a Grid in XAML? | <p>I'm new to XAML and I cant seem to figure this out. I want a two column page that is docked (in winforms term) to its container. The first column has a listbox and I want this to automatically show scrollbar when needed. I was able to do so but only if I set the Height or MaxHeight of the ListBox. My problem with th... | 2 | 1,452 |
Get value jtable after filter (jtable on combobox multiple column) | <p>You can copy the search in combobox test run and after the filter selected it still get the original value.
You can see my code and complete the data received after the data filtering help me, more than a week searching but could not do it. hope you help. Thank you very much</p>
<p>Form.java:</p>
<pre><code>import... | 2 | 7,428 |
Qt threads - new way verification please | <p>So new to Qt. Read the wiki and C++ Gui programming book and they say subclass QThread. Found that this is not the recommended way now.</p>
<p>So I have some practice code here and I have some questions about if this is correct. So I would really appreciate someone having a look please.</p>
<p>So I created a class... | 2 | 1,052 |
Error starting sonarqube after upgrade | <p>We are upgrading from sonarqube 4.0.0 to 5.1.2, but have hit on a problem. Initially we had some plugin version issues but have now hit an issue we cannot resolve. </p>
<p>The plugins and versions are:</p>
<ul>
<li>sonar-checkstyle-plugin-2.0.jar</li>
<li>sonar-clirr-plugin-1.2.jar</li>
<li>sonar-clover-plugin-2.9... | 2 | 11,626 |
Network timed out exception | <p>I have an Android application which connects to an Arduino server and sends it sockets on a button press, but as soon as I press the button it waits a little while and then throws "Connection timed out". I know the Arduino works; I tried it over the browser and it was fine. Why can't my application access it?</p>
<... | 2 | 1,067 |
avoid LD_PRELOAD: Wrap library and provide functionality requested from libc | <p>I have a shared library, say <code>somelib.so</code>, which uses <code>ioctl</code> from libc (according to <code>objdump</code>).</p>
<p>My goal is to write a new library that wraps around <code>somelib.so</code> and provides a custom <code>ioctl</code>. I want to avoid preloading a library to ensure that only the... | 2 | 1,171 |
Conflicting types for enum bool? | <p>I have a program that gives me the error <code>[Error] conflicting types for 'empty'</code> and <code>[Error] conflicting types for 'full'</code>. I have a hunch that it has something to do with the <code>enum bool</code> use (this is the first time I have tried using it). I've looked at other similar questions, tha... | 2 | 1,319 |
Set Expiry time for laravel passport | <p>so i am using password grant access using laravel passport to make my backend (laravel) work with vue.js, i finally can make the authentication works thanks to this <a href="http://voerro.com/blog/building-spas-with-laravel-5.5-and-vue.js-2-pt.4" rel="nofollow noreferrer">awesome tutorial</a> but i just don't like t... | 2 | 1,737 |
Drag and Drop Imageview | <p>I am trying to create a drag and drop imageview. I have used the same code as in this link <a href="http://www.tutorialspoint.com/android/android_drag_and_drop.htm" rel="nofollow">http://www.tutorialspoint.com/android/android_drag_and_drop.htm</a>. I can drag the image but while dropping, the imageviewbecomes invisi... | 2 | 3,211 |
How to select parent QListWidgetItem on click of Child Widgets? | <p>I have a GUI where a QListWidget is the central widget. The QListWidgetItems are composed of a custom widget that include a Graphics area and a QTable. </p>
<p>When I click on the graphics area, or on the table, the parent QListWidgetItem is not selected</p>
<p>See Picture of the GUI I'm working on</p>
<p><img ... | 2 | 1,496 |
CSS3, CSS Align toggle switch on an image | <p>am having a problem aligning my toggle switch to an image, here is the exact description of what i need. <a href="http://jsfiddle.net/9M4gc/" rel="nofollow noreferrer">http://jsfiddle.net/9M4gc/</a>, my toggle switch is working accordingly but i just need to make use of CSS3 to align the toggle switch on the image.... | 2 | 1,411 |
jsp including CSS&JS <%@ include %> vs <script> | <p>JSP is new to me, and I would like to know exactly the difference between these 2 tags when it comes to importing a <strong>JS</strong> or <strong>CSS</strong> file.</p>
<p>What I've tested is we can use both of them for including files in the JSP.</p>
<p>But with </p>
<pre><code><script src = "../js/someJavaS... | 2 | 1,674 |
Custom Woocommerce product variations attributes | <p>Iβve seen similar questions asked, and have tried all the solutions, but none of them seems to work for my project.</p>
<p>All my products have extra specifications, that needs to change when the customer choose a different variation on the product page. And I need the specifications to be displayed in the products... | 2 | 1,051 |
Entity Framework Code First Optional One to Many Relationship on implied Composite Key | <p><strong>Update</strong>: Created a <a href="https://github.com/TheJeremyGray/ConsoleApplication7" rel="nofollow">sample project</a> on GitHub. </p>
<p>In my existing database I have a generic audit table that has no keys, but I'd like to insert into this audit table with EF code first. </p>
<p>Existing reports pu... | 2 | 1,163 |
Xamarin.Forms Connecting to DB using Web Service | <p>Good Day Everyone. I'm creating a Xamarin.Forms Portable Application in my Visual Studio 2015. I want my Mobile Application to connect to the SQL Database I have in my VS2015. </p>
<p>So I created two projects in my Solution. One is for my Mobile Application, using Xamarin Platform, and the other project is for han... | 2 | 4,801 |
Custom Control Load Issue | <p>We have a custom control named HostStatusControl. When we are placing the control to a form, we are getting the following error message. <code>ICEIOBridge</code> is one of the CLI libraries referred by the control. If we remove ICEIOBridge, the error message will be shown with another CLI library referred by the con... | 2 | 2,068 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.