date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/19 | 569 | 2,102 | <issue_start>username_0: I'm trying to uninstall the current version of Eclipse IDE in my RHEL machine by simply deleting all the files like:
```
sudo rm -rf ~/.eclipse
sudo rm -rf ~/eclipse-workspace
```
I also tried
```
sudo yum remove 'eclipse*'
```
However, these didn't seem to solve the purpose.
Any help wi... |
2018/03/19 | 1,469 | 4,573 | <issue_start>username_0: I have a `dask dataframe` grouped by the index (`first_name`).
```
import pandas as pd
import numpy as np
from multiprocessing import cpu_count
from dask import dataframe as dd
from dask.multiprocessing import get
from dask.distributed import Client
NCORES = cpu_count()
client = Client()
... |
2018/03/19 | 230 | 728 | <issue_start>username_0: I have an array of multiple types `( Int32 | Char | String )` and need to remove a specific element.
Is there a simple way to do that?<issue_comment>username_1: You may use [Array(T).delete\_at(index)](https://crystal-lang.org/api/0.20.4/Array.html#delete_at%28index%3AInt%29-instance-method) t... |
2018/03/19 | 232 | 701 | <issue_start>username_0: I want to convert C style `LOGD("hello");` to `LOGD<<"hello";`
in eclipse find/replace.
how can I do that?<issue_comment>username_1: You may use [Array(T).delete\_at(index)](https://crystal-lang.org/api/0.20.4/Array.html#delete_at%28index%3AInt%29-instance-method) to delete an element at a gi... |
2018/03/19 | 1,269 | 4,346 | <issue_start>username_0: I have some xml like
```
```
and I want to get grammar-tag, set my namespace and save all properties(prop1, prop2), children nodes and so on.
I just move to grammar-tag and call `xmlNodePtr copied = xmlCopyNode(node, 1);`.
After that I remove some properties, add new and so on(in copied).
Af... |
2018/03/19 | 1,350 | 5,289 | <issue_start>username_0: I want to use batch statement to delete a row from 3 tables in my database to ensure atomicity. The partition key is going to be the same in all the 3 tables. In all the examples that I read about batch statements, all the queries were for a single table? In my case, is it a good idea to use ba... |
2018/03/19 | 662 | 2,472 | <issue_start>username_0: Why can't I just write class.`kotlin` instead of writing class.java.
Because `AndroidMeActivity` is a kotlin class and I am getting an error `("Unsoloved refrence: java")` when I write this,
How can I fix it.
```
val intent = Intent(this, AndroidMeActivity::class.java)
```<issue_comment>us... |
2018/03/19 | 813 | 2,954 | <issue_start>username_0: I have a store procedure in SQL Server. I have a filtering page in my application, I want to select all `CDT_ID`, if I do not input the name and lower\_age and upper\_age, it will show all the `CDT_ID`. But if I input the name and age, it will show all the `CDT_ID` where `CDT_NAME` AND `CDT_AGE... |
2018/03/19 | 822 | 3,119 | <issue_start>username_0: I have read a study about TDD and one of the common issues (survey between developers) stated that they are not really letting the test fail first. The authors then state:
>
> If a new test does not fail, programmers receive an indication that
> the production code was not working as they th... |
2018/03/19 | 499 | 1,839 | <issue_start>username_0: I have a mysql database table with 1000000 records. I wanted to update one column in each row.
**I tried**:
```
public function methodWorking()
{
$properties = Property::with('requests')->get();
foreach ($properties as $property) {
$property->number_of_request = count($prope... |
2018/03/19 | 547 | 1,857 | <issue_start>username_0: I have this code from a tutorial and i was wondering how can i convert it to laravel eloquent method because currently it is in DB raw method.
```
// $match = DiraChatLog::select(DB::raw("SUM(numberofview) as count"))
// ->orderBy("created_at")
// ->groupBy(DB::raw("year(created_at)"))... |
2018/03/19 | 1,060 | 3,107 | <issue_start>username_0: How to achieve `groupBy` with native javascript?
【Definition of `groupBy`】
Creates an object composed of keys generated from the results of running each element of collection thru iteratee. The order of grouped values is determined by the order they occur in collection. The corresponding value... |
2018/03/19 | 480 | 1,760 | <issue_start>username_0: I want to enable 'Update' button if i select 'System' from dropdown and should be disabled if I select other value from dropdown. By default 'Update' button should be disabled'.When I select value other than 'System' from dropdown the button should be disabled.
```
DataSync.jsp
<%@ taglib pre... |
2018/03/19 | 1,092 | 4,104 | <issue_start>username_0: After update the chrome version 65, application is showing the splash screen again when taping some click event, it's a hybrid app Sencha touch and Cordova android.<issue_comment>username_1: Edit: this is a [known chrome 65 bug](https://bugs.chromium.org/p/chromium/issues/detail?id=819189) whic... |
2018/03/19 | 906 | 3,430 | <issue_start>username_0: Uncaught Error: Objects are not valid as a React child (found: object with keys {titlesCollection}). If you meant to render a collection of children, use an array instead
I am getting this error while trying to render array of object, what I am doing wrong here?
```
import * as React from 're... |
2018/03/19 | 169 | 584 | <issue_start>username_0: Is it possible to have the code of [this sonata app](http://demo.sonata-project.org) ?<issue_comment>username_1: You should read, install and configure all bundle that you need from sonata documentation: <https://sonata-project.org/bundles/admin/3-x/doc/index.html>
Official sonata github repo:... |
2018/03/19 | 447 | 1,798 | <issue_start>username_0: My android app is running great; now in order to increase virality I am planning to read phonebook contacts of a user and upload them to my server!
Then further I plan to process contacts and give relevant invite suggestion to my existing users on my application!
Is this ethical? Are there any ... |
2018/03/19 | 617 | 2,113 | <issue_start>username_0: I have a table (redshift db) with the following sample:
```
product_id | date | is_unavailable
1 | 1st Jan | 1
1 | 2nd Jan | 0
1 | 3rd Jan | 0
1 | 4rd Jan | 1
```
Here , a combination of `date` an... |
2018/03/19 | 619 | 2,243 | <issue_start>username_0: In NgPrime turbo table ,i have edit function. After saving the data in server am reloading the grid. But cant able to retain the current page.How can i set the page number to the grid?
I found a way to get the current page number using this function
```
paginate(event) {
let pageIndex = even... |
2018/03/19 | 464 | 1,670 | <issue_start>username_0: I have three Controls:a slider, a button, and a textbox.
And what I want to achieve is that When I drag the slider to change it's value,the content of textbox changes.The content of textbox is the value of the slider.However, when I click the button, the value of the slider adds 1 but the conte... |
2018/03/19 | 418 | 1,511 | <issue_start>username_0: I have tried to build apk for android in IONIC however everytime I do the build using command: `ionic cordova build android` it will always result to BUILD FAILED. The error is so generic it only says DeprecationWarning: Unhandled promise rejections are deprecated. Below image is the full respo... |
2018/03/19 | 903 | 3,338 | <issue_start>username_0: [](https://i.stack.imgur.com/W2Ylr.png)I have a table view called `challengeTable`. This table contains an image, some text and a button. These values are retrieved from the RESTFUL API.
```
var Sec1 = [[String]]()
public... |
2018/03/19 | 533 | 2,436 | <issue_start>username_0: I am using this code:
```
FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();
user.updateEmail("<EMAIL>")
.addOnCompleteListener(new OnCompleteListener() {
@Override
public void onComplete(@NonNull Task task) {
if (task.isSuccessful()) {
Log.d(TAG, "User email address... |
2018/03/19 | 768 | 2,438 | <issue_start>username_0: I am using mongoDB version 3.4 .
I have a collection where date is stored in String format `YYYY-mm-dd`. I need to get last week data from this collection.
```
new Date(new Date().setDate(new Date().getDate()-7))
```
returns me the date in ISO date format , which cannot be used to compa... |
2018/03/19 | 798 | 2,516 | <issue_start>username_0: So basically I'm trying to download a pdf file and upload it on an amazon bucket, is it possible to do it without creating a temp file ?
To download the pdf im doing this:
```
RestClient::Request.execute(
:method => :get,
:url => "#{@url}/test/#{id}/pdf",
:headers => json_headers.merge(... |
2018/03/19 | 829 | 3,236 | <issue_start>username_0: I have a model
```
class Foo {
private int id;
private String name;
private String city;
}
```
setting
```
Foo foo = new Foo();
foo.setId(1);
foo.setName("<NAME>");
```
Now I want a generic method that return not null Map from any object. for example, in case of foo , it return... |
2018/03/19 | 907 | 2,902 | <issue_start>username_0: I have this code that generates a date and time,
```
ZoneId z = ZoneId.of( "Africa/Nairobi" );
Instant instant = Instant.now();
ZonedDateTime zdt = instant.atZone(z);
return zdt.toString();
//2018-03-19T09:03:22.858+03:00[Africa/Nairobi]
```
Is there a lib like chrono - <https://docs.oracle... |
2018/03/19 | 1,211 | 4,469 | <issue_start>username_0: I have a view in the project but it doesn't show anything, I want to show data in the table but the page is blank.it was working yesterday but its just a blank page,don't know what happened, please help..
1.is it problem of route
2.database issue
3.html error
route
```
php
Route::get('/'... |
2018/03/19 | 408 | 1,013 | <issue_start>username_0: I am having trouble initializing a 2D int array.
The structure of my program is:
```
int arr[2][2];
if(val==1)
arr = {{1,1}, {2,2}};
else if (val==2)
arr = {{3,3}, {4,4}};
...
...
int x = arr[1][1];
...
```
I am getting an error "Expression must be a modifiable lvalue"
Thanks.<issue_comm... |
2018/03/19 | 499 | 1,843 | <issue_start>username_0: I am getting this error when I try to build the app on App Center from Microsoft.
>
> Errors in packages.config projects
> https://{myDomainOnVSTS}.com/\_packaging/CustomNugetPackages/nuget/v3/index.json: Unable to load the service index for source https://{myDomainOnVSTS}.pkgs.visualstudio... |
2018/03/19 | 1,664 | 6,608 | <issue_start>username_0: I'm trying to return an Object as JSON.
Using the `/user/id` endpoint, I want to display a User based on his Id.
When calling this controllerMethod I get the following Exception:
```
InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyIni... |
2018/03/19 | 898 | 3,042 | <issue_start>username_0: I want to know Is there any way through which I can avoid mentioning size of array in function. Below is my simple code. Every time I create an array in main I have to change size of reference array of function passbyref.
Thanks alot.
```
#include
#include
#include
#include
using namespace s... |
2018/03/19 | 362 | 1,360 | <issue_start>username_0: I source a dotcshrc file in my python script with :os.system(‘/bin/csh dotcshrc’) and it works,but when I want to use the command I have just put into the env by the source command,like os.system(‘ikvalidate mycase ‘),linux complaints:command not found.
But when I do it all by hand,everything g... |
2018/03/19 | 519 | 1,949 | <issue_start>username_0: The workflow suddenly stopped working on the site which had been operating for about a year ago.
With Office 365 Sharepoint,
The workflow was made by Sharepoint Designer and call HttpWebService to change authorities on list items.
I tried get the list item in Workflow 2013 on the test site a... |
2018/03/19 | 1,431 | 4,880 | <issue_start>username_0: I am making a Complex number class in order to work on overloading operators.
```
#include
class Complex
{
double real;
double imaginary;
public:
Complex(double real, double imaginary) : real(real), imaginary(imaginary) {}
~Complex() = default;
friend std::ostream &operator<<(std::ost... |
2018/03/19 | 1,222 | 3,736 | <issue_start>username_0: I have data like this, below are the 3 rows from my data set:
```
total=7871MB;free=5711MB;used=2159MB;shared=0MB;buffers=304MB;cached=1059MB;
free=71MB;total=5751MB;shared=3159MB;used=5MB;buffers=30MB;cached=1059MB;
cached=1059MB;total=5751MB;shared=3159MB;used=5MB;buffers=30MB;free=109MB;
`... |
2018/03/19 | 327 | 998 | <issue_start>username_0: I am new to JavaScript, I want to get the right page count.
if one page the item count is `20`, and the page count is 23, the page should be `2`.
```
var count = 23
var per_page_count = 20
```
If in other language we can use:
```
count / per_page_count + 1
```
to get the page count, but... |
2018/03/19 | 903 | 3,620 | <issue_start>username_0: I have been having problems with this lab assignment for class. I want to ensure that my input is the specified enumerate, and not any other input. But for some reason I can't seem to get it to work properly, even when I put in an incorrect answer it just runs through the loop until I input the... |
2018/03/19 | 375 | 1,493 | <issue_start>username_0: I have a multi module Spring Boot project with the following structure:
* MyAppModule
+ src/main/java/Application.java
+ ...
* IntegrationTests
+ src/test/java/integrationTest.java
The *IntegrationTest* module is testing the *MyAppModule*. The *IntegrationTest* module does not have a main ... |
2018/03/19 | 668 | 2,808 | <issue_start>username_0: I have a single collection into which I am inserting documents of different types. I use the type parameter to distinguish between different datatypes in the collection. When I am inserting a document, I have created an Id field for every document, but Cosmosdb has a built-in id field.
How ca... |
2018/03/19 | 1,334 | 4,701 | <issue_start>username_0: Say we have two log files with comma separated values. The `file1.txt` represent the `employee id` and `employee name`, `file2.txt` represents the `employee id` and the `projects` he associated with.
`file1` is having unique entry. `file2` will have many-many relation. New employees dont have a... |
2018/03/19 | 677 | 2,682 | <issue_start>username_0: I have a list of strings and I want to read the strings one by one and convert it into a list of ints, is there a way to convert each character into a new list?
```
["123","346","789"] to [[1,2,3],[4,5,6],[7,8,9]]
stringToInt :: [String] -> [[Int]]
```<issue_comment>username_1: The **`Creat... |
2018/03/19 | 617 | 2,027 | <issue_start>username_0: **Edit--**
**i guess this structure of what i thought was wierd a bit so i decided not to code like that and just follow the rules that the library is saying.( use 1 fragment and that it ) --**
I'm using Board Library (Reference : <https://github.com/woxblom/DragListView> )
**board\_layout.xm... |
2018/03/19 | 4,499 | 15,429 | <issue_start>username_0: I am trying to read a csv file present on the Google Cloud Storage bucket onto a panda dataframe.
```
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
from io import BytesIO
from google.cloud import storage
storage_client = storage.Client()
bucket... |
2018/03/19 | 4,621 | 15,971 | <issue_start>username_0: I wanna do something before `User` is saved in `Users::RegistrationsController < Devise::RegistrationsController`.
I can use callback methods like `before_save`, but it does too many things because I want it only in RegistrationsController.
See the code below:
(This is `Devise::RegistrationsC... |
2018/03/19 | 485 | 2,100 | <issue_start>username_0: Well I'm trying to understand how and at which point in an algorithm to apply the Kfold CV and GridSearchCV. Also if i understand correctly GridSearchCV is used for hyperparameter tuning i.e. what values of the arguments will give best result and the Kfold CV is used to better the generalizatio... |
2018/03/19 | 998 | 2,861 | <issue_start>username_0: If we want to search for the optimal parameters theta for a linear regression model by using the normal equation with:
**theta = inv(X^T \* X) \* X^T \* y**
one step is to calculate inv(X^T\*X). Therefore numpy provides [np.linalg.inv()](https://docs.scipy.org/doc/numpy-1.14.0/reference/gener... |
2018/03/19 | 298 | 956 | <issue_start>username_0: The click event is not triggering either for the span or the when I move the id to the tag.
```js
$("body").on("click", "#btnClear", function() {
alert("Clicked");
});
```
```html
```<issue_comment>username_1: Try this.
```js
$("body").delegate("#btnClear", "click", function () {
... |
2018/03/19 | 570 | 2,134 | <issue_start>username_0: I have been trying to build keras and tensor flow packages on yocto's image that is poky but not able to do so.
Until now I have tried looking for their respective recipe but couldn't find.
What's the way to add keras and tensor flow packages to poky?<issue_comment>username_1: From the layer i... |
2018/03/19 | 1,932 | 5,462 | <issue_start>username_0: I am an ABAP programmer and learning the tensorflow object detection API just following the tutorial and using the Racoon dataset from <NAME>(<https://github.com/datitran/raccoon_dataset>). The training can be performed on my own PC(python 3.6.3 and tensorflow 1.5.0), but slow. So I put it to t... |
2018/03/19 | 1,600 | 5,248 | <issue_start>username_0: I'm using Hibernate to access and record data to database.
Everything was fine until I used HQL to join mapped table and query some objects from database. As a result, I got a `List` contains data. But when I got the Object array, an exception appeared
>
> Exception in thread "AWT-EventQueue... |
2018/03/19 | 1,106 | 3,823 | <issue_start>username_0: I want to get a value form a multidimensional array using `PHP`. I pass the key to the function and if the key contains the value (i.e. without any array value), it will return that. But if that key contains an array value, it will return the whole sub array.
I am adding a sample array for tha... |
2018/03/19 | 1,938 | 5,478 | <issue_start>username_0: Trying to understand memory allocation in C. Facing issue while trying to create two arrays using pointer to integers. Kindly have a look at the below code:
```
#include
#include
int main() {
int \*a;
int \*b;
for (int i = 0; i<4;i++)
{
printf("Enter value \n");
a[i]=(int \*)malloc(... |
2018/03/19 | 1,074 | 3,989 | <issue_start>username_0: I have a .Net application I am targetting both .Net framework 4.0 and .Net core 2.0, I have to call some pkcs11 driver using pkcs11interop library due to some driver issue I am getting **AccessViolation Exception** in .net framework 4.0 I was able to handle with attribute `[HandleProcessCorrupt... |
2018/03/19 | 563 | 2,212 | <issue_start>username_0: I need to allow users to login through Corp network to access an internal web application.
I've followed all the steps given in the [official documentation](https://learn.microsoft.com/en-us/azure/active-directory/develop/guidedsetups/active-directory-aspnetwebapp) and it works fine.
However,... |
2018/03/19 | 509 | 1,864 | <issue_start>username_0: I am new to HTML and JS. Im trying to inject a button into an existing page with a Chrome extension. I want to submit a search form when the button is clicked but at the moment it submits the form on page load and then repeatedly afterwards. What did I do wrong?
This is my manifest.json
```
"... |
2018/03/19 | 1,531 | 5,582 | <issue_start>username_0: I looked at tons of questions/answers on the "no var" topic but I'm still confused
>
> "no var" will look up the scope chain until it finds the variable or
> hits the global scope (at which point it will create it)
>
>
>
I get this, but what does "no var" do if it does find something? e.... |
2018/03/19 | 919 | 2,732 | <issue_start>username_0: I build a docker container with alpine, s6 and samba.
Everything looks fine, but when it start smbd it crashes right before up without anything in logfiles.
```
added interface eth0 ip=172.17.0.6 bcast=172.17.255.255
netmask=255.255.0.0
loaded services
Netbios name list:-
my_netbios... |
2018/03/19 | 286 | 1,305 | <issue_start>username_0: <https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html#>
Hi,
was wondering if it's possible to dynamically add/remove tiles from the dashboard via power bi-embedded. Imagine that the user wants to add there own tile and arrange it themselves in the dashboard.
Also is the ti... |
2018/03/19 | 836 | 2,856 | <issue_start>username_0: I am trying to create a docker Image for tensforflow serving like [here](https://github.com/llSourcell/How-to-Deploy-a-Tensorflow-Model-in-Production/blob/master/demo.ipynb).
When i try to pull docker image with all the required dependencies(pip dependencies, bazel, grpc)
[![enter image descr... |
2018/03/19 | 1,013 | 2,287 | <issue_start>username_0: I have a list `l` in the following form. I need to randomly generate `k` (six in this example) number of lists from this list so that only one element is selected from the sublists at a time.
```
l = [1,2,3,[11,22,33,44], 4,5,6, [22,33,44], 5, [99,88]]
Result:
1,2,3, 22, 4,5,6, 22 ,5, 88
1... |
2018/03/19 | 783 | 3,718 | <issue_start>username_0: To get a data from the firestore I queried a document and get that data into variable. Now, I need to use that variable in other part of the code.
when I am using that variable it does not get any data . How to resolve these error.
```
var d1;
var getdata = respond.get()
... |
2018/03/19 | 427 | 1,690 | <issue_start>username_0: I am working on Jenkins Pipeline Script and I have checked-in my jenkinsfile in Git repository and I need to clone to local work space. But by default its cloning to master (Unix) work space but I need it in slave (Windows) work space.
Is there any plugins to change the default **Pipeline Scri... |
2018/03/19 | 1,013 | 3,406 | <issue_start>username_0: I want to create a single object from an array of objects. Please refer the code provided.
Here's the input array
```
let queryArr = [
{
query: {
filter: {
term: {
search: 'complete',
}
}
}
},
{
query: {
notFilter: {
... |
2018/03/19 | 809 | 3,387 | <issue_start>username_0: We are using spring-social-facebook-2.0.3 latest jar in production environment.
In April 2018 graph api v2.5 is going to shut down. But the spring-social-facebook-2.0.3 latest jar is still using this deprecated graph API internally.
Anyone has any knowledge,
**is Spring Team going to rele... |
2018/03/19 | 408 | 1,678 | <issue_start>username_0: I have implemented an on-scroll loading which fetches some chunk of data every time the scroll reaches the end of the viewing area. After some point of time when there would be no more new data to be shown, how should I convey to this to the end-user from a UX point of view?
I was thinking of... |
2018/03/19 | 1,334 | 5,274 | <issue_start>username_0: The volume control in HTML5 videos on my website is not appearing, see screenshot: [](https://i.stack.imgur.com/qAl7D.png) The video plays when started, but without any sound. The videos also play fine (with sound) in VLC and W... |
2018/03/19 | 373 | 1,555 | <issue_start>username_0: I have one doubt regarding using library from **GitHub** to **Android Studio** if anyone help me to solve my doubt, I would be thankful.
My question is
if we want to use **library from GitHub** , we have two option
1. either we can use dependencies to import library in project
2. or we ca... |
2018/03/19 | 760 | 2,846 | <issue_start>username_0: I have my system connected with some server. I am reading data from the server.
But i want to read data continuously from the server.
Here is my code:
```
TcpClient client = new TcpClient("169.254.74.65", 7998);
NetworkStream stream = client.GetStream();
Byte[] data = new Byte[1024];
String re... |
2018/03/19 | 276 | 1,055 | <issue_start>username_0: I'm using Selenium WebDriver, how can I check if a page is opened or not after clicking a specific button ? Maybe someone recommend me useful resources where I can read about it. Thanks<issue_comment>username_1: You can check with some content of the page.
```
public boolean checkIfPageArrived... |
2018/03/19 | 854 | 3,149 | <issue_start>username_0: I have app that is working with SQLite databse.
I packed it as a bundle and i can see the services on service mix.
When i am sending request to Post or Get service i am receiving this error:
java.lang.ClassNotFoundException: org.sqlite.JDBC not found
I installed SQLite JDBC driver on servicem... |
2018/03/19 | 372 | 1,145 | <issue_start>username_0: I just want to check if image in anchor is equal to specific url. Here is html i have
```

```
so when page loads, i want to... |
2018/03/19 | 477 | 1,707 | <issue_start>username_0: I am doing test task for a self-teaching.
My stack is Spring Boot/H2 date base/Hibernate
I have like a REST-full service (actually it is not, now I am trying to fix it)
I've been told that I have a lot of bad code decisions and mistakes, so I've decide to fix it.
Initial state of a working... |
2018/03/19 | 452 | 1,481 | <issue_start>username_0: I have an arraylist (size unknown) of Strings (string lengths are not same).
I need to print the combinations of all the characters in the Strings(specific condition), no repetition. It is more or like combination of elements in Sets as in Mathematics.
Condition:
1. Output String length --> ... |
2018/03/19 | 902 | 3,196 | <issue_start>username_0: I have been reading up on this on the actual site for ngx-toastr [ngx-toastr](https://www.npmjs.com/package/ngx-toastr), and other posts on Stack Overflow, but cannot find a clear solution for my work case.
**I am trying to change the position of the `toastr` for specific use cases. Example; w... |
2018/03/19 | 3,148 | 11,612 | <issue_start>username_0: I want output from two table..
One table for **Product\_detail** and second table for **Product\_image**
In **product\_image** table all images store separately for particular product\_id
I want output from both table :
For particular product\_id all detail from Product\_detail table ... |
2018/03/19 | 279 | 950 | <issue_start>username_0: so i have this table: <http://prntscr.com/it53pm> (in this link).
what im trying to do is select schedule where schedule date = current date.<issue_comment>username_1: you can use `NOW()` in your where clause
```
for example
SELECT *
WHERE schedule like NOW()
```
* NOW() will be "YYYY-MM-DD... |
2018/03/19 | 3,227 | 12,929 | <issue_start>username_0: I'm building an app like WhatsApp using 3 tabs and every tab have a `Fragment`. In my first `Fragment` I have a `RecyclerView`.
Win a set the SectionsPagerAdapter to start width the RecyclerView Fragment
like this:
```
inner class SectionsPagerAdapter(fm: FragmentManager) : FragmentPagerAdap... |
2018/03/19 | 513 | 1,676 | <issue_start>username_0: >
> Uncaught Syntax Error: Unexpected end of JSON input
>
>
>
[](https://i.stack.imgur.com/f225B.png%20javascript)
help why I am getting such error
```
$('.view-profile').on('click', function(e) {
e.pre... |
2018/03/19 | 580 | 2,083 | <issue_start>username_0: In my application 2 linear layout are there. those layouts contain some text view ...etc data is came from the server. i have a requirement that when the data of Linear layout 1 is empty it goes hide and linear layout 2 is placed instead of linear layout 1 .
```
l1 = (LinearLayout) findViewBy... |
2018/03/19 | 1,202 | 3,523 | <issue_start>username_0: I'm doing a study of a text and I would like to obtain through a stylesheet XSLT a certain function (specifically, ) only if it is preceded by a full stop (). How can I put this condition on the XSLT stylesheet? I have tried with `previously sibling::`, but it does not return anything. Here are... |
2018/03/19 | 671 | 2,278 | <issue_start>username_0: Is there a way to store strings in a variable (javascript), like in php?
```
`$string = "Counting: ";
for($x = 1; $x <= 10; $x++){
$string .= $x;
}
$string .= ":Counting END";
echo $string;`
```
I want to loop some JS object array between the string as I did above in php.<issue_comment>u... |
2018/03/19 | 931 | 3,092 | <issue_start>username_0: If I have a list lets say `[1,2,3,4]`, how can I create a tuple of two lists so that the first list contains the odd elements and the second one - the even elements. How can I do this with a tail-recursion?
*For example:*
```
Input : [1,2,3,4]
Output : ([1,3],[2,4]) with tail recurs... |
2018/03/19 | 814 | 2,734 | <issue_start>username_0: I have two variables in my dataset and I want to combine `college_grad` and `sex` to create `sex_grad`. The levels should be as follows:
* Male Graduate
* Female Graduate
* Male Non-graduate
* Female Non-graduate
`collegegrad` has two levels:
* Yes
* No
`sex` has two levels:
* Male
* Femal... |
2018/03/19 | 696 | 2,567 | <issue_start>username_0: I need to write a `TextInput` value into the browser console, but when I try to do this I get an error as on the below screenshot or it gets erased automatically when I type in the username into `TextInput`.
*Error:*
[](https... |
2018/03/19 | 350 | 1,082 | <issue_start>username_0: This is my query:
```
SELECT
store_id as `initial`,
CONCAT(',', store_id, ',') AS store_id
FROM `mytable` AS `main_table`
WHERE (`store_id` LIKE '%,13,%');
```
These are the results without the `where` conditions:
[](ht... |
2018/03/19 | 545 | 1,957 | <issue_start>username_0: HTML
----
```
Test1
Test2
Test3
Test4
```
jQuery
------
```
$("form").submit(function( event ) {
event.preventDefault();
$("form").attr("action", $(this).children(':selected').attr("data-action"));
$(this).submit();
});
```
Problem
-------
Form action does not update and form... |
2018/03/19 | 617 | 2,249 | <issue_start>username_0: In my current project, I have an Oracle Database 11g. On the database is installed Java 1.6.
My task is to connect over https to web service provider from database procedure (plsql). For this task have used Java stored procedure (rather than HTTP\_UTIL plsql package) because I also need to si... |
2018/03/19 | 1,184 | 4,628 | <issue_start>username_0: I have an REST API interface which only gets me the first level of some information.
So for example I want to collect groups. Every Group can have subgroups. So for example "Group 1" has the Subgroups "Group A" and "Group B". "Group A" has the Subgroup "GroupX". And so on.
But the API only g... |
2018/03/19 | 1,151 | 3,044 | <issue_start>username_0: Falks, here is xml:
```
declare @xml xml =
Cast('
Bloomberg
IS.Clipboard
e7aa2033-0a53-4390-a09b-504673ea54bb
New
2017-11-23T13:35:49.171696+03:00
603bc973-39d0-e711-9417-984be16869ec
2017-11-22T00:00:00
bloomberg\_bond
Bloomberg
XS0114288789
Equity
CRNCY
USD
PAR\_AMT
.47... |
2018/03/19 | 471 | 1,709 | <issue_start>username_0: I want to make an event that runs every time the mouse clicks anywhere on the form.
Currently i got it set this:
```
this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Form_MouseClick);
```
But this only works when not clicking on any other element like a panel
Is there any... |
2018/03/19 | 733 | 2,251 | <issue_start>username_0: Is it possible to do a polynomial regression line on a scatter() in matplotlib?
This is my graph:
<https://i.stack.imgur.com/3ra9x.jpg>
```
alg_n = [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4...]
orig_hc_runtime = [0.01, 0.02, 0.03, 0.04, 0.04, 0.04, 0.05, 0.09...]
plt.scatter(alg_n, or... |
2018/03/19 | 871 | 3,379 | <issue_start>username_0: I have a VBA macro(Word2010) script to highlight all the text in italics. But when executed in large file say a document with more than 10 pages the Word get crashed.
I have used the below code for this purpose.
```
Sub Italics_Highlight()
'
' test_italics_highlight_ Macro
'
'
Application.... |
2018/03/19 | 169 | 691 | <issue_start>username_0: I am trying to figure out if Oracle JDBC driver supports SOCKS proxy or not. I am not finding any documentation related to this. Please let know if you are aware.<issue_comment>username_1: No the Oracle JDBC driver doesn't support SOCKS5 proxy. In the soon to be release 18.1 version of the thin... |
2018/03/19 | 367 | 988 | <issue_start>username_0: I have a list of numbers:
```
Numbers = [1, 34, -45]
```
I want to create a function that returns the width of the number with the largest number of characters:
For example:
```
Max_width([1, 34, -45])
```
Output:
```
3
```<issue_comment>username_1: Use this:
```
def max_width(a):
... |
2018/03/19 | 268 | 954 | <issue_start>username_0: Whenever I move the cursor left or right using h or l, the fold under the cursor opens automatically. By the way, moving top or down does not have this problem. Is there any way to prevent automatically opening fold when moving horizontally?<issue_comment>username_1: You can create the auto com... |
2018/03/19 | 565 | 2,203 | <issue_start>username_0: I have a list in C#. List where User object has few parameters. username, age something like that.
In the list there are duplicate (only twice) entities according to the username. Eventhoug the usernames are same, other attributes are not same.
How can I merge those elements and remove dupli... |
2018/03/19 | 1,437 | 4,319 | <issue_start>username_0: I followed the examples that I found but for some reason clicking on the above div won't trigger a click on the below input. Can someone tell me where I'm going wrong?
```js
$(document).on('click', '#uploader', function(event) {
$("#url").click();
});
```
```css
#uploader {
width: ... |
2018/03/19 | 590 | 2,206 | <issue_start>username_0: I recently installed **Node** on my MacBook running `High Sierra 10.13` using the `.pkg` file supplied on their website.
After a few hours of experimenting with installing other packages and writing scripts, I decided I would like to uninstall both Node **and** NPM to get a fresh start.
I trie... |
2018/03/19 | 384 | 1,505 | <issue_start>username_0: I know that it is possible using `@SqlResultSetMapping` but I want to select not whole entity from the database but some fields and then map i to my entity using one of the constructor which accept that fields. Is that possible to map result with `@EntityResult` for only a few `@FieldResult`? I... |