title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
C++ program compilation fails in Ubuntu, but works in MacOSX | <p>Hi I've a program written in C++. When I compile it in Mac terminal with g++ compiler, it compiles and runs. But when I compile the same C++ program in Ubuntu terminal with g++ compiler, it Fails. I don't know why it happens.</p>
<p>g++ compiler version in Ubuntu is 4.7.3.</p>
<p>Here is my code sample </p>
<pre>... | 1 | 1,207 |
Installing Zbar in Windows for Python 2.6.6 | <p>I am trying to install Zbar with Python 2.6.6 but getting a lot of error's i tried to remove them but still left with one,</p>
<p>When i tried to install zbar with my cmd i got error:</p>
<pre><code> C:\zbar>python setup.py install
running install
running build
running build_ext
building 'zbar' extension
error... | 1 | 1,342 |
Symfony2 FosUserBundle Roles ROLE_ADMIN | <p>I've got this problem.</p>
<p>Have configured my Sf2 env with FosUserBundle and FacebookBundle. </p>
<p>I've managed to to some ADMIN only section on the frontend (meaning moderator thing).
By default, every user created in my project has ROLE_USER only.</p>
<p>The "moderator" thing can only by accessed by having... | 1 | 1,189 |
Spring FilterChainProxy with filterSecurityInterceptor not working correctly? | <p>I have a spring application with the config files as shown below. All configs seem correct but while debugging I found that, <strong>during the initialization spring creates two beans for FilterSecurityInterceptor one without any intercept-url rules and the other with the rules that I have specified.</strong>
When ... | 1 | 2,711 |
JavaFX GUI window not showing up | <p>So I have this application (not fully functional yet) I made using JavaFX in Eclipse. The problem is that when I press play, nothing show up. No GUI window. I built it using Scene Builder by the way. When i run though, no error pops up. Here's my code : </p>
<p>Main.Java</p>
<pre><code>package application;
import... | 1 | 2,898 |
TThreadedQueue not capable of multiple consumers? | <p>Trying to use the TThreadedQueue (Generics.Collections) in a single producer multiple consumer scheme. (Delphi-XE).
The idea is to push objects into a queue and let several worker threads draining the queue.</p>
<p>It does not work as expected, though.
When two or more worker threads are calling PopItem, access vi... | 1 | 2,238 |
java.io.FileNotFoundException: /storage/emulated/0/crash/crash-2016-09-04-15-35-25-1472974525277.log: open failed: ENOENT (No such file or directory) | <p>The following code is what I wrote for saving crash message in a local file </p>
<pre><code> try {
long timestamp = System.currentTimeMillis();
String time = formatter.format(new Date());
String fileName = "crash-" + time + "-" + timestamp + ".log";
if (Environ... | 1 | 1,283 |
Spring RestTemplate Interceptor not execute request | <p>When I configure RestTemplate use HttpClient then my interceptor only execute for first time, in second time it'll hang up when execute, in this block below. There is no exception, I don't know why!
If I remove httpClient then no problem.
(My interceptor intention is catch 401 unauthorized status to refresh access t... | 1 | 2,027 |
Android TableRow children issue | <p>I have a <code>TableLayout</code> with 3 rows at present and each row has one child, a <code>TextView</code>. My problem is that the <code>TextViews</code> widths do not <code>"match_parent"</code> as they should. I have followed the procedure of not defining heights and widths for them(<a href="http://developer.and... | 1 | 1,146 |
Angular 10: VSCode show error when import with absolute path | <p>after Angular 10 upgrade from Angular 9. VSCode show error when import with absolute path:</p>
<pre><code>import { IconModule } from 'src/app/shared/components/icon/icon.module';
</code></pre>
<p>the error:</p>
<blockquote>
<p>Cannot find module 'src/app/shared/components/icon/icon.module'.ts(2307)</p>
</blockquote>... | 1 | 1,102 |
Bootstrap 4 table td width size customize | <p>I need to increase the rating column width but my w-9 doesn't work.. I want to expand the rating column.</p>
<p><a href="https://i.stack.imgur.com/s7dnk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s7dnk.png" alt="Heres my table"></a></p>
<p>Here's my table code:</p>
<pre><code> <table cl... | 1 | 1,223 |
Using Mockito / PowerMock to verify a log has been written | <p>I have a class which writes messages to some logs. The class is a utility which doesn't do anything else, it runs in the background, checks a few things and logs them. I'm wondering if it's possible for me to verify in a unit test that the log has been written to without caring about what it is actually writing. Her... | 1 | 1,054 |
batch file: "2>&1 was unexpected at this time." | <p>I've done a ton of searching on this, but none of the answers I've found worked or ended up being relevant. I hope someone can help and I hope this might be a common enough problem to help others.</p>
<p>I've taken a batch file (that worked) and have been reworking it to be better formatted, a bit more structured, ... | 1 | 2,378 |
How to create login functionality in laravel 4.2 | <p>Hi, I'm pretty new to laravel. I was asked to create the application in Laravel. Now initially, I am working on the Login Module.</p>
<p><b>Basic Requirement</b></p>
<ul>
<li>Show the login page as landing page when user is logged in.</li>
<li>After giving the user credentials, session should set and user ... | 1 | 1,125 |
How to get return value with pop on Flutter? | <p>I would like to know how to get two values with pop on Flutter.
I tried to write the code. but I got the exception "A non-null String must be provided to a Text widget."</p>
<p>Here is the codes.<br></p>
<p>First Screen</p>
<pre><code> ElevatedButton(
child: con... | 1 | 2,046 |
Error 56. Unable to load the SQLUserInstance.dll from the location specified in the registry | <p>I am in an Advanced Web Development course at my university. This semester, they began using VS Community 2015 as the IDE (As opposed to 2013 professional) for out of lab exercises. In our labs, we use 2015 Professional.</p>
<p><strong>EDIT.</strong> Just used my roommates Professional 2013, and it still causes ... | 1 | 1,986 |
NavigationBar height for SwiftUI's NavigationLink DetailView in Portrait and Landscape | <p>Using iOS14.5, Swift5.4, XCode12.5, and SwiftUI,</p>
<p>I am trying to build simple DetailView to which you can navigate to using a NavigationLink.</p>
<p>It all works, except that I have no idea about the height of my NavigationBar inside the DetailView. (note that I use the .inline Version by calling <code>.naviga... | 1 | 1,063 |
Android ImageButton ClickEvent not working | <p>here is the code, please can anyone simply tell me how to make the onClick event run?</p>
<p>xml file of the activity, which has a navigation-drawer fragment, An Image view, A TextView, An ImageButton</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.and... | 1 | 2,573 |
Change background color of body element inside an iframe | <p>I have the following code:</p>
<pre><code> <table id="first">
<tr class="my-field my-field-color-picker" data-name="background_colour" data-type="color_picker">
<td class="my-input">
<input type="text" class="wp-color-picker">
</td>
<... | 1 | 1,264 |
Submit button not working! MVC | <pre><code>@model CommonLayer.ORDER
@{
ViewBag.Title = "Update";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h4>Update Order Status</h4>
<br />
@if (Model.OrderStatus != "Shipped")
{
using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.Valid... | 1 | 1,634 |
MPAndroidChart: How to create grouped BarChart? | <p>I am using <a href="https://github.com/PhilJay/MPAndroidChart" rel="nofollow noreferrer">MPAndroidChart</a> to create grouped Dataset, but it is showing an error <code>BarData data = new BarData(labels,dataSets );</code> at this line that is <code>Unable to resolve constructor,BarData(java.util.ArrayList)<java.la... | 1 | 1,206 |
ExpressJS: Response to preflight request doesn't pass access control check | <p>I'm running an Angular 4 (angular.io/angular cli) app on <code>http://localhost:4200</code> as well as an ExpressJS app on <code>http://localhost:3000</code></p>
<h1><a href="https://github.com/AquaSolid/MEAN-stack-diversity" rel="nofollow noreferrer">ExpressJS app github link</a></h1>
<h1><a href="https://github.... | 1 | 2,718 |
Select ONLY the very next select box (jQuery) | <p>I am trying to change the value of <em>only</em> the very next select box after the current field.</p>
<p>The form is a long list of rows with fields that have the same classes. On focus of the "quantity" field in "row 1" I want to change the "type" select box to "boxes" in that same row. All the code I try makes A... | 1 | 1,481 |
Asp.net Core MVC Dynamically add Select List via JS | <p>I am trying to provide a view where people will be able to create a list of categories and sub categories. Therefore I need to allow users to dynamically add Rows.
Each Row will allow user to add a category and then if they wish a Sub Category. For the first row I am able to use <strong>asp-items</strong> attributes... | 1 | 1,940 |
Why doesn't this left outer join query work properly? | <p>I have a table that looks like this:</p>
<pre><code>peter=> \d aggregated_accounts_by_month
Table "public.aggregated_accounts_by_month"
Column | Type | Modifiers
-----------+---------+-----------
xtn_month | date |
account | text |
commodity | text |
amount | numeric |
Indexes:
... | 1 | 1,476 |
writing linux shell | <p>I am trying to learn Unix C and doing some exercises for practice. I am currently working on writing my own shell that works similar to the linux bash shell.</p>
<p>The code I have below provides for a fairly basic shell. It now provides I/O redirection.
I am trying to add support for piping. Initially, I just want... | 1 | 1,128 |
PHP IRC Robot, Send Command, but now I need the bot to read the command | <p>I have a PHP IRC Robot that I use in my channel and I need it to make OPs to specific set users in the script by me. Anyways I want the robot to check if the user is logged into NickServ to prevent any sort of fraud or anything.</p>
<p>Anyways, here is my connect and DO things code, followed by what I really need h... | 1 | 1,188 |
Algorithm to determine the effective "phase difference" between two signals with different frequencies? | <p><strong>The quick version:</strong></p>
<p>What algorithm could I use to determine the "phase difference" between two square wave signals with <em>different</em> frequencies, if the only information that I have is the time at which each rising edge occurs?</p>
<p><strong>The detailed version:</strong> </p>
<p>I'... | 1 | 1,062 |
Webpack: css-loader not resolving url | <p>I am getting the below error when trying to use an image (background-image: url('path_to_image')) in my sass file under src directory. However, I am able to call the same file from index.js. I am not sure what is missing in my Webpack config.</p>
<p>Error</p>
<p>ERROR in ./src/sass/main.scss (./node_modules/css-lo... | 1 | 2,009 |
Why does Tokio return the error "Cannot drop a runtime in a context where blocking is not allowed"? | <p>I have a Tokio client that talks to a remote server and is supposed to keep the connection alive permanently. I've implemented the initial authentication handshake and found that when my test terminates, I get an odd panic:</p>
<pre class="lang-none prettyprint-override"><code>---- test_connect_without_database stdo... | 1 | 1,655 |
Weblogic 12.2.1.2 - How to tune the object Serializer to use Jackson 2 and strange phenomena on jaxrs enablement for application/json endpoints | <p>On Weblogic JEE 7 (version 12.2.1.2), I am finding it quite strange to understand the behavior of the application server in relation to the enablement and configuration of the JAX-RS web services.</p>
<p>The first point that I am trying to understand is a phenomena that I find quite inexplicable.
On a sample applica... | 1 | 9,216 |
Instagram login using curl PHP | <pre><code><?php
function instagram_login($data_sent_username, $data_sent_password){
$data_filtered_data = instagram_gettoken();
$data_rec_token = $data_filtered_data[0];
$data_rec_mid = $data_filtered_data[1];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://www.instagram.com/accounts/login/ajax/... | 1 | 1,430 |
Angular2 /Ionic2: databinding | <p>I have a simple component as follow: </p>
<pre><code>import {Page} from 'ionic-framework/ionic';
import {Component} from 'angular2/core';
import {Data} from './data';
@Page({
selector: "main-page",
templateUrl: 'build/pages/main/main.html'
})
export class MainPage
{
submitted: number;... | 1 | 1,186 |
Convert HTML Template to PDF using iText 7: how to move a table that prints across pages | <p>I'm developing an asp.net mvc project and I'm using an html template to generate an invoice document with dynamic data which I filled up thanks to handlebars. The html resulting is being converted to PDF by using iText 7, since is the tool required by the company for using to, however I'm facing an issue when conver... | 1 | 19,073 |
How can I use WaitHandle awaiting completion of an asynchronous call? | <p>Consider this code: </p>
<pre><code>class Program
{
static void Main(string[] args)
{
Master master = new Master();
master.Execute();
}
}
class TestClass
{
public void Method(string s)
{
C... | 1 | 3,067 |
android UI: ImageButton with animation | <p>I'm looking to make an ImageButton that contains an animation drawable, more precisely the repetitive tweened animation of a progressbar spinner (like the view/widget that exists for this).</p>
<p>In xml I specified this for the ImageButton in the activity's layout:</p>
<pre><code><ImageButton android:id="@+id/... | 1 | 1,311 |
access 2nd level of json object | <p>I have a data object that looks like this:</p>
<pre><code>[
{
"key": "K1204",
"values": [
{
"key": "Both",
"values": [
{
"key": 1420070400000,
"values": 27927.7349421797
},
{
"key": 1422748800000,
"val... | 1 | 3,913 |
Android/Unity - Fullscreen mode, Android's status bar, and 3D aspect ratios | <p>I have been racking my brain a week now trying things left and right and I cannot seem to find the answer. I might actually have more questions.</p>
<p>We have an application that uses a Unity view in one of its activities to present some graphics. As this is a normal app and not a game we want to remove immersive ... | 1 | 1,149 |
2 div columns: fixed and liquid. Fixed one must be removable. Liquid one must be the first in code | <p>Consider the following 2 cols html structure:</p>
<pre><code><div id="container">
<div class="left">some text</div>
<div class="right">some text</div>
</div>
</code></pre>
<p>CSS:</p>
<pre><code>#container { overflow: hidden; }
.left { float: left; width: 200px; backgro... | 1 | 1,401 |
Upgrading to SDK 21 - Error inflating class android.support.v7.internal.widget.ActionBarContainer | <p>I'm trying to upgrade my app from API19 to API21</p>
<p>The main changes I've made to the gradle properties are:</p>
<pre><code>compileSdkVersion 21
buildToolsVersion "21.0.2"
minSdkVersion 8
targetSdkVersion 21
compile 'com.android.support:appcompat-v7:21.0.0'
</code></pre>
<p>The app builds ok, but I always ... | 1 | 3,213 |
Using findFragmentById with a ViewPager | <p>My app has a list and detail view, where I allow the user to swipe between the different detail views, using a <code>ViewPager</code> in portrait. In landscape, I show both fragments on the screen. </p>
<p>I'm having an issue where, when the device is rotated, the icons are duplicating themselves over and over in ... | 1 | 2,275 |
HttpClient Call to WebApi Service on IIS 7.5 - 404 Not Found | <p>I am new to WebApi and we have a requirement to create\maintain a token issuing web service. A colleague of mine provided his solution (beta) which he has allowed me to use. If I run the web service from my dev environment (VS 2012) I am able to query it and get the token back from a web browser (Chrome). I then wro... | 1 | 1,268 |
Save File dialog with PowerShell/C# from cmd batch | <p>I am trying to get a gui based save file as dialog from within a windows batch script. I would like to have a new folder button left of the save & cancel buttons. With no predefined filetype. So it would probably have to be set to all files.</p>
<p>Something similar to this: <img src="https://i.stack.imgur.com/... | 1 | 1,291 |
JQuery Datatables overflow | <p>I have settled my datables within a tabbed container, If the table is too long, it overflows. The following code resizes the columns when i change tabs:</p>
<pre><code>$('#tmTabs').tabs( {
"show": function(event, ui) {
var oTable = $('div.dataTables_scrollBody>table.display', ui.panel).dataTable();
... | 1 | 1,738 |
"Unable to connect to the server: Forbidden" on kubectl and helm commands only when running with Ansible | <p>I want to automate <code>kubectl</code> and <code>helm</code> commands using Ansible. The target machine is configured properly, so that both works on the cli in a manual shell (e.g. <code>kubectl get nodes</code> or <code>helm list</code>). But when trying to make any API calls like get the server version</p>
<pre... | 1 | 1,224 |
Pyglet walking animation. Error: 'NoneType' object has no attribute 'draw' | <p>This code displays the image <code>assassin1.png</code> on a black background. The idea is that as soon as I press the <code><right-direction></code> key the character should move and display an animation using <code>assassin2.png</code> and <code>assassin3.png</code>. I have been able to move the character an... | 1 | 1,458 |
how to make bootstrap 4 carousel responsive? | <p>My carousel isn't responsive? When I narrow the page, all of the page is responsive, but the carousel images stay the same size. I'm confused what to change/fix to adjust this, can someone please look at my code and see where the problem is? I took the exact code from getbootstrap, so I'm not sure why this issue is ... | 1 | 6,099 |
getservbyname failure error while trying to obtain thumbprint for OIDC | <p>Im trying to obtain the certificate for my OIDC IdP (google in my case) and want to download the certificate chain. I have installed and configured OpenSSL and retrieved the IdP's configuration document, using the following:</p>
<p><code>https://server.example.com/.well-known/openid-configuration</code></p>
<p>obv... | 1 | 2,273 |
How to trigger facebook login onClick | <p>How can I trigger Facebook login when a checkbox is checked?</p>
<p>I'm implementing a share to multiple networks feature for my website. I need a bit of help with implementing the facebook login process. As a prerequisite to sharing on my user's behalf I need to make sure the user is logged into facebook and allow... | 1 | 1,286 |
Spring Boot with multiple datasources Oracle and H2 | <p>I develop a spring boot RestController for my angular Project and encountered a problem. In my logic for the rest-service I used two different databases to get data from.</p>
<p>Here you can see the datasource configuration:</p>
<p>[application.properties]</p>
<pre><code>#datasource1
spring.datasource.url=[url]
s... | 1 | 4,114 |
Failed to load bean class; nested exception is java.io.FileNotFoundException: class path resource cannot be opened because it does not exist | <p>I am using spring java based configuration in web app. I have an issue. </p>
<p>In my config file I am doing import and getting some other java config files. </p>
<p>When I run my test cases all the test cases are passing.In my test cases I am using Aplication to get the bean. I dont have any problem there. But Wh... | 1 | 1,457 |
Powershell - Read and Move mails to archive folder | <p><strong>Problem:</strong></p>
<p>Outlook:Cannot move read e-mail to Archive folder.</p>
<p>Tried several options I found on the web but all to no avail... Anyone? :D</p>
<p>I already removed the .move property as it was not working, so please don't fuss about that.</p>
<p><em>Any help will be much appreciated!</... | 1 | 1,186 |
Tetris 2d array logic | <p>I'm trying to write tetris in JS with matrixes instead of sprites.
Basically to be better at visualising 2d arrays.</p>
<p>I rotate a block by transposing its matrix data and then reversing the rows.
But because the block's width and height doesn't completely fill this 4x4 matrix
the rotating results in the block m... | 1 | 1,199 |
Could not resolve placeholder List of Custom objects in string value | <p>I am unable to read the list of custom objects like below in spring rest controller. But, able to read/fetch the data by autowiring bean into java bean in restcontoller.
Can anybody help me in read the list of data from rest controller using annonation @value ?</p>
<p>Could not resolve placeholder List of Custom o... | 1 | 2,265 |
can I get text from html and put it into variable in php without submitting a form? | <p>I have a form in html: </p>
<pre><code><form>
<label><input type="hidden" name="pNameChange" value=""></label>
</form>
</code></pre>
<p>and I want to get the value of this input in php without submitting it in a form.</p>
<p>this is my javascript:</p>
<pre><code>var pName= null;
$(d... | 1 | 2,893 |
How to Change text color on AppCompatSpinner in Toolbar? | <p>I have recently updated to API 24 and now I am having a problem with the text color on my AppCompatSpinner inside the Toolbar.</p>
<p>Here is what I am talking about, notice how "Pils" at the very top is black. Pre API 24 this was white. (Also, running this APP on a device which is not on API 24 the text shows up w... | 1 | 1,536 |
In ActiveAndroid Is it possible to update a specific field in a table row without wiping out the rest of the data in the row | <p>ActiveAndroid:</p>
<p>I need to push updates to specific table fields without wiping out any existing data in the row if i dont happen to save() data for all fields each time.</p>
<p>For example:</p>
<p>I have a table named 'user' which contains the following fields:</p>
<p>extSrc | extId | email | firstName | l... | 1 | 2,364 |
TypeError: Cannot read property 'get' of undefined Angularjs | <p>Im try to use Oboe.Js and Angular.Js together</p>
<p>Here is my sample code which is working correctly..</p>
<pre class="lang-js prettyprint-override"><code>angular.module('myApp', ['ng-oboe'])
.config(function (oboeProvider) {
/* If we were so inclined, we could change the oboe defaults here - heade... | 1 | 1,154 |
WCF/SSL error: Failed to lookup a channel to receive an incoming message | <p>I've been having a difficult time getting a WCF call in Silverlight to work when using SSL. I've gotten it to a point where WCF tracing says the endpoint is listening but when my code tries to call a function on it WCF Tracing shows the error:</p>
<p>Failed to lookup a channel to receive an incoming message. Either... | 1 | 1,674 |
How do I get and use the Apache Ivy.jar file from inside my project, without having it in my .ant folder? | <p>At the moment I have this configuration:</p>
<p>build.xml:</p>
<pre><code><!-- Ivy settings start-->
<condition property="ivy.home" value="${env.IVY_HOME}">
<isset property="env.IVY_HOME" />
</condition>
<target name="download-ivy" unless="offline" description="Dow... | 1 | 1,171 |
ConfigurationProperties Not Working in Spring Boot2 | <pre><code>Spring Boot Version 2.1.4 RELEASE
</code></pre>
<p>I have client jar with a Settings Bean defined as </p>
<pre><code> @ConditionalOnBean(annotation = Some.class)
@ConfigurationProperties(prefix = "service")
@Data
public class WebserviceSettings {
//bunch of Properties
private St... | 1 | 1,293 |
How to change an application's exe.config file when it is being installed using Windows Installer | <p>I have created a Windows Service application.</p>
<p>I have also created a Windows Installer for the Service Application.</p>
<p>On the installer project, I have added a custom screen that presents users with a screen to enter values (right click setup project -> View -> User Interface -> Right click the 'Start' s... | 1 | 1,579 |
How to save an image file (BLOB) in the database using jquery, ajax and php | <p>I want to save an image in my database as a BLOB file using jquery, Ajax and PHP.
I can upload it and display it in the form (if it is inserted manually in the database). However, when I change it on the form, the new image is well displayed but when I click on save it is not saved in the database. I did not find an... | 1 | 1,030 |
Creating a "stacked" Gantt chart in Tableau? | <p>I'm working with a dataset that describes contract durations with a list of companies. Obviously all contracts have a start date and a (minimum) duration. Some contracts however, are subject to possible prolongation. Here's a data example:</p>
<pre><code>Company contractStart minDuration firstProlong secProlon... | 1 | 1,182 |
argument type mismatch in spring | <p>I am getting </p>
<pre><code>java.lang.IllegalArgumentException: argument type mismatch
</code></pre>
<p>when i am submitting my jsp to controller. Please suggest me why i am getting this error?</p>
<p>Here is the StackTrace</p>
<pre><code>java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect... | 1 | 2,722 |
GWT Spring Security Integration (PURE GWT, NO JSP) | <p>I´m using <em>GWT 2.4</em> and <em>Spring 3.1</em> and I want to secure my application with <em>Spring Security</em>. I was looking for a GWT-only solution without a separate JSP login page. I found only old sites using JSP to do login, so this thread could result in a solution to fully integrate GWT with Spring Sec... | 1 | 7,931 |
The best overloaded method match for has some invalid arguments | <p>I am using VS 2010 C#. My code is as follows:</p>
<pre><code>using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using MarketplaceWebServiceOrders;
using MarketplaceWebServiceOrders.Model;
namespace FetchNewOrdersJob
{
public class MarketplaceWebServiceOrders
{
... | 1 | 6,627 |
404 error with index.html file | <p>I get a 404 error when I run my project, my JBoss server is running fine.</p>
<p>Here is in the index.html:</p>
<pre><code><html>
<body>
<form action="/services/customers" method="post">
First Name: <input type="text" name="firstname"/><br/>
Last Name: <input type="text" name="las... | 1 | 1,109 |
Error with authentication in e2e tests using cypress: chrome-error://chromewebdata | <p>I'm using cypress for writing E2E tests for my UI (Note that it's a PowerBI report, hence it's kind of special case). When I am testing with a public report, it works fine. But when it's a private PBI report, I am having trouble with login part. After some research, I found this approach promising for Azure AD based... | 1 | 1,234 |
TreeView doesn't refresh after changes | <p>I write a program for edition of IIS web.config file. I have a problem with my TreeView control which doesn't want to refresh itself after I change something in the source XmlDocument variable.<br />
It's the WPF project.</p>
<p>Window resources in XAML:</p>
<pre><code><Window.Resources>
<XmlDataProvid... | 1 | 1,900 |
merging two stored procedures | <p>So this is what i thought of doing but now the error i am getting is : Cannot use an aggregate or a subquery in an expression used for the group by list of a GROUP BY clause and not sure which part it means - the overall code i am trying to get open cases based on two different levels one is to return cases based on... | 1 | 2,785 |
Best practice for shared objects in Backbone/Require Application | <p>I've been developing Backbone applications for a little while now, and am just starting to learn to use Backbone with Require.js.</p>
<p>In my backbone app that I am refactoring, I defined a namespace like this: <code>App.model.repo</code>. This model is used over and over again in different views. I do the same thi... | 1 | 1,481 |
Displaying a view (list of all employees) from a Controller in Spring MVC | <p>Trying to simply output a list of all employees in a view report from a controller in Spring. Getting an error relating to Freemarker, unsure of how to resolve.</p>
<p>Relevant classes:</p>
<p><strong>Employee.java model</strong></p>
<pre><code>package mvc_course.models;
import java.util.HashSet;
import java.uti... | 1 | 2,733 |
Dynamically Build 'where' clause in Linq | <p>I have a code which searches a data table for specific strings and returns back a subset of the entire datatable based on certain condition (unique id field). Sample code below which searches for "First" and "Employee" in a datatable and only returns those entries back which have same l_id value.</p>
<pre><code>//G... | 1 | 2,262 |
PayPal express checkout server side, authentication failure | <p>I searched a lot everywhere but I didn't find an answer for my problem.</p>
<p>I can't make it work. My PayPal button is using express checkout Server side Rest, but with client-side I tested, it's easy, and it works.</p>
<p>I am using CodeIgniter so here is my code.</p>
<p>Here is the javascript code in my views... | 1 | 2,052 |
Using a C++ DLL in Flutter Windows desktop app | <p>I have some libraries to interact with a FTDI chip that I packaged into a DLL in C++.
I would like to create a front-end with Flutter and use that library in a windows desktop app.
These features are still new in Flutter and the documentation is verry shallow and mobile specific.</p>
<p>Following the guide <a href="... | 1 | 1,419 |
Java Calculator Stack | <p>So my assignment is to design a simple GUI calculator using the stack data structure to perform additions, subtractions, multiplications and divisions. The calculator window should have at least two panels - one for display and the other for buttons (0 - 9, . , +, -, X, /, =, C). After an expression is entered, its ... | 1 | 3,234 |
Algorithm to group sets of points together that follow a direction | <p><strong>Note: I am placing this question in both the MATLAB and Python tags as I am the most proficient in these languages. However, I welcome solutions in any language.</strong></p>
<hr>
<h1>Question Preamble</h1>
<p>I have taken an image with a fisheye lens. This image consists of a pattern with a bunch of sq... | 1 | 4,718 |
Drag and Drop Table - moving cells to different columns | <p>I am attempting to make a drag and drop table. I was modelling my code after a demo JQuery has on their site, but I can't get mine to work. I also don't know if what I am doing is the best option for me.</p>
<p>I am wanting to move the table cells from one column to another. Is there something I'm missing with my c... | 1 | 1,912 |
SDKMAN! does not work with Eclipse.app or SpringToolSuite4.app (on Mac) | <p>This is a similar issue to:
<a href="https://stackoverflow.com/questions/48248222/eclipse-cant-find-jdk-installed-with-sdkman">Eclipse can't find jdk installed with sdkman</a></p>
<p>I am still facing the issue on Mac (<code>macos-mojave</code>)</p>
<p>Both of my</p>
<pre><code>/usr/bin/java
/usr/bin/javac
<... | 1 | 1,075 |
How to use SMS verification code by sending otp? | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>package com.surbhi.smsappacme;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
... | 1 | 2,487 |
trigger to populate/update these field on Account record whenever a new Contact, opportunity record is inserted or deleted | <p>Number fields on Account : "No of Contacts"
Write trigger to populate/update field on Account record whenever a new Contact record is inserted or deleted.</p>
<p>All is working fine but whenever i am deleting last contact record it is not updating Account field from 1 to 0
Can anyone help me on this</p>
<pre><cod... | 1 | 1,201 |
App not opened when clicking on message in notification area | <p>I am developing a Worklight app that works with push notifications. I am currently testing on Android and have got the adapter to send a push notification to the app. The problem is: the app only receives it when it is on the foreground. It doesn't receive it if it was on the background and I open it after a message... | 1 | 1,174 |
Jenkins not working, can't login, stuck then timeout | <p>I installed the Jenkins v.2.6 on CENTOS 6.8 server a few months ago and everything working as expected since last week it just stops working. </p>
<p>If I go <a href="http://mydomain:8081" rel="nofollow noreferrer">http://mydomain:8081</a>, the login page not loads up anymore and give me the HTTP 503 errorHTTP ERRO... | 1 | 3,217 |
TypeError: 'InMemoryUploadedFile' object is not subscriptable | <p>I have a Google Appengine Project using Python2.7 and Django1.2 on Eclipse, that allows the user to use a form to upload a picture, resize it, and store it as a BLOB field. </p>
<p>I added a breakpoint where I indicated below, and saw "file['content']" showing a value " TypeError: 'InMemoryUploadedFile' object is ... | 1 | 1,583 |
c# sending html email template include css not working | <p>i trying to send html email template, it works perfect, but when i put css internal styles it gives error : input string was not in correct format,</p>
<p>my html template that works good:</p>
<pre><code><h3>data</h3>
<hr />
<table class="table table-striped table-bordered table-advance table-... | 1 | 1,905 |
Highcharts drilldown not working when module is imported react | <p>I am new to react/ES6. I am using highcharts 4.2.4 with react in ES6 by creating a highcharts component as given in: <a href="http://www.highcharts.com/blog/192-use-highcharts-to-create-charts-in-react" rel="nofollow">http://www.highcharts.com/blog/192-use-highcharts-to-create-charts-in-react</a>. I am using ES6 and... | 1 | 5,084 |
"no implicit conversion of nil into String" error for carrierwave multiple image upload | <p>This is bugging me for days now. I have tried different method . So I would go with the simplest form , that should be working but doesnt.</p>
<p>I have two models. <code>Institute</code>, and <code>VirtualTour</code>.</p>
<pre><code>class Institute < ActiveRecord::Base
mount_uploader :virtual_images, Virtual... | 1 | 1,168 |
Microsoft Graph API - Update password - Insufficient privileges to complete the operation | <p>I am trying to update a user via Microsoft Graph API, I am able to update the <code>DisplayName</code> but the <code>PasswordProfile</code> I get an error:</p>
<pre><code>Insufficient privileges to complete the operation.
</code></pre>
<p>Here are the roles associated to the token when I decoded the JWT token at <... | 1 | 1,252 |
Selenium ChromeDriver "no such session" error | <p>I am using:</p>
<ul>
<li>chromedriver=2.26.436362</li>
<li>Chrome Version 55.0.2883.87 m (64-bit)</li>
<li>.Net C# 4.6.1 / Visual Studio 2015 Community Edition</li>
</ul>
<p>I am seeing the following exception during website testing (this is my log4net entry):</p>
<pre><code>FATAL2017-01-09 05:03:10 – no such ses... | 1 | 1,029 |
rotate FontAwesome "arrow" icon when the accordion is active | <p>Adding some Icons to my accordion that should rotate upon the accordion being active. They need to point DOWN when acive, and point to the RIGHT when closed. </p>
<p>Creating the Accordion is done with the jQuery's accordion feature.</p>
<p>I used a FontAwesome arrow. Managed to add the rotation aspect of it with ... | 1 | 1,604 |
How to show different logo on different pages in wordpress theme? | <p>Well here is the code which displays the header part on the wordpress theme which I am currently using. </p>
<pre><code><div id="site-branding" class="clearfix">
<?php
$logo = isset($options['logo'])? $options['logo']: '';
if ($logo == ""){
$hidetitle = $options['hide_ti... | 1 | 1,348 |
SpeechRecognition network error when working with electron / chromium browser | <p>I'm trying for hours to make this electron speech recognition work. The following code works in normal browser : </p>
<pre><code>if (window.SpeechRecognition === null ){
console.log("Speech Recognition is not supported.");
}else {
let recognizer = new window.SpeechRecognition();
recognizer.continuou... | 1 | 1,314 |
C# networkstream compression - Sharpziplib, DotNetZip, gzipstream all give errors on my stream | <p>I have a pair of C# client-server programs that communicate using a networkstream.
Everything works fine as it is without compression.
Now I'd like to get the bandwidth-usage down, so I want to use a compressing wrapperstream around my networkstream.</p>
<p>I have tried SharpZipLib, DotNetZip, C#'s own GZipStream -... | 1 | 1,084 |
AngularJS - an easier way to bind one to one and one to many relationships? | <p>I am going through the angular tutorial where you build a phone informational website and at the same time I am exploring more complicated data structures that one would see in a real enterprise application using grails restful json services; such as adding to the Phone model a form factor which is a one to one rela... | 1 | 1,819 |
Replace HDFS form local disk to s3 getting error (org.apache.hadoop.service.AbstractService) | <p>We are trying to setup Cloudera 5.5 where HDFS will be working on s3 only for that we have already configured the necessory properties in Core-site.xml </p>
<pre><code><property>
<name>fs.s3a.access.key</name>
<value>################</value>
</property>
<property>
... | 1 | 2,065 |
Extend the bootstrap-typeahead in order to take an object instead of a string | <p>I extended the bootstrap-typeahead in order to take an object instead of a string.<br>
It works but I would like to know this is the right way to do the things. </p>
<p>Thanks.</p>
<p>Reference:<br>
<a href="http://twitter.github.com/bootstrap/javascript.html#typeahead" rel="noreferrer">http://twitter.github.com... | 1 | 1,526 |
Best way to implement a Require validation if another field is not null | <p>I have the following two fields inside my view:-</p>
<pre><code><div>
<span class="f">@Html.DisplayNameFor(model=>model.Firewall.ConsoleServerID)</span>
@Html.DropDownListFor(model =>model.Firewall.ConsoleServerID, ((IEnumerable<IT.Models.ITConsoleServer>)ViewBag.Servers).Select(opti... | 1 | 1,963 |
Building 'Pong' with python (codeskulptor) | <p>I'm trying to build the arcade game 'Pong' in CodeSkulptor with Python. I need help with two things</p>
<ol>
<li>Increase the ball velocity by 10% when it hits a paddle</li>
<li>Get a fix for the color buttons, which are not working</li>
</ol>
<p>Here's the link to the code : <a href="http://www.codeskulptor.org/#... | 1 | 3,139 |
npm script fails with sh: 1: <command>: not found in docker container | <h1>Question</h1>
<p>When running <code>npm run start:debug</code> command inside a docker container, I get this error:</p>
<pre><code># npm run start:debug
> api@0.0.0 start:debug /usr/src/api
> nest start -e "node --inspect-brk 0.0.0.0:9229" --watch -p tsconfig.json
sh: 1: nest: not found
npm ERR! code ELIF... | 1 | 1,205 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.