title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Space between html5 elements | <p>Okay so I'm trying to start from scratch building this html5 site with css, I've tried hard to eliminate the spaces between all the elements: header, nav, article, and footer</p>
<p>They all stay there. I know it's a very basic question but I've spend some time on it and still can't figure what's going on.</p>
<p>... | 1 | 1,286 |
Inputstream readUTF can't read UTF | <p>I am a total noob at Java, so apologies if this is a rookie mistake.
I was trying out Java NIO, I still haven't gotten to a stage where I am using the non-blocking feature. I just am not able to get the server to read a string, I understand its not easy to send a Bytebuffer from one side and trying to interpret it a... | 1 | 2,159 |
Trouble configuring AspectJ LTW with Tomcat and Spring | <p>I'm having some problems getting load-time weaving to work with Spring in my Tomcat 6 webapp. I only want to use it for transactions (so that self-invocation respects transactional annotations, which it doesn't with AOP proxying). It appears that the weaver is being loaded, but my annotated classes aren't actually b... | 1 | 2,026 |
Read first line of a text file c# | <p>I'm trying to read the MDT (Microsoft Deployment Tool) log details when it is created using Visual Studio C# and display <strong>start time and date</strong> in my ConsoleApp for my project. I'm a beginner for C# and having a hard time to code. Can someone please help me with the C# code and available libraries requ... | 1 | 1,787 |
How to connect to mysql running on docker using Sequel Pro | <p>I have a docker-machine up and it has a mysql container running. </p>
<pre><code>~
▶ boot2docker ip
192.168.59.103
~
▶ docker-machine ip default
192.... | 1 | 1,185 |
Undefined variable: date on Line 81 | <p>I am having trouble once again with the undefined variable errors within my PHP file. The error (date) is occurring on line 81 in the PHP file, and I am not sure exactly why this error will not subside. This program is supposed to allow a user to enter an IP address and current date in the 111.222.3.44 and mm/dd/yyy... | 1 | 3,344 |
Kendo grid virtual scrolling (endless scrolling) does not work | <p>I want to turn on the endless scrolling on a kendo grid, called in this framework as <code>virtual scrolling</code>.</p>
<p>Abstract:</p>
<pre><code>1) I load the page => the Action Virtualization_Read is called (OK)
2) I scroll down the Grid till bottom => the Action Virtualization_Read is called anothter t... | 1 | 1,200 |
How do I activate my conda environment for VS Code python debugger and testing? | <p>When I try to run the debugger:</p>
<pre><code>C:\Users\Philip\OneDrive\Betting\Capra\Tennis\polgara> cmd /C "C:/Users/Philip/miniconda3/envs/capra/python.exe c:\Users\Philip\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\lib\python\debugpy\launcher 53607 -- c:\Users\Philip\OneDrive\Betting\Ca... | 1 | 1,288 |
working with fragments of sliding tab layout | <p>Greeting.... I am new to android and I am making an app that displays a map with route on it in one tab and navigation instructions for the route in another tab.... I followed a tutorial to get the sliding tab layout done with three tabs.. previously I had displayed map with route in a separate app ..now I want to d... | 1 | 5,058 |
Django expected string or bytes-like object when creating model | <p>I have a model that I'm trying to create a new instance of. However, I'm getting an error when I'm running the basic create command. <code>C.objects.create()</code>. I can still create a instance through the admin, but can't seem to outside of it.</p>
<p>Code Run:</p>
<pre><code>qs_a = A.objects.all().first()
qs_b... | 1 | 1,593 |
How to render content in a custom typo3 grid element ? | <p>I'm trying to make a simple 2 column teaser element that displays an image on the left column, a content element in the right column plus a button link. </p>
<p>This is the original ts, it works but it's ugly and the images are static: </p>
<hr>
<pre><code>tt_content.gridelements_pi1.20.10.setup {
29 <... | 1 | 1,381 |
Problem calling a "bearer-only" keycloak endpoint from a springboot (client app) to a also spring boot (bearer only app) | <p>Basically I'm trying to access a bearer-only endpoint from a client app which is using a "KeycloakRestTemplate". </p>
<p>I did follow this guidelines 1:1 (it is in German) : <a href="https://blog.codecentric.de/2017/09/keycloak-und-spring-security-teil-1-einrichtung-frontend/" rel="nofollow noreferrer">https://blog... | 1 | 2,681 |
OracleBulkCopy Memory Leak(OutOfMemory Exception) | <p>Below is the code I used to bulkcopy data from a temp table dataTable into a destTable in Oracle Database. The dataTable has about 2 million records.</p>
<pre><code>using (OracleBulkCopy bulkCopy = new OracleBulkCopy(VMSDATAConnectionString))
{
try
{
f... | 1 | 1,099 |
Hibernate Class Cast Exception | <p>I am getting a class cast exception with hibernate when trying to cast the result set to the mapping class... I am able to see the data in the result set that is returned...however it comes back as an Object [] and I am able to set the Object [] to the a List...Am I doing my hibernate mappings correctly? I get the c... | 1 | 2,377 |
Making pygame wait for user click/input before proceeding (python quiz game) | <p>So I am trying to make a game on pygame which would display a vocabulary as a question and three answer choices. And if the user presses the correct answer, their score will go up by one, and the game will move on to the next vocabulary question.</p>
<p>I store my questions in an 2D array called questions[], in eac... | 1 | 2,004 |
Chef deploy_resource private repo, ssh deploy keys and ssh_wrapper | <p>I'm having loads of trouble getting my Chef recipe to clone a private repo. Well, I had it working yesterday but after 'cheffin' my Vagrant box half a dozen times, I've broken it. I'm a Chef newbie as you may guess.</p>
<p>Following the deploy_resource guide here, I've created my deploy.rb recipe (shortened):</p>
... | 1 | 1,200 |
$form->get('element') in ZF2 returns NULL | <p>I have a form for adding user.
The problem is: I recieve NULL when trying to get the form element from my Controller.
Here is the form:</p>
<pre><code>public function __cunstruct($name = null)
{
parent::__construct('user');
$this->setAttribute('method', 'post');
$this->add(array(
'name' =... | 1 | 1,763 |
Radial gradient for Internet Explorer | <p>I am trying to do an animation with pure css3. The animation would be eyes that move left to right, my probleme is I using radial gradient background for the eyes but on Internet Explorer this effect doesn't look to work, but on Chrome and Firefox its working well.</p>
<p>You can see a demo here : <a href="http://j... | 1 | 2,615 |
Call function without resetting variables | <p>I am making a card game, when it gets to the end I want people to be able to play more rounds but when it replays it must go through the variables again.. resetting the score. I am looking for a way to fix it without a whole new block of complicating code, I'm hoping I'm just missing a really easy fix.</p>
<pre><co... | 1 | 1,026 |
Error setting expression 'userBean.password' with value ['', ] | <p>I'm using struts 2 and tomcat together.
The problem I'm facing is: whenever I submit data whether is wrong or not (username and password) it ALLWAYS makes following field error appear:</p>
<pre><code>.Error setting expression 'userBean.password' with value ['XXX', ]
.Error setting expression 'userBean.username' wit... | 1 | 10,386 |
Magento 2: Left Category Sidebar from Sebwite | <p>I'm using Magento 2 and still struggle implementing this category listing url:
<a href="https://github.com/Sebwite/magento2-category-sidebar" rel="nofollow noreferrer">https://github.com/Sebwite/magento2-category-sidebar</a></p>
<p>What is the proper way to do this line below? Which file should i edit? </p>
<bloc... | 1 | 1,134 |
How do populate valid params in a grails test | <p>Kinda new here in groovy and grails. I tried to run <code>grails install-templates</code> and saw the generated test.groovy which looks like this...</p>
<pre><code>`<%=packageName ? "package ${packageName}\n\n" : ''%>
import org.junit.*
import grails.test.mixin.*
@TestFor(${className}Controller)
@Mock(${cla... | 1 | 2,458 |
How do you get Smarty3 to work with Symfony2? | <p>I'm trying to get Smarty 3 to work as a template engine for Symfony 2. I'm trying to install this bundle to get smarty 3 to work:</p>
<p><a href="https://github.com/noiselabs/SmartyBundle" rel="nofollow">https://github.com/noiselabs/SmartyBundle</a></p>
<p>It installs just fine, but when I add it to the AppKernal ... | 1 | 1,956 |
Why did this postgres database upgrade fail? | <p>I am trying to upgrade from Postgresql 9.6 to 10 unsuccessfully.</p>
<p>I ran <code>brew upgrade postgresql</code> with success, then ran <code>brew postgresql-upgrade-database</code> with failure message. The issue seems to be this line:</p>
<p><code>lc_collate values for database "postgres" do not match: old "e... | 1 | 1,115 |
javax.el.ELException: java.lang.NullPointerException | <p>I use primefaces single row selection data table , and i want to change a value on the selected row so this is my xhtml page</p>
<pre class="lang-html prettyprint-override"><code><h:form id="form">
<p:panel header="Prix des matériaux " style="width : 664px; " >
<br />
<p:d... | 1 | 1,382 |
Invalid number. Numbers are limited to 32-bits of precision | <p>Found this script on the net. It works for the basic reason I downloaded it. But I would like to know a couple things:</p>
<ol>
<li>When the script attempt to divide the bytes to KB, MG and GB it errors with
Invalid number. Numbers are limited to 32-bits of precision.</li>
<li>Total Number for Files & Director... | 1 | 1,207 |
Efficient way to implement excel import in grails | <p>This code should probably go in code review but I won't get quick response there (Only 2 groovy questions there).
I have the following code for importing data from excel into my grails application. The problem is that I didn't test for >1000 rows in the excel file so my app froze when my client tried to upload 13k r... | 1 | 2,533 |
Posting to the same form in laravel | <p>I'm trying to build a search form in Laravel such that when a user presses the search button, all the contacts matching the search criteria are displayed on the same page.</p>
<p>Below is my form:</p>
<pre><code>{{ Form::open(array('url' => '/directory', 'class' => 'form-horizontal')) }}
<div class="f... | 1 | 1,189 |
npm install zmq giving error as node-gyp rebuild | <p>i am really stuck with this problem and my dev haults, did lot of google search but confused what is the solution, i am sure any i will get help in this forum.</p>
<p>i am on ubuntu 13.04
node - 0.11.10-pre
zmq already installed through standard process below:
<a href="http://zeromq.org/intro:get-the-software" rel=... | 1 | 1,079 |
How to get all items from a specific type in CosmosDB | <p>I have the following DocumentDBRepository</p>
<pre><code>using Microsoft.Azure.Documents;
using Microsoft.Azure.Documents.Client;
using Microsoft.Azure.Documents.Linq;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Linq.Expressions;
using System.Threading... | 1 | 2,556 |
notfound.html is not found | <p>Pretty sure based on various examples (like the one <a href="http://www.thesitewizard.com/archive/custom404.shtml" rel="nofollow">here</a>) I set things up correctly:</p>
<p>1) I created a file 'notfound.html' in the root directory of my site</p>
<p>2) I'm running xampp, ie. Apache web server, so based on the stuf... | 1 | 1,467 |
FBX Sdk Skeletal Animations | <p>I have successfully loaded and rendered a fbx model using fbx sdk and directx.
I'm now trying to implement skeletal animations. First I'm trying to put my character on different poses by modifying bones matrices. (So I can achieve animations by setting different poses at times)</p>
<p>Here's my code of loading fbx... | 1 | 6,088 |
Android gradle google-services build failed "Duplicate Entry" | <p><strong>Edit:</strong></p>
<p>I changed this line:</p>
<pre><code>compile 'com.google.android.gms:play-services-analytics:8.1.0'
</code></pre>
<p>To:</p>
<pre><code>compile 'com.google.android.gms:play-services-analytics:8.4.0'
</code></pre>
<p>I changed the classpath to be:</p>
<pre><code>classpath 'com.googl... | 1 | 1,665 |
MySQL: java.sql.BatchUpdateException: Duplicate entry '242-243' for key 'PRIMARY' | <p>I have a problem with MySQL, at 4.00 PM my webApp i think cannot reach MySQL because of this errors: </p>
<pre><code> com.webratio.rtx.RTXException: Unable to perform process transition 'startProcess[startActivityTypeOid:2][parameters:gruppoOid=1, idCliente=2613, scontoOcc={}, barcode=10AA1107]'
at com.webra... | 1 | 3,244 |
C# Unity: Cannot convert method group 'GetComponent' to non-delegate type ' Rigidbody2D' | <p>I am new to C#/C++(Sorry if the mistake in the code is obvious.)</p>
<p>I am using <a href="https://www.youtube.com/watch?v=s4ObxcdXoFE" rel="nofollow noreferrer">this tutorial</a> (1:27:47 mark) and have run into an error. I tried to fix this code by looking through the web for solutions for other people who had s... | 1 | 1,097 |
ExpressJs Cannot Get /register Error | <p>I'm having an error using expressjs. It says "Cannot GET /register.html". I don't have any idea how to solve this. I would like to show register.html to /register but I always get an error. BTW here's my code guys. Thanks guys, I hope you can help me, I've googled this errors for 1 hr but I can't still make it work.... | 1 | 1,363 |
OWASP ESAPI can't find my ESAPI.properties file although it exists in directory | <p>I have problems configuring ESAPI to let it work with my Spring Boot Web Application (maven project).</p>
<p>I'm using this URL for help : <a href="https://web.archive.org/web/20161005210258/http://code.google.com/p/owasp-esapi-java/source/browse/trunk/src/main/java/org/owasp/esapi/reference/DefaultSecurityConfigur... | 1 | 1,437 |
How do I get JUnit4 annotations to work in Spring2.5? | <p>I've been trying to create a JUnit test for my DAO that uses Hibernate and is linked to the database via Spring in my applicationContext.xml file.</p>
<p>The error only occurs when adding:</p>
<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
</code></pre>
<p>Otherwise I get a null pointer exception to the partD... | 1 | 1,800 |
Custom Shader not working on Android | <p>I ported a Plasma ball shader from <a href="https://www.shadertoy.com/view/MstXzf" rel="nofollow noreferrer">Shadertoy</a> to Unity as Image Effect which is attached to the camera. It works fine on the Editor and Windows standalone build. It does not work on Android devices. <em>It is flashing blue and black images ... | 1 | 2,790 |
Rewrite query string to path params | <p>I have the following configuration of nginx that hosts my image service:</p>
<pre><code> upstream thumbor {
server localhost:8888;
}
server {
listen 80;
server_name my.imageserver.com;
client_max_body_size 10M;
rewrite_log on;
location ~ /images {
... | 1 | 1,242 |
How can I properly hide a list of XSL processed XML elements using javascript | <p>Good morning. I have an XML file which contains lists of warning and errors from a build output. I have successfully been able to write XSL to iterate over the separate lists of warnings and errors to have them display in my browser. What I'd like to do next would be to add a bit of javascript in order to add a l... | 1 | 1,098 |
Importing Quill to React app throws "React is not defined", "Unexpected token import" | <p>I'm trying to get Quill to work on my React app but depending on my webpack config it throws two errors:</p>
<blockquote>
<p>Uncaught SyntaxError: Unexpected token import</p>
</blockquote>
<p>or </p>
<blockquote>
<p>Uncaught ReferenceError: React is not defined</p>
</blockquote>
<p>Please note that I'm not u... | 1 | 1,061 |
Passing a JSON object from clientside JavaScript to NodeJS | <p>I have a webpage which creates a JSON object based on user input. I would like to then somehow allow the user to submit this JSON object to a NodeJS script for processing/insertion into a MySQL database. However, I'm really not sure how to do something like this -- the best I can come up with is some form of a POST,... | 1 | 1,093 |
Function can only be called in the main thread, why? | <p>In this code below I am calling the function displayMyAlertMessage() twice. the first I am calling works perfect, but the second one gives me an error saying that the function may only be called from the main thread. How can I do this in my situation? </p>
<p>I am using this code:</p>
<pre><code>@IBAction func log... | 1 | 1,356 |
Google App Engine - Too many Datastore Read Operations | <p>I have implemented an online leaderboard via Google App Engine for my Android app. But after 2 hours I reached 100% of my quotas in "Datastore Read Operations". Can anybody help me to modify my code to reduce the read operations?<br>
Here is my code: </p>
<pre><code>public class The_Big_Bang_Theory_Quiz_Highscores... | 1 | 1,091 |
Using both phong and textures in glsl | <p>I have got problem with my shaders. I am trying to put textures and phong shading in my game using glsl but I can't get any good effect. </p>
<p>I've been searching google for a long time, and I can't find any info how connect ligh and texture together, so I've decided to wrote and ask here.</p>
<p>This is my game... | 1 | 1,271 |
Spring MVC with Hibernate - OneToMany mapping in form | <p>I have Car and Rental models conntected OneToMany relation:</p>
<pre><code>@Entity
public class Rental {
private Long id;
private Car car;
private User user;
@Id
@GeneratedValue
@Column(name = "RENTAL_ID")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@ManyToOne(cascade... | 1 | 1,147 |
How to handle toggle in Cypress? | <p>*If toggle is enabled - need to fill up a form which shows up only after enable. If toggle is disabled - no need to look for form as it is hidden.</p>
<p>I want to check whether the toggle is initially disabled or not and carry out next steps accordingly. If it is disabled, then 1st - I want to enable it and fill fo... | 1 | 1,492 |
File Upload API working with Postman but not with AngularJS | <p>I am going with file upload issue, in which I am using angular in front-end and Java at backend and uploading image on S3 bucket. I think there is no issue in java code because when I am using this upload URL on postman it is going well, I am Attaching Postman screenshot to showcase how it is working fine</p>
<p><a... | 1 | 1,353 |
django: control json serialization | <p>Is there a way to control json serialization in django? Simple code below will return serialized object in json:</p>
<pre><code>co = Collection.objects.all()
c = serializers.serialize('json',co)
</code></pre>
<p>The json will look similar to this:</p>
<pre><code>[
{
"pk": 1,
"model": "picviewe... | 1 | 1,269 |
cellForRowAtIndexPath returns null but really need similar method | <p>I have a <code>UITableView</code> in my <code>UITableViewController</code> (lol, obviously) but I need to get a cell at a given index inside the <code>- (void)viewWillAppear:(BOOL)animated</code> method.</p>
<p>Now, my cells are static and I create them in the interface builder. If I call </p>
<pre><code>UITableVi... | 1 | 1,950 |
How can we use menu items outside onOptionItemSelected like in onCreate() | <p>I am facing a problem in getting a reference to a menu item outside <code>onOptionsItemSelected()</code> method. I want that part of code to be executed as soon as my <code>Activity</code> is created, so I am trying to use that menu item in <code>onCreate()</code> but it is always returning <code>null</code>. Any he... | 1 | 1,848 |
Directed maximum weighted bipartite matching allowing sharing of start/end vertices | <p>Let G (U u V, E) be a weighted directed bipartite graph (i.e. U and V are the two sets of nodes of the bipartite graph and E contains directed weighted edges from U to V or from V to U). Here is an example:</p>
<p><img src="https://i.stack.imgur.com/YC0P4.png" alt="bipartite directed and weighted graph"></p>
<p>In... | 1 | 1,157 |
Running airflow within a conda environment and with systemd fails to launch | <p>I would like to install airflow via conda and use systemd to control airflow on Ubuntu. I've been able to successfully install airflow into a conda environment with the following steps, but I have not been able to correctly configure systemd to work with airflow.</p>
<p>Details:</p>
<ul>
<li>Ubuntu 18.04</li>
<li... | 1 | 1,311 |
how to show notification with play/pause in exoplayer? | <p>I am developing streaming application, so for that i am using exoplayer. This is the code.It is working everything fine.But I need to show notification along with title and play/pause button. This play/pause button must work like activity play/pause button and this play/pause button must change as per play/pause. </... | 1 | 3,575 |
Bootstrap form-check-inline not working | <p>I am trying to use <a href="https://getbootstrap.com/docs/4.0/components/forms/" rel="nofollow noreferrer">https://getbootstrap.com/docs/4.0/components/forms/</a> form-check-inline without success, it renders the html by putting one checkbox under the other:</p>
<p><a href="https://i.stack.imgur.com/paLTC.png" rel=... | 1 | 2,645 |
how to convert dictionary into csv file | <p>I got some data and I need to convert it into a csv file. I'm not a coder but I think that python can help me with these dict/tuples.</p>
<pre><code>a = {
'page': '1',
'records': 984,
'rows': [{'cell': ['2012000000885',
'A. B. OLIVEIRA - ME',
'10\\/08\\/2012',
... | 1 | 1,087 |
Building a tiny R package with CUDA and Rcpp | <p>I'm working on a <a href="https://github.com/wlandau/rcppcuda" rel="noreferrer">tiny R package</a> that uses CUDA and Rcpp, adapted from the output of <code>Rcpp.package.skeleton()</code>. I will first describe what happens on the master branch for the commit entitled "fixed namespace". The package installs successf... | 1 | 3,656 |
CreateDesktop() with Vista UAC (C Windows) | <p>I'm using CreateDesktop() to create a temporary desktop where an application will run, perform a cleanup action (while remaining out of the way) and terminate. I'm closing that desktop once the application is gone.
Everything is fine when using Windows XP and even Vista. The problem arises when you enable the (annoy... | 1 | 1,163 |
Jasper report missing first row | <p>I'm generating a report using <em>JasperReports</em> and suppose to export it into several formats. But currently im only working with excel reports. </p>
<p>Here is my controller code.</p>
<pre><code> InputStream in = reportTemplate.getTemplate(reportInquery.getTemplateFile());
JasperPrint print = JasperFi... | 1 | 6,577 |
Angular2: How to transform my tree model to fit a different interface? | <p>Suppose that I have an employee class that looks something like this: </p>
<pre><code>export class Employee {
jobTitle: string;
firstName: string;
lastName: string;
boss: Employee;
workers: Employee[];
constructor(jobTitle: string, firstName: string, lastName: string){
this.jobTit... | 1 | 1,956 |
ajax.dataSrc for datatables not working | <p>I am trying to use dataSrc property or manipulation method for table data.
To see how I can manipulate data, I am trying this simple code.</p>
<p>test.php</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstra... | 1 | 2,187 |
Package (BPL) Automatic Naming Suffix | <p>I write a lot of components and libraries for Delphi, most of which require the use of BPL Packaging so that they may be installed into the IDE.</p>
<p>This is simple enough and works well, right up until you want to maintain a single set of Package Project Files (in a single Project Group), but also want to compil... | 1 | 1,035 |
Redis Issue Consider defining a bean of type 'org.springframework.data.redis.core.HashOperations' in your configuration | <p>I am trying to connect to Redis through java, I have following configuration,</p>
<pre><code>@SpringBootApplication
@Configuration
@ComponentScan(basePackages = "com.infy.redisDemo")
public class RedisDemoApplication {
@Bean
public LettuceConnectionFactory getConnectionFactory(){
LettuceConnectionF... | 1 | 1,122 |
Quasar QList pagination with QPagination component and laravel paginate() method | <p>I want to paginate a list made with the QList component</p>
<p>With the laravel paginate() method I receive on the client side the following data necessary for pagination:</p>
<pre><code>current_page:
data:[]
first_page_url:
from:
last_page:
last_page_url:
next_page_url:
path:
per_page:
prev_page_url:
to:
total:
<... | 1 | 5,193 |
Can't get Sqoop 1.99.3 working with Apache Hadoop 2.4.0 on 64 bit Centos 6.5 | <p>I have Apache hadoop working and installed on Centos 6.5 KVM virual server. It is installed at</p>
<pre><code>/home/hduser/yarn/hadoop-2.4.0 and the config files are in /home/hduser/yarn/hadoop-2.4.0/etc/hadoop.
</code></pre>
<p>I was getting complaints from hadoop about the libraries being 32 bit (guess the binar... | 1 | 8,107 |
Cannot read property 'externalModuleIndicator' of undefined while running unit test using karma and webpack 4 | <p>After upgrading my angular project with webpack 4 I am getting below error while running unit test using karma </p>
<blockquote>
<p>[at-loader] Using typescript@2.7.2 from typescript and "tsconfig.json"
from demo-app-app\src\tsconfig.json.</p>
<p>[at-loader] Checking started in a separate process...</p>
... | 1 | 1,985 |
create graph in php and mysql | <p>I have a database like the attached image.<img src="https://i.stack.imgur.com/yLxxN.png" alt="enter image description here"></p>
<p>By that table I need to draw a graph like this<img src="https://i.stack.imgur.com/lG3Gv.png" alt="enter image description here"></p>
<p>How to do that? I have tried with the following... | 1 | 1,421 |
calling function from XSLT Error: Namespace does not contain any functions | <p>i want call the vbscript function:</p>
<pre><code> VBCustomScript
</code></pre>
<p>inside xslt file but i get the following error:</p>
<pre><code> Error (0x80004005): Namespace 'extra-functions' does not contain any functions.
</code></pre>
<p>please any help?</p>
<pre><code><?xml version="1.0" encoding="... | 1 | 7,986 |
I'm getting spam when I load //pagead2.googlesyndication.com/pagead/js/adsbygoogle.js | <p>When I load <code><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script></code>, images on my page get replaced with spam ads of all kinds.</p>
<p>I'm testing bare bones in a guest instance of chrome on my pc.</p>
<p>This is the original code:</p>
<pre><code><html>... | 1 | 1,089 |
After inserting data into one table, I also want that data to auto appear in another table | <p>I have two buttons, one when clicked will go to medication form, another when clicked will go to prescription form. What I want to achieve is, if I entered one record in the medication form, the prescription form will auto generate a prescriptionID and pop up the medicationName based on what medication name that I t... | 1 | 5,229 |
how to use javascript in form runat=server without sending request to the server? | <p>my master page is inside a form runat="server" like this:</p>
<pre><code><body>
<form id="Form1" runat="server">
<asp:ContentPlaceHolder ID="MainContent" runat="server"/>
</form>
</body>
</code></pre>
<p>In one of my pages I added a textarea, a button (html controls, ... | 1 | 2,522 |
Call webpack bundled function/class from console.log | <p>Is it possible to access the exported modules(ES6->ES5 compiled) from web inspector console? They are bundled together using webpack</p>
<p>I am trying to call Session.setSessionInLocalStorage('test key', 'test object');</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre ... | 1 | 1,370 |
flink: scala version conflict? | <p>Am attempting to compile the kafka sample from <a href="https://github.com/dataArtisans/kafka-example" rel="noreferrer">here</a> in IntelliJ. After much fussing with dependencies have run into this issue that I can't seem to get past:</p>
<pre><code>15/10/25 12:36:34 ERROR actor.ActorSystemImpl: Uncaught fatal erro... | 1 | 1,411 |
React / Ant Design - unable to Upload XLSX | <p>I'm learning React and currently using ant design for my upload button but somehow it won't work ( it works normally without the design.</p>
<p>My original code(working version):</p>
<pre><code>export default ({ addItem }) => {
return (
<label className="btn">
<input
type="file"
... | 1 | 1,348 |
Python & ttk Using labelFrames to clean up a frame | <p>I'm trying to build a basic GUI using ttk / Tkinter. </p>
<p>I have a plotted out a basic GUI that has the right basic components, but when I try and prettify it / space it out, I'm reach my limit of getting ttk containers to play nicely... </p>
<p>Examples:</p>
<pre><code>from Tkinter import *
import ttk
class ... | 1 | 2,012 |
Liferay ClassNotFoundException: DLFileEntryImpl | <p>On my 6.1.0 Portal Instance with a 6.1.0 SDK-Portlet that makes use of ServiceBuilder and the DL-Api
this line:</p>
<pre><code>DynamicQuery query = DynamicQueryFactoryUtil.forClass(DLFileEntry.class)
</code></pre>
<p>produces this error:</p>
<pre><code>16:46:46,319 ERROR [DynamicQueryFactoryImpl:83] Unable find m... | 1 | 6,179 |
How do i get a Report from jasperserver? | <p>please help me to fix it, i really have no idea ! please</p>
<p>/*
- To change this template, choose Tools | Templates
- and open the template in the editor.
*/
- package pdfprint;</p>
<pre><code>import com.jaspersoft.ireport.jasperserver.JServer; import
com.jaspersoft.ireport.jasperserver.ws.WSClient; import
... | 1 | 1,172 |
How to do sequence of operations and ensure one operation is complete before next one in Spring Reactor web app? | <p>I have Spring Boot 2 web app in which I need to identify site visitor by cookie and gather page view stats. So I need to intercept every web request. The code I had to write is more complex than call back hell (the very problem Spring reactor was supposed to solve). </p>
<p>Here is the code:</p>
<pre><code>packa... | 1 | 2,992 |
Text coordinates when stripping from PDFBox | <p>i'm trying to extract text with coordinates from a pdf file using PDFBox.</p>
<p>I mixed some methods/info found on internet (stackoverflow too), but the problem i have the coordinates doesnt'seems to be right. When i try to use coordinates for drawing a rectangle on top of tex, for example, the rect is painted els... | 1 | 2,308 |
How to Encrypt/Secure MS Access 2007 database file in C#? | <p>I have a program which let me access/add/delete entries from MS Access 2007 file by using a simple database password.</p>
<p>But my goal is to modify my file so it would be much more secure. I want to encrypt my file, if possible with encryption chosen by user, and make it accessible only if user provide correct us... | 1 | 3,232 |
how to display php search results in bootstrap modal? And Modal is disappearing after displaying results? | <p>i am developing a job portal where users search the jobs, while they searches the results should be shown in bootstrap pop-up modal, my code is working but modal is disappearing after immediately showing results </p>
<p>i tried the code as below </p>
<pre><code> <form action="" method="post">
<div cl... | 1 | 2,099 |
How to dynamically add hub to SignalR and have different scopes | <p>I'm attempting to build a Dashboard with widgets (built as directives). I'd like to at a later stage have the ability to dynamically add widgets, but I'd only like the active widgets (and hubs) to receive data, thus if a widget isn't active i don't want the hub to be registered.</p>
<p>Eg for the duration of the us... | 1 | 1,600 |
Open PrimeFaces Dialog located in another .xhtml file | <p>I have a number of questions that are related to each other so the title of question may not be appropriate. Sorry for this. </p>
<p>I want to have a <code>p:inputText</code> and <code>p:commandButton</code> in a <code>p:dialog</code> such that when the user presses that button or presses <kbd>enter</kbd> key the v... | 1 | 1,674 |
How to setup fast STM32 F4 FSMC to control a display on the STM32F4Discovery board? | <p>I'm connecting an ILI9341 display controller to an STM32F407vg microcontroller (STM32 Discovery board). The display is connected to the STM32 with a 16-bit parallel databus.</p>
<p>To achieve high datarates I use the FSMC of the STM32. The FSMC is configured as a static RAM controller. I don't use chip select or re... | 1 | 3,026 |
Load timeout for modules in Internet Explorer | <p>This problem is appearing only in Internet Explorer 9, works fine with Chrome and Firefox.</p>
<p>Here's my main file which loads all my dependencies :</p>
<pre><code>// Filename: main.js
// Require.js allows us to configure shortcut alias
// There usage will become more apparent futher along in the tutorial.
req... | 1 | 1,501 |
How to show a div after postback on a button click? | <p>Here i have a div in which i am showing it during the mouse hover in the master page and after mouse hover three href links will appear in that div .After clicking that href link it is traversing to another page,postback happens and that div is getting hidden in the master page.I need to show that div after that cli... | 1 | 1,211 |
Opening and ending tag mismatch - Xcode Storyboard error | <p>After a merge conflict I needed to delete some characters which were added in different files, after I've done this I'm getting this error:</p>
<p>Line 621: Opening and ending tag mismatch: textView line 557 and subviews</p>
<p>Line 557:</p>
<pre><code><textView clipsSubviews="YES" multipleTouchEnabled="YES" c... | 1 | 2,158 |
AdMob causing: unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.ClassNotFoundException | <p>Im trying to implement adMob but my app isn't launching and providing the following error:</p>
<pre><code>java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.MobileAdsInitProvider" on pat... | 1 | 2,002 |
Discovering Poetic Form with NLTK and CMU Dict | <p><strong>Edit: This code has been worked on and released as a basic module: <a href="https://github.com/hyperreality/Poetry-Tools" rel="noreferrer">https://github.com/hyperreality/Poetry-Tools</a></strong></p>
<p>I'm a linguist who has recently picked up python and I'm working on a project which hopes to automatical... | 1 | 1,089 |
How to change date format in jQuery? | <p>I just want to change date format on my website. Actually currently I am getting result like this: (Thu Mar 14 2013) and I want to change it like this: (2013-03-14)
Please help</p>
<p>My Code is:
<strong>On HTML</strong></p>
<pre><code><input type="text" id="date_from" name="date_from" >
var picker = new Pi... | 1 | 11,355 |
Callback function "is not defined" | <p>I am building a script that fetches multiple JSON feeds from Tumblr and creates HTML lists based on that data. Pretty straightforward concept.</p>
<p>Here's the output: <a href="http://fotis.co/tumblr/index.html" rel="nofollow">http://fotis.co/tumblr/index.html</a></p>
<p>The script is partly working as I'm stumbl... | 1 | 1,938 |
How to parse a Uuid stored as a char(16)? | <p>I have a Firebird database which stores Uuid values in a char(16) field. In my C# program, I need to retrieve these values in order to use them in subsequent queries. But the values I get back from the database are "garbage". (e.g. <code>¿ñ)êNµmÏc—ÝX</code>) I've tried various methods of reading the data as a byte ... | 1 | 1,281 |
Nested Collapsibles with Materialize | <p>I am working on a <a href="https://www.meteor.com/" rel="nofollow noreferrer">Meteor</a> project at the minute which uses <a href="http://materializecss.com/" rel="nofollow noreferrer">Materialize</a>. I can implement <a href="http://materializecss.com/collapsible.html" rel="nofollow noreferrer">Collapsible</a> elem... | 1 | 1,448 |
create a dictionary of key value pairs in c++ | <pre><code>#include <iostream>
using namespace std;
class item {
int size;
int value[30];
char key[30][20];
int n, k;
int index;
char* a[30], *b[30], search, remove;
public:
void putdatavalue(void) {
for (int i = 0; i < size; i++) {
cout << value[i] &l... | 1 | 1,584 |
Same controllername in differents areas | <p>In a ASP.NET MVC 3 application with areas (see schema below). The "Controllers" directory from the root has been deleted.</p>
<p>When I do this : </p>
<pre><code> routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", act... | 1 | 1,086 |
NoSuchMethodException: <init> [class android.app.Application] | <p>I am trying to switch my app from <code>Loader</code>s to <code>Room</code> and <code>ViewModel</code>s. I have written my own <code>App</code> class: </p>
<pre><code>class App : Application() {
lateinit var database: AppDatabase
private set
override fun onCreate() {
super.onCreate()
... | 1 | 1,715 |
Spark aggregate on multiple columns within partition without shuffle | <p>I'm trying to aggregate a dataframe on multiple columns. I know that everything I need for the aggregation is within the partition- that is, there's no need for a shuffle because all of the data for the aggregation are local to the partition.</p>
<p>Taking an <a href="http://dmtolpeko.com/2015/02/12/multi-column-k... | 1 | 1,079 |
Noticable lag in a simple OpenGL program with mouse input through GLFW | <p>Here's a simple program that draws a triangle following the mouse cursor's position.</p>
<p>What I (and hopefully you) can notice, is that the triangle lags behind the cursor, it's not as tight as when dragging around even a whole window.</p>
<p>So my question is: What am I doing wrong? What leads to this lag?</p>... | 1 | 1,288 |
Consuming WCF Rest 4 From ASP . NET | <p>I am a complete ASP .NET newbie. I've written a set of web services using the WCF 4 Rest Starter Kit. I call everything from within a Flash application but I want to write a quick and dirty admin panel for myself to use which has no need to be written in Flash.</p>
<p>I figure it will be faster to get this up and r... | 1 | 1,166 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.