title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
CDATA getting stripped in lxml even after using strip_cdata=False
<p>I have a requirement in which I need to read a XML file and replace a string with a certain value. The XML contains CDATA element and I need to preserve it. I have tried using parser and setting strip_data to false. This is not working and need help to figure out a way to achieve it.</p> <pre><code>import lxml.etr...
2
1,901
Set up proxy on selenium geckodriver
<p>I'm having issues adding proxy support to my geckodriver selenium program.</p> <pre><code> var proxy = new Proxy(); if (useproxies == true) { if (proxytype) //True = SOCKS5 { /*var proxy = proxies[proxyindex]; ...
2
1,897
MouseOver CSS3D effect with javascript
<p>I am trying to achieve mouseOver effect like this.</p> <p><img src="https://i.stack.imgur.com/FoYac.png" alt="enter image description here"></p> <p>I am able to generate css3d matrix required for each and every tile according to their position.</p> <p>I have achieved this effect with slow mouse movement, but if I...
2
5,641
How to fix: 403 Error with Google Cloud SQL Export
<p>I am attempting to export a full SQL dump of one of our Cloud SQL Postgres instances to Google Cloud Storage so we can have more frequent backups using the <code>google-api-go-client</code> (<a href="https://github.com/googleapis/google-api-go-client" rel="nofollow noreferrer">https://github.com/googleapis/google-ap...
2
1,054
WSS4J code calculating digest, signing and adding key information?
<p>We need to create a WS client to interface with the IRS. We are following the steps the IRS defines on page 31 of their guide <a href="https://www.irs.gov/PUP/for_taxpros/software_developers/information_returns/AIR%20Submission%20Composition%20and%20Reference%20Guide%20TY2015.pdf" rel="nofollow noreferrer">https://w...
2
7,210
JSON Array is null when passed to MVC Rest interface
<p>I am attempting to pass a JSON object that contains both generic string properties and an array of objects with properties. </p> <p>The Model Object:</p> <pre><code>public class Stock { public IEnumerable&lt;Daily&gt; DailyList; public string Symbol { get; set; } public double PERatio { get; set; } } ...
2
1,314
"use of class template requires template argument list" error, even though template of template is used, therefore template class is expected
<h2>context/ultimate wish (though barely relevant to the question)</h2> <p>do a benchmark for lots of sizes for lots of containers for lots of element types.</p> <p>at least I would like to have a template combiner of type-lists to create a foreach(foreach) scheme. (obtain a 16-elements list from two 4-elems lists.)<...
2
1,637
Destroying session for user login / NULL $_SESSION remnant
<p>I'm trying to create a user login system for use on a website I'm building. I have the login script and register script, but I'm having trouble with the logout and destroying the sessions. </p> <p>Here's my index code. It gets the database info in config (doesn't do anything with it yet), then runs check-login to m...
2
1,299
How to verify if a username and password exists in my room database?
<p>I am practicing with the room database and it has been difficult for me to verify if a username and password exist in my database,(I am sure I have many errors for this reason I ask for your help) my code:</p> <p>//User</p> <pre><code> @Entity(tableName = &quot;user_table&quot;) data class User( @Pr...
2
1,363
How to loop insert data to database in codeigniter?
<p>I want insert data using loop to my database. I have view, name is <strong>'form.php'</strong>.</p> <pre><code>&lt;!-- STEP 3 --&gt; &lt;fieldset&gt; &lt;h2&gt;Kebutuhan Khusus&lt;/h2&gt;&lt;p&gt;(bila ada)&lt;/p&gt; &lt;div class="form-group"&gt; &lt;label&gt;Calon Mahasiswa&lt;/label&gt; &lt;select name="ke...
2
1,482
Dynamically populating a DropDown Template Control in a Gridview
<p>I have a GRIDVIEW with columns, one of which contains a CSV of possible values for the dropdown that must appear on each row.</p> <pre><code> Private Sub GridViewParameters_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridViewParameters.RowDataBound ...
2
2,365
Transforming from json to xml in mule dataweave is not working
<p>If I send following JSON it works</p> <pre><code>{ "abc":{ "ccc":"ddd", "eee":"fff", "ggg":"aaa" } } </code></pre> <p>it gives response like following that is what I want</p> <pre><code>&lt;?xml version='1.0' encoding='windows-1252'?&gt; &lt;abc&gt; &lt;ccc&gt;ddd&lt;/ccc&gt; &lt;eee&gt;fff&lt;/ee...
2
2,603
How to draw polyline in google maps flutter between user location and a marker?
<p>This is my first post in this site so I hope I get the help I need.</p> <p>I'm new to flutter and I'm trying to use flutter_polyline_points plugin to draw polylines or routes between the user location and a marker that will be specified by the user. I searched online and I went over many tutorials but I kept getting...
2
1,625
Logging Error Spring boot Gradle
<p>I am getting the following error when i trying to user loggin in my application</p> <pre><code> at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at org.springframework.boot.loader.JarLauncher.mai...
2
1,268
How to use the RST module in Kivy?
<p>I'm creating a fitness/nutrition app in Kivy. The problem is that most of the screens involve text for the viewer to read and I don't want the text to be just plain old text like that of a .txt file. I tried looking for something and I found there is a RST rendering module that will make my text look good but after ...
2
6,331
UIImage not updating on setImage on button IBAction
<p>So I am changing the Image of a button and the Image of a UIImageView using these two functions:</p> <pre><code>- (IBAction)changeButton:(id)sender { //switch image to group if it is a badge. switch image to badge if it is a group. if([[properties objectForKey:@"current_item"] isEqualToString:@"badge"]){...
2
1,595
PLSQL Loop Through 100 Row at a time to delete
<p>I tried below code to fetch the 1000 rows and loop through to delete 100 row at a time. </p> <pre><code>DECLARE COUNTER INTEGER :=0; v_delstr varchar2(2000); v_countstr varchar2(2000); SchemaName Varchar2(40):='Staging'; TableName Varchar2(100):='History'; BEGIN LOOP COUNTER := COUNTER + 1; DBMS_OUTPUT.PUT_LINE('...
2
1,268
Rails 5 Bootstrap 3 Modal / Ajax not working
<p>I am building out an app in Rails 5 and using Bootstrap 3 for the framework. </p> <p>I have created a custom user controller ect to allow admins to create / edit and destroy users. I am setting up modals for the create user form, the modal its self works, however I want it to automatically place and render the tabl...
2
2,537
Setting webhook results in 'Unauthorized WebHook callback channel' . Everything should be fine
<p>Time to go to SE, since this has cost me more then 4 hours now. </p> <p>I'm trying to setup a webhook (<code>https://app.example.com/notications</code>) for Push Notifications coming from Google Drive API. </p> <p>After having set-up everything I'm getting error: </p> <pre><code> ... errors": [ { ...
2
1,097
Hi, How to parse xml with descendants within descendants C#
<p>I am trying to parse this xml and can successfully get the name and description but putting together the image is tricky. Both separate code parses work but I'd like to do one parse so I can bind them all to one listbox.</p> <p>The xml looks like this</p> <pre><code>&lt;stickers&gt; &lt;sticker&gt; &lt...
2
1,068
Custom background limits for Doughnut (Gauge)
<p>I'm using a Gauge chart based on (<a href="https://github.com/kluverua/Chartjs-tsgauge" rel="noreferrer">Chartjs-tsgauge</a>). I want to set background colors for chart separate from gauge limits. The problem with how <strong>Charts.JS</strong> renders background because the plugin I used doesn't have a code about b...
2
1,114
Can't install ggplot2 at debian 7.6 in R
<p>Today i'm trying to install a good library for visualization and create graphics, named "<em>ggplot2</em>", but i actually have a problems with installation!</p> <p>There what i have in output:</p> <blockquote> <p>Installing package into ‘/home/hamsternik/R/x86_64-pc-linux-gnu-library/3.1’ (as ‘lib’ is unspecifi...
2
1,295
Selenium Python test against Selenium grid created from SeleniumHQ Docker images
<h2>In brief</h2> <p>How to run Python Selenium tests properly against Selenium Grid container created from SeleniumHQ Docker images?</p> <p>I also asked on SeleniumHQ here <a href="https://github.com/SeleniumHQ/docker-selenium/issues/521" rel="nofollow noreferrer">https://github.com/SeleniumHQ/docker-selenium/issues...
2
1,910
MvvmCross overriding viewmodel associations for Android
<p>I am trying to override the default view model association but having no luck so far. I need to override this default behavior because some of my ViewModels do not follow the name convention assumed by the default view model lookup. For example, I have some ViewModels in namespace Pidac.Core.ViewModels, while the ...
2
1,037
Issue with adding multiple connection factories to spring social with spring 3.0.3
<p>I am getting the following exception with my spring social config, if I put more than one connection factory.</p> <pre><code> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connectionFactoryLocator' defined in ServletContext resource [/WEB-INF/social-config.xml]: Error setti...
2
10,667
phonegap android app for google map geolocatin issue
<p>I am making phonegap android application for geolocation. But it doesn't show google map.My code is as follow. I installed geolocation plugin for cordova. And it run proper upto alert of geocode in below code. I am testing with android mobile.</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title...
2
1,087
If HTML text equals value, onclick change
<p>Okay, I have tried a few ways of doing this but nothing has worked. I am hoping someone here can tell me what I am doing wrong. Below is a step-by-step of what I am trying to achieve.</p> <p><code>#info-NUMBER-btn</code> displays <code>Click to display more information</code>.<br> <code>#info-NUMBER</code> CSS is s...
2
1,328
EF6 : Multiple transactions at the same time
<p>My project has two parts : a Powershell script which collect some data and an ASP.NET 4.5 MVC application (with Entity Framework 6.1.3) which receive the data (as a file) and integrate them into the DB. There are more or less 1500 files that would be sent to the ASP.NET application.</p> <p>I need to use transaction...
2
1,648
Servlet method is not getting called?
<p>I am trying to upload a file to web server and read the same. file uploading is working and the file is uploaded but when i call some methods to manipulate saved file the method is not getting called. </p> <p>in the following file i call readFile method from post method.</p> <p>I am using tomcat 7.0. Please save m...
2
5,454
J2ME nokia s40 out of memory exception
<p>I am trying to read a 2mb file into a memory and then send that file to web server. But I am getting out of memory exception.</p> <pre><code> FileConnection fileConn = (FileConnection)Connector.open("file:///" + pictureURI.getString(), Connector.READ); InputStream fis = fileConn.openInputStream(); ...
2
1,884
Login form in flutter
<p>I´m create a simple login in flutter. This login connect to a API. For do this I retrieve inputs value and send to a method, but return </p> <blockquote> <p>type '_InternalLinkedHashMap' is not a subtype of type 'Map'</p> </blockquote> <p>This is my model</p> <pre><code>class Login { final String usuario, pas...
2
2,178
Sencha Touch: How to get data from complex JSON objects
<p>I am not able retrieve records from complex json objects but i am able to get the data when using an TPL.</p> <p>Please see the below example codes:</p> <p><strong>JSON:</strong></p> <pre><code>{ "lists": [ { "title": "Groceries", "id": "1", "items": [ { "te...
2
1,484
How to design TCP datagram and send data?
<p>Hi all,I have the server ip and port number,and then I want to use Socket TcpClient object to connet the server to send and receive data,But I don't konw how to customize the tcp-ip datagram.</p> <p>Here is the describe of packet </p> <pre><code>name bit datatype sync_tag 16 ...
2
1,412
Move and copy text file in bash script
<p>I referred to all the previous responses to this question from stackoverflow and tried out the following. But unfortunately, I am still encountering an issue.</p> <p>I have a text file named <code>Rels_obs</code> inside my directory <code>home/manuela/PycharmProjects/knowledgegraphidentification/data</code>. As the...
2
1,133
react-bootstrap and dynamic menu
<p>I'm new to react and trying to do a dynamic menu with the help of some JSON. But I have a problem with level 2. Is there not a better way to do this? And can I check if a level 1 has any level 2 or not. Because if there is not any Level 2 i need to use <code>NavItem</code>. If there is I need to use <code>NavDropdow...
2
2,284
How to get the defaultNamingContext in .NET Core?
<p>I'm trying to do ActiveDirectory/LDAP-Authentication in .NET Core. <br /> However, there is no System.DirectoryServices in <strong>.NET Core (NetStandard 1.6)</strong>.<br /> So instead, I use Novell.Directory.Ldap, which works fine, as long as you know the rootDSE. </p> <p>Normally, I would get the ActiveDirector...
2
1,227
How to export a datatable to a previous created PDF file while specifying a page to do that? (or creating a new page)
<p>I have the following task to complete: based on a dataset, I have to fill a PDF file's form fields using <code>itextsharp</code> while also exporting the said dataset on a table "format" so it could go on the second page of said PDF file.</p> <p><a href="https://i.stack.imgur.com/8AzJa.png" rel="nofollow noreferrer...
2
1,646
How to split xml to header and items using smooks?
<p>I have a xml file roughly like this:</p> <pre><code>&lt;batch&gt; &lt;header&gt; &lt;headerStuff /&gt; &lt;/header&gt; &lt;contents&gt; &lt;timestamp /&gt; &lt;invoices&gt; &lt;invoice&gt; &lt;invoiceStuff /&gt; &lt;/invoice&gt; ...
2
1,105
Understanding word2vec text representation
<p>I would like to implement the <code>distance</code> part of word2vec in my program. Unfortunately it's not in C/C++ or Python, but first I did not understand the non-binary representation. This is how I get the file <code>./word2vec -train text8-phrase -output vectorsphrase.txt -cbow 0 -size 300 -window 10 -negative...
2
2,111
Pandas is treating integer values as strings while sorting? why?
<p>I am trying to sort a pandas dataframe based on values from two columns. For some reason it is treating integers as strings, while several codes earlier those values were still integers. Not sure what caused the changes, but any way:</p> <pre><code>df = contig pos ref haplotype_block hap_X hap_Y odds_ratio ...
2
1,136
Easy Firebase Cloud Functions organization
<h1>Problem</h1> <p>After researching the Firebase docs, videos, StackOverflow, lots of articles, ... organizing multiple (lots of) cloud functions in an &quot;easy&quot; way is not obvious. Especially, since the official Firebase docs do not provide a clear vision/recommendation. Actually, the real problem is the lack...
2
1,439
How to load video by using canvas.loadFromJSON in fabricJS
<p>I'm trying to set video as background on canvas, when I set it for the first time it works fine. but while reloading it by using loadFromJSON() it is showing blank background on canvas.</p> <p>I'm using angular 6 .</p> <p>here is the snippet</p> <p>(note: here I have used simple class. while in my code I'm using ...
2
1,998
Implementing (Fabric UI) React in an (Office Web Add-In) ASP.net project
<p><strong>Context:</strong></p> <p>For a client we would like to develop an Office Web add-in with Microsoft's Fabric UI. The Office Web add-ins function as webpages that can be displayed within Office Applications. Interaction with the Office content (document/workbook/sheets) is done through the Javascript API (Off...
2
1,325
Create 2 log file in Springboot
<p>I creating multiple log file in <code>Springboot</code> , <code>log-back.xml</code></p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration&gt; &lt;property name="HOME" value="./logs" /&gt; &lt;appender name="SYSLOG" class="ch.qos.logback.classic.net.SyslogAppender"&gt;--&gt; &...
2
1,345
Responsive breadcrumbs with max crumb width
<p>I'm attempting to create a responsive breadcrumb trail where the overall trail width is restricted and each crumb width is also restricted. Additionally, I'd like to allow for the last crumb to take up any additional space. I've managed to put the following together that mostly demonstrates what I'm going for, but t...
2
1,257
Jquery load not working properly on click
<p>This is what I'm loading HTML into...</p> <pre><code>&lt;div id="AJAX_Parent" class="visibleBorderThick"&gt; &lt;div id="AJAX_Child"&gt; ... &lt;/div&gt; &lt;/div&gt; </code></pre> <p>This is the link that loads the HTML using jquery's load function.</p> <pre><code>&lt;a id="MyID_1755055367" class="dy...
2
1,300
Spring Tool Suite.HTTP Status 404 -The requested resource is not available
<p>I'm working with Spring Tool Suite and I want to be redirected to a jsp (rapports.jsp) from sevelet.But I can't do so .I get this error: </p> <p>HTTP Status 404 - /rapports.jsp type Status report</p> <p>message: /rapports.jsp</p> <p>description:The requested resource is not available.</p> <p><strong>This is my ...
2
1,979
Unclassifiable statement at (1) and Unexpected data declaration statement at (1) in Fortran77?
<p>I am trying to count the number of lines in a file in Fortran 77 (My file has two columns, both with numbers)</p> <p>I am getting an unclassifiable statement and unexpected data declaration and I am not sure why. This is my code: (new to fortran 77):</p> <pre><code> PROGRAM Exercise C C John Smith C C C PARAM...
2
1,949
Android Plus & Minus buttons clicked value display in multiple rows not working correctly in Listview
<p>I'm a beginner in android development.I have two buttons and TextView in a linear layout. When i click plus button value increase for multiple row items and same for minus button clicking time.Also when I scrolling clicked value move to next position.Can you please help me how to fix the bugs.Below i wrote i my code...
2
4,421
Gradle: How do I make one task depend on output files of another task across projects?
<p>I have two tasks which both call the Exec closure (task1 and task2). task1 exec call generates output files for task2 to take in as command line parameters of an input. task1 and task2 will be part of the same gradle file that is used in a multiproject build. I include the same gradle file in multiple project usin...
2
1,541
passport js deserialize user, variable undefined
<p>I'm trying to build a backend for a web app, but I'm stuck on passport. Right now I can register a user and log that user in, but I can not log in twice in a row. Whenever deserialize user is called I get "TypeError: Cannot read property 'findOne' of undefined" I see that user is undefined but it is defined when I c...
2
1,867
Getting spectrogram from recorded audio , ERROR: "ParameterError: Audio buffer is not finite everywhere"
<p>I'm trying to record a sound using 'pyaudio' and get a spectrogram for the audio, but I get the above error: " Audio buffer is not finite everywhere". It might be a possible duplicate, but I didn't find something which solves the eroror. Here is my code:</p> <pre><code>CHUNK = 96000 # number of data points to read ...
2
1,244
How can I connect to remote systems using PowerShell inside a Nano Server Docker container, specifically build 1809?
<p><strong>Background</strong></p> <p>I have a .NET application that I would like to install inside a Nano Server Docker container, specifically build 1809. The app is basically a REST server which will receive a REST request and depending on the contents of the JSON, invoke a particular PowerShell cmdlet on a partic...
2
3,462
What is the correct DefaultScopedLifestyle for an asp.net Core Web API service using Simple Injector?
<p>I'm trying to create a .net core WebApi service using Simple Injector. In my Startup.cs I have this:</p> <pre><code>public Startup(IHostingEnvironment env) { // Setup configuration stuff container = new Container(); container.Options.DefaultScopedLifestyle = new AspNetRequestLifestyle(); // This is as...
2
1,052
how to handle multiple input changes with only 1 handler with hooks
<p>I have several states and I would like to write only 1 handler for all of them. On change, only 1 handler will trigger and change the state only if it has changed.</p> <p>I have the solution for class based components like this</p> <pre><code>handleChange (evt) { this.setState({ [evt.target.name]: evt.target.val...
2
1,989
Reborrowing of mutable reference
<p>When I wondered how a mutable reference could move into a method, all the questions began.</p> <pre><code>let a = &amp;mut x; a.somemethod(); // value of a should have moved a.anothermethod(); // but it works. </code></pre> <p>I've googled a lot. (really a lot) And I've noticed that a mutable reference passed as a p...
2
1,059
BottomSheetDialogFragment header layout background transparent not working
<p>I have created a BottomSheetFragment. Everything is fine except the header of the bottom sheet which is not getting transparent.Is there any way to make the background transparent as like as normal bottomsheetFragment works. I tried by setting the parent background transparent but it is not working at all. </p> <...
2
1,626
Can't load zurb foundation javascript
<p><em>Edit</em></p> <p>I decided to use <code>twitter-bootstrap-rails</code> instead, I don't need a answer.</p> <p><em>Edit end</em></p> <p>I want to use <code>zurb-foundation</code> tab function in my rails project, but it doesn't working like this image.</p> <p><img src="https://i.stack.imgur.com/22DFH.jpg" alt...
2
1,681
Heroku serves a blank page after a successful build
<p>I have a fullstack Vue application with Node and MongoDB. When I deploy it to Heroku using Heroku CLI everything builds fine but when I open the app it shows a blank page. I know there could be dozens of reasons, but I am pretty sure I am doing something wrong in the config files, either webpack or eslint, etc. Any ...
2
2,434
NameError (uninitialized constant Unzipper::Zip) but only on Heroku deploy (Rails)
<p>I have a class <code>unzipper.rb</code> that unzips a file using Rubyzip.</p> <p>In my local environment, I can succesfully unzip a file without explictly including the dependency using <code>require 'zip'</code> </p> <p>On Heroku though, I get an <code>NameError (uninitialized constant Unzipper::Zip)</code> which...
2
1,053
Implementing Longitudinal Random Forest with LongituRF package in R
<p>I have some high dimensional repeated measures data, and i am interested in fitting random forest model to investigate the suitability and predictive utility of such models. Specifically i am trying to implement the methods in the <code>LongituRF</code> package. The methods behind this package are detailed here :</p...
2
1,214
How to calculate species contribution percentages for vegan rda/cca objects?
<p>I am trying to reproduce the column ("variable" in <code>FactoMineR::PCA</code>, "species" in <code>vegan::rda</code>) <a href="http://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/" rel="nofollow noreferrer">contribution percentage...
2
1,093
Webpack + Typscript library import is undefined in React project
<p>I am trying to make a React library using Typescript, Webpack and Babel however I am running into a problem. If I build then import the library into a React project then my import is 'undefined' (See the below error). I think this would be because in the <code>bundle.js</code> there is no <code>module.exports</code>...
2
2,330
SwingWorker hangs at Unsafe.park()
<p>I have a <code>SwingWorker</code> that communicates with a server in the background and then updates a <code>JFrame</code>. I was debugging my app and noticed that even after the <code>SwingWorker</code> finished its work, its thread still remained. It is hanging at <code>Unsafe.park(java.lang.Object)</code> which i...
2
1,128
Retrieving data from dynamic form
<p>I have a form which is dynamically generated based on user input.</p> <p>Initially the user is shown 3 fields to select from (datefrom, dateto, and pitchtype), they select their options, click submit and the script generates a table with inputs for each date in the range for them to edit.</p> <p>An example of the ...
2
1,687
Angular2 Component which renders 2 tr elements in a loop
<p>I need to write a component that has a template that looks like this:</p> <pre><code>&lt;tr&gt;...&lt;/tr&gt; &lt;tr&gt;...&lt;/tr&gt; </code></pre> <p>This must be used with *ngFor to create a table. The selector for the component is <code>spot-row</code>. The component has one input variable named <code>spot</co...
2
1,028
Jenkins Slave issue (Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher)
<p>In Jenkins slave we have change Open JDK from jdk1.8.0_151 . now when we are running job from Jenkins . getting below error msg . My Jenkins slave and master are on different Java version . </p> <pre><code>/usr/java/latest/bin/java -Xmx2048m -XX:MaxPermSize=1024m -Dmaven.artifact.threads=20 -Dorg.slf4j.simpleLogge...
2
1,082
Pandas json_normalize returns KeyError
<p>I have a dataset from a json file like this format:</p> <pre><code>data = {'data': {'content': [{'gender': 'Female', 'id': 'covid-1004200003256', 'state_code': '3272', 'district_code': '3272040', 'subdistrict_code': '3272040004', 'latitude': -6.906, 'longitude': 106.923, 'state_name': 'KO...
2
1,244
jquery scrollintoview with bootstrap scrollspy
<p>Hello fellow stackoverflow members who use bootstrap! I appreciate your time and input. I am having trouble implementing a jQuery.scrollintoview with bootstrap scrollspy.</p> <p><a href="http://jsfiddle.net/aKK2k/1/" rel="nofollow">http://jsfiddle.net/aKK2k/1/</a></p> <p>Above is fiddle, scrollspy is broken but t...
2
1,256
SendMessage TreeView TVM_GETITEM crashes that process
<p>I am trying to access a <code>TreeView</code> running in another process. Many of the tree view messages work correctly. However, trying to use the <code>TVM_GETITEM</code> causes that other process to crash.</p> <p>The code below is a simple program that illustrates the crash. To get it to run, you will need some ...
2
4,543
Resource is loaded in Eclipse but not in IntelliJ
<p>I know, similar questions have been asked here, but none of them seemed to fit my exact problem. I have the following (partial) directory structure:</p> <pre><code>src |__view |__TweetView.java |__TweetView.html </code></pre> <p>In TweetView.java, I'm trying to get the resource URL of TweetView.htm...
2
1,310
RadGridView Filtering Control Template
<p>I defined a control template to replace the default template of the filtering control on the RadGridView. I am autogenerating columns, how do I apply this custom control template?</p> <p>My Grid:</p> <pre><code>&lt;telerik:RadGridView x:Name="dataGrid" telerik:StyleManager.Theme="Windows8Touch" ...
2
4,638
GNU emacs: setting keybindings to highlight text with shift key
<p>I'm trying to set some keybindings to use the <kbd>Shift</kbd> key to highlight text. I could use <code>pc-selection-mode</code>, but that doesn't offer all the key bindings I want. For example, I'd like to be able to shift-mark an entire paragraph by pressing <kbd>Shift-Ctrl-down</kbd> which I can do in most MS tex...
2
1,108
Multi-step form in animated div/fieldset
<p>I have created a step-by-step walkthrough. Each step is enclosed in a separate "fieldset", and the whole is a single .html file.</p> <p>To move forward and back I use javascript. The problem is that over time, animations are beginning to lag.</p> <p>In the attached example everything works smoothly, because there ...
2
2,338
How can I send WM_DROPFILES from C#?
<p>I want to use C# code to simulate a user dragging and dropping a file onto a control in a separate process. As a stepping stone to this goal, I am trying to send a WM_DROPFILES message to my own TextBox and verifying that the DragDrop event is triggered.</p> <p>With the code below in a Form containing a single Tex...
2
1,646
Render the binding value in dynamic generated html template in vuejs2
<p>For following code: I want the "test1 span" could be changed with javascript. How can I do it? NOTE: the {{msg}} maybe from ajax output. </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;script src="https://cdn.bootcss.com/vue/2.4.2/vue.min.js"&gt;&...
2
2,119
how to add hyperlink to a column in .rdl file
<p>I want to modify the existing OrderID column in a report to be a hyperlink. So added the following <code>&lt;Action&gt;</code> code. But it's throwing the following error. Could someone please help with this. I'm fairly new on working with SSRS Reports. Thanks in Advance.</p> <p><strong>Error</strong>:</p> <pre><c...
2
1,072
Keep all the Accordion options visible but open/close or collapse one at a time
<p>I have a custom Accordion, which has by default all the options in <strong>"Visible/Open"</strong> state.</p> <p>When I click first time, it close the particular element. But when I click it again, it open that particular element but close rest all.</p> <p><strong>It should collapse and open One element ata time.<...
2
1,170
Callback not firing from the sinon.js fakeServer for a call to $.ajax
<p>I have the following jasmine spec:</p> <pre><code>describe "plugins", -&gt; beforeEach -&gt; @server = sinon.fakeServer.create() afterEach -&gt; @server.restore() describe "reviewStatus", -&gt; it "should attach dates to content", -&gt; @server.respondWith("GET", "/GeneralDocument.mv...
2
1,110
Django + apache: How can I create a server alias which invisibly redirects to my django app on the server?
<p>I am trying to figure out a how to forward a specific alias of a server to a specific django web app, and at the same time, keep the URL address bar in the user's browser to only show the server alias. </p> <p>To be more specific: </p> <p>This is for an intranet project at my company. We have a big linux server ...
2
1,290
How to Import XML Data in Rails 5
<p>I have xml data that I am trying to import my database. I am attempting to use the nokogiri gem. I have written a file called xml_data.rb. When I run <code>&gt;ruby xml_data.rb</code> on the command line, I recieve the following error:</p> <blockquote> <p>xml_data.rb:8:in <code>block in &lt;main&gt;': uninitializ...
2
1,629
How can I get the parent container, e.g. PhoneApplicationPage, in Windows Phone?
<p>I need to call a method in my MainPage.xaml.cs class when an event is handled in a child control. Calling <code>this.Parent</code> doesn't work, because it only returns the first DependencyObject in the tree, and I can't get the <code>PhoneApplicationPage</code> from that</p> <p>I have the following layout in my <c...
2
1,055
Count Least Possible Steps to Create zig-zag array
<p>Given an array, I need to find the least possible changes you can make to the array to create a zig-zag pattern.</p> <p>Edit: What you can change: any individual integer in the array can be changed to any other negative or positive integer. Each change counts as one change.</p> <p>I am trying to do this:</p> <ol> <l...
2
5,317
how to remove everything but letters, numbers and ! ? . ; , @ ' using regex in python pandas df?
<p>I am trying to remove everythin but letters, numbers and ! ? . ; , @ ' from my python pandas column text. I have already read some other questions on the topic, but still can not make mine work. </p> <p>Here is an example of what I am doing:</p> <pre><code>import pandas as pd df = pd.DataFrame({'id':[1,2,3,4], ...
2
1,602
Bootstrap Modal is getting hidden when window is resized
<p>I am working on a web page where i am using bootstrap drop down and modal popup.</p> <p>I am placing the modal popup inside drop down div. The popup is opening and working perfectly. </p> <p>What issue i am getting is whenever i resize the window, modal popup is getting hidden when window comes to its minimum widt...
2
1,408
Downloading a 3gp video file from Internet
<p>I want to download a video file (extension 3gp) from a certain http address. My application starts downloading, but it stops after downloading 9216 bytes. The file length is 1734741. I tried to increase the heap (because I got some warning about increasing the heap size) by including the following line in the Manife...
2
1,448
Stringindexoutofboundsexception in android
<p>I am trying to create a calculator app.IN order to avoid duplication of operators i am checking if the previous character in the string is an operator.But i am getting stringindexoutofboundsexception when i type in the third character. </p> <pre><code>package com.example.calculatorproject; import android.app.Activ...
2
3,868
Android - Oracle 12c Database Connection Issue : java.sql.SQLException: ORA-28040: No matching authentication protocol
<p>Since last 3 days I am getting problem with just simple connection of <strong>Android - Oracle 12c Database.</strong> </p> <p>Recently I have uploaded <strong><a href="https://github.com/pratikbutani/Android-Oracle-Connection" rel="nofollow noreferrer">Android-Oracle-Connection</a></strong> but its for 11g version....
2
1,218
Angular 2 / 4 - How to know if API is Online?
<p>I have a NodeJS Express API with this route <a href="http://localhost:4040/online" rel="nofollow noreferrer">http://localhost:4040/online</a></p> <p>returning :</p> <pre><code>{ "status": "true" } </code></pre> <p>if my API is online.</p> <p>In my Angular 2 (4) application, I want to know in real time if my AP...
2
1,326
Get the sum of a map in Reactor Mono
<p>How do I add up all the results of a Mono/Flux</p> <p>I have some reactive code where i return a Flux and chain some other functions, I will explain it with some code.</p> <pre><code>return commentService.getAllCommentByIssueId(issueId) .map { taggingService.tagging(it.content).ma...
2
1,082
Pytorch transformer forward function masks implementation for decoder forward function
<p>I am trying to use and learn PyTorch Transformer with DeepMind math dataset. I have tokenized (char not word) sequence that is fed into model. Models forward function is doing once forward for encoder and multiple forwards for decoder (till all batch outputs reach token, this is still TODO). I am struggling with Tr...
2
1,804
Using jna to keyhook and consume
<p>I'm making an auto clicker that uses jna to hook global input from the keyboard and mouse. For the keyboard hook im using <a href="http://code.google.com/p/goldriver/source/browse/trunk/king/src/jnacontrib/w32keyhook/KeyHook.java?r=36" rel="nofollow">http://code.google.com/p/goldriver/source/browse/trunk/king/src/jn...
2
2,747
Protractor Chrome with XVFB on OSX
<p>I want to run the Protractor E2E Test for my Angular Application on a Bamboo Linux Build Server using XFVB to run Chrome resp. Chromium headless, exactly like in this gist: <a href="https://gist.github.com/nwinkler/f0928740e7ae0e7477dd" rel="nofollow">https://gist.github.com/nwinkler/f0928740e7ae0e7477dd</a>. </p> ...
2
1,054
Parquet build with HDFS getmerge recovery
<p>The only post that touch a bit the subject is <a href="https://stackoverflow.com/questions/31108123/collecting-parquet-data-from-hdfs-to-local-file-system">here</a> but it does not solve my problem.</p> <p>Here is the problem we collect parquet to a local backup with:</p> <pre><code>$ hadoop fs -getmerge /dir/on/h...
2
2,640
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
<p>I'm running this command through Jenkins file: sh &quot;${mvnHome}/bin/mvn clean package&quot;</p> <p>and getting this error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project automation: Fatal error compiling: invalid target release: 11 -&gt;</p> <p><st...
2
7,277
Programmatically Streaming with ffmpeg library using linux system video device
<p>I am able to stream a static mp4 file coded with h264 in my code.</p> <p>But when I use linux video device <code>/dev/video0</code> as input in my program, it gives this error:</p> <pre><code>failed to open file `udp://xxx.xxx.xxx.xxx:28000` or configure filtergraph. </code></pre> <p>I'm not using an encoder in m...
2
3,811
Boost, ros and catkin - linker error
<p>I have installed Boost libraries on Ubuntu 14.04, and I'm trying to build a ros package in a catkin workspace. The package is a system for a drone's autonomous navigation composed of three components: one of these allows to create a 3D map of cloud points. My target is to modify this package, in order to save and lo...
2
1,894
CORS DELETE fails with 403 status code
<p>I have developed a CORS REST server and some pages with some JS code that invoke its urls. </p> <p>I decided to refactor the JS pages, and my DELETE ajax request to server now doesn't work anymore. Part of the refactor involves the URL that pass from <code>http://localhost/dev</code> to <code>http://dev.local</code...
2
2,212
Custom Dictionary in Django Rest Framework
<p>I have tried to get a JSON like this:</p> <pre><code>{ "course_name": "name", "course_id": "44", "icon": 1, "published_at":"2014-10-23T03:15:54Z", "skills": { "self":[ { "skill_name": "Cuidado Emocional", "po...
2
2,118
WiX/MSI dynamically add CopyFile elements
<p>I am a noob in Windows programming, but I have to create a tricky MSI installer that installs a plugin via WiX toolset. The installer should detect upon running all installed versions of specific software and their plug-ins directories via Windows Registry API. After that it should show all of them on a separate pag...
2
1,106