date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 746 | 2,242 | <issue_start>username_0: I have a dataframe with two columns one string column & One integer column.
```
column1 column2
abcdef 2
gtihj 4
jiuwq 3
```
I want another column3 with the column1's value at col2 position, something like this
```
column1 column2 column3
abcdef 2 ... |
2018/03/13 | 484 | 1,571 | <issue_start>username_0: I have installed MySQL connector for python 3.6 in centos 7
If I search for installed modules with below command
>
> it's showing as below
> pip3.6 freeze
> mysql-connector==2.1.6
> mysql-connector-python==2.1.7
> pymongo==3.6.1
>
>
> pip3.6 search mysql-connector
> mysql-connector-py... |
2018/03/13 | 1,609 | 6,106 | <issue_start>username_0: I use Google Sheets (spreadsheet) to combine article data for different sources for my Gambio shop.
To import the data I need the pipe symbol as delimiter / separator and " as text delimiter in a .csv file.
In the Google Sheets menu for exporting to .csv there are no Options.
Is there a way to... |
2018/03/13 | 1,673 | 6,288 | <issue_start>username_0: I'm having error when trying to pull any images from docker hub. I use docker toolbox community edition on windows 8.1
**Ex:** when trying to pull images with command: `docker pull ubuntu` I get error response like this:
```
Error response from daemon: Get https://registry-1.docker.io/v2/: x5... |
2018/03/13 | 1,484 | 5,091 | <issue_start>username_0: So for my project I have to write a method to convert double values to a string. I understand how to do this multiple ways multiple options of formatting. What I'm confused about is how would I turn half sizes(shoes) into a fraction version while still converting it to a string. So
10.5
retu... |
2018/03/13 | 605 | 2,165 | <issue_start>username_0: I need to set class on table on spesific tr on ajax proses. my html table like below
```
| Nama / Name | Keterangan / Description | |
| --- | --- | --- |
php
foreach ($prays as $row)
{
?| Avatar[php echo $row-name;?>](#) | php echo $row-prayNeed;?> | [Healed](#) |
php
}
?
```
and my j... |
2018/03/13 | 1,203 | 4,316 | <issue_start>username_0: There is a famous Python example
```
class A(object):
def go(self):
print("go A go!")
class B(A):
def go(self):
super(B, self).go()
print("go B go!")
class C(A):
def go(self):
super(C, self).go()
print("go C go!")
class D(B,C):
def go(... |
2018/03/13 | 1,294 | 2,989 | <issue_start>username_0: I am running the following piece of code:
```
lm(ath ~ HAPP + IQ2 + OPEN2 + INCOME*EXPEC,data=data)
```
Which, of course, lead me to the output:
```
Standardized weighted residuals 2:
Min 1Q Median 3Q Max
-3.2644 -0.5461 -0.0223 0.4158 3.2217
Coefficients (mean mod... |
2018/03/13 | 1,314 | 3,601 | <issue_start>username_0: I have a dictionary of dictionaries.Is there any possible way to convert it to a list of dictionaries?
And if not, then how is the filter() method applied to filter data in a dictionary of dictionaries?
```js
{"0": {"_ref": "ipam:stat/ZGkMTAuMTQ4LjEyLjAvMjIvMA:default/10.158.2.0/22",
"comment"... |
2018/03/13 | 843 | 2,870 | <issue_start>username_0: how to have dropdowns selected value in state.here is my code iam getting value for name field but dropdown not working, can anyone find out what i am missing?
MyComponent.js
```
import React,{Component} from 'react';
class MyComponent extends Component{
state={
data:{
name:'',
... |
2018/03/13 | 3,084 | 11,605 | <issue_start>username_0: I wrote some code for an android calculator application. What I wanted in that is :-
**If an `EditText` field lose focus, all output fields should get updated like it happens in excel sheet, which updated all connected values in a sheet if we update any value in a cell.**
But my code did not... |
2018/03/13 | 540 | 1,959 | <issue_start>username_0: I had a database have 2 table `website` and `domains`, and a website can store more than 1 domain, and I was create a `view`:
```
create view website_infor
as
select
w.name 'Website Name',
(
select url
from domains
where company_id = w.id
)
'Domains URL'... |
2018/03/13 | 394 | 1,505 | <issue_start>username_0: how to use datetime functions in doctrine query builder,the below sql query need convert doctrine query(DQL).
```
SELECT SEC_TO_TIME((SUM(TIMESTAMPDIFF(MINUTE, StartTime, EndTime)) + COUNT(*)) * 60) as hours FROM table_name
```
The below one i have tried
```
$qb = $emClient->createQueryBui... |
2018/03/13 | 432 | 1,665 | <issue_start>username_0: I have data in ts, i need to fetch that data inside the Angular4 html, but i am able to fetch only 2 data which are outside the loop. Can anyone help me to fetch data inside angular4.
HTML:
```
| {{accept.name}} | {{accept.description}} | {{accept.daterecv}} | {{accept.dateacc}}... |
2018/03/13 | 1,520 | 5,601 | <issue_start>username_0: I have looked all over stackoverflow and the net for a solution for this. No solution I have seen works because maybe none of the posts exactly fit my use case which contain a lists inside the file and also an object struture.
Here is a sample as a yaml
```
teddy.list:
-
name: Red
... |
2018/03/13 | 957 | 3,472 | <issue_start>username_0: I am trying to collect a List of Collections into a Map, where the key is the index from the original list and the value is the collection. I tried the following, but I get a Type mismatch error: `Type mismatch: cannot convert from Map to Map>`
My code:
```
public Map> myFunction(final List> ... |
2018/03/13 | 551 | 1,222 | <issue_start>username_0: I have 2 arrays as follows:
```
arr1 = array([ 0.40505 , 0.571486, 0.471516, 0.641669, 0.554498, 0.356352, 0.60921 , 0.653045, 0.46785 , 0.42037 , 0.360116, 0.568134])
arr2 = array([ 0.35635245, 0.55449831, 0.40504998, 0.47151649, 0.57148564, 0.64166886, 0.36011562, 0.5681335... |
2018/03/13 | 2,070 | 5,398 | <issue_start>username_0: Given a list of positive integers and a target value, generate a solution set. For example, if the list is `[10, 1, 2, 7, 6, 1, 5]` and the target is `8`, the solution set is...
```
[
[1, 7],
[1, 2, 5],
[2, 6]
[1, 1, 6]
[
```
I know there a multiple solutions to this, such as... |
2018/03/13 | 588 | 1,777 | <issue_start>username_0: I have SQL that:
```
select name, city, age
from Student where (name, city)
in (('Tom1','CiTy1'),('Tom2','CiTy2'),...,('TomN','CiTyN'))
```
The result of SQL guaranteed order?
Ex:
```
Name ----- City ----- Age
Tom1 | CiTy1 | 10
Tom2 | CiTy1 | 17
Tom3 | CiTy1 | 15... |
2018/03/13 | 795 | 2,412 | <issue_start>username_0: I have a problem with this.
>
> Undefined variable: acara (View:
> /var/www/html/event\_organizer/resources/views/admin/home.blade.php)
>
>
>
But I have declared $acara on the controller like this
**Controller**
```
use App\events;
public function lihat_acara()
{
$data... |
2018/03/13 | 555 | 1,870 | <issue_start>username_0: I have an API that gets data from database. The sample data that I'm getting looks like this:
```
[
{
"Name": "Bar1",
"Type": "Bar",
},
{
"Name": "Pie1",
"Type": "Pie",
},
{
"Name": "Pie2",
"Type": "Pie",
},
{
... |
2018/03/13 | 514 | 1,797 | <issue_start>username_0: I have the following Haskell code, which returns the an instance of the requested element from the list (just the first instance) or returns 0 if the element is not present. I am trying to return the position of the element in the list instead but don't know how to (I am very new to programming... |
2018/03/13 | 464 | 1,655 | <issue_start>username_0: I want to replace the whitespaces with string "IIT".I tried using loop in my string and when I encountered whitespace I tried to replace it with the given string. But the whitespace is similar to a single character in string so it is not replacing with a word so please help me out how can I rep... |
2018/03/13 | 972 | 3,714 | <issue_start>username_0: I'm a couple days into learning Android development and I'll admit my code is not pretty, as I have a few weeks of Java under my belt on top of this. I'm trying to create a back button on my 2nd main activity page to get back to the 1st main activity, but the only solutions I've come across are... |
2018/03/13 | 479 | 1,936 | <issue_start>username_0: I am currently using face\_recognition library in python for facial recognition with `compare_faces()` method. However, it matches my face with someone else's face too. Is there any modifications I could make in my code to get better results, or are there any other methods in the same library t... |
2018/03/13 | 1,317 | 5,773 | <issue_start>username_0: I am trying to unit test my rest api controller. Controller code is as below
```
@RestController
@RequestMapping("/events")
public class EventController {
@Autowired
private EventService eventService;
@GetMapping
public Iterable getEvents(EventSear... |
2018/03/13 | 889 | 3,873 | <issue_start>username_0: For a random string such as:
`H!i I am f.rom G3?ermany`
how can I move all the special characters to the end of the word, for instance:
`Hi! I am from. Germany3?`<issue_comment>username_1: Did you declare @Service annotation at EventService?
```
@Service
public class EventService {
...some... |
2018/03/13 | 1,079 | 4,687 | <issue_start>username_0: I am developing an android app using fragments. I have five fragments. Those are A,B,C,D,E . My first fragment A is the main fragment. First I traverse from A to B then from B to C. In C when I press back button I want it to go back to A. I have used the below code for calling B fragment from A... |
2018/03/13 | 1,744 | 5,194 | <issue_start>username_0: Following code compile and run on GCC compiler.
```
#include
int arr[10];
int func()
{
printf("In func\n");
return 0;
}
int main()
{
if (&arr[func()])
printf("In main\n");
return 0;
}
```
**Output:**
```
In main
```
Why does not execute `printf("In func\n");` ?<issue_comment... |
2018/03/13 | 2,181 | 6,428 | <issue_start>username_0: I have checked my Apache error log and found the following errors:
>
> [Tue Mar 13 05:04:47.855612 2018] [core:error] [pid 18177] [client
> xxx.xxx.xxx.xxx] AH00124: Request exceeded the limit of 10 internal
> redirects due to probable configuration error. Use
> 'LimitInternalRecursion' to... |
2018/03/13 | 1,843 | 5,659 | <issue_start>username_0: I have the contact table records which has a link of other contact record or the contact record is not linked to anything (null)
As per below example id 21 is a parent for contact 1
[](https://i.stack.imgur.com/uFljg.png)
I ... |
2018/03/13 | 548 | 1,656 | <issue_start>username_0: I've got a table that looks like this:
```
-------------------------
| id | areaID | itemID |
-------------------------
| 1 | 7 | 3 |
-------------------------
| 2 | 7 | 4 |
-------------------------
| 3 | 8 | 3 |
-------------------------
| 4 | 10 | ... |
2018/03/13 | 913 | 2,919 | <issue_start>username_0: Before asking this question, I have read: [fgetc(stdin) in a loop is producing strange behaviour](https://stackoverflow.com/questions/12063879/fgetcstdin-in-a-loop-is-producing-strange-behaviour). I am writing a program to ask the user if they want to exit. Here is my code:
```
#include
#incl... |
2018/03/13 | 991 | 4,156 | <issue_start>username_0: Good day,
I'm using repository pattern. But someone advised me to use include Unit of Work. I read a lot of articles and honestly I found a docs that are too complicated to understand.
Supposing I have a non-generic repository.
```
// My Interface
public interface IProductRepository{
I... |
2018/03/13 | 618 | 1,849 | <issue_start>username_0: The following is the code for converting java datestamp (13digits) to date (`1520488577604` to `3/12/2018 8:07:02 PM`) in C#.
```
new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc)
.AddMilliseconds((long)value) // put your value here
.ToLocalTime().ToString("g");
```
I need to rever... |
2018/03/13 | 303 | 1,168 | <issue_start>username_0: I'm trying to set equal intervals along the boundary of a black and white image. Is there a way to do it?
I thought about first finding the edge of object using distance transform then scanning the image for the edge. I was thinking of starting with first pixel that is on the edge then find t... |
2018/03/13 | 995 | 3,347 | <issue_start>username_0: An android project I add `Selenium` `WebDriver`. When I build my app I get error:
```
More than one file was found with `OS` independent path `META-INF/DEPENDENCIES`
```
>
> My app gradle:
>
>
>
```
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.akmaral.d... |
2018/03/13 | 664 | 2,452 | <issue_start>username_0: Plan is to support OAuth2 workflows in AngularJS application. ADAL supports 'Implicit Grant Flow.' ADFS in older versions (available in Windows 2012 R2) supported only 'Authorization Grant Flow'
Our plan is to begin by setup of a lab environment. It was suggested to us that Windows 2012 R2 has... |
2018/03/13 | 526 | 1,918 | <issue_start>username_0: I want to pass few variables to the rendering page. How can I do that in angular? Can you please help me with this?<issue_comment>username_1: add packagingOptions
```
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.akmaral.diplom"
minSdkVersio... |
2018/03/13 | 776 | 2,533 | <issue_start>username_0: I think it returns `1.13` but freemarker returns `1.12`.
**What is right?**
```
${(1.125)?string(",##0.00;roundingMode=HALF_UP")}
```
* freemarker version : 2.3.20<issue_comment>username_1: Freemarker is correct, You probably misunderstood [HALF\_EVEN](https://docs.oracle.com/javase/6/doc... |
2018/03/13 | 355 | 1,422 | <issue_start>username_0: I want to be able to check if an `ImageView` contains an image when a button is pressed. My `ImageView` is surrounded by a `CardView`.
```
```
I've declared the imageView appropriately in my main java class.
```
ImageView flyerImageView;
flyerImageView = (ImageView) findViewById(R.id.imageV... |
2018/03/13 | 816 | 3,586 | <issue_start>username_0: Methods in the interface and in the class implementing the interface are public by default. They do not need the accessor mentioned.
Why do properties, specifically in the class implementing the interface, need to have the public access modifier mentioned?
Other modifiers aren't allowed anyway... |
2018/03/13 | 708 | 2,360 | <issue_start>username_0: I am totally new to OpenCV. I am able to detect the face from webCam. I am little bit confused how to save detected face, how to save and recognized if again that person come again in front of camera.
Detection code
```
private void detectAndDisplay(Mat frame)
{
MatOfRect faces = new Ma... |
2018/03/13 | 454 | 1,549 | <issue_start>username_0: There is an anchor tag which has a dropdown-menu in my HTML file. I have set the background-color of the anchor tag to transparent when the cursor hovers it or focuses it and which works fine and dropdown-menu shows up, but when the cursor hover doen to the dropdown-menu the background-color of... |
2018/03/13 | 838 | 3,124 | <issue_start>username_0: I am relatively new to Python and learning with fun so far.
What I am trying to do is finding the position of button using Python and its library, Pyautogui.
Here is my code.
```
import webbrowser, pyautogui, time, datetime
class workDoneClicker:
def buttonTrack(self):
global x... |
2018/03/13 | 511 | 1,777 | <issue_start>username_0: I just started learning JavaScript, when I ran the below code, it only returns `orange`, I thought it should return all the values.
```
function Array(whatever) {
for (var i=0; i < whatever.length; i++) {
return whatever[i];
}
}
var list = Array(['orange','cat','mouse','dog','... |
2018/03/13 | 636 | 1,915 | <issue_start>username_0: I want to plot of o vs t0 after I have written the following:
```
N = 100
t=0.0
m = [0.0, pi/2, 0.0]
o=[0 for j in range(0,N)]
p=[0 for j in range(0,N)]
for j in range(0,N):
(t,theta) = runkut(2, t, m, 1.0/N)
o[j] = m[1]
p[j] = m[2]
t0 = linspace(-3*pi,3*pi,50)
plt.p... |
2018/03/13 | 1,441 | 5,407 | <issue_start>username_0: I am trying to design a view which is circular from bottom, please see the image
[](https://i.stack.imgur.com/vsQVn.jpg)
>
> I have try different way to design, Like XML, Programatically but I am not able to get any success.... |
2018/03/13 | 806 | 1,713 | <issue_start>username_0: I have an array-like
```
Array
(
[0] => 2,2-0-tc
[1] => 2-0
[2] => 2-0-tc
[3] => 3,3-0-sc-v6
[4] => 3-0-sc-v6
[5] => 3-0sc-v6
[6] => 5-0-sc-v8
)
```
and I want to extract the comma separated value from array and then create new array like
```
Array
(
[2] => 2... |
2018/03/13 | 1,471 | 5,308 | <issue_start>username_0: I have a big (several millions rows) table with system events. I must to get recent event counts and I'm not shore how to do it in right way.
I created this view:
```
CREATE VIEW [dbo].[EventCounts]
AS
SELECT
(SELECT COUNT(1)
FROM dbo.SystemEvents r
WHERE r.Timestamp ... |
2018/03/13 | 1,930 | 5,936 | <issue_start>username_0: I am querying number of entrance for each door per day.
To start, I query number of people enter the relevant door which is identified by "door\_code column" and pass key id identified by pass\_id column. So I grouped "pass\_id" column to remove duplicate people in entrance.
```
SELECT
... |
2018/03/13 | 2,520 | 8,565 | <issue_start>username_0: I am trying to create a tree with the different possible states of the well-known sliding puzzle
In case you don't know it, it's the one like:
```
[3 5 2]
[4 1]
[8 6 7]
```
Where you have to make it like this:
```
[1 2 3]
[4 5 6]
[7 8 ]
```
Basically, every state generates new states,... |
2018/03/13 | 405 | 1,164 | <issue_start>username_0: What is the most idiomatic way to convert this: `"helloworld"` to `["h","e","l","l","o","w","o","r","l","d"]` in Erlang ?<issue_comment>username_1: You can try with the code below:
```
1> [[X] || X <- "helloworld"].
["h","e","l","l","o","w","o","r","l","d"]
```
Upvotes: 0 <issue_comment>usern... |
2018/03/13 | 642 | 1,906 | <issue_start>username_0: I'm trying to figure out a simple operation that takes a list of `(Int, Int)` tuples and multiplies the tuples internally and then sums those results. Example:
```
val list = ((9, 4), (1, 5), (4, 6))
```
Would evaluate to `(36, 5, 24)`, which would then evaluate to 65. I was thinking I could... |
2018/03/13 | 1,549 | 5,686 | <issue_start>username_0: I am making a crud operation in angular(v 5) with within node app.
I have successfully getting data in my view . but i am having problem with my post script with angular.
[file structure of app](https://i.stack.imgur.com/vzF2n.png)
---
my app.module.ts file
```
import { BrowserModule } from... |
2018/03/13 | 1,408 | 5,149 | <issue_start>username_0: I have three listview inside a tab according to spinner.The spinner have 3 options "ALL" ,"PAYMENTS" and "EXPENSES". Actually there are two listviews ie; PAYMENTS and EXPENSES.The "ALL" option in spinner will show combine list of both PAYMENTS and EXPENSES. These two list views have single clic... |
2018/03/13 | 1,051 | 3,908 | <issue_start>username_0: I have tried removing cookies and clearing history from `WebView` but cannot able to logout completely.
```
@Override
public void onPageFinished(WebView view, String url) {
view.clearHistory();
super.onPageFinished(view, url);
String title = mWebView.getTitle();
if (title != ... |
2018/03/13 | 1,368 | 5,436 | <issue_start>username_0: the question is that I wanted to add fragment each row data in recycler view
and tried adding fragment in XML and set in view holder.
but the error occurs that said Duplicate id 0x7f070075, tag null, or parent id 0xffffffff with another fragment for SomeFragment.
and tried the second way that i... |
2018/03/13 | 452 | 1,423 | <issue_start>username_0: i have universal time `2018-03-31T05:37:57.000Z` and have to change this to timestamp `1520919620673` how can i change this please help<issue_comment>username_1: ```js
var utcTime = "2018-03-31T05:37:57.000Z";
//create Date object and using getDate() function
var date = new Date(utcTime);
va... |
2018/03/13 | 627 | 2,164 | <issue_start>username_0: My input file is in this format
```
input
input
output
super
krish
```
that is every line starts with white space and have something after whitespaces.
Now when i try "awk '{print $1}' input" in unix it is printing in the below format
```
$ awk ... |
2018/03/13 | 558 | 1,877 | <issue_start>username_0: I am using Java FXML.
The progress bars look like this:
[JavaFX Progress Bar](https://i.stack.imgur.com/JxMUN.png)
How do I remove the grey border around, but maintain the background.
To look like this:
[Desired Progress Bar](https://i.stack.imgur.com/EN54f.png)
Thanks!<issue_comment>userna... |
2018/03/13 | 647 | 2,039 | <issue_start>username_0: I m using this library <https://github.com/mattboldt/typed.js/> .I have added all the script files at the end of body code but still i m getting an error in console. My code is:
```
LUNA-NG
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(a... |
2018/03/13 | 487 | 1,713 | <issue_start>username_0: I am using datatable plugin for table when I am trying to delete current row, the first row getting delete from datatable and in search also that deleted row shoudnot display
this is my jQuery code:
```
var table = $('#stockistTable').DataTable();
index = $(this).closest('tr').index();
table.... |
2018/03/13 | 571 | 1,912 | <issue_start>username_0: I have a directory with more than 20K files all with a random number prefix (eg 12345--name.jpg). I want to find files with similar names and remove all but one. I don't care which one because they are duplicates.
To find duplicated names I've use
```
find . -type f \( -name "*.jpg" \) | | s... |
2018/03/13 | 456 | 1,562 | <issue_start>username_0: the command do not work, when I want to show the nova's endpoints:
```
openstack endpoint show nova
```
it will report error:
>
> More than one endpoint exists with the name 'nova'.
>
>
><issue_comment>username_1: Following code will be helpful to you,
```
var table = $('#stockistTable'... |
2018/03/13 | 244 | 989 | <issue_start>username_0: I am working as automation test engineer in healthcare. We have requirement for automating a waveform received from ECG which will be displayed in a web application.
So is there any tool to automate the waveform ?
[WaveForm Sample IMAGE](https://i.stack.imgur.com/n2Cb9.png)<issue_comment>user... |
2018/03/13 | 268 | 945 | <issue_start>username_0: Running Cake Build script on my local machine works fine but when same script is run on TeamCity, the following error appears: Nuspec file does not exist in package.
[](https://i.stack.imgur.com/nElF3.png)
Any idea what could... |
2018/03/13 | 272 | 914 | <issue_start>username_0: I am working on GSM900A module and Arduino Uno R3.
I am getting output as following while sending an SMS using AT commands:
```
AT+CMGF=1
Ok
AT+CMGS="+91 10digit mobile number"
message
ERROR
```
And SMS is not sent to the particular 10 digit number. How can I overcome this problem.<issue_... |
2018/03/13 | 544 | 1,861 | <issue_start>username_0: I need to create a map as shown below:
```
package main
import "fmt"
func main() {
var data = map[string]interface{}{}
data["name"] = "User"
data["info"] = map[string]string{}
data["info"]["email"] = "<EMAIL>"
fmt.Println(data)
}
```
I am trying to create neste... |
2018/03/13 | 777 | 3,165 | <issue_start>username_0: I see that in Angular 5 one should be using rxjs operators differently and importing from `'rxjs/operators'` but I'm a little unclear on how it is supposed to work. I have something like:
```
import { Observable } from 'rxjs/Observable';
import { combineLatest, takeUntil } from 'rxjs/operato... |
2018/03/13 | 759 | 2,365 | <issue_start>username_0: I am working on a laravel project for building REST api. I am using eloquent to fatch data from database. I am facing issues in applying the OR condition in WHERE, HAVING etc. If there is only one where and one orWhere condition, it has no issues but here I am taking multiple where clause. Like... |
2018/03/13 | 1,037 | 3,130 | <issue_start>username_0: I'm trying to kill a redis server that was started with --daemonize yes
I feel like this should be easy, but I am unable to successfully kill it based on standard methods. I'm using Redis 3.2 installed via these instructions: <https://www.hugeserver.com/kb/install-redis-debian-ubuntu/>
```
$... |
2018/03/13 | 1,047 | 4,472 | <issue_start>username_0: ```
public static final Parcelable.Creator CREATOR
= new Parcelable.Creator() {
public MyParcelable createFromParcel(Parcel in) {
return new MyParcelable(in);
}
public MyParcelable[] newArray(int size) {
return new MyParcelable[size];
}
};
private MyParcelable(Parcel in) {
mData = i... |
2018/03/13 | 868 | 2,667 | <issue_start>username_0: [](https://i.stack.imgur.com/Trnx6.png)
It would be better if you can do this using CSS only.
Thank you in advance.<issue_comment>username_1: There is one way to do it but you have to do manually line by line given that you ar... |
2018/03/13 | 952 | 2,840 | <issue_start>username_0: This is my query in PostgreSQL:
```
SELECT
"axapta_calls".id,
"axapta_calls".call_time,
calls.calltime,
"calls"."id" as "call_id",
abs(extract(epoch from (axapta_calls.call_time::timestamp - calls.calltime::timestamp))) as ab
FROM
"axapta_calls"
inner join
... |
2018/03/13 | 681 | 2,602 | <issue_start>username_0: I have a SelectBox component created in React which I want other developers to reuse in their code. The SelectBox will have the same options every time it is reused, but I want developers to have their own custom event-handlers on the onChange event.
My code is as shown below:
```
class Selec... |
2018/03/13 | 688 | 2,474 | <issue_start>username_0: I need to send a response from a sinatra server with multiple json object.
I have an array of hashes similar to these:
```
{:a=>5, :school=>"some school"} && {:id=>5, :name=>"michael"}
```
I would like to append a key to each one say 'school' and 'student' then send that back to the browse... |
2018/03/13 | 765 | 2,489 | <issue_start>username_0: I would like to scan a text file, containing data such as shown below, for a specific phrase and then print out the line number where this phrase occurs. For example: If I want to find where the phrase `G01 Z0. F5.` occurs, the solution would be "line 5." I have experimented with using `textsca... |
2018/03/13 | 686 | 2,542 | <issue_start>username_0: ```
CREATE PROCEDURE curLike()
BEGIN
DECLARE likeRec likecounttable;
DECLARE c_likeCount CURSOR FOR SELECT l.likeCount, l.qId FROM likecounttable l;
OPEN c_likeCount;
start_loop:LOOP
FETCH c_likeCount IN likeRec
UPDATE qentry SET qen... |
2018/03/13 | 720 | 2,561 | <issue_start>username_0: What's wrong with my code below? `grandParent` is undefined, what I want to achieve is each grandparent have a property of parent, and each parent have child (arrays of object too)
like so
```
[{
name: 'a',
parent: [{
name: 'b',
child: [{
name: 'c'
}]
}]
}]
```
belo... |
2018/03/13 | 652 | 2,022 | <issue_start>username_0: I am trying to compile a project with experimental::filesystem in visual studio code using code runner, however I can't get it to compile even in the terminal.
The code is as follows, a very simple test usage from the docs:
```
#include
#include
using namespace std;
namespace fs = std::exper... |
2018/03/13 | 452 | 1,825 | <issue_start>username_0: I have a problem with storing a plain password in memory as a String. According to the reference, since **Strings are immutable** there is a vulnerability of using String data type for sensitive data storing in memory.
<https://www.geeksforgeeks.org/use-char-array-string-storing-passwords-java... |
2018/03/13 | 2,828 | 9,669 | <issue_start>username_0: I have a simple script that is supposed to show you the current date and supposed to leave a message based on the date. I am trying to get it so that I can display it, but also show that because the next month is upcoming, lets say the 25th and later, it would say that the next month is coming ... |
2018/03/13 | 266 | 712 | <issue_start>username_0: I have a string:
```
s = "\t\n"
```
I intend to output:
```
\t\n
```
When I do
```
puts s
```
I see nothing. How should I do it?<issue_comment>username_1: That's because `\n` and `\t` are escape sequences
>
> A single-quoted strings don’t process ASCII escape codes, and they don’t ... |
2018/03/13 | 772 | 3,228 | <issue_start>username_0: I am coding without storyboard and I'm having this issue now that I can't find a good solution.
So I'm trying to call `UIAlert` from `UICollectionViewCell` like below.
```
self.window?.rootViewController?.present(alert, animated: true, completion: nil)
```
This is what I found in stackoverf... |
2018/03/13 | 273 | 961 | <issue_start>username_0: I am using Visual Fox Pro 9.0 and new to it.
Please help with how to get no of tables present in a fox pro database ?
Thanks in advance.<issue_comment>username_1: There is ADbObjects() function to get various database objects. For getting tables set its second parameter to 'TABLE'. ie:
```
* ... |
2018/03/13 | 804 | 2,455 | <issue_start>username_0: I have the following string which I am trying to parse into a JSON object and then turn into a javascript array:
```
"[{\"items\":\"nut\",\"sales\":6,\"prices\":10},\n {\"items\":\"bolt\",\"sales\":8,\"prices\":20},\n {\"items\":\"cam\",\"sales\":0,\"prices\":15},\n {\"items\":\"cog\",\"sales\... |
2018/03/13 | 848 | 2,791 | <issue_start>username_0: I have a user defined type:
```
create type match_input as (
_values text[],
_name text,
_norm_fn text,
_operator text
);
```
and I use this as the input parameter for a function:
```
get_matches(mi match_input)
```
I want to be able to call the same function, but passing a ... |
2018/03/13 | 370 | 1,425 | <issue_start>username_0: I am getting an error in initialization of array of integer pointer. Though the issue seems simple I am unable to understand what's wrong in this.
I am new in C programming.
[](https://i.stack.imgur.com/uIyvo.png)<issue_commen... |
2018/03/13 | 344 | 1,384 | <issue_start>username_0: I used virtualenvwrapper to make a virtual environment on windows and now I need to point my IDE to the python interpreter I created but I cannot find it. I can use workon from cmd but I can't find the actual location of the new interpreter.<issue_comment>username_1: Believe it or not but the p... |
2018/03/13 | 865 | 3,327 | <issue_start>username_0: I want to send email when builds succeeds/fails along with some useful Git info such as commit SHA, previous successful SHA, commit message, etc.
I was able to do this in the old UI way but now I've created declarative pipeline and now I'm getting `GIT_BRANCH is not supported in this context` i... |
2018/03/13 | 473 | 1,717 | <issue_start>username_0: How do i **stop multiple user login with same email and password** once the user already logged into the website.
**For example:**
```
if a user already login from chrome and user trying to login from firefox
then system should automatically destroy first session which is created
from chrom... |
2018/03/13 | 627 | 2,031 | <issue_start>username_0: I've got this json object via an API.
```
var servers = {
'd22ab1': {
condition: 'autorebooted',
name: 'acb1'
},
'6946e0': {
condition: 'online',
name: 'abc2'
}
}
for (var server in servers) {
console.log(server.condition);
}
```
I'm ... |
2018/03/13 | 598 | 1,958 | <issue_start>username_0: I'm new in swift programming and I'm working on simple app. However, I was wondering if I can build "Contact us" view controller where the user enters his message and his data sent to me by email. Is it possible?
example:
[](... |
2018/03/13 | 581 | 2,037 | <issue_start>username_0: I have used `Selection.Filldown` but it is taking only the first value. Please check my code below:
```
Sub tsautomation()
'
' tsautomation Macro
'
Windows("Feeding document.xlsx").Activate
Selection.End(xlUp).Select
Range("A1:AP1").Select
Range(Selection, Select... |
2018/03/13 | 1,293 | 3,605 | <issue_start>username_0: I am having python script which contains fetching data from MySql DB and then parse that data
below is the way I fetch data from MY SQL db
```
connection = MySQLdb.connect(host = "192.168.1.50", user = "root",
password = "<PASSWORD>", db = "mydb", port = 32768)
cursor = connection.cursor()
c... |
2018/03/13 | 390 | 1,545 | <issue_start>username_0: I have an `EditText` inside a `TextInputLayout` with `+91` `TextView` prefix to `EditText`.
```
```
But as `android:paddingLeft="30dp"` is given to `EditText` the hint and error message of `TextInputLayout` also get shifted!!
[ "\(" "\)"} (3.8.001)]
```
o\p I'm getting $tclsh main.tcl
```
(3.8.001)
```
I'm expecting
```
\(3.8.001\)
```
help me to do this<issue_comment>username_1: You should use the `string map` as follows,
```
puts [string map { ( "\\(" ) "\\)"} (3... |