title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Get createdDate from Google Drive Python API for downloads
<p>I want to create a Python script to backup Google Drive files as a bit of fun / learning, but I am stuck. My script below did work, but it just made the last modified date and created date of all the files on my local drive on back up as the date they were backed up, and didn't preserve the original created date / m...
1
1,567
Linked list with Template
<p>I need to build a linked list with a template, but I have no idea why is not working, I've built linked lists before, but never with templates. Right now my problem is that, if I create the list everything is ok, but when I try to insert something to it, I get the following errors:</p> <pre><code>Error C2664 'N...
1
1,206
JBoss 7 + Hibernate + Log4j
<p>I setup my Java EE 6 application taking as a starting point the log4j quickstart in Jboss 7.1.</p> <p>My key pom.xml additions are:</p> <pre><code>&lt;dependencyManagement&gt; &lt;dependencies&gt; &lt;!-- Define Log4j dependency and its version --&gt; &lt;dependency&gt; ...
1
1,279
Vue JS - How to dynamically create tables
<p>I am looking to have a button where, when clicked, a new table is created. Is it possible to do so? I have searched across online for something like this, but I have not been able to find anything. All examples deal with a single table and adding/deleting rows from it. The issue I run into is rendering the html tabl...
1
1,960
RuntimeError: Subtraction, the `-` operator, with a bool tensor is not supported
<p>I am using this github repo: <a href="https://github.com/vchoutas/smplify-x" rel="nofollow noreferrer">https://github.com/vchoutas/smplify-x</a> and I am running a script. I get the following error. How can I fix it? I understand I might have to convert <code>-</code> to <code>~</code> however not sure where it exac...
1
1,385
laravel authentication with eloquent driver on roles
<p>I am trying to authenticate users in my Laravel application. </p> <p>I am encountering the following problem: </p> <ul> <li>using driver <strong>database</strong> in auth.php: I can login using auth::attempt(), and auth::check is working, but I can't validate if the logged in user has a certain role.</li> <li>usi...
1
2,450
XSLT - How to read all child nodes in order, having same and different name tags
<p>I have the below XML file that i want to parse to create HTML. My problem is that i am not able to parse it as I would like.</p> <p>What i want to do is output my <code>&lt;items&gt;</code> as html. So i want a <code>&lt;paragraph&gt;</code> to be a <code>&lt;div&gt;</code>, <code>&lt;image&gt;</code>to be an <cod...
1
1,528
How to update order status in OpenCart
<p>I'm currently building an OpenCart payment extension for a new payment gateway. Right now, I can successfully make payments and redirect back to the merchant site but I don't know how to write the code so that it updates the order status as well.</p> <p>All my order are now showing under missing orders and I feel i...
1
2,776
Building a MicroRuleEngine using LinqExpressions
<p>So I am building a MicroRuleEngine (Would love to see this take off as an OpenSource project) and I am running into a null reference Error When executing the compiled ExpressionTree and I am not exactly sure why. Rules against the simple properties work but going against Child Properties aka Customer.Client.Address...
1
1,896
How to use jar:jar goal in maven-jar-plugin to build multiple jar files
<p>Our pom.xml has multiple executions inside the maven-jar-plugin with the intention of creating three separate jar files. What is the means to invoke mvn and build the three jars?</p> <p>Presently </p> <pre><code>mvn compile jar:jar </code></pre> <p>still creates only a single jar.</p> <pre><code> &lt;artifa...
2
1,158
How can I use j_spring_security_check
<p>I am using spring 3 + struts 2 + hibernate 3, following is my configuration: </p> <pre><code>app-security: &lt;beans:import resource="datasource.xml"/&gt; &lt;http auto-config='true'&gt; &lt;intercept-url pattern="/CMS/login*" access="IS_AUTHENTICATED_ANONYMOUSLY"/&gt; &lt;intercept-url pattern="/**" a...
2
1,028
Find closest match to an RGB color value in a color swatch
<p>In a WPF usercontrol I'm writing I have 3 sliders representing RGB with values from 0 - 255. Standard stuff ! Also displayed is a color swatch </p> <p><img src="https://i.imgur.com/69kEtdZ.png" alt="Displayed Color Swatch - imgur.com/69kEtdZ"></p> <p>Base class is </p> <pre><code> private class SwatchPixels ...
2
3,007
Throttling gocolly to process a limited number of urls at a time
<p>I am trying to use gocolly's Parallelism setting to throttle scraping a maximum number of URLs at a time. </p> <p>Using the code I've pasted below, I am getting this output:</p> <pre><code>Visiting https://www.google.com/search?q=GrkZmM Visiting https://www.google.com/search?q=eYSGmF Visiting https://www.google.co...
2
1,498
How to plot several rows from a dataframe with ggplot?
<p>I try to plot with ggplot2 the monthly wheat prices in France in each agricultural year in 1845-1848. I am given the following table:</p> <pre><code>year,January,February,March,April,May,June,July,August,September,October,November,December 1845,,,,,,,,20.17,20.3,21.51,22.27,22.32 1846,22.36,22.65,22.42,22.26,22.48,...
2
1,301
Reload component after POST api VUEJS
<p>I have problems to reload components in my app VueJS with NUXTJS. I have a page in my app and this page called a component “CustomerCard”.</p> <p>I use a fetch to talk to my API and have all my customers. It works very well when I arrive in this page.</p> <p>I have a modal with a form and when I add a customer via t...
2
1,306
how to merge 2 rows together WITH 2 rows in html table?
<p>I am not so good in English, to express myself, so I show it with examples to you!</p> <p>Here is my HTML table with code:</p> <pre><code>&lt;table border="1"&gt; &lt;tr id="tr1_1"&gt; &lt;td rowspan="2"&gt;1&lt;/td&gt; &lt;td&gt;tr1.1 td2&lt;/td&gt; &lt;td&gt;tr1.1 td3&lt;/td&gt; ...
2
1,562
code igniter 2.0.3 loader add_package_path view cascading
<p>I'm not sure if I'm interpreting this wrong but please correct me if I am. I'm using Code Igniter's Loader class to load an application "package". It is working fine for the most part. However, one thing that's tripping me up is how the view paths are working (or not working).</p> <p>In the documentation (<a href="...
2
1,274
Android AAR unable to resolve field in styleable
<p>I have an "android-commons" library of sorts which gets built into an <code>aar</code> (it's not a jar). One of the things it contains is a custom implementation of "Typeface" views (most of the classes of TextView, e.g. TypefaceTextView, TypefaceButton etc.). To acomplish this, I've declared the following in my <co...
2
1,420
Docker on Windows File Sharing Blocked by Firewall
<p>TL;DR</p> <p><strong>From the docker container running on the VM I can ping all my host IPs (such as 10.10.10.1 and 172.24.185.209) but I can't ping 10.0.75.1</strong>. My guess is that once I can figure out why I can't reach the 10.0.75.1 network adapter the share issue will be resolved.</p> <hr> <p>I have gone...
2
3,985
Datatables - Search on data-attribute only
<p>I searched the web and this website for the proper info and there are many of them discussing the data-search but they are very specific and don't cover the basics I need. They didn't help me find a resolution to my problem.</p> <p>I have a datatable with a custom search input</p> <p>This input has an event attach...
2
1,494
Angular 5 include javascript files
<p>I'm using Angular 5 and I want to include my script files .js</p> <p>I'm using the script tag in the index.html</p> <p>When I refresh the page everything works fine, but when i'm using SPA routing my js files does not included</p> <p>Here's an exemple :</p> <p>If I refreshed the page</p> <p><a href="https://i.s...
2
1,338
Cannot install lxml using pip
<p>I have tried to install lxml python library on Ubuntu 14.04 using <code>pip install lxml</code>.</p> <p>It have failed and the output was (brought only the end here):</p> <pre><code>... ... ... src/lxml/lxml.etree.c:8:22: fatal error: pyconfig.h: No such file or directory #include "pyconfig.h" ...
2
1,393
How can i use applet send data to serial port via rxtxComm.jar On ubuntu
<p>I write a program use applet to access serial port via rxtxComm.jar,i change the java.policy,so the applet can access serial port without signed.When the program running on Windows,it's effective.But on ubuntu there have some execptions(<strong>java.lang.reflect.InvocationTargetException and "error calling method o...
2
1,454
PyQt5 cannot update progress bar from thread and received the error "Cannot create children for a parent that is in a different thread"
<p>I am retired and teaching myself to write code. I am working on a program that requires a thread to operate in the background (GUI developed with PYQT5) so I can still use the GUI buttons (to pause, resume, stop, etc.). I have the thread counting to 10, and I want the steps sent back to the progress bar's setValue...
2
1,944
Jersey Inject RequestScoped IllegalStateException
<p>Been working on this one for hours and nothing seems to work. It's Jersey 2.23.2. The idea is that I want to inject a request based Hibernate Session into a Jersey provider to use in my REST API. Instead, I get this:</p> <pre><code>javax.servlet.ServletException: A MultiException has 2 exceptions. They are: 1. jav...
2
1,601
AngularJS - Reset the state of a bound object
<p>I've made a really simple repeat of some books, when the user clicks the book, it opens a new modal. Where they can edit the book. As i'm using the two way binding, the 'display page' automatically changes as i type on the modal - which is brilliant. </p> <p>However what i want to do is allow the user to press a ca...
2
1,219
Comparing nested object properties using SemanticComparison
<p>I'm creating the unit test that will need to compare two objects of the same type memberwise. I've decided to use SemanticComparison library to handle this task without writing custom comparer code. It works really well when comparing flat objects, there are problems when the object contains nested object that also ...
2
1,119
reading file from Remote HDFS
<p>I am trying to read a file from a remote HDFS. I am unable to view the contents of the file. Kindly help me. I have attached my code here. While running this code, i am not getting any output. The program remains active without giving any result.</p> <pre><code>package com.cts.peg.iot.accessRemoteHDFS02; impor...
2
1,050
Using displaytag with Spring and tiles 2.0
<p>i want a little help. I have a web application using Spring MVC and tiles 2 and i add displaytag yesterday but when i want to export the table in any format iget redirected to a page with the data of the table in a row.</p> <p>Here is my web.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-a...
2
2,116
Making a custom contextmenu in AngularJs
<p>I am basically wanting to make a right click menu which will record comments on the clicked element. How do I make a contextmenu which closes when I click anywhere else except when I click on the contextmenu elements. With the code I have, even on click the elements which are of the contextmenu, it closes. </p> <pr...
2
1,123
UITableViewCell selection in editing mode.
<p>I am making a custom UIViewController that I want to show a message when a UITableViewCell is tapped. I create a UITableView and set the property</p> <p><code>tableView.allowsSelectionDuringEditing = true</code></p> <p>Even though that property has been set to true, tableView(:didSelectRowAtIndexPath) is not being...
2
1,824
Phusion passenger Security check update holding connection
<p>I am using phusion passenger version 5.1 every day there's security update check is happening which is holding the connection attached the log for reference.What's the use of security check.IF i disable whether this solve the issue or should i run the command of passenger </p> <pre><code>[ N 2020-02-24 06:31:06.471...
2
1,672
Neural Network isn't learning anything meaningful using Triplet Loss
<p>I am working on a triplet loss based model for this Kaggle competition.</p> <p>Short Description- In this competition, we have been challenged to build an algorithm to identify individual whales in images by analyzing a database of containing more than 25,000 images, gathered from research institutions and public co...
2
2,515
Android Upload File to server giving a 'Source File Does not exist' error
<p>I am coding an activity to upload any types of files to a server.</p> <p>It retrieves the file name just fine and assigns it to a TextView; but, when I select my upload button it quickly gives me a "Source File Does not exist' error and does not upload the file to my server. (The PHP code is working fine, as I have...
2
4,783
How to reconstruct result of Signal->STFT->ISTFT->Signal using overlapping windows?
<p>Apologizing if the answer is on the site somewhere (couldn't find). I'm a hobbyist who tries to load WAV file, get it's magnitude and phase data (for modification), generate spectrogram and then save it back as a new WAV file. I use C++ (Qt) and FFTW library.</p> <p>My problem is that resulting WAV differs from ori...
2
1,898
Slider inside another slider with slidesjs
<p>I'm trying to put a slider with controls inside of another slider with controls using SlidesJS, meanwhile I did this:</p> <p><a href="http://jsfiddle.net/3pqvpk8p/7/" rel="nofollow">http://jsfiddle.net/3pqvpk8p/7/</a></p> <p>JS:</p> <pre><code>$(function() { $('#slides').slidesjs({ width: 600, height: 3...
2
1,632
Why does Gembox spreadsheet crash when calling Excelfile.save: FileNotFoundException Could not load file or assembly System.Security.Permissions
<p>I am using Gembox to open, modify and save a xlsx file. Calling Save on the Excelfile causes a System.IO.FileNotFoundException.</p> <p>The problem happens with our company serial key and with the free key.</p> <p><strong>Sample Code</strong></p> <pre><code>using GemBox.Spreadsheet; namespace ConsoleApp { clas...
2
1,041
Error: Value Fatal of type java.lang.String cannot be converted to JSONObject
<p>In Android, I want to implement a login system and I'm having an error in converting a <code>String</code> into a <code>JsonObject</code>. This is my Activity:</p> <pre><code>public class Login extends Activity implements OnClickListener { private EditText user, pass; private Button mSubmit; privat...
2
2,392
The right approach to update complex JTables, TableModel and others
<p>My GUI shows the vehicles in my <em>park</em>, and vehicles that I want to set <em>availables</em> in two different <strong>VehicleTables</strong> (classes that extend JTable). For availables I intend that these vehicles can be observed from an <em>agent</em> (third-part software). Both the tables show the descript...
2
7,134
Visual C++, Windows Update Interface (IUpdate) <wuapi.h>, get_MsrcSeverity
<p>I'm probably just blind, but I cannot see any errors here (and I am looking on this issue already for days now...)</p> <p>I am trying to get the Patch Priority (Severity) from the Windows Update Interface using the following piece of code in Visual Studio:</p> <pre><code>#include "stdafx.h" #include &lt;wuapi.h&gt...
2
1,837
Docker build cannot resolve DNS on Windows Server 2019
<h1>Problem</h1> <p>Running the following command:</p> <pre><code>docker build --rm -f &quot;c:\Users\...\iotedgeModbus\Dockerfile.amd64.debug&quot; -t modbus:dev-amd64.debug &quot;c:\Users\...\iotedgeModbus&quot; ; if ($?) { iotedgehubdev start -d &quot;c:\Users\...\iotedgeModbus\config\deployment.debug.amd64.json&qu...
2
3,869
Not working HTML table rows from jQuery append()
<p>How to create rows in tables by append() that still be able to operate with math operations?</p> <p>Now I have row in HTML including netto price, amount, discount, tax rate and brutto price - brutto price is shown after input netto and amount, tax is selected from , but it's working only for HTML generated row, not...
2
4,808
AngularJS Scope Variables not Updating
<p>Strange error here. I have this form:</p> <pre><code>&lt;form name="newaccount" id="newaccount" ng-submit="doSubmit()"&gt; &lt;label&gt;username&lt;/label&gt; &lt;input name="username" type="text" required ng-model="username"&gt; &lt;span ui-toggle="username.length &gt; 15"&gt;Too long!&lt;/span&gt; &lt;label&gt;na...
2
1,081
Android java http Xml conversion to Json Caused by: java.lang.NoSuchMethodError: No direct method <init>(Ljava/io/Reader;)
<p>I have to convert an Xml file at a very heavy http into a Json file.</p> <p>I tried to use: <code>implementation 'org.json: json: 20180813'</code></p> <p>But it gives me the following error:</p> <pre><code>Caused by: java.lang.NoSuchMethodError: No direct method &lt;init&gt; (Ljava / me / Reader;) V in class Lorg...
2
1,281
Force IE8 compatibility mode off for Intranet site using meta tags
<p>All of the following questions are related and some of them marked as fix but does not seem to be working.</p> <p>My problem:</p> <ol> <li>Problem with IE8.</li> <li>I have Intranet site built on Primefaces 5.1.7, JSF 2.2.8-04</li> <li>Trying to disable compatibility mode of IE8 which is enabled by default for Int...
2
1,789
Pry doesn't work when launched from method invoked by RSpec test
<p>I'm trying to use Pry with RSpec. Goal is to be able to drop binding in method and debug it.</p> <p>Here is what I have.</p> <p>lib/play.rb</p> <pre><code>class Play def self.hello print 'Hello world!' require 'pry'; binding.pry end end </code></pre> <p>spec/play_spec.rb</p> <pre><code>require_relat...
2
1,527
Recycler View nullpointer exception on scroll
<p>I have a custom texture view. and I have a recycler view, each cell in the recycler view has the texture view that I mentioned above. What I want to achieve is to play a video in the texture view.Only the top visible texture view should start playing. However the code that I have written cast a null pointer excepti...
2
2,982
Cannot read property 'packery' of undefined` when using Isotope and Webpack
<p>I'm trying to use the packery layout mode in Isotope with webpack.</p> <p>Current setup:</p> <ul> <li>jQuery version that comes with Wordpress</li> <li>Coffeescript</li> <li>Modified <a href="https://github.com/vigetlabs/gulp-starter" rel="nofollow noreferrer">Gulp Starter</a></li> </ul> <p>Here's the file where ...
2
1,838
SwapCursor undefined when creating a CursorLoader
<p>I am receiving a "swapCursor(Cursor) is undefined" error when creating a CursorLoader. I have imported the android.support.v4 (app.LoaderManager, app.LoaderManager.Loader, Content.CursorLoader, content.Loader). Not sure what I can do to correct this issue. please advise.</p> <p>loader:</p> <pre><code>import androi...
2
1,389
Table inside FlowDocument truncates right-most columns, why?
<p>I have a Table with 4 columns inside a FlowDocument. I've set the width of the columns but when viewed in FlowDocumentReader, when in Page Mode or 2 Page Mode, the right most column is truncated.</p> <pre><code>&lt;FlowDocument &gt; &lt;Table BorderBrush="Black" BorderThickness="1"&gt; &lt;Table.Columns&gt; ...
2
3,053
How to implement sum types in dynamically typed languages without pattern matching
<p>I have only a theoretical idea of Haskell's sum types. And yet I sense that they really matter in Haskell and change the way you model your data in a fundamental way. Since I believe that they can be useful in dynamically typed languages as well, I tried to implement a sensible approximation in Javascript (I have on...
2
1,315
How to specify hibernate entity association's mapping class when using java based configuration? (as in @OneToOne, etc.)
<p>I am trying to completely opt out of xml based mapping and write the same using java based configuration. It was working completely fine until I had the requirement of using entity mappings. Can someone help me with how to specify hibernate mapping through java based configuration?</p> <p>Following is a sample hibe...
2
1,839
Google Map info window display previous geo result instead of current result
<p>can someone help me out with this pretty please? i dont know what went wrong with my codes, i want to display the location address in the info window but everytime it displays the previous result instead of the current one. for example when i first click a location it adds a marker but the address displayed is undef...
2
2,245
How to stop PyQt timer from constantly resetting
<p>I am trying to make a PyQt timer application for a project. I have designed the layout using QtDesigner and I am almost finished with all the code. There is just one small problem. I want to make a stop button for my timer, but everytime I make it the timer resets itself as soon as I press start again. I want it to ...
2
3,681
Is there some way I can convert href tag to Link on React.js?
<p>Thank you for opening this page in advance. I am a self-taught coder. And now I am making my personal page with Bootstrap.</p> <p>What I want to do now is; SPA feature of React.js. All I understand this feature is;</p> <ol> <li>install &quot;react-router-dom&quot;,</li> <li>import { Link, NavLink } from &quot;react-...
2
3,137
UIView not resizing to fit content
<p>I have <code>UIView</code> (annotationView), that has 2 UILabels, some separator and 1 image. I want to resize the view, so it has minimal size that will fit the elements inside. It has constraints to stick to the edges of the view and keep distances between elements. <a href="https://i.stack.imgur.com/J9IKg.png" re...
2
3,716
Laravel pjax - set up
<p>I am using pjax with laravel for faster page loads for the first time, so I don't have much knowledge about it. I am using <a href="https://github.com/spatie/laravel-pjax">this</a> package. I have set it up and it seems to be working, only for some pages where I have some some javascript for the content, I have some...
2
4,402
node js check if data exists in mysql table.- TypeError: res.send is not a function
<p>I am trying to check if data exists in mysql table. I get an error <strong>TypeError: res.send is not a function</strong>.</p> <p>My mysql table has a lot of data but 3 columns with all varchar(45) and id (autoincremental) which is -</p> <pre><code>**id | metrics | custom_metrics** 1 | test | test </code></p...
2
3,224
Python hadoop mapreduce job using mrjob subprocess.CalledProcessError
<p>I am trying to run basic example from the mrjob's website on my custom data. I have run Hadoop map reduce successfully using streaming, I have also successfully tried the script without Hadoop, but now I am trying to run it on Hadoop via mrjob by following command.</p> <pre><code>./mapred.py -r hadoop --hadoop-bin ...
2
1,171
docker-compose: client version is too new
<p>When executing <code>DOCKER_API_VERSION=1.35 docker-compose --verbose up</code> I'm getting:</p> <blockquote> <p>-d compose.config.config.find: Using configuration files: ./docker-compose.yml docker.utils.config.find_config_file: Trying paths: ['/home/vivo/.docker/config.json', '/home/vivo/.dockercfg'] docker...
2
1,201
System.ArgumentException: VariantWrappers cannot be stored in Variants
<p>I have a COM object which has the following type def (as seen by OleView):</p> <pre><code>[id(0x60030010)] HRESULT Calc( [in] BSTR calculation_type, [in] short pricing_model, [in] BSTR option_type, [in] double strike, [in] double sp...
2
1,803
Problems on creation of executable file from python with Nuitka
<p>I am trying to create an <code>exe file</code> from a python file that it will be executable to other PCs. I came across Nuitka.I use Python 2.7.11 Anaconda 2.3.0 (32 bit) on Windows 8.1 64 bit. Because of my work specs i can't update my Python version!!! I have download nuitka 0.5.19 for python 2.7. At first i used...
2
7,916
Why is my vue component not showing up in vue-devtools and rendered as a data-v-xxx div?
<p>The problem I currently have is that my Vue component does not render how I expected it would.</p> <p>I'll attempt to clarify what I mean by this as I realise it's quite vague:</p> <p>Currently I have a Vue component which I render using:</p> <pre class="lang-js prettyprint-override"><code>if (document.querySelec...
2
1,039
Flutter Fill in Blank with RichText
<p>I am almost done with fill in blanks implementation for my app but unfortunately I keep running into layout issues. </p> <p>However as I keep solving the issues I am almost done with it, this is the code so far:</p> <pre class="lang-dart prettyprint-override"><code> RichText( ...
2
2,779
Failed to load native library on Android Marshmallow but works on Lollipop?
<p>My app uses native libs (libfoo.so) and it works great on Lollipop. But it fails on library loading on Marshmallow due to <code>Fatal signal 11 (SIGSEGV), code 1,</code>. What's the reason?</p> <p>I know that M bring new permissions model but it seems not related to this as library is only loading and does not do a...
2
3,373
SEVERE: javax.faces.FacesException: Erreur d’argument : le paramètre «text» est null
<p>I have a problem, with JSF and Primesfaces. I have a form with a list like the:</p> <pre><code>&lt;h:form&gt; &lt;h:outputText value="Filtrer par client" for="filtreClient" /&gt; &lt;p:selectOneMenu id="filtreClient" value="#{actionBean.action.codeClient}" effect="fade"&gt; &lt;f:selectItem itemLabel="Sélec...
2
2,863
Java HTTP Response Body leaked... but never explicitly using a response body?
<p>I am working on an app in Android Studio that reads information from a REST API, parses it client-side, and then displays it. Everything is working and nothing crashes so far, but I keep getting the following log warning: <code>W/OkHttpClient: A connection to https://&lt;site&gt;.com/ was leaked. Did you forget to ...
2
2,654
Sending SOAP Request to .NET Web Service via libcurl!
<p>I'm Trying to send a SOAP request to a .NET Webservice which accepts an XML string. This is my sample XML string stored in char array:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xm...
2
1,312
Calling RegisterAsyncTask on an async method
<p>I posted a previous problem (<a href="https://stackoverflow.com/questions/44285371/asp-net-updatepanel-with-usercontrols-and-page-level-async-method">asp.net UpdatePanel with UserControls and Page Level Async Method</a>), and think I have narrowed down my issue to a separate question.</p> <p>I have an asp.net page,...
2
2,269
Gerrit Installation On Windows 7 Tomcat and Mysql Error - MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=26' at line 1
<p>I have installed and configured <strong>Gerrit</strong> on windows using <strong>Apache Tomcat</strong> and <strong>MySql</strong>. I followed the instructions found <a href="https://scn.sap.com/docs/DOC-42271" rel="nofollow noreferrer">here</a>. However the configurations were sucessful the database was created and...
2
2,589
Alert window until method finishes execution in Swing
<p>The shown image is my window made using <code>Swing</code>. </p> <p>How do I create an alert window when i click <code>Submit</code> button and the alert should display until the action performed is completed(alert+code should run in background) ?</p> <p>Here is my code snippet :</p> <pre><code>private void jBut...
2
1,884
XNA primitives not rendering as expected
<p>I'm having a bizarre problem with XNA.</p> <p>I've been going through the following tutorial: <a href="http://www.i-programmer.info/projects/119-graphics-and-games/1108-getting-started-with-3d-xna.html" rel="nofollow noreferrer">http://www.i-programmer.info/projects/119-graphics-and-games/1108-getting-started-with-...
2
4,677
Serving as HTTPS Sonatype Nexus
<p>I have installed nexus as a cluster which consist of 3 windows nodes. Right now I want to serve Nexus as HTTPS. When I followed <a href="https://help.sonatype.com/repomanager3/security/configuring-ssl#ConfiguringSSL-ServingSSLDirectly" rel="nofollow noreferrer">this documentation</a>, I did everything as suggested b...
2
3,548
Multiple row layouts using RecyclerView
<p>According <a href="http://blog.iamsuleiman.com/android-pagination-recyclerview-tutorial-api-retrofit-gson/" rel="nofollow noreferrer">this tutorial</a>, I could publish json content <strong>(result array)</strong> on RecyclerView in one screen.</p> <p>Now, I changed json file to this:</p> <pre><code> "page": 1, ...
2
6,780
pymc 3.0 Predictive Posterior Distribution
<p>I'm converting a very simple example from pymc 2.3 to pymc 3.0, and can't seem to figure out how to sample (or get the MAP) from the predictive posterior distribution. Following the suggestion in the docs (7.3 Model checking and diagonostics: Goodness of Fit), I can sample from this distribution using pymc 2.3 by ad...
2
1,275
Cannot find OpenCV in Android Studio
<p>So i've been tried this <a href="https://stackoverflow.com/questions/17767557/how-to-use-opencv-in-android-studio-using-gradle-build-tool/22427267#22427267">link</a> to setup openCV and NDK in android studio. But when i tried to debug the app, there is an error</p> <pre><code>Note: C:\Users\Jeems\Documents\pulse-an...
2
1,528
Spark. ~100 million rows. Size exceeds Integer.MAX_VALUE?
<p>(This is with Spark 2.0 running on a small three machine Amazon EMR cluster)</p> <p>I have a PySpark job that loads some large text files into a Spark RDD, does count() which successfully returns 158,598,155.</p> <p>Then the job parses each row into a pyspark.sql.Row instance, builds a DataFrame, and does another ...
2
1,247
Set form action dynamically depending on the field filled in by user
<p>I'd like to have a few different options that all map to different actions, but I only want one submit button. I cannot for the life of me get this to work. Here is the code I have so far:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en-US"&gt; &lt;head&gt; &lt;link rel=stylesheet type=text/css href="{{ ur...
2
1,336
Fail to set up sso/ssl in tomcat 8
<p>I am trying to set up ssl in tomcat 8 and I followed documentation from my company which is written for tomcat 7. That documentation works fine for tomcat 7 but when I try the same thing in tomcat 8, I get the following errors in catalina.out log file. Can you please tell me what causes this error? by the way sso i...
2
1,512
Getting Selenium-WebDriver Example to work
<p>I am completely new to Selenium, and just want to install &amp; run the example to begin with, as described here: <a href="http://www.seleniumhq.org/docs/03_webdriver.jsp" rel="nofollow noreferrer">http://www.seleniumhq.org/docs/03_webdriver.jsp</a> I have installed the Java SE 9.0.1 JDK, Eclipse IDE for Java Develo...
2
9,876
MVVM Manipulating the view, using code-behind or viewmodel
<p>I'm coding application using MVVM and I have a question, if I should manipulate View using code-behind or I should leave it empty. What I want to do is, when user click a button a hidden view slides out. At the moment I'm doing this in view model. Here is my code:</p> <p>This is my View: </p> <pre><code>&lt;Window...
2
5,034
How to Change setVisible() on Panels in different Java Class
<pre><code>package com.spiralfive.inventory; import java.awt.Font; import java.awt.Panel; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.BorderLayout; import javax.swing.JApplet; import javax.swing.JButton; public class MainFile extends JApplet implements MouseListener { // D...
2
1,375
Why does loop unrolling have no effect for a large dataset?
<p>I wanted to benchmark the difference in execution speed between an unrolled loop and a for loop applied on a <code>triangle</code> object. The entire example is available <a href="http://coliru.stacked-crooked.com/a/f4a8e7800962a285" rel="nofollow noreferrer">here</a>.</p> <p>Here is the complete code: </p> <pre><...
2
4,928
Calculation in React based on input and back-end
<p>I am learning to react and trying to create an application that counts based on back-end and input. </p> <p>Desription:</p> <p>The user selects:</p> <p>A. Country</p> <p>B. Enters the value of myValue</p> <p>The application in the Country field displays an array from the back-end, which looks like this: [{"cou...
2
4,075
Starting a specific activity through NFC tag
<p>Is it possible to launch a specific activity in an app using NFC tag?</p> <p>I want to start an activity called MainMap which is not the main activity. I've tried using a tag writer for writing mime record and still failing.</p> <p>Here's the manifest:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &...
2
1,389
SVG clip-path not working with large group animated with snapsvg
<p>I have a scene i created in illustrator, exported as svg. Its a wrightflyer plane inside of a rectangle. I'm using snapsvg to load the svg file, and i am trying to animate it from one side of the rectangle to the other, the rectangle being a clipping mask. I want the plane to disappear when it travels out of the rec...
2
6,541
Lower trailing parts of letters "g" and "y" etc hidden/cut off/overwritten in ggplot labels
<p>The bottom parts of the "y"'s and "g"'s are cut off in this map. See "dryland" and "irrigated" under soy. </p> <p><a href="https://i.stack.imgur.com/D3wTe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D3wTe.png" alt="enter image description here"></a></p> <p>What setting controls this? Here is my <c...
2
1,233
Error 401 (Unauthorized) in React js in axios
<p>I am working on a notes website to clear my concepts of the react js. And now when i comes to user login in react js I am facing a problem. Actually when i enters the correct username and password then i doesn't get any error in console but as i enter wrong i face error</p> <p><strong>this contians django-rest-fram...
2
1,493
Check if the user is Facebook logged in or not in android
<p>I have Developed an application that have facebook login functionality for the Login in Application so i implement Two Button in Main Page of app so when click on login with facebook its open facebook login page so my question is when user already login with fb then the button of login should be invisible so i ckeck...
2
1,182
Does nginx support early hint request (103 status)
<p>I have used nginx as a reverse proxy with puma server. </p> <p>I am sending 103 status response from the puma for early hint about assets that would be needed.</p> <p>When I load the page in chrome, it shows me ERR_SPDY_PROTOCOL_ERROR error. It works fine on Firefox. Not working on safari as well.</p> <p>It works...
2
2,634
Re-instantiate a singleton with Prism in Xamarin Forms
<p>How can I dispose and re-instantiate a singleton with Prism/DryIoC in Xamarin Forms? </p> <p>I'm working with Azure Mobile Apps for offline data. Occasionally, I need to delete the local sqlite database and re-initialize it. Unfortunately the MobileServiceClient occasionally holds the db connection open and there's...
2
1,515
Get bit value from database and show in CheckBox in GridView
<p>How do I to get a bit value from a database table and show its value in a checkbox (e.g if value is TRUE then it's checked, otherwise checkbox is unchecked) in a GridView? Also, how do I get the checkbox value and insert it into a database table which has a "bit" datatype column? </p> <p>Here is my table <a href="...
2
4,433
d3: Elements move when scale() transform is applied
<p>I want SVG elements to appear larger on mouseover. Applying a CSS transform seems to be a convenient way to do this, however it also translates the objects. How do I make the circles in the below example keep their original center point? I've tried applying <code>position: absolute;</code> to no avail.</p> <p><div ...
2
1,353
Import Tensorflow without NVIDIA GPU (ImportError: Could not find 'nvcuda.dll')
<p>I have installed the <code>tensorflow</code> package using Anaconda Navigator. When I try to run <code>import tensorflow</code> in a jupyter notebook I get the following error:</p> <pre><code> OSError Traceback (most recent call last) D:\ProgrammFiles\Anaconda\lib\site-packages\t...
2
1,166
How to Set the Alarm Ringtone from Within My Alarm Application in Android
<p>I'm making an alarm application and I'm stuck at the alarm tone phase. I'm currently trying to use the RingtoneManager to set the alarm tone however it's not working at all. Furthermore, I have a seekbar that should play the alarm tone the user chose, but it doesn't. When I set the alarm tone, I don't want it to be ...
2
1,947
Android ListView with custom images from Camera or Gallery
<p>I making ListView with possibility add images from camera or gallery. All works fine, but scrolling works not so smooth.</p> <p>here is my code:</p> <pre><code>public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case R.id.context_rename: renameDialog(s...
2
6,676
AngularJS - Lost html after refreshing page
<p>I came accross big problem with my simple angular app. After refreshing page, all html is lost!<br> My problem is not about angular data and/or session/local storage data but only HTML.<br> For example, when accessing home page via navbar "Home" button it looks like: <a href="https://i.stack.imgur.com/b18Nb.jpg" rel...
2
1,342
Using recursion to get all files in some directory
<p>I try to write application that find all files in current diretory and it's subdirectories. I have next problem I can't completely understand</p> <ol> <li>How I need use recursion <code>GetFiles()</code> function in my case, and</li> <li>Where I need free memory that was dynamically allocated in <code>PathCreator()...
2
1,375
libclang get class name from cursor
<p>I am trying to extract the class name of a parameter to a method call in objective-C. The code I am parsing is:</p> <pre><code>- (void)testAddConcreteDataModel:(DFDemoDataModelOne*)helpmeh { [self.dataModels addObject:helpmeh]; } </code></pre> <p>And the result I need is the type of class of helpmeh, which is...
2
2,178
How to solve this error in unordered_set hasher function of custom class objects?
<p>I am using unordered map for the first time and that with custom objects. I tried to write the below functions. There are errors that I need help with. </p> <p>This is the class.</p> <pre><code>class Node { public: int g= 0, h=0; char val; //Ch...
2
3,596