title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to get time converted to IST in SQL?
<p>I have the Data in a an SQL DataTable by the name <code>DPSDateTime</code>. Shown below are the data columns with values:</p> <pre><code>crea_date Disp_Day Disp_Time State TimeZone 11/13/14 5:56 PM Thursday, December 18, 2014 19:00:09 IL (GMT-06:00) Centra...
0
1,138
Angular js directive to show alert for browser back button when unsaved data in form
<p>I'm a newbie to angularjs.Is there any way to show alert when a form has unsaved data and user presses browser back button. Any pointers to how to achieve this would be appreciated.</p> <p><strong>Update: :</strong> </p> <pre><code> angular.module('myApp.directives', []).directive('confirmOnExit', function() { ...
0
1,030
Error:Execution failed for task ':app:packageRelease'. > java.io.IOException: Failed to read zip file
<p>I get the following error when i try to build release build. I am using android studio 2.3 . I have added my gradle and proguard rules files below and i ma using mac with mac os X</p> <pre><code>Error:Execution failed for task ':app:packageRelease'. &gt; java.io.IOException: Failed to read zip file '/Users/username...
0
1,451
Asp.Net Core swagger Help Pages for IFormFile
<p>I am trying to setup swagger for testing models which have IFormFile properties. For example I have next api method</p> <pre><code>[HttpPost] public ApiResult&lt;UserModel&gt; SaveTestFileData([FromForm]TestPostFileArgs args) { var result = new UserModel() { Id = 1, Name = $"SaveTestFileData {args.UserId} compa...
0
1,117
How to define DataContext in XAML using StaticResource
<p>I want to declare a DataContext through a static resource in XAML as a binding for the Customers in the Northwind database. I can do this easily in code (C#) but want to learn how to do in XAML. I have tried all of the examples I can find but none of them work for me. I believe the issue is in the two XAML lines of ...
0
1,093
using ng-repeat inside another ng-repeat
<p>I'm developing a page where I need to show some boxes (using <code>ng-repeat</code>) that contains info of channels and where it will be shown (which are cities).</p> <p>The problem I am facing is when I repeat the second <code>ng-repeat</code>:</p> <pre><code>&lt;table class="table table-condensed" ng-init="nitsC...
0
1,704
DefaultDocument suddenly not working on IIS7
<p>I have a website which has been running on IIS7 for about 2 months. We have the default documents set up to load a default.asp page when users go to the domain with no page. Suddenly this morning, I am getting errors and the default document will not load. If I type the default.asp, the file loads just fine.</p> ...
0
1,937
Is inline assembly language slower than native C++ code?
<p>I tried to compare the performance of inline assembly language and C++ code, so I wrote a function that add two arrays of size 2000 for 100000 times. Here's the code:</p> <pre><code>#define TIMES 100000 void calcuC(int *x,int *y,int length) { for(int i = 0; i &lt; TIMES; i++) { for(int j = 0; j &lt;...
0
1,499
Unable to resolve dependency Android Studio 3.0
<p>It's good to have a Updated <strong>Android Studio 3.0</strong>. But I am facing a problem with <strong>Android Studio 3.0</strong>, I just created a new project in <strong>Android Studio 3.0</strong>. Then I got some error</p> <p>I solved these by changing <strong><code>dependencies</code></strong> to latest versi...
0
1,053
TextBoxFor and PasswordFor elements display default value for an unknown reason
<p>I have a problem with a view where a new user can be created. There are default values in the textboxes and I have no idea how to get rid of them. </p> <p><em>/edit</em> The register model looks like this:</p> <pre><code> public class RegisterModel { [Required(ErrorMessage = "*")] [Display(Na...
0
1,116
Sharepoint 2010 WSP Deployment problem. Can’t deploy new files
<p>We have found a problem with our deployment to a production server that runs Sharepoint 2010 Publishing Site Collection.</p> <p>We are deploying WSP packaged from Visual Studio to Sharepoint Management Shell (Uninstall, reinstall solution). It has worked like a charm in the past. We added a custom masterpage, css f...
0
1,564
During startup program exited with code 0xc0000139
<p><strong>UPDATE:</strong></p> <p>This turned out to be a compiler issue (I was using <em>MinGW</em>) so a <strong>workaround</strong> is switching to another compiler (in this case <em>Cygwin</em>).</p> <hr> <p><strong>The (original) question</strong></p> <p>I'm a student starting to learn <strong>C++</strong> by...
0
1,231
I am getting message: '(#100) No matching user found', when using the facebook messenger bot sample tutorial code
<p>When using the same Facebook getting started guide (<a href="https://developers.facebook.com/docs/messenger-platform/quickstart" rel="noreferrer">https://developers.facebook.com/docs/messenger-platform/quickstart</a>) </p> <p>I am getting an error on the node.js console when typing a message and sending it to the ...
0
1,889
How can i speed up this Indexed View?
<p>I have a simple Indexed View. When I query against it, it's pretty slow. First I show you the schema's and indexes. Then the simple queries. Finally a query plan screnie. </p> <h3>Update: Proof of Solution at the bottom of this post.</h3> <h3>Schema</h3> <p>This is what it looks like :-</p> <pre><code>CREATE vi...
0
1,420
How to include scripts automatically in a yeoman/grunt project?
<p>I have a working yeoman project. I am using grunt-usemin.</p> <p>To include javascripts, I do this in <code>index.html</code>:</p> <pre><code>&lt;!-- build:js scripts/includes.js --&gt; &lt;script src="/bower_components/jquery/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="/bower_components/underscore/underscor...
0
1,208
Attach function to DOMWindow Object
<p>I have this nice little snippet i've made for getting browser position:</p> <pre><code>if (!window.position) { window.position = function() { return navigator.appName.toLowerCase().indexOf("explorer") &gt;= 0 ? { x: window.screenLeft, y: window.screenTop } : { x: window.screenX, y: window.screenY }; ...
0
1,687
When there is a large list , flat list is laggy and sometimes crashing app in react native
<p>Please help me. When there is a large list, flat list is laggy and sometimes crashing app in react native .</p> <p>I have tried Optimized list: it is not showing images, and i have tried react-native large list. Nothing is working.</p> <p>This is the code:</p> <pre><code> {loading == false &amp;&amp; ( ...
0
1,317
Angular not working after cloning to a different PC
<p>so I got a new pc and I wanted to pass my angular project through github. I used 1.<code>npm i</code> 2.<code>npm i @angular/cli@latest -D</code> 3. <code>ng update</code></p> <p>And Everytime I'm trying to run the project with <code>ng s</code> it keeps sending me this error:</p> <pre><code>This version of CLI is...
0
1,209
Load modal after form submit
<p>Relevant page here: <a href="http://marcmurray.net/test_sites/cans/news.php" rel="noreferrer">http://marcmurray.net/test_sites/cans/news.php</a></p> <p>I've been trying to load a message confirmation modal for a while after the user submits an email, but can't get it to work at all.</p> <p>So far I've tried echoin...
0
1,362
Wordpress - how can I fetch more posts via AJAX?
<p>To begin with, I think this is a longshot but hopefully there is someone out there that can help.</p> <p>To explain the current situation, at the moment I have a custom plugin that grabs various bits of information about a user and their 4 most recent posts.</p> <p>I am also using the WPBook plugin (so this is on ...
0
1,146
c# return resultset from Oracle store procedure and fill a DataTable
<p>I'm a c# SQL Server developer <strong>new to Oracle programming</strong>. The code below works for setting cmdText to: "select * from myTable". I'd like to now put this in a stored procedure, <strong>I need help with how to write this Oracle stored procedure and get the results into a DataTable in my c# code</strong...
0
1,041
Not able to download artifacts from my internal Artafactory repository - 503 ServiceUnavailable Error
<p>I tried to set up an internal remote repository for our organization and want to use that repository as a mirror.</p> <ol> <li>I setup repository manager using Artifactory.</li> <li>I used once of the default local repository "libs-release-local" as my remote repo. </li> <li><p>As it will not connect to any central...
0
1,385
Use CSS Modules in React components with Typescript built by webpack
<p>I want to use the css-loader with the 'modules' option of webpack in a React application written in Typescript. <a href="https://github.com/css-modules/webpack-demo">This example</a> was my starting point (they are using Babel, webpack and React).</p> <p>webpack config</p> <pre><code>var webpack=require('webpack')...
0
1,486
how to implement add item in spinner array adapter in android
<p>i had a EditText , a button and a spinner . When click the button , the spinner will add a new item with name you entered in the EditText. But here is the question, my adapter.add() method seems doesn't work...here is my code:</p> <pre><code> bt1 = (Button)this.findViewById(R.id.AddBtn); et = (EditText...
0
1,670
How to configure activemq in wildfly 10
<p>So, I'm trying to configure the activemq to work in my wildfly 10 instance, but after following so many guides on how to do this I can't figure out why I'm getting this error when I start my jboss server. </p> <p>List of my jar files modules\system\layers\base\org\apache\activemq\main <a href="https://i.stack.imgur...
0
2,555
symbol(s) not found for architecture x86_64 mac os 10.13.3
<p>I know this question was already asked like a thousand times but i tried every solution and nothing helped.</p> <p>I made a little program in Qt and after a while i got this error message:</p> <pre><code>symbol(s) not found for architecture x86_64 linker command failed with exit code 1 (use -v to see invocation) <...
0
1,043
Dropdown menu to the left side
<p>I have a navigation bar with a dropdown menu. It opens like this:</p> <p><img src="https://i.stack.imgur.com/aFjLE.png" alt="image2" /></p> <p>The rest of the items open fine, but I want the last link to open like this instead:</p> <p><img src="https://i.stack.imgur.com/SqrZJ.png" alt="image" /></p> <p>How do I go a...
0
1,178
Call to daemon in a /etc/init.d script is blocking, not running in background
<p>I have a Perl script that I want to daemonize. Basically this perl script will read a directory every 30 seconds, read the files that it finds and then process the data. To keep it simple here consider the following Perl script (called synpipe_server, there is a symbolic link of this script in <code>/usr/sbin/</cod...
0
1,219
How to handle Orientation Change in Sencha Touch V2
<p>I've got a Panel that needs to execute some Javascript if the orientation changes. How do I handle the Orientation Change in <a href="/questions/tagged/sencha-touch-2" class="post-tag" title="show questions tagged 'sencha-touch-2'" rel="tag">sencha-touch-2</a>?</p> <p>This is basically the key line I'm trying to ge...
0
2,120
Class Not Found Exception in Mapreduce wordcount job
<p>i am trying to run a wordcount job in hadoop.but always getting a class not found exception.I am posting the class that i wrote and the command i using to run the job</p> <pre><code>import java.io.IOException; import java.util.*; import org.apache.hadoop.fs.Path; import org.apache.hadoop.conf.*; import org.apache....
0
3,142
OpenSAML (2.0) Signature validation not working
<p><strong>Problem:</strong></p> <p>I am using OpenSAML to build a means of authenticating the SAML 2.0 response posted to our servers. I have got most of it working, with the ability to access the various aspects of the assertion. The only issue is that when I attempt to validate the signature using the public key be...
0
2,849
subprocess.CalledProcessError: ... returned non-zero exit status 255
<p>I'm trying to run someone else's code, which I'm imagining has never been run on Windows, and I cannot get past <code>'git log | head -n 1 | awk '{print $2}'' returned non-zero exit status 255</code>:</p> <pre><code>Logging to ./logs/log_j0_t0.txt Traceback (most recent call last): File "C:\Users\mcram\Documents\...
0
2,463
Getting TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode
<p>I have such jQuery code:</p> <pre class="lang-js prettyprint-override"><code>$(document).ready(function() { $('.btn-create-post-card').on('click', function(event) { event.preventDefault(); let form_data = new FormData(), file = $('.input_file_button'); // if(!file.val()) { // alert('Ple...
0
3,754
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory
<p>I'm rendering write permissions to bundle or install gems on my rails app.</p> <p>It's not recommended but I have tried using <code>sudo gemname install</code> and it does not work for me either.</p> <p>Im unable to connect after running <code>bundle install</code></p> <p>here is the issue</p> <p><code>An error occu...
0
2,555
WordPress not exporting or importing featured image
<p>I have been trying to export my WordPress posts in order to import them into a clean WordPress install. The post are imported, however the featured images is not imported.</p> <p>I have made sure I exported a small number of posts to rule out a timeout error.</p> <p>I took a look at the xml of the export and could...
0
2,217
AngularJS ui-Grid text alignment
<p>I created a ui-grid in a modal within angualr js. In the modal each tab has its own ui grid. For this Profile tab I have a grid and I want to align the column titles being modified and originals. I also want to align the content within the Originals column. I am new to this, so any help is appreciated.</p> <p>Co...
0
2,263
Jquery hide label if input contains value
<p>I am using the following code to hide and show a label in my form with Jquerys onBlur and Focus.</p> <p>Everything works apart from the label showing when there is a value in one of the inputs. (I echo values into my inputs using php when validation fails so users don't have to retype)</p> <p>How can I get the fol...
0
1,091
SpringApplicationConfiguration cannot be resolved in a Spring Boot test
<p>I've generated a Spring Boot web application using Spring Initializr, using embedded Tomcat + Thymeleaf template engine, and package as an executable JAR file.</p> <p>Technologies used :</p> <p>Spring Boot 1.4.2.RELEASE, Spring 4.3.4.RELEASE, Thymeleaf 2.1.5.RELEASE, Tomcat Embed 8.5.6, Maven 3, Java 8.</p> <p>No...
0
3,208
How to search a string in databases of SQL Server
<p>This Query can search any string value (table name, table data etc) from all the tables/views of any SQL Server database, when you will place any string at "<strong>your text here</strong>" it will search your given string from all the tables/views exist in that database,</p> <pre><code>DECLARE @SearchStr nvarchar(...
0
1,072
Android: How to display selected image gallery in ImageView?
<p>I follow instruction from this <a href="http://www.coderzheaven.com/2012/04/20/select-an-image-from-gallery-in-android-and-show-it-in-an-imageview/" rel="nofollow">http://www.coderzheaven.com/2012/04/20/select-an-image-from-gallery-in-android-and-show-it-in-an-imageview/</a>.</p> <p>But I'm having this problem...</...
0
3,352
Spring Security 5.1 - Get Token for Client Credentials Flow with WebClient
<p>I am attempting to get a bearer token via a <code>webclient</code> with the following setup for an integration test of a secured resource server in a servlet application.</p> <pre><code>spring: security: oauth2: client: registration: idp: clientId: id clientSecr...
0
1,809
Submit form with Kendo MVC Grid and other elements
<p>I am trying to get a form containing a Kendo MVC grid and other elements to submit. </p> <ul> <li>The View model contains contains three string fields and an <code>IEnumerable</code> collection. </li> <li>The grid is server bound. I am not adding any elements or deleting any elements from the list using the grid...
0
1,622
org.omg.CORBA.OBJECT_NOT_EXIST when trying to get the root naming context "NameService"
<p>I'm trying to create a java client/server application that uses CORBA to interact. I followed <a href="http://docs.oracle.com/javase/1.4.2/docs/guide/idl/GShome.html" rel="nofollow">this example</a> and was able to get it to work using the 'Java IDL Object Request Broker Daemon, orbd'. But when I change the server t...
0
1,192
How do i create a list of Objects in Java
<p>I have a class file called MarkerCustom. MarkerCustom has a constructor that takes three variables of different types. </p> <pre><code>public MarkerCustom(int myInt, String, myString, BitmapData myBitmap) { </code></pre> <p>From my main Main activity i want to load a GLSurface view that will take an ArrayList of...
0
3,467
jQuery ajax login form with asp.net mvc
<p>I have a simple login form on my MVC app (note I'm not using the inbuilt one) which looks something like this:</p> <pre><code>@using (Html.BeginForm()) { &lt;label for="UserName" class="placeholder"&gt;Email address or username&lt;/label&gt; @Html.TextBoxFor(m =&gt; m.UserName) &lt;label for="Password"...
0
1,171
DataTables: Uncaught TypeError: Cannot read property 'length' of undefined?
<p>So, here is my AJAX call for the DataTables table object. I am trying to get the JSON to fill in a table with rows only, as it already has header rows.</p> <p>I am not clear as to what the syntax of the DataTables ajax calls are, as they differ from one version to the other.</p> <pre><code>$('#MainContentPlaceHold...
0
1,328
UserManager.CreateAsync(user, password) stuck in infinite loop
<p>I'm trying to make a very simple implementation of an <code>IUserStore</code> that would essentially:</p> <ul> <li>use NHibernate</li> <li>save users in a single table (no claims/logins)</li> <li>store role names in the same table, in an nvarchar column (pipe (<code>'|'</code>) separated if multiple items).</li> <...
0
2,428
Dynamically load files on classpath using ReloadableResourceBundleMessageSource
<p>I'm new to Spring and am attempting to use it's ReloadableResourceBundleMessageSource class.</p> <p>I'm attempting to use it so that we no longer have to restart our web app for properties files changes/updates.</p> <p>I have a web app (Primarily using JSF) and a separate tar component which contains all my proper...
0
1,427
System.ArgumentNullException : Value cannot be null in unit test - C#
<p>I'm getting this error when I run the unit test: <code>Error Message: System.ArgumentNullException : Value cannot be null. Parameter name: logger</code> and also I'm getting this warning: <code>Field 'OrderControllerTest._logger' is never assigned to, and will always have its default value null</code></p> <p>Is ...
0
1,604
Knockout change event-handler
<p>I am spending hours trying to get a simple event call working correctly in my durandal/knockout app.</p> <p><strong>Context</strong></p> <p>I have a list of languages that that the user can select from a select-box:</p> <pre><code> &lt;select class="form-control select2" data-bind="event: { change: app...
0
1,386
Extjs how to make the scrollbar appear?
<p>I need to show a scrollbar as soon as the form is wider then containing container. I set the property autoScroll: true on the container, but it's not working. Is there anyway to get the result I need ?</p> <p>Here is the working example</p> <p><a href="http://jsfiddle.net/mQC3B/2/" rel="noreferrer">http://jsfiddle...
0
2,415
Error: NullPointerAccess: The variable " " can only be null at this location
<p>I am creating a web service that queries my database and returns a list of the object in the database. I get the error: NullPointerAccess: The variable "varname" can only be null at this location. No matter where I put the variable, I get the same warnings. No matter what I put inside the variable, it returns null. ...
0
1,173
Error when trying to parse a string as an int
<p>In this Java program the user is supposed to guess a number from 1 to 100, and then if you press <code>S</code> it shows you a summary of the tries. The problem is that I am taking the input string and converting it to a number so I can compare it to the range, but then I also need to be able to use that string as a...
0
1,167
Hibernate Criteria One-to-Many Relationship
<p>I have two entities: <code>Dealers</code> and <code>Makes</code>. Dealers have multiple makes.I am able to insert the records as a one-to-many relationship between these two entities.</p> <p>However, I am not able to retrieve the records based on dealer ID. I tried many different ways and it's still throwing this e...
0
2,135
(#200) The user hasn't authorized the application to perform this action android facebook SDK
<p>I am posting on my wall in facebook sdk android but I am getting I'll post my code below</p> <p><strong>{Response: responseCode: 403, graphObject: null, error: {HttpStatus: 403, errorCode: 200, errorType: OAuthException, errorMessage: (#200) The user hasn't authorized the application to perform this action}, isF...
0
3,068
Boostrap 4 alpha 6 - row inside card behavior
<p>I am using bootstrap 4 alpha 6 and noticed a strange behavior when using a grid inside the body of a card without card-block.</p> <pre><code>&lt;div class="container"&gt; &lt;h5&gt; The building block of a card is the .card-block. Use it whenever you need a padded section within a card. &lt;/h5&gt; ...
0
2,747
Error C2084 Function already has a body
<p>I've seen this all over the site and still nothing has been able to fix my problem. this is the only error I have and I have no idea how to fix this. I've tried commenting out different sections of the code just to see what happens and still nothing but errors. What is going on?</p> <p>Her is the build error as wel...
0
1,345
retrieve JsonObject in POST with jersey
<p>I have some problems in my application, I send a POST request, but I cannot retrieve the JsonObject in my server, this is the code to send:</p> <pre><code>String quo = "{\"network\": {\"label\": \"new net 111\",\"cidr\": \"10.20.105.0/24\"}}"; GsonBuilder builder = new GsonBuilder(); Gson gson = builder.create(); J...
0
1,715
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack
<p>I have two buttons with <code>onclick</code> event handlers that process information from two <code>grid views</code> on the page. One button for each gv. These are situated on top of each other nested in a <code>html</code> table structure.</p> <p>The buttons are used to export the <code>grid</code> date into an <...
0
2,961
How to load Spring Application context in Maven tests
<p>I have a <strong>Maven web project</strong> where I want to execute some JUnit integration tests. To achieve that, I want to load the <em>applicationContext.xml</em> file to obtain the Spring injected beans. Also my application context files are located into <code>src/main/resources/app_context</code>, but when exec...
0
1,193
How to get value / content in JSON object with python
<pre><code>import json import urllib import urllib2 url = "https://www.virustotal.com/vtapi/v2/file/report" parameters = {"resource": "2aa837802b1c7867a65067525a843566029bd97e3ce99f6eb55217e219043ae1", "apikey": "123123123123123123"} data = urllib.urlencode(parameters) req = urllib2.Request(url, data) response...
0
4,891
Installation of Oracle Database 11g Express Edition on Ubuntu 12.04.1 LTS
<p>I have been struggling to install Oracle 11g Express Edition on Ubuntu 12.04.1 LTS version.</p> <p>I have followed these steps:</p> <ol> <li><p>Downloaded 11g express edition from Oracle's <a href="http://www.oracle.com/technetwork/products/express-edition/downloads/index.html">site</a></p></li> <li><p>Created a n...
0
1,283
Flutter how to add margin or padding in BottomNavigationBar
<p>I am trying to make bottom navigation bar, but with padding left and right on the screen. Right now I wrap the BottomNavigationBar with container and add padding there. The problem is the BottomNavigationBar default background still wrap all the layer, so could we remove the background color there?</p> <p><a href="...
0
1,379
"Value cannot be null or empty. Parameter name: contentPath" on a most unexpected line on postback when ModelState has errors
<p>It's been two hours straight I have been haggling with this monstrosity.</p> <p>I get this error:</p> <blockquote> <p>Value cannot be null or empty. Parameter name: contentPath</p> </blockquote> <p>On this line in my view:</p> <pre><code>@Html.ValidationMessageFor(model =&gt; model.IssueName, "", new { @cla...
0
2,475
Angular 2 Exception: TypeError: 'caller', 'callee', and 'arguments' properties may on strict mode functions or the arguments objects
<p>I have a problem in Angular 2, I know this is a recurring problem, but I could not find the resolution. I made a service wich is called from another Component, is no problem there. The problem was in the service, I'm trying to make a http POST and get and error: <strong>[Exception: TypeError: 'caller', 'callee', and...
0
1,027
Spring AOP: "no declaration can be found for element 'aop:config' "
<p>I've seen that a few instances of this problem have been raised already. However, I am confident that I satisfy the criteria that has been outlined in those solutions. i.e. I'm pretty sure I have the desired jars on my class path + my schemalocation addresses look in order.</p> <p>One solution mentioned that the is...
0
4,135
log4net doesn't create log file when deployed on IIS7
<p>Good morning everybody, </p> <p>I have a log4net issue that didn't exist when I was developing on my local machine, but once I deployed the application to a server, log4net stopped working.</p> <p>This is the server configuration : -Windows XP SP3 -IIS 7 -framework .Net v4</p> <p>This is the log4net ...
0
1,203
ChromeDriver ERR_SSL_PROTOCOL_ERROR despite --ignore-certificate-errors
<p>I'm trying to run integration tests on a local host (with no HTTPS) using selenium with ChromeDriver.</p> <p>Chrome requires an https certificate, but from <a href="https://stackoverflow.com/questions/6774235/chromedriver-in-selenium-and-ssl-certificate">this</a> question i understand that i can circumvent this usi...
0
1,869
How to create PHP SOAP request with multiple namespaces
<p>I'm attempting to get a shipping quote from an SOAP service. I've been able to successfully create authentication headers and query the SOAP service with basic requests that require no body parameters. </p> <p>I'm able to create the proper structure for the request but the namespace values are not showing up in the...
0
3,204
SQLAlchemy versioning cares about class import order
<p>I was following the guide here:</p> <p><a href="http://www.sqlalchemy.org/docs/orm/examples.html?highlight=versioning#versioned-objects">http://www.sqlalchemy.org/docs/orm/examples.html?highlight=versioning#versioned-objects</a></p> <p>and have come across an issue. I have defined my relationships like:</p> <pre>...
0
4,408
OpenXml and Date format in Excel cell
<p>I am trying to create an Excel file in xlsx format using OpenXML because I need to use that on a web server.</p> <p>I don’t have any problem to fill the values in the sheets; however I am struggling to set the classic Date format in a cell.</p> <p>Below a quick test using <code>DocumentFormat.OpenXml</code> and Wi...
0
1,727
SyntaxError: Unexpected token e in JSON at position 1
<p>What's wrong with below code? I keep getting following error. The response from ajax is plain text, for instance "Hello world". Does $http.get() expects json response?</p> <blockquote> <p>angular.js:13550 SyntaxError: Unexpected token t in JSON at position 1 at Object.parse (native) at uc (<a href="ht...
0
1,067
How do I implement the LocationListener?
<p>Here's my source code to get the longitude and the latitude, but how do I implement the statement inside the Location Listener, I am new in this, I really need help, please kindly offer your help, thank you.</p> <pre><code>public class Location extends AppCompatActivity{ LocationManager locationManager=(Locati...
0
1,201
Place icon on same line as text
<p>I'm trying to place my icon on the same line as <code>2 Replies</code>.</p> <p>Here's a screenshot of how it looks:</p> <p><img src="https://i.stack.imgur.com/jfEUo.png" alt="enter image description here"></p> <p>I'd like to have it to the right of the line, as the arrow shows.</p> <p>Here's how my Component's <...
0
1,169
Why Username and Password not accepted when I send mail in php?
<p>Hi this is my problem:</p> <p>I want send a mail and this is my mail code: </p> <pre><code>&lt;?php require "vendor/autoload.php"; class HelperMail{ private $oPhpMailer; function __construct(){ $this-&gt;oPhpMailer = new PHPMailer(); $this-&gt;oPhpMailer-&gt;isSMTP(); $this-&gt;...
0
1,391
passing values from recycler adapter to fragment in android
<p>I've a recycler adapter where I've added <code>setOnClickListener</code> for items in adapter. Code is as given below: </p> <pre><code>@Override public void onBindViewHolder(final FiltersAdapter.MyViewHolder holder, final int position) { holder.mOrganizer.setText(filtersList.get(position)); hol...
0
1,088
how to show the Scrollbar below the Sidenav Toolbar in AngularMaterial-7
<p><a href="https://i.stack.imgur.com/xnR5x.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/xnR5x.jpg" alt="enter image description here"></a><strong>Please help me to achieve the below two methods:</strong></p> <p>1) How to show the sidenav <strong>scrollbar below the toolbar</strong> in the sidenav:</p> <...
0
1,428
Qt 5 : update QProgressBar during QThread work via signal
<p>I'm trying to update a QProgressDialog (owned by a QMainWindow class) along the execution of a QThread who process some time consuming operations. The thread emit some signals during operation in order to inform the calling app about progression. I'm looking to connect the progress signal emitted by the thread to th...
0
1,470
gradle fails on using flutter in Android Studio
<p>I'm a newbie to both Android Studio and Flutter. I recently wanted to try Flutter and hence installed the plugin in Android Studio. My Flutter code has no bugs, but the gradle fails.</p> <p>app level build gradle:</p> <pre><code>def localProperties = new Properties() //here, Properties gets highlighted as error d...
0
2,218
DropDownList with foreach loop in C# MVC
<p><strong>ORIGINAL</strong></p> <p>I have a website where I can manage cars, brands, and car models. Right now I have controllers, models and views, the application is working, everything was auto generated by Visual Studio, and i am using entity framework (database first). </p> <p>When I try to create a car, the dr...
0
11,546
Crosstab Query with Dynamic Columns in SQL Server 2005 up
<p><br /><br /> I'm having a problem with Crosstab query in SQL Server. </p> <p>Suppose that I have data as below: </p> <pre><code>| ScoreID | StudentID | Name | Sex | SubjectName | Score | ------------------------------------------------------------------ | 1 | 1 | Student A | Male | ...
0
1,271
prevent users without confirmed email from logging in ASP.Net MVC with Identity 2
<p>In microsoft Identity 2 there is ability to users can confirm there email addresses I downloaded Identity 2 sample project from <a href="https://www.nuget.org/packages/Microsoft.AspNet.Identity.Samples">here</a> in this project there isn't any difference between users confirmed their emails and who doesn't I want t...
0
1,085
Sending Formatted HTML email
<p>I have a text file <strong>output.txt</strong> which has following content:</p> <pre><code>OPERATINGSYSTEM PROJECTSERVER1 PROJECTSERVER2 Windows 1.36 4.42 Linux12 2.78 5.76 MacOS 3.45 6.39 Ubuntu ...
0
1,200
How to solve this error in Android? java.net.MalformedURLException: Protocol not found:
<p>I dont know what is exactly problem, But I am getting error like: Even I also checking all paths, and it is correct but still it will get error.</p> <p>java.net.MalformedURLException: Protocol not found: www.w3schools.com/webservices/tempconvert.asmx</p> <p>My Code:</p> <pre><code>package com.example.mytest; imp...
0
1,638
PHP quiz with on screen results
<p>I am trying to create a simple quiz based on a tutorial I found. <a href="http://css-tricks.com/building-a-simple-quiz/" rel="nofollow">http://css-tricks.com/building-a-simple-quiz/</a></p> <p>Unfortunately, this is making me spin my wheels and the answer is probably pretty simple.</p> <p>I got this working perfec...
0
1,052
Match multiline regex in file object
<p>How can I extract the groups from this regex from a file object (data.txt)?</p> <pre><code>import numpy as np import re import os ifile = open("data.txt",'r') # Regex pattern pattern = re.compile(r""" ^Time:(\d{2}:\d{2}:\d{2}) # Time: 12:34:56 at beginning of line \r{2} ...
0
1,569
Problem with creating an environment from .yml file, error "CondaEnvException: Pip failed" raised
<p>I am trying to create an environment based on a .yml file, the name of the file is <code>env.yml</code> . I run the following snippet on terminal:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html pr...
0
6,447
Connection reset by peer: socket write error
<p>I am getting an exception on OutputStream.write in the last while loop (it works fine on other places in the code) when running this code- this is an implantation of a proxy-server in java, when searching in the host-response for content length and forwarding the result to the browser it works, but when tryin...
0
1,657
Using maven-release-plugin with GitHub "You can't push to git://github.com/..."
<p>Recently having switched source code repository for a project to GitHub from SourceForge I need to update the maven release process to match. I followed <a href="http://www.owengriffin.com/posts/2010/04/15/Releasing_Maven_projects_to_Github.html" rel="noreferrer">this link</a> for configuring the "scm" section of th...
0
2,185
digital signature using pdfbox
<p>I am trying to add multiple signatures to my pdf using pdfbox, I am trying with two signatures and second signature always turns to be invalid.Please advice, Can a be PDF be signed digitally several times? Adobe livecycle forums says yes.</p> <pre class="lang-java prettyprint-override"><code>import java.io.File...
0
2,453
GlGenTextures keeps returing 0's
<p>I'm trying to generate textures like so:</p> <pre><code>#define checkImageWidth 64 #define checkImageHeight 64 static GLubyte checkImage[checkImageHeight][checkImageWidth][4]; static GLubyte otherImage[checkImageHeight][checkImageWidth][4]; static GLuint texName[2]; void makeCheckImages(void) { int i, j, c; ...
0
1,174
Autorest + Swagger does not generate ENUMs properly
<p>I have two applications <strong>A</strong> and <strong>B</strong>. On <strong>A</strong> I use swagger for describing an API. On <strong>A</strong> I have also the definitions of classes with some enums properties. I want to generate a client API on <strong>B</strong>. For this I use Autorest. Everything works fine ...
0
2,584
The service is currently unavailable Google api
<p>I'm using google slide API to connect to my project account, the connection worked perfectly, but sometime I get this error :</p> <blockquote> <p>Fatal error: Uncaught Google_Service_Exception: { "error": { "code": 503, "message": "The service is currently unavailable.", "errors": [ { "message": "The service is c...
0
1,726
"Can't start a new thread error" in Python
<p>I am running a script which extracts the information from debian packages and saves it in a database. </p> <p>After extracting information from about 100 packages an error occurs. The error is "can't start a new thread" Why am I facing this error? What can be the possible solution to it?</p> <p>This is the code us...
0
3,223
How to display error message in front end using vue js?
<p>This is my error message:</p> <pre><code> {message: "This username is already taken", status: false, error-type: 3, x-debug: [,…]} </code></pre> <p>My vue js code is</p> <pre><code> &lt;script&gt; regBox = new Vue({ el: "#regBox", data: { username : '', phone : '', email : '', password: ''...
0
2,518
Non protected broadcast causes crash on starting of app
<p>I made a service for receiving notification, every time data is updated at the back end. Here's the code for the service:</p> <pre><code>public class FeedbackService extends IntentService { public FeedbackService() { super("FeedbackService"); } @Override protected void onHandleIntent(Intent intent) { Log....
0
1,524
jQuery show/hide column on big table performance
<p>I have html table with about 30 columns and somewhere between 10 to 500 ish rows. I would like to show/hide a set of columns o a button click. </p> <p>I have tried 2 approaches</p> <ol> <li>iterate through table's thead th and do .show() or .hide() on the TH and TD.</li> <li>iterate through table's thead th and ch...
0
1,035
There is no directive with “exportAs” set to “ngForm”
<p>I have included <code>FormsModule</code> but it showing me error.</p> <pre><code>There is no directive with “exportAs” set to “ngForm” </code></pre> <p>My Login.component.ts :- </p> <pre><code>import { Component } from '@angular/core'; import { Http, Response , RequestOptions , Headers , URLSearchParams } from '...
0
2,065
How to convert JSON to list string, when some of the JSON objects are string and some are array?
<p>My JSON looks like</p> <pre><code>{ "d": { "__type": "CubeJsonData", "SessionID": null, "Code": 0, "Message": "", "Rows": {}, "Columns": { "Place 1": [ 0, 1 ], "Place 2": [ 0, 2, 4, 6 ], }, "Set": [ [ "Number 1" ], [ "Number 2" ], [ "Number 3" ] ] } } </code><...
0
1,237
Maven not running Test
<p>I created a new maven project in Eclipse that runs simple test by using both HtmlUnitDriver and FirefoxDriver to pull up a web page and check the title on the page. When I run maven command mvn test this is all that I get:</p> <pre><code>[INFO] Scanning for projects... [INFO] ...
0
2,121