title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Submitting form in Vue.js with ajax with Vuetify and vee-validate | <p>Does anyone know how can I submit it to JSON after the form validation?</p>
<p>Here is my code:</p>
<p>Contact.vue</p>
<pre><code><template>
<v-container grid-list-md fluid id="contact">
<v-container grid-list-md>
<v-layout row wrap>
<v-flex xs12>
<h2... | 1 | 2,839 |
How to add Icon to JPanel | <p>So this is going to be very basic, but I can't figure it out. I have a CarIcon, which implements an Icon interface and a Resizable interface (I'll be implementing that later) and I have everything set up, but I can't figure out how to add my icon in to the JPanel or JFrame from main. I mean, I don't have the Compone... | 1 | 1,425 |
corosync immediately shuts down after start | <p>I am running a pacemaker cluster with corosync on two nodes.
I had to restart node2 and after reboot and doing</p>
<pre><code>service corosync start
</code></pre>
<p>corosync is started but shuts down itself immediately.</p>
<p>After the log entry "Completed service synchronization, ready to provide service." the... | 1 | 1,083 |
PDF generation with PHPExcel fails | <p>I generate Excel reports by loading Excel sheets, that I generated with Excel and fill in some data by PHP code.</p>
<p>Now, I wanted to convert those Excel sheets to PDF and because I saw that the PHPExcel 1.7.x supports creating PDF I thought: perfect, I do not have to go over a OpenOffice Engine, because that en... | 1 | 4,598 |
Python pip install "ERROR: Command errored out with exit status 1" | <p>I'm trying to <code>pip install telewavesim</code> (following instructions <a href="https://paudetseis.github.io/Telewavesim/api.html#installation" rel="nofollow noreferrer">here</a>) and I am getting this error. I'm running this on windows 10.</p>
<p>I searched for an answer and tried running as an admin which get... | 1 | 6,176 |
How to set up Grid 2 in selenium RC using through Java-TestNG | <p>I am new to Grid and am trying to set up Grid 2 in Selenium RC.</p>
<p>I have downloaded the selenium-server-standalone-2.1.0.jar. Also I have my TestNG test cases.</p>
<p>And I have a test XML like:</p>
<pre><code><suite thread-count="1" name="Suite" parallel="tests" verbose="10"><!-- tests -->
... | 1 | 2,277 |
Display items in order including image WooCommerce | <p>I am trying to display the products/items within a WooCommerce order using the following php, but the items are not being shown.</p>
<p>The code I am using is an adaptation of this: <a href="https://stackoverflow.com/questions/28576667/get-cart-item-name-quantity-all-details-woocommerce/28576861">Get cart item name... | 1 | 3,068 |
Using Lombok to create builders for classes with required and optional attributes | <p>Searching for a plugin to avoid boilerplate code to implement <a href="http://www.informit.com/authors/bio/8b620cf7-c360-4ee1-9b55-c7f96e7f0d18" rel="noreferrer">Joshua Bloch</a>'s <a href="http://www.informit.com/articles/article.aspx?p=1216151&seqNum=2" rel="noreferrer">builder pattern</a> I found the amazing ... | 1 | 1,637 |
pymacs: General question and Installation problem | <p>I am trying to setup emacs for python development. </p>
<p>From what I read, it is recommended to use python-mode.el rather than the default python.el from Emacs 22.3. So I embark on the new adventure.</p>
<p>From what I understand, python-mode has the several dependencies, so I need to install rope, ropemode and ... | 1 | 1,428 |
How to detect location of characters using python 3.x | <p>I want to detect the location of each character in an image.</p>
<p>I tried pytesseract as suggested in <a href="https://stackoverflow.com/questions/32175014/how-to-get-character-position-in-pytesseract">how to get character position in pytesseract</a> but gives me an error</p>
<pre><code>import csv
import cv2
fro... | 1 | 1,242 |
WKWebView UITableView Cell Height and Instagram Embed Code | <p>I'm trying to add Instagram posts to cells in a table view, but I can't get the cell height calculation right despite trying a bunch of different things. I'm creating a <code>WKWebView</code> for each cell and using <code>loadHTMLString</code> with the embed code supplied by Instagram, with one slight modification t... | 1 | 2,815 |
High thread count stuck in GCFrame causes high CPU usage | <p>We have an application that uses Kestrel to serve HTTP requests. We've had some problems in the past where high load caused the thread pool to spawn thousands of threads, at which point we would get lock convoy symptoms. Most of the time, the threads would start blocking each other at <code>Monitor.Enter()</code> so... | 1 | 4,477 |
Eclipse help won't show under Ubuntu | <p>Whenever I open some help within eclipse I get a page saying:</p>
<blockquote>
<p>Server Error. The following error occurred: [code=CANT_CONNECT_LOOPBACK] Cannot connect due to potential loopback problems</p>
</blockquote>
<p>I'm running Ubuntu 10.04.</p>
<p>Any ideas what this can be?</p>
<p><strong>UPDATE</s... | 1 | 3,332 |
how to resolve "failed to resume in time" on iOS | <pre><code>Incident Identifier: A664D7F0-B508-4D77-8052-3D15B7612921
CrashReporter Key: cc6fa311f4d178cd2a1c946ced641fab87e0181d
Hardware Model: iPhone2,1
Process: iPORTALs [4155]
Path: /var/mobile/Applications/EFCD0F88-675F-47E2-AFA9-9EC4D918881F/iPORTALs.app/iPORTALs
Identifier: iPORTAL... | 1 | 9,879 |
Google Maps V3 Marker Manager | <p>I am trying to get Marker Manager to work on Google Maps V3. I've tried to replicate what is shown on the tutorial page <a href="http://google-maps-utility-library-v3.googlecode.com/svn/tags/markermanager/1.0/docs/examples.html" rel="nofollow">here</a>, but I cannot seem to get it to work. This is the code I am usin... | 1 | 1,193 |
CustomScript extension - Cannot run bash script on Azure CentOS VM | <p>New to Azure (and Linux)...</p>
<p>CentOS 7.2 VM.</p>
<p>I configure a new Azure CentOS VM, and set the following for "Custom Script for Linux" extension:
Script files: bob.sh (Selected from local workstation)
Command: sh bob.sh</p>
<p>bob.sh:</p>
<pre><code>#!/bin/bash
sudo echo "This is a test" > test.txt
... | 1 | 1,989 |
How to make XMLTextWriter and XMLWriterSettings work together | <p>I have this code for the settings:</p>
<pre><code>Dim settings As XmlWriterSettings = New XmlWriterSettings()
settings.Indent = True
settings.OmitXmlDeclaration = True
settings.NewLineOnAttributes = True
</code></pre>
<p>Then I have this code for the writer:</p>
<pre><code>Dim ... | 1 | 1,026 |
Trouble with Marshal.PtrToStructure() and char arrays in structure DEVMODE | <p>I'm having an issue with using Marshal.PtrToStructure() to extract data out of a pointer to a structure of type DEVMODE. <a href="http://msdn.microsoft.com/en-us/library/dd183565%28v=vs.85%29.aspx" rel="noreferrer">Here</a> is a link to an MSDN entry on the DEVMODE structure.</p>
<p>My C# implementation for this st... | 1 | 2,841 |
use react-joyride in multiple child component | <p>I want to use <code>react-joyride</code> in my application but there is a problem. I have breakdown my component into <code>Navbar</code> and <code>SideNavigation</code>. They are separate child component. Now that I want to use <code>react-joyride</code> in both first in <code>SideNavigation</code> and then the las... | 1 | 3,066 |
c# How to access opened Excel file? | <p>please help me with this stuff!</p>
<p>In my new project I need to access some Excel files. The names of all of them are known. It's easy to open this files and write data in. If excel objects are stored to the list, then it's easy to re-access already opened files while program still running. Please, take a look t... | 1 | 1,646 |
How to combine multiple arrays into one array in Verilog? | <p>Here is my code:</p>
<pre><code>module MIPS_Processor();
reg [7:0] mem [0:4095]; // 4K memory cells that are 8 bits wide
reg [7:0] code[0:1023]; // 1K memory cells that are 8 bits wide
reg [31:0] registers[0:31]; // 32 registers that are 32 bits wide
reg [31:0] PC; // The pr... | 1 | 1,325 |
iOS Web App doesn't set cookie in the first place | <p>I have seen lots of questions and answers on how to permanently store a cookie in an iOS web application... But I can't seem to even get this one set.</p>
<p>The application runs beautifully in a real desktop browser, but fails when running inside of an iOS app.</p>
<p>I have a rails web service UI that the app co... | 1 | 1,319 |
Flutter debugShowCheckedModeBanner: false not remove debug banner | <p>I'm trying to remove the debug banner from my application and I added <code>debugShowCheckedModeBanner: false</code> in my main.dart and every activity but still showing the debug banner.</p>
<p>Main.dart</p>
<pre><code>void main() async {
runApp(MaterialApp(home:SplashScreen(), debugShowCheckedModeBanner: false,... | 1 | 2,812 |
Bad HTTP response returned from the server. Code 500 | <p>I have a problem to use pywinrm on linux, to get a PowerShell Session.
I read several posts and questions on sites about that. But any that can solve my question. </p>
<p>The error is in the Kerberos autentication. This is my krb5.conf:</p>
<pre><code> 0 [libdefaults]
1 default_realm = DOMAIN.COM.BR ... | 1 | 3,643 |
Retrofit POST: JSON object does't send to PHP server | <p>I'm trying to send an object of <code>User</code> class (using Gson-Retrofit) to server via <code>POST</code> method from Android. If server receive any data, it will send a JSON object to App which contains KEY "success" and "message". But unfortunately each and every time server sends <strong>{... | 1 | 1,482 |
Jersey client - unmarshall a ClientResponse entity body of type XML to a POJO | <p>I've read through a lot of the examples here and I still can't isolate my coding mistake. I'm trying to use the built-in Jersey-client MessageBodyReaders.</p>
<p>My pojo looks like this:</p>
<pre><code>@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {"name", "complexId", "libraryList", "parti... | 1 | 1,979 |
Using JQuery to prevent page refresh when user clicks submit on a search box inquiry or filter | <p>I am in a little bit of a bind. </p>
<p>Another dept. at work asked me to look over the following HTML code. They are asking me to figure out why when someone enters data in the search box form and clicks submit the page refreshes. They do NOT want the page to refresh when either clicking the submit button or wh... | 1 | 2,043 |
jquery animate doesn't fire | <pre><code><html>
<head>
<style type="text/css">
div#bg1 {
height: 159px;
width: 800px;
margin-left: auto;
margin-right: auto;
background-image: url('images/b... | 1 | 1,309 |
Maintain scroll position when adding to ListView with reverse endless-scrolling | <p>I am building a chat-like Android application, similar to Hangouts. For this purpose I am using a vertical ListView with <code>stackFromBottom=true</code> and <code>transcriptMode="normal"</code>.</p>
<p>The list is sorted from older messages (top) to younger messages (bottom). In normal state, the ListView is scro... | 1 | 1,150 |
Spring Security - Custom Pre Auth filter using java config | <p>I am trying to configure a simple custom authentication filter that checks for a token on every page of the web app except the '/login' page. Right now, the filter is up and running, but no matter what settings I change, the filter is being called on every page, including '/login' which I have set to permitAll().</p... | 1 | 3,034 |
can't use bundle install | <p>I'm experiencing some difficulties when using the command: "bundle install". It's probably some kind of a trivial issue, but I would appreciate any help you can give. I am using linux ubuntu 11.04, ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux]</p>
<p>The error message I get is this :</p>
<pre><code>/var/... | 1 | 3,895 |
CSS - Span divs the entire height of the page | <p>I have coded my divs so that they (almost) appear perfectly. The correct divs are above/below each other and it spans the entire width of the page. What I am finding is that it is not spanning the entire height of the page. Any advise would be greatly appreciated! Also, I have a horizontal scroll bar that I would lo... | 1 | 1,615 |
How to visualize intrinsic/extrinsic camera parameters in OpenCV? | <p>I'm working with OpenCV stereo vision and my calibration module is acting up. For debugging purposes, I'd like to visualize the camera parameters calibration is calculating, and I'm hoping to find some built in functionality to help with this. I'm looking for something akin to Matlab's <a href="http://www.mathworks.... | 1 | 1,576 |
Android Bluetooth LE error : Failed to register callback | <p>I am in the process of writing an Android application that will connect to a health device over Bluetooth LE. However, it seems as though I am not connecting to its GATT server properly. Every few seconds, my log file shows this:</p>
<pre><code>03-27 11:33:39.821: D/BluetoothAdapter(26644): onScanResult() - Device=... | 1 | 1,626 |
Directive with templateUrl - testing with ng-html2js | <p>I created a directive with inline template, tested it, everything worked fine. Now I have put the template into separated .html file and reference it via <code>templateUrl</code> from directive. Directive works on my page, but the tests are broken saying:</p>
<pre><code> Error: [$injector:modulerr] Failed to... | 1 | 1,396 |
ngModel on Div element | <p>This seems to be a common issue but all the answers out there still don't quite work. I keep getting this error:</p>
<p>"Uncaught (in promise): Error: No value accessor for form control with name: 'gender'</p>
<p>This is supposed to be a dropdown menu so one can filter a table for gender. </p>
<p>Below is my code... | 1 | 1,139 |
Problems with multiple selection screens | <p><code>START-OF-SELECTION</code> is not getting triggered in my program. I am trying to fetch book details based on book name and book author using multiple selection screens in ABAP. There are two pushbuttons and based on those selection screens are opened. When I click any of the push buttons, then selection screen... | 1 | 1,959 |
NoMethodError: undefined method `email' for nil:NilClass : can't send email with devise/sendgrid(Rails 3.2) | <p>I am trying to use use actionmailer with sendgrid and devise on Rails 3.2.
I browsed many questions on SO like replace smtp by sendmail, create a <a href="https://stackoverflow.com/questions/11669876/sending-email-using-action-mailer-in-rails-version-3-2-5?rq=1">config/email.yml</a> I don't have one) and many more i... | 1 | 5,660 |
Flutter - TextField how to filter list | <p>I'm new to Flutter and I'm trying to understand how things works.<br>
I have created a simple app that should show a list of shops, I need that the whole screen will scroll so as far as I understand I can't use the <code>ListView</code>. </p>
<p>I have also added a <code>TextField</code> and I want to use it to fi... | 1 | 2,767 |
How to run a binary which require an older glibc library in an newer Linux? | <p>I have a binary which build for an older version linux, and when I put the binary in a newer linux and try to run it, it tells "no such file or directory" error. </p>
<p>I searched and found this is about improper library linking. I used ldd on this binary and the output shown is like this: </p>
<p><code>./test.ex... | 1 | 1,277 |
create a pivotchart with python win32com causes pywintypes.com_error | <p>is there anyone can give a example code for creating a pivotchart in excel?
I have got an example to create a pivottable with pivottable, it works , while when I try to create a pivotchart in the same ways, it will always failed!</p>
<pre><code>import win32com.client
import os
Excel = win32com.client.gencache.En... | 1 | 1,094 |
How to modify the placement of DataGrid vertical scroll bar in WPF? | <p><strong>SOLVED:</strong> <em>Please see my own answer below with the XAML code, a screenshot and an explanation.</em></p>
<p>It was a little tough to title this one, so let me explain what my issue is. I have a datagrid that has a defined height, so the scrollbar appears. I would like to contain the vertical scr... | 1 | 4,224 |
Ant Design - How can i get count of table row after filtering? | <p>I use Table component from Ant-design to search, filtering and sort a big set of data but I have a problem with "Select all Data".</p>
<p>For example if I click on checkbox on top of table, only display rows on screen are selected. So if I change of page, the others rows aren't selected. If I want select all data I... | 1 | 1,177 |
Mockito : argument type mismatch? | <p>I am getting FAILED: <code>processStandaloneCancelAuthRequest(00, "true")</code>
<code>java.lang.IllegalArgumentException:</code> argument type mismatch....error. I am doing unit testing using Mockito and passing <code>00</code> as sample input and true is the sample output.</p>
<pre><code> @BeforeMethod
public ... | 1 | 1,607 |
Amazon EC2 ssh login failure | <p>I am trying to login to my instance on EC2 and I have so far been unsuccessful. I provide the output of all relevant commands and things I've tried. I've done my homework and looked around, I still cant explain why I am unable to login.</p>
<p>The keypair was generated online using amazons AWS console and I downloa... | 1 | 1,331 |
Laravel 5 auth guard with RESTful API | <p>I have a solution developed which uses <code>Laravel 5</code>. It's not entirely developed on laravel.</p>
<p>API layer resides on another project and only the web layer uses laravel.</p>
<p>So far I have been storing the auth details in session and using basic way to handle authenticated users.</p>
<p>Now I have be... | 1 | 1,211 |
VueJS service-worker.js is ignored in my PWA | <p>I created a progressive web app with VueJS, the files are generated by vuecli. So I have the default registerServiceWorker.js I just comment the env condition:</p>
<pre><code>/* eslint-disable no-console */
import { register } from 'register-service-worker'
// if (process.env.NODE_ENV === 'production') {
regist... | 1 | 1,425 |
JWT Login - No authorization token was found in middleware | <p>I followed a tutorial to add login and registration to my Node.js app using JWT token and I'm having a hard time logging in and redirecting to my 'logged in' admin page. User registration works great, but the login portion I can't figure out.</p>
<p>This is the tutorial I was following:
<a href="https://medium.free... | 1 | 1,167 |
Divide Screen into Four Equal Parts using Relative Layout | <p>I currently have code that allows me to divide the screen into four equal parts, with an image button in each part. However, the code uses linear layouts which brings up the suggestion "nested weights are bad for performance". How can I make my layout using relative layouts?
Below is the code, and here is a picture ... | 1 | 1,151 |
Stop animation at end of a cycle | <p>The following code resets the animation to the first frame and repeats. For some reason <code>animation-fill-mode:forwards;</code> is not working.</p>
<p>I'm not sure if it has to do with the pixels or the top margins.</p>
<p>Here is the link to my code. <a href="http://jsfiddle.net/HGHyQ/" rel="nofollow">http://... | 1 | 1,793 |
Inserting XML file into MYSQL database | <p>Good afternoon, Java beginner here and I have been working with this tutorial online and the tutorial supplied this code along with an XML file. It said that it was based off of inserting the XML file into MySQL but doesn't auto insert the fields. So what I have done is created a database named movie, and have creat... | 1 | 7,421 |
Intellij "Evaluate Expression" results in NoSuchMethodException | <p>I am trying to inspect the contents of a moderately large Scala map of objects in IntelliJ while debugging an application. I enter the following in the "Evaluate" dialog: <code>prices.get.keys.toList.filter(k => k.startsWith("GC"))</code>, where <code>prices</code> is <code>Future[Map[String, SomeObject]]</code>.... | 1 | 2,230 |
The hibernate sessionFactory is always null in my DAO for a regular java class | <p>I see so many questions on this and have tried numerous permutations of the many different solutions and none have worked.</p>
<p>I have a dao that requires a hibernate sessionfactory to do transactions. In the SpringMVC Context I've seen it working but the dao included in a java class is null. There is no error ... | 1 | 1,728 |
Right way to display an image using C++ with OpenGL | <p>(i've updated the code the new better one)</p>
<p><a href="http://www.flickr.com/photos/pkerkm/8251188947/in/photostream" rel="nofollow">http://www.flickr.com/photos/pkerkm/8251188947/in/photostream</a>
good directions</p>
<p><a href="http://www.flickr.com/photos/pkerkm/8252258464/in/photostream" rel="nofollow">ht... | 1 | 2,323 |
Making requests to Google API using Guzzle and Socialite in Laravel 5 | <p>I'm building a web app that has to interact with Google Contacts API and retrieve the Contact List of the authenticated user, but I'm getting </p>
<pre><code>ClientException in RequestException.php line 89:
Client error response [url] https://www.google.com/m8/feeds/contacts/ambermphatic@gmail.com/full?prettyPrint=... | 1 | 1,756 |
send email to Outlook group EXCLUDING one person | <p>I have an Access DB through which we email reports to a list of outlook email addresses. This list contains email groups.</p>
<p>I want to be able to programatically send an email to a group, but NOT send the email to a specific member of the group.</p>
<p>Unfortunately, this person cannot be removed from the grou... | 1 | 1,251 |
java two dimensional array sorting | <p>Write a program that prompts the user to enter a nxn matrix of double values and displays a new matrix which has the columns of the initial matrix sorted. You may use any sorting algorithm to solve the problem; please specify the name of the used sorting algorithm into your code header. Your program must implement a... | 1 | 1,342 |
Getting location Updates in Android | <p>Hi AM using the code below used here : <a href="https://stackoverflow.com/q/17591147/2943858">How to get current location in Android</a>
Here am using the TextView to display the location coordinates once.
Now How can I keep update the location in TextView once the location keeps changing.</p>
<p>Codes i'm using no... | 1 | 4,235 |
How to force Internet Explorer to open it's current running instance rather than creating a new one? | <p>How to programatically launch IE (<code>iexplore.exe</code>) and navigate in the current running instance (by opening a new tab, or replacing the current URL) Rather than creating a new instance.</p>
<p>I have searched for a command line switch, and tried using <code>InternetExplorer.Application</code>, to no avail... | 1 | 1,466 |
Keep and get order status history with their time stamps in Woocommerce 3 | <p>I want to save the order status history for all orders on woocommerce. e.g If the order status is changed from pending to processing the previous status along with its timestamp should be saved so that user can view their order status history through this <a href="http://cargow.co.uk/?order_no=983&check=checking... | 1 | 4,981 |
Could not load file or assembly 'Interop.EDOfficeLib' or one of its dependencies | <p>I've faced with this problem when deploying the web site on Windows Server 2008 x64. I don't have any idea. Can anyone help me?</p>
<pre><code>Could not load file or assembly 'Interop.EDOfficeLib' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled ... | 1 | 1,408 |
Bitmap.LockBits error "Parameter is not valid" when bitmap is a certain size? | <p>I have create a method where I want to take an image mask and apply it to another image. If you have a look at this <a href="https://stackoverflow.com/questions/13349507/overlay-image-with-png-as-mask-using-net-and-javascript">post</a>, you will see a frame image. The frame image in that post is the <code>maskingIma... | 1 | 1,120 |
D3.js v4.0.0-alpha.35 Transitions not working | <p>I try to mimic this <a href="https://bl.ocks.org/mbostock/4339083" rel="nofollow">collapsible tree</a> using the newest version of d3.js, however I am running into some issues.</p>
<p>The <code>nodeEnter</code> part of the code is executing just fine but for whatever reason the <code>nodeUpdate</code> aka the trans... | 1 | 2,539 |
Sort Image according to DATE and TIME inside gridview android | <p>//The Path where my images are saving </p>
<p>/storage/emulated/0/Pictures/CameraExample/JPEG_20150107_152640.jpeg</p>
<p>//This is one of the file path.</p>
<p>//I need to sort images like last taken photo as the first one to display //inside the grid view as of now images are displayed, recent photo at the //la... | 1 | 2,270 |
PrintToPrinter method for crystal reports throws logon exception | <p>I am using PrintToPrinter(1,false,1,1) in my website for a crystal report . After I click on this button ( btnPrintToPrinter) it throws LogOnException and says Database Logon failed : </p>
<pre><code>protected void btnPrintToPrinter_Click(object sender, EventArgs e)
{
int empno = Convert.ToInt32(Session["AnyVal... | 1 | 1,441 |
c3p0 creating more connections than specified in configuration | <p>My application is using Hibernate 4.1.7 and c3p0 0.9.1.</p>
<p>I've set the c3p0.max_size property in my hibernate.cfg.xml file for my application to 50, but the number of JDBC connections created has been exceeding that value. Also, inactive/idle connections are not being removed as I've also specified in my Hibe... | 1 | 1,996 |
Advice extracting //td text and numbers | <p>I have been working through the tutorial adapting it to a project I want to achieve. I seem to have something going wrong that i just can't find the error to.</p>
<p>When using 'scrapy shell' I can get the response I expect. So for this site <a href="http://live.nrlstats.com/nrl/ladder.html" rel="nofollow">Nrl Ladd... | 1 | 1,192 |
Redirect to Angular2 app from within an ASP.NET MVC controller with parameters | <p>I'm trying to redirect from an MVC controller to an Angular 2 app that resides within an area of the MVC project, structure is as follows:</p>
<pre><code>Clients.Web (MVC project)
|
+--Areas
|
+--Legacy
| |
| +--Controllers
| |
| +--Action1ApiController
|
+--Web
|
+--ap... | 1 | 1,615 |
Huge variance in JNDI lookup times | <p>We're experiencing huge variance in response times on a legacy J2EE web application running on Weblogic 10.3. The system consists of two Weblogic server instances (frontend and backend) which run on the same physical server machine and an Oracle database running on a separate host. External measurement tool alerts u... | 1 | 1,197 |
mongodb aggregate with match, lookup and project | <p>I'm new to node js with mongodb programming. I'm using <code>mongodb</code> module and I want to perform a post "join" with user public info. The code I'm using right now is as follows:</p>
<pre><code>db.collection('post').aggregate({
'$match': { category: 'video', status: 'online' },
'$lookup':
{
fr... | 1 | 1,124 |
Deep copy of a Doubly Linked List in Python | <p>I'm having trouble implementing a deep copy method for a <code>DoublyLinkedList</code> class. A deep copy is supposed to return a new, original Doubly Linked List that does not reference the original DLL (unlike a shallow copy).</p>
<p>Here's what I have so far:</p>
<pre><code>class EmptyCollection(Exception):
... | 1 | 1,528 |
Java hibernate and mysql | <p>I'm trying out this hibernate, and following a tutorial on it. However I quickly get stuck on an exception.</p>
<pre><code>public class input {
public static void main(String[] args){
student student = new student();
student.setName("bar");
student.setRollNo(1);
SessionFactory sessionFactory = ne... | 1 | 2,318 |
Can not read from socket using BufferedReader.readline() | <p>I am trying to develop a client/Server communication application in java. But at the very initial stage I am unable to read data string from the socket's Output stream using <code>BufferedReader.readline()</code>. I have googled a lot but could not find the specific answer to my question.<br/>Debugging the client ap... | 1 | 1,346 |
Mozilla does not recognize display:inline-block inside display:table-cell container | <p>I am trying to build fluid layout using CSS with following code. (Sorry If I include to much).</p>
<p>Here is code for reset.css</p>
<pre><code>body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
... | 1 | 1,819 |
Bootstrap - Center Tabs in Container | <p>I have a web page that uses Bootstrap 3. In this page, I have several tabs. At this time, the tabs are left-aligned across the top. You can see yourself in this <a href="http://www.bootply.com/03cnW7CnUY" rel="nofollow">Bootply</a>. I'm trying to figure out how to make the tabs appear in the center of the tab strip.... | 1 | 1,529 |
appcompat_v7 errors in eclipse | <p>i'm new to android programming .i have just installed eclipse and sdk and adt plugin .evereting works fine when i import other project. but when i create a new project it give me a lot of errors.</p>
<p>here are the errors:</p>
<pre><code>*Description Resource Path Location Type
Unknown error: java.lan... | 1 | 1,234 |
Android JSOUP Parsing Tables fromWeb Sites | <p>I am having an issue with parsing the following website:</p>
<p><a href="http://www.x-rates.com/d/USD/table.html" rel="nofollow noreferrer">http://www.x-rates.com/d/USD/table.html</a></p>
<p>I am very, very very new to android programming and I am thinking about creating a currency converter, now I know that there... | 1 | 1,532 |
Full text Search with Multiple index in Elastic Search using NEST C# | <p>I'm trying to search Multiple indexes Elasticsearch with NEST Client, I just follow the below link<br>
[stackover post ]<a href="https://stackoverflow.com/questions/47836986/how-to-search-inside-multiple-indices-using-nest-elasticsearch">How to search inside multiple indices using Nest ElasticSearch?</a>
the only di... | 1 | 7,601 |
Telerik Rad Grid on ASP.NET MVC Razor view engine - DetailView not initially populating | <p>OK...I've spent too much time floundering on this one, so I'm passing it on to the experts -> YOU.</p>
<p>My VERY simple ASP.NET MVC (v3 with Razor View Engine) page uses a Telerik Rad Grid control to show some type lists and then I have the associated codes showing in the DetailsView of the grid.</p>
<p>Doing the... | 1 | 4,130 |
How to retrieve image url on a page through REST API | <p>I'm using rest api to retrieve title, main text etc. of pages on a site on sharepoint online.
Problem is when I fetch the xml of a page, there is no reference to the picture that is loaded on the page. I even get the caption but no reference to the picture. </p>
<p>here's an example of the xml I get and the uri I ... | 1 | 1,738 |
Unable to use phpseclib classes | <p>I've installed the <a href="https://github.com/phpseclib/phpseclib" rel="nofollow">phpseclib</a> library from github and I'm trying to encrypt a password (for steamcommunity) with PHP. I am able to do it with Javascript by using the javascript code Steam has on their website but I cannot encrypt the password using p... | 1 | 3,453 |
Getting error (java.lang.NoSuchMethodError: okhttp3.Request$Builder.tag) while posting event to microsoft graph | <p>I am trying to hit the microsoft graph api for get and post methods.
Java code:</p>
<pre><code>IGraphServiceClient graphClient =
GraphServiceClient.builder().authenticationProvider(authProvider)
.buildClient();
graphClient.me().calendar().events().buildRequest().post(event);
User user = g... | 1 | 1,462 |
ASP.NET / MVC 4 bundling and minification 404 issues on 64-bit IIS 7.5 server | <p>We recently upgraded our project from MVC 3 to MVC 4. We are targeting the .NET 4.0 framework, and our web app is 32-bit due to some references we have to include.</p>
<p>The problem we are having is that we converted our bundling / minification from Chirpy to the built-in ASP.NET bundling. The site runs with no p... | 1 | 4,050 |
Pyqt5 with pyqtgraph building two graphs | <p>I am trying to build an application using the PyQt5 and pyqtgraph framework. Essentially I am trying to put two graphs in a QWidget within the QMainwindow. I am unit testing right now, and I am having a hard time coding the graphs using PlotWidget, GraphicsWindow, or GraphicsObject. Essentially two identical glasses... | 1 | 1,168 |
Setting up 'Access-Control-Allow-Origin' for HTTP Listener | <p>I wanted a solution to send data from a C# application to a Web Page once a request was made to the C# application (via a AJAX post from the web page), then using the project implemented <a href="http://www.codeproject.com/Articles/599978/An-HttpListener-Server-for-Handling-AJAX-POST-Requ" rel="nofollow noreferrer">... | 1 | 1,129 |
how to sort in gridview using template fields | <p>The sorting works fine when u fill the gridview using SQL datasource in the aspx page...</p>
<p>but now i am using template field and the columns are filled separately in the codebehind and the sorting is not working...</p>
<p>my code is</p>
<pre><code><asp:GridView ID="GridView1" runat="server" AllowSorting="... | 1 | 1,917 |
Error: Must extract column with a single valid subscript. x Subscript `var` has size 268 but must be size 1. Code and dataframe include | <p>So I have this dataset</p>
<pre class="lang-r prettyprint-override"><code># A tibble: 268 x 1
Which_of_these_social_media_platforms_do_you_have_an_account_in_right_now?
<chr>
1 Facebook, Instagram, Twitter, Snapchat, Reddit, Signal ... | 1 | 2,095 |
Why am I getting Cannot read property 'getCenter' of undefined when trying to access my embed google map? | <p>This is how I construct the google map on my page:</p>
<pre><code>var initialize = function(latitude, longitude, boundaries) {
// Uses the selected lat, long as starting point
var myLatLng = {lat: selectedLat, lng: selectedLong};
// If map has not been created...
if... | 1 | 1,977 |
KafkaConsumer is not safe for multi-threaded access from SparkStreaming | <p>I have set up multiple streams reading from different kafka topics:</p>
<pre><code>for(topic <- topics) {
val stream = KafkaUtils.createDirectStream[String, String](
ssc,
PreferConsistent,
Subscribe[String, String](
Array(topicConfig.srcTopic),
kafkaParameters()
)
)
stream.map... | 1 | 1,212 |
android.database.sqlite.SQLiteDatatypeMismatchException: datatype mismatch (code 20) | <p>I am trying to Insert data into Database, but getting problem, error says:</p>
<pre><code>android.database.sqlite.SQLiteDatatypeMismatchException: datatype mismatch (code 20)
</code></pre>
<p><strong>Error1 says:-</strong></p>
<pre><code>com.example.db.myDBClass.InsertData(myDBClass.java:51)
</code></pre>
<p><st... | 1 | 4,148 |
How to get rid of tempuri.org in WCF service created by SharePoint Service Factory | <p>I am exposing a WCF service on SharePoint 2010 using a Service Factory class and cannot completly get rid of the tempuri.org namespace in the generated WSDL. </p>
<p>Here is what I do:</p>
<p><strong>The svc file in the ISAPI folder</strong> </p>
<pre><code><%@ServiceHost
Language="C#"
Factory="Micro... | 1 | 1,141 |
jQuery page freezing while updating DOM with big amount of data | <p>I have a jQuery post method whicih looks like this:</p>
<pre><code>$.post("/SearchCompetitor/Index", { username: _username }, StartLoading())
.done(function (data) {
if (data !== "UsernameError") {
StopLoading();
... | 1 | 1,558 |
Bootstrap: Collapse nav at 768 px of screen size | <p>I'm using bootstrap but sadly the nav items collapse only for smartphones, how can I make it collapse for tablets in portrait mode? (768px)</p>
<p>My nav item:</p>
<pre><code><nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<... | 1 | 1,517 |
Asp.Net Mvc Web App PowerBI Login HRESULT E_FAIL Error | <p>I am trying to have a single sign-in web app through azure that has an initial Microsoft login and then no second login. At the moment I am just trying to get 2 logins to work but when running locally I can get the app to work and show the Power BI reports using a dual login. But whenever I publish the app up to the... | 1 | 1,924 |
Reverse for 'quote-new' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] | <p>I see there are a lot of similar posts on this. Please let me know if I should look at one in particular. I have gone through a bunch of them but don't see the error in my code. </p>
<p>For my code, I am following this tutorial: <a href="http://effectivedjango.com/tutorial/additional-views.html" rel="nofollow">http... | 1 | 1,890 |
OleDbException: no value given for parameters when no parameters are defined | <p>I'm encountering an OleDbException whilst running tests on an application I'm developing. The error message given is, 'No value given for one or more required parameters.'</p>
<p>I know this question appears to have been asked several other times on this site, but in each of the cases the problem arises whilst exec... | 1 | 1,199 |
Custom upload file on Prestashop page | <p>I made a separate page (<a href="http://gmdavid.com/crear-pagina-personalizada-prestashop/" rel="nofollow">following this guide</a>) so he can upload pdf files (certificates of their products). And another page to the customer's search according to the selected product.</p>
<p>On the file upload page, the logic is ... | 1 | 1,291 |
combining functools.lru_cache with multiprocessing.Pool | <p>I have a rather complex recursive function with many parameters (Obara-Saika-Scheme in case anyone is wondering), that I would like to evualate more efficiently.
As a first step I applied <code>@functools.lru_cache</code>. As a second step, I now want to use <code>multiprocessing.Pool</code> to asynchronously evalua... | 1 | 1,478 |
Define a custom date format and converter with Spring Data Elasticsearch | <p>I'm currently migrating from Spring Data Elasticsearch 3.2.x to 4.0.0.</p>
<p>I'm removing a <code>JacksonEntityMapper</code>, that defined a custom <code>ZonedDateTimeDeserializer</code>, to use the <code>ElasticsearchEntityMapper</code></p>
<p>I have a ZonedDateTime field defined as follows:</p>
<pre><code> ... | 1 | 1,356 |
unrecognized selector sent With NSNotifications | <p>I'm using NSNotifications in a ViewController to update a UILabel in another ViewController by pressing a button :</p>
<pre><code>- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
...
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateLabel:)
name:@"LABELUPDATE... | 1 | 1,396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.