date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/15 | 873 | 2,808 | <issue_start>username_0: I am following a Laravel course on Udemy and while I followed everything the instructor did, for some weird reason I am not getting the expected result.
This is the Relationship One to One lesson and I added a function in User Model to check if it has any posts.
Then added the route to displa... |
2018/03/15 | 258 | 787 | <issue_start>username_0: I want to change the language of the date i get in my view from english to french
```
{{ strftime("%d %B %Y, %H:%M", strtotime($article->created_at)) }}
```<issue_comment>username_1: Set `Carbon` locale first, then access
```
Carbon::setLocale('fr');
$date_to_show_in_view = $article->create... |
2018/03/15 | 515 | 1,794 | <issue_start>username_0: I have a function that appends the information from 2 tables, but both tables have the column "name". How can I dictate which table name is utilized?
```js
function createTableRow(customers) {
var data = JSON.parse(customers.results);
if (locations != 0) {
for (var i = 0; i < data.l... |
2018/03/15 | 1,061 | 3,477 | <issue_start>username_0: I'm using **prefetch\_related** to join three tables. **Products,** **ProductPrices** and **ProductMeta**. But besides I'm following the documentation, the debugger says that I'm using **three queries** instead of one (with joins)
Also this creates a second problem. **Some products doesn't hav... |
2018/03/15 | 1,139 | 3,148 | <issue_start>username_0: Data:
```
0 09:30:38
1 13:40:27
2 18:05:24
3 04:58:08
4 09:00:09
```
Essentially what I'd like to do is split this into three columns [hour, minute, second]
I've tried the following code but none seem to be working:
```
train_sample.time.hour
AttributeError: 'Series' object ... |
2018/03/15 | 543 | 1,836 | <issue_start>username_0: I used this query for get the total count of Property\_SubType using GROUP BY.Now i want to get the Min and Max price for particular Property\_SubType form my database how to do it?
Below my query:
```
SELECT Matrix_Unique_ID,Property_Type,Property_SubType,Subdivision,
COUNT(*) as co... |
2018/03/15 | 861 | 2,757 | <issue_start>username_0: I have two datasets, one is the shape file of the french regions, and the second is a file containing points. I want to (efficiently) find the regions containing at least one point.
When I print the two datasets i see [](https... |
2018/03/15 | 740 | 2,758 | <issue_start>username_0: I am defining a css class, and trying to use its member from javascript. The result is undefined. Where is my mistake?
```js
function myFunction() {
var x = document.getElementById("myId").style.myMember;
document.getElementById("debug").innerHTML = x;
}
```
```css
.myClass {
myMemb... |
2018/03/15 | 618 | 1,948 | <issue_start>username_0: I have an `EditText` to enter IBAN number. I want to format this
```
TR330006100519786457841326
```
while the user typing the input I want to for mat it like
```
TR33 0006 1005 1978 6457 8413 26
```
so basically I want to **add white space after each 4 digits**
I tried using `TextWatcher... |
2018/03/15 | 849 | 2,952 | <issue_start>username_0: I know a lot of people already had similar question, i read a few of them, but found nothing what actualy helped me so far.
I have a gitlab with private repo enabled, I also use Google Kubernetes Engine. I have a few Docker container in my private repo, and I want to deploy one of them to the ... |
2018/03/15 | 749 | 2,813 | <issue_start>username_0: Lets say that I own a repair shop and I want to add a vehicle to my database each time a new customer comes to my shop. Assuming that I have a car class that asks for all the necessary information. Is is possible to create a dynamic array of this object that is constantly adding or subtracting ... |
2018/03/15 | 2,325 | 9,909 | <issue_start>username_0: I am new to android development. tried to implement android dialog in my project but the it's not showing .There are no errors in the logcat.
**This is the XML code for it :**
```
```
**This is the part where I have implemented alertdialog :**
```
FloatingActionButton add_button = findVi... |
2018/03/15 | 751 | 3,120 | <issue_start>username_0: I want to display all the images in my cloudinary gallery in to my react app. Can I call the function directly like this?
```
showImages = () =>{
cloudinary.v2.api.resources({
cloud_name: CLOUDINARY_CLOUD_NAME,
upload_preset: CLOUDINARY_UPLOAD_PRESET,
api_key: CLOUDINAR... |
2018/03/15 | 545 | 1,348 | <issue_start>username_0: I have a list like this:
```
input = [[1,1], [3,3], [5,5], [7,7]]
```
I want this output:
```
[[[1,1],[3,3]],[[3,3],[5,5]],[[5,5],[7,7]]]
```
(The goal is to have the path made of edges `[1,1]-[3,3], [3,3]-[5,5], [5,5]-[7,7]`... I would not be surprised that this question is a duplicate ... |
2018/03/15 | 659 | 2,146 | <issue_start>username_0: I have a MS SQL Table and one of the rows in the table has specific dates. Example: 2019-11-30 22:00:21.000
I am looking to build a SQL Query that will go to my table and only print the results if the date in this specific column is between TODAY + 30 days
Here is what I have but no joy so fa... |
2018/03/15 | 461 | 1,459 | <issue_start>username_0: Given the text:
```
This is a #tag and this is another #<EMAIL> and more text.
```
I would like to match the words starting with a hash and ends with a whitespace character ( i don't want to specify a specific pattern for <EMAIL>` ).
I can't use `lookarounds` and would prefer not to use `\b... |
2018/03/15 | 660 | 2,305 | <issue_start>username_0: I have a form as part of a VSTO Project application. For various reasons it can end up behind the main Project application window. How do I bring it back to the front? I've tried form.activate and form.bringtofront, but neither of those commands do anything.<issue_comment>username_1: It sounds ... |
2018/03/15 | 607 | 2,036 | <issue_start>username_0: I have a shortcode **[tips]** in which at the end I'm doing:
```
wp_enqueue_script( "tips", plugins_url( "/tips/js/tips.js", PATH ), array("jquery"), TIPS_VERSION, true );
wp_localize_script( "tips", "objTips", $objTips );
```
If there are multiple [tips] shortcodes on the same Page I'd like... |
2018/03/15 | 776 | 3,182 | <issue_start>username_0: I’ve got a seemingly pretty straightforward Webpack code splitting setup that I’m having trouble migrating to Webpack 4. I have two entries, called `main` and `preview`. I want to do an initial code split into a `vendor` chunk for the vendor modules in `main`, but I want to keep `preview` as a ... |
2018/03/15 | 611 | 2,541 | <issue_start>username_0: I want to execute a function inside a remote URL. I know the page URL where the function is and I know the Function name too. The server-side application is built on NodeJs Express. And the function itself look like this
```
function executer(param1, parama2){
//logic
return true;
... |
2018/03/15 | 641 | 2,398 | <issue_start>username_0: I have a spring boot application that is throwing the following:
>
> 2018-01-14 01:02:56.863 ERROR 372 --- [io-8080-exec-14] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exc... |
2018/03/15 | 677 | 2,559 | <issue_start>username_0: Imagine this files paths:
1. */root/subfolder/filename.csv*
2. */root/subfolder/subfolder2/filename2.csv*
Can I extract data from "filename.csv" and "filename2.csv" without explicitly write their paths?
I want to do something like:
```
@var = EXTRACT column FROM "/root/{*}.csv" USING Extrac... |
2018/03/15 | 358 | 1,045 | <issue_start>username_0: I have a rather big select control on my form and I want to take advantage of the space next to it:
[](https://i.stack.imgur.com/PV0bT.png)
I don't want to use a table since this will cause the wrong effect on mobile devices. What I need is ... |
2018/03/15 | 230 | 782 | <issue_start>username_0: When I want to use the mathematical methods in Java like `abs` `acos` I have to put it like this: `Math.abs(int a)`, `Math.acos(double a)`.
But what does it really mean?
Is `Math` the name of the class or some object? How does it work?<issue_comment>username_1: >
> The class Math contains me... |
2018/03/15 | 461 | 1,586 | <issue_start>username_0: I'm having some problems with Jquery/Ajax.
This is my code for the form :
```
Email
Name
Phone
Register
```
And this is my code to AJAX/Jquery:
```
$(".submit").on("click", function(e) {
var form = $("#form");
// you can't pass Jquery form it has to be javascript form object va... |
2018/03/15 | 470 | 1,612 | <issue_start>username_0: I have installed several versions of the JDK with brew cask:
```
MacBook-Pro:bin myusername$ brew cask list
java java8 soapui
```
And set the default one to be java8:
```
MacBook-Pro... |
2018/03/15 | 895 | 3,036 | <issue_start>username_0: Table data is:
```
Info
----------------------------------------
num name age expenseN cost group
1 a 20
2 b 21
InfoDetail
----------------------------------------
num expenseN cost group
1 001 10.00 x
2 001 20.00 ... |
2018/03/15 | 1,147 | 3,700 | <issue_start>username_0: I am writing a query which unpivots the table. The issue is that based on the mapping file I would like to either input values as a constant or variable.
For example - if in mapping file the ExtDate is constant, e.g. ExtDate = '2017-12-31' I want to use this value (2017-12-31). However if Ext... |
2018/03/15 | 1,486 | 4,976 | <issue_start>username_0: I have a JSON file that I wish to access, based on HTML option value attribute.
I can access the data, and pick stuff out, but like I wrote earlier, I like to do it based on what is chosen from the list.
So I wanna map option value attribute with p in the json file.
So my list looks like thi... |
2018/03/15 | 549 | 2,046 | <issue_start>username_0: For example I have 2 main models in my django app:
```
class Employee(Model):
name = CharField(max_length=50)
class Client(Model):
title = CharField(max_length=50)
```
Abstract base class for phones:
```
class Phone(Model):
number = CharField(max_length=10)
class Meta:
... |
2018/03/15 | 711 | 2,838 | <issue_start>username_0: I am new. Trying to do a database retrieve demo to login a system, here is my function code:
I will call `goLogin` function and pass in the input id and password for validation and I will also get all the id from Database for checking purpose. After ID is correct, only go check the password.
... |
2018/03/15 | 1,876 | 6,454 | <issue_start>username_0: I have create sample React Native project and following the tutorial as per react native website.
I have try to run the application IOS simulator, its throwing error as below ,
```
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Install\ Thir... |
2018/03/15 | 877 | 3,066 | <issue_start>username_0: I'm trying to learn vue and with that I want to integrate it with laravel too..
I simply want to send the user id from blade to vue component so I can perform a put request there.
Let's say I have this in blade:
```
```
How can I send Auth::user()->id into this component and use it.
I kept ... |
2018/03/15 | 918 | 3,409 | <issue_start>username_0: What I want to do is get data user and copy to a new user (create a new user). This is what I'm doing:
```
@Entity
@Table(name = "role")
public class Role {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "role_id")
private int roleId;
@Column(name = "r... |
2018/03/15 | 576 | 2,499 | <issue_start>username_0: I'm a novice looking to learn by doing - i'm writing a small windows form app which will display various text output based on the selection from a dropdownbox
I have searched for how to do this but so far I've not found an answer. I simply want the IOPS.text value to display in a text box, bas... |
2018/03/15 | 580 | 2,248 | <issue_start>username_0: When i'm trying to mock external HTTP API with MockServer, mockserver returns `java.lang.IllegalArgumentException`
This is the test code:
```
new MockServerClient("localhost", 1080)
.when(request("/messages")
.withMethod("POST")
.withQueryStringParameters(
param("subject",... |
2018/03/15 | 321 | 1,072 | <issue_start>username_0: I have the following `RegExp` `myRegexp`, that matches numbers in a string:
```
var myRegexp = new RegExp('[0-9]+');
```
Then I have the following code that extracts numbers from a string and returns an array:
```
var string = '123:456';
var nums = new Array();
while(myRegexp.test(string)) ... |
2018/03/15 | 376 | 1,149 | <issue_start>username_0: HTML
```
```
Controller::
```
$scope.link = "https://stackoverflow.com"
```
When clicking on the link inside input box, it should clickable and redirected to StackOverflow page.<issue_comment>username_1: it's not an angular question, but rather a DOM one.
an input element can't contain c... |
2018/03/15 | 422 | 1,306 | <issue_start>username_0: I'm trying to POST a file as a base64 string to my API from a react app using axios. Whenever the file seems to exceed a certain (small ~150ko) size, the request is not sent and axios/xhr throws a Network error:
```
Error: Network Error
at createError (createError.js:16)
at XMLHttpRequ... |
2018/03/15 | 467 | 1,424 | <issue_start>username_0: I need to delete multiple table data with an unique id.
I need to delete that table data if child table does not exist.
I tried `isnull` and if null option but its not working:-
```
SELECT * FROM carbrand
INNER JOIN carmodel
INNER JOIN carversion
WHERE
(
(carmodel.brandid = carbran... |
2018/03/15 | 757 | 2,694 | <issue_start>username_0: I'm using react-select and I'm customizing it,I didn't found an option to do this. Is there some workaround I can use to keep dropdown open when I'm styling it?<issue_comment>username_1: Open dropdown and then right click on dropdown... it will drown a pop over and on inspector.. now you can wo... |
2018/03/15 | 853 | 2,938 | <issue_start>username_0: I use PostgreSQL 10.3.
The following statements give the same result: `true`;
```
SELECT ROW() IS NULL;
SELECT ROW() IS NOT NULL;
```
and the next one
```
SELECT ROW() = ROW();
```
gives:
```
"ERROR: cannot compare rows of zero length"
```
So, if a row is of **zero length**, then is i... |
2018/03/15 | 1,167 | 3,755 | <issue_start>username_0: I have an array and a hash:
```
a = [
{ :color => "blue", :name => "wind" },
{ :color => "red", :name => "fire" },
{ :color => "white", :name => "wind" },
{ :color => "yellow", :name => "wind" },
{ :color => "green", :name => nil },
{ :color => "black", :name => "snow" }
]
b = { b... |
2018/03/15 | 810 | 3,174 | <issue_start>username_0: I want the seekbar progress to work with user input like the range is between 1-100 and if I enter 50 the thumb should come in middle. Any help would be highly appreciated. Thanks in advance.
ColorSlider.java
================
```
public class ColorSlider extends AppCompatActivity {
private S... |
2018/03/15 | 702 | 2,558 | <issue_start>username_0: I have this code:
```
from subprocess import Popen, PIPE
class App(QtWidgets.QMainWindow):
def __init__(self):
super().__init__()
# Create some widgets
self.setGeometry(500, 500, 300, 300)
self.pushButton = QtWidgets.QPushButton(
'Print', self)
self.pushButton.setG... |
2018/03/15 | 435 | 1,825 | <issue_start>username_0: I am creating more pages in ionic 2, when i refresh the page it always redirect to the root page index, how to prevent it.
### Example:
I created login page and welcome page after logging in if i press refresh it automatically moves to root page as login.<issue_comment>username_1: Add a `Text... |
2018/03/15 | 417 | 1,360 | <issue_start>username_0: I have the following table on my DataBase:
**TimeRank(user-id, name, time)**
I would like to order the table by time and get the position of an specific ID on the table, for example:
*The user nº 68 is on the 3rd position.*
I only need to do a query that returns the position of the user.
My... |
2018/03/15 | 579 | 2,286 | <issue_start>username_0: I have troubles with saving an account credentials inside an IPhoneSimulator's Keychain. I cannot use *AccountSaver.Create().Save(credentials, "app")* without *Entitlements.plist*. However when I add it to my project, compilation error shows up:
>
> Could not find any available provisioning p... |
2018/03/15 | 1,222 | 4,520 | <issue_start>username_0: I have a survey app - you create a Survey and it saves the Response. It's registered in Django Admin. I can see the Survey and submit a Response. When I click **Response** in Admin, I get the following error:
>
> ValueError at /admin/django\_survey/response/
> Cannot query "response 5f895af59... |
2018/03/15 | 1,073 | 3,901 | <issue_start>username_0: I'm implementing a tableview, which has 3 sections(section count remain static) and each section contain several rows.
**Behaviour 1:** Add section header to only the third section.
***How did I achieve:***
```
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> ... |
2018/03/15 | 293 | 1,046 | <issue_start>username_0: I have XML specified the following:
```
```
I would like to have a list of the news in my response. However when I would like to create Java object with jaxb2 the xml returns the folllowing error when I run mvn clean compile -X:
`org.xml.sax.SAXParseException: cos-st-restricts.1.1: The typ... |
2018/03/15 | 945 | 3,447 | <issue_start>username_0: Premise
=======
I'm using the Google Elevation Service to get elevations of all nodes along a path, drawn onto a Leaflet map by a user. This allows me to generate an elevation chart. At the moment, if I make more than 2 requests (there is a limit of 512 locations per request), I always hit an ... |
2018/03/15 | 1,833 | 6,281 | <issue_start>username_0: I'm using jobScheduler to get background location updates. But each time the job is scheduled, FusedLocationProviderClient is null. Why is that? I've checked if(FusedLocationProviderClient == null) condition and each time the job is scheduled, the code under it runs (that means fusedLocationPro... |
2018/03/15 | 461 | 1,740 | <issue_start>username_0: Can we provide conditions to **trans** or **Lang** method other than pluralization ones, so it checks locale & the condition both to provide the required translations
>
> For Example: We have some translations in English for Organisation 1. And
> different translations in English for Organis... |
2018/03/15 | 606 | 2,127 | <issue_start>username_0: I am using Active Choices Plugin to dinamically load parameters. I want to read last line of a $workspace file as a parameter.
In this example, when selecting "pedro" username it should display linea 1" because is the last line of the document that is in "/var/lib/jenkins/workspace/Aa.test1.t... |
2018/03/15 | 588 | 2,110 | <issue_start>username_0: **Goal**: migration from Spring Boot 1.x (webMvc) to version 2 (webFlux) and Spring Cloud Edgware SR2 to FinchleyM8 (awaiting release version).
**Problem**: Feign -> OpenFeign. OpenFeign under the hood uses RxJava but WebFlux - Reactor3. At the current moment when I using Mono as returned typ... |
2018/03/15 | 288 | 996 | <issue_start>username_0: In admin i want to display diff. list\_filter for superuser and staff user. How it possible.
When superuser is logged in:
```
list_filter = ('is_active', 'membership_type', 'is_blocked')
```
and for staff user with limited permission list\_filters should be:
```
list_filter = ('is_active',... |
2018/03/15 | 709 | 2,689 | <issue_start>username_0: I would like to create a form using BootStrap 4 that looks like the forms that BootStrap 3 allowed one to create easily. i.e. I would like a bold label right-aligned within a specific size (e.g. col-sm-4), and next to it I would like an input field whose width is controlled by an enclosing div ... |
2018/03/15 | 862 | 2,509 | <issue_start>username_0: I have dropdown fields on an event website with variable names so I'm unsure on how to capture the data with $\_POST
An example is
```
tkt-slctr-qty-346[]
tkt-slctr-qty-358[]
```
Is there a way to capture the data with $\_POST by using wildcards at all?
EDIT: here is the html
```
0
... |
2018/03/15 | 1,326 | 4,129 | <issue_start>username_0: I would like to replace middle of word with \*\*\*\*.
For example :
```
ifbewofiwfib
wofhwifwbif
iwjfhwi
owfhewifewifewiwei
fejnwfu
fehiw
wfebnueiwbfiefi
```
Should become :
```
if********ib
wo*******if
iw***wi
ow**************ei
fe***fu
fe*iw
wf***********fi
```
So far I managed to repl... |
2018/03/15 | 1,193 | 3,980 | <issue_start>username_0: I'm creating a proxy-service with a log-mediator in WSO2 Enterprise Integrator 6.1.1 and I have 2 simple questions:
1)Is it possible to costumize the format of the logged request/response? Actually what I see in the WSO2 consolle is the XML rapresentation of my request/response, and I would li... |
2018/03/15 | 423 | 1,674 | <issue_start>username_0: How to make the menu reappear if the user doesnt press any key like 3 in this case to exit the program.
```
import java.util.Scanner;
public class New {
public static void main(String[] args) {
System.out.println("Enter 1 to create folder/ 2 to create file/ 3 to exit");
S... |
2018/03/15 | 1,007 | 3,625 | <issue_start>username_0: I was trying to make a **react-native app** with **redux**, which is a **counter**. I was using [snack.expo.io](https://snack.expo.io/) website in PC and **expo app** in Android, as I can't run it plainly in my system due to limitations .The app runs but when i click any of the buttons, it show... |
2018/03/15 | 2,166 | 8,516 | <issue_start>username_0: I am new in both React and GatsbyJS. I am confused and could not make figuring out in a simple way to load data from third-party Restful API.
For example, I would like to fetch data from randomuser.me/API and then be able to use the data in pages.
Let’s say something like this :
```js
im... |
2018/03/15 | 561 | 2,550 | <issue_start>username_0: The fields in my Rate Table are Route, VehicleMasterId, VehicleType, Material, Client, UnitRate etc.
The priority order on which I have to fetch a single row is : VehicleNo > Route > Client > VehicleType, Material
Suppose I have 2 rows with same data except 1 has Client and Vehicle Type and t... |
2018/03/15 | 432 | 1,668 | <issue_start>username_0: I've been stuck on this problem for a few weeks now with no avail.
I am saving the contents of an array-list to a text file so that when the user opens the activity, the array list loads itself up for the user.
When i try to read the text file, and add the contents to the array-list, I get th... |
2018/03/15 | 520 | 1,567 | <issue_start>username_0: I am trying open `*.mp4` file with `opencv`. I am trying with following code but I am unable to do this. How can solve this issue?
```
import cv2
cap = cv2.VideoCapture("test.mp4")
# cap = cv2.VideoCapture("test.avi") # it's also not working
cap.isOpened() # Output: False
```
* N.B:
+ OS... |
2018/03/15 | 538 | 1,652 | <issue_start>username_0: This link explains the way to change the Text on Menu - <https://github.com/marmelab/admin-on-rest/blob/master/docs/Resource.md#options>
But I would like to know how to change the Text which is rendered on right side panel i.e. when one clicks on the drawer menu. I see that if my code is like ... |
2018/03/15 | 865 | 3,055 | <issue_start>username_0: I'm using Laravel 5.6 and Vuejs 2. I'm a beginner in Vuejs and stuck at the layout structure. I want to use laravel for backend API and frontend completely on Vuejs so that i can move to different pages without refreshing the browser.
I have created these in the components folder
```
Componen... |
2018/03/15 | 859 | 2,614 | <issue_start>username_0: How to get distinct words of a column based on group by of another column
I need to get distinct colB words for each colA value
my dataframe:
```
colA colB
US California City
US San Jose ABC
UK London 123
US California ZZZ
UK Manchester
UK London
```
... |
2018/03/15 | 602 | 2,049 | <issue_start>username_0: On the time of page loaded get\_switch() function which globally created on app.js page will be call then return a method. i want to execute these return methods.
demo.js
```
const return_functions = get_switch('BTC');
function get_btc()
{
console.log('btc');
}
function get_bch()
{
... |
2018/03/15 | 1,162 | 5,079 | <issue_start>username_0: I always use REST API when I get or post some data.
But WebSocket can also do that.
So, I am confused about the difference between WebSocket and REST API
when I try to get or post some data.<issue_comment>username_1: You can provide a REST API along with a WebSocket API for different purposes.... |
2018/03/15 | 364 | 1,328 | <issue_start>username_0: I know that `$(".el").load(function()...` is deprecated from version 3.0, but now i'm in a situation where I need a plugin that's using `.load` rather than `.on("load", function()`
Is there any way to allow the use of `.load(function()` in version > 3.0 without using jQuery Migrate? Also, load... |
2018/03/15 | 621 | 2,262 | <issue_start>username_0: How do i replace multiple words with an empty string "" in a string with java. I tried with for loop to replace those in single quotes by adding then in an array like below, but it replaces one word per printout.
```
String str = "this house 'is' really 'big' and 'attractive'.";
String[] value... |
2018/03/15 | 498 | 1,881 | <issue_start>username_0: There is a text, it may be one line or multiple lines, I want set any style(e.g `background-color: red`) when one line and `background-color: black` when 2 lines.(note: both for the **whole** text rather than first/second/... line)
Is there any way to implement this?(don't use javascript)<issu... |
2018/03/15 | 2,543 | 9,049 | <issue_start>username_0: first of all sorry for English
So i already have "user - posts" one to many association, which means that each post can have just ONE author, and now i want to add "favorite posts" button to user profile, and "add to favorite" button to each post, so the question is how to implement this corre... |
2018/03/15 | 929 | 3,277 | <issue_start>username_0: I am currently receiving the following error -
"Version string portion was too short or too long"
When using this statement -
```
records = records.OrderBy(r => new Version(r.RefNo)).ToList();
```
To order a list of string's called RefNo. It fails on 25.1.2.1.2 so i assume it is because it... |
2018/03/15 | 709 | 2,566 | <issue_start>username_0: To make it really simple, let's say I've got an application with passwords stored somewhere (it doesn't matter where).
The php runs:
⋅ `$hash = password_hash($user_input, PASSWORD_DEFAULT);` when the user modifies the password, and then stores `$hash`,
⋅ `$Access = password_verify($user_... |
2018/03/15 | 809 | 3,323 | <issue_start>username_0: I have a kubernetes cluster that is running on AWS EC2 instances and weave as networking(cni). I have disabled the docker networking(ipmask and iptables) as it is managed by weave(to avoid network conflicts).
I have deployed my Jenkins on this cluster as K8s pod and this jenkins uses jenkins k... |
2018/03/15 | 878 | 3,049 | <issue_start>username_0: HTML File
```
```
JS file
```
var num1,num2,sum;
function add(){
num1 = document.getElementById('num1').value;
num2 = document.getElementById('num2').value;
sum = num1 + num2;
return document.getElementById('sum').value = sum;
}
```
Just started to code without the use of Udemy. I'm stu... |
2018/03/15 | 1,180 | 4,390 | <issue_start>username_0: I have bottom navigation bar with center item that looks like on this picture:
[](https://i.stack.imgur.com/BD50Xl.png)
How to implement such a thing in Flutter?
I found that every icon that I put into BottomNavigatonBarItem is fitted inside navigati... |
2018/03/15 | 1,536 | 5,561 | <issue_start>username_0: In the code below I made a small script that basically calculates the square root of a number inputted by the user. A pop up shows up and the user inputs his number he wants to work out the square root of. The script works fine as I tested it. My problem is that **a**, the value I want to displ... |
2018/03/15 | 1,448 | 3,458 | <issue_start>username_0: I have following 2 rows in a file:
`16.1 14.3 8.8 7.0 7.85 13.29 18.75 13.08 13.10`
`6.7 5.4 6.39`
I am able to split 1st row by using "\\s+" regex. But I cannot split 2nd row.
I want to split above strings in such a way that I will get following output:
```
row[1] = [16.1, 14.3, 8.8, 7.0,... |
2018/03/15 | 607 | 2,201 | <issue_start>username_0: I'm using Jest at [enter link description here](https://github.com/searchbox-io/Jest/tree/master/jest) in my spring boot application.
Then I created the client with the example code :
```
JestClientFactory factory = new JestClientFactory();
factory.setHttpClientConfig(new HttpClientConfig
... |
2018/03/15 | 798 | 2,587 | <issue_start>username_0: I am using SQLITE database in Android.
Create table query is:
```
String CREATE_TBookOrder = "CREATE TABLE IF NOT EXISTS BookOrder (" +
" `OrderId` INTEGER ," +
" `OrderDate` DATE ," +
" `OrderTotal` DOUBLE " +
")";
```
I am trying to fetch data between da... |
2018/03/15 | 592 | 1,855 | <issue_start>username_0: This runs:
```
template
struct u {z Z;};
template
class n;
template <>
class n<3>: public u
{
public:
const int N = 3;
n() : u({3}){}
};
```
But the repeated use of a magic number instead of template parameter is a risk of error.
This is unfortunately not possible:
```
template
clas... |
2018/03/15 | 1,116 | 4,256 | <issue_start>username_0: Architecture: I have a web application from where I'm interacting with the Datastore and a client (raspberry pi) which is calling methods from the web application using Google Cloud Endpoints.
I have to add that I'm not very familiar with web applications and I assume that something's wrong wi... |
2018/03/15 | 1,304 | 4,420 | <issue_start>username_0: I have an array of objects that each consists of a string, double and integer for each object in the array. I'd like to know how it is possible to sort this array by the first value (string) alphabetically.
I tried `Arrays.sort(data)` but I receive an error as I think it stops when it reaches ... |
2018/03/15 | 856 | 3,080 | <issue_start>username_0: I'm trying to make a set of components for repetitive use. The components I'm looking to create are various form fields like *text*, *checkbox* and so on.
I have all the data in *data* on my parent vue object, and want that to be the one truth also after the user changes values in those fields... |
2018/03/15 | 250 | 873 | <issue_start>username_0: Listing all the available environments is as simple as:
```none
$ conda env list
```
Now how does one list the currently installed kernels, without having to go to the path:
```none
$ ls /home/{{user}}/.local/share/jupyter/kernels/
```<issue_comment>username_1: With Jupyter installed you g... |
2018/03/15 | 1,940 | 7,663 | <issue_start>username_0: My view models are fundamentally flawed because those that use a driver will complete when an error is returned and resubscribing cannot be automated.
An example is my `PickerViewModel`, the interface of which is:
```
// MARK: Picker View Modelling
/**
Configures a picker view.
*/
public pr... |
2018/03/15 | 474 | 1,881 | <issue_start>username_0: I want to tie weights of the `embedding` layer and the `next_word` prediction layer of the decoder. The embedding dimension is set to 300 and the hidden size of the decoder is set to 600. Vocabulary size of the target language in NMT is 50000, so embedding weight dimension is `50000 x 300` and ... |
2018/03/15 | 576 | 2,047 | <issue_start>username_0: I have a Symfony 3.3 contact form that sends an email, and I want to allow optional uploads of a few attachments.
I am attempting to adapt <https://symfony.com/doc/3.3/form/form_collections.html> to fit my needs.
The relevant part of my formBuilder looks like this:
```
->add('attach... |
2018/03/15 | 931 | 2,836 | <issue_start>username_0: I encountered this issue, but I'm not sure what to make of it...
```
class Goo
{
char _ch;
string _str;
public:
function dobedo;
// Constructor 1
Goo(string s) : \_str(s)
{
cout << "Constructed: [" << &\_str << "]: " << \_str << endl;
dobedo = [&]()
{
cout << "Dobedo: [" <... |
2018/03/15 | 972 | 3,459 | <issue_start>username_0: I am trying to send a form along with an image. **Note**: I don't want to save the image in a database, I want to save it in a folder which I created on the server and just add a link of the image to the database.
From the server side I know how to handle this, but I don't know how to do this ... |
2018/03/15 | 1,588 | 4,832 | <issue_start>username_0: I have log4j2 jars under $CATALINA\_HOME/lib:
* log4j-api-2.10.0.jar
* log4j-core-2.10.0.jar
* log4j-jul-2.10.0.jar
export JAVA\_OPTS="${JAVA\_OPTS} -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"
In catalina.properties I've got common classloader and I tried to add log4... |
2018/03/15 | 570 | 2,057 | <issue_start>username_0: There are many [examples](https://kotlinlang.org/docs/reference/classes.html#constructors) how to use `init` during class construction, but they are mostly without using actual class properties.
What I need to do is init a class property from database on object init. So far I have this:
```
c... |
2018/03/15 | 1,550 | 5,270 | <issue_start>username_0: I'm trying to rearrange data in array to be in hash format but I pretty messed up using nested if
Sample Data
```
[
["England", "London", "University College London ", "Faculty of Law"],
["England", "London", "University College London ", "Faculty of Engineering"],
["England", "London... |
2018/03/15 | 418 | 1,550 | <issue_start>username_0: I have this line of code:
```
map (\(u,v) -> flatTorus n u v) gridUV
```
`Hlint` suggests me to replace it with
```
map (uncurry (flatTorus n)) gridUV
```
What is the motivation of this suggestion ? Is it for shortness only, or something else (performance) ? Because though it is longer,... |
2018/03/15 | 373 | 1,367 | <issue_start>username_0: I can deploy files through only hosting which works fine
but I try it with firebase functions it says :
```
Welcome
Firebase Hosting Setup Complete
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!
OPEN HOSTING DOCUMENTAT... |