title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
NSURLSession causing EXC_BAD_ACCESS | <p>I've noticed that implementing <code>NSURLSessionDataDelegate</code> and starting a task will very occasionally throw an EXC_BAD_ACCESS. The actual calling method that gives the error seems to vary but always comes from <code>CFNetwork</code>. For the most part, the calling method comes from <code>NSURLSession deleg... | 1 | 3,197 |
Stemming with WordNet using JWNL - Unable to install dictionary | <p>I am trying to stem a string using WordNet with the JWNL API. When I try to load the dictionary it gives me a FileNotFoundException. </p>
<p>This is the code initializing the dictionary:</p>
<pre><code>public static void Initializer(){
try {
JWNL.initialize(new FileInputStream("file_properties.xml"));
... | 1 | 1,408 |
Ext JS 5/Sencha CMD : How to run Ext JS app in tomcat server | <p>I want to test my app from tomcat server, so I put my application ext js in my webapp folder and I wrote the correct path of my index.html in the web.xml file. I also modified my app.json like this : </p>
<pre><code>"js": [
{
"path": "/application/app.js",
"bundle": true
}
],
"css": [
{... | 1 | 2,286 |
ScrollView not working in RelativeLayout | <p>Im trying to create a application , which is just a simple list with text, buttons etc...</p>
<p>But the list is too large and it doesn't fit on a mobile screen.
So I tried to make a <code>ScrollView</code>, but it doesn't work.</p>
<p>EDIT: Scrolling doesn't work on the phone.</p>
<pre><code><RelativeLayout x... | 1 | 1,723 |
Kendo UI One DataSource for Multiple Grid | <p>I have an issue with Kendo UI lately, I have 1 datasource and it is used by 3 grids. This is all working but for some reason styling of the grid is "dismantled" for a lack of better word.</p>
<p>If I filter the datasource from Grid A, Grid A looks good but Grid B and C would look something like this (don't mind the... | 1 | 1,250 |
CakePHP - Saving one session variable deletes another | <p>I'm using session variables in CakePHP to store my relevant user Twitter and Facebook data, when the user logs in if he has linked his Twitter and FB accounts this information is saved in the session variable next to my own user data.</p>
<p>I have a screen where the user can link and unlink said social network dat... | 1 | 5,255 |
Transaction Deadlocks on SQL Server Insert with EF Core | <p>I'm trying to do a large number of individual inserts containing a large amount of data quickly using Entity Framework Core. I'm inserting data into several related tables and occasionally get a <code>SqlException</code> with the following message;</p>
<blockquote>
<p>Transaction (Process ID 120) was deadlocked o... | 1 | 12,587 |
Select distinct Linq | <p>I have Question and Answer tables in a database. I used Join to select questions with answers and tried to get questions and answers with LINQ. Here is my code:</p>
<pre><code>List<Question> newQuestionList =
(from q in dt.AsEnumerable()
where (q.Field<Guid>("Question") != null))
select n... | 1 | 1,183 |
Using AutoHotKey to detect focus in Git Gui | <p>I'm trying to write an <a href="http://www.autohotkey.com/" rel="nofollow">AutoHotKey</a> script that will activate my <a href="http://www.kernel.org/pub/software/scm/git/docs/git-gui.html" rel="nofollow">Git Gui</a> window, refresh it, and put the focus in the commit-comment text box. Activating and refreshing are ... | 1 | 1,174 |
Struts Jquery plugin dialog will only open once | <p>I've got the following jsp page and I'm using struts2-jquery-plugin-3.1.1</p>
<pre><code><script type="text/javascript">
function openDialog() {
$.publish('openDialog');
}
</script>
</head>
<body>
<div id="detailContainer">
<div id="header">
<s:action name="ecu-in... | 1 | 3,247 |
A key cannot be configured on 'ApplicationUser' because it is a derived type, but there is no key configuration on ApplicationUser | <p>I'm trying to customize IdentityUser using ApplicationUser, I followed the steps in microsoft article, but when I run the application, I get this error on method <code>base.OnModelCreating(modelBuilder);</code>:</p>
<blockquote>
<p>System.InvalidOperationException HResult=0x80131509 Message=A key
cannot be ... | 1 | 1,229 |
PowerShell turning an if else statement to a Foreach Loop | <p>I have a need to get rid of some users that do not exist in AD anymore but are still installed to an application. </p>
<p>I have a script which provides a list of users and assigns them to a variable. At the moment I want a list of users that do notexist. This works for a single user:</p>
<pre><code>#One user in a... | 1 | 1,244 |
attributeError("'_AssertRaisesContext' object has no attribute 'exception'",), | <p>I'm a beginner coding in python. I really don't understand what this error refers to. Any help will be greatly appreciated.
the code is supposed to calculate the taxes of people in a certain country as follows:
Yearly Income: 0 - 1000</p>
<p>Tax Rate: 0%</p>
<p>Yearly Income: 1,001 - 10,000</p>
<p>Tax Rate: 10%</... | 1 | 2,097 |
Unable to mock static invocations using JMockit | <p>I am having difficulty mocking static invocations. I don't know what I am doing wrong.</p>
<p>My stripped down source code:</p>
<pre><code>import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
public class OptionsBusinessEventFormatter {
void process() {
System.out.... | 1 | 1,624 |
Unable the get the findnext property of the Range class | <p>My code is supposed to look for some values in j column and, if they are found, delete the row between columns 1 to 11. However, I´m always getting the error "Unable the get the findnext property of the Range class" associated to "Set c = .FindNext(c)". What´s the problem? Thanks!!!</p>
<pre><code>Sub ExcluirGraosI... | 1 | 2,520 |
Codeigniter- How to preserve form values if error on submit | <p>I have the form field like</p>
<pre><code><input type="text" class="form-control" name="postal_code" id="form_control_1" value="<?php if($user->postal_code === NULL) { echo set_value('postal_code');} else { echo $user->postal_code;} ?>">
<label for="form_control_1">Postal Code</label>... | 1 | 1,542 |
Wix: condition on property not working | <p>I have a util:RemoveFolderEx element that I only want to run when the program is being uninstalled. I put it inside its own component then set up a condition on a property as to whether it should be included.</p>
<p>Can anyone explain to me why the following doesn't work?</p>
<pre><code><Property Id='UNINSTALL... | 1 | 1,491 |
First time with MongoDB + Docker - Set up from docker compose | <p>I'd like to try a <a href="https://github.com/valentino-dicianni/MAADB-ProjectMeo" rel="nofollow noreferrer">project</a> I found on GitHub, so I installed MongoDB on MacOS and now I'm trying to understand how to set up it correctly through the docker compose file in the directory. This is the docker file:</p>
<pre><... | 1 | 3,352 |
How do Git SVN ignore-paths work (ignoring daily build tags)? | <p>I am trying clone an svn repository using git svn. The repository has daily builds tagged which I want to ignore. I am trying to use the "ignore-paths" option to do that, but I am still getting the daily build tags as branches in my repository.</p>
<p>A very recent and similar (but so far unanswered) question is ... | 1 | 1,387 |
decode GPS coordinate from USB GPS | <p>I have GPS/GLONASS U-BLOX 7. When I run the U-Center application it can show me the Latitude and Longitude. However, I need to decode this value from the serial port (add them in python code).
My problem I could not find how the docking works. U-Center app is receiving these data. When I search for NMEA commands, it... | 1 | 1,613 |
Google chart: “Uncaught (in promise) Error: Unknown header type: 4.7278” error | <p>I'm trying to display a line chart of currency rates via <a href="https://developers.google.com/chart/interactive/docs/gallery/linechart" rel="nofollow noreferrer">google charts</a>. </p>
<p>Basically i have 2 type of values:</p>
<ol>
<li>Date (format iso8601)</li>
<li>Rate (decimal number)</li>
</ol>
<p>when i'm... | 1 | 1,042 |
iOS 7 fresh reset device does not send TokenUpdate to server after MDM mobileconfig profile installs | <p><strong>Summary</strong></p>
<p>I have an iPad Mini with iOS 7.0 (11A465) installed on it. If I go to "Settings > General > Reset > Erase All Content and Settings" and erase the device, and then successfully install an MDM configuration profile on the device, during the enrollment process the device sends to the se... | 1 | 6,489 |
How to make the file shareable using google drive api | <p>I am trying to get the file using google drive api, by default the file is not shareable i want to make it shareable.</p>
<p>Here is my code:-</p>
<pre><code> <script type="text/javascript" src="https://apis.google.com/js/api.js"></script>
<script src="https://apis.google.com/js/client.js"><... | 1 | 3,734 |
Android NDK Exception failed: dlopen failed: cannot locate symbol "_ZN7Tangram11setPositionEdd" referenced by "libtangram.so" | <p>I am trying to run a demo application of a <a href="https://github.com/tangrams/tangram-es" rel="nofollow noreferrer">Library</a> in which android ndk is integrated. I have imported <a href="https://github.com/tangrams/tangram-es/tree/master/android" rel="nofollow noreferrer">this</a> code in Android studio and also... | 1 | 1,430 |
How to properly generate an xml from xquery | <p>I'm new to xquery and is trying to read different references on using the tool. I've been trying to play around testing and trying to generate some xml format messages but this one puzzles me. Here's my xQuery code:</p>
<p><strong>Sample XQuery</strong></p>
<pre><code>declare variable $requestBody as element() ext... | 1 | 1,535 |
d3 using a different X scale and Y scale domain for each selection | <p>Here is the project on jsfiddle: <a href="http://jsfiddle.net/mLnB3/" rel="nofollow">http://jsfiddle.net/mLnB3/</a></p>
<p>I have data that is in this format:</p>
<pre><code>var data = [
{
"category": "Category1",
"subcategories": [
{
"subcategory": "Subcategory1A",
"comment... | 1 | 3,258 |
Call waitForMonitorWithTimeout() from a @UiThreadTest | <p>To illustrate my latest problem with writing JUnit tests for my Android app, I wrote a simple example with two activities, <code>StartActivityForResult</code> and <code>ChildActivity</code>. The former contains a <code>TextView</code> (for display purposes) and a <code>Button</code> while the later contains just a <... | 1 | 1,908 |
"Unrecognized field (..), not marked as ignorable" while jaxb unmarshalling xml input | <p>in a typical Spring MVC project, I am trying to access objects that are fetched from an external webservice source. The actual integration of this data wasn't actually - until now - my part within the project. But it's broke and I'll have to fix it. That is to say: I am not perfectly familar with the related code.</... | 1 | 2,902 |
python oauthlib: in escape ValueError "Only unicode objects are escapable" | <p>I'm using <code>python-social-auth</code> to login with social networks from my Django application. On my local machine everything works fine, but when I deploy to a server I get the following error: </p>
<pre><code>oauthlib.oauth1.rfc5849.utils in escape
ValueError: Only unicode objects are escapable. Got None of ... | 1 | 1,130 |
Change Font at runtime | <p>Please is there another way how to change Font at runtime as using FontUIResource, for the whole AWT/Swing GUI, without any knowledge / interest about if there are local variables and type of JComponents</p>
<p><img src="https://i.stack.imgur.com/PQr0Y.jpg" alt="enter image description here"><img src="https://i.sta... | 1 | 5,308 |
Deleting columns from hbase | <p>I'm trying to find out how to deal with hbase. I have a problem deleting some columns from Hbase column family.
I've created a table with a column family: </p>
<pre><code>Configuration conf = HBaseConfiguration.create();
HBaseAdmin hbase = new HBaseAdmin(conf);
HTableDescriptor desc = new HTableDescriptor("new_tabl... | 1 | 6,182 |
kotlin.UninitializedPropertyAccessException: lateinit property roomClickedInterface has not been initialized | <p>I am trying to follow Pusher Chatkit's tutorial for <a href="https://pusher.com/tutorials/building-group-chat-app-kotlin-chatkit" rel="nofollow noreferrer">"BUILDING A GROUP CHAT APP USING KOTLIN AND PUSHER CHATKIT"</a> however I am running into an issue with the Recycler View adapter. FYI, I am still learning Kotli... | 1 | 4,261 |
Increase space between legend title and labels in ggplot2 | <p>I am trying to increase the space between legend title and labels in <code>ggplot2</code> but haven’t had any luck applying all sorts of possible solutions I could find on the web. As you can see in the reproducible example below the title text is too close to the top number. I would like to avoid the clunky solutio... | 1 | 1,059 |
Getting "Failed to transform libs.jar to match attributes" error when building a release APK | <p>I am getting an error stating that it "Failed to transform libs.jar to match attributes" because "Transform's input file does not exist". This happened while building a release APK in Flutter.</p>
<p>How do I fix this?</p>
<pre class="lang-none prettyprint-override"><code>mianumararshad@Mians-Mac... | 1 | 2,529 |
How to stop movement, when mouse is off screen | <p>I'm hoping there's someone out there that can help me with a small problem.</p>
<p>Currently I have an Input Manager attached to the main camera to allow the user to pan around the map by moving the mouse to the edges of the window, but I've encountered a slight problem which I've tried to fix myself to no avail.</... | 1 | 1,025 |
java.io.FileNotFoundException for a present MultipartFile | <p>I am dealing with a strange behaviour regarding a MultipartFile.</p>
<p>My project is a Spring Boot backend that receives a text file. This text file comes in as a MultipartFile. I than want to send this file to a secondary Spring Boot backend which shall add some content to the file, before my primary backend read... | 1 | 3,075 |
Glassfish 3.x start failed | <p>i'm trying to run my java EE web application on Glassfish v3.x on Netbeans 7 but it wont work, and gives me the following error: Glassfish 3.x start failed.
i don't know what's the problem glassfish used to work fine before but then suddenly stoped working i unistalled netbeans and glassfish n install it again, but ... | 1 | 1,249 |
Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template | <p>I am getting this when trying to install React Native for MacOS.</p>
<pre><code>$ npx react-native init myproject
ld: warning: dylib (/usr/local/opt/llvm/lib/libc++.dylib) was built for newer macOS version (10.15) than being linked (10.13)
ld: warning: dylib (/usr/local/opt/llvm/lib/libunwind.dylib) was built for ne... | 1 | 3,234 |
Android java.util.hashmap cannot be cast to java.util.list | <p>I'm trying to retrieve data from a json with multiple values and cast it into a listview but im gettting the error java.util.hashmap cannot be cast to java.util.list.</p>
<p>I'm using volley.</p>
<p>The FeedListActivity Class:</p>
<pre><code> public void updateList() {
feedListView= (ListView) findViewBy... | 1 | 2,231 |
Select2 search box | <p>I have a formatting issue with the following feature. As you'll see below, it mostly works, just the formatting of the search box is not what I want (I want to replicate the typeahead Twitter Bootstrap feature):</p>
<p>A user can enter a book title in a search box, get a selection of books to chose from (through aj... | 1 | 1,334 |
How to read an xml subnode into ASP.NET repeater | <p>I am reading XML using xmlreader, and then binding the xml to a Repeater</p>
<p>Here's the code behind:</p>
<pre><code> XmlReaderSettings settings = new XmlReaderSettings();
settings.ProhibitDtd = false;
XmlReader xmlData = XmlReader.Create(webClient.OpenRead(requestUrl), settings);
... | 1 | 1,324 |
CustomizableOutDir=true breaks MSTest.exe during Team Build | <p>When using CustomizableOutDir, I'm having problems with TFS Team Build firing off MSTest.exe properly.</p>
<p>TFSBuild.rsp</p>
<pre><code>/verbosity:diagnostic
/p:CustomizableOutDir=true
</code></pre>
<p>TFSBuild.proj (solutions to build snippet)</p>
<pre><code> <!-- code -->
<SolutionToBuild Inc... | 1 | 1,574 |
Read data from XML file (in Java) using Reflection | <p>Given a simple XML file , like : </p>
<pre><code><Game>
<Round>
<roundNumber>1</roundNumber>
<Door>
<doorName>abd11</doorName>
<Value>
<xVal1>0</xVal1>
<xVal2>25</xVal2>... | 1 | 2,728 |
Zoom image with effect ontouch android | <p>i am trying one example from <a href="http://blogs.sonymobile.com/wp/2010/05/18/android-one-finger-zoom-tutorial-part-1/" rel="nofollow">Here</a> for ontouch image zoom and touch on other section of mobile screen zoom-out so simply i have find this link and try to implement in code but there are something error like... | 1 | 2,705 |
Stopping a function to run more than once in a period of time | <p>I have this MouseEvent function that I have totally no idea why it fired twice. Is there a way I can disable the function in a period of time? I tried disabling the button, but seems like it directly called the function and does not trigger from the button.</p>
<p>Addition info:When I add in more object to the arra... | 1 | 8,889 |
Incorrect syntax near '=' while trying to call a stored procedure in T-sql | <p>I am calling a stored procedure called <code>Searchprocedure</code>. I get an error at line where I am calling it. I have not made any changes to the parameters passed in the procedure and it was called just fine with same calling statement earlier.</p>
<pre><code>Exec SearchProcedure @firstname = 'Simran', @middle... | 1 | 2,133 |
XHR Error (404) not found Angular 2 | <p>I'm having issues loading a component. When I go to load another component, I get the following error</p>
<pre><code>localhost/:22 Error: Error: XHR error (404 Not Found) loading http://localhost:3000/app/player-detail.component.ts.js(…)
</code></pre>
<p>My app.component.ts:</p>
<pre><code>import { Component } fr... | 1 | 1,357 |
How to use phpmailer in combination with html-email-template in codeigniter correctly? | <p>I have a problem and i'm really desperate. Here the situation:</p>
<p>I wanna send a newsletter html email via codeigniter. This is my controller:</p>
<pre><code>if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class mail extends CI_Controller {
function __construct(){
parent::__... | 1 | 1,582 |
AuthenticationSupport service missing after installing S3 connector | <p>I installed S3 Connector for AEM (COM.ADOBE.GRANITE.OAK.S3CONNECTOR) through the package share, and now my AEM instance is bricked.</p>
<p>Whenever I go to localhost:4502, I get a page saying:</p>
<pre><code>HTTP ERROR: 503
Problem accessing /. Reason:
AuthenticationSupport service missing. Cannot authentica... | 1 | 1,910 |
Django admin login returns Forbidden 403 CSRF verification failed. Request aborted | <p>Pretty new to Django. Working through a second project following the Polls tutorial on Django website. Previous effort went well, albeit simple. This time around encountering problems accessing admin login.</p>
<p>I have created a superuser and using those credentials, when I try to login to <code>http://127.0.0.1:... | 1 | 2,188 |
Pass info from edittext through an email intent | <p>I have two textboxes: one for the subject and the other for the actual message. Unfortunately, the code I'm using does not pass any information when I test it on my phone running android 4.2.2 with the latest gmail app. </p>
<p>Updated method.</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceSt... | 1 | 1,987 |
How do I iterate through each TD and TR in a table using Javascript or Jquery? | <p>I wanna provide a Table including a Filter input, the User should input any digits and underneath in the table it should display the row with closest finding. </p>
<p>Lets say I wanna search by 11847, it doesn't show anything, but it should show the row. </p>
<p>Below is a working snippet and my Html and JS which ... | 1 | 1,569 |
Receiving MMS in android application | <p>I've to develop an android application and one of its activity is:</p>
<ol>
<li>Detecting New MMS messages</li>
<li>Get Sender number to check if it is the number i want to receive from it in my application</li>
<li>Getting (txt + image) from MMS</li>
<li>Showing (Txt + Image) data in ListView</li>
</ol>
<p>well, ... | 1 | 2,477 |
Enable Button After Page Load in AngularJS Directive | <p>I am trying to enable a button after page load in an AngularJS directive. I applied <em>ng-disabled</em> for all my buttons <strong><em>DURING</em></strong> load and I would like to keep certain buttons disabled <strong><em>AFTER</em></strong> load.</p>
<p>I need some direction/advice on:</p>
<ul>
<li>manipulating... | 1 | 1,660 |
Perl LWP::UserAgent, https proxy to specific https web site, unknown protocol error | <p>Read all I could find about subject... can't figure how make it work. </p>
<p>I use freshly updated (09 Jan 2015) Active State Perl, and a standard approach </p>
<pre><code>my $ua=LWP::UserAgent->new();
$ua->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/33.0');
$ua->timeout... | 1 | 2,660 |
iOS 6 - State Preservation and Restoration | <p>I have implemented iOS 6 API for state saving, it works - after I quit the app and launch back in for some milliseconds the restored view controller fly in, but then it's replaced by the main view controller I display at launch.</p>
<p>I'm setting every time the app launch the root view of the main window, so this ... | 1 | 1,521 |
Java Webservice java.lang.ClassCastException: org.apache.cxf.jaxws.ServiceImpl | <p>I am using Maven, CXF 2.2.7, JBoss 4.2.3 and JRE 1.5 <strong>Updated</strong></p>
<p>I have a Webservice that I can see on the server by using the URL myURL/myService?wsdl</p>
<p>I am trying to develop a web app to ping that webservice by calling this in my bean:</p>
<p>MyWebService webservice = new MyWebService(... | 1 | 6,484 |
How to update status and progress from a seperate thread in JavaFX | <p>I need to be able to call a separate thread. The thread analysis a file and pull stats from that. </p>
<p>The analyzing of the file can take up to 2 minutes and during the analysis data is printed to the logs.</p>
<p>I would like to have a TextArea on the front end that needs to print out the analysis (as it analy... | 1 | 3,171 |
I am getting java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule error | <p>I use Spring mvc and Tiles Framework in my webapp. I configure Tiles by addind the following librairies : </p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/mave... | 1 | 8,203 |
Initializer-list-constructing a vector of noncopyable (but movable) objects | <p>One can <code>push_back</code> rvalues of a noncopyable-but-movable type into a vector of that type:</p>
<pre><code>#include <vector>
struct S
{
S(int);
S(S&&);
};
int main()
{
std::vector<S> v;
v.push_back(S(1));
v.push_back(S(2));
v.push_back(S(3));
}
</code></pre>
<... | 1 | 1,163 |
In rails, updating a div with Jquery/Ajax | <p>I need some guidance on how to update a div on a page with Jquery/Ajax without actually loading the page. Before I ask the question, I will provide some necessary information. </p>
<p>I have two models:</p>
<ul>
<li><strong><code>Scoreboard</code> Model</strong> (<code>has_many :teams</code>)</li>
<li><strong><cod... | 1 | 1,434 |
Collapse Sidebar on Page load | <p>Iam working on a C# MVC project. It works perfectly until today i come across a problem.</p>
<p>I added a new view to the project. It works correctly. But i need to collapse the sidebar when the page loads. The sidebar collapse when i click the collapse button. But i need it on page load.</p>
<p>i found <a href="h... | 1 | 5,895 |
Jetty, "No multipart config for servlet" problem | <p>I'm writing handler for file transfer. The request is multipart HTTP message. The message is correct - tested on other servers.</p>
<p>The problem is "java.lang.IllegalStateException: No multipart config for servlet" on getParts() call.</p>
<p>The test code:</p>
<pre><code>@SuppressWarnings("serial")
@MultipartCo... | 1 | 1,323 |
ERROR: java.lang.IllegalStateException: User did not initialize spark context | <p><strong>Scala version: 2.11.12</strong></p>
<p><strong>Spark version: 2.4.0</strong></p>
<p><strong>emr-5.23.0</strong></p>
<p>Get the following when running the below command to create an Amazon EMR cluster</p>
<pre><code>spark-submit --class etl.SparkDataProcessor --master yarn --deploy-mode cluster --conf spa... | 1 | 1,300 |
Swift "Specialized" Crash | <p>Below is the stacktrace of a crash that keeps occurring in one of my apps. I have no clue how to fix it and it doesn't always happen? PLEASE HELP :)</p>
<p>Does it have something to do with Swift Generics?</p>
<pre><code> Thread : Crashed: com.apple.main-thread
0 MyApp 0x1000f4f5c speci... | 1 | 2,546 |
How to send data from android application to MYsql server? | <p>I am facing a problem when I send data to server, unfortunately closing my application. I don't know why it will come like this. I tried but unable to resolve. Please some one help me.
It is always showing error in the <strong>new CreateUser().execute();</strong>,<strong>class CreateUser extends AsyncTask {</strong... | 1 | 5,464 |
ZF2 segment child route not working | <p>What im trying to achieve:</p>
<pre><code>domain.com/user = UserController::index
domain.com/user/profile = UserController::profile
domain.com/user/profile/9 = UserController::profile (with query param id=9)
domain.com/user/profile/9/edit = UserController::editProfile (wit... | 1 | 1,086 |
Issues with ASP.NET Forms Authentication on Phonegap (Android) | <p>I have an ASP.NET MVC/Web API backend where I have implemented a Forms Authentication for my Phonegap app. The login is executed by sending the users credentials via jQuery Ajax call like this:</p>
<pre><code>$.ajax({
type: "POST",
url: "/api/authentication/login",
data: JSON.stringify({ Username: usern... | 1 | 1,685 |
How to add next/prev buttons to a slideshow | <p>Hyper-mega-noob-question, i've been racking my brain over how to add next/ previous buttons to a simple slider i found by Soh Tanaka and wanted to ask for your help in this endevour. So far i have gotten the slider to work with a tooltip and to load the images from an xml (per my requirement) but i'm pretty new to j... | 1 | 3,942 |
Parameter 0 of constructor in .. required a bean of type org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate could not be found | <p>I have written a simple todo app (based on what comes in <a href="https://www.apress.com/gp/book/9781484236758" rel="nofollow noreferrer">apress pro spring boot</a> in which we use jdbc to deal with database ,in the repository we have the following code to deal with h2 database</p>
<pre><code>package com.apress.tod... | 1 | 1,176 |
KernelBase.dll exception code 0x0EEDFADE (but no crash) when Visual Studio is NOT run as administrator (GLFW/glad application) | <p>I'm using Visual Studio 2019 and have the following simple OpenGL program as a minimal example (using GLFW and GLAD):</p>
<pre class="lang-cpp prettyprint-override"><code>#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
void error_callback(int error, const char* description) {
... | 1 | 1,434 |
Python2.7 Get the content of an iframe with requests | <p><strong>How do I get the content of this iframe with python's requests?</strong></p>
<p>In Firebug, the content of the iframe is in a response from a POST request which I am finding difficult to access using Python. </p>
<p><strong>Code.</strong></p>
<pre><code>import requests
iframe_url = "https://wwwrs.resbank... | 1 | 3,424 |
HTTPS request results in reset connection in Windows with Python 3 | <p>When I use the following function with the Python 3.2.3 package in cygwin it hangs on any request to any https host. It will throw with this error: [Errno 104] Connection reset by peer, after 60 seconds.</p>
<p>UPDATE: I thought it was limited to only cygwin, but this also happens in Windows 7 64bit with Python 3.3... | 1 | 2,519 |
Extracting segments from a list of 8-connected pixels | <p><em>Current situation</em>: I'm trying to extract segments from an image. Thanks to openCV's <code>findContours()</code> method, I now have a list of 8-connected point for every contours. However, these lists are not directly usable, because they contain a lot of duplicates.</p>
<p><em>The problem</em>: <strong>Giv... | 1 | 1,386 |
Bootstrap input form-control not working on mobile device | <p>My input in mobile version is not opening the keyboard to type the data. When I click on the input nothing happens (in mobile). This issue only happens in mobile.</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 | 1,903 |
Implementing Either Monad in Typescript | <p>I've been experimenting with TypeScript lately, and I'm trying to implement some basic monads. I've already got a reasonably functioning Maybe (with the same methods of my Either below, at least), but Either is eluding me for type-related reasons I don't quite understand.</p>
<p>My typing strategy for higher kinded... | 1 | 1,187 |
Foundation 5 Top Bar Doesnt Drop Down | <p>already read so many topics about this but nothing seems to be working.</p>
<p>just started a project and ive virtually copy/pasted the code from the foundation docs site and it doesnt work.</p>
<p>heres my html
Test
<... | 1 | 1,925 |
how can i get the text Value of a textView which is inside a UITableViewCell | <p>i have a UITableView which has multiple Prototype cells (with different identifiers ) and i have a separate class for my Cells ! this is how i've created my TableViewController :-</p>
<pre><code>import UIKit
class PostTableViewController: UITableViewController, UITextFieldDelegate {
var postArray = [["Sean Paul"... | 1 | 2,128 |
Sorting doubly linked list in c | <p>I want to keep a linked list in sorted order when inserting elements (about 200000 elements in the list), which algorithm can you recommend? I made a simple implementation using insertion sort, but its performance is very very bad (a lot of CPU usage).</p>
<p>Thanks for your help.</p>
<p>I did some comparison betw... | 1 | 1,479 |
TestNG Exception : Cannot Instantiate class | <p>I am getting a java null pointer exception. I am not able to solve it. I have initialize driver in my testbase class and want to use the same driver in my Testing_TVO class</p>
<p>Here is my test base class</p>
<pre><code>public class testbase {
public static WebDriver driver;
String baseURL = "https://mpower.tvo... | 1 | 2,721 |
OpenCv with Android studio 1.3+ using new gradle - undefined reference | <p>I'm having trouble using native OpenCv 2.4.11 (3.0.0 is also ok) with Android Studio 1.3+, with new ndk support. All tutorials about .mk files, but I want to use it with new experimental gradle.<br/>
Using Kiran answer <a href="https://stackoverflow.com/questions/27406303/opencv-in-android-studio">OpenCV in Android ... | 1 | 3,032 |
Laravel 4 login facebook | <p>A few months ago I created my login with a facebook app. Now that I'm on a new project, I used these routes and the controller (the same as in the previous project) but with a new app for facebook and I had this error</p>
<pre><code>Undefined index: username
</code></pre>
<p>app/routes.php</p>
<pre><code>Route::g... | 1 | 1,657 |
How to use FetchAll in PyPyODBC Module for Python? | <p>I am trying to use <a href="https://code.google.com/p/pypyodbc/" rel="nofollow">PyPyODBC</a>, specifically a take on this <a href="https://code.google.com/p/pypyodbc/wiki/A_HelloWorld_sample_to_access_mssql_with_python" rel="nofollow">example</a>. However, I am not interested in creating a new table, I simply want t... | 1 | 1,351 |
UiPath Invoke Code with VB.net vs Visual Studio | <p>After a few days of trying to solve this one I would like to ask you for help - we are currently developing RPA workflow that takes PDF file, reads it, formats it (it's invoice in PDF) and then does something with the data. Right now I have code working in Visual studio of taking string from read PDF activity and fo... | 1 | 2,932 |
Setup ejabberd with PostgreSQL | <p>I am having trouble setting up ejabberd to use PostgreSQL. My environment is OSX for development and a Debian server for production.</p>
<p>The OSX story goes as follows:
ejabberd is compiled from source with odbc support. erlang is installed through macports.
First problem I encountered was the psql modules for er... | 1 | 1,327 |
App crashes at startActivity(intent) | <p>this app crashes when i push over botonRegistro. The intent is created but i think is saved as null and i don´t know why. This is the code:</p>
<pre><code>import com.example.pestanasholacampus.R;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Butto... | 1 | 2,310 |
Joomla 301 htaccess redirects not working | <p>i'm adding 301 redirects to a joomla sites htaccess file. but any of these redirects seems not working, i tried a lot by changes urls, etc but no luck, here is my htaccess file.</p>
<pre><code>## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine... | 1 | 1,622 |
Sending Email Using Java Netbeans (Exceptions) | <p>Recently I made web application which sends an E-mail. The code is working fine I have no error, I have runtime exception </p>
<pre><code>(javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty)
</code>... | 1 | 2,845 |
Multiple discrimination levels while using Doctrine2 | <p>I'm using Doctrine2 to manage my model below: There's an abstract concept <code>Content</code> with a Composite pattern in <code>Gallery</code>, also an abstract concept <code>Media</code> from which <code>Video</code> and <code>Image</code> inherits.</p>
<p><img src="https://yuml.me/diagram/scruffy/class/%5BConten... | 1 | 1,396 |
How do I asynchronously download and cache videos for use in my app? | <p>I know that <code>SDWebImage</code> loads the image in a background thread so you're not blocking the UI/main thread when this downloading is going on. Furthermore, it will also disk-cache all the images you've downloaded and will NEVER re-download an image from the same <code>URL</code>. </p>
<p><strong>So I wonde... | 1 | 1,033 |
Is there an Interceptor in Jersey similar to that of Spring's HandlerInterceptor | <p>I need an Interceptor in Jersey 2.x which gives references to request, response and the Method which matched the Path to a Web Service.</p>
<p>Something similar to <strong>HandlerInterceptor</strong> of Spring.</p>
<p>Requirements:</p>
<ol>
<li><strong>Need Annotations used on Class</strong> - Perform the below c... | 1 | 1,675 |
spring MessageConversionException when deserialzing an avro object | <p>I am sending an avro object User and receiving it in a listener. Here are configs</p>
<pre><code>@Bean
public ProducerFactory<String, User> userProducerFactory() {
Map<String, Object> config = new HashMap<>();
config.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
conf... | 1 | 3,685 |
javascript array error - allocation size overflow | <p>I'm working on a custom application. It is storing a user's workout plan in an array. I have my array in the following format: [week][day][exercise]. A user might have multiple exercises in a day.</p>
<p>I have a function that is validating the workout to make sure the proper types of workouts are selected per w... | 1 | 2,510 |
Flexbox: How to stretch row's elements to full width? | <p>I have a flexbox grid of random width images:</p>
<p><a href="https://i.stack.imgur.com/pfPeU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pfPeU.jpg" alt="enter image description here"></a></p>
<p>I would like to stretch elements of each row to full width in order to get rid of white-space - ... | 1 | 1,419 |
Android Service killed by ANR | <p>I have a Service in my app (created by a thread), and inside I create another thread and that is a TCP server.
Short time after starting the thread (and fully working, receiving and handling the packages received) the service is <strong>killed</strong> by "timeout executing service" and ANR in my service.</p>
<p>T... | 1 | 1,674 |
Set InputBinding(KeyboardBinding) in ListViewItem | <p>I wish to set the Inputbinding of a listViewitem ... It should be a Keyborad binding and not a mouse binding...</p>
<p>I want to Execute a function in my view model when the User selectes an item and presses <code>Enter</code> Key</p>
<h1>Style for ListViewItem</h1>
<pre><code> <Style x:Key="{ComponentRes... | 1 | 3,222 |
Node js authentication in cross domain | <p>I am working on a <strong>MEAN</strong> application, I am using Angular 4 for my project. For authentication, I have implemented the Passport js <a href="https://github.com/jaredhanson/passport-local" rel="nofollow noreferrer"><code>Local-strategy</code></a>. And I am maintaining persistent session using <a href="ht... | 1 | 2,462 |
Can't override extended twig template block to empty | <p>I'm using <em>MopaBootstrapBundle</em> in <em>Symfony 2.1.3</em> with <em>Twig</em> templates.
This bundle has <em>base.html.twig</em> template which contains scripts block:</p>
<pre><code>{% block foot_script %}
{# To only use a subset or add more js overwrite and copy paste this block
To speed up page loa... | 1 | 1,578 |
TypeORM Entity Metadata not found | <p>Heyho,</p>
<p>im trying to build a backend for a type of ecommerce site using NestJS + TypeORM.</p>
<p>i need a m:n relation between my order and products table. Hovever since i need some custom fields within the pivot table i looked up typeorms documentation and as stated there i need to create a new entity which i... | 1 | 1,620 |
No nodes available in AWS EKS | <p>I am trying to setup an AWS EKS cluster and followed the instructions in <a href="https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html</a>. But while trying to setup the dashboard I realized I do not ha... | 1 | 3,359 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.