title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
What is the correct .Net method to decrypt an android AES encrypted file
<p>I have encrypted a zip file in android using this method:</p> <pre><code>String s_InitKey = "1612211310164660"; String s_IvSpec = "MySecreteBytes00"; IvParameterSpec iv = new IvParameterSpec(s_IvSpec.getBytes("UTF-8")); SecretKeySpec key = new SecretKeySpec(s_InitKey.getBytes("UTF-8"), "AES"); Cipher cipher = Ciph...
3
1,951
unable to debug
<p>I am unable to debug. Not able to find where to close the db.</p> <p>My db helper class:: </p> <pre><code> private static final String DATABASE_NAME = "aviva.db"; private static final int DATABASE_VERSION = 1; private static final String TABLE_NAME_MY_DETAILS = "my_details"; privat...
3
1,900
Eclipse Milo: Reading and decoding a custom data type node from a Simatic S7-1500
<p><strong>The problem and what I suspect goes wrong:</strong> I am trying to read a custom data type node from a Siemens Simatic S7-1500 and decoding fails with:</p> <pre><code>Error running client example: max string length exceeded (length=1819042152, max=2097152) org.eclipse.milo.opcua.stack.core.UaSerializationExc...
3
1,153
Issues installing tidyverse package
<p>I'm an R user for some years now, and today, I opened a new R project, and tidyverse could'nt be installed.</p> <pre><code>install.packages(&quot;tidyverse&quot;) </code></pre> <p>The error message is :</p> <pre><code>Error : install of package 'processx' failed [error code 1] In addition: Warning message: 1: Dans s...
3
1,231
Column Expanding When Adding Text Bootstrap
<p>I have noticed a problem when running the following HTML Code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;head&gt; &lt;link rel=&quot;stylesheet&quot; href=&quot;https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css&quot; integrity=&quot;sha384-ggOyR...
3
3,664
I am not able to use viewpager inside scroll-view and tab layout without toolbar layout?
<p>I want to use </p> <pre><code>&lt;android.support.v4.widget.NestedScrollView android:id="@+id/scroll_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_below="@id/action_bar" app:layout_behavior="@string/appbar_sc...
3
2,046
Getting data out of a struct for use in a table view
<p>I'm unable to get a struct containing vars loaded from JSON into a format suitable for a table view</p> <p>I've been playing around with this code for a while, done plenty of reading but I'm just plain stuck. I can get data from the server fine and print it to the console. I notice that the data is printed as KEY: ...
3
1,182
How can I reduce time complexity of the following program?
<p><strong>Question:</strong></p> <p>Mark is an undergraduate student and he is interested in rotation. A conveyor belt competition is going on in the town which Mark wants to win. In the competition, there's A conveyor belt which can be represented as a strip of 1xN blocks. Each block has a number written on it. The ...
3
1,062
Using $http in a controller in AngularJS
<p>I have an AngularJS 1.2 app. My app has a controller that looks like this:</p> <pre><code>myApp.controller('MyController', ['$scope', '$rootScope', '$http', function ($scope, $rootScope, $http) { $scope.newItem_Click = function () { var modalInstance = $modal.open({ templateUrl: 'item...
3
1,825
Refresh a modified iframe
<p>I have a little app. that imite functions of a CMS, change texts, paragraphs and images.</p> <p>The page that will be modified are in a iframe, I do all the modifications and save this new texts and images, but not when I "click" on submit aparently refresh the page but I must to refresh again the page manually for...
3
1,651
Why does adding cmpb 0x20, %al prevent text output?
<p>I'm trying to do a quick test program in x86 assembly that takes a string and just outputs it again, that also detects if there is a space and displays some text. This program is mainly so I can figure out detection of the space character.</p> <pre><code>LC0: .ascii &quot;Enter a string: \0&quot; LC1: .ascii...
3
1,116
Google Jam test cases passes but submission shows "Wrong Answer"
<blockquote> <p>Note: The main parts of the statements of the problems &quot;Reversort&quot; and &quot;Reversort Engineering&quot; are identical, except for the last paragraph. The problems can otherwise be solved independently.</p> <p>Reversort is an algorithm to sort a list of distinct integers in increasing order. T...
3
1,153
How to make a bar-chart by using two variables on x-axis and a grouped variable on y-axis?
<p>I hope I asked my question in the right way this time! If not let me know! I want to code a grouped bar-chart similary to this one (I just created in paint): <a href="https://i.stack.imgur.com/L5qJw.png" rel="nofollow noreferrer">enter image description here</a> I created as flipped both it actually doesn't matter i...
3
1,534
CommandFailedError when running systrace on Android 6.0 device
<p>I want to capture a system trace, using the systrace tool.</p> <p>I have this device (not-rooted) : Pixi 4.5 Alcatel Android 6.0 (API 23)</p> <p>And I use Android Studio 4.2.2 and I have installed Python 2.7.18, as required (the version 3+ does not match).</p> <p>Here is the command line to view the list of availabl...
3
4,569
Material-UI, my Toggle Switch are so ugly
<p>I'm new with Material UI and I don't understand why my Toggle looks like that...<a href="https://i.stack.imgur.com/tXe16.jpg" rel="nofollow noreferrer">1</a> and <a href="https://i.stack.imgur.com/z8pGh.jpg" rel="nofollow noreferrer">2</a></p> <p>I don't have any compilations issues and my code is very simple :</p> ...
3
1,618
MNE volume source estimation with template MRI
<p>I want to do volume source estimation with template MRI provided by <a href="https://mne.tools/stable/index.html" rel="nofollow noreferrer"><code>MNE</code></a> library. All I have is EEG data which is sampled with <code>standard_1020</code> montage.</p> <p>I successfully plotted source estimation with template MRI...
3
1,037
Margin problem not set in tablet view and mobile view
<p>[This is mobile view<a href="https://i.stack.imgur.com/lKuyB.jpg" rel="nofollow noreferrer">This is desktop view[This is tablet view]<a href="https://i.stack.imgur.com/5nRHk.jpg" rel="nofollow noreferrer">1</a> </a>Hello, I make HTML and CSS icon box shadow hover effect. The desktop's resolution is perfect. But ta...
3
1,587
Analysis of the structure of Oracle SYS_GUID()
<p>I've got some data containing 14,800 GUIDs, which were generated by a third-party in an Oracle database using SYS_GUID(). The GUIDs only vary by a few bytes at positions 7-12, which appear to be some kind of counter.</p> <p>Example, with formatting to isolate the counter part</p> <pre><code>FC82E8-BAC381-7272E0438...
3
1,710
"Notice: Undefined index" - Wordpress plugin development
<p>I'm developing a Wordpress plugin, and have avoided using a setting page, simply because it always causes some kind of error. This time: "Notice: Undefined index". Can anyone spot any obvious mistake that I have done, but can't notice? Thanks!</p> <p>Here is the faulty code:</p> <pre><code>&lt;?php // Block direc...
3
5,873
Child Component is not able to trigger state change
<p>Simple React State Example. The parent component is App which starts out just showing a button, when the button is clicked it should render <code>AllRecipes</code> (this works and I am able to manage state of AllRecipes). Inside <code>AllRecipes</code> is a button which needs to trigger a state change to then furthe...
3
1,217
tensorflow RuntimeError: Coordinator stopped with threads still running: Thread-#
<p>When doing validation I am always running into "RuntimeError: Coordinator stopped with threads still running" Like some error message below:</p> <pre><code>Traceback (most recent call last): File "cli.py", line 78, in &lt;module&gt; main() File "cli.py", line 67, in main run.train(config, val_config=val...
3
2,166
JQuery with select boxes
<p>I'm trying to Display/Hide some select box options depending on the select values from another select boxes ("accType" will decide what to show in "otherBank" and selected "otherBank" will decide what to show in "otherBankBranch") </p> <h2>HTML markup as follows</h2> <pre><code>&lt;label&gt;Account Type&lt;/label...
3
1,378
Flyway configuration java.lang.ClassNotFoundException: org.flyway.core.Flyway
<p>I'm trying to connect flyway to my project which is using Spring 3.0.7.RELEASE version. I found some solution here how to do it: <a href="https://blog.trifork.com/2014/12/09/integrating-flywaydb-in-a-spring-framework-application/" rel="nofollow noreferrer">https://blog.trifork.com/2014/12/09/integrating-flywaydb-in-...
3
7,835
How to get delay between letters in PowerPoint application?
<p>I want to export animation as mp4 in PowerPoint and get the timeline of all animation.</p> <p>How do I get the delay between letters if the effect has <code>EffectInformation.TextUnitEffect as msoAnimTextUnitEffectByCharacter</code>?</p> <p>Most documentation for PowerPoint I have read, but no message for &quot;%del...
3
3,367
Precondition exception when intersecting polygons in CGAL
<p>I am using CGAL to compute the area of the intersection of two convex polygons. A short demo code for doing this was posted in the accepted answer to <a href="https://stackoverflow.com/questions/10502672/compute-intersection-area-of-two-polygons-with-cgal">this</a> question. However, when I modify that code to use t...
3
3,421
Angular JS - {{ }} not working but data-ng-bind display the scope
<p>I've an issue with Angular JS. I don't get why my data in the scope can't be displayed with the {{ }} but can be display if I use the directive : data-ng-bind.</p> <p>If anyone has an idea :</p> <p>Here's my HTML Code : </p> <pre><code>&lt;aside id="sidebar-left" class="sidebar-left" data-ng-controller="PortalCo...
3
1,760
Meteor: Lazyload, load after rendering. Best practise
<p>i have a Meteor Application which is very "slow" as there are a lot of API-Calls.</p> <p>What i try to do is to break apart the loading/calls.</p> <p>What i just did is:</p> <ul> <li>i have loading template via iron-router</li> <li>i waitOn for the first API-Call has finished</li> <li>then i start the next API-ca...
3
1,195
Why use Object.create inside this reduce callback?
<p>So while working on #19 of this fine tutorial - <a href="http://jhusain.github.io/learnrx/" rel="nofollow">http://jhusain.github.io/learnrx/</a>, I find that the exercise works without using Object.create. (See the commented-out lines)</p> <h3>1. So what is the point of creating that copy of the accumulatedMap? Oth...
3
1,369
In C++, how to use macros to define a vriable under a namespace
<p>Here is the case. I want to substitue <code>ComplexDouble</code> type and <code>Double</code> type to <code>ComplexFloat</code> and <code>Float</code> type in one of my files depend on a variables' value. An example here: Original code:</p> <pre><code>Tensor&amp; float_power_out(Tensor&amp; result, const Tensor&amp;...
3
2,306
Stack the same row in each layer of a 3D numpy array
<p>Hi is there a way to efficiently stack the same row in each layer of a 3D numpy array? I have an array like this:</p> <pre><code> a = np.array([[[&quot;a111&quot;,&quot;a112&quot;,&quot;a113&quot;], [&quot;b&quot;,&quot;b&quot;,&quot;b&quot;], [&quot;c&quot;,&quot;c&quot;,&quot;c&quot...
3
1,595
pending std::future get of std::async with shared_from_this argument blocks destruction of this
<p>I wanted to create a class that would represent a task that can be started running asynchronously and will run continuously (effectively in a detached thread) until a stop signal is received. The usage for the sake of this question would look like this:</p> <pre><code>auto task = std::make_shared&lt;Task&gt;(); tas...
3
1,455
RecyclerView OnClick resulting in NullPointerException
<p>I am using a RecyclerView to display information in a Fragment as a list with ImageViews and TextViews. I gave the ImageViews an OnClickListener to get the position and with that the drawable id to display the image in a larger ImageView. This works fine for all the RecyclerView rows which are displayed at the start...
3
2,847
laravel how to make a multiple filter using query in datatables using switch
<p>i have 5 filter , kampus,fakulti,program ,semester and status so each filter is always been filter with status it means the status filter will be the selection of switch case and the other filter will be condition in the switch case example :</p> <pre><code>$student = Student::select(&quot;*&quot;); if($student...
3
1,361
How to assign serial count in json array using Ruby?
<p>I want to assign serial counting to JSON array using ruby. Here is my example JSON</p> <pre><code>{ &quot;product_name&quot; : &quot;Prod 1&quot;, &quot;product_description&quot; : &quot;Prod Description 1&quot;, &quot;product_id&quot; : &quot;111&quot;, &quot;product_attribute&quot; : [{ ...
3
1,066
OroCommerce - Symfony: How to override Entity(Custom Customer Register Account)
<p>I’m trying to make a <strong>custom customer register form</strong><br> <br> And to do so, i’ve to override this 2 file:<br></p> <p>CustomerBundle\Layout\DataProvider\FrontendCustomerUserRegistrationFormProvider.php<br> and<br> CustomerBundle\Form\Type\FrontendCustomerUserRegistrationType.php<br></p> <p>So i’ve pu...
3
3,831
result by AJAX not selectable
<p>The following code will give me all records using AJAX request as intended. Unfortunately, I am not able to take one selected record into form. I just can select them, not take them(Look at my attachment, please). I assume some error in <code>templateResult</code> or <code>templateSelection</code>.</p> <p><strong>R...
3
1,382
Is it necessary to add SaveMode Delete, Update and Upsert for Spark jdbc source?
<p>Do you think it is necessary to add SaveMode for Delete, Update, and Upsert? Such as: </p> <ul> <li>SaveMode.Delete</li> <li>SaveMode.Update</li> <li>SaveMode.Upsert</li> </ul> <p>referring to the code: <a href="https://github.com/apache/spark/blob/47d84e4d0e56e14f9402770dceaf0b4302c00e98/sql/core/src/main/scala/o...
3
1,293
How can firebase users be displayed/ranked according to their distance away from each other with CLLocation?
<p>The page should list all users in the firebase database who are within 3 miles. Right now it just lists all the users. In addition to limiting the listing of users to those within 3 miles, it would be good to rank the displayed users, from closest to furthest.</p> <p>Below is code that already works to display all ...
3
1,414
How to hover the complete row in css?
<p>I have a screenshot as shown below which I have replicated in HTML, CSS and JS. </p> <p><a href="https://i.stack.imgur.com/eJFL6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eJFL6.jpg" alt="enter image description here"></a></p> <p>I have created the <a href="https://jsfiddle.net/nc2djn5p/31/...
3
1,390
iOS Autoresizing Cell Labels Sometimes Clipped
<p>I am writing an app (targeting iOS 10+, building with the iOS 10.3 SDK in Xcode 8.3.3) which displays a simple table view to the user. This table view is composed of a bunch of cells representing user-defined objects which have an optional title and mandatory (short) content. To display these, I am using <code>UILab...
3
1,112
Preventing onblur when selecting suggestion from Devbridge autocomplete
<p>I am using the Devbridge autocomplete jQuery plugin and am rather stumped about how to prevent the blur event from firing when selecting a suggestion. I am not strong in the ways of JavaScript so I hope someone can point me to where I went wrong.</p> <p>Here's the setup:</p> <p><strong>The Cities HTML (as rendered b...
3
1,144
Can not set text for JTextField from another class
<p>I have ran into yet another issue. I am trying to set the text of a JTextField from another java class, and it does not seem to work. </p> <p>I have tried the following:</p> <ul> <li>calling the setter from inside the GUI class to .setText with a String. WORKS!</li> <li>Setting the JTextField to some text so it is...
3
3,252
How to assign a filtered list to another list
<p>I need to assign a filtered list to another list, however I do not know the list structure that will filter, just know the parameter for the filter. It Only returns an SPListItemCollection and I need to return a SPList.</p> <p>Below follows method in which capture the list, I need to return a list, but filtered by...
3
1,547
Package siddhi extensions in one jar
<p>I am new to Siddhi, I originally used Eclipse for development and used &quot;package required libraries into generated jar&quot; to package all dependencies into one jar file, this way it worked fine.</p> <p>But when I try to use intellij for development, and use maven to package all the dependencies into one jar fi...
3
1,392
Python polar bar chart - Remove degrees & color one ring
<p>I have been trying to create a polar bar chart in python for quite some time. After some research I managed to get the results that I wanted. Well, almost. There're still a couple thing that I don't know how to do.</p> <p>I include my code:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt import nu...
3
1,581
Most efficient way to track execution time of methods in REST API? (Java Spring Boot app, Swagger)
<p>I have a Java Spring Boot API (Swagger) that I is having thousands of calls on it daily. I wanted to log the execution times of these methods for analysis. I used Spring AOP (Aspect Orientated Programming) to make a simple interface and concrete class that allows me to annotate my methods with @TrackExecutionTime to...
3
1,047
EntityFramework - Table per Type (TPT) Inheritance and Mapping Relationships with CodeFirst
<p>I have the following Entities which I am persisting using EntityFramework CodeFirst:</p> <pre><code>public class User { RedGroup RedGroup { get; protected set; } virtual ICollection&lt;GreenGroup&gt; GreenGroups { get; } int Id { get; protected set; } int? RedGroupId { get; protected set; } }...
3
1,186
Using a C# sha512 hash to communicate a php API
<p>I have a web app that want to use payment API that was developed with PHP. The php code for connecting the API works fine, and it is as below:</p> <pre><code>//set variables $api = 'https://voguepay.com/api/'; $ref = time().mt_rand(0,999999); $task = 'pay'; $merchant_id = '6619-0048444'; $my_username = 'atah'; $me...
3
1,503
RoR: How to get active_storage image to trigger a modal?
<p>I am trying to make an actiontext blob trigger a modal but it doesn't work.</p> <pre><code>action_storage/blobs/_blob.rb &lt;figure class=&quot;attachment attachment--&lt;%= blob.representable? ? &quot;preview&quot; : &quot;file&quot; %&gt; attachment--&lt;%= blob.filename.extension %&gt;&quot;&gt; &lt;% ...
3
1,623
How to adjust Table Tr and Td?
<p>Here, I M using <a href="https://datatables.net/" rel="nofollow noreferrer">jQuery Datatable</a> plugin, but my image <code>td</code> is taking too much width while the action-buttons <code>td</code> is allocated less width.</p> <p>As a result each button is overlapping the other.</p> <p>How can I assign the width...
3
1,538
SQLite read data from a Database
<p>I am trying to get all data from database and display. but it is not working. can anyone tell what is the problem with the code? thank you. here is the code</p> <p>DataBase.java</p> <pre><code>//onlly the method public List&lt;Appo&gt; getAllData(){ List&lt;Appo&gt; appos = new ArrayList&lt;&gt;(); ...
3
1,649
Smart rendering subviews in Backbone
<p><strong>tl;dr:</strong> When moving from page to page, change/destroy only these blocks that need it (not re-rendering whole page). And keep application router as simple as possible.</p> <p>I'm new to backbone and all of the examples to get started with it that I've seen were about small apps with a single page tha...
3
1,193
Android Center Crop Image Not working on device but working in Eclipse
<p>I have a list view with an image background for each list item. I am trying to set the src by downloading an image from a given url. I need to center crop the ImageView view so that the image occupies the entire screen (width and height). </p> <p>This is the XML for my list item: </p> <pre><code>&lt;?xml version="...
3
2,251
WP8 Binding DependencyProperty of a custom Button to another DependencyProperty of a UserControl not work
<p>Let's say I have two UserControl: <code>uc1</code> and <code>uc2</code>. <code>uc1</code> is derived from <code>Button</code>, <code>uc2</code> is derived from <code>UserControl</code>.</p> <p><code>uc1</code> has a <code>DependencyProperty</code> <code>isTextShow</code>:</p> <p>C#: </p> <pre><code>public stati...
3
1,188
Can sIFR and LavaLamp work together?
<p>I am having a heck of a time getting sIFR and LavaLamp to play nice together.</p> <p>A brief history of LavaLamp:</p> <p>LavaLamp: a jQuery plugin</p> <p>started up by</p> <ol> <li>load the LavaLamp and jQuery supporting JS files add the LavaLamp css</li> <li>create an unsorted list and add the class "lavaLamp" ...
3
1,106
react-native run-android gives err FAILURE:Build failed Where: Build file 'C:\...\node_modules\react-native-gradle-plugin\build.gradle.kts' line: 11
<p>i am new to react-native cli any time i run npm run android in my react-native project after opening the emulator and js server</p> <p>while it throws an error saying</p> <pre><code>FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\HP\Desktop\native1\node_modules\react-native-gradle-plugin\buil...
3
1,227
Create new SharedPreferences by onClick
<p>I'm new to Android Studio, please anyone can assist me with this problem?</p> <p>I want to create new sharedpref when user have done field in the required field.</p> <p>When he click the confirm button, automatically will be create new with new Name that with automatically Incremental.</p> <p>Edit : Here is my code,...
3
1,451
Issues with model bindings on Forms with several *ngFor
<p>I'm using a form where I have the following model repeated several times : </p> <ul> <li>I have a select where I can choose whatever type of <code>Bottle</code> I have.</li> <li>An Input where I can select the quantity of bottles for the selected type.</li> </ul> <p>This pattern is repeated for 2 arrays of Bottle ...
3
1,885
CPU bound code twice as fast on laptop as desktop
<p>I have a single-threaded Python 3 program that's CPU bound, the only IO is printing a couple of lines to output (no reading/writing of files).</p> <p>On my desktop machine (AMD Ryzen 1700x 3.8 GHz, 16GB 3000 MHz DDR4) it performs (consistently) at 3400 episodes/second where a run takes around 60 seconds.</p> <p>On...
3
13,436
R divide two dataframes by column
<p>I have two large dataframes (with 35,000 x 135 dim each) that also contain a lot NA values. What I want is to divide each column from dataframe A with the contents of the previous column of dataframe B. Specifically, for j = rows and i = columns, A(j,2)/B(j,1), A(j,3)/B(j,2), and so on. So, at the end there would be...
3
1,049
Table won't show column names and getting information from my database won't work
<p>I'm having issues importing data from my database as I get a NullPointer Exception when I don't see a problem with my coding. The column names in my table also don't show up when I use a 2 dimensional array which also causes problem when displaying data from the database. Is there a problem? Thank you in advance</p>...
3
2,295
How to implement SharedPreferences?
<p>How should I implement SharedPreferences inside <code>updateRunning(List&lt;TouchEvent&gt; touchEvents, float deltaTime)</code> in <code>GameScreen</code>?</p> <pre><code>SharedPreferences settings = getSharedPreferences("Prefs", 0); SharedPreferences.Editor editor = settings.edit(); editor.putInt("highscore", var...
3
1,787
Send a message in codeigniter
<p>I have a strange behaviour of a mail function with CodeIgniter that I try to explain but cannot figure out or reason for it.</p> <p>My function is like </p> <pre><code>function _send_email($type, $email, &amp;$data) { //original $this-&gt;load-&gt;library('email'); $this-&gt;email-&gt;f...
3
1,154
Issue with astropy conesearch in the SDSS DR8 for specific object
<p>I need to search this specific catalog for objects near this coordinate. I am trying to code it because not only do I have this object, but I have many others.</p> <p>Seting it up:</p> <pre><code>&gt;&gt;&gt; from astropy.vo.client import conesearch &gt;&gt;&gt; from astropy.coordinates import SkyCoord &gt;&gt;&gt...
3
2,121
iOS | SwiftUI | Undesirable result to exchange items between TimerView and TaskView through ContentView, @State isn't delivering results
<p>I have three Views exchanging information, ContentView, TimerView and TaskView. I used @Binding in TaskView to bring data from TaskView to ContentView, now I want to use that data to pass into TimerView.</p> <p>I created a @State variable in ContentView to store the data from TaskView, but when I try to use that @St...
3
9,082
black hat python chapter 7, I'm getting the error "github3.exceptions.NotFoundError:404"; can anyone see the problem here?
<p>I've been following a book called Black Hat Python 2nd edition and, when it comes to the task in chapter 7, I'm getting errors like the titular &quot;github3.exceptions.NotFoundError:404&quot; i have no idea on how to fix it and looking at other questions has, unfortunately, not helped me. I'm going to put here the ...
3
1,804
Scala/Play how to update main.scala.html HTML to show/hide text
<p>I am new to Scala and Play and am using the main.scala.html page -- which in my understanding, is used as a Single Page Application (SPA) framework. I hope this is a correct statement.</p> <p>I am attempting to switch a link/text from Login to Logout, based on a session variable that is set with the application. ...
3
1,087
Ontology on Protegè 4.2(ubuntu 12.04,64 bit)
<p>I'm learning how to build an ontology with protegè. I followed the tutorial about pizza but after creating class, subclass, etc when I use the reasoner Racer 2.0 it founds this problem:</p> <blockquote> <p>ParseException.encountnered: "error" at line 8,column 1 Was expecting one of: "nil"... "t"....</p> </b...
3
8,281
XSLT Convert each repetitive elements into unique records
<p>I need to create a unique record for each repetitive elements for Project and Skill. Tried with my known options in XSLT and I am not getting a right result. </p> <p>Could you please help me in generating XSLT for the below input XML.</p> <p>Input XML:</p> <pre><code>&lt;root&gt; &lt;Record&gt; &lt;Emp_ID&gt;2882...
3
1,360
I need to rewrite this line of code, and need help
<p>I am trying to compile this piece of code found below. However, I got an error saying "Initialization value must be constant expression."on every line of iteminfo_fields, weaponinfo_fields and projectileinfo_fields definitions, except at the last line of each "{NULL, 0, 0}" I am guessing it is from ITEMINFO_OFS(), ...
3
1,722
how to add hours and min in the text box in view to filter data
<p>i have two text boxes for from date and to date , i want to add two more text boxes for hrs:min, how to add two more text boxes and pass the values into my controlller so that i can filter the records according to the date as well as time.</p> <p>view</p> <pre><code> &lt;span style="float:left; padding:10px;"&gt;F...
3
1,845
Grouping SVG elements in D3
<p>I've implemented a car into my D3. Info graphic. However; It's quite large in my container and it's not animated. I'd like to group these elements then, scale it down, &amp; finally animate it to move in a loop or continuously. Basically make the car much smaller, where it could animate around the page freely.</p> ...
3
2,008
Unable to upload high dimension images in php
<p>I have developed a small image upload system with lot of customization like (renaming, thumbnail generating, validation).<br> All features are working perfectly except Images with high dimension (2000x2000 upwards).<br> I can't recognize the issue.</p> <p>Following is my <strong>upload.php</strong></p> <pre><code>...
3
1,866
Android overflow menu nullPointerException when clicking three dots
<p>The normal button works fine, but clicking the three dots button makes an exception</p> <pre><code>@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main_menu, menu); return true; } </code></pre> <p>my xml file</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"...
3
2,800
Unpermitted parameters: :email, :address
<p>I need a button such that when I click it, the name attribute must be be updated in user table and an address must be saved in address table. address table belongs to user table. Now my error is that when I click submit button i am not able to save the address but my name gets updated in the user table. Can anyone h...
3
2,573
How to trigger an OnClick event with persistent checkboxes through refresh
<p>I have a flight sim tracking map with a table that has some checkboxes for displaying flight plan, gps, and route. The checkboxes when click trigger an onclick event that adds or removes layers from the leaflet map to display that data. The map auto refreshes every 2 minutes and I'm trying to see if I can make any ...
3
1,270
Using site_prism with dynamically loaded fields
<p>I’m wrestling to get a test running where I am adding elements dynamically to a page. The adding is done with javascript using the cocoon gem. Here’s a picture of the page. <a href="https://i.stack.imgur.com/y2mv1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y2mv1.png" alt="screen shot"></a> Se...
3
1,342
Stack position not accurate
<p>I want to add red blinking dot on the container when it is tapped, but the dot position is not accurate. How to fix?</p> <p><strong>MyApp</strong></p> <pre><code>import 'package:flutter/material.dart'; import 'blinking_dot.dart'; void main() =&gt; runApp(MyApp()); class MyApp extends StatelessWidget { @overr...
3
1,300
Why spritebatch.Draw shows blank output?
<p>In my code below, I think it's correctly done. But idk, the image called by _bg is does not shown up. The screen only show White. Weirdly, there is 0 error message when I run it.</p> <p>(The RenderTarget2D is for default-ing my view into landscape mode)</p> <pre><code>using Microsoft.Xna.Framework; using Microsoft...
3
1,926
data.table, filter >= median per group and keep two lowest
<p><strong>Situation &amp; Goal</strong></p> <p>I'm having a large table that looks like (simplified):</p> <pre><code>|MainCat |SubCat | Value| |:-------|:------|-----:| |A |Y | 50| |A |Z | 60| |A |ZZZZ | 80| |A |XX | 90| |A |X | 100| |B |XYXY | ...
3
1,689
React component not detecting change in redux state
<p>I'm doing a chat service.</p> <p><a href="https://i.stack.imgur.com/0VbBV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0VbBV.png" alt="enter image description here" /></a></p> <p>Everything is working fine, expect the following functionality :</p> <ul> <li>when a new message comes, I want the c...
3
1,249
alert message from server to client
<p>i have now a big doubt, in my j2ee application i do some validations in the class where i do the consult in the ddbb, my problem is that in some case i need to send an alert message to the client, but i think that this is impossible, the problem is that i can not do the validation in the from part or in the servlet ...
3
5,612
"Bus Error" and "munmap_chunk(): Invalid Pointer" in Fortran 95
<p>I'm working on a python project which calls a fortran subroutine via f2py for efficiency reasons.</p> <p>When I execute the code, it fails at seemingly random (non-consistent) points with Segmentation Fault errors. Using the <code>faulthandler</code> Python library, I have narrowed my search down to a <code>Bus Err...
3
1,077
What is the correct way to correctly visualize a component React in top of another?
<p>I'm trying to properly render my different components with the HTML/CSS sidebar with React Routes and Apollo.</p> <p>I have a sidebar that correctly renders to the left of the screen and a little navbar on top of it, the space for the component is not being blocked by any css property. </p> <p>The expected output ...
3
1,183
PHP in_array match search value to array list
<p>I have a search function on my page, where user can able to search US states to find property. However, in my database record, abbreviation only was set on each state name. So I download a copy of US states in array list format.</p> <p><strong>Code Fig. 1</strong></p> <pre><code>$searchStates = array( 'Alabama...
3
1,681
Embedded fonts in embedded CSS not rendering unless Response.Write is called
<p><strong>TL;DR:</strong> Embedded resource fonts, referenced in an embedded resource CSS file with "PerformSubstitution = true", are only loading and rendering when Response.Write("<em>anything</em>") is called in the page life cycle. Affects all browsers tested (Firefox, Chrome, IE).</p> <hr> <p>We frequently use...
3
2,627
Spring MVC No mapping found for HTTP request with URI /x/ in DispatcherServlet
<p>I've seen this post with no solutions. I'm trying to run a Spring MVC tutorial but for some reason I'm not able to get the mapping in my servlet to call my home.jsp found in /WEB-INF/jsps directory. My context root is set to spring in Eclipse Web Project Settings. The error I'm getting is:</p> <pre><code> INF...
3
2,122
Retrieving data from online DB
<p>I've got a simple database out on my GoDaddy account and I'm trying to retrieve data from it. I've set up a simple php file out on my account and can call it directly from a browser and it shows the retrieved data just fine. You can see it/run it here:</p> <pre><code>http://thunderbirdtechnology.com/SnapVest/php/Sn...
3
1,390
Quanteda: How do I create a corpus and plot dispersion of words?
<p>I have some data which looks like this:</p> <pre class="lang-r prettyprint-override"><code> date signs horoscope newspaper &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; 1 06-06-20~ ...
3
1,255
Unable to use "electron-renderer" webpack target with some packages but "web" target works?
<p>I'm developing an Electron application with the following additional setup: TypeScript, React + Three.js + Pixi.js for renderer process, Webpack + Babel (React and TypeScript presets). My problem is that I am able to import React and Three.js into my renderer process code fine but cannot import Pixi.js.</p> <p>For i...
3
2,086
What is the use of cstmt.registerOutParameter(2, Types.VARCHAR);
<p>I'm using a Stored Procedure(InOut).. im little bit confused with the line cstmt.registerOutParameter(2,Types.VARCHAR);//why we write registerOutParameter and is it necessary to write the data type of that parameter like Types.VARCHAR</p> <p>My Stored Procedure</p> <pre><code> CREATE DEFINER=`root`@`localhost` PRO...
3
1,398
Angular Filter Issue - Property filter does not exist on type
<p>I have an Angular 7 App with Laravel as the Endpoint. In it I created a filter. When I serve on the Local System it works perfectly. The issue occur when I tried to run:</p> <blockquote> <p>ng build --prod</p> </blockquote> <p>It generates this error:</p> <blockquote> <p>src\app\components\bulk-sms-outbox.com...
3
3,461
Modal window with Partial View (ASP.NET MVC)
<p>I have modal window in my View, it's displaying by button.</p> <p>View for modal window is Partial View</p> <blockquote> <p>Here is code of Partial View</p> </blockquote> <pre><code>&lt;script src="~/Scripts/jquery-3.1.1.js"&gt;&lt;/script&gt; &lt;script src="~/Scripts/jquery-ui-1.12.1.js"&gt;&lt;/script&gt; &l...
3
1,567
Google App Engine - How do you persist Google User type with Objectify?
<p>Google states that the the Google App Engine Datastore support the following types.</p> <p><a href="https://developers.google.com/appengine/docs/java/datastore/entities#Java_Properties_and_value_types" rel="nofollow"><strong>Java Properties and value types</strong></a></p> <p>Among these is <code>com.google.appeng...
3
1,096
Why isnt my iOS data persisting with NSKeyedArchiver?
<p>Im just working on what should be the "finishing touches" of my first iPhone game. For some reason, when I save with NSKeyedArchiver/Unarchiver, the data seems to load once and then gets lost or something. </p> <p>I'm trying to save 2 objects with the same archiver: an <code>NSMutableDictionary levelsPlist</code>, ...
3
1,410
Trigger ngInfiniteScroll correctly when using a scrolling table
<p>I have a table inside a bootstrap-modal which has overflow set to auto so that it scrollable. However I need to load a lot of data so I would like to implement lazy-loading using ngInfiniteScroll. I have tried using the infinite-scroll-container attribute but it's still triggering constantly. Here is a code-snippet:...
3
1,106
box-sizing x IE7, the last battle
<p>I've been searching through the web for a solution that can viabilize box-sizing in the IE7 (I know, the year is 2014, but the project (therefore the clients) still demand this). I really need box-sizing because the entire project is responsive.</p> <p>I found this <a href="https://github.com/Schepp/box-sizing-poly...
3
1,462
How to include kernel constraints in Tensorflow eager conv2D?
<p>I'm having trouble using <code>kernel_constraint=maxnorm(3)</code> within keras when using Tensorflow eager execution. This works fine when not using the standard <code>Sequential</code> method outside of eager execution, but seems to fail with an error here (it seems to be because of a multiplication step <code>*=<...
3
2,231
How to place profile picture image on that place in Android?
<p>In my app, I want to put an image on the place where a user image is selected. In my fragment, I have one image view and one button, when I select an image from the gallery I cannot place the image on the Image View.</p> <p>Here is my code:</p> <p>Profile Fragment:</p> <p><div class="snippet" data-lang="js" data-...
3
1,716
VueJs: Wrapping el-select: list elements added 3 times during DOM refreshes
<p>I've encapsulated some of the excellent <a href="https://element.eleme.io/2.8/#/en-US/component/installation" rel="nofollow noreferrer">element-ui</a> components. Since I generally use the same settings all over the place. Plus I wanted to have cleaner code. All are working OK, except the <code>el-select</code> wher...
3
1,596