date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/12 | 561 | 1,308 | <issue_start>username_0: What is the difference between the following two multipliers?
My code and output as following:
```
>>> print np.dot(np.array([1,2]), np.array([[3,4,5],[6,7,8]]))
[15 18 21]
>>> print np.dot(np.array([[1,2]]), np.array([[3,4,5],[6,7,8]]))
[[15 18 21]]
```
So I want to know if these two formu... |
2018/03/12 | 685 | 2,222 | <issue_start>username_0: This is my code to print Questions and then their respective Answers.
```
php
$reg = $_SESSION['reg'];
$sql1="select users.reg,questions.question,questions.id from users,questions where users.reg=questions.reg and questions.company='infosys' and questions.reg!='$reg' limit 0,5";
$query1... |
2018/03/12 | 503 | 1,694 | <issue_start>username_0: I know this is probably to be a stupid question. I have the following code:
```
from pyspark.sql import SparkSession
rows = [1,2,3]
df = SparkSession.createDataFrame(rows)
df.printSchema()
df.show()
```
But I got an error:
```
createDataFrame() missing 1 required positional argument: 'data'... |
2018/03/12 | 610 | 1,878 | <issue_start>username_0: Is `marquee` element supported in ***Html 5*** ? if not, how could we give that effect (design) by **Css 3** coding. I mean scrolling text one side to another side, etc etc.
Some browsers still supports marquee element. But when I google it. Some sites are saying that it is not supported by htm... |
2018/03/12 | 3,189 | 12,688 | <issue_start>username_0: What is the point of `git add .` or `git add` to add it to the staging area? Why not just `git commit -m "blabla"`?
I don't understand the value of the staging area.<issue_comment>username_1: If you think staging is a useless then you may be aware of full power of git and software development... |
2018/03/12 | 839 | 3,499 | <issue_start>username_0: I'm starting with Python 3, using Raspbian (from Debian), and using virtualenv. I understand how to create/use a virtualenv to "sandbox" different Python project, HOWEVER I'm a bit unclear on whether one should be setting up a different linux user for each project (assuming that the project/vir... |
2018/03/12 | 725 | 2,639 | <issue_start>username_0: I'm working on a webapp using Ruby on Rails as framework. For all the partial renders, we used link\_to with remote true as explained in [this](https://stackoverflow.com/questions/26808696/rails-4-rendering-a-partial-with-ajax-jquery-remote-true-and-respond-to) answer. However, I would like to ... |
2018/03/12 | 636 | 2,638 | <issue_start>username_0: I want to pass parameter from servlet to jsp page . That is why , in servlet , I have written the following code :
```
request.setAttribute("errorMessage", dbMessage);
response.sendRedirect(redirectURL + "index.jsp");
```
In index.jsp I have written the following code :
```
<%
... |
2018/03/12 | 554 | 2,004 | <issue_start>username_0: I get below code in a project which one is using JNI. By now I could understand that this is a struct array and typed as JNINativeMethod, first name is the method defined in Java code ("description", "run\_"...), second one define the method type and return type, and third one is the method poi... |
2018/03/12 | 495 | 1,595 | <issue_start>username_0: I want to add two images 1)java.png 2)neural.png When I try to type in `src="java.png"` and `src="neural.png"` it does not load the image. I want to add these images in my content component.
content.js:
```
class Content extends Component {
render() {
return (

####... |
2018/03/12 | 2,071 | 8,555 | <issue_start>username_0: I'm working on an app that hits a web service every 10 seconds to fetch data and then populate it in a RecyclerView, if there is any data present in the JSONarray returned. Once the data is retrieved by the application, the retrieved data will be removed from the server. So that the next time t... |
2018/03/12 | 202 | 836 | <issue_start>username_0: I am developing a flutter app on the android studio, Proxy is disabled from the android studio as well IE, and using open network but still getting a proxy error, Is there any separate proxy config. for flutter, If, How to remove it?
It works fine for other Android projects, only for flutter ap... |
2018/03/12 | 651 | 2,351 | <issue_start>username_0: I want to have a switch case statement inside Step tag to get a correct format message base on step number, but it always prompt error there.
The error says:
>
> [ts] Expression expected
>
>
>
```
export const MainBoxHeader = props => (
);
```<issue_comment>username_1: Try below syntax... |
2018/03/12 | 156 | 672 | <issue_start>username_0: Can we dynamically/problematically update the reactnative/android application without going to app store etc ?<issue_comment>username_1: Yes, as your react native code is a bundled JavaScript file, this file can be served from anywhere. Although you can set this up yourself, the most popular se... |
2018/03/12 | 496 | 1,765 | <issue_start>username_0: I have an angular app with cloud firestore with the following structure:
```
--nombre
--grupo
--nombre1
--nombre2
--nombre3
--numerocuenta1
--numerocuenta2
--numerocuenta3
--resuelto
--0: false
--1: false
.
.
.
--13: false
```
As you can see, at the end I have an array of boolea... |
2018/03/12 | 323 | 1,201 | <issue_start>username_0: How can I trigger a focusout event programmatically using just JavaScript not jQuery?
For example, in the following code, the idea is that it should alert "Hello, world!" because of the focusout() function (or a similar event-causing function) being called (focusout() isn't a JS function but t... |
2018/03/12 | 481 | 1,593 | <issue_start>username_0: I am working on a Laravel product which has to connect to Azure MySql server. I have the following config in `.env` file:
>
> /.ENV
>
>
>
```
DB_CONNECTION=mysql
DB_HOST=hostname.mysql.database.azure.com
DB_PORT=3306
DB_DATABASE=dbname
DB_USERNAME=username@hostname
DB_PASSWORD=<PASSWORD>
... |
2018/03/12 | 812 | 2,948 | <issue_start>username_0: I'm not sure why this modal isn't populating the post ajax data. Its actually supposed to update a row in my SQL DB upon success but the error I'm getting is "Uncaught TypeError: Cannot read property 'value' of null." Does anyone have any idea why this failing?
Updated: I apologize for leavin... |
2018/03/12 | 950 | 2,824 | <issue_start>username_0: When I test with a subset of the WSDL file, with Name Spaces omitted from the file and code, it works fine.
```
# for reference, these are the final lines from the WSDL
#
#
#
# 1027
#
#
#
#
#
#
from lxml import etree
wsdl = etree.parse('http://developer.ebay.com/webservices/latest/S... |
2018/03/12 | 1,303 | 5,065 | <issue_start>username_0: I want to build a bot which can make use of QnA api and google drive's search api. I will ask user if he wants to query Knowledge base or he wants to search a file in drive. For this, I chose Form Flow bot template of Bot Framework. In this case, if user chooses to query qna api then I want to ... |
2018/03/12 | 4,216 | 16,630 | <issue_start>username_0: I am having a list view and an `EditText`. When i write on `EditText` i want to display my list view Starting with those alphabets. I am adding a custom adapter to My list view.
i have problem with `getFilter()` in `Edittext.addTextChangedListener`
My XML Layout
```
xml version="1.0" encodin... |
2018/03/12 | 235 | 977 | <issue_start>username_0: I'm trying to highlight areas of an image like how you would on your mac or windows by dragging an area with the mouse in a React.js application.
I understand this would be best done on Canvas, by overlaying the canvas over the image, and then catch the mouse events and drawing the rectangle a... |
2018/03/12 | 1,976 | 5,530 | <issue_start>username_0: I tried to use top nav and sidebar in bootstrap 4. but it doesn't go well
I have header.jsp that is used as top nav.
It's linked with sidebar page using action tag. like this
```
...
```
but it doesn't work. [It fell apart](https://i.stack.imgur.com/X1lkm.gif)
after that, I searched w... |
2018/03/12 | 466 | 1,740 | <issue_start>username_0: I have written his react component
```
class RegistrationSpecialNeeds extends React.Component {
constructor(props) {
super(props);
this.state = {"specialneeds": []}
this.isChecked.bind(this)
}
handleChange(event, key) {
console.log('came inside ... |
2018/03/12 | 1,218 | 4,445 | <issue_start>username_0: I'm building an API with Koa. I have all my routes in place with koa-router. Each route uses a controller that has all the logic for a given mongoose model. I've read the [Koa docs on error-handling](https://github.com/koajs/koa/blob/master/docs/error-handling.md) and understand the use of `awa... |
2018/03/12 | 865 | 3,282 | <issue_start>username_0: I want upstream project to fail if downstream project fails. I am using Trigger Parameterized build on other projects option to trigger downstream project:
Image Link:
[](https://i.stack.imgur.com/Arr4z.png)
As I checked an... |
2018/03/12 | 1,167 | 4,637 | <issue_start>username_0: I want to create user using ndb such as below:
```
def create_user(self, google_id, ....):
user_keys = UserInformation.query(UserInformation.google_id == google_id ).fetch(keys_only=True)
if user_keys: # check whether user exist.
# already created
...(SNIP)...
else:
# create... |
2018/03/12 | 1,500 | 4,246 | <issue_start>username_0: I'm using extjs and I want to customize the first row texts in a table to bold and increase the font size. I didnt find any unique property for rows. Is there any way to customize?<issue_comment>username_1: You'd use CSS for that:
```
tr:first-child {
font-weight: bold;
font-size: x-la... |
2018/03/12 | 1,517 | 4,303 | <issue_start>username_0: I have used multiple tab layout activities (ex.5) & multiple image view (ex:5 ).i click (Ex:3) image then open particular tab (Ex:3). how to write code anybody help.Image used in main activity image click enter tab layout particular tab.<issue_comment>username_1: You'd use CSS for that:
```
tr... |
2018/03/12 | 285 | 903 | <issue_start>username_0: Here what the cell looks like
```
Cloning into 'XYZ'...
The authenticity of host 'github.com (192.**.###.113)' can't be established.
RSA key fingerprint is SHA256:<KEY>.
Are you sure you want to continue connecting (yes/no)?
```
How to give yes or no to this running command cell?<issue_com... |
2018/03/12 | 927 | 2,636 | <issue_start>username_0: I have the following
```
CREATE TABLE TABLEA (
fieldA VARCHAR(2) ,
fieldB VARCHAR(2),
fieldC VARCHAR(2),
fieldD VARCHAR(2),
DATE_PROD VARCHAR(8),
DATE_LOAD VARCHAR(8)
)
;
-- data
INSERT INTO TABLEA
(fieldA, fieldB, fieldC, fieldD, DATE_PROD, DATE_LOAD)
VALUES
('1', '2', '3', '4', '10102015'... |
2018/03/12 | 783 | 2,813 | <issue_start>username_0: I am working in an Angular4 application ,In I'm trying to pass values from child component to parent component .I have implemented something but I can't get the output as expected.
Child component image...
[](https://i.stack.imgur.com... |
2018/03/12 | 317 | 1,192 | <issue_start>username_0: Is it possible, like most of the social media websites to do something like
somesite.com/username but still have certain paths like /login or /settings
```
ReactDOM.render(
, document.getElementById('root')
);
```
with the suggestions of using exact
```
, document.getElementById('root'... |
2018/03/12 | 372 | 1,293 | <issue_start>username_0: I am given data structures like `Data` here:
```
Data.whatever.t # (contains time)
Data.whatever.log.vel # (contains velocity)
Data.a # (contains acceleration)
```
and I want to map them to a an object in an elegant/pythonic way, so that I have:
```
data.t
data.velocity... |
2018/03/12 | 313 | 1,035 | <issue_start>username_0: My web page offline return lpv4 format ip address
But uploading on server(online) it will show a lpv6 ip address.
**Main Purpose is to get client pc ip address on my website**
localhost wamp ip address
127. 0.0.somthing
Webhost ip address get is
fc00:db20:35b:7399::5
```
php
echo $_S... |
2018/03/12 | 359 | 1,351 | <issue_start>username_0: Everytime I submit the form, the modals closing
```
×
### **Shipping Information**
**First Name**
**Last Name**
**Address**
Final Invoice
Close
```
I tried many things that were posted every one stackoverflow but none of them seem to work.
Tried stuff like $('#shipping').modal... |
2018/03/12 | 2,354 | 8,258 | <issue_start>username_0: I am attempting a Haskell coding challenge where, given a certain string with a prefix indicating which substrings are delimiting markers, a list needs to be built from the input.
I have already solved the problem for multiple single-length delimiters, but I am stuck with the problem where th... |
2018/03/12 | 3,503 | 11,788 | <issue_start>username_0: I'm trying to scrape several pages of a site with Selenium and Python, but my code is breaking over and over. I want to be able to enter the page number in the value box given at the bottom of every page. As of now my code does enter the page number but it breaks right after the new page is loa... |
2018/03/12 | 599 | 2,153 | <issue_start>username_0: In my control page, I need to query my usersas6 table for all username entries and compare to $username from a form on my view page. The rest of the code is fine. I have tried this but I do not seem to add anything to the $myerror variable even when there is already an entry in the table with t... |
2018/03/12 | 516 | 1,953 | <issue_start>username_0: Tried below SPEL expression, but it fails to work. Need help!
```
@KafkaListener(topics = "#{Arrays.asList(${kafka.topic.helloworld}.split(',')).stream().map(p -> p+envSuffix).toArray(String[]::new)}")
```<issue_comment>username_1: First of all I see that `${kafka.topic.helloworld}` has to be... |
2018/03/12 | 1,442 | 4,670 | <issue_start>username_0: As a part of my shell script, I am trying to create record sets in AWS Route53. However, using variables in the aws cli within my shell script to create those records set, my variables exported in the Shell scripted are not being passed to the **aws cli command**.
AWS CLI command provided by ... |
2018/03/12 | 979 | 3,309 | <issue_start>username_0: when I remove gravity attribute then the image will set on top corner right but when it used it leave padding at the top why gravity leaves space ????
[enter image description here](https://i.stack.imgur.com/CUL0U.png)<issue_comment>username_1: Variables do not expand within single quotes.
If ... |
2018/03/12 | 907 | 2,957 | <issue_start>username_0: I am new in mysql I am trying to get data using below SP where I used if else statements
```
CREATE DEFINER=`Travel_user`@`%` PROCEDURE `new_procedure`(in bus_id int, in travel_id int, in tr_date Date, in Seat_no varchar(45))
BEGIN
select @SeatNo := Fare from Travel_booking.SpecialFares... |
2018/03/12 | 2,833 | 5,538 | <issue_start>username_0: I'm doing basic data analysis right now and I'm struggling trying to create a column graph when theres 3 data sets.
Here's my data:
```
datasetArgentina = {'Year': ["2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007","2008", "2009", "2010", "2011", "2012", "2013", "2014", "2015","2... |
2018/03/12 | 602 | 2,174 | <issue_start>username_0: I have a `TextView` that displays an error message beside 2 `Buttons`. They are currently inside a horizontal `LinearLayout`. The problem is if the `TextView` is too wide, the 2 `Buttons` will be pushed off the screen. Is it possible to push the elements downwards in those cases?
If the text i... |
2018/03/12 | 400 | 1,358 | <issue_start>username_0: I tried to find anything here in [documentation](http://knexjs.org/#changelog) with no success.
What I would like to do is to clone my query builder and reset some query parts like order by or group by. How can I do that ?
It looks like there is no many methods available for this query parts
... |
2018/03/12 | 434 | 1,536 | <issue_start>username_0: In the docs for heapq, its written that
>
> heapq.heappushpop(heap, item)
>
>
>
> >
> > Push item on the heap, then pop and return the smallest item from the heap. The combined action runs more efficiently than heappush() followed by a separate call to heappop().
> >
> >
> >
>
>
>
... |
2018/03/12 | 629 | 1,739 | <issue_start>username_0: So I have a list of strings say ["test1", "test2", "test3", "exam1"], and I want to figure out which ones end with either "1" or "2".
I know I can use
```
map (isSuffixOf "1") ["test1", "test2", "test3", "exam1"]
map (isSuffixOf "2") ["test1", "test2", "test3", "exam1"]
```
to get two diffe... |
2018/03/12 | 1,875 | 5,171 | <issue_start>username_0: I have the below case statement in python,
```py
pd_df['difficulty'] = 'Unknown'
pd_df['difficulty'][(pd_df['Time']<30) & (pd_df['Time']>0)] = 'Easy'
pd_df['difficulty'][(pd_df['Time']>=30) & (pd_df['Time']<=60)] = 'Medium'
pd_df['difficulty'][pd_df['Time']>60] = 'Hard'
```
But when I run th... |
2018/03/12 | 2,039 | 6,030 | <issue_start>username_0: I have written the following react component
```
class RegistrationActivity extends React.Component {
constructor(props) {
super(props);
this.state = {activity: this.props.activities[0]}
this.handleChange = this.handleChange.bind(this);
}
handleChange(event) {
... |
2018/03/12 | 744 | 2,346 | <issue_start>username_0: I am trying to animate images using CSS on a webpage. The animation is working fine but I want to START the animation it only when user reaches at a particular section of the page. Here is my code:
```

```
CSS
```
.sec1-right{
position: relative;
width: 50%;
... |
2018/03/12 | 291 | 1,072 | <issue_start>username_0: I have swift 4 project, recently pull from another branch. But whenever i want to import any class which is already exist in project show me the error `"No such module..."`. Please suggest me what is wrong.
[](https://i.stack.... |
2018/03/12 | 583 | 2,149 | <issue_start>username_0: On form submission I want to get all form fields and save them in an array. But there are few textboxes, select boxes, input fields, check boxes and radio buttons. This is a dynamic form built in WordPress and user can change these fields from back end.
Here is my code
```
var form_label = [];... |
2018/03/12 | 469 | 1,676 | <issue_start>username_0: On the other reports it works fine but when I did a join query somehow the from , to date does not work , it shows nothing.
```
$stmt1 = $conn->prepare("SELECT * FROM sales_detail LEFT JOIN product ON product.productid=sales_detail.productid LEFT JOIN sales ON sales.salesid=sales_detail.salesi... |
2018/03/12 | 384 | 1,397 | <issue_start>username_0: I have to display the names of jobs which contains letters m or p . does'nt matter the position of letters where they are at .they can be either at starting or middle or what ever position.
thank you<issue_comment>username_1: Use SerializeArray(), to get form fields in array
```
jQuery(form.ev... |
2018/03/12 | 498 | 1,731 | <issue_start>username_0: How to declare a map in typescript where the key could be a string | number and the value could be for example a number.
I'm trying the following and get an error
```
let aMap : { [key: string | number]: number } = {}
```
I get the following error in VS Code
>
> [ts] An index signature pa... |
2018/03/12 | 403 | 1,445 | <issue_start>username_0: Is there a way to restrict the support for Desktop/PCs for the Xamarin UWP app published in Windows store. i.e, can we publish the Xamarin UWP app in Microsoft store which will list the app only in mobiles and Tablets and not list them in Desktop/PC devices?<issue_comment>username_1: Ahh, I fig... |
2018/03/12 | 830 | 2,027 | <issue_start>username_0: I got 3 datasets which contain the flow in m3/s per location. Dataset 1 is a 5 year ARI flood, Dataset 2 is a 20 year ARI flood and Dataset 3 is a 50 year ARI flood.
Per location I found the maximum discharge (5,20 & 50)
Code:
```
for key in Data_5_ARI_RunID_Flow_New.keys():
m = key
... |
2018/03/12 | 546 | 1,933 | <issue_start>username_0: In Visual Studio Code, I have changed the default [EOL](https://en.wikipedia.org/wiki/Newline) (end-of-line token) from CRLF to LF, but this only applies to new files.
I would like to know how to change the EOL for all files at once as I have more than a hundred files and it will be hard to do ... |
2018/03/12 | 1,591 | 4,443 | <issue_start>username_0: I've added a couple of blogposts to my blogdown/netlify backed site today:
<https://github.com/brainstorm/brainblog/blob/master/content/brainstorm/2018-03-12-umccr-arteria.md>
<https://github.com/brainstorm/brainblog/blob/master/content/brainstorm/2018-03-13-umccr-pcgr.md>
And while they ren... |
2018/03/12 | 1,692 | 4,549 | <issue_start>username_0: I have files containing below format, generated by another system
```
12;453453;TBS;OPPS;
12;453454;TGS;OPPS;
12;453455;TGS;OPPS;
12;453456;TGS;OPPS;
20;787899;THS;CLST;
33;786789;
```
i have to check the last line contains 33 , then have to continue to copy the file/files to other loc... |
2018/03/12 | 409 | 1,727 | <issue_start>username_0: I am using the below Nifi processors
```
HTTPRequestHandler -> Some custom processors in between -> HTTPResponseHandler
```
Custom processors are used for doing some transformations.
In the HTTPResponseHandler processor i am getting
`Flowfile had an HTTP.Context.identifier of true but Co... |
2018/03/12 | 444 | 1,527 | <issue_start>username_0: My question is about Ubuntu-16.04.
It's showing error -
>
> Error mounting /dev/sda5 at /media/\*\*\*/New Volume: Command-line `mount
> -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda5" "/media/harshit/New Volume"' exited with non-zero exit
> status 14: The disk con... |
2018/03/12 | 917 | 3,807 | <issue_start>username_0: I have my dtatframe and would like to present the data where the vlaues in the pivot table are simply the count of the strings, which are my columns in the pivot table:
Sample of my df:
```
trading_book state
A Traded Away
B Dealer Reject
C Dealer ... |
2018/03/12 | 529 | 1,777 | <issue_start>username_0: ```
>>> import attr
>>> @attr.s
... class SmartClass(object):
... a=attr.ib()
... b=attr.ib()
...
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'attr' has no attribute 's'
>>>
```
I don't understand why it's not working. I have installed this modul... |
2018/03/12 | 2,279 | 7,258 | <issue_start>username_0: I have a two Bundles A of version 05.18.000 which uses B of 05.18.000 used in Bundle C.
and I have same bundles A and B of different version 05.20.000 used in Bundle D.
Bundle A is trying to cast a concrete class to an interface. Both the interface and implementation classes are in Bundle B.
... |
2018/03/12 | 764 | 1,924 | <issue_start>username_0: How can i distinct same object data value using Javascript? [ES15/ES16]
for the given data value
```
[{Zone: "2"},
{Zone: "4"},
{Zone: "4"},
{Zone: "6"},
{Zone: "1"},
{Zone: "2"},
{Zone: "3"},
{Zone: "3"},
{Zone: "4"},
{Zone: "4"}]
```
after it will distinct it will return
```
[{Zone: "1"}... |
2018/03/12 | 217 | 845 | <issue_start>username_0: Say I have a messaging app on an iPhone, and every time I send a message clicking the "Send" button, I don't want the keyboard to "hide", I want it to stay where it is. Is there any way to do this? I've tried using `textViewShouldEndEditing` to adjust it, but even when it returns `false`, the k... |
2018/03/12 | 293 | 1,021 | <issue_start>username_0: I am building a dynamic json with the data coming from the server using angularjs. I have declared it as below. it only works if data from server has one item in the object array. How should i declare for it to work dynamically?
```js
$scope.items = [{
id: “”,
locations: [{
name: “”... |
2018/03/12 | 7,696 | 17,388 | <issue_start>username_0: I have the following airflow code which basically reads the tables from MySql DB into Google Cloud Storage and then to Google Big Query.
I have included the connection details along with the service accounts for both MySQL and GCP in the admin tab of the airflow.
```
extract = MySqlToGoogleCl... |
2018/03/12 | 563 | 2,167 | <issue_start>username_0: We have a completely serverless application, with only lambdas and DynamoDB.
The lambdas are running in two regions, and the originals are stored in Cloud9.
DynamoDB is configured with all tables global (bidirectional multi-master replication across the two regions), and the schema definition... |
2018/03/12 | 1,573 | 4,492 | <issue_start>username_0: I have a table containing:
```
table = [[5, 7],[4, 3],[3, 3],[2, 3],[1, 3]]
```
and the first values represented in each list, (5,4,3,2,1) can be said to be an ID of a person. the second values represented (7,3,3,3,3) would be a score. What I'm trying to do is to detect duplicates values in ... |
2018/03/12 | 1,446 | 4,544 | <issue_start>username_0: Can someone please check my code because in this code on some cases the output is correct but when I try to test this input zzzazzazz the output is not what I expect.
```
function checkPalindrome($inputString) {
$arr1 = str_split($inputString);
$arrlength = count($arr1);
$max = $arrlength-1;
... |
2018/03/12 | 1,479 | 4,798 | <issue_start>username_0: I have a few different models which I would like to add multiple images to.
I have an image model with `belongs_to` associations set up to the different owning models (each of these owning models has `has_many :images` defined).
I would like to know what's the appropriate migration I should ... |
2018/03/12 | 1,514 | 4,172 | <issue_start>username_0: I have been working on a program that reads a CSV file that contains Names, Age, and GPA values.
The code seems to read through the file fine but I have issues dealing with parsing it as the program is not properly tokenizing values. For some reason it reads the line correctly, then when I try ... |
2018/03/12 | 1,189 | 3,286 | <issue_start>username_0: I want the dates to be in `dd-mm-yyyy` format and have to block future dates from selection.
I am using the following code:
```
$( function() {
$( ".datepicker" ).datepicker({dateFormat: "dd-mm-yy"});
$( ".datepicker" ).datepicker({maxDate: "+0D" });
} );
```
But only the first line in th... |
2018/03/12 | 305 | 1,073 | <issue_start>username_0: Detail
======
I am trying to post a file from Postman to the endpoint I have created. but it gives me this error. I am not passing the header Content-Type in postman
>
> 415 Unsupported Media Type
>
>
>
API
===
```
[Consumes("multipart/form-data")]
[HttpPost]
public async Task SendEmail... |
2018/03/12 | 277 | 841 | <issue_start>username_0: Suppose there is a list `['Hello','@sdfss','<PASSWORD>','World']`.
How to delete all the words which contain non-alphabetic in this list?
Using Regex in python.
The result should be
```
['Hello','World']
```<issue_comment>username_1: You don't really need regular expressions, just [`isalpha(... |
2018/03/12 | 4,121 | 12,555 | <issue_start>username_0: Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates.
Input Format
The STATION table is described as follows:

I write the below que... |
2018/03/12 | 690 | 1,660 | <issue_start>username_0: I have the following function:
`PDF of a random variable X:
f(x) = b*x(1-x)^3 for x[0,1].`
The question I need to answer is: `Use the the integrate function to show that 'b' = 20.`
I tried the following:
`fx<-function(b,x){
b*x*(1-x)^3
}
integrate(fx, 0,1)`
However, I get the following me... |
2018/03/12 | 625 | 2,270 | <issue_start>username_0: ```
CREATE TABLE test (
calculate_time int4 NULL,
status bool NULL
);
INSERT INTO test (calculate_time,status) VALUES
(10,true)
,(15,true)
,(20,true)
,(20,true)
,(5,false)
,(10,false)
,(15,false)
,(100,NULL)
,(200,NULL)
,(300,NULL)
;
```
With this query it average all calculated\_ti... |
2018/03/12 | 1,428 | 4,895 | <issue_start>username_0: I use Jetty 9.4.8 and i want limits the amount of data that can post to the server. For that i added to jetty.xml:
```
org.eclipse.jetty.server.Request.maxFormContentSize
10000
```
I tested jetty like (request-xxlarge.xml - text file(20mb)):
```
curl -X POST --data @request-xxlarge.xml h... |
2018/03/12 | 314 | 1,117 | <issue_start>username_0: i have to select distinct values from a specific field in solr using Java. I have applied
```
SolrQuery solrQuery = new SolrQuery();
solrQuery.add("q", "*:*");
solrQuery.setParam("fl", "field_name");
solrQuery.add("facet", "on");
solrQuery.add("facet.fi... |
2018/03/12 | 1,531 | 5,429 | <issue_start>username_0: After updating the Target version `P` getting error
>
> Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-analytics:11.8.0.
> Open File
> Show Details
>
>
>
1.I added the `google()` in project gradle file
2.I have also... |
2018/03/12 | 618 | 2,749 | <issue_start>username_0: First, I want to add all `ArrayList` Values into `JsonObject` then I want to add these JSON object to `JsonArray` I have done wright in the first I have added all `ArrayList` to `JsonObject` but I can't add all `JsonObject` to `JsonArray`.
This is my code to convert json object to json Array:-... |
2018/03/12 | 2,101 | 8,108 | <issue_start>username_0: I've migrated to SDK Android 27.1.0 3 days ago, and there are some crashs like this one, I can't understand why. It appears (currently) on Android 8 and 6.
```
BadParcelableException ClassNotFoundException when unmarshalling: android.support.v4.app.FragmentManagerState android.support.v4.app.... |
2018/03/12 | 800 | 2,770 | <issue_start>username_0: I'm learning various method on how we can implement `Dependency Injection` on Angular 5. It was known that Angular 5 have **3 different methods** of how we can declare **provider's key / token** when declaring a dependency.
**First,** using **Class** (the easiest and most common way), e.g:
``... |
2018/03/12 | 793 | 2,238 | <issue_start>username_0: I was told to put a working code up that's why I have so much code up here but the part I am trying to focus on is aligning the top "resumania" logo in the center. When I put align: center; or text-align: center; it won't align. The class I am using for that is "logo." What am I doing wrong ??
... |
2018/03/12 | 910 | 2,946 | <issue_start>username_0: I am new to React.js and I want to use a specific WYSIWYG editor - Summernote as a component.
I am using
* React v16.2.0
* [react-summernote](https://github.com/summernote/react-summernote) v2.0.0 (*dependency*: **jQuery and Bootstrap**)
What I tried:
-------------
As the **react-summernot... |
2018/03/12 | 745 | 2,637 | <issue_start>username_0: I've a SAP Fiori application and I need to get the current logged in user details.
I've searched web but unable to find a solution.
is there any way to get current logged in user details from launchpad.<issue_comment>username_1: The User-ID can be retrieved from SDK.
Please refer to [class sa... |
2018/03/12 | 507 | 1,977 | <issue_start>username_0: I trying to create software which will backup MySQL databases remotely via Java. I do not have access to any console, but I am able to run MySQL commands and statements. I need to backup the databases into ".sql" files which can then be used to restore.
How can I go about backing up MySQL with... |
2018/03/12 | 2,216 | 6,707 | <issue_start>username_0: I am trying to make a add clicked element data text inside other div using jquery.
Its operating logic should be as follows:
When you click word1 then this clicked word1 should be come in #words div after added the word1 if you want to add word2 also then click word2 it should be come in #wor... |
2018/03/12 | 215 | 835 | <issue_start>username_0: * I wrote selenium test cases for submit button in sample website. Here I am facing a problem like, when I click on submit button results are not coming, while it happens only when I execute selenium test case. but manually I checked it, results are coming fastly. How to overcome this problem.
... |
2018/03/12 | 266 | 849 | <issue_start>username_0: Is is possible to assign an array of decimal values to a list of integers? Let's say I have an array like `decimal[]` decemalNumbers and a list of integers like List intNumbers.
So can I do the assignment like `intNumbers = decemalNumbers.ToList()`?
How Can I do an explicit conversion? Is it p... |
2018/03/12 | 269 | 766 | <issue_start>username_0: I have got date time input string in below format
```
Wednesday 9th 2018 12.00am
```
And I want to convert it to something like this
```
2018-03-09
```
I tried using strtotime function but it didn't work.
Any idea?<issue_comment>username_1: try like this , to convert it to int
```
// obj... |
2018/03/12 | 826 | 2,200 | <issue_start>username_0: I have drawn the curved line using below lines of code, I need to draw an arrowhead.For this I need to draw 2 lines wth some angle and rotate it some some angle. It is very confusing to draw. I am following the post present in the [link](https://stackoverflow.com/questions/808826/draw-arrow-on-... |
2018/03/12 | 909 | 2,502 | <issue_start>username_0: I have two columns that contain information in the following format.
```
Column A - 35 days
Column B - 29 days
```
How can i subtract the two columns to show just a number, like 35 days - 29 days = 6.<issue_comment>username_1: The following equation should do the trick
```
= VALUE(MID(A1, ... |
2018/03/12 | 2,384 | 8,227 | <issue_start>username_0: I've been using a template from startbootstrap to get something done..
I want the page content wrapper to be a solid color, but i can't get it to stay 100% height of the window even went adding more text into the div it will only stay pink a certain height and not continue.
I've tried some fix... |
2018/03/12 | 458 | 2,026 | <issue_start>username_0: I'm working on Shopify public app development. As the part of my app functionality, I have to put some liquid code in some of the front files like
i) sections/cart-template.liquid
ii) sections/product-template.liquid
etc.
I have automated the code putting process through the code in the defau... |
2018/03/12 | 1,211 | 3,847 | <issue_start>username_0: I want to query for MS access but I have SQL query, can anyone help me for convert SQL query to MS Access.
DATA :
```
StateCode BuyerCode Sales
GJ B01 20
GJ B02 5
GJ B03 50
GJ B02 45
GJ B01 7
GJ ... |