title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
I don't understand the error | <p>I am trying to get a background image for my applet assignment for school and i am getting an error i don't understand. Also using Ready-to-Program if that is relevant </p>
<pre><code>import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.net.*;
public class Summative extends Applet
impl... | 3 | 1,101 |
Repeater with a UserControl inside an UpdatePanel is not working C# | <p>I am having a problem that can be so stupid but I can't find the solution for that. I have a UserControl inside a Repeater, and this Repeater inside an UpdatePanel. What I need to do is show some tiles (the UserControls) according the date selected.</p>
<p>When the page loads, the tiles are filled normally, everyth... | 3 | 2,961 |
bootstrap navbar not working | <p>i am trying to get the boostrap navbar to work, but it doesn't seem to be working as expected. here are some incorrect behaviors.</p>
<ul>
<li>the navbar does not collapse properly (when resizing browser)</li>
<li>the when clicking on a menu item inside the navbar, the navbar disappears (in chrome)</li>
<li>the nav... | 3 | 2,298 |
Stanford CoreNLP server using 12 threads, 6 clients calling it and yet sometime “Only one usage of each socket address is normally permitted” error | <p>Stanford CoreNLP server is using 12 threads, I have 6 mono-threaded clients calling it and yet I sometime get the error message:</p>
<blockquote>
<p>Failed to establish a new connection: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted'))</p>
</blockquote>
... | 3 | 2,509 |
Why is removing elements from the start/beginning in a Linked List faster than remove(last) in an Array List? | <p>Deleting items from an <strong>Array List</strong> from the end has a time complexity of O(1), just like deleting items from the head of a <strong>Linked List</strong>. But <strong>Linked List</strong> is still a bit faster when I test it in java and I don't quit understand why. Can somebody explain why is <strong>L... | 3 | 1,239 |
Adding images on button click along with the change of theme | <p>I am a new bie to the world of angular so rite now I have developed the below program to load the themes dynamically as shown below</p>
<p><strong>my-scss-file.scss</strong> :</p>
<pre><code>@import '~@angular/material/core/theming/all-theme';
@include md-core();
$primary: md-palette($md-deep-purple);
$accent: m... | 3 | 1,341 |
rails Activeadmin update nestedrecord with parent record field | <p>I have a model (Perro Camada) with a nested attributes (perro).
In my active admin file "perro_camada.rb" i want to overwrite the birthday (nacimiento) in nested fields with birthday (nacimiento) of parent record.</p>
<p>I don't have in troubles with the others fields like "padre_id" but with "nacimiento" dont wor... | 3 | 1,065 |
Running a progress bar using Background Controller in c# | <p>I don't have a thorough knowledge about controlling threads in c#. I want to create a progress bar while running a method. </p>
<p>I have two forms:</p>
<ol>
<li><p><code>Form1</code> is the form which show up as you run the app. It has a button called <code>btnScrape</code>. When it is clicked the method should b... | 3 | 1,142 |
Error of writing excel with a number of data by Using oledb | <p>I get a problem with inserting data into Excel using oledb</p>
<p>The problem: when I try to write less than 65000 lines of data into Excel, it works. But when I try to write more than 65000 lines, an error occurs:</p>
<blockquote>
<p>Spreadsheet is full</p>
</blockquote>
<p>I guess there is a limit to write da... | 3 | 1,260 |
Xcode firebase error user info NSlocalizedDescripion query cancelled | <p>I created a user interface in my story board where you can </p>
<p>sign into my app after you put in your sign in info you </p>
<p>click on my create account buttons and your data is saved </p>
<p>into firebase. When I click on the create account button I </p>
<p>receive an error message instead of the data goi... | 3 | 6,409 |
Unable to launch chrome browser appium@1.8 Android(7.0) | <p>I am trying to launch chrome browser in my Android mobile. I am getting this exception.</p>
<pre><code>Error while killing uiAutomator: Error: Unable to kill uiautomator processes. Original error: Error executing adbExec. Original error: 'Command '/Users/smuralik/Library/Android/sdk/platform-tools/adb -P 5037 -s 98... | 3 | 1,506 |
Android Sqlite Asset Helper : No such column Error | <p>I have used SQLITEDB Browser and created <br>
DATABASE : harryPotterDB.db<br>
TABLENAME : PotterQuizCollection <b>(Question,Option1,Ans,QID)</b></p>
<p>Database is situated as assets/databases/harryPotterDB.db<br><br>
The error occured is <i>
android.database.sqlite.SQLiteException: no such column: Ans: , while co... | 3 | 1,950 |
Trouble with file input [C++] | <p>I was trying for the first time to read data from a file, a .txt file. Below is my code:</p>
<pre><code>Level::ReadStream(std::fstream data)
{
bool write = false;
char* p = data.tellg();
while(!data.eof())
{
int i = 0, j = 0;
if(&p == '[')
{
write == true;
}
if(write == true)
... | 3 | 1,910 |
Plumbing pipes with pipe() in c++ | <p>I am currently trying to connect pipes between a parent and its children. The children are execing <code>sort</code> and are sorting input they receive from the parent. The children then write to a separate pipe. There are two pipes for each process. One so the parent may send input to child. Another so the parent m... | 3 | 1,914 |
What causes this error decompiling Minecraft? | <p>I have a big problem with the <code>decompile.bat</code> in the modcoderpack 918 with minecraft 1.8.8.
My Java version is 1.8.0_271-b09.</p>
<pre><code>Decompiling
'"C:\Program Files (x86)\Java\jdk1.8.0_271\bin\java" -jar runtime\bin\fernflower.jar -din=1 -rbr=1 -dgs=1 -asc=1 -rsy=1 -iec=1 -jvn=1 -log=WARN... | 3 | 1,807 |
How to create relationship between two tables using feathersjs, sequelize and postgresql | <p>I have two models <strong>users.model.js</strong> and <strong>swing-trades.model.js</strong> when I am creating a relationship between these two models and running feathersjs using npm run dev`, I am getting an error.</p>
<blockquote>
<p>throw new Error(<code>${this.name}.hasMany called with something that's not a s... | 3 | 1,204 |
Address sanitizer error when using boost serialization | <p>I've recently tried to use boost serialization to serialize a class which contains a <code>std::vector<std::unique_ptr<Base>>></code> as a member. According to the boost documentation (<a href="https://www.boost.org/doc/libs/1_71_0/libs/serialization/doc/serialization.html#derivedpointers" rel="nofoll... | 3 | 1,078 |
Inbound channel adapter throwing "no output-channel or replyChannel header available" error | <p>I would like to get the message from JMS and send it as HTTP request and in case of failure, enqueue it again to JMS.</p>
<p>I've tried using inbound-message-adapter and message-driven-channel-adapter, but it fails as I get "ChannelResolutionException: no output-channel or replyChannel header available" exception b... | 3 | 1,777 |
Passing ImageArray from Json File to ImageView Controller | <p>I'm Trying to have tableview with a search controller pass image Array from Json file to a new viewcontroller based on what option the user picks in search bar tableview. I have created a search bar for my App that displays will display all of the information in the app so the user can easily pick the pictures they ... | 3 | 2,481 |
Display loop response in loader modal while return the intermediate page in java | <pre><code>@RequestMapping(value = "/getMusterRollDateBasedNew", method = RequestMethod.GET)
public ModelAndView getMusterRollDateBasedNew(EmployeeReportsModel employeeReportsModel) {
ModelAndView mv = new ModelAndView();
String tablePrefix = "at_hr_logs_";
String loopresponse = null;
try {
Stri... | 3 | 2,457 |
Configuring WCF Endpoints? Chat server and client | <p>I'm trying to configure the WCF endpoints of my client program and my chat server program.</p>
<p>When I get to the point where the logic is trying to connect (client login to server), I get the following error:</p>
<blockquote>
<p>Could not find endpoint element with name 'ChattingServiceEndpoint'
and contrac... | 3 | 4,319 |
Converting a specific if/else if/else to switch | <p>I'm struggling a bit here, so I could use a bit of an outside opinion. I've had to quickly (and messily) write a function full of if/else statements to get something done, but now I have some more time to spend on it and I'd like to convert it to a switch. Been wracking my brains on this but I just can't seem to fig... | 3 | 1,169 |
Coldfusion send email | <p>I have function that checks the form and if the form is fine, it will open a modal notifying the user that there request has been sent(via email). However, I am having a hard time to send the email once the form has been submitted.</p>
<p>I have the following modal that will appear when the user submits the button:<... | 3 | 4,377 |
Simultaneous mouse press events in Python using Pynput | <p>I am using <code>scrcpy</code> to mirror an Android phone to my computer in order to play a game. The issue is that <code>scrcpy</code> does not support keyboard mapping natively, so I'm writing a Python script to map the keyboard to execute the key presses I need to play the game (using WASD to move around, space t... | 3 | 1,452 |
Getting Exception when reorder RowLabel when hiding the Subtotal -Apache POI | <p>As per below code i dont want to add addRowLabel(1) but need addRowLabel(2) . After running the application and open the pivot table its giving exception but if you add addRowLabel(1)(currently commented) its working as expected. This is happening after adding the logic to hide Subtotal. Is this is the expected beha... | 3 | 1,974 |
How to fix Kodein Force close error in Android | <p><strong>WHY NOT HELP ME ANY PEOPLE???</strong></p>
<p>In my application i used Kotin and <strong>Kodein</strong> for <strong>Dependency injection</strong>.<br>
I write below codes, but when run application show me Force close error!<br></p>
<p>In my application i used Kotin and <strong>Kodein</strong> for <strong>... | 3 | 1,556 |
How to make <li> remain highlighted when redirected to new page? | <p>I'm trying to make call a navigation bar(navbar.html) in to my index.html. Navbar.html has its own css and inside navbar.html is a script that changes the class of <code><li></code> when <code><a></code> is pressed.</p>
<p>I have managed to make the <code><li></code> to change highlight but when I... | 3 | 1,186 |
Illegal Argument Exception at Picasso in Android Recycler view | <p>I need to get an Image into the Image View using Picasso library Below is my code</p>
<pre><code> Picasso.get().load(mFilteredList.get(position).getViewProductImage()).into(holder.imageView);
</code></pre>
<p>But I'm getting the error like</p>
<blockquote>
<p>java.lang.IllegalArgumentException: Target must not ... | 3 | 4,168 |
Button Accordion (CSS) | <p>I'm currently working on a group project to create an open-source route planner using the API provided by Graphhopper.</p>
<p>We have an input panel on the left like most map APIs (see Google Maps/Graph Hopper) and we currently have a panel at the top which allows the user to change what vehicle type they're using ... | 3 | 2,390 |
How can I remove code from jquery plugin | <p>I have a wordpress plugin installed, I want to access the code bellow in order to remove the part after: // Init prettyPhoto. Is there a way to access the code, so I can edit variables, function ? How would you do this ? Wordpress plugins get updated frequently, so whenever the plugin gets updated, any change I do w... | 3 | 1,514 |
Pandas delete rows after condition in column "A" until confition in column "B" | <p>How do you remove each row after each "close_condition" == 1 until you reach a "open_condition" == 1 row?</p>
<p>No row with "open_condition" == 1 is to be deleted</p>
<pre><code> open_condition close_condition
0 1 1
1 0 1
2... | 3 | 1,244 |
Item in ScrollView is not seen in Scene, but it shows in hierarchy | <p>I am trying to display a list, generated dinamically. I created a prefab with the things I need in it (a TextView, 3 TMP_InputFields and 2 Buttons.)</p>
<p>To manage the different list items, I created a script (SkillManager, since the items represents skill the player can choose), which I attached to the prefab.<a ... | 3 | 2,566 |
Adding a colorbar whose color corresponds to the different lines in an existing plot | <p>My dataset is in the form of : </p>
<pre><code>Data[0] = [headValue,x0,x1,..xN]
Data[1] = [headValue_ya,ya0,ya1,..yaN]
Data[2] = [headValue_yb,yb0,yb1,..ybN]
...
Data[n] = [headvalue_yz,yz0,yz1,..yzN]
</code></pre>
<p>I want to plot f(y*) = x, so I can visualize all Lineplots in the same figure with different co... | 3 | 1,084 |
GridView's children are not extending to the edge of the GridView | <p>I am trying to make a custom calendar view</p>
<p>When I add <code>TextViews</code> to fill up a <code>GridView</code> they don't expand all the way to the edge of the screen even though everything is set to match parent. </p>
<p>The issue can be seen below on the right side of the emulator screen:
<a href="https:... | 3 | 2,372 |
Add ItemOnClick from my listview, fetching data using JSON from MYSQL | <p>I'm a beginner to android development.
It may look very basic but i really getting a hard-time to make it work in my project.</p>
<p>I am developing an application for professor to see all the student list who under probation in database.</p>
<p>in my progress after they log in their account to the application, al... | 3 | 2,479 |
ArrayList conversion using Linq | <p>***I sincerely apologise as I should have posted the complete code.</p>
<p>I have an application where I have an IUIAutomationElementArray and I have cached data regarding bounding rectangles of each IUIAutomationElement from the array. I am then converting these to WPF borders</p>
<pre><code>public class NumberRe... | 3 | 1,221 |
Pandas dataframe look for key in dict, write key in new column according to value | <p>I have a dataframe:</p>
<pre><code>df = pd.DataFrame([
{'ID': 1,'A': [{'name': 'lifestyle'}, {'name': 'economy'},
{'name': 'politics'}, {'name': 'climate & environment'}]},
{'ID': 2,'A': [{'name': 'sport'}]},
{'ID': 3,'A': [{'n... | 3 | 1,153 |
How to create collection with fields/variables/indexes using mongo | <p>I'm learning mongo from absolute scratch, and i can't for the hell of it figure out how to create a collection with predefined variables. I need to do that in order to have unique mails on my project. Any help would be very appreciated.</p>
<p>I'm trying to do a basic <code>CRUD</code>, and everything you see in the... | 3 | 1,546 |
Unity-Help needed to turn my keyboard and mouse inputs to setup mobile input | <p>Hey so I have this input script working fine for the PC just wanted to try mobile input. Can someone help to turn this script to work with mobile? I haven't tried anything yet first time trying mobile input. Just tell me how to set up this script with mobile and UI components.
QWERTYUIOPASDFGHJKLZXCVBNM</p>
<pre><co... | 3 | 1,530 |
How to add methods from SQLite DB class in fragment of Kotlin? | <p>I have an insert,update,read method in helperclass,how can I use in the following class?</p>
<p>Im not very used to kotlin but id like to now how can we insert the DB methods and integrate it with the code below</p>
<p>After adding a checkfield method ive been receiving an error when i add it in the onclicklistn... | 3 | 5,448 |
Nest an Excel Array Function In a Non-Array Function and Return an Array | <p>I am trying to create a spreadsheet that will be used to provide quotes to customers. Some part-numbers apply to a single item. Some part-numbers are bundles of up to 4 items. I am trying to create a formula that returns all of the values associated with a given part-number.</p>
<p>Initially, I had two section i... | 3 | 1,073 |
Vue Js 2 Error when import App.Vue in Visual Studio 2015 | <p>I am total new to Vue JS, I created a new project in Visual studio 2015. I haven't find any tutorial on web which can give you an idea how Vue js works with asp.net MVC in visual studio 2015. I followed all the steps need to work on Vue. I am using web pack simple template. All commands are according to their offici... | 3 | 2,540 |
Show only a few users and hide others | <p>Can anyone explain how to make a user list like as shown in the image below...
<a href="https://i.stack.imgur.com/fm9FY.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fm9FY.jpg" alt="User list"></a></p>
<p>I'm making a project in Meteor and using Materialize for template and I want to display th... | 3 | 1,066 |
Can't create EntityManager using JTA Datasource | <p>I'm trying to instantiate an EntityManager using a JTA Datasource, but I always get NullPointerException.
Here's my environment:
Server : JBossAS 7.0
JPA : 2.0
DB : MySQL</p>
<p>persistence.xml</p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com... | 3 | 1,586 |
ffmpeg not returning duration, cant play video until complete. Stream images 2 video via PHP | <p>I am real struggling with ffmpeg. I am trying to convert images to video, I have an ip camera which I am recording from. The recordings are mjpegs 1 frame per image. </p>
<p>I am trying to create a script in php so I can recreate a video from date to date, this requires inputting the images via image2pipe and then ... | 3 | 1,345 |
MapKit/CoreLocation iOS7 why can't I save annotation data (coordinates) to array? | <p>Alright, I've looked high and low for an answer to this. Why can I query the mapview.annotations array for coordinate data but I cant save the same annotation data at generation into an array that is query-able in the same fashion.</p>
<p>This is my code:</p>
<pre class="lang-c prettyprint-override"><code>- (voi... | 3 | 3,540 |
select radio button in group by the value which user input selenium python | <p><a href="https://i.stack.imgur.com/j6n9D.png" rel="nofollow noreferrer">click for image</a></p>
<p>If i have a table like this,the user enter LLCT120205_27 or LLCT120205_28 or LLCT120205_29.How can i click exactly the radio button which the user want to choose.Thank you in advance.</p>
<p>html:</p>
... | 3 | 4,729 |
React Viro, click very long to fire in release | <p>I'm currently working on Ar app in react native, version 0.55, and react-viro, version,2.12.0. It's pokemon like app, where on the AR page, there's clickable item.
When the user clicks on it, it opens a modal.
In dev, (here is the complete commmand: adb reverse tcp:8081 tcp:8081 && react-native run-android -... | 3 | 1,122 |
Why SOAP Request obj data going to Server from Client as Null in Spring Boot | <p>I am trying to consuming SOAP Webservices in SpringBoot maven project. SO i have generated classes using wsdl. I am trying to call the server and the client is able to hit server but the request data is going to the server as null. </p>
<p>I am not getting why the request data is going to the server as null. please... | 3 | 1,298 |
Why does my mmenu always position at the top of the page? | <p>I have a jquery.mmenu that is located about half way down the page in desktop view and I believe the script is positioning it as the first item in the body.</p>
<p>We are only using mmenu on mobile devices in a responsive layout so therefore we would like it to not affect any of our desktop styles.</p>
<p>Is there... | 3 | 1,434 |
Android - What data structure to store video subtitles to get them in O(1) time | <p>I am playing a video in my application and I have to show subtitles on top of that. subtitles are in a separate smi file which is some sort of XML markup that provides subtitle information. the subtitle file looks something like this:</p>
<pre><code>.
.
.
<sync start=104600>
<P Class=GBR><... | 3 | 2,145 |
Architecture for an isomorphic app using React.js and Flux | <p>I'm looking for the best technology/architecture choices for my isomorphic app.
Here are my constraints, due to what has already been developed, what we need and what we'd love:</p>
<ul>
<li>All front-end in <strong>React.js</strong>, with layout(s), child components, etc.</li>
<li><strong>Flux</strong> architectu... | 3 | 1,710 |
How to construct a configuration data class with no logic? | <p>Within our project, we need to describe the properties of the HW we are working with. This information is then used within the program to make some decisions on how the program should execute.</p>
<p>I'm trying to find the optimal data structure for the job and I've been wondering what would be the pythonic approach... | 3 | 1,200 |
tensorflow2.1 inside docker report OOM when creating tf.Variable | <p>I am new to docker tensorflow2.1.
Below works:</p>
<pre><code>docker run --gpus all -it --rm tensorflow/tensorflow:latest-gpu-py3 \
python -c "import tensorflow as tf; print(tf.__version__)"
> 2.1.0
</code></pre>
<p>But this one reports OOM:</p>
<pre><code>docker run --gpus all -it --rm tensorflow/tensorflow:... | 3 | 3,133 |
Is it possible to run multiple tensorflow serving containers on single GPU node kubernetes | <p>I am running a Tensorflow model on an AKS cluster with GPU nodes. The model currently runs in a single TF Serving container (<a href="https://hub.docker.com/r/tensorflow/serving" rel="nofollow noreferrer">https://hub.docker.com/r/tensorflow/serving</a>) in a single pod on a single GPU node.</p>
<p>By default the TF ... | 3 | 1,215 |
NSRangeException - Breakpoint not giving me any clues | <p>Forgive any errors here, I'm a coding hobbyist and a newbie to SO question asking, but have done my best to track down this bug and failed.</p>
<p>I'm getting a crash moving between SKScenes, but only if the app has gone into, and been restored from, background mode. Also the crash only happens on an actual device... | 3 | 1,607 |
jqXHR object's responseText being returned as html rather than json | <p>On staging, in the error callback, the jqXHR.responseText is being returned as a html string but locally it works perfectly & a json object gets returned in the very same error callback, I'm making a typical asynchronous HTTP (Ajax) request using JQuery. </p>
<p>Snippet of the error callback is shown below</p>
... | 3 | 3,266 |
An aggregate function that only allows one unique input | <p>I often find myself adding expressions in the <code>group by</code> clause that I am sure are unique. It sometimes turns out I am wrong - because of an error in my SQL or a mistaken assumption, and that expression is not really unique.</p>
<p>There are many cases when I would much rather this would generate a SQL e... | 3 | 1,256 |
laravel form, data not storing into the database | <p>this is my blade file
@csrf
name
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
</p>
<pre><code> <div class="form-group col-md-6">
<label>email</label>
<input type="email" name="e... | 3 | 3,352 |
502 Bad Gateway nginx/1.14.0 (Ubuntu) digitalocean vps django, nginx and gunicorn | <p>I put up a site in production a week ago made using django and postgres on digitalocean and followed the django nginx, gunicorn and postgres tutorial <a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04#configure-nginx-to-proxy-pass-to-gunico... | 3 | 3,268 |
Leaflet how to take individual values in GeoJSON? | <p>I would like to do this in the Leaflet!
I have a GeoJSON file with these data:</p>
<pre><code>"type": "Feature",
"geometry": {
"type": "MultiPoint",
"coordinates": [
[
-123.77252789,
44.37857221
],
[
-123.77317087,
44.37864694
],
[
-123.77383407,
44.37875853
]
]
},
... | 3 | 1,294 |
Apache Nutch failed to load hadoop naive library | <p>I am new in Apache nutch, so i followed Apache nutch tutorial from the Apache wiki,<br>
environment is:<br>
<strong>Windows 10<br>
Jdk 1.8<br>
Cygin 2.9.0<br>
Apache Nutch 1.14<br>
Solr 6.6.2<br>
winutils - hadoop-2.8.1</strong><br>
i already set up JAVA_HOME and HADOOP_HOME<br>
when i run crawl command in Cygin<br... | 3 | 2,888 |
NullInjectorError of feature store when testing component | <p>I try to fix the test of <code>LoginComponent</code>. The error came when the feature store (notification) component was moved to a lazy-loaded module from <code>SharedModule</code>. I have no idea what can be wrong here. I tested many configurations of the testing component with ngrx. Also, moving back <code>Notifi... | 3 | 1,409 |
How I can send parameter to a JSP servlet with a c:forEach form? | <p>I have a problem mixing JSP Servlet and c:forEach form...
The problem is that whatever my id is, the HTML form will always send the first in the list, refered to ' name="id" '.
Is there a solution maybe to get several name="id1", name="id2" ...etc in order to get the good one ?</p>
<p>Here is the code.</p>
<p></p>... | 3 | 1,247 |
RSA - Java's KeyFactory fails where bouncycastle's PEM parser succeeds | <p>I have a PEM formatted public key (received from an iOS device):</p>
<pre><code>String pemPubKey = ""+
"-----BEGIN RSA PUBLIC KEY-----\n"+
"MIIBCgKCAQEA07ACQHTTrgX7ddNtyamh58xwD+S+pSrJz/Rah4zj0HIg4V/Ok5vk\n"+
"Wx6y4UyuKLCtefeiB2ipg/n1ZZ0eRac1B4UwPhAtILGQzgIUgOp0cQ3Cb94ugq92\n"+
"wxkxeEdWmIFIlXgWOf6I8yWp9DZaigrRhA2k... | 3 | 1,612 |
Clearing the value of a dynamically created text-box which is present inside the dataTable | <p>I've created a table with four columns. Few text-boxes and a select drop-down are created dynamically inside the table, when the new form is loaded. I also have a text-box(Final Value), where the user will enter a value. This is how it actually appears:</p>
<pre><code>ID | Users | Values | Values to be bi... | 3 | 4,016 |
require to change the dropdown item for other row's dropdown item in wpf | <p>i have a list view with the following code</p>
<pre><code><ListView Name="configurationModeGrid" Width="400" Margin="236,440,58,143" BorderBrush="Black" FontFamily="Microsoft Sans Serif" FontSize="11">
<ListView.View>
<GridView>
<GridView.Columns>
... | 3 | 1,680 |
Updating array in reducer | <p>i am trying to update state in reducer with a array of objects. Following is what i am doing.</p>
<p><strong>Action.js file</strong></p>
<pre><code>export const apiSuccess = (data, forCust) => {
return {
type: ACTIONS.validateSuccess,
data: data,
forCust
};
};
export const apiFail... | 3 | 1,053 |
How to add a link to images based on some condition using typescript and react? | <p>i want to add a link to the image based on some condition using javascript and react.</p>
<p>what i am trying to do?</p>
<p>i have mobile and desktop images.</p>
<p>under mobile image i have text saying switch to mobile and
is clickable if the users current url is not matching mobile_url.
if the users current url ma... | 3 | 3,224 |
I am trying to update multiple images but getting error using laravel 8 | <p>I am trying to update multiple images but unfortunately I am getting error please help me how can i resolved that ? thank u.</p>
<p><strong>please check error</strong></p>
<p>Invalid argument supplied for foreach()</p>
<p><strong>controller</strong></p>
<pre><code> public function update(Request $request, $roo... | 3 | 1,456 |
Generate CSV file client side, send using Angular POST, save server side through PHP backend | <p>situation:
clients has an existing windows app that uses csv files to transfer data back and forth and wants to persist in that manner.</p>
<p>challenge:
After reading CSV data from server address process the data and generate a new CSV file and upload this to the 'backend'.</p>
<p>What I have tried:
I have read jus... | 3 | 1,148 |
Dspace OAI - Estado HTTP 500 - Request processing failed; nested exception is java.lang.NullPointerException | <p>When we can access to:
<a href="http://dspace/oai/request?verb=ListRecords&metadataPrefix=oai_dc" rel="nofollow noreferrer">http://dspace/oai/request?verb=ListRecords&metadataPrefix=oai_dc</a>
we have the following error:</p>
<pre><code>ene 16, 2018 12:54:02 PM org.apache.catalina.core.StandardWrapperValve ... | 3 | 1,801 |
IBM MQ CLOUD CONNECTION | <p>I am trying to setup ssl/tls between the app and the cloud following this <a href="https://cloud.ibm.com/docs/mqcloud?topic=mqcloud-mqoc_jms_tls" rel="nofollow noreferrer">https://cloud.ibm.com/docs/mqcloud?topic=mqcloud-mqoc_jms_tls</a>.</p>
<p>When the sslauth is set to optional on the cloud mq app channel <code>... | 3 | 2,288 |
docker compose image no longer working laravel | <p>I have a laravel app that I develop locally using docker to create the containers.</p>
<p>This has worked for months, I haven't developed the app for the past 2 months but today when I start the containers I can no longer communicate from the php instance to the database instance. I can connect to the server using... | 3 | 1,392 |
Why jdbc return null in first time when execute the query? | <p>The below code is working with <code>sql-server db</code> & <code>ZXingScannerView.ResultHandler</code> barcode scanner.</p>
<p>When I scan the barcode for the first time I get <code>null</code> from executed db query and I have to scan the barcode twice to get the result. I checked the <em>barcode scanner li... | 3 | 2,114 |
SELECT query taking too long after MySQL upgrade | <p>I just updated my MySQL version to 5.7. A SELECT query that has four INNER-JOINS and that previously took around 3 seconds to execute is now taking so long that I can't even keep track of it. A bit of profiling shows that the 'Send Data' part is taking too long. Can someone tell me what is going wrong? Here's some d... | 3 | 1,164 |
Selenium Web Driver returns Selector not visible | <p>I have a HTML page that looks like this. I have to click on a menu dropdown and click on its 6th item. </p>
<pre><code><li class="open">
<a href="#" class="dropdown-toggle ">
<i><img src="/cs/images/icon_01.jpg" alt=""></i>
<span class="menu-text"> User Accoun... | 3 | 2,019 |
SonarQube Java 3.9 - AnalysisException | <p>I've updated today to SonarQube Java plugin 3.9 and I'm getting the following error during analysis of my project.</p>
<p>The analysis works with Java plugin versions 3.8. It only fails against 3.9</p>
<pre><code>00:02:10.233 Caused by: org.sonar.squidbridge.api.AnalysisException: SonarQube is unable to analyze fi... | 3 | 2,065 |
Why this C++ program should crash runtime? | <p>I am newbie in C++ and I am trying to write a program in C++. Below is my code. When it comes to the lines indicated by comment <code>//PROGRAM crashes</code> , the program crashes and gives this error: <code>Process returned -1073741819 (0xC0000005)</code>. </p>
<pre><code>#include <iostream>
#include <c... | 3 | 1,172 |
Recycler view not placing view properly | <p>I am using a <code>Horizontal Recycler View</code> inside a <code>Vertical Recycler View</code>. The code is working.The problem is that the <code>Row Item</code> of the <code>Horizontal Recycler View</code> is proper.It is not placing the views in correct position</p>
<p>View from the preview in Android Studio
<a ... | 3 | 4,280 |
Custom formatter calling in jqgrid not worked | <p>I am trying to call a formatter function from my jqgrid. I put an alert inside my formatter function, but it is not worked. I followed <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter" rel="nofollow noreferrer">http://www.trirand.com/jqgridwiki/doku.php?id=wiki:custom_formatter</a> tutori... | 3 | 1,329 |
Bootstrap menu not expanding | <p>I have a wordpress site that I am coding using Bootstrap 5 which works for everything except the navbar which does not expand when clicked as a hamburger, tried a few solutions online, changed CDN, class name changes for Bootstrap 5 etc but still not working, not sure if I have bootstrap installed as well as CDN tha... | 3 | 2,505 |
App is getting crashed in while creating Uri uri | <pre><code>package com.example.renu.customlead;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import an... | 3 | 5,257 |
C++ Initialization of array in structure | <p>I would like initiated size of array in structure when I constructing object:</p>
<pre><code>class someclass{
public:
someclass(int init_msgsz) { this->msgsz = init_msgsz; }
private:
int msgsz;
struct msgbuf {
long msqtype;
uint8_t msgtext[msgsz];
} send_message_buf, receive_message_buf;
... | 3 | 1,664 |
passing variable sized form using jQuery to PHP file for processing | <p>I have a form that is of variable size (length) that is populated from a MySQL db. There are 4 fields that make up the information used to create a button (id, button#, name and price). When the form is submitted I want to save all the values to the MySQl db and update a div at the bottom of the page with a success ... | 3 | 1,284 |
Refinerycms + devise: custom user can't find the devise helpers (how to add a separate devise authentication)? | <p>I have a problem that doesn't seem so difficult at first, but actually I can't solve.
I'm trying to use Refinery as CMS for an application. I want to keep separate Refinery users and other kind of users, call them mktgeistusers that will need to register and login in order to access to some protected pages. So I cr... | 3 | 9,777 |
The grid Button command executes but does nothing in the function I want | <p>I'm making a game and two buttons should appear on the ranking grid. The options are: If you want to play a new game or end the game. I tried this way:</p>
<pre><code>import tkinter
from tkinter import *
import tkinter as tk
class Ranking:
def __init__(self) -> None:
self.partidas = []
def agregar_p... | 3 | 1,078 |
How to optimize grouping of a DataFrame and performing operations on the groups | <p>Here's an example of my dataframe:</p>
<pre><code>d = {'group': ['a', 'a', 'a', 'b', 'b', 'b', 'b', 'b', 'c', 'd', 'd'], \
'round': [3, 3, 2, 1, 3, 1, 3, 3, 3, 2, 1], \
'score': [0.3, 0.1, 0.6, 0.8, 0.2, 0.5, 0.5, 0.6, 0.4, 0.9, 0.1]}
df = pd.DataFrame(d)
df
</code></pre>
<pre><code> group round sco... | 3 | 1,060 |
Rails Has Many relation | <p>I have two models that two relationships between them </p>
<pre><code>class Tracking
include Mongoid::Document
belongs_to :origin_courier, :class_name => "Courier", foreign_key: "origin_courier_id"
belongs_to :destination_courier, :class_name => "Courier", foreign_key: "destination_courier_id"
end
cl... | 3 | 1,068 |
Unable to store and retrieve image data from database via jdbc in struts2 | <p>I am using struts2 . i m trying to store the image's path to database and to store the image in server and then want to retireve those image data in jsp page. i need guidance.
but i get an error</p>
<blockquote>
<p>java.lang.NullPointerException</p>
</blockquote>
<p>i have created 3 class.
registraton(bean clas... | 3 | 3,769 |
Drop rows based on specific conditions on strings | <p>Given this dataframe (which is a subset of mine):</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>username</th>
<th>user_message</th>
</tr>
</thead>
<tbody>
<tr>
<td>Polop</td>
<td>I love this picture, which is very beautiful</td>
</tr>
<tr>
<td>Artil</td>
<td>Meh</td>
</tr>
<tr>
<td>Art... | 3 | 1,096 |
cygwin introduces spaces in the console output when running a maven build for a java project in windows 10 | <p>Check the following output fragment from a cygwin64 terminal on windows 10 64bit while running a maven 3 build using java 1.8:</p>
<pre><code>[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\proj\t020-domain\src\ test\resources
[INFO]
[INFO] --- maven-c... | 3 | 1,259 |
Pass Java Object into Retrofit not processing correctly | <p>I am trying to upload an array of files, an authorization header, and a java object.</p>
<p>The issue is the way the backend is setup, I do not want to name the @Part annotation for my DocumentUpdateObject. Is there a way to allow for @Part(null), or to convert my custom object (DocumentUpdateObject) into a Multipa... | 3 | 1,080 |
SQL - edit of report (returning initials from previous field) | <p>Admittedly, my SQL knowledge is not amazing, and I need to do some edits to a SQL report within our Oracle system. Below is the report code. basically, the report below (I have edited the names to Manager 1/ Manager 2 ETC ETC). Can I add a column to the end of this that says if Executive_Member = 'Manager 2' return ... | 3 | 10,545 |
Using Seek Bar to zoom android Canvas | <p>this is my first question in stackoverflow. any help would be very much appreciated.
I am trying zoom a canvas using a seek bar, so depend on the progress of the seekbar, the canvas will zoom in and zoom out.</p>
<p>here is my code in the main activity:</p>
<pre><code>@Override
public void onProgressChanged(SeekBa... | 3 | 1,774 |
how do I use a blob read from a file in an if/else statement? | <p>I am trying to read a character from a localhost file (a downloaded html file) and use it in an if/else statement.</p>
<p>This is code I found online with only modest modifications. It successfully targets the specified character and displays it when clicking one of the buttons, but when I try to use it in the if/... | 3 | 1,350 |
Using the response from an asynchronous call with the Google Maps API | <p>I have a .json file that I'm trying to import as a text string.</p>
<p>This is the exact file contents:</p>
<pre><code>{ "type": "Polygon", "coordinates": [ [ [ 1.5887868, 50.8315241 ], [ 1.5830702, 50.8466931 ]....... ] ] ] }
</code></pre>
<p>I'm trying to import it using this:</p>
<pre><code>jsonString = jQue... | 3 | 1,648 |
android checkbox buttonview gets the initial and last id of checkbox when used in a for loop | <pre><code> private void show_weatherdialog() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater li = getLayoutInflater();
</code></pre>
<blockquote>
<p>Blockquote</p>
</blockquote>
<p>inflating the main layout for the row_item that contains tetview, checkbox and add b... | 3 | 5,618 |
Python - Tkinter window and endless loop class at the same time | <p>I've got the problem that I want to call some code after the mainloop of Python which is written in a secound class. But this Class contains a possible endless loop which will cause Tkinter to freeze when I try to call the mainloop() after it. Is it possible to get the data from the first class to the Window even t... | 3 | 2,075 |
Algorithm Efficiency Pattern Matching, Checking for image inside image | <p>This is a more descriptive version of my <a href="https://stackoverflow.com/questions/24050383/algorithm-complexity-and-efficiency-exponential-operation-java?noredirect=1#comment37158877_24050383">previous question</a>. The problem I am trying to solve relates to block-matching or image-within-image recognition.</p>... | 3 | 1,255 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.