title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
unknown attribute 'type' for Model
<p>I'm running a background job in rails that creates images and adds them to a gallery. Later the image can be added to other galleries so it's natural to have a has_many_through relationship between those two.</p> <p>When the job reaches the lines below, I get the error:</p> <pre><code>unknown attribute 'type' for ...
3
6,458
Mongoid: relations between embedded documents
<p>I have two collections in my DB-</p> <pre><code>&gt; db.users.find().pretty() { "_id" : ObjectId("5281c15a617274166f150000"), "email" : "aerf@gmail.com", "nickname" : "Artem", "user_activities" : [ { "_id" : ObjectId("5281c1...
3
1,412
nginx and memcached, returns "download" as an attachment and not html content
<p>I've got nginx set up to serve html content straight from memcached but to fail over to PHP using our own backend (not a traditional set up hence the configuration) but whenever a page is set in PHP to be retrieved from memcached, nginx appears to find it but then just downloads a file called "download" with what lo...
3
1,271
ASP.NET using an Access database
<p>I am trying to create an Online CV and have stored all the info into an Access DB, I need help with this below error I get when I use an ASP button to create a label and then try to use the label to find the relevant info in te DB.</p> <p>Below is my error</p> <blockquote> <h2>Server Error in '/Interactive CV' A...
3
1,027
Make an AJAX call in the next page
<p>I have a scenario for which is as below:</p> <p>From the home page, I have a search box in which when the user enter the query and hits the search button, the form is submitted and the new page is opened with the search query as the parameter of that new page, the requirement is such that I have to make an AJAX cal...
3
1,487
Prevent Google place autocomplete from closing pick list (pac-container) when clicking outside pick list
<p>I want the Google place autocomplete pick list not to hide when I click outside the pick list so that the results remain visible.</p> <p><a href="https://i.stack.imgur.com/VjEF6.png" rel="nofollow noreferrer">Example image pick list</a></p> <p><strong>Example video</strong><br> Example video in which the pick list c...
3
1,112
Get, "cannot cast 'Field' to 'Field' type (same class)" when trying to Append an object in vb6 from C# library using COM-interop
<p>I have a C# library that is used by legacy vb6 code. This works really well for most everything except I'm running into an issue appending an object.</p> <p>In part I'm attempting to emulate some of the access db function calls and redirect them to a different db solution. But that isn't very relevant to the issue...
3
1,348
I'm trying to figure out why my app isn't working
<p>Cannot for the life of me figure out what I am doing wrong. When I press my button the app crashes. If someone could help with that problem you'd be amazing. I need to get that to cease so I can test for the functionalities. My if you see anything else wrong with my code or see a better way of doing please don't he...
3
5,384
How can I update a file using SAXParser in Java
<p>I am using SAX parser to read data from the xml. Now I want to modify the data using SAX parser. how can I do that?</p> <p>My XML file is,</p> <pre><code>&lt;ProductCatalog&gt; &lt;item id="w1" type="SmartWatches"&gt; &lt;name&gt;Apple Watch&lt;/name&gt; &lt;price&gt;400&lt;/price&gt; &...
3
2,135
Azure cloud service publishing wizard failing
<p>For some unknown reason, I now get this error when I try to publish my cloud service. (I'm shown as logged into visual studio, but the wizard seems to not recognise this - and step 1 of the wizard has a link to "re-enter credentials" - which gives this error too)</p> <p><img src="https://i.stack.imgur.com/TIxCd.gi...
3
1,169
Problem creating regional TCP load balancer
<p>I'm trying to create a load-balancer that balances traffic between 3 different AZ's in a given region. If I create a "global" load-balancer with an external IP, everything works fine, but if I am only trying to create a load-balancer that works with a particular subnet -- the health checks consistently fail because...
3
1,282
Read a specific file type with a single thread
<p>I have a folder which has multiple files, I intend to read those files and insert into their type speificed tables.</p> <p>Problem:</p> <p>I am reading the files with mutliple threads, but everytime a thread tries to read a type (string) of a file that is being read by another thread, it crashes with the error:</p...
3
3,440
how to reference to an image in seeds.rb
<p>I use Carrierwave to upload images associated to my User model, which has a corresponding <code>picture</code> attribute that contains the name of the image file in a string field. Usually the name of the uploaded picture is stored in <code>public/uploads</code>. <br>Now I would like to seed my development database ...
3
1,248
Socket Client stuck on 'waiting for message from server.'
<p>Backstory: I created a Barcode Scanning app that can connect with my works server. The Barcode app functions perfectly, however, I have no experience with socket connections to servers. So in order to not mess up any code in the Barcode app I copied a tutorial for a socket connection and edited it. Once I can get t...
3
1,768
How to avoid overlapping of text labels in ggrepel
<p>I tried every single thing in this tutorial: <a href="https://ggrepel.slowkow.com/articles/examples.html" rel="nofollow noreferrer">https://ggrepel.slowkow.com/articles/examples.html</a> but I wasn't successful repelling the text from each other and keep them aligned without overlapping, I want something like this: ...
3
4,103
SwiftUI Widget with image reload per second causes memory to fill up
<p>I am learning how to create a widget for the first time. I have finished the design and everything is good to go and I am ready to put it on my app. However, I found a problem that still needs to be addressed. I am making a countdown that updates every second. While updating, it writes brand new images every second ...
3
4,255
Rails serving pages twice
<p>Running into a wierd error where rails 4 is serving pages twice. </p> <p>Tried the solutions </p> <ul> <li><a href="https://stackoverflow.com/questions/5786283/rails-seems-to-be-serving-the-page-twice">here</a> but no dice</li> <li>The assets are not precompiled so no conflict there.</li> </ul> <p>I'm stumped. An...
3
3,584
Angular 8 Multiple layout use different css and js for each layout
<p>I am working on an application which include frontend site layout and backend admin layout. These both layouts have different CSS and JS. How can use different CSS and Js according to each layout template. Here is my structure.</p> <pre><code>&lt;!doctype html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta char...
3
1,966
Jquery Form Plugin: how to show progress bar only when form has enctype tag
<p>I'm using Jquery Form Plugin to submit data via Ajax and I've no problem. I also implemented the progress bar successfully.</p> <p>I wish to show progress bar only when the form has the tag enctype="multipart/form-data", but I've problem to read form attributes inside AjaxForm object:</p> <pre><code>$('.form_to_ma...
3
1,123
TextView doesn't change with OnItemSelectedListener
<p>Simply, I have created a spinner. There is spinner entries and value of entries in my <code>array.xml</code>.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;resources&gt; &lt;string-array name="select"&gt; &lt;item&gt;a&lt;/item&gt; &lt;item&gt;b&lt;/item&gt; &lt;item&g...
3
1,326
Same Association Twice, Different Names, Second Uses Wrong Column
<p>I'm trying to create two associations that are identical in nature but have two different names because they mean different things. I have a feeling that this is a syntax issue I can't quite get right. I'd rather not rewrite the base level models, but I'm open to suggestions. As far as the modeling goes: Raids have ...
3
1,719
Segmentation fault error while attempting to create a particle system with OpenGL
<p>I'm trying to create a simple particle system but I'm facing the segmentation fault error. My problem seems to be related to the number of vertex attributes I'm passing. One vertex has 3 floats, corresponding to x, y and z coordinates, so if I want to create 1 million particles, I'll have an array of 3 million float...
3
1,112
select id from post table where title=$title
<p>i have post table and i have comment table i have made them with laravel i made a IndexController and it has a method that returns all of my posts by their title; i also return and compact comment of each post and show them under each post content but i have to pass the post id to comment table by myself for example...
3
1,045
Already value [org.springframework.orm.jpa.EntityManagerHolder@64fcf46a] for key bound to thread when making a request using webflux but not using JPA
<p>I am new to webflux and I am trying to create a controller using Mono. Problem is, when I try to return a Mono, I get the exception below.</p> <blockquote> <p>Already value [org.springframework.orm.jpa.EntityManagerHolder@64fcf46a] for key [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean@21708736]...
3
1,279
Android supporting different screen sizes error
<p>I am having an issue when it comes to supporting different screen sizes. Whatever I do the app always picks an xhdpi layout. I have tested on two smartphones. Samsung Core II and Huawei Y6. This is the dimension of both smartphones. </p> <pre><code>Samsung Core II Android 4.4 480x800 Screen density 1.5 which is hdp...
3
5,777
Access-Control-Allow-Origin error when using Owin
<p>I'm have a aurelia client and a webserver. When i use localhost and i'm running on the same machine it works fine.</p> <p>But when i want to access the server from another machine the page loads but the api calls give the following error: No <code>Access-Control-Allow-Origin</code> header is present on the requeste...
3
1,465
JavaFX tableview not working, what am I doing wrong?
<p>I'm currently trying to make a JavaFX tableview with database. I just a started so mind me doing some things wrong. Anyhow, me and my friend are trying to learn java and we are both stuck at this. I was wondering anyone here could help me. First of all we have the initialize:</p> <p>I get this error : <code>Caused ...
3
2,423
Files dissapearing with ffmpeg recursive conversion
<p>I started in askubuntu, asking for a way to convert recursively more than 14K of wma to mp3 extracting the wma files path from a txt file. There was an answer that could cover my needs, but a bug appears. The first run with some hundreds worked ok. The second, some wma albums got converted, others entirely deleted. ...
3
2,590
HTML Form not sending one parameter in POST request
<p>I have a form in my page, with 4 fields: name, email, purpose and comments. However, when I submit, the POST encoded request contains only three - name, email and comments.</p> <p>The purpose field is EXACTLY the same as Name, with the same attributes. This is really baffling. Anything I am doing wrong?</p> <pre><...
3
1,421
Area stacking order and tooltip
<p>I am making a stacked area graph. series A should be under series B </p> <p>Since it's not possible to invert the stacking order I had to reverse the series order so that chart.series[0] is the series B and chart.series<a href="http://jsfiddle.net/3fd6L/" rel="nofollow">1</a> series A.</p> <p>I can reverse the o...
3
10,129
pycharm error happening at random time: Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
<p>I am working with pycharm community on a tensorflow model with keras backend, sometimes this error appears in a random time, specially after I call pyplot and close the window:</p> <pre><code>Exception ignored in: &lt;bound method Image.__del__ of &lt;tkinter.PhotoImage object at 0x7ff6406fad30&gt;&gt; Traceback (mo...
3
5,737
Understand which viewport is returned from document.documentElement.clientWidth/Height, and difference with window.innerHeight/innerWidth
<p>I am a bit confused about the concept of <em>viewport</em> in JavaScript and in the DOM, especially <code>document.documentElement.clientWidth</code> that should return the width of the viewport.</p> <p>In fact, <code>document.documentElement</code> is the <code>html</code> element, and regardless if I already set...
3
1,239
Spinner in RecyclerView to update item values
<p>How can I update the values in my Dataset from a <code>Spinner</code> selection in a <code>RecyclerView</code>? Should I be using <code>LiveData</code> and Room with <code>notifyItemChange()</code>, data binding, or something simpler? I have a <code>Horse</code>class and a <code>HorseData</code> class. The number of...
3
1,286
Serialize method of ajax not returning required values
<p>I am trying to get form inputs through ajax j query bootstrap modal and store it into the database but serialize method is not returning all the values required.</p> <p>It should have returned the values of user_id and btn_action... where did I go wrong..??</p> <p>I have tried many solutions but could not get any...
3
1,957
How to fix "free variable 'db_username' referenced before assignment in enclosing scope"
<p>ive just started learning python and im great at making programs without GUI's but ive been working with them and without tkinter my pymysql code works just fine but when i started playing with tkinter it wasnt working like it did without it i keep getting referenced before assignment no matter how many different fo...
3
1,064
Richfaces and JSF/AJAX Lifecycles
<p>I´ve managed to get the code to do what I intended, but I do not understand a particular aspect of why this works. I´m running Seam 2.2.2 with Richfaces 3.3.3.</p> <p>Here is the code from the xhtml page:</p> <pre><code>... &lt;h:form id="radiobuttontestform"&gt; &lt;fieldset&gt; &lt;h:pan...
3
1,552
Error- Ehcache key 1 recovered fromorg.ehcache.spi.resilience.StoreAccessException
<p>I am trying to use EHCache3 with Spring Boot Application. So i have done below configurations for same.</p> <p><strong>EhcacheConfig--&gt;</strong></p> <pre><code> @Configuration @EnableCaching @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class}) public class EhcacheConfig { @Bean CacheMa...
3
1,248
After running a model how do I save an Isolation Forest and a Local Outlier Factor as two different models?
<p>I have been trying to write a machine learning program to detect credit card fraud using Isolation Forest and Local Outlier Factor methods from <code>sklearn</code> and <code>pandas</code>. </p> <p>I have the code running and making predictions but I can't figure out how to save each of them as different models. I ...
3
1,275
Fetching the particular values from a table onclick of checkbox in php
<p>My table has the following structure <img src="https://i.stack.imgur.com/xe9vw.png" alt="enter image description here"></p> <p>When i click the particular checkbox.Its should be able to fetch the value of all the contents in the selected checkbox ..It can be n number of products the user selects.How to achieve this...
3
1,843
Using IF statements in MySQL
<p>So i have 2 tables of this format,</p> <p><strong>actual_data:</strong></p> <pre><code>ID,ROLL_NO,ADM_DT,FEES 1,9895987650,2017-11-14,10000 2,78578686,2017-11-10,130 3,434343,2017-11-15,20 </code></pre> <p><strong>temp_data:</strong></p> <pre><code>ID,R_NO,FS,FT 1,9895987650,9000,F1 5,9895987650,5000,F2 3,785786...
3
1,450
Start MapReduce job failed in cluster with exit code: -1000 and job.jar does not exist
<p>i'm trying to start mapreduce job in java code and submit the job to yarn. but got the following error:</p> <pre><code>2018-08-26 00:46:26,075 WARN [main] util.NativeCodeLoader (NativeCodeLoader.java:&lt;clinit&gt;(62)) - Unable to load native-hadoop library for your platform... using builtin-java classes where ap...
3
1,953
Scrollbar create margin in internet explorer
<p>So I've been working on a simple scroll in div with a code</p> <pre><code>overflow: auto; </code></pre> <p>However, I don't know why, but the scroll creates a margin on the right side when opened in internet explorer. It works fine on both chrome and safari.</p> <p>This is the code I worked on: HTML</p> <pre><co...
3
1,535
How to get data-value, which class="rb-tab-active"
<p>I have some question about how to get <code>data-value</code> from <code>&lt;div&gt;</code> if the "class" is "rb-tab-active". </p> <pre><code> &lt;p&gt;B. Demonstrasi&lt;/p&gt; &lt;div class="rb" id="rb-2"&gt; &lt;div class="rb-tab" data-value="1"&gt; ...
3
1,167
'accelerometer' and 'lcd' not declared in this scope
<p>It's telling me that "accelerometer" and "lcd" were not declared in this scope when they're used in PIT0_IRQHandler. None of the solutions I've found online have worked as of yet so I figured I'd just post it up. I'm pretty new to this as well so feel free to point out any and every error included</p> <pre><code> ...
3
1,283
Add pause to Alexa without using SSML
<p>Is there a way to add a pause (preferably 1 second) in Amazon Alexa <strong>without using SSML?</strong> Perhaps there is a trick I can do with the Outputspeech.Text and I just don't know it. </p> <p>Below, I am saying "Here are works of art by {artist name}" but the name and the start of the works of art become m...
3
1,768
Gitlab project - failed to run "rails generate"
<p>Introduction:</p> <ul> <li>I have an installation of gitlab on a local lxc container running ubuntu 13.10 - saucy.</li> <li>I have installed RVM as a as a multi-user installation - in <code>/usr/local/rvm</code></li> <li><p>In order to run gitlab with RVM I have created a wrapper for the bundle command as specified...
3
1,511
using entityFrameWork in windows service application gives the underlying providor failed to open error
<p>This is my service start code and my class. it is long but problem is just with database and entityFrameWork section please omit other lines. consider I just want to read a data from database:</p> <p>my service start code:</p> <pre><code>protected override void OnStart(string[] args) { System.Threading...
3
1,491
Azure Pipeline [Azure Functions for container] task appSettings multi parameter
<p>I have been developing and deploying .NET 5 Isolated-Process Azure Functions through visual studio 2019. Copied the value of the Application configuration setting in local.settings.json from the Publish feature in Visual Studio 2019.</p> <p>Now I want to deploy .NET 5 Isolated-Process Azure Functions via Azure Pipel...
3
3,245
Convert json to include name and children values to feed D3
<p>I am trying to get json converted from:</p> <pre><code>{ "Devices": [ { "Udid": "7a2b0e6c928f2321a75e423ba23ae93d", "SerialNumber": "RF1D232ZLEE", "MacAddress": "40F232726FC8", "Imei": "3576342323280150", "EasId": "SEC1BC252327E92B", "AssetNumber": "7a2b0e23223928...
3
2,474
If is domain, display this array
<p>Have two arrays. One shuffles images, other one has no shuffle. When you go to the website, it's supposed to display images in a random order. That works. Now, I'd like it if you're being forwarded from this other domain that it displays the other array with no shuffle.</p> <p>Here's my array with no shuffle:</p> ...
3
1,116
How to not crop ImageView inside a LinearLayout?
<h1>Hi, I'm trying to make something like this</h1> <p><a href="https://i.stack.imgur.com/cEhVK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cEhVK.png" alt="what i want" /></a></p> <h1>And this is what I get</h1> <p><a href="https://i.stack.imgur.com/KUedw.png" rel="nofollow noreferrer"><img src="...
3
1,462
Flutter Websocket Secure error: CERTIFICATE_VERIFY_FAILED: Hostname mismatch
<p>I am using secure websocket in Flutter connect to server, my server side is using self-signed certificate. in flutter clent, I store the trusted <code>CA.pem </code> in local assets. and load it to verify server certificate. my code is like this:</p> <pre class="lang-dart prettyprint-override"><code>void main() as...
3
1,090
Error when using Binding in a Toggle Button: "Could not cast value of type 'CALayer' to 'SwiftUI.MaskLayer"
<p>I have a FeedbackView in SwiftUI that contains a couple of custom ToggleButtons. I have used these toggle buttons all throughout my App for a few months. The FeedbackView is new and is used in a couple of places in my App. When using the FeedbackView in one place in my App, complicated View with many components, the...
3
1,222
Resolving 2 symbols and adding elements in RecyclerView/CardView
<p>Im following <a href="https://knowledgecollisions.wordpress.com/2016/03/29/using-recyclerview-and-cardview-in-your-android-app/" rel="nofollow noreferrer">this tutorial</a>, and I followed the directions carefully, but I ran into a few problems. In my ItemView constructor, cardview and photo are "symbols that cannot...
3
2,563
Make images Ease out on hover out without bugs
<p>I made a small image gallery, when hovering on an image it enlarges, when hovering out an image it goes back to normal size,unfortunately my hovering out function doesn't work well and I don't have an idea how to work it around, below is the code and <a href="http://jsfiddle.net/jpreynat/4e6po8z3/" rel="nofollow">he...
3
2,368
Trying to keep div from changing height position on resize
<p>I am experimenting with zurb foundations responsive design framework with my own custom media queries. My site exists <a href="http://www.austin.kitson.org/update/wordpress-1/" rel="nofollow">here</a> with username:anders password:reading61 Now my issue here is when I resize the site between 1200px and 768px the di...
3
2,398
work of link is not proper
<p>I am adding multiple rows in datatable with edit and delete link.Suppose I delete 3rd row and after that I edit the 5th row at that time edit link called function which is written on onclick event of delete link. Here I am adding add,edit and delete functions of my code.</p> <pre><code>function addproduct() { ...
3
1,409
Reminder Service in C#.Net 4.0 using UTC Time
<p>I have a Windows Service that runs on my</p> <blockquote> <p><strong>Texas origin Server Central Time.</strong></p> </blockquote> <p>This will check for all active reminders and compares the reminder time that user wants and send out reminder if it matches with user required time.</p> <p><strong>Scenarios</stro...
3
1,044
Error when Launching App with Frameworks - Xcode
<p>When compiling and installing my app on a simulator/my device using the latest version of Google Ad Mobile SDK (7.68.0) I receive this error...</p> <pre><code>Domain: IXUserPresentableErrorDomain Code: 1 Failure Reason: Please try again later. Recovery Suggestion: Failed to load Info.plist from bundle at path /Users...
3
1,624
copy and paste data with conditions based on sorted column in vba
<p>so the code that one user gave me works to perfection. I now have a new problem. Brief run down: In Sheet1, ColumnA, Row 2 - the values are copied and pasted, then sorted alphabetically into Sheet2, ColumnB, Row 3. The code below reflects this. My next problem is that I want Sheet 1, ColumnB, Row2 to paste into Shee...
3
2,109
Got "Dynamic metaobject is not assigned" while run QtRemoteObjects
<p>I try to use <code>QRemoteObjects</code> to share more than two objects but i got "Dynamic metaobject is not assigned" warning while run <strong>client.py</strong> example, and i can't find out what happened, my example work fine, can anyone give me some advices?</p> <p><strong>server.py</strong></p> <pre class="l...
3
1,037
Android : How can I retrieve my desire data in my Database
<p>First of all I don't know if my database is working since I ended up changing my previous code in <a href="https://stackoverflow.com/questions/15049544/android-how-can-i-fetch-my-selected-id-in-my-sqlite">here (it doesn't work also)</a> now I use the tutorials in newboston for sqlite, but I m still having some error...
3
2,452
is there a method to detect common form in html code?
<p>I have a lot of html pages that are formatted differently but the content that interests me is the same , for example :</p> <p>Page_1.html :</p> <pre><code>&lt;div class = &quot;block_person&quot;&gt; &lt;div class=&quot;persons&quot;&gt;&lt;span&gt;Jules Rodrigez&lt;/span&gt;&lt;/div&gt; &lt;div class=&qu...
3
1,135
Datagrid Checkbox in UWP
<p>I am struggling to find a working example of a utilised checkbox for my datagrid in UWP. I would like to use my check box -&gt; press a button -&gt; do X.</p> <p>I dont suppose any of you could either give me an example of the process or point me to a documented example? Thanks</p> <p>This is what I have:</p> <pre><...
3
1,599
Angular - Data not refreshing after click
<p>After De-Activating row from my data table, I am refreshing my table.I pass the load function after deactivate function but problem is that i have to click twice and sometimes it goes with one click. </p> <p>I am using MVC5. I put the debug on my C# file and everytime i click Deactivate debugger going to load funct...
3
3,121
Result of ExchangeServices.GetDelegates not reflecting change when adding delegate to mailbox via ECP
<p><strong>Note:</strong> This behavior has been observed with both Exchange 2013 On-Premise as well as Exchange Online (Office 365).</p> <p>I'm trying to get a list of delegates for a particular mailbox. This works perfectly fine if these delegates have been added or removed using <a href="https://docs.microsoft.com/...
3
1,590
Passing HTML variables to Angular Component
<p>I am trying to pass the items written in a text-box field on my webpage to variables in the component file. These variables will then be used in the service file that has a function link to the POST request I made on the python/SQLAlchemy side. I am using Flask with python/SQLAlchemy on the backend, and Angular CLI ...
3
1,291
I can't scroll far enough down the screen in android application
<p>I'm making my own android application, working in Eclipse using Java, and I got 1 buttons inside. Every button has is own information inside. Some of those buttons involve so much text, that a scrollview is added. However, in this particular button, I can't scroll down to the bottom completely. It scrolls down to a ...
3
7,617
How can I increment my <p> tag when I clicked add in my HTML table?
<p>This is my whole code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;Pre-Enrollment&lt;/title&gt; &lt;meta charset="utf-8"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt; &lt;link rel="stylesheet" href="css/bootstrap....
3
9,593
Java arrays with different length multiplication
<p>Hello I am working on a project and have come up against an issue I just can't figure out.</p> <p>I have 3 arrays all double... hours[], rate[], prevHrs[]. i copied the hours and prevhrs to a new array called monthhours[], now I need to rearrange it so that the elements in the hours array are each separately put in...
3
1,113
Adding Devise to Rails app NoMethodError: undefined method `devise' for User (call 'User.connection' to establish a connection
<p><strong>When adding Devise to an application with an existing User making the mistake of forgetting to run the installer, it seems to bork the application, database can't migrate and devise routes aren't available when running <code>rails routes</code>; NoMethodError: undefined method `devise' for User (call 'User.c...
3
1,042
Program crashes with no error messages, need some code reviewed
<p>I really need some help with a chunk of code for a simple car game I'm making. I'm quite new to coding so this might be really easy for people more advanced. Whenever you hit something in the game a crash() function is called, this causes it to run the crash loop, then freeze for no apparent reason (this is the prob...
3
13,358
how to make sidebar to fixed navbar when scrolling
<p>I am new to CSS and I have found this Code-Snippet. </p> <p>I want that, if I scroll down the page, the sidebar turns into a navbar with a fixed position. I tried to set the sidebar into a fixed position, but it wasn't responsive and the content in my main class overlapped the sidebar. </p> <p>When I try to chang...
3
11,319
Why is my post not give data to my controller from my form?
<p>I am developing a Sprin MVC application and I have a form containing a table in one of the UI jsp's, (welcome.jsp) and when the submit button is clicked, I am trying to print out the data in the form to the web applications console.From there i intend to parse the checkboxes that are selected and then have the contr...
3
1,257
Read JSON file and Convert to Panda DataFrame
<p>I have a text file that contains JSON format data like this.</p> <pre><code>{&quot;accountNumber&quot;: &quot;737265056&quot;, &quot;customerId&quot;: &quot;737265056&quot;, &quot;creditLimit&quot;: 5000.0, &quot;availableMoney&quot;: 5000.0, &quot;transactionDateTime&quot;: &quot;2016-08-13T14:27:32&quot;, &quot;tr...
3
3,149
GET http://localhost:3000/product/uploads/Screenshot%20(11).png-1657912296432.jpg 404 (Not Found)
<p>i am working on a e-commerce mern stack project. The images on the home page are showing but after clicking on any product or category it goes to the product details page where product Quantity, Instock, buy now, or addtoCart details are displayed. but the images related to same product are not showing in big image ...
3
3,994
Produce HTML code for tab-delimited text file
<p>I have to perform a task, where I'll be given a tab-delimited text file that will contain some sizechart values and I'll need to produce the HTML table markup for that table.</p> <p>The text file will have the following format:</p> <pre><code>Adidas men basketball shoes EU UK US Foot length (1) 18 2 6 22,3 c...
3
1,113
VBA is sometimes not recognizing Excel file that has been opened through SAP GUI script
<p>I have a SAP GUI script running every day in VBA. In the script I am exporting some data from SAP to several different Excel files, and these are saved to a network drive. In the first macro, I export data. In the second I copy the data to the same workbook as the script is in.</p> <p>Some days I get a runtime error...
3
1,526
Declaring an instance variable for an OxyPlot graphing object
<p>I am using OxyPlot, a graphing library for C#. What confuses me so far is the <code>type</code> for some of the constructors. A code snippet is below:</p> <pre><code>public static PlotModel Notinterpolatedvalues() { var plotModel1 = new PlotModel(); plotModel1.Subtitle = "Input text here"; ...
3
1,058
Extracting values from a JArray within JSON text
<p>Disclaimer: I'm fairly new to C#</p> <p>I know questions on JSON have been asked to death on here but I can't find a response to my particular scenario and can't manage to apply other solutions to it.</p> <p>I have a var storing a json string from a httpresponse as shown</p> <pre><code>{ &quot;id&quot;: &quot;1c...
3
1,153
Error when working with NSManagedObjectContext in background thread
<p>So I keep getting this error when I save to core data.</p> <p><strong>Coredata[21468:13173906] [error] error: SQLCore dispatchRequest: exception handling request: , ** -_referenceData64 only defined for abstract class. Define -[NSTemporaryObjectID_default _referenceData64]! with userInfo of (null)</strong></p> <...
3
1,763
How to print the contents of stringbuilder in each line in a output text file in java
<p>I am working with an excel file which is a large one and i have to parse it using apache event library.So now i am somehow able to get the each cell value and contents of each cell and i am storing them in a <code>Struingbuilder</code>.So now my aim is to generate the text file in such a way so that each row and col...
3
1,383
Google App Script doesn't set Bcc adress
<p>I have develop a simple google app script to send an email with bcc I just trying to URL param To, From and subject is set is correctly but, the cc and bcc address are not set properly</p> <p><a href="https://i.stack.imgur.com/y7VQO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y7VQO.png" alt="...
3
1,117
NodeJS command "npm install -g" is not working?
<p>I am trying to run simple express server in node. But when I install the dependencies it's giving me error that node "Cannot find express". </p> <p>here is console logs </p> <pre><code>asus@DESKTOP-PL2TIDL MINGW64 /f/nitishWorkspace/nitishGitRepo/chatApp (master) $ npm install -g express express@4.14.0 C:\Users\as...
3
1,061
SQL Server Agent Job Fails Due to MS DTC
<p>In SQL Server 2008R2 I have an Agent Job that runs very frequently. The job has a single step which calls a stored procedure. The stored procedure is very long and calls other stored procedures, some of which are long as well.</p> <p>The stored procedures need to work with multiple databases on different servers.</...
3
2,558
Inserting to a table without refreshing page
<p>I'm trying to inserting data into a table display the results into a different div without refreshing but can't seem to make it work. When i click on the submit button nothing happens, the page just reloads and that its not being sent</p> <p>HTML AND ASP</p> <pre><code>&lt;form id="form1" name="form1" method="post...
3
2,223
postgres recursive view returning multple rows per input row
<p><strong>I want a recursive view which reports all children of a given group, one per row.</strong> </p> <p>I've tried the basic examples from postgres documentation, and modified to try and return multiple rows per recursive step, but I keep ending up with infinite loops.</p> <p><strong>Sample Data</strong></p> <...
3
1,060
JavaFX cannot load my FXML, returning null pointer exception
<p>I am not sure what the error is I am converting a home project from Swing GUI to JavaFX, using scenebuilder and having a hard time. Please help? Details on my error and project structure below:</p> <pre><code>Exception in Application start method java.lang.reflect.InvocationTargetException at java.base/jdk.inter...
3
1,503
How do I allow a function to be called when two spinners equal specific strings?
<p>I have made 2 spinners, which both consist of an array of different types of weight. These are "lbs" "Stone" "Grams" "Kilograms". I need to be able to check the options the user has picked from these 2 spinners and then call a function depending on what they chose. So for example if the first spinner equals "Lbs" an...
3
1,528
Integrating mouseListener, JRadioButton, and paintComponent into selecting then creating shapes in JPanel
<p>Not familiar with the MouseListener and paintComponent tools but i have to use them in creating a GUI which is able to create shapes (by selecting one first) at every mouse click location without using applets. First time here, dont know how to properly post the syntax as well.sorry.</p> <ol> <li><p>Create.java</p>...
3
1,977
Do I need to create these many classes for this android app?
<p>I am an absolute beginner at programming so I just want to make sure I am doing this right or if there is an easier way. basically the app I am creating is a school app that will list all courses needed for different majors.</p> <p>So opening screen has two buttons undergrad and grad. The next screen would list all...
3
1,345
UISearchBartextfield -webview called.this method is no longer supported with the new text architecture
<p>I am getting this error and my search function does nothing when the user starts typing a query( XCODE 5.1).</p> <p>I dont know how the -webView is related to this error as I have not used webView in these files. Any advice would be appreciated. Thank you.</p> <p>OrdersViewController.h</p> <pre><code>#import &lt;...
3
2,563
Using ScrollViewer inside another ScrollViewer control template - why are they synchronized
<p>If I replace a <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.scrollviewer.aspx" rel="nofollow noreferrer">ScrollViewer</a> control template so that it contains another scroll viewer then some of the time they scroll together.</p> <p>For example the <a href="http://msdn.microsoft.com/en-us...
3
1,077
AspNet Core - Could not load the image from FileStreamResult
<p>Please help.</p> <p>I've been searching for hours now as I cannot display the image on the website. I'm using byte[] from database then return FileStreamResult in controller.</p> <p>Below is my code</p> <p><strong>.cshtml</strong></p> <pre><code> &lt;img src=&quot;@Url.Action(&quot;GetImage&quot;, &quot;User&quot;)&...
3
1,165
How to load page without refresh using tabs?
<p>i was trying hard to find solution to this problem but im really lost . the problem is im trying to play video on 1 tab when i move to tab 2 i can still hear the video playing in tab 1 .and if i do click the same tab it doesn't load again . is there solution to this ? </p> <p><div class="snippet" data-lang="js" dat...
3
1,303
java.io.IOException: Failed to open thrift connection to Cassandra at 127.0.0.1:9160
<p>I am facing the below error while calling any method on the Dataframe like Datafrataframe.show() ..It's happening when I am calling this prom tomcat 7.From test cases it works fime.</p> <p>Exception Trace: attributes : keyspace_name,durable_writes,strategy_class,strategy_options 2015-09-27 17:21:52 [http-apr-8080...
3
1,351
How to change my object from being only one object with arrays inside, to an array of objects?
<p>So I've got this part of a code where I'm creating response for my project. Now I've managed to create data, but I've got response that I need to changes.</p> <p>First here is my code:</p> <pre><code>exports.getById = (req, res) =&gt; { const id = req.params.a_id; articleService .getById(id) .then((arti...
3
2,604
Not able to fetch LedgerList data in xml request from tally
<p>while exporting data from tally, I'm not able to fetch ledger details of the invoice.</p> <p>Only able to fetch the outer level details.</p> <p>I tried with Walk by: Ledger Entries but it not comes under Voucher tag.. how to made it possible.</p> <p>Also having big doubt in Form, Part, Line work flow.</p> <pre><code...
3
4,749
Can't get image_id from Cloudinary in NodeJS
<p>I'm using Node.js and Express. I just implement Cloudinary to upload image from user, and store the image id to my MySQL database.</p> <p>I tried this tutorial from Cloudinary's documentation: <a href="http://cloudinary.com/documentation/node_image_upload" rel="nofollow">http://cloudinary.com/documentation/node_ima...
3
1,131
flutter state widget dynamically change variable
<p>I am building a chatbot with message and button responses. How to change a variable that is defined in the widget build in-state widget? I want to show the buttons when its added dynamically and when the user clicks the button, the button container has to disappear. now, it is disappearing but the buttons for the ne...
3
2,335