title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How can i use DataTable in the following case?
<p>The following html table is created from json data file. Kindly tell me how can i use DataTable and i also need to refresh the table it means every few seconds the new data comes in the json file so the code should read the new json file and updates it in every few seconds. The running table which i am trying to ini...
3
3,074
php variables correctly pass inside the jquery or javascript highchart
<p>click here for jsfiddle highchart link: <a href="http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/column-basic/" rel="nofollow">Column - Bar High Chart</a></p> <p>this code is the actual code of the Column bar highchart, is there a way to make its graph b...
3
2,215
UItableView automaticDimension not working with UIStackView
<p>I want that my <code>UITableViewCell</code> calculates properly its height so its bottom matches the <code>UIStackView</code> bottom.</p> <p>I have an understanding that for <code>UITableView.automaticDimension</code> to work you need to set all the vertical constraints of the <code>UITableViewCell</code> so it can ...
3
1,204
Unable to extract whole cookie with Python's requests module
<p>I want to make crawler for one website that requires login. I have email and password (sorry but I can not share it)</p> <p>This is the website: <a href="https://www.eurekalert.org/" rel="nofollow noreferrer">https://www.eurekalert.org/</a> When I click on login, it redirects me here: <a href="https://signin.aaas.or...
3
1,463
ContextMenuStrip does not appear when clicking on object within a UserControl
<p>I created a UserControl with a chart inside that are the same size. In my main form I create these UserControls dynamically and I can delete or edit them using a ContextMenuStrip by right clicking.</p> <p>The problem happens when I create dynamically and click on the UserControl above the chart (inside UserControl) ...
3
1,219
JavaScript add json to existing object
<p>I'm struggling with adding JSON to existing objects with Vue.js. So I have a function that is calculating some variants and it's working well for now, but I would need to change them in order to give correct data to my Laravel backend.</p> <p>So this is how my array looks like (this array is used to calculate varian...
3
1,689
How to set fixed y-axis values in SAPUI5 VizFrame Column Chart using XMLView?
<p>I have created a VizFrame Column Chart in SAPUI5 using oData. Now I need to put fixed values in y-axis (Dimension axis) since I want to show the days of the week on the y-axis, and how many hours worked in which day using the x-axis. Since I use oData date values I got from SAP, I can only show those values, but I w...
3
1,250
AJAX not working in django production mode?
<p>I've a django app deployed on heroku. In one of the section I asks for feedback and email of the person. If the email is valid email then I just reply Thank you. This is all being done using AJAX from getting values of form to returning thank you. It works fine in developement mode but not in prouction mode. </p> <...
3
2,529
How to Render the categories in database on SQL server in _Layout.cshtml
<p>i am trying to show the categories in my database on <code>SQL</code> on the homepage of my <strong><code>MVC web</code></strong> , how to do that? I have this in my <code>_Layout.cshtml</code>:</p> <pre><code>&lt;div class="list-group"&gt; &lt;a href="#" class="list-group-item"&gt;Category 1&lt...
3
1,363
How to make JavaScript output?
<p>I've been trying to make the following code to output a value based on the number allocated, to a span. I'm not sure why or how I'm going wrong.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyp...
3
1,129
Multibutton form doesn't map data back to textboxes .net core 1.1
<p>Ok, so now I'm trying to learn .net core mcv and I'm having a problem mapping data from MySQL back to my form. When I make the form as a single text box with a single button, and the other fields outside the form (but on the same page), the mapping works fine. If I include all the fields within the form, the data is...
3
1,887
Why does Kubernetes pod Affinity not work?
<p>I have following pods</p> <pre><code>NAME READY STATUS NODE LABELS bss-a-0 5/5 Running aks-bss-0 tcb.segment=bss,tcb.zone=centralus-1 four-6mxdk 0/1 Pe...
3
1,409
Getting ClassNotFoundException on standard PMD cyclomatic complexity plug-in
<p>I'm using PMD version 6.20.0 on Windows 10, and I'm attempting to use the cyclomatic complexity plug-in on what I would consider simple Java code just to see if things work. I have a single .java file, CCExample.java, with the code as follows (provided just so everyone can see the source file I'm using, versus aski...
3
1,382
Setting alarm notification for Dates Arrays
<p>I am trying to create local notification that's declenche before a given date by 2 hours , 4 hours and at this given date. This is my code, but it doesn't work:</p> <pre><code>private void alarmnotification(String notificationid, String type, long timemills) { Random rand = new Random(); Calendar calendar ...
3
1,050
TokenMisMatchException in Laravel Auth
<p>I've installed a fresh laravel 5.8. After that i ran:</p> <pre><code> php artisan make:auth </code></pre> <p>Everything looked fine, but when i'm trying to log in (for example: filling form with incorrect values) im getting <em>"TokenMismatchException in VerifyCsrfToken.php line 68"</em> error.</p> <p>Im gettin...
3
2,177
Closing dialog if post request is sucessful
<p>I am using React, Redux, NodeJS, and ExpressJS. I am also using material-ui for the front-end. I have created a dialog where users can input information and signup. Once a user clicks submit, a post req is made. Any errors that are returned would be than put into the errors object in the state. If any errors are ret...
3
2,476
Hybris Server showing Garbage collection issue?
<p>I had recently installed java adopt JDK 1.8.0_202 version.</p> <p>It worked fine for the first time and later when i start hybris server getting the below issue again &amp; again on console :</p> <pre><code>JVMJ9GC063E Unable to open file '/opt/hybris/log/tomcat/java_gc_ger-d-maa-apsp-001.log' for writing </code><...
3
1,683
Creating a stored procedure that loops around multiple values passed in for parameters
<p>So i am having a JAVA program call a stored procedure and passing in data from an XML file to parameters set in my stored procedure. I have tried calling the stored procedure from within oracle and they work for single values. Would this stored procedure work even if there were multiple values? Do i need to include ...
3
1,060
facebook java ads sdk how to retrieve "delivery, results,result_rate,cost_per_result", and breakdown by day
<p>I'm trying to use facebook's java sdk to generate the ads report. I mainly followed the Sample code, using new AdAccount(ad_account_id, context).getInsights() to retrieve data. But for the java sdk I could only retrieve partially data. I'm not sure I'm using the correct API.</p> <pre><code> import com.facebook.a...
3
1,537
The elements are not fixed on the window
<p>On the header, I need to have </p> <ul> <li>the logo be located the left side of the banner (without space)</li> <li>Both banner and logo be always in the middle of the page (regardless of screen size)</li> <li>Also have four images that should always be on the top right side of the window (regardless of screen siz...
3
2,337
Generating dates between 2 given dates and looping in PL/SQL
<p>I am very new to PL/SQL. I have created a table in Oracle database and based on that table, I have to generate a report to show the number of open bugs from 5/1/2013 through 5/31/2013, and at the end of the report, need to display the maximum number of open bugs on a single day (using PL/SQL anonymous block). Table ...
3
1,486
My code does not run and i can't seem to get the score to print
<pre><code>def tf_quiz(): user_name user_year print(&quot;Welcome to my true or false divison quiz&quot;) #welcome message user_name=str(input(&quot;please enter in your name&quot;)) #asks/stores user input user_year=str(input(&quot;please enter in your year&quot;)) #asks/stores user input print(&quot;all ...
3
1,440
Getting null value from API response with Alamofire
<p>I am trying to get response values from an API url using Alamofire. I created a data model and the response is fine but I am getting null for <code>poster_path</code> and <code>release_date</code>. I was wondering how can handle JSON response correctly. here is my code:</p> <pre><code> let decoder: JSONDecoder = ...
3
1,250
MEP System traversal - cannot find BaseEquipment or Openconnector
<h2>Intro</h2> <p>I'm working on a project where I need to traverse though all elements in a MEPSystem from the starting Mechanical Equipment. I found the 2 articles below by Jeremy Tammik which suggest a way to do this:</p> <ol> <li><a href="https://thebuildingcoder.typepad.com/blog/2016/06/traversing-and-exporting-al...
3
1,770
Using Firebase in Gluon-mobile
<p>I want to use Firebase Database in the my <strong>Gluon-mobile Project</strong> , after Reading the <a href="https://firebase.google.com/docs/android/setup/" rel="nofollow noreferrer">Firebase Docs</a>.I tried to this make some modifications to the <em>root</em> level <a href="https://bitbucket.org/guru001/firebas...
3
3,159
How to Connect to a Time Server JavaScript
<p>I am trying to conenct to any external server in order to display server time instead of the machine time in JavaScript.</p> <p>I have tried reading</p> <p><a href="https://stackoverflow.com/questions/7015782/how-do-i-use-access-control-allow-origin-does-it-just-go-in-between-the-html-he">How do I use Access-Control...
3
1,066
How can I create an asp:button iteratively in code behind aspx file?
<p>So essentially I am making a "cart" for a website I am doing as an extra side project. In each item in cart, I am attempting to put a button to remove the item from the cart. The issue is, it is not possible to create an asp:button from the code behind. Everything I have read says to make a placeholder or panel a...
3
1,067
Making body background fit the entire screen
<p>This is likely a very easy question but I've tried all of the solutions posted and none of them seem to work for me. </p> <p>I would simply like the gradient applied to my <code>&lt;body&gt;</code> HTML tag to always fit the screen properly. Whenever I view the browser in a smaller resolution such as this, and try ...
3
1,778
response after ajax post request in ember
<p>I am new to ember .I designed an ember app and integrate the fb login in it and have to send facebook accesstoken to app backend (post request) and fetch the token generated by backend(rails).</p> <p>My Post request response is:</p> <pre><code>{ "token":"71fcb8c39dc6449e2ac8e88d21e4d008cf746e16a774aa8755f6be0dbc43...
3
1,102
PillPool/KellyPool with java arrays
<p>I have been trying to work on a Pill Pool program recently, and have experienced some troubles. First off, for those who don't know: Kelly Pool is a form of pool where each player picks three numbered pills at random (1-15), and knock everyone's numbers in without telling them your pills. I first tried to use the Ma...
3
1,510
Use Angular Cli with Webpack
<p>I am trying to incorporate cli generate commands in my angular2 project but it gives me a error</p> <p>I am using the angular2-webpack-starter from git </p> <p>You have to be inside an angular-cli project in order to use the generate command.</p> <p>I did npm install-g angular-cli</p> <p>also in my package.json ...
3
3,478
How to apply events on cloned elements?
<p>Can someone please help me with this?</p> <p>I am trying to make an ordering system, it's all going good and well, but our adviser pointed out that we need to let the user have an option to order multiple items on one transaction. That messed me up. I googled a lot about JQueries and JScripts, but I've finally hit ...
3
5,572
What drives numerical instability in eigenvalue computations in python?
<p>Let's say I have a data matrix X with num_samples = 1600, dim_data = 2, from which I can build a 1600*1600 similarity matrix S using the <a href="https://en.wikipedia.org/wiki/Radial_basis_function_kernel" rel="nofollow noreferrer">rbf kernel</a>. I can normalize each row of the matrix, by multiplying all entries of...
3
1,557
Calling Partial View from Home/Index problem
<p>I am creating a web page that displays 3 different kind of followers (Red, Blue, Yellow) and a Filter form that users can use to filter.</p> <p>For instance, if the customer selects a Red option from the dropdown list, I wanna show them only the red followers.</p> <p>I am creating the select part for now, but I am...
3
1,331
Catching DisabledException when using Custom User Checker in Symfony 4.1
<p>I've implemented a Custom User Checker in Symfony following <a href="https://symfony.com/doc/current/security/user_checkers.html" rel="nofollow noreferrer">this guide</a>. I need it to perform the additional check of determining if the account trying to log in is active.</p> <p>Here's my User Checker code:</p> <p...
3
1,081
Vectorized comparison of values against a set of values
<p>I have a <code>pd.Dataframe</code> with a column that contains a value such as </p> <pre><code>df.iloc[:10]['occ'] Out[18]: 0 4220 1 205 2 7630 3 8965 4 430 5 3930 6 4230 7 5620 8 4040 9 4130 </code></pre> <p>I then have another dataframe with <code>start</code> and <code>end</code...
3
1,519
Dynamically loading large data in jTable using SwingWorker
<p>In Netbeans, I am trying to create a Desktop Application whose UI looks like below:</p> <p><a href="https://i.stack.imgur.com/3b0vP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3b0vP.png" alt="enter image description here"></a></p> <p>I am executing "adb logcat command" through Java code whic...
3
1,093
Copying Data to another workbook
<p>I use two workbooks (obviously based on the question:)), from the first one (as you will see in the code below) gets sorted by the data in column "B". The data in this column is just a number based on the month (11=November, December=12, etc.). For this question (and it will provide the answer for my other monthly w...
3
1,153
gqlgen coding style code is tightly coupled to neo4j golang
<p>I am just starting to get used to gqlgen to create a golang based graphql api for a personal project I am working on. This is my first attempt at adding a user node into the db, the code works (it took a while, I am new to go neo4j and graphql).</p> <p>My problem is it feels very coupled to the db, my coding style ...
3
1,367
Possible Multiple AuthenticationSchemes in request header?
<p>I have two webapis A and B. From A i make a request to B. A contains user info from identityserver4 where i just need to pass the token to the request header. Beside identityserver token, A also uses AAD(Azure Active Directory) where i have registred B. So from A, i also check my AAD so that i can retrieve The token...
3
1,606
React native typescript : adding automatic hyphen and mask
<p>I’m doing project in React Native.</p> <ol> <li><p>How can i add hyphen automatically while typing the social security numbers like <code>123456789</code> to <code>123-45-6789</code>.</p> </li> <li><p>How can i mask the specific number into any symbol from left or right like <code>123456789</code> to <code>xxx-45-67...
3
2,095
How to obtain underlying checkbox values in a reactive?
<p>I have the following shiny dashboard app, this app currently generates checkboxes from a dataframe which i have created in the server section - there is also a select all button, what i want to do is the following: </p> <p>1) create a reactive - (there is an example of a commented section in the code where i have a...
3
3,136
What is the equivalent command in openssl to API of DES_ncbc_encrypt?
<p>Suppose I have this command in shell</p> <pre><code>&gt; echo -n "abc" | openssl enc -e -K 4a08805813ad4689 -iv 1112131415161718 -des-cbc -a -p -v salt=E0BE670000000000 key=4A08805813AD4689 iv =1112131415161718 lb5mBZNE/nU= bytes read : 3 bytes written: 13 &gt; echo -n "abc" | openssl enc -e -K 4a0880...
3
1,608
I want to go to my filtered source model tree view when I click on Pivot View Data
<p>When I click on the Pivot View Data , it usually goes to the clicked data's tree view in the Pivot View's model (<code>pivot.analysis</code>) . Instead of this I want to go to my Source Model's Tree View (<code>account.move.line</code>).</p> <p><strong>Code XML</strong></p> <pre><code>&lt;?xml version="1.0" encodi...
3
1,403
All possible combinations of N elements from one list, with M elements from another list
<p>I want to make a method in java that receives two String Lists: <code>list1</code>, <code>list2</code>, and two integers: <code>i1</code> and <code>i2</code>. The method has to return a list of lists (<code>List&lt;List&lt;String&gt;&gt;</code>) with all possible distinct list combinations of (<code>i1</code>+<code>...
3
1,935
Next.js "jQuery requires a window with a document", defining jsdom yields Unexpected token
<p>I started with the following code, which is intended to create a multi-select button box using Tailwind and DaisyUI in Next.js (The filename of the problematic code snippet is install.js).</p> <p>I'm rendering it with webpack by running <code>npx next</code>, and <code>index.js</code> works perfectly. However, <code...
3
1,909
No translator error while running Apache Beam job on Flink cluster
<p>I created a very simple apache beam job for test, it is written in scala and looks like this:</p> <pre><code>object Test { def main(args: Array[String]): Unit = { val options = PipelineOptionsFactory.fromArgs(args: _*).create() val p = Pipeline.create(options) println(s"--------&gt; $options") v...
3
1,631
Why is not the state updated?
<p>I have a function that updates a state with a change and adds a value, but the state in the 'addResponse' function does not always change:</p> <pre><code>handleSelected (e, item) { this.setState({ current_component_id: item.id, }, () =&gt; this.addResponse() ); }; </code></pre> <p>Call function...
3
1,245
Controlling the Css3 cube effect using javascript
<p>Hello guys i have been trying to take the control of the CSS3 cube using javascript but it's haven't worked with me i don't know what is the problem here is my code :</p> <pre><code> &lt;div id="expierment"&gt; &lt;div id="cube"&gt; &lt;div class="face front"&gt; Front face &lt;/div&gt; &lt;div class="face lef...
3
2,272
Why is my program repeating itself. Java Error
<p>I am supposed to make the program give the number of pets and the percentage of how many that are below 5lbs, 5-10lbs, and over 10lbs. The program keeps repeating the statements and I don't know why. I've been working on this problem for the past couple of days and I still can't figure it out. At times it seems like...
3
1,826
Python dictionary merge values and delete previous
<p>I have a dictionary of characters and their position on a page keyed by their y position (so all characters in a row are under a single key in the dictionary). The data comes from a table from a pdf and I am trying to combine the characters in rows into words based on spacing so that columns are separated as values....
3
2,148
c++11 thread unknown output
<p>I return to c++ programming, therefore, I am trying a lot of things to master new c++ standard. I know the code I provided is very bad. I think I know how to fix it. </p> <p>code:</p> <pre><code>#include &lt;iostream&gt; #include &lt;thread&gt; using namespace std; void apple (string const&amp; x) { ...
3
1,071
How to extract value from html via BeautifulSoup
<p>I have parsed my string via BeautifulSoup.</p> <pre><code>from bs4 import BeautifulSoup import requests import re def otoMoto(link): URL = link page = requests.get(URL).content bs = BeautifulSoup(page, 'html.parser') for offer in bs.find_all('div', class_= &quot;offer-item__content ds-details-cont...
3
1,059
How to avoid TP being fired with SL, if TP has not yet been reached?
<p>The script sends messages to the broker for each action. Therefore to avoid errors, a TP order can not fire when an SL order does.</p> <p>I'd be extremely grateful for any concrete examples with the code below, on how to have TP fire only if it reaches target, otherwise have SL close entire (or remaining position) b...
3
1,627
Different font on strong elements for Internet Explorer 11 and Safari on iOS 9
<p>I have a web app with two fonts, Amatic SC for <code>h1</code> and <code>h2</code> and Open Sans for the rest. The webpage displays <code>strong</code> text fine on most browsers:</p> <p><a href="https://i.stack.imgur.com/Q1Cov.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q1Cov.png" alt="Displa...
3
2,367
Spark MapGroupsWithState Update function doesn't allow action queries like filter, count, show etc
<p>I have an IoT application where I receive the data from different Energy Meters and Inverter Meters. These meters continuously sends meter value as no of units consumed. This value continuously increments over period of time and I have to calculate One hour Energy Consumption for each meter.</p> <p>I get all this d...
3
1,035
how to let only one side column to work as tabbed content Bootstrap 3.?
<p>I have tried to make tabbed content using bootstrap it works when i used it in single column but when i made one side column globally to be present on page always when tab be change only right side column content can be change. </p> <p>Here is my Code. </p> <pre><code>&lt;div class="container" &gt; &lt;div class="...
3
4,769
Q: IBM Cloud Private CE - fatal: [9.29.100.159] => The Etcd component failed to start
<p>First install of ICP CE 2.1.0 on Ubuntu 16.04.03 VM running on ESXi5.5. The VM has 4vCPU with 16GB ram and 170GB (small I know). The install runs 10 min and fails. I ran the install with the -vvv and it's doesn't really provide any significant insights. </p> <pre><code>TASK [master : Waiting for Etcd to start] ****...
3
2,882
how do i take a generated value and insert into a graph?
<p>Hi I'm new to web designing and some of my jargon may be wrong. I'm trying to create a graph for lectures that shows the average rating each lecture gets. I have already calculated the average for each of the 18 lectures. Now I want to take the value for each one and insert it as the value in the graph.</p> <p>Here...
3
1,515
Loading images dynamically using JQuery
<p>I have a scenario where I have a user select an image to upload to his/her user profile on my webpage. I'm using .net's MVC3 architecture for my website. What i need is for the image to show on the page after he chooses the one he wants but before i store it in the database. I searched around and ended up trying thi...
3
2,445
How to use swiftUI matched geometry to present a detail card view on top of elements (instead of increasing frame height)
<p>I am attempting my first steps using matchedgeometry and have followed some tutorials to get a simple view to expand when selected.I have two files, a card view and a content view. I would like to place all of my card views in a horizontal scrollview.</p> <pre><code>import SwiftUI struct smallCard: View { @State p...
3
1,512
Determine if dynamic selects are defined with javascript
<p>I've stumbled across a problem and could use your help figuring out some logic here to deal with it. Basically I have a dynamic order form where the price is updated real time on the user side using javascript based on what options the user selects. The issue is that there are 3 dynamic dropdowns that might not all ...
3
1,804
Simple Tensorflow 2 classifier won't learn
<p>It's a simple model architecture based on <a href="https://github.com/dragen1860/TensorFlow-2.x-Tutorials/tree/master/01-TF2.0-Overview" rel="nofollow noreferrer">this tutorial</a>. The dataset would look like this, although in 10 dimensions: <a href="https://i.stack.imgur.com/KSNGX.png" rel="nofollow noreferrer"><i...
3
1,106
How to redirect to success page after uploading file using php?
<p>I am trying to redirect to another page after a successful upload.</p> <p>So I searched for similar answers on stackoverflow but non seems to solve my problem.</p> <p>This is my form:</p> <pre><code> &lt;form enctype=&quot;multipart/form-data&quot; action=&quot;&lt;?php print $_SERVER['PHP_SELF']?&gt;&quo...
3
1,188
How to raise error message if data does not exist in django table
<p>I have my table and filter all set up and working but I wish to have an error functionality added to it in such a way that when I query a data which exist in the db, it should show me the result normally, however, when I input a qs which does not exist, it should show me a message on the table that says "record does...
3
1,185
How van I allow index only for same profile?
<p>My app is a weight loss app. It uses Devise for user authentication. </p> <p>A user <code>has_one :profile</code> (the profile table holds the <code>user_id</code> as foreign key) that stores data like prename, surname etc. and is created automatically when a user signs up. A profile <code>has_many :weights</code> ...
3
2,490
"active" class somehow being removed from ".caret"
<p>Even though in my mouseover function, it explicitly says to add the class <code>active</code> to <code>.caret</code> <em>(make it grey)</em> when "Dropdown" is hovered over and the dropdown menu hidden, when you click on "Dropdown" twice (once to show menu; once to hide) and still have your cursor over "Dropdown", t...
3
1,923
How did I make recursive copies of my repo inside of itself?
<p>I forgot what I typed exactly last night, but I remember typing a git command incorrectly and wondering if I messed something up. I figured everything was fine, made a commit then went to sleep. </p> <p>Now today, when I <code>git status</code> I get 100+ lines of </p> <pre><code>new file: MyProject/MyProject/ ne...
3
5,768
Adding attributes to the root xml stream
<p>Tried to look around for solutions but could not find any easy way to add attributes to root xml tag in beanIO 1.2.</p> <p>I need to implement something like below:</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;MyRootNode clientCode="German" recordCount="1"&gt; ...
3
1,558
Need help sharing a Javascript variable locally between files
<p>I've been developing a speed test typing game for some time now, and I've been stuck on how to take the time you finish from one HTML page (the game itself) to an alternate one (the score page). I've been trying to use import{} export{}, but I'm not 100% sure how they function and so they haven't exactly worked. I'l...
3
4,388
Flutter Integration test: I can't target some of my widgets - Getter not found
<p>I am learning about integration testing in flutter and I'm running into a problem.</p> <p>My app contains a sign-in button widget and my test starts with pumping it.</p> <p>However, I can't seem to target it.</p> <p>Every attempt results in the following error:</p> <pre><code>integration_test/doctor_integration_test...
3
1,156
Issues connecting to server with sslv3 disabled in legacy perl
<p>As the title says, I'm attempting to POST some JSON to a REST API using a pretty old version of perl, specifically 5.10.1. I'm working in a pretty old legacy codebase on RHEL 6. The handshake fails with error 500 because the server has sslv3 disabled. However I'm using versions of LWP and IO::Socket::SSL that I beli...
3
1,793
Android Camera in Background
<p>I am trying to create an android application that can capture image in the background once the service is started . I am able to capture it and save on sdcard but the image captured is bit dark and i am not able to trace the problem. What could be the possibilities?</p> <p>Captured Image: <a href="http://imgur.com/...
3
3,122
Angular2: Unit-test router with cached template
<p>I'm dealing with some problems doing test on different environments:</p> <ul> <li><strong>SRC</strong>: unminified components, using both .js and .html/.css template files</li> <li><strong>DIST</strong>: minified components (only .js, no templates)</li> </ul> <p>I made two different karma-conf and karma-test-shim,...
3
3,561
How to disable d3plus timeline time formating?
<p>I have created a bar chart using d3plus. In the code I have created timeline using the following lines: <br></p> <pre><code> .time({ "value": "__TIME__" ) .timeline({ "align":"center", "value":true}) </code></pre> <p><br> This is showing a timeline in my chart like below:<a href...
3
1,062
Does Android TextView support state_pressed state?
<p>The real quest is to have a custom ButtonBar(as below) in Android with TextViews acts as buttons and each should reflect their state, pressed/selected.</p> <p><a href="https://i.stack.imgur.com/nC620.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nC620.png" alt="enter image description here" /></...
3
1,129
Reverse for 'blogpost' with arguments '('',)' not found
<p>Reverse for 'blogpost' with arguments '('',)' not found. 1 pattern(s) tried: ['blog/(?P[0-9]+)\Z']</p> <p>I face this problem in every project. So please any devloper solve this problem</p> <p><strong>my urls.py</strong></p> <pre><code>from django.urls import path from .import views urlpatterns = [ path('', vie...
3
1,750
Send a custom email with additional account fields values on save in Woocommerce 3
<p>On the basis of the plugin “Advanced Custom Fields” additional fields were created for the personal account of WooCommerce users. Using the second "ACF for WooCommerce" plugin, I placed these fields on the edit-account page.</p> <p>If the user has filled in the fields or edited them, the administrator will receive ...
3
1,722
CS50 pset3 i want to resize this image, code is working for some and not for others? Can anyone tell me whats the problem?
<p>i want to resize it by "n", it is working for some but not for others , i don't know why, it has no image specific code as per i know, it should work for every image</p> <pre><code>// Get multiplier int n = atoi(argv[1]); // read infile's BITMAPFILEHEADER BITMAPFILEHEADER bf,bfR; fread(&amp;bf, sizeof(BITMAPFILEHE...
3
1,168
Data table dcast column headings
<p>I have a data table of the form</p> <pre><code>ID REGION INCOME_BAND RESIDENCY_YEARS 1 SW Under 5,000 10-15 2 Wales Over 70,000 1-5 3 Center 15,000-19,999 6-9 4 SE 15,000-19,999 15-19 5 North 15,000-19,999 10-15 6 North 15,000-19,999 6-9 </code></pre> <p>created by</p> <pre><code>ex...
3
1,147
Perl, XML::Twig, how to reading field with the same tag
<p>I'm working on processing a XML file I receive from a partner. I do not have any influence on changing the makeup of this xml file. An extract of the XML is:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;objects&gt; &lt;object&gt; &lt;id&gt;VW-XJC9&lt;/id&gt; &lt;name&gt;Name&lt;/name&gt...
3
1,384
Random <divs> onclick
<p>I'm trying to make a simple game where</p> <ul> <li><p>you start with 9 circles</p></li> <li><p>when you click on a circle with a thicker border it's going to increment a score and cause new circles to be drawn randomly.</p></li> </ul> <p>I've already worked on counting stuff but I have a problem, because wherever...
3
1,973
Using Typo3 eID for nusoap call
<p>i'm using the following code for my soap call. </p> <p>If i add the wsdl and make my client call i just get the response without the whole soap wrap. </p> <pre><code>declare(strict_types=1); namespace Vendor\DocBasics\Controller; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface;...
3
1,872
Text in .write gets cut off
<p>I am trying to make a program that will create a LaTex file (.tex) with a preamble in it, and sooner some sections. I have defined my function <em>thepreamble(title,subject)</em> such that the inputs will be created in the string, which is seen below in my code.</p> <pre><code># -*- coding: utf-8 -*- import io def...
3
1,822
how to change css3 animation state
<p>what i am trying to do is <strong>play and pause</strong> css3 animation<br> from this link: <a href="https://stackoverflow.com/questions/5804444/how-to-pause-and-resume-css3-animation-using-javascript">How to pause and resume CSS3 animation using JavaScript?</a> i learned how to pause animation<br> i also achieved...
3
1,269
batch file change bracket speciff my.ini
<p>I need to locate a [mysqld] bracket inside a file (my.ini), after it finds 2 variables "lower_case_table_names = 1" and "max_allowed_packet = 512M", if they exist make the necessary change in their values, if there is no write With past values.</p> <p>I am using this batch file, for this verification however, after...
3
2,511
Implementing FCFS CPU Scheduler (Wait time function)
<p>Process Data:<br> process goes {CPU burst, I/O time, CPU burst, I/O time, CPU burst, I/O time,…….., last CPU burst}</p> <p>I split the data into two arrays. cpu burst and io_burst</p> <p>P1 {4,24,5,73,3,31,5,27,4,33,6,43,4,64,5,19,2}</p> <p>P2 {18,31,19,35,11,42,18,43,19,47,18,43,17,51,19,32,10}</p> <p>P3 {6,18,...
3
5,922
Why Bitdefender prevent flush data (PHP)?
<p>This code print result after each loop to browser.Works on my host and localhost.<br> but after install <code>bitdefender total security 2015</code> on my pc not works(print all text after 10 seconds at once) i disable antivirus and firewall in bitdefender but not solved.<br> How to solve this? Demo: <a href="http:/...
3
1,564
Database insertion is taking zero seconds to insert
<p>I am trying to measure the performance of <code>Database Insert</code>. So for that I have written a <code>StopWatch</code> class which will reset the counter before <code>executeUpdate</code> method and calculate the time after <code>executeUpdate</code> method is done.</p> <p>And I am trying to see how much time ...
3
1,613
Showing up highchart after submitting form in other file
<p>Kindly need help... I want to show Highchart in file_1, when highchart script is on file_2.. i'm using PHP, Jquery and AJAX... here is the script</p> <p>SCR_test02.php </p> <pre><code>&lt;?php require "function.inc.php"; //require "showscr.php"; include "conn.php"; include "q_table.php"; ?&gt; &lt;form name=...
3
4,194
MongoDB aggregation graphlookup child's parent
<p>I've got some documents representing folders. I'd like to match every folder's parent if it has one.</p> <pre><code>{&quot;_id&quot;:{&quot;$oid&quot;:&quot;5f8c406fc8c88110e0d927f2&quot;},&quot;name&quot;:&quot;A&quot;} {&quot;_id&quot;:{&quot;$oid&quot;:&quot;5f8c406fc8c88110e0d927f3&quot;},&quot;parentFolderId&qu...
3
1,465
When i click on login button then i want to go homepage with the help of react-router but it is not working in my code if anyone can help me in this
<p><strong>App.js</strong> this is App.js file where I'm connecting one to another</p> <pre><code>import LoginForm from &quot;./components/login/LoginForm&quot;; import Homepage from &quot;./components/pages/HomePage&quot;; import { Route, Switch, Redirect } from &quot;react-router-dom&quot;; import { useContext } from...
3
6,708
android how to have a fixed layout but it will also adjust itself on different screensize
<p>I am developing some calculation app. This app will display the results on a table. For now i use "wrap_content" on height and width plus weight of my layout which will make it adjusting the border itself. However this make the table looks poorly designed . The example::</p> <p>What i want it look like: the value i...
3
9,252
Nullpointer returned by function implemented in Locally bounded service in android
<p>I am writing a locally bound service in android.My application has two classes viz. Activity and a Service</p> <p>In my activity I have one TextView and one button. I am starting and binding the service in onCreate() method of the activity. When the button is getting clicked I want my TextView to be upadated with a...
3
1,660
How do I stop my sql query from displaying the results twice?
<p>How do I stop the results from getting displayed twice on the web page? What have I done wrong? Yes this is for a game but it helps me learn SQL and PHP. Please be genital it's my first time. There is one database with two tables. The database is game_tittle the two tables are player_data and the second is character...
3
1,591
ArrayAdapter error when more than one item is in the array
<p>I have a error when I get an array which has more than one value in it the ListView... it crashes... </p> <p>str_amparticipant_firstname is an array of string values. str_pmparticipant_firstname is also an array of string values. </p> <pre><code> adapteram = new ArrayAdapter&lt;String&gt;(Attend.this, android.R.la...
3
3,513
How to loop data imported from SQLite database
<p>I am building an <strong>Express</strong> app ,and i am using <strong>SQLite</strong> database, I managed to fetch the data from the database, but I want to display it in the interface ,So i did this :</p> <p><strong>index.js</strong></p> <pre class="lang-js prettyprint-override"><code>/* GET THE LIST OF HOMES*/ rou...
3
1,875
jQuery Toggle button not clickable after first click
<p>The menu expands and contracts when I click on a button. The button toggles the &quot;active&quot; class when I click it as expected with only the code required for that action. However, when I add the code to make the the menu contract when clicking elsewhere on the page, it only contracts when clicking everything ...
3
1,799
Instantaneous change in velocity using a velocity verlet integrator
<pre><code> var nx = x + velX * dt + accX * (dt * dt * 0.5); var ny = y + velY * dt + accY * (dt * dt * 0.5); var na = a + velA * dt + accA * (dt * dt * 0.5); var nAccX = 0; var nAccY = 0; var nAccA = 0; var i = -1; repeat( ds_list_size(physics_forces) ) { i++; var force = physi...
3
1,127
spatial domain convolution not equal to frequency domain multiplication using pytorch
<p>I want to verify if 2D convolution in spatial domain is really a multiplication in frequency domain, so I used pytorch to implement convolution of an image with a 3×3 kernel (both real). Then I transformed both the image and the kernel into frequency domain, multiplied them, transformed the result back to spatial do...
3
1,481