title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Using Scanner class to take user input for constructor Variables
<p>I am trying to use a Scanner object to take in user input that will then be attributed to the following values for an object called TargetHeartRateCalculator.</p> <p>TargetHeartRateCalculator takes constructor parameters of..</p> <p>String fName, String lName, int month, int day, int year.</p> <p>Normally without...
2
2,491
Change Dynamic field of Typeahead
<p>I'm programming a form with dynamic typeaheads fields, and i have found a problem when i want to show and select the suggestions. I have two first fields, a input select and a input typeahead. When a option is selected, it's load a list of values in the input typeahead. The problem comes when i create(dynamically) a...
2
1,404
How to get value out of an if statement c++?
<p>How can I get a value from an if statement? What I mean is if the number is more then 151 like in the first if statement. How can I get the value of r1 out of that block, so I can add everything at the end including that specific value from what if statement is chosen. </p> <pre><code>int main (int argc, const char...
2
1,843
Unable to create EvictionPolicy instance of type org.apache.commons.pool2.impl.DefaultEvictionPolicy
<p>I'm getting below error in one part of my application where it tries to save/create/update data in the database. The application works fine for some time lets say close to 1-2 hours after deployment but starts giving this error on update calls after some time. I'm using JPA EclipseLink implementation. </p> <p>Note:...
2
1,175
Angular4 + Protractor + Cucumber + TypeScript + weback-dev-server - Angular not found
<ul> <li>OS: macOS Sierra 10.12.4</li> <li>Node: v7.9.0</li> <li>Npm: 5.0.3</li> <li>Cucumber-js: 2.3.0</li> <li>Protractor: 4.0.14</li> <li>TypeScript: 2.2.2</li> <li>webpack-dev-server: 2.4.5</li> </ul> <p>i have a problem with running e2e tests. When I try to get an element from the page:</p> <pre><code>const el =...
2
4,162
Active record Undefined method `eq'
<p>I've table tournaments with fields user_id,question_id,answer and I created key like</p> <pre><code>Primary key (user_id, question_id) </code></pre> <p>But when I want to change answer field like this:</p> <pre><code>t=Tournament.where('question_id=200').first t.answer=2 t.save </code></pre> <p>I've got error:</...
2
1,657
JQuery .empty(), .remove() or .html('')
<p>Iam trying to delete all the code that is wrapped inside an div. Here is the code that i nedd to delete.</p> <pre><code> &lt;div id="btn_flip3" style="position: fixed; top: 80px; left: 5px;" class="ui-draggable ui-draggable-handle"&gt; &lt;div class="ui-flipswitch ui-shadow-inset ui-bar-a ui-corner-all ui-mi...
2
2,045
Recyclerview overlay toolbar
<p>I use new <code>com.android.support:design:22.2.0</code> library. When recyclerview initialised it overlay toolbar. I think it's because of incorrect initialization recyclerview. I else try insert <code>recyclerview</code> in single file, but i cannot understand how to inflate it</p> <pre><code> super.onCreate(save...
2
1,822
i cannot use ts-node-dev to start ts+express+node project
<p>when I run <code>npm run dev</code>, I cannot open &quot;http://localhost:3000&quot; in chrome.</p> <p>Executing task:</p> <pre class="lang-sh prettyprint-override"><code>&gt; npm run dev node-framework-kit@1.0.0 dev /Users/xiaoqi/node-workplace/node-framework-kit ts-node-dev --respawn --transpile-only ./src/app...
2
1,582
Pointer to peripheral hardware as template parameter
<p>I want to access STM32F0 peripheral register through C++ templates. A GPIO Port is defined as follows by vendor header file:</p> <p>excerpt stm32f0xx.h</p> <pre><code>#define __IO volatile //!&lt; Defines 'read / write' permissions typedef struct { __IO uint32_t MODER; __IO ui...
2
2,329
Rails, render edit form on click
<p>I have a list of all my "books" on the books.index view. I want to be able to edit them in the same view. Is there a way to render an edit form when I click on one of the Books ? </p> <p>As of right now, I'm printing out a partial for each book, and I've added an individual form for each book. But then I'd have to ...
2
2,585
How to show the text of D3 node on hover?
<p>I am very new to D3 and I am trying to replicate the behavior for text like is done with the circle elements here with the mouseover,mouseout behavior. Basically, to show text when hovered and hidden when not. Do I need to create a node var as I have with circle and text or is it possible with the current implementa...
2
1,492
Error when trying to generate simple apk on Kivy Complete VM
<ul> <li>Windows 10 x64</li> <li>VirtualBox 6.1</li> <li>Kivy Complete VM 0.7</li> </ul> <p>I'm trying to generate a simple apk file and it always returns errors, I've tried to delete the virtual machine and create it again, thinking it was the result of some configuration done previously by me. I'm new to programming,...
2
12,242
React-Native Animating Border Radius, Width and Sticky to Navigation Bar
<p>Need some help with animating the border radius of a 'share/favourite bar' as the user scrolls down the page. From a border radius of '25' to a border radius of '0'. </p> <p><a href="https://i.stack.imgur.com/LibmI.png" rel="nofollow noreferrer">How the share/favourite bar appears on screen before any scrolling is ...
2
2,640
Input does not get checked in IE8
<p>I need to find a way on how to sort it out this issue with IE8</p> <p>I have a table with my columns and rows</p> <pre><code>&lt;table&gt; &lt;thead&gt; &lt;tr class="body"&gt; &lt;th class="checkbox"&gt;&lt;input class="forecast first" name="1" type="checkbox"&gt;&lt;/th&gt; &l...
2
2,110
python multiprocessing each with own subprocess (Kubuntu,Mac)
<p>I've created a script that by default creates one multiprocessing Process; then it works fine. When starting multiple processes, it starts to hang, and not always in the same place. The program's about 700 lines of code, so I'll try to summarise what's going on. I want to make the most of my multi-cores, by parallel...
2
1,927
How to set initially selected tab ActionBarSherlock
<p>I'm trying to set my Tab2 as the initially selected tab using ActionBarShelock but I'm having trouble getting to work.</p> <p>The tabs are working perfectly but I can't get it to select the 2nd tab instead of the first one when the app starts. Here's my code:</p> <pre><code>@Override public void onCreate(Bundle sa...
2
1,353
Port Matlab's FFT to native Java
<p>I want to port Matlab's Fast Fourier transform function fft() to native Java code.</p> <p>As a starting point I am using the code of <a href="http://www.jmathlib.de/" rel="nofollow">JMathLib</a> where the FFT is implemented as follows:</p> <pre><code> // given double[] x as the input signal n = x.length; ...
2
1,361
How to bind click event for each button that in a listview?
<p>Now I wanna develope a windows service console program via WPF. Each service is in an item of listview. <br /> link of the image of console :http://i.stack.imgur.com/eMX1d.jpg Therefore, I defined a class as below:</p> <pre><code>/// &lt;summary&gt; /// /// &lt;/summary&gt; class ServiceItem { #region Fields ...
2
4,402
Error on running tomcat server in Eclipse
<p>I am so new in Java and I have cloned one project from Gitlab and imported it into Eclipse.</p> <p>I also added tomcat server and also set properties for project as well as for tomcat server.</p> <p>I have currently 2 projects added in Eclipse and one is working fine but another is failing. I have changed ports fo...
2
1,413
Graceful application shutdown when Windows shuts down
<p>I have an application that I'd like to shutdown gracefully when Windows shuts down (or user logs off). This used to work (in xp) but sometime in the last year it broke without anyone noticing. It's also broke (but differently) under Windows 7.</p> <p>Our product has a main process (server.exe) that starts many ot...
2
1,306
Copy Data from Access to an Existing SQL Server Table
<p>This code copies data from access to SQL server table. but this code has some problems.</p> <ol> <li>This code can not copy data from access to SQL server table where have data. </li> </ol> <p>My SQL server table has some data and I want to add data from access to under existing data in SQL server table. </p> <p>...
2
1,311
mssql + pymssql engine with sqlalchemy doesn't take attributes in the connection string
<p>I am trying to pass the attribute MultiSubnetFailover to the connection string using sqlalchemy engine. While passing parameters to pyodbc is pretty smooth, pymssql refuses to accept any parameters in the connection string.</p> <p>This fails</p> <pre><code>attributes = "?driver=ODBC+Driver+17+for+sql+server" engi...
2
1,649
Kadira Flow Router "There is no route for the path: /"
<p>I have a meteor application which is structured like so:</p> <pre><code>client --main.js imports \startup \client --index.js --routes.js \ui \pages --home-page.html --home-page.js --login-page.html --login-page.js \layouts --app-layout.html --app-layout.js </code></pre> <...
2
1,594
Display data from mysql in JTable
<p>How can I inster my data from mysql table into my JTable? And I would like to be able to make UPDATE,DELETE and ADD operation into mysql table. This should my a restaurant application and I want the user to see in that JTable the restaurant stock and clicking the table button it opens a new frame where the user can ...
2
6,079
Blazor question- close circuit\connection immediately after making async call
<p>I have a blazor integration and basically, after an indeterminate period of time I see this screen: </p> <p><a href="https://i.stack.imgur.com/G3U6e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G3U6e.png" alt="enter image description here"></a></p> <p>Is there no way to prevent this from happ...
2
1,036
Unable to read Email using IMAP in JAVA.
<p>I am trying to read email from Mail Server using JAVA. I've used IMAP protocol for that.</p> <p>Everytime when I send request to read an email it throws me exception saying: <em>javax.mail.MessagingException: Unrecognized SSL message, plaintext connection?</em></p> <p>Here's my Code;</p> <pre><code>public void re...
2
2,290
VBA Macro Run Time Error 13 - Type Mismatch
<p>This is a string of code for a commission's report. It runs fine with zero problems daily, and was last run on the 13th. </p> <p>This morning I am receiving a <code>Run Time Error 13 Type Mismatch</code>. </p> <p>I have no clue why, but when I Debug, it highlights this section:</p> <p><code>If UCase(Cells(i, 1).V...
2
1,207
XML parse error MalformedURLException: no protocol:
<p>I'm trying to modify a method from a program make it y JAVA 6.3 and I getting the following error "Malformed URL Exception".</p> <p>I'm using this code.</p> <pre><code>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); try{ DocumentBuilder builder = factory.newDocumentBuilde...
2
1,346
How to bring on second condition input form when selected dropdown item in PHP
<p><strong>Task:</strong></p> <p>To create a dropdown list for option values:"Name1...Name2...Name3...Others". Hence, when a user were to click on the option 'Others', it will generate an additional form fields for the user to enter and they are: "Name, Rego No., Address".</p> <p><strong>What has been done:</strong><...
2
1,417
Issuing spark-submit on command line completes tasks but never returns prompt
<p>I'm using spark (Java) to read and write to DB. I'm using Spark's built-in cluster manager. The application is bundles as fat jar and run via spark-submit command:</p> <pre><code>"./spark-submit --class com.tte.site.sector.daily.main.Driver --master spark://ip-xxx-xx-xx-xx:7077 --deploy-mode client /home/ec2-user/j...
2
9,425
HTTP Server Not Sending Complete File To WGET, Firefox. Connection reset by peer?
<p>I'm writing an HTTP server, and am having trouble sending larger files. If I grab them with netcat, the output seems perfect. If I use a browser or wget, I only get the complete file sometimes. WGET keeps getting "connection reset by peer" errors, see the output below. Firefox says "the connection was reset".</p> <...
2
1,245
Rails Jquery compute total from selected checkboxes in a table
<p>So here is my rails view which has a form which pulls the product_items and lets the user check all the items they want to buy and display the total order amount underneath the table. (attached pic) <a href="https://i.stack.imgur.com/7FvH8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7FvH8.png"...
2
1,089
Why does symbol definition statement inside exec() sometimes have no effect on the local symbol table?
<p>The following code snippet works as expected:</p> <pre><code>def test(): print(f'local symbol table before exec : {locals()}') exec('a = 0') print(f'local symbol table after exec : {locals()}') test() # printed result: # local symbol table before exec : {} # local symbol table after exec : {'a': 0} </...
2
1,817
Converting an image to byte array and back again
<p>I realize that this question has been asked before and has answers, but not in this specific way. I have been trying to figure this out for about 7 hours now. </p> <p>I have a picture that I convert to a byte array to store in an Access database (.mdb)</p> <p>[Image] -> [byte Array] -> [Access Database(field is an...
2
1,086
Amazon MWS API - SubmitFeed completed but quantity not updated
<p>I need to update quantity for a single product via SubmitFeed API and "_POST_INVENTORY_AVAILABILITY_DATA_" feed type:</p> <pre><code>&lt;?xml version=""1.0"" encoding=""utf-8"" ?&gt; &lt;AmazonEnvelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:noNamespaceSchemaLocation=""amznenvelope.xsd""...
2
1,158
TypeError: Index does not support mutable operations - iterating over range of dates
<p>I have two column dates(type objects which has worked for rest of my code), and am trying to split the range between these dates into two/more financial years, sum them and multiply this with day rate to get revenue and iterate this through every row in my dataframe.</p> <p>I am working out revenue per person/row a...
2
1,118
How can I run a python script to generate/update a JSON file in an S3 bucket?
<p><strong>MY QUESTION: How can I run a python script to generate/update a JSON file in an S3 bucket? Also, should I run this script every time a file gets added to my bucket, or when someone visits my webpage?</strong></p> <p><strong>Read on for description...</strong></p> <p>I have a website hosted on AWS, my stati...
2
2,159
CSS Flexbox: How to go from single-column to two-column layout with alternating elements?
<p>I want to display a form with labels and form elements in two columns on wider screens, and in a single column with alternating label/input on smaller screens.</p> <p>So I need to go from</p> <pre><code>label input label input </code></pre> <p>on small screens to</p> <pre><code>label | label input | input </code></p...
2
1,059
Excel vba macro crash on worksheet select - worked 1 week ago
<p>I have spent a lot of time here and elsewhere searching, and I haven't uncovered an answer. I have a spreadsheet created and used in Excel O365 I use to manage a backlog of testing to be done, and it also includes a tab to handle forecasting.</p> <p>In two separate macros, the process of selecting a worksheet cause...
2
1,180
Create an event with attendees eMail on android
<p>I try to create an event and add an email to it.</p> <p>i cant get it work, the time i get is 1970 and no email apears.</p> <p>any ideas?</p> <p>Thanks. </p> <p>This is the code i use:</p> <pre><code> Uri calendars = null; if (Integer.parseInt(Build.VERSION.SDK) == 8 ) { calendars = Uri.parse(...
2
2,011
ListView inside ViewPager won't scroll when applying a PageTransformer
<p>I have a ViewPager in which the pages contain ListViews. Everything works fine and my viewPAger as well as ListViews work as expected : it is possible to swipe from page to page, and the listviews scroll vertically as they should. </p> <p>Now I wanted to add a PageTransformer to smooth out paging anbd I used the <...
2
1,174
Cannot instantiate class error
<p>This is the android manifest: </p> <pre><code> &lt;uses-sdk android:minSdkVersion="11" android:targetSdkVersion="11" /&gt; &lt;application android:allowBackup="true" android:icon="@drawable/pic" android:label="@string/app_name" android:theme="@style/Ap...
2
1,523
Infer generic type from key of object
<p>My question is a bit more complex so here are possibly all the required parts:</p> <pre><code>// Common interface with an id and a string lieral type interface IHandler { id: Id&lt;IHandler&gt;; type: string; } // Base class for all the handler, with generic argument providing string literal type and acces...
2
1,089
Firebase Cloud Messaging with Node.js server
<p>I'm trying to send push notifications with FCM between individual devices using a node.js server and <strong>Swift</strong> <strong>2.2</strong> (based on Frank van Puffelen's <a href="https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html" rel="nofollow">Sending notifications between And...
2
1,109
Flask session cookies not set on browsers.. Deployed on Amazon EC2
<p>I am building a web app on EC2 instance using Angular and Flask. I am using Apache Tomcat to serve the static HTML files. Tomcat is listening on port 8080. When a <em>login.html</em> page is first loaded, a createState endpoint on Flask app is invoked and this function is supposed to set a cookie on the browser. I c...
2
1,616
Tkinter bind callback to activating a window
<p>I'm writing a Tkinter application in Python 3 and I've created a custom Title Bar (the bar at the top of every Windows application with the application name, close button etc.). The way I achieved this was to create an invisible window (we'll call this window <code>test</code>) that controls the main application win...
2
2,253
Access to the Gmail unique message ID through Java Mail
<p>I am trying to get the unique message ID through JavaMail, so that I can identify mail without the context of a particular IMAP-folder later. The code I've written so far is as follows:</p> <pre><code>def fp = new FetchProfile() fp.add(FetchProfile.Item.ENVELOPE) fp.add(FetchProfile.Item.FLAGS) fp.add(FetchProfile...
2
1,601
Unsupported Mapping .NET 5 using AutoMapper
<p>I have an profile mapping file.</p> <pre><code>public class AutoMapperProfiles : Profile { public AutoMapperProfiles() { #region MyFunObjects CreateMap&lt;CreateMyFunObjectDto, MyFunObject&gt;(); CreateMap&lt;MyFunObject, MyFunObjectDetailDto&gt;(); ...
2
1,074
PyGtk - set checkbox in the treeview of a specific row invisible
<p>I would like to make the checkbox in the node "parent 1" and "child 1 of parent 1" invisible. Do you know how to solve this issue? I am still struggling with the modifying cell renderers for a specific row and not for the entire column.</p> <p><a href="https://i.stack.imgur.com/Z7vVo.png" rel="noreferrer"><img src=...
2
1,201
how to insert valuebox inside navbarpage layout?
<p>I'm trying to add <code>valueBox</code> to shiny app created in <code>navbarpage</code> layout, I know that valve boxes are part of the shinydashboard package but this app made me wonder how should I achieve this below is an image of the app, here is the <a href="https://tychobra.shinyapps.io/claims-ml/" rel="noref...
2
1,533
Regex for Maven artifact-like paths
<p>I'm trying to come up with a regex for the following case...</p> <p>We're doing a cleanup of some Maven artifacts which were incorrectly deployed to a repository. The Maven format for naming artifacts is like this:</p> <pre><code>${groupId}/${artifactId}/${version}/${artifactId}-${version}-${classifier}.jar </code...
2
1,203
Google Maps API 2 for Android “Unfortunately, [app] has stopped.” Unable to run the app
<p>I'm a newbie to android programming and I've run through the android developers guide and YouTube guides ,and also checked the other similar questions asked here, but am still unable to load a map on AVD emulator. I have also imported google-play-services_lib and <em>Android build target</em> : <strong>Android 4.2...
2
1,454
Docker flask uwsgi 404 on a remote host
<p><strong>Update 2</strong></p> <p>I configure my routes in configure_blueprints called from create_app. I don`t want put all my views handlers in uwsgi.py. They are stored in separate modules. </p> <pre><code>def configure_blueprints(app): from .root import root_bp ... blueprints = [ (root_bp, N...
2
2,844
Optimizing python code
<p>Any tips on optimizing this python code for <strong>finding next palindrome</strong>:</p> <p>Input number can be of 1000000 digits</p> <p><strong>COMMENTS ADDED</strong></p> <pre><code>#! /usr/bin/python def inc(lst,lng):#this function first extract the left half of the string then #conve...
2
1,187
api-platform odm iri reference won't be converted into objects in json
<p>I want to create a model like this. </p> <pre><code>{ "id": 7653, "name": "Vortl 123", "category": [ { "name": "Electronic", "url": "electronic", "id": 1 }, { "name": "Phone", "url": "phone", "id": 2 }, { "name": "Mobile Phone", "url": "mobile-p...
2
1,513
onlogin event not being triggered
<p>I have this page (most of it is from the facebook documentation, with minor changes). Since I'm a n00b with this, I'm posting the whole code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Reportes para Anunciantes&lt;/title&gt; &lt;meta charset="UTF-8"&gt; &lt;/head&gt; &lt;body&gt; &lt;script t...
2
2,411
Leaflet marker click callback on spiderfy
<p>Using the great spiderfier of George MacKerron <a href="https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet" rel="nofollow">https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet</a> there is a problem.</p> <p>When clicked on a pin, the popup of it is showing up. That´s cool, as long as I don´t have ov...
2
1,106
firebase functions can't deploy. Unexpected token function
<p>Ok so I just found out that firebase functions supports node 8 because I'm getting an error that says "Unexpected token functions" where the first "async" is. </p> <p>Google says put this in the package json. </p> <p>"engines": {"node": "8"}</p> <p>but I put it there and it does nothing. Do any of you know what's...
2
2,031
Bad file descriptor after read syscall into mmap allocated buffer in nasm on x86_64
<p>What's wrong with my <a href="https://github.com/yaccz/code-samples-asm-cat/tree/mmap" rel="nofollow">code at github</a>?</p> <ul> <li>Strace shows the first <code>read</code> is ok but second one suddenly <code>EBADF</code>.</li> <li>Hardcoding <code>fd</code> to 3 makes it successfully read and print a file in se...
2
2,945
Rack middleware "trapping" stack trace
<p>I have a piece of Rack middleware that loads a tenant, via subdomain, and applies some default settings. The middleware, while not pretty, does it's job fine enough. However, when an exception is thrown within the app the middleware "traps" the full stack trace. When I say trap I mean it hides the expected stack tra...
2
1,068
Getting "Caused by: WebServiceIOException I/O error: Unexpected end of file from server", although using same cert works with SOAP UI
<p>I have defined the template as </p> <pre><code>&lt;bean id="template" class="org.springframework.ws.client.core.WebServiceTemplate"&gt; &lt;property name="messageSender"&gt; &lt;bean class="org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender"&gt; &lt;property name="trustMan...
2
1,299
How to forward remote port 3306 to local port in android programmatically with ssh and connect to mysql
<p>I want to transfer data from an android SQLite database to a remote mysql database securely. As I can't setup a VPN programmatically I want to transfer the data through an ssh tunnel. I have tried with jkraft.jsch. The forwarding runs without errors, but when I connect with mysql-connector with</p> <pre><code>conex...
2
1,125
Slow buffering when streaming multiple remote videos with AVPlayer and AVMutableComposition
<p><strong>[Edit: I was able to figure out a workaround for this, see below.]</strong></p> <p>I'm trying to stream multiple remote MP4 clips from S3, playing them in a sequence as one continuous video (to enable scrubbing within and between clips) with no stuttering, without explicitly downloading them to the device f...
2
3,960
Print receipt to an external txt file
<p>I've made a program that will print a receipt of a restaurant but how do I go about printing the entire receipt to an external txt or dat file? I tried using this approach but it can only print out print statements and not the calculations in if and for statements.. </p> <pre><code>outfile = open("receipt.txt" , 'w...
2
2,528
gcloud app deploy says: exec: "git": executable file not found in $PATH
<p>I am struggling to deploy a simple Go app to Google App Engine flexible environment. (This is a very cut-down version of a larger app.) When I run <code>gcloud app deploy --project=&lt;projectID&gt;</code> it terminates with an error, and has this in its output:</p> <pre><code>... Step #0: Status: Downloaded newer ...
2
1,288
how can i fix 'failed to find geo_point field [pin.location]'
<p>so i have a index for my map points and i need to put some data in it. but it seems it does not register my data as a valid input for pin.location .</p> <p>I have tried all i could get from <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-geo-distance-query.html" rel="nofollow nore...
2
1,184
Unable to get Azure monitoring metrics from the REST API
<p>I retrieve metric definitions using this:</p> <pre><code>https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-grp-id}/providers/microsoft.classiccompute/virtualMachines/{vm-id}/providers/microsoft.insights/metricdefinitions?api-version=2015-07-01 </code></pre> <p>which returns</p> ...
2
1,095
Disabling times in a timepicker on current day doesn't work properly
<pre><code>&lt;body&gt; &lt;p id="datepairExample"&gt; &lt;input type="text" id="date" class="date start" /&gt; &lt;input id="time" type="text" class="time start" /&gt; &lt;/p&gt; &lt;/body&gt; &lt;script type="text/javascript" src="js/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/java...
2
1,128
C# Add validation list to excel error
<p>I'm writing a program to add a set of user data to the excel file. Some of the cells need to have a drop down list, which is a validation list. The list of data is provided by user.</p> <p>While exporting the data to excel using C# code, sometimes the data will cause programs but sometimes not.</p> <p>There's no e...
2
1,180
What causes DriveInfo.IsReady to be false?
<h1>Situation</h1> <p>I'm debugging some legacy code that performs some existence checks on directory paths. First, <code>DirectoryPathA</code> is checked and returned if it exists. This should be the usual case. If that fails, <code>DirectoryPathB</code> is checked and returned. (If that fails too, other things happe...
2
1,172
Is there a way to indent Python without affecting the code
<p>I'm trying to write a user interface in Maya, and it's getting incredibly confusing with multiple levels of parents and no indents. The basic code (without any functionality) is currently around 400 lines and it's taking a while to find the bits I need. </p> <p>For example take this following code without comments:...
2
1,125
SqlResultSetMapping to POJO class from a NamedNativeQuery throwing 'could not locate appropriate constructor'
<p>I made a <code>@NamedNativeQuery</code> and attached it to an entity 'Doctor', on the same entity I attached a <code>@SqlResultSetMapping</code> which takes the columns of the query's result and maps them to a constructor of a specifically made POJO class. This query is also connected to a JPA method, which resides ...
2
4,065
connection between Arduino and php
<p>Simply i'm try to get TXT file contain throw Arduino Ethernet shield using the Following code <br>the original code <a href="http://arduino.cc/en/Tutorial/WebClientRepeating" rel="nofollow">http://arduino.cc/en/Tutorial/WebClientRepeating</a></p> <pre><code>/* Repeating Web client This sketch conne...
2
1,316
How do I custom animate a groundoverlay Icon on google map API v3
<p>I am trying to animate a ground overlay Icon by constantly refreshing it.. so basically this is the idea I am trying to implement. 1. I have a .png file which I created using masking in PIL (python Image Library) 2. I constantly update the .png file with my python script after every 10secs to change some features(it...
2
1,795
How to make rows of equal height with uneven div content in Javascript?
<p><a href="https://i.stack.imgur.com/wp3Uy.png" rel="nofollow noreferrer">Working example</a></p> <p>NOTE: I have the JQuery code below that worked for me, but I have to use Javascript. I have a table where there are two columns. Each row of the columns has to be the same height, but each row does not contain the exa...
2
1,158
mediaStorageDir.mkdirs() not creating directory
<p>Does anyone know a way around this problem? I am using a camera intent to take pictures. The following method generates the file where the picture would be stored. However, <code>mkdirs()</code> is not able to create the directory on the device. What are my options in such a situation?</p> <pre><code>private static...
2
1,347
Unable to generate refresh token for Google Ads API using generate_refresh_token.py
<p>I am very new to Python and Stackoverflow. I am working on connecting my Google Ads account with Python to automate few standard charts creation and email them to my team members. Please help me resolve this as I had not been able to find an answer to it upon Googling either. Let me know if I have missed out on any ...
2
1,938
Gradle Build - Execution failed for task ':sonarqube' can't be indexed twice
<p>I am getting an error &quot;File can't be indexed twice&quot; in gradle build for sonar. Do i have to add any inclusion/exclusion property for sonar? Any help greatly appreciated.</p> <p>If I take out &quot;src/main/java&quot; in test under sourceSets, I am getting compilation error for junit test cases.</p> <p>This...
2
1,258
c# sha256 compute password hash by using username as salt
<p>I am trying to compute password hash with <code>username</code> as a salt. I have stored password_hash and password_salt in MySQL database. </p> <pre><code>-- Generate salt SET @salt = UNHEX(SHA2(UUID(), 256)); -- Create user and hash password with salt INSERT INTO users (username, password_salt, password_hash) ...
2
1,229
if match with multiple columns in Power Query
<p>I have a two tables, In Table 2 columns from B to F need to be matched from Table 1 columns from A to G. If matched then the status is &quot;YES&quot; if not matched then the status is &quot;NO&quot;.</p> <p>I am achieving the my output the following formula in Excel</p> <pre><code>G2=IF(AND(SUMPRODUCT((TABLE1!A$2:A...
2
1,044
Interaction Win Form and Web Browser, advice? Winium? Watin? White? Sikuli?
<p>I want to create a .NET app which helps me to manage and automate a web browser. I did a quick search, and I found some solutions.</p> <p>It seems that Selenium is the main reference software (open source), but it does not allow interaction between the Windows Form and the browser.</p> <p>If I understand correctly...
2
1,286
Snackbar in Preferences Activity
<p>I'm trying to use snackbar with custom xml in my preferences activity. And i'm doing something wrong, because i get a nullpointer exception. I think it has something to do with the view, or maybe it`s because i don't use coordinator layout. Here is my Java code:</p> <pre><code>@Override public boolean onPreferenceC...
2
1,422
C#,HTML how can i populate html text box with values saved in session or values handled at server side?
<p>I have some textbox values in aspx page,which i pass on to the next page using sessions,but now i want to populate these values in a html textbox .How can i do it?The values that i have are server side ,where as HTML text box value is client side(this is just my assumption,i can be totally wrong on this part).</p> ...
2
1,653
atos gives ___lldb_unnamed_function
<p>I have a crash dump which will not symbolicate normally - when I drag it into the Xcode organizer or manually run symbolicatecrash the system symbols show up, but the application instruction addresses are all untouched.</p> <p>I tried using atos to work around this problem, but the result I got was:</p> <pre><code...
2
2,026
sapui5/openui5 TreeTable with custom control column throwing duplicate id error when expanding a node
<p>I have a <code>sap.ui.table.TreeTable</code> with several columns, one of which contains a custom control defined as a template for the column. </p> <p>The TreeTable renders correctly, and the column with the custom control also renders and functions correctly ... that is until I expand an unexpanded node.</p> <p>...
2
3,732
Null Pointer Exception in Adapter
<p>My logcat is indicating a null pointer exception, and I don't know how to solve these null pointer exceptions. </p> <p>Null Pointer exception in my adapter class:</p> <pre><code> File dir=new File(Environment.getExternalStorageDirectory(),"/myImages/"); int count=dir.list().length; String[] fileNames = dir...
2
2,901
How to pass Xml in XercesDOMParser?
<p>I am moving some DOMNode from one document to another; here the code snap </p> <pre><code> XercesDOMParser *parser = new XercesDOMParser; parser-&gt;setValidationScheme(XercesDOMParser::Val_Auto); parser-&gt;setDoNamespaces(false); parser-&gt;setDoSchema(false); parser-&gt;set...
2
1,082
net_ratelimit message in kernel log when creating multiple TCP connection in NONBLOCKING mode
<p>I've a C program which tries to poll for devices in network and if the devices are available it tries read value from them. But when no devices are present running of the application creates following message in kernel log. Also there is no other warning/alert messages in the log than the below message. (Even after ...
2
1,931
IE9 random CSS problems
<p>I am currently debuggig my site in IE9, and I am coming across a view quirks mainly to do with the navigation bar that runs across of the top the site, </p> <p>When you look at <a href="http://mensclothingroom.factoryagency.co.uk" rel="nofollow">http://mensclothingroom.factoryagency.co.uk</a> the nav is fine, howev...
2
3,543
Can't make Datatables Pagination with Stored Procedure in MVC5
<p>I've used DataTable to load data from SQL Server and display to Table. But it just loads data. Reference: <a href="https://gyazo.com/a77f5bee9c8f4fda3be8f9d130499bbf" rel="nofollow">https://gyazo.com/a77f5bee9c8f4fda3be8f9d130499bbf</a></p> <p>Not only show this message: </p> <blockquote> <p>No records found to...
2
2,307
python xarray indexing/slicing very slow
<p>I'm currently processing some ocean model outputs. At each time step, it has 42*1800*3600 grid points.</p> <p>I found that the bottelneck in my program is the slicing, and calling xarray_built in method to extract the values. And what's more interesting, same syntax sometimes require a vastly differnt amount of tim...
2
1,489
SHA1 in base64 and HMAC in HEX output issues ios iphone
<p>Iam having a fun time with implementing SHA1 and HMAC methods in a iPhone Applecation. I need to access a webservice(which i do not controll) and they require both SHA1 and HMAC encryption.</p> <p>For my SHA1 in base64 I use the following approach.</p> <pre><code> -(NSString*)sha1ith64Base:(NSString *)stringtoe...
2
1,302
How to handle various failure conditions in Kafka
<h2> Issue we were facing:</h2> <p>In our system we were logging a ticket in database with status <code>NEW</code> and also putting it in the kafka queue for further processing. The processors pick those tickets from kafka queue, do processing and update the status accordingly. We found that some tickets are left in <...
2
2,994
uses of container_of and dev_set_drvdata and dev_get_drvdata
<p>I am new to device drivers and I was learning this container_of and dev_get_drvdata and came across this driver.I removed some partof this driver so as to make it compact.</p> <pre><code> static void tsl4531_polling_worker(struct work_struct *work) { u8 buf[2]; struct tsl4531_data *data =...
2
2,382
copyFromLocalFile doesn't work in CDH4
<p>I've installed CDH4 on a ubuntu 12 LTS server successfully in the amazon cloud (1 server). I used Cloudera Manager free edition to install the software and had no errors). </p> <p>I have a program that uses the java API to load a file from my home computer to HDFS in the cloud. I would like to know why this prog...
2
1,408
html FileReader : convert blob to image file?
<p>client side code <br></p> <pre><code>&lt;head&gt; &lt;script&gt; var reader = new FileReader(); var objVal; var image = new Image(); reader.onload = function(e) { document.getElementById('propertyImg').setAttribute('src', e.target.result); }; function readURL(input){ if(input.files &amp;&amp; input.fi...
2
1,109
Flutter Zoom image inside container
<p>I can use the Interactive Viewer to zoom the image inside the Container. However, it seems that the scale of the image is changing, not that the image is enlarged inside the container.</p> <p>Do you know how to zoom the image without going out of the container's area?</p> <pre><code>Container( width: this.si...
2
1,495
How to rehydrate my apollo state from server side?
<p>I am totally new to react-apollo I am pretty confused that how to rehydrate state from the server side to client And my app is working, But the problem is it is not using preloaded state from Apollo After component rendered it is calling the API again.</p> <p>Seriously Redux Integration Makes Complicated only Apoll...
2
2,116
Create (or extrude) a 3D Polygon from a 2D Polygon - C# WPF Helix Toolkit
<p>I'm working on a WPF project that displays a 2D city area. I have 2D polygons that represent buildings.</p> <p>In order to have a 3D view, I need to transform these buildings into 3D polygons, by "extruding" them from the base area. I chose Helix Toolkit, that seemed appropriate for what I want.</p> <p>Thanks to t...
2
1,160