title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Exporting table to multipage PDF file using kendo exportPDF | <p>I need to export large table to pdf file using kendo pdfExport. This code I have so far:</p>
<p>html:</p>
<pre><code><div style="position:relative;" id="temp-container">
<div style="position:absolute;left:0px;top:50px;width:100%;background:url('http://127.0.0.1:8000/images/arrow1.png') no-repeat;heigh... | 1 | 4,700 |
LdrLoadDll problem | <p>I am trying to code an alternative to LoadLibrary function, based on the idea of calling the function LdrLoadDll from ntdll.
This function needs as a parameter the dll file to load, in a UNICODE_STRING format.
I really can't get what I am doing wrong here (string seems to be correctly initialized), but when LdrLoadD... | 1 | 1,091 |
protractor cannot click an element but able to getText | <p>I have a search results page where I'm trying to click on the pagination buttons. I'm able to locate page elements via repeater. I'm also able to get text of the individual page element. But when I click on the page button, the results are different depending on the click method I use. I tried all kinds of click() m... | 1 | 1,499 |
Hadoop: strange NullPointer Exception running in local mode | <p>I just started to study Hadoop and I have extracted an example from a book. So I have created a MapReducer to run locally that extracts temperatures from NCDC free data files. This is a sample of data:</p>
<pre><code>0143023780999992012010100004+61450+017167FM-12+002799999V0209999C...cut...;
</code></pre>
<p>Every... | 1 | 2,913 |
Vuforia -- how to only play one video when an image is recognized | <p>I have an AR application that has 4 image targets, and each image target has a corresponding video that is played on top of it when it is recognized. The problem is that even though the correct animation is displayed whenever the image is recognized, all of the other animations are played as well, even though they a... | 1 | 1,374 |
Break UL tag after 'n' times in while-loop | <p>I'm currently in developing module shop for the company I work for and there is a little problem. While extracting records from the table, I want for every third data record to close HTML "UL" tag. </p>
<p>This is what I currently have:</p>
<pre><code><?php
$selektKat = "SELECT * FROM `proizvodi` WHERE `kate... | 1 | 1,051 |
Xcode Crashes with Assertion Failure in SourceCache | <p>I am getting following error when I try to edit any file in my project. </p>
<pre><code>ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-943/Framework/Classes/Model/SourceControl/IDESourceControlTreeItem.m:771
Details: (((IDESourceControlWorkingTree *)self.sourceTree).origin) should not be nil.
Object... | 1 | 2,832 |
Java - Binary Search Tree has a iterator() method, difficulty with implementing | <p>I'm trying to write an implementation of iterator so that I can call it
within my BST class, under iterator() method.</p>
<p>My solution (not sure if it would work correctly) is to use a stack or a queue to
store the nodes of the BST. Trouble is, my Iterator Implementation class can't recognise my
BST nodes when... | 1 | 1,090 |
Django - Create a dropdown list from database | <p>I'm very new to Django and I would like to create a drop down box using distinct value of a column in a database:</p>
<p>models.py:</p>
<pre><code>from django.db import models
class SensorsTable(models.Model):
sensor_uuid = models.CharField(primary_key=True, max_length=32)
sensor_desc = models.CharField(m... | 1 | 1,128 |
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'where clause' (SQL: select * from `roles` where `name` = user limit 1) | <p>I create a new user by fill in all the fields, then when i submit all the new data for user are registred with the correct data in DB but i'm not redirect to index page;I am getting this error:</p>
<p>SQLSTATE[42S22]: Column not found: 1054 Unknown column 'name' in 'where clause' (SQL: select * from <code>roles</co... | 1 | 1,645 |
How do I integrate the cognito hosted UI into a react app? | <p>I am creating a react app - using create-react-app and amplify - and I am trying to set up authentication. I don't seem to be able to handle the federated logins using the hosted UI.</p>
<p>There are some pages which require no authentication to reach and then some which require a user to be logged in. I would like... | 1 | 2,226 |
Wildfly: org.xnio.channels.FixedLengthOverflowException | <p>Until now we used JBoss AS 7.1 which has a tomcat as front-server. We now upgraded to Wildfly (JBoss 8.0) which ships with undertow as a tomcat replacement.</p>
<p>For our filedownloads, we are reading the input stream of the file, and writing this to the external context's response output stream. This worked well ... | 1 | 1,484 |
Why is kivy not working in Visual Studio code? | <p>I was writing a piece of code with kivy with all the packages installed.</p>
<p>When I run the code it still shows "No module named kivy".</p>
<p>The modules were installed from both the command prompt and the VS code terminal though this code had worked fine just a few days ago. Today i opened it and it s... | 1 | 1,523 |
Gradle connectedAndroidTest fails with "No tests found." but outputs test results | <p>Recently we started to add tests to our Android app project. We started of using Robolectric but have recently had to pull that out and just use the plain tests instead due to an issue we encountered with Couchbase. Before adding Couchbase our tests worked perfectly well when running with Roblectric.</p>
<p>From a ... | 1 | 2,586 |
ImportError: No module named couchbase._libcouchbase | <p>This only happens for me in Travis under the pypy build.
Here's the exact error string:</p>
<pre><code>Traceback (most recent call last):
File "app_main.py", line 75, in run_toplevel
File "app_main.py", line 581, in run_it
File "<string>", line 1, in <module>
File "tests/test_pycouchbase.py", l... | 1 | 1,537 |
jquery autocomplete display the output string | <p>I want to have the script display each item on a list of value from a string of comma delimited set.</p>
<p>ex. "one,two,three,four"</p>
<p>On the autocomplete drop down, it should show:</p>
<p>one
two
three
four</p>
<p>However, the current code, show a list of only single char. There should be an easy way to s... | 1 | 1,157 |
Broadcasting and receiving extra doubles | <p>I'm attempting to broadcast extras in an am broadcast in adb shell. In my BroadcastReceiver in android, I'm subscribed to the broadcast and pull the extras out of the Bundle.</p>
<p>My trouble lies with doubles. I assumed that a broadcast could include a double since the <code>Bundle</code> class has a <code>getDou... | 1 | 1,054 |
Dozer issue: No read or write method found for field (status) in class | <p>Here is my mapping in the dozermap.xml file: </p>
<pre><code><mapping type="one-way">
<class-a>com.models.ClassA</class-a>
<class-b>com.models.ClassB</class-b>
<field custom-converter="com.models.helpers.CustomConverterDemo">
<a>status</a&... | 1 | 1,048 |
Flink Connection refused: localhost/127.0.0.1:8081 | <p>I am getting the following error </p>
<blockquote>
<p>org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:8081</p>
</blockquote>
<p>while trying to stream data with Flink. My code was functioning fine about a month ago and now I am ge... | 1 | 2,745 |
Kivy Buildozer VM sh.ErrorReturnCode_127 error | <p>I am trying to build a simple Python program to an APK with Buildozer on the Kivy Virtual Machine. Every time I run <code>buildozer android debug</code>, I get the following error </p>
<pre><code>pid 2134:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
... | 1 | 1,665 |
Why these tags are greyed out in firefox html source viewer? | <p><a href="https://i.stack.imgur.com/6TPHT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6TPHT.png" alt="enter image description here"></a></p>
<p>I want to use beautifulsoup to get all these red-circle-marked li tags, but I can only get the first li tag,which is <code><li class="image item it... | 1 | 4,565 |
Spring Boot and Angular giving Http failure response for (unknown url): 0 Unknown Error | <p>I am learning Spring boot with Angular, and I am trying to get my first app up and running reading the following blogs:</p>
<p><a href="http://mydevgeek.com/angular-4-crud-application-with-spring-boot-rest-service-part-2/" rel="noreferrer">http://mydevgeek.com/angular-4-crud-application-with-spring-boot-rest-servic... | 1 | 3,185 |
org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class | <p>I am trying to use onetomany mapping for product specifications where I copied similar working code from descriptions. I am providing all my code.</p>
<pre><code>Caused by: javax.persistence.PersistenceException: [PersistenceUnit: sm-unit] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Config... | 1 | 1,060 |
401 exception in java code | <p>I am working on drools and my following code </p>
<pre><code>import org.drools.RuleBase;
import org.drools.agent.RuleAgent;
import org.drools.definition.type.FactType;
public class MortgageApplicationTest {
/**
* @param args
* @throws IllegalAccessException
* @throws InstantiationException
... | 1 | 1,387 |
Geographical heat map of a custom property in R with ggmap | <p>The goal is to build something like
<a href="http://rentheatmap.com/sanfrancisco.html" rel="nofollow noreferrer">http://rentheatmap.com/sanfrancisco.html</a></p>
<p>I got map with ggmap and able to plot points on top of it. </p>
<pre><code>library('ggmap')
map <- get_map(location=c(lon=20.46667, lat=44.81667),... | 1 | 1,571 |
How to enable Wcf help page with basicHttpBinding (SOAP, not REST) | <p>I am trying to enable <strong><em>Wcf Service</em></strong> Help Page in my Wcf service, but no attempt worked, no avaiable help page with service's methods descriptions under link <code><.....{servicename}.svc/help></code></p>
<p>I tried any hint I managed to find, without result.</p>
<p>It is possible at a... | 1 | 1,077 |
How to efficiently compute the heat map of two Gaussian distribution in Python? | <p>I am trying to produce a heat map where the pixel values are governed by two independent 2D Gaussian distributions. Let them be Kernel1 (muX1, muY1, sigmaX1, sigmaY1) and Kernel2 (muX2, muY2, sigmaX2, sigmaY2) respectively. To be more specific, the length of each kernel is three times its standard deviation. The fir... | 1 | 1,213 |
Drawing bezier curve in Java | <p>I need to create a simple Java program, that draws a bezier curve pixel by pixel through any amount of points. At the moment, everything seems to be ok except that the curve always ends at x=0 y=0 coordinates.</p>
<p>Screenshot 1</p>
<p><a href="https://i.stack.imgur.com/3Wcli.png" rel="nofollow noreferrer"><img s... | 1 | 1,206 |
Clearing form fields after invalidation JSF | <p>Ok i have the following problem: In my web app i have the CRUD all one page via dialogs controls of Primefaces. In the new dialog i have some validators. For example: when a user does not fill the necessary fields for form submission obviously the form doesn't submit. But when i close de New dialog and open it up ag... | 1 | 6,878 |
Rotating the viewing platform in Java3d | <p>The following code puts a cube at (0, 0, 0) and another at (0, .5, .5) and each cube is (.5, .5, .5) in dimension. I'm trying to rotate the view that the screen gets to one like this <img src="https://i.stack.imgur.com/VJUPt.png" alt="good"> but instead I get this view <img src="https://i.stack.imgur.com/3fhQ2.jpg" ... | 1 | 1,173 |
Problem with Google Chrome and Javascript. Guru needed! | <p>i have a strange problem <strong>only in Chrome</strong> using an <code>iframe</code> but working in all others common browser.</p>
<p>the problem: If i type in the IFRAME and then press the button to send, it work fine, the focus back to the IFRAME and the cursor BLINK.</p>
<p>But if i type and then press ENTER t... | 1 | 1,192 |
As3 How to flip a movieclip to face movement direction? | <p>Working on a maze game. When the leftkey is pressed the movieclip (char) should turn 90 degrees to the left. </p>
<p>Correct me if i'm wrong but I thought I could use this code;</p>
<pre><code>char.scaleX *= -1;
</code></pre>
<p>However, the most important thing is that the character doesnt go through the walls o... | 1 | 1,462 |
Clear example/documentation of how to use Google login for my web app | <p>I maintain an old web app written in C++ & javascript. I have been asked to add Facebook, Google and Twitter login authentication.</p>
<p>The Facebook bit went well. I found some simple javascript code on Facebook's developer site <a href="http://developers.facebook.com/docs/reference/javascript/" rel="nofollow... | 1 | 1,247 |
Xcode - Include of non-modular header inside framework module error when archiving project | <p>I'm currently trying to archive my project to finally update my app on the app store when I came across this issue. </p>
<p>I'm getting this error on multiple files in the <a href="https://github.com/renebigot/XlsxReaderWriter" rel="nofollow noreferrer">XlsxReaderWriter</a> framework.</p>
<p><code>Include of non-m... | 1 | 1,142 |
Is there a way to generate Urls with WebAPI? | <p><strong>POST EDITED BELOW</strong></p>
<p>We can't figure out why <code>UrlHelper</code> is returning null strings when used from the WebApi controller's context.</p>
<p>We've done the neccesary debugging but we can't find out why this happens, the RouteData has the routes in it but it doesn't seem to be working.<... | 1 | 2,888 |
Dockerrun.aws.json file for private dockerhub image | <p>I'm trying to deploy a rails application built with Docker to Elastic Beanstalk's multi-container service. My Dockerrun.aws.json currently looks like:</p>
<pre><code>{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "myapp",
"host": {
"sourcePath": "/var/app/current"
}
},
... | 1 | 1,400 |
Unable to to create media player with java.io.IOException: setDataSourceFD failed.: status=0x80000000 in 2.3.3 android tablet | <blockquote>
<p>hello, i am new in android please help me, my audio file format is correct .mp4 and mp3, then also sometime its give me this error java.io.IOException: setDataSourceFD failed.: status=0x80000000 or sometime java.lang.NullPointerException.</p>
</blockquote>
<pre><code>public class Music implements OnC... | 1 | 2,605 |
check if username is available or taken | <p>I have a simple application in ASP.NET C# and using MS SQL Server 2008. I need to register all visitor users to my site. For that users will have to fill a form.
The problem is that as the user enters the <strong>Desired Username</strong> field, I should be able to check in background whether another user has alread... | 1 | 1,966 |
Using backport-android-bluetooth on Android 1.6 | <p>I'm trying to write an application using Bluetooth on Android 1.6. Since it's not officially supported, I found the backport of android.bluetooth API ( <a href="http://code.google.com/p/backport-android-bluetooth" rel="nofollow noreferrer">http://code.google.com/p/backport-android-bluetooth</a> ). But when I deploy ... | 1 | 1,428 |
How to Check Current Password And (If Correct) Update Password Using Passport.js Local Strategy | <p>I need to write commonplace code to check a Current User Password value submitted via form to see if it matches the existing password in the database, and if so, update the password to a New Password value that was submitted via the same form. </p>
<p>Yet, I can't find any good examples of how to do this using Pas... | 1 | 1,166 |
JPA/hibernate - Cannot add or update a child row: a foreign key constraint fails. Can not insert null | <p>I'am trying to implement manyToMany relationship. It works fine when getting data from database into entities but fails when trying to insert new value into join table.
I have three tables: job, job_prozedur and prozedur. Join table contains foreign keys to parent tables (job and prozedur) and few extra columns.</p>... | 1 | 3,075 |
How to count number of nodes in XSLT with various conditions | <p>I have XML, based on which I am creating a text file output. In the trailer record I have to count the total number of records in the output file. The logic used to create output file from XML is if the <code>PreTaxAmt</code>,or <code>MatchAmt</code>, or <code>RothAmt</code> for each report entry has a value greater... | 1 | 1,811 |
How to reference external hibernate.cfg.xml from persistence.xml | <p>I have a JAR file that needs to be deployed into multiple environments, each with their own database connection parameters. Rightly or wrongly, I've been requested to make those database connection parameters external to the JAR. I've seen examples where persistence.xml can reference an external hibernate.cfg.xml ... | 1 | 1,243 |
ProGuard Warning: can't write resource (Duplicate zip entry) | <p>First of all I know that this question already exists in stackoverflow, but I can't solve it, although I tried suggestions like not using -injar, using packagingOptions, etc</p>
<p>I know the release is going to work, but I like clean builds. When I generate signed apks. After a project clean, I get those errors:</... | 1 | 1,828 |
Controlling manual alignment in 'Beyond Compare's 3-way merge | <p>When doing a 3-way merge in 'Beyond Compare', we can get the following misalignment due to code similarity (The X's are the deleted code segments, and only two files are shown):</p>
<pre><code>/* XXXXXXXXXXXXXXXXX
somefunc() somefunc() <---2
{ {... | 1 | 1,599 |
jQuery Grid error on 2nd filter: Uncaught TypeError: Cannot read property 'value' of undefined | <p>I'm using jQWidgets v3.8.0 (2015-Apr) version to take some JSON from my database and display it. However, when I filter for example <code>role_id</code> it works fine. If I filter the same column for the 2nd time, I get this error:</p>
<pre><code>Uncaught TypeError: Cannot read property 'value' of undefined
a.exten... | 1 | 4,134 |
Puppeteer + AWS Lambda - Could not find browser revision | <p>I have been trying to get puppeteer working on AWS Lambda, but am running into an error. The message I receive is:</p>
<p><strong>"error": "Could not find browser revision 782078. Run "PUPPETEER_PRODUCT=firefox npm install" or "PUPPETEER_PRODUCT=firefox yarn install" to download a ... | 1 | 1,248 |
Undefined method 'default_content_type=' in ActionMailer in Rails 3.2.1 | <p>I added a system on my project to reset a user's password and send it to him via email in case he forgot it. It was working fine yesterday(when I implemented it). When I tried to fire up the server today, I got the following error.</p>
<pre><code>=> Booting WEBrick
=> Rails 3.2.1 application starting in devel... | 1 | 1,481 |
java.lang.AssertionError thrown when using "maven-compiler-plugin" | <p>This is a follow up question of my <a href="https://stackoverflow.com/questions/34292102/jspc-maven-plugin-not-executed">earlier question</a>. Now, I have the plugin running, but I don't see any result in <code>target/jsp-source</code>. Here's what's in pom.xml</p>
<pre><code><build>
<plugins>
... | 1 | 2,204 |
Fullcalendar not showing data | <p>I'm still a new programmer, and I have a problem getting this piece of code to work (that I got from <a href="http://developer-paradize.blogspot.com/2013/06/jquery-fullcalendar-integration-with.html" rel="nofollow noreferrer">here</a>). It uses MySQL to store the data. I would like to understand all the various part... | 1 | 3,675 |
$.ajax post array as Json to PHP. $_POST = empty | <p>Ok, I spend many time on this, I don't get what I'm doing wrong. </p>
<p><strong>It seems impossible to get the data in the PHP file</strong>.</p>
<ol>
<li>First I call many times "copy" to fill the "result" array.</li>
<li>Then, I call the <code>$.ajax</code> method</li>
<li>In the process.php $_POST is empty</li... | 1 | 1,163 |
Appending new data to an existing JSON file | <p>I have searched high and low, and far and wide for a solution to this, and have spent the last few weeks trying to implement my own solution, but I just can't come up with anything.</p>
<p>I would greatly appreciate any help at all!</p>
<p>I have a file, which looks like, (file.json):</p>
<pre><code>{
"Expense"... | 1 | 1,380 |
Not able to reset the form with mat chips and mat auto-complete - Angular Reactive forms | <p>I'm using material design for creating a form where I'm using input field with mat-chips and mat-autocomplete, but when I tried to reset the form using form.reset(); it's not working; </p>
<p>HTML</p>
<pre><code> <mat-form-field class="demo-chip-list">
<mat-chip-list #chipList2>
<mat-chip *ngFor... | 1 | 1,027 |
Using pill navigation for twitter Bootstrap | <p>I'm trying to use Twitter Bootstrap's pill navigation, but it's not working properly.</p>
<p>I do have the "active" class added to my tab-content. However, that's all that happens – I don't actually see any change in the content whatsoever. All the content is simply displayed sequentially, and not wrapped into tab ... | 1 | 1,695 |
Adding a key-value pair to an object inside loop using React useState hook | <p>I'm trying to add a key-value pair to an object using <code>useState</code> inside <code>map</code> function. However, the spread operation in <code>setContainer({...container, [data.pk]: data.name});</code> seems to be ineffective.</p>
<p>The code snippet below exactly illustrates the problem that I'm trying to sol... | 1 | 1,584 |
Arduino module esp8266 returns bad request | <p>I am testing the wifi module esp8266 with my arduino uno.
I made it work with direct connection RX/TX and through softwareserial.</p>
<p>This is my code:</p>
<pre><code>#include <SoftwareSerial.h>
SoftwareSerial esp8266(3, 2); // RX | TX
#define DEBUG true
int ERROR_PIN = 7;
int OK_PIN = 6;
char serialbuf... | 1 | 2,192 |
How to extract a geometry from PostGIS using a view and then add it to a leaflet map in a template using Django | <p>I want to extract polygon geometry data from a PostGIS database using python within a view and add it to my leaflet map within a template.
The easiest way seemed to be to extract the data and convert it to GeoJSON using the postgis function ST_AsGeoJSON in my Django view and then render it to the template as context... | 1 | 2,411 |
CUDA:cudaDeviceSynchronize return error code 30 | <p>The Code below is about Sha-1 algorithm.</p>
<p>There is a big Loop in kernel(HashRounds=0x40000,262144 times).
Now the situation is :</p>
<p>1.when running under debug mode,it will report error 30.but if i reduce the cycle time,like 50000 times,no error will be reported.</p>
<p>2.when running under release mode,... | 1 | 3,863 |
Connection pool is closed using Mongoose | <p>I have a little web app which serves data from a Mongo database. I have configured 2 cron jobs (through Heroku scheduler) to run everyday and manipulate a remote db. The problem is that I need those jobs to conclude and not keep running after finishing, that means closing my connection, otherwhise my function keeps ... | 1 | 3,051 |
Bootstrap grid with collapsed container in between | <p>It's my very first question here and i hope you can help me. I'm trying to set up a product-overview page with the bootstrap grid. I have got 4 products in a row for large screen sizes. For smaller screen sizes i'd like to have 2 products per row.</p>
<p>The trick is, i want to have the product details in a collaps... | 1 | 4,547 |
Error inflating class button | <p>I just started learning Computer Science and Android development. I've been going through some helloworld demos to try and learn.</p>
<p>So going wild, I tried to rewrite a program that has one button for two buttons using the onClickListener. While I don't have any compiling errors, my program is force closing o... | 1 | 1,031 |
Whats the Efficient way to call http request and read inputstream in spark MapTask | <p>Please see the below code sample</p>
<pre><code>JavaRDD<String> mapRDD = filteredRecords
.map(new Function<String, String>() {
@Override
public String call(String url) throws Exception {
BufferedReader in = null;
URL fo... | 1 | 1,584 |
Cross compile clang for Android arm | <p>I am trying to cross-compile llvm/clang for Android arm.</p>
<p>I export the CC/CXX variables to the arm-linux-androideabi cross compilers, and then from my build folder I execute:</p>
<pre><code>cmake -G "Unix Makefiles" --target arm-linux-androideabi --sysroot=$NDK/platforms/android-21/arch-arm/ ../llvm
</code>... | 1 | 1,068 |
Redirect customer to product page from where customer logged in to website Magento 2 | <p>In Magento 2, I have a custom login form in Header. </p>
<p>If a customer is on the product page for eg : </p>
<p><a href="http://www.testwebsite.com/catalog/product/view/id/10" rel="nofollow noreferrer">http://www.testwebsite.com/catalog/product/view/id/10</a></p>
<p>and login from header form then customer sho... | 1 | 1,191 |
A PHP Error was encountered Severity: Notice Message: Undefined variable: querry_array | <p>I tried solving the title but I really wanted to know the solution , oh well the code with the error goes here:</p>
<pre><code><?php
class Schedules extends CI_Controller {
function display($query_id = 0, $sort_by = 'event_name', $sort_order = 'asc', $offset = 0) {
$limit = 20;
$data['fields'] = ar... | 1 | 1,224 |
Obtaining the charge amount from a stripe token using stripe API | <p><strong>The goal:</strong> I have an html page that has two different items you can purchase. One is $5 and the other is $10. I'm using stripe to process the payments. When stripe creates a payment token and submits that to my process_charge.php I'd like to pull the charge amount from the data submitted via POST.... | 1 | 1,738 |
segue.identifier isEqualToString:@"segue1" is always null. IOS 6.1 storyboard | <p>I can't figure out why my segue.identifier is always returning null. I set the segue identifiers in the storboard. </p>
<p>ViewController1</p>
<pre><code>-(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
NSLog(@"prepared %@",segue.identifier);
if([[segue identifier] isEqualToString... | 1 | 1,041 |
Get column names with zero variance using dplyr | <p>I'm trying to find any variables in my data that have zero variance (i.e. constant continuous variables). I figured out how to do it with lapply but I would like to use dplyr as I'm trying to follow tidy data principles. I can create a vector of just the variances using dplyr but its the last step where I find the... | 1 | 1,644 |
Use bootstrap pagination and jquery to swap divs in a page | <p>I am trying to use Bootstrap pagination on my webpage. Based on everything avaliable online I have come up with the following piece of code thats taken from what's available online. What I need is to be able to swap divs on the same page. The problem in this script occurs early wherein my currentpage variable is und... | 1 | 1,466 |
expanded row should be collapse on selection of anotherrow | <p>I am using primefaces 3.3 and using p:rowExpansion with p:toggler under a datatable.
I want to collapse the previously expanded row on selection of the other row.</p>
<p>I have one datatable with id reconcileTable.</p>
<p>Do we have any feature in primefaces to handle this situation?</p>
<p>thanks in advance!</p>... | 1 | 1,074 |
ASP.NET MVC: ModelState error message not being displayed | <p>I am just a beginner of ASP.NET MVC. I just started with creating my login page it works fine but I have a problem when the user inputs wrong credentials. This is what I have done:</p>
<p><strong>UserProfile</strong></p>
<pre><code>public partial class UserProfile
{
public int UserId { get; set; }
... | 1 | 1,703 |
Airflow worker is not listening to default rabbitmq queue | <p>I have configured Airflow with rabbitmq broker, the services:</p>
<pre><code>airflow worker
airflow scheduler
airflow webserver
</code></pre>
<p>are running without any errors. The scheduler is pushing the tasks to execute on <code>default</code> rabbitmq queue:</p>
<p><a href="https://i.stack.imgur.com/j0ila.png... | 1 | 11,617 |
Confirm Jquery UI Dialog Prompt on Enter Key | <p>I've tried the techniques suggested in the following stack answer to no luck:</p>
<p><a href="https://stackoverflow.com/questions/868889/submit-jquery-ui-dialog-on-enter">Submit jQuery UI dialog on <Enter></a></p>
<p>Something must be off with my code. On login, I have a disclaimer that pops up to warn the u... | 1 | 1,853 |
display data from database in datagridview with entity framework in c# | <p>I'm using Empty Web Application as my host and i have different classes, such as users in it.</p>
<p>I also have a client (Windows Forms app). <strong>Please notice this is Entity framework database!</strong></p>
<p>Ok here's the thing. I want to display each and every single data in datagridview (seperate columns... | 1 | 1,050 |
jQuery clicking click event not working on Datatables | <p>Hey all I have a unique issue that I can not seem to find a way to fixing. </p>
<p>This is what my data table looks like:</p>
<p><a href="https://i.stack.imgur.com/Zx6KF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zx6KF.png" alt="enter image description here"></a><a href="https://i.stack.img... | 1 | 2,193 |
Socket Server Hangs | <p>This socket server has some error in it, most likely pthread related. If this keeps accepting client connections, after a while it will start hanging. It doesn't seems to be a memory leak because the memory occupied by the program remains the same but when I connect with a telnet client it will just hang and does no... | 1 | 1,370 |
SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession and Principal of logged in user is never filled | <p>I have a spring boot application hosted on azure, which uses an azure ad b2c tenant as openid connect provider.</p>
<p>After the user is logged in via Azure AD B2C account or a social provider like Facebook or Google, the user can access the applications redirect url.
After logging in, the application can redirect t... | 1 | 10,700 |
How to implement auto-incrementing version number column? | <p>What is a good way to implement a field in SQL Server that is auto-incrementing based on another field in the same table? Imagine a <code>VersionNumber</code> field that is auto-incrementing <code>1</code> to <code>n</code>, <em>for each value</em> of column <code>DocumentID</code>. </p>
<p>Requirements:</p>
<ul>... | 1 | 1,330 |
Laravel 5.2 : How to retrieve data from database in one to one eloquent relationship | <p>I want to access data for a particular user and update the data.As the database is empty for that reason when i wanted to go to the update page for updating the data it's showing the following error.</p>
<blockquote>
<p>ErrorException in 14cfe21a93ffc779c1e985ab027ee400af4e7d8b.php line
12: Trying to get proper... | 1 | 3,425 |
How to pass aws dynamodb table name dynamically using @DynamoDbTable annotation | <p>I have created a java service to get the details from dynamodb it is working fine but my challenge is i hardcoded the table name to the class file <strong>@DynamoDbTable</strong> annotation in order to work with different environments i feel it is not the right way. I have given my code below could someone help me t... | 1 | 1,264 |
Why is heroku giving error code H81 on deployment of react app | <p>Im deploying full stack react app to heroku.</p>
<p>I followed the steps provided on heroku using the cli</p>
<p>-logged in using my credentials</p>
<p>-ran heroku create</p>
<p>-added the heroku origin using the new git repo</p>
<p>-then ran git push heroku master</p>
<p>when i run heroku open the page displa... | 1 | 1,797 |
Media Source Extensions Not Working | <p>I am trying to use the MediaSource API to append separate WebM videos to a single source. </p>
<p>I found a <a href="https://github.com/jbochi/media-source-playground" rel="nofollow noreferrer">Github project</a> that was attempting the same thing, where a playlist of WebMs is loaded, and each one is appended as a... | 1 | 1,287 |
FOP batik NoClassDefFoundError: org/apache/batik/bridge/UserAgent | <p>I do not use maven, or pom or anything. I just have simple test class for testing and I just try to make XSL-FO to PDF conversion and I get this error.
The code is simple:</p>
<pre><code>package testing;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOu... | 1 | 1,540 |
Getting svn: E170000: Unrecognized URL scheme for my custom Svn Gradle plugin | <p>I wrote a custom gradle plugin using groovy to do basic svn tasks like, Checkout, Clean, Tag etc. The groovy class calls the svn command line client to do these operations, It works fine when i run it on my windows system but the same plugin gives the following error when i run it on a linux system (Centos).</p>
<b... | 1 | 1,062 |
How to get a checkbox value using custom adapter and listview | <p>I am trying to get a checked value but it is not showing the value, I have implemented custom adapter there i am not getting how to update position</p>
<p>My code is..</p>
<pre><code> public Add_member_adapter(Context a, ArrayList<ItemsModel> d) {
context = a;
data = d;
itemChecked... | 1 | 1,382 |
Why won't the keyPressed method be called? | <p>I'm making a fighting game in Java for a project and trying to get a picture to move and be repainted across the panel reacting to the keyboard (keyEvents). I'm trying to accomplish this by having a switch in the keyPressed method, while adding the keyListener to the panel. I have been following an example in my Ja... | 1 | 1,254 |
Absolute Positioned Floating Header Jitters in Safari | <p>I have a simple JSFiddle of a single floating header here:</p>
<p><a href="http://jsfiddle.net/zT9KQ/" rel="nofollow noreferrer">http://jsfiddle.net/zT9KQ/</a></p>
<p>Basically, this uses <code>translate3d</code> to kick in the GPU and hardware accelerate the floating header so that it may be drawn more smoothly. ... | 1 | 1,355 |
Otp Verification in laravel | <p>I'm trying to get Otp verification system in my laravel app
but
It shows me page expired when i enter my number to get the otp.(Have provided Code and Screenshot "Page Expired")</p>
<p>Using MSG91 </p>
<p>code...</p>
<pre><code> <div class="container">
<div class="jumbotron">
<... | 1 | 1,838 |
electron-packager with sqlite3 and webpack | <p>I'm making a small application that gets/stores data using <a href="https://www.npmjs.com/package/sqlite3" rel="nofollow noreferrer">sqlite3</a>. </p>
<p>Everything was fine during development stage. But when I used <a href="https://github.com/electron-userland/electron-packager" rel="nofollow noreferrer">electron-... | 1 | 2,917 |
MySQL order by ABS if numeric | <p>I need to order some information with order by in a MySQL query. Is there a possibility to use the ABS function only if the first char is numeric?</p>
<p>Pseudo example:</p>
<pre><code>SELECT * FROM table
ORDER BY
(( name[0] = numeric ) ? ABS(name) : name)
ASC
</code></pre>
<hr>
<p>Thanks for the answers so fa... | 1 | 1,533 |
How to read kml file with specific identifier in python? | <p>I am trying to read these kml-files provided by german weather service: <a href="https://www.dwd.de/DE/leistungen/opendata/help/schluessel_datenformate/kml/mosmix_example_data_zip.zip?__blob=publicationFile&v=1" rel="nofollow noreferrer">example_data</a></p>
<p>With the following code I am not able to get acces... | 1 | 1,918 |
Android ndk building standalone toolchain for ARM | <p>I am trying to build objdump executable for the GT-i9300.</p>
<p>I get the following error when I am trying to use the one provided by the Android NDK
on the adb shell with su:</p>
<pre><code>root@m0:/data/local/tmp # ./arm-linux-androideabi-objdump
sh: ./arm-linux-androideabi-objdump: not ex... | 1 | 3,511 |
Magento 1.7 SEO friendly URLs and multi store views | <p>Magento has fields for a Product and Category to create custom SEO friendly URL keys.
But when you have multiple stores, then you cannot normally have different URL keys
for different stores because the field url_key is ‘GLOBAL’ by default. For products,
you can update the url_key attribute’s is_default field to ... | 1 | 1,286 |
RouteValueDictionary/object problem in mvc ActionLink | <p>so here it goes:</p>
<p>I have a html helper which renders <code>ActionLink</code>s with the optional parameters of the current url in it. this html helper also lets you add some more optional parameters as you please and merges them in 1 <code>RouteValueDictionary</code>.</p>
<pre><code> public static string ... | 1 | 1,546 |
Crashed: WebThread - EXC_BAD_ACCESS KERN_INVALID_ADDRESS | <p>Since November 8, 2016, we've seen a sudden increase in crashes from WebThread. We don't know what is causing the crash.</p>
<p>We do have web articles and ads in the app. We did not have any App Release. There were no significant changes on the web or ads.</p>
<p>Since crashes are happening on screens without ar... | 1 | 1,129 |
gRPC and OAuth2 Authentication With Spring Security | <p>I'm experimenting with gRPC using a Spring based 'backend' and Android 'front-end', the idea is that I'll request an access token using the password grant type over HTTP (using the standard /oauth/token RESTful endpoint) and use the access token provided in all subsequent requests over RPC (setting the authorization... | 1 | 1,025 |
Source code of JDK1.8.0_121 | <p>I get some internal error in the JDK (see below). Since there is no line from my own code referenced here, I want to check in the original code what is going on. </p>
<p>On my PC I have <code>JDK1.8.0_121</code> installed. I could only find the version <code>openjfx-78-backport 1.8.0-ea-b96.1</code> on <code>grepco... | 1 | 1,783 |
Regex end-of-line anchor doesn't always work | <p>I'm working on an ASP .NET (C#) project that makes use of regular expressions and I'm having trouble with the end-of-line anchors! I'm looking for some text and I want to make sure it only occurs at the end of a string.</p>
<p>Here's some sample input that demonstrates my problem. For this case I'm trying to match ... | 1 | 1,075 |
How to reduce the number of vertical lines in a KendoUI line graph? | <p>Using KendoUI I need to replace an exiting DotNet Charting line graph with KendoUI. Is there a way to reduce the number of vertical lines in the KendoUI line graph?</p>
<p>The following is an Image of the chart I'm replacing and my KendoUi chart:</p>
<p><img src="https://i.imgur.com/SOIaH.gif" alt="" /></p>
<p>Th... | 1 | 1,484 |
Django: debug AttributeError: can't set attribute | <p>NOTE: I finally found the bug, so the below text was valuable perhaps only to me. The short answer: I decided to create a model field out of an attribute I had earlier defined as a <code>@property-method</code>. The only place where I hadn't removed the <code>@property-method</code> was in the Orchid model.</p>
<hr... | 1 | 1,258 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.