title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
UIPickerView won't display the data loaded from NSUserDefaults - App is crashing while loading data | <p><em>I made a first try to use NSUserDefaults in an App with UIPickerViews. But the App is crashing while testing / the data isn't displayed in the PickerView. I still try to fix it myself but some help would be great.</em></p>
<p><strong>ViewController3:</strong>
<em>Where the user should save data to the NSUserDef... | 3 | 1,456 |
How do I reindex a pandas DataFrame while also resampling it and aggregating its data according to the new index? | <p><strong>1) I have the following 1-minute-frequency-data in a pandas DataFrame:</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th style="text-align: left;">0</th>
<th style="text-align: left;">Open</th>
<th style="text-align: left;">High</th>
<th style="text-align: left;">Low</th>
... | 3 | 1,073 |
Vertical alignment for two inline-block elements not working as expected | <p>In the code below, why do I need to set <code>vertical-align: top</code> to both elements to close the gap between them? If the gap occurs on the first element only, can't I just set that to <code>vertical-align: top</code> to close the gap?</p>
<p>Here is what occurred if I assign vertical-align property to only <c... | 3 | 1,205 |
How to make columns editable in special abstract model JTable | <p>Hey guys i doing my assignment and now i have the problem with non editable cells, actually it became editable, but the result of editing didn't set at arraylist, I tried many solution from internet, but it doesn't work.
So my work like registration system which get information about guest, and then stored it into c... | 3 | 1,395 |
how to arrange multidimensional array - Group by value in php? | <p>I want to arrange same date items to single index, I have following array -</p>
<pre><code>Array(
[0] => Array
(
[date] => 30 Dec 2015
[record] => Array
(
[id] => 84675
[name] => Item1
)
)
[1] => Array
(
[d... | 3 | 1,121 |
Table overflowing after adding more headers | <p>I am having issues with a table that is overflowing after adding a few headers.
For some reason, after I add more than one header, my table shifts to the right.</p>
<p>This is how the original table looks like:
<a href="https://i.stack.imgur.com/xxn02.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co... | 3 | 3,331 |
Are there better alternatives to g.drawString() / g2D.drawString()? (solved) | <p>I have been trying to put text onto an already existing window for a while now.
I want to be able to add, remove, arrange and rearrange paragraphs across the screen.</p>
<p>At first I tried to add text components - which had a delay of several seconds.
Next I experimented with geometry in the paint component of JPan... | 3 | 7,338 |
Procedure entry point gzdirect could not be located in the dynamic link library | <p>I tried to run the below command</p>
<blockquote>
<p>conda create --name tf_gpu tensorflow-gpu</p>
</blockquote>
<p>and it throws the error</p>
<blockquote>
<p>Traceback (most recent call last):
File "C:\Users\alexk\Anaconda3\lib\site-packages\conda\exceptions.py", line 1062, in <strong>call</strong>
... | 3 | 1,117 |
Making a Leaderboard in R Shiny | <p>I am attempting to make a leaderboard in R Shiny for my school where users could submit their name, teacher's name, and their score in textInputs by clicking an actionButton. I am having trouble with the following:</p>
<p>a) Making the textInputs submit on the push of the actionButton (I know I should use the isolat... | 3 | 1,097 |
Database row is not deleting, AJAX, PHP error | <p>I want to remove DB row data from HTML table. I have an HTML table where I have called all the database table values. I want to give a delete order option to the user. I have used a delete button for that. To do this, I am trying to use ajax and jquery with php delete query. But the issue is When I click on delete i... | 3 | 3,312 |
Convert C# Array type web builder to F# | <p>I am new to F# and trying to convert the following Service Fabric Asp.Net core code from C# into F# and failing terribly. Can anyone help?</p>
<pre><code>protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()
{
return new[]
{
new ServiceInstanc... | 3 | 1,343 |
Images is not shown in my Full screen Activity from my json response..? while swiping also | <p><strong>How to swipe my full screen images from gridview...and that images should Loading from JSON response...?</strong></p>
<p>i'm new to android...please help me friends...</p>
<p>But i want to use only <strong>One url</strong> in my program(<strong>JSON URL</strong>)...from that i need
<strong>Gridview--->Full... | 3 | 6,543 |
R FlexDashboard ggiraph chart not showing on second page of dashboard when using IE 11 | <p>I have a multi-page R FlexdashBoard and I am trying to use ggiraph to create some interactive charts. They show up fine on the first page of the dashboard, however on the second page the SVG graphics do not show up until I hit refresh then the charts on the first page disappear. Also the text in the SVG graphics se... | 3 | 1,238 |
Deserialize XML to list of lists | <p>Given the following code used to serialize:</p>
<pre><code>[XmlRoot(Namespace = "", IsNullable = true, ElementName = "ReportSpec")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
public partial class ReportSpec{
[System.Xml.Serialization.XmlElementAttribute("Reports")]
public ReportsHolde... | 3 | 1,703 |
How to Remove TextView BackGround from listview if value is null? | <p>I am making simple offline chat app, till now every thing is working fine but i want to remove the background of textview if value is null. Chat is having simple left right combination.</p>
<p><a href="https://i.stack.imgur.com/2n6jg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2n6jg.png" alt=... | 3 | 4,029 |
React-router undefined after concatenation | <p><strong>I've set up an app with <a href="http://facebook.github.io/react/" rel="nofollow">react</a> using <a href="https://github.com/rackt/react-router" rel="nofollow">react-router</a> for routing and are having issues bundling it all.</strong></p>
<p>I'm trying to build/bundle all the js files using <a href="http... | 3 | 1,744 |
How can I change questions from text fields to radiobuttons? | <p>the quiz should give +2 marks for right answer and -1 for wrong then display the final mark with the submit button and a clear or reset button.</p>
<p>I need to change the questions from text fields to radiobuttons(if possible with getradiovalue() ).
(I added the earlier one because i thought this was more harder to... | 3 | 1,623 |
why am i getting Manifest merge error when apply firebase and google authentication libraries | <p>i am trying to connect my app to firebase and use the google authentication system inside it </p>
<p>when applying the libraries i get a manifest merge error
the error is in this line </p>
<pre><code>implementation 'com.google.firebase:firebase-core:17.0.0'
</code></pre>
<p>this is the error i get </p>
<pre><co... | 3 | 1,208 |
Highcharts Tootip in wrong location for multiple x axis | <p>I've got a chart with two x axis side-by-side, with one series in each. When I float over the Series 1 data, I see the tooltip, as expected. When I float over Series 2 data, it highlights the line, but no tooltip. However, if I move the cursor to the left at the same height as the data in Series 2 data, but above... | 3 | 1,114 |
Error on APIM 4.0.0 service catalog listing | <p>I deployed APIM 4.0.0 on Kubernetes. Then, I tried to use the Integration Studio with APIM. Then, I added these lines into the embedded deployment.toml file in Integration Studio.</p>
<pre><code>[[service_catalog]]
apim_host = "https://xxx.xxx"
enable = true
username = "admin"
password = "ad... | 3 | 1,316 |
Media queries stop overwriting? | <h2>Solved</h2>
<hr />
<p>So - I have been building this grid-framework, when I stumbled upon an issue, which neither I had before nor I can find any evidence on online.</p>
<hr />
<p><strong>In short</strong>: when I have multiple <code>@media queries</code> arranged like this:</p>
<pre><code>@media (min-width: 400px)... | 3 | 2,289 |
Visual Studio 2017 reports this error for my multi-platform xamarin App | <p>Someone Help I have been on this issue for 4 days, my app was working perfectly fine when it started reporting this error "This debug engine does not support exception conditions. The condition(s) will be ignored". It does not find some of the dll.so packages, I tried deleting the bin and debug folder, and rebuild t... | 3 | 3,156 |
My excel userform becomes unresponsive the next time I load it | <p>I have two forms, a login form to authenticate users to enter the system and a main form to work with if the authentication is successful. I work with an access database to search for the valid users and also to populate lists in the main form.</p>
<p><a href="https://i.stack.imgur.com/nvHhR.png" rel="nofollow nore... | 3 | 1,037 |
How to transfer an image to another component using Redux? | <p>I've set up my Redux to capture a user selection from a webshop (item, size, price) and send it to another <code>Cart</code> component. This is working perfectly, but I want to capture an image of the item and send it to <code>Cart</code>. Within each product page where you can add an item to the cart there is an im... | 3 | 3,604 |
Unable to consume JAVA sdk for Google classroom API's getting PERMISSION_DENIED Request had insufficient authentication scopes | <p>I am trying to integrate google classroom in my java project Using OAuth 2.0 for <strong>Server to Server</strong> authentication, example is given here <a href="https://developers.google.com/classroom/quickstart/java" rel="nofollow noreferrer">Official Google class room integration doc</a> uses <strong>OAuth consen... | 3 | 1,995 |
php mysql query deleting items even when the item is not present in the table | <p>This is my "DELETE BOOKS FROM LIBRARY PAGE"</p>
<pre><code><HTML>
<?php
global $bkiderr;
?>
<link rel="stylesheet" href="btndeletebooks.css">
<link rel="stylesheet" href="tablealncenter.css">
<link rel="stylesheet" href="spanerror.css">
<p><sp... | 3 | 1,839 |
Error While Uploading Image to server using PHP | <p>I'm trying to upload an image to a server by using php. But I'm getting following error:</p>
<blockquote>
Caused by: java.lang.IllegalArgumentException: Illegal character in query at index 171:my server name/upload.php?sel_bar_code=ab12&text=hello&image=[encoded image to base64 comes hear]</blockquote>
<p>I'm not ... | 3 | 1,665 |
Parsing nested JSON Object in recyclerview using retrofit gives error: "Expected begin ARRAY but was BEGIN_OBJECT at line 1 | <blockquote>
<p>So i was trying to parse JSON data into my recyclerview. But got error
saying: "Expected begin ARRAY but was BEGIN_OBJECT at line 1"</p>
</blockquote>
<p>My <strong>JSON</strong> response:</p>
<pre class="lang-json prettyprint-override"><code>{
"status": "success",
... | 3 | 2,374 |
How do I call my Date Picker from a button press? | <p>I am trying to create an app that allows me to pick a date and a table is populated with appointments on that day. I am having troubles with getting the date picker to show.</p>
<p>I have taken a look at this <a href="https://developer.android.com/guide/topics/ui/controls/pickers" rel="nofollow noreferrer">https://d... | 3 | 1,202 |
How do I convert a libGDX GWT game to version 1.9.5? | <p>I am trying to upgrade my game to libGDX 1.9.5. The game works fine on desktop, but when I try to build the HTML version I get the following error:</p>
<pre><code>Configuration on demand is an incubating feature.
:core:compileJava UP-TO-DATE
:core:processResources UP-TO-DATE
:core:classes UP-TO-DATE
:core:jar UP-TO... | 3 | 5,035 |
Gunicorn + Supervisor configuration issue. Django project deployed on amazon ec2 + ubuntu + nginx | <p>I've been running a django project on an ubuntu ec2 instance with gunicorn and nginx. I know it was running for at least a couple days with no issues, but I just checked in on it a week after deployment, and it is no longer running. I get a 502 Bad Gateway error when I access the site. I put in my usual gunicorn com... | 3 | 1,567 |
Why Elixir Guardian (DB) has Problems finding token? | <p>I have Problems to understand, how guardian works or handles errors, so in this example, I simply try to logout and get errors on the console..</p>
<p>code:</p>
<pre class="lang-ruby prettyprint-override"><code>def delete(conn, _params) do
{:ok, claims} = Guardian.Plug.claims(conn)
conn
|> Guardian... | 3 | 4,996 |
iOS - AudioFormat issue linking up mixer, remoteio and dynamics processor | <p>I'm trying to link up my mixer -> remoteio -> dynamics processor</p>
<p>Here is my AudioFormat
// Describe format</p>
<pre><code>memset( &audioFormat, 0, sizeof(AudioStreamBasicDescription) );
audioFormat.mSampleRate = 44100.00;
audioFormat.mFormatID = kAudioFormatLinearPCM;
audioFormat.... | 3 | 1,125 |
mySQL returns empty even though it shouldn't? | <p>am a total mySQL newbie, but I have no idea how to search for the answer to this, so that's why I'm bringing it here:</p>
<pre><code> DESCRIBE rParam;
+----------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra ... | 3 | 1,767 |
Issues with time() when running a C musl application in docker container on arm | <p>My application is unable to handle time operations like <a href="https://linux.die.net/man/2/time" rel="nofollow noreferrer">time(2)</a> when it runs in alpine docker container on an arm device.</p>
<p>What I have:
I am building a native c application which is statically linked to musl with toolchain from musl.cc (a... | 3 | 1,112 |
Tons of timeouts from Node.JS Express API hosted on Nginx behind Cloudflare | <p>I have a Node.JS Express API (MySQL) hosted on Nginx behind Cloudflare (2 instances running). I'm getting a lot of 504 timeout on Roblox and upstream timed out on Nginx. I have never seen a request I sent with Postman fail. I think it happens more under load. These instances are processing processing 11M requests a ... | 3 | 2,792 |
Observable loses value after call to applyBindings | <p>I am working on this <a href="http://jsfiddle.net/StrandedPirate/yjhz6bvj/" rel="nofollow noreferrer">fiddle</a> trying to isolate a problem I'm having with the value not being set on a <code>select</code> element and now I'm stuck with nonsensical behavior in jsfiddle. I can't tell if this issue is my underlying pr... | 3 | 1,194 |
Extract values conditionally from namespaced XML using XPath | <p>I need to extract some info from a XML using XPath ... the XML is like the following ...</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataserv... | 3 | 2,449 |
add jsr80 on maven | <p>I am trying to add jsr80 with maven on eclipse on linux(Lubuntu).</p>
<p>My pom.xml is</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-
4.0.0.... | 3 | 1,100 |
wxpython Segmentation Fault when deleting item from ListCtrl | <p>Whenever the program reach <code>self.DeleteItem</code> it crashes and print <code>Segmentation Fault (Core Dumped)</code>. After removing <code>self.DeleteItem</code> it does not crash anymore but we lose the ability to remove a row. I am not sure what is wrong with this as it is only one line that is broken. Can y... | 3 | 2,710 |
What is the best way to write a switch statement to return an image depending on a number without repeating to much code? | <p>I have a switch statement that returns an image based on the case number. I have 8 images of water droplets that start off as an empty droplet(drop_empty) and when the number increases from 1...6 and so on as shown in my code I want to change the images. For the 8 images as shown in the screenshot, I have each one s... | 3 | 3,285 |
grails generate war error java.lang.ArrayIndexOutOfBoundsException: 1 | <p>I've tried to generate war file in grails with command :</p>
<pre><code>grails war
</code></pre>
<p>but this error is shows up, and this is the first time with this error, previously war is generated normally.</p>
<p>i know that array out of bound will be show up if the index doesn't exist in the arraylist, but i... | 3 | 1,637 |
How do I return columns from different table using SQLAlchemy, Flask? | <p>I am trying to use SQLAlchemy, Marshmallow and FLask to query the tables from my classes Submission_status, Policy. I am trying to create a route call summary.py to use GET request to fetch something like this for my frontend:</p>
<pre><code>"policy_id": "X0002",
"policy_holder": "... | 3 | 2,162 |
Returning many objects on html page - Django 2.0 | <p>I am returning the "comentarios" objects of the database through a for, but since the display of these objects takes up a lot of space in the html page, I would like to know how to divide the objects into more lists or into a hidden space, since when they pass from seven comments they exceed the size of the body.</p... | 3 | 2,224 |
Selenium grid launching browser on hub instead of node | <p>I have configured my hub and one of the node. Hub is setup on jenkins as a plugin which is running on ubundu machine and my node is running on windows machine.
Hub and node are correctly configure.
Now when I am running the test to launch the chrome browser on node it is behaving weird.
The one browser instances ... | 3 | 1,445 |
KendoUI - grid - template not getting data | <p>I have problem with KenfoUI grid. From server side I'm sending JSON data:</p>
<pre><code>{
"data": [{
"process": {
"id": "myProcess2:1:1206",
"description": null,
"name": "My process 2",
"version": 1
},
"id": 42066,
"description": "unisono-rest-eve... | 3 | 2,079 |
How to resize (reduce) image in carousel | <p>I need help to reduce a picture so it could be nicely placed into carousel.
I made 2 pages with a slightly different carousel.</p>
<p>In first page it is placed nicely: <a href="https://i.stack.imgur.com/1BMf5.jpg" rel="nofollow noreferrer">first carousel where picture if nicely placed</a></p>
<p>And on a second car... | 3 | 5,782 |
Performance Issues - Parallelism - SQL Server | <p>SQL agent job never finishes.</p>
<p>Server : 2.4hZ, 24 processor, 256GB RAM, Windows 2008 Server, SQL 2008</p>
<p>As per the activity monitor: %ProcessTime is 100%</p>
<p>With SP_Who found below:</p>
<pre><code>SPID Status DBName Command CPUTime ProgramName SPID
141 SUSPENDED STL UPD... | 3 | 1,423 |
Validating value of a Certain key before adding it to a c# dictionary | <p>I am trying to implement a dictionary in such a way that It will only add in a certain value to a key if that <strong>new value</strong> is greater than the <strong>currently existing value</strong></p>
<p>So the basic scenarios would be:</p>
<ol>
<li>If the key is not available, it will create a new key and a val... | 3 | 1,053 |
Image button in android pressed and get a random image in an array sequentially | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>public abstract class MainActivity extends Activity implements View.OnClickListener{
private ImageButton bt1;
public int i... | 3 | 1,094 |
getImageData returns white image | <p>I need to read the image data from an image object in javascript.
But my code returns always a blank array (set to 255) </p>
<pre><code><html>
<header>
</header>
<body>
<input type="file" id="imgfile" onchange="testImageData(event);" />
<canvas id="canvas1" width="640... | 3 | 1,039 |
newUser coming up undefined | <p>I am fairly new to Express and am trying to create a simple authentication login/register form. "newUser" is coming up undefined and I am not really sure why.... any suggestions are greatly appreciated. Thanks!</p>
<pre><code>bcrypt.hash(newUser.password, salt, function(err, hash) {
</code></pre>
<hr>
<pre><code>... | 3 | 1,577 |
Js/jQuery - How to hide/show an input created on the fly? | <p>This code creates a group of elements (four inputs) on the fly. Once you create an element (four inputs) you can select/deselect, when you select an element will bring up the editor for the corresponding element. I've made a function to hide only the first element. The problem is that I can not make it comeback with... | 3 | 2,800 |
How would my model be in MVC3 if I needed to reference a foreign key, for example CountryID? | <p>Here's what I have so far Model and View:</p>
<pre><code>public class RegisterModel
{
[Required]
[Display(Name = "Usuario")]
public string UserName { get; set; }
[Required]
[DataType(DataType.EmailAddress)]
[Display(Name = "Correo")]
public string Email { get; set; }
[Required]
... | 3 | 2,438 |
jQuery mobile getting wrong authentication | <p>I have the following situation:</p>
<p>index.html (which is my login page)</p>
<pre><code><div data-role="page" id="page_login">
<div id="wrapper_top_image">
<div id="top_image"></div>
</div>
<div data-role="content" data-theme="b">
<div id="landmark-1" data-landma... | 3 | 1,323 |
AngularJS: Setting up default input values when the page is initially loading | <p>I am developing an web app with AngularJS & Bootstrap. In my application there is a bootstrap modal on main dashboard. This modal is showing up on a toggle button. In the main dashboard there are some charts & grids. The input fields for drawing these charts and grids are coming from that modal.</p>
<p>Th... | 3 | 8,744 |
java.util.Scanner object throws NullPointerException while parsing text file | <p>I created this JAVA code for <a href="https://code.google.com/codejam/contest/544101/dashboard#s=p0" rel="nofollow">this Google Code Jam question</a>.
When i execute the code and select <a href="https://code.google.com/codejam/contest/544101/dashboard/do/A-large-practice.in?cmd=GetInputFile&problem=567116&i... | 3 | 8,652 |
Docker: Connected as id undefined. Error trying to establish connection between database container and backend container | <p>I'm trying to make a Docker project containing Backend (express.js), GUI (Angular), and Database (MySQL) containers. Each container runs correctly individually, but when I try to make the connection between database and backend I get the following error when I try to print the threadID. Also, if I try to query from ... | 3 | 1,179 |
Unable to start my react application and getting error in webpack server | <p>I don't know where am going wrong</p>
<p>Am not sharing all package.json but whatever required am sharing.</p>
<p>here is my package.json</p>
<pre><code> "scripts": {
"develop": "webpack serve --hot --port 8080 --disable-host-check --config webpack.develop.js",
},
... | 3 | 2,317 |
How to mock newly created objects inside Presenters method? | <p>I have PaymentPresenter with method payWorkOrder(). That method accepts some parameters and based on the logic created two new objects:</p>
<ol>
<li>WoPayment</li>
<li>PaymentRequest</li>
</ol>
<p>Here is the code for that:</p>
<pre><code>@RunWith(PowerMockRunner.class) @PrepareForTest({TextUtils.class, WoPayment... | 3 | 1,761 |
Unable to send Array to correct destination processor in MPI | <p>I am trying to send an array to the different processors in the hypercube architecture. The problem is that it either doesn't send to all the processors or it sends to wrong processor. When I try to send a single integer it works correctly.</p>
<p>Here is the code:</p>
<pre><code>void hypercube(int d,int my_id,int... | 3 | 1,037 |
Unable to Use String Result From AJAX Request | <p>The issue I am having is that I cannot seem to USE the result passed back to the original <code>JS</code> file from the <code>PHP</code> file called from the request. This is the result and handler:</p>
<pre><code>if(creds_verification() == true){
$.ajax({
url:"scripts/scripts.php", //the page conta... | 3 | 1,033 |
Commands to get offline logs from wp7 using WPConnect? | <p>I know that we can get offline logs from WP7 devices using WPConnect tool. But i have forgotten the commands and also forgotten the site address from where i had learnt it. Does anyone know what are those commands. I have the following code to log offline exceptions, but i don't know how to retrieve the log file.. P... | 3 | 1,394 |
Array size issue for converting String to Unicode | <p>I have a string "text" in one class which calls on a method in another class to convert text in various ways. In this method though I am left with an "ArrayIndexOutOfBoundsException" error.</p>
<pre><code>public String toUnicode() {
char unicodeTextArray[] = new char[text.length()];
if (text == null || tex... | 3 | 1,394 |
QML Progress Bar doesn't move | <p>I am using QT v5.12.6 and in my application i am planning to use Progress Bar during application bootup for around 15secs. In this 15secs operations like:</p>
<ol>
<li>QML components creation.</li>
<li>connection with the server.</li>
<li>Other bootup operations will be running in the background.</li>
</ol>
<p>Once,... | 3 | 1,168 |
Scroll background container in Flutter | <p>I am trying to build scrollable screen, where brown background Container must scroll with List of elements when black container near this container.
How can I do it?
I thought about Positioned, but I can't build items above SliverAppbar even if I build it in different Stack.</p>
<p>May I build body above SliverAppba... | 3 | 1,341 |
django with docker dosen't see pillow | <p>I'm trying to deploy my project on django. I almost did it but django can't see installed pillow in docker container. I'm sure that it's installed pip sends me this:</p>
<pre><code>sudo docker-compose -f docker-compose.prod.yml exec web pip install pillow
Defaulting to user installation because normal site-packages... | 3 | 1,422 |
What is the difference between "Persistent Class" and "Entity" in JPA or in Hibernate? | <p>First things first:</p>
<ol>
<li>I'm aware of <a href="https://stackoverflow.com/questions/28372601/what-is-the-difference-between-entity-and-persistent-class">this</a> question, which, at the high level of abstraction, asks same what I ask here; however, I find it (and its answer) lacking, therefore, I would like t... | 3 | 2,095 |
Angular 2 - http.get never being call | <p>Im learning Angular 4 and have run into a problem that I cannot seem to find a solution to. Here is the context:
I have a simple app that displays info about US Presidents.
The backend is a rest API provided by webapi...this works fine.
The front end is an Angular app.</p>
<p>Ive distilled the problem down to 3 co... | 3 | 1,732 |
JPQL (Hibernate implementation) select with join issues | <p>I'm having a bit of a rough time with JPQL (using Hibernate).</p>
<p>I have 2 Entities:</p>
<pre><code>package org.oscarehr.common.model;
import java.util.List;
import java.util.ArrayList;
import java.util.Iterator;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
im... | 3 | 3,417 |
Geolocation directs to building entrance and not defined LatLng | <p>I am currently adapting and cleaning up a very simple Google Maps application for users to get walking directions from their current location (determined by GeoLocation) to preset markers designating artworks that are defined with specific LatLng values to the sixth decimal.</p>
<p>There is still a lot of extraneou... | 3 | 1,183 |
JOGL Native Crash | <p>I am running a JOGL based application, and it has been crashing when I perform certain drawing operations. However, The line it crashes on is a call to <code>gl.glGenLists(1)</code>, so I'm not really sure how this could cause an error in the underlying application, since this line is a trivial line (unless the stac... | 3 | 1,032 |
discord.py bot hosted on heroku wont go online | <p>I decided to use heroku to run my bot 24/7. I deployed, saw my dyno running, no errors and it was even switched on. I expected the bot to come online because of the deploy but it just stayed offline.</p>
<p>Here is my bot code:</p>
<pre><code>import discord
import os
import asyncio
import random
from discord.ext i... | 3 | 1,596 |
Pytorch : Neural network is not learning at all | <p>I'm new to deep learning so I might just miss something stupid.</p>
<p>I'm training several neural networks on trees. I'm trying to generate trees with my neural networks, and I have a reward function to select the best trees after each generation. I try to learn on the 100 best trees, but when I try to learn, my lo... | 3 | 1,594 |
Pandas IndexingError - Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match) | <p><strong>Background:</strong> I have a function that calls a pandas dataframe called <code>df</code>. I do various manipulation and clean-up on the <code>df</code> before it becomes <code>exceptions_report</code> (still a pandas dataframe).</p>
<p><strong>Issue:</strong> In my code, I am trying to drop rows that don'... | 3 | 2,555 |
Providing access to EFS from ECS task | <p>I am struggling to get an ECS task to be able to see an EFS volume.
The terraform config is:</p>
<p><strong>EFS DEFINITION</strong></p>
<pre><code>resource "aws_efs_file_system" "persistent" {
encrypted = true
}
resource "aws_efs_access_point" "access" {
file_system_id = aw... | 3 | 2,518 |
error when trying to click on element that was hidden and then made visible again | <p>When I click a button I am using axios to send some data to my node.js backend and when the button is clicked I hide it and show a spinner. If something goes wrong, I hide the spinner and show the buttons again. That works fine. But if I click on the button after it is visible again I get an error that says :</p>
<... | 3 | 1,169 |
My GitHub Action's GitHub API calls start failing after a period of time | <p>Yesterday I successfully ran this GitHub action several times, but now it is failing with an HTTP Not Found error. If I make the same REST call to the URL in Postman <a href="https://api.github.com/repos/RobotOpsPlayground/scottTest5/issues/4" rel="nofollow noreferrer">https://api.github.com/repos/RobotOpsPlaygrou... | 3 | 1,216 |
Getting error message when run react-native application on Xcode 10.0 | <p>I am new for IOS application development I am trying to run react native application on MAC (Virtual box) but stuck after launch screen.</p>
<p>Getting error at this line of code.
<a href="https://i.stack.imgur.com/Mm8TW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mm8TW.jpg" alt="enter image ... | 3 | 2,865 |
Can't get property from object when redirecting with "Header" function | <p>I'm trying to display a inserted product after it is inserted. It looks like the object is empty.</p>
<p>This is what I use to redirect ('Inventario' controller)</p>
<pre><code>public function insertarAction(){
// insertarProducto returns true or false
if($this->producto->insertarProducto()) {
F... | 3 | 1,281 |
Jquery menu active select to Vue JS | <p>i want to stop using jquery and rely on Vue for front end for a menu where i need to add active class and menu-open to the right nested list items as you can see in the jQuery, which i have no idea how to achieve.</p>
<pre><code>$(document).ready(function () {
var url = window.location;
// Adds active on ... | 3 | 2,860 |
How to process a recursive GADT with kind :: '[SomeDataKind] | <p>I think this is the furthest into the Haskell type system extensions that I've even been and I've run into an error that I haven't been able to figure out. Apologies in advance for the length, it's the shortest example I could create that still illustrates the issue I'm having. I have a recursive GADT whose kind is ... | 3 | 2,218 |
Closing server using select function | <p>So, I am new to socket programming in C and am using the <code>select</code> function to communicate with multiple clients on a server. The server essentially just echos a buffer back to a client based on a requirest. I have used <a href="http://beej.us/guide/bgnet/html/multi/index.html" rel="nofollow noreferrer">... | 3 | 2,206 |
Python tkinter passing input value within the same class | <p>Most of the code below is just so the problem is accurately replicated, the issue most likely is in the hand-off of <code>filename</code> from<code>askopenfilenameI()</code> to <code>printing(stringToPrint)</code>or the <code>if</code> statement at the end.</p>
<h2>Goal</h2>
<p>The goal of this program is to simply ... | 3 | 1,152 |
Displaying Div's based on URL using Javascript | <p>I’m new to Javascript and I’m having trouble displaying and hiding some divs based on url’s.</p>
<p>I have 4 divs that need to be shown depending on the url.
The 4 divs are:</p>
<p><strong>Div 1</strong></p>
<pre><code><body onload="callOnPageLoad1()”>
<div id="homeName" style="display:block"><h5&g... | 3 | 1,520 |
WordPress custom post type link are changed but returns 404 | <p>WordPress custom post type link are changed but returns 404.</p>
<p>I have created a custom post type like this,</p>
<pre><code>function create_notes_custom() {
register_post_type( 'coaches_resources',
array(
'labels' => array(
'name' => __( 'Coaches Resources' ),
... | 3 | 1,440 |
How to add multiple dropdown with checkboxes in HTML? | <p>My HTML code is:</p>
<pre><code> <div id="list1" class="dropdown-check-list" tabindex="100">
<span class="anchor">Select Months</span>
<ul class="items">
<li><input type="checkbox" />Apr </li>
... | 3 | 2,123 |
Adding 'mousedown' event listener in a grid which will trigger all cells unless 'mouseup' event occurs | <p>I was still working on my Graph Visualizer project and I am unable to figure out how to add <code>mousedown</code> event listener to all the cells. I am trying to draw a wall-like structure. Let me explain when <code>mousedown</code> event occurs that cell will become a wall (I'll add some color) and unless the <cod... | 3 | 1,289 |
keep the new background color of current day in fullcalendar when click on next month or previous month | <p>I am working on a react project using npm fullcalendar. there is a requirement that I need to change the color of the current day. I managed to do that using the following : </p>
<pre><code>$('.fc-today').attr('style','background-color:#40cc25');
</code></pre>
<p>however, the problem is that when I click on next m... | 3 | 1,462 |
Passing a Java Script Millisecond Timer Value to PHP | <p>I have used a Java Scipt millisecond timer, I want to pass the timer value to php when user submits the window. Can anyone please help on how to send the JS timer value to PHP ?</p>
<p>My JS Timer Code is as follows :-</p>
<p>I need to pass Seconds.Millisecond value to PHP, when user submits a form.</p>
<pre><cod... | 3 | 2,321 |
Missing definitions MVC Views Visual Studio Intellisense | <p>I have a Github project which is an ASP.NET MVC website. There's no trouble in pulling and running the project now. However when coding I get all sorts of errors with e.g:</p>
<pre><code>@ViewBag
@Html.LabelFor
@Scripts
</code></pre>
<p>Errors:</p>
<blockquote>
<p>The name 'Scrips/ViewBag' does not exist in the... | 3 | 1,150 |
Regular Expression Javascript with XCode | <p>i am trying to sieve out the username and text fields of a HTML Form loading in a web view. Previously i tried this method to narrow down the corresponding text fields that i need but it was tedious and there is no end to the computation of variables. even though i thought i listed out a lot of variables, it was sti... | 3 | 1,165 |
JHipster Liquibase MigrationFailedException | <p>I have a simple test application in jhipster. Liquibase does not generate fake data correctly and does not generate foreign keys into the database of entity B. Is it a known bug or what am I doing wrong? I would like to continue using Liquibase, but it seems to be very error-prone.</p>
<pre><code>liquibase.exception... | 3 | 2,145 |
How to make the height of a TextField and a search button equal in Flutter? | <p>I'm creating a Flutter app. The app has a <code>TextField</code> and an <code>IconButton</code>, I want to make their height equal. Here is the current code:</p>
<pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
class MyHomePage extends StatefulWidget {
const MyHomePage({Ke... | 3 | 2,714 |
Microk8s ImagePullBackOff cannot be fixed by modifying the config | <p>I have installed a microk8s to ubuntu (arm64 bit version), I would like to access my local image registry provided by the <code>microk8s enable registry</code>. But I get a ImagePullBackOff error, I have tried to modify <code>/var/snap/microk8s/current/args/containerd.toml</code> config, but it not works:</p>
<pre><... | 3 | 2,079 |
Convert string to dict in python, but string dict has no quotes and = instead of : | <p>I have dictionaries as strings. In the string the keys and values have no quotes, and instead of having key-value pairs in the usual format (key:value), I have them like this key=value. An example of such string is here below</p>
<p><code>{created={type=FREEMIUM, title={value=Drool is love, drool is live..., _iscolu... | 3 | 1,071 |
Discord.js awaitmessage error, how to fix? | <p>I was making this new bot and used awaitmessage function.When a user use the cmd '!gangsug', the bot is supposed to ask a question like - "Please choose a option - RP or Fight" and when the user uses an option it is supposed to give a reply. (Which is a embed one). I have given two different replies for th... | 3 | 1,138 |
how to display id of input field with respective those value | <p>I have multiple forms like shown below:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>function chartsubmitbtn() {
var x = $('#x_axis_t1').val();
alert(x);
}</code></p... | 3 | 1,175 |
System.IO.FileNotFoundExecption, GUID are different for filename stored in database and file stored on server | <p>I am trying to use GUID to allow users to upload files with same names, but the GUIDs attach to filenames & filepaths stored in database are different from the GUIDs attached to the files stored on server. It means it is giving two different GUIDs to the same file. So when I am trying to download the file from s... | 3 | 1,197 |
Android : IndexOutOfBoundsException: Invalid index 8, size is 0 | <p>I have an error ,and i'm seeking it since yesterday .It seems to be a broblem of size in an array.
This is the function when the exception seems to happen :</p>
<pre><code> private XYMultipleSeriesDataset getTruitonBarDataset() {
XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
... | 3 | 5,056 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.