title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
react-leaflet, markers re-render when the popup is opened/closed | <p>The problem is that every time I hover on a marker a popup is opened or closed and it causes all the markers to re-render even though my state is not changing. <code>console.log(myState);</code> is running every time I hover in and out of the marker.</p>
<p>I tried to use useMemo hook but couldn't figure out how to... | 2 | 1,408 |
Capitalized fields with POJO Input Handlers for Java AWS Lambda | <p>According to the documentation described here: <a href="http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-req-resp.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-req-resp.html</a> one can create its own POJO to serialise input and output for Java A... | 2 | 1,320 |
net.sf.jasperreports.engine.JRRuntimeException: Function MONTH not found | <p>I'm working in a desktop application for generating reports with Java Swing and Jasper Reports. Some days ago I ran into a problem because of a Groovy function that my code was not able to find. I found <a href="https://stackoverflow.com/a/19459016/5310721">this answer</a> and the problem was solved (note I left a c... | 2 | 5,477 |
IllegalStateException: CompositionLocal LocalConfiguration not present Android | <p>I'm trying to use <code>staticCompositionLocalOf</code> in Jetpack Compose according to this <a href="https://gustav-karlsson.medium.com/extending-the-jetpack-compose-material-theme-with-more-colors-e1b849390d50" rel="nofollow noreferrer">article on Medium</a>.
This is my ProvidableCompositionLocal</p>
<pre class="l... | 2 | 2,414 |
Problems with WinASM and "Zen of Assembly" (book) | <p>I have a book called "Zen of Assembly" by Michael Abrash. All the code listings, as far as I know, are in x86 Assembly. I downloaded WinASM and MASM so I could assemble and link these listings. However, the listings don't work out of the box - in fact, I can't get them to work at all. For example, here is ... | 2 | 5,656 |
How to set up JASMINE using MAVEN-PLUGIN? | <p>I have a folder structure like</p>
<pre><code>-root
-pom.xml
-service
-web
-pom.xml
-src
-main
-test
-java
-javascript
-lib
-specRunner.js
-runner.html
-spec
-m... | 2 | 2,875 |
Populate fields after redirect in struts 2 | <p>I'm trying to understand if there is an easiest and shorter way to populate the fields of a form, after it fails validation and it's redirected (following the pattern described <a href="http://www.theserverside.com/news/1365146/Redirect-After-Post" rel="nofollow">here</a>).</p>
<p>I have a form that is called from ... | 2 | 1,028 |
Invalid function parameter | <p>I 'm writing a C-Code in which i use sockets. I use this on windows and on linux, so i try to write it dynamicly. I wrote two functions to get a server/client-socket. There i have an error on compiling:</p>
<pre><code>debian:~/cross_socket# make
gcc *.c -Wall
i586-mingw32msvc-gcc *.c -Wall -lws2_32
socket.c: In fun... | 2 | 1,321 |
Ajax not triggered in my Liferay portlet | <p>I have a MVCPortlet and I try to call ajax in a jsp page.</p>
<p>My jsp is as follows:</p>
<pre><code><%@include file="/html/init.jsp"%>
<portlet:resourceURL var="updateRatAjax" id="updateRatAjax" ></portlet:resourceURL>
<script type="text/javascript">
function selectRat(){
var rat... | 2 | 1,333 |
Worksheet.Name causes OutOfMemoryException | <h1>.Net4 C# VSTO4 Excel Add-In:</h1>
<p>The following function is called very often, let's say every second:</p>
<pre><code> /// <summary>
/// Gets a unique identifier string of for the worksheet in the format [WorkbookName]WorksheetName
/// </summary>
/// <param name="workbook">The ... | 2 | 1,368 |
JPA- Compound Primary Key using @EmbededId | <p><strong>Goal</strong>: To impolement an @Entity where the id is a compound primary key using @EmbededId.</p>
<p><strong>Problem</strong>: Based on my current implementation, I am getting the following result:</p>
<pre><code>[
{
"id": 1,
"name": "Recipe 1",
"instruction": "Test Instruction",
"note... | 2 | 2,165 |
Python not deleting variable when it goes out of scope | <p>Consider the following code:</p>
<pre><code>import random
class Trie:
def __init__(self, children, end):
self.children = chil... | 2 | 3,381 |
No such instance field: RetrofitClient | <p>I'm trying to make an HTTP Client using retrofit 2 and since I'm used to working in Visual Studio I'm having a lot of trouble debugging my code and making it work.</p>
<p>What in the earth is "No such instance field" error?</p>
<p>Very poor help online so far so I have to write out this question.</p>
<pre><code>p... | 2 | 1,335 |
Cannot install Perl module due to missing cc1 compiler on Ubuntu 14.04 | <p>I am trying to install <code>Moose</code> using <code>cpanm</code> on Ubuntu 14.04, but I get an error saying:</p>
<pre><code>Running Makefile.PL
Configuring Moose-2.1210 ... cc: error trying to exec 'cc1': execvp: No such file or directory
This distribution requires a working compiler at Makefile.PL line 52.
N/A
!... | 2 | 2,010 |
XSD 1.1 Check if an attribute exists in another element | <p>I have 2 main sections in my XML file Sequence and StateRelations. The Sequence section is defined as. The Transition element should be unqiue based on its 4 properties as defined below.</p>
<pre><code><xs:element name="Transition">
<xs:complexType>
<xs:sequence>
<xs:ele... | 2 | 3,104 |
Chartjs - Insert additional data into chart tooltip | <p>I'm trying to insert additional data into the doughnut chart.
The controller pass to the view an array like this:</p>
<pre><code>[
0 => array:3 [
"profit" => 20
"sex" => array:3 [
0 => 0
1 => 8
2 => 0
]
"count" => 8
]
1 => array:3 [
"profit" =>... | 2 | 3,744 |
IPSec on Linux with strongSwan: received netlink error: No such file or directory (2) | <p>I have set up an IPSec system on two hosts with the following basic information:
- Linux kernel: 4.4.135
- IKE: strongSwan 5.6.1</p>
<p>LAN1 --->| WAN1: 192.168.100.121 | <---->| WAN2: 192.168.100.122 | <---- LAN2</p>
<p>I am testing a new block algorithm named BC512 with a block size of 128 bits, a key siz... | 2 | 5,499 |
How to use bootstrap progress bars | <p>This is a foolish question But I have no idea where to begin.
I want to use Bootstrap's <a href="http://getbootstrap.com/components/#progress" rel="nofollow">Progress Bars</a>.
I have a simple todo list app. I want to be able to visually show that 70% of a todo list is complete. </p>
<p>How would I go about this, ... | 2 | 1,602 |
Word foldl' isn't optimized as well as Int foldl' | <pre><code>import Data.List
test :: Int -> Int
test n = foldl' (+) 0 [1..n]
main :: IO ()
main = do
print $ test $ 10^8
</code></pre>
<p>GHC optimizes the above code to the point that the garbage collector doesn't even have to do anything:</p>
<pre><code>$ ghc -rtsopts -O2 testInt && ./testInt +RTS -s
... | 2 | 1,313 |
persistence.xml - Error parsing XML: XML InputStream(1) Premature end of file | <p>I am getting this error when i'm trying to create an entity manager in my code.</p>
<pre><code>EntityManagerFactory emf = Persistence.createEntityManagerFactory("puDS1", myproperties);
</code></pre>
<p>Any hints on why this could be happening? My persistence.xml seems to be a valid xml. </p>
<pre><code>ERROR [mai... | 2 | 1,129 |
GWT AutoBean: annotation @PropertyName doesn't work anymore | <p>I use <a href="http://code.google.com/p/google-web-toolkit/wiki/AutoBean" rel="nofollow">AutoBean</a> to code/decode data to JSON and that was all right in previous GWT versions. In my opinion AutoBean is very good and convenient tool to deal with JSON. Since GWT ver.2.4.0 this functionality has changed and I spent ... | 2 | 1,029 |
Angular 2/4 and Jersey REST CORS issue | <p>I've been trying to build relatively simple app with angular and jersey REST on the back end. I've managed to make some communication between the two but when I try to implement security as by following this answer <a href="https://stackoverflow.com/questions/26777083/best-practice-for-rest-token-based-authenticatio... | 2 | 1,038 |
i couldn't fix the problem createview is missing a queryset | <p><strong>ImproperlyConfigured at /register/
SignUpView is missing a QuerySet. Define SignUpView.model, SignUpView.queryset, or override SignUpView.get_queryset().
Request Method: GET
Request URL: <a href="http://localhost:8000/register/" rel="nofollow noreferrer">http://localhost:8000/register/</a>
Django Version:... | 2 | 1,154 |
Docker Volume: ENOENT: no such file or directory, open '/app/package.json' | <p>I'm using Docker using Docker Toolbox because of I have Windows Home. I made a React application using:</p>
<pre><code>npx create-react-app frontend
</code></pre>
<p>Thus I made a "Dokerfile.dev" file in which I say doicker to use base image node alpine version, setting working directory "/app", to copy "package.j... | 2 | 1,163 |
Touch Image Zooming in android | <p>I got a series of images in a gallery and was trying to add in the zooming functionality for the same. I read a lot on zooming in android. Worked out various examples. Finally i could create a project to zoom images by drawing that particular image from the drawable folder without using any xml file. It is shown bel... | 2 | 4,246 |
setting and reading environment variables in IIS 10 | <p>I can not figure out how to set and read environment variables in Microsoft Internet Information Services (IIS) version 10. I have a Fast CGI app that requires environment variables. In previous versions of IIS I just set system-wide variables in the Windows "System Properties". However in IIS 10 my FCGI app isn't r... | 2 | 1,263 |
how to bind jtable with the mysql database in netbeans? | <p>I followed the below procedure--</p>
<ol>
<li><p>Create a JFrame that holds your Jtable...</p></li>
<li><p>From Pallete click and drag Jtable to the JFrame.</p></li>
</ol>
<p>. Click Jtable to be selected and right click then choose bind -> elements then click.</p>
<ol start="4">
<li><p>Window for binding jtable ... | 2 | 2,790 |
Tmuxinator unable to parse config file | <p>I removed Python from my system with "brew uninstall python", and suddenly tmuxinator stopped working. I have no idea if the issue is related to my removal of Python or not.</p>
<p>When I enter <code>~/.tmuxinator</code> and run <code>tmuxinator start myapp</code>, the only output I get is <code>Failed to parse con... | 2 | 1,136 |
java null pointer exception in android | <p>in my mainactivity:</p>
<pre><code>count=count+1;
//the problem seems to be in this line of code below
String fileName=f.getFileName(count).toString();
// the method below invokes a method from another class. it works fine so please ignore
helloTxt.setText(readText.readTxt(fileName));
</code></pre>
<p>f is an obje... | 2 | 1,363 |
Soft body engine in C++ | <p>I am attempting to make an elementary soft body engine in C++ using SDL2. It works by considering all the vertices of the soft body to be interconnected by springs of same length and rigidity (with the same spring constant <code>k</code> and length <code>natural_length</code>). To make it more realistic, I also intr... | 2 | 1,735 |
Postman: schema validation passes even with a wrong response | <p>I have the following schema for bellow happy path response </p>
<pre><code>var responseSchema =
{
"type": "object",
"properties": {
"value": {
"type": "object",
"properties":{
"items": {
"type": "array",
"items": {
"type": "object"... | 2 | 1,076 |
MYSQL/PHP return and display data from multiple tables as sets | <p>I have four tables that I'm joining and want to return all rows in table lab_test that belong to a lab_test_group and display them like (groups in bold...):</p>
<hr>
<p><strong>Creatinine clearance</strong> </p>
<p>Creatinine (Fluid) </p>
<p>Creatinine (24 hour Urine) </p>
<p><strong>Thyroid function tests (1... | 2 | 1,709 |
How do I programmatically extract values from DatePicker/TimePicker Spinners in Android? | <p>I originally followed the tutorial on <a href="http://developer.android.com/guide/topics/ui/controls/pickers.html" rel="nofollow">android developers</a>, but since I plan on having 2 of each on the page, I figured it'd be a bit more elegant to pull the values from the pickers. I first used the onClick methods in the... | 2 | 2,868 |
Incorrect encoding when initializing database with DataSourceInitializer in Spring Framework | <p>I am using Spring Framework 4 and Hibernate 4 together with MySQL database. For initializing database with data I use initialization script configured in hibernate.xml file.</p>
<p>Initialization of database goes alright, but in database appears <code>?</code> instead of characters with diacritics. For example inst... | 2 | 1,996 |
What am I doing wrong in proguard rules? | <p>I've been really trying hard to get the work done in my application. Everything is set and working but once I want to set <code>proguard rules</code>, my application always crashed. I checked <strong>every library</strong> one by one and used all the info they give in the <code>proguard-rules.pro</code> file.
Yet, I... | 2 | 1,837 |
How to add multiple Y-Axis to bar plot in matplotlib? | <p>I have a dataframe of 6 columns that I want to plot as bar plot. The last 3 columns are on the on a secondary axis. One of the last 3 columns has values with much higher scale than the other two and I would like to add a 3rd Y axis to plot it with appropriate scale. In the following code example, I managed to add on... | 2 | 1,414 |
JUnit tests run in eclipse return errors even though I have expected annotation | <p>(This is a follow up question to <a href="https://stackoverflow.com/questions/1836364/bad-form-for-junit-test-to-throw-exception">this</a> one.)</p>
<p>I'm having a problem with JUnit4 tests in eclipse. I'm trying to use the @Test(expected=...) annotation to unit test exception throwing. The problem is that when I ... | 2 | 1,267 |
OpenCV android VideoWriter issue | <p>I have a problem using VideoWriter opencv class with JNI in android.</p>
<p>My aim is to simply capture camera frames and write them to file using VideoWriter.</p>
<p>Here is the code:</p>
<p><strong>Native part</strong> - 3 functions to init writer, write a frame and release the writer.</p>
<pre><code>JNIEXPORT... | 2 | 1,784 |
Undefined reference to | <p>I am trying to use ASIO (Audio Stream Input/Output). I downloaded SDK, but because this SDK has no library, only headers and source files, I had to compile it into a library. Moreover, it was written so that it uses some of the features from MSVC (specifically some macro definitions - _WIN64 and WINVER). I cannot us... | 2 | 2,313 |
Validation form using Javascript, seem to be missing a little code or perhaps a little understanding | <p>So here's what I have so far. What I'd like my code to render is that if any of the three user inputs are invalid, the corresponding error message should be displayed on screen. </p>
<p>As it is at the moment, this does not happen....also what I thought would be a nice touch is that once the correct input has bee... | 2 | 1,369 |
File upload button is not working | <p>I want file upload in bootstrap,it is working only on chrome not in firefox ,i want work for both browser,if anyone can fix problem also ok,otherwise give me the link for bootstrap fileupload,i searched i can't get ,i tried this one but i don't know how to insert the value this one little bit difficult for any one ... | 2 | 2,606 |
Javascript Object to filter json Array | <p>I've got multiple checkboxes in an HTML form. When I click on a button, the checked values are put into an JavaScript object and a filter function is triggered.</p>
<pre><code>this.filterChkbx.on('click', function() {
_this.checkedFilter.push({
filterEl: this.value
});
});
</code></pre>
<p>In the f... | 2 | 2,826 |
How to make HTML form input fields responsive without using Bootstrap | <p>I have a really basic HTML form with two text input fields side by side (Name and Company) and a Submit and Back button underneith. </p>
<p>I want to make the width of my input fields scale down as the browser width is decreased.</p>
<p>See 1st attached image for how it currently looks at full width, and 2nd attac... | 2 | 1,681 |
runOnUiThread from class that doesn't support it | <p>I am editing this code from cSipSimple: <a href="https://code.google.com/p/csipsimple/source/browse/trunk/CSipSimple/src/com/csipsimple/ui/incall/InCallCard.java?spec=svn2170&r=2170" rel="nofollow">https://code.google.com/p/csipsimple/source/browse/trunk/CSipSimple/src/com/csipsimple/ui/incall/InCallCard.java?sp... | 2 | 1,263 |
glTexCoordPointer seems to have no effect | <p>I'm still trying to get a grasp of using textures and now I'm trying to use glTexCoordPointer in order to give each vertex a color specific to it's class. I've made some checks and here is the situation:</p>
<pre><code> self.bufferVertices = glGenBuffersARB(1)
glBindBufferARB(GL_ARRAY_BUFFER_ARB, self.buffer... | 2 | 1,253 |
send multiple image to server : One image sending thrice to server issue | <ul>
<li><p>I have to send three different images in server side.Right now one
image is uploading thrice.But I have chosen three different image.</p></li>
<li><p>Because I had given count=0.then it takes first image and send the
first image thrice to the server.</p></li>
<li><p>If I give the count=1 then it takes the s... | 2 | 1,680 |
Calling AlertDialog.Builder in Java For Android Fragment When Back Button Is Pressed | <p>I have a simple application (really!) that displays a list and then displays the details of an item on the list based on the user's choice. I do this using Fragments. The details portion is a Fragment which has an <code>EditText</code> in it. Currently, if the user types in the <code>EditText</code> and clicks on th... | 2 | 1,796 |
Having a tree structure on both sides of the Transfer component | <p>I am using <a href="https://ant.design/components/transfer/" rel="nofollow noreferrer">antd's Transfer</a> component. Using the examples given in the documentation, I am able to create a tree transfer box that looks similar to:
<a href="https://i.stack.imgur.com/OEPPK.png" rel="nofollow noreferrer"><img src="https:/... | 2 | 2,115 |
Undefined symbol (linking .so C and Cython Code) | <p><em>Since I made some progress, I changed the title and made a second edit describing my new problem. You may choose to ignore Edit1</em></p>
<p>I have been trying to run python code from C code. And for this purpose I have been using Cython. </p>
<p>The semantics of my system is such that there is a binary (whos ... | 2 | 1,154 |
How can I bind data from db (jQuery) to an autocomplete? | <p>I try to bind the data from a database tabel to an autocomplete edit field.
But somehow I don't succeed and need help.</p>
<p>I have the data on another webpage already in a dropdown combo. How can I access this data or replicate the funcionality for the edit field?</p>
<p>Thx for any hint.
-Adrian</p>
<p>I want the... | 3 | 3,852 |
Task.Delay(<ms>).Wait(); sometimes causing a 15ms delay in messaging system | <p>I have 3 programs talking to each other. One of my programs is giving me a strange issue, which is causing my latency measurements to be off.</p>
<p>All 3 applications use the same Custom communications library...</p>
<p>In the problematic application, when the program starts, a new task is started to continuously... | 3 | 1,247 |
Get spinner data from WebService | <p>I have created an Android application in that I am calling webservice that have attribute name and attribute value and I wants to display attribute value in Spinner and attribute name display in TextView. If attribute value is two then two arrylist is store. If attribute name is same in both list then store only one... | 3 | 2,329 |
Cannot Autowire the class to interface in my controller, throws exception | <pre><code> SEVERE: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pageController' defined in file [F:\workspace-sts-practice\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\onlineshopping\WEB-INF\classes\com\chandan\onlineshopping\con... | 3 | 3,925 |
Setting different line colors on the chart in R | <p>I would like setting different color for each line on the chart. Currently, when I choose the same product from two lists I get the same colors on the chart. How can I set different colors for the same product from different years? Bellow my code and example plots:</p>
<pre><code>library(plotly)
library(dplyr)
libr... | 3 | 1,146 |
Local files reverted after trying to sync forked GitHub repository | <p>I forked the <a href="https://github.com/biopython/biopython" rel="nofollow noreferrer">biopython/biopython</a> repository on GitHub to <a href="https://github.com/BioGeek/biopython" rel="nofollow noreferrer">BioGeek/biopython</a>.</p>
<p>I made some changes in my local repository, <a href="https://github.com/BioGe... | 3 | 1,408 |
A mystery IndexOutOfRange Exception recurring when reading from a full EventLog | <p>I'm maintaining an application which uses the Windows Application Event Log to 'scan' for errors from another application. </p>
<p>I need to find the first entry occurring since a specified time. So, what I've done so far is looped back from the latest Event Log entry (<code>Entries.Count-1</code>), until an entry ... | 3 | 1,167 |
Nested for loop in html using django to display information from 2 different models | <p>I have a model called Section and a model called SectionInfo. Section has one field and that's name. A user will create a section by giving it a name. SectionInfo has a foreign key section_name which links it to the Section model. I have a few other fields inside SectionInfo such as things like detail, date_created,... | 3 | 1,328 |
Does libtorch leak? | <p>I am using pytorch c++ library (libtorch) in my project. When using valgrind it seems that some memory is not free properly.</p>
<p><strong>Main.cpp:</strong></p>
<pre><code>int main() {
// Do somenting with libtorch here...
std::cout << "end of main" << std::endl;
return EXIT_SUCCE... | 3 | 4,480 |
Reading one record at a time by grand parent ID using conditional statement | <p>I have 3 tables suburbs, properties and images. suburb is a parent table
of the property table in one to many relationship and image is a child
table of property table in one to many relationship.</p>
<p>I want to display one image, at a time, by suburb ID that will be sorted
(ORDER BY) by property ID.</p>
<p>Aft... | 3 | 2,322 |
Incorrect GPG keys when installing Foreman 1.16 on RHEL 7.4 | <p>As the title suggests, I'm trying to install Foreman 1.16 on RHEL 7.4</p>
<p>I'm using AWS with a t2.large instance (which satisfies the minimum 4GB RAM for to run the installer)</p>
<p>I'm following the <a href="https://www.theforeman.org/manuals/1.16/index.html#2.1Installation" rel="nofollow noreferrer">quicksta... | 3 | 2,716 |
Android: Why the listview.add function is always adding elements on position 1 in the list | <p>I am trying to implement two activities that are exchanging information between them using intents.
Activity#1 contains an empty listview and a button that starts Activity#2 when pressed. On Activity#2 I have some textbox fields and a "Save" button that sends through intent.putExtra methods information to Activity#1... | 3 | 1,348 |
CSS breaks on reload mobile | <p>I'm not very skilled at CSS. I have website that has 4 stylesheets and 3 JS files-using Bootstrap 4 and jQuery. When I deployed it on live and refresh the page, all was working fine.</p>
<p>However, when I go to website from mobile, it works fine the first time but when I refresh, all the CSS and HTML is broken (th... | 3 | 2,073 |
Nested while loop is not working with my GROUP BY queries | <p>I am a bit stuck with a <code>while</code> loop and need some assistance to find the wrong code.</p>
<p>My SQL table looks something like this:</p>
<pre><code>make model model_body variant
M1 A ooo Va1
M1 B sss Va2
M1 B ... | 3 | 1,972 |
Why is my unordered list changing the line? | <p>Nav links in nav bar are dropping down outside of the nav bar, how do I keep the nav links inside the nav bar?</p>
<p>At the moment it looks like this, but i want to have it displayed inline:</p>
<p><a href="http://i.stack.imgur.com/iBpUb.png" rel="nofollow">Take a look at this, shows what i currently have</a></p>... | 3 | 7,689 |
A More Efficient Way of Calculating Objective Function Value is Needed | <p>I encountered a problem where my way of calculating the objective function is not efficient enough when it comes to a huge number of data (population size). (Scroll down if you feel the explanation is too long)</p>
<p>Matrix 'A' is of size nx1 where n is the number of facilities. The element in each row represents ... | 3 | 1,921 |
C#: Object values null after deserializing XML | <p>I am trying to deserialize some XML returned in an API response but all the values in my object are NULL after deserializing.</p>
<p>Below is the XML I am getting in the response that I am trying to deserialize.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ctatt>
<tmst>20160609 11:5... | 3 | 2,363 |
nn.Conv1d consumes too much GPU memory | <p>I have a ResBlock as below, which can change feature vector length as well. However, It consumes <strong>way too much GPU memory</strong>. In fact, one ResBlock like this alone can consume as much as <strong>2.3GB</strong> of GPU memory, which causes CUDA_OUT_OF_MEMORY all the time.</p>
<ul>
<li>Typical input size(b... | 3 | 1,342 |
Wordpress Critical Error Due to Plugin Conflict with my Functions.php | <p>I just installed a new Plugin (WooCommerce SEO plugin) which causes a critical error on my web site, causing me to not be able to enter the Products area of my Wordpress/WooCommerce Dashboard on the backend. (Shows a Critical Error has occured and the page is white with that warning text)</p>
<p>The website actually... | 3 | 1,255 |
How do I make an embedded argument? | <p>whenever i type $effect [pokemon type], I want to be able to see the embeds I made for that specific pokemon. For example, $effect fire would show the effects of the fire with the embed message. Do I do args and then put the args = command so the arguments would be written as the pokemon type rather than args[0]? If... | 3 | 4,411 |
Upload with PHP | <p>I'm creating a website, and I have a form to add a new post. I'm using an iFrame instead of ajax for a full support on IE (Ok, I know that IE is the most hated and one of the worst browser, but some noobs are using it). Basically, when I submit the form, it gives me an internal error (500).
Here is my form:</p>
<pr... | 3 | 1,678 |
removing xml nodes using xslt but original XML namespace sand header should be retained | <p>i checked the example in this link but it works for solution other way around , removees the nodes of the ID that i passed on to.</p>
<p><a href="https://stackoverflow.com/questions/12152519/removing-xml-nodes-using-xslt">Removing XML Nodes using XSLT</a>?</p>
<p>For example</p>
<pre><code><Message xmlns:xsi="... | 3 | 1,713 |
Communication between background scripts and content script in a loop | <p>I'm developing a chrome extension that : </p>
<ul>
<li>opens a "panel" with a button</li>
<li>when you click the button, a new tab is created</li>
<li>then in this new tab, I loop through an array of urls to retrieve informations on each url</li>
</ul>
<p>For these actions, I'm using Promises, because I think it's... | 3 | 2,836 |
select 3 tables in 3 array fields 1 mysql query | <p>First of all my tables</p>
<p>I have stored my product's format/template data in the first table. A format/template can be used by many product.</p>
<pre><code>Format meta table. Primary Key is format_id. (has some more other columns)
+-----------+-------+
| format_id | title |
+-----------+-------+
| 1 | ... | 3 | 1,492 |
Comparator<Object> Parcelable | <p>After hours of searching, I don't know how to make a Comparator parcelable.
I found this "Parcelable stuff" a bit "missing content"... (Parcelable don't have even a writeBoolean)</p>
<pre><code>public class T implements Parcelable{
...
public static Comparator<T> Compare = new Comparator<T>() {... | 3 | 1,380 |
Q: How to write a function output in a .CSV file with multi-threading / multiprocessing ? (Using a String array as input) | <p>I am coding a little web scraper where I would like to implement multiprocessing / multi-threading.</p>
<p>I have written my function webScraper() which receives a String with a website URL as input, scrapes some domain data and writes that data to a CSV file, line by line (for each domain).</p>
<p>The input data ... | 3 | 2,561 |
Generate different text in every tile javascript | <p>I have arrays of strings with names and surnames. I created username which consist of random name and random surname and I want to display different username in every generated tile. I tried to splite names and surnames and than add it do array and get random array index but it didn't work. Better solution would be ... | 3 | 2,002 |
Cannot insert data into mbf database | <p>I have been trying to insert data into a sql database for the last hours. for one or other reason I am able to connect to the database, but no data is inserted into the database. if I run the sql statement directly in the database it does seem to work. So therefore, I was able to conclude that the statement is corre... | 3 | 1,052 |
Error creating bean with name 'sessionFactory' defined in ServletContext | <p>I know this is a duplicate, but I've spent days working with all the solutions. I havent been able to get any to work. Can someone please take a look.</p>
<p>If any additional information is required, please let me know.</p>
<p>My Stacktrace is as follows:</p>
<pre><code>org.springframework.beans.factory.BeanCrea... | 3 | 3,601 |
Add to Laravel's built in Registration page Laravel 8 | <p>I'd like to add a record to another table (location) when a user registers on my site.</p>
<p>I've got it working with the google registration that happens through Socialite:</p>
<pre><code> // if user already found
if( $user ) {
// update the avatar and provider that might have change... | 3 | 1,195 |
Message displays before clicking on the submit button | <p>I am currently in the process of following a tutorial, the instructor in question has a form, when he clicks on the "submit" button without having entered any information, a message "you must complete all fields" is displayed. The problem is with me: I wrote the same code as him but the message a... | 3 | 1,436 |
Recyclerview not updating dataset and still shows old values | <p><strong>RecyclerView Adapter update method</strong></p>
<pre><code>public void updateList(List<Album> updatedList) {
albums.clear();
albums = new ArrayList<>(updatedList);
for (int i = 0 ; i < albums.size(); i++) {
Log.d(TAG, "updatedList values: " + albums.get(i).getAlbu... | 3 | 1,387 |
How to add an 'on-click' background change | <p>I am basically using this - <a href="http://jsfiddle.net/navjottomer/8u57u/4/" rel="nofollow">http://jsfiddle.net/navjottomer/8u57u/4/</a> and also using Bootstrap's panel styles. </p>
<p>I want it to look more like this though - <a href="https://support.google.com/mail#topic=" rel="nofollow">https://support.google... | 3 | 1,139 |
onclick listener not working on ImageButton inside CollapsingToolbarLayout android | <p><a href="http://i.stack.imgur.com/rdETx.png" rel="nofollow">onclick function on edit image button not working</a>[In coordinatorLayout....Im inserting the image button to right of collapsingToolbar title ,setOnClickListener not working on that image button.... You can find the code and images below. Any help is app... | 3 | 2,130 |
Cross compiling portAudio for Intel Edison | <p>I am using the cross compile environemt from the <a href="https://software.intel.com/en-us/iot/hardware/edison/downloads" rel="nofollow">Intel Site</a> and have successfully compiled several other libraries using it (libsndfile, alsa, fftw) but when I try to compile portaudio it refuses to link to the proper directo... | 3 | 1,461 |
boost::interprocess scoped_allocator AND Containers of containers NOT in shared memory | <p>I have a similar question as before in <a href="https://stackoverflow.com/q/26217012/1358042">boost::interprocess Containers of containers NOT in shared memory</a> and <a href="https://stackoverflow.com/a/26281947/1358042">How to I create a boost interprocess vector of interprocess containers</a> but this time I lik... | 3 | 1,692 |
Why do I get MIME type ('text/html') is not executable error for ckeditor rails gem on image uploads? | <p>When I go to edit a resource I get the above error for config.js and then when I go to view the resource I get it too. Also all my image uploads are broken urls when I go to view them in the actual post and when I go to the backend and edit the resource I click 'browser server' on image upload button and all images ... | 3 | 1,475 |
Vba defaulting Varianel date to 12:00am causing subscript out of range error | <p>VBA is defaulting my variable date from user input to 12:00am, which results in a subscript out of range error later on. I have declared all the variables correctly, it was working previously but now it is not. Any ideas on what to check for? Ive tried adjusting things using DateAdd and as well as trying to get vba... | 3 | 1,675 |
Format Array of Objects into a 2D array | <p>I have an array of objects and I would like to get it into a format used by react-csv (2D array). The 2D should look like a nested loop, something like</p>
<p><a href="https://i.stack.imgur.com/41cuj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/41cuj.png" alt="Image of data in spreadsheet progr... | 3 | 2,123 |
asyncio loop.run_until_complete finishes before all the results have returned from asyncio.gather with loop.run_in_executor | <p>I have a program which makes async queries to a graphql system, then writes those results to file. I'm calling the main function with <code>loop.run_until_complete</code>.</p>
<pre class="lang-py prettyprint-override"><code> try:
loop.run_until_complete(run_suite(gql_client))
log.info('Do... | 3 | 1,188 |
How to fix UIButton changing state while scrolling in Expandable and Collapsible tableview sections | <p>I have an expandable and collapsible section in my tableview cell for days of the week. When you click the open button to expand the section the button changes state to close and you can click it again to collapse. However, if you open multiple sections and start scrolling in the tableview those sections close and o... | 3 | 1,224 |
How to add a '.Contains()' to the where clause of a query? | <p>I have this query but I need to add a <em>where</em> clause that uses 'Contains()' so I can check the db for a list of accountIDs, the reason I need to do it this way is because I have to first check if there are any accountID's and if there are it must execute the 'Contains()' in the where clause but the compiler c... | 3 | 1,352 |
Neo4j Java Embedded Shortestpath | <p>I'm using this custom expander for <code>Neo4j</code> embedded using the shortestpath algorithm. However the shortestpath algorithm doesn't allow me to look up the last relationship in the path it's constructed because they haven't implemented it. I get an unsupported exception.</p>
<p>I just need to check the prop... | 3 | 1,881 |
evernote nodejs sdk creating note with image | <p>I am trying to create a note in evernote with an image resource, however the resource only appears as thumbnail in the left as sumbnail but not in the note itself.</p>
<p>Here is what I have tried.</p>
<p>Starting with the demo from evernote sdk <a href="https://github.com/evernote/evernote-sdk-js" rel="nofollow nor... | 3 | 1,372 |
Boolean value cant convert to string | <p>I am writing a program calculating speeding ticket cost based on speedlimit, mph but most importantly if they were in a school zone and I am having trouble in public(ticket) as my boolean</p>
<pre class="lang-java prettyprint-override"><code> if (schoolZone.equals("Y")) {
schoolZone = true;
... | 3 | 3,255 |
Problems with nested Recylerview | <p>I have data from Firebase data like below:</p>
<p><a href="https://i.stack.imgur.com/uEBaO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uEBaO.png" alt="enter image description here"></a></p>
<p>My problem is my RecyclerView display not as expected. The data of my <code>messages</code> were ac... | 3 | 13,144 |
Generating a case switch for every row in db | <p>I'm generating a case for a switch in js for every row not empty in my db. For every case I'm generating a new option: </p>
<pre><code><script language="javascript" type="text/javascript">
function dropdownlist(listindex)
{
document.formname.subcategory.options.length = 0;
switch (listindex)
{
... | 3 | 1,650 |
Why wont UIView display a second time? | <p>I'm trying to figure out why my newDogView will only present once. This app takes a dog photo, stores it in a struct with some other info, and plots that dog on a map view as an annotation. When you press the newDogButton, a UIImagePickerController is presented. Once it's dismissed, a preview shows up with some opti... | 3 | 2,239 |
How do I plot a temporal cdf? | <p>I have the following values:</p>
<pre><code>Day 1: X11 X12 X13 X14 X15 ...
Day 2: X21 X22 X23 X24 X25 ...
Day 3: X31 X32 X33 X34 X35 ...
...
...
</code></pre>
<p>I can use the values of each day to plot a different CDF but is there a way I can visualize CDFs for all days to see how the distribution is changing acr... | 3 | 3,021 |
Wpf Treeview issue | <p>How would i display the below XML to a WPF TreeView and it must display as follows</p>
<p>Category Name (Easy Puzzle)</p>
<ul>
<li>Puzzle Name (#1)</li>
</ul>
<p>Category Name (Medium Puzzle)</p>
<ul>
<li>Puzzle Name (#1)</li>
</ul>
<p>Category Name (Hard Puzzle)</p>
<ul>
<li>Puzzle Name (#1)</li>
</ul>
<p><s... | 3 | 1,987 |
jquery display current element on hover | <p>So I use this code to display depth 3 elements in menu (wordpress):</p>
<pre><code>var hoverTimeout;
$( "span.sub2 li.menu-item-has-children" ).hover(function(){
hoverTimeout = setTimeout(function() {$('ul .sub2 li .sub-menu .sub2').css("display", "block");}, 500);
}, function() {
clearTi... | 3 | 1,916 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.