title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Spring Security Logout Back Button
<p>Does spring security have a way to prevent the last point below? I'm using 3.0.5</p> <p>-user logs into my website -user goes to any page in website and clicks log out -log out link invalidates user session and sends them to the login page in my website -in same browser, user navigates to new website (say cnn.com)...
0
1,454
How do I import a pre-existing Java project into Eclipse and get up and running?
<p><em>Comment on Duplicate Reference: Why would this be marked duplicate when it was asked years prior to the question referenced as a duplicate? I also believe the question, detail, and response is much better than the referenced question.</em></p> <p>I've been a C++ programmer for quite a while but I'm new to Java...
0
1,044
Writing to Oracle Database using Apache Spark 1.4.0
<p>I am trying to write some data to our Oracle database using Spark 1.4.0 <strong>DataFrame.write.jdbc()</strong> function.</p> <p>The symmetric <strong>read.jdbc()</strong> function for reading data from Oracle Database to DataFrame objects works well. However while I am writing the dataframe back (I also tried to w...
0
1,850
Laravel Permission Denied
<p>Tonight, I tried to run <code>composer install</code> and all the dependencies installed correctly, and then composer ran <code>php artisan clear compiled</code> and I ran into trouble.</p> <p>Here's the error it returned:</p> <pre><code>&gt; php artisan clear-compiled ...
0
5,416
Nginx fails to load css files
<p>I've recently decided to switch from Apache2 to Nginx. I installed Nginx on my CentOS server and setup a basic configuration. When I tried to load my site in browser (FF/Chrome) I noticed that css file is not loaded. I checked the error console and saw this message:</p> <p><code>Error: The stylesheet http://example...
0
1,737
How to change color of text in c3.js charts?
<p>I am using c3.js to create line and bar charts.I want to change the color of x axis and y axis values. As I want black background for the chart so the text/values color on x-axis and y-axis must be white to be visible. I have tried using the css below but it doesnt work.</p> <pre><code>#chart .c3-text { ...
0
2,176
Android WebView not loading second page from cache
<p>I have an Android app that simply houses a website. I would like the app to cache the pages of the website for offline use.</p> <p>I'm doing a simple test to see if the cache is working but unfortunately it is failing to load a page i have previously loaded in online mode, when offline. To make things clearer i loa...
0
9,704
jQuery datepicker doesn't appear in Firefox
<p>I have an input form using FLAT UI KIT that MUST contain a datepicker, so I chose to use jQuery's widget. But when I run it in Chrome the datepicker shows up, whilet on Firefox it is shows as a simple text input. Here is my code:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;me...
0
2,900
Passing an array to a javascript onclick function
<p>I have an array that I want to pass to a javascript onclick function.</p> <pre><code> var event_data = new Array(); event_data.push(event_id); event_data.push(event_title); event_data.push(channel_id); event_data.push(channel_name); ...
0
1,205
Split large file according to value in single column (AWK)
<p>I would like to split a large file (10^6 rows) according to the value in the 6th column (about 10*10^3 unique values). However, I can't get it working because of the number of records. It should be easy but it's taking hours already and I'm not getting any further.</p> <p>I've tried two options: <br>Option 1</p> <...
0
1,966
forEach not a function javascript
<p>I am trying loop through a JSON object to extract data from it. When I run my code I get the error:</p> <p>Type Error: element.listing.forEach is not a function.</p> <p>I would also like to note that I have done this earlier in my code and it works perfectly. I have tried the solutions posted on <a href="https://s...
0
3,721
Rendering Problems: java.lang.NullPointerException at android.support.v7.widget.RecyclerView in Android Studio 1.1.0
<p>I have recently updated android sdk to api 22 and android studio 1.1.0. After that I am getting rendering issues on RecyclerView. Here is what I am getting</p> <pre><code> java.lang.NullPointerException at android.support.v7.widget.RecyclerView.computeVerticalScrollRange(RecyclerView.java:1216) at android.view.Vie...
0
1,320
can't get DB Connection using JNDI datasource on JBoss
<p>I'm studying how to build java webapps for JBossAS 5.1.0 and I'm trying to build a very basic jsp web app on JBossAS5 using a JNDI datasource for data access. </p> <p>When trying to open a connection I get this exception:</p> <pre><code>21:42:52,834 ERROR [STDERR] Cannot get connection: org.jboss.util.NestedSQLEx...
0
1,488
Dynamically change the row height in a listview based on number of list items
<p>I was creating an Android Application in which I use a ListView. The ListView consists of CheckedTextView list items. My activity contains an EditText at the top, a TextView below that and a Button at the bottom. The space between the TextView and the button is the area occupied by the ListView. Now, since my ListVi...
0
1,532
Fatal error: Out of memory, but I do have plenty of memory (PHP)
<p>Since my question is getting longer and longer, I decide to re-write the whole question to make it better and shorter.</p> <p>I run my website on dedicated server with 8GB memory. I am fully aware that I need to raise the memory limit on php.ini setting. I have set it from 128M to 256M and to -1. Still the problem ...
0
1,200
Card width match with parent : flutter
<p>I am new in Flutter so I want to know that how can I set a width to match parent layout width</p> <pre><code>new Scaffold( body: new Container( decoration: new BoxDecoration(color: AppColors.hoBlue), child: Padding( padding: EdgeInsets.all(20.0), child: new Center( child: Column( mainA...
0
2,242
How to make simple calculations using model items and an input from a form in ASP.net MVC 3?
<p>Am new to programming and ASP.net MVC 3 so don't be surprised by my lack of knowledge on this.. Okay, I want to multiply two decimals, One decimal comes from the form that a user fills and the other decimal comes from the Model class (gets it from the database).</p> <p>I have two Model classes called RATE &amp; PRO...
0
1,816
"A bean with that name has already been defined" error coming in spring boot multi module project
<p>I am working with one spring boot multi module maven project, here i am getting below exception, every time when i run application it fails for different different files.</p> <pre><code> The bean 'evServiceCpeRepository' could not be registered. A bean with that name has already been defined </code></pre> <p>this ...
0
1,861
Error: How to serialize data from getStaticProps : Next.js
<p>I'm working with Next.js, I tried accessing data but got this error:</p> <pre><code>Error: Error serializing `.profileData` returned from `getStaticProps` in &quot;/profile/[slug]&quot;. Reason: `undefined` cannot be serialized as JSON. Please use `null` or omit this value. </code></pre> <p>My code:</p> <pre><code>i...
0
1,626
Android: How to hide the System UI properly
<p>I'm developing a video player application and I've faced to a problem. I have a custom video controller which contains a fullscreen button and I want hide the System UI (navigation and status bars) when the user enters to fullscreen mode. I've tried to do something like <a href="https://developer.android.com/trainin...
0
1,427
removing array from multidimensional array
<p>I have a session that looks like this:</p> <pre><code>array(3) { ["counter"]=&gt; int(0) ["currentItem"]=&gt; string(1) "2" ["addedToCart"]=&gt; array(12) { [0]=&gt; array(11) { ["aantal"]=&gt; int(1) ["id"]=&gt; string(1) "1" ["filmtitel"]=&gt; string(11) "a_...
0
1,341
Using Output Parameter in SqlDataSource
<p>I am retrieving the scope_identity of a db entry, and I want to use that variable in a different SqlDataSource, primarily as an but I am unable to access the variable. I have the variable being displayed in a msgbox, and it is displaying properly, I am just unsure how to access it in the SqlDataSource. Here is my c...
0
1,309
How to get loaded web page title in Android WebView?
<p>I'm using a WebView in my application, I have a requirement to change the app title based on the page user is on. How can I do this in Android WebView?</p> <p>I did this in iphone by following line</p> <pre><code>self.title = [webPage stringByEvaluatingJavaScriptFromString:@"document.title"] @Override public ...
0
1,272
RecyclerView java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter position. Due to changing getItemCount()
<p>I am getting a <code>java.lang.IndexOutOfBoundsException: Inconsistency detected</code> with the <code>RecyclerView</code>, but only when I seem to fling it. When I scroll slow enough it doesn't crash on me.</p> <p>I use my base adapter for many other subclasses but only certain ones crash on me. Any idea why this ...
0
11,734
Error: expected type-specifier before 'ClassName'
<pre><code>shared_ptr&lt;Shape&gt; circle(new Circle(Vec2f(0, 0), 0.1, Vec3f(1, 0, 0))); shared_ptr&lt;Shape&gt; rect(new Rect2f(Vec2f(0, 0), 5.0f, 5.0f, 0, Vec3f(1.0f, 1.0f, 0)) ); </code></pre> <p>I'm trying to understand why the above won't compile. For Whatever reaso...
0
2,136
Accessed JArray values with invalid key value: "fields". Array position index expected
<p>I am using the guardian API to try and retrieve stories but keep receiving an exception. The string of json contains the below json, however I can't access the body using LINQ.</p> <p>Here it is:</p> <pre><code>{ &quot;response&quot;:{ &quot;status&quot;:&quot;ok&quot;, &quot;userTier&quot;:&quot;approve...
0
1,686
jQuery DataTables - get page of a given row
<p>I have a dataTable with hundreds of items with a fixed 50 iDisplayLength option. I need to be able to find what page a specific row is within the loaded nodes.</p> <p>All I've managed is to get the position, unfortunately that internal row position does not correspond to the row index with the current sorting and f...
0
1,760
CentOS: Sudo: unable to initialize policy plugin
<p>i have just installed sudo in my fresh centos server and its install successfully with command:</p> <pre><code>yum install sudo </code></pre> <p>Now when i am typing <code>sudo</code> its showing error:</p> <pre><code>[root@server etc]# sudo sudo: &gt;&gt;&gt; /etc/sudoers: syntax error near line 9 &lt;&lt;&lt; ...
0
2,537
Tanuki Software Java Service Wrapper. Error: Could not find class
<p>I am trying to start my application as a service using the Tanuki Java Service Wrapper.</p> <p>I have created the directories as mentioned for the WrapperSimpleApp. This is my config file.</p> <pre><code>#encoding=UTF-8 # Configuration files must begin with a line specifying the encoding # of the the file. #****...
0
8,731
Load partial view into div tag on same page
<p>I know this question might be repeated. But my issue is, I want my partial view display after button click on same page into div tag. When I click on button partial view is getting display but not on same page in div tag but it is getting open on different page. this is my code:</p> <pre><code>&lt;%@ Page Title="" ...
0
1,458
ModuleNotFoundError: No module named 'registration'
<p>I have an issue with Django-Registration. The package is properly installed, however when I run <code>python3.6 manage.py runserver</code>, I get the following error :</p> <p>ModuleNotFoundError: No module named 'registration'</p> <p>The screenshot of my Settings.py, Urls.py, and HTML Template file is attached below...
0
3,273
WPF Binding to Grid Column Width
<p>I'm attempting to bind a <code>DependancyProperty</code> in one of my usercontrols to the <code>Width</code> property of a <code>Column</code> in a <code>Grid</code>. </p> <p>I have code similar to this:</p> <pre><code>&lt;Grid x:Name="MyGridName"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition...
0
1,084
Save and Load jsPlumb flowchart including exact anchors and connections
<p>This is the <a href="http://jsfiddle.net/t3nbL/1/" rel="noreferrer">jsFiddle</a> of the flowchart editor I am building.</p> <p>This is an example of what can be easily created with "Add Decision" + "Add Task", connecting and moving the elements.</p> <p><img src="https://i.stack.imgur.com/aRhev.png" alt="Example fl...
0
2,176
javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided
<p>I am getting this error when i try to connect to hive metastore using Spark SQL HiveContext.</p> <p>i am running this on standalone cluster using spark-submit command from my desktop, not from the hadoop cluster.</p> <p>Is it something to do with Security related issue? do i have to add something in the hive_site....
0
3,992
Integration testing a Spring Boot web app with TestNG
<p>We recently integrated our application with spring boot. Our test cases are based on testng framework. Our base test class looks like the following</p> <pre class="lang-java prettyprint-override"><code> @SpringApplicationConfiguration(classes = Application.class) @ActiveProfiles(profiles = &quot;test&quot...
0
1,432
Simple banking program with 2 methods that I can't quite resolve C#
<p>I'm creating a program that has these two methods that I can't quite figure out. They are 'withdraw' and 'deposit' and they're located in the CheckingAccount class. In these methods, I want to initially have the value be 0 then add to it. Then I want to take the new number and subtract from it. I want to 'deposit' ...
0
1,134
undefined reference to `readline'
<p>I'm having a problem trying to run the <a href="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" rel="noreferrer">GNU Readline</a> library sample code <a href="https://en.wikipedia.org/wiki/GNU_readline#Sample_code" rel="noreferrer">available in wikipedia</a>. Here it goes:</p> <pre><code>#include &lt;stdli...
0
1,248
How to find Spark's installation directory?
<p>I want to change <code>spark-env.sh</code> . How can I find the installation directory in ubuntu??</p> <p>I looked in the UI but didn't find anything.</p> <pre><code>whereis spark </code></pre> <p>result : <code>spark:</code></p> <p>Here's the log for locate command locate spark </p> <pre><code>/home/sys60...
0
1,326
How to clear all input fields in a specific div with jQuery?
<p>I am trying to use jQuery to do a simple thing: clear the input fields of a group of input field within a div whenever the form loads, or if the user changes a picklist; but I'm having a devil of a time getting the selector to work. </p> <p>First, here's my onclick and onload triggers:</p> <pre><code>&lt;form name...
0
1,078
NGINX Reverse Proxy and Access-Control-Allow-Origin issue
<p>I'm configuring an <code>NGINX Reverse Proxy</code>.</p> <p>On the browser I go to:<br /> <strong>client url:</strong> <a href="https://www.hollywood.com" rel="noreferrer">https://www.hollywood.com</a></p> <p>Then the web page above needs to do requests to:<br /> <strong>server url:</strong> <a href="https://serve...
0
1,598
RecyclerView ItemTouchHelper Buttons on Swipe
<p>I am trying to port some iOS functionality to Android.</p> <p>I intent to create a table where on swipe to the left shows 2 button: Edit and Delete.</p> <p><a href="https://i.stack.imgur.com/iTyBj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iTyBj.png" alt="enter image description here"></a></p> <p>I...
0
1,320
Bootstrap image with checkbox
<p>I've got a little problem, I'm trying to have a simple image which you can click on and it will be checked or unchecked.</p> <p>I found some bootstrap code online and tried it out on my project. Sadly, the code doesn't seem to work like it's suppose to on my localhost.</p> <p>HTML:</p> <pre><code>&lt;link rel="st...
0
1,660
How to set auto height for extjs hbox layout?
<p>i have this layout and once im setting some data dynamically layout doesn't resize and final result is like this</p> <p><img src="https://i.stack.imgur.com/ADLh7.jpg" alt="issue"></p> <p>this is the code im using</p> <pre><code>win = Ext.create('widget.window', { title: 'Layout Window', closable: true...
0
2,621
Declaring Variable In JavaFX CSS File
<p>I've been inspecting the "caspian.css" distributed by Oracle in the JavaFX runtime library, and I see they have declared some color values as variables. Eg:</p> <pre><code>-fx-base: #d0d0d0; // Caspian.css, Line 47 </code></pre> <p>...and then they used it as value of some other property, like:</p> <pre><code>-fx...
0
1,044
Hive percentile_approx function is broken, isn't it?
<ul> <li>I am using Hive 1.2.1000.2.4.2.0-258. </li> <li>There are 4850000+ rows in the table, 14511 rows of A between 73 and 74, and 3 cols- group_id, A and B. </li> <li>Group_id is actually equal to 0. </li> <li>Almost all of A and B are integers.</li> </ul> <p>I was using the following scripts to find stat...
0
1,178
How to make a Hangman game in JS
<p>I am trying to make a hangman game in JS. I have the following functions working. The computer displays a random word from my array. I print the keys pressed to the screen and give the user 10 keystrokes before they loose. The problem I am having is getting the array to display in the var possibleWord section so it ...
0
1,083
override abstract method compare()
<p>Hi I'm reasonably new to programming and I am having difficulty with my compare method, I have several classes, my initial issue is with my parent class.</p> <p>I get this error:</p> <p>Person is not abstract and does not override method compare(java.lang.Object, java.lang.Object) in Comparator</p> <pre><code> ...
0
1,107
Pentaho Initialization Exception
<p>When I am trying to start my <code>Pentaho BI</code> server, I received a couple of errors. I understand that this cannot start the <code>QuartZ</code> database, but could I have some help resolving the following issue?</p> <p><strong>Pentaho user console</strong></p> <blockquote> <p>The following errors were de...
0
5,217
Pip Install Twisted Error 1
<p>When using <code>pip install Twisted</code> in virtualenv on Mac osx 10.9.4, I get this result: </p> <p><code>Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9r/3b500gbs3093ms87mqqbckr80000gn/T/pip-build-doynftp7/twisted/</code></p> <p>I am not sure how to resolve. I used easy_i...
0
1,918
Doctrine won't save one-to-many relationship
<p>I'm being bugged by an issue that seems very very puzzling. FYI - I know and I have read most of the doctrine questions around here, so I know the basics of doctrine and specifying relationships.</p> <p>Below is how my data model looks (posting relevant sections of code)</p> <pre><code>class Sample { /** ...
0
1,095
Best practices for exception management in Java or C#
<p>I'm stuck deciding how to handle exceptions in my application. </p> <p>Much if my issues with exceptions comes from 1) accessing data via a remote service or 2) deserializing a JSON object. Unfortunately I can't guarantee success for either of these tasks (cut network connection, malformed JSON object that is out o...
0
1,177
Made a JSON file with multiple objects with a simple template
<p>I have a template JSON file used by REST API POST request. This file contains this object</p> <pre><code>{ "Subject": "template", "Body": { "ContentType": "HTML", "Content": "template" }, "Start": { "DateTime": "2014-02-02T18:00:00", "TimeZone": "Europe/Paris" }, ...
0
1,025
Unobtrusive Ajax Form for partial view
<p>I'm having trouble using unobtrusive ajax to post data from a contact us form.</p> <p>My Partial View is like this:</p> <pre><code>@model site.ViewModel.Home.ContactUsViewModel @using (Ajax.BeginForm("_ContactUsPartial", "Home", new AjaxOptions { UpdateTargetId = "result" })) { ...
0
1,629
In laravel npm run dev errors:
<p>I have next errors output running npm command for my laravel 5.6 with bootstrap project:</p> <pre><code>$ npm run dev &gt; @ dev /mnt/_work_sdb8/wwwroot/lar/B4test &gt; npm run development &gt; @ development /mnt/_work_sdb8/wwwroot/lar/B4test &gt; cross-env NODE_ENV=development node_modules/webpack/bin/webpack.j...
0
3,758
how do you diagnose a kernel oops?
<p>Given a linux kernel oops, how do you go about diagnosing the problem? In the output I can see a stack trace which seems to give some clues. Are there any tools that would help find the problem? What basic procedures do you follow to track it down?</p> <pre><code> Unable to handle kernel paging request for data ...
0
1,302
Dex Loader Unable to execute Multiple dex files define
<p>Okay, now i'm really stuck here. I don't know what to do, where to go or ANYTHING!</p> <p>I have been trying to uninstall, reinstall, both SDK and Eclipse-versions, trying to Google this out, but nu-uh... Nothing!!!</p> <p>I CAN run my app in emulator, but i cant EXPORT it...</p> <blockquote> <p>[2011-10-07 16:...
0
1,991
Module name is not defined - node js
<p>I'm trying to get the '<code>async</code>' module (<em>not</em> async/await) working on nodejs, but I get the following error:</p> <blockquote> <p>ReferenceError: async is not defined at D:\project\routes\index.js:58:2 at Layer.handle [as handle_request] (D:\project\node_modules\express\lib\router\lay...
0
2,074
My do/while loop is not working
<p>So I have a do-while loop that's supposed to read user input. If the user types J then it should ask the user to type in 2 numbers to calculate them but if the user types N then it should stop the loop. Any idea why it isn't working?</p> <pre><code>if (input.equalsIgnoreCase("J")) { do { status=true...
0
1,045
Java ArrayList<Double> as Parameter
<p>I am currently working on a lab and would like to know how to handle the following problem which I have spent at least two hours on:</p> <p>I am asked to create an ArrayList containing the values 1, 2, 3, 4 and 10. Whilst I usually never have any trouble creating an ArrayList with said values, I am having trouble ...
0
1,287
Malloc Memory corruption in C
<p>I have a problem using malloc. </p> <p>I have a function called <code>jacobi_gpu</code> wich is called many times : </p> <pre><code>int main(int argc, char* argv[]){ /* ... */ int totalrot=0; while(nrot&gt;0){ iter++; nrot=jacobi_gpu(a,q, tol, dimmat); totalrot+=nrot; ...
0
1,486
Local hostnames for Docker containers
<p>Beginner Docker question here,</p> <p>So I have a development environment in which I'm running a modular app, it is working using Docker Compose to run 3 containers: server, client, database.</p> <p>The <code>docker-compose.yml</code> looks like this:</p> <pre><code>############################# # Server ########...
0
1,039
Could not load file or assembly System.Net.Http version 4.1.1.0
<p>I'm porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all).</p> <blockquote> <p>System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one o...
0
1,142
Kotlin Android Retrofit 2.6.0 with coroutines error handling
<p>I am using Retrofit 2.6.0 with coroutines for my web service call. I am getting the API response properly with all response codes (success &amp; error cases). My Issue is when I disconnect the internet(Wifi/mobile data) in between an API call, from the code that I have written, the error is not getting caught proper...
0
4,906
Signature Version 4 Signing Process in PHP to access API Gateway endpoint
<p>I am trying to create Authorized Signature to access IAM secured API gateway endpoint.</p> <pre><code>$alg = "SHA256"; $CanonicalRequest = "GET\n/dev/pets\n\nhost:3r4fgts8e5.execute-api.ap-northeast-1.amazonaws.com\nx-amz-date:".$dd."\n\nhost;x-amz-date\ne3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b...
0
1,048
django download csv file using a link
<p>I am a new to django and python. Need some guidance in this quest.</p> <p>Case: When the user hits the submit button on a form, it should display Success page and a link where they can download the results. The results are in excel file. I can create output to excel file using xlwt module and display the success pa...
0
1,109
Transparent JPanel
<p>I want to create a semi-transparent JPanel. I've done it by simply using RGBA value of color constructor but problem is when i m using event handling is not woking properly. My requirement is a semi transparent Jpanel when mouse enters it border of this panel became visible and if mouse exit the border shoud not vis...
0
1,166
How to move from Google-Analytics to Firebase-Analytics?
<h2>Background</h2> <p>In the recent months, Google has published a new Analytics alternative, called "<a href="https://firebase.google.com/docs/analytics/android/start/" rel="noreferrer"><strong>Firebase Analytics</strong></a>" .</p> <h2>The problem</h2> <p>As the app already does have Google-Analytics, I find some...
0
1,262
Python Dates - Converting None to Null
<p>I am moving data from a Mysql DB to PostgresDB using Python. My Code looks like below - </p> <pre><code>conn = psycopg2.connect("dbname='aaa' user='aaa' host='localhost' password='aaa' ") curp = conn.cursor() db = MySQLdb.connect(host="127.0.0.1", user="root", passwd="root" , unix_socket='/var/mysql/mysql.sock', p...
0
1,194
Trouble importing dll library into CodeBlocks Linker
<p>I am trying to use libcurl for a simple application using CodeBlocks IDE. In Codeblocks IDE, after clicking on Build Options ==&gt; Linker Settings ==&gt; Link Libraries ==&gt; &quot;Add&quot; , the file browser only allows me to choose between *.a, *.so, *.lib, and *.dyl files. Why is it not allowing me to choose *...
0
1,550
Strange HashMap exception (HashMap$Node cannot be cast to HashMap$TreeNode)
<p>After another question asked on stackoverflow, (<a href="https://stackoverflow.com/questions/29965956/java-why-this-program-not-throwing-concurrent-modification-exception/%20HashMap%20concurrency%20question">Java- Why this program not throwing concurrent Modification exception</a>) I started to experiment with the ...
0
1,136
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list
<blockquote> <p>Error : An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll</p> <p>Additional info : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.</p> </blockquote> <pre><code>namespace Inheritance { abstract class Airlines { ...
0
1,088
NetBeans could not install some modules
<p>I am using NetBeans 7.4 DEVELOPMENT VERSION 2, All packages.</p> <p>First I used NetBeans 7.2, All packages. Then I was notified that I have updates. So I updated it to 7.4 DEVELOPMENT VERSION.</p> <p>Then again I was notified that I have updates, and I started updating. But by mistake, I clicked a php file while ...
0
1,523
ListViewItem won't stretch to the width of a ListView
<p>I'm currently designing a windows 8 store app using XAML but I have a minor sizing issue. I have a ListView with a DataTemple.</p> <p>The code for my ListView &amp; DataTemplate are below:</p> <pre><code>&lt;ListView x:Name="listPageItems" Grid.Row="1" SelectionMode="Extended" IsSwipe...
0
1,337
AWS Cognito - Invalid Refresh Token
<p>I am using the <a href="https://aws.amazon.com/cognito/" rel="noreferrer">Amazon Cognito</a> service with the <a href="https://github.com/aws/amazon-cognito-identity-js" rel="noreferrer">amazon-cognito-identity-js</a> library, and am having an issue refreshing a user's tokens, namely the id token.</p> <p>When trying...
0
1,035
C# TCP/IP simple chat with multiple-clients
<p>I'm learning c# socket programming. So, I decided to make a TCP chat, the basic idea is that A client send data to the server, then the server broadcast it for all the clients online (in this case all the clients are in a dictionary).</p> <p>When there is 1 client connected, it works as expected, the problem is occ...
0
1,542
MVC 4.0 FormsAuthentication and AuthorizeAttribute in custom authorization
<p>I am using <code>MVC4</code> and I'm trying to modify the allocation procedure for authenticating a user and assign roles to users. Everything works fine for the attribute <code>[Authorize (Users = "adminadmin")]</code>, but the <code>[Authorize (Roles = "Admin")]</code> every time there is a login page and lack of ...
0
1,924
Bootstrap - AutoComplete with TagsInput
<p>Hi I want to use the autocomplete feature along with tagsinput with Bootstrap I have an external json file too. I had added the external json also how it will look like.. can any one help me out thanks Refrence Links <a href="http://timschlechter.github.io/bootstrap-tagsinput/examples/" rel="noreferrer">http://timsc...
0
1,421
Laravel Mail Attachment
<p>How to add email attachment in laravel? And the download link on that,and also to validate just the PDF and size is no longer up to 2mb. Sorry im just a student that love to code. Please help me.</p> <p>This is my controller code</p> <pre><code>public function store_applier(Request $request) { $this-&gt;val...
0
1,214
Config server and eureka server in same application: tries to connect to localhost:8761
<p>I have a spring-boot application which I use to setup a <code>spring cloud config server</code> and a <code>eureka server</code> in development and testing environments. Strangely the application always tries to connect to <code>localhost:8761</code>, even though I have <code>eureka.client.registerWithEureka</code> ...
0
1,319
Airflow: Can't connect to ('0.0.0.0', 8080)
<p>I am on Ubuntu 16.04,I have installed Airflow with pip. Next step</p> <pre><code>airflow initdb [2017-07-29 12:20:23,483] {__init__.py:57} INFO - Using executor SequentialExecutor DB: sqlite:////home/milenko/airflow/airflow.db [2017-07-29 12:20:23,813] {db.py:287} INFO - Creating tables INFO [alembic.runtime.migra...
0
1,254
Class App\Http\Controllers\PostController does not exist
<p>Let me just start by saying "I know this question gets asked a lot." believe me when i say nothing has worked for me.</p> <p>I have created a controller called <code>PostController</code>. This is a controller for my blog. When I navigate to my blog i get the following error <code>Class App\Http\Controllers\PostCon...
0
2,471
SSL: 400 no required certificate was sent
<p><strong>The code and inputs</strong></p> <p>I'm trying to establish SSL connection and I'm getting <code>400 No required SSL certificate was sent</code> response from the server. I'm doing this in a standard way like it's described for example <a href="https://stackoverflow.com/a/24007536">here</a>; I run Java 8.</...
0
1,597
How to utilize WebDev.WebServer.exe (VS Web Server) in x64?
<p>Visual Studio is x86 until <s>at least the 2010 release comes around</s> <strong>update:</strong> this is still an issue in VS2010, there is no native 64bit Cassini support. My question is can anyone think of a way or know of an independent ASP.NET debug server that's x64 for 2008 or 2010?</p> <p>Background: Our ...
0
1,232
How to make all controls resize accordingly proportionally when window is maximized?
<p>When I clicked on the maximize button the window is maximized but the controls are not resized proportionally. What is the best way to make the controls resize accordingly? I am using MVVM.</p> <p>Here is my code.</p> <pre><code>&lt;Window x:Class="DataTransfer.View.Window1" xmlns="http://schemas.microsoft...
0
1,208
Pytesseract, trying to detect text from on screen
<p>I'm using MSS in conjunction with pytesseract to try and read on-screen to determine a string of characters from the region being monitored. My code is as follows: </p> <pre><code>import Image import pytesseract import cv2 import os import mss import numpy as np with mss.mss() as sct: mon = {'top': 0, 'left': ...
0
1,261
How to add pagination and footer template in ngx-datatable?
<p>I have the Following html code,</p> <pre><code>&lt;ngx-datatable class=&quot;material&quot; [rows]=&quot;rows&quot; [columns]=&quot;[{name:'Name'},{name:'Age'},{name:'Company'}]&quot; [columnMode]=&quot;'force'&quot; [headerHeight]=&quot;50&quot; [footerHeight]=&quot;50&quot; [rowHeight]=&quot;'auto'&q...
0
1,669
How to get the value of html <input type="hidden"> in PHP?
<p>I am a certifid newbie so pls be patient with me if my question might sound very idiotic to you.</p> <p>Hi guys. Im trying to get the value of an html <code>&lt;input type="hidden"&gt;</code> using PHP. The value of that hidden element is passed from Javascript and I need to display the value of that hidden element...
0
2,408
CoreData 'This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation.'
<p>I have been following <a href="https://goddess-gate.com/dc2/index.php/post/452" rel="noreferrer">these</a> instructions to help integrate iCloud support with CoreData and I am getting some errors.</p> <p>I have this in my AppDelegate:</p> <pre><code>- (NSPersistentStoreCoordinator *)persistentStoreCoordinator { ...
0
2,459
Keras verbose training progress bar writing a new line on each batch issue
<p>running a Dense feed-forward neural net in Keras. there are class_weights for two outputs, and sample_weights for a third output. fore some reason it prints the progress verbose display for each batch calculated, and not updating the print on the same line as its supposed to... Did this ever happens to you? How is i...
0
5,451
Laravel : Trying to get property of non-object
<p>I have problem with laravel , in my localhost everthing is fine but on my shared hosting i got problem even is the same php version </p> <p>For example : I want to get question title using $answer->question->title but i got error Trying to get property of non-object (View: /new/resources/views/users/show.blade.php...
0
1,366
How to efficiently use Rprof in R?
<p>I would like to know if it is possible to get a profile from <code>R</code>-Code in a way that is similar to <code>matlab</code>'s Profiler. That is, to get to know which line numbers are the one's that are especially slow.</p> <p>What I acchieved so far is somehow not satisfactory. I used <code>Rprof</code> to mak...
0
2,942
Importing the numpy c-extensions failed
<p></p> <h3>Importing the numpy c-extensions failed</h3> <p>I installed <em>python 3.7</em> on my windows system to work on <em><strong>visual studio code</strong></em>. Everything was going well, including using the libraries. I uninstalled python using the <em>uninstalling program tool in control panel</em>. And in...
0
1,315
how to create Model in angular 2 with array of object in it
<p>I am trying to create a model for this response to store data into model and the use it as required </p> <h1>Response</h1> <pre><code>[ { "Id": 0, "ApimId": "5746ebcfcd7c3209247edc40", "Name": "Atea Service Desk", "Description": "Service Desk and Operations", "SubscriptionRequired": false, ...
0
3,271
Why does my TreeSet not add anything beyond the first element?
<p>I have several arrays in the form:</p> <pre><code>private static String[] patientNames = { "John Lennon", "Paul McCartney", "George Harrison", "Ringo Starr" }; </code></pre> <p>Then I make a TreeSet like this:</p> <pre><code>TreeSet&lt;Patient&gt; patTreeSet = new TreeSet&lt;Patient&gt;(); </code></pre> <p>Where...
0
1,327
Error deleting Target Group: ResourceInUse when changing target ports in AWS through Terraform
<p>I am currently working through the beta book "Terraform Up &amp; Running, 2nd Edition". In chapter 2, I created an auto scaling group and a load balancer in AWS.</p> <p>Now I made my backend server HTTP ports configurable. By default they listen on port 8080.</p> <pre><code>variable "server_port" { … defau...
0
2,089
Xcode 10b5 - duplicate symbol linker error, can't compile with Crashlytics
<p>I'm trying to compile my project, which has both Firebase, Crashlytics/Fabric, and a bunch of other stuff, with Xcode 10 beta 5. It fails during linking with these errors:</p> <pre><code>Ld /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/app...
0
4,064
sqlalchemy add child in one-to-many relationship
<p>This is the first time I've used ORM, so I'm not sure the best way to handle this. I have a one-to-many relationship where each Parent can have many Children:</p> <pre><code>class Parent(Base): __tablename__ = 'Parent' name = Column(String(50)) gid = Column(String(16), primary_key = True) lastUpdat...
0
1,127
Get active window text (and send more text to it)
<p>I'm creating a small utility in C#, that will add some text to an active textbox when a global hotkey is pressed, it's a type of auto complete function. I have my global hotkey working, but now I don't know how to get the current text in the active textbox (if the active window is a textbox that is.) What I've tried...
0
1,152
Capturing exit status code of child process
<p>I have a function that forks a process, duplicates file descriptors for input and output buffers, and then runs <code>execl</code> on a command passed in via a string called <code>cmd</code>:</p> <pre><code>static pid_t c2b_popen4(const char* cmd, int pin[2], int pout[2], int perr[2], int flags) { pid_t ret = f...
0
1,720
.NET 5 cant be selected as Target Framework in VS2019, reference assemblies not found
<p>I cant get Visual studio to use <strong>.NET 5</strong>.</p> <p>The following are my current configuration: Visual Studio Professional 2019 version: 16.7.6</p> <p>.NET sdk: dotnet-sdk-5.0.100-preview.7.20366.6-win-x64 <em>(see image for more info)</em></p> <p><a href="https://i.stack.imgur.com/WUm6E.png" rel="norefe...
0
1,333