title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Assertion Failed at method: gee_array_list_real_get | <p>I think I fixed this error but I want to be certain I did it the right way.
Also I am not sure why is it happening this way.</p>
<p>Code before fix:</p>
<pre class="lang-cs prettyprint-override"><code>private Gee.ArrayList<Gtk.Widget> menuButtons;
// Some other code here
public override void remove (Gtk.Wi... | 3 | 1,360 |
How to sum array value in chart.js inside loop function? | <p>I have this function:</p>
<pre><code>click: function(e) {
map.fitBounds(e.target.getBounds());
myJSON.forEach(function (arrayItem) {
if (arrayItem["Comune"] == e.target.feature.properties.NOME_COM.toUpperCase()) {
$('.lead').html('');
$('.lead').html('Comune di ' + arrayItem.Comune);
$('#... | 3 | 1,108 |
Accessing Forms data from another form | <p>"Give the code below, how would I access the listBox1 in Form2? I'm sure I'm missing stupid! Thanks in advance."</p>
<blockquote>
<p>Error 1 'WindowsFormsApplication1.Form2.listBox1' is inaccessible due
to its protection
level C:\Users\dugaj0\Desktop\Developing\GlobalUser\WindowsFormsApplication1\WindowsFor... | 3 | 1,817 |
Results are not stored with a column names in CSV file after running the Jmeter test through a program (Java Code) | <p>I have successfully run the Jmeter test using a program i.e written in java code. And I am sharing the link of that question's solution here as well => <a href="https://stackoverflow.com/q/59841310/12434952">How to set CSV file in java code by running the Jmeter test using a program (Java Code)?</a></p>
<p><strong>... | 3 | 1,117 |
Jqgrid, additional white space when vertical scrolling is enabled | <p>I have an issue with my grid, after loading data and enabling vertical scroll, i find my grid loaded with additional space after the my rows. I want that removed, any idea why i am getting this ? </p>
<p>This is my grid with the scroll bar
<a href="https://i.stack.imgur.com/HCz2r.png" rel="nofollow noreferrer"><img... | 3 | 1,554 |
What is supposed to be a simple TCP Client Server,, STUCK | <p>I am stuck. I have previously used the server and client sockets (non-indy) and they were nicely asynchronous and easy to use. I am trying to make a simple client server. Once connected to a client the server sends out small blocks of data on a timer event. The time is 77ms and the blocks of data are approximately 1... | 3 | 1,787 |
Can't get my insert function to work in alphabetic binary string tree | <p>I am trying to build a binary tree that will hold words from a file alphabetically as well as count the number of occurrences of the word in the file. Then later on I have to be able to replace words in the original text file. For now I'm just trying to setup my binary tree and getting the words in there. The string... | 3 | 1,079 |
excessive garbage collector in android for AsyncTask | <p>i am trying to download json object using URL, for that i have created one AsyncTask. Whenever i am starting my application, excessive garbage collector starts. i cant understad where i am going wrong.i am not performing any heavy memory usage task just trying to call api for json response.</p>
<p><strong>MainActiv... | 3 | 2,708 |
Generate 3D PCA seperation plane plot | <p>I wanted to generate a 3D plot to display the separation of the two classes. I looked at <a href="https://stackoverflow.com/questions/49957601/how-can-i-draw-3d-plane-using-pca-in-python">this solution</a>, but do not know how to implement the separation plane in a <code>px.scatter_3d</code></p>
<p>Here is the code ... | 3 | 1,285 |
Struts 2 interceptor firing when it shouldn't | <p>I have different areas in my webapp, basically:</p>
<ol>
<li>Login actions. No special interceptor needs.</li>
<li>Secure zone. Only for authenticated users. AuthenticationInterceptor redirects non authenticated users to logout action.</li>
<li>Admin zone. Only for admin users. AdministrationInterceptor redirects no... | 3 | 4,821 |
Maven artifact with multiple jars | <p>We have recently migrated our ivy to maven repositories but I am running into an issue with a few artifacts that contain multiple jars per artifact. For instance the artifact located at <strong>org.apache.xml:xalan-j:2.7.1</strong> and with in that location there are the following jars that I need to access</p>
<u... | 3 | 1,123 |
Is it Yii or is it me who is wrong? | <p>Hi there I have written a code that ietrates through whole array and copies the images to a folder and inserts data in record. Now funny thing is that <code>$model->save()</code>does not show error it returns true. and program never goes into else</p>
<p>now what happens loop continues to run and completes its i... | 3 | 1,373 |
SQLite objects created in a thread can only be used in that same thread | <p>I'm trying to download several game data over threads from a website(s). Whenever a list of data is filled after an inner loop then it's written to a sqlite3 database. However, when it gets to the line where it calls python sqlite3 function "executemany", this function throws an exception that states the f... | 3 | 4,006 |
Question on Parsing Nested JSON via Struct | <p>I have a interesting JSON file that is a bit nested and I could not fine a good example of how to parse it correctly. Can someone please take a look below to see if my structs are correct, I can parse the root level items but the deeper I try to go I get lost. Please see my code below:</p>
<p>The JSON file I'm attem... | 3 | 1,158 |
print out email on terminal using data::dumper | <p>I am not understanding how to use Data::Dumper even after reading the Perl doc and looking at other scripts in git. I see lots of examples online dealing with hashes, but I didn't think that quite fit with what I need to do.</p>
<p>I am creating a script to send emails to managers or teams regarding terminated empl... | 3 | 1,517 |
How can i remove the gap between my navbar items and the bottom of the navbar? | <pre><code><!--NAVBAR-->
<nav class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
... | 3 | 1,157 |
Eclipse ECF Generic / Zoodiscover (Zookeeper) remote service gets lost after a period of time | <p>As described in the header I want to use remote services in an OSGI environment. So I decided to handle this with eclipse ECF. In my opinion a very good project to deal with OSGI remote services. So for the discovery provider I use Zoodiscovery. The services are registered with generic service property. Furthermore,... | 3 | 1,403 |
Get docker API engine exec output | <p>I try to get the output from a command Im running inside a container, but I only get it in RAW text so far. I need to be able to get the output with PHP, seems like I cant do that when it returns in RAW text.</p>
<p>Here is my Dockerfile:</p>
<pre><code>FROM phusion/baseimage:0.9.19
CMD ["/sbin/my_init"]
WORKDIR... | 3 | 1,139 |
SDL_BlitSurface doesn't seem to work | <p><strong>Resolved by Brainsteel. Code below was fixed and now works.</strong>
Window width: 640, Window height: 480</p>
<p>The function calling order:
Start()</p>
<p>Loop()</p>
<p>Stop() (currently commented because if Loop doesn't return 0 it will call Stop before returning 1)</p>
<p>The structure:</p>
<pre><co... | 3 | 1,288 |
How to change color , background and height of the particle background in react-tsparticles? | <p>How to change color and background in react-tsparticles ? This is my <em>particle-config.js</em></p>
<pre><code> const particlesConfig = {
background: {
color: {
value: "#232741",
},
position: "50% 50%",
repeat: "no-repeat",
size: "20%",
},
fu... | 3 | 1,380 |
subsetting a nested list based on a conidtion in R | <p>my nested list looks like this:</p>
<pre><code> myList <- list(structure(list(id = 1:3, value = c(22, 33, 44),
code = c("943", "943", "3a0"),
product = c("Product 1", "Product 1", "Product 1&q... | 3 | 1,439 |
c# server socket data not receiving properly | <p>i have developed one application which will interact with the plc using TCP server socket program.
each cycle plc is sending one signal to my application as character('R').<br>
but some times i am not receiving any character. that means event is not firing.
but next time when plc sends 'R', i will receive it as 'RR'... | 3 | 1,630 |
How to execute python script using CherryPy framework | <p>I've been working on side project to learn python coding better.
Since I reciantly started college I've been eager to learn more abut the language that we work with.</p>
<p>So basicly I am using Raspberry Pi to work with in school and out.
Reciantly I had an idea by using ultrasound sensor to detect the distance of... | 3 | 2,060 |
script is reading only last line of an input file | <p>Value in my input file (list_muni_nav.txt). Each line is a path for a file, here 'test' and 'test2' are the filename.</p>
<pre><code>/iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test
/iwmnt/default/main/Content/Munic/WORKAREA/work/templatedata/muni_site/security/data/test2
</... | 3 | 1,147 |
jQuery Sortable Horizontal Using Different HTML Tags | <p>This is what I currently have
<a href="http://www.bootply.com/sfLr2AJ7EU" rel="nofollow">http://www.bootply.com/sfLr2AJ7EU</a></p>
<p>My issue is that I cant move my image (id) boxes horizontally. I have managed to get it working vertically but when I try to get it working horizontally, it wont work. You can move t... | 3 | 1,257 |
Data can not be appears, database relation one to one Laravel | <blockquote>
<p>ErrorException<br>
<strong>Trying to get property 'category_name' of non-object (View: D:\xampp\htdocs\e-catalog\resources\views\backend\pages\gmproducts.blade.php)</strong></p>
</blockquote>
<p>This is my blade code below.</p>
<pre><code><tbody>
@foreach($gmproducts as $no => $gm)
<tr>... | 3 | 1,231 |
React app keeps refreshing when changing i18next language in combination with authenticated routes | <p>I have a react-app with authentication (cookie based) with a login route and a profile route. The profile route is fetching the profile data and puts the data in a form. One of the fields is a language field. I'm using the <code>useEffect</code> hook to watch the language property and use <code>i18n.changeLanguage()... | 3 | 1,492 |
The only Result that display is the first table of my database | <p>The only result of any input in my code is always the first column of my table from my database. My database has two table in which I used INNER JOIN. I am a beginner.</p>
<p>and the OUTPUT IS ALWAYS THE FIRST COLUMN OF MY TABLE FROM MY DATABASE.</p>
<p>I'm using Windows application form C# and SQL Server database</... | 3 | 1,161 |
Retrieve data from MySQL into dynamically input using PHP & Ajax | <p>I'm building some application which is retrieving data from MySql database into a dynamically inputs using PHP & Ajax when I'm retrieving data for this input it always shown in the next one but it suppose shown in the div that I mentioned in Ajax code.</p>
<p>This picture will explain my problem clearly sorry fo... | 3 | 3,271 |
I want train a set of weight using pytorch, but the weights do not even change | <p>I want to reproduce a method from a paper, the code in this paper was written in tensorflow1.0 and I want to rewrite it in pytorch. A brief description, I want to get a set of G that can be used to reweight input data but in training, the G doesn't even change, this is the tensorflow code:</p>
<pre><code> n,p = X... | 3 | 1,512 |
Why network with linear layers can't learn anything | <p>I am trying to build a neural network for binary classification, unfortunately it always predicts the value 0, even though one fifth of the training set data is 1. I have no idea why it is so. My dataset looks as this, so there are a couple of categorical variables and a couple of continuous, (target is the one we p... | 3 | 1,360 |
Masking Phone in Ember JS | <p>I am trying to mask a Phone number in a input field, can somebody please help me in this regards. Here is my code for the html (or .hbs file)</p>
<pre><code> <label class="control-label">Phone</label>
{{masked-input mask='(999) 999-9999'
value=model.Addres... | 3 | 1,613 |
HTML form won't carry out correct actions, interference | <p>I have written the following website which uses a very simple form and sends that data into a mysql database. My problem is that the javascript/ajax form id="contactForm" script seems to interfere with the form action="insert.php"</p>
<p>Here is my basic html:</p>
<pre><code> <form action="insert.php" method="p... | 3 | 1,658 |
How to fix Hibernate Unknown entity exception? | <p>I have HibernateSesstion factory class for getting sesion</p>
<pre><code>public class HibernateSessionFactory {
private static SessionFactory sessionFactory = buildSessionFactory();
protected static SessionFactory buildSessionFactory(){
Configuration configuration = new Configuration();
Se... | 3 | 1,304 |
Can I use a value stored in a table as a key in another table? | <p>I'm new to LUA and I still haven't gotten the hang of how classes work in LUA, so my question
probably has a very simple answer. I'm trying to make a function that takes a CSV file and turns it into a lua table.</p>
<p>The input file would be something like this</p>
<pre><code>PropertyKey1,Propertykey2,Propertykey3
... | 3 | 1,192 |
Use tupla(i,j) instead of a single variable(j) | <p>I want to create a tupla variable for this model p(i,j) instead of only variable p(j).
I have to change it here and on the variables that impacts it.</p>
<h2><a href="https://i.stack.imgur.com/uxb86.png" rel="nofollow noreferrer">Current model example</a></h2>
<h2>Code</h2>
<pre><code>def buildBaseModel():
g... | 3 | 1,684 |
StackOverflowError: null in Android Studio | possible fix? | <p>I created a class in Android Studio and created a HashMap and initialized it with some pre-defined values, ever since then IDE displayed internal error occured. And right now, the class won't open in Android studio saying <code>StackOverflowError: null</code>. This is the static block I created : </p>
<pre><code>st... | 3 | 7,402 |
How to capture event of multiple Dynamic control in VB6.0 | <p><a href="http://i.stack.imgur.com/qRX65.png" rel="nofollow">Screenshot</a></p>
<p>In the above form, I have an SSTab. The Add Characteristics button is an added control to create rows of characteristics. On click of this button, I can keep adding Dynamic controls (Checkbox, Label, Text, Combobox and other controls.... | 3 | 1,968 |
R - difference in last decimal place in different R versions - predict and loess functions | <p>I noticed differences in the last digit of decimal numbers in two different R versions.</p>
<p>I noticed it when using the following code</p>
<pre><code>predict(loess(x ~ y, z))
</code></pre>
<p>The content of my x, y and z variables is the same in both versions. So that can't be the cause.</p>
<p>These are the type... | 3 | 1,173 |
Mosquitto MQTT Disk Read Spike | <p>I've got an issue with one of our MQTT brokers running Mosquitto. Where there is a consistent increase in disk usage at a seemingly random time, until it reaches an equilibrium of about 50MB/s read (Shown in graph bellow).</p>
<p>This also causes a secondary issue with our PHP server (Laravel, PHP:7.4 running php-mq... | 3 | 1,424 |
set default value of Select option in angular update form | <p>I'm working on an update task, I have a list of objects displayed in datatable and I want to execute the update process with a modal contain a form with an input and select options, when click the button to display the form, the input take the first attribute of my objectn but the problem is that the select option d... | 3 | 2,255 |
error: invalid declarator before function_name | <p>I have the following bit of code to return the scaled down value and its respective unit of measurement:</p>
<pre><code>enum class convert_mode {up_metric, low_metric, metric, bit_metric, imperial}
std::pair <double, std::string> auto_range (uint64_t x, int factor1 = 1000, int factor2 = 10){
double v... | 3 | 2,260 |
Allow API access to anyone with sails policy | <p>I'm trying to use my SailsJS API with another node app and keep getting <code>403 Forbidden</code> response type.</p>
<p>My action is <code>scale/create-weight</code> which creates a database record using the posted data.</p>
<p>I addded the action to <code>config/policies.js</code> to allow access from not-logged... | 3 | 1,138 |
Python: File not found from tests | <p>I've got an application which uses files of configurations for example and If I run the application all these files are found and there is no problem, but If I do it from my tests I've got this error:</p>
<pre><code>Error
Traceback (most recent call last):
File "/usr/lib/python3.6/unittest/case.py", line... | 3 | 10,661 |
d3j snake curved path animation | <p>I am interested in trying to create a controlled curved path. Is there a way to plot specific coordinates and styling to mimic something like this design. I imagine it as a kind of 2D Donnie Darko time tunnel or slinkey/snake.</p>
<p><a href="https://i.stack.imgur.com/oTTf5.png" rel="noreferrer"><img src="https://i... | 3 | 1,088 |
Is there a way to pick out specific elements from an ArrayList? | <p>I'm trying to read input from three separate files, and the user specifies which file to read. Each line in each file contains info about a temperature reading: a latitude, a longitude, the year, the month, the max temp, the min temp, and the average temp. So each line looks something like this:</p>
<pre><code>39.9... | 3 | 1,236 |
Android : Take photo, store it on sdcard and overwrite it for creating smaller photo | <p>Here is my code which reproduce this scenario :</p>
<ul>
<li>The user click on "Take photo" button and take a picture</li>
<li>The user click on "Create annonce" button, which upload the captured photo to the server.</li>
</ul>
<p><strong>All these parts works fine, but the problem that i would like to solve is th... | 3 | 1,369 |
How to Show Message when reached to date | <p>I am writing a small CountDown program, and i found one of the SO link helpful for me to get code, but i have a small query How to show Message when countdown reached to date we mentioned.</p>
<pre><code>public class MainActivity extends Activity {
String time1 = "14-02-2015 12:01:00";
@Override
protected void onC... | 3 | 1,077 |
Roslyn VB.Net Specify Compiler Version | <p>I am trying to compile a VB program using the code below, the code requires VB 15.5 and even when I specify LanguageVersion.Latest or LanguageVersion.VisualBasic15_5, I still get error ERR_ExpectedNamedArgument - Named argument expected. Please use language version 15.5 or greater to use non-trailing named arguments... | 3 | 1,384 |
Why can't I get the search result using an app I made using Google App Script, even if I surely have the data? | <p>By following the instruction of <a href="https://www.bpwebs.com/create-web-forms-to-get-data-from-google-sheets/" rel="nofollow noreferrer">this website</a>, I made a web app using Google App Script (GAS) which will display the search when a user enters a search term (e.g. order number, status, price) in the search ... | 3 | 1,147 |
Select query to a DB2 table returns an arrow like symbol in java which throws an exception? | <p>I am trying to read a Column named EMP_NAME from a DB2 Table. It works fine for most of the records however it throws an exception for certain records in my catch block.</p>
<p>for example i have included an image of String with a special character in it which i believe is causing the error to happn. I am not sure ... | 3 | 1,170 |
Text based rpg javascript practice project | <p>I was told making a game would be a good way to learn how to use javascript properly so I have started a game in which thus far the player is prompted to create a hero, and then assign attributes to it based on its hero type(magerouge, necromancer, warlock, or shaman) however when I get to the point of assigning att... | 3 | 1,778 |
How to Use Relational Queries Parse iOS to populate a UITableView? | <p>I'm developing a social app and have some problems with populating objects from parse created in a selected cell. </p>
<p>The Home screen is a UITableViewController, populates an array of objects stored in Parse, when a user taps a cell, a new scene DetailViewController will be pushed, which shows the object from t... | 3 | 1,909 |
multiple including and excluding condition in regular expressions in r | <p>I have a data with over 10 million observations, with a string variable <code>dat_text</code>. I am trying to give an indicator variable (IV) for each observation. </p>
<p>The IV will be 1 when the string <code>dat_text</code> <strong>includes</strong> any form that contains that any of the string in <code>pat_text... | 3 | 1,113 |
Bootstrap button default type | <p>Do Bootstrap buttons default to a specific type if a type is not assigned? I have seen some unusual behaviour in a form that I have:</p>
<pre><code><form action="blah blah" method="POST" id="blah" autocomplete="off">
<div class="modal-container">
<div class="modal-dialog modal-dialog-wide">
... | 3 | 1,274 |
Get request via socket connect timing out during read | <p>I am trying to write an http client in OCaml:</p>
<pre><code>module Connection = struct
let sock_fd =
let s_fd = Unix.socket Unix.PF_INET Unix.SOCK_STREAM 0 in
Unix.setsockopt s_fd Unix.TCP_NODELAY true;
s_fd
let read_from_sock () =
let buffer = Bytes.create 512 in
l... | 3 | 1,079 |
Securing swagger ui in asp.net core | <p>First of all I should say that, I'm not native in English that may cause to misunderstanding on explanation.
This issue is about Securing swagger ui in ASP.Net Core as describe <a href="https://medium.com/@niteshsinghal85/securing-swagger-in-production-92d0a045a5" rel="nofollow noreferrer">in this link</a> I have do... | 3 | 1,449 |
C ++ - Problem saving values - values change after saving | <p>I've been trying for a few days to solve a memory problem.</p>
<p>I have a program where the user enters a vector and its name.</p>
<p>The program stores everything in the vector class.</p>
<p>The problem is that when I print the vector, the values change to other values. </p>
<p>I mean an array whose name is "<... | 3 | 2,545 |
Trying to combine will_paginate gem and pg_search gem | <p>I'm trying to add a paginator and a search. It works fine until I add a pg_search. pg_search goes to the right URL but does not filter the search result. For example if i type Vere Lee - <a href="http://localhost:3000/admin/dashboard?utf8=%E2%9C%93&search=Vera+Lee&commit=" rel="nofollow noreferrer">http://lo... | 3 | 2,453 |
Cannot get BCrypt autentication to work | <p>I am trying to set up a simple iOS/Rails application where I can create a user and subsequently authenticate them using BCrypt. I have tried to follow BCrypt's instructions but my authentication process is not working. Very new to rails so I'm sure I'm screwing up something simple!</p>
<p>To create a new user:</p>
... | 3 | 1,155 |
GroupBy on multiple objects gives [SlickException: Cannot select Path s2 in Ref s3] | <p>I am writing a query that calculates a possible score for a QuestionAnswer, when executing the query I get a SlickException</p>
<p><strong>Info about the model</strong></p>
<p>A QuestionAnswer can have several (at least one) questionAnswerPossibilities, since there are multiple ways to answer the question correctl... | 3 | 1,504 |
Android error inflating class fragment in layout-large | <p>Hi i'm creating an android app that uses a TabActivity and has 5 tabs each tab has a FragmentActivity class when a tab is clicked the FragmentActivity loads a fragment and i can be able to replace the fragment with another I've used this approach since i'm creating an app that should be similar to an iphone app. I ... | 3 | 4,854 |
How to read xml attributes into 2d list List<List<Double>> | <p>I am making an application which takes values from a textbox and saves them to a 2D list. I got it to save the list to an xml file, but I can't get it to add the attributes back to the list. The attribute exists. I used a messagebox popup to see if its retrieving the attribute correctly and it is. But for some reaso... | 3 | 2,309 |
Logback does not write to 3rd party logging service | <p>I'm setting up more complex logging then a simple console output. Logback writes logs really well via <code>ConsoleAppender</code>. But when I add extra <code>RollbarAppender</code> it does not work for it.</p>
<p>Here is an example of logback.xml</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<c... | 3 | 1,146 |
my Project Tango AR App Object movement with the color camera movement doesn't work properly | <p>I want to place a cube somewhere in the room. The cube is static in the room and always at the same point. At the moment I can place a cube in the room but if I move the Tango Tablet it isn't in sync with the movement of the cube and I don't know how to sync my Tango Tablet movement and object movement. </p>
<p>My ... | 3 | 2,458 |
Component binding not working | <p>I have an <code>address</code> component, a <code>combinedAddress</code> component, and a component that calls these. For some reason the model binding is not getting into the <code>address</code> component.</p>
<p>Current debugging HTML in outer component - street displays a prepopulated value of <code>123</code>... | 3 | 1,348 |
Any way to insert content from a widget field into a template? | <p>I have a custom widget created where one of the fields is a full telephone number (fulltelephone in the code). It's use is a call to action widget for the sidebar (e.g. enter the number, some text, a button URL, etc.). Is there any way to grab the content from this field (if it's populated in the widget) and add it ... | 3 | 2,986 |
SYmfony plugin upload error: You must specify the min version for symfony | <p>I have been trying to upload my SYmfony plugin for some time but I keep getting this error.
Initially the dependency on the SYmfony Package was missing, but I added that.
My package.xml looks like this:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<package packagerversion="1.9.0" version="2.0" xml... | 3 | 1,737 |
Better way resource management | <p>I'm still new to Java, and have made a timer that does a popup once an hour to remind the computer user to get up and move around, and essentially runs in the background until the popup is supposed to show. However, the while loop I decided to use in main takes a lot of resources. I've tried a Thread.sleep (differen... | 3 | 2,255 |
Rails 5.0.2, Capistrano Stopped Deploying | <p>I've been successfully deploying with Capistrano for several months. After some updates, it stopped working. </p>
<p>Recently we added Spina CMS but have already deployed a version that is live. We did remove a Capistrano Lock awhile back.</p>
<p>If I run:</p>
<pre><code>cap production deploy
(Backtrace restricte... | 3 | 4,024 |
swift, how to retrieve string from another function? | <p>I want to be able to retrieve this string in one of my functions... but thats not really the problem I've done that before. But this time instead the string is defined as and if let inside the function and can't be found anywhere else inside the function. I want to be able to use that same value (fileloaction) a str... | 3 | 1,233 |
Generics program to access WCF service from client | <p>Please look at the below code where a client is accessing WCF service</p>
<p><strong>Function GetPriority</strong></p>
<pre><code>public List<Priority> GetPriority()
{
List<Priority> lstPriority = new List<Priority>();
using (TmsServiceClient client = new TmsServi... | 3 | 1,056 |
UIPickerView With UITextView Color? | <p>Im trying to change UITextView "text color" to White. I don't care if the picker stays Black, but it would be nice to be able to change both. (The textView is displaying what the UIPickerView has selected.) I'm using StoryBoards.</p>
<p>I'm Very New. Here's my .M </p>
<pre><code>`#import "ViewController.h"
@i... | 3 | 3,136 |
Create space between the inside element and the outside one | <p>I'm a HTML beginner and I'v known that padding is the space between the content and the border, whereas margin is the space outside the border. </p>
<p>So if I want to create some space between the inside element and the outside one - like the effect I want from <a href="https://i.stack.imgur.com/fYhj7.png" rel="no... | 3 | 1,584 |
Accessing Resume Parser API with Python | <p>I am using this code for accessing resume parsing API. But I am getting error "error parsing resume:'ResumeParser' object has no attribute 'encoding'" and "AttributeError: 'ResumeParser' object has no attribute 'names'
". How can I resolve this error?</p>
<pre><code>import os
from xml.dom import minidom
from pysimp... | 3 | 1,452 |
Error on Ofbiz startup | <p>I have a problem when I try to start my ofbiz-application. I ran <code>ant configure</code> and <code>ant clean build</code>. But when I try to execute the <code>startofbiz.sh</code>-script I get this exception:</p>
<pre><code>2017-08-21 14:00:20,614 (main) [ GenericDispatcher.java:69 :INFO ] Creating new dis... | 3 | 5,245 |
Reading Sparse Matrix from Binary File in C | <p>Firstly, I am sorry for my English.</p>
<p>I am trying to read an integer array which represents some sparse matrix from a binary and I have to print this matrix. </p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 20
//on this way i have written the matrix in... | 3 | 1,780 |
Add data in Input(box) to sql db through javascript | <p>Here is my code which I am using to write the data in input(box) "latitude" and "longitude" to database using c# code inside javascript.</p>
<p>All I want is that the data gets inserted whenever the button is pressed. This code only inserts data once at the time of initialization. No effect occurs onButtonClick.</p... | 3 | 1,755 |
How to execute a computation exactly once in Coq? | <p>I have a proof below with three more sub-goals to go. The proof is about the correctness of optimizing away <code>plus 0</code> (<code>optimize_0plus</code>) in a simply arithmetic language demonstrated <a href="https://www.cis.upenn.edu/~bcpierce/sf/current/Imp.html" rel="nofollow noreferrer">here</a>. <code>aexp<... | 3 | 1,983 |
How to find missing audio segments | <p>I am writing my own audio format as part of a game console project. Part of the project requires me to write an emulator so I know exactly how to implement it's functions in hardware. I am currently writing the DSP portion, but I am having trouble writing a decoding algorithm. Before I go further, I'll explain my fo... | 3 | 5,531 |
How to write a text file to CSV based on appearance of keyword | <p>My text file looks like this. It is o/p from some program</p>
<pre><code>**********End Transcription Grammar correction log***********
Downloading: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.29k/1.29k [00:00<00:00, 480kB/s]
Downloading: 10... | 3 | 1,027 |
Boostrap affix underneath the fold | <p>I am currently facing a weird problem which I could not solve in the last 2 hours, that's why I hope someone here is able to help me. </p>
<p>I am trying the get a sidebar navigation sticky (with bootstrap affix). If I do it above the fold -> it works smoothly. If I try to do it underneath the browser visible area ... | 3 | 5,782 |
How to fit object inside canvas in three js | <p>I'm currently using <a href="https://threejs.org/" rel="nofollow noreferrer">threejs</a> library to create 3d objects, but unfortunately I cannot fit the object inside the canvas. It's always overflowing outside the canvas if the object is a bit long. Please see my code in <a href="https://jsfiddle.net/jonjieviduya/... | 3 | 1,863 |
Access Script Tag Callback from React - AmazonPay | <p>I am in the process of integrating AmazonPay into a React SPA. The classic integration relies on script tags and callbacks (<a href="https://pay.amazon.com/us/developer/documentation/lpwa/201952050" rel="nofollow noreferrer">docs</a>). </p>
<p>Here is one example from the button widget:</p>
<pre><code><head>... | 3 | 1,640 |
getBoundingClientRect() returns wrong values for nested SVGs in Chrome | <p>I am having some issues with the size of the svg-dom element being larger than it's given size if an element inside it is larger, or set to a different position. I have made a js fiddle where you can reproduce it. Just inspect it and check the size of svg3. If you do it in chrome it is set to 500px by 500px, in fire... | 3 | 1,201 |
Issues with diff(f,x,n) in MacLaurin series | <p>We had an assignment asking us to estimate <code>exp(2)</code> using <em>MacLaurin series</em> and I've taken it a bit further trying to develop and function where you can input an equation, the value of <code>x</code> you wish to estimate and to how many significant figures you want to have it.</p>
<p>It works we... | 3 | 1,200 |
MultiItem ListGrid filtering | <p>I'm currently setting up a <code>ListGrid</code> with filters, but am having problems in implementing a filter for fields with multiple items selection.</p>
<p>Here's an example of what I want to achieve:</p>
<p>I have a <code>ListGrid</code> with these values:</p>
<pre><code>_________________
|Fruits Selected|
|... | 3 | 1,228 |
Unable to call API from controller in angular js | <p>I am trying to make a login module, using angular js, hibernate. I have made an API but i am unable to call it from Controller.</p>
<p>Path URI(My server runs at 8085)
URI = "<a href="http://localhost:8085/rmc/api/" rel="nofollow">http://localhost:8085/rmc/api/</a>";</p>
<p>LoginAPI</p>
<pre><code> package... | 3 | 2,497 |
Adding onClickListener for a button created dynamically within a for loop | <p>I have a RelativeLayout that allows players of a game to input personal details such as name and define their role. The Layouts are created dynamically depending on how many players there are (This is defined earlier in the activity).
This is all contained in a for loop to generate each layout.</p>
<p>I am trying t... | 3 | 2,522 |
Class 'List<_JsonQueryDocumentSnapshot>' has no instance getter 'docs' | <p>I'm getting this error when I click on the button in firebase data is getting store but its not displaying the data. Please let me know where I, doing wrong or what changes I need to make to the code so solve the error.... I'm learning the Flutter myself and I don't know what to do next.</p>
<pre class="lang-dart pr... | 3 | 1,696 |
Can't click button below a MouseArea | <p>Here I have a rectangle that is the parent and a child rectangle. The child rectangle has a <code>MouseArea</code> that allows you to swipe the child rectangle. Now, I want to have a button on the parent rectangle (under the child rectangle and <code>MouseArea</code>) and I want to click that button even if the chil... | 3 | 1,583 |
Typescript : match function input type to output type in Array.reduce function | <p>I run into a problem when trying to generate an object through Array.reduce function. This code will work without any issues in javascript. However in typescript I'm not able to match types from the reduce function and it throws the Error shown below.</p>
<p>This is a small example, in my case there are many more in... | 3 | 1,169 |
How to correctly chain together 3 types of http requests, sequentially and dynamically? | <p>How can I use correctly chain together 3 types of http requests, where each request relies on data from the previous, and there might be a dynamic amount of needed requests depending on what was returned?</p>
<p>In my database I have a team table, where a team has a businessId that it belongs to.
I have a supervisor... | 3 | 1,123 |
React Class is throwing a compile error regading function classs using TypeScript | <p>I have a react object that I am trying to convert from a fucntion to a class in order to save the state and bind certain functions that I want to pass to child components. I am getting an error that causes it ot not compile. </p>
<p>React Component that I am trying to create with the state and functions that will b... | 3 | 3,191 |
Parsing and slicing char[] in C++ | <p>I have the following code:</p>
<pre><code>char recvbuf[DEFAULT_BUFLEN];
int recvbuflen = DEFAULT_BUFLEN;
int iResult = recv(this->ClientSocket, recvbuf, recvbuflen, 0);
if (iResult > 0) {
printf("Message received: %s\n", recvbuf);
std::string recvbuf = recvbuf;
printf("Message as st... | 3 | 1,344 |
Buggy fade in/out code in JavaScript/CSS | <p>I'm not the most proficient in coding and have been stuck at trying to get this function working right for days and hope that someone could help me...</p>
<p>The idea is for the red div to show by default and the blue/yellow divs to be called upon by pressing the 'fade 1' and 'fade 2' buttons. When either of the bu... | 3 | 2,838 |
On long press, how do you call an ImagePreviewController: UIViewController from an objective c function instead of a contextMenuInteraction function? | <p>This function below needs to instead go into an ObjC function</p>
<pre><code>///this 1st func is in UITableViewController, the others are in UITableViewCell
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if let cell = tableView.dequeueReusable... | 3 | 1,334 |
Why can't I appendChild my list item | <p>I am trying to get my Events' name shown accordingly in the Calendar. The names are all retrieved from local storage. However, I can't seem to append the name to the months div. While debugging, it said "cannot read property of 'appendChild' of null".</p>
<p>Here are my codes:</p>
<pre><code><table border="1" i... | 3 | 1,473 |
Functions, variables in functions, and tighter coding practices | <p>I'm not totally new to powershell, it's just that my scripts have been getting more complex and some concepts elude me. My scripts seem overly long because I use a lot of functions with repeatable pieces. It seems like I could do variables somewhere in my functions but I really don't understand where to start (and... | 3 | 2,194 |
KendoGrid refresh | <p>I'm using KendoGrid to display some data fetched from my service.</p>
<p>The user selects some parameters (company and date) and cliks on a load button.</p>
<p>The user selects a month on a datePicker and the server will return data from that date plus 11 months.</p>
<p>I only display the grid after the user clic... | 3 | 1,758 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.