title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Naming Classes - How to avoid calling everything a "<WhatEver>Manager"? | <p>A long time ago I have read an article (I believe a blog entry) which put me on the "right" track on naming objects: Be very very scrupulous about naming things in your program.</p>
<p>For example if my application was (as a typical business app) handling users, companies and addresses I'd have a <code>User</code>,... | 0 | 1,424 |
Receiver not registered exception error? | <p>In my developer console people keep reporting an error that I cannot reproduce on any phone I have. One person left a message saying he gets it when they try to open the settings screen of my battery service. As you can see from the error it says that the receiver is not registered.</p>
<pre><code>java.lang.Runtime... | 0 | 2,306 |
Reshape multiple value columns to wide format | <p>I have the following data frame and i want to use cast to create a "pivot table" with columns for two values (value and percent).
Here is the data frame:</p>
<pre><code>expensesByMonth <- structure(list(month = c("2012-02-01", "2012-02-01", "2012-02-01",
"2012-02-01", "2012-02-01", "2012-02-01", "2012-02-01", ... | 0 | 4,620 |
How to find Windows product Key if your sticker is damaged | <p>I found a possible solution to the question here: <a href="http://youtu.be/71Vc9QiraQE" rel="nofollow noreferrer">http://youtu.be/71Vc9QiraQE</a></p>
<p>I am not a power shell user myself and cannot quite follow the code in the script. </p>
<p>It would be a useful script to help with reinstalls when operating syst... | 0 | 1,150 |
[Vue warn]: Error in render: "TypeError: Converting circular structure to JSON | <p>I have successfully created a Single File Component in Vue; there are no compilation errors, however, when I attempt to view the component (by navigating to it's route link), the expected page is not displayed, and instead, I get a stack trace printed in the (Chrome) browser - using the Vue Devtools plugin.</p>
<p>... | 0 | 4,900 |
Android UsbSerial library problem in ch340 | <p>I am trying to convert the open-source python project <a href="https://github.com/espressif/esptool" rel="nofollow noreferrer">esptool.py</a> to the Android(java) project.<br />
In android, for serial communication, I am using <a href="https://github.com/felHR85/UsbSerial" rel="nofollow noreferrer">USB Serial</a> li... | 0 | 1,514 |
The cipher 'aes256-cbc' is required, but it is not available | <p>I am trying to do an SFTP using JSch, but I encountered some error:</p>
<blockquote>
<p>com.jcraft.jsch.JSchException: The cipher 'aes256-cbc' is required, but it is not available.</p>
</blockquote>
<p>Below is the code I used. Is there anything I missed out?</p>
<pre><code>JSch jsch = new JSch();
Session sessi... | 0 | 3,807 |
Access HttpContextAccessor from startup.cs in .net Core WebApi | <p>I'm logging exceptions to database in asp.net core. MyDbContext take HttpContextAccessor parameter.So, I'm sending HttpContextAccessor to MyDbContext.cs for access my JWT. But, I can't access my HttpContextAccessor from Startup.cs. How can I achieve this?</p>
<p>Startup.cs</p>
<pre><code> public void ConfigureSe... | 0 | 1,046 |
Bootstrap menu (nav) collapse horizontally instead of vertical | <p><img src="https://i.stack.imgur.com/WmANE.gif" alt="enter image description here">i'm using this Html /css for and the menu(bootstrap nav ) and it is always horizontal on a small screen / mobile device. that I want it / need it to be vertical.i'm using bootstrap 3.2 </p>
<pre><code><div class="navbar navbar-inve... | 0 | 1,908 |
Implement Google Analytics in ios swift | <p>I am following the Analytics for iOS (developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift) guide and I've got errors in my Swift code Project that I can't fix.
I am working with XCode 6.4, Swift and the iOS Deployment Target 8.1.</p>
<p><strong>Step 1</strong></p>
<p>First I installed a Google S... | 0 | 1,177 |
What is the correct syntax of ng-include? | <p>I’m trying to include an HTML snippet inside of an <code>ng-repeat</code>, but I can’t get the include to work. It seems the current syntax of <code>ng-include</code> is different than what it was previously: I see many examples using</p>
<pre><code><div ng-include src="path/file.html"></div>
</code></p... | 0 | 1,207 |
Spring 3 Request processing failed; nested exception is java.lang.NullPointerException | <p>I am having difficulties while trying to launch my app, i looked for my mistake for a couple of days but i am stuck somewhere in the code and asking for your assistance
Thanks</p>
<p><strong>SingleTransactionsController</strong></p>
<pre><code>@Controller
public class SingleTransactionsController {
private SingleT... | 0 | 2,441 |
WPF Expander with GridSplitter | <p>In my WPF window (.NET 4.0) I have Grid with two columns: stretched textbox (or whatever) on the left side and Expander on the right. Also in Expander I have GridSplitter, which is intended to resize both left and right columns when Expander is expanded. But it doesn't work.</p>
<p>This is my XAML code:</p>
<pre><... | 0 | 1,823 |
Cannot use "LATEST" (type string) as type *string in field value | <p>I'm trying to run a ECS task using the new aws-sdk-go (v2). And I'm having some trouble to initialize the <code>&ecs.RunTaskInput{}</code> struct.</p>
<p>According to the file, this is the struct definition:</p>
<pre><code>type RunTaskInput struct {
_ struct{} `type:"structure"`
// The short name or f... | 0 | 1,496 |
How to use UsageStatsManager? | <h2>Background</h2>
<p>Google has deprecated the function "<a href="http://developer.android.com/reference/android/app/ActivityManager.html#getRecentTasks(int,%20int)" rel="noreferrer"><strong><code>getRecentTasks</code></strong></a>" of "ActivityManager" class. Now all it does is to get the list of apps that the curr... | 0 | 1,222 |
The abstract schema type is unknown | <p>I'm using Spring 3.2.3, JPA 2.1, JUnit 4.11. I'm trying to run a junit test and I keep getting the abstract schema type is unknown error. Here is my entity (truncated for space, it has all the getters and setters):</p>
<pre><code>@Entity
@Table(name = "WEB_PROFILES")
public class TestWebProfile implements Seriali... | 0 | 1,484 |
error inserting android.database.sqlite.sqliteconstraintexception error code 19 constraint failed | <p>I know there are so lot of threads about this problem but none of my own problem.
I have a spinner connected in the database that displaying the foreign key of the specific table. And it appears error inserting. </p>
<p><code>02-18 11:44:34.500: E/SQLiteDatabase(20811): Error inserting ConsumerName=android.databas... | 0 | 5,639 |
MVC 6 : how to use RESX files? | <p>I am trying to migrate my existing ASP.NET MVC 5 project to MVC 6 vNext project , while I have been able to get through and resolve most of the issues , I cant seem to find any documentation on how to use the RESX resource files for localization in MVC 6 </p>
<p>My ViewModels are using statements like </p>
<pre><... | 0 | 1,277 |
How Do I Create A 2 Column Form WIth React Material-UI? | <p>I am creating a react form with material-ui.</p>
<p>I would like the form to be a fixed 2 column view and not flow based on the browser size so it is always like this:</p>
<pre><code>|First Name |Last Name|
|Street Address |City |
</code></pre>
<p>And not end up like</p>
<pre><code>|First Name |La... | 0 | 1,031 |
is missing a template for request formats: text/html | <blockquote>
<p>I have Term and Phrase models and I am adding Nested Resources. I want to get the Term Id for Phraes_term to create a data pair</p>
<p>Example: Term 1 and Phrase 2.
But when you press the new button from show.html.erb term, an error will occur</p>
</blockquote>
<pre><code>-->error :PhrasesTermsContro... | 0 | 1,435 |
Odoo 8 domain filter on Many2one field | <p>I would like to make a filter on a Many2one field in Odoo 8.
This is for the stock module. </p>
<p>I have created extra fields where the user can enter additional information. Now we want to filter the available fields that appear in the dropdown, or when clicking the "more" butten to show only the additional fiel... | 0 | 1,913 |
At least 2 parameter(s) provided but only 1 parameter(s) present in query by Use Specification and Sort | <p>When I use the JAP interface JpaSpecificationExecutor, I typed the following code and throws an error "At least 2 parameter(s) provided but only 1 parameter(s) present in query", I don't know why.</p>
<p>the invoke code </p>
<pre><code>@Override
public Result findSightsWithConditions(String cityId, Map<String, ... | 0 | 3,235 |
UnsupportedHttpVerb : The resource doesn't support specified Http Verb. RequestId:fa9c21f3-0001-005a-1484-d83478000000 | <p>I want to store a file to azure blob data through angular2 . so that i have created a storage with name "mysampleoxy" </p>
<p>and then created a container "videos" under blob.
Now i want to upload the file from my local server to the Azure so that , i have created a sas key with url
<a href="https://mysampleoxy.bl... | 0 | 1,199 |
android.support.v7.widget.AppCompatButton cannot be cast to android.view.ViewGroup | <p>i m replacing my fragment through onclick button but getting this error plz help
this is my detail activity fragment </p>
<pre><code>public class DetailActivityFragment extends Fragment{
TextView textView;
ImageView imageView;
TextView details;
Button button;
public DetailActivityFragment() {
... | 0 | 3,381 |
What is the fastest search method for a sorted array? | <p>Answering to <a href="https://stackoverflow.com/questions/4752028/whats-wrong-with-this-interpolation-search-implementation/4752042#4752042">another question</a>, I wrote the program below to compare different search methods in a sorted array. Basically I compared two implementations of Interpolation search and one ... | 0 | 2,194 |
Wait for Observable to complete within an Observable | <p>I have the following data structure:</p>
<pre><code>export class Repo {
id: number;
name: string;
contributors: Contributor[];
}
export class Contributor {
id: number;
login: string;
}
</code></pre>
<p>I am using <code>Observable<Repo></code> to fetch all repo data but I want to internal... | 0 | 1,440 |
read from a PCap file and print out IP addresses and port numbers in c, but my result seem wrong | <p>I am reading a pcap file and I want to print out the ip address and port number of each packet. I am using code from <a href="http://www.tcpdump.org/pcap.htm" rel="nofollow">http://www.tcpdump.org/pcap.htm</a> and <a href="http://www.rhyous.com/2011/11/13/how-to-read-a-pcap-file-from-wireshark-with-c/" rel="nofollow... | 0 | 2,889 |
How to convert string to double in PowerShell? | <p>I have a script in PowerShell that I am using to import data from a CSV. I am receiving an error </p>
<hr>
<p>Cannot convert value "Journal Amount" to type "System.Double". Error: "Input string was not in a correct format."
At C:\TestPowerShell\TestPowerShell1.ps1:98 char:1
+ $JournalAmount = [double] $_.PSObject.... | 0 | 1,602 |
gcc complains: variable-sized object may not be initialized | <p>I've looked at these and they do not answer my question:</p>
<p><a href="https://stackoverflow.com/questions/9688219/variable-sized-object-may-not-be-initialized">variable-sized object may not be initialized</a></p>
<p><a href="https://stackoverflow.com/questions/3082914/c-compile-error-variable-sized-object-may-n... | 0 | 1,034 |
How to properly INSERT INTO MySQL Using PHP Variables | <p>I'm having a problem with my personal server where I'm trying to create a database for the decade old binders I have for the Yu-Gi-Oh! Trading Card Game (haven't played in years). In testing the INSERT INTO, I keep running across a particular problem...</p>
<blockquote>
<p>You have an error in your SQL syntax; ch... | 0 | 1,303 |
C++ Abstract Factory using templates | <p>I'm trying to create an abstract factory template for multiple abstract factories in C++ and came up with this.</p>
<pre><code>#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#include <map>
#include <stdio.h>
class Base
{
public:
virtual ~Base() {}
virtual bool Get() = 0;
};
class Derived... | 0 | 1,215 |
io.reactivex.exceptions.UndeliverableException The exception could not be delivered to the consumer because it has already canceled/disposed | <p>Getting an UndeliverableException while using <code>completable</code></p>
<pre><code>public Completable createBucketWithStorageClassAndLocation() {
return Completable.complete()
.doFinally(() -> {
Bucket bucket =
storage.create(
... | 0 | 1,791 |
Blank activity in Google Maps | <p>I am trying to create a basic google map activity, but when i try to run it to my smartphone, I get a blank activity (click <a href="http://postimg.org/image/6hr5qlwhf" rel="nofollow noreferrer">here</a> to see a screenshot of the issue). What im doing wrong? It is something wrong with my API Key, maybe?</p>
<p><st... | 0 | 1,406 |
Access Unity StreamingAssets on Android | <p>I wrote some code to get all the folders inside a folder inside the StreamingAssets and then to get all the files in that folder.
It works well on Windows but I can't get it to work on Android. </p>
<p>Here is the code :</p>
<pre><code>foreach (string s in Directory.GetDirectories(model.path + "/Levels")) {
... | 0 | 2,610 |
Update rows in MySQL table with CodeIgniter | <p>So I'm new to PHP and MySQL generally, and MVC applications. Forgive me if this is a question that has been answered already, I couldn't find anything that was crystal clear and showed the complete MVC flow of this.</p>
<p>So I have an HTML table full of inputs populated by data in a, I generate a form for each row... | 0 | 2,186 |
WIFI_STATE_CHANGED_ACTION intent not received upon connection to WiFi access point? | <p>Part of my app's functionality is to scan and display a list of WiFi access points, and then connect to the one chosen by the user. I have this functionality working. Now, I also wish to be notified when the connection "goes through". This should be fairly simple, but I find myself stumbling. </p>
<p>I have read th... | 0 | 1,511 |
NSData won't accept valid base64 encoded string | <p>I'm implementing JSON Web Token authentication on the iOS (7) cient-side. It's working nicely. My app rceives tokens, and can make authenticated calls to my server with them.</p>
<p>Now, I want my client side code to check for an expiration date on the token so it can know when to re-authenticate. Checking for the ... | 0 | 1,036 |
Parse json from google maps reverse geocode? | <p>How can I parse through the response from a reverse geocode using Google Maps JavaScript API v3.</p>
<pre><code>geocoder.geocode({'latLng': latlng}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[0]) {
infowindow.set... | 0 | 1,658 |
Show dropdown in cell of kendo grid in template | <p>I have a kendo grid working fine but i want to display the drop down in all cell of a column ie "Security Action" column cell. whether u r editing or not editing so the user know that this is dropdown in that cell.I dont want like that when click in cell a drop down appear like mention in <a href="http://demos.kend... | 0 | 6,292 |
TabIndex not working as expected | <p>I am developing a registration form in ASP.NET, as usual it has lots of textboxes.
I have created tabindices on the text box.
Each input line is included under <code><ul></code> tag.
The tab indices are set serially, as shown in image the focus jumps from 19 to 22 directly, skipping 20 and 21. Notice that the ... | 0 | 4,020 |
How do I fix SQL Error: ORA-00001: unique constraint (ALERTS2.PK_UP_MODULE_MASTER) violated | <p>Gives me error when I try to insert and it finally inserts after couple of retries with out any error.</p>
<pre><code>SQL Error: ORA-00001: unique constraint (ALERTS2.PK_UP_MODULE_MASTER) violated.
*Cause: An UPDATE or INSERT statement attempted to insert a duplicate key.
</code></pre>
<p><strong>INSERT statement... | 0 | 1,404 |
Spring MVC. HTTP Status 404 | <p>I began to learn "Spring MVC" from this course: <a href="http://www.pluralsight.com/training/Courses/TableOfContents/springmvc-intro" rel="nofollow noreferrer">http://www.pluralsight.com/training/Courses/TableOfContents/springmvc-intro</a>
At step "Building->Run the Application" I'm stuck.</p>
<p>When I try to go t... | 0 | 1,702 |
Add text/label onto links in D3 force directed graph | <p>I've been working on modified force directed graph and having some problems with adding text/label onto links where the links are not properly aligned to nodes. How to fix it?</p>
<p>And how I can add an event listener to an SVG text element? Adding <code>.on("dblclick",function(d) {....}</code> just doesn't work.<... | 0 | 2,781 |
Android: BroadcastReceiver when insert/remove the device USB plug into/from a USB port | <p>My application don't catch "ACTION_USB_DEVICE_ATTACHED" but "ACTION_USB_DEVICE_DETACHED" work fine.
Application start correctly if I connect usb device but I disconnect during execution <code>BroadcastReceiver</code> right catch "ACTION_USB_DEVICE_DETACHED". If I attach again <code>BroadcastReceiver</code> don't cat... | 0 | 1,568 |
xml schema, precision of decimal value | <p>This is my xml (not whole):</p>
<pre><code><xsd:complexType name="xx">
<xsd:complexContent>
<xsd:extension base="tns:xx">
<xsd:sequence>
<xsd:element name="rekVrednostDdv" nillable="true" type="decimal"/>
<xsd:element name="xx" nillable="true" t... | 0 | 1,216 |
SSH Private Key Permissions using Git GUI or ssh-keygen are too open | <p>Recently I've been unable to clone or push to github, and I'm trying to find the root cause.</p>
<p><em>This is on windows</em></p>
<p>I have cygwin + git as well as msysgit.</p>
<p>Msysgit was installed with the following options:</p>
<ul>
<li>OpenSSH</li>
<li>Use Git from Windows Command Prompt</li>
</ul>
<p>... | 0 | 1,116 |
PostgreSQL - fetch the rows which have the Max value for a column in each GROUP BY group | <p>I'm dealing with a Postgres table (called "lives") that contains records with columns for time_stamp, usr_id, transaction_id, and lives_remaining. I need a query that will give me the most recent lives_remaining total for each usr_id<br></p>
<ol>
<li>There are multiple users (distinct usr_id's)<br></li>
<li>time_st... | 0 | 1,510 |
The declaration for the entity "HTML.Version" must end with '>' | <p>I am new to XML Parsing and DTDs.
I was trying to create a simple SpringBean program and instantiate a class (Triangle.java) using the Spring.xml.</p>
<p>My DrawingApp.java looks like:</p>
<pre><code>import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
... | 0 | 2,027 |
Email validation in Java without using regular expression | <p>I understand that validating email with <strong>Regex</strong> would have just been a matter of 3-4 lines of code. However, I'm looking to validate email <strong><code>without using</code></strong> <strong><code>Regex.</code></strong> To an extent, the code successfully passes almost all the validations, however, st... | 0 | 1,397 |
java.lang.IllegalStateException: Cannot get a numeric value from a text cell Exception while uploading excel sheet to server | <p>I am uploading an Excel file to server Ref : <a href="https://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet">How to upload files to server using JSP/Servlet?</a></p>
<p>Here is my code which causes error</p>
<pre><code>public static ArrayList<MOPBDMMapping> readExcel(Inp... | 0 | 1,975 |
Multiple PrimeFaces dialogs on one page | <p>I am facing problems with dialog windows validation. On home.xhtml I have a tabview with 3 nested dataTables and CRUD buttons (see screenshot). Every button is supposed to call a dialog window with a form to add/edit entity. But whenever I fail to validate some field in any form - all other forms are displayed too:<... | 0 | 11,515 |
multi-user login java (admin,user,teacher) | <p>I have three user types in database.
<a href="http://oi44.tinypic.com/2z8qflw.jpg" rel="nofollow">http://oi44.tinypic.com/2z8qflw.jpg</a></p>
<p>And heres my login form
<a href="http://oi44.tinypic.com/20p5v04.jpg" rel="nofollow">http://oi44.tinypic.com/20p5v04.jpg</a></p>
<p>When i choose admin as usertyp... | 0 | 1,104 |
'Tainted canvases may not be exported' when using drawImage | <p>When trying to draw an image onto a canvas, and then saving the canvas to an image, I get the following error:</p>
<blockquote>
<p>Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported</p>
</blockquote>
<p><div class="snippet" data-lang="js" data-hide=... | 0 | 1,142 |
Ajax drop down for Country State & City in Codeigniter? | <p>I am making country state and city drop down with the help of ajax in our codeigniter frame work .</p>
<p>The structure of database given bellow.</p>
<p><strong>Country</strong></p>
<pre><code>country_id,country_name
</code></pre>
<p><strong>State</strong></p>
<pre><code>country_id,state_id,state_name
</code></... | 0 | 1,732 |
tableView didSelectRowAtIndexPath doesn't work properly on iOS 7. Why? | <p>In first place I would like to say that I'm only making this question, because I would like to understand what is happening.</p>
<p>I opened an old Xcode project (a very simple one) in a fresh installation on Xcode5.
When I realize that it doesn't work on iOS 7. Why? Don't know..</p>
<p>I saw some other questions,... | 0 | 1,411 |
VSCode c++ task.json include path and libraries | <p>IntelliSense uses c_cpp_properties.json >> includePath to find the headers for auto-completion, but I noticed I still need to specify the include path inside the task.json >> tasks >> args to build.</p>
<p>I found in the documentation that the includePath is pretty much the same path I would specify in "-I":</p>
<... | 0 | 1,323 |
Remove border color for navbar-toggler Hamburger icon in Bootstrap using CSS | <p>I've been stuck in this for a long time. Searched and tried many ways to remove the border color for the BS4 hamburger icon when clicked on it (in my local, it appears as Yellow. In this snippet, It's blue)</p>
<p>Could anyone help fix this? Appreciate the help!</p>
<p>This is my code:
<div class="snippet" data-l... | 0 | 1,069 |
Backing Out a backwards merge on Mercurial | <p>How do you reverse the effect of a merge on polarised branches without dying of agony?</p>
<p>This problem has been plaguing me for <strong>months</strong> and I have finally given up. </p>
<p>You have 1 Repository, with 2 <strong>Named</strong> Branches. A and B. </p>
<p>Changes that occur to A will inevitably... | 0 | 1,046 |
Copying Command Line Arguments Into an Array | <p>For a program, I would like to make an array copy of the arguments sent in by command line using malloc().</p>
<p>So for example if I do ./a.out one two three
I want an array with {a.out, one, two, three} in it. </p>
<p>However, I have some issues getting my program to work. Here's what I have:</p>
<pre><code>sta... | 0 | 3,771 |
jQuery ajax request using jsonp error | <p>I'm writing an app and I need to access some json data in the client side from another server. Because of the cross domain issue I plan on using jsonp. jQuery allows me to do this using the $.getJSON() method, however, I have no way to tell if the method has failed (i.e., the server is not responding or something). ... | 0 | 1,048 |
Pandas: How to Compare Columns of Lists Row-wise in a DataFrame with Pandas (not for loop)? | <p><strong>DataFrame</strong></p>
<pre><code>df = pd.DataFrame({'A': [['gener'], ['gener'], ['system'], ['system'], ['gutter'], ['gutter'], ['gutter'], ['gutter'], ['gutter'], ['gutter'], ['aluminum'], ['aluminum'], ['aluminum'], ['aluminum'], ['aluminum'], ['aluminum'], ['aluminum'], ['aluminum'], ['aluminum'], ['alu... | 0 | 2,151 |
bootstrap dropdown menu active class | <p>i am trying to create a nav bar by using bootstrap but when I redirect active class to dropdown menu, all the sub menus receive active class. I only want Project section to use active class</p>
<pre><code><nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
... | 0 | 1,041 |
org.xml.sax.SAXParseException: Content is not allowed in prolog | <p>Yes, I know that general forms of this question have been asked time and time again. However, I couldn't find anything that helped me solve my problem, so am posting this question which is specifically about my problem.</p>
<p>I am trying to figure out why I am getting a <code>SAXParseException</code> (<code>Conten... | 0 | 1,900 |
Applovin - Undefined symbols for architecture armv7 | <p>I have integrated Applovin in my Unity project. I then exported my project to iOS and tried to build it. I ended up with the following errors.</p>
<pre><code>Ld /Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Products/test.app/test normal armv7
cd /Users/... | 0 | 1,689 |
java.lang.RuntimeException: Unable to start activity ComponentInfo {...}: java.lang.NullPointerException | <p>when you click to go from one activity to another, I have an error:</p>
<p><code>java.lang.RuntimeException: Unable to start activity ComponentInfo {...}: java.lang.NullPointerException</code></p>
<p>I am missing some method? Please help me to understand what I did wrong, which is why you see this error?</p>
<p>M... | 0 | 2,814 |
jqgrid sample using array data, what am I missing | <p>I'm new in jqgrid, I'm just trying thes example to work. I have a html file only, nothing more. When I ran this file, array data is not showing. What am I missing here? Thanks in advance.</p>
<pre><code><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jqG... | 0 | 2,436 |
documentum Session getting error | <pre><code> import com.documentum.com.DfClientX;
import com.documentum.com.IDfClientX;
import com.documentum.fc.client.IDfClient;
import com.documentum.fc.client.IDfSession;
import com.documentum.fc.client.IDfSessionManager;
import com.documentum.fc.client.IDfSysObject;
import com.documentum.... | 0 | 2,709 |
does lombok have side effects on jpa | <p>I am working on converting a jpa entity to use lombok. The resulting code is the following:</p>
<pre><code>@Entity
@Table(name = "TEST")
@Data
@NoArgsConstructor
@AllArgsConstructor
class Test {
...
@Column(name = "FORMATTING")
@Enumerated(EnumType.ORDINAL)
private FormatType formatType;
...
}
</code... | 0 | 1,947 |
Adding a simple left/right swipe gesture | <p><strong>I need to add a simple left/right swipe gesture</strong> so that the 'selected' image cycles when swiped on mobile, similar to clicking the buttons in the hero component, also similar to pressing the left/right arrow keys on a keyboard</p>
<p>I don't have the most experience with JavaScript so if anyone coul... | 0 | 1,866 |
An existing connection was forcibly closed by the remote host with WCF | <p>We have a wcf pub/sub setup using reliable sessions via netTcpBinding and on one machine where both the publication service and subscription service are being hosted in a console applications we get the above error. This machine is in a workgroup. Everywhere else we have deployed the machine is in a domain and it wo... | 0 | 1,627 |
Handling multiple records in a MS SQL trigger | <p>I am having to use triggers in MSSQL for the first time, well triggers in general. Having read around and tested this myself I realise now that a trigger fires per command and not per row inserted, deleted or updated.</p>
<p>The entire thing is some statistics for an advertising system. Our main stat table is rathe... | 0 | 7,796 |
Syslog-ng forward raw log only | <p>I have been trying to forward logs from a firewall to a SIEM using syslog-ng but the problem is that I want to forward only the original raw log without the added headers added by syslog-ng. I have the following syslog-ng conf file. </p>
<pre><code>@version: 5.2
#Default configuration file for syslog-ng.
#
# For a ... | 0 | 1,512 |
Can't figure out how sum(1) is working in this query | <p>So I am trying to combine to query's and to do that I need to figure out what is going on in this one. I'm still relatively new to sql server and I am forced to dive right into some complicated qrys and sometimes I get stuck on simple things like this. My problem is that the Sum(1) function is used and I'm not entir... | 0 | 2,120 |
UITableViewCell in Swift | <p>This is a sample code with <code>UITableViewController</code> and <code>CoreData</code>. Main file <code>MainTableViewController.swift</code>:</p>
<pre><code>import UIKit
import CoreData
class MainTableViewController: UITableViewController {
var results:AddrBook[]=[]
init(style: UITableViewStyle) {
super.ini... | 0 | 1,720 |
How do I access Microsoft.Owin.Security.xyz OnAuthenticated context AddClaims values? | <p>I'm trying to retrieve user properties that are returned as the OnAuthenticated context and added as a claims following this example: <a href="https://stackoverflow.com/questions/18942196/how-to-access-facebook-private-information-by-using-asp-net-identity-owin">How to access Facebook private information by using A... | 0 | 1,325 |
Replacing Fragment in ViewPager shows blank screen? | <p>I'm having a lot of trouble getting Fragments to work with Tabs/Swiping. I have one activity and two Fragments, one which has a ListView. What I want is when I swipe from fragment 1 to the fragment with the ListView, to refresh the ListView or if possible recreate the second fragment....</p>
<p>What I am trying rig... | 0 | 3,406 |
Can't run hello world on drools - dlr files are not picked from classpath by KieContainer | <p>Following documentation: <strong><a href="http://docs.jboss.org/drools/release/6.1.0.CR1/drools-docs/html_single/" rel="nofollow noreferrer">6.1. The Basics</a></strong> I created a simple class Applicant which should be checked with drl file loaded from the class path by KieContainer.</p>
<p>From the doc:</p>
<p>... | 0 | 1,210 |
rails 4: mapping values are not allowed in this context at line 2 column 11 (Psych::SyntaxError)? | <p>I have successfully installed rails 4 and created project using rails 4.0.0</p>
<pre><code>rails s
</code></pre>
<p>for the first time was working fine. But after adding 'devise' gem in gemfile</p>
<pre><code> gem 'devise', '~> 3.0.0.rc'
</code></pre>
<p>and running bundle install, I am getting following erro... | 0 | 2,949 |
How to read excel(.xlsx) in java using poi? | <p>I am trying to read excel in java.I have following code.</p>
<pre><code>import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.DateUtil;
import org.apache.poi.ss.usermodel.Row;
imp... | 0 | 1,385 |
The property is part of the object's key information and cannot be modified | <p>I have the following model class, where its <code>NETWORKID</code> (PK) is not system generated:-</p>
<pre><code> public partial class NetworkInfo
{
public long NETWORKID { get; set; }
public long WORKSTATIONID { get; set; }
public string NICNAME { get; set; }
public string NICD... | 0 | 1,613 |
Python extract data from xml and save it to excel | <p>I would like to extract some data from an XML file and save it in a table format, such as XLS or DBF.</p>
<p>Here is XML file i have:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header />
<SO... | 0 | 1,427 |
Implementing a doubly linked list copy constructor in C++ | <p>I'm having trouble figuring out how to implement a copy constructor for doubly linked lists. The code I have so far is incorrect, I believe, because I lose track of the header node, but I'm not sure how to rectify this. Any help would be much appreciated!</p>
<p>DoublyLinkedList.h</p>
<pre><code>#include <cstdl... | 0 | 1,064 |
Jackson Deserialize custom boolean json property | <p>I want to deserialize some boolean values that I get in a JSON. The problem is that those values can be null, true, false, "true", false, "Y" or "N".</p>
<p>I've created my own boolean deserializer</p>
<pre><code>public class CustomBooleanDeserializer extends JsonDeserializer<Boolean> {
final protected ... | 0 | 1,237 |
Twitter Bootstrap Tabs: How to: Increase spacing between tabs | <p>I'm using ui bootstrap for angular (which uses twitter bootstrap css). I was able to center the tabs, but I cannot figure out how to add spacing (margins) between the tabs (RIGHT OR LEFT). I tried adding margin-right: 100px; in .nav-tabs > li but that did not work.</p>
<p><strong>Html:</strong> </p>
<pre><cod... | 0 | 1,244 |
UITableView inside a ViewController with custom cell without storyboard | <p>I'm working with Swift 2.0 and Xcode 7.2.</p>
<p>I want to learn how to make an app without a storyboard (UI with pure programming code). To start off, I am trying to make a simple app, with three labels, inside a custom UITableView cell which will be updated dynamically through the internet.</p>
<p>Here is what I... | 0 | 1,055 |
Migration error with Django 1.7.1 | <p>I'm getting an error when performing a migration after introducing a new app (django-allauth). I'm not sure what else to try in order to fix the error. I've tried a few things but they don't seem to help unfortunately.</p>
<p>when running <strong>manage.py migrate</strong>:</p>
<pre><code>File "D:\Python27\Lib\sit... | 0 | 2,519 |
How to solve npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 | <p>if I am trying to install a new library I getting this warning. And also that library is not getting installed</p>
<pre><code>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform fo... | 0 | 2,908 |
jQuery Validation message colour | <p>I have a jQuery validation routine for my form, I've managed to highlight each control border in red - that was pretty easy.</p>
<p>I would like to display the messages returned for each error are shown in black, and I would like to change that to red - unfortunately I'm unable to find any useful information on how... | 0 | 2,071 |
AccessDeniedException when deploying the lambda function | <p>I am trying to create the lambda function in aws through the AWS command.When I am executing the command, getting the below error. But the role which I've mentioned in the AWS command has enough permission in order to deploy the lambda function.I'm not sure what went wrong even though role has permission. </p>
<p><... | 0 | 1,278 |
SyntaxError: Unexpected token { when compiling my node.js code | <p>I'm getting the below error every time with the first 'import' when I trying to run grandstack neo4j graphql api app.</p>
<pre><code>PS C:\Users\grand-stack-starter-master\api> nodemon index.js
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js... | 0 | 1,066 |
Owin Bearer Token Not Working for WebApi | <p>I have gone through loads of documentation on this, My google search shows that I've visited all the links on the first page</p>
<p><strong>Problem</strong>
Token Generation works fine. I configured it with a custom provider as such:</p>
<pre><code> public void ConfigureOAuth(IAppBuilder app)
{
var ... | 0 | 1,461 |
Uncaught TypeError: Cannot read property 'width' of null | <p>I actually don't know what's happened because it was working last night. Anyway, I'm trying to make a drawing application with html5 and javascript. This is the first time I've properly looked at JS and created something with it so I've got my code from various tutorials and help from other friends a.k.a I'm a n00b.... | 0 | 4,205 |
Node js Error: Protocol "https:" not supported. Expected "http:" | <p>I am using IBM Bluemix to make a web service for a school project.</p>
<p>My project needs to request a JSON from an API, so I can use the data it provides. I use the <code>http get</code> method for a data set, and I am not sure if it is working properly.</p>
<p>When I run my code, I get the message:</p>
<blockq... | 0 | 2,199 |
Trigger event with infoWindow or InfoBox on click Google Map API V3 | <p>I want to know how to trigger an event when I click on an infoWindow using Google Maps API v3. In this example, when I click on a marker, an info window shows up with a unique message, based on which marker I clicked. I want to also be able to click the info window and have an alert show up that says</p>
<blockqu... | 0 | 1,897 |
How to put Vue code inside <code> tag in vue | <p>This is my first time making an npm package, I'm making the package's demo, and I wanna put an example of the component usage.</p>
<p>when I put the component usage inside pre and code tag like this </p>
<p>it shows this error </p>
<pre><code>Templates should only be responsible for mapping the state to the UI. A... | 0 | 1,767 |
Axios Post Form with Reactjs | <p>So I have this post method with Axios and if I submit this, it said </p>
<blockquote>
<p>Uncaught (in promise) Error: Network Error
at createError (createError.js:16)
at XMLHttpRequest.handleError (xhr.js:87)</p>
</blockquote>
<p>If I use this method:</p>
<pre><code>axios.post('http://localhost:5000... | 0 | 1,468 |
Could not load file or assembly 'WebMatrix.Data` | <p>I updated MVC4 to MVC5. When you run the application I got an error that I don't have <code>WebMatrix.Data</code>. I installed it <code>PM> Install-Package WebMatrix.Data</code>. Now when you start getting in the browser:</p>
<blockquote>
<p>Could not load file or assembly 'WebMatrix.Data, Version = 3.0.0.0,
... | 0 | 1,963 |
android.view.InflateException: Binary XML file line #0: Error inflating class Button | <p>I am following a course on Audacity, and decided to type out all the code, but then I run into an error when I try run the app.</p>
<p>I get the following error:</p>
<pre><code> 10-27 19:17:41.871 26679-26679/com.example.vhuhwavho.friendlychat W/dalvikvm: threadid=1: thread exiting with uncaught exception (... | 0 | 7,088 |
What reasons are there to prefer glob over readdir (or vice-versa) in Perl? | <p>This question is a spin-off from <a href="https://stackoverflow.com/questions/1499672/how-do-i-open-an-array-of-files-in-perl">this one</a>. Some history: when I first learned Perl, I pretty much always used <code>glob</code> rather than <code>opendir</code> + <code>readdir</code> because I found it easier. Then lat... | 0 | 1,437 |
Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:64 - error TS1005: ';' expected | <p>My app was working fine until I uninstalled bootstrap and installed angular material instead....Then tried to do ng serve but got this error..</p>
<pre><code>Error: node_modules/@angular/material/core/common-behaviors/constructor.d.ts:14:64 - error TS1005: ';' expected.
</code></pre>
<p>14 export declare type Abstra... | 0 | 3,008 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.