title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Rotate a singly linked list in Java
<p>My functions:</p> <pre><code>import java.util.Collection; import java.util.Collections; public class LinkedList { private Node head; private int listCount; // konstruktor na povrzanata lista public LinkedList() { // ova e prazna lista, pa zatoa 'head' pokazuva kon nov jazok bez elemen...
1
5,324
Card trick Java
<p>I have been working on this program for over 30 hours and I am almost as lost now as when i first started. I've finally been able to print out 7 rows of 3 cards but i still have a few issues with my program. </p> <ol> <li><p>I need to have the cards line up on the word "of"</p></li> <li><p>when i call my PrintDeck(...
1
2,655
MYSQL SUM & GRAND TOTAL
<p>I am trying to get a GRAND TOTAL for the following mysql query. But am not having any luck, I am not so good at mysql yet.</p> <pre><code>SELECT SUM(ep_price) FROM orders WHERE date_shipped BETWEEN '2017-04-01' and '2017-04-30' GROUP BY order_number </code></pre> <p>Query:</p> <pre><code>Result: '152989', '936...
1
2,175
Bootstrap 3 RC2 custom navbar fixed top goes on two line
<p>I am using Bootstrap 3 RC2, and I am trying to make a navbar fixed to top, but without being full width. I have copied the "navbar-fixed-top" declarations in the css, and created mine. On IE (10), this works well, but on Chrome (28) the bar goes on two lines.</p> <p>Have I missed something to have navbar's content ...
1
2,161
php check post contains a variable
<p>this is my page when i run it i got the excption which sayes that the <code>formSubmit</code> is not define . i know that i have to check if the <code>post</code> contents that variable but i couldn't know the solution </p> <pre><code> &lt;?php if($_POST['formSubmit'] == "Submit") { $errorMessage =...
1
1,262
dreamweaver php mysql + profile page
<p>hey guys i am creating a website with login and registration and profile page hat will be created by default as soon as the user register in the form then log in these information will be displayed as a profile info in the profile page that is unique to each user. the username will specify each user and his profile...
1
6,780
iOS Undefined symbols for architecture x86_64 Xcode
<p>I have installed some third party frameworks in my app. Every thing was working fine and suddenly one day i started to get the following errors. Please note that these linker errors appear only when i try to run my app on iOS Simulator.</p> <pre><code>Undefined symbols for architecture x86_64: "_AFNetworkingOpera...
1
1,295
ARM Cortex-a9 event counters return 0
<p>I'm currently trying to use the event counters on an ARM Cortex-a9 (on a Xilinx zynq EPP) to count cycles. I've adapted some ARM example code from ARM for this purpose. I'm programming this bare-metal with the GNU ARM EABI compiler.</p> <p>The way I understand the use of the PMU is that you first have to enable the...
1
1,680
YouCompleteMe unavailable: unable to load Python
<p>I use Linux CentOS-7-x86_64 and am trying to install YouCompleteMe with vundle. I get the error:</p> <pre><code>YouCompleteMe unavailable: unable to load Python. </code></pre> <p>however, when I type <code>vim --version</code> I get:</p> <pre><code>VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 13 2020 22:48:5...
1
1,965
populating a list view with sql database items
<p>My application is based on displaying a dialog box when the user enters the "add category" button. It then should save data into an SQL Database and populate a list view with each item the user adds. I chose SQL database because I want the data to be saved when the user ends the app. How do I actually populate the l...
1
2,384
Spring Security Core Plugin 2.0-RC2 upgrade issue?
<p>I have a grails project and I just upgraded my Spring Security Core plugin to the latest version however I get the following message when trying to run the app:</p> <pre><code>| Error Compilation error: startup failed: Compile error during compilation with javac. /home/dev/.grails/2.1.0/projects/app/plugins/spring-...
1
2,575
Aggregate Function/Group-By Query Performance
<p>This query works (thanks to those that helped) to generate a 30-day moving average of volume.</p> <pre><code>SELECT x.symbol, x.dseqkey, AVG(y.VOLUME) moving_average FROM STOCK_HIST x, STOCK_HIST y WHERE x.dseqkey&gt;=29 AND x.dseqkey BETWEEN y.dseqkey AND y.dseqkey+29 AND Y.Symbol=X.Symbol GROUP BY x.symbol, x.ds...
1
2,559
Building a social network using Firebase
<p>I'm currently developing basic social network Android app for sharing images. Already have PHP/mySQL back-end but thinking about migrating to Firebase because of some features that I like (e.g. security, fast read/write).</p> <p>So, I have <code>users</code>, <code>posts</code>, <code>followers</code>, <code>likes<...
1
1,296
Why is my tab layout for android not working?
<p>I am trying to make a tab sliding activity for my app but I am not able to find what is going wrong.</p> <p>Here is the code for the tab activity:</p> <pre><code>public class TabActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat...
1
1,983
Jenkins slave on Kubernetes fails to connect tcpSlaveAgentListener/:
<p>I am trying to use K8s to set up a Jenkins slave, passing correct agent name and secret but tries to connect to a weird url:</p> <p>Keeps creating slaves and removing them with the exact same logs.</p> <p>Master logs:</p> <pre><code>2020-02-03 21:20:39.980+0000 [id=26] INFO o.c.j.p.k.KubernetesCloud#provisi...
1
2,657
Using ZipStream in Symfony: streamed zip download will not decompress using Archive Utility on Mac OSX
<p>I have a symfony 2.8 application and on the user clicking "download" button, I use the keys of several large (images, video) files on s3 to stream this to the browser as a zip file using ZipStream (<a href="https://github.com/maennchen/ZipStream-PHP" rel="nofollow noreferrer">https://github.com/maennchen/ZipStream-P...
1
1,393
How to build a ListView and fill it from the codebehind
<p>I want to fill my <code>ListView</code> from codebehind <em>and</em> want to know how to build the fields. I saw <a href="https://stackoverflow.com/q/11407221/1919644">this</a> example, and I'd like to now if the only way to build a <code>ListView</code>s fields is using tables. If not, what would be another way to ...
1
1,088
Best way to compare key and value of array(s) in Laravel
<p>Currently I have two arrays as shown in the picture below. What is the best way to compare them? Either by combining them together and compare within one array or compare the way I did?</p> <p><strong>$array1</strong></p> <p><a href="https://i.stack.imgur.com/vQDj3.png" rel="nofollow noreferrer"><img src="https://...
1
1,129
Laravel getting value from another table using eloquent
<p>I got tables like this:</p> <p>User table:</p> <pre><code>+----+---------+------------+ | id | name | level | +----+---------+------------+ | 1 | user 1 | 1 | | 2 | user 2 | 2 | +----+---------+------------+ </code></pre> <p>Category table:</p> <pre><code>+----+---------+------------+ |...
1
1,035
Java Swing Blank JFrame coming up?
<p>I'm new to swing, and was wondering why sometimes my application comes up as blank, and sometimes it displays the components. It seems to be sporadic. There are no exceptions thrown or anything like that. It just frequently comes up as a blank JFrame. At times when I close the application and run it again, it shows ...
1
2,572
Form data on load of Blueimp jQuery File Upload
<p>It seems that I have looked everywhere and tried everything and I can not get this to work, any help would be much appreciated! I am using Blueimp's jQuery File Upload. I have changed the UploadHandler.php in the following ways to make this upload work with multiple records and places within my system. I am using PH...
1
1,377
Getting JAX-WS client work on Weblogic 9.2 with ant
<p>I've recently had lots of issues trying to deploy a JAX-WS web servcie client on Weblogic 9.2. It turns out there is no straightforward guide on how to achieve this, so I decided to put together this short wiki entry hoping it might be useful for others.</p> <p>Firstly, Weblogic 9.2 does not support web servcies us...
1
2,550
MKDirectionsResponse: error, Directions not available. (USA)
<p>For learning purposes I'm trying to develop an app which will show directions to a specific point on a MKMapView.<br> However, the DirectionsResponse gives me the following error everytime, no matter the address:</p> <pre><code>2013-12-28 17:52:23.100 routingApp[378:70b] ERROR 2013-12-28 17:52:23.102 routingApp[378...
1
1,235
How to either disable scrolling in md-content or have a min-height when on mobile
<p>I'm using Angular Material's md-content directives to create a section that flexes to fill the usable vertical space and scrolls it's content. The problem is when viewing the page with a small screen, the content shrinks to the point that it effectively disappears. I'd like the md-content to stop scrolling or have a...
1
1,557
Creating Accessible UI components in Delphi
<p>I am trying to retrieve accessible information from a standard VCL TEdit control. The get_accName() and Get_accDescription() methods return empty strings, but get_accValue() returns the text value entered into the TEdit.</p> <p>I am just starting to try to understand the MSAA and I'm a bit lost at this point. </p> ...
1
1,399
VSCode with WSL2 - Delayed launching due to no response to ping
<p>Using VSCode with WSL2. Everything was alright until last week. From today, I observed that it is taking time to start the WSL. The following is the log from VSCode.</p> <pre><code>[2021-02-22 06:00:31.458] Resolving wsl+myubuntu2004, resolveAttempt: 1 [2021-02-22 06:00:31.553] Starting VS Code Server inside WSL (My...
1
1,904
unexpected AST Node
<p>I use the below given HQL Query:</p> <pre><code>select A.id.customerName, A.id.customerId, A.id.IZone, B.id.accountType, B.id.accountNumber, B.id.bankBranch, (DAYS(current_date)-DAYS(B.id.enrolledDate)) - (select count(distinct C.id.DWkhol) from Holiday C whe...
1
1,533
How do you use masks correctly in pygame?
<p>I have been trying to make a car football game with pygame, and have almost finished, but I would like some help with goal scoring and border detection. I wasn't able to get something to happen if the ball touched the net(I tried with the red net. Anything with the name "redsurf" is the goal). Also, when I try to ma...
1
2,168
threejs Adding lighting to ShaderMaterial
<p>I'm creating a cube full of spheres. So I'm using a particle system. It's all working well until I try to apply a shader material to each of the particles. I've pretty much used the example at <a href="http://threejs.org/examples/#webgl_custom_attributes_particles3" rel="nofollow">http://threejs.org/examples/#web...
1
1,341
'Position: sticky' not sticking
<p>I have created a sidebar and I am simply trying to make it stick about 15px under the header when the user scrolls down. I initially was using JS for this but it really bogged my page speed down and things got choppy. I found that position sticky should work for most browsers, however my sidebar is not sticking on s...
1
1,728
Why am I receiving a "thread exiting with uncaught exception”?
<p>I'm using Parse.com for push notifications. When I receive a push notification, this class executes:</p> <pre><code>public class MyCustomReceiver extends BroadcastReceiver { protected ObjetoMensaje DatosObjecto; protected SerializacionDeDatos Sdd; protected String alert, fecha, name, tipo; private ...
1
2,333
jQuery-ui / auto-complete / getJSON - How to pass the id of the element to the external PHP
<p>I'm binding the jQuery-ui autocomplete to more than one element in my page as I want to have autocomplete with the same set of options in different fields. Something like:</p> <pre><code>&lt;input class='myclass' id='myid1' name='field1' type='text' /&gt; &lt;input class='myclass' id='myid2' name='field2' type='tex...
1
1,123
iphone pdf download
<pre><code> -(IBAction)click; { NSURL *url = [NSURL URLWithString:URL_TO_DOWNLOAD]; NSString *tempDownloadPath = [[self documentsDirectory] stringByAppendingPathComponent:@"test.pdf"]; ASIHTTPRequest *request = [ASIHTTPRequest ...
1
1,069
Flutter- Image picker package: show images one after another with delete action
<p>In my Flutter pr project, I am using <a href="https://pub.dev/packages/image_picker" rel="nofollow noreferrer">Image Picker</a> plugin to select images from the android mobile gallery or capture images with the camera and show them one after another with a delete icon below each image. On tapping the <code>RaisedBut...
1
3,451
Control Two HTML Tables With One Scroll Bar
<p>I have two separate tables of hopefully same height side by side. I want to be able to have the two communicate with each other so that when I scroll the right table down, the left table will also scroll with it in sync. </p> <p>As of now, the only way I could think of doing this is by enclosing both of them in a d...
1
3,245
How to git clone with maven that uses an ssh-agent?
<p>I want to clone a repository with maven and the authentication must use an existing ssh-agent.</p> <p>My current plugin configuration:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt; &lt;version&gt;1.9.4&lt;/ver...
1
1,169
React navigation with hooks and header function - state is not updating
<p>Trying to use react navigation with hooks and a button in the navigation header.</p> <p>I can pass the handleShowModalLogin function to the navigation header and I can see the button is clicked, but the problem is the setShowLoginModal is not updating the showLoginModal state to true. Not sure why this is not work...
1
1,127
JTable inside a JScrollPane not showing up properly
<p>I am working on a the GUI of a piece of code that I have been patching together. I am stuck at this part of the program where I would like a datafile the user chooses to be displayed in a <code>JTable</code> in a preview manner (i.e. the user should not be able to edit the data on the table).</p> <p>With a button c...
1
2,178
Stackoverflow: too many recursive calls ? in C
<p>I'm trying to go through a huge graph (around 875000 nodes and 5200000 edges) but I'm getting a stackoverflow. I have a recursive function to loop through it. It will explore only the non-explored nodes so there is no way it goes into an infinite recursion. (or at least I think) My recursive function works for small...
1
2,543
Python read-only lists using the property decorator
<h2>Short Version</h2> <p>Can I make a read-only list using Python's property system?</p> <h2>Long Version</h2> <p>I've created a Python class that has a list as a member. Internally, I'd like it to do something every time the list is modified. If this were C++, I'd create getters and setters that would allow me t...
1
1,975
Get GPS data while App is running background in Android using LocationListener
<p>i have problem with my Android application.I need an application that will get in background GPS location while open another application.application run in background but i want to also get GPS location in background.</p> <p>create start and stop button for get gps location it work properly but when click on home b...
1
4,136
Add extra header to email VB ASP 3.0 script
<p>I'm working with a web app in VB ASP 3.0. I have the following code to send an email:</p> <pre><code> Const cdoSendUsingMethod = _ "http://schemas.microsoft.com/cdo/configuration/sendusing" Const cdoSendUsingPort = 2 Const cdoSMTPServer = _ "http://sch...
1
1,169
TDD for Web API with NUnit, NSubtitute
<p>I'm still confused with some TDD concepts and how to do it correctly. I'm trying to use it implement for a new project using Web API. I have read a lot about it, and some article suggest NUnit as a testing framework and NSubstitute to mock the repository.</p> <p>What I don't understand is with NSubstitute we can de...
1
3,109
orm.xml does not override annotations
<p>I ran into an issue where JPA on Derby defaults the BLOB size to 64KB. I can resolve this by setting the <strong>columnDefinition="BLOB(128M)"</strong>. However, this fails during integration testing against another RDBMS like MS SQL. What I'd like to do is set the columnDefinition using the orm.xml. However, my...
1
1,407
Connecting Multiple Mongo DBs in a Node.js Project
<p>I am trying to connect multiple MongoDB databases into a single Node.js project. Here is my current structure and issue at hand.</p> <p>Node Version: <strong>v6.12.1</strong></p> <p>Express.js Version: <strong>4.16.2</strong></p> <p>Mongoose Version: <strong>4.13.6</strong></p> <p>Current Structure:</p> <p><str...
1
1,158
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'spring_batch_tutorial.batch_job_execution_params' doesn't exist - Spring Batch
<p>I am working on Spring MVC+ Spring Batch example, I'm developing an application from link: <a href="https://github.com/krams915/spring-batch-tutorial" rel="nofollow">https://github.com/krams915/spring-batch-tutorial</a> and I was able to successfully deploy the application, but when I click via application I see fol...
1
14,952
Sending email with attachment using Maven
<p>Using surefire plugin and postman plugin, I am able to generate a surefire report and send email to a recipient. But the surefire report (html) is not getting attached with the email. Recipient is getting an email without the attachment. If I run the project again, email has been delivered with the attachment. Follo...
1
2,918
Node/Express: concurrency issues when using session to store state
<p>So, I've searched quite a bit for this and found several somewhat similar questions, none of them really addressing the problem though so I thought this deserved a question of its own.</p> <p>I have an express application with a bunch of routes that modify the session to keep state. Thing is, if there are multiple ...
1
1,095
Google Tag Manager Multiple Enhanced eCommerce Events
<p>I'm new to GTM and I'm having trouble trying to submit 2 enhanced ecommerce events in the dataLayer. Only the last event seems to be getting sent when I check on Google Analytics.</p> <p>I've come across <a href="http://www.simoahava.com/analytics/ecommerce-tips-google-tag-manager/" rel="nofollow">http://www.simoah...
1
1,298
How to load files according to Created Date in Windows command shell via SQL Server's xp_cmdshell
<p>In SQL Server, I am using a query below to load all ".jpg" file names from a specific directory (e.g. z:) into a table. </p> <p>I want to know if there's a way to load files according to <strong>Created Date</strong> instead of <strong>Modified Date</strong> in Windows command prompt. The query below only works wit...
1
1,657
why JSON.stringify() and JSON.parse does not work?
<p>I have this javascript result:</p> <pre><code>var layer = '{&quot;type&quot;:&quot;polygon&quot;, &quot;coordinates&quot;: &quot;-34.32982832836202 149.88922119140625, -34.80027235055681 149.80682373046875, -34.74161249883173 150.30120849609375, -33.99802726234876 150.77362060546875, -33.97980872872456 150.279235839...
1
4,182
Does C++11 support types recursion in templates?
<p>I want to explain the question in detail. In many languages with strong type systems (like Felix, Ocaml, Haskell) you can define a polymorphic list by composing type constructors. Here's the Felix definition:</p> <pre><code>typedef list[T] = 1 + T * list[T]; typedef list[T] = (1 + T * self) as self; </code></pre> ...
1
1,363
What does this assertion failure mean in a UITableViewDataSource?
<p>Currently following a checklists tutorial built with io6 in mind. I'm using xcode 5, ios7 sdk. The tutorial hasn't been updated for IOS7 but I didn't want to stop my learning so decided to go ahead and work with the outdated tutorial and hopefully use it as a learning experience. Using reading of official Apple docs...
1
3,204
Adding labels programmatically, aligned with labels from Storyboard
<p>Desired View:</p> <p><a href="https://i.stack.imgur.com/dIV7P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dIV7P.png" alt="enter image description here"></a></p> <p>In Storyboard I have two labels with the blue background that I am creating in Autolayout. Their position will never change. N...
1
1,748
ConstraintLayout ignores margins
<p>I have very simple layout, which can be replaced with one RelativeLayout which always work. However wherever I put margins they are ignored and no, I don't want to use padding and no, chain also doesn't fix the problem. Any idea?</p> <p>For example margins on date or manufacturer are ignored as well as others.</p> ...
1
2,035
Why is vector faster than unordered_map?
<p>I am solving a problem on LeetCode, but nobody has yet been able to explain my issue.</p> <h2>The problem is as such:</h2> <p>Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the ransom note can be constructed from the magaz...
1
1,030
Fine-Tuning the Inception model in TensorFlow
<p>I want to use the pre-trained Inception model on my own data-set AND I also want to fine-tune the variables of the Inception model itself.</p> <p>I have downloaded the pre-trained Inception model for TensorFlow from the following link:</p> <p><a href="http://download.tensorflow.org/models/image/imagenet/inception-...
1
1,574
C# enum to postgres enum
<p>I am currently using postgres enum</p> <pre><code>CREATE TYPE http_action_enum AS ENUM ('GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH'); CREATE TABLE IF NOT EXISTS response ( id UUID PRIMARY KEY, http_action http_action_e...
1
1,257
How can I customize the progress bar of MPMoviePlayerController's background and behavior?
<p>Since I'm new I can't post image yet... so I'll have to draw the picture:</p> <pre><code>--------------------------------------------------------------------------- |[Done] Loading... (*) | ---------------------------------------------------------------------------...
1
1,205
XAML gradient issue in UWP for some devices
<p>I'm using <code>Page</code> as landing screen in my app. XAML looks like this:</p> <pre><code>&lt;Grid x:Name="LayoutRoot"&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="3*"/&gt; &lt;RowDefinition Height="Auto"/&gt; &lt;RowDefinition Height="A...
1
1,548
NHibernate Specified method is not supported
<p>I'm developed webapp using S#arpLite to build a query get a list from many tables. that using NHibernate version 3.3.1.4000</p> <p>I got a error from app when it's running time such as</p> <pre> `NHibernate System.NotSupportedException Specified method is not supported. {Name = "PolymorphicQuerySourceDetector" Fu...
1
2,190
How to load .txt file into an object array using >> overloading? C++
<p>This is my first time posting on this site so please spare me any mistakes/etiquette screw ups!</p> <p>Basically I have a project due on Wednesday (yes, for a class). The code is to be written in C++ and it is a program that takes the following data members (as defined in a student class) from a .txt file listed be...
1
5,470
Spark UDF exception when accessing broadcast variable
<p>I'm having difficulty accessing a <code>scala.collection.immutable.Map</code> from inside a spark UDF. </p> <p>I'm broadcasting the map</p> <pre><code>val browserLangMap = sc.broadcast (Source.fromFile(browserLangFilePath).getLines.map(_.split(,)).map(e =&gt; (e(0).toInt,e(1))).toMap) </code></pre> <p>creating UD...
1
1,668
How to animate an item in the ViewPager after PagerTransform animation?
<p>I am working with viewpager transformer. I am able add a transition effect using transformPage() method. The below given is my pager.</p> <pre><code>final ViewPager pager = (ViewPager) localView .findViewById(R.id.pager); pager.setAdapter(new my_adapter()); pager.setPageTransformer(true, new PageTransfo...
1
1,176
Calling a function and passing parameters stored in a tuple?
<p>I want a class Foo to store a function pointer, which it got on construction, and to call this function at some point. I looked at these two questions for help:</p> <ul> <li><a href="https://stackoverflow.com/questions/4105002/pass-tuples-content-as-variadic-function-arguments">Pass tuple&#39;s content as variadic ...
1
2,615
Django Multi-Table Inheritance VS Specifying Explicit OneToOne Relationship in Models
<p>Hope all this makes sense :) I'll clarify via comments if necessary. Also, I am experimenting using bold text in this question, and will edit it out if I (or you) find it distracting. With that out of the way...</p> <p>Using django.contrib.auth gives us User and Group, among other useful things that I can't do with...
1
1,235
Selenium grid 4 : Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure error
<p>Trying to set up selenium 4 grid with the below docker-compose file but getting the &quot;<em>Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure</em>&quot; error and need some help to fix the same.</p> <p><strong>docker-compose file:</strong></p> <pre>...
1
10,678
.Net Core 3.1 Using Serilog with Microsoft.Extensions.Logger
<p>In this application I've pulled in and setup Serilog, which works for exceptions, and I wanted to use the Microsoft's Logger with Serilog, but I can't seem to figure out how to DI it into services without this error during <code>dotnet build</code>.</p> <p>I'm not sure what I'm missing to have ILogger be using an in...
1
1,415
ListView Binding array of objects access variables
<p><strong>EDIT</strong><br> Turns out the problem was with getting the enclosure it was throwing an error casting MtObject to Enclosure that wasn't being detected by the debugger.<br> Marked Andy's solution as correct as it is, and it helped me to see the problem was not in the ListView code, thank you andy </p> <p>S...
1
1,235
Cordova : writing in a file
<p>There is something i've been stuck for quite some time, despite me searching on numerous forums. I'm sorry if my english is not perfect, I hope I'm clear enough for you to be able to understand me and help me get through this.</p> <p>I'm trying to learn some mobile development with Cordova. I want to create an appl...
1
1,350
Memory corrupt in adding string to vector<string> loop
<p>This is on Visual Studio 2008 on a dual-core, 32 bit Vista machine. In the debug code this runs fine, but in Release mode this bombs:</p> <pre><code>void getFromDB(vector&lt;string&gt;&amp; dates) { ... sql::Resultset res = stmt-&gt;executeQuery("SELECT FROM ..."); while (res-&gt;next()) { string...
1
1,108
Android: Unable to instantiate activity ComponentInfo
<p>I'm getting the following error and I don't no what to do. I cleared my projects 100 times, removed all JARs from the buildpath, deleted bin and gen.....but nothing worked for me.<br> Please find below the error code:</p> <pre><code>09-03 19:43:17.326: E/Trace(800): error opening trace file: No such file or directo...
1
1,125
How to switch between DatabaseGeneratedOption.Identity, Computed and None at runtime without having to generate empty DbMigrations
<p>I am migrating a legacy database to a new database which we need to access and "manage" (as oxymoronic as it might sound) primarily through Entity Framework Code-First.</p> <p>We are using MS SQL Server 2014.</p> <ol> <li><p>The legacy database contained some tables with <strong>computed</strong> columns. <strong>...
1
1,298
It is not working on data-parsley-mincheck="2" with Parsley.js-2.0.0-rc4
<p>When I check my form, it show 'Y' in console. But I did not select any checkbox.<br/> In official document, it say:</p> <blockquote> <p>checkbox need to have either a name or an id attribute to be correctly binded and validated by Parsley. Otherwise, they would be ignored and a warning will be put in the cons...
1
1,487
C# abstract base class for common columns in LINQ
<p>This is what I have so far</p> <pre><code>using System; using System.Collections.Generic; using System.Data.Linq; using System.Data.Linq.Mapping; using System.Linq; using System.Text; namespace Firelight.Business { public interface IBaseEntity&lt;K&gt; { K Id { get; } } /// &lt;summary&gt;...
1
1,553
AvroTypeException: Not an enum: MOBILE on DataFileWriter
<p>I am getting the following error message when I tried to write avro records using build-in <code>AvroKeyValueSinkWriter</code> in Flink 1.3.2 and avro 1.8.2:</p> <p>My schema looks like this:</p> <pre><code>{"namespace": "com.base.avro", "type": "record", "name": "Customer", "doc": "v6", "fields": [ {"nam...
1
1,240
Apache Camel - response after sending a message to a route
<p><br> I'm using <code>Apache Camel</code> and <code>Spring Boot</code> for my project. I have the following code where I receive a <code>json object</code> via <code>http</code> on the <code>rtos</code> endpoint; then I map it into a <code>POJO</code>, modify it and send it again to another endpoint.</p> <pre><code>...
1
1,482
Socket.io and Express with nginx
<p>I'm struggling to configure nginx correctly to ensure that it can handle the proxy for both Express (port 8081) and Socket.io (port 3000). Here is my config that is currently yielding a 502 error for the whole request, not just Socket.io:</p> <pre><code>server { root /var/www/example.com/public/; ...
1
1,248
Processing video library does not work on Linux (Ubuntu 13.04)
<p>I have a problem.</p> <p>I'm trying to run the <code>Mirror</code> sample from the Processing <code>video</code> library, with the latest version of Processing (2.0.3). However, I get this error;</p> <pre><code>Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.con...
1
1,689
XSLT Munchen method and child element of prior XML tag
<p>I've been attempting to group data to reduce the output, however when I use Munchen I get close to what I want, but with an expected "bug" in the output. I've tried to come up with a solution, but I have run out of ideas!</p> <p>Please recognize that the data set here is a <strong>very</strong> simplified look at t...
1
7,152
keyboardWillShow not respond
<p>here is problem, when i debug my program, i found keyboardWillShow function not responds every time. just first time, it will be called by program. here is my code, i dont know whats wrong in my code, but, when the keyboard first appeared, the function run well.</p> <pre><code>- (void)keyboardWillShow:(NSNotificati...
1
1,318
how to send a mail to group of person by using Javamail
<p>Can anybody tell me how to send a mail to group of person by using JavaMail?</p> <p>I have tried but I am getting error at <code>SendEmailToGroupDemo()</code> and at <code>start()</code> method.</p> <pre><code>public class MailJava { public static void main(String[] args) { // Create a SendEmail object and...
1
1,924
Are there any guarantees about C struct order?
<p>I've used structs extensively and I've seen some interesting things, especially <code>*value</code> instead of <code>value-&gt;first_value</code> where value is a pointer to struct, <code>first_value</code> is the very first member, is <code>*value</code> safe?</p> <p>Also note that sizes aren't guaranteed because ...
1
1,144
How to open main window after successful login
<p>I am gettin' stared wiith python. I got a udemy course and also read this post: <a href="https://stackoverflow.com/questions/45508996/how-to-let-your-main-window-appear-after-succesful-login-in-tkinterpython-3-6">How To Let Your Main Window Appear after succesful login in Tkinter(PYTHON 3.6</a></p> <p>Still, I am u...
1
1,267
OpenCV videocapture read camera rtsp error
<p>I’m using opencv-python (version 4.4.0.46) python version 3.8.5 to capture my IP Camera stream, however, I cannot read the video frame. Here is my code:</p> <pre class="lang-py prettyprint-override"><code>import cv2 # cap = cv2.VideoCapture(&quot;rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov&quot;...
1
5,574
drf_yasg documentation parameters not showing
<p>I am using drf_yasg to self document my API which is built using the django-framework, but none of the parameters are displaying at all for any of the endpoints. The way I've done it is to pass the parameters within the http request body in JSON format. I then read the parameters from request.data. Below is an examp...
1
1,567
Suddenly getting "Error: TrustFailure (The authentication or decryption has failed.)" on my Xamarin Android app
<p>Just out of the blue, my app started getting this error when making calls to a REST API via https. I was working on a mod that added an Intent to handle opening files of a certain file extension but I doubt that that was the cause. </p> <p>Instead, the problem is similar to this one: <a href="https://stackoverflow....
1
1,471
Sqlite giving NullPointerException error in android
<p>I am trying to use sqlite DB to store images along with other information in my android app but i am getting this error</p> <pre><code>06-20 12:00:51.411 4132-4132/braindottech.com.fishid E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: braindottech.com.fishid, PID: 4132 java.lang.NullPointerException: Attempt t...
1
2,355
HABTM Double-Nested fields_for
<p>Interesting segment of code that I can't get to work. I have the following models/relationships (unnecessary code excluded)</p> <pre><code>class Service &lt; ActiveRecord::Base belongs_to :service_category, :foreign_key =&gt; "cats_uid_fk" belongs_to :service_type, :foreign_key =&gt; "types_uid_fk" has_and_be...
1
1,455
Can't display files from a vsftpd server on centos 6
<p>It's a Centos 6 running apache server and vsftpd server. Problem is not about connection, it's about displaying folder from local_root directory.</p> <p>Here is /etc/vsftpd/vsftpd.conf :</p> <pre><code># Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This samp...
1
2,686
How to create an Access report from a query using vb.net
<p>Let me explain what trying to do. I have a vb.net form linked with an access database. The form let you make a query and search the database. Now I want to put the option to print a report from the same query.</p> <p>This it what my form look like: </p> <p><img src="https://i.stack.imgur.com/GQhbI.png" alt="enter ...
1
1,444
Java 7: SEND TLSv1.2 ALERT: fatal, description = handshake_failure mule
<p>I'm using <strong>java 7</strong>, <strong>mule 3.7.0</strong>, I've installed <strong>Java Cryptography Extension</strong></p> <p>I'm trying to send a request to a server, but I'm getting:</p> <pre><code>java.io.EOFException: SSL peer shut down incorrectly at sun.security.ssl.InputRecord.read(InputRecord....
1
1,312
AWS ECS using docker and ngnix, how to get my nginx config into the container?
<p>I'm trying to setup a ECS cluster in AWS using Nginx, unicorn and Django.</p> <p>I have converted my docker-compose.yml into a ECS task, but am wondering how I get my nginx config into the container?</p> <p>this is my task in json</p> <p>I have created some mount points for files but am unsure how to get the conf...
1
2,379
NHibernate cascading save
<p>This is trying to insert null into Comment.BlogArticleID.</p> <p>The following GenericADOException appeared: "could not insert: [NHibernate__OneToMany.BO.Comment][SQL: INSERT INTO Comment (Name) VALUES (?); select SCOPE_IDENTITY()]"</p> <p>The following Inner-Exception appeared: "Cannot insert the value NULL into...
1
4,557
Swing/JFrame vs AWT/Frame for rendering outside the EDT
<p>What are the principle differences between using an AWT Frame and a Swing JFrame when implementing your own rendering and not using standard Java GUI components?</p> <p>This is a follow on from a previous question:</p> <p><a href="https://stackoverflow.com/questions/6824756/awt-custom-rendering-capture-smooth-resi...
1
1,287
Access Application, Hidden Application Window With Form Taskbar Icon
<p>I have an access application with one main form. When you open the application, an AutoExec macro hides the application via the Windows API apiShowWindow. Then, the AutoExec opens up the main form which is set to Popup. This all works beautifully; my database guts are hidden and the form opens up and just floats ...
1
1,777
CSV with embedded commas using C# .Net 4.0 LINQ
<p>I'm attempting to find an elegant way to read a cvs string via 4.0 linq and have been somewhat unsuccessful due to embedded commas between quotes. Here is an example of 3 columns and 3 rows:</p> <blockquote> <p>Date,Years,MemoText "2011-01-01","0.5","Memo Text<br> Memo Text continuing<br> And still continu...
1
1,065
ERROR/AndroidRuntime(328): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 10, size is 10
<p>**How to solve this ERROR/AndroidRuntime(328): Caused by: </p> <p>java.lang.IndexOutOfBoundsException: Invalid index 10, size is 10 this problem ...**</p> <pre><code>**Log cat:** 06-15 05:11:39.499: ERROR/AndroidRuntime(328): FATAL EXCEPTION: AsyncTask #2 06-15 05:11:39.499: ERROR/AndroidRuntime(328): java.lang...
1
4,464
Asp .net Show modal popup on click event linkbutton which is on Modal popup
<p>I shown Modal popup (Modal2) on this Modal popup I have grid contain link button. on click event of link button i have to show another modal popup having grid.</p> <p>My First Modal popup Showing </p> <pre><code>&lt;asp:Button ID="btnScholershipApp" runat="server" Text="Button" SkinID="SelectButton" /&gt; ...
1
12,489
UIWebview remove padding / margin
<p>I am loading a PDF into a <code>UIWebview</code> and I changed the background color to clear and set opaque to false. However now there is a padding or margin in my <code>UIWebView</code> that I would like to remove so the <code>UIWebview</code> is the screen.</p> <p>I created a <code>UIWebview</code> like so:</p> ...
1
1,184