date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/07 | 1,720 | 5,663 | <issue_start>username_0: Consider a given nxn matrix. Input is n
You are then given (row,col) of those elements that exist in the matrix as a list of coordinates. Say k such elements
Total elements n^2, k elements are populated.
Max(k)=n^2, every element is populated.
Q. Find number and list of elements that are on th... |
2018/03/07 | 5,620 | 14,080 | <issue_start>username_0: Been a rabid consumer of Stack Overflow for many moons, but this is my first question so bear with me!
I know HTML & CSS but am not very JS literate, nor am I experienced in the Google Maps API.
I want my users to input an address using the Google Maps 'places' library and return a result as ... |
2018/03/07 | 238 | 862 | <issue_start>username_0: I have a field in database named experience and it has values like 5 Years or 2 Years etc.
Now I want to search all users having experience between 2 years to 5 years.
How can I do that?
How can I apply a range on string like 2 years.<issue_comment>username_1: you can try this
```
DB::table(... |
2018/03/07 | 440 | 1,483 | <issue_start>username_0: In my angular 5 project, with typescript I am using the .trim() function on a string like this, But it is not removing the whitespace and also not giving any error.
```
this.maintabinfo = this.inner_view_data.trim().toLowerCase();
// inner_view_data has this value = "Stone setting"
```
<htt... |
2018/03/07 | 1,043 | 4,782 | <issue_start>username_0: I have included `alertdialog` in my activity.
If I click `Yes`, it should move to next activity, and if I click `No`, its should move to another.
But the `dialog` is not even appearing when I do. Here is my code. Is it possible to do like that?Can anyone help. But if I call just `finish()` w... |
2018/03/07 | 716 | 2,561 | <issue_start>username_0: I have uploaded a voyager admin panel in my cPanel.
It gives error `Missing storage symlink`and images are not shown of new added item.
Suppose I want to add a new user. All information is shown of new user accept user avatar.
In locally error is easily fixed by running the cmd `php artisan... |
2018/03/07 | 602 | 1,930 | <issue_start>username_0: I am trying to use multiple search options where user can select multiple options to filter records.
When user don't select filter option(s), by default all records should be returned.
Here's my SQL query :
```
$query =
sprintf("SELECT * FROM users_leave_request
where leave_fro... |
2018/03/07 | 1,059 | 2,892 | <issue_start>username_0: I'm getting a error:
```
First-chance exception at 0x0021F4F2 in Tetris.exe: 0xC0000005: Access violation reading location 0x000000D8.
Unhandled exception at 0x0021F4F2 in Tetris.exe: 0xC000041D: An unhandled exception was encountered during a user callback.
```
Here is my ColorGrid.cpp file... |
2018/03/07 | 604 | 1,863 | <issue_start>username_0: I am using subquery with Inner Join and it is returning 10 rows but I need to match those 10 rows with another table.
How can I do that?
Below is my query:
```
SELECT
IT.IPTELM MOBILNO,TC.CDGACNTN GROUPACCOUNTNO, TC.CDCUSTN CUSTOMERNO,
TC.PRCARDN, TC.CARDNO, TC.CRDIND, TC.Limit
FRO... |
2018/03/07 | 594 | 1,856 | <issue_start>username_0: I'm taking a HTML content to the front end javascript code, from the database which was saved as varchar. It is stored in a variable called `vm.htmlContent` And then I want to display this string type HTML content again as HTML in my web page. I use `ng-bind-html` angular directive for doing th... |
2018/03/07 | 1,192 | 4,397 | <issue_start>username_0: Using the view specified below I am able to get all my properties in just fine, **and the `Team` property contains the right number of items, but all of those items' properties are just `null`**...
**View**
```
@using (Html.BeginForm("BuildTeam", "Team", FormMethod.Post, new { crmtItem = Mode... |
2018/03/07 | 1,046 | 3,374 | <issue_start>username_0: I've recently started playing with Spark SQL (2.1) and I'm dealing with nested data.
Here is my schema:
```
root
|-- a: string (nullable = true)
|-- b: map (nullable = true)
| |-- bb: string
| |-- bbb: string (valueContainsNull = true)
|-- c: array (nullable = true)
| |-- elem... |
2018/03/07 | 1,681 | 4,481 | <issue_start>username_0: ```
[['Canal St & Taylor St', 'Canal St & Monroe St (*)'], ['Larrabee St & Menomonee St', 'Sheffield Ave & Kingsbury St'], ['Orleans St & Chestnut St (NEXT Apts)', 'Ashland Ave & Blackhawk St'], ['Franklin St & Monroe St', 'Clinton St & Tilden St'], ['Broadway & Barry Ave', 'Sedgwick St & North... |
2018/03/07 | 675 | 2,481 | <issue_start>username_0: How can I click on an HTML row then show the selection values of the row in input text?
I've tried like this, but what shows up in the input text only the first row even though I click the second row and so on..
```
div class="col-md-1 col-md-1 col-xs-1">
...
×
#### Category
| I... |
2018/03/07 | 1,297 | 4,329 | <issue_start>username_0: I am new to using google colaboratory (colab) and pydrive along with it. I am trying to load data in 'CAS\_num\_strings' which was written in a pickle file in a specific directory on my google drive using colab as:
```
pickle.dump(CAS_num_strings,open('CAS_num_strings.p', 'wb'))
dump_meta = {'... |
2018/03/07 | 291 | 891 | <issue_start>username_0: I import jQuery, boostrap in my head like this
```
```<issue_comment>username_1: **hint as follows**
```
app.use('/static', express.static(path.join(__dirname)));
http://localhost:3000/static/images/kitten.jpg
http://localhost:3000/static/css/style.css
http://localhost:3000/static/js/app.js... |
2018/03/07 | 657 | 2,035 | <issue_start>username_0: How would you scrape a sitemap URL with a [LinkExtractor](https://doc.scrapy.org/en/latest/topics/link-extractors.html#scrapy.linkextractors.lxmlhtml.LxmlLinkExtractor)?
```
xml version="1.0" encoding="UTF-8"?
http://www.example.com/
2005-01-01
monthly
0.8
```
Linkextractor will target... |
2018/03/07 | 652 | 2,127 | <issue_start>username_0: In a spring boot controller method, I can map the json post request body to a POJO e.g.
```
@PostMapping(value = "/abc")
public String handleABC(
@RequestBody User user
) {
//code here...
}
```
I can also retrieve the raw request body as a string:
```
@PostMapping(value = "/abc"... |
2018/03/07 | 1,922 | 4,647 | <issue_start>username_0: My continuing saga:
I have *Artifactory Pro 5.8.4* running on a *CentOS 7.4* system that uses Artifactory's built-in *Nginx* service as a reverse proxy. Most of the time, during download of a large object, **the connection fails**. Additionally, the last few kilobytes of data that are transfer... |
2018/03/07 | 421 | 1,623 | <issue_start>username_0: I've been using Rodeo for a few weeks as a better (IMO) alternative to Jupyter Notebooks. But, it has a huge problem: I can't download any packages that didn't already come with it - for example, Seaborn. Whenever I try to do this on my work laptop, Windows 7 generates a popup error "pip.exe ha... |
2018/03/07 | 1,334 | 4,856 | <issue_start>username_0: I want to pass environment variables to a text file.
**Use Case:**
I am building a docker image from a Dockerfile and running a java command that makes use of a text file. That text file contains some keywords that I want to pass using environment variables.
**DockerFile:**
```
FROM openjdk... |
2018/03/07 | 439 | 1,228 | <issue_start>username_0: I try to install Laravel 5.6 on my production server but I have this error :
>
> [error] 12364#12364: \*6 FastCGI sent in stderr: "PHP message: PHP
> Warning: require(/var/www/laravel/public/../vendor/autoload.php):
> failed to open stream: No such file or directory in
> /var/www/laravel/p... |
2018/03/07 | 574 | 2,276 | <issue_start>username_0: I had created a class `Payment.php` in the app directory of my laravel project, and I'm trying to use it in my `HomeController.php` controller . I had imported my payment class by using `use App\Payment;`statement, but it shows the following error
>
> Symfony \ Component \ Debug \ Exception \... |
2018/03/07 | 360 | 1,309 | <issue_start>username_0: I have a situation where I am converting blobURL to base64 dataURLs, but I want to do this only if url is a blobURL.
So is there any way to check whether it is valid blob url?
my blob url - `blob:http://192.168.0.136/85017e84-0f2d-4791-b563-240794abdcbf`<issue_comment>username_1: You have to ... |
2018/03/07 | 1,170 | 3,946 | <issue_start>username_0: Click the add button, add a new row to the table
[](https://i.stack.imgur.com/DvFiE.png)<issue_comment>username_1: You can create a string similar to your HTML code, that represents the row:
```
var new_row='|'
+ ' |'
+ '... |
2018/03/07 | 1,446 | 5,547 | <issue_start>username_0: I'm at a bit of a loss here. I'm trying to learn angular cli + firebase2 (using angularfire2 5.0.0-rc.6) and I'm having an issue reading values from my cloud firestore database.
I have followed several tutorials, as well as dug through the docs and by all measures from what I can tell it shou... |
2018/03/07 | 700 | 2,941 | <issue_start>username_0: I make post method to select data from sql server, it works but i cant return all the data that i select and only can get one data
```
[HttpPost]
public Object SelectData([FromBody]DataEmployee employee)
{
DataEmployee Data = new DataEmployee();
str... |
2018/03/07 | 364 | 1,193 | <issue_start>username_0: I am working in android application. Actually there I have to set an image in place of toolbar. But I don't know what the exact sizes of that image.
I am not asking about actionbar size. I googled it a lot but unable to find the solution.
here is my requirement
[![enter image description h... |
2018/03/07 | 312 | 1,266 | <issue_start>username_0: i am running `npm install jquery --save-dev` from the command prompt to installing jquery for my project. but when i am using jquery from my javascript file it always returns the error:'$ is not defined'.
I am following the install instruction from <https://jquery.com/download/>.
but if i run `... |
2018/03/07 | 3,329 | 11,984 | <issue_start>username_0: So I am running a legacy $near search here
```
SoundSpot.find(
{ location : { $near : [ longitude, latitude ], $maxDistance: 100 } }
);
```
But I'm confused on what is actually happening to what I'm finding. To my understanding and research the search will show the documents sorted by locati... |
2018/03/07 | 268 | 947 | <issue_start>username_0: Im using google colaboratory to run some models. I was able to upload a csv file with features in google drive, import it in and run models on that data. I want to export the final dataframe out to csv. Cant find a way to do that, please advise.
```
df.to_csv('df.csv', index=False)
```
This... |
2018/03/07 | 462 | 1,611 | <issue_start>username_0: I am working on Oracle APEX, where i have an interactive report to display columns and rows in a tabular form. In the report I have used "apex\_item" { each having it's item\_id } for most editable columns.
Now, there are three columns, one with the pre-defined read-only value, one where the ... |
2018/03/07 | 1,132 | 4,123 | <issue_start>username_0: Recently, I created a layout using [CSS grid](https://www.w3.org/TR/css-grid-1/). While this works well, I'm confused by how it works. Specifically, I'm confused about the line `grid-template-rows: auto auto 1fr auto;`.
What ended up happening here is that the header and footer sized accordin... |
2018/03/07 | 766 | 2,705 | <issue_start>username_0: I want to add a grayspace of between header and the first card starting.
And want to remove the line highlighting on the card's top area in the screen, I have mentioned it the screenshot provided.
**.html**
```
![]()
Ion Cards

<NAME>
-----------
November 5, ... |
2018/03/07 | 456 | 1,574 | <issue_start>username_0: **Render problem**
Failed to find style 'cardViewStyle' in current theme Tip: Try to refresh the layout.
**Missing styles**
Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.
Ca... |
2018/03/07 | 552 | 2,415 | <issue_start>username_0: I have implemented `SQLCipher` in my Android application to make it's database secure. `SQLCipher` needs a key to encrypt database file. The problem I am facing is key protection, if my application is used on a rooted device or is reverse engineered then my key will be exposed and database can ... |
2018/03/07 | 446 | 1,240 | <issue_start>username_0: At the end of a long pipe I need to round a number to the nearest hundred. At the moment I'm trying this:
```
16036 %>%
round(./100)*100
```
I expect the function to return 16000 as is the case with:
```
round(16036/100)*100
```
How can I make the first expression work?<issue_comment... |
2018/03/07 | 542 | 1,867 | <issue_start>username_0: I'm trying to get the average ocurrences of a value in a data history.
In order to accomplish this I'm running the query:
`SELECT ROUND(COUNT(*)/COUNT(DISTINCT ChairID),10)
FROM Chair
WHERE xyz= 1`
The query returns 1, but it should return 1.0500000000.
Running
`SELECT COUNT(*)
FROM ... |
2018/03/07 | 1,045 | 4,127 | <issue_start>username_0: I have created an accordion component that fills the values dynamically provided by the parent component. What I am not able to achieve is that each accordion should respond to the respective click. Currently, no matter which accordion I click, it just collapses and expands the first one. Here ... |
2018/03/07 | 710 | 2,504 | <issue_start>username_0: Example:
```
var index = new Vue({
el:'#main',
components: { Index },
template: '',
data:{
divCount:'',
boxs:[],
}
})
```
and i add compent
```
Vue.component(
method:
function(){
//i wish use divCount in here,and how?
}
)
```
or
i define a global value in... |
2018/03/07 | 728 | 2,116 | <issue_start>username_0: I am using bootstrap 3 and this is probably a stupid problem, but I can not disable hover effect on `fa-chart-line` icon here:
```
#####
My Title
```
CSS:
```
.blue1-icon {
background-color: #019993;
color: #fff;
}
.blue1-icon:hover {
text-decoration: none;
}
.btn-circle {
wid... |
2018/03/07 | 289 | 882 | <issue_start>username_0: home.html
**create a card and access to json to values And data**
```
1) ? part : "0" + part;
}
return color;
}
```<issue_comment>username_1: Only issue with html format , change that to :
```
{{shayari.title}}
```
**[WORKING DEMO](https://stackblitz.com/edit/ionic-random-color)**... |
2018/03/07 | 249 | 844 | <issue_start>username_0: I have input field with id txt1 but I am unable to change the value from JavaScript.
```
First name:
document.getElementById('txt1').value('anyvalue1111');
```
**Note**: I find on stackoverflow how to change input value but could not found any answer. Title of the question save lot of ti... |
2018/03/07 | 941 | 2,891 | <issue_start>username_0: I have created an API in Django and inside that calling a third party API which accepts XML data. With 30 rows of XML it is working fine, for more rows throwing the error "Connection aborted.', error(104, 'Connection reset by peer')". The third party also provided a UI so I can test that up to ... |
2018/03/07 | 585 | 1,947 | <issue_start>username_0: I have two variables as:
```
char** A;
std::string B;
```
An assignment like this happens somewhere in the code:
```
B = A[0];
```
How should I give the value to A so that the assignment happens properly.
I tried this:
```
char* A_ = NULL;
A_ = (char*)"abcd";
A = &A_
```
When the assi... |
2018/03/07 | 5,293 | 17,495 | <issue_start>username_0: I am have multiple TextFields in this ViewController in which for some textfields i need numeric keyboard with a return button and two textfields with alphanumeric keyboard and one textfield with a date picker.
Everything is working fine but when I click on a textfield with alphanumeric keyboa... |
2018/03/07 | 498 | 1,602 | <issue_start>username_0: I am trying to write a template engine. I want to compile html to a javascript function. To achieve this, I should parse template successfully.
Lets say that I have a template like this without any expression:
I want to parse it as `['']`.
With expression: `${test}`, I should parse it: `[''... |
2018/03/07 | 425 | 1,301 | <issue_start>username_0: I am getting `"Error: Executing consumer group command failed due to null"` when running the following command
```
./kafka-consumer-groups.bat --zookeeper 192.168.99.101:2181 --describe --group console-consumer-62252
```
Googled it but couldn't find any solution<issue_comment>username_1: try... |
2018/03/07 | 975 | 2,812 | <issue_start>username_0: I juz get the query string from GET parameters as follows:
```
$queryStr= http_build_query($_GET);
```
I tried to apply both str\_replace & substr on this string **to replace a certain original value of a get parameter with a desired one.**
Both return the original string with nothing change... |
2018/03/07 | 590 | 2,023 | <issue_start>username_0: ```js
var name = [];
var input = prompt("what u want?");
while (input !== "quit"){
if (input === "list"){
console.log(name);
}
else if(input === "new"){
var hold = prompt("Enter");
name.push(hold);
}
input = prompt("What u want?");
}
console.log("u quit");
```
So here... |
2018/03/07 | 916 | 3,390 | <issue_start>username_0: While uploading 4MB or more than big size image, it should automatically compress less than 1MB. Can anybody tell how to do this in angularjs. The sample file is,
[JSFIDDLE](https://jsfiddle.net/JeJenny/ZG9re/)
```js
var myApp = angular.module('myApp', []);
myApp.directive('fileModel', ['$p... |
2018/03/07 | 637 | 2,293 | <issue_start>username_0: I am trying to render a table in javascript as follows:
```
$('#serviceTable').DataTable({
responsive: true,
aaData: services,
bJQueryUI: true,
aoColumns: [
{ mData: 'service_name' },
{ mData: 'last_incident' },
... |
2018/03/07 | 561 | 2,541 | <issue_start>username_0: I started composer rest server in multi user mode, using github oAuth authentication. I opened one session in chrome and one in firefox (to emulate as two different users) and authenticated using github. Now in one browser I wish to use one network card and in chrome another network card. Now w... |
2018/03/07 | 495 | 1,361 | <issue_start>username_0: We have the case class Item and a categoryMap shown as follows:
`case class Item(id: Int, name: String)`
`val categoryMap = scala.collection.mutable.Map[CategoryId: Int, List[Item]]()`
How can we find the `CategoryId`-key in 'categoryMap' if we have the `id` of `Item`?<issue_comment>username... |
2018/03/07 | 858 | 3,162 | <issue_start>username_0: I would like to create interface class and then inherit derived class from this.
Unfortunately there can be multiple types of derived classes - method with same name but different input parameters.
Here is class diagram of inherited classes
[ from dual -- returns null
... |
2018/03/07 | 320 | 1,091 | <issue_start>username_0: I have the below 2 lists:
```
Listdata;
List mylist;//MyClass has a property called MyProp which is of type decimal.
```
which are populated.
Now, I want to iterate through the myList and replace each MyProp with data list.
I can do it through foreach loop, but looking for elegant LINQ solut... |
2018/03/07 | 629 | 2,164 | <issue_start>username_0: How to make [`BottomNavigation`](https://mui.com/material-ui/react-bottom-navigation/) component sticky? Why it's not sticky by default?<issue_comment>username_1: You can make `BottomNavigation` stick to the bottom of your screen with the following CSS:
```
const styles = {
stickToBottom: {
... |
2018/03/07 | 630 | 1,882 | <issue_start>username_0: Have tried this a few different ways and I've run into issues each time.
My initial approach:
```
function solve(a,b) {
var re = new RegExp(b,"g");
var res = a.match(re);
console.log(res);
}
solve("zaz","zazapulz") //returns null
```
And this approach as well:
```
function solve(a,b) {
... |
2018/03/07 | 306 | 1,089 | <issue_start>username_0: I'm facing an issue when enable *persistence* to use *SSD*, detail as flowing:
`dataRegionConfiguration.setPersistenceEnabled(true)`, and set durable memory max size as **40G**, write data through `datastreamer.adddata` method, everything works fine, but after some time, when the data in durab... |
2018/03/07 | 652 | 2,640 | <issue_start>username_0: I am new in C# programming language. I have been trying to develop a lessor sensor application. While exporting the output file I am having trouble with (System.IO.IOException: file used by another process) Exception . I can't really find the problem. I want to create a text file of current dat... |
2018/03/07 | 758 | 2,369 | <issue_start>username_0: i am using two types of dates in my form one with the 'Y-m-d H:i:s' format which is for created\_at,updated\_at,deleted\_at and one is for valid\_to 'Y-m-d' the problem is my created\_at are getting set properly but when i try to save the **valid\_from** it's value doesn't get set and it saves ... |
2018/03/07 | 614 | 2,113 | <issue_start>username_0: i am a beginner in codeigniter , im having a trouble with my query , i want to retrieve all data from one table where i will use the data of another table .for example is i have a orderlogs table and i want to retrieve all of the data of orderlogs table where it will match the logged in usernam... |
2018/03/07 | 201 | 809 | <issue_start>username_0: I had some basic knowledge on Android Development. Recently heard about Flutter and very interested to work on it. I want to know is it possible to build an augment reality app using flutter and which methods to follow to accomplish this? Please help.<issue_comment>username_1: As of now, flutte... |
2018/03/07 | 451 | 1,637 | <issue_start>username_0: I'm trying to use csv writer in Python to write my output data to a file. When I just use the print command, the data looks good. But when I use the `writerow` command (line 20), nothing goes into the file.
I know the code isn't the prettiest and may not be the most efficient, but it (almost)... |
2018/03/07 | 1,249 | 5,601 | <issue_start>username_0: I have a function with custom message boxes like,
```
public bool SomeFunction()
{
MessageBoxResult mResult= MessageBox.Show("Displaying message");
bool result;
if(mResult == MessageBoxResult.OK)
{
result = AnyFunction();
}
return result;
}
```
And I want to write a u... |
2018/03/07 | 1,192 | 5,409 | <issue_start>username_0: Techies,
I'm working on kind of calculator, am not much comfortable with regex. My need is JavaScript regular expression to validate whether both ( ) brackets are present, there may be some character inside the brackets.
suggestions please<issue_comment>username_1: This could be one approach,... |
2018/03/07 | 1,055 | 4,271 | <issue_start>username_0: Okay so I need to create a div with a red background that then registers the "Mouseleave" event which will then call a function that will display the following text "MouseLeave event fired". My goal is that when I move my mouse over my div and then move it away I will get an alert that says "Mo... |
2018/03/07 | 1,001 | 3,556 | <issue_start>username_0: I am using google distance matrix API and i am using following code
```
let headers: HTTPHeaders = [ "Accept": "application/json", "Content-Type": "application/json" ]
let url = "https://maps.googleapis.com/maps/api/distancematrix/json?&origins=\(start)&destinations=\(end)&ke... |
2018/03/07 | 722 | 2,562 | <issue_start>username_0: I have a generic class which contain only one data member of type list. Now I want to add value to that list using the object initializer of that generic class from my main method.
Here is my Generic Class
```
class GenericStore
{
public List allData = new List();
}
```
Here is My entry P... |
2018/03/07 | 602 | 2,478 | <issue_start>username_0: I use QueryDSL predicate object with a spring REST endpoint to retrieve and query param values.
```
@GetMapping("/{subjectId}/students")
@RolesAllowed( {Roles.PLATFORM_ADMIN, Roles.USER})
public List getAllStudents(@PathVariable final String subjectId,
@QuerydslPredicate(root = Student.clas... |
2018/03/07 | 779 | 2,065 | <issue_start>username_0: I have one NumPy array like this:
```
type = array(["A", "B", "A", "B", "B", "A", "A"])
```
I want to use this array to filter another array like this:
```
data = array([5,4,5],
[0,4,3],
[2,1,6],
[6,7,9],
[0,1,4],
[7,9,8],
... |
2018/03/07 | 808 | 2,539 | <issue_start>username_0: I'm using QBImagePicker. I tried to get image file name, but it's very difficult. What can I do for that? I don't know it.
```swift
func qb_imagePickerController(_ imagePickerController: QBImagePickerController!, didFinishPickingAssets assets: [Any]!) {
let requestOptions = PHImageRequestO... |
2018/03/07 | 780 | 2,587 | <issue_start>username_0: Requirements:
For each Json field where key matches specified constant replace value with another constant.
```
{"regular":"a", "sensitive":"b"}
```
Parameters "sensitive", "\*\*\*\*\*".
Expected:
```
{"regular":"a", "sensitive":"*****"}
```
Values may, or may not have double quotes arou... |
2018/03/07 | 1,048 | 3,305 | <issue_start>username_0: I have wrote a program in bash, where there will be details of the students in a file and on passing input as roll no to it I need to edit that particular line in the file.
But when I tried by passing the roll no, it is displaying the whole file to me for editing when condition matches.
Here ... |
2018/03/07 | 625 | 2,508 | <issue_start>username_0: I have been working in angular( version 5.2 ) for a couple of months now and feel as though I must be missing something fairly obvious. My problem is that I need to perform manipulation to my data between the view and the model.
For example I am building a simplified app that interacts with M... |
2018/03/07 | 304 | 1,061 | <issue_start>username_0: I have a View like shown in the image. Leading and trailing distance is increasing when showing view on different screens. How do I make it look good on every screen by using constraints.
[](https://i.stack.imgur.com/1rh9G.png... |
2018/03/07 | 344 | 1,169 | <issue_start>username_0: 
These are my tables. The first one is the sp\_archive and the second one is the account table.


The ... |
2018/03/07 | 395 | 1,254 | <issue_start>username_0: I made a function to to compute the sum of I(Xi
```html
my.ecdf<- function(x,y) {
if(!is.null(dim(y)))
stop("y has more than one dimension")
n<-length(x)
i<-1:n
p<-if(x[i]
```
But when I run it with input (rnorm(11),6), I get this error:
```html
Warning message:
In if (x[i... |
2018/03/07 | 1,047 | 3,760 | <issue_start>username_0: I am trying to render a table in javascript as follows:
```
$('#serviceTable').DataTable({
responsive: true,
aaData: services,
bJQueryUI: true,
aoColumns: [
{ mData: 'service_name' },
{ mData: 'last_incident' },
... |
2018/03/07 | 428 | 1,745 | <issue_start>username_0: I tried this code but it only displays the last word:
```
signButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
String speech = "This code is sample";
String[] result = speech.split("\\s");... |
2018/03/07 | 570 | 1,903 | <issue_start>username_0: I have to show errors/warnings by mouse now. Is there any hotkey or special button? I could find nothing in "Keyboard Shortcuts". Example of error:
[](https://i.stack.imgur.com/FfNN8.png)<issue_comment>username_1: Pressing `F8` will focus the next proble... |
2018/03/07 | 323 | 1,014 | <issue_start>username_0: I use pythonnet not ironpython.
There is a function like this:
```
test(ref string p1,out string p2)
```
How can I call `test` in python 3.6?
```
import clr
import sys
import System
sys.path.append(r'd:\dll')
clr.FindAssembly('communication.dll')
from communication import *
dll=IEC6... |
2018/03/07 | 518 | 2,118 | <issue_start>username_0: Ques. I have this method wit return type as 'List Item Collection'and my list in SharePoint contains more than 5000 items. In order to overcome the threshold, I need to fetch items in batches by putting row limit but I do not know what to put in the place of ?? so that the return type is also '... |
2018/03/07 | 356 | 1,139 | <issue_start>username_0: Using spark streaming to read from kafka messages where V = Json event.
The Json's schema isn't enforced, so you might fetch the following 2 events:
```
{"foo": "01/01/1973","bar": "d,e"}
{"foo": "01/01/1974"}
```
using `read.json` and `df.registerTempTable("tempTable")`
How do I create a `... |
2018/03/07 | 1,205 | 5,976 | <issue_start>username_0: I'm trying to fit my image in the menu's first `a` tag. Basically what I want is the image to exactly fit in the menu's first `a` tag without showing any padding. I'm new to html and css. The output of the code can be viewed at
<https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_to... |
2018/03/07 | 321 | 1,222 | <issue_start>username_0: ```
document.getElementById("usersList").innerHTML.style="background-color:red" += " " + newuser + " |";
```
With this syntax I am not able to get the `background-color` of my `table rows`.
Could you please give me the valid syntax to my question?<issue_comment>username_1: These are two dif... |
2018/03/07 | 528 | 1,877 | <issue_start>username_0: so earlier I've posted something like this already but I have a different code now for the config.php which
```
php
define('BASE_PATH', dirname(dirname(__FILE__)));
define('APP_FOLDER','simpleadmin');
require_once BASE_PATH.'/lib/MysqliDb.php';
$servername = "localhost";
$username = "root";... |
2018/03/07 | 409 | 1,717 | <issue_start>username_0: I just set up an application load balancer(ABL) on my AWS account. The ALB is able to successfully deliver requests to the EC2s in the auto scaling group.
ALB -> TargetGroup -> AutoScalingGroup
However, I see an exclamation mark appearing next to the name of my ALB, which says `An error occur... |
2018/03/07 | 459 | 1,743 | <issue_start>username_0: I get 4 strings from bundle. But if any one of the string is empty. Comma alone looks which is not looking nice.
So if there is empty string in any one of the 4 strings, I should not add comma.
How to proceed?
```
Bundle bundle = getIntent().getExtras();
if (bundle != null) {
trx1 ... |
2018/03/07 | 506 | 1,732 | <issue_start>username_0: I am trying to find the middle index in an array (of type long)
The problem im solving specifically asks for a long to return, so I cant change the signature
I want to find the pivot point, in my quicksort code, but I get an error "possible lossy conversion from long to int"
I understand that I... |
2018/03/07 | 331 | 1,153 | <issue_start>username_0: I have installed XAMPP in my Mac OSX El Captain. Now I need to navigate to the htdocs via the command line. I am very new to this. Can someone help me on the same.
Thanks in advance<issue_comment>username_1: 1. open application folder
2. find xampp folder at bottom
3. get inside and findout ht... |
2018/03/07 | 857 | 2,508 | <issue_start>username_0: I'm solving a problem and the user will give the input in this pattern-
```
[5,10,15,20]
```
Since this is an input given by the user, it is a string. I want to convert these numbers into integer and store them in a list.
I tried using the following code -
```
import re
mystr=input()
mylis... |
2018/03/07 | 537 | 1,764 | <issue_start>username_0: I have a Gradle task to upload jacoco coverage to TeamCity (following TeamCity documentation here: [Importing JaCoCo coverage data to TeamCity](https://confluence.jetbrains.com/display/TCD10/JaCoCo#JaCoCo-ImportingJaCoCocoveragedatatoTeamCity)):
```
task uploadJacocoTestReport {
doLast {
... |
2018/03/07 | 995 | 3,244 | <issue_start>username_0: I am unable to install Laravel 5.6 on my `wamp` server. I have the following setup:
* **PHP Version 7.1.3**
* **Composer Version 1.6.3 2018-01-31**
When I try to install the Laravel application through Composer, I receive the following error in `cmd`:
>
> Warning: count(): Parameter must be... |
2018/03/07 | 1,578 | 3,222 | <issue_start>username_0: I'm working on a problem of sentiment analysis and have a dataset, which is very similar to Kears imdb dataset.
When I load Keras’s imdb dataset, it returned sequence of word index.
```
(X_train, y_train), (X_test, y_test) = imdb.load_data()
X_train[0]
[1, 14, 22, 16, 43, 530, 973, 1622, 1385... |
2018/03/07 | 590 | 2,078 | <issue_start>username_0: I have some strings:
* total 19xx.100
* total 19x..100
* total 19..100
* total 19x .100
And I want to separate 19 with ("x" or "." one or more times) and 100.
I tried to use regex:
```
(x|\.)+
```
to group but it can not match all case above. Which regex can match all case above?<issue_c... |
2018/03/07 | 710 | 2,482 | <issue_start>username_0: so thanks to some great help I am able to manipulate a CSV file. However, a tutorial I was linked to seemed a bit complicated because they're posting several bits of code to get rows and columns for their data, without showing their full code.
So, this is what I have so far:
```
import pandas... |
2018/03/07 | 1,077 | 3,917 | <issue_start>username_0: how to convert image to text using iOS swift ?
Step 01: Take a photo using iOS camera . (Done by using UIImagePickerController in iOS swift)
Step 02: I got image .
Step 03 : I have to convert these image (UIImage) to text format .
using iOS swift .
I have referred many links as already w... |