title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Binding custom control to parent datacontext property
<p>I have tried many of the solutions posed by similar questions but still cant seem to get this working.</p> <p>I have a custom TabControl called LayoutView (see below XAML) It uses a viewmodel called LayoutViewModel ( see below that {excluding converters}) </p> <p>By itself the designer displays fine (see below ima...
3
15,206
Processing french response taking time
<p>I have a stream as below .I am getting french response from http-api i see lot of time difference .I am using some message converter for utf-8.</p> <p>If the response from http is english I see that it process in 5 min for french its 20 min.Not sure if http-client or json processor taking time or json creation ...
3
3,513
No reverse match error. Reverse for 'user-profile' with arguments '('',)' not found
<p>I have created a messaging function on my website where logged in and guest users can send messages to other users. I have created an inbox for the logged in users to store these messages. When opening up a message from a guest (someone who doesn't have an account) I get an error: Reverse for 'user-profile' with arg...
3
1,242
Is thier a way to log custom statements in Cucumber Extent Reports 4 instead using scenario.write method
<p>I don`t want to use the Scenario.write method but at the same i need to log my custom statements in Cucumber Extent report.</p> <p>The Reason why i am asking this question is when i use the scenario.write method it prints all the scenarios statements to all the outputs in extent report as shown in the image attached...
3
9,434
How should I go about parsing a JSON response from an API with Alamofire and SwiftyJSON?
<p>I am trying to parse a JSON from an API using Alamofire and SwiftyJSON, but am having trouble trying to access the information in the JSON. I need to simply parse the JSON for an item called "ask_price": and also "time_coinapi" but I am not sure how I manage the response, or if I have to use a different method. here...
3
1,209
error while compiling line my comparator function i have written
<p>The comparator i have used shows me the error:</p> <pre class="lang-none prettyprint-override"><code>&lt;source&gt;: In member function 'std::vector&lt;std::pair&lt;int, int&gt; &gt; Solution::allPairs(int*, int*, int, int, int)': &lt;source&gt;:38:47: error: invalid use of non-static member function 'bool Solution...
3
1,066
Google map markers not removing upon checkbox action
<p>I was having some problem trying to filter the list fetched from database upon checkbox action and plot/clear markers onto map. Here is my checkbox declaration in HTML:</p> <pre><code>&lt;div class=""&gt; &lt;label&gt; &lt;input type="checkbox" class="js-switch" name="tags" value="3" onchange="filter...
3
1,182
cakephp: saveAll is not working
<p>The saveAll is not working can some one help me in finding what is the problem.I have included the controller's action, the array passed to saveAll and the model of it.</p> <p>The controllers action containing the saveAll looks like the following-</p> <pre><code>public function add_customer_order() { if ($this...
3
2,734
I have an issue with a non-static method
<p>I have a <code>Student</code> class with the following instance variables:</p> <pre><code>int code; String surname, firstname, major; </code></pre> <p>In the <code>main</code> method (in a second class), I created <code>Student</code> objects, and I added them to a <code>Vector</code>. In the class containing the ...
3
1,258
CSS only works fine after php execution and reload
<pre><code>&lt;?php session_start(); include_once 'villagedb.php'; if(isset($_SESSION['user'])!="") { header("Location: home.html"); } if(isset($_POST['btn-login'])) { $email = mysql_real_escape_string($_POST['email']); $upass = mysql_real_escape_string($_POST['pass']); $res=mysql_query("SELECT * FROM users WHERE ...
3
2,870
Error while running the command "npm install" while creating a RASA-NLU weather chatbot
<p>I am creating a RASA-NLU weather chatbot. This is the error that I get while running <strong>npm install</strong> and the folder &quot;node_modules&quot; doesn't get installed</p> <pre><code>(rasa_venv) PS E:\github\NLP_ChatBot\chatroom-master&gt; npm install npm WARN deprecated har-validator@5.1.3: this library is ...
3
3,963
wpf custom control send brush like TemplateBinding
<p>hi i created a custom control for button but there is problem in send Brush if you see down below i created before Radius and its work but the Brush is not. Note: It would be better if I put a picture to show the errors, rather than putting the code directly</p> <p><a href="https://i.stack.imgur.com/hcPTG.png" rel="...
3
1,647
Django+Nginx+uWSGI = 504 Gateway Time-out with pdf2image
<p>I try to run <strong>Django</strong> application using <strong>Nginx</strong>+<strong>uWSGI</strong>.</p> <pre><code>sudo apt update sudo apt install poppler-utils </code></pre> <p>I installed <strong>poppler-utils</strong>.</p> <p>And my app tries to convert uploaded pdf pages to jpg with <strong>pdf2image</strong>...
3
1,138
How to slide block after element disapear
<p>I would like to know if it's possible to make the block under the alert to make it slide when the alert message disapear ?</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 prettyprint-override"><code>f...
3
2,609
ctypes showing incorrect byte size
<pre><code>import ctypes from ctypes import * import sys class A(Structure): _fields_ = [("a",c_uint64), ("b",c_uint64), ("c",c_uint64), ("d",c_uint64), ("e",c_uint64), ("f",c_uint64), ("g",c_uint64), ("h",c_uint64), ("i",c_uint64), ("j",c_u...
3
1,221
How can set value in TextView in ListVIew row item?
<p>In ListView row item where is two TextView which is textview(name) and textview(mobile no), when i click textView(mobile no) then same value come again and again, but in list view every list giving correct mobile no.</p> <pre><code>public class CustomerDetails extends AppCompatActivity { ArrayList&lt;com.venue.ent...
3
4,263
JavaScript Compatibility View Issue
<p>I have a function that I have coded to throw an error message when a particular select doesn't have a value. The problem that I am having is that I have environment (when running from Netbeans) that sees this html value fine and works but when it is on the server it does not see the html and gives a value of "" and ...
3
1,078
WP not sending correct headers to download a file
<p>I have a WP plugin that sends a link to an email to download a file in hidden location. User selects a file, then a token containing the file ID etc. is written to a database, and a link is sent. Upon clicking the link (ex. mysite.com/thank-you/?id=asd687asd68as7d6a8sdd7sd768as7d6, the "thank you" page makes a reque...
3
2,425
Putting multiple plots on each page of a large pdf file
<p>I am trying to print dozens of ggplot boxplots to a pdf file. I want four plots per page of the pdf. How can i use a for loop to create the plots and end up with my desired format?</p> <pre><code>names_vec &lt;- colnames(raw_data) pdf(file = 'test1.pdf') for(i in names_vec) { print(ggplot(raw_data, aes(x = Grou...
3
1,259
In Tomee cxf is intercepting calls to struts - how can I stop requests to struts URLs being intercepted?
<p>Our application was previously running in Tomee 1.5.2 and it worked fine. It has a mix of some legacy struts code (referenced by URLs ending in .do), some new JSF code and some jax-rs Restful services.</p> <p>What I am getting is a 404 not found for the struts URL.</p> <p>I updated to Tomee 1.7.2 Plus, and so have...
3
6,129
Spring Boot use multiple DataSources in one Transaction
<p>My Setup is the following: </p> <p>I Have a Spring Boot 2.1.1 Application. For Connection Pooling Hikari is used.</p> <p>I would like to write one service which routes the READs to a READER database and the WRITES to a Master database in one transaction/method. </p> <p>So i want the following to get to work:</p> ...
3
1,385
Using nested loops to build array with unique values (PHP/XML)
<p>I'm using PHP to collect attributes from an XML file.</p> <p>Eg:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;menu restaurant="edible things"&gt; &lt;!-- Root Node --&gt; &lt;section category="Fruit"&gt; &lt;item&gt; Apple &lt;price variant="small"&gt; 2.50 &lt;/price...
3
1,232
[three.js]THREE.Geometry : can't apply textured material
<p>I created a hexagon with THREE.JS, it works with a basic material with a color, but i can't make it works with a texture... When i set up a textured material, the object isn't rendered at all.</p> <p>I had the same problem with a bufferGeometry, but i solved the issue by setting <code>geometry.addAttribute('uv'...<...
3
1,344
Can I display windows user controls inside IE8
<p>I have a legacy windows form application, which I would like to be displayed insider users' browsers (IE8) like a web application. An approach that I have been looking at is to create a windows form library (dll) and to show that in the browser. There are many web pages that tell me how to do this:</p> <ul> <li><a ...
3
1,626
how to recalculate php varaible and send back via ajax
<p>For a flat-file voting system, i use this php (in <code>index.php</code>) to calculate the counts:</p> <pre><code>$rating_file = 'rating/'.$file_id.'.txt'; // path to text rating_file that stores counts $all_lines = file($rating_file, FILE_IGNORE_NEW_LINES); foreach($all_lines as $line) { list($item, $num) = e...
3
1,255
compiling ffmpeg and chromaprint for android with success on some devices
<p>I am following the recommendations of this site:</p> <p><a href="https://bitbucket.org/phorton1/chromaprint" rel="nofollow">https://bitbucket.org/phorton1/chromaprint</a></p> <p>From the site I have copied the <code>multi-configure</code> and <code>multi-make</code> scripts for the ffmpeg and chromaprint libraries...
3
2,112
i need to get value on button click from dynamic control which was generated
<p>There have many controls are Generated I want to save value on button click which is dynamically generated on page,Can any one Help me to this. I am new in this field so i m using many types of code from code but it cant ...</p> <pre><code> protected void Page_Load(object sender, EventArgs e) { if (...
3
3,735
Newbie Lucene Problem with c# demo "The Type or Namespace 'StandardAnalyzer' could not be found"
<p>I'm trying to get the basic demo of Lucene.net (4.8.0-beta00012) to run.</p> <p><a href="http://lucenenet.apache.org/#quick-start" rel="nofollow noreferrer">http://lucenenet.apache.org/#quick-start</a></p> <p>I've created a new Forms App.</p> <p>Run <code>Install-Package Lucene.Net -Pre</code> and it's downloaded th...
3
1,849
Nested RecyclerView and ViewPager content wrapping and scrolling don't play nice together
<p>I have nested ViewPagers and RecyclerViews as depicted in the image:</p> <p><a href="https://i.stack.imgur.com/ggRnl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ggRnl.png" alt="enter image description here"></a></p> <p>Requirements:</p> <ul> <li>The first level ViewPager1 swipes from left t...
3
1,062
rails password authentication
<p>First I am very very new to rails. so bear with any of my noob mistakes. Still trying to find the best sources for reliable information. Many things are a little outdated. </p> <p>I was following the Rails <a href="http://ruby.railstutorial.org/chapters/beginning#top" rel="nofollow">tutorial</a> and working with pa...
3
1,400
Extracting text from span tag with no classes in BeautifulSoup
<p>I'm trying to extract data from a website for the purposes of finishing a small data analysis project. Here is the the HTML source that I'm dealing with (All the divs that I want to extract data from have the same structure exactly).</p> <pre><code>url = &quot;https://www.rystadenergy.com/newsevents/news/press-relea...
3
1,898
Parsing non-consistent json string in vba
<p>I am using Excel VBA together with the excellent <a href="https://github.com/VBA-tools/VBA-JSON" rel="nofollow noreferrer">https://github.com/VBA-tools/VBA-JSON</a> parser which converts a json string to a Dictionary to parse API responses from UPS.</p> <p>I am getting error messages when parsing the json responses ...
3
2,076
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session error launching the iOS app in Kobiton cloud
<p>While trying to execute the automation script for ios platform in kobiton I am getting the below error message:</p> <pre><code>org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities {app: kobiton-store:v355928, autoGrantPermissions: true, captureScree...
3
1,139
Rails - Saving two related models through nested forms
<p>I have two models one User, and UserProfile. UserProfile belongs to User, and User has one UserProfile. When user signup it is one form collecting all the information and information goes into two different models. I cant seem to achieve this. I used accepts_nested_attributes_for :user_profile on user model. Still o...
3
2,376
How to pass string from a text field (embedded in a table cell) in 2nd controller back to a label in 1st controller (also embedded in a table cell)?
<p><strong>Edit 1:</strong> I think I have figured out the problem, I just haven't been able to solve it. In SecondViewController.m where textFieldShouldReturn is defined, "if ([self.delegate respondsToSelector:@selector(passString:)])" returns false, since NSLog was not triggered.</p> <p><strong>Edit 2:</strong> Chec...
3
1,686
Custom Listview View NullPointerException
<p>I have a Custom SimpleCursor listView and Chronometer. I try to do When <code>Chronometer</code>(timer ) is 00:10 Draw color a row but its throw NullPointerException.</p> <p>Thank U for Helps Here is Code:</p> <pre><code>public class ListViewcursorActivity extends ListActivity { /** Called when the activity is fi...
3
1,469
recycler view shows redundant data after updating the list
<p>I am trying to create a news application. I have prepared an Adapter, recycler view, and a JSON parsing algorithm. When we reached at end of the recycler view parsing algorithm makes another request to get next items for recycler view to show. Everything is fine till here but when i set to adapter it shows redundant...
3
1,662
node_module error in ngrx store and effects
<p>I have like 30 errors in my console after installing <code>ngrx store</code> and <code>ngrx effect</code> and writing my <code>action</code>, <code>reducer</code> and <code>effect</code>.I tried deleting my node_modules, reinstaling all my packages and some suggestion from <a href="https://stackoverflow.com/questio...
3
6,737
Filter the first and current day of the month in R using lubridate and dplyr
<p>I am trying to filter the current day of the month and the first day of the current month using <code>dplyr</code> and <code>lubridate</code>. For some odd reason I can't seem to filter the first day of the month correctly. I'm only able to extract the current day of the month (<code>Date == Sys.Date</code>). Can an...
3
2,621
Passing argument from a fragment to its container activity
<p>I have two <code>fragments</code> with <code>time</code> and <code>date picker</code>. I need to send data chosen by the user from the fragment and pass them to to <code>fragments activity</code>, in order to combine data and send it to another <code>activity</code>. I used this solution <a href="https://stackoverfl...
3
4,965
Unable to Insert into Database in ASP.NET using C# - Stack Empty
<p>I am trying to insert user data into a database file using Microsoft Visual Studio. I have written a form using asp.net, added database to directory, and created c# command to insert data to database, however I am getting a stack is empty error.</p> <blockquote> <p>An unhandled exception was generated during the ...
3
1,504
Trying to get property with non-object in yii
<p>Im trying to get value from my database. But all the time yii tells me</p> <blockquote> <p>Trying to get property of non-object</p> </blockquote> <p>I'm sure I have this property in my controller, sending to in my view and then I want to show it. But I cant.<br> Below is my controller function, it's a part of my...
3
1,854
c# wpf datagrid not showing
<p>I am trying to list a rss feed on a form I can consume feed but unable to see the data on form. I am see nothing. except a black form. The RSS table is filled with the rss feed data. Data visualizer shows rss data loaded to the table. </p> <p>the xamal</p> <pre><code>&lt;DataGrid x:Name="RssGridView" Grid.Co...
3
1,464
Hibernate can not create table
<p>i am writing a simple code to test hibernate which contains main class,a model class and hibernate configuration file.but my log gets stuck after printing line </p> <pre><code>**Hibernate: drop table if exists USER_DETAIL** </code></pre> <p><strong>Model class:</strong></p> <pre><code> package com.test.hiberna...
3
2,489
why bottom navigation drawer fragment showing empty data
<p>I am developing news app and I have created bottom navigation with fragments and in topheadlinesfragment I am getting news data using retrofit but it is showing empty white screen below <a href="https://i.stack.imgur.com/KMgbn.png" rel="nofollow noreferrer">empty white screen</a></p> <p>below my MainActivity_kt wh...
3
4,732
Sorting 2 defaultdicts by one of the values
<p>I have 2 defaultdicts, in which I am trying to sort my results using the values from one of the defaultdict but I am having trouble doing that.</p> <p>My code is working, partially correct in the manner I am expecting it to be, however not when I tried to sort by the sizing, as you can see in <code>item_B_v</code>o...
3
1,889
findViewById returns NULL with imageView
<p>I have a <code>gridViewAdapter</code> class that creates a view when there is none and I set an Id to it. Here is the <code>getView()</code> section of that class:</p> <pre><code>@Override public View getView(int position, View convertView, ViewGroup parent) { // Try to reuse the views ImageView view = (Ima...
3
3,013
Redirect .htaccess through partial modification of the link in its middle
<p>please show me the right way. I`m trying to redirect </p> <p>from</p> <pre><code>example.com/home/&lt;anything&gt; </code></pre> <p>to</p> <pre><code>example.com/home-3/&lt;anything&gt; </code></pre> <p>It still goes very difficult to me with RegExp, moreover in <code>.htaccess</code> conditionals.</p> <p>Plea...
3
1,298
VBA to Click Dropdown Link in IE without Name/ID
<p>I'm trying to click a link on a company webpage through VBA. The issue is that the HTML doesn't have a Name or ID. I have seen many different scenarios on this site, and I have been attempting them, but I cannot seem to click this link.</p> <p>I cannot share the site because it is a company intranet site, but I wil...
3
1,054
how to set time of timepicker to countdowntimer?
<p>I am using timepicker to my app,now i am able to set time from timepicker and send it to next activity,now in next activity i am using countdown timer,now in my countdown timer i want to set that time and start timer,following is my code of timepicker and countdowntimer</p> <pre><code> submit.setOnClickListener(new...
3
1,316
Pausing an ongoing iterative process for user interaction in Kotlin-Android
<p>I've been working on a function that going to print given documents via a Bluetooth printer. After sometime, the client wanted to print multiple copies of each document and I've modified my existing code for that purpose. </p> <pre><code>&gt; var count = 5 &gt; for ((key, value) in printHashMap) { &gt; ...
3
2,116
How to update paginated dgrid periodically
<p>I am trying to display and refresh periodically some server data using dgrid and derivative of Request dstore. The data are paginated and needs to be updated periodically. As a first naive approach I tried to call Dgrid.refresh() with setInterval. However, that results in complete rebuilding of grid rows which visua...
3
3,225
AsyncTask not loading data properly.
<pre><code>public class HomeActivity extends Activity{ // public ArrayList&lt;User&gt; users1 = new ArrayList&lt;User&gt;(); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // ListView lv = (ListView) findViewById(R.id.user_crumbs_list); fina...
3
1,511
How to validate the reactive forms for dynamic input in angular
<p>I have create an reactive form with angular material. I have a select dropdown, So based on the dropdown selection. The input fields will change. So now with the below code. If i just submit it, It sending the array to my backend. If i enable the disable option to the button, If cannot submit since my forms has 8 in...
3
2,762
Organize images horizontally/vertically according screen size in center over background image
<p>In <code>&lt;body&gt;</code> <code>&lt;section&gt;</code> I have background image:</p> <pre><code>&lt;img src=&quot;img/background.png&quot; class=&quot;back-img&quot;&gt; </code></pre> <p>css:</p> <pre><code>.back-img { width: 100%; height: auto; overflow:hidden; } </code></pre> <p>like this:</p> <pre><code>&...
3
1,297
How to test (unit test) arrow functions in JS via Jasmine?
<p>I've done a small project "Notes" and now trying to test it using Jasmine. But since it's my first script using module style and imitation of the private functions, I can't understand how can I test the business logic of my script, since Jasmine doesn't see my arrow functions at all. Please help me to start my tests...
3
6,282
Option buttons don't reload page automatically in PHP, I cannot find the error in my code
<p>I am working on my PHP assignment and I want to use option buttons, which reload the page automatically when I choose between them. I tried to figure out what the problem might be, but I can't find the error in the code. Below is what I've done so far, but it doesn't work for some reason. </p> <p>This is my javasc...
3
1,793
Java Poker - comparing hands
<p>I probably have a bunch of other errors, but I just cannot figure out why my comparing of the hands isn't working. I can't get any sort of matches to count I know I can get into the two for loops, but I can't get into the:</p> <pre><code>if (currentHand1[i][1] == currentHand1[j][1]) { matches++; } </code></pre>...
3
2,322
Get data from file - Buffered Reader
<p>I would just have the id, the content and the hashtag and time of every tweet in a text file, and I dont know how to store infomration in lists of tweet, I created a tweet class as follows:</p> <pre><code> public class Tweet { private String type; private String origin; private String tweetText; privat...
3
1,636
Running an ASync task in a service
<p>I am building an app that will check data from a URL in json and display it in the UI. I have created a service that I want to run the Async task. The service works fine and runs fine, I just can't get the task to run. Any ideas?</p> <pre><code>public class Getmonitors extends AsyncTask&lt;Void, Void, Void&gt; { ...
3
1,762
MySQL JOIN Not returning correct row set
<p>I'm having an issue with a join query which I am running. For some reason I am only getting 59,596 rows returned instead of 68,058.</p> <p>I have tried various LEFT / RIGHT / INNER JOINS with no luck. I have double checked table CC and can confirm that there are 68,059 rows of data for the specified range. The deri...
3
1,533
indexoutofboundsexception by sending pictures over Socket
<p>I want to make a little programm that makes a live-stream for Desktop. It should be so that you send pictures to an echo-server and he response it to the clients. There you get be draw the Images. Side by Side. And so it is like a movie(or something like that). But I always get an indexoutofboundsexception. Where is...
3
1,397
Pulling Data from MS Access DataBase to DataGridView using Variable
<p>I am designing a C# Application that pulls Asset Information from an existing MS Access Database.</p> <pre><code>string conn = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=O:\IT\IT Hardware\HWInv.accdb"; string dbcmd = "SELECT tblInvCategory.Category, tblInvManufacturer.Manufacturer, tblInvModel.Mode...
3
1,181
Why are svg rendered tilted (Processing)?
<p>My aim is to remake the classic Freecell card game for Windows Xp on Windows 10 with Processing 3.<br> To do so I downloaded from <a href="https://totalnonsense.com/download/download-vector-playing-cards/" rel="nofollow noreferrer">here</a> a set of svg files that most resembled the old cards' look.<br> In my code I...
3
1,576
DEX error Android Studio - Execution failed for task ':app:transformClassesWithMultidexlistForDebug'
<p>I get this weird Error after adding a Spinner, it worked. I tried to fix some margin for it. Tried building it got this error</p> <p>Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. Duplicate zip entry [classes.jar:android/support/design/widget/CoordinatorLayout$Behavior.class]</p> <p>So,...
3
2,479
Software failing to install on Windows XP
<p>I have developed a C# software on Visual Studio 2015, using Visual Studio installer for the setup.</p> <p>One of our customers complained about being unable to install the software on Windows XP, immediately getting an error Windows "The installer was interrupted before VeriSTAR Lashing 3.0r3 could be installed. Yo...
3
7,729
Image is not converted from Uri to Bitmap image in UWP
<p>I have referred the below thread for combing multiple images as single image in uwp. <a href="https://stackoverflow.com/questions/23655074/merging-multiple-images">Merging multiple Images</a></p> <p>But the image is not properly converted from Uri to bitmap images for the tiles downloaded from below link</p> <p><a...
3
1,384
SpringMVC/JSTL/JPA Integration: update existing child element and add new child element to a parent entity using Spring MVC
<p>I'm new to SpringMVC and JPA. I'm doing a student project using these frameworks. In the project, I want to implement a JSP to update existing child element and add new child element to a parent entity. My solution worked. But I think there should be a more elegant or "standard" way to do it. Following is what my co...
3
1,482
error: function does not have any attributes rk4
<p>I have been trying to run the following code for long and every troubleshooting attempt has led me to another. The code is for solving the TOV equations and present a M-R graph for a neutron star. Please if anyone could help with it, it would be greatly appreciated.</p> <p>The code has been taken from the following ...
3
1,048
WPF UI control move position via data binding
<p>Please refer to the Model,ViewModel and View below. The Textblock control on the view is not getting moved/updated to new position on the screen once i have set the value of the databinding property in the corresponding ViewModel.</p> <p>Model:</p> <pre><code> private int _Text_1_Left; public int Text_1_Left ...
3
1,117
Trying to pass value to Broadcast Receiver from Activity crashes Application
<p>I am trying to pass a value to a Broadcast Receiver from Activity based on <a href="https://stackoverflow.com/questions/21422656/how-to-pass-value-from-activity-to-broadcastreceiver">this</a> question.</p> <p>However, doing so crashes my application. Here is my code of the Activity.</p> <pre><code>private void set...
3
1,502
Huffman with C , segmentation default (core dumped)
<p>I tried to implement huffman algorithm with C using a binary tree and 2 queues :</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; #include &lt;stdbool.h&gt; #define L 71/*Letters in the alphabet*/ typedef struct Node Node; struct Node { int frequency; char lette...
3
3,417
How to add Total amount of order form to Shopping cart?
<p>I have prepared online order form for a printing house. In the form everything works smoothly. But I need to put total amount of each order into shopping cart, because someone may want to order several print jobs. I am new in javascript, I tried to do it by the loop, but it adds only once. Any help will be appreciat...
3
5,157
ignoring continueWithTask method
<p>When you click a button, a photo from the gallery is taken (<code>addPhoto</code> method).</p> <p>In the onActivityResult method, the photo is uploaded to Firebase Storage with the name of the key (<code>donosId</code> variable) received.</p> <p>Then, <a href="https://firebase.google.com/docs/storage/android/uploa...
3
1,236
Ionic2 `service = new google.maps.places.AutocompleteService()` <= cannot find 'google'
<blockquote> <p>EDIT: adding <code>var google : any;</code> to the global scope of autocomplete.ts did not solve the issue, just deffered it by a bit.</p> </blockquote> <p>After dealing with this and following several forums for this error and implementing every npm install, both --save-dev to global.</p> <p>-I've inst...
3
1,897
Java character comparison not working as intended
<p>So I am moving around a 2 dimensional array of characters. Depending on what the character at some coordinates is I may or may not want to add an object to an array list. 'R' is a legal movement 'X' is an illegal movement.</p> <p>The following piece of code checks to see if it is within the bounds of the grid and t...
3
2,464
changed dom when added input field form php
<p>code for order.html.php:</p> <pre><code>&lt;body&gt; &lt;p&gt; Place order&lt;/p&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Item No.&lt;/th&gt; &lt;th&gt;Name&lt;/th&gt; &lt;!--&lt;th&gt;Mrp&lt;/th&gt;--&gt; &lt;th&gt;Price&lt;/th&gt; ...
3
1,943
Why is my directive not being seen in my AngularJS app?
<p>I have just created a directive in a file called <code>helloWorldz.js</code> file which looks like this :</p> <pre><code>'use strict'; angular.module('components') .directive('helloWorld', function () { return { restrict : 'E', template : '&lt;span&gt;Hello World&lt;/span&gt;' }; }); </c...
3
1,143
android dialog can not fund function for setPositiveButton()
<p>I have a listener for a specific item in my adapter. When I click it I want to show a dialog. My problem is that I can not get my dialog "builder.setPositiveButton("Cancel", new deleteRow());" to work. I can never get it to find any of my functions. How can I have my dialog run a function?</p> <p>In my fragment </p...
3
1,053
How to save ThemeData in flutter
<p>In my Flutter app the user can define a custom Theme by picking the colors from color pickers. After that they can save the ThemeData to a list and use it. The problem is that after the app restarts the ThemeData added by the user disappers. How can I store these ThemeData-s into the list to remain even after the ap...
3
5,378
How to make namespaces and external modules live together in typescript old projects
<p>Hy everyone,</p> <p>I'm struggling trying to find a way to solve the following problem:</p> <ol> <li>I have a web application composed by some plain js obtained from old typescript projects</li> <li>The old typescript projects uses namespaces and transpiles to plain javascript.</li> <li>I need to extend an old libra...
3
1,077
Symfony 3.4 - Doctrine ManyToMany association error
<p>I'm working on a simple Symfony API and I'm having trouble setting a relation between two entities. I have this two classes: Recipe and Ingredient. A Recipe can have many ingredients and an ingredient can be present in many recipes so I used a ManyToMany association.</p> <p>This is my Recipe class:</p> <pre><code>...
3
2,774
How to fix error with CountDownTimer in android app
<p>I'm trying to make a countdown in days, hours, minutes, seconds from a starting date and I'm getting the days wrong for some reason I cannot find.</p> <pre><code> String givenDateString = "2019-05-15T09:00:00"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); try { Date mDate...
3
1,367
Using different JBoss BOM in profiles
<p>I have a general question about the usage of the BOM from JBoss and WildFly. Is the a way to build a project for both JBoss 7 and WildFly 10 using a different profile?</p> <p>I tried to copy the BOM definition from WildFly into a profile like this:</p> <pre><code>&lt;profile&gt; &lt;id&gt;WildFly10&lt;/id&gt; ...
3
1,725
Where do I put javascript and html code in order to plot via Plotly.js in JavaFX?
<p>I am trying to use the following Time series-style plot in plotly.js in order to plot ratio vs position. I have already created JSON files which contain these variables i.e. ratio and position.</p> <p>I am confused as to how to incorporate the online examples with my case scenario because they talk about HTML and J...
3
2,623
Theano scan for fast computations on an array
<p>I am trying to use Theano to speed up code that is already implemented in numpy that sums the elements in an array. In numpy, the function looks like below</p> <pre><code>import numpy as np def numpy_fn(k0, kN, x): output = np.zeros_like(x) for k in range(k0, kN+1): output += k*x return output ...
3
1,128
Extracting information via XPath in PHP
<p>Just trying to extract some information from the AEC website (e.g. <a href="http://apps.aec.gov.au/eSearch/LocalitySearchResults.aspx?filter=3977&amp;filterby=Postcode" rel="nofollow">http://apps.aec.gov.au/eSearch/LocalitySearchResults.aspx?filter=3977&amp;filterby=Postcode</a>). The XPath query I'm running is "<co...
3
4,375
element getting out of bound of parent container
<p>I have a main container named <code>shelf2</code> and inside it, there are 2 sub-containers named <code>dynamicShelf2Items</code> and <code>rightAdCon</code>. The problem I have is I set <code>shelf2</code> to have a height of auto so it responds to the height of the containers inside it but currently, shelf2's heig...
3
6,661
PyGame Character not moving left
<p>I have following issue: The character is not moving left properly. I tried to debug and saw that in the drawfrantz function the moveLeft is not true but in the while game loop it is. I have tried a lot, like setting global and more but it seems simply not to work. i followed a yt tutorial, heres the link <a href="ht...
3
1,068
How to change a random turtle's color?
<p>I need to choose a person randomly from a list then infect them with the virus (changing their turtle color to red) when I press 'x'. Then I have to count how many people are infected.</p> <p>Currently, my code does not change any turtle's color and I also don't know how to count how many red turtle are there.</p>...
3
2,069
Update a range if the source cell is not blank, otherwise skip to next
<p>I can't seem to figure out one condition of my code. I'm also a beginner at VBA. In short, I have a slicer on one worksheet that contains my filter values, and I have a range of 19 cells that can be updated with a drop down list I setup using data validation.</p> <p>When a value is selected in ANY cell of the rang...
3
1,145
JAVA IceCreamProject couldn't run
<p>This project couldn't run.Please help me. <a href="http://pastebin.com/FX3JdUqb" rel="nofollow">http://pastebin.com/FX3JdUqb</a></p> <p><code>IceCreamFlavor printPurchasedIceCreams()</code> this method is just return all ice creams in ArrayList, below is my code:</p> <p><strong>IceCreamShopMain.java:</strong></p> ...
3
1,572
Google Visualization API number range controller sets low and high value to 0 when redrawing chart
<p>I'm using the Google Visualization API to plot some data on a site I'm building. On my actual site it's a very complicated arrangement of auto-generated plots and controls, but this problem is visible even with a very simple dashboard like that used in the API documentation demo. </p> <p>A <code>NumberRangeFilter</...
3
3,358
Prolog: "false" with query
<p>I'm trying to solve a 9x9 sudoku puzzle in SWI-Prolog,</p> <p>I've given the query which is the empty sudoku, but it doesn't give any errors it simply states "false".</p> <p>The code also compiles correctly.</p> <p>My code is shown below: </p> <pre><code>:- use_module(library(clpfd)). valid([]). valid([Head|Tai...
3
1,848
Decoupling Wix Component from ComponentGroup
<p>I'm trying to generate Wix source from a custom Visual Studio extension. As such, I'd like to be able to (somehow) just add one file (plus project reference) to the Wix Project, and have the new DLLs added in to the Product.</p> <p>As an example:</p> <pre class="lang-xml prettyprint-override"><code>&lt;Product I...
3
1,180
Dragging images with transparent background in Silverlight
<p>I have a Canvas (Puzzle) and a list of child png images (PuzzleParts) with transparent background. I need to drag these image only if mouse over non-transparent part of image. So, my implementation looks like this:</p> <pre><code> public class Puzzle : Canvas { public Puzzle() { B...
3
4,230
Display items in div on inline didnt worked
<p>I got a problem with create page. I created a website and cant figure it out. I paste my html code and also css code.</p> <p>What i want is header on top, then i will create several photos with information like photo on left, paragraph on right, then reverse and reserve, but i cant figure out my first block of infor...
3
1,039
ProcessBuilder with GIT command gives no result
<p>I try using the Process Builder to execute a git command. But it does not seem to work any command.</p> <p><code>git log</code> gives me the right result.</p> <p><code>git shortlog -s</code> but ends in a TimeOut!</p> <p>Both commands run in a terminal provide the correct result! I have tested on Win and Mac.</p>...
3
1,250
Getting all root elements that contain child element with certain string in xml
<p>Hi I am trying to return only a certain element from xml.. it is easier to explain like this:</p> <pre><code>&lt;HotelList activePropertyCount="129" size="20"&gt; &lt;HotelSummary ubsScore="820" order="0"&gt; &lt;hotelId&gt;121196&lt;/hotelId&gt; &lt;name&gt;ME Cancun - Complete ME All Inclusive&lt;/name&gt; &lt;ad...
3
1,064
Understand DispatchTime on M1 machines
<p>In my iOS project were were able to replicate <code>Combine's Schedulers</code> implementation and we have an extensive suit of testing, everything was fine on Intel machines all the tests were passing, now we got some of M1 machines to see if there is a showstopper in our workflow.</p> <p>Suddenly some of our libra...
3
1,557