date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/26 | 360 | 1,173 | <issue_start>username_0: I created a vue object for data reactivity :
```
let vm = new Vue({
data () {
return {
myData: {}
}
},
watch: {
myData (value) {
console.log('changed')
}
}
})
```
When I push / edit / delete into `vm.myData`, all is ok, the watcher send me `changed`.
Now,... |
2018/02/26 | 725 | 2,371 | <issue_start>username_0: I am working on a large table (say 100\*100) in HTML. So, unable to provide every element its id/class. And I want to change the bg color of the cell which is clicked (by means of javascript). How would I know which cell is clicked or please suggest me any other alternative to do the same.<issu... |
2018/02/26 | 635 | 2,208 | <issue_start>username_0: strange problem and I can't find the issue. The following code copies filtered entries into a new txt and should print the number of entries, that the only\_iphone.txt file contains (in lines) in the end.
The result is always 0. When I open the txt, however, it contains entries.
Am I missing... |
2018/02/26 | 513 | 1,733 | <issue_start>username_0: I have a dataset of three columns which looks something like this:
```
X1 X5 X1
X2 X9 X2
X3 X3 X5
X4 X8 X3
X5 X1 X4
```
I want to search for the variable which is present in all the columns. In this case, the output would be,
```
X1
X3
X5
```
Can someone pl... |
2018/02/26 | 369 | 1,371 | <issue_start>username_0: I am trying to list of my users table's username in combobox. I find a dblookupcombobox for this. But it does not show anything.
I set the datasource to my `dsUser` and datafield to `username`. But it does not show anything. Also i open `ADQueryUser.Open` in formcreate.
If i use `TDBCombobo... |
2018/02/26 | 254 | 963 | <issue_start>username_0: I'm trying to install Backpack base using this comand: php artisan backpack:base:install
After few seconds I receive this error:
[](https://i.stack.imgur.com/TKclk.png)
I tried to install backpack/generators manually but the... |
2018/02/26 | 252 | 1,000 | <issue_start>username_0: I am planning to integrate a paid 3rd party SDK to my app. For that, 3rd party team asked to share my app package name and MD5 signature of app (Which is generated using another app provided by 3rd party company). I just want to know whether sharing the MD5 signature of my app affects the secur... |
2018/02/26 | 814 | 3,269 | <issue_start>username_0: I was experimenting in some global API-parser (to check net-connection, call API & return formatted data by a single call from source) for Android using Kotlin & at some point I had to create a generic type of `object` as like the following snippet, when found the compilation error at the 1st l... |
2018/02/26 | 1,065 | 3,173 | <issue_start>username_0: I have the following array that I need to loop through:
```
var arr = [{
"id": 111,
"wbs_name": "Mechanical",
"parent": 'root',
}, {
"id": 222,
"wbs_name": "Electrical",
"parent": 111,
}, {
"id": 333,
"wbs_name": "Systems",
"parent": 111,
},]
```
My output should be like th... |
2018/02/26 | 923 | 2,790 | <issue_start>username_0: I am trying to determine whether a specific digit exists in a String, and do something if so.
See code example:
```
String pass = "<PASSWORD>";
int i = 4, j=6;
if( /* pass contains i, which is true*/)
// ..do something
if( /* pass contains j, which is false*/)
// ..do something
```
... |
2018/02/26 | 828 | 2,982 | <issue_start>username_0: I have been working on a simple dictionary based android application so i thought to search for best practices to be used in the development. So i searched for the best methods for getting time and date but i found so many methods all resulting into date and time.
For example: [Java - How to g... |
2018/02/26 | 936 | 3,838 | <issue_start>username_0: [Picture Click here](https://i.stack.imgur.com/IRkua.jpg)
How to search products by their categories associated with them if the categories links are navigation.
1. I have created a Category table = category\_id, product\_category
2. I have added product\_category in the products table as we... |
2018/02/26 | 1,522 | 4,864 | <issue_start>username_0: Original Dataframe
```
+-------+---------------+
| col_a | col_b |
+-------+---------------+
| 1 | aaa |
| 1 | bbb |
| 1 | ccc |
| 1 | aaa |
| 1 | aaa |
| 1 | aaa |
| 2 | eee |
| 2 | ... |
2018/02/26 | 1,045 | 2,651 | <issue_start>username_0: I have this sought of array
```
{
"arr": [
{
"obj": [
{
"reg_at": 1519615460064,
"id": "367790083"
},
{
"reg_at": 1519615460064,
"id": "41370460"
}
]
},
{
"obj": [
{
"reg_... |
2018/02/26 | 1,018 | 3,018 | <issue_start>username_0: I'm currently doing measures on the quality of a video youtube depending on given network conditions. I wrote a custom Chrome extension to play videos and get buffering informations thanks to the [youtube player api](https://developers.google.com/youtube/iframe_api_reference).
What I would nee... |
2018/02/26 | 2,330 | 5,738 | <issue_start>username_0: When I create the object the values appear correct inside the db; however, when I try to edit the values the select tag values they appear wrong.
I have a different form for edit:
```
<%= form_for(@opening_hour, url: store_opening_hours_update_path) do |form| %>
<%= form.select :day, [['Se... |
2018/02/26 | 763 | 3,282 | <issue_start>username_0: I followed a tutorial on how to parse from a JSON file and preload a sqlite database according to this:
<https://medium.com/@jamesrochabrun/parsing-json-response-and-save-it-in-coredata-step-by-step-fb58fc6ce16f>
In this method the parsed data, which is an array of dictionaries, gets mapped:
... |
2018/02/26 | 238 | 822 | <issue_start>username_0: I have option and input field:
```
Full selected user info : {{ person.username | json}}
```
I want to set input variable every time option is chosen.
Here is [fiddle](http://jsfiddle.net/xr82a1gL/6/). It works fine if I remove `data-ng-repeat="person in persons"` But I need to be able to a... |
2018/02/26 | 715 | 2,531 | <issue_start>username_0: Hello guys a part of a school exercise is to print out the `.length` of numbers in my textarea. In other words also if there are strings in the textarea it should only count the numbers.
HTML:
```
Kommentar:
<NAME>
```
Javascript:
```
/*Anzahl Ziffern in der Kommentarbox*/
function zko... |
2018/02/26 | 718 | 2,231 | <issue_start>username_0: I have a bunch of product code that I wish to shorten and add some character all at the same time. would that be possible?
e.g.:
`811C994/2082I`
`811C1000/CT220`
I would like to remove the the first 3 character of the product code (i.e. 811) and all character after "/" (inclusive of "/"... |
2018/02/26 | 436 | 1,474 | <issue_start>username_0: I'm trying to make the bootstrap tab accessible - the screen reader should read tabs as <http://accessibility.athena-ict.com/aria/examples/tabpanel2.shtml> (tab 1 of 1/ tab 1 of 2) but the bootstrap tabs always reads as tab 1 of 1 for all the tab items. If I give the role="tab" to the `li` item... |
2018/02/26 | 5,947 | 18,690 | <issue_start>username_0: I've got a very simple query that have to group the results by the field from the joined table:
```
SELECT SQL_NO_CACHE p.name, COUNT(1) FROM ycs_sales s
INNER JOIN ycs_products p ON s.id = p.sales_id
WHERE s.dtm BETWEEN '2018-02-16 00:00:00' AND '2018-02-22 23:59:59'
GROUP BY p.name
```
T... |
2018/02/26 | 694 | 2,334 | <issue_start>username_0: I have the following c++ code in visual studio to read characters from a file.
```
ifstream infile;
infile.open(argv[1]);
if (infile.fail()) {
cout << "Error reading from file: " << strerror(errno) << endl;
cout << argv[0] << endl;
}
else {
char cur... |
2018/02/26 | 719 | 2,247 | <issue_start>username_0: I have a situation as shown on SS below.
[](https://i.stack.imgur.com/xRlml.jpg)
I am testing some web app with selenium (java) and in one moment I got 4 pop-ups at the same time. I want to dismiss them all, but actually I can't ... |
2018/02/26 | 907 | 3,044 | <issue_start>username_0: I am trying to get the phone contacts and store it in a Hashmap. I want to save that locally and use it anywhere in the project.
Following is my code to get phone contacts:
```
public HashMap getPhoneContacts() {
ArrayList contactList=null;
ContentResolver cr = getContext().getConten... |
2018/02/26 | 1,441 | 5,379 | <issue_start>username_0: I'm trying to create `ListView` with custom adapter but I get this error
>
> Error:(291, 29) error: constructor Rijekdetailadapter in class
> Rijekdetailadapter cannot be applied to given types; required:
> Context,String[],String[],String[],String[],String[] found:
> Rijekdetail,ArrayList... |
2018/02/26 | 1,258 | 4,463 | <issue_start>username_0: Why doesn't
```js
let=0
```
show any syntax errors but
```js
var=0
```
does? (I test it on Safari)
However I tried
```js
console.log(let)
```
but it has errors and seems 'let' is not a already defined variable. Why would that happen?<issue_comment>username_1: `var` is a reserved word and... |
2018/02/26 | 3,318 | 10,086 | <issue_start>username_0: I use tokens generated by an authentication service for my app. No problems there. Now I have introduced Swashbuckle to document my API an I can authenticate as follows by sending the JWT with every request using this code;
```
services.AddSwaggerGen(c =>
{
var a = new ApiKeyScheme();
... |
2018/02/26 | 491 | 1,818 | <issue_start>username_0: I have this code, but it shows error:
```
extension Collection {
func removingOptionals() -> [Element] {
var result = [Element](); // Error: cannot call value of non-function type '[Self.Element.Type]'
self.forEach({ (element) in if let el = element { result.append(el); } ... |
2018/02/26 | 519 | 1,408 | <issue_start>username_0: I have a multidimensional array that returns undefined after the last value of every sub-array. Here is my code:
```js
var bigArray = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[10, 11, 12]
];
for (i = 0; i < bigArray.length; i++) {
for (j = 0; j <= bigArray[i].length; j++) {
co... |
2018/02/26 | 744 | 3,186 | <issue_start>username_0: I have a REST service, built using Java, Spring-boot and using Spring Security with Basic Access Authentication. There are no Views, no JSP etc, no 'login', just stateless services which can be called from a React app hosted separately.
I've read a variety of documentation about CSRF protectio... |
2018/02/26 | 1,437 | 5,136 | <issue_start>username_0: I'm building an auto-complete menu in Vue.js backed by Firebase (using vue-fire). The aim is to start typing a user's display name and having match records show up in the list of divs below.
The template looks like this:
```
{{ user.name }}
```
Upon clicking a potential match the intentio... |
2018/02/26 | 748 | 2,905 | <issue_start>username_0: I have a Jersey client which performs post request to some black box service.
Also I have POJO mapping feature enabled.
I have integration tests already, they are calling real black box service.
Now I need to test my application without calling real black box service.
**My question ... |
2018/02/26 | 346 | 1,439 | <issue_start>username_0: When I run a Spark job from Zeppelin, the job finishes with success, but it stays in YARN on mode running.
The problem is the job is taking a resource in YARN. I think that Zeppelin persists the job in YARN.
How can I resolve this problem?
Thank you<issue_comment>username_1: There are two sol... |
2018/02/26 | 861 | 3,242 | <issue_start>username_0: I want to create tab bar dynamically based on server response. Tab count will change every time. And how to design the views all view have the same design only data will change<issue_comment>username_1: suppose you have vc1,vc2,vc3
```
self.tabBarController.viewControllers = [vc1,vc2,vc3]
```... |
2018/02/26 | 874 | 3,455 | <issue_start>username_0: I am able to access DOM elements components like below
```
declare var jQuery: any;
declare var $: any;
//component stuff
$('.my_class').innerHeight();
```
I am trying to implement the same inside the service class, but dom elements and template is not accessible in the service class.
p.... |
2018/02/26 | 1,363 | 5,152 | <issue_start>username_0: I have a collectionView with horizontal scroll direction and paging enabled, now I want to make it scroll as smoothly as the games section on the AppStore.
To be more specific this is how I want the first cell to be:
**EDIT**
>
> I actually achieved both of the next images one with the smal... |
2018/02/26 | 760 | 2,521 | <issue_start>username_0: I want to add a transition property to an element which contains text coming from an angular controller.
I want to move it from right to left when the document loads. Is there any way to do that. here is my sample code.
**Index file excerpt**
```
* {{log.date}}
**{{log.module}}**Β Β {{log... |
2018/02/26 | 1,745 | 5,608 | <issue_start>username_0: I am trying to group related JavaScript objects in an array by key.
But, I'm at stuck at a point.
I have a JavaScript object array something like this:
```
[
{
"text": "<NAME>",
"startPos": 0,
"endPos": 12,
"value": "hello world",
"entity": "Greeti... |
2018/02/26 | 671 | 2,681 | <issue_start>username_0: Being new to Java but an old hand on older procedural languages and structured programming, I have a question on how to accomplish something in Java
I have three classes, let's say they're called CLASSA, CLASSB, and TESTCLASSA. CLASSA has a class definition with instance variables, and a const... |
2018/02/26 | 885 | 3,490 | <issue_start>username_0: [](https://i.stack.imgur.com/c0jBc.jpg)
I want for the buttons to have white background and blue title when highlighted. I have an extension of UIButton to set its background color.
```
extension UIButton {
func setBackgr... |
2018/02/26 | 1,053 | 4,114 | <issue_start>username_0: I have a class named Question in which I would like to have some tags from dropdown list for easier searching, tags would be in separate class because I would like to add them separately.
First class **Question**:
```
public int Id { get; set; }
public string Description { get; set; }
```
S... |
2018/02/26 | 923 | 3,498 | <issue_start>username_0: I have a program that is moving data between two tables in a database. For this, I am using a SQL query and the `System.Data.SqlClient` package.
All of a sudden, this query throws an error when executing.
`SQLCommand.ExecuteNonQuery` is throwing:
>
> Conversion failed when converting date an... |
2018/02/26 | 789 | 2,496 | <issue_start>username_0: My trouble is to read a string from `test.txt` and type it in as a console command.
Example:
user is asked to provide a path to their sandbox folder and at the same time in a console it is already offered (from a saved `test.txt`), only waiting for the user to hit ENTER
```
Path to your sandb... |
2018/02/26 | 641 | 1,923 | <issue_start>username_0: How to update a `varchar(max)` column to an empty string from null value?
Here is the pseudo code:
```
UPDATE tablename
SET all varchar(max) columns =''
WHERE varchar(max) == NULL
```
Need to create something like this, any help will be appreaciated!<issue_comment>username_1: By combining... |
2018/02/26 | 827 | 2,682 | <issue_start>username_0: How do I make a combo box password or button password? I got this code and it does not work.
```
Public Class Form1
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.Text = "5" Then
... |
2018/02/26 | 430 | 1,426 | <issue_start>username_0: I'm trying to add a property to the all allIco's object from the tgram array / axios api call. When I add the property using .map its value is undefined. I know it's because my api call is asynchronous but I can't figure out how to add an axios.all...any help would be appreciated :)
```
var... |
2018/02/26 | 354 | 1,242 | <issue_start>username_0: I have a table which is storing salary slip record along with the date it was created. By default I want to show the current month's records.
I want to find all records from the current month. Some slips might be generated on 1st of month some on 10th but it should show all rows of the given ... |
2018/02/26 | 333 | 977 | <issue_start>username_0: This is my function
```
int nepresnost_N2(int S){
int N2, N2_1, N2_2;
N2_1 = -S/10;
N2_2 = S/10;
N2 = rand() % (N2_2 + 1 - N2_1) + N2_1;
printf("%i", N2);
}
```
I dont know how to make conditions for (without 0).
Any ideas, thanks :)<issue_comment>username_1: The ... |
2018/02/26 | 255 | 891 | <issue_start>username_0: I need a job in Jenkins that every time is running keeps only the last file created in a folder and discard all the older ones.
I'm not sure how to do it.
Any suggestion welcome<issue_comment>username_1: The only way I see is to perform map and setState every time there is a response from the ... |
2018/02/26 | 734 | 2,815 | <issue_start>username_0: I have a function which checks the settings and permissions before the start of the application, and if everything goes through, it selects what version to run and accordingly changes the main form.
```
function SomeControlFunction: Boolean;
var
lMainForm : TForm;
begin
if SomePermission t... |
2018/02/26 | 735 | 1,924 | <issue_start>username_0: I'm working on a Spark dataframe containing this kind of data:
```
A,1,2,3
B,1,2,3
C,1,2,3
D,4,2,3
```
I want to aggegate this data on the three last columns, so the output would be :
```
ABC,1,2,3
D,4,2,3
```
How can I do it in scala ? (this is not a big dataframe so performance is secon... |
2018/02/26 | 701 | 1,966 | <issue_start>username_0: Is there any way I can call the "**Zapier trigger**" from my Django Code,
Basically, I am having a Django form where the user will enter several email-id and when the user clicks on send button then I want to send this form data to Zapier in order to do the next **action** like writing in **go... |
2018/02/26 | 554 | 2,384 | <issue_start>username_0: We were given a task to make a program that takes the input of the user. there two types of input the user can use, 1st is the "Type in the Size" and the second is "Type in the style" either way the user can just input in the 1st field or the 2nd field. when the users clicks ok the two inputs w... |
2018/02/26 | 1,257 | 4,771 | <issue_start>username_0: Say that I have a self made dictionary made from a list of tuples
`let menu = [("pizza",17);("hotdog",5);("burger", 12);("drink",3);("milkshake",4)]`
I want to write a search function that takes both my dictionary and a key value as a parameter, then returns an option type with the value ... |
2018/02/26 | 2,143 | 6,413 | <issue_start>username_0: I'm preparing to display data from JSON I get from the server. I'm still learning angular ang what I know now is that I should map JSON answer to object but I do not exactly how to do that. From now I can type ID of my object and display single data on my template. I'd like to display list of o... |
2018/02/26 | 1,271 | 3,211 | <issue_start>username_0: I have 2 lists, each has 128 elements
```
x = [1,2,3,...,128]
y = [y1,y2,...,y128]
```
How should I use matplotlib to plot (x,y) with x axis appearing as shown in this [screenshot](https://i.stack.imgur.com/oG2YW.png)?
To replicate the graph, I have (1) created 2 additional lists from the ... |
2018/02/26 | 1,226 | 3,495 | <issue_start>username_0: I have the following array:
```
myArray = [32.4, "bla", 1.44, 0.5, 65.8, "abc"];
```
To compute the `sum` of an array containing only digits is pretty straight-forward, but how can it be done if there are also non-numerical values which must be ignored?<issue_comment>username_1: Use `reduce`... |
2018/02/26 | 583 | 2,284 | <issue_start>username_0: I have a simple, as it looks, question:
I am having Sqlite query where I am using temp tables and then joining those table, something like:
```
drop table if exists SourceA
create temp table SourceA (id int, value text);
insert into SourceA select id, value from TableA
drop table if exists ... |
2018/02/26 | 200 | 724 | <issue_start>username_0: I would like to change the background color of the title (only!) in UIButton, which contains title and image.
I can only see how to change to background color of the whole button, which is not what I want.
Any idea ?<issue_comment>username_1: You need to set background color of titleLabel:
`... |
2018/02/26 | 406 | 1,366 | <issue_start>username_0: Just started with Go and I have a small doubt from a tutorial I am following. I read that `Unmarshall` is some kind of JSON encoding, my doubt here is: `err = json.Unmarshal(body, &p)` why are we assigning the encoded body to `err` and how is `p.Stuff.Fruit` getting the value when I can't see a... |
2018/02/26 | 794 | 2,698 | <issue_start>username_0: I am a beginner in react and I am playing with an example in `https://jscomplete.com/repl.`
So far my code looks like :
```
let data = [
{
name:"<NAME>",
avatar_url:"https://avatars1.githubusercontent.com/u/8445?v=4",
company_name:"Facebook"
},
{
name:"<NAME>",
... |
2018/02/26 | 575 | 2,095 | <issue_start>username_0: I would like to create a powershell which must rename a file by adding the current date then move it to another folder (ie.e to archive it). the script should be automatically executed every day at a specific start time (10:OO PM)
I wonder if someone could help me to do that.
Thanks in advan... |
2018/02/26 | 1,265 | 3,613 | <issue_start>username_0: Using s`pring-boot 1.5.10` (so the current) to use the Java8 Date/Time is **NOT supported** as it looks like by default this version of Spring Boot uses `Hibernate 5.0.12.Final`.
To achieve this (**Spring Boot 1.5.10**) in the `pom.xml` `properties` section overriding the version works.
```
5... |
2018/02/26 | 894 | 2,958 | <issue_start>username_0: I have created sample CocoaPod file and it worked successfully, now on final stage when I am doing Pod Repo Push it showing me error. Below are the command and error which I am getting.
```
Pod::Spec.new do |s|
s.name = "IDFVSample"
s.version = "1.0.0"
s.summary = "A short de... |
2018/02/26 | 838 | 2,683 | <issue_start>username_0: ```
import operator
>>> operator.truediv(-5.6, complex(-1, 0)) #eg1
(5.6-0j)
>>> operator.truediv(-5.6, complex(0, -1)) #eg2
(-0-5.6j)
>>> operator.truediv(-5.6, complex(0, 1)) #eg3
5.6j
>>> operator.truediv(-5.6, complex(1, 0)) #eg4
(-5.6+0j)
>>> operator.truediv(5.6, complex(0,-1)) #eg 5
(-0+... |
2018/02/26 | 968 | 3,564 | <issue_start>username_0: As per the definition of "*default*" attribute in [Avro docs](https://avro.apache.org/docs/current/spec.html): "A default value for this field, used when reading instances that lack this field (optional)."
This means that if the corresponding field is missing, the default value is taken.
But... |
2018/02/26 | 679 | 2,233 | <issue_start>username_0: *My query is below:*
```
select
u.Id,
STRING_AGG(sf.Naziv, ', ') as 'Ustrojstvena jedinica',
ISNULL(CONVERT(varchar(200), (STRING_AGG(TRIM(p.Naziv), ', ')), 121), '')
as 'Partner',
from Ugovor as u
left join VezaUgovorPartner as vup
on vup.UgovorId = u.I... |
2018/02/26 | 961 | 3,477 | <issue_start>username_0: I'm new to C#.
I have different file names. for example:
>
> C:\Test\ABCD\Warranty\_2018\_02\_12\_\_13\_25\_13.743.xml
>
>
>
from this name I want to get the date, like **12.02.2018 13:25:13**
So the files are never the same.
My code:
```
public string GetCreationDate(string ... |
2018/02/26 | 679 | 2,554 | <issue_start>username_0: I have a website(website a) that has only one Page, which i want to show on a different website(website b) via iframe. But I want to prevent the access to website a.
Basicly what i want to do is this:
```
if (load website trough iframe == true){
show website;
}
else{
don... |
2018/02/26 | 863 | 3,316 | <issue_start>username_0: I have the following query
```
$model_company = Members_companies::find()
->select(['members_companies.id', 'companies.name'])
->leftJoin('companies', 'members_companies.company = companies.id ')
->where(['members_companies.member' => $member])
... |
2018/02/26 | 638 | 2,149 | <issue_start>username_0: Generated byfn.sh my first network, the emergence of configtxgen can not generate genesis block.
My error is as follows:
```
[root@demo first-network]# ./byfn.sh generate
Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' second... |
2018/02/26 | 3,600 | 13,104 | <issue_start>username_0: In a webpack 3 configuration I would use the code below to create separate `vendor.js` chunk:
```
entry: {
client: ['./client.js'],
vendor: ['babel-polyfill', 'react', 'react-dom', 'redux'],
},
output: {
filename: '[name].[chunkhash].bundle.js',
path: '../dist',
chunkFilename: '... |
2018/02/26 | 512 | 1,961 | <issue_start>username_0: I accidentally hit "Get Latest Version" on item in TFS with which I'm not currently working on. This made name of the item visible in black in Source Control Explorer, which is misleading to me since I'm used to identify objects which I'm working on visually. How can I reverse this operation?<i... |
2018/02/26 | 925 | 3,340 | <issue_start>username_0: I used this jquery for a check-all checkbox that when clicked all of the checkboxes will be ticked:
```
function checkAll(e) {
var check = $(e).is(':checked');
if (check) {
$('[name="row_Checkbox"]:not(:checked)').trigger('click');
}
else {
$('[name="row_Checkbo... |
2018/02/26 | 662 | 2,241 | <issue_start>username_0: In a [survivejs](https://survivejs.com/react/getting-started/implementing-notes/) code example I encountered a function with a body wrapped in parentheses:
```
export default () => (
{notes.map(note =>
//some code
)}
)
```
MDN explains it like this:
>
>
> ```
> // Parenthesize the bo... |
2018/02/26 | 1,403 | 5,077 | <issue_start>username_0: I want to be able to compare two typed strings and show how many letters are shared between them.
So for example if one input get's *"dog"* string and the other input get's *"door"* string. it will echo `'2'` (only *"d"* and *"o"* are shared between those two strings).
But also if one string ... |
2018/02/26 | 656 | 2,396 | <issue_start>username_0: I spend a week teaching what are `Websockets` and how to use them. What is the logic and architecture of all this. I want to create a simple Laravel application with live-chat or live-notifications.
So, at the moment I found tens of ways and nothing concrete from A to Z. Using `Redis`, `NodeJS... |
2018/02/26 | 662 | 1,946 | <issue_start>username_0: I have the following entry in an `erb` template:
```
# Lorem Ipsum...
<% unless @foo['bar'] == nil %>
<% @foo['bar'].each do |property, value| %>
<%= "zaz.#{property} #{value}" %>
<% end %>
<% end %>
```
That is parsed to:
```
# Lorem Ipsum...
zaz.property value
```
... |
2018/02/26 | 1,609 | 4,006 | <issue_start>username_0: I have a gridded dataset with 250 rows x 300 columns in matrix form:
ifile.txt
```
2 3 4 1 2 3
3 4 5 2 4 6
2 4 0 5 0 7
0 0 5 6 3 8
```
I would like to insert the latitude values at the first column and longitude values at the top. Which looks like:
ofile.txt
```
20.00 20.33 20.66... |
2018/02/26 | 208 | 829 | <issue_start>username_0: I am working on Angular 2 project and I use bootstrap tooltip. I have project name fetched by API. I want to display this project names in tooltip when one hovers over a component. Is it possible to add this data in html?<issue_comment>username_1: You could use a third-party library like <https... |
2018/02/26 | 1,593 | 6,495 | <issue_start>username_0: Currently i have this:
```
insert into temp select * from myTable where (called_phone in
(
select number1 from
(
SELECT * FROM
(
SELECT called_phone as number1, count(*) as conto
FROM myTable
GROUP BY called_phone
) AS subq... |
2018/02/26 | 1,411 | 3,525 | <issue_start>username_0: I am trying to plot a logarithmic plot using seaborn factorplot on a dataframe as follows
```
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
l1 = [0.476, 0.4427, 0.378, 0.2448, 0.13, 0.004, 0.012, 0.0933, 3.704e-05,
1.4762e-06, 4.046e-08, 2.99e-10, 0.0, 0.0, 0.... |
2018/02/26 | 1,512 | 5,852 | <issue_start>username_0: For some reason I can't login to accounts I registered. More info below.
**Functions from UsersController.php**
```
public function login() {
if ($this->request->is('post')) {
$auth = $this->Auth->identify(); // Returns false
debug($this->request->getData()); // Return em... |
2018/02/26 | 1,997 | 8,025 | <issue_start>username_0: I am working on SAM template for publishing my Application in AWS Serverless repository.
But when I try to add policies for my lambda it shows me error:
Invalid Serverless Application Specification document. Number of errors found: 1. Errors: Resource with id [SyncPostDataFromSfLambda] is inval... |
2018/02/26 | 1,134 | 3,641 | <issue_start>username_0: The following program tries to grade the marks of a student:
```
use std::io;
fn main() {
let mut in0 = String::new();
io::stdin().read_line(&mut in0).expect("stdin err");
let n: i32 = in0.trim().parse().expect("parse err");
println!("{}", n);
let mut v: Vec = Vec::new();
... |
2018/02/26 | 282 | 892 | <issue_start>username_0: I want to delete a user's email from my list in MailChimp using the API or Gibbon. However, there's no documentation about this in [Gibbon repo](https://github.com/amro/gibbon/blob/master/README.markdown).
As of now, I can only delete the email from the MailChimp website.<issue_comment>usernam... |
2018/02/26 | 738 | 2,664 | <issue_start>username_0: A friend asked me to explain the following quirk in Rust. I was unable to, hence this question:
```
fn main() {
let l: Vec = Vec::new();
//let ret = l.contains(&String::from(func())); // works
let ret = l.contains(func()); // does not work
println!("ret: {}", ret);
}
fn func() -> & 'st... |
2018/02/26 | 639 | 2,305 | <issue_start>username_0: I have an Availability table like below
```
AVAIL_DATE | AVAILABLE
```
AVAIL\_DATE represents stay date and AVAILABLE is a char with 'T' or 'F'.
I need to check whether the availability table has true for all the dates within a given range (START\_DATE, END\_DATE)
I know I can achieve it ... |
2018/02/26 | 401 | 1,005 | <issue_start>username_0: I have the following 3 tables:
**main\_table:**
```
id,name,table_type
1a,sas,1
2a,saw,1
3a,sdd,2
```
**inst\_table**
```
id,inst_name,rating
1a,sdsdf,3
2a,erer,4
```
**indv\_table**
```
id,ind_name,rating
3a,gbgbg,3
5a,gff,4
```
How to join the subtables based on `main_table column:'... |
2018/02/26 | 553 | 1,911 | <issue_start>username_0: I am trying to add an extra class for my modal so I can select it from LESS and turn it's background to transparent. But customClass is not working. Is there any other way to do it. BTW I have already changed a lot with default classes so I need to do this for just one modal, can not effect the... |
2018/02/26 | 767 | 2,702 | <issue_start>username_0: I am getting this error message from GitKraken whenever I try to clone/fetch/push/push to any of my Github repositories:
>
> failed to get server certificate: The handle is in the wrong state for the requested operation
>
>
>
I have no idea why this is happening, everything was working fi... |
2018/02/26 | 1,891 | 4,107 | <issue_start>username_0: I have a problem with my data. I want to analyze speed based on "speed equation."
[](https://i.stack.imgur.com/yznBQ.jpg)
My data like this:
```
df
MAC T_1 X_1 Y_1 T_2 X_2 Y_2 T_3 X_3 Y_3 T_4 X_4 Y_4 T_5 X_5 Y_5 T_6 X_6 Y_6... |
2018/02/26 | 540 | 1,631 | <issue_start>username_0: I do not get the difference between the following two struct definitions. The first works without any problems, while the second gives a Type Error:
```
julia> struct point1
xy::Vector{Float64}
end
julia> struct point2
xy::Array{Float64,1}(2)
end
ERROR: Typ... |
2018/02/26 | 859 | 3,093 | <issue_start>username_0: This is my test URL " **<http://appr.seconddemo.org/hitssurveys/survey?uid=113&offerid=311&subid=subvalues&offr_id=>{Email}** "
I want to hit the url 1500 times per second , and want to change the "{Email}" with real value in each iteration.
How it's possible please give me a step by step gui... |
2018/02/26 | 651 | 2,073 | <issue_start>username_0: Say I have an object, that contains 3 arrays of differing size with strings as some of their respective element types, but also redundant properties, that you don't want to iterate over: eg as follows:
```
let testobj = {
prop1: ['a1','a2','a3'],
prop2: ['a4','a5'],
prop3: ['a7'],
... |
2018/02/26 | 652 | 2,208 | <issue_start>username_0: I'm using Truffle which has Mocha & Chai included by default.
File tree:
```
βββ test
βΒ Β βββ ManagedWallet.js
β βββ AnotherTest.js
β βββ AndAnotherTest.js
βββ truffle.js
```
This is one of my test file:
```
var expect = require('chai').expect;
var managedWallet = artifacts.require("./... |
2018/02/26 | 685 | 1,973 | <issue_start>username_0: I have an array in cell A1 via
```
A1 = {=G6:J6} = {"aa"."b"."ccc".1}
```
Now I want to use the cell A1 for array formula in B1. Basically B1 should be
```
B1 = SUMPRODUKT((C6:C12)*(B6:B12=G6:J6))
```
But instead of the direct reference to G6:J6 I would like to use A1 instead. I just tri... |
2018/02/26 | 235 | 988 | <issue_start>username_0: We have a simple ubuntu 16.04 image with jdk8 installed in provisioners section.
* We created a VHD image in Azure
* We launch a VM using the above VHD
The question is when I create the above VM, does JDK 8 get installed only after the VM is launched or was it part of the VM when its launched... |
2018/02/26 | 507 | 1,898 | <issue_start>username_0: I am using [5.2.13.Final](https://mvnrepository.com/artifact/org.hibernate/hibernate-core/5.2.13.Final) version of [hibernate-core](https://mvnrepository.com/artifact/org.hibernate/hibernate-core) and
5.2.13.Final version of [hibernate-validator](https://mvnrepository.com/artifact/org.hibernat... |