title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How do distributed transactions behave with multiple connections to the same DB in a threaded environment? | <p>I’m trying to determine the behaviour of multiple database connection in a distributed transaction.</p>
<p>I’ve got a long running process which spawns a series of threads and each thread is then responsible for managing its’ DB connections and such. All of this runs inside of the transaction scope and each thread... | 1 | 1,843 |
Symfony 5 - Login with json_login; Login process is not working; | <p>first of all I want to let you know, that I'm new to Symfony.
I'm on my way to move my PHP project from my own "basic" MVC to Symfony. The project is already running and working well, but I have some issues with adjusting to Symfony.</p>
<p>I started with the basic skeleton, make:user and make:auth. The te... | 1 | 3,273 |
Read Azure AD login user details in ASP.net | <p>I'm implementing Azure AD login in asp.net (VS 2013).. <br/>
I have successfully created sign-in in and sign-out parts..</p>
<p>My sign -in and sign-out methods are like below.</p>
<pre><code>public partial class Startup
{
private static string clientId = ConfigurationManager.AppSettings["ida:ClientId"]... | 1 | 1,114 |
How to add multiple Textviews in a ExpandableListView | <p>I can't figure out how to add more than one Textview in my Expandablelist adapter and MainActivty. When ever I tried to add a new Textview in the Adapter, I then can't figure out how to initialize the Textview in the MainAcivity. It just copies the text that I put in the first Textview into the new one. I found... | 1 | 5,069 |
Vim: how to install the UltiSnips plugin? | <p>I tried installing the UltiSnips plugin, but when Vim is loaded it creates a torrent of errors:</p>
<pre><code>Error detected while processing C:\Documents and Settings\username\vimfiles\bundle\UltiSnips-2.2\plugin\UltiSnips.vim:
line 226:
Traceback (most recent call last):
File "<string>", line 1, in <... | 1 | 2,056 |
New Kivy installation: AttributeError: 'module' object has no attribute 'require' | <p>kivy 1.10.0, python 3.4.5, windows 10, using Anaconda's Spyder IDE</p>
<p>After much trouble trying to install kivy on my windows 10 computer, I was able to...sort of. I downgraded python to the most recent supported version.</p>
<p>I put in kivy's stock code to make sure it's working:</p>
<pre><code>import kivy
... | 1 | 2,349 |
Microsoft Dynamics CRM 365 calling an unbounded action via JavaScript asynchronously | <p>Is there a way to call an action via javascript without the use of third party scripts?</p>
<p>I found this <a href="https://github.com/PaulNieuwelaar/processjs" rel="nofollow noreferrer">https://github.com/PaulNieuwelaar/processjs</a></p>
<p>However, I cannot use third party libraries.</p>
<p><strong>UPDATE:</st... | 1 | 1,311 |
malloc() struct in a function, free() before ending program | <p>I am learning the basics of C, and now working with malloc(). Say I have a function that asks the user for input, populates a structure with said data, and that structure in saved in an array (all passed by reference from a main function).</p>
<p>I ran the program through Valgrind, I get the "still reachable" bytes... | 1 | 1,088 |
'TypeError: Expected a message Descriptor, got Descriptor' when trying to import keras | <p>I was trying to import this</p>
<pre><code>from tensorflow.keras import Sequential
from tensorflow.keras.layers import Conv2D, Flatten, Dense
from tensorflow.keras.callbacks import EarlyStopping
</code></pre>
<p>I got this error:</p>
<pre><code>------------------------------------------------------------------------... | 1 | 1,367 |
Failed to install Vuex in Vue3 | <p>I want to install Vuex but I get an error.</p>
<pre><code>// error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: vuejs-v-3@0.1.0
npm ERR! Found: vue@3.1.2
npm ERR! node_modules/vue
npm ERR! vue@"^3.1.2" from the root project
npm ERR!
npm E... | 1 | 1,370 |
How to interface C++ and Excel (Output from C++ program to an Excel spreadsheet) | <p>I am making a small program for my job (it has nothing to do with programming) to help them with the many measurements and efficiency of their job.</p>
<p>I have made most of the program in a Console App in C++ with Code::Blocks.</p>
<p>Would it be possible to yank the output of variables from my C++ and put them ... | 1 | 1,840 |
Data summary based on multiple categorical variables | <p>I'm trying to create a summary based on a data that contains the following columns:</p>
<pre><code> Trx_Date Brand Cust_Num Item_Qty Item_Price
</code></pre>
<p>I am trying to create a summary of the Item_Qty and Item_Amt based each week of the year for different Brand (a character object class). I have... | 1 | 1,521 |
WPF alignment of textbox and button within a Grid? | <p>this is a rather simple question and its technically not that big of a deal but my OCD is tingling when i see this.
I have designed a basic WPF application and i cannot figure out why exactly the button and the textboxs are not alligning correctly as can be seen in this image(bottom right side):
<img src="https://i.... | 1 | 1,285 |
How to put a recyclerview inside a recyclerView in android | <p>so I have a <code>RecyclerView</code> inside a <code>RecyclerView</code>. And I'm getting this error regarding my <code>LayoutManager</code> for the <code>RecyclerView</code>.. The data im working with is a OpenHours object, where Open Hours is a class I made to encapsulate a store's opening and closing hours throug... | 1 | 4,783 |
No Java source on Mac OS X | <p>I think my JDK is broken. I am on OS X 10.6.8.</p>
<p>I want to look in the sources when debugging in Eclipse, etc, but Eclipse can't find the sources, so I looked up the installed JREs and found this path with the title <code>JVM 1.6.0 (MacOS X Default)</code></p>
<pre><code>/System/Library/Frameworks/JavaVM.fram... | 1 | 1,070 |
Unable to conditional hide tab by binding to data property in Ext.js 6 | <p>I have a tabpanel where I'm capturing a shopping cart on tab one, payment information on tab two, and showing a summary on tab three. </p>
<p>I would like to hide tab two if the shopping cart total is 0. </p>
<p>The problem I'm running into is that when I try to bind to a formula that determines a boolean value fo... | 1 | 1,043 |
How can I build KDE Dolphin from its source code? | <p>I'm using Ubuntu 15.04 x64.</p>
<p>I cloned the Dolphin repository from <em>git://anongit.kde.org/dolphin</em>. I then proceeded to build the directory by:</p>
<pre><code>mkdir build
cd build
cmake ..
</code></pre>
<p>But when I run the CMake command I get:</p>
<pre><code>-- The C compiler identification is GNU ... | 1 | 4,739 |
python - ryu handling packets using a switch after flow was added to switch | <p>I'm using a Ryu open flow controller switch written in python to monitor packets in my virtual mininet.I have 3 hosts and I'm blocking transportation from host2 to host3 and from host3 to host2. Other packets are added to the switch flow table.
My problem is that after a flow is added, if their is a packet between 2... | 1 | 1,865 |
Sencha cmd build error: shellscript returned: 1 | <p>I am working on a pre-existing Sencha Touch project. I am unable to build it and am unsure how I should go about debugging Sencha cmd build issues. Any help either with this specific error or hints regarding how to set up a Sencha build environment would be most appreciated.</p>
<p>Here is a snippet of the error me... | 1 | 2,907 |
How to convert mongo document into key value pair in .Net? | <p>I am trying to query MongoDB collection using C# .Net. I want to filter the collection based on some criteria, then project only certain fields, and then convert the projection into key-value pair.</p>
<p>I was able to filter and project the way I wanted. However I want to know is there in built method to convert p... | 1 | 1,420 |
Cascading save not working with Hibernate 4 and @OneToMany | <p>I've been having an issue with Hibernate 4 that did not happen in Hibernate 3. I'm testing a base dao class which has generic methods for saving, querying, etc.. (not it's not homework). I'm using an embedded derby connection with hibernate.hbm2ddl.auto=create-drop for testing purposes.</p>
<p>EDIT: Fixing casc... | 1 | 1,356 |
structure of a Backbone and React single page app | <p>I've been using <code>backbone.js</code> for most of my frontend JavaScript projects so far, but after hearing about Facebook's <code>react.js</code> I got interested and started poking around.</p>
<p>I'm wondering whether or not I'm supposed to use the <code>Backbone.View</code> class anymore or replace every "vie... | 1 | 1,490 |
How to fix the error cause when execute manage.py runserver command in Django? | <p>I recently join with ongoing project which has done using Django framework and I am new to this framework. This code is not mine. When I run python manage.py runserver command I receive following error. </p>
<p>I have done all the configuration asked in readme file. </p>
<p>This is the local.py file</p>
<pre><co... | 1 | 2,710 |
FB sdk, requestNewPublishPermissions() doesn't call any callback | <p>I followed the <a href="https://developers.facebook.com/docs/android/publish-to-feed/" rel="nofollow">FB tutorial</a> step by step, and I can't figure out why is this not working.</p>
<p>All my fragments inherits from the <strong>BaseFragment</strong> :</p>
<pre><code>public class BaseFragment extends SherlockFrag... | 1 | 1,623 |
Property 'toPromise' does not exist on type 'Observable<Response>' And Parameter 'response' implicity has an 'any' type | <p>This My .service.ts but I've two errors : </p>
<pre><code>import { Injectable } from '@angular/core';
import { Headers, Http, Response } from '@angular/http';
import { Observable } from 'rxjs/Rx';
import 'rxjs/add/operator/toPromise';
import { Product } from './Product';
@Injectable()
export class ProductServ... | 1 | 2,601 |
Database folder cant be found in android default application storage path to "/data/data/YOUR_PACKAGE/databases/" | <p>Can anybody tell me whats the problem in my code. The dbHelper cant find the database folder in <code>data/data/YOUR_PACKAGE/databases/</code>. When I run my application it says an error occured while doInBackground and the error is <code>ERROR/AndroidRuntime(703): Caused by: java.lang.Error: Problem copying databa... | 1 | 2,373 |
Setting up Subversion Server on Mac OS mountain lion (have access via browser, but un-able to checkout from subversion) | <p>Some details (maybe it would be usefull for some guys):</p>
<p><strong>On board</strong>: mac mini + mountain lion + Server.app.</p>
<p><strong>Problem</strong>:
I do have access to my subversion repo via browser, but do not have access to it via command line to checkout (for example).</p>
<p><em><strong>I've don... | 1 | 1,518 |
Select Multiple values from a previously selected dropdown value in Django form | <p>I am trying to implement the steps given in this example (<a href="https://github.com/Sidon/djfkf/" rel="nofollow noreferrer">https://github.com/Sidon/djfkf/</a>) to create a Django form that allows for multiple selection of values based on a previous selection. Essentially, I have two models, one for the organism a... | 1 | 2,970 |
QueryDsl web query on the key of a Map field | <h1>Overview</h1>
<h2>Given</h2>
<ul>
<li>Spring Data JPA, Spring Data Rest, QueryDsl</li>
<li>a <code>Meetup</code> entity
<ul>
<li>with a <code>Map<String,String> properties</code> field
<ul>
<li>persisted in a <code>MEETUP_PROPERTY</code> table as an <code>@ElementCollection</code></li>
</ul></li>
</ul></l... | 1 | 1,787 |
EF-Code First: Unable to create a constant value of type ''. Only primitive types ('such as Int32, String, and Guid') are supported in this context | <p>I am currently having trouble with some some linq using EF code first. My current code works fine: </p>
<p>My database model</p>
<pre><code>public class MyDatabase : DbContext
{
public DbSet<Person> People { get; set; }
public DbSet<Role> Roles { get; set; }
public DbSet<Visit> Vis... | 1 | 4,162 |
Code Igniter gives 404 when accessing pages without index.php | <p>I'm getting 404 errors when accessing via:<br>
<a href="http://www1.example.me/z/account/login" rel="nofollow">http://www1.example.me/z/account/login</a></p>
<p>Although these work fine:<br/>
<a href="http://www1.example.me/z/index.php/account/login" rel="nofollow">http://www1.example.me/z/index.php/account/login</... | 1 | 1,115 |
overriding the jquery.param function | <p>I have a problem with the jQuery.param function.
jQuery uses + instead of %20 to URL-encode spaces</p>
<pre><code>var obje = {
'test': 'tester 2'
}
console.log($.param(obje));
</code></pre>
<p>returns "test=tester+2"</p>
<p>so I thought about overriding this core function:</p>
<pre><code>(function($){
... | 1 | 1,161 |
Error creating bean with name 'initDbService': Injection of autowired dependencies failed | <p>How to remove this exception :(</p>
<p>and suggest to tutorial provide, that show each and every step of lecture for beginners because it's don't know what will be next</p>
<p><strong>UserService.java</strong></p>
<pre><code> @Service
public class UserService {
@Autowired
private UserRepos... | 1 | 6,554 |
Azure SQL slow performance | <p>Quick summary of my problem: In my Azure SQL S0 instance it takes 8:57 minutes to perform a SELECT WHERE ColumnXYZ = '%anything%' on a table with 8,211,037 rows (result set = 929 rows). On a table with 500,000 rows, it takes 38 seconds. The same table on my laptop (fast with SSD) with 8m lines takes 0 seconds to co... | 1 | 1,157 |
Slow Performance with Apache Spark Gradient Boosted Tree training runs | <p>I'm experimenting with <a href="https://spark.apache.org/docs/1.2.0/mllib-ensembles.html">Gradient Boosted Trees</a> learning algorithm from ML library of Spark 1.4. I'm solving a binary classification problem where my input is ~50,000 samples and ~500,000 features. My goal is to output the definition of the resulti... | 1 | 1,736 |
WPF Scrollviewer scroll to mouse position | <p>I am working on an image viewer control that consists of an image inside of a scrollviewer.
To zoom, I use a scaletransform within the image's layouttransform.
Zoomin is happening on mouse click. If the user clicks on the image, I would like the pixel at the mouse position to be located at the center of the visual a... | 1 | 1,302 |
"There was an error trying to log you in: '' " Blazor WebAssembly using IdentiyServer Authentication | <p>I have a Blazor WebAssembly app using IdentityServer that comes with the template as my authentication service. I am having an issue where some users are seeing "There was an error trying to log you in: ''" once they try to login. I had users clear cookies and cache, and they are still experiencing this pr... | 1 | 3,121 |
Generic Mergesort in C# | <p>I am trying to implement a generic <code>Mergesort</code> algorithm in <code>C#</code>, but I am having difficulty with the <code>Constraints</code>. I have searched many references but I can't find any that are implementing the algorithm like I am.</p>
<p><a href="https://stackoverflow.com/questions/15835805/merge... | 1 | 1,953 |
Spring Security OAuth2 Authorization Server /oauth/token - 500 No adapter for handler | <p>I am trying to implement Spring Security's OAuth2 Authorization Server. When attempting to access the token endpoint (/oauth/token) I get a 404. I assume there is something I am missing, but for the life of me, I can't see it.</p>
<p>I am using Java configuration for;</p>
<ul>
<li>Spring Security 4.0.1</li>
<li>Sp... | 1 | 1,746 |
Setup Allure Report for Selenium | <p>I am trying to implement the Allure Reporting for my Selenium framework. It does not use any test framework like <code>TestNG</code> or <code>JUnit</code>. Basically I dont need TestNG or Junit for that matter as I handling whole framework getting the data from an excel sheet. </p>
<p>Currently I am executing all t... | 1 | 3,357 |
Spring Boot Security Ldap Rest Controller | <p>I am currently implementing RestControllers with Spring Security Ldap.</p>
<p>The login is successful and the user informations are well returned.</p>
<p>The problem is coming when the front end in angular wants to call my Rest api, the security returns unauthorised status. (should not as I am supposed to be logge... | 1 | 3,061 |
layout_constraintLeft_toLeftOf and layout_constraintRight_toRightOf don't make the view be as wide as the constraint | <p>There are two widgets (<code>TextView</code>s in my example). The first widget has a fixed width, and the second widget should be as wide as the first one.</p>
<p>Consider the following code snippets:</p>
<p><strong>RelativeLayout.</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeL... | 1 | 1,323 |
Why can I connect to Azure MS SQL with tsql but not pymssql? | <p>Where I am today:</p>
<pre><code>TDSVER=7.3 tsql -H example.database.windows.net -U me -D ExampleDB -p 1433 -P notreallymypassword
</code></pre>
<p>This does not:</p>
<pre><code>>>> import pymssql
>>> pymssql.connect('example.database.windows.net', user='me', password='notreallymypassword', data... | 1 | 1,267 |
stopService() Method Not Stopping The Service | <p>I called the stopService() method from the calling class when the calling activity exits, and the service does not stop. It keeps on running in the background and can thus be a hastle to the end user. Any help would be greatly appreciated..</p>
<p>Code:</p>
<pre><code>public class MainActivity2 extends ActionBarAc... | 1 | 1,679 |
python access functions in ipython notebook | <p>I have a function stored in a .py file, call it my_methods.</p>
<pre><code>def print_text(myText):
print myText
</code></pre>
<p>I'm using ipython notebook to do my development (local server), and the my_methods file is frequently changing. </p>
<p>I'd like to use runipy to run other ipython notebooks via a ... | 1 | 1,807 |
How to add Pie chart in hole of Donut chart in Flutter, I tried with Stack widget but it's working for text only | <p>I am trying to fill the hole of donut chart with pie chart in Flutter for my project but unable to do so.</p>
<pre><code> Expanded(
child:Stack(
children:<Widget>[
charts.PieChart(
... | 1 | 1,365 |
Webpack split scss into separate css files | <p>I'm writing a React application, using webpack and sass. Now i want to try those <a href="https://github.com/css-modules/css-modules" rel="nofollow">CSS Modules</a>, but i've faced some troubles. First, as i understand, i can't use .scss modules, that's why my idea is to convert .scss files to .css files (eg. link.s... | 1 | 1,202 |
unsupported operand type(s) for +=: 'zip' and 'zip' | <p>thanks for the answer before and I have changed it what Alperen suggested, but I have another problem, my code :</p>
<pre><code>import sys
import os
import itertools
import os.path
import random
from PIL import Image
from svmutil import *
DIMENSION = 200
sys.path.append("../train/")
ROOT_DIR = os.path.dirname(os.g... | 1 | 1,999 |
Why does SBT not detect main class in Java? (No main class detected) | <p>SBT will complile, but not run this very simple project. Why not?</p>
<pre><code>mackler@localhost:~/tmp/javahello$ sbt --version
sbt launcher version 0.12.1 ... | 1 | 2,654 |
Android connection to Remote mysql database JDBC Vs JSON | <p>I know that the JDBC is best used with a low latency high-bandwidth connection. and it is better to use a php service. </p>
<p>Thing is am developing a Restaurant menu app that should retrieve data from a db located on a server. using the Samsung galaxy tab2 7inch as the target device and having a stable wireless c... | 1 | 2,470 |
androidHttpTransport.call(...,...) throwing null exception, when printing using ex.getMessage() | <p>I call webservice from andriod application, developed using eclipse,
but getting exception when calling
androidHttpTransport.call(SOAP_ACTION, envelope);</p>
<p>ex.getMessage() printing "null" exception message</p>
<p>in manifist file i have specified</p>
<pre><code> <uses-permission android:name="android... | 1 | 1,606 |
How to use webview.loadURL to get a variable from javascript (Android) | <p>I'm going to try to make this as clear as I can. I'm normally not the best at asking clear questions, so thank you in advanced for reading this and posting any suggestions. </p>
<p>I'm writing a simple android application that requires the users position. I am using a webview along side with the HTML navigator.geol... | 1 | 1,184 |
Retrofit Https call give Connection reset | <p>I'm trying to use <code>retrofit</code> in my <code>spring boot</code> project to access a <code>https</code> call, but every time I run it, it gives </p>
<pre><code>java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:209) ~[na:1.8.0_102]
at java.net.SocketIn... | 1 | 3,053 |
Android studio minify enabled = true , not able to generate apk? | <pre><code>apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'realm-android'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultPublishConfig "debug"
defaultConfig {
... | 1 | 3,100 |
How to import spring resource from different maven project? | <p>I am trying to build a web application with one maven project with client and other with security. My maven dependencies are correct but i can't load a resource in security module.</p>
<p>This is my web.xml (src/main/webapp/WEB-INF/web.xml):</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<web-app v... | 1 | 2,879 |
Cubit not rebuilding when emiting a new state | <p>Whenever I call the toggleLocked event, the BlocBuilder does not rebuild the widget.</p>
<p>I have looked around a lot on the internet and found this explanation: <a href="https://stackoverflow.com/a/60869187/3290471">https://stackoverflow.com/a/60869187/3290471</a>
I think that somewhere I incorrectly use the equat... | 1 | 1,774 |
C# mysql example Command.ExecuteReader throws exception | <p>I am writing a segment of C# code to get some data from mysql database. I have started with ready-made example but it gave me an error at <code>rdr = cmd.ExecuteReader()</code></p>
<p>A screen Shot of the thrown exception is shown below as well</p>
<p><img src="https://i.stack.imgur.com/Acu1g.png" alt="exception t... | 1 | 1,854 |
Node cannot join Swarm Cluster | <p>I have 3 VM's. They all have docker 1.12 and they are running on centos7.
All the ports are opened and the vm's are able to ping eachother
I started my cluster with </p>
<pre><code>docker swarm init --advertise-addr 192.168.140.12
</code></pre>
<p>Docker info showed me:</p>
<pre><code>Swarm: active
NodeID: 0drcj... | 1 | 2,124 |
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'id' | <p>Having a problem with "<strong>SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'id'</strong>" here,</p>
<pre><code><? if (!defined("sKEY")) { exit("Houston, We've Got a Problem"); }
class PDOAct
{
public $db;
function __construct()
{
try {
$this-&... | 1 | 3,344 |
Can MyFaces + CDI be used on WebLogic 12c? | <p>I've been trying to get this setup running for a couple of days now but still no luck. Here's the test application i've been using:</p>
<pre><code>@Named
@RequestScoped
public class Test {
private String test = "test";
public String getTest() { return test; }
public void setTest(String test) { this.tes... | 1 | 1,102 |
Implementing LRU page replacement algorithm | <p>Edited to include short description of what is expected from the code.</p>
<pre><code>#include <sys/file.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#define MAX_PAGE 0xFF+1
/* page table entry you may need to add your own fields to it*/
typedef struct
{
unsigned short fr... | 1 | 2,521 |
Read XML file which has xmlns in tag with python | <p>I am trying to read a element form a xml file to add new elements.</p>
<p>The tag I'm trying to find contains xmlns.</p>
<p>It looks like this:</p>
<pre><code><labcore.logging.service defaultSystemIdentificationCode="??" xmlns="http://schemas.com/labcore/configuration">
<storage databaseName="COMIT" stor... | 1 | 1,511 |
VBA macro to copy and paste filtered data to new sheet | <p>I am trying to copy filtered data from one sheet to another, but for some reason I get a runtime error 1004 saying "to copy all cells from another worksheet to this worksheet make sure you paste them into the first cell (A1 or R1C1)" I actually don't want the header row copied, so all visible bar that row<... | 1 | 2,029 |
Multi-level menu in laravel 5.1 - loops | <p>I am a little bit new with laravel 5.1 framework. Last couple of days I create my database (insert, update, delete) for dynamic menu I want to create. I connect with default layout in which i put menu. From route code looks like this.</p>
<pre><code>View::composer('layouts.default',function($view){
$menus = Men... | 1 | 1,346 |
Remote Video stream not showing up at all | <p>I have been trying to get the remote video stream to show up using .ontrack which is under the peer connection function in my code. Until now the .ontrack only fires on the caller side while on the callee it does not even when the function is called.</p>
<p>The log that checks if .ontrack fires would state "Got Rem... | 1 | 2,348 |
Bootstrap Expanding Grid | <p>I'm working with bootstrap grids currently creating columns of width 4 (so there are 3 columns across) and populated with information on a SQL database. However, when I click on a specific item in the grid, I'd like a new div (or something else) to expand down and show even more detail on that subject. I'm looking f... | 1 | 1,791 |
Not getting Location header from Golang http request | <p>I'm trying to port over something I had written in Node, the request looks like this in Node(JS):</p>
<pre><code>function _initialConnection(user, pass, callback) {
let opts = {
url: config.loginURL,
headers: {
"User-Agent": "niantic"
}
};
request.get(opts, (err, resp, body) => {
if ... | 1 | 1,480 |
How to navigate to another screen from dropdownbutton in Flutter? | <p>I am trying to get a dropdownlist to navigate to another screen once one of the items in the list is pressed via the dropdownbutton. I have tried using Navigator.push straight into onChanged but that doesnt work. And i have tried creating a new button in set state in onChanged. How can I do this because I do not kno... | 1 | 1,666 |
Move Table Rows | <p><img src="https://i.stack.imgur.com/SUi34.png" alt="enter image description here"></p>
<p>I have my table like this, I want to move up and down these rows on click these arrows can anybody help me out ......</p>
<pre><code>function MoveRowDown(tableId, index)
{
var rows = $("#" + tableId + " tr");
rows.eq... | 1 | 1,280 |
Using Autofac with Mvc controller constructor injection | <p>I'm having trouble with Autofac constructor injection. I'm somewhat solved my problem but I'm turning to the community for a full solution.</p>
<p>This works with DI</p>
<pre><code>builder.RegisterControllers(typeof(MvcApplication).Assembly)
.InstancePerHttpRequest();
</code></pre>
<p>This does not.</p>
<... | 1 | 1,320 |
Remove errors and avoid header already sent error when building virtual xml files using PHP | <p>This is my first question, so please excuse me for any mistake I make.</p>
<p><strong>The issue:</strong></p>
<p>Let's say I'm using a PHP CMS like WordPress, Drupal, etc.</p>
<p>I want to write a plugin / module to output virtual xml files, e.g. <code>http://example.com/page.xml</code> and to do that I use a fun... | 1 | 1,476 |
How to reuse angular 4 component | <p>I'm using in my project some components from primeNG (<a href="https://www.primefaces.org/primeng" rel="nofollow noreferrer">https://www.primefaces.org/primeng</a>). These components have its own properties and events. </p>
<p>I may customize these components sometime, so I'm creating my own components importing th... | 1 | 1,307 |
How can I add a button that makes a phone call to a programmatically given phone number? | <p>I have an app, that shows a list of friends (each friend haves fullName and movilephone).</p>
<p>I'm using a variation of the listActiviti example of android developers guide</p>
<p>can someone complete my code or tell me code examples of how to put a button on the right side of the items of each list, that when t... | 1 | 1,362 |
Cannot execute apache2 restart command in ubuntu21.10 | <p>After I executed the command: <code>sudo systemctl restart apache2</code> in the terminal, it prompted an error:</p>
<pre><code>Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for detai... | 1 | 1,166 |
How to fix flutter corrupted files? | <p>Sorry in advance, I am fairly new to flutter and my explanation is not
very concise.</p>
<p>I am having a problem with corrupted flutter files. My project was fine
until a while ago when some of the files corrupted I think. I think it
might have to do with me changing the projects file name to make
different ve... | 1 | 16,187 |
Could not cast value of type 'NSTaggedPointerString' to an array | <p>I working on a project that is written in <code>swift 3.0</code>. My requirement is to save data that i enter on some text fields and populate one of those attributes in to a table view, and once a row is selected I wants to update that records (re-assign values on my text fields).</p>
<p>However im having an issue... | 1 | 1,136 |
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 18 23 CoreFoundation crash | <p>I am getting following crash. Can anyone tell me the reason for this crash?</p>
<pre><code>__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18 23 CoreFoundation crash
</code></pre>
<p>I`m not using threads.
The NSZombieEnabled and instruments did not clarify the reason of the crash at all.
Please,... | 1 | 1,346 |
How to change Bootstrap tab by pagination | <p>Hi I am new to bootstrap and jQuery. I have created a bootstrap Tab, which is working fine. The tabs are changing by header, but I also needs pagination to change Tab, which I am not able to do. Following is my scenario,</p>
<pre><code>Tab 1 --> next button --> go to tab 2
Tab 1 <-- previous -- Tab 2 -- n... | 1 | 1,710 |
How to fix Android Studio not being able to connect to Gradle daemon? | <p>I am trying to start Android Studio and keep getting Gradle errors. Looking at the daemon logs, it seems like the daemon will only accept connections from an IPv6 connection or 127.0.0.1.</p>
<p>However, I don't know how to enable it to accept other connections nor use IPv6. I have tried to add IPv6 flags in variou... | 1 | 1,857 |
Button Inside Gridview Inside Update Panel Not Working | <p>I'm just starting to use Update Panels in my solutions, so I'm slowly getting familiar with them. I have a GridView that has a delete button associated with each row displayed. When I click on the delete button, it's OnClick event should displays a panel which acts as semi-modal confirmation box (done as a lightbox... | 1 | 1,100 |
TypeError: __WEBPACK_IMPORTED_MODULE_3__ is not a function | <p>I'm working on a todo list in my current project.
I can display the todo list but when I click the checkbox to mark a task as complete I get this <code>TypeError</code>:</p>
<p><img src="https://i.stack.imgur.com/QR3hX.png" alt="this TypeError" /></p>
<p>I've tried to use Google and Stack to find an answer but still... | 1 | 1,112 |
PHP DOM - How to insert element in a specific position? | <p>In a nutshell, this is what I'm trying to do:</p>
<ol>
<li>Get all <code><img></code> tags from a document</li>
<li>Set a <code>data-src</code> attribute (for lazy loading)</li>
<li>Empty their sources (for lazy loading)</li>
<li>Inject a <code><noscript></code> tag after this image</li>
</ol>
<p>1-3 a... | 1 | 1,335 |
Does runat="server" img scr=~/img/ex1.png" work in ASP or only ASP.net | Relative to Absolute path in include | <p>so: I've read 8+ stackover flows on relative to absolute. A few sites and went to MS page on this... </p>
<p>however when I've tried and had not success. Then I researched more and wonder solutions I read about are not part of .asp and just asp.net? (yup, I'm a novice / newbie / ignorant)</p>
<p>The situation... | 1 | 1,419 |
Spring initialization failure related with CXF 2.4.10 | <p>We have a working system with following technologies </p>
<pre><code><spring-version>3.0.1.RELEASE</spring-version>
<quartz-version>1.5.2</quartz-version>
<axi2-version>1.5.4</axi2-version>
<cxf.version>2.2.12</cxf.version>
</code></pre>
<p>But after I tried to upgra... | 1 | 6,785 |
org.openqa.selenium.remote.service.DriverService$Builder.createArgs()Lcom/google/common/collect/ImmutableList; with Selenium 3.5.3 Chrome 76 | <p>I'm writing Selenium Junit tests with IntelliJ. The tests run ok if I trigger from test directly. However, if I trigger tests from TestRunnerSuite with JunitCore, I encountered following weird error that I did not find a solution after researching on google. Similar questions on DriverService$builder, but not my err... | 1 | 4,652 |
TeamCity MSBuild 4.0 Help | <p>I need some help with my MSBuild file i created a while ago. </p>
<p>All i want to do is build the solution, publish a project inside the solution and than copy the files to a directory</p>
<p>At the moment when i set Teamcity to .net 4 msbuild, msbuild 4.0 tools and for 86 i get an error stating</p>
<blockquote>... | 1 | 1,026 |
ClickOnce deployment auto update is not working | <p>I am using <a href="http://en.wikipedia.org/wiki/ClickOnce" rel="nofollow">ClickOnce</a> deployment to check for updates:</p>
<ol>
<li>I have done the settings like in the publish tab, publish URL, and check for updates path, and check for updates before application starts and run application both offline and onlin... | 1 | 5,220 |
C++ delete element function in a doubly linked list | <p>I'm fairly new to C++ and it's data structures. I've made a few functions for my Doubly Linked List Class but i'm having trouble in the delete functions specifically. I've made a deleteHead() function which delete's the first node in the list, a deleteTail() function which deletes the last node in the list and final... | 1 | 1,053 |
Why won't my scalatest test compile? (scala.MatchError) | <p>There is all of the code in my project:</p>
<pre><code>package fileSearcher
import org.scalatest.FlatSpec
class FilterCheckerTests extends org.scalatest.FlatSpec {
"Foo" should
"not do terrible things" in {
assert(1 == 1)
}
}
</code></pre>
<p><img src="https://i.stack.imgur.com/VbsBQ.png" alt="Eclip... | 1 | 1,878 |
Loop through a cursor in SQL Server | <p>I would like to understand how I can use the content of a cursor in a Where clause of a SQL query.</p>
<p>I tried to run the code below and I get no result.</p>
<p>The field salescostindex allows me to recognise the specific sales and costs for each transaction with a customer. Now I need to understand when the co... | 1 | 1,310 |
Email validation for specific domain name | <p>I have the following form. I want to validate the email field .it should only contain for domain name "<strong>@somename.com</strong> " when the user clicks submit.</p>
<p>The mail should only be validated when the check box is clicked to show the email field.</p>
<p>If the email is invalid i want to prevent submi... | 1 | 1,168 |
ModuleNotFoundError on console_scripts execution | <h3>What is happening</h3>
<p>I have a simple CLI project written in Python 3 (Python 3.6.0 interpreter) which I can run using the package and module name directly from the command line, but which fails when installed with <code>setuptools</code>:</p>
<pre class="lang-none prettyprint-override"><code># success
❯ pyth... | 1 | 1,848 |
Spring WebService - Unable to call service that requires proxy with username and password | <p>I am trying to use the Spring WebServiceTemplate in my Java code to call a proteceted webservice offered by a vendor</p>
<p>here is the spring config for my webserviceTemplate</p>
<pre><code> <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/>
<bean id="webS... | 1 | 3,900 |
Android HorizontalScrollView content Stretch | <p>I have a HorizontalScrollView with some buttons, I am trying to stretch these buttons to fill the whole width of the HorizontalScrollView so that they can appear organized and equally spaced between each others. Here is the Image which I have.
<img src="https://i.stack.imgur.com/FUSlU.png" alt="HorizontalScrollView ... | 1 | 1,085 |
Can ServiceStack services contain multiple methods? | <p>Environment is Visual Studio 2012, ServiceStack, ASP.NET Web Application Project (followed <a href="https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice" rel="nofollow noreferrer">https://github.com/ServiceStack/ServiceStack/wiki/Create-your-first-webservice</a>)</p>
<p>Looking through som... | 1 | 2,302 |
twitter widget only working in the first loading , then fails | <p>I have a web application which is developed using the Play Framework.
There I have used Ajax to load most of the view html pages to a div called 'container' .</p>
<pre><code>$( "#container" ).load("/contactUs"); // contactUs is the page which contains the widget
</code></pre>
<p>I have this html page which include... | 1 | 1,461 |
Valgrind message : Address XXX is in a r-x mapped file <fielpath> segment | <p>I am learning C for malloc and free heap memory related to self-defined structure.</p>
<h2>The problem I met</h2>
<p>For below code I constantly got <code>segment fault</code>.
Using <code>valgrind</code> to analysios showed : <code>==12999== Address 0x108b4b is in a r-x mapped file <folder_path> segment
==... | 1 | 2,312 |
About Mapping Object To Database Using Hibernate | <p>Hello guys i am new to hibernate. while i was surfing stack overflow for hibernate related topics i found this </p>
<blockquote>
<p><a href="https://stackoverflow.com/questions/8347350/need-clarification-about-mapping-objects-to-database-annotations-and-one-to-ma">Need clarification about mapping objects to datab... | 1 | 1,341 |
XSLT transform replacing a tag that appears periodically through document | <p>I have an xml document that I am transforming with xslt into an xsl-fo document. I have this tricky problem I've been trying to track down a solution to for a long time...</p>
<p>In my source xml I have a few tags interspersed throughout. I want to format these as underline in the resulting document, however I hav... | 1 | 3,537 |
How to send a message from client to server using c# containg spaces | <p>I create the following code but there is one problem: I can't sent a large message from client to server which contains spaces.</p>
<p>Here is my code for server </p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
names... | 1 | 1,669 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.