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 |
|---|---|---|---|---|---|
34,918,115 | Getting "No qmlscene installed." warning in "QT CREATOR" on "Ubuntu" | <p>i added QTStatic to QT Versions, but i cant use this version to build and set in kits tab.</p>
<p>i uploaded screenshot below : (plz help)</p>
<p><a href="http://i.stack.imgur.com/rpaGB.jpg" rel="noreferrer">Versions Tab Screenshot</a></p>
<p><a href="http://i.stack.imgur.com/3TRye.jpg" rel="noreferrer">Kits Tab ... | <qt><qt-creator> | 2016-01-21 07:51:40 | HQ |
34,918,405 | To know the sass structure | <p>This is my sass structure please explain what does its mean?</p>
<p>actually am analysing a code structure. am unable to understad the structure.</p>
<pre><code>.class-name{
some styles..
&.class-name2{
some styles..
}
}
</code></pre>
| <sass> | 2016-01-21 08:09:35 | LQ_CLOSE |
34,919,798 | Select two columns with different where clause | I want to select two columns, for the example one name x and the other one is y
for to get x data I need to write in the where clause IsTure='no' and count the the id by grouping by date.
and for y in need to count the id by different where clause and group by date also.
and the date field is different for x and ... | <sql><select><sql-server-2012> | 2016-01-21 09:28:15 | LQ_EDIT |
34,919,920 | If Else Not Work in Php Script | I have php code to display information messages returned. But this is not working.
As this is an example of the codes:
<?php
if(intval(mysql_num_rows($req2))==0)
{
?>
(No reply)
<?php
}
else
{
?>
(<?php echo $dn2['reps']-1; ?> time reply)
<?php
}
... | <php> | 2016-01-21 09:34:22 | LQ_EDIT |
34,920,463 | Connect smartphone to website | <p>I've come across this link a while ago:
<a href="https://lightsaber.withgoogle.com" rel="nofollow">https://lightsaber.withgoogle.com</a></p>
<p>I thought it was really cool, the ability to connect your phone to a website and let it control certain things. And just now I found this link: <a href="http://www.pauljoba... | <javascript><jquery><css><smartphone> | 2016-01-21 09:57:24 | LQ_CLOSE |
34,920,988 | How to load a data using ajax-php with parameters | <p>i got a link that performs a javascript function onclick</p>
<pre><code><input type='hidden' id='name'>
<a href='#' onclick='getUsers(1)'>Click here</a>
function getUsers(id){
$('#name').val(id);
}
</code></pre>
<p>whenever i click the link i want to pass the '1' to be the value of the hidden i... | <javascript><php><jquery><ajax> | 2016-01-21 10:20:35 | LQ_CLOSE |
34,921,346 | C# Split String - Split String into Array | <p>I am trying to split a string that the user tiped in. For example:
He types in "Hello". So I want to split this up into an array: ["H","E","L",...]. So how do I use this .split() function? </p>
<p>And how do I save it into an Array?</p>
<p>Thank you guys.</p>
| <c#><arrays><split> | 2016-01-21 10:36:40 | LQ_CLOSE |
34,922,668 | Get all data from JSON array | <p>I've a little problem with a simple thing.I believe.
this is my code...</p>
<p><a href="http://i.stack.imgur.com/p8A8D.png" rel="nofollow">javascript code</a></p>
<p>I'm able to grab the first object element but I need all the data object, I guess I've to change something in this code line...</p>
<pre><code>value... | <javascript><arrays><json><object> | 2016-01-21 11:32:09 | LQ_CLOSE |
34,923,447 | C++ MFC, Custom Grid with CheckBox, RadioButton | <p>I want to create Custom Grid which shall have inline edit feature, Checkbox, Radio button and Images.</p>
<p>I came across very good article << <a href="http://www.codeproject.com/Articles/8/MFC-Grid-control" rel="nofollow">http://www.codeproject.com/Articles/8/MFC-Grid-control</a>;
Here DrawFrameControl is u... | <c++><mfc><win32gui> | 2016-01-21 12:09:30 | LQ_CLOSE |
34,923,788 | Prometheus - Convert cpu_user_seconds to CPU Usage %? | <p>Currently i'm monitoring docker containers via Prometheus.io. My problem is that i'm just getting "cpu_user_seconds_total" or "cpu_system_seconds_total". My question is how to convert this ever-increasing value to a CPU percentage?</p>
<p>Currently i'm querying: </p>
<pre><code>rate(container_cpu_user_seconds_tota... | <performance><performance-testing><cpu-usage><prometheus> | 2016-01-21 12:25:40 | HQ |
34,923,868 | Spring beans are not injected in flyway java based migration | <p>I'm trying to inject component of configuration properties in the flyway migration java code but it always null.</p>
<p>I'm using spring boot with Flyway.</p>
<pre><code>@Component
@ConfigurationProperties(prefix = "code")
public class CodesProp {
private String codePath;
}
</code></pre>
<p>Then inside Flyw... | <spring><spring-boot><flyway> | 2016-01-21 12:28:53 | HQ |
34,923,961 | Trouble in R with abline | it's my first time using R - I've only used SPSS before and this is all very confusing for me.
I'm having trouble plotting 2 ablines on a graph of the log10 Brain mass and log10 body mass. I'm following someone else's script but it just doesn't work for me. This is what I have: [Click me][1]
(I've taken a screensho... | <r><plot><glm> | 2016-01-21 12:33:30 | LQ_EDIT |
34,924,513 | regarding the validation of the input file separator in perl | I have csv input file in perl which is tab separated.
I would like to add a check if it find anything other than tab as field separator then it should through error message.I am new to perl I don't know how to check.
example of my input file:My file having only two field.
10001027^I1000102713921-1274^M$
10010121^I... | <perl><field><separator> | 2016-01-21 12:58:15 | LQ_EDIT |
34,924,521 | PHP - access values inside an object | I have a requirement to access value inside an object return from an API response in PHP.
API response
$res = {
"data": {
"first_name": "Dany",
"last_name": "mate",
"id": "1379933133290837510",
"image": {
"60x60": {
"url": "https://s-media-cache-ak0.pinimg.co... | <php><json> | 2016-01-21 12:58:25 | LQ_EDIT |
34,924,676 | How to read doc file in editorpane | I am trying to view word file in my editor pane
I tried these lines
import java.awt.Dimension;
import java.awt.GridLayout;
import java.io.File;
import java.io.FileInputStream;
import javax.swing.JEditorPane;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.... | <java><ms-word><apache-poi><docx> | 2016-01-21 13:05:51 | LQ_EDIT |
34,925,947 | Javascript Compressing if statement | is there a way of compressing this if statement.
var alive1 = true
if (x2 >= (x10 - 10) && x2 <= (x10 + 10) && y2 >= (y10 - 10) && y2 <= (y10 + 10) || x3 >= (x10 - 10) && x3 <= (x10 + 10) && y3 >= (y10 - 10) && y3 <= (y10 + 10) || x4 >= (x10 - 10) && x4 <= (x10 + 10) && y4 >= (y10 - 10) && y4 <= (y10 +... | <javascript> | 2016-01-21 14:06:00 | LQ_EDIT |
34,926,013 | Is it possible to create an Android Wear app with react native | <p>I have had a play with react native creating ios apps but have not tried android yet. With android you also get 'android wear' for watches etc, will react native work creating apps for those devices?</p>
| <react-native><wear-os> | 2016-01-21 14:09:06 | HQ |
34,926,544 | Best way to handle data for several options C# | <p>My program workflow:</p>
<p>1) Show menu</p>
<p>2) Catch option by switch</p>
<p>2.1)Add float to a list </p>
<p>2.2)Increment int1</p>
<p>2.3)Increment int2</p>
<p>2.4)Show inputs</p>
<p>Now I wanna to add a generator which will print in console how my fiber track looks like. For ex:</p>
<p>1) Added a secti... | <c#> | 2016-01-21 14:34:18 | LQ_CLOSE |
34,926,910 | onFocus bubble in React | <p>jsfiddle : <a href="https://jsfiddle.net/leiming/5e6rtgwd/" rel="noreferrer">https://jsfiddle.net/leiming/5e6rtgwd/</a></p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>class Sample extends React.Component {
... | <html><reactjs><reactive-programming> | 2016-01-21 14:50:14 | HQ |
34,927,159 | Installing modules | <p>I'm new to programming in Python. I can't figure out how to install a library called Requests. I followed a youtube instructional video, and it seems to be able to import the module in command prompt, but not from the IDLE, which I would prefer to use.</p>
| <python> | 2016-01-21 15:02:14 | LQ_CLOSE |
34,927,390 | How do i call the self.timer's changing value and indicate it at the label.text the ViewDidLoad's | i'm making a UILabel that indicates the value of the self.timer.
This is the code.
The problem is that i can't indicate the timeFormatter.stringFromDate(date_SSS) in the label.text.
Actually i also have a scrollView and a pageControl to scroll the label horizontally. But the main problem is at the UILabel and th... | <ios><swift><swift2> | 2016-01-21 15:13:18 | LQ_EDIT |
34,927,558 | How does this string formatting trick work? | I've recently seen this string formatting example:
>>> from datetime import date
>>> 'Today is {0:%A}'.format(date.today())
'Today is Thursday'
I'm wondering how it works. | <python><date><string-formatting> | 2016-01-21 15:21:16 | LQ_EDIT |
34,927,647 | What regex pattern can I use to match this string? | <p>What regex pattern can I use to match the following:</p>
<p>Dxx-xxxx/xxx</p>
<p>So:
- Any string that starts with character 'D'
- Has any number of any character between the 'D' and the '-'
- Has any number of any character between the '-' and the '/'
- Has any number of any character after the '/'</p>
<p>Apo... | <c#><regex> | 2016-01-21 15:25:20 | LQ_CLOSE |
34,927,805 | What to do next? | <p>This application will read roster data in JSON format, parse the file, and then produce an SQLite database that contains a User, Course, and Member table and populate the tables from the data file.</p>
<p>This code is incomplete as I need to modify the program to store the role column in the Member table to complet... | <python><json><sqlite> | 2016-01-21 15:31:58 | LQ_CLOSE |
34,928,231 | Why do we need exclude in pom | <p>Pom.xml have this elements and I am curious why do we need exclude <code>commons-logging</code> from <code>spring-core</code>? And how do it works?</p>
<pre><code><dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<versio... | <java><spring><maven><pom.xml> | 2016-01-21 15:50:49 | LQ_CLOSE |
34,929,095 | Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis | <p>I've started using the latest beta of v2 of chart.js since I need to draw a chart that contains both a stacked bar chart and an unstacked line chart on the same chart. Here's an example of what I need:</p>
<p><a href="https://i.stack.imgur.com/Blcid.jpg"><img src="https://i.stack.imgur.com/Blcid.jpg" alt="enter im... | <javascript><chart.js> | 2016-01-21 16:27:59 | HQ |
34,929,206 | R Shiny selectInput that is dependent on another selectInput | <p>I have some data below that I'm using to create a donut chart in R shiny, where <code>date</code> is a character. I want to be able to select the email whose score I want to view, but then in the second dropdown selection only see the dates for which that email has activity.</p>
<p>For example, if I select email = ... | <r><shiny><shinydashboard> | 2016-01-21 16:32:37 | HQ |
34,929,954 | Refresh Today Widget every time opened | <p>I thought that Today View every time when i open it it calls "viewWillAppear" but its not. When i change something in my app, and then I slide down for Today View it sometimes refresh the view and sometimes not.</p>
<p>I do all logic in viewWillAppear (fetch data from coreData and put that data to labels), but its ... | <swift> | 2016-01-21 17:07:23 | HQ |
34,930,771 | Why is 'this' undefined inside class method when using promises? | <p>I have a javascript class, and each method returns a <code>Q</code> promise. I want to know why <code>this</code> is undefined in <code>method2</code> and <code>method3</code>. Is there a more correct way to write this code?</p>
<pre><code>function MyClass(opts){
this.options = opts;
return this.method1()
... | <javascript><node.js><promise><this><q> | 2016-01-21 17:46:47 | HQ |
34,931,121 | Can cond support TF ops with side effects? | <p>The (source code) documentation for <code>tf.cond</code> is unclear on whether the functions to be performed when the predicate is evaluated can have side effects or not. I've done some tests but I'm getting conflicting results. For example the code below does not work:</p>
<pre><code>import tensorflow as tf
from t... | <tensorflow> | 2016-01-21 18:07:23 | HQ |
34,931,950 | C++ Builder: Convert binary code to AnsiString | <p>when I have binary code like '01010100011001010111001101110100", how can I convert this back to "test"?</p>
<p>Thanks.</p>
| <c++><binary><ansistring> | 2016-01-21 18:49:36 | LQ_CLOSE |
34,932,472 | How To use Model OOP in Java, Sorry i am newbie | I have a Model Active Admin, i have created String ID setter and getter.
when i use setID in Login Form, i use this :
`ActiveAdmin AA = new ActiveAdmin();`
AA.setId(txtIdAdmin.getText());
and i test getter from login form, it work.
but when i test in another form, in another java class, in diffrent file, i... | <java><oop> | 2016-01-21 19:18:24 | LQ_EDIT |
34,932,611 | the adapter does work? | **i get the input from the user and set them in a list view but when i click in the button does work NO Errors just open the layout and close direct but when a try with "arrayAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,m_list);" is work perfect can you please tell me where im wrong
tha... | <java><android> | 2016-01-21 19:27:07 | LQ_EDIT |
34,932,734 | ESO Authentication on IIS for PHP and .NET applications (Shibboleth / SAML / WiF ...) | <p>I just wondered if you could answer a question regarding authentication in an enterprise's intranet. We are currently setting up a server for intranet publishing which of course needs protection via an enterprise single sign on.</p>
<p>Unfortunately we are stuck with an IIS server as we need to run both PHP and .NE... | <php><asp.net><authentication><iis><single-sign-on> | 2016-01-21 19:34:14 | HQ |
34,933,380 | SHA1 Key for DEBUG & RELEASE ANDROID STUDIO MAC | <p>How do I get my SHA1 Keys for debug and release using android studio on a mac?
(These are required for Google API Keys)</p>
| <android><google-api><sha1> | 2016-01-21 20:11:15 | HQ |
34,933,433 | (Delphi) I set a button to add a bold line to a rich edit, but the first time I click the button it doesn't come out bold? | I have set a button to add a line(bold) to a rich edit, but the first time I click the button it doesn't come out bold?
eg: line1, **line2**, **line3**
Code:
red1.SelAttributes.Style := [fsBold];
red1.Lines.Add(' Name: ' + Edit1.Text);
Does anyone know what I have done wrong?
-Thanks | <delphi> | 2016-01-21 20:14:19 | LQ_EDIT |
34,933,594 | Angular2 parse string to html | <p>I'm importing rss items where in description there is a lot of html code (links, paragraphs, etc...). When I'm viewing it in component's view like:</p>
<pre><code>{{rss.description}}
</code></pre>
<p>the output in site is like:</p>
<pre><code><a href="http://link.com">Something</a> <p>Long text&... | <html><parsing><angular> | 2016-01-21 20:22:42 | HQ |
34,933,990 | Multi thread approach vs Akka actor model | <p>I'm new to akka actor. I have read the akka offical documents and still don't understand how actor works compare to threading model.</p>
<p>Let's take a simple example like this. I have a traditional HttpServer , which have 10 threads in the thread pools . When 20 requests are coming at the same time , the HttpServ... | <multithreading><akka><actor> | 2016-01-21 20:47:47 | HQ |
34,936,599 | How to set up VS-Code to open new files in current instance? | <p>So I've been using Visual Studio Code recently and I really like it. However, every time I open a file, a new window will open rather than a new "tab." I've already tried setting <code>window.openInNewWindow</code> to <code>false</code> and that doesn't work.</p>
| <visual-studio-code> | 2016-01-21 23:48:56 | HQ |
34,936,726 | Visual Studio 2015 (ASP.NET 5): show 'Manage Bower Packages...' context menu | <p>In Visual Studio 2015, when I create a brand new solution with a brand new ASP.NET 5 project, I see the <code>Manage Bower Packages...</code> context menu when I right-click on the project:</p>
<p><a href="https://i.stack.imgur.com/EzHdw.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/EzHdw.jpg" alt="ente... | <visual-studio><visual-studio-2015><asp.net-core><asp.net-core-mvc> | 2016-01-22 00:02:40 | HQ |
34,936,852 | Using if else statement to assign a variable in python | <p>I'm trying to make a program telling you how to order a specific number of nuggets, using if and else statements to assign variables. My problem is if one of the first if statements is true, then the program throws an error, because I called a variable that doesn't exist. How can I make My program skip over the rest... | <python><python-3.x><if-statement> | 2016-01-22 00:17:22 | LQ_CLOSE |
34,937,039 | Number formatting - Java | <p>I need to convert an integer so that a dash is inserted after two characters, for example 12-34-56. </p>
<p>The integer will be a randomly generated six digit number.</p>
| <java><string><integer><format> | 2016-01-22 00:37:28 | LQ_CLOSE |
34,937,379 | C's coverage of assembly | <p>In an argument with a friend, I made the remark that it is impossible to write, in any language besides C, a program that is faster than <em>all</em> variants in C, that do the same thing. My argument was based on an affirmative answer to the question below. Is it true?</p>
<ul>
<li>If we think of "compiling" as ... | <c><assembly><compilation> | 2016-01-22 01:15:39 | LQ_CLOSE |
34,937,438 | SSIS licensing when deployed on different machine than the sql server | I have data warehouse database on SQL Server Enterprise. Currently the SSIS that feeds the data warehouse is running on the same server.
I would like to move the SSIS execution on another server. What are the licensing options for SQL Server for running the SSIS? Can I use SQL Server Standard with server + 1 CAL licen... | <sql-server><ssis> | 2016-01-22 01:21:06 | LQ_EDIT |
34,937,724 | Running bash scripts with npm | <p>I want to try using npm to run my various build tasks for a web application. I know I can do this by adding a <code>scripts</code> field to my <code>package.json</code> like so:</p>
<pre><code>"scripts": {
"build": "some build command"
},
</code></pre>
<p>This gets unwieldy when you have more complex commands ... | <node.js><bash><shell><npm> | 2016-01-22 01:54:33 | HQ |
34,938,016 | Testing if an event has been triggered in Jasmine | <p>How do you test if an event has been fired in Jasmine without <code>jquery-jasmine</code>? </p>
<p>I'm working on a project where we don't use jQuery (wohoo), and I'm trying to write a unit test for my menu triggering function. It works like this:</p>
<ul>
<li>You click a button</li>
<li>My testable component then... | <javascript><unit-testing><testing><javascript-events><jasmine> | 2016-01-22 02:31:50 | HQ |
34,938,202 | Dynamic Div objects in web app? | <p>I am trying to figure out how to have a div display a certain amount of orange circles per a changing variable. How would this be done? </p>
<p>If the number is 4, there should be 4 orange circles.
If the number is 3, there should be 3 orange circles..</p>
<p>Additional, Animating exit and entrance?</p>
<p>Whats ... | <javascript><jquery><html><css> | 2016-01-22 02:54:29 | LQ_CLOSE |
34,938,663 | 1067: Implicit coercion of a value of type congrate to an unrelated type flash.display:DisplayObject | in one input text field has two possible answer which is luah or hal. why it is not working at all.someone please help me the right way to write a code??
stop();
//var jawapan1=Array;
txt_zuhal.addEventListener(KeyboardEvent.KEY_DOWN,handler);
function handler(event:KeyboardEvent)
{... | <actionscript-3><flash> | 2016-01-22 03:48:11 | LQ_EDIT |
34,939,390 | Generic programming via effects | <p>In the Idris <a href="https://github.com/idris-lang/Idris-dev/blob/master/libs/effects/Effects.idr" rel="noreferrer">Effects</a> library effects are represented as</p>
<pre><code>||| This type is parameterised by:
||| + The return type of the computation.
||| + The input resource.
||| + The computation to run on th... | <haskell><generic-programming><agda><dependent-type><idris> | 2016-01-22 05:06:45 | HQ |
34,939,520 | While submit job with pyspark, how to access static files upload with --files argument? | <p>for example, i have a folder:</p>
<pre><code>/
- test.py
- test.yml
</code></pre>
<p>and the job is submited to spark cluster with:</p>
<p><code>gcloud beta dataproc jobs submit pyspark --files=test.yml "test.py"</code></p>
<p>in the <code>test.py</code>, I want to access the static file I uploaded.</p>
<pr... | <python><apache-spark><pyspark><google-cloud-dataproc> | 2016-01-22 05:19:56 | HQ |
34,940,425 | notifyDataSetChanged() NullPointerException | <p>i try to add onClick this button then create contact in database</p>
<p>Here is code i try to add it to main_fragment</p>
<pre><code> final Button addBtn = (Button) view.findViewById(R.id.btnadd);
addBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {... | <java><android><nullpointerexception> | 2016-01-22 06:34:14 | LQ_CLOSE |
34,940,696 | Array to string conversion | <p>I have view like this</p>
<pre><code> <?php foreach((array)$query as $row): ?>
<tr>
<td></td>
<td><?php echo $row->id_jeans ?></td>
<td><?php echo $row->nama ?></td>
<td><?php echo $row->ket ?></td>
<td><... | <php><codeigniter> | 2016-01-22 06:52:06 | LQ_CLOSE |
34,941,357 | How to get the ip address of a windows 7/8/8.1/10 phone programmatically | <p>i am new to this community & windows phone app development. I need to get the ip address of the network (wifi and mobile) to which the device is connected pro-grammatically on a windows phone app (C#). windows version 7/8/8.1/10 is required.</p>
| <c#><windows-phone-7><windows-phone-8><windows-phone-8.1><ip> | 2016-01-22 07:35:56 | LQ_CLOSE |
34,941,410 | FetchFailedException or MetadataFetchFailedException when processing big data set | <p>When I run the parsing code with 1 GB dataset it completes without any error. But, when I attempt 25 gb of data at a time I get below errors. I'm trying to understand how can I avoid below failures. Happy to hear any suggestions or ideas.</p>
<p>Differnt errors,</p>
<pre><code>org.apache.spark.shuffle.MetadataFetc... | <apache-spark><yarn> | 2016-01-22 07:39:22 | HQ |
34,941,546 | Is there a way to integrate git with Jupyter and have a version control over the notebooks created? | <p>I have hosted jupyterhub on a server and added many users into it. I want the users to have an option of version control for their work. So is there any way to add a git kernel or extension do have this done?</p>
| <git><github><jupyter><jupyter-notebook><jupyterhub> | 2016-01-22 07:48:53 | HQ |
34,942,075 | Building one web project breaks the compiled version of the second in solution | <p>I have a big solution with 30 projects of which 2 are web projects (MVC and WebAPI) with a bunch of background class library projects.</p>
<p>I have visual studio set up to host the web projects in IIS.</p>
<p>If I do a clean build, followed by a full build of the entire solution, then accessing both projects via ... | <c#><iis><visual-studio-2015><roslyn> | 2016-01-22 08:24:28 | HQ |
34,942,796 | Shell cmd "date" without new line in the end | <p>I want to output a line of date using date command, but it's end with a "\n" which I don't need it, currently, I use:</p>
<pre><code>echo -n `date +"[%m-%d %H:%M:%S]"`
</code></pre>
<p>or </p>
<pre><code>date +"[%m-%d %H:%M:%S]"|tr -d "\n"
</code></pre>
<p>Are there any built-in parameter for "date" to do that?<... | <shell><newline> | 2016-01-22 09:07:44 | HQ |
34,942,840 | Lint error "Do not treat position as fixed; only use immediately..." | <p>I'm contributing to open source library and got lint error <strong>"Do not treat position as fixed; only use immediately and call holder.getAdapterPosition() to look it up later"</strong> for this code:</p>
<pre><code> @Override public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
mAdap... | <android><lint><android-recyclerview> | 2016-01-22 09:09:57 | HQ |
34,943,241 | Finding columns in dataframe with specific number of values in R | <p>I have a dataframe(data.table) with over 3000 columns. I need to find out the columns in my dataframe that have only 2 and less than 2 values in them. I then after extracting those columns with 2 and less then 2 values I want to drop them out of the original data frame.
I illustrate as follows:
Original data frame<... | <r><data.table><multiple-columns> | 2016-01-22 09:31:18 | LQ_CLOSE |
34,943,550 | Realm Swift Models separate or not? | <p>I'm new to the world of iOS and Swift and am working on a new app which I want to use Realm for persistence. I have Entities in my code already which my Services access and populate for an HTTP API endpoint. </p>
<p>Now I want to persist certain Entities and wanted advice as to whether I should create new Realm spe... | <ios><swift><realm> | 2016-01-22 09:46:37 | HQ |
34,944,698 | Div odd and even | <p>I have a problem that i believe to have a simple fix I just don't know the fix myself.</p>
<p>Say i have some divs i.e.</p>
<pre><code><div class="box-1"></div>
<div class="box-2"></div>
<div class="box-3"></div>
<div class="box-4"></div>
</code></pre>
<p>etc.</p>
... | <html><css> | 2016-01-22 10:41:42 | HQ |
34,945,554 | How to set layer-wise learning rate in Tensorflow? | <p>I am wondering if there is a way that I can use different learning rate for different layers like what is in Caffe. I am trying to modify a pre-trained model and use it for other tasks. What I want is to speed up the training for new added layers and keep the trained layers at low learning rate in order to prevent t... | <python><deep-learning><tensorflow> | 2016-01-22 11:22:10 | HQ |
34,945,621 | WPF DataGrid......I want Display images in datagrid using WPF | I want to display images in DataGrid from Database and I am using WPF[enter image description here][1]
[1]: http://i.stack.imgur.com/bM0lP.png
I can retrive image name as u can see in Image Column ,but not able to display it | <c#><wpf><wpfdatagrid> | 2016-01-22 11:25:12 | LQ_EDIT |
34,947,072 | Macro for searching every cell in a particular column whether it ends with particular words defined in array | For instance, I want to see whether each cell from B10 till the end of the B colomn is ending with "@yahoo.com", "gmail.com", "rediff.com". If not then, it should color that particular cell | <vba><excel> | 2016-01-22 12:45:29 | LQ_EDIT |
34,947,425 | Regexp for mentions in html content | I'm trying to do a regexp for catch the mention in a html content.
I have a content like this:
<div data-user-id="@john">@john</div>
I want catch only the mention inside the divs...not inside the "".
I've done this regexp: http://regexr.com/3ckv8 ( /[^"]@[a-zA-Z0-9_]*[^"]/g )
That works almost fine...the p... | <html><regex> | 2016-01-22 13:05:05 | LQ_EDIT |
34,947,642 | Angular2 Observables -- Replay | <p>I am trying to set up an Angular2 Observable that will replay the latest value.</p>
<pre><code>import {Injectable} from 'angular2/core';
import {Observable} from 'rxjs/Observable';
@Injectable()
export class RefinementService {
refining: any;
private r: any;
constructor() {
this.refining = new ... | <typescript><angular><rxjs> | 2016-01-22 13:16:30 | HQ |
34,948,650 | How should I interpret "size" parameter in Doc2Vec function of gensim? | <p>I am using <code>Doc2Vec</code> function of <a href="https://radimrehurek.com/gensim/models/doc2vec.html" rel="noreferrer">gensim</a> in Python to convert a document to a vector.</p>
<p>An example of usage</p>
<p><code>model = Doc2Vec(documents, size=100, window=8, min_count=5, workers=4)</code></p>
<p>How should... | <python><gensim><word2vec> | 2016-01-22 14:07:52 | HQ |
34,949,625 | parsing a nested dictionary | I would like to parse the following nested dictionary for all URL entries. They should be written into a list. How can I do this?
{u'_id': ObjectId('56a22819ffd6f'),
u'books': [{u'id': {u'id': u'4311'},
u'link': {u'name': u'Operating Business',
u'url': u'http://ffff'}},
{u'id': {u'i... | <python><dictionary> | 2016-01-22 14:58:58 | LQ_EDIT |
34,950,009 | Chrome Extension "Refused to load the script because it violates the following Content Security Policy directive" | <p>I'm trying to create a Chrome extension, but none of my JS works. The console shows this error:</p>
<blockquote>
<p>Refused to load the script
'<a href="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js">https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js</a>'
because it violates... | <javascript><jquery><html><google-chrome><google-chrome-extension> | 2016-01-22 15:17:52 | HQ |
34,950,118 | Debug console not showing values for Swift + Objective-C | <p>My app uses Swift and a 3rd-party library in Objective-C. When my debugger steps into the Objective-C code, the debug console does not show the values of my Swift string correctly. Instead, it shows unable to read data. How can we resolve this issue?</p>
<p><a href="https://i.stack.imgur.com/I4C5V.png" rel="noref... | <objective-c><swift><swift2><xcode7> | 2016-01-22 15:24:29 | HQ |
34,950,322 | Use of semicolons in ES6 | <p>I was under the impression semicolons became obsolete with ES6. However, I came across this today:</p>
<p>Doesn't work:</p>
<pre><code>let i = 0
[0, 1, 2, 3, 4, 5, 6].forEach(item => console.log(item))
</code></pre>
<p>Works:</p>
<pre><code>let i = 0;
[0, 1, 2, 3, 4, 5, 6].forEach(item => console.log(ite... | <javascript><node.js><ecmascript-6> | 2016-01-22 15:33:15 | HQ |
34,950,767 | How to import .XML code style into IntelliJ Idea 15 | <p>I want to use a specific code style in my editor defined in an XML file, which looks something like this:</p>
<pre><code><code_scheme name="CustomStyleName">
<option name="JAVA_INDENT_OPTIONS">
<value>
...
</code></pre>
<p>How is it possible to import this style into IntelliJ Idea.
When I go to P... | <intellij-idea><configuration><intellij-15> | 2016-01-22 15:55:34 | HQ |
34,950,794 | Google Maps in React-Native (iOS) | <p>My goal is to display a Google Map in React Native. I have seen examples that use the Google Maps SDK with an UIMapView or a MapBox map, but that is not what I am looking for.</p>
<p>I currently have no errors. Here is my code:</p>
<p>index.ios.js</p>
<pre><code>'use strict';
import React, {
AppRegistry,
... | <ios><google-maps><google-maps-api-3><react-native> | 2016-01-22 15:57:07 | HQ |
34,950,867 | Vue.js : How to set a unique ID for each component instance? | <p>I want to create a component with Vue.js containing a label and an input. for example :</p>
<pre><code><label for="inputId">Label text</label>
<input id="inputId" type="text" />
</code></pre>
<p>How can I set a unique ID for each component instance?</p>
<p>Thank you.</p>
| <vue.js> | 2016-01-22 16:00:16 | HQ |
34,951,043 | Is it possible to combine if_not_exists and list_append in update_item | <p>I'm trying to use the <code>update_item</code> functionality for DynamoDB in boto3. </p>
<p>I'm struggling right now to update lists for items. I would like to create a new list if the list does not exist yet and otherwise append to the existing list. </p>
<p>Using an <code>UpdateExpression</code> of the form <cod... | <amazon-dynamodb><boto3> | 2016-01-22 16:09:47 | HQ |
34,951,110 | Robust endless loop for server written in Python | <p>I write a server which handles events and uncaught exceptions during handling the event must not terminate the server.</p>
<p>The server is a single non-threaded python process.</p>
<p>I want to terminate on these errors types:</p>
<ul>
<li>KeyboardInterrupt</li>
<li>MemoryError</li>
<li>...</li>
</ul>
<p>The li... | <python><exception-handling><server><infinite-loop><robustness> | 2016-01-22 16:12:43 | HQ |
34,951,448 | Issues iterating through JSON list in Python? | <p>I have a file with JSON data in it, like so:</p>
<pre><code>{
"Results": [
{"Id": "001",
"Name": "Bob",
"Items": {
"Cars": "1",
"Books": "3",
"Phones": "1"}
},
{"Id": "002",
"Name": "Tom",
... | <python><arrays><json><for-loop> | 2016-01-22 16:28:40 | HQ |
34,951,683 | MongoDB constantly high cpu usage | <p>According to docker container statistics, my mongo database consumes constantly between 250 and 350% cpu. That's pretty impressive since it's a single core system :P</p>
<p>The sad part is that this is my production instance and much more sad is that it has to live until the next prod-backup and thats 3.5 more hour... | <mongodb> | 2016-01-22 16:39:27 | HQ |
34,951,689 | Set build number for Jenkins workflow (pipeline) builds | <p>I am migrating jenkins-workflow job to new template based workflow job. Because the build number is used as part of the version of build artifacts the workflow produces I have to start build number of the new workflow with a number greater than the old workflow. Unfortunately 'Next Build Number' plugin does not w... | <jenkins><jenkins-workflow> | 2016-01-22 16:39:44 | HQ |
34,951,691 | Bash fail if any single command fails but still run all commands | <p>Probably a simple question but an elegant solution is not coming to mind. I would like to run a series of commands (each one is a test) and return 1 if any of them returned non-zero. Typically I would do something like:</p>
<pre><code>thingA && thingB && thingC
exit $?
</code></pre>
<p>However, t... | <bash> | 2016-01-22 16:39:53 | HQ |
34,951,713 | AspNet5 - Windows Authentication Get Group Name From Claims | <p>I have a asp.net5 project setup to use windows authentication. When I set a break point and look at the User, I see that there is a Claims array that contains Group SID's. How do I get the actual group name from the claims?</p>
<p>I am trying to limit the windows logged in user using the active directory groups tha... | <asp.net-core><asp.net-core-mvc> | 2016-01-22 16:41:10 | HQ |
34,951,812 | Why does -Xrs reduce performance | <p>From IBM:</p>
<blockquote>
<p><strong>-Xrs</strong></p>
<p>Disables signal handling in the JVM.</p>
<p><strong>-Xrs</strong></p>
<p>Setting -Xrs prevents the Java™ run time environment from handling any internally or externally generated signals such as SIGSEGV and SIGABRT. Any signals that are rai... | <java><jvm> | 2016-01-22 16:45:14 | HQ |
34,951,835 | how can i style my php code result? | i wrote this code and i want to style it with css. I added style to it but same result appears can any body help please .
<p>
<phpcode> <?php
$term = mysql_real_escape_string($_REQUEST['term']);
$servername = "localhost";
$username = "cp22084";
$password = "1O7FRlB4D567";
$dbname = "cp2208... | <php><css> | 2016-01-22 16:46:40 | LQ_EDIT |
34,952,039 | Is c# compatible with autocad lt? | <p>I've looked for this question several times but there's no answer. Lisp is a language that is exclusive to the full version of autocad, I wonder if c# is as well or if I can run c# on a lt version of autocad.</p>
| <c#><autocad> | 2016-01-22 16:56:55 | LQ_CLOSE |
34,952,530 | I am using Redux. Should I manage controlled input state in the Redux store or use setState at the component level? | <p>I have been trying to figure out the best way to manage my react forms. I have tried to use the onChange to fire an action and update my redux store with my form data. I have also tried creating local state and when my form gets submitted I trigger and action and update the redux store. </p>
<p>How should i manage ... | <reactjs><redux><redux-form> | 2016-01-22 17:22:25 | HQ |
34,952,661 | copying data with SSIS without recreating the tables | I want to copy data from db A to db B.
I created a saved SSIS package successfully and data was indeed copied from A to B. Now I want to automate the process but when I'm launching the saved .dtsx file I get this error:
"Error: Executing the query "CREATE TABLE ... failed with the following error: "There is alrea... | <sql-server-2008><ssis> | 2016-01-22 17:29:47 | LQ_EDIT |
34,952,792 | How do I structure authenticated queries with GraphQL? | <p>I was thinking of writing an API that does the following things:</p>
<ul>
<li>Sign-up and sign-in users which provide the user with an authentication token</li>
<li>Create maps (data example: <code>{ name: “Quotes”, attributes: [“quote”, “author"] }</code>)</li>
<li>Create map items (data example: <code>{ quote: ".... | <api><authentication><graphql> | 2016-01-22 17:37:34 | HQ |
34,952,811 | Is there a definitive *nix command line tool for inspecting protocol buffers? | <p>I'm looking for a command-line utility that will, at a minimum, render binary protobuf data in human-readable form. Filtering and selection options (along the lines of <code>cut</code> for text) would be nice, but the primary object is to make the data visible for debugging purposes.</p>
<p>If there is no definiti... | <unix><command-line-interface><protocol-buffers> | 2016-01-22 17:38:46 | HQ |
34,952,984 | React native flexbox - how to do percentages || columns || responsive || grid etc | <p>After working with react native on iOS for the last couple of weeks, I seem to have come across some shortcomings of flex styling... Particularly when it comes to "responsive" behavior. </p>
<p>For instance, lets say you want to create a view that contains cards (the metadata for these cards comes from an API). You... | <javascript><css><reactjs><flexbox><react-native> | 2016-01-22 17:51:47 | HQ |
34,953,398 | Where is this image being generated on my webpage? | <p>I can't figure out where the chain link image is coming from on my blogger page (<a href="http://jareds94-wine.blogspot.com" rel="nofollow">http://jareds94-wine.blogspot.com</a>). Using Google Chrome's inspect feature I can see that it has something to do with hentry::before but it's not coming from the CSS so it mu... | <javascript><html><css> | 2016-01-22 18:17:26 | LQ_CLOSE |
34,953,711 | Unwrap inner type when enum variant is known | <p>I have this enum type:</p>
<pre><code>enum Animal {
Dog(i32),
Cat(u8),
}
</code></pre>
<p>Now I have a function that takes this type as parameter. I <em>know</em> (for some reason) that the input is always a <code>Cat</code>. I want to achieve this:</p>
<pre><code>fn count_legs_of_cat(animal: Animal) ->... | <enums><rust> | 2016-01-22 18:38:35 | HQ |
34,954,032 | How do i fix success is not a function error | <p>I'm getting the following error in my console
Uncaught TypeError: success is not a function</p>
<p>The error gets caught in Chrome browser console here:
<strong>success();</strong></p>
<p>I figured success is not properly defined or is in the wrong area. The following JavaScript that I'm using is:</p>
<pre><code>... | <javascript> | 2016-01-22 19:01:54 | LQ_CLOSE |
34,954,630 | Java - Read line using InputStream | <p>I use InputStream to read some data, so I want to read characters until new line or '\n'. </p>
| <java><inputstream> | 2016-01-22 19:40:40 | HQ |
34,954,726 | How do you add/remove to a redux store generated with normalizr? | <p>Looking the examples from the <a href="https://github.com/gaearon/normalizr">README</a>:</p>
<p>Given the "bad" structure:</p>
<pre><code>[{
id: 1,
title: 'Some Article',
author: {
id: 1,
name: 'Dan'
}
}, {
id: 2,
title: 'Other Article',
author: {
id: 1,
name: 'Dan'
}
}]
</code></pr... | <javascript><reactjs><redux><normalizr> | 2016-01-22 19:47:26 | HQ |
34,955,820 | Exclude Java package from dependency jar | <p>I want to use jar from third party vendor. But in this jar I have old version of Java package <code>org.osgi.framework</code> I need to find some way to exclude the package from the main project. Something like this:</p>
<pre><code><dependency>
<groupId>com.ibm</groupId>
<artifa... | <maven><jar><dependencies><maven-3> | 2016-01-22 20:57:05 | HQ |
34,955,987 | Pass data through navigation back button | <p>I am in this situation:</p>
<p><a href="https://i.stack.imgur.com/si4UZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/si4UZ.png" alt="img1"></a></p>
<p>I am passing 4 array from Progress Table to Detail Exercise using prepare for segue and it works fine! The problem begin when I try to pass the data ba... | <ios><swift><uinavigationcontroller><pass-data> | 2016-01-22 21:08:40 | HQ |
34,956,826 | Excel help - how many times number occurs in other numbers | So i have to make something to my job, I have like different values of meal vouchers and I want to type price of persons payout, and i want to know how many of each meal vouchers i have to give them. here is picture for better understanding.
**So in the picture there is example, person gets payout 64€ and how many of ... | <excel><excel-formula> | 2016-01-22 22:14:14 | LQ_EDIT |
34,957,345 | Passing value from ViewController to NSObject in Xcode | I need to pass value from a ViewController to NSObject as soon as the view loaded using Xcode with Objective c.
I am using the code below but the value is null.
-(void)viewDidAppear:(BOOL)animated
{
MyHomeModelNSObject *nsOb;
nsOb.myString = self.userName.text;
}
The above cod... | <objective-c><nsobject> | 2016-01-22 22:58:26 | LQ_EDIT |
34,957,575 | var result = string.split('').forEach(...); Doesn't work in JavaScript | <p>In Javascript, why is result below <code>undefined</code>? </p>
<pre><code>var x = "happy";
var result = x.split('').forEach(function(val,index,array){
array[index] = "0";
});
console.log(result);
</code></pre>
<p>The output is:</p>
<pre><code>undefined
</code></pre>
| <javascript> | 2016-01-22 23:19:47 | LQ_CLOSE |
34,957,790 | Use plotly offline to generate graphs as images | <p>I am working with plotly offline and am able to generate an html file using</p>
<pre><code>plotly.offline.plot({"data": data, "layout": layout})
</code></pre>
<p>It works great. The graph is generated correctly and the html file gets saved to my current directory. </p>
<p>What I want, though is, using plotly offl... | <python><html><image><python-2.7><plotly> | 2016-01-22 23:41:51 | HQ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.