title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
CUDAfy.Net / OpenCL, struct containing byte array results in non-blittable exception
<p>Ok, so I'm using CUDAfy.Net, and I have the following 3 structs:</p> <pre><code>[Cudafy] public struct Collider { public int Index; public int Type; public Sphere Sphere; public Plane Plane; public Material Material; } [Cudafy] public struct Material { public Color Color; public Texture...
2
1,346
How to use ApcuCache with Symfony, Doctrine ORM and DoctrineCacheBundle
<p>before i was stuck with this problem the project was running on PHP5.6 on SF2.6.</p> <p>now im using PHP7.1.20 with SF2.8. i installed apcu along with apcu_bc inside my docker container and enabled the apcu php module.</p> <p>now the error is:</p> <pre><code>UndefinedFunctionException in ApcCache.php line 35: Att...
2
4,625
RESTful Web service json responses return null in java
<p>I'm new to Android and Web Services programming using Java and I've been having issues connecting my android app to my java web service. I've deployed the web service on tomcat and it's connecting on my phone browser but the HttpClient returns null each time I try connecting from my Android app.</p> <p>Here is my s...
2
1,533
radio button do not get unchecked on page reload
<p>i have some radio buttons and page reload button in my html page </p> <pre><code>&lt;body&gt; &lt;div id="innerContainer"&gt; &lt;div style="height:auto;float:left;width:auto;"&gt; &lt;input type="text" id="wordfour" value="peace" readonly/&gt; &lt;input type="radio" id="four"/&gt; &lt;/div&...
2
1,828
Why do I get -38 error, while trying to insmod a kernel module probing do_fork?
<p>I am trying to <code>insmod</code> a jprobe module to a rooted Android phone:</p> <pre><code> #include &lt;linux/kernel.h&gt; #include &lt;linux/module.h&gt; #include &lt;linux/kprobes.h&gt; /* * Jumper probe for do_fork. * Mirror principle enables access to arguments of the probed routine * from the prob...
2
1,029
How to lookup by row and column > column names?
<p>I am thinking how to lookup <em>time</em> data by University name (first row: <code>A</code>,...,<code>F</code>), Field name (first column: <code>Acute</code>,...,<code>En</code>) and/or graduation time (<code>time</code>) in the following file <code>DS.csv</code>. I am thinking <code>dplyr</code> approach but coul...
2
1,251
SOLVED: Getting onTurnError when sending adaptive card to MS Teams using Bot Framework SDK 4
<p>I'm developing a bot using <strong>Bot Framework SDK 4</strong> with <strong>Node.js</strong> as an <strong>MS-Teams</strong> app. The bot is properly registered in Azure but hosted locally with Ngrok forwarding for testing purposes.</p> <p>The goal of the bot is to do external requests to an api and then populate a...
2
9,156
Primeng p table value change event
<p>I am trying invoke the method when any editable cell value is changed on the primeng p-table. I tried to use onEditComplete event but it will fires only when I edit the cell and press enter. When I edit the cell and move out the mouse it is not firing. Can anyone suggest what is the right event I am supposed to add ...
2
1,052
Didn't find class "LinearLayout" on path: DexPathList for Samsung devices only. (App store build)
<p>We have had an app on the play store for a short amount of time, but none of our developers use Samsung devices, so we haven't been able to test on them. We shared with some Samsung users today, and when they install the app, it crashes immediately without opening. I have received several crash reports through Crash...
2
1,308
iTextSharp retain named destinations and bookmarks after writing a new document
<p>I have a method that fixes my document so it opens on Page Level Zoom, the bookmarks are retained but I can't seem to keep my named destinations (anchors) in my new document. I commented in my method what I thought would fix the problem, I used the code before in another method.</p> <pre><code>private static void F...
2
2,126
How do I get the camera2 api to work a second time?
<p>I'm using Xamarin/Android (not Forms), trying to integrate the camera2basic api sample into my project. <a href="https://developer.xamarin.com/samples/monodroid/android5.0/Camera2Basic/" rel="nofollow noreferrer">https://developer.xamarin.com/samples/monodroid/android5.0/Camera2Basic/</a></p> <p>I changed nothing i...
2
2,150
ValueError: Cannot assign "4749890231992320L": "Student.user" must be a "User" instance. (Django + custom models)
<p>I'm having issues with using <code>Model.objects.get</code> with a custom model that includes a standard Django user as one of the fields. Here are the basic attributes:</p> <pre><code>class Student(models.Model): user = models.ForeignKey(User, unique=True) school = models.ForeignKey(School) isHead = mo...
2
1,818
java.lang.NoClassDefFoundError: rx.subjects.PublishSubject
<p>I've added Adobe creative SDK into my project and now im getting an error when im trying to move to Edit image function.</p> <pre><code>FATAL EXCEPTION: main java.lang.NoClassDefFoundError: rx.subjects.PublishSubject at com.adobe.creativesdk.aviary.internal.account.AdobeAccountConnec...
2
8,119
GridView items are too small - Android
<p>I am following <a href="http://www.androidhive.info/2012/02/android-gridview-layout-tutorial/" rel="nofollow noreferrer">this tutorial</a>, it is very simple, and yet my GridView images are much much smaller than the one in the tutorial. Does anything stand out as wrong code? Below I've included my main activity, my...
2
1,823
ajax changes target attribute on multipart/form-data form
<p>When I try to render a component with f:ajax inside a <strong>multipart/form-data</strong> form, the <strong>target</strong> attribute of the form gets changed to <strong>JSFFrameId</strong>. Is this a bug?</p> <p>Here is a sample code when this occur:</p> <pre><code>&lt;h:form enctype="multipart/form-data"&gt; ...
2
1,393
Modal content override by data-remote in Twitter Bootstrap
<p>I'm trying to show a remote content inside a <code>modal</code> using Twitter Bootstrap with this code:</p> <pre><code>&lt;ol class="breadcrumb text-right"&gt; &lt;li&gt;&lt;a data-target="#modal" data-toggle="modal" data-remote="/app_dev.php/resetting/request" href="#"&gt;Forgot password?&lt;/a&gt;&lt;/li&gt; ...
2
1,764
Docker daemon crashes on EC2 instance
<p>So, I'm updating a cloudformation template so that it uses the Amazon Linux 2 AMI optimized for ECS [amzn2-ami-ecs-hvm-2.0.20190709-x86_64-ebs (ami-0fac5486e4cff37f4)]. Previously I was using ami-00129b193dc81bc31 which is an Amazon Linux 1 container.</p> <p>I initially found that simply changing out the AMI meant ...
2
1,174
Java Multi-threading prevent two functions running at same time
<p>I am creating a multi-threaded server and I created a class to manage users, but I noticed that my UserManager class could probably cause errors when one thread is reading the file and other is writing to the file, how to prevent it?</p> <pre><code>package server.questiongiver; import java.io.BufferedReader; impor...
2
2,159
PHP MVC - Where and when to instantiate and pass the User object for use in all views?
<p>After authentication, where and when do I instantiate and pass the User object, to use in all my views?</p> <p>My logic is to create a <code>new User</code> in my <code>Login</code> controller, after authentication. But how do I use that object and its data in all of my views, after being redirected to the secured ...
2
1,054
python: urllib.request.urlopen not working
<p>I have a problem with urllib request because it throws this error:</p> <pre><code>HTTPError: HTTP Error 500: Internal Server Error </code></pre> <p>the code I am using is this:</p> <pre><code>from urllib.request import urlopen from bs4 import BeautifulSoup import ssl # Ignore SSL certificate errors ctx = ssl.create_...
2
1,276
ValueHelpDialog error adding element with duplicate id
<p>The first time I open die ValueHelpDialog and chose an item there are no errors. However when I open the dialog again and click on the same entry I get the following error:</p> <blockquote> <p>Uncaught Error: Error: adding element with duplicate id 'EQ5IPAKCZJMZR' at constructor.x.registerElement (Core-db...
2
2,788
Programming a GUI with resizable components using Java.swing
<p>I'm supposed to program a GUI. Every component in this GUI has to have the possibility to be resized dynamically. </p> <p>So far I worked with GlassPane and ContentPane, added a JPanel and on it a button. When clicking the GlassPane gets the event, analyses the underlying component, creates a new handle for this sp...
2
1,289
Converting Future[SomeObject] into json
<p>I'm using scala and writing my domain objects to json. I use Play's Json Combinators like this:</p> <pre><code>implicit def opensHighlights: Writes[Option[OpensHighlights]] = ( (__ \ 'header).write[String] and (__ \ 'topDeviceForOpens).write[String] and (__ \ 'percentage).write[String] and (__ \ '...
2
1,045
How to insert value of input text value when radio button is checked in PHP?
<p>I creating a short question form and I want to insert the value of input text when the radio button is checked. Currently I can only insert the value of radio button but not the value of my input text. How can I do this ?</p> <p>HTML code:-</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;lin...
2
3,135
Clicking on a div that contains span, doesn't trigger onclick event - React
<p>I have a div, and inside I am rendering spans based on some conditions. If the component has some children, I'd like this div to expand. It works fine if I click on this div on an area outside of the inner span. </p> <p>An example, is the following <a href="https://i.stack.imgur.com/1zjlY.png" rel="nofollow norefer...
2
1,055
keras.callbacks.Tensorboard doesn't work in Tensorflow eager execution
<p>I've been trying to visualise a simple model in Tensorboard. The model is build in Tensorflow Eager Execution mode, using keras.</p> <p>When fitting the model I get the following error:</p> <pre><code>&gt;&gt;&gt; history = model.fit(x_train, y_train, epochs=1, batch_size=BatchSize, callbacks=[tensorbrd]) Tracebac...
2
1,337
android.database.sqlite.SQLiteException: syntax error (code 1)
<p>I try to create 2 table in a database, but I get next sintax errors:</p> <pre><code> FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapplication/com.myapplication.MyActivity}: android.database.sqlite.SQLiteException: near "Details": syntax error (code 1): , whil...
2
5,128
Maven does not copy spring jars in WEB-INF/lib folder
<p>I have a multi module maven project : <code>parent-proj</code> which two submodules : <code>child-dao-proj</code> and <code>child-web-proj</code>. <code>child-dao-proj</code> is a maven java project while <code>child-web-proj</code> is a web project. In the pom parent project, I declared all the required dependenc...
2
5,395
Refresh GridView in xamarin.forms xaml
<p>I have a GridView and each tile contains user-specific details hence I would like a refresh on this view if the user's details had to change while using the app. I've tried the following approach by adding a refresh for one of my tiles but this doesn't work. Is there any other way to achieve this for the whole gridV...
2
2,929
Setting unknown property: yii\validators\NumberValidator::0
<p>I try to call a setting form, which shows input forms for saving data into price database.</p> <p>My model throws the above Exception during rendering:</p> <p><strong>Unknown Property – yii\base\UnknownPropertyException<br> Setting unknown property: yii\validators\NumberValidator::0</strong></p> <p>error in line of...
2
1,366
Negative value in edittext
<p>conversion is other class, I'm working in <code>MainActivity</code>;</p> <p>when i clear edittext and then enter "-" then it generates error, but when i enter some value and then at first position of edittext then it does not generate error, plz help m attaching my error log with it. </p> <pre><code>Conversion co...
2
1,772
pcntl runs the same code several times, assistance required
<p>I am using pcntl in order to speed up a quite heave CLI php script, that consists mostly of a class, that is in charge of sending all of the auto-emailing on my application.</p> <p>My goal is as following: I want to assign each process to a certain task, within a foreach loop, the implementation I've used is the on...
2
1,460
How to avoid cascading error messages
<p>I'm trying to design an application error handler that resolves any unhandled exceptions, but there are some cases of undesired behaviour that I can't seem to get around.</p> <p><code>Application_DispatcherUnhandledException</code> will get called whenever a thread outside of the UI runs into trouble. This will in ...
2
2,556
Express 4 app doesn't work in Azure when deployed via Visual Studio
<p>I have a node js express app generated from Visual Studio 2017 Basic Azure Node.js Express Application. I assume all the configuration required for Azure deployment is set in the Web.config file that comes with the template, but i am getting this error after Azure publish:</p> <blockquote> <p>iisnode encountered ...
2
1,919
sizing problems embedding matplotlib figure in wxpython GUI
<p>I have some code that generates a plot. This code was written using pylab's interactive mode, but at this point I need to re-write the code so that I can embed the plot into my wxPython GUI. The problem is, the figure shows up squished down into a small default size that I can't seem to change. The frame can be m...
2
1,157
Sign Out From Google plus Account Not Working in android, Showing Null Pointer Exception
<p>I am using Google plus login in my android app its Working Fine.</p> <p>While Clicking logout Button from any other intent Showing Null pointer Exception.</p> <p>also While click login button directly going to my next page .not in sign in page.</p> <p>but Logout from Demo Application Its working fine.</p> <p>I H...
2
3,320
Trouble running a background service in react native
<p>This is my very first post here, so please don't blame me if I'm not as complete and clear as I have to be.</p> <h1><strong>The issue</strong></h1> <p>I am new to React native and I recently began to develop a react native app which could read my incoming SMS's aloud. I already achieved to retrieve the incoming me...
2
4,367
Cannot fix the null 'key' argument to get graph to generate
<p>I have a graph that will display a comparison between quotes and invoices linked to an employee number within a certain time period. When I run the application, I get this infamous error message:</p> <blockquote> <p>java.lang.IllegalArgumentException: Null 'key' argument. at org.jfree.chart.util.ParamChecks...
2
1,136
React Native init does not create Xcode project
<p>When I run <code>react-native init application-name</code>, no XCode project gets generated. </p> <p>The <code>node_modules</code> dir and <code>package.json</code> file is generated and <code>npm install</code> is run, but immediately after the 'npm dependency graph' is printed, it stops. </p> <p>The last line of...
2
1,228
Attempting to show multiple checkboxes using more than one column HTML PHP
<p>I have successfully managed to return all the 'tags' from my MySQL database table into checkboxes so the user can select a few.</p> <p>Currently it is displaying as one long column which isn't very efficient as the modal screen size is quite small. I was wondering if there was a way to break it up and display it in...
2
2,280
RESTful Web Service with Jersey and Apache Shiro
<p>My first attempt at developing a simple authentication based REST services. I am trying to develop a RESTful web application using Jersey on Tomcat 8. I am using Apache Shiro for session management and authorization. Only HTTPS is supported.<br> All services require authentication, neither guest nor anonymous access...
2
1,138
Adding roles to users in team area in RTC
<p>I need to add users ( users are already present in repository. I only need to add them.) and roles from a CSV file to team areas. Project area and Team Area already exists.I could successfully add users but not the roles from csv file. </p> <p>The CSV file format is :</p> <pre><code>Project name,Team Area name,Mem...
2
1,731
Update selected row values in DataGridView through textbox using LINQ C#?
<p>I have a form. Which contains 2 tab. </p> <ol> <li>First Tab is for instance <code>Team1</code> info, where you can select player from <code>datagridview</code>. Selected player's info will populate in designated <code>textboxes</code>.</li> <li>In tab 2 <code>Team2</code>, and exactly same concept.</li> </ol> <p>...
2
1,388
error: no matching function for call to ‘get(long unsigned int*&, long unsigned int&)’ with union_set
<p>This code</p> <pre><code>table_edges[ this_relationship ] = boost::add_edge( table_vertices[ string( foreign_keys[i]["parent_table"].c_str() ) ], table_vertices[ string( foreign_keys[i]["child_table"].c_str() ) ], this_relationship, rg ).first; ds.union_set( table_vertices[ string( foreign_k...
2
2,864
Exposing bare metal kubernetes cluster to internet
<p>I am trying to setup own single-node kubernetes cluster on bare metal dedicated server. I am not that experienced in dev-ops but I need some service to be deployed for my own project. I already did a cluster setup with <code>juju</code> and <code>conjure-up kubernetes</code> over <code>LXD</code>. I have running clu...
2
2,806
How can I stop radio stream when navigating in Flutter?
<p>I'm working on this flutter radio streaming app that currently works.I'm using <code>AnimatedIcons.play_pause</code> to start and stop the radio stream. Currently if I navigate to another page, the stream will keep playing. I'd like to stop the streaming (without using the pause button) when I navigate to another pa...
2
1,580
How to change datasource in kendo listview
<p>This is the method I have used to bind remote data to ListView based on the date.</p> <pre><code>function getListData(date) { $.ajax({ type: "POST", url: wcfurl + "getList", data: '{"date":"' + date + '"}', contentType: "application/json; charset=utf-8", dataType: "json...
2
1,238
Android rest web services call, Connections refuse issue
<p>I'm developing a android application and calling REST web services.It gives a error<br> This is my log </p> <pre><code>05-31 12:23:34.355: W/System.err(766): org.apache.http.conn.HttpHostConnectException: Connection to http://myip:8084 refused 05-31 12:23:34.365: W/System.err(766): at org.apache.http.impl.conn.D...
2
2,128
Laravel 5: route-model-binding not recognizing object
<p>I have a <code>search()</code> method in <code>SubredditController</code></p> <pre><code>public function search(Request $request, Subreddit $subreddit) { $query = $request-&gt;input('search'); $subreddit = Subreddit::with('posts.votes')-&gt;with('moderators.user')-&gt;where('id', 24)-&gt;first(); $posts...
2
1,245
Keras custom loss with one of the features used and a condition
<p>I'm trying to make a custom function for the deviance in Keras. Deviance is calculated as : 2 * (log(yTrue) - log(yPred)) </p> <p>The problem here is that my yTrue values are rare event count and therefore often equal to 0, resulting in a -inf error. </p> <p>The derivation of deviance for my specific case (poisso...
2
1,736
Cant use Linq WHERE/IN/JOIN with Entity Framework on many to many
<p>I can do this very simply in SQL, but trying to learn how to do this in Linq using Entity Framework.</p> <p>I have a User, a User can have multiple Groups, and a group can have multiple Permissions.</p> <p>I would like to get all the permissions for a user.</p> <p>I have the following DbSets in my DbContext</p> ...
2
1,028
Difference between call and execution pointcuts in PHP?
<p>In AOP in Java (AspectJ) when we talk about method pointcuts, we can differentiate them into two different sets: <code>method call pointcuts</code> and <code>method execution pointcuts</code>.</p> <p>Basing on these resources here on SO:</p> <ul> <li><a href="https://stackoverflow.com/questions/18132822/execution-...
2
1,855
How to convert Msxml2.XMLHTTP based IE-only website so it also work with Firefox?
<p>This is an IE-only website, which I want to use with other browsers, for example Firefox:</p> <p><a href="https://golestan.sbu.ac.ir/Forms/AuthenticateUser/login.htm" rel="nofollow noreferrer">https://golestan.sbu.ac.ir/Forms/AuthenticateUser/login.htm</a></p> <p>I am forced to use this website for my university. ...
2
4,663
Swift delegate not calling function in parent
<p>I am trying to get a child view controller, which is displayed in a view container at the bottom part of the main, parent View Controller. When I press the button in the child, "Button pressed from Basic VC" prints to the console, but "Warm button pressed from main VC" does not. I need the function that prints that ...
2
1,060
Null Pointer exception while getting request parameters
<pre><code>&lt;h:dataTable id="dt1" value="#{StudentMark.stuList}" var="stuList" bgcolor="#9AC8E6" border="10" cellpadding="5" cellspacing="3" rows="18" width="120%" dir="LTR" frame="hsides&gt; &lt;h:column&gt; &lt;f:facet name="header"&gt; &lt;h:outputText s...
2
1,798
iOS Core Data migration time out
<p>I am getting this error message (and subsequent crash) in Xcode organiser that I suspect is related to a Core Data migration that takes too long to complete:</p> <blockquote> <p>Oct 4 09:51:14 unknown SpringBoard[30] : appName failed to launch in time</p> </blockquote> <p>This migration works find in the simula...
2
1,070
How to set HttpResponse StatusDescription in a content handler?
<p>I am trying to set a custom HTTP status header in an HTTP response. E.g.:</p> <pre><code>400 Why do you want to do that </code></pre> <p>I am doing this by setting the <code>StatusDescription</code> of an <code>HttpResponse</code> in an <code>IHttpHandler</code>, in </p> <pre><code>&lt;%@ WebHandler Language="C#"...
2
1,420
CodeIgniter, pass data from model to controller to display sql operations results in controller
<p>This is my <strong>Login controller</strong></p> <pre><code> &lt;?php if (! defined('BASEPATH')) exit('No direct script access allowed'); class Login extends CI_Controller { function __construct() { parent::__construct(); } public function index($msg = NULL) ...
2
1,110
Change dropdown menu side from right to left
<p>Here is the navigation bar</p> <p><img src="https://i.stack.imgur.com/iUVXV.png" alt="1"></p> <p>Now i want to change the side to this</p> <p><img src="https://i.stack.imgur.com/XScjV.png" alt="2"></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="s...
2
1,340
Highcharts: How to plot date field in x-axis?
<p>I want to plot a <code>Highcharts</code> <code>area chart</code> region-wise i.e. country-wise population in a year.<br> I have a tab delimited data with schema (date(mm/dd/yyyy), country, population):</p> <pre><code>12/29/2014 india 1853 12/29/2014 france 1953 01/05/2015 india 5087 01/05/2015 china 1167...
2
1,780
C++ WinRT UWP XAML Data binding ItemsSource and SelectedIndex to IObservableVector<hstring> does not work
<p>I am using Visual Studio 2019 16.4.3, Microsoft.Windows.CppWinRT 2.0.200117.5, Windows 10 1809 Pro and targeting 10.0.17763.0.</p> <p>I am trying to port a C++/CX app to C++ WinRT. I am using data binding of the <code>ItemsSource</code>, <code>SelectedIndex</code>and <code>SelectedItem</code> properties of a combo...
2
3,379
Unable to forward API calls through Envoy (v1.17.0) to their respective routes inside docker-compose (v1.27.4)
<p><strong>tl;dnr</strong></p> <p>I can not get my docker-compose Envoy API gateway to properly forward to referenced services.</p> <p>&quot;Forwarded routes&quot; always end up with the error:</p> <pre>upstream connect error or disconnect/reset before headers. reset reason: connection termination</pre> <p>I must have ...
2
10,507
How can I read LINQ group by Query?
<p>this is my escenary, I Have a class called Plantilla that contains severals propertyes that allows bind a gridview in wpf, so that was working already, but users tells me that they need re-group the query by some field in database, so I prepare this snippet : </p> <pre><code> var dsTemplates = (from t in db.PLANTI...
2
1,036
Error while installing canvas on Raspberry PI 4
<p>I've tried installing node canvas multiple times on my Raspberry PI 4, and every time, no matter what permissions I give, no matter how many times I install node-pre-gyp, it will always result in this same error.</p> <pre class="lang-js prettyprint-override"><code> &gt; canvas@2.6.1 install /home/pi/.djsbots/Starr/n...
2
2,004
Master card migs md5 to SHA-256 HMAC php
<p>I have a gateway from migs but they are changed md5 to SHA-256 HMAC how can i change it on my code i tried too many times but i geting error 400 i think there are some issue on my code</p> <p>existing code </p> <pre><code>&lt;?php $db1 = new ps_DB(); $q = "SELECT country_2_code FROM #__vm_country WHERE country...
2
1,627
How to add header image in pdf report generated from database using itext
<p>Hii Guys !! Below is my code to export database into excel file .Now as per my requirement i want to add header image of company at the top of the page .plz guys help me and guide me to complete the task.thanks in advance .below is my code...</p> <pre><code> Document document = new Document(Page...
2
1,041
Using IF statements to find string length in array for alignment (Visual Basic)
<p>My question is just as it says in the title. How would one use IF statements to find the string-length of content in an array, and then make it so that they show up in a Rich Text Box with the left sides aligned?</p> <p>Noting that one value in my array is a Decimal.</p> <pre><code>Imports System.IO Imports System...
2
1,780
json_decode not working on string variable
<p>I'm trying to decode a json string into a php array and I'm getting a syntax error (4) when I use json_last_error().</p> <p>The string comes from an API call to an Infusionsoft database. The database returns an array with one key/value pair. The value contains the json string.</p> <pre><code>Array ( [_PMSChargeIte...
2
3,129
How to disable multiple submit buttons in a form
<p>I have an issue with one of my forms.</p> <p>The form has 4 submit buttons, and different actions are carried out depending on which button is pressed.</p> <p>Whenever I click one of the buttons, I want to disable all of the submit buttons, I managed to put together some code doing exactly that:</p> <pre><code>$(...
2
3,701
transaction scope gets aborted often
<p>my transaction scope gets aborted often </p> <p>my problem behind it :</p> <p>when opening multiple transaction scope with different classes ,we face the error of transaction aborted,each and every class is nested and in the methods the transaction scope is initalized,but the method where the transaction scope dec...
2
1,333
Error installing mysql2 gem
<p>I'm trying to set up my RubyOnRails development enviroment with MySQL. I have XAMPP installed, so I decided to use the XAMPP's MySQL installation, (therefore I installed the XAMPP dev package).</p> <p>Now I'm trying to install the mysql2 gem but I got this error:</p> <pre><code>gem install mysql2 --version 0.2.7 -...
2
1,882
Spark cannot resolve column
<p>While running below code getting the error..it is azure Data bricks hands on EDA. </p> <pre><code>df_typed = spark.sql("SELECT cast(Price as int), cast(Age as int), cast(KM as int), FuelType, cast(HP as int), cast(MetColor as int), cast(Automatic as int), cast(CC as int), cast(Doors as int), cast(...
2
1,520
Django Model Form - Not Valid without any errors
<p>I am writing a test for a Django Form. I am populating it with initial data. But when i save the form i get the error that it does not have cleaned_data attribute.</p> <p>This may happen because the form does not validate but it does not show any errors either.</p> <p>here is the code.</p> <pre><code>def test_key...
2
1,352
Can't call function inside custom directive. Scope is not what I want to use
<p>I used to have this inside my html 'calculations-td-plan.html'</p> <pre><code>&lt;tr ng-repeat="foodCalculation in selectedMealCalc.calculated_foods"&gt; &lt;td&gt;{{foodCalculation.food.name}}&lt;/td&gt; &lt;td&gt;{{foodCalculation.gram_amount}} g&lt;/td&gt; &lt;td&gt;{{foodCalculatio...
2
1,762
org.hibernate.MappingException: An AnnotationConfiguration instance is required to use
<p>I want to create a simple web project app. I am using struts2 and hibernate and I am new to both of this frameworks and I am getting this error: </p> <pre>Unable to instantiate Action, org.project.actions.UserAction, defined for 'saveUser' in namespace '/'An AnnotationConfiguration instance is required to use ...
2
1,170
How do I pass ID value of table in modal
<p>I want to pass the id value of student in the modal form. When I clicked the button 1stgrade, here is my table code: </p> <pre><code>&lt;tbody&gt; &lt;?php require_once '../dbconfig.php'; $stmt = $db_con-&gt;prepare("SELECT * FROM userinfo WHERE role='student' AND gradelvl='7' AND sectionname='$_POST[table7]' ORD...
2
1,205
Getting Through Proxy Server with Python
<p>I am trying to get through a proxy server through python to extract some information from the website, so far I this piece of code, but it doesnt seem to be working</p> <pre><code>import requests import BeautifulSoup URL = 'http://proxy.library.upenn.edu/login?url=http://clients1.ibisworld.com/' session = reque...
2
1,894
d3.js: Converting Months to Quarter
<p>I'm trying to convert a csv with data in months format to quarter format (avg for quarter, not sum..)</p> <p>The output I need is a nested array, as shown below for the months, only for quarters. I've already calculated each quarter for month using the d3.nest function, but I can't seem to get it converted to quart...
2
3,081
Mule ESB multipart/form-data post not working
<p>I am trying to post multipart/form-data using Mule ESB but cannot get it to work. I have the same request working successfully through my rest client and cURL.</p> <pre><code>curl -i -X POST \ -H "Authorization:bearer xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \ -H "X-ANYPNT-ORG-ID:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"...
2
1,077
React Native FlatList : Select all Items and run 'OnPress'
<p>I am using <code>react-native-bouncy-checkbox</code> and <code>Flatlist</code>.</p> <blockquote> <p>I have created an array object which has <code>id</code>, <code>name</code>, <code>amount</code>.</p> <p>So far I have achieved:</p> <ul> <li><p>User can select individual items from the <code>Flatlist</code>, and it ...
2
6,790
how come MySQL bit data type php print unicode?
<p>When my MySQl Data Type is bit(1) ,but when printed with php <code>json_encode</code> will write with unicode? IIS are working fine,<br> but in my dedicated server Apache hosting will become unicode. WHY? <img src="https://i.stack.imgur.com/bbiIr.jpg" alt="enter image description here"></p> <p>you can see the <cod...
2
1,204
why I can't encode and decode base64 with java and php?
<p>I encode Images on server with php and send the encoded strings to android via <code>get</code> request and decode it with java but It outputs bad base64 .</p> <p>so I decided to check the base64 string on online checker but the image doesn't appear is the problem with the php encoding ?</p> <p>here is the encoded...
2
2,193
angularjs: how to link to service.js file in template file
<p>I have currently included all service files and controller files in index.html in my angularJS application and it is working fine.</p> <p>But I want to include the respective service file and controller file in the template file, so that unwanted files for the home page of my application will not be loaded in the i...
2
2,533
E/AndroidRuntime(585): java.lang.NoClassDefFoundError twitter4j.http.AccessToken
<p>I have been following this tutorial</p> <p><a href="http://www.android10.org/index.php/articleslibraries/291-twitter-integration-in-your-android-application" rel="nofollow">http://www.android10.org/index.php/articleslibraries/291-twitter-integration-in-your-android-application</a></p> <p>I entered these details fo...
2
1,894
How to access resources in ASP.NET Views folder?
<p>Resources in Views folder are CSS, Images used inside the View, now I know it is different then what it is meant for, we are already putting everything in Contents folder but I am looking for better way to manage it.</p> <p>We have a very big MVC 4 and there are many areas and each area has many views. To maintain ...
2
1,463
PHP curl Unknown SSL protocol error
<p>We've recently moved our web application to a new server and curl requests through PHP have stopped working for HTTPS addresses (HTTP still works fine).</p> <p>The old server was running openSUSE 12.3 and the new server is Ubuntu 16.04.</p> <p>I've tried <code>curl_setopt( $ch, CURLOPT_SSLVERSION, 1 );</code> to f...
2
1,142
scala sbt : Error while importing sbt project:
<p>I am trying to run Hello_world in scala , I have installed scala and spark with sbt.</p> <p>but when i check scala -version it shows </p> <pre><code>Scala code runner version 2.12.6 -- Copyright 2002-2018, LAMP/EPFL and Lightbend, Inc. </code></pre> <p>But if i am checking spark version its showing :</p> <pre><c...
2
4,623
Create a new map from an array of object with similar id in Typescript
<p>I'm trying to create a map> from a list of objects that have similar ids in typescript, but I don't get the correct way to do. I know that in lodash something like so is doable but can't get it to work. This what I have tried</p> <p>let's say I have list of colors like so: </p> <pre><code> [ { "Id": "1...
2
1,130
F# Comparing Two Arrays for Equality to a Specified Level of Precision
<p>Here is the C# code I am trying to translate:</p> <pre><code>public bool equals(Matrix matrix, int precision) { if (precision &lt; 0) { throw new MatrixError("Precision can't be a negative number."); } double test = Math.Pow(10.0, precision); if (double.IsIn...
2
1,074
run multiple mysql queries after each other?
<p>hi i am trying to run multiple queries to insert certain values into certain tables and columns.</p> <p>i am currently running this query which inserts the values into ptb_registrations and it works fine but now i want to add some of these values additionally into ptb_users and i keep getting can not update databas...
2
1,196
abstract class which calls a method of a subclass. How does it work?
<p>I read a code which is written in the book "Beginning Android Games" but I don't understand it completly. The entry point of the app is:</p> <pre><code>public class MrNomGame extends AndroidGame { public Screen getStartScreen() { return new LoadingScreen(this); } } </code></pre> <p>The class 'Andr...
2
1,603
Can't run video in WebView on some devices
<p>This is my first question so please be gentle...</p> <p>Ok, here is the problem. I have to show a video inside a WebView in Android. I have tested it on multiple devices and Android versions and it does not work consistently.</p> <ul> <li>Nexus 10 (4.2.2) - works perfectly;</li> <li>Nexus 4 (4.2.2) - works perfec...
2
1,843
Angular 2 is not picking index.html as start page from build directory and give error give Status 403 error (Gulp)
<p>I am trying to build my first Angular 2 app with Gulp in Visual Studio 2015 and it's an Asp.net 4.5.2 empty project. Project layout --> src and it has app folder and here are my files:</p> <p>app.component.ts file:</p> <pre><code>import {Component, OnInit} from "@angular/core"; @Component({ selector: ...
2
3,434
NullReferenceException in Caliburn.Micro and/or WindowsBase when using Message.Attach
<p>Now I have a weird one. This happens only under Windows XP on a stand-alone build (debug/release, doesn't matter). Works perfectly fine under Windows 7. Anyway, since I have to ensure that the app works under XP, I had to do a little workaround. I had to do the remote debugging on a machine with XP, which gave me <c...
2
2,420
Axios post is giving me an error: Internal server Error
<p>I am doing a post request with Axios and gives me this error:</p> <blockquote> <p>xhr.js:178 POST <a href="http://localhost:3000/dependentes" rel="nofollow noreferrer">http://localhost:3000/dependentes</a> 500 (Internal Server Error)</p> </blockquote> <p>I have seen people asking about this but none of their s...
2
1,137
mongo PHP app error: Fatal error: Uncaught exception 'MongoException' with message ''.' not allowed in key
<p>I have the following PHP array: </p> <pre><code>array (size=9) 'script_desc' =&gt; string 'Test Script' (length=21) 'script_date' =&gt; string 'May 11 2016 15:40:48' (length=20) 'log_date' =&gt; string 'May 12 2016 09:17:58' (length=20) 'name' =&gt; string 'test name' (length=2) 'type' =&gt; string 'locat...
2
1,980
How do I get the index from my adapter using a view?
<p>Sorry if this is convoluted...</p> <p>I'm trying to create an Async Task that updates a value in a recycler view adapter when it's clicked. My problem is I can't get a specific row from the trains LiastArray from the view that's being returned onClick of one of the RecyclerView rows.</p> <pre><code>public void Arr...
2
1,678
Non-blocking way to offer + drainTo for a BlockingQueue (or something else)
<p>I am looking for something seemingly simple, a collection with a non-blocking version of "add" and "drain". Something like this:</p> <pre><code>List itemsToProcess = queue.addOrDrainAndAdd( item ); if ( itemsToProcess != null ) process( items ); </code></pre> <p>It seems to me that if I do these as separate "o...
2
1,591
Sencha ExtJS Grid With textareafield not accepting new lines
<p>The RowEditor grid plugin captures the enter key as part of its processing, but I want my user to be able to edit the text in a "textarea" field. When they press "enter" to enter a newline the RowEditor thinks they want to perform an update.</p> <p>A possible fix was suggested that look like the following:</p> <pr...
2
1,079
How to run maven web application with jetty server in eclipse
<p>I have to created maven project to run with jetty server this project is comfortably running using command line the same project if going to run in eclipse project getting build failure whats the problem </p> <p><strong>Error</strong></p> <pre><code>-----------------------------------------------------------------...
2
14,231