date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/19 | 450 | 1,117 | <issue_start>username_0: I have a column in a dataframe that has datatype [timedelta64[ns]]. I'm trying to convert it to a float.
This is a sample table:
```
ColA
227 days 00:00:00.000000000
316 days 00:00:00.000000000
226 days 00:00:00.000000000
153 days 00:00:00.000000000
```
Below is my desired table with data... |
2018/03/19 | 562 | 1,552 | <issue_start>username_0: I am trying to create a simple quadratic equation (x^2 + px + q = 0) solver but the answer I get is always wrong. My code looks like this
```
double p, q;
Console.Write("Insert the value of p: ");
int p = int.Parse(Console.ReadLine());
Console.Write("Insert the value of q: ");
int q = int.P... |
2018/03/19 | 783 | 2,859 | <issue_start>username_0: So classmethods can be used as an alternative "constructor" in python, they are bound to the class and not to an instance, pretty clear so far. But my question is, if it is mandatory to have the same number of arguments in the returned instance of the class method as in the `__init__`. More exa... |
2018/03/19 | 430 | 1,455 | <issue_start>username_0: I've got a specific element I want to retrieve from an array, `{{page.myArray}}`.
I have the index of the element in a variable, `{{my-index}}`, but I can't just plug in `{{page.myArray.[my-index]}}` or `{{page.myArray.[{{my-index}}]`.
How do I go about doing this? I've tried out some things ... |
2018/03/19 | 1,258 | 5,007 | <issue_start>username_0: I'm wondering how and what is the best way to lock user account after X times failed logins? I have table where I keep track of users failed login attempts. Table stores time stamp, username, ip address and browser type. After I detect incorrect login information, cfquery will pull records from... |
2018/03/19 | 1,375 | 4,586 | <issue_start>username_0: I can't get a `TabBarIcon` to appear in my `TabNavigator.` I've read a bunch of posts from people with a similar issue, but their solutions don't work for me. I'd really just like to be able to have a PNG image component for each `TabBarIcon` but it just won't appear.
```
const Tabs = TabNavig... |
2018/03/19 | 424 | 1,019 | <issue_start>username_0: I need to split a sentence base on address patter. Below is a reproducible sample of the problem I'm facing.
```
s <- c("Junipero Sierra Room 9001 coals ave","patio room2200 virginia beach ave")
```
Currently, this is what I'm using
```
gsub(".*([A-z]{1,}[0-9]{2,6})|.*([A-z]{1,} [0-9]{2... |
2018/03/19 | 413 | 1,649 | <issue_start>username_0: how can i fix this warnings found
```
et=edittext
```
[](https://i.stack.imgur.com/AwqyY.jpg)
***the error that displays***
Custom view `EditText` has setOnTouchListener called on it but does not override performClick less... |
2018/03/19 | 2,090 | 7,397 | <issue_start>username_0: I'd like to know which event is nearer.
Now, the code that I've written relies on a comparison and it doesn't seem to work every time.
As always with everything that I try to do I'd like a solution which is both clean and efficient (feel free to criticize my code).
The events have a specifi... |
2018/03/19 | 366 | 838 | <issue_start>username_0: Why TypeScript has no problem with me doing this:
```
return {
Price: value.rawPrice === null ? null : value.rawPrice
}
```
but has issues with me doing this:
```
return {
Price: null
}
```
Where field `Price`is of type number<issue_comment>username_1: Use **undefined** instead of **nul... |
2018/03/19 | 1,215 | 4,197 | <issue_start>username_0: I'm new to Ransack and I've ran into what appears to be a case that isn't cleanly covered by Ransack. I'm basically trying to search a value but the searched value is wrapped in an array.
### CODE:
```
<%= f.search_field :category_or_account_number_or_status_or_account_number_or_account_name_... |
2018/03/19 | 893 | 3,032 | <issue_start>username_0: my output of error:
>
> Invalid configuration object. Webpack has been initialised using a
> configuration object that does not match the API schema.
> - configuration.module has an unknown property 'loaders'. These properties are valid: object { exprContextCritical?,
> exprContextRecursiv... |
2018/03/19 | 661 | 2,021 | <issue_start>username_0: ```
LinkedList ar[4];
for(int i=0;i<4;i++)
{
ar[i]=new LinkedList();
}
ar[0].add(99);
ar[1].add(60);
ar[0].add(66);
ar[0].add(61);
// how to remove 66 from List 0 index
ar[0].remove(66);
//but this above statement shows error
```<issue_comment>username_1: You should change `loaders` to `ru... |
2018/03/19 | 1,116 | 3,575 | <issue_start>username_0: I am struggling with indexing using Solrj.
I want to use SolrCloud and I set my connection like this :
```js
SolrClient client = new CloudSolrClient.Builder().withSolrUrl("http://localhost:8983/solr/collectioname").build();
```
And I have this error. I checked evruwhere before posting here... |
2018/03/19 | 2,367 | 7,998 | <issue_start>username_0: I am trying to tune some params and the search space is very large. I have 5 dimensions so far and it will probably increase to about 10. The issue is that I think I can get a significant speedup if I can figure out how to multi-process it, but I can't find any good ways to do it. I am using `h... |
2018/03/19 | 1,004 | 3,929 | <issue_start>username_0: Hello I am trying to split the results from a string into a dictionary so I can add the numbers together. This is information received from a texting api a client will text in an account + the amount they want to donate and multiple accounts are separated by commas ex th 20.00, bf 10.00 etc.
W... |
2018/03/19 | 685 | 2,216 | <issue_start>username_0: I'm looking to fill in this empty vector:
```
empty_vec <- rep("", times=length(number_vec))
```
with sequential numbers from this loop:
```
for (numbers in number_vec) {
sqrt <- sqrt(numbers)
empty_vec[numbers] <- sqrt
}
```
where `numbers_vec` is `c(16:49)`.
However, when I do ... |
2018/03/19 | 1,357 | 5,596 | <issue_start>username_0: First web scraping project!
I've been copying various web scraping code from here but can't get around a
>
> run time error 13: Type Mismatch
>
>
>
on the `.document.getElementById("")` line I'm using to set a variable for a hyperlink I want to click. I figured it should be treated like... |
2018/03/19 | 880 | 3,133 | <issue_start>username_0: In the following code I don't understand why the forked processes (the ten of them) print the same time. As far as I understand it, each process should wait a random amount of time (up to 15 seconds) and then print the time as of their end. Can someone explain why they print the same time?
```... |
2018/03/19 | 931 | 3,076 | <issue_start>username_0: I'm building a simple app with react native using among other things Expo. After an update of react, expo, react-native from a previous version, I get an error I cannot seem to get rid of (see picture). I have looked in index.js, MainNavigator.js, LoginNavigator.js to ensure that I have `import... |
2018/03/19 | 669 | 2,706 | <issue_start>username_0: I have created some code which reads through an array and saves data for each index into variables which I then pass onto to a created label.
Below is the code:
example of data arr content :
`["2,5","5,1"]` two indexes inside array
```
for i in 0..
```
how can I create it so that when the l... |
2018/03/19 | 755 | 2,656 | <issue_start>username_0: Is there a possibilty to one-hot encode characters of a text in Tensorflow or Keras?
* `tf.one_hot` seem to take only integers.
* `tf.keras.preprocessing.text.one_hot` seems to one-hot encode sentences
to words, but not to characters.
Beside that, `tf.keras.preprocessing.text.one_hot` works r... |
2018/03/19 | 790 | 2,532 | <issue_start>username_0: There are numerous ways to do this, but using Java 8 streams (likely IntStream), how can I produce a dummy string that is N characters long?
I've seen examples using IntStream.range(), and the various aggregator functions (sum, average), but I don't see a way to do this.
My first random guess... |
2018/03/19 | 1,511 | 5,312 | <issue_start>username_0: I have installed zookeeper and kafka,
first step :
running zookeeper by the following commands :
```
bin/zkServer.sh start
bin/zkCli.sh
```
second step :
running kafka server
```
bin/kafka-server-start.sh config/server.properties
```
kafka should run at localhost:9092
but I am getting th... |
2018/03/19 | 909 | 3,294 | <issue_start>username_0: I have defined `product_id` in the `class sale_order_line` as below:
```
class sale_order_line(osv.osv):
_inherit = 'sale.order.line'
def _get_product_ids(self):
return [('sale_ok', '=', True), ('state', 'in', ['sellable', 'custom']), ('id', '=', )]
_columns = {
... |
2018/03/19 | 1,274 | 4,541 | <issue_start>username_0: For hours I've been struggeling with getting an variable element of an enum.
The "[Swifticons](https://github.com/ranesr/SwiftIcons "SwiftIcons")" - pod provides me with the following enum:
```
public enum WeatherType: Int {
static var count: Int {
return weatherIcons.count
}
... |
2018/03/19 | 538 | 1,820 | <issue_start>username_0: I have the following filter:
```
const auxHash = {};
myArray.filter(house =>
house.members === 3 &&
auxHash[house.id] ? false : auxHash[house.id] = true
)
```
And I get a lint error saying that an arrow function should not return an assignment. I have tried this too:
```
const auxHash =... |
2018/03/19 | 849 | 3,314 | <issue_start>username_0: This seems like it should be a relatively easy thing, but I can't figure out why it is happening. I am trying to declare two values based on text input to use in further calculations, but every time the results are displayed it shows them as 0.
```
var valOne = document.getElementById("value1... |
2018/03/19 | 826 | 3,144 | <issue_start>username_0: **Steps to Reproduce**
1. Android SDK, Git already installed. Flutter git was cloned successfully.
2. Running `flutter doctor` in PowerShell
**Logs**
```
C:\flutter>flutter doctor
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ead227f...
Start-BitsTransfer : flutter do... |
2018/03/19 | 693 | 2,257 | <issue_start>username_0: I need to add a 'null' default value to a logicalType: 'date' in my Avro schema. The current definition I have is like this:
```
{
"type": "record",
"namespace": "my.model.package",
"name": "Person",
"version": "1",
"fields": [
{"name":"birthday","type": { "type": "int", "logicalType"... |
2018/03/19 | 925 | 2,664 | <issue_start>username_0: I have react native project that I worked on my laptop. when I transfer the project to my pc and run yarn install (I installed the some modules using yarn and some using npm) I get
>
> An unexpected error occurred: "<https://registry.yarnpkg.com/jest/-/jest-23.0.0-alpha.0.tgz>: Request failed... |
2018/03/19 | 2,008 | 7,248 | <issue_start>username_0: Since they have supposedly integrated most of the Power Tools functionality into VS2017, the new command "tf unshelve" does not work the same as the old command "tfpt unshelve" to move shelvesets to another branch, as you cannot add a source and a target using the new command. I really don't wa... |
2018/03/19 | 1,008 | 3,582 | <issue_start>username_0: I want to pass some values to frontend in form of context variables in IBM Watson through my Node app. How can I achieve it?
I tried to add the value I want to add to current context variable object and sent that back. Still no help. Is there any way I can do it?
---
**Edit:**
Right now, I ... |
2018/03/19 | 2,242 | 8,570 | <issue_start>username_0: I have a sentence "**You could say that they regularly catch a shower , which adds to their exhilaration and joie de vivre.**" and I can't achieve to get the NLP parse tree like the following example:
```
(ROOT (S (NP (PRP You)) (VP (MD could) (VP (VB say) (SBAR (IN that) (S (NP (PRP they)) (A... |
2018/03/19 | 450 | 1,657 | <issue_start>username_0: There are several modules that are connected to app.js, for example the code that is inside:
```
var test = "TEST";
```
Here is my webpack.config:
```
module.exports = {
entry: './src/app.js',
output: {
filename: './dist/bundle.js'
}
};
```
The problem is that when I ... |
2018/03/19 | 682 | 2,825 | <issue_start>username_0: I have a Lookup transformation that does not seem to be finding obvious matches. I have an input file that has 43 records that includes the same CustomerID which is set as an 8 byte-Signed Integer. I am using the Lookup to see if the CustomerID already exist in my destination table. In the dest... |
2018/03/19 | 1,006 | 3,796 | <issue_start>username_0: I have a tab in excel that has about 50 columns. I export this tab as a .CSV file and upload it into a database. I am currently using this VBA code to export the .CSV file:
```
Sub ExportAsCSV()
Dim MyFileName As String
Dim CurrentWB As Workbook, TempWB As Workbook
Set CurrentWB = Activ... |
2018/03/19 | 755 | 2,834 | <issue_start>username_0: ```
public class experiment3 {
private static void mystery(String foo, String bar, String zazz) {
System.out.println(zazz + " and " + foo + " like " + bar);
}
public static void main(String[] args) {
String foo = "peanuts";
String bar = "foo";
mystery... |
2018/03/19 | 923 | 3,387 | <issue_start>username_0: Every result i've found online has either been really old, specific to either Python 2.7 or 3.x, or is complicated enough that I can't understand it. My use case is very simple, but i'm having a hard time finding a simple solution. My existing code looks like this:
```
return_val = func_that_m... |
2018/03/19 | 1,193 | 2,724 | <issue_start>username_0: We all know that since Java 1.8 PermGen was removed and replaced by Metaspace.
I have read a lot of topics about Metaspace and I am completely sure that it's exists, but today I was asked about the reference to Oracle JVM specification where is said about metaspace but using search for all the... |
2018/03/19 | 2,516 | 9,587 | <issue_start>username_0: I am running into a `globalKey` error after I navigate from `Screen A` to `Screen B` and click a "Cancel" button to go back to `Screen A`.
It seems like the issue is that `Screen B` is either
* A) Not being disposed of correctly
* B) Is not doing something that it otherwise could
And I don'... |
2018/03/19 | 554 | 2,149 | <issue_start>username_0: I am exploring `vscode` after using `atom` for a long while. One of the things I'm missing is an equivalent of the lovely package [`advanced-open-file`](https://atom.io/packages/advanced-open-file). Is there something similar to this in vscode?
I found the [`advanced-new-file`](https://marketp... |
2018/03/19 | 692 | 2,497 | <issue_start>username_0: I am trying to create a simple javascript library to learn something new. I am trying to use es6 and webpack. Everything is working fine but I am stuck at one point, when I try to use it as standalone, I mean when I add to my HTML page and try to access `MyLibrary` variable. It gives me Refere... |
2018/03/19 | 903 | 3,162 | <issue_start>username_0: I just get a website to give some updates but I've been out of CSS coding for some years and still adapting to the new concepts.
The idea is to give some extra parameters where the actual responsivity is not working well. So what I'm trying to do objectively is to centralize the logo and resiz... |
2018/03/19 | 470 | 1,669 | <issue_start>username_0: In react I have a code like this:
```
var myButtons=[];
/*Products is an array of objects where each object identify a product*/
for (var p of Products) {
var button =
p.name
myButtons.push(button)
}
```
I will use this react array of buttons on a render command. The problem... |
2018/03/19 | 451 | 1,843 | <issue_start>username_0: I have 2 parameters (Detail, Summary) that I have created in a Crystal Report. The report is called from c# in a Windows Forms application. I am trying to pass the appropriate value to each parameter at runtime so the report can make some decisions based on the values. I have read many articles... |
2018/03/19 | 288 | 932 | <issue_start>username_0: I'm trying to create a razor page to create some users programmatically. I'm doing something wrong at this point (obviously).
Inside of my pagemodel, I have the following:
```
[Required]
[Display(Name = "<NAME>")]
public string FirstName { get; set; }
```
In my cshtml, I have:
```
| | ... |
2018/03/19 | 240 | 888 | <issue_start>username_0: **So I have a question about XSL:**
I have a bunch of elements that contain a child element that gets renamed and moved with a certain update. I am trying to handle that transformation. The example below will give a better idea.
**Before:**
```
name
20
route
```
**After:**
```
r... |
2018/03/19 | 434 | 1,468 | <issue_start>username_0: Initially Android Studio shows 'can not resolve ...' but after I clean and rebuild the project it can not resolve `R`.
[](https://i.stack.imgur.com/0Bsa1.png)
[ ... |
2018/03/19 | 3,062 | 8,100 | <issue_start>username_0: I have data table with hierarchy data model with tree structures.
For example:
Here is a sample data row:
```
-------------------------------------------
Id | name |parentId | path | depth
-------------------------------------------
55 | Canada | null | null | 0
77 | Ontar... |
2018/03/19 | 1,479 | 4,946 | <issue_start>username_0: I followed the Relay tutorial for getting started after doing the create-react-app to get a new react up and running. I ran it both in TypeScript mode (from here: <https://github.com/Microsoft/TypeScript-React-Starter>) and also in the normal JavaScript mode and came to the same result initiall... |
2018/03/19 | 766 | 2,668 | <issue_start>username_0: I am new to php and trying just to append these two variables that I'm getting from a form on another page to a csv file.
```
php
$email = $_POST['Email_Address'];
$full_name = $_POST['Full_Name'];
$entry = $full_name;
$entry .= ",";
$entry .= $email;
$file = fopen("contacts.csv","w");
fputc... |
2018/03/19 | 698 | 2,327 | <issue_start>username_0: **Current code:**
```
import pyodbc
connection = pyodbc.connect('DRIVER={ODBC Driver 13 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password)
if connection:
print("Yes we connected\n")
cur = connection.cursor()
cur.execute(SELECT cost1 FROM tbl... |
2018/03/19 | 728 | 2,416 | <issue_start>username_0: In our company use Centura from 1999, I'm newbie in this, but there not so lot information on web, can somebody help me with good manuals? I find this language looks like Ada.<issue_comment>username_1: Good stuff. Moved on a lot since 1999.
SQLWindows is now 64bit ( version 7 onwards ) , UNIC... |
2018/03/19 | 446 | 1,573 | <issue_start>username_0: Given a finite number of sorted infinite streams. How to merge those stream into a single sorted infinite stream? e.g.
```
def merge[T](ss: List[Stream[T]]): Stream[T]
```<issue_comment>username_1: You could do something like this
```
def merge[T: Ordering](ss: List[Stream[T]]): Stream[T] = ... |
2018/03/19 | 560 | 1,874 | <issue_start>username_0: I'm new to JQuery, I'm try to implement basic jquery code but it's not working. Please help.
```js
$(document).ready(function() {
manipulateDOM();
});
function manipulateDOM() {
var h1Headers = $('h1');
var h3Headers = $('h3');
}
h1Headers.text('Hello World');
h3Headers.first()... |
2018/03/19 | 1,125 | 3,684 | <issue_start>username_0: I am writing a Vue.js app with Bootstrap 4 and I can't loaded though I followed the documentation.
Added to main.js
`Vue.use(BootstrapVue);`
Added to css file related to App.vue:
```
@import '../../node_modules/bootstrap/dist/css/bootstrap.css';
@import '../../node_modules/bootstrap-vue/dis... |
2018/03/19 | 385 | 1,577 | <issue_start>username_0: I am experimenting with the ARCore SDK inside Unity to make an Augmented Reality app. As a start I ran the HelloAR Demo app where the ground is detected and onto which you can place multiple Andy's when tapping on the screen. I notice the Andy's are placed on top of the plane, as it should.
No... |
2018/03/19 | 3,675 | 13,793 | <issue_start>username_0: I have a spreadsheet that I've been working on for over a month to sort and optimize coordinates (sometimes exceeding 100,000 rows) and it is *UNBEARABLY* slow once I start importing files over 5,000 rows (it has taken several hours to complete the calculations and sorting process on data sets ... |
2018/03/19 | 792 | 3,188 | <issue_start>username_0: I am in the process of finishing up a Windows 10 IOT Core app to be deployed on Raspberry Pi 3 devices for a single location beta test. The app is consumer facing and reads from a sensor so I am sure there are going to be at least 1 or 2 updates per week as we perfect the app. Everything I am r... |
2018/03/19 | 365 | 1,240 | <issue_start>username_0: I have a subproject which is built into a jar file. There is `src/main/resources/db/migration/V1_1__create_table.sql` in the project.
How to run migrate from this jar?
I tried this `./flyway migrate -url=jdbc:postgresql://127.0.0.1:5432/myproject -user=myproject -password=<PASSWORD> -location... |
2018/03/19 | 331 | 1,365 | <issue_start>username_0: I'm building a Spring Boot project with Gradle migrating it from Maven. I wonder what Gradle task is doing the same thing as the `package` phase in Maven.
Thank you!<issue_comment>username_1: You can use `gradle assemble` or `gradle build`.
Upvotes: 2 <issue_comment>username_2: Maven build is ... |
2018/03/19 | 432 | 1,526 | <issue_start>username_0: We have an angular 5 project which has a problem with size. On load of the app, when there isn't much of anything, we have 95MB in memory.
I'm trying to analyze it and use `webpack-bundle-analyzer`.
I've read that adding `new webpack.optimize.ModuleConcatenationPlugin()` into `webpack.config` ... |
2018/03/19 | 857 | 2,614 | <issue_start>username_0: How to iterate over 2 loops in a List using Java Stream.
```
public class ArrayStreams {
public static void main(String[] args) {
List list = new ArrayList<>();
list.add(1);
list.add(3);
list.add(5);
list.add(7);
list.add(2);
for (int i = 0; i < list.size(); i++) {
for (int ... |
2018/03/19 | 808 | 2,862 | <issue_start>username_0: Well, I have objects in array named **data**:
```
[
{
title: 'Title',
broadcast: true
},
{
title: 'Title',
broadcast: false
}
]
```
On one page I want to show only ones with `broadcast: true` and I want to use a mixin call for that.
My mixin:
```
mixin techs(condition)
- var dat... |
2018/03/19 | 559 | 1,738 | <issue_start>username_0: I have following query that returns the results that i am looking for except for fact i am not able to get group by to work:
```
select EXTRACT(month from datetime_insert) m,
EXTRACT(year from datetime_insert) y
from tst_result_main
order by datetime_insert
```
This returns foll... |
2018/03/19 | 496 | 1,588 | <issue_start>username_0: Fiddle: <https://jsfiddle.net/uafaLstf/1/>
I have the following:
```
$(".span1").html("Warm Welcome To: " + "
");
arr = [];
arr.push(["john", "jdoe", "very nice"]);
arr.push(["mike", "mdone", "job well"]);
arr.push(["haan", "hgore", "creative"]);
var interval = 1000;
for (var f = 0; f < a... |
2018/03/19 | 438 | 1,364 | <issue_start>username_0: ```
^\$?(\d{1,3},?(\d{3},?)*\d{3}(\.\d{0,2})?|\d{1,3}(\.\d{0,2})?|\.\d{1,2}?)$
```
I actually found this to help me to validate the amount of $. The problem is that I want to have a limited amount to validate between 0$ and 99.99$. also amounts like 01.20 and 10.1 are not acceptable but 1.20$... |
2018/03/19 | 1,031 | 3,785 | <issue_start>username_0: I'm unable to correctly define a generic method when using covariance on a generic class, if this is at all possible the way I intend to. I'll best explain the issue at hand by example.
Say we have the following setup of interfaces for cars
```
interface Car { ... }
interface SportsCar extend... |
2018/03/19 | 818 | 3,299 | <issue_start>username_0: I am trying to run php artisan migrate to create my mysql tables usin laravel.
I got this error:
Foreign key constraint is incorrectly formed
Users Table:
```
Schema::create('users', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
... |
2018/03/19 | 8,169 | 29,125 | <issue_start>username_0: I have a `pandas.Series` containing integers, but I need to convert these to strings for some downstream tools. So suppose I had a `Series` object:
```
import numpy as np
import pandas as pd
x = pd.Series(np.random.randint(0, 100, 1000000))
```
On StackOverflow and other websites, I've seen... |
2018/03/19 | 1,813 | 3,241 | <issue_start>username_0: I have a list, which looks like this:
```
['3.2323943e+00, 4.4316312e+00, 4.3174178e+00, 3.8661688e+00,
3.6366895e+00, 3.4324592e+00, 3.3091351e+00, 3.1746527e+00,
1.0588169e+00, 4.4036068e+00, 4.4692073e+00, 4.3857228e+00,
4.2660739e+00, 4.1388672e+00, 4.0061081... |
2018/03/19 | 376 | 1,353 | <issue_start>username_0: I am wanting to obtain a div value using a `data-attribute`. In this case specifically, `data-pdf`. As you can see within my example, after I click on either option, the value comes up undefined.
What am I doing wrong? Also, will the value change based on which heading I click on? I only want... |
2018/03/19 | 770 | 2,751 | <issue_start>username_0: I'm working on a website, and I was tired of copy/pasting headers and footers to each page, because when you than need to change one letter, you have to change it on all pages using that header/footer. So I 'copied' a function I learnt from Laravel, partials.
I write the HTML of the header in ... |
2018/03/19 | 1,283 | 4,078 | <issue_start>username_0: I'm trying to pass a parameter which is a list of values:
```
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--cb_ticks', required=False, default='')
args = vars(parser.parse_args())
print(args['cb_ticks'])
```
For most cases, this code works as expecte... |
2018/03/19 | 1,217 | 3,975 | <issue_start>username_0: I have defined some necessary fields that are indicated by a required (\*) label with an text input next to it. When I submit, I want to make sure that all of these required labels' text inputs are not empty after the button submit.
This is what I have for HTML (<https://jsfiddle.net/mmsawjwr/... |
2018/03/19 | 259 | 924 | <issue_start>username_0: How do I add a conditional to a single stored procedure to either return one item or to join a tvp to return many items?
So I want to be able to do
```
Select *
From table
where id = @id
```
or
```
Select t.*
From table t
join tvp tvp on t.id = tvp.id
```
Would it be terrible to pass in ... |
2018/03/19 | 500 | 1,720 | <issue_start>username_0: As you can tell by this question I'm still learning SASS and Bootstrap 4. With BS4 I've had to setup some .scss partial files and then import them into my site.scss file. In order to make changes to Bootstrap I made changes in my \_my-theme.scss file. My question is when I want to make simple C... |
2018/03/19 | 456 | 1,613 | <issue_start>username_0: I tried everywhere but not found a solution for my question, so I came here to ask from you guys and hope to get a solution.
I have a MDI and few child forms where on MDI form I have a sidepanel control and it has few buttons control and I what to change button image of these button dynamicall... |
2018/03/19 | 543 | 1,719 | <issue_start>username_0: I am using Wordpress and i try to change the background of this website: <http://evolum.org> (the grey) and i want to put this one: <https://greatives.eu/themes/movedo/> (behind the movedo word)
I am trying to put this on the Wordpress additional CSS editor:
```
element.style {
background: l... |
2018/03/19 | 449 | 1,595 | <issue_start>username_0: I have noticed that on android versions 6.0+,when someone starting app after login screen and submiting info,black screen appear and you have to wait 3-15 sec depending on devices.
I heard that it could be for heavy loadings,but this app is nothing special it just load listview with few images... |
2018/03/19 | 571 | 1,821 | <issue_start>username_0: I'm trying to get data at monthly level.
```
SELECT
c.Calendar_Month_Name, COUNT(*)
FROM
db1 AS c
INNER JOIN
(SELECT DISTINCT
a.tel_num, b.postpaid_tel_num
FROM
db2 AS a
INNER JOIN db3 AS b ON a.tel_num = b.tel_num
WHERE
a.hs_manufacturer... |
2018/03/19 | 463 | 1,811 | <issue_start>username_0: How to define post build actions for Jenkins multi pipeline project?
There is a separate option available when you have a simple project but not for multipipeline.
[](https://i.stack.imgur.com/YUdfE.png)<issue_comment>userna... |
2018/03/19 | 1,013 | 2,925 | <issue_start>username_0: I would like to utilize postman to test a REST API that requires one of the input fields to be encrypted with RSA encryption.
I see that postman provides the functionality through `require('crypto-js')` to encrypt using AES encryption, but I that library does not provide RSA encryption. How c... |
2018/03/19 | 799 | 2,612 | <issue_start>username_0: I follow this documentation to set up sessions in my Spring Boot application: <https://docs.spring.io/spring-session/docs/current/reference/html5/guides/boot-redis.html>
application.properties
```
spring.session.store-type=redis
server.session.timeout=10
```
After sending in a request, I se... |
2018/03/19 | 654 | 2,163 | <issue_start>username_0: I am trying to count of classes to start each month.
```
select
to_char(START_DATE_TIME,'MON'),
count(START_DATE_TIME)
from
SECTION
having
count(START_DATE_TIME) > 1
group by
START_DATE_TIME
```
**It give me this output**
```
MAY 4
APR 3
MAY 2
JUN 2
APR 2
JUL 7
JUL 7
JUN 3... |
2018/03/19 | 603 | 2,251 | <issue_start>username_0: I have following query and I need unique value for column
```
Select unique(t.id), log.*
from tableA log
inner join tableT t on t.id1=log.id1
where log.time>=(somedate)
and log.time<(somedate)
and ref-id=20
and ref-id=30
and t.id not in (select unique t.id
from table... |
2018/03/19 | 788 | 2,685 | <issue_start>username_0: I am having a problem with calling a default method from an interface. Here is my code:
Interface:
```
public interface Pozdrav {
public static void stat(){
System.out.println("Ja sam staticni metod");
}
default void osn(){
System.out.println("Ja sam osnovni meto... |
2018/03/19 | 937 | 3,471 | <issue_start>username_0: I have a simple controller method:
```
products = Product.where(name: name, color: color, size: size, available: true)
```
Which returns a Product::ActiveRecord\_Relation object. I want to take the first object and pull out a field e.g. `products.first.product_code`
But this and some other... |
2018/03/19 | 539 | 1,916 | <issue_start>username_0: In my Laravel model controller I have this:
public function guestInfo($id)
```
{
$guests = Person::where('id', $id)
->with('languages')
->get();
return view('layouts.visitor', ['guests' => $guests]);
}
```
in my blade file I have this:
```
@fore... |
2018/03/19 | 221 | 854 | <issue_start>username_0: I have been looking for a multi-core optimizer for Python thats equivalent to DEopt.
Been messing around with <https://github.com/hyperopt/hyperopt> but mutli-core support is very lacking.
Does anyone know of any good alternatives that support using multiple cores?<issue_comment>username_1:... |
2018/03/19 | 534 | 1,458 | <issue_start>username_0: Given a data frame:
```
id day value
01 4 abc
01 3 abc
01 2 y
01 1 y
02 3 abc
02 2 x
02 1 x
03 4 abc
03 3 abc
03 2 abc
03 1 z
```
I want to remove rows with "abc" as duplicate and keep last. The result would be:
```
id day value
01 3 abc
... |
2018/03/19 | 556 | 1,642 | <issue_start>username_0: I am trying to convert multiple rows of CSV file to single row stored in a variable. That will be used later as a part of json for rest API.
My csv file looks like:
```
Key Value
Key1 Value1
Key2 Value2
Key3 Value3
```
I need an output string like:
```
Json= "key1":"Value1","key2... |
2018/03/19 | 638 | 1,923 | <issue_start>username_0: I have a 40 digit hex number stored in a string, I have to store it inside a struct called Int40 that only contains a pointer to an int.
```
typedef struct Int40
{
// a dynamically allocated array to hold a 40
// digit integer, stored in reverse order
int *digi... |
2018/03/19 | 619 | 2,465 | <issue_start>username_0: I am a new employee at the company. The person before me had built some tables in BigQuery. I want to investigate the create table query for that particular table.
Things I would want to check using the query is:
1. What joins were used?
2. What are the other tables used to make the table in... |
2018/03/19 | 801 | 2,843 | <issue_start>username_0: I am having trouble solving a problem, in Scheme, that sums all elements in a list, in which all elements themselves are lists.
I wrote a function `(polyAdd l1 l2)` which takes two lists and sums them together.
for example, `(polyAdd '(1 2) '(3 4 5))` will give `(4 6 5)`.
the code is here:
... |
2018/03/19 | 692 | 2,398 | <issue_start>username_0: **Blade**
```
```
**app.js code**
```
const app = new Vue({
el: '#app',
data: {
domain_Name: document.body.querySelector("div[id='Domain_Name']").innerHTML
}
});
```
**Component Code**
```
export default {
props: ['domain\_Name'],
methods: {
ValidateUser() {
de... |
2018/03/19 | 645 | 2,288 | <issue_start>username_0: I have filter attribute in ASP.NET core 2.0, See my code snippet below. Here the problem is I always get the status code is 200.
Even the actual status code is 500 then also I get a 200. How do I get the actual status code?
```
public void OnActionExecuted(ActionExecutedContext context)
{
... |
2018/03/19 | 1,189 | 4,198 | <issue_start>username_0: My view has some simple code:
```
HERE{{ files.length }}THERE
#### Selected Files
##### (X)
| File Name | File Size | Upload Status | Remove All |
| --- | --- | --- | --- |
| {{ file.relativePath }} | {{file.size}} | | |
```
My component is:
```
import {
Component,
OnInit
} fro... |