title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Flat XML to Unique Nested XML using XLST 1.0
<p>I'm trying to get the output from a filemaker database export into a form usable by a web application. I've attempted to write an XLST (1.0) to do the transformation. Filemaker output is essentially a spreadsheet (rows x columns), and I want to convert this based on relationships. Essentially for every tank "Col[...
3
1,439
Updating JFreechart dataset with timer
<p>I found an example about multiple charts <a href="https://stackoverflow.com/questions/15805536/jfreechart-how-do-you-put-multiple-charts-into-a-composite-chart">here</a>, and try to improve it a little bit. I want these values to be changed with time.</p> <p>Here is the code:</p> <pre><code>import java.awt.Color; ...
3
1,320
Terraform keeps reporting changes - Codepipeline
<p>My Terraform code keeps reporting changes after apply although the plan has been correctly applied.</p> <p>Terraform and provider version:</p> <pre><code>Terraform v1.1.7 on darwin_amd64 + provider registry.terraform.io/hashicorp/aws v4.6.0 </code></pre> <pre><code>resource &quot;aws_codepipeline&quot; &quot;this&qu...
3
2,881
Wordpress Update Javascript Stopwatch
<p>I have this javascript stopwatch that is working. The function is when user click start button to start and pause button to pause the stopwatch. The variable stopwatch is saved in localStorage and when user refresh the website and click start again the stopwatch continue from the last stopwatch time + 1; The first t...
3
1,995
Java how to send special character is post
<p>Im trying to send a post to a backend API from android and this is what I have but some special characters relating to application/x-www-form-urlencoded content type wont be sent or cause problems. Im wondering if there is a way to send the special characters in this format? (+,&amp;) I'm attempting to send the mess...
3
2,790
How do I Custom Sort a Multidimensional Array in PHP (codeingiter)
<p>i have an array like:</p> <pre><code>Array ( [0] =&gt; Array ( [category_id] =&gt; 411 [category_name] =&gt; some text [data] =&gt; Array ( [1] =&gt; stdClass Object ( [album_id] =...
3
6,445
Why does item disappear when anchors changed?
<p>Here is a Tab in a TabView in my qml file:</p> <pre><code> Tab { title: "Lab" Rectangle { width: 300 height: 600 anchors.margins: 60 color: "gray" // anchors.top: parent.top // anchors.bottom: pa...
3
1,274
Swift - AVAudioPlayer doesn't work properly
<p>I have the following code :</p> <pre><code>let speechRecognizer = SFSpeechRecognizer()! let audioEngine = AVAudioEngine() var recognitionRequest = SFSpeechAudioBufferRecognitionRequest() var recognitionTask = SFSpeechRecognitionTask() var audioPlayer : AVAudioPlayer! override func viewDidLoad() { super.viewDid...
3
2,150
OpenGL glm::perspective() doesn't work properly, objects aren't 3d
<p>This is my game loop. I know I don't need to declare these variables twice, but I did them just in case:</p> <pre><code>while (!glfwWindowShouldClose(window)) { GLfloat currentFrame = glfwGetTime(); deltaTime = currentFrame - lastFrame; lastFrame = currentFrame; glfwPollEvent...
3
1,232
PHP Error - Login/Register Script
<p>The user registration page works, meaning a the salt and hashed password are saved correctly in the database. The login reports an invalid username/password. I have the salt and password set to varchar(64) in the database if that matters.</p> <p>I just cant seem to find out why it doesn't work. I would like to beli...
3
1,069
Tensflow Keras: TypeError: can't pickle _thread.RLock objects when using multiprocessing
<p>I have raised this issue in GitHub: <a href="https://github.com/tensorflow/tensorflow/issues/46917" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/issues/46917</a></p> <p>I am trying to use multiprocessing threads to speedup the some of my code. In which I have to send a Keras model to each threa...
3
1,365
JDialog not focused on OSX when Java is not on top
<p>My JDialog is not focused when the Java program is not in the front in OSX. How do I achieve this?</p> <p>I have the following test program to illustrate the scenario (at the bottom), running using <code>javac Test.java &amp;&amp; java Test</code> from a terminal.</p> <p>When the terminal output "Started first", i...
3
1,164
html calculate difference between dates
<p>I want to create a countdown timer, for different dates.</p> <p>Here i insert a date input from which i select the future date</p> <pre><code>&lt;body&gt; &lt;form action="countDown.php"&gt; &lt;td&gt; Select date: &lt;input type="date" name="d"&gt;&lt;/td&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="submit" value="...
3
1,790
Python error while coding in Swift: unexpected indent (Xcode 11)
<p>Edit: For those who want actual code, please consult this link for all related source code. <a href="https://github.com/objcio/S01E118-introduction-prototype" rel="nofollow noreferrer">https://github.com/objcio/S01E118-introduction-prototype</a></p> <p>Why am I getting the following error:</p> <blockquote> <p>er...
3
2,572
How to submit a dynamic dropdown list with php in a table (tr,td)
<p>I have a question, apparently I was able to do a dropdown list where I was able to retrieve the values from MYSQL, however, now I want it to insert into a new query, below 2 codes contains how I place my dropdown list, and the other codes would be how I insert and submit the data. So my question is how do i submit t...
3
1,380
Unable to Create a CloudWatch Healthcheck via Ansible
<p>I have a inventory file which has a RDS endpoint as :</p> <pre><code>[ems_db] syd01-devops.ce4l9ofvbl4z.ap-southeast-2.rds.amazonaws.com </code></pre> <p>I wrote the following play book to create a Cloudwatch ALARM :</p> <pre><code>--- - name: Get instance ec2 facts debug: var=groups.ems_db[0].split('....
3
1,152
How to get output from console.log when it is a HTML file
<p>I have just started learning JavaScript and have just made my first program a simple guess a number game. To give the user feed back about there guesses, I used <code>console.log()</code>. It worked on the website that I used to learn JavaScript (<a href="http://www.codecademy.com/learn" rel="nofollow">http://www.c...
3
1,229
3DES Decryption Sometimes Different
<p>I'm having a problem using the CCCrypt function to simply encrypt/decrypt a chunk of data.</p> <p>My platform is iOS 8 in Xcode 6.</p> <p>What I'm doing is, I convert a test string to NSData format and pass it into a wrapper function I made. The return of that function is the encrypted data. I take that encrypte...
3
1,604
html/css simple image alignment issue
<p>I've got a header where I'm adding a little gradient spacer image, and it's not moving where it needs to be (see red arrow for desired location):</p> <p><img src="https://i.stack.imgur.com/rUrpp.png" alt="enter image description here"></p> <p>I've tried several different versions of the img tag, and adding an encl...
3
2,439
Challenged accessing containerized DNS-SD
<p>I'm a ZeroConf (and Rust) noob and I'm struggling to understand why I'm unable to access a service based upon the <a href="https://crates.io/crates/astro-dnssd" rel="nofollow noreferrer"><code>astro-dnssd</code></a> example when the code is containerized <strong>and</strong> run in a subshell.</p> <p>The following w...
3
1,205
test if words are in a string (grepl, fuzzyjoin?)
<p>I need to do a match and join on two data frames if the string from two columns of one data frame are contained in the string of a column from a second data frame.</p> <p>Example dataframe:</p> <pre class="lang-r prettyprint-override"><code>First &lt;- c(&quot;john&quot;, &quot;jane&quot;, &quot;jimmy&quot;, &quot;j...
3
1,070
Python - Pandas - String Replacement with regex | (OR)
<p>I've got 2 Dataframes :</p> <pre><code>df_bisID = pd.DataFrame({'A': ['ID1#ID2', 'ID3#ID4'], 'B': ['ID5#ID6', 'ID7#ID8'], 'C': ['ID9#ID10', 'ID11#ID12'], 'D': ['ID13#ID14', 'ID15#ID16']}) A B C D 0 ID1#ID2 ID5#ID6...
3
1,569
NSAlert runModal may not be invoked inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method)
<p>I have a Xamarin.Mac app that crashes when trying to display an alert from the GetView method of a NSOutlineViewDelegate. </p> <p>The code is the following:</p> <pre><code>internal class ItemsDelegate : NSOutlineViewDelegate { public override NSView GetView(NSOutlineView outlineView, NSTableColumn tableColumn,...
3
4,575
What is wrong with the segue and NavigationController navigation
<p>This is a continuation/alternative of this thread: <a href="https://stackoverflow.com/questions/19365260/self-navigationcontroller-poptorootviewcontrolleranimatedyes-do-not-pop-back-to">popToRootViewControllerAnimated problem</a> to sort out what is the problem/mistake in a more structured and easier to understand w...
3
1,122
How do I display the list of values from restapi on reactstrap list item
<p>Following is my code:</p> <pre><code>import React, { Component, Fragment,useState } from &quot;react&quot;; import RestAPI from &quot;services/api&quot;; import { handleServerErrors } from &quot;utils/errorHandler&quot;; const options = { colors: [&quot;#aab5f0&quot;, &quot;#99ccee&quot;, &quot;#a0ddff&quot...
3
1,511
How to improve Django-PostgreSQL search performance and increase HTML rendering or AJAX response speed?
<p>I am working on a full text search application in django with postgreSQL where the database has about <strong>50k</strong> rows currently. I am using <strong>SearchRank</strong> and <strong>TrigramSimilarity</strong> and have already implemented <strong>SearchVectorField</strong> and <strong>GIN indexes</strong>, bu...
3
1,347
How to find previous element with specific pattern
<p>I could not build up the solution how to find the previous element without specific pattern.</p> <p><strong>Description:</strong> In the select option below is a simple Select box. The parent items have no <code>-</code> or dash, and the parents are created, then the children option values, so always, the children o...
3
1,417
smtp is not working on for loops
<p>I want to send an email to more than 2 people using my own database. So I use for loop to send an email. And it is sent well to a first person(mail_data.Rows[0][0]), but not for the second person.(mail_data.Rows[1][0]) The code stops before smtp.Send(mm). Second person's email is exactly correct. I have no idea why ...
3
1,206
How do I have multiple levels of page break avoidance within a table?
<p>I am creating a very complex view to correlate groupings of tabular data with totals that all need to align together. To do this I've come up with the following HTML:</p> <pre><code>&lt;table&gt; &lt;tr class="header_row"&gt;&lt;/tr&gt; &lt;tr class="inner_group_row"&gt;&lt;/tr&gt; &lt;tr class="data_r...
3
1,339
Inactive part of the screen on fullscreen
<p>I'm trying to put a picture on fullscreen with buttons on to do actions.</p> <p>Here is a screenshot of my result:</p> <p><img src="https://i.stack.imgur.com/BM2Qr.png" alt="Screenshot" /></p> <p>My problem is that the buttons on the first line (the highest) are not touchable. It seems to have no action on the top l...
3
1,184
Google map app crashes on android OS 4.3
<p>I built an app for map. Added all the necessary permissions and generated the api key but it is still crashing. I am working on command line and implemented it on Android 4.3 OS.</p> <p>Here is the code:</p> <pre><code>public class MainActivity extends FragmentActivity { /** Called when the activity is first creat...
3
1,364
Using and manipulating arrays without Array.replace Array.copy
<p>Ok well I posted a question with a small portion of my code. I realized that it would be easier for people to answer if they could see the entire code. I get nullpointerException when I run the program. I am not allowed to use .replace .copy .remove with regards to arrays. Im not sure why but thats what my teache...
3
3,455
Google Cloud Run Sudden Traffic Spike Error
<p>I am using cloud run to service requests sent by my Google App Engine asynchronously. It seems to work fine when I send a cluster of 10 or so async requests. When I send a cluster of 50 async requests I begin to encounter the 500 error &quot;The request was aborted because there was no available instance&quot;</p> <...
3
1,361
Struggling to Install Puppetserver with yum on CentOS7
<p>I am trying to install puppetserver on CentOS7. I ran the following commands to first enable the puppet platform as instructed on <a href="https://puppet.com/docs/puppet/7.4/install_puppet.html#install_puppet" rel="nofollow noreferrer">https://puppet.com/docs/puppet/7.4/install_puppet.html#install_puppet</a> :</p> <...
3
1,124
Problem Overriding the save() method in Django
<p>I have a peculiar type of model where <code>table_fields</code> needs to set to default depending on the value of its <code>report_type</code> field.</p> <pre><code>class Report(models.Model): ALL_TABLE_FIELDS = ( 'local_ordered_date', 'card', 'country', 'customer', 'supplier', 'amount', 'currenc...
3
2,457
Convert JSON to SQL row
<p>I have this below JSON and I would like to load them to my MSSQL table </p> <pre><code> [{"Item_name": ["Lizinka", "L4690.S53", "Alder Pebble Grain Leather Boot w/ Walking Sole", "Becketts Oxford", "Phillip II Oxford", "Helston Moc Toe Boot", "Croft Pebble Grain Leather Derby w/ Walking Sole", "Croft Pebble Grain L...
3
7,910
Sum Total of 2 columns MYSQL
<p>I'm trying to improve my queries by making them work with the result they already have to make a total SUM of two columns</p> <p>This query is an example of what I need, the result <code>RecargaronRetiraron</code> is the sum of (<code>Recargaron + Retiraron</code>)</p> <pre><code>SELECT DATE_FORMAT(Fecha_Proc...
3
1,217
timeout when running report in Acumatica ERP system
<p>I have a problem when I'm running customized report, I used this query View to generate the report: <a href="https://drive.google.com/open?id=0B0Aenr4I_Yz9RWRSN0RtaXhoSG8" rel="nofollow noreferrer">https://drive.google.com/open?id=0B0Aenr4I_Yz9RWRSN0RtaXhoSG8</a></p> <p><a href="https://i.stack.imgur.com/V7OBC.png...
3
1,252
StickyX element without float
<p>I am trying to make UL.pagination to be in the center of the view-area of the parent, without using float as it will interrupt my style. Would this possible?</p> <p>I am not familiar with SO yet, but my point is to trigger scrollLeft of .pagination parent to keep pagination in the center of its parent.</p> <p>This...
3
4,299
insert data to contacts2.db
<p>Why error in <code>raw_contacts</code> ?</p> <p>ERROR :</p> <blockquote> <p>SQLiteManager:<br> INSERT INTO "raw_contacts" VALUES(1,1,NULL,0,2,1,0,1,0,0,NULL,0,0,NULL,0,2147483647,'09999999999','09999999999',20,NULL,'0','09999999999','#',208,'09999999999','#',208,0,NULL,NULL,NULL,NULL); [ no such collation sequ...
3
1,077
CursorIndexOutOfBoundsException index 0 requested with a size of 0 Other answers don't work
<p>I've read all the other pages on this error here and none of the solutions seem to work for me. Any help is appreciated. I have an activity that lets the user insert as much data as they want. It is then saved into SQL then the user can select the specific set of data they just saved. When i try to begin a new one n...
3
13,687
Set-PSDebug -Trace 2 is causing my powershell code to throw an error that doesn't occur without tracing on
<p>Imagine a script <code>test.ps1</code> that looks like this:</p> <pre><code>Param ( [ValidateNotNullOrEmpty()] $VMHost, [switch] $trace ) $ErrorActionPreference = "Stop" Set-StrictMode -Version 2 trap { Set-PSDebug -Trace 0 $_.InvocationInfo break } if ($trace) { Set-PSDebug -Tra...
3
1,762
C# - SerialPort Encoding help needed
<p>I need help with my program with which I want to read codes from several microcontrollers simultaneously and translate them into plain text. There is only one serial interface where all codes are collected. The translation of the codes works, but I have the problem that the codes are not read correctly. He makes pau...
3
1,511
Argument of type 'Object[]' is not assignable to parameter of type 'Place[] | PromiseLike<Place[]>'
<p>Hello folks!</p> <p>I am coding an app with ionic and have a problem with this. I have implemented this code in the project for another page(places.html and places.ts), but I want to implement for the page and I get the error.</p> <p>The problem in the bottom line and this line on "data".</p> <pre><code>query.fin...
3
1,704
Oracle SQL query returns same set of results despite variation in ROWNUM value
<p>I'm working on a Oracle/PHP application and trying to implement a "load-more" functionality.</p> <p>Here are the two tables and their structures:</p> <p><code>questions:</code> <code>id (int) | title (varchar(999)) | datetime (varchar(999))</code></p> <p><code>questions_tags:</code> <code>id (int) | question_id (...
3
1,630
MySQL link to return results
<p>I have an image that is displayed from a table and I want the user to be able to click the image which directs them to a page that returns the rest of the data for that row. Do I need a php loop for this? I can't quite figure it out. This returns the Last Name, First Name, and an Image:</p> <pre><code> &lt;?php...
3
1,144
NoClassDefFound error when attempting to add an applet to my website
<p>I'm trying to add an applet with multiple jars to an HTML page but i get a NoClassDefFounderror: db.DAO when trying to run the program in my browser. DAO is a class on which TheaterApplet depends. My main JAR is theaterapplet.jar, it uses propproj.jar and firebirdsql-full.jar. i've use the following HTML code:</p> ...
3
2,303
android http request OutOfMemoryException
<p>I have a method that do several http requests and it fails on the last request (for old devices only, e.g. here I used device with 20 Mb heap size).</p> <p>My code:</p> <pre><code>private String request(String urlstr) throws IOException { HttpURLConnection conn = null; InputStream in = null; try { ...
3
2,592
android remote service null pointer
<p>I'm not exactly a beginner in Java/Android anymore but this problem has me stuck. I have a main project that calls a remote service. That remote service (ROS) is installed on the phone before running the main project. However, I keep getting a null pointer exception in my serviceManager when I call rosService.pub...
3
2,188
How do I display base64 inside map loop(assumption) in ReactJS
<p>I have a REST API that returns an image when I request with the url + (plus) file name and I want to display it in the image column in a table.</p> <p>I use:<br> axios <strong>0.18.0</strong> <br> reacj <strong>16.13.0</strong> <br> react-bootstrap-table2-toolkit <strong>1.3.1</strong></p> <p>My assumption is that r...
3
1,135
How to redirect to page with history API on popstate when submit a form with ajax?
<p>I have an issue when using history API on form submission with Ajax, I want to automatically redirected with historyRender() when the request is successfully, but since it takes the window pop state event it does not do anything. I want function HistoryRender(url) to work work when is initialized without any click e...
3
1,130
How to test email sending with Mailhog on local?
<p>Setup mailhog with docker-compose like:</p> <pre><code>version: '3' services: mailhog: image: mailhog/mailhog ports: - 8025:8025 - 1025:1025 </code></pre> <p>It's possible to access localhost:8025 from browser. Maybe the SMTP server 1025 also works but don't know how to confirm it.</p> <p>In a ...
3
1,246
How to cope with WebGL missing glBlendEquation(GL_MAX)
<p>Here's my current C code that does what I'd like to do, but it relies on <code>glBlendEquation(GL_MAX)</code> which is unavailable in WebGL. What I want is to render a wiggly fuzzy line. I could use a Gaussian blur but it would have to have a VERY large radius (16 pixels) and I expect it would be REALLY slow.</p> <...
3
3,198
Crash when making Mopub ad banner visible
<p>I noticed that sometimes have crashes in my Android app while displaying an ad layout using Mopub SDK. I've never been able to reproduce this issue and it never happened on my devices.</p> <p>Here is the layout containing the ad banner:</p> <pre><code>&lt;LinearLayout android:id="@+id/layout_ads" android:...
3
1,562
From Last day get error in dio client in flutter
<p>I called api request and it worked fine, i used dio client and get data properly. but since last day it dosen't work!. i tried to solve this problem. it shows thousand of line in Logcat. but what is the actual problem? any solution?</p> <p><a href="https://i.stack.imgur.com/oaBxl.png" rel="nofollow noreferrer"><img ...
3
1,756
Error in Flutter: type 'string' is not a subtype of type 'map<string, dynamic>?' in type cast
<p>I'm trying to built an app for my college degree with flutter that has a login screen where you insert the username and password and pass to the main screen. I use retrofit for the REST API. When I press the login button with the credentials I get the error: <code>Exception: DioError [DioErrorType.other]: type 'Str...
3
3,446
Scraping with Python BeautifulSoup two prices
<p>i'm currently working on scraping this website: </p> <p><code>https://listado.mercadolibre.com.ve/oficinas-suministros-papeleria-papel-en-aragua/resma-carta-alpes</code></p> <p>i've been successful until i apply the "text" attribute to the decimal price variable.</p> <p>this is the code i've been using:</p> <pre...
3
1,229
Does iOS app "Application Support" folder persist across app update?
<p>Inside an iOS app, there is <code>/Library/Application Support</code> folder (accessed with <code>NSApplicationSupportDirectory</code>). I save user downloaded contents there. The contents are like patch files to add new images and data for my app. I want it to persist across app updates. I <strong>DO NOT</strong> w...
3
1,347
Issue renaming directories
<p>I want to rename directories of those whose checkbox has been checked by the user with a single click of the <code>Update</code> button. The textbox and checkbox values are collected in an array and sent to the server via jQuery. Firebug shows the correct array values being passed. The problem is that it renames the...
3
1,365
"GetXController" not found. You need to call?
<p>I want to implement <a href="https://chornthorn.github.io/getx-docs/dependency-management/binding" rel="nofollow noreferrer">GetX binding methods</a>, and as result, I got this error:</p> <pre><code>════════ Exception caught by widgets library ═══════════════════════════════════ The following message was thrown buil...
3
1,121
error C2338: YOU_MIXED_DIFFERENT_NUMERIC_TYPES
<p>I'm receiving this error at line eigen/src/Core/AssignEvaluator.h(834) of <a href="http://eigen.tuxfamily.org/" rel="nofollow noreferrer">Eigen</a> library:</p> <blockquote> <p>error C2338: YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY</p> </blockqu...
3
1,871
MySQL performance is very bad
<p>PFB a sql query I am trying to run. The final output returns around 60k rows, but it takes close to 5 hours to run. There is no problem with the connections and stuff like that and I feel that my query needs to be optimized heavily. Can somebody please point me in the right direction?</p> <pre><code>SELECT rapi...
3
3,809
Retrieve simple XML rest web service data using jersey
<p>I tried a simple example to make rest web service using jersey in eclipse IDE. This web service assumed to return a simple information in XML format for an object as shown in the class: </p> <pre><code>import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; ...
3
2,146
xarray interp variable with two dimensional gird into one point
<p>I have a dataset with two-dimension lon/lat and I want to calculate the value of one certain point.</p> <p>The ncfile can be download from <a href="ftp://ftp.awi.de/sea_ice/product/cryosat2_smos/v204/nh/LATEST/" rel="nofollow noreferrer">ftp://ftp.awi.de/sea_ice/product/cryosat2_smos/v204/nh/LATEST/</a> and the vari...
3
1,701
Mixing contravariant and covariant types in Scala
<p>I am trying to build a framework with a hierarchy of <code>Context</code>s (that hold immutable data) and <code>Module</code>s that create actors work with the data. Subclasses on <code>Context</code> include more data (e.g., a <code>RemoteContext</code> would have information about how to communicate with remote h...
3
1,089
How do I extract this value using PHP Dom
<p>I do have html file this is just a prt of it though...</p> <pre><code>&lt;div id="result" &gt; &lt;div class="res_item" id="1" h="63c2c439b62a096eb3387f88465d36d0"&gt; &lt;div class="res_main"&gt; &lt;h2 class="res_main_top"&gt; &lt;img src="/ff/gigablast...
3
1,089
BeautifulSoup: IndexError: list index out of range for Multiple Links to Scrape
<p>I am working on a scraper, it works well on multiple URLs (it takes some basic info and multiple links associated with each URL), BUT since each URL has a different number of links associated with each profile (e.g. one URL can have 3 social links, another URL only 1 social link, then another URL with 2 social links...
3
1,198
How to update TextFormField content after onPressed of a prefixIcon with FutureBuilder?
<p>I just started a small flutter project. I have a onPressed property inside a suffixIcon and the onPressed itself has a FutureBuilder inside of it. The future function is async (I am using the geolocator package) and it returns the coordinates of the device. I want to refresh the TextFieldForm content with those coor...
3
2,546
Tile Projection Google Maps: Convert Distance to Screen Dimensions
<p>I am using the CanvasTileProvider in Google Maps Android v2. </p> <p>I can convert lat long points to screen pixels. </p> <p>However I would like to create a method to convert a distance to screen pixels. This will allow me to draw a circle of x radius. Can anyone help with this?</p> <p>The code below I have but...
3
2,188
Memory leak on JNI native code
<p>I have a piece of JNI native code. When we invoked this native method + run other requests, the jvm will crash. </p> <p>Most probably, there is memory leak in this piece of JNI native method ( c code).</p> <p>Any body can help detect the memory leak in the below code? </p> <pre><code>#include &lt;stdio.h&gt; #inc...
3
2,718
resolve TypeError: req.flash is not a function?
<p>Working with Registration in a Site. For the register Form,Validation is done using mongoose models and trying to Use Flash to display the error message in the Form.</p> <p>In my nodejs app it shows an error like:</p> <blockquote> <p>TypeError: req.flash is not a function</p> </blockquote> <p>I have installed connec...
3
2,180
XML specific line paring python
<p>I have an XML file sample , i have to build similar xml file .</p> <pre><code>&lt;datasource formatted-name='federated.1819qwi0hys5391dzxhl70o95li4' inline='true' source-platform='win' version='18.1' xmlns:user='http://www.tableausoftware.com/xml/user'&gt; &lt;connection class='federated'&gt; &lt;named-connect...
3
1,536
Authentication using Cakephp and PhoneGap
<p>I am working on an application using Cakephp on the server side and PhoneGap at the client Side, with JSON as a intermediate to access the server side. </p> <p>Now, I am working specifically on a login form where the user needs to enter his/her username and password. I put in my <code>controller</code> the followin...
3
1,790
What is definition of %DMNORMIP and $ in SAS?
<p>I'm an R user and I'm trying to test the SAS code below in R. I think the code is pretty straightforward, except these two topics that are troubling me:</p> <p><strong>1.</strong> What does %DMNORMIP means?<br> <strong>2.</strong> What does $ do? </p> <pre><code>**********************************************...
3
6,730
Insert multiple html elements based on dynamic values, into different DIVs using javascript
<p>I'm having a bit of trouble trying to figure out what I need to do.</p> <p>I'm working on a small train timetable app which finds the five closest stations and brings up the timetables for all five stations. I have successfully found the nearest stations, and have managed to get all the service information from eac...
3
4,027
gem install of pdf-extract on Macports / Mac OS X Yosemite
<p>I am attempting to install <a href="https://github.com/CrossRef/pdfextract" rel="nofollow">pdf-extract</a> on Mac OS X Yosemite. I assume it's better not to use the <code>/usr/bin/ruby</code> that comes with Yosemite, so I'm using the Macports version, <code>/opt/local/bin/ruby</code> (ver2.1.3).</p> <p>The install...
3
1,310
How to bind dependency property of ICommand of ItemsControl member to parent view model?
<p>I have a custom user control that has a checkbox and a button with backing dependency properties.</p> <p>I also have a window with an ItemsControl and I bind that control's &quot;ItemsSource&quot; to an ObservableCollection containing said user controls.</p> <p>My goal is to be able to access the dependency properti...
3
1,266
Passing array as argument to a module in SystemVerilog Xilinx
<p>I have declared the following systemverilog module:</p> <pre><code>module module_top ( input logic clk, input logic rst, input logic signed [7 : 0 ] x_in, input logic signed [5 : 0 ] y_in [24:0] ); module_1 m...
3
1,264
Solve best fit polynomial and plot drop-down lines
<p>I'm using R 3.3.1 (64-bit) on Windows 10. I have an x-y dataset that I've fit with a 2nd order polynomial. I'd like to solve that best-fit polynomial for x at y=4, and plot drop-down lines from y=4 to the x-axis.</p> <p>This will generate the data in a dataframe v1:</p> <pre><code>v1 &lt;- structure(list(x = c(-5...
3
1,567
Can't show android device in ubuntu 13.04
<p>I have a Android tablet device that can't be showed by android devices on my laptop(T61), but it worked fine on DELL PC with the same OS: Ubuntu 13.04. </p> <p>I've update the adb to the latest platform-tools:18.0.1 and </p> <pre><code>export ADB_TRACE=all </code></pre> <p>After :</p> <pre><code>$sudo adb kill-s...
3
1,116
SQLitedatabase crash after upgrade
<p>I added 3 new columns to my Database from version 1 so I changed it to version 2 but now when I use an activity that uses my database my app crashes and shows this in the logcat.</p> <blockquote> <p>04-02 18:41:09.013: E/AndroidRuntime(19171): FATAL EXCEPTION: main 04-02 18:41:09.013: E/AndroidRuntime(19171): ...
3
5,044
How to update room database based on server response
<p>I am fetching data from server and saving in room database and then from room showing it in recycler view.Data is perfectly saving in room database and showing in recycler view.</p> <p><strong>Problem:</strong> When I am deleting some data from server database then its old copy that saved earlier still persists in ...
3
2,766
Retrieve contents of .txt file on web server without disturbing it?
<p>so i have a c# application which needs to use some code within a text file hosted on my web server (path: <code>https://example.com/example.txt</code>).</p> <p>The contents of the text file contain some compiled code, heres a snippet of the compiled code:</p> <pre><code> *ü *²0 ¾6- +* + *²0 ¾6- +S...
3
1,151
"TypeError: character mapping must return integer, None or unicode" when extracting zip file in Jython
<h3>Assumptions and what I want to achieve</h3> <p>I am writing code in <strong>Python2.7 (Jython)</strong> because I am using ImageJ.</p> <p>I want to extract the zip file in Python 2.7, but I can't do it.</p> <p>I have a zip file called RoiSet.zip in a folder &quot;OutletHDD&quot; and I want to unzip it to a folder &...
3
2,166
cannot feed value for tensor layer
<p>I am running following code. I do understand we can use Keras. I am trying to learn tensorflow and using it develop simple 2 layer NN.</p> <p><strong>Error: ValueError:</strong> Cannot feed value of shape (100, 1024) for Tensor 'layer-1/dropout/mul_1:0', which has shape '(?, 50)'</p> <pre><code> import numpy as...
3
2,649
How do you add addMarker on GoogleMap on Arraylist correctly
<p>I am having a problem on how to add the addMarker on Arraylist. While I am using createMarker on my for loop to add values.</p> <pre><code>MainActivity extends BaseActivityLocation implements NavigationView.OnNavigationItemSelectedListener, SearchView.OnQueryTextListener, SearchView.OnSuggestionList...
3
1,929
Contents get refreshed after the popup is opened
<p>I have a form wich has various fields.and i have a button 'GET REPORT'.on pressing this button the required contents are displayed in the table.in table i have a column called as images,which is a link to the image.when i press the link, popup appears with the image.my problem is, on clicking the popup the image app...
3
1,498
Issue with cropping picture from mysql database using PHP? Image shows up black?
<p>Im having a weird problem retrieving/cropping a smaller version of an original image from mysql database. Kind of new to this and need some help. </p> <p>I have a script that uploads an image to a database (the original image) as well as a smaller, cropped image to be used as a profile image and that kind of thing....
3
1,117
How To Attach EventListener With Dynamically Added Element With Vanilla Javascript?
<p>So the Scenario im working into is as this</p> <p>Im Creating A Kanban Style App Using HTML5,CSS &amp; Pure Javascript <a href="https://i.stack.imgur.com/PefYO.jpg" rel="nofollow noreferrer">Screenshot Of Said App </a></p> <p>So the each board contains few tasks added by hardcode , and there are eventlistener alread...
3
1,252
Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
<p>I want to crawl restaurant data from <a href="https://wolt.com/ru/kaz/almaty" rel="nofollow noreferrer">https://wolt.com/ru/kaz/almaty</a> each restaurant page is reached by the url such as <a href="https://wolt.com/ru/kaz/almaty/restaurant/la-pizza-2" rel="nofollow noreferrer">https://wolt.com/ru/kaz/almaty/restaur...
3
1,699
Java redirect stdout to file and back to console
<p>I have a java swing application that I am trying to give the user the ability to switch stdout back and forth from file to console. This is meant to be a toggle. I can toggle on file, but am not able to toggle back to console. When I toggle back, I do not get any output on either.</p> <pre><code> private void...
3
1,284
Ajax call work perfectly in Firefox, Chrome & IE9+ and but does not work in IE8 or IE7-Javascript
<p>I have the ajax call with <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest" rel="nofollow">XMLHttpRequest</a> which works perfectly in Firefox, Chrome &amp; IE9+ and but does not work in IE8 or IE7. </p> <p>I am using <a href="http://api.prototypejs.org/" rel="nofollow">Prototypejs</a> I ha...
3
1,830
How can I iterate through a CSV file in RUBY to produce an HTML unordered list?
<p>I am trying to write a script that will iterate through a CSV file in Ruby that will produce a multi-level unordered list.</p> <p>The code I have now doesn't cut off the <code>&lt;ul&gt;</code> in the right spots. The output just continues to new levels. </p> <p>Here is the Ruby code: </p> <pre><code>require 'cs...
3
1,154
Elements for array getting from server, randomly different order (swift)
<p>In viewDidLoad I have such code:</p> <pre><code>Alamofire.request(.GET, "http://my1test.ru/applejesus.php?task=getCategoryCount").responseString(encoding: NSUTF8StringEncoding) { (request, response, string, error) -&gt; Void in let count = string!.toInt()! println(count) for var i=1; i&lt;=...
3
1,301
Matplotlib histogram corrupting sklearn linear regression
<p>I am fitting a linear regression model with scikit-learn. The training of the model works fine on its own and runs without errors. The problem is that, if I plot a histogram of the dataset using matplotlib before I train the model, this leads to an error when training the model. I have already figured out that plott...
3
1,227
Custom user service doesn't work with Facebook as external login provider in Identity Server v3
<p>I have downloaded <strong>Microsoft.Owin.Security.Facebook</strong> package in order to be able to integrate Facebook as external login provider. I have added it to the app builder as follows:</p> <pre><code>var fbOptions = new FacebookAuthenticationOptions() { AuthenticationType = "Facebook", Caption = "Fa...
3
1,330
Changing fragments in tabs in tablayout during runtime
<p>I wonder if somebody could help me. I need to change fragment within individual tabs during runtime. I know it should be done using FragmentPagerAdapter, but that's all I have managed to find out about it. I'm using android studio. My project is running on API 22. Thanks for all answers! Edit: Here's the code. </p> ...
3
1,910
Continuous CSS concatenation in background with Yeoman
<p>I'm using <a href="http://yeoman.io/" rel="nofollow">Yeoman</a> and I can't find a way to trigger the <a href="http://yeoman.io/commandline.html#build" rel="nofollow">CSS task</a> upon file change.</p> <p>I have a project structure like</p> <pre> \ app -----\ module1 ------- style.css -----\ module2 ...
3
1,947
Error with CFLoop When Entries Are Missing
<p>I have the following code. </p> <pre><code>&lt;cfoutput&gt; &lt;cfxml variable="eating"&gt; &lt;catalog&gt; &lt;results&gt;10&lt;/results&gt; &lt;food id="bk101"&gt; &lt;initials&gt;BK&lt;/initials&gt; &lt;keywords&gt;Burger King, pie, hamburgers, fries, milkshakes&lt;/keywords&gt; &lt;/food&gt; &lt;food id="bk102"...
3
1,419
How do I stop handleExceptionInternal from returning status 500?
<p>My handleSecurityExceptions() method always returns a HTTP error status of 500 to the client when not requesting JSON (such as when requesting HTML). I am making a wild guess this is because I'm doing something wrong and causing another internal exception that's being swallowed but could be way off base. Uncommentin...
3
1,079