title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Matlab plot for exponential decay function | <p>I have empirical data of 9 sets of patients the data looks in this format </p>
<pre><code> input = [10 -1 1
20 17956 1
30 61096 1
40 31098 1
50 18446 1
... | 1 | 1,449 |
How can I run a macro from a VBE add-in, without Application.Run? | <p>I'm writing a COM add-in for the VBE, and one of the core features involves executing existing VBA code upon clicking a commandbar button.</p>
<p>The code is unit testing code written by the user, in a standard (.bas) module that looks something like this:</p>
<blockquote>
<pre><code>Option Explicit
Option Private M... | 1 | 1,125 |
Spark - Can't read files from Google Cloud Storage when configuring gcs connector manually | <p>I have a Spark Cluster deployed using bdutil for Google Cloud.
I installed a GUI on my driver instance to be able to run IntelliJ from it, so that I can try to run my Spark processes in interactive mode.</p>
<p>The first issue I faced was that the spark-env.sh and core-site.xml were not used at all when running fro... | 1 | 7,567 |
Sorting mongodb client findOne() in node | <p>I am building a server-less app in AWS with Lambda and Node.js. I currently have a MongoDB out at mLab. I am attempting to get the "latest" record based on an ISODate string. Using either findOne() or find w/limit 1 it returns the same record everytime (not the latest one). </p>
<p>I have 2 records in my test table... | 1 | 1,045 |
Spring Integration: javax.persistence.TransactionRequiredException: no transaction is in progress | <p>I would like to achieve the following in Spring Integration:</p>
<ol>
<li>A message is received in an input channel</li>
<li>This goes through a Transformer which persists it in the DB and thus gives it an ID</li>
<li>it goes on to further processing into some external systems.</li>
</ol>
<p>My transformer looks l... | 1 | 1,695 |
Customize label in stacked column chart extjs | <p><img src="https://i.stack.imgur.com/JrK4c.png" alt="i make columns chart like this but "></p>
<p>i make columns chart like this but this make mismatch when data are low, that time i need to display it ouside ot the chart
like
<img src="https://i.stack.imgur.com/VavDy.jpg" alt="enter image description here"></p>
<p... | 1 | 1,167 |
Android CameraX analyse image stream | <p>I want to analyse a stream of image frames and do some computation on it. However, with CameraX, the ImageAnalysis implementation class seems to get called only once - on camera bind. </p>
<p>My question is: How do I run the analysis on a continuous stream of images - conceptually akin to a video stream?</p>
<p>Fo... | 1 | 1,351 |
Qt Debugger Console does not see debug sessions | <p>Tried asking the official Qt forum first, to no avail.</p>
<p>Qt Creator 4.2.0 (Community), Windows 7 SP1, MSVC 2013 64 bit. Trying to debug a preinstalled example project. Debug session is running, breakpoints work, variable values update, but Debugger Console window keeps saying "Can only evaluate during a debug ... | 1 | 4,869 |
Unable to connect to MongoDb using Pentaho PDI CE | <p>I am new to Pentaho. I am trying to read data from MongoDB using Pentaho Data Integration Community Edition. While trying to execute the MongoDB input step, I am getting the authentication failed error. I found that, the error was due to the missing MongoDb driver in PDI. </p>
<p>Later, I have downloaded the mongod... | 1 | 1,542 |
How to set up two machines for a cluster with two nodes on each machine | <p>I have two dedicated machines for ES (2.2.0). The two machines have the same specs. Each runs on a Windows Server 2012 R2 and has 128GB memory. Regarding ES, I plan to have TWO nodes on each machine for the cluster.</p>
<p>I am looking at elasticsearch.yml to see how to configure each node to form a cluster. </p>
... | 1 | 3,281 |
Unable to authenticate using HostAPD | <p>I have a raspberry PI 2 and have configured HOSTAPD and udhcpd to work as a hot spot.
The first issue i faced was the driver. THe WiFi adapter i purchased was a Realtek chip set. This is now solved by following this post.
<a href="https://www.raspberrypi.org/forums/view" rel="nofollow noreferrer">https://www.raspber... | 1 | 3,110 |
Angular factory testing with Karma Jasmine. Says UnKnown provider | <p>This is my angular code </p>
<pre><code> var app = angular.module('FleetTask', ['ui.router']);
app.constant('settings', {
ApiURL: 'http://localhost/FleetTask.API',
MsgDuration: 4000,
ProductURL: '/api/product',
ProductGroupURL: '/api/productgroup',
DataAreaURL: '/api... | 1 | 2,148 |
Error: "Module use of python37.dll conflicts with this version of Python" when running Maya from a python3 exe subprocess | <p>I'm having trouble getting Maya 2020 (Python 27) to launch from my bundled .exe program (Python 37). I've used pyinstaller to bundle the exe.</p>
<p>If I start my tool from an IDE it launches Maya fine. When I start my tool from the .exe I get this error for several Maya python in modules: </p>
<pre><code># Error:... | 1 | 2,645 |
Error on Android App | <p>I got the error when I was creating a new activity on a button. </p>
<p>Here is my error log</p>
<blockquote>
<p>03-22 22:27:53.425 21442-21442/? E/Zygote: MountEmulatedStorage()
03-22 22:27:53.425 21442-21442/? I/libpersona: KNOX_SDCARD checking this for 10265
03-22 22:27:53.425 21442-21442/? E/Zygote: v2
... | 1 | 1,108 |
Using Chrome Driver with Selenium webdriver.Remote Python | <p>
I am trying to launch a chrome session on a node with webdriver.Remote().
I cannot get the browser to launch. I can get it to working with webdriver.Chrome() but not on grid. </p>
<p>I have node and hub running on the same local machine as the client. </p>
<p>
Here is Test.py</p>
<pre><code>from selenium import... | 1 | 3,804 |
CastError: Cast to ObjectId failed for value "favicon.ico" at path "_id" for model | <p>I am learning how to make a node api with the help of a youtube tutorial but I get this error everytime when I run nodemon and go to the localhost. I haven't use nay favicon.ico in any part of my code. Can someone help me?</p>
<p>This is my full code for the movies model</p>
<pre><code>var mongoose = require('mong... | 1 | 1,528 |
How to Set Column Heights - Bootstrap 4? | <p>I am playing around with bootstrap 4 and I am not sure how to get my heights correctly. I have a "side nav", "header", "main" and "footer".</p>
<p>I want "main" to take up most of the height. However for some reason my heights must be messed up as the side nave does not go all the way down and I got this white chun... | 1 | 1,255 |
Why is swagger validator failing here | <p>I can't seem to figure out why swagger validation is failing</p>
<p>What is strange is that if I add more than one path the validation only complains about the last one. Then if I remove the last one it starts complaining about the one above it.</p>
<p>When working in the swagger editor then it all seems to valida... | 1 | 3,653 |
Hibernate L2 caching using memcached | <p>I am trying to use memcached for Hibernate Level 2 caching but haven't been able to get it working yet. I am running into the following exception(java.lang.NoClassDefFoundError: org/hibernate/cache/TimestampsRegion) when I fire up the tomcat and launch my application :</p>
<pre><code> javax.servlet.ServletExcept... | 1 | 2,105 |
Logback-test.xml configuration is producing two log files instead of one? | <p>When I stop running my <code>spring-boot</code> application there are <strong>two</strong> log files produced rather than <strong>one</strong> (one is expected).</p>
<p>What is wrong in my <code>Logback-test.xml</code> file below that may be causing this?</p>
<p><strong>logback-test.xml:</strong></p>
<pre><code>&... | 1 | 1,137 |
How to Implement an edit view for a list of objects in MVC 4 in its most elegant way? | <p>I've got a <em>"ContactInfo"</em> view in which I want to get a list of different phone numbers of different types from the user. The user should be able to add, edit and delete numbers and specify their types. <i>At least one mobile number is required.</i></p>
<p>I've tried different approaches and I've come to a ... | 1 | 2,376 |
Why is PHP's move_uploaded_file() method returning false in my script? | <p>I'm building a page that allows files to be uploaded to the server, and sorted. I know this code, even if it was working, isn't fit to be live, it was just a first draft to get the mechanics working since I'm quite new to server-side scripting. </p>
<p>Anyway, here's the upload-form page: </p>
<pre><code><html... | 1 | 1,432 |
FLutter || Pick file using file picker and showing them in a listview.builder | <p>Created a function to pick file on onPressed() of Elevated Button, and pass the files to a new function openfiles() and then in open files function, I call a widget show() and pass the parameters to it. How to return in listView.
The default constructor takes an explicit List of children. This constructor is appropr... | 1 | 1,218 |
Flex-slider images are coming up blurry | <p>I am creating a slideshow in my website using Flex-slider. The first image comes up fine however after that the following images flash beneath the slide show before appearing and when it does appear it is blurry and unrecognizable. </p>
<p>here is my Jquery. The link to the images isnt important so i didnt includ... | 1 | 1,274 |
PyQt5 port: how do I hide a window and let it appear at the same position | <p>I'm porting a PyQt4 program to PyQt5. One part of it is hiding the window, taking a screenshot of the area behind the window and showing the window again, which worked just fine with PyQt4.</p>
<p>With my PyQt5 port, everything works fine, but the window appears on the position where it was when the program was sta... | 1 | 1,121 |
Configuring Integration Tests using Spring/Jetty (or Tomcat)/Maven for REST tests | <p>I would like to test our REST service with HTTP requests (kinda blackbox testing). However, after a couple of hours googling and trying different configs, I am still not able to start Jetty correctly. Here is the my current configuration (I tried multiple different versions):</p>
<p>pom.xml</p>
<pre><code> ... | 1 | 3,518 |
Python Selenium session deleted because of page crash from unknown error: cannot determine loading status from tab crashed | <p>The problem is probably memory usage. The page starts to get really slow and at some point the following error message appears</p>
<p><a href="https://i.stack.imgur.com/OltSo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OltSo.png" alt="enter image description here" /></a></p>
<pre><code>from bs... | 1 | 1,320 |
jquery horizontal slide with dynamic content | <p>I want to build a horizontal row of images that can been scrolled to using a fixed nav and jQuery, with a contact area at the far right (end) of the images. I have it nearly there, the problem is, the images are being dynamically brought in. So I don't know how wide it will be until runtime. In the code below the di... | 1 | 1,170 |
Plug-in was unable to instantiate class | <p>I have run into this message while running an Eclipse Application Configuration:</p>
<pre><code> !ENTRY org.eclipse.ui 4 4 2015-08-26 10:47:44.415
`!MESSAGE Unable to create part
!ENTRY org.eclipse.ui 4 1 2015-08-26 10:47:44.464
!MESSAGE Plug-in "org.xtext.refsys.views" was unable to instantiate class "org.xtext... | 1 | 8,344 |
How to get a 'codebehind' file for an ASP.NET-MVC View in RC1 to be created by default | <p>In RC1 the behavior of the template for creating a view changed.</p>
<p>As explained by Scott Gu's post about the <a href="http://weblogs.asp.net/scottgu/archive/2009/01/27/asp-net-mvc-1-0-release-candidate-now-available.aspx" rel="nofollow noreferrer">release candidate</a> a newly created aspx view doesn't have a ... | 1 | 1,191 |
Cognos error RSV-SRV-0040 | <p>Before I go into what i'm doing, here is the error message i'm getting.</p>
<blockquote>
<p>The report server encountered an internal error. Check additional
information associated with this error message. If cause of problem
cannot be ascertained, increase the logging level in the IBM Cognos
administration... | 1 | 2,437 |
How to continuously show latitude and longitude in a Toast message? | <p>I want to display latitude and longitude continuously in toast...
If user moves then lat long should be change... the following code only pops up lat long when it is installed it is not changing...
I want lat long without internet means only from GPS...</p>
<p>GPSTracker.java</p>
<pre><code>package com.techblogon.... | 1 | 5,320 |
Unable to pip install discord.py in python 3.6 on linux | <p>I'm having trouble installing the <a href="https://github.com/Rapptz/discord.py" rel="nofollow noreferrer">discord.py</a> package into python 3.6. I've installed it before, but on my other PC which had python 3.4.</p>
<p>The command I am using is as follows:</p>
<pre><code>python3.6 -m pip install -U discord.py
</... | 1 | 1,442 |
How do I set up Spring Security to allow REST calls from specific apps? | <p>A Spring Boot app uses Spring Security to protect elements of its API from unauthorized users. But the app has public url patterns that need to be callable from un-authenticated users, as long as those users are from certain apps. <strong>What specific changes need to be made to the code below so that the <code>/s... | 1 | 2,405 |
AttributeError: 'numpy.ndarray' object has no attribute 'index' | <p>I'm working on a Quantile Regression Neural Network (QRNN) that can act as a forecaster for wind power as well as a detector for false data injection attacks. </p>
<p>I pretty much finished it but I am trying to quantify it's accuracy by taking the median quantile (tau = 0.5) and comparing it to the actual wind pow... | 1 | 3,180 |
getSOAPBody returns NULL whereas SOAPResponse.writeTo prints the whole message, Strange? | <p>I am providing a java code which i found on here somewhere on stack overflow and i want to use something similar for my purpose. This code works alright but there is a persistent issue that i face. Check the sys outs i have done in the code. The first 2 sys outs that i print to get the SOAP body of the response retu... | 1 | 1,792 |
R: how to extract information from summary model fit | <pre><code>library(nlme)
fm1 <- nlme(height ~ SSasymp(age, Asym, R0, lrc),
data = Loblolly,
fixed = Asym + R0 + lrc ~ 1,
random = Asym ~ 1,
start = c(Asym = 103, R0 = -8.5, lrc = -3.3))
> summary(fm1)
Nonlinear mixed-effects model fit by maximum likelihood
Model: ... | 1 | 1,453 |
Creating labels,dropdown box using Backbone.js | <p>Iknow the basics of backbone.js creating model , coll, view. but how to create attributes for the below script in a model and how to view it in a template?</p>
<pre><code><table>
<tr>
<td>
<label>T:</label>
... | 1 | 1,409 |
PostgreSQL For OpenERP service is not being started | <p>I have installed OpenERP on my windows8 machine, it was working fine for few days, but after then i am getting below error when i start OpenERP, after looking into error i came to know that, error is due to PostgreSQL For OpenERP service, as its not being started. I try to start that service but i am getting this er... | 1 | 1,256 |
populating gridview using layout inflator | <p>I am trying to populate a gridview using LayoutInflator.. According to me the code is correct but I am only getting a blank screen as output... if someone could tell me what am i doing wrong and how to rectify it.. Thanks in advance</p>
<p><strong>Activity class</strong></p>
<pre><code> public class MultipleDocume... | 1 | 1,429 |
How to Implement 3-way Dependent/Chained Dropdown List with Django? | <p>I am using django and postgresql. I'm dealing with a 3-way dependent drop-down list. After adding the country selection, the province area is automatically updated depending on the selected country. After selecting a province, the county field opens only when the page is refreshed. I would be glad if you help me in ... | 1 | 2,064 |
HowTo import core-js Map into angular-cli webpack generated application | <p>^1.0.0-beta.11-webpack" now uses core-js for polyfills.</p>
<p>I am trying to import a Map for use in my application</p>
<pre><code>import {Map} from 'core-js/es6/map'
//import {Map} from 'core-js/library/es6/map'
export function updatePayload(data: any, isDataValid: boolean): Map<string, any> {
const ... | 1 | 6,515 |
asp.net DataList select DropDownList value | <p>I am making an application about article publication. I have 2 tables
"artikulli"</p>
<pre><code>id int Unchecked
tema varchar(250) Checked
abstrakti text
data_publikimit date
path varchar(350)
keywords varchar(350)
katego... | 1 | 4,309 |
"dataValues" is not allowed by JOI.validate() | <p>Here is code for <code>User</code> model with JOI (14.3) validation. The code used to be working when creating new user but it seems got flu recently and throws out error of <code>xxx not allowed</code>:</p>
<pre><code>require('dotenv').config({path: process.cwd() +'\\config\\.env'});
const jwt = require('jsonwebto... | 1 | 3,079 |
Why I am getting this message 'Telerik is undefined'? | <p>I am developing an ASP.NET web-based application and I am using a Telerik tool with it. Everything works fine even in the production server in my company. Now, we have another server that we are using it for testing the web-based applications that we are developing. I copied my application from the production server... | 1 | 3,749 |
Error, core data, reason: '*** -[_PFArray objectAtIndex:]: index (2) beyond bounds (2)' | <p>Hi i am almost new in programing.
I am faced with an error that I couldn't solve anyway. Even after comparing with anther solutions.
I have worked on it for about 3 days.</p>
<p>So let me completely describe my problem:</p>
<p>1.this is my implementation code:</p>
<pre><code>#import "DocumentTableViewController.h... | 1 | 3,502 |
QT5.0 Cross compile for AM1808 ARM9 | <p>I have a requirement to implement the JSON for file transfer.</p>
<p>I found that QJsonDocument is only supported to the QT5.0.</p>
<p>So that I am trying to Cross compile the QT5.0 for my processor(AM1808 ARM9).
I am using UBUNTU v12.10.</p>
<p>I am using arm-none-gnueabi-gcc toolchain to cross compile it.</p>
... | 1 | 9,325 |
jsf facelets menu image in header | <p>i have developed web application using jsf facelets, i've configured a facelet for the ui header, menu, content and footer. But the problem is i've used one image in the header when logged in it shows the image when im clicking in the link in menu and redirected to next page the image is not displaying only when log... | 1 | 2,354 |
Candidate template ignored: deduced conflicting types for parameter: <const T &> vs <T &> | <p>I have a member function <code>_wrapper</code> in my class, that encapsulates some common logic around family of other functions. This wrapper function accepts pointer to function that is being wrapped and its arguments. </p>
<p>Wrapper in my class is implemented similar to how it is done in this example class <cod... | 1 | 1,279 |
How to display Parent and Child ( two different objects ) in treetable primefaces? | <p>I am using Treetable component to display parent and child objects. I can able to display the parent content by using <a href="http://www.primefaces.org/showcase/ui/treeTable.jsf" rel="nofollow">this tutorial.</a></p>
<p>In my case, I am using two different objects to display the contents in the TreeTable component... | 1 | 1,580 |
LIBGDX making 5 different buttons on one screen | <p>I have 5 buttons i need to make do different things but they don't and i need to know how to make them do it.</p>
<p>Here is my code;</p>
<pre><code>public class MainMenu implements Screen {
CrazyZombies game;
Stage stage;
TextureAtlas atlas;
Skin skin;
SpriteBatch batch;
Button play, option, quit, custom, store,... | 1 | 2,225 |
Why WCF InstanceContextMode.PerSession is not working over https? | <p>I have problems with [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession )]</p>
<p>I have simple wcf service, which is hosted in IIS 7.</p>
<p>Service code:</p>
<pre><code>[ServiceContract(SessionMode = SessionMode.Allowed)]
public interface IService1
{
[OperationContract]
int SetMyValu... | 1 | 1,388 |
xmlHttp to download file | <p>Using google chrome i fill in a form and upon pressing the submit button a spreadhsheet automatically starts downloading. I have identified the POST sent to the server but somehow when i send the same request from my script the response is not a file but the original web form. Please see below the request as shown i... | 1 | 1,562 |
Scanner nextLine() NoSuchElementException | <p>I've been programming a Bukkit plugin for a while now, and this one issue has me stumped. I'm trying to read a line from a file using a Scanner, and add everything on the line before ": " to a HashSet. Every time I try, I get a NoSuchElementException, looking like this:<br/><br/></p>
<pre><code>21:01:01 [SEVERE] Co... | 1 | 2,563 |
Set set onchange event for dynamically created dropdown using jquery | <p>i am creating two dropsdowns like this</p>
<pre><code>var drp_nt = $('<select />', {
'id' : 'drp_' + nt,
'name' : 'drp_' + nt+'[]',
'onchange' : check_data(),
'multiple': true});
... | 1 | 4,160 |
Adding JCheckBox Array to JPanel in Netbeans | <p>I've been trying to add an array of <code>JCheckBoxes</code> to a <code>JPanel</code> in Netbeans that has been automatically generated by the <code>Netbeans GUI</code>, when I create an array of the <code>JCheckBoxes</code> and then try to add them to the <code>JPanel</code> using <code>JPanel.add(jCheckboxArray[x]... | 1 | 4,702 |
Rails/Ajax change form from create to update after submission | <p>So I wanted to play with a star ratings page, where I have 5 rating questions and you can rate once (create) and update your rating at any given time. The rating form is ajaxified but the problem is the form element stays as a Create method after submission instead of an update method.</p>
<p>I followed a pretty co... | 1 | 2,038 |
JavaScript to dynamically plot points on Raphael.js map | <p>I'm using John Emerson's <a href="https://github.com/bcks/javascript_world" rel="nofollow">world map</a> to plot some vacation destinations by lat/long. If I hard code everything I can hover over and click the dot, which will display the vacation title. However, since trying to dynamically plot my destinations by re... | 1 | 1,766 |
Add inner mapper to AutoMapper mapping profile | <p>I'm trying to map an object of type source to destination and it has some inner mappings needed. I've created a custom mapper like this.</p>
<pre><code>public class CustomerMappingProfile : ITypeConverter<Customer, CustomerDTO>
{
public CustomerDTO Convert(Customer input, CustomerDTO destination, R... | 1 | 1,374 |
How can I get an entity from Doctrine Fixture reference? | <p>I have added data fixtures in my project that relies on referencing entity objects from each other.</p>
<p>In data fixture one, I have added entity references such as:</p>
<pre><code> // GroupEntity_Fixtures.php file
$this->addReference('GROUP_USER', $groupUser);
$this->addReference('GROUP... | 1 | 2,058 |
Django Social Login: 'AsgiRequest' object has no attribute 'session' | <p>Got an error when trying social-app-django (2.1.0), the error thrown was:</p>
<blockquote>
<p>'AsgiRequest' object has no attribute 'session'</p>
</blockquote>
<ul>
<li>Running with channels 1.1.8, Django 2.0.3, asgi-redis 1.2.0, python 3.6</li>
<li>Running via python manage.py runserver (development environment... | 1 | 1,187 |
MVC 5 IValidatableObject not displaying error message? | <p>I am following ScottGus blog <a href="http://weblogs.asp.net/scottgu/class-level-model-validation-with-ef-code-first-and-asp-net-mvc-3" rel="nofollow">here</a> - The Basic requirement I have is that I have two text fields on screen - I want to validate if both of them are blank and Sumite button is pressed I want to... | 1 | 1,185 |
spring 3 , tiles can not display image or use css style | <p>I have deleloped a simple spring 3 application following a tutorial. After that, I did integrated tiles 2. Right now I am trying to use css style in my tiles but i can not do this and i can not even display an image. </p>
<p>Inside my tiles.xml I have:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" ?>
&... | 1 | 2,038 |
SpringBoot in Docker not connecting to Mongo in Docker | <p>I have a Spring Boot Application and developed it with a mongo db which was running in brew services. </p>
<p>To get a connection to the db I just had to put the following into application.properties in Spring Boot </p>
<pre><code>spring.data.mongodb.uri=mongodb://localhost:27017/db
</code></pre>
<p>changing the ... | 1 | 1,699 |
php - Header('Location') with message | <p>I have a form that sends a email with an order number I want to transfer the user onto a thank you page and display a message ""Mail Sent Thank you first name we will contact you shortly Your Order Number :" send_email.php this sends the email and transfers the user to the thank you page: First i do some error check... | 1 | 2,462 |
How to prevent a page gets refreshed? | <p>I have <code>DropDownList</code> and a submit button on my page. <code>DropDownList</code>has list of data from the database, and while selecting value from the dropdown and then clicking on submit button, I am getting number of records of selected dropdown list value in partial view of the main view page. My code i... | 1 | 1,308 |
Wildfly 8 Final Null ModelAndView returned to DispatcherServlet with name 'dispatcher' | <p>I am using Wildfly 8 Final, a WebApplicationInitializer implementation instead of a web.xml, Spring MVC 4 and Spring Security 3.2. The problem I have is that even though Wildfly says it has deployed the war successfully sometimes (not all the times) when I try to access any URI of the web app I get "404 Not Fou... | 1 | 2,315 |
Merge data.frame rows with common column values | <p>Could you please tell me how I could transform the data frame like this:</p>
<pre><code> tg qr loc a1 a2 a3 b1 b2 b3 c1 c2 c3
1 A 1 89 NA NA NA 1 2 3 1 2 3
2 A 1 61 1 2 3 NA NA NA 1 2 3
3 A 2 38 4 5 6 NA NA NA NA NA NA
4 B 1 40 4 5 6 ... | 1 | 1,121 |
CSS transition triggered by responsive breakpoint | <p><strong>The background:</strong> </p>
<p>I have a Bootstrap nav bar that is supposed to slide out from the right as opposed to drop down from the top. I didn't want to use complicated off-canvas or other plug-ins for this. It seems to work just fine by pushing the left coordinate of the containing div off to the ri... | 1 | 4,806 |
Clearing the "cached" memory in /proc/meminfo without drop_caches | <p>I have an embedded system running 2.6.10 linux kernel (I know!) and I noticed that as the system stays up for longer periods of time, the "cached" usage of RAM - as seen in /proc/meminfo - increases linearly. Sometimes it reaches up to 70% of total RAM and the system crashes.</p>
<ol>
<li><p>I don't know why this s... | 1 | 8,575 |
Twitter Bootstrap and Forms | <p>I am using <a href="http://twitter.github.com/bootstrap/base-css.html#forms" rel="nofollow">Twitter Bootstrap</a>. In the forms I can do horizontal layouts and vertical layouts but the class is on the <code><form></code> tag. So, how to I do a little of both where I want to save space and put a couple of inp... | 1 | 1,479 |
dropzone and asp.net core 3.1 - whats the proper param to be sent to controller? | <p>i have this in my razor view:</p>
<pre><code><div id="dropzone">
<form action="/Controller/Upload" method="post" enctype="multipart/form-data"
id="my-awesome-dropzone" class="dropzone needsclick dz-clickable dropzone-previews">
@Html.AntiForgeryToken()
<div ></div>
<div ... | 1 | 1,202 |
AttributeError: 'bool' object has no attribute 'strftime' | <p>I am inheriting 'account.partner.ledger' module. When we select the customer we will be able to print the report of the customer's ledger. In the partner ledger menu I want to make 'include Initial Balances' checkbox checked by default if the filter is by date/period.I tried to override the method by my custom modul... | 1 | 1,400 |
Apose.Total cannot find license file | <p>I am currently using Aspose Total in one of my Libraries, When I import this library into an application it works well as my License is embedded.</p>
<p>However when I switch this library from debug to release it then gives an error when running the application saying 'Cannot find Aspose.Total.lic'</p>
<p>Is ther... | 1 | 1,090 |
fetch data to table using javascript | <p>I have a table filled with data (fetch from url) and that data is </p>
<pre><code>{
"id": "145127236",
"mygoals": "success",
"future": "high",
"dole": {
"Key": "fhd699f"
}
}
</code></pre>
<p>Under the table I have a select box (the data of it also fetched from url) its data is this </p>
<pre><code>[... | 1 | 2,041 |
how to build gcc cross compiler with --disable-multilib | <p>Anyone can help how to build the gcc cross compiler with multilib support for x86_64 architecture? That is to build it from source code for m32 and m64 lib support. </p>
<p>There is a good article showing how to build a gcc cross compiler:
<a href="http://preshing.com/20141119/how-to-build-a-gcc-cross-compiler/" r... | 1 | 1,184 |
DataGridView - get actual column widths | <p>I am developing an ASP.NET website in which I have some tables of data. I want to generate images of this data, so that I can display those images on forums (for example). The method I have used in the past is quite simple: I create a System.Windows.Forms.DataGridView control (yes, winforms control!) in memory, styl... | 1 | 1,105 |
Problem using Stateful EJB in ManagedBean with RequestScope | <p>I'm using JSF 2.0 and EJB 3.1 in the Glassfish v3 app server. And I'm facing actually the follwing problem:<br>
In a MenagedBean with RequestScope I want to access a session object (an EJB with @Stateful) which should store some session relevant information as the seleced category, the seleced page (with a datatable... | 1 | 1,176 |
How to get Exposure Compensation level from Android phone camera, via Java, when picture is taken? | <p>How to get AutoExposureCompensation level (brightness) from Android phone <strong>when the picture is taken</strong>? </p>
<p>I can take a picture. I can access the Parameters of the Camera, including the Exposure Compensation (always zero when I check), but I need to get the AE Compensation level at the moment the... | 1 | 1,516 |
HTTP404 for resources when using url rewriting on Istio gateway | <p>I'm trying to deploy a service to a specific url address on AKS. The following yaml let's me access the service at desired address, like xxxx.europe.cloudapp.azure.com/service-a. This works great, i've managed to hide the entire service under desired url:</p>
<pre><code>apiVersion: networking.istio.io/v1alpha3
kind... | 1 | 1,043 |
DynamoDB query using secondary index, how to query with different keys | <p>i'm using serverless framework with dynamodb [in Local].
trying to query with secondary indexed fields.
goal is to query with few keys like we do in basic find queries in Mongo: <code>{url:'<Somevalue>'}</code> or may be like this <code>{url:<somevalue>,ha:<somevalue>}</code></p>
<p>Table config ... | 1 | 1,318 |
how to insert/edit QAbstractListModel in python and qml updates automatically? | <hr>
<p>i am trying to insert/edit a python list that is subclassed from <code>QAbstractListModel</code> in pyqt5. this python list is read in the <code>model</code> property of <code>ListView</code> element in qml. i have no issues displaying the data in qml. problem arises when i try to append new data into the pyth... | 1 | 1,322 |
Google apps script ScriptApp.getService().getUrl() always returns the wrong URL | <p>According to the documentation, this method should return the URL of the web app:</p>
<p><em>"Returns the URL of the web app, if it has been deployed; otherwise returns null. If you are running the development mode web app, this returns the development mode url."</em></p>
<p>We have a Google Calendar add-o... | 1 | 1,670 |
AutoPostBack: true vs false | <p>Before I begin, I have already seen <a href="https://stackoverflow.com/questions/12173914/difference-betwwen-autopostback-true-and-autopostback-false">this question about a very similar topic</a> (as well as <a href="https://stackoverflow.com/questions/3778944/what-will-happen-when-autopostback-is-true-and-when-it-i... | 1 | 1,122 |
streaming FLV to RTMP with FFMpeg using H264 codec and C++ API to flv.js | <p>I would like to stream live video from webcam using OpenCV using H264 codec and converting that to FLV then stream over RTMP server and catch the stream in browser with flv.js. Basically I have everything working except that I cannot read stream in flv.js. I can open stream with <code>ffplay</code> so I think at lea... | 1 | 2,742 |
Error in v-on handler (Promise/async): "TypeError: Cannot read property 'data' of undefined" // undefined | <p>I am trying to push data from a <code>v-text-field</code> onto a json file. When i tried it on Postman it worked so I'm guessing the error is coming from the client side</p>
<p>product.vue</p>
<pre class="lang-html prettyprint-override"><code><v-container>
<v-row>
<v-col>
<v-... | 1 | 1,878 |
Flutter Unimplemented handling of missing static target | <p>I am writing an App in Flutter, but recently I always get a <code>Unimplemented handling of missing static target</code>. </p>
<p>I run the App on a physical Android device because I need to communicate via Bluetooth, and that seems a bit tricky to set up in an Emulator. </p>
<p>I saw some Questions here where the... | 1 | 11,461 |
CrudRepository.deleteAll() causes InvalidDataAccessResourceUsageException during testing | <p>I'm testing a Spring Boot CrudRepository interface. The find methods work fine. However if I try to delete something, I get an exception.</p>
<p>For example I have the following:</p>
<pre><code>@Test
public void testDelete()
{
generateTestData.saveCustomersWithoutOrders();
customerRepository.deleteAll();... | 1 | 4,852 |
Java & EJB3: How to correctly pass @Entity objects from Client to Server? | <p>I'm currently trying to pass an @Entity object from a stand-alone client to the server enterprise application by calling a business method on a facade that was auto-generated by Netbeans (Session Beans for Entity classes Wizard).</p>
<p>The @Entity class consists of two String fields. But when the object arrives on... | 1 | 1,770 |
Error: "Fatal signal 11 (SIGSEGV), code 1" when passing Mat object from java to jni function | <p>I am running the video camera using the <code>OpenCV</code> function. I pass the <code>Mat</code> object to the <code>jni</code> function it works for awhile, them the error:</p>
<pre><code>10-10 13:03:17.978: A/libc(28693): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x9 in tid 28791 (Thread-5418)
</code></pre>
... | 1 | 2,586 |
omit NAs when tallying using dplyr summarise | <p>My question involves summarising a dataframe with multiple columns(50 columns) using the <code>summarise_each</code> function in dplyr.
The data entries in the columns are binary(0=negative, 1=positive) and I aim to get the colsums and percentage positives.
The issue is that some columns have NAs and I wish to excl... | 1 | 1,109 |
Devise not working well with multiple subdomains on RoR3 application | <p>I have seen a lot of questions about this topic, but a lot of them have contradictory information, and for some reason it didnt work for me.</p>
<p><strong>I have:</strong></p>
<p>a top level domain: i.e. lvh.me (development).
each user has subdomains: i.e. userdomain.lvh.me
The login form is in the top level do... | 1 | 1,258 |
Sending email via Google SMTP | <p>I am using this code to send emails via GMail (encrypted SMTP).</p>
<pre><code>pocedure TForm5.SendEmail(const Recipients: string; const Subject: string; const Body: string);
var
Email: TIdMessage;
SSLHandler: TIdSSLIOHandlerSocketOpenSSL;
begin
Email := TIdMessage.Create(nil);
SSLHandler := TIdSSLIOHandler... | 1 | 1,617 |
JS - How to check if 2 images (their hash) are similar | <p><strong>GOAL</strong><br>
Finding a good way to check if 2 image are similar compairing their <strong>hash</strong> profiles. The hash is a simple <strong>array</strong> containing <strong>0 and 1 values</strong>.</p>
<p><strong>INTRO</strong><br>
I have 2 images. They are the same image but with some <strong>littl... | 1 | 1,277 |
Change Prior Pymc3 with from_formula | <p>I'm working on a dataset from Kaggle (the one on Human ressources) I am trying to implement some bayesian statistics (logistic regression) but I don't understand how to change the prior on this model (I want the intercept to be an uninformative gaussian and the laplace for all the other predictors)</p>
<pre><code>i... | 1 | 2,412 |
How to identify the 32 bit data-sitekey of ReCaptcha V2 to obtain a valid response programmatically using Selenium and Python Requests? | <p>Pretty much new with captcha and Python requests. The <a href="https://2captcha.com/2captcha-api#solving_recaptchav2_new" rel="nofollow noreferrer">captcha documentation</a> says to copy the value of <code>data-sitekey</code> parameter.</p>
<p>Here was my attempt, using <a href="https://stackoverflow.com/questions/... | 1 | 1,070 |
Apache Spark wrong akka-remote netty version | <p>When spark is running test with sbt. I get this exception :</p>
<pre><code>18:58:49.049 [sparkDriver-akka.actor.default-dispatcher-2] ERROR akka.actor.ActorSystemImpl - Uncaught fatal error from thread [sparkDriver-akka.remote.default-remote-dispatcher-5] shutting down ActorSystem [sparkDriver]
java.lang.VerifyErro... | 1 | 4,935 |
How to implement Equalizer in android | <p>I have to implement an Equalizer in android and i also find <a href="http://kevinboone.net/android_simple_eq.html" rel="nofollow noreferrer">source code here</a></p>
<p>But i have no idea about NumberOfBands and BandLevelRange(What are they?) and how can i handle them.</p>
<p>the given code i have shown you is fro... | 1 | 1,210 |
Display users rank in leaderboard table php mysql? | <p>I have created a quiz page that stores a logged in users quiz result to a leaderboard.</p>
<p>I have a table called members with the columns user and quiz_score. I have a leaderboard printing out depending on the result of a quiz taken by the logged in user. I am having problems displaying the specific users positi... | 1 | 1,481 |
Method invocation instruction (invokevirtual/invokestatic) is substituted by some unexpected instructions | <p>I have been investigating this error for a whole three days, but still no progress. I hope I can get some tips from here. </p>
<p>What I am trying to do is to inline a MethodNode into a MethodHandle Call Site (#5, #17, and #30) with ASM library. For simplification, the MethodHandle at #5 references a static method ... | 1 | 6,335 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.