date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/27 | 822 | 2,781 | <issue_start>username_0: I am trying to get dependant select items using ajax call. After selecting 'class' it should show the related 'groups'. But, I am getting 500 internal server error on my console. Would someone help me please to get the expected result?
**admission-form.blade.php** -
```
{{ csrf\_field() }}
... |
2018/02/27 | 948 | 1,772 | <issue_start>username_0: I have the following python dictionary of integers:
```
{1: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
2: [3, 6, 13],
3: [1, 2, 3],
4: [13, 14, 15],
5: [3, 6],
6: [6, 13]}
```
I would like to remove the number 6 from both the 5th and 6th entries to the dictionary. I know this ... |
2018/02/27 | 1,079 | 5,186 | <issue_start>username_0: I need to find if a child with particular value in one of its fields exists in Firebase.
Below is my database structure:
<issue_comment>username_1: To check if a field exists,you can do this:
```
DatabaseReference ref=F... |
2018/02/27 | 1,124 | 5,422 | <issue_start>username_0: I have successfully completed the installation of informatica, and I am able to login domain Administrator <http://ssingh:6008/administrator> but the session get timed out after some time of inactivity.
The issue I am facing is It shows error to reconnect i.e. **ERR\_CONNECTION\_REFUSED**. Alth... |
2018/02/27 | 298 | 937 | <issue_start>username_0: **Set Up**
I'm using Selenium to obtain a set of links on a page.
The page HTML structure is 'flat'; no indentations, no children, etc. and looks like,
```
TAG1
----
...
'more links'
...
TAG2
----
```
---
**Problem**
The links I want to obtain are located between (**not** inside) ... |
2018/02/27 | 266 | 814 | <issue_start>username_0: I want to change an image using a GET variable and switch, but I do not know how to change the image. Here is my html/php.
```

php
switch($_GET['ine']) {
case "foo"
I dont know what to put here.
break;
case "bar"
> I dont know what to put here.
break;
}
?>
```<issue_comm... |
2018/02/27 | 1,228 | 3,684 | <issue_start>username_0: I'm using office 365 mail Microsoft Graph API , trying to create new message following the Doc:
<https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_post_messages>
```
POST https://graph.microsoft.com/beta/me/messages
Content-type: application/json
{
"subject":"D... |
2018/02/27 | 720 | 2,650 | <issue_start>username_0: I have a scraping algorithm in nodejs with puppeteer which scrapes 5 pages concurrently and when it finishes with one page it pulls the next url from a queue and open it in the same page. The CPU is always at 100%. How to make puppeteer use less cpu?
This process is running on a digitaloceans ... |
2018/02/27 | 453 | 1,105 | <issue_start>username_0: I have the following list structure:
```
[
{'key1': 'value1',
'key2': [['mike', 'simmons', '54:17:47']],
'key3': 19390},
{'key1': 'value1',
'key2': [['snart', 'simmons', '60:12:47']],
'key3': 19390}
]
```
I would like to sort this list by the second index of t... |
2018/02/27 | 423 | 1,182 | <issue_start>username_0: I have an array and I want to create a .json to store the array in it. This is what I have, but i receive `require is not defined`. I know it has something to do with NodeJS, but I dont know what I should do.
```
let answersString = JSON.stringify(answersArray);
const fs = require('fs');
fs.w... |
2018/02/27 | 349 | 1,304 | <issue_start>username_0: I wrote the word 'length' wrong once while developing a project and since then the suggestion keeps popping up and I need to delete it because sometimes by mistake when I autocomplete code I forget. I'v been searching the whole web for a solution, or a file where IntelliSense stores all the cac... |
2018/02/27 | 880 | 2,929 | <issue_start>username_0: I am trying to optimize the multiplication code of a [31.32 fixed-point math library written in C#](https://github.com/asik/FixedMath.Net).
The (incorrect) pseudo code is:
`long result = (a * b) >> 32;`
The problem of course is the potential overflow of `a * b` before being shifted down. Even... |
2018/02/27 | 629 | 2,329 | <issue_start>username_0: Basically, here's the gist of my code:
```
// File: ShapeColor.java
package mypackage;
public enum ShapeColor
{
MAUVE,
PURPLE,
VIOLET;
}
// File: ShapeSize.java
package mypackage;
public enum ShapeSize
{
TINY,
SMALL,
MEDIUM,
LARGE,
HUGE,
COLOSSAL;
}
// F... |
2018/02/27 | 1,088 | 3,343 | <issue_start>username_0: it's gonna be little complex.but i am trying to keep it simple.
I Want a query Where Conditions As Following
1. Users Who have `dsponserid` like My id
2. Users Who have date between `'2018-02-13' AND NEXT 7 DAYS`
*This Is Done By me. But Now where is stuck is i want If `user count` Which Pas... |
2018/02/27 | 366 | 909 | <issue_start>username_0: ```
df <- data.frame(
V1 = c(1,3,3,5,5,6),
V2 = c(19,19,38,19,38,19),
V3 = c(1,3,1,7,2,10)
)
```
How can I remove the rows where *V2* is an odd number **using the for loop with if statement**?<issue_comment>username_1: You don't actually need for loop, can do like this:
```
idx <- df$V2 %... |
2018/02/27 | 749 | 2,314 | <issue_start>username_0: Would you please show me know how I can sort the following list (ascending oder A to Z) (or a list in general) with Bash?
I have been trying but still could not get the expected results:
```
my_list='a z t b e c'
```
And the result should be a list as well, as I will use it for Select Loop.... |
2018/02/27 | 1,312 | 5,210 | <issue_start>username_0: Android fragment recyclerview different view types not working
I have implement different view types using recyclerview adapter but list are empty this time not display empty view type.
First implement fragment
Second add recyclerview in fragment.
**Fragment class**
```
LocationAda... |
2018/02/27 | 1,001 | 3,690 | <issue_start>username_0: I am trying to mimic the new Oreo [Timepicker](https://i.stack.imgur.com/7WSzC.jpg)
I have created the layout:
```
xml version="1.0" encoding="utf-8"?
```
I also created the supporting class(setters and getters not included below:
```
public class ManualTimePicker extends LinearLayout {
pr... |
2018/02/27 | 2,344 | 8,189 | <issue_start>username_0: I have a code from Mathlab, where all matrix operations are done by a couple of symbols. By translating it into C I faced a problem that for every size of matrix I have to create a special function. It's a big code, i will not place it all here but will try to explain how it works.
I also have... |
2018/02/27 | 1,717 | 6,109 | <issue_start>username_0: I use this function to push a new viewController:
```
func goToPasscodeSetupVC() {
let storyboard = UIStoryboard(name: "PassCode", bundle: nil)
let viewController = storyboard.instantiateViewController(withIdentifier: "passcodeSetupVC") as! PasscodeSetupVC
self.navigationControlle... |
2018/02/27 | 658 | 2,265 | <issue_start>username_0: Is it possible to convert list of primitives to list of dicts using Jinja2 using list/map comprehensions?
Given this structure:
```
list:
- some_val
- some_val_2
```
Apply `map` on every element to obtain:
```
list:
- statically_added: some_val
- statically_added: some_val_2
```
... |
2018/02/27 | 383 | 980 | <issue_start>username_0: I have a df,
```
A B
one six
two seven
three level
five one
```
and a dictionary
```
my_dict={1:"one,two",2:"three,four"}
```
I want to replace df.A with my\_dict keys().
My desired output is,
```
A B
1 six
1 seven
2 level
five one
```
I tried `df.A... |
2018/02/27 | 469 | 1,358 | <issue_start>username_0: I am using Excel to make an SQL query (connecting to an ODBC).
I have a problem with the function DateAdd(), which just doesn't work as expected.
What I need to do is to get the data from the last six months.
My code is something like
SELECT blablabla
FROM blablabla and then I have this:
... |
2018/02/27 | 650 | 2,437 | <issue_start>username_0: I have a query that I want to combine with another query but without success.
The first query returns all schema names which have the table named `status`:
```
select s.schema_name
from information_schema.schemata s
where exists (select *
from information_schema.tables t
... |
2018/02/27 | 812 | 3,468 | <issue_start>username_0: Suppose we have an *Order* in a warehouse context. And we have a *Client* that's getting that Order.
Although in the DB `Client` has an ID and a bunch of parameters, but I model it as a value object inside my Order:
```
class Order extends AggregateRoot {
private client: Client;
priva... |
2018/02/27 | 447 | 1,568 | <issue_start>username_0: I have a program that working with all kind of Ints and Floating pointer value types
Is there is a way to create array that will holds all kind of those values in it?
I have tried to do this via protocol and extend Int and Double with them but no luck because of protocol equability limitation... |
2018/02/27 | 313 | 1,263 | <issue_start>username_0: I am building an app using , so the first time I upload the app to playstore, it will go with pre-defined Menu options and other stuffs.
Now, suppose I want to add a menu option in the Header of the App for any festive seasons or some awesome offers, and on clicking the menu, I should display ... |
2018/02/27 | 416 | 1,667 | <issue_start>username_0: I am Using Spring Data Jpa and adding inserting into 2 table when something happen while adding into second table the first transaction is not rollbacking
and first insert is **commiting immidiatally** after insert
```
@Override
@Transactional(propagation = Propagation.REQUIRED, rollback... |
2018/02/27 | 1,573 | 4,710 | <issue_start>username_0: This question is more about Math, than about threejs but maybe there are usable Alternatives for my issue.

So what I want to do, is to go through every vertice in a Box Geometry and check weither it has to be moved down/up and mo... |
2018/02/27 | 1,376 | 4,547 | <issue_start>username_0: I am trying to build a docker container but getting the following error message:
```
Step 8/12 : RUN bundle binstubs bundler --force
---> Running in ed94b127974b
Could not find gem 'rails (>= 5.1.5, ~> 5.1)' in any of the gem sources listed
in your Gemfile.
ERROR: Service 'dockerzon' failed t... |
2018/02/27 | 305 | 982 | <issue_start>username_0: I have one table having 4 columns and i want to separate them into 2 table 2 columns in one table and 2 columns in another table.but both table should be below to each other.I want this in proc report format.code should be in report.
```
id name age gender
1 abc 21 m
2 pqr 23 f
3 qwe 2... |
2018/02/27 | 452 | 1,830 | <issue_start>username_0: I have a requirement to have date range filter which can be used for two different date columns of the data source(One at a time either through radio button to choose at which column date range should apply).
Is it possible to achieve this in Google Data studio ?<issue_comment>username_1: **Wo... |
2018/02/27 | 511 | 1,991 | <issue_start>username_0: Im trying to validate a form using required attribute,on click of a button, using the 'id' attribute of a button.
If i remove the 'id' attribute, form validates, but with 'id', it isnt validating.
Below is what i have tried:
```
Submit
$(document).ready(function () {
$('#btnSubmit').... |
2018/02/27 | 414 | 1,560 | <issue_start>username_0: I am writing a machine learning master algorithm from scratch where the user just inputs the training and testing data, i was wondering is there a way to automatically decide what algorithm is to be used : regression vs classification
like for example,
(assuming the last column is always the... |
2018/02/27 | 471 | 1,529 | <issue_start>username_0: I'm using a css class in order to have a small space before the text starts like this:
```
.this-text:before {
content: "\00a0 \00a0 ";
}
```
this code works fine, it lets a padding before the text.
The problem comes when I want to add the same thing to the end of the text line.
Firstl... |
2018/02/27 | 709 | 2,001 | <issue_start>username_0: I'm attempting to read a `.gz`-file using data.tables `fread`-function. I have tried the syntax suggested [here](https://stackoverflow.com/questions/35644556/using-fread-to-import-csv-file-from-an-archive-into-r-without-extracting-to):
```
dt = fread("gunzip -c myfile.gz")
```
but I get a ve... |
2018/02/27 | 509 | 1,589 | <issue_start>username_0: i want to move zookeeper to being monitored by prometheus .
i deployed jmx-exporter (sscaling/jmx-prometheus-exporter:0.1.0)
and got most of the metrics but some are missing , for example zookeeper.approximate\_data\_size and parnew metrics of the GarbageCollector
for example:
i get this par... |
2018/02/27 | 521 | 2,123 | <issue_start>username_0: I learned to use java functions before python functions, and generally I make a different classes for different "public static voids" so my main code regroup all of my functions. And when I wanted to do the same and I tried:
```
global def function():
print("String")
```
and
```
def global ... |
2018/02/27 | 907 | 3,605 | <issue_start>username_0: I've just realised I'd written code that I'd expect to be invalid (with regard to syntax), but the compiler accepts.
For the sake of brevity I've recreated an example. Given a type:
```
private class MyType
{
}
```
I can then compare an instance of `MyType` to an `IEnumerable`:
```
var myC... |
2018/02/27 | 877 | 3,555 | <issue_start>username_0: Looking at the steps at <http://openid.net/specs/openid-connect-core-1_0.html>
1. The RP (Client) sends a request to the OpenID Provider (OP).
2. The OP authenticates the End-User and obtains authorization.
3. The OP responds with an ID Token and usually an Access Token.
4. The RP can send a r... |
2018/02/27 | 1,711 | 5,805 | <issue_start>username_0: I need help finding an Algorithm that is as effective as possible for checking if a given binary matrix can be reached by flipping rows and columns of a matrix with only one's.
Whenever you flip a row or a col all the 0 become 1 and all 1 become 0
Algorithm that determines if a given binary ma... |
2018/02/27 | 1,992 | 6,614 | <issue_start>username_0: What I want is the pairwise comparison with for eg paired Wilcox-test. With the groups: `list(c("0.5", "1"),c("1","2"),c("2","3"))`. Very plain and simple at first no alpha correction and so on.
Code:
=====
```
data_summary <- function(data, varname, groupnames){
require(plyr)
summary... |
2018/02/27 | 1,212 | 5,154 | <issue_start>username_0: I have a website on which other websites owner can list their products. For listing the product they need to manually create the product by providing `title`, `description`, `image` and `link` of products.
When any user will visit my website he will be able to view these products and on click ... |
2018/02/27 | 1,528 | 5,806 | <issue_start>username_0: I have component where I perform two `fetch` operations in `componentDidMount`. I want to test this and I have to be honest: it's not clear to me how to proceed at all.
The point is that it seems that there isn't a "standard" way to proceed. Essentially what I find more confusing is:
* **How ... |
2018/02/27 | 962 | 3,633 | <issue_start>username_0: In my ASP.NET MVC View I wrote the following code to print the content of my web page.
```
var newWindow = window.open();
newWindow.document.write()
newWindow.document.write(document.getElementById("sbmtform").innerHTML);
newWindow.print();
```
I have another... |
2018/02/27 | 980 | 2,929 | <issue_start>username_0: I am new to SQL Server, when I run the query shown below, I am getting error
>
> Invalid column name display\_name
>
>
>
Can anyone please help me? How can I resolve this problem?
Here is my query:
```
SELECT
'Nbr of RAPs' AS display_name,
MonthRap AS MonthStart,
COUNT(... |
2018/02/27 | 2,755 | 7,823 | <issue_start>username_0: I have a problem with running the command : **npm run serve**
to fix it i need to logout or reboot my Ubuntu 16.04
I have checked the running tasks and node is not running.
I have also uninstalled node and npm and installed again with NVM but i still have the problem .
**Npm error log :**
... |
2018/02/27 | 763 | 2,004 | <issue_start>username_0: We have dataframe with lists in one column. Couldn't find easy way to filter dataframe for rows contains value in their lists.
```
df = pd.DataFrame({'lists':[['a', 'c'], ['a', 'b', 'd'], ['c', 'd']]})
```
For example I need only rows contains 'a' in their lists.
I managed to get it only thr... |
2018/02/27 | 288 | 1,057 | <issue_start>username_0: We have `prefer-destructuring` enabled in our ESLint rules and it is giving me an error on the line of code below, but I have no idea how to use destructuring in this particular case.
```
modifiedResults = partition[1];
```
So far I have tried:
```
[, modifiedResults, ] = partition;
[, modi... |
2018/02/27 | 826 | 2,658 | <issue_start>username_0: In the following screenshot, I would like to merge the data in the YorumYapanAdsoyad column on a single line.
[enter image description here](https://i.stack.imgur.com/vvm2X.png)
[](https://i.stack.imgur.com/vvm2X.png)
It sho... |
2018/02/27 | 617 | 2,368 | <issue_start>username_0: I have set cookie using below code.
```
HttpCookie cookie = new HttpCookie("test");
cookie.Expires = DateTime.Now.AddDays(1);
cookie.Values.Add("UserID", UserID);
cookie.Values.Add("UserName", UserName);
cookie.Values.Add("IsUserAdmin", IsUserAdmin.ToString());
HttpContext.Response.Cooki... |
2018/02/27 | 688 | 2,503 | <issue_start>username_0: So i have this query:
```
SELECT Posts.[Post ID], Count(Comments.[Comment ID]) AS [CountOfComment ID],
Count(Shares.[Share ID]) AS [CountOfShare ID],
Count(Likes.[Like ID]) AS [CountOfLike ID]
FROM ((Posts INNER JOIN Likes ON Posts.[Post ID] = Likes.[Post ID])
INNER JOIN Shares ON Posts.[Po... |
2018/02/27 | 331 | 1,333 | <issue_start>username_0: Our teacher ask us if we can make our database online
so we buy a hosting plan but it's to slow.
I don't want to buy or upgrade my hosting plan.
So I'm thinking if I can host my own Mysql Server.
My Current PC Specs is i7 and 16GB RAM with 50MBPS internet connection.<issue_comment>u... |
2018/02/27 | 540 | 2,122 | <issue_start>username_0: while getting data from Bing Api using POSTMAN works fine.
but the same in angular not works, problem is in sending headers.
Error Response: 401 (Access Denied)
what am doing wrong here
```
import { HttpClient, HttpHeaders } from '@angular/common/http';
export class BingSearchComponent ... |
2018/02/27 | 553 | 1,727 | <issue_start>username_0: Currently I have string line `feature/USRSTORY-447-testing-rest-api`
I want to extract only `USRSTORY-447`.
Currently I have a line written which works and I get the output below:
```
str.substring(str.indexOf("/") + 1, str.indexOf("-") + 4);
USRSTORY-447
```
But in future when the number... |
2018/02/27 | 549 | 1,655 | <issue_start>username_0: In Google bigquery,is it possible to move each record(row) to unnest?
For example,
```
Name Physics Chemistry Maths Biology
John 94 85 86 65
James 97 86 84 54
David 90 82 76 45
```
I would like to move each record to unn... |
2018/02/27 | 1,510 | 4,861 | <issue_start>username_0: Hi I'm trying to put a gradient background in an UIButton. This is my method but for the iPhone 7 plus or 8 plus it does not cover all the button. When a see the uibutton frame (174.5, 0.0, 164.5, 47.0) but after is load I can see that is (194.5, 0.0, 184.5, 47.0). It looks like this
[![enter i... |
2018/02/27 | 1,026 | 3,658 | <issue_start>username_0: i uploaded some file to server you can see the adress:
and its the resault:
```
"product_video": [
{
"product": 12,
"name": "backup",
"file": "/upload/user_1/backup.zip",
"video_length": null,
"is_fre... |
2018/02/27 | 2,180 | 8,103 | <issue_start>username_0: I have created 5 UIViews, each with UIPanGestureRecognizers, which I then add to another UIView. All this works and I can drag each around, but I don't want them to be dragged outside the boundaries of their parent UIView. I have read that I can implement UIGestureRecognizerDelegate with the ge... |
2018/02/27 | 481 | 1,628 | <issue_start>username_0: I have a column called `SeialNumber` which sometimes by mistake starts with different number of zeros.
I want to find out the `SerialNumber` that start with any number of 0 before reaching a character and save the zeros in a variable called `prefix`. I have the following code. However, I think... |
2018/02/27 | 248 | 1,107 | <issue_start>username_0: Project selection during firebase init is not working. I tried upgrading NodeJS and npm and still got issues. The Arrow keys do not move up and down in the project list as expected and so you are not able to choose an app and so create a firebase.json. Note: I am using git bash and have also tr... |
2018/02/27 | 278 | 1,113 | <issue_start>username_0: I tried many times to install @angular/cli on Ubuntu terminal but I got an error like this
```
**npm ERR! 404 Not Found: @angular/cli@latest**.
```
I installed nodejs with nvm and NVM\_BIN path **/root/.nvm/versions/node/v9.6.1/bin/node**. I saw many examples. That said node path must be **/... |
2018/02/27 | 302 | 1,041 | <issue_start>username_0: I can get sum value of my "ctr" from my database with below query. But my ctr is longer than 5 letter. I must check the first 3 letter and get sum value acording to this 3 letter
```
String qry15 = "SELECT SUM(sales),SUM(box) FROM table WHERE ctr = '"+ comboBox.getSelectedItem().toString() +"... |
2018/02/27 | 1,077 | 3,430 | <issue_start>username_0: I have an airflow dag that extracts data and performs validation. If the validation fails, it needs to re-run the extract. If the validation succeeds its continues.
I've read people saying that sub dags can solve this problem, but I can't see any example of this. I've tried using a sub dag, bu... |
2018/02/27 | 901 | 3,030 | <issue_start>username_0: I have this query
```
SELECT
fc.ID AS FileCategoryId
,fc.FolderCategoryName as FileCategoryName
,fcparent.ID AS FileParentCategoryID
,fcparent.FolderCategoryName AS FileParentName
,FileAllowView = 0
,FileAllowDownload = 0
,FileCategoryType = 0
FROM
FolderCate... |
2018/02/27 | 1,642 | 6,696 | <issue_start>username_0: Im writing a simple android program that takes input names of subjects and then prints them while adding them in sqlite database. But my add button isn't working at all. Help me!
im following thenewBoston course on youtube where Bucky gets the job done!
My Mainactivity file
```
package com.ak... |
2018/02/27 | 688 | 2,377 | <issue_start>username_0: I have Partner entity with two relation:
```
/**
* @var PartnerSettings
* @ORM\OneToOne(targetEntity="PartnerSettings", mappedBy="partner", cascade={"persist", "remove"}, fetch="LAZY")
*/
private $settings;
/**
* @var PartnerRating
* @ORM\OneToOne(targetEntity="PartnerRating", mappedBy="... |
2018/02/27 | 1,067 | 2,897 | <issue_start>username_0: In order to split my string at the point which is preceded by digit and is followed by letters as:
```
$str = '12jan';
```
I have used
```
$arr = preg_split('/(?<=[0-9])(?=[a-z]+)/i',$str);
```
It works file and gives the desired output. I want to update it so that it gives the same ou... |
2018/02/27 | 932 | 2,701 | <issue_start>username_0: I am making a website where I am going to use the same template for a lot of the same pages, only the text and picture needs to be changed. The only thing that is different from the different pages are the different sports, so I have a jumbotron picture that I want to change, as well as the tex... |
2018/02/27 | 1,123 | 3,830 | <issue_start>username_0: while going through Ruby, i encountered that BasicObject is the top most superclass of Class. When I tried
`BasicObject.methods`, i get list of these methods
```
[:method_missing, :singleton_method_added, :singleton_method_undefined, :singleton_method_removed, :new, :become_java!, :allocate, ... |
2018/02/27 | 555 | 1,801 | <issue_start>username_0: `val` cannot be reassigned compile time error `var` variable. Can't we change the array value?
Error
>
> Array.kt:11:3: error: val cannot be reassigned
>
>
>
Code:
```
import java.util.Scanner
fun main(args: Array< String>){
println("Enter the no")
val scanner = Scanner(System.`in... |
2018/02/27 | 1,916 | 3,864 | <issue_start>username_0: I'm implementing the [Mahalanobis distance](https://en.wikipedia.org/wiki/Mahalanobis_distance) to measure the distance between two vectors of the same pool and just recognized that it seems to be correct the most but sometimes not, maybe due to negative values..
I realized that sometimes for
... |
2018/02/27 | 535 | 2,091 | <issue_start>username_0: I'm new to programming and I want to pass a table input value to the controller. I tried this:
```
$("#btnsend").click(function () {
$.ajax({
type: "POST",
contentType: "application/json ; charset=utf-8",
data: {
buyerID: $('.BuyerID').val(),
},... |
2018/02/27 | 352 | 1,346 | <issue_start>username_0: Anyone know of a guide on how to but APP GW infront of APIM, should be possible but cant figure out how (or not sure how to setup APP GW).
thx<issue_comment>username_1: I have exactly this same issue and seems there is not a way of having an exposed APIM to put in front of it one APP GW. What ... |
2018/02/27 | 594 | 1,918 | <issue_start>username_0: I have some timestamps that I receive in the format like
>
> 2018-02-26T23:59:49Z
>
>
>
I want to insert this date into a datetime column. Executing the following statement works
```
SELECT DATE_FORMAT('2018-02-26T23:59:49Z', '%Y-%m-%d %H:%i:%s');
```
where the second argument is the ... |
2018/02/27 | 425 | 1,593 | <issue_start>username_0: Say that we have the interface
```
interface Thing {
uuid: string;
edges: number;
corners: number;
}
```
And you want to implement a type where all but uuid are left as optional properties. Such a type would be useful when passing around changesets to `Thing`s where all things are mapp... |
2018/02/27 | 942 | 2,657 | <issue_start>username_0: Assume I have a function which uses a loop over integer `i`. Now something goes wrong and I assume the error happens when `i=5`. Now I can step through every single step (what I did up to now).
But now I read about the `condition` and `text` argument of `browser` and `debug`:
>
> **text** a ... |
2018/02/27 | 1,476 | 2,699 | <issue_start>username_0: I have a dataset of people that "like" each other.
I converted it to a graph.
```
g.likes <- graph_from_data_frame(dt.likes, directed = TRUE)
```
But I need to filter out the people that have liked each other. so only keep if A->B and B->A.
I don't seem to be able to find how I can do thi... |
2018/02/27 | 452 | 1,710 | <issue_start>username_0: I'm writing some `SQL` and a question appeared in my mind.
`SQL` is like this:
```sql
select
t1.column1,
t2.column2
from
table1 t1
inner join table2 t2
on t1.keyA = t2.keyA
where
t1.name = '<NAME>'
```
Does the order in `on` clause affect `SQL` performance?
`on t1.... |
2018/02/27 | 641 | 2,141 | <issue_start>username_0: I am currently developing my first app in android studio and i am facing a problem that i tried to fix for a while now.
I am trying to remove the first action bar.
I tried changing the theme to a .noActionBar one but to result
Please check out the image for a visual explanation
[](https://i.stack.imgur.com/aI04i.png)
```
Intent intent = new Intent(Intent.ACTIO... |
2018/02/27 | 326 | 1,177 | <issue_start>username_0: For example:
```
class User < ActiveRecord::Base
serialize :preferences, Hash
end
```
**preferences** contains hash record...
ex:
```
{'category' => 'a', 'type' => 'b', 'published' => true}
```
**How can I do some query, where I have to return records that matched/equal to specific key-v... |
2018/02/27 | 363 | 1,446 | <issue_start>username_0: In Magento 2 We are getting error on category save. Error is - No such entity with id = xx please any one can help to resolve the same ?
Thank you.
[click to see screen shot for error](https://i.stack.imgur.com/NXSpd.png)<issue_comment>username_1: Please make indexing and recheck. If you are ... |
2018/02/27 | 587 | 1,778 | <issue_start>username_0: ```
var xyz, i, tx = {}
// Doesn't work: var xyz, i, tx = {}
for (var i = 0; i < 5; i++) {
// Doesn't work: window.xyz, window.i, window.tx
xyz[i].tx = 5
// Doesn't work: xyz[i]["tx"] = 5
}
alert(xyz);
```
Returns `TypeError: xyz is undefined`.
I defined variables, tries forced... |
2018/02/27 | 465 | 1,752 | <issue_start>username_0: I want to fetch JSON data, store it in state and then pass it to component through props. In the component I want to use the `map` function but it shows me this error :
`TypeError: this.props.dataQueries.map is not a function.`
This is my code:
```
class App extends Component {
constructor... |
2018/02/27 | 534 | 1,771 | <issue_start>username_0: Below is my code:
Home.html and List.Html
```
AngualrJS Controller
[List](#!list)
```
List.html
```
List
```
Below is HomeController.js
```
var app = angular.module("myApp");
app.controller('myCtrl', function ($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
}... |
2018/02/27 | 363 | 1,253 | <issue_start>username_0: I installed Cello. I am able to access 8081(user dashboard) but not 8080(operator dashboard). 8080 is already free to use and I can see **"docker-proxy"** using it. I tried changing ports on in docker-composer.yaml but again in logs I can see 8080 is assigned to operator dashboard. So where sha... |
2018/02/27 | 427 | 1,491 | <issue_start>username_0: I want to pass to Clojure a map of Java functions. The functions use Java anonymous classes that implement the IFn interface. I also need to implement the ISeq interface to pass lists. The ISeq interface is simple but has [no documentation](https://github.com/clojure/clojure/blob/master/src/jvm... |
2018/02/27 | 974 | 3,922 | <issue_start>username_0: I am trying to solve this problem: <https://leetcode.com/articles/number-of-atoms/#approach-1-recursion-accepted>.
The question is: given a formula like `C(Mg2(OH)4)2`, return a hash table with elements and their counts. Element names always start with a capital letter and may be followed by a... |
2018/02/27 | 557 | 2,307 | <issue_start>username_0: I use a `md-select` using Angular 4 with Material, and I can't seem to change the `font-size` to 14, no matter what I try. There also isn't a style, except in the node-modules, which I don't want to change. I can inspect it with firebug and see that it is `mat-select-trigger` class that sets th... |
2018/02/27 | 421 | 1,627 | <issue_start>username_0: I'm having an issue with concurrent reads and writes on MongoDB, and was wondering if there was a simple solution embedded within the DB system.
I have an object that collects statistics for an app, and is represented on MongoDB as a single document in its own collection:
```
{
"animals":... |
2018/02/27 | 1,307 | 4,933 | <issue_start>username_0: currently working on a database using SQLite 3 and I have received the following error. I didn't have the error before I added all of the `resultsfromsearch`:
```
line 96, in addrecord
cursor.execute(query + fields)
sqlite3.OperationalError: near ",": syntax error
```
any help would be a... |
2018/02/27 | 1,444 | 5,542 | <issue_start>username_0: I need to know if a user tapped on the **Cancel** or **Ok** button
in a **Date/Time picker** of an `xamarin.Forms` Android app.
I have tried to add a function to the Click event but this is never triggered.
This is my code (similar for the TimePicker):
```
using Android.Content;
using MyApp.... |
2018/02/27 | 1,105 | 4,219 | <issue_start>username_0: I've been trying to get observable's working for a bit now, but i keep failing.
At this moment, my code is starting to look more like a battlefield then the order it normally used to be.
I keep getting the "ERROR TypeError: Cannot read property 'map' of undefined."
I am trying to import json... |
2018/02/27 | 250 | 993 | <issue_start>username_0: I'm confused by the following statement.
"*One important thing to bear in mind is that observables are not streams, those are two different concepts*"
When we define Observable, we would certainly talk about streams. Could someone shed some light on this?
How is Angular using both these con... |
2018/02/27 | 1,438 | 5,038 | <issue_start>username_0: I have several situations when my control key gets stuck, and it happens only when I have AutoHotkey running. This happens with multiple different modifier keys including the control (^), windows (#), and alt (!) keys.
Similar problems have been posted several times before:
[1](https://autohot... |
2018/02/27 | 925 | 3,541 | <issue_start>username_0: I have three selects on my form.
Each depends on the values of the previous one.
I mean there is drop-down list with ***categories***, ***car brand*** and ***car model***.
The list with car brand must show the brands of chosen category. Also car model have consist of models of chosen brand.
... |
2018/02/27 | 1,026 | 3,504 | <issue_start>username_0: I have this string
```
ABCD1234, XYZ, ABCD1234, ABCD1234C, ABCD1234, abc, abcX, 1234U, 1234
```
and I want, but I don't want **duplicates** values
```
ABCD1234, XYZ, ABCD1234C, abc, abcX, 1234U, 1234,
```
I'm using below regex
```
select regexp_replace (
'ABCD1234, XYZ, ABCD1234, A... |
2018/02/27 | 448 | 1,662 | <issue_start>username_0: If i create an array as:
```
int number[10];
for(i=0;i<7,i+=1)
{
cin>>number[i];
}
```
Then what will be the values stored in `number[j]`, where `j=8,9`.
And if some value is stored why and how are such values stored??<issue_comment>username_1: They are uninitialized, meaning there could... |