title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
CakePHP data change during validation and beforeSave is not being save with the changes | <p>I'm saving data sent from a form. </p>
<p>In the Controller I am doing :</p>
<pre><code>$this->User->create();
$this->User->save($this->request->data)
</code></pre>
<p>The $this->request->data looks like this:</p>
<pre><code>'User' => array(
'password' => '*****',
'username' =>... | 1 | 1,194 |
How can I verify my SSL certificate for discord? | <p>Whenever I try to start my Discord bot, this Error Message comes up and I have no idea why my SSL certificate is expired, since if I visit Discordapp.com via Browser the certificate is still not expired (valid through Nov 2020).</p>
<p>How can I update this specific certificate?</p>
<p>I am on Win 10 (ver 2004)</p... | 1 | 1,463 |
SyntaxError: Lexical declaration cannot appear in a single-statement context | <p>I am trying to make my first discord bot and I have run into an error that I just don't understand so if someone could please explain to me why this doesn't work.
This is the code:</p>
<pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js');
const ytdl = require("ytdl-core");
... | 1 | 1,178 |
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered | <p>I have only one application context file tradelc-servlet.xml. So I think ContextLoaderListener is not needed. But still I am getting the exception mentioned in the title</p>
<p>ClsEditBody.jsp</p>
<pre><code> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form... | 1 | 4,668 |
How to test my DAO methods using Mockito? | <p>I'm trying to write some tests for my DAO's. I have followed some tutorials/answers here, but most of them don't apply to my DAO's. </p>
<p>Example code: trying to get the elections from the database based on the given selector (< or >).</p>
<pre><code>public class AdminDaoImpl extends DaoImpl implements AdminD... | 1 | 2,653 |
Filter an Excel file and output the result into another Excel | <p>I am currently doing a small project for a club in my school. The idea is to filter the GPA of students if they are above a cutoff point based on their class (Freshmen, Sophomore, Junior, and Senior).</p>
<p>Here's an easy example; let's say I have the following .xlsx file:</p>
<p><a href="https://i.stack.imgur.co... | 1 | 1,200 |
AS3 Calculator? | <p>I am in the process of creating a calculator entirely through actionscript, nothing is on the staging area. So far i am up to performing the calculations. However i seem to be having problems. A sample of my code is shown below:</p>
<pre><code>import flash.events.MouseEvent;
var btn:Array = new Array();
for(var i... | 1 | 2,548 |
No date part in...lib/Zend/Date.php(1078) in many backend pages after server configuration changed | <p>After some unreported changes made by our customer's store hosting company we are getting many errors around the magento date formatting and many admin screens breaks (sales order view, customers, index management, and others).</p>
<p>In the reports folder log, I get:</p>
<pre><code>a:5:{i:0;s:44:"No date part in ... | 1 | 2,404 |
yii multiple inner joins | <p>I am trying to write a query in yii. I have the following which works</p>
<pre><code>$criteria = new CDbCriteria;
$criteria->condition = "($column = :id)";
$criteria->params = array(":id" => $id );
$rows = Jobs::model()->with('pROJ')->findAll($criteria);
</code></pre>
<p>This returns the model of J... | 1 | 1,148 |
get the url <img src=''> a rss feed and open on <image> in xaml Windos Phone | <p>I have this class:</p>
<pre><code>class clsFeed
{
public string Title { get; set; }
public string Summary { get; set; }
public string PublishDate { get; set; }
public string Content { get; set; }
public string Image { get; set; }
public Uri Link { get; set; }
... | 1 | 2,649 |
LoadError (Unable to autoload constant Board_Game, expected /models/board_game.rb to define it) | <p>Full server error: </p>
<p><code>LoadError (Unable to autoload constant Board_Game, expected /Users/michellegarcia/coding_personal_projects/board_game_app/app/models/board_game.rb to define it):</code></p>
<p><code>app/controllers/api/board_games_controller.rb:3:in `index'</code></p>
<p>I have a spelling or capit... | 1 | 1,649 |
How to work with Jpa in play framework? | <p>I am working with Play framework with JPA to store database but some issue is coming :</p>
<p>what am i doing is i am storing user into database but exception is coming.</p>
<p>My <strong>controller</strong> is:</p>
<pre><code>public class Application extends Controller {
@Transactional(readOnly=true)
... | 1 | 3,068 |
PhpStorm: any solution for 4 annoying problems? | <p>I'm a rather happy PhpStorm user, but there are a few things that really annoy me, but I'm not a settings expert and wish there is a solution for them (<em>editing PHP files</em>) :</p>
<ul>
<li><strong>Navigation</strong></li>
</ul>
<p>Often in the editor, one want to go back to where the cursor was 100 lines abo... | 1 | 1,071 |
Can not stop Jboss7 | <p>I can not stop JBoss AS 7. This is how I do:</p>
<pre><code>sudo sh /usr/local/jboss-eap-6.2/bin/jboss-cli.sh --connect command=:shutdown
</code></pre>
<p>But console says:</p>
<blockquote>
<p>org.jboss.as.cli.CliInitializationException: Failed to connect to the
controller
at org.jboss.as.cli.impl.C... | 1 | 6,264 |
Putting cursor in QLineEdit | <p>I would like to put a cursor in a blank line edit box without having to click on it. </p>
<p>I looked through the Reference here
<a href="http://ftp.ics.uci.edu/pub/centos0/ics-custom-build/BUILD/PyQt-x11-gpl-4.7.2/doc/html/qlineedit.html#selectionStart" rel="nofollow noreferrer">http://ftp.ics.uci.edu/pub/centos0... | 1 | 1,219 |
5 rkhunter warnings came up, should I be worried? | <p>I just found rkhunter and decided to run a scan on my CentOS dedicated server, no rootkits found (thank goodness!) but there were warnings, I'm just curious if anyone else has ran into these or if this is something I should worry about or be investigating further?</p>
<p>Here are the warnings I received from rkhunt... | 1 | 2,680 |
HTTP Error 500.19 - Internal Server Error(not able to host) | <p>I am trying to Host this website in IIS and run, but it is showing "HTTP Error 500.19 - Internal Server Error".
I have change applicationHost.config file but that doesn't help.
When i am running the project from Visual Studio 10 it runs properly but when i publish the project and host in IIS it gives this ... | 1 | 7,502 |
Pytorch DataLoader - Choose Class STL10 Dataset | <p>Is it possible to pull only where class = 0 in the STL10 dataset in PyTorch <code>torchvision</code>? I am able to check them in a loop, but need to receive batches of class 0 images</p>
<pre><code># STL10 dataset
train_dataset = torchvision.datasets.STL10(root='./data/',
... | 1 | 1,229 |
d3.js brush with multiline chart | <p>I'm making a multi-line chart and using a brush to select time periods. It's broadly based on Mike Bostock's example at <a href="http://bl.ocks.org/mbostock/1667367" rel="nofollow">http://bl.ocks.org/mbostock/1667367</a></p>
<p>My chart is at <a href="http://lowercasen.com/dev/d3/general/piezobrush.html" rel="nofol... | 1 | 3,545 |
yii not saving model | <pre><code> $model=new Event('create');
$model->attributes=$_POST['Event'];
if($model->save()){
$pkg = new Package();
$pkg->attributes=$_POST['Package'];
$pkg->event_id = $model->id;
$pkg->save();
}
</code></pre>
<p>The Event model gets saved correctly with all the POST variab... | 1 | 1,708 |
Arguments not passed through file association | <h2>Update</h2>
<p>I edited <code>hkcr\vbsfile\shell</code> so it mirrors <code>hkcr\vbsfile\shell</code>. Arguments still don't work when using the filetype association for VBScript.</p>
<p>I wonder whether these registry keys make it fail:</p>
<pre><code>:: reg query hkcr /f vbs*
HKEY_CLASSES_ROOT\.vbs
...
HKEY_C... | 1 | 2,103 |
How does maven decide when to use the target folder for classpath | <p>I have a question regarding how maven calculates the classpath during building. Specifically, what controls when the "target/classes" is used and when the "jar" from a repository (local/remote) is used.</p>
<p>I have a project on version 1.0.0-SNAPSHOT where the artifacts have NOT been installed/deployed so there i... | 1 | 5,458 |
Rest Assured doesn't use custom ObjectMapper | <p>I'm making Controller tests for my Spring Boot project using Rest Assured. We are using Java 8 ZonedDateTime fields on our serialized objects and Jackson 2 for our serialization. When running the project, serialization works as expected, but when running Rest Assured tests, the dates are not serializing correctly. I... | 1 | 1,910 |
How can I make an empty div display between the header and footer? | <p>I am trying to create an empty <code>div</code> between my <code>header</code> and my <code>footer</code>, as my webpage has a <code>background image</code> which I would like to be clear of any elements.</p>
<p>The full code is <a href="https://jsfiddle.net/Cilvako/4105a0oy/" rel="nofollow">here</a></p>
<p><div c... | 1 | 1,232 |
Index/Match Time Match Errors | <p>I am using <code>index/match</code> to extract data by matching <code>date/times</code> using <code>INDEX(D:D,MATCH(A2,B:B,0))</code>
<code>A:A</code> column of <code>date/times</code> has been manually entered.
<code>B:B</code> column of <code>date/times</code> input as <code>B2+time(,30,)</code> and copied down.</... | 1 | 1,321 |
Thymeleaf + jQuery , how to properly add th:field="*{value}" | <p>I am struggling with a problem. I am trying to dynamically add row to my form. My first row (static) of form is working fine, but when I add another one, the form is being added but I cannot obtain any value, like it would stay empty. Please help</p>
<p><b>OK it is my form:</b></p>
<p></p>
<pre><code><h2>Ri... | 1 | 1,237 |
What is the correct way to observer LiveData? | <p>Suppose there's a LiveData object in a ViewModel whose content is of interest of multiple views. Each view is handled differently and may or may not be displayed at any given time, independent of the other views.</p>
<p>Which of these approaches is better/correct?</p>
<ol>
<li><p>To have 1 observer to such LiveDat... | 1 | 1,212 |
best way to detect number of SMS needed to send a text | <p>I'm looking for a code/lib in php that I will call it and pass a text to it and it will tell me:</p>
<ol>
<li>What is the encode I need to use in order to send this text as SMS (7,8,16 bit)</li>
<li>How many SMS message I will use to send this text (it must be smart to count "segmenation information" like in <a hre... | 1 | 1,169 |
MVC Required Field not Working | <p>Title says it all, can anyone spot what I'm doing wrong. I've tried moving around my HTMlValidation Summary and a bunch of other things. I feel like it may have something to with the views I am returning from my Controller Class.</p>
<pre><code>-- Model
public class Login
{
[Required(ErrorMessage = "First Name... | 1 | 1,302 |
Swagger/OpenAPI: How to integrate generation of typescript/angular client in build process? | <p><strong>Java/Spring Server-Stubs Generation with swagger-codegen-maven-plugin</strong></p>
<p>In my Spring Boot Java project I am using <a href="https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen-maven-plugin" rel="noreferrer">swagger-codegen-maven-plugin</a> to generate the Spring M... | 1 | 1,191 |
Need to understand how Bootstrap typeahead js works | <p>I am looking for a good jQuery auto suggest list plugin. I searched Google and found many but Bootstrap typeahead plugin look pretty good. I go through the use of Bootstrap typeahead but stuck for one area to understand properly.</p>
<p>I read about Bootstrap typeahead use from this url <strong><a href="http://tati... | 1 | 1,559 |
How to create a searchbar for API data using reactjs? | <p>I'm new to react, i have created a <code>User component</code> and <code>search bar</code> but unable to search the data from the component. I mean i couldn't able to figure it out how to searchBar component to work. How to filter the items as we type in the search bar.</p>
<p>Here is the component for User:</p>
<... | 1 | 2,209 |
TCP Port forwarding with Async Sockets | <p>I am trying to implement a TCP forwarder in C#. Specifically the application:</p>
<ol>
<li><strong>Listens</strong> to a TCP port and wait for a client,</li>
<li>When a client is connected, <strong>connects</strong> to a remote host,</li>
<li><strong>Waits for incoming data</strong> on the both connections and <str... | 1 | 3,952 |
Fatal error: Class 'Swift_smtpTransport' not found in | <p>I am trying to add the functionality to send my customers emails from my website backend and am attempting to use swiftmailer to do this.
I unfortunately keep getting an error message </p>
<pre><code>Fatal error: Class 'Swift_smtpTransport' not found in /home/u312041955/public_html/cust/modules/customer/email.php ... | 1 | 3,046 |
Signal not declared in this scope/undefined reference to class::method | <p>I've been trying to sort out a custom signal in my Qt application, and I can't seem to get it to compile. Essentially I have a window with a slot to handle a button press (slotCalibrate()), and another slot to receive messages and output them to the screen via a QTextEdit (slotMessage()). Both of these functions wor... | 1 | 1,859 |
Can't add property _$visited, object is not extensible using primeNG, angular 2 and @ngrx | <p><strong>USE CASE</strong></p>
<p>Learning Angular 2 and working in a personal project. I have datatable from PrimeNg and I would like to allow selection on it.
Using redux implementation ngrx, my datas come from the store and display well in the datatable. But I get errors when I do selection on it.
I suspected th... | 1 | 2,240 |
standalone jdbc-pool implementation memory leak | <p>I am trying to implement jdbc-pool in a standalone web app (self contained - not relying on server.xml) so that it can be moved to tomcat installations that may be earlier than 7.0.</p>
<p>I am connecting to MSSQL Server with the sourceforge driver (net.sourceforge.jtds.jdbc.Driver)</p>
<p>Everything runs fine exc... | 1 | 1,376 |
SelectKBest for regression gives "unknown label type"-error | <p>I am trying to get a slightly modified version of the SelectKBest example to work but keep getting a ValueError("Unknown label type: %s" % repr(ys))</p>
<p>Here's my code:</p>
<pre><code># Importing dependencies
import numpy as np
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection imp... | 1 | 1,232 |
Moq setup returns null | <p>So, I'm starting to learn an implement UniTesting on a Web Api project I'm working on. What's happening is that when I setup a mock a call this one returns null instead of the value I'm telling to returns. I don't know why a similiar Setup works but this one just doesn't.</p>
<p>Here is my Test Class</p>
<pre><cod... | 1 | 2,184 |
WordPress - File(/) is not within the allowed path(s) | <p>I have something really strange after moving an WordPress to my Server:</p>
<pre><code>Wed Aug 27 18:10:43 2014] [warn] [client 77.21.106.179] mod_fcgid: stderr: PHP Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (/var/www/vhosts/xyz/:/tmp/:/usr/share/pear/) in /va... | 1 | 2,312 |
Waiting for a task to complete after KeyboardInterrupt in asyncio | <p>I'm trying to understand how does <code>asyncio</code> work. In my scenario client makes a <code>tcp</code> connection to the server, sends a login string, if authenticated - receives a stream of chars. Finally on <code>KeyboardInterrupt</code> sends <code>logoff</code> string to the server and hapilly disconnects.<... | 1 | 1,562 |
E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED Android studio | <p>Ok, going a little crazy here. Eveytime I launch my app in android studio, before any code is handled get this error:</p>
<pre><code>E/FirebaseInstanceId: Token retrieval failed: AUTHENTICATION_FAILED
</code></pre>
<p>App Gradle:</p>
<p>apply plugin: 'com.android.application'</p>
<pre><code>android {
compil... | 1 | 1,416 |
Url.Page creates wrong url | <p>Have a look at this code:</p>
<pre><code>var callbackUrl = Url.Page("/Account/ConfirmEmail", null, new { userId = user.Id, code }, Request.Scheme);
</code></pre>
<p>The result is this:</p>
<blockquote>
<p><a href="http://localhost:5000/Account/Register?userId=614d16ae-4e95-4796-8d67-cb829e12585b&code=CfDJ8O... | 1 | 1,122 |
How to Display Image with web.py | <p>I am trying to let a user upload an image, save the image to disk, and then have it display on a webpage, but I can't get the image to display properly. Here is my <code>bin/app.py</code>:</p>
<pre><code>import web
urls = ( ... | 1 | 2,564 |
iOS app crashes after idle for a while | <p>My app crashes after goes idle for a 30 mins. Below is the Crash Report..</p>
<p>The app is loaded but when I try to open a popupover control (WYPopoverControl) it doesn't open and after a while when I focus on any text box it will crash randomly. After the crash, when the app re-opens everything will resume workin... | 1 | 4,107 |
Error: Symbol not found: ___CFObjCIsCollectable | <p>today I was working in xcode when this error showed up on start up of the app, whats wrong with my app? </p>
<blockquote>
<p>2012-07-29 19:29:58.682 Champagne Pop[10601:1b03] Error loading
/System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn:
dlop... | 1 | 1,055 |
Windows Server 2012 - Access to registry denied when running powershell scripts from C# | <p>I'm building a C# application that has to run some powershell scripts.</p>
<p>While the application works well on all my colleagues computers, I have issue having it to work properly on a Windows Server 2012 virtual machine.</p>
<p>Whenever I run a script through the application I'm getting the following error mes... | 1 | 1,088 |
Error For input string: " 12" Android studio | <p>My <code>gradle</code> is bellow: </p>
<pre><code>buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.8.1'
}
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
r... | 1 | 7,948 |
Spring Cloud Gateway is not finding a route path (404 error) | <p>I am investigating Spring Cloud Gateway as an API gateway solution for a professional application and am running through this tutorial: <a href="http://spring.io/guides/gs/gateway/#scratch" rel="nofollow noreferrer">http://spring.io/guides/gs/gateway/#scratch</a>.</p>
<p>However I am running into issues I cannot so... | 1 | 2,217 |
The method nextPage() and previousPage() in PageController doesn't work sometimes | <p>Here is my code:
I response key event in Android MainActivity, and use BasicMessageChannel to post key message:</p>
<pre><code>public class MainActivity extends FlutterActivity {
private static final String CHANNEL = "scroll";
private static final String KEY_LEFT = "keyLeft";
private static final String KEY_RIGHT ... | 1 | 2,182 |
Change all table border colors with jQuery | <p>I have several instances of inline CSS like the following...</p>
<pre><code><td id="problem_display" style="border-right:solid 2px #378DE5; border-top:solid 2px #378DE5; border-bottom:solid 2px #378DE5; padding:10px;" valign="middle">
</code></pre>
<p>There are also <code><table></code> tags like this.... | 1 | 2,156 |
GCM: onMessage() from GCMIntentService is called Many times? | <p>I am implementing GCM in my application. I have followed all the steps given in GCM tutorial from developer.android.com</p>
<p>I am able to get the register ID from GCM successfully, and I am passing this ID to my application server. So the registration step is performed successfully.</p>
<p>Now when my applicatio... | 1 | 4,306 |
How to make 8-bit bitmap appear as monochrome in C++? | <p>When I set up and create a 24-bit bitmap like this:</p>
<pre><code> //fileheader
BITMAPFILEHEADER* bf = new BITMAPFILEHEADER;
bf->bfType = 0x4d42;
bf->bfSize = 6054400 + 54;
bf->bfOffBits = 54;
//infoheader
BITMAPINFOHEADER* bi = new BITMAPINFOHEADER;
bi->biSize = 40;
... | 1 | 1,433 |
Get TreeViewItem for TreeView logical element | <p>My tree view seems like this</p>
<pre><code><TreeView x:Name="ArticlesTreeView" Grid.Column="0" AllowDrop="True">
<TreeView.Resources>
<HierarchicalDataTemplate DataType="{x:Type structure:NewsPaperDocument}" ItemsSource="{Binding Children}">
<T... | 1 | 2,798 |
jQuery Endless Scrolling loop | <p>I have a project on jsFiddle:</p>
<p><a href="http://jsfiddle.net/willisilliw/aPgPk/" rel="nofollow noreferrer">jsFiddle Link</a></p>
<p><strong>JavaScript:</strong></p>
<pre><code>var scroller = function() {
$('#holder div').animate({
left: ($t.attr('id') == 'prev' ? '-=' : '+=') + 3
}, 10, 'linear'... | 1 | 1,706 |
Unable to use generated client from swagger api | <p>I am trying to use a third party api in the project where the way to access those apis are provide in swagger</p>
<p>When i generate the client using swagger and try to use in my local i am getting the error has</p>
<pre><code>io.swagger.client.ApiException: java.net.SocketTimeoutException: connect timed out
a... | 1 | 1,533 |
Binary XML file line #27: Error inflating class androidx.appcompat.widget.ActionBarContainer? | <p>I tried everything but cannot seem to solve this error. All the solutions I am finding are for pre-androidx codes. I think I added all dependencies needed, but it still would not work. I have also updated my android studio and all the dependencies to their most recent version. Any help would be appreciated. Below ar... | 1 | 4,032 |
React js: How to sort item from API data by ascending and descending | <p>I am fetching data <strong>from</strong> an <strong>API</strong>, which includes information about <strong>countries</strong>. I want to sort the countries by ascending and descending from <strong>onClick</strong> according their names. For now the order of name's output is in <strong>alphabetical</strong> order(A-Z... | 1 | 1,189 |
My code to determine 3 digit palindrome infinitely asking for number | <p>I have to make a code that determines if a three digit number is a palindrome (ie 121 where front to back it is the same,) and for some reason the program is infinitely asking for input. I cannot seem to figure out why. Any help would be appreciated, thanks!</p>
<p>Code:</p>
<pre><code>/* Class: CS1301
* ... | 1 | 1,208 |
karma - Cannot find plugin | <p>I am trying to run js test cases using karma. But Always getting plugin not found error. And funny part is the same config file, working fine for other co-worker of mine</p>
<p>Here is logs :</p>
<pre><code>$ karma start karma.conf.js
04 10 2016 17:51:24.755:ERROR [plugin]: Cannot find plugin "karma-babel-preproc... | 1 | 2,400 |
How to create html page layout using DIVs | <p>I've spend so many hours trying to figure out how to create html layout in the following format with no luck. Can someone guide me in the right direction? Thanks</p>
<h2>-----------------------------------------------------------------</h2>
<p>| headerDiv1 ... | 1 | 2,199 |
Printing a binary tree hierarchy using a Depth-first iterative deepening method or Breadth-First | <p>I'm not a programmer, but I'm currently experimenting with binary trees in Python, and I'm wanting to create a good method for printing out the binary tree, level by level; currently I have implemented a <strong>breadth-first</strong> method, printing each level starting at the root - which works fine, but was inter... | 1 | 1,276 |
How to align react component side-by-side | <pre><code>render() {
return (
<div className>
<Select
label="Gender"
placeholder=""
options={['Male', 'Female']}
/>
<br/>
<TextField
className="outlinedText"
label="Income"
onChange={this.getIncom... | 1 | 2,053 |
QThread passing data to and from | <p>I will try to explain what my program used to do and what I am tring to change:</p>
<p>I had this function that ran on a button click from the the main thread in class MainWindow : public QMainWindow :</p>
<p>The function looks like this and is specified inside another file:</p>
<pre><code>void MakeMeshStructure(... | 1 | 1,065 |
How to set value for input 'textfield' with JavaScript | <p>i have a method in my <code>openDB.js</code> logic class: </p>
<pre><code>getUserByUsername: function(username) {
return this.getUsers(username).then(function(users) {
return users[ username ];
});
},
</code></pre>
<p>i'm getting there user with a lot of properties/values.
i have a... | 1 | 1,225 |
Static wrapper library (for winsock), undefined reference to XXX | <p>I want to write a static library which uses functions from the winsock api (a winsock wrapper library). I include libws2_32.a and add compiler option -lws2_32. Now when I link to this library in another project, it gives me these errors:</p>
<pre class="lang-none prettyprint-override"><code>undefined reference to `... | 1 | 3,050 |
Elasticsearch crashes after showing t: failed to read local state , exiting | <p>I am new to Elasticsearch . I am running only one node locally . Up until now it was working fine . Now as soon as it starts it is crashing . The error stack is as follows .</p>
<p><code>C:\MyApps\elasticsearch6.5.1\elasticsearch-oss-6.5.1\elasticsearch-6.5.1\bin>elasticsearch.bat
[2018-12-10T14:20:49,956][INFO ... | 1 | 7,634 |
How to move a file in swift | <p>I'm trying to move a file to documents directory after I choose the file by using UIDocumentPickerViewController.</p>
<p>I don't see any error, but the file doesn't move to the directory.</p>
<p>I'd like to know how can I move the file.</p>
<pre><code>class MyClassController: UIViewController,UIDocumentPickerDele... | 1 | 1,516 |
Add class attribute to Form Errors | <p>I´m developing an application using Zend Framework 2 and I use <strong>FormRow</strong> helper to render a label, the input and errors (if present) in a Form.</p>
<pre><code>//within the view
echo $this->formRow($form->get('Name'));
</code></pre>
<p>When a user submits the form without filling the required i... | 1 | 1,075 |
Production Rake Tasks Don't Recognize My Models | <p>When I was running Heroku Bamboo, this was never a problem. Now, on Cedar, I get errors whenever I try to access my models from within a rake task on the server. This happens with <code>rake db:seed</code>, a standard rake task, as well as my own custom built tasks that explicitly include :environment. I even do so ... | 1 | 1,440 |
Graylog Collector Connection Refused | <p>I am trying to create a Graylog Server - Graylog Collector setup, where the graylog collector collects the syslog files on one machine and ships them to the server.</p>
<p>I have used the AWS AMI to create the Graylog Server and it is working as expected.</p>
<p>I installed a Graylog Collector on the same machine ... | 1 | 1,035 |
css Selector for selecting specific row and column in table in selenium webdriver | <p>When I try to find </p>
<pre><code>css=table#Salarytable.dataTable.3.4
</code></pre>
<p>in selenium ide, the cell is getting highlighted correctly. But when I use this locator in my selenium code..</p>
<pre><code>String salary=driver.findElement(By.cssSelector("table#Salarytable.dataTable.3.4")).getText();
</cod... | 1 | 2,168 |
XSLT change/override attribute on copy-of not applied (using saxon ) | <p>I have a xslt like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:db="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output method="xml" indent="yes" />
<xsl:template match="/">
... | 1 | 2,108 |
Materialize drop downs won't drop on hover | <p>For whatever reason, my Materialize drop down menus won't drop on hover (they should be default). </p>
<pre><code><ul id="dropdown2" class="dropdown-content">
<li><a href="#" class="hover-nav-finance" id="camp-dates">CAMP DATES</a></li>
<li><a href="#" class="hover-nav... | 1 | 1,770 |
How to send and receive file with Java RabbitMQ? | <p>How to send file with Java RabbitMQ?
Especially using message converter. </p>
<p>I'm using Spring Framework, can send String or ArrayList but can't send File. I'm only use <code>convertAndSend</code> and <code>convertAndReceive</code> to send File but get : </p>
<pre><code>org.springframework.amqp.AmqpIOException:... | 1 | 1,065 |
LDAP java error: adding entry.javax.naming.directory.NoSuchAttributeException | <p>I have a problem adding an entry in LDAP, precisely I want to add a user.</p>
<pre><code>class AddUser {
public static void main(String[] args) {
String userName = "manager";
String password = "pass";
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "co... | 1 | 1,090 |
transferring from PLC (OPC client server Kepware) to MS Access, C | <p>I am completely new to working with PLCs, but I have a project that need fetch data from an OPC client server, then send it to an Access database table. The bulk of the code minus OPCWriteGroupItems was from someone else. I am just lost on transferring the data that the get from OPCReadGroupItems to the proper varia... | 1 | 4,975 |
Windows 8 Metro ListView - can't disable ScrollViewer (C#/XAML) | <p>I have a ScrollViewer that contains a Horizontal StackPanel that contains 2 ListViews. </p>
<p>My goal is to get the 2 ListViews to scroll together. The problem I'm having is that I can't get the built-in ScrollViewers in the ListViews to be disabled...no matter what I do, they continue to scroll independently. ... | 1 | 1,518 |
Post comment to facebook wall using asp.net | <p>I have a website that I have registered as a facebook app - I now have an app ID.</p>
<p>My website is ASP.net C#. When the user clicks a button I'd like it to post a pre-defined message to their wall. I'm expecting Facebook to present a login dialog to the user - they login and grant publish permission to for my w... | 1 | 1,193 |
Bluetooth dial with 32feet.net and c# | <p>I am trying to provide a "click to dial" solution for someone to a bluetooth device such as a mobile phone. I have been trying to do so using the 32feet.net bluetooth api.</p>
<p>I haven't really done anything with bluetooth (since the days of at commands via a bluetooth serial port) but I have paired the device in... | 1 | 1,661 |
I can't add mapstruct in my Spring project | <p>I try to add mapstruct mapper in my Spring project.</p>
<p>I have a User entity. I need to show a list of users in the admin panel. For this, I did DTO UserForAdmin, mapper UserMapper and rest controller AdminRestController. When I try to get UserMapper I get errors.</p>
<p>I try two ways:</p>
<ol>
<li>Mappers.ge... | 1 | 4,036 |
How can I add a check box to a data table to be used to delete the selected row? | <p>I'm trying to add a check box to each row of my search results to allow the selected row of data to be deleted from MySQL and I'm stuck on how to do it. </p>
<p>here is what I have for my code I want to add the delete feature to.</p>
<pre><code> echo '<table width="100%" border="1" align="center" cellpadding="0... | 1 | 1,077 |
Jenkins with reverse proxy to alternative port number | <p>I have a jenkins builder server and I'm trying to set up the reverse proxy with nginx. I followed all the howto's and documentation from the jenkins site but the only thing different is I need the server to be reachable on a different port then the standerd https port.</p>
<p>The server has to be reachable at <code... | 1 | 1,931 |
AFNetworking Post Form-Data | <p>I am trying to do a simple POST request with Form-Data to an api but I always get a status 401 in return.</p>
<p>I can easily make the call outside of xcode (in Postman for instance) with success, all I do is POST to the url with key-value pairs of type Form-Data but in xcode it always fails.</p>
<p>Here is my AFH... | 1 | 2,657 |
Bean Bind to form using Freemarker | <p>I try to bind a bean to a form snippet from the form:</p>
<pre><code>[#ftl/]
[#import "spring.ftl" as spring /]
[#import "panda.ftl" as panda /]
[#import "discoveryProject.ftl" as discoveryProject/]
[#macro defineProjectForm newProject]
[@spring.bind "discoveryProjectDetailsBean"/]
[#if newProject?has_content &am... | 1 | 1,109 |
AngularJS - CRUD directive / service / controller patterns | <p>I'm wanting to create some directives that interacts with the parent controller / scope in some ways. I do CRUD in 2 ways:
A) Route based where if you're about to edit a item I use $location to change url to a given url
B) Same-Page based where if you click edit on a item it sets $scope.template from $scope.tpl, the... | 1 | 4,122 |
Display string variables in a Toast | <p>I wanna display the information of 7 <code>EditText</code> in a <code>Toast</code> so I put the edit texts information in 7 string variables but I don't know how.
Here is what I written:</p>
<pre><code> public class MainActivity extends Activity {
EditText ed1;
EditText ed2;
EditText ed3;
... | 1 | 1,024 |
Memory leak on Liferay 6.2 migration | <p>I've migrated a Liferay 6.2-CE-GA2 server from Liferay 6.1.1-ce-ga2.</p>
<p>I made a few changes in custom hooks and themes to addapt to the new version.</p>
<p>On locale I have never had a problem with memory nor with the 6.1 version, but once in production, server runs out of memory in a few hours.</p>
<p>I tri... | 1 | 13,259 |
Graph Adjacency List Implementation | <p>I am trying to represent a Graph in <code>Adjacency List</code> using C#, like the code bellow.
<strong>But I would like to know where I can find a better implementation in C#.
Like this website for Java: <a href="http://algs4.cs.princeton.edu/41undirected/Graph.java.html" rel="nofollow">http://algs4.cs.princeton.ed... | 1 | 1,885 |
Symfony2 - Form errors (for the entire form, NOT individual fields) not displaying | <p>Cross-posted from the Symfony2 Google Group since there haven't been any responses to my question.</p>
<p>I have the following form:</p>
<pre><code><form id="contact-form" action="{{ path('_contact') }}" method="post" {{ form_enctype(form) }}>
<fieldset>
<legend>Send us a message</... | 1 | 1,501 |
How To Increase The Resolution In Camera Preview? | <p>I have tried a simple code from Android Dev. (<a href="https://developer.android.com/guide/topics/media/camera.html" rel="nofollow noreferrer">https://developer.android.com/guide/topics/media/camera.html</a>) which display a camera preview. However, when I run the app on my phone, the resolution is low (blurred). My... | 1 | 2,697 |
Cloudera HA HDFS NameNode won't start | <p>When I try and enable High Availability for my Cloudera HDFS service, my NameNode supervisor fails to start with this error: </p>
<p><code>java.io.IOException: Cannot start an HA namenode with name dirs that need recovery. Dir: Storage Directory /disk0/dfs/nn state: NOT_FORMATTED</code></p>
<p>This is after I've a... | 1 | 1,362 |
C++ timegm conversion DST to a certain timezone at a given time in the future? | <p>I need an accurate conversion in my class from UTC time to local time of a given timezone, with or without DST in effect. My problem is, that when I use <code>struct tm</code> I have to provide the tm_isdst member, or leave it -1 to be determined automatically.</p>
<pre><code>from mktime(3) - linux man page:
"The v... | 1 | 1,095 |
Apollo 2.0.0 Graphql cookie session | <p>Can someone help me on this, My setup was as follows prior to Apollo 2.0, I had a server.js in which i used express and graphql-server-express
I had a http only cookie session, when a user logs in I set the jwt token as a cookie and it is set in browser as http only.
On subsequent request I validate the cookie that ... | 1 | 1,218 |
Permission Denied While Accessing Files in Anaconda Prompt | <p>I have a Python script that accesses some files, form example one line of code appends some text to a .txt file.
It runs correctly in a normal cmd.exe, with or without Admnistrator access. But while using a Anaconda Prompt or a cmd.exe opened from Anaconda Navigator it gives a <code>PermissionError: [Errno 13] Perm... | 1 | 1,780 |
Use inputs in AngularJS Material bottom-sheet | <h1>The problem</h1>
<p>I'm designing a Cordova hybrid app using the (very) new <strong><a href="https://material.angularjs.org/">AngularJS Material Design dependency</a></strong>.</p>
<p>I have a log in form in a bottom sheet called via <code>$mdBottomSheet</code> service. Example below:</p>
<pre><code>$scope.show... | 1 | 1,426 |
Configuring Castle Windsor using xml/app.config | <p>I am currently building a sample application using Castle Windsor. The motto is to use xml/app.config to switch method interception on/off. I had used the Fluent API earlier and it worked as a charm. As the next step, I am trying to replace the fluent API with my xml.</p>
<p>The gist of the code is as follows:
A cl... | 1 | 1,634 |
DataTables: how can I avoid column sorting if I have checkbox and popup controls in the header? | <p>I have a DataTables table, which has checkboxes and popups in some of the header columns. (Plus I use FixedColumn and ColReorder plugins too). A mock-up of what I have in a jsfiddle is at the bottom</p>
<p>My problem is that if a user tries to check the checkboxes or push the popups, the sorting event takes over ev... | 1 | 2,466 |
Ocelot with Jwt Auth | <p>I'm setting up authentication with jwt auth in ocelot (api gateway in asp.net core), but has not succeeded. I execute my code in postman, but the output is not as expected.</p>
<p>this is ConfigureServices in Startup.cs
I get the ApiKey from appsettings.json, and I add parameter of Jwt like issuer, audience, and Is... | 1 | 1,312 |
FirebaseException: Failed to parse node with class in NodeUtilities.NodeFromJSON | <p>I'm using Firebase in Java. The following simple code has always worked fine when users' information had to be updated:</p>
<pre><code>final FirebaseBean_User userObject = new FirebaseBean_User(uuid, name, timestamp, points, gamesPlayed, gamesWon);
mFirebaseUser.setValue(userObject, System.currentTimeMillis());
</c... | 1 | 1,332 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.