title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Cannot "pip install cryptography" in Docker Alpine Linux 3.3 with OpenSSL 1.0.2g and Python 2.7 | <p><strong>Solved</strong> Wow, these guys are fast... It's basically this <a href="https://github.com/pyca/cryptography/issues/2750" rel="noreferrer">https://github.com/pyca/cryptography/issues/2750</a> It turned out that a security update for openssl was released (DROWN Attack) and that update contained an unexpected... | 0 | 1,113 |
Google Sheets API v4 Spreadsheets.Values.Update returns ERROR 404:Requested entity was not found | <p>I am trying to update a cell on google sheet using Spreadsheets.Values.Update method. I am able to access to the google sheet and read data back, but when using Spreadsheets.Values.Update method, I got the following error:</p>
<blockquote>
<p>com.google.api.client.googleapis.json.GoogleJsonResponseException: 404
... | 0 | 1,697 |
How to copy a row from existing excel sheet to a new excel sheet using Apache POI? | <p>I want to compare two excel sheets and find if any row differs, if it does I want to copy that single row which differs from that excel to a new row in a new excel. Below is a code snippet I took from the net and tried but the problem if I copy the 10th row of the existing excel(for example) to the first row of new... | 0 | 1,434 |
1 pod has unbound immediate PersistentVolumeClaims on Minikube | <p>I'm trying to use kubernetes with a spring boot application and use mysql. But i found this error on minikube dashboard:</p>
<pre><code>0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.Back-off restarting failed container
</code></pre>
<p>A secret file is created for boath user and adm... | 0 | 1,411 |
I got the warning "UserWarning: One or more of the test scores are non-finite" when revising a toy scikit-learn gridsearchCV example | <p>I have the following code which works normally but got a</p>
<pre><code>UserWarning: One or more of the test scores are non-finite: [nan nan]
category=UserWarning
</code></pre>
<p>when I revised it into a more concise version (shown in the subsequent code snippet). Is the output of the one-hot encoder the culprit ... | 0 | 4,343 |
How to connect to a websocket from a different server? | <p>I have <strong>server A</strong> "windows 7 Pro" where I installed <a href="https://nodejs.org/download/" rel="nofollow">node.js</a> and ran it using this command <code>node ws_server.js</code> <a href="http://cjihrig.com/blog/websockets-in-node-js-0-8-6-for-windows-7/" rel="nofollow">following the instructions here... | 0 | 2,320 |
ImportError: No module named django.core.wsgi (ubuntu) | <p>I am following this guide to configure apache for my django web application:
<a href="https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/#basic-configuration" rel="nofollow">https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/modwsgi/#basic-configuration</a></p>
<p>I have installed <a href=... | 0 | 1,406 |
Need to speed up automapper...It takes 32 seconds to do 113 objects | <p>Hi I have some major problems with auto mapper and it being slow. I am not sure how to speed it up.</p>
<p>I am using nhibernate,fluent nhibernate and asp.net mvc 3.0</p>
<pre><code>[Serializable()]
public class Test
{
public virtual int Id { get; private set; }
public virtual string Name {... | 0 | 2,099 |
Exception on getSystemService(Context.AUDIO_SERVICE) | <p>I wanted to create an app that drops an incoming call based on some settings, that seems to be impossible on Android 1.6. So I decided to write an app that changes the Ringer to mute when the call would've been dropped. The thing is that when I call getSystemService(Context.AUDIO_SERVICE) I get an exception.</p>
<p... | 0 | 1,126 |
wordpress display featured image | <p>I am currently trying to display my post's featured image in a horizontal slider that shows three images at the time, and then the next three once clicked (right / left), however I can not get the featured images to show up.</p>
<p>My code:</p>
<pre><code> <div id="primary">
<div id="content" r... | 0 | 1,737 |
Seaborn ValueError: zero-size array to reduction operation minimum which has no identity | <p>I ran this scatter plot seaborn example from their own <a href="https://seaborn.pydata.org/generated/seaborn.scatterplot.html" rel="noreferrer">website</a>,</p>
<pre><code>import seaborn as sns; sns.set()
import matplotlib.pyplot as plt
tips = sns.load_dataset("tips")
# this works:
ax = sns.scatterplot(x=... | 0 | 3,079 |
Bootstrap Validator with datepicker does not validate date | <p>I am using bootstrap validator to validate a form but I have been unable to get it to validate a text box that gets populated by datepicker. When I click in the text box, datepicker displays a calendar. I select a date and the text box gets populated with the selected date (the calendar does not auto-close which i... | 0 | 2,492 |
Fragments are not being released from memory | <p>I have an activity that contains a View Pager that has an adapter FragmentStatePagerAdapter.
each time enter the activity it will take up 200mb of memory, after going back out of the activity(finish()) and then re entering it it will append and double the memory used on the phone.</p>
<p>After troubleshooting the p... | 0 | 3,756 |
Fatal error: Class 'CI_Controller' not found | <p>When I try to access the localhost for my xampp server, an error shows up like this:</p>
<blockquote>
<p>Fatal error: Class 'CI_Controller' not found in<br>
C:\xampp\htdocs\system\core\CodeIgniter.php on line 226</p>
</blockquote>
<p>CodeIgniter.php line 222-227:</p>
<pre><code>require BASEPATH.'core/Controll... | 0 | 4,308 |
Binary XML file line #11: Error inflating class fragment | <p>I am getting two Errors in my Code.</p>
<p>Caused by: java.lang.IllegalStateException: Fragment com.example.dfoley.write_to_file.topFragment did not create a view.</p>
<p>Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class fragment both pointing to Line MainActivity.java:21 wh... | 0 | 2,149 |
Problem deploying on JBoss | <p>I am trying to deploy a web application on JBoss server. However, when I run the server I get an error, as:</p>
<pre><code>08:53:34,453 INFO [TomcatDeployment] deploy, ctxPath=/ZB_app
08:53:35,047 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/ZB_app state=Create mode=Ma... | 0 | 3,874 |
Vue.js - Making helper functions globally available to single-file components | <p>I have a Vue 2 project that has many (50+) <a href="https://v2.vuejs.org/v2/guide/single-file-components.html" rel="nofollow noreferrer">single-file components</a>. I use Vue-Router for routing and Vuex for state.</p>
<p>There is a file, called <strong>helpers.js</strong>, that contains a bunch of general-purpose fu... | 0 | 1,105 |
jquery.form and cross-domain requests | <p>I'm having a hard time trying to make <a href="http://jquery.malsup.com/form/" rel="nofollow noreferrer">jquery.form</a> with a cross-domain request. I'm having issues with Firefox and Chrome (didn't even try IE yet).</p>
<p>Explanation: my whole site is located inside <a href="http://www.mysite.com" rel="nofollow ... | 0 | 1,270 |
Custom close button for jQuery dialog? | <p>I am using jQuery daialog for showing the forms in an ASP.net application. </p>
<p><img src="https://i.stack.imgur.com/bLY2v.png" alt="Screenshot of application"></p>
<p>Everything is working fine. I need to place a custom close button on each form so that when they click this button, I can save the record from... | 0 | 5,897 |
Wildfly 8 Unexpected element '{urn:jboss:domain:web:1.1}subsystem' | <p>I'm getting below error when I start Keycloak service:</p>
<pre><code>0:09:08,028 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
00:09:08,268 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
00:09:08,348 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.1.0.Final "Ken... | 0 | 1,817 |
Flutter reading a file as a stream | <p>I want user to enter text in textfield. When user clicks the fab, the text is written to a file as a new line(appending). I want my app to read the contents of the file and show each line as a listtile in a listview, below the input textfield. When user enters a new text, that should appear in the listview instantan... | 0 | 1,252 |
Python Requests requests.exceptions.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol | <p>I'm on Ubuntu 12.10 with OpenSSL 1.0.1c, python 2.7.3, <a href="http://www.python-requests.org/en/latest/">Requests</a> 1.0.3 and 1.0.4 (tried both), and when attempting to connect to the website in the url variable with the following code.</p>
<pre><code>def SendInitialRequest(xmlmessage, redirecturl):
url = '... | 0 | 1,064 |
How can I set column in row on the card group bootstrap vue? | <p>My vue component like this : </p>
<pre><code><template>
...
<b-card-group deck deck v-for="row in formattedClubs">
<b-card v-for="club in row"
:title="club.description"
img-src="http://placehold.it/130?text=No-image"
img-alt="Img"
... | 0 | 1,292 |
Connect to an online database (mySQL) from Swift, using PHP. (XCODE) | <p>I want to connect my xcode app to online database and get the data from it and display in my app + write the data into online database using my app. I've already done with app but now it gives me an error.</p>
<p>ERROR :
<img src="https://i.stack.imgur.com/i51CN.png" alt="enter image description here"></p>
<p>I ha... | 0 | 1,219 |
Laravel 5: Can't POST to route resource | <p>I have a route resource <code>Route::resource('projects', 'ProjectsController');</code> and when I run <code>route:list</code> I can see POST is available.</p>
<pre><code>+--------+----------+--------------------------+------------------+--------------------------------------------------------------+---------------... | 0 | 1,059 |
Exercise 24 - Find the model number of the product (PC, laptop, or printer) with the highest price. Result set: model | <p>I have this SQL statement and it returns the correct answer but it's too long as I can't figure out how to reuse the alias, so I had wrote the whole SELECT again:</p>
<pre><code>select model from
(
select model, max(price) as maxt from
(
select model,price from pc where price in (select max(price) from pc)
union
se... | 0 | 1,287 |
JaCoCo Can't add different class with same name: org/hamcrest/BaseDescription | <p>Hi I'm hitting the following exception when running a JaCoCo coverage:</p>
<pre class="lang-xml prettyprint-override"><code> <plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.8.201207111220</version>
... | 0 | 1,622 |
How to modify cookies in Requests | <p>I couldn't find any documentations regarding cookies modification in the official website, i.e. no api doc for <code>requests.cookies.RequestsCookieJar</code>.</p>
<p>For example, </p>
<pre><code>session = requests.Session()
a = session.head('http://www.google.co.uk')
session.cookies
</code></pre>
<blockquote>
... | 0 | 1,134 |
How to map child entity to parent entity without introducing primitive type parent linker in child entity? | <p>I have these classes:</p>
<pre><code>public class Product
{
[Key]
public virtual int ProductId { get; set; }
public virtual string ProductName { get; set; }
public virtual string Category { get; set; }
public virtual IList<ProductPricing> ProductPriceList { get; set; }
[Timestamp]
... | 0 | 1,407 |
C++ vector std::bad_alloc error | <p>I'm trying to implement a suffix tree in c++
while adding nodes to my vector list, it throws std::bad_alloc after adding a third element into the tree. I don't know why it occurs after the third time, Could you help me resolving this bad_alloc error ?</p>
<p>Here's my code :</p>
<p><strong>suffix_tree.cpp</strong>... | 0 | 1,348 |
Cannot use object of type Illuminate\\Http\\JsonResponse as array in Laravel | <p>i have data of set like this:</p>
<pre><code>$data[] =
Array
(
[u_d] => ABCDEF
[0] => Array
(
[one] => oned
[two] => 222
[three] => three
[four] => 444
[five] => 555
[events] => Array
(
[0] => Array... | 0 | 1,565 |
Javascript if statement based on dropdown menu value | <p>I have a question about the if statement in js. I made a statement, but it doesn't seems to work. I want to check these statements from one single click on "button 1". The script is to check if there are any transportation costs before I calculate the total.
Can someone tell me how to fix my problem?</p>
<p>Here's ... | 0 | 2,057 |
Convert .txt to .sql - Contains a list of country, state, city, .. names | <p>I've been googling a lot for a SQL database with all (or the many as posible) the cities of the world,</p>
<p>But the best I've found is a .txt file with a format such as:</p>
<pre><code>-1049671 Kassel agglomeration 323216
-1049670 Kingston agglomeration 956716 ... | 0 | 1,320 |
Preference Activity on Preference Click Listener | <p>I am building a Preference Activity where most of the preferences in the list will be executing code and not modifying a SharedPreference directly. My preferences.xml file looks like this.</p>
<p>
</p>
<pre><code><PreferenceCategory
android:title="Connection" >
<Preference
android:id="@+i... | 0 | 1,215 |
Android find GPS location once, show loading dialog | <p>I am writing an app that requires the user's current location (lastknownlocation won't be very helpful) and displays a list of all the closest "items" to them taken from the database.</p>
<p>I have got the finding of the closest items working well but only using a hardcoded latitude and longitude location for the t... | 0 | 2,958 |
Gradle build error when trying to Generate Signed Apk | <p>About 34hours ago I generated a signed apk but now, I've been unable to generate a signed Apk and I have no idea on how to fix this. Please Help</p>
<p>Here's my Output message</p>
<blockquote>
<p>Error:Note: there were 11 duplicate class definitions.
(<a href="http://proguard.sourceforge.net/manual/trou... | 0 | 2,248 |
How can I improve ftp upload speed for multiple files [Java] | <p>I implemented java code to upload files to server with org.apache.commons.net.ftp.FTPClient
For multiple files the ftp upload speed is very slow.
How can I improve the speed.</p>
<p>-Change library?
What is the powerful FTP client class library for uploading multiple files?</p>
<p>-Use multiple threads?
How can I... | 0 | 3,299 |
Exception reading XLSB File Apache POI java.io.CharConversionException | <p>Im developing a Java aplication that reads an excel xlsb file using Apache POI, but I got an exception while reading it, my code is as follows:</p>
<pre><code>import java.io.IOException;
import java.io.InputStream;
import org.apache.poi.xssf.eventusermodel.XSSFReader;
import org.apache.poi.xssf.model.SharedStrings... | 0 | 3,008 |
Ubuntu Python: unable to pip install dlib - Failed building wheel for dlib and machine is almost stuck | <p>I am trying to install dlib (machine learning library) for my django python environment. however, i cant get it installed. there is error and stuck.</p>
<p>based on this instruction, this is what I did <a href="https://www.pyimagesearch.com/2017/03/27/how-to-install-dlib/" rel="nofollow noreferrer">https://www.pyim... | 0 | 1,927 |
How can I get checked checkbox values in Angularjs? | <p>I have Mobile brand with Models. Here when I submit I am getting only model name. Instead of that, I need selected brand name and model name and entered price. I have made schema like this.</p>
<p>How can I make output data like this</p>
<pre><code>Categories :
nokia
sub Categories :Nokia Lumia 730 -7,000,
... | 0 | 1,915 |
Vue + Webpack build show blank page | <p>I have some problem with vue application + webpack. When I run npm run dev everything went smooth. When I go for production mode, npm run build, the build process completed. But when I open the dist index.html or copy the bundled package with index.html to shared hosting public_html folder it just show blank.</p>
<... | 0 | 4,151 |
Unable to compile class for JSP error when I'm running my code in eclipse gwt project | <p>Hi I'm getting following error when I'm trying to access jsp page in my gwt project. Other pages which are not jsp pages are acessing fine.</p>
<p><strong><em>It is strange that I'm able to see JSP file when GWT SDK is moved to bottom in build path order which is giving another error that GWT SDK is not installed<... | 0 | 1,451 |
Passing request body to post using super-test | <p>I'm testing an express server using super-test and I need to test a post call. I assume the post should be successful and return a status of 200 but it is returning 401. I've been told by someone that I need to pass a request body with the post but I'm unsure exactly how to do this. </p>
<p>I've attempted to use... | 0 | 1,342 |
How do I get the GUI thread of winform? | <p>I have a winforms app with multiple GUI threads. I want them to be able to access each other's thread objects without having to keep track of that information separately.</p>
<p>Is there a function in .NET that I can feed a winforms control or window object, and get back the thread? Or a function in the API I can p... | 0 | 1,177 |
create dynamic anchorName/Components with ComponentResolver and ngFor in Angular2 | <p>I need to create unique Anchor Names/Components in a ngFor loop to use it with ComponentResolver.resolveComponent.</p>
<pre><code><div>
<table>
<tr *ng-for="#vIndex of vArr">
<td *ng-for="#hIndex of hArr">
<div #uniqueanchorname{{vIndex}}_{{hIndex}}></div>
... | 0 | 1,140 |
Keras Multi-inputs AttributeError: 'NoneType' object has no attribute 'inbound_nodes' | <p>I'm trying to build a model as ilustrated in below diagram. The idea is to take more than one categorical features (one-hot vectors) and embed them separately, then combine those embedded vectors with a 3D tensor for a LSTM.</p>
<p>With following code in <strong>Keras2.0.2</strong>, when creating the <code>Model()<... | 0 | 1,077 |
nova-compute service state is down | <p>I have an all-in-one-setup with my controller and compute services running on the same node.all my nova and other dependent services are up and running. However, when i try to launch an instance the state of the nova-compute process becomes down. Because of this the instance is stuck in spawning state.</p>
<pre><co... | 0 | 2,396 |
CSS transition and z-index conflict | <p>For a new webdesign I'm trying to control two 50% width layers with CSS transitions and z-index, but there seems te be a conflict: the z-index seems to be too slow. As you can see in the fiddle, the white box is hidden behind the right slider div on hover, until the transition is complete. Is there an alternative th... | 0 | 1,163 |
How to apply a line wrap/continuation style and code formatting with css | <p>When presenting preformatted text on the web (e.g. code samples), line wrapping can be a problem. You want to wrap for readability without scrolling, but also need it to be unambiguous to the user that it is all one line with no line break.</p>
<p>For example, you may have a really long command line to display, lik... | 0 | 1,434 |
How to fetch current location in appdelegate using swift | <p>Hi am developing a app using swift i want to fetch current location of the user when app launches so i written my code in app delegate i have include all the functions and methods i.e.. added and imported frameworks core location and also updated plist but i cant able to fetch current location</p>
<p>code in my app... | 0 | 2,245 |
npm ERR! Invalid version: "1" | <p><strong>QUESTION:</strong></p>
<p>When doing "node app" on my local machine, everything works.</p>
<p>But when I deploy my project to the Google App Engine, the instance is killed and I find the following error in my logs:</p>
<pre><code>npm ERR! Invalid version: "1"
</code></pre>
<p>I looked at:</p>
<p><a href... | 0 | 1,058 |
Collections in ORMLite | <p>Hello
I want persist some collections data with ORMlite in my android app. For example : </p>
<pre><code>class Person {
@DatabaseField(generatedId=true)
private int id;
@DatabaseField
private String name;
@DatabaseField
private String surname;
@ForeignCollectionField
private Collections<Phone... | 0 | 2,571 |
PHP file upload, sending formdata object | <p>I want to upload a file, send it to javascript formData object and than via ajax to some php script which will put the file into database. It works fine when i upload a file in profile php, send it to formData object in javascript and send it back to profile.php. Problem is that when i want to send formData object t... | 0 | 1,024 |
Load functions using a case switch statement | <p>I'm writing a program in C++ and I've been able to get it to compile and start to run how ever when I choose an option the coresponding function that is supposed to be called by a switch-case statement isn't called. Am I missing something in my code?</p>
<pre><code>//The following program framework is given.
//Add ... | 0 | 2,344 |
asp.net mvc update multiple records | <p>is it possible to have a view for editing multiple records, in the same way that the index.cshtml view loops through records to display them (as below)?</p>
<pre><code>@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.tvid)
</td>
</code></pre>
<p>So fo... | 0 | 1,218 |
Room: Database not created | <p>I try use room library from google architecture. I write few codes based on the BasicSample from google, but database not created (for my code). Logcat does not contains errors and exceptions. Please help me find my mistake:</p>
<pre><code>//App.java
//...
public class App extends Application {
private AppExecut... | 0 | 1,928 |
WCF proxy ProcessGetResponseWebException on HttpChannelRequest WaitForReply | <h3>ServiceContract</h3>
<pre><code>[OperationContract]
List<Campaign> AttainCampaigns();
</code></pre>
<h3>Works when Instantiating Objects Directly</h3>
<pre><code>public List<Campaign> AttainCampaigns()
{
var campaign1 = new Campaign { Id = "x", Name = "namex" };
var campaign2 = new Campaign {... | 0 | 2,344 |
How to swipe to delete on RecyclerView? | <p>What I have here a History page that displays the requests the user have accepted or posted. I was able to successfully put a button for the user to delete all of the history the user has. Now I want the user to be able to delete a history one at a time by swiping it.</p>
<p>HistoryFragment.java</p>
<pre><code>R... | 0 | 1,403 |
Why doesn't window.scrollTo() work on page load? | <p>I have some tabbed content on a page, with hash segments in the URL that take you to the correct tab content. Nothing unusual. However, as the tabs are a short way down the page, when someone visits with a hash target in the URL, they get dropped to down the page to the tabs bit - which cuts off the top navigation b... | 0 | 1,046 |
TransactionTooLargeException even when file size is super small | <p>I keep getting this error when trying share an image file:</p>
<p>java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 1085992 bytes</p>
<p>I assumed a fix for this would be to compress the image even more and that would lessen the size. Here's the function that does this job:</p>
... | 0 | 2,558 |
Modify file create / access / write timestamp with python under windows | <p>I tried to find an easy way to modifiy a file timestamp under windows using python, but there was not much clear information on the web. After searching a while I got a solution. To shorten the search for others, the code follows here. </p>
<p>It might be done easier and more beautiful, but it works. The only thing... | 0 | 1,055 |
Bootstrap modal form does not close after submit | <p>What I need to do is to show a popup to add a new record to my database, im using bootstrap 3 and I love it because im not using a single line of jquery, and I have really nice form (obvioulsy they are based in jquery). </p>
<p>I am validating my form via ajax, but the problem now is that my modal never closes, whe... | 0 | 1,349 |
How to log out user from facebook application, but maintain login from facebook | <p>I have tried the PHP SDK (v.3.1.1), and the current Javascript SDK
as suggested here : <a href="https://developers.facebook.com/docs/guides/web/" rel="noreferrer">https://developers.facebook.com/docs/guides/web/</a></p>
<p>now when trying to log out I have tried both FB.logout() ( for js )
and $facebook->getLogo... | 0 | 1,187 |
MVC: How to Return a String as JSON | <p>In an effort to make a progress reporting process a little more reliable and decouple it from the request/response, I am performing the processing in a Windows Service and persisting the intended response to a file. When the client starts polling for updates, the intention is that the controller returns the content... | 0 | 1,059 |
NSJSONSerialization - How to convert JSON into NSArray properly? | <p>I encountered the following problem:
I want so connect my iPhone-App with a database on a server. Therefore I use some (simple) .php files to manage the access to the DB. Inserting new data already works but I have some trouble to convert fetched data into a NSMutableArray :</p>
<pre><code>NSURL *contentURL = [NSUR... | 0 | 1,178 |
.NET 4 WCF SOAP Service Http POST returns 404 NOT Found | <p>I have WCF hosted SOAP service which I'm able to hit from the browser as well as from my SOAP client fine when making HTTP GET requests, however, when doing any HTTP POST requests, the response is a 404 Not Found.</p>
<p>My Web.config looks like:</p>
<pre><code><system.serviceModel>
<behaviors>
... | 0 | 1,187 |
Mercurial https clone: "abort: error: (...) wrong version number" | <p>I have problem with mercurial on OS X 10.9.1
I have a repository on bitbucket with couple files, when I'm trying to clone it I'm getting an error: </p>
<pre><code>mac-mini-jakub:testrepo kubeczek$ hg clone https://kubecz3k@bitbucket.org/kubecz3k/test
abort: error: _ssl.c:507: error:1408F10B:SSL routines:SSL3_GET_R... | 0 | 1,812 |
How to link multiple libraries using CMake | <p>I have some code to do with DCMTK. I can successfully build and run it if I use g++ from the command line. This is the code:</p>
<pre><code>#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmdata/dctk.h"
int main()
{
DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("test.dcm");
if (status.good... | 0 | 1,034 |
Unable to resume activity with java.lang.IllegalArgumentException on Android api >=24 | <p>There is a crash in my app on devices running version <code>7.0</code>, <code>7.1.1</code> and <code>8.0.0</code> with the following stacktrace:</p>
<pre><code>Fatal Exception: java.lang.RuntimeException: Unable to resume activity {xxx/xxx.views.activities.HomeActivity}: java.lang.IllegalArgumentException
at and... | 0 | 1,157 |
Flask-restful, marshal_with + nested data | <p>I have been stuck on this for a while now. My problem is I need to be able to use marshal_with and validate on nested fields coming from a POST. My test looks like this: </p>
<pre><code>def test_user_can_apply_with_multiple_dogs(self):
data = {
# User data
'registration_type': "guest",
... | 0 | 1,543 |
jdbc ResultSet closed | <p>I have following source.</p>
<p>In insertMessage(..), it calls selectMessage to check whether duplicate record exists or not.</p>
<p>But this error occurs.
In my brain, it works fine because datasource gives me new Connection...maybe</p>
<pre><code>java.sql.SQLException: ResultSet closed
at org.sqlite.RS.chec... | 0 | 1,261 |
No such host is known socket connection | <p>I'm trying to work with this library for telnet connections. I have called the function correctly and it executes the code below but fails giving the following error:</p>
<pre><code>System.Net.Sockets.SocketException was unhandled
HResult=-2147467259
Message=No such host is known
Source=System
ErrorCode=110... | 0 | 1,222 |
flexbox: stretching the height of elements with flex-direction: row | <p>I want to stretch two div elements (<code>.sideline</code> and <code>.main-contents</code>) to reach the bottom of the page and stay at a certain height from the footer.</p>
<p>The two divs are nested inside a div (<code>.row-elements</code>) with the <code>flex-direction: row</code> since I wanted them to be on th... | 0 | 1,266 |
How to handle multiple queries with React-Query | <p>I've started playing with React-Query and it works great if I only need to fetch data from a single collection in my database. However, I'm struggling to find a good way to query multiple collections for use in a single component.</p>
<p>One Query (no problem):</p>
<pre class="lang-js prettyprint-override"><code>con... | 0 | 1,055 |
Error dehydrating property value for class | <p>I am trying to insert a object but it throwns me the <code>Error: dehydrating property value for FrancosPoS.DBMapping.order.obs</code></p>
<p>I've looked here for</p>
<p><a href="https://stackoverflow.com/questions/10867390/nhibernate-error-dehydrating-property-what-the-heck-is-this">NHibernate: Error dehydrating ... | 0 | 1,815 |
Failed to Load ApplicationContext during Spring unit test | <p>I am trying to run a Junit functional test using Springs java-config for my application context. I am not sure if it is a problem with Spring or Junit... just not sure.. The application runs fine on my local server (hitting the db), but when I try to run my test it bombs out.
I just moved from xml to java config so ... | 0 | 5,492 |
How do I capture a raw SOAP request for WCF web service | <p>I've <a href="https://stackoverflow.com/questions/149851/net-log-soap-request-on-client">seen</a> <a href="https://stackoverflow.com/questions/2822544/capture-incoming-and-outgoing-soap-request">several</a> <a href="https://stackoverflow.com/questions/9821857/capturing-the-soap-body-from-a-wcf-service">questions</a>... | 0 | 2,288 |
Python multiprocessing - AssertionError: can only join a child process | <p>I'm taking my first foray into the python mutliprocessing module and I'm running into some problems. I'm very familiar with the threading module but I need to make sure the processes I'm executing are running in parallel.</p>
<p>Here's an outline of what I'm trying to do. Please ignore things like undeclared variab... | 0 | 4,133 |
Exception starting filter struts2 Unable to load configuration. Document root element "package", must match DOCTYPE root "struts" | <p>When I started a Struts2 application in Eclipse I've gotten the exception, please help me on this.</p>
<p><strong>The exception is:</strong></p>
<pre><code>Mar 12, 2014 8:46:45 AM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
Unable to load configuration. - file:/D:... | 0 | 3,580 |
How to implement searching and filtering in Ionic | <p>I am fetching data from a JSON file that's stored locally within my project. The JSON string is an array of locations, whose structure is like so:</p>
<p><strong>JSON file</strong> </p>
<pre><code>{
"locations": [
{
"title": "ABC",
"latitude": -1.2596551,
"longitude"... | 0 | 1,686 |
mongodb connection timeout error with mongoose and nodejs | <p>I desperately need some help.I am trying to upload large file(8 GB) to gridfs using mongoose and nodeJS. But as the file is very large it takes some time to upload. And after a while I get the following error:</p>
<pre><code>home/user/FileUpload/node_modules/mongodb/lib/utils.js:98
process.nextTick(function() {... | 0 | 1,203 |
Conda: Package missing in current win-64 channels | <p>I'm new to python and anaconda, so please excuse any ignorance.</p>
<p>I'm trying to install keras using conda. I'm on windows 10 (win-64). <a href="https://anaconda.org/jaikumarm/keras" rel="noreferrer">I see that there's a win-64 package of keras @ 1.0.8</a>, but when I go to install it, <code>conda install -c ja... | 0 | 2,113 |
How to show SQL parameters in Hibernate log? | <p>In my hibernate.cfg.xml, I have the following:</p>
<pre><code><property name="show_sql">true</property>
</code></pre>
<p>In my log4j.xml, I have the following:</p>
<pre><code><logger name="org.hibernate" additivity="false">
<level value="TRACE"/>
<appender-ref ref="hbn_log"/>... | 0 | 1,056 |
Use one Laravel migrations table per database | <p>I work in a project that uses multiple databases. It seems like Laravel only uses the migrations-table in the database that is set as default. I would like one migrations table per database that logs the migrations that have been done to that specific database. Is this possible?</p>
<p>I have defined the databases ... | 0 | 1,331 |
JavaScript runtime error: Object doesn't support property or method 'on' | <p>I am getting error message "Object doesn't support property or method 'on'". I think it is to do with this in my script.</p>
<pre><code> $('#<%=filBrowse.ClientID%>').on('change', function () {
$('#<%=btnSaveImage.ClientID%>').click();
});
</code></pre>
<hr>
<p>... | 0 | 5,012 |
Set child layout width programmatically In ANDROID? | <p>In my Code I have a XML file having multiple child layouts. Aand I just want to set one of these child layout's width programmatically according to device's screen width.
till now I had tried Layout params, setparam, and other methods but it shows null pointer exception on getting layout id.</p>
<p>my parent layout... | 0 | 1,407 |
My jax-ws webservice client returns only empty objects | <p>I have a third party webservice for which I generate a client using wsimport. Each call to the webservice completes successfully, but the response object I get back has all its fields set to null. Monitoring the network I can see that on the wire all of the XML elements in the response message have values in them, s... | 0 | 1,856 |
RStudio not picking the encoding I'm telling it to use when reading a file | <p>I'm trying to read <a href="https://gist.github.com/mauricio/11347476">the following UTF-8 encoded file</a> in R, but whenever I read it, the unicode characters are not encoded correctly:</p>
<p><img src="https://i.stack.imgur.com/jhOOC.png" alt="enter image description here"></p>
<p>The script I'm using to proces... | 0 | 1,117 |
Making Golang TCP server concurrent | <p>New to Go and trying to make a TCP server concurrent. I found multiple examples of this, including <a href="https://codereview.stackexchange.com/questions/181415/golang-concurrent-tcp-server">this one</a>, but what I am trying to figure out is why some changes I made to a non concurrent version are not working.</p>
... | 0 | 1,070 |
AngularJS Detect browser back button press in controller? | <p>I am making a browser trivia game and I have a view where a authenticated player selects a game type, which emits a socket.io event to be handled by my Node.js server, then changes the path to a "Searching for game" screen with a loading icon as the server waits enough people to join a matchmaking queue. I put a "C... | 0 | 1,035 |
Yii2 field filter not showing on GridView | <p>I cannot make my GridView filter by any field, the Grid displays ok, but my filter section appears in blank, this is the GridView declaration: </p>
<pre><code>GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
... | 0 | 2,126 |
Why is the "else" line giving an invalid syntax error? | <p>I'm having this error:</p>
<pre><code>File "zzz.py", line 70
else:
^
SyntaxError: invalid syntax
</code></pre>
<p>The line which causes the problem is marked with a comment in the code:</p>
<pre><code>def FileParse(self, table_file):
vars={}
tf = open(table_file, 'r')
for line in tf:
... | 0 | 1,041 |
How to set the iframe height & width to 100% | <p>I am in need of doing the following:</p>
<ol>
<li>I have a header content which is 70px and an iframe with a wrapper.
The height & width of the iframe has to be set to 100% without
scroll, except for the scroll that comes for the body when the
content is loaded and the size of the content is more.</li>
<li>The ... | 0 | 1,277 |
How do I get the @RolesAllowed annotation to work for my Web application? | <p>I am making a Web application using Backbone.js, Bootstrap, NetBeans IDE 8.0, Java EE 7, JDK 8, WildFly server 8.1.0, JBoss RESTEasy (resteasy-jaxrs-3.0.8), JBoss 2.2.22, JBoss EJB 3.</p>
<p>I am (relatively) new to Web development, and as such I have only just started to grasp a lot of basic concepts and technolog... | 0 | 11,463 |
Rendering html code using TagBuilder and ASP.NET MVC 4 (with Razor engine) | <p>I would like to render <code>li</code> items using TagBuilder.</p>
<p>My function</p>
<pre><code>public static string RenderListTag(this HtmlHelper helper, string labelText, string action, string controller, bool isAdmin, string listCssClass = "")
{
string value = string.Empty;
Tag... | 0 | 1,174 |
Android: Attempt to invoke virtual method a null object reference | <p>I have some problem. Here in my code I am trying to redraw drawing drawn on board on screen rotation. but I am getting Null Object Reference exception</p>
<p>In my code <strong>bitmaps</strong> is an Bitmap arraylist.</p>
<p>Here's my saveInstanceState code</p>
<pre><code>@Override
protected void onSaveInstanceSt... | 0 | 10,352 |
Why is my Bootstrap date-picker not working? | <p>I tried to use Bootstrap date-picker (<a href="https://github.com/eternicode/bootstrap-datepicker" rel="nofollow">https://github.com/eternicode/bootstrap-datepicker</a>), but i can't get it to work.</p>
<p>On jsfiddle everything works like a charm: <a href="http://jsfiddle.net/hwuktpt2/" rel="nofollow">http://jsfid... | 0 | 1,808 |
Primefaces datatable filter | <p>I've tried a few things but I could not do any work on my filter dataTable. Already follow the example of the primefaces showcase and nothing.</p>
<p>I have the following codes:</p>
<p>xhtml:</p>
<pre><code><p:dataTable id="dataTable" var="valor" value="#{beanMensagemXContato.listaContatoEmail}"
... | 0 | 1,479 |
Using SHA1 and RSA with java.security.Signature vs. MessageDigest and Cipher | <p>I'm trying to understand what the Java <em>java.security.Signature</em> class does. If I compute an SHA1 message digest, and then encrypt that digest using RSA, I get a different result to asking the <em>Signature</em> class to sign the same thing:</p>
<pre><code>// Generate new key
KeyPair keyPair = KeyPairGenerat... | 0 | 1,164 |
Laravel - Create and Attach - Many to Many relationship | <p>I need some help.</p>
<p>I have these tables: users, buys and codecs. I have a many-to-many relationship: buys, codecs, <strong>buy_codec</strong></p>
<p><strong>Tables</strong></p>
<pre><code>Schema::create('codecs', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
... | 0 | 1,427 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.