title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
The name 'GridView1' does not exist in the current context
<p>I have two files named as TimeSheet.aspx.cs and TimSheet.aspx ,code of the file are given below for your reference.</p> <p>when i build the application im getting error "The name 'GridView1' does not exist in the current context" even thought i have a control with the id GridView1 and i have added the runat="server...
0
2,473
How to consume child view's touch event in parent view's touchlistener?
<p>In my application I want to get the touch event of all child view's in my parent view's <code>onTouchListener</code> but I could not get this.</p> <p><strong>Example:</strong></p> <p>In my activity's view I have one frame layout which has some buttons and edittexts in it. So whenever I touch buttons or edit text I...
0
2,771
HttpRequestMessage.GetClientCertificate() returns null in Web API
<p>I have a .NET4.5 WebAPI 2 app that uses SSL Client Certificates for some custom security related checks. </p> <p>When debugging the app, <code>request.GetClientCertificate()</code> returns <code>null</code> for any service call, no matter what I tried so far.</p> <p><strong>The Tested Code:</strong></p> <p>Basica...
0
1,182
skipping incompatible /libSDL.a when searching for -lSDL
<p>I am trying to "make" ioquake3 on IBM machine. But, I kept getting the "skipping incompatible /libSDL.a when searching for -lSDL" error. I am thee ultimate beginner at Linux, but not a quitter! I have no privileges to install any libraries, and our server admin is not responding for about a week now. So, I've been g...
0
1,845
onCreateView not called with Fragment in ViewPager
<p>I am using <code>ViewPager</code> from the ACL to show a couple of <code>Fragment</code>s. At first, these Fragments where all <code>ListFragment</code>s as they contains a list. I'm trying to mimic a 2 column table, so each element in the list contains another list of two objects. I want each cell to be long-clicka...
0
2,605
How to fix 'sh: tsc not found' error in docker container when using Gitlab CI docker-in-docker
<p>I'm setting up Gitlab CI docker-in-docker for a project. Unfortunately the job keeps failing because installed NPM packages can't seem to be found when running commands. The error I'm getting:</p> <pre><code>backend_1 | backend_1 | &gt; tacta-backend@0.0.1 build /app backend_1 | &gt; tsc backend_1 | backe...
0
1,298
Android update ui from handler every second
<p>I need a little help with updating my UI from Runnable/Handler every second. I'm using this code :</p> <pre><code>Runnable runnable = new Runnable() { @Override public void run() { handler.post(new Runnable() { @Override public void run() { ...
0
1,104
Angular 6 Jasmine Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL
<p>I am not able to test some features of my application because sometimes (very often) protractor test fails in the beforeEach function.</p> <p>Probably I am missing something important because the test fails randomly, I found some discussion about maximize the timeouts but it doesn't solve the problem.</p> <p>I see...
0
1,600
Null pointer for blank columns and rows using Apache POI
<p>I need help regarding a recurring problem. Earlier I asked a similar question but it was partially answered. Question <a href="https://stackoverflow.com/questions/14227108/getting-null-pointer-exception-in-creating-cell-in-apache-poi">here</a> The problem is that everytime I wanted to write on a row that doesn't hav...
0
1,754
Recommended solution for AJAX, CORS, Chrome & HTTP error codes (401,403,404,500)
<p><strong>Background</strong> </p> <p><em>(If you are familiar with CORS, you might skip to the <strong>Question</strong> at the end)</em></p> <p>CORS [1] is a solution to allow browsers to permit access to resources from different domains. E.g. REST data backends using AJAX.</p> <p>It is well observed on the Inter...
0
1,128
jsgrid multiple custom control buttons?
<p>I would like to add multiple custom control buttons so I can add a custom click event to the buttons. The issue I am having is the delete button is only shown. I would like both the edit and delete buttons shown in every row. I have the following code: </p> <pre><code>&lt;script&gt; $( document ).ready(funct...
0
1,336
Segmentation Fault when using Threads and Semaphores, Mac Vs Linux
<p>My problem deals with a segmentation fault that I get when I run this program on a linux machine versus my own mac computer. This program runs how I believe it should on my own mac computer, yet when I try to run it on my school's linux computers, I get a segmentation fault that doesn't appear on my mac computer. I'...
0
3,843
Error while opening jenkins.war
<p>I have installed Jenkins through installer. I'm getting below error when I'm executing jenkins.war file. I have closed XAMPP which was using 8080 port. Still showing this error. Can anyone suggest how to resolve this?</p> <pre><code>C:\Program Files\Java\jdk1.8.0\jre\bin&gt;java -jar jenkins.war Running from: C:\Pr...
0
2,789
How to send hidden field values with angularjs using ng-value
<p>Here is my form: </p> <pre><code>&lt;form ng-submit = "submit()"&gt; &lt;input ng-model="formData.data" type="text" name="sticky_content" placeholder="protein" required="true"/&gt; &lt;input type="hidden" name="time_start" ng-value="{{getStuff.e_time}}" required="true"/&gt; ...
0
1,331
Valgrind, "uninitialized value(s)" error
<p>In my C program, I'm allocating memory using <code>malloc()</code> which does, in contrast to <code>calloc()</code>, <em>not</em> initialize the memory and it might still contain garbage. Mostly, in context of the allocation, I do not make any changes to the memory allocated by <code>malloc()</code>. (For example in...
0
1,915
How can I upload a file using AsyncFileUpload and save the bytes in database?
<p>I'm using <code>radAsyncFileUpload</code> to upload a file. I want to save the file contents in a database as bytes. Here's my code so far:</p> <pre><code>protected void DetailsView1_ItemInserting(object sender, DetailsViewInsertEventArgs e) { if (DetailsView1.CurrentMode == DetailsViewMode.Insert) { ...
0
1,058
Jasper Report : Resource not found
<p>I am developing using Netbeans 7.1.</p> <p>In my jasper report I have subreport in it. It works in one place perfectly. I copied and pasted in another place and now shows this error : </p> <pre><code>net.sf.jasperreports.engine.JRException: Resource not found at : D:\ShareMarket\build\web\WEB-INF\classes\custom\kk...
0
1,292
Call to a member function set_userdata() on a non-object, Codeigniter OAuth2
<p>I am trying to use <a href="https://github.com/philsturgeon/codeigniter-oauth2" rel="nofollow">philsturgeon's OATH2 spark for CodeIgniter</a> to authenticate a user using Facebook. I installed the Spark and tried the Usage Example tha he gives in the github.</p> <p>In the following code I only changed the id and se...
0
1,035
How to implement login page using Spring Security so that it works with Spring web flow?
<p>I have a web application using Spring 2.5.6 and Spring Security 2.0.4. I have implemented a working login page, which authenticates the user against a web service. The authentication is done by defining a custom authentincation manager, like this:</p> <pre><code> &lt;beans:bean id="customizedFormLoginFilter" cl...
0
1,290
android.view.View.setVisibility(int) crashes the new activity
<p>So recently I'm trying to implement a FAB that will expand into a new activity but it crashes after the FAB was pressed. Moreover from this question where I followed the steps on implementing it: <a href="https://stackoverflow.com/questions/31624935/floatingactionbutton-expand-into-a-new-activity">FloatingActionButt...
0
2,297
Camera display / preview in full screen does not maintain aspect ratio - image is skewed, stretched in order to fit on the screen
<p>I have developed a small application for displaying camera preview in full screen. I'm using Camera API for this.</p> <p>This is the activity layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orienta...
0
1,742
Click link to scroll to specific section react.js
<p>I have implemented a side menu that has a link tag for each section but I am unsure how to implement the functionality when clicking on them the user is taken to the specific section. I understand how to do it if the it was in the same component and if I was generating the sections in a normal fashion but I am doing...
0
2,863
How do I get one pod to network to another pod in Kubernetes? (SIMPLE)
<p>I've been banging my head against this wall on and off for a while. There is a ton of information on Kubernetes on the web, but it's all assuming so much knowledge that n00bs like me don't really have much to go on.</p> <p>So, can anyone share a <strong>simple</strong> example of the following (as a yaml file)? All...
0
9,897
Android linear layout align center and right
<p>This is what I have:</p> <p><img src="https://i.stack.imgur.com/FH6X9.png" alt="enter image description here"></p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:a...
0
1,059
MVC Error: The model item passed into the dictionary is null
<p>I'm just trying to build a view but I'm getting the following error:</p> <blockquote> <p>System.InvalidOperationException: The model item passed into the dictionary is null, but this dictionary requires a non-null model item of type 'System.DateTime</p> </blockquote> <p>Now, I know why this is coming up,...
0
1,280
TypeError: Cannot read property 'open' of undefined modal
<p>I am trying to display a modal with the information of a certain item. But when I call the function it reads:</p> <blockquote> <p>TypeError: Cannot read property 'open' of undefined at Scope.$scope.openModal</p> </blockquote> <p>I was hoping someone could tell me why, here is the relevant code:</p> <p><strong>T...
0
1,556
Android App Crashes on Startup: SQLite NullPointerException in ContactsFragment
<p>I'm working on integrating a database to save and store basic contact information to be retrieved at a later time. However, my app is now crashing on startup so I cannot even verify if the table is being created, etc. </p> <pre><code>05-05 16:39:50.671 11631-11631/treehouse.greenlight E/AndroidRuntime﹕ FATAL EX...
0
3,234
Spring-boot oauth2 splitting authorization server and resource server
<p>Im trying to split the resource server from the authorization server in spring-boot. I have two different applications that i'm running separately. In the authorization server i can get the bearer token from oauth/token but when i'm trying to get access to the resource(sending the token in header) i'm getting an inv...
0
1,048
Android SDK and AVD Manager will not run
<p>I installed the Android SDK but I cannot use it because the AVD and SDK Managers do not run. When I try to open either one of them, a command prompt window pops up for about a half a second and then closes. I have tried running the exe from the command prompt to see if there was an error message but there is no outp...
0
2,171
com.android.volley.VolleyError: java.lang.NullPointerException
<p>I have read <a href="https://stackoverflow.com/questions/218384/what-is-a-null-pointer-exception-and-how-do-i-fix-it">What is a NullPointerException, and how do I fix it?</a> <a href="https://stackoverflow.com/questions/31243401/attempt-to-invoke-virtual-method-int-java-lang-string-length-on-a-null-objec">Attempt to...
0
3,523
flutter - update TextField/TextEditingController via state (provider/consumer)
<p>i have a TextField on a "page". i have a TextEditingController hooked to it. I can successfully set the value of the TextField via something easy like:</p> <pre><code>usernameController.text = '1234'; </code></pre> <p>however, i need to be able to change this field from a child page. the use case is a login for...
0
1,051
Migration to hibernate core 5.2.1 ava.lang.NoSuchMethodError: org.hibernate.Session.getFlushMode()Lorg/hibernate/FlushMode;
<p>Using spring version:4.3.1,Spring data:1.10.2,hibernate core: 5.2.1. using postgres Database pg connector version :9.4.1208.jre7 After upgrading from hibernate 5.1.0 to 5.2.1 when i am trying to create an entity getting below exception</p> <pre><code> at java.lang.Thread.run(Thread.java:745) Caused by: org.sprin...
0
2,495
Revolution Slider - How to make different time for different items?
<p><strong>THE SITUATION:</strong></p> <p>I am using for my slideshow the Slider Revolution plugin.<br> I need to set different times (duration) for the images displayed. For example the first image i need to display for just 2 seconds, while the second image for 7 seconds.</p> <p><strong>THE QUESTION:</strong></p> ...
0
2,203
facebook login error FB.login() called before FB.init()
<p>i have a problem with loggin in into facebook i keep getting the error code: FB.login() called before FB.init(). i done various things but keep getting the error. here's the html code: </p> <pre><code> &lt;!-- Javascript =================================================== --&gt; &lt;script src="//co...
0
2,085
Error 175: The specified store provider cannot be found in the configuration, or is not valid
<p>I just joined a project and installed Microsoft Visual Studio Professional 2012 Version 11.0.51106.01 and Microsoft SQL Server 2008 R2 on a 64-bit machine. </p> <p>Another team member is able to build the solution from his machine, but from my machine I get the following error:</p> <p>Error 175: The specified stor...
0
2,225
How to fix NotOfficeXmlFileException in java Apache POI?
<p>I'm trying to create a new excel file with just "hello" in it. Here's my code:</p> <pre><code>import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; impor...
0
1,350
hadoop - Connection refused on namenode
<p>I've searched web and stackoverflow for a long time but it was not useful.</p> <p>I have installed hadoop yarn 2.2.0 in 2 node cluster setup. but something goes wrong. when I start hadoop daemons using start-dfs.sh and start-yarn.sh on master node, they successfully run in master and slave (my master's hostname is ...
0
2,000
Post request with multipart/form-data in appengine python not working
<p>I'm attempting to send a multipart post request from an appengine app to an external (django) api hosted on dotcloud. The request includes some text and a file (pdf) and is sent using the following code</p> <pre><code>from google.appengine.api import urlfetch from poster.encode import multipart_encode from libs.pos...
0
1,102
set_model() missing 1 required positional argument: 'model'
<p>I'm have created a Keras Sequential Model and am using Adam optimizer. I wished to get the learning rate after every epoch. This <a href="https://stackoverflow.com/questions/47490834/how-can-i-print-the-learning-rate-at-each-epoch-with-adam-optimizer-in-keras">stackoverflow question</a> seem to answer my question. H...
0
2,812
JQuery get data from JSON array
<p>This is part of the JSON i get from foursquare. </p> <p><strong>JSON</strong></p> <pre><code>tips: { count: 2, groups: [ { type: "others", name: "Tips from others", count: 2, items: [ { id: "4e53cf1e7d8b8e9188e20f00", createdAt: 1314115358...
0
1,651
Object Detection using Surf
<p>I am trying to detect the vehicle from the video , I 'll do it in real time application but for the time being and for good understanding i am doing it on video , code is below:</p> <pre><code>void surf_detection(Mat img_1,Mat img_2); /** @function main */ int main( int argc, char** argv ) { int i; int key; C...
0
1,879
Google oauth java client to get an access token fails with "400 Bad Request { "error" : "invalid_request" }"
<p>I am using "web server applications" example shown here. In my callback servlet I want to retrieve an access token but I am not able to successfully do it. Following is my code </p> <pre><code> @Override protected String getUserId(HttpServletRequest req) throws ServletException, IOException { // return user...
0
2,321
Android. SQLite Exception: no such column _id
<p>Im having some troubles trying to get the info stored in my database and showing it in a ListView.</p> <p>This is the ListActivity where i want to show the rows:</p> <pre><code>public class Prueba extends ListActivity{ /** Called when the activity is first created. */ @Override public void onCreate(Bu...
0
1,921
How to get control nav on top of flexslider?
<p>I am new to flexslider (<a href="http://www.woothemes.com/flexslider" rel="nofollow">http://www.woothemes.com/flexslider</a>) and having difficulty getting the control nav to be on top of the slider image. I would like it to be in the bottom right-hand corner of the images. But no matter what I seem to do with the s...
0
1,073
How to implement RecyclerView with CardView rows in a Fragment with TabLayout
<p>I would like to implement a ListFragment in an Activity that uses a TabLayout, so that I can swipe between the different lists. In the end it should become a booking application so that you can choose between different disciplines and book a certain time slot withing it. However so far I only achieve to do either a ...
0
2,436
bind: Address family not supported by protocol
<p>This code works on my other vps, but with linode it doesn't.</p> <pre><code>#include &lt;sys/types.h&gt; #include &lt;sys/socket.h&gt; #include &lt;sys/wait.h&gt; #include &lt;netinet/in.h&gt; #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;errno.h&gt; #include &lt;unistd.h&gt; #include &lt;netdb.h&...
0
2,604
cropper js resize and crop with image magic
<p>How to perform resize and crop with ImageMagick using the data from <a href="https://github.com/fengyuanchen/cropper" rel="nofollow noreferrer">cropperjs</a>?</p> <p>The user can upload a large image and zoom/pan to crop. Tried using blob but it looses too much quality and times out too often. </p> <p><a href="htt...
0
2,162
System.AccessViolationException when calling C++ dll
<p>I am trying to get the Java Access Bridge (2.02) to work with C# (.NET 3.5). I do have it working for some functions, but when I call a function that references a struct(getAccessibleContextInfo), I get this error message: <strong>System.AccessViolationException: Attempted to read or write protected memory. This is...
0
1,703
twitter4j: 401 authentication credentials missing or incorrect
<p>I'm currently trying to get the userTimeline of a bunch of users. This has worked for me in the past, but now doesn't work anymore. I'm using twitter4j and using oauth. I've registered 2 applications on my account so far, which both should be able to access the twitter-api. However since yesterday I'm getting a 401 ...
0
1,172
Oracle Advance Queue - Dequeue not working
<p>I can't seem to find the solution to my problem, I've been stuck at this for hours.</p> <p>I'm usings Oracle AQs:</p> <pre><code> Dbms_Aqadm.Create_Queue_Table(Queue_Table =&gt; 'ITEM_EVENT_QT', Queue_Payload_Type =&gt; 'ITEM_EVENT', ...
0
4,247
Unable to open chrome browser using Selenium Webdriver. Loading unpacked extensions are disabled by administrator
<p>I am automating my application using Selenium Webdriver, C#, Visual Studio and Chrome browser.</p> <p>I am getting below popup when selenium tried to open the chrome browser.</p> <pre><code>Failed to load extension from:C:\Users\VARA~1.PAK\AppData\Local\Temp\scoped_dir6712_14913\internal. Loading of unpacked exten...
0
1,269
Hidden Features of C#?
<p>This came to my mind after I learned the following from <a href="http://www.stackoverflow.com/questions/8941/generic-type-checking">this question</a>:</p> <pre><code>where T : struct </code></pre> <p>We, C# developers, all know the basics of C#. I mean declarations, conditionals, loops, operators, etc.</p> <p>Som...
0
4,981
missing svnkit dependencies on the classpath using svnant
<p>I am trying to get <code>svnkit</code> working with <code>svnant</code>.</p> <p>Here is my build file:</p> <pre><code>&lt;path id="svnant.classpath"&gt; &lt;pathelement location="${env.ANT}/../lib/svnant.jar"/&gt; &lt;pathelement location="${env.ANT}/../lib/svnClientAdapter.jar"/&gt; &lt;pathelement lo...
0
1,380
how to parse json list at c#
<p>How to parse this json list at c# ? I have read this list at my service side.I using web api .</p> <pre><code>[ { "Id":1, "Adjustment":{ "CardNumber": "1234567895678", "TimeStamp": "2016-06-14 12:00:56", "Point": -13.09 } }, { "Id":2, "Adjustment":{ "CardNumber": "2345673245689", "TimeSt...
0
1,702
Error: module not found in Jupyter Notebook (sklearn)
<p>I have an issue importing <code>scikit-learn</code> in my Jupyter notebooks, and I am at a loss as to why this is not working. I do not recall having this issue before with other packages. I have seen several threads with people having similar problems with this specific module, but none of the proposed checks have ...
0
1,873
Get the table row data with a click
<p>I have a table and I wanted to allow user to click on any elements on the table to get the row of data. How do I do that?</p> <p>For example, I have a table like this in my view.</p> <pre><code> &lt;table class="myTable"&gt; : &lt;tr class="table"&gt; &lt;th class="table"&gt; ...
0
1,325
Layout with frames
<p>Currently working on a graphical user interface. I am trying to make the layout out of 3 QFrames.</p> <p>As seen in the screenshot below, the <strong>yellow</strong> frame is on the right side. I would like that frame to be on top of the <strong>right frame</strong>. (On top of the numpad, taking the whole horizonta...
0
1,995
Check if mongoDB is connected
<p>I have mongoDB in my app.</p> <p>I want to check if mongoDB is connected, before I listen to the app.</p> <p>Is it the best way for doing it?</p> <p>This is my server.js file:</p> <pre><code>var express = require('express'); var mongoDb = require('./mongoDb'); var app = express(); init(); function init() { ...
0
1,411
How to create multiple output files from a single T4 template using Tangible Editor?
<p>I tried to follow this tutorial: <a href="http://t4-editor.tangible-engineering.com/blog/how-to-generate-multiple-output-files-from-a-single-t4-template.html" rel="noreferrer">http://t4-editor.tangible-engineering.com/blog/how-to-generate-multiple-output-files-from-a-single-t4-template.html</a></p> <p>with visual s...
0
1,464
addEventListener does not work in IE 11
<p>I am using javascript to open a popup and execute some code once it is loaded.</p> <p>This is the code:</p> <pre><code>// Öffnen des Print Popups binden. $('#revi_print').unbind(); $('#revi_print').click(function() { // Popup erstellen. popup = window.open('report_handle/print.php?filter_report=' + $('#re...
0
2,126
Components overlapping each other in React
<p>I am rendering 2 components in my React application, which should show one after the other on the screen. But they are overlapping. Also the layout is also not how I expected it to be, <a href="https://i.stack.imgur.com/Er5uW.png" rel="noreferrer">see photo of error</a>. I am not able to figure out the cause. Link t...
0
4,339
Swift 2 iOS 9 - ld: warning: directory not found iPhoneSimulator9.0.sdk/Developer/Library/Frameworks
<p>I have a warning in my ios appTests:</p> <pre><code>Ld /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Products/Debug-iphonesimulator/exchangerateTests.xctest/exchangerateTests normal x86_64 cd /Users/Mazorati/Projects/iOS/exchangerate export IPHONEOS_DEPLOYMENT_T...
0
1,098
ImportError: No system module 'pywintypes' (pywintypes39.dll)
<p>I was making a virtual assistant in python, but I see the following error.</p> <pre><code>ImportError: No system module 'pywintypes' (pywintypes39.dll) </code></pre> <p>I am using Windows 10 and Python 3.9</p> <p>Here is the code</p> <pre><code>import speech_recognition as sr import pyttsx3 listner=sr.Recognizer() ...
0
1,429
Align nav-items to right side in bootstrap-4
<p>I just switched to bootstrap 4 and reworking all my html and scss to work with it and I cant seem to find how to put a group of nav-items on the right side of the navbar. This is my navbar code:</p> <pre><code>&lt;nav class="navbar navbar-full navbar-dark bg-primary"&gt; &lt;button class="navbar-toggler hid...
0
2,199
JSF resetting form after submit
<p>i have a small problem with my jsf form. i made an example registration form with a submit button and a reset button:</p> <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html...
0
2,798
Flutter- ExpansionTile expand and collapse on click
<p>I am taking this as a reference to expanding and collapsing of expansion tile-------<a href="https://stackoverflow.com/questions/48930372/flutter-collapsing-expansiontile-after-choosing-an-item----">Flutter - Collapsing ExpansionTile after choosing an item</a><a href="https://i.stack.imgur.com/RVpLO.png" rel="norefe...
0
3,863
jQuery not defined + MVC4
<p>Im creating the below MVC view that has got some jquery script in it. However this script is not getting executed. Getting jQuery undefined error.</p> <p>I want to write including script directly in view instead of using layout page.</p> <p>Can somebody advise what am I doing wrong here?</p> <pre><code>@{ ViewBag...
0
1,816
Android POST request with JSON
<p>After researches i still cant send a JSON POST request to a server.</p> <p>I already tried some older answers:</p> <p><a href="https://stackoverflow.com/questions/4205980/java-sending-http-parameters-via-post-method-easily">Java - sending HTTP parameters via POST method easily</a></p> <p><a href="https://stackove...
0
1,141
Understanding context.xml in tomcat 6
<p>I created a mainly empty dynamic web project in eclipse.</p> <p>It has</p> <ul> <li>no servlets</li> <li>no jsp files</li> </ul> <p>The web.xml is </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javae...
0
1,836
FileProvider.getUriForFile returns NullPointerException
<p>I'm trying to write my first android app, which will involve taking a picture and doing stuff with it. </p> <p>I've put together some code after looking at several tutorials online but am getting the following NullPointerException whenever the button is clicked:</p> <pre><code>10-03 14:48:00.284 26310-26310/org.br...
0
3,870
Using Twitter Bootstrap in ASP.NET project
<p>I am trying to write my first ASP.NET website and I really want to use the Twitter Bootstrap but I'm failing at the first hurdle.</p> <p>I downloaded the Zip file from <a href="http://twitter.github.com/bootstrap/" rel="noreferrer">here</a>, unzipped it and added the files to my solution and the following lines to ...
0
1,707
Cannot load driver class: com.mysql.jdbc.Driver with Gradle and Spring Boot
<p>My problem is the following. I'm learning how to use JDBC, Gradle and Spring framework (I'm new to those subjects). I've been trying to implement the following <a href="http://xantorohara.blogspot.ca/2013/11/spring-boot-jdbc-sample.html" rel="noreferrer">example</a> with one difference, MySQL database instead of Pos...
0
8,397
Binary expression tree C++
<p>I have a little problem. I'm trying to add a mathematical expression to a binary tree but I can't understand the algorithm. Here it is:</p> <pre><code>If the current token is a '(': Add a new node as the left child of the current node, and descend to the left child. If the current token is in the list ['+','-','...
0
1,187
"Unexpected token: punc ())" when building for production
<p>If I try to test-build my application with <code>ng build --prod --aot</code> I get the following, quite short, error message:</p> <pre><code>$ ng build --prod Date: 2019-01-26T17:26:45.018Z Hash: 979690c7a363996f24b8 Time: 282...
0
5,937
How can I compile only necessary widgets in Vaadin 7 with Maven?
<p>I am new to the Vaadin framework which I looks very interesting, using eclipse and maven to develop and build my application I find pretty annoying that every time I do a mvn clean install it will take so long time to build the app, I found that this is because it compiles the whole set of widgets.</p> <p>Even if I...
0
1,117
Populate table from array using JQuery
<p>I have an array of 16 elements that I want to fill a table. I want it to have 2 rows with 8 cells in each row which is filled with the array. My problem is that when the table is populated, the table populates all elements into one row. I have not had much experience with JQuery and I want to try to get this to work...
0
1,075
OpenCV Tutorial: Load and Display an Image (codeblocks, fedora20)
<p>I successfully installed and linked and included OpenCV. (I know it was successful because I compiled and ran the opencv program <a href="http://opencv.blogspot.com/2005/03/my-first-opencv-program.html" rel="noreferrer">found on this site</a>)</p> <p>So I went back to the OpenCV documentation and tutorials pages. I...
0
1,117
Using json_normalize to flatten nested json
<p>I'm trying to flatten a json file using json_normalize in Python (Pandas), but being a noob at this I always seem to end up in a KeyError.</p> <p>What I would like to achieve is a DataFrame with all the Plays in a game.</p> <p>I've tried numerous variants of paths and prefixes, but no success. Googled a lot as wel...
0
1,579
Memory error with large data sets for pandas.concat and numpy.append
<p>I am facing a problem where I have to generate large DataFrames in a loop (50 iterations computing every time two 2000 x 800 pandas DataFrames). I would like to keep the results in memory in a bigger DataFrame, or in a dictionary like structure. When using pandas.concat, I get a memory error at some point in the loo...
0
1,236
How to Get total and Current Slide Number of Carousel in Bootstrap 3.3.4
<p>Hello guys i want to get current slide number of carousel in bootstrap 3.3.4 i already used this script in below 3 version and work perfectly but in version 3.3.4 not working any one help me out of this situation thnx in advance code which is use</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div c...
0
1,244
java.net.SocketException: No buffer space available (maximum connections reached?): connect
<p>Hi I am using Apache HTTP Client 4.0 to upload some files on a server based on HTTPS protocol. The uploaded application is running 24x7. Today suddenly it started to throw this exception-</p> <pre><code>java.net.SocketException: No buffer space available (maximum connections reached?): connect at java.net.Plain...
0
1,841
peer channel creation fails in Hyperledger Fabric
<p>I am trying to set up a sample hyperledger fabric environment with an orderer and 2 peers. I am not using docker approach instead I am running the actual executable itself.</p> <p>Orderer and 2 peer nodes started successfully. However, channel creation fails with the following error. Any help would be greatly appre...
0
10,418
Websocket server: onopen function on the web socket is never called
<p>I'm trying to implement a C# web socket server, but its giving me a few troubles. I'm running a webserver(ASP.NET) to host the page with the javascript and the web socket server is implemented as a C# console application.</p> <p>I'm able to detect the connection attempt from the client (chrome running the javascript...
0
1,040
Make session expiration redirect back to login?
<p>When user logs in and is authenticated, I use <code>Auth::user()-&gt;username;</code> to show username of user on dashboard. However, for some reason when session expires the class <code>Auth</code> doesn't seem to work and dashboard page throws error as <code>trying to get property of non-object</code> for <code>Au...
0
2,835
UnsupportedOperationException at java.util.AbstractList.add
<p>I'm having issues getting a block of code to run properly. I'm not entirely sure WHAT this code does (I'm trying to get a plugin that's out of date to work properly with our server), I just know every 20 minutes it runs and throws out an error. Here's the section of code where the issue is happening:</p> <pre><code...
0
1,157
MKAnnotationView - Lock custom annotation view to pin on location updates
<p><strong>Update #5</strong> I guess it's bounty time. 100+ views and no one's taken a stab, even with the code sample I've posted. How about some reputation points!</p> <p><strong>Update #4</strong>This is a pretty complicated question, so I created a new tab based project which just includes the parts of my app I...
0
1,430
android.content.ActivityNotFoundException using Intent
<p>I am writing an app in which i am trying to send an email with some data, but whenever i do click on Submit button to send an email, <em>getting</em> : <strong>Unfortunately App has Stopped</strong></p> <p><strong>Error:</strong></p> <pre><code>android.content.ActivityNotFoundException: No Activity found to handle...
0
1,195
Reading HttpResponseMessage.Content throws Newtonsoft.Json.JsonReaderException when reading webapi 2 token
<p>Hi I have writen a piece of code that should login into a WebAPI 2 site from a c# desktop application everything seams to work but I get an Newtonsoft.Json.JsonReaderException with the message as follows </p> <blockquote> <p>Error reading string. Unexpected token: StartObject. Path '', line 1, position 1.</p> </b...
0
1,368
C++ - pointer being freed was not allocated error
<pre><code>malloc: *** error for object 0x10ee008c0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap: 6 </code></pre> <p>Or I get this when I try and print everything</p> <pre><code>Segmentation fault: 11 </code></pre> <p>I'm doing some homework for an OOP class a...
0
5,004
Get a JSON value from an array using Laravel
<p>I am trying to get the latitude and longitude values from a JSON array - <code>$response</code>, returned from Google, from their Geocoding services.</p> <p>The JSON array is returned as such (random address):</p> <pre><code>{ "results":[ { "address_components":[ { "lon...
0
1,864
PUT and Delete not working with ASP.NET WebAPI and Database on Windows Azure
<p>I'm working on a ASP.NET WebAPI project with basic CRUD operations. The project runs locally and has a sample database living inside Windows Azure. </p> <p>So far, the Http GET and POST works fine, giving me a 200 and 201. But I'm struggling with DELETE and POST. I changed the handlers in the Web.config, removed We...
0
1,484
Recurring Events, SQL Query
<p>I am aware that questions about recurring events are common but I have not been able to find one with an answer to this specific question about recurring events other than those to do with calendar apps. The main difference being that the events in our app. will only ever be seen either in reports or by themselves r...
0
3,667
Warning: findDOMNode is deprecated in StrictMode when using react-bootstrap Navbar
<p>I tried to use react-bootstrap's Navbar component in the typescript template and I found below warning in Chrome console.</p> <pre><code>index.js:1 Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the elemen...
0
1,033
AKS. Can't pull image from an acr
<p>I try to pull image from an ACR using a secret and I can't do it.</p> <p>I created resources using azure cli commands:</p> <pre><code>az login az provider register -n Microsoft.Network az provider register -n Microsoft.Storage az provider register -n Microsoft.Compute az provider register -n Microsoft.ContainerSer...
0
1,426
jquery multiselect selected data order
<p>I am using jquery multiselct from this page <a href="http://loudev.com/" rel="noreferrer">http://loudev.com/</a>. It works well but now the system requirements need this multiselect to past the data in the order that have been selected. </p> <p>No problem on the display because the data are arranged according to t...
0
1,242
How to solve JsonWebTokenError "invalid signature" after assigning some infos to the generated token?
<p>Have a problem when trying to verify the token (it was working fine before i added some data to it before generating it) .. but now it does not seem to be working !</p> <p>This is how i generate the token when user send a POST request (login)</p> <pre><code>require('dotenv') const jwt = require('jsonwebtoken')...
0
1,076
WSSecurityException not found when adding spring-ws security
<p>I followed the tutorial at: <a href="http://krams915.blogspot.com/2011/01/spring-ws-2-ws-security-using-wss4j.html" rel="nofollow">http://krams915.blogspot.com/2011/01/spring-ws-2-ws-security-using-wss4j.html</a></p> <p>but i get an exception:</p> <p><pre><code> 14/08/2011 17:56:42 org.apache.catalina.core.Standar...
0
2,635
Moqing Entity Framework 6 .Include() using DbSet<>
<p>I'd like to give the background to this question. Skip if you like. For quite a while I've paid close attention to the on going debates on stackoverflow and elsewhere regarding testing of code as it relates to EF. One camp says, test directly against a database because of the differences between the Linq to Objects...
0
2,769
UI Layout Initialization Error-The center-pane element does not exist
<p>I am using a Layout structure that has centerLayout, westLayout,northLayout </p> <p>When i run the file, i take this following error: "/UI Layout Initialization Error. The center-pane element does not exist. The-center pane is a required element."</p> <p>my template is :</p> <p></p> <pre><code> &lt;p:la...
0
2,768
How to pass a state className variable to another component in react
<p>I'm not sure if this is the best way to do things but i want to pass one class name variable to another component in react.</p> <p>This is a button which launch an animation onClick just adding one className to few elements of it. Also i created the var = overlay this.state.cliked ? 'open' : '' to launch an overlay...
0
1,158