title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
It needs to connect to a database, but it doesn't.
<pre><code>&lt;?php session_start(); $host="localhost"; $username="root"; $password=""; $db_name="registrering"; $tbl_name="users"; $conn = mysqli_connect($host, $username, $password, $db_name); if(!$conn) { die("Connection failed: " . mysqli_connect_error()); } ?&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;use...
3
1,213
Update UDP checksum in fragmented packets
<p>I'm building a network appliance. I need to support NAT and IP packet fragmentation. When I change the source or destination address of a UDP packet, I have to correct the UDP checksum (and the IP checksum too, but that's trivial). When the packet is fragmented, I'd have to collect all the fragments to recalculate t...
3
2,111
ElasticSearch cannot find an exact value that exists in a string field
<p>When I do an empty query to list some results, I see the values are there. Ex:</p> <pre><code>{ "took": 6, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": { "total": 3024, "max_score": 1.0, "hits": [{ ...
3
3,699
Save System.Windows.Forms.Keys as Setting
<p>I'm making a program that uses hotkeys for various things. These hotkeys will be user-settable, and thus it'd be nice if those would be saved on exit. Since the amount of keys on a keyboard is pretty large (including the OEM keys and such), I don't feel much warmth towards a huge monstrosity of IF clausules. </p> ...
3
1,245
Angular Checkboxes not Binding Properly
<p>Having trouble figuring out this problem involving an Angular checkbox form generated from an API.</p> <p>I can create a checkboxes but two problems: The checkedness of the boxes does not match the values in what's coming from the API, and when I click the checkboxes the name value changes from its default to "tru...
3
1,230
I want the php results to be displayed on the same page instead of a completely new page
<p>I'm trying to search by name and display the results on the same page. My php code and the html code are in 2 separate files. Given below is my search.php code.</p> <pre><code>&lt;?php include_once '../connection.php'; include_once '../session.php'; $output = ''; if(isset($_POST['search'])){ $searchquery...
3
1,422
why is the MUD server not receiving data?
<p>I'm making a mud client, and I'm using Duris to connect. But the server doesn't seem to receive what I have been sending it, as its sending back idle timeout after waiting a minute or so. please note that I'm new to sack overflow, I do not yet understand how to use the code block. If someone can tell me what encode ...
3
3,982
TypeError - Attempting to SQL Insert : sequence item 0: expected str instance, dict found
<p>I have a fairly large pandas DataFrame that I am attempting to <code>INSERT</code> into a <code>MySQL</code> table.</p> <pre><code>import pandas as pd # mysql connection import pymysql from sqlalchemy import create_engine user = 'user' pwd = 'xxxxx' host = 'x.com' port = 3306 database = 'dbname' engine = create_...
3
1,089
How to set click event to all the anchor tags and display the related div with less script?
<p>I have more than 4 anchor tags. </p> <p>For example:</p> <pre><code>&lt;div&gt; &lt;a href="javascript:void(0);" class="open_popup"&gt;Click me 1&lt;/a&gt; &lt;a href="javascript:void(0);"&gt;Click me 2&lt;/a&gt; &lt;a href="javascript:void(0);"&gt;Click me 3&lt;/a&gt; &lt;a href="javascript:void(0...
3
1,355
CSS Menu Slide Down
<p>I am trying to get my menu to slide down on hover (looks like slowly moving as opposed to just popping up). I have found a lot of things to try but nothing seems to work which makes me think I am putting code in the wrong places. </p> <p>Since the drop-down menus are different heights I was trying to use max-height...
3
1,849
Android app camera preview stopped working (using deprecated `setType` method)
<p>I have a camera app that had a Camera Preview which worked. The app was developed some years ago (2012) and i decided to reuse parts of its code, but, upon testing again (on same hardware i9100, different OS 4.4 vs 3.0), my camera preview image has a problem</p> <p><a href="https://i.stack.imgur.com/wrCdw.png" rel...
3
1,115
Partition Table Update Slow
<p>I have an issue with one of my MSSQL tables. The table has 1.2 Trillion rows about 1TB of data and growing. The table is partitioned into 8000 partitions, only about 800 are used. The others were created for expanded growth. </p> <p>Inserts and selects are &lt; 1s My problem is Updates are very slow. To up...
3
1,361
Why jquery validation plugin not let the form submit in first click?
<p>I am developing portal for my client and here i am using jquery validation plugin in this project for the register form, its not let me the form submit in first click ? What issue here ? I attached jquery code here, please can help me...</p> <pre><code>$(document).ready(function(){ $('#register-form').validate({ ...
3
1,947
XSLT grouping every 4 adjacent elements
<p>I have a xml like below.</p> <p><strong>Source XML:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="Windows-1252"?&gt; &lt;XML&gt; &lt;Attributes&gt; &lt;Attribute&gt; &lt;Name&gt;Collection&lt;/Name&gt; &lt;Value /&gt; &lt;/Attribute&gt; &lt;Attribute&gt; &lt;Name&gt;A&lt;...
3
1,223
jquery .slideUp acting strange when invoked more than once
<p>EDIT : would help if my tags were closed...no improvement alas.</p> <p>What I'm trying to build is relatively simple. A slot machine-like interface with "rolling" images that eventually will slow down and stop. I'm using jQuery's .slideUp() function to do so, and it works well when applied to a single panel. But w...
3
1,562
openapi-generator-maven-plugin generate AsciiDoc Description with formatting
<p>I am using the openapi-generator-maven-plugin version 5.4.0 to convert my OpenAPI.json file to AsciiDoc. Inside my OpenApi.json specification I have set some formatting to the path parameter description:</p> <blockquote> <p>&quot;description&quot;: &quot;TestDescription \n Line2 TestDescription&quot;,</p> </blockquo...
3
4,419
How to make a function that inserts a node into the front of this queue?
<p>This is code is from geeksforgeeks, and I'm trying to use it for a round robin scheduler. Normally, the function enQueue() adds the node to the back of the queue, and since I didn't write this, I'm unsure of how to modify the push() function to insert to the back. My only attempt kept resulting in a segfault. </p> ...
3
1,248
Android Navigation Drawer with fragments that open other sub fragments
<p>I'm developing an Android app (I'm a newbie) that uses a Navigation Drawer. I've created multiple fragments that represent the various item in the side menu. One of them has a RecyclerView, and I want to show another fragment with various details when the user clicks one of the item of the RecyclerView.</p> <p>I've...
3
2,026
Database not update the value
<p>I am trying to make a social app .. and I want when the user clicks the edit category database should be updated to the new value .. but it is like static not changing to new value .. I don't know the problem in logic or in the code ..</p> <pre><code> private void showCategoryUpdateDialog(String Key) { AlertD...
3
2,844
Allow user to edit profile information and submit it causing page to redirect to profile page.
<p>In django I am attempting to allow that user to edit his/her profile information, press submit, and have the the change reflect in his/her profile page. </p> <p>This is the code : </p> <p>In the views.py document in my application </p> <blockquote> <p>User is allowed to view the profile page</p> </blockquote> ...
3
1,066
Efficient sub-string search over large dataset
<p>I have a large dataset <code>tPro1</code> (~500k points). Seen below, the variable of interest is <code>tPro1$Path</code>.</p> <pre><code> Path Row rm 1 &gt;root&gt;aaaa&gt;bbbb&gt;cccc&gt;dddd&gt;hello 1 TRUE ...
3
1,940
The content doesn't appears when I return to the previous activity
<p>I have an Android app, which about writing notes. When I press the Edit button in <strong>Second2</strong> Activity it will move to the <strong>Second3</strong> Activity without any problems (In <strong>Second3</strong> Activity I can edit the note without any problem). But when I press the Save button, it will retu...
3
5,197
How to do loop using Jquery .load from an external xml file
<p>I'm trying to access an external xml stored in the same domain and using jquery .load, I want to do a loop within the the rest of the nodes.</p> <p>Issue: I can only retrieve 1 node using .load. </p> <p>Here's my external xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;Main_List&gt; &lt;link...
3
1,068
JQuery Alert Problem?
<p>I'm trying to get the following code to display only on specific pages but when I click through certain pages like the home page or any other pages that does not use this code I get the following `alert("some error occured, please try again later");.</p> <p>How can I have the code not display the alert box on pages...
3
1,135
Don't save null image data if image was not re-uploaded Asp.net mvc
<p>I have been following the SportsStore example project in Apress Pro ASP.NET MVC 3 Framework book and trying to apply the concepts to my application. One area that is bugging me is that in the sample, I can add an image to a product and it gets saved to the database, but if I edit any given product, without uploading...
3
1,731
when init Retrofit I get error: KotlinNullPointerException
<pre><code>class TransportService { companion object { private val waitressCallRestClient = RestClientFactory.createRestClient(WaitressCallRestClient::class.java) private val TAG = TransportService::class.java.name init { Debug.d(TAG, "TransportService_initialize") } ...
3
1,323
Parsing nested elements from JSON response using a postman test script
<p>I'm using the following Postman test script to check and log the status of a POST. </p> <pre><code>pm.environment.unset("uuid"); var jsonData = JSON.parse(responseBody); postman.setEnvironmentVariable("uuid", jsonData.id); var base = pm.request.url var url = base + '/status?uuid=' + pm.environment.get("uuid"); var ...
3
1,050
Finding nil with optional managedObject, using CoreData and NSFetchedResultsController
<p>I am trying to populate a collectionView with some CoreData. I'm programming in Swift and am using iOS 9. I have most everything hooked up correctly (to my knowledge), but I keep having a crash due to one line of code.</p> <p>Here is the code from my viewController. The line that errors out with nil is "managedObje...
3
1,051
continue in for loop causes nullpointerexception for ArrayList
<p>I have the following function to perform normalization operation of some data.</p> <pre><code>public static void normalization(NormalizedData dataObject) { // Create new arraylist&lt;String&gt; to store the normalized values. ArrayList&lt;String&gt; normalizedValues = new ArrayList&lt;&gt;(); ...
3
1,716
How to use the IF statement to avoid the Weather API fetch result crashing once the user types wrong the city name?
<h4>Summarizing The Problem</h4> <h5>- Details About The Goal</h5> <p> A weather app that renders on the screen the data fetched from OpenWeather API. </p> <h5>- Actual and Expected Results</h5> <p> Whether the user types correctly or not the city name or presses enter in the empty field, no result render on the screen...
3
1,231
display: block squeezing table
<p>I've created a table which holds some data, i was getting an error where my table was being squeezed when i added <code>display: block</code> to which i fixed by using a solution i found on stack-overflow which is <a href="https://stackoverflow.com/questions/45937046/tr-squeezed-when-tbody-is-displayblock">&lt;tr&gt...
3
1,403
jQuery Issue on Animate Border Until Selected Element by sequent
<p>Can you please take a look at this demo and let me know how I can add animation to borders properly so when use clicks on <code>a</code> the all previous borders get the <code>anime100</code> class after each other in a sequence</p> <p>what is happening now is adding the <code>anime100</code> to all anime classes a...
3
1,441
Using PyModule_AddIntConstant() in an extension
<p>I have seen <a href="https://stackoverflow.com/questions/23788140/adding-symbolic-constants-with-hex-values-to-python-extension-module">Adding symbolic constants with hex values to Python extension module</a> and I am trying to reproduce this effect:</p> <pre><code>#include &lt;Python.h&gt; #include &lt;Windows.h&g...
3
1,232
iPhone showing a blank infoWindow fro google maps
<p>The info window shows ok on desktop, and if I set an alert to show the content it will show the correct html code. However, on the iPhone it will just pop a blank info window (No text within it).</p> <p>Here is my code:</p> <pre><code>function showPOICategory(category) { // Icons { ID, Image } // E...
3
1,497
Reading from File - Error "Exception in thread "main" java.util.NoSuchElementException: No line found"
<p>I am writing a program that reads from a file titled &quot;grades.txt&quot; and displays the student's name, three grades, and the average of those three grades.</p> <p>The text file looks like this:</p> <pre class="lang-none prettyprint-override"><code>Bobby Doe 65 65 65 Billy Doe 100 100 95 James Doe 85 80 90 </...
3
1,231
Limit checked , checkbox in bootstrap dataTable
<p>I have this code below to click a checkbox in my <code>DataTable</code> and get the <code>IDs</code> and store in an array. For Example I have a 2 seperate <code>DataTables</code> First is for President and second is for the Senators.</p> <p>We know that we can only vote 1 in President and for Senators we can choos...
3
1,045
How can I solve the error that I get when compiling my mobile app in flutter?
<p><em>This is the error I get when compiling</em></p> <p><strong>An Observatory debugger and profiler on AOSP on IA Emulator is available at: <a href="http://127.0.0.1:55598/YYOpp337z7w=/" rel="nofollow noreferrer">http://127.0.0.1:55598/YYOpp337z7w=/</a> E/flutter (19984): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)...
3
1,282
How can i get my form to redirect to a URL
<p>I want my form to redirect to a url after submitting however i need the form to post to a separate url.</p> <p>So when the form sends the user goes here to a thank you page:<a href="https://www.activetalentagency.com/booking-request-confirmation/" rel="nofollow noreferrer">https://www.activetalentagency.com/booking-...
3
1,172
select: Invalid argument on ssh localforward
<p>I have a config file with localforward settings as below</p> <p>LocalForward 8443 remoteserver.com:8443</p> <p>After I ssh into it in debug mode and start sending many requests to remote server, I see the below lines</p> <pre><code>debug1: channel 1017: new [direct-tcpip] debug1: channel 0: free: port listener, n...
3
1,048
Arrange JSON in tree structure
<p>I have a plain JSON that contasins the id's of its dependentant's objects..</p> <pre><code> var array1= [ { "id": 84, "outputTypeId": 900000000000002, "previousOutputTypeActivitySeqMappingId": null, "isRemoved": false, "isPrimary": false ...
3
1,680
How do I get my nav panel to change color based on the active page?
<p>Currently working on my first solo project out of college for the university's technology department. The home page looks like <a href="https://jsfiddle.net/3toftjko/" rel="nofollow">this</a>.</p> <p>What I want to happen is the navigation (Home, Contact, etc.) to appear as it does on <a href="/questions/tagged/hov...
3
1,844
understanding data structures in perl
<p>I'm trying to understand the 'Common Mistake' section in the perldsc documentation. What is the author trying to convey when he mentions:</p> <blockquote> <p>The two most common mistakes made in constructing something like an array of arrays is either accidentally counting the number of elements or else taking a ...
3
1,848
rxJava. Help to understand how publish and unsubscribe work
<p>I observe strange behavior when using <code>publish()</code> in conjunction with <code>observeOn</code> and <code>subscribeOn</code>. Please take a look at the folowing examples.</p> <p>Code:</p> <pre><code>ConnectableObservable&lt;String&gt; observable = Observable.create( new Observable.OnSubscribe&lt;String...
3
1,308
Trying to simulate cell level TTL in bigtable but whole column family data is getting removed by garbage collection
<p>created a table with the following rules: so with this, data should expire after 1 second (<a href="https://cloud.google.com/bigtable/docs/gc-cell-level" rel="noreferrer">as per docs</a>)</p> <pre><code>async function createTable() { console.log("Creating Table"); const options = { families: [ ...
3
1,151
javascript unable to assign hidden input elements from HTML input tag
<p>i am trying to grab the hidden input value from a form i have. The form passes all the elements properly EXCEPT for the HIDDEN elements. I know they are declared because if I choose "view source" on the page it shows me the correct values (basically the user credentials).</p> <pre><code>&lt;form name="addExperience...
3
1,279
custom filter on angular with an object nested inside a nested array
<p>I have an array with the name of <code>sports</code>, json:</p> <pre><code> [ { "id": 26, "name": "LIVE Betting", "priority": 0, "leagues": [] }, { "id": 8, "name": "NBA", "priority": 3, "leagues": [ { "id": 5932, "parent": 1000, "name": "NBA", ...
3
1,124
MissingPluginException(No implementation found for method initialize on channel dexterous.com/flutter/local_notifications)
<p>I am trying to setup the most basic version of flutter local notifications but I keep getting this error</p> <pre><code>[ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method initialize on channel dexterous.com/flutter/local_notifications) </code><...
3
1,290
Why is this c++ code producing weird characters?
<p>I wanted to simplify algebraic expressions in c++. I started with something simple: removing brackets from a algebraic expression containing <code>+</code> and <code>-</code> operators. For example, <code>a-(b-c)</code> should be simplified to <code>a-b+c</code>. <a href="https://www.geeksforgeeks.org/remove-bracket...
3
1,085
How to fetch (Express) data ONLY once the (React) form-submitted data has been successfully received and served?
<p>I'm currently building a league of legends (a MOBA or multiplayer online battle arena game) search-based web app that essentially allows the user to search for their summoner's name and obtain general information regarding their search input. (The data is provided by the game's own third-party api)</p> <p>I've been...
3
2,406
SQL Pivot to be used in a View
<p>I am trying to create a view that will sum the total hours of different work types, as well as the quantity of different products used to a RefNumber. </p> <p>I have successfully pivoted and summed the hours of work grouped by RefNumber, but now I am scratching my head on how to sum the total product use by Ref Nu...
3
1,912
WCF WebHttp service for both XML and JSON choose serializer based on endpoint address
<p>I'm trying to make a WCF RESTful web service which will return both <code>XML</code> and <code>JSON</code>. The problem is that it's working but for <code>XML</code> serialization it's ignoring the <code>XML</code> attributes.</p> <p>As you can see in the endpoint configuration I have two address like <code>xml</co...
3
2,118
Trouble installing tinyMCE and UniSharp/laravel-filemanager
<p>So Im trying to install tinyMCE with image upload. I successfully install tinyMCE for simple styling but I cant make the image upload to work. I try to installed UniSharp/laravel-filemanager but when I click on the img icon this is what I get</p> <p><a href="http://i.stack.imgur.com/tZ9hq.png" rel="nofollow">Sorry ...
3
1,369
Quick Sort (can't Passing the result)
<p>I am absolutely HORRIBLE at passing functions, and even more so with passing arrays.I've problem with my code, I use Quick Sort for sorting my data from External File. The Function can't passing the sort result. </p> <p>UPDATE : The Function can passing the sort but, sorting in small to big, I want sort big to smal...
3
1,202
Basic Input-Output System in Batch
<p>I've been trying to do basic input/output stuff in batch. In this bit of code, the user puts in a series of directions in the <em>:1</em> section (in notepad) and that sets off a chain reaction that will eventually show one of five images once the file is executed.</p> <pre><code>@echo off :1 set dun1croomnow=5c s...
3
1,877
Super Difficult addClass Delay function w/ diff timed intervals
<p>Total Novice here. I have some list items. I need to add a class of '.go' to each list item, one at a time, spaced out by pre-determined blocks of time. (each block of time will be different durations). </p> <p><strong>For instance:</strong> </p> <ol> <li>the script adds a '.go' class to the first (li)</li> <li>th...
3
1,350
forEach method seems to skip an entry
<h2>Aim</h2> <p>I am trying to make a function which would take an array of &quot;votes&quot; and return an object containing the number of times each &quot;candidate&quot; received a score of 1.</p> <p>For example an array such as:</p> <pre><code>[ { &quot;blue&quot;: 1, &quot;red&quot;: 3, ...
3
1,152
ggplot2 question: Error in FUN(X[[i]], ...) : object 'HR' not found
<p>I'm stuck with a ggplot2 question. This time I'm using two datasets to plot them in ggplot2 (1=6 polygons overlapping together, 2=5 GPS points). I can plot them both separately, but not together in the same plot.</p> <p>Every time I do that, I get this error code: Error in FUN(X[[i]], ...) : object 'HR' not found</p...
3
3,321
Can't log in or add new admins after delete was created
<p>I'm in a course in udemy about web development and I've found that the code showing have some errors (i'm not the only one), so after more than a month without answer from the tutor I would live if you could help me.</p> <p>This code is about making a log in to the &quot;admin&quot; área, creating new admins, editin...
3
4,449
tf.nn.softmax behaving strangely
<p>I am learning LSTM with tensorflow with enable_eager_execution. However when implementing LSTM, I have noticed the behaviour of tf.nn.softmax that has made me stuck. Here is a section of my code</p> <pre><code>class RNN_LSTM(object): def __init__(self,hidden_size): data=open('Shakespear.txt', 'r').read...
3
4,321
Google transliteration Language Selection
<p>I'm trying to implement google transliteration in my website. It's working on all supported Indian languages. But when I select English it shows some error like 'Unsupported language en in targetLangCode array'. Please help me to resolve this issue. </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv=...
3
1,295
Displaying a window in C#
<p>I am trying to create a WPF UI for an little toy program I have written in C#. The program just finds the shortest path between two points. The display creates a grid of squares that display the type of cell it is (empty space, asteroid, gravity well, gravity influenced, start, finish, and path).</p> <p>What is the...
3
2,432
Get JSON value to Array
<p>I need to get the JSON value from MYSQL and display it in the table view. I have done PHP part to receive data but I have error with my XCODE. My data will store temperature, humidity and digital status (on off) of sensor. I have questions below:</p> <ol> <li>How to get ON/OFF JSON value and store in Bool array?</l...
3
2,633
Using Babel to Get ApolloClient to ES5 CommonJS Module Format for Node Environment
<h1>Using Babel to Get ApolloClient to ES5 CommonJS Module Format</h1> <p>Im trying to use Babel to get the apollo-client module to work as ES5 in a non-browser, node environment. I've gone through step below which always give me the same result. Im trying to figure out if that result is right result for a node envir...
3
4,169
What is the correct method to redirect to the returnurl after logging in to an MVC ASP.Net application?
<p>Here is my login controller</p> <pre><code> // POST: /Account/Login [AllowAnonymous] [HttpPost] public ActionResult Login(LoginModel model, string ReturnUrl) { if (ModelState.IsValid) { if (Membership.ValidateUser(model.UserName, model.Password)) { ...
3
1,085
Error when programmatically adding a DeskBand
<p>I'm trying to add a DeskBand object to the system tray programmatically using this code:</p> <pre><code>[ComImport, Guid("6D67E846-5B9C-4db8-9CBC-DDE12F4254F1"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface ITrayDeskband { [PreserveSig] int ShowDeskBand([In, MarshalAs(UnmanagedType....
3
1,159
I' cant display variable of my object in html in Angular
<p>I have problem with display values of object config in html (I think so).</p> <p>This is my component:</p> <pre><code>import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { config: ...
3
1,339
binding drop down list according to id PHP
<p>I would like to display drop down list according to the database below. (bom table)</p> <p>For example, when I choose 'Table' from the drop down list, it would display the bom_description, bom_quantity and UOM.</p> <pre><code>bom_id |bom_description |product_id |finish_product |bom_quantity |UOM 1 Table Top...
3
3,581
Getting for line in plaintext.split('\n'): UnicodeDecodeError: 'ascii' codec can't decode byte 0x96 in position 2: ordinal not in range(128)
<p>I'm going to design sentimental analysis on twitter data using nltk tutorials but not able to run following code</p> <pre><code>import pickle import random import nltk from nltk import pos_tag from nltk.classify import ClassifierI from nltk.classify.scikitlearn import SklearnClassifier from nltk.tokenize import wo...
3
1,879
How to remove leading and trailing white spaces from 5th row excel xml workbook using XSLT
<p>How can the leading and trailing white spaces from 5th row excel xml workbook cell values can be removed? I tried the following but didn't workout</p> <p><strong>XSLT:</strong></p> <pre><code>&lt;xsl:strip-space elements="/ss:Workbook/ss:Worksheet/ss:Table/ss:Row[position() = 5]/ss:Cell/ss:Data"/&gt; </code></pre>...
3
2,347
Show auth error on xhtml login page
<p>I have configured authentication using wildfly security-domains. Everything works if credintials are valid. I want to show error message on login.xhtml page when username or password are wrong. How can i do this? I'm using primefaces for pre valdiation(empty fields).</p> <p>My login.xhtml page:</p> <pre><code>&lt;...
3
1,087
UNEXPECTED_ERROR when calling wsdl functions
<p>I am trying to call to some wsdl functions from php. </p> <p>Let's say I have these two functions:</p> <pre><code>**listStyleCategories** Input: &lt;xs:complexType name="listStyleCategories"&gt; &lt;xs:sequence&gt; &lt;xs:element name="arg0" type="xs:string" minOccurs="0"/&gt; &lt;/xs:sequence&gt; Output: &lt;xs:c...
3
1,195
Can I use tensorflow c++ library (compiled in vs2019) in vs2015?
<p>I recently try to use tensorflow c++ to speed up my model in C application. I used <a href="https://github.com/Dobiasd/frugally-deep" rel="nofollow noreferrer">fragguly-deep</a> in my project. But my company was not satisfied with the speed. I tried to compile tensorflow in c++ to apply gpu acceleration but I failed...
3
1,658
How to construct a type trait that can tell if one type's private methods can be called in another type's constructor?
<p>I am using C++17. I have code that is like the following:</p> <pre><code>#include &lt;type_traits&gt; template &lt;typename T&gt; struct Fooer { Fooer (T &amp; fooable) { fooable . foo (); } }; template &lt;typename T&gt; Fooer (T &amp; fooable) -&gt; Fooer &lt;T&gt;; struct Fooable { privat...
3
1,174
fullcalendar, can i add location from gcal and can i give different colors based on different location events (from the same calendar)
<p>this is my code, the calendar and events display correctly but i want to give them more color and a location, can somebody please help?</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset='utf-8' /&gt; &lt;link href='fullcalendar-3.8.0/fullcalendar.min.css' rel='stylesheet' /&gt; &lt;lin...
3
1,083
Exception in thread "main" java.lang.NoSuchMethodException
<p>This is my program for word count in Mapreduce and I have created jar file successfully but when I am executing on Hadoop I am facing the following error. </p> <pre><code>package com.niit; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache....
3
1,286
How to access model properties to create texboxfor in IEnumerable Type?
<p>I want to create strongly typed textbox using Html helper in <code>@model List&lt;Proj.xx.MyClass&gt;</code>. But I am not able to access the properties of <code>MyClass</code>.</p> <p>can anyone please help me sort out the issues?</p> <pre><code> public class MyClass { public string Name { get; set; } ...
3
1,106
ORA-00904: "%s: invalid identifier"
<p>Please tell me what am i doing wrong. I have entered all the correct column names still getting this error in oracle10g. I tried changing the positions too but it did not help.Any help would be much appreciated. This is the query im putting in, and the error it's giving me.</p> <pre><code> select "RegistrationNum...
3
3,130
Cannot adjust the height of container accordingly to the content
<p>I have this CSS project I am working on and now I am in the phase where I will start to embelish it with some effects and nice colors. However I just realized that there is a small issue with it: the beige container won't adjust its height as the blue cells move around. Could anyone help please? Here it is my code:<...
3
1,456
Query doesn't execute due error within c# code due to internal parameter
<p>I think I'm missing something obvious here. The query executes in SQL server no problem. I've googled around and I found out you can use AddWithValue on the SQL command for the parameter @UserID but the issue is I need to search the database to get it. Below is the error the application is generating :</p> <pre><cod...
3
1,153
Adding a container causes NSInternalInconsistencyException
<p>I am trying to add a container view to my app. However, it keeps crashing with the following error: </p> <p>'NSInternalInconsistencyException', reason: 'containerView is required.'</p> <p>I made a fresh project to test when the error occurs. When I add a container view and I assign it the class "viewController" it...
3
3,067
Need to combine all csv data into single file of nested folder using batch script
<p>I need to combine all csv files data into single csv file using batch script</p> <p>the folder structure is as follows</p> <p>C:\Users\username\Desktop\DLog\Export\20200727\AL-Comp_Outbound\20200726\ (multiple csv's present here)</p> <p>So under &quot;Export&quot; there are multiple folders like &quot;20200727...202...
3
2,578
Android socket programming to able to read from inputstream
<p>I am trying to make a messaging app using socket programming. Everything is working fine I am able to connect to the device which acts like a server with another device which acts like a client.</p> <p>This is my class for Reading and writing (Same for both Server and client):</p> <pre><code>public class MessageRe...
3
1,200
React Native List View Does not Render
<p>My code: </p> <pre class="lang-js prettyprint-override"><code>const tabscreen = (screen, path, label, src) =&gt; { return { screen, path, navigationOptions: { tabBarLabel: label, tabBarIcon: ({ tintColor, focused = true }) =&gt; (&...
3
1,324
Can't set headers after they are sent. Nodejs/express with axios
<p>I have seen this error and more am just wanting to know how to work around it. I need to be able to output the data as a json object. Is there anyway to work around this. </p> <p>I am basically copying and pasting from a tutorial and not sure why Im getting it here except for the deep request calls maybe? </p> <p>...
3
2,816
No Gradle "build" task despite build.gradle applying plugin com.android.application
<p>Somehow I don't have a <code>build</code> task:</p> <pre><code>$ ./gradlew tasks --all :tasks ------------------------------------------------------------ All tasks runnable from root project ------------------------------------------------------------ Build Setup tasks ----------------- init - Initializes a new ...
3
1,068
How can I refactor this to use an inline function or template instead of a macro?
<p>I have a useful macro here:</p> <pre><code>#include &lt;algorithm&gt; #include &lt;vector&gt; #include &lt;string&gt; #include &lt;boost/algorithm/string.hpp&gt; #include &lt;Windows.h&gt; namespace Path { bool Exists(const std::wstring&amp; path) { DWORD result = GetFileAttributesW(path.c_str()); return ...
3
1,263
Win executable runs but calling command stalls on Cygwin command line
<p>I'm rebuilding a flash loader utility for a TI chip and am facing a minor issue that's affecting my workflow. I'm using a 64-bit Win7 PC and rebuilding the utility using make on cygwin bash shell. make and cygwin version numbers below.</p> <pre><code>$ make -v GNU Make 3.82.90 Built for i686-pc-cygwin Copyright (...
3
1,128
(ReactJS) Getting error in Login Component, while Register Compo. works perfectly
<p>I can't seem to get why my Login component is getting an error when my Registration component works well while using the same POST request to the backend server. The only thing that they differ is the method of retrieving data from MongoDB in their backend script partner, which is what I am thinking is the problem, ...
3
2,455
Mocha & Enzyme - same test failing the second time
<p>I'm trying to test a React component with some propType logic. The component should take a <code>myprop</code> prop that should match <code>{value: [anything]}</code>.</p> <p>The first test works, but the second (which is exactly the same code) doesn't. </p> <p>Any idea why ?</p> <p>EDIT : I think it's React that...
3
1,094
Delete buttons: NullPointerException after reinitializing JFrame
<p>I created a <code>JFrame</code> containing the following components: a <code>JLabel</code> (just a simple text label), a <code>JComboBox</code> and a <code>JButton</code>. This <code>JFrame</code> reads from a config file after initializing it and the entries of the config file will be copied to a <code>HashMap</cod...
3
3,996
Code not working in onPostExecute function
<p>Having problem with the <code>onPostExecute</code> function. it did not call the function since nothing can be print out even with only <code>setText("Something")</code> function is called. Please help.... </p> <pre><code>public class Update extends Activity { JSONArray jArray = null; String result = null;...
3
2,431
jquery doesn't work in the second time loading webuser control
<p>this is html code in webuser control</p> <pre><code> &lt;telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Width="100%"&gt; &lt;telerik:RadPageView ID="RadPageView1" runat="server"&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquer...
3
1,160
Parse error unexpected t_constant_encapsed_string php
<p>I have a for loop to go through an array I get from a web service that are paths to images, that I want to insert into and tags and print as much as there are in the array. The problem is that I'm getting the encapsed string error and I can't see where should I correct my code. </p> <p>Here is the php code:</p> ...
3
1,448
pytorch 1D Dropout leads to unstable learning
<p>I'm implementing an Inception-like CNN in pytorch. After the blocks of convolution layers, I have three fully-connected linear layers followed by a sigmoid activation to give me my final regression output. I'm testing the effects of dropout layers in this network, but it's giving me some unexpected results.</p> <...
3
1,884
Oracle Query Optimization containing many partition clause
<p>This is the oracle 11g query I am running. The table contains a total of 180 Million Records and 400 Columns. Can you suggest some tuning techniques to make this query faster. Last time this query without the 'direct' hint option, executed for 2+ hours and went on. I am running now with 'direct' hint option.</p> <p...
3
3,639
Error-Property value does not exist in type name string
<p>I hope this question clarifies so many people about testing template driven forms that Angular documentation barely mentions. I have an input inside this form that I want to test. I want to test a simple DOM in Angular using Jasmine. This is a template driven form using NgForm like this:</p> <pre><code>&lt;form nam...
3
1,129
Quicktime server crash
<p>I am using Xcode to create an Objective-C, cocoa, Mac app.</p> <p>The application play movies from a play list in a loop.</p> <pre><code>movie1.mov, movie2.mov, movie3.mov, ... movie1.mov, movie2.mov, movie3.mov, ... and so on </code></pre> <p>The movies are loaded from file like this :</p> <pre><code>QTMovie* m...
3
1,734
AsyncTask parameters and use of "..." in Java
<pre><code> void saveSnapshot(final SnapshotMetadata snapshotMetadata) { AsyncTask&lt;Void, Void, Snapshots.OpenSnapshotResult&gt; task = new AsyncTask&lt;Void, Void, Snapshots.OpenSnapshotResult&gt;() { @Override ...
3
1,408
Do you have to call gc.collect explicitly sometimes with COM objects
<p>Here is the function:</p> <pre><code> Private Sub LoadEmail() Dim loSession As RDOSession = Nothing Dim loMessages As RDOItems = Nothing Try moNDRs = New List(Of NonDeliveryRecord) loSession = New Redemption.RDOSession loSession.LogonExchangeMailb...
3
2,545
Using linked lists with boolean methods
<p>I need to create a PhoneBook using a linked list that contains multiple boolean methods.One of those is insert that is susposed to enter a new Person in the PhoneBook, if the Person already exists the method phonebook shouldnt change.I am having trouble implementing this method, particullarly at the part where I'm ...
3
1,168