title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
MUI Select - Change Select size | <p>whilst using the selects from MUI, I'm struggling to get them working properly using a height and width with 'vh' and 'vw' appropriately and a text-size using 'vh'.</p>
<p>I end up having a proper size for the boxes, but the label text is not centered anymore due to apparently using a 'transform' to offset itself fr... | 0 | 3,075 |
why angularjs ng-repeat not working | <p>I am trying out the basics of AngularJS first time. I am trying out ng-repeat first time. However it is not working. </p>
<p>Here is a non working <a href="http://jsfiddle.net/Mahesha999/XPjNy/1/" rel="nofollow">jsfiddle</a>.</p>
<p>I have written the code in single standalone HTML file as follows and also angular... | 0 | 1,117 |
Oracle APEX - Saving Shuttle Item selections to a new table | <p>I have a project I am working on where I am dealing with PARTS and ORDERS. Each ORDER may contain many PARTS and each PART has the possiblity of being on more than one ORDER over the course of its life (though not more than one ACTIVE ORDER at a time). My tables are currently as follows:</p>
<pre><code> PARTS_TABLE... | 0 | 1,480 |
Undefined attribute name (role) , eclipse | <p>I have a following file structure</p>
<p>WebContent->bootstrap-></p>
<p>js</p>
<p>css</p>
<p>img</p>
<p>WebContent->index.jsp</p>
<p>None of the following two urls are helping to resolve undefined attribute error.</p>
<p><a href="https://stackoverflow.com/questions/12988208/undefined-attribute-name-data-toggl... | 0 | 1,381 |
PHP: Dynamic Drop down with optgroup | <p>I am developing a drop down menu that uses HTML optgroups for group names that employees are a part of. Here is the MySQL query and output:</p>
<pre>
mysql> SELECT employees.emp_id,employees.empname,employees.grp_id,groups.groupname FROM employees left join groups on employees.grp_id = groups.grp_id order by group... | 0 | 1,743 |
sliding between route transition angularjs | <p>I've only been working with Angular for about a week, so I apologize if my code is crap.</p>
<p>I'm attempting to create a sliding action between route transitions. I can create the effect in a slideshow but not between route transitions.</p>
<p>Anyway code below:
Nav</p>
<pre><code><li><a ng-click="go('... | 0 | 1,252 |
The Namespace * already contains a definition for * | <p>I've created a separate folder and pages in my ASP.NET web application. When I build the solution, I receive the error </p>
<pre><code>The Namespace MyApp already contains a defintion for VDS
</code></pre>
<p>Here's the contents of VDS.Master.cs:</p>
<pre><code>using System;
using System.Collections.Generic;
usi... | 0 | 2,224 |
CSS: 100% font size - 100% of what? | <p>There are <a href="http://www.alistapart.com/articles/howtosizetextincss" rel="noreferrer">many</a> <a href="http://www.w3.org/TR/CSS2/fonts.html#font-size-props" rel="noreferrer">articles</a> and <a href="https://stackoverflow.com/questions/132685/font-size-in-css-or-em">questions</a> about <a href="http://kylescha... | 0 | 1,104 |
Spring Security logout does not work - does not clear security context and authenticated user still exists | <p>I know, there are many articles about this topic, but I have a problem and I can't find any solution.</p>
<p>I have a classic spring security java config:</p>
<pre><code>@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
private AuctionAuthenticationPro... | 0 | 1,053 |
Angular get offset of element by id | <p>I try to set the navbar li object to active when i currently watch the corresponding section.
In other words: When scrolling through my page (single page with multiple sections), the section i'm watching should be highlighted in the navbar.</p>
<p>I already got the scrolling position via directive. Where I fail is ... | 0 | 1,295 |
Module not found: Can't resolve './components/player' in '.../score-board-app/src/components' | <p>I use Create-React-App to build a small React application. The full code is stored in <a href="https://github.com/juan-coding/score-board-app" rel="nofollow noreferrer">github</a></p>
<p>My file structure: </p>
<pre><code>src
components
Players.js
Player.js
App.css
App.js
index.css
index.js
...
</code></... | 0 | 1,335 |
How to create XML file on server using stored procedure or cursor | <p>In my database (<code>GoogleSEOData</code>), I have got one Table (GoogleMarkupList) and below sample data are there in table:</p>
<pre><code>PUBLICATION_ID | PAGEID | URL
-------------------------------------------------------------
233 | 654345 | /english/index.aspx
345 | 6543... | 0 | 1,206 |
Convert Linkedlist to ArrayList | <p>I had to write a program to do LZWDecode and I decided to use LinkedList to write the LZWDecode program below but I want to convert it to an ArrayList. Anyone have idea on how I can convert the LinkedList to an ArrayList to make it simpler.
Thanks.</p>
<pre><code>import java.util.*;
public class LZWDecoder {
pr... | 0 | 1,467 |
How to have Keycloak login page in iframe? | <p>There is a web server running locally, and I want to have Keycloak (on another domain) login page inside the iframe. I tried the following setting in the Keycloak Real Settings > Security Defenses > Headers > Content-Security-Policy</p>
<pre><code>frame-src 'self' http://127.0.0.1 http://192.168.1.140 http://localh... | 0 | 1,127 |
How to click a button through coding? | <p>I have two buttons in my program and i want that when i press first button the second button is clicked automatically ( in the event handler of first button , i want to press the second button through coding).</p>
<pre><code>private void button1_Click(object sender, EventArgs e)
{
passWord = pwd.Text;
... | 0 | 1,052 |
Get all rows matching a list in a SQL query | <p>I have the following SQL query that selects any row matching ANY of the values in the list (9, 10):</p>
<pre><code>SELECT
r.id, r.title,
u.name as 'Created By',
c.name as 'Category',
c.value,
cr.category_id
FROM
category_resource cr
INNER JOIN resource r
ON cr.reso... | 0 | 1,585 |
AlertDialog do not show positive and negative button | <p>I used AlertDialog to alert user confirm delete. I check on my device (Android 5.1) and it show well</p>
<p><a href="https://i.stack.imgur.com/c6WhP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c6WhP.png" alt="enter image description here"></a></p>
<p>But on some another device (also run Android 5.1),... | 0 | 1,087 |
Counting number of SELECTED rows in Oracle with PHP | <p>I'm doing this project for university, which is basically a movie database and for a couple of queries I need to know how many rows were selected. For now, there's 2 situations where I need this:</p>
<ul>
<li>Display a <strong>single movie</strong> information. I want the count of selected rows to know if the datab... | 0 | 1,779 |
Multi-Schema Privileges for a Table Trigger in an Oracle Database | <p>I'm trying to write a table trigger which queries another table that is outside the schema where the trigger will reside. Is this possible? It seems like I have no problem querying tables in my schema but I get:</p>
<pre><code>Error: ORA-00942: table or view does not exist
</code></pre>
<p>when trying trying to ... | 0 | 1,495 |
Django Rest Framework - Missing Static Directory | <p>I have recently started a Digital Ocean server with a pre-installed Django image on Ubuntu 14.04. I wanted to create an API, and have decided on the Django Rest Framework. I installed the Django Rest Framework exactly according to <a href="http://www.django-rest-framework.org/" rel="noreferrer">http://www.django-res... | 0 | 1,390 |
Disable point-of-interest information window using Google Maps API v3 | <p>I have a custom map with an information bubble and custom markers. When I zoom into points of interest such as parks and universities appear and when I click an information window opens. How do I disable the info window?</p>
<p>My code is as follows:</p>
<pre><code>var geocoder;
var map;
var infoBubble;
var dropdo... | 0 | 2,704 |
How to post form login using jsoup? | <p>i want to login in <a href="https://www.desco.org.bd/ebill/login.php" rel="noreferrer">here</a>
<img src="https://i.stack.imgur.com/oj84K.png" alt="enter image description here">
source code </p>
<pre><code><HTML><HEAD><TITLE>:: Dhaka Electric Supply Company Limited (DESCO)::</TITLE>
<MET... | 0 | 3,968 |
Value of type java.lang.String cannot be converted to JSONArray in Android(repost) | <p>I am repost this coz I dont find the solution for this problem...</p>
<p>here is error</p>
<pre><code>org.json.JSONException:Value <!DOCTYPE of type java.lang.String cannot be converted to JSONArray
</code></pre>
<p>here is JSON output:</p>
<pre><code>[{"name":"Muhaimin","address":"Sylhet","bgroup":"o+"}]
</c... | 0 | 1,337 |
ERR_TOO_MANY_REDIRECTS in backoffice when running Prestashop in Docker | <p>I'm trying to make a docker environment for a Prestashop project. I have it almost working but for some reason, the back office is inaccessible - it gives me a ERR_TOO_MANY_REDIRECTS error.</p>
<p>I changed the urls in <code>shop_url</code> table and changed PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL to no vain. I tried... | 0 | 2,583 |
Why Laravel Vite Directive Not Working in My Project? | <p>I installed and configured laravel breeze and blade according to the <a href="https://laravel.com/docs/9.x/starter-kits#breeze-and-blade" rel="noreferrer">documentation</a> given by laravel. By default it uses Vite but somehow @vite directive is not working in my project and I don't know what I miss.</p>
<p><strong>... | 0 | 1,240 |
WPF Force rebind | <p>I have an object that can't inherit DependencyObject OR use NotifyPropertyChanged, and I've binded it to quite a few controls, so when the properties change, I don't want to go to each control and change it's value on the code, so I'm thinking there must be a way to tell the XAML to "Rebind" all that it's bound to w... | 0 | 1,277 |
Activity has leaked window that was originally added here | <p>I am getting this error when i try to execute this class file.I am not getting what the error is..?can anyone pls identify where i am going wrong..?</p>
<p><strong>Mnst.class</strong></p>
<pre><code> //this is class file
public class Mnst extends AppCompatActivity implements
View.OnClickListener {
... | 0 | 4,733 |
Access the Repeater.Item.Count value within a codebehind method | <p>I have a repeater on my page:</p>
<pre><code><asp:Repeater id="attachmentsRepeater" runat="server">
<HeaderTemplate>
<%
if (attachmentsRepeater.Items.Count > 0) {
if (attachmentsRepeater.Items.Count == 1) {
Response.Write("<h3>Attachment</h... | 0 | 1,483 |
Calling a SQL Server stored procedure with linq service through c# | <p>I am new to Linq and trying to convert this SQL Server stored procedure into Linq, I am building a Silverlight business app and need to call on this procedure to return a grid of results. </p>
<p>I have multiple parameters that the users can use to search for particular pieces. They narrow down their search throug... | 0 | 2,501 |
java.util.zip.ZipException: invalid LOC header (bad signature) | <pre><code>Mar 14, 2017 12:46:24 PM org.apache.catalina.startup.ContextConfig processAnnotationsJar
SEVERE: Unable to process Jar entry [org/springframework/security/authentication/AccountStatusUserDetailsChecker.class] from Jar [jar:file:/C:/dev/saml/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/sprin... | 0 | 1,956 |
First chance System.Configuration.ConfigurationErrorsException "This element is not currently associated with any context" | <p>Does anyone know what this particular exception mean and how to fix it?</p>
<p>Note, that I am not asking for help on suppressing it in the Exceptions dialog. I want to understand the root cause of it and how to fix the cause itself, if at all possible.</p>
<p>Thanks.</p>
<p>P.S.</p>
<p>The line that causes FCE ... | 0 | 4,529 |
Install tesseract/pytesser on Mac OS X | <p>I am trying to install this (and additionally pytesser) for osx 10.9 (with anaconda as default python). I have looked around online but I can't get any of the tutorials to work as they all seem to be extinct (homebrew doesn't have a formula for leptonica for instance). I have probably been struggling to install this... | 0 | 1,065 |
Plot semi transparent contour plot over image file using matplotlib | <p>I'd like to plot a transparent contour plot over an image file in matplotlib/pyplot.</p>
<p>Here's what I got so far...</p>
<p>I have a 600x600 pixel square image file <code>test.png</code> that looks like so:</p>
<p><a href="https://i.stack.imgur.com/YTHQg.png" rel="noreferrer"><img src="https://i.stack.imgur.co... | 0 | 1,399 |
Program type already present: com.google.android.gms.internal.zzfq | <p>I getting this error. Despite trying all thing I am unable to resolve it. Please help me. </p>
<p>Things that I tried are:</p>
<ol>
<li>Delete <code>.build</code>, <code>.idea</code> etc then rebuild</li>
<li>Clean and rebuild</li>
<li>Change version of compile library </li>
</ol>
<p>Thank you</p>
<p>plugins</p>... | 0 | 1,054 |
Reading Key value pairs of a JSON File | <p>My code is as follows: The JSON File is <a href="https://www.dropbox.com/s/uwqfqb27blxr1bj/citiesclimate_2014_03_27.json" rel="nofollow">https://www.dropbox.com/s/uwqfqb27blxr1bj/citiesclimate_2014_03_27.json</a></p>
<p>A small sample:</p>
<pre><code>[ { "_id" : { "$oid" : "5333d7e18828169279d9250d" },
"action... | 0 | 1,303 |
Tab icon not showing | <p>I'm trying to do a simple tab app in android with two tabs. My problem is that when I put this code, in the tab, only is shown the text, but no the icons.
If I put the text to "" the icon is shown. </p>
<p>Could someone help me? My android version is 4.0.3.</p>
<p>Thanks a lot. </p>
<pre><code><?xml version="... | 0 | 1,413 |
How to resolve 'SMTP Error: Could not connect to SMTP host.' in phpmailer? | <p>I'm trying to send email using my gmail account but i am getting an error</p>
<blockquote>
<p>"SMTP Error: Could not connect to SMTP host".</p>
</blockquote>
<p>I have tried port 587,465 25 but still its not working.</p>
<pre><code><?php
if(isset($_POST['submit']))
{
$message=
'Full Name: '.$_PO... | 0 | 1,413 |
Illegal constructor with EcmaScript 6 | <p>First of all I would like that say that I don't really know how I can explain what I did on order to get the error mentioned in the title (<code>uncaught TypeError: Illegal constructor</code>). I am using gulpfile in order to compile my Ecmascript 6 to plain Javascript. My gulpfile looks like this:</p>
<pre><code>v... | 0 | 1,030 |
Angular2 with RequireJS | <p>I am having issues getting Angular2 to load correctly when incorporating RequireJS into the application. </p>
<p>For simplicity wise I am using the very simple Hello World Javascript tutorial on the Angular2 located here : <a href="https://angular.io/docs/js/latest/quickstart.html" rel="noreferrer">https://angular.... | 0 | 1,646 |
How to tell if an X and Y coordinate are inside my button? | <p>I have managed, with great difficulty, to make a bitmap overlay the screen. I can also get touch input, however it gets touch input for EVERYWHERE on the screen.</p>
<p>I want to know how I would be able to check if the touch was on my bitmap, which is visible on the screen.</p>
<p>The service and view class is be... | 0 | 1,692 |
Hibernate's 'hbm2ddl.auto' property with value 'create' is not re-creating table | <p>I'm working on my <a href="http://docs.jboss.org/hibernate/orm/4.1/manual/en-US/html/ch01.html#tutorial-firstapp" rel="nofollow">first simple Hibernate application</a>. The crux of the problem is, I had renamed a member of persistent class (with apt changes to all other parts) and re-run the application. As 'hbm2ddl... | 0 | 2,581 |
xml schema nested element within an element with attributes | <p>I am making a school assignment
This is my XML </p>
<pre><code><lineup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ComplexTypeDemo.xsd">
<team teamName="Maple Leafs" city="Toronto">
<visitor/>
<player number="17">
<name... | 0 | 1,113 |
JSON schema: Why does "constant" not validate the same way as a single-valued "enum"? | <p>I have an object that provides a sort of audit log of versions of an asset. A couple of its properties (<code>versionSource.metadata</code> and <code>versionSource.files</code>) are objects that should validate against one of two schemas, depending on the value of one of their properties. I started off using a const... | 0 | 3,079 |
How to get session array data CodeIgniter | <p>I'm not quite sure why the username didn't appear on view page if i change the session data into array (i'm new in CodeIgniter). I have <strong><code>auth</code> controller</strong> to make login process:</p>
<pre><code>function index() {
$this->load->library('form_validation');
$this-... | 0 | 1,645 |
Merging Memory Streams to create a http PDF response in c# | <p>I am trying to merge 2 crystal reports into single pdf file and I'm using Itextsharp v5.1.1. But it says the document cannot be opened. It might be corrupted. There are no build errors. but the pdf is malformed and cant be opened. Here is the order I chose to accomplish this.</p>
<ol>
<li>Export the Crystal report... | 0 | 2,312 |
Yii2 - Bad Request (#400) Unable to verify your data submission | <p>My yii2 application was working fine till yesterday however today on submiting form it is showing error. "Bad Request (#400) Unable to verify your data submission.".</p>
<p>I found many such questions on stackoverflow, where people are suggesting to disable csrf validation i tried disabling csrf validation also. i ... | 0 | 3,127 |
Why is StringBuilder#append(int) faster in Java 7 than in Java 8? | <p>While investigating for a <a href="https://stackoverflow.com/q/23748186/507519">little debate</a> w.r.t. using <code>"" + n</code> and <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#toString%28int%29" rel="nofollow noreferrer"><code>Integer.toString(int)</code></a> to convert an integer pri... | 0 | 3,187 |
Link to specific tab Bootstrap | <p>I'm developing a site with Django Framework and I'm trying to create a way for when a user access a link like <a href="http://www.example.com/site/#users_rating">http://www.example.com/site/#users_rating</a> it opens a specific tab in the page.</p>
<p>I tried the following code that I found on the Internet (I'm new... | 0 | 1,896 |
No view found for id ... for fragment PlaceholderFragment | <p>I have a simple app (based on <a href="http://developer.android.com/training/basics/firstapp/starting-activity.html" rel="nofollow">the Android First App sample</a>); the only thing it does is show one EditText and a button. The button creates another activity, and show the EditText message ... simple! ... But when ... | 0 | 3,978 |
Setting Global Variables in VBA | <p>I'm currently making an "OS" in PowerPoint and I need to know how to set global variables for the settings.</p>
<p>I made a module called "Settings" containing:</p>
<pre><code>Public Sub Settings()
Option Explicit
Public UserName, UserIcon, Background, BrowserHomePage As String
Public SetupComplete As Boolean
Se... | 0 | 1,276 |
Running Jupyter Notebook from cmd raises ModuleNotFoundError: No module named pysqlite2 | <p><strong>The problem:</strong></p>
<p>After reinstalling <a href="https://www.anaconda.com/download/#windows" rel="noreferrer">Anaconda</a> I can no longer navigate to a folder using the command window where I've got some <code>.pynb</code> files, type <code>jupyter notebook</code> and get things up and running. I'm... | 0 | 1,124 |
Put javascript on page from code behind | <p>I have some other javascript functions that are being set on the onfocus and onblur events of the textbox that I am using. In these functions it calls a generic javascript function that is not related to any controls. I want to know how to just simply spit this function out to the html of the page from the code behi... | 0 | 1,404 |
Getting total values of a certain column from GridView | <p>Him</p>
<p>I am using a ASP.NET/VB.NET with SQL-Server-2012.</p>
<p>I have a a GridView column with 3 fields and 1 template field as shown below:</p>
<pre><code><asp:GridView ID="grdItems" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource3" Font-Names="Tahoma" ForeColor="#3... | 0 | 1,691 |
Javascript IE innerHTML of <select> | <p>I'm trying to change the innerHTML of a element based on the value of the previous element.</p>
<p>I have the javascript correctly grabbing the current value and everything works correctly in Firefox, Safari, Chrome and Opera. IE is a pain.</p>
<p>sample code:</p>
<pre><code><form action="soap.php" method="... | 0 | 1,128 |
Multiple selection in WPF MVVM ListBox | <p>I have a ListBox containing filenames. Now I need to get array of selected items from this ListBox. I found a few answers here, but none of them worked for me. I'am using Caliburn Micro framework.</p>
<p>Here is my View:</p>
<pre><code><Window x:Class="ProgramsAndUpdatesDesktop.Views.DeleteHistoryView"
xmln... | 0 | 1,329 |
Cannot create JDBC driver of class '' for connect URL 'null' : Tomcat & SQL Server JDBC driver | <p>I've tried just about everything I can find out there, if someone is able to help me out, I will be eternally grateful (and a lot more free in my time).</p>
<p>Basically, I have an error in Tomcat 7.0 (both when running within Eclipse and via startup.bat) that says this once data begins to be accessed by my dynamic... | 0 | 1,154 |
Twitter Bootstrap 2 modal form dialogs | <p>I have the following dialog form :</p>
<pre><code><div class='modal' id='myModal'>
<div class='modal-header'>
<a class='close' data-dismiss='modal'>×</a>
<h3>Add Tags</h3>
</div>
<div class='modal-body'>
<form accept-charset="UTF-8" action="/tagg... | 0 | 1,114 |
Spring's LdapTemplate search: PartialResultException: Unprocessed Continuation Reference(s); remaining name '/' | <p>I add users through LDAP for a certain application, made with spring.</p>
<p>While this works for most of the cases, in some cases, it does not work...</p>
<p>The retrieve the users I use: </p>
<pre><code>public class LdapUserServiceImpl implements ILdapUserService {
@Override
public List<LdapUserVO&g... | 0 | 1,133 |
PrimeNG Form Validation | <p>I am using a mix of primeNG controls and html controls. The issue is the primeNG controls don't work properly for the phone mask and for he auto-complete the style is different .</p>
<p>for example:
<strong>html</strong> (phone is never showing as red if the user set focus on the control then just tab to the next c... | 0 | 2,832 |
how to change the Title in Navigation Drawer | <p>I would like that the title in the menu will change by the fragment name that was click. for the code below what i get is that, the actual title in each fragment is "Home" and its does not change. but i found that when i click on an item in the menu the title changing for a second and return back to the "Home" title... | 0 | 4,314 |
Glide : How to find if the image is already cached and use the cached version? | <p><strong>Scenario</strong>: </p>
<p>I have a large GIF image which I want to cache the first time user opens the app using <a href="https://github.com/bumptech/glide" rel="noreferrer">Glide</a> - Image Loading and Caching library. After that whenever user opens the app, I want to show the cached version if present. ... | 0 | 1,232 |
Symfony2 UniqueConstraint and UniqueEntity (Integrity Violation) | <p>I've got a little problem with a Doctrine entity for a few days now. I've defined it with a UniqueConstraint on two fields with a UniqueEntity Validation on these two fields after that. But after validating of my form with a adding of an entity already in base, no way to obtain my error message in my form.</p>
<p>J... | 0 | 2,155 |
Py4JJavaError: An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext | <p>Anyon know Why I keeo getting this error in Jupyter Notebooks??? I've been trying to load my Tensorflow model into Apache Spark vis SparlFlowbut I can't seem to figure out how to get past this error. Any help would be much appreciated.</p>
<p>First Jupyter cell: </p>
<pre><code>from sparkflow.graph_utils import bu... | 0 | 3,346 |
Retrofit : java.lang.IllegalStateException: closed | <p>I am using two kind of interceptor, one is <strong>HttpLoggingInterceptor</strong> and another one is my custom <strong>AuthorizationInterceptor</strong></p>
<p>I am using below updated retrofit version library,</p>
<pre><code>def retrofit_version = "2.7.2"
implementation "com.squareup.retrofit2:retrofit:$retrofit... | 0 | 1,835 |
WildFly: Error on start up | <p>I keep getting this silly error, when trying to start up a wildfly server:</p>
<p><img src="https://i.stack.imgur.com/OzN61.png" alt="WildFyl error"></p>
<p>How to fix it? I was googling for like 2 hours now and could not find any solution.
My JAVA_HOME is set to C:\Apps\Java\jdk1.7.0_51
I tried with changing it ... | 0 | 2,740 |
Problems with createImage(int width, int height) | <p>I have the following code, which is run every 10ms as part of a game:</p>
<pre><code>private void gameRender()
{
if(dbImage == null)
{
//createImage() returns null if GraphicsEnvironment.isHeadless()
//returns true. (java.awt.GraphicsEnvironment)
dbImage = createImage(PWIDTH, PHEIGHT... | 0 | 1,876 |
How to enable code hinting using codemirror? | <p>I am using codemirror to allow the user to type anycode like css/html/js.</p>
<p>I need to enable if the user type something like in css mode</p>
<pre><code>div {
padding-
}
</code></pre>
<p>It should hint the user to chose the available options from the list like</p>
<pre><code>div {
padding-top
padding-left
p... | 0 | 2,130 |
JAXB not available on Tomcat 9 and Java 9/10 | <p><strong>TLDR</strong>: On Java 9/10, a web app in Tomcat has no access to JAXB even though its reference implementation is present on the class path.</p>
<p><strong>Edit</strong>: No, this is not a duplicate of <a href="https://stackoverflow.com/q/43574426/2525313">How to resolve java.lang.NoClassDefFoundError: jav... | 0 | 2,826 |
Eject USB device via C# | <p>I was looking for a short way to eject USB-devices via C#-code, so I coded a little class myself, yet it simply doesn't work. Since there's no popup that says "Lock success!" I assume that the problem relies within the "LockVolume"-function, but I don't know where.</p>
<p>Does anybody see the mistake I made?</p>
<... | 0 | 1,740 |
Record Audio on Website that works on all browsers and iOS | <p>I have wasted a ton of time implementing multiple audio recording options in a website I'm building but each one either only works in Chrome, only in Firefox, both but not Safari, and none work on iOS. </p>
<p>The website needs to allows the user to record their message and save it in a form state for submission. <... | 0 | 1,279 |
JavaFx USE_COMPUTED_SIZE for Stage without using FXML | <p>In the JavaFX Scene Builder, I can select a value for the minimum, maximum and preferred width and height of a <code>Control</code> or <code>Container</code>. There are predefined values like <code>USE_COMPUTED_SIZE</code>.</p>
<p>I came to the conclusion, that I don't like to use FXML for my current project, for s... | 0 | 3,258 |
Connect remotely to an H2 Database using a Java Application | <p>I'm having the following problem:
When I try to createTcpServer with my external IP address (the PC's IP and not my local IP = the one we see as an output after running ipconfig in cmd.exe) the following error occurs:</p>
<p>Error with Server: Exception opening port "9092" (port may be in use), cause: "java.net.Bin... | 0 | 1,916 |
The server response was: 5.7.0 Authentication Required. Learn more at | <p>I tried to run this code and it shows this error.This is reset password where user is required to insert the email address. When the email address is valid, the admin will send the link to the user to do resetting password. <a href="https://i.stack.imgur.com/E7i3x.png" rel="noreferrer"><img src="https://i.stack.img... | 0 | 1,286 |
How to fix: Data path "" should have required property 'browserTarget' error in Angular 8 when running ng serve or npm start | <p>I'm trying to run either 'ng serve' or 'npm start' to run my angular 8 server on localhost:4200 in cmd on a windows machine. I get a Schema error I think I know where the problem is but no idea how to fix it.</p>
<p>Another point to note is this was working perfectly fine until windows restarted my computer to do a... | 0 | 3,863 |
Execute a string of PHP code on the command line | <p>I'd like to be able to run a line of PHP code on the command line similar to how the following options work:</p>
<pre><code>perl -e "print 'hi';"
python -c "print 'hi'"
ruby -e "puts 'hi'"
</code></pre>
<p>I'd like to be able to do:</p>
<pre><code>php "echo 'hi';"
</code></pre... | 0 | 1,514 |
How to return Observable inside a subscription | <p>I want to call http request inside a observable which makes select operation from database. I made two services, <strong>DbService</strong> and <strong>BackendService</strong>. </p>
<p>BackendService makes http post requests and returns response data. In my design BackendService should subscribe to DbService for ge... | 0 | 2,504 |
Angular JS table with ng-repeat and radio buttons | <p>I am trying to make a table using ng-repeat that has a radio button selector at the start of each row. The table looks like this:</p>
<pre><code><table>
<tbody>
<tr ng-repeat="model in modelList">
<td>
<input type="radio" ng-model="model.sele... | 0 | 1,170 |
Spring Boot deployment - NoClassDefFoundError | <p>I'm trying to deploy Spring Boot application. I build a jar file through maven plugins. But I get an error saying:</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/boot/SpringApplication
at com.spring-boot.example.AppConfig.main(AppConfig.java:18)
Caused by: java... | 0 | 2,086 |
Spark and Java: Exception thrown in awaitResult | <p>I am trying to connect a Spark cluster running within a virtual machine with IP <code>10.20.30.50</code> and port <code>7077</code> from within a Java application and run the word count example:</p>
<pre><code>SparkConf conf = new SparkConf().setMaster("spark://10.20.30.50:7077").setAppName("wordCount");
JavaSparkC... | 0 | 5,136 |
Remove node from TreeView | <p>I want to create this simple example of javaFX TreeView with context menu which can remove nodes from the tree:</p>
<pre><code>public class TreeViewSample extends Application {
private final Node rootIcon = new ImageView(
new Image(getClass().getResourceAsStream("folder_16.png"))
);
public sta... | 0 | 1,098 |
Print Data from database in django | <p>I want to display data of two joined tables with a foreign key in django ,i have set it all up but it isn't displaying anything , here are my files:</p>
<p>models.py:</p>
<pre><code>from django.db import models
from django.utils.encoding import smart_unicode
class Course (models.Model):
Course_name=models.CharFie... | 0 | 1,301 |
Merge content of multiple Excel files into one using PowerShell | <p>I have multiple Excel files with different names in path. </p>
<p>e.g. <code>C:\Users\XXXX\Downloads\report</code></p>
<p>Each file has a fixed number of columns.</p>
<p>e.g. <code>Date | Downtime | Response</code></p>
<p>I want to create a new Excel file with merge of all Excel data. New column should be added ... | 0 | 1,057 |
Shared x and y axis labels ggplot2 with ggarrange | <p>I have a number off ggplot objects created based off dichotomous count data. I have combined them together using ggarrange. In this function, there is an option to create a shared legend, but as far as I can see no way to create shared x and y axis labels. In addition, the spacing of the figures is very weird - ther... | 0 | 2,688 |
How to define max_queue_size, workers and use_multiprocessing in keras fit_generator()? | <p>I am applying transfer-learning on a pre-trained network using the GPU version of keras. I don't understand how to define the parameters <strong><code>max_queue_size</code></strong>, <strong><code>workers</code></strong>, and <strong><code>use_multiprocessing</code></strong>. If I change these parameters (primarily ... | 0 | 1,756 |
In ReactJS, why does `setState` behave differently when called synchronously? | <p>I am trying to understand the underlying cause for some somewhat "magical" behavior I am seeing that I cannot fully explain, and which is not apparent from reading the ReactJS source code.</p>
<p>When calling the <code>setState</code> method synchronously in response to an <code>onChange</code> event on an input, e... | 0 | 1,427 |
Get footer row cell values of gridview | <p>I have a gridview with two textboxes in the footer. What's required is get the textbox values, store it to a datatable and then bind the same to the gridview.
I am unable to get the textbox values. They show up empty (as you can see). Where am I going wrong.</p>
<p><img src="https://i.stack.imgur.com/Mvvvj.jpg" al... | 0 | 1,930 |
[01000][unixODBC][Driver Manager]Can't open lib '/usr/local/easysoft/oracle/InstantClient112/lib/libsqora.so' : file not found | <p>I am trying to acces oracle from linux server. I am using unixODBC.</p>
<p>When i try to acces oracle using isql and i get error that driver manager can't open libsqora.so.12.1.</p>
<p>odbc.ini</p>
<pre><code>[NAME]
Application Attributes = T
Attributes = W
BatchAutocommitMode = IfAllSuccessful
BindAsFLOAT = ... | 0 | 2,490 |
java.lang.IllegalStateException: Not on the main thread | <p>I am trying to delete the markers from the Goolge map in the FragmentActivity Map when there is no data available in the table for the makers on the serverside also the data object is empty but I am getting the error below. How can I fix it?</p>
<p><strong>Error:</strong></p>
<pre><code>07-12 20:53:05.697: E/Andro... | 0 | 1,893 |
How to save Scikit-Learn-Keras Model into a Persistence File (pickle/hd5/json/yaml) | <p>I have the following code, using <a href="https://github.com/fchollet/keras/blob/master/keras/wrappers/scikit_learn.py">Keras Scikit-Learn Wrapper</a>:</p>
<pre><code>from keras.models import Sequential
from sklearn import datasets
from keras.layers import Dense
from sklearn.model_selection import train_test_split
... | 0 | 1,276 |
Symfony - How to access entity's repository | <p>There are several ways that we can access the entity's repository in Symfony2 controllers or services which each has its advantage and disadvantage. First I list them here and then asking if there is any better solution or these are the only options that we have and we should choose one or some based on our preferen... | 0 | 1,764 |
How to stop all the running threads, if one of those throws an Exception? | <p>In one of my application I'm using the <code>ExecutorService</code> class to create a fixed thread pool and <code>CountDownLatch</code> to wait for the threads to complete. This is working fine if the process didn't throw any exception . If there is an exception occurred in any of the threads, I need to stop all the... | 0 | 1,658 |
Android studio with experimental gradle 0.2.0 | <p>I am trying to setup a basic ndk build with the latest version of android studio at this moment. Trying to follow <a href="http://tools.android.com/tech-docs/new-build-system/gradle-experimental" rel="nofollow noreferrer">this tutorial</a> </p>
<p><a href="https://i.stack.imgur.com/vU5y0.png" rel="nofollow noreferr... | 0 | 2,334 |
SASS/CSS: :first-child selector not working | <p>I'm trying to style a certain <code><div></code> in my markup with CSS/SASS, and I'm clueless as to why it's not applying the rules. This is my markup:</p>
<pre><code><div class="row addon-header">
<div class="col-sm-3">
// something here
</div>
<div class="col-sm-9">
... | 0 | 1,098 |
Set image maximum file size with validator | <p>I am implementing image upload in Yii2 using File Input Widget as shown in <a href="http://demos.krajee.com/widget-details/fileinput" rel="noreferrer">http://demos.krajee.com/widget-details/fileinput</a>. May I know how to set the uploaded file size limit?</p>
<p>I have added: </p>
<pre><code>['image', 'file', 'ex... | 0 | 1,227 |
Redirect child process's stdin and stdout to pipes | <hr>
<p>EDIT:
The solution is </p>
<pre><code> int c1=dup2(pipes[0][1],STDOUT_FILENO);
int c2=dup2(pipes[1][0],STDIN_FILENO);
setvbuf(stdout,NULL,_IONBF,0);
</code></pre>
<p>It is SETVBUF to set stdout to be non-buffered. Even though I was printing the newline character if the destination is not an actual screen... | 0 | 1,331 |
How to download .m3u8 in once time | <p>I have a <code>.m3u8</code> file on remote host, with contain fixed numbers of chunk <code>.ts</code> file name, and not stream:</p>
<pre><code>#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:9.736,
media_0.ts
#EXTINF:9.96,
media_1.ts
#EXTINF:10.0,
media_2.ts
#EXTINF:10.0,
media_3.... | 0 | 2,049 |
Get the current array key inside foreach | <p>Ok so, I am building something for my employer for them to input products, they have very specific requirements. I have a form with dynamically generated fields like so...
(obviously not the exact code to follow but the examples are identical conceptually)</p>
<pre><code><input type="text" name="attribute[20]"&g... | 0 | 1,056 |
`TypeError` when calling create(). You may need to make the field read-only, or override the create() method | <p>Not sure what's going on here. I'm trying to perform create a new instance via Django-rest-framework. <strong>What am I doing wrong?</strong></p>
<p>There are a few read-only fields being submitted back.
I've tried marking them as read-only via <code>read_only_fields</code> in the serializer, as well as specifying ... | 0 | 1,482 |
Notice: Undefined index: ZZZZZZWTF? | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index">PHP: “Notice: Undefined variable” and “Notice: Undefined index”</a> </p>
</blockquote>
<p>All of a sudden my php code h... | 0 | 4,724 |
rpmbuild failing error: Installed (but unpackaged) file(s) found: | <p>I looked around but none of the answers to this same error message worked in my simple package... I am building the rpm using rpmbuild on Redhat ES 6 and no matter what I have done in my spec file I get the same results. Thank you in advance for your help. </p>
<p>Here is my spec file:</p>
<pre><code>Name: pac... | 0 | 1,388 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.