title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Can this subquery be made to use the index? | <p>First, apologies in advance for the wall of text. I did read through every similar question/answer I could find, but either the answers didn't seem applicable to my query, or I needed more clarity to understand the underlying problem and solution.</p>
<p>I have a table of file sizes along with related file dates a... | 3 | 4,633 |
Parsing JSON in android using Volley and StringRequest | <p>I am trying to parse a JSON object to listview in android.</p>
<pre><code> final ProgressDialog progressDialog = new ProgressDialog(this);
progressDialog.setMessage("Loading Data..");
progressDialog.show();
StringRequest stringRequest = new StringRequest(Request.Method.GET,
URL_DATA,
... | 3 | 1,278 |
PHP - forwardslash between main page and subpages | <p>Wondering how to have a forward slash between a main page and its subpages.</p>
<p><strong>Current outcome</strong>
mywebsite.com/page1-subpage.php</p>
<p><strong>Desired outcome:</strong>
mywebsite.com/page1/subpage.php</p>
<p>When trying to use a slash in this bit of code gives me an error message: "/".$page->u... | 3 | 1,846 |
How to set the modal shows something based on a button click? | <p>I really want that my Modal shows something based on which button inside it i press, but i have no idea of how to do this.
Actually i tried to use <code>if(isset($_POST['buttoname'])</code> </p>
<p>but looks like this dowsn't work <a href="https://i.stack.imgur.com/adKFk.png" rel="nofollow noreferrer"><img src="h... | 3 | 1,234 |
How to use the Universal Sentence Encoder Tensorflow model with ML.NET? | <p>I have C# code which invokes Python to compute compute Universal Sentence Encoder (USE) embeddings. However, I figured that it would probably be much cleaner to do this using ML.NET (and thus without involving Python). Thing is that I haven't worked with Tensorflow despite doing simple stuff like the above (and I do... | 3 | 1,550 |
Backdrop-filter for Navigation page too Slow | <p>Hey guys I want to put backdrop-filter to My Navigation. I am using simple toggle Button witch brings from the side my 100vh / 100vw div with my navigation. But when I give to the Navigation Div the "backdrop-filter: blur(10px);" the reveal of the Navigation becomes laggy. Here is my code:</p>
<p><div class="snippe... | 3 | 1,799 |
Null in array of objects | <p>So, I have a problem with REACT/REDUX, my array of objects returns a proper value but also return an undefined, and I don't know why. In redux dev tools it show's a null instead of undefined, also I have this error in console: <strong>Warning: Failed prop type: The prop <code>task</code> is marked as required in <co... | 3 | 1,225 |
My views are going out on when device resolution changes in react native | <p><strong>Problem:</strong></p>
<p>I have created a react native application in there I have codded a screen like this.</p>
<pre><code> <View style={styles.patientView}>
<View
style={[
styles.patientContainer,
{height: (dimensions.window.height * 2.9) / 4},
]}>
... | 3 | 9,990 |
Implemeting Shunting yard with Logic | <p>So I am trying to implement a shunting yard to work with Logic, I thought it was going to be easy, until I ran into the problem of setting a precedence for the material conditional(->) and bi-conditional(<->) statements since they need to be represented as String and not char. I need to be able to read a file wit... | 3 | 1,656 |
No data in response for a ajax action in ZF2 Controller | <p>The problem is that I don't have data in controller, in filterAction function.</p>
<p>I can see in firebug at Post:</p>
<pre><code>Source: daterange=2015%2F10%2F22+-+2015%2F10%2F22
</code></pre>
<p>at Response:</p>
<pre><code> {"daterange":null,"submit":null}
</code></pre>
<p>In the response at daterange I want... | 3 | 1,339 |
Spring Boot JPA: How do I connect multiple databases? | <p>I currently have one database connected and it is working. I would like to connect another (and eventually 2 more) databases. How do I do so? There should be a solution using only annotations and properties files.</p>
<p>I read this
<a href="https://i.stack.imgur.com/9lVT5.png" rel="nofollow noreferrer">Profile Sp... | 3 | 1,460 |
Regex Help in some Javascript code | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/5938115/regex-javascript-to-transform-degrees-decimal-minutes-to-decimal-degrees">Regex/Javascript to transform Degrees Decimal Minutes to Decimal Degrees</a> </p>
</blockquote>
<p>I have some javascript code t... | 3 | 1,026 |
Apache Kafka on Confluent Cloud - Incoherent offsets in partitioned topic and consumer lag | <p>I am finding a strange behaviour when using Kafka on Confluent Cloud. I have created a topic with the default partitioning value: 6.</p>
<p>My system consists of a Java Producer application that sends a message to that topic and a Kafka Streams application that reads from it and performs an operation per message.</... | 3 | 1,065 |
What is supported by broadcasting in tensorflow? How dimensions matches determined? | <p>I raised an issue in github at: <a href="https://github.com/tensorflow/tensorflow/issues/14924" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/issues/14924</a>. Here is the details.</p>
<p>This is OK:</p>
<pre><code>import tensorflow as tf
sess = tf.InteractiveSession()
xx = tf.constant(1, shap... | 3 | 3,464 |
[Java]How do you create a text file to store a single number and constantly update that number? | <p>This is the code I came up with to try to store a single number that will be constantly changed, but I am getting errors, I am doing this in Java GUI. I can't understand why it doesn't work. First time posting here on stackOverFlow.</p>
<pre><code>public void addPoints(int points, String fileName) throws IOExceptio... | 3 | 3,051 |
Slow Query - uses views | <p>Backend on the cloud using SQL Server Express 2008 R2
Frontend on Access 2013</p>
<p>I had a query that I recently had to add a subquery to to restrict the results. The query took about 1 second to run before, but now takes about 70+. I think the problem may be that I am using views in the query that are not index... | 3 | 2,526 |
How to load Photoshop png with LIBPNG? | <p>I am facing some problems to load some specific png images. Here are some helpful images.</p>
<ol>
<li>Image #1 www.silexars.com/image.png (Doesn't load properly)</li>
<li>Image #2 www.silexars.com/image2.png (Loads fine)</li>
<li>Screenshot of Image #1 rendered with OpenGL
<a href="http://www.silexars.com/screensh... | 3 | 1,134 |
Importing and Modifying Data in MySQL Workbench 6.0 | <p>I am new to MySQL and have not been coding for quite a few years. I am building a database in MySQL Workbench 6.0 and need to import multiple NEM12 text files from data logs. The text files have a Record Indicator (RI) as the first 3 characters (eg 200, 300, 900). </p>
<p>I need to get the second entry from the 200... | 3 | 4,071 |
Scrapy FormRequest parameter not working but showing all result instead | <p>I am scraping this webpage <a href="https://researchgrant.gov.sg/eservices/advanced-search/?keyword=&source=sharepoint&type=project&status=open&_pp_projectstatus=&_pp_hiname=&_pp_piname=&_pp_source=sharepoint&_pp_details=#project" rel="nofollow noreferrer">https://researchgrant.gov.sg... | 3 | 1,712 |
Append several tables into one with one different column in R | <p>I have a data frame after making several tables I would like to create a data frame that combines all tables into one data frame in order to export to excel. The only issue is the first variable is different in each table so <code>bind_rows</code> will not work.</p>
<p>Dummy sample data:</p>
<pre><code>df1 = data.f... | 3 | 2,070 |
How to maintain multiple independent stable git branches | <p>Here's a git problem. I'm making a <a href="https://github.com/globewalldesk/revuu" rel="nofollow noreferrer">programming study review app</a> in pure (command line) Ruby. This app allows the user to design and schedule reviews of programming tasks, manage the files in which the tasks are performed, and run the resu... | 3 | 1,096 |
Can not load jdbc driver Logstash with MariaDB | <p>I want to import data from mariaDB to elasticsearch using logstash
Logstash config file: </p>
<pre><code>input {
jdbc {
jdbc_driver_library => "/<file path>/mariadb-java-client-2.4.2.jar"
jdbc_driver_class => "java::org.mariadb.jdbc.Driver"
jdbc_connection_string => "jdbc:mariadb://<... | 3 | 1,526 |
log statements are not going into mentioned log files | <p>I have log4jConfig.xml as shown below</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="false" xmlns:log4j='http://jakarta.apache.org/log4j/'>
<appender name="abcLog4j" class="org.apache.log4j.RollingFileApp... | 3 | 1,238 |
Slow Database Access from GCP Cloud Run | <p>Calling the POST method in the following code takes about 35ms when run on a GCP virtual machine (as a container), but when deployed to GCP Cloud Run (as a container) it runs much slower, taking about 6500ms, almost 200x slower.</p>
<p>I generously increased the Cloud Run CPU and memory allocations but the speed rem... | 3 | 2,230 |
Regex URL with query parameters from unbroken string in .Net 5 | <p>I receive encoded binary array which i decode to reveal urls surrounded by unrelated characters:</p>
<blockquote>
<p>\0\0\0\u0001\0\0\0,\0,models.attaches.AttachImage\0\0\0u\0\0\0\u0003\0\0\0\0\u001b@�K����\u0005(��\u0005(��\0\0\u0001vt�\u0004`\0\0\0!\0!models.ImageList\0\0\0\u0005\0\0\0\u0001\0\0\0K\0\0\0*\0\0\0�\0... | 3 | 1,278 |
Error: Cannot find control with path of arrayname => formarray inside mat table in angular8? | <p>HTML:(Here I have a table with formArray.I want to patch Value When I select the Value from Pomaterials array.It is there bottom of the table. but When i select the item, its throwing error,cannot find control with path.I have tried formControls instead of datasource, still its giving same error. can you help me?)</... | 3 | 2,381 |
Show data in table view from mysql using alamofire and swiftyjson | <p>I have a php script on my server which is just a basic sql SELECT statement which gets some data from a mysql database and it returns a number of rows. </p>
<p>I have used alamofire and swiftyjson to print the data out to console but I want to show it in a table view. </p>
<p>Due to the call not being in the same ... | 3 | 1,410 |
Compile time constants wont work in mac os x in .net core | <p>So i'm currently trying to use compile time constants in my csproj using .net standard 2.0 with inspiration from here : <a href="https://github.com/Microsoft/msbuild/issues/539" rel="nofollow noreferrer">https://github.com/Microsoft/msbuild/issues/539</a></p>
<p>As you can see in the documentation $(OS) returns Uni... | 3 | 1,576 |
How to view/remove control characters from log file | <p>I upload a log file from snort to hadoop manually ,,When I open it in hadoop it appears in this unknown format :</p>
<p>" �ò� "</p>
<p>And when i open it in vi it show in this way :</p>
<p>º^_'^@^@^A^A^H$
^@^OàQ^FÉ-ü^W^C^C^Bô^@^@^@^@^@^@^@G/~f¬!®x^_5^N©^TÓ b$
^Q5¦9<85>^[ÍjEñ<83><95>2×@£,æcÖj<82><... | 3 | 4,931 |
Can/should we use/require node_modules included by my dependencies' node_modules? | <p><strong>Scenario</strong>:<br>
<em>Imagine</em> you are building a web application using a framework such as <code>hapi</code> and you <em>know</em> that when you <code>npm install hapi --save</code> it installs several "<em>utilities</em>" in <em>it's</em> <a href="https://github.com/hapijs/hapi/blob/master/package... | 3 | 1,034 |
How to find data in mongoose? | <p>I tried this command but it doesnt have an output.
I want to find the formatted_address with the Iligan City, Lanao del Norte, Philippines.</p>
<p>Postjob.find({'location.results[2].formatted_address': 'Iligan City, Lanao del Norte, Philippines'})</p>
<pre><code>{
"user": ObjectId("5557411628f66792558f60d3"),
... | 3 | 6,873 |
Why does html body have overflow? | <p>I am learning front-end development by trying to clone <a href="https://mozilladevelopers.github.io/playground/" rel="nofollow noreferrer">https://mozilladevelopers.github.io/playground/</a> . Everything is fine, except that in devtools, <code><body></code> element has overflow, which can be traced down to ove... | 3 | 3,441 |
Trouble in retrieving window size and widget size | <p>Here is the code for a camera surveillance system. In the <code>configuration_page.py</code> file I'm getting the size of the window as <strong>100x30</strong> despite using <code>self.showMaximized()</code> and <code>resizeEvent()</code>. The widgets present in it are also showing the size as <strong>640x480</stron... | 3 | 6,703 |
ASP.NET Core app on Ubuntu on Rasberry PI with Kestrel Web Server | <p>i have developed an AST.NET Core app targeting core version "2.0.0-preview1-001875-00"</p>
<p>When i run my app on my Windows dev-machine or an ubuntu desktop everthings works fine. But when i try to run it on ubuntu 16.04 on an raspberry 3 i get an nullrefexception from the kestrel webserver.</p>
<p>The stack is ... | 3 | 1,093 |
Elements of matrix not being stored correctly after reading from a text file | <p>I am currently trying to read a matrix from a text file in c and I am trying to store the elements of the matrix in a 2D array in c.</p>
<p>For example in a text file called "Matrix.txt" I currently have the following 3X16 matrix:</p>
<pre><code>0 0 1 0 0 0 0 1 0 1 0 0 1 0 0 0
0 ... | 3 | 1,366 |
amCharts not displaying when the page loads in AngularJs | <p>I am using amCharts to display some data and calling this in my init function. The following is my code:</p>
<pre><code>export default class ACtrl {
constructor($scope, $http, $state) {
var sampleCharts = function () {
let sampleChart;
let sampleBarGraph;
let sampl... | 3 | 1,499 |
Magento configurable product slow with strace showing thousands of stat calls to /usr/share/zoneinfo | <p>After creating a Configurable Product with roughly 120 associated products, the product page is incredibly slow to load with the Apache2 worker process spiking to 100% CPU usage. After rolling back code a few times to ensure this was nothing new that our dev team pushed, I decided to have a closer look with <code>st... | 3 | 1,199 |
Complicated Django ModelForm validation with OneToOneField and customed argument | <p>Sorry for the lengthy question. I have a complicated situation with django modelform validation. I have a model UserProject ready and created many objects. I also have another model Action_Inputs to accept multiple parameters, which is a onetoonefield relation with UserProject. I do need customed input argument for ... | 3 | 1,092 |
wcf configuration issues (error) | <p>Configuration of WCF has been a bane recently. I have the following configuration:</p>
<pre><code> <system.serviceModel>
<!-- Set up Custom Behaviors -->
<behaviors>
<endpointBehaviors>
<behavior name="jsonBehavior">
<enableWebScript />
... | 3 | 2,075 |
How to change Gatsby Link text with getProps and setState | <p>The header.js of my Gatsby website contains a simple navigation with a logo and a link. If the About Page is active:</p>
<ul>
<li>Link text should change from "About" to "Close"</li>
<li>Link URL should change from "/about" to "/"</li>
</ul>
<p>See the code of the header.js be... | 3 | 1,212 |
Inheritance between 2 django classes | <p>I would like to inherite method from a first class to a second one separated in two different files. I'm getting a little issue according to arguments given in my method.</p>
<p>I have a file named : <strong>main.py</strong></p>
<pre><code>class CustomCreateView(LoginRequiredMixin, SuccessMessageMixin, CreateView)... | 3 | 1,446 |
jQuery validate additional methods on select combos drops error | <p>I have a form where I want to validate some dropdown combination(one field must have selected value) where the select combos are using selectpicker. </p>
<p>for this purpose I use jQuery validate with the additional methods</p>
<p>the validation script looks as it follows</p>
<pre><code>var timesRegister = $('#re... | 3 | 4,385 |
Group by Id and create an array from the grouped data | <p>In my angular application, i am getting the response as follows.</p>
<pre class="lang-js prettyprint-override"><code>[{
"proposalId": "cc0bcd90-fc75-4c73-bd66-799b37330fb5",
"proposalGpId": "cc0bcd90-fc75-4c73-bd66-799b37380fb5",
"eventId": "17e69ea1-54da-11e7-9469-985aebe2005e",
"listingId": "pdf19... | 3 | 1,083 |
2 chart HighChart Print to PDF | <p>i have 2 (or more) chart on highchart and need print to PDF. i use PDf export form highchrt, it can be printed but just printed 1 chart. what's wrong with my code?
or any solution for my issue?</p>
<p>this is my code.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="fal... | 3 | 1,105 |
How to resolve stripe working on localhost but not on aws | <p>i have a gatsby website hosted on aws s3, i implemented a checkout page using the loadstripe function from stripe/stripe-js package. the code works fine on my local machine but when i deploy to s3 i get an error opening the stripe checkout session page.</p>
<p>below is the code:</p>
<pre><code>import React, { useEff... | 3 | 6,501 |
How to return IEnumerable<T> as null | <p>I am having the below <code>ActivitiesDB.cs</code> which is a DBEntity class.</p>
<pre><code>public class ActivitiesDB
{
public IEnumerable<Activity> Activities { get; set; }
}
public class Activity
{
public Guid ActivityId { get ;set; }
public DateTime ActivityDateTime { get; set; }
public DateTime UpdatedDa... | 3 | 1,554 |
Query Performance in SQL Server | <p>I have a SQL Server table with over 11 million records. These records are organized by "Category" and "Platform". I am stumped by the following scenario ... </p>
<pre><code>SELECT COUNT(*) FROM TableName WHERE Category = 'session' AND Platform = 'windows';
-- Returns 1261500
SELECT COUNT(*) FROM TableName WHERE Ca... | 3 | 1,378 |
Up or down voted content shows HTML code on vote | <p>Whenever I click up or down vote on my PHP/MySQL/JS vote system, it shows long list of HTML code. I don't know what is error, some people suggested me removing <code>unique_content_id</code> because there is blank row in table for that attribute and we don't know why. I will give it a shot and post here.</p>
<p>Err... | 3 | 2,325 |
view of multiple tables makes site slow | <p>I have developed a portal where I have multiple tables.
To get the search result I have created a view which takes data from multiple tables.While searching it takes too much time to load the data. I don't know how to solve it. Please help me.</p>
<p>Here is the view I have created</p>
<pre><code>CREATE VIEW `salo... | 3 | 1,535 |
ClassNotFoundException when ORMLite tries to create database table with an image on android | <p>Hi I am using ORMLite for database access. After I add a table with an image it crashes with a <code>ClassNotFoundException</code>.</p>
<pre><code>@DatabaseField (dataType = DataType.SERIALIZABLE)
private Image image;
</code></pre>
<p>The following error occured in the <em>onCreate</em> method of the subclass of <... | 3 | 2,677 |
How to put GameCenter on application with swift? | <p>I made a game using SpriteKit and Xcode 7 beta. I tried to add GameCenter and Leaderboard but the problem is that the score in the leaderboard won't change (HighScore doesn't upload to GameCenter), It stay 0 all the time and I don't know how to fix it. I'm using 2 different files: GameViewController.swift, and Point... | 3 | 1,124 |
Using Charts. Swift 2.2 | <p>I am very new to Charts so please bear with me!
I have installed the 'Charts' CocoaPod (ByDaniel Cohen Gindi and Philipp Jahoda) and so far i have the following:</p>
<p><a href="https://i.stack.imgur.com/l2Cau.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l2Cau.png" alt="enter image description... | 3 | 1,210 |
symfony2 multiple file upload | <blockquote>
<p>I want to insert multiple images to each entity
because this code it works well, but it takes the last image add only.
Is there a way to upload all images with Symfony2 using a simple form? </p>
</blockquote>
<p>equipe entity
<pre><code>namespace Examen\CoupedumondeBundle\Entity;
use Doctr... | 3 | 2,941 |
Openstack Python SDK - Glance does not return image MD5 | <p>I'm trying to download an OpenStack image from glance using only the Openstack Python SDK, but I only get this error:</p>
<pre><code>Traceback (most recent call last):
File "/home/openstack/discovery/discovery.py", line 222, in <module>
main(sys.argv[1:])
File "/home/openstack/discovery/discovery.py",... | 3 | 1,101 |
Dialog doesn't "pop up" but redirects the entire page | <p>I am currently working on a calendar using the Fullcalendar jquery plugin.
I need a dialog to be opened when you click an event.
When I click an event on the calender for a split second I get the gray background you get when you open a dialog, then the dialog that is supposed to pop-up just clears the page and opens... | 3 | 1,029 |
Real-time counter using Tensorflow object detection API | <p>Im currently working on real-time object detection using tensorflow API.I've gotten that figured out, but right now I would like to add in object counter. So, I'll have real-time object detection + counter.</p>
<p>The source code for object detection was taken from tensorflow ipynb tutorial and I added OpenCV for r... | 3 | 2,176 |
C# My form objects don't work properly after application running a while | <p>I have 2 pictureboxes and a couple of labels and buttons in my form. The application reads variables from a PLC to draw a graph on pictureboxes and checks if any alarm has been occured by reading variables from PLC. I have 3 timers working at 0.5, 1 and 30 seconds interval for each one. After a while, pictureboxes g... | 3 | 7,742 |
PHP PDO Exceptions | <p><br>
I have a problem which I couldn't solve for a long time. I have a simple DB class like this one</p>
<pre><code>class DB {
private static $dbserver = "mysql:dbname=db;host=localhost";
private static $dbuser = "root";
private static $dbpass = "";
public static function connectDB() {
@$... | 3 | 2,018 |
ProtocolBuffer can't define data although it is received | <p>I'm trying to use Google's ProtocolBuffer to send/receive data in a server/client architecture. I am able to connect the two with winsock and I am able to send and receive data from ProtocolBuffer with it but there seems to be a problem with deserializing the data on the server (I haven't done the opposite so I can'... | 3 | 1,117 |
Google places APi android parsing JSon | <p>sorry about my question but im an android beginner and im building an android application that gets user's location (longitude and latitude) and return places within 3 kms. in order to do this i have to send a request to google and parse the json object, i followed a tutorial and im now stuck! everytime i run the ap... | 3 | 1,180 |
JQuery Slideshow error. Pictures list down the page instead of shuffling. Can't find the error | <p>Okay so i've been coding a website for my friend and I had everything working and almost ready to publish. But I may have altered something along the way and screwed up the syntax. It could be something as small as a semi-colon (i've searched so it's not that :]). I didnt want to have to ask for your help but I'm st... | 3 | 2,705 |
What is the correct configuration for a CXF SOAP Service with UsernameTokenSignature? | <p>I'm trying to setup a CXF Service and Client using UsernameTokenSignature. Startingpoint is an existing, code first, service. Unfortunatly all examples I found use WS-Policy, which is - as I understand - not supported by CXF in a code first scenario.</p>
<p>I managed to create a client which sends messages like I e... | 3 | 1,132 |
javascript index() of form inputs and selects | <p>I have a series of inputs and selects mixed together in an html form:</p>
<pre><code><th><input type="text" id="bGroup" name="search_group" /></th>
<th><input type="text" id="bEvent" name="search_event" /></th>
<th><input type="text" id="bBenefactor" name="search_ben... | 3 | 1,034 |
Kivy MDBoxLayout keeps increasing width automatically when running, raised [CRITICAL] [Clock] Warning | <p>When I add a ChatBubble in my app, that ChatBubble will automatically increase its width for each millisecond although its size is already given.</p>
<p>The issue shown in the command prompt is</p>
<blockquote>
<p>[CRITICAL] [Clock ] Warning, too much iteration done before the
next frame. Check your code, or i... | 3 | 1,994 |
I wanted to perform crud operations for Admin Panel of an ecommerce project but not able to edit image gallery in asp.net core | <p>ProductModel class file</p>
<pre><code> public class ProductModel
{
public int ProductID { get; set; }
public string ProductName { get; set; }
public string ProductDesc { get; set; }
public string Image { get; set; }
publi... | 3 | 10,387 |
How to make activity indicator needs to be placed centre in all devices using constraints programmatically in swift 3? | <p>Here I am having customized activity indicator to place centre in all devices but I am unable to place it centre can anyone help me how to implement this ? </p>
<p>here is the code for activity indicator</p>
<pre><code> func showActivityIndicator(uiView: UIView) {
container.frame = uiView.frame
con... | 3 | 1,087 |
prevent parent directive call in child element click event | <p>Here i have created pop-over directive , i need to apply this to parent as well as child of it . when i click on child so parent direwctive is also displayed .how can i prevent event propgation to parent. how to use jquery <code>event.StopPropogation ()</code> ?</p>
<p><a href="http://jsfiddle.net/JNqqU/279/" rel... | 3 | 2,181 |
Django - Select2 Lookup no ajax request | <p>I am trying to use select2 to do ajax lookups within my app. On the form template I have the following code:</p>
<pre><code><input class="form-control select2-hidden-accessible" id="id_tag_fk" name="tag_fk" placeholder="Tag fk" required="true" type="text" tabindex="-1" aria-hidden="true">
<script src="//c... | 3 | 1,321 |
Silverlight + Bitmapcache: can't get it to work | <p>I'm optimizing a silverlight application which uses a lot of images (GIS style, display tiled images, zoom/pan/etc.), and I was thinking of using the bitmapcaching functionality which should offload a bunch of things to the GPU.</p>
<p>However, I can't seem to get it to work. My host page contains the correct param... | 3 | 1,160 |
why did not worked validation in react component | <p>problem image is here-->
<a href="https://postimg.cc/4mYB30C6" rel="nofollow noreferrer">https://postimg.cc/4mYB30C6</a></p>
<p><strong>There are two problems</strong></p>
<p><strong>One:</strong> warning me the controlled component to uncontrol though I use handler event;</p>
<p><strong>Second:</strong> js incl... | 3 | 1,912 |
SOAP Security Header - Cerificates? | <p>SOAP is not one of my friends, so let me please kindly ask for some help.</p>
<p>I have a request to create a SOAP messages to send data to external service.
It have to be authentificated and signed by certificate.</p>
<p>Bellow is show how it should look like - this is a part of the header - "Security".</p>
<p>L... | 3 | 4,942 |
creating multi-line charts as a reusable component | <p>I think I'm almost there. I have a working version for a single line that updates dynamically, but am having trouble getting to the multi-line part. I believe it has something to do with the way the data is being filtered at _selection.each. Not sure the best way to proceed from here though. The example found here (... | 3 | 1,652 |
jQuery UI Tabs not disposing of resources | <p>I have three pages, <code>admin.php</code>, <code>user_admin.php</code>, and <code>client_admin.php</code> with corresponding JS source files <code>admin.js</code>, <code>user_admin.js</code>, and <code>client_admin.js</code>, and I'm having a problem with jQuery UI's tabs not disposing of resources properly.</p>
<... | 3 | 1,079 |
Bottom item cut in reyclerview in android | <p>Hey I am working in constraint layout with recylerview. My bottom item is cut in the screen. I read this stack overflow <a href="https://stackoverflow.com/q/32742724/18958467">post</a>. I don't want to use relative layout or linear layout. Can someone guide me how to fix this in constraint layout.</p>
<p><strong>abc... | 3 | 1,889 |
Basic operations with UI components in Android | <p><strong>EDITED</strong> </p>
<p>I've created a simple UI in Android Studio which requires to use Button, Radio Group, Edit Text etc.</p>
<ol>
<li>So every time I press the radio button, it toasts the message which button was pressed. </li>
<li>If I type a specific word in search bar, in my example "Car", and the... | 3 | 1,878 |
Why don't the buttons change color when i click them? | <p>My code isn't giving me what i want. When i click it, it turns blue until let go and then turns back to white. I want the buttons to change colour when they're clicked. So if i click it once, i want it to change to blue. And if i click it again, change from blue to red, and do this for 6 total colors (white, blue, g... | 3 | 1,313 |
I keep getting the wrong output for my Monty Hall game stimulator in python 3 | <p>I'm trying to recreate the Monty Hall game (<a href="http://mathworld.wolfram.com/MontyHallProblem.html" rel="nofollow noreferrer">here is a description of the game)</a>
Where it will ask the user to enter a number (my code asks to 'Enter a random seed') to begin, if the user doesn't enter a number, the game will di... | 3 | 1,656 |
CSS Flex ignoring certain child elements | <p>I'm pretty new to learning CSS and flex, and I'm having some difficulty with some of my flex containers. I'll put my code below, but essentially: the child elements of the flex container are divs, each containing an image with a subtitle below. These divs are also flex elements themselves. The images load with the a... | 3 | 1,095 |
Enzyme mount not calling useEffect; react-testing-library render not calling useEffect | <p>I'm trying out testing React hooks with Enzyme's mount. It looks like the React hook useEffect is not being called. </p>
<p>This is my functional component: </p>
<pre><code>export function HelloFetch() {
type HelloData = { Message: any }
const initialHelloData : HelloData = { Message: "" };
const url = `ht... | 3 | 1,327 |
ListView repeats Values | <p>I am making an app to display data from Mysql database. I used ListView, But I have a problem with the list view if I have the data as the followings :
a
b
c
d
to z.
The listView displays the number of the records correctly, but the records are repeated and when I go down then I go up to the first row I find tha... | 3 | 3,182 |
can not populate boostrap calendar using angularjs | <p>I'm using the following libraries,</p>
<pre><code>Angularjs
boostrap
datepair https://jonthornton.github.io/Datepair.js/
jQuery timepicker
</code></pre>
<p>I'm building a leave request application where employees can schedule time off by selecting start date, start time, end time, end date. I'm using Jon Thornton'... | 3 | 1,168 |
Bootstrap Supersized JQuery Error Mobile Device Layout | <p>I am having a probably very simple problem. I am using Twitter Boostrap as a framework to develop some landing pages as well as Supersized Jquery Slider within the header of my site. The problem occurs when the website is viewed on a mobile device or when the browser windows is shrunk.</p>
<p>Supersized seems to ... | 3 | 1,215 |
Why my observableArray is not working? | <p>Hi I'm trying to do a foreach using a observableArray and I'm getting:</p>
<pre><code>Uncaught Error: Unable to parse bindings.
Message: ReferenceError: Nome is not defined;
Bindings value: text: Nome
</code></pre>
<p>Here's my HTML:</p>
<pre><code><table data-bind="foreach: funcionarios">
<tr>
... | 3 | 1,071 |
Unfortunate, myAppName has stopped. Thread already started - Kotlin | <p>I really need help here. I'm sorry to ask this that may look simple. It's about threads. I just start learning about it. I have looked all over the internet, but nothing solve my problem.</p>
<p>My app work when I start running it. But, if it loose focus and resume, it crash. It gives a "Unfortunately, myAppNam... | 3 | 1,848 |
How to add padding completely around a bitmap programmatically? | <p>I'm trying to add padding to a bitmap programmatically however, when I add the padding to the top, it's removed from the bottom. When I add it to the bottom, it's removed from the top.</p>
<p>Adding padding to the top</p>
<p><a href="https://i.stack.imgur.com/EsGNG.png" rel="nofollow noreferrer"><img src="https://i.... | 3 | 1,673 |
How to speed up the page render and operations of a dynamic HTML element (use ngFor and ngSwitchCase) | <h3>Problem:</h3>
<p>I have a two-layer <code>ngFor</code> Angular template. Inside the <code>ngFor</code>, I use lots of <code>ngSwitchCase</code> to choose what kind of HTML element which I want to show dynamically. </p>
<p>This page is successful showing what I want but the render speed and operations of this page... | 3 | 4,837 |
TextViewEx, (Textjustify) | <p>my problem is this, using TextViewEx (<a href="https://github.com/bluejamesbond/TextJustify-Android" rel="nofollow">https://github.com/bluejamesbond/TextJustify-Android</a>) class texts to justify my android application works fine until the text over a carriage return appear \ n, when this happens the text is cut lo... | 3 | 2,204 |
Effective way to find the maximum points in an array with sufficent distance from each other with Numpy | <p>I have an array of number (like time series) and I want to certain number of high values. The high values (local maxima) should be far enough from each other. My solution:</p>
<ol>
<li>find maxima in the whole arrray</li>
<li>clear surrounding around maxima (override the values with any small value)</li>
<li>repeat<... | 3 | 1,102 |
Typescript generic type - Type 'keyof T1' cannot be used to index type | <p>I have functions to validate forms, I want the function to be in a separate file, but I have a type problem for <code>validationRequirements[fieldName]</code> i getting error <code>Type 'keyof T1' cannot be used to index type '{ name: (value: string) => boolean; }'.</code></p>
<p>Here is my validations requiremen... | 3 | 1,067 |
Creating subdirectories within a directory and be able to save data into it | <p>I'm new to android developing, and I'm in need of help. I've got two problems which are: </p>
<ol>
<li>I don't know how to create two subdirectories inside my main directory. I know how to create subdirectory inside of a directory (<code>File directory = new File(Environment.getExternalStorageDirectory()+"Saling-Wi... | 3 | 1,174 |
How can I use the Scala REPL to test java code - java and scala REPL giving different outputs | <p>I am trying to use the REPL for testing my java code. I had set my class path and launched the REPL and I could access my application classes inside REPL.</p>
<p>I launched a method which makes a webservice call and it is throwing a java.lang.ClassCastException. I wrote a java program which does the same thing as t... | 3 | 1,187 |
What is the difference between Open in Live Server and Open in Default browser | <p>I am trying to make a music player with a song visualizer. All my songs are on my PC.</p>
<p>For making the visualizer, I am using this code.</p>
<pre><code>window.addEventListener('load', () => {
canvas = document.getElementById("cnv1");
context = canvas.getContext("2d");
audioctx... | 3 | 1,094 |
How can I make an element re-appear? | <p>I've build a simple Expense Tracker that contains 3 inputs</p>
<p><strong>Name input</strong></p>
<p><strong>Date input</strong></p>
<p><strong>Amount input</strong></p>
<p>After the user fills these 3 inputs, they can click a button to add the expense into a table and store it there. If they want to remove an expen... | 3 | 2,269 |
Dialog Fragment does not appear when image is clicked | <p>I (think) I have configured my code such that when an Image is clicked, then it opens a Dialog with some information. However, when I click the image, instead of the Dialog opening, it says that <code>MY_APP has stopped</code> on the device screen.</p>
<p>I am using Android studio for this and I don't get any compi... | 3 | 2,817 |
Image classification, network not learning anything | <p>So i am deshuffleing images, where they have each 4 corners at a random possition.</p>
<pre><code>EPOCHS = 5
activation_function = nn.LeakyReLU()
LossList, AccuracyList, tllist,trlist,bllist,brlist,= [], [], [], [], [], []
model = MyModel(1, activation_function).to("cuda")
optimizer = torch.optim.Adam(m... | 3 | 2,454 |
TextInputLayout/TextInputEditText is causing exception after hint color replacement | <p>I'm using TextInputEditText inside TextInputLayout and it worked perfectly since today. I just changed attribute for color and it caused this error:</p>
<pre><code>android.view.InflateException: Binary XML file line #97: Binary XML file line #8: Error inflating class com.google.android.material.textfield.TextInputLa... | 3 | 3,630 |
Invalid CSS Property only on Android Device | <p>I am attempting to make a cross platform application using <a href="http://cordova.apache.org/" rel="nofollow noreferrer">Cordova</a> and utilizing the <a href="http://ionicframework.com/" rel="nofollow noreferrer">Ionic Framework</a>. It had seemed to be working perfectly until I tried to run the app with the actua... | 3 | 2,771 |
Alternative to $addToSet to process elements in an array (instead of the array as a whole) | <p>I have a collection in MongoDB with documents which follow this pattern:</p>
<pre><code>{
"_id" : {
"id" : "ID1",
"type" : "TYPE1"
},
"attrs" : [
{
"name" : "ATTR1",
"value" : "foo"
... | 3 | 1,764 |
Mapping a function to each participant of a study | <p>I have been trying to apply a function to this data set that consists of data from single studies AB designed. It consists of 6 variables: a. Tier (number of AB cycle, in this particular data set is always 1 because all studies are AB designed); b. ID (participant ID code), c. Scale (type of scale on which participa... | 3 | 3,074 |
Python cannot receive the result from cuda ctypes | <p>cuda script</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include<iostream>
using namespace std;
# define DELLEXPORT extern "C" __declspec(dllexport)
__global__ void MatAdd (const double *cellbox, const double *verticess, double *C,
... | 3 | 2,821 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.