title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Difference between SQL 2005 and SQL 2008 for inserting multiple rows with XML
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/3978807/why-insert-select-to-variable-table-from-xml-variable-so-slow">Why insert-select to variable table from XML variable so slow?</a> </p> </blockquote> <p>I am using the following SQL code for inserting mu...
2
1,177
Loopback 4 authentication error while binding custom service
<p>I have followed this <a href="https://github.com/strongloop/loopback-next/tree/master/extensions/authentication-jwt#customizing-user" rel="nofollow noreferrer">link</a> for creating custom service for authentication in loopback 4. I successfully created the service but while binding this service in application.ts I ...
2
1,841
Django Rest Framework - main url HTTP/1.1" 404 Not Found
<p>I have in my project in the main <code>urls.py</code> file the following:</p> <pre><code># REST Framework packages from rest_framework import routers router = routers.DefaultRouter() # ... My viewsets serialized router.register(r'users', UserViewSet) # ... Another viewsets urlpatterns = [ url(r'^$', HomeVie...
2
1,039
Picking selected mesh from an OBJ file
<p>I'm using the OBJLoader to load a large 3D model (described in a .obj file) but it loads the whole file as a single Object3D object. Using scene.add(object) it adds the whole object to the scene.</p> <p>I need to pick the selected mesh and change some of its properties, but when I add mouse function and use Ray.int...
2
2,497
wix 3.7 set property based on script/logic/code
<p>We have developed a pretty comprehensive wix installer msi package, which includes some 10+ c# custom actions.</p> <p>My problem is that I have yet to figure out how to programmatically "set" a property.</p> <p>Basically what I want to do is to parse an existing property into a new property.</p> <p>This parsing w...
2
1,366
Wechat login - do not receive token
<p>I just followed all the stuff which are mentioned in this <a href="https://github.com/aaronbruckner/wechatAndroidLoginDemo" rel="nofollow noreferrer">example</a> from Aaron Bruckner. Tried out with and without the boolean flag for enabling the <code>checkSignature</code>.</p> <p>init API:</p> <pre><code>api = WXAP...
2
1,179
Sip integration in android application
<p>I am developing an app using native Sip library available in android . Here is my code </p> <pre><code> package com.example.demosip; import java.text.ParseException; import android.net.sip.SipAudioCall; import android.net.sip.SipException; import android.net.sip.SipManager; import android.net.s...
2
2,829
c# html to docx conversion using Microsoft.Office.Interop
<p>I am converting html to docx using Microsoft.Office.Interop.Word. Also html have img tag. Converted docx files shows imges properly in server but in other machines images does't come.</p> <p>After investigating i found that images in docx is not embedded as it shows image path of server.</p> <p>Any help on this wo...
2
1,131
How to get a border on top of another border in css?
<p>I'm trying to create a navigation bar, where by default it has a <code>border-top</code> of a certain color, and when either hovered or active, I wanted another color to go on top of it. </p> <p>Is there any method that I can make this to work? </p> <p>I've tried:</p> <ul> <li><code>absolute</code></li> <li><code...
2
1,090
Python Pandas: Adding methods to class pandas.core.series.Series
<p>I want to work with a time series in Python and, therefore, Pandas' Series class is just perfect and has a lot of useful methods.</p> <p>Now I want to add some methods that I need and are not implemented. For example, let us say I am interested in adding a method which appends two times one value to the time series...
2
1,028
MVC - Creating View that lists products from database using stored procedure that passes search parameter from textbox
<p>I hope the wording on the Title isn't confusing..I tried to be as specific as possible...</p> <p><strong>Goal</strong></p> <p>Create a View that allows a customer to search products using a textbox from the Index View on my SearchController. When the customer clicks the search button, it will redirect to the Searc...
2
1,123
Ansible with Concourse
<p>I am trying to run ansible playbooks within Concourse for remote hosts, however i cannot do that. Below are my steps:-</p> <p>Concourse Yaml File:-</p> <pre><code>--- resource_types: - name: ansible-playbook type: docker-image source: repository: troykinsella/concourse-ansible-playbook-resource tag: la...
2
1,437
Display a custom field in woocommerce_review_order_before_submit
<p>I have a custom checkout field that I created using the following code:</p> <pre><code>add_action( 'woocommerce_before_order_notes', 'add_custom_checkout_field' ); function add_custom_checkout_field( $checkout ){ woocommerce_form_field( 'number_id', array( 'type' =&gt; 'number', 'class' =&...
2
1,313
When backup run on the schedule time 12am every night, It says the backup job completed successfully but I cannot see the backup file on the drive
<p>Anybody have any solution for this. When backup run on the schedule time 12am every night, It says the backup job completed successfully but I cannot see the backup file on the drive.</p> <p><strong>Job Message Details</strong></p> <p>Date 10/6/2013 12:00:02 AM Log Job History (MaintenanceJob_FullBacku...
2
6,598
Mat-Button click inside a *ngFor with let index = index does not react/fire action
<p>I am currently working on a project where I have a <code>reactive form array</code> which will be displayed on the template using an <code>*ngIf</code>. I think that's the normal use case and nothing special. But now I build this like</p> <pre class="lang-js prettyprint-override"><code>&lt;div *ngFor="let control o...
2
1,025
Calling a procedure that has a refcursor as out parameter
<p>I created a package as follows :</p> <pre><code>create or replace package apps.xx_sal as PROCEDURE SAL_HIST_C(p_person_id IN NUMBER ,p_success OUT VARCHAR2 ,p_sql OUT VARCHAR2 ,p_cur OUT SYS_REFCURSOR) IS l_success VAR...
2
1,478
How to solve Error on updating manifest cache: (type, element, folder, client) on upgrade to joomla 3
<p>I currently have a website on joomla 2.5.27 and I'm planning to upgrade it to joomla 3.3.6 ( latest ). <strong>Immediately after the upgrade to 3.3.6</strong>, I get the following errors:</p> <pre><code>Error on updating manifest cache: (type, element, folder, client) = (component, com_mailto, com_mailto, 0) Error ...
2
4,387
Set the first of the month of a NSDate
<p>I'm using a NSDate that is incremented/decremented thanks to NSDateCompoments:</p> <pre><code>dateComponents = [[NSDateComponents alloc] init]; self.date = [gregorian dateByAddingComponents:dateComponents toDate:[NSDate date] options:0]; </code></pre> <p>...</p> <pre><code>[dateComponents setDay:1]; ...
2
1,040
Sharepoint javascript get_id error
<p>Alright, this one's got me seriously stumped, after trying things out for hours with the block of javascript below I'm still getting the same error in IE's javascript debugger.</p> <p>The error I'm getting is SCRIPT5007: Unable to get value of the property 'get_id': object is null or undefined.</p> <p>And below is...
2
1,253
multiple table sort using same function angularjs
<p>I am a mediocre in Angularjs and need help on the same. I have two tables with the same headers and data in the table may or may not be different. I need to sort the data based on the click on header. I am using same sort function for both tables. The problem is when I click on one header the data on both the tabl...
2
1,590
Get image url from xml file
<p>Getting the image url from a xml files seems tricky, in Android Studio. Trying to categorise the image url of 30 RSS Feed xmls, i found that 95% of them are using ".jpg" images and the link alwayas begins with "http", not "www.". So, im tryingto write a piece of code that:</p> <ol> <li>Is getting one node (see xml_...
2
2,241
NHibernate Formula - Mapping list of entities
<p>I want to create a formula in Fluent NHibernate which has a Subquery which fetches a list of results.</p> <p>I have a table called node_cable with following columns: |id|node|cable|</p> <p>The node column describes a <strong>node</strong> while cable describes the connection between these nodes.</p> <p>Example:</p> ...
2
1,812
React RadioGroup into Table Cell
<p>I have a page of component that having many radio button componsed with table. Like this: </p> <p><a href="https://i.stack.imgur.com/T8XKq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T8XKq.png" alt="enter image description here"></a></p> <p>I made this with Material UI's <code>RadioButton</c...
2
1,491
Mysql/PDO Integrity Violation Duplicate Primary - although nothing already in table
<p>I've already looked at <a href="https://stackoverflow.com/questions/16520884/sql-primary-key-constraint-although-record-does-not-exist">SQL primary key constraint although record does not exist</a> which of all the questions on SO seems closest to my problem but isn't the same.</p> <p>I've no doubt I'm probably doi...
2
3,504
Using DLL in Unity, MonoBehaviour
<p>I have a library of some wing geometry and flow solver code written in C. I made a simple test project for debugging some integration problems between the library, my C# wrapper class, and my main project. In this test project I have a test script:</p> <pre><code>using UnityEngine; using System; using System.Collec...
2
1,790
My script can uploads the Avatar/Profile image but can't change the size (height and width)
<p>Thanks for the support really appreciated.</p> <p>I am newbie in PHP, and i heard that i can find my solution from those PHP expert who are here in Stackoverflow.</p> <p>I have bought <a href="http://codecanyon.net/item/php-security-user-management/141801?WT.ac=solid_search_item&amp;WT.seg_1=solid_search_item&amp;...
2
3,965
How do I send data from material ui datagrid Row to form input?
<p>Please help me. I have a table containing some user data, I want when a user clicks on the edit button my dialogue box should open with a form with the initial data of that user. But I'm not able to pass the entire object rather only the id of the user is passed.</p> <p>Here is the <a href="https://codesandbox.io/s/...
2
3,007
Azure template to create public static IP address for each virtual machine
<p>I using the <a href="https://github.com/Azure/azure-quickstart-templates/tree/master/CentOS-2nics-lb-cluster" rel="nofollow">CentOS-2nics-lb-cluster</a> azure template which generates a Load Balance and NAT Rule which enables a specific SSH port for each of the Virtual Machines it creates. </p> <p>My current ssh co...
2
1,415
How to make XTemplate work with TabPanel in Sencha Touch
<p>I've got my TabPanels generating as expected, however, if I try and inject an <code>XTemplate</code> into one of the panels, and then call <code>content.update(myArray);</code>, the result is that the panels don't move, the buttons don't work, and the template doesn't render.</p> <p>Can anyone tell me what I'm doin...
2
1,120
How to do a many to many merge of two CSV files with Powershell?
<p>I've got two different CSVs. One is a report of global groups, local groups and systems. The other is a list of users, logon IDs, and global groups.</p> <p>As you can see, Global AD Groups is the common column and is labeled "Members" in both files. Some of the items in Members are actually either local users or do...
2
2,095
Homework Help Pt2 (Math The Complex Class)
<p>Not sure if I'm doing this right, but this is a continuation of the program I was working on here...<a href="https://stackoverflow.com/questions/34237289/homework-help-the-complex-class">Homework Help PT1</a></p> <p>I'm struggling a lot with this homework assignment...</p> <pre><code>**(Math: The Complex class) A ...
2
2,073
ManyToMany Mapping (Helper Table) + extra Field + Composite Primary Key
<p>I'm trying to realise this table structure:</p> <p><a href="http://www.img-teufel.de/uploads/Unbenannt1d4f8a349jpg.jpg" rel="nofollow">http://www.img-teufel.de/uploads/Unbenannt1d4f8a349jpg.jpg</a></p> <p>(not embedded due to size)</p> <p>It creates my classes how i want, except there's no composite primary key i...
2
1,597
TemplateDoesNotExist at /users/register/ bootstrap5/uni_form.html
<p>I am building a registration form for my django project, and for styling it I am using crispy forms. But, when I run my server and go to my registration page, I see this error:</p> <pre><code> Internal Server Error: /users/register/ Traceback (most recent call last): File &quot;C:\Users\Dell\Desktop\Django\micr...
2
2,468
What is the fancy way to use SnackBar in StreamBuilder?
<p>I'm implementing Bloc pattern for my application and I have to show SnackBar which shows error message when login is unauthenticated.</p> <p>But I cannot show SnackBar during building phase of widget. I looked for lots of solutions, but I couldn't found.</p> <p>What is the most efficient way to use this function?<...
2
2,312
jQuery Slider PHP/HTML Problems
<p>I came across some code provided by a helpful individual online today that is perfect for something I am trying to add to my website. I have all of the relevant code that this individual provided, but I can't quite figure out how to implement it correctly into my Wordpress powered website. </p> <p>Demo page showing...
2
1,466
Unable to pass Model from View to Controller.
<p>I actually get the <code>Model</code> in <code>Http Request</code>. But it is not getting loaded in controller.</p> <p><strong>Model</strong></p> <pre><code>public class ConfigurableItemsModel { public IList&lt;State&gt; State { get; set; } public IList&lt;Country&gt; Country { get; set; } public IList&l...
2
9,954
Javascript vs. Lotusscript
<p>I am hoping someone can put me out of my misery here. I rewrote a LotusScript function in JavaScript and it is not working as it should be. I can't look at this thing anymore. I"m hoping someone can help me figure this out.</p> <p>The function takes a name of a group and an address book db object. It fetches an...
2
2,973
Android NDK links shared libraries libxxx.so.ver instead of libxxx.so
<p>I've compiled my own shared library which depends on external shared libraries (ffmpeg and x264) using <strong>ndk-build</strong>. I've defined external libraries as it is described in <a href="http://developer.android.com/intl/ru/ndk/guides/prebuilts.html" rel="nofollow">documentation</a>:</p> <pre><code>LOCAL_PAT...
2
2,811
Prevent contenteditable (in flexed div) from expanding
<p>I'm starting with css flex and I have a hard time with using a contenteditable that I can't prevent from expanding horizontally when the text is too long. I tried on: - Chrome - Firefox - Opera - Safari</p> <p>They all make the divs expand but Safari, who does what I expect.</p> <p>Here is the HTML:</p> <pre...
2
1,487
Laravel How to attach generated PDF to Email
<p>I'm working on a <code>laravel</code>-application where users can fill out and submit a form with some user-data. When the user has submitted the form I receive an email with a confirmation that a user has send me the form with some data. Now, in addition to that I have added the feature that a <code>pdf</code> is g...
2
1,145
datepicker() function of jQuery not working
<p>I have added <code>datepicker()</code> function to my form element with <code>id=fromDate</code></p> <p><strong>AllocateTask.xhtml</strong></p> <pre><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/js...
2
2,705
Spark Streaming Context Hangs on Start
<p>All,</p> <p>I am trying to use Kinesis with Spark Streaming on Spark 1.6.0 via Databricks and my <code>ssc.start()</code> command is hanging.</p> <p>I am using the following function to make my Spark Streaming Context:</p> <pre><code>def creatingFunc(sc: SparkContext): StreamingContext = { // Create a St...
2
2,740
Uncaught ReferenceError: submitToAPI is not defined at HTMLButtonElement.onclick
<p>I am creating a form filling website it should return alert message if contact,email is not up to our standard. </p> <p>But I am getting this error Uncaught ReferenceError: submitToAPI is not defined at HTMLButtonElement.onclick </p> <p>var URL is I am passing these data to AWS API gateway and trigger a lambda fun...
2
1,765
XML Output In the Wrong Order
<p>I have written a simple WCF web service in C# which returns records from a database.</p> <p>The WCF uses the following method: <code>getQuestionnaireForID?id=(questionnaireID)</code>. The Webservice returns all the correct records from the database, however they appear to be in the wrong order.</p> <p>This is the ...
2
3,299
java.lang.RuntimeException: Failure delivering result ResultInfo requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermissio
<p>I am following one tutorial upload video from android to server on this <a href="https://www.simplifiedcoding.net/android-upload-video-to-server-using-php/" rel="nofollow noreferrer">link</a> . But when i execute this activity it gave me run time exception. According to the exception I have added permissions in the ...
2
2,651
Bootstrap's v4 btn-outline-primary doesn't work
<p>Bootstrap's v4 <code>btn-outline-primary</code> doesn't work on the nav links when viewed on my iPhone, but works fine (albeit solid without outline) when viewed on my laptop and desktop screens. I looked around and didn't find any solutions specific to this. I'm using Bootstrap 4.0.0.</p> <p>HTML is:</p> <p><div ...
2
2,253
Xref error while parsing PDF using PyPDF2 and pdfrw?
<p>I am trying to extract the text from the following <a href="https://github.com/mstamy2/PyPDF2/files/4292903/1.pdf" rel="nofollow noreferrer">PDF</a>. </p> <p>First, I used the <code>PyPDF2</code> library. I used the following code: </p> <pre class="lang-py prettyprint-override"><code>from PyPDF2 import PdfFileRead...
2
1,334
Passing value from backend nodejs to frontend react native
<p>My front end is done in React Native and backend in nodejs. It is an application that asks the user to register (email, password, name, email, ...) and then the data is sent to a database (mongodb) using mongoose.</p> <p>In my front end; when the user presses the button SignUp, it will call a function names &quot;Su...
2
1,226
Build a histogram with a predefined number of bins in C++
<p>I want to build a histogram with a predefined number of bins defined by keys (in this case 12*5=60) in C++ and don't know how to do it. Here is a minimum example: </p> <pre><code>using namespace std; using namespace cv; // Function to calculate the keys defining specific ranges of r1 and theta_1 void getKeys(vecto...
2
2,405
Why doesn't the UpSampling2d Keras layer work?
<p>I tried to build a convolutional autoencoder in keras but it doesn't seem to work properly. First of all, here's the Code:</p> <pre><code>from keras.models import Sequential from keras.layers import Reshape from keras.layers import Flatten from keras.layers import Dense from keras.layers import Conv2D from keras.la...
2
1,432
Custom Engineering VKP80 - print on linux is not printing anything at all
<p>Why Linux cant print to the printer model: <code>Custom Engineering VKP80</code> ?</p> <p><img src="https://i.stack.imgur.com/QE3MK.jpg" alt="enter image description here"></p> <pre><code>$ lpstat -p -d printer CUSTOM_Engineering_VKP80 is idle. enabled since Sat 05 Apr 2014 10:50:52 PM CEST printer LabelWriter-45...
2
1,420
How can i fix AttributeError: '_Screen' object has no attribute 'onkeypress' in python turtle?
<p>I am programming my python game, and i wanted to add a basic menu where you can choose the difficulty of the game. But im getting a new error which i hadn't before. Can someone help me please?</p> <p>Heres the code:</p> <pre class="lang-py prettyprint-override"><code>import turtle, random, math, time, os, sys from...
2
5,556
XML Inventory System
<p>I'm trying to test an inventory system I'm making, but I want to make it with XML. putting in the codes and such like:</p> <pre><code> &lt;Item&gt; &lt;ItemName ItemName = "Apple"&gt; &lt;ItemQuantity&gt;1&lt;/ItemQuantity&gt; &lt;ItemMaxQuantity&gt;64&lt;/ItemMaxQuantity&gt; &lt;ItemState&gt;PERFE...
2
1,080
illegal cyclic reference involving error with Spark+Scala combine
<p>I'm facing <strong><em>illegal cyclic reference involving</em></strong> error with Spark+Scala combine.</p> <pre><code>Error Ocured during job for '1473170880000000' and Error Message is scala.reflect.internal.Symbols$CyclicReference: illegal cyclic reference involving method srcip at scala.reflect.internal.Sym...
2
1,365
Update attribute in XSL for-each
<p>At work I've been given the fun task of generating PDFs with XSL. The XML structure I'm working with is similar to</p> <pre><code>&lt;records&gt; &lt;topLevel&gt; &lt;topLevelID&gt;&lt;/topLevelID&gt; &lt;secondLevel&gt; &lt;secondLevelID&gt;&lt;/secondLevelID&gt; &lt;thi...
2
1,142
Why does ng-src not trigger certain property changes in AngularJS?
<p>I have a sample directive that watches for changes in the element, such as offsetWidth.</p> <p>If I apply the directive to an img element that loads the url via the src attribute, everything works fine.</p> <p>If I apply the directive to an img element that loads the url via the ng-src attribute, offsetWidth does ...
2
1,077
cannot access private member declared in class 'boost::asio::basic_io_object<IoObjectService>
<p><code>boost::asio::basic_io_object&lt;IoObjectService&gt;::basic_io_object' : cannot access private member declared in class 'boost::asio::basic_io_object&lt;IoObjectService&gt;</code></p> <p>it does not tell where is this error is occurring :|, here is my codes</p> <p>AsyncConnection</p> <pre><code>#ifndef _ASYN...
2
1,473
InvalidArgumentException JKS not found sheets API
<p>I am working on an android app that needs to interact with drive/spreadsheets. I was using the google drive for android API, but not only was it way too convoluted to figure out, it never worked right. So I switched to the REST API. I tested the app in plain java before trying to add it to android. Worked exactly as...
2
6,010
Right way to use YouTube.Builder
<p>I need to get user youtube videos. Here is my code which only tries to get user youtube channels. But it does not work - after choosing account, <em>loadYoutubeChannels</em> always thows errors. I read this <a href="https://stackoverflow.com/a/21407747/5468694">answer</a> and this <a href="https://github.com/youtube...
2
1,528
android webview not executing javascripts when loading local file
<p>I want to load a local jqmobile html file into a webview. I am able to open it using ALL browsers (includes Android) but not using webview. It does not generate any error, however, content (google map v3) does not appear and javascripts are not triggered!! Please help :(</p> <p><code>&lt;uses-library android:name="...
2
2,729
How to call jenkins shared library method in jenkinsFile
<h2>Description</h2> <p>I am converting my project jenkinsfiles to shared library, create re-usable methods in groovy. I am using extended_choice_parameter plugin for parameterized build in Jenkins. I use this to pass values like cluster, stage, credentials etc to jenkins job. Now i want to use Jenkins shared library w...
2
1,267
Blazor WebAssembly Client DataAnnotations Localization
<p>Asp.net core server side localization is well documented and working for me. But how do you localize DataAnnotations on DTO models on the client side of Blazor webassembly?</p> <p>On server side I've added the code below and DataAnnotations are localized. Everything is working as expected.</p> <pre><code>... service...
2
1,447
Conversion from Fahrenheit to Celsius Method in Java
<pre><code>package n.pkg09; /** * * @author hachaudh */ public class N09 { public static double CtoF(double Celsius) { System.out.println("Celsius | Fahrenheit"); System.out.println(""); for (int i = 0; i &lt;= 50; i++) { Celsius = (i * (9.0 / 5.0)) + 32; Syst...
2
1,463
Ionic: close the side menu but dont set state to root
<p>I want to use a side menu:</p> <pre><code>&lt;ion-side-menus enable-menu-with-back-views="true"&gt; &lt;ion-side-menu-content&gt; &lt;ion-nav-bar class="bar-positive" align-title="center"&gt; &lt;ion-nav-back-button&gt; &lt;/ion-nav-back-button&gt; &lt;ion-nav-button...
2
1,077
How to transition between updated data of bar chart, in d3?
<p>I'm trying to get an understanding of transitions in bar charts using D3. What I'm doing now is updating the chart between two different data sets. I have a transition included but it's starting from the the bottom of the axis rather than transitioning between the two. My goal is to have it transition between the tw...
2
2,349
Compiler says every constructor and function is being redefined and won't compile. Am I using the #IFNDEF wrong? - C++
<p>I am trying to implement my own OrderedList data structure using class templates. Each constructor and function in my CPP file has an error on the opening '{'. The error reads "redefinition of FUNCTION_NAME FUNTION_NAME previously declared here".</p> <p>I've had a few colleagues look at it, but to no avail. Here ...
2
2,093
Bootstrap Accordion without Panel
<p>Is it possible to get the "<code>accordion</code>" feature from Bootstrap without it being a panel? I have some code based on their <a href="http://v4-alpha.getbootstrap.com/components/collapse/" rel="nofollow noreferrer">Collapse/Expand Documentation.</a> I have the following code which uses <code>data-parent</code...
2
1,329
Entity Framework "The current transaction cannot be committed and cannot support operations that write to the log file."
<p>A piece of software I'm working on is used to upload data from CSV files into a database. Interaction with the database is using EF6. To submit data, there is a Stored Procedure named "InsertRow" which accepts an InterfaceID (string), the row of data(string), the delimiter character(string), and has output paramater...
2
1,036
Vagrant synced folder is missing in the guest machine
<p>I'm trying to provision a vm with a synced folder to the directory where my <code>Vagrantfile</code> resides (should be default behavior, but it's not working). Here is my Vagrantfile in its current state (see <code>bootstrap.sh</code> below):</p> <pre><code># -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configu...
2
1,471
How to delete grey border around canvas
<p>I need to export to pdf file some fragment of html. I use for that html2canvas and pdfjs. But there is added some grey border around this fragment</p> <p>Here is test html fragment:</p> <pre><code>&lt;div class="col-md-12 white-bg box-shadow margb0" id="test"&gt; &lt;div class="col-md-12 paddl0 paddr0 margt0...
2
1,102
Google Checkout Sandbox not working
<p>I have created sanbox merchant account in google checkout but when i have submitted this form i got this error message " Oops! Bilal has sent Google a shopping cart with errors in it. We'll contact them to ask that they fix this problem. As this could be a temporary issue, you can go back in your browser to try...
2
1,369
ParameterMissing param is missing or the value is empty
<p>i have the following situation: I have a controller for admins , that i use to manage the users (model generated by Devise).</p> <p>So, i use the actions of another controller to manage the resources "users".</p> <p>Here my files:</p> <p>admins_controller.rb</p> <pre><code>before_action :set_user, only: [:show, ...
2
1,040
C# MySql error: An established connection was aborted by the software in your host machine
<p>I have a strange problem when working with MySql in C#. When executing the command sometimes(not always) I get "An established connection was aborted by the software in your host machine" error. I cannot solve this problem and can't find any solution in web.</p> <p>As a workaround I developed simple ReConnection cl...
2
1,639
Div overlapping in Firefox
<p>Please see the html below</p> <p>it works fine in IE, but in Firefox it overlaps..please try and give me solution. When the position of the div inside the td was given static, it's working properly.But i need absolute there since i need to use the left and top attributes.Any help is appreciated.Thanks</p> <pre><co...
2
1,238
DES encrypt in C/C++ vs Java
<p>Just wondering why same plain text encrypted in Java and C doesn't generate same cipher text. For DES algo I noticed </p> <p>input <code>text = "text", key = "test"</code></p> <p>C cipher text <code>len = 24</code> Java generates cipher text <code>len = 8</code></p> <p>For 256Bit AES I noticed similar difference...
2
1,106
React Native: Google OAuth Invalid parameter value for redirect_uri: Invalid scheme
<p>I have some problems with authentication with Google OAuth2 in my react-native app. I'm using 'expo-auth-session' library for my authentification. I need get access token and then get Youtube profile. But i'm stuck with error &quot;Invalid parameter value for redirect_uri: Invalid scheme&quot;</p> <p>My scheme in ap...
2
1,802
npm ERR! Please include the following file with any support request:
<p>I was creating a new laravel project and while installing the npm this error occurred <br>Command that I ran was <code>npm install</code> <br>- Laravel Framework 8.6.0 <br>- Node Version:- 8.10.0</p> <p><strong>Error:-</strong></p> <pre><code>npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @p...
2
1,826
Error [RemoteTestNG] detected TestNG version 6.14.2 al maven related solutions doesnt fixing this issue
<p>i'm running a simple code that navigates to given URL and it keeps showing below error i tried many solutions available on stack overflow with no hope</p> <p>Error:</p> <pre><code>&gt; [RemoteTestNG] detected TestNG version 6.14.2 org.testng.TestNGException: Cannot find class in classpath: TestPackage.NewTest ...
2
1,184
Redrawing the stack bar chat on click on the toggle legend using D3.js
<p>I want to implement stack bar with toggle legend using D3.js ,on click on the legend, stack bar should get redrawn.If the legend was active,rectangle slab corresponding to the legend should get disappear and vise versa.</p> <p>On click on the legend, I am not able to update the data binded with the group element an...
2
1,266
@Autowired not working in the RESTFul web service Request
<p>I'm using RESTFul webservice with spring hibernate project.I call a webservice with a method but i can't call the @service layer UserService bean which is null. here my webservice Class.</p> <pre><code>import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; i...
2
6,228
Tensorflow FIFO Queue is closed and has insufficient element
<p>I have problems concerning my input pipeline on Tensorflow> I am not sure I understand correctly the queues. </p> <p>I first create two separates <em>slice_input_producer</em> that generates paths to images and labels</p> <pre><code>paths_queue_mines=tf.train.slice_input_producer([t_pathsMine,t_pathMask,t_labels],...
2
1,487
getting weather results from json (kotlin android)
<p>I'm trying to get some results from json but i have a problem.When i have only this line of code it works and i can get the temperature</p> <pre><code>var main: TemperatureData? = null </code></pre> <p>but i want also to get more values from my json so i insert this line of code </p> <pre><code>var weather: Weath...
2
1,053
Django error on admin search: Cannot resolve keyword 'username' into field
<p>I am having a problem in my admin in Django. I have a list of users, I can add, edit and delete them without any problem. However, when I use the search bar to find specific users, i get the error: </p> <pre><code>Cannot resolve keyword 'username' into field. Choices are: bookreader, date_joined, email, full_name,...
2
1,205
Android Espresso wrong set up, or work not stable?
<p>I have been implementing android espresso test for a week. What is the real thing - is implementing server call and wait for it with espresso. This is called Idle Resource call, and we have to follow rules, which are pretty straight forward. Actually I found solution, but the result is shocking - I am succeed only i...
2
2,786
Unity3d bunny hopping controller. My velocity decreases when I'm strafing fast
<p>I created a FPS Movement script in unity3d for bunny hopping with references from <a href="http://flafla2.github.io/2015/02/14/bunnyhop.html" rel="nofollow noreferrer">there</a>, but I have some issues.When I am strafing fast my speed decreases. I wanted to create something like <a href="https://www.youtube.com/embe...
2
1,692
Removing dynamic dropdown options after JQuery AJAX request
<p>I have a form that includes a dropdown box. This dropdown's options are filled dynamically, using PHP, from my database. When my form is submitted, the row containing the ticketId selected in the dropdown is removed from the database. What I would like is for, after the AJAX call is successful, have this list rep...
2
1,534
Alamofire NSURLRequest Ambiguous use of URLString
<p>So I'm relatively new to swift and recently I started a new project that required several network request to a JSON api on a remote server, so i decided to use Alamofire library (version 1.1 included via cocoapods) following these tutorials:</p> <p><a href="http://www.raywenderlich.com/85080/beginning-alamofire-tut...
2
2,295
Fragment not filling up entire screen/parent layout Android
<p>I have a FrameLayout in my app that is being replaced by a Fragment that contains a RecyclerView, but when it does that, the RecyclerView doesn't fill up the whole FrameLayout, there's a border around it.</p> <p><a href="https://i.stack.imgur.com/4VxUm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur....
2
1,924
How to resample a Pandas multi-index data frame via methods depending on the column name
<p>Here is a Pandas v0.14.0 data frame with multi-index columns.</p> <pre><code>&gt; import pandas as pd &gt; import numpy as np &gt; &gt; rng = pd.date_range('1/1/2001', periods=6, freq='H') &gt; mi = [(dt, i) for dt in rng for i in range(2)] &gt; f = pd.DataFrame(np.random.randn(len(mi), 2), &gt; index = pd.MultiIn...
2
3,491
FreeMarker Editor in eclipse 3.5 giving Illegal Argument Exception
<p>I am trying to use the freemarker editor in eclipse 3.5 Galileo and found the exception :</p> <pre><code>java.lang.IllegalArgumentException: Argument not valid at org.eclipse.swt.SWT.error(SWT.java:3865) at org.eclipse.swt.SWT.error(SWT.java:3799) at org.eclipse.swt.SWT.error(SWT.java:3770) at org.e...
2
2,555
How to sort ListView alphabetically by spinner selection? [Android]
<p>I have a ListView populated by a database. The ListView contains 2 columns, "name" and "venue". In my spinner I have 4 options, "Artist - Ascending", "Artist - Descending", "Venue - Ascending", "Venue - Descending".</p> <p>My question is, is it possible to change the printed order of my list based on what option is...
2
6,729
How do i add a link to this animated button
<p>Essentially i found this button that i wanted to add to my wixsite that links to a store. I have gotten the button animation to work and this button exists as a html element on wix. But all the button does currently is do the animation and dosent link. Could someone edit this code so after the animation plays the us...
2
3,224
PHP Imagick won't add ICC color profile
<p>I'm working on a project where I've had to learn about color profiles a bit, still very much a novice. This code doesn't seem to be adding the icc profile:</p> <pre><code>$im = new Imagick; $im-&gt;readImage('input.tif'); print_r($im-&gt;getImageProfiles('*', false)); $im-&gt;stripImage(); $im-&gt;profileImage('ic...
2
1,710
Getting error: Cannot resolve method 'makeText' in Android
<p>I am a newbie. Getting error:</p> <blockquote> <p>Cannot resolve method 'makeText'</p> </blockquote> <p>I am using navigation drawer and My class name is <code>MainFragment.java</code>. Actually I was to trying to use File and Folder Explorer, only this error.</p> <p>What I have tried: Tried using <code>MainFra...
2
1,718
How to open specific app's specific activity clicking on an external link?
<p>I am developing an android app, in which user must need to login first to use it's features. So as usual user must need to login using provided user credential. </p> <p>But I don't want user always enter username and password again and again, so that I am just sharing a URL with user and if user click on shared lin...
2
1,135
Form submission canceled because the form is not connected in react js. Where am I going wrong?
<p><a href="https://i.stack.imgur.com/mEa9i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mEa9i.png" alt="enter image description here" /></a> **This is a redeem Voucher form which I have created , based on the API response data. I have to make the states either true for success or false on failur...
2
2,630
JPA composite foreign key error
<p>In my code there is a one-to-one relation between an employer and its rate table where the composite primary key of employer is composite foreign (logically)+primary key of rate . I am using JPA+hibernate+DB2. here is my employer.hbm file.</p> <pre><code>&lt;hibernate-mapping&gt; &lt;class name="com.adg.ems.dom...
2
4,067
i18next - " WebpackError: TypeError: namespaces.forEach is not a function" (hooks)
<p>I'm trying to get <code>i18next</code> to work in my Gatsby project but I keep running into the below error whenever i try to build using <code>yarn build</code>.</p> <p>From my <code>package.json</code>:</p> <pre class="lang-json prettyprint-override"><code>&quot;i18next&quot;: &quot;^19.8.2&quot;, &quot;react-i18n...
2
1,678
How to copy to clipboard in safari using jquery/javascript?
<p>I looked into a bunch of answers and articles which show how to copy text on button click via jquery but none of them worked for me. I am appending a value through ajax into the DOM and i would like that to be copied on click of a button.</p> <p>All of these solutions work on chrome and they work in safari (version...
2
1,550
How to retrieve Categories name and children ? Magento
<p>I would like to retrieve the categories of my website in order to build me own Category menu. but I don't understand how to get all the categories from the class/model. So I've created a file called top.phtml that I've put in template/catalog/navigation , </p> <p>First, do I MUST put that name to the file into that...
2
1,206