title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
MuleStudio set Request HTTP POST Body | <p>I am trying to test MuleStudio as a proxy service, I would like to do a very simple SOAP request using a static XML request string - I am currently having problems doing a simple POST in Mule, the GET method works and appending the SOAPAction header also works, my problem is setting a xml string/payload as the POST ... | 1 | 1,398 |
codeigniter insert oracle error Filename: C:\xampp\htdocs\system\database\DB_driver.php Line Number: 330 | <p>So i get this error when i try to insert in an oracle database. I think i have everything configured correctly, and im doing things right, but dont know where the problem is, cause i get no number error.</p>
<p>ERROR: </p>
<pre><code>Error Number:
INSERT INTO "articulo" ("id", "titulo", "descripcion", "cuerpo")... | 1 | 1,374 |
I can't install PIP on MacOS Sierra | <p>I've been running Python 3 in Pycharm for a while now, and I tried to install a new module and it failed to install. Specifically it gave me a "Non-zero exit code (1)" and told me to attempt to install it from my terminal using PIP. I have since updated and reinstalled Pycharm and it still will not install new modul... | 1 | 1,215 |
How to get values from a multiple checkbox and insert into database? | <p>I am working on a certain form that accepts multiple values using checkbox and I find it hard to get all the values of the checked boxes and store them into the database.</p>
<p>Everytime my insertion query is being executed.. the only value that is stored in the database is the last checkbox the user selects thus ... | 1 | 1,935 |
How to insert file_path into database using codeigniter | <p>I am having a problem with inserting file_path to database usingt Codeigniter, I have a form field where user can upload any jpg|png|gif file ,the uploaded file is successfully sent to a uploads directory and a success message is displayed. But how will I get the file_path of that particular file uploaded and inser... | 1 | 1,491 |
Set Cardview Shape & Background Semi transparent | <p>I have added a background Image in a linear layout and a Card View. Under CardView I added another background image of gradient and set alpha .5. When I add TextView and added Text, the text also got semi-transparent as shown in the image. I tried using Bold appearance but it didn't work.
<a href="https://i.stack.im... | 1 | 1,147 |
How to make points in chartjs draggable? | <h1>Question</h1>
<p>I'm looking to make 3 points on a graph draggable between 0 and 100. I'm looking to do this in React with <a href="https://www.chartjs.org/" rel="nofollow noreferrer">ChartJS</a> via <a href="https://github.com/jerairrest/react-chartjs-2" rel="nofollow noreferrer">react-chartjs-2</a>.</p>
<p><a h... | 1 | 1,325 |
Highlight active menu items in master page | <p>I am using a master for my menu items. Since I am using master page, I am confused how to highlight active menu item. Can anyone help me out. Since I have 4 pages, I tried this below code in all page load event in 4 pages and didn't work.</p>
<pre><code>if (!IsPostBack)
{
Menu M = (Menu)this.Mas... | 1 | 1,761 |
Jersey web application registering resources dynamically | <p>I have a web application, which shall load its resources dynamically from jar files.</p>
<p>I started to use <code>org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory.createHttpServer</code> to setup my own server and loaded all resources via <code>ServiceLoader</code> and registered them via <code>Re... | 1 | 2,189 |
C++ 307 Errors when trying to include winhttp.h in visual studio 2010 | <p>I have a big big problem. I'm trying to use WinHttp to download file with C++ and I'm using Visual Studio 2010 in order to do this thing. </p>
<p>My problem is that the program is not compiling because are generated 307 errors, all refering to <code>winhttp.h</code>. I mention that I have included that file. What ... | 1 | 3,836 |
Resize Popup to Content - CSS | <p>I'm trying to create this floating modal popup that sits in the top right-hand corner of the screen. I want the background to be active (as in I can do things normally on the webpage without the popup bothering it.</p>
<p>The problem arises when I want to resize the modal to the content on the inside. So for exampl... | 1 | 1,717 |
Configuring HAProxy+nginx+PHP-FPM to out perform Apache+mod_php | <p><strong>Edit</strong></p>
<p>Running my OS on the VirtualBox was the issue. As soon as I made my OS the native on the disk, I was able to see the performance boost.</p>
<p><strong>Original</strong></p>
<p>I've read a lot of people recommend ditching Apache+mod_php for HAProxy+nginx+PHP-FPM. I'm trying to verify t... | 1 | 1,154 |
How to get the json format of data from prestashop web service | <p>I need to return the json format of data for client request. I used prestashop 1.6 and enabled the web services and created the authkey.
I am using below code </p>
<pre><code><?php
define('DEBUG', true); // Debug mode
define('PS_SHOP_PATH', 'http://www.example.com'); ... | 1 | 1,805 |
Got error message in LOAD DATA LOCAL INFILE | <p>I've got this error:</p>
<pre><code>Error message is :: "Error occured during query execution: (LOAD DATA LOCAL INFILE '/tmp/3sch.jofcial.txtgymCN5' REPLACE INTO TABLE `prod_sch` FIELDS TERMINATED BY ',' IGNORE 1 LINES (No_ ,Model_Code,Model_Name ,Lot_No_ ,Start_Seq_No_ ,Quantity ,Lot_Quantity ,Line_Code ,Line_Name... | 1 | 1,107 |
Using Custom view class inside ViewPager | <p>Looking for any suggestions on how I would migrate from a HorizontalScrollView to a ViewPager using a custom view class. Here is my custom view class:</p>
<pre><code>public class ProductChoiceView extends LinearLayout {
private AmazonProductListAdapter customListAdapter;
private Context context;
private List<Pr... | 1 | 2,256 |
Is my .asLongAs condition wrong? | <p>Expected output should be 3 calls of
like, </p>
<ol>
<li><a href="https://someurl.net;limit=5;offset=0" rel="nofollow noreferrer">https://someurl.net;limit=5;offset=0</a> (1st call will start from 0 offset everytime - Must)</li>
<li><a href="https://someurl.net;limit=5;offset=5" rel="nofollow noreferrer">https://s... | 1 | 1,560 |
Trying to add plugin in pom.xml in maven | <p>i'm trying to add this plugin in the pom.xml : </p>
<pre><code><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
... | 1 | 5,480 |
How do I replace a node with an image using D3 and CoffeeScript for a network visualization? | <p>I've been attempting to solve this problem for days, and am completely stumped. </p>
<p>I'm using this network implementation walk-through:
<a href="http://flowingdata.com/2012/08/02/how-to-make-an-interactive-network-visualization/" rel="nofollow noreferrer">http://flowingdata.com/2012/08/02/how-to-make-an-interac... | 1 | 2,581 |
HttpsURLConnectionImpl.getInputStream() error on Android platform | <p>Here's my task.
Given a pair of latitude and longitude, I want to get a JSON from Google Places API. Following function, reverseGeoCoding, returns the String JSON.</p>
<pre><code>public String reverseGeoCoding(String lat, String lng) {
latitude = lat;
longitude = lng;
String json = new String();
Str... | 1 | 1,616 |
Untar *.tar.bz2 using 7-zip on windows command line | <p>I have a function in a powershell script that is supposed to untar my CppUnit.tar.bz2 file. I have installed 7-zip, and in my function I have the following:</p>
<pre><code>Function untar ($targetFile) {
$z ="7z.exe"
$defaultDestinationFolder = 'C:\Program Files\'
$destinationFolder ... | 1 | 1,032 |
Drag Bound wiith Konva.Layer | <p>I am using <a href="https://konvajs.github.io/docs/" rel="nofollow">KonvaJs</a> in my project. I need to implement drag bound to <code>Konva.Layer</code>. My layer has so many other shapes and images. I need to restrict the movement of layer up to 50% of it's width and height. The way I have done in this <a href="ht... | 1 | 1,639 |
Split linked list into half | <p>I am trying to create a function splitlist(), which will split a singly linked list into two sublists – one for the front half, and one for the back half. I have come up with a code below which will work for the first time that I call the function, but when I call the function repeatedly, the program crashes. Any ad... | 1 | 1,175 |
Writing to BigQuery from within a ParDo function | <p>I would like to call a <code>beam.io.Write(beam.io.BigQuerySink(..))</code> operation from within a ParDo function to generate a separate BigQuery table for each key in the <code>PCollection</code> (i'm using the python SDK). Here are two similar threads, which unfortunately didn't help:</p>
<p>1) <a href="https://... | 1 | 3,105 |
org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Unknown column in 'field list' | <p>Please help. I'm new to hibernate 5 + MySQL so this might be silly scenario.</p>
<p>I'm trying to create a very basic social media app that allows to register, login, add friends. I'm getting this error:</p>
<pre><code>23:47:57.340 [http-nio-8080-exec-6] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper -... | 1 | 1,675 |
aligning the image on the right side of text box | <p>I have the below form,</p>
<p><img src="https://i.stack.imgur.com/eBeC6.png" alt="enter image description here"></p>
<p>I want the green image on the right side of text box instead of getting below the text box.</p>
<p>The image is visible if the field is validated.</p>
<p>My css</p>
<pre><code><style type="... | 1 | 3,319 |
Weblogic JMS System Error | <p>We're getting a JMS error which we don't have a lot to go with: </p>
<blockquote>
<p>org.springframework.jms.UncategorizedJmsException:
Uncategorized exception occured during
JMS processing; nested exception is
<strong>weblogic.jms.common.JMSException:[JMSClientExceptions:055039]</strong> A system
error h... | 1 | 2,845 |
rendering SDL_TTF text onto openGL Red Square instead of text | <p>I've been attempting to render text onto an openGL window using SDL and the SDL_TTF library on windows XP, VS2010.<br>
Versions:<br>
SDL version 1.2.14<br>
SDL TTF devel 1.2.10<br>
openGL (version is at least 2-3 years old).</p>
<p>I have successfully created an openGL window using SDL / SDL_image and can render li... | 1 | 1,158 |
How to filter using a dropdown in Knockout | <p>I have just started using Knockout and I want to filter my data that I am displaying in my UI by selecting an item from a dropdown. I have got so far, but I cannot get the selected value from my dropdown yet, and then after that I need to actually filter the data displayed based upon that value. Here is my code so... | 1 | 2,410 |
jquery-nice-select with vue.js is not a function | <p>I use this library: <a href="https://github.com/hernansartorio/jquery-nice-select" rel="nofollow noreferrer">https://github.com/hernansartorio/jquery-nice-select</a></p>
<p>And include this plugin in file <code>bootstrap.js</code>:</p>
<pre><code>require('jquery-nice-select');
</code></pre>
<p>Than I use in the a... | 1 | 1,261 |
Getting a hyperlink field/column to display data as a hyperlink from a SharePoint List, using JavaScript and jQuery | <p>I have what I think should be a simple issue to resolve, but it has taken me way too long to figure out.</p>
<p>The background on this is thus: basically what I have is a SharePoint List that contains task items. We have created a .js file and published it to the Site Assets section along with some jQuery files. ... | 1 | 6,893 |
how partition reader from database, writer in different files and optimize thread load | <p>EDIT: </p>
<p>I think that there are something wrong with this clause: </p>
<p> </p>
<p>I tried to run my first test that runs single thread and take about 35 minutes with this whereCause and the execution is terribly slow. When I just do an select * from table, whitout whereClause the process happens normally. <... | 1 | 2,287 |
store data in mysql after reading from excel files | <p>i am trying to make o program where i will read the data from excel files and i will store them in a database. I am using eclipse as editor and mySQL. I am using APACHE POI to read the excel files and JDBC for the connection. The excel files have the structure as shown below:</p>
<pre><code>ID NAME SALARY ST... | 1 | 3,333 |
HttpWebRequest method GET/POST not working? | <p>I am working with GoogleApi. I want to get accesstoken as response using Google api. when I am sending httpwebrequest for getting access token then</p>
<p>When I used :- request.Method = "POST"</p>
<p>Exception:- HTTP method POST is not supported by this URL</p>
<p>When I used :- request.Method = "GET"</p>
<p>Ex... | 1 | 1,066 |
Kibana and Elasticsearch in Docker, coexist with standard install | <p>I am trying to setup a new version of Kibana and Elasticsearch on my server. I have an existing K and E running with default ports (5601, 9200) and upgrading the existing data is not an option. I'd like to run newer versions (7.4.2) of K and E in Docker, using different ports (5611:5601, 9211:9200) to access the con... | 1 | 1,411 |
Importing Excel to DataTable getting data incorrectly using OpenXML | <p>I am using OpenXML to import excel to a DataTable. My first row is merged to display only Title information and the second row is the header row. While populating DataTable from an excel file, I am getting incorrect data. The DataTable is populating correctly until any blank cell is present. When there are blank cel... | 1 | 1,911 |
onClick child item in ExpandableListView | <p>I need to <strong>add onClick</strong> to the child items in <strong>ExpandableListView</strong>. I have reviewed other posts regarding this, but I could not integrate the code into mine, possibly due to a different variation of ExpandableListView codes. </p>
<p>It would be great if you can provide some in code exp... | 1 | 2,752 |
Plugin 'org.sonarlint.idea' failed to initialize and will be disabled. Please restart IntelliJ IDEA | <p>I am getting the error above when I try to install the <em>SonarLint</em> plugin on my <em>IntelliJ</em>.</p>
<blockquote>
<p>Mac OS X Yosemite 10.10.5</p>
<p>IntelliJ 15.06</p>
<p>SonarLint Plugin 2.2 (tried 2.1 also)</p>
</blockquote>
<p>My JDK is set to <code>1.8</code> but not sure what is causing the issue. Any... | 1 | 1,532 |
Wobbly CSS Animation with Border-Radius in Internet Explorer | <p>In Internet Explorer this animation appears to wobble. I was reading the answer to <a href="https://stackoverflow.com/questions/23566831/internet-explorer-11-wobbly-css3-animation">this question</a> and they made it sound as though it is possible to fix.</p>
<p>I cannot really use an image as the border radius is n... | 1 | 1,200 |
MySQL - Iterating over columns in a result set | <p>I'm working on a project where a user can assemble the components of a yoga class. It's spread across several files and thus too large to put it all here. The trouble I'm having is in one method where I need to iterate over the horizontal columns of a result set that is returning only ONE ROW from a MySQL database... | 1 | 1,167 |
datatable to datatable linq filter | <p>I am trying to take a main datatable, and pull a subset of data from it into another table. I cannot figure out how to get my LINQ syntax correct. </p>
<pre><code> static void Main(string[] args)
{
Console.WriteLine("start...");
DataTable dt = new DataTable();
dt.Columns.Add("fn", t... | 1 | 1,084 |
UITableViewCellAccessory Disappears When Scrolled Off Screen | <p>I have a UITableView filled with objects. In the <em>didSelectRowAtIndexPath</em> method i have a UITableViewCellAccessoryCheckmark appear when the row is selected and disappear when unselected.</p>
<p>Heres the code for the <em>didSelectRowAtIndexPath</em> method:</p>
<pre><code>- (void)tableView:(UITableView *)... | 1 | 1,101 |
Flutter is not rebuilding same widget with different parameters | <p>I was working with bottom navigation with similar child widgets in which only parameters are changed. The problem only happens when widgets are of <strong>StatefulWidget</strong> else there is no problem, indications in bottomnavbar is changing but not the body.</p>
<p><strong>Child 1:</strong>
<a href="https://i.... | 1 | 1,097 |
Partitioned view and performance for the table with huge records | <p>Currently I am facing performance issues with queries and
stored procedure. Following is the scenario:</p>
<p>We have 3-4 tables in a database (<code>SQL Server 2000 SP4</code>) which
have huge amounts of records. One of the tables has more than 25 million
records. These tables are maintaining sales records and tho... | 1 | 1,450 |
Hibernate and Spring-boot too many database connection and high server load on 150 requests/second | <p>I have spring boot application and I am using JPA and hibernate with oracle database. On high throughput 150 requests/second database stop allowing database connection and also database load goes unusually very high .</p>
<p>Here is my database configuration properties</p>
<pre><code>spring.datasource.url=jdbc:ora... | 1 | 2,234 |
How to maintain a transitive closure table efficiently? | <p>I have a DAG in my relational database (Firebird) with two tables <code>edge</code> and <code>node</code> (adjacency list model). I want to query them recursively, but found recursive queries very inefficient. So I tried to implement triggers to maintain the transitive closure following the Dong et.al. paper <a href... | 1 | 2,398 |
Why am I getting a 400: bad request? | <p>I'm trying to post XML to my <a href="http://en.wikipedia.org/wiki/Apache_Tomcat" rel="nofollow">Tomcat</a> server from an Android device, but I get zero bytes in the stream. I get a 400 bad request response, but I am not sure what's wrong with it. I can access my web application in a browser from Android and on my ... | 1 | 3,233 |
Android emulator Error:- executing /system/bin/e2fsck failed: No such file or directory | <p>I am trying to run my first Android App on <code>Android Emulator</code> on <code>API 19</code>. The <code>Emulator</code> get started but nothing comes up, means Home screen is not appearing. Its my second week on <code>Android</code> </p>
<p>These are the first two lines of log cat.</p>
<pre><code> 02-21 05:4... | 1 | 1,398 |
Paint ArrayList of Shape Objects to Frame | <p>I'm having difficulty with drawing Shapes (Circle & Rectangle) into a Frame.</p>
<p>I have created both a Circle and a Rectangle Class that implements the Shape Interface. I have then created DrawableCircle and DrawableRectangle Classes that extend the Circle and Rectangle Classes appropriately, and implement ... | 1 | 1,762 |
How to order descending the data in hibernate | <p>I want to order the data descending in hibernate,
but not working at all,</p>
<p>this is my code,</p>
<pre><code>@SuppressWarnings("unchecked")
@Override
public List<MPNValas> listAllMPNValas() throws Exception{
DetachedCriteria criteria = DetachedCriteria.forClass(MPNValas.class);
criteria.addOrder(... | 1 | 1,045 |
Upload image into database using php | <p>i am trying to upload image into database using php, i got an error message saying Undefined index: horse_image</p>
<p>here is the form code:</p>
<pre><code><form method="post" enctype="multipart/form-data"action="newhorse.php"
OnSubmit="return VerifyDataEntry(this)">
<p>Please type the horse details... | 1 | 2,123 |
Compile Matplotlib for Python on Snow Leopard | <p>I've killed half a day trying to compile matplotlib for python on Snow Leopard. I've used the googles and found this helpful page (<a href="http://blog.hyperjeff.net/?p=160" rel="noreferrer">http://blog.hyperjeff.net/?p=160</a>) but I still can't get it to compile. I see comments from other users on that page, so ... | 1 | 1,104 |
context menu not working in my ag-grid | <p>My goal is show context menu when right click into cell.</p>
<p>But my code does not response to right click.
I could not find where I did mistake.</p>
<p>Below is my code.
I wrote the log "console.log("getContentMenuItems()");" but this log was not printed.</p>
<p>my-grid-application.component.ts</p>
<pre><co... | 1 | 1,392 |
javax.servlet.ServletException: java.lang.OutOfMemoryError: Java heap space | <p>I want to extract nouns from selected text on my webpage, and highlight them when the text is displayed.So I use OpenNLP library for parsing and getting the list of nouns. It runs well in java class without memory problem though it took 6-7 seconds before showing the output, but when I run the code in jsp page, I go... | 1 | 1,332 |
Draggable area is not correct after image is zoom using Jquery | <p>I am using jquery.viewport to create an viewport function: I use jquery ui to create slider and a own written zoom function to zoom the image. Also, using this plugin to create viewport function. </p>
<p><a href="http://borbit.github.com/jquery.viewport/" rel="noreferrer">http://borbit.github.com/jquery.viewport/</... | 1 | 1,561 |
Floyd Warshall implementation in Python | <p>I am trying to implement Floyd Warshall graph algorithm for a weighted directed graph but couldn't make it work.</p>
<p>Weights for successor only edges in 1 and 0 otherwise.</p>
<p>Implementation looks something like this (though I have taken the implementation from somewhere).</p>
<pre><code>INF = 999999999
de... | 1 | 1,613 |
Manipulate SVG in HTML with JS | <p>I'm having an problem with construction of a svg element using javascript in an html-embedded svg image. I created two files that should be exactly the same but one of them is being constructed with js.
</p>
<p><strong>SVG.html</strong></p>
<pre class="lang-html prettyprint-override"><code><!DOCTYPE HTML>
&l... | 1 | 1,064 |
Flattening nested loops / decreasing complexity - complementary pairs counting algorithm | <p>I was recently trying to solve some task in Python and I have found the solution that seems to have the complexity of <em>O(n log n)</em>, but I believe it is very inefficient for some inputs (such as first parameter being <code>0</code> and <code>pairs</code> being very long list of zeros).</p>
<p>It has also thre... | 1 | 1,067 |
"dyld: Library not loaded" error | <p>i have successfully compiled static library and added it to the XCode project just like it's written in <a href="https://developer.apple.com/library/ios/technotes/iOSStaticLibraries/Articles/configuration.html" rel="nofollow noreferrer">documentation</a>:</p>
<ol>
<li>libclang.a file is in project directory (added ... | 1 | 5,619 |
Getting Project 'org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT' not found | <p>I am trying to create a spring boot project in IntelliJ Idea. I tried creating a project from Spring initializr. But when I unzip it and run it on my IDE, it keeps repeating the same error:</p>
<blockquote>
<p>Project 'org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT' not found</p>
</blockquote>
<p... | 1 | 1,761 |
Swift 3 - Declaring a simulated JSON as a response from a server | <p>I'm making an application with swift 3.0. But I have a problem, because in the API REST still have not implemented the service, I'm creating a simulated JSON to continue working. But the problem as you will see at the end of all the explanation in the image is that I do not know how to declare a JSON "-.- .... Basic... | 1 | 4,481 |
Cannot resolve symbol: import org.eclipse.jetty.server.Server; | <p>In my Vaadin Jetty Maven project :</p>
<pre><code> <dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-core</artifactId>
</dependency>
<!-- Added to provide logging output as Flow uses -->
... | 1 | 1,337 |
adding values from input field to observableArray and display it (knockout.js) | <p>This is my first attempt at some knockout.js. There is an input field and the value you write into it gets "sent" to a list and displayed. However, it doesnt work and I guess it has to do with the fact that this.prodname is not associated correclty to the observableArray. But I cant figure out how to do that.</p>
<... | 1 | 1,169 |
Spring Security + AngularJS: POST request | <p>I have a web application with the back using Java Spring and the front using AngularJS.</p>
<p><strong>Spring Security Configuration (Java config)</strong>:</p>
<pre class="lang-java prettyprint-override"><code>@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authentic... | 1 | 1,149 |
Hibernate and Spring Boot MalformedParameterizedTypeException: null while initializing bean (org.apache.commons.dbcp2.BasicDataSource) | <p>I have Spring 1.5.21.RELEASE spring boot project and I am not able to initialize the Spring Boot Datasoruce org.apache.commons.dbcp2.BasicDataSource. When application start-up I get the following exception. I have tried and try to debug but I am not able to figure which incompatibility causing this issue. I am us... | 1 | 2,405 |
How to redirect to a login page if Flutter API response is unauthorized? | <p>I am building a Flutter app which uses a Golang API to fetch data. The API will return a 401 unauthorized if the JWT token is not valid. How can I redirect to a login page on any API call if the response status is 401?</p>
<p>Here is my flutter code:</p>
<p>main.dart</p>
<pre><code>void main() async {
WidgetsFlut... | 1 | 1,325 |
Android, TelephonyManager, the joys of PhoneStateListener and incoming numbers | <p>I've very newly gotten into <code>Android</code> development, and decided that my first conquest on this fresh field would be to grasp how the phone reacted to incoming calls.</p>
<p>A little googling later led me to <a href="http://www.compiletimeerror.com/2013/08/android-call-state-listener-example.html#.Vi3Ren4v... | 1 | 1,787 |
Call interceptor only once when component calls multiple API | <p>I have Multiple API in a single component, where on token expire interceptor runs multiple times, for example, if I have 4 GET API in a single component then 4 times interceptor will run on token expire</p>
<p>Below is the code for interceptor</p>
<p>my.httpInterceptor.ts</p>
<p><div class="snippet" data-lang="js... | 1 | 1,700 |
Open page as pdf with DOMPDF | <p>I am currently working on a semi dynamic page where I use some GET functionality to personalize it. I also echo the date a couple of places. At the bottom of this page, I would like to have a button that gives the visitor the option to download/open this page as PDF. Without the header. I have integrated DOMPDF, but... | 1 | 1,473 |
Building libvpx under Windows 7 - yasm error | <p>I am building libvpx under 64 bit Windows 7 (but want to target build for win32 platform), following the instructions here:</p>
<p><a href="http://www.webmproject.org/code/build-prerequisites/" rel="nofollow">http://www.webmproject.org/code/build-prerequisites/</a></p>
<p>I am doing this using Mingw, and using yas... | 1 | 8,286 |
Python metaprogramming: automatically generate member functions | <p>How do I write a function that adds a method to a class? I have:</p>
<pre><code>class A:
def method(self):
def add_member(name):
self.new_method = def name...?
add_member("f1")
add_member("f2")
</code></pre>
<p>In order to answer what I'm trying to do. I'm trying to facto... | 1 | 1,172 |
Vim supertab and jedi-vim | <p>Posting as a follow up to <a href="https://stackoverflow.com/questions/13179582/how-to-check-if-supertab-and-jedi-vim-is-activated">How to check if SuperTab and jedi-vim is activated?</a> and have done what Ingo Karkat proposed. Now I wonder what is broken and how I fix it.</p>
<p>Here is the output:</p>
<pre><cod... | 1 | 4,029 |
MapView Callout onPress not triggering | <p>I've got a <code>MapView</code> from and I'm trying to render a location button, which is currently rendered in a callout and says "Find Me." The code is below. </p>
<p>The button displays nicely, but I can't get the onPress to work: when I click "Find Me", neither the "callout hello" or "button hello" log statemen... | 1 | 1,390 |
Can I convert a Numpy ndarray to a Tensor? | <p>I have an object, that has a length of 40,000. Each of those 40,000 arrays has a varying length. All the values in the arrays are integers (0-25).</p>
<p>My XTrain data looks something like this:</p>
<pre><code>[array([13, 8, 3, 7, 12, 16, 11, 1, 9, 17, 2, 18, 3, 5, 12, 19, 9,
10, 20, 14, 1, 15, 12,... | 1 | 1,577 |
Nested groups using linq? | <p>Lets say I have an object with the following properties.</p>
<pre><code> public string VendorNumber { get; set; }
public string PartNumber { get; set; }
public string PartDivision { get; set; }
</code></pre>
<p>I have a list of about 300 of these objects. I am trying to group them first by VendorNumber,... | 1 | 1,188 |
Permission denied @ dir_s_mkdir - /run/user/gui/spring (Errno::EACCES) | <p>I am having this issue while opening -> rails console</p>
<pre><code>[chitra@localhost todo_app]$ rails c
/home/chitra/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /run/user/gui/spring (Errno::EACCES)
from /home/chitra/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0... | 1 | 1,203 |
Azure: Login failed for user | <p>What I have done:</p>
<ul>
<li>I added Resource group in Azure.</li>
<li>Added Web Service with previous resource group.</li>
<li>Added SQL Server Database with previous resource group.</li>
<li>Retrieved generated connection string from this database and provided here username and password.</li>
<li>Added this con... | 1 | 2,251 |
Typescript CORS enabled but still getting CORS error | <p>I have added a cors header in my Angular 7.0.5 project but i am still getting the following error when submitting a form and sending the form data to a 'back-end' (google script):</p>
<p>Access to XMLHttpRequest at '<a href="https://script.google.com/blabla" rel="nofollow noreferrer">https://script.google.com/blabl... | 1 | 1,240 |
Java Rest Client using self-signed Certificate | <p>Hello I'm trying to write a little Rest client which accesses our Cloud server (Rest Webservices). The connection is secured with a SSL Client Certificate which if I understand correctly is not signedby any Certification Authority, and am having problems.</p>
<p>I know that the certificate works fine as I can use t... | 1 | 1,657 |
Maven doesn't find tests | <p>I have a Maven project setup. In the project, am using JUnit in for unit testing. When I run tests with <code>mvn test</code> or <code>mvn clean test</code>, no tests are run. Tests are in <code>src/test/java</code> and they all end in <code>Test</code> (they match <code>*Test.java</code>).</p>
<p>This is my pom.xm... | 1 | 1,510 |
WndProc in my WPF app not 'handling' WM_INPUT event | <p>[Edit] Here's what I've gleaned about mouse input handling thus far. Note that I've learned this via a bunch of different sources and via experimentation, so don't take this as gospel:
1) Mouse event originates with mouse move
2) SetWindowsHookEx(WH_MOUSE_LL) handler LowLevelMouseProc sees event first
3) OS/app fram... | 1 | 1,451 |
How to solve "spring crudrepository bean not found" in Spring boot? | <p>I'm relatively new to Spring and have a working project on work machine but am trying to setup the same project on my personal laptop and am having the following issue when starting up my project:</p>
<pre><code>Description:
Field productRepository in prs.web.ProductController required a bean of type 'prs.domain.pr... | 1 | 1,551 |
PowerShell AD Script using Get-ADGroup - Invalid Enumeration Context | <p>I am using this script to extract a load of information to a tab delimited flat text file that is used by another program. The script works well, creating the file and populating it with data, but when it reaches around 250MB of data, I get the error listed below. I believe that this is being caused as I'm just tryi... | 1 | 1,675 |
Display Time Constantly For Custom HTML5 & jQuery Video Player | <p>When I first load my page containing my custom embedded Video Player I made, the elapsed & total time doesn't display. But, when I play the video it shows up. Could anyone help me out and tell me what I could be doing wrong, please. Thank you!</p>
<p><strong>Example Picture:</strong></p>
<p><strong>What the Vi... | 1 | 3,018 |
How can I pass an object through $stateParams? | <p>I've got a ui-router application with a large number of states, and I need to be able to pass a model through $stateParams. On every $http request, I check the response for a "STATE" parameter, which is returned from the server. If it exists, I execute <code>$state.go(STATE)</code>. </p>
<p>So effectively, I've g... | 1 | 1,055 |
Postgresql: Subquery in FROM must have an alias - with multiple joins | <p>I get the following error:</p>
<pre><code>ERROR: subquery in FROM must have an alias
LINE 11: (SELECT "domiciles"."id" AS id,
^
HINT: For example, FROM (SELECT ...) [AS] foo.
</code></pre>
<p>with the following SQL query:</p>
<pre><code>SELECT "domiciles".*
FROM "domiciles"
LEFT OUTER JOIN
(SELEC... | 1 | 1,462 |
Iterating over for an Array Column with dynamic size in Spark Scala Dataframe | <p>I am familiar with this approach - case in point an example from <a href="https://stackoverflow.com/questions/59532225/how-to-obtain-the-average-of-an-array-type-column-in-scala-spark-over-all-row-en/59532979#59532979">How to obtain the average of an array-type column in scala-spark over all row entries per entry?</... | 1 | 1,087 |
"TypeError: string argument without an encoding" Flask and SQLAlchemy | <p>I'm slowly trying to build a small Rest API using Flask, Marshmallow, SQLAlchemy, and SQLite3. At some point in the recent future my simple "Get" call for the users table seemed to work, but later I started getting the same argument over and over when trying stuff out.</p>
<p>The error: "TypeError: string argument... | 1 | 2,580 |
Multiple Image Resizes at once in Codeigniter , won't work | <p>I am trying to upload images and re-size them in different dimensions within the same function. but what happens is that only one re-size works and the others don't . My code is:</p>
<pre><code> function do_upload()
{
$this_user = $this->auth->info;if(!is_dir('./uploads/'.$this_user->username)){
... | 1 | 2,158 |
Embedding google maps android v2 in android | <p>i created application in android 2.33 . i used apk v2 keys and i followed all the steps but still its showing error</p>
<pre><code>**xml**
<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
an... | 1 | 4,406 |
Spring OAuth: Custom form for authenticating authorization endpoint | <p>How can I set up a custom login form to protect my /oauth/authorize endpoint in an Spring Boot Application that is both a Authorization and Resource Server? I want to achieve that a user has to log in to make requests to /oauth/authorize. All resources, that are not /login and /oauth/** should be handled as secured ... | 1 | 2,702 |
Webpack2 not understanding @import statement in my SASS files (How to compile SASS with webpack2?) | <p><a href="https://webpack.js.org" rel="nofollow noreferrer"><strong>Using Webpack 2</strong></a> and <a href="https://github.com/jtangelder/sass-loader" rel="nofollow noreferrer"><strong>sass-loader</strong></a> 4.11</p>
<p><code>webpack --config webpack.config.js</code></p>
<p><a href="https://i.stack.imgur.com/C9... | 1 | 1,629 |
Does ORDER BY apply before or after DISTINCT? | <p>In a MySQL query, when using the <code>DISTINCT</code> option, does <code>ORDER BY</code> apply after the duplicates are removed? If not, is there any way to make it do so? I think it's causing some issues with my code.</p>
<p><strong>EDIT</strong>:<br>
Here's some more information about what's causing my problem. ... | 1 | 1,125 |
How to display Extjs.Ajax response in Grid | <p>I have posted the form data using Ext.Ajax.request and I get the JSON in response. Now I want to display this JSON in grid. How can I do this? Please help me out in this.</p>
<p>Following is my code:</p>
<pre><code> var simple = new Ext.FormPanel({
labelWidth: 85,
frame:true,
titl... | 1 | 1,110 |
How to fix Execution failed for task ':app:processDebugManifest' | <p>I am facing this after installing react native image picker when using the npx react-native run-android command.</p>
<p>D:\WEB SAYLANI\React Native CLI\AwesomeProject>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetif... | 1 | 1,188 |
Error while fetching enum value from database: No enum constant, nested exception is java.lang.IllegalArgumentException | <p>I was trying to build a sample application in which user can add a post and others can upvote or downvote it. I have taken Vote as an entity class which saves the data whether the user has upvoted or downvoted. upvote and downvote are represented as an enum. When I was trying to fetch all votes by a post id and user... | 1 | 6,841 |
HTML-Pure html accordion collapse others | <p>I need a negation pseudo-class to collapse the expanded content when .content [type=checkbox]:checked. How to say collapse all lists except clicked? Is it possible without javascript?</p>
<p>HTML:</p>
<pre><code><div class="accordion vertical">
<ul>
<li>
<input type="ch... | 1 | 1,824 |
Simple Esper example in Java | <p>I downloaded the most recent Esper. I added the path to the root esper directory and the lib subdirectory to the <code>.bash_profile CLASSPATH</code>. I sourced the <code>bash_profile</code>.</p>
<p>I then entered this program that I found on the web but it gives me this error. Not sure what I am doing wrong?</p>
... | 1 | 1,071 |
parRF on caret not working for more than one core | <p>parRF from the caret R package is not working for me with more than one core, which is quite ironic, given the <em>par</em> in parRF stands for parallel. I'm on a windows machine, if that is a relevant piece of information. I checked that I'm using the latest an greatest regarding caret and doParallel.</p>
<p>I mad... | 1 | 1,955 |
Comparing two boost::variant objects using EXPECT_EQ from Google Test | <p>I can't compile the last line for the following code: </p>
<pre><code>typedef boost::variant<std::vector<int8_t>, std::vector<std::string>> Container;
std::vector<std::string> v1;
v1.push_back("sd");
Container c1;
c1 = v1;
std::vector<int8_t> v2;
v2.push_back(1);
v2.pu... | 1 | 9,655 |
Save and Delete markers using Google map API V3 | <p>I got a trouble using GMAP V3, when I realized that I need to save the changes in the map in a database, I found no way to do that. Before start to workaround I would like to listen some ideas firsrt.. and there no better place to do this, the comunnity stackoverflow always gave me great ideas to solve the problems ... | 1 | 1,061 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.