title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Axis labels for two variables in ggplot? | <p>I have a ggplot with three variables: office, level, and gender. The plot should be factored by office and level and shows the levels and gender representation for each office. I have no problem faceting the plot the way I want, but I haven't been able to create x axis text to show the levels in each office -- all t... | 3 | 1,250 |
JPA with netbeans 8.2 | <p>I have a problem with a JPA java progect. I have entity class (utente), class controller where there is a EntityManagerFactory and EntityManager and finally a main class. When i run this, it show me this error:
"Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project jpademo:... | 3 | 1,625 |
socket.io not work on node.js server (with express) | <p>I use express to generate my site(i.e. express mysite); I add socket.io support in my site. But when my socket.io client try to connect server, I found the server has kept receiving 'connection' event(.on('connection', function(socket)...) and client doesn't receive any message...</p>
<p>In my /bin/www</p>
<pre><c... | 3 | 1,085 |
float triange picture by the list | <p>Here is some code, but it is not perfect, All the list elements will be not static and it need to be placed evenly by height of parent block. SO it should be good looking.
Now it is placed not through the common height of parent block, I made 50 px bttom margin </p>
<p><div class="snippet" data-lang="js" data-hide=... | 3 | 1,486 |
DIrectshow function is blocked at system bootup | <p>I have an Directshow based mediaplayer application . It works very well without any issues during normal playabck . But occasionally i am facing one issue when the Mediaplayer started just after system boot .</p>
<pre><code>HRESULT CSDirectShow::RenderOutputPins (IBaseFilter* pFilter)
{
const char* funcName = "... | 3 | 1,157 |
non-standard conditional sort algorithm STL c++ | <p>I am studying STL and have found <a href="http://web.stanford.edu/class/cs106l/course-reader/Ch7_STLAlgorithms.pdf" rel="nofollow">this</a> very interesting PDF from Stanford with tasks. One of the tasks is to sort a list of songs but in such a way that songs labelled as "My song" were always first in the list.</p>
... | 3 | 1,051 |
how to get Inline block to start on new line | <p>I have a group of inline blocks and I want after the 4th one for it to start on a new line. That's my project so far, kinda new to CSS so any helps is amaze thnx!</p>
<p><a href="https://codepen.io/lumin-little/pen/poJpOMN" rel="nofollow noreferrer">https://codepen.io/lumin-little/pen/poJpOMN</a></p>
<p><strong>HT... | 3 | 1,451 |
Getting Execute before finishing the task Android | <p>Hi I'm running the Asynctask in my activity and getting the data from the server. In <code>onPostExecute </code> metod I'm inserting the data in Database now I want to pass those ids in two different fragments I'm passing the the ids by following code:</p>
<pre><code>Bundle bundle = new Bundle();
bundle.putStrin... | 3 | 2,231 |
Spring RabbitTemplate.execute hangs when queue is down | <p>I am trying to execute get server properties to assert on health of RabbitMQ channel. Here is my code:</p>
<pre><code>rabbitTemplate.execute(new ChannelCallback<String>() {
@Override
public String doInRabbit(Channel channel) throws Exception {
Map<String,... | 3 | 3,343 |
Unable to predict when loading a Tensorflow model in Go | <p>I've loaded a Tensorflow model in Go and cannot get predictions - it keeps complaining about shape mismatch - a simple 2d array. Would appreciate an idea here, thank you so much in advance.</p>
<pre><code>Error running the session with input, err: You must feed a value for placeholder tensor 'theoutput_target' with... | 3 | 1,322 |
TCP Client is not Connecting to IRC Adress | <p>I am trying to build an twitch-chatbot. I've read some tutorials and this is what I coded so far:</p>
<pre><code>namespace IRC_Client
{
class Program
{
public NetworkStream NetStream = null;
public StreamReader StreamRead = null;
public StreamWriter StreamWrite = null;
publi... | 3 | 2,690 |
Changing keys names in a nested josn object in java | <p>Could anyone help me with this issue please, I have a JSONObject which is highly nested to many levels and I want to replace certain keys with different values? Below is my JSONOBject:</p>
<pre><code>{
"nullable": null,
"localPart": null,
"prefix": null,
"precision": null,
"name": "Put_Location_Request",
"namespace... | 3 | 12,287 |
Having problems getting border radius and gradient on a header of a table at the same time | <p><strong>UPDATE : NOW IT WORKS IN CHROME AND NOT IN FIREFOX</strong></p>
<p>I cant get a border radius and and a gradient on the header of the table at the same time.</p>
<pre><code>//normal table
<table cellspacing="0">
<thead>
<tr class ="header">
<th>... | 3 | 1,086 |
Reverse CSS3 transition | <p><a href="http://micheresources.com/html/j-crew-slider/" rel="nofollow">http://micheresources.com/html/j-crew-slider/</a></p>
<p>I'm wondering how to reverse an animation? As you hover over each navigation item to the left, you'll notice how the black bar just pinches to the top left corner rather than slides left w... | 3 | 1,069 |
Rdlc Reporting C#.net | <p>Need help with in <code>.rdlc</code> reporting.</p>
<p>I have a <code>.RDLC</code> report like the one attached.</p>
<p>Here I can print one idcard each time for each student. I can collect the required data based on a student's unique no current session and pass that to the rdlc report to print that.</p>
<p>Now ... | 3 | 1,616 |
Unable to start nginx service via Chef | <p>I'm trying to start nginx using chef solo but keep getting the error below.</p>
<h3>error</h3>
<pre><code> * service[nginx] action start
================================================================================
Error executing action `start` on resource 'service[nginx]'
========================... | 3 | 1,359 |
No mapping exists from object type | <pre><code> private void button5_Click(object sender, EventArgs e)
{
DataGridViewRow updatedrow = dataGridView1.Rows[chooseAnyRow];
updatedrow.Cells[0].Value = SALUTATION.Text;
updatedrow.Cells[1].Value = NAME.Text;
updatedrow.Cells[2].Value = SEX.Text;
updatedrow.Cells... | 3 | 2,042 |
navigation drawer not opening for webview button click | <p>I am trying to open a nav drawer when user clicks on a webview (HTML) button. I have a code which works fine when I use Android button but it does not work when I use HTML button. The navigation drawer shows when you drag it from left side but not when you click the HTML button.</p>
<p><div class="snippet" data-lan... | 3 | 2,131 |
CSRF token missing or incorrect. Django 1.8 restaurant app | <p>I am getting this error (on Chrome):</p>
<pre><code>CSRF token missing or incorrect
</code></pre>
<p>What I am trying to do is make a restaurant application. I have my menu items and am trying to create a record in my orders table. Any time one button is clicked I want to add that entry into the orders table</p>
... | 3 | 2,098 |
Java Mail Exception : javax.mail.MessagingException: Could not convert socket to TLS | <p>In my application, I am trying to send an email using <code>JavaMail</code> through Gmail SMTP Server.I used <code>smtp.gmail.com</code> over <code>587</code> port with a valid Gmail id and password. This my <code>spring-servlet.xml</code> file </p>
<pre><code><context:component-scan base-package="com.spring.... | 3 | 3,156 |
Plotting with matplotlib after changing rows in qlistwidget | <p>I want to plot charts after clicking on rows. The signal is transmitted, but the chart isn't plotted. But if I call a plotting function (<code>self.hist()</code>) from <code>MyPlot.__init__</code>, the chart is plotted.</p>
<p>I used this as an example, but it didn't help. <a href="https://stackoverflow.com/questio... | 3 | 1,573 |
CheckStyle Custom Check -- Retrieve All Parameter Names | <p>I'm attempting to retrieve all parameter names in all methods found in a given source file using CheckStyle. Here is the relevant code:</p>
<hr>
<pre><code>public int[] getDefaultTokens()
{
return new int[] { TokenTypes.METHOD_DEF};
}
public void visitToken(DetailAST aDetailAST)
{
String returnType; //... | 3 | 1,426 |
How to sort by date and then by time using Javascript | <p>I have written a script to help me convert a very long and tedious task of copying numbers from a paragraph and retyping them into a table.</p>
<p>However, I need to be able to sort these "paragraphs" by date, and then within each date, they have to be sorted by time (I know 3333Z is not a valid time, this is only ... | 3 | 5,306 |
android listview searching getting null pointer error | <p>Hello all i want to add search funcationality to listview for that i have doen following </p>
<pre><code> @Override
public Filter getFilter() {
if (valueFilter == null) {
valueFilter = new ValueFilter();
}
return valueFilter;
}
private class ValueFilter extends Fi... | 3 | 1,231 |
AWS SDK runinstance and IAM roles | <p>The code below works when I have added the AWS IAM role "AdministratorAccess" - But it is risky and a bit of overkill... But how do I know and find only the necessary role(s)...It is very confusing and hard to know by when I look at all the possible roles in the console?</p>
<pre><code>try {
// Load th... | 3 | 1,300 |
jQuery functions work in one aspx but don't work in another aspx that's practically identical | <p>In my MasterPage.master page I have this two jquery functions:</p>
<pre><code>function calcTime() {
var time1 = $(".timepickerFrom").val().split(':'),
time2 = $(".timepickerTo").val().split(':');
var hours1 = parseInt(time1[0], 10),
mins1 = parseInt(time1[1], 10),
hours2 = parseInt(time2[0... | 3 | 3,691 |
MySQL DATETIME sort with virtual datetable | <p>I have a table with some events in conjunction with timestamp as DATETIME.
Now I want to have a statistic about my data, e.g. how much events per day... In some cases I don´t have events every day and of course I don´t get in my statistic that days with no existens entries.</p>
<pre><code>| id | DATE | CO... | 3 | 1,265 |
Numpy Ndarray has no object attribute as open | <p>I am working an automation program of web-scrapping.
I have been using geeks for geeks for program for downloading Instagram posts of a particular user.
I had to do some changes in the code as it was outdated and also according to my needs.
Instead of directly downloading and saving in particular folder I had to tak... | 3 | 1,794 |
Weather Api with React | <p>I am quite new to React so I have a simple question I think. I am trying to take the weather description from the API and according to that, I am trying to show different images. I wrote a function getForecast and response.data.weather[0].description turns the right value. So according to that, I am assigning 'image... | 3 | 1,396 |
Impossible to calculate a difference of time in Android using System.currentTimeMillis() | <p>I'm developing a little Android app to calculate the time it takes to hit a square with another square using the accelerometer of the phone.</p>
<p>I have a custom View defined as follows : (I removed several declarations for readability purpose)</p>
<pre><code>public class BallView extends View implements SensorEve... | 3 | 2,547 |
How to get data into angular datatable using BehaviorSubject and Promises | <p>I want to update my database using BehaviorSubject and Promises and for that, I build a program but I found that my variable (that contains the object of Datatable data) undefined after debugging for that I found:</p>
<blockquote>
<p>TypeError: Cannot read property 'length' of undefined at Object.eval
[as updat... | 3 | 4,607 |
C++: How to pass the object from a unique_ptr into a function by value? | <p>I would like to use the <code>cereal</code> library from this <a href="https://github.com/USCiLab/cereal" rel="nofollow noreferrer">github page</a> to load <code>xml</code> into objects.
Up to this point everything is fine.</p>
<p>But in my application, it is a bit more complex: the object that needs to be loaded/fi... | 3 | 1,913 |
setState from .map inside componentDidMount() | <p>I am trying to find a solution to using <code>setState</code> on mapped items inside <code>componentDidMount</code>.</p>
<p>I am using <a href="https://graphql.org/learn/" rel="nofollow noreferrer">GraphQL</a> along with <a href="https://www.gatsbyjs.org/" rel="nofollow noreferrer">Gatsby</a> with many <code>data</... | 3 | 1,288 |
Reactive Cocoa: trouble with switchToLatest in chain of operations | <p>I'm having trouble disposing of one of the operations in a chained list of operations. I'm trying to use Reactive Cocoa to provide a stream of locations while the user is logged in and has granted access to location services.</p>
<p>I'm still pretty new to the world of Reactive Cocoa and functional reactive program... | 3 | 1,087 |
Am I oversimplifying returns? | <p>Basically I'm doing the old driver exam program for a uni course and I've drafted out the whole class. When I try to compile it, if working in command prompt, I get the error:</p>
<blockquote>
<p>missing return statement</p>
</blockquote>
<p>and in Eclipse:</p>
<blockquote>
<p>This method must return a result... | 3 | 1,053 |
Google Maps Delegate | <p>I am using google map in my project. I want to give user 2 options when tapping the infoWindowOfMarker which call the delegate method: <code>mapView(_ mapView: GMSMapView, didTapInfoWindowOfMarker marker: GMSMarker)</code></p>
<p>if I wanted to perform just one action, I could just retrieve the info in the marker a... | 3 | 1,265 |
jquery button affecting all instances in loop | <p>I've got a form that uses jquery/Ajax to update my database without a refresh.
The jquery fades out the radio options on submit, and then shows another button in case the user would like to change their selection.</p>
<p>My problem is that once the user submits their decisions, if they click the "change your mind" ... | 3 | 1,810 |
Connecting to WCF, problems with single client | <p>So I am getting the following error when connecting to the production WCF service from my development machine. This is not a server side problem because no other user has this issue and when I use my credentials to log into another machine, it works. Normally I would just use another machine but due to a deadline,... | 3 | 4,102 |
Multiple Ajax requests Colliding | <p>I'm building a webshop for a project at university. I have a search bar in header, navigation bar on the left. In both cases I send data with Ajax (from search bar a keyword, from navs a category and subcategory). Ajax response is a PHP script that prints products based on category and subcategory or keyword. At the... | 3 | 2,283 |
Perl system call causes core dump but $? remains zero | <p>I've got a Perl script (running on Xubuntu Lucid Lynx within VirtualBox) that wraps around several C/C++ binaries feeding the inputs of one into the others. One of the lines consists of generally:</p>
<pre><code>my $ret_code=`cat $input | c_binary`;
my $ret_val= $?;
</code></pre>
<p>For some input files the code c... | 3 | 1,412 |
Otp is not post in database | <p>after user submit mail id otp will be sent to that email id but my code isn't working it post the email id in database but not the otp. Please can any one help?</p>
<p><b>Controller Code auth.php</b></p>
<pre><code>public function register()
{
$alphabet = '1234567890';
$otp = array(); //remember to declare $... | 3 | 1,095 |
Send multiple AJAX data to PHP and update Mysql database | <p>i am tying to build an application where user can reorder items (and save the order to database). The items user is reordering are navigation links, which are generated dynamically on the page from php loop:</p>
<pre><code>$nav_links.='<li class="collection-item ui-state-default item" data-ord="'.$navorder.'" da... | 3 | 1,031 |
Most efficient Java data structure to frequently find values in 3-dimensions? | <p>I've never worked with 3 dimensional data until now, I'm trying to implement a structure which allows me to store objects in positions relative to each other in a structure which allows me to find the coordinates (x,y,z) of any given object, to find any objects adjacent to it and to get a list of all values (rooms).... | 3 | 2,187 |
e.preventDefault not preventing submit | <p>So on localhost I have no issues with the function at all, it works flawless but now I uploaded it to my host and it doesn't seem to work anymore. The form gets somewhat submitted and the URL gets all the info from the datastring in it. Please help me fix it.</p>
<p>This gets added to the URL in the addressbar:</p>... | 3 | 1,209 |
Keras 2 input model, incompatible Shapes | <p>I'm trying to build a two input model with keras, with each input being a string.</p>
<p>Here's the code for the model</p>
<pre><code> vectorize_layer1 = TextVectorization(split="character", output_sequence_length=512,
max_tokens=MAX_STRING_SIZE)
vectorize_la... | 3 | 2,123 |
Array index in searchview get mixed up | <p>SearchActivity as below:</p>
<pre><code>public class SearchActivity extends AppCompatActivity {
// CONNECTION_TIMEOUT and READ_TIMEOUT are in milliseconds
public static final int CONNECTION_TIMEOUT = 10000;
public static final int READ_TIMEOUT = 15000;
private SimpleCursorAdapter myAdapter;
Sear... | 3 | 4,010 |
How to get value of all selected radio buttons from all the views in sliding Fragment | <p>I have three views in sliding Fragment with Survey Questions having dynamic radiobuttons (the layout for all views are same, i am just repeating). I can get the data of selected radiobuttons from one screen, but how can i get the data of all selected radiobuttons from all screens ? Below is my working code</p>
<p><... | 3 | 6,055 |
SDL_ttf textures in vector affects other's destination rectangle | <p>I was following Lazy Foo' tutorial to create text using ttf font, and everything was fine, but I needed to create several text lines in several different places with different font size and color, so I decided to use vector. Here is my code of TextTexture (mostly copy of Lazy Foo tutorial):</p>
<pre><code>#ifndef T... | 3 | 2,036 |
ElasticSearch. Error: 'Content-Type header is missing' | <p>Use on AWS ElasticSearch v6.7. For working with ES use library</p>
<pre><code> "@elastic/elasticsearch": "^6.8.8",
</code></pre>
<p>For connecting to ES use also library:</p>
<pre><code> "aws-elasticsearch-js": "^1.0.3",
</code></pre>
<p>There is no any kind of errors ... | 3 | 1,906 |
play sound when word clicked on anki flashcard | <p>I recently tried to modify a set of anki templates, forgive me for never learning css/html.
I hide the play button of the word because it takes up too much space on my iPhone 6s, but sometimes I want to play the pronunciation of the word once manually.
I would like to play the word by clicking the word text, but I d... | 3 | 4,299 |
unable to filter by metric (comparisonValue not recongnized in the 400 value | <p>I am trying to filter my GA api V4 in python by removing pageviews under 200 in my request...
surprisingly, as i follow exactly the syntax of the documentation, i get an error message :</p>
<pre><code>> "Invalid JSON payload received. Unknown name "comparisonValue" at 'report_req
uests[0].metric_f... | 3 | 1,506 |
I want to add several lines to a cell of jTable | <p>I have this code for filling the jTable</p>
<pre><code>public void llenarTabla() {
DefaultTableModel modelo = new DefaultTableModel(){
@Override
public Class getColumnClass(int col) {
switch(col) {
case 0: return ImageIcon.class;
case 1: r... | 3 | 1,640 |
Solve the problem of not being able to transfer files | <p>I have studied creating a chat program from a tutorial site and I applied all of the above in the explanation but I have a problem is the inability to transfer files and images between the server and the client.
This code is used in chat.
I've done a lot of experiments, but I can't solve the problem. </p>
<p>Messag... | 3 | 1,306 |
pandas split-apply-combine with results returned to original DataFrame | <p>I want to document a particular case of the <a href="https://pandas.pydata.org/pandas-docs/stable/groupby.html" rel="nofollow noreferrer">'split-apply-combine'</a> method here. </p>
<p>The issue: I start with a DataFrame and I have to do some processing of the data that requires a groupby split and returns some res... | 3 | 1,082 |
Why doesn't my textview display anything? | <p>im currently doing a app that has a barcode scanner. currently when i scanned the barcode it is suppose to display the format of the barcode and the contents also. but currently it doesnt display the format and contents after scanning.</p>
<p>here is the code</p>
<pre><code>public class ThreeFragment extends Frag... | 3 | 2,051 |
Firebase "no such instance field" error | <p>As the title says, I have encountered that error when I tried working with Firebase database. I have tried numerous solutions found online but nothing seems to have worked for me. Below you can find my code and also, a brief information regarding on what I've tried so far before posting on stackOverflow.</p>
<p>The ... | 3 | 3,079 |
ANN regression, linear function approximation | <p>I have built a regular ANN–BP setup with one unit on input and output layer and 4 nodes in hidden with sigmoid. Giving it a simple task to approximate linear <code>f(n) = n</code> with n in range 0-100. </p>
<p><strong>PROBLEM</strong>: Regardless of number of layers, units in hidden layer or whether or not I am us... | 3 | 3,717 |
Need to extract individual characters from a string column using R | <p><strong>Background</strong></p>
<p>Below is my <em>gamedata</em> dataset in dput form -- it contains line scores for some MLB games.</p>
<pre><code>structure(list(team = c("NYM", "NYM", "BOS", "NYM", "BOS"), linescore = c("010000000",
"(10)1140006x&qu... | 3 | 1,213 |
How to target CSS :after element with the tilde selector? | <p>The <code>::after</code> selector will inserts something after the content, is this targetable with the preceding selector <code>~</code>?</p>
<p>For example, HTML:</p>
<pre><code><ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
::after
</ul>
</co... | 3 | 1,729 |
VS 2017 Release Management Tokenize XPath/Regular expressions not working | <p>I am trying to use the Release Management Tokenize XPath/Regular and I keep getting different error as I try to answer the three entries </p>
<ol>
<li><p><strong>Source filename:</strong> $(System.DefaultWorkingDirectory)/XXXXX/Drop - This I know is on my build server this file should be
xxxxxx.exe.config and is l... | 3 | 1,214 |
Class Calling A Function From Another Class | <p>I'm attempting to get a better understanding of classes in Python and OOP in general. I'm using code from: <a href="http://neuralnetworksanddeeplearning.com/chap1.html" rel="nofollow"><em>Using neural nets to recognize handwritten digits</em></a></p>
<p>to play with, teach myself how about feed forward ... | 3 | 1,747 |
How to set-up two objects in one package using MIGx - MODx Revolution | <p>I'm a novice in using MODx Revolution (2.2.8-pl), and I can't really find good enough resources to bring the project I'm currently working on, to a good finish.</p>
<p>To make things short, I'm working on a photo/portfolio website and I need to create a couple of items in the database to store all the projects the ... | 3 | 1,632 |
Url to pdf using wkhtmltopdf.exe at server side | <p>Back few days i'm trying to make a web application that convert url to pdf. Finally i have done this with the help of wkhtmltopdf.exe
My class code is given below</p>
<pre><code>public class PDFGenerator
{
public static string HtmlToPdf(string pdfOutputLocation, string outputFilenamePrefix, string[] urls,
... | 3 | 1,543 |
I keep getting a Persistent ValueError: too many values to unpack and i don't understand why | <p>I am getting this error and i think i have spent 5 hours on it. Please someone help.
I eventually want to get the values out of this.
What is causing there to be many values? Is it my string values or the setup of the dictionary itself.</p>
<pre><code>import ast
# -*- coding: utf-8 -*-
class MyMetric:
def __ini... | 3 | 1,160 |
Successfull Build in Android Studio still crashes on Device | <p>I'm pretty much a beginner still and I've tried to make an App to ease my work in the Lab. It's just some basic calculation. I want to make an App that is compatible to the most devices, in case its useful information. Even though the App seems to Build successfully, as soon as it starts on my Device it just crashes... | 3 | 3,825 |
My update, delete, create functions are not effecting database | <p>When I update my data or delete or create it does not work. The code does not give any kind of error, therefore it appears fine to me. When I try to update it, the updated data appears in the url but it does not appear in the database. This is the same for the delete function. Database is mysql. Below is my controll... | 3 | 3,704 |
Stepping over a function with a throw statement inside in gdb doesn't take me to catch statement | <p>I'm trying to step through a C++ program. It throws an exception in a lower layer, but I'm unable to have the gdb debugger take me to the catch statement. One workaround is to register catch-points with <code>(gdb) catch catch</code> but it feels clunky to have to remember to always do that, and it will cause the pr... | 3 | 1,094 |
AWS Lambda - Runtime.ImportModuleError: Error: Cannot find module '../package.json' | <p>this is my first question that i ask so if there is any more data i can provide please tellme so.</p>
<p>Currently i am learning how to deploy services to AWS lambda using serverless. In order to bundle my lambda i am using webpack.
Everything runs nicely when i use sls offline start.
Webpack packages everything and... | 3 | 1,213 |
java performance questions about operator or | <p>It's a Snowflake algorithm. I implement by myself. Use generate to generate unique id.</p>
<pre><code>// start time
private final long startTimestamp = ZonedDateTime.of(2015, 1, 1, 0, 0, 0, 0, ZoneId.systemDefault()).toInstant().toEpochMilli();
// shift value
private final long workerDataLeftShiftValue;
// mask
p... | 3 | 2,448 |
How to use intervals in Android CountdownTimer | <p>I am creating a countdown time in Android and I have the timer part working perfectly. However, I want to add a feature where the user can set the number of times they wish the timer to repeat. This is my current attempt at implementation</p>
<pre><code> @Override
protected void onCreate(Bundle savedInstanceStat... | 3 | 1,476 |
How to implement user login sessions using springboot http session and angular | <p>this is my sprinboot backend code where i am trying to implement sessions for login and logout and i am facing difficulties in implementing persistence http sessions using http servlet request in a proper with angular as my frontend framework.
Integration of sessions in my project is where i am facing difficulties t... | 3 | 1,769 |
php soap server - what does ns mean and why it affects to server? | <p>I have implemented this php SOAP server using Laminas library, here is my wsdl.</p>
<pre class="lang-xml prettyprint-override"><code><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://localhost/test/api/user-notification&q... | 3 | 3,002 |
Insert data through a viewgrid after clicking on CREATE (more than one viewgrid) | <p>I'm stuck on this situation and i dont understand how to make it works on MVC ASP.NET Core using C#</p>
<p>I created a viewgrid that allows me to Create, Update, Delete every single row shown in the grid. The problem is that everytime i click on CREATE it shows me a page where i can only write (manually) everything ... | 3 | 1,923 |
how to change a username and password stored in a text file only for the correct user | <p>i am currently making a application for my a level computing coursework. for my coursework i am required to make a login and registration system which requires me to store the user details in a text file this is only for my coursework so security isent important. my registration and login system works fine but i am ... | 3 | 1,139 |
Skip over screens | <p>So I am working on a project for my programming class that requires us to create a login screen, a screen where the user inputs their birthday and some other information, and a blank screen (more will be done later but for the moment it's just a blank screen). When I start up my app and correctly put in the login in... | 3 | 3,260 |
Python incrementing IP range in for loop | <p>I am trying to increment the start_ip and end_ip each iteration by 1. Although whenever the function results in the else statement 'already active' the counter keeps going. Is there a way to make number1 pause in the for loop when it hits ip is active? I tried decrementing it by one and adding a break but that does ... | 3 | 1,734 |
Verify date with SQL / PL SQL | <p>I am having trouble verifying dates in my code. It's not quite working how it should.</p>
<p>The parts that are wrong have to do with this.</p>
<pre><code>ADD_COMPLEX_SALE_TO_DB - GENERATED UNEXPECTED EXCEPTION
ADD_COMPLEX_SALE_TO_DB - DATE NOT VALID EXCEPTION INCORRECT (WRONG MONTH)
ADD_COMPLEX_SALE_TO_DB - DATE NO... | 3 | 1,312 |
Incorrect order with Kahn's algorithm | <p>I'm trying to implement the topological ordering with Kahn's algorithm:</p>
<pre><code>from collections import defaultdict
def ordering(graph:dict):
in_counts = defaultdict(int)
for k, v in graph.items():
if not k in in_counts:
in_counts[k] = 0
for in_node in v:
in_c... | 3 | 1,696 |
always print out 6 digits following specific string | <p>I have many strings with the name "TL-" followed by 6 digits (ie TL-000456, TL-000598). Sometimes it will print out having fewer than 6 digits (ie TL-09872, TL-345, TL-02). </p>
<p><strong>I want my code to add a zero after the "TL-" until it contains 6 digits.</strong></p>
<pre><code>Start: Output:
TL-0... | 3 | 2,867 |
Typescript Decorator and Babel: ColumnTypeUndefinedError: Column type for Exercise#name is not defined and cannot be guessed | <p>Despite having <code>babel-plugin-transform-typescript-metadata</code> installed I have this error below:</p>
<pre><code>ColumnTypeUndefinedError: Column type for Exercise#name is not defined and cannot be guessed.
Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json.
Als... | 3 | 1,029 |
JavaFx TableView is not sorting the table | <p>I have put together a simple JavaFx with FXML to display a sorted address book (sorting by the first name column). I have defined a simple sorting rule for the first name column, however, the table loads unsorted. I know how to sort a column in the FXML, however, my objective is to see if I can also accomplish the s... | 3 | 4,139 |
WPF Disable mousewheel on ScrollViewer and let children handle it | <p>I am trying to implement an ItemsControl which contains a collection of graphing components. The component should be able to use the MouseWheel event to zoom, but it appears that the Scrollbar is capturing and handling the event first. Most of the articles I have found <a href="https://stackoverflow.com/questions/... | 3 | 2,037 |
Handling derived class creation using mappers in C++ | <p>I'm reading through Martin Fowler's PoEAA right now on object-relational structural patterns. As a project to do while learning them, I thought I'd build a mini eCommerce system in C++. I'm having trouble figuring out how to return the objects from the mapper.</p>
<p>I have a <code>Product</code> base class, which ... | 3 | 1,341 |
Save div on the server as image and download it | <p>In my Asp.NET MVC application, in a div I have superpositioned images in to show how it seem an insole model.</p>
<p>I should download this image when the model is ready. </p>
<p>What I did works on my pc and download the image.</p>
<p>But when I publish the application, it opens the image instead of downloading ... | 3 | 1,255 |
How to parse XML depending on other parsing condition? | <p>I want to extract data from the XML, only if a particulair field is filled in the XML.</p>
<p>The elements I want to extract are:</p>
<ul>
<li>The city: tag 110 code c (for example Berlin)</li>
<li>The library code: tag 110 code g (for example D-Bbbf)</li>
<li>The County code: tag 043 code c (for example XA-DE)</li>... | 3 | 1,461 |
Linkedin versioning Marketing API - isDSC returns True by default | <p>I'm trying to use Linkedin versioning (the new approach) Marketing API to publish posts on the company page.
I'm following the official docs and trying to use provided example:
<a href="https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/posts-api" rel="nofollow noreferrer">h... | 3 | 1,088 |
I am getting Empty Json Object in response listner as compared to postman. How can i get JsonArray from JsonObject in response? | <p>In java <code>JsonObjectRequest</code> response listner code, I am getting wrong response i-e I'm getting response but it is different from that I am getting from postman. </p>
<p>I have tried simple json object request call using volley and in response listner I logged <code>response.toString()</code>. </p>
<pre>... | 3 | 1,058 |
Live Edit fails with "CLOUD_CONTROLLER_URL is not set in the env" | <p>When activating "Live Edit", the node instance fails to start.
I have no command in my <code>manifest.yml</code> file, but a script starts in my package.json.
See the log below.</p>
<p>I'm running node 4.3.2 with IBM SDK for Node.js with Buildpack v3.2-20160315-1257.</p>
<pre><code>2016-04-21T16:14:41.715+0200[AP... | 3 | 7,653 |
Find distance in meters using latitude and longitude of two different point in android | <p>I'm working on finding a distance between 2 points using <code>lat</code> and <code>long</code>.</p>
<p>I have followed these codes.</p>
<pre><code> /* double theta = lon1 - lon2;
double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(d... | 3 | 7,289 |
texteditor plugin which allows the data to interact the data with another plugin | <p>I am using tinymce editor to make my textarea beautiful like editor.But It does not allow the the data written inside the textarea to pass to another plugin.If I am using just textarea it works fine.</p>
<pre><code><html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.... | 3 | 1,389 |
XSLT for parsing 2 pars XML document | <p>I have this soap answer file, coming from financials.</p>
<pre><code><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<RequestRecordAsXmlResponse xmlns="htt... | 3 | 2,607 |
Combining tables with different number of columns, some in common with same header names | <p>Hello. So I am working out of the query editor of a PowerPivot. I have two tables in the PowerPivot window, which I am editing with the query editor in the table properties tab. The tables have a different number of columns, some columns they have in common with each other, each contain unique columns. The columns t... | 3 | 1,096 |
How to decrease size of an multiple images in Retrofit | <p>I'm trying to upload multiple images to server using Retrofit, While I upload small images no problem at all but if I upload large images it's get timeout error. Here is my code</p>
<pre><code> File file1 = new File(getRealPathFromDocumentUri(this, selected.get(0)));
File file2 = new File(getRealPathFromDocument... | 3 | 1,165 |
how to define manifest file in order to use GCM services | <p>i am beginner all around the using of the Google cloud messages api, and i have a problem that i succeed to send the message but i am not get it on my device.
i saw that some manifest contain section of "" should i use that?</p>
<p>this is the GCM server:</p>
<pre><code> <?php
class GCM {
function __con... | 3 | 4,609 |
ExtJs5.1 - Nested Panels: resize inner panels to outer panel | <h2>Problem Description</h2>
<p>I got some ExtJs5.1 code, which has a couple of <strong>nested components</strong>, like <em>Ext.form.field.TextArea</em>, <em>Ext.tab.Panel</em> and <em>Ext.Button</em>.</p>
<p>You can <em>copy&paste</em> the following code to reproduce my problem into a <strong>index.html</strong> ... | 3 | 2,775 |
Keycloak & Spring Boot authorization | <p>I'm trying to implement the correct flow for authorization using Keycloak and Spring Boot.</p>
<p>I'd like to take advantage of the Authorization Policy Enforcing on Keycloak to reduce to the minimum the authorization code on Spring Application.
Right now following several examples and official Keycloak documentatio... | 3 | 2,875 |
Retrieving a list of objects in ABP, C# | <p>I'm working with the ABP tutorials on <a href="https://docs.abp.io/en/abp/latest/Tutorials/Part-3?UI=BlazorServer&DB=Mongo" rel="nofollow noreferrer">https://docs.abp.io/en/abp/latest/Tutorials/Part-3?UI=BlazorServer&DB=Mongo</a> with the Acme.BookStore project. I have a list of Books and I want to use a cus... | 3 | 2,923 |
.NET 5 Blazor Server OKTA Authentication showing HTTP Error 400 | <p>Using ASP.NET Core (.NET 5) Blazor Server with OKTA. OKTA log page has been prompted. I am getting below error messge on submitting OKTA uid/pwd</p>
<pre><code>HTTP Error 400. The size of the request headers is too long.
</code></pre>
<p>My middleware is as like below, using an OpenId Connect.</p>
<pre><code>service... | 3 | 5,854 |
Can you create separate meshes in FiPy by reading "physical names" from Gmsh? | <p>I have the following code representing a .geo file for Gmsh that I want to load in FiPy for process simulation. It contains: (i) Oxide, (ii) Silicon and (iii) Gas as physical entities that needs to identified as separate meshes.</p>
<pre><code>SetFactory("OpenCASCADE");
//
ns = 1e-1;
ns2 = 1e-2;
//
x1 = 0;... | 3 | 1,042 |
Call an class object with a name that is from user-input | <p>Basically, The user creates a creature by giving it a name, this name is then fed into the creation of the creature, where it is then given stats (This all works fine, even when making several creatures). However, I want to give the option to the user to check the stats of the creature they created through the 'chec... | 3 | 2,198 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.