title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to set image size in carousel slider flutter | <p>I am new in flutter. I am using carousel slider package to show image. I want to set my image size. Now I faced the problem with my vertical image have been crop and show part center only. Here is my code:</p>
<pre><code>final List<String> imgList = [
'https://images.unsplash.com/photo-1520342868574-5fa380... | 1 | 1,257 |
Trying to get jQuery Media Plugin to work | <p>I am trying to get the demo of jquery media plugin to work. Once I can get the demo working, then I will be able to start replacing the parameters with data gathered from url parameters passed.</p>
<p>But right now I am unable to get the demo to work locally on my pc.</p>
<p><a href="http://jquery.malsup.com/media... | 1 | 2,504 |
Report designing issue using iReport | <p>I am designing an invoice using <em>iReport</em> but i am having a problem with formatting.</p>
<p>I have to print invoice on letter head, where there are fixed positions to print the fields for example the total Amount has to get printed inside the box fixed at some location.</p>
<p>This is format of letter head:... | 1 | 8,143 |
How to setup letsencrypt cert issuer for kubernetes on AWS EKS with Terraform | <p>I'm trying to setup letsencrypt cert-issuer on kubernetes cluster. My terraform looks like this: </p>
<pre><code>resource "helm_release" "cert_manager" {
keyring = ""
name = "cert-manager"
chart = "stable/cert-manager"
namespace = "kube-system"
depends_on = ["helm_release.ingress"]
set {
name = "we... | 1 | 4,755 |
Using CAGradientLayer as backround while also drawing in context with drawRect: | <p>I'm writing an app that plots some data into a simple graph and sometimes want to draw out the scale in the background. To do this I have a UIView subclass which acts as the graph background and simply use the drawRect: method to draw the scale (data elements will get added as subviews to this view, since I want the... | 1 | 1,432 |
Modify xml with namespaces | <p>I'm trying to modify predefined xml (xsd to be more specific) in TSQL.
I want to insert enumeration restriction to one of the xsd elements.</p>
<p>The task is to fill xsd restrictions based on a query
example:</p>
<pre><code>create table #list(value nvarchar(100))
insert into #list values('item 1')
insert into #li... | 1 | 1,124 |
How to put numbering or bullets? | <p>I was wondering how can I put bullet number in my table. Down below I echo list of major guidelines with sub guidelines in a loop.</p>
<p>ex:</p>
<pre>
1. major1
a. sub1
b. sub2
c. sub3
2. major2
a. sub1
b. sub2
c. sub3
</pre>
<p>something like that.</p>
<pre><code><table width="594" height... | 1 | 1,859 |
Flutter: ListView.builder displaying List items multiple times | <p>I created 3 list items to display using ListView.builder... but after coding the listView is displaying 1 item 3 times, then i added more items to the list making it a total of 5 items, then i discovered it started displaying each item 5 times before displaying the next item and i also noticed it is not scrollable</... | 1 | 1,292 |
Get value in textbox using ajax response | <p>I want Broker Commsion on Selection of Admin with the help of Ajax Only.</p>
<pre><code> <select id="user_id" onchange="funCom(this);" >
<option value="" >Select Broker </option>
<?php $aData=$oGeneral->get_records('tbl_... | 1 | 1,215 |
Can't swizzle class methods | <p>I'm working on making a plugin for Mail.app. I'd like the plugin to add a button to Mail's toolbar. To do this, I decided the best approach would be to call the function to add this button in the MessageViewer's initialize method (MessageViewer is the class for Mail.app's FirstResponder). The code I'm modifying s... | 1 | 1,283 |
Error in optim/constrOptim "initial value in 'vmmin' is not finite" | <p>My problem (and what I think could help to solve it) is explained until the line "FOR REPRODUCTION". After that I just posted my code, just in case reproducing might help to solve it.</p>
<p>I use optim and constrOptim.nl to solve an optimization problem with constraints within the function g (see below) I wrote. <... | 1 | 2,492 |
How to join two tables on three conditions? | <p>hope someone can figure out what I'm doing wrong here. The task seems quite simple, but is apparently beyond me. </p>
<p>I have two tables and I am trying to append precipitation data. Three conditions need to match in the two tables to get the correct precipitation data for each field site, e.g. year, latitude, an... | 1 | 1,841 |
Get the length of each line in file with C and write in output file | <p>I am a biology student and I am trying to learn perl, python and C and also use the scripts in my work. So, I have a file as follows:</p>
<pre><code>>sequence1
ATCGATCGATCG
>sequence2
AAAATTTT
>sequence3
CCCCGGGG
</code></pre>
<p>The output should look like this, that is the name of each sequence and th... | 1 | 1,072 |
Laravel passport throwing error: 'Call to a member function createToken() on null' | <p>So i'm trying to create an auth repository test using phpunit but i keep getting the error 'Call to a member function createToken() on null'. I think this is due to the RefreshDatabase trait but i'm installing passport on setup so i'm a bit lost. Any help is appreciated!</p>
<p><strong>AuthRepository test</strong>
... | 1 | 1,120 |
jQuery UI droppable Not Working | <p>I am trying to make a form building tool. Everything was working just fine. I was able to drag my first icon and drop it on the main form body, just fine. When I do this, it appends a new div of class panel. I make panel droppable as well, however when I try to drop something on it nothing happens. If I hard code th... | 1 | 1,557 |
Using $_POST data to create a new html form value | <p>I'm using <code>post</code> to send info to my page. I'm using that to create a variable and pass that variable to a new <code><input></code>. However, when I submit the new form, the variable is blank.</p>
<p>The variable is created from post data:</p>
<pre><code>$timenotstarted = $_POST["placeholder"];
<... | 1 | 1,049 |
How to set maximum and minimum date for datepicker in android | <p>I am using a tutorial i found on the net for datepicker.But i want to set the maximum and minimum date for the datepicker.Also i have heard that there is an issue for API level less than 11.</p>
<p>My code:</p>
<pre><code>package com.androidexample.datepicker;
import java.util.Calendar;
import android.app.Activit... | 1 | 1,678 |
Twisted TCP server with a Tkinter GUI | <p>recently I've been experimenting with Twisted (python library) in an attempt to make a TCP chat server/client. I had the server running nicely but when I tried to add a Tkinter-based GUI to the server, things got weird. As soon as a user connects to the server, a message is sent to the GUI. However, somewhere along ... | 1 | 3,320 |
Using one datagridview across multiple tabs in tabcontrol | <p>I have a datagridview (datagridview1) on TabPage1 of TabControl1 which is one my 'Records' form. Currently I populate the datagridview with a loop that executes on the page load event and loads the data in from an excel file that it is an included resource. In the loop I also have tabs created and named for each she... | 1 | 4,728 |
jQuery mobile 1.3 left slide panel - phonegap and fixed header | <p>I am using jQuery mobile 1.3 for my app in phonegap. I would like to implement the left slide menu like facebooks's app. I have fixed header with data-position="fixed". When I open the app in chrome it works. When I open the App in phonegap it doesn't works, because the fixed header is not moving to the right. </p>
... | 1 | 1,112 |
Unhandled Exception: NoSuchMethodError: The method 'findAncestorStateOfType' was called on null | <p>Because of the following error, my app is stuck at HandleMainScreen. It Navigated properly for the first time but gives error in the console but when I hot restart it Navigation doesn't work and app stuck at HandleMainScreen.</p>
<pre><code>E/flutter ( 8785): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled E... | 1 | 1,212 |
Broadcast Using This Tool (BUTT) Install Issues | <p>I've successfully installed Broadcast Using This Tool (BUTT) and Icecast2 on Windows, and I can stream audio. However, I'm unable to install Broadcast Using This Tool (BUTT) on Linux. I've tried to install BUTT on Linux Mint version 17, Linux Fedora version 21, and Linux Ubuntu version 14. I used these commands t... | 1 | 1,882 |
sorting is not working perfectly in primeNG tables. Showing uneven data when in sorting mode? | <p>I have used primeNG tables for pagination but while trying to implement sorting for each field in table row. its showing uneven data for 1,2,3,4,5,6 to 14. when i click on sort(increasing order) its displaying 1,10, 11,12,13,14,2,3,4,5,6,7,8,9. </p>
<pre><code> **.html file**
<p-table [value]="incomingbooking... | 1 | 4,760 |
"AttributeError: sqrt" when calculating a simple standard deviation | <p>I found a very unusual error when trying to calculate the standard deviation of a two dimensional numpy array. Basically, I'm doing this:</p>
<pre><code>np.std(myarray, axis=1)
</code></pre>
<p>which gives the following error:</p>
<pre><code>/home/user/env/local/lib/python2.7/site-packages/numpy/core/fromnumeric.... | 1 | 1,211 |
Redux-Saga & Redux-Toolkit Wiring | <p>I have been trying to introduce redux-sagas and redux-toolkit to my project. It seems that I am having some wiring problems. Not sure how to fix it. Let me know if you have any ideas. Here is the error I am getting. Here is the link to <a href="https://github.com/forza11879/twitter-app/tree/master/twitter-app" rel="... | 1 | 1,659 |
img width relative to containing div | <h2>Original Question</h2>
<p>What is the most efficient way to calculate the width of an image relative to it's containing div in css? </p>
<p>I have the following snippet which sets <code>#image1.width</code> to a percentage that is relative to the width of its parent. I'm using a percentage because I need the <str... | 1 | 1,111 |
LoaderManager not initializing... a issue with getLoaderManager().initLoader | <p>I know there is a lot of common questions like this out there but I just can't seem to find the solution. When I attempt to initialize my loader using <code>getLoaderManager().initLoader(LOADER_ID, null, this);</code> The error The method initLoader(int, Bundle, LoaderManager.LoaderCallbacks) in the type LoaderManag... | 1 | 1,268 |
Why are all my Spring boot actuator endpoints publicly available? | <p>I have Spring Security on my classpath (and verified working for my own REST controllers), yet my Actuator endpoints are all publicly available by default (except for <code>/shutdown</code>).</p>
<p>I can disable endpoints as I please (after reading through <a href="https://stackoverflow.com/questions/34399972/spri... | 1 | 1,376 |
ASP.NET WebForms and Bootstrap 4.1.3 Navbar not working | <p>I'm trying to learn Bootstrap 4 Navbar and getting it to work with a ASP.NET Webform using framework 4.7.2 (Visual Studio 2013). I copied code from Bootstraps own website and place it in the master Page. In the < HEAD > I have:</p>
<pre><code> <meta charset="utf-8" />
<meta name="viewport" co... | 1 | 1,640 |
Cannot resolve symbol 'CalligraphyContextWrapper' | <p>Till yesterday everything was working fine but today i have updated my <code>Android studio</code> from <strong>2.3 to 3.1</strong> and i am getting this error now. But even i am getting <code>Cannot resolve symbol CalligraphyContextWrapper</code>, still project is successfully <code>clean</code> and <code>build</co... | 1 | 1,293 |
c++11: How to write a wrapper function to make `std::function` objects | <p>I am trying to write a wrapper <code>make_function</code>, which like <code>std::make_pair</code> can create a <code>std::function</code> object out of suitable callable objects. </p>
<p>Just like <code>make_pair</code>, for a function pointer <code>foo</code>, <code>auto f0 = make_function(foo);</code> creates a <... | 1 | 1,960 |
Move ImageView To Center Of Screen in android | <p>i m working in an application which have 2 imageview 1st one is left and onother is in right ...when page will loaded imageview move nd it goes to center of screen..
i.e</p>
<p><strong>imageview-------->center<----------imageview</strong></p>
<p>i m using translate animation to move the images which take 4 par... | 1 | 1,278 |
Is there a way to get the "significant figures" of a decimal? | <h1>Update</h1>
<p>OK, after some investigation, and thanks in big part to the helpful answers provided by Jon and Hans, this is what I was able to put together. So far I think it seems to work well. I wouldn't bet my life on its total correctness, of course.</p>
<pre><code>public static int GetSignificantDigitCount(... | 1 | 1,820 |
android how to align radio-buttons inside radio group? | <p>I have something like a table in my activity( I used vertical + horizontal linear layouts to make this table), in this table I have buttons, edit texts, and radio buttons. I need to align radio-buttons inside radiogroup correspondingly to all table. But currently radio-buttons looks like shifted to left.</p>
<p>I p... | 1 | 2,965 |
How to assign custom colors to bars in a D3.js bar chart? | <p>I am using LeafletJs and D3js to put a bar chart in a Leaflet popup window.</p>
<p>How can I assign a custom color for each ethnic group bar? I want to assign the custom colors within the D3 code because I can't modify the original dataset. <a href="http://arsh23.github.io/ogmda/map.html" rel="nofollow">Link</a></p... | 1 | 4,427 |
PropertyGrid expandable collection | <p>I want to automatically show every <code>IList</code> as expandable in my <code>PropertyGrid</code> (By "expandable", I obviously mean that the items will be shown).
I don't want to use attributes on each list (Once again, I want it to work for EVERY <code>IList</code>)</p>
<p>I tried to achive it by using a custom... | 1 | 2,334 |
Spring data repository @Autowiring is null when using @Transactional annotation on service bean | <p>I am studying spring framework and trying to use it in my project. But I have came across the following problem with spring data repository and @Transactional annotation used in my service. The problem is that there are no exceptions on the spring start up. Later on when I try to access spring data repository I get... | 1 | 1,404 |
Display a 3D bar graph using transparency and multiple colors in matplotlib | <p>I have a dataframe where rows represent hours of the day and the columns represent time frequencies. The aim is to create a 3D bar chart and each column represented a different color. My dataframe is as follows </p>
<pre><code>frec=pd.read_csv('tiempo.csv', parse_dates='Horas',index_col='Horas')
frec.index=[date.st... | 1 | 1,287 |
Why doesn't the matplotlib label 'fontsize' work? | <p>I have used the following function, but the label size isn't changing. </p>
<pre><code>axe.set_xlabel('$R^{-1}_m$ (nm$^{-1}$)')
axe.xaxis.label.set_size(18)
axe.set_ylabel('$E_{f}/l_{z}$ (eV/nm)',fontsize=40)
axd.set_xlabel(r"$D$ (nm)",color='blue',fontsize=28)
</code></pre>
<p>I do not have enough reputation to p... | 1 | 1,285 |
In 2D binary matrix find the number of islands | <p>I am trying to count the number of islands (a group of connected 1s forms an island) in a 2D binary matrix.</p>
<p>Example:</p>
<pre><code>[
[1, 1, 0, 0, 0],
[0, 1, 0, 0, 1],
[1, 0, 0, 1, 1],
[0, 0, 0, 0, 0],
[1, 0, 1, 0, 1]
]
</code></pre>
<p>In the above matrix there are 5 islands, which are:</p>
<pre><code>Fi... | 1 | 1,216 |
Spring Data Rest Field converter | <p>I am having a hard time using my custom converters on <strong>spring data REST project (controller free application and strictly java configuration).</strong></p>
<p>I have two Entities, an Employee and a State. The relationship is @ManyToOne, I am sure we all know that. Anyway, the problem is converting the <code>... | 1 | 2,049 |
How to offload blocking operation to a worker Verticle using websockets and async request | <p>I implementing websockets using Vert.x 3.</p>
<p>The scenario is simple: opening socket from client doing some 'blocking' work at the vertex verticle worker and when finish response with the answer to the client(via the open socket)</p>
<p>Please tell me if I am doing it right:</p>
<p>Created VertxWebsocketServer... | 1 | 1,447 |
how to use box2d for collision detection in cocos2d-x | <p>my two sprites are roll and hero. i want to detect their collision using box2d in cocos2d-x
i have got both the sprites moving on the screen (roll automatically, hero manually).</p>
<p>all i want to do is call the function intersection();</p>
<p>when the two sprites collide. (sprites are declared globally in the *... | 1 | 3,387 |
ajax add to cart using php and sessions | <p>Similarly as in <a href="https://stackoverflow.com/questions/47482086/php-ajax-add-to-cart-not-working">PHP Ajax add to cart not working</a> my add to cart is also not working. I am trying to show the added product name, price, quantity and total price in <code><div id="myca... | 1 | 1,247 |
TypeError: undefined is not a function when importing two modules in Angular | <p>I'm using <code>Angular 6</code>.</p>
<p>I have two layout modules (AdminLayout and AuthLayout) under LayoutModule</p>
<p>Contents of <strong>AdminLayoutModule</strong> is</p>
<pre><code>@NgModule({
imports: [
CommonModule,
RouterModule.forChild(AdminLayoutRoutes),
FormsModule,
DashboardModule
... | 1 | 2,179 |
ES6 modules, babel/webpack. Import/Export statements not working | <p>Ok so am learning react, es6 and webpack/babel. I got my webpack.config set up below:</p>
<pre><code>const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const merge = require('webpack-merge');
const validate = require('webpack-validator');
const parts = require('./config/webpack-... | 1 | 2,387 |
java.lang.IllegalStateException: Could not find a valid Docker environment. Please see logs and check configuration | <p>I have a docker image called myImageName:latest, which I use in my application.
I want to write an integration test for my application, therefore I want to use the TestContainer package. When I run the following simple test:</p>
<pre><code>@Testcontainers
public class myIntegrationTest{
@Container
private G... | 1 | 2,927 |
Array search in mysql database with PHP | <p>There's a DB where I stored the products details. (id, name, price, category, unit)</p>
<p>Firstly i'm listed the products for select in a php file named 'input.php'. It works like a charm.</p>
<pre><code>// SQL query
$query = "SELECT *
FROM products
ORDER BY p_name
... | 1 | 2,026 |
Node.js fs.writeFileSync with options and callback and error hundler? | <p>I looked at <a href="https://nodejs.org/api/fs.html#fs_fs_writefilesync_file_data_options" rel="nofollow noreferrer">Node.js Documentation</a> and I didn't find how to apply options (settings) and a callback function with error handling. And I have to use .writeFileSync (not asynchronous .writeFile):</p>
<pre><code... | 1 | 1,174 |
Selenium Grid hits command timeout Before newSessionWaitTimeout | <h2>Problem</h2>
<p>In my selenium grid setup, my session requests (that are waiting for empty slots to become available) timeout before hitting the <code>newSessionWaitTimeout</code> because they are hitting the RemoteWebDriver command timeout.</p>
<hr>
<h2>Details</h2>
<p>I sometimes have more tests trying to run... | 1 | 1,292 |
Compression in IIS 8.5 not successful, stating ALREADY_CONTENT_ENCODING | <p>I am trying to debug the issue of why my pages are not being GZIP'ed or deflated according to YSLOW. I ended up enabling Failed Request Logs on the server and was able to see the failed reason of why it is not compressing, it thinks it is already compressed.</p>
<pre><code>DYNAMIC_COMPRESSION_NOT_SUCCESS Reason="AL... | 1 | 1,840 |
System.IO.IOException: The process cannot access the file being used by System.IO.__Error.WinIOError | <p>Problem: First, My "Create" controller action method creates two files two different ways. However, my program is then unable to delete the file which was created using file.SaveAs(path);
I can however successfully delete the other file which was created using
imgPhoto.Save(smallImageFilePath, System.Drawing.Imag... | 1 | 2,696 |
Debug Assertion Failed Buffer != NULL | <p>Hello I got a college project to read Wav file with any Language possible so i chose C/C++ i think i got everything right but 1 thing i have been working on
the c project i always get this msg "Buffer != NULL" </p>
<p>the full code : </p>
<pre><code>int main (){
//char id[10];
FILE *wav;
wav=fope... | 1 | 1,065 |
How to change a div class title with jQuery | <p>I have some collapsible panel divs that have a title attribute. When my jQuery opens the panel, I want the title attribute to change and I want to specify the div to change via the class of the panel currently being opened. i.e. this.div.class change title to "whatever".</p>
<p>To make the code stupid simple for ... | 1 | 1,273 |
Container runtime is not running: output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? | <p>Basically I'm trying to create a cluster with my Ubuntu machine as a master and two Raspberry PI 3 as worker nodes and deploy a trained ML algorithm on my cluster, but all I get are errors when trying to initialize the master. I've already tried to uninstall and reinstall docker and kubernetes, I've tried the kubea... | 1 | 4,560 |
Data type mismatch using Decimal parameter- OleDb, C#, Access | <p>Okay, so I'm trying to send private members that have been updated in my program to an access database. However whenever I run the program and press the save button, I get a "Data type mismatch in criteria expression" exception thrown at me.</p>
<p>Here is the code snippet that I am using. It is throwing the except... | 1 | 2,733 |
Invalid column index exception while inserting into the DB | <p>I am getting this exception while inserting into the DB.
Have attached the trace.</p>
<p>Caused by: java.sql.SQLException: Invalid column index<br>
at oracle.jdbc.driver.OraclePreparedStatement.setTimestampInternal(OraclePreparedStatement.java:7256)<br>
at oracle.jdbc.driver.OraclePreparedStatement.setTimes... | 1 | 1,181 |
Custom MessageConverter with Spring JmsMessagingTemplate is not working as I expected | <p>I'm trying to attach a custom message converter that implements <code>org.springframework.jms.support.converter.MessageConverter</code>, to a <code>JmsMessagingTemplate</code>. </p>
<p>I've read somewhere that we can attach the message converter to a <code>MessagingMessageConverter</code> by calling <code>setPayloa... | 1 | 1,952 |
Reading cells from an Existing Excel File and Writing them into a new Excel File using Java | <p>So I'm currently creating a program to read, edit and place data from an existing Excel file into a new Excel File using the JXL Java library. At this stage I will just like to read data from the existing Excel file and place it into the new one. Can't seem to find a good way of doing it and for future work what is ... | 1 | 1,371 |
CORS Prelight Issue | <p>I am getting following error for a jQuery call to my azure app proxy </p>
<p>XMLHttpRequest cannot load <a href="https://azentsearchdev01-mytenant.msappproxy.net/search?text=mytext&type=json&callback=json_callback" rel="nofollow noreferrer">https://azentsearchdev01-mytenant.msappproxy.net/search?text=mytext... | 1 | 1,150 |
Integrating AdMob through Google Play Services with Unity 3D | <p>Following <a href="http://fastegggames.com/blog/2013/3/30/tutorial-admob" rel="nofollow">this tutorial</a> I started working on integrating AdMob into Unity, but as this uses an older version I had to make some changes to update it to the Google Play Services version, but I think I may have messed up.</p>
<p>I impo... | 1 | 3,432 |
Spring Boot MVC not using model values in JSP | <p>I am working on an Spring Boot MVC application. My issue is that when the view appears, it does not parse the values from the Model.</p>
<p><strong>application.properties</strong></p>
<pre><code>spring.application.name=test-mvc
server.context-path=/test-mvc
</code></pre>
<p><strong>Config</strong></p>
<pre><code... | 1 | 1,964 |
How to display json data in listview with retrofit 2 | <p>What I want to do: Populate the List view with names of the Station which i will retrieve in json form from api.</p>
<p>Problem: I'm having problems populating the list view with the Station Names, Not sure what steps to take. When i hit the button nothing happens. Any push to the right direction would be greatly a... | 1 | 1,106 |
JavaFX rendering / image manipulation | <p>I made a little JavaFX app generating longshadows. At this point I struggle with the rendering (see picture). </p>
<ol>
<li>The missing line on the rectangle's corner seems hard to fix. Changing the loop, which applies the manipulation, will mess up other shapes' shadow (e.g. circle). </li>
<li>The glitch at 'a' is... | 1 | 2,630 |
How to test angular 5 component with rxjs 5 forkJoin | <p>I have a ResultsComponent in my application, where I am making two service calls at the same time joining both observable by using a rxjs forkJoin operator. I want to mock the data for the rxjs operator. I have google lot time and tried different ways, but didn't find a way to do it. can anyone please help me.</p>
... | 1 | 1,785 |
ngTable not loading data | <p>I have two tables in my screen:</p>
<p>(1)</p>
<pre><code><table id="users" class="widget" ng-table="usersTableParams">
<tr ng-repeat = "user in $data" ng-click="usersClicked($event, user.userId);">
<td >{{user.userId}}</td>
... | 1 | 3,371 |
How to add a column SUM feature to my datatable? | <p>I have created a datatable which has a multi search feature in the footer and I would like to have a feature which adds up all the salaries of what is currently displayed or searched. I am not sure how to do that.</p>
<hr>
<p><strong>Here is my HTML code for the table</strong></p>
<pre><code> <script src="h... | 1 | 3,744 |
How to fix: Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return any key column information | <p>My code works. After I copy about 10 tables I get an error. <code>Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return any key column information.</code> Okay, I know I need to generate a primary key. But why can I copy 10 or so tables over, and THEN I get the er... | 1 | 4,473 |
Python Pandas Kaufman Adaptive Moving Average (KAMA) --- Recursive Calculation in Pandas or Cython | <p>I am trying to create a function for the Kaufman Adaptive Moving Average (KAMA), in Python Pandas or using Cython (I have already done this in R & Rcpp). Am having problems with the recursive calculation, filt1</p>
<pre><code>filt1[i] = ( filt1[i-1] + SC[i]*(price[i]-filt1[i-1]) )
</code></pre>
<p>I am expec... | 1 | 1,477 |
Android IAB 3 purchase signature verification failed | <p>I am getting this error: Failed to query inventory: IabResult: Error refreshing inventory (querying owned items). (Response: -1003:Purchase signature verification failed). Which is caused from result.isFailure() returning false:</p>
<pre><code>// Listener that's called when we finish querying the items we own
I... | 1 | 2,632 |
Read file from App folder in android from google drive | <p>I have created a file in App folder in Google drive.and i want to read the file which i have created.i have write some string to file which is created in App folder.Now i want to know that how i can read that data which is written to that file in app folder.Bellow i am mentioning the code through which i have create... | 1 | 2,481 |
404 Not Found @angular/platform-browser.js | <p>I try setup <code>ASP.NET MVC 5</code> (not Core) + Angular 2.0.0 + JSPM + SystemJS + <a href="https://github.com/frankwallis/plugin-typescript" rel="nofollow noreferrer">TS Loader</a>. </p>
<p>When I run app I get error:</p>
<pre><code>Failed to load resource: the server responded with a status of 404 (Not Found... | 1 | 1,469 |
Calling stored procedure sequentially from .sql file | <p>I'm stuck here.</p>
<p>I've got a Procedure that I want to run X* times in a row. (*X is couple of thousands times)<br>
The procedure based on input data does this:<br>
1. Looks for an actions.id, if not found <code>LEAVE</code>s.<br>
2. Looks for users.id, if not found, creates one and uses <code>LAST_INSERT_ID()<... | 1 | 2,357 |
IIS understand static files in MVC as dynamic content | <p>Playing with the httpCompression I relalized that IIS understand static files in MVC as dynamic content, so even if you tick the "<strong>Enable static content compression</strong>", but don't tick "<strong>Enable dynamic content compression</strong>", IIS will return the <code>.css</code> and <code>.js</code> files... | 1 | 1,154 |
cannot run npm grunt bower using maven | <p>I have a simple web application that uses npm bower and grunt. I am using this project as a module in a maven project. I searched the internet and found how to define the pom.xml for the project but I am not able to run it. Can anyone tell me the steps on how to build and run the webapp using maven.</p>
<p>the pom.... | 1 | 1,820 |
JAIN SIP 481 response on BYE message | <p>So I'm using JAIN-SIP API for call setup in some custom VOIP application of mine and I ran into an issue which is troubling me for days: I can't hang up a call with a BYE message. More precisely I keep getting 481 Call/Transaction Does Not Exist response code from callee. And I don't understand why.</p>
<p>Below is... | 1 | 5,729 |
Numeric Input in Kivy with Python | <p>I am very new to Kivy, and have found an online example for a simple calculator <a href="https://stackoverflow.com/questions/17428320/kivy-input-values-for-simple-calculations/17438904#17438904">here</a> that I would like to try to modify using the Kivy examples ~/examples/keyboard/main.py. In that example is a nume... | 1 | 2,746 |
php recursion global variable? | <p>I have a recursion function that parses an object/array with a global variable. If I comment out the global variable I get nothing but if I leave it in it keeps adding to the array other values that should be in it own result set. Do I need to change something here?</p>
<p>UPDATE #2:
How can I get the return I want... | 1 | 1,285 |
Sql server 2017 install error 16389 | <p>I keep getting the error for sql server 2017 install. Don't know how to solve</p>
<pre><code>(01) 2018-02-15 19:46:58 Slp: Error result: -2147467259
(01) 2018-02-15 19:46:58 Slp: Result facility code: 0
(01) 2018-02-15 19:46:58 Slp: Result error code: 16389
(01) 2018-02-15 19:46:58 Slp: WER: Application level conse... | 1 | 1,105 |
How do I convert this to c# (Marshalling) | <p>I have these declarations (DLL) and tried to convert it in C# so i can call the functions from the DLL.</p>
<p>Same for struct1 to struct3 </p>
<pre><code>typedef struct1
{
int num;
char chars[25];
short shrt;
union
{
struct4 objstruct4;
}
}
typedef struct
{ ... | 1 | 1,491 |
how to do partial page rendering (center content) with jsf2 templating via ajax (from menu) | <p>i have been struggling getting this to work for 2 weeks, I am trying to merge info from BalusC from these 2 posts to (<a href="https://stackoverflow.com/questions/7108668/how-to-ajax-refresh-the-main-content-part-by-navigation-menu">link1</a> <a href="https://stackoverflow.com/questions/4792862/how-to-include-anoth... | 1 | 2,334 |
Why does tf.cond() recognize tf.bool as python bool not as tf.bool? | <h1>Training NN to learn 'Xor'</h1>
<p>I'm trying to use 'batch normalization' and I made a batch normalization layer function 'batch_norm1'.</p>
<pre><code> import tensorflow as tf
import numpy as np
def batch_norm1(x, dim_of_x , is_training, scope_name='bn1',decay=0.7):
"""
... | 1 | 2,998 |
Error: attempted to import the Node standard library module "crypto". It failed | <p>I was going to use <code>ethereumjs-wallet</code>. But I decided to use <code>ethereumjs-wallet-react-native</code> because it's for the web. If you look at <a href="https://github.com/WoeOm/ethereumjs-wallet-react-native" rel="nofollow noreferrer">the link</a>, it says <code>import</code> the two modules. So I took... | 1 | 1,136 |
How can I configure an Excel spreadsheet as a javax.sql.DataSource? | <p>I have a Spring Boot 1.3.0 (Java 8) application that needs to use Excel as a data source. (POI and JXL do not work due to type of Excel file.) The application needs to run in an unix environment. I have the application configured to set the datasource url and driver-class-name via a yml file. </p>
<p>Is there a dri... | 1 | 5,970 |
jquery to loop through each table row and perform math with each row input field | <p>I have the below table</p>
<pre><code><table class="authors-list" border=0 id="ordertable">
<tr>
<td>Cubic Meters</td><td>Cubes per Bundle</td><td>Total Bundles</td>
<tr>
<td><input type="text" name="cubicmeters1" id="cubicmeters1... | 1 | 1,086 |
OpenCV VideoWriter will not open | <p>I'm having trouble instantiating and opening an OpenCV <code>VideoWriter</code> for recording video on a Raspberry Pi (Raspbian Weezy).</p>
<p>My project is written in C++, but I've written a minimal Python program that demonstrates the problem.</p>
<p><a href="https://gist.github.com/chriscollins/11ff2f43852e1c93... | 1 | 1,198 |
Reading in pydub AudioSegment from url. BytesIO returning "OSError [Errno 2] No such file or directory" on heroku only; fine on localhost | <p>EDIT 1 for anyone with the same error: installing ffmpeg did indeed solve that BytesIO error</p>
<p>EDIT 1 for anyone still willing to help: my problem is now that when I AudioSegment.export("filename.mp3", format="mp3"), the file is made, but has size 0 bytes -- details below (as "EDIT 1")</p>
<hr>
<p>EDIT 2: Al... | 1 | 7,234 |
Run .bat file - Maven/Eclipse | <p>I want to run a batch file using maven.</p>
<p>My pom.xml looks like this:</p>
<pre><code> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
&l... | 1 | 8,228 |
CK finder not able to load XML response from web server | <p>I have an issue with CKFinder 2.1.1. When I click the button that's supposed to load it, it loads the window but it comes up with a response that says "It was not possible to load the XML response from the web server. The server returned an empty response." The javascript function that loads CKFinder is posted below... | 1 | 1,104 |
Kafka broker may not be available exception | <p>I faced a strange issue with my Kafka producer. I use kafka-0.11 server/client version.
I have one zookeper and one kafka broker node. Also, I created 'events' topic with 3 partitions:</p>
<pre><code>Topic:events PartitionCount:3 ReplicationFactor:1 Configs:
Topic: events Partition: 0 Lea... | 1 | 2,807 |
Front Camera in Camera2 not capturing image | <p>I have the code for the Camera2 from <a href="https://github.com/googlesamples/android-Camera2Basic" rel="noreferrer">https://github.com/googlesamples/android-Camera2Basic</a>.</p>
<p>The problem i'm facing is that when i turn to my Front Camera, i cannot capture pictures but works fine with Back Camera.</p>
<p>Ha... | 1 | 1,448 |
Recording audio inside ionic 4 app using media-capture cordova plugin | <p>I'm trying to record audio inside ionic 4 app using media-capture cordova plugin, But the problem is when I hit the record button it opens an external recorder app and records the audio, then I can play it inside my app. I would like to record the audio inside my app itself without opening an external recorder. Plea... | 1 | 2,029 |
Xamarin: how to backup/sync a sqlite database with DropBox or Google Drive | <p>I have an app written using Xamarin for Android that allows me to store my customers info. I store all the data locally using sqlite and it all works fine. But I need to share this info with my colleague who is using the same app on his phone. So for example, if I add a new customer order from my phone this will be ... | 1 | 1,115 |
App crashes when I entered nothing on edittext | <p>What's missing in code?</p>
<p>I have a problem here. I have here 2 edittext. One for amount and one for password. My app works like a charm except when I entered NONE on the edittexts, IT CRASHES (Unfortunately stop). Am I missing any code on my activity? Please help. Here's my code.</p>
<pre><code>public class M... | 1 | 1,395 |
How to execute stored procedure with input and output parameters using EF? | <p>I am using EF code first approach and I have created stored procedure using migration as following:</p>
<pre><code>public override void Up()
{
Sql(@"CREATE TYPE IdsList AS TABLE
(
Id Int
)
GO
Create ... | 1 | 1,068 |
Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection | <p>I am trying to run a simple java project to see the working of hibernate but when i am executing my code (StoreData.java) it gives a hibernate exception, i am using oracle 11g R2 and eclipse galileo , my oracle SID is "orcl" connection name is "mysql" username is "sys" password is "oracle". Here is the code: </p>
<... | 1 | 2,288 |
com.google.gson.JsonParseException: Failed parsing JSON source: java.io.BufferedReader to Json - perplexed with this problem | <p>I am trying to parse a json object using gson in Android application ,the test passed quite gracefully in emulator ,while i used the actual device ,the problems started
I am getting the exception as follows<br/></p>
<pre><code>.....: com.google.gson.JsonParseException: Failed parsing JSON source: java.io.BufferedR... | 1 | 1,507 |
Making swap faster, easier to use and exception-safe | <p>I could not sleep last night and started thinking about <code>std::swap</code>. Here is the familiar C++98 version:</p>
<pre><code>template <typename T>
void swap(T& a, T& b)
{
T c(a);
a = b;
b = c;
}
</code></pre>
<p>If a user-defined class <code>Foo</code> uses external ressources, this... | 1 | 1,385 |
Angular 4 - rxjs BehaviorSubject usage in Service | <p>My Service code looks like below - </p>
<p><strong>DataService</strong></p>
<pre><code>@Injectable()
export class DataService {
...
private serviceRequestDtoSource = new BehaviorSubject<ServiceRequestDto>(null);
serviceRequestDto$ = this.serviceRequestDtoSource.asObservable();
...
getAccountInfo(serviceReque... | 1 | 1,724 |
Wrapping a python class around JSON data, which is better? | <p>
<strong>Preamble</strong>: I'm writing a python API against a service that delivers JSON.
The files are stored in JSON format on disk to cache the values.
The API should sport classful access to the JSON data, so IDEs and users can have a clue what (read-only) attributes there are in the object before runtime while... | 1 | 1,422 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.