title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Comparing 2 arrays of nested objects while ignoring some properties in Javascript
<p>I'm looking to check an API response for against a set of values but the API response contains some additional info that I'm not interested in checking against</p> <p>Data to check:</p> <pre><code>[ { &quot;address&quot;: { &quot;city&quot;: &quot;London&quot;, &quot;firstLine&quo...
3
3,419
Getting an unexpected breakpoint when trying to print a doubly linked list
<p>I am getting an unexpected break point when I am trying to print out my doubly linked list. The unexpected break point is popping out in the <code>printSongInfo</code> function in the dsA1LL.cpp on the line</p> <pre><code>while (ptr != NULL) { printf(&quot;%-35s %-35s %-35d\n&quot;, ptr-&gt;title, ptr-&gt;artist...
3
2,932
Android : Parsing JSON file issues
<p>I've been fighting with some JSON parsing in my application and after 3 days of researching I still can't figure out the issue. </p> <p>The error that is being sent is "org.json.JSONException: Value "</p> <p>I got the error in a try/catch statement that I've been working on. </p> <p>My Try/Catch looks like this ...
3
1,317
How to redirect output from the NASM command line assembler in C#
<h1>Brief Summary</h1> <p>I am creating a lightweight IDE for NASM development in C# (I know kind of an irony). Kinda of like Notepad++ but simpler but with features that make it more than source editor. Since Notepad++ is really just a fancy source editor. I have already implemented features like Project creation (us...
3
2,393
Burp Suite: how to hack this URL?
<p>I am attempting a hacking exercise in a network security course. However, I am stuck with understanding how to use Burp Suite.</p> <p>This is the RAW data:</p> <pre><code>GET /ekohshahrabohpha/cgi-bin/users.php HTTP/1.1 Host: 134.219.148.11:61166 Connection: close Accept: */* User-Agent: Mozilla/5.0 (Macintosh; I...
3
1,331
How do I pass function as an array element
<p>Here is the updated post: I am providing the entire code. In this code, I is constant. I am trying to make I as a Gaussian function that can be generated using this code:</p> <p>Code for Gaussian:</p> <pre><code>mean = 0 standard_deviation = 1 x_values = np.arange(-5, 5, 0.1) y_values = scipy.stats.norm(mean, stand...
3
1,817
Select result in grouped row using fetch and while in PHP
<p>In the code below, I send a request, the I put the result In a table using PDO fetch. But when we have a "Data Element" with 2 elements, it creates 2 rows in the table, 1 for each "element". Example:</p> <pre><code>**************************************** **Data Element Name** | data 1 *****************************...
3
1,234
Not able to run Dyamic FTP example- Spring integration
<p>I am trying to run the Dynamic FTP example in Spring Integration. But changed the mode to SFTP. While running the test it is showing the expression evaluation is failed due to below message</p> <p><em>org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 30 in XML document from class path reso...
3
7,209
ipywidgets: How to make a double slider widget that accepts a callback for its observe method
<p>I am trying to create an object that behaves like an <code>ipywidget</code>, but contains two sliders instead of a single one. This object would have a <code>value</code> property that would return a <code>dict</code> of values (one entry for each slider).</p> <p>I would also like this widget to be embeddable inside...
3
1,723
Unable to Write Out to PSObject an Array of Data pulled from DB2 database using IBM.Data.DB2 Connector
<p>I'm able to extract the data to a CSV file directly when I use $extractFile = 'D:\TEST\Q_sampler_result_file.csv' when I use Export-CSV to direct to $extractFile.</p> <p>What is wrong with how I'm using PSObject to bring this same table into an array which I would then, if successful direct to an HTML email?</...
3
1,159
How to save dynamic content of a table?
<p>I am trying to save dynamically displayed data in a table after a filter and I am not able to save it in some array and keep it there for use in the next step.</p> <p>In the beginning, the user is able to upload an excel file in the agreed format, I take the data from it and prepare an array with all the detail as y...
3
3,141
AWS Cloudformation and Autoscaling keeps placing instances in same AZ
<p>Hi all I have the following CF that create a RMQ cluster using RMQ autoclustering. It works. However every time I run this all the instances end up in the same AZ! I've verified that the stack variables are correct. The subnets are set correctly as well. It's all create in the correct account. Not sure what else to ...
3
9,854
Passing string/int to label with c# in wpf
<p>I'm making a TCP client and would like it to show the IP and port that is been used.</p> <p>I have two labels that I would like to be filled with the text of the ip and port been used, these in the code are called serverip_lbl and portno_lbl.</p> <p>You can see I have tried two different ways to do this, neither g...
3
1,237
Accessing Connected Vertices in OrientDB Javascript Functions
<p>I'm attempting to use the build in Functions in OrientDB studio to group Workstations that aren't in use by a Person. The query to get these vertices works fine but I'm trying to avoid Traverse as it is very slow - too slow to be used in production. Instead of iterating through each free station and grouping it toge...
3
1,752
Is there a way to peek into a stream and check whether it is not empty WITHOUT consuming the stream
<p>I wrote a piece of code which retrieves thousands of String objects from a rest endpoint in form of stream.</p> <p>My issue is that the endpoint sends data in pages. Every page would have say 1000 elements. Now I don't know the number of pages beforehand.</p> <p>So I have to get the page as stream -&gt; look into it...
3
1,365
rails server not running exiting
<p><strong>This is the output I have obtained when run rails server. I am new to ROR and the version is 3.1.0. Any help would be appreciated</strong></p> <p>I am running this in windows 10 setup. If you need more details please let me know i can provide. I am by profession Php/ Asp.net developer and mostly worked on fr...
3
7,170
How to make certain tab (screen) skippable in material top bar?
<pre><code>import React from "react"; import { Image } from "react-native"; import { createMaterialTopTabNavigator } from "react-navigation-tabs"; import { createAppContainer } from "react-navigation"; import Profile from "../components/Profile/Profile"; import Trips from "../components/Trips/MyTrips"; import Wallet fr...
3
1,871
how to delete record on database using breezejs and web api 2?
<p>I want to delete record on database using breeze js and web api 2 this is my code :</p> <pre><code>materialAdmin .controller('schProgCtrl', function ($scope, breeze, $filter, $sce, ngTableParams, serviceUrl, schServiceName) { var serviceName = serviceUrl + schServiceName; // route to the Web Api control...
3
1,616
angular service call within success of previous service call
<p>I have three angular service call in which service call 2 and 3 are should be made on the result of an value from the 1st service call. But my code is not hitting the second service call at all. Please find the code snippet below.</p> <pre><code> datacontext.GetUnitRegistration(serialNumber, customerId).then(funct...
3
1,435
Understanding Javas HttpSession
<p>I have a little problem with HttpSession. I use jetty 8 and try to implement an embedded web server.</p> <p>For testing purpose i have created two servlets:</p> <ul> <li>FileServlet: It simply handles HTTP GET for static content, like index.html, css and other static files and prints the current session id on the ...
3
1,321
Iterating through website table (Element is not attached to the page document)
<p>I have a code that iterates through website table. Table is dynamic and items are loaded into it on user scroll.</p> <p>I have parameters:</p> <pre><code>public class UserTableRow { private readonly IWebElement row; public string Username =&gt; row.FindElement(By.XPath(&quot;.//div[contains(@class, 'slick-c...
3
6,337
IBM Mobilefirst: Issue in calling a service from adapter with basic auth
<p>I have a service call thats being called from my adapter and that particular service call is being protected by Basic auth. So I am adding the following code in adapter XML to help all the service calls from this adapter to do the Basic Auth validation.</p> <pre><code>&lt;wl:adapter name="adapter" xmlns:xsi="http:/...
3
1,040
Use jquery to find the input inside a div not working as expected
<p>I have a table with inputs and I would like to click on a button and then get the values of some inputs. I just don 't understand how to get there in an easy way as my code is returning undefined all the time.</p> <p>Code for the table:</p> <pre><code>&lt;table align="center" class='hovertable' width="90%"&gt; ...
3
1,604
How to sort a list of alphanumerics with complicated strings
<p>I need your help because Im stuck at this problem. I want to sort a list which consist of ugly string combined with integers. The ordering that i desire is the following: Starting with </p> <pre><code>f(-2,-2)=..., f(-2,-1)=..., f(-2,0)=..., f(-2,1)=..., f(-2,2)=..., ..., f(2,2)= ... </code></pre> <p>I've trie...
3
1,486
Angular application Signin Redirect fails with "invalid_grant" error when running on different machine than the IDP
<p>I am using oidc-client with Angular to log in to my identity server. When running both applications on the same machine everything works perfectly.</p> <p>However when I run my Identity Server on a Web Apps server and my Angular Application on a Static Web App I get an error &quot;invalid_grant&quot;.</p> <p><strong...
3
2,867
Angular can't test error handling with jasmina&karma
<p>I am trying to test my authService <code>signIn</code> method, with mockedAuthService. I have done scenario where, sign in passes and I also want to test the case, when it fails with backend error when credentials are not correct, everything is working perfectly since going through it in GUI so I decided to ensure ...
3
1,094
How do I set the minimum value step to 1.0E-14 for QDoubleSpinBox in PyQt4?
<p>This is my sample code for QDoubleSpinBox of PyQt4. I got this code from the <a href="http://www.qtcentre.org/threads/14662-QDoubleSpinBox-and-Float-Values" rel="nofollow noreferrer">site</a> and modified it.</p> <hr> <pre><code>class PowerSpinBox(QtGui.QDoubleSpinBox): def __init__(self, min, max, step, decim...
3
1,398
JavaFX ComboBox plus ListView for Map of Sets
<p>I have an <code>ObservableMap&lt;String, ObservableSet&lt;String&gt;&gt;</code>.</p> <p>I would like to create a UI which has a comboBox and a ListView. The comboBox is populated by the keys of the map. Selecting one key from the map would then populate the ListView with the contents of the Set that is mapped to ...
3
1,179
OpenGL Vertices not drawn
<p>I'm trying the whole day to get OpenGL to work in Java (with LWJGL 3/GLFW). The problem is that besides the clear color, I don't see anything drawn.</p> <p><strong>Question:</strong> </p> <ol> <li>Is the order of my OpenGL Function calls ok? </li> <li>Are there any mistakes that prevents the vertices from being dr...
3
2,974
Error with JNI app
<p>I have compiled .so library for app and java app app for calling methods from this library. Library compiled for ARMv7 and app work fine on real device (Nexus 4). When i try to lauch this app on emulator, I get next error:</p> <pre><code>dlopen("/data/app-lib/com.opendesign.android-2/test_jni.so") failed: dlopen fa...
3
2,156
define variable in alertmanager configuration yaml file to forward prometheus alerts to slack
<p>I am stuck with a basic YAML problem but I am not sure what's the proper way around it and YAML isn't my strong suit.</p> <p>I am trying to get the below code to work. The &quot;slack_configs:&quot; section is where I get an error. Whatever I put under the &quot;templates.tmpl&quot; section does not seem to be picke...
3
1,904
how to sort multiple list of tuple in any direction in python?
<p>so basically I have 10 lists: 5 rate lists and 5 dev lists. Which are combined to form 5 lists. Lists are:</p> <pre><code>rate1 = [16,16,16,0,0,0,0,0,16,16,0,0,0,0,0,0,12,23,34,45,56,67,545,23,34,45,56] rate2 = [6,6,15,5,5,5,5,5,8,7,7,7,7,7,6,6,2,23,324,415,56,67,545,23,34,48,6] rate3 = [5,4,3,2,2,0,0,0,8,8,8,8,6,6,...
3
2,683
MPI_Send + struct + dynamic memory allocation
<p>I'm trying to handle some dynamically-allocated multidimensional arrays in C++ using MPI. To avoid worrying about non-contiguous memory, I've written a class wrapper which allows me to access a 1d array as if it were 2d. I'm trying to create an MPI data type to send instances of the class through MPI_Send. </p> <p>...
3
1,825
Jquery loading different content, and manipulate the loaded content with the still running js
<p>Well I have 3 files. 1 is php.index 2 is javascript and 3 is php.loadinternet</p> <p>php.index has a small form</p> <pre><code>&lt;div id="login-button" class = "knopf"&gt;&lt;a href="?view=logs"&gt;Log in&lt;/a&gt;&lt;/div&gt; </code></pre> <p>which is being manipulated with</p> <pre><code>$("#login-button").cl...
3
1,115
HTML Coordinate Distance Calculator not printing
<p>I've been working on this HTML/Javascript code using the Haversine formula, in order to tell the distance between two devices. It's not currently finished however the code should be readable. For some reason "d" the final variable for the distance isn't printing (document.write) after calculation. The site is curren...
3
1,080
Problem with BMI calculation program - if else and calculation errors in dev C++
<p>For some reason, it doesn't let me insert the weight data, prints only the ''short man'' category (regardless of height data inserted), doesn't print BMI'S value and completely ignores the last ''if else'' statement. I can't seem to find the problem as it looks perfectly fine to me. I'm using dev c++.</p> <pre><code...
3
1,714
use smoothing-spline effectively for predictions
<p>I have a time series given by two vectors</p> <pre><code>x_1 = np.array([119., 122., 129., 142., 159., 162., 179., 182., 189., 194., 197., 199., 202., 204., 209., 214., 217., 219., 222., 224., 229., 234., 237., 242., 244., 257., 269., 274., 277., 279., 299., 327., 339.]) y_1 = np.array...
3
1,137
Angular 4 - XMLHttpRequest is not defined when debugging
<p>I'm having an issue with vscode debugger. The first issue I had when I tried it was (by the way the project works just fine when I launch it without debugging):</p> <blockquote> <p>reflect-metadata shim is required when using class decorators</p> </blockquote> <p>I saw on other posts that I have to include Refle...
3
1,245
how to print a particular value from an array?
<p>i want to print first value of id 219 is mentioned in the screenshot for case:downloadl then i need to print 2nd value id=219 for case :downloadp.but,the array $value['printp'] getting both the values into the table(ex:Select usera Select userb). but i need to print only one and first value for this $valu...
3
3,180
ete3.TextFace: Leaf label size (fsize) not changing on circular dendrogram (Python 3)
<p>I've been working on a wrapper for <code>ete3</code> where I can customize the leaf labels (i.e. which leaves have labels shown) and node presence (i.e. which leaf nodes are shown). One part I'm having trouble with is defining a label size. </p> <p>When I try to change the <code>fsize</code> in <code>TextFace</co...
3
3,122
problems opening listView items with intents in android studio
<p>I have a listView with 2 items in the list, the first item in position 0 responds to clicks but the other does not! i have tried to copy the same onclick method and changed the if statement to the list item in position 1 but it is not working out for me so i am looking how to get this working if someone could help m...
3
1,239
Ionic 3 : verify if token has expired on nodeJS Server
<p>I'm building an ionic 2 app with NodeJS API, in the server side I'm using jsonwebtoken to create the token after login success and save it on localStorage in the client side. my problem is how to compare and check if the token is still valid after the expireIN time ! </p> <p>here is the server route side code : </p...
3
5,553
Retrieving the total discount of an order in process in ZenCart
<p>I'm working with ZenCart 1.5.1 and a custom mod called "TaxCloud".</p> <p>I would like to know if there is a way to retrieve an active, in process order's discount total that is being computed by the module <code>ot_coupon.php</code>. (As in an order that is not completed yet but in the middle of being completed.)<...
3
1,675
Updating a field inside a firebase firestore doc without hand write the field key to update Angular
<p>How could i update a doc inside my firestore without precisely write in the code the field i want to update , cause already is reached through the form: .Lets say the HTML tag in Angular already brings both the key and the import(that one to be updated):</p> <pre><code>HTML Tags &lt;form [formGroup]="importN...
3
1,076
Rename columns of newly formed database in R
<p>How do I rename columns DR01 to DR07 of my SUM dataset? As you can see for the SUM dataset I am adding values from my df dataset together with the PV dataset. So, I would like the SUM database columns to be DR01_DR01_PV instead of DR01, DR02_DR02_PV instead of DR02, and so on. This would make it easier for me to und...
3
3,438
Comparing current and previous faces from a continous faces detection
<p>I am working with face detection.I need to compare current and previous(successive) faces.Can any one help me how to take current and previous faces from a continuous face detection.I am not getting any idea about this. </p> <p><strong>This is my face detection code</strong> </p> <pre><code>void facedetect(IplImag...
3
1,492
Attribute change with variable number of time steps
<p>I would like to simulate individual changes in growth and mortality for a variable number of days. My dataframe is formatted as follows...</p> <pre><code> import pandas as pd data = {'unique_id': ['2', '4', '5', '13'], 'length': ['27.7', '30.2', '25.4', '29.1'], 'no_fish': ['3195', '...
3
1,297
Android Recycler E/AndroidRuntime: FATAL EXCEPTION: main
<p>I am trying to display a list of images inside a recyclerview. However, when I add an image to my recycler, I receive a fatal error.</p> <p><strong>I put my recycler inside a fragement:</strong></p> <pre><code>public class SearchOverviewFragment extends Fragment { private RecyclerView recyclerView; private S...
3
5,512
How to convert time of the date and count the days in python?
<p>I have a dataset about users taking online courses. It has features like, 'id', 'event', 'time'. I groupby them and want to know the frequency of a user doing every event on specific days. I want to count them in days.</p> <pre><code>lt = log_train.groupby(['enrollment_id','event','time']).size() print(lt) enroll...
3
1,565
jQuery click event doesn't execute two times
<p>I have a button in my page which basically returns an alert as a sample. The button fires only one time. I checked previous entries and changed to event. The current event is like below</p> <pre><code> $("#save_button").on("click", "#save", function() { alert("Button clickeddddd"); }); </code></pre> <p>the...
3
1,714
PHP Find keys in one array that exist as values in another array, and pull back the value
<p>I have two arrays, the first has keys, which exist as values in the second array. I'd like to identify the keys in the first array, that exist as values in the second array. And in the second array, i'd like to change the value (that is the key in the first array) to the value of the key in the first array.</p> <p><...
3
1,315
Flink Python Datastream API Kafka Producer Sink Serializaion
<p>I'm trying to read data from one kafka topic and writing to another after making some processing. I'm able to read data and process it when i try to write it to another topic. it gives the error</p> <p>If I try to write the data as it is without doing any processing over it. Kafka producer <code>SimpleStringSchema</...
3
4,923
giving SSL certificate for virtual host laravel
<p>I have a project I want to work as a frontend dev and the backend in laravel <br /> everything is fine I'll start work, but when I access any page on the website, the links (such as image, css, js etc links) is HTTPS, but the link in my machine is HTTP, so I most have SSL to run the project</p> <p><strong>I tried vh...
3
1,309
How can I implement [Authorize(roles="admin")] attribute on top of method name in asp.net framework 4.5.2?
<p>As I mentioned in the title I want to do the authorization in my application. I have created application in no authentication mode. Now I want to apply authorization by using <code>Authorize</code> keyword and want to give the access to the method for admins only. I want to restrict other users to see that method bo...
3
4,011
Redirecting Input and Output of child process not working
<p>I have coded two c++ app, one is console and the other is gui. I want the gui app starts the console app and inserts input on it and redirect output and error and show them on the textbox. </p> <p>my code does not work in gui app after pressing run button and does not show the output and it seems that the gui app f...
3
5,241
Unit Testing Methods with Complex Linq Queries
<p>I feel like I have hit a bit of a brick wall with this program. This is my first attempt at unit testing anything, and I'm the guinea pig for the team. My issue revolves around unit testing methods with Linq queries, which call multiple Entities. I think I have figured out how to unit test a query using a single ent...
3
1,152
Ionic map loads when i first enter the page but after navigating back it does not load
<p>I am working on a hiking app based on IONIC geolocation, i have been trying to load the map but it always works well for the first time but when i go back to other tabs and when i return to that map page the page goes blank.</p> <blockquote> <p>This is the code for the map-geolocation</p> </blockquote> <pre><cod...
3
1,656
Plaid OAuth deep link integration in SwiftUI
<p>Is there a tutorial on how to implement OAuth in iOS using pure SwiftUI?</p> <p>I read all the docs here (<a href="https://plaid.com/docs/link/oauth/" rel="nofollow noreferrer">https://plaid.com/docs/link/oauth/</a>) and studied the code here (<a href="https://github.com/plaid/plaid-link-ios" rel="nofollow noreferre...
3
2,799
Downloading Clickonce application fails in WebBrowser control
<p>I am using webbrowser Control in my application and conditionally needs to download another application ( click once based) without user interaction. the download of the application works from Edge browser as expected.</p> <p>Download fails in webbrowser control with following error</p> <p>OPERATION PROGRESS STATUS...
3
1,332
Multiple Slideshows not working (javascript)
<p><strong>Introduction</strong></p> <p>I have 2 simple slideshows on a single page. Only one works. Please help.</p> <p>I did research on how to develop a simple sideshow and it worked at first</p> <p>But then i added another slideshow and it went out of wacko</p> <p><br></p> <p><strong>My Code</strong></p> <p><...
3
1,223
How can I rotate only the border of this SVG and keep the middle fixed?
<p>I want to fix a SVG. I want to only rotate the ID #dotted-line but keep the g id="panda" fixed in the center. Right now the entire SVG rotates at the speed and smoothness that I want, but the middle moves also.</p> <p>Please click "Run Code Snippet" below and hover your mouse over the icon to see the animation.</p>...
3
3,122
How can I add a new child element to the web element in my bootstrap.xml file using xmlstarlet?
<p>How can I add a new child element <code>&lt;app url=&quot;metrics&quot; war=&quot;metrics.war&quot;/&gt;</code> to the <code>web</code> element in the xml file below using xmlstarlet:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;!-- ~ Licensed to th...
3
1,301
Is there a way to implement two way TCP communication using socket programming in c?
<p>I have a two code files and I am trying to establish two way TCP communication. I have one way communication ready and working which is sending messages from client to the server and then the server printing it. I have been trying to establish a two way TCP connection, meaning that I can send messages from either ma...
3
2,151
Custom Library Components Does not show required props on intellisense
<p>I developed a custom React component library to be consume on a private npm. All my components are Typescript React Class Components and in many I used interfaces to declare which props are optional or required. Example:</p> <pre><code>export interface ICardLinkProps { Title: string; Description: string; ...
3
2,591
How do I set semaphores properly with my two processes program?
<p>How can I properly make the 2nd process wait for the 1st process to write the coefficients to a file?</p> <p>My task is to synchronize 2 processes using semaphores. The 1st process reads the data, writes to the file, then the 2nd process reads this data and finds the solution, which then writes to the file, and the...
3
1,995
Draw a circle with lineChart
<p>I'm trying to draw a circle using a LineChartView using Charts, I had no trouble doing this with a parabola, but when I try a circle, I get </p> <p><code>Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored. Ple...
3
1,204
Putting a button between and over two buttons linear layout
<p>I am working on a small fun project where I am building an one octave piano. I am trying to figure out how to add the black keys between and over the white keys. I am thinking I need to use a nested layout (maybe RelativeLayout) inside my horizontal LinearLayout.It should look something similar to the pic below.</p>...
3
1,427
Stringstream Line Processing
<p>the code below copies a text file into a vector and then streams all the lines in the text file to the clipboard.</p> <p>I want to copy the text file into a vector and stream all the lines BUT I want to process each line with <code>////code..</code> before the next I am struggling with the loop logic.</p> <p><stro...
3
1,485
Customizing GtkTextTag appearance thru GTK3 CSS stylesheets?
<p>I have some <code>GtkTextTable*mom_tagtable;</code> which is the tag table of a <code>GtkTextBuffer *mom_obtextbuf;</code> (which is shown in two text views <code>GtkWidget *mom_tview1;</code> &amp; <code>GtkWidget*mom_tview2;</code>). I'm using GTK3.21 on Linux/Debian/Sid and it is for the same (free software, GPLv...
3
2,442
Drag&drop an object over another object
<p>I'm new here and I have some problems with drag and drop. I'm trying to come with an object over another, but it work only depending how I added the object. I want with the last object that I add, I can move it over other objects and with the first can't do nothing. what should I do? </p> <p><div class="snippet" d...
3
1,097
Get the value from json url
<p>I am developing a simple application with AngularJS and I want to get the value of the price dynamically I mean to get it from a json data. Is this possible !</p> <p>This is my <strong>data.json</strong>:</p> <pre><code>{ &quot;prix&quot;: { &quot;prix_diesel&quot;: &quot;8.54&quot;, &quot;prix_e...
3
3,407
Error Executing transformation
<p>I'm currently trying to export, transform and load some data to the database to do some analytics later on. However, upon running the application, it gives me an error!</p> <p>Below is the code:</p> <pre><code>import org.pentaho.di.core.KettleEnvironment; import org.pentaho.di.core.exception.KettleException; impor...
3
1,929
responsive MaterializeCSS design
<p>I have to make a User Page for our club website, but I am using Materialize CSS instead of Bootstrap. I am having a hard time making it responsive. My content gets displays weirdly, text goes out of the box and buttons get glued together.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="tr...
3
1,328
How to copy framework dependent (exe) file from PackageReference/Nuget Package to output directory?
<p>i have a multi-targeting project (net48;net6.0) which depends on a Nuget Package containing framework dependent files (lib/net6.0/Assembly.exe). I want to copy these files from the nuget package to the TargetFramework output directory (net6.0).</p> <p>I tried to add targets to the nuget package, but the target is on...
3
1,376
How can I get my chat to accept more than one client?
<p>I am trying to create a multi-client to server chat. This works fine while chatting one-to-one, but when I try to run another client and connect it, it does not go through/connects. Am I missing something on the threads? I only added the Server and Client classes without the imports, there is the main class that ask...
3
6,567
System checker fails on MacOS Big Sur with "Java is not reachable"
<p>I'm having trouble running Cytoscape 3.9.1 on MacOS Big Sur. The system checker fails with the following:</p> <pre><code>############# Cytoscape System Requirements Checker for Mac ############## Target Cytoscape version: 3.9.0 Your shell is bash Compatible OS version found: 11.6 - Pass: OS Version = 11.6.1 - Pass...
3
1,960
How to highlight the Table row based on Value
<p>I'm working on Google webApp Crud data generated from Google sheets. The search is working all fine, but I'm trying to highlight certain rows based on the data value in Column 7.</p> <p>E.g If the row contains in Column 7 &quot;PROCESSING&quot; I want to highlight that row with an Orange color in order to focus on t...
3
1,899
Need to combine array elements to match id's needed to print into table cells
<p>What I have is a table coded in HTML that has 10 rows and 10 columns, and each cell has it's own ID: </p> <pre><code>&lt;table id="ch4"&gt; &lt;caption&gt; Multiplication Table &lt;/caption&gt; &lt;tbody&gt; &lt;tr&gt; &lt;th scope="col"&gt;*&lt;/th&gt; &lt;th scope="col"&gt;1&lt;/th&gt; ...
3
5,043
Error:Using GridView with Fragment
<p>I have a fragment MobilesFragment and I want to show a gridview inside it, which will contain two textviews and an imageview, but on my first run, th is an exception which is occuring,</p> <pre><code>E/AndroidRuntime﹕ FATAL EXCEPTION: main android.content.res.Resources$NotFoundException: String resource ID #0x64 ...
3
3,442
Show the output on the speedometer
<p>I have to read an Excel file and show the output on a speedometer. I have taken the input, and here is my HTML and scripting code, the Excel file contains name and value:</p> <pre><code>&lt;input type="text" id="txtSpeed" name="txtSpeed" value="20" maxlength="2" /&gt; &lt;input type="button" value="Draw" onclick="...
3
1,431
Switch Statement Only Defaults c++
<p>So I'm writing some code and I have this switch statement to set some bools in a 2d array. I have a nested for loop and a switch with switches in the nested loop setting on outer loop <code>int i</code> and inner loop <code>int e</code>. <code>grammar[i][e]</code> I'm switching on i and then on e but for some reason...
3
13,330
Webpack lazy loading (promize) end on error
<p>I'm very new to webpack and I followed tutorials to set up my config file. I managed to do all I wanted so far, except the lazy loading...</p> <p>I just did a HMTL page with a button and linked the JS to it. When I click the button, it's supposed to import jquery and change the text color on the page, but i get thi...
3
2,266
Getting 404 trying http PUT using Node Express Postgresql
<p>Edit: NEVERMIND - I made a small mistake in the Angular service. My bad.</p> <p>I'm trying to teach myself more backend by building a simple CMS using angular, Node and Express, and PostgreSql. I figured out how to do achieve all the CRUD functionality except UPDATE. I thought I understood what to do but I can't fi...
3
1,780
How to replace string in a file
<p>I am writing shell script which will list the drivers .ko files and adding entry in init file. File comes in initramfs.</p> <p>so below some thing i have did in script, I tried google but solutions not working so finally i had to post question.</p> <p>few issues,</p> <p>1) i was trying to store strings with newli...
3
3,048
WebServices Call when application in Background and show the response in Local Notification
<p>I have an enterprise application that I want to keep running, so it can call a webservice and inform to the user through Local Notification.</p> <p>So, it now runs in the background, it makes the calls, gets results, informing to the user. I Used a timer in applicationDidEnterBackground. My Code is,</p> <pre><code...
3
1,663
How do i render multiple props in a single component and then pass those props to a child component in React
<p>I was trying to render multiple props in a single component both the props are from different apis which are working together and the problem is i want to map the props in a single component to display a list of posts. someone said me do this by creating a variable (array) in my component. Then, spreading the prope...
3
1,212
Replacement for JSON_ARRAYAGG and JSON_OBJECT from MySQL in v5.6 or PHP
<p>I've inherited an old project that runs on MySql 5.6 and Zend FW 2. I'm trying to run a query that will give the same results as JSON_OBJECT() but mysql 5.6 doesn't support that.</p> <p>Basically I have 2 tables</p> <p>Receipts -</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>receipt_id...
3
2,908
geoDjango - coercing to Unicode: need string or buffer, LineString found
<p>I'm running a Django installation with geoDjango, and have created a model like this:</p> <pre>#models.py from django.contrib.gis.db import models class Route(models.Model): name = models.CharField(max_length=100) path = models.LineStringField(srid=4326) objects = models.GeoManager() def __unicod...
3
1,660
Conditions and for loop in C#
<p>I am new to C# and I am trying to solve a population algorithm.</p> <p>These are the conditions:</p> <ul> <li>the starting population is 26000</li> <li>Influx of people each year is set in a variable</li> <li>Emigrated people each year is set in a variable</li> <li>Born each year are 0.7% of the population</li> <l...
3
1,083
REST - Jetty 9 and Jersey 2.6 Multipart file upload
<p>I'm trying to create an api to write (upload) a file with <code>Jetty 9.4.7</code> and <code>Jersey 2.26</code>. </p> <p>The api is structured like this: <code>/api/write</code></p> <p>I am initializing the server in <code>App.java</code> which is in <code>com.rest.app</code> package. The resource file <code>FileU...
3
1,758
UITableView button color issue
<p>I have some questions to answer with Yes or Not in a <code>UITableView</code>, each option (yes/no) is it's own button in the cell.</p> <p>First, I have to handle the click event, because I have to change button's <code>backgroundColor</code> on click and I have to add the clicked row to create another struct with t...
3
1,030
java.security.InvalidAlgorithmParameterException on Java 8 but works on Java 11
<p>So let's assume you want to verify a signature using a public key that uses ECDSA algorithm with brainpoolP256r1 elliptic curve.</p> <p>For running the code below, follows these steps:</p> <ol> <li>generate a keypair of brainpool using these commands:</li> </ol> <pre><code>openssl ecparam -name brainpoolP256r1 -genk...
3
1,114
Is there a way to alter class variables from a thread
<p>So I have a class that formats a csv using pandas data frames. The amount of data in the csv's is very large and I would like to introduce multithreading into the program in order to speed up the process. The issue I am running into is that the Data frame's values don't get altered when I use multithreading, any tip...
3
1,335
Value error while fitting model with keras fit()
<h1>make a bigger datased</h1> <p>X = tf.range(-100,100,4) X</p> <h1>Make labes for the dataset</h1> <p>y = X+10 y</p> <p>#1. Create the model model = tf.keras.Sequential([tf.keras.layers.Dense(1)])</p> <h1>2. compile the model</h1> <p>model.compile(loss = tf.keras.losses.mae, optimizer= tf.keras.optimizers.SGD(), metr...
3
1,037
Angular - cannot find module
<p>I created app using JHipster (simple Java + Angular app). When I compile project to prod profile, I get <a href="https://i.stack.imgur.com/kgNEJ.png" rel="nofollow noreferrer">Error</a>. Admin Module is added using AppRoutingModule, code below:</p> <pre><code>@NgModule({ imports: [ RouterModule.forRoot( ...
3
1,108
Setting Expires cache in webapplication for JBoss application server not working right
<p>I have set up a cache-filter for my web application in JBoss Application Server 7.1.1 </p> <p>by using the setHeader and setDateHeader functions of the response.</p> <p>The Expires date is always set to 1 month in the future since the server has been restarted - The month is also depending on the current month: So...
3
1,961
Error while adding entity object to DBContext object called from Parallel.Foreach loop
<p>Error : If the event originated on another computer, the display information had to be saved with the event.</p> <p>The following information was included with the event: </p> <blockquote> <p>Object reference not set to an instance of an object. at System.Data.Objects.ObjectStateManager.DetectConflicts(ILi...
3
3,468
Call webservice using axis in java
<p>When I would like to call webservice using Axis the request looks like this:</p> <pre><code>&lt;env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'&gt; &lt;env:Header/&gt; &lt;env:Body&gt; &lt;ns2:pobierzWarunkiCenowe xmlns:ns2="http://something"&gt; &lt;parametryWarunkowC...
3
1,774
ios: Uploading mulitpart file to AmazonS3
<p>I'm trying to upload a file to Amazon S3 from my iOS app. I'm using AFNetworking for network requests. I have the following code for uploading file to S3:</p> <pre><code>func uploadFile(filePath: String, uploadUrl: String, returnDict: NSDictionary? = nil) { let fileName = filePath.lastPathComponent let file...
3
1,196
Getting error while trying to make list of youtube video
<p>I want to show list of youtube videos</p> <p><strong>Item XML</strong></p> <p></p> <pre><code>&lt;RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" &gt; &lt;TextView android:id="@+id/video_title" android:layout_width="match_parent" andro...
3
2,843