title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
SoftAssert fails all my test methods after calling SoftAssertobj.assertAll() function
<p>I am automating a website and i'm using soft assert for failing my testcases. But now I am getting failure reports for all the testmethods which comes after a test method that failed in a particular scenario. Given below is the sample code</p> <pre><code> //Function Call commFunction.backnavigation(driver,...
2
2,023
Nginx Client SSL certification validation
<p>I am very new to Nginx and I need your help/suggestions in resolving below issue.</p> <p>I have configured Nginx as a reverse proxy on windows server 2012 r2 and trying to route calls to my Backend server 'SERVERA' whenever request is made to Nginx.</p> <p>My requirement is like, I need to pass a client certificat...
2
1,378
UDP broadcasts - Android app requesting Java server IP Address
<p>I'm trying to get an android app to ping my server, and the server to return its IP Address.</p> <p>So far, I've got it to communicate with the server and the server to send a packet back, however, I need to send the server IP Address back.</p> <p>UDPService.java (server)</p> <pre><code>package mySystem.server; ...
2
2,440
how to order a big csv file with php?
<p>i'm looking for an algorithm strategy. I have a csv file with 162 columns and 55000 lines. I want to order the datas with one date (which is on column 3).</p> <p>first i tried directly to put everything in an array, but memory explodes.</p> <p>So i decided to : 1/ Put in an array the 3 first columns. 2/ Order this...
2
1,079
Updating highcharts dynamically with json response
<p>I am trying to draw highcharts with the json response, however I can able to draw for the first time, but unable to update the series with new data </p> <pre><code>function get_chart(data) { //alert('hello..' + data); return { xAxis: { type: 'datetime', ...
2
1,594
PyPDF2 append a PDF from the 2nd page
<p>I'm learning how to program using the "automate the boring stuff"-book, I have, however stumbled upon a roadblock in chapter 13. "Merge multiple PDF's, but omit the title page from all but the first page"</p> <p>In the book, they do it by looping over the PDF, however, while looking into PyPDF2 module, I found the ...
2
1,553
Drag/Drop event only works once on dynamically added divs
<p>I'm using the drag and drop libraries found here: <a href="http://threedubmedia.com/code/event/drop/" rel="nofollow">http://threedubmedia.com/code/event/drop/</a> But I can't seem to get it to work more than once for elements added dynamically.</p> <p>I've made a jsfiddle to demonstrate the issue.</p> <p><a href="...
2
1,541
Android Application crashes as getting image from URL to bitmap to ImageView
<p>I know that this is a big beginner's problem and that it has to do with the correct number of threads and that you can't have too much going on in the UI thread, but I'm not exactly sure where this error is. </p> <p>Here is my main (and only) activity's Java code :</p> <pre><code> package com.example.bitmapdispl...
2
2,381
how to get boost::serialization to work?
<p>I'm working on ubuntu 12.04LTS and using clang 3.4.</p> <p>I have a CMake project and want to use the boost serialization library. I downloaded boost 1.55.0 from SourceForge.</p> <p>My project folder tree looks like:</p> <pre><code>MyProject | Source | | main.cpp | | CMakeLists.tx...
2
1,529
Yii CGridView with HAS_MANY relation
<p>I am having quiet a bit of problem displaying HAS MANY relation within a CGridView. </p> <p>I want to display all the post titles for a particular author in CGridView seperated by a ',' (comma).</p> <p>Here's a simple example:</p> <p>I have the following tables:</p> <p><strong>author:id,name</strong></p> <p><st...
2
1,312
Laravel blade @extends doesn't work
<p>I have strange issue in laravel blade everything works normally until I edit something in the file the master layout stop loading correctly for no reason sometime the page html content load partially</p> <p>It works fine on localhost but on the server </p> <p>I stopped cloudflare and all caches </p> <p>As I...
2
16,522
async await in Protractor is ignored
<p>I'm new to testing and JS in general. I'm trying to write my first async await test but I cannot make it work.</p> <p>I have set <code>protractor.promise.USE_PROMISE_MANAGER = false</code>; to be able to use <code>async await</code>.</p> <p>When I set the selenium promise manager to false, I receive as expected th...
2
1,175
Laravel Array & JSON Casting to Algolia
<p>I am trying to send some data along to Algolia through the toSearchableArray. Any strings I have stored in my DB are sending along fine, but I hit a roadblock when trying to push nested JSON data along—the information is being sent as a string with characters escaped.</p> <p>This is a sample of the nested object th...
2
1,058
OpenCV: Get the vertices of card
<p>I am trying to detect a card and do warpperspective on the image. I have successfully get the contour of the card. But I am facing difficulties on how to get the vertices point (show as blue point in image) as the input of getPerspectiveTransform function. Actually I have done it with simple algorithm on a static im...
2
1,644
Adjacent products in a grid
<p>I'm solving Problem 11 from Project Euler. I have figured out the algorithm and what I would need to do. The grid is saved in a file grid.txt and its contents are-</p> <pre><code>08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79...
2
2,568
How do I check if a generic view class actually implements init(frame:)?
<p>Let's say I have a custom UIView subclass with a designated initializer:</p> <pre class="lang-swift prettyprint-override"><code>class MyView: UIView { init(custom: String) { super.init(frame: .zero) } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } } </code>...
2
1,482
Spark could not bind on port 7077 with public IP
<p>I have installed spark on AWS. When I try to execute on AWS it works, but spark doesn't work, when I check the sparkMaster log I see the next:</p> <pre><code>Spark Command: /usr/lib/jvm/java-8-oracle/jre/bin/java -cp /home/ubuntu/spark/conf/:/home/ubuntu/spark/jars/* -Xmx1g org.apache.spark$ =======================...
2
2,015
how to append new row to the datagridview and keep existing rows?
<p>I have laboratory request window, i can create the new requests later on some times i need to update this order i made the update window and I read the order details from the database in datagrid view and i need to add new items to the datagridview, but the error when i add new row the existing rows removed and add ...
2
1,288
Rabbitmq commands are not working
<p>When I perform <code>sudo rabbitmqctl add_user james mypassword</code> it returns:</p> <pre><code>Creating user "james" ... Error: {badarg, [{erlang,group_leader,[undefined,&lt;5490.18387.0&gt;],[]}, {rabbit_log,with_local_io,1, [{file,"src/rabbit_log.erl"},{line,99}]}, ...
2
3,040
Assigning a CSSClass to each li element in an unordered list programmatically
<p>I've an unorderedlist something like this.</p> <pre><code>&lt;ul class="simpleTree"&gt; &lt;li&gt; &lt;span&gt;root&lt;/span&gt; &lt;ul&gt; &lt;li &gt; &lt;span&gt;Tree Node 1&lt;/span&gt; &lt;ul&gt; &lt;li&gt; &lt;span&gt;Tree Node 1-1&lt;/span&gt; &lt;ul&gt; &lt;li&gt; &lt;span&gt;Tr...
2
2,524
I can`t install scipy on Windows 10(Visual studio 2017RC) with pip
<p>I had the problem that scipy always fails to install on my pc (Win10) even after I reinstalled python and Visual studio. It would be nice if someone could help me.</p> <pre><code>Collecting scipy==0.18.1 Using cached scipy-0.18.1.tar.gz Installing collected packages: scipy Running setup.py install for scipy: st...
2
2,279
Custom button for facebook login using Kotlin but failed
<p>I would like to apply facebook login module by clicking the custom button and acquire access token from facebook, then pass the access token from Facebook to firebase to Login. </p> <p>When it comes the execution, there has no response from register call back. </p> <p>I have setup the Facebook Developer App called...
2
2,364
Android volley last request post call on network drop?
<p>Volley works well when there is network but it goes weird when network drops.</p> <p>When network is doping ie network strength is going down and i make a post request then nothing happens but once the network regain to full strength it makes the call to the previous post request not the new one?</p> <p>when i cle...
2
1,409
Vue Js: selectpicker(''refresh") not working
<pre><code> $('.selectpicker').selectpicker('refresh') </code></pre> <p>This is done to initialize the selectpicker. When I run this is in console of chrome.. the dropdown list appears. So, in vuejs I added this code in mount(). But nothing is happening.. I have asked another question regarding the same and did not go...
2
2,049
I am facing an issue while deploy storage account using arm templates
<p>I am facing an issue while deploy storage account using arm templates: </p> <blockquote> <p>Deployment template validation failed: 'The template resource 'sneha1' for type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Common.Entities.TemplateGenericProperty`1[System.String]' at line '20' and column '59'...
2
1,548
FHIR : adding a custom extension
<p>I would like to add to add a custom extension to my Schedule resource. In my app, Schedule have visit motives (reasons). I know there's a list of classified appointments / encounter reasons but I would like to use mine.</p> <p>I have something like this :</p> <pre><code>{ "resourceType":"Schedule", "identifier...
2
1,034
jQuery UI menu inside a jqGrid cell
<p>I have created a grid and customized a column to contain a jquery UI menu like in the <a href="http://jqueryui.com/button/#splitbutton" rel="nofollow noreferrer">Split Button example</a></p> <p>Everything works fine except for the fact that the menu window appear inside the cell causing a bad visual effect, that is...
2
1,698
Android anonymous asyncTask return value in method
<p>Now in my app i try to do http parsing from url, but i didn't carry about threads, before this time...</p> <p>I have such class and method:</p> <pre><code>public class TwitterOAuthHelper { public String httpQueryToApi(String url) { HttpGet get = new HttpGet(url); HttpParams params = new BasicHttpPa...
2
1,025
Display the Result of RemoteAttribute in MVC 3.0
<p>I have a ViewModel setup to use RemoteValidation using the <code>RemoteAttribute</code>. It works fine.</p> <h2>EDIT</h2> <blockquote> <p>Updated it a bit to show some fixed code.</p> <p>I want to point out that this is not my actual &quot;Register&quot; code. This is testing it so I can use it in other situations. ...
2
1,071
I can't blit the same object multiple times
<p>I am currently making a Guitar Hero like game in python and I am trying to <code>blit</code> a note multiple times, but I can't seem to get it to work (the note is called Red)!</p> <pre><code>#Sprite Class class Sprite(pygame.sprite.Sprite): # What has to be passed when you create a sprite. # image_file: ...
2
1,354
404 Page On Prestashop Multistore
<p>I've just enabled multistore in my 1.6.1 prestashop and added a new shop besides of my default shop.<br/> <strong>Default shop address:</strong> <a href="http://lak-lak.ir">http://lak-lak.ir</a><br/> <strong>new multi-store address:</strong> <a href="http://lak-lak.ir/ghods">http://lak-lak.ir/ghods</a><br/></p> <p>...
2
3,387
QGraphicsScene is calling QGraphicsItem paint event all the time
<p>I have a <code>QWidget</code> which is holding a <code>QGraphicsScene</code> with several items. Some of those items are <code>QGraphicsRectItem</code>s and subclassed <code>QGraphicsItem</code>s. When in the scene there are <code>QGraphicsRectItem</code>s only, the performance of the application is fine and the pro...
2
1,381
How do I get Eclipse and Maven to download the JARs I need?
<p>I'm new to Maven and Eclipse. We have been using Netbeans and installing jars manually in our projects.</p> <p>I thought the purpose of Maven was to download the required jars based on your dependencies?</p> <p>In a new project, I added the following under my <code>dependencies</code> node of my pom.xml file:</p>...
2
1,057
React redux- lost state after page refresh
<p>i'm working on a project where there's an authentication, and i'm storing user infos after registration using redux store. I've made a test on the header component(if there's a user then logout will be displayed, else an avatar will be displayed), the probleme that i could dispatch new user information to the store,...
2
2,591
Positioning elements with flexbox and :after
<p>On a site I'm working on I have a banner at the top of the page which is 300px tall, that contains the title of the page and an underline.</p> <p>This is the markup</p> <pre><code>&lt;div class="container"&gt; &lt;div id="banner"&gt; &lt;div class="jumbotron"&gt; &lt;div class="container"&gt;...
2
1,107
How to import modules dynamically from remote server in Angular 4
<p>I would like to import Angular4 modules dynamically from a remote server. This is to create a system that works with a plugins architecture. It is therefore important that the 'host app' shouldn't have to declare these modules in it's EntryComponents. I've managed to get the results I want, using this guide:</p> <p...
2
1,571
Fetching rows from database and making them links to other pages
<p>I think the question title is not so accurate but here are the details of the problem i am facing. I have Movies Database in Oracle10g I have included an option for user to search for movies in the database by title. I am using this piece of code to Display the rows Retured...</p> <pre><code>&lt;h1&gt;Search Result...
2
1,110
Recurring Countdown Timer for every 18h with specific start date
<p>I have a small fan website dedicated to a certain game. Now in that game there are two live events that reset after some period of time. First one resets every 18h and the other one resets every week (on the same day at the same time). I have been working on a script to put on the site to show when the next event re...
2
2,519
Inserting values into database table using static method when button is clicked
<p>I'm working on a project that is used to gather customer information and store it into a table called "BOOKINGS" The table has columns "CUSTOMERNAME","HOLIDAYNAME", "MAGICIAN", and "TIMESTAMP" </p> <p>I have a class called "DatabaseConnection" that establishes a connection to the database that has the bookings tabl...
2
1,201
How to get javascript array from URL with $_GET
<p>I have checkboxes that are passed as an array to URL and on page reload I should get them back so that what is checked is remembered.</p> <p>here is my javascript, array in question is 'entry_reason':</p> <pre><code>&lt;script language="JavaScript"&gt; &lt;!-- function reload(nname, surname, birth_date, birth_coun...
2
2,005
Wrapped function is only called from linked library when linking as -static
<p><em>Edit</em>: Made title a bit clearer.</p> <p>I am trying to wrap glibc's <code>__assert_fail</code> and <code>__assert_perror_fail</code> functions with my own that log the messages using <code>syslog</code>.</p> <p>I have verified that if I fail an assert my functions get called. The problem lies in libzmq's a...
2
2,074
How to access XML Spreadsheet format?
<p>I would like to access the XML data which Excel is putting onto the clipboard.</p> <p>Visual Studio 2012, .NET 4.5, C#</p> <p>I know I could parse the XML document with XML functions, but probably there is a somewhat more simpler tool available. </p> <p>Ideally, I'm looking for a function like <code>object GetCel...
2
1,388
svcutil.exe generates errors while wsdl.exe runs through without
<p>I'm looking into generating a web-service conforming to the WSDL found at:</p> <p><a href="http://assets.cdn.gamigo.com/xml/connection-service/1.0.10/account.wsdl" rel="nofollow">http://assets.cdn.gamigo.com/xml/connection-service/1.0.10/account.wsdl</a></p> <p>When I run with svcutil.exe like this:</p> <pre><cod...
2
1,042
CSS - difficulty with custom check boxes between IE and Firefox
<p>I have written some code to help "skin" checkboxes and radio buttons using only CSS. It works very, very well ... </p> <p>.... in Chrome.</p> <p>However in FireFox and IE, it just ...fails outright. And I have absolutely no earthly idea why. The basic gist of it is that it loads a block using <code>:before</code> ...
2
1,450
OpenLdap - error in SSLv2/v3 read server hello A
<p>I need to connect ApacheDS database using startTLS with OpenLDAP client. My ldaprc file contains:</p> <pre><code>URI ldap://127.0.0.1:7323 ldaps://127.0.0.1:7423 SSL start_tls SASL_MECH plain TLSCipherSuite HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3 TLS_REQCERT allow </code></pre> <p>Command that I've used is:</p> <pre><co...
2
1,322
Angular.JS onclick function only called on first click
<p>I am currently working on a small aplication using Angular.JS In my view i have following button</p> <pre><code>&lt;md-button class="md-primary" ng-click="editUser(user, $event)"&gt;Edit&lt;/md-button&gt; </code></pre> <p>the editUser method looks something like this:</p> <pre><code>$scope.editUser = function (us...
2
1,056
Is this webpage-logging-in Python script correct?
<p>Is this Python script correct?</p> <hr> <pre><code>import urllib, urllib2, cookielib username = 'myuser' password = 'mypassword' cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) login_data = urllib.urlencode({'username' : username, 'j_password' : password}) opener.o...
2
1,443
Apollo GraphQL - How to get data recorded by mutation from the cache store?
<p>I am developing an application with React-Native and using GraphQL as REST in the server-side. I have authentication layer in my application and I would like to achieve reading data that I got from the mutation query from the server.</p> <p>This is signIn method passed to props : </p> <p><div class="snippet" data-...
2
1,266
You must call removeview on the child parent first. Android
<p>I got a problem with opening spinner. When i open it first time it opens correctly and lets me choose from it. Then when i try to open it second time it gives me an error:</p> <pre><code>11-21 18:43:49.589: E/AndroidRuntime(3178): java.lang.IllegalStateException: The specified child already has a parent. You must c...
2
1,057
Facebook PHP SDK: Post object / action
<p>I was wondering if anyone could help me.</p> <p>I'm trying to use the PHP SDK to post actions, but it doesn't seem to return an object after the request is made, nor does it update the activity section of the users profile with the action. I had this working fine in JS but can't seem to move it to php.</p> <pre><c...
2
1,895
Android - How to swipe the tab in TabLayout using Recyclerview
<p>I have the four Tabs in a fragment. I am loading data into RecyclerView.. I am not using each fragment for each tab and am using single fragment for all Tabs. I just changed data set only in the Adapter. While selecting tab its loading that data so its working good and well. Now I want to swipe the page it should go...
2
2,384
How to query elasticsearch nested object using fuzziness and wildcard query
<pre><code>{ "took":1, "timed_out":false, "_shards":{ "total":5, "successful":5, "skipped":0, "failed":0 }, "hits":{ "total":1, "max_score":1, "hits":[ { "_index":"event_11", "_type":"_doc", "_id":"1", ...
2
1,270
How to use ListSerializer for create and update multiple records in django rest framework?
<p>Here is the way to create and update multiple records at once in django rest framework using ListSerializer. This way is very sort and and give fast response.</p> <p>When you want to create a objects then pass <strong>id: null</strong> because <strong>id</strong> is required field and when you want to update the rec...
2
1,711
Php Ajax form submit in colorbox
<p>I have a form with some php to validate and insert in the database on submit and the form opens in colorbox.</p> <p>So far so good. What I'm trying to do is to close colorbox and refresh a div on success.</p> <p>I guess I need to pass a response to ajax from php if everything OK, close the colorbox with something...
2
2,112
Android TextView in ScrollView not working- Force Close
<p>Im trying to create a textview that is able to scroll a large amount of text. I nested it inside of a scrollview and I get force closes on my phone and tablet when attempting to test it. When I run without the scrollview, it works, but does not scroll, obviously. Here is what I have in my XML file for the layout:</p...
2
1,836
How to Check if record exist in database using Entity Framework in ASP.NET MVC razor?
<p>Is it possible for a controller to check if record exists in database using ADO.NET?</p> <p>Here is my controller</p> <pre><code>[HttpPost] public ActionResult Add(TemporaryVoucher temporaryVoucher) { string fileName = Path.GetFileNameWithoutExtension(temporaryVoucher.ImageFile.FileName); string extension ...
2
1,129
0-1 Knapsack - Dynamic TopDown-Recursive Approach in C#
<p>Hello I am trying to solve the classical Knapsack problem, but so far I only managed to implement the naive recursion which works from my perspective and yields the right results:</p> <pre><code> static int[] objValue; static int[] objWeight; static void Main(string[] args) { objValue = new ...
2
1,557
jQuery.ajax request progress bar
<p>Okay, this is the same post as my last post which got downvoted and marked as duplicate. Here's the post again but now with the explaination why the questions from <a href="https://stackoverflow.com/questions/19126994/what-is-the-cleanest-way-to-get-the-progress-of-jquery-ajax-request/">What is the cleanest way to g...
2
1,240
FireBase iOS Messaging, fails to fetch APNS Token
<p>Ok, I have spent half of yesterday and half of this morning searching the boards and Google, and Firebase Docs for the solution. Just to be clear.</p> <p>I have FirebaseAppDelegateProxyEnabled set to NO in my info.plist, i'll post my appDelegate methods, but I have looked through the docs many times:</p> <p>didFi...
2
1,317
Android 4.2: IllegalstateException: One or more children of this LayerDrawable does not have constant state
<p>Since the new update from Android 4.1 to 4.2 on my smartphone, my app throws an exception, when it initializes a ViewPager and its Activities.</p> <p><strong>The Exception:</strong> </p> <p>java.lang.IllegalStateException: One or more children of this LayerDrawable does not have constant state; this drawable canno...
2
2,848
PyPI upload stopped working and pip install fails
<p>I submitted my first PyPI project last night and things are not working as expected (warning long post ahead)...</p> <p>I originally uploaded the project, <a href="https://pypi.python.org/pypi/cvrfparse" rel="nofollow">cvrfparse</a>, via the commandline by doing: </p> <pre><code>% python setup.py sdist upload </co...
2
2,594
Android: why buttons event not working after press back button?
<p>I have defined four buttons that onclick event shows a content, now after click when press </p> <p><strong>back button</strong> that shows same four buttons but click event not working.<br> I defined a field that if user saw content isLooked=true so when clicked on back button I setContentView(R.layout.index) and ...
2
1,085
Google Maps Polygon - redraw after adding new points
<p>I have a script, where I need to be able to draw a poligon. Here is the <a href="http://jsfiddle.net/zoli/98nzyg4d/5/" rel="nofollow">current script</a>.</p> <p>When I add a new point, a new poligon is drawn over the old one, instead of redraw the current polygon with the new point added. I tried to add </p> <pre>...
2
2,596
Loop through Word document, starting from beginning of file at start of each loop
<p>I'm looping through a Word Document in VBA. Through each pass I'd like to search for a different word, so each pass needs to start at the beginning of the file. The current method I'm using is this, but it appears to search for the first word, and when it gets to the end of the file, moves to the second word, and ...
2
1,343
@transactional not working spring 4 hibernate 4
<p>I want to use transactionManager of spring. My spring configuration is here:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema...
2
2,005
await on UserManager causes the error A second operation started on this context before a previous operation completed
<p><strong>BACKGROUND</strong></p> <p>I am working on a <strong>.Net Core API</strong> to drive a lyrics application. Users can sign up, submit artists &amp; lyrics, and earn kudos / XP points in the process. Basically a community-driven lyrics website.</p> <p><strong>CODE</strong></p> <p>Here's my ArtistController ...
2
1,025
Receiving python json through sockets with java
<p>I've been following multiple tutorials to connect a java code to python through sockets. </p> <p>Sending from java to python works great, with json array. However, I can't seem to receive things with java. I don't really understand how the listening should be done. Now I just listen in a 15 second while loop (the p...
2
2,088
how to read the input values from a dynamic html table?
<p>i have the following code to read the values from a regular input,</p> <p>HTML:</p> <pre><code> &lt;tr&gt; &lt;th&gt;Email:&lt;/th&gt; &lt;td&gt;&lt;input id="email" name="email" onchange="EmailValidate()" maxlength="50"&gt;&lt;/td&gt; &lt;/tr&gt; </code></pre> <p>PHP:</p> <pre><code> file...
2
1,315
knockout dynamic binding issue
<p>Consider the following ViewModel that is generated through the knockout mapping plugin.</p> <pre><code>var originalData = { "QuoteSelectedViewModel": { "ProductName": "Select", "CoverQuotesViewModel": [ { "Code": 1, "Label": "Première Assistance 24h/24 (GRATUITE)", "IsMandato...
2
1,463
Dynamic ziping and downloading of zip files in java
<p>I am trying to create a zip file and download the same on click of a link in jsf. I am not able to view the zip file created nor able to download it. I am getting the below exceptions in the back end along with <strong>nullpointer exception.</strong> <strong>java.lang.IllegalStateException: Servlet response already ...
2
2,712
Disable brush resize (DC.js, D3.js)
<p>Brush extent needs to be changed <strong>only</strong> from a dropdown as shown here: <a href="https://jsfiddle.net/dani2011/67jopfj8/3/" rel="nofollow noreferrer">https://jsfiddle.net/dani2011/67jopfj8/3/</a></p> <p><strong>Need to disable brush extending by:</strong> </p> <p><strong>1) Extending an existing brus...
2
3,537
Rendering user controls in EPIserver dynamic content
<p>Im trying to make a EPIserver dynamic content control, the content i want is a user control which i already made(a slider), every thing seems to work just fine until i insert the dynamic content control onto the page/area i want to use it.</p> <p>When i now go to the page i have created it displays the "static" con...
2
1,183
Jquery form serialization fails
<p>i'm trying to serialize a form by the id but it won't serialize and send the data.</p> <p>code attached below.</p> <pre><code> &lt;script type="text/javascript"&gt; &lt;!-- $(function() { if($('#selectProductDialog').length == 0) { $('#page-content').after('&lt;div id="selectProductDialog"&gt;&lt;/div&gt;'...
2
2,231
C++ error: multiple definition of a member function specialized in template class, but I really defined it only once
<p>The problem comes from a computer graphics C++ project in which I want to calculate gradient of both scale field and 3D-vector field. We know the gradient of them are different: scale field has 3D-vector gradient while 3D-vector field has a 3x3 matrix gradient. Since all other codes are the same, I am using template...
2
1,198
C#, WinForms and Extension Methods
<p><strong>The Question</strong></p> <p>Aside from all the obvious answers, what would cause extension methods to generate compiler errors like this one:</p> <p><em>'DataType' does not contain a definition for 'YourExtensionMethodName'</em></p> <p>I've got a real stumper here, and it's spelled out for you in detail ...
2
1,133
Symfony 2 fetching data using foreign key returns Undefined index
<p>I have 3 entities : User , UserRole , UserProfile. My primary key for the userprofile entity is actually a foreign key from user entity which is the UserId. <strong>Everytime I try to access userProfile using the foreign key userid. I always got an error of undefined index of userID.</strong></p> <p>this is the ex...
2
2,506
Proper way to edit multi-level nested list of objects
<p>I have 3 objects:</p> <pre><code>public class Person { public int Id { get; set; } public string Name { get; set; } public string Surname { get; set; } public List&lt;Order&gt; Orders { get; set; } public Person() { Orders= new List&lt;Order&gt;(); } } public class Order { ...
2
2,190
Reading text from (Facebook) RecyclerView with AccessibilityService
<p><strong>How can I see the text of non-focused RecyclerView children (items)?</strong></p> <p>My accessibility service is supposed to read out text from the screen which contains keywords. This works well in most situations, except where I am dealing with RecyclerViews, especially those in the Facebook application.<...
2
4,115
Android - Maps don't scroll horizontally
<p>I'm using Google Maps V2 in my Android Project. I have created (with the wizard) an Activity with Scrollable Tabs + Swipe, in one of my layout i'm using SupportMapFragment, but in the map i can't scroll the map horizontally, when a swipe inside the map it's show me the another view. Here's my code:</p> <p><strong>M...
2
3,225
Server is not coming up when we configure HTTPS in wildfly 17 <socket-binding https="management-https"/> under management-interfaces
<p>I am facing one issue when i am trying to use Management Interfaces for HTTPS , wildfly not able to deploy the wars and its stopped but when i changed to http its working fine.</p> <p>you can refer the configuration which i did in standalone.xml file. Below tag i added in the management .</p> <pre><code>&lt;manage...
2
3,862
PayPal API createInvoice returning always errorId 580001
<p>Code to invoke PayPal CreateInvoice API. It is always failing says "Invalid Request" and getting errorId 580001. I gone through the code that fills the request and API documention couple of times. No clue what data in Request is wrong. What could be the wrong in the Request ? Am I missing something here?</p> <pre>...
2
2,360
Error while trying to use an IoC container inside WebApi (Net Framework)
<p>I'm trying to use an IoC container inside the WebApi template. I've created an empty Web App Framework project, and selected to use WebApi. I've then added the Unity NuGet package and added the following to Application_Start:</p> <pre><code>protected void Application_Start() { GlobalConfiguration.Configure(We...
2
1,027
Validation adorner does not completely disappear in Animation
<p>I have a WPF Window that contains a <code>ContentPresenter</code> that has Height and Width set to 0 by default. When a user clicks a button, I run an animation to transform the ContentPresenter's Height and Width properties to 896,1024 (actually it does 3 rotations whilst its growing, too) and this is all good...</...
2
1,151
TypeError: manager_method() argument after ** must be a mapping, not str
<p>Sorry, I am new to django rest framework and am having some trouble.</p> <p>I am using a nested serializer that I would like to add a create() method for.</p> <p>In trying to do so: I have created the following serializers.py:</p> <pre><code>class ASerializer(serializers.ModelSerializer): class Meta: mod...
2
1,320
Android Studio: App crashing after Splash screen
<p>my app is crashing after a splash screen i tried to implement. I don't know where the problem occurs.</p> <p>I tried to fix this like 2 hours and even researched the web but somehow i don't get it to work. Maybe you guys can look over the code and give me some hints? I would appreciate that.</p> <p>AndroidManifest...
2
3,664
Move video files from Pictures directory to Video directory
<p>My photo import tool (Picasa) does a great job at importing photos and videos from my phone and camera. What I like is that it creates a subfolder under the Pictures directory based on the Photo Taken Date of each photo/video. So you end up with this structure:</p> <pre><code>C:\Pictures\2017-02-01\DSC_0001.jpg C:\...
2
1,445
how to align HTML positioning and inputs on P and centered text
<p>Hello guys I actually been looking everywhere on google for this, and even youtube but no luck anywhere.</p> <p>I actually came across this problem for the first time and I want to align everything in the center, which it is, but if you notice the paragraph and input text are not vertically aligned. they are crooke...
2
1,170
Dynamic viewForHeaderInSection and multiple cellForRowAtIndexPath
<p>I'm trying to make a custom cell to be the Section of my cells:</p> <p><a href="https://i.stack.imgur.com/jpCEP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jpCEP.png" alt="enter image description here"></a></p> <p>For this I'm overriding some functions like:</p> <blockquote> <p>numberOfRo...
2
1,461
How to add user data to my Recyclerview through onClick?
<p>I'm trying to build a simple To Do List app using a RecyclerView with a custom Adapter. I've build a model data class to get and set my todos. My problem is that each time I click the button to add my item, nothing happens. I did call <code>notifyDataSetChanged()</code> method but it still doesn't work.</p> <p>T...
2
1,465
Swap nodes in a linked list without swapping data
<p>how can i use pointers without copying the data? I want to write a bubble sorting function, but I got stuck, and need some help how to swap node addresses instead of values. I have a file with city names, and temperatures:</p> <ul> <li>Las Vegas, 25</li> <li>New York, 33</li> <li>Chicago, 23</li> <li>Houston, 39</...
2
1,261
Custom View Scrolling issues Android
<p>I've been designing an application that requires the use of a scrollbar on a custom view. The problem that I have run into is that my custom view's height will constantly change when new items are added by the user. I suspect that this isn't a very unusual problem, but to complicate things, I'm not actually adding n...
2
2,943
jqGrid the correct way to expand column width
<p>I am attempting to widen my columns here with the colModel property of jqGrid. when I do this, my table data disappears. Does any body know why this would happen. Before and after pictures will be below. As well as the jquery code that I use.</p> <p><img src="https://i.stack.imgur.com/2lzFr.png" alt="enter imag...
2
2,339
nested li - on clicking child, parent click event triggered
<p>I have a nested li </p> <pre><code>&lt;li class="innerMenuLi"&gt;&lt;a href="#"&gt;&lt;span&gt;MainLi&lt;/span&gt;&lt;/a&gt; &lt;ul class="mainMenu"&gt; &lt;li&gt;&lt;a href="#" class="active"&gt;&lt;span&gt;mainMenu1&lt;/span&gt;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=""&gt;&lt;span&gt;mainMenu2&lt;/spa...
2
1,043
view model in mvc4 showing errors
<p>I have a mvc4 application.Where users can create new projects and add comments on each project. ( I cant work out the comment adding part)</p> <p>I have two models 1.Comment</p> <pre><code>public partial class Comment { public int CommentID { get; set; } public string Title { get; set; } ...
2
2,976
align flexbox items vertically and keep same width
<p>I have the following flexbox where I'm trying to align items vertically and keep the same width for each column. </p> <p>let's say I have 10 items in a row but inside container should be visible just 4 items the rest are hidden by overflow. All this items are splitted to the same width in function of the width of p...
2
1,215
Getting Error When saving changes in database in asp.net mvc4
<p><img src="https://i.stack.imgur.com/mmAup.png" alt="enter image description here">This my one method primaryKey of my model is 'PlanetKey'</p> <pre><code> Graph graph = new Graph(); long lastGraphID = 1000; //graph.GraphID = lastGraphID; graph.ItemType = enumType; graph.GraphI...
2
1,280
gstreamer gst_element_seek very slow on mpeg2ts
<p>Here is what I have come up with so far for seeking while playing:</p> <pre><code>case GDK_Up: { gint64 pos_ns, dur_ns, seek_ns; GstFormat format; format = GST_FORMAT_TIME; gst_element_query_duration(pipeline,&amp;format,&amp;dur_ns); gst_element_query_position(pipeline,&amp;format,&amp;pos_n...
2
3,306
Duplex Mode StreamedRequest not working with Reliable Session Binding
<p>I have been struggling with this for a while and could really use some help. </p> <p>I am attempting to design a WCF endpoint that allows for the streaming of images to the server and then returns imageURLs (i.e: "<a href="http://images.site.com/someimage.jpg" rel="nofollow noreferrer">http://images.site.com/someim...
2
8,760
Rvm install ruby 2.2.0 on centos
<p>I get strange error while installing ruby 2.2.0 by rvm at centos 5. </p> <p>Here is the log of installation:</p> <pre><code>[deployer@p241408 asiniy]$ rvm list ruby-2.1.0 [ i686 ] =* ruby-2.1.1 [ i686 ] </code></pre> <p>I try to remove cache of previous installation:</p> <pre><code>[deployer@p241408 asiniy]$ ...
2
4,019
getFromLocationName() returns null on android tablet
<pre><code>cmap.setOnClickListener(new OnClickListener() { public void onClick(View v) { System.out.println("Cmap initial:=lat:-"+lat+" lang:-"+lon); Toast t=Toast.makeText(getBaseContext(),"Location"+lat+"lang:-"+lon,Toast.LENGTH_LONG); t.show(); tl...
2
1,232