title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Nested dart project prevents ServiceStack.Razor views from rendering | <p><strong>The situation</strong></p>
<p>I'm developing a pure ServiceStack/Razor application (no MVC4 or Web API) using licensed ServiceStack 4.0.12. I have a view (cshtml) that references a Javascript file which is transpiled from a dart project (using AngularDart). </p>
<p>For convenience, I nest the dart projec... | 3 | 3,090 |
Null Pointer Exception when trying to compress Bitmap, can't take photo and upload to server | <p>I am getting a <code>NullPointerException</code> when trying to take a photo on camera application and upload it on to the server side, but some devices it works fine, and some getting issues. i don't know what is the issues, in some devices it works once and getting crashed.</p>
<p>the issues are identified by usin... | 3 | 12,288 |
Parallel code terribly slow when inside function, working fine standalone | <p>I am struggling with the parallel package. Part of the problem is that I am quite new to parallel computing and I lack a general understanding of what works and what doesn't (and why). So, apologies if what I am about to ask doesn't make sense from the outset or simply can't work in principle (that might well be).</... | 3 | 1,750 |
java.lang.RuntimeException: Cannot create RandomBufferedReader java.io.FileNotFoundException: XXX.csv (Too many open files) | <p>I am working on a Jmeter performance Test, where I am using <code>random-csv-data-set</code> plugin. However, When I am using 600 threads I am getting and error like this one.</p>
<pre><code>2019-03-13 19:22:11,410 INFO o.a.j.t.JMeterThread: Thread started: Student Login 1-60
2019-03-13 19:22:11,412 INFO o.a.j.t.JM... | 3 | 1,312 |
How to remove an item in a file in C but keep the formatting? | <p>Newbie in C here. I'm working on a project that allows the user to create a to-do-list, where they can add and remove items from the list. Code as below:</p>
<pre><code>#include <stdio.h>
int row;
void Welcome();
void Add(row, LIST);
void Del(row, LIST);
void write();
int main()
{
int i, j, finalrow;
c... | 3 | 1,429 |
How to correctly support multiple screen sizes | <p>I have recycler view item with fixed height, so on 2560x1440 device it looks cool, but on 1280x720 it looks horible. I read google docs about that and they say just to use "wrap_content" , "match_parent" and use only dp and sp. As you can see below my cardView has 500dp height.I can't use "wrap_content" or "match_pa... | 3 | 3,810 |
Set SelectedItem as ToolTip in WPF Combo Box Style in UIResources | <p>I had defined a ComboBox Style in UIResources and using it on all controls in my application as below:</p>
<pre><code><Style x:Name="combo" TargetType="{x:Type ComboBox}">
<Setter Property="UIElement.SnapsToDevicePixels" Value="True"/>
<Setter Property="FrameworkElement.OverridesDefau... | 3 | 4,009 |
Android text to speech delay | <p>I have come across the common issue of the android TTS initialization delay which is significantly high. I am building an application for a smartwatch with Android Nougat where I require 2 TTS services, one to speak a text in one language and another to speak a text in a second language. It turns out that switching ... | 3 | 1,117 |
Dashing framework: defer rendering until DOM is loaded | <p>---edit---
I asked this question over on the project's Github, and it's been indicated that they're not set up to do what I want: <a href="https://github.com/Shopify/dashing/issues/617#issuecomment-142762194" rel="nofollow">https://github.com/Shopify/dashing/issues/617#issuecomment-142762194</a></p>
<blockquote>
... | 3 | 1,594 |
Difference in elapsed time of the query where everything in the trace seems to be identical | <p>While analysing the traces of the program , one before and one which I have run after creating two new indexes, I found some queries which are now having high runtime compared to previous run(which are not using any of the new indexes i have created and have identical execution plans). </p>
<p>One particular query ... | 3 | 1,036 |
I am making a contacts book application but when I save contacts the name is not displayed | <p><strong>This my contacts list page</strong></p>
<pre><code>class Contacts extends StatefulWidget with NavigationStates {
@override
_ContactsState createState() => _ContactsState();
}
class _ContactsState extends State<Contacts>{
DatabaseHelper databaseHelper = DatabaseHelper();
List<contacts&g... | 3 | 15,906 |
DJI SDK 4.7.1 crashes unceremoneously where 4.6 does not | <p>I'm trying to update my app to use the new 4.7.1 version, but as soon as I try to go to the activity where I'm using UXSDK Widgets, the app now crashes without additional log entries. After updating the SDK version, I made sure that my build.gradle, AndroidManifest.xml and proguard-rules.pro matched up in the releva... | 3 | 6,014 |
Swift / CoreLocation : North heading from didUpdateLocation | <p>Is it the way to get heading from inside the <code>didUpdateLocation</code> method ? I am grapple with task which is about sending the data about user location to container class called <code>Ping</code>. The Ping class have to contain basics user location as well as with <code>north heading</code>. </p>
<ul>
<li>I... | 3 | 1,829 |
JAVA: Serialization works good on Local Machine but when I do this in LAN it does not output correct | <p><strong>I want to send an object having OS Name to a server. This OS Name output should be of PC sending object but it displays OS Name of PC running server..</strong></p>
<p>Here is my code :</p>
<p>//Client : it can send data i.e. object to server
class Client </p>
<pre><code>{
private Socket socke... | 3 | 1,339 |
XSL sorting, but only when a certain attribute is false | <p>I'm currently sorting a Magento-generated XML file, which looks like:</p>
<pre><code><products>
<product>
<productnaam>Example item 1</productnaam>
<populariteit>27845</populariteit>
<imagelink>http://www.example.com/image1.jpg</imagelink>
</product... | 3 | 1,078 |
Null Pointer Exception in Custom Adapter | <p>I am developing a app but i am getting Null pointer exception in Custom adapter.
My custom-adapter code is as follow-</p>
<pre><code> public class CustomCursorAdapter extends CursorAdapter {
SQLiteDatabase dh = DatabaseHelpereKOT.getInstance().getDb();
private LayoutInflater mInflater;
private Context mConte... | 3 | 3,643 |
Syntax Error! >_< | <p>Guy's Cant seem to find my error in VB.Net ! my codes are all right ! but the function still won't save on the database cause of Syntax error in my Insert into statement ! Please help me ! :D!</p>
<p>This is my Code!:D!</p>
<pre><code>Dim Transaction As OleDb.OleDbTransaction = Nothing
Dim Connection As OleDb.OleD... | 3 | 1,129 |
Strange behaviour when rendering X-Axis ticks | <p>I'm rendering a chart with matplotlib through panda's <code>df.plot()</code> method, but somehow the tick labels on the X-Axis seem to be messed up. There seems to be a layer of numeric text above my "real" tick labels. I have no idea where this comes from. Strangely enough, this only happens in our produc... | 3 | 1,036 |
Why is my page loading without any css? | <p>So this problem has been bugging me for a few days now. I've been trying to get a working nightmode switch on my site. I've asked on here before and after what I thought was the solution, using help from this site and stack exchange, I started experiencing an annoying problem.</p>
<p>Here is a video of my problem: ... | 3 | 5,010 |
freeswitch pocketsphinx: install model language | <p>i'm using freeswitch with pocketsphinx for speech detection, it's working fine when i use english in grammar files, but now i want to use french, i already downloaded the french model from <a href="https://sourceforge.net/projects/cmusphinx/files/Acoustic%20and%20Language%20Models/French/" rel="nofollow noreferrer">... | 3 | 4,883 |
when i run this code on browser ,toolbar appears at the bottom how can i make it on top of browser | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code><style scoped>
.toolb{
position:absolute
top:0px;
}
</style></code></pre>
</div>
</div>
</p>
<p><div class="snipp... | 3 | 1,090 |
How to reset the pointer of a nested binary tree? | <p>In General, write a module to work with a binary tree. As values we have the word. The essence of the module, the search of words in the dictionary. And so, the problem: if you repeatedly call the function search with the word which is in the dictionary - it finds everything is OK. After enter few times wrong words,... | 3 | 2,379 |
average pooling C++ error | <pre><code>#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <math.h>
#include <fstream>
#include <iostream>
using namespace cv;
using namespace std;
#define ATD at<double>
Mat average_pooling2x2(Mat mat, int padding_mathed)
... | 3 | 1,507 |
Substring can't find what it should find | <p>I have a string (replacedLigning) containing y=3-2+4x-6. I want xVærdi (an ArrayList) to contain the x value. In the example y=3-2+4x-6 I want the xVærdi to store "4", since that's how many x'es there are. The initial value of xVærdi is none, and the problem is, that substring isn't able to find the "x", so the xVær... | 3 | 2,928 |
APP Stopped responding in fragment layout | <p>I am using fragment layout and when I finish saying It Stopped working.
what I need to add in this.</p>
<pre><code>package com.example.textspeech;
import java.util.ArrayList;
import java.util.Locale;
import javax.xml.transform.Result;
import android.app.Activity;
import android.app.Fragment;
import android.conte... | 3 | 1,366 |
mysql query running very slow. Please help me with indexes | <p>I'm trying to run a query which is taking 5 seconds to execute with 100000 rows. The query is given below. I've tried all possible indexes i could. Please suggest me what am i missing. </p>
<pre><code>select distinct db_books.bookid as id
, request_type.name as book_type
, request_type.id as book_type_id
, db_books... | 3 | 2,589 |
2 foreach in 1 table is not work correctly | <p>I'm try to loop 2 query inside one table . both query had 10 records . so i put my first foreach (or looping) before <strong>TR</strong> tag ..</p>
<p>here is example of the table that i want to create :</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="... | 3 | 5,811 |
How to remove white screen in between flutter -release build | <p>I had a problem with flutter -release build. I had a splash screen and then after that It should show some progress loading bar before it loaded my webview. In debug my code work perfectly, but after I use it on release apk. It will show white screen in between instead and the progressbar is not shown but will direc... | 3 | 1,698 |
Android Studio Bottom Bar Nav: How do I add to each fragment? | <p>I followed a tutorial online to create a Bottom Bar <code>Navigation</code>, but the guy didn't explain clearly how to add stuff to each fragment and swap between the fragments. I want to add an <code>EditText</code> to the home page as an example on how to add items to the fragments. Here's my code:</p>
<p><strong... | 3 | 2,296 |
Reading/Writing files using active bindings in R | <p>I am trying to implement in R SAS style libraries where you can define a library object which corresponds to a directory, then files to this disk by making assignments to the libraries members.</p>
<p>The code below works for files that already exist. So if you've got a directory with files already in it, you can ... | 3 | 1,403 |
Repaint method doesn't work or loop | <p><strong>I don't know if I'm using the method repaint corretly, i need to update the time of a digital clock, but even with a while loop trying to repaint, it doesn't work</strong></p>
<pre><code>public class Frame extends JFrame{
Calendar calendar = Calendar.getInstance();
int[] horaD = new int[14];
i... | 3 | 7,570 |
while loop for scanning user input table into array | <p>I am a super unintuitive beginner programming student working on a homework assignment. The program is to take an input table of hockey teams and game stats, calculate "points", and then output the table organized in a different way, with additional columns for points and games played. </p>
<p>So far, I haven't mad... | 3 | 1,132 |
Minimizing browser window in Firefox & Chrome adds white space to right of page | <p>As the title suggests, when I resize my Chrome or Firefox browser window, little by little, white space is added to the right side of the page. I fixed this by setting <code>width:100%</code>to <code>navbar-header</code>(refer to code below), but now it's caused another problem. I'm not sure if it's possible to cate... | 3 | 2,798 |
How to set reactive locale in all Vue3 Components? | <p>I have following project structure (<code>index.vue</code>):</p>
<pre><code><template>
<div class="container">
<navbar></navbar>
<social-media-bar></social-media-bar>
<main>
<home></home>
<news></news>
<vis... | 3 | 1,508 |
Keep the row immediately after a date (Pandas) | <p>I have a DataFrame which looks like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Record Date</th>
<th>Cutoff Date</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>A</td>
<td>2022-01-01</td>
<td>2022-01-31</td>
<td>1</td>
</tr>
<tr>
<td>A</td>
<td>2022-01-15</td>
<... | 3 | 1,203 |
Spinner setSelection data is going to vanish when scrolling ListView | <p>Hi I am new for android and in my ListView,I have added Spinner.</p>
<p>I am facing problem,when I have selected any item from spinner and,I scroll my ListView.
Spinner setSelection data is being vanished. </p>
<p>Please help me how can I resolve this problem ?</p>
<h2>MainActivity:-</h2>
<pre><code>public class... | 3 | 2,067 |
Binding an element from a ObservableCollection's list into a Treeview Checkbox | <p>I'm trying to create a treeview with an ObservableCollection, but I'm having a problem on obtaining the elements from a list in my object. What happens is that I can retrieve the group name, it displays on the list just fine, but then instead of getting the usernames I get a blank space. Here's some code:</p>
<pre>... | 3 | 1,121 |
creating a HMAC SHA256 key in python | <p>I'm trying to properly create a new HMAC key to interact with an API. However I keep on hitting obstacle after obstacle. I've copied the code from the API documents to create the authentication message but it keeps throwing errors.</p>
<pre><code>class CoinbaseExchangeAuth(AuthBase):
def __init__(self, api_key, ... | 3 | 1,087 |
Set Gridview Height as Percentage ASP.Net | <p>I have a gridview control on a page. My page all heights are in percentages. Since all divs are working fine. Only gridview does not accepting percentage because I put fixed header on gridview control to show its header.</p>
<p>If I give pixles to its class, it accept and put scrollbar aside. But if I give percenta... | 3 | 1,322 |
Top attribute won't update. Function only works when I set if function value = to initial top value in javascript | <p>I was working on collision detection and thought I would start out simple by testing when the object reaches a certain x-position. It works when I set it to 100, the initial top value for 'character, which leads me to believe the problem is with top updating; however, I don't see why the circles would be moving if t... | 3 | 2,060 |
clojure.test throws? not working in the repl | <p>Following the docstring in the source of <code>clojure.test</code>, I issue the following in the repl:</p>
<pre><code>(use 'clojure.test)
(is (thrown? ArithmeticException (/ 1 0)))
</code></pre>
<p>And other variations like substituting <em>ArithmeticException</em> with <em>java.lang.ArithmeticException</em>. Yet ... | 3 | 1,277 |
Commanding not working for checkbox | <p>I've used Prism commanding for a lot of controls but can't get it to work on the checkbox. But its not working for the checkbox. I do notice that when I place break points on my property declarations they are being hit so some piece of it is wrong. Here's my code:</p>
<pre><code>public class CheckBoxCommandBehavior... | 3 | 2,186 |
mbedtls_rsa_rsassa_pkcs1_v15_sign stack overflow | <p>I'm a hobbyist and this is my first dive into the world of C++ and embedded systems. I'm struggling a bit with <a href="https://tls.mbed.org/api/index.html" rel="nofollow noreferrer">mbedtls</a>.</p>
<p>I'm trying to create a JWT to <a href="https://developers.google.com/identity/protocols/oauth2/service-account#htt... | 3 | 2,357 |
Xamarin.Forms new project creation has countless errors. Something wrong with nuget? | <p>I am new to Visual Studio.</p>
<p>creating a new project with Xamarin.Forms template gives countless errors, such as</p>
<blockquote>
<p>"Can not resolve reference: <code>Xamarin.Forms.Xaml</code>, referenced by
<code>App4</code>. Please add a NuGet package or assembly reference for
<code>Xamarin.Forms.Xaml<... | 3 | 1,119 |
how to display real time record count of PHPexcel using Ajax? | <p>I want to display real-time record count at front end using <code>PHPexcel</code> and <code>Ajax</code>. I am doing this by creating JSON file and storing data into this. Can I have a better option to show record count in the HTML? It is taking so much time AS the JSON file opening and closing so many times. At the ... | 3 | 4,168 |
Nodejs addon static library link: missing symbols | <p>Its been a few years since I've done some C++ development. I'm trying to statically link the boost regex library and I'm getting the following errors when running </p>
<blockquote>
<p>node addon.js</p>
</blockquote>
<p>(i'm using the node-addon-examples/2_function_arguments example)</p>
<pre><code> node addon.... | 3 | 1,414 |
Flutter application not lunched on real device | <p>I am trying to lunch my flutter application on my mobile but When I run</p>
<pre><code>flutter run --verbose
</code></pre>
<p>I got this error :</p>
<pre><code> +2 ms] Stopping app 'app.apk' on SM A315G.
[ ] executing: /mnt/SSDP/Sdk/android/platform-tools/adb -s RR8R107K94E shell am force-stop com.parsapp
... | 3 | 1,150 |
Cannot find symbol in linked library | <p>I'm trying to create go app, which uses some C++ code from sdk in shared library.<br />
Added reference to target library with <code>#cgo LDFLAGS</code>:</p>
<pre><code>#cgo LDFLAGS: -L/opt/cprocsp/lib/amd64 -lxades -v
</code></pre>
<p>and build go app with</p>
<pre><code>go build -o main .
</code></pre>
<p>Compilat... | 3 | 1,600 |
Django CustomMiddleware causing csrf_token issues during log in | <p>I have been trying to implement this logic:</p>
<p>Whenever a user signs up, confirms his email, his account is active. However, in order to let the user gain full access to the website, he must enter some data first about his own self. I call it complete-profile.</p>
<p>I figured making a middleware is a good way... | 3 | 1,373 |
Getting Error in Scroll View Component of Kendo UI for angular2 | <p>i am currently working on angular2 project which uses kendo-ui scrollview for angular2
today when i open my code and did npm install and run the project i an getting error
here is full stack trace']</p>
<pre><code>Error: Uncaught (in promise): Error: Template parse errors:
TypeError: Cannot read property 'toUpperCa... | 3 | 2,190 |
Swipe to delete cell Height is decrease every time in xamarin ios | <p>I am new to iOS. I am creating TableView with swipe to delete the cell. But When I swipe every time the cell height is decrease. I am using iOS 10. The below code I have used.</p>
<p><strong>Code :</strong></p>
<pre><code>class AppointmentSourceClass : UITableViewSource
{
List<AppointmentItem> ap... | 3 | 1,093 |
Hour Minutes formatting using jquery/ javascript | <p>Hi I'm trying to work with time but unable to do so.</p>
<p>I have a text field where I'm getting the time by default. When the user alters the time I'm running jquery change event to check the time values. If the hours and minutes are within the permissible range. </p>
<p>Everything is working fine. <strong>But w... | 3 | 1,285 |
Generate a heatmap in MatPlotLib | <p>I've been attempting to generate a heatmap by following the top answer over here: <a href="https://stackoverflow.com/questions/2369492/generate-a-heatmap-in-matplotlib-using-a-scatter-data-set">Generate a heatmap in MatPlotLib using a scatter data set</a></p>
<p>With some help from you kind folk here I've shaped my... | 3 | 2,271 |
Picture size 0x10 is invalid | video codec is not opened.What should be the reason? | <p>Right now am using <code>RTMPStreamPublisher</code> to publish the video at wowzaserver from iphone application. i have downloaded some demo code from this GitHub Project <a href="https://github.com/slavavdovichenko/MediaLibDemos/tree/master/RTMPStreamPublisher" rel="nofollow">https://github.com/slavavdovichenko/Med... | 3 | 3,979 |
Why am I getting a different in div location? | <p>So I've created an image tagger that saves coordinates to the the database, and then I call those coordinates with an erb block on the main page which displays a div at said location (.tagged). However when the tags are displayed on the main page, they are not in the location they were in when I tagged them in the c... | 3 | 1,040 |
OpenGL - Color Layout Location Not Working | <p>So I have an array of Vertex objects, which look like this:</p>
<pre><code>Vertex: {[0.0, 0.0], [1.0, 1.0, 1.0, 1.0], [0.0, 0.0]}
Vertex: {[0.0, 512.0], [1.0, 1.0, 1.0, 1.0], [0.0, 1.0]}
Vertex: {[512.0, 0.0], [1.0, 1.0, 1.0, 1.0], [1.0, 0.0]}
Vertex: {[512.0, 512.0], [1.0, 1.0, 1.0, 1.0], [1.0, 1.0]}
</code></pre>... | 3 | 1,210 |
SceneKit – Particle transform animation along a path | <p>I am trying to achieve an airflow like animation along a custom node (loaded from <code>.usdz</code> file) but all I can achieve is that the particles flow all around or just stick to the node. How can I achieve that there is some kind of flow along the object?</p>
<p>The Object looks something like this:
<a href="h... | 3 | 1,631 |
ModuleNotFoundError: No module named 'ui' | <p>I am trying to run the following script from the pythonista drawing app example in IDLE on my macbook, but am getting the error "ModuleNotFoundError: No module named 'ui'"</p>
<p>Website for the UI itself: <a href="https://omz-software.com/pythonista/docs/ios/ui.html" rel="nofollow noreferrer">https://omz... | 3 | 1,623 |
SSIS script component buffer is not cleared | <p>I have very simple SSIS package which is using a Data flow inside foreachloop container to read multiple files together. The files are very simple which is having ID and Name as 2 columns.
I am having 4 files only the data is different in each file( Id is different).
Now I used flat file source then script component... | 3 | 1,106 |
ASP.NET MVC rendering sections for dynamically driven content (Widgets) | <p>I am receiving the following error in ASP.NET MVC. "the following sections have been defined but have not been rendered for the layout page" - Now I know what the error is about, but can't figure a way around it in fact it probably should work but I don't know why it won't. </p>
<p>I have an index.cshtml page which... | 3 | 1,298 |
Issue with extensions in Objective-C | <p>The following is a code snippet which deals with class extensions. What I am trying to do is generate a random ID called internal ID (that is used by the program later on) which is stored in an encrypted form in memory. The code fails to compile with both gcc and clang (I am running Objective C via GNUStep on Window... | 3 | 1,068 |
SVG Path optimization | <p>We have on our project a JSON file made by another team that helped to create dynamic SVG with binding. The problem with the JSON file is it contains duplicate and unoptimized paths.</p>
<p>I've decided to make a NodeJS script that scan the paths contained into the file and that optimize it.</p>
<p>A sample of an ... | 3 | 2,366 |
UITableViewCell Delete content | <p>I am having trouble with the reusable aspect of my UITableViewCell. I have different type of data going into the different cells. When the types of data are the same (example: only images) I have no problem because the new image over writes the old one. But when the types of data are the same they both are sticki... | 3 | 2,354 |
Android instantiate activity | <p>Hy
I am new to Android programming and I try to add a secon activity to my AndroidManifest.xml
But now my application isnt starting any more.
The error is:</p>
<pre><code>04-04 07:42:13.154: D/AndroidRuntime(809): Shutting down VM
04-04 07:42:13.154: W/dalvikvm(809): threadid=1: thread exiting with uncaught excepti... | 3 | 1,670 |
Destroy an istance in python | <p>So, the problem is: instead of destroying an object when it exits the canvas, it destroys it when I close the window, can you tell me the error please?</p>
<p>the objects are removed from the list, but they are not deleted, but if I delete the object before removing it from the list, it is not removed because it los... | 3 | 2,299 |
Updating Redux state by calling dispatch not working | <p>I have a redux that handles Authentication the responses are only access & refresh tokens, which the access token is sent as an authorization header, and if it has expired the refresh token is sent to get a new access token.</p>
<p><strong>this is the login Apicall</strong></p>
<pre><code> export const login = (... | 3 | 1,779 |
Can't sent web request from .Net web api to remote server | <p>I am trying to send a post request to my remote server from my .net web api project as mentioned below,</p>
<pre><code> [AcceptVerbs("GET", "POST")]
public string POST()
{
var values = new NameValueCollection();
values["login_id"] = "XXXX";
values["password"]... | 3 | 3,471 |
How to clone function from another module and set it AlwaysInline on LLVM pass? | <p>I want to clone a function from another bitcode module and set it AlwaysInline so that it can be inlined.
But an error occurs when applying such custom pass (It seems that the cause is the use of CloneFunction()). How can I fix it?</p>
<p>I'm using LLVM 3.6.0 on OS X and target is Android armeabi-v7a (It should be ... | 3 | 6,955 |
How to identify and solve memory leak and too many open file issue in groovy grails application? | <p>I am learning to look at heapdump to solve memory leaks. From the heap dump I can see <strong>217</strong> count for <strong>AuditLogger</strong> and <strong>SessionInterceptor</strong> classes. Does this mean there is a memory leak in these classes? </p>
<p>Particularly on the following lines</p>
<ol>
<li><p>Sess... | 3 | 6,632 |
how to improve neural network prediction, classification | <p>I am trying to learn some neural networks for fun. I decided to try to classify some pokemon legendary cards, from a data set from kaggle. I read up on documentations and followed machine learning mastery guides, while reading up on medium to try to understand the process. </p>
<p>My problem/ question : i tried pr... | 3 | 1,226 |
Converting curl request to android HttpURLConnection Post Request | <p>Hi iam developing an android app in which i used mailchimp service.In short
I have no knowledge of curl and i want to convert the following curl request to httpurlconnection post request.
Any help would appreciated and thanks in advanced.Here is the curl code</p>
<pre><code>curl --request POST \
--url 'https://usX.... | 3 | 1,274 |
Find all possible routes, from root to leaf, on a tree that has multiple children per node. | <p>I'm currently working on a project which requires me to find multiple routes, from a given station on the london underground. The project i'm having is the creation of routes. I have created a method with uses DFS and recursion.
This method takes in the name of the starting station, an empty List and an integer val... | 3 | 1,403 |
Why doesn't my Overlay function work in my browser | <p>i use a google chrome as my browser
and this my web page source</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="te... | 3 | 4,367 |
How to do Entity Framework/Linq join in query with where clause expressions | <p>I have a Entity Framework query where the where clauses' change based on several selections.<br />
Here is my code:</p>
<pre><code>Expression<Func<CtCsGroup, bool>> where_expression1 = x => 1 == 1;
Expression<Func<CtCsGroup, bool>> where_expression2 = x => 1 == 1;
Expression<Func<... | 3 | 1,971 |
How to serialize multiple relationship models in django rest framework | <p>I'm new to this Django rest framework and I'm trying to create an API. My model.py looks like the following</p>
<pre><code>class FieldTypes(models.Model):
field_type = models.CharField(max_length=255, null=False)
deleted = models.BooleanField(default=False)
class Forms(models.Model):
form_name = models... | 3 | 2,510 |
Automating insertion of mysql_real_escape_string | <p><strong>DISCLAIMER:</strong> I UNDERSTAND THE FUNCTIONS ARE ON TOP OF THE TO-DO-DEPRECATION LIST. ALL WARNINGS ARE JUST PREACHING TO THE CHOIR.</p>
<p>anyway. I have found myself in the employment of a company using the mysql_* functions. That isnt bad enough aparently because the entire thing is without <code>mysql... | 3 | 1,257 |
Use Object.factory without needing to cast to a specific type | <p>I'm trying to create a similar router to Rails ActionDispatch router, which allows you to define a route similar to </p>
<pre><code>map.get "/foo", :controller => "Foo", :action => "index"
</code></pre>
<p>which will then route <code>GET /foo</code> to <code>FooController#index</code>. With this structure in... | 3 | 1,047 |
Dynamicaly Naming Columns - Using SQL server 2008 | <p>I have query that that references a dynamic calander table, it updates aged periods based on the current date. I am using this table in another query, it sum's sales value based on aged QTR's. These values will update as time passes and I can assign colmn names such as 'AGED1Q' but I would like to find a way to us... | 3 | 1,412 |
I send variables to export.php through Ajax, but it is not received in export page | <p>I send variables to export.php through Ajax, but it is not received in export page. it shows</p>
<blockquote>
<p>Undefined index: name in D:\xampp\htdocs\Vergands - Admin1\export.php on line 2</p>
</blockquote>
<p>customer.php</p>
<pre><code><script type="text/javascript">
$(document).ready(function()... | 3 | 1,567 |
JsTree is not applied on a later built list | <p>I have an Angular2 web application which loads a ul/li-list from a remote JSON object when a button is clicked.
The generated div and list looks like this:</p>
<pre><code><div class="jstree jstree-1 jstree-default jstree-leaf" role="tree" aria-multiselectable="true" tabindex="0" aria-activedescendant="j1_loading... | 3 | 16,751 |
What is the correct LSTM input shape for a multivariate time-series? | <p>I have a multivariate timeseries with 5 features (5 independent timeseries). With these 5 features, I want to predict a target <code>y</code> which is also a timeseries. I have some ~50,000 observations in the data.</p>
<pre><code>data # pandas dataframe
>>>
x1 x2 x3 x4 ... | 3 | 1,663 |
Problem with reading from a file and put information into struct in C (different var in struct, return error, non-nested function with var modif type) | <p>I want to write a program, which will read from a text file and put information into struct. In struct I have the name of an element (which is char array), a symbol of an element (V - vector, S - scalar, M - array), dimension and value. Later I will write this struct into another file.
This is my file</p>
<pre><code... | 3 | 1,678 |
.UI converted to .Py falls in PyInstaller application | <p>I try to release python application, that uses Qt gui. To deploy app in fast and python-free way i used Pyinstaller
I converted my UI to py.</p>
<p>class Ui_MainWindow(object):</p>
<pre><code>def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(362, 669)
self.centralw... | 3 | 2,040 |
compare collection values with returned values from database | <p>I have the following class:</p>
<pre><code> public class players
{
public void LottoDraw(object sender, EventArgs e)
{
var connectionstring = "Server=C;Database=lotto;User Id=lottoadmin;Password=password;";
using (var con = new SqlConnection(connectionstring)) // Cr... | 3 | 1,100 |
How to load objects without using lazy loading? | <p>I have a project with EF, MVC and Web API. When we first created our models, the lists were virtual for enabling lazy loading. This gave the error <code>The 'ObjectContent1' type failed to serialize the response body for content type 'application/xml; charset=utf-8'.</code>, so we decided to remove the lazy loading.... | 3 | 1,493 |
dynamically loaded form controls & links not clickable | <ul>
<li><p>Content loaded through AJAX into a div isn't clickable until the user zooms the page. This seems to reset or remap some clickable zone definition somewhere.</p></li>
<li><p>In some other cases, the "clickable zone" gets just a bit off and you can notice it as the mouse cursor changes in the wrong area, not ... | 3 | 2,483 |
Case Statement for MyPosts Query Not Working | <p>I'm stuck on query I am trying to write. My goal is to create 3 use cases depending on how many posts are in category 24 for a slider. For no posts in category 24, I'd like to hide all the code. For one post in category 24, I'd like to output HTML that styles the single post. For multiple posts, I'd like to output H... | 3 | 1,054 |
Problem of sorting OpenMP threads into NUMA nodes by experiment | <p>I'm attempting to create a <code>std::vector<std::set<int>></code> with one set for each NUMA-node, containing the thread-ids obtained using <code>omp_get_thread_num()</code>.</p>
<p><strong>Topo</strong>:
<a href="https://i.stack.imgur.com/0Surw.png" rel="nofollow noreferrer"><img src="https://i.stack.i... | 3 | 1,967 |
Getting error while uploading image and files in CodeIgniter | <p>I have created an employee registration form but I'm getting errors in image uploading and storing in the image folder and also getting errors in document file uploading. and errors like
<strong>Error Number: 1048
Column 'resume' cannot be null
INSERT INTO <code>add_employee</code> (<code>photograph</code>, <code>na... | 3 | 13,859 |
Creating and Echoing an Array in PHP from a Complex XML Output | <p>I am trying to create an array with some of the data from this XML output. Given the way the data is structured I have found it to be quite tricky. I am trying to form an array with just the <code>MECHANICAL</code> <code>description</code> data. I would want my output to look something like: </p>
<p><code>Mechanica... | 3 | 4,692 |
Installing npm in Ubuntu | <p>I am truly struggling to install <code>npm</code>. I have installed the <code>nodejs</code> package successfully, but still my operating system <a href="https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_15.10_.28Wily_Werewolf.29" rel="nofollow noreferrer">Ubuntu 15.10</a> (Wily Werewolf) doesn't recognize ... | 3 | 1,672 |
Why am I getting this error? Please see the details | <p>I'm developing a material design app & for applying activity transition I have written the following code in my <code>MainActivity.java</code></p>
<p>My <code>MainActivity.java</code> file's code:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
public Toolbar toolbar;
public TabLa... | 3 | 2,473 |
Can't get last known location | <p>Not gonna lie, I'm very new in kotlin, that why I need analysis of full code.</p>
<p><strong>On start it asks for permissions (don't need any more it's just test project)
Pressing on the button supposed to change textView to my location</strong></p>
<p>This is the code:</p>
<pre><code>class MainActivity : AppCompatA... | 3 | 3,323 |
Java understanding inheritance: getter and setter from parents class | <p>Java beginner again. I am trying to understand how inheritance works and I think I kind of got it, but my code does not work as I expected and hard to figure out the reason why.</p>
<p>The problem is my getter and setter methods from the parents class. It doesn't seem that my code is calling them as I expect.</p>
... | 3 | 1,241 |
Action in another Screen with kivy | <p>I am trying to make a app that I can execute some function in a screen, but the function acts in other screen. So, I have an app with screenmanager, this app has two screen, and each screen has two buttons. A button do something in other screen, and the other button change screen. But I can't execute any action upon... | 3 | 1,422 |
Codeforces 519B Using Vectors vs Some Other Container | <p>To solve <a href="https://codeforces.com/problemset/problem/519/B" rel="nofollow noreferrer">519B</a> I created three vectors that each hold different numbers and occurrences of those numbers for each line. These vectors are also sorted.</p>
<p>eg if the line was 1 1 3 2, the vector would store <1, 2>, <2, ... | 3 | 1,224 |
VB LINQ query Where clause * not working? | <p>Here is a function I've setup with my query trying to retrieve specific information that a user may or may not enter into a couple text boxes. The user can put in a...</p>
<ul>
<li>company name </li>
<li>clients first name</li>
<li>techs first name</li>
</ul>
<p>What I want is if the user does not put in anything ... | 3 | 1,079 |
terraform: unable to link api gateway usage plan to stage, "api_stages.0.stage" is required | <p>I am somehow unable to create an API gateway usage plan to its stage even though I followed what was given in the <a href="https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_usage_plan" rel="nofollow noreferrer">docs</a>.</p>
<p>This is the block of resource code.</p>
<pre><code>... | 3 | 1,887 |
Error Code: 1366. Incorrect integer value: 'NULL' for column 'ReportsTo' at row 2 | <p>After creating Table when I am loading data from.csv file it is showing the error:</p>
<blockquote>
<p>"Error Code: 1366. Incorrect integer value: 'NULL' for column
'ReportsTo' at row 2".</p>
</blockquote>
<p>My csv file has null value in row 2. I have searched internet but i am not finding solution. I am ... | 3 | 3,219 |
Problem with pipe and redirection, create own shell | <p>I'm trying to recreate the shell implementation (<code>bash --posix</code>) of "<code>|</code>" and "<code>></code>" in c.</p>
<p>But I have trouble to find my problems with <code>fd</code>. When I do the following command: <code>echo heyy | wc > txt.txt | wc</code> everything is going smoo... | 3 | 1,533 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.