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 |
|---|---|---|---|---|---|
37,373,421 | Lexicographic Order in C | <p>I am working on strings in C and I would like to ask What exactly Lexicographic Order is and how is being used in C. Which is the best way to compare 2 strings . I have read about strcmp and it's lexicographic comparison but I am confused.</p>
| <c><string><comparison><lexicographic> | 2016-05-22 10:54:51 | LQ_CLOSE |
37,373,450 | Sample Projects about the backup of Sqlite file and photos on Google Drive programmatically in Android | <p>I am writting an app with an instant messenger function. Users would write text or share images in the IM function. The <strong>text data and file name of images are stored in the sqlite file while the images are stored in the device</strong>.</p>
<p>Since my server will not keep the data, the <strong>user would no... | <android><sqlite><google-drive-api><google-drive-android-api> | 2016-05-22 10:58:49 | HQ |
37,373,825 | how remove error while using variable "la" in scatter chart? | \\GPS coordinates obtain
@Override
public void onLocationChanged(Location location) {
location.getLatitude();
location.getLongitude();
location.getAltitude();
location.getAccuracy();
double la,lo,al,aq;
... | <java><android><gps><double><scatter-plot> | 2016-05-22 11:37:30 | LQ_EDIT |
37,374,163 | Why is docker build taking so long to run? | <p>I'm running docker build and it's taking an awfully long time to run. Infact, it doesn't complete and I have to CTRL + C to quit.</p>
<p>Last night things were working fine. When I returned to the computer and tried to rebuild it started acting strange.</p>
<p>Here's my command:</p>
<pre><code>docker build -t myw... | <docker><dockerfile> | 2016-05-22 12:07:51 | HQ |
37,374,310 | How critical is dumb-init for Docker? | <p><em>I hope that this question will not be marked as <code>primarily opinion-based</code>, but that there is an objective answer to it.</em></p>
<p>I have read <a href="https://engineeringblog.yelp.com/2016/01/dumb-init-an-init-for-docker.html">Introducing dumb-init, an init system for Docker containers</a>, which e... | <docker><init> | 2016-05-22 12:21:34 | HQ |
37,374,983 | Get data points from Seaborn distplot | <p>I use </p>
<pre><code>sns.distplot
</code></pre>
<p>to plot a univariate distribution of observations. Still, I need not only the chart, but also the data points. How do I get the data points from matplotlib Axes (returned by distplot)?</p>
| <python><matplotlib><seaborn> | 2016-05-22 13:27:47 | HQ |
37,375,532 | Mailgun Domain not found: abc.com | <p>I am trying to setup emails with my own website. Let's say the domain name is <code>abc.com</code>.</p>
<p>The nameserver in use is digital ocean and I also have a gmail account linked to the same (say using <code>contact@abc.com</code>).</p>
<p>While setting up things with mailgun, I used <code>mg.abc.com</code> ... | <digital-ocean><mailgun> | 2016-05-22 14:22:03 | HQ |
37,375,625 | How to animate toggling of table rows? | <p>I want to animate the appearance and disappearance of table rows.</p>
<p>First of all I tried using a CSS <em>transition</em>, but it did nothing due to the change of the <code>display</code> property.</p>
<p>So I used an <em>animation</em>, which works as expected.</p>
<p>The problem is, <strong>the full height ... | <css><css-transitions><css-animations> | 2016-05-22 14:30:44 | HQ |
37,375,895 | Split data from ethernet [C] | PLS I need split data from ethernet. Data is in this format:
ZMXXX,angle*CHCK
where angle is number. For example: `ZMXXX,900*5A`
And I need separated ZMXXX,900 and 5A.
I write this function.
void split_data(char analyze[])
{
char *words[5]; uint8_t i=0;
words[i] = strtok(analy... | <c> | 2016-05-22 14:58:47 | LQ_EDIT |
37,375,927 | Objective - C -> Swift | <p>please help I'm new in swift and i can't "translate" code from obj-c to swift. Some literature or any help, please. Or any analogies to INSTANCETYPE in swift</p>
<pre><code>@implementation Message
+ (instancetype)messageWithString:(NSString *)message
{
return [Message messageWithString:message image:nil];
}
+... | <objective-c><swift><instancetype> | 2016-05-22 15:01:40 | LQ_CLOSE |
37,376,033 | get random char in a specific range in java | <p>Am designing wumpus hunting program using java. Where i can include three gold, 3 pits, one wumpus, one player. and the position of the game item should be random generator.How to generate random characters in 2d array .
How to specify the range for the characters in java.
Thanks.</p>
| <java><arrays><random><2d> | 2016-05-22 15:12:40 | LQ_CLOSE |
37,376,442 | Where does DOM manipulation belong in Angular 2? | <p>In Angular 1 all DOM manipulation should be done in directives to ensure proper testability, but what about Angular 2? How has this changed?</p>
<p>I've been searching for good articles or any information at all about where to put DOM manipulation and how to think when doing it, but I come up empty every time. </p>... | <angular><dom-manipulation> | 2016-05-22 15:54:03 | HQ |
37,376,509 | Work with elm and select | <p>I try to understand how elm works with a custom example.</p>
<pre><code>durationOption duration =
option [value (toString duration) ] [ text (toString duration)]
view : Model -> Html Msg
view model =
Html.div []
[ h2 [] [ text "Month selector"]
, select []
(List.map durationOption [1..12]) ... | <elm> | 2016-05-22 16:01:07 | HQ |
37,376,698 | What is a %2s and %2d command in C, and when i use it? | <p>I would like to know why i use %2s here:</p>
<pre><code>char card_name[3];
puts ("Enter the card name: ");
scanf ("%2s, card_name);
</code></pre>
<p>And why i use %2d:</p>
<pre><code>int n = 0;
scanf ("%2d", &n);
printf ("-> %d\n", n);
</code></pre>
| <c> | 2016-05-22 16:20:33 | LQ_CLOSE |
37,376,880 | .NET CLI how to run app after publish on Linux | <p>I spent ~4 hours investigation and still can't find out how to run published application ( <code>dotnet publish</code> )</p>
<p>Now I can download sources to my remote machine, then call <code>dotnet build</code> and <code>dotnet run</code> - then my app runs as intended. But I want to publish just DLL's (or *.so ?... | <asp.net-core-mvc><.net-core><.net-core-rc2> | 2016-05-22 16:37:07 | HQ |
37,376,922 | writing the data in text file while converting it to csv with python | I am very new withh python. I have a .txt file and want to convert it to a .csv file with the format i was told but could not manage to accomplish. a hand can be useful for it. i am going to explain it with screenshots.
[I have a txt file with the name of bip.txt. and the data inside of it is:][1]
[and i want t... | <python><csv><text-files> | 2016-05-22 16:41:00 | LQ_EDIT |
37,377,050 | Where to place the aria-controls attribute in my tabs markup | <p>I'm setting up a tabbed content section in my page using a script that follows the following syntax:</p>
<pre><code><!-- Clickable tab links -->
<ul class="js-tablist">
<li id="tab1" class="js-tab active"><a href="#tabpanel1">Tab 1</a></li>
<li id="tab2" class="js-tab"... | <html><tabs><accessibility><wai-aria> | 2016-05-22 16:53:12 | HQ |
37,377,512 | What happens when an executor is lost? | <p>I get these messages:</p>
<pre><code>16/05/22 13:33:53 ERROR YarnScheduler: Lost executor 61 on <host>: Executor heartbeat timed out after 134828 ms
16/05/22 13:33:53 WARN TaskSetManager: Lost task 25.0 in stage 12.0 (TID 2214, <host>): ExecutorLostFailure (executor 61 lost)
</code></pre>
<p>Will a rep... | <apache-spark> | 2016-05-22 17:39:12 | HQ |
37,377,737 | Cancelling previous async action using redux-thunk | <p>I am building a React/Redux app using the redux-thunk middleware to create and handle Ajax requests. I have a particular thunk that is fired pretty often, and I would like to cancel any previously started Ajax requests before firing a new one. Is this possible?</p>
| <reactjs><redux><redux-thunk> | 2016-05-22 18:01:48 | HQ |
37,377,832 | im trying to echo an php code with mysqli inside an html eho | im trying to echo my php while loop inside a html echo
basically echo inside echo. can someone help me? is that possible?
here is my entire code:
<?php
session_start();
require 'config.php';
if (@$_SESSION['username']) {
$query = "SELECT * FROM `crew_info`";
$quer... | <php><html><mysql><echo> | 2016-05-22 18:11:05 | LQ_EDIT |
37,377,932 | Why doesn't this code work properly???I mean,why does it not show anything when I run it? | <p>Is there any problem in overloading methods?I really think it should work but it doesn't.<hr/></p>
<pre><code>#include <iostream>
#include <string>
#include <vector>
using namespace std;
class BIGINT
{
vector<int> big_number;
public:
BIGINT(){}
BIGINT(int);
BIGINT(string);
... | <c++><overloading> | 2016-05-22 18:19:23 | LQ_CLOSE |
37,378,001 | Get the process name by pid | <p>I have a python program. It stores a variable called "pid" with a given pid of a process. First of all I need to check that the process which owns this pid number is really the process I'm looking for and if it is I need to kill it from python. So first I need to check somehow that the name of the process is for exa... | <python><linux> | 2016-05-22 18:26:52 | LQ_CLOSE |
37,378,019 | onDestroy() doesn't work | <p>when i run my app,at the start, all checkbox are select in <code>list view</code>...so i must unchecked before all checkbox....i don't know why.....
Maybe i wrong to write <code>onDestroy</code> method....</p>
<p>Please help me!</p>
<p>i show you my code...
THANKS IN ADVANCE EVERYBODY!</p>
<p>ADAPTER:</p>
<pre><... | <android><listview><android-studio><checkbox> | 2016-05-22 18:29:05 | LQ_CLOSE |
37,378,704 | Python - How to get "out" of a while loop? | I'm trying to make a login menu. I've created a user/pass system that is changeable. But I want to sorta get out of the loop, to ask them to input their username/password again?
| <python><loops><while-loop> | 2016-05-22 19:28:11 | LQ_EDIT |
37,378,808 | How to properly use NDK-Build in Android Studio 2.2 Preview 1 | <p><strong>Android Studio 2.2 Preview 1</strong> has a new external ndk build feature, but from <code>app/build.gradle</code> snippet shown in official blog post it's not clear at all how to set additional ndk build parameters which <code>Application.mk</code> file usually contains <a href="https://i.stack.imgur.com/bj... | <android><android-ndk><java-native-interface><android-studio-2.2> | 2016-05-22 19:37:44 | HQ |
37,379,101 | How to convert String to GString and replace placeholder in Groovy? | <p>I want to read a String from database and replace the placeholder by converting it to a GString. Can I do this with Eval? Any other ideas?</p>
<pre><code>String stringFromDatabase = 'Hello ${name}!'
String name = 'world'
assert 'Hello world!'== TODO
</code></pre>
| <groovy> | 2016-05-22 20:04:09 | HQ |
37,379,180 | Bulk insert in MongoDB using mongoose | <p>I currently have a collection in Mongodb say "Collection1".
I have the following array of objects that need to be into inserted into MongoDB. I am using Mongoose API. For now, I am iterating through the array and inserting each of them into mongo.
This is ok for now, but will be a problem when the data is too big.
I... | <javascript><node.js><mongodb><mongoose><bulkinsert> | 2016-05-22 20:13:33 | HQ |
37,380,088 | How can I code something that can find the title on a website | <p>How can I code something that goes to a website and then looks for the title tag then shows that data?</p>
| <html><web-crawler> | 2016-05-22 21:59:30 | LQ_CLOSE |
37,380,337 | HttpClient keeps receiving bad request | <p>I'm having a hard time resolving my Bad Request responses from a REST api when I'm creating a client using C#. I tested the REST api using Fiddler 2 and executing it there, but when I'm creating the same thing programmatically I get 400 response. Here is my Fiddler composer test:</p>
<p>URL:</p>
<pre><code>https... | <c#><.net> | 2016-05-22 22:30:47 | HQ |
37,381,101 | mixed numbers programming not working | <pre><code>def main():
num = int(input("Enter the Numerator:"))
den = int(input("Enter the Denominator:"))
whole_num = num // den
fract_num = num % den
print('The mixed number is {} and {}/{}', format (whole_num, fract_num,den))
main ()
</code></pre>
<p>This is currently how I have my program written, so that when ... | <python> | 2016-05-23 00:36:04 | LQ_CLOSE |
37,381,494 | Why this InputStreamReader throws an exception | <p>When I compile this code in eclipse ,it throws a NullPointerException,but the code in the book is written in this way.Here is this code.</p>
<pre><code> InputStream in = ClassLoader
.getSystemResourceAsStream("javagames/filesandres/Test1.txt");
try {
InputStreamReader reader =new InputStrea... | <java><eclipse><io> | 2016-05-23 01:39:53 | LQ_CLOSE |
37,383,777 | How to generate numeric Numbers? | when ever i call one method I need to generate random Numbers.like `test 1` next time `test 2`like that. If i use below code it is generating different numbers.
`NSInteger randomNumber = arc4random() % 16;`.
But I need one after another please help me. | <ios><nsstring> | 2016-05-23 06:18:21 | LQ_EDIT |
37,384,500 | How can I Draw rectangle in programmatically | <p>How can I draw rectangle(Oblique projection view) in programmatically(python) by giving height, width and depth.</p>
| <python><math><diagram><projection> | 2016-05-23 07:01:40 | LQ_CLOSE |
37,385,648 | What to consider when finding a good editor for Javascript | <p>Which features should I consider when finding a good editor for Javascript?</p>
<p>Are there any standard set of features the major development companies expect from an editor when fielded for programmers use?</p>
| <javascript><html><debugging><testing><editor> | 2016-05-23 08:01:59 | LQ_CLOSE |
37,386,917 | terminating applicaton through python script | I was using Python (Popen and subprocess modules) to open applications and automate some stuff. But, I do not know how to close using one line command/script. It should not take more than one line.
e.g. I am using
>>>import subprocess
>>>subprocess.Popen(['c:\\windows\\system32\\notepad.exe','C:\\file1.txt']) ... | <python><subprocess><taskkill> | 2016-05-23 09:07:46 | LQ_EDIT |
37,388,384 | Finding the visitors network ip adress | Im interested in finding the visitors ip similar to how www.ipchicken.com does it, can someone nice out there tell me how to do this and send me a simple code?
Have a great day, love from Sweden! | <html> | 2016-05-23 10:18:45 | LQ_EDIT |
37,391,408 | Error 'Cannot Convert double to int' | <p>I have what seems to me as a weird issue with my code. I have a method that performs a simple query and returns the result. I'm trying to return the value as a double but I get an error:</p>
<blockquote>
<p>CS0266 Cannot implicitly convert type 'double' to 'int'. An explicit
conversion exists (are you missin... | <c#><compiler-errors><type-conversion> | 2016-05-23 12:46:18 | LQ_CLOSE |
37,392,896 | external link does not work in IIS express. How do I get links to reach internet? | Ok so when you click a link in my web app it just adds to the URL to the end. like so "http://localhost:8080/http//:www.youtube.com". I'm using visual studio .netto make web rest APIs. The web app lunches on IIS express 10. the home page URL is "http://localhost:8080/index.html". | <c#><html><.net><visual-studio><iis-express> | 2016-05-23 13:52:43 | LQ_EDIT |
37,393,494 | I want to change price tier from basic to standard in Azure | I want to change price tier from basic to standard in Azure and app having in two different location | <azure><azure-web-sites> | 2016-05-23 14:18:16 | LQ_EDIT |
37,393,747 | Get html color code for color saved in `Color.xml` in Android | <p>All the methods from <code>android.graphics.Color</code> seem to return ints and not strings. Is there a way to return the string that represents the Html code for a color saved in <code>colors.xml</code> in Android?</p>
| <android><android-layout> | 2016-05-23 14:29:47 | LQ_CLOSE |
37,394,567 | splitting a full url into parts | <p>I'm trying to split a url into parts so that I can work with these separately. </p>
<p>For e.g. the url:</p>
<p><code>'https://api.somedomain.co.uk/api/addresses?postcode=XXSDF&houseNo=34'</code></p>
<p>How can I split this into:
1) the source/origin (i.e. protocol + subdomain + domain)
2) path '/api/addresse... | <python><regex> | 2016-05-23 15:10:10 | LQ_CLOSE |
37,394,869 | java SimpleDateFormat giving wrong result | <p>I am using java.text.SimpleDateFormat in Scala to convert string to date.</p>
<pre><code>val isdf = new SimpleDateFormat("dd/MM/yyyy")
isdf.parse("01/22/2016") gives Sun Oct 01 00:00:00 UTC 2017
</code></pre>
<p>How to fix this ? Are there any alternative?</p>
| <java><scala><date><simpledateformat> | 2016-05-23 15:25:04 | LQ_CLOSE |
37,395,989 | transfrom code from php to javascript | How to transform the following code from php to javascript?
$str = '';
for ($i = 0; $i < 256; $i++) {
$str .= chr($i);
}
I know String.fromCharCode() in javascript is similar to chr() in php, but it seems fromCharCode(n) is diffenent from chr(n) when n greater than 127.
| <javascript><php><character-encoding> | 2016-05-23 16:23:28 | LQ_EDIT |
37,396,185 | Need a regex expert | That string
\[\color{Blue}{4} \times 2 \times 5 \times \color{Blue}{25} = \underbrace{\color{Blue}{4} \times \color{Blue}{25}}_{100} \times 5 \times 2 = \underbrace{100 \times 5}_{500} \times 2 = 500 \times 2 = 1\ 000\]
I want to match remove all string like `\color{*}`
I think I am not very far...
https:... | <regex> | 2016-05-23 16:35:22 | LQ_EDIT |
37,396,970 | Xamp is not start Apache, Mysql is working fine | I was working on my PHP project yesterday and it was working fine, but today morning after the restart xamp is not starting Apache for some reason. Can someone suggest how can I work around it:
Error: Apache shutdown unexpectedly.
1:17:04 PM [Apache] This may be due to a blocked port, missing dependencies... | <php><mysql><apache><xampp> | 2016-05-23 17:21:47 | LQ_EDIT |
37,397,588 | Multiple where in one mysql query | I want to get all results which these queries give with one query;
1- $query = mysql_query("select * from table where view='1'");
2- $query = mysql_query("select * from table where view='2'");
3- $query = mysql_query("select * from table where view='3'");
4- $query = mysql_query("select * from tab... | <php><mysql><sql><select> | 2016-05-23 18:01:50 | LQ_EDIT |
37,397,726 | How do i create the dots used for slides,with only html and css? | <p>how do i create the dots used in navigation,slides.Using only Html and CSS.</p>
<p>Like this one: <a href="http://i.stack.imgur.com/qocTe.jpg" rel="nofollow">http://i.stack.imgur.com/qocTe.jpg</a></p>
<p>Thanks in advance.</p>
| <html><css> | 2016-05-23 18:09:34 | LQ_CLOSE |
37,397,776 | python - updated dictionary with same key value pair | <p>I've seem to hit a wall with dictionaries in python.
Is it possible to update a dictionary with the same key value pair.
Whenever I try to update my dictionary with the same key value pair, the update action is not performed, it sort of ignores the pair to update because of duplication. Is there some limitation to ... | <python><python-2.7><python-3.x> | 2016-05-23 18:12:32 | LQ_CLOSE |
37,398,549 | Convert SQl To Dcotrine in symfony | i have 3 table and 2 relation, one table is many to many and another table is one to many relation, then i create a query in mysql and is ok but i`m not converting to dql or querybuilder in symfony, please help me.
sample query is
select * FROM `resturant` LEFT JOIN `food`.`food` ON `resturant`.`id` = `food`.`... | <php><mysql><symfony><doctrine> | 2016-05-23 18:59:50 | LQ_EDIT |
37,399,828 | cannot assign to value 'colorTouched' is a 'let' constant | <p>beginner of swift, follow the book and get the error ""</p>
<p>here is the code:</p>
<pre><code>@IBAction func buttonTouched(sender : UIButton) {
var buttonTag : Int = sender.tag
if let colorTouched = ButtonColor(rawValue: buttonTag) {
if currentPlayer == .Computer {
return
}
... | <ios><swift><uibutton><sender> | 2016-05-23 20:20:11 | LQ_CLOSE |
37,401,529 | IE doesn't display some images | <p>I have a few ".jpg" images on my website. They all are displayed correctly in every browser... except Internet Explorer. In IE, most of them are displayed, but there are also images that aren't displayed and there's a black-white cross instead of them. It's not a problem with wrong path because, as I said, other bro... | <html><internet-explorer> | 2016-05-23 22:26:14 | LQ_CLOSE |
37,402,467 | Core dumped trying to compile C++ Structure | When I try to run the code it asks for the first input, but next it show a core dumped.
And I have some doubts, how can I correct that fgets warnings?
And please if this code can be optimized please tell me, I`m trying to make
efficient code :D
Compile with these:
g++ -O2 -Wall Proy2.cpp -o Proy2
Code:
... | <c++><pointers><struct> | 2016-05-24 00:07:23 | LQ_EDIT |
37,402,563 | cocoapods configuration AFnetworking ios | [I am about to install cocoapods and AFNetworking I have got this error I always try everything of my PODFILE ( workspace ' path / to / AFService.xcworkspace '
source ' https://github.com/CocoaPods/Specs.git '
platform: ios, ' 8.0 '
target ' AFService ' do
pod ' AFNetworking ' ' ~ > 3.0'
end)][1]
[1]... | <ios><afnetworking><cocoapods> | 2016-05-24 00:18:57 | LQ_EDIT |
37,405,274 | Java Regular Expression to mask sensitive data in access log | "PUT /v1/users/me/change_password.json?api_key=pDY0VK7YFv9btw6pasXZ¤t_password=Qwerty123&password=Qwerty1234&password_confirmation=Qwerty1234 HTTP/1.1" 200 -
I need regular expression which replace password ,current_password and password_confirmation values with text Filtered.
Required Output
"PUT /v1/us... | <java> | 2016-05-24 05:44:26 | LQ_EDIT |
37,405,959 | Async in Android Studio | <p><a href="http://i.stack.imgur.com/qfKYL.png" rel="nofollow">enter image description here</a></p>
<p>Hi everyone, I tried to insert an image from Internet to Android Studio using Async. But seem like some problem happened and I can not call the runOnUIThread to enable the function for Async. How can I fix it? Thank ... | <android><asynchronous> | 2016-05-24 06:31:13 | LQ_CLOSE |
37,406,385 | Angular scope doesn't update even with apply() | <p>I have a problem with Angular's scope:</p>
<p>Init Angular:</p>
<pre><code><html lang="en" ng-app="ant101App" ng-controller="regFormController as reg">
</code></pre>
<p>Script:</p>
<pre><code>script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script>... | <javascript><angularjs> | 2016-05-24 06:55:12 | LQ_CLOSE |
37,407,765 | Oracle 11g: ow to INSERT a row in a table if this row doesn't already exist in same table, in PL/SQL (oracle) | please guide how to INSERT a row in a table if this row doesn't already exist in same table, in PL/SQL (oracle)?
I want something like this.
insert into note (note_id, user_book_id, course_user_id, book_edition_id, book_id, role_type_id, page_id, book_page_number, xcoord, ycoord,
width, h... | <sql><oracle><oracle11g><not-exists> | 2016-05-24 08:08:36 | LQ_EDIT |
37,409,633 | wirdest eror in c# page | the c# code:
using (c)
{
c.Open();
using (SqlCommand command = new SqlCommand("DELETE FROM [User] WHERE Username like @username", c))
{
command.Parameters.AddWithValue("@username", txtuser.Text);
command.ExecuteNonQuery();
... | <c#><sql-server> | 2016-05-24 09:34:08 | LQ_EDIT |
37,410,008 | Is it possible to change the parameters of onCreate() in a fragment | <p>Is it possible to change the parameters of onCreate() in a fragment (If We can Then will it be called in the beginning similar to a normal onCreate() Method.</p>
| <android> | 2016-05-24 09:49:06 | LQ_CLOSE |
37,411,788 | How to make if statement to check whether a R package is installed or not in R | <p>I am trying to make a personal R-function.</p>
<p>I want add if statement which can check whether essential R packages are installed.</p>
<p>I used exist() function but its purpose is to examine existence of an object
so it didn't work.</p>
<p>Is there a basic command for checking existence of a specific R-packag... | <r> | 2016-05-24 11:06:49 | LQ_CLOSE |
37,413,219 | Python 3.5 Extract Digits from Column into New Column | <p>I am trying to extract the last 5 digits of a number in a columun in a CSV and add it as an additional column. There are more columns in my actual data, and there are thousands of rows of numbers. For example:</p>
<pre><code>Column 1, Column 2, Column 3, Column 4
3333333, 1234567, 4444444, 5555555
7777777, 765432... | <python><csv><extract><digit> | 2016-05-24 12:12:07 | LQ_CLOSE |
37,413,518 | how to add <!DOCTYPE> to the starting of an xml file using python2.5? | <p>I have an xml file as follows:</p>
<pre><code> <sample>
<attributes> xyz
</attributes>
</sample>
</code></pre>
<p>I want to add to the starting of xml:</p>
<pre><code> <!DOCTYPE sample SYSTEM "location/sample.dtd">
</code></pre>
<p>I have to use python 2.5 only. So, can anybod... | <python><xml><dtd> | 2016-05-24 12:25:36 | LQ_CLOSE |
37,414,559 | Recommendable UI framework for phonegap? | <p>Before posting my question here I have looked across many posts but nothing relevant found. I'm developing an application for both Iphone and Andriod using Phonegap.</p>
<p>I came across with several UI related frameworks :</p>
<p>1.Framework 7
2.Ionic
3.Twitter Bootstrap
4.jQuery Mobile
5.Materializecss
6.jQuery ... | <twitter-bootstrap><cordova><ionic-framework><phonegap-plugins><html-framework-7> | 2016-05-24 13:06:36 | LQ_CLOSE |
37,414,897 | UI design - simple struct - how to implement | <p>How can I create the next (and simple) structure?
Is it just a tableView? or is it require assets ?
(I'm asking about the squares only, not about the text and icon at each row)
<a href="https://i.stack.imgur.com/O9vKf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O9vKf.png" alt="rounded square w... | <ios> | 2016-05-24 13:21:00 | LQ_CLOSE |
37,417,794 | What are best practises with Django to handle big dropdown list? | Problem is simple, for fields based on foreign key dropdowns generated some dropdowns, eventually those can become very big and it is difficult to select needed value for end user.(currently we use crispy forms for auto formating.)
I subdivided the values to categories but I do not like this solution because it fo... | <django> | 2016-05-24 15:22:48 | LQ_EDIT |
37,419,471 | javamail getcontent() dosn't work | this makes me crazy.
I can't see the contents of the message.
The application exploits in the getcontent() method.
Please, tell me what's wrong with my code ??
sorry my english. TIA
here is the code
@Override
protected Void doInBackground(Void... params) {
... | <java><android><javamail> | 2016-05-24 16:45:38 | LQ_EDIT |
37,422,069 | retrive data from three table in sqlserver | Question : Concatenate values from multiple coloumns of 3 tables and display in one coloumn.HERE date field is datetime.
I have 3 tables:
table1
date amt1
-----------------
1-1-2016 111
2-2-2016 222
3-4-2016 111
table2:
date amt2
-----------------
1-1-2016 101
2-2-2016 333
... | <sql-server> | 2016-05-24 19:17:28 | LQ_EDIT |
37,423,044 | R: readr: is it possible to read HTML tables using this package | <p>I want to know if we can reach html tables using readr package with the url of the page where html table is published. For example, I want to import table on the <a href="http://sports.yahoo.com/nfl/stats/byteam?group=Offense&cat=Total&conference=NFL&year=season_2010&sort=530&old_category=Total&... | <r><readr> | 2016-05-24 20:15:28 | LQ_CLOSE |
37,423,372 | Changing color of a element in HTML Based on MYSQL . | <p>So I will try to give you as much detail as possible so you understand what I'm thinking.
I am working on home automation for my home. I have a web interface and now I want to add a temperature feed to it. But that too in the form of a thermometer or in form of bars. For eg if temp. is above 40 C then color should b... | <html><mysql><ajax> | 2016-05-24 20:34:52 | LQ_CLOSE |
37,425,180 | lambda expression as a parameter c# | I have a collection which I am looping using Parallel foreach. I would like to check each single item in the collection before I pass it on to the loop. I was trying to do something like this, but it gives an error.
Any thoughts or suggestions?
Parallel.ForEach(testCollection, (perform a check on each item in t... | <c#><lambda><parallel.foreach> | 2016-05-24 22:50:55 | LQ_EDIT |
37,426,593 | I am trying to look through an array and pick out certain strings - JAVA | So, We have to do complete a task for my AP Computer Science class and I figured out the base of the code but I am stuck on a part. Here is the link to complete the assignment if you would like to try it out.
LINK: http://codingbat.com/prob/p254067
Here is my code so far:
public int numVworthy(String... | <java><arrays><string> | 2016-05-25 01:54:22 | LQ_EDIT |
37,427,332 | Unfamiliar operator in C# += | what does this operator do +=.It seems difficult to find this += operator online
Though it seems to suggest it has something to do with delegates.Can someone explain a bit more.
Anyway this below is the c# statement that i came across.
this.LineSelected += new LineSelectionHandler(AdvancedReceiptVi... | <c#><event-handling> | 2016-05-25 03:32:31 | LQ_EDIT |
37,431,776 | ON CLICK OPEN THREE TABS IN WEB BROWSER | Guys i have just been told to create a link that opens three tabs and i cant figure it out. the javascript i created opens two tabs only. here is the code.
<div id="g_image2" style="position:absolute; overflow:hidden; left:760px; top:32px; width:149px; height:45px; z-index:49">
<a href="javascript:{}" onClick="wind... | <javascript> | 2016-05-25 08:34:07 | LQ_EDIT |
37,435,742 | how to find parent node of a row using jquery | i have a html like this
<tbody>
<tr id="article0">
<td id="CheckboxDiv0">
<div class="checkbox">
<label>
<input type="checkbox" id="CheckboxArticle0" value="helo">
</label>
</div>
</td>
</tr>
</tbody>
i have the following code to get the parent id
$Pare... | <javascript><jquery><twitter-bootstrap> | 2016-05-25 11:28:11 | LQ_EDIT |
37,437,302 | how can i fetch this data to html page using angular.js | var gamedataRef = firebase.database().ref('gamedata');
gamedataRef.on('child_added', function(data) {
$scope.abc = data.val().textgame;`enter code here`
});
i hv to find this. | <angularjs><firebase><firebase-realtime-database> | 2016-05-25 12:33:34 | LQ_EDIT |
37,437,490 | C# asp.net5 make a link to download PDF file | I make a link that download the PDF file When click on the Link.
Here is my .cshtml:
<html>
<body>
<h1>Hello Shuainan</h1>
<a href="/Account/PdfDownload">download</a>
<input type="button" value="Download" onClick="download('test.pdf')" />
<script>
function download(file) {
... | <c#><asp.net><pdf> | 2016-05-25 12:41:18 | LQ_EDIT |
37,438,255 | Django - get to home page only through login/signup | Guys help please, I am completely confused. My task is to get home page view only after login/signup action. For exapmple, if we go to example.com we should get login page. And if we are not registrated before then pushing Login button (after entering any username and password because at the moment I have not done yet ... | <django> | 2016-05-25 13:11:01 | LQ_EDIT |
37,439,094 | In excel i want to compare particular cells and take the highest value and place in parent cell when particular cells update | [enter image description here][1]
[1]: http://i.stack.imgur.com/Bfv6L.png
1) Hi in the above image A column is having sum values help me with any formula so that in A13 i need an updated highest value.
2) Guys please help me i am running automated sequences so first it will update A12 with 90 then 90... | <vba><excel> | 2016-05-25 13:44:43 | LQ_EDIT |
37,439,417 | Scrapping Data from JSON | I am newbie to Json and Parsing.
I need to scrap this data,
http://jsonviewer.stack.hu/#http://91.134.133.185:5000/viaroute?loc=25.299919,55.376774&loc=25.298738,55.369181
and Extract only **total_time"** to a file.
Can anybody please help me out?
Thanks
| <json><web-scraping> | 2016-05-25 13:57:58 | LQ_EDIT |
37,440,620 | delet the empty line in textbox and then count the lines in visual basic | [I want acode that when I press the button(delete empty line and count the lines) the programe weel delete every empty line in the textbox and count the line of textbox after deleting the empty lines ][1]
[1]: http://i.stack.imgur.com/KveaE.png | <vb.net> | 2016-05-25 14:47:03 | LQ_EDIT |
37,441,101 | GET THE ITEM REF NUMBER ON CLICK OF BUTTON IN li of ul? | I have a list of values in ul , I have a button their too
<ul> <li class="mix" category-1="" data-value="600.35" style="display:block;"><figure><figcaption><h3>TK</h3><span>LHR</span> <span>LHE</span><div class="clear"></div><span>Sat 28May16</span> <span>18:00<span></span><span><i class="fa" fa-clock-o=""></i... | <javascript><jquery><html><css> | 2016-05-25 15:07:28 | LQ_EDIT |
37,442,419 | Is it possible to run a .NET Core app as Windows Service AND Linux deamon | <p>Is it possible to, using the same code, create an .NET Core application that can be run as a windows service and as a deamon on linux?</p>
<p>Do you have an example/proof of concept?</p>
| <.net><windows-services><daemon><.net-core> | 2016-05-25 16:04:42 | HQ |
37,442,566 | Android console: authentication required | <p>I am trying to run the geo fix command but I am unable to do so because I am greeted by the following message:</p>
<p>Android Console: Authentication required
Android Console: type 'auth ' to authenticate
Android Console: you can find your in
'/Users/me/.emulator_console_auth_token'</p>
<p>I am on a mac [new user... | <android> | 2016-05-25 16:11:27 | HQ |
37,442,849 | Screen readers and Javascript | <p>I'm creating <a href="https://reader.ku.edu/">a website for a reading service for the blind and visually impaired</a> and I'm using JavaScript (with jQuery) to print some stuff to some of the pages after the page has loaded.</p>
<p>Will the screen reader read the content that is printed to the page with jquery afte... | <javascript><jquery><accessibility><screen-readers><jaws-screen-reader> | 2016-05-25 16:24:56 | HQ |
37,442,910 | Spark-Shell Startup Errors | <p>I am seeing errors when starting <code>spark-shell</code>, using <code>spark-1.6.0-bin-hadoop2.6</code>. This is new behavior that just arose.</p>
<p>The upshot of the failures displayed in the log messages below, is that sqlContext is not available (but sc is).</p>
<p>Is there some kind of Derby lock that could b... | <apache-spark><derby> | 2016-05-25 16:27:27 | HQ |
37,442,983 | When is DbConnection.StateChange called? | <p>I have the following code:</p>
<pre><code> class Program
{
static void Main()
{
var connection = new SqlConnection("myConnectionString");
connection.Open();
connection.StateChange += HandleSqlConnectionDrop;
Console.WriteLine("Hi");
Console.ReadLine();
}
pr... | <c#><sql-server><sqlconnection> | 2016-05-25 16:32:15 | HQ |
37,443,565 | python numpy ndarray element-wise mean | <p>I'd like to calculate element-wise average of numpy ndarray.</p>
<pre><code>In [56]: a = np.array([10, 20, 30])
In [57]: b = np.array([30, 20, 20])
In [58]: c = np.array([50, 20, 40])
</code></pre>
<p>What I want:</p>
<pre><code>[30, 20, 30]
</code></pre>
<p>Is there any in-built function for this operation, o... | <python><numpy><vectorization> | 2016-05-25 17:06:12 | HQ |
37,443,808 | Pointer equal in C | I know normally, * and & signs. But our teacher gives us an example and she said "Problem occurs here"
int *a1;
int *a2 = new int[100];
a1=a2 //What does this line mean???
delete []a2;
k=a1[0]//she said error occurs here.
I couldn't understand what is a1 = a2 ?
and why does... | <c++><pointers><delete-operator><assignment-operator> | 2016-05-25 17:19:40 | LQ_EDIT |
37,444,151 | Docker: Set container name inside Dockerfile | <p>Is there a way that I can set what the containers name will be from inside the Dockerfile? Basically I want to always have the same name so I won't have to run "$docker ps" after building and running an image to get its name.</p>
| <docker><dockerfile> | 2016-05-25 17:38:38 | HQ |
37,444,342 | Python 3, if str is present replace with str | <p>I'm writing a fairly simple python program to find and download videos from a particular site. I would like to have my script name the file by using the page title except the page title contains various strings i would like remove for e.g.,</p>
<pre><code>The title is:
The Big Bang Theory S09E15 720p HDTV X264-DIM... | <python><regex><string><replace> | 2016-05-25 17:48:24 | LQ_CLOSE |
37,445,346 | Create XML Schema in VB | I have VB Script.
In the Function
Private Function generateXMLSchema(ZRouteName) As String
Dim generatedXmlSchema As String ="<Name>tEST 250504</Name>"
Here Name Element is Static.
I want to `ZRouteName` instead of Static Data.
"<Name>"ZRouteName"</Name>"
I am getting Error.: Sys... | <vb.net> | 2016-05-25 18:48:36 | LQ_EDIT |
37,445,473 | Change return to be next/done key in Xamarin Forms Shared Project | <p>Is it possible to change the text in the 'return' key on the keyboard to be either 'next' or 'done'? I have a login form with username and password. I want the return key to say 'next' when on the username field and then 'done' when on the password field but haven't seen anyway of doing this.
This is for a shared p... | <xamarin><xamarin.forms><soft-keyboard> | 2016-05-25 18:56:41 | HQ |
37,445,559 | Global and Ambient Dependencies - typings | <p>I am really confused between the ambient and global dependencies. I understood the concept of global dependencies, which means that installing the dependencies globally. But coming to ambient dependencies, I did not understand what it is and now typings recently declared that <a href="https://www.npmjs.com/package/t... | <typescript-typings> | 2016-05-25 19:01:24 | HQ |
37,445,708 | Linq: count by range | <p>Please help me to create a linq query. I have a class</p>
<pre><code>class Person
{
string name;
int age;
}
</code></pre>
<p>I need to group a list of Persons by age ranges (0 to 10, 10 to 20, ... 90 to 100) and count a number of persons for each range. Also I want to filter the list by name. For example, ... | <c#><linq> | 2016-05-25 19:10:49 | LQ_CLOSE |
37,445,740 | Parsing JSON encoded PHP array with Javascript - unexpected character | <p>I'm using PHP to encode array to JSON string like this:</p>
<pre><code>$price['price'] = "20";
$price = json_encode($price)
return $price;
</code></pre>
<p>so when I'm accessing the script I get this data:</p>
<pre><code>{"price":"20"}
</code></pre>
<p>Here is my jQuery/Javascript code:</p>
<pre><code>$("#form_... | <javascript><jquery><json> | 2016-05-25 19:12:28 | LQ_CLOSE |
37,445,838 | Returning values in Elixir? | <p>I've recently decided to learn Elixir. Coming from a C++/Java/JavaScript background I've been having a lot of trouble grasping the basics. This might sound stupid but how would return statements work in Elixir? I've looked around and it seems as though it's just the last line of a function i.e.</p>
<pre><code>def H... | <function><elixir> | 2016-05-25 19:17:29 | HQ |
37,446,262 | Facing deficulties of reading specified data from one after another in java | I think problem lies with my text file but i can't understand ??please help to solve out this.
Thanks in advance..
/* This is mocTest.txt file
*/
/*
##Question##
Which is not a JDK component?
##Ans1##
Java SE libraries
##Ans2##
Java SE libraries2
##Ans3##
Java SE libraries3
##Ans4##
Jav... | <java> | 2016-05-25 19:42:41 | LQ_EDIT |
37,446,283 | Creating legend with circles leaflet R | <p>I'm trying to create a leaflet map with points sized by a variable. Is it possible to create a legend with different sized circles representing the different variable values? I found another post showing how to convert squares to circles in the legend, but am not sure how to change the size of different circles in t... | <r><shiny><leaflet><legend> | 2016-05-25 19:43:41 | HQ |
37,447,238 | PHP Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE) in /wp-content/themes/awaken/page.php on line 26 | <p>i have error log </p>
<blockquote>
<p>PHP Parse error: syntax error, unexpected 'endwhile' (T_ENDWHILE) in
/wp-content/themes/awaken/page.php
on line 26</p>
</blockquote>
<p>my page.php </p>
<pre><code>get_header(); ?>
<div class="row">
<?php is_rtl() ? $rtl = 'awaken-rtl' : $rtl = ''; ?>
&l... | <php><wordpress><parsing> | 2016-05-25 20:41:47 | LQ_CLOSE |
37,447,326 | With knexjs, how do I compare two columns in the .where() function? | <p>Using knexjs only (no bookshelf) I would like to do something like the following query:</p>
<pre><code>select * from table1 where column1 < column2
</code></pre>
<p>However, when I do this:</p>
<pre><code>.table("table1").select().where("column1", "<", "column2")
</code></pre>
<p>The SQL that knexjs genera... | <javascript><knex.js> | 2016-05-25 20:47:04 | HQ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.