date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/21 | 870 | 2,401 | <issue_start>username_0: I tried to run the sample code shown [here](https://developers.itextpdf.com/content/itext-7-jump-start-tutorial/chapter-1-introducing-basic-building-blocks) but it's complaining that SLF4J is missing, so I downloaded the zip archive from the official website.
The tutorial [video](https://www.y... |
2018/03/21 | 818 | 2,987 | <issue_start>username_0: I'm working on creating a radial progress bar, I'm getting the percent from the database.
So what should happen:
1- Getting the percent value from the database (Done)
2- Send the value from script to div in HTML.
3- jQuery takes the percent div and create the radial progress.
But I'm getti... |
2018/03/21 | 710 | 2,469 | <issue_start>username_0: Suppose I have a String containing static tags that looks like this:
`mystring = "[tag]some text[/tag] untagged text [tag]some more text[/tag]"`
I want to remove everything between each tag pair. I've figured out how to do so by using the following regex:
`mystring = mystring.replaceAll("(?<... |
2018/03/21 | 758 | 2,846 | <issue_start>username_0: Ok I've spent a week trying to figure this out but I can't seem to find what I'm looking for. There are two similar problems that, I think, are easier to explain after seeing the pseudo(ish) code. Here is the first one
```
SELECT P_CODE, P_DESCRIPT, @diff
FROM PRODUCT
WHERE @diff :=
(SELEC... |
2018/03/21 | 521 | 2,061 | <issue_start>username_0: I have an application in ASP.NET MVC that we bought that has multiples possible routes and that might get even bigger because we can dynamically add pluggins. We're talking hundreds of different pages and controllers. We modified/added the ones that we needed (mostly reskinning). And now we hav... |
2018/03/21 | 290 | 1,085 | <issue_start>username_0: Using Ruby on Rails 5.0.3 .
I want to set some value in cookie using JavaScript (when button clicked), and get it in Rails.
I know how to access session in Rails, which is `session[:some_key]` or `cookies`.
But I don't know how to do in JavaScript. (it must be able to accessed from Rails `se... |
2018/03/21 | 570 | 2,028 | <issue_start>username_0: I have created a react-native project XYZApp using `react-native init` which is pushed in GitHub repo.
Now when I am cloning the project on a different system. following is the directory structure
app/XYZApp
Following is the set of commands and steps I am using.
```
cd app
brew install nod... |
2018/03/21 | 397 | 1,476 | <issue_start>username_0: I'm trying to display a dropdown of distinct Brands, furthermore i'm looking to display a summary of the number of items within that match a WHERE statement. Looking around here i'm only able to find solutions to part of my problem, but not the SELECT WHERE part that needs to be nested...
Prog... |
2018/03/21 | 1,207 | 4,428 | <issue_start>username_0: I am getting an error:
>
> Ambiguous resolution: module ".../myModule.js" tries to require
> 'react-native', but there are several files providing this module. You
> can delete or fix them:
>
>
> .../MyProject/ios/Pods/React/package.json
>
>
> .../MyProject/node\_modules/react-native/... |
2018/03/21 | 2,153 | 8,754 | <issue_start>username_0: I created a custom dialog preference in my Android application, but I can not figure out how to get the dialog which is displayed to span the complete width of the display.
[image of dialog with too much space on left and right side](https://i.stack.imgur.com/fAUzj.png)
I found many proposed ... |
2018/03/21 | 1,088 | 4,426 | <issue_start>username_0: I have a design question im not too sure on. Say i have this "policy" sort of like a someone have car insurance or something.
There are tons of different kinds of policies that pop up all the time, so like earthquake, or trucking, or like drone, etc. I want this to be generic so they all sort ... |
2018/03/21 | 1,454 | 5,759 | <issue_start>username_0: I'm trying to call a DAO method in my Java EE project to add data to a table in MySQL.
**Here is the how the code looks:**
```java
@Override
String execute(HttpServletRequest request, HttpServletResponse response) throws LoginSampleException {
int height = Integer.parseInt(request.getPa... |
2018/03/21 | 973 | 2,919 | <issue_start>username_0: I am trying to concatenate scala list in loop using below code.
```
var names: List[String] = Nil
val cluster_id = List("149095311_0", "149095311_1")
for (id <- cluster_id) {
val influencers_name = searchIndex(s"id : $id", "id", "influencers", searcher)
println("In Loop " + influencers_nam... |
2018/03/21 | 562 | 1,793 | <issue_start>username_0: I am trying to load the node from csv in Neo4j, however, every time I try to do this I get such an error:
```
Neo.ClientError.Statement.ExternalResourceFailed: Couldn't load the external resource at: file:/var/lib/neo4j/import/events.csv
```
My event.csv file is in `/var/lib/neo4j/import` di... |
2018/03/21 | 546 | 2,164 | <issue_start>username_0: My python3 lambda functions process records from dynamodb. I am printing every step of my lambda execution in cloudwatch. Now I am at a stage of deploying and monitoring my lambdas in production. Is there a way I can know which records are executed by lambda as a whole in consolidated way?
I ... |
2018/03/21 | 940 | 2,830 | <issue_start>username_0: I am trying to upload a csv file from Angular to Asp.NET Core webapi.
But getting empty object at the web abi although Fiddler shows something went over the network.
I am using Kendo UI to upload the file.
Can you please tell me how to resolve this ? I tried [FromBody] and [FromForm] but no di... |
2018/03/21 | 2,539 | 12,116 | <issue_start>username_0: I need to get data frame from a json response with each content's `id`,`likeCount` and `displayName`.
Everything else works fine except the `displayname`.
It gives an error:
```
KeyError: 'author'
```
My code I use:
```
df=pd.DataFrame([])
for i in json_data['list']:
df=df.append... |
2018/03/21 | 505 | 1,449 | <issue_start>username_0: I am trying to visualise an image of a number `5`. Initially with code:
```
image(matrix(data[,11552], nrow = 28, byrow = TRUE), col = gray(0:255/255))
```
it looks like the following image:
[](https://i.stack.imgur.com/mD0o... |
2018/03/21 | 377 | 1,220 | <issue_start>username_0: There is a way to check if the string in the column contains another string:
```
df["column"].str.contains("mystring")
```
But I'm looking for the opposite, the column string to be contained in another string, without doing an apply function which I guess is slower than the vectorised `.cont... |
2018/03/21 | 730 | 3,054 | <issue_start>username_0: I'm using `NumberFormat` in my app to get the currency formatted Strings. Like if a user inputs **12.25** in the field then it will be changed to **$12.25** based on locale. Here the Locale is **en-US**.
Now I want to get the 12.25 value as double form the formatted string.
To do that I have u... |
2018/03/21 | 587 | 2,553 | <issue_start>username_0: I have googled a lot but cannot find a solution on this problem. I have a relative path like 'external/user/login/example.php' and I need in that case to bypass the angular routing to get my\_env + relative\_url.
Is that possible with angular? Thanks in advance.<issue_comment>username_1: What ... |
2018/03/21 | 873 | 3,353 | <issue_start>username_0: To change the text in [Bootbox](http://bootboxjs.com/) dialog, I use and then use jQuery as follow: `$("#someID").text("The new Text");`
The problem I am facing is how to change the dialog color?
Inside my dialog I have the following (to set the dialog color):
```
className: "modal-danger n... |
2018/03/21 | 833 | 2,624 | <issue_start>username_0: this is something I cannot understand:
```
#include
#include
typedef struct point{
char name[10];
int y;
} point\_t;
std::string print(const char\* str, size\_t size) {
return std::string(str, size);
}
std::ostream& operator << (std::ostream &o,const point\_t &a){
o << print(a.name, si... |
2018/03/21 | 618 | 2,097 | <issue_start>username_0: I want to call a function with a `double` parameter and an `int` precision.
This function would have to round that number with the precision number as decimals.
Example: `function(1.23432, 4)` would have to round that number up with 4 decimals (`1.2343`). Could anyone help me out with this?<i... |
2018/03/21 | 647 | 2,175 | <issue_start>username_0: I found a exactly question like this over here but that is for C#.
I need one for javascript.
I dont want to have to enter the last value "NA" since its never going to be called if code is programmed properly. Is there such a work around so that I dont have to enter anything, by anything I me... |
2018/03/21 | 857 | 2,580 | <issue_start>username_0: I am developing a Python program in order to find the etymology of words in a text. I have found out there are basically two options: parsing an online dictionary that provides etymology or using an API. I found this reply here but I don't seem to understand how to link the Oxford API with my P... |
2018/03/21 | 1,295 | 4,985 | <issue_start>username_0: I am new in Scala world and now I am reading the book called "Scala in Action" (by <NAME>), namely the part called "Mutable object need to be invariant" on page 97 and I don't understand the following part which is taken directly from the mentioned book.
---
Assume ListBuffer is covariant and... |
2018/03/21 | 870 | 2,722 | <issue_start>username_0: I have two lists.
```
List list1 = new ArrayList<>(Arrays.asList(1, 2, 2));
List list2 = new ArrayList<>(Arrays.asList(2, 3, 4));
```
I want to remove the elements contained in `list2` from `list1`, precisely as many times as they are contained in `list2`. In the example above: when we remov... |
2018/03/21 | 733 | 2,595 | <issue_start>username_0: As stated by [this blog](http://benjiweber.co.uk/blog/2018/03/03/representing-the-impractical-and-impossible-with-jdk-10-var/), we are now able to write the following using local type inference (something, to my knowledge, that was previously impossible without introducing more code):
```
publ... |
2018/03/21 | 555 | 1,627 | <issue_start>username_0: I have a dataframe like this:
```
col1 col2
0 maria apple
1 eugene apple
2 eugene banana
3 maria apple
4 maria pear
5 eugene banana
6 maria apple
```
I want to group by person to see what is the most common fruit for that person, something like this:
... |
2018/03/21 | 517 | 1,679 | <issue_start>username_0: I'm new to JS and I want to know how to print a var inside a string ,
i found that the way should be :
```
var user = {
name: "Mike",
sayHi:() => {
console.log('Hi, I\'m ${name}');
}
};
user.sayHi()
```
but I get : `Hi, I'm ${name}`<issue_comment>username_1: When you wa... |
2018/03/21 | 189 | 657 | <issue_start>username_0: The query checks the value of a parameter **foo** which is passed by a dropdown inside a program. If that paramater contains a certain value, an attribute should only contain null values. Can I manage that without pl/SQL?
```
select * from table t
where case when $foo$ = 'yes' then t.somethin... |
2018/03/21 | 542 | 1,904 | <issue_start>username_0: I'm trying to figure out following code and am not sure what the std::async part is doing:
```
std::vector RunParallel( std::vector> args)
{
std::vector> results(args.size());
for( int iter\_job = 0; iter\_job < args.size(); ++iter\_job )
{
int arg1 = args[iter\_job][0];
int arg2 = args[... |
2018/03/21 | 757 | 2,864 | <issue_start>username_0: I have two `textFormField` widgets. Once the user has completed the first text field I would like to focus on the next `textField`. Is there a way to do this in Flutter? Currently, the done button just closes the keyboard. I was guessing the `focusNode` class might be the answer to this but not... |
2018/03/21 | 882 | 2,561 | <issue_start>username_0: Let say I have a list with `len(list) == 5`
Can I be sure `list[4]` exists?
Or maybe an item could get deleted and then the list would have indices 0,1,2,3,5 which would have length 5 but without index 4?<issue_comment>username_1: Yes, if `len(lst) == x` then all indices up to `x - 1` exist.
... |
2018/03/21 | 1,282 | 4,829 | <issue_start>username_0: I modified a combobox style and the style is listed below. It works fine, however, the style applies to all comboboxes in my project. In other words, when I pull a combobox from the toolbox, it is automatically styled. What I'd like to do is only style certain comboboxes with the style - not al... |
2018/03/21 | 577 | 2,002 | <issue_start>username_0: Assume the following code snippet:
```
....
....
some stuff
a change
more stuff
more changes
more stuff
}
}
}
}
final changes
```
I need to add something right before the last , what's stated as `final changes`. How can I tell sed to match that one? `final changes` doesn't exis... |
2018/03/21 | 1,598 | 4,949 | <issue_start>username_0: I have tried to implement solution to dynamical expansion of array as user is entering new data in main as shown:
```
ComplexNumber** nizKompl = new ComplexNumber*[1];
bool unos = true;
while(unos){
cout << "Unesite novi kompleksni broj(realni imaginarni): ";
if(cin >> re >> im){
ni... |
2018/03/21 | 1,454 | 4,298 | <issue_start>username_0: i have 2 codes that do the same thing 1 runs in 0.3 sec and 1 in 8 sec
i have a table with 10000 recorders, and i update all the record
also id column is indexed
why there is such a time difference if they both do the same this ?
the first code( 0.3 sec):
```
UPDATE `trades` SET `profit_los... |
2018/03/21 | 519 | 1,756 | <issue_start>username_0: Let's say I have a simple template string :
```
const foo = `foo`;
```
How do I go about rendering this template string as HTML ?
It renders it as plain text if I do the following :
`return({ foo });`
Output:
```
foo
```
Expected output:
```
foo
```<issue_comment>username_1: I think w... |
2018/03/21 | 1,281 | 3,762 | <issue_start>username_0: I want to use a if-function to distingiush between two sceneraios.
```
For Each Cell In Tabelle3.Range("A" & lastrow2)
Option A: If Cell <> "" Then run code
Option B: If Cell = "" Then skip this empty cell and go on with the next one
```
Here the whole code:
```
Sub IfFunction()
Dim las... |
2018/03/21 | 640 | 1,668 | <issue_start>username_0: I have a list of times for my web form and I need to remove some choices from the list based on `minimum` and `maximum` minute value.
For example I want to only display times between 60 and 180 minutes
Django Form:
```
time_list = (
('', 'Select'),
('15', '15 Minutes'),
... |
2018/03/21 | 256 | 797 | <issue_start>username_0: How to change application theme at run time of an application developed in Team developer. I have already tried Build Settings - General settings, but there I didn't find any option for changing theme at run time.<issue_comment>username_1: Try to change it to
```
time_list = iter(time_list)
ne... |
2018/03/21 | 733 | 2,400 | <issue_start>username_0: I am attempting to create a regex pattern that matches a line where all the words begin with uppercase letters, regardless of length. It must also account for any number of equals signs ('=') being on either side.
For example matches:
```
==This Would Match==
===I Like My Cats===
====Number O... |
2018/03/21 | 236 | 836 | <issue_start>username_0: fairly Simple question regarding the new balham theme on Ag-grid.
Id like to disable the side button and the tool panel completely as shown in the link below:
<https://www.ag-grid.com/javascript-grid-tool-panel/>
I can hide the tool panel, but cannot hide the side button labelled 'Columns' a... |
2018/03/21 | 2,062 | 6,296 | <issue_start>username_0: **Caution, I am a novice.**
Objective: To create a "Comments" sheet that includes all comments from the current sheet selected. Here is what my sheet looks like:
[](https://i.stack.imgur.com/w9cov.png)
The way I want the sheet to look is:
[![Prefe... |
2018/03/21 | 1,676 | 5,213 | <issue_start>username_0: Having a really hard time actually getting numbers I need.
I need to project the state where the most stoves are sold.
I have:
```
SELECT DISTINCT TOP 2 C.StateProvince,
COUNT(*) AS TimesSold
FROM CUSTOMER C
INNER JOIN INVOICE I ON C.CustomerID = I.FK_CustomerID
INNER JOIN INV_LINE... |
2018/03/21 | 2,243 | 7,201 | <issue_start>username_0: I am working with a group to make a command line tool that takes a lot of sub commands - e.g.:
```
cmdtool.exe foo 1 2 3
```
or
```
cmdtool.exe bar 9 zombies
```
Currently it is implemented with a long and ugly list of
```
else if (command == "foo")
{
if (argLength < 3)
{
... |
2018/03/21 | 901 | 3,599 | <issue_start>username_0: I am writing a WPF application which has a lot of different controls, each with its own `ToolTip`. Although the `ToolTips` are useful, some of them are quite long and get in the way.
I want to be able to create a button which will enable and disable all the tooltips on the app when it is click... |
2018/03/21 | 783 | 2,832 | <issue_start>username_0: I'm trying to compare a class type passed through as an object to the class type on the other side where the method is.
How can I do this?
I have this so far.
The one side:
```
TechToday techToday = new TechToday();
SoftwareRevolution softwareRevolution = new SoftwareRevolution();
Subcrib... |
2018/03/21 | 1,661 | 5,510 | <issue_start>username_0: plan: I want to grab the users last login data such as user-agent,ip,time,os etc. i successfully post all the data that is needed using the bellow:
```php
$userfolder = $_SERVER['DOCUMENT_ROOT'].'/account/users/'.$auth_user->user_folder_name($userRow["user_id"],$userRow["username"]).'/';
if (i... |
2018/03/21 | 1,125 | 4,182 | <issue_start>username_0: I have a required field validator in a Gridview. I want fire the validater only if the ddlPartsStatus is "Ordered". I just can't get it to work.
At the moment required field validator fires for all the textboxes.
my code
```
```
Any help is greatly appreciated. Thanks<issue_comment>userna... |
2018/03/21 | 425 | 1,812 | <issue_start>username_0: I have a `Java Object` that I am trying to map into a `JSON` object.
Is there an online tool where I can print the Java object using `toString()` and convert it to a `JSON` object?
I know that I can do it in code using e.g:
<https://www.mkyong.com/java/jackson-2-convert-java-object-to-from... |
2018/03/21 | 10,219 | 29,644 | <issue_start>username_0: I am trying to connect Gemfire 8.2 using apache calcite geode adopter.
As per following logs its connectied properly but while try to execute query getting exception .
>
> Note : <http://calcite.apache.org/news/2018/03/19/release-1.16.0/>
>
>
> Moreover, a new adapter to read data from Apac... |
2018/03/21 | 571 | 2,138 | <issue_start>username_0: I'm still learning how to code using java, and i run into problem that i can't solve myself.
compiler says :
```
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:862)
at java.util.Scanner.next(Scanner.java:1485)
at java.util.S... |
2018/03/21 | 2,573 | 9,875 | <issue_start>username_0: I have a basic UWP app with an embedded WebView presenting a rather large HTML document (up to 500 letter-sized printed pages).
I'd like to add support for printing that HTML document. Here is my approach:
1. To support pagination, I generate a second HTML document broken into "pages" by usin... |
2018/03/21 | 245 | 772 | <issue_start>username_0: How can I loop through element positions in Python using Selenium?
I've tried this and it's not working:
```
for i in range(2,21):
un = browser.find_element_by_xpath("(//div[@class='cname'])[i]").text
print(un)
```<issue_comment>username_1: You have to format your string to put insid... |
2018/03/21 | 477 | 1,662 | <issue_start>username_0: Suppose this is my JSON:
```
ds = [{
"name": "groupa",
"subGroups": [{
"subGroup": 1,
"people": [{
"firstname":"Tony",
},
{
"firstname":"Brian"
}
]
}]
},
{
... |
2018/03/21 | 340 | 1,244 | <issue_start>username_0: I have a problem when I start to scroll to the EditText wiggets that are under keyboard. The problem is with not showing EditText in full, as you can see in the picture.
[](https://i.stack.imgur.com/IndJP.png)
And all EditTex... |
2018/03/21 | 1,010 | 3,654 | <issue_start>username_0: I have made repository to get records from database. Everything is working but I want to add `orderBy` method if there is variable in session:
So far I have this:
```
php
namespace App\Repositories;
use App\Models\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Sessi... |
2018/03/21 | 673 | 2,290 | <issue_start>username_0: I have a JSON object that contains two arrays. I want to convert those array elements into individual elements in the JSON object.
I need this for an input into a D3 function in javascript.
My object now:
```
{
0:{
start:"2016-01-01",
values:[10,11,12],
names:["a","b","... |
2018/03/21 | 451 | 1,750 | <issue_start>username_0: Retry mechanism in karate testing framework How to retry tests on failure in karate testing framework like Junit and TestNG.
something like
public class Retry implements IRetryAnalyzer {
```
private int count = 0;
private static int maxTry = 3;
@Override
public boolean retry(ITestResult iTes... |
2018/03/21 | 770 | 2,816 | <issue_start>username_0: I have used templates to implement path policies.
```
#include
#include
template
class FileReader
{
public:
double getNextNumber();
private:
PathPolicy pp;
readNumbers() { std::ifstream myFile(pp.path); }; //And so on
};
```
I implemented:
```
[HEADER]
struct DefaultPolicy
{
pu... |
2018/03/21 | 493 | 1,863 | <issue_start>username_0: I would like to use a custom connection pool with MyBatis and the following questions have arisen:
What connection pool implementation does MyBatis use?
How can I change the default connection pool by HikariCP or BoneCP?<issue_comment>username_1: >
> but the only idea I have is fall back to m... |
2018/03/21 | 862 | 2,819 | <issue_start>username_0: I am extracting a list from html of a web page in the format
```
lst = '["a","b","c"]' # (type )
```
The data type of the above is **str** and I want it to convert to a python **list type** , somthing like this
```
lst = ["a","b","c"] #(type )
```
I can obtain the above by
```
lst = l... |
2018/03/21 | 473 | 2,072 | <issue_start>username_0: I'm currently working on a new ReactJS application. In all the previous applications I've built I used Express for the server side rendering. I used Express because routing in production mode wouldn't work if I didn't.
So I've recently discovered that it's posible to just always redirect my Re... |
2018/03/21 | 376 | 1,620 | <issue_start>username_0: I am using Angular. I currently am using ng-repeat to display my data from a rest endpoint. I want to have the name field not be the full name but rather - First Name - Last Initial. Example:
<NAME> -> <NAME>.<issue_comment>username_1: when deploying react application it is just usually an htm... |
2018/03/21 | 363 | 1,530 | <issue_start>username_0: Question... why does this code only produce a message box "Down"? I'm not getting the Up. If I block down code, the up works.
```
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using S... |
2018/03/21 | 809 | 2,855 | <issue_start>username_0: I'm using Python to automate some reporting, but I am stuck trying to connect to an SSAS cube. I am on Windows 7 using Anaconda 4.4, and I am unable to install any libraries beyond those included in Anaconda.
I have used pyodbc+pandas to connect to SQL Server databases and extract data with SQ... |
2018/03/21 | 710 | 1,913 | <issue_start>username_0: I have two `DateTime` instances, `A` and `B`, where:
```
DateTime A = new DateTime(2018, 11, 4, 1, 00, 0).plusHours(1);
DateTime B = new DateTime(2018, 11, 4, 2, 00, 0);
println("A: "+ A +", "+ A.getChronology() +", ms "+ A.getMillis());
println("B: "+ B +", "+ B.getChronology() +", ms "+ B.g... |
2018/03/21 | 686 | 2,325 | <issue_start>username_0: I have an Angular 5 project.
I need to display images in the UI that are fetched from the back end (say for example I want to display users' avatars in the upper toolbar, like in the SO toolbar above).
The back end is a REST server that serves images when invoked on some end-point.
I cannot ... |
2018/03/21 | 1,231 | 4,017 | <issue_start>username_0: The following is the C code:
```
char *ptr[100];
printf("%s\n",*ptr++);
```
My question is: we know that array name is not a variable (Ritchie's book "The C programming language" Page 99), so if we define
```
int *pa,a[5];
```
This is legal:
```
pa = a; pa++;
```
while this is illegal:... |
2018/03/21 | 1,937 | 5,927 | <issue_start>username_0: I am trying to train an LSTM recurrent neural network, for sequence classification.
My data has the following formart:
```
Input: [1,5,2,3,6,2, ...] -> Output: 1
Input: [2,10,4,6,12,4, ...] -> Output: 1
Input: [4,1,7,1,9,2, ...] -> Output: 2
Input: [1,3,5,9,10,20, ...] -> Output: 3
.
.
.
```... |
2018/03/21 | 729 | 1,910 | <issue_start>username_0: There's a bug in my code that's supposed to find the largest value in a list of non-negative numbers and put that value in R5. The memory location of the beginning of the list is in R2, and the end of the list of numbers is signified by a negative value. That is, if R2=x4000, and the contents o... |
2018/03/21 | 277 | 1,017 | <issue_start>username_0: So I want to make a dropdown using Bootstrap 4 for my Spring MVC Aplication.
I'm also using Thymeleaf template engine.
I 'imported' popper.js and jQuery in my html page.Also I have included Bootstraps's Css and Javascript to static direcotory as separate files in my project
```
```
And it's ... |
2018/03/21 | 269 | 959 | <issue_start>username_0: I work on prestashop 1.7.2.5.
In the order history, two links (detail & reorder) are available.
When I click on reorder, the items are added directly to the cart, but I am redirected to the homepage of the site ! I would like to be redirected to the cart directly. How can I change that? an ov... |
2018/03/21 | 848 | 3,210 | <issue_start>username_0: I have a form with some inputs and one `file input`.
Everything works well but there is a weird problem!
>
> Here is my validations code:
>
>
>
```
$validator = \Validator::make($request->all(), [
'name' => 'required|max:25|min:3',
'email' => 'required|emai... |
2018/03/21 | 3,010 | 6,731 | <issue_start>username_0: I have a ETHBTC.json file :
```
[
{
"open": "0.06353900",
"high": "0.06354800",
"low": "0.06341700",
"close": "0.06347300",
"volume": "335.48500000",
"timestamp": 1521640800000
},
{
"open": "0.06347300",
"high": "0.06365400",
"low": "0.06344000",
"close... |
2018/03/21 | 856 | 2,892 | <issue_start>username_0: I think I have exhausted the entire internet looking for an example / answer to my query regarding implementing a h2o mojo model to predict within RShiny. We have created a bunch of models, and wish to predict scores in a RShiny front end where users enter values. However, with the following co... |
2018/03/21 | 975 | 2,974 | <issue_start>username_0: I want to replace all occurences of the character . in all strings in a solution
These strings look like this:
```
string sentence = "Hello world. Good bye world";
```
And I want them all to look like this:
```
string sentence = "Hello world_ Good bye world";
```
I want to do it with a r... |
2018/03/21 | 857 | 2,502 | <issue_start>username_0: ```
Console.WriteLine("Unlike my deceased predecessor, A.I./Ai, I do not mind not being human. I am content with what I have.");
Console.ReadKey();
bool AI = false;
if (AI = true)
```
I want the user to type "AI" and have it set the bool to true if they do.<issue_comment>username_... |
2018/03/21 | 1,172 | 3,862 | <issue_start>username_0: I am stuck with a simple problem of getting text from editText.
```
fab1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
AlertDialog.Builder placeLLDialog= new AlertDialog.Builder(PlacesActivity.this);
LayoutInflater inflater = getLayoutInfla... |
2018/03/21 | 873 | 3,095 | <issue_start>username_0: In the following example
```
template
void foo() {
const char\* name = typeid(T).name();
std::cout << name;
}
```
the variable 'name' will be initialized by type 'T' name. It is very convinient if we need to print this template type name. But, if we have the alias:
```
using shortTypeNam... |
2018/03/21 | 1,489 | 4,885 | <issue_start>username_0: Let's say I have a table called **user**
[](https://i.stack.imgur.com/kC50b.jpg)
I want to make a HTTP call roughly like this
<http://my.awesome.server/dev_api/index.php/login/get_user.php?user=steven&password=<PASSWORD>>
Wh... |
2018/03/21 | 384 | 1,240 | <issue_start>username_0: In c# when adding two decimals the program will automatically get rid of the number 0 after the decimal places.
For example adding 0.50 to 1.20 will produce the answer of 1.7 and this is annoying because i need to display this answer in terms of money.
Is there a way to prevent this?<issue_... |
2018/03/21 | 678 | 1,699 | <issue_start>username_0: It's been two days that I'm struggling to solve this issue but without a solution.
My data looks like:
```
['DDD1', 'EEE1', 'AAA1', '1516988948227']
['DDD2', 'EEE2', 'AAA2', '1516988948076']
['DDD3', 'EEE3', 'AAA3', '1516990485713']
['DDD4', 'EEE4', 'AAA4', '1516990487782']
```
The output I... |
2018/03/21 | 956 | 3,706 | <issue_start>username_0: I am working on android application in which I am selecting Video files from gallery. Everything is fine but I want to show video files there which are below `5MB`, I don't want to show all Videos exceeding `5MB`. My code to show Video gallery and `onActivityResult` is given below:
```
public ... |
2018/03/21 | 816 | 2,097 | <issue_start>username_0: I want to update my database (SQL Server Express) all the dates for specific ids.
I am displaying the ids I want to.
```
SELECT TOP (1000) ID, Dates
FROM tbl_table
WHERE (id IN (29695, 29700, 29701, 29702, 29703, 29704, 29705, 29706, 29707, 29708, 29709, 29710, 29711, 29712, 29713, 29714, 297... |
2018/03/21 | 602 | 2,597 | <issue_start>username_0: I want to translate this into lambda syntax and can't seem to get it to work:
Grouping by two columns, select max on a different column, return list of complete complex object.
I am writing more text here to get past the validation on this form. How much text is needed until I am allowed to p... |
2018/03/21 | 399 | 1,463 | <issue_start>username_0: There are some bash scripts running on our build machines where IncrediBuild is installed. The idea of IncrediBuild is to utilize all cores available in the network to speed up the build process.
Example shell script:
```
...
ib_console cmake --build .
```
The shell script shall not be chan... |
2018/03/21 | 652 | 2,311 | <issue_start>username_0: In part of a project, given a single integer/character x and a tuple/string a, I need to create a new tuple/string that's the original tuple/string extended by that element. My current code looks like:
```
def extend(x, a):
if type(a) is tuple:
return a + (x,)
if type(a) is str... |
2018/03/21 | 661 | 2,466 | <issue_start>username_0: I want to show comments for every specific service in my website..
the store comment method is working properly!
and when I try to display comments in the blade page I get this error
>
> SQLSTATE[42S22]: Column not found: 1054 Unknown column 'comments.service\_id' in 'where clause' (SQL: sele... |
2018/03/21 | 1,420 | 3,958 | <issue_start>username_0: I am working with big datasets in MySQL (combined with Java) and trying to implement a Frequent Itemset algorithm.
A recurring aspect of the algorithm is counting how many times a set of items (an item is a random integer) occurs in the dataset.
Take for example this small dataset **T**:
``... |
2018/03/21 | 994 | 2,759 | <issue_start>username_0: i am trying to download a image from remote server and i get error 500 when i do it via perl getstore. i need to use getstore. it works for other host but this provider.
```
use LWP::Simple;
my $url = "http://shop.xeptor.co.uk/imgs/cef4cbbe-d86e-420e-aec6-4371d7e9b2bc/250/250/2262497R4... |
2018/03/21 | 617 | 1,860 | <issue_start>username_0: I need to convert special characters (in this case Ð character) from cp850 to unicode and I am not being able to do it with mb\_convert\_encoding.
The correct conversion should be from Ð to Ñ in spanish but function mb\_convert\_enconding('Ð', 'utf-8') returns Ã.
Do you have any idea why does ... |
2018/03/21 | 510 | 1,688 | <issue_start>username_0: Is there a way (without VBA) to change the content of a cell in Excel so that nobody can see a client name? So for example in a list of cells I may have:
Smith
Jones
Williams
etc...
I want to set up the cell so that when the inputter types in the client name, they can see it to make... |
2018/03/21 | 468 | 1,552 | <issue_start>username_0: I have a dataframe with measure columns `SalesMonth1` -- `SalesMonth12` and another columns `Index` and `price`.
I am trying to do the following but it does not work. Could you please suggest a better way?
```
For i in range(12):
DF['Newcol'] = np.where(DF["Index"] >0,
... |
2018/03/21 | 753 | 3,027 | <issue_start>username_0: This is how my layout looks currently: [](https://i.stack.imgur.com/eFaLG.png)
My intention is to have that Pending text in one line without it being character-wrapped onto two lines.
My understanding of XAML was that I could do this by settin... |
2018/03/21 | 622 | 2,326 | <issue_start>username_0: I have an empty JSON object
```
export class Car {}
```
I have imported it in a `component.ts` and I would like to add some fields in a loop. Something like
```
aux = new Car;
for (var i = 0; i < 10; i++) {
car.addName("name" + i);
}
```
My goal would be to get at the end the following ... |
2018/03/21 | 314 | 1,025 | <issue_start>username_0: I am having some difficulties with footer css. I want it to stay in the bottom of the page. I don't want it to be visible until i scroll to the bottom of the page.
```
.footer{
position: fixed;
display: block;
width: 100%;
height: 80px;
bottom: 0;
float: none;
}
```<is... |