title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Any Better Way to Set ListBox Width Equals to Column Width
<p>i written following code. as i am new to vba. Can i get small version or alternative code to achieve the same result. i want to auto size column width with worksheet column used cells max length. i used dictionary method to store the max length of cells in a column and loop all the columns and store max length to di...
3
1,500
Not able to connect django1.11 with oracle11g
<p>I am not able to migrate project in linux. Dependecy:cx-Oracle==7.2.0 Django==1.11,oracle11g and python3.I am trying to connect with a server database.</p> <p>I removed a line <code>self.cursor.numbersAsStrings = True</code> from <strong>/work/sunlife_env/lib/python3.6/site-packages/django/db/backends/oracle/base.p...
3
1,595
Why my GZip unit tests are returning an exception?
<p>I have aproblem with testing my unzip method.</p> <p>My unit test method is like:</p> <pre><code>[Fact] public void UnzipData_CalledWithByteArrayParameter_ReturnsString() { _serializationService.CallerName = ""; byte[] array = new byte[] { 31, 139, 8, 0, 0, 0, 0, 0, 0, 11, ...
3
3,173
why < is much faster than !=?
<blockquote> <p>Problem : Consider the following algorithm to generate a sequence of numbers. Start with an integer n. If n is even, divide by 2. If n is odd, multiply by 3 and add 1. Repeat this process with the new value of n, terminating when n = 1. The input will consist of a series of pairs of integers i...
3
1,245
how to run test in spring mvc
<p>I'm trying to run some tests for my controller but somehow the @Autowire annotation is not working.</p> <p>Here is what I'm trying to do:</p> <pre><code>@WebAppConfiguration @ContextConfiguration("/WEB-INF/spring/app-config.xml") public class ClientsTest { private Client client = new Cliente(); @Test ...
3
1,526
Wanting to use a static method in a non static method from different classes
<p>I am very new to Java and making Android projects but I want to basically turn on &quot;do not disturb&quot; at a specific time. I have tried making sub class and making all the things static/non static. Nothing seems to be working. I need two extends which I cannot use in the same class. Is there a solution/better ...
3
2,885
How to resolve "Cannot add or update a child row" in MySQL?
<p>I have written a PHP script to interact with a MySQL database. It is fairly near to completion, but I am getting an error to do with foreign key constraints.</p> <p>I have a self contained function which should complete a MySQL transaction:</p> <pre><code>function doTransaction($dbConnection,$ticketId,$units,$t...
3
1,413
Incompatible pointer types passing 'struct NSArray *' to parameter of type 'NSArray *
<p>I was following a tutorial on calling objective-c code from golang. The tutorial is at this <a href="https://coderwall.com/p/l9jr5a/accessing-cocoa-objective-c-from-go-with-cgo" rel="nofollow noreferrer">link</a></p> <p>The code is as follows ( it is the same on the tutorial )</p> <p>main.go</p> <pre><code>packag...
3
2,096
Two instance variables in the class of a one dimensional array
<p>I'm hoping someone can help me out with a question that I've been stuck on for quite a while.</p> <p>Just to clarify the scenario. There is a show being held in a theatre that can hold 180 people. They allow online bookings that are written to a text file &quot;bookings.txt&quot; Individual bookings are single that ...
3
1,956
Java Spring Boot batch inserts show-sql showing seperate inserts
<p>I am using Spring Boot and am trying to insert Ingredients in bulk by uploading an Excel file in the frontend application. The Spring Boot API recieves a list of Ingredients but it is very slow on inserting. Updates go fast, but inserts go very slow.</p> <p><strong>What am I missing here??</strong></p> <div class="s...
3
3,355
How can I visualize the diffrent time intervals by choosing the diffrent modes of transport in my Shiny bar plot?
<p>How can I make my Barchart interactive? I want to see the arrival time by choosing the different modes of transport. I am able to run the app, however, it is impossible to make it interactive.</p> <p>The variable <code>Arrival</code> are time intervals. The variable <code>Mode</code> are modes of transport. The vari...
3
2,221
How do I import a list from a function in an imported file?
<p>I am attempting to create an RPG game and I am making the code more concise. I have come across a problem that I can't resolve, and I have also done some research on it, but I can't seem to fix it. </p> <p>I have my main code as <code>DragonFightingRPG.py</code> with my other files that I am importing in the same d...
3
1,267
How to avoid exception The process cannot access the file because it is being used by another process. in .net
<p>I am unzipping a.gz files by using the following code.Since i have huge number of files , I am using TPL tasks to run this code. But I used to get <code>.NET</code> exception:</p> <blockquote> <p>The process cannot access the file because it is being used by another process. </p> </blockquote> <p>How to correct...
3
1,221
Jquery, how do I enable a form button among mutliple forms
<p>I have two forms in a html page. I am trying to enable and disable submit button of first form when input value is not empty in same form. I am using jquery to do that, but it is just disabling the submit button and not responding in text input (keyup press). Please have a look on my code...</p> <p>Html code:</p> ...
3
1,464
Error using XMLReader in C# and XNA 4.0
<p>I'm trying to write a ContentTypeSerializer in XNA for Dictionaries of shared elements, and I'm almost there but have got an error when deserializing the dictionary xml, due to my lack of understanding of the XmlReader class.</p> <p>I use this function to serialize the dictionary (works fine):</p> <pre><code>prote...
3
1,809
How to display message when a user submits the form
<p>Hi I have the following code. I was just wondering how to add a message/popup to say "thanks for registering" if everything is successful. Here is the code and btw i am new the php. Thanks for your help</p> <pre><code>&lt;?php require("config.php"); if(!empty($_POST)) { // Ensure that the user fills out fiel...
3
1,256
Getting difference of a column from same table
<p>I have a table with data that is similar to this table below</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>id</th> <th>session_id</th> <th>user_id</th> <th>action</th> <th>log_time</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>1</td> <td>3</td> <td>join</td> <td>1642645048</td> </tr>...
3
1,597
How can I make a regex to find instances of the word Project not in square brackets?
<p>For example:</p> <pre><code>$lang['Select Project'] = 'Select Project OK'; $lang['Project'] = 'Project'; </code></pre> <p>I want to find only the instances of the word 'Project' not contained within the square brackets. </p> <p>I'm using ColdFusion studio's extended replace utility to do a global replace.</p> <...
3
1,037
Deserialize JSON array based on nested type attribute
<p>Consider this example JSON:</p> <pre><code>{ "sections": [{ "title": "Sign up", "rows": [ { "type": "image", "imageURL": "https://example.com/image.jpg" }, { "type": "textField", "value": "", ...
3
1,099
Android/Java object not garbage collected
<p>I am developing a simple pdf reader rewriting an existing example. My app has a custom view with two buttons next and previous. When the next button is clicked it downloads a pdf from the internet and shows it in the view. Each time the next or previous button is clicked the following showPdf() method is called. </...
3
1,556
Footer doesnt display at the right place on homepage of railsapp
<p>My footer displays nicely on my rails app except on my Home page.</p> <p>Here's my application.html file :</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;%= yield(:title) || "Wagon Rails" %&gt;&lt;/title&gt; &lt;meta name="description" content="&lt;%= (yield(:description) || ""...
3
3,859
Problems accessing storage from Lambda function in Amplify
<h2>What I want to do?</h2> <p>I want to create REST API that returns data from my DynamoDB table which is being created by GraphQL model.</p> <h2>What I've done</h2> <ol> <li>Create GraphQL model</li> </ol> <pre><code>type Public @model { id: ID! name: String! } </code></pre> <ol start="2"> <li>Create REST API wit...
3
1,585
Insert from one form to two tables using PDO
<p>How to insert a form to two MySQL Database using the PDO here is my code: <strong>pc_owner table:</strong> pcid pcname, pcphone</p> <p><strong>pc_wo table:</strong> woid, pcid, probdesc</p> <blockquote> <pre><code>&lt;?php include('core/init.php'); ?&gt; &lt;?php //Create DB Object $db = new Database; //Run Quer...
3
1,693
Azure issues listing blobs
<p>I am trying to list out and get the blobs in my container from azure blob storage in order to be able to download the file, and send the results via my API. I've followed the instructions microsoft has here: <a href="https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-list?tabs=dotnet" rel="nofollow n...
3
1,671
R, ggplot, How do I keep related points together when using jitter?
<p>One of the variables in my data frame is a factor denoting whether an amount was gained or spent. Every event has a &quot;gain&quot; value; there may or may not be a corresponding &quot;spend&quot; amount. Here is an image with the observations overplotted: <a href="https://i.stack.imgur.com/t412M.png" rel="nofoll...
3
2,925
svn error, access via apcahe, E170013: Unable to connect to a repository at URL
<p>I know there are many questions and answers about similar issues, but none have solved my issues so far.</p> <p>I have SVN 1.13 and Apache 2.4.54 running on Raspberry Pi OS (2022-04-04 bullseye) running on a Pi 3b+, the svn repos are on an external USB HDD mounted to &quot;/media/andy/seagate2tb&quot;.</p> <p>My dav...
3
1,554
With HTTPS URL image not load with Poster Grid
<p>I created one RSG Component and stored content using content-meta-data like below.  Inside a content-meta-data field is hdgridposterurl here, I put Both URL HTTP and HTTPS and Checked Roku side, It's working or not. Http is Working. But, Https is not Working. I also checked both URLs on a different platform. Both UR...
3
1,393
Redirect http to https is not working
<p>I want to redirect Http to Https. So for that I created a certificate using 'keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks -storepass password' this command. </p> <h2>pom.xml</h2> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt; &lt;art...
3
1,739
Display distribution list with aliases
<p>I want to make .csv file with distribution lists (and aliases) and its members. My input looks like below</p> <pre><code># distributionList zimbradladmins@example.com memberCount=0 zimbraMailAlias: zimbradladmins@example.com zimbraMailAlias: admins@example.com # distributionList monitoring@example.com memberCount=3...
3
1,295
How to load table dynamically on the checkbox value in gsp
<p>I am working on a table in gsp which i want to load dynamically on a checkbox value.. I need if the checkbox is unchecked than the table will show the following fields </p> <pre><code>Name age country status Tom 35 USA Confirm Nick 30 USA ready Alex 25 Canada Inprogress Johny 20 UK Waiting </...
3
1,189
Android - App is crashing when trying to save image
<p>I am new to Android and I hope I can find a solution here. On my activity I can take a picture and select it from the gallery. After I press the save button the app should save the image in the database. But all i get is the following <strong>error</strong>:</p> <pre><code>08-17 22:52:41.326 2683-2697/android.proce...
3
5,709
CSS background and background-image only shows up on chrome desktop broswer
<p>The image of a background: or background-image: not showing up on website, img src not showing up either.</p> <p>However, all pictures show up fine only on chrome desktop broswer, but they don’t show up on chrome mobile broswer. Some of the browsers I’ve tested and don’t show the images on my website are: chrome mo...
3
1,563
Convert old jquery auto complete with latest jquery autocomplete ui
<p>I have been trying to convert my autosuggest script from the jquery autocomplete 1.1 to the latest autocomplete ui but seems to be finding it difficult to do. would be glad if anyone could help. PHP code:</p> <pre><code> include( "dbconnect.php" ); $term = trim(strip_tags(strtolower($_GET['term']))); if ( !$term )...
3
1,312
Having to use a new NSPersistentStoreUbiquitousContentNameKey when migrating from iCloud to Local and then Local back to iCloud Again
<p>I have a scenario where my app currently in the App Store doesn't have iCloud enabled on it, but with the update I'm working on, iCloud will be there. The user can select whether to use iCloud right at the start of using the app as soon as it's been upgraded, and can also decide to turn this on/off within the App. <...
3
2,442
C# Winform event handler
<p>I have 2 constructors in my class:</p> <pre><code>public partial class Fiche_Ordre : Le_MainForm { public Fiche_Ordre() { InitializeComponent(); Constuct_Page(); } public Fiche_Ordre(string OrderID): t...
3
2,055
Placing components on the right and around other items in React problem
<p>Sorry for my atrociously bad title on this post.</p> <p>I would like to achieve something like this as my end goal (my figma mockup): <a href="https://i.stack.imgur.com/4kntk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4kntk.png" alt="my figma mockup" /></a></p> <p>But I don't know how to achi...
3
2,095
Why does my Makefile with pattern rules not create debugging symbols for main?
<p>I am using this auto-generated Makefile with pattern rules, that I oviously do not understand yet. I want to create debuggins symbols and then debug main, but it doesn't work. There is a <code>-g</code> flag. Adding <code>$(LDFLAGS)</code> statement above after <code>$(ODIR)</code> does not print one as expcted.</p>...
3
3,468
Getting Play button to play a stream link
<p>Just started using Ionic 4 and Angular so a very new beginner :)</p> <p>I bought a UI Template from code canyon but never realised I had to code the music playing part of it. Anyway I have been searching to get a stream playing but failed. I found a post which said to just use a HTML5 code to stream music. </p> ...
3
1,625
Form won't validate without ID main-contact form
<p>I have a kind of weird problem. I have a form which is a subscribe form for mail chimp. The form works perfectly if I don't have validation (When it says "Please fill this out" or "Please include an @ in the email")</p> <p>It also works if I had an ID <code>id="main-contact-form"</code> however then, the mailchimp ...
3
1,744
C++ Socket retrieve and send encrypted Data
<p>I got a small problem.. Currently im writing a small tool which connects to a Server, downloads some blowfish encrypted Data into a <code>char Array</code> <code>(char buffer[512])</code> and saves that Array into a file <code>(fstream ios::binary)</code>.</p> <p>Then later i reopen that file <code>(ifstream ios::b...
3
1,603
Fetch emails received on certain day from non-Well-known folder in shared inbox, Exchange 2016 EWS in C#
<p>I'm trying to fetch all messages from a user-specified date on an Exchange 2016 server using the EWS managed API in C#.</p> <p>I authenticate with:</p> <pre><code>public static void Login(string username, string password) { service.UseDefaultCredentials = false; service.Credentials = new WebCre...
3
1,126
JerseyClient SocketTimeoutException after less than a second to localhost
<p>Why do calls to another application running on the same machine (localhost) <em>sometimes</em> result in a SocketTimeoutException after less than a second? Calls to external endpoints on the internet timeout after 10 seconds roughly, and almost all calls to this application don't timeout.</p> <p>The application rece...
3
1,581
How to use log() transformation in a dataframe list and perform aov()?
<p>I hope someone can help me. I am trying to transform my <code>Weight</code> and <code>Height</code> data to follow a normal distribution and perform anova with it in each data frame. However, I cannot append a new column to the original dataframe with the transformed values. The <code>Person</code> and <code>Age</co...
3
1,151
Fixed Format Output w/ Column Data of Various Lengths
<p>XSLT v 1.0 Source XML</p> <pre><code> &lt;Vehicle&gt; &lt;Parts&gt; &lt;Part SN=&quot;1234567&quot; PartNumber=&quot;223232&quot; Build=&quot;2W345&quot; Manuf=&quot;K3E4&quot; Mater=&quot;12312&quot;&gt; &lt;Inspections ManufI=&quot;K3F4&quot;/&gt; &lt;Recalls ID=&quot;122...
3
1,522
Can't select microphone TargetDataLine. Seems, I can use only input that is default for my OS system
<p>I'm trying to read audio input from different microphones. I found very wired behavior. It seems, that whatever microphone I choose, I can grab sound only for microphone that is default for system. I know this, because sum of signals from both 'microphones' is similar, what I hit default system microphone. What am I...
3
1,588
Appropriate statistical test to analyze differences in slopes of time series data
<p>I have created the following plot based on air quality data over three years of observation, and would like to know if these slopes are different across the two time periods (March-June 2018-2019 average vs. March-June 2020): <a href="https://i.stack.imgur.com/J7eo3.png" rel="nofollow noreferrer"><img src="https://i...
3
1,270
NumberFormatException in Android
<p>I'm making an application in which the user can add Store departments and for those departments the ability to add the cities of where the departments are located. </p> <p>I keep on getting a NumberFormatException when I'm trying to add a city for a departement:</p> <pre><code>Caused by: java.lang.NumberFormatExce...
3
2,099
How to present Array Of addresses data from Web Api On GoogleMapView iOS Swift4
<p>I am try to get an array of addresses that are coming from webApi and load them on the googleMapView. First I have to convert the address into coordinates and then I am doing that. So I don't know where I am doing.. I am fetching data and I am using model classes... I might be doing this very wrong...</p> <p>I am b...
3
2,063
Docker node build - babel preset and deep module errors
<p>After resolving several extra babel presets required (to what my npm scripts built), then an <code>unknown plugin "add-module-exports" in /node_modules/react-dropzone/.babelrc</code>, I'm now encountered a requirement to <code>npm rebuild node-sass --force</code></p> <p>Also, webpack is taking a long time build, 3-...
3
1,040
breeze error: Cannot read property 'toODataFragment'
<p>I have the following BreezeController</p> <pre><code>[BreezeController] public class BreezeController : ApiController { readonly EFContextProvider&lt;MyContext&gt; _ContextProvider = new EFContextProvider&lt;MyContext&gt;(); [HttpGet] public string Metadata() { return _ContextProvider.Metad...
3
1,095
consumeAsFlow causes app to crash on configuration change
<p>I have an activity which loads a list usign paging 3.</p> <p>I use a channel to emit search text and then consume it as flow to apply transformations to get a flow of List of items</p> <p>when the app under goes a configuration change I get the following error</p> <pre><code>ReceiveChannel.consumeAsFlow can be colle...
3
1,939
React ocation.pathname typerror: Cannot call location.pathname in one file, but can in other file
<p>In one of my Components, I can easily call a "this.props.location.pathname". But when I try this in another component I get </p> <blockquote> <p>TypeError: Cannot read property 'pathname' of undefined</p> </blockquote> <p>And I can't seem to find out what is different..</p> <h2>WORKS:</h2> <pre><code>import Re...
3
1,044
How to fix Entity Framework Core "Argument types do not match" with Linq Select projection
<p>When attempting a straight forward projection using Entity Framework Core and Linq, I am getting an "Argument types do not match" exception.</p> <p>I have looked into possible causes and have narrowed it down to the <code>Select</code> that is causing the error (see below). There is a <a href="https://github.com/as...
3
1,439
Bash OpenSSL is not equal to php openssl_encrypt value
<p>I am trying to reach the same value of encryption in bash as it is from php , with no success .</p> <p>Here is my php script</p> <pre><code> $message ='{&quot;coupon_key&quot;:&quot;011205358365345679&quot;,&quot;location_id&quot;:&quot;288&quot;,&quot;device_key&quot;:&quot;test_1234&quot;}'; $key = &quot;pa...
3
2,173
I'm Making Drop Down Menu, But It Shows Vertically Incorrectly
<p>I found a video that explains how to create drop down menu, as the headlines should appear horizontally and sublines should appear vertically, with me the head &amp; sub lines shows vertically! I checked the code many times, but I can't find where is the problem in the code!</p> <p>I'm beginner to <code>HTML5</code...
3
1,272
Errors in chrome console
<p>I'm creating a website and it works fine. I cannot find any issues on html or javascript and dreamweaver is not showing errors either. But in chrome console there is about 71 errors. </p> <blockquote> <p>XMLHttpRequest cannot load <a href="https://www.gstatic.com/mapspro/_/js/k=mapspro.gmeviewer.en.YzFInGpetnI.O...
3
1,169
Linkprediction using Hinsage/Graphsage in StellarGraph returns NaNs
<p>I am trying to run a link prediction using HinSAGE in the stellargraph python package.</p> <p>I have a network of people and products, with edges from person to person (KNOWs) and person to products (BOUGHT). Both people and products got a property vector attached, albeit a different one from each type (Persons vect...
3
1,495
Flutter Build - Gradle task assembleDebug failed with exit code 1
<p>I added a few firebase dependencies to the project. <strong>Pub get</strong> works fine with <strong>Process finished with exit code 0</strong>. But I cannot build the app cause of the below error. What is The shrinker may have failed to optimize the Java bytecode? Please, anyone can tell me the correct reason? Thes...
3
2,651
Powershell - get diff of two files without consuming huge amount of memory - is there any alternative c# or c++ API?
<p>I have two large files to compare (over 10 GB). The below command works fine for small files but seems to eat up RAM space on my machines.</p> <p>How can I get diff of two files without consuming huge amount of memory ?</p> <p>Any thoughts would be really appreciated.</p> <pre><code>robocopy.exe C:\Folder\ C:\Folder...
3
1,119
(node:4) UnhandledPromiseRejectionWarning: Error: Incorrect login details were provided. (hosting a discord bot)
<p>when ever I run my bot I get the error bellow Ik the token is valid and it worked on glitch fine</p> <p>my bot code: <a href="https://github.com/legouju/funtimesbottrytwo/tree/master" rel="nofollow noreferrer">https://github.com/legouju/funtimesbottrytwo/tree/master</a> (srry if im bothering u guys, im new to herok...
3
2,491
LassoCV UnboundLocalError: local variable 'best_l1_ratio' referenced before assignment
<p>The same code and dataset I'm using now was working fine before I did a fresh install of Anaconda. Using <code>Lasso</code> instead of <code>LassoCV</code> seems to prevent the error. I'm not sure if this is a new/reintroduced bug or if I'm doing something stupid without realizing it. Any help is greatly appreciated...
3
1,375
UITableView - set up tableview with Hpple data
<p>I get some data from an xml file on the web using hpple. In my xml file I have a bunch of different sections that I get data from (About 20). </p> <p>Heres the code I am using to get the data </p> <pre><code>- (void)getMenuItems:(NSString*)url{ NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithSt...
3
1,691
Prefilling company tag while creating envelope using REST API
<p>Below the request xml I am using to prefill Company tab. Based on this <a href="https://stackoverflow.com/questions/19507959/docusign-creating-envelopes-through-templates-with-the-rest-api-and-prefilling">Docusign: creating envelopes through templates with the REST API and prefilling tags</a> I changed rolename to s...
3
4,735
Jquery Default Selection on pageload
<p>I've set up a custom google maps with custom image with filter options. The filter options get triggered when the input of</p> <pre><code> &lt;form id="sizer" action="#" method="get" accept-charset="utf-8" value="1"&gt; &lt;select id="selector"&gt; &lt;option value="1"&gt;Khenarthis Roost&lt;/option&gt; &l...
3
5,760
emberjs in the console I see that records are created but they are not displayed by handlebars
<p>First many <strong>thanks to Mike Grassotti</strong>, for helping in the IRC. He helped resolved the bugs with the save method.</p> <p>My problem is that in the console I see that records are created but they are not displayed.</p> <p>I am using ember-data to create new record. The <strong>addComment function</str...
3
1,191
Method is still running after closing window
<p>I'm having trouble trying to undersand how the window objects work. I have a real time plot on a secundary window via matplotlib. This plot updates every second with the new calculated values. What I expect is the method to stop running whenever I close this 2nd window and restarts when I reopen it. I'm able to rese...
3
1,357
R Error in py_get_attr_impl(x, name, silent) : AttributeError: module 'tensorflow' has no attribute 'placeholder'
<p>I am trying to Implement Auto Encoder Dimension Reduction from Tensorflow in R, in this example:</p> <pre><code>library(dimRed) library(tensorflow) fraud_data &lt;- read.csv(&quot;fraud_data&quot;) data_label &lt;- fraud_data[&quot;class&quot;] my_formula &lt;- as.formula(&quot;class ~ .&quot;) dat &lt;- as.dimRedDa...
3
1,343
OpenLayers: Creating NDVI raster from TileImage source
<p>I'm trying to recreate part of the example given at <a href="https://openlayers.org/en/v4.6.5/examples/raster.html" rel="nofollow noreferrer">https://openlayers.org/en/v4.6.5/examples/raster.html</a>, with a few adjustments: </p> <ul> <li>I'm using a TileImage source rather than the Bing Maps Aerial layer</li> <li>...
3
1,323
Handle with d3.json
<p>I'm trying to make a d3 scatterplot recurring to json data. I know that d3 has d3.json to load json data but my code isn't working. I'm not that good dealing with js (it's my first time with this language), that's why I need help in this. Basically, I need to plot this data (date in xAxis and IADP_mGycm2 in yAxis):<...
3
3,214
Programmatically creating buttons at different locations
<p>I programmatically created UIButtons and for them to appear at different locations on the screen. I tried to prevent collisions however they still occur in some instances during testing. The code I'm using is below, any additional logic I have to consider? </p> <pre><code>class PlayViewController: UIViewController ...
3
1,463
Calculating data in tables with Javascript/Jquery
<p>So I'm trying to do some calculations inside a HTML table with Javascript/Jquery. There are 7 columns in 1 table and each column should do their calculations based on the values that are in the cells in those columns.</p> <p>I did manage to make this work for one, but once I try coding it so it works for every colu...
3
3,598
How to get the relationship between an embedded document and its media file from Word using OpenXML
<p>When a Word document contains an embedded Office document it creates a media file to display the name and logo of the document and it embeds the Office document. I am failing to relate the media file to the document using OpenXML.</p> <p>I can get the embedded documents and media files using the following code, but...
3
1,500
GraphQL WS server doesn't appear to be running
<p>I'm trying to get GraphQL Subscriptions working (without Apollo) using these libraries:</p> <pre><code>import { graphqlHTTP } from 'express-graphql'; import { WebSocketServer } from 'ws'; import { useServer } from 'graphql-ws/lib/use/ws'; </code></pre> <p>I've been reading the source of these libraries and everythin...
3
1,372
How to override Material UI styles using classes using Emiotion
<p>I am trying to override the default styles in a Mui component using the <code>classes</code> prop and passing the css into it. So far I have been unsuccessful and I'm not sure what I have wrong.</p> <p>The motivation for not using <code>makeStyles</code> is to keep our files cleaner and Emotion is faster.</p> <p>I ...
3
2,240
SwiftUI technique to update UINavigationBarAppearance.backgroundImage dynamically?
<p>I am implementing a gradient background for the top navigation bar in SwiftUI using a standard <code>NavigationView</code>. For the gradient I am using a <code>UIGraphicsImageRenderer</code> to create a gradient image which I then assign to the <code>backgroundImage</code> of <code>UINavigationBarAppearance</code>. ...
3
1,669
How I can get the AspNetWebSocketContext from the current context?
<p>I am implementing ASP.net websocket server using Microsoft webscoket. I have a function which sends data to the client. Below is the class.</p> <pre><code>public class MyWebSocketHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context.IsWebSocketReques...
3
1,037
File name too long while uploading image in database
<p>I have written a line of codes to upload an image in the database, however, trying to upload image gives me this error</p> <blockquote> <p>File name too long</p> </blockquote> <p>Following is my code to upload an image to database:</p> <pre><code>if($_SERVER['REQUEST_METHOD']=="POST") { $pid ...
3
1,802
i want to display it according to category but i'm stuck
<p>i want to display it according to category but i'm stuck..is it ok to use both jquery and php at the same time..sorry im just a noobie..</p> <pre><code>&lt;select name="category" id="category" &gt; &lt;option value="All Student"&gt;All Student&lt;?php echo "(".$count.")";?&gt;&lt;/option&gt; &lt;option value="By Na...
3
1,617
Using Pivot to remove duplicated results adding new columns
<p>I have the following table</p> <p>[_teste_calendario_Table]</p> <p><img src="https://i.stack.imgur.com/vzhya.png" alt="1" /></p> <p>and when &quot;Monstrengo&quot; has the same value, I'd like to make a pivot, adding new columns &quot;De1&quot;, &quot;Ate1&quot;, &quot;Vencimento1&quot;, &quot;De2&quot;, &quot;Ate2&...
3
1,178
Error with retrieve / save custom object in core data
<p>I have developed an ios application that allow users to edit a musical score sheet and now i'd like to implement data persistence to prevent the discarding of changes.</p> <p>Reading on ios documentation i've noticed that exists different ways to improve data persistence and I believe that the best way for my applic...
3
1,691
Read node of unusual xml - XmlDocument - Expression must evaluate to a node-set
<p>I've read and tried many threads - <a href="https://stackoverflow.com/questions/17356139/xml-errorsystem-xml-xpath-xpathexception-expression-must-evaluate-to-a-node-se">this answer</a>, <a href="https://stackoverflow.com/questions/157044/how-do-i-resolve-the-error-expression-must-evaluate-to-a-node-set-when-checkin"...
3
1,364
Creating dependent extjs grids
<p>I just started to study extjs 6. How it is possible to implement dependent grids when the main displays data from the table, when clicked on, in the second grid, the dependent entries from the second table are displayed.</p> <p>What I realized at the moment: I created a grid, I get the records from the "Operation" ...
3
2,854
How to pass the values inside the div to another div in angular js
<p>I am trying to generate the angular material cards dynamically using ng-repeat.There are some values which i fetched from json array and displayed in the 1st div.After clicking on the first div it should go to next div and display some of the data which i fetched earlier to the 1st div.</p> <p>The html page</p> <p...
3
6,314
Ionic 5 - Angular and Server Side Redendering (SSR). Error: Cannot redefine property: contructor
<p>I'm trying to add SSR to a web aplication made in ionic 5 with angular with no luck...</p> <p>I have installed @nguniversal/express-engine and @ionic/angular-server and all the server files are created even command <strong>npm run dev:ssr</strong> is compiling succesfully.</p> <p>The problem arrives when I navigate ...
3
1,886
can the train_auc be influenced by the valuation data in fitting xgboost-model?
<p>I am fitting an XGBoost model with this code on a grid of hyperparameters:</p> <pre><code> set.seed(20) model_n &lt;- xgb.train(data = xgb_trainval, tree_method = &quot;gpu_hist&quot;, booster = &quot;gbtree&quot;, objective = &quot;binary:logis...
3
1,264
How to correctly highlight menu items with a jquery ajax menu?
<p>I have an ajax menu. My goal is to highlight menu items when clicking on them, but also when changing url. On the one hand, I have this code for the click:</p> <pre><code>$('#menuList li a').on('click',function(e){ $('#menuList li a').removeAttr('aria-current','page').parent().removeClass('activeMenuItem'); $(th...
3
1,591
Is there a way to use the lead function to figure out the first row that meets a condition?
<p>Hi I have a dataframe as such,</p> <pre><code>df= structure(list(a = c(1, 3, 4, 6, 3, 2, 5, 1), b = c(1, 3, 4, 2, 6, 7, 2, 6), c = c(6, 3, 6, 5, 3, 6, 5, 3), d = c(6, 2, 4, ...
3
1,079
Using table type param in SQL server stored procedure
<p>I use table type param (@listdraftIds) and split data in table to compare with data in DB but the error is as below. Help me, thank you.</p> <pre><code> CREATE OR ALTER PROCEDURE [dbo].[sp_sel_contract] ( @listDraftId nvarchar(max), @Page int, @PageNumber int, @TotalRecord in...
3
1,317
how can I login with facebook from localhost. (Symfony)
<p>I am using symfony. I have to create programme for facebook login. I created on class and in that create two function first is for generating link and other is callback function. <br><br> In controller created one action name is indexAction, in that object of class present. But when we run programme using link ...
3
2,289
c thread concurrency and memory mix up
<p>I have a multithread program in C. there is only 1 thread function (thread_read_file), that will read a file content into a variable from a struct. this function has an automatic variable thiscontent, in which the content of the file should be stored using fread.</p> <p>the main program is executing 4 threads to re...
3
5,838
Swift - Parse certain data
<p>Need to extract the data of <code>desc</code> from the below API response. From that i need to extract every <code>a</code> and <code>b</code>, so that i can use that in for a math addition app.</p> <pre><code>data from the server [ { "id": 226, "name": "chorename", "desc": "{\n \"que...
3
1,773
Rhino debugger - can't hit a breakpoint?
<p>I have this legacy web application on inspection, that utilizes Rhino to script some database import tasks. Scripted task is executed properly. </p> <p>However, I can't seem to hit a breakpoint in the JS script file. I'm not even sure if it's possible to debug JS script this way, so if anyone can give some more in...
3
1,193
Android - Error parsing data - Foursquare - NullPointerException
<p>I'm trying to retrieve Foursquare Venue List. I have an async class to parse the Json, and another to create and show the list. But I have some errors like parsing error, nullpointerexception.. And I don't know how to fix this. The Json I wnat to parse come from the foursquare url. this for exemple <a href="https://...
3
4,118
NullPointerException when using Slider.setShowTickLabels method in JavaFX
<p><code>NullPointerException</code> when using <code>Slider.setShowTickLabels</code> method.</p> <p>I'm using <strong>JavaFX SDK 17.0.1</strong> and <strong>JDK 11.0.13.8</strong></p> <p>Windows 10</p> <pre><code>public void start(Stage window) { BorderPane pane = new BorderPane(); Slider slider = new Slider(...
3
1,727
Import an OpenSSL ECDSA PEM private key and sign it
<p>To generate a private and public key with OpenSSL I have run</p> <pre class="lang-none prettyprint-override"><code>openssl ecparam -genkey -name secp256k1 -out private-key.pem openssl ec -in private-key.pem -out public-key.pem -pubout </code></pre> <p>I upload the public key to the remote server. Then import the <co...
3
1,226
Kubernetes - 'ERR_TOO_MANY_REDIRECTS' error
<p>I am using ingress-nginx for my kubernetes cluster with AWS tls certificate .</p> <p>Both the <strong>frontend</strong> and <strong>backend</strong> services are running inside the cluster.</p> <p>I am <strong>able to view the frontend</strong> but when it interacts with backend it throws the error :</p> <pre><code>...
3
1,202
404 - My jsp cannot find servlet
<p>I would like to call my servlet from my jsp, and my server return with 404 error message. Could anybody help me please?</p> <p>JSP - regsiter.jsp :</p> <pre><code>&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%&gt; &lt;%@ taglib prefix="c" uri="http://java.sun.com...
3
1,375
background-color not stable in one position
<p>I'm customizing the look of Slick Slider.</p> <p>I have a grey background I created on <code>.media-slider</code> that has a certain height and I position arrows to align with the top of the grey background:</p> <p>Here is the grey background: </p> <pre><code>.media-slider-wrap .media-slider { position: relativ...
3
5,579
Why is my program writing to the same line in .dat file
<p>I am creating a library Management system. The system is meant write and read from a .dat file. However the system is having problem writing the user input into the dat file. It is meant write the book name, author name and the book barcode on the same line and then when the user enters another book its meant to add...
3
1,514
XML dataset transformation
<p>Hi I am new to XSLT i want to transform the Xml Dataset where student name is mapped from a xml where there is a dataset of student name and roll no. classwise.</p> <p>I want to use a xslt but i dont want to add all the tags just the column name tag which is to be mapped and rest other columns as it is.</p> <p>he...
3
1,857