title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Node.js "Cannot read property 'prototype' of undefined" error - Node.js, MongoDB and Angularjs book
<p>I am working through Brad Dayley's Node.js, MongoDB and Angularjs book and I'm stuck on one of his exercises (Listing 4.4). I have a simple script emitterListener.js that is as follows the script is designed to makes checks on an account.</p> <pre><code>var events = require('events'); function Account() { this.b...
0
1,417
Unary operator '--' cannot be applied to an operand of type '@lvalue Int?' (aka '@lvalue Optional<Int>')
<p>I just updated my app's code to the latest version of Swift and I have this function:</p> <pre><code>func setupGraphDisplay() { //Use 7 days for graph - can use any number, //but labels and sample data are set up for 7 days //let noOfDays:Int = 7 //1 - replace last day with today's...
0
1,032
Customize the Wordpress Woocommerce billing address edit forms
<p>By default, Woocommerce has two types of addresses which are <strong>Billing and Delivery address</strong>, and these informations can be edited from <strong>My Account</strong> page, you click the "edit" link, form opens in a new window.</p> <p>But this is what, I want the account page to look like:</p> <p>When t...
0
1,085
SecurityException: Not allowed to start service Intent act=com.google.android.c2dm.intent.REGISTER
<p>I get the error <code>SecurityException: Not allowed to start service Intent</code> but looks like it do not have good solution after searching many topics.</p> <p>Please help me,</p> <p>Thanks,</p> <p>p/s :</p> <p>I'm make sure I used correct <code>SENDER_ID</code> as project number was defined at <code>Google ...
0
1,603
Android - Starting a service with extra information through put/getExtra
<p>I've really tried to get through the intent.putExtra() and getIntent().getExtras() and apply them to one of the SimpleService tutorials. I know a lot of people have already asked "why is bundle extras always null?" I promise I tried to hack through the answers I found here for several hours before I considered pos...
0
1,517
Why am I getting an unexpected token error in jQuery 1.4.4.min file?
<p>Why am I getting this error:</p> <pre><code>Uncaught SyntaxError: Unexpected token &lt; c.b.extend.globalEval jquery-1.4.4.min.js:32 c.extend.httpData jquery-1.4.4.min.js:144 c.extend.ajax.L.w.onreadystatechange jquery-1.4.4.min.js:140 </code></pre> <...
0
1,368
Angular2 version RC.6 "directives" inside @Component Error
<p>I am using Angular2 and have downloaded package.json from the official website. When I am trying to use "directives" inside @Component decorator I am getting this error. </p> <p>I have attached my code ERROR:</p> <pre><code>[ts] Argument of type '{ selector: string; template: string; directives: string; }' is no...
0
1,186
What is authorizedEntity? Can't find gcm_defaultSenderId in own app
<p>I am trying to get my app running with Google Cloud Messaging. I am following the Google Cloud Messaging Quickstart App which can be found here on <a href="https://github.com/googlesamples/google-services/tree/master/android/gcm">github</a>.</p> <p>In their quickstart app at some point we ask the Google Cloud Messa...
0
1,074
Error when running curl inside script (No such file or directory)
<p>I have the following .sh file I pieced together off of things I found on the internet.<br> The goal is to read the 2nd line 2nd item in a CSV file and use that to send a delete commmand to elasticsearch.</p> <pre><code>#!/bin/sh OLDIFS=$IFS IFS=, function quit { echo "Quitting Script" IFS=$OLDIFS ...
0
1,467
Cannot read property 'parent' of undefined - Node.js
<p>I was trying to employ superagent and cheerio to crawl data from kijiji for learning, while I got an error of "Cannot read property 'parent' of undefined". (I tried craigslist which was fine). It happened after I got the correct results "object". It seems something wrong with cheerio. Does anyone have any idea about...
0
1,152
Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low
<p>I am trying to save some big data to database through a WCF service call. I am not able to invoke the service. Its throwing an error:</p> <p><strong>Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low</strong></p> <pre><code>public async Task&lt;int&gt; UploadEx...
0
2,044
How to format currency in ClosedXML as numeric
<p>we're using ClosedXML to convert datatable objects into Excel spreadsheets for presentation to the user. The DataTable object is build simply by assigning all db values (from NHibernate) to strings and then formating them like below:</p> <pre><code> //formatting EstimatedCost = Currency.SafeToString(Currency.Creat...
0
1,146
C++ Inheritance in Separate Files Using #include and Inclusion Guards
<p>I am new to Stack Overflow and am teaching myself C++, but am still quite a beginner. After completing a nice chunk of the book I am using (which may be considered out dated and/or not a great book) I decided to re-enforce some concepts by trying them on my own, referencing the book only if needed, but I appear to b...
0
2,501
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in the package.json of a module in node_modules
<p>This is a React web app. When I run</p> <pre><code>npm start </code></pre> <p>This error occurred</p> <pre><code>&gt; dataflow@0.1.0 start &gt; react-scripts start node:internal/modules/cjs/loader:488 throw e; ^ Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by &quot...
0
1,715
What does [:, :] mean on NumPy arrays
<p>Sorry for the stupid question. I'm programming on PHP but found some nice code on Python and want to "recreate" it on PHP. But I'm quite frustrated about the line</p> <pre><code>self.h = -0.1 self.activity = numpy.zeros((512, 512)) + self.h self.activity[:, :] = self.h </code></pre> <p>But I don't understand w...
0
1,364
Prevent Spring Batch automatic job trigger after context creation without Spring Boot
<p>I am setting up a project with <strong>Spring Batch without using Spring Boot</strong>. When the Spring application context is created, all the jobs get executed.</p> <p>I tried adding <code>spring.batch.job.enbled=false</code> to the <em>application.properties</em> to prevent this but it still does not work.</p> ...
0
1,081
Servlet /webapp threw load() exception
<p>When I start tomcat server in linux, war file should auto-deploy the webapp. When I see localhost.log file, found the following error</p> <pre><code> SEVERE: Servlet /webapp threw load() exception java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.&lt;init&gt;(Unknown Source) at or...
0
1,420
How to invoke a REST call (POST with JSON body) from Camel in Java DSL
<p>Having the following working Camel flow setup in a ServletContextListener in a Web project running on IBM WebSphere, an incoming XML is converted to JSON and printed to the System.out and printed to the report.txt. So far so good.</p> <pre><code>@WebListener public class SetupCamel implements ServletContextListener...
0
1,704
Android : Align a text at left and center the textview in his parents view
<p>Hello i'm facing a little problem</p> <p>I'm using GRAVITY LEFT to make my text an aligment for the left side of a view but I want to center inside the textview but also align on the left part</p> <p><strong>Here's what I have now:</strong></p> <pre><code> ___________________________________ _ _ _ _ _ ...
0
1,183
Adding an Edit column to a telerik grid using ASP.Net MVC 2 and Telerik MVC (2010 Q1)
<p>I have been successful with creating a Telerik grid to display a list of products, however I've gone through some difficulty adding the column to allow a user to edit (I'm not even trying to edit within the grid - I simply want a link to an edit view)</p> <p>When I add the custom column, I get the following lines i...
0
1,041
ng2-bootstrap not working in Angular 2 ('alert' is not a known element:)
<p>I've installed ng2-bootstrap on a project running Angular 2.0.1 via:</p> <pre><code>npm install ng2-bootstrap --save </code></pre> <p>I've setup my project like this:</p> <pre><code> //systemjs.config.js (function (global) { System.config({ paths: { // paths serve as alias ...
0
1,112
Uncaught TypeError: Cannot read property 'className' of undefined dataTable
<p>I have table:</p> <p><strong>HTML</strong></p> <pre><code>&lt;table id="mydata"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Data 1&lt;/th&gt; &lt;th&gt;Data 2&lt;/th&gt; &lt;th&gt;Data 3&lt;/th&gt; &lt;th&gt;Data 4&lt;/th&gt; &lt;/tr&gt; &lt;/thead...
0
1,756
how to generate entities and schemas for enum in symfony
<p>i am trying to generate entities for my contact information. for that i have first create Entity with the following syntax used where i have created one enum field.</p> <pre><code>php app/console doctrine:generate:entity --entity="BannerTestBundle.contact" --fields="name:string(255) lastname:string(255) phone:integ...
0
1,259
bcrypt.compare promise always returns false
<p>I've looked through the other issues with bcrypt.compare on GitHub and none of the solutions have worked for me. It always fails on console.log("failed 3") inside bcrypt.compare()</p> <p>I've tried switching the .then() instead of using a callback with bcrypt.compare as suggested by another post but that hasn't he...
0
1,219
RemoveError: 'requests' is a dependency of conda and cannot be removed from conda's operating environment
<p>Having trouble installing a third party library and I have not seen this error before using Windows 10 with Anaconda installed:</p> <pre><code>C:\Users\XYZ&gt;conda env create -f python3.6-environment-windows.yml Collecting package metadata: done Solving environment: done Downloading and Extracting Packages certif...
0
1,315
jQuery click events firing multiple times
<p>I'm attempting to write a video poker game in Javascript as a way of getting the basics of it down, and I've run into a problem where the jQuery click event handlers are firing multiple times.</p> <p>They're attached to buttons for placing a bet, and it works fine for placing a bet on the first hand during a game (...
0
1,198
AJax does not work with bootstrap-select
<p>I found <a href="https://github.com/saltycrane/flask-jquery-ajax-example">flask-jquery-ajax example</a> where the user selects an item from the vehicle "Make" drop down menu, the vehicle "Model" drop down menu is populated by making an AJAX request for a list of models for the make selected.</p> <p>I tried to repla...
0
1,584
How to change <v-text-field> icon's color?
<p>In my <code>&lt;v-toolbar&gt;</code> component, I want to set a text field search with the icon search prepended:</p> <pre><code>&lt;v-text-field solo-inverted ...
0
2,446
Sample serial port comms code using Async API in .net 4.5?
<p>Can anyone point me to a working example that uses the .net 4.5 Async API (async, await, task&lt;>, ReadAsync, etc) to do serial communications?</p> <p>I've tried to adapt an existing event driven serial sample, and am getting all kinds of horrible behavior - "port in use by other application" errors, VS2013 debugg...
0
1,569
how to create a backup database script in php and zip it
<p>what is the best way to backup a database using php and backing data from mysql,i have tried to look for tutorials online but i seem not to understand nicely well i wrote this though its not working nicely,im getting these errors and warnings</p> <pre><code>Warning: gzopen(backups/adminpanel/adminpanel_aggrement_13...
0
1,119
How to validate text input on alertDialog using Form and GlobalKey?
<p>I've a <code>textfield</code> on <code>alertDialog</code> which accepts <code>Email</code> and want to validate it. The alertDialog opens in front of current login screen after tapping on <code>forgot password</code> button. I've implemented login validation and was trying to use similar logic to achieve above. For ...
0
11,688
pandas.DatetimeIndex frequency is None and can't be set
<p>I created a DatetimeIndex from a "date" column:</p> <pre><code>sales.index = pd.DatetimeIndex(sales["date"]) </code></pre> <p>Now the index looks as follows:</p> <pre><code>DatetimeIndex(['2003-01-02', '2003-01-03', '2003-01-04', '2003-01-06', '2003-01-07', '2003-01-08', '2003-01-09', '2003-01-...
0
1,322
rmarkdown error with ggplot and png
<p>I have tried (in vain) to produce a chart with ggplot in Rmarkdown. The code is the following:</p> <pre><code>```{r,echo=FALSE} #fig.width=12,fig.height=6 panel2$PlotSize&lt;-round(log(panel2$BSFA0200),0)- min(round(log(panel2$BSFA0200),0))+1# set size of dots panel2$PlotSize[panel2$PlotSize==-Inf]&lt;-NA panel2$P...
0
2,474
Running pip install requirements.txt fails in docker build
<p>I am trying to create a docker image for machine learning model but it fails if i try to install from requirements.txt but if I run below docker file then it runs successfully</p> <p>The following is my docker file:</p> <pre><code>FROM alpine:latest RUN mkdir -p /home/ePortalService WORKDIR /home/ePortalService ...
0
4,090
Could not load file or assembly 'Microsoft.Owin.Security.Cookies' or one of its dependencies.
<p>I have a fresh MVC5 project made from Visual Studio 2013, which works fine when I try to launch it locally. However, when I publish to my Azure website, I get this front page: </p> <blockquote> <p>Could not load file or assembly 'Microsoft.Owin.Security.Cookies' or one of its dependencies. The located assembly's ...
0
1,256
Connection exception in java jdbc
<p>This is one of constructors of class. New object create new record in database. When I create this object "by hand" in source code, everything is fine. But when I put declaration of creation into actionlistener of a button, compiler returns sql exception.</p> <pre><code>public Pacjent() { try { ...
0
2,345
creating an array of objects in c++
<p>I'm trying to create an array of objects in c++.</p> <p>I'm creating a employee object, from my constructor in my company class here:</p> <pre><code>employee obj(int tempIdNum, double tempBase, double tempSales, double tempRate); emp[tempcount]=obj; (this doesn't work?) </code></pre> <p>Emp is the name of the a...
0
2,351
KeyError / frozen importlib._bootstrap error on second library import in spyder
<p>I receive a </p> <pre><code>File " &lt;frozen importlib._bootstrap_external&gt; ", line 978, in _get_parent_path KeyError: 'python_library' </code></pre> <p>error when I import a library from a subfolder the second time in spyder, but the first time (after restarting spyder) or outside of spyder it works fine....
0
1,096
Setting Up Postman for API Testing When Using Passport Authorization
<p>I am a bit confused while trying to get Postman to work when testing the API of my application. Namely, I am using Passport authentication; however, I do not know which type it defaults to or uses in my code. How can I figure this out and which type should I choose in Postman?</p> <p>Here is the relevant Passport c...
0
1,277
Python-ONVIF PTZ control -- Absolute and Relative Move
<p>I am developing an application in Python to control ONVIF-compatible cameras.</p> <p>Software: Debian Wheezy, Python 2.7, Quatanium python-onvif client</p> <p>Hardware: Raspberry Pi 2 B, IP camera on local router, wifi/VNC for development</p> <p>The required PTZ functions include Absolute Move, Relative Move, Con...
0
3,687
Spring security shows access denied for valid user
<p>i have a controler with endpoint annoted with <code>@PreAuthorize("hasRole('CUSTOMER')")</code>, when i log in as <code>CUSTOMER</code> and send a request to this endpoint, im getting <code>403 Access denied</code>, and i have no idea why since request is valid. Whats wrong with this ednpoint? Other endpoints with s...
0
4,481
d3 click and drag event nesting
<p>I am nesting a lot of elements inside of a g element like so:</p> <pre><code>&lt;g&gt; &lt;rect&gt;&lt;/rect&gt; &lt;text&gt;&lt;/text&gt; ... &lt;/g&gt; </code></pre> <p>However, there are some rects that I want to be able to have drag events of their own. The problem is that when you put stuff inside...
0
1,403
Positioning an Unordered List horizontally
<p>I have an Unordered List which functions as a basic navigation bar. </p> <p>My goal is to display it in line at a width of 60% of the screen and to be centred. The issue I am having is that it displays a little off centre and the size also varies. I use an external style sheet. Any help will be much appreciated. ...
0
1,187
Sort a DataGridView on multiple columns?
<p>I've searched for an example of sorting a DataGridView on multiple columns, but don't seem to be able to find an example which does what I would like.</p> <p>Basically, I have a bound DataGridView control (bound to a DataTable/DataView), and the bound DataTable has two columns:- priority and date. I would like to s...
0
1,351
Graph disconnected: cannot obtain value for tensor Tensor Input Keras Python
<p>I have this code:</p> <pre><code># Declare the layers inp1 = Input(shape=input_shape, name="input1") inp2 = Input(shape=input_shape, name="input2") # 128 -&gt; 64 conv1_inp1 = Conv2D(start_neurons * 1, 3, activation="relu", padding="same")(inp1) conv1_inp2 = Conv2D(start_neurons * 1, 3, activation="relu", padding...
0
1,473
How To Get Location Using AsyncTask
<p>I am pulling my hair out with trying to find a good solution to this problem. I made my app so it finds my location. It seems overly complicated but easy enough. However following googles recommendations I am now trying to run this code as an Async task so it doesn't tie up the UI. However I can't even figure out ho...
0
2,650
D3 filtering data points
<p>I'm implementing the classic mercator example (https://github.com/mbostock/d3/blob/master/examples/mercator/mercator.html), which I've changed to zoom into Afghanistan and to use only one custom slider. I'm reading in GeoJSON data of places where explosions have happened and the graph maps them all at load. I want t...
0
1,978
ClassCastException: javax.naming.Reference cannot be cast to javax.jms.ConnectionFactory
<p>I wrote a Java program to connect to Websphere MQ to publish messages. I created a JNDI namespace, connection factory, destinations, and queue manager in Websphere MQ Explore. When I am running my program it is showing <code>ClassCastException</code> for type casting from <code>string</code> to <code>ConnectionFact...
0
1,685
stoi "terminate called after throwing an instance of 'std::invalid argument'
<p>I am currently working on a dynamic programming problem, and I decided code it in C++ instead of my usual Java/C# to improve my skills. However, I am getting an error that I cannot figure out. EDIT: I will post my entire solution here:</p> <pre><code>int main() { /* Enter your code here. Read input from STDIN. ...
0
1,569
How to solve a Initialization Failed for Singleton EJB
<p>I have a java EE project that is executed in a Glassfish 4.1 container using Eclipse Mars, using EJB injection. I have a Singleton EJB that initialize or update the database when application start</p> <pre><code>@Startup @Singleton public class DatabaseUpdater { private static final Logger LOG = Logger.getLogg...
0
3,009
Problems with lib-icu dependency when installing Symfony 2.3.x via Composer
<p>I've had no problems installing Symfony 2.2.x using Composer, I've always just copied the stable version at <a href="http://symfony.com/download">http://symfony.com/download</a>.</p> <pre><code>composer create-project symfony/framework-standard-edition myproject/ 2.2.1 </code></pre> <p><em>(I have Composer install...
0
1,116
Why am I getting the "A potentially dangerous Request.Form value was detected from the client" error?
<p>I've created a new ASP.NET MVC 3 / .NET Framework 4.0 site using the "Internet Application" template. I used Nuget to install the <a href="http://www.nuget.org/List/Packages/WindowsAzure.WebRole.MVC3" rel="noreferrer">Windows Azure Web Role (MVC3)</a> package and then followed the <a href="http://acs.codeplex.com/wi...
0
1,120
xslt to change background color by testing 2 columns
<p>I have some xslt code that tranpose the xml file into html. BUt I want to change the cells background color if CallHandled is not equal to CallsRecorded. Here is my xslt</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; &lt;xsl:output method="html" indent="yes"/&gt...
0
7,173
Getting Data From Sql Server 2008 with C#
<p>I'm trying to make a login facility for Windows Forms Application project. I'm using Visual Studio 2010 and MS Sql Server 2008.</p> <p>I referenced this article: <a href="http://www.codeproject.com/Articles/4416/Beginners-guide-to-accessing-SQL-Server-through-C" rel="nofollow noreferrer">http://www.codeproject.co...
0
1,758
Manipulate shapefile attribute table using R
<p>I've posted this <a href="https://gis.stackexchange.com/questions/64174/how-to-add-a-field-to-a-shapefile-using-r">question on the GIS stack exchange</a>, but it's not seeing much traffic.</p> <p>I'm a GIS user who's been using R for stats for a few years, and I'm excited to see a lot of new GIS capabilities being ...
0
3,417
How to use jsonp with node.js express
<p>i'm trying to make Samsung Smart TV app with node.js .</p> <p>In my project, i want to make my app communicating with server pc.</p> <p>According to Many Web sites, i can do this with "jsonp".</p> <p>Here is a client side code that i found.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;jsonp test&lt;...
0
1,170
JRE issue with getting Spring Tool Suite installed
<p>I downloaded Spring Toolset 3.6 from here:</p> <pre><code>https://spring.io/tools/sts/all </code></pre> <p>Unzipped it, launched sts.exe and got this error:</p> <pre><code>--------------------------- STS --------------------------- A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ...
0
1,381
Specified cast is not valid Linq Query
<p>Hi i would like to query a table based on its primary key.</p> <p>i have tried both</p> <pre><code>var deviceDetails = (from d in db.Devices where d.DeviceId == pointDetails.DeviceId select d).ToList(); </code></pre> <p><strong>EDIT d.DeviceId</strong></p> <pre><code>v...
0
1,081
CORS enable in servlet
<p>I used this header method in my servlet doPost method for enable CORS. Though I get CORS error in my reactjs application at the time of fetching api. reactjs error is here (error: has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header...
0
1,030
Node Multer unexpected field
<p>I'm working on uploading a file to my app using the multer npm module.</p> <p>The multer function I have defined is to allow a single file uploaded to the file system. Everything works during run time; the issue is after I upload the file I get an error below. Any advice appreciated on where to look.</p> <h1>Err...
0
1,029
Moving navbar below header bootstrap
<p>I am quite new to bootstrap and I was wondering if anyone could give some advice as to how I would be able to place my navbar underneath my header. This is my current code for the two: </p> <p>Header: </p> <pre><code> &lt;div class="row"&gt; &lt;div class="col-lg-12...
0
1,966
What is the fastest way to sort a large(ish) array of numbers in JavaScript
<p>In my application, I need to sort large arrays (between 100,000 and 1,000,000) of random numbers.</p> <p>I've been using the built in <code>array.sort(comparisonFunction)</code> where comparisonFunction looks like this:</p> <pre><code>function comparisonFunction(a,b) { return a-b; } </code></pre> <p>This work...
0
1,215
Android - Front Camera Preview SurfaceView
<p>I'm using the code below to show the front_camera inside a <code>surfaceView</code>, but when I try this code on a <strong>Samsung Galaxy S plus</strong>, all the screen is black, but no errors occur. Does anyone know why it happens?</p> <pre><code>public class TestLedActivity extends Activity { private SurfaceVi...
0
2,990
ASP.NET GridView within Scrollable Div: Scroll to SelectedIndex
<p>I have a GridView contained within a scrollable div. I also have a Button that selects a row in this GirdView based upon the text of a TextBox on the page. The row is selected just fine, but I cannot get the div to scroll to the selected row programmatically. I have attempted multiple methods involving JavaScript's ...
0
2,467
cordova failed to ganarate apk saying there is somthing occurred configuring project ':CordovaLib'
<p>am a beginner at ionic .. and am trying to generate the apk from an ionic project .. but unfortunately it failed to be generated.giving this error</p> <pre><code> Android Studio project detected </code></pre> <p>ANDROID_HOME=C:\Users\abdel ysf\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_151...
0
1,143
Select rows in Vuetify Data Table
<p>I was wondering how can I select/unselect a row by clicking a row in a datatable in Vuetify. It would be even better if I could select a range by using shift+click or shift+arrows but that is another question.</p> <p>I have tried to update the array I send into the parameter "value" but the rows never get selected...
0
2,001
Installation failed due to invalid APK file?
<p>I just downloaded an example program of AR in metaio. When I run or build the program. The error displayed: Installation failed due to invalid APK file! [2011-08-29 21:15:30 - Example_SDK] Please check logcat output for more details. [2011-08-29 21:15:30 - Example_SDK] Launch canceled!</p> <p>Here is the logcat. I ...
0
2,532
Spring Boot with multiple data sources using same repositories and model classes?
<p>I have to do a Spring Boot version 1.5 application that can do like this: it creates an object and try to persist to both data sources (example: 2 databases named: test_book_1 and test_book_2 in Postgresql).</p> <p>I have found an example that could work for 2 different objects (Author: A, Book: B) which can be sto...
0
3,722
error during build EAR file in Maven
<p>I'm facing the followinf issue : </p> <blockquote> <p>Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.7:generate-application-xml (default-generate-application-xml) on project UserAdminEAR: Artifact[war:com.syril.administration:UserAdmin] is not a dependency of the project. -> [Help 1]</...
0
1,330
how to get a column value in radgrid on DeleteCommand event
<p>Hi All I have a radgrid like this :</p> <pre><code>&lt;cc1:RadGridCustomized ID="RadGrid1" runat="server" OnNeedDataSource="RadGridCustomized1_NeedDataSource" OnPreRender="RadGridCustomized1_PreRender" OnUpdateCommand="RadGridCustomized1_UpdateCommand" OnDeleteCommand="RadGridCustomized1_DeleteCommand" OnIn...
0
1,158
Asp Mvc3 webgrid Paging and Filtering by ajax
<p>I Have a little problem with WebGrid control for Asp.Net MVC3. What I want is to perform a search view using ajax and webgrid; something like this:</p> <p>Search Criteria <strong><em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__<em>_</em>__</strong></p> <...
0
2,322
How to catch error in nestjs when a query fails
<p>I am new to <code>nestjs</code> and was trying to convert my backend from <code>nodejs</code> to <code>nestjs</code>. Hope that makes sense? I am using `typeorm. But I am not sure as what could be the best of way of catching errors.</p> <p><code>entity.ts</code></p> <pre><code>import { Entity, Column, PrimaryGener...
0
1,540
Struts2 and jsp form submit using jquery ajax post and getting a toast like message which comes and disappears?
<p>I am using struts2 for my web application development. In a registration form there I want to use <code>query ajax</code>, so that the form gets submitted <strong>asynchronously</strong> and on a successful form submission <strong>I can get a server side success message in form of a toast</strong> or a element that...
0
1,698
Canvas: trying to use a recycled bitmap android.graphics.Bitmap in Android
<p>I am working on the crop image class, but encounter a recycled bit map problem:</p> <pre><code>03-02 23:14:10.514: E/AndroidRuntime(16736): FATAL EXCEPTION: Thread-1470 03-02 23:14:10.514: E/AndroidRuntime(16736): java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@428e5450 0...
0
13,066
spring error :org.springframework.web.context.ContextLoader - Context initialization failed
<p>I am developing a simple project in spring but I have the following problem <strong>org.springframework.web.context.ContextLoader - Context initialization failed</strong> this is the controller:</p> <pre><code>package com.linedata.jaba.controllers; import org.springframework.beans.factory.annotation.Autowired; imp...
0
8,432
How to merge two files consistently line by line
<p>I have two files (<strong>file1.txt</strong> &amp; <strong>file2.txt</strong> ). The files are only examples.</p> <p>How can I merge the two files, in order to create the file - <strong>merge_files.txt</strong> as example 3?</p> <p>I am now writing a <a href="https://en.wikipedia.org/wiki/KornShell" rel="nofollow no...
0
1,033
How can I prevent EF "The context cannot be used while the model is being created" errors?
<p>Looking at my Elmah error logs, I am seeing a few <code>InvalidOperationException</code>s from Entity Framework that deal with:</p> <pre><code>The context cannot be used while the model is being created. </code></pre> <p>This is with the latest EF CodeFirst library from Nuget. The only information I have been abl...
0
1,498
java.lang.NoSuchMethodError: org.springframework.data.repository.config.AnnotationRepositoryConfigurationSource.<init>(Lorg/springframework/core/type
<p>I am working on the <strong>Spring Boot + Spring Security + Aouth2</strong> example. In this example, I 'm using the <code>1.5.6.RELEASE</code>. When I was just trying to start the application, I see the below error coming. Any idea what the issue ?</p> <pre><code>java.lang.NoSuchMethodError: org.springframework.da...
0
3,931
Eclipse won't start, log error says: ObjectNotFoundException: Tree element
<p>Last night my machine restarted while Eclipse Galileo was open. No big deal, right?</p> <p>This morning, I started my machine and tried to open Eclipse. Instead of opening, I see this: <img src="https://i.stack.imgur.com/kNADb.jpg" alt="alt text"></p> <p>The error log suggests that there is some kind of problem ...
0
2,140
Remove unwanted user permissions from SharePoint
<p>I have a POSH script that sets a user's access to a specific folder for some files to read.</p> <p>The user's group gets assigned to the folder (which happens to be the same name).</p> <p>I then created a new view, set it to default, and told it to display all files without folders.</p> <p>This script has been wo...
0
2,016
creating a login controller in MVC project
<p>So I am creating a web application with ASP.NET MVC4 in framework 4.5. I wish to add an account system. I have created a database with users and roles and now need to connect that with my web app.</p> <p>I have used the visual studio tool for adding ADO.NET Entity Data Model, and have connected to my database, sele...
0
1,561
Spring Boot REST Controller returns 404 when deployed on external tomcat 9 server
<p>I have a spring boot rest web application which works perfectly on the embedded server. However after following the steps mentioned in the is blog <a href="https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto-create-a-deployable-war-file" rel="noreferrer">https://docs.spring.io/spring-boot/doc...
0
3,869
Assertion failure when using UISearchDisplayController in UITableViewController
<p>I've been trying to add simple Search functionality to a TableViewController in my app. I followed Ray Wenderlich's tutorial. I have a tableView with some data, I added the search bar + display controller in storyboard, and then I have this code: </p> <pre><code>#pragma mark - Table View - (UITableViewCell *)t...
0
1,157
Convert HTML to plain text in Java
<p>I need to convert HTML to plain text. My only requirement of formatting is to retain new lines in the plain text. New lines should be displayed not only in the case of <code>&lt;br&gt;</code> but other tags, e.g. <code>&lt;tr/&gt;</code>, <code>&lt;/p&gt;</code> leads to a new line too. </p> <p>Sample HTML pages fo...
0
1,068
matplotlib: how to refresh figure.canvas
<p>I can't understand how to refresh FigureCanvasWxAgg instance. Here is the example:</p> <pre><code> import wx import matplotlib from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.figure import Figure class MainFrame(wx.Frame): def __init__(self): wx.Frame._...
0
1,309
Cannot find type definition file for 'highcharts'
<p>I followed the installation and example from <a href="https://www.npmjs.com/package/angular-highcharts" rel="noreferrer">https://www.npmjs.com/package/angular-highcharts</a> however, I get the error:</p> <p><strong>ERROR in node_modules/angular-highcharts/chart.d.ts(1,23): error TS2688: Cannot find type definition ...
0
2,227
Tensorflow keras with tf dataset input
<p>I'm new to tensorflow keras and dataset. Can anyone help me understand why the following code doesn't work?</p> <pre><code>import tensorflow as tf import tensorflow.keras as keras import numpy as np from tensorflow.python.data.ops import dataset_ops from tensorflow.python.data.ops import iterator_ops from tensorflo...
0
1,314
C Producer-Consumer Using PThreads
<p>I am working on a problem where I am implementing a program that mimics the producer-consumer paradigm. The code that I am using works when I only have one producer and one consumer but it does not work when I add another producer and another consumer.</p> <p>I have spent a while on this and can not seem to figure ...
0
1,674
Kafka API: java.io.IOException: Can't resolve address: xxx.x.x.xx:9091
<p>I am trying to send messages to Kafka which is installed in a Ubuntu VM. </p> <p>There are 3 Kafka brokers which have been started in the VM and a Consumer listening on the Topic also in the VM. All this works fine.</p> <p>In Intellij on Windows 7 I have written a small demo app for a KafkaProducer,</p> <pre><cod...
0
7,073
How to edit/update a txt file with php
<p>After I've read a lot of similar problems with the edit/update function on a file and none of it worked I would like to ask for some help.</p> <p>I am trying to edit a <code>.txt</code> document from php. I have tried these things:</p> <ol> <li><p>This was the last code which I've read here and didn't work.</p> <...
0
1,208
Google Play Games Service : ERROR_NOT_AUTHORIZED, when rollout for Beta
<p>Google Play Games Service : SIGN_IN status: ERROR_NOT_AUTHORIZED, when rollout for Beta. And also this :-</p> <pre><code>W Auth : [GetToken] GetToken failed with status code: UNREGISTERED_ON_API_CONSOLE E TokenRequestor: You have wrong OAuth2 related configurations, please check. Detailed error: UNREGISTERED_ON_...
0
1,654
Customize Camera View for Android using zbar
<p>I am new in android development. My app should activate the camera to scan a QR code and decode it to a string. This works fine, but I have one more requirement: to present the camera view in a frame and with a logo in one of the corners. I did not find an appropriate API in zbar sdk to make the frame and attach the...
0
5,708
Improve multi-thread indexing with lucene
<p>I am trying to build my indexes in Lucene with multiple threads. So, I started my coding and wrote the following code. First I find the files and for each file, I create a thread to index it. After that I join the threads and optimize the indexes. It works but I'm not sure... can I trust it in large scale? Is there ...
0
1,661
Django - print all objects attribute values
<p><strong>HTML</strong></p> <pre><code>&lt;thead&gt; &lt;tr&gt; {% for field in fields %} &lt;th&gt;{{ field }}&lt;/th&gt; {% endfor %} &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; {% for well in well_info %} &lt;tr&gt; &lt;td&gt;&lt;p&gt;{{ well.api }}&lt;/p&gt;&lt;/td&gt; &lt;td&gt;&lt;p&gt;...
0
1,071
How to fix validateDOMNesting(...): <td> cannot appear as a child of <tbody>. and Each child in a list should have a unique "key" prop
<p>I am trying to fix these two warnings:</p> <pre><code>Warning: validateDOMNesting(...): &lt;td&gt; cannot appear as a child of &lt;tbody&gt;. Warning: Each child in a list should have a unique "key" prop. </code></pre> <p>Here is my table js file:</p> <pre><code> &lt;table className="table table-hover"&gt...
0
1,077
404 error on main controller when using spring boot
<p>I m trying to do Spring MVC tutorial:</p> <p>It makes you create a main controller ad start a SpringApplication.</p> <p>When I run the SpringApplication, I can see that a Tomcat server gets started, a controller class gets instanced as it should. However, the mapping seems to fail : @RequestMapping("/greeting") Wh...
0
1,851
Running ffmpeg as library in android
<p>I've got a simple task to do. I need to merge set of pictures into a video using ffmpeg working in android environment. </p> <p>After over a week fighting with different tutorials and examples explaining how to run compile ffmpeg I have, let's say, middle success. I've finally compiled ffmpeg for android. </p> <p...
0
1,207
Mercurial "hg clone" on Windows via ssh with plink issue
<p>I have a Windows Server 2008 machine (iis7) that has CopSSH set up on it. To connect to it, I have a Windows 7 machine with Mercurial 1.5.1 (and TortoiseHg) installed.</p> <p>I can connect to the server using PuTTY with a non-standard ssh port and a .ppk file just fine. So I know the server can be SSH'd into.</p> ...
0
1,181
Sending image over Socket
<p>i have a small problem sending image over Socket(client-server), i receive only "UTF" text but not the image object, is there something wrong with code?,</p> <p>This code just sends the UTF txt and it's received on server side, i'm using the UTF text to identify an image(name) on server side and after identified it...
0
2,095
Android ANR - Input dispatching timed out
<p>I have started receiving several strange ANR-report (Application Not Responding) from many code locations.</p> <blockquote> <p>Input dispatching timed out (Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.)</p> </blockquote> ...
0
1,194