title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
mfc tab control switch tabs
<p>I created a simple tab control that has 2 tabs (each tab is a different dialog). The thing is that i don't have any idea how to switch between tabs (when the user presses <code>Titlu Tab1</code> to show the dialog i made for the first tab, and when it presses <code>Titlu Tab2</code> to show my other dialog). I added...
0
2,519
Django: Error 500 (INTERNAL SERVER ERROR) when doing ajax call
<p>Hi when I'm doing ajax call, I'm getting this in console:</p> <pre><code>POST http://127.0.0.1:8000/registration/check/username/ 500 (INTERNAL SERVER ERROR) </code></pre> <p>Also when I click on this link, I'm getting this:</p> <pre><code>DoesNotExist at /registration/check/username/ User matching query does not...
0
1,442
GoogleApiClient onConnected never called on Wearable device
<p>I have a wearable device that I'm trying to connect to the GoogleApiClient but the callbacks are never called (onConnected, onConnectionSuspended or onConnectionFailed). Everything else is working fine, the DataLayerListenerService is able to receive messages from the handheld and the onPeerConnected is being called...
0
1,359
How to upload a file only once with blueimp file upload plugin?
<p>I'm using the <a href="http://blueimp.github.com/jQuery-File-Upload/" rel="noreferrer">bluimp jQuery-File-Upload-plugin</a> . It's no problem to select some files and upload them, but when I want to upload another files without refreshing the page, the first ones are getting uploaded again. My question is how can I ...
0
1,660
findViewById() returns null when I call it in onCreate()
<p>I'm having a problem with the findViewById on my first android app. I'm trying to call this function but always return null.</p> <p>My app have 2 activities. In the second activity (activity_display_message) I have this code:</p> <pre><code>@Override protected void onCreate(Bundle savedInstanceState) { super.o...
0
1,790
TypeError: new(): argument 'size' must be tuple of ints, but found element of type NoneType at pos 2 when using pytorch, using nn.linear
<p>File &quot;C:\Users\J2\Desktop\Pytorchseries\thenn.py&quot;, line 50, in net = Net() TypeError: new(): argument 'size' must be tuple of ints, but found element of type NoneType at pos 2</p> <p>If it helps I was following the sentdex pytorch tutorial. Any help would be appreciated. I am new to machine learning, and ...
0
1,665
mocking out database queries laravel mockery
<p>I am trying to wrap my head around Unit testing with PhpUnit / Mockery / Laravel. It's not coming easy. I've been reading dozens of tutorials and still can't apply it in real life scenarios.</p> <p>I will present a piece of code I would like to test. Can anyone please point me on how to test the method <strong>modi...
0
1,606
BitmapFactory Unable to decode stream
<p>Hey I am not sure why this keeps coming up every time I select an image in my gallery?</p> <p>Here is the code:</p> <pre><code>if (v == uploadImageButton) { // below allows you to open the phones gallery Intent intent = new Intent(); intent.se...
0
1,691
How to fix SSL certificate error when running Npm on Windows?
<p>When I try to install a package with npm, it doesn't work. After a long wait, I eventually get an error 'tunneling socket could not be established, sutatusCode=403'.</p> <pre><code>$ npm install coffee-script npm http GET https://registry.npmjs.org/coffee-script npm http GET https://registry.npmjs.org/coffee-script...
0
1,083
How do I query data in CakePHP using HABTM relationships?
<p>I'm working on a CakePHP 1.2 application. I have a model "User" defined with a few HABTM relationships with other tables through a join table.</p> <p>I'm now tasked with finding User information based on the data stored in one of these HABTM tables. Unfortunately, when the query executes, my condition is rejected w...
0
1,499
Working with multiple panels in one frame
<p>I have a problem where i want a program to switch between multiple panels in a same frame. The problems I am encountering are that i can't set the layout when the panels switch and after the switch content is lowering pixel by pixel. Here is my code.</p> <pre><code>import java.awt.Dimension; import java.awt.EventQu...
0
4,139
Airflow: ValueError: Unable to configure handler 'processor' - wasb logger
<p>I am trying to configure remote logging with Azure blob.</p> <pre><code>Airflow version: 1.10.2 Python: 3.6.5 Ubuntu: 18.04 </code></pre> <p>Following are the step I did:</p> <ol> <li>In $AIRFLOW_HOME/config/log_config.py, I have put REMOTE_BASE_LOG_FOLDER = 'wasb-airflow-logs' (This is a folder inside the contai...
0
1,883
How to setup Log4j2 for an application deployed in WildFly 9?
<p>When I test my application with JUnit, it is printing the log as specified by layout pattern in <code>log4j2.xml</code>, but when I deploy my application in WildFly 9, I am no more getting the same format. Even the log level in Log4j2 is also not reflecting while deployed in server.</p> <p>JUnit log example:</p> <...
0
2,056
Nginx, PHP - An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later
<p>I get an error when I access my <code>index.php</code> of my <code>/usr/local/nginx-1.12.2/html</code>.</p> <pre><code>An error occurred. Sorry, the page you are looking for is currently unavailable. Please try again later. If you are the system administrator of this resource then you should check the error log fo...
0
1,330
Get Data from Bluetooth device in C#
<p>I'm trying to get data from a medical BT device that I already have pairing code and communication protocol.</p> <p>Looking for some code I've got this code:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using InTheHand.Net.Sockets; using InTheHand.Net; using ...
0
1,503
e.srcElement is undefined in firefox?
<p>I am developing a website and now am testing in all browsers, I am currently testing in firefox and have found and error when using event.sourceElement?</p> <p>What i need e.srcElement to do is return values, a bit below i show an example on how i get the value PropID returned.</p> <p>I have written a Jquery funct...
0
1,108
String MinLength and MaxLength validation don't work (asp.net mvc)
<p>I have this class</p> <pre><code>using System.ComponentModel.DataAnnotations; using Argussoft.BI.DAL.Domain.Users; namespace Argussoft.BI.DAL.DTOs.UserDTOs { public class CreateUserDto { [Required(ErrorMessage = "Введите логин")] [MaxLength(User.EmailLength, ErrorMessage = "Максимальная дли...
0
4,133
Make Item go the bottom using Flexbox and Material UI
<p>I am trying to add Unassigned Text to the bottom of my Container, as shown in this mockup:<a href="https://i.stack.imgur.com/863cl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/863cl.png" alt="enter image description here"></a></p> <p>Below is the code, that I have so far. I am struggling to ge...
0
1,554
Zookeeper for Apache-Kafka: problems with port 2181 in Ubuntu 18.04.01 Server
<p>I'm trying to figure out how to successfully reach the end of this tutorial, for the installation and first running of Apache-Kafka : <a href="https://idroot.net/linux/install-apache-kafka-ubuntu-18-04-lts/" rel="nofollow noreferrer">How To Install Apache Kafka on Ubuntu 18.04 LTS</a></p> <p>After killing the previ...
0
4,860
Free drawing on canvas using fabric.js
<p>I am trying to draw a free drawing on canvas using fabric.js but i am not able to free draw a like spray, circle, texture mode on my side i use this code only the pencil mode drawing is working but when i select spray and other mode that mode drawing as pencil.</p> <p>Here is my HTML <a href="http://jsfiddle.net/R...
0
2,785
mongodump error "Failed: error reading from db: EOF" (no entries in server log)
<p>Our mongodb.conf of version 3.06 and data files only 240 MB in size. Network is reliable at this timestamps.</p> <pre><code># mongod.conf # Where to store the data. # Note: if you run mongodb as a non-root user (recommended) you may # need to create and set permissions for this directory manually, # e.g., if the ...
0
1,653
FreeTDS connection problems
<p>I'm using FreeTDS 0.91 to connect to a remote MSSQL server but all attempts have borne no fruit thus far.</p> <p>Upon doing a tsql command on my Unix, I get the following error:</p> <pre><code> locale is "en_US.UTF-8" locale charset is "UTF-8" using default charset "UTF-8" Error 20004 (severity 9) Read fr...
0
1,400
Outlook software strips out the inline CSS in emails
<p>I have an email like the following. The problem is, it works fine on Gmail, but on outlook, all CSS inline statements don't work. </p> <p>One example is:</p> <pre><code>&lt;a href="https://www.facebook.com/BePureApparel" target="_blank"&gt;&lt;img style="width: 35px;" src="{img_dir}fb.png" /&gt;&lt;/a&gt; //The i...
0
3,057
"reached elapsed time limit" errors in R
<p>I keep getting "reached elapsed time limit" errors in R. I'm using studio. </p> <p>This is the code I am trying to run, a simple graph in ggplot:</p> <pre><code>require(ggplot2) docgraph &lt;- ggplot(data = plotnvto, aes(calluna, doc)) + geom_point(aes(x = calluna, y = doc, color = "calluna"), size = 3) + ge...
0
3,911
jquery ui tab select method not working
<p>I have two tabs with a submit button on each tab. When the button is clicked, I need to reload the content of that specific tab to get updated data from the server. </p> <pre><code>if (validStatus()) { $.ajax({ //... success: reloadTab }); } function reloadTab() { ...
0
1,146
Not able to read IHDR chunk of a PNG file
<p>I have read PNG file specification and learnt that after the first 8 bytes of PNG signature, we have the IHDR chunk. This image states that we have IHDR with length of 13(0x0000000D) bytes. <a href="https://i.stack.imgur.com/hcIIO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hcIIO.png" alt="en...
0
3,075
Cannot access API explorer on localhost
<p>I'm trying to build an Endpoints application, but am new to Google App Engine.</p> <p>As I understand it, there's some kind of API Explorer included in the SDK that should let me test/verify my API -- the docs say: "Test the API backend in the Google APIs Explorer by navigating to <code>http://localhost:8080/_ah/ap...
0
1,080
PHP Get selected Values on a drop down list
<p>I have this script that displays the year, month and day on a drop down.</p> <p>my question is: how do I get the selected values in the format of d-m-y?</p> <p>let's say if i will have a button to get the current selected values and display on a textbox. how would i do it?</p> <p>any ideas are greatly appreciated...
0
1,311
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
<p>I am trying to insert a row into my POSTGRES database and it throws the error below. I am using Struts2 / Hibernate. The query which is shown in the log file is getting executed properly when i do it manually. Kindly help.</p> <p>Hibernate queries:</p> <pre><code>select nextval ('hibernate_sequence') insert into p...
0
3,285
About Error ":= and `:=`(...) are defined for use in j, once only and in particular ways. See help(":=")"
<p>I encountered a weird error message in data.table</p> <p>I modified a data.table using <code>:=</code> , and it is totally OK without any error. When I trying to put the code into a function, the following error message comes out. </p> <pre><code>Error in `:=`(date, as.Date(as.character(date), "%Y%m%d") - 1) : :=...
0
1,896
How to launch the beforeShowDay of DatePicker from another function
<p>I have a Datepicker with the following code. I have a dropdownbox and upon a change in the dropDown box I want to launch the datePicker beforeShowDay function. How can I do this?</p> <pre><code>var freeDate; </code></pre> <p>Part of my code is as follows:</p> <pre><code>$("#myDiv").datepicker({ showOtherMo...
0
1,058
Import xlsx file into Python using xlrd
<p>Trying to import a .xlsx file into Python. I've google and google. I had this code written and working for .csv but it needs to be for .xlsx files. So I basically pieced together and did a hail mary in hopes that it would work. Any and all help is greatly appreciated!</p> <p>** Added my whole code and a snippet of ...
0
2,953
Centering brand logo in Bootstrap Navbar
<p>I am trying to implement a Bootstrap 3 navbar so that the brand logo to always remain in the middle. This is the code:</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-html lang-html prettyprint-override"><code>&...
0
1,077
Does EF upsert have to be done manually?
<p>I want to upsert reference members of an existing entity.</p> <p>Do I have to write specific code for the upsert?</p> <p>meaning: I have to check if I'm handling an existing reference member or a new one.</p> <p>Is there any other simple way to do so?</p> <p>What happens when you do only <code>Save</code> ?</p> ...
0
2,054
trying to send intent to other app: error SecurityException: Permission Denial: starting Intent
<p>I'm trying to send an intent from app A to app B. In the activity of app A I do the following:</p> <pre><code>Intent i = new Intent(); i.setAction("com.example.test2.REQUEST_RESPONSE"); i.putExtra("info", "bla bla bla"); startActivityForResult(i, 0); </code></pre> <p>In app B I have the following activity in the m...
0
1,848
C# convert a string for use in a logical condition
<p>Is it possible to convert a string to an operator for use in a logical condition.</p> <p>For example</p> <pre><code>if(x Convert.ToOperator("&gt;") y) {} </code></pre> <p>or</p> <pre><code>if(x "&gt;" as Operator y){} </code></pre> <p>I appreciate that this might not be standard practice question, therefore I'm...
0
1,245
UIScrollView Zoom Does Not Work With Autolayout
<p>Zooming with UIScrollView using a strictly autolayout environment does not seem to work.</p> <p>This is especially frustrating because the iOS 6 release notes certainly lead me to believe it should when the wrote about a "Pure Auto Layout approach" here <a href="http://developer.apple.com/library/ios/#releasenotes/...
0
1,331
DYLD_LIBRARY_PATH & DYLD_INSERT_LIBRARIES not working
<p>I create a .dylib file and compile it:</p> <pre><code>#define _GNU_SOURCE #include &lt;dlfcn.h&gt; #include &lt;stdio.h&gt; static void* (*real_malloc)(size_t); void *malloc(size_t size) { void *p = NULL; fprintf(stderr, "malloc(%zd) = ", size); p = real_malloc(size); fprintf(stderr, "%p\n", p); ...
0
1,338
Transaction is required to perform this operation (either use a transaction or extended persistence context)
<p>I'm using Wildfly 10.0.0 Final, Java EE7, Maven and JPA 2.1. When I am querying my database for records it works fine and lists out the employees, but when I am trying to persist a new employee it gives me the following exception:</p> <pre><code>javax.servlet.ServletException: WFLYJPA0060: Transaction is required t...
0
2,576
You seem to not be depending on "@angular/core and/or "rxjs". This is an error
<p>I am having issue with the nodejs. It's because I tried to migrate from angular 5 to 6, But failed. So, I cannot be able to run or build my project using nodejs. Is there any fix for this issue will be helpful</p> <p>When I tried to install my npm running the following command:</p> <pre><code>npm install </code></...
0
4,809
Present a UIAlertController from within a Popover in iOS8
<p>I set a UITableViewController to be displayed in a popover on iPad : <img src="https://i.stack.imgur.com/dM34T.png" alt="UITableViewController inside a popover"></p> <p>When I click on a row, I display an alert to warn the user of a potential destructive action. I used the new UIAlertController, and here is what ha...
0
1,088
git rename/delete confusion
<p>I having one confusion about a particular git behavior:</p> <p>Following are the steps and situation (the list of commands are also given later):</p> <ol> <li>I have two branches: master and XBranch</li> <li>There is a file src/a.txt in both of them. It's content is "Old Content"</li> <li>In XBranch I rename src/a...
0
1,518
laravel use count/sum method after groupBy
<p>When I use <code>count</code> or <code>sum</code> method, I get the wrong result.</p> <p>For example:</p> <pre><code>Member::groupBy('id')-&gt;count() </code></pre> <p>I only get result 1, in another method</p> <pre><code>Member::count() </code></pre> <p>I get the right result.</p> <p>I get wrong result when u...
0
1,329
Runtime Error '1004':, Method 'Intersect' of object '_Global' failed
<p>I am getting a runtime error 1004 if I'm not on the same page that the script is meant to run on, and I'd like to know why...</p> <p>here is the code.</p> <pre><code>Option Explicit Sub PO_Tracking() Dim wsPOD As Worksheet Dim wsPOT As Worksheet Dim wsPOA As Worksheet Dim cel As Range Dim lastrow As Long, i As L...
0
1,331
Python: IndexError: list index out of range
<p>I think I have my program completed, but... it doesn't work. I'm trying to write a program that simulates a lottery game, but when I try to check the user's guesses against the number of guesses on the ticket, I get an error that tells me the "list index is out of range". I think it has something to do with the part...
0
1,113
Automatically add dash in phone number in Android
<p>Instead of 5118710, it should be <strong>511-8710</strong>. I'd like to add a dash after the user the user inputted 3 digits already in the EditText. The maximum length of the EditText is 7 digits only.</p> <p>After I figured out the above problem, I've got stuck in coding again. When I already inputted 3 digits, i...
0
1,092
Changing the content of framelayout on button click
<p>Right I have a main layout defined, that has a frame, a table in that frame and then at the bottom a horizontal scroll view with a load of buttons. When the button is clicked the content of frame should change to a new table, just like when you choose a different tab in the tab layout tutorial (not using a tab layou...
0
3,006
Bottom Sheet Above Bottom Navigation
<p>My goal is to place a "bottom sheet" on top of a <code>BottomNavigationView</code> like this:</p> <p><a href="https://i.stack.imgur.com/FVQ7D.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/FVQ7D.jpg" alt="enter image description here"></a></p> <p>But it stays the following way. Both views collapse:</p> ...
0
1,267
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xaum7z8f/supervisor/
<p>I'm setting up an existing project and when I am running <code>pip install -r requirements.txt</code></p> <p>After every dependency is installed it gives this error: <code>Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-d0j9czw9/supervisor/</code></p> <p>This is the list of complete...
0
5,195
NestedScrollView scroll down itself when content is fills
<p>I have xml, which consits of <code>DrawerLayout</code>, <code>CoordinatorLayout</code> with <code>custom views</code>, <code>AppBarLayout</code>, <code>NestedScrollView</code>.</p> <p><strong>Problem:</strong> When content in <code>NestedtScrollView</code> fills, <code>NestedtScrollView</code> scrolls down itself. ...
0
2,025
HasAnyAuthority always let me in into the api whenever it is declared to stop the request
<p>Going through Spring Security I created a method:</p> <pre class="lang-java prettyprint-override"><code>@Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(securedEnabled = true) public class WebSecurityConfig extends WebSecurityConfigurerAdapter { @Autowired private UserDetailsService userDetails...
0
1,181
Error Number: 1064 in codeigniter
<p>I am getting this error when ever i am uploading a file and storing details in the database using codeigniter</p> <p>here is my controller</p> <pre><code> public function sugsn_up() { if ( $this-&gt;session-&gt;userdata('login_state') == FALSE ) $this-&gt;load-&gt;view('faculty/facultylog1_view'); ...
0
1,348
Kotlin Android Fragment recyclerView and context issue
<p>I would like to create an recyclerView in a fragment, but it shows an error " java.lang.IllegalStateException: recylerView_Main must not be null at com.gph.bottomnavigation.FragmentMe.onCreateView(FragmentMe.kt:28)"</p> <ul> <li>Question 1) Please kindly help to solve this issue. </li> <li>Question 2) I ...
0
1,888
Resource is not loading in executable Spring boot jar - How executable jar loads resources?
<p>I am trying to run executable boot spring jar based on documentation provided <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html" rel="noreferrer">here</a>. I am expecting the resources will be copied to the executable jar on running</p> <pre><code>mvn clean package </cod...
0
1,245
How to animate a progress bar in Bootstrap 3?
<p>I am trying to animate Bootstrap progress bar, but I'm not sure how to do that.</p> <p>I got the value of the width but <code>console.log(bar_width);</code> returns the width in <code>px</code> but not <code>%</code> as shown inline <code>style="width:90%</code>.</p> <p>I recreated a bootply with the code: <a href...
0
1,078
Export denormalized data from excel to xml
<p>We are trying to export an excel table with "Denormalized Data" to xml. The table headers are as follows:</p> <pre><code>| AssetManager Code | AssetManager Date | Portfolio Code | Portfolio Name | MarketValue | NetCashFlow | Field | Field Code | Field Name | </code></pre> <p>The AssetManager Code and AssetManager ...
0
1,663
MethodNotAllowedHttpException in Laravel 5
<p><b>Routes.php</b></p> <pre><code>Route::post('deactivatecountry', array( 'as' =&gt; 'deactivatecountry', 'uses' =&gt; 'CountriesController@deactivateCountry' )); Route::post('deactivatestate', array( 'as' =&gt; 'deactivatestate', 'uses' =&gt; 'StatesController@d...
0
1,489
PHP is_writable() function always returns false for a writable directory
<p>I'm trying to install a PHP-based <a href="https://www.limesurvey.org/">software package</a> in a Red Hat 7 Amazon EC2 instance (ami-8cff51fb) that has had Apache 2.4.6 and PHP 5.4.16 installed on it using yum. The installation fails because it says a particular directory needs to be writable by the webserver with 0...
0
1,558
WebDAV and WebAPI together cause Error: Handler "ExtensionlessUrlHandler-Integrated-4.0" has a bad module "ManagedPipelineHandler" in its module list
<p>I have both WebDAV installed and running on my site, as a virtual sub site i have a MVC WebAPI site, the API works great, until I try to send a PUT request to it, then i get the below error:</p> <p><strong>HTTP Error 500.21 - Internal Server Error</strong></p> <p><strong>Handler "ExtensionlessUrlHandler-Integrated...
0
1,135
Set notifyDataSetChanged() on Recyclerview adapter
<p>I'm implementing an endless data loading for a RecyclerView. When software detects that last item is going to be shown, it downloads new items and call to the <code>loadMoreData()</code> function but new dataset is not showing. </p> <p>When I called <code>notifyDataSetChanged()</code> so nothing to be happened. ...
0
7,302
@ExtendWith(SpringExtension.class) not working
<p>I'm trying to use Junit 5 on a spring-boot 2.x project to test a Controller.</p> <p>The following works fine</p> <pre><code>import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static o...
0
4,912
C# read/write .xlsm Files
<p>Hi i try to work with Excel files and C#. Right now i can work with xlsx files and can open it and so on. But when i change it to xlsm Files i always get an exception that the files where not found and i have no clue why. Here is my code:</p> <pre><code>using System; using System.Collections.Generic; using System.L...
0
1,836
Why is XmlNamespaceManager necessary?
<p>I've come up kinda dry as to <strong>why</strong> -- at least in the .Net Framework -- it is necessary to use an <code>XmlNamespaceManager</code> in order to handle namespaces (or the rather clunky and verbose <code>[local-name()=...</code> XPath predicate/function/whatever) when performing XPath queries. I <strong>...
0
1,205
import javax.persistence.column, javax.persistence.entity, javax.persistence.Id - and so on - cannot be resolved
<p>I am trying to follow <a href="http://viralpatel.net/blogs/spring3-mvc-hibernate-maven-tutorial-eclipse-example/" rel="nofollow noreferrer">this tutorial</a>. Instead of starting by using the downloadable project I thought I'd start from a simple "spring MVC - Maven - eclipse" project I did before. This project was ...
0
2,205
Android: BaseAdapter and getLayoutInflater on separate class file
<p>Right now to populate my GridViews I'm using a extended BaseAdapter class on each of my Android Activities (which are most of them).</p> <p>In order to make it easier to read and maintain, I`m trying to put all the BaseAdapter code in a separate class file.</p> <p>To populate the GridView, I'm using LayoutInflater...
0
1,051
JavaScript issue with scrollTo() in Chrome
<p>I try to create a web page with a fixed navigation bar at the top that covers the content underneath. When loading the page with an anchor in the url the normal behaviour is that the page scrolls the anchor to the top of the window. But then that content is hidden under the navigation bar. So I try to solve this pro...
0
1,286
How can I get my css gradient to work in IE?
<p><a href="http://www.10thplanetjjchicago.com/" rel="nofollow">http://www.10thplanetjjchicago.com/</a></p> <p>Everything seems to work fine in Firefox/Chrome/Safari/Opera. But I can't seem to get my content div to display correctly in Internet Explorer. The gradient just doesn't display or cuts off - yet the text an...
0
1,864
Observed package id 'build-tools;20.0.0' in inconsistent location
<pre><code> ./gradlew --parallel :app:assembleDebugTest </code></pre> <p>when i run above command in <strong>android studio</strong> terminal i got this error.</p> <p><strong>Error</strong> Parallel execution is an incubating feature. <strong>Observed package id 'build-tools;20.0.0' in inconsistent location 'sdk/b...
0
1,601
Web project's folders/directories structure - Best practices
<p>I’m working on different web projects and I was wondering if there is any rule of thumb regarding the project/ folders structure?</p> <p>Many of my apps are build in the structure where each file type has it’s own directory. For example:</p> <pre><code>└─┬root | ├─┬node_modules | └ // node_modules (npm libra...
0
1,256
Why BroadcastReceiver works even when app is in background ?
<p>I am checking Internet connectivity in my app using BroadcastReceiver and I show an alert dialog if the connection is lost. It works fine. But my problem is that BroadcastReceiver works even if my app is in backgroung. So dialog pops up when internet connection is lost even if user is in some other app. This is tota...
0
1,242
The GridView 'GridView1' fired event RowDeleting which wasn't handled , but there is an event
<p>ı have been traying to create dynamic control panel using webusercontrol , delegate,and ADO. Even ı have write the delegate for deleting and editing ı faced with "The GridView 'GridView1' fired event RowDeleting which wasn't handled."problem . Can anybody help me pls here is my codes</p> <pre><code> protected vo...
0
1,426
how to generate soap request and get response in java coding
<p>can anyone help me to develop a java program which will interact with the webservice.</p> <p>I created a simple webservice in netbeans. it generates wsdl file and i take the url from it.</p> <p>By using the wsdl file that is created in netbeans, i have to send soap request and get response in a java program.</p> ...
0
1,168
pyspark addPyFile to add zip of .py files, but module still not found
<p>Using <code>addPyFiles()</code> seems to not be adding desiered files to spark job nodes (new to spark so may be missing some basic usage knowledge here).</p> <p>Attempting to run a script using pyspark and was seeing errors that certain modules are not found for import. Never used spark before, but other posts (fr...
0
1,223
How to set up Babel 6 stage 0 with React and Webpack
<h2>My understanding from the docs</h2> <p>I see that Babel 6 has three presets for now: es2015, react and stage-x. I read that I can set those in <code>.babelrc</code> like so:</p> <pre><code>{ "presets": ["es2015", "react", "stage-0"] } </code></pre> <p>or directly in package.JSON like so:</p> <pre><code>{ .....
0
2,237
How to set column widths to a jQuery datatable?
<p>I have a jQuery datatable(outlined in red), but what happens is that the table jumps out of the width I have set for the div(which is 650 px).</p> <p>Here is the screen shot: <img src="https://i.stack.imgur.com/kIcNT.jpg" alt="enter image description here" /></p> <p>Here is my code:</p> <pre><code>&lt;script type=&q...
0
2,759
Reading remote HDFS file with Java
<p>I’m having a bit of trouble with a simple Hadoop install. I’ve downloaded hadoop 2.4.0 and installed on a single CentOS Linux node (Virtual Machine). I’ve configured hadoop for a single node with pseudo distribution as described on the apache site (<a href="http://hadoop.apache.org/docs/r2.4.0/hadoop-project-dist/...
0
1,745
Performance of Writing to File C#
<p><strong>Overview of My Situation:</strong></p> <p>My task is to read strings from a file, and re-format them to a more useful format. After reformatting the input, I have to write it to a output file.</p> <p>Here is an Example of what has to be done. Example of File Line :</p> <pre><code>ANO=2010;CPF=17834368168;...
0
2,761
Android: EditText in ListView issue
<p>I have a listview in my application that is basically a questionaire so there are some EditTexts that the user needs to fill. I've encountered the following issues:</p> <ol> <li><p>Some of the EditText require numeric input, so I set the inputType in the corresponding xml type as numeric, however, as when I click o...
0
1,066
URL must start with 'jdbc' in sprinboot
<p>My application was running but when, I got application error. I tried several times the same thing happening. I checked database connection and everything is fine. These are my logs</p> <p><strong>Exception</strong></p> <hr> <pre><code>Caused by: java.lang.IllegalArgumentException: URL must start with 'jdbc' at o...
0
1,140
Not able to install capybara-webkit using bundle install command in Rails 4
<p>I am getting following error while executing command <code>bundle install</code> in my Rails 4 application.</p> <pre><code>&gt; ruby -v ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32] &gt; rails --version Could not find gem 'capybara-webkit x86-mingw32' in any of the gem sources listed in your Gemfile or...
0
1,244
Python - Flask: render_template() not found
<p>I'm new in flask. I have this code: Will you give me an advice what I'm doing wrong? Thanks</p> <pre><code>from flask import Flask from flask import request from flask import render_template app = Flask(__name__) @app.route('/') def my_form(): return render_template('my-form.html') @app.route('/', methods=[...
0
1,074
Responsive Bootstrap Navbar
<p>I am trying to make a Navbar for my site that has a dropdown menu on the left, image in the center, and collapsable item on the right. I am using bootstrap with less to style the navbar, but I am having trouble.</p> <p>I have searched Stack overflow looking for ways to make this work, like <a href="https://stackove...
0
1,241
How to convert from raw pointer to unique pointer in C++
<p>So, I thought that by converting from raw pointer to unique pointer was not hard at all. However, as I am trying to attempt to do one for myself, I run into a lot of problems that I don't even know of. This example below will explain more what I mean. I got a lot of errors from Visual Studio that I don't know how to...
0
1,176
incrond running but not executing command under CentOS 6.4
<p>I have installed incron from the EPEL repository (before you ask; YES, I also tried downloading the source and compiling locally; same results) and am attempting to set up a process on my CentOS 6.4 (final) virtual box that I have successfully prototyped on my local Ubunto 12.04 machine:</p> <p>Some information up ...
0
1,269
"Circular view path" in a simple Spring Boot project with a Controller
<p>I have a simple Spring Boot project with this Gradle build file:</p> <pre><code>apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'spring-boot' apply plugin: 'war' sourceCompatibility = 1.7 targetCompatibility = 1.7 version = '1.0' buildscript { ext { springBootVersion = '1.1.9.RELEASE' ...
0
2,615
Correct the classpath of your application so that it contains a single, compatible version of org.axonframework.eventsourcing.eventstore.jpa
<p>I am working on <code>Spring Boot + Axon</code> example. Following <a href="https://www.youtube.com/watch?v=lBKZOTe9QM4&amp;list=PL4O1nDpoa5KTq5QKX9ueK-0QCJ-6Wm_ma" rel="noreferrer">https://www.youtube.com/watch?v=lBKZOTe9QM4&amp;list=PL4O1nDpoa5KTq5QKX9ueK-0QCJ-6Wm_ma</a> link from the youtube and using the latest ...
0
3,342
angularjs call to an external url with $http.get
<p>I have a problem with angular and calls to an external json, the fact is that local works perfectly, but when I make the call with a full url gives me 404, I leave the code in case you see something missing, thanks:</p> <pre><code>// JavaScript Document var angularTodo = angular.module('lostsysApp', []); function ...
0
1,704
HTTP Status 500 - Servlet.init() for servlet appServlet threw exception
<p>I want to try a simple program but getting following error. I am using Eclipse Kelper and Tomcat 7.0. Tried a lot of things, but nothing is working for me.</p> <pre><code>HTTP Status 500 - Servlet.init() for servlet appServlet threw exception type Exception report message Servlet.init() for servlet appServlet thr...
0
2,267
Android AlertDialog box WindowManager$BadTokenException problem
<p>I am using the the following code for a context menu and then if user chose delete, a dialog massage will appear.</p> <pre><code>infos.setOnCreateContextMenuListener(new OnCreateContextMenuListener(){ //@Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMe...
0
1,171
Two classes have the same XML type name "objectFactory"
<p>We have been using JAXB 2.1 for a long time in our system. We have a platform that is built with Ant and generates a bunch of bundles that are deployed in an OSGi runtime. We use Java SE 6.</p> <p>We use JAXB during the build process to generate datatypes from different schemas. Those classes are packaged in the bu...
0
2,006
Testing custom Views with Robolectric
<p>I'm trying to run unit tests with Robolectric 2.1.1 and I cannot get it to inflate custom layouts (e.g. ViewPagerIndicator classes). Suppose this is my layout:</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" andro...
0
5,463
PostgreSQL: background worker "logical replication launcher" exited with exit code 1
<p>Using our own instance of Gitlab we get the error <code>background worker "logical replication launcher" exited with exit code 1</code> when trying to use the postgres service in our runners. Haven't found anything useful over the internet. Any idea what's going on? </p> <p>Versions:</p> <ul> <li>Gitlab 12.4.3</li...
0
2,383
Passing parameter programmatically and displaying in crystal reports
<p>I have a crystal report in which I set the datasource and parameter programmatically. This works when I just display regular data in the report. However, when I try to show the parameter value in the report header (it's a date), I get prompted to enter the parameter. Any ideas as to what's causing this? I'm new to c...
0
1,059
C# Sql Connection String
<p>I'm a 17 year old software engineering student and am having trouble with linking my sql database to my C# Win App. I was able to accomplish this task using a access database but the database needs to be in SQL. Any Help would be greatly appreciated! The code i have so far is :</p> <pre><code>Form1.cs using System...
0
1,859
Why is flyway ignoring my SQL migration files?
<p>We are using flyway in our java, gradle spring based MVC application. I have kept my SQL files at src/main/resources/db/migration folder. </p> <p>Below is my flyway gradle config file.</p> <pre><code>apply plugin: "org.flywaydb.flyway" flyway { driver = 'com.mysql.jdbc.Driver' url = "jdbc:mysql://localhos...
0
1,094
Using Jquery AJAX function with datatype HTML
<p>We have a complete code for getting the values from PHP through Jquery AJAX with JSON datatype. Here are the codes. </p> <p><strong>HTML CODE</strong></p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Ajax submit&lt;/title&gt; ...
0
1,584
Rownum in the join condition
<p>Recently I fixed the some bug: there was rownum in the join condition.</p> <p>Something like this: left join t1 on t1.id=t2.id and rownum&lt;2. So it was supposed to return only one row regardless of the “left join”.</p> <p>When I looked further into this, I realized that I don’t understand how Oracle evaluates r...
0
1,097
NLog not writing debug messages
<p>In my code I have some info messages like <code>logger.Log("dwewe")</code> and <code>logger.Debug("ddddf")</code>.</p> <p>The problem is that the Debug messages are not being written even when I debug in VS.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;nlog xmlns="http://www.nlog-project.org/sc...
0
1,265
Remove the mouse over effect on a ListView in WPF
<p>How can I get ride of the pale blue mouse over effect on my <code>ListView</code>?</p> <p>When I touch the screen a pale blue selector appears and stays in the middle of the screen as I scroll up and down (but the selected item which is highlighted in a darker blue doesn't change). I'm guessing it's the mouse over ...
0
1,674
Deploying Maven dependencies to S3: No connector available
<p>I'm trying to use Amazon S3 to host my Maven artifacts. I've added the following to my pom.xml:</p> <pre class="lang-xml prettyprint-override"><code>&lt;distributionManagement&gt; &lt;repository&gt; &lt;id&gt;maven.xxx.com-release&lt;/id&gt; &lt;name&gt;AWS S3 Release Repository&lt;/name&gt; ...
0
5,633