title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
SharePoint REST calls with Apache HttpClient and Load Balancing fails after first GET | <p>I stumbled on an issue with SharePoint REST calls to a load balancer. When I send the REST calls directly to the webserver, everything seems to work just fine. However, when the REST calls are sent to the load balancer, only the first call gets a HTTP 200 OK status, the rest returns HTTP 401 Unauthorized. After some... | 2 | 1,686 |
PHP-socket_connect(): unable to connect [10061]: No connection could be made because the target machine actively refused it | <p>I am running a client-server code in php for chatting. I am getting this error:
<strong>socket_connect(): unable to connect [10061]: No connection could be made because the target machine actively refused it</strong></p>
<p>I have gone through many questions and answers on this problem but still unable to solve thi... | 2 | 1,038 |
How to use a RVM cookbook together with Passenger? | <p>I am trying to setup a cookbook for RVM with Chef-solo.</p>
<p>My run_list looks like:</p>
<pre>
"run_list": [
"recipe[apt]",
"recipe[build-essential]",
"recipe[curl]",
"recipe[users]",
"recipe[rvm::vagrant]",
"recipe[rvm::system]",
"recipe[nginx::passenger]",
"recipe[nginx::sourc... | 2 | 1,328 |
Including a formatted iterable as part of a larger formatted string | <p>In writing a class recently, I initially included a <code>__repr__</code> method along the following lines:</p>
<pre><code>return "{}({!r}, {!r}, {!r})".format(
self.__class__.__name__,
self.arg1,
self.arg2,
self.arg3)
</code></pre>
<p>Repeating the '... | 2 | 1,026 |
Jenkins startup error: jenkins.model.InvalidBuildsDir: does not contain ${ITEM_FULL_NAME} or ${ITEM_ROOTDIR}, cannot distinguish between projects | <p>Help please. In our workflow we only work with pre-packaged offline deploys where we do not have root access and therefore use supervisord to stop start ALL packages. We deploy all our packages under a user account. I have created a custom Jenkins package. Its basically its a folder containing the Jenkins war file a... | 2 | 1,796 |
CQ5 DAM upload failure | <p>I am trying to upload assets to CQ5 DAM using the dam admin screen. I am able to successfully upload files with sizes up to 5 MB. I am getting an error message "failed to upload the following file : " while uploading files with sizes greater than 5 MB. This happens in both HTML5 supporting browsers (FF) and non-HTML... | 2 | 1,784 |
Float left doesn't work normally | <p>I'm trying to make the form responsive.
Here is the link to the form page <a href="http://newdev.web-dorado.info/sahakj25/index.php/form" rel="nofollow">http://newdev.web-dorado.info/sahakj25/index.php/form</a>
Everything works fine besides the div that contains the two checkboxes.
If the div's size is set to 150px ... | 2 | 1,143 |
Prometheus Exporter - Direct Instrumentation vs Custom Collector | <p>I'm currently writing a Prometheus exporter for a telemetry network application.</p>
<p>I've read the doc here <a href="https://prometheus.io/docs/instrumenting/writing_exporters/#collectors" rel="nofollow noreferrer">Writing Exporters</a> and while I understand the use case for implementing a custom collector to av... | 2 | 1,675 |
How to join and get sum from three different tables in codeigniter? | <p>I have a case like this, I want to make a report from three different tables in CodeIgniter, and then make a summary from other tables, for more detail check this out :</p>
<p>I've table <code>tbl_product</code> :</p>
<pre><code>+----------+----------+---------+
| id_prdct | product | remark |
+----------+-----... | 2 | 1,217 |
Using syntax highlighter with tsx react markdown | <p>I'm following the Github <a href="https://github.com/remarkjs/react-markdown" rel="nofollow noreferrer">https://github.com/remarkjs/react-markdown</a> and am trying to add SyntaxHighlighter to my markdown code snippets. I'm getting an error mentioned below when trying to use the example code inside a function which ... | 2 | 1,166 |
Linked list in c and MALLOC | <p>I'm trying to understand the code below, and I'm having some trouble understanding why there's no seg fault when I run it. I suppose I need to use malloc to allocate the list at the beginning of the main function? Can someone explain how the memory for the list is allocated?</p>
<pre><code>#include <stdio.h>... | 2 | 3,230 |
AVAssetExportSessionStatusFailed: Video exporting failed with error -16364 | <p>I am working on slow motion effect on video and everything is working fine below iOS 11 but I am getting following error on iOS 11:</p>
<pre><code>Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-16364), NSLocalize... | 2 | 4,087 |
How to show progress bar when my list reaches the bottom recyclerview? | <p>I have created stmth like buggy paging library and when I reach the bottom of list I would like to show progress bar before my data will be downloaded. I think that <code>notifyItemInserted()</code> will help me bu I don't understand where I have to insert this item. I think that I have to use <code>notifyItemChange... | 2 | 3,160 |
rescale and inverse_transform not returning predicted and actual values in original scale for LSTM multivariate time-series forecast | <p>I'm currently building an LSTM multivariate time-series model to predict one output at current time (t) using 22 features from the previous timestamp (t-1) as inputs. I've been following the instructions from <a href="https://machinelearningmastery.com/multivariate-time-series-forecasting-lstms-keras/" rel="nofollow... | 2 | 1,412 |
Data template parameter | <p>There is list with columns to display. I am using <code>ListView</code> with data templates for cells. And my problem is to <em>access</em> both: row and column from template.</p>
<p>Below is demo, xaml:</p>
<pre><code><ListView x:Name="listView" ItemsSource="{Binding Items}">
<ListView.Resources>
... | 2 | 1,120 |
lombok 0.10.1. error in Eclipse 3.7 | <p>when I try to use the <code>@Data</code> annotation with lombok <code>0.10.1</code>. in Eclipse: <code>3.7.0.v20110504-0800-7b7qFVpFEx2XnmYtj_9RfO7</code></p>
<p>I got this error, can anyone advise?</p>
<pre><code>Lombok annotation handler class lombok.eclipse.handlers.HandleData failed
java.lang.NoSuchMethodErro... | 2 | 1,135 |
Drools: Having trouble with drools event processing | <p>I am quite new to drools. </p>
<p>I am working on an application where my drools engine will get a series of event every second. I need to see if all the events in last 10 seconds has attribute value below 10, if the condition is true, I have to do some processing. Here is the example code which I tried, Please hel... | 2 | 1,184 |
receiveNoWait in JMS implementation returning null even when queue not empty in activemq | <p>I am trying to implement JMS in my project. I am using active mq as the provider, and using persistent queues.
Following is the code to retrieve elements from active mq</p>
<pre><code> conn = GlobalConfiguration.getJMSConnectionFactory().createConnection();
conn.start();
session =... | 2 | 1,026 |
Android How to add ActionBar inside linear layout? | <p>How do you add an actionbar inside of a RelativeLayout? I'm using actionbarSherlock to add an action bar but I cant figure out how to add it inside of a linear layout. The reason is I want to add some elements above the actionbar and below it.</p>
<p>edit:</p>
<p>Using <a href="https://github.com/umano/AndroidSlid... | 2 | 1,943 |
Android Listview on top of Keyboardview | <p>Hi I implemented a SearchView which shows results in a ListView.The problem I am facing is that I have a custom keyboard and my Listview is overlapping over the keyboardView so I am not able to press some of the keys on my keyboard.What I want to achieve is my Listview to be displayed under the KeyboardView.Here is ... | 2 | 1,582 |
ORA-08103 Using global temporary table DML(insert, update, select) inside a procedure, select cursor to temp-table shows error object doesn't exists | <p>Basically I need to modify data and store it in a temp table, delete the data every time the procedure is executed after exposing the data. The problem is that the temporary table used in a cursor as result of a procedure shows error </p>
<blockquote>
<p>object doesn't exist</p>
</blockquote>
<p>I'm trying to ge... | 2 | 1,938 |
Overscroll effect from bottom not appearing when using RecyclerView inside SwipeRefreshLayout | <p>I am trying to make a list with the nice pull to refresh feature but when I have a RecyclerView inside an SwipeRefreshLayout the overscroll effect only works when it is refreshing. Even for the bottom of the list. What happens is that the user don't have that visual cue that the list has ended.</p>
<p>Here's my XML... | 2 | 1,170 |
Cannot get cookies in Java Spring Boot / Angular application | <p>I am working on a Angular11 frontend app coupled with a Java Spring boot backend.</p>
<h3>Context</h3>
<p>I am trying to create an authentication with cookies with JWT.
To do so I am inspired by</p>
<ul>
<li><a href="https://stackoverflow.com/questions/27726066/jwt-refresh-token-flow">JWT refresh token flow</a></li>... | 2 | 2,417 |
How do I figure out what object my session is trying to serialize? | <p>I recently upgraded to Spring Security 4.2.3.RELEASE. I'm also using spymemcached v 2.8.4. I'm running into this situation where for some reason Spring is trying to serialize service implementation classes. I can't figure out where this is coming from. The line of my code that the exception refers to is</p>
<pr... | 2 | 2,171 |
How to move canvas left to right with that data array? | <p>Using same data array every time canvas moving but not continuously?</p>
<p>How to move canvas line left to right with that data array ?</p>
<p>if data array is completed use same data to continuously</p>
<p>here is my code:</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>... | 2 | 1,389 |
Eclipse IDE - Costum language syntax highlighting through generic text editor extension points | <p>I've been trying to write a plugin for the Eclipse IDE that does syntax highlighting and code completion for a custom generic language.</p>
<p>In the oxygen project version (v4.7) change notes a supposedly new and easy way to use a generic text editor and extend it with the wanted features is announced using extens... | 2 | 1,353 |
javascript onclick not working for android app | <p>I'm trying to develop an android app using eclipse and phonegap. The app is a basic lighting calculator using javascript. I'm trying to call to the javascript function in the head of the document with an onclick to calculate the result. I believe the problem may be in the onclick=, onblur=, or onfocus=. My project i... | 2 | 6,940 |
Use current location to draw poly lines to a destination and also to add markers on google maps with markers flutter | <p>I have an application with a google map, the application gets my current location, there are two markers on the map, one point of the marker and the polyline are coordinates passed from a previous screen. I want the starting point of the poly line to be my current location. I also want to use my current location for... | 2 | 1,922 |
Data is not storing into database from the controller in Laravel 5.4 | <p>here is the route code </p>
<pre><code>Route::resource('/catalog', 'CatalogController');
</code></pre>
<p>CatalogController.php</p>
<pre><code>public function store(Request $request)
{
$this->validate($request,[
'cat_name'=>'required',
'cat_desc'=>'required',
'short_name'=>... | 2 | 1,703 |
Filtering SelectControl items according the input from another SelectControl in Gutenberg Block (ES5, no JSX) | <p>I have 2 SelectControl from a Wordpress Gutenberg Custom Block I'm trying to build. I don't use ES6. Only ES5 and no JSX.
The 2 SelectControl should work in the following way: </p>
<p>They fetch from REST WP Api the Post Types and all the Posts. What I want to achieve is when I select an item from SelectControl 1 (... | 2 | 1,737 |
DDD Layers and External Api | <p>Recently I've been trying to make my web application use separated layers.</p>
<p>If I understand the concept correctly I've managed to extract:</p>
<ol>
<li><p>Domain layer
This is where my core domain entities, aggregate roots, value objects reside in. I'm forcing myself to have pure domain model, meaning i do n... | 2 | 1,160 |
Jasper Report image Error | <pre><code><?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name... | 2 | 3,172 |
PPL critical_section/parallel_for crashing under visual studio 2010? | <p>I've made this simple test program, and it sometimes triggers a Debug Break or it just crashes (under Debug/Win32/VS2010SP1) - and of course, sometimes it even works. Is there anything I am doing wrong or is there a bug somewhere in PPL (VS2010)?</p>
<pre><code>#include "stdafx.h"
#include <ppl.h>
#include &l... | 2 | 2,501 |
Move semantics to avoid temporary object creation | <p>I am trying to do operations between large objects and I experiment with r-value references to avoid temporary object creations.
The experiment is the following code, but the result is not what I expected.</p>
<p>The code:</p>
<pre><code>#include <iostream>
using namespace std;
struct A
{
A() = default;... | 2 | 1,446 |
What do I need for autocomplete and ctrl+click to work in eclipse after importing a project from Perforce and converting it to a maven project? | <p>Currently I have perforce that I am importing my project into eclipse from. After I import my project into eclipse I right click on the project go to configure and convert to maven project. After doing all of this I do NOT have autocomplete for the code working and I do NOT have ctrl+click working.</p>
<h3>System Sp... | 2 | 1,029 |
Crop and Upload image in Codeigniter | <p>In one of my project I want to allow user to upload his/her photo in profile. In times of uploading the photo i want to allow them to crop image as per their choice and when they click on update profile button i want to upload only that cropped image as their profile image. I am developing this application in CI. Ca... | 2 | 2,713 |
Incremental graphics in Swing | <p>I'm trying to get the hang of doing graphics stuff (drawing lines,
etc.) in Swing. So far, all the tutorials I've seen declare a class
that overrides <code>paintComponent</code>, and all the <code>paintComponent</code> methods
do some set, specific thing, like drawing a red square (although maybe
they draw it at a ... | 2 | 1,359 |
iOS Swift: When I pass data like array or dictionary to Javascript means it returns Undefined value? | <p>In my project I have pass String from swift to JavaScript and displaying in alert it works perfectly. But if I have pass array or dictionary means returns undefined values like </p>
<blockquote>
<p>[object Object],[object Object],[object Object],[object
Object],[object Object],[object Object]</p>
</blockquote>
... | 2 | 1,831 |
Building R package with Rtools4.0 on Windows 10 | <p>I am trying to build an <code>R</code> package using <a href="https://cran.r-project.org/bin/windows/testing/rtools40.html" rel="nofollow noreferrer">RTools4.0</a> on Windows 10 machine. My package needs the SBML C library and static libraries for SBML for building R packages on Window is provided by <code>RTools4.0... | 2 | 3,082 |
Hibernate, weblogic 12c deployment error | <p>I am trying to deploy a .war on weblogic 12c and I get the following error:
weblogic console error :</p>
<pre><code>An error occurred during activation of changes, please see the log for details.
Error org.hibernate.HibernateException: Errors in named queries:
getAuditTaskById, getAllAuditTasksByUser, getAllAudit... | 2 | 2,522 |
Parse and GMaps iOS SDK incompatibility in Swift? | <p>I'm building a Swift app w/ Parse integration, which works correctly. When I try to add Google Maps iOS SDK integration, however, I get the following build errors: </p>
<pre><code>Undefined symbols for architecture x86_64:
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy c... | 2 | 1,184 |
JSF Ajax Call with JQuery Mobile | <p>This issue has been troubling me to no end!!</p>
<p>I have seen the forum post <a href="https://stackoverflow.com/questions/9848203/jsf-fajax-listener-not-called">JSF f:ajax listener not called</a> which describes my exact issue. </p>
<p>I am using JSF 2.0 and am using the Jquery mobile as an extension library.</p... | 2 | 1,090 |
3D Bar graph using OpenGLES in android | <p>I am creating a bar graph in android using opengl</p>
<p>from an activity I'm calling the renderer and from the renderer I'm calling a cube(im using cubes for showing the bars)</p>
<p>Here is my renderer code:</p>
<pre><code>public class BarRenderer implements Renderer {
int[] vals;
private float translatex, trans... | 2 | 2,671 |
How to use one proxy in javascript AJAX using SOAP the same as WCF Test Client use | <p>I have WCF web Service and javascript client which connects to this service via AJAX using SOAP 1.2 . What i wanna do is to pass some parameter to tell the AJAX SOAP call to <strong>use only one proxy</strong> the same as I do it in the WCF Test Client by unchecking the "Start a new proxy" .
<img src="https://i.stac... | 2 | 2,130 |
Cannot Authenticate with Azure AD, losing cookie and redirect is showing no permissions | <p>Really having a nightmare with this in all honesty.</p>
<p>I have the repo from <a href="https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/1-WebApp-OIDC" rel="nofollow noreferrer">https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree... | 2 | 2,035 |
Loading PHP includes in an AJAX called file | <p>I need help getting an ajax function to work properly. I have a page that does a simulated search of a person's zip code. It shows a Google map of their location and an ajax loader.gif. After a 3000 MS timeout, the ajax function is called to load more content in a <code><div id="content"></div></code></p... | 2 | 1,340 |
Mockito + PowerMock - mock Thread.currentThread().getStackTrace() | <p>I'm currently trying to write a JUnit4 test for a package verification method.<br>
The method in question simply checks if the call originates from the correct packages, to make sure it isn't called from outside. The method and the <a href="https://regex101.com/r/Dpmehr/1" rel="nofollow noreferrer">RegEx</a> itself ... | 2 | 3,322 |
Why does JavaScript RegExp lack the "s" flag? | <p>I love Regular Expressions. However, I've just now come across the inability to use the <code>s</code> flag when running JavaScript RegExp in the browser. I'm curious as to why is this flag not included? It would be really helpful.</p>
<p>I've seen there's an external library <a href="http://xregexp.com/flags/" rel... | 2 | 1,677 |
Core Data: are parent/child Managed Object Contexts appropriate for updating a set of multiple objects? | <p>I've been reading some links and posts regarding using parent and child <code>NSManagedObjectContext</code> in <code>Core Data</code>, but the example scenarios I've found deal with simply editing the attributes of a certain object in the parent context, and then pushing changes to the parent context.</p>
<p>The sc... | 2 | 1,132 |
Deleting dynamic input fields in Vue | <p>Noob question but I can get fields to render in Vue but not sure how to delete my fields. I added an index option in the <code>v-for</code> directives but not sure what to do after that. Thanks! </p>
<p>Here is a working JSFiddle: <a href="https://jsfiddle.net/xu55npkn/" rel="nofollow noreferrer">https://jsfiddle.... | 2 | 1,030 |
What is the best way to manage home page banners in Laravel? | <p>This is my banners structure in home page :</p>
<p><a href="https://i.stack.imgur.com/T5tlU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T5tlU.jpg" alt="Banners Structure" /></a></p>
<p>As you can see I have 4 section for banners - <em>small banners | medium banners | news banners | large banne... | 2 | 1,832 |
FastAPI: Data rows from Postgresql Database don't map to Pydantic schema | <p>I'm using the FastAPI framework with Asyncio. I have recently switched to Postgresql from MySQL and have swapped <code>aiomysql</code> for <code>asyncpg</code> accordingly.</p>
<p>In MySQL I could fetch this from Database and it would be cast into Pydantic schema automatically.</p>
<pre><code>async def get_device(d... | 2 | 1,178 |
render an outputText using selectOneMenu Error : java.lang.NullPointerException | <p>i have a problem when i try to display a field depending on the values chosen on the select one menu.
it doesn't allow me to choose, it just display the exception. it's like it tries to get the number of children without waiting for the parameters</p>
<pre><code>14-Jun-2014 13:21:08.256 SEVERE [http-nio-8084-exec-1... | 2 | 7,425 |
Updating a presenting view controller's property inside the modal view controller | <p>I was wondering how I would be able to update a view controller <code>property</code> of the presenting view controller from a method called inside the modal view controller? Right now, the only way I could think of is using <code>NSNotificationCenter</code>, and while this works for Dictionary items, I couldn't fig... | 2 | 1,176 |
visual studio 2008 express takes long time to run c++ application in debug mode (small one) | <p>i don't know why but i have a project that i moving its source code ( not project files )
from computer to computer via dropbox . now in few computers when i hit f5 in debug mode
it take the visual studio like 5 minutes until its loads its dll's it needs to run (im using Qt application ) . i must say that the pc i... | 2 | 9,437 |
ERROR Creating Stored Procedure MySQL | <p>I want to make a stored procedure in MySQL database using phpmyadmin.</p>
<p>After several minutes I type in "create procedure" dialog box and press GO, i got an error in my syntax.</p>
<p>I've search on google about which one is wrong, but still not found. Please anyone give me some advice how to fix this problem... | 2 | 2,232 |
Navbar not working the way I want it to, list going outside of screen to the left | <p>I'm having trouble with my mobile navbar, which has a collapsable menu on the left. As you can see in the picture, I would like to have everything inline and in order, I put colored borders so that you can better understand.</p>
<p>The main problem is that the yellow border seems to go outside of the page, to the l... | 2 | 1,391 |
Setting plotband height | <p>I want to reduce the height of plotbands which I am using in chart below.Is it possible to do that with plotbands.</p>
<pre><code>//-------------------------------------------------------
Highcharts.Renderer.prototype.symbols.line = function(x, y, width, height) {
return ['M',x ,y + width / 2,'L',x+height,y + w... | 2 | 2,444 |
Powershell Passing Parameters to Nested Start-Job | <p>I am attempting to pass paramters to a nested job.</p>
<pre><code>$executepath = "D:\nttools\CoreAutomation\$patch.zipfilename\$ntupdatefilename"
$sb = {Start-Job -Name $NTUpdate -ScriptBlock {& cmd.exe /c $executepath}}
Invoke-Command -Session $NTSession -ScriptBlock $sb -ArgumentList $executepath
</code></p... | 2 | 1,441 |
Java Combo Box Error | <p>I have added a combo box . It needs to have value 1 through 20 and needs to call method from the constructor.
Now I am bad at placing codes. I get confused where I need to insert code and always end up getting errors.</p>
<p>I am getting error when i run my program. It says for combo box:No suitable method
I have ... | 2 | 4,044 |
Page rendered is empty even though view and controller exist. | <p>I'm following <a href="http://asciicasts.com/episodes/160-authlogic" rel="nofollow noreferrer">this article</a>(<a href="http://asciicasts.com/episodes/160-authlogic" rel="nofollow noreferrer">http://asciicasts.com/episodes/160-authlogic</a>), I'm not using nifty generator tho.</p>
<p>I've done the User model and <... | 2 | 1,080 |
taking query string values without full postback | <p>i have a page in which the left column contains category list and the right column will display the corresponding items on choosing a particular category from the left</p>
<p>each category list contains a hyperlink whose navigate url contains query string values.</p>
<p>on clicking the link i get the items listed ... | 2 | 1,241 |
Timeout exception is showing after button click | <p>After button click page get refresh and redirect to another page.In my case after button click i gave timeout for page refresh but after button click it showing timeout exception without time wait .i used all type of time wait event i used thread.sleep() but no use.</p>
<hr>
<p>Exception : </p>
<blockquote>
<p... | 2 | 1,979 |
jQuery DataTable - Column level filters on top and fixed height not working together | <p>I am trying to display data in a jQuery DataTable which has column level filter at the top, fixed height and scroller enabled. I am able to display the column level filter at the top and have it working. But, as soon as I set the height (scrollY property), the column level filters at the top disappear.</p>
<p><stro... | 2 | 2,149 |
Nginx 502 error with any Wordpress page, but other php webapps are working | <p>I've been banging my head against the wall with this one for some time now with no success.</p>
<p>I'm loosely following Ars' Web Served series of articles to install Nginx, PHP and MariaDB on OS X. Everything has been working fine until Wordpress. I've installed Wordpress on Apache plenty of times without incident... | 2 | 5,627 |
How do I add the "containers" package to my .cabal file (without getting overwritten by stack at compile time)? | <p>I am working on the "roman-numerals" task from the exercism Haskell track and followed their <a href="http://exercism.io/languages/haskell/installing" rel="noreferrer">instructions to installing stack</a>. I am working on a Fedora 24 box.</p>
<p>As long as I was working with Haskell modules from base, I di... | 2 | 1,035 |
VB.NET update same table inside a DataReader loop | <p>I'm reading from a SQL database and depending on the fields I check I need to update a different field in that same table. I'm looping through the dataset and trying to send an UPDATE back while looping. It worked on my TEST table but isn't working for my production table. When I execute the "ExecuteNonQuery" com... | 2 | 1,117 |
I am getting black background in Apache POI XSSF | <p>I want to give a custom color to a row with different cells.</p>
<pre><code>XSSFWorkbook wb = new XSSFWorkbook();
String safeName = WorkbookUtil.createSafeSheetName("Main Result"); // returns " O'Brien's sales "
XSSFSheet sheet1 = wb.createSheet(safeName);
XSSFCell... | 2 | 4,949 |
Dropdown, change and click events fire only the first time - jQuery | <p>Using jQuery 1.9.1 in a web page & making an AJAX call to return an XML dataset. The data is loaded into rows in an HTML table. The first 2 columns contain text information, the 3rd column can contain one of three things: a Dropdown box, a Submit button, or Text. The 4th column contains either a Submit butto... | 2 | 1,319 |
Pending intent with Alarm not working in background service | <p>I have several pending intents that I'd like to create when broadcast reciever Boot action runs. Each intent sets off an alarm at a given time. I was able to do this in an activity, however it is not working in a service. </p>
<p>It is strange because logcat shows the data is processing into the for loop and funct... | 2 | 5,702 |
Creating p2p connection iOS | <p>Okay. So I have been trying to connect devices p2p with streams for a week. Still no result and i am getting crazy and desperate. Please Don't send me to Ray Wenderlich tutorial and GCD wiki or to CFStream Guide as i have surfed it to the holes.</p>
<p>So 1) Variant Here i</p>
<ol>
<li>Get Ip Of My device</li>
<li... | 2 | 1,743 |
Ajax success data called twice | <p>I don't understand why my data is called two times. I tried to replace append, but it doesn't work. I think it's because of my controller.</p>
<p><img src="https://i.stack.imgur.com/977rI.png" alt="Problem here]"></p>
<p>This is my Ajax call:</p>
<pre><code>jQuery(document).ready(function($) {
$('#referenceProdui... | 2 | 1,362 |
how to use Attribute.IsDefined in entity framework 5? | <p>I am using the entity framework to create an audit trail. Rather than audit every property, I thought I would create a custom attribute</p>
<pre><code> [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public class DoNotAudit : Attribute
{
}
</code></pre>
<p>Then I would apply this t... | 2 | 3,709 |
how to insert html table values in mysql table | <p>Using following code I have fetched <code>Student ID</code> and <code>Student name</code> from mysql table in html table. In third column which is <code>Obtained Marks</code> I am getting student marks through input box. Now I want to insert all three columns (Student ID, Student Name and Obtained Marks) in new tabl... | 2 | 1,891 |
Can't import external project as module in Android Studio 3 | <p>I have an app already published on the store, after upgrading to Android Studio 3 (now 3.1) and the forced update of gradle I am unable to import my external projects as modules.</p>
<p>I have tried removing all my modules and adding them one by one, deleting the cache, changing gradle version, and compileSdkVersio... | 2 | 2,312 |
ASP.NET: How do "update" a field in the <EditItemTemplate> that has a null value in the database (SQL) | <p>I am using a FormView control. The allows me to update records in the database. However, when a database field is null I can not update the field on the form. It works fine when the field is not a null value. I am not using any code behind (C#) to bind the data or manipulate the data. </p>
<p>I have read tha... | 2 | 15,549 |
Slick carousel doesn't work | <p>I'm trying to use slick carousel to slide the year of a calendar but I can't make it work. </p>
<p>Here's what I want to make slide:</p>
<p><a href="https://i.stack.imgur.com/nG6M4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nG6M4.png" alt="enter image description here"></a></p>
<p>And this... | 2 | 1,388 |
Google Maps API V3 Markers Not Showing | <p>I have used Version 2 for quite some time and decided it was time to go to Version 3 as part of a major site update. I based all my code on "<a href="http://www.geocodezip.com/v3_MW_example_map3.html" rel="nofollow">Mike Williams' tutorial The Basics - Part 3: Loading the data from an XML file translated to v3</a>".... | 2 | 2,531 |
Writing Log4j2 logs to remote server from Docker container gives error | <p>I am using the <a href="https://logging.apache.org/log4j/2.0/log4j-core/apidocs/org/apache/logging/log4j/core/appender/SocketAppender.html" rel="nofollow noreferrer">Socket Appender</a> of Log4j2 to write logs to a remote server. It was working fine when I was writing from a spring boot application. After I containe... | 2 | 5,060 |
Invalid argument : You must feed a value for placeholder tensor with dtype float and shape [64,1] | <p>I got unexpected error when running below code :</p>
<pre><code>with tf.Session(graph=graph) as session:
tf.initialize_all_variables().run()
print('Initialized')
mean_loss = 0
for step in xrange(num_steps) :
print ("Train data ",len(train_data))
batch_inputs, batch_labels = generate_batches(train_da... | 2 | 3,398 |
Issue with conversion of xml to JSON | <p>I followed the following tutorial - <a href="http://davidwalsh.name/convert-xml-json" rel="nofollow">http://davidwalsh.name/convert-xml-json</a> and getting the error : </p>
<pre><code>Uncaught exception: TypeError: 'xml.hasChildNodes' is not a function.
</code></pre>
<p>I am not sure how to resolve this? Many ha... | 2 | 1,342 |
PDFCreator with OpenOffice files | <p>I use a Windows Web Server 2008 with ruby, PDFCreator, Microsoft Office, and OpenOffice to convert files to PDF automatically. The setup works ok for Microsoft Office files but I have not been able to get it to work automatically with OpenOffice files (e.g. .sxw). PDFCreator is able to convert .sxw files without pro... | 2 | 1,024 |
How to write Spark logs to S3 when using Kubernetes (EKS)? Error: Unrecognized option: --spark.kubernetes.driver.secretKeyRef.AWS_ACCESS_KEY_ID | <p>I'm trying to submit a Spark job on Kubernetes and write logs to S3. I'm using EKS and Spark client mode</p>
<p>I can write my Spark logs to a local directory, e.g., the below works:</p>
<pre><code>bin/spark-submit \
--master k8s://https://<k8s-master>:443 \
--deploy-mode client \
--name spark-pi \
--class o... | 2 | 1,201 |
User Signup Test failing in M.Hartl's Rails Tutorial | <p>I've been following M. Hartl's Rails Tutorial and I've encountered a problem. As I moved from chapter 10 all by code was working and my test suite was passing. In chapter 11, all I have done so far is to create a new branch. None of my files have been altered. Yet somehow, my test suite is now failing. Even more str... | 2 | 3,346 |
'Error 401 Unauthorized' for Neo4j REST url on Heroku | <p>I am using correct <code>NEO4J_URL</code> environment variable as shown in <code>heroku config</code>.
If I use the same neo4j url via a browser, it works fine (no auth failure). However my application fails to start with below error on heroku. (I am using spring-data-neo4j)</p>
<p>The URL looks like <code>http://... | 2 | 2,203 |
How to resolve placeholder when run Spring based application? | <p>Collegues, i have java based Spring config:</p>
<pre><code>@Configuration
@EnableTransactionManagement
@ComponentScan (basePackages = {"com.abc.dirint"})
@PropertySource("classpath:/settings/${env}/dir.properties")
@EnableScheduling
public class DirConfig {
private static final Logger log = LoggerFactory.getLo... | 2 | 1,293 |
laravel form not going to controller on submit | <p>I am using laravel collective form but on submit it just reload and stays on same page.
It is not going to the controller method provided in action attribute.</p>
<p>Here is my form code</p>
<pre><code> {!! Form::open(['action' => 'UsrController@store', 'method'=>'POST']) !!}
<div class="form-group"&... | 2 | 1,363 |
Base64 String when decoded to png is cut off with Objective-C | <p>I'm converting an image that I retrieved from a URL to base 64 using this code.</p>
<pre><code>NSURL* imageUrl = [NSURL URLWithString:url];
NSData* urlData = [NSData dataWithContentsOfURL:imageUrl];
UIImage* uiImage = [UIImage imageWithData: urlData];
NSData* imageData = UIImagePNGRepresentation(uiImage);
NSData* ... | 2 | 1,158 |
OpengL ES / Angle : rendering to single channel float texture | <p>I am trying to use shaders to do simple operations on large matrices/images. I wrote some code running with regular OpenGL by rendering to single channel float textures in frame buffer objects, which works fine. </p>
<p>I would now need to have it run on different platforms (UWP + Angle, Android,...) so I'm trying ... | 2 | 1,181 |
Colorize a UIImage in Swift | <p>I am trying to write an helper function that applies a color mask to a given image. My function has to set all opaque pixels of an image to the same color. </p>
<p>Here is what I have so far :</p>
<pre><code>extension UIImage {
func applyColorMask(color: UIColor, context: CIContext) -> UIImage {
g... | 2 | 1,620 |
Combining noSQL and ORM in an MVC framework for a real-case application | <p>I've been trying for some time to put some 'cool' things I've been reading about noSQL (couchDB, mongoDB, Redis...) in the past years into practical use.</p>
<p>I'm quite used to writing apps with Django, and started using Play! when Java is the only acceptable deployment option (and enjoying it too). Both have mod... | 2 | 1,963 |
Scroll state of recyclerview inside ViewPager Tab Fragment not saved when device orientation is handled manually using onConfigurationChanged() | <p>What I want to achieve:</p>
<p><a href="https://i.stack.imgur.com/VzA04.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VzA04.png" alt="This is what I want to achieve"></a></p>
<p>FragmentOne is under Tab1 and FragmentTwoPortrait is under Tab2. I want to save the state of the recyclerview of Fra... | 2 | 4,001 |
Can query be optimized: Get a records max date then join the max date's values | <p>I've created a query that returns the results I want but I feel there must be a better way to do this. Any guidance would be appreciated.</p>
<p>I am trying to get all items for a specific meeting and join their max meeting date < X and join the max date's committee acronym. X is the current meeting date.</p>
<... | 2 | 4,651 |
Unable to run flutter after audio players package import | <p>I imported following sound package from flutter packages.</p>
<blockquote>
<p>audioplayers: ^0.12.1</p>
</blockquote>
<p>It threw errors saying I needed to install some things. Based on the error messages, I ran following commands.</p>
<blockquote>
<p>brew install cocoa</p>
<p>pods pod setup</p>
</blockquote>
<p>The... | 2 | 1,424 |
Can I/how can I translate a Selenium webdriver test script from node.js over to phantomjs - ghostdriver? | <p>I recently began working with Selenium and to make life easier to start I was using node to run my scripts so that I could visually monitor the tests. My challenge now is to convert it so that it can be run as a headless test. Unfortunately, most of the resources that I have come across only address using phantomjs ... | 2 | 1,053 |
Assertion failure in UITableView 1070 | <p>Update: sometimes I get the error message</p>
<pre><code>2013-03-27 19:23:23.094 *** Assertion failure in -[TableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-2372/UITableView.m:1070
2013-03-27 19:23:31.280 [53301:c07] CoreData: error: Serious application error. Exception was caught during C... | 2 | 1,715 |
argument exception parameter value is out of range decimal | <p>In database <code>price</code> column is set to <code>decimal(20, 2)</code>.</p>
<p>It means it can hold 18 digits before decimal and 2 digits after decimal point. Right?</p>
<p>Now when I try to save value <code>12345678.00</code>, it says: <code>parameter value is out of range</code></p>
<p>What I'm doing wrong... | 2 | 2,859 |
How to script printing of multiple layouts from filemaker pro plus multi page PDFs from containers in sequence | <p>We need a script that will print a multipage PDF within a printing sequence from filemaker pro.</p>
<p>We use a filemaker PRO database that is rough around the edges but general works for our processes. We are trying to automate some workflows but continue to run into gaping glitches that have stumped us and held b... | 2 | 1,333 |
iText 7 dynamic page header issue | <p>I am trying to create dynamic page header with itext7 using EventHandlers. I am using the below code for this:</p>
<pre><code> public static void main(String[] args) throws Exception {
File file = new File("C:\\Test\\variable_header.pdf");
file.getParentFile().mkdirs();
new VariableHeader().manipulat... | 2 | 1,024 |
how to take pic on same activity of registration form | <p>I am trying to make an android application in which i make a information filling form in which user fill the in formation.and also i gave a camera button for capture photo and save it.</p>
<p>I want when user click camera button camera open and take picture and save it.</p>
<p>I do not open another activity on ca... | 2 | 1,691 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.