title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Converting clip-path: polygon() to Edge-compatible SVG | <p>I'm trying to create a CSS illustration that works across browsers, including Edge.</p>
<p>Using <a href="https://stackoverflow.com/questions/50838485/easiest-way-to-convert-polygon-clip-path-to-microsoft-edge-supported-clippath">this answer</a>, I tried to convert the following (working) CSS polygon clip-path to an... | 2 | 1,536 |
How to Handle Redirecting to the Same Route (with Query Params) Using React Router v4 | <p>So I think this question has been asked a couple of times but not sure if it's been asked appropriately. Here's what I'm going through -- I have a route that is the following:</p>
<pre><code><Route exact path={RoutePaths.PROPOSAL_ID} component={ReviewProposalView} />
</code></pre>
<p>The value of <code>Route... | 2 | 1,482 |
retain ripple effect during notifydatachanged in recyclerview | <p>I am started to modify my application to support lollipop. Basically, I have a file browser fragment with recyclerview, When the user opens this fragment he will see all the folders on his root directory, when the user will click on the folder I need to get all the subfolders + files and show them to the user using ... | 2 | 1,857 |
WPF WebBrowser HTML 5 | <p>I dragged a WPF WebBrowser Control into my Blend Project and then assigned the source to be a HTML5 Page. I wanted to utilize the LobsterPot HTML5 PivotViewer(url: LobsterPot HTML5 PivotViewer) into my WPF Application. </p>
<p>The Page Loads and then I get a notification at the top of the browser saying that active... | 2 | 1,650 |
Format DataGridView Cell without changing underlying value? | <p>I have an unbound DataGridView (in VS 2008), of which one column contains a file path. I'd like to format the string using the TextRenderer class on the ColumnWidthChanged event without actually modifying the underlying value. The problem is that the contents of the table are saved when the form is closed and I don'... | 2 | 1,126 |
Using NLTK to perform document classification on website content issues with BeautifulSoup and NaiveBayes | <p>I have a Python 2.7 project where I want to classify websites based on their content. I have a database in which I numerous website URLs and their associated category. There are many categories (= labels), and I wish to classify new sites into the corresponding category based on their content. I've been following th... | 2 | 2,412 |
Codeigniter URL rewrite to remove index.php | <p>First of all, i have tried the suggestion specified in here:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/24357271/codeigniter-removing-index-php-not-working">CodeIgniter removing index.php not working</a></li>
<li><a href="https://stackoverflow.com/questions/20523033/codeignitor-remove-index-php-not-w... | 2 | 1,991 |
Adding an item to an observable array from a popup | <p>Ive been playing around with Knockout and i cant get my head around how to handle this scenerio.</p>
<p>Basically i have a list of employees and you can choose a position for that employee from a select control. Ive created a little popup window using jquery so that the user could add a new position. This would t... | 2 | 2,568 |
SVG gooey effect not working on the latest version of FireFox | <p>I have an issue where my feGuassian blur is not working properly when using any other color than black. </p>
<p>On chrome it works perfectly. I have not tested on safari yet.</p>
<p><a href="https://i.stack.imgur.com/iJFUj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iJFUj.png" alt="enter ima... | 2 | 5,316 |
What is the use of Hibernate ? Its too Slow ? What is Missing for a developer? | <p>I am working on a web application project that require to interact with a database (Oracle 12c in this case):</p>
<p>To understand and test the capabilities of Hibernate well( As I am a first time user of Hibernate): I wrote a small web application that calls a web service. That web service's backend in turn uses h... | 2 | 2,278 |
OpenCV:NetBeans:undefined reference to cvCreateSubdivDelaunay2D | <p>I am using NetBeans 7.0.1 to develop C++ applications using OpenCV 2.4.0 on Ubuntu 11.10. When I try to build the application I get the following link error messages.</p>
<pre><code>undefined reference to `cvCreateSubdivDelaunay2D(CvRect, CvMemStorage*)'
undefined reference to `cvSubdivDelaunay2DInsert(CvSubdiv2D*... | 2 | 1,531 |
Multiple Insert and Update causing DeadLock c# | <p>I have two parts to my application which both does massive amount of insert and update respectively and because or poor managemenent, there's deadlock.</p>
<p>I am using entity framework to do my insert and update.</p>
<p>The following is my code for my TestSpool program. The purpose of this program is to insert x... | 2 | 2,659 |
Moving from Provider to GetX and cannot Get.find the correct Controller | <p>I'm trying to move from <code>Provider</code> to <code>GetX</code> and am stuck on how <code>GetX.find()</code> works.</p>
<p>We have a <code>restaurant</code> app with a few <code>table</code>s. Below is the narrowed down view of my old <code>Provider</code> code showing just the <code>staff</code> table and <code>... | 2 | 2,131 |
Android Geocoding - not running in other device | <p>I use <a href="http://wptrafficanalyzer.in/blog/android-geocoding-showing-user-input-location-on-google-map-android-api-v2/" rel="nofollow">this</a> tutorial to search locations. But on my device this app does not work, my device is with android 4.1.2 </p>
<p>With my emulator this app works perfect. And I tested th... | 2 | 3,233 |
Warning: require_once(/var/www/html/wp-config.php): failed to open stream: No such file or directory | <p>I have been working on the following program from the last 6 hours using previous post on this issue without success. I'm currently working on a WP site on top of a Docker boiler plate. When I run <code>docker-compose up</code> and navigate to <code>localhost:8080</code> I get the following error:</p>
<p><a href="h... | 2 | 1,284 |
How to add data from a database to a recycler view using a cursor adapter? | <p>So I have tried implementing my database with a recycler view and cursoradapter, but I am getting errors. I can not understand them well so I dont know if I did not implement the adapter right or if it is something else. Here are the java files:</p>
<p>MainActivity.java:</p>
<pre><code>public class MainActivity ex... | 2 | 2,527 |
How to add jQuery validation to cloned sections? | <p>In the original form section, the validation works fine, but the cloned form section doesn't have the validation.</p>
<p>When the original section has an error message, adding will give a new cloned form section but with a duplicated error message.</p>
<p>Making a cloned form section must not show up any error mes... | 2 | 1,570 |
How to stop dragend's default behavior in drag and drop? | <p>I hard to sum this bug in words. So I made the <a href="https://www.youtube.com/watch?v=Uz_ukKdg1O0&feature=youtu.be" rel="noreferrer">video</a> for the bug.
Basically when dragEnd is called the element animates as if going to original place. How to stop the default behavior? I made a <a href="https://jsfiddle.n... | 2 | 4,479 |
ASP.NET 3.1 Web API, Entity Framework one to many relationship either not made or ending in cycle | <p>So I am trying to write a server with a database which would host a site similar to reddit: with users, groups, posts and comments.</p>
<p>As this is my first time developing backend, I tried googling and found ASP.NET Core 3.1 Web API with Entity Framework to be "good". (I use SQL Server as the database server if ... | 2 | 1,787 |
Frame rate (cocos2d box2d) degradation in game scene | <p>A game scene with multiple layer ant numerous sprite, working almost nicely(except of some problems). But if we put the game on hold, for a long time of 5-10 minutes (approx), it's frame rate goes down and game start giving jerky effect when been start playing again.</p>
<p>the default frame rate is been used initi... | 2 | 1,417 |
Problems with variable_scope in ELMo Embedding layer with Keras | <p>I'm trying to use a custom ElmoEmbeddingLayer for my model in Keras with tensorflow-gpu==2.0.0-rc0.</p>
<p><strong>This is the class:</strong></p>
<pre><code>class ElmoEmbeddingLayer(Layer):
def __init__(self, trainable=True, output_mode="default", **kwargs):
assert output_mode in ["default", "word_emb... | 2 | 1,480 |
Meaning of "trait" in MCMCglmm | <p>Like in <a href="https://stats.stackexchange.com/questions/156683/when-and-why-do-i-have-to-use-trait-for-multinomial-multilevel-models-with-mcm">this post</a> I'm struggling with the notation of <code>MCMCglmm</code>, especially what is meant by <code>trait</code>. My code ist the following</p>
<pre><code>library(... | 2 | 1,030 |
Button to open a modal with jtable data read from a webservice | <p>i have an html page that uses jtable to fetch data from a webservice, lets say that this page is on the url ../hr/test.htm so my page looks like this</p>
<pre><code> <!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; ... | 2 | 1,134 |
Unable to install docker on Amazon linux | <p>I'm trying to install docker on Amazon Linux Ec2 instance, I get the following error.</p>
<p>Installing docker</p>
<pre><code>Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-lamp-mariadb10.2-php7.2 amzn2extra-php7.2 docker-ce-stable
4 met... | 2 | 1,573 |
NullPointerException on a new activity | <p>This is the class in which I implemented <code>onItemClickListener</code> and am starting the new activity. According to the logcat, the <code>NullPointerException</code> is happening while I am starting <code>GetAppoint</code>.</p>
<pre><code> public class Sdoctors extends Fragment implements OnItemSelectedListene... | 2 | 4,892 |
Django REST framework use AJAX url to point api detail url | <p>I'm working on database program using Django. The program appends the database from user's forms/imported files, allows listing of data per category, and inline editing per category.</p>
<p>I did a lot of research (since i'm new in django), and so far I've been successful in generating forms, and and customized tab... | 2 | 4,575 |
Injecting a Transactional Grails Service into a Quartz Plugin Job gives BeanCreationExecption | <p>Grails version: 2.3.5
Quartz plugin version: 1.0.2</p>
<p>I am creating a internal Grails Plugin. This plugin has a dependency on the Grails Quartz Plugin.</p>
<p>I have a Grails Service: OrchestratorJobExecutorService</p>
<pre><code>public class OrchestratorJobExecutorService {
def grailsApplication
def ... | 2 | 2,240 |
Pass time values to Highcharts Column chart | <p>I want a chart, where the Y-axis contains time values like '%H:%M:%S'</p>
<p>I have used <strong>Highcharts</strong> plugin for this</p>
<p>X-axis: ["dep1","dep2","dep3"]</p>
<p>Y-axis: ["00:15:30","00:55:30","00:45:30"]</p>
<p>My code is as follows:</p>
<pre><code>$('#durationChart').highcharts({
cha... | 2 | 1,286 |
How to freeze particular row / column in QTableWidget python? | <p>I have a QTableWidget generated by QTDesigner in which I want to,</p>
<ol>
<li>freeze particular row (row 0,1,2)</li>
<li>freeze particular column (column 0)</li>
</ol>
<p>How can I get this going?</p>
<p>EDIT: I think answer is available to implement in C++ but I am not able to make it work for python. <a href="... | 2 | 1,405 |
What's wrong with my Gemfile? | <p>I tried to bundle install, but here is what I got:</p>
<pre><code>/home/mywebsite/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:187:in `initialize': Malformed version number string = 1.0.3 (ArgumentError)
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362@global/gems/bundler-1.2.3/lib/bundl... | 2 | 2,936 |
Set Wallpaper from Image Url | <p>It's been days now, trying to figure how this function works...
I have searched for it in stack overflow too ofcourse,
<a href="https://stackoverflow.com/questions/20174429/downloading-and-setting-a-wallpaper">Downloading and setting a wallpaper</a>
tried that, but got doInBackground error.
and many more "seems leg... | 2 | 2,326 |
Google cast receiver throwing "Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource' | <p>We have successfully launched with chromecast support on our app and it was perfectly working fine, from the past few days it suddenly stopped working(the receiver was alway sending the buffering status to sender and it was continuously buffering), i have used the chrome debugging and able to find this exception in ... | 2 | 1,289 |
Error when building Apache Cordova project in Visual Studio - Could not find module \node_modules\vs-tac\app.js (again!) | <p>I fixed this or a very similar issue with building in debug (and I assume in a release version) my Visual Studio 2015 Community TACO Apache Cordova project (the one I'm working on or a blank new project from the template - which is what I've provided output from here, below, the blank one) just about 24 hours ago, ... | 2 | 2,764 |
Spark streaming Kafka messages not consumed | <p>I want to receive messages from a topic in Kafka (broker v <strong>0.10.2.1</strong>) using Spark (1.6.2) Streaming.</p>
<p>I'm using the <strong><code>Receiver</code></strong> approach. The code is as following code:</p>
<pre><code>public static void main(String[] args) throws Exception
{
SparkConf sparkConf ... | 2 | 1,742 |
Program type already present com google protobuf DescriptorProtos | <p>After a couple of hours I decided to share my problem.</p>
<p>// Root build.gradle</p>
<pre><code>buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.1.0'
classpath "io.realm:realm... | 2 | 2,530 |
Want to start animation on viewpager page but pages are preloading | <p>In my projects I have several screen(Fragments) and I want to give animation to the fragments elements(views). I have used view pager and viewpager adapter and fragments. The main problems I am facing- </p>
<ol>
<li>On starting of is loading 2 pages like on start it is loading page1 and page 2. If swiping to second... | 2 | 2,627 |
R coxph() with interaction term, Warning: X matrix deemed to be singular | <p>Please be patient with me. I'm new to this site.</p>
<p>I am modeling turtle nest survival using the coxph() function and have run into a confusing problem with an interaction term between species and nest cages. I have nests from 3 species of turtles (7, 10, and 111 nests per species). </p>
<p>There are nest cage... | 2 | 1,540 |
CSS make sidebar fixed when scrolling BUT scrollable when hover on top | <p>I found many explanations online about how to make a <strong>sidebar fixed</strong>, but I'm having an issue when the content of the sidebar is longer than the screen can display.</p>
<p>Is there a way to make the sidebar <strong>"fixed" yet "scrollable"</strong> if you hover on top? </p>
<p>EDIT: I'm adding the j... | 2 | 1,278 |
getQueryString on ExternalContext's Request object returns null on WebSphere | <p>I have a problem using JSF 1.1 (MyFaces 1.1.8) on WebSphere. When deploying my application on Tomcat 5.5, this behavior does not apply and everything works fine.</p>
<p>When I try to read parameters from an URL posted back from Ogone (payment gateway), joining my JSF-session again (session still exists), the QueryS... | 2 | 3,897 |
How to read data from CSV file in Spring Boot or Java? | <p>I am trying to read data from CSV in my application. I have exported table data as CSV from MySql database. So that generated csv file, trying to read. MySql has generated CSV file in different form. I don't know why. So whenever I am trying to read, always giving me an exception of ArrayIndexOutOfBound.</p>
<p>Belo... | 2 | 5,127 |
How to get an Istio VirtualService to vary routes by header along with uri | <p>I'm still experimenting with Istio in a dev cluster, along with a couple of other people. We have a sample virtualservice, deployment, and destinationrule, and requests to the specified uri are going to the pod associated with the deployment. This is working fine.</p>
<p>I am attempting a variation of this that g... | 2 | 2,430 |
How can a java class locate and load a static pdf file in WebLogic 12c? | <p>I need to load a static PDF document, from a java class, running in my J2EE web app on WebLogic 12c; however although my code works in Tomcat, when trying to run it in WebLogic 12c (WebLogic Server Version: 12.2.1.2.0), I get a server error that the PDF file cannot be found (java.io.FileNotFoundException).</p>
<p>I... | 2 | 1,325 |
How do I make a DIV tag stretch to the size of it's children? | <p>I have a div tag with content in it, and I want it to expand so my footer always follows it. As it is, My content tag isn't expanding, and my footer is overlapping my content. How can I make the div expand and push down my footer?</p>
<p>Here is my HTML:</p>
<pre><code> <!DOCTYPE html>
<html xmlns=... | 2 | 2,202 |
Incorrect datetime value Hibernate | <p>I am new to hibernate and still learning, I'm getting the stack trace below for the following code: </p>
<pre><code>package com.simpleprogrammer;
import org.hibernate.Session;
import java.util.Date;
public class Program {
public static void main(String[] args) {
System.out.println(org.hibernate.Version.getVer... | 2 | 3,385 |
entry point (_main) undefined. for architecture x86_6 error | <p>I am very new to Xcode and have been using a research as I need it method to learn. I am making an app for a final project in my AP Comp Sci class. I am wondering if anyone has an idea of where my error might be for this error message:</p>
<pre>
Ld /Users/AshleyHamilton/Library/Developer/Xcode/DerivedData/BTOS-fwvv... | 2 | 1,109 |
Performing custom arithmetic operation on Kendo UI Grid Columns | <p>This may be very simple for regular users but as a newbie i am kind of struggling to perform<br>
simple arithemetic operation whereby i want to multiply one of the column values i.e. (DealValue) by 0.05. I looked at kendo docs but surprisingly i couldn't find anything relevant. Anyone got any solution for this? if... | 2 | 3,354 |
how to avoid duplicates of attributes in xml c#? | <p>A part of my XML looks like this:</p>
<pre><code><IOConfig>
<Packet Name="PacketOut" RemoteAddress="10.0.2.223" RemotePort="2020" NetworkInterface="ETH0">
<Signal Type="float" Name="x_out" Unit="m/s" Routing="" UnityObject="CraneBoom" UnityName="Out" NetworkConvert="1"></Signal>
&l... | 2 | 2,405 |
How to install ionic - I get "npm ERR! path" and other errors | <p>please help :) </p>
<p>How do I install IONIC on Windows. For some random reason it doesn't install.</p>
<p>I have installed Node, NPM and Cordova.</p>
<p>But I get errors when I try to install IONIC.</p>
<p>Here is my log:</p>
<p>So, the problem is that I can't install ionic.</p>
<p><strong>C:\Windows\system3... | 2 | 1,329 |
How to set default dropdown value and selection based by localStorage data | <p>I have this form:</p>
<pre><code><form id="suspendedProperties">
<p><h4>Select Station:
<select name="stationDropdown" id="stationDropdown" onChange="storeLocalContent('stationDropdown',this.value)" >
<option value="50028000">Tanama River</option>
<opti... | 2 | 2,643 |
Bootstrap 3 multiple Modal Issues | <p>I have a page that i would like to open in multiple modals. I was able to have the modal appear for id="myModal" which was the example im trying to replicate. I created the second one with id="redcarpet" and i cannot get the same window to popup. Im hoping someone can see an error in my code and can help me fix it... | 2 | 1,994 |
How to connect asterisk to skype using siptosis? | <p>I've been trying to do this for weeks and still have not yet figured out how to connect to skype. The best progress I've found out was from this tutorial </p>
<p><a href="http://translate.google.com/translate?hl=en&sl=it&u=http://www.voipandhack.it/archives/linux/asterisk-failover-e-registrazioni-sip&ei... | 2 | 1,170 |
Deb package from kernel module | <p>I slightly modified the cp210x.c, compiled it, and copied the cp210x.ko to the right place, everything went fine. Now I would like to create a .deb package from it, but I'm stucked. I followed the tutorial, I found here: <a href="http://www.webupd8.org/2010/01/how-to-create-deb-package-ubuntu-debian.html" rel="nofol... | 2 | 1,096 |
Django Channel Error: No handler for message type websocket.receive | <h1>thread.html</h1>
<pre><code><script>
//console.log(window.location)
var loc = window.location
var formData = $("#form")
var msgInput = $("#message_id")
var wsStart = 'ws://'
if (loc.protocol == 'https:') {
wsStart = 'wss://'
}
var endpoint = wsStart + loc.host + loc.pathname // ... | 2 | 1,598 |
GridView paging in UpdatePanel | <p>I have an UpdatePanel and a GridView within it. I have a problem with paging: when I press Next button, grdUsers_PageIndexChanging() is not called, so the page stays 1, and if previously I changed selection in ddlPageSize, now it goes back to the initial selection.
Also, if I am on the first page, the Previous butto... | 2 | 2,259 |
Pushing arrays in ionic 4 | <p>I have a Ionic App and I am trying to get latitude and longitude from data api as Json format, for a flight route. The data contains arrays . I want to push arrays into Google maps <code>polylin</code>e to get flight route on map but I get an error when I run the app. </p>
<p>My full code: </p>
<pre class="lang-js... | 2 | 1,278 |
The fetched object at index X has an out of order section name 'X. Objects must be sorted by section name' | <p>I know this has been covered in various questions, but I can't figure this one out.</p>
<p>As far as I can tell my setup is correct. My first sort descriptor matches the <code>sectionNameKeyPath</code> exactly.</p>
<p>My customers get this crash very rarely, perhaps because it isn't on a screen that is typically o... | 2 | 1,099 |
Choose correct answer from multiple answers using PHP MySQL? | <p>I have this code for examining.</p>
<ul>
<li>I need to choose the correct answer and give grade for it.</li>
<li>If the answer was wrong I need to tell the user that he had wrong answer. After that I need to send the grade to another table in my database.</li>
</ul>
<p>Is there any way that you can hide your true ... | 2 | 1,181 |
Execute start-dfs.sh fail to start hdfs daemons | <p>I am very confused about Hadoop configuration about core-site.xml and hdfs-site.xml. I feel that start-dfs.sh script not actually use the setting. I use hdfs user to format the Namenode successfully but execute start-dfs.sh can not start hdfs daemons. Can anyone help me! here is the error message:</p>
<pre><code>[h... | 2 | 2,758 |
PIL's Image.save('image.pdf') creates excessivly large PDF | <p>I have an low-resolution black & white image <code>screenBWsmall.png</code>:</p>
<p><a href="https://i.stack.imgur.com/QUvio.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QUvio.png" alt="enter image description here" /></a></p>
<p>I use the Python Imaging Library to convert it to PDF:</p>
<p... | 2 | 2,608 |
SonarQube Process Start Issue | <p>I am facing an issue while bringing up SonarQube 6.7.1 on Linux server as follows:</p>
<blockquote>
<p>[tele521
Dcip2):/dvp/lib/sft/cip2/install/sonarqube-6.7.1/sonarqube-6.7.1/logs]
uname -a Linux tele521 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26
06:52:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux"}</p>
</b... | 2 | 3,887 |
postgresql: pg_restore error with "DETAIL: System catalog modifications are currently disallowed." | <p>I am trying to transfer my dev database on laptop to a workstation. Its giving me all sorts of errors, I am not sure how to correctly restore this db dump. without <code>-1</code> it does finish, but with a lot of objects missing. </p>
<p>The database name on target machine is different from the db I dumped from. B... | 2 | 1,276 |
Rails new command giving errors | <p>I've been racking my brains trying to solve these issues. Every time I try to create a new Rails app using the <code>rails new</code> command, I get errors. The corresponding files are created, but I really want to get rid of these errors. I'm using MacOS Monterey, and before updating it everything went fine...</p>
... | 2 | 3,062 |
Python with postgres using named variables and bulk inserts | <p>I need some help understanding how Python and postgres handle transactions and bulk inserts specifically when inserting several data sets in a single transaction.
Environment:</p>
<ul>
<li>Windows 7 64bit</li>
<li>Python 3.2</li>
<li>Postgresql 9.1</li>
<li>psycopg2</li>
</ul>
<p>Here is my scenario:
I am convert... | 2 | 1,416 |
Blazor Components: Data disappears and loads agains after 4 seconds | <p>This is a menu component which is placed in MainLayout. H5 tags show up and disappear in a blink of an eye and then after 4 secs. It loads again. Anyone meet the same problem?</p>
<pre><code><ul class="nav-title">
<li class="brands">
<div class="menu-dropdown sb-2">
@foreach ... | 2 | 1,056 |
how to keep a set state after redirecting to outside website, then redirecting back to react app | <p>I'm new to react and am building an app which can connect to one of two APIs. These API's each use the "authorization code" flow, which redirects the user to an identity server, the user logs into the identity server and allows my react app to access their data stored in a database, and the user is then redirected ... | 2 | 1,681 |
Why is my QGraphicsItem not selectable? | <p>I copied some code snippets and made my own version of it. The initial snippet (which I don't have anymore) allowed to move and also select a QgraphicsItem. My modified version allows movement, but not selecting. What am I doing wrong?</p>
<pre><code>#!d:/python27/python -u
import sys
from PyQt4 import QtGui, QtCo... | 2 | 1,045 |
Modernizr.prefixed is not a function | <p>I'm trying to have webpack load Modernizr for me to use in my first run at a react app. I need to have webpack load modernizr on<code>componentDidMount</code> and be able to run transistions for the overlay menu to work. I'm not sure that I've even got it to load correctly as I can't find it in the output via inspec... | 2 | 2,950 |
Why do I get an IOException: CRC Mismatch on Android 2.3 devices and not 2.2 while parsing json from a URL? | <p>What I'm trying to do is get some json results back from a URL using a Bufferedreader which uses a inputstreamreader. I read each line and for each JSONObject i get properties and do awesome things with them later.</p>
<p>Anyway, on Android 2.2 the code works fine but when i test on a 2.3 device (emulated, stock, o... | 2 | 1,616 |
Opengl ES 1.1/Android -- The texture-mapping-to-a-square debacle of 2011 | <p>I am trying to map a texture onto a square where the texture stretches to fit the square. Currently the texture maps, but it doesn't map to the correct location and OGL performs some skewing or such that is unbeknownst to me. The image is 64x64 and the squares I've tried are from -2 to 2 (hor and ver) and -1 to 1. H... | 2 | 1,489 |
Inferred type does not conform to equality constraint error for unrelated variables | <p>I have the following piece of code</p>
<pre><code>public class TeeingCollector {
public static void main(String[] args) {
// var strs = List.of("abc");
var dividedStrings = Stream.of("foo", "hello", "bar", "world")
.collect(Collectors.teeing(
Collector... | 2 | 1,325 |
EF Core Migration Failure: Error Number:4902,State:1,Class:16 | <p>I recently rolled back an EF Core migration, which deleted an existing database table, called the "Tag" table, with a Foreign Key to a "Subject" table.</p>
<p>The "Subject" table has a one to many relationship with a "Tag" table.</p>
<p>One Subject has many Tags.</p>
<p>When attempting to "update-database" to re-... | 2 | 3,321 |
TinyMCE and Laravel 5.3 TokenMismatchException | <p>I'm trying to implement TinyMCE image uploads, using Laravel 5.3 on the server side:</p>
<p>here is my JS for TinyMCE, which is currently in a blade template:</p>
<pre><code><script src="{{ URL::to("/tinymce/tinymce.min.js") }}"></script>
<script>
tinymce.init({
selector: 'textarea',
... | 2 | 1,054 |
How to detect mouseover on touch mobile devices in the below code? | <p>I have a magnify glass on my page. when you perform mouseover over an image it will show you the magnifying glass with zoomed image part in it and you can also move that magnifying glass over an image. The only problem is this code doesn't work with mobile devices as they don't use mouseover. </p>
<p><div class="s... | 2 | 3,477 |
Magento Event Observer to group product collection by category | <p>I'm creating an events observer module which will group upsell products by category,</p>
<p>below is my module's model/observer.php file,</p>
<pre><code>public function updateUpsells($observer)
{
$iCurrentCategory = Mage::registry('current_category')->getId();
$event = $observer->getEvent... | 2 | 1,273 |
Serial port : converting data | <p>i have only recently started to code in c#. I took on the challenge to develop a GPS program at work.
We have the data that is supplied by a serial port. The representation on screen is allready coded and ready to use.
I just need to get the data from the serial port and put it in a database.
The information i ha... | 2 | 2,212 |
Android Map Fragment inside MainActivity doesn't call onMapReady | <p>I made a map FragmentActivity and I want to display it in MainActivity so I can have other elements in the activity. </p>
<p>When I run the app the map starts, but it doesn't fire the onMapReady, hence it's just a basic map in which I cannot move put markers or move the camera programmatically.</p>
<p>The code is ... | 2 | 1,519 |
Python stomp.py on_heartbeat_timeout handling | <p>I'm working on a stomp consumer's handling of termination events (on_heartbeat_timeout and on_disconnected). My on_heartbeat_timeout looks like:</p>
<pre><code>def on_heartbeat_timeout(self):
logger.debug("Heartbeat timed out - attempting a reconnect")
for n in range(1, 31):
try:
logger... | 2 | 1,230 |
TYPO3: ViewHelper cannot be found | <p>I am currently facing a strange behaviour with <em>TYPO3 8.7</em>. To be more precise, what I do doesn't work on my machine, but it works on other machines and in our QA environment.</p>
<p>I am building an extension where I need a simple <em>ViewHelper</em>. Unfortunately, every time I try to use my <em>ViewHelper... | 2 | 2,866 |
Entity Framework - query execution performance issue | <p>I'm working in a project ASP.NET MVC3 with Entity Framework on SQL Server with performance issues.</p>
<p>Every time I load data from a view/table using EF and Linq. I can see by SQL Server Profiler that all the table/view content is retrieved because the where condition doesen't appear in profiler. Only later is f... | 2 | 1,421 |
const arguments in std::remove_if | <p>I'm going to remove elements from a <strong>list of pairs</strong>. When I'm using a pair like </p>
<p><code>std::pair<const int, bool></code> </p>
<p>I get the following compilation error: </p>
<blockquote>
<p>In file included from /usr/local/include/c++/6.1.0/utility:70:0,</p>
<p>from /usr/local/in... | 2 | 1,124 |
Preparing SOAP request with WS-Security, RSA Encryption in node.js | <p>I am trying to create an http client from wsdl and send an encrypted request.
However, I have tried most of encryption-Security packages in npm(soap, soap-x509-http, xml-crypto etc.) to achieve my goal but I couldn't send a correct request.</p>
<p>You can see the requirements and a sample request below.</p>
<p>Tha... | 2 | 3,291 |
WPF DependencyProperty not updating in WPF UserControl (ElementHost) | <p>I build up a Office 2010 Word Add In, added a Windows Forms Element to it and there in an ElementHost object containing my WPF. </p>
<p>That's the problem:
I got the problem, that common properties (DP's) defined in the Xaml code and set in the ViewModel implementation (see code below) are not updated, even if I ca... | 2 | 1,474 |
Android image from gallery wrong orientation | <p>I am using an intent to load an image from the Android gallery. On a few of the devices I have tried it works fine but it seems on some devices the images loads in the wrong orientation. It's usually displayed in landscape instead of portrait. </p>
<p>I did some searching and found a few suggestions regarding EXIF ... | 2 | 1,074 |
How to access related object id in DeleteView | <p>I have a DeleteView. In which i want to access related object id. When user make POST request.</p>
<p>View:</p>
<pre><code>class DeletePacketView(LoginRequiredMixin, DeleteView):
model = Packet
template_name = DELETE_PACKET_TEMPLATE
def get_success_url(self):
# Return to customer home
... | 2 | 1,760 |
Compiling PHP + Libpuzzle to Windows | <p>I got the libpuzzle source here: <a href="http://www.pureftpd.org/project/libpuzzle/download" rel="nofollow">http://www.pureftpd.org/project/libpuzzle/download</a>.</p>
<p>I read I need MinGW to compile any C programs on windows, so I got that alot with C, C++ and mins options. Using mins I was followed: <a href="h... | 2 | 1,702 |
Spring+Tomcat error message | <p>I have requested some help about a web application in another message. I went forward trying to fix the errors that occured. Now the following is the new error message and the new state of the configuration files. Please, may you give me some hints to fix this error? Thank you.</p>
<p>Below is a picture repsenting ... | 2 | 4,439 |
HTML5 database issue while saving or selecting | <p>Spent hours but couldn't find what is the problem with the code. </p>
<p>The code simply creates a table if not exits and adds the text that typed in a textbox. On every load it loads these and writes to a list.</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>
<script src="http://aja... | 2 | 2,175 |
Calling a method after set amount of time and/or aborting thread issues | <p>So I've got an application that employs a filesystemWatcher and triggers an event just fine. The FSW will trigger a bunch of times pretty close together. I want to create a function that triggers say an hour after the last time the FSW was triggered. </p>
<p>I first tried using a backgroundworker: (All code is shor... | 2 | 1,466 |
Download file in chunks (Windows Phone) | <p>In my application I can download some media files from web. Normally I used <em>WebClient.OpenReadCompleted</em> method to download, decrypt and save the file to IsolatedStorage. It worked well and looked like that:</p>
<pre><code> private void downloadedSong_OpenReadCompleted(object sender, OpenReadCompletedEventA... | 2 | 2,486 |
Jekyll Kramdown T.O.C. not building | <p>Here's the final output of what I'd like to have:</p>
<pre><code><article itemscope itemtype="http://schema.org/BlogPosting">
<header>
<h1>Jekyll Table of Contents with Kramdown
</h1>
</header>
<nav aria-label="Table of Contents">
<ul>
... | 2 | 1,172 |
Symbols for ngen-ed assemblies are not loaded | <p>I am trying to decode the following call stack line from procmon:</p>
<pre><code>29 System.Management.Automation.ni.dll System.Management.Automation.ni.dll + 0x897a0a 0x7fee2ae7a0a C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Manaa57fc8cc#\a86698074f28597f1fc5ceabfed6fed6\System.Management.Automation.n... | 2 | 3,338 |
Retrive the Url from an Html Img Tag | <p><strong>BackGround Info</strong></p>
<p>Currently working on a C# web api that will be returning selected Img url's as base64. I currently have the functionality that would preform the base64 conversion however, I am getting a large amount of text which also include Img Url's which I will need to crop out of the s... | 2 | 1,379 |
plot a route on google maps, android | <p>I want to draw a route on google map with the change in my position using GPS. As my location changes(when new geopoints are created), the dot moves on the google map but i'm unable to draw the line on the map. </p>
<p>Please help in plotting the route on google maps. Below is my code</p>
<p>`</p>
<pre><code>Loca... | 2 | 1,160 |
How to connect to Telegram using Telethon? | <p>maybe this is a recurrent topic however I looked before and found the list below that did not solved my problem:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/58590974/singing-in-telegramclient-telethon">Singing in TelegramClient telethon</a></li>
<li><a href="https://stackoverflow.com/questions/58790772... | 2 | 1,967 |
"An existing connection was forcibly closed by the remote host" Exception in WPF Application | <p>I am trying to create network application in C# by establishing communication
by creating TCP server and client application.</p>
<p>But I am keep getting the Exception:</p>
<p>"An existing connection was forcibly closed by the remote host"
on the line:
int bytesReceived = clientsocket.Receive(dataRecieved);</p>
... | 2 | 1,726 |
ValueError: could not broadcast input array from shape (16,18,3) into shape (16) | <p>I was trying to instance segment my RGB images using <a href="https://pixellib.readthedocs.io/en/latest/Image_instance.html" rel="nofollow noreferrer">pixellib</a> library. However, I encountered the problem from segmentImage function. From stacktrace, I found the issue within init.py, and I have no idea why it need... | 2 | 1,166 |
RGB32 in YUV420p | <p>Im try conver rgb32 image to yuv420p for record video.</p>
<p>I have image</p>
<pre><code>QImage image = QGuiApplication::primaryScreen()->grabWindow(0, rect_x, rect_y, rect_width, rect_height).toImage().convertToFormat(QImage::Format_RGB32);
AVFrame *frame;
</code></pre>
<p>and convert</p>
<pre><code>for (y ... | 2 | 1,597 |
conditionally loading external javascript libraries in my plugin | <p>I have written a plugin that depends on external libraries that I want to include conditionally, that is, the user can choose to not have them be included automatically in case the user's web site already has those libraries. Here is some pseudocode to illustrate the issue</p>
<pre><code><script type="text/javas... | 2 | 1,423 |
Postgres: How to assign to custom type from function? | <p>I want to retrieve a custom type in a function and use it as a parameter to another function to duplicate the record. In the code below I show that both retrieving a custom type and using it as a parameter to a function succeeds: see getWholeWeatherData() and addWholeWeatherData() respectively.</p>
<p>For the quest... | 2 | 1,905 |
Linking multiple values in a cell to checkboxes in userform | <p>I have the following search code:</p>
<pre><code>Private Sub Search_Click()
Dim Name As String
Dim f As Range
Dim r As Long
Dim ws As Worksheet
Dim s As Integer
Dim FirstAddress As String
Name = surname.Value
With ws
Set f = Range("A:A").Find(what:=Name, LookIn:=xlValues)
If Not f Is Nothing Then
With Me
... | 2 | 1,282 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.