title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Default SplashScreen showing before Extended SplashScreen
<p>Im trying to add a custom splashscreen on my windows 8 store app I managed to get it to work, but the default SplashScreen still appears before my Custom one.</p> <p>This is my SplashScreen XAML:</p> <pre><code>&lt;Page x:Class="CartuxaTablet.ExtendedSplash" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/pres...
2
2,014
Draw graphs - show only single points
<p>(<em>C # Application for WPF</em>)</p> <p>I have a problem and I have to "draw" a coordinate system and enter only the coordinates (without lines) as seen in the picture.</p> <p><a href="https://i.stack.imgur.com/zcvB7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zcvB7.png" alt="Here you can ...
2
2,545
In Node.js, how can I return a Promise from vm2?
<p>I have some asynchronous JavaScript code, which I'd like to run using vm2 / NodeVM.</p> <p>The code tests two functions: a user-submitted function <code>evenAndOdd</code> and a pre-defined function <code>solution</code> using Node's built-in <code>assert</code> library.</p> <p>My question is, how can I get the my ...
2
1,031
Pop up window self close function; close the site as well
<p>I have an Ajax call back function which call to a PHP function check the file modified time. I uses timer to execute it every 50 seconds.</p> <pre><code> &lt;script type="text/javascript"&gt; setInterval("_checkPopUpUpdate()", 50000); //50 seconds &lt;/script&gt; function _checkPopUpUpdate() { ...
2
1,902
JAX-RS Application in JBoss EAP 6.4 - JBWEB000260
<p>I'm converting an older web application from Tomcat to JBoss EAP 6.4. Its REST-services had been using Jersey which I'm removing because JBoss EAP 6.4 includes RESTeasy and the resources are using jax-rs annotations only. </p> <p>For each service I've added an application extends <code>java.ws.rs.core.Application</...
2
1,445
How to Check for "enabled_notification_listeners" Programmatically?
<p>I need to check that either my application's service is Enabled or Not in <strong>&quot;Notification Access&quot;</strong>.</p> <p>I am using this code to check this. The code is running fine on <strong>Nougat</strong>, but it crashes on <strong>Marshmallow</strong>. How can I do that on <strong>Marshmallow</strong>...
2
1,307
Java - JSON - Return array of Objects within Object
<p>Hey fellow overflow users, I am having some issues wrapping my head fully around JSON calls in java.</p> <p>I am using the JSON LIB located here:</p> <p><a href="http://www.java2s.com/Code/JarDownload/java-json/java-json.jar.zip" rel="nofollow noreferrer">http://www.java2s.com/Code/JarDownload/java-json/java-json....
2
1,957
Passing data from one tab to another using ActionBar.TabListener
<p>I have <code>mainactivity</code> which contains two tabs and has the following code:</p> <pre><code>public class MainActivity extends Activity { private class MyTabListener implements ActionBar.TabListener { private Fragment mFragment; private final Activity mActivity; private final ...
2
1,101
Camel Load balancing example using Mina with Java DSL
<p>So, recently I started learning Camel. As part of the process I decided to go through all the examples (listed <a href="http://camel.apache.org/examples.html" rel="nofollow">HERE</a> and available when you <a href="http://camel.apache.org/download.html" rel="nofollow">DOWNLOAD</a> the package with all the examples a...
2
1,079
JQMIGRATE: 'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'
<pre><code>!function(e,t,n){function r(n){var r=t.console;o[n]||(o[n]=!0,e.migrateWarnings.push(n),r&amp;&amp;r.warn&amp;&amp;!e.migrateMute&amp;&amp;(r.warn("JQMIGRATE: "+n),e.migrateTrace&amp;&amp;r.trace&amp;&amp;r.trace()))}function a(t,n,a,o){if(Object.defineProperty)try{return void Object.defineProperty(t,n,{conf...
2
3,932
Annual return from monthly return
<p>I want to calculate annual return from the monthly returns. For example, Annual Return=(1+ret_m1)*(1+ret_m2)+.....+(1+ret_m12)-1</p> <p>How should I calculate in Stata? </p> <pre><code> * Example generated by -dataex-. To install: ssc install dataex clear input double permno long date str8(ncusip cusip) double v...
2
2,423
How to link and compile a C++ project for Linux using CMake? (Adapting CMakeLists.txt)
<p><strong>Context:</strong> I want to make a GameClient, GameServer, and custom library (which both Client and Server use) cross platform for Linux, Windows &amp; MacOS. Server and Client both depend on various libraries I prefer linking statically, and headers. I heard I could do this by wrapping my 3 currently Visua...
2
1,645
Creating a drop down menu in dash to filter by a column
<p>Using the example from dash, how can i filter on one columns value (in this case countries) to create a drop down list to filter by that column. I want it such that when i filter on a country the graphs also update. Any ideas?</p> <pre><code>import pyodbc import plotly from plotly.offline import * import plotly.gr...
2
1,591
How to add Jest to React app built in Parcel.js
<p>I have a React App built with parcel.js. I've added Jest and I'm attempting to run a basic test, but it looks like the code is not being transformed before hitting the test <code>Jest encountered an unexpected token</code>.</p> <p>I'm not sure if the Parcel.js part is a red herring, but it's the thing that's a litt...
2
2,158
OutOfMemoryError : When receiving XML response of 2.3 MB
<p>Following is simple method that connects to web service and receives the XML response from server which is about 2.3MB and I'm getting <strong><code>OutOfMemoryError</code></strong> (<a href="https://stackoverflow.com/questions/6926620/soap-very-large-xml-response-outofmemoryerror">I've referred this</a>) but not be...
2
3,804
Tomcat Netbeans DataSource invalid: "java.sql.SQLException: No suitable driver found for jdbc
<p>I just follow the practice of Creating a Simple Web Application Using a MySQL Database on Netbeans page and encountered an error. </p> <p>I couldn't run my initial steps with glassfish so install tomcat and it worked fine for simpler version. After adding the MySQL DB. I have defined a JDBC Resource utilizing Netbe...
2
2,007
Child nodes does not display for angular-tree-component
<p>I tried implementing angular-tree-component from basic example provided => <a href="https://angular2-tree.readme.io/docs#basic-usage" rel="nofollow noreferrer">Angular Tree Example</a></p> <p>The issue is after implementation i am only able to see only root nodes and that too without expand(child roots are not visi...
2
1,798
Issue while using fabric client java sdk (since there is no Rest API support) in local development environment for Hyperledher Fabric V1.0
<p>I have done the following as per the suggestion that I have got from my <a href="https://stackoverflow.com/questions/45774774/use-rest-api-support-in-local-development-environment-for-hyperledher-fabric-v1">previous post</a> to communicate with locally running Hyperledger Fabric V1.0 network from java application. B...
2
5,179
ARM deployment failed for event grid subscription on endpoint webhook url
<p>Using terraform and Azure ARm template , I am trying to create an azure event grid subscription on a function.</p> <p>This the ARM using for the event grid subscription:</p> <pre><code>{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json", "contentVersion": "1.0.0.0"...
2
2,737
Android adapter list not working inside thread() for ProgressDialog
<p>Below is my code that is not working and i dont understand why it says <strong><em>"Only the original thread that created a view hierarchy can touch its views."</em></strong> when i want to set the adapter for my listview inside LoadValues() method.. <strong><em>"listView.setAdapter(adapter)"</em></strong> </p> <pr...
2
1,371
Hover state for active row in ui-datepicker
<p>I'm trying to add a 'current week' indicator to the jQuery UI datepicker. I have a custom event which triggers after the datepicker is shown. It half works, but there's a sort of lag when moving up and down quickly (even though the hover class is cleared). I have no idea why the border is still applied to the <code...
2
1,026
Cannot read data from SQLite database in android
<p>I'm writing an application that gets the first name and last name from user and inserts them into a database, then the user can write the first name in another field and search for the last name, and the program should show the last name of the searched name in the TextView.</p> <pre><code>package ir.itstuff.dbtest...
2
2,519
Getting InvocationTargetException on my Spring Hibernate Project
<p><a href="https://i.stack.imgur.com/0kQd7.png" rel="nofollow noreferrer">Here is the table of data</a> </p> <p>I have created a simple hibernate/spring with crud with a database in my mySQL. Everything works but my edit function. It says This error.</p> <pre><code>root cause org.springframework.beans.InvalidProp...
2
3,322
Change route after submit form in react with typescript
<p>I am new in react. I write react with typescript without redux. In my sample project i want after submit form, change route, but i can not do this. following code is my try. how can I change route in fetch then function? why this value is undefined!</p> <pre><code>import * as React from 'react'; import 'isomorphic-...
2
1,096
WebBrowser.Document property getter throws UnauthorizedAccessException
<p>We have a Windows Forms app that hosts a web application from <code>http://localhost</code> (on a port selected at runtime) in a WebBrowser control which mostly works fine. Within the webapp there is a 'help' link that pops up a new window, and we handle this by listening to the NewWindow event and showing the help ...
2
1,218
How to check Session and Validate the request in .Net Core Web API
<p>I am creating a .Net Core web API V3 project and in that project, I have a requirement:</p> <p>On every request check the SESSION, if it is ACTIVE then proceed else STOP the request and throw BAD REQUEST error.</p> <p>Now In my application, I have a SESSION table in my database and in that table I have a few columns...
2
3,198
Adapter pattern with static classes
<p>I am looking for a good way to implement the Adaptor pattern with static classes in PHP 5.x.</p> <p>One of the examples where I would like to use this, is as a counterpart to Python's <code>os.path.join()</code>. I would have two adaptees, a Windows and a Linux adaptee class.</p> <p>I think it is reasonable, to im...
2
1,095
NextAuth Credentials returns null after successfully fetch data
<p>Currently I'm having trouble implementing <code>next-auth</code> <strong>credentials provider</strong> into my system.</p> <p>I'm using <code>axios</code> (<strong>to a different localhost</strong>) to <em>verify</em> the <strong>credentials</strong> (email &amp; password).</p> <ul> <li><strong>Nextjs</strong> syst...
2
1,701
Overloaded ViewModel Constructor and HttpPost in ASP.NET MVC
<p>The closest question I found in StackOverflow to what I have is <a href="https://stackoverflow.com/questions/9413313/posting-data-when-my-view-model-has-a-constructor-does-not-work">Posting data when my view model has a constructor does not work</a></p> <p><strong>Model</strong></p> <pre><code> public class Cus...
2
1,161
Django: File upload and save using Ajax
<p>I'm not sure if somehow the directory is wrong or there's just some kind of common mistake in my code, but I just am not able to save my uploaded file to a folder, or more specifically, the media folder as demonstrated in a lot of examples.</p> <p>I'm just taking a text field and the file and saving it in the DB usi...
2
1,564
How to programmatically download Images from drone using the IOS DJI-SDK
<p>I've been having some issues downloaded images from my drone directly to my application. I keep getting a "<strong>System is busy, please retry later.(code:-1004)</strong>" error message when attempting to download the image, I have checked the DJI forum and other questions here on stackoverflow and have not been ab...
2
4,803
Can't push to heroku, sassc segmentation fault
<p>I am having trouble pushing to heroku, I've already tried others solutions related to <em>Precompiling assets failed.</em>, like modifing <code>application.rb</code> to disable precompiled assets, running <code>rake assets:precompile</code>, and updating to rails 6.3.1 to prevent mimemagic recent error.</p> <p>Takin...
2
1,400
Angular FormControls Always Valid When More Than One In Form
<p>I have two inputs that use FormControl that always show as valid but if I take one out then the remaining will be valid/invalid as expected. I would change the two formcontrols out for one ControlGroup but 1.) I want to understand what I'm doing wrong and 2.) I need to access one formcontrol for an autocomplete I ha...
2
1,359
java.lang.ClassNotFoundException: org.apache.hadoop.hive.service.HiveServer$ThriftHiveProcessorFactory
<p>hi everyone i have refer below link to create one sample of spring with hive integration.</p> <p><a href="https://github.com/spring-projects/spring-data-book/tree/master/hadoop/hive" rel="nofollow noreferrer">https://github.com/spring-projects/spring-data-book/tree/master/hadoop/hive</a></p> <p>When i used as it i...
2
12,760
Redux Form 7.4.2 , How to prevent form submit on component render and showing errors
<p>Im using <a href="https://redux-form.com/7.4.2/docs/gettingstarted.md/" rel="nofollow noreferrer">reduxForm 7.4.2</a> , working with client side validation on simple form.</p> <p>The form is being submitted on page load and shows error like below : </p> <p><a href="https://i.stack.imgur.com/mqt4W.png" rel="nofollo...
2
1,215
Flat Laravel collection to tree
<p>I have a Laravel collection of pages - each page has a &quot;parent_id&quot; property. It resembles this.</p> <pre><code>&quot;pages&quot;: [ { &quot;id&quot;: 1, &quot;title&quot;: &quot;Page 1 Level 1&quot;, &quot;parent_id&quot;: 0 }, { &quot;id&quot;: 2, &quo...
2
2,316
how to catch internet error when its not available
<p>hello sir in login page i am validating username and password from server database. if net is there means my application is working properly. if i disconnect internet means my application run means it show error application was not responding. how to eliminate this type of error </p> <pre><code> i try this code ...
2
1,033
Need help resizing Flutter AppBar to fit 4 rows of text and
<p>I'm having trouble resizing the AppBar to fit 4 rows of text (Name, Street Address, City/State/Zip, Phone Number).</p> <p>Here is the page code, and screenshot; notice clipping of third row.</p> <pre><code>import 'package:appvervemenu/http_service.dart'; import 'package:appvervemenu/post_detail.dart'; import 'packag...
2
2,496
Using swagger in asp.net core RC2
<p>I'm migrating a project from ASP.NET RC1 to RC2 but some packages are not working. VS is complaining about being unable to resolve them. What are the correct packages/versions to add</p> <pre><code> "Swashbuckle.SwaggerGen": "6.0.0-rc1-final", "Swashbuckle.SwaggerUi": "6.0.0-rc1-final" </code></pre> <p>Below is...
2
1,106
"Class TBCDField not found" - Error in Delphi
<p>I am using Delphi Seattle.</p> <p>I have below constructor, and while executing first statement I am getting an error "Class TBCDField not found".</p> <pre><code>constructor TFrmMyForm.Create(AOwner:Tcomponent; AParam1:Real; var AParam2:Real); begin inherited Create(AOwner); //This statement is giving an error ...
2
5,545
kendo ui: no Data in Subgrid
<p>i'm working with kendo ui to create rich user interface, but i'm stuck t the following: I want a Grid with a subgrid, the first one displays customer info, like name, etc the second shows the available shipping-adresses, the customer saved. Now my problem is, that in the subgrid is not data, although firebug shows, ...
2
1,950
PyQt4 force view to fetchMore from QAbstractItemModel
<p>I have a QTableView that dynamically loads data from a custom model that inherits QAbstractItemModel. The model implements both fetchMore and canFetchMore. </p> <p>The problem is that I would like to be able to select all rows for small datasets, but if I hit ctrl-a in the view it only will select the rows that are...
2
1,127
Using pre_get_posts to build custom query not working
<p>I have been having a time trying to get this to work and looking over everything it seems like it should.</p> <p>I have a page where I am adding a custom sort function which alters the <a href="http://codex.wordpress.org/Class_Reference/WP_Query" rel="nofollow">WP Query</a> using <a href="http://codex.wordpress.org...
2
1,508
PHP, generate PDF file from HTML
<p>I'm a novice when it comes to generating pdf files</p> <p>I've tried tcpdf and mpdf but not getting the format the way i want it be.</p> <p>Here's my mpdf code</p> <pre><code>include('./mpdf.php'); $mpdf=new mPDF(); $html = '&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; ...
2
2,949
Postgres Return jsonb values as jsonb array?
<p>tl;dr -- is there some way to get values as a jsonb_array from a jsonb object in postgres?</p> <hr> <p>Trying to use recursive cte in postgres to flatten an arbitrarily deep tree structure like this:</p> <pre><code>{ "type": "foo", "properties": {...}, "children": [ "type": "bar", "properties": {......
2
1,080
Error creating bean with name 'entityManagerFactory, can not run App properly
<p>My App in SpringBoot can not run properly. Tried to change dependencies, classpath, deleting and reinstall whole folder with hibernate in local .m2. I'm making Spring boot security login system in my app, before that, everything was alright.</p> <p>change dependencies, classpath, deleting and reinstall whole folde...
2
5,954
mySQL select from one table where does not exists in another, and is not a child in a third table
<p>I'm using Yii RBAC to control user access to my app, it consists of three mySql tables;</p> <p><code>authitem</code> (the RBAC role items)</p> <p><code>authitemchild</code> (any RBAC rules that belong to other roles)</p> <p><code>authitemassignment</code> (assigning roles to a user)</p> <p>For example we may hav...
2
1,819
Parsing XML document with PHP using 'foreach' loop
<p>I'm new to PHP, MySQL and XML... and have been trying to wrap my head around classes, objects, arrays and loops. I'm working on a parser that extracts data from an XML file, then stores it into a database. A fun and delightfully frustrating challenge to work on during the christmas holiday.</p> <p>Before posting th...
2
2,331
jquery validate plugin validate single form depending on submit input clicked
<p>I have a single form and 3 input type submit buttons: back, send, search. The "back" should not validate the form and take me back, the "send" should validate only the email field, the "search" should validate first name, last name and postcode. I have been working on this but to me the update/assign rules part seem...
2
1,034
Not able to access the directory created in HDFS after all the Hadoop deamons are stopped and restarted again
<p>I am new to Hadoop i have a couple of problem and yet i am not able to find any solution my issue goes as below:</p> <pre><code>**Created a directory on HDFS using below command: --bin/hadoop fs -mkdir /user/abhijit/apple_poc **Checking if my directory has been created: --bin/hadoop fs -ls --(output)--&gt;drwxr-...
2
1,213
Discord.js music bot: TypeError: this.inputMedia.pipe is not a function
<p>I'm writing a music Discord bot using Discord.js. The bot uses ytdl-core, node-opus, and I have installed ffmpeg on my OS (Ubuntu 19.04). When I try to make the bot join a voice channel and start playing a YouTube URL, it throws the following error:</p> <pre><code>TypeError: this.inputMedia.pipe is not a function ...
2
1,421
Want to see the ouput "data.csv" in the desktop or any location
<pre><code> public void CreateFileOutput(object parameter) { string workSheetName, targetFile; workSheetName = "data"; targetFile = "data.csv"; string strConn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + SourceAppFilePath + ";Extended Properties='Excel 8.0;HDR=...
2
1,218
Netty server with open http connections limit
<p>I'm new to Netty and I wrote based on an example I found a Netty http server, that keeps http connections open to send server-sent-events to the browser client.</p> <p>Problem is that it only accepts up to about ~5 connections and after that blocks new connections. I googled and found most answers said to set SO_LO...
2
1,546
Google App Script to Upload File from Website to Google Drive - works for text file but not binary
<p>I need to upload files to my Google Drive via a Google App Script. The goal is to be able to let users upload a file to my Google Drive from my website. The code is largely the same as a tutorial I found online, I just added a link to my website banner and also added some code to send me an email when someone upload...
2
1,630
C++ reading/writing to two different files (need help understanding which syntax to use)
<p>I'm currently working on this program for a class in my university. I've tried multiple approach with no success. I'm pretty sure it's just a conversion problem, but I want to understand the differences.</p> <p><strong>What the program supposed to do</strong> : We're to create a program that ask the user for two fi...
2
1,502
Getting 'app:transformClassesWithDexForDebug' error on compiling the project having useLibrary 'org.apache.http.legacy' in build.gradle
<p>I'm developing an app in which I'm using this <a href="https://github.com/brunocvcunha/instagram4j" rel="nofollow noreferrer">library</a>. </p> <p>On compiling the project, this error containing <code>TransformException</code> and <code>RuntimeException</code> is popping up:</p> <pre><code>Error:Execution failed f...
2
6,446
Proguard issues: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
<p>I have two build types of my application: <code>debug</code> and <code>release</code>. Here is the configuration:</p> <pre><code>buildTypes { release { signingConfig signingConfigs.release proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' ...
2
3,633
How to switch shader programs in glsl
<p>I want to do volume rendering using programmable pipeline (using glsl) and no fixed pipelines. I implement it with 2 passes with 2 shader programs, <code>exitPointProg</code> and <code>rayCastProg</code>. the first pass is to get the exit points (i.e. the back face) of a cube bounding box which will be used as a tex...
2
2,482
Column and Row manipulation Python Pandas
<p>This is my first program in Pandas on my own and I am trying to perform some csv manipulations by column and rows. I have a transition repository of multiple files. The transition repository keep adding file into it. I am trying to dynamically read the files and perform some operations and write to a master csv file...
2
1,182
In Microsoft Excel how are single quotes applied to the sheet name in a formula?
<p>Whilst working with Microsoft Excel, I created a very big formula which has many symbols, and its total string length is about 8047 in Excel 2007. When I researched I saw that the maximum number of characters allowed for a formula is 8129.</p> <p>I extracted the Excel file and I could see that the Microsoft Excel i...
2
7,430
Hbase slave's HReginServer can not start
<p>When I start my HBase , the HReginServer and HMaster of my master machine start successful , but the slaves HReginServer can not start </p> <p>my hadoop version is 2.8.0 , hbase version is 1.2.6 , zookeeper version is 3.4.9</p> <p>and my hbase-site.xml is :</p> <pre><code>&lt;property&gt; &lt;name&gt;hbase.r...
2
1,614
Execute dynamic query with IF-ELSE statements and sp_executesql command
<p>I have created the following table using the SQL Server</p> <pre class="lang-sql prettyprint-override"><code>CREATE TABLE test ( id_number NVARCHAR(50) NOT NULL, number_of_products NVARCHAR(50) NOT NULL ); INSERT INTO test (id_number, number_of_products) VALUES (1000077004, 3), (1000077005, 4), ...
2
2,197
How to call onChangeText function when mapping it from array
<p>I am using an <strong>Array</strong> to <strong>map data</strong> by using <strong>higher order function map</strong>. And I am also using <strong>cutome component InputField</strong> which is receiving props. but when I call the function it says.</p> <blockquote> <p>Failed prop type: The prop <code>onChangeText<...
2
1,992
table inside a div stretches the div horizontally more than 100%
<p><img src="https://i.stack.imgur.com/qySia.png" alt="enter image description here">A table has large number of columns (30 columns) and each of the <code>th</code> tags have <code>white-space:nowrap</code> style set on them. This stretches the parent div. How can this be prevented and have a horizontal scroll for the...
2
1,754
Dropping multiple columns of Spark DataFrame in Java
<p>I'm using Spark 1.5.3, I tried separating the even and odd columns in a spark dataFrame,</p> <pre><code>String filePath = "/home/inputData.txt"; DataFrame inputDataFrame = sql.read().format("com.databricks.spark.csv") //No I18N .option("inferSchema", "true") //No I18N .option("delimiter", ",") //No I18N ...
2
1,464
Android MediaPlayer play m3u8 only audio streamming not worked
<p>Hi every one i write a code to play fm radio waves. In my code there are a progressbar and two buttons one of them for play and another for stop. when i click play button it not happen. how can i solve this problem? or is there good suggest for me to play audio m3u8 files?<br> The code I'm using is:</p> <pre><code>...
2
1,259
Safari 5 / iOS, WebSocket handshake only works sometimes
<p>I have made a class in java that allows me to wrap an existing socket with the WebSocket protocols. I have everything working for the <a href="https://www.rfc-editor.org/rfc/rfc6455" rel="nofollow noreferrer">RFC6445</a> protocol working and everything works in chrome and FF. However Safari and iOS is using the <a h...
2
1,848
Background changing every second
<p>I am trying to change background every second and this is my code: package com.example.splasher;</p> <pre><code>import java.lang.reflect.Field; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import android.os.Bundle; import android.app.Activity; import android.graphics.Typeface; i...
2
2,672
XML parsing with CDATA tag in it
<p>I have a <code>XML</code> coming from the API, it includes some ads to show up. Here is what <code>XML</code> looks like:</p> <pre><code>&lt;mojiva&gt; &lt;ad type="image"&gt; &lt;url&gt; &lt;![CDATA[ http://google.com ]]&gt; &lt;/url&gt; &lt;img type="image/png"&gt; &lt;![CDATA[ http://account.mobfox.com/activatio...
2
2,102
Is it theoretically possible to use `putRecord` in Kinesis via singular http POST request?
<p>I've been experiencing some issues with AWS Kinesis inasmuch as I have a stream set up and I want to use a standard http <code>POST</code> request to invoke a Kinesis PutRecord call on my stream. I'm doing this because bundle-size of my resultant javascript application matters and I'd rather not import the <code>aws...
2
2,795
Get Memory , CPU for process C++
<p>I need to get all available information on each process running in the computer that includes : CPU information such as cpu usage and so on with Memory.</p> <p>I've used CreateToolhelp32Snapshot and Process32Entry to obtain information such as Process name, Process ID, num of threads.</p> <p>then used OpenProcess ...
2
1,115
Why will my images not fit to 'slick slider'
<p>This is my first post - I've just joined the community after researching through other people's questions and answers, but unfortunately I'm just lost.</p> <p>I am working on a very basic portfolio website, and have beginner experience with html and css. This time, I have used a template to start me off with the re...
2
11,555
Error message with Entity Framework and Function Import
<p>I have a DB stored procedure that returns a float. The Stored proc does calculations of inputs and spits out a "Rating" based in the inputs. I was able to update the Model and perform a function import, but when I try and use the new function in Linq i get the following error.</p> <blockquote> <p>Function metad...
2
2,377
Oracle sequence created twice. ORA-00955: name is already used by an existing object
<p><strong>EDIT</strong> After your advices, the code and the errors. I got an error "ORA-00955: name is already used by an existing object" now. The sequences creation create this error each time a DataStoreManager constructor is called.</p> <p>Here is the code now : </p> <pre><code>public class DataStoreManager { ...
2
3,977
Dynamic input box width in Foundation 5
<p>I'm just getting started with Foundation and trying to create a title bar with a search box. I want the search box to fill all available space in the title bar. However, nothing I've tried has quite worked:</p> <p>1) I tried setting a 50% width but at small screen sizes it pushed the other buttons off the top row <...
2
2,735
wxFlexGridSizer AddGrowableCol throwing error
<p>I have several wxFlexGridSizers that used to work in wxWigets version 2.8.11. After upgrading the wxWidgets library to 2.9.4 I am now getting an invalid column index in wxFlexGridSizer::AddGrowableCol().</p> <p>Here is a sample of the sizer that I am creating:</p> <pre><code>wxFlexGridSizer* fgSizer1; fgSizer1 = n...
2
1,527
Play video URL links stored in database MVC
<p>Hi I'm currently developing a web Application In MVC3. I have created a database called PlayLink and have integrated a media player lean-back www.leanbackplayer.com into a view.</p> <p>From my view the user can add a URL link to the database and the link appears in the main View. I now need to link the player to th...
2
1,034
Ionic 2 GET http://localhost:8100/search/aq?query= 404 (Not Found)
<p>I want to make a simple app with a <code>http</code> request but I have and issue with <code>cors</code> in ionic 2.</p> <p>Firstly, i have changed my <code>ionic.config.json</code></p> <pre><code>{ "name": "weatherapp", "app_id": "", "v2": true, "typescript": true, "proxies": [ { "path": "/ap...
2
2,551
Is it possible to dynamically set Android button text size in XML?
<p>I'm working on an app and I have a series of buttons on the main menu that I want to all have the same text size. Is it possible for me to specify that in a properties file?</p> <p>Here is my current XML file.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;TableLayout xmlns:android="http://schema...
2
1,281
Get a variable from a CMD popup
<p>I currently am trying to create a batch file in which one of the purposes rely on getting a 6 digit value from the user. It's needed for aesthetics sake that the batch file show a popup message that will have a message requesting the info, and a space for the user to type said info, and obviously a button to confirm...
2
1,385
How to customize logging levels for Cassandra and Spark
<p>I'm trying to customize logging coming from com.datastax.driver for Cassandra and Apache Spark. These libraries output debug logs to console, and I would like to change it to error level. I tried to use log4j with .properties and .xml configuration and slf4j with .xml configuration. However, I could not override co...
2
1,293
Uncaught TypeError: Cannot read property 'type' of undefined React Router Redux
<p>Using "react-router-dom": "^4.1.2", "react-router-redux": "^5.0.0-alpha.6" I get as per title "Uncaught TypeError: Cannot read property 'type' of undefined React Router Redux" in console.log() the moment after the redirect is done. Screenshots show it's not a problem with the action observable containing the payload...
2
1,854
Aligning the output of a 2 dimensional array using printf?
<p>I have three separate arrays, one String for the header line, and two 2-dimensional arrays. One only has values along the left side for Row Titles. The other is double and has randomly-generated values. So far an example output looks like this:</p> <pre><code>Test 1 Test 2 Test 3 Test Average Student...
2
2,150
Odoo 10 : Exit Qweb loop
<p>I have a below code : </p> <pre><code>&lt;t t-foreach="doc.order_lines_layouted()" t-as="page"&gt; &lt;t t-foreach="page" t-as="layout_category"&gt; &lt;t t-foreach="layout_category['lines']" t-as="l"&gt; &lt;t t-if="l.product_id.product_tmpl_id.type == 'product'" &gt; ...
2
1,055
ng2 file upload not allowing me to add same doc after I've removed it from que
<p>I'm having a little issue with <a href="https://valor-software.com/ng2-file-upload/" rel="nofollow noreferrer">ng2-file-upload</a> I'm trying to prevent the user from uploading/using the same file twice. Meaning, adding the same file to the queue but not uploading it yet).</p> <p>So I can add a doc like this</p> <...
2
1,107
Open in outllok using javamail api an attached email containing email as attachment
<p>I am able to open attached emails in outlook using javamail api. But I have a problem when this attached email contains also an eml as attachment.</p> <p>In outlook, as below in the pic, the main mail(mail1 left side) contains mail2 as attachment, when opening mail2, we have Re:completion as attachment(right side)....
2
1,870
Neo4j - java.lang.NoClassDefFoundError: org/parboiled/scala/Parser
<p>I try this Hello world example (<a href="https://github.com/neo4j/neo4j/blob/2.0.0/community/embedded-examples/src/main/java/org/neo4j/examples/EmbeddedNeo4j.java" rel="nofollow">https://github.com/neo4j/neo4j/blob/2.0.0/community/embedded-examples/src/main/java/org/neo4j/examples/EmbeddedNeo4j.java</a>). I inserted...
2
3,252
Image won't resize using media query
<p>I am trying to resize an image on a <code>html</code> page when it is displayed on a browser.</p> <p>The <code>HTML</code> used us as follows;</p> <pre><code>&lt;body class="layout-4"&gt; &lt;div id="wrapper"&gt; &lt;header id="header"&gt; &lt;div class="container"&gt; &lt;d...
2
1,876
Loop Commands or Functions Until a Condition becomes True in Inno Setup
<p>I want to show a Nice Welcome Animated GIF to my users when running my Program Installer created using Inno Setup.</p> <p>I want to display some PNG Images to an order (As Inno Setup doesn't support displaying Animated GIFs yet) using <code>Isgsg.dll</code> until Setup finishes initializing my tons of codes. </p> ...
2
1,170
Inter-process communication with SendMessage on Windows and Qt5
<p>My problem is, I suppose, reasonably common: opening a file in the first instance of my app when a second instance is run (e.g. by opening an asociated file in the explorer).</p> <p>The way I implemented this on Windows is by using the <code>SendMessage</code> Win API and receiving the message by reimplementing win...
2
1,025
WordPress custom query for multiple meta key and meta value for search
<p>I have Three DropDown with multi-selection. Also used AJAX for getting the data using WP_Query.</p> <p>Process: If I am select first OR any DropDown from the page then it will return a result. Then select the second DropDown then it will set the "AND" relation to getting the result means common result should return...
2
3,252
react-native-fbsdk "login with facebook app" not firing callback
<p>I am implementing Facebook login in my React-Native app with the <code>react-native-fbsdk</code>. I can't figure out why the "Login with facebook app" is not working. When the user clicks this as opposed to entering their credentials in the web view, the <code>LoginManager</code> callback never seems to get fired.</...
2
3,565
How to read a crash report from iPhone
<p>Got a crash report from a beta tester and I'm having trouble identifying the root of the problem. Clearly something went wrong when trying to set a UIButton (screenOverlay). Here's its creation in ViewDidLoad:</p> <pre><code>UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; button.frame = CGRectMake(...
2
1,831
I want to upload and download file in ASP.NET MVC in database.?
<p>I want to upload and download files in ASP.NET MVC.</p> <p>This is my action method in the controller. When I debug file is <code>null</code>. Where am I going wrong?</p> <pre><code>public ActionResult UploadDocument(CompanyViewModel model,HttpPostedFileBase FileUpload) { var userId = User.Identity.GetUserId&...
2
1,654
Nested Conditional Panels in Shiny R
<p>Hey Im trying to nest ConditionalPanels within ConditionalPanels. The output is showing everything in the first Conditional panel and completely disregarding the conditional panels within. Desired flow of Output: Choose Marketing(SMS or Email) -> Auto or Manual -> Either Auto or Manual layout (not both). <a href="h...
2
1,685
Three.js OrbitControls with azimuth close to +/-180 degrees
<p>I have a situation where I use an OrbitControls to have a limited view in a room/space. The OrbitControls gets min/max values for azimuth and polar angles to control the view. The OrbitControls' target is close by the camera to achieve the correct view, compare to the "panorama / cube" example (<a href="https://thre...
2
1,179
Validation search field in javascript
<p>I have this code, but I just can not make it work. What according to you is the problem?</p> <pre><code>&lt;div class="box-search"&gt; &lt;form action="" method="get" onsubmit="return doSearch('search-form','text_cautat');" id="search-form"&gt; &lt;input type="text" name="s" class="search-field" id="text_cautat...
2
1,034
How to correctly load Cordova and Angularjs hybrid app with remote scripts
<p>We have a single page hybrid app developed with <code>cordova 3.4.0</code> and <code>angularJS</code> via <code>Hybrid app plugin(CPT2.0)</code> in visual studio 2013.<br> This app has some embedded resources (jquery, angularjs, bootstrap and few propietary code), and needs to get some other remote resources (angula...
2
1,232
Highcharts - areaspline with negative values, area should be always at the bottom
<p>I would like to create a chart with Highcharts, with negative values, like this: </p> <p><a href="http://jsfiddle.net/vargapeti/LjL03o8h/3/" rel="nofollow">http://jsfiddle.net/vargapeti/LjL03o8h/3/</a></p> <pre><code>$(function () { $('#container').highcharts({ chart: { type: 'areaspline' ...
2
1,061
Apache server "ImportError: No module named site"
<p>I am trying to run Apache server using squashfs based rootfs. When I try to connect to the server, I see the following in the /var/log/apache2_error_logs</p> <pre><code>cat /var/log/apache2_error_log [Mon Apr 29 18:40:28.705047 2013] [mpm_worker:notice] [pid 0:tid 1073880416] AH00292: Apache/2.4.3 (Unix) mod_wsgi/3...
2
1,328