title stringlengths 15 150 | body stringlengths 38 32.9k | label int64 0 3 |
|---|---|---|
wildcard search update in SQL server for XML data coulmn | <p>I have Table T1 which has one XML datatype column C1, here I want to update only domain name.
do need to where for where condition, I have to update this for entire table
Ex:- Data in Column C1 before update</p>
<pre><code> <DocumentElement>
<DeliveryParameters>
<EmailFromAddress>a... | 3 |
session method cannot be called 2 times in controller | <p>In the code below, when the #call method executes, it redirects the call to the #connect method to play an audio, then the #connect method redirects to #menu_selection where everything breaks. the error I get in heroku logs is that sessions is nil or defined. </p>
<p>What I dont understand is that I am already usin... | 3 |
Submit hidden fields with listbox items that have been moved using jQuery | <p>I have two list boxes that I can move items to and from using jQuery. A summary of the code follows:</p>
<pre><code><select multiple size="10" id="from">...</select>
<select multiple id="to" size="10" name="subitted array[]">...</select>
</code></pre>
<p>Some buttons that when clicked move ... | 3 |
Missing tick label from a plot of data indexed with a PeriodIndex | <p>I'm trying to plot two series and have the x-axis ticks labeled every 5 years. If I index the data with a <code>PeriodIndex</code> for some reason I get ticks every 10 years. If I use a list of integers to index, then it works fine. Is there a way to get the right tick labels with a <code>PeriodIndex</code>?</p>
<p... | 3 |
OAuth2 Single-sign-on component, force reauthentication | <p>Right now I have a Abstract Adapter that handles all the different social medias, the social media adapters just hold the information and pass that to the abstract adapter that then uses OAuth2 to authenticate the user and allows API calls to be made. I want to FORCE the user to reauthenticate everytime they try to ... | 3 |
Medium-editor - link text selection is gone | <p>I am using Medium-editor for content editor. I can able to create link by the help of link button, but while I moved the cursor to input box( link inputbox - placeholder txtbox) the text selection is gone. If it is possible to maintain selection?<a href="https://Anand-cmlmediasoft.tinytake.com/sf/NTI1MzQ0XzI3NTE5NTc... | 3 |
AS3 Does Loader ProgressEvent.PROGRESS event guarantee that server received the request? | <p>I am new to Action Script and I've faced the following code:</p>
<pre><code>var lc: LoaderContext = new LoaderContext();
lc.checkPolicyFile = false;
lc.allowCodeImport = false;
var ldr: Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadHandler);
ldr.load(new URLRequest(url),... | 3 |
getting attribute value updated by removing special characters using lxml | <p>Getting ID attribute and updating its value</p>
<pre><code>for elem in doc.xpath('//@id',namespaces={'leg':'http://www.lexis-nexis.com/glp/leg'}):
s = str(elem)
replaced = re.sub(r'([^a-zA-Z0-9\.\_])','',s)
elem=replaced
</code></pre>
<p>I am getting updated value i... | 3 |
Cannot send file to browser/user | <p>I'm trying to send a zip file to the user.</p>
<pre><code>$file_info = get_file_info($filepath_name);
header("Content-Type: " . get_mime_by_extension($filepath_name));
header("Content-Length: " . $file_info["size"]);
header_remove('Pragma');
header_remove('Cache-Control');
//header("Content-Type: application/force-... | 3 |
How to render series data to a title in sencha charts | <p>I have a chart retrieving data from my store, the four bits of information are the following</p>
<p>Model Code</p>
<pre><code>Ext.define('QvidiApp.model.ClipsViews', {
extend: 'Ext.data.Model',
requires: [
'Ext.data.Field'
],
config: {
fields: [
{
name: 'meta_id'
},
{
... | 3 |
Modifying bash script to take each line in a file and execute command | <p>I need to modify a bash script to to take each line in a file and execute command. I currently have this:</p>
<pre><code>#!/bin/bash
if [ -z "$1" ] ; then
echo "Lipsa IP";
exit;
fi
i=1
ip=$1
while [ $i -le `wc -l pass_file | awk '{print $1}'` ] ; do
if [ -n "$ip" ]; then
rand=`head -$i pass_file... | 3 |
Colour polygons of a map in R? | <p>I have used Raster package to upload the map of Spain by provinces (level 2) and I'd like to fill them with colours according to theincome per capita.
Here there's the file with the income per share and the number assigned to each province. Notice that ID_2 is the number assigned by the package Raster, and the vari... | 3 |
invoked storyboard is coming behind all opened window | <p>In a cocoa application i have invoked one storyboard on certain events like button click using :</p>
<pre><code>NSStoryboard *storyBoard = [NSStoryboard storyboardWithName:@"SendStoryboard" bundle:nil];
NSWindowController *myController = [storyBoard instantiateControllerWithIdentifier:@"SendIdentifier"];
[myContr... | 3 |
How to modify object and struct from an existing struct? | <p>I have a struct say</p>
<pre><code>type person struct{
name string
phone string
address string
}
</code></pre>
<p>and I want to transform it to this (modify phone and address) <em>I only have the object not the struct.</em></p>
<pre><code>type person2 struct {
name string
phone []struct {
... | 3 |
Can't render simple transparent sprites in SharpGL | <p>I know how to generate a plane and map a texture. Now, I am trying to display an alpha-blended PNG on my form, like it was a sprite.</p>
<p>I have come up with the following code from Googling and guessing:</p>
<pre><code>// Get the OpenGL object.
var gl = openGLControl.OpenGL;
// We need to load the texture fr... | 3 |
How to route posts from firebase to its own section in polymer? | <p>im struggling with some issues regarding routing blog posts from firebase, which i previously pushed it using paper-input and firebase-elements.
this is my code of the custom element:</p>
<pre><code><firebase-collection
location="https://sm-design.firebaseio.com/Blog"
data="{{blog}}"></firebase-collect... | 3 |
Displaying remote images in a firefox add-on panel | <p>I'm trying to display remote images in a FireFox add-on panel, but the <code>src</code> attributes are being converted from something like this:</p>
<p><code>http://example.com/image.jpg</code></p>
<p>to something like this:</p>
<p><code>resource://addon_name/data/%22http://example.com/image.jpg%22</code></p>
<p... | 3 |
How to set a custom message in the return path? | <p>I'm sending automated emails using java mail to my colleagues in different states (all within our company). I set the <code>return path</code> as their manager's emails. In case the recipient's mail box is full, their manager would get an <code>undeliverable email</code> notification. </p>
<p>Is there any way I ca... | 3 |
can not get timestamp value inserted in my database table | <p>i have a column called "joined" in my database "users" table which i have created using migration</p>
<pre><code>Schema::create('users',function(Blueprint $table){
$table->increments('user_id');
$table->string('username',100);
$table->string('password',300);
... | 3 |
Type of expression is ambiguos without more context | <pre><code>text.drawInRect(aRectangle, withFont: font, lineBreakMode: .UILineBreakModeTailTruncation, alignment: .Center)
</code></pre>
<p>I get the error in .UILineBreakModeTailTruncation... so how can i solve it???
I'm working with Xcode 7, swift 2</p>
<p>And im getting another error, which is:
'drawInRect(_:withFo... | 3 |
Paging issue when data source is changed by ajax - Infragistics WebDataGrid | <p>I have changed data-source of <code>Infragistics</code> <code>WebDataGrid</code> using ajax as below.</p>
<pre><code>$.ajax({
type: "POST",
url: "TestCS.aspx/GetDocumentsAjax",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
... | 3 |
Quartz .net: with a JobListener, Jobs are not triggered | <p>I have properly created and scheduled a Job (I don't write the Job and Trigger creation here, just to be brief). Scheduler is created and started as follows:</p>
<pre><code>_scheduler = New StdSchedulerFactory().GetScheduler
_scheduler.Start()
</code></pre>
<p>Jobs are executed at the scheduled time.</p>
<p>Then ... | 3 |
KafkaException error when using MessageHub Service | <p>Using the Message Hub service recently, I have discovered that previously working apps have begun failing with a <code>KafkaException</code> or <code>Failed to update metadata</code>. </p>
<p>How do I fix this?</p> | 3 |
Do batch scripts treat variables differently in blocks? | <p>I'm running a batch file which updates some variables, notably %PATH%. My environment has a known bug where on of the directories in %PATH% is quoted, i.e.</p>
<pre><code>PATH=c:\windows;...;"c:\program files\foo"\bin;c:\program files\...
</code></pre>
<p>I have a script which appends to PATH. When I do it insid... | 3 |
What is the purpose of using np.random.random(4) for plotting pie charts using matplotlib? | <p>I am relatively new to matplotlib.</p>
<pre><code> ax.pie(np.random.random(4), explode=explode, labels=labels, colors=colors,
autopct='%1.1f%%', shadow=True, startangle=90,
radius=0.25, center=(0, 0), frame=True)
ax.pie(np.random.random(4), explode=explode, labels=labels, colors=colors,
autopct='%1.1f%%', ... | 3 |
Continuous Scroll Loop between two divs | <p>I am trying to alter this <a href="http://jsfiddle.net/daZmA/535/" rel="nofollow">JSFiddle</a> so that the container is infinitely scrollable both up and down (in a loop). How do I set window.scrollY to handle scrolling up and down on the Y axis? </p>
<p>Here the javascript I am working with:</p>
<pre><code>window... | 3 |
Empty Textarea / Disable Submit for period | <p>I have a problem where I don't know the solution:</p>
<p>I have a form with a small basic validation that only checks if textarea is empty or not.</p>
<p>If it's empty: if-loop should result in the following actions:</p>
<ol>
<li>Show a message (and fade out).</li>
<li>Add a class to submitbutton (black, for "vis... | 3 |
C# Issue sourcing image size - WPF | <p>I am attempting to fit multiple images within the bounds of my screen. I am utilizing a stack panel seeing that this is the best layout for my end goal.
Images from the users local machine should be opened and added to the stack pannel until there is no more screen space to work with.</p>
<p>The issue i am running ... | 3 |
Are the entities with @Lob fields cacheable in Hibernate? | <p>I use Hibernate and MySQL and I need to store the articles in database. The article entity has a field:</p>
<pre><code>@Lob
@Basic(fetch=EAGER)
@Column(name="CONTENT")
private byte[] content;
</code></pre>
<p>Is this entity cacheable in Hibernate?</p> | 3 |
Chai.js: How to correctly use the `and` getter in a language chain | <p><strong>Background</strong></p>
<p>I would appreciate help with learning how to use the <code>and</code> getter as part of a language chain in <a href="http://chaijs.com/api/bdd/" rel="nofollow">Chai</a>. I have tried this code:</p>
<pre><code>describe ('', function () {
it ('', function () {
expect(m... | 3 |
Questions about ruby's nil class and rescue | <p>Ruby Koans exercises has a file <code>about_nil.rb</code>. Below is its code:</p>
<pre><code>def test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil
begin
nil.some_method_nil_doesnt_know_about
rescue Exception => ex
assert_equal NoMethodError, ex.class
assert_match(/undefined method/, ex.mes... | 3 |
python original dictionary being modified after each iteration | <p>I have tried to implement Karger's algorithm to compute min cut of a graph by python, and tested my code with a small input graph. Basically I make a copy of the original input graph for every iteration, but after running the code for one iteration the original input graph is somehow modified. Where does my code go ... | 3 |
add callback function to underscorejs _.invoke | <p>I'm using _.invoke() of Underscore.js to destroy a collection, here is the code:</p>
<pre><code> _.invoke(Labels.selectedItems(), 'destroy', {
error : function (model, response, options) {
self.isFailed = true; // initialized with false
utilities.activateNotification("error", "Deleting label failed", r... | 3 |
Lightswitch HTML: error: value cannot be null. Paramater name: property | <p>has anyone come accross this issue before, all of a sudden one of my details pickers has started displaying this error:</p>
<p><a href="https://i.stack.imgur.com/cVjgL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cVjgL.png" alt="enter image description here"></a></p>
<p>within the database th... | 3 |
Square API: Batch request to Subscriptions endpoint | <p>The Square <a href="https://docs.connect.squareup.com/api/connect/v1-business/#navsection-subscriptions" rel="nofollow">Subscriptions endpoint</a> works differently from other Square API endpoints. The url begins with <code>/oauth2</code> and requires a special Authorization header to be provided.</p>
<p>Because of... | 3 |
How do I insert a tuple into an existing dictionary in Python | <p>I don't think this is a duplicate question, as I need to add to an existing dictionary, not create a new one.</p>
<pre><code>results = dict()
if xxx:
(rslt_string, rslt_msg) = func1
(rslt_string, rslt_msg) = func2
(rslt_string, rslt_msg) = func5
if yyy:
(rslt_string, rslt_msg) = func3
(rslt_str... | 3 |
How can I find a file within any description of path? | <p>I need find the specific file/folder on my hard drive.
For example i need find a file (do1.bat) and then store the path of the file. But i dont know where can it be stored, so i have to scan all hard drive.
How can i use C# for this?</p> | 3 |
Difficulty understanding condition variable wait | <p>I am having difficulty understanding the condition variable statement</p>
<pre><code>cv.wait(lk, []{return i == 1;});
</code></pre>
<p>from this <a href="http://en.cppreference.com/w/cpp/thread/condition_variable/wait" rel="nofollow">link</a> </p>
<p>what role does the lambda function play here.</p>
<p>Does the ... | 3 |
SSL Handshakes on connection setup | <p>When I test my website performance I noticed SSL handshakes are happening as part of connection setup. I understand the first request (of the page) needs the full SSL handshake.</p>
<p>But, if you notice from the pingdom test, only certain other resources are doing the SSL handshake. The remaining requests in the p... | 3 |
Lambda calculus: Apply in Scala | <p>I imagined this would work. Am I doing something clearly wrong?</p>
<pre><code>val apply = (f: Any => Any, v: Any) => f(v)
val square = (x: Int) => x * x
</code></pre>
<p>I imagined apply(square, 10) would result in 100.</p>
<p>But I get an error:</p>
<pre><code>:15: error: type mismatch;
found : Int... | 3 |
Disabling the iframe overflow:auto; on a Google Apps Script Web App | <p>When creating an apps script web app, I constantly have a vertical scroll bar on the right hand side that is not representative of the pages size and doe snot move when scrolling.</p>
<p>The web app runs inside an iframe, which had an id of <code>userHtmlFrame</code> with <code>overflow-y: scroll;</code> set on it.... | 3 |
Pass a Variable in PHP to Query Database for Deletion | <p>I am trying to create a cron job in php that deletes disabled users found in a csv file and logs the deleted users to a txt file. Everything works except only the last user in the csv file is deleted. Here is what I have so far:</p>
<pre><code>class purgeInactive extends JApplicationCli
{
public function doExec... | 3 |
Functional programming issue is JS | <p>I'm playing around with <code>bind</code> <code>call</code> and <code>apply</code>. I am trying to update a property of an object by passing whatever is returned from one function to the method on that object.</p>
<p>And this updating is attached to the <code>window</code> resize event.</p>
<p><div class="snippet"... | 3 |
Convert a list and list of list to a dict in python | <p>I have two lists <code>['a', 'b', 'c']</code> and <code>[[1,2,3], [4,5,6]]</code></p>
<p>I am expecting an output <code>{'a':[1,4], 'b':[2,5], 'c':[3,6]}</code> without using a for loop.</p> | 3 |
Expand an ordered series of codes from start/end interval points | <p>I have a data frame of the following kind</p>
<pre><code>> foo <- data.frame(start = c(7, 12, 23, 30), end = c(10, 16, 27, 35), code = rep("A", 4))
> foo
start end code
1 7 10 A
2 12 16 A
3 23 27 A
4 30 35 A
</code></pre>
<p>my goal is to create a new data frame <code>series... | 3 |
DFP sizeMapping Breaks Sponsorships | <p>In my experiences so far, sizeMapping(), for responsive ads in DFP breaks sponsorships. </p>
<p>For example, if I define a sizeMapping like so:</p>
<pre><code>addSize([1024, 768], [970, 90], [728, 90], [320, 50], [300, 250])
</code></pre>
<p>Then I setup a sponsorship on a particular ad unit that's a 728x90.
I a... | 3 |
How to call a function when a user swipes off the application in android? | <p>I have an application that uses PortSip SDK to make VoIP phone calls, and i need to close the phone call when the users swipes the app off but i want to leave the call when the app is in background. i have a function endCall() which ends the call but if i call it on onDestroy() it gets called even if the app is in b... | 3 |
Why don't two views with shared elevation join and form a seam? | <p>I'm building this app that looks like this:
<a href="http://i.stack.imgur.com/bk2wU.jpg" rel="nofollow">snapshot</a></p>
<p>Here's a break down of the structure of the app.
<a href="http://i.stack.imgur.com/Eci9U.jpg" rel="nofollow">break down</a></p>
<p>It is as simple as this:</p>
<p>I need to constantly change... | 3 |
How to gracefully handle nil checking, with optional paramter values? | <p>I have the following code:</p>
<pre><code>@IBAction func search(sender: AnyObject) {
let searchWord = searchQ.text
let r = searchRadius.text
let latitude = searchLat.text
let longitude = searchLon.text
customSearch(searchWord!, radius: r!, lat: latitude!, lon: longitude!)
}
</code></pre>
<p>the... | 3 |
Select value from range based on match | <p>I've got the following set of data and have setup a another table to the right which holds the cost of each location.</p>
<p><a href="https://i.stack.imgur.com/1p12K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1p12K.png" alt="dataset"></a></p>
<p>The cost column currently I've got <code>=IF(... | 3 |
SQLite3 issue with getting row ID | <p>it's the first time I am using Sql database and in a quick search I have reached a video explaining how to add an external file called "2SwiftData" , it has many func such as "createTable" etc. now a few Q: <br>
1) am I supposed to close and open the DataBase? <br>
2) why cant I find the table I created in spotlight... | 3 |
How do I chart the a second custom data point in Dygraphs? | <p>I'm toying around with Dygraphs and really liking it. However I'm having trouble setting a string value for the second point. I've tried to produce it to be a date, but I would rather keep the custom format for my own date and time.</p>
<p>My simple chart is </p>
<pre><code>new Dygraph(document.getElementById("gra... | 3 |
Codeigniter Url issue: HTTP 404 | <p>I am working on codeigniter
when I used it on xampp server it worked pretty well with this Url
localhost.com/realestate/index.php?class/method/parameter</p>
<p>But when I put similar thing on godaddy host </p>
<p>Same Url segment is showing codeigniter 404 error</p> | 3 |
EWS GetItems response items sort order | <p>I use Exchange 2010 Web Services SDK. And I need to retrieve items using method GetItem.</p>
<p>For example:</p>
<pre class="lang-cs prettyprint-override"><code>var getItemTypes = new GetItemType();
getItemTypes.ItemIds = ids;
getItemTypes.ItemShape = new ItemResponseShapeType()
{
BodyType = BodyTypeResponseTy... | 3 |
Install chrome extension with Custom text | <p>When installing a chrome extension from the website, we are prompted with the alert box <a href="http://i.stack.imgur.com/w8f0F.png" rel="nofollow">like this</a>. </p>
<p>Is there a way to change the text in the alert box from "Add Extension" to "Add"?</p> | 3 |
merger two dict in python like this | <p>I want merge two dict like this:</p>
<p>from:</p>
<pre><code> a1 = {u'2016-03-11': [u'20:00', u'22:10']}
a2 = {u'2016-03-11': [u'20:00', u'23:10'],u'2016-03-12': [u'20:00', u'22:10']}
</code></pre>
<p>to:</p>
<pre><code> an = {u'2016-03-11': [u'20:00',u'22:10', u'23:10'],u'2016-03-12': [u'20:00', u'22:10']}
... | 3 |
ID increments after each codeception test | <p>I'm using Laravel5 module in Codeception and it works great, but I have a problem which is when I run a test model factory inserts data and rolls back it, but it's effect on 'auto increment' property in id column, which is making the id column is very massive, so how to roll back id also not data only?</p> | 3 |
Wordpress site returns status 500 but still works | <p><a href="http://ststephens.edu/" rel="nofollow noreferrer">http://ststephens.edu/</a></p>
<p>This site returns status code 500 (Internal Server Error) when I do
<code>wget http://ststephens.edu/</code> but works fine on my browser. Also as seen in this screenshot, clearly the homepage is a 500 status but the site ... | 3 |
Miniflux API URL endpoint | <p>I have <a href="http://miniflux.net" rel="nofollow">Miniflux</a> running on an Amazon EC2 instance which I intend to use for my Android application. According to the Miniflux documentation <a href="https://miniflux.net/documentation/json-rpc-api#example-curl" rel="nofollow">here</a> I should be able to get a JSON re... | 3 |
Microsoft.Owin.Host.HttpListener isn't being copied to a referencing projects' build output | <p>I am referencing a one project in Visual Studio solution from another project in the same solution. The project being referenced (Project B) has Microsoft.Owin.Host.HttpListener nuget package and so the .dll referenced in it. The project that is referencing project B (Project A) is being built. The output folder get... | 3 |
Gradle execution fails when apply Unit Test in Test Artifact | <p>I'm trying to use JUnit in Android Studio but I´m having the following issue when I change the Test Artifcat from <strong>Instrumentation tests ** to **Unit Tests</strong></p>
<pre><code>:app:mockableAndroidJar FAILED
Error:Execution failed for task ':app:mockableAndroidJar'.
> class org.objectweb.asm.tree.C... | 3 |
Exporting sheet using only values(not formulas) | <p>I am working to export one of the sheet in a workbook.With the following code i was able to do that.However the sheet i am trying to export uses formulas to retrive data in other sheets in workbook.When i change values in main workbook,exported workbook also changes.How can i export the sheet using only values?</p>
... | 3 |
Azure Api Service and Individual accounts | <p>I've originally used Web API 2 with Individual Accounts so that users can create a new account by supplying a username/email and password which is stored in my DB.</p>
<p>I'm now looking to put this API into Azure API service and have looked at the documentation about <a href="https://azure.microsoft.com/en-gb/docu... | 3 |
Can characters be used as indices? | <p>Let's define, for example, </p>
<pre><code>x = 10:10:2000;
</code></pre>
<p>As is well known, integer values can be used as indices:</p>
<pre><code>>> x(9)
ans =
90
</code></pre>
<p>In Matlab, characters can often be used where a number would be expected, with Matlab doing the conversion automatically.... | 3 |
how to format the excel to treat the cell value as text by appending an apostrophe to the cell value in c# | <p>I'm generating excel report in <code>c#</code> in excel.binding data to excel through datatable.</p>
<p>There is one column which will consist of 16 digit number for eg.,<code>1317722825000285</code> but in excel it is coming as <code>1317722825000280</code> last digit is getting replaced by <code>0</code>.</p>
<p... | 3 |
Python Regex Matching | <p>I am inputting a text file (Line)(all strings). I am trying to make card_type to be true so it can enter the if statement, however, it never enters the IF statement. The output that comes out from the print line is:</p>
<pre><code>imm48-1gb-sfp/imm48-1gb-sfp
imm-2pac-fp3/imm-2pac-fp3
imm5-10gb-xfp/imm5-10gb-xfp
sfm... | 3 |
Serialising string arrays into json | <p>So, I've been tinkering with go and have a small problem. I have something that needs to be serialised into a json like so. </p>
<pre><code>{
"name" : "Steel",
"things" : ["Iron", "Carbon"]
}
</code></pre>
<p>The struct to hold this looks like this. </p>
<pre><code>type Message struct {
name string
t... | 3 |
Create a matrix of available pairings in a dataframe | <p>I have a dataframe <code>games</code> that looks like this:</p>
<pre><code> P1 P2
1 Johannes Paul
2 Johannes Falk
3 Paul Falk
4 Paul Kai
. ... ...
</code></pre>
<p>...and so on, where every row matches a game of the two playe... | 3 |
How to start and stop video recorder from android application | <p>I need to launch video recorder on click of the button from my application.When user start the recording I need to show count down timer and when the time elapsed video recorder should close automatically.</p>
<p>I searched on many forums and got suggestions to use custom camera recorder, but I don't want use it as... | 3 |
Translation and fixed number of letters words | <p>In a part of my software I need, in different languages, lists of words having a fixed number of letters.</p>
<p>My software is already internationalized (using <code>gettext</code>, and it works fine). But, as it's not possible to translate a 4 letters word from english into a 4 letters word in another language (a... | 3 |
How to apply unmerged pull request from original repo into my fork via GitHub website | <p>Trying to do this via the GitHub website.</p>
<p>I am aware of<br>
<a href="https://stackoverflow.com/questions/6022302/how-to-apply-unmerged-upstream-pull-requests-from-other-forks-into-my-fork">How to apply unmerged upstream pull requests from other forks into my fork?</a><br>
and<br>
<a href="https://stackoverfl... | 3 |
CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 on INSERT/SELECT | <p>first of all sorry for my horrible english.</p>
<p>I'm new on android world and now i have so much trouble with sqlite db:</p>
<p>when i try to execute this code:</p>
<pre><code>public void signInOnDB(String name, String surname, String username, String password, String secretQuestion,
S... | 3 |
Simple Form and routing errors | <p>View/Form</p>
<pre><code><div class="col-lg-12">
<div class="ibox-content">
<div class="row">
<%= simple_form_for supplier_fuel_prices_path(@supplier,@fuel_price), method: :post do |f| %>
<%= f.input :regular, l... | 3 |
Date class setMonth sets weird values | <p>I have the following test code:</p>
<pre><code> var d1 : Date = new Date("2016/02/20 15:00:00 UTC-0000");
trace(d1.toUTCString());
d1.monthUTC++;
trace(d1.toUTCString());
var d2 : Date = new Date("2016/03/31 15:00:00 UTC-0000");
trace(d2.toUTCString());
d2.monthUTC++;
trace(d2.toUTCS... | 3 |
android browser does not launch app | <p>I am unable to get the app I have written to launch when a certain url is passed back to the browser.</p>
<p>When the user launches the default browser and goes to the where my server is running for example: www.test.com, a list of films and books are displayed on the remote server. When the user selects one of the... | 3 |
Why does my regular navbar cover header while the collapsed one does not? (bootstrap/fullpage) | <p>I have some problems with my navbar covering my header instead of positioning below relative to the header height. When i use a smaller screen and the navbar goes over to collapse it positions below like it should, how come?</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<p... | 3 |
Why does retain cycle leak memory? | <p>I'm a little confused about retain cycle.As the pictures show,it's a retain cycle.My opinion is when running out of the scope,test0 will release,obj_ will release,so the reference count of object A and B will be one, also when this happens on test1,then the reference count will be zero,finally,free the memory.What's... | 3 |
Add contact using contact app to a non google account | <p>While adding a contact from contact app(default) we have a account picker dialog in which we see that (SIM 1,SIM 2,gmail account).</p>
<p><strong>MY QUESTION IS</strong> : I want to add a contact in my custom contact provider using contact app but there is no option to do that because when I click on the add button... | 3 |
Insert "cut off" field in R surface plot | <p>I'm using persp() to create a 3d plot (but I'm open to anything that will get the job done). Now I want to add a 2d field to make it clear where the 3d plot is above a specific Z value. Is there a way to achieve this? Ideally it would ideally be something like a semi transparent surface where you can see the mass un... | 3 |
How To Get Most Frequent Words With Association In PHP | <p>I want to get the most frequent search word With Association Rules. </p>
<p>the php code contains two files. In which data is inserted every input is storing in the file along with its association for example :- <strong>if some one has search "apple" and he has also searched for "orange". Now I want to get the most... | 3 |
Error while integrating MillenialMedia mediation through AdMob | <p>I have adMob working perfectly (I am getting adMob test ads)and im trying to add MillennialMedia as another adSource. However, after following the instructions I get 31 warnings and most of them look like that </p>
<pre><code>while processing /Users/Wagner/Documents/Xcode Projects/ProjectA/mm-ad-sdk-ios-6.1.0-222a9... | 3 |
Adding Wildcards to Forge Server later | <p>When I created a server using Laravel Forge, I didn't provision it with wildcards at inception. I would like to add wildcards now, while the server is running. Can this be done?</p> | 3 |
Binding Troubles ViewModel with Command | <p>I have a binding problem.
Maybe I didn't see it.</p>
<p>XAML File</p>
<pre><code><ItemsControl Grid.Row="1" Grid.Column="1" x:Name="itemsControlTiles" ItemsSource="{Binding ProductCatalogLightList}" Margin="10">
<ItemsControl.Template>
<ControlTemplate>
... | 3 |
include ReadMe.md, convert to markdown and include in html | <p>I am writting a github gh-page <code>index.html</code>: </p>
<p>Is it possible with some javascript, to import the <code>ReadMe.md</code> from a link and send it to the markdown javascript formatter (<a href="https://assets-cdn.github.com/javascripts/ace/mode/markdown.js" rel="nofollow">i think thats the file</a>) ... | 3 |
JPA Grouping based on a column and collecting results in a list | <p>I am using Spring data JPA I have a table that looks like</p>
<pre><code> NAME AGE GANG
---------------------------------
Iron Man 46 1
Black Panther 45 1
Captain America 96 2
Ant Man 40 2
The hulk 48 3
</cod... | 3 |
I'm moving jar file to other PC then the program not showing image | <p>I finished my project and done the compilation. Running the Jar file, program is working.
If I'm moving jar file to other PC then the program is not showing image and not showing information from txt files.
I thinking this is from wrong paths. Can you help me?
This some code:</p>
<pre><code>FileInputStream fr2 = ne... | 3 |
Do transactions made using REST API show when using Classic API? | <p>I know that transactions made via Classic API will not return when using the REST API. But what about vice versa? Can I pull all transactions if using the Classic API?</p> | 3 |
ui-sref is not working inside apk | <p>I create an apk using with yeoman angularjs-cordova </p>
<p>I put here only specific require Folder Structure
Module</p>
<ul>
<li><p>Core -> Views -> home.html</p></li>
<li><p>Customer</p>
<p>-> Config -> route.js</p>
<p>-> Views -> dashboard.html</p></li>
</ul>
<p>In home.html a link <code><a ui-sref="das... | 3 |
googleVis Chart not Displaying in Slidify | <p>I'm trying to get started with slidify and have been trying to reproduce some of the examples shown around the internet. I am not able to get googleVis charts to display inside slidify. I can print the googleVis chart to file and open it outside of slidify to get it to work correctly, but inside slidify I get the fo... | 3 |
Customizing the tick marks in D3 LineChart | <p>I am trying to make a line chart as shown below - </p>
<p><a href="https://i.stack.imgur.com/nueIf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nueIf.png" alt="enter image description here"></a></p>
<p>Here there is a small distance between the x-axis first value and the y-axis.</p>
<p>I cou... | 3 |
Angular2 w/ Typescript - Client/Server App the right way? | <p>I'm cutting my teeth on Angular2 (and Angular in general) getting the core concepts under my belt and have been working on my first "real" application. I'm using some sample projects on GitHub and the quickstart on the Angular site as guides but have run into some roadblocks and am looking for some advice on the "ri... | 3 |
Explanation of android code | <p>i found a code that converts a hex string to binary. This is the code ` </p>
<pre><code>public static byte[] hexStringToBytes(String hexString) {
if (hexString == null || hexString.equals("")) {
return null;
}
hexString = hexString.toUpperCase();
int length = hexStrin... | 3 |
Header in fixed position is overlapping with container div when the window is reduced in width | <p>i have a small issue with my header, i added a media query which make it taller when the window is reduced in width but it's actually overlapping my container.
I try to add another media query in order to lower the top position of the container but it doesn't work</p>
<p><a href="https://jsfiddle.net/Ltqsjhbz/1/" r... | 3 |
Non-blocking write to response from Mongo in JSON format | <p>I am using Node/Express.js so that the GET route will retrieve all documents from a Mongo database (simple enough). I am able, as the code will show, to accomplish this in a non-blocking way. However, when I uncomment the line that sets the response to JSON format, I get a syntax error - because while each document ... | 3 |
Unity3D - Detect a vertex on planet mesh without cubes | <p>I have a planet mesh that I am generating procedurally (based on a random seed). The generator creates tectonic plates and moves them creating the land masses, mountains and water depressions you see below; ~2500 points in a planet. The textured surface is just a shader.</p>
<p><a href="https://i.stack.imgur.com/... | 3 |
Recurssion Depth Exceeded While calling an python object | <p>I am making a web crawler for which I am using the following two functions:</p>
<pre><code>#Each queued link is the new job
def create_jobs():
for link in file_to_set(QUEUE_FILE):
queue.put(link)
queue.join()
crawl()
#Check if there are items in the queue then solve them
def crawl():
queued... | 3 |
JAX WS async client: capture WS-Addressing 202 accepted | <p>I have to invoke several webservices using WS-Addressing.
When invoking a webservice, the ReplyTo is set to a callback endpoint implemented by me.</p>
<p>The client is generated from the target WSDL using async with</p>
<pre><code><enableAsyncMapping>true</enableAsyncMapping>
</code></pre>
<p>which ge... | 3 |
Jquery result display issue | <p>I am trying to create a bmi calculator and tried the following .</p>
<pre><code>$(document).ready(function() {
// Convert ft to inches
function convertHeight(ft) {
return ft * 12;
}
// calculate total height
function showbmi() {
var weight = document.getElementById('weight').value * 1;
var height_ft = ... | 3 |
How to split repeating pattern? | <p>I have a string that repeats a pattern. I have a regular expression that matches the pattern, but I would like to split them instead.</p>
<pre><code>$target = 'a1v33a33v55a2v43';
</code></pre>
<p>I would like to split them into a1v33, a33v55, and a2v43. Basically, I want to split the string into an array of ['a1v3... | 3 |
Wordpress Theme [WP-simple] Scroll issue | <p>I'm working on a website. I used wordpress them WP-Simple</p>
<p>I modified the theme for my needs and everything works fine, except it is not scrolling on sub pages.</p>
<p><a href="http://pranicenergy.55freehost.com/site/" rel="nofollow">http://pranicenergy.55freehost.com/site/</a> - - Main page works fine.
<a h... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.