date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/01 | 509 | 1,838 | <issue_start>username_0: I would like to know which property in the [JSON model](https://sapui5.hana.ondemand.com/#/api/sap.ui.model.json.JSONModel/overview) has changed when modified by a view.
For a test I took OpenUI5 walkthrough [example](https://sapui5.hana.ondemand.com/#/sample/sap.ui.core.tutorial.databinding.15... |
2018/03/01 | 975 | 3,635 | <issue_start>username_0: I am trying to aggregrate a collection into an array of documents. This is what I want it to look like.
```
[
{
_id: ObjectId,
points: [
[longitude, latitude],
[longitude, latitude],
[longitude, latitude]
]
},
{
_id: DifferentObjectId,
points: [
... |
2018/03/01 | 604 | 2,733 | <issue_start>username_0: How do I left outer join two tables on two fields in linq?
I have a sql:
```
select a.*, b.* from courselist as a
left outer join Summary as b
on a.subject = b.Subject and a.catalog =
b.Catalogno
... |
2018/03/01 | 319 | 1,071 | <issue_start>username_0: In the Scala tutorials I have been using, I have always seen lists constructed in this manner:
```
(1 :: (2 :: Nil))
```
Is there a difference between this and the non-parentheses version?
```
1 :: 2 :: Nil
```<issue_comment>username_1: Both are same when compiled by *Scala compiler*
```... |
2018/03/01 | 1,070 | 4,197 | <issue_start>username_0: I have created app service for mobile app. Then i have added Authentication to the app service. Then Selected Authentication type as "Log on with Azure AD". It is working fine.
Is it possible to have custom login page instead of browser based login screen?
I was able to get the token by usin... |
2018/03/01 | 674 | 2,326 | <issue_start>username_0: I have a several tasks that are run in sequence; one after the other.
```
Task.Factory.StartNew(() => DoWork1())
.ContinueWith((t1) => DoWork2())
.ContinueWith(t2 => DoWork3());
```
I want to put this inside a loop so they run indefinitely (After `DoWork3()` is done, ... |
2018/03/01 | 445 | 1,648 | <issue_start>username_0: I have automated some actions in JMeter webdriver sampler, in a scenario I am moving to new window, but I am not able to close the newly opened window in that.
`WDS.browser.close()` does not work there. How can I close only the new window and work with parent?
Thanks in advance.<issue_comment... |
2018/03/01 | 1,486 | 5,920 | <issue_start>username_0: I have written code to render my html page( html page is from my local machine) in JavaFX application and now I would like to reload webview whenever the html page(specified) gets modified.
And html modification is done by other application.
Can anyone please let me know how to reload the webv... |
2018/03/01 | 4,819 | 9,793 | <issue_start>username_0: I have four lists with same `len`
```
list1=[26, 26, 26, 27, 27, 27, 27, 28, 28, ..., 100, 100, 100]
list2=[-1, -2, 10, 14, 13, 15, 20, -4, -10,...., 90, 10, -1]
list3=[11, 12, -3, -4, 10, 11, 12, 13, 14, ..., -1, -1, -1]
list4=[50, 60, 70, 90, 30, 40, 20, 20, 10, ...., 20, 20, 20]
```
I ha... |
2018/03/01 | 588 | 2,009 | <issue_start>username_0: I am trying to set up a site ran on Jekyll I haven't updated in awhile (obviously my developer skills are very rusty in general) with Github Pages. Whenever I try, I get this error:
Your site is having problems building: Your SCSS file sass/about.scss has an error on line 1: File to import not... |
2018/03/01 | 1,080 | 3,538 | <issue_start>username_0: I would like to set two different inputs from date and timestamp into a date in UTC at the end. I am not sure if using `replaceAll` function would work.
Inputs:
* string date = "06/04/2019" which the format is "MM/dd/yyyy"
* string timestamp = "15/03/2018 15:46:59.000386 PM -05:00" which the ... |
2018/03/01 | 1,029 | 3,439 | <issue_start>username_0: Let's say if I have `Height = [3, 12, 5, 18, 45]` and plot my graph then the yaxis will have ticks starting 0 up to 45 with an interval of 5, which means 0, 5, 10, 15, 20 and so on up to 45. Is there a way to define the interval gap (or the step). For example I want the yaxis to be 0, 15, 30, 4... |
2018/03/01 | 839 | 2,647 | <issue_start>username_0: I have three class : product1, product2, product3. I can add css to all these class as follows:
```
.product1, .product2, .product3{
// add css here
}
```
But I am looking for more cleaner code to track 1 to 3 followed by 'product' and add css to these. My expectation can be Pseudocode Examp... |
2018/03/01 | 259 | 1,088 | <issue_start>username_0: Although I use git to manage my projects locally, I have started lately to use github. Forgive me if I mistake the terminology but I usually fork a project, then clone it to my local system. I do the changes then I push it to my github repository. Later I am supposed to do a pull request
Is t... |
2018/03/01 | 659 | 2,283 | <issue_start>username_0: HI i have a problem in accessing the data in the object, my object is
```
profile: Object {
"-L6LmpGWAClPdVK-cqvh": Object {
"first_name": "Mithun",
"isActive": true,
"isPrimary": true,
"last_name": "N",
"phoneNumber": "123454649",
"title": "Manager",
"uid": "Vz0p... |
2018/03/01 | 1,586 | 4,659 | <issue_start>username_0: I have below dynamic nested JSON object arrays and I wanted to get the desired output with JavaScript grouped by id from both.
First Array:
```
[
{
"id": "11",
"name": "emp1",
"location": [
{ "name": "abc", "id": "lc1" }
]
},
{
"id": "11",
"name": "emp2",
... |
2018/03/01 | 2,074 | 6,958 | <issue_start>username_0: I am new here, and I developing simple Gallery App in Android, so I am facing some errors, then I want to share it with you.
My App contains **GridView** with **custom layout** and **Adapter**, and Custom layout Contains **Two imageViews**, one is image is the ***Main image*** and the other is ... |
2018/03/01 | 1,245 | 5,296 | <issue_start>username_0: I am using realm in my iOS Swift project. Search involve complex filters for a big data set. So I am fetching records on background thread.
But realm can be used only from same thread on which Realm was created.
I am saving a reference of results which I got after searching Realm on background... |
2018/03/01 | 1,081 | 4,494 | <issue_start>username_0: So, i new in django and djangorestframework. i followed their tutorial in their page. <http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/>
in that tutorial, you can login as django user from djangorestframework api login page. my question is, if i want to make a CL... |
2018/03/01 | 1,205 | 4,654 | <issue_start>username_0: I have two classes, one contains the value I want to maintain and it is declared as [serializable] since I may want to store the results in a file later.
```
namespace WindowsFormsApp1
{
[Serializable]
public class Class1
{
string Something = "";
public Class1(stri... |
2018/03/01 | 866 | 3,272 | <issue_start>username_0: Hi I am trying to split a text file based on paragraphs. I have already split them into a list. However my goal is to extract only those paragraphs which contains just one sentence. Is there any way to do that?
```
My text file is something like this:
paragraph1:
sentence
paragraph2:
sentence.... |
2018/03/01 | 582 | 1,881 | <issue_start>username_0: I'm trying to add a `FuncMap` to my templates, but I'm receiving the following error:
>
> template: "foo" is an incomplete or empty
> template
>
>
>
The parsing of templates worked just fine before I used the `FuncMap`, so I'm not sure why it's throwing an error now.
Here is my code:
`... |
2018/03/01 | 1,592 | 5,857 | <issue_start>username_0: I am working on a small project in which users create accounts in it and then they can add projects, edit projects, see projects. When user adds projects his/her id (available in the session) is also added into the project table. I want to add projects using dynamic codeigniter form. When the *... |
2018/03/01 | 721 | 2,056 | <issue_start>username_0: I have the following data that i want to plot using r (ggplot2 or any other package)
QUESTION IS: What is the best method to visualize in R, to understand the relationship between those who are Happy = Yes, Pay = No and Donate = Yes (and other combinations).
```
AreYouHappy | WouldYouPay | W... |
2018/03/01 | 801 | 2,882 | <issue_start>username_0: I am trying to implement a non-rectangular, multi-dimensional array in C, i.e. something like this:
`[1, 2, [3, [4, 5, [6]]], 7]`
As of now I am using a tree like this:
```
enum item_type { ELEMENT, ARRAY };
struct item {
int value;
struct item *next;
enum item_type type;
};
``... |
2018/03/01 | 723 | 1,946 | <issue_start>username_0: I have an issue with my product images. I have 2 images stacked and when hovering it fades out the top one and shows the bottom. This works good, but I discovered a small issue. If you repeatedly move your mouse over like 20 times, the animation will continue to happen, until all cycles are com... |
2018/03/01 | 880 | 2,580 | <issue_start>username_0: This is my json object:
```
{
id: 3,
cno: 103,
username: 'basha',
name: 'New Complaint',
desc: 'Need bag',
storeId: [ 5, 1 ]
}
```
I want my expected output like this:
```
[
{id: 3,cno: 103,username: 'basha',name: 'New Complaint',desc: 'Need bag',storeId:5},
{id: 3,cn... |
2018/03/01 | 606 | 2,441 | <issue_start>username_0: I'm using Angular and Angularfire2.
I would like to check if a Firestore collection is empty. I'm making a todo app and I would like to show an empty state container as part of the [Material guidelines](https://material.io/guidelines/patterns/empty-states.html).
Here's my data structure:
```... |
2018/03/01 | 640 | 2,520 | <issue_start>username_0: I tried to open a webpage on clicking a button. But, Its not working.
This is my code:
```
ImageButton fbButton = (ImageButton) findViewById(R.id.fb);
fbButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent... |
2018/03/01 | 1,131 | 3,885 | <issue_start>username_0: Did some test to train some data and meet such an error and would like to know what's "tf\_jenkins" folder used for? after checking my environment and there indeed no such directory on my PC, should i create the folder manually or install some other plugin and create the directory automatically... |
2018/03/01 | 655 | 2,358 | <issue_start>username_0: I'm receiving this error when uploading my archive file. I have tried a lot of things and don't know what's going on.
Also there are not similar issues in the web.
Errors are:
```
Destination: Disk quota exceeded (5)
iTunes Store Operation Failed error: 122 (51)
```
;`
```
|seq | result ... |
2018/03/01 | 312 | 1,212 | <issue_start>username_0: I want to use jointjs library with reactjs.
Is there any library or wrapper available which can be used? If not available then what is the simplest way to use it.<issue_comment>username_1: You can use the npm module [joint](https://github.com/clientIO/joint) with your react project.
This modul... |
2018/03/01 | 448 | 1,804 | <issue_start>username_0: How to implement search on all three parameters? When doing a search for organisationName everything works as do all? Thank you very much!
```
func filterTableView(text:String) {
dataArray = initialDataAry.filter({ (mod) -> Bool in
return mod.organisationName
... |
2018/03/01 | 570 | 1,861 | <issue_start>username_0: I want to list the last 1 hour files which has `.sh` extension.
I am currently using the following:
`ls -l *.sh | find "/root/" -mmin -60 | awk '{print $9}'`
However this command isn't working as expected.
Can anyone help me? Thank you in advance.<issue_comment>username_1: You can just use a... |
2018/03/01 | 308 | 927 | <issue_start>username_0: **visions:**
* angular: 2.4.9
* ag-grid-angular: 16.0.0
* bootstrap: 4.0.0-alpha.5
* ngx-bootstrap: 1.6.6
I use ag-grid to frozen the first two column of table, and then overwrite tooltip width which is longer than the second column. Then it looks like this:
[enter image description here](ht... |
2018/03/01 | 915 | 3,303 | <issue_start>username_0: I am trying to modify this [project](https://github.com/Microsoft/WPF-Samples/tree/master/Sample%20Applications/PhotoViewerDemo) for showing images in a directory. But the problem is that the code does not work for all images like [this](http://www.leckey.com/images/uploads/Upload%20group1.jpg)... |
2018/03/01 | 1,654 | 7,215 | <issue_start>username_0: My MongoDB version is 3.6.3
An example of my collection:
```
/*A snippet of my collection*/
/* 1 */
{
"_id" : ObjectId("5a81a0de19a4ea2a8b119baa"),
"Site" : 123,
"Event" : "AnEvent",
"SubEvent" : "MoreDetails",
"Level" : 2
}
/* 2 */
{
"_id" : ObjectId("5a81a0de19a4ea2... |
2018/03/01 | 687 | 2,448 | <issue_start>username_0: I want to count the occurence of word in file with reduce in java8 any help appreciated i do not want to use Collector or Map so far my code is ;
```
filecontent.flatMap(line->Stream.of(line.split("\\s+")))
.map(String::toLowerCase)
.collect(Collec... |
2018/03/01 | 520 | 2,002 | <issue_start>username_0: Currently I am working with Rest API(Spring MVC). UI Part is developed in Angular JS. this project will integrate any of the domain.
For example : **www.xyz.com** containing my register button
**www.abc.com** also may contain my register button.
When the request I received from user, I need ... |
2018/03/01 | 432 | 1,683 | <issue_start>username_0: I'm coding a website in CodePen and I've been working on it on my laptop (Macbook Air 13") and so I've been setting my parameters to look good on that size screen apparently, because when I opened up my same code on my Mac Desktop, things were not aligned the way and I needed them to be. I'm us... |
2018/03/01 | 798 | 2,706 | <issue_start>username_0: Not sure if this script is original or from an internet source but I inherited this for a Windows system that's running PostgreSQL.
However this script only backs up individual tables. I would like to modify it so that it does a pg\_dumpall of the Postgres so that everything is included (such ... |
2018/03/01 | 1,534 | 5,009 | <issue_start>username_0: Whenever I want to run my project i get the following error
>
> Error:Execution failed for task
> ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException:
> com.android.ide.common.process.ProcessException:
> java.util.concurrent.ExecutionException: co... |
2018/03/01 | 1,000 | 3,389 | <issue_start>username_0: Xamarin Forms uses one Activity for rendering all the Pages. Basically a Page is an Android child view or fragment. Why not have each Page be an Activity? This is in contrast with how Xamarin forms does it for iOS. On iOS, a Page is a UIViewController.
I'm NOT asking how Xamarin Forms works in... |
2018/03/01 | 1,445 | 6,114 | <issue_start>username_0: I'm a beginner in programming. I have a function outside of the activity that when the user types inside EditText the application displays an x to clear the form. When I call this function the error occurs:
`android.content.res.Resources android.content.Context.getResources ()` on a null object... |
2018/03/01 | 1,217 | 4,675 | <issue_start>username_0: ```
php
include('config.php');
$emailErr = $passwordErr = $log_in_wrong = "";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$email = $_POST["email"];
$password = $_POST["password"];
if (empty($_POST["email"])) {
$emailErr = "Your email is required ";
}
if (empty($_POST["password"])) {
$pa... |
2018/03/01 | 808 | 2,437 | <issue_start>username_0: I have two tables
```
tblTenant
idTenant Name
1 Hello
2 World
3 Foo
4 Bar
tblPhone
idTenant idPhoneType PhoneNum
1 23 31445
1 24 43123
1 25 90899
2 23 90937
... |
2018/03/01 | 3,197 | 10,438 | <issue_start>username_0: I've implemented jquery grid on the project, the edit function on a particular row or checkbox, and click on the edit button, it will open a modal and it works as expected, but when I click on the select all checkbox and click on edit button it will not open modal.
I've attached a code snippet... |
2018/03/01 | 913 | 3,101 | <issue_start>username_0: I'm trying to make a Django form with dynamically pre-populated fields: that is, when one field (`checkin_type`) gets selected from a drop-down menu, other fields get automatically pre-populated with corresponding data. To this end, I would like to send a POST request to the server as soon as a... |
2018/03/01 | 1,781 | 6,669 | <issue_start>username_0: I am learning C# and in order to train, I would like to make a PowerPoint addin asking questions.
The addin (a panel on a side) :
* prints questions like "how many grammes are there in 1.3kg ?"
* waits the answer of the user in a textbox in the addin (BUT does not block entire PowerPoint UI)
... |
2018/03/01 | 748 | 2,919 | <issue_start>username_0: In internet, I see only add parameter to HTTP request like below.
```
this.headers.append('Content-Type', 'application/json');
this.headers.append('Accept', 'application/json');
this.headers.append('Access-Control-Allow-Credentials', 'true');
```
I cannot find how can I get HTTP reque... |
2018/03/01 | 485 | 1,563 | <issue_start>username_0: I want to execute Query A but I would like to execute Query A using Query B. One way to accomplish this is to spool out the result of Query B to a sql file and run. I would prefer to accomplish this task using PL/SQL.
--Query A
```
delete from
tableA
where
id=4;
```
--Query B
```
select 'd... |
2018/03/01 | 732 | 2,738 | <issue_start>username_0: My Spring Reactive Web API should be able to filter based on query parameters but I'm struggling to get this right.
```
GET /v1/address?type=business
```
Should return all addresses of type 'business' in the system (just an example since I'm not posting the actual requirements). If the param... |
2018/03/01 | 1,303 | 5,347 | <issue_start>username_0: I use the following in the `pom.xml` which is actually securing the **root** **route**,
I see the authentication process starting in the browser for few seconds
```
CsrfFilter
org.apache.catalina.filters.RestCsrfPreventionFilter
CsrfFilter
/\*
```
Now I've specific routes that I need t... |
2018/03/01 | 1,044 | 3,847 | <issue_start>username_0: ```
def write_to_csv(file_name, header, numpy_data):
with open(file_name, "w", newline='') as csv_file:
writer = csv.writer(csv_file, delimiter=',')
header = [header]
for line in header:
writer.writerow(line)
for line in numpy_data:
i... |
2018/03/01 | 11,085 | 38,274 | <issue_start>username_0: A grid is implemented using the CSS flexbox. [Example:](http://jsbin.com/jumosicasi/edit?html,css,js,output)
[](https://i.stack.imgur.com/aRSuq.png)
The number of rows in this example is 4 because I fixed the container width ... |
2018/03/01 | 2,312 | 8,364 | <issue_start>username_0: I am trying to instrument a big C code base. The code base can be built with GCC and MS cl.exe. The code base contains millions of lines. I am trying to instrument it for code coverage. Because the runtime environment is special, I have to do the instrumentation in a special way.
I have writte... |
2018/03/01 | 902 | 2,464 | <issue_start>username_0: I'm having trouble looping through the lines returned by sed that are stored in a variable.
Currently it looks a bit like this
```
lines=$(sed -rne '/'"$timestamplastupload"'/,/'"$timestampnow"'/ p' /var/log/test.log)
for line in "$lines"; do
echo "This line is: $line"
done
```
... |
2018/03/01 | 516 | 1,624 | <issue_start>username_0: ### Problem
`Outlook` adds `x` at the end of an input field in `Outlook add-in` panel when I enter data and binds a `click` event to it that clears the data in it.
I need to add logic to the click event, but I can't find that `x` in the DOM.
### Environment
* Windows 10
* Outlook 2010 (loo... |
2018/03/01 | 1,618 | 6,277 | <issue_start>username_0: The server is bound to two sockets on port#s: **`6666`** ( to service an SMS send request from client ) and **`6661`** ( to service an EMAIL send request from client ).
Since I want to service them differently, I must first know on which port the request has come, so that I can execute a code ... |
2018/03/01 | 703 | 2,320 | <issue_start>username_0: I have database that has 12 columns of numeric data - one column for each month.
Column names are
```
Jan, Feb, Mar. Apr, May, Jun, Jul, Aug, Sep, Oct, Nov and Dec.
```
I know how to write code to sum first 3 months (Jan, Feb, and Mar) and return value in Total.
```
SELECT Jan+Feb+Mar A... |
2018/03/01 | 322 | 929 | <issue_start>username_0: I little bit stuck in SQL datetime format, I'm using `datetime` format because of sorting reasons.
The issue come that MySQL expect date in `yyyy-mm-dd hh:mm:ss` format and I need in exactly the opposite `dd-mm-yyyy`. There is some way pass and get in different format using PHP?
.<issue_comme... |
2018/03/01 | 1,258 | 4,545 | <issue_start>username_0: I just created this function to check the equality between two strings by subtracting their Integer values
```
int EQ(const char* CString1, const char* CString2)
{
return CString1 - CString2 == 0;
}
```
However, I'm not sure if this is a safe way to check for `char*` Strings
It won't wo... |
2018/03/01 | 777 | 2,322 | <issue_start>username_0: I have the following list:
```
List l=new List{"a","b","c","d","1","2","3","4","a1","b2","c3","d4"};
```
And I have `oldIndex`,`size` and `newIndex`.
Let's say for the above list `oldIndex = 4`,`size = 4`,`newIndex = 0`.
The output list I would like is:
```
{"1","2","3","4","a","b","c","d... |
2018/03/01 | 695 | 2,091 | <issue_start>username_0: I have an array with `id` and `des` elements. i want to add extra element like `value:0` in that `array`. So i have tried it with a loop and done it.
```
let data = [
{
"id": 1001,
"des": "aaa"
},
{
"id": 1002,
"des": "aaa"
}
];
for (let i = 0;... |
2018/03/01 | 445 | 1,542 | <issue_start>username_0: When i render a canvasJS-chart to a div container, how can i get access to the chart object through the div-Container? i dont want to make the chart variable global.
I want to use it as: var chart=$(“#container”).canvasJS();
Any ideas please.
Answer in this link is not working
<https://canva... |
2018/03/01 | 1,212 | 3,928 | <issue_start>username_0: I am working on `yii2`. In my project, I am using a module named `SIM Management` in which there is `SIM List`, `SIM Issue` and `SIM Return`. `SIM List` have `issued_to` and `returned_by` fields, which tells the user that which sim was issued and returned back to which user.
Now I want to do ... |
2018/03/01 | 283 | 835 | <issue_start>username_0: I need to read a file with 3 lines
backuplist.txt
/etc/
/home
/boot
and append it to a single variable to compress it
```
#!/bin/bash
cat backuplist.txt |
{
while read -r line
do
echo $line
/bin/tar -zcf /backup/test.tar.gz $line
done
echo $line
}
```
While running the script the tar f... |
2018/03/01 | 586 | 1,993 | <issue_start>username_0: How May I print cookies value in the form attribute?
This is the code that I am trying.
```
if(req.body.remember_me){
res.cookie("cookie_email_id", req.body.email);
res.cookie('password', req.body.password);
}else{
res.clearCookie("cookie_email_id");
res.clearCookie("password"... |
2018/03/01 | 788 | 2,385 | <issue_start>username_0: I have few telephone number like this:
```
Tele
-----
251510X25
364680X5
12345,X34
12345X
x57823889
1234567X12/7
1234567X,12/7
```
I want rto get the telephone having numeric befo... |
2018/03/01 | 1,218 | 3,891 | <issue_start>username_0: I want to parse a website's followers count with BeautifulSoup. This is what I have so far:
```
username_extract = 'lazada_my'
url = 'https://www.instagram.com/'+ username_extract
r = requests.get(url)
soup = BeautifulSoup(r.content,'lxml')
f = soup.find('head', attrs={'class':'count'})
```
... |
2018/03/01 | 1,622 | 4,423 | <issue_start>username_0: So I want the number to stay always stay between 0 and 359 even if it goes over to 360, 361, 362, 363... etc or under to -1, -2, -3, -4.. etc whenever I call any of the methods below.
Say if it goes over to 360 I want it to change back to 0 etc and if it goes under to -1 I want it to change to ... |
2018/03/01 | 1,287 | 3,439 | <issue_start>username_0: I am trying to pass router context to `sidebar` component I am getting this error A may have only one child element Error in react.
```
return (
{({ router }) => (
{isAuthenticated &&
}
)}
);
```<issue_comment>username_1: ```
if (heading < 0) { heading += 360;}
```
works for head... |
2018/03/01 | 727 | 1,747 | <issue_start>username_0: I have 3 int arrays
```
var x= new int[] { 1, 1, 2, 2, 2 };
var y= new int[] { 2, 2, 3, 2, 4 };
var z= new int[] { 1, 2, 1, 3, 3 };
```
And I would like to create a 5 rows 3 columns jagged array, like this:
[](https://i.st... |
2018/03/01 | 1,287 | 3,863 | <issue_start>username_0: I have json like this :
```
var data = {
"items":[
{
"id":"asd01231987391",
"sku":"ABC-0128712",
"product":"product abc",
"desc":"this is abc product",
"price":1200,
"qty":1
}
]
}1400;
```
and i use replace for edit/custom the '1400' value to "total":1400,so i can get value from 2 rows json,... |
2018/03/01 | 1,139 | 4,171 | <issue_start>username_0: I am on Ubuntu 16.04.4 LTS. Currently learning Julia. Julia uses PyPlot as it backend for plotting. PyPlot requires Python and matplotlib installed on system.
My Ubuntu came with both Python(2 & 3) installed. I installed matplotlib using this command `sudo apt-get install python3-matplotlib` ... |
2018/03/01 | 377 | 1,469 | <issue_start>username_0: I am trying to implement simple `canActivate` in my `Auth` service
```
import {CanActivate,ActivatedRouteSnapshot} from '@angular/router';
export class Auth implements CanActivate{
canActivate(
next: ActivatedRouteSnapshot,
state: ActivatedRouteSnapshot
): Observable... |
2018/03/01 | 451 | 1,843 | <issue_start>username_0: I want to run below scenario with Jmeter, is it possible?. Please help on this
Scenario
========
I have 20 queries, These queries should run concurrently with 5 threads and each thread should complete all 20 queries.
But at any given point time all threads should run different queries (.i.... |
2018/03/01 | 607 | 2,495 | <issue_start>username_0: Write a query to list the different offices (their address), count of the number of employees at that office and the number of orders that employees at that office were sales representatives for.
So far this is what I have come up with in mysql:
```
SELECT Offices.addressLine1,
Offic... |
2018/03/01 | 579 | 2,073 | <issue_start>username_0: I'm only allowed to use the given parameters. I can't wrap my head around the thought of finding the index of the target. Any ideas?
```
#include
int RecBinarySearch(int arr[], int len, int target) {
if (len <= 0)
return 0;
int mid = len/2;
if (target == arr[mid]){
return 1;
}
if ... |
2018/03/01 | 554 | 2,271 | <issue_start>username_0: I have created a step function in aws. Name of my state machine is 'TestStep'. which is used to iterate a number from 1 to 1000.
I have created an IAM Role which has "AWSStepFunctionsFullAccess" policy.
I created one java lambda to access this step function. My code is given below.
```
fin... |
2018/03/01 | 299 | 967 | <issue_start>username_0: I am trying to add a simple column in my table in MySQL but it is giving syntax error:
>
> Error Code: 1064
>
>
> You have an error in your SQL syntax;
>
>
>
Code:
```
ALTER TABLE `user`
ADD classname VARCHAR 150 NULL AFTER id;
```<issue_comment>username_1: try:
```
ALTER TABLE `use... |
2018/03/01 | 735 | 2,849 | <issue_start>username_0: <https://bisqwit.iki.fi/story/howto/openmp/>
>
> The simd construct (OpenMP 4.0+) OpenMP 4.0 added explicit SIMD
> parallelism (Single-Instruction, Multiple-Data). SIMD means that
> multiple calculations will be performed simultaneously by the
> processor, using special instructions that p... |
2018/03/01 | 756 | 2,945 | <issue_start>username_0: I have an ajax function in jQuery that returns me a list of JSON object. From the data, I want to populate a timeline which is defined as follows:
**Timeline**
```
$('#timeline-container-basic').timelineMe({
items: [
{
type: 'smallItem',
label: 'Name',
shortContent: '... |
2018/03/01 | 1,128 | 4,232 | <issue_start>username_0: I am working on ios app current I m facing the problem. I have three text fields and I want from the user to give numeric digit input in these fields i.e 1 2 3 etc.but in Numeric keypad there is also an option for Arabic digits . is there any way to remove Arabic digit option from keypad?<issue... |
2018/03/01 | 1,265 | 3,916 | <issue_start>username_0: I developed an inventory system that is required to track each number of serial number of items when the user decided to registers an item.
The system will generate serial numbers based on given initial serial number and end serial number that is seen on the box. So let say a box of item has ... |
2018/03/01 | 1,062 | 3,893 | <issue_start>username_0: I am new in ReactJS and starting my first app with React. I've been watching videos and going through various tutorials and finally managed to scaffold my first ReactRedux app with Login.
I've used [AuthWorkflow](https://reacttraining.com/react-router/web/example/auth-workflow) example of Rea... |
2018/03/01 | 522 | 1,882 | <issue_start>username_0: My code is
```
Afghanistan
"
```
It is a Dropdown. Kindly help me to select all the countries one by one using protractor.
I have tried this
```
element.all(by.repeater("item in countryList").row('1')).click();
```<issue_comment>username_1: You need to pass on the `...rest` params tha... |
2018/03/01 | 1,714 | 5,084 | <issue_start>username_0: I am trying to fetch monthwise total amount for the current financial year and the last financial year . I cannot hard code the date . It should be based on the current date .The date column is in the following format 13-JAN-10
and amount is in integer format.
**I want it in the following for... |
2018/03/01 | 890 | 3,021 | <issue_start>username_0: I have two cloud functions that negate each other, shown below:
```
exports.onPostLiked = functions.database.ref('userpostlikescomments/{uid}/{pushId}/likes/list/{uid2}')
.onCreate(event => {
//runs w/o error
const numsRef = event.data.ref.parent.parent.child('num');
numsRef.tr... |
2018/03/01 | 976 | 3,412 | <issue_start>username_0: Is there a way in VBA to sort a column using it's header name? Since the column may change regularly, I cannot reference the column number to sort it, I need to use the column header for sorting. For Example, I have *Order status* (column header) in Column C and I need to sort this *Order statu... |
2018/03/01 | 333 | 1,372 | <issue_start>username_0: I am little confuse about how to implement this especially for routing, how i handle routing for backend and front end and how about i using source (css, html , js ) which it will be different between front and back. thank you.<issue_comment>username_1: Yes, that can be achieved using MEAN stac... |
2018/03/01 | 1,279 | 4,057 | <issue_start>username_0: I am trying to replace text value as below. I have 2 text file
1 - input.txt
```
abc = 123
xyz = 456
pqr = 789
```
2 - content.txt
```
AAA = abc
XXX = xyz
PPP = pqr
```
now I need to read the input.txt file and replace value on content.txt file with input.txt values and get the below o... |
2018/03/01 | 916 | 2,728 | <issue_start>username_0: I use python3, seaborn countplot, my question :
1. how to add the count values for every bar? Show the label at the top of
each bar?
2. how to have these bars in descending order?
I wrote this:
```
fig = plt.figure(figsize=(10,6))
sns.countplot(data_new['district'],data=data_new)
plt.show()
... |
2018/03/01 | 916 | 3,368 | <issue_start>username_0: I have logged into a website page using automation code (Selenium) but now there are fields in which data needs to be entered
But how to do this using Selenium?
How to write the code for it?<issue_comment>username_1: Use sendKeys method.
```
driver.findElement(By.id("InputBox_ID")).sendKeys("... |
2018/03/01 | 1,407 | 5,546 | <issue_start>username_0: I have the following code to be executed from a file infinitely. The list file has only 5 records for testing purpose. For performance, I wanted to execute the test overnight with the same data over and over again. Please suggest how to increment the executions.
```
list.txt file has the follo... |
2018/03/01 | 700 | 2,443 | <issue_start>username_0: How can i validate single model in multiple model
Here are my two Model
ModelA
```
public class ModelA
{
[Display(Name = "Test1")]
[Required(ErrorMessage = "Test1 is required.")]
public string Test1 { get; set; }
}
```
My Second Model ModelB
```
public class ModelB
{
[Displ... |
2018/03/01 | 1,061 | 4,406 | <issue_start>username_0: I'm trying to set up both Confluence and PostgreSQL in Docker. I've got them both up and running on my fully up to date CentOS 6 machine, with volume-mapping to the host file system so I can back them up easily. I can connect to PostgreSQL using pgAdmin from another machine just fine, and I can... |
2018/03/01 | 264 | 917 | <issue_start>username_0: I have a C# Publisher-Subscriber project intended to make use of the `MSMQ service` in Windows. The code was developed in `.Net Framework 4`. I want to run it in `.Net Core`. But I am getting the error
>
> "The type or namespace name "Messaging" donot exist in the namespace System".
>
>
>... |