title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Next and Previous Slide Button Functionality i++, i-- | <p>I had a great experience asking a question last time and thought I'd come back for more help. You guys are wonderful. Thank you in advance.</p>
<p>I am working with a featured post slider that advances through 4 posts automatically. I would like to add next and previous buttons. I know that I need to attach som... | 1 | 2,137 |
Real World Async and Await Code Example | <p>I have been looking everywhere to find good real world examples of the new Async and Await features in .net 4.5. I have come up with the following code to download a list of files and limit the number of concurrent downloads. I would appreciate any best practices or ways to improve/optimize this code.</p>
<p>We are... | 1 | 2,194 |
Using Gradle-No auto configuration classes found in META-INF/spring.factories | <p>Trying to deploy a jar I build using the jar function in gradle in IntelliJ on my spring boot.It runs fine locally from my IDE using "bootrun" but not putting a jar on a linux server.Full error on the server is</p>
<p>Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed ... | 1 | 1,053 |
Spring Data JPA : java.sql.SQLException: Column 'id' not found | <p>Trying to return list from column named <code>make</code> causes error in console where column <code>id</code> is not found. The column named <code>id</code> is on the table but not sure why it is not recognized. </p>
<p>Car.java</p>
<pre><code> package com.example.demo;
import javax.persistence.Entity;
import... | 1 | 1,746 |
WPF MVVM update collections so that UI updates | <p>I want to update my UI. Should I use BackgroundWorker? Do I put the BackgroundWorker in the MainWindowViewModel and instantiate the repositories again, or do I put it in the OrdersQueueViewModel and do something with the properties? </p>
<p>The UI just displays the contents of lists created by LINQ. The lists are <... | 1 | 1,134 |
How to Convert HTML to String android and print that string | <p>I followed <a href="https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=4601&scat=50&pcat=52" rel="nofollow noreferrer">this</a>/<a href="https://download.epson-biz.com/modules/pos/index.php?page=single_soft&cid=4747&scat=61&pcat=52" rel="nofollow noreferrer">this</a> to... | 1 | 1,146 |
R can't write to csv or RData file | <p>I'm trying to write the contents of a data frame to an RData file. </p>
<pre><code>> save(collector2, file="collect2.RData")
Error in save(collector2, file = "collect2.RData") :
error writing to connection
</code></pre>
<p>As a 2nd option I tried using:</p>
<pre><code>> write.csv(collector2, file="colle... | 1 | 1,094 |
MAC OS: dynamically linked library not found despite correct rpath | <p>I have a (relatively) big project C++ that compiles and runs fine on ubuntu (using cmake/catkin).
It compiles fine on mac os, but when trying to start the executable, I get the error message:</p>
<pre><code>dyld: Library not loaded: <name of library>.dylib
Referenced from:
<path to executable>/<... | 1 | 1,148 |
Get rid of org.jboss.weld.context.NonexistentConversationException, when a query-string parameter named cid is appended to the URL | <p>Take a simple CDI (it could also be a JSF managed bean) bean as follows.</p>
<pre><code>import java.io.Serializable;
import javax.inject.Named;
import javax.faces.view.ViewScoped;
@Named
@ViewScoped
public class TestManagedBean implements Serializable
{
private static final long serialVersionUID=1L;
p... | 1 | 3,577 |
Separate a string column depending on first character appearance | <p>I want to separate the column of a Spark DataFrame into 2 different columns depending on the first appearance of a character, which in this case is an underscore ("_").</p>
<p>I have prepared a 100% reproducible example:</p>
<p>The mock Spark DataFrame is:</p>
<pre><code>df = spark.createDataFrame(
[
(1,... | 1 | 1,046 |
differences between hostname and fully qualified domain name(FQDN) | <p>First of all I searched the site for similar topic, and read the RFC 1535 and FQDN wiki, they don't seem to answer the question.</p>
<p>Let me use <code>www.youtube.com</code> as an example. Python script I used:</p>
<pre class="lang-python prettyprint-override"><code>import socket
for host in ["www.youtube.com"]... | 1 | 1,673 |
Object Not Found Exception in hibernate | <p>I am really stuck at this error</p>
<pre><code>org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.my.farmer.vo.crop.CropProfile#genus]
at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:375)
at org.hibernate.event.def.DefaultLoadEventListener.lo... | 1 | 1,698 |
God resque start gives "The server is not available" | <p>I'm having trouble figuring out how to get God to restart resque.</p>
<p>I've got a Rails 3.2.2 stack on a Ubuntu 10.04.3 LTS Linode slice. Its running system Ruby 1.9.3-p194 (no RVM). </p>
<p>There's a God init.d service at <code>/etc/init.d/god-service</code> that contains:</p>
<pre><code>CONF_DIR=/etc/god
GOD_... | 1 | 1,526 |
Google Sheets API with Ionic | <p>I want to retrieve formula of cells from spreadsheet using <a href="https://developers.google.com/sheets/api/reference/rest/" rel="nofollow noreferrer">google sheets api</a>. I did the configurations of credential keys etc. Then I went for javascript setup as mentioned by <a href="https://developers.google.com/sheet... | 1 | 2,983 |
How to type the use of Material-UI's `withStyles` decorator in the example? | <p>I'm trying to figure out how to annotate the types of the following styles (I converted from plain JavaScript to TypeScript and am adding type annotations):</p>
<pre><code>import * as React from 'react'
import { withStyles } from '@material-ui/core'
@withStyles(styles) // TYPE ERROR HERE
export default class App e... | 1 | 1,487 |
Spark sql throws UTF8 String Casting Error | <p>It seems like Spark sql Window function does not working properly .
I am running a spark job in Hadoop Cluster where a HDFS block size is 128 MB and
Spark Version 1.5 CDH 5.5 </p>
<p>I am reading a avro file and doing the below operation </p>
<p><strong>My requirement:</strong></p>
<p><strong>If there are multi... | 1 | 1,653 |
'Not on FX application thread' error when starting thread from dialog with loaded FXML as content | <p>I currently have the following situation:</p>
<p>I have created a <strong>JavaFX</strong> application, which contains a screen from which I open a dialog (just by clicking a button on the screen). Then, the user gives input and clicks the apply button. The user input is then sent to a method, which opens some sort ... | 1 | 1,300 |
unable activate php-fpm /status|ping -page with nginx on debian6 + PLESK 12 | <p>i am not able to get the php-fpm "/status|ping" -page to work.</p>
<p>a few specs:
OS Debian 6.0.10
Plesk version 12.0.18 Update #35, last updated at Feb 13, 2015 08:37 PM
PHP version is 5.4.37 (got it from dotdeb)</p>
<p>installed NGINX and PHP-FPM via upgrade feature thingy on PLESK 12</p>
<p>REMARK: example.co... | 1 | 1,728 |
Workaround for CronSequenceGenerator Last day of month? | <p>Ok so here it is I want to schedule a task to run on last day of every month on 10:10 AM.My cron expression is</p>
<pre><code>0 10 10 L * ?
</code></pre>
<p>Now the problem is <a href="http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/scheduling/support/CronSequenceGenerator.html" r... | 1 | 1,269 |
Bootstrap grid not working for the small screen wide < 768px | <p>I am using bootstrap to achieve responsiveness in different device landscapes.
But when I test this on a mobile phone, the columns are not appearing properly. First two columns are fine, but the third column should start on the right hand side but it is pushed to the left.
<img src="https://i.stack.imgur.com/vLW1h.... | 1 | 1,320 |
Silverlight unable to resolve References when switching from Debug to Release | <p>I am using: Silverlight Version 4.0, 100% F# solution. I am having an issue when switching the Target Configuration from <strong>debug</strong> to <strong>release</strong>. Everything compiles fine in debug mode, then in release I get the following:</p>
<blockquote>
<p>C:\Windows\Microsoft.NET\Framework\v4.0.30... | 1 | 1,584 |
What does this vite error mean? SyntaxError: Unexpected token (6:180) at Object.pp$4.raise | <p>I am upgrading my Sapper application to SvelteKit. I can run npm run dev fine and it starts my application on localhost:3000. When I browse to that URL, I get the following error:</p>
<pre><code>SyntaxError: Unexpected token (6:180)
at Object.pp$4.raise (../node_modules/vite/dist/node/chunks/dep-66eb515d.js:35308:13... | 1 | 1,130 |
From ckeditor_uploader.fields import RichTextUploadingField | <p>After installing the CKEditor from pip, I try to import CKEditor from models but it keeps giving me <code>ImportError cannot import name get_default_renderer</code>. </p>
<p>After I followed the CKEditor documentation thoroughly, it still gives me the error. Is it my Django version 1.10 problem or the thoroughly ve... | 1 | 2,223 |
Why do we need different CPU architecture for server & mini/mainframe & mixed-core? | <p>I was just wondering what other CPU architectures are available other than INTEL & AMD. So, found <a href="http://en.wikipedia.org/wiki/List_of_CPU_architectures" rel="nofollow noreferrer">List of CPU architectures</a> on Wikipedia.</p>
<p>It categorizes notable CPU architectures into following categories.</p>
... | 1 | 1,028 |
spark-nlp 'JavaPackage' object is not callable | <p>I am using jupyter lab to run spark-nlp text analysis. At the moment I am just running the sample code:</p>
<pre><code>import sparknlp
from pyspark.sql import SparkSession
from sparknlp.pretrained import PretrainedPipeline
#create or get Spark Session
#spark = sparknlp.start()
spark = SparkSession.builder \
.app... | 1 | 2,179 |
org.postgresql.util.PSQLException: ERROR: syntax error at or near "." Spring pageable object with sort query | <p>I have a native query with spring pageable </p>
<pre><code> @Query(value = "with RECURSIVE tbsons as(select * from customers where id=:companyId union all select customers.* from customers join tbsons on customers.parent_id=tbsons.id) SELECT * FROM tbsons where deleted = false order by ?#{#pageable}",
... | 1 | 2,623 |
shopping cart in codeigniter using ajax | <p>Hi I am new with ajax and having problem. I am trying to make a shopping cart using ajax.I don't know what is wrong with my code please help me out.
When I click the add button an alert comes 'No success' and nothing happen , I am not able add items to cart.
Thanks for helping me.</p>
<p>This is my view</p>
<pre><... | 1 | 5,536 |
Xamarin.Forms Project Won't Launch Android Emulator | <p>I have created a Blank (or Master-Detail, or Tabbed - it doesn't matter) Xamarin.Forms project from the template. The project loads in Visual Studio, I try to run it in Debug mode (using <code>Android_Accelerated_x86_Oreo(Android 8.1 - API 27)</code>) and it fails.</p>
<p>Here's the Output Window:</p>
<pre><code>... | 1 | 7,420 |
UPnP announce goes out, but device is not discovered | <p>i am writing code for a UPnP device to announce itself. i have no interest in it being able to discover other UPnP devices on the network. i am sending out the following messages (taken from wireshark)</p>
<pre><code>NOTIFY * HTTP/1.1\r\n
NT: upnp:rootdevice\r\n
USN: uuid:0000-1111-2222-3333::upnp:rootdevice\r\n
NTS... | 1 | 1,405 |
Unable to load class [com.sun.jmx.mbeanserver.RepositorySupport] to check against the @HandlesTypes | <p>after migrating to tomcat <strong>7.0.22</strong>
and installing <strong>t7mp</strong> (<strong>tomcat 7 plugin from google code</strong>) i am running on <strong>maven 2</strong> btw
when trying to run <strong>mvn t7:run</strong>, i got the following exception:</p>
<pre><code>WARNING: Unable to load class [com.sun... | 1 | 2,965 |
A request to send or receive data was disallowed because the socket is not connected (only if I connect 2nd time) | <p>I have a big problem understanding c# tcp async client program! I have written next code (mostly from microsoft developer network, I only changed console.writeline to lambda expressions for my WPF app), and problem here is that I get error "a request to send or receive data was disallowed because the socket is not c... | 1 | 3,106 |
Facebook crawler is hitting my server hard and ignoring directives. Accessing same resources multiple times | <p>The Facebook Crawler is hitting my servers multiple times every second and it seems to be ignoring both the Expires header and the og:ttl property.</p>
<p>In some cases, it is accessing the same og:image resource multiple times over the space of 1-5 minutes. In one example - the crawler accessed the same image 12 t... | 1 | 1,485 |
Spring LDAP querybuilder PartialResultException | <p>I'm trying to get all the users from my LDAP server, doing the search from the base, this is my code:</p>
<pre class="lang-java prettyprint-override"><code>public LdapTemplate ldapTemplate() {
LdapContextSource ctxSrc = new LdapContextSource();
ctxSrc.setUrl("ldap://127.0.0.1:389/");
ctxSrc.... | 1 | 1,168 |
Railscasts #241 NoMethodError undefined method `[]' for nil:NilClass | <p>There is a NoMethodError in SessionsController#create. The twitter authentication page occurs but the callback URL is not working. The page is not being rendered to the website after twitter authentication.
Here is the code in different files. </p>
<p>In routes.rb</p>
<pre><code>Blog::Application.routes.draw do
... | 1 | 2,975 |
Angular 2 local storage - "has no exported member" compilation errors | <p>Thanks in advance for any help. I am trying to get local storage access in Angular 2 with typescript. I am using the npm package angular2-localstorage. I had the angular.io "Tour of Heroes" working (without much styling). I followed the instructions at <a href="https://www.npmjs.com/package/angular2-localstorage" re... | 1 | 1,036 |
How to log out from fbsession? | <p>H,In my app a user can login to the app using facebook.I am able to login successfully using fbsession but i am not able to logout form fbsession.Once the user login to the app i have do manually log out from fbsession. but i am not able to log out from fbseesion. In my app when ever i click on login button its not ... | 1 | 1,637 |
Android HttpURLConnection receives HTTP 301 response code | <p>I'm trying to do a HTTP GET using the HttpURLConnection object in Android. </p>
<p><strong>UPDATE</strong></p>
<p>I tried connection to a different server. This is also hosted within Cloud 9 (c9.io) and also returns a json response. This time I'm <strong>not</strong> getting a 301 redirect, but I am getting the ac... | 1 | 1,694 |
ObjectDataProvider in XAML with ObjectInstance doesn't call ViewModel Contructor in debug | <p>We used to do this at my previous job and it worked perfect there, but for some reason I cannot get it to work now.</p>
<p>I just want to use an ObjectDataProvider to create an instance of the ViewModel class in XAML so I can reference it for binding, and I've got the DataContext set on the Window to the ViewModel,... | 1 | 1,212 |
How to get good performance on reading cassandra partitions in spark? | <p>I am reading data from cassandra partition to spark using cassandra-connector.I tried below solutions for reading partitions.I tried to parallelize the task by creating rdds as much as possible but both solution ONE and solution TWO had same performance .</p>
<p>In solution ONE , I could see the stages in spark UI ... | 1 | 1,290 |
PHP: using the database class | <p>I have a class <code>Database</code> and Class <code>User</code>. My problem is that I want to create an instance of Database and use it throughout my classes.</p>
<p>Class <code>User</code> is just one of them. I want to be able to get the user record from the table using the database object. I don't want to creat... | 1 | 4,973 |
geolocation in React, use react-google-maps | <p>How to change defaultCenter in react-google-maps ?
I need to find my geolocation and change default values lat and lng.</p>
<pre><code>import React from "react";
import { withScriptjs, withGoogleMap, GoogleMap, Marker } from "react-google-maps";
const getLocation = () =>{
const pos = {};
const geolocation... | 1 | 1,142 |
In Microchip C18, why does the insertion of a NOP cause much larger code? | <p>I have some code in an ISR. The code is given for completeness, the question is only about the commented-out __asm_ block.</p>
<p>Without the __asm_ block, this is compiled into 82 instructions. With the __asm_ block, the result is 107 instructions long. Why the big difference? </p>
<p>Here's the C code:</p>
<pre... | 1 | 5,081 |
pip3 install pyautogui fails with error code 1 Mac OS | <p>I tried installing the autogui python extension:</p>
<pre><code>pip3 install pyautogui
</code></pre>
<p>And this installation attempt results in the following error message:</p>
<pre><code>Collecting pyautogui
Using cached PyAutoGUI-0.9.33.zip
Complete output from command python setup.py egg_info:
Trace... | 1 | 1,159 |
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded | <p><strong>Error I get</strong></p>
<pre><code> Error: Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must loa... | 1 | 2,451 |
proguard can't find referenced class | <p>I m trying to run proguard on my release apk but I get lots of "can't find referenced class" error in my console.</p>
<pre><code>[2014-05-06 17:35:05 - DesiDime] Warning: library class android.net.http.AndroidHttpClient extends or implements program class org.apache.http.client.HttpClient
[2014-05-06 17:35:05 - Des... | 1 | 1,683 |
equals method for DoublyLinkedList | <p>I got this assignment to create an equals method for doubly linked list. So far I got the code I posted below. It passes some of the tests, but not all. The failures do have the same expected value as the actual value, but I still get some AssertionErrors.</p>
<p>Ive been messing and trying to change things for qui... | 1 | 2,297 |
Archetype Selection Using m2eclipse | <p>I would like to create a new Maven project in Eclipse using an archetype using the New Maven Project wizard. At the "Select an Archetype" step, I have three catalogs to choose from: <code>Nexus Indexer</code>, <code>Internal</code> and <code>Default Local</code>. I don't understand where the content for these catal... | 1 | 1,457 |
Work with Binding inside an external function in SwiftUI | <p>I'm currently learning SwiftUI and want to develop my own app. I have designed a <code>LoginView</code> and a <code>LoginHandler</code> that should take care of all the logic behind a login. When the user enters the wrong username/password, an Alert should appear on the screen. I solved this with the state variable ... | 1 | 1,639 |
Calculate summary statistics and then merge all results into single data.frame | <p>I am trying to learn to simplify my code and merge multiple <code>data.frames</code> (>2) simultaneously into a single dataset. First, I would like to calculate the "site" <code>mean</code>, <code>sd</code>, and <code>n</code> (number of "individuals" at each site) for each of the four PCA columns (<code>Morph_PC1</... | 1 | 2,273 |
sqlite database delete not working | <p>This may be a dumb question to ask so with apology I want some one to help me on this.</p>
<p>I Have a simple custom <strong>ListView</strong> that contains a delete icon in it. This custom ListView is inside cart activity. I retrived all those data from server and saved those data using SQLite database. I wish to ... | 1 | 5,776 |
ExtJS Having More Than One vType Applied To A Field | <p>I have seen examples that use built-in vTypes and custom ones for a field, but never a custom and built-in vType together. For example, here is one I am currently using in my code which I have found from the Sencha examples and forums (many thanks):</p>
<pre><code>//Add the additional 'advanced' VTypes
Ext.apply(Ex... | 1 | 9,946 |
How to style flex parent to wrap all children | <p>I am working on a grid layout using css flex styling and want a total css solution, if possible, I have the means to fix it with javascript.</p>
<p>When a row exceeds the viewport width, it displays the scrollbar,
but when you scroll, the styling of the row element remains the size of the viewport,
it does not see... | 1 | 1,508 |
Display and hide progress bar using MVVM pattern | <p>I am working with <em>MVVM</em> pattern. I have just started it and i have done it successfully.</p>
<p>But I don't understand how to add progress bar for showing and hide as we normally do for API calls.</p>
<p>I am not using data binding. So how can i use progress bar for showing and hide it.</p>
<p><strong>For... | 1 | 1,377 |
CSS grid with fixed widths for some columns | <p>I am trying to achieve this layout by using CSS grid.</p>
<p>Picture: </p>
<p><a href="https://i.stack.imgur.com/8D5vb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8D5vb.png" alt="enter image description here"></a></p>
<p>This is what I have so far:</p>
<p><div class="snippet" data-lang="js... | 1 | 1,493 |
How to fix 'file is in use by another process' error | <p>I've created a program that is able to modify the contents of a .exe.config file (app config) through a datagridview with key value pairs displayed on the datagridview. The problem is, I have a save setting, which replaces the old value with a new value typed by the user. It saves, and next time I open it the file w... | 1 | 1,767 |
'alert' undefined in chrome | <p>I am trying to make a field in a php form required. I am using Dreamweaver Cs3. </p>
<p>Dreamweaver generated the following function </p>
<pre><code> <script type="text/javascript">
<!--
function MM_validateForm() { //v4.0
if (document.getElementById) {
var i, p, q, nm, test, num, min, max, er... | 1 | 1,204 |
Unordered set of pairs, compilation error | <p>I am trying to create an unordered set of pairs</p>
<p>So far I have :</p>
<pre><code>typedef std::pair<int, int> Move;
typedef std::unordered_set<Move> Set;
</code></pre>
<p>And I will be creating a set of Moves in the future for now I just have: </p>
<pre><code>Set* King::possibleMoves()
{
Set h... | 1 | 1,936 |
Angular Universal express server keeps loading and fails with ERR_EMPTY_RESPONSE | <p>I have an Angular app and I'm trying server-side rendering using Angular universal (<a href="https://angular.io/guide/universal" rel="noreferrer">https://angular.io/guide/universal</a>) and it doesn't seem to work. I bundle my app and run it through express, I hit <a href="http://localhost:4000" rel="noreferrer">htt... | 1 | 4,045 |
Adding a vector to each row in pandas | <p>I have a pandas dataframe and a function that returns a vector, I want to "add" those vectors to my frame like followed: </p>
<pre><code>for i in range(len(Training_Frame)):
Training_Frame.insert(i,'ONEcoded',onehot_processing(int(float(Training_Frame.iloc[i,-1])),numberOFclasses))
</code></pre>
<p>as an examp... | 1 | 1,128 |
How to fix Request method 'POST' not supported in Spring Boot? | <p>I am creating an API by using spring boot. In this project, I used spring web, JPA, jstl and MySql as dependencies of the API. In this project, I have created a Controller, Model and Repository. Basically, this API does CRUD operations. And also I created a client that consumes my own API. When I use Postman to POST... | 1 | 1,755 |
How do I fix an OverlappingFileLockException when building with Gradle on Windows? | <p>Upon attempting to walk through the <a href="http://spring.io/guides/tutorials/rest/" rel="nofollow">Spring REST tutorial</a>, which uses Gradle, I encountered an OverlappingFileLockException when trying to run <code>./gradlew clean test</code>. When I tried to use a full installation of Gradle instead of the includ... | 1 | 2,581 |
How to save present, absent list of students in database for attendance management system? | <p>I want to save the present/absent details of students in database everyday. In my project I cant save it. Don't know how to save this . I am getting the student name and roll number from another table (table name - student). Help me . Thank you in advance </p>
<p>my database table is like is ,(table name -- attend... | 1 | 2,316 |
Vuetify aligning stacked elements within tool bar/app bar | <p>I have been playing with vuetify, I've been trying to mimic a specific layout to see if I can do it and add tabs. So far, I've been able to center stuff but in a way that I view as weird. I want the h1 to be under the avatar. </p>
<p>I used v-spacer to center things and added tabs that are centered at the bottom</p... | 1 | 1,942 |
When I add <mvc:annotation-driven />, I get a "Error creating bean", "java.lang.IllegalMonitorStateException" | <p>I have a simple application but when I try to add <code><mvc:annotation-driven /></code> to my servlet, I get this error :</p>
<pre><code>[09/07/12 12:09:45:703 EDT] 00000053 DispatcherSer E org.springframework.web.servlet.FrameworkServlet initServletBean Context initialization failed
... | 1 | 6,202 |
Using Google Drive V3 API and service account auth, WebViewLink is null | <p>I am using google drive v3 api to upload a file and then preview it in browser using web view link in the response. But web view link is coming null. When i was using v2, I was able to do it using alternate link. </p>
<p>I have not set the parent ref so I am assuming as per the documentation, the file is stored in ... | 1 | 1,139 |
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51 | <p>I am unable to run my corda project under corporate environment/desktop. I have been building this project on my personal desktop but right now I am going to shift it to my work desktop and is unable to build the project by applying script build.gradle. I have research on this but still have 0 clues about what might... | 1 | 5,286 |
jQuery Mobile - How to Check if the Browser supports jQuery Mobile events | <p>I am currently using the jQuery Mobile "pagebeforecreate" page initialization event to load content into my html page. The jQuery Mobile events are discussed here: <a href="http://jquerymobile.com/demos/1.0a2/#docs/api/events.html" rel="nofollow">http://jquerymobile.com/demos/1.0a2/#docs/api/events.html</a>. After t... | 1 | 1,276 |
serialization using a memory mapped file | <p>I want to serialize my class objects on a memory mapped file but turns out boost serialization only works with file streams. Here is an example:</p>
<pre><code>class gps_position
{
private:
friend class boost::serialization::access;
// When the class Archive corresponds to an output archive, the
// &... | 1 | 1,261 |
linux command to read RFID usb port | <p>im try to read data from an usb RFID reader.</p>
<pre><code>airone@airone:~$ sudo tree /dev/input
/dev/input
├── by-id
│ ├── usb-413c_3010-event-mouse -> ../event2
│ ├── usb-413c_3010-mouse -> ../mouse0
│ ├── usb-Dell_Dell_USB_Keyboard-event-kbd -> ../event3
│ └── usb-Sycreader_RFID_Technology_Co._... | 1 | 2,534 |
Create svg arcs between two points | <p>I want to <em>connect</em> two SVG points (e.g. the centers of two circles) using arcs. If there is only one connection, the line (<code><path></code>) will be straight. If there are two connections, both will be rounded and will be symmetrical, this way:</p>
<p><a href="https://i.stack.imgur.com/4XkE6.png" r... | 1 | 1,441 |
Postfix + Dovecot Connect failed to database | <p>I have installed a new Mailserver based on Postfix and Dovecot.
The setup were fine while I configurated everything. No error outputs or someting.</p>
<p><strong>The problem is:</strong>
When i try to connect to a mail account over a client, its going to idle at the authentication. </p>
<p>Inside the /var/log/mail... | 1 | 1,367 |
Sort a BindingSource which is a set of objects by a series of properties | <p>The question has been asked a lot (which I am aware of) however I have been unable to implement something which works for me specifically.</p>
<p>I am using Entity Framework in order to handle data interaction (and am somewhat new to the contept) with a WinForms application; this works fine and means that the <code... | 1 | 1,116 |
How to prevent leaving a Tab on JTabbedPane | <p>I have an application that has nested JTabbedPanes. Each of the JTabbedPanes include other JTabbedPanes.</p>
<p>I want to check something before allowing the user to leave the current tab.</p>
<p>When you run the code below, you'll see that the Months->February tab has an ALLOW checkbox.</p>
<p>If the ALLOW chec... | 1 | 2,304 |
How to center a TextBlock within a CellTemplate in WPF? | <p>I tried both <code>HorizontalAlignment</code> and <code>TextAlignment</code> but it has no effect.</p>
<pre><code><GridViewColumn Width="Auto" Header="Type">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Type}" HorizontalAlignment="Center" TextA... | 1 | 1,271 |
No Brokers available when trying to connect to Kafka through Cloudera Data Science Workbench | <p>I am trying to implement the GitHub project (<a href="https://github.com/tomatoTomahto/CDH-Sensor-Analytics" rel="nofollow noreferrer">https://github.com/tomatoTomahto/CDH-Sensor-Analytics</a>) on our internal Hadoop cluster via Cloudera Data Science Workbench. </p>
<p>On running the project on Cloudera Data Scienc... | 1 | 1,209 |
N Queens in C++ using vectors | <p>I'm having trouble understanding backtracking, I can conceptually understand that we make a move, then if no solutions can be found out of it we try the next solution.</p>
<p>With this in mind I'm trying to solve the N Queens problem,
I'm finding out all the possible candidates that can be placed in the next row an... | 1 | 1,926 |
NetWork On main thread Exception | <p>Hi, I try to check network connectivity and Internet present by using following method</p>
<blockquote>
<p>check = new ConnectionDetector(getApplicationContext());</p>
<p>conn = check.isConnectingToInternet();</p>
</blockquote>
<pre><code>public class ConnectionDetector {
private Context _context;
public ... | 1 | 2,428 |
how to group array based on a value from within that array - php (laravel) | <p>I have a query from eloquent which I transform into an array. My goal is to group multiples of members into their respective group based on their group id, which each member holds. So essentially I would need a three dimensional array, with the first array holding the group ids, the second holding an array of each m... | 1 | 1,599 |
How to add markers on OpenLayers 3 giving coordinates | <p>I need to add a marker on my map when I call the method addMarker(long, lat).
The only example I have found is <a href="http://openlayers.org/en/v3.8.2/examples/icon.html" rel="nofollow noreferrer">this</a> one in the OpenLayers example list, but it adds only one marker in a specific place.</p>
<p>I need to be able... | 1 | 1,176 |
Session variable is null immediately..ASP.net Core | <p>ASp.Net core 2.1</p>
<p>I set a session variable in one controller:</p>
<pre><code> public ActionResult setsession()
{
HttpContext.Session.SetString("name","Fozzy");
return Ok();
}
</code></pre>
<p>I can see the value in session at this point when i pause the debugger after
setting the se... | 1 | 1,412 |
Hibernate inserts null values to table when used with Spring | <p>I am trying to use hibernate in Spring and using HSQL DB. I am not able to persist my objects to database since Hibernate does not take the values from object and uses null values instead in the generated Insert statements. I am trying to debug the issue for a while now and have run out of ideas. Any help on the iss... | 1 | 1,614 |
mouse Clicked event change colors | <p>Well the goal of this program is to create a bullseye; and when you click on the panel, it will change the color of the bullseye from red to blue. When you click on mine nothing happens. What is causing this?</p>
<pre><code>import java.awt.*;
public class TargetLogoPanel extends javax.swing.JPanel {
public Color ... | 1 | 1,286 |
Validation error about Decimal data type in asp.net mvc | <p>I defined a data type <code>decimal(18,10)</code> for longitute and latitute in my database. But it always said <em>"validation error"</em> when I tried to input and submit my form.
I used <code>LINQ to SQL</code>. Is there some validation rules it generated for me otherwise why I can not input these two with somet... | 1 | 2,176 |
Retrieving an image from SQL Server | <p>I wrote this code but faced an exception that said: <code>Parameter Not Valid.</code></p>
<pre><code> string connstr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\db.mdf;Integrated Security=True;User Instance=True";
SqlConnection conn = new SqlConnection();
conn.ConnectionString = connst... | 1 | 1,080 |
<p:graphicImage> not rendering image | <p>I have a JSF page where I want to show a image. The image is stored in the database as a blob.
The entity looks like this:</p>
<pre><code>@Entity
public class Player
{
@Id
@GeneratedValue(strategy = GenerationType.TABLE)
private Long id;
@Lob
private byte[] pictureData;
@... | 1 | 1,630 |
nginx recv() failed (104: Connection reset by peer) while reading response header from upstream | <p>I have recently upgrade my magento from 1.5 to 1.9 and when ever I add a certain product to basket, I started to receive this error: <strong>502 Bad Gateway</strong></p>
<p>There were no log entries in the <em>var/log/</em> folder:
<img src="https://i.stack.imgur.com/tSqo9.png" alt="enter image description here"></... | 1 | 2,163 |
OData V4 client adding child entity | <p>I have a parent (Order) and child (OrderDetail) where Order already exists in the database and OrderDetail also exists in the database.<br>
All I really want to do is add another OrderDetail record bound to the Order. </p>
<p>I have been down several paths and I'm not even sure what is the correct path.<br>
Let's ... | 1 | 1,241 |
I am using Spring and MyBatis for my demo project for learning MyBatis Framework. I am repeatedly getting CLASS NOT FOUND Exception | <p>I am getting Class not Found Exception Repeatedly.</p>
<pre><code>Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias for 'Emp'. Cause: java.lang.ClassNotFoundException: Cannot find class: classpath*:com.attinad.model.Employee
</code></pre>
<p>My m... | 1 | 1,916 |
Spring Boot, failed to initialise embedded tomcat | <p>I have had an application that was running on spring mvc, spring security and hibernate. </p>
<p>I have recently decided to port it to spring boot, to simplify configurations. </p>
<p>I have multi-module environment, parent pom.xml with 5 other child modules where one of them is a core and all the others are depen... | 1 | 10,474 |
DES TripleDES and AES128 code in java | <p>i wrote below code to crypt and decrypt some bytes in three algorithms with JAVA, but i don't know if i wrote them correctly.</p>
<p>thanks and regards.</p>
<p>first class :</p>
<pre><code>public class Cryptography
{
Cryptography() {}
public byte[] Encryption_AES128(byte[] plain , byte[] key) throws Ex... | 1 | 1,959 |
Recaptcha response null for valid answer | <p>I am trying to integrate Recaptcha with one of my forms. I somehow managed to put the recaptcha on the form and having it submitted using Curl (with help from this post : <a href="https://stackoverflow.com/questions/10471942/what-is-blocking-fsockopen">What is blocking fsockopen?</a>).
But the recaptcha doesn't see... | 1 | 3,733 |
How do I create two new mutable slices from one slice? | <p>I would like to take a mutable slice and copy the contents into two new mutable slices. Each slice being one half of the original.</p>
<p>My attempt #1:</p>
<pre><code>let my_list: &mut [u8] = &mut [0, 1, 2, 3, 4, 5];
let list_a: &mut [u8] = my_list[0..3].clone();
let list_b: &mut [u8] = my_list[3.... | 1 | 1,389 |
Moq with IQueryable Extension Methods | <p>I'm new to Moq Framework and Unit Testing in general, I'm trying to create a unit test for my repository function below.</p>
<h3>Repository Method</h3>
<pre><code>public IQueryable<Campaign> AllIncluding(params Expression<Func<Campaign, object>>[] includeProperties)
{
IQueryable<Campaign&g... | 1 | 1,872 |
Xamarin.Forms Vertical StackLayout in ListView displays only one (first) Child | <pre><code><ListView
ItemsSource="{Binding Messages}"
Grid.ColumnSpan="2"
HeightRequest="100">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<StackLayout>
<Label
... | 1 | 1,112 |
Resource Handler problems with JSF2 + Richfaces4 + SpringMVC + WebFlow (SWF) | <p>I've been trying to get the above mentioned setup working for days now with minimal success. My issues appears to be with the resource handler. Ie. </p>
<pre><code><h:outputStylesheet name="header.css" library="page"/>
</code></pre>
<p>does not work, NOR can RichFaces resolve any of the resources it uses i... | 1 | 2,111 |
The instance of entity type 'TestType' cannot be tracked because another instance of this type with the same key is already being tracked | <p>I am getting the below exception when I try to do:</p>
<pre><code> context.Entry(testType).State = EntityState.Modified;
System.InvalidOperationException: The instance of entity type 'TestType' cannot be tracked because another instance of this type with the same key is already being tracked. When adding new e... | 1 | 2,308 |
undefined method `sass' for #<Rails::Application::Configuration on Heroku | <p>I've looked around a bit and didn't find similar errors reported.
I don't recall having modified my <a href="https://gist.github.com/1284427" rel="noreferrer"><code>production.rb</code></a>. And for good measure, here's my <a href="https://gist.github.com/3c19d928a8d34d723fa4" rel="noreferrer"><code>application.rb</... | 1 | 1,065 |
Show HTML in Console.Log() instead of jQuery selection Object | <p>I'm to output the real html in Chrome developer console for easier debugging.
So I thought of making a chrome extension, which is <a href="https://chrome.google.com/webstore/detail/consolelog-output-real-ht/jnfjicjapkamepnbiplhcjhcjccmegna" rel="nofollow noreferrer">Chrome Extension</a>. </p>
<p>I copied the real ... | 1 | 1,501 |
UI-Bootstrap Popover goes off the screen | <p>I'm using the Ui-bootstrap popover from <strong>UI Bootstrap</strong> (AngularJS).</p>
<p>and the popover in the border of the page seems to get out of the screen...</p>
<p>Is there a better way to position the popover - so it could stay inside the screen? </p>
<p>as you can see popover is cut...</p>
<p><a href=... | 1 | 2,007 |
How to highlight the button when clicked in jquery using toggleclass? | <p>I've the following group of buttons and when those button or buttons is/are clicked in the group then the color of the clicked buttons must be high-lightened. How do I achieve this using toggle class or else please share me with any another approach if not toggleclass.</p>
<pre><code> <div class="btn-group" d... | 1 | 1,340 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.