title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Update MySQL with jQuery pulldown in foreach loop
<p>I have been having as issue for a while, and can not seem to wrap my head around it. I have a dropdown menu that is pulled from a database for the status of an item. </p> <pre><code>$myQuery2 = "SELECT InventoryItemStatus.InventoryItemStatusID, InventoryItemStatus.InventoryItemStatusDescription FROM InventoryItemSt...
3
1,360
Multiple JComboBoxes with ActionListener
<p><strong>This code was taken from my original code and modified for testing purposes.</strong></p> <p><em>Question: Why is it that after clicking on a JComboBox, I cannot click on any other JComboBoxes?</em></p> <p><em>Purpose: After clicking on the JComboBox, the selection gets copied down to the JTextField.</em><...
3
1,218
Erlang HTTP problems
<p>Can't make a request with Erlang/Cowboy at all. I can make one from the erlang shell but not when running a cowboy release. Tried using the 'hackney' library as well:</p> <pre><code>hackney:start(), {ok, _, _, Ref} = hackney:request( get, &lt;&lt;"http://www.youtube.com"&gt;&gt;, [], &lt;&lt;&gt;&gt;, [{pool, de...
3
3,212
MergeSort Using a Non-Recursive Sort Threshold
<p>Problem</p> <p>Create a program to perform a merge sort on a linked list.</p> <p>Specification</p> <ul> <li>Create a linked list of 100 random integers in the range 1-1000.</li> <li>Display the unsorted linked list in a 10 x 10 table.</li></ul> <p>To sort the linked list using a merge sort routine:</p> <ul> <li...
3
4,157
Type-casting using function call T(0) and templates
<p>I have a function converting a "simulation domain" into an array of voxels (3D pixels). Each voxel can be 0 or 1, or at least <code>false</code> or <code>true</code>. As the domain can be really big, as the discretisation step can be very small, it requires a very big amount of memory.</p> <p>I use my array of vox...
3
1,303
GTK4 Problem setting image from pixbuf with a GtkDropTarget
<p>I am testing a gtk4 widget which is GtkDropTarget. I plan on setting an image which is dragged to the window as the image of the window itself. But errors come up as soon as I drag an image file. To be clear, this is the code in vala:</p> <pre><code>int main (string[] args) { var app = new App(); return app....
3
1,374
How to push to a new viewController from UITableView?
<p>could someone help tell me where I'm going wrong? I'm trying to push to a new view controller from a table view but it's not doing anything, it prints in the console so its registering but it's not pushing.</p> <p><a href="https://i.stack.imgur.com/nU5Dn.png" rel="nofollow noreferrer">enter image description here</a...
3
1,131
List View will not inflate
<p>Please help, I am trying to retrieve a list of friends from FaceBook that also use an app. I am getting the list and the Data is showing up, but my adapter does not inflate the list view. All the id's are correct, and Log tags show me what I need, but the view will not inflate. Here is the relevant code: </p> <p...
3
1,544
MSB4018: The "GetFrameworkPath" task failed unexpectedly
<p>I'm unable to run a simple Console application in Visual Studio 15 Preview 3. I used <code>Console Application</code> project template under <code>Visual C# -&gt; Windows</code>. It fails with following error:</p> <pre><code>1&gt;C:\Program Files (x86)\MSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets(3389,...
3
1,189
Javascript functions don't work after MVC Upgrade
<p>I have upgraded a solution from MVC 3 to MVC 4.</p> <p>I have 2 specific JavaScript functions that does not work anymore after upgrade.</p> <ol> <li>Tabs</li> </ol> <p>This is how the tabs now render</p> <p><a href="https://i.stack.imgur.com/xg0zF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
3
3,464
Decode and reformat values from Serial data array
<p>My application receives data from a serial interface. Some received records can displayed directly to a textbox, others have to be converted. One Serial Messages that i have to decode contains 512byte and multiple informations.</p> <p>To receive Data i use:</p> <pre><code> private void SerialPortDataReceived(obje...
3
2,094
Why can't i decrypt the database values with fernet [Python]?
<p>im trying to retrieve encrypted values in the database, and decrypt them. But it's not working for me. This are the records from sqlite3 which im trying to decrypt:</p> <pre><code>[(b'gAAAAABg5EBDnm6LZdHNzzjnDlFcA80SeS1s-wXhKx_opwOm0vSNsfcxheZC4abQ-qvifmxxbCT8gGy2O1dz-76gx3_ALVmeZQ==', b'gAAAAABg5EBD1k2kpmYaAI0PNfjH...
3
4,132
Bubble Sort through a doubly linkrd
<p>am learning C with Kochans programming in C 4th edition. I am on pointers, and my exercise is to write a pointer version of a sort function from a previous chapter. This is a bubble sort. I bit some code from a better coder for creating a doubly linked list (setting all the numbers as done in previous problems se...
3
1,260
GoDaddy Office 365 OAuth2 for SMTP fails with Authentication unsuccessful
<p>Following <a href="https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth" rel="nofollow noreferrer">this guide</a> on OAuth2 support for IMAP/SMTP, I was able to retrieve the access token and authenticate IMAP and SMTP fine, but fo...
3
1,145
Nodejs 2nd call on same external API return previous result
<p>I am writing a service In which I have to register an order tracking number to an external source to track my order automatically.</p> <pre><code>let trackingObj = { tracking: { tracking_number: params.trackingNumber, order_id: params.orderId, emails: params.email, smses: params.p...
3
15,846
Nearest Neighbor or KD Tree with 2D Lat and Lon Python
<h2>What I am trying to do:</h2> <p>What I want to do is have a function for nearest neighbor where the user provides the latitude and longitude arrays and a singular point. Within the function I do not mind applying a function from a different library (such as the scipy kdtree). Previously I applied the below functio...
3
1,160
Pandas inheritance causes infinite recursion error
<p>I am trying to wrap Pandas's data frame to extend it with more functionality, for example here I am trying to have self._number_cols include the numeric columns. The example below ends with a recursion error.</p> <p>p.s. I defined the _constructor according to the guide here: <a href="https://pandas.pydata.org/pand...
3
1,822
GAME Java random generator with cubes, while if do while
<p>Lovely people, I'm stuck with my java program. If i run my program it doesn't work how it is supposed to work. If computerSpeler throws 1 or 2x 1, it should be mensSpeler his turn. What is wrong with my program?</p> <pre class="lang-java prettyprint-override"><code>import java.util.Random; public class Spel { ...
3
1,448
Returning True/False from PHP to Ajax
<p>The past day's I've been trying to return a true or false boolean to Ajax. </p> <p>The Process: Someone submit's a form > Send to a PHP file > From PHP, check everything is correct. If yes, return true and <code>echo 'correct'</code>. > Output the result. In this case, it'll have to echo correct. And check if it's ...
3
1,524
Variables from Android are always null in Symfony
<p>I'm programming an API RESTful (FosRestBundle) in Symfony3 for Android. I pass values from Android with classes that inherit from StringRequest.</p> <pre><code>public class CommandActivity extends AppCompatActivity { protected TextView tvDrink; protected TextView tvFood; protected TextView tvTotalprice; protected ...
3
4,067
How can I get custom form field value from within Django Admin's response_change?
<p>I've added a custom functionality to a model by overriding <code>change_form.html</code>. Basically, I'm letting users change the objects of a model if these changes were approved by the admin. I added two buttons, named <code>accept-suggestion</code> and <code>decline-suggestion</code> and I intend to handle the cu...
3
1,075
Compiler sometimes can't find generated navigation files
<p>This is a pretty bizarre one.</p> <p>Occasionally, after some arbitrary change has been made to the nav graph XML, the build fails because it can't find two particular functions (nav directions) that should have been generated.</p> <p>The error is like this:</p> <pre><code>main/java/com/project/upsell/UpsellFragment...
3
1,120
Doesn't C++ mandate that (cond ? string_1 : string_2) initialize a string?
<p>Considering:</p> <pre><code>void foo(std::string&amp; s); </code></pre> <p>Inside this function, the expression <code>s</code> is <em>lvalue</em> <code>std::string</code> (<em>not</em> <code>std::string&amp;</code>), because references don't really &quot;exist&quot; in expressions:</p> <blockquote> <p><a href="http:...
3
1,504
Pass Value From Controller to Model CodeIginter Using Stored Procedure
<p>I have a problem with Codeigniter. I try to pass value from view to controller and it works. But there is a problem when it passing from controller to model. It didn't return any value into View.</p> <p>Here is my controller:</p> <pre><code> public function Edit2G() { $id = $this-&gt;uri-&gt;segmen...
3
1,276
Calender: Show dates upto next 1 week from current week
<p>Hello friends I have a calendar with next previous button when user clicks on next button next week schedule will come if again user clicks nothing will happen I want to show dates upto next 1 week</p> <p><a href="https://i.stack.imgur.com/p4jcQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p4j...
3
1,435
Best way to search through an Object containing multiple objects and arrays
<p>I have tried a couple of methods using indexOf and if (x in y) none of which seem to do exactly what I want.</p> <p>I need to pull through several objects and find a specific number / timestamp / Date depending on the object. Here is a screenshot of the console of my Object.</p> <p>Any thoughts? <img src="https://...
3
1,577
MuleStudio Connector Example The attribute comments is undefined for the annotation type Generated
<p>I'm getting the following error after importing the project from Maven POM to MuleStudio.</p> <pre><code>The attribute comments is undefined for the annotation type Generated </code></pre> <p>Please help to resolve this issue.<br> My POM file:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;projec...
3
1,442
How come pd.concat(axis=1) is row-binding instead of column binding?
<p>I am using <code>pandas</code> and I have two dataframes which have the same number of rows: </p> <p>All I want to do is to merge them together by <code>ticker</code>, which I tried with</p> <pre><code>a_no_nan2_last.join(ref, on = "ticker") </code></pre> <p>which gave me this error</p> <blockquote> <p>ValueEr...
3
2,995
How to assign a variable value depending on a condition on a pandas dataframe?
<p>I have a dataframe that looks like this:</p> <pre><code> number type username product publishing_dt genres count 0 1 access kerrigan 897 2019-03-05 VXA 0 1 1 access kerrigan 1459 2008-05-06 VXA,VHS 0 2 1 orderline ...
3
1,810
How to check if object contains a string value?
<p>I know can read values inside the object as the h tags get populated, but I can't hit the statements checking <code>response.image</code> for a value, even though my console.log shows that it does exist.</p> <p>I'm not sure whether the below is the correct semantics to check for a value. I presume I might need to d...
3
1,272
how to filter multiple filed with python Regular expression
<p>May I know how should I design the filter to get multiple match for a filed? Here is an example, I need to fitler the all uplinkVolume from below paragraph to summary the all uplink volume.</p> <p>How can I do that with Python Regular expression? </p> <blockquote> <p>{ extensionType:{1} length:{48} serviceList:{...
3
1,227
IsLocationOnPath not working
<p>I am working to make a check in my app that whether user follow given route map or not. I am checking user change in current position and have called isLocationOnPath in my location changed method as following</p> <pre><code> try { final Runnable r = new Runnable() { public void run() { ...
3
1,470
How do I add mass comments into Windows Command prompt?
<p>I have a lot of text I would like to add as a comment. For example, I want to put the enitre help section of CHKDSK:</p> <pre> Checks a disk and displays a status report. CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] [/B] [/scan] [/spotfix] volume Specifies the drive ...
3
2,673
What is difference between event.getItem() and comboBox.getSelectedItem() while casting the object
<p>I have a panel with a combobox. I am adding id numbers to the combobox. But before adding any id, I am adding a empty String to know that no id is selected.</p> <pre><code>JComboBox jcPatientIds; JPanel patientPanel; public void updateIdsInComboBoxes(ArrayList&lt;Integer&gt; items) { getJcPatientIds().addItem(...
3
1,914
React-Hook-Form working on PC, but on mobile inputs go blank when switching fields
<p>I used React-Hook-Form and Yup for validation to make an Amazon Create Account Clone. Everything works fine on my PC, but when I try to use the form on a mobile browser (both Chrome and Safari) the input fields text seems to vanish when I click to type into a new input field. When I go back to the &quot;vanished&quo...
3
2,346
Angular JWT interceptor switch bearer token for refresh
<p>I have implemented a JWT and refresh token flow. When I implemented this in the past, I did it a bit differently, mainly that the refresh token was sent in the body.</p> <p>But now I've done it differently, and I have to send the access token via the Authorization header, but my interceptor code doesn't want to swit...
3
1,116
How to set right position to elements?
<p>I have a window that pops up after a button is clicked. In this window, in the modal's header, I want to realize switcher that has position between two words, &quot;оn&quot;, and ,&quot;&quot;off. But it looks like this now:</p> <p><a href="https://i.stack.imgur.com/NCbH2.png" rel="nofollow noreferrer"><img src="htt...
3
1,424
How to validate forms in modal with tabs and angularJs
<p>I have a modal form with angular and uib-tabset.</p> <p>I have only a footer in modal. Each tabset has a form( A B and C).</p> <p>When I try enabled/disable the save button on footer, I can´t acesss acesss the forms. They are undefined.</p> <p>So, in the 'Save' button(see plunker) - formA.$invalid doesn´t work...
3
1,361
How can if statement be used within echo
<p>I have to check the results that are coming from fetch array, I am using <code>else if</code> or <code>if</code> to get the remarks. But I do not know how to use it with in echo, When I run this code all the remarks statements come in same form as written in code.</p> <p>In this I have to check the results that...
3
3,898
Opencv: EM algorithm training slowly
<p>I am trying to use opencv EM algorithm library. </p> <p>I tried some example about EM algorithm such like <a href="http://subokita.com/2014/03/24/image-segmentation-using-opencvs-expectation-maximization/" rel="nofollow noreferrer">this</a> and <a href="https://stackoverflow.com/questions/12490256/opencv-color-extr...
3
1,177
How to use existing Objects in an overwritten run() Method?
<p>I'm a beginner in programming and do strugle a bit. So I'm building a TCP peer to peer Chat and that requires me to divide the tasks -&gt; Threads. So I want to built a Thread for the &quot;writing&quot; part of that connection (Scanner, DataOutputStream etc.) In order to do that i implemented Runnable and that forc...
3
2,282
Print styled HTML as custom field output from admin meta box fields in WooCommerce
<p>I have this code, based on <a href="https://stackoverflow.com/q/63011510/11987538">Display custom field values of product variations to custom product tab in WooCommerce</a> to display 3 custom field on WooCommerce variations.</p> <p>In that fields I want to insert text with HTML tags and show it in shortcode with a...
3
2,145
Flutter BLoC Architecture - Role(s)
<p>This is a question mostly about the best practice, I'm new to flutter dev and to the BLoC architecture, to summarize I have an app that has an app_bloc which handles user authentication (firebase login), it's pretty simple, has two states Authenticated and Unauthenticated.</p> <p>My app renders pages depending on wh...
3
1,708
Qt / OpenCV - Resizing an Image doesn't work with specific sizes
<p>I made an Image Editor in Qt / OpenCV where you can load the Image from the File explorer and grayscale/adaptive threshold/resize it afterwards.</p> <p>Bug 1: When I resize the Loaded Image to (for example) 600x600 Pixels using my ImageProcessor::Resize(int, int) method, it works fine. But when I change it to like 5...
3
1,678
I have scroller bar is not working properly
<p>I have a comment section on my page, And I add a scroller for comments. If in the comments section there are no comments then I want to hide the scroller bar. In my CSS I give <code>overflow: auto;</code> but still it shows scroller bar when there are no comments.</p> <p>CSS:</p> <pre><code>&lt;style&gt; .sc...
3
1,882
Why restoring checkpoint is run on CPU not GPU?
<p>I am training GAN with <strong>tensorpack</strong>, after training finished, here is the log file:</p> <pre><code>2019-04-19 10:14:19.311373: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA 2019-04-19...
3
2,668
POV Ray Rendering fails
<p>I am trying to render this code using POVRay 3.7:</p> <pre><code>#include "colors.inc" #include "glass.inc" #include "golds.inc" #include "metals.inc" #include "stones.inc" #include "woods.inc" #include "shapes.inc" #include "textures.inc" #include "spectral.inc" #include "rand.inc" #include "math.inc" #declare M...
3
2,638
Kendo Grid data disappears on navigation button click
<p>I have got a Kendo grid that displays data with paging functionality enabled.</p> <p>Clicking on the page number buttons changes the page with data however on clicking on the navigation buttons (next, previous, first, last) the grid gets empty with no records available message. </p> <p>The snippet below is my gri...
3
1,928
Apply CommonsChunkPlugin on different config exports in Webpack?
<p>I am working on a project which is consisting of the following 'entities':</p> <ul> <li>A few pages for a static website</li> <li>An app</li> <li>An admin dashboard</li> </ul> <p>In my initial <code>webpack.config</code> a setup I was handling each of these entities as different <code>entry</code> points. For exam...
3
2,229
How to autowrap a shared object to alias existing functionality while adding instant specific private values
<p>I want to be able to create a new object that is effectively an alias of an existing object, except with a new method added to the new object that is not added to the original aliased object. I'm new to javascript, so I don't know if something like what I want already exists and/or is easily implimented. To give a ...
3
1,199
Backbone Collection not rendering when going back
<p>I have a Backbone app I'm building with Trigger.io, and have a bit of confusion why data is disappearing when I click the back button in the phone toolbar.</p> <p>Here's the setup:</p> <p>I have a view, SearchResultsView, that looks like this (Trigger.io code removed for brevity):</p> <pre><code>window.SearchResu...
3
1,150
Reused Custom CollectionViewCells keep old size properties
<h1>The problem</h1> <p>I have <code>UICollectionView</code>, which implements method <code>sizeForItemAt</code>. I want cells to have the height property which was assigned in <code>sizeForItemAt</code> method, but when the cells are reused the size property persists. </p> <p>So I wonder if there is any way to force...
3
1,051
.Net Core 2.2 App Returning 404 for every call on Linux AWS Instance
<p>I setup a .Net Core application on an AWS EC2 instance and can't seem to get my calls to succeed. Specifically, I find that routes that work just fine on my localhost when I run locally do not work on this Linux box. I followed some instructions from Microsoft to setup Kestrel with an nginx reverse proxy.</p> <p>Rel...
3
1,212
How to correctly align these elements with flexbox?
<p>Sorry for the really vague question title but I have no idea how to best describe it...</p> <p>Take the following code example:</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-css lang-css prettyprint-override"...
3
2,031
Calculate time difference between two events while disregarding unmatched events
<p>I have a data set with a structure such as this:</p> <pre><code>structure(list(id = c(43956L, 46640L, 71548L, 71548L, 71548L, 72029L, 72029L, 74558L, 74558L, 100596L, 100596L, 100596L, 104630L, 104630L, 104630L, 104630L, 104630L, 104630L, 104630L, 104630L ), event = c("LOGIN", "LOGIN", "LOGIN", "LOGIN", "LOGOUT",...
3
1,310
reading and writing to same file with jar
<p>So, here's the problem: I'm working on a Java program that reads from a .csv file, and constructs objects out of it. I'm using InputStream, InputStreamReader, and BufferedReader to read the file. The IDE I'm using is NetBeans and the file being read is in the src directory. A quick note, for your convenience, I ha...
3
1,299
Quirky navigation positioning issue has left me stumped.
<p>I've been working on my first responsive site and I having an issue with my navigation.</p> <p>The part that i'm stumped as is the the main header (#header_bar .heading h1 a) is not staying inside of the #header_bar container whenever i try to bump up the size of the text.</p> <p>I would try to achieve this withou...
3
5,145
Contact Form missing (send.php file)
<p>Hi i would just like to ask some help regarding my contact form because I do not know how to create a php script to run on submit my form (send.php). Here my code for the Contact Form:</p> <pre><code> &lt;div class="contact_form_holder"&gt; &lt;form id="contact" class="row" name="...
3
1,777
Dynamic form validation
<p>I'm on Symfony 6.0 and I just managed to send an <code>AJAX request</code> with <code>JQuery</code> to my Controller and submit a form. Great. However I have some validation in my Controller, and I wonder if it's possible to &quot;rerender&quot; my form with my error messages <strong>without</strong> refreshing the ...
3
1,444
UIActivityViewController - No share options - Swift 5
<p>I have implemented a UIActivityViewController in Swift 5 via a nav bar button and upon click this should share the contents of an array called sharedData. </p> <p>When clicking the button, the share options popup is empty.</p> <p>Here is my func code:</p> <pre><code> @IBAction func shareNavButton(_ sender: UIB...
3
1,435
Selecting button in winapi causes other functionality to break
<p>I am writing an app with the Win32 API. The layout basically consists of a left window that never changes and a right window that changes between two windows. To control this change, I am using <code>ShowWindow(hWnd, SW_SHOW/SW_HIDE)</code>.</p> <p>In the left window, there is a button that reveals one window and hi...
3
2,799
Why isn't my method removeDuplicates() returning a Linked List without the duplicates?
<p>When I try to implement a method to remove duplicates, it returns the linked list with the duplicates still in. I'm not sure if it is a problem of variable assignment or potentially the show() method that I have created.</p> <p><a href="https://www.dropbox.com/s/2cjj4nb4v8i5fg9/RemoveDuplicates.zip?dl=0" rel="nofo...
3
1,084
Value not rendering in table Angular
<p>I using Angular Material to create a table for my object</p> <p>Here is a class for the object</p> <pre><code> export class Payment { Id: Number; AccountHolderId : String; AccountHolderName: String; PaymentDate: Date; Amount : Number; Currency : String; Status : Number; StatusDescri...
3
1,789
Mule ESB: Proceed HTTP Response with HTML and Javascript
<p>currently I am working with mule esb. What I want to achieve is: Do some operation in JavaScript and publish the response to HTTP based on HTML format.</p> <p>For example, I have following HTML file:</p> <pre><code>&lt;!DOCTYPE&gt; &lt;html&gt; &lt;head&gt; &lt;script type="text/javascript" src="mule-res...
3
5,573
Long delay, followed by SSL Error making first SQL Server call in Java/Tomcat web application
<p>I have a web application that runs using Java 8 on Tomcat 8 on Windows. When first starting the Tomcat service, the WAR unpacks and deploys as expected, but then, making the first call to the service, which makes a database connection to Microsoft SQL Server takes almost an hour to complete, then fails with a bunch...
3
3,214
css file not working properly on rails 4.2
<p>css is not working properly in rails 4.2.5 on implementing home page looks like </p> <p>the gem file are</p> <pre><code>gem 'rails', '4.2.5.1' gem 'pg' gem 'activeadmin', github: 'gregbell/active_admin' gem 'devise' gem 'sass-rails', '~&gt; 5.0' gem 'uglifier', '&gt;= 1.3.0' gem 'bootstrap-sass', '3.2.0.0' gem 'co...
3
2,745
ECMAscript export in Node.js
<p>Im creating an NFL football simulator in nodejs and am having trouble exporting one of my variables. As you can see in my get_teams.js i make many HTTP requests. I then process the responseArr and format the data. Where I am running into an issue is when I try and export the sorted_teams_array. you can find this...
3
2,152
Unable to draw bitmaps on top of other bitmap using Direct2D
<p>I want to write a Direct2D application that draws many objects on a background image using SharpDX. But after drawing a certain number of objects, Direct2D ignores all further objects. However only if the at least 1 object is overlapping with the background image.</p> <p>This is a simplified version of my rending f...
3
2,481
Django/Chartit NameError: global name 'MonthlyWeatherByCity' is not defined
<p>I am trying to product plots in my Django site using Chartit. I am following the official tutorial, but getting the following error as I try to navigate to my page. </p> <pre><code>NameError at /chart/ &lt;br&gt; global name 'MonthlyWeatherByCity' is not defined </code></pre> <p>I would appreciate any tips that mi...
3
1,192
Copying annotations leads to a corrupted attachment
<p>I'm implementing a plugin (POST Quote Create, Synchronous, Sandbox) to make it so that Notes are copied to the new record when a quote is revised.</p> <p>My plugin boils down to this (snippet):</p> <pre><code>var serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFa...
3
1,614
Symfony 2 add relationship on existing entities (courses & courses_students & students)
<p>I am new to symfony framework. I would like to ask you guys how to add relationship on existing entities. I have <code>students</code>, <code>courses</code> and <code>courses_students</code> tables. In students table there are 3 students and in courses table there are 2 courses. In below code I am using findAll() fu...
3
1,159
Bootstrap 5 navbar background color is not changing on scroll
<p>I am building an angular app in which I am using Bootstrap 5. I created a transparent navbar and I would like to see the background color change from transparent to dark when the page is scrolled. It doesn't work. It still keeps my navbar transparent instead of dark color each time the page is scrolled.</p> <p>My na...
3
1,913
Adding a calculated column of an equation using pandas groupby()
<p>I'm new to working with pandas and I am trying to add a column with groupby() based off of a Spotfire calculated column formula </p> <p>Suppose I had a table with the following data (df1):</p> <pre><code>'Well ID','Assay','Source','Treat','BkgrdSub Fluorescence','Calced' 'A1',4,'Source 1','OPA',-215.75,0.035583351...
3
1,617
Grouping/Paginating items from two different parents
<p>I'm a relative novice with XSLT, not having touched it since the late 90s, but I've recently started on a personal project that will involve it.</p> <p>I have the following XML, from which I'm attempting to build an HTML character sheet:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?xml-styleshe...
3
1,344
ERR_TOO_MANY_REDIRECTS from Shiro security AuthController in Grails app
<p>Shiro security works great with my grails app with the exception of if a user enters incorrect login information. If they put in the wrong username and password combination (which is authenticated via an LDAP server), it seems that I'm entering an infinite loop between the index and login actions. The general form o...
3
2,700
Pseudo elements not working on Bootstrap Modal
<p>I try this table with this style on Bootstrap Modal, and it does not work to highlight the column and row. If i use it inside html file body it works. Can anyone help me with some hint what is problem?</p> <p>Style.css</p> <pre><code>.custom-table-matrix-table { border: solid 1px #DDEEEE; border-collapse: ...
3
1,827
Variables incorrect; fraction calculator; JAVA
<p>I have my code here which i have posted on here before and have been helped before. The variables seem to be incorrect and i am unsure why. I entered the fraction 1/2 + 3/4 and am getting the answer 8/4. i know it has to do with the variables because when i run the debugger it says that "a" = 1, 'b'= 1, 'c'=4, and ...
3
1,119
Unhandled exception when adding a RibbonGroup
<p>I am trying to implement the Outlook Ribbon in a WPF application, and the ribbon works fine. However when I try to add a RibbonGroup, I get an unhandled exception in the XAML.</p> <p>Here is my code:</p> <pre><code>&lt;r:RibbonWindow x:Class="WpfArticles.Main" xmlns="http://schemas.microsoft.com/winfx/20...
3
2,700
How to display 0 items in Table View for different users account with Firestore
<p>I have a tableview with Restaurants. Each restaurants contains different types of food. <a href="https://i.stack.imgur.com/Lf52j.png" rel="nofollow noreferrer">This</a> is my tableview for food in the restaurants, and <a href="https://i.stack.imgur.com/EkFDZ.png" rel="nofollow noreferrer">this</a> this is my Cart. ...
3
1,535
JLabel wont show up on button click
<p>This is my first GUI so any advice is good advice here but mainly I'm just trying to work out why my <code>errorLabel</code> wont show up. I've tried <code>setVisible</code>, <code>setOpaque</code>, having the location set manually and finally (as you can see below) just making it its own panel to sit on and it stil...
3
3,547
Calling ffmpeg.c's main twice causes app crash
<p>Using FFmpeg 4.0.2 and call its <code>ffmpeg.c's main</code> function twice causes Android app crash (using FFmpeg shared libs and JNI)</p> <pre><code>A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 20153 </code></pre> <p>Though it works ok for FFmpeg 3.2.5</p> <p><strong>FFmpeg 4.0.2 main</stron...
3
2,379
Weblogic 12.2.1.3.0 REST service with sub-resource and generics
<p>I have the following simple classes for my REST application:</p> <pre class="lang-java prettyprint-override"><code>public class BaseDTO { private long id; private String name; // setters and getters } @XmlRootElement public class SimpleDTO extends BaseDTO { private String description; // sett...
3
1,890
Web application could not be started cpanel
<p>I'm installing a rails app on cpanel hosting. I installed Ruby on Rails from Feature Manager in WHM.</p> <p>Also enabled ruby24-mod_passenger from Easy Apache 4 (in WHM)</p> <p>Then i added App in Application Manager (in Cpanel)</p> <p>when i visit from url i saw these error.</p> <p>I can't find how to solve thi...
3
9,364
Why these two C pointers set to NULL after one line code?
<p>Here are the codes I do not understand and never met before. only one line of codes change rvalue pointer and set it to NULL </p> <pre><code>if ((*v)-&gt;r != NULL) printf("WTF r != NULL r %p p %p p-&gt;l %p (*v) %p \n",(*v)-&gt;r,(*v)-&gt;p,(*v)-&gt;p-&gt;l,(*v)); (*v)-&gt;p-&gt;l = (*v)-&gt;r...
3
3,167
Scipy Interpolate PiecewisePolynomial - Error on input data
<p>Hello I am using the following code to try to use scipy's interpolation.</p> <p>I am getting the following error:</p> <pre><code>Traceback (most recent call last): File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 3.4.1\helpers\pydev\pydevd.py", line 1733, in &lt;module&gt; debugger.run(setup[...
3
1,209
Robust type caster for STL-vector-like classes
<p>I have a class that is quite similar to an STL-vector (the differences are not important for the pybind11 type caster, so I will ignore them here). I have written a type caster for this class. A minimal working example of my code is given below. An example showing the problem is included below the code.</p> <p>The ...
3
1,500
Using getChildHtml to display product attributes not working
<p>I have added a to my catalog.xml file, created a specifications.phtml file to be used as the template, and I’m calling echo $this->getChildHtml(’specifications’); in my view.phtml file.</p> <p>However it’s not displaying anything at all. I’ve basically mirrored everything after the same type of thing for the produ...
3
2,711
Perl OOP attribute manipulation best practice
<p>Assume the following code:</p> <pre><code>package Thing; sub new { my $this=shift; bless {@_},$this; } sub name { my $this=shift; if (@_) { $this-&gt;{_name}=shift; } return $this-&gt;{_name}; } </code></pre> <p>Now assume we've instantiated an object thusly:</p> <pre><code>my $o=T...
3
1,449
WPF TabItem Grid Contents Disappear Halfway Down
<p>I have a strange problem. I have a TabControl created like so:</p> <pre><code>&lt;TabControl HorizontalAlignment="Stretch" Name="tabControl" VerticalAlignment="Stretch" FontSize="10"&gt; ... &lt;/TanControl&gt; </code></pre> <p>with a few tabs created like so:</p> <pre><code>&lt;TabItem Header="XXXX" Name="tab1"&...
3
1,147
The on click handler in React.js executes before the event happens. How can I stop that?
<p>You can also execute the script here <a href="https://codepen.io/tznqeyiq/pen/vYKNwKb" rel="nofollow noreferrer">https://codepen.io/tznqeyiq/pen/vYKNwKb</a></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true"> <div class="snippet-code"> <pre class="snippet-code-js lang-...
3
5,832
how i can resolve the error Cannot read property 'prenom' of undefined?
<p>I'm developing a user registration page and I'm using angular on the front side and spring boot side back, the problem I get is this error when starting my application:</p> <p><a href="https://i.stack.imgur.com/QzQd5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QzQd5.png" alt="the error"></a><...
3
2,716
no change to the page after clicking log in button?
<p>creating a log in page using php and PDO however once I fill out the form with the correct username and password to log into the system and click log in, nothing changes except the boxes are now empty as if I never entered a username and password, can someone advise me as to what is going wrong?</p> <p>this is the ...
3
1,514
Posting form data of one form as nested json in a json file that has data from another file
<p>Title of this question can be confusing. I'm clarifying it here. I've 2 forms: One for <code>timeline</code> and another one for <code>events</code>.<br> <strong><code>HTML code:</code></strong> </p> <pre><code>&lt;link rel="stylesheet" type="text/css" href="jquery-ui.css"&gt; &lt;script type="text/javascript" src...
3
4,785
How do I implement this password class in my vb.net login form
<p>I came across this password class and I would like to use it in one of my projects. I have a Windows form that connects to a MySQL database. I have created the connection and was previously using this code to login to the system:</p> <pre class="lang-vb prettyprint-override"><code>Imports System.Data.OleDb Imports ...
3
2,420
Issue with Jquery .html() function when updating a textarea with a modal
<p>I'm trying to create a modal that allows a user to edit a memo field on a corresponding database.</p> <p>The issue is, it works until I submit some form data, after that the textarea is not updating with the new data, it just displays the submitted data.</p> <p>Some things to bear in mind: The memo field is stored a...
3
2,012
constructors not allowed a return type (Generic Linked List)
<p>I am trying to make a Generic Linked list in C++ using templates. But i am getting this error 'GenericNode::{ctor}': constructors not allowed a return type through which i can't possibly know what am i doing wrong? PS. i have also gone through other posts here on Stack Overflow which says that the error is due to th...
3
1,096
off-canvas navigation menu isn't functioning
<p>I don't what is going on, but if anyone can help me that could be great. So I'm trying to create a navigation menu that is off-canvas for mobile layouts, but I've been running into issues; and I'm at a dead end right now. If someone can take a look at my code and point me in the right direction that would be great.<...
3
2,816
UIScrollView behave strange
<p>I set UIScrollView's subview's height to 768,and UIScrollView's contentSize is 1024*768 .But when I swipe up or swipe down,the subview(UIImageView) will scroll up or down a little.I don't know why.</p> <p>here is my code</p> <pre><code> -(void)viewDidLoad { [super viewDidLoad]; // scrollView is an outl...
3
1,547
on closing dialog do not remove the previous contents on re-opening again
<p>I have made a dialog and a UI Tab in that dialog. In that dialog i am showing some contents as a table. When i close the dialog by remove() method it closes the dialog but when i reopen it, the old contents are still showing with the new contents in the tab, is there any method that old contents will also reomve whe...
3
1,420
CS50 PSET6 - DNA - Works fine on SMALL but not for LARGE database
<p>I'm taking CS50 and got stuck on this pset6.</p> <p>I made this code and it's working fine for 'small' given database. On 'large' one i get wrong values in my DNA sequence. Like, using debug50 i got that Albus sequence should be 15,49,38... and my seq is 21, 55, 64...</p> <p>whats wrong? AND why it works fine on sma...
3
1,221