title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
slick setting active slide
<p>I have implemented slick (<a href="http://kenwheeler.github.io/slick/" rel="nofollow noreferrer">http://kenwheeler.github.io/slick/</a>) and everything is fine except the first slide is the first image shown rather than the one clicked on from the list of images, say image 5, image 1 would be displayed. I am using P...
1
3,015
Fragment Compatibility onActivityResult() Not Working
<p>I have been working on an application for android that utilizes the android comparability library (android-support-v4). Before SDK 20, I was able to compile my application with the following <code>uses-sdk</code> entry in my manifest. </p> <pre><code>&lt;uses-sdk android:minSdkVersion="7" /&gt; </code></pre> <p>...
1
3,759
Spring Cloud Stream Kafka Multiple Binding
<p>I am using Spring Cloud Stream Kafka binder to consume messages from Kafka. I am able to make my sample work with a single Kafka Binder as below</p> <pre><code>spring: cloud: stream: kafka: binder: consumer-properties: {enable.auto.commit: true} auto-create-topics: false ...
1
2,693
Create Object Array in foreach Javascript
<p>I have an Array with these values, I need to create a loop on these values to return in alasql like this example:</p> <p><a href="http://jsfiddle.net/agershun/11gd86nx/5/" rel="nofollow noreferrer">http://jsfiddle.net/agershun/11gd86nx/5/</a></p> <pre><code>var data = { "business": [ { "order_contents": [ ...
1
1,804
Why is symfony2 not copying my bundle over?
<p>My appKernel.php looks like this:</p> <pre><code>&lt;?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBun...
1
1,728
SSRS - Is there a way to have a table split by a page break to appear on the same page?
<p>I am creating a report using MS Report Builder 3.0. For this report, I have a stored procedure built that filters down to the specific rows needed, and then I use a row group to group on a particular field (pass_no). The table that is displayed is 2 columns and 3 rows within the row group. The basic description of w...
1
1,151
How can I remove previously delivered notifications when a new notification arrives with UNUserNotificationCenterDelegate in iOS 10?
<p>This question is about the new <code>UserNotifications</code> framework in iOS 10.</p> <p>I have an app that schedules a local notification every half hour after the user did a certain action in the app, starting at 1 hour.</p> <p>To avoid cluttering a user's lock screen or notification center, I only want one not...
1
1,829
How to get the table (datatable) left aligned?
<p>Given the following code, how do I left align the table without using <code>float:left</code>? I thought applying <code>text-align:left</code> to the parent element of the table would do the job, but it doesn't.</p> <p><a href="http://jsfiddle.net/william/B4qJG/1" rel="nofollow">http://jsfiddle.net/william/B4qJG/1<...
1
1,986
Alternative to ReplacementSpan in Android
<p>I have an app that pages large text and sets multiple spans to each word or sentence. I am using ReplacementSpan to draw the background for each word. I cannot use BackgroundSpan because it is too simple and doesn't give me control over the canvas. Because of ReplacementSpan extending MetricAffectingSpan which affec...
1
1,408
Opening .jar file on mac using JDK 11 fails with RuntimeException
<p>I am trying to open a .jar file (<a href="https://github.com/ptrckbnck/SQLChecker/releases" rel="nofollow noreferrer">https://github.com/ptrckbnck/SQLChecker/releases</a>) on my MAC Mojave 10.14 , I need it for my university course. </p> <p>What I did:</p> <ul> <li>installed java OpenJDK 11 as suggested here <a hr...
1
2,526
How to add Bootstrap to Fullpage.js
<p>I'm trying to add Bootstrap to Fullpage.js so in this way my site would be looked responsive. Basically I have got a simple layout for Fullpage.js which goes like this:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;link rel="stylesheet" type="text/css" href="jquery.fullPage.css"...
1
1,366
How to Print a PDF in thermal Printer? PDF from URL/Local to Printer
<p>I followed <a href="https://download.epson-biz.com/modules/pos/index.php?page=single_soft&amp;cid=4747&amp;scat=61&amp;pcat=52" rel="nofollow">Epson SDK</a> and used sample code... To print Receipts</p> <p>So over there from samples I got that I can print Text, Image and both Ways... By using this... to print Text ...
1
5,438
Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration' issue with dependencies
<pre><code>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could no...
1
6,847
Prevent users from getting url from embedded YouTube video/disable clipboard
<p>I have a website where I embed a YouTube video in an iframe. My problem is that I don't want the user to get the videoID or the link to the video (atleast without opening the console because that's propably impossible).</p> <p>I already managed to disable the YouTube logo on which one can click at to open the video...
1
1,371
php- dynamically created radio buttons handle
<p>so.. i've got an upload page where i can upload an xml table filled with data. im handling it on the page itself (not sending it to any db- after the page is closed its erased) i dont know how many rows will be uploaded everytime but its not suppose to be larger than 100.</p> <p>now, i got this part, as a form that...
1
1,560
NoClassDefFoundError while creating mock object in java
<p>I am getting the below exception while running my test class. The class is trying to initialize is available with full path but at runtime gives me the error. Can anyone suggest me what I am doing wrong. Thanks in advance. </p> <pre><code> java.lang.NoClassDefFoundError: Could not initialize class a...
1
1,936
django testing response.context TypeError: 'NoneType' object is not subscriptable
<p>I want to test this view:</p> <pre><code>def register(request): """ handle user registration code variable is for testing purposes """ if request.method== 'GET': form = RegisterForm(auto_id=False) code = 1 return render_to_response('register_home.html',locals(),context_in...
1
1,280
The parameter app_id is required - Ruby
<p>I've looked everywhere, I've followed the legendary 360 Facebook Authentication by Ryan Bates but I still can't figure out why I am getting this:</p> <pre><code>The parameter app_id is required. </code></pre> <p>I cannot figure out how to set these: <code>ENV['FACEBOOK_APP_ID']</code> and <code>ENV['FACEBOOK_SECRE...
1
2,566
How to use the JasperReportsMultiFormatView with ContentNegotiatingViewResolver?
<p>I have html, json, and xml working fine with Spring's ContentNegotiatingViewResolver (Spring 3.2)</p> <p>Trying to get csv output using a jasperreports.</p> <p>Spring can find and parse the .jrxml file ok. Getting the following error when I try to view a .csv URL:</p> <pre><code>java.lang.ClassNotFoundException: ...
1
1,497
How to get a table of users and their roles in .core mvc?
<p>At first I have a table of users from <code>userManager</code> where I can search and sort by username. The original table is following <a href="https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/sort-filter-page?view=aspnetcore-3.1" rel="nofollow noreferrer">microsoft .net tutorial</a> but now I am trying jo...
1
1,112
How to determine what is using serial port resources causing access denied?
<p>I'm getting tired of fighting this every so often. PCs in question are industrial touchscreen models that should never change. This one is Windows 10 while I believe it has also happened on Windows 7. While in the past sometimes this error dealt with emulated com ports (i.e., USB connector) in this case it is a true...
1
1,028
Spring Social Facebook: "The OAuth2 'state' parameter doesn't match"
<p>I am using Spring Social Facebook within a Spring MVC project to support Facebook login. This is working well in almost all cases, but occasionally I see the following exception in the logs.</p> <pre><code>ERROR org.springframework.social.connect.web.ProviderSignInController - Exception while completing OAuth 2 con...
1
3,473
Flutter Bloc Builder is not getting called and not updating UI after state change
<p>I have a problem with Flutter Bloc package. Main idea is to get list of users from API, I turned of the internet to see how my Error state works, but when try/catch block catches an error my Bloc Builder is not getting rebuilt and my UI isn't changing and I have to do hot restart to see the results.</p> <p>UserBloc...
1
3,252
Flutter: Lazy Load data from firestore
<p>Note: I have already seen answers on Lazy Load of ListView but those are for custom API not firestore database!</p> <p>I have a books summary app, App fetches data from my <code>Firebase/Firestore</code> database and then display it using a <code>ListView.builder</code> which is wrapped inside a <code>StreamBuilder...
1
1,742
Adding and deleting elements in ArrayList set as a value in a hashmap
<p>So I have a file that looks like this:</p> <pre><code> 1st 2nd­ nth e1­, ­­v1, 1 e1, v3, 2 e1, v4, 4 e1, v5, 7 e2, v1, 1 ., ­., . ., ­., . ., ­., . </code></pre> <p>where I want the first column to be the key of a hashmap (e1, or e2, or e3), and the value to be an ArrayList calle...
1
1,679
CUDA "Unknown error" for unknown reasons
<p>In my current project, a call to <code>cudaGetLastError()</code> is returning <code>unknown error</code> and I don't know why. The code compiles just fine, but it is not behaving how I would like it to.</p> <p>Below is a brief, <em>not</em> compilable example of what the relevant code consists of:</p> <h2>CU_Main....
1
1,578
Migrate Enterprise Library 5 to 6
<p>Trying to move from <a href="https://entlib.codeplex.com/" rel="nofollow">Enterprise Library</a> 5.0 to 6.0, I ran into some troubles. Maybe this will help others.</p> <p>Following configuration is an example for (silent) exception logging to database:</p> <pre class="lang-xml prettyprint-override"><code>&lt;confi...
1
1,352
Get a rank from list of scores from MySQL database using PHP to an iPhone
<p>I am trying to receive a rank from list of scores in a MySQL database and send it to iPhone. I know how to send a value to iPhone but getting a rank from list of scores in a database is little beyond my ability right now.</p> <p>I have looked into "<a href="https://stackoverflow.com/questions/15137093/get-a-rank-ba...
1
1,165
How to set the TCP parameters in NS2 for packet generation
<p>I am working in NS2 and trying to mix the tcp and udp packets, by using MD1 queue type. I want to split the arrival rate between each udp and tcp packets. I have managed to set the udp as Poisson traffic and found out how to control the generation of packets, but in tcp I haven't figured out how I can control the ge...
1
1,059
VoIP RTP Streaming from/to server (in Java) to/from android
<p>My target is to have a push-to-talk chat app in GSM/UMTS/LTE networks; initially I wanted use multicast addresses and peer-to-peer without overload the server; unfortunatly, after deep investigation, I discovered that multicast is not allowed in GSM/UMTS/LTE networks, therefore I have to use the server in order to b...
1
1,346
[A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B]System.Web.WebPages.Razor.Configuration.HostSection
<p>I got this error after updating mvc framework to 5.2.2.0 using nuget</p> <blockquote> <p>[A]System.Web.WebPages.Razor.Configuration.HostSection cannot be cast to [B]System.Web.WebPages.Razor.Configuration.HostSection. Type A originates from 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, Publi...
1
2,392
SQLAlchemy generating query in loop with contains
<p>I'm building a web app in Flask that involves some SQLAlchemy. I have a function "get_team()" that is driving me bonkers.</p> <pre> def get_team(playerlist) cond = and_(*[Team.users.contains(p) for p in playerlist ]) q = Team.query.filter(cond) ... </pre> <p>I keep getting the error: ...
1
1,511
Java Tile Based Game Performance
<p>I am currently in the process of experimenting with a 2D tile based side scrolling game in Java, primarily based on the code and examples from "Developing Games in Java" by David Brackeen</p> <p>At the moment the map files are 100x100 tiles in size (each tile is 64x64 pixels). I have already configured the system t...
1
2,680
Drupal 8, AJAX to update one block from another
<p>I have two blocks on a page, side by side. On the right is a custom block with an empty div, class="js-view-dom-id-ccd-update". On the left is a view that lists titles as links from a content type ("centers"). When a user clicks on one of those links, I'd like the details for that record to display in the block on t...
1
1,308
How can I improve this Mailing Address SQL Server SELECT Statement?
<p>How can I format a Mailing Address so that I always push all non-null rows to the top? That is, I want to convert an address from the structure below to a mailing address.</p> <p>Here is the structure:</p> <pre><code>[Line1] [varchar](50) NULL, [Line2] [varchar](50) NULL, [Line3] [varchar](50) NULL, [City] [varch...
1
1,497
Tensorflow Estimator API save image summary in eval mode
<p>at the moment I try to train a autoencoder on a custom image dataset using the new Estimator API of Tensorflow.</p> <p>So far everything is working. The only problem I have is to save the input and output images as summary when the model is in evaluation mode. All image summaries I create in train mode are stored a...
1
1,293
Print text and images in C++ (WinAPI or QT)
<p>In a basic program, I need to know how to make a text display widget and image display that can both be changed to different strings and images on command. These will display on a basic GUI.</p> <p>Any specific help would be tremendously appreciated as I have been stuck on this for more than 10 weeks! Asking online...
1
3,878
itextSharp - Merging pdf files disables extended reader permissions
<p>I'm using Itextsharp v5.1 and created enabled reader pdf files. I wrote a c# class that fill the form and keep each individual pdf file extended reader. But, when I use this MergeFiles function here, it create a new Merged file NOT extended reader and I need your help with this please to turn it extended reader...</...
1
1,566
Excel-VBA - list controls of all userforms for ANY given workbook
<p><strong>Task</strong></p> <p>My goal is to list all controls of all UserForms for ANY given workbook. My code works for all workbooks within the workbooks collection <strong>other</strong> than the calling workbook (<code>ThisWorkBook</code>).</p> <p><strong>Problem</strong></p> <p>If I try to list all the userfo...
1
1,942
ngx-pagination click next page not working
<p>I've problem with pagination. When I try to click next page it does not work as expected. When I click on number to go next page it doesn't working either.</p> <p>I provided the code bellow and a <a href="https://stackblitz.com/edit/ngx-pagination-server-side-mockup-69bawa" rel="nofollow noreferrer">Demo</a> link f...
1
2,565
How to fix empty external IP from nginx ingress on k3s?
<p>I want use metallb and nginx ingress for my k3s cluster.</p> <p>Currently the external IP is <code>&lt;none&gt;</code></p> <pre><code> kubectl -n ingress-nginx get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE ingress-nginx-controller-admission ...
1
2,084
How to serve a tensorflow-module, specifically Universal Sentence Encoder?
<p>I have spent several hours trying to set up Tensorflow serving of the Tensorflow-hub module, "Universal Sentence Encoder." There is a similar question here:</p> <p><a href="https://stackoverflow.com/questions/50788080/how-to-make-the-tensorflow-hub-embeddings-servable-using-tensorflow-serving">How to make the tenso...
1
2,153
Unable to start activity ComponentInfo - Binary XML file line
<p>I am experiencing issues running my application on a physical device such as the Samsung Note 3 running on 4.4.2. For some odd reasons, the application works on the ace 2, as well as the emulator. To try and understand as to why it was not working on the note 3. I ran the application from eclipse through the device ...
1
7,057
A 32 bit processes cannot access modules of a 64 bit process
<p>I am trying to get the window under mouse, but, when I reach the code: Process.GetProcessById, I get this error:</p> <pre><code>A 32 bit processes cannot access modules of a 64 bit process. </code></pre> <p>Here is my code:</p> <pre><code>NativeMethods.POINT p; if (NativeMethods.GetCursorPos(out p)) ...
1
1,961
Geofence in the Background Windows Phone 8.1 (WinRT)
<h2>Issue</h2> <p>I'm trying to trigger a BackgroundTask when a Geofence Event (Enter / Exit) occurs in WP8.1 (WinRT). I've written a sample application to try to get it working, but can't seem to be able to do so.</p> <p>So far, these are the steps I've taken to try to get Geofences working in the background:</p> <...
1
2,213
c# lock statement performance
<p>Update - I have found the cause of <code>lock()</code> eating CPU cycles like crazy. I added this information after my original question. This all turned out to be a wall of text so:</p> <p><strong>TL;DR</strong> The c# built-in <code>lock()</code> mechanism will, under some circumstances, use an unusual amount of ...
1
1,056
Submodules in Verilog
<p>In Verilog, you can create a module simply with the module syntax. How do you create multiple modules and call one from the other? </p> <p>I have the following module that is my main module:</p> <pre><code>module Lab7Part1(SW, HEX0, HEX1, HEX2, HEX3); input [15:0] SW; output [7:0] HEX0; ou...
1
1,444
Panel data: dealing with lagging and binary dependent variable with plm
<p>I am attempting to run a pooled logistic regression with panel data and a binary dependent variable. Since I wanted to lag some of the variables, I used the plm package to create them. When I tried to do it other ways, I ran into problems. I can't use lag or embed, because it is panel data.</p> <pre><code>hybrid...
1
1,456
Unexpected response code 405 com.android.volley.ServerError
<p>I want to send form data to server. i m using volly library for that but this following code is showing bellow error.</p> <blockquote> <p>Unexpected response code 405 com.android.volley.ServerError</p> </blockquote> <p><strong>My code is :</strong></p> <pre><code>public class Wow extends AppCompatActivity { ...
1
1,455
.NET Core - solutions, frameworks, imports, runtimes
<p>I'm starting the process of reworking a framework set of libraries to use .NET Core. Thought I'd wait for RC2 and keen to get stuck in.</p> <p>I'm taking the opportunity to get up close and personal with the build system, configs, code everything from scratch to get a deeper understanding and have no unnecessary b...
1
1,389
MySQL: Union, Count, and Group By
<pre><code>( SELECT root_tags.tag_id, root_tags.tag_name, COUNT( root_tagged.pg_id ) FROM root_tags LEFT JOIN root_tagged ON ( root_tagged.tag_id = root_tags.tag_id ) LEFT JOIN root_pages ON ( root_pages.pg_id = root_tagged.pg_id ) LEFT JOIN root_granted ON ( root_granted.pg_id = root_tagged.pg_id ) WHERE root_page...
1
1,076
Get closest parent element by class name in React
<p>Using React, how do I refer to parent element's closest element with certain classname?</p> <p>Code below:</p> <pre><code>const Skill = props =&gt; ( &lt;div className="skill-card"&gt; &lt;div className="skill-header"&gt; &lt;div className="skill-header-text"&gt; &lt;div className="skill-he...
1
1,231
Implementing a cron type scheduler in clojure
<p>I'm looking for any way for clojure that can trigger an event at a given time,</p> <p>For example: I want a particular process to start at 9:30am and then I can trigger another process to start running half an hour later etc.</p> <p>Thanks in advance!</p> <hr> <h3>Updated 2:</h3> <p>Thanks @arthur-ulfeoldt and ...
1
1,172
GCM IOS NotRegistered issue
<p>I've been using GCM just fine for a long time already. One day it suddenly broke. The problem is that the first push I send I get success status back but the app doesn't receive any push whatsoever. The second push I send gets failure with an NotRegistered error. I reinstall the app: success(no notification received...
1
2,142
Importing Android Studio project to Intellij wrong gradle version
<p>I have a little problem with importing Android Studio Project to Intellij Idea 14.0.2 I'm using wrapper of version of gradle. I'm co-working on a project with my friend but he's working on Android Studio and i prefer Intellij Idea (i know it's propably almost the same, but i don't like having bunch of IDE's doing sa...
1
3,349
Video Hover Effect
<p>I am trying to make a video hover effect on an image which is when on mouse over it should pop up a video just like the one in this <a href="http://www.videocopilot.net/tutorials/." rel="nofollow">website</a></p> <p>I have been trying to find a solution to this problem for the last couple of months.</p> <p>Does an...
1
1,378
Pixel interpolation(binning?)
<p>I am trying to write up a pixel interpolation(binning?) algorithm (I want to, for example, take four pixels and take their average and produce that average as a new pixel). I've had success with stride tricks to speed up the "partitioning" process, but the actual calculation is really slow. For a 256x512 16-bit gray...
1
1,178
Aligning HTML table header with table data rows
<p>I have some HTML code that generates an HTML table with header and data rows. The header columns do not line up with the data columns.</p> <p>I got this code from an example I found online. I want the header cell widths to match the data cell widths of the table. </p> <p>Here is the below code is jsfiddle: <a hr...
1
4,218
jQuery scrollTop a little jumpy
<p>I am building a site with vertical scroll.</p> <p>I have implemented the jquery below:</p> <pre><code>&lt;script type="text/javascript"&gt; $("document").ready(function() { $('.homebutton').click(function(){ $('html, body').animate({ scrollTop: $("#home...
1
3,081
Paperclip: Content Type Spoof trying to upload .gpx files
<p>Apologies if this has been answered and I failed to find it. Any direction would be greatly appreciated.</p> <p>Using Rails 4.1.4, Paperclip 4.2.0 and Simple Form 3.0.2.</p> <p>After <code>Submit</code>, I get <code>has an extension that does not match its contents</code> output in the form error message. </p> <p...
1
1,151
How to pass Id from One View to Another MVC4
<p><strong>Problem:</strong> I have List of Categories with SubCategories, so when i click on SubCategory item it redirect me to List of Entries. There along the list it has Create ActionLink. So the problem is passing the SubCategoryId when I click SubCategoryItem for the Create ActionLink. Without the CreateActionLi...
1
1,690
How to deploy WAR using Netbeans 7.3.1 + JBoss AS7
<p>This is an existing project that builds and deploys just fine using Intellij + AS7. I want to build and deploy using Netbeans 7.3.1 so I created a new Maven project in NetBeans, selecting the "import the project using the Maven pom.xml files" option. NetBeans recognized the modules and used Maven to build the proj...
1
2,263
Unhandled exception in anjular.min.js
<p>I am using angularjs to make a MVC web application...But it gives an error when i'm opening it on internet explorer... But I don't receive an error in other browsers and views are not loading either when click on the links.</p> <p><strong>This is the error received in Internet Explorer</strong></p> <pre><code>Unha...
1
1,307
Installing therubyracer at heroku, failed to build gem native extension
<p>I keep having error uploading the Rails app to Heroku</p> <pre><code>Installing therubyracer (0.11.0) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for main() in -lpthread... yes checking for v8.h... no **...
1
1,379
cl.exe' failed: No such file or directory when installing Scrapy
<p>I'm trying to install Scrapy framework. After installing all dependent libraries and start installing setup.py file, I get this error message: "cl.exe' failed: No such file or directory" I'm working with python 3.6, Windows 7 64 bits. Here is the full error message:</p> <pre><code> copying src\twisted\trial\_dis...
1
6,555
WPF Data-Bound Datagrid Filtering / Searching
<p>I have a WPF application which uses a (currently) local database to act as a binding source. Using the Visual Studio 2010 tools I have a LINQ-SQL model which acts as the Datacontext for most forms.</p> <p>What I have is a UserControl with a TextBox and Datagrid. The datagrid ItemSource is set upon the UserControl.L...
1
1,682
Android Studio Gradle assembleDebug error with Google dependencies
<p>I'm trying to debug my Android application but I'm getting the following error from gradlew assembleDebug:</p> <pre><code>AGPBI: {"kind":"simple","text":"UNEXPECTED TOP-LEVEL EXCEPTION:","sources":[{}]} AGPBI: {"kind":"simple","text":"com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/p...
1
1,611
Get row data from JQgrid button
<p>Here is how I fill the JQgrid:</p> <pre><code>jQuery("#responseMessages").jqGrid( 'addRowData', i+1, { distance:messages[i].distance, age:m...
1
2,499
Change color svg file using css
<p>I using <a href="https://github.com/seiyable/vue-simple-svg" rel="nofollow noreferrer">vue-simple-svg</a> package and Vue. I sending icon and color to component:</p> <pre><code>&lt;IconComponent name="comment.svg" color="#ffffff" /&gt; </code></pre> <p>In <code>IconComponent</code> I get props:</p> <pre><code>&lt...
1
1,688
How to have dots at pager for my Recycler view?
<p>I have to assign dots at pager to my Recycler view . I already obtained a rectangular pager, but I need to have circles. How can I modify my source to obtain what I need? I've tried some web solutions but no one works for me, and I know that I can obtain this with ViewPager but I need to have this with RecyclerView ...
1
1,995
AlertDialog disappears when rotating the screen
<p>In my activity I have an AlertDialog that shows up when a button is pressed. I noticed that, when the screen is rotated, it crashed the app. To solve this problem I added this line of code in the <code>onCreateDialog()</code> method: <code>setRetainInstance(true);</code>.</p> <p>After that the activity doesn't cras...
1
1,735
ListView with Viewpager as a header inside TabPageIndicator
<p>so I made a Fragment Activity that contains Viewpager with TabPageIndicator to swipe from fragment to another and in each fragment I made a ListView that contains a ViewPager as a Header view the problem is the viewPager doesn't swipe even if I disbale the main viewPager swipping </p> <p>I tried same thing with Act...
1
1,801
Combining two Fortran subroutines for use with ABAQUS
<p>I have two small user-defined subroutines that I have implemented in the finite element software ABAQUS (they define two special types (JTYPE=1,2) of multi-point constraint (MPC) in my finite element model). These subroutines are written in FORTRAN 66/77 as required and are compiled at runtime by ABAQUS using the In...
1
2,926
Sluggish render VueJS page with 2000-3000 items
<p>I have an administrator view which can display a list of users. Complete list is about 3000 entries. I have pagination enabled by default to 100 users/page, but the admin has the option to display all of them at once. When 100 users are displayed, everything is fine, but when all 3k are displayed the page becomes sl...
1
1,116
long SVG Asset file error : R is not a valid verb. Failure occurred at position 2 of path: STRING_TOO_LARGE
<p>I'm having some problems with Android Studio at the moment because I recently started using "Vector Assets". I've done absolutely everything necessary to display them correctly in my application (using the <code>app:srcCompat=""</code> in the xml, <code>android {defaultConfig {vectorDrawables.useSupportLibrary true}...
1
2,981
how to solve FATAL EXCEPTION: pool-4-thread-1 error?
<p>I have an app that work very well but some times when I add some class and code to my program my app crashes. In my <code>logcat</code> error is for this:</p> <pre><code>FATAL EXCEPTION: pool-4-thread-1 </code></pre> <p>and in my code is this:</p> <pre><code>reader = new BufferedReader(new InputStreamReader(httpU...
1
1,054
Python Ctypes Read/WriteProcessMemory() - Error 5/998 Help!
<p>Please don't get scared but the following code, if you are familiar with ctypes or C it should be easy to read.</p> <p>I have been trying to get my ReadProcessMemory() and WriteProcessMemory() functions to be working for so long and have tried almost every possibility but the right one.</p> <p>It launches the targ...
1
3,170
Format Nullable DataTime in a WPF DataGrid
<p>In a WPF application, i display data in a datagrid. In this datagrid there is some DateTime value.</p> <p>Where DateTime are not getting set, it displays 01/01/0001, it's ok because DateTime are not nullable.</p> <p>In this case, i would like to display " - " .</p> <p>I think i need to use a converter.</p> <p><s...
1
1,095
how to release memory created by CGContextDrawPDFPage
<p>This is ipad magazine application. We need to read PDF and convert to PNG image for thumnail. After reading PDF before conversion, which is calling CGContextDrawPDFPage, the memory goes up quickly and never free up till crash. I tried in many ways but it does not work. I really appreciate if anyone could help.</p> ...
1
1,088
React JS Unexpected end of JSON input error when binding data from an API
<p>I have a select-dropdown-list, it's data is generated from a API/json file. The json resembles the following:</p> <pre><code>[ { "id": 444, "ggg_progid": "0000-111-222-333-44444", "clientName": "client 1- aaa-bb-01-05 - AA" } ] </code></pre> <p>...but I get the error, Unhandled Reje...
1
1,190
Getting data from table in a modal by checkbox
<p>I'm having trouble inserting data from a table in a modal div into the table element where I want to display the content based on the data selected by the checkbox when I click the "Add" button.</p> <p>Here is my code:</p> <p>Modal's table code:</p> <hr> <pre><code>&lt;div class="row"&gt; &lt;div class="moda...
1
2,605
Powershell using file? "being used by another process"
<p>I have this powershell script running. The first time it runs it runs flawlessly, the second time it runs i get the error that the .csv cannont be access "because it is being used by another process. Any idea which part of the script is "holding onto" the file and how i can make it let it go at the end?</p> <pre><c...
1
1,180
android - prevent duplicate insert data in SQLite
<p>I just learned to use sqlite on android. how to prevent duplicate data when it will be inserted .. so, when there is same data entry, it will overwrite the data?</p> <p>here I attach the code snippet:</p> <pre><code>@Override public void onCreate(SQLiteDatabase db) { String CREATE_FAVORIT_TABLE = "CREA...
1
1,164
Using Tkinter Text indexing expressions to delete last line of text
<p>I have a text widget which displays information as my program runs. I want to add functionality which will allow me to overwrite the last line of the text widget with a new line. My code looks like this:</p> <pre><code>class TextRedirector(object): def __init__(self, text_widget): self.text_widget = text_w...
1
1,773
Cannot concatenate more than 3 elements in an expression for ggplot2's geom_text
<p>I have a data frame for which I'm computing a linear model and would like to include the correlation coefficient and its significance using geom_text.</p> <pre><code>structure(list(ppno = c(1L, 1L, 1L, 10L, 10L, 10L, 2L, 2L, 2L, 3L, 3L, 3L, 4L, 4L, 4L, 5L, 5L, 5L, 6L, 6L, 6L, 7L, 7L, 7L, 8L, 8L, 8L, 9L, 9L, 9L), ...
1
2,942
Colorbox overflow is STILL set to hidden? (Trying to append)
<p>I'm trying to append a div to the colorbox modal, and what I did was that I set the css settings to 'overflow: visible", and I also set changed every string in jquery.colorbox.js from hidden to visible, however this is what I have in firebug:</p> <pre><code>&lt;div id="colorbox" class="" style="padding-bottom: 0px;...
1
1,114
How to make a primefaces dynamic toolbar
<p>I'm working with PrimeFaces 3.1.1 since last week and it seems to be an excellent visual component framework. I'm doing a migration from Richfaces and trying to get everything working only with Prime and JSF2 (2.1.6 version). </p> <p>My problem comes with a dynamic toolbar I have to implement. Some of the operation...
1
1,355
Lightweight version control for small projects (prototypes, demos, and one-offs)
<p><strong>Background</strong></p> <p>I work on a lot of small projects (prototypes, demos, one-offs, etc.). They are mostly coded in Visual Studio (WPF or ASP.NET with code written in C#). Usually, I am the only coder. Occasionally, I work with one other person. The projects come and go, usually in a matter of months...
1
1,335
Uncaught TypeError: $(...).jqGrid is not a function on subGridRowExpanded
<p>I'm trying to load data into a <code>jqGrid</code> sub grid (subgrid as grid) and get the above error on this line:</p> <pre><code>$("#" + subgrid_table_id).jqGrid </code></pre> <p>Please help - thanks.</p> <p>My JS code:</p> <pre><code>&lt;link rel="stylesheet" href="~/Styles/ui.jqgrid-bootstrap.css" /&gt; &lt;...
1
2,515
performance issue MySQL 5.7
<p>I've migrated my MySQL Database from 5.6 to version 5.7. Now I got a performance issue.</p> <p>Specific statement are executed in both versions and I noticed that 5.7 is significant slower. Especially with large amount of Data. </p> <p>Even a simple select statement is much slower</p> <pre><code>5.6: 2,948 sec 5....
1
5,498
Filter table with checkboxes with React & Material UI
<p>I'm building a filter options with checkboxes for a data table in a project using <a href="https://en.reactjs.org/" rel="nofollow noreferrer">React</a> and <a href="https://material-ui.com/" rel="nofollow noreferrer">Material-UI</a>.</p> <ul> <li><p>Is there a custom solution using Material-UI?</p> </li> <li><p>If n...
1
4,153
ORACLE Query with ORDER BY and UNION
<p>I have the following Query which works great!</p> <p>The only thing is that I need the result set in DESC Order and the following ORDER BY Clause that I have appended to the end of my Query generates the following Oracle Error:</p> <p>ORA-00933: SQL command not properly ended 00933. 00000 - "SQL command not prope...
1
1,453
Logstash Grok pattern for session id and null values
<p>Question 1 - </p> <p>56dd573d.5edd this is my session id, i have grok filter like</p> <p><code>%{WORD:session_id}.%{WORD:session_id}</code> - this will read the session id and output will look like this</p> <pre><code> "session_id": [ [ "56dd573d", "5edd" ] ] </code></pre> <p>Is there any w...
1
1,178
NoSuchMethod error in flume with hdfs as sink
<p>I am trying to configure flume with HDFS as sink. </p> <p>this is my flume.conf file:</p> <pre><code>agent1.channels.ch1.type = memory agent1.sources.avro-source1.channels = ch1 agent1.sources.avro-source1.type = avro agent1.sources.avro-source1.bind = 0.0.0.0 agent1.sources.avro-source1.port = 41414 agent1.sink...
1
6,970
Pop fragment from backstack
<p>I am trying to create an activity which holds two fragments. One fragment is displayed when the activity starts and the other one is displayed when the user press a button in the toolbar.</p> <p>In the second fragment I want to add back navigation and when the user press the back button the second fragment should c...
1
2,454
How to make authenticated requests in mocha test using supertest and agent?
<p>I'm having trouble getting my authenticated tests to run (server returns <code>401 Unauthenticated</code>) after logging in.</p> <pre><code>var should = require('should'), _ = require('lodash'), app = require('../../../server'), mongoose = require('mongoose'), User = mongoose.model('User'), requ...
1
1,232
storing cookies and retrieving them in the html form values using php
<p>hi friends i have created a form as below and tried to set cookies for every-field, i succeed in setting cookies for the input text boxes, but i failed to do the same for textarea fields and for drop-down list as well as for check-boxes. The form is as below.... </p> <pre><code>&lt;input name="date" type="text" ...
1
2,804
Sharepoint 2010 wcf service. call method with jquery
<p>i have wcf service hosed in sharepoint application. But when i try to call method from jquery it always fails.</p> <p>I have tested service with such string:</p> <pre><code>ttp://localhost/_vti_bin/webservices/wcfservice.svc/**mex** </code></pre> <p>and have normal response.</p> <p>WCF test client have response ...
1
2,223
Segmentation fault while iterating a std::set<std::string> in C++
<p>This portion of my code (for <a href="https://softwareengineering.stackexchange.com/questions/115576/designing-subclasses-for-an-abstract-base-class-in-c">this project</a>) gives me a segmentation fault. The source code is available <a href="https://github.com/nikhilbhardwaj/OOPS-Project/tree/package_manager" rel="n...
1
1,258
WebApi serialization for DateTime - how to deserialize?
<p>This code:</p> <pre><code>public class PhotoDescriptor { public DateTime DateCreatedUtc { get; set; } } public class PhotosController : ApiController { // GET api/photos public IEnumerable&lt;PhotoDescriptor&gt; GetListOfPhotos() { return new PhotoDescriptor[] { ...
1
1,174