title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
SQL Xamarin Forms Delete Item Duplication
<p>I have an application where items are added to a collection view which is swipable to be deleted. I am using SQL to do so. However, when deleting the item, sometimes the items have 'duplicated' until a refresh happens and then they disappear once again. How do I go about fixing this issue and why does it only occur ...
3
2,453
Azure devops timeout when downloading artifacts
<p>The release pipeline was working fine until recently, nothing had changed but it was saying that the agents were offline or disabled when they weren't. It turned out they needed to be updated from version <code>2.163</code> to <code>2.188</code> after this the pipeline would begin, but now it times out after downloa...
3
6,027
Relationship Between AffineTransformation and Polygon's Point
<p>As a project, I'm attempting to create an emulation of the game Asteroids. Currently, I'm trying to make it so then the spaceship appears on the opposite side of the GUI if the player ever sends himself out of bounds.</p> <p>However, I've become quite confused between how AffineTransformation's rotate and createTra...
3
3,412
Toolbar haven't the full size
<p>Hey Guys I want to make a Custom Toolbar. I tried so many things but nothing works.... So I have this in my manifest.xml:</p> <pre><code>&lt;application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true"&gt; &lt;activity andr...
3
1,025
Avoid new lines in csv because of carriage return with php
<p>doing my few first steps in PHP and I'm stuck. Been searching SO all afternoon but couldn't come up with a solution. Highly appreciate any advice from experienced devs.</p> <p><strong>Scenario:</strong> Users are asked to fill out a short survey consisting of two textareas. Upon hitting the submit button, the conte...
3
1,103
Script keep showing "SettingCopyWithWarning'
<p>Hello my problem is that my script keep showing below message </p> <hr> <p>SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame</p> <p>See the caveats in the documentation: <a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-...
3
1,371
How to add more nodes in the self signed certificate of Kubernetes Dashboard
<p>I finally managed to resolve my question related to how to add more nodes in the CAs of the Master nodes (<a href="https://stackoverflow.com/questions/65186710/how-to-add-extra-nodes-to-the-certificate-authority-data-from-a-self-signed-k8s/65198463?noredirect=1#comment115265632_65198463">How to add extra nodes to th...
3
1,113
tensorflow gpu Resource Exhausted during model definition
<p>I get <strong>ResourceExhaustedError</strong> from tensorflow not during training but during my model definition, so che classic suggestion &quot;decrease batch size&quot; do not makes sense in this case.</p> <p>Here is my model definition:</p> <pre><code>def build_net(input_shape=(400, 300, 3),output_class_count=6)...
3
1,454
pass coordinates from googlemaps react child to parent in functional component typescript
<p>I'm using @googlemaps/react-wrapper to make a map component in my react application using the example from <a href="https://developers.google.com/maps/documentation/javascript/react-map" rel="nofollow noreferrer">googlemaps</a>, and adding an event on drag marker to refresh coordinates, this works fine now. but i ne...
3
3,438
How to close Modal in Reactjs?
<p>On button click i was trying to open a model (and modal opening too) and in a same modal it contain a button and on button click i was trying to open another model (and second modal opening too), but when second modal is opening i want first model to be closed. can it be possible?</p> <p>Here is my sandbox demo <...
3
1,057
SFSafariViewController : Overlay is not appearing sometimes
<p>I am using SFSafariViewController, and as i did not wanted to show the status bar of safari and i have hidden it by adding a overlay. I have my own button on the overlay and its working fine. The safari status bar is hidden and it shows my overlay but somehow sometimes the overlay disappears and the safari status ba...
3
1,051
Node.js promise and for loop. Wait for async function inside a loop
<p>I'm pretty new to Node and also to JS. I already read a lot here at stackoverflow and I think I personally have one in my brain for the last view days trying to fix this issue ;-).</p> <p>The purpose of this code is to get the steam name for each player from steam API and put it into json object. after that the jso...
3
1,617
Nginx Ingress on Kubernetes Cluster
<p>`I had a working Ingress controller version 1.0.0 (Bitnami). It stopped working one fine morning, and it appeared that the error was due to the version being depricated. Now I tried to upgrade this version, but started getting errors. I delete ingress and reinstalled it again, and this time from Bitnami repo which p...
3
1,318
VideoTexture Crashes iPad
<p>I'm running a video texture in Away3d in an Adobe Air app which runs fine on desktop and Android, however on iOS it crashes as soon as it tests for VideoTexture support</p> <p>I create the video as such</p> <pre><code> sphereGeometry = new SphereGeometry(5000, 64, 48); panoTexture2DBase = new NativeVideoTe...
3
2,770
Html in Python communicating with JavaScript in Python
<p>I have an html form that places text field data into a Javascript array. The code is shown here:<a href="http://jsbin.com/maniwu/3/edit?html,js,output" rel="nofollow noreferrer">http://jsbin.com/maniwu/3/edit?html,js,output</a>.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-...
3
1,472
How to Avoid very long time python calculations while iterating through pandas dataframe
<p>I am trying to add 2 columns to dataframe to calculate vehicle surroundings neighbor 50 and neighbor 100 for each vehicle in each direction and in each time frame based on distance, if distance below 50 I add one count to the neighbor 50 and so on, I should do this task using Pandas only</p> <p>I should calculate di...
3
1,862
Project.exe has triggered a breakpoint (C)
<p>I'm a beginner programmer, I got a home assignment to seperate a string into words, and put each word in an array of strings. We are practicing dynamic memory allocations. the assignment says that the size of the array must be [10] and i need to change the size of the array with malloc accoring to the number of word...
3
1,188
Post Rocket route is forwarded (Rust)
<p>Sorry to ask such a basic question, there's little info about this in Stack Overflow and GitHub. This must be something silly, but I'm not getting it.</p> <p>I'm trying to send via JavaScript's <code>fetch</code> to a Rust post endpoint with Rocket 0.5 RC1. But I'm getting hit by:</p> <blockquote> <p>No matching rou...
3
1,576
Apply CSS to ul class then li then a
<p>I want to change the color of my footer items using CSS. I want to change the color of all <code>a</code> items as I have given same classes but do not know how to apply CSS. Here is the code:</p> <pre><code> &lt;div class=&quot;col-lg-3 col-md-6 footer-links&quot;&gt; &lt;h4&gt;Our products&lt;/h4&gt; ...
3
1,436
React Bootstrap button not recognising function onClick
<p>I have a React Bootstrap app with onclick Buttons. The first 2 buttons, play and pause work. The next buttons however do not even show in the react console as having an attached function prop.</p> <p>All buttons link to functions within the same scope and they are all near identical.</p> <p>I've tried changing the...
3
1,765
Bug with react-accessible-accordion
<p>Im using the following npm librarie : </p> <pre><code>"react-accessible-accordion": "2.3.1", </code></pre> <p>it is returning an error to me : </p> <pre><code>ReferenceError: babelHelpers is not defined (anonymous function) C:/Users/tabm005/www/node_modules/react-accessible-accordion/dist/umd/index.js:1037 103...
3
2,851
BrowserSync refreshing before injection (Gulp)
<p>I have my gulpfile:</p> <pre><code>var gulp = require('gulp'); var sass = require('gulp-sass'); var watch = require('gulp-watch'); var sourcemaps = require('gulp-sourcemaps'); var fileinclude = require('gulp-file-include'); var browserify = require('browserify'); var rename = require('gulp-rename'); var streamify =...
3
1,038
Need to access and edit an attribute in a database
<p>Orders are created and saved in this method</p> <pre><code>public async Task&lt;ActionResult&gt; FirstClassCreate(FormCollection values) { var order = new Order(); TryUpdateModel(order); var customer = db.Users.FirstOrDefault(x =&gt; x.Email == User.Identity.Name); var cart = Sho...
3
1,430
Why does Play port not get started with library subproject?
<p>In <code>build.sbt</code> I have the lines like:</p> <pre><code>lazy val sparkCommon = (project in file("spark-common"))//.enablePlugins(PlayScala) lazy val root = (project in file(".")).enablePlugins(PlayScala) .dependsOn(sparkCommon).aggregate(sparkCommon) </code></pre> <p>In <code>spark-commo...
3
1,138
dynamic css circle navigation
<p>This question is a follow-up question (not sure if thats allowed) on something I asked earlier -> <a href="https://stackoverflow.com/questions/34307941/dynamic-css-circle-inside-div">dynamic css circle inside div</a></p> <p>The solution to that thread turned out not be what I wanted to achieve since I need the divs...
3
1,259
Display an error if a latitude or longitude has improper formatting
<p>My WPF application has a dialog where the user can enter a latitude &amp; a longitude. I have written an <code>IValueConverter</code> which can handle values entered as decimal degrees or in degree-minute-second format:</p> <pre><code>[ValueConversion( typeof( double? ), typeof( string ) )] public class Coordinate...
3
2,293
Ajax URL Not Executing The Correct Function in views.py As Defined in urls.py
<p>I am leveraging Ajax for some pie charts but data-ajax-url is not working as intended (or as I thought). Per urls.py, reptibase:item-update should execute the item_update function in my views.py file. item_update never gets executed though and instead the same function associated with the current pages url is execut...
3
2,766
How can I get rows with specific conditions in r
<p>Say that I have a <code>df</code>.</p> <p>I want to get the <code>id</code> with two conditions at the same time:</p> <ol> <li><p>the <code>id</code>'s <code>code</code> should contaions a capital <code>I</code>, regardless of the number that follows it. For example <code>I11</code>, <code>I31</code>...</p> </li> <l...
3
1,245
boostrap 3 + datatables buttons: misalignment
<p>I'm experiencing misalignment when using boostrap 3 and datatables buttons (<a href="https://datatables.net/extensions/buttons/" rel="nofollow noreferrer">https://datatables.net/extensions/buttons/</a>). How to align them propery? <a href="https://i.stack.imgur.com/Eyki8.png" rel="nofollow noreferrer"><img src="http...
3
1,937
Decrypt AES with wrong IV size
<p>I have a file encrypted in AES 128 CBC (with openssl in cpp). The encryption has been done with a wrong iv size (8 instead of 16). It's a fact, it's wrong and I can't do anything about it. The file I get is like this:<br> [8 bit of IV][Encrypted data]</p> <p>I have to read this file with Java (android) but I cannot...
3
1,523
Typescript - Why does this recursive function skips some numbers?
<p>From the server, I receive this JSON object. It represents an organigram of a company and the associated departments. </p> <p>I need to be able to choose a company, and with the ID of the company, I need to pass to an array of numbers the ID's of the associated departments.</p> <p>For that, I've created this recur...
3
1,266
an issue with slf4j in a Java application
<p>I am trying to config slf4j on Netbeans using Java application(not web). I added libraries : </p> <ul> <li>slf4j-log4j12-1.6.4.jar</li> <li>slf4j-api-1.6.4.jar</li> </ul> <p>My code likes this:</p> <pre><code>public class TestLogger { /** * @param args the command line arguments */ public static void main(Stri...
3
1,044
Java components being hidden in JPanel
<p>I have two <code>JPanels</code>, each with a bunch of <code>JButtons</code> in them. The <code>JPanel</code> containing the other two has a <code>BoxLayout</code> and the two other <code>JPanels</code> are <code>FlowLayout</code>. The problem is when the window is resized to make the buttons wrap, the buttons in the...
3
1,172
Adding calls inside QgraphicsRectItem subclass triggers infinite redraw
<p>I have a hierarchy of object types, inheriting from a custom interface and <code>QGraphicsItem</code>.</p> <p>In hope of optimizing the code, I would like to inherit from <code>QGraphicsSomethingItem</code>. Example: rectangle</p> <pre><code>class RectangleItem : public Item, public QGraphicsItem { RectangleItem...
3
1,033
C# How to write each table in a Word file to its own Excel file
<p>I'm trying to write code in C# WinForms that allows a user to select a directory tree, and extract all of the table data from a word document into an excel file. Presently, the code compiles and you can select your directories, etc, but once it begins to iterate through the loop for each table it crashes.</p> <p>Th...
3
1,941
Not getting extra from ACTION_VIEW intent
<p>I am using firebase notifications and dynamic links in my application</p> <p>I am sending deeplinks as a payload in notifications and when the user clicks on the notification i am opening the deeplink like this</p> <pre><code> Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(...
3
2,099
FusedLocationApi method getLastLocation() always null during first call
<p>Looking for some help with a problem in my app concerning getting the current device location. Below is the GPSLocationListener class I am using.</p> <pre><code>import android.Manifest; import android.app.Activity; import android.content.pm.PackageManager; import android.location.Location; import android.os.Build; ...
3
6,732
How can I pass configuration to Database class
<p>I have a database class in which i want to pass configuration. I have to keep the "framework" and the Application files separate. here is my configuration class </p> <pre><code>&lt;?php namespace Fzaffa\System; class Config { private $items = []; public function get($name) { list($file, $key)...
3
1,248
Javascript: Extract correct json from php script using id
<p>The issue i am having is i am unable to figure out the correct code through which to extract the information i am looking for</p> <p>Here firstly is the exhibitions.php</p> <pre><code>&lt;?php $exhibitionsarray = array( array("exhibition_id" =&gt; "1", "exhibition_title" =&gt; "New York, New York",...
3
5,709
about concurrency with core data and relationship
<p>i want to insert data on secondary thread and then track changes in main thread.</p> <p>I have two Entitys,and they was set Inverse.</p> <pre><code>@interface Entity1 : NSManagedObject @property (nonatomic, retain) NSString * data; @property (nonatomic, retain) Entity2 * entity2; @end @interface Entity2 ...
3
1,570
Quick Sort using C#
<p>Hello I trying to do a QuickSort but didn't appear the result, For example the user input &quot;cdabe&quot; so the expected result is &quot;abcde&quot;. May I know what is the cause why the result didn't display? because There is no error in the code. I'm using MVC. My MergeSort is working properly but my QuickSort ...
3
1,368
AJAX Request in CodeIgniter Application Failing After Inactivity
<p>The application I am working on is built in CodeIgniter, and the content is always loaded via ajax into the main content div.</p> <p>This works without fail normally, apart from after the user has been inactive for a short while.</p> <p>We haven't completely narrowed down the inactivity time required for the reque...
3
2,178
How to have two different stroke type using Paint class?
<p>The image (white one) is actually how I want to build that blue container.</p> <p>So, How can I get two different stroke type (bottom: Dash, other: solid).</p> <p>Using paint like this</p> <pre class="lang-dart prettyprint-override"><code>Paint paint = Paint() ..style = PaintingStyle.stroke ..strokeWidth...
3
1,184
How to add the "Access-Control-Allow-Credentials" request header to a POST request in ASP.NET?
<p>So, I am trying to set the &quot;Access-Control-Allow-Credentials&quot;, using the <code>HttpContext.Request.Headers.Add(&quot;Access-Control-Allow-Credentials&quot;, &quot;true&quot;); </code>, but it will only work for my GET requests, but not for my POST ones, and i don't know why.</p> <p>I've also tried to set t...
3
1,835
Gitlab CICD sets wrong service url in the production environment
<p>After production deployment the application has not the endpoint of the environment.url from the <code>.gitlab-ci.yml</code>, but a combination of the groupname, projectname and basedomain: <code>&lt;groupname&gt;-&lt;projectname&gt;.basedomain</code>.</p> <p>The Gitlab project belongs to a Gitlab group, which has a...
3
1,806
How to correct a mess java .class file set or generate a proper .jar archive from a mess .class set?
<h1>Background</h1> <p>I have to contact different kind of Java project with various of build system. Sometimes the directory structure is different from the package hierarchy. So it is difficult to package.</p> <p>Even if the build system like Maven and Gradle have its own function to pack .jar but it need a qualified...
3
3,542
Undefined function 'fitrsvm' for input arguments of type 'double'
<p>I am using Matalb 2014 . on using which function it shows : </p> <pre><code>which fitrsvm 'fitrsvm' not found. </code></pre> <p>fitrsvm is an inbuilt function so why matlab doesn't recognize it? I want to use svm in regression is there any other way to do it ?</p> <p>On tying "ver" it shows </p> <pre><code>MATLA...
3
2,762
Accessing and Modifying AppDelegate OUTSIDE Itself
<p>In my <strong>viewController</strong>, there's an object of a custom <strong>PolyShape</strong> class. The main variable of it is the number of sides and this modifies everything else in the app.</p> <p>I'm trying to use the <strong>AppDelegate</strong> and <strong>NSUserDefaults</strong> to store the number of sid...
3
1,100
Get Mobile Number From Contacts and Block that number in android
<p>i want to get a number from user or select a number from contact list and block that number. I am able to get contacts from my contact list with check box, now i want when i click on number and press Block Number the number will be block. I have tried all these links </p> <p>I am able to block a number define in th...
3
2,938
MySQL deleting records that only exist in child table/cakephp update?
<p>I have two Myisam tables, let's say Parent and Child. Parent is created in a perl script. Parent is where the child gets the information(Not for editing) that's all the same, while Child holds information unique to it. Following Cakephp naming conventions, they're connected through the Parent's id field and the chil...
3
1,278
Grade checking program keeps auto exiting prematurely
<p>I am currently trying to learn C++ and I have written the following program. It does what it should successfully, however it keeps auto exiting. I have tried putting a <code>cin</code> at the end and when that didn't work I put a <code>getChar()</code> and it doesn't wait for any input. To be clear, I have had no fo...
3
1,247
How to add parent network to existing vapp via REST api when fenceMode is isolated
<p>I have a vapp instantiated on vcd host via my template, vapp network config section xml looks like:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;NetworkConfigSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" type="application/vnd.vmware.vcloud.ne...
3
2,890
compareTo with objects returns a false while it is true
<p>I am trying to check whether my levelorder of my Binary Search Tree is equal to the other one. To do this, I tried to make a compareTo method. I only give equal values to the method, but it keeps on saying the condition is false. When I place breakpoints, I see that the values are still equal. I am probably not unde...
3
2,012
vector compiler error for different variable type
<p>The goal of this assignment for my class is to ask the user for how many students are in the class. Using the Vector library create a vector of Strings to hold the students names. Create a vector of type double to hold a students grade average.</p> <p>I have a couple two compiler errors that are preventing my code f...
3
2,191
Autolayout redraws when animating
<p>So I have a <strong>Parent</strong> (ViewController) and a <strong>SubView</strong> (Slider) in which the SubView has a datePicker and a button. </p> <p>The Subview itself is a class that uses auto layout to put the datePicker and Button in place so when this view is called, the datePicker and button are in place u...
3
2,754
What is the easiest way to differentiate between function calls from three different jqxgrid calls?
<p>I have three jqxgrids that call the same function to create a new account (which is a jq ui dialogue). What is the easiest or best way to differentiate between which grid was called.</p> <p>My code:</p> <pre><code>$("#divNewAccountDetails").dialog({ autoOpen: F, modal: T, title: "New Account", widt...
3
1,389
Value not available within a private class
<p>My php script has two sql statements. The second one (connection 2) is not executing. I believe its because the value for 'id' is not set since it's within a private class. I was wondering if anyone had a suggestion on how to fix this?</p> <pre><code> &lt;?php //process pdf file upload if (isset(...
3
8,754
Not receiving any data from callback url. Where am I going wrong in Android?
<p>This is my URL post: </p> <pre><code> String urlParameters = "&amp;consumer_key="+AppSession.getPocketConsumerKey()+"&amp;client_secret="+AppSession.getPocketRedirectUri(); String request = "https://getpocket.com/v3/oauth/request"; URL url; try { url = new URL(request); Ht...
3
1,162
Include php is throwing result in header
<p>I am trying to use the php code to display a comment box on a page:</p> <pre><code>$object_id = 'article_12'; include('commentanything/php/loadComments.php'); </code></pre> <p>For some reason the comment box is not appearing where i want it to appear,it keeps throwing the comment box to header, is there any way ...
3
3,043
Spring JPA Data: Query ElementCollection
<p>I have an entity with an elementCollection:</p> <pre><code>@Entity class Customer { @Column(name = &quot;id&quot;) int id; String name; @ElementCollection @CollectionTable( joinColumns = @JoinColumn(name = &quot;customer_id&quot;) Set&lt;Address&gt; addresses; } @Embeddable class Address { @Column...
3
1,275
How can I put the label and the input on the same line please?
<p>How can I put the label and the input on the same line please? <strong>I would like to get please a spacing of 1,5cm between the label and input also.</strong></p> <p>By searching <a href="https://stackoverflow.com/questions/39277144/how-to-put-label-and-input-box-on-the-same-line-using-bootstrap">here</a> I have to...
3
1,641
Inheritance inconsistency
<p>Having some trouble working out an inheritance issue within Python. My code is:</p> <pre><code>class Calendar(object): def __init__(self): self.norm_year = (365) self.leap_year = (366) def _input_validity(self, args_num, *args): if len(args) != args_num: return False ...
3
3,261
Receiving an Array to render in component
<p>I am trying to pass my state of thumbnail URLs that are saved to an array state. But when evaluating in my Netflix component videos is empty? When I console it, it returns <code>In tile {"videos":[]}</code></p> <p><strong>Render</strong></p> <pre><code>return ( &lt;div className="explore"&gt; &lt;div classNa...
3
1,066
Issue trying to get website to work - possible issue with my html code?
<p>SO I have code that I'm trying to implement from my jsfiddle into an actual working website/mini-app. I've registered the domain name and procured the hosting via siteground, and I've even uploaded the files via ftp so I'm almost there...</p> <p>But I'm thinking there's something wrong with my HTML code or JS code ...
3
2,935
Pytest core dump on Unbutu 22.04 LTS when using pyqt5 with mayavi and pyvirtualdisplay
<h2>Want I want to do:</h2> <p>I want to have these requirements running on Ubuntu 22.04 LTS:</p> <pre><code># Bug on Ub.22.04 but avoids AttributeError: 'Timer' object has no attribute 'start' on other OS pyqt5==5.15.7 # These together work: mayavi==4.7.4 PyVirtualDisplay==3.0 pytest==7.1.2 </code></pre> <p>So I can ...
3
5,464
Ckeditor5 connection
<p>I use ElFinder as my image editor and ckeditor5 as my editor.</p> <p>When I call the CKEditor script, it doesn't work :</p> <pre><code>Uncaught (in promise) TypeError: $(...).dialogelfinder is not a function </code></pre> <p>The problem comes from the connector URL :</p> <pre><code>/var/www/......./Sites/Admin/CkEdi...
3
4,817
How do I open a bitmap from a URI that is the result of taking a camera picture?
<p>I'm pretty bewildered here and have tried numerous suggestions I've seen on SO. I was following the Xamarin recipe for accessing the camera on Android and taking a picture. There were some things missing/out of date, but regardless I got to the point where I need to call <code>BitmapFactory.DecodeFile</code> so I ca...
3
1,120
error message instead of NaN output and negative 'Nett Payment' output
<pre><code>var vDiscountPercent; var vGrossPayment; var vTicketType; vTicketType = prompt(" What type of Tickets is required?"); document.write("The Ticket Type is: " + vTicketType); var vTicketQty; vTicketQty = prompt("How many Tickets are required?"); document.write("&lt;br/&gt;"); document.write("The Ticket Qty is:...
3
1,216
connect to hs100 with c++ sockets
<p>I'm new to the c++ world. But I want to make a script that turns on / off my tp-link switch. I have found a <a href="https://github.com/ggeorgovassilis/linuxscripts/blob/master/tp-link-hs100-smartplug/hs100.sh" rel="nofollow noreferrer">bash</a>, <a href="https://github.com/plasticrake/hs100-api" rel="nofollow noref...
3
6,385
Error analysing the csv database with javascript
<p>I'm a doing a project for school using IBM's bluemix and I'm having trouble finding out where is my error. I have a database in CSV that has some parameters (neighbourhood, number of rooms, area in square meters, etc). I also have a JADE file that contains a form that the user have to fill in. In this form, the user...
3
1,461
How can this Java tree be 1000 x faster?
<p>I am programming an AI for a chess-like game, based on two types of pieces on a 8 x 8 grid.</p> <p>I want to build a kind of minmax tree, which represents each possible move in a game, played by white players in first, and by black players in second.</p> <p>I have this generate() method which is call recursively. ...
3
1,253
option on select with icon and text when opened and just icon when collapsed
<p>I want to create a select-option input on my local web with an icon and text when opened or clicked, and return to just being an icon when collapsed. It doesn't matter if I have to use js, css, or some small plugin. Is that possible? Please tell me how</p> <pre><code>&lt;div class=&quot;form-group mb-3&quot;&gt; &...
3
1,448
Extract only first occurrence of character and all the numbers before and after hyphen
<p>I got into this situation to write a generic function which can extract only first occurrence of the character and all the number from a string.</p> <p>Input String (Say): ABC123-45DEF-GH67IJ9<br> Output String: A123-45D-G679</p> <p>I have finalized an approach but the complexity of the program is high. There are ...
3
1,261
Angularjs โ€“ Warn on unsaved changes in Master Detail Scenario
<p>I need a solution to warning about unsaved changes in a Master- Detail scenario. I was able to implement a solution by Sam that he created in September 2015 (<a href="http://www.samjhill.com/blog/?p=525#comment-28558" rel="nofollow noreferrer">http://www.samjhill.com/blog/?p=525#comment-28558</a>). This was in re...
3
2,582
Cells Format and subtotals with VBA
<p>I have created a VBA macro to give the format to Sheet in excel and create some subtotals. </p> <p>It works, but has a lot of room for improvement. </p> <p>Right now it takes very long. </p> <p>I know that using Matrix the processing time could be reduced to milliseconds.</p> <pre><code>Sub justsubttotals() She...
3
4,117
Output text file is not giving me underscore symbol
<p>I am reading a text file and making some alignment changes, also removing the space in 3rd column of text file and replacing it with underscore (_) symbol. <strong>But unfortunately.. when my output generated i can see the underscore symbol is not coming for no reason</strong>. Can ANYONE help me please, why its ha...
3
1,354
grid view button asp.net c#
<p>we want to accept only one record in gridview through accept button but in our code all requests are accepted if we are on last record.kindly let me know the problem in my code also provide the solution</p> <p>protected void ChangeStatus(object sender, EventArgs e) { var context = new healthCare...
3
1,166
How to make a list of PrimaryRowId and Matching RowIds
<p>In my previous question (<a href="https://stackoverflow.com/questions/14629325/select-a-distinct-rowid-based-on-series-of-trainnumbers">Select a distinct RowId based on series of trainnumbers</a>) I got a nice list of RowIds.</p> <p>Now I'd like to make that list complete and totally awesome! :)</p> <p>My raw data...
3
1,116
fancybox use divs instead of a href
<p>How can I use FancyBox or JQuery to create multiple pop-up DIVs that all use the same class (no IDs) on one page? For example, I have 50 products on a single page that all have the same class names.</p> <pre><code>&lt;div class="popup_box"&gt; &lt;!-- OUR PopupBox DIV--&gt; &lt;h1&gt;This IS A Cool PopUp 1&lt;/...
3
1,788
how to update a table with livewire after deleting a row
<p>I have a livewire component that shows a table of client contacts, each row of the table has a delete button which calls a confirm box which uses LivewireUI Modal (<a href="https://github.com/wire-elements/modal" rel="nofollow noreferrer">https://github.com/wire-elements/modal</a>). Upon confirming to delete this co...
3
2,884
Owl Carousel just show 1 item
<p>i have problem to show a owl carousel and its just show 1 item, i want to show 2 or more item this is my code</p> <pre><code>`function showNowPlay(data) { nowplay.innerHTML = '&lt;div class=&quot;home__carousel owl-carousel active&quot; id=&quot;flixtv-hero&quot;&gt;'; data.forEach(movie =&gt; { data.spl...
3
1,485
How can I replace the below while loops with something working on ISE?
<p>I'm working on my school project and after I finished it I realized that the code doesn't work on ISE. I can't imagine how should I change the algorithm in order to get what I need => multiple subtractions. </p> <p>I tried it on Active-HDL too, there's all fine right there. It successfully compiles and works. </p>...
3
1,166
How to Update data and Add new rows
<p>I have the <code>Invoice form</code> so sometime I want to update the data of the same Invoice number and add now rows.</p> <p>I want to update the data and new rows on the same <code>Invoice No</code>, on my code below is update and add <code>one row</code> instead of add more than one rows which i have selected....
3
1,205
Django template won't let my datetime field pop up or open
<p>I've been experiencing a weird error when using django for loop template, whenever I use my "{% for groups in groups %}" for loop, my datetime field won't open, however when I try to use other context for my loop, it just works. I also just simply copy pasted this modal from my other html page since it has the same ...
3
2,991
ComboBox Error: Collection was modified, enumeration operation may not execute
<p>I have a combo box that holds a list of values followed by a static "Add New" item. When I select that item, it loads an image and adds the image's file name to the list of values. When I do this, however, the WPF underlying code throws the "collection modified" exception.</p> <p><strong>XAML:</strong></p> <pre><c...
3
2,120
How to pass a button array into a function
<p>I'm trying to create a function that will send a serial string to a com port and change colors every time a button is pressed. </p> <p>I have figured out how to do this with one button, but now I want to make an array of 140 buttons that can all be passed through this function. </p> <p>My problem is that all 140 b...
3
1,599
Modify class so that ButtonField is unselectable (never has focus)
<p>How can I modify below class so that the button field is unselectable (never has focus), and therefore never highlighted ? </p> <p>Thanks</p> <pre><code>import net.rim.device.api.system.Bitmap; import net.rim.device.api.ui.Font; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.Ui; import net.rim...
3
1,545
Socket.IO Transport Close Trouble
<p>I'm having a lot of trouble with socket.io. I am coding this to be able to create a room, join it, and then use socket.io to play a game between the people. This is really just a coding challenge to see if I can code something using socket.io from scratch. The problem is that when one client disconnects, all of the ...
3
2,635
React Redux this.props always return undefined
<p>I'm now at React and I'm doing some apps to study, learn more about. Aand right now I'm trying to add the logged user info to redux state, but when I try to check the value of <code>this.props.user</code> my app always returns <code>undefined</code>.</p> <p>My reducer.js</p> <pre><code>import { LOG_USER } from '.....
3
1,283
Why update fails because of unique index while there isn't duplicate value?
<p>I guess this image explains everything:</p> <p><a href="https://i.stack.imgur.com/VVbrB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VVbrB.png" alt="enter image description here"></a></p> <p>See? I'm setting the value of <code>2</code>, but it says <code>0</code> is duplicate. Why? Where that...
3
1,066
Strange white rectangle boxes that appear and disappear on website
<p>There are strange white rectangle boxes that appear and disappear in a chatroom that I created. They randomly appear at the bottom and right side of the chatroom behind the scroll bars, and I am unsure of the cause. Possibly incorrect CSS of HTML? Inspecting the page does me no justice because the boxes do not show ...
3
1,122
Unable to get login to work using scala with Play Framework
<p>I am trying to create login functionality for a website built in the play framework. When credentials of an existing user is entered into the html view, and the submit (login) button is clicked the login page doesn't do anything.</p> <p>LoginController:</p> <pre><code> class LoginController @Inject() extends Contr...
3
1,140
Onsen UI - Toolbar is not fixed to top on Cordova WP Universal App
<p>I am developing a cordova application with onsen ui.</p> <p>I already found some problems that occur only on windows phone (i assume that this is the case because wp is not supported for such a long time) . But there is 1 problem that i really need to fix.It seems that the ons-toolbar element is not fixed to the to...
3
1,203
Get and store all changed values in data
<p>I am trying to create an "activity log" type thing on my server. I am using Angular and Mongoose on a node server. What I am trying to achieve is compare the request body with data stored in the DB by doing a deep diff.</p> <p>So, whenever an API is hit, I am running this function:</p> <pre><code>createActivityI...
3
1,380
how can i render an array using different styling according to a specific property in this case message.senderEmail
<pre><code> function AlignFeature(){ const [allMessages, setAllMessages] = useState([]); useEffect(()=&gt;{ MessageService.getAllMessages().then(res=&gt;{ setAllMessages(res.data); }); }, []); return ( &lt;Container&gt; &lt;Row&gt; &lt...
3
1,317
how to extract particular data using pig script from web crawled data (nutch)
<p>This sample crawl data using nutch 2.3.1 where i need to take title and urls internal links and external links attached with website any suggestion most welcome.</p> <p>I used this command to import data from hbase to pig</p> <pre><code>`data9 = load 'hbase://htest15_webpage' using org.apache.pig.backend.hadoop.hb...
3
3,232
React Native how to mock PixelRatio on 1 specific test
<p>I am having trouble testing my snapshot in react-native, to be more specific it's the PixelRatio I am having troubles with.</p> <p>Code speaks more than words - I've simplified the code and removed all the noise:</p> <p><strong>The component:</strong></p> <pre><code>const Slide = (props) =&gt; ( &lt;Image s...
3
1,131
Inserting new record from AngularJS using Web API
<p>Hi I'm a newbie in web development and I'm having some trouble in inserting new data in my database.</p> <p>First, there's an error in dbcontext.Tbl_Articles.Add(adto); It says, cannot convert WebAPI.Models.Articles to WebAPI.DataLayer.Tbl_Articles</p> <p>Another thing is, whenever I run my Web API, it says someth...
3
1,163
Token authorization in swagger in ASP.NET
<p>I am documenting the API of my application through Swagger, which works with validation through a session token, that is, through a username and password a token is generated for a certain time that allows the user to navigate the site. What I need is for swagger to capture this session token and place it in the hea...
3
1,356
Trying to understand the use of the populate method
<p>I see that one way we use populate is to put one document from another collection into a "parent" collection. I was just going through <a href="https://stackoverflow.com/questions/34984199/why-wont-my-refs-populate-documents">this</a> question and I was hoping someone could explain the answer to me better. And show ...
3
1,076