date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/28 | 490 | 1,581 | <issue_start>username_0: Im usin cURL to crabb some data from webpage.
But as the data is array based, but the size changes and varies.
Then i need to search for parts of string and want to get everyhting after the
part til next comma.
```
{"id":2988001,"teatiseNr":"50000099027","mkood":74,
```
Now here is the str... |
2018/02/28 | 476 | 1,744 | <issue_start>username_0: I have an **input** and a **checkbox**, when the input is focused it display some information under it.
The problem is : when those information are displayed if I click on the checkbox it hides the information (because my input is not focused anymore) but the checkbox is not checked.
Here is ... |
2018/02/28 | 738 | 2,499 | <issue_start>username_0: What can cause this error for class `DrawableWrapper` from the support lib?
```
Caused by: java.lang.ClassNotFoundException: Didn't find class
"android.support.v4.graphics.drawable.DrawableWrapper" on path:
DexPathList[[zip file "/data/app/com.example.banyan.tasty-
1/base.apk"],nativeLibrary... |
2018/02/28 | 762 | 2,498 | <issue_start>username_0: I want to determine if one list has items contained in another list. If that's the case, I want to print the index of such items:
```
List1 = [10, 20, 30]
List2 = [10, 50, 80, 90, 20, 30, 40, 50]
```
For example, I want to find `10` in `List1` which is present in `List2`, and print index `0`... |
2018/02/28 | 539 | 2,249 | <issue_start>username_0: I am trying to understand namespaces in C++. I read that there are two ways of accessing namespace variables and functions. First one is to write using `::` and second one is by using `using` directive at the top and not writing it again and again. I realized that the first method is better as ... |
2018/02/28 | 495 | 1,993 | <issue_start>username_0: I am also facing the same issue with Sonar-Gerrit jenkins plugin. Downloaded it from Jenkins plugins site.Using Sonar-Gerrit plugin 2.2.1, and analysing sonar scan against jenkins workspace.
For a sample,have changed just one file and provided the project base directory to the path of that fil... |
2018/02/28 | 634 | 2,031 | <issue_start>username_0: Given the collection "example":
```
{_id: 1, prediction: "H", result: "A"}
{_id: 2, prediction: "H", result: "H"}
{_id: 3, prediction: "A", result: "A"}
```
What do I need to do to find records where the prediction and result values match? ie. documents 2 and 3?
Finding all the "H" predicti... |
2018/02/28 | 502 | 1,638 | <issue_start>username_0: I receive a date as string in this format "27/02/2018 09:00" How can I pass this to milliseconds? Thanks in advance<issue_comment>username_1: You can use agregation
```
db.example.aggregate(
[
{
$project:
{
_id: 1,
p... |
2018/02/28 | 487 | 1,276 | <issue_start>username_0: Sorry, I couldn't think of a better title. I have the following input data in a single column:
```
FPC 0
MIC 0
MIC 1
FPC 1
MIC 0
MIC 1
FPC 5
MIC 0
MIC 1
MIC 2
```
And I want the output to be this way:
```
FPC 0
FPC 0 MIC 0
FPC 0 MIC 1
FPC 1
FPC 1 MIC 0
FPC 1 MIC 1
FPC 5
FPC 5 MIC 0
FPC 5 MI... |
2018/02/28 | 2,799 | 9,203 | <issue_start>username_0: I try to run a `WAR` to my `Tomcat 9.0.5` The deploy is going fine, but when i try to start the application i got this exception:
```
28-Feb-2018 10:17:33.328 SEVERE [http-nio-8080-exec-8] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:
org.apache.catal... |
2018/02/28 | 1,407 | 4,220 | <issue_start>username_0: I've got a PHP/HTML application in which the user selects the background color they want. It is saved in an ini file and it's used when the page is reloaded.
Now, users would like to do the same thing with the "hovered" color of the many different user actions elements. I have already added th... |
2018/02/28 | 1,116 | 3,630 | <issue_start>username_0: I need to transform an array from `{4, 2 ,5}` to `{4, 2, 5, 4, 2, 5}`. Here's my output: `{4, 2, 5, 3.21143e-322, 0, 2}`, which is obviously incorrect. But I cannot seem to figure out the issue in my logic. Perhaps another perspective can find that issue.
---
This is my code:
```
void repeat... |
2018/02/28 | 479 | 1,483 | <issue_start>username_0: I'm having a problem with my code here:
```
f=open("Test.txt","r")
print(f)
```
The word in Test.txt is "false",I want to print "false"in my program but it shows:
```
<_io.TextIOWrapper name='Test.txt' mode='r' encoding='cp950'>
```
Did I miss something?<issue_comment>username_1: [`open`]... |
2018/02/28 | 2,475 | 9,427 | <issue_start>username_0: My DB is MS-SQL with EF 6.0 using Data-First approach.
I'm syncing with hundreds of databases (tables scheme is **almost** the same on all of them), dynamically changing the connection string when required.
My issue is that some databases have a slightly different scheme than others.
on all of... |
2018/02/28 | 1,673 | 5,699 | <issue_start>username_0: MY view receives a model formset from the template, but it doesn't pass validation, claiming that ID is required. Al my use of forms until now has never brought up this problem, and I've never had to pass ID's around.
Here is a simplified version of my view:
```
def BudgetView(request):
... |
2018/02/28 | 600 | 2,080 | <issue_start>username_0: While i am converting EDI 837I to XML format file using BizTalk server 2013 i am getting the below error
```
An output message of the component "Unknown " in receive pipeline "Microsoft.BizTalk.Edi.DefaultPipelines.EdiReceive, Microsoft.BizTalk.Edi.EdiPipelines, Version=3.0.1.0, Culture=neutr... |
2018/02/28 | 325 | 1,153 | <issue_start>username_0: I need to transform an xlsx file to CSV in AIX. The server doesn't have any command for that and I am not allowed to install anything on it. Also, no Python/Perl library for reading Spreadsheets are installed on the server.
Is there still any work around for doing this?
P.S.: it has to work w... |
2018/02/28 | 570 | 1,550 | <issue_start>username_0: I have a NxNx5 array T that I would like to convert into a Rx5 array TT such that the following condition is satisfied (where R is the number of non-zero entries of the array T(:,:,1)):
If T(i,j,1) == 0 then we ignore. If T(i,j,1) != 0 then I would like a row of TT whose entry is
```
[T(i,j,1... |
2018/02/28 | 486 | 1,842 | <issue_start>username_0: So I know this question is kind of vague, but I have done a ton of research and this is kind of my only option left.
For a course in my bachelor's degree, we're working with cordova. The entire grade is to make an app, using at least one API and plugin. I want to make an app that displays info... |
2018/02/28 | 1,013 | 3,984 | <issue_start>username_0: I have an app widget displaying timers. Timers can be started, stopped or resumed.
On Android 8 timers don't tick sometimes (50/50). Some users complained about the issue on Android 7 but I'm not absolutely sure if it's the same issue. Everything works well on Nexus 5 with Android 6 installed... |
2018/02/28 | 321 | 1,028 | <issue_start>username_0: I'm very new to code so I might not understand some answers.
I'm having trouble turning a variable into a random number between 1 and 10 in this code.
```
var money = 0
function Random() {
money = Math.floor((Math.random() \* 10) + 1);
}
```
I've read that I need to put `return` followed ... |
2018/02/28 | 918 | 3,138 | <issue_start>username_0: I'm struggling to get this transformation. Given an anchor Pose in arcore how can I obtain its corresponding 2D coordinates in the screen?<issue_comment>username_1: Finally, after some days of investigation and getting the information from different resources I was able to get this working. Fol... |
2018/02/28 | 442 | 1,506 | <issue_start>username_0: I'm using [bootstrap-switch](https://github.com/Bttstrp/bootstrap-switch) with bootstrap v3.
I want to use an icon for the text to display on the switch.
If i use font awesome icons like this it works.
[using font awesome](https://i.stack.imgur.com/pNljQ.png)
[using font awesome](https://i.st... |
2018/02/28 | 771 | 3,042 | <issue_start>username_0: I am working on a scenario where i have to retrieve a list of objects from springboot using rest calls and populate them into the UI using angular 5.
my component looks like this,
```
export class BusinessComponent implements OnInit {
serviceSavings:Services[] = [];
constructor(private ... |
2018/02/28 | 1,046 | 4,095 | <issue_start>username_0: I have properties file which contains key:value list such as follow:
```
key1 : value1
key2 : value2
```
how can I read and write this file with Properties class? It's possible or not?<issue_comment>username_1: Yes. Have you considered trying it? or consulting the [documentation](https://doc... |
2018/02/28 | 330 | 1,308 | <issue_start>username_0: I have a method that accepts a string and tries to cast it to a class using `Class.forName()`. I want to check before I call this method that if the string represents a primitive type. Is there any way to do this other than running 8 `String.equals` calls? Code:
```
public String myMethod(Stri... |
2018/02/28 | 411 | 1,586 | <issue_start>username_0: [SOLVED]
```
class articleViewSet(viewsets.ModelViewSet):
queryset = article.objects.all()
serializer_class = articleSerializer
def list(self, request):
queryset = self.get_queryset()
serializer = articleSerializer(queryset, many=True)
return Response(seria... |
2018/02/28 | 315 | 1,170 | <issue_start>username_0: I have a requirement on a report that requires me to replicate a certain page based on a certain data. For example Process page = 5 so therefore the page on which it has the process must be replicated 5 times. Is this possible programmatically on SSRS?
Thanks<issue_comment>username_1: As @Filb... |
2018/02/28 | 707 | 2,732 | <issue_start>username_0: **Motivation:**
In our Android project we have many verifications like `str != null && !str.isEmpty()`, so I decided to refactor them to a helper method.
For a moment I use following class as a helper:
```
public class StringUtil {
public static boolean isNullOrEmpty(@Nullable String str)... |
2018/02/28 | 2,438 | 6,321 | <issue_start>username_0: I have to compare a matrix entry-wisely with a number, so I try to define a Cxx function such as
```
src <- '
LogicalMatrix f(NumericMatrix fmat, double t){
LogicalMatrix result = fmat >= t;
return result;
}
'
cppFunction(src)
```
But some exceptions are thrown out. What is the reason? S... |
2018/02/28 | 791 | 2,973 | <issue_start>username_0: I am trying to use spark structured streaming in update output mode write to a file. I found [this StructuredSessionization example](https://github.com/apache/spark/blob/v2.2.1/examples/src/main/scala/org/apache/spark/examples/sql/streaming/StructuredSessionization.scala) and it works fine as l... |
2018/02/28 | 367 | 1,368 | <issue_start>username_0: I created SQL database on Azure. I tried to clear cache from SQL Server Management
using:
>
> DBCC FREEPROCCACHE, DBCC FREESYSTEMCACHE ('dbo')
>
>
>
Unfortunately I am not successfull.
I get the error
>
> User 'dbo' does not have permission to run DBCC freesystemcache.
>
>
>
How i... |
2018/02/28 | 557 | 1,651 | <issue_start>username_0: I am using the code below which show empty subcategories also which don't have any post in it and I want to hide these. Let me if it is possible and if yes then how
```
php
$term = get_queried_object();
$term_id = $term-term_id;
$taxonomy_name = $term->taxonomy;
$termchildren ... |
2018/02/28 | 610 | 1,704 | <issue_start>username_0: I am using the following query:
```
select a,b,c,d from Table1 where a in ('');
```
The query gives me output as follows:
```
a b c d
1 A 1e@c i-1
2 B #3ht i-2
3 A 1e@c Null
4 C 1e@c
```
Now I want to apply **IF condition** for those records whe... |
2018/02/28 | 1,334 | 3,934 | <issue_start>username_0: I am trying to convert this response to object so that i can use access them using object in c# mvc application.
Following is the code i did:
```
var response = await client.GetAsync("ApiTest?Amount=" + Amount.ToString() + "&WalletAddress=" + WalletAddress.ToString() + "&TokenCode=" + TokenT... |
2018/02/28 | 750 | 2,590 | <issue_start>username_0: I have several line of text in my paragraph I want to have read more if there is more then 5 lines. I am not getting like how to do the same
```
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2... |
2018/02/28 | 519 | 1,728 | <issue_start>username_0: New to R and looking for some help. How do I convert to a data frame from the following xml in R. The data frame should contain 3 columns for the respective column id.
```
xml version="1.0" encoding="UTF-8" ?
-
-
Reference Number
Allocated To
Category Code
-
-
0150967018
Suresh ... |
2018/02/28 | 415 | 1,452 | <issue_start>username_0: is there any way to check if printer supports postscript, using C#? I need to check this before I do anything with my document.
Thanks,
Bartosz<issue_comment>username_1: You can utilize Visual Studio's Paste Special feature:
Copy JSON and Paste Special:
[](https://i.stack.imgur.com/j3RBt.png)
Here is my code:
```
```
I can't get all conditions work together at the same time<issue_comment>username_1: Try this ([pd.DataF... |
2018/02/28 | 379 | 1,613 | <issue_start>username_0: I am getting a NullPointerException **warning** below at `setDisplayHomeAsUpEnabled` method.
```
if((getActivity()) != null) {
if(((AppCompatActivity) getActivity()).getSupportActionBar() != null) {
((AppCompatActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(false);
... |
2018/02/28 | 1,916 | 6,091 | <issue_start>username_0: I have very simple 'program' written in VHDL
```
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.numeric_std;
entity Xand is
generic(width : integer:=8);
port( clk : in std_logic;
A,B : in std_logic_vector(width-1 downto 0);
C : out std_logic_vector(width-1 d... |
2018/02/28 | 629 | 2,399 | <issue_start>username_0: I am new to both laravel and lumen.
I was creating a login api with oauth2.0 in lumen 5.6, i have installed passport and generated token.
Below is my login controller function and it is working fine. It returns token.
```
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Ht... |
2018/02/28 | 1,074 | 4,098 | <issue_start>username_0: I have this code I'm trying to understand but I'm stuck, so maybe one of you good people could point me in the right direction.
Taking it step by step I have this part of an initialisation...
```
volatile struct UART *pTXD1;
volatile struct UARTINIT *pPort1;
```
...the strcuts...
```
stru... |
2018/02/28 | 1,152 | 4,718 | <issue_start>username_0: Here is my code for the activity main
```
package com.example.dell_7560.experiment6;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
s... |
2018/02/28 | 886 | 2,404 | <issue_start>username_0: How can I convert any date to just number of days? This is what I tried:
```
import datetime
import calendar
def leap_day_counter(yr):
leap_days = 0
# since 1582 11 days are missing
if yr >= 1582:
leap_days += 11
for specific_year in range(1, yr):
if calendar.i... |
2018/02/28 | 1,032 | 3,010 | <issue_start>username_0: How can I change a number ( integer ) into a currency format while live input/typing?
ex :
```
45678 => 456.78
```
or
```
234567 => 2345.67 or 2,345.67 or 2 345.67
```
( depending on the mask format used )
Before people start tagging this question as an existing one, I have already see... |
2018/02/28 | 881 | 3,192 | <issue_start>username_0: I need to use current props and previous props value in my React component.
So i did it like this
```
state = {
current: null,
previous: null,
};
componentWillReceiveProps(nextProps) {
if (nextProps.amount !== this.state.current) {
this.setState({previous: this.state.curre... |
2018/02/28 | 409 | 1,365 | <issue_start>username_0: I'd like to have a newline () after each `input` control. How do I do that in CSS?
I must add: I want the input control to *start on the same line* as the label or anything that precedes it but to have a newline at its end so that anything follows it starts on a separate line.
I understand th... |
2018/02/28 | 442 | 1,620 | <issue_start>username_0: I recently came across the following example:
```
CommandKey key = command.getKey();
switch(key.ordinal()) {
case 1:
return IncidentType.StatusChange;
case 2:
return IncidentType.Notification;
...
```
Where the key is an enum.
Is there any reason why whoever... |
2018/02/28 | 1,821 | 7,405 | <issue_start>username_0: i want to change my tab navigator background color dynamically in based on my API response so below is my code
**\_TabNavigator.js**
```
const MyTabnav = TabNavigator({
ScreenOne: {
screen: ({ navigation, screenProps }) => ,
navigationOptions: {
tabBarLabel: 'ScreenOne',
... |
2018/02/28 | 413 | 1,576 | <issue_start>username_0: I have a node\_modules cache in my Bibucket Pipeline and I added new module (eg yarn add react-modal) - how to make Bitbucket pipelines detect new yarn.lock and invalidate its cache?<issue_comment>username_1: Yeah, as username_2 have already mentioned, there is a ticket for that. Also, there is... |
2018/02/28 | 1,119 | 3,944 | <issue_start>username_0: I am trying to read columns from a csv file using the Tensorflow Dataset API.
I first list the names of my columns and how many I have:
```
numerical_feature_names = ["N1", "N2"]
categorical_feature_names = ["C3", "C4", "C5"]
amount_of_columns_csv = 5
```
I then declare my column type:
```... |
2018/02/28 | 3,066 | 10,201 | <issue_start>username_0: ```
{
"findItemsByKeywordsResponse": [{
"ack": ["Success"],
"version": ["1.13.0"],
"timestamp": ["2018-02-28T09:52:48.736Z"],
"searchResult": [{
"@count": "1",
"item": [{
"itemId": ["273088613147"],
"tit... |
2018/02/28 | 2,856 | 9,271 | <issue_start>username_0: What I want: User types word into input bar -> user presses Add button -> word is added to two lists "unsortedUL" and "sortedUL" - > user presses Sort button -> the list "sortedUL" gets sorted by descending (z-a), while "unsortedUL" remains exactly how the user inputted it.
I cannot figure out... |
2018/02/28 | 331 | 967 | <issue_start>username_0: ```
>>> from multiprocessing import Pool
>>> def f(x, y):
... return x*y
>>> p = Pool(3)
>>> p.map(f, [1,2,3], [4,5,6])
```
And I look errors `TypeError: unorderable types: list() <= int()`.
How to use `Pool` with 2 lists?<issue_comment>username_1: The problem is with the `map` func... |
2018/02/28 | 627 | 2,008 | <issue_start>username_0: I'm generating unique keys for invoice by using the below code and im getting **Run time Error 1004 Application defined or object defined error** in line
```
cell.Value = CStr(d & Mx)
```
Why I'm getting it?
```
Private Sub Key_Gen()
Dim WIP_rng As Range
Dim d As String, c As Long, r As ... |
2018/02/28 | 407 | 1,409 | <issue_start>username_0: I am a beginner in programming. I have a string for example "test:1" and "test:2". And I want to remove ":1" and ":2" (including :). How can I do it using regular expression?<issue_comment>username_1: There are at least a few ways to do it with Groovy. If you want to stick to regular expression... |
2018/02/28 | 715 | 2,627 | <issue_start>username_0: I'm no professional and after research, I wasn't able to find a solution.
I have a JavaScript source code for a SharePoint list to implement the InstantListFilter (<https://archive.codeplex.com/?p=instantlistfilter>) which works!
But I would like to update the source code so that the filter is... |
2018/02/28 | 3,985 | 10,360 | <issue_start>username_0: I don't even know what's a good title for this question.
But I'm having a table:
```
create table trans
(
[transid] INT IDENTITY (1, 1) NOT NULL,
[customerid] int not null,
[points] decimal(10,2) not null,
[date] datetime not null
)
```
and records:
```
--cus1
INS... |
2018/02/28 | 520 | 1,638 | <issue_start>username_0: I connected my Virtualbox VM to my docker machine.And when i do docker-compose up from docker machine I am getting this following Error.
```
ERROR: SSL error: HTTPSConnectionPool(host='192.168.4.20', port=2376): Max retries exceeded with url: /v1.22/info (Caused by SSLError(CertificateError("h... |
2018/02/28 | 1,142 | 3,869 | <issue_start>username_0: ```
variables:
CUSTOM_NODE_VERSION: '$${cat .nvmrc}'
```
I'd like for the variable `CUSTOM_NODE_VERSION` to be populated via the contents of the `.nvmrc` file (which is located in the projects root directory). How does one do this in the `gitlab-ci.yml` file?
The example above isn't workin... |
2018/02/28 | 717 | 1,810 | <issue_start>username_0: I have an output like
```
1054273,
1148244,
1174481,
1175759,
1180656,
1181151,
```
I need to remove the comma at the end.
I tried the code :
`str = str.replaceAll(", $", "");`
But the output shows like all the commas were removed.
Can anyone help me to solve this??
Thanks,
SK<issue_c... |
2018/02/28 | 737 | 2,334 | <issue_start>username_0: I have a "list" of strings and I need to get a index array of all the elements of the list that equal a pattern.
I don't need to use a python list, I can use another data structure, but I don't know which.
Example:
```
my_list = ['foo', 'bar', 'hello', 'foo', 'goodbye']
pattern = 'foo'
```
... |
2018/02/28 | 451 | 1,573 | <issue_start>username_0: How to break string values in chunks
```
include 'conn.php';
$query="SELECT defaultvalue FROM meta WHERE fieldid='grade' AND tableid='student'";
$result= mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
echo "";echo $row['defaultvalue']; echo "";
}
```
its shows lik... |
2018/02/28 | 1,849 | 6,380 | <issue_start>username_0: I am using Limited Edition of InstallShield 2015 with Visual Studio 2015.
I have configured **Internet information Services settings** as shown below, but website is not getting created in IIS.
[](https://i.stack.imgur.com/J... |
2018/02/28 | 955 | 3,275 | <issue_start>username_0: I need your help if possible. I am very new to Python, but I've got a good understanding in C#, java and now have started learning python as part of my learning program. I am stuck with one of my tasks to do and I can't get any help as no one that I know uses python.
My task is :
"Find the pr... |
2018/02/28 | 1,011 | 3,381 | <issue_start>username_0: Here is the example code, I came across this in Java The Complete reference, 9th edition.
```
// A simple example of recursion.
class Factorial { // this is a recursive method
int fact(int n) {
int result;
if(n==1) return 1;
result = fact(n-1) * n; //This is my ... |
2018/02/28 | 981 | 3,254 | <issue_start>username_0: Hey guys how to change the shape of UIImage like this:
This is the original one:
[](https://i.stack.imgur.com/oECvh.jpg)
And this is the way I wanna it be:
[
where Parent : class
{
ParenthoodChecker checker =
new ParenthoodChecker();
}
}
pu... |
2018/02/28 | 716 | 2,751 | <issue_start>username_0: Why does C++ destructs the `Parent` class before the `Child` class? Would it not be more logical for an object when its goes out of scope to first destruct the `shared_ptr`s and then destruct itself? In my workflow this causes a problem, because my `Parent` class is managing an interface that t... |
2018/02/28 | 611 | 2,277 | <issue_start>username_0: I ran a php script on the localhost with chrome to execute the following node.js file, named test2.js:
```
var express = require("express");
var app = express();
var notams = require("notams");
app.get("/", function(req, resp){
notams(['LMMM', 'LMML'], { format: 'DOMESTIC' }).then(results => ... |
2018/02/28 | 342 | 1,190 | <issue_start>username_0: I have created a tkinter application, wherein I do save the process done in UI using "Save" button. Below is the sample part of my code for better understanding:
```
self.savebtn = Button(self.btm_frm,text="Save",width=10,command=self.savebutton)
def savebutton(self):
self.savelist=[]
... |
2018/02/28 | 556 | 1,874 | <issue_start>username_0: ```
{{#each modelItems as |item|}}
|
{{ item.name }}
|
{{#each selectedColumns as |extraCol|}} // line 27
{{ extraCol }}
{{ item[concat '"' extraCols '"'] }} // what I tried
{{ item[(concat '"' extraCols '"')] }}
|
{{/each}}
{{/each}}
```
In the template I have a list of `modelIt... |
2018/02/28 | 798 | 2,400 | <issue_start>username_0: ```
php
$conn = mysqli_connect('hostname','username','passwd','dbname');
$query = 'SELECT name,mobileno FROM test';
$result = mysqli_query($conn,$query);
while($row = $result-fetch_array()) {
$name = $row['name'];
$monileno = $row['mobileno'];
$query2 =... |
2018/02/28 | 516 | 1,617 | <issue_start>username_0: How can I convert a string to an array of characters, for example
```
"abcd" -> ["a","b","c","d"]
```
I know the split methd:
```
SELECT split("abcd","");
#["a","b","c","d",""]
```
is a bug for the last whitespace? or any other ideas?<issue_comment>username_1: try replacing
```
whi... |
2018/02/28 | 641 | 2,282 | <issue_start>username_0: I'm working with Laravel for a little while now and since the start I have been wondering how they are able to chain methods in a random order and still execute the whole chain as one operation.
For example, in the console kernel:
```php
protected function schedule(Schedule $schedule)
{
$... |
2018/02/28 | 2,023 | 4,031 | <issue_start>username_0: I have been trying, unsuccessfuly, to use numpy.genfromtxt() to import the data from a text file into an array.
The problem I have is these data files should have five columns but from time to time a data entry is missing on a line and I only have 4 or fewer columns.
I've read through the num... |
2018/02/28 | 393 | 1,260 | <issue_start>username_0: ```
Select
Student_Name,
DENSE_RANK() OVER (ORDER BY dbms_random.VALUE(1,999999)) AS RBORV
From
Stu
```
From the above sql i need to extract only top 5% of ranks(in order).. What should I add in where clause to do so<issue_comment>username_1: There is a very straightforward w... |
2018/02/28 | 430 | 1,468 | <issue_start>username_0: JavaScript provides a mechanism for gather a list of promises:
```
const tasks = [ fetch('a'), fetch('b'), fetch('c') ];
const results = await Promise.all(tasks);
```
However, what if I want to execute all tasks, but with only `n` executing concurrently?
```
const results = await MorePr... |
2018/02/28 | 397 | 1,376 | <issue_start>username_0: I am using MatTable from Angular Material 5.2.5. I trying to populate the table with data which is got through a server request.
The UI
```
#
{{i + 1}}
Name
{{user.userName}}
...
```
The component code
```
public dataSource = new MatTableDataSource()
public displayedColumns = ['... |
2018/02/28 | 1,579 | 4,821 | <issue_start>username_0: I'm trying to use a Vte terminal widget to display text from my python script.
I'm not setting the working directory or emulator, I just want a empty terminal that handles text and ansi escape sequences
I have this piece of code, it works in python 2.7:
```
import gi
gi.require_version('Gtk'... |
2018/02/28 | 176 | 513 | <issue_start>username_0: I want something like `class = "myClass {{classVar}}"`
I am trying to concat class name with variable value in scope but not working.
```
```<issue_comment>username_1: Add a `+` and a space:
```
```
Upvotes: 6 [selected_answer]<issue_comment>username_2: You can use it like :
```
[ngClas... |
2018/02/28 | 534 | 1,623 | <issue_start>username_0: This should be easy, I just can't find it:
I find a datapoint in a series given some rules, I then want to show that point on the chart, at the moment it shows only the Y value. I need it to show both X and Y values, something like **-1506;409**
(X axis value = -1506, Y axis value = 409)
To... |
2018/02/28 | 286 | 894 | <issue_start>username_0: I'm trying to remove item(s) from a collection using wildcards. There are multiple elements with similar names:
```
[System.Collections.ArrayList]$Array = @(
"server1=localhost"
"server2=127.0.0.1"
"server3=172.16.17.32"
"server4=192.168.1.1"
}
```
I can remove a single item ... |
2018/02/28 | 551 | 1,946 | <issue_start>username_0: i'm working on a legacy project & i found something like that :
```
test:{
if(1 == 1) {
System.out.println("Oups");
break test;
}
System.out.println("Hello World");
}
```
I google it, but nothing seems to match with this kind of structure.
... |
2018/02/28 | 457 | 1,205 | <issue_start>username_0: I have formula in excel and i want use it in SQL Server. What queries i can use?
[](https://i.stack.imgur.com/VPeV9.png)
formula in Excel:
```
=IFERROR(MID(A2,FIND("=",A2,8)+1,FIND("Logic",A2,8)-4-FIND("=",A2,8)+1),MID(A2,FI... |
2018/02/28 | 994 | 3,472 | <issue_start>username_0: I am writing python scripts to sychronize tables from a MSSQL database to a Postgresql DB. The original author tends to use super wide tables with a lot of regional consecutive `NULL` holes in them.
For insertion speed, I serialized the records in bulk to string in the following form before `e... |
2018/02/28 | 680 | 2,539 | <issue_start>username_0: I am a newbie to React.I am playing around with it quite a bit.Now I want to navigate from App.js to Places.js .I agree that it can be done using React-router but I could not yet figure that out successfully. I need help in this regard.Having said this I tried few combinations using HashRouter,... |
2018/02/28 | 1,439 | 3,432 | <issue_start>username_0: I would like to do an automatic summary numbering. The only thing we could do is to number the A's (the titles) but the subtitles should be numbered automatically. If the title = 1, subtitle 1.1, below 1.1.1 and so on.
Let's say the titles are A, B and C are subtibles.
The pattern should be l... |
2018/02/28 | 386 | 1,415 | <issue_start>username_0: I want to change the 'Ok' button with 'Select patient' and the 'Cancel' to 'Speed case'. How can I do that?
```
swal({
text: "Start new case by",
buttons: true,
confirmButtonText: "Select Patient?",
cancelButtonText: "Speed Case?",
});
```<issue_comment>username_1: ```
swal({
... |
2018/02/28 | 186 | 778 | <issue_start>username_0: I have set an background image to header tag (inline css - as each page has different image), i wanted to make the image to set properly to the header that the complete image will be fitted in the header section depending on the resolution without resizing the image.
```
```
you can have the... |
2018/02/28 | 776 | 2,243 | <issue_start>username_0: Lets say I have data like that and I want to group them in terms of feature and type.
```
feature type size
Alabama 1 100
Alabama 2 50
Alabama 3 40
Wyoming 1 180
Wyoming 2 150
Wyoming 3 56
```
When I apply `df=df.groupby(['feature','type']).sum()... |
2018/02/28 | 1,721 | 4,926 | <issue_start>username_0: It seems like some of the methods that work for matplotlib 2D might not be working for matplotlib 3D. I'm not sure.
I'd like to remove the tick marks from all axes, and extend the edge color from the bottom and sides to the top as well. The farthest I have gotten is being able to draw the tick... |
2018/02/28 | 1,333 | 3,793 | <issue_start>username_0: I want to get a variable from js to php. From $('.form\_datetime')(js) to $TimeFrom(php). I know it's very simple, but nothing worked yet. I do not want to change parameters in the URL (POST,GET,$\_REQUEST).
```
Time from
php
$TimeFrom = 0;
/* Get time from datetimepicker */
echo "... |
2018/02/28 | 3,171 | 11,076 | <issue_start>username_0: i try to create a new project with symfony 4. The project folder is created via the default symfony 4 skelleton project `composer create-project symfony/website-skeleton test`.
This is the output of the command:
```
composer create-project symfony/website-skeleton test
Installing symfony/webs... |
2018/02/28 | 886 | 2,097 | <issue_start>username_0: I'm really new with python and I'm trying to figure it out how to do a grep from a tuple or list.
I have a result from a query like this:
```
[(123456, '123_ABC', '<KEY>a', '/path/whatever', 11111L, 'YES'),
(789456, '123_DEF', '<KEY>', '/path/whatever/0', 11111H, 'NO'),
(234567, '123_GHI', 'a... |
2018/02/28 | 578 | 1,293 | <issue_start>username_0: i have this query to generate custom generated ID but I think this is incorrect please help me
```
SELECT CONCAT('STUDENT-',COUNT(Id), + 1) FROM `students`;
```<issue_comment>username_1: You can use `in` to check if value is in tuple.
**Ex:**
```
d = [(123456, '123_ABC', 'abc123defa', '/pat... |
2018/02/28 | 653 | 1,553 | <issue_start>username_0: I have been using crystal report 2013. On the graph we have been using the numeric value. I would like to display % sign and th at the end of number. eg 5% or 4th etc..
[I would like to put % and th sign on the bar graph.](https://i.stack.imgur.com/yHa9z.png) labels are value directly coming ... |