date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/03
6,084
16,652
<issue_start>username_0: I'm trying to get the dropdown menu on the navbar to overlap the body. I have tried z-index: 1; but the drop down menu is still cover by the body, How do I get the dropdown menu to overlap the body? Also when I try to get have the navbar in mobile mode the menu is not align with the navbar, ho...
2018/03/03
691
2,021
<issue_start>username_0: How would I go about adding sub-lists. For example, `[ [10;2;10]; [10;50;10]] ----> [20;52;20]` that is 10+10, 2+50 and 10+10. Not sure how to start this.<issue_comment>username_1: Fold is a higher order function: ``` let input = [[10;2;10]; [10;50;10]] input |> Seq.fold (fun acc elem -> acc...
2018/03/03
446
1,766
<issue_start>username_0: Is there any way we can stop a Bitbucket Pipeline from building? The process is taking more than 25 minutes? .yml file content is :- ``` image: node:8.9.4 pipelines: default: - step: caches: - node script: # Modify the commands below to build your repository....
2018/03/03
2,241
6,963
<issue_start>username_0: I got this code from [How to get duration, as int milli's and float seconds from ?](https://stackoverflow.com/questions/14391327/how-to-get-duration-as-int-millis-and-float-seconds-from-chrono) ``` #include #include int main (int argc, char \*argv[]) { auto t0 = std::chrono::high\_resoluti...
2018/03/03
1,879
5,889
<issue_start>username_0: Suppose I have an object ``` var obj = { subObj : { value : 1 } }; ``` Is there any way to get `obj.subObj.value` using a complex property-name string that goes to sub objects? Example (that doesn't work) ``` var attr = "subObj.value"; return obj[attr]; ```<issue_comment>usern...
2018/03/03
3,110
10,767
<issue_start>username_0: I Have the following code which dynamically displays a table based on what's in the database: ``` $sql = "SELECT * from users WHERE pin = '" . mysqli_real_escape_string($link, $_SESSION['pin']) . "' "; $result = mysqli_query($link,$sql) or die("bad query: $sql"); echo" "; echo"| id | Firstn...
2018/03/03
678
2,316
<issue_start>username_0: I have a following setup in docker compose * `nginx` for proxying to `frontend`, `backend` and serving static content * `backend` app on port 8080 (spring boot) * `frontend` app on port 4000 (node for SSR) * `mysql` used by `backend` Frontend can be updated relatively fast using ``` docker-c...
2018/03/03
794
3,001
<issue_start>username_0: I was starting on learning some Laravel. I am working on a website where you can create an account, which can have roles, and depending on what roles you have, you can do stuff. What it is isn't important, but let me explain the whole situation. I do have 3 tables: * One called `users`, which...
2018/03/03
1,077
4,259
<issue_start>username_0: This is a big project, actually a virtual machine of my custom design. Under certain circumstances, program crashes with a segmentation fault every time when I run it on its own, but within GDB under those same circumstances it runs perfectly and never crashes! I am giving it the exact same ...
2018/03/03
719
2,996
<issue_start>username_0: How do i access the value of titles within render? I haven't quite got my head round promises and callbacks. ``` callback = (err, feed)=> { let titles =[] feed.items.forEach((entry)=> { titles.push(entry.title + ':' + entry.link); }) return titles } render() { ...
2018/03/03
160
672
<issue_start>username_0: I frequently get stuck with the runtime status "Initializing" when opening Google Colab notebooks using GPUs. Are other people having this problem? Is it from a shortage of GPUs in the runtime cluster? Has anyone found a better solution than just coming back later?<issue_comment>username_1: As...
2018/03/03
230
829
<issue_start>username_0: I have two python files: main.py and imported.py. I want to import imported.py into main.py but I want access to the path of main.py in the file imported.py. That is I want access to the path of the importing module. For example: ``` #main.py import imp imported = imp.load_source('imported', "...
2018/03/03
206
743
<issue_start>username_0: I have 4 columns, but when I hide one or more it changes the columns width completely like this: ``` col-1 col-2 col-2 ``` If I hide all the cols with the `hide-this` class it changes the width of the only one that´s still visible ``` $('.hide-this').hide(); ``` How can I maintain the...
2018/03/03
368
1,246
<issue_start>username_0: I have a countdown going, and I can't define a variable or pull a var from outside. This is my variable. ``` go = True ``` This is the countdown. ``` def countdown(n): while n > 0: print(n) time.sleep(1) n = n - 1 if n == 0: print("The storm has taken you!") ...
2018/03/03
3,075
8,479
<issue_start>username_0: I followed the instruction in <http://docs.cython.org/en/latest/src/tutorial/numpy.html> But I met some problem when I was trying to build my own block: (The code's purpose is just calculate the union area of two triangle) My .pyx code: ``` cimport cython import numpy as np cimport numpy ...
2018/03/03
995
3,468
<issue_start>username_0: I ran across a curious situation while using `white-space: nowrap` on two `span` elements. Instead of preventing a line-break within the `span`, it also prevents linebreaks between the `span` elements. If I place the `span` elements next to eachother on the same line of my code the second `s...
2018/03/03
507
1,885
<issue_start>username_0: I am trying to create docker image with alpine linux, which after run will create container with 2 running programs. This 2 (in my opinion - I don't know docker well) can't be separated because first program changes the seconds configuration file and then should restart that program too. I am ...
2018/03/03
1,958
7,031
<issue_start>username_0: I'm working through a tutorial in Google Colaboratory, and the author has handily hidden some of the solutions cells. When you click the hidden cell, it expands and becomes visible. How can I hide the cells? An example is in this tutorial: [Creating and Manipulating Tensors](https://colab.rese...
2018/03/03
436
1,443
<issue_start>username_0: Im trying to have buttons on my article lists. This is for saving the article. But it wont move to the right. I tried it and it worked but the buttons overlapped on top of each other. So my approach then is to wrap it around a div container and give that div a `className=pull-right` . The newbi...
2018/03/03
423
1,537
<issue_start>username_0: I would like to use ANTLR4 to analyze COBOL files using a Python3 program. To do so, I would need to know the position on which the token (lets say a MOVE statement) occurs in the file (at least the line and if possible also the character position). I need this especially, because I want to res...
2018/03/03
504
1,575
<issue_start>username_0: My telegram bot does not send hyperlink in caption of photo, video, voice. It is strange because hyperlink works for plain text. **Below is my code for the `sendPhoto` method** ``` php $p1="<a href=google.comgoogle"; $url= "https://api.telegram.org/bot".$token."/sendPhoto?parse_mode...
2018/03/03
357
1,071
<issue_start>username_0: I have a RDD with `Any` type, example: ``` Array(List(Mathematical Sciences, ListBuffer(applications, asymptotic, largest, enable, stochastic))) ``` I want to convert it to RDD of type `RDD[(String, Seq[String])]` I tried: ``` val rdd = sc.makeRDD(strList) case class X(titleId: String, ter...
2018/03/03
479
1,720
<issue_start>username_0: Thanks in advance pls help as soon as u can i'm trying to achieve a situation where when a user logs in he is redirected to user view like localhost/cakephp/users/view/1 where 1 is the user id in my view method here is what i have ``` public function view($id = null) { $user = $this->U...
2018/03/03
1,795
3,647
<issue_start>username_0: I have an array of arrays in which I am trying to get rid of March and September. I have been trying the below code but I am not getting any output. Please suggest what I am missing and how I can improve this. ``` //w is the data array for(var i = 0; i < w.length; i+=1) w.splice(i,...
2018/03/04
661
2,097
<issue_start>username_0: I'm learning Karaf, following this tutorial: <https://github.com/cschneider/Karaf-Tutorial/tree/master/tasklist> I build it as requested. Then I attempt to start karaf like this: `./bin/karaf` from where I exported binaries. In response I get: `Could not resolve mvn:org.apache.felix/org.apach...
2018/03/04
541
1,943
<issue_start>username_0: Currently learning react 'props'. When rendering props inside a component i get an error on compile when passing 'name' and 'age': "Cannot read property 'name' of undefined." Here is my code: Dashboard ``` import React, { Component } from 'react'; import SummaryWidget from '../../Components...
2018/03/04
957
3,428
<issue_start>username_0: First, I hope the topic title wasn't too vague, I'm not really sure how to describe this issue. I have been handed an inventory database that was grown and developed by a few generations of people with varying levels of skill. Now it have tons of gotcha's of things that look alike but aren't q...
2018/03/04
1,507
5,796
<issue_start>username_0: I am dealing with a connection error and need help. I am using Python2.7 and Google App Engine for this project. I am retrying to use [nba\_py](https://github.com/seemethere/nba_py) third party API to retrieve additional information to be displayed on my website but I am getting a ConnectionErr...
2018/03/04
748
2,639
<issue_start>username_0: I am running the following code... ``` #Create a list of all the files file.list <- list.files(path="~/R/natural-language-processing/class-notes", pattern=".csv") #Loop over file list importing them and binding them together D1 <- do.call("rbind",lapply(file.list, read.csv, header = TRUE, str...
2018/03/04
1,347
4,449
<issue_start>username_0: I have been battling with disabling the parent class li from opening the tab with the link placed in it, I want only the save and continue button to open the tabs not the links, cause the links get undisabled after change in tab.The previous tabs gets disabled, please how do i go about solving ...
2018/03/04
1,116
3,688
<issue_start>username_0: I'd like to input certain value in a particular column. my data looks something like: ``` LoanID Married ApplicantIncome CoapplicantIncome Credit_History LP00135 NaN 33460 16000 1.0 LP00234 Yes 55000 70000 1.0 LP00432 ...
2018/03/04
639
1,754
<issue_start>username_0: I am not new at all to Python programming, but I am completely new to the Numpy module. I need to use this module for it's very fast and efficient. Say I have an array called `noise` which is defined as follows: ``` noise = [[uniform(0, 1) for i in range(size)] for j in range(size)] ``` In ...
2018/03/04
675
1,841
<issue_start>username_0: My dataframe is like this ``` Numbers, user_id, time_stamp 1 2 2013-11-15 03:45:04 2 2 2013-11-29 03:45:04 3 2 2013-12-09 03:45:04 4 2 2013-12-25 03:45:04 5 2 2013-12-31 03:45:04 6 3 2014-01-08 03:45:04 7 3 2014-02-03 03:45:04 7 4 2014-02-03 03:45:04 ``` I ha...
2018/03/04
1,302
5,010
<issue_start>username_0: I have a simple Search Component which contains a Reactive Form with 2 elements: * Text Input (to search for arbitrary matching text) * Checkbox (to include / exclude deleted results) So far I use `myFormGroup.valueChanges.subscribe(...)` to execute my search method. Now the problem is, that...
2018/03/04
985
2,747
<issue_start>username_0: I've been trying to understand how bit operations work with C and pointers but no luck. Here is my problem. I have 8 bytes in memory and need to extract the first 61 bits and print. For example: 0000 0000..... 0010 0111 , I need to extract the value 32 (ignoring the last 3 bits from 64 bits.) H...
2018/03/04
3,291
11,244
<issue_start>username_0: I've finally manage to make it work so that when you push to a branch job would launch, but I keep waiting for it to launch around 3min and then I've got errors which I need to fix and then commit again, and then waiting again. How can I just ssh to that public runner and test `.gitlab-ci.yml` ...
2018/03/04
463
1,426
<issue_start>username_0: I'm writing a script: the final goal is to create one text file by taking content from some files and modifying some files. I have a `fileA` which has some constant content (20 lines) and `fileB` which is created by modifying another files. Now I have to insert all the information from `fileA` ...
2018/03/04
902
2,909
<issue_start>username_0: I was trying to sort few values in list using Python's Counter from collection module. But it gives weird result when ``` >>> diff=["aaa","aa","a"] >>> c=Counter(diff) >>> sorted(c.items(), key = lambda x:x[1] , reverse=True) [('aa', 1), ('a', 1), ('aaa', 1)] >>> c.items() [('aa', 1), ('a', 1...
2018/03/04
590
1,892
<issue_start>username_0: I have this regex to match username in my system: `/[a-zA-Z]+([_-]?[0-9a-zA-Z]+)*$/`. It starts with letters and allows `numbers, _ and -`. But I dont want the username includes some words like `admin`, `facebook`, `official` etc. How can I add these words to the regex? I want to use one regex ...
2018/03/04
537
2,138
<issue_start>username_0: I'm trying to test partition expiration on a table where I have set TIMESTAMP column based partition. Problem is that the partition expiration does not seem to work. Here is what I do: 1) Create table with TIMESTAMP column partition together with 60 seconds expiration time ``` bq mk --table ...
2018/03/04
413
1,662
<issue_start>username_0: Well I know what I must do, just don't know how. I know I have to (after make all my animations and whatnot) declare all variables on frame 1(in a seperate time-line), like a=0;b=0... Then do a gotoandplay at the end of the loop to the begging, with a condition (in frame 120, if a=0 gotoandpl...
2018/03/04
1,007
3,947
<issue_start>username_0: I'm having some trouble rendering components for each instance of an item in an object. While I'm able to log the individual titles of each item, the return function doesn't return anything, regardless of which component I try to return. There are no errors, apparently. Is there perhaps a bet...
2018/03/04
911
3,270
<issue_start>username_0: I'm writing a simple IRC client program in C for self-teaching purposes, and am having trouble understanding the behavior of the `read()` function when called reading from a socket file descriptor. The following code snippet works and prints the same output as running `$ echo "NICK gertrudes\...
2018/03/04
667
2,127
<issue_start>username_0: Long story short, i'm looking for a way to create and fill 2D arrays using ES6, in an effort to avoid `for` loops. The created array should contain all 0s. I've tried many different approaches so i cant post all of them. ``` var [r, c] = [5, 5]; var m = Array(r).fill(Array(c).fill(0)); ``` ...
2018/03/04
405
1,747
<issue_start>username_0: For any language that contains boolean and enumerations as primitive types which type should I use for variable that stores whether something is `left` or `Right`. My initial instinct is to use an enumeration as it is much more descriptive - definitely a big plus for enumerations. But it occ...
2018/03/04
1,431
5,139
<issue_start>username_0: I want to change the behavior of `isinstance` for a live python object. One solution is to create a simple wrapper like the following, but I do not like it: ``` class Widget: def __init__(self, obj): self.inner_self = obj lizard = ['head', 'nose', 'tail'] wlizard = Widget(lizard)...
2018/03/04
1,187
4,415
<issue_start>username_0: So I'm writing this code for my class and I encountered one error that with it which im not sure why it is returning an error. This is the section of code that returns this error: ``` numValues = int(input("Input number of inputs (between 1 and 15): ")) newList = [] def input_num...
2018/03/04
1,286
4,085
<issue_start>username_0: <https://i.stack.imgur.com/sRpxQ.jpg> Codepen: <https://codepen.io/yongelee/pen/eVobRd> I want to make the background have no white, so basically have that white space as the color of the next block's background. But unfortunately when I clip-path, the div doesn't change from a rectangle to a...
2018/03/04
1,076
3,861
<issue_start>username_0: How can I use an environment variable from the `.env` file in a custom Twig function (`\Twig_SimpleFunction`) in Symfony 4?<issue_comment>username_1: Install the [Dotenv component](https://symfony.com/doc/current/components/dotenv.html) so you can use the `getenv()` function: ``` php // src/Tw...
2018/03/04
577
1,478
<issue_start>username_0: The following Scala code: ``` val l = List((1,2),(2,3),(3,4)) def fun1(t1: Int,t2: Int) = (t1+1,t2) l map fun1 ``` Gives the error: ``` Error:(3, 8) type mismatch; found : (Int, Int) => (Int, Int) required: ((Int, Int)) => ? l map fun1;} ^ ``` I wonder why is it necessary for ma...
2018/03/04
312
1,124
<issue_start>username_0: I used a CSS class in HTML, but this class is not defined yet ![Image Link ](https://i.stack.imgur.com/lpdNl.png) Then I tried to define this class in CSS. However, vscode cannot suggest me an already existing class. ![Image Link ](https://i.stack.imgur.com/dWZZr.png) I'm new in vs code - p...
2018/03/04
633
2,259
<issue_start>username_0: There is one particular processor as mentioned below I am interested in which has one extra feature in **1.5.0** as compared to **1.2.0** and so I want to use that. **Processor Name:** QueryDatabaseTable Is there any way I can just upgrade the processor or add this processor without upgradin...
2018/03/04
1,358
5,796
<issue_start>username_0: I'm trying to perform a segue which it doesn't work. What i'm trying to do is send the data which i have in a textfield in my View Controller(Main), after that i want to send it to a ViewController called OperationsController and after that send it to another Views (CreateController & ListCon...
2018/03/04
648
2,243
<issue_start>username_0: Here is an input list: `[[10;2;10]; [10;50;10]; [10;1;10]]`. How would I filter the second element of each sub-list? Below is my code and when I output the result I get `[[10;50;10]]` but what I want is `[2;50;1]`. Is there anyway to fix my code? I am really trying to understand F#. Thanks f...
2018/03/04
253
1,058
<issue_start>username_0: I implemented an algorithm in Single-Source. Now, I want to decrease my algorithm's processing time with reduction. Can reduction kernels be called from Single-Source in RenderScript?<issue_comment>username_1: In short, no. From the Renderscript documentation (bold is mine): > > Android 7.0...
2018/03/04
358
1,352
<issue_start>username_0: I am trying to compile dolfin on openSUSE Leap 42.3. I get an error with CMake when it tries to find Eigen3. I have Eigen3.3.4 installed on my machine and the error is ``` CMake Error at cmake/modules/FindEigen3.cmake:42 (file): file failed to open for reading (No such file or directory): ...
2018/03/04
300
1,232
<issue_start>username_0: I got started using AWS Glue for my data ETL. I've pulled in my data sources into my AWS data catalog, and am about to create a job for the data from one particular Postgres database I have for testing. I have read online that when authoring your own job, you can use a Zeppelin notebook. I have...
2018/03/04
375
1,288
<issue_start>username_0: I'm grabbing the value of an input and setting this as a variable. How can I then use this as part of the selector name. Here's a demo of where I've got too and what I'm trying to achieve ``` // grab the id var rowId = $('input[name="row-id"]').val(); // Use the variable as par...
2018/03/04
508
1,800
<issue_start>username_0: I have some "buffer bar" at the top, showing my buffers like tabs in a browser. In a browser I can ctrl-1, ctrl-2 etc. to jump to tabs. What can I do in vim to jump to the buffer I want really quickly?<issue_comment>username_1: `:b x`, where x is the number of the buffer that you want to edit...
2018/03/04
759
2,527
<issue_start>username_0: I'm trying to parse a barely formated text to a price list. I store a bunch of regex patterns in a file looing like this: ``` [^S](7).*(\+|(plus)|➕).*(128) ``` When i attempt to verify whether there is a match like this: ``` def trMatch(line): for tr in trs: nr = re.compile(tr.nameReg...
2018/03/04
1,036
4,011
<issue_start>username_0: We're running into an issue were we execute a large number of queries at once (large being 100-200) using Dapper async and end up getting timeout exceptions. I think what is happening is that Dapper is doing `await ... [connection].OpenAsync(...)` ([seen here](https://github.com/StackExchange/D...
2018/03/04
643
1,992
<issue_start>username_0: Is it possible to perform an OR operator inside of `substring`? Here is what I have but it doesn't work ``` str.substring(str.indexOf("start")+1, str.indexOf("x|y")) ```<issue_comment>username_1: Solution: ``` -> "startthexstrayingx".replaceAll ("start([^xy]*(x|y)).*", "$1") | Expression ...
2018/03/04
792
2,715
<issue_start>username_0: I'm trying to convert a .wav file to a byte array string. I need to do this on the back-end targeting the file is becoming an issue. ``` files.forEach(file => { let index = files.indexOf(file) let reader = new FileReader(); reader.readAsArrayBuffer(f...
2018/03/04
1,854
4,866
<issue_start>username_0: I am trying to generate a plot of the 6-month **rolling** Sharpe ratio using Python with Pandas/NumPy. My input data is below: ``` import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set_style("whitegrid") # Generate sample data d = pd.date_range(...
2018/03/04
629
2,221
<issue_start>username_0: I'm new to Magnolia and am trying to do the first project <https://documentation.magnolia-cms.com/display/DOCS56/Hello+Magnolia#HelloMagnolia-InstallNode.js> called ''Hello Magnolia'' In section 4.2 **Install and start Magnolia** when type **mgnl start** it shows *Starting Tomcat instance at C:...
2018/03/04
336
1,215
<issue_start>username_0: How can we retain form values? The Server is written in PHP, and the action for the form is `"echo $_SERVER[PHP_SELF]".` Without the use of cookies, PHP sessions, and without binding PHP variables to HTML Form values; **how can we possibly retain form values?**<issue_comment>username_1: * Th...
2018/03/04
418
1,390
<issue_start>username_0: I have a table `Students(StudentID, classes, school, advisor)` and I need to find a pair of students that take **exactly** the same set of classes. For example, in a table: [![enter image description here](https://i.stack.imgur.com/L3QFV.png)](https://i.stack.imgur.com/L3QFV.png) I would ha...
2018/03/04
537
1,953
<issue_start>username_0: (I have tried the other options listed in similar threads, but either I didn't understand what to do, or they didn't work.) I have installed Python 3 and PostgreSQL (that I'm using with pgAdmin4); I'm on Windows 7, 64 bit. I have then installed Psycopg2 using the pip command. If I go on Window...
2018/03/04
1,719
4,003
<issue_start>username_0: I have been stuck at trying to achieve this for quite some time now. I wanted to get a subset of columns given a header name, but at the same time preserving the data as csv object. Assuming I have this csv: ``` type,Alabama,Alaska,Arizona,Arkansas violent,14324,3498,21161,9181 murder,228,16...
2018/03/04
506
1,593
<issue_start>username_0: **Goal**: Turn list of strings into list of dictionaries I have the following list of strings ``` info = ['{"contributors": null, "truncated": true, "text": "hey there"}', '{"contributors": null, "truncated": false, "text": "how are you"}', '{"contributors": 10, "truncat...
2018/03/04
657
2,202
<issue_start>username_0: So I have the following code- ``` params = {'n_estimators': [1000, 2000], 'max_depth': [10, 20], 'min_samples_split': [2, 3], 'learning_rate': [0.1, 0.05, 0.01], 'loss': ('ls', 'huber', 'lad', 'quantile'), 'verbose': [1]} gbr = ensemble.GradientBoostingRegressor() clf = GridSearchCV(...
2018/03/04
1,243
4,597
<issue_start>username_0: I am a novice programmer and having issues understanding arrays. I have two String arrays: `String[] itemList = {"item1", "item2", "item3",....."item10"}` `String[] country = {"US", "UK", "France",....."Germany"}` As you probably understood, the idea is, I should be able to choose an item f...
2018/03/04
1,521
4,534
<issue_start>username_0: I have to write a method with the stream api.In the method I should get the minimum of an integer value in an Object called "Winner", The Integer value I mean is the lengthKm value, I have to get the lowest/shortest one.The Class looks like this ``` package U13_Lambdas_Streams.Streams; impor...
2018/03/04
438
1,208
<issue_start>username_0: This should be fairly straightforward in python, I just can't seem to put the right search together in google. But let's say I have two int values, `a` and `b`, that range 1 - 10 and `a=6`. I want to find out if b is either 7 or 8 (within 1 +/- value of 6). How can I do that efficiently in pyth...
2018/03/04
851
2,767
<issue_start>username_0: I have a vector of tuples. Pseudo: ``` vector<(x, x)> ``` Where the two x'es represent two different values. What I want to do is find the x with the biggest value in the whole vector. **Code:** ``` #include #include #include int main() { //Making vector std::vector> v; //Adding o...
2018/03/04
856
3,181
<issue_start>username_0: I'd like to add a data value to an option tag in a select element. For example `data-price` but my problem is that I have multiple select tags. So how do I get JavaScript to grab the data value of that option that the user selects? How I want it to work: Select element #1 contains: ``` Ap...
2018/03/04
179
856
<issue_start>username_0: I am using firebase in a current project and I understand that there is a method in Firebase called createUser(email, password). However, I was wondering if there was a way to sign up users and create users using only their phone number with firebase? I know that firebase supports phone number ...
2018/03/04
1,749
4,384
<issue_start>username_0: so I was wondering how would I work out the time complexity (*T(n)*) of a piece of code, for example, the one below, in terms of the number of operations. ``` for( int i = n; i > 0; i /= 2 ) { for( int j = 1; j < n; j *= 2 ) { for( int k = 0; k < n; k += 2 ) { ... // co...
2018/03/04
583
1,212
<issue_start>username_0: Given a matrix ``` a <- matrix(c(15,2,11,16,7,12,1,8,3), nrow=3, ncol=3, byrow=T) ``` I'd like to row bind three copies of the matrix, but in each copy all rows but one should have zero values. The desired result: ``` 15 2 11 0 0 0 0 0 0 0 0 0 16 7 12 0...
2018/03/04
545
1,921
<issue_start>username_0: I tried to fill rectangles with images. While images appear in Chrome, they do not appear in safari. I do not get any error messages. So I am really confused as to why this is the case, please help me! Alternatively, if you can help with filling rectangles with custom pictures, I'd also happy t...
2018/03/04
479
1,781
<issue_start>username_0: I recently noticed that Socket.io has become really really slow on windows. I noticed this when I opened two tabs and tried emitting events. It took more than 15 seconds to receive a response from server. Server Coded on NodeJS. ``` Environment: Windows 10 Pro Electron Socket.io-Tester Socket....
2018/03/04
681
2,176
<issue_start>username_0: > > short: The short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive) > > > Why does the following ``` System.out.println(Short.parseShort("1111111111111111", 2)); ``` Return ``` java.lang.NumberFormatExc...
2018/03/04
526
1,790
<issue_start>username_0: Previously in UWP apps I had used a code snippet that generated an event handler and linked it to a xaml control's event. For instance, a button and I type Click and it prompts me to create a new event handler. In Xamarain forms, I get the same thing in UWP version of the app, but not in the M...
2018/03/04
563
1,922
<issue_start>username_0: I have a question about some queries I need to do on the Northwind database. I am using SQL Server Management Studio. I've done the work already on all my queries but my professor said he doesn't want us to use the JOIN keyword and I'm having trouble doing it without that. I don't really know h...
2018/03/04
679
2,325
<issue_start>username_0: I am fairly new to coding in Python, and coding in general, and I am attempting to make an authenticated buy function to the Binance API. From what I've gathered this is usually done using the curl method on Linux, I've tried to use `requests` instead in the Python library, and I keep getting ...
2018/03/04
1,348
5,485
<issue_start>username_0: I am attempting allow emails to be sent from my website. I am trying to get information passed to the server, but when I console log the message it returns as undefined. I don't honestly know how to even determine what information the server is getting as all my attempts to console log the data...
2018/03/04
1,615
5,976
<issue_start>username_0: So, I'm working on a project for school where we have to make a shell and I've been doing fine until now. I need to figure out how I can extend my regular expression for "words" so that special characters are recognized. Basically, I need to be able to separate words by certain special charact...
2018/03/04
469
1,525
<issue_start>username_0: I have divs with data attribute `data-submit-date` and i want to sort them based on the value of this attribute which is date format. here's the code for one of the divs: ``` aaaaA ===== ``` my attempts: ``` $divss = $(".article"); var alphaOrderDivs = $divss.sort(function (a, b) { ...
2018/03/04
1,624
5,819
<issue_start>username_0: The following Erlang code seems to have an obvious error in its type specification, but dialyzer says that everything is ok. Am I misunderstanding or is this a bug in dialyzer? Running on Erlang 19.3 ``` -module(foobar). -export([foo/1]). -spec foo(atom()) -> ok | {error, atom()}. foo(Arg) -...
2018/03/04
890
3,467
<issue_start>username_0: I'm trying to create a Repository for an Object `Page`. I would like to have non-generic LINQ queries but can't seem to get them working, I am only able to create them if they are generic and in a helper class, and please let me know if it is recommended to have this type of function in a Hel...
2018/03/04
2,944
9,311
<issue_start>username_0: I got this exercise that I haven't been able to solve, the point is to create a program where you type in a text, then the program analyzes each word of the text and counts the vowels of each word, then the program returns in screen the number of words that have 3 or more different vowels, and ...
2018/03/04
1,161
4,857
<issue_start>username_0: In our angular app, we use environment files to load some config. environment.ts ``` export const environment = { production: false, defaultLocale: 'en_US', }; ``` We then use it in one of our service: ``` import { environment } from '../../environments/environment'; import { Translat...
2018/03/04
1,440
5,759
<issue_start>username_0: I'm building a todo web app using firebase, react and redux. So I have protected rotes such as `"/todos/add"`, `"/dashboard"` and guests Routes as `"/"`,`"/signup"`, `"/login"` which can't be accessed if you're are authenticated. My problem is when I'm authenticated in the `"/todos/add"` route...
2018/03/04
879
2,744
<issue_start>username_0: The div inside another div won't go to the right but just stays to the left. The code below is some what look like chat box the first div with green background has a position of 0px left and it works but the second div has 0px right and it still stick to the left please help me with this it bot...
2018/03/04
650
2,235
<issue_start>username_0: How do I turn these arrays into functions? I can't find anything online on how to do it. ``` $stateArray = array( "ct"=>"Connecticut", "ma"=>"Massachusetts", "nj"=>"New Jersey", "ny"=>"New York", "ri"=>"Rhode Island"); $destinationArray = array( "easterncaribbean"=>"Ea...
2018/03/04
739
2,429
<issue_start>username_0: I plan to use the string.format() to make the output more readable. I have 'Name' and 'BirthDate' and 'Salary' columns. I got the widest string 'Name' (widest\_name = 5) and widest string 'BirthDate' (widest\_birthDate = 16). My date set: `data_set = [["Dan", "August 8 1954", "50k"], ["Jason"...
2018/03/04
231
846
<issue_start>username_0: Say I have import a module by using ``` import m ``` and now I want an alias to its function, I can use ``` from m import f as n ``` or ``` n = m.f ``` I think there is no difference, is one preferred than another?<issue_comment>username_1: There is no difference, as far as using the ...
2018/03/04
410
1,464
<issue_start>username_0: ``` changeweek = (Map>)dataSnapshot.child("week").getValue(); ArrayList test = changeweek.get("Monday"); Log.d("changeweek",changeweek.toString()); int j = test.get(2); ``` I get an error in the last line which is the following: > > java.lang.ClassCastException: java.lang.Long cannot be...
2018/03/04
753
1,752
<issue_start>username_0: ``` def __init__(self, text): self.text = text.strip("\r").strip("\n").strip("\r").strip(" ") print("TEXT:"+text+";SELFTEXT:"+self.text) ``` `text` is inputed as "<http://thehill.com/homenews/senate/376515-jeff-flake-there-will-be-a-republican-challenger-to-trump-in-2020>\r\n" and ...
2018/03/04
848
2,077
<issue_start>username_0: Is possible to create fake data to recreate a contingency table? For example: ``` originalTable <- matrix(c(188, 29, 20, 51), ncol = 2, byrow = TRUE) colnames(originalTable) <- c("A", "B") rownames(originalTable) <- c("C", "D") ``` Is possible to generate a dataframe from the table with 28...