title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Front Loaded and Back Loaded | Normal Distribution Column Chart and S Curves in Excel | <p>Most of us may be aware of normal distribution curves however those who are new to front-loaded and back-loaded normal distribution, I would like to provide the background and then would proceed on stating my problem.</p>
<hr>
<p><strong>Front-Loaded Distribution</strong>: As demonstrated below, it have a rapid st... | 1 | 1,136 |
Scikit-learn's GridSearchCV with linear kernel svm takes too long | <p>I took sample code from sklearn website, which is</p>
<pre><code>tuned_parameters = [{'kernel': ['rbf'], 'gamma': [1e-3, 1e-4], 'C': [1, 10, 100, 1000]},
{'kernel': ['linear'], 'C': [1, 10, 100, 1000]}]
scores = [('f1', f1_score)]
for score_name, score_func in scores:
print "# Tuning hyper-parameters ... | 1 | 1,896 |
Netty channelRead never called | <p>I've played a bit with netty and followed a video(<a href="https://www.youtube.com/watch?v=tsz-assb1X8" rel="nofollow">https://www.youtube.com/watch?v=tsz-assb1X8</a>) to build a chat server and client the server works properly(I tested with telnet and here it works) but the client does not recives data. The channel... | 1 | 1,401 |
How to convert Confluence Storage Format XML to HTML? | <p>I am pulling content from confluence using the REST API.</p>
<p><a href="https://docs.atlassian.com/atlassian-confluence/REST/3.2/" rel="nofollow noreferrer">https://docs.atlassian.com/atlassian-confluence/REST/3.2/</a></p>
<p>The API returns confluence pages with a content property. The content is a mix of XHTML ... | 1 | 1,188 |
How to get id back, after posting data to mongoDb? | <p>I am using node.js, angularjs, & mongoDb. <br/>
I am creating a product upload page.<br/><br/>
It is divided into 2 parts:<br/></p>
<ol>
<li><strong>Data page</strong>: This part will contain, textfields & dropdowns.</li>
<li><strong>Image Upload page</strong>: This part will have image upload control.
<br... | 1 | 1,046 |
Function pointer in swift | <p>I'm following this <a href="https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ref/doc/uid/10000057i-CH16-SW3" rel="nofollow noreferrer">tutorial</a>, especially I have problems to convert this function in Swift language:</p>
<pr... | 1 | 1,732 |
How to format the list items of QCompleter's popup list properly? | <p>I want to investigate how to make a small user interface in which a user can type some letters and gets some suggestions based on a given data source (list here) which makes searches easier. For this purpose i am using Qt's <code>QCompleter</code> class.</p>
<p>In the matching elements the typed letters shall be hi... | 1 | 3,776 |
terminate called after throwing an instance of 'std::bad_alloc' | <p>This is my setup (boiled down). I have a "layout function":</p>
<pre><code> struct LayoutFunc {
LayoutFunc( int limit , int value ) { lim.push_back(limit); val.push_back(value); }
//LayoutFunc(LayoutFunc&& func) : lim(func.lim),val(func.val) {}
LayoutFunc(const LayoutFunc& func) : lim(func.... | 1 | 1,524 |
Bad magic number for Bundle in Android | <p>I'm passing data from one activity to other activity with this code:</p>
<pre><code> @Override
public void execute(List<Report> reports, Questions question) {
Intent replyIntent = new Intent(listener, ReplyActivity.class);
replyIntent.putExtra("id", 0L);
replyIntent.putExtra("quest... | 1 | 2,922 |
Docker: not found when running cmds in jenkinsfile | <p>I am new to docker and CI. I am trying to create a jenkinsfile that would build and test my application, then build a docker image with the Dockerfile i've composed and then push it into AWS ECR. The steps I am stuck on is building an image with docker, i receive and error message <code>docker: not found</code>. I d... | 1 | 1,688 |
Spring security 403 forbidden error keeps happening even with csrf disable | <p>I've been following a tutorial from <a href="https://programmingtechie.com/2019/11/08/build-a-full-stack-reddit-clone-with-spring-boot-and-angular-part-3/" rel="nofollow noreferrer">https://programmingtechie.com/2019/11/08/build-a-full-stack-reddit-clone-with-spring-boot-and-angular-part-3/</a>.</p>
<p>And for some... | 1 | 1,401 |
Renderbox was not laid out when added to a row | <p>I have looked at quite a few answers about this error, and I'm not quite sure which widgets width is the problem. I would ideally like a vertical form that can scroll, and is fairly manageable. I have the form working like I want, but as I add more fields, I will need to scroll. In preparing for this, I've also thou... | 1 | 3,395 |
validate login & redirect to success page using jquery validate plugin | <p>I am new to advance level of jQuery scripting and here I am using jquery validation for my login page.</p>
<p>If my login page was success it has to redirect to success page the code was working fine with the below code when I click submit button . </p>
<pre><code><form id="form1" name="login" method="post" act... | 1 | 1,250 |
matdialog 'mat-label' is not a known element | <p>I have an <code>angular 5.0.2</code> app. I'm trying to put a form in my <code>MatDialog</code> component. The dialog works but when I put from fields in there it breaks and gives the error.</p>
<blockquote>
<p>compiler.js:466 Uncaught Error: Template parse errors: 'mat-label' is
not a known element:<br />
1 . If 'm... | 1 | 2,616 |
Overwriting CSS from CSS library (Bootstrap) | <p>My main issue with using CSS libraries is that they often overwrite custom CSS styles that I specifically set. For example, here I have a list that exists within a Bootstrap expand/collapse menu:</p>
<pre><code><ul class="nav navbar-nav">
<li>
<a href="#" style=""><img src="images/arro... | 1 | 1,525 |
pymongo.errors.CursorNotFound: cursor id '…' not found at server | <p>I am trying to read about 1M documents from mongodb to csv file using pymongo. My code looks like:</p>
<pre><code>import csv
from pymongo import MongoClient
from datetime import datetime
from bson import json_util
from tempfile import NamedTemporaryFile
client = MongoClient('mongodb://login:pass@server:port')
db =... | 1 | 1,134 |
angular2 failing lodash import | <p>I started simple Angular 2 app, all working. But when I add import of lodash and try to use it, I get errors and the app stops working, and can't figure out what is the problem.</p>
<p><strong>I am getting these 2 errors in console:</strong></p>
<blockquote>
<p>Uncaught SyntaxError: Unexpected token <__exec @... | 1 | 2,219 |
expression pattern of type 'CountableClosedRange<Int>' cannot match values of type 'Int'? | <p>At one point before Swift 3 this code would work without any compile errors however after converting to Swift 3 this code isn't compiling and I don't completely understand how the value types are different.</p>
<p>The error given is <code>expression pattern of type 'CountableClosedRange<Int>' cannot match val... | 1 | 1,335 |
Notice: Trying to get property of non-object - nor is foreach looping properly | <p>For some reason I cannot for the life of me figure out/understand why this is not working properly...All I am trying to do is display comments on a photo page. The photo I am testing this on has 2 comments but all I get is the following:</p>
<pre><code>Notice: Trying to get property of non-object in /Applications/M... | 1 | 3,091 |
How can I display value of input type date when edit data on vue component? | <p>My vue component like this :</p>
<pre><code><template>
<section>
...
<form-input id="total-sold" name="total-sold" :value="products.total_sold">Total Sold</form-input>
<form-input id="created-at" type="date" name="created-at" :value="products.created_at">Cre... | 1 | 1,059 |
Selenium is not running with Firefox 12.0 | <p>Selenium is not working after Firefox upgraded to latest version 12.0. It is failing with below message. Please advise, it is still working fine if i use older version of firefox. </p>
<pre><code>org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Fire... | 1 | 1,084 |
Ruby Kafka Uncaught exception: Failed to find group coordinator | <p>I use Apache Kafka as Docker container <a href="https://hub.docker.com/r/wurstmeister/kafka/" rel="nofollow noreferrer">https://hub.docker.com/r/wurstmeister/kafka/</a></p>
<p>I'm able to successfully connect to Kafka from my Java application with Spring Kafka.</p>
<p>But when I try to connect to Kafka from the Ru... | 1 | 2,307 |
Adding custom list adapter to a TableLayout | <p>I have a custom list adapter inside of a TableLayout. This TableLayout is nested inside a of a LinearLayout.</p>
<p>The list adapter expands if new childviews are added to the list. I want the size of the TableRow to increase dynamically when the size of the list adapter increases. And the buttons pushed down when ... | 1 | 1,251 |
how to call qweb report in another model in odoo? | <p>I have created a wizard in the that using many2one field of another model. where the qweb-report has been mentioned. Now I want to select 1record(from many2one field) and print the respective report.[previously i've done invoice printing in that menu's form view.] . sometimes here empty report is getting prints.Can ... | 1 | 1,167 |
Read huge table with LINQ to SQL: Running out of memory vs slow paging | <p>I have a huge table which I need to read through on a certain order and compute some aggregate statistics. The table already has a clustered index for the correct order so getting the records themselves is pretty fast. I'm trying to use LINQ to SQL to simplify the code that I need to write. The problem is that I don... | 1 | 1,066 |
What am i doing wrong? : Context Cannot be used while the model is being Created | <p>I'm stucked with this problem and i've spent more than 3 hours scouring the web and SO for a solution to no avail. My Code keeps throwing this error </p>
<blockquote>
<p>The context cannot be used while the model is being created. This
exception may be thrown if the context is used inside the
OnModelCreating ... | 1 | 3,183 |
ChartJS changing displayed data based on date? | <p>I have a simple section in which I am displaying data from the database
, in my database I have two tables which shares 'sid` (session id); my tables
looks like this.</p>
<pre><code>Events table
id sid targetbuttonid
1 1377Qqng1hn4866h7oh0t3uruu27dm5 Yes
2 9021391Q... | 1 | 2,800 |
Getting objectManager / serviceLocator in fieldset in ZF2 | <p>In order to get my object manager inside my fieldset's init() function I followed the <a href="http://framework.zend.com/manual/2.1/en/modules/zend.form.advanced-use-of-forms.html#the-specific-case-of-initializers" rel="nofollow">docs</a>
At first I found out that I had to change</p>
<pre><code>public function setS... | 1 | 1,384 |
Returning an image into imageView from Google Places Photo JSON | <p>I'm looking to get the photos from the Google places API, and have them store into a URL or Image to be displayed to the user in a seperate view controller.</p>
<p>It appears the photo json returns this for each location:</p>
<pre><code> photos = (
{
height = 466;
... | 1 | 1,221 |
Pod install fails on m1 macbook | <p>Error in running pod install.
I've been trying to run pod install but it keeps failing on all projects, I even created new projects from scratch to eliminate the suspicion that it might be an error in the configuration but it also failed .<br />
I've tried gem cocoapods and brew cocoapods, I've also tried with and w... | 1 | 1,812 |
Accessing ServiceStack Authenticated Service using Ajax | <p>I've been working through a simple API example, a modified version of the ServiceStack Hello World example with authentication. The goal of the proof of concept is to create an a RESTful API that contains services requiring authentication accessible entirely through Ajax from several different web projects.</p>
<p... | 1 | 2,159 |
Using JSON.net to deserialize a list of nested objects | <p>Thanks in advance for your help. </p>
<p>I have a JSON file that contains a list of nested objects. Using the code below - I get an exception on the call to DeserializeObject. We are using JSON.net</p>
<p>Any help is appreciated</p>
<p>JSON: </p>
<pre><code>[
{
"Email": "james@example.com",
"... | 1 | 1,313 |
Python: Replacing backslashes to avoid escape sequences in string | <p>I´m trying to replace the single backslashes i get within a string with double backslashes, because sometimes the the "backslash+character" combination creates an escape sequence. I have tried various ways (mostly from other stackoverflow questions), but nothing gets me the correct results so far.</p>
<p>Example ... | 1 | 1,210 |
When using a custom X509KeyManager Java is not able to determine a matching cipher suite for the SSL handshake | <p>I'm working with Java7 and JAX-WS 2.2.</p>
<p>For a SOAP web service I need to create a custom <code>X509KeyManager</code> in order to find the correct certificate for each connecting client in a JKS keystore.</p>
<p>However, I'm already struggling to get the my custom key manager running. So far I'm using the def... | 1 | 2,199 |
Switching data models in AngularJS for dynamic select menus | <p>What I am trying to do is have three different <em><select></em> menus which will be all be tied into the same data. Changing the first select menu, will change menus 2 and 3's data.</p>
<p>This is the inside of my Controller:</p>
<pre><code>$scope.data = [
{
"id" : "0",
"site... | 1 | 1,132 |
Bootstrap modal appearing under background in AngulaJS application | <p>This question might be flagged as duplicate but my issue isn't solved by the things mentioned in the relevant SO thread, here is the <a href="https://stackoverflow.com/questions/10636667/bootstrap-modal-appearing-under-background?page=1&tab=votes#tab-top">link</a> to that </p>
<p>I have to make a modal with an ... | 1 | 1,120 |
Docker - Can't share data between containers within a volume (docker-compose 3) | <p>I have some containers for a web app for now (nginx, gunicorn, postgres and node to build static files from source and a React server side rendering). In a Dockerfile for the node container I have two steps: build and run (<a href="https://www.dropbox.com/s/f2l4f1rzhuxat7d/Dockerfile.node?dl=0" rel="noreferrer">Dock... | 1 | 1,424 |
How to get the text of an anchor tag selected by xPath() using selenium and Mocha | <p>I have successfully selected an <code><a></code> tag. I want to display the text of the anchor tag and I am unable to do so.</p>
<p>I am using selenium, mocha, javascript and phantomJS</p>
<p>Here's my script(full in detail):</p>
<pre><code>var assert = require('assert');
var test = require('selenium-webdri... | 1 | 3,500 |
Fatal Error, ArrayObject::offsetGet() must be compatible with that ArrayAccess:offsetGet() with Zend framework 2.3 on Linux Debian 2.6.32-46 | <p>Hi i have problem with ZF2, </p>
<p>when trying to access at public/index from the browser i got this Fatal Error from Server:</p>
<pre><code>PHP Fatal error: Declaration of Zend\\Stdlib\\ArrayObject::offsetGet() must be compatible with that of ArrayAccess::offsetGet() in /var/www/somevirtualhost/vendor/zendframe... | 1 | 1,117 |
metrics-server with CrashLoopBackOff | <p>I´m not able to run the metrics-server pod, it gets to crashloopbackoff error. Running "kubectl get pods -n kube-system" I see the following output:</p>
<pre><code>NAME READY STATUS RESTARTS AGE
calico-kube-controllers-6b9d4c8765-mht4w 1/1 Running 0 17m
calico-node-2rmzg 1/1 Running 0 17m
coredns-6955765f44-87kbn 1... | 1 | 4,899 |
Trying to start GrizzlyServer - failed to start listener - adress already in use | <pre><code>static HttpServer server;
static Datenbank db = new Datenbank();
public static void main (String[] args) throws InterruptedException, IOException{
startServer();
db.dbinfo();
Thread.sleep(10*60*1000);
System.out.println("Server wurde beendet");
}
public static void startServer() throws IO... | 1 | 1,143 |
How do you remove NA's in geom_bar when plotting data subsets? | <p>this is related to the question <a href="https://stackoverflow.com/questions/11403104/remove-unused-factor-levels-from-a-ggplot-bar-plot?lq=1">here</a>, but the proposed solutions don't work in my case. </p>
<p>I've already posted a question regarding my large <code>data.frame</code> <a href="https://stackoverflow.... | 1 | 1,571 |
PODS_ROOT and other pods env variables not set when compiling Ionic app | <p>I have built an Ionic 2 app which uses Intercom (a third-party extension). Intercom is installed using cocoapods.</p>
<p>When compiling my app I am given the errors:</p>
<pre><code>diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with... | 1 | 1,067 |
Serving static files with Ngnix, Django and Docker | <p>I am fairly new to Nginx and Docker and am currently facing an issue regarding a docker container setup. The setup consists of three containers: Nginx, Django and Postgres. It works as expected for the most part, however, I am not able to access static files through Nginx.</p>
<p>Here is the nginx.conf:</p>
<pre><... | 1 | 1,222 |
Scroll event isn't propagated to parent | <p>I am having a grid-div with <code>overflow-y: scroll;</code> and this grid-div is some time 10000pixels long. On mouserhover of a specific items of a grid-div I am firing mouserhover event, and user shows tooltip over the element. Now user add this popup under the body element. and user has written scroll event on w... | 1 | 1,355 |
Matplotlib error message: "TypeError: 'Ellipse' object is not iterable" | <p>I tried to run an animation within matplotlib (Python) animate and I got the error</p>
<pre><code>TypeError: 'Ellipse' object is not iterable
</code></pre>
<p>Ellipse is an object of type "patches" ... </p>
<p>the result being:</p>
<p><a href="https://i.stack.imgur.com/skEBk.png" rel="nofollow noreferrer"><img s... | 1 | 5,513 |
HTML Strict & CSS: How do I close the gap? | <p>In the following web page, there is a gap of a few pixels between the image and the div. (I've tested in Firefox 3 and Safari 4.)</p>
<p>How can I close the gap?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-... | 1 | 5,021 |
File transfer using XMPP (Extension XEP-0065) | <p>Not sure why I am getting turn socket failed (turnSocketDidFail called). Anybody can help me in figure out this? Please point me what am I doing wrong here. I know there are lots of question like this and I have already checked all of these and from that I have taken little help already. One of client is Spark and o... | 1 | 1,695 |
Java Spring MVC Template Project Problems | <p>Brand new project that I just created using the Spring Template for MVC. I try to run on Server and get the following.</p>
<p>Any ideas?</p>
<pre><code>SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].Standar... | 1 | 2,580 |
WPF Custom Buttons below ListBox Items | <p>WPF Experts - </p>
<p>I am trying to add buttons below my custom listbox and also have the scroll bar go to the bottom of the control. Only the items should move and not the buttons. I was hoping for some guidance on the best way to achieve this. I was thinking the ItemsPanelTemplate needed to be modified but wa... | 1 | 2,811 |
How to put a floating widget in flutter? | <p>What I want to do is make a TextField stay in the same position by scrolling down the screen. I want to know if there is a way to do this?</p>
<p>This is the TextField that I want to be floating:</p>
<p><a href="https://i.stack.imgur.com/WdYgn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WdYg... | 1 | 1,078 |
Nextjs external css not updating on client side page transitions | <p>I am still new to nextjs so i don't know if this is a bug or if i just wrongly implemented it. </p>
<p>I successfully managed to extract all my scss files using this guide:
<a href="https://github.com/zeit/next-plugins/tree/master/packages/next-sass" rel="nofollow noreferrer">https://github.com/zeit/next-plugins/tr... | 1 | 1,115 |
Efficient 8-Connected Flood Fill | <p>I've been using Paul Heckbert's excellent seed fill algorithm (available <a href="ftp://ftp-graphics.stanford.edu/pub/Graphics/GraphicsGems/Gems/GGems.tar.Z" rel="nofollow">here</a> and in the book <a href="http://www.graphicsgems.org" rel="nofollow">Graphic Gems (1990)</a>).</p>
<p>Convoluted as the algorithm may ... | 1 | 1,538 |
XML Signature - Different signature value in PHP? | <p>I want to implement an XML digital signature in PHP. I'm testing the correctness of the signature at <a href="https://www.aleksey.com/xmlsec/xmldsig-verifier.html" rel="nofollow noreferrer">this verifier</a>.</p>
<p>I'm getting the wrong signature value, so I'm going to explain step by step what I'm doing and pleas... | 1 | 3,010 |
Adding Collapsible functions using Material-UI Drawer | <p>I was able to setup the Drawer working in my application. One feature I found missing in the default is the collapsible option, where sections are nested. an example is Mail which would have <code>inbox, sent, outbox,</code> etc.</p>
<p>I want it to look something like this:</p>
<p><code>Mail
Inbox
Sent
O... | 1 | 1,267 |
Invoking WebMethods with XmlHttpRequest and Pure JavaScript | <p>I have what should be a relatively simple task that's frankly got me stumped. I've researched it until my brain is fried, and now I'm punting, and asking you guys for help. </p>
<p>Here's the scenario:</p>
<ul>
<li>I have an ASPX page (Q2.aspx) that is decorated with the <code>WebService</code>,
<code>WebServiceBi... | 1 | 2,504 |
dbContext An entity object cannot be referenced by multiple instances of IEntityChangeTracker | <p>So the problem I'm having is the following. When going into this if statement, then I want to delete all the entries with ClearDbInstallForGroupAndHeader() from table InstallationBOM. Then I want to add all the entries within NewInstallationBoms into my InstallationBOM table and while doing this calculating total co... | 1 | 2,740 |
Python switch function | <p>I've been trying to write a simple Port Scanner using a simple switch function built with if. I've already searched here for a proper solution on how to make the switch function as usable as in C++ or similliar. I found the problem already being discussed on here <a href="https://stackoverflow.com/questions/60208/re... | 1 | 1,486 |
jQuery Validate not working for Multi-select dropdown | <p>I am using Bootstrap with Bootstrap Multi-select plugin along with jQueryValidation for validating the fields.</p>
<p>Unfortunately, when I render the dropdown as a single select, validation is not triggered.</p>
<p>Any Ideas?</p>
<p><strong>Javascript</strong></p>
<pre><code> $( "#signupForm" ).validate(... | 1 | 1,545 |
pass data from popup to parent | <p>I have a parent w/ a popup child. When parent loads, I have to call a function within the popup without showing the popup (thus, I load "pupLove" but don't include it in layout)....I then pass this data to the parent. When the user manually clicks another button to open the popup, the same function is called & d... | 1 | 1,247 |
Is it possible to forward to Siteminder login.fcc from a JSF action? | <p>I have a "custom" (JSF) login page for my application. My company uses Siteminder for authentication. So, in order to login to Siteminder with a "custom" page, I have to have a form that posts to /login.fcc with the appropriate form fields (username/password and a couple of Siteminder specific hidden fields).</p>
<... | 1 | 1,057 |
Traversing through CSV file in PHP | <p>I have this code :</p>
<pre><code><?php
$handle = fopen("GeneratePicklist.csv", "r");
$data = fgetcsv($handle, 5000, ",");
?>
</code></pre>
<p>Which opens up a php file and converts it into a php array. Then I will list out the array contents and display them into a formatted page. I have this code and... | 1 | 1,400 |
Histogram of sum instead of count using numpy and matplotlib | <p>I have some data with two columns per row. In my case job submission time and area.</p>
<p>I have used matplotlib's hist function to produce a graph with time binned by day on the x axis, and count per day on the y axis:</p>
<pre><code>import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
imp... | 1 | 1,702 |
Use superCSV to read a large text file of 80GB | <p>I want to read a huge csv file. We are using superCSV to parse through the files in general. In this particular scenario, the file is huge and there is always this problem of running out of memory for obvious reasons. </p>
<p>The initial idea is to read the file as chunks, but I am not sure if this would work with ... | 1 | 1,538 |
How to start and stop timer display in ReactJS | <p>I am trying to create a Pomodoro timer in ReactJS. I am having trouble having the timer to stop it's countdown.</p>
<p><strong>PomView.js</strong></p>
<pre><code>const PomView = () => {
const [timer, setTimer] = useState(1500) // 25 minutes
const [start, setStart] = useState(false)
var firstStart =... | 1 | 1,249 |
Detect clusters of circular objects by iterative adaptive thresholding and shape analysis | <p>I have been developing an application to count circular objects such as bacterial colonies from pictures. </p>
<p>What make it easy is the fact that the objects are generally well distinct from the background.</p>
<p>However, few difficulties make the analysis tricky:</p>
<ol>
<li>The background will present grad... | 1 | 2,402 |
`apt-get install librdkafka1` fails on Debian 9.x due to libssl dependency | <p>Basic <code>apt-get install librdkafka1</code> works on Debian 8.x but fails on Debian 9.x. This looks like a dependency version issue regarding libssl. Debian 8.x had libssl1.0.0 and Debian 9.x has libssl1.0.2 and libssl1.1, but no libssl1.0.0 and this version bump just causes the librdkafka1 install to break.</p>
... | 1 | 1,105 |
Android AutoCompleteTextView crashes when remove text fast | <p>I have a list of key words (about 1000 words) and i set this to an ArrayAdapter to be handled by AutoCompleteTextView. The basic process works fine. The problem arise when i selected a long word (10 character above), then use the keyboard backspace button to remove the word (press and hold on the button), after remo... | 1 | 2,266 |
EditableGrid+mysql with add/delete | <p>Soo.. i got an example of EditableGrid (<a href="http://www.editablegrid.net/" rel="nofollow">http://www.editablegrid.net/</a>) a pretty cool grid that lets me load data from mysql table to a html grid with sorting, inline editing + mysql database updates. I added filtering functionality from another example but am ... | 1 | 1,055 |
How to test if a string contains gibberish in PHP? | <p>I am making a registering form for a website and because I'm sure everyone
is going to enter some gibberish in the Secret Answer's input (I do that myself),
I would like to programmatically test that value to see if it's more likely
to be a good answer.</p>
<p>I have taken a look at a function that generates Markov... | 1 | 4,198 |
Package-wide variable assignment in Golang's init() function | <p>I want to initialize a package-wide variable in some Go code to connect to a database, but I keep getting a nil pointer exception, so clearly the assignment isn't occurring properly. This throws an error:</p>
<pre><code>package main
import (
"fmt"
"database/sql"
_ "github.com/lib/pq"
)
var connection *sql.DB
fu... | 1 | 1,505 |
Using dynamic enum as type in a parameter of a method | <p>What i am trying to achieve here is a bit tricky. Let me brief on a little background first before going ahead.</p>
<p>I am aware that we can use a enum as a type to a parameter of a method. For example I can do something like this (a very basic example)</p>
<pre>
namespace Test
{
class DefineEnums
{
... | 1 | 1,446 |
Is the salt contained in a phpass hash or do you need to salt its input? | <p><a href="http://www.openwall.com/phpass/" rel="noreferrer"><em>phpass</em></a> is a widely used hashing 'framework'.<br>
Is it good practice to salt the plain password before giving it to PasswordHash (v0.2), like so?:</p>
<pre><code>$dynamicSalt = $record['salt'];
$staticSalt = 'i5ininsfj5lt4hbfduk54fjbhoxc80... | 1 | 4,139 |
Typescript error got undefined with useState hook | <p>Im new to graphql so I decided to follow this <a href="https://medium.com/make-it-heady/part-2-building-full-stack-web-app-with-postgraphile-and-react-client-side-1c5085c5a182" rel="nofollow noreferrer">guide</a>.</p>
<p>However I got an error when querying (step 7) :</p>
<pre><code>Argument of type '({ __typename?:... | 1 | 1,452 |
Does every stateful intermediate Stream API operation guarantee a new source collection? | <p>Is the following statement true?</p>
<blockquote>
<p>The <code>sorted()</code> operation is a “stateful intermediate operation”, which means that subsequent operations no longer operate on the backing collection, but on an internal state.</p>
</blockquote>
<p><sup>(<a href="https://www.toptal.com/java/top-10-most-co... | 1 | 1,044 |
flock-ing a C++ ifstream on Linux (GCC 4.6) | <h3>context</h3>
<p>I'm slowly writing a specialized web server application in C++ (using the C <a href="https://github.com/davidmoreno/onion" rel="noreferrer">onion http server library</a> and the <a href="http://jsoncpp.sourceforge.net/" rel="noreferrer">JSONCPP library</a> for JSON serialization, if that matters).,... | 1 | 1,078 |
How can I align the slides to the swiper slider? | <p>Good afternoon.
Please tell me how I can align the slides so that when you select the first or last slide on the left or right, there are the same number of next and previous slides.</p>
<p>In other words when selecting the first or last slide it should be like this:</p>
<p><a href="https://i.stack.imgur.com/S5Zmd.p... | 1 | 3,510 |
Upload text as file with POST (multipart/form-data) using php and wget | <p>I'm using PHP + wget to upload a file on an old cgi-bin control panel web-to-fax.</p>
<p>The cgi (dont know its language) checks the file format (doc txt pdf) and then returns me the error: "incorrect file format". If I do it manually everything works fine.</p>
<p>The form is 6 steps long, every step is quite simi... | 1 | 1,074 |
Handler to Handler VERSUS Messenger to Messenger communication in Android | <p><strong>The question:</strong></p>
<p>Is it "better" (= faster and less overhead) to use <a href="http://developer.android.com/reference/android/os/Handler.html" rel="nofollow">Handler</a> to Handler communication compared to using <a href="http://developer.android.com/reference/android/os/Messenger.html" rel="nofo... | 1 | 1,189 |
Table inside div, but still higher than parent div | <p>Why does height="100%" attribute fail to work in the following snippet?</p>
<pre><code><table height="100%" width="100%">
</code></pre>
<p><strong>EDIT</strong>:
code as follows:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd... | 1 | 1,421 |
Angular build - Unmatched selector: % | <p>When I run <code>npm run build</code> which executes <code>ng build -c production</code> build will be completed as expected. But command prompt will be filled with this warning:</p>
<pre><code>Warning: 303 rules skipped due to selector errors:
0% -> Unmatched selector: %
20% -> Unmatched selector: %
53%... | 1 | 3,432 |
Overlay raster plot using plot(...,add=T) leads to arbitrary misalignment of final plot | <p>I have found that when I try to overlay multiple rasters using plot(...,add=T) if I try to overlay more than 3 rasters together the subsequent plot does not align the rasters properly.</p>
<p>My original intent was to create a categorical map of modeled landcover where the darkness of the color representing a cover... | 1 | 1,283 |
docker container fails to start after docker deamon has been restarted | <p>I am using Ubuntu 16.04 with docker 1.11.2. I have configured systemd to automatically restart docker daemon. When I kill the docker daemon, docker daemon restarts, but container will not even it has RestartPolicy set to always. From the logs I can read that it failed to create directory because it exists. I persona... | 1 | 2,008 |
findViewById returns null for preference layout | <p>I have a preference screen (responder_generic.xml) as follows:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<Preference
android:defaultValue="false"
android:key="auto_responder_key"
an... | 1 | 1,562 |
Rails - Refresh view after submit from different controller | <p>I'm having trouble refreshing a view after a form submit creates an Item on a different controller than the current view.</p>
<p>I have 2 models, Users and Items. The Users have multiple Items.</p>
<p>The Users 'show' view lists all of its Items. In the view I have a partial for rendering all the items into separ... | 1 | 1,304 |
Can't debug C++ in VS code with gdb | <p>I'm trying debugging C++ in Visual Studio Code, but here is something wrong.
The debug status keeps scrolling, but no console shows. If I stop debug (shift+ F5), I won't be able to debug again. Whether click the green triangle or F5, nothing happens. <a href="https://i.stack.imgur.com/lbWq1.png" rel="nofollow norefe... | 1 | 2,689 |
Problems Adding to NSMutableArray: attempt to insert nil object at 10 | <p>Hey guys, so I am getting these inconsistent errors when running my program, only about 50% of the time do these errors occur, and at seemingly different points of my program. Here is the console output:</p>
<pre><code>2011-05-11 14:22:03.926 Parking[20611:1903] *** Terminating app due to uncaught exception 'NSInva... | 1 | 4,900 |
Need to populate a Dropdown combo box in Gridview, (unbound column) | <p>I'm having difficulty populating a dropdown list in my gridview.
I have created the column with the code below:</p>
<pre><code> If Not Me.GridViewIsConstructed Then
gv.Columns.Add(createComboBoxWithDDL(Me.ddlGPField.Items, "Bank_GP_Field_Name", "GPField"))
gv.Columns.Add(createComboBoxWithD... | 1 | 5,624 |
`require': cannot load such file -- HTTParty (LoadError) | <p>First off I'm a Newbie in regards to Ruby, and I'm following the simple tutorial on <a href="https://www.distilled.net/resources/web-scraping-with-ruby-and-nokogiri-for-beginners/" rel="nofollow noreferrer">https://www.distilled.net/resources/web-scraping-with-ruby-and-nokogiri-for-beginners/</a></p>
<p>I have a <c... | 1 | 2,448 |
Prevent Socket IO from ping timeout on inactive or not focused browser page on Chrome, firefox & Safari mobile browsers | <p>I have a simple <a href="https://socket.io/get-started/chat" rel="noreferrer">chat</a> app using socket io. Very similar to the socket io chat official demo. Socket io goes to ping timeout on all mobile browsers whenever the user minimizes the page or opens another app or page gets out of foucs.</p>
<p>In my web ap... | 1 | 1,823 |
Cannot run a React app with WebStorm | <p>I am totally new to React and I am trying to follow the examples on <a href="https://reactjs.org/community/examples.html" rel="noreferrer">react official website</a>.</p>
<p>While running the calculator app(index.js) using WebStorm OR intellij idea ultimate </p>
<p><a href="https://i.stack.imgur.com/OxNsn.png" rel... | 1 | 1,122 |
specify .so files in build.gradle file android studio | <p>This is my Directory Structure</p>
<pre><code>src -main
-java
-jniLibs
-armeabi
-lib1.so
-lib2.so
</code></pre>
<p><strong><em>Need to understand what piece of code should be written in build gradle file for these files to be included in the build.
... | 1 | 1,625 |
The Navigation Architecture Component animation | <p>I've been following the sample from <a href="https://github.com/googlesamples/android-architecture-components/tree/master/NavigationBasicSample" rel="noreferrer">NavigationBasicSample</a></p>
<p>but used newest library for navigation:</p>
<pre><code>implementation "android.arch.navigation:navigation-fragment-ktx:1... | 1 | 1,196 |
How to work correctly with Forms, FOS Rest Bundle and many to many relations in Symfony2 | <p>I'm working with Symfony2 Forms and FOSRestBundle.</p>
<p>I'm trying to save in the database, an entity with a many to many relationship.</p>
<p>I create a Form with a collection field (<a href="http://symfony.com/doc/master/cookbook/form/form_collections.html" rel="noreferrer">http://symfony.com/doc/master/cookbo... | 1 | 4,278 |
how to implement Jquery datatable along with sortable() | <p>I am trying to implement data-table to create some schedule and the rows in the table are draggable. I used sortable to implement this functionality
this is my html Code.</p>
<pre><code><link href="~/NewFolder1/jquery.dataTables.min.css" rel="stylesheet" />
<link href="~/NewFolder1... | 1 | 1,587 |
How to add g729 codec in Android application? | <p>i am developing a SIP application for making and receiving a call and i want to add the G729 codec in my application.</p>
<p>currently i am doing analysis on open source project <a href="http://code.google.com/p/sipdroid/" rel="nofollow">SipDroid</a>. if i want to make that application to support G729 codec how to... | 1 | 3,047 |
Why triggers try to insert NULL value when using a field from 'inserted' table? | <p>I have to sync changes done in MSSQL with a remote MySQL database. The changes to be synced are adding invoices and users to the system. The remote server is not expected to be always reachable so I'm trying to set up a kind of log table for storing changes done in MSSQL.</p>
<p>Here is a fully working trigger for ... | 1 | 1,837 |
Bootstrap carousel Not functional | <p>I'm working in Laravel 5.5 which is bundled with Bootstrap and I have my main JS file running appropriately (i.e. laravel mix compiling with all the all the js files loaded with it appropriately). However, bootstrap 3.3.7's carousel is not working at all. The transitions (slide actions) don't work and the buttons do... | 1 | 1,518 |
Project image onto inside of sphere with Python Numpy | <h2>Problem:</h2>
<p>Let's say I have a large image, 5000x3000 pixels. I want to paste this image onto the inside of a sphere of some arbitrary radius.</p>
<p>To do this I will import the image as an array and I will determine the centre of the array. I will loop through each pixel, determining how far displaced it i... | 1 | 1,456 |
java.lang.IllegalArgumentException: Unable to create converter for class com.dlv.dlv.UserResponseInfo for method UserApi.verifyUser | <p>i am using aurae/retrofit-logansquare to parse json in my android retrofit project.
i am getting following error</p>
<blockquote>
<p>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.dlv.dlv, PID: 5922
java.lang.IllegalArgumentException: Unable to create converter for c... | 1 | 1,456 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.