title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Sharing (including?) generics in VHDL between files?
<p>Assume I have this simple core with generics as <code>genertest.vhd</code>:</p> <pre><code>-------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; -- use IEEE.STD_LOGIC_ARITH.ALL; -- use IEEE.STD_LOGIC_UNSIGNED.ALL; use IEEE.NUMERIC_STD.ALL; EN...
2
1,695
Replace plexus component in Maven 3
<p>I need to replace some Maven default functionality with my own implementation, and I am looking for a clean way to do that.</p> <p>I have extended <code>org.apache.maven.repository.internal.DefaultVersionRangeResolver</code> and registered my extended component using a component.xml as follows:</p> <pre><code>&lt;...
2
1,344
java.lang.noClassDefFoundError: com/itextpdf/text/element on a Java Applet
<p>I'm trying to code a Word-To-PDF Converter and build the Java Code into a HTML Website in form of a Java Applet. </p> <p>I used the Java Code from <a href="http://java.worldbestlearningcenter.com/2013/07/word-to-pdf-converter.html" rel="nofollow noreferrer">http://java.worldbestlearningcenter.com/2013/07/word-to-pd...
2
5,084
Multiple Components with same state name, how to change one state of one component without affecting the others?
<p>In my react native program I have component (Bell) that is called for every item/list called from an API. The bell is used to make a notification (and cancel it)on press and I made a state (isBellActive) to determine if the Bell has been toggled on or not. If it is, isBellActive is true and false otherwise. Im stori...
2
1,501
WebView not showing website correctly
<p>WebView is not showing website correctly. Any help would be great! The code ive used work on all another site. Not sure whats the issue. Any thing I should add? Works well in chrome and other browsers so don't know what to do. Any help would be great!</p> <p>WebView <img src="https://i1241.photobucket.com/albums/gg...
2
1,442
How To Use EigenObjectRecognizer Threshold
<p>I've tried to code a face recognition program and need some help from the community. The code posted below compiled with no error and the recognizer working if the <strong>threshold</strong> that i set is 0, if i set the threshold > 0 its display Unknown Face definitely. <br> I am using 4 training image for a person...
2
1,028
JPA from Maven repository with Ivy
<p>I'm converting an existing project using JPA + Hibernate to use Ivy for getting its dependencies. I can get almost everything, but have trouble getting JPA. This is my <strong>ivy.xml</strong> without JPA:</p> <pre><code>&lt;ivy-module version="2.0"&gt; &lt;info organisation="xxx" module="dataserver"/&gt; &...
2
1,061
Uinput virtual device is detected as physical keyboard on android
<p>I've created a simple native library in C that allows the user to create a device using uinput module. The code seems to work, but there's a problem: my virtual device is detected as physical keyboard and, when I need to write some text, the soft keyboard doesn't appear since android detects a real keyboard connecte...
2
1,129
Android OpenCV MatToBitmap causes black image
<p>I am using OpenCV on android. I try to detect largest rectangle and extract this rectangle from image. I am using this code below. When the photo is taken, some image processing is done. My aim is, I want to detect a rectangle which is like border of paper and if its area is bigger than threshold_area, I want to cro...
2
1,518
Webpack build React.createClass is not a function
<p>I have a <strong><code>ReactJS</code></strong> application with <strong><code>webpack</code></strong> module builder, following is the configuration in my <code>webpack.config.js</code></p> <pre><code>var path = require('path'); var webpack = require('webpack'); module.exports = { entry: { app : './src...
2
1,227
PHP Facebook get Fan Page token
<p>I constructed the following PHP code below after following some Q&amp;As here. The code below generates an indefinate (two months) Access token for my Facebook App.</p> <p>Basically by Facebook App lets users upload multiple pictures to their specific album on my facebook page. For this app to work it needs two acc...
2
1,236
How to import/export Java EC keys to/from X9.63 encoding with Java 8
<p>I am looking into writing a Java 8 program to do a ECDH exchange with another piece of software using a library (wolfSSL/wolfCrypt) that can only export/import ECC public keys in X9.63 format (their <code>wc_ecc_export_x963()</code> function). I would greatly prefer to do this using the providers that come with Jav...
2
2,132
how to fill custom list in Fragment in android?
<p>I have fragment i want to create a custom list view in it but when i send the parameters to adapter it's giving me error.</p> <p>This is my code in Fragment..</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R...
2
5,685
Issue with Websockets (WSS) server implemented in Python
<p>I am aware of the <a href="https://websockets.readthedocs.io/en/stable/intro.html#browser-based-example" rel="nofollow noreferrer">browser-based implementation</a> at websockets.readthedocs.io as well as the <a href="https://websockets.readthedocs.io/en/stable/intro.html#secure-example" rel="nofollow noreferrer">sec...
2
4,877
React Native - NavigationActions.navigate() not navigating from within redux
<p>I have two navigators one is stackNavigator and another is drawerNavigator. what I want to do is dispatch an action and login is successfull and redirect the user to drawer navigator. I have used react-navigation. What I have done is I am dispatching the action login success in saga. Using <code>NavigationActions.n...
2
1,169
ffmpeg audio conversion distorted - half rate
<p>I'm trying to convert an asf audio to mp3 using ffmpeg. But I have one specific audio that gets distorted in the middle and starts like if the person was talking in slow motion (at half rate). </p> <p>The command I'm using is:</p> <p>ffmpeg - i input.asf -ac 2 output.mp3</p> <p>I've tried a lot of options, but a...
2
1,028
material-table lookup. How do I get the selected value?
<p>I am using material-table to render my data and I am dynamically building lookup</p> <p>I want to add another lookup column to my table if a certain value is selected from the first lookup</p> <pre><code>const [state, setState] = useState&lt;TableState&gt;({ columns: [ { title: 'Name', field: 'name...
2
2,406
Problem making API request with async / await in swift 5.5
<p>I have a problem when I want to refactor my API requests to the new async / await functionality in swift 5.5.</p> <p>My code is (I remove all credentials and personal information, but the logic is the same):</p> <pre><code>class API { enum HTTPMethods: String { case GET = &quot;GET&quot; case POS...
2
3,010
AutoFac+WebAPI not disposing objects
<p>I have the following piece of code to build the dependencies:</p> <pre class="lang-cs prettyprint-override"><code>private static void InitializeContainer(HttpConfiguration config) { var builder = new ContainerBuilder(); var controllers = AssemblyUtils.GetAssemblies(true); controllers.Add(Assembly.GetEx...
2
1,134
increment values in maya python
<pre><code>randoms = [rand.uniform(-1,1)for items in range(10)] x= 0 for i in List: cm.setKeyframe(at = "%s.cv[x].xValue"%i , t=5, v=rand.choice(randoms)) x+=1 </code></pre> <p>this part of code that i wanna use, but maya can't accept this [x]. someone told me you should do this:</p> <pre><code>for i in List...
2
1,300
Oracle SQL Join two tables/views avoid cross product
<p>I have two tables/views that I am trying to join properly. They are <code>V_ARINVOICE_ALL</code> and <code>V_GLBATCH_AR_COGS</code>. The third table <code>V_ARINVOICE_ALL</code> in the following image is just for extra explanation. </p> <p><a href="https://i.stack.imgur.com/USv2p.png" rel="nofollow noreferrer">Clic...
2
2,018
How to select and plot raster specific row in R?
<p>How do I plot a specific row over time? For example I want to plot row 10(layer.1 to 5 is actually year 1 to year 5.</p> <pre><code>library(raster) r &lt;- raster(nrow=5, ncol=5) s &lt;- stack( sapply(1:5, function(i) setValues(r, rnorm(ncell(r), i, 3) )) ) s[] layer.1 layer.2 layer.3 laye...
2
1,125
Warning: Attempt to present XXX on XXX whose view is not in the window hierarchy
<h2>New edit:</h2> <p>I run into the Warning: </p> <blockquote> <p>Attempt to present OneView on Another whose view is not in the window hierarchy.</p> </blockquote> <p>Following is the sample code I created to show the problem.</p> <p>I have two ViewController: OneViewController and TwoViewController, and subc...
2
1,448
Adding multicolumns to my texreg output
<p>I want to make a table with grouped <em>columns</em> via <code>texreg</code>. I can only see options for grouped <em>rows</em> (<code>groups</code>).</p> <p>Here's an example:</p> <pre><code>set.seed(01349) DF &lt;- data.frame(y = rnorm(100), x1A = rnorm(100), x2A = rnorm(100), x1B = rnorm(100), x...
2
1,706
Setting Session Variable from UpdatePanel
<p>I am using ASP.NET 2.0 AJAX Extensions 1.0 with the version v1.0.20229 of the AJAX Control Toolkit (which to my knowledge is the latest for .NET 2.0/Visual Studio 2005).</p> <p>My web page (aspx) has a DropDownList control on an UpdatePanel. In the handler for the DropDownList's SelectedIndexChanged event I attemp...
2
1,395
Android TableLayout with over 1000 rows loading very slowly
<p>I'm looking for a way to speed up the creation of a TableLayout with over 1000 rows. Is there a way to create a TableLayout entirely on a separate thread or a way to speed it up?</p> <p>Here is my method that is creating the table:</p> <pre><code>private void setTable() { final Activity activity = this;...
2
1,140
How to create multiple drag & drop zone and pass variable between them
<p>I'm trying to create a calendar in Angular for a personal project. I have a table with a div for each day of the month and inside this div I have my appointments. What I want to do is be able to drag and drop my appointment from a day to another, I try with the angular cdk drag &amp; drop but can't have something w...
2
1,199
How to get the private IP using JavaScript?
<p>I am using a code I have found on Github, to get the private network's IP address using WebRTC. </p> <p>This works perfectly in Chrome, however in Firefox I get only the public IP address in the response. </p> <p>Is there a fix for this? I'm only targeting most recent versions of these browsers.</p> <p><div class...
2
1,883
how to remove time on timeline calendar using full calendar
<p>I have made a timeline 7 days calendar using full-calendar. But instead of time, I need only dates. I don't need time. I only want dates like 12/18 12/19 12/20 etc. Here is my code: </p> <pre><code>$(function() { // document ready $('#calendar').fullCalendar({ now: '2017-12-07', editable: false, // enable dra...
2
1,174
Behat with Selenium Hub and Firefox Error: Could not open connection: Payload received from webdriver is valid but unexpected json
<p>I'm trying to run Behat on Docker using <code>selenium/hub</code>, <code>selenium/node-chrome-debug</code> and <code>selenium/node-firefox-debug</code> images. </p> <p>Running Behat with the Chrome node is working, but the Firefox node gives me the following error:</p> <pre><code>Could not open connection: Payload...
2
1,202
Gatsby - extracting day and month from date field obtained in GraphQL query
<p>I'm a newbie web developer working with Gatsby, React, GraphQL and Javascript. I'm working on a simple blog site in which I have some markdown posts whose frontmatter dynamically populate a list of blogposts on a page. I've managed to get this working so far but I wondered how one can work with data obtained from a ...
2
1,719
TensorFlow - ValueError: Checkpoint version should be V2
<ul> <li>GPU: NVIDIA GEFORCE RTX 2060</li> <li>GPU: 16GB RAM, 6 processor cores</li> <li>TensorFlow: 2.3.1</li> <li>Python: 3.8.6</li> <li>CUDA: 10.1</li> <li>cuDNN: 7.6</li> </ul> <p>I am training a Mask R-CNN Inception ResNet V2 1024x1024 algorithm (on my computer's GPU), as downloaded from the <a href="https://githu...
2
4,818
Trace.Assert not breaking, neither showing the message box
<p>I have a WPF application in which I'm moving data around on a Canvas. The problem started when I tried moving the data with the mouse like a freak.</p> <p>Here's the sequence of the actions:</p> <ul> <li>The MouseMove on the Canvas is triggered</li> <li>In the MouseMove, I change some data</li> <li>A Trace.Assert ...
2
3,821
How to join two tables based on a timestamp (with variance of a few seconds)?
<p>I have two tables that I'm trying to join and insert into another table based on a combination of three columns. I'll explain.</p> <p><strong>Table M</strong></p> <pre><code>| ANO | BNO | Timestamp | Duration --------------------------------------------------------------- | 5612853 | 4732621 |...
2
2,004
Not able to select any item from SelectOneMenu
<p>In my implementation, the select menu appears with populated value. But, if i selected any item from the menu, the select menu not setting the value and reset to default one.</p> <p>Convertor:</p> <pre><code> package com.papar.common.converter; import javax.faces.application.FacesMessage; import javax....
2
1,122
How to update progressbars individually (simultaneous downloads)
<p>I´m currently trying to add parallel downloads to my application but I don´t know how to handle the DownloadProgressChangedEvent to display the progress in multiple progressbars.</p> <p>I´m using a datagridview with predefined rows for each file the user is able to download and each row has a cell with a progressba...
2
1,078
Gradient "miter" in OpenGL shows seams at the join
<p>I am doing some really basic experiments around some 2D work in GL. I'm trying to draw a "picture frame" around an rectangular area. I'd like for the frame to have a consistent gradient all the way around, and so I'm constructing it with geometry that looks like four quads, one on each side of the frame, tapered in ...
2
1,048
Hibernate IntelliJ - Unable to load class [org.postgresql.Driver]
<p>I want to run my own Hibernate application atop of a psql database set up in intellij:</p> <p><a href="https://i.stack.imgur.com/mRdPe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mRdPe.png" alt="As you can see, I have the recent Postgresql Driver."></a></p> <p><a href="https://jdbc.postgresq...
2
2,489
Setting up teamcity to run rails specs
<p>I'm trying to set up teamcity 5.0.2 to run my rails projects specs (just rake spec)</p> <p>My setup is:</p> <ul> <li>local git repo</li> <li>rails app root in side it (git_root/site_root)</li> </ul> <p>my rake runner settings are:</p> <ul> <li>path to rakefile: site_root/Rakefile</li> <li>working directory: site...
2
1,447
can't show alert dialog
<p>I can't show alert dialog. Everything is right until I set the method dialog.show(), then I can't open my application. Without this method everything is fine.</p> <p>I declared two global objects:</p> <pre><code>AlertDialog.Builder builder; AlertDialog dialog; </code></pre> <p>Then in MainActivity, I build a dial...
2
2,048
Django Disable/Exclude Field in CreateView but enable/include it in UpdateView
<p>I would like to exclude/disable a Charfield (with options and a default value) when creating a new object, but when editing this object, I would like to enable / include the Charfield for the user to change it. </p> <p>So far I tried <a href="https://stackoverflow.com/questions/324477/in-a-django-form-how-do-i-make...
2
1,915
WPF ControlTemplate Triggers
<p>I have a project which uses WPF, C# and all that good stuff (Visual Studio 2010 also).</p> <p>I have a WPF ListBox and, within that ListBox, there is a Control Template for the ListBoxItem. Within that is a section for triggers.</p> <p>In this particular case, the trigger property is IsSelected, referring to the s...
2
2,631
Displaying a JSON file as a map using D3js v4
<p>I'm trying to create a map similar to <a href="https://bl.ocks.org/mbostock/4060606" rel="nofollow noreferrer">that of Mike Bostock</a>.</p> <p><a href="https://gist.githubusercontent.com/rveciana/5919944/raw/2fef6be25d39ebeb3bead3933b2c9380497ddff4/nuts2.json" rel="nofollow noreferrer">This is my JSON file</a> (it...
2
7,021
Odoo 10 :Creating Security rules for custom module
<p><strong>Goal</strong> : To add an option in the user form that has the label ‘Demo module access’ with a drop down menu to choose the security groups for a custom module.</p> <p><strong>Model name</strong> : simcard_simcard</p> <p><strong>Module name</strong> : simcard</p> <p>my ir.model.access.csv :</p> <pre><c...
2
2,361
HTTP POST Request not Working in ASP.NET MVC 4
<p>I have created a simple MVC application and have created html table in view. When i click on hyperlink under this table it does not take me to the [HttpPost] method and goes to [HttpGet] default method. Please take a look on my table placed in view portion of my mvc application.</p> <pre><code>@model Mvc.Affiliat...
2
1,205
Convert Italic XML Tags into WordML Tags II
<p>I'm several WEEKS old inhabiting these XSL WordML XML "worlds", and, im <em>really</em> dissapointed on the way the so called 'XSLT Processor' handle things. </p> <p>Regarding an <a href="https://stackoverflow.com/questions/234215/xml-to-wordml-using-xslt-1-0-replace-html-tags-within-xml-content-with-wordml" title=...
2
2,548
Rickshaw Month based X axis problems
<p>I have my graph working very close to perfectly. I am grabbing its data via PHP and returning JSON data for Rickshaw, one problem however, is that I cannot get the month of December to show up on the graph. </p> <p>I need to display the results for the entire year. So even if there’s no records for Dec I need to sh...
2
1,299
FileWatcher creation event not fired
<p>I wrote a filewatcher service for monitoring a directory recursively, and if there is .txt file contents change or new created .txt files in the directory, it will copy the file to an central folder. But I meet some problem in my program.</p> <p>Whenever there is a .txt file contents change, my program works well. ...
2
1,544
Firebase Cloud Messaging Missing Registration
<p>Hey I just added FCM to my new Website. Now I want to send notifications from my android app. Everything works fine when I do this with postman. Here are my params:</p> <pre><code> @Override protected Map&lt;String,String&gt; getParams(){ Map&lt;String,String&gt; p...
2
1,197
GSSException createCredential
<p><strong>Major edit: 2015-05-27:</strong> After some degree of success updated on where I'm currently stuck rather than leaving a rambling post....could really do with some pointers on this one - a little bogged down....</p> <p>I'm running some code on a Linux app server (WebSphere) that needs to authenticate to an ...
2
3,294
How to use addEventListener() , querySelectorAll and getElementsByClassName for popup box
<p>I would like to put a popup box on my website which have same ID. Those pop up boxes should be display after I clicked button. Those buttons have same Id.</p> <p>my script code is</p> <pre><code>&lt;script type="text/javascript"&gt; // Get modal element var modal = document.querySelectorAll('.simpleModal'); //...
2
5,777
Error installing QtLocation
<p>So I'm trying to install QtLocation. I created the qt5vars.cmd in C:\QT exactly with the text stated. This is my error:</p> <pre><code>C:\QT\QT5&gt;REM Set up \Microsoft Visual Studio 2013, where &lt;arch&gt; is \c amd64, \c x86, etc. The syntax of the command is incorrect. C:\QT\QT5&gt;CALL "C:\Program Files (x86...
2
2,217
Toggle the status of a checkbox in the checkbox hack with a hyperlink
<p>My colleague and I worked on a website that contains a FAQ page. After each question, there is an "Answer"(Antwoord) spoiler button. Clicking the button shows the answer below the current question, and above the next question. Clicking the button again hides the answer. This makes it easy to scroll through the list ...
2
3,244
Connecting to SignalR from Chrome extension - error: method could not be resolved
<p>I'm building an Chrome extension that will interact with a SignalR HUB.</p> <p>The HUB is working fine with my local files which were created with the proxy connection. However, I can't use the proxy connection in the chrome extension because it's not in the same project so I had to define it myself:</p> <pre><cod...
2
1,084
ember cli app with bootstrap drop down menu immediately closes on mouse release
<p>I have only recently started using ember and I wanted to include bootstrap. I added bootstrap via bower: <code>bower install --save bootstrap</code> then added the following into my ember-cli-build.js file:</p> <pre><code>app.import('bower_components/bootstrap/dist/css/bootstrap.css'); app.import('bower_components/...
2
1,031
flag provided but not defined in nginx prometheus exporter
<p>I'm tryin to deploy an nginx prometheus exporter (<a href="https://github.com/nginxinc/nginx-prometheus-exporter" rel="nofollow noreferrer">https://github.com/nginxinc/nginx-prometheus-exporter</a>) in a kubernetes cluster but if I use param &quot;-nginx.scrape-uri&quot; in the args tag it fails. If I remove it then...
2
1,453
Plot points based on values of a factor column
<p>I have a data frame that looks like the one below. This is just the first 9 row of 54 rows. Each Stream name is repeated 18 times, 3 stream names (18*3=54)</p> <pre><code>stream n 1 2 3 means 1 Brooks 3 0.42707006 1.9353659 1.4333884 1.8566225 2 Siouxon 3 0.90503736 0.2838483 0.2838...
2
1,134
android eclipse Rejecting re-init on previously-failed class java.lang.Class<android.support.v7.widet.RecyclerView>
<p>I got crazy about this problem.Even now I don't know what is the cause. I have already import the android-support-v7-recyclerview.jar. Moreover, I extract the classes.dex from my final apk file , and covert it to jar. Then I open the jar with jd-gui, I saw the android.support.v7.RecyclerView in the class list. I don...
2
1,373
How to transform list with in a list using jolt library
<p>I am trying to transform a json into another using Jolt library and not getting the desired output.</p> <p>Here is my input file.</p> <pre> { "maxResults": 150, "total": 89, "issues": [ { "key": "1", "fields": { "fixVersions": [ { ...
2
1,321
Install npm does not work on windows
<p>Install npm does not work on windows</p> <p><strong>Error</strong></p> <blockquote> <p>npm ERR! Error: No compatible version found: grunt-rename@'>=0.4.1-0 &lt;0.5.0-0'</p> <p>npm ERR! Valid install targets:</p> <p>npm ERR! ["0.1.0","0.1.1","0.1.2","0.1.3","0.1.4"]</p> <p>npm ERR! at install...
2
2,078
Get external JS library to work for Angular 2
<p>I am struggling to get <a href="https://www.npmjs.com/package/filesaver.js" rel="nofollow noreferrer">FileSaver</a> to work in my project. Here is the exact step I took</p> <ol> <li><p>npm install filesaver.js --save</p></li> <li><p>Inside app.component.ts</p></li> </ol> <blockquote> <p>import * as FileSaver fro...
2
1,125
How can I workaround this Visual Studio compiler BUG?
<p>This is the "famous" /vd2 bug in visual studio, more information ex.: <a href="http://mcdougalljonathan.blogspot.com/2011/12/visual-c-2010-stdistringstream-crash-in.html" rel="nofollow">http://mcdougalljonathan.blogspot.com/2011/12/visual-c-2010-stdistringstream-crash-in.html</a> or google for "visual studio vd2 gtk...
2
1,066
Unable to load classifier in OpenCV for Android
<p>I want to use face and eye classifiers in my application. The concept is to copy the contents of the classifiers xml files you have under Resources.Raw and add them to some folder under the application using <code>InputStream</code> and <code>OutputStream</code>, then try to load these classifiers from that folder t...
2
1,889
Web3 formatter.js loading issue
<p>I am trying to create a small ethereum blockchain application with NextJS.</p> <p>Import Web3 is causing some issue</p> <pre><code>ModuleParseError: Module parse failed: C:\Path\node_modules\web3-core-helpers\lib\formatters.js Unexpected token (296:20) You may need an appropriate loader to handle this file type. | ...
2
1,093
Xamarin iOS: FCM Notifications click event
<p>I have developed FCM notifications in Xamarin.iOS app. Now I need navigation on notifications click, Where I can handle that to go to specific screen/viewController of app</p> <p>My appDelegate Class with all overloaded methods </p> <pre><code>namespace edTheS { [Register("AppDelegate")] public class AppDe...
2
3,993
Reading using urllib2.urlopen()
<p>I am trying to use urllib2 module in python to fetch content of a url.</p> <p>Let's say my url is "<a href="http://chortle.ccsu.edu/AssemblyTutorial/Chapter-01/ass01_12.html" rel="nofollow">http://chortle.ccsu.edu/AssemblyTutorial/Chapter-01/ass01_12.html</a>"</p> <p>When I try to fetch it's content using these tw...
2
1,032
Error: Module parse failed: Unexpected character '@' Angular
<p>I am learning about webpack and trying to implement it. However, I receive the following error, I have tried to search but I cannot seem to find a loader specific to this case? What am I doing wrong?</p> <p><strong>Error:</strong> </p> <pre><code> ERROR in ./src/app/app.module.ts Module parse failed: Unexpec...
2
1,800
java.lang.RuntimeException: Unable to start activity
<p>My app always crashes when i start it. This is the error on the Android Monitor. The following code is from my fragment which should start on the beginning of the app:</p> <pre><code>01-30 23:42:55.281 5767-5767/silverbeach.meintieralter E/AndroidRuntime: FATAL EXCEPTION: main ...
2
4,881
Workaround for adjustresize and adjustpan bug
<p>I'm looking for a workaround this issue. I've looked at:</p> <p><a href="https://stackoverflow.com/questions/4558810/adjustpan-not-preventing-keyboard-from-covering-edittext">adjustPan not preventing keyboard from covering EditText</a></p> <p><a href="https://stackoverflow.com/questions/7300497/adjust-layout-when-...
2
2,246
How to enforce the use of a method's return value in C#?
<p>I have a piece of software written with fluent syntax. The method chain has a definitive "ending", before which nothing useful is actually done in the code (think NBuilder, or Linq-to-SQL's query generation not actually hitting the database until we iterate over our objects with, say, ToList()).</p> <p>The problem ...
2
1,151
how to combine overlay and camera image together in iOS?
<p>I want to develop a application in which user can change there hair style. so i add a overlay in camera view by using following code files and try to combine both image.</p> <p>Here is my <code>ViewController.h</code> file</p> <pre><code>#import &lt;UIKit/UIKit.h&gt; @interface ViewController : UIViewController&l...
2
2,421
Angular Material Data Table with filtering using Firestore
<p>This is a material data table which uses an example database to populate it. It also incorporates sorting, pagination, and filtering. I have already managed to populate a table with my Firestore data (coming from a service) with sorting and pagination functionality. However I can not get the filtering to work and...
2
4,108
Is there a way to add multiple strings to a stack without using a push method each time
<p>I am working on a program to help student learn all the presidents in order. I am using a stack. I want to create a stack with all of the presidents in order. Then the user will enter a president name and the program will compare there input with the top of the stack.</p> <p>I want to know if there is a way to fill...
2
1,386
CredentialRetrievalError: Failed to refresh credentials
<p>For some reasons I'm parallely invoking a lambda function, for this I got the method <code>invoke</code> inside some function. An example is</p> <pre><code>import boto3 import json def some_function(param1, param2): # Example payload payload = { 'body': '{&quot;key1&quot;: ' + f'&quot;{param1}&quot; ,...
2
1,728
Using factory method to create typed HTTP client, ASP.NET Core 2.1
<p>I'm following guides/docs on registering HTTP client within my application. There are couple of services I need to call so I decided to go with "Typed clients".</p> <p>In order to call another service I need to use OAuth - since this is service-to-service call, when I obtain access token, I cache it + I have setup ...
2
1,487
an empty buffer socket
<p>i have this code server part:</p> <pre><code>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.Net.Sockets; using System.Net; using System.Threading; u...
2
5,135
PHP - templating with custom tags - is this a legit use of eval?
<p><strong>Overview</strong></p> <p>Around the end of 2009, I wrote a simple templating system for PHP/HTML to be used in-house by our designers for brochure-ware type websites. The goal of the system is to allow templating in otherwise pure HTML via custom tags that are processed by PHP. For example, a templated page...
2
1,285
Android Changing OpenGL Coordinate System
<p>Ok so I found this <a href="https://stackoverflow.com/questions/5814374/blank-screen-when-using-gluortho2d">thread</a>, which is what I believe I need to do. However, I am not using <code>GL10</code> but <code>GLES20</code>. <code>glOrthof</code> isn't a part of the <code>GLES20</code> API.</p> <p>What I want to do...
2
2,742
Image rotation in Angular4
<p>I am trying to rotate am image before uploading to my server. The steps I took so far are:</p> <ol> <li>Convert the image to Base64.</li> <li>Rotating the base64 string by using canvas.</li> <li>Converting the rotated Base64 to the image.</li> </ol> <p>But I am not able to convert it back into image format. The fi...
2
1,358
B2C as IdP for SalesForce
<p>Completely new to B2C. Tried both of these walkthroughs, but I'm missing something still:</p> <p><a href="https://github.com/Azure-Samples/active-directory-b2c-advanced-policies/blob/master/Walkthroughs/RP-SAML.md" rel="nofollow noreferrer">https://github.com/Azure-Samples/active-directory-b2c-advanced-policies/bl...
2
1,234
Populate data from mysql to ejs
<p><a href="https://github.com/AEkman/Quiz" rel="nofollow noreferrer">Link to github https://github.com/AEkman/Quiz</a></p> <p>I'm trying to get data from mysql database and print to a html table using EJS.</p> <p>This is my function call from database.js:</p> <pre><code> this.getUsers = function (res) { conn...
2
1,483
*ngFor two values from array
<p><a href="http://plnkr.co/edit/Us4AUk39xPmDM3y0f2lH?p=preview" rel="nofollow">Plunker</a></p> <p>I'm trying to format data in angular using pipes. for the headers and fields names I use an array passed in from typescript, it works very nice. problem is when I try to pass in the field type from the same array, angula...
2
1,109
In portlets .jsp page I connect an applet, and after this it throws Exceptions
<p>In portlet's .jsp page I connect an applet, and after this it throws Exception Portlet system is Liferay</p> <p>"'Name of portlet' is temporarily unavailable." shows on the page.</p> <p>html/jsp code for applet:</p> <pre><code>&lt;APPLET name="SignApplet" mayscript code="SignApplet.class" archive="&lt;%=renderRe...
2
2,472
The type or namespace name 'IndexModel' could not be found (are you missing a using directive or an assembly reference?)
<p>I am getting several of the following errors after compiling my ABP Commercial based solution.</p> <pre><code>Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'IndexModel' could not be found (are you missing a using directive or an assembly referenc...
2
8,366
Mac Window Won't Let Me Resize to Smaller, possibly constraints?
<p>I'm not positive about what is going wrong, but my guess is that it is constraints related.</p> <p>When I try to resize my NSWindow, I'm able to make it larger without a problem. However, when I try to make it smaller, the window won't change size at all. Very few elements in the window have constraints with fixed ...
2
1,787
Get Google Android Subscription API expiration time for a subscription token.
<p>When I make the following request, Google only gives error 503, and won't provide any useful information. </p> <p>I'm following the documentation here: <a href="https://developers.google.com/android-publisher/v1/purchases/get">https://developers.google.com/android-publisher/v1/purchases/get</a></p> <p>The authoriz...
2
1,053
Get data from an entity
<p>I've a lot of problems to show entities data in the page. I've found a solution. I use the ids array created by the entity, however I'm not really satisfied by this solution, do you have a better way to show entity datas?</p> <p>I used the ids array to extract the data, but I would like to access directly the entit...
2
2,595
Can I style different GeoJSON layers using the same style function?
<p>I am new to Leaflet and JavaScript. I would like to know whether or not I can code my Leaflet map in a more concise way.</p> <p>My map includes three GeoJSON layers in three different colors. I have set the colors by calling separate style functions for each layer. The function "style" returns blue, the function "s...
2
1,087
Ansible Conditional - Compare registered variable to a value
<p>I need your help since I'm at a complete loss here. We started checking Ansible as a configuration manager (the AWX Project). We are currently based on a Chef Infra configuration manager. In chef when you want to control a resource from happening you can use <code>only_if</code> or <code>not_if</code></p> <pre><code...
2
3,723
Savon HTTPS Request with HTTP authentication
<p>I have written an integration with a SOAP API using savon. I am running into issue which seems to be only with certain OSs. The reason I say that is because the same code works on CentOS6 and MacOSX but it refuses to work with Ubuntu12.04. The code I'm using is:</p> <pre><code>@client = Savon.client do wsdl &quot;...
2
1,891
Why my EditText copy/paste menu is under the EditText? How change the z-order of popup window?
<p><strong>NOTE</strong></p> <p>If someone know how to <strong>order (z-order) Windows added via windowmanager, i will also accept the answer</strong> because it's will answer all the question. Actually i only find to do <code>windowManager.removeView(MyView)</code> following immediatly by <code>windowManager.addView(...
2
1,032
Drop down menu items not visible
<p>I have made a navigation menu bar and also two dropdown menus with 3 items each. My problem is that, below this menu, I have a slider, so when I hover my dropdown, two of the three items are hidden behind the slider.</p> <p>How can I solve this?</p> <p>My HTML:</p> <pre><code>&lt;div id="nav"&gt; &lt;div id="...
2
1,399
Performance tuning LDA in spark
<p>I'm implementing an LDA model in spark (via the Scala API), and testing the model with varying numbers of topics. It seems to work fine in general, but encounters intermittent task failures that I'm pretty sure are related to memory issues. The relevant parts of my current code are below.</p> <p>Note that I'm loadi...
2
1,553
ajax json javascript
<p>So in trying to have javascript pass values to a php script using Ajax i get the following error message.</p> <p>Uncaught SyntaxError: Unexpected end of input</p> <p>In stepping through the code I found saw that my response from my script came back a null string. Would someone please point me to my mistake, I cann...
2
1,037
MySQL - joining tables on same table multiple times with different conditions takes forever
<p>Simplifying, I have four tables.</p> <pre><code>ref_TagGroup (top-level descriptive containers for various tags) ref_Tag (tags with name and unique tagIDs) ref_Product ref_TagMap (TagID,Container,ContainerType) A fifth table, ref_ProductFamily exists but is not directly part of this query. </code></pre> <p>I use t...
2
2,254
How do I fix the fields_for error: @ "is not allowed as an instance variable n" in Rails?
<p>My goal is to enable a user to be able to submit multiple NewsImages from a parent Blog form. </p> <p>My Blog model looks like this:</p> <pre><code># == Schema Information # Schema version: 20091006171847 # # Table name: blogs # # id :integer(4) not null, primary key # title :string(255) # bo...
2
3,054
SQL Server FOR XML PATH vary tags dynamically
<p>Trying to use FOR XML in SQL 2012. Need to have a result like this:</p> <pre><code>&lt;Loader xmlns:xsi="url1" xmlns="url2"&gt; &lt;Buy_New&gt; &lt;Ticker&gt;IBM&lt;/Ticker&gt; &lt;Acct&gt;12345&lt;/Acct&gt; &lt;Qty&gt;10&lt;/Qty&gt; &lt;/Buy_New&gt; &lt;Sell_New&gt; &lt;Ticker&gt;MSFT&lt;/Tic...
2
1,095
ExtJS grid store - writing information to MySQL on "Save"/"Update" via CodeIgniter
<p>I have a page containing a ExtJS 4.2.2 dataStore and gridPanel showing items created using information from various tables in a MySQL database.</p> <p>The purpose of the generated grid is to provide a "confirmation" to the user before any information is actually generated in the database in a table separate to thos...
2
2,672
Extracting CSV Header data type
<p>In my current project, I am trying to derive the data type of CSV file. For instance, the following is the .CSV file.</p> <pre><code>sepallength,sepalwidth,petallength,petalwidth,class 6.2,2.8,4.8,1.8,Iris-virginica 6.3,2.9,5.6,1.8,Iris-virginica 5.1,3.5,1.4,0.3,Iris-setosa 5.2,3.5,1.5,0.2,Iris-setosa 5.9,3,4.2,1.5...
2
1,735
Image does not show up in selectbox (Twitter Bootstrap plugin)
<p>I am trying to create a select box that shows all Twitter Bootstrap Icons with its text. Therefore I am using the <a href="http://silviomoreto.github.io/bootstrap-select/" rel="nofollow noreferrer">Bootstrap-Select Plugin</a>. One of the images shows up in the list, but the rest is somehow hidden. </p> <p><img src=...
2
1,436