title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
unnecessary space on left side in nav | <p>I have a space beetwin my nav link it about 2px and i cant remove it, is it anny css code that can do it?</p>
<p>When you hover over Downloads you can see the space on left side.</p>
<p>jsFIDDLE:<a href="http://jsfiddle.net/asRz3/1/" rel="nofollow">http://jsfiddle.net/asRz3/1/</a></p>
<p>HTML:</p>
<pre><code><... | 2 | 1,254 |
Alert rule in Azure ARM template not enabled in web test | <p>I am using an ARM template to programmatically create an Application Insights web test and alert rule. The ARM template is based on <a href="https://azure.microsoft.com/en-us/documentation/articles/app-insights-powershell/" rel="nofollow noreferrer">this article</a>. </p>
<p>Both the web test and the alert rule are... | 2 | 2,103 |
"Could not find mandroid!" VS Community xamarin | <p>I Just downloaded VS Community which includes Xamarin 4.0.3214 , and when I create an empty android project then trying to build it I got the following errors and warning :</p>
<pre><code>Could not find mandroid!
The referenced component 'System.Core' could not be found.
The referenced component 'System.Xml.Linq' c... | 2 | 5,332 |
Updating Laravel 5.4. to 5.5 breaks validation responses | <p>I have an API running on laravel 5.4 that I would like to update to 5.5
I have updated composer.json with "laravel/framework": "5.5.*" and "phpunit/phpunit": "~6.0"</p>
<p>The problem is that now whenever there is a validation error I always get a status code of 500 with the message "The given data is invalid" inst... | 2 | 5,666 |
Bootstrap 4 nav not expanding after clicking the toggler | <p>So, I am making a navbar in Bootstrap 4. But for some reason, when my navbar gets collapsed (when using a smaller screen/window) and I click the button that is supposed to expand it again, nothing happens. The navbar is not visible. Also, I put the class "navbar-toggler-right" on my button, yet it is not on the righ... | 2 | 1,310 |
Jboss Secure web service error by using the database login module: EJB Invocation failed | <p>I've a little problem with my Jboss AS 7.1.1.Final Web Service authorization. I want to secure the web service via the database login module.</p>
<p>Everything works properly when the service is running without an authorization. I've implemented a jax-ws based standalone client to call and access the web service.
T... | 2 | 9,568 |
GA GEO Chart cities labeled incorrectly | <p>I have a page that connects to a google analytics account. On the page I have a GEO chart focused on the state of Florida.</p>
<p>When I hover over the markers on the map, about half of the markers appear to be correct. The other half are labeled with city names that dont match their marker on the map. Like markers... | 2 | 5,842 |
Draggable selection rectangle | <p>Before anybody points it out I know that a there is a question with the same title that <a href="https://stackoverflow.com/questions/9374806/winforms-a-draggable-transparent-rectangle">has already been asked here</a> it just doesn't answer my issue I think.</p>
<p>Working in .NET 3.5 As in that question I am making... | 2 | 7,215 |
JS - Scroll a hover-related div | <p>I've a couple div that allow you to hover over <code>#HoverMe</code> in order to see contents in <code>#hidden</code> div(that's hidden when un-hovered). If the list is a bit to long, it's scrollable. However, I can't scroll it while I'm hovering <code>#HoverMe</code> div. If I want to scroll <code>#Hidden</code> di... | 2 | 1,186 |
MsTest datadriven: ignore specific datarows via testattribute? | <p>my first question on stackoverflow and I'm hoping it's not a stupid one. :)</p>
<p>Basically all my datadriven tests look like this one:</p>
<pre><code>[TestMethod]
[DataSource(TestsDataSource)]
public void Test_With_Some_Fancy_Name()
{
if (myIsThisTestIgnored) return;
...
</code></pre>
<p>DataSource attribute... | 2 | 1,234 |
Hundreds of JSX element type 'xxx' is not a constructor function for JSX elements? | <p>I inherited a project in React (with Redux and Antd), ASP.NET, and C# and I am getting literally hundreds of errors of the following kind:</p>
<blockquote>
<p>TS2605 (TS) JSX element type 'xxx' is not a constructor function for JSX elements.</p>
</blockquote>
<p>The programmers who gave me the code claim that... | 2 | 1,899 |
AngularJS directives, templates and ng-include | <p>So I am trying to create a directive that has an <strong>ng-include</strong> in it.
The directive currently looks like this:</p>
<pre><code>.directive('kdTest', function () {
return {
restrict: 'A',
scope: {
kit: '=kdTest',
garment: '=kdGarment'
},
templat... | 2 | 1,150 |
Json fetching child elements using php | <p>I am from .Net background and I AM NOT ASKING FOR ANY CODE I just need a suggestion so that i can pull my child nodes. This is my JSON</p>
<pre><code>{
"State of Origin 2014":{
"1471137":{
"EventID":1471137,
"ParentEventID":1471074,
"MainEvent":"State Of Origin Series 2014",
... | 2 | 1,788 |
Back arrow is not converting to hamburger icon | <p>I am using Android Studio 3.1.4 with <code>Kotlin</code>. I created a new project choosing <code>NavigationDrawer</code> template. I added two fragments <code>MainFragment</code> and <code>SecondFragment</code> to <code>Mainactivity</code>. When <code>activity</code> is started, <code>MainFragment</code> is shown, t... | 2 | 2,241 |
How to add a hidden field in dhtmlx scheduler lightbox | <p>I am trying to modify dhtmlx scheduler lightbox, i have added some new fields here, but now the problem i need a hidden field to it, and will pass the value through JavaScript. But dhtmlx scheduler do not have any field type hidden and i am unable to push any custom class or id there. I know there is a example which... | 2 | 1,353 |
Reload View and Controller in Ionic Framework | <p>I am building up an mobile application using Ionic Framework and Cordova Sqlite. I am displaying the data from the sqlite database in an ionic list. Each of the ionic list item has a button to delete the corresponding item from the database. On the click of the button, the data gets deleted from the database, but it... | 2 | 2,308 |
VBA run-time error ‘91’: Object variable or With block variable not set | <p>I'm brand new here and although I'm super handy with Excel I have minimal knowledge when it comes to VBA. I've had an Excel program that we use at work dropped in my lap because it's started throwing multiple errors and I'm the "best" person for the job :( </p>
<p>I've searched this most excellent forum and a c... | 2 | 1,504 |
Metronome in Java | <p>I am working on an implementation for a metronome in Java. I have read around that using Thread.sleep isn't the best way to actually sync the times properly which may be the root of my problem. However, the issue I am running across in the beginning stages of my implementation are that when i utilize the +/- buttons... | 2 | 1,191 |
Xamarin Forms Android Custom TabbedPage ActionBar is returning null | <p>I am using <code>custom TabbedPage</code> in my project for showing a <code>badges(count)</code> in <code>Tab bar</code>. I am using the below code for showing a <code>custom tab bar</code> but it is always returning <code>null</code> value in <code>CustomTabbedPageRenderer.cs</code> class <code>OnWindowVisibilityC... | 2 | 3,531 |
Analyzing .dmp files | <p>I am trying to solve a c++ exe run time error issue that happens only in production. I am new to C++ and windbg but I am pasting the enalysis here. I would greatly appreciate if some one can point me to as to how and under what condition this error occurs and more importantly how do I figure out which line of code ... | 2 | 1,419 |
How to set Postgres admin password during a Docker container build | <p>We have a web app using postgresql DB, being deployed to tomcat on CentOS7 env. We are using docker (and docker-compose), and running on an Azure visual machine.</p>
<p>We cannot pre-set the admin user 'postgres' password (e.g. mysecret) during the docker/docker-compoase build process.</p>
<p>We have tried to use ... | 2 | 1,100 |
jqGrid Problem Binding Subgrid | <p>I have a jqGrid that is not correctly displaying the subgrid rows. When I load the page, the regular grid rows display fine as well as the plus sign next to each of them, but when I click the plus button to expand them, the "Loading..." message just remains and nothing happens. I don't know if it makes a difference,... | 2 | 1,625 |
Git/ssh problems on Windows (git bash) | <p>I'm trying to use git bash in windows to clone a repository from. I set up my public/private ssh keys and manage to connect to gitlab through ssh. However, when I want to clone a repository, I'm getting "authentication failed" messages from git. Debug logs follow: </p>
<p>To test my ssh connection:</p>
<pre><code>... | 2 | 7,073 |
How to deal with optimistic locking failure in GORM | <p>I get optimistic locking failure error when our system comes under heavy load, dozens of concurrent transactions. Application is load balanced over multiple servers communicating with a single database instance.</p>
<p>I understand that at the core of this is GORM optimistic locking mechanism. New thread changes do... | 2 | 1,243 |
Unexpected behaviour of System.Windows.Window.ShowDialog() when no other windows are open. Any idea why? | <p>I picked up on this (with some effort) when my WPF MVVM application tried to show two consecutive error dialog windows before the main window was launched: After OKing the first window, the application went into a loop and the second error dialog never showed up.</p>
<p>I fixed the problem, but I was hoping someone... | 2 | 1,088 |
Foreman start not working right on rails app | <p>I'm trying to run foreman start on my app.</p>
<p>but it gives me an error saying</p>
<pre><code>12:53:39 web.1 | started with pid 7647
12:53:39 rails.1 | started with pid 7648
12:53:39 webpack.1 | started with pid 7649
12:53:39 web.1 | [passenger_native_support.bundle] trying to compile for the current... | 2 | 4,531 |
image manipulation width and height setting | <p>in my project i just do image watermarking or image combine it's working fine and code for that.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
<?php
if(isset($_POST['submit']))
{
// Give the Complete Path of the folder where you want to ... | 2 | 1,061 |
Create a timeline in windows forms | <p>I can't put the different scenario throughout the timeline(X-ais). I mean the different scenario(different color in timeline chart) can not be repeated in different period of time for each machine(Y-axis).</p>
<p>I want to make the timeline chart as in a 2nd picture. The information which I want to show in timeline... | 2 | 1,115 |
How to hide content of a tab in a jsp page | <p>I have a jsp page with 4 tabs. Suppose tab1,tab2,tab3,tab4. Each tab has their own buttons,button1 for tab1 and similarly button2 for tab2,button3 for tab3 and button4 for tab4. When I click tab1,it should show me the content of only tab1 and other buttons of remaining tabs should not be displayed.My issue is when I... | 2 | 3,615 |
Cocos2d replaceScene not releasing the old scene | <p>I have a box2d-cocos2d game that has several levels. My levels are layers that use Box2d features inherited from another class. For example the first layer looks like:</p>
<pre><code>Level1Layer : Box2DLevel : Box2DLayer : CCLayer : CCNode : NSObject
</code></pre>
<p>My problem is that the layer is not releasing w... | 2 | 1,192 |
UIViewAnimationOptionAllowUserInteraction not working | <p>the problem is this : i have the class <code>NKIngredient</code> which is a subclass of <code>UIImageView</code>. I've implemented the <code>touchesBegan/Moved/Ended</code> methods in it and set the <code>userInteractionEnabled</code> on <code>YES</code>. But the major problem is that when i animate my <code>NKIngre... | 2 | 1,102 |
std::make_unsigned not giving expected results | <p>I have something like this:</p>
<pre><code>template<class T>
class SomeClass {
public:
typedef std::make_unsigned<T> unsigned_t;
unsigned_t maxBinBitRep_ { - 1 };
};
int main() {
// Okay prints out 255 as expected.
SomeClass<unsigned char> unsignedChar; // unsigned version
... | 2 | 1,423 |
C# 2D array interpolation | <p>I need to interpolate whole 2d array in with c#.</p>
<p>I managed to write an interpolation class. It should work as intpl2 function of matlab.</p>
<p>slice: is the 2d array that going to be interpolated
xaxis: interpolated x axis
yaxis: interpolated y axis</p>
<p>It maps as
v0 v1 | v3 v2</p>
<p><strong>EDIT:</stron... | 2 | 1,675 |
Change workspace causing java.lang.NoClassDefFoundError: org.apache.http.client.methods.HttpUriRequest | <p>I have created a new workspace and loaded projects from repository.</p>
<p>Published project to web Sphere, when I try to test a REST web service, im getting following exception(for all the services in the project).
same code worked fine when I publish it from old workspace.
(same server instance in both the worksp... | 2 | 3,195 |
ASP.net MVC5 - For loop posts single item but not the collection | <p>I am creating a new recipe entry form and I am finding two interesting problems:</p>
<ol>
<li>The Ingredient does not post to the recipe collection, and</li>
<li>The Form will only post a single ingredient and sends null when I have the parameter set to a collection.</li>
</ol>
<p>Ideally, I'd like the ingredient ... | 2 | 2,061 |
tkinter : How to create a custom widget having a listbox that can appear and disappear over another widget without moving the other widget? | <p>I had earlier posted a question on "<a href="https://stackoverflow.com/questions/41811921/tkinter-how-to-create-a-listbox-that-can-appear-and-disappear-over-another-wid">how to create a listbox that can appear and disappear over another widget without moving the other widget?</a>". Bryan Oakley answered my question ... | 2 | 1,434 |
Why does this simple assembly program work in AT&T syntax but not Intel syntax? | <p>What's wrong with this code (Running on x86_64 Linux)?</p>
<pre><code>.intel_syntax
.text
.globl _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, 14
syscall
mov rax, 60
mov rdi, 0
syscall
.data
msg:
.ascii "Hello, world!\n"
</code></pre>
<p>When I run it:</p>
<pre>... | 2 | 1,634 |
Adding a DocumentListener to a JCombobox | <p>I'm trying to add a DocumentListener class to my JComboBox dropdowns but I'm getting an error message right of the box.</p>
<p>It let me create the class but I'm getting an error on the JComboBox where I'm adding/making the class.</p>
<p>Error message:
<em>Exception in thread "main" java.lang.Error: Unresolved co... | 2 | 1,451 |
Apache Spark can not connect to master using spark-submit script on Amazon EC2 | <p>First I used the spark-ec2 script to set up a Spark Cluster on EC2 with one master and one worker node.</p>
<p>After I connect to my EC2 master instance with ssh I want to run the spark-submit script, so that I can run my own Spark Code. I start by uploading my .jar file and then I use the script.</p>
<p>for this ... | 2 | 7,488 |
Disable Primefaces Spinner Clientside | <p>on my Website I have two radio buttons in a Group. One for a time range and one for a number input. For the date range, I use two p:calender widgets and for the number a p:spinner. </p>
<p>Now I want to disable the p:spinner if the radio button for the date range was clicked. I know that this can be done serverside... | 2 | 1,938 |
PHP - multiple forms, get values from both upon submit? | <p>I am a little stuck at the moment and could use some help please.</p>
<p>I have a calendar which is being used by multiple departments to enter their schedule in. Each user is asked to complete 1x select and 2x input fields which are divided into FORM 1 and FORM 2</p>
<p>FORM 1:</p>
<ul>
<li>department code (oncl... | 2 | 2,759 |
Live audio using ffmpeg, javascript and nodejs | <p>I am new to this thing. Please don't hang me for the poor grammar. I am trying to create a proof of concept application which I will later extend. It does the following: We have a html page which asks for permission to use the microphone. We capture the microphone input and send it via websocket to a node js app.</p... | 2 | 1,353 |
NodeMCU ets Jan 8 2013,rst cause:4, boot mode:(3,6) wet reset issue? | <p>this is the code I'm using from the mathworks website; <a href="https://in.mathworks.com/help/thingspeak/MoistureMonitor.html" rel="nofollow noreferrer">https://in.mathworks.com/help/thingspeak/MoistureMonitor.html</a></p>
<p>I'm using it to connect a soil sensor to my NodeMCU board and then log the data via HTTP P... | 2 | 2,256 |
How can I layout two buttons to be the same size? | <p>The layout definition is below. Basically I want the two buttons to be the same width, but right now their width is determined by the string they display, is there a better way to lay this out such that the buttons are the same width and that the Button+EditText combo fills the width of the screen?</p>
<pre><code>&... | 2 | 1,217 |
Laravel duplicate all fields of form using blade and insert multiple rows from a single query using eloquent | <p>I want to have a add another form button that will duplicate all the fields of my form but will still remain one submit button and pass all the data of that into the controller to insert it using one single query.</p>
<p>Here is the <strong>create.blade.php</strong> that opens the form</p>
<pre><code>@extends('enc... | 2 | 2,578 |
Asp.net web form user control with ClientIdMode = "static" cannot be accessed in javascript | <p>I have a user control that is used inside an ASP.Net web form page. In the user control I have set the ClientIdMode = "static" e.g</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true"
CodeBehind="QuestionUserControl.ascx.cs"
Inherits="Kids.Math.Presentation.UserControls.QuestionUserControl" Client... | 2 | 1,454 |
Return full state with placemark.administrativeArea using reverseGeocodeLocation | <p>First time doing geolocation lookup and I'd like to return where the user is currently. Not on a map, but retrieve state information and give them options within the app due to their location. </p>
<p>When I use the reverseGeocodeLocation lookup I see that it's finding tons of data... which is great. Specificall... | 2 | 8,994 |
getting java.lang.RuntimeException: "advancing post rec#0" | <p>I am new to hadoop and I am trying to get max salary of an employee. My data looks like</p>
<pre><code> 1231,"","","",4000<br/>
1232,"","","",5000<br/>
..................<br/>
..................<br/>
</code></pre>
<p>This is my mapper class, here, I am to trying to emit the f... | 2 | 5,112 |
Golang: why using goroutines to parallelize calls ends up being slower? | <p>I have two versions of merge sort implementation. The first is a "normal" version and the second uses <code>goroutines</code> that parallelize the work being done on each subset of the slice in each step of the recursion. </p>
<p>One would assume that being able to parallelize this work would make the concurrent im... | 2 | 1,216 |
Find closest lat and long in an SQLite database | <p>I have an SQLite database made up of four columns - ID, WindSpeed, Longitude and Latitude. </p>
<p>What im doing is, getting the Latitude and longitude of the user using the Android location service using the GPS and then querying the latitude and longitude of that location with the database to find the wind speed ... | 2 | 2,461 |
log4j: Issue with MDC configuration | <p>I am trying to add the username for each log. I found that MDC is the appropriate solution to do that and I followed <a href="http://veerasundar.com/blog/2009/11/log4j-mdc-mapped-diagnostic-context-example-code/" rel="nofollow">that tutorial</a>. </p>
<p>Here is a log snippet, for testing purpose; I print the word ... | 2 | 1,230 |
Spark - Finding overlapping values Or A variation of finding mutual friends | <p>I have a problem which I'm trying to solve using Spark. I'm fairly new to Spark so I am not sure what would be the best way to design it. </p>
<h2>Input:</h2>
<pre><code>group1=user1,user2
group2=user1,user2,user3
group3=user2,user4
group4=user1,user4
group5=user3,user5
group6=user3,user4,user5
group7=user2,user4
... | 2 | 1,921 |
Lambda function to search for all running EC2 instances, add tag 'Name' if not present, and then add tags to it's associated volumes? | <p>I have some code that works to add tags to all pending and running instances, and then searches for their associated volumes, and adds tags to those as well. However, if I spin up a new instance with NO tags at all, I get a KeyError and it does not work. What I'm looking to do is:</p>
<ol>
<li>Search for all running... | 2 | 1,244 |
extract city from reverse geocode | <p>I am struggling with finding the city name from latitude and longitude.</p>
<p>I am parsing latitude and longitude from a json callback from flickr.
Now, I am trying to reverse geocode the latitude and longitude to determine if the pictures are in Los Angeles. I am trying to make a count of the pictures are that ar... | 2 | 1,653 |
after deploying rails app with apache and passenger, showing the page does not exist | <p>i have deployed my rails app with apache2 and passenger. everything was going smoothly but after deploying it says the page you were looking for doesn't exist. my app name is opengrok</p>
<p>my apache cofiguration is in /etc/apache2/sites-avaibleable/opengrok</p>
<pre><code><VirtualHost *:80>
ServerName lo... | 2 | 1,145 |
Angular: custom filter infinite digest | <p>I have a custom filter that takes in an Object, <strong>subjectBin</strong>, and returns a brand new Object, <strong>result</strong>. The filter is invoked from a <strong>ng-repeat</strong>. My custom filter works, but throws <strong>infinite $digest</strong> errors. Here is my filter:</p>
<pre><code> return f... | 2 | 1,190 |
Byte Buddy - HotSwap with ByteBuddyAgent | <p>I'm trying to use the HotSwap feature of byte buddy. Unfortunately I receive some errors. I have read the documentation on the <a href="http://bytebuddy.net/#/tutorial" rel="nofollow noreferrer">official website</a>, and I'm aware that it only works when the program use a Java agent. I have tried to put -javaagent p... | 2 | 2,258 |
Twitter button using iframe URL instead of original_referer | <p>I have a page on mydomain1.com that includes content within an iframe from mydomain2.com. Inside of the iframe I have coded a Twitter button using jQuery:</p>
<pre><code> // Twitter
var twitterButton =
'<div>' +
'<iframe allowtransparency="true" frameborder="0" scrolling="no" style="width:75... | 2 | 1,217 |
Android Application crashing when opening an activity - Stacktrace attached | <p>I am relatively new to Android development; I have an application that obtains rss feeds from websites. When I open the list of articles presented on a listview, and try opening the specific article, the application crashes.</p>
<p>Could someone please tell me how I can fix this?</p>
<p>I have put ACRA in the appl... | 2 | 1,436 |
winsock send/recv txt file wrong data | <p>i'm new to program winsock , i have this code : server run , then we run the client "client localhost" from cmd , the file is sent from client to server sometimes the server receive the txt file wit correct data sometimes not and i found something like garbage or wrong data , so please help me , i will post the code... | 2 | 3,561 |
TypeError: Cannot read property 'findAll' of undefined(sequelize) | <p>I did refer to similar questions like <a href="https://stackoverflow.com/questions/34795953/typeerror-cannot-read-property-findall-of-undefined-expressjs">this</a> but here while debugging I am getting <code>models</code> as empty. I am clueless as to why is this happening. DB table is <code>Users</code>.</p>
<p>co... | 2 | 1,563 |
WPF Deleting item from Combobox when hovering mouse over it (MVVM) | <p>I have a combobox binded to a Observeable Collection. The Collection is a container for a selfdefined class.</p>
<p>I need to delete an arbitary item from the combobox by pressing the right mouse button when hovering my mouse cursor over the item of the dropdown list. I also need to delete it by pressing the delete... | 2 | 2,594 |
CoreData could not fulfill a fault | <p>I have a problem with the CoreData and fulfilling managedObjects.</p>
<p>Stack trace:</p>
<pre><code>Uncaught exception: CoreData could not fulfill a fault for '0x11cec410 <x-coredata://08BF0B39-BA5D-404E-B75E-FD4FA906DE3E/TaskDescription/p1747>'. Stack trace: (
"4 libc++abi.dylib 0x035... | 2 | 2,548 |
Aws::Errors::MissingRegionError in ListingsController#update missing region; use :region option or export region name to ENV['AWS_REGION'] | <p>I am getting error as:</p>
<blockquote>
<p>Aws::Errors::MissingRegionError in ListingsController#update missing
region; use :region option or export region name to ENV['AWS_REGION']</p>
</blockquote>
<p>I've been stuck at trying to get my S3 attached to paperclip for about 3 days now. This is my latest error.T... | 2 | 1,607 |
Append text to existing file | <p>I am getting an exception stating that "It is being used by another process" while appending data to exiiting file</p>
<p>Here is my code:</p>
<pre><code> Dim tdate As String = Me.PresentDate.Value.ToString("MM/dd/yyyy")
Dim Output As String = Directory.GetCurrentDirectory & "\Output\Sample.txt"
If Sys... | 2 | 1,390 |
Two Models Displaying to Same View in Yii2 | <p>I am trying to get information from two models that are related, displayed in one view.</p>
<p>So what I am trying to accomplish is have the index view to show the list of people, if I then go into detail view of that particular person I want a list of attributes relevant to that person to appear. </p>
<p>I have t... | 2 | 1,377 |
Bootstrap - Remove horizontal navbar lines when collpased | <p><strong>Question background:</strong></p>
<p>I have a navbar which features a list of 3 items and finally a search box with an input button. As shown in the image below when the menu is collapsed there are 2 horizontal lines above and below the search box and button that are only partially extended across the menu.... | 2 | 1,029 |
How to create a KinesisSink for Spark Structural Streaming | <p>I am using Spark 2.2 on Databricks and trying to implement a Kinesis sink to write from Spark to a Kinesis stream.</p>
<p>I am using the following provide sample from here <a href="https://docs.databricks.com/_static/notebooks/structured-streaming-kinesis-sink.html" rel="nofollow noreferrer">https://docs.databricks... | 2 | 1,171 |
numpy: efficient, large dot products | <p>I am trying to perform a large linear-algebra computation to transform a generic covariance matrix <code>KK_l_obs</code> (shape <code>(NL, NL)</code>)into a map of covariance matrices in a reduced space <code>Kmap_PC</code> (shape <code>(q, q, X, Y)</code>).</p>
<p>Information about how to construct <code>Kmap_PC</... | 2 | 1,121 |
how to configure kubespray DNS for bare-metal | <p>I am relatively new to kubernetes and have a project for my University class, to build a kubernetes Cluster on bare metal.</p>
<p>For this I have set up a PoC Environment, out of 6 Machines (of which 3 are KVM Machines on one Node) all the administration is done by MAAS, meaning DHCP, and DNS is administered by that... | 2 | 1,705 |
Error:(28) Error parsing XML: no element found | <p>I have this error, and I do not know how to fix it. The error occurred when I tried to add a third party library XML element, but I can not solve it. </p>
<p>Some places tell me that it is an Android Studio problem and that it is fixed by restarting the program and I did that and it did not solve the problem. Here ... | 2 | 1,640 |
rails update 3.2.5 | <p>for our redmine-installation (=>tool for project planing, ticketing etc.)
we installed ruby on our server, which worked fine ...
But now we need a rails update (Rails 3.2.3) for a redmine update and
so the troubles began:</p>
<p>I did the following:</p>
<p>1.) installing ruby 1.9.3</p>
<pre><code>root@informatio... | 2 | 1,437 |
STM32F7 - Execute code from RAM and flash | <p>I believe I have a problem with my linker script but I'm not sure if that's the true culprit here. </p>
<p><strong>Background:</strong></p>
<p>I'm using an STM32F730 on a project. The uC has 64K flash and 256K of ram. Of that, 64K is TCM, 192k is regular RAM. The project will exceed the 64k of internal flash, so I... | 2 | 3,390 |
Functions to convert dates between local time and UTC time by considering US day light savings time | <p>I would like to contribute my codes related to the date conversion between local time and UTC time for both current and historical dates, including day light savings time consideration. I reviewed some recent postings but could not find the solution I am looking for so I summarize the solutions I found to develop my... | 2 | 2,989 |
Retain formatting when exporting datagridview to excel | <p>I have a working code which imports Excel data to a datagridview and applies background color based on different limit values for each column. I want to retain the background color when I export this to Excel, but I cannot find out how to implement this in my code.</p>
<p>First an example of how I apply background ... | 2 | 3,864 |
iOS : kCCDecodeError -4304 | <p>I encrypt a login in php with this script :</p>
<pre><code>//PHP Code
function cypherAES128($plaintext, $key)
{
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
$ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plaintext, MC... | 2 | 1,656 |
How to encapsulate a C API into RAII C++ classes? | <p>Given a C API to a library controlling sessions that owns items, what is the best design to encapsulate the C API into RAII C++ classes?</p>
<p>The C API looks like:</p>
<pre><code>HANDLE OpenSession(STRING sessionID);
void CloseSession(HANDLE hSession);
HANDLE OpenItem(HANDLE hSession, STRING itemID);
void CloseI... | 2 | 1,185 |
Android Telephony.Sms API read/write/delete all SMS records not just Sent and Inbox | <p>Working on an Android app that retreives SMS messages on the device using this code;</p>
<pre><code> public void refreshSmsSent() {
ContentResolver contentResolver = getContentResolver();
arrayAdapter.clear();
Cursor c = contentResolver.query(Telephony.Sms.Sent.CONTENT_URI, // Official CONTENT_URI fr... | 2 | 1,979 |
Master Detail View [Binding not working] SAPUI5 | <p><strong>Expected Output</strong><br>
On clicking a row of the table details page should show the details of that row </p>
<p><strong>Issue</strong> </p>
<ul>
<li>Data binding not working.
<ul>
<li>In details view the controls are not showing the data bind to it. </li>
<li>In details view controller, if I pr... | 2 | 5,203 |
Mac App Store Application Loader Exception | <p>I'm trying to send my pkg file to Apple, but it says :</p>
<blockquote>
<p>"There was a general exception while executing"</p>
<p>"An exception has occured: null"</p>
</blockquote>
<p>So what am I to do now :D? Any clues?
The only thing I did was download the new XCode so I could use iconutil to ... | 2 | 4,528 |
spinner localization inside a fragment | <p>I edited to have the last code I am using with the answer from Krunal. I am still getting crash when I select one of the spinner item that has a listener.</p>
<p>I want the spinner in my fragment to make the user be able to change the language.</p>
<p>However, when the user changes the language the application cra... | 2 | 1,346 |
Android in Eclipse: Programmatically Assigning Nine-Patch to View | <blockquote>
<p><strong>SOLVED and contents edited for clarity.</strong></p>
</blockquote>
<p><strong>Relevant References:</strong></p>
<p><a href="https://stackoverflow.com/questions/16585528/android-adt-version-22-r-java-files-not-generated">Android ADT version 22, R.java files not generated</a></p>
<p><a href="... | 2 | 3,299 |
vim: unable to autocomplete python package path | <p>I am using vim with - neocomplete, jedi-vim, supertab and trying to do autocompletion while typing the following line:</p>
<pre><code>from django.shortcuts import get_object_or_404
</code></pre>
<p>If I press tab after <strong>django.</strong> - I get a drop-down containing</p>
<pre><code> sys ... | 2 | 1,410 |
How to hide this error message after a couple of seconds? | <p>I am developing a simple registration system in which all the events will be listed in a GridView and the user will be able click on register in the event by clicking on the Register button that will be displayed besides the event. The is working fine but I only have one problem with it which is the following:
When ... | 2 | 3,209 |
Rails server fails to start with exit code 1 in rubymine | <p>I was using my server yesterday no problem. Came back today with an error when starting the server</p>
<pre><code>runnerw.exe C:\Ruby187\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) "C:/Users/Stefan/RubymineProjects/gallery/gallery-app/script/rails" server -b 127.0.0.1 -p 3000 -e developm... | 2 | 1,693 |
startActivityForResult can't work well when setResult is placed in onPause(), onStop() or onDestroy() | <p>When I put <em>setResult()</em> in the <em>onClickListener</em> of a button, that works. However, if I put it in <em>onPause()</em>, <em>onStop()</em> or <em>onDestroy()</em>, that never works. </p>
<p>I got really confused about that. </p>
<p>Here is the code of MainActivity. </p>
<pre><code>package com.exam... | 2 | 1,630 |
@SequenceGenerator throws After saving the identifier must not be null! when value of id not passed in h2 | <p>I am using spring boot with h2 database when using a sequence and using @SequenceGenerator doesn't seem to be generating the value for the primary key. I want to generate the value of Id by default and then update the values into the database.
Here are the details of my class.</p>
<p>CardHolder.java</p>
<pre><code>p... | 2 | 6,685 |
QMouseEvent for single movement on QWidget | <p>Why QMouseEvent passing multiple events for single movement on QWidget?</p>
<p>I'm implementing simple dragging effect, but the result is not what I expected.</p>
<p>The following code will move the widget to new location but instantly move it back to the original location.</p>
<p>customwidget.h</p>
<pre><code>#... | 2 | 1,698 |
Creating a Search Function in PHP | <p><strong>TL;DR</strong></p>
<p>How can I filter a mega-array based on exploded <code>$_POST['search']</code> to match search terms in the database?</p>
<p><strong>Full spiel</strong></p>
<p>I'm trying to build a search algorithm but I seem to be getting stuck with terms bigger than one word.</p>
<p>The logic behi... | 2 | 1,517 |
import from excel error in datagridview vb.net 2010 | <p>i am importing excel file in datagridview below is my code</p>
<pre><code>'ofdImport.Filter = "Excel Files (*.xls)|*.xls"
ofdImport.FileName = ""
If ofdImport.ShowDialog(Me) = Windows.Forms.DialogResult.Cancel Then
Exit Sub
End If
txtPath.Text = ofdImport.FileName
If txtPath.Text <> "" Then
chkItemL... | 2 | 1,026 |
How to insert a table after body of e-mail and before signature? | <p>I am using a below code that is pasting a table from excel to the outlook file. However, right now the table is pasted on the very bottom of the email - after the signature.</p>
<p>What I would like to achieve is to have the table inserted after a word "region." and before "Regards" - so before signature.</p>
<pre... | 2 | 1,839 |
I want to show a complete list of time Zones in UTC format on API 23 | <p>I have a requirement to display a custom Activity which contains a listview showing all the timeZones as per below format:</p>
<pre><code>ZoneID (UTC <+/-> hh:mm)
</code></pre>
<p>These timezones should be sorted (similar to TimeZone settings shown in Windows) such that:</p>
<ol>
<li>All UTC negative time... | 2 | 1,456 |
Adding a custom listener inside a broadcast receiver gives NPE in Android | <p>I have been stuck with a problem here.I am trying to listen to connectivity changes by implementing a broadcast receiver.Also I have initialised a custom listener within the broadcast receiver so as to communicate to the activity about the connectivity changes to show a Crouton Toast.The code for the various classes... | 2 | 1,592 |
Bootstrap Datepicker set Minimum Range | <p>We are using Bootstrap Datepicker (<a href="https://github.com/uxsolutions/bootstrap-datepicker" rel="nofollow noreferrer">https://github.com/uxsolutions/bootstrap-datepicker</a>) to set a checkin and checkout date.</p>
<p><strong>We need to be able to set a 'minimum range' on the date picker for properties that ha... | 2 | 1,029 |
How to pass composite types to PL/pgsql function? | <p>I am trying (unsuccessfully) to pass a PostgreSql composite type to a PL/pgsql function. The error message and sample code are listed below. I have also tried several different variations on the code (such as <a href="https://stackoverflow.com/questions/42337076/how-to-return-custom-table-types-from-npgsql-and-sto... | 2 | 1,755 |
ANTLR, Trouble with expression grammar | <p>I've recently started using ANTLR. I'm currently trying to encode an expression grammar with <code>+</code>, <code>-</code>, <code>*</code> and <code>array[index]</code> and a few more constructs.</p>
<p>This is the desired grammar:</p>
<pre><code>Exp -> Exp (+ | - | * | < | &&) Exp
| Exp [ Exp ... | 2 | 1,669 |
Error in iPhone core data | <p>My <code>AppDelegate.h</code>:</p>
<pre><code>#import <UIKit/UIKit.h>
#import "Child.h"
@interface AppDelegate : UIResponder <UIApplicationDelegate> {
NSManagedObjectModel *managedObjectModel;
NSManagedObjectContext *managedObjectContext;
NSPersistentStoreCoordinator *persistentStoreCoordin... | 2 | 1,357 |
Git submodules workflow issues | <p>We are having a lot of problems recently with our Git repositories. We are users of git submodules for a total of 4 shared repositories between our applications.</p>
<p>For example, repository 'website' has a total of 3 submodules.</p>
<pre><code>[submodule "vendor/api"]
path = vendor/api
url = git@your.co... | 2 | 1,234 |
Counting items in steam game inventory | <p>I got this response by calling Steam Inventory API:</p>
<pre><code>{
"result":{
"status":1,
"items":[
{
"id":48331074,
"original_id":48330920,
"defindex":1013,
"level":1,
"quality":4,
... | 2 | 16,042 |
Deserializing an array that contains some non-deserializable objects using Kryo (salvaging the deserializable parts) | <h2>Background</h2>
<p>I am attempting to write a Kryo deserialization in such a way that if an array of objects contains <strong>some</strong> objects that (due to code change) can't be deserialized then those references in the array will become null rather than throwing an exception; allowing the remainder of the ob... | 2 | 4,509 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.