title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to manually handle message completion in C# azure function with azure service bus 5.0.0
<p>I'm writing an Azure Function to get the messages in an Azure Service Bus. I want to handle any exceptions manually (<code>&quot;autoCompleteMessages&quot;: false</code>) Can't figure how to send the complete or abandon back to the service queue.</p> <p><em><strong>Tried Option 1:</strong></em></p> <pre><code>[Funct...
1
1,146
View over another View
<p>I have some Popups on my screen, and need something not so common.</p> <p>I Layout my popup with Header + Content + Footer into a LinearLayout. But I need a little arrow to show on my component. </p> <p>When the popup is above the anchor and the arrow is down, I use the following code to have it drawed.</p> <pre>...
1
1,162
TensorFlow Serving for images as base64-encoded strings on Cloud ML Engine
<h2>How to implement TensorFlow Serving Input function for images as base64-encoded strings and get prediction on Cloud ML Engine</h2> <p>I am planning to deploy the model on Cloud Machine Learning (ML) Engine after training it on-prem., but I have no idea how to implement the <strong>serving input function</strong>. ...
1
3,419
How to find span class value present under a particular td
<p>On click of a Radio button , i am trying to chnage the value of a Button text .</p> <p>But i am facing problem with the jquery selector in this case </p> <pre><code>&lt;table class="table table-striped table-bordered table-hover dataTable" id="customer_details_table" aria-describedby="sample_1_info" style="display...
1
1,404
dial tcp: lookup ip-x-x-xx.ec2.internal: no such host
<p>I am using github.com/Shopify/sarama package to interact with Kafka. In my current approach I could connect to the broker and get all topic names without a problem <em>(Consumer Code below)</em>. </p> <p>However, when I try to delete some topic using the admin client <em>(Admin Code below)</em> I receive the "dial ...
1
1,191
Android Development: Button onClickListeners Help
<p>Basically, so far I've just got an add and minus button which will change the value of a TextView.</p> <p>I followed the second example under "Event Listeners" on <a href="http://developer.android.com/guide/topics/ui/ui-events.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/ui/ui-events.ht...
1
1,143
Flutter PUT HTTP request from file
<p>Need some help troubleshooting an HTTP request in Flutter using the PUT method sending an image file on the body to a NextCloud server via API.</p> <p>As always, i tested sending the request via POSTMAN to see what's happening. It worked ok selecting "binary" in the body tab and selecting the image file.</p> <p><a...
1
1,373
TypeError: cannot convert dictionary update sequence element #0 to a sequence - Odoo v10 community migration
<p>Still some bugs, on my module migration from Odoov8 to Ovoo10 community</p> <p>I have this method:</p> <pre><code>@api.model def search_partner_seniat(self): """ Check vat of the partner and update iva rate """ self.ensure_one() vat = self.vat.upper() res = { 'name': _('The requested co...
1
1,584
OpenCV squares: filtering output
<p>Here is the out put of square-detection example my problem is filter this squares </p> <p><img src="https://i.stack.imgur.com/Cm8wE.png" alt="http://ozsulastik.com/ocvsquares.png"></p> <ul> <li>first problem is its drawing one than more lines for same area;</li> <li>second one is i just need to detect object not a...
1
1,321
tomcat-maven-plugin: Server returned HTTP response code: 403
<p>I'm trying to automatically deploy a Maven webapp from Eclipse Java EE to my local Tomcat server. I'm using Windows XP. This is the error:</p> <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project practicaIW: Cannot invoke Tomcat manager: Server returned...
1
1,130
ERROR SparkContext: Error initializing SparkContext - Java + Eclipse + Spark
<p>Im starting now with Spark. Im trying some example projects and now im working with a project to read from a csv. The problem comes when i run the app. The console of eclipse tells me the following error:</p> <pre><code>18/09/19 05:00:48 ERROR MetricsSystem: Sink class org.apache.spark.metrics.sink.MetricsServlet c...
1
1,078
How to setup .htaccess In Codeigniter on Ubuntu 14.04 Lamp Stack Server
<p>I have no idea how to proceed, I checked many tutorial did step by step but no success, I started think it is something on my apache not running well.</p> <p>I am not the server person and always I get stuck in that stuff, my site its running well on my local but after transfer it to a server, the problems start.</...
1
1,726
Extracting Intermediate layer outputs of a CNN in PyTorch
<p>I am using a <code>Resnet18</code> model.</p> <pre><code>ResNet( (conv1): Conv2d(3, 64, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False) (bn1): BatchNorm2d(64, eps=1e-05, momentum=0.1, affine=True, track_running_stats=True) (relu): ReLU(inplace=True) (maxpool): MaxPool2d(kernel_size=3, stride=2...
1
3,468
Need How To help moving system.serviceModel config section into my code
<p>I have developed a Client/Server application for my current employer and one of the requirements is that the client part be distributed as a DLL. Since DLLs don't 'do' dllName.dll.config files, I need to move the config into the code. I have done this to the best of my ability, but I'm now getting this exception; <...
1
1,858
RecyclerView not being populated (getItemCount() is returning zero)
<p>I looked at the other questions on SO about this, and matched by code word for word but I must have missed something because nothing is working. getItemCount() is returning zero, but I debugged my data list and it seemed to add all my data properly, so something is going wrong with the communication to the adapter.<...
1
2,762
Facebook SDK returned an error: Failed to connect to graph.facebook.com port 443: Connection refused
<p>How can I solve this error in Facebook SDK -> Facebook SDK returned an error: Failed to connect to graph.facebook.com port 443: Connection refused. I have tried many things but this error not going. Following are my Code Will you guys please help me.</p> <p><div class="snippet" data-lang="js" data-hide="false" dat...
1
1,099
LogstashTcpSocketAppender is not sending logs to Logstash
<p>I am using Docker ELK stack with my Spring Boot application. All three components are up and running at <a href="http://192.168.99.100:5601/" rel="nofollow noreferrer">http://192.168.99.100:5601/</a>, <a href="http://192.168.99.100:9200/" rel="nofollow noreferrer">http://192.168.99.100:9200/</a> and 192.168.99.100:5...
1
1,371
NSURLSession/NSURLConnection HTTP load failed , -9802
<p>After Successfully running the program the error will be shows on debug area</p> <pre><code>import UIKit import CoreLocation protocol ItemDetailViewControllerDelegate: class { func itemDetailViewControllerDidCancel(controller: ItemDetailViewController) func itemDetailViewController(controller: ItemDetailVi...
1
3,875
php calendar that connects to database mysql for events
<p>So i have code for a very simple calendar, however I can't figure out how to query mysql database to find any events for each day of the month. I know how to query the database for that information, but i dont know where i would put it in the code of creating a calendar or how to structure it or anything. ive looked...
1
1,146
How to show an alert and play sound when receiving notification in background
<p>I implemented the procedures in order to use Firebase Cloud Messaging service. I set</p> <blockquote> <p>FirebaseAppDelegateProxyEnabled to NO (swizzling disabled)</p> </blockquote> <p>because I want to customize the message to send to the device by using the structure "<strong>data</strong>" instead of "<strong...
1
1,564
Is [ComImport] considered P/Invoke?
<p>What <strong><em>is</em></strong> Platform Invoke (P/Invoke)?</p> <hr> <p>What does it mean to be performing a P/Invoke? Is it <a href="http://msdn.microsoft.com/en-us/library/aa446536.aspx" rel="nofollow">calling an external dll</a>? e.g.:</p> <pre><code>[DllImport("coredll.dll", SetLastError=true)] private stat...
1
1,156
Eclipse Android SDK: Bad version number in .class file
<p>I'm trying to integrate the Android SDK into my Eclipse Indigo. I installed the ADT plugin Android SDK r_17 mac OS and when I go to Preferences->Android, the following error shows up:</p> <p>Unable to create the selected preference page. Bad version number in .class file</p> <pre><code>java.lang.UnsupportedClassV...
1
2,854
Powershell Checkedlistbox handling - checked item count inconsistency and missed click events
<p>I'm having trouble with multiple issues with a checkedlistbox. Its content is the Windows feature name (commandline parameter to install a Windows feature via Powershell) and a description which really is its more readable name. Because I develop on Windows 7 and this command is only available on a Server platform...
1
2,956
Publish and stop endpoint web service in Java
<p>I am trying to start/stop an Endpoint web service in a separate thread from my main program with the click of a button. Starting works fine, i am able to access all my WebMethods without issue. The problem is, when i click the stop button to try and stop the web service endpoint, i get an exception and i don't know ...
1
1,150
How to deploy multiple apps (monorepo) with Azure and NX
<p>I'm using <a href="http://nx.dev/" rel="noreferrer">NX</a> tools to manage a monorepo with multiple apps and I'm struggling to understand how to deploy using Azure and release pipelines.</p> <p><strong>Disclaimer</strong> : I'm very new to Azure and devops in general.</p> <p>My understanding is this : I create a p...
1
1,407
Binding from Set to <form:select> in SpringMVC
<p>I am creating web using Spring MVC and I am still beginner with Spring. I have two entities with many to many relationship. in practice, I have UserGroup, which can have many or one (or none) UserAuthority I want to edit these relationships using form with multiple select. Creating new UserGroup entity or editing ex...
1
2,226
Missing error requests in the tomcat's localhost_access log, while IOException during the Jackson invocation appears in the application log
<p>Some weird situation. During a performance test of a web application (war), the client gets 500 on about 2% of the requests. When searching the application log, there are some exceptions there:</p> <pre><code> java.io.IOException: Stream closed at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:...
1
1,510
Inserts are 4x slower if table has lots of record (400K) vs. if it's empty
<p>(Database: Oracle 10G R2)</p> <p>It takes 1 minute to insert 100,000 records into a table. But if the table already contains some records (400K), then it takes 4 minutes and 12 seconds; also CPU-wait jumps up and “Free Buffer Waits” become really high (from dbconsole).</p> <p>Do you know what’s happing here? Is th...
1
1,290
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot find TensorFlow native library for OS: linux, architecture: x86_64
<p>I am trying setup TensorFlow Java application in Eclipse Oxygen (OS: Ubuntu Linux 16.x). I installed Tensorflow and followed the process <a href="https://www.tensorflow.org/install/install_java" rel="nofollow noreferrer">mentioned in official documentation</a> for Java (Maven Project) installation. I downloaded libt...
1
1,419
HTML to pdf not giving correct pdf with all styling
<p>I have created a html layout, when I am trying to convert this into pdf it is not giving out put with complete styling.</p> <p>I have tried two libraries <code>"anam/phantommagick": "^1.0"</code> and <code>"barryvdh/laravel-dompdf": "0.4.*"</code></p> <p><strong>Here is my code:</strong></p> <pre><code>&lt;?php o...
1
2,502
add values from dynamically added rows into database
<p>hi i am working on a php form which has to add a table row dynamically when add button is pressed and i am using for loop to save the values the problem is that it is not saving the data into my database and gives the error that the loop values of my textbox is undefined can anyone help me here is my script</p> <...
1
1,648
ANDROID - Add new Items in a Fragment List (Tabbed) - Android Studio
<p>I am trying to make a simple tabbed application with different ListViews and options. I would like to manage the relationship between tabs and MainActivity and the problem right now is I cannot make an addItem() function in a menu button, to add a new item to my ListView (inside a Fragment) in a tabbed application. ...
1
2,181
CS0246: Missing an assembly reference - works locally, but not on webserver
<p>I'm trying to implement a paymentgateway (Ewire, a danish payment gateway), and it works fine locally, but when I'm putting it online, it says I'm missing an assembly reference.</p> <p>I am sure that I'm using all the assembly references I need, since it works offline, and I'm also sure that the public class is reg...
1
6,164
WPF How to change header color of gridview
<p>I've been trying to learn how to customize a ListView which contains a GridView.</p> <p>I've been able to figure out and learn each part that I require... except for one.</p> <p><a href="https://i.stack.imgur.com/PoEsS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PoEsS.png" alt="enter image d...
1
1,880
Change data-attribute on click of HTML elements
<p>I am trying to apply changes to the DOM when a <code>&lt;tr&gt;</code> is clicked. When clicked, it should add <code>data-state=enabled</code> and <code>data-display=expanded</code> to the clicked <code>&lt;tr&gt;</code> while applying <code>data-state=disabled</code> and <code>data-display=collapsed</code> to <stro...
1
4,550
Writing to CSV without quotes on multi-valued columns
<p> I am trying to write to a CSV file with the help of CSVHelper, one of the values i am writing that has values like this: {1,$1.00,2,$3.00} </p> <p>Due to the commas in the list it is double quoting this in the output, but I am wanting to disable this functionality.</p> <p>I've read the documentation which suggest...
1
2,228
CASE WHEN to add commas only when there is a value
<p>I have a multiple fields that needs to be put into a string only when there is something in the field and on top of that I don't want the commas between fields if they are null. I tried using case when but am clearly doing something wrong and would appreciate some help with the following:</p> <pre><code>USE newCit...
1
1,207
angularjs directive validation unique email check before send
<h2>html</h2> <pre><code>&lt;input type="email" data-input-feedback="" data-ng-model="user.email" data-unique-email="" required="required" placeholder="Email" class="form-control" id="email" name="email"&gt; </code></pre> <h2>js</h2> <pre><code>.directive('uniqueEmail',function (User) { return { require:...
1
2,308
Slickgrid - Replacing all grid data from AJAX source
<p>In the app I'm building, I have a data grid and some select boxes where the user can set filters and upon a selection it makes an AJAX call to get a new array of data from the server.</p> <p>I have the grid initializing with default filters, but I can't figure out how to wipe the grid of all rows, and re-populate w...
1
1,553
Shared Element Transition + Fragment + RecyclerView + ViewPager
<p>I am implementing a gallery app, which has a Fragment that holds a RecyclerView with images, onClick of an image I go to ViewPager to cycle through images.<br> For now, I am trying to implement just the entry animation like in <a href="https://www.youtube.com/watch?v=SlmWd-45KtY" rel="noreferrer">this</a> video. The...
1
1,718
Codeigniter form validation is not showing errors
<p>I'm new to Codegniter so go easy on me. I'm building a simple login form and I have successfully redirected to a page when the login credentials are correct. However, if I submit an empty form I get no error messages. I'm also using <code>set_value</code> in the form field and codeigniter does not refill what the...
1
1,547
log4net console app not logging on publish
<p>I have a console app using log4net (via Castle Windsor). Everything logs fine to the console when I debug, but when I publish and run the app, nothing is logged.</p> <p>I have my log4net configuration in a separate file (log4net.config). I'm thinking it's not finding the config file, but that's just a guess.</p> ...
1
1,058
Creating a custom dialog box that displays a full view image
<p>I am trying to create a custom dialog box that displays an image in full-view and has a Select as well as Cancel Button. This custom dialog box should be displayed when an image is clicked so as to allow the user to view the selected image in full-view. The image view should be one that is selected from a GridView. ...
1
2,105
xpath-functions does not identify an external Java class
<p>The following XSLT transformation displays an error whenever I try to use the function node-name().</p> <blockquote> <p><em>Error: E[Saxon6.5.5]The URI <a href="http://www.w3.org/2005/xpath-functions" rel="nofollow">http://www.w3.org/2005/xpath-functions</a> does not identify an external Java class</em></p> </blo...
1
1,896
Cannot serve directory /var/www/html/public/ [Laravel - Aws Elasticbeanstalk]
<p>I have been trying to deploy my Laravel project on a Elasticbeanstalk server, I keep getting this error:</p> <p>Frontend error:</p> <blockquote> <p>You don't have permission to access / on this server.</p> </blockquote> <p>Error in the log file:</p> <blockquote> <p>Cannot serve directory /var/www/html/public...
1
1,652
Dynamic Stacked Bar Chart in D3
<p>I am trying to plot a dynamic stacked bar chart using D3.js. Basic requirement is that I will be getting a new data-point every few seconds and I should be able to replot(transition) the stacked chart. This is the code I have written :</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Page Title&lt;/title&g...
1
2,371
JDBC working with Oracle RECORD, TABLE and OBJECT types
<p>How to retrieve Oracle Collection Types in Jdbc. I searched a lot but not found any answer. Below is my stored procedure working fine :</p> <pre><code>create or replace PACKAGE SHOW_SUP AS TYPE SUP_COF_REC IS RECORD ( SUPPLIER_NAME VARCHAR2(32), COFFEE_NAME VARCHAR(32) ); TYPE_RECORD SUP_COF_REC; TYPE S...
1
1,327
pip not installing to site-packages directory from within virtualenv when I use a requirements.txt
<p>I'm relatively new to running Python with virtualenv so this might be an easy fix, but I can't for the life of me figure out what's going on. I'm running Windows 7 professional x64 with Python 2.7.5 installed I have installed pip and virtualenv. I have a django project that I'm attempting to work on which I have c...
1
1,563
Add files in program data using wix
<p>I am developing an Outlook addin using addin express. I am using a <code>.wxs</code> file in my program's setup project. It helps me to install my program in <code>roaming</code> folder. I want to add <code>Redemption.dll</code> to the path <code>C:\programData\Flow</code>. So I modified the code as mentioned below....
1
3,546
gem mongoid : Could not fetch specs from https://rubygems.org/
<p>I'm trying for 2 days now to setup Mongodb with Rails 4. I've got the following gems in my Gemfile :</p> <pre><code>source 'https://rubygems.org' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.0.0' gem 'mongoid', github: 'mongoid/mongoid' gem 'bson_ext' gem 'mongo_mapper' # Use S...
1
4,530
Custom policy in Azure AD B2C does not allow to save empty string for attribute
<p>We have custom edit profile policy, which is based on the example provided by Microsoft, the policy has Company and Phone claims, which are not required. When Company or Phone claim is left blank it still contains an old value after the profile is saved.</p> <p>We have found, that there is a setting ConvertEmptyCla...
1
12,670
RNFetchBlob is not working to upload image
<p>I am trying to make a upload function for my Firebase Cloud Storage. I am using RNFetchBlob, along with react-native-image-picker. I can select photos, but it will not upload. All other Firebase functions works great and it is installed through React-Native-Firebase...</p> <p>Nothing seems to happen after 'fs.readF...
1
1,624
Error: Evaluation Failed: ReferenceError: util is not defined
<p>I am trying to pass the util module object to puppeteer <code>page.evaluate</code> with no success. I understand this question was asked in <a href="https://stackoverflow.com/questions/48815565/how-to-pass-required-module-object-to-puppeteer-page-evaluate">How to pass required module object to puppeteer page.evaluat...
1
1,367
Spring Integration Aggregator
<p>I want to use an aggregator to create a message out of two messages, but i'm not sure how to do this.</p> <p>At the moment i'm reading in two files from a directory and want to aggregate those messages into one. </p> <p>My whole project looks like this:</p> <p>read in .zip -> pass to custom message handler that u...
1
1,331
Where should I write a temporary file?
<p>In android devices external memory may or may not be present.</p> <p>I am writing an app which in one case stream mp3 from URL &amp; stores it in a file in memory for temporary purpose.</p> <p>But I want to be sure that, that file will get created.</p> <p>First I thought of using <a href="http://developer.androi...
1
1,657
radGrid control not showing data in aspx page
<p>I have an asp.net application (created by a previous developer) that uses a RadGrid control to display data. However, the RadGrid does not show data if there is an on the page. The radGrid works fine soon as I remove the UpdatePanel. If I remove the Updatepanel, then RadCombobox makes a whole page submit (instead o...
1
3,048
Multiple line charts using Dash and Plotly
<p>I am trying to create a multiple line charts where I have one line for each 'Machine' and 'Time' on X axis. However I tried a lot of combinations to generate X and Y label. The closest I got from expected result is the chart below.</p> <ul> <li>All advises are welcome.</li> </ul> <p>This is the dataframe:</p> <pr...
1
1,071
Android Paging Library LiveData<PagedList<T>> is triggered before the end of the api call
<p>It's been 2 days I'm trying to learn how to use the new Paging Library with the Kotlin Language (first time too)</p> <p>So I've read many guide / tutorial and Github repo (<a href="https://github.com/STAR-ZERO/paging-retrofit-sample" rel="nofollow noreferrer">https://github.com/STAR-ZERO/paging-retrofit-sample</a>)...
1
1,554
The system detected a protection exception
<p>I am trying to use the SORT feature of COBOL.</p> <pre><code>IDENTIFICATION DIVISION. PROGRAM-ID. ******. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. SELECT IN-FI...
1
4,130
How to fix “ '" is not a valid UUID.”
<p>I want to let user re-order/sort table of content with drag and drop. And whene I push &quot;Submit order&quot; button (after re-order) I have error:</p> <pre><code>ValidationError at /save-group-ordering/ ['“” is not a valid UUID.'] Request Method: POST Request URL: http://127.0.0.1:8000/save-group-ordering/ Dja...
1
3,435
T-SQL Query returning different number rows when run immediately after each other
<p>Afternoon all</p> <p>Strange one this. I have written a query which is fairly simple and I had assumed it was working ok. However, when I run the query, one after another, multiple times, I get a different number of rows every time. It is a live database, but apart from me, nobody is using it today. The date range ...
1
1,873
Conditional forward fill in pandas
<p><strong>I have a dataframe:</strong></p> <pre><code>&gt;&gt;&gt; k Out[87]: Date S E cp Last Q code 30 2017-11-10 22500 2017-11-17 P 170.00 828.47 11/17/2017P22500 32 2017-11-10 22625 2017-11-17 P 180.00 646.91 11/17/2017P22625 35 2017-11-1...
1
1,580
PostgreSQL query with dynamic number of columns
<p>I am trying to find a method to return a record set with a dynamic number of columns. I can write one query that will produce the list of column names I need as such:</p> <pre><code>SELECT DISTINCT name FROM tests WHERE group = 'basic'; </code></pre> <p>This will return a short list like 'poke', 'prod', 'hit', 'dr...
1
1,044
Leaflet markers are not being displayed
<p>This code used to work, but I'm not sure what I changed, or what changed in Leaflet to break it, but no markers are showing. Data is coming back correctly, marker objects are being created, but no markers are being displayed. I'm at a loss here. Using 0.7.2. Let me show you the code...</p> <pre><code> function get...
1
2,522
Processing a two-dimensional array in Angular 7. ngFor
<p>How to handle a two-dimensional array using ngFor? <a href="https://i.stack.imgur.com/33JQq.png" rel="nofollow noreferrer">I receive here such array</a></p> <p>As a result, I need to get the blocks in which the data from the array is displayed in order. That is, in the case of an array that is represented on the s...
1
1,951
C++ - Reading a Table from a Text File
<p>I have been trying to work on an assignment for class where I am supposed to read a table containing students' names and grades from a file called table.txt and store the values in C++ variables, and from there I need to manipulate the grade data, then present it all to the user via tables. <strong>When I run my cod...
1
1,547
Can't connect in C# and google spreadsheet api
<p>Trying to access google spreadsheets using their api. following their example, the code doesnt work, and its not obvious why. All I'm trying to do is to connect, and I keep getting back the same error. This is with their code set as of 4/15/10. Can anyone offer any suggestion on what I'm doing wrong? CodE:</p> ...
1
1,249
Android Studio updated, cannot start now, internal error thrown
<p>I just updated to Android Studio 4.1 and upon startup the following issue is being thrown:</p> <pre><code>Internal error. Please refer to https://code.google.com/p/android/issues java.util.concurrent.CompletionException: org.picocontainer.PicoRegistrationException: Key io.flutter.settings.FlutterSettings duplicated...
1
1,168
JasperReports can't export data with JSF 2 and PrimeFaces 3.5
<p>I am developing an application with <em>PrimeFaces 3.5</em>, <em>JasperReports 5.2</em>, and <em>JSF 2.x</em>. I have some report pages in my old application prepared by <em>JasperReports 4.5</em> and <em>JSF 1.2</em>. All those report pages are working in the old application. I tried to transfer those report pages ...
1
1,440
Logstash input jdbc is duplicating results
<p>I'm using logstash input jdbc plugin to read two (or more) databases and send the data to elasticsearch, and using kibana 4 to vizualize these data.</p> <p>This is my logstash config:</p> <pre><code>input { jdbc { type =&gt; "A" jdbc_driver_library =&gt; "C:\DEV\elasticsearch-1.7.1\plugins\elasticsearch...
1
1,834
Implementing Vincenty's Formula in PHP
<p>I've been attempting to implement <a href="http://en.wikipedia.org/wiki/Vincenty%27s_formulae" rel="nofollow">Vincenty's formulae</a> with the following:</p> <pre><code> /* Implemented using Vincenty's formulae from http://en.wikipedia.org/wiki/Vincenty%27s_formulae, * answers "Direct Problem". * $latlng is a ...
1
1,209
Visual Studio 2013 does not update minified bootstrap.css
<p>In my ASP .NET MVC 5.1 application in <code>bootstrap.css</code> file in section: </p> <pre><code>@media (min-width: 768px) { .dl-horizontal dt { float: left; width: 160px; overflow: hidden; clear: left; text-align: right; text-overflow: ellipsis; white-space: nowrap; } .dl-horizon...
1
1,170
String array name search
<p>So I have a file which has all presidents in it - their first name, middle initial (if any), and last name.</p> <p>The file needs to be read in, and a user can enter a president's name to search for it, and that president should be displayed.</p> <p>I have it displaying the president if a user searches by first na...
1
1,031
Android Google Analytics Tracking
<p>I have set up Google Analytics v2 beta on a test project as bellow</p> <p><strong>MainActivity.java</strong></p> <pre><code>public class MainActivity extends Activity { Context context; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); s...
1
1,233
LibGDX stage coordinates change on window resize
<p>I have seen lots of topics on LibGDX and screen/cam coordinates and also some on window resizing, but I just can't find the solution to the following problem I have.</p> <p>When making a basic stage and a basic actor in this stage, say windowsize 480x320, everything is OK. I can click my actor and it will respond. ...
1
1,150
How to automatically play next song in HTML5 player
<p>I have a html5 audio player and I cant seem to figure out how to make my script automatically play the next song on the playlist after the current song has ended. Currently the player plays a song then stops. It would also be ideal that the player auto play a song if the user hits the fast forward button as well.</p...
1
1,096
Update a row value in SQL database after submit based on selected checkbox(es)
<p>I have this table:</p> <p><img src="https://i.stack.imgur.com/bg2xI.png" alt="enter image description here"></p> <p>In my SQL, I have this column named 'Status' with two values only: Inactive and Active which is set to be Inactive by default.</p> <p>My question is, how can I update in my database the 'Status' col...
1
1,835
Docker-compose invalid. Additional properties are not allowed
<p>Here is my <em>docker-compose.yml</em>:</p> <pre class="lang-yaml prettyprint-override"><code>version: &quot;3.0&quot; services: control_node: hostname: controlnode container_name: controlnode build: ./control_node/ command: tail -F anything privileged: true volumes: - ${C...
1
1,244
Cookie Overflow in Rails 4 even with memcachd server
<p>I'm converting a Rails 3 app, which used <code>active_record_store</code> for storing session information that was too large for regular cookies, to Rails 4, which has deprecated active_record_store. My Rails 4 app is raising the error...</p> <pre><code>ActionDispatch::Cookies::CookieOverflow (ActionDispatch::Cooki...
1
1,699
Android afterTextChanged won't enter a space after every 4 characters
<p>I'm trying to design a simple credit / debit card form. I have a cardNumber EditText field. As the user starts typing in, I want my app to insert a space after every 4 digits. I took help from <a href="https://stackoverflow.com/questions/11790102/format-credit-card-in-edit-text-in-android">this</a> tutorial and modi...
1
2,247
How can I implement Hibernate massive batch insert into this Spring Boot application?
<p>I am pretty new in Hibernate and I have the following problem: I have to perform a massive insert operation (I need to insert a lot of the model object and each of these object contains a <strong>byte[]</strong> field mapping a <strong>blob</strong> field on the DB).</p> <p>I am using <strong>Spring Boot</strong> (...
1
1,871
How to pass a formula as an argument to a function in r?
<p>How do I pass a formula as an argument in R?</p> <p>The code below works for the first two cases, but when I pass in the formula, I get an error: <code>Error in model.frame.default(formula = formula, weights = weights, na.action = na.omit, : invalid type (closure) for variable '(weights)'</code></p> <pre class...
1
1,253
Blender: segmentation, fault core dumped?
<p><strong>Here is an add-on I'm trying to create:</strong></p> <pre><code>import bpy import os import sys import subprocess import time from threading import * class Repeat(Thread): def __init__(self,delay,function,*args,**kwargs): Thread.__init__(self) self.abort = Event() self.delay =...
1
1,940
How do I use Intents with ListView?
<p>I know there are many solutions to solve this problem.</p> <p>But it's not same case as that.</p> <p>This is my java code.</p> <pre><code>package com.progme.sejong_bus; import android.app.Activity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; public class BUSActi...
1
1,147
How to get current state inside useCallback when using useReducer?
<p>Using react hooks with TypeScript and here is a minimal representation of what I am trying to do: Have a list of buttons on screen and when the user clicks on a button, I want to change the text of the button to "Button clicked" and then <strong>only re-render the button which was clicked</strong>.</p> <p>I am usin...
1
2,354
ValueError: dimension of the inputs to `Dense` should be defined. Found `None`
<p>I've been working on a TensorFlow 2 model, but I am constantly hitting this error. I have tried to define the shape for every layer and still no change. Furthermore, the error only shows up when I specify <code>sparse=True</code> in the input layer, which I have to specify as my input tensors are sparse and other pa...
1
2,392
Change hidden field value on Submit click
<p>I have a form with multiple items and an id attributed to each of these items, on Submit I want to be able to grab the id of the item that was clicked - I have tried using js, something like:</p> <pre><code>&lt;form method="post" action="add_item_cart.php"&gt; &lt;input type="hidden" id="item_id" name="item_id"...
1
1,093
How to deserialize nested Firebase database in Java with Map<String, Obect> or List <object> class?
<p>Here is my simple primary Firebase data.</p> <pre><code>{ "elephant" : { "color" : "gray", "lifespan" : 48, "status" : "endangered" } } </code></pre> <p>In my android project I made this class to represent this data</p> <pre><code>public class elephant{ private String color; private int li...
1
1,558
Change label name in ggsurvplot
<p>I have attached My Data below. </p> <p>I wish to relabel "Cumulative number of events", which seem to be the default text. I would like it to read: "Cumulative number of recurrences". I can't seem to figure out how to change it - is it even possible to change the text? </p> <p>My graph looks like this:</p> <p><a ...
1
2,162
Typescript with NextJS
<p>I've been struggling to integrate Typescript with NextJS, mainly with destructured parameters in getInitialProps but also with the type of page functions. For example, here is my _app.tsx:</p> <pre><code>import { ThemeProvider } from 'styled-components'; import App, { Container } from 'next/app'; import Cookie from...
1
1,232
Return Array from C# COM Library to VBA
<p>I've spent quite some time trying to find a solution but I just can't seem to get it to work. The situation is as follows:</p> <p>I'm setting up a c# com library to be used by a vba macro. The c# library method in question takes two arrays as parameters and returns an array identical in size and type to the first p...
1
2,257
react native gesture handler is not working with Android emulator or Android device
<p>I am trying to practice using <code>react-native-gesture-handler</code>. Everything renders but I am unable to move a square around the screen. I have installed <code>react-native-reanimated</code>, the appropriate plugin, cleared the cache and installed <code>react-native-gesture-handler</code> using expo, but it d...
1
1,816
Primefaces selectCheckBoxMenu filter="custom" property doesn't work
<p>I'm using primefaces 3.5 and i want to use selectCheckBoxMenu component. Actually, i handle lots of property of this component, but i have huge list and i am willing to get this list with lazy and this component doesn't include lazy property. Therefore, i decided to filter my list by using filter="custom" and filter...
1
1,586
My app is not showing in google play
<p>I uploaded my app to google-play about 18 hours ago, but it is not showing up. Developer console is saying "Published". I guess it should be viewable at url <a href="https://play.google.com/store/apps/details?id=com.khasbuu.firstaid" rel="nofollow">https://play.google.com/store/apps/details?id=com.khasbuu.firstaid</...
1
1,138
AWS S3 Get object version returns Error Code: 500 Internal Server Error
<p>I've got the following error when retrieving the version of an object stored in my S3 running on Localstack (docker) : </p> <blockquote> <p>com.amazonaws.services.s3.model.AmazonS3Exception: Internal Server Error (Service: Amazon S3; Status Code: 500; Error Code: 500 Internal Server Error; Request ID: null), S3 E...
1
1,865
The Activator X for bundle Y is invalid, caused by ClassNotFoundException: X
<p>When starting my OSGi application in eclipse, I get the following error:</p> <pre><code>org.osgi.framework.BundleException: The activator org.pathvisio.sbgn.SbgnPlugin for bundle org.pathvisio.sbgn is invalid at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:157)...
1
1,325
FFmpeg works out mp3 duration with file input, but fails with pipe?
<p>I am trying to get PCM data from mp3's using ffmpeg, but the files are stored on a database, gridfs, so I am trying to use pipes to give ffmpeg the data with some sucess, however there is one file which ffmpeg handles correctlt if fed the filename as an input, and incorrectly when given the file as a pipe :( any ide...
1
1,568
.htaccess headers being ignored by Apache
<p>I have a website that uses the same core <code>.htaccess</code> details as many other websites; however this website does not properly load the <code>.htaccess</code> directives -- giving a basic HTTP header set of:</p> <pre><code> HTTP/1.1 200 OK Date: Mon, 12 Nov 2018 09:34:28 GMT Server: Apache Kee...
1
2,112
JavaFX Refreshing To repaint a picture in new Location
<p>I'm actually learning JavaFX and trying to make a simple application To juste moove a picture of a charactere with arrow.</p> <p>I did onKeyPressed part wich is working and i'm able to modify the variable locationX and locationY of the object, but the image isn't mooving, is there something like a "repaint()" meth...
1
1,706
How to debug crashing openoffice with pyuno
<p>I'd like to use openoffice to programmatically convert docx to pdf. I know unoconv can do this, and indeed unoconv will do this for me, even if I run a separate listener (using <code>unoconv -l</code>) and invoke <code>unoconv -n</code> (so that it will die if it can't connect to the listener). Accordingly, I assume...
1
2,776