title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
TensorFlow supervisor prevents variable assignment: Graph is finalized and cannot be modified
<p>This code works fine:</p> <pre><code>import tensorflow as tf x = tf.Variable(initial_value=0) with tf.Session() as session: print session.run(x.assign(1)) </code></pre> <p>But this code fails:</p> <pre><code>import tensorflow as tf x = tf.Variable(initial_value=0) supervisor = tf.train.Supervisor(logdir="/tm...
1
1,065
How do I use a custom authorities populator with Spring Security and the ActiveDirectoryLdapAuthenticationProvider?
<p>I've successfully connected to Active Directory through LDAP to authenticate, and with the following in my ldap.xml I've called my custom authorities populator:</p> <pre><code> &lt;bean id="ldapAuthenticationProvider" class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider"&gt;...
1
1,099
Comparison of strings for Mastermind game
<p>I am writing a program that simulates the game Mastermind, but I am struggling with how to compare guessed pattern to key pattern. The game conditions are a little bit changed: </p> <ul> <li>patterns consist of letters. </li> <li>if an element of guessed pattern is equal to element of key pattern, and also index ...
1
2,326
UIView transitionFromView: toView: animation not working.
<p>It's my first post on stackoverflow. I'm a iOS developer newbie and I'm not a native English speaker, so I will do my best to explain my problem. </p> <p><strong>Problem:</strong></p> <p>I have added two views to my AppDelegate window and I want to flip from one to the other using:</p> <pre><code> UIView transiti...
1
1,442
Lucene.Net: Relevancy by distance between words
<p>I create (and update frequently) the index of users using following code (a bit shortened for demonstration purposes here): </p> <pre><code> Lucene.Net.Store.Directory directory = FSDirectory.Open(new System.IO.DirectoryInfo("TestLuceneIndex")); StandardAnalyzer standardAnalyzer = new Standar...
1
2,023
React not displaying data in table row
<p>I am a beginner to React and frontend development in general. Here is a "simple" code to display a table.</p> <pre><code>function TableHeader() { return ( &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Name&lt;/th&gt; &lt;th&gt;Job&lt;/th&gt; &lt;/tr&gt; ...
1
1,238
insert into ms access db from another database with c# code
<p>I use the following code to insert a record from one database to another but it doesn't work. I tried the query in <code>MS-ACCESS 2007</code> and it works fine but it doesn't work when called programmatically from my <code>C#</code> code?</p> <pre><code>string query_insert = "INSERT INTO Questionnaires_Table(Branc...
1
1,615
ASP.NET Core 2.0 Web App Deployment and Hosting
<p><strong>Enviroment</strong></p> <p>My local dev environment is a Windows 10 PC using Visual Studio 2017.</p> <p>NOTE: At the moment I can only access my web server via cpanel. However, if the hosting provider cannot provide adequate support for an ASP.NET Core 2.0 app, then I will look at changing to a dedicated s...
1
3,648
Asymmetric public / private key encryption RSA with nodeJS and Objective-C
<p>I want to encrypt the communication between my server (written in nodeJS) and the iOS app (written in objective-C) using asymmetric encryption (RSA).</p> <p>What I am looking to do is to only encrypt the data that I send from the iOS app <strong>(using the public key)</strong> to the server, where the server needs ...
1
2,855
How to export flink user custom metric to prometheus & grafana
<p>I'm trying to create my custom metric variable according to <a href="https://www.youtube.com/watch?v=vesj-ghLimA" rel="nofollow noreferrer">this tutorial</a></p> <p>With the sample code it's provided, I can get the events and the Histogram. </p> <p>I'm confused how the identifier been used by prometheus &amp; graf...
1
1,318
strange errors compiling c code
<p>I have the code below I am trying to build</p> <pre><code>#include stdio.h #include stdlib.h #include signal.h #include wiringPi.h #include softPwm.h void control_event(int sig); int HARD_PWM_PIN=1; Hardware PWM Pin(GPIO18-12) int SOFT_PWM_PIN=0; Software PWM Pin(GPIO0-11) int DELAY_MS=10; int main(void) { (void...
1
1,058
Can't click on menu links in drop down menu
<p>I'm working on a wordpress site with a mobile dropdown menu. The dropdown works fine but clicking on any link in the dropdown menu just closes the menu and doesn't go to the link.</p> <p>I can't find the JS code for this functionality so is there any code I can add to make sure clicking on any menu item within the ...
1
1,220
Is left-shifting (<<) a negative integer undefined behavior in C++11?
<p>Is left-shifting a negative <code>int</code> Undefined Behavior in C++11?</p> <p>The relevant Standard passages here are from 5.8:</p> <blockquote> <p>2/The value of E1 &lt;&lt; E2 is E1 left-shifted E2 bit positions; vacated bits are zero-filled. If E1 has an unsigned type, the value of the result is E1 × 2...
1
1,151
Gradle build failing "com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: org/gradle/api/internal/java/JavaLibrary"
<p>I just upgraded my gradle to 6.8.1 from 3.2.1 and keep on getting below error, I checked the gradle version output and all the dependencies looks appropriate as per the documentation. Below is the <code>build.gradle</code>, output of <code>gradle -version</code> and <code>gradle.properties</code> file. Thanks for yo...
1
9,111
Gitlab CI Symfony : SQLSTATE[HY000] [2002] Connection refused
<p>I use gitlab to run unit tests each time someone push the code. I get this error during composer installation.</p> <pre><code>&gt; Incenteev\ParameterHandler\ScriptHandler::buildParameters Creating the "app/config/parameters.yml" file &gt; Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap &gt;...
1
1,210
How-To Enable Partial Rendering On RADGrid?
<h1>Original Post</h1> <h3>2 Additional Edits Below</h3> <p>I have a RADGrid on my page, but when the user clicks any of the controls within the grid, Page Forward/Back, Page Number, PageSize, Refresh, Checkbox Row Selector, etc... The entire page refreshes. I would like to have just the Grid itself refresh. I looke...
1
1,279
Jenkins Username and Password Error (E-mail Notification)
<p>I'm trying to configure E-mail notifications in Jenkins. But it is showing the following error...<a href="https://i.stack.imgur.com/pGA7x.jpg" rel="nofollow noreferrer">enter image description here</a></p> <p>I tried it with Admin account Then with my own gmil account &amp; passd . I also created a new user in Jen...
1
3,109
IBM Worklight 6.0 - Development Server/Console Problems
<p>Previewing a hybrid app in Worklight Console's MBS in Worklight v5.0.6 was a breeze as it worked right out the box.</p> <p>Worklight 6.0 has proven to be a bit more tricky. Can someone point me in the right direction to getting my Worklight Console up and running?</p> <p>Here is my Eclipse <strong>console log</str...
1
1,164
STM32 Usart receive interrupt works only once
<p>I am trying to get my STM32F103 to receive 4 bytes via USART and store them in a value.</p> <p>So far, if I reset the microcontroller, the first time I send the 4 bytes they're received normally and the microcontroller stores them in USART_RX_BUF, however if I send another 4 bytes, USART_RX_BUF stays unchanged, fur...
1
1,074
Select Item in ASP DropDownList: doesn't work in FireFox
<p>This is so frustrating. I've done this a million times! For some reason, Firefox won't select an item in my drop down list. Why? (It works find in IE)</p> <p>ASPX PAGE</p> <pre><code>&lt;asp:DropDownList ID="ddlPlan" runat="server" CssClass="TDSelect" Width="250px" AutoPostBack="true" DataTextField="Plan_Name" Dat...
1
1,493
Send argument through PendingIntent of NavDeepLinkBuilder
<p>I'm having some difficulties sending an argument through a <code>PendingIntent</code> of a notification using <code>NavDeepLinkBuilder</code>. I'm able to get the destination <code>Activity</code> to launch by clicking the notification, but the <code>Activity</code>'s <code>Intent</code> doesn't contain the argument...
1
1,443
How to update shopping cart quantity with amount in php?
<p>Below is my not working source code? I want to update the quantity with respective to that perticular item and calculating total. I was stuck or did wrong coding. Please can anyone tell me what to do furture ? means when user increasing quantity price of that item should be incremented.. </p> <pre><code>...
1
1,887
Uncaught SyntaxError: Unexpected token <
<p>I'm getting the error "Uncaught SyntaxError: Unexpected token &lt; " when simply trying to include jQuery 1.9.1 in my .Net page. The code for the page is below. I have checked my jQuery 1.9.1 file and it is fine, I have other pages using that same file with no error. I have even tried using jQuery 1.10.2 and got the...
1
1,520
ClientRegistrationRepository Bean is not found
<p>I am trying to configure an OAuth2 client using Spring Boot. I have the following dependencies:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt...
1
1,731
No property u found for type com.models.entities.OrderEntity
<p>I'm receiving the error <code>No property u found for type com.models.entities.OrderEntity</code> and for the life of me can't figure out how to debug where this is coming from. I'm guessing there's some mapping that is incorrect.</p> <p>I've tried enabling <code>log4j</code> which only gives me details on <code>o...
1
2,913
Percent of Total Windowed in Power BI DAX
<p>I have these two tables:</p> <p>A data table...</p> <pre><code>ImaginaryData = DATATABLE ( "Fruit", STRING, "Colour", STRING, "Amount", INTEGER, { { "Apple", "Red", 10 }, { "Apple", "Green", 5 }, { "Pear", "Pink", 100 }, { "Pear", "Blue", 65 }, { "Orange...
1
1,155
Extracting a public key from key pair in key chain
<h3>The Problem: Retrieving a public key</h3> <p>For an iPhone App, I need to create a rsa key pair, store it in the key chain and retrieve the public key.</p> <p>Fortunately, Apple released a <a href="http://developer.apple.com/library/ios/#samplecode/CryptoExercise/Introduction/Intro.html">Crypto Exercise</a> Sampl...
1
1,884
LINQ How to use multiple ThenBy dynamically?
<p>I didn't think this would be so rare to find but as it seems, it is. Here's the situation.</p> <p>I've a <strong>ApplySort</strong> method which takes in 3 parameters posted from a mvc page.</p> <pre><code> private List&lt;dynamic&gt; ApplySort(List&lt;dynamic&gt; listToBeSorted, string sortBy, string sortOrder...
1
1,140
Connexion Refuse after second execution driver/ui karate test in docker ptrthomas/karate-chrome
<p>I try to use ptrthomas/karate-chrome image docker. I wish execute multiple driver/ui karate tests in the docker image. Currently use, your image docker ptrthomas/karate-chrome, but only 1 scenario driver/ui is successful execute.</p> <p>The scenario are basic:</p> <pre><code>Scenario: Given driver 'https://github.c...
1
1,130
OpenGL 2 Texture Internal Formats GL_RGB8I, GL_RGB32UI, etc
<p>I'm rewriting a large part of my texturing code. I would like to be able to specify certain internal formats: GL_RGB8I, GL_RGB8UI, GL_RGB16I, GL_RGB16UI, GL_RGB32I, and GL_RGB32UI. These tokens do not exist in OpenGL 2.</p> <p>When specifying these internal formats as arguments to glTexImage2D, the texturing fail...
1
2,673
Traceback (most recent call last): error seen on running python file in Pycharm
<p>Traceback (most recent call last): File "C:/Users/A6002043/PycharmProjects/IPT-Autobot/mybot.py", line 3, in import slack ModuleNotFoundError: No module named 'slack'</p> <p>No code changed were made , but i did some mess up with interpreter settings after which i feel i started getting the error </p> <p>He...
1
1,957
how to send push notification to the android device using GCM by java server?
<p>i am trying to send push notification to android device through java server. but when i deploy my server side code then i am getting following error. java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component.</p> <pre><code>package com.avilyne.gcm; import ...
1
1,735
how to link with static mySQL C library with Visual Studio 2008?
<p>My project is running fine, but its requirement for some DLLs means it cannot be simply dragged and dropped by the end user. The DLLs are not loaded when put side by side with my executable, because my executable is not an application, and its location is not in the few locations where Windows looks for DLL. I alrea...
1
3,171
How can I install `Thread::Pool` from CPAN?
<p>I'm using <code>cpanm</code> to install Perl modules, but I can't install <code>Thread::Pool</code> for some reason:</p> <pre><code>$ sudo cpanm Thread::Pool </code></pre> <p>fails and the log file says:</p> <pre><code>cpanm (App::cpanminus) 1.0012 on perl 5.010001 built for i486-linux-gnu-thread-multi Work direc...
1
1,832
Hibernate: java.lang.String can not be cast to java.math.BigDecimal
<p>In database datatype of <code>empcode</code> is defined as decimal.</p> <p>This code:</p> <pre><code> public KwlReturnObject getPayrollDataHrms(HashMap&lt;String, Object&gt; requestParams) { boolean success = false; List lst = null; KwlReturnObject result = null; try { ...
1
3,127
Trigger a Local Notification every day at particular time even when the app is closed
<p><strong>I have to display a notification every day at particular time <em>(say 7.00am)</em> to the users from my app even when my app was not running.(closed)</strong></p> <p><em>As the content of the notification will be user specific, I cant use (GCM)push</em> </p> <p>I have gone through a lot of tutorials and a...
1
1,851
How to avoid recreate an existing database using automatic Code First Migration
<p>I am using EF6, and having an issue with database automatic migration. The database exists, and there is no schema nor data changes in the db. But for some strange reason, the application seems to trying to re-create an existing table in the db on machine reboot. And therefore cause errors. My questions are:</p> <o...
1
2,034
Is there something like jQuery.active in angularjs?
<p>I am using selenium to test my application. I have lots of ajax calls that use $resource or $http. It would be nice if there was a way to poll any active ajax requests in angular so that selenium could wait until those requests were completed.</p> <p>I supposed I could place an element on the page (for selenium t...
1
1,905
Custom passwordToggleDrawable is too large in TextInputLayout
<p>I have used android.support.design.widget.TextInputLayout to make a password input that allows the user to toggle readability on the password. The xml is as follows:</p> <pre><code>&lt;android.support.design.widget.TextInputLayout android:layout_width="match_parent" android:layout_height="match_parent" ...
1
1,216
Search array for values from database
<p>I have a database filled with employee ID's and corresponding employee names for each employee ID. Is there a way I can search an array for employee ID's from the database? Google is not helping me, I think because I'm not sure how to word my search.</p> <p>My idea is to have something like, array_search($empID, $c...
1
1,964
Spring-boot CrudRepository autowiring error
<p>I have the <a href="https://i.stack.imgur.com/INHdc.png" rel="noreferrer">following code structure</a> of my Springboot Application:</p> <p><a href="https://i.stack.imgur.com/RVW8n.png" rel="noreferrer"><img src="https://i.stack.imgur.com/RVW8n.png" alt="structure"></a></p> <p>I am getting exception of <code>NoSuc...
1
1,966
Node (Express) - Send a pdf with express via an api
<p>I have an api that generate invoice for each payment I have on my website. In the other side, i have a server that manage the client. I need to fetch the pdf when client ask for it. </p> <p>I am using node/express and axios to manage http call.</p> <p>I managed to send the pdf from the api with the following code:...
1
1,097
Printing Multiple pages in JAVA
<p>So I was tinkering with this code that I found <b><a href="http://docs.oracle.com/javase/tutorial/2d/printing/examples/PaginationExample.java" rel="nofollow">http://docs.oracle.com/javase/tutorial/2d/printing/examples/PaginationExample.java</a></b> I altered the page size to 300, 400 when I tried printing to XPS the...
1
1,433
How to test an authorization redirect with Laravel?
<p>I have manually tested the scenario I want:</p> <p>Admin Users can go to the <code>/codes</code> section of the site. Normal users are redirected (302) back to the <code>/dashboard</code> and have a message <code>Sorry you are not allowed there</code> when they go to <code>/qr</code>.</p> <p>Manual testing passes,...
1
1,481
MySql Entity Framework auto_increment error
<p>I'm have a system that uses Entity Framework against a SQL Server db that runs fine. Recently I decided to move to MySql as the backend. The error is caused by some code that runs perfectly well against SQLServer, but fails against MySql.</p> <p>MySql 5.6.27, EF6.</p> <p>I have a table with 1 column (called Id), w...
1
1,422
OpenCV HOGDescriptor Errors
<p>I am running OpenCV 2.4.3 on Mac OS X 10.8. I am trying to use the cv::HOGDescriptor to get pedestrians in a video sequence.</p> <p>This is the code I am using to do the detection and paint a bounding box.</p> <pre><code> cv::VideoCapture input("file.avi"); assert(input.isOpened()); cv::HOGDescriptor body; ...
1
1,743
Postgresql prepared statement in Rails : PG::Error: ERROR: bind message supplies 1 parameters, but prepared statement "a4" requires 0
<p>I have introduced a new field to a model file in my 4.0.0 Ruby on Rails application and added a validation to make sure it is unique using the following line:</p> <pre><code>validates_uniqueness_of :source_id </code></pre> <p>Immediately after that my RSpec/Capybara test suite started breaking with the following e...
1
7,505
IndexedDB - Storing and Retrieving Videos
<p>I'm trying to make an application that stores and retrieves Video files to and from IndexedDB. However, I am having issues while retrieving in Firefox and while storing in Chrome. I'll post the code:</p> <pre><code>(function () { // IndexedDB var indexedDB = window.indexedDB || window.webkitIndexedDB || win...
1
2,272
How to set the FrameRate in a Video Recording Android Application
<p><strong>Following is the full code for recording the videos from both the camera front and the back camera .</strong> </p> <p><strong>I need to set the frame rate of the video recoded to 30 fps</strong>. That's the big issue i have tried lots of thing but nothing is working out for me . It's being around 2 week and...
1
4,439
Android build with Proguard DX SimException local 0000: invalid
<p>I am using Ant > 1.8 + Proguard 4.6 to build my Android project and I've got an Exception during the build process:</p> <p><strong>SimException: local 0000: invalid</strong></p> <p>Please find below the all build log:</p> <pre><code>Buildfile: build.xml [setup] Android SDK Tools Revision 11 [setup] Project Target...
1
5,945
underflow in restore in android 4.3
<p>I'm getting a <strong>IllegalStateException: underflow in restore exception,</strong> which is causing my application to crash. This started happening after android 4.3 update. On android 3.0 - 4.2.x it works fine.</p> <p>The exception happens on the second</p> <pre><code>canvas.restore(); </code></pre> <p>Given ...
1
1,143
Nested routing in Angular 2/4
<p>I work on an app which I intend to have following structure:</p> <pre><code>-MAIN - main “container” (main routes) --NCF (lazy loaded, routes for it’s subapps) ---ACNP (lazy loaded) ----Component1 ----Component2 ---SubApp2 (lazy loaded) ---SubApp3 (lazy loaded) --App2 (lazy loaded) ...
1
1,318
URI::InvalidComponentError: bad component(expected host component): localhost:3000
<p>I am not sure what is wrong but in the console when running <code>NewsletterMailer.weekly("username-here@gmail.com").deliver</code> I get the error <code>URI::InvalidComponentError: bad component(expected host component): localhost:3000</code></p> <p>I double check my settings and everything seems to be fine. Here'...
1
2,181
Umbraco V6.1.3 Lucene Index Corruption
<p>Just upgraded an Umbraco V6.1.1 site to V6.1.3. All went well on my workstation. Copied the files up to the web server after deleting all that was there, did the same with the database. Set all the directory permissions and ran the site. Site (which is MVC) runs BUT with two issues which I can't fathom and would re...
1
1,871
Kafka consumer poll method giving Attempt to join group failed due to fatal error: The group member's supported protocols are incompatible
<p>I have a kafka consumer processing a message topic name "ABC" that has config:</p> <p>{key.deserializer=class org.apache.kafka.common.serialization.StringDeserializer, value.deserializer=class org.apache.kafka.common.serialization.StringDeserializer, max.poll.records=250, group.instance.id=ABC, group.id=ABC, bootst...
1
1,747
c# pass value from a form that is closed
<p>I have a OOP question. I have 3 classes. Program (main class), login form and form1. program runs login that checks for authentication, if this is successful form1 is then run while login closes. Now the problem I have is, what if I need to pass a variable value to my form1?<br> The reason is it I wish to use the ...
1
2,224
"Cannot change Visible in OnShow or OnHide" error
<p>Update:<br> This question escalated to a new/related question which was fortunately solved by @RemyLebeau <a href="https://stackoverflow.com/questions/47476603/major-flaw-radio-buttons-are-not-correctly-set-while-the-form-is-invisible?noredirect=1#comment81908224_47476603">here</a>.</p> <p>So, instead of reading be...
1
1,130
AWS - boto3 - how to list of all the ORG IDs(even nested) under organization
<p>I am trying to get a list of all the org ids under organization using boto3. The current structure is like this -</p> <pre><code> Root | | ou1-----OU2-----OU3 | | | ...
1
1,430
bootstrap 4 navbar dropdown not working on IOS devices / safari
<p>I just uploaded a new bootstrap-site a couple of days ago. Since then I had reported, that the navbar does not work on IOS devices. The problem does not occur on any other device or browser, just Safari.</p> <p>When clicking/touching the hamburger symbol, the dropdown does open properly, but when clicking the subme...
1
1,824
React JS - stop infinite scroll at the end of array
<p>I have this simple react app, where I fetch the Flickr public feed. So, I can scroll to the end of the page and new content is going to show. So I would like to scroll until there is nothing else new, and the app stops trying to load more content, because it has reached the last item of the list, which is not happe...
1
1,754
Inline DTD error: StartTag: invalid element name
<p>I wrote xml file and everything worked fine until I added dtd code generated from some site. Now i have error. Please help me This page contains the following errors:</p> <p>error on line 3 at column 2: StartTag: invalid element name Below is a rendering of the page up to the first error</p> <pre><code>&lt;?xml ve...
1
3,086
iOS NSRangeException, Index Beyond Bounds, NSMutable Array
<p>After inheirting an iPhone app project I'm tasked with the debugging of it after an update. Not an objective c programmer, I'm not sure where to start. Any help would be appreciated.</p> <p>Here is the debugging output:</p> <pre><code>2011-07-07 15:27:44.333 App[5836:207] *** Terminating app due to uncaught except...
1
1,338
Object.keys function in JS file that runs from Java
<p>When I try to use <code>Object.keys</code> function in JavaScript file that runs as Java application I get Exception.</p> <p>I want to use some function from JS file like this:</p> <pre><code> function calculateProductPrice(orderData) { ... k = Object.keys(prices); for (var i = k...
1
1,063
Music Player Activity
<p>I created a song player that has a basic functions like play, pause, next etc. When I click play button, the current song Index will play. Now, while the song is playing and I press the back button go to my home activity using intent, the song is still playing. But when I click on the player button to go to the play...
1
6,740
Can turf.js be used to find and repair bad geojson geometry?
<p><strong>Methods:</strong> I'm currently using turf.js for geoprocessing as part of a <a href="https://github.com/wboykinm/tribes" rel="noreferrer">broader mapping project</a>; my workflow looks like this:</p> <ol> <li>Pull geojson of census tracts for an entire county</li> <li>Pull geojson tiles of water polygons f...
1
1,247
CSS Styling that only styles all IPhones and IPADS
<p>Problem: I have an image that is responsive in all platforms except for iphones.</p> <p>On the Android version of the site, the following image is not skewing: <a href="https://i.stack.imgur.com/OhiLE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OhiLE.png" alt="enter image description here"></a></p> <...
1
3,427
sqlite returned: error code = 1, msg = near "file_theme_column": syntax error
<p>this is my code to create database table</p> <pre><code>String sqlQueryToCreateFileTable = "create table if not exists " + TABLE_FILE + " ( " + BaseColumns._ID + " integer primary key autoincrement, " + COLUMN_NAME_FILE_NAME + " text not null, " + COLUMN_NAME_FILE_CATEGORY+ " integer not null , FOREIGN KEY ("+COL...
1
1,116
The Class-Path manifest attribute in path referenced one or more files that do not exist
<p>Trying to use jersey in springboot 2 and getting the below error.</p> <blockquote> <p>The Class-Path manifest attribute in C:\Users\joannes.paul.m2\repository\org\glassfish\hk2\hk2\2.5.0-b42\hk2-2.5.0-b42.jar referenced one or more files that do not exist: file:/C:/Users/joannes.paul/.m2/repository/org/glassfish/...
1
1,672
HQL: How to query certain fields when one of those fields is a one-to-many List?
<p>I am having difficulty writing a HQL query to select ONLY the <code>caseid</code>, <code>title</code>, and <code>caseStatus</code> fields from my <code>Cases</code> entity. The cases returned have to be distinct based on caseid. I do not want the <code>name</code> and <code>userid</code> fields to be included. I als...
1
1,665
Can't load modules from libraries in CodeIgniter HMVC
<p>I'm having a problem loading modules inside my <strong>template</strong> library in CodeIgniter HMVC. The reason I want to load a module in the template library is that I wish to use modules for sideboxes and other content boxes in my template.</p> <p><strong>PS:</strong> I am also using the <strong>Smarty</strong>...
1
2,186
How to list/select the installed languages on Android?
<p>I want to make a small app that, with one or two clicks, will switch the system language between two, three or more prefered languages, selected before-hand from the "official" language list, i.e. the one that appears in Quick settings > Settings > Language &amp; input > Language.</p> <p>How do I get this list prog...
1
1,085
GCloud kubernetes cluster with 1 Insufficient cpu error
<p>I created a Kubernetes cluster on Google Cloud using:</p> <pre><code>gcloud container clusters create my-app-cluster --num-nodes=1 </code></pre> <p>Then I deployed my 3 apps (backend, frontend and a scraper) and created a load balancer. I used the following configuration file:</p> <pre><code>apiVersion: apps/v1 k...
1
1,375
IP Camera Capture RTSP stream big latency OPENCV
<p>I am trying to so some processing on a IP Camera , and it works well, but I see a lag between the real world and the video capture in about 7~10 seconds.</p> <p>I am using the rtsp://@ip:port/live ext</p> <p>This camera have a web interface (IE / ActiveX) that shows the image with very low lag. (about 200~300 ms).</...
1
3,424
Android - Multiple fragments in ONE tab
<p>I searched a lot in the web about the possibility to have multiple fragments in one action bar tab.</p> <p><a href="https://stackoverflow.com/questions/9216108/actionbar-tabs-with-multiple-fragments">This question</a> comes closest to my needs but the code is not working.</p> <p>Is there another possibility to inc...
1
2,164
log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML
<p>I am trying to implement log4net into my console application but I get a bunch of errors like</p> <blockquote> <p>log4net: Error exception while reading configurationSettings.</p> </blockquote> <p>I googled and after checking many questions asked here at stackoverflow I posted this one. I know there is nothing wrong...
1
2,878
Authentication issue in Nodejs: ValidationError: Path `password` is required
<p>I am getting an error ValidationError: Path <code>password</code> is required, when trying to register a new User. I am new to Node, programming, and authentication.</p> <p>Here is the code I have, and then I will walk through what I have done to try to trouble shoot it.</p> <p>User model and schema</p> <pre><co...
1
2,951
MAPISendMail doesn't work when Outlook is running
<p>I've been using Mapi32 from a Winforms app to send bring up a new mail message with attachments for a while now, and it's worked really well. (Yes, I'm aware that calling into MAPI32 from C# is not supported.)</p> <p>Within the last few days, it has stopped working when Outlook is running. However, if Outlook is no...
1
1,276
Could one connection support multiple channels in go api for rabbitmq?
<pre><code>package main import ( "fmt" "github.com/streadway/amqp" "time" ) // Every connection should declare the topology they expect func setup(url, queue string) (*amqp.Connection, *amqp.Channel, error) { //setup connection conn, err := amqp.Dial(url) if err != nil { return nil, nil, err }...
1
1,125
How to understand nfold and nrounds in R's package xgboost
<p>I am trying to use R's package xgboost. But there is something I feel confused. In xgboost manual, under xgb.cv function, it says:</p> <p>The original sample is randomly partitioned into nfold equal size subsamples.</p> <p>Of the nfold subsamples, a single subsample is retained as the validation data for testing the...
1
1,071
Problem with Angular dependencies: @types/node: '{' or ';' expected
<p>I'm getting an error while executing &quot;ng serve&quot; in my application, it was an Angular 5 application (Angular 2 at the first stage), now I've upgraded it to Angular 8 (Also tried Angular 6 and 7 before). But after upgrading from Angular 5, I started getting errors while executing &quot;ng serve&quot;, the er...
1
2,160
Scatter plot with colored markers + colormap in ECharts
<p>After reading the ECharts documentation and looking at examples, I haven't found anything that would allow coloring scatter plot markers automatically according to a continuous data dimension.</p> <p>Basically, I'm trying to plot something like this: </p> <p><a href="https://i.stack.imgur.com/QIaHC.png" rel="noref...
1
1,248
'Unable to resolve service for type ¨Microsoft.entityFrameworkCore.DbContextOptions¨1[LibraryData.LibraryContext] while attempting to activate
<p>I've run into a problem i cannot solve on my own, so I'm asking for help.</p> <p>I've recently began learning ASP .net core, and wanted to build a library where i have to have a database, login system and admin powers to be able to add and delete books from the website.</p> <p>I've created the login system and datab...
1
2,044
"google is not defined" error calling google maps api in Chrome
<p>I'm starting to learn google map API. The page is working offline, but it shows "google is not defined" on server with Chrome. When I use Firefox, there is no error.</p> <p>Here is the html:</p> <pre class="lang-html prettyprint-override"><code>&lt;script src="https://maps.googleapis.com/maps/api/js?key=MY_API_KEY...
1
2,192
How to make a toggle button for a widget android
<p>So I've created a widget, and I'm tried my best to simulate a toggle button. Sense Widget doesn't support a toggle button I'm using a imagebutton and plan on changing the image depending on it's state. </p> <p>Only problem is it's state isn't being saved and I'm not sure why. </p> <pre><code>package com.tdubstudio...
1
1,182
Random "permission denied" error while writing a file from VBScript
<p>That's my first time posting on stackoverflow. I've been finding usefull answers on this site but this time, I can't find no help with this problem.</p> <h2>General context</h2> <p>I wrote a VBScript Toolkit script (S:\Universe_bo\prod\batch\BO\libs\PXI_Toolkit.vbs) included in scripts (S:\Universe_bo\prod\batch\B...
1
2,430
Webpack and Precss not reloading on @import file change
<p>I am setting up a basic Webpack installation and want to have automatic browser reloading of preprocessed CSS in @imported files using <a href="https://github.com/postcss/postcss" rel="nofollow">PostCSS</a> and the <a href="https://github.com/jonathantneal/precss" rel="nofollow">PreCSS</a> plugin. At present if I mo...
1
1,618
HTML Agility Pack find Descendants
<p>i am doing crawling practice on a Web page and want to display some content on my Web page and I am stuck in code to find Descendants . Below is the webpage HTML</p> <pre><code>&lt;ul class="results"&gt; &lt;li class="gts" data-webm-section="OAG-AD-14960184"&gt; &lt;a class="item-link-container" href="/...
1
2,934
Issue with Hibernate session.createQuery(from TableProcess).list(); does not work
<p>I've been working with Netbeans and MySQL lately to create a Spring+Hibernate application, but I've been facing some issues in my block of code:</p> <pre><code>public List listSystemProcess() { List procesosSistema = null; String hbQuery = "from TableProcess"; try { Session hbSe...
1
1,588
Android: Simultaneous button presses
<p>I've seen this with other platforms (especially iPhone/iPad) but have not been able to find-it/figure-it-out for Android and the other platforms don't seem to get much farther then asking the question.</p> <p>I have a game that has a multiplayer component where two players have to press buttons on the same screen a...
1
3,067
Vuetify - Change default color for v-text-field type=date icon
<p>I'm filtering records between two dates, which will show data brought from the backend. Instead of using the conventional way found in Vuetify's <a href="https://vuetifyjs.com/en/components/date-pickers/" rel="nofollow noreferrer">documentation on date pickers</a> like in the following CodePen:</p> <p><a href="https...
1
1,935
Get MAC address via TCPListener in C#
<p>Is it possible to get MAC Address of remote client via TCPListener in C#?</p> <pre><code>using System; using System.Net; using System.Net.Sockets; using System.IO; using System.Text; namespace TCPserver { class Program { private const int BUFSIZE = 32; static void Main...
1
1,302
PIC16F1829 UART RX Interrupt not working using MPLABX and XC8 compiler
<p>I am new to writing firmware for 8-bit PICs and could use some help with my code. I am using a PIC16F1829 for an LED module which gets RX commands. I am just trying to get the basics setup like turn on LEDs when a certain value is received on RX pin, but can't even get that.</p> <p>Would like to get UART working vi...
1
2,620
Drawing Isometric Tilemaps
<p>I've been working on drawing an isometric map with C# / XNA Game Studio, and while I've gotten pretty far it doesn't look quite right and I was wondering if anybody can help.</p> <p>Here's the code I have for drawing the map:</p> <pre><code>public void Draw(SpriteBatch theBatch, int drawX, int drawY) { ...
1
1,783
Getting an array of all DOM events possible
<p>I've created a multi purpose factory event emitter factory function. With it I can turn objects into event emitters. The code for the event emitter factory is below if anyone would like to have a look or use it.</p> <p>My question is how can I get a list of events from the DOM. <strong>Please note I'm not trying to ...
1
1,445
Spring Native 0.9.1-SNAPSHOT fails to start in IDEA
<p>Just generated on <a href="https://start.spring.io/" rel="nofollow noreferrer">https://start.spring.io/</a> Spring Boot 2.4.4 project with added Spring Boot Native 0.9.1-SNAPSHOT</p> <p>and it fails to start within IDEA (so not yet even as native image)</p> <blockquote> <p>The ApplicationContext could not start as '...
1
2,580
HADOOP datanode strange things
<p>I think I must have some misunderstanding about the datanodes in Hadoop Cluster. I have a hadoop virtural cluster composed of master,slave1,slave2, slave3. Master and slave1 are in a phsical machine while slave2 and slave3 are in one physical machine. When I start the cluster, in the HDFS webUI, I can only see three...
1
5,460
Scala Grpc failed with error io.grpc.StatusRuntimeException: CANCELLED: Failed to read message
<p>I am trying to write a streaming service in Scala using GRPC. Towards this I wrote this proto file</p> <pre><code>syntax = "proto3"; package com.abhi.grpc; message TimeRequest{} message TimeResponse { int64 currentTime = 1; } service Clock { rpc StreamTime(TimeRequest) returns (stream TimeResponse); } </c...
1
1,469
C# System.Net.WebRequest HTTP Request Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host
<p><strong>Before I get started</strong></p> <p>First let me apologize in advance if this is a duplicate question as there appear to be several questions related to 'Existing connection was forcible closed by the remote host', however I can't seem to get any help from these other questions as they same to be either re...
1
2,408
How to send ArrayList of Objects in Kafka Avro producer without calling send method for every individual record?
<p>I am using the below code to produce Avro records of <code>User</code> class into Kafka topic, and it is working fine;</p> <h2>Sender class</h2> <pre><code>import org.apache.avro.Schema; import org.apache.avro.generic.GenericData; import org.apache.avro.generic.GenericDatumReader; import org.apache.avro.generic.Ge...
1
1,404
PHP - Calling .php file from command line produces no output
<p>I have a simple <strong>cmd.php</strong> page to run commands I enter using <strong>shell_exec ()</strong> and show the output.</p> <ul> <li>PHP <strong>is</strong> running as CGI</li> <li>Entering "php -v" and most commands just show "Content-type: text/html" and then the current page's HTML source.</li> <li><p>Ho...
1
1,130