title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Pass variables from .env file to dockerfile through docker-compose | <pre><code>project
└───app
│ │ ...
│ │ Dockerfile
│ │
└───prod.env
└───docker-compose.yml
</code></pre>
<p>My docker-compose looks like this:</p>
<pre><code>services:
app:
build:
context: .\app
args:
ARG1: val1
ARG2: val2
env_file:
- prod.env
<... | 2 | 2,463 |
AWS S3 Bucket Policy Allow Access From Certain URL’s | <p>I have a power bi app that stores pdfs in an s3 bucket. I wish to only allow access to the documents when requested from the power bi web app or the web app embeded in a web page I administer (beyondmapping.com). I have used the policy generator to create the following bucket policy.</p>
<pre><code>{
"Version... | 2 | 1,152 |
Active Merchant paypal recurring payments | <p>I am using Active Merchant gem to handle payments through the site. But now i want to make these payments recurring, on a monthly basis. Is there a way using active merchant or?</p>
<p>subscription_controller.rb</p>
<pre><code> class SubscriptionsController < ApplicationController
def new
@home_page = ... | 2 | 1,135 |
insert values using array value dynamically in PDO | <p>I'm having problem to Insert array values into database table. This is my project to create invoice using dynamically added (with js) new rows with array value into database table.
my code in php(PDO) is as below:
my form values are as:
MY COMPLETE CODE IS: </p>
<pre><code><form method="post">
<?php $pa... | 2 | 1,272 |
php Socket Socket_bind() unable to bind address [10013] | <p>My situation:</p>
<ul>
<li>I have a program which send on a port (4448) a lot of data from some machines.</li>
<li>I can retrieve that datas from a telnet connection.</li>
</ul>
<p>telnet steps:</p>
<ul>
<li>launch as cmd as ADMIN</li>
<li>write telnet and send</li>
<li>write "open localhost 4448" and send</li>
<... | 2 | 1,256 |
Spring - How to properly use @Autowired to prevent controller / MockMvc from being null? | <p>I'm attempting to run some unit tests and encountering an issue that I am sure stems from a misunderstanding about autowiring. I have a unit test class in which I am trying to use <code>@Autowired</code> on a MockMvc and a REST controller -- both of which end up being null.</p>
<p>I have seen some sources try to e... | 2 | 1,677 |
Action bar not showing on new activity | <p>Action bar on new activities are not showing. I spent couple of hours on stack over flow and other websites on finding what can be the reason but i could not figure out the problem.</p>
<p>Can you please tell me what can be the reason and what will be the possible solution?</p>
<p>Following is my code</p>
<p>Firs... | 2 | 1,518 |
Jenkins Kubernetes Plugin doesn't executre entrypoint of Docker image | <p>I'm fairly new into Jenkins Kubernetes Plugin and Kubernetes in general - <a href="https://github.com/jenkinsci/kubernetes-plugin" rel="nofollow noreferrer">https://github.com/jenkinsci/kubernetes-plugin</a></p>
<p>I want to use the plugin for E2E tests setup inside my CI.</p>
<p>Inside my <code>Jenkinsfile</code>... | 2 | 1,141 |
pull out specific rows from a dataframe to make a new dataframe | <p>I have a dataframe that has some NA values. I want to pull out the rows that have NA, <em>but</em> I don't want to delete them, I want to make a new dataframe containing only those rows that had NA in a specific column.</p>
<p>I have searched for the answer on how to do this but everything I find just tells me how... | 2 | 2,872 |
postgres-simple - No instance for (ToRow Int) arising from a use of ‘query’ | <p>I am new to haskell and have honestly hard times with it. But it expands my thinking, so here we go.
I am trying to run a really simple Webserver that queries a Postgres DB and should return the result as JSON.</p>
<p>The query is absolutely simple:
"Select id,data from MYTABLE where id = 1"</p>
<p>But the type s... | 2 | 1,289 |
How to group rows using LINQ to Entity separating values with commas? | <p>Below is my LINQ Query, that im using to select <code>ITEMS</code>:</p>
<pre><code>protected void Page_Load(object sender, EventArgs e)
{
whatsmydiscountEntities ctx = new whatsmydiscountEntities();
int IdRelationshipItems = Convert.ToInt32(Request.QueryString["IdRelationshipItems"]);
int IdProductServ... | 2 | 1,275 |
How to setup reverse proxy with caddy and vuejs | <p>I want to use a reverse proxy for my SPA web app. I am using Vue with webpack. Behind reverse proxy of web app I get the error "app.6b786574.js:1 Uncaught SyntaxError: Unexpected token <" due to being behind reverse proxy.</p>
<p>I have added the rewrite config exactly as given per the Vue documents for vue Rout... | 2 | 1,901 |
How can i extract image from button icon in PDF using Apache PDFBox? | <p>I want to get image icon from button in pdf using java netbeans, and put it in some panel.
However i hit a brick here.
I'm using PDFBox as my PDF exporter, and i can't seem to understand enough.
I already succeed reading from the form field, but there is no button extractor as long as i try to find it in PDFBox.
Ho... | 2 | 1,168 |
Simple JQuery Script for woocommerce not working | <p>This is quite a tricky one to debug as the problem occurs in the context of an entire page and I struggle to reproduce it in isolation. I will try and post as much relevant code as possible here though.</p>
<p>Essentially I have a dev WooCommerce WordPress store for which I have built a custom theme. On the checkou... | 2 | 1,449 |
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/Kernel32 Selenium | <p>I am currently using Selenium 2.53 for running execution. I have Java jdk 1.8.121. While quitting the browser i.e using the driver.quit() function, I keep getting the NoClassDefFoundError. The stack is as follows :</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/platform/win32/... | 2 | 1,116 |
How to access a row using FlatList keyExtractor in react-native | <p>Is there any way to access a row using key, set using keyExtractor in FlatList.</p>
<p>I using FlatList inorder to populate by data, i need to get a row separately using it's key, inorder to update that row without re-render the entire view.</p>
<p>on <strong>componentWillMount</strong> i populated datalist array ... | 2 | 1,098 |
Deployment deploys twice or not at all | <p>I managed to build a Maven project in a way that makes the release deploy artifacts either double or not at all.</p>
<p>Since the project uses an abstract parent pom of our company it's a bit hard to post the relevant code, but I'll try.</p>
<p>First things first. The parent pom has the following definition:</p>
... | 2 | 1,096 |
Apache not able to load stylesheets and scripts in Django's static directory | <p>I am developing a site using Django. Up until now, when I have used it in a developement environment it was working fine, loading all stylesheets and scripts normally. However, I have currently shifted over to a production environment using Apache Web Server with mod_wsgi for serving Django pages. Now when I am view... | 2 | 1,076 |
How to send custom attribute for chunk file upload | <p>I'm using <code>blueimp</code> file upload plugin but I don't for multiple <code>files</code> but I don't know how to send custom attributes. I wanted to send all these custom attribute to <strong>server</strong> with each <code>chunk</code> no problem(<strong>how we send <code>formData</code></strong>). How we se... | 2 | 1,037 |
CardView not showing on android device (api 21 and below) | <p>Hi im creating a home dashboard design at my app with cardviews, the problem is, in api 21 (Android 5.1) the cardview doesnt show. I tried putting hardware acceleration in android manifest but still doesnt work. Here is my code: </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:a... | 2 | 4,471 |
ClojureScript Reagent Material ui, I want to use CssTransitionGroups | <p>I use ClojureScript in my project. In the start I used Reagent and Material ui especially for the Stepper component. My problem is that I want to use CssTransitionGroups, which for I need to import react-with-addons. The problem is the two "libraries" aren't working together. This is the project.clj</p>
<pre><code>... | 2 | 1,136 |
Extract some XML tags of a string with PHP | <p>I have the following function:</p>
<pre><code>function translate($params) {
$xmldata = '<?xml version="1.0" encoding="UTF-8" ?><root>' . html_entity_decode($params['data']) . '</root>';
$lang = ucfirst(strtolower($params['lang']));
if (simplexml_load_string($xmldata) === FALSE) {
... | 2 | 1,055 |
finding the number of integer points under a triangle, square and circle | <p>for circle i have tried to check for all points within radius distance from center.For square, i test for all points from bottom-left-corner to upper-right-corner and for triangle i test the signs of determinants as suggested <a href="http://in.answers.yahoo.com/question/index?qid=20110614030208AATF7aU" rel="nofol... | 2 | 2,309 |
Example of usage for IVsProject.AddItem | <p>Anybody has example for <code>IVsProject.AddItem</code> till now I have done following but did not understand how to use <code>IVsProject.AddItem</code> and <code>msdn</code> does not have any example.</p>
<pre><code>private void MenuItemCallback(object sender, EventArgs e)
{
IVsSolution solutionService = GetSer... | 2 | 1,941 |
JVM crash on Windows 64bit in Junit test ant target | <p>I am getting this strange situation in my project using windows 64 bit platform.</p>
<ul>
<li>The project involves JNI calls. </li>
<li>The project requires an environment variable "My_Env" to be set. </li>
<li>This variable is internally used by java classes to load some Dlls(64-bit). </li>
</ul>
<p>This "Juni... | 2 | 5,634 |
No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector | <p>Getting a java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'clojure.java.io/Coercions found for class: clojure.lang.PersistentVector
when i run lein test or lein repl from terminal on MAC OS X. Though lein repl works well in eclipse (with counterclockwise plugin)</p>
<p>My Pro... | 2 | 1,258 |
python pandas read_csv skiprows does not work | <p>I am reading a large file separately since pd.read_csv usually causes error and shut down the kernal in ipython notebook when reading large csv file.</p>
<p>However, the skiprow function does not work in my case
have updated the pandas to the newest version to 0.20.1
but the skiprows function still does not work.</... | 2 | 1,369 |
TextView not showing up on Android device? | <p>I have a few views in a Linear Layout. After clicking a button, some math is done. The result is then displayed in a textview. It works fine on the emulator, but it does not on my Android device.</p>
<p>Entire Layout file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android... | 2 | 1,569 |
Highcharts Multiple Series Dynamic Column Chart Update | <p>I am using highcharts on a project, I am having trouble with the creation of multiple series of data updating dynamically.
I'm not sure what I'm doing wrong, below is the sample data and code.
Please note the below code is working with single series of data, but what changes I need to make for more than one series? ... | 2 | 1,634 |
Retrieving data from Firebase database to webView in Android | <p>I am building an application with <strong>webView</strong> and <strong>Firebase</strong> as database, I have implemented both correctly but the problem is that my webView is <strong>not retrieving</strong> any data from Firebase database and is showing blank when I open application, I have checked the webView by add... | 2 | 1,180 |
Possible Deadlock on Calling FreeLibrary | <p>I have to write a DLL in Delphi XE7. I want to use TParallel.For in the DLL. The DLL is loaded into a C++ application, where everything works. However, when the application terminates, or a call to FreeLibrary is made, the application hangs. If I remove all the TParallel.For loops and replace them with standard loop... | 2 | 1,093 |
Terraform: Use Azure resource group from module in a different module | <p>I have successfully created a vnet module (with a resource group). But I'm now trying to create an azure public IP address in a compute module, but want to place it in the resource group I created in the vnet module. Please help.</p>
<p>Folder Structure:</p>
<pre><code> c:\terraform
-main
-terraform... | 2 | 2,351 |
MemoryError while reading and writing a 40GB CSV... where is my leak? | <p>I have a 40GB CSV file which I have to output with different column subsets as CSVs once again, with a check that there are no <code>NaN</code>s in the data. I opted to use Pandas, and a minimal example of my implementation looks like this (inside a function <code>output_different_formats</code>):</p>
<pre><code># ... | 2 | 1,743 |
Form validation with jQuery Validate plugin | <p>after a long research on internet i'm about to give up, let's say you are my last hope. My problem: I'm implementing a timesheet form for my company. This form is dynamic because in a day you can do several activities. The fields (included in a PHP page) are:</p>
<ul>
<li>Day (text field)</li>
<li>Hours (drop down)... | 2 | 1,362 |
Managing Input in SDL? | <p>I am creating a pong clone in C++ using SDL. The Paddles are ready and move according to the user input. What keeps worrying me is that the input is weird, I expected smooth movement of both the paddles but one paddle lags when the other paddle is moving and speeds up when the other is not moving. I doubt if this is... | 2 | 2,071 |
(Java) No Required SSL certificate was sent (Works fine when used in curl call) | <p>So, I'm trying to test out a connection to my company's web server (using 2-way SSL) by using a client certificate in a Java program.
I have tried using the same certificate in a curl call (separated cert and key) and managed to get the desired response.
But when I tried using it in my Java program (combined into pk... | 2 | 1,324 |
Error when using Hibernate tools Session factory | <p>I get <strong>org.hibernate.MappingException: entity class not found: Company</strong></p>
<p>In my Spring MVC project I already have classes mapped with annotations and I use Hibernate. I installed and configured Hibernate Tools to use HSql editor and mapping diagram. The mapping diagram opens, but the Hsql editor... | 2 | 3,861 |
Thank You message display after form submission mvc umbraco | <p>I have created a Contact us form using surface controller in umbraco.
Form is working fine.
Now i need to display a thank you message after form submission using java script. i am quite weak in java scipt please guide me how i can do it. I am pasting the code that i have implemented.</p>
<p>My ActionResult</p>
<pr... | 2 | 2,975 |
Run Controller Method when Button is clicked MVC4 C# | <p>I am making a simple application using visual studio 2013, MVC4 and C#. This web app has a table with multiple checkboxes and an Update button disbaled by default. When one or more checkboxes are clicked I activate the button.</p>
<p>The idea here, is to send all the information of the checkboxes (which ones are on... | 2 | 1,197 |
Very slow mutex in LLVM/OpenMP | <p>I wrote code to test the performance of openmp on win (Win7 x64, Corei7 3.4HGz) and on Mac (10.12.3 Core i7 2.7 HGz).</p>
<ol>
<li>In xcode I made a console application setting the compiled default. I use LLVM 3.7 and OpenMP 5 (in opm.h i searched define KMP_VERSION_MAJOR=5, define KMP_VERSION_MINOR=0 and KMP_VERSI... | 2 | 2,711 |
Why doesn't the Tab order between/inside a TreeView work? | <p>I have a window with following xaml:</p>
<pre><code><Window x:Class="TestDemoApp.TreeViewWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="TreeViewWindow" Height="300" Width="300">
<Window.Reso... | 2 | 1,632 |
Comparing datarows and output difference .net 4 | <p>I have not used datatables in while.
Is there a way that given 2 datatables or even 1 compare all the rows with the same customerId and output the fieldname and row value that has changed.</p>
<p>Need to compare client data in various stages and find which values have changed.</p>
<p>Any suggestions?</p>
<p>code ... | 2 | 1,765 |
java.lang.ClassNotFoundException: com.sun.rowset.CachedRowSetImpl in wildfly-9.0.2.Final | <p>Enviornment - AS@wildfly-9.0.2.Final,JDK - java version "1.8.0_66" , Building tool - ANT</p>
<p>A java file having following code has been configured as a module (module add --name=jaroneapi --resources=~/Downloads/jaroneapi.jar)
I think the classes which I need are all in the rt.jar from my JDK.</p>
<pre><code> ... | 2 | 2,378 |
How to maintain a cache of the public keys from Google's OpenID Connect discovery document | <p>I am working on a Node.js server side validation of json web tokens received from cross origin ajax clients. Presumably the tokens are generated by <a href="https://developers.google.com/identity/protocols/OpenIDConnect" rel="nofollow noreferrer">Google OpenID Connect</a> which states the following:</p>
<blockquote>... | 2 | 1,075 |
The Program Compiles and Runs but no Output | <p>Currently i have created 2 <code>JFrame</code>s , one <code>JFrame</code> for <strong>login authentication</strong> and other one is the <strong>main menu</strong>. The problem is when i compile and run the program there is no output , the screen is just blank. The <strong>NetBeans</strong> compiler shows that its r... | 2 | 1,499 |
Display PDF in a webpage | <p>I'm using Spring MVC, <b>I want to display PDF file from my local to webpage.</b> I don't know what should I do to my controller to do this. I see some similar problem with an answer that returning a <code>ResponseEntity<byte[]></code> like in this <a href="https://stackoverflow.com/questions/16652760/return-g... | 2 | 1,100 |
Android NDK setup for speex | <p>I am trying to integrate speex in my program and just downloaded NDK for it. I have trouble with setup Android NDK (I am on Mac OS). When I type </p>
<pre><code>./ndk-build -C ../android_dev/oler_android/
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file:
~/Desktop/android_dev/oler_android//jni/Android... | 2 | 2,602 |
Python request.session JIRA "You do not have the permission to see the specified issue" | <p>Firstly, I am aware of the solution presented here: <a href="https://stackoverflow.com/questions/28434628/jira-rest-api-to-get-work-log-you-do-not-have-the-permission-to-see-the-speci">JIRA REST API to get work log - "You do not have the permission to see the specified issue"</a> ... As well the <a href="h... | 2 | 1,046 |
After Spring boot 2.2.0 upgrade cause issue to read value by placeholder | <pre><code>Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'myname' in value "${myname}"
at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178) ~[spring-core-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.util.PropertyPlac... | 2 | 1,152 |
.NET Core Integration tests fails because of HttpRequestException | <p>I am trying to test my API by calling an endpoint which should return an error message (json response). When testing this in Postman, the API indeed returns correct JSON and I am able to see that the status code is not 200. However, when trying to test this while using xunit and HttpClient, I am getting the followin... | 2 | 1,366 |
XNA: Scrolling A Linearly Wrapped, Rotating Texture, Up, Down, Left, And Right: | <p>I'm working on a simple XNA based game for the PC where I have a game screen window size of 1024 X 768 and I want to scroll, in the direction in which I move my mouse, a linearly wrapped, rotating texture, which is 1280 X 1280 in size. </p>
<p>The origin of this texture has been set to it's center point(640, 640) a... | 2 | 1,429 |
Three.JS UV Mapping for partial spheres | <p>In <a href="https://stackoverflow.com/questions/49900677/mapping-a-stereographic-projection-to-the-inside-of-a-sphere-in-threejs/">a previous question</a> I was looking to map a stereographic projection onto a sphere for the sake of live-streaming a virtual reality event.</p>
<p>I ultimately learned quite a bit abo... | 2 | 1,117 |
Telerik Rad Calendar - Is Changing Data Source Possible? | <p>I'm trying to change the dates displayed in a RadCalendar. For example, I want it to begin 2 weeks before the current date and ends two weeks after the current date. Is it possible?</p>
<p>I was able to change the text displayed in the cells (to display the "new" date) but the "OnClick" methods still sends the "old... | 2 | 1,647 |
How to make a generic type an union type of Record<K,V> and an interface in Typescript? | <p>I want to declare a couple singleton class (Angular service) that <em>must</em> have some members named after an enum. Until now I had it as a const:</p>
<pre><code>enum RewardId {
HEHE = 'AdMobRewardIdHEHE',
HOHO = 'AdMobRewardIdHOHO',
}
interface RewardObject {
id: RewardId;
someData: any
}
const MyCon... | 2 | 1,578 |
How to access/handle IOwinRequest Body | <p>I am writing a custom Owin middleware AuthenticationHandler for Hmac authentication.</p>
<p>In the overriden 'AuthenticateCoreAsync' method I need to read the http headers and the 'Body' (content) of the request.</p>
<p>I have everything working, claims / authentication ticket, etc.</p>
<p>But whenever I access o... | 2 | 1,285 |
Hibernate Second Level Cache & JUnit | <p>I'm trying to use SecondLevelCache with hibernate. This is my xml configuration file:</p>
<pre><code> <persistence-unit name="EntityTestHibernate" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="hibernate.show_sql" value="false"/>
<property nam... | 2 | 1,427 |
How to do custom image cropping in android | <p>In my application, I need to take images from gallery/camera, crop those images, then save the cropped images some where else. The below code does most of that, but cannot crop images to my liking. Using the below code, I can crop images using 4 coordinates, top, bottom, left and right side of image middle coordinat... | 2 | 2,339 |
Android Studio: Transparent checkout using Mercado Pago | <p>I am trying to implement for the first time the Mercado Pago's transparent checkout in Android.</p>
<p>I've already downloaded the newest version of the SDK provided in <a href="https://github.com/mercadopago/px-android" rel="nofollow noreferrer">https://github.com/mercadopago/px-android</a> and executed it normall... | 2 | 1,254 |
FileNotFoundError: [Errno 2] using Pipenv | <p>I'm trying to install dependencies in django using <code>pipenv install</code>.
Then it responded error message like this in Ubuntu 22.04 LTS. Does file path in wrong or installation incomplete?</p>
<p>Python version - 3.10.4, pip version - pip 22.0.4 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)</p... | 2 | 1,721 |
CSS not Working in JSF - what am I doing wrong? | <p>I have tried calling the CSS in every way possible but nothing works.
Here are four different ways... While I was making tests, I duplicated the style.css file , so there is one in the same folder as the XML code, and there is one in the CSS folder. Both have the same content.</p>
<pre><code><?xml version='1.0' ... | 2 | 1,307 |
Traversing a Tree Structure | <p>I am trying to understand how to traverse a tree data structure, and I am having a problem doing it, especially as I am trying to use <code>IEnumerable</code>. I want the tree as a dictionary so I can refer to the nodes by their string names. The tree will hold different class objects but as these objects all implem... | 2 | 1,963 |
Drawing circle in OpenGL ES 2.0 | <p>I got a problem with OpenGL ES 2.0 for iPhone.
I'm trying to draw a simple circle textured with this code:</p>
<pre><code>double qualite = 40.0f;
double rayon = 0.5;
double TWOPI=2*M_PI;
double step = TWOPI/qualite;
// CENTRE DU CERCLE
// X Y Z NMR1
gCircleVertexData[0]=0.0f;
gCircleVertexData[1]=0.0f;
gCircleVert... | 2 | 1,564 |
After calling UIImagePickerController multiple times the device restarts | <p>I implement UIImagePickerController delegate, UINavigationController delegate, UIPopOverController delegate. I have no clue what the problem is. My device restarts after calling this 3, 4 or 5 times ( It is different each build ). Please help me fix it!!</p>
<p>EDIT: I get this error: </p>
<pre><code>More than max... | 2 | 1,291 |
Nothing happens after startActivity in Android with Kotlin | <p>I have a very weird problems about android "startActivity()" method. The new Activity is not started after I called "startActivity()" method.</p>
<p>This is my code :</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-... | 2 | 3,430 |
websocket-sharp server sending duplicate messages | <p>Here is the rumpus.</p>
<p>I am building a networked app using websocket-sharp and I have run into an issue where the server sends hundreds (not consistently the same amount) of duplicate messages to the client, heres the breakdown.</p>
<p>1.) The client connects (This handshake works fine).</p>
<p>2.) Upon clien... | 2 | 1,283 |
Subdomain sign in with Rails 4 and Devise 3.1.0 | <p>UPDATE --</p>
<p>I would recommend skipping direct to answer section -- goal of this was to allow multiple subdomains, each of which would have their own users/registrants. A registrant could register on multiple subdomains, however each subdomain is treated independently and unassociated with the others.</p>
<p>... | 2 | 3,700 |
JavaFX not working properly with Internet Exploer 9 and 10 ( if Document mode is set to IE9 ) | <p>I faced a problem in depolying JavaFX app in web and I got issue only with IE10 or IE9 and to be more precisely when the Document Mode is 9 , issue is that Browser cannot recognize the object 'app' which will be defined by JavaFx after being loaded . This object 'app' calls function 'tellme' with parameters. What... | 2 | 4,973 |
Dots in field aren't used to break up word for analyzer | <p>I have following mapping for the index documents (simplified)</p>
<pre><code>{
"documents": {
"mappings": {
"document": {
"properties": {
"filename": {
"type": "string",
"fields": {
... | 2 | 2,125 |
Spinner getSelectedView() is null | <p>I got a spinner it has 6 items in it, I can see them.when I call spinner.getSelectedView(), it is always null</p>
<p>Any idea why?</p>
<pre><code>sortSpinner.setSelection(2);
CheckedTextView v = (CheckedTextView) sortSpinner.getSelectedView(); //crash null pointer
v.setChecked(true);
</code></pre>
<p>Edit:</p>
<... | 2 | 1,197 |
Linking Wordpress index.php to single.php | <p>I'm working on a website that I initially coded from scratch, but am now integrating wordpress with it because my client wants a backend.</p>
<p>Here's my problem, I'm using index.php for the main blog posts (which so far is working ok). But what I want to do is have just an excerpt of the posts (a brief summary) a... | 2 | 2,133 |
Android Bluetooth thermal printer connection issue | <p>I am facing one strange issue with the Android Bluetooth printer. When I try to connect with the printer device for the first time I am facing the following issue </p>
<pre><code>BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
java.io.IOException: read failed, socket might closed or... | 2 | 1,041 |
vhdl code wrapper | <p>I'm trying to implement a VHDL project but I'm having problems connecting the different components correctly. I just want to make sure that I did this correctly. The code below is just the wrapper (which, to this point, is where the problem lies). Please let me know if I'm connecting the input and outputs to each co... | 2 | 2,009 |
I want to send the encrypted mail using PowerShell | <p>I want to encrypt the mail using S/MIME standard using powershell. I am able to send mail with attachment(without the encryption from powershell). But when i tried to encrypt it with the following code. It doesn't work as it just remove the file and send the body unencrypted. I am using powershell version 5. For tes... | 2 | 1,991 |
xsl for-each within for-each-group group-by | <p>I am new to xsl. I understand that some similar questions have been asked, but I need help since I can't figure out what was wrong with my code. I have xml transactions file. I want to ,first, group by date, then sort each group of transactions by time</p>
<p>I have this xml</p>
<pre><code><History>
<... | 2 | 2,781 |
Sort a range or array based on two columns that contain the date and time | <p>Currently I'm trying to create a Google Apps Script for Google Sheets which will allow adding weekly recurring events, batchwise, for upcoming events. My colleagues will then make minor changes to these added events (e.g. make date and time corrections, change the contact person, add materials neccessary for the eve... | 2 | 1,758 |
Maps, ggplot2, fill by state is missing certain areas on the map | <p>I am working with <code>maps</code> and <code>ggplot2</code> to visualize the number of certain crimes in each state for different years. The data set that I am working with was produced by the FBI and can be downloaded from their site or from <a href="http://www.hofroe.net/stat579/crimes-2012.csv" rel="nofollow nor... | 2 | 1,618 |
JQuery UI Slider inside Modal Dialog | <p>My <a href="http://api.jqueryui.com/slider/" rel="nofollow">JQuery UI Slider</a> widget doesn't show up inside a Modal, it does show in normal content though.</p>
<p><a href="http://plnkr.co/edit/fNecCItRBLNwBAX6pSJm" rel="nofollow">HERE'S THE PLUNKER</a></p>
<pre><code> <!DOCTYPE html>
<html ng-app="ui.b... | 2 | 1,443 |
Method references in Android Studio | <p>I am attempting to use a Java 8 feature in Android Studio. Specifically method references. To be even more specific, a reference to an instance method of a particular object. To use the wording the <a href="https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html" rel="nofollow noreferrer">Oracle do... | 2 | 1,306 |
ELMAH is not logging on Azure | <p>I try to use elmah to log errors on my server. If exception occurs on my local pc, elmah will save this error. But after I upload it to azure, it doesn't work anymore. Database configuration is correct, because I can log errors with the following statement (Local/Azure):</p>
<pre><code>Elmah.ErrorSignal.FromCurrent... | 2 | 3,862 |
R RPostgreSQL Connect to Remote Postgres Database with SSL | <p>I am trying to connect to a remote PostgreSQL database from within R using the <code>RPostgreSQL</code> package, and I am getting errors that appear to be related to the SSL settings for the connection. I have verified that I can connect from the command line using <code>psql</code>, so I know the connection is vali... | 2 | 1,216 |
Ajax div refreshing | <p>I have a problem with AJAX , I cant find a good solution to refresh only my div "chatwindow" every second. I have tried many posts from stackoverflow and from google.
Can someone help me... to make this.
So far my code</p>
<pre><code><!DOCTYPE HTML>
<?php
include 'config.php';
?>
<html>
<he... | 2 | 1,371 |
I am getting "Invalid mapping type value" this error while calling in c# | <p>i created method to show my report then i give connectioninfo at runtime
but when i connect to remote server i got error</p>
<pre><code> public bool ShowReport()
{
try
{
//CrystalDecisions.CrystalReports.Engine.ReportDocument oRepDoc;
//CrystalDecisions.Shared.TableLogOnInfo oLogInfo;
... | 2 | 2,076 |
angular2 http.delete on in-memory-web-api | <p>my project uses on premise servers, the backend runs on .NET core and I develop on a mac, so I cannot run an instance of our backend. Therefore I have made a separate (angular-cli) environment for my project that uses the in-memory-web-api.</p>
<p>I have it set up and works for get/ and get/:id. but a delete won't... | 2 | 1,325 |
running sum / cumulative sum with floor and ceiling Py Spark | <p>I'm new to spark, and I am trying to calculate a window running sum that is floored by 0 and ceiled by 8</p>
<p>a toy example is given below (note that the actual data is closer to millions of rows):</p>
<pre><code>import pyspark.sql.functions as F
from pyspark.sql import Window
import pandas as pd
from pyspark.sq... | 2 | 1,952 |
Why is gmail client (via Chrome and Android app) still strip <style> tag from HTML email? | <p>I recently reviewed the <a href="https://app.pluralsight.com/library/courses/responsive-html-email-design/table-of-contents" rel="nofollow noreferrer">Pluralsight course on HTML email</a> and then made a sample for myself. I tested it through Mailchimp and the Mailchimp test environment renders it as expected for bo... | 2 | 7,835 |
Apple's PDFKit: Free draw with Ink annotation | <p>I just want to draw on a PDF file using PDFKit. This sounds simple but I'm having a lot of trouble. From the documentation, the ink annotations seem to be appropriate for this. Here's my code:</p>
<pre><code>/// Adds a new annotation
func addAnnotation(color: UIColor, point: CGPoint) {
currentPage = pdfView.pag... | 2 | 1,085 |
How to loop through nested JSON objects in C#? | <p>I am working on a C# project where I need to call an API and parse through the JSON response.</p>
<p>The JSON response:</p>
<pre><code>{
"version": "3.9.1",
"data": {
"obj1": {
"version": "1.0.0",
"id": &qu... | 2 | 2,312 |
How to get load html with Ajax and jQuery | <p>I'm using jquerymobile. I have a page that gets the latest posts with a click on a refresh button.</p>
<p>I can't get any html from viewposts.php to show up in the #test div.</p>
<pre><code>$("#refresh").click(function(){
$.ajax({
cache: false,
url: "mobile/vie... | 2 | 1,357 |
Coinbase Api Java POST request "Invalid Signature" | <p>I am trying to send a POST request to the coinbase sandbox endpoint. When signing the request I always get an "Invalid Signature" response. It seems that coinbase requires the JSON message be base 64 encoded and sent as a part of the signature. I am fairly new to POST requests and have never signed a message before.... | 2 | 1,202 |
Pandas Float64 vs float64 dtypes (note capitalization) causing non-numeric errors? | <p>I was getting some weird errors that after much searching appeared to (maybe) come from my data not being considered numeric in some cases. This seems to be because I used Float64 dtype (which I thought was what I was supposed to do).</p>
<p><strong>TLDR;</strong> What's the difference between Float64 and float64? W... | 2 | 2,163 |
chrome.runtime.onMessage not exists | <p>I've <a href="https://stackoverflow.com/questions/57716275/how-to-pass-data-from-content-script-to-popup-html">asked</a> for help to understand how to implement correctly the message API for chrome extension, then I've implemented it in my code.
The workflow is that the popup.js will send a message to my background... | 2 | 1,043 |
how to live populate div using dynamically generated html input types | <p>i'm trying to populate div with select option but i don't really now where to start...</p>
<p>i have some code to live edit the "title" of the div, but now i want to add to a specific div his option...</p>
<p>Here's the code that i have for now:</p>
<pre><code> var rooms = $("#howmanyrooms").val();
va... | 2 | 1,373 |
redux-promise use 'then()' after dispatching action | <p>I want to delete a post. I'm using redux-promise as middleware.
My action looks like this:</p>
<pre><code>export function deletePost(id) {
const request = axios.delete(`${ROOT_URL}/${id}?apiKey=${API_KEY}`)
return {
type: DELETE_POST,
payload: request
}
}
</code></pre>
<p>Then I have ... | 2 | 1,417 |
How to change date format from array | <p><strong>Now, I'm try to change date format from year-month-day to month/day/year form array.</strong> </p>
<p><strong>I have an array that contains multiple dates in array i want to change each date format to year-month-day to month/day/year. Please check below array that contains multiple dates. Please help me if... | 2 | 1,127 |
May placement `new` rely on underlying storage value? | <p><em>Let's start with some context.</em></p>
<p>A custom memory pool was using code similar to the following:</p>
<pre><code>struct FastInitialization {};
template <typename T>
T* create() {
static FastInitialization const F = {};
void* ptr = malloc(sizeof(T));
memset(ptr, 0, sizeof(T));
new... | 2 | 1,145 |
Carbon/Cocoa fonts look different | <p>I'm trying to draw in the currently selected system font using the ATSU api in a Carbon app. And the fonts are coming out bolder than all the other native apps. Here is a screenshot example of what I'm talking about:</p>
<p><a href="https://i.stack.imgur.com/wy9Gj.png" rel="nofollow noreferrer"><img src="https://i.s... | 2 | 1,600 |
How can a tooltip in D3 fetch data dynamically? | <p>We have some data </p>
<pre><code>University,Total,Females,Males,Year,Type
PortSaid,13817,6679,7138,2012,Public
PortSaid,14790,7527,7263,2013,Public
PortSaid,17295,8509,8786,2010,Public
6OctoberUniversity,12507,4297,8210,2012,Private
6OctoberUniversity,14608,5360,9248,2013,Private
</code></pre>
<p>I try to create ... | 2 | 1,224 |
Error: "New-ADUser : The object name has bad syntax" | <p>I am creating a PowerShell script at work to copy user accounts. The script works perfectly on my test Server 2016 VM. It also works in our work environment on a coworkers Windows 10 PC, however I cannot run it on my local machine. It returns the following error:</p>
<pre>
New-ADUser : The object name has bad syn... | 2 | 1,615 |
Get result by id fails | <p>I'm trying to use celery in my Flask-based web app and monitore it's state. My idea is to store task's id in session, and use it for state polling.</p>
<p>Here is content of my tasks.py</p>
<pre><code>from traceback import format_exc
import settings
from celery import Celery, current_task
from celery.utils.log imp... | 2 | 1,259 |
node-red html5 streaming video | <p>I'm new to both node-red and javascript and I was hoping someone could help me. I have been trying to stream a video using node-red. I have successfully displayed an image using the this flow.</p>
<pre><code>[{
"id": "c2701738.8bfcb",
"type": "http response",
"z": "6a1a7f76.b846d8",
"name": "",
... | 2 | 1,948 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.