title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Is the domain model/JPA entity model supposed to create a well-designed database table structure?
<p>Let's assume the domain model of an application that is supposed to be built from scratch is described as follows:</p> <p>A Person might live at an address. A Person can own multiple cars.</p> <p>If I had to design the database first, I would probably come up with the following database design (normalization, casc...
3
1,240
How can I group users into sessions in a node.js draw application?
<p>I made a draw app in node.js and socket.io recently. It works fine but all things drawn by a user will be seen by all users. I want to add the concept of sessions so the things a user draws will only be seen by people in the same session. How can I do it?</p> <p>Here's the server code I use:</p> <pre><code>var exp...
3
2,879
AjaxDoc - how to configure?
<p>i want to document my project. Everything is working fine, but i cant get AjaxDoc working.</p> <p>Please, could somebody write me some short tutorial how to use them?</p> <p>I have SHFB integrated in Visual studio. Then i downloaded the WebApp project from <a href="http://ajaxdoc.codeplex.com/" rel="nofollow">http...
3
1,126
Remove From Cart operation not rendering anything
<p>I got an issue with my Ajax. When I clicked on the Remove From Cart, The ajax seems not rendering anything. Any hint? Here is my code:</p> <p>Index.cshtml</p> <pre><code> @model Tp1WebStore3.ViewModels.ShoppingCartViewModel @{ ViewBag.Title = "Shopping Cart"; } &lt;script src="/Scripts/jquery-1.8.2...
3
2,256
java.io.EOFException from Cassandra when doing select
<p>Cassandra 2.06, Oracle Java version "1.7.0_51", Linux Mint 16</p> <p>I have a cassandra keyspace with about 12 tables that are all the same. </p> <p>If I load 100,000 rows or so into a couple of those tables in Cassandra, it works fine. </p> <p>If I load a larger dataset, after a while one of the tables won't do ...
3
1,476
How can I get one object when we select object from dependent dropdown list in django
<p>(I am working on dependent dropdown list in Django) I have two dropdown lists first is Company and second is Car. when I select company Name from first dropdown list like Toyota all cars are coming related to Toyota Company, when I select any car from second dropdown (Car Dropdown) then it's showing nothing against ...
3
3,484
Apply a weighted decay that changes over time in Python
<p>I have a dataframe in Python that looks like the one below:</p> <p><a href="https://i.stack.imgur.com/igjPO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/igjPO.png" alt="enter image description here" /></a></p> <p>I want to calculate the <code>dnf_rate_weighted</code> so that there's a 0.95 deca...
3
1,376
instance openstack unreachable gatewaye external network
<p>I have setup an ‍openstack with this structure . (kolla-ansible [&quot;wallaby&quot;])</p> <p><strong>My servers are on esxi.</strong></p> <pre><code>Controle node: 192.168.8.13 compute node: 192.168.8.5 neutron node: 192.168.8.6 storage node: 192.168.8.3 </code></pre> <p>kolla-ansible config (<strong>global.yml</st...
3
1,450
What is the equivalent of my openssl cmdline in C?
<p>I'm trying the implement the following openssl command line in C: </p> <pre><code>openssl enc -aes-256-cbc -d -in /tmp/out_enc -K \ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \ -iv 0 -nopad -p </code></pre> <p>Output of the command line: </p> <pre><code>key=AAAAAAAAAAAAAAAAAAAAAAAAA...
3
1,113
Not getting the response
<p>i am creating a application in which i send some parameters to my web service right now it is running on local host and it gives me json response. Somehow it is not working after this line <strong>HttpResponse httpResponse = httpClient.execute(httpPost);</strong>. Can anyone help please. ps. my webservice is working...
3
2,251
Received bytes from client on wrong order
<h1>Problem: packages are sent with the correct format, but received wrongly</h1> <p>I've been doing this assignment for a couple of hours from now and I'm struggling to understand why is this problem happening:</p> <p>Basically, I need to do the following steps:</p> <ol> <li>Read 500 bytes from a file</li> <li>Pack th...
3
1,263
Unable to Upgrade A Recipe for a Meta-Layer in Yocto Krogoth
<p>I have a layer <a href="https://github.com/shantanoo-desai/meta-canboat" rel="nofollow noreferrer"><code>meta-canboat</code></a> which has a recipe <code>canboat_1.0.0.bb</code> in it.</p> <p>I am using the <code>krogoth</code> version for Yocto.</p> <p>When I tried using <code>devtool</code> in my upgrade workflo...
3
2,159
Add table row dynamically with JSON
<p>I am having difficulty to add new table row with JSON.</p> <p><strong>Situation</strong></p> <p>Currently I am programming drag &amp; drop function. Once file uploaded, file information parse into JSON and return to the View page. What I want is that I want to add new table row dynamically with JSON file informati...
3
1,639
how to get list of devices for class device with only getter and parameterize constructor
<p>I am traversing the Xdocument and getting the attribute value for device name and IP and would like to get a list of device with device name and IP.</p> <p>My Device class has only getter and parameterize constructor,</p> <pre><code> public class Device { private string _deviceName; private string _ip; ...
3
1,109
Python error 'object string has no function'
<p>As a relatively new programmer, I decided to make a small text adventure as my first project. It works fine, except when you try to go north. I am getting the error posting above. I believe it has to do with the variable location, but I'm not sure. </p> <pre><code>import random import os import time os.system('c...
3
1,586
Can not delete realm object on NavigatorIOS right click action
<p>I am trying to add a single sign on feature in a react-native app. I am using realm for data persistence. It is working fine with sign in process and stores data when user is login in fist time. But I want to remove user object from local storage when I click on logout button in navigator top right corner. </p> <p>...
3
1,092
Insert into boost::BIMAP using BOOST::associative property map ... failed
<p>With reference to my previously asked question about boost::bimaps and boost associative property maps interface <a href="https://stackoverflow.com/questions/21654594/using-boostassociative-property-map-with-boostbimap-interface/21660622#21660622">here</a>, I want to use Put and Get helper functions for my bimap. <...
3
1,093
when user CloseAd then new Activity Start for multiple button [Facebook Interstitial Ad]
<p>I have multiple buttons on screen. I want to show <code>Interstitial Ad</code> when user click on <code>button</code> and when <code>Ad Closed</code> then go to new <code>activity</code> via intent. <strong>How can i do it? with facebook audience network.</strong></p> <blockquote> <p>For Admob this answer help a lot...
3
2,242
Weird Buttonset behavior
<p>I have:</p> <pre><code>&lt;div id="wid_weekdays"&gt; &lt;input type="checkbox" name="weekday[]" checked="true" id="weekday1"&gt; &lt;label for="weekday1"&gt;MO&lt;/label&gt; &lt;input type="checkbox" name="weekday[]" checked="true" id="weekday2"&gt; &lt;label for="weekday2"&gt;TU&lt;/label&gt; ...
3
1,304
Scrapy: Same Xpath for different fields
<p>I am trying to scrape different category products from <a href="http://www.galaxus.ch" rel="nofollow noreferrer">www.galaxus.ch</a> using scrapy. To render the HTML I used Splash and Lua script. To read the excel file I used pandas. Till now my script is working fine. Here is my code_</p> <h1>read_excel</h1> <pre><c...
3
1,767
How can I solve this arithmetic puzzle? My solution is too slow after n = 14
<p>Given numbers 1 to 3n, construct n equations of the form <code>a + b = c</code> or <code>a x b = c</code> such that each number is used exactly once. For example:</p> <pre><code>n=1 =&gt; 1+2=3 n=2 =&gt; 1+4=5, 2x3=6 n=3 =&gt; 4+5=9, 1+7=8, 2x3=6 </code></pre> <p>The question is, does a solution exist for every n?</...
3
1,421
ACTION_VIEW and FileProvider - how to open html file from sdcard in browser
<p>I could not find a smart solution to my problem and that is why I decided to write to you good people. I have a question for your regarding FileProvider and ACTION_VIEW, namely, I save the html file this way:</p> <pre><code> File sdcard = getBaseContext().getExternalFilesDir(null); File dir = new File(sdcard....
3
1,038
Chrome Extension API Calls order and DOM Information
<p>I'm working on an extension that is supposed to extract information from the DOM based specific classes/tags,etc, then allow the user to save the information as a CSV file.</p> <p>I'm getting stuck on a couple of places and haven't been able to find answers to questions similar enough.</p> <p><br><br> Where I am tri...
3
1,459
How do javafx multithreading execute sequentially?
<p>I don't know if there are any other good ways to achieve the results I want, thank you.</p> <p>I have a requirement, according to the URL, create multiple webview threads, and execute them in order, such as thread execution, then trigger thread two execution, and so on, I use the synchronized (lobject) method, but ...
3
1,807
I built a spark cluster myself. When I read the parquet file on s3, I have an error: IllegalAccessError
<p>error:</p> <pre><code>Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.hadoop.metrics2.lib.MutableCounterLong.&lt;init&gt;(Lorg/apache/hadoop/metrics2/MetricsInfo;J)V from class org.apache.hadoop.fs.s3a.S3AInstrumentation at org.apache.hadoop.fs.s3a.S3AInstrumentation.s...
3
1,577
Why merge sort with multiple strings using strcmp is not a proper method
<p>I am trying to external merge multiple files that contain sorted string(base on strcmp) but I encounter a problem when using external merge sort .</p> <p>It seems that my merge sort method is not properly functioning , though the data is proper read into the<code>mergeSort()</code>,and the algorithm is just a typi...
3
1,716
Query optimization - indexing
<p>I use the following script for inserting data into a SQL Server table. </p> <p>All the columns from <code>TempCdbSap</code> are <code>nvarchar</code>, this means all the join are made with nvarchar columns. <code>Amount</code> columns also needs a convertion to <code>decimal</code>.</p> <p>I also have a noncluster...
3
1,108
Popup never loses focus
<p>I'm having a problem with my popup. When the user clicks the profile, I want to display a popup.<br> This already works but the popup doesn't close when it loses focus.</p> <p>I've tried to set the stayopen property to false but then the popup shows up for about half a second and then immediately closes.</p> <p>I ...
3
8,949
PDF Merge using Itext7 throwing NullPointerException
<p>We have a requirement to merge multiple pdf documents and I am using Itext7 to achieve this. I have around 20k files to merge and I am doing them in chunks. During the merge process I am getting below exception. Can someone help to figure out the issue</p> <pre class="lang-none prettyprint-override"><code>2022-04-21...
3
1,693
Need help about sending variable from chrome extension to python
<p>i wanted to make a small script that download &quot;maps&quot; automatically when the user open the ingame link. Once the link Open in chrome, the extension get the current URL and send it to python(this is where i'm stuck right now) and then close the tab if successful (since it will fail if the python script isn't...
3
1,362
keycloak spring boot always receives Anonymous Authentication token
<p>Im using keycloak spring boot adapter version 10.0.2 and I am trying to get the username using the authentication token, for that I created a web filter and trying to get the Principal but although the user is authenticated I only get Anonymous user like this:</p> <pre><code>org.springframework.security.authenticati...
3
4,226
Error in quantile.default(x$residuals) :missing values and NaN's not allowed if 'na.rm' is FALSE -R
<p>I am receiving this error when running a zero-inflated negative binomial: <code>Error in quantile.default(x$residuals) : missing values and NaN's not allowed if 'na.rm' is FALSE</code></p> <p>I read other posts where this occurred; some suggested it might be because of NAs in the data, others suggested that the vari...
3
3,280
Submitting a dynamic form in react js using php
<p>The current situation: I have a dynamic form, which I made using ReactJS, so you can add/delete parts of the form and I can not predict how many parts there are going to be. I'm saying parts and not input, because the form consists of different parts(divs), that contain several inputs. All divs contain the same amou...
3
1,438
List.js dropdown select- is fuzzy search possible?
<p>I'm trying to use List.js's fuzzy search with a dropdown selector. The reason is I have a project to make an event itinerary searchable by presenter. The problem is, there are multiple presenters for each session, and the number varies with each session. There is also some overlap, as you'll see in my code. I want ...
3
2,220
Getting movement speed to continue being useful after stopping
<p>Coming up with a title for this question was really really difficult. So I'm making a game, and I have a method that is used for handling movement called <code>handleVelocity()</code>. The way it works, is that in my game, it updates every tick, looking for character movement. If character movement is below 1 or -1,...
3
2,711
How to configure a websocket service in Apache Knox with basic authentication
<p>I managed to configure a websocket service in Knox which for test purposes is <code>ws://echo.websocket.org</code></p> <p>Here are my configuration files:</p> <p><strong>service.xml</strong></p> <pre><code>&lt;service role="ECHOWS" name="echows" version="0.0.1"&gt; &lt;policies&gt; &lt;policy role="weba...
3
1,127
Unable to use a grid within a DataTemplate
<p>I am unable to use a grid within a DataTemplate. Specifically, text does not get rendered when using a grid.</p> <pre><code> &lt;ListView ItemsSource="{Binding Services}"&gt; &lt;ListView.ItemTemplate&gt; &lt;DataTemplate&gt; &lt;ViewCell&gt; &lt;ViewCell.V...
3
1,168
confused over proper way to use json
<p>I'm new to jquery and just started reading up on json early last night. <strong>I have a working ajax call that passes simple data to a php script, works on the data and returns a single value.</strong> Works great.</p> <p><strong>I want to add the passing of arrays and non array data back and forth</strong> and a...
3
1,416
Fetching Nested JSON Arrays with retrofit?
<h2>I searched a lot in Google to find a way to use Nested Json Arrays with Retrofit, but it is useless Most of what I found talks about using JSON Objects with retrofit And my main issue is how to use the nested Array list inside call method to get data from the server I have this JSON</h2> <pre><code> { &quot;o...
3
2,369
iOS In app purchase : request latest cancellation date and number of cancellations
<p>I am working with iOS In-App Purchase.</p> <p>I would like to request the latest cancellation date and the total number of cancellations preferably with 100% correct result.</p> <p>I am using Apple's verifyreceipt call </p> <pre><code>( https://developer.apple.com/library/content/releasenotes/General/ValidateAppS...
3
8,691
Bad Request model derivative autodesk api when translating dwg to obj format
<p>I want to use autodesk model derivative api to show DWG file in forge viewer. In</p> <pre><code>result = _client.Execute(objReq); if (result.StatusCode == System.Net.HttpStatusCode.OK || result.StatusCode==System.Net.HttpStatusCode.Created) { } </code></pre> <p>I get badrequest...
3
3,457
update failing using PDO with mysql
<p>insert select and delete are all working but my update is failing. I first select a single record into a form, the values from that record are populating the form, so far so good. However when I send the form I get the following error:</p> <blockquote> <p>Fatal error: Uncaught ArgumentCountError: Too few argume...
3
2,651
XSLT Exclude Specific Tags
<p>I have a problem i am trying to resolve in an XSLT but i an unable to find a solution. The example below is related to a payment system it is adding items to a basket then removing them. The out XML provides a audit trail of actions conducted on a basket.</p> <h3>Senario:</h3> <p>Add Item (Id 1)</p> <p>Add Item (Id ...
3
2,224
Form validation doesn't works in bootstrap
<p>I have a &quot;little&quot; problem with my bootstrap modal. I'm loading into myModal a form created in temp.php file. Then I try to send this form to the save.php file using AJAX. Everything is OK but form validation doesn't works ( didn't checked if is empty before submitting the form). If I hard coding my form in...
3
4,113
REACT: Undesirable arrows inside html <select>
<p>SOLUTION: as @prasanth sugested me, I created a fake dropdown, a placeholder. Both the fake and the real dropdown shares a</p> <pre><code>style={{"display":countryChange?"":"none"}} </code></pre> <p>obviously the real one is inverted with the fake one. Once i ping the api, I hide the real one and show the fake one...
3
1,648
controls and forms missing icon and view designer option in vs2019 running SDK project with framework 4.7.2
<p>Summary answer so far: Forms and controls only open in the designer if csproj.user file exists.</p> <p>The problem story:</p> <p>I have 2 controls that both inherit from a base control. However one is missing the control icon in the solution explorer <a href="https://i.stack.imgur.com/4kpy1.png" rel="nofollow norefe...
3
2,435
Insert table in .docx file using ZipArchive PHP
<p>I want to create a table in a docx file using PHP and ZipArchive. But it isn't really working.</p> <p>I have the following .docx file: <a href="https://i.stack.imgur.com/RzBtt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RzBtt.png" alt="Word document template PHP" /></a></p> <p>I will put the c...
3
2,249
Error with pngquant when php artisan nova:tool
<p>I'm using Laravel Nova. So, today I have been stuck with an error.</p> <p>After running this command <code>php artisan nova:tool vendor/name</code>.<br /> I got a prompt:<br /> <code>Would you like to install the tool's NPM dependencies? (yes/no) [yes]</code>.</p> <p>After &quot;yes&quot;, npm started working, and I...
3
1,085
Exceptions coming everytime I open and close my app
<p>Each time I open my application or closing it or turning off my internet this exception is coming this was started coming after I have implemented the retrofit in my gradle but now after removing retrofit this exception persists also all the threads in my project are surrounded by try catch, what's this exception?</...
3
2,279
Symfony login success redirect to change password screen
<p>Admin generate user then user first time login i want to redirect user to change password.</p> <p>I have google but there are no any post found that make this fix.</p> <p>Below i have attached service.yml and loginsuccessListener file code.</p> <p><strong>service.yml</strong></p> <pre><code>services: ...
3
1,040
js fill input fields
<p>I have a form with inputs, and I try to fill it's with javascript and submit the form</p> <p>Here <a href="http://avito.ru/additem" rel="nofollow noreferrer">http://avito.ru/additem</a></p> <p>Enter email, use code</p> <pre><code> var e=document.querySelectorAll(&quot;[data-write-id=email]&quot;)[0]; e.value=&q...
3
1,270
DLLImport when c++ function involves a callback containing a struct
<p>We have a c++ function </p> <p><code>IMPEXP int startGettingData(LPCWSTR port, ClubConfig* pClubConfig, void (__stdcall *onSwingCalculated)(CalculationResult* pResult));</code></p> <p>The Calculation result is a struct in c++</p> <pre><code>typedef struct stCalculationResult { BOOL isLeftHanded; double lie...
3
1,277
How do I iterate through object in order to display the values on EJS
<p>I have a problem with iterating objects on EJS. I am connected to a DB on the backend, and I can console log the objects but when I run it through the front end, I get a result of [Object]</p> <p>Here is the code on my code in the backend</p> <pre><code>app.get('/usageData', (req, res) =&gt; { tableSvc.queryEnt...
3
1,209
Error while making payments using Mollie API in php
<p>I am making payments using mollie API in php. But its giving me some errors . I have posted my code and screenshot of the errors.</p> <p>THIS IS MY CODE:</p> <pre><code>&lt;?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); try { require_once &quot;vendor/autoload.p...
3
1,070
Why does a newly created Android Camera2 MP4 File fail to play on some players, but not others
<p>I am running into an issue where while using an external library (<a href="https://github.com/natario1/CameraView" rel="nofollow noreferrer">link</a>) and writing a new MP4 file is causing it to be unplayable on multiple players but entirely playable on others. </p> <p>In theory, it should be immediately playable o...
3
1,096
Error: Object with ID 'undefined' in collection with ID 'Participant:xxxt' does not exist
<p>I executed these code on playground on hyperledger website and the error is shown here:Error: Object with ID 'undefined' in collection with ID 'Participant:xxxt' does not exist.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class...
3
1,430
Uncaught (in promise) Error: Number of splits must evenly divide the axis
<h1>Summary</h1> <ol> <li>Context</li> <li>The problem</li> <li>What did I try to fix this bug?</li> <li>How to reproduce this bug (+ required data)?</li> <li>My questions</li> <li>Sources</li> </ol> <hr> <h1>Context</h1> <p>I would want to generate a new sequence of notes of a MIDI file thanks to MusicRNN chord_pi...
3
1,983
Sql dump does not run in docker-compose
<p>I am quite new to Docker and I have run into a problem. The basic thing I'm trying to do, is to connect a java service to a mysql database. </p> <p>The setup is that I have one Dockerfile for the service, and a separate one for mysql. Then I'm connecting these through a docker-compose file.</p> <p>The Dockerfile f...
3
1,446
Retrieving json data with ngTable (Angular)
<p>I want to retrieve a json data in an HTML page with Angular, using ngTable.This is how I implemented the service and the controller:</p> <pre><code> angular.module('detail', ['ui.router', 'ngTable', 'ngResource']) .config(function ($stateProvider) { $stateProvider .state('stats.orderdetails', { ...
3
2,246
Rubber stuck on deployment to ec2 (sftp upload #<StringIO:0x000001029984c0> -> /tmp/setup_remote_aliases)
<p>I am using rubber (built on top of capistrano) to deploy to my ec2 instance. I basically followed the rail cast from Ryan bates <a href="http://railscasts.com/episodes/347-rubber-and-amazon-ec2?view=comments" rel="nofollow">http://railscasts.com/episodes/347-rubber-and-amazon-ec2?view=comments</a>. In that rail cast...
3
2,280
Custom ListView item selection doesn't working
<p>There is a problem with item selection in custom ListView. There is no checkboxes, so no need in checkable=false. I've tried setup <code>android:focusable="false"</code> and <code>android:focusableInTouchMode="false"</code>. Tried "Draw Selector On Top option". I can see standard touch animation, but items not highl...
3
1,768
MapView Issues / Empty Tiles
<p>I'm having issues with a MapView.. I've used MapView's before so I really don't know what the problem is, it's probably something simple that I'm overlooking but it's driving me insane. The app installs and runs fun, but the MapView tiles do no load. All I see is an empty grid. I know the API key (debug keystore) is...
3
1,901
Change object into array in key-value collection
<p>I've got a document in MongoDB like this:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;name&quot;: &quot;wine&quot;, &quot;foodstuffSelectedPortions&quot;: { &quot;id_1&quot;: [ { &quot;foodstuffId&quot;: &quot;f1&quot;, &quot;portion&quot;: { &quot;portionNam...
3
1,734
Yarn link React component library to app results in "Invalid Hook call" error (multiple React instances)
<p>I have a React app spun up with create-react-app and a React component library. I'm attempting to link the component library to the app to test the components locally. When I attempt to use a component from the library I get the error:</p> <pre><code>Uncaught Error: Invalid hook call. Hooks can only be called inside...
3
5,691
Entity framework ASP.NET MVC (sometimes) problems with DbContext.Set and elsewhere
<p>I've got a weird problem using ASP.NET in combination with Entity Framework and Unity Container. </p> <p>This problem <strong>only</strong> occurs after the application has been running from a few hours to a few days. And after this happens it's temporally fixed (again for the same period) by restarting IIS. </p> ...
3
4,815
How to Validate Date and Time with JavaScript
<p>This code below is suppose to show an alert box if an incorrect date and/or time is selected. </p> <p>The problem I'm having is, If I selected 25/11/2015 and choose 11:00 It shows "Please change date or Time". If I then select 25/11/2015 and choose 21:00 it shows "That's Fine".</p> <p>The function is ignoring the ...
3
1,155
ArrayOutofBoundsException in kmeans, while running on hadoop
<p>I am trying to run KMeans algorithm on hadoop using eclipse. I referred to this procedure.</p> <p><a href="http://www.slideshare.net/titusdamaiyanti/hadoop-installation-k-means-clustering-mapreduce?qid=44b5881c-089d-474b-b01d-c35a2f91cc67&amp;v=qf1&amp;b=&amp;from_search=1#likes-panel" rel="nofollow">http://www.sli...
3
1,425
how we can connecte combochart with"Controls and dashboards"
<p>i have combochart </p> <pre><code>!function($) { google.load('visualization', '1', {packages: ['corechart']}); google.setOnLoadCallback(initialize); function populateSelectWithOptions(target, data) { console.log(data, typeof(data)); var $select =$("#"+target); $select.empty...
3
4,373
Error while creating a WorkItem via API - Devops
<p>I'm trying to create a workitem via API, but im getting the following error:</p> <pre><code>{ &quot;innerException&quot;: null, &quot;message&quot;: &quot;You must pass a valid patch document in the body of the request.&quot;, &quot;typeName&quot;: &quot;Microsoft.VisualStudio.Services.Common.VssPropertyValida...
3
1,859
Leaflet divIcon does not show up on map
<p>I am trying to make a custom marker using Leaflet's divIcon. Does anyone see problems with my code? When I run it with the normal default marker, it works fine. However, when I run it and try to use myIcon, no marker shows up. I've replaced my mapbox access token with <em>access_token</em>.</p> <p>Any help would be ...
3
1,492
C# - Function to randomise case of four strings always returns each string in the same case
<p>I'm trying to build a basic random password generator in a Windows form. I have a list of words (all lower case), four of which get picked at random. Each word gets passed to a function to randomly change the case (capitalise the first character, capitalise the entire word, or just return the string in lower case) a...
3
1,266
Woocommerce JSON data is not showing in collection view
<p>**</p> <blockquote> <p>i was trying to load woo commerce product list in my collection view. i am gating data from server also able to print data. but when i go to showing data in my collection view cell it's not showing.</p> </blockquote> <p>**</p> <p>here what i have done</p> <pre><code>var newArraivalAr...
3
9,308
Attempted import error: 'getMovies' is not exported from 'C:/Users/hp/vidly/src/fakeGenreService'
<p>I'm trying to create a very basic react app, i have one file name 'fakeMovieService.js'. Importing that file in movies.jsx which are in same folder. There is a function in that getmovies() which basically gets all the value of movie stored in a variable and i'm trying to print that in table created in movies.jsx.</...
3
1,383
Redactor: dropdown plugin
<p>I try to implement a colorpicker-fontcolor plugin to redactor-js.</p> <p><a href="http://jsfiddle.net/ped7txq6/" rel="nofollow">http://jsfiddle.net/ped7txq6/</a></p> <pre><code>$(function(){ //plugin $.Redactor.prototype.fontcolor = function() { return { init: function() ...
3
1,817
Add value of toggle Box to total
<p>I'm trying to add a value of my toggle box to add-up and to display the total of the toggles selected (by yes or no)</p> <p>Can't find it to work as its not working like a check box. I used a Bootstrap toggle</p> <p>Does anyone have some suggestions how to add be able to add these values?</p> <p>I have a separate...
3
8,444
Connect Spring roo project to Mongo database
<p>I am new too roo and trying to create a simple app to push to Heroku. I have the app up and working on my localhost with a MongoDB running on the localhost as well. I added a MongoDB to the app in Heroku but it will not open on Heroku (the app not the DB). I don't know what the issue is but do I need to connect my a...
3
2,020
Array not initialized properly
<p>I went searching on this forum for someone having a problem similar to mine and I was not able to find why on earth my program is not working properly besides looking solid. I'm just starting to learn Java so I'm not sure if there is some kind of syntax error going on here or if it's more but I have been staring at ...
3
1,190
code for a simple fighting game but after a player health becomes 0 game continues its loop
<p>so this is the entire code, it has a display function which does the displaying and processing of inputs and a main function which passes the display when the GameOver function is set to false</p> <pre><code>#include &lt;iostream&gt; #include &lt;conio.h&gt; #include &lt;stdlib.h&gt; #include &lt;cstdlib&gt; #includ...
3
1,547
Acces Denied errno: 1045 on POST method. Mysql 8 Nodejs
<p>I created a database in mysql, I have mysql 8 installed through homebrew. So far so good, I connect to the database without problems, but when I try to upload data to the database through an INSERT I get the following error::</p> <pre><code>[nodemon] 2.0.19 [nodemon] to restart at any time, enter `rs` [nodemon] watc...
3
2,141
Train keras model using generated by Augmentor images
<p>I'm trying to train keras model using keras_generator from library Augmentor and trouble is that I can't get more images then I already have.</p> <p>Now I have a directory with clasees:</p> <pre><code>images/ 0/0.png 1/1.png ... z/z.png </code></pre> <p>I run following python code:</p> <pre><code>import Augm...
3
1,268
Why the image I specify doesn't appears on the canvas?
<p>I'm simply trying to get an image inside the canvas, but, for some reason, it doesn't appears.</p> <p>I think the problem relies in how I'm calling the function, tho I don't get what could be wrong.</p> <p>The <em>problematic code</em> starts on //Imagen</p> <p>Here is the code:</p> <pre><code>&lt;!doctype html&...
3
1,600
Creating a new window for toggles Processing (ControlP5)
<p>This is my image generator which works with toggles. I would like to have the toggle buttons in a new window. I tried using PApplet, but it doesn't seem to show anything. How to add an extra window just for the toggles?</p> <pre class="lang-java prettyprint-override"><code>import controlP5.*; PFont myFont; bo...
3
1,285
Tokenizing/processing common grocery list input in Swift
<p>I'm trying to write a small function in Swift that can accept common strings someone would use to add items to a grocery/shopping list and process them to extract the key data.</p> <p>Sentences like the following, and their expected key data:</p> <ul> <li>"5 pounds of apples" – apples | pounds | 5</li> <li>"2 cans...
3
1,364
Collision detection : myName nil value
<p>I'm trying to set up collision for my game with code from Corona SDK sample called "Collision Detection". I'm getting this realy strange error every time ball collides with something -</p> <blockquote> <p>Runtime error ...er 1\documents\corona projects\earthyball\level1.lua:114: attempt to concatenate f...
3
1,496
jQuery - acquiring variables from dynamic form for multiple functions
<p>I have started using jQuery few days ago, and although I found information on how to solve any problems that I have encountered (or at least get it working by some workarounds), I seem to be stuck on the current issue:</p> <p>I have a form that has a variable number of fields - the number of fields may change depen...
3
1,185
Container changes only height
<p>The Problem is when I change width of the container of the UserMessage it does not change it it changes only the height.</p> <p>I got this container it is basically a where the live chat is in.</p> <pre><code>child: Listener( onPointerDown: _chatTouchedTrue, on...
3
1,560
Print result from 2 queries in different columns of one table
<p>I am trying to output result from 2 queries in one table but no luck. Tried with <code>UNION</code> and with this template</p> <pre><code>SELECT x.a, y.b FROM (SELECT * from a) as x, (SELECT * FROM b) as y </code></pre> <p>with no luck. My queries are:</p> <pre><code>Select Sum('.MAIN_DB_PREFIX.'facturedet.qty) ...
3
1,096
Three.js: How to change "diffuseMap" and "roughnessMap" to "cubeMap"?
<p>This is the code I would like to work with:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var container; var camera, scene, renderer; let exrCubeRenderTarget, exrBackgroun...
3
3,504
Gets/fgets jumped over steps of input in C
<p>I have an exercise that I need to create a program to input all information of students as a student report as the source code below. I have a problem that I can't get a full stream input. It stepped over grade input and jumped to another student to input the next student's ID. I have put <code>getchar()</code> to g...
3
2,606
How to write Razor code for List type entity?
<p>My View Model is:</p> <pre><code> public class CompanyAccountViewModel { public string Name { get; set; } public float Interval { get; set; } public List&lt;string&gt; MobileNo { get; set; } } </code></pre> <p>and My view is:</p> <pre><code>@model PowerSupply.Models.CompanyAccountViewModel @{ V...
3
1,376
Fragment content not visible when starting app
<p>I'm pretty new to using fragments, and to android in general. I tried loading in a fragment and it seemed to work, nothing crashes. But when I look at the app, it's not showing the fragment layout. I've looked at other similar questions and answers but couldn't find anything I did wrong.</p> <p>main activity xml:</...
3
4,352
Align 3x3 grid relatively to the full viewport height without offset
<p>Well, I have grid that's 3x3 dimension, also I'm using CSS framework - <strong><a href="http://materializecss.com" rel="nofollow noreferrer">materializecss</a></strong> and I can't reach my goal which title says or this:</p> <p><img src="https://i.stack.imgur.com/9hGDa.jpg" alt="image"></p> <p>Their documentation ...
3
1,268
Apache Camel - Spring rest endpoint reference
<p>I have an application using camel rest component. Originally, I use camel version v2.17.0 and every rest endpoint returns http return code 200 when call.</p> <p>One day when I update my application's camel version to v2.18.0 (without any other change), all rest endpoint returns http return code 404 when call. The s...
3
1,932
Why is my quicksort performance worse than my mergesort?
<p>Am I missing something? The source is short, ready to run and commented for better understanding. I need to know what I'm doing wrong.</p> <pre><code>package com.company; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.*; public class Main { public stati...
3
2,071
React updates the state when the app is hosted on GitHub Pages, but not when it's on localhost (or CodeSandbox)
<p>I've experienced a very strange behavior. This is my React app:</p> <pre><code>import &quot;./App.css&quot;; import React, { useState, useEffect } from &quot;react&quot;; const buttonsObject = [ { press: &quot;q&quot;, source: &quot;https://github.com/Julian-Sz/FCC-Drum-Machine/blob/main/src/sounds/...
3
2,898
How to tag recipients in Outlook mail body via VBA?
<p>In Outlook, you have the option to tag a recipient using <code>@'required emailid'</code> in the mail body. Email will be highlighted for all tagged recipients.</p> <p>I have 2 columns in Excel.</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>A</th> <th>B</th> </tr> </thead> <tbody> <tr>...
3
1,168
javascript function not working in HTML
<p>I add oninput for every countable option so that the cost will be calculated and displayed on <code>order price &lt;h1&gt;</code> within <code>&lt;div&gt;</code>. I can't seem to display the message on my <code>&lt;h1 id="orderprice&gt;</code>. Why can't my javascript run and display the total cost on my html page?<...
3
1,456
JSON Object Modification in JavaScript
<p>Can someone help me modifying the JSON Object using javascript, Currently I am using angular js and getting the JSON data from the file. But i want to modify the below JSON and process accordingly.</p> <p><strong>Current JSON</strong></p> <pre><code>{ "account": { "premise": { "zone": [ { ...
3
1,258
Attributes.add, ScriptManager.RegisterStartupScript, ScriptManager.RegisterClientScriptBlock not working
<p>I have a button on a webform, inside an update panel that is inside an Ajax Toolkit tabcontainer, that saves data in the textboxes to the database. I have five <code>if</code> statements that validate date ranges on the page and put up an alert if the ranges are invalid using (for example):</p> <pre><code>If &lt;co...
3
1,180
Highcharts - PieChart refreshes on click event that calls this.setState
<p>I have two pie charts from highcharts, and when I click a slice from the charts, I'd like for a list of tasks to show up in a table. Here is my parent component:</p> <pre><code>import React, { PureComponent, useState } from 'react'; import { Grid, Container } from 'semantic-ui-react' import getTasks from './tasks'...
3
1,256