title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to Continously transfer usb serial data to external device in android? | <p>I'm designing an app for usb interfacing, i have a usb cdc device which i want to communicate using my android funbook p280.. i have previously succeeded in making an app for accomplishing the above using buttons to transfer data.. But now, when i try to do the same for continous transfer, my app crashes. I have tri... | 3 | 2,443 |
Local vs Live - Multithreading using SimpleAsyncTaskExecutor | <p>I have a Java-Configuration with this annotaions:</p>
<pre><code>@EnableAsync
@EnableCaching
@Configuration
@EnableScheduling
@ComponentScan("XXX")
public class AppConfig implements AsyncConfigurer {
...
@Override
public Executor getAsyncExecutor() {
SimpleAsyncTaskExecutor executor = new SimpleAsyncT... | 3 | 1,088 |
Cast transactional data | <p>I need to <code>cast</code> my data:</p>
<pre><code>> data.frame(transactionID= c("941214", "941214", "140668","945320","945320","945320"), productCategory = c("A","B","C","B","C","A"))
transactionID productCategory
1 941214 A
2 941214 B
3 140668 C... | 3 | 1,602 |
How to traverse nested array upwards from current record? | <p>I want to traverse array from my current node to last parent node in following way :</p>
<p><a href="https://i.stack.imgur.com/nfHqY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nfHqY.png" alt="enter image description here"></a></p>
<p>Rules:</p>
<ul>
<li><p>Node-1 (take str from text array ... | 3 | 2,078 |
FuelPHP ORM one to one relation is not saving? | <p>I'm trying to execute the following, the array contains some data that should be saved to the timeline table and the rest to the calendar table. However only the defaults or null data gets saved to the calendar while the timeline is updated correctly, the calendar_id field is set to 0.</p>
<p>/controller.php</p>
<... | 3 | 1,144 |
CSS Grid: how do I use minmax() while naming lines? | <p>I'm trying to understand how to use minmax() while also naming lines in a grid</p>
<p>let's say I create a grid with 12 divs and I divide them in 4 column and 3 rows. I want column and rows to be at least 200px and max 400px or other sizes I specified in minmax. I also want to name my lines.</p>
<p>I tried writing t... | 3 | 1,068 |
Take different actions depending on value presence in table | <p>I have table where I add changes in values of particular columns in other tables:</p>
<p>UpdatesLogTable:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>TableName</th>
<th>ColumnFilter</th>
<th>FilterName</th>
<th>FilterValue</th>
<th>Difference</th>
<th>Date</th>
</tr>
</thead>
<tbody>... | 3 | 1,676 |
How to make sure that a string contains a whole word not just part of it | <p>I need some code to make sure that if a whole word exists in a return formatted text file it is accepted and that, if only part of it is present, it is not considered.</p>
<p>If I type lau in the TextField it is accepted and I would rather the answer was false until a whole word is matched</p>
<p>Here is the file li... | 3 | 1,570 |
Android 4.X : NoClassDefFoundError: io/reactivex/Observable | <p>I am using AWS Dynamodb database with Android application. Application is working perfect with higher Android version.</p>
<p>SDK version of dynamodb is <strong>com.amazonaws:aws-android-sdk-ddb-mapper:2.6.15</strong></p>
<pre><code>DynamoDBMapper.save(object); // Crash on this line
</code></pre>
<p>Facing issue ... | 3 | 1,270 |
Ajax not displaying content | <p>So i have part where AJAX updates cart on click. Every AJAX call on my website is working fine except this one where call is processed but it just clears part of the page that should've been updated. So on both buttons click after <code><tbody id="korpin"></code> everything is cleared until next div.</p>
<p><... | 3 | 2,642 |
How do I implement a function prop for the React-Selectize library in Typescript? | <p>I'm currently trying to implement the MultiSelect feature of the <a href="https://github.com/furqanZafar/react-selectize#readme" rel="nofollow noreferrer">React-Selectize</a> library, specifically using <strong>Typescript</strong>.</p>
<p>The <code>MultiSelectProps</code> are defined as such:</p>
<pre><code>export i... | 3 | 1,244 |
How to create a data preprocessing pipeline in pytorch outside the Dataloader class? | <p>I am trying to make a model for data with 40 features which have to classified into 10 classes. I am new to PyTorch and this is my first project in it.</p>
<p>I am given a custom Dataset class (<strong>which I am not allowed to change</strong>) which is as follows:</p>
<pre><code>class MyData(Dataset):
def _init... | 3 | 2,134 |
Aggregate Query and display highest value of non-aggregated columns | <p>how you doing?
I've this question: Is it possible to aggregate a query with GroupBy on #col1 and then display the value of #col2 with the highest date?</p>
<p>It's a problem that I've come accross multiple times and I've always got by using some logic in my code, but if it is possible it's nice to know.</p>
<p>Let m... | 3 | 1,187 |
ACF block moving <style> to <head> | <p>I'm using <a href="https://www.advancedcustomfields.com/resources/blocks/" rel="nofollow noreferrer">ACF Blocks</a> on a site I'm building.</p>
<p>I've registered my block via a plugin, like so:</p>
<pre><code><?php
function acf_blocks() {
if( function_exists('acf_register_block_type') ) {
acf_registe... | 3 | 1,523 |
How to figure out what attribute I need to add and find out how to write them when I make a custom button & text field (also other UIs) | <p>I'm pretty new to Swift and want to ask a question about when we make a custom UI.</p>
<p>The image below is something I made today based on a tutorial video of how to make a custom UI.
<a href="https://i.stack.imgur.com/NQBQU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NQBQU.png" alt="enter i... | 3 | 1,413 |
Facebook shows two separate login dialogs and fails login | <p>I am logging into facebook on Android using <code>facebook android sdk (4.7.0)</code>. Most of the time it shows following dialog and works fine.</p>
<p><a href="https://i.stack.imgur.com/LpczC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LpczC.png" alt="working dialog"></a></p>
<p>But someti... | 3 | 1,495 |
vulkan vkQueuePresentKHR spend a lot of time? | <p>I want to test how long vkQueuePresentKHR will take. But I found a strange thing.
The testing <strong>shader</strong> is a filter, it like this (please omit scrawling area in her face ^^):
<a href="https://i.stack.imgur.com/kcYJK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kcYJK.png" alt="ent... | 3 | 1,494 |
PerformanceCounter RawValue is not changed\modified | <p>I am trying to modify a PerformanceCounter I have created in C#.
But it doesn't seem to be that it is being changed. This counter needs actualy to be a flag : 0 or 1.</p>
<p>I took the following code from the net. It created the collectors category along with the counters well. But the RawValue always shows 0!</p>... | 3 | 1,737 |
Checkbox SharedPreference Not working in Recyclerview Checkbox | <p>I was trying to implement <strong>SharedPreference for storing checkbox checked list in my <code>RecyclerView</code> adapter</strong>.
I am able to Log checked list arrays correctly. but I am not able to save it to shared preference and restore it when app reopens every time.</p>
<p><em>Here is my <code>RecyclerVie... | 3 | 1,398 |
PHP Post data not sending | <p>I have an external class that asks for input and returns the input back to the original page. I have the same setup working on other modules, but it won't work on this one. I have tried renaming the submit name and adding an action page to the form, but have had no luck. </p>
<pre><code><!-- BanPlayer -->
... | 3 | 1,256 |
How to get required keys from multiple JSONs at once? | <p>I want to get keys from several JSON objects which I receive using the requests library. There's a list of names I use for API call in a loop. This is how I try to get the values:</p>
<pre><code>for i in name:
media_info = requests.get(URI)
print (media_info.text)
{"error":"no_transcoder"... | 3 | 1,173 |
Error Cannot access child value on Newtonsoft.Json.Linq.JProperty while reading JSON | <p>I am trying to read the properties from the rest response object. The response is an array of json objects as below. I want to read the properties lastName, titles.investigatorTitle.name, CurrentMembership.currentMembershipType.name</p>
<pre><code>{
"data": [
{
"investigatorID&... | 3 | 2,534 |
angular binding to a popover | <p>I are trying to bind a $scope.model.value to a popover.</p>
<p>With all the articles I have something working by storing a copy in the $scope then using a watch to update it if it changes who ever that is not a viable solution as I want to take the popover and use it multiple times with different arrays.</p>
<p>my h... | 3 | 2,198 |
How to limit number of features plotted on feature importance graph of Decision Tree Classifier? | <p>I am evaluating my Decision Tree Classifier, and I am trying to plot feature importances. The graph prints out correctly, but it prints all (80+) features, which creates a very messy visual. I am trying to figure out how I can limit the plotting to only variables that are important, in the order of importance. </p>
... | 3 | 1,202 |
How to fix VBA error message Run-time Error '1004' Application-defined or Object-defined error | <p>I have the following code to make a column display desired statuses depending on the entries of 2 other columns. </p>
<p>Below are the codes.</p>
<p>Also, can anyone please explain to me what is the point of repeating those conditions in 2 codes <code>Sub compare2 ()</code> and <code>Public Sub single_change(chang... | 3 | 1,516 |
Record Audio and upload file to firebase storage Flutter Web | <p>I am using the <a href="https://pub.dev/packages/flutter_sound" rel="nofollow noreferrer">flutter_sound</a> package to record and play audio. On Flutter Web, on stopping the recording the recorder returns a path/URL of this type: <code>blob:http://localhost:63986/b60f31ce-b94d-48c8-8a4a-2d939effe6d8</code></p>
<p>I ... | 3 | 1,107 |
Nesting promises: make two promise calls back to back, passing values | <p>I am currently building a license system for my electron applications. But I haven't been successful with the following:</p>
<ol>
<li>Make a promise to prompt user for input (electron-prompt module)</li>
<li>Make an ajax call to server right after</li>
<li>Evaluate response (either a 1\n or 0\n from server-side scr... | 3 | 1,162 |
Filter NSMutableArray of dictionary with an exact int dictionary value in Objective-C | <p>I have a NSMutableArray containing nsdictionary objects. </p>
<pre><code>`[
{
"IId": 0,
"BookSLNo": 0,
"RollNoOrEmpId": "0",
"BatchId": 38,
"Batch": "NA",
"UserId": 20,
"Name": "Kaiser Ahmed Khan",
"NickName": "",
"GenderId": 1,
"Ge... | 3 | 2,899 |
Why my carousel from Bootstrap Examples page not working? | <p>I am doing a web page with Bootstrap, and I want to add a carousel. So I went to the Examples page, and looked for the source code of the carousel template (<a href="https://getbootstrap.com/docs/4.5/examples/carousel/" rel="nofollow noreferrer">https://getbootstrap.com/docs/4.5/examples/carousel/</a>). I copy/paste... | 3 | 2,551 |
Join 2 search queries in wordpress Ajax function | <p>Hi I have tried everything to join the results of a common search with a sku search but nothing seems to work , it will either show the common search or the sku, not both, any help woulf be appreciated </p>
<pre><code>if (!function_exists('yolo_result_search_callback')) {
function yolo_result_search_callback() {
... | 3 | 1,881 |
Not sure what I'm doing wrong with this Jquery | <p>So, I'm working on an HTML based site using Image maps and I've created some in-line DIV's with buttons working.</p>
<p>I've been creating a second area that should launch Jquery to hide/show forms inside of a button, but For some reason the scripts do not work when launched via <code><script src="Domain.tld... | 3 | 7,606 |
WPF: Binding Pictures to a grid locks them | <p>I found questions with almost the same problem, but not a good answer:</p>
<p>I download some pictures with a backgroundworker and set them in a listview, something like this:</p>
<pre><code> void _backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
{
try
{
lsvHeros.Dispatc... | 3 | 1,640 |
How to preload sounds without adding it to the timeline and playing ogg with mp3 as fallback? | <p>I managed to get sounds to work the way I want, but I'm a bit confused how to preload things. I have 2 sound formats:</p>
<pre><code>sounds/myAudioLoop.ogg
sounds/myAudioLoop.mp3
</code></pre>
<p>I want to use ogg, but in Animate, I can only insert mp3 to the timeline:
<a href="https://i.stack.imgur.com/0hRLP.png" r... | 3 | 1,936 |
Filter with combobox with datatables | <p>I'm filtering the individual table column searching select inputs. It's working, but I wanted to be able to select more than one product.</p>
<p>Normal works, as I show:</p>
<pre><code>initComplete: function () {
this.api().columns().every( function () {
var column = this;
... | 3 | 1,221 |
Querying Javacard Applet in Netbeans using APDUs | <p>I am a newbie in javacard applet development for smart cards. I got the classic applet code that almost all documents reference. However, I am failing to run or query the card (<em>running these operations</em> verify,credit,debit,getbalance) using command APDUs in netbeans. Could you kindly share the commands snipl... | 3 | 2,559 |
Link two layouts in android | <p>I am trying to link my two Android layout and make the process.</p>
<p><strong>MainActivity.java</strong></p>
<pre><code>public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(... | 3 | 9,241 |
Untraceable error when building a SOAP request from a WSDL | <p>I have a Java Application in Netbeans 7.3.1 and am using a <code>wsdl</code> to create a <code>SOAP Request</code>. I am using <code>Metro</code> and <code>WSIT</code> to sign the request. When I attempt to build / send the request, I receive the following error:</p>
<pre><code> com.sun.xml.wss.impl.XWSSecurityR... | 3 | 1,452 |
How to create/add a column as a return output in an SQL select query based on another column's values? | <p>I have dynamically added a column (<code>industry_type</code>) to a SQL view using Case statement. Now I would like to use that same column name/values to add another dynamic column with <code>industry_group</code> output. I tried using the same method to create <code>industry_group</code> column. But I am unable to... | 3 | 1,265 |
How do I print sql rows in JSON using golang? | <p>I understand how to return JSON using the gorilla/mux go package but i want to be able to print JSON also in development without having to wrap it to route endpoint</p>
<p>I have the following code and want to list users from postgresql database</p>
<pre><code>package main
import (
"encoding/json"
... | 3 | 1,240 |
Handshake Issues Tornado Server and ESP32 Client | <p>I am unable to establish a websocket connection. I use an esp32 as an Client and an Tornado Webserver as Host.
I can connect to the Host with Javascript, but I can also connect the esp32 to websocket.org.
Only the connection between the esp32 and the Tornado Server doesn't work.</p>
<p>ESP32 Code (Arduino IDE):</p>
... | 3 | 1,530 |
Spline HighChart not plotting lines using angular 4 | <p>I am building a spline high chart in angular 4. I have build the series and can see the data while adding it to the series however the series for some reason doesn't seem to be assigning to the chart. If i hard code the values in the series array in the spline chart component it plots the lines. There is something w... | 3 | 2,069 |
Tcp server WritePendingException although thread locks | <p>I've written a simple asynchronous tcp server with the nio.
The server should be able to read and write at the same time for each client.
This I've implemented with a simple packet queue. </p>
<pre><code>public class TcpJobHandler {
private BlockingQueue<TcpJob> _packetQueue = new LinkedBlockingQueue<TcpJ... | 3 | 1,333 |
Accessing methods of a child object, through a Dictionary | <p>New programmer, using C# and VB 2015, first time post so please be gentle!</p>
<p>Basically I am using Dictionary for the first time, and I am trying to access the method useMedPack() which inside my MedPack class, which is a child of Item, which is being created when adding it to my Dictionary. The problem is that... | 3 | 1,244 |
500 Authenticating on Laravel Echo Server Class App\\Http\\Middleware\\Authenticate:api does not exist | <p>I'm getting an error with private channels with Laravel Echo Server.</p>
<p>laravel-echo-server.json</p>
<pre><code>{
"authHost": "https://testapi.test.com",
"authEndpoint": "/api/broadcasting/auth",
"clients": [],
"database"... | 3 | 9,294 |
Another How to start Python file at Windows Startup but | <p>I fount a lot of <strong>How to start Python at Windows Startup</strong> but maybe I have something different here...</p>
<p>I made a Task Schedulation at Windows Startup (I want it before User loggin in) with a .vbs
The VBS run correctly, but the .py file doesn't run.
The VBS log to FILE.log correctly, but the Pyth... | 3 | 1,580 |
Making a certain log in pattern go to another page location | <p>I am constructing a social networking site. Users who register and log in correctly are redirected to <code>home.php</code> with a <code>$_SESSION</code> made accordingly.</p>
<p>But I have manually made an admin user with the username of <code>freddy</code> (the username is required to log in). What I am trying to... | 3 | 1,158 |
forced alignment with aneas | <p>I am trying to build a simple dataset for speech recognition using aneas, following the instruction <a href="https://medium.com/@klintcho/creating-an-open-speech-recognition-dataset-for-almost-any-language-c532fb2bc0cf" rel="nofollow noreferrer">here</a>. However I'm stuck at the forced alignment, here is my code</p... | 3 | 1,261 |
Is it possible to make the img tag display svg images that cointain addresses inside it? | <p>I have created the following SVG file:</p>
<pre><code><svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="150" height="150">
<rect
x="5"
y="5"
width="140"
height=&q... | 3 | 1,230 |
Hibernate joining two table | <p>It is only recently that I am on top of the hibernate framwork and I can not get a join between two tables as a result. Could you help me understand where I'm wrong?</p>
<p>My Oracle Query is:</p>
<pre><code>select * from ld_folder_scan ls, ld_folder_scan_content lss where ls.folder_id = lss.folder_id and ls.folde... | 3 | 2,479 |
Set a different hero image on main layout according to the post/url (retrieving the data from graphQL) [GATSBY] | <p><strong>EDIT</strong>: There is a demo on this <a href="https://github.com/anonimoconiglio/gatsby-for-debugging" rel="nofollow noreferrer">Github repository</a>.</p>
<p>I need to change the main layout hero-image of my blog according to the post/page (its slug).<br>
Every post has a hero-image, setted in the frontm... | 3 | 1,922 |
Masonry like layout with flexbox | <p>I am trying to achieve and Masonry like layout with flexbox only.</p>
<p>i figured i would need to use a mix of columns and rows, but what i cant achieve is that the elements will all have the same distance (like stacked) below and above each other, as well as the second element in the first row wont align towards ... | 3 | 4,755 |
query xml using xsd attributes | <p>I have an XML document that includes an inline XSD (shown fully below). the problem is that i need to search the XML content using attributes imputed from the XSD - preferably in LINQ (XPATH also works). </p>
<p>So, in the example below, I would want to find the element <code>CATALOG_NAME</code> by inferring off th... | 3 | 1,476 |
NullPointerException when using KeyListener to use setText | <p>This is a word guessing game. The first letter is shown everytime and they rest is not. Whenever a user types I want it to change the letters on the board, here is a screenshot: <a href="http://puu.sh/7moQS.jpg" rel="nofollow">http://puu.sh/7moQS.jpg</a></p>
<p>Error:</p>
<pre><code>Exception in thread "AWT-EventQ... | 3 | 2,292 |
Counting how many certain JSONObjects a JSONArray has | <p>I'm trying to get the number of JSONObjects of a JSONArray.
My JSONArray is like</p>
<p><code>varArray: [{"value1_1_1":0},{"value1_2_2":0},{"value1_4_1":0},{"value1_5_3":0},
{"value1_8_3":0},{"value1_1_9":0},{"value1_2_6":0},{"value1_4_1":0},{"value1_5_7":0},{"value1_8_9":0},{"value1_1_1":0},{"value1_1_1":0},{"valu... | 3 | 1,641 |
Google Sheets to Slack fails to update the same block | <p>I am trying to figure out how to update the same block in slack when a user interacts with a button. Currently I am able to create a new block message in Slack after user interacts with the button, but I want to update the original message.</p>
<p>This is my function to send the initial block:</p>
<pre><code>functio... | 3 | 1,456 |
code within if/else statement in do/while loop | <p>So heres my code and im running on repl.it and theres an error when I get to the do while loop at in the main code. No loop works inside the main code even when I don't use any of the functions within the loop. So for example I tried a simple while loop with if/else just display random things that were completely un... | 3 | 1,354 |
Using a List value index stored in a variable trows an error while using List value directly works fine Flutter | <p>In my screen I have on half a screen a <code>ListView</code> that shows all booking records from local db which get stored in a <code>List<Booking> bookings</code>, on the other half I have a detailed view for the selected booking item from the ListView.
In the detailed view I also have 3 buttons that send pus... | 3 | 2,215 |
Delete sql table data then insert multiple variable amount of rows | <p>Could anyone help please?
trying to create a page for calendar entries for a band that they can update themselves on their own site.</p>
<p>html entry page:</p>
<pre><code><form action="addgigtimes.php" method="POST">
<fieldset class='multi'>
<legend><h5>Gig 1</h5></legend>
<... | 3 | 2,035 |
How can I divide grouped array-object by length? | <p>I have the following data retrieved from a database</p>
<pre><code>var members = [
{ "name" : "a", "department_id" : 1, "department_name" : "aaa" },
{ "name" : "b", "department_id" : 1, "department_name" : "aaa" }... | 3 | 1,618 |
Laravel websockets `Failed to connect to Pusher.` | <p>I have the following problem with my websocket setup on local:
Once an event arrives at the backend, I want to trigger another event from the backend side.
But for some reason, the websocket terminal is telling me, that the connection to pusher failed. and after that message, the event i want to trigger is fired any... | 3 | 1,077 |
How would I add sliders to increase the sides of my Polygons, and draw more of them without refreshing the page? | <p>Currently I'm drawing vertices to create polygons, I would like to add sliders to allow a user to increase or decrease the amount of sides the polygons have and the amount drawn. Also having the canvas update with refreshing.
I've tried adding a slider to control the noOfSides but I've had no luck.
Thanks for your t... | 3 | 1,039 |
Error message "The multi part identifier could not be bound" | <p>My code is:</p>
<pre><code> ,CASE WHEN ResidenceInd = 1 THEN 'Residence' ELSE 'Day' END AS ClassType
,sc.Score
,'1' AS IsLP
,IncludeInGraph
,LessonOrder
FROM (
SELECT
sc.SchoolId
,sc.StudentId
,sc.DSTempSetColCalcId
,dcal.CalcType
,hdr.LessonPlanId
,hdr.StdtClassId
,Cls.Resid... | 3 | 1,363 |
Reading data in python? | <p>I am trying to read data in Python one way I do it is like this </p>
<pre><code>states = """
Alabama
Alberta
Alaska
Arizona
Arkansas
Bob
Tom
Ted
William
"""
states_list = [w.strip().lower() for w in states.splitlines() if w]
</code></pr... | 3 | 1,186 |
Selecting a cell shows a button and deselecting hides the button | <p>I want a button to show when i select a cell, when i select the same cell or another cell i want the button to hide. So one button should only be visible at a time.</p>
<p>What i have:</p>
<p><strong>in my .h file:</strong></p>
<pre><code>@property (strong, nonatomic) NSIndexPath *isselectednow;
</code></pre>
<p... | 3 | 1,682 |
The final word on fluid images contained within percentage-based elements? | <p><em>Trolls: apologies for the long post, but I want this to be the go-to question on the subject, so I'm putting the time in to make it thorough.</em></p>
<p>Take this HTML:</p>
<pre><code><div class="parent">
<img class="child" src="some-image.jpg"/>
</div>
</code></pre>
<p>And this CSS:</p>
... | 3 | 1,291 |
Spring Data - one service class to handle common operations on entities (how to autowire JpaRepository) | <p><strong>Main question</strong> - I want to write a service (say CommonService) to handle common operations like find, count etc. for a range of entities (there is a reason why I cant use the JpaRepository out-of-box methods as explained below). How can I autowire a JpaRepository to achieve this? Details - </p>
<p><... | 3 | 1,491 |
Assist with MySql Query - Update based on select between tables | <p>I've been hitting my head against the wall about this problem for the last 8 hours and I still can't find a solution.</p>
<p>This was my first post on stackoverflow, so sorry if I'm committing any kind of mistake writing this post.</p>
<p>Based on previous answers, I have to agree that CREAT VIEW might be a better a... | 3 | 1,897 |
Azure Function slow HTTP requests compared to when running in localhost | <p>I'm using a Azure Function .Net 6 Isolated.</p>
<p>When I run the function on localhost from VS2022, it is 5 times faster then when I deploy it to Azure Function. Localhost is a VM hosted in Azure in the same region as the function.
I tried different Service Plans, but issue remains. (Consumption Plan, Elastic Premi... | 3 | 1,080 |
why Multipart/form-data removing Nill in response Mule Dataweave | <p>Please find my request having tag <code><Date xsi:nil="true"/></code> when it crosses the <code>Multipart/form-data</code> dataweave it is removing the <code>xsi:nil="true</code> part which is not expected in my scenario. I wanted that to be out as the same.</p>
<p>Also it is removing the namespace which is n... | 3 | 1,281 |
MasterDetailsView not showing master list items despite setting properties | <p>After following Microsoft's code for the <code>MasterDetailsView</code> control, the master list appears blank and doesn't show any items at all? Why has this happened and how can this be fixed?</p>
<p><em>MasterDetailPage.xaml</em></p>
<pre><code><Page
x:Class="MyApp.MasterDetailPage"
xmlns=&qu... | 3 | 4,964 |
when i am pressing hardware back button picker is getting called from that page | <p><a href="https://i.stack.imgur.com/hyM5G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hyM5G.png" alt="enter image description here"></a>I have picker on page when I am calling picker and value selected and pressing hardware back button that picker is getting called again. I tried disabling back... | 3 | 6,822 |
using google maps route drawing app crashes | <p>when I start onActivityResult I get Intent and my markers are on the google map, but route between markers is not drawn and after second or two my program crashes. My code and log:</p>
<pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if(requestCode == 1) {
... | 3 | 4,393 |
changing state in asynchronous function call back has unexpected results | <p>I am trying to implement an alerts system in my app where the component <code>AlertBox</code> contains a list of alerts that are removed after 10 seconds after an animation has finished or by pressing the close button I pass a <code>closeFunction</code> as a prop to be called with the alerts id the close function wo... | 3 | 1,586 |
Unable to load credentials from any of the providers in the chain | <p>Trying to use S3 client in my ECS app for uploading files into S3 bucket (let's call it <code>bucket1</code>),<br />
S3 client is instantiated as follows:</p>
<pre><code>import software.amazon.awssdk.services.s3.S3Client;
private S3Client getClient(){
return S3Client.builder().build();
}
</code></pre>
<p>Tas... | 3 | 1,071 |
Why did If statement dispose TextFormField in flutter? | <p>In my app I need to preview a table which appear if the user entered some data. So I added a if statement. There is a button to clear the form too. My TextFormField is placed under the table. It won't get disposed until I clear the form. But after I clear the form it get disposed. I added another TextFormField benea... | 3 | 3,244 |
D3 - word cloud, Chinese text implementation | <p>I'm trying to visualize a speech that has been transcribed to Chinese text. I tried pointing to the whole text file as well as a simple hard coded text string, but no matter what, I'm getting no errors. For this reason, I am unsure how to troubleshoot further.</p>
<p><div class="snippet" data-lang="js" data-hide="t... | 3 | 1,798 |
Why do my components not re-render when redux store updates? | <p>I'm working with React Native and I'm trying to update my HomeScreen Component by dispatching an action to the store, however when the store's state changes, the component doesn't automatically re-render and i'm not sure if it's because i'm connecting incorrectly, or my navigation is setup incorrectly with redux. </... | 3 | 3,176 |
Using sketch up data to render a cube in Xcode | <p>I am playing around with the OpenGL ES template in Xcode 4.5. I draw a cube in Google Sketchup and exported into collada. I copied the vertex and normal data into the open gl template in Xcode as below:</p>
<pre><code>GLfloat gCubeVertexData[] =
{
// Data layout for each line below is:
// positionX, positio... | 3 | 3,182 |
ASP.NET, CSS and jQuery | <p>I have this aspx page:</p>
<pre><code><!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Some Title</title>
<link href="css/home.css" rel="stylesheet" />
<script src="js/jQuery.js"></script>
<script src="js/dra... | 3 | 1,278 |
EXPRESS js : Urls giving incorrect contents | <p>I have the node server server.js and two other js files where am fetching data courses (courses.js) and reviews (reviews.js)</p>
<p><b><code>Server.js</code></b></p>
<pre><code> const express = require('express');
//import express from 'express';
const bodyParser = require('body-parser');
//import bodyParser fr... | 3 | 1,996 |
GC Issue when running tomcat with TLSv1.2 | <p>We have been facing a performance issue with tomcat7/java8 when we run it with ssl enabled.</p>
<p>We see frequent long Full GC's occurring and the other strange behavior that we observe is - the first Full GC is not able to collect much from old gen but in the second subsequent run it collects a lot of garbage and... | 3 | 1,418 |
tensorflow batch normalization after a restore | <p>Let us say that we create a small network:</p>
<pre><code>tf.reset_default_graph()
layers = [5, 3, 1]
activations = [tf.tanh, tf.tanh, None]
inp = tf.placeholder(dtype=tf.float32, shape=(None, 2 ), name='inp')
out = tf.placeholder(dtype=tf.float32, shape=(None, 1 ), name='out')
isTraining = tf.placeholder(d... | 3 | 1,199 |
Compilation error while migrating Jersey from 1.x to 2.x | <p>My pom file contains:</p>
<pre><code><dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
<version>2.22.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<arti... | 3 | 1,726 |
JavaBridge - Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe" | <p>I am trying to setup a JavaBridge between my Java-application and Apache/PHP application. First I tried through CLI => </p>
<pre><code>MacBook-Pro:php-java-bridge_5-2 username$ java -classpath JavaBridge.war TestInstallation
Starting a simple servlet engine: [/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Conten... | 3 | 1,469 |
How can do I print accuracy and validation accuracy for my SVM model? | <p>I'm currently trying to see the difference between the accuracy and validation accuracy for my SVM model, so that I can see if over fitting or under fitting has occurred. However, the output of my model shows like this:</p>
<pre><code>Evaluating classifier on test data ...
precision recall f1-score... | 3 | 1,379 |
Safari web push notifications APNS returns 200 status, but notification not delivered to device | <p><strong>Issue</strong></p>
<p>Sending Web Push Notifications to APNS returns a "200" OK status, but the notification never reaches my Mac computer.</p>
<p><strong>Requesting permission to send Web Push Notifications</strong></p>
<p>Created "Website push id" in developer.apple.com, wrote scripts t... | 3 | 1,483 |
Use of unassigned local variable in an if statement | <p>So I'm trying to start coding again(done a year in college before and thinking of going back but need to get back into swing of things. Doing this simple console application and getting this error.</p>
<p>Use of unassigned local variable</p>
<p>I tried setting calories to null, 0, 200 etc in different parts of
co... | 3 | 1,396 |
Reading a C struct from POSIX shared memory in Python 3 | <p>There exists a block of shared memory containing a C <code>struct</code> which itself contains an array of <code>struct</code>s. What I'm after is deeper in that array. The layout in source looks roughly like the following:</p>
<p>(tl;dr - how would you do this?)</p>
<pre class="lang-c prettyprint-override"><code>... | 3 | 1,565 |
how to solve django: UnboundLocalError | <p>I have the given view and template code, when i try to run this code i get the following errors.when i searched about this type of error,i found that it happens when a variable and function is given the same name,but could't correct it in my code.</p>
<pre><code> Environment:
Request Method: GET
Request URL: htt... | 3 | 1,804 |
How to make buttons run code on correct row after sorting the rows? | <p>I have a spreadsheet where the rows are individual projects and the columns are the information about of that project.</p>
<p>The columns I am dealing with are for a technician to make a service call so I have: Tech Name, Site Contact, Date, Time and duration.</p>
<p>In the next column I have a button that once cl... | 3 | 1,598 |
C++ mistakes with linking virtual function | <p>I got a weird problem with C++. Well, I tried to write an a simple program on seven separated files. Everything was going well, until an error occurred which caused that I can't go any further. Can someone tell what have I done wrong ?</p>
<p>main.cpp</p>
<pre><code>#include <iostream>
#include "item.hpp"
us... | 3 | 1,824 |
Some records are not being saved in nested forms | <p>So im doing this quiz app.
This is my quizzes controller:</p>
<pre><code># encoding: utf-8
class QuizzesController < ApplicationController
before_action :set_quiz, only: [:show, :edit, :update, :destroy]
before_action :authenticate_user!
# GET /quizzes
# GET /quizzes.json
def index
@quizzes = Quiz.... | 3 | 4,925 |
Portable recursive regex substitution within a string to resolve .. in path | <p>In Bash, what is the most elegant and portable way to resolve all occurrences of <code>..</code> within a string representing a path?</p>
<p>Example: path <code>/aa/bb/cc/../dd/ee/../../ff/gg/hh/ii/jj/../../../kk</code> becomes <code>/aa/bb/ff/gg/kk</code></p>
<p>I wrote two functions that mostly accomplish this g... | 3 | 1,393 |
Tool or Help-tip not applying to all multiple fields | <p><strong>Updated image after code change</strong></p>
<p><a href="https://i.stack.imgur.com/BmItJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BmItJ.png" alt="enter image description here"></a></p>
<p>But from my below code ,the 'help-tip' class appears for only one field.</p>
<p>The existin... | 3 | 1,564 |
FIFO Process Scheduling Using Threads | <p>I am trying to create a First in First Out Process Scheduling using threads. After each thread has completed, i want it to suspend it or move it to a wait queue for a random number of ticks between 10 and 20 and then have it jump back in. I want the whole simulation to run until 250 ticks and then terminate but i ge... | 3 | 1,625 |
Why is my tableView blank? Am I not reloading my datasource correctly? | <p>Both of the NSLog's in <code>viewWillAppear</code> and <code>numberOfRowsInSection</code> are showing the data I'd like to populated in the tableView. </p>
<p>I thought this problem had something to do with returning the correct count but, since the NSLogs match, I'm not sure that that's the problem.</p>
<p>Also, ... | 3 | 2,463 |
React: Prevent large tree structure for re-rendering children | <p>I have a tree/directory structured data with around 14k nodes.
I want to prevent all children of the tree from re-rendering since it takes a bit too long. A node can be expanded and minimized when clicking a button, which adds the id of the node to an <code>expanded</code> <code>Set</code> saved in Redux state. Curr... | 3 | 1,252 |
Named Pipes C# Server C++ .dll Client Not Working? | <p>So I'm trying to use Named Pipes to communicate between a C# server and C++ .dll client that I will inject.
My named pipes works fine when used with a C++ Console App but when I use the same method in the .dll the Server and Client connect fine but when I try use NamedPipeServerStream.Write() my C# app freezes. They... | 3 | 1,475 |
How to implement nested composite types with pgx/pgtype | <p>To avoid complex 1-to-1 mappings between Postgres tables, I thought it would be a good idea to use composite types instead. So I created these two types, and a table to hold them:</p>
<pre class="lang-sql prettyprint-override"><code>CREATE TYPE my_point AS (x INTEGER, y INTEGER);
CREATE TYPE my_rectangle AS (p1 my_p... | 3 | 3,359 |
How can I remove the padding and center this element? | <p>I've been trying to center and remove the bottom-padding of the 'filter' image for a couple hours now but can't seem to do it. It's probably a really simple fix, but I'm pretty new to CSS, HTML and flexbox and the solution has escaped me so far! If someone could point me in the right direction, that would be awesome... | 3 | 2,027 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.