title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
SQlBulkCopy The given value of type DateTime from the data source cannot be converted to type int of the specified target column | <p>I am receiving the above error code when attempting to do a SqlBulkInsert of the following "Cities" DataTable:</p>
<pre><code>DataTable cityTable = new DataTable(City.TABLE_NAME);
cityTable.Columns.Add("id", typeof(int));
cityTable.Columns.Add("name", typeof(string));
cityTable.Columns.Add("ascii_name", typeof(stri... | 0 | 1,433 |
AES with padding pkcs7 c++ code | <p>I need an example of string encryption (in C++ -> I'm working on linux-Ubuntu) with aes-cbc256 and a padding: PKCS7
Please help.</p>
<hr>
<p>For the following code how can I set the IV to 0 and set the key value to a string value? I would also like to add the pkcs7 padding. I'm using the crypto++ lib (in Linux)</p... | 0 | 2,038 |
UIViewController's prefersStatusBarHidden not working | <p>I am trying to make the status bar for one of my view controllers to be hidden (when displayed modally). When I'm presenting the view controller, the status bar is is to be hidden and then returned when dismissed.</p>
<p>I have added the following code to the presented view controller</p>
<pre><code>- (BOOL)prefer... | 0 | 1,162 |
Display Upload Progress in Modal with Bootstrap Progress Bar | <p>I have an c# MVC application that I'm building, that presents a form and allows the user to upload some files. When the user clicks submit a modal appears with a progress bar, set to 100% and displays a message of "please wait, ect. "</p>
<p>I want to be able to capture the progress of the upload process and displa... | 0 | 4,203 |
Error creating bean.Injection of autowired dependencies failed.Could not autowire field | <p>I have a problem with my Spring configuration in Spring + Spring MVC + Hibernate + MySQL web application.Spring can't create beans that I was announce in Service class.</p>
<p>Here is Controller class</p>
<pre><code>@Controller
@RequestMapping("/main")
public class MainController {
private static Logger LOGGER = ... | 0 | 5,051 |
How to access a PHP Web Service from ASP.Net? | <p>I am trying use a web service in a C# ASP.Net Web Application. The service is built in PHP and is located on some remote server not under my control so I cant modify it to add meta data or something else into it.</p>
<p>When I use the "Add Web Reference" option in Visual Studio 2008,
I receive the following error:... | 0 | 1,789 |
Square detection in image | <p>I am trying to detect all the squared shaped dice images so that i can crop them individually and use that for OCR.
Below is the Original image:</p>
<p><a href="https://i.stack.imgur.com/uenUq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uenUq.png" alt="image3"></a>
<a href="https://i.stack.imgur.com/S... | 0 | 1,128 |
Framework not found IOSurface for architecture arm64 | <p>This error is very weird.Everything is just fine yesterday.I install the Xcode 9 beta, and then I use Xcode 8 to run my app on iPhone 6p, iOS 9.3.2(I can do this yesterday, and I can still run the app on the simulator)then I get this error.</p>
<p>I Googled the error, it seems like no one runs into this error befor... | 0 | 1,684 |
C# Events and Thread Safety | <p>I frequently hear/read the following advice:</p>
<p>Always make a copy of an event before you check it for <code>null</code> and fire it. This will eliminate a potential problem with threading where the event becomes <code>null</code> at the location right between where you check for null and where you fire the even... | 0 | 1,340 |
How to set row data when clicking button inside the row material-ui DataGrid? | <p>I have a Material-UI DataGrid component that has edit and delete buttons in a row, but I can only do alert or console log,</p>
<p>Why there are buttons in a row because need dialogs when clicking the button, for example when the user clicks the delete button there will be a confirm dialog for delete action, or when ... | 0 | 2,419 |
main java.lang.RuntimeException: Unable to start activity ComponentInfo | <p>I'm trying to use YouTube API in my Android app. First - if I've added lib to my project should something in values appear?</p>
<p>Second one is here, my error:</p>
<p>Logcat:</p>
<pre><code>E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{pl.krasiniak... | 0 | 3,356 |
How to enable WebSockets in IIS 8? | <p>I deployed the SignalR samples application on a Windows 2012, IIS 8 server.</p>
<p>I installed WebSocket protocol support as described here: <a href="http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support" rel="nofollow">http://www.iis.net/learn/get-started/whats-new-in-iis-8/iis-... | 0 | 1,064 |
NextJS error message: Failed prop type: The prop `href` expects a `string` or `object` in `<Link>`, but got `undefined` instead | <p>I'm implementing a header from a GatsbyJS project into NextJS project and get the following error message:</p>
<p>"Error: Failed prop type: The prop <code>href</code> expects a <code>string</code> or <code>object</code> in <code><Link></code>, but got <code>undefined</code> instead."</p>
<p>When remo... | 0 | 2,568 |
Sql Server - Query help (group by with having MAX) | <p>HI,</p>
<p>I'm having a huge problem with one query, this is the data that I have in my table:</p>
<pre><code>entityId groupId groupDepth
-------------------- -------------------- -----------
NULL 1090 0
56 1090 1
222 ... | 0 | 1,298 |
Return a list of errors with BadRequest (WebApi) | <p>As the title indicates all I'm trying to do is return a custom collection of errors if the "Model" is incomplete.</p>
<p>Whilst actively "SO'ing/Googling" I haven't found a solution to help with my problem.</p>
<p>I could of used "ModelState" but due to "Customisation", I'd like to do this manually.</p>
<p>Code a... | 0 | 1,499 |
Exchange server will not accept username/password provided with javax.mail API | <p>I have a lovely little Java client that sends signed email messages. We have an Exchange server that requires username/password authentication to send a message.</p>
<p>When I connect to the exchange server, I get this error:</p>
<pre><code>avax.mail.AuthenticationFailedException: failed to connect
at java... | 0 | 1,614 |
NoClassDefFoundError: org/w3c/dom/ls/DocumentLS - issue occurring only on deployment after having fixed it on compile time | <h2>Background</h2>
<p>I have a project where I parse some XML documents and I happened to need the <code>xerces</code> dependency: </p>
<pre><code><dependency>
<groupId>xerces</groupId>
<artifactId>xerces</artifactId>
<version>2.4.0</version>
</dependency>
... | 0 | 2,805 |
Error while configuring CSS modules with webpack | <p>I am trying to configure CSS modules with webpack but I get an error.</p>
<p>I have checked the other answers here on stackoverflow but none of the solutions have made it work for me so far.</p>
<p>I have added the loader as the docs suggest but it still shows an error.</p>
<p>This is my webpack.configuration.js ... | 0 | 1,474 |
Deploying Qt5 on Windows without Hardware Acceleration | <p>Qt5 can use the OpenGL driver or the DirectX Driver by using ANGLE. As we cannot depend on an installed OpenGL driver, we need to use the ANGLE backend. Unfortunately, this doesn't solve all deployment problems especially on Windows virtual machines without hardware acceleration. On these systems, we're getting an e... | 0 | 1,055 |
Remove-Item error: Cannot remove item [item path & name]: Access to the path '[item path & name]' is denied | <p>I'm new to PowerShell.</p>
<p>I'm trying to automate the deployment of dll components from a folder on a source server to multiple folders on the destination server. This seems like it should be simple enough: copy components from source (deployment) folder on source server to folders on destination server, verify ... | 0 | 1,045 |
What are the complexity guarantees of the standard containers? | <p>Apparently ;-) the standard containers provide some form of guarantees.</p>
<p>What type of guarantees and what exactly are the differences between the different types of container?</p>
<p>Working from <a href="http://www.sgi.com/tech/stl/" rel="noreferrer">the SGI page</a> (about <a href="http://en.wikipedia.org/wi... | 0 | 1,976 |
Add column to AspNetUsers table | <p><strong>Workstation setup:</strong></p>
<ul>
<li>Windows 8.1 Pro</li>
<li>Visual Studio Pro 2013 v 12.0.40629.00 Update 5</li>
<li>.Net v 4.6.01055</li>
</ul>
<p><strong>Background:</strong></p>
<p>I created my project using Individual Account Authentication and then following a guide I found on Youtube I created... | 0 | 1,101 |
Add Collapsing toolbar with image | <p>I want to add Collapsing toolbar with image i tried a lot of codes but i get a lot problems i want to add it in layout which i used RecyclerView and navigation drawer </p>
<p>please help me to add Collapsing toolbar like this</p>
<p><a href="https://i.stack.imgur.com/KF4fw.gif" rel="noreferrer"><img src="https://i... | 0 | 4,536 |
Chrome does not render <form> tag, FF does | <p>I have a very annoying issue. My website has a form, which works in Firefox but not in IE or Chrome. It's made with Gravity Forms for WordPress, but that has probably nothing to do with the issue since the same issue occured with another form plugin. It seems that the error is in my site.</p>
<p>It's fairly simple:... | 0 | 7,370 |
Component will not wait for API response before rendering | <p>I have tried conditional rendering with a flag set after the API call and also using componentDidMount but cannot get this component to wait for an API response before rendering. I know the API response is valid because it is logging ok in the console. I'm new to react, could you tell me what I'm doing wrong? I have... | 0 | 1,334 |
FtpWebRequest with EnableSSL | <p>I implemented my custom FTP class to work with a hosted server that I'm paying for.
I use the FTP for backup, restore and update of my application.
I'm now at the moment where I want to enable the ssl to put this in production.
I asked my hosting company if they support the ssl protocol and they said they do.</p>... | 0 | 1,088 |
Directed graph in java | <p>Can anyone help me implement the bfs on my graph? I put my graph implementation here and the bfs algorithm to my graph . I just need some ideas how to do it.</p>
<pre><code>public class DiGraph<V> {
public static class Edge<V>{
private V vertex;
private int cost;
... | 0 | 1,486 |
How to get LDAP groups name using Oracle dbms_ldap package? | <p>I used this example and successfully connected to <code>LDAP</code> server - <a href="http://www.oracle-base.com/articles/9i/ldap-from-plsql-9i.php" rel="noreferrer">http://www.oracle-base.com/articles/9i/ldap-from-plsql-9i.php</a>.</p>
<pre><code>SET SERVEROUTPUT ON SIZE 1000000
DECLARE
-- Adjust as necessary.
... | 0 | 2,168 |
Build error after adding Crosswalk plugin to a Cordova Android project | <p>I'm using the latest cordova android (5.1.0). The project is building and running fine without crosswalk, but after I add the crosswalk plugin using </p>
<pre><code>cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview.git
</code></pre>
<p>I get the following build error:</p>
<p... | 0 | 1,273 |
Why can't composer find a composer.json file inside my Docker container? | <p>I have a pretty straightforward Dockerfile based on <a href="https://github.com/thelia/thelia/blob/master/docker/php/Dockerfile" rel="noreferrer">Thelia's</a> and <a href="https://hub.docker.com/r/composer/composer/%7E/dockerfile/" rel="noreferrer">Composer's</a>. I want it to do as much setup as possible, so to tha... | 0 | 1,865 |
standard_init_linux.go:219: exec user process caused: no such file or directory | <p>I am trying to move my rust server from Heroku to Google Cloud or AWS. Even though I like the simplicity of having a <code>git push</code> build and deploy to Heroku with just a buildpack specified, the service is not cost effective for me.</p>
<p>I identified Google Cloud Run and AWS Elastic Beanstalk as potential ... | 0 | 3,860 |
Failed 'flutter pub get' - "So, because fstore depends on flutter_test any from sdk, version solving failed." | <p>I've recently upgraded to Flutter the latest version. As a result, my app won't load and fails instantly. The error seems to be due to the Flutter version. I've tried to downgrade but this wasn't successful.</p>
<p>Here's the output of the console.</p>
<pre><code>Running "flutter pub get" in source...
Beca... | 0 | 2,331 |
JOptionPane with switch cases | <p>Well, this code actually run but ended up with wrong output (specifically in "Randoms" cases)</p>
<p>Note: it has a random generator for a random result or output</p>
<p>I would like to know what's wrong with this code.</p>
<pre><code>package gametest1;
import java.util.Random;
import javax.swing.JOptionPane;
p... | 0 | 2,070 |
Turing Machine Implementation in C | <p>I'm studying Turing machines for my course in formal languages theory, the professor recommended a run on the following <a href="http://code.zhoubot.com/archives/52" rel="nofollow">algorithm</a> to see in detail the logic behind of a "TM", but doesn't work, when trying to compile tells me the following error.</p>
... | 0 | 4,117 |
How do I display a user friendly error when Spring is unable to validate a model's java.util.Date field? | <p>I'm using Spring 3.1.2.RELEASE. I want to display an error message on my JSP if my date field isn't formatted properly. I thought I'd followed all the right steps. I binder a converter in my controller …</p>
<pre><code>@InitBinder
public void initBinder(final WebDataBinder binder) {
final DateFormat dateForm... | 0 | 2,288 |
Python speech recognition error converting mp3 file | <p>My first try on audio to text. </p>
<pre><code>import speech_recognition as sr
r = sr.Recognizer()
with sr.AudioFile("/path/to/.mp3") as source:
audio = r.record(source)
</code></pre>
<p>When I execute the above code, the following error occurs,</p>
<pre><code><ipython-input-10-72e982ecb706> in <mod... | 0 | 1,029 |
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.6.RELEASE | <p>I am new to spring boot and try to solve this problem for a week.
I downloaded <code>plugin</code> and still get the same error, and Tools/Options I have no proxy if needed</p>
<p><strong>Edit</strong>
I just created a basic project that user can sign up or log in. And I have controller, service repository, domain c... | 0 | 1,708 |
How to display Model data in a Django Template | <p>I am new to Django. I am trying to display data from my Project model in my index view, using a template. I tried my best to structure this app similar to the polls app. I'm not sure what I am doing wrong. I am using python 2.7, and django 1.8.6</p>
<p>Here is my url:</p>
<pre><code>from django.conf.urls import ur... | 0 | 1,473 |
connection refused error with LDAP? | <p>I am trying to run following program: </p>
<pre><code>package jndi;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import javax.naming.directory.DirContext;
public class LDAPRead {
p... | 0 | 1,363 |
ANR with blocked HeapTaskDaemon thread | <p>I get an ANR-error in my Android app. The trace shows only one thread in blocked state (all the others are in state waiting, sleeping, native,..), so it doesn't seem to be in deadlock. There are two threads which I start (directly) manually, so I roughly know in which part of my app the ANR occurs. Unfortunately, I ... | 0 | 1,425 |
Asp.Net MVC - Model Binding to Model or ViewModel | <p>I have a controller, which returns a view passing in a view model, which has properties required for display of the view (Drop-down select item lists etc). </p>
<p>But when I post it to the server, I have a different model class, which has the selected value of those dropdowns. In my HttpPost controller action, I c... | 0 | 1,096 |
How to filter child entities collections with predicate? | <p>I have an entity service on which I need to filter a collection of child entity, based on a list of id's. My service have a public method which receive the id of the parent entity and a list of id's of some of his children entities.</p>
<p>By default, I know that JPA will fetch all related entities and this his the... | 0 | 1,665 |
The chosen transaction strategy requires access to the JTA TransactionManager or Unable to build EntityManagerFactory | <p>I am using Spring 2.0.6 and Hibernate 3.2.x on apache tomcat5.5,now we planed to changed our hybernate mapping files into hybernate+jpa support mapping files.
for that we created files like this </p>
<p>daoConfig.xml </p>
<pre><code> <beans:bean id="dataSource"
class="org.springframework.jndi.JndiObjectF... | 0 | 3,350 |
502 Bad Gateway with nginx + apache + subversion + ssl (SVN COPY) | <p>I'm having a problem running Apache + Subversion with SSL behind an Nginx proxy and I'm hoping someone might have the answer. I've scoured google for hours looking for the answer to my problem and can't seem to figure it out. What I'm seeing are "502 (Bad Gateway)" errors when trying to MOVE or COPY using subversion... | 0 | 1,340 |
Parse XML to JSON and back ... with xml2js and xmlbuilder? | <p>Trying to parse XML into JSON with <a href="https://github.com/Leonidas-from-XIV/node-xml2js" rel="noreferrer">xml2js</a> and then return the JSON to XML using <a href="https://github.com/oozcitak/xmlbuilder-js/" rel="noreferrer">xmlbuilder</a> (usually after modifying the content programmatically).</p>
<p>I <em>th... | 0 | 2,443 |
C++ validating date without using class | <p>Hi I am hoping someone can help me out with what I am doing wrong. This is homework I will point out but was in need of someone to tell me what a moron I am because I am not seeing what it is that I am doing wrong.</p>
<p>I am supposed to let the user enter a month, day, and year to determine if it is a magic date... | 0 | 3,419 |
VueJS - Unit testing with vue-test-utils gives error - TypeError: _vm.$t is not a function | <p>Relatively new to Vuejs and testing its components. Using vue-test-utils and jest for testing. Getting following error
<a href="https://i.stack.imgur.com/rQejp.jpg" rel="noreferrer">test log</a></p>
<p>The .vue file consists of template, component and styling. Below is the part of the SignupLayout.vue that gets er... | 0 | 1,029 |
ignoring out-of-zone data issues with bind9 | <p>I get these errors when starting bind9 and it doesn't load the records. According to everything I can find it should be right, but its not passing named-checkzone for the same reason.</p>
<pre><code>Oct 4 22:35:44 li205-55 named[7828]: /etc/bind/zones/lan.master.listenerapproved.com:3: ignoring out-of-zone data (l... | 0 | 1,455 |
Problem with "has leaked window" on dialog | <p>I am writing an android app to give the user the option to call a different alternative number based on the number he tried to call.
To do that I have BroadCastReceiver that gets the number being called, checks if there are alternatives and then to show the dialog it starts a new activity to do that as it can not do... | 0 | 3,397 |
TextBlock scroll is not working in WPF | <p>I want to make my <code>TextBlock</code> scrollable but I can't make it work. Maybe problem is in <code>StackPanel</code>?</p>
<p>So here is the code:</p>
<pre><code> <Grid Margin="3">
<Grid.RowDefinitions>
<RowDefinition Height="152*" />
<RowDefinition Height="... | 0 | 2,599 |
Java Certificate Client SSL: unable to find valid certification path to requested target | <p>We require client authentication to send a RESTful request to some of our web services. I've installed a client cert (.pem) and key on the my local mac os via the key tool. These are not self signed.</p>
<pre><code>openssl pkcs12 -export -name myservercert -in not_self_signed.crt -inkey server.key -out keystore.p... | 0 | 2,943 |
Morris.js Uncaught TypeError: Cannot read property 'match' of undefined | <p>I am losing my mind on this and can't figure out the issue. I am using the following code to render a chart using morris.js and I keep getting a "Uncaught TypeError: Cannot read property 'match' of undefined" error. The javascript and php code is below, is I output the php json to the console and paste it into this ... | 0 | 2,115 |
Put 2 columns of recycler view every row | <p>I would like to put 2 columns of recyclerview every row.</p>
<p>Right now my design is like this:
<a href="https://i.stack.imgur.com/3zGNi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3zGNi.jpg" alt="enter image description here"></a></p>
<p>and i would like to put 2 so the scroll is not to l... | 0 | 5,350 |
How to solve npm error "npm ERR! code ELIFECYCLE" | <p>I'm trying to learn react, so I have this sample code for the full-stack react voting app, and I am trying to get it to work but after running npm install followed by npm start I receive the following error when I run <code>npm start</code> can anyone help me with this issue:</p>
<pre><code>npm ERR! Darwin 16.4.0
np... | 0 | 2,738 |
How to get the current date to display in a tkinter window | <p>So I am try to create a tkinter window that displays the current time, and date, as well as a custom phrase. The issue I'm having though is that I can't seem to get the date to refresh when it's the next day.</p>
<p>I can pass the current date as of the time of running the code but after that it becomes static.</p>... | 0 | 1,556 |
ClassNotFoundException: Didn't find class "android.support.constraint.ConstraintLayout" on path | <p>I was working with some libraries so I had to edit Gradle settings. Since my app wasn't working, I restored it with Local history in Android studio but It still doesn't work. Errors returned are reported here </p>
<pre><code>05-04 23:26:34.953 28017-28017/? I/art: Late-enabling -Xcheck:jni
05-04 23:26:35.217 28017-... | 0 | 6,298 |
cordova fails with exit code 2 | <p>I am building an ionic/angularjs/phonegap app. I am new to front end development. I have a package.json and a bowser.json. In package.json, after installing packages, I run "bower install" to install all the bower dependencies. I am able to run a python server in www and see the app in chrome. I am however not able ... | 0 | 2,257 |
React Native - how can I emit an event to RN from MainActivity.java? | <p>In the React Native AppState library:<br>
<strong>iOS</strong> has three states background->inactive->active<br>
<strong>Android</strong> only has background->active</p>
<p>When an Android app is fully backgrounded the MainActivity goes from <strong>onPause -> onStop</strong></p>
<p>When there is a System Notifica... | 0 | 1,245 |
Bold and Italics are not working in Firefox or Chrome | <p>Bold <code><b></b></code> and Italics <code><i></i></code> tags render correctly on the iPhone and Internet Explorer, but there is no formatting in Firefox or Chrome. </p>
<p>Here are the .css files. I also tried to add in <code>i { font-style:italic; }</code> separately in Reset and Style... | 0 | 1,367 |
Excel Macro Text to Columns | <p>I want to write "macro" for my .csv files. I need to perform first on data "text do columns", but when I tried to record macro I get an error:</p>
<p>"too many line continuation".</p>
<p>I select collumn A and then pressed "text to Columns".</p>
<p>Code of macro:</p>
<pre><code> Sub Macro2()
'
' Macro2 Macro
... | 0 | 1,572 |
MVC 4 Using Paged List in a partial View | <p>I am trying to implement PagedList in a partial view.</p>
<p>Describing the view setup. I have <code>Controller A with ViewA</code>. This is the parent view and has its own model. Then I have <code>Controller B with PartialViewB</code> and has its own model as well. Then I have a Div in <code>ViewA</code> that ... | 0 | 2,371 |
Get Cookies & Session and set again using HttpClient | <p>Hey guys i have a situation here...</p>
<p>Im working on a java program where my client want to login to a website with the given credentials and then upload a file to an url of the same website... The problem is either the client done know whether the user login is authenticated and set using cookie or session..</... | 0 | 1,818 |
How to properly use Rules, restrict_xpaths to crawl and parse URLs with scrapy? | <p>I am trying to program a crawl spider to crawl RSS feeds of a website and then parsing the meta tags of the article.</p>
<p>The first RSS page is a page that displays the RSS categories. I managed to extract the link because the tag is in a tag. It looks like this:</p>
<pre><code> <tr>
&l... | 0 | 1,895 |
androidx.preference.PreferenceScreen not found when creating Preferences screen | <p>After following <a href="https://developer.android.com/guide/topics/ui/settings/" rel="noreferrer">this tutorial</a> to create a screen for preferences, there seems to be a problem with inflating the class 'androidx.preference.PreferenceScreen'. Why is it not found when my preferences have been declared inside the <... | 0 | 1,085 |
NHibernate SaveOrUpdate Child Collection Not Updated With Identity Ids | <p>I am clearly missing something (hopefully obvious), and I have had no luck with Google so far.</p>
<p>I have a Parent-Child relationship mapped as follows</p>
<p><strong>Simplified Parent Map</strong></p>
<pre><code> public sealed class ParentMap : ClassMap<ParentEntity>
{
public ParentMap()
{
... | 0 | 1,349 |
How to run multiple sites on one apache instance | <p>Spent hours going in circles following every guide I can find on the net.</p>
<p>I want to have two sites running on a single apache instance, something like this -
192.168.2.8/site1
and
192.168.2.8/site2</p>
<p>I’ve been going round in circles, but at the moment I have two conf files in ‘sites-available (symlinke... | 0 | 1,382 |
Batch requests in Node.js | <p>My program is communicating with a web service that only accepts ~10 requests per second. From time to time, my program sends 100+ concurrent requests to the web service, causing my program to crash.</p>
<p>How do I limit concurrent requests in Node.js to 5 per second? Im using the request library.</p>
<pre><code>... | 0 | 1,789 |
Uploading to Google drive using VBA? | <p>I have an MS Access database which now requires me to 'attach' documents to it. My intention is to store the documents on Google Drive and have a link on the database for users to retrieve the documents.</p>
<p>As there are many users spread through different cities, it is not practical to require them to have syn... | 0 | 1,172 |
Maven adding mainClass in pom.xml with the right folder path | <p>I want to get a working jar file with my maven project.</p>
<p>The build part is:</p>
<pre><code><build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<vers... | 0 | 1,849 |
AngularJS ng-repeat with custom element inside a table is rendering strangely | <p>I'm trying to re-use a portion of my HTML view in multiple places. The portion I want to re-use is table cells in an HTML table. The problem is that my custom directive inside a ng-repeat is doing funny things. I have reproduced the problem on <a href="http://jsfiddle.net/ravishi/BA4tQ/" rel="noreferrer">jsFiddle... | 0 | 1,362 |
php + mysql + google map | <p>i am using google map to create a dynamic google map that take locations(lat, lon) stored in the database using php mysql and display the selected locations by markers on the map
but the problem is that i get the map displayed with a blue color without anything else
if anyone can help me i will appreciate that <... | 0 | 2,480 |
Return code from pthread_create() is 11 | <p>I am trying to run a simple multi threaded programming and i am getting this error from gcc </p>
<blockquote>
<p>return code from pthread_create() is 11</p>
</blockquote>
<p>how do i solve this issue ?</p>
<pre><code>#include <pthread.h>
#include <stdio.h> ... | 0 | 1,134 |
java.lang.RuntimeException Cannot find FacesContext | <p>I don't know how to continue, but I always get the "java.lang.RuntimeException: Cannot find FacesContext" for my new JSF 1.2 web application. I'm sure it's just some configuration I can't find. </p>
<p>The exception occurs with the first <code>f:</code> or <code>h:</code> tag. Already with the important <code><f... | 0 | 1,610 |
Swift 4 Decodable - No value associated with key CodingKeys | <p>I'm decoding a JSON response in my Swift App, and the code used to work till it decided to stop working.</p>
<p>this is my json reposnse</p>
<pre><code>{
"foods": [
{
"food_name": "Milk Chocolate",
"brand_name": "Snickers",
... | 0 | 1,138 |
Connection could not be established with host mailtrap.io [php_network_getaddresses: getaddrinfo failed: No such host is known. #0] | <p>I am getting below error:</p>
<blockquote>
<p>Connection could not be established with host smtp.gmail.com
[php_network_getaddresses: getaddrinfo failed: No such host is known.</p>
<h1>0]</h1>
</blockquote>
<p>My .env file looks like:</p>
<pre><code>MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=xxxxxxxxxxxxxx... | 0 | 1,391 |
IOS Swift - Custom camera overlay | <p>hello I would like to open a camera in my app like this </p>
<p><a href="https://i.stack.imgur.com/BTHOl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BTHOl.png" alt="enter image description here"></a></p>
<p>I want to open a camera only in the middle of the section so user can take a snap only in the ... | 0 | 2,426 |
React + TypeScript: Scroll event type not assignable to window.addEventListener | <p>Can it be that TypeScript DOM types for events and React Event types don't go well with another?</p>
<p>Look at this code:</p>
<pre><code> useEffect(() => {
const onScroll = (event: React.ChangeEvent<Body>) => {
console.log("event", event.target);
};
window.addEventListener(... | 0 | 1,217 |
django.db.utils.IntegrityError: (1062, "Duplicate entry '' for key 'slug'") | <p>I'm trying to follow the tangowithdjango book and must add a slug to update the category table. However I'm getting an error after trying to migrate the databases.</p>
<p><a href="http://www.tangowithdjango.com/book17/chapters/models_templates.html#creating-a-details-page" rel="noreferrer">http://www.tangowithdjan... | 0 | 1,761 |
CSS Opacity inheritance issue | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/8237886/css-opacity-property">CSS Opacity Property</a> </p>
</blockquote>
<p>I'm making a layer on an image which has a transparency and I got a problem there.</p>
<p>When I wrote down any texts on the layer, ... | 0 | 1,139 |
Unable to dequeue a cell with identifier | <p>here's the method causing the problem:</p>
<pre><code>-(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"TableCell";
TableCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier
... | 0 | 3,059 |
Is there a way to programmatically convert JSON to AVRO Schema? | <p>I need to create AVRO file but for that I need 2 things:</p>
<p>1) JSON </p>
<p>2) Avro Schema</p>
<p>From these 2 requirements - I have JSON:</p>
<pre><code>{"web-app": {
"servlet": [
{
"servlet-name": "cofaxCDS",
"servlet-class": "org.cofax.cds.CDSServlet",
"init-param": {
"c... | 0 | 1,807 |
NoClassDefFoundError org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager | <p>Getting this error while I executed <code>start-all.cmd</code> command. Also I am unable to access <a href="http://localhost:8088" rel="noreferrer">http://localhost:8088</a> but I am able to acceess <a href="http://localhost:9870" rel="noreferrer">http://localhost:9870</a>
The error code below is from the Resource ... | 0 | 1,612 |
FatalErrorException in HtmlServiceProvider.php line 36: laravel | <p>I am using laravel 5.2 and I am getting following error
FatalErrorException in HtmlServiceProvider.php line 36:
Call to undefined method Illuminate\Foundation\Application::bindShared()</p>
<p>my app.php file is</p>
<pre><code><?php
return [
'env' => env('APP_ENV', 'production'),
'debug' => e... | 0 | 2,187 |
Lags when RecyclerView scrolling | <p>I can not understand what is the reason the brakes when you scroll through my RecyclerView. Scrolling is called by <code>mRecyclerView.smoothScrollToPosition(position);</code>
When you scroll through the list of twitches (rendering time frame> 16ms)</p>
<p>AlphaAdapter.java</p>
<pre><code>public class AlphaAdapter... | 0 | 3,313 |
LinkButton command event seems to not be firing | <p>I created a simple user control using the AJAX Control Toolkit Accordion, LinkButton, and TextBox like this:</p>
<p>TestControl.ascx:</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" CodeFile="TestControl.ascx.cs" Inherits="TestControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespac... | 0 | 1,222 |
angular material missing css classes | <p>I am just getting started with angular material. I have downloaded and referenced all the files as the usage instruction on <a href="https://github.com/angular/material" rel="noreferrer">here</a>. And then copied all html code from <a href="https://material.angularjs.org/#/demo/material.components.button" rel="noref... | 0 | 2,271 |
Unable to autoload constant ActiveStorage::Blob::Analyzable Error with Rails 5.2, AWS S3, and ActiveStorage | <p>I've been battling this guy for a while and have done all the Googlies on it (<a href="https://stackoverflow.com/questions/50792581/rails-active-storage-unable-to-autoload-constant-activestorageblobanalyzable">here</a>, <a href="https://stackoverflow.com/questions/50307502/blob-error-with-active-storage-rails-5-2">h... | 0 | 3,139 |
Code First Migrations and initialization error | <p>I'm unsure about how to use the code first migration feature. In my understanding it should create my database if it's not existing already, and update it to the latest schema according to migration files. But I'm struggling with it, because I always get a lot of errors and I'm unsure overall how to use this properl... | 0 | 2,819 |
MVC 3: DropDownList on an Edit Form for an object that is a property of a ViewModel | <p><strong>Overview:</strong>
I'm trying to use a ViewModel that has a property that is the model class that I'm trying to edit. I've seen the edit form work using the MVC scaffolding edit forms when editing a model directly, however I am trying to use a ViewModel that contains the model being edited. Everything works ... | 0 | 1,348 |
Node.js res.send VS res.end VS return res.end | <p>I have the following code that has a syntax error in the mongodb findAndUpdateOne update query.</p>
<pre><code>router.post('/buylicense', isLoggedIn, function(req, res) {
if (!req.body.cid) {
return res.send('failed');
}
Company.findOne({
ownedBy: req.user.local.username,
_id: re... | 0 | 1,973 |
Implementing Custom MembershipUser | <p>I am going round in circles and need some help in implementing a Custom MembershipUser so that I can add my own custom Properties to the MembershipUser.</p>
<p>I have been following the example on this site: <a href="http://msdn.microsoft.com/en-us/library/ms366730.aspx" rel="noreferrer">How to: Implement a Custom M... | 0 | 1,288 |
app:layout_scrollFlags="scroll|enterAlways" doesn't works with LinearLayout | <p>I have start working on Android material design support library, and as a newbie I have some confusions. And, need your help. :)</p>
<p>1) Is it possible to use <code>layout_scrollFlags="scroll|enterAlways"</code> with LinearLayout?</p>
<p>2) I want a LinearLayout just below the Toolbar. I achieved it using AppBar... | 0 | 1,406 |
Java vs .NET performance | <p>I got myself very surprised after I wrote this small code to compare .NET 4.5 and Java 8 performance in my computer:</p>
<pre><code>class ArrayTest
{
public int[][] jagged;
public ArrayTest(int width, int height)
{
Height = height;
Width = width;
Random rng = new Random();
... | 0 | 2,017 |
Why is Entity Framework 6.1.3 throwing a "Could not load type 'System.Data.Entity.Infrastructure.TableExistenceChecker'" | <p>Brand new project and entity framework will not start due to the exception being thrown as soon as the context instance is created. </p>
<p>Entity framework throws the following exception:</p>
<blockquote>
<p>Could not load type 'System.Data.Entity.Infrastructure.TableExistenceChecker' from assembly 'EntityFra... | 0 | 2,530 |
Json Schema - How to make anyOf two or more properties required | <p>I have this parent schema:</p>
<pre><code>{
"definitions": {
"parcel": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"accountNumber": {
"type": "string"
},
... | 0 | 1,204 |
How can I change version of Scala that is used by Play, SBT and its plugins? | <p>Is it necessary to change version of Scala that is used by SBT and its plugins ?</p>
<p>I'm using Play Framework 2.1.1-RC2. I want to create new project that will use Scala 2.10.1. To achieve that I did following</p>
<ul>
<li>added dependency <code>"org.scala-lang" % "scala-compiler" % "2.10.1"</code> in <code>Bui... | 0 | 1,122 |
How to enable CORS in python | <p>Let me start this with, I do not know python, I've had maybe 1 day going through the python tutorials. The situation is this. I have an angular app that has a python app hosted with Apache on a vm in an iframe. I didn't write the python app, but another developer wrote me an endpoint where I am supposed to be abl... | 0 | 1,125 |
file download with XMLHttpRequest | <p>I am having a hard time implementing a simple file download script. <br/>
This is what I have so far, working ok : </p>
<ul>
<li>Open an XMLHttpRequest </li>
<li>Get remote file as blob binary</li>
<li>Show download progress</li>
</ul>
<p>My problem is :</p>
<ul>
<li>creating a custom download directory</li>
<li... | 0 | 1,424 |
jquery select all options in next multi-select box | <p>I have several forms that require the use of a few multi-select boxes. (list of affiliates, list of sources, list of products, etc...) Each form could have it's own set of multi-boxes, for whatever my clients need. </p>
<p>I also created a link that allows the user to "select all" the options in any of the multi... | 0 | 1,030 |
No qualifying bean of type org.springframework.jdbc.core.JdbcTemplate | <p>I know this such Exception is not strange while doing J2EE, but I cant figure out how my app going wrong at this step. My Code is quite long, so I will post only what I think is relevant. For the full source code, please go to: <a href="http://code.google.com/p/eagleit/" rel="nofollow">http://code.google.com/p/eagle... | 0 | 5,292 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.