Id int64 34.6M 60.5M | Title stringlengths 15 150 | Body stringlengths 33 36.7k | Tags stringlengths 3 112 | CreationDate stringdate 2016-01-01 00:21:59 2020-02-29 17:55:56 | Y stringclasses 3
values |
|---|---|---|---|---|---|
35,273,025 | C++ Copy constructor gets called instead of initializer_list<> | <p>Based on this code</p>
<pre><code>struct Foo
{
Foo()
{
cout << "default ctor" << endl;
}
Foo(std::initializer_list<Foo> ilist)
{
cout << "initializer list" << endl;
}
Foo(const Foo& copy)
{
cout << "copy ctor" << endl;
... | <c++><copy-constructor><initializer-list><list-initialization> | 2016-02-08 15:18:00 | HQ |
35,273,333 | Select value from JSON using PHP | <p>How to select data from bellow JSON code?</p>
<pre><code>"response": {
"status": 1,
"httpStatus": 200,
"data": [
{
"offer_id": "8000",
"countries": {
"SG": {
"id": "702",
"code": "SG",
"name": "Singapore",
"regions": []
}
}
</code></pre>
<p>How could I select the words SG and SINGAPORE </p>
| <php><json> | 2016-02-08 15:33:40 | LQ_CLOSE |
35,273,385 | Error: Please select Android SDK in Android Studio 2.0 | <p>I am using Android Studio 2.0 Beta2, and i am trying to run old project that uses google maps api v1 (package <em>com.google.android.maps</em>) as *.jar file. To run this old project i need specify compileSdkVersion older than the last one (23). I used </p>
<pre><code>compileSdkVersion 'Google Inc.:Google APIs:17'
... | <android-studio><android-sdk-tools><google-maps-android-api-1> | 2016-02-08 15:36:48 | HQ |
35,273,597 | Is use of generics valid in XCTestCase subclasses? | <p>I have a <code>XCTestCase</code> subclass that looks something like this. I have removed <code>setup()</code> and <code>tearDown</code> methods for brevity: </p>
<pre><code>class ViewControllerTests <T : UIViewController>: XCTestCase {
var viewController : T!
final func loadControllerWithNibName(stri... | <ios><swift><generics><xctest> | 2016-02-08 15:47:20 | HQ |
35,274,167 | Session data could not be read from another window | <p>On a test1.php I have this:</p>
<pre><code><?php
echo "Session variables are about to be set.";
// Set session variables
$_SESSION["animal"] = "cat";
echo "Session variables are set.";
echo "Favorite animal is " . $_SESSION["animal"] . ".";
?>
<div ms_positioning="text2D" class="style7... | <javascript><php><html> | 2016-02-08 16:12:28 | LQ_CLOSE |
35,275,500 | template typename not running on dynamic allocation | I have written 3 template functions but when I run the code, it gives error on the first function's body where the memory to arr is dynamically allocated. Following is the code, please help me in finding what I missed. Thanks
Error: Error 1 error C2440: '=' : cannot convert from 'int **' to 'int *'
#includ... | <c++><oop> | 2016-02-08 17:19:19 | LQ_EDIT |
35,275,607 | create a google form generator like application using pure "raw php" | <p>I'm new to php and I want to know how to develop a simple application similar to google form generator, using only raw php without using any frameworks, java scripts. The scenario is like this. I have a form with a combo box containing item names; textbox, textarea, radio, checkbox, combo box, etc. Also there is a t... | <php><forms> | 2016-02-08 17:24:23 | LQ_CLOSE |
35,276,283 | Jenkins gives me blank page | <p>I am getting this error when i start jenkins, which I believe is causing the jenkins to not work. Jenkins page comes up blank. I think the scm-sync-configuration is causing this to happen. It there anyway to workaround this or disable this plugin?</p>
<pre><code>Running from: /Applications/Jenkins/jenkins.war
web... | <jenkins> | 2016-02-08 18:05:04 | HQ |
35,276,379 | Knowing how many repeat the letters in the String | <p>i have an interview Question which is
Knowing repeat the letters in the String
i solve it like this </p>
<pre><code>String str = "my name is Java Developer";
int count = 0;
for (int i = 0; i < str.length(); i++) {
for (int j = 0; j < str.length(); j++) {
if (str.charAt(i) == str.... | <java> | 2016-02-08 18:11:18 | LQ_CLOSE |
35,276,559 | Benefits of ES6 Reflect API | <p>I've been working on upgrading some code to use ES6 syntax. I had the following line of code:</p>
<p><code>delete this._foo;</code></p>
<p>and my linter raised a suggestion to use:</p>
<p><code>Reflect.deleteProperty(this, '_foo');</code> </p>
<p>You can find the documentation for this method <a href="https://de... | <javascript><ecmascript-6> | 2016-02-08 18:21:43 | HQ |
35,277,536 | What does a blue circle on the "Run" button in Matlab mean? | <p>Title pretty much says it all. I am running R2015a, and got this to appear in my editor. There is a small blue circle appearing on the "Run" button. I've never seen this before, and can't find any documentation on the mathworks website that explains it's meaning.</p>
<p>What does this blue circle with 3 dots mea... | <matlab> | 2016-02-08 19:17:55 | HQ |
35,277,668 | GET request to IIS returns Microsoft-HttpApi/2.0 | <p>I've got 6 identical machines running IIS and Apache. Today one of them decided to just stop serving requests. I can access all of the webapps when I try from localhost/resource but when I try from url/resource I get a 404. I did a Get request against the machine that isn't working and I get this back:</p>
<ul>
<li... | <iis> | 2016-02-08 19:27:21 | HQ |
35,277,682 | How to tie emitted events events into redux-saga? | <p>I'm trying to use <a href="https://github.com/yelouafi/redux-saga">redux-saga</a> to connect events from <a href="http://pouchdb.com/api.html#replication">PouchDB</a> to my <a href="http://reactjs.com/">React.js</a> application, but I'm struggling to figure out how to connect events emitted from PouchDB to my Saga. ... | <javascript><ecmascript-6><redux><redux-saga> | 2016-02-08 19:28:07 | HQ |
35,278,193 | Chrome DevTools won't let me set breakpoints on certain lines | <p><a href="https://i.stack.imgur.com/utVAf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/utVAf.png" alt="enter image description here"></a></p>
<p>In the image above, I tried setting breakpoints on every line from line 437 to line 443. However, I cannot set breakpoints on lines 439 and 440. When the funct... | <javascript><google-chrome><google-chrome-devtools> | 2016-02-08 19:56:41 | HQ |
35,278,334 | Python: how to find to consecutive positive negative values in an array? | I have the following array:
X
array([ 3.5, -3, 5.4, 3.7, 14.9, -7.8, -3.5, 2.1])
For each values of `X` I know its recording time `T`. I want to find the indexes between two consecutive positive-negative or viceversa. Concluding I would like an array like
Y = array([ T(1)-T(0), T(2)-T(1), T(5)-T... | <python><arrays><algorithm><sign> | 2016-02-08 20:06:33 | LQ_EDIT |
35,279,291 | Angular2: How to find out what was previous page url when using angular2 routing | <p>I am developing an angular2 app and I use router.
I am in a page /myapp/signup. after signup I navigate the use to /myapp/login. /myapp/login can also be navigated from my home page which is /myapp. So now, when the user users /myapp/login I go back. This can be done by using location.back(). But I dont want to go b... | <angular><angular2-routing> | 2016-02-08 21:04:17 | HQ |
35,279,933 | Update Table Using Laravel Model | <p>I've got a table for a sports team. The record shows the team selection and some other information. I want to update the record with the team selection. My model is thus:</p>
<pre><code>class Selection extends Model {
protected $table = "selection";
protected $fillable = [
'loose',
'hooker',
'tight',
... | <laravel><model><eloquent> | 2016-02-08 21:43:51 | HQ |
35,280,278 | oracle function error pls-00103 Encountered the symbol "SELECT" when expecting one of the following | I receive the following error when I compile this function:
Compilation errors for PROCEDURE INV.USP_MSC_MODIFICA_ESTADO
Error: PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:( - + case mod new not null <an identifier>
<a double-quoted delimited-identifier> <a bind varia... | <oracle><syntax><plsql><compiler-errors><pls-00103> | 2016-02-08 22:06:25 | LQ_EDIT |
35,280,479 | Can I choose where my conda environment is stored? | <p>Can I change the path /Users/nolan/miniconda/envs/ to another one when creating a virtual environment ? I'd like it to be specific to my project directory. (As we can do with virtualenv)</p>
<pre><code>$conda info -e
Using Anaconda Cloud api site https://api.anaconda.org
# conda environments:
#
_build ... | <conda> | 2016-02-08 22:20:46 | HQ |
35,280,956 | Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS - Python 3.x & OS X | <p>I am trying to install Python 3.5.1 according to these instructions: </p>
<p><a href="http://thomas-cokelaer.info/blog/2014/08/installing-another-python-version-into-virtualenv/" rel="noreferrer">http://thomas-cokelaer.info/blog/2014/08/installing-another-python-version-into-virtualenv/</a> </p>
<p>I have: OS X 10... | <python><macos><python-3.x> | 2016-02-08 22:57:11 | HQ |
35,281,460 | Why does Number.MIN_VALUE < -1219312 (or any small value) evaluate to false? | <p>I've tried this in multiple browsers and they all evaluate to false! Am I missing something here?</p>
| <javascript> | 2016-02-08 23:44:34 | LQ_CLOSE |
35,282,105 | program error exceptions shouldn't be caught by application program | <p>I'm learning java and I don't understand
Why should the program error exception never be caught by the application program?</p>
| <java><exception> | 2016-02-09 00:49:48 | LQ_CLOSE |
35,282,489 | What will be the C# Class for my xml and how to deserialize it | <p>Below is the my source xml. i want to write c# class for it and then deserialize it. so i can use c# object and save this to database.
History- : i was doing json deserialize that works great but am running into issue in my xml 'LastChangeId' node can be part of this xml , sometime may not be there at all or someti... | <c#><sql><xml> | 2016-02-09 01:32:57 | LQ_CLOSE |
35,282,803 | Confuse about error and reject in Promise | <p>All:</p>
<p>I am pretty new to JS Promise, there is one confuse when it comes to Promise chaining, say I have a promise chaining like:</p>
<pre><code>var p = new Promise(function(res, rej){
})
.then(
function(data){
},
function(err){
})
.then(
function(data){
},
function(err){
})
... | <javascript><promise> | 2016-02-09 02:11:14 | HQ |
35,283,091 | How to send an email by javascript | <p>I am making a simple website where we save something by email; i found out how to open the email, but i cant get it to email a specific thing.</p>
<p>this is my code:</p>
<pre><code> var a = function(){
b = document.getElementById("email").value;
m = document.getElementById("Text").value;
window.open("mailto... | <javascript><email> | 2016-02-09 02:48:47 | LQ_CLOSE |
35,283,838 | How I can Count an Integer Value from Edittext Android | i really new in android programming
i wanna make a application that can count how many number you input in 'editText',but unfortunately i can't find any method that can count how many integer i input
thanks for helping me
best regrads | <android><android-edittext> | 2016-02-09 04:23:20 | LQ_EDIT |
35,283,999 | I am not able to click on filter on grid in selenium | I am giving the code below where i need to click on the filter icon. please help me out
<thead class="k-grid-header" role="rowgroup">
<tr role="row">
<th class="k-header k-filterable k-with-icon" scope="col" data-title="User Name" data-index="0" data-field="UserName" data-role="columnsorter">
<a cl... | <java><html><css><selenium><xpath> | 2016-02-09 04:36:54 | LQ_EDIT |
35,284,223 | Is there a limit for number of items (CSSearchableItem) in Core Spotlight CSSearchableIndex in iOS 9? | <p>I have around <strong>110,000</strong> entries (CSSearchableItem) that I want to index into iOS 9 Spotlight Search results. However I only managed to show around <strong>30,000</strong> items. The rest was never indexed / appeared when I do the search. So I'm not really sure if there's a limit for an app to to index... | <ios><ios9><corespotlight> | 2016-02-09 04:58:55 | HQ |
35,284,827 | Horizontal UIScrollview in ios | How to create horizontal UIScrollview in ios as look like in image.[![ with center it is auto select[1]][1]
[1]: http://i.stack.imgur.com/qo9qg.png | <ios><objective-c><cocoa-touch><uiscrollview> | 2016-02-09 05:52:06 | LQ_EDIT |
35,284,974 | laravel collection to array | <p>I have two models, <code>Post</code> and <code>Comment</code>; many comments belong to a single post. I'm trying to access all comments associated with a post as an array.</p>
<p>I have the following, which gives a collection.</p>
<p><code>$comments_collection = $post->comments()->get()</code></p>
<p>How wo... | <php><arrays><laravel><eloquent> | 2016-02-09 06:03:00 | HQ |
35,285,599 | Parent element selector using pure CSS | <p>What is the way of getting parent element using pure CSS. Am using VS 2013, So it must be css3. I have seen in google about has() and < selectors. Unfortunately they do not work. </p>
| <css> | 2016-02-09 06:48:26 | LQ_CLOSE |
35,285,741 | Sum of a range? | I am very new to Python. I am trying to find the sum of all numbers less that 1000 divisible by 3 and 5. I have this so far:
```for i in range(0, 1000):
if i % 3 == 0:
print i
elif i % 5 == 0:
print i
b = sum(i)
print b```
I get a TypeError: 'int' object is not iterable (referring to... | <python><sum><range> | 2016-02-09 06:57:13 | LQ_EDIT |
35,285,902 | Laravel: find if a pivot table record exists | <p>I have two models which are joined by a pivot table, <code>User</code> and <code>Task</code>.</p>
<p>I have a <code>user_id</code> and a <code>task_id</code>.</p>
<p>What is the neatest way to check whether a record exists for this combination of user and task?</p>
| <php><laravel><eloquent><pivot-table> | 2016-02-09 07:08:21 | HQ |
35,286,029 | Docker: npm install behind proxy | <p>I have this Dockerfile:</p>
<pre><code>FROM node:argon
ENV http_proxy http://user:pass@proxy.company.priv:3128
ENV https_proxy https://user:pass@proxy.company.priv:3128
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
C... | <proxy><docker><npm> | 2016-02-09 07:17:04 | HQ |
35,286,055 | javascript rounding by 500 | <p>how to round 17000595 to 17000500 with javascript?</p>
| <javascript><rounding> | 2016-02-09 07:18:41 | LQ_CLOSE |
35,286,326 | Move a marker between 2 coordinates following driving directions | <p>I want to move a marker from one Latlng to another. I have used this code to move the marker smoothly based on Distance and Time.</p>
<pre><code>public void animateMarker(final LatLng toPosition,
final boolean hideMarker) {
final Handler handler = new Handler();
final l... | <android><google-maps> | 2016-02-09 07:36:00 | HQ |
35,287,148 | Can firefox inspector change files on server? | i'm playing around with
firefox inspector and change some things
on a web page.
Now the web hoster write me the webpage will be hacked.
I watch the page via www, dont have any passwords or so.
Is this coincidence or can a realy make changes on server
with the inspector?
The hoster write the affected file was ... | <php><firefox> | 2016-02-09 08:28:02 | LQ_EDIT |
35,287,267 | pointer to struct C programming | I am having a problem with pointers.
this is an example of what I want
struct Book
{
char name[10];
int price;
}
int main()
{
struct Book b[10]; //Array of structure variables
struct Book* p; //Pointer of Structure type
p = &b... | <c><pointers><struct> | 2016-02-09 08:35:33 | LQ_EDIT |
35,287,302 | Android Data Binding: how to pass variable to include layout | <p>Google documentation says that variables may be passed into an included layout's binding from the containing layout but I can't make it work but get data binding error ****msg:Identifiers must have user defined types from the XML file. handler is missing it.
The including XML looks like this:</p>
<pre><code><la... | <android-databinding> | 2016-02-09 08:37:14 | HQ |
35,287,488 | SVGs in C#, draw multiple complex rectangles. | I'm creating a gannt chart to show hundreds of calendars for individual instances of orders, currently using an algorthim to draw lines and rectangles to create a grid, the problem is I'm the bitmaps are becoming far to large to draw, taking up ram, I've tried multiple different methods including drawing the bitmaps at... | <c#><svg><bitmap> | 2016-02-09 08:48:16 | LQ_EDIT |
35,287,565 | Does Collections.unmodifiableList(list) require a lock? | <p>I have a <code>productList</code> maintained in a file named <code>Products.java</code></p>
<pre><code>private List<String> productList = Collections.synchronizedList(new ArrayList());
</code></pre>
<p>Now creating a synchronized list, will ensure that operations like add/remove will have a implicit lock and... | <java><multithreading><arraylist><collections> | 2016-02-09 08:51:55 | HQ |
35,287,949 | React with ES7: Uncaught TypeError: Cannot read property 'state' of undefined | <p>I'm getting this error <strong><em>Uncaught TypeError: Cannot read property 'state' of undefined</em></strong> whenever I type anything in the input box of AuthorForm. I'm using React with ES7.</p>
<p>The error occurs on <strong>3rd line of setAuthorState function in ManageAuthorPage</strong>. Regardless of that li... | <javascript><reactjs><ecmascript-6><ecmascript-7> | 2016-02-09 09:12:19 | HQ |
35,288,793 | django media url tag | <p>Does django have <code>media</code> tag similar to <code>static</code> and <code>url</code> and how to setup it?</p>
<pre><code>{% static 'styles/boo.css' %}
{% url 'some_app:some_name' %}
Is this possible: {% media 'what here' %}?
</code></pre>
<p>How to setup it?</p>
| <python><django><django-urls> | 2016-02-09 09:52:18 | HQ |
35,289,273 | Django annotate() error AttributeError: 'CharField' object has no attribute 'resolve_expression' | <p>Hello I want to concatenate more fields into django, but even this simple code:</p>
<pre><code> Project.objects.annotate(
companyname=Concat('company__name',Value('ahoj')),output_field=CharField()
)
</code></pre>
<p>Gives me an error:</p>
<pre><code>AttributeError: 'CharField' object has no att... | <python><django> | 2016-02-09 10:12:59 | HQ |
35,289,314 | Making a Java class Thread safe | I am trying to understand as to how to make the Java class thread-safe.
package com.test;
public class ThreadBean {
private int x;
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
}
Inorder to do this,I need t... | <java><multithreading><thread-safety> | 2016-02-09 10:14:48 | LQ_EDIT |
35,289,626 | SQL Plus command line: Arrow keys not giving previous commands back | <p>I am using Oracle 10g Express Edition on Fedora core 5 32+ bit os. The problem is when I use the SQL Plus command line to make SQL statements I can not get the previously typed command back at the prompt when I use the up and down arrow keys on my keyboard. This is quite easy when I am using a shell, but here with t... | <linux><sqlplus> | 2016-02-09 10:29:05 | HQ |
35,289,773 | Cannot convert a partially converted tensor in TensorFlow | <p>There are many methods in TensorFlow that requires specifying a shape, for example truncated_normal:</p>
<pre><code>tf.truncated_normal(shape, mean=0.0, stddev=1.0, dtype=tf.float32, seed=None, name=None)
</code></pre>
<p>I have a placeholder for the input of shape [None, 784], where the first dimension is None be... | <python><tensorflow> | 2016-02-09 10:35:55 | HQ |
35,289,802 | Docker pull error : x509: certificate has expired or is not yet valid | <p>Description of problem:</p>
<p>I'm trying to pull ubuntu from the public registry with this command :</p>
<pre><code>docker pull ubuntu
</code></pre>
<p>And then i got this results (the previous command was working yesterday) :</p>
<p>"Error while pulling image: Get <a href="https://index.docker.io/v1/repositori... | <ubuntu><docker><x509certificate><pull><crt> | 2016-02-09 10:37:21 | HQ |
35,289,918 | Play Audio when device in silent mode - ios swift | <p>I am creating an application using xcode 7.1, swift. I want to play an audio. Everything is fine. Now my problem I want to hear sound when the device in silent mode or muted. How can I do it?</p>
<p>I am using the following code to play audio</p>
<pre><code>currentAudio!.stop()
currentAudio = try? AVAu... | <ios><swift><audio> | 2016-02-09 10:43:17 | HQ |
35,290,378 | understand use of require in perl | What is the use of the keyword 'require' in perl. I have referred http://perldoc.perl.org/functions/require.html but it is not very helpful. | <perl> | 2016-02-09 11:04:44 | LQ_EDIT |
35,290,605 | How remove spacebar in string in Oracle? | <pre><code>SELECT '17, 18' STRING_
FROM DUAL;
</code></pre>
<p>remove spacebar</p>
| <sql><oracle><plsql> | 2016-02-09 11:16:00 | LQ_CLOSE |
35,291,050 | Compare time in perl using subroutine | <p>I found the script to compare the time and get the return value. But that script not validating the following scenario properly. Please help me on this.</p>
<p>Script Path : <a href="http://perlprogramming.language-tutorial.com/2012/10/perl-function-to-compare-two-dates.html#recent" rel="nofollow">http://perlprogra... | <perl> | 2016-02-09 11:36:01 | LQ_CLOSE |
35,291,117 | scrollToRowAtIndexPath:atScrollPosition causing table view to "jump" | <p>My app has chat functionality and I'm feeding in new messages like this:</p>
<pre><code>[self.tableView beginUpdates];
[messages addObject:msg];
[self.tableView insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:messages.count - 1 inSection:1]] withRowAnimation:UITableViewRowAnimationBottom];
[self.tableView end... | <ios><uitableview><ios9> | 2016-02-09 11:39:14 | HQ |
35,291,520 | Docker and --userns-remap, how to manage volume permissions to share data between host and container? | <p>In docker, files created inside containers tend to have unpredictable ownership while inspecting them from the host. The owner of the files on a volume is root (uid 0) by default, but as soon as non-root user accounts are involved in the container and writing to the file system, owners become more or less random fro... | <docker> | 2016-02-09 11:58:40 | HQ |
35,291,710 | InnoSetup Uninstall Caption | How to change the title of the window at the uninstall ?
http://www.fotolink.su/v.php?id=174c19d3d19cd7985b40553d524f9e56
| <inno-setup><pascalscript> | 2016-02-09 12:08:09 | LQ_EDIT |
35,291,764 | Is it possible to bring the variable value even if is there some mismatch in variable in ruby | <pre><code>variable_123_abc = 20
</code></pre>
<p>If I search with variable_345_abc it should bring the value 20 is it possible in ruby?</p>
| <ruby> | 2016-02-09 12:11:19 | LQ_CLOSE |
35,292,001 | How to get ABI (Application Binary Interface) in android | <p>It may be a duplicated question, but i'm unable to find it.
I wonder how we can get what's the ABI of a phone, using code. I know that there's different Interface that may dictated in gradle file. But the problem is how i can get exactly the ABI of a certain device, so that i can manually copy it to system/lib/ fold... | <android><abi> | 2016-02-09 12:23:40 | HQ |
35,292,067 | How it is possible to initialize an array in this form with null values? (Java) | <p>How it is possible to initialize an array in this form with null values in Java?</p>
<pre><code>int array[][] = {
{1, 6, 4, 1,-1},
{6, 3, 3, 3, 9},
{6, 3, 3, 3, 9},
{6, 3, 3, 3, 9},
{6, 3, 3, 3, 9}
};
</code></pre>
<p>I tried that, but it doesn't work... | <java><arrays> | 2016-02-09 12:26:57 | LQ_CLOSE |
35,292,397 | ASP.Net Core SAML authentication | <p>I am trying to add SAML 2.0 authentication to an ASP.Net Core solution. I can't find any documentation on the subject, so I am unsure where to start. There is probably documentation out there, but I don't want to spend 3 days becoming an expert on this.</p>
<p>From what I can see ASP.Net Core has changed something ... | <asp.net-core><saml-2.0> | 2016-02-09 12:42:10 | HQ |
35,292,863 | Return makes integer from pointer without a cast (simple for loop) | <p>Why does this C code return the warning in the title?</p>
<pre><code>char n_zeroes(int n) {
char str[n];
int i;
for (i = 0; i < n; i++) {
str[i] = '0';
}
return str;
}
</code></pre>
| <c><pointers><for-loop><char> | 2016-02-09 13:05:56 | LQ_CLOSE |
35,293,117 | npm install that requires node-gyp fails on Windows | <p>I have a NPM project that uses <code>bufferutils</code> and <code>utf-8-validate</code>, both requiring node-gyp to install them. When I do <code>npm install</code>, I get following error:</p>
<pre><code>> bufferutil@1.2.1 install C:\Users\Marek\WEB\moje-skoly\web-app\node_modules\bufferutil ... | <node.js><npm><node-gyp> | 2016-02-09 13:17:17 | HQ |
35,293,379 | UITextField secureTextEntry toggle set incorrect font | <p>I have an <code>UITextField</code> which I use as a password field. It has by default <code>secureTextEntry</code> set to <code>true</code>.
I also have a <code>UIButton</code> to toggle the show/hide of the password.</p>
<p>When I change the textfield from <code>secureTextEntry</code> set to <code>true</code> to ... | <ios><swift><uitextfield> | 2016-02-09 13:30:16 | HQ |
35,293,470 | Checking if a type is a map | <p>I sometimes find the need to write general routines that can be applied to a container of objects, or a map of such containers (i.e. process each container in the map). One approach is to write separate routines for map types, but I think it can be more natural and less verbose to have one routine that works for bo... | <c++><dictionary><c++14><typetraits> | 2016-02-09 13:35:26 | HQ |
35,293,707 | subset dataframe with sqldf | i try to subset dataframe using sqlfd but it don't work.can someone explain what don't work?i have processed like this.
> library(sqldf)
>dataf <- read.csv("zert.csv")
>agep, pwgt1 are columns of dataf
> dd <- sqldf("select * from dataf where AGEP < 50 and pwgtp1")
>Error in .local(drv, ...) :
>Fai... | <r><sqldf> | 2016-02-09 13:46:54 | LQ_EDIT |
35,293,922 | how to sort an array that contain second order in python? | for instance, I have an array like:
[[1,1,0],[1,0,1],[0,0,0]
first to sort the first element, and then if the first element are same ,sort the second element, and then if the second elements are same sort for third, forth....
the result should like this:
[[0,0,0],[1,0,1],[1,1,0]
obviously, the `sorte... | <python><list><sorting> | 2016-02-09 13:57:43 | LQ_EDIT |
35,294,503 | div.my-class vs. .my-class any benefits? | <p>If I am to only use this class on a div. Is there any benefit to using the first over the second?</p>
<pre><code>div.my-class
.my-class
</code></pre>
| <html><css> | 2016-02-09 14:25:40 | LQ_CLOSE |
35,294,854 | How can we check the whole sql database for login username and password in mvc3 c# | I have more than one table in my sql server database.each table is for each users named developers, designers, users and so on.my home page contain a login screen.when user try to login with their username and password then it automatically check whether the username and password belongs to the database.if yes it redir... | <c#><sql-server><asp.net-mvc-3> | 2016-02-09 14:42:13 | LQ_EDIT |
35,295,090 | Possible to bring the app from background to foreground? | <p>When running an XCT UI test it is possible to put the application under test in the background with:</p>
<pre><code>XCUIDevice().pressButton(XCUIDeviceButton.Home)
</code></pre>
<p>It it possible in some way to bring the app back to foreground (active state) without relaunching the application?</p>
| <ios><swift><xcode7><xcode-ui-testing> | 2016-02-09 14:53:03 | HQ |
35,295,115 | Android ProgressBar styled like progress view in SwipeRefreshLayout | <p>I use <code>android.support.v4.widget.SwipeRefreshLayout</code> in my Android app. It wraps a <code>ListView</code>. The content of the list view is downloaded from a server.</p>
<p>A progress view is shown when user swipes down in order to reload data from server. The progress view looks like a piece of circle tha... | <android><progress-bar><android-styles> | 2016-02-09 14:54:39 | HQ |
35,296,680 | How to configure "git pull --ff-only" and "git merge --no-ff" | <p>A typical git workflow for me is to clone a remote repository and use git pull to keep it up-to-date. I don't want merge commits when I pull, so i use the --ff-only option.</p>
<p>I also make local branches for feature work. I want to preserve the branch history, so when I merge the local branch back to my local cl... | <git><git-merge><git-pull><git-config> | 2016-02-09 16:07:35 | HQ |
35,297,574 | Data format: transform row to colum in R | This is my code but I want to format the data put it down in a web page.
library(XML)
noria=readHTMLTable("http://www.fundacionguanajuato.com/CGI-BIN/Clima/Actual.php?Est=noria")
raws.data <- readLines(noria, warn="F")
str(noria)
noria
#I get the result but I can't see the correct format when I expor... | <r><web-scraping> | 2016-02-09 16:49:15 | LQ_EDIT |
35,298,291 | run modeler stream inside spss statistics | I have an SPSS syntax file that I am trying to make as automatic as possible. I am looking for a way, inside SPSS Statistics, to do basically the following: open SPSS Modeler and run stream. But, my SPSS syntax has to wait for the file to be created and exported in the Modeler stream before my SPSS syntax can proceed. ... | <python><spss><spss-modeler> | 2016-02-09 17:24:26 | LQ_EDIT |
35,298,647 | Java - How to determine if there's a run of characters in an array? | Say we have an array:
array = [1, 0, 0, 0, 1, 0, 1, 1, 1];
And we want to find a "run" of duplicate numbers where there are at least three in a row. In this case, it would be the set of 0, 0, 0, and 1, 1, 1.
How can I determine which indices contain the "runs" of three or more? I hope this makes sense.
... | <java><android><arrays><integer> | 2016-02-09 17:44:23 | LQ_EDIT |
35,298,724 | Google Docs Viewer occasionally failing to load content in iframe | <p>I'm having an issue with the Google Docs viewer that is causing a nightmare to solve because it only happens intermittently. I'm looking for guidance on how to make the content in the iframe load everytime without issue as it should. </p>
<p>Steps to reproduce
1) This page is a basic HTML page with a h1 tag and an ... | <html><iframe><google-docs> | 2016-02-09 17:49:01 | HQ |
35,298,935 | Else statement does not get executed in Javascript | <p>Hello I've been trying to write a function to validate a string value. My code is below</p>
<pre><code>function verifyPassword(){
passW = prompt ("Password:");
if (passW = 'Pass123'){
document.write ('Your password is correct');
}
else {
document.write ('Your password is incorrect');
}
}
verifyPassword();
</... | <javascript> | 2016-02-09 18:00:06 | LQ_CLOSE |
35,298,986 | How can I use nested formulas in arrayfomula functions in google sheets? | I am new to posting in this community but have found solutions here many times.
I need google sheets to compute sums for each row using the arrayformula() function.
I know I can manualy enter somthing like;
=ARRAYFORMULA(A:A + B:B + C:C)
but I need the use of the functions to do it.
I've tried many things ... | <google-sheets><array-formulas> | 2016-02-09 18:02:35 | LQ_EDIT |
35,299,733 | How to get text from a number in a select query | <p>there I have MYSQL DB, and it has an ID INT, however this identifier has a meaning in the system, I would like to get the meaning instead of the number for example something like this.</p>
<pre><code>select ID from payments;
if(ID==0)
returns "No payment made"
else if(ID==1)
returns "Payment made accordingly"
</cod... | <c#><mysql> | 2016-02-09 18:42:57 | LQ_CLOSE |
35,300,419 | Redux, Do I have to import store in all my containers if I want to have access to the data? | <p>Perhaps I am not wrapping my head around redux, but all the examples I've seen don't really access state too much between containers and so I haven't seen much usage of store.getState(), but even if you want to dispatch, you need access to store, right?</p>
<p>So, other than importing
import store from 'path/to/sto... | <reactjs><redux> | 2016-02-09 19:18:36 | HQ |
35,301,256 | How to have a file or string available to multiple computers and be able to changed and rewritten in C#? | <br>
I have a bit of an issue/question. <br>
I am trying to write a program that generates a specific serial number but it will be able to be accessed by multiple computers in different locations. <br>
The serial number will look something like this:<br>
(2 letters)AA(month)02(year)16(four numbers)0000<br>
Full... | <c#><serialization> | 2016-02-09 20:11:01 | LQ_EDIT |
35,301,828 | Image read/write in Java without imageio between local file systems | <p>I'm very new to Java and I'm recently making a program which reads image files(jpg) from one directory, and write(copy) them to another directory.</p>
<p>I can't use imageio or move/copy methods and I also have to check the time consuming caused by the R/W operation.</p>
<p>The problem is I wrote some codes below ... | <java><fileinputstream><fileoutputstream><image-file> | 2016-02-09 20:45:23 | LQ_CLOSE |
35,302,274 | How to reload a page in PHP before exit function? | <p>I got some code like this and the header is not working</p>
<pre><code> if ($variable > 0) {
header('Location: mypage.php');
exit;
}
</code></pre>
<p>And I need exit function, is this a bad idea?</p>
| <php><exit> | 2016-02-09 21:12:05 | LQ_CLOSE |
35,302,368 | Why does changing int to long speed up the execution? | <p>I was trying to solve <a href="https://projecteuler.net/problem=14" rel="noreferrer">problem #14 from Project Euler</a>, and had written the following C#...</p>
<pre><code>int maxColl = 0;
int maxLen = 0;
for (int i = 2; i < 1000000; i++) {
int coll = i;
int len = 1;
while (coll != 1) {
if (coll % 2 ==... | <c#> | 2016-02-09 21:18:47 | HQ |
35,302,414 | Adding local plugin to a Gradle project | <p>I have a Gradle plugin that compiles and works as expected. I would like to distribute with the source code an example application using the Gradle plugin which would also allow me to test changes to the plugin easily. Now to do this I must add a classpath dependency to the <code>buildScript</code> block. Is it poss... | <java><gradle> | 2016-02-09 21:21:27 | HQ |
35,302,760 | How to change the colour of the 'Cancel' button on the UISearchBar in Swift | <p>I have added a <code>UISearchBar</code> to the top of my <code>PFQueryTableViewController</code>. I have changed the colour of the searchBar to be the colour of my app, but in doing this, it seems to have also changed the colour of the 'Cancel' button to the right of it to the same colour. Ideally, I want the colour... | <ios><swift><uisearchbar> | 2016-02-09 21:42:14 | HQ |
35,303,370 | Mocha only running one test file | <p>My Mocha tests were working fine, but when I added a new module (and test), mocha stopped running all of my test files and now only runs the single new test.</p>
<p>My test script:</p>
<pre><code>env NODE_PATH=$NODE_PATH:$PWD/src mocha --recursive --compilers js:babel-core/register src/**/*.test.js --require babel... | <javascript><testing><mocha><babeljs> | 2016-02-09 22:23:39 | HQ |
35,303,374 | How can I Retrive the json Object Array Value using javascruipt | My Json Object Array is something like this:
country:[{ id: "1", name:"ajith", country:"india"},
{id: "2", name:"chandru", country:"india"},
{id:"3", name:"gane", country:"india"}]
how can i retrive these key and value, and how can i display in html table.
please anyone can ple... | <javascript><html><json> | 2016-02-09 22:23:54 | LQ_EDIT |
35,303,675 | What is the difference between id and tagname? | <p>An Interviewer asked this question in selenium webdriver
Please let me know the answer of this question</p>
<p>Thanks
Srinu Marri</p>
| <selenium><selenium-webdriver><webdriver> | 2016-02-09 22:44:18 | LQ_CLOSE |
35,303,773 | Returning a 1 or 0 for checkbox , wheter checked or unchecked in HTML5 | I declared a var and want to pass the status of the checkbox to the dhcp_addr variable and set it to 1 when the checkbox is checked and 0 when its unchecked. Need some help in returning a value to the variable.
var dhcp_addr = $('#dhcp').change(function(){
if(dhcp.checked){
... | <javascript><jquery><html><checkbox> | 2016-02-09 22:51:32 | LQ_EDIT |
35,304,252 | Elixir: rationale behind allowing rebinding of variables | <p>What is the rationale behind allowing rebinding of variables in Elixir, when Erlang doesn't allow that?</p>
| <erlang><elixir> | 2016-02-09 23:32:08 | HQ |
35,304,343 | CircleCI with no tests | <p>I want to use CircleCI just to push my docker image to Dockerhub when I merge with master. I am using CircleCI in other projects where it is more useful and want to be consistent (as well as I am planning to add tests later). However all my builds fail because CircleCI says: "NO TESTS!", which is true. How can I dis... | <circleci> | 2016-02-09 23:39:21 | HQ |
35,304,367 | Regex or any string method | <p>Hi I am trying to validate a string e.g. AA2016MY and I want to validate that the string position from 3 to 6 is a numeric value.</p>
<p>How to do this is simple java way.</p>
| <java><string> | 2016-02-09 23:41:14 | LQ_CLOSE |
35,304,448 | Laravel: Change base URL? | <p>When I use <code>secure_url()</code> or <code>asset()</code>, it links to my site's domain <strong><em>without</em></strong> "www", i.e. "example.com".</p>
<p>How can I change it to link to "www.example.com"?</p>
| <laravel><laravel-4> | 2016-02-09 23:49:52 | HQ |
35,305,170 | What's the difference between Prometheus and Zabbix? | <p>Just as the title said, can you tell me the differences between Prometheus and Zabbix?</p>
| <zabbix><prometheus> | 2016-02-10 01:08:38 | HQ |
35,305,492 | Cache docker images on Travis CI | <p>Is it possible to cache docker images on Travis CI? Attempting to cache the <code>/var/lib/docker/aufs/diff</code> folder and <code>/var/lib/docker/repositories-aufs</code> file with cache.directories in the travis.yml doesn't seem to work since they require root.</p>
| <performance><caching><docker><continuous-integration><travis-ci> | 2016-02-10 01:45:29 | HQ |
35,305,649 | How to read in words from file into a string | <p>for a lab i am working on, we are supposed to read in words from a file and get the length of each, and then store it in an array. Would reading in each word into a string and then storing the length in the array be the best way of going about this? And if so, could someone give me a pointer on how to do this? I am ... | <java> | 2016-02-10 02:03:52 | LQ_CLOSE |
35,305,875 | Progress bar while loading image using Glide | <p>Can I load a spinner in placeholder with rotating animation until the image is loaded using Glide?</p>
<p>I am trying to do that using .placeholder(R.Drawable.spinner) no animation is coming up?</p>
<p>It would be great if somebody could help me out?</p>
<p>Thanks!</p>
| <android><android-glide> | 2016-02-10 02:34:26 | HQ |
35,306,309 | Call dotNET from Delphi and return a string | <p>How does a Delphi application call an exported function (non-COM) dotNET assembly and have the function return a string?</p>
<p>COM is not a possible solution for my particular application. I have control over both ends of the call.</p>
<h2>What I have tried so far - Delphi client side</h2>
<pre><code>type
TStr... | <c#><delphi><interop> | 2016-02-10 03:28:05 | HQ |
35,306,500 | R: data.table count !NA per row | <p>I am trying to count the number of columns that do not contain NA for each row, and place that value into a new column for that row.</p>
<p>Example data:</p>
<pre><code>library(data.table)
a = c(1,2,3,4,NA)
b = c(6,NA,8,9,10)
c = c(11,12,NA,14,15)
d = data.table(a,b,c)
> d
a b c
1: 1 6 11
2: 2 NA 12... | <r><data.table> | 2016-02-10 03:51:45 | HQ |
35,306,573 | I need help creating a for loop for document.querySelectorAll | <p>I need help creating a for loop for document.querySelectorAll(".suit"). I'm trying to create a form where you input the birthday and the output is a total of 365 options. The example output put is in the HTML.</p>
<pre><code> <html>
<head>
<style type="text/css">
.suit {
display: no... | <javascript><forms><loops> | 2016-02-10 04:01:50 | LQ_CLOSE |
35,308,148 | You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings | [This is my pycharm settings and my django app manage.py, view.py and wsgi.py][1]
[1]: http://i.stack.imgur.com/BGPEV.png | <python><django><environment-variables><pycharm> | 2016-02-10 06:15:58 | LQ_EDIT |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.