date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 1,433 | 4,695 | <issue_start>username_0: I have a rather simple Pascal program, that is to call some C functions I have written.
My C code:
```
void connect_default(int* errorcode)
{
// Connects the default user and places any error code in errorcode
}
void connect(char user[129], char password[129], int* errorcode)
{
// Co... |
2018/03/22 | 556 | 2,159 | <issue_start>username_0: In my project, I use `RxJS` to handle HTTP request. I came into a confusing point about the error handling part as following:
```
.switchMap((evt: any) => {
return http.getComments(evt.params)
.map(data => ({ loading: false, data }))
.catch(() => {
console.l... |
2018/03/22 | 1,398 | 5,516 | <issue_start>username_0: Let's say we have two classes – `Car` and `Engine`. The question is would it be more reasonable to inherit `Car` from `Engine` to use `Engine`'s methods (e.g. `start()`) or to use `Engine` as an attribute of a `Car`?
First approach (obvious):
```
class Car(Engine):
# do smth with inherite... |
2018/03/22 | 656 | 2,143 | <issue_start>username_0: A client uses an external CRM platform to manage customers that I connected to his website using a dedicated plugin provided by this CRM company.
With this plugin I can display on the website informations that my client fill in this external platform.
I can't change the html code of this plug... |
2018/03/22 | 684 | 2,937 | <issue_start>username_0: I have a simple search bar which uses a react-autosuggest. When I create a suggestion, I want to attach an onClick handler. This onClick has been passed down from a parent class. When the suggestion is rendered however, `this` is undefined and therefore the click handler is not attached.
I hav... |
2018/03/22 | 1,127 | 4,040 | <issue_start>username_0: I have a basic cordova app running on android that loads my main web app in a webview.
When running my web app via cordova it will not download any pdf's over https that are located in the same hosting subscription as my app.
Downloading pdf's over https from other websites work fine - incl... |
2018/03/22 | 442 | 1,842 | <issue_start>username_0: I have a database (structured according to dplyr principle) giving an overview of a literature database. One of the columns is "language", and another one is "tag", a deprecated column I'd like to clean up as it contains multiple information. It also contains "language" information.
Each book ... |
2018/03/22 | 331 | 892 | <issue_start>username_0: I want to modify lines in a file using awk and print the new lines with the following line.
My file is like this
```
Name_Name2_ Name3_Name4
ASHRGSJFSJRGDJRG
Name5_Name6_Name7_Name8
ADGTHEGHGTJKLGRTIWRK
```
I want
```
Name-Name2
ASHRGSJFSJRGDJRG
Name5-Name6
ADGTHEGHGTJKLGRTIWR... |
2018/03/22 | 1,234 | 3,627 | <issue_start>username_0: So, basically I need to print out a 2d array as a table and put indexes "around" it.
```
Random rnd = new Random();
int[][] array = new int[5][5];
for (int row = 0; row < array.length; row++) {
for (int col = 0; col < array[row].length; col++) {
array[row][col] =... |
2018/03/22 | 1,060 | 4,386 | <issue_start>username_0: Suppose that I have a Directive decorator which adds a static method to it's target called factory:
```
function Directive(constructor: T) {
return class extends constructor {
static factory(...args): ng.IDirectiveFactory {
const c: any = () => {
return constructor.apply(this, args);
};
... |
2018/03/22 | 490 | 1,608 | <issue_start>username_0: I've two tables:
```
`orders`
order_id order_office_id order_invoice_id
1 1 1
2 2 2
3 2 2
4 2 3
5 1 4
`invoices`
inv_id inv_order_id inv_amo... |
2018/03/22 | 358 | 1,345 | <issue_start>username_0: I'm trying to understand how an OS figures out what thread is a current one (for example, when the thread calls `gettid()` or `GetCurrentThreadId()`). Since a process address space is shared between all threads, keeping a thread id there is not an option. It must be something unique to each thr... |
2018/03/22 | 1,139 | 3,135 | <issue_start>username_0: I am trying to group items an array of items by a property and then reindex the result starting from `0`.
The following function returns a grouped set of items.
```
groupItemBy(array, property) {
let hash = {},
props = property.split('.');
for (let i = 0; i < array.length; i++) {
... |
2018/03/22 | 689 | 2,666 | <issue_start>username_0: I have tried downloading small files from google Colaboratory. They are easily downloaded but whenever I try to download files which have a large sizes it shows an error? What is the way to download large files?<issue_comment>username_1: Google colab doesn't allow you to download large files us... |
2018/03/22 | 1,203 | 4,380 | <issue_start>username_0: I do not know exactly what I am looking for, that is the reason why I am opening a new question. If there is another question which is answered, please mark this question as a duplicate.
>
> Please understand I am new to IOS development, so if I write something
> that is not quite right, fe... |
2018/03/22 | 928 | 3,408 | <issue_start>username_0: I need to get a `UILabel` to go to more than one line if text requires with autolayout. In code and also in storyboard for good measure I have set numberOfLines to 0 and wordwrapping on and I've also called `sizeToFit`.
The full amount of text will display on multiple lines if I set the height... |
2018/03/22 | 1,051 | 2,858 | <issue_start>username_0: I have a data table that has entries for every one minute, it's bulky dataset. So I need to get every 2 minutes data retrieving `10 minutes dataset from last valid record`. All these data is used in the graph drawing, so trying to limit the number of records displayed in the chart.
eg for a sam... |
2018/03/22 | 1,264 | 5,216 | <issue_start>username_0: I had a perfectly functional application on the app store for over a year which featured Facebook signup and it all worked without any problems. However, few days ago I got few complaints from users who say that Facebook login causes the app to get stuck on login screen. I've investigated the b... |
2018/03/22 | 811 | 2,712 | <issue_start>username_0: I have installed Jupiter notebook and I only have python 2 as a default kernel. I want to change it from python 2 to python 3. How could I do that?[](https://i.stack.imgur.com/F0Cbi.png)<issue_comment>username_1: In case you install... |
2018/03/22 | 972 | 3,344 | <issue_start>username_0: I am working on a game where I use different sized objects - such as houses, trees etc. My question is, which way should I determine is the place I am going to place my object free or not? World is generated randomly every time the game is launched.
(I'm only using x and z coordinates) For exa... |
2018/03/22 | 289 | 1,050 | <issue_start>username_0: I'm trying to run java program from mac terminal. I need to refer the library path before compilation.i keep getting import error because its not referring to the jar files.i cant get this to work. Any advise on this would be helpful.
**Please find the below commands used:**
```
export CLASS... |
2018/03/22 | 1,246 | 4,889 | <issue_start>username_0: I have two combo boxes. When select the first combo box's first element the second combo box's elements need to change accordingly.
```
{
xtype: 'combobox',
fieldLabel: 'Type',
name: 'type',
store: 'type',
displayField: 'name',
valueField: 'id',
queryMode: 'local',
... |
2018/03/22 | 1,080 | 4,265 | <issue_start>username_0: I am trying to remove the h1 title on my about page in my functions.php file.
Here is my code:
```
function remove_about_page_title()
{
if (is_page('about')) {
remove_action('storefront_page', 'storefront_page_header', 10);
}
}
add_action('init', 'remove_about_page_title');
`... |
2018/03/22 | 1,214 | 4,411 | <issue_start>username_0: How can I use the `first()` method on a relation in an Eloquent query builder?
I only want to return the first section and the first subsection within that section.
I have the following query in my Assessment service:
```
public function firstSubsection()
{
return $this->model->w... |
2018/03/22 | 1,595 | 5,827 | <issue_start>username_0: I am studying about Haskell. And i am trying to make a while loop that everytime it runs it makes the value 'a' 2 times smaller with flooring after that.
this works fine:
```
func a =
if a > 0 then
func (a/2)
else
print (a)
```
Now adding floor function to it.
```
fu... |
2018/03/22 | 1,038 | 3,608 | <issue_start>username_0: How can I have an object property from an array of objects (`inputArray`) added to another array (`output`).
```
var inputArray = [
{ subject: 'Maths', integervalue: '40', booleanvalue: null },
{ subject: 'Science', integervalue: '50', booleanvalue: null },
{ subject: 'Chemi', integervalue:... |
2018/03/22 | 585 | 2,025 | <issue_start>username_0: im trying to make a "sleep" function for real time updating my UI display with updating variables.
using xcode 9.2 swift 4
```
//sleep function for UI display
func sleep(time: Double, closure: @escaping (Timer) -> (Void) ) {
var timer = Timer.scheduledTimer(timeInterval: time, target: self... |
2018/03/22 | 626 | 2,402 | <issue_start>username_0: I use fetch() to post json data as below
```
var data = {
name: this.state.name,
password: <PASSWORD>
}
fetch('http://localhost:3001/register/paitent', {
method: 'POST',
body: JSON.stringify(data),
mode: 'no-cors',
... |
2018/03/22 | 338 | 979 | <issue_start>username_0: Sorry, this is tricky for me to find through search
```
?
? Question ? X Y ?
Answer 1
Answer 2
Answer 3
```
Where X and Y are numbers from 0 to 100;
How to stack X on top of Y like a fraction, in good way?
EDIT: It's example, markup can be added/changed.<issue_comment>username_... |
2018/03/22 | 547 | 1,775 | <issue_start>username_0: I have next models:
```
class User(models.Model):
id = models.IntegerField(primary_key=True)
class UserMarketSubscription(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
market = models.ForeignKey('Market', on_delete=models.CASCADE)
date_in = models.Dat... |
2018/03/22 | 2,127 | 7,470 | <issue_start>username_0: Below is a snippet of the decision tree as it is pretty huge.
[](https://i.stack.imgur.com/lks6d.png)
How to make the tree stop growing when the lowest **value** in a node is under 5. Here is the code to produce the decision ... |
2018/03/22 | 1,401 | 4,810 | <issue_start>username_0: I am very new to coding in PHP/MySQL, for fun I've been downloading some World of Worldcraft data from their API to test what I've learnt about PHP.
Sorry for the long post, I'm trying to give as much info as needed, whilst being concise :)
The short version is "my code takes 25 minutes to ru... |
2018/03/22 | 217 | 824 | <issue_start>username_0: I have a server listening for messages on a port running in a different thread. Now once it receives a message I need it to be displayed in a textbox.
1. Is there method like runOnUiThread() (which is in android) or equivalent in Vala, GTK?
2. Or else what are the alternatives?<issue_comment>u... |
2018/03/22 | 289 | 976 | <issue_start>username_0: My React app has the following render definition
```
ReactDOM.render(
,
document.getElementById('react')
)
```
All URLs look as such
```
http://localhost:8080/myApp#/dashboard
http://localhost:8080/myApp#/about
```
I want to add a trailing slash before the `#` so the URLs look a *litt... |
2018/03/22 | 404 | 1,284 | <issue_start>username_0: This is my input structure. All the fields here are optional because it can have zero or more elements in this json string. I am fine to use liftweb or regular scala.
```
{
"fname" : String,
"lname" : String,
"age" : String,
"gender" : String,
"phone" : String,
"mstatus" : String
}
```
... |
2018/03/22 | 912 | 2,820 | <issue_start>username_0: I'm learning PHP and I found useful tutorials online, so I'm trying to build my very first site in PHP. I have a problem with CSS implementation. I keep my tab with localhost always on so I dont have to run it every single time when I change something. Problem is, when I code some CSS it loads ... |
2018/03/22 | 586 | 2,195 | <issue_start>username_0: I have been trying to move the marquee text from right to left in Android, using ellipsize.
It does move, but the issue is it moves only if the text size is smaller than screen view.
For that reason, I even added extra spaces both left and right of my text, to make the text size greater tha... |
2018/03/22 | 656 | 2,380 | <issue_start>username_0: I have setup all these steps and bundle id on Firebase Dashboard and tried crash many times but not getting any report.
1. pod 'Fabric', '~> 1.7.6'
2. pod 'Crashlytics', '~> 3.10.1'
3. In Build phase added run Script : **"${PODS\_ROOT}/Fabric/run"**
4. Debug Inforation Format : DWARF with dSYM... |
2018/03/22 | 640 | 2,025 | <issue_start>username_0: I'm facing some difficulties executing GET request with access token via python.
For some reason when I execute the request from POSTMAN I get the expected result, however, when using python I get connection error :
```
A connection attempt failed because the connected party did not properly r... |
2018/03/22 | 438 | 1,314 | <issue_start>username_0: I am using "**java-client-5.0.4**" version, I am unable to select image from gallery.
Here is my code
```
List galleryElements = driver.findElementsByClassName("android.widget.ImageView");
TouchAction t = new TouchAction(driver);
t.tap(galleryElements.get(0)).perform();
```
[![enter image ... |
2018/03/22 | 4,658 | 13,345 | <issue_start>username_0: I initially wanted to migrate a JAVA EE project into maven. However, I ran into a dispatching error.
I got this stack trace in the file :
C:\Program Files using(x86)\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\My\_SERVER\SystemOut.log
```
> [22/03/18 07:46:32:755 VET] 00000020 XmlConfigura... |
2018/03/22 | 513 | 1,908 | <issue_start>username_0: I am building an Android MVVM application using RxJava2. What I want is to expose an `Observable` in my ViewModel, which I also can receive the last emitted value (like a `BehaviourSubject`). I don't want to expose a `BehaviourSubject` because I don't want the View to be able to call `onNext()`... |
2018/03/22 | 1,298 | 3,727 | <issue_start>username_0: Let's say we want to add a value to "favorites" in a Vue store:
* If it's already there REMOVE
* Otherwise ADD
I know that the code below is probably neither a correct nor an optimal way of doing it, so I'm wondering what would be a proper way to do it?
component:
----------
---
`item` is ... |
2018/03/22 | 1,153 | 4,559 | <issue_start>username_0: PROBLEM: Use one single viewModel with two different views.
I have a `Window` with a control `ContentControl` which is binded to a property in the `DataContext`, called `Object MainContent {get;set;}`. Base on a navigationType `enum` property, I assign other ViewModels to it to show the correc... |
2018/03/22 | 691 | 2,548 | <issue_start>username_0: I have this image:
[](https://i.stack.imgur.com/rxDQT.png)
What I'm trying to do is, the cells have different colors. main action=1 green and action=0 red color.
I have this html code:
```
| {{item.alarmdesc}} {{getProductName(item.device\_seri... |
2018/03/22 | 1,438 | 5,611 | <issue_start>username_0: I know everything is passed by value in Go, meaning if I give a slice to a function and that function appends to the slice using the builtin `append` function, then the original slice will not have the values that were appended in the scope of the function.
For instance:
```
nums := []int{1, ... |
2018/03/22 | 209 | 657 | <issue_start>username_0: ```
```
This my code. How I can remove padding to error text?
[img with error](https://i.stack.imgur.com/cc2PO.jpg)
[img with error](https://i.stack.imgur.com/b6Hmi.jpg)<issue_comment>username_1: You have to remove this line
```
android:layout_marginStart="-5dp"
```
or
if you need that m... |
2018/03/22 | 298 | 988 | <issue_start>username_0: Does Create-React-App (or Webpack used by Create-React-App) at any stage (development, staging or production) optimise your node\_modules? That is, if I had an import like this:
`import _ from 'lodash'`
and only use the `map` function in my project. Would my build bundle for production have a... |
2018/03/22 | 262 | 836 | <issue_start>username_0: Is there any way to know when to use Promises vs Async/Await?
I am asking that because it's not so clear for me to know which one performs better, or also is better readable, is there any advantages using each one of them or it doesn't matter?
Thanks!<issue_comment>username_1: CRA use `Uglify... |
2018/03/22 | 247 | 799 | <issue_start>username_0: I know how to use hasAnyAuthority directive in jhipster for HTML part. But i am searching how can i do this in typescript part like if user has role farmer navigate to farmer profile, for admin navigate to dashboard.<issue_comment>username_1: CRA use `UglifyJsPlugin` in the [webpack.config.prod... |
2018/03/22 | 1,074 | 4,159 | <issue_start>username_0: I want to dynamically add http-headers via [CloudFlare workers](https://blog.cloudflare.com/introducing-cloudflare-workers/) ONLY for the first time visitors. For example these headers:
```
Link: ; rel=preload; as=style; nopush
Link: ; rel=preload; as=script; nopush
```
So, what I need is th... |
2018/03/22 | 955 | 3,838 | <issue_start>username_0: I am uploading an image directly to AWS bucket which works perfectly fine from my location (India). The same code fails to upload an image when the user location is Singapore.
Following is the method I'm using to upload the image.
```
func uploadMediaOnS3(contentType: String = "application/o... |
2018/03/22 | 436 | 1,701 | <issue_start>username_0: I am creating a new Angular project without downloading the dependencies, like: `ng new sample-app --skip-install`
I have all necessary dependencies in node\_modules in a different folder of a different angular app named older-app. I want the newly created sample-app to refer to the node\_modu... |
2018/03/22 | 579 | 2,131 | <issue_start>username_0: In the index.html within the "src" folder, I wrote {{ title }} like as follows:
```
{{ title }}
```
In product.components.ts, I defined the title as "Products" as follows, but it wont works.
```
export class ProductComponent implements OnInit {
products: Product[] = [];
dataInvalid = ... |
2018/03/22 | 1,093 | 2,502 | <issue_start>username_0: I have a list of data frames:
```
data1 <-
data.frame(
ID = c(1, 1, 1, 1),
Name1 = c(3, 2, 3, 2),
Name2 = c(4, 5, 4, 5),
Name3 = c(6, 7, 6, 7),
Name4 = c(8, 9, 8, 9))
data2 <-
data.frame(
ID = c(2, 2, 2),
Name4 = c(7, 3, 3),
Name2 = c(3, 1, 1),
Name3 = c(2, ... |
2018/03/22 | 933 | 2,727 | <issue_start>username_0: On running the below query:
`SELECT DISTINCT [RULE], LEN([RULE]) FROM MYTBL WHERE [RULE]
LIKE 'Trademarks, logos, slogans, company names, copyrighted material or brands of any third party%'`
I am getting the output as:
[](h... |
2018/03/22 | 702 | 1,992 | <issue_start>username_0: I am working on a Ionic project that uses the Ionic Native google maps and I want to add to the map some markers and make them invisible.
The marker declaration looks something like this:
```
this.map.addMarker({
position: {lat: svLat + Math.abs(neLat - svLat) / 2, lng: svLong + Math... |
2018/03/22 | 1,063 | 3,780 | <issue_start>username_0: I have a select component. I have a input component. When the select component is changed I need to .select() the input component. These are two unrelated components i.e. siblings to the main Vue instance.
Both of these components are composed from templates so using the ref attribute is not a... |
2018/03/22 | 972 | 3,650 | <issue_start>username_0: From the MSDN docs on `list.Clear()`
>
> Count is set to 0, and references to other objects from elements of the collection are also released.
>
>
>
From what I've been taught (which could be wrong), disposed & released are different things. Disposed means the items is completely removed ... |
2018/03/22 | 2,320 | 6,185 | <issue_start>username_0: I want to try to make some more types of regex, so I have been trying to make the following work.
Here is my expression: <https://regex101.com/r/VzspFy/4/>
On the test strings, the very first 3 are good, so patterns like that must be matched, the problem is the last one, which I don't want to... |
2018/03/22 | 504 | 1,814 | <issue_start>username_0: How do I make my cursor a prepared statement as well as a dictionary.
I have the following.
```
cursor(cursor_class = MySQLCursorPrepared)
prints
cursor(dictionary = True)
prints
```
So I am overwriting the prepared statement with the dictionary. I am using the mysql connector for pyth... |
2018/03/22 | 920 | 2,634 | <issue_start>username_0: In Julia, I want to solve a system of ODEs with external forcings `g1(t), g2(t)` like
```
dx1(t) / dt = f1(x1, t) + g1(t)
dx2(t) / dt = f2(x1, x2, t) + g2(t)
```
with the forcings read in from a file.
I am using this study to learn Julia and the package DifferentialEquations, but I am havin... |
2018/03/22 | 583 | 1,767 | <issue_start>username_0: ```
class Parent(models.Model):
name = models.CharField(max_length=255, blank=False)
class Child(models.Model):
parent = models.ForeignKey(Warehouse, related_name="children")
name = models.CharField(max_length=255, blank=True)
```
Need to apply search from **Child** by some *... |
2018/03/22 | 303 | 1,046 | <issue_start>username_0: I have the following code:
```
$orders = Order::all();
$count = $orders->count();
$ordersActive = $orders->during()->count(); //this not working, I get undefined method during
```
I have defined the scope in the model Order:
```
public function scopeDuring($query)
{
$query->whereNotIn('... |
2018/03/22 | 420 | 1,354 | <issue_start>username_0: In the Bootstrap 4 docs about Jumbotron they show in the example the following:
```
[Learn more](#)
```
What is the need of a paragraph here?
And why use the 'lead' class? It seems to do nothing with the button.<issue_comment>username_1: The `lead` class makes the font stand out a little.
... |
2018/03/22 | 1,009 | 3,071 | <issue_start>username_0: Help me in solving this issue as i am beginner in android ,i need some help..
Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
>
> java.io.IOException: Can't write [D:\bi.mobile\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\User... |
2018/03/22 | 876 | 3,084 | <issue_start>username_0: I am joining three tables and taking count [MY SQL FIDDLE](http://sqlfiddle.com/#!9/e34392/25). In this query I want to take one more count like `total_trip` that means I already join the `trip_details` table, in this table take all count that is total trip count, I am not able to write sub que... |
2018/03/22 | 397 | 1,412 | <issue_start>username_0: I use SAP UI5 version 1.52.6.
Depending on model data, I would like to enable/disable a sap.ui.table.TreeTable view accordingly. see view:
```
```
Problem is that there is no method to enable the checkbox in TreeTable, see a similar topic being asked [here](https://stackoverflow.com/question... |
2018/03/22 | 309 | 1,168 | <issue_start>username_0: I have to run a loop in multiple sheets by getting the last column for each sheet. How can I get the last column of every sheet? I tried putting this a function. Can you please suggest on this as I am just a beginner on this.
Update:
Its working fine now. Tried the code provided by @sktneer. T... |
2018/03/22 | 1,813 | 4,290 | <issue_start>username_0: I am trying to copy the `stochastic` function buffers in the variables. But what I see is that the candles are copied in the array in descending order.
```
double KArray[],DArray[];
ArraySetAsSeries(KArray,true);
ArraySetAsSeries(DArray,true);
int stochastic_output = iStochastic(_Symbol,PERIO... |
2018/03/22 | 287 | 925 | <issue_start>username_0: Let's say I would like to implement a route that accepts email and a reference id
```
email: <EMAIL>
ref_id: abcd1234
website.com/ticket/email=<EMAIL>1&ref_id=abcd1234
```
how do I design this url in laravel? should I just use a get route?<issue_comment>username_1: ```
Route::get('ticket/{e... |
2018/03/22 | 965 | 3,317 | <issue_start>username_0: For one of my exercises, I have to test my work with JUnit. The first test passed with no errors but the other two have no errors but have failures instead.
What does this mean?
```
public class TestExercise2 {
int [][] numArray = {{3, -1, 4, 0},{5, 9, -2, 6},{5, 3, 7, -8}};
@Test
pub... |
2018/03/22 | 2,321 | 8,978 | <issue_start>username_0: I have six `textfields`. Now if all my `textfield` are filled and tap on any `textfield` the it should always put focus on sixth `textfield` & show the keyboard. I have tried below code but it does not show `keyboard` and only put focus when I tap on sixth `textfield`. please tell me what is th... |
2018/03/22 | 2,355 | 8,916 | <issue_start>username_0: I was doing the assignment when this came up and as I am just a beginner I have no idea what is going on or how to solve it.
All the commented parts are just me trying out different ways to do it.
```
import sys
# YOUR CODE HERE
#small = input("Width, Height and Depth of small box: ")
#big = ... |
2018/03/22 | 415 | 1,686 | <issue_start>username_0: I have a small C# console app that monitors some configured process(es)/app(s), these are also C# console apps, and keep them running so it starts them if they crashed. It works well if I run this monitor console app by executing exe file (in interactive mode). However if I install this app as ... |
2018/03/22 | 1,300 | 4,159 | <issue_start>username_0: I build app that display webview.
when I change the size of WebView my app is crashed.
here my code:
```
final WebView videoWebView = (WebView) findViewById(R.id.videoWebView);
videoWebView.getSettings().setJavaScriptEnabled(true);
videoWebView.getSettings().setJavaScriptCanOpenWindow... |
2018/03/22 | 893 | 3,031 | <issue_start>username_0: In my code I need to keep track of two kinds of data items, namely the original data items and the transformed data items.
Both original and transformed data items I store as `Array{Float64,1}`.
However, I need to keep track if a data item is a transformed one or not as some functions in my cod... |
2018/03/22 | 556 | 1,954 | <issue_start>username_0: ```
I have created docker container for ubuntu:16.04 and spark.
```
my docker image name `TestDocker`
using spark application I have copied test.txt to container /opt/ml/ location.
when i am executing below command it is showing like below:
```
docker images
REPOSITORY ... |
2018/03/22 | 4,677 | 8,343 | <issue_start>username_0: After searching over an hour (this forum, Youtube, class notes, google) I've found no help for my question. I'm a complete newb who knows nothing about R or stats.
I'm attempting to create a linear mixed effects model in R. I'm measuring leaf width across three different locations (Jacksonvill... |
2018/03/22 | 401 | 1,040 | <issue_start>username_0: I have a list inside a table, I want to align this list to the right, it sounds easy, but some reason is not working.
This is my code:
```css
ul {
list-style: none;
}
td{
vertical-align: top;
width:300px
}
.ri{
background-color:#AAA;
text-align:right;
}
```
```html
| | ... |
2018/03/22 | 366 | 1,196 | <issue_start>username_0: I have a form in which a unique class is set for one option:
```
One
Two
```
When I connect `selectmenu`
```
$('#mylist').selectmenu();
```
Class in new `selectmenu` object disappears (does not appear)
```
- Two
```
How to fix it? I want
```
- Two
```
OR
```
- Two
```<issue_c... |
2018/03/22 | 656 | 2,313 | <issue_start>username_0: I want my SAPUI5 ODataModel to send OData requests of the form
```
https:////?search='lalaland'
```
There are tons of examples how to add a filter with `model.filter(new Filter(...));` but this is *not* what I want. Filtering means I directly address a certain property with a certain compara... |
2018/03/22 | 1,466 | 4,197 | <issue_start>username_0: I have been searching everywhere for something equivalent of the following to PyTorch, but I cannot find anything.
```
L_1 = np.tril(np.random.normal(scale=1., size=(D, D)), k=0)
L_1[np.diag_indices_from(L_1)] = np.exp(np.diagonal(L_1))
```
I guess there is no way to replace the diagonal ele... |
2018/03/22 | 1,675 | 5,077 | <issue_start>username_0: I am working on an AR app for which I am placing one **3D model** in front of the device **without horizontal surface detection**.
Based on this 3D model's **transform**, I creating **ARAnchor** object. [ARAnchor](https://developer.apple.com/documentation/arkit/aranchor) objects are useful to ... |
2018/03/22 | 1,438 | 4,165 | <issue_start>username_0: I am looking to change the image header height on my WordPress site, I am using The Company theme, but I can't seem to figure out the CSSrequired
[My site](http://www.thepowerwithin.org.uk/what-we-offer/)
As you can see there is a clouds image in the header I would like this to go further dow... |
2018/03/22 | 1,476 | 4,320 | <issue_start>username_0: What does the constraint Required do in the form builder? If a field was not submitted (not empty value!), I don't receive a corresponding error message. This field is just ignored.
```
$builder
->add('firstname', TextType::class, [ 'constraints' => [new NotBlank()], 'required'=>true])
... |
2018/03/22 | 633 | 2,128 | <issue_start>username_0: I have built a query with a few condition statements added on. They all work fine, but when I type to had a limit option, I only get errors.
So I am using go 1.10 with Gorm and the Gin framework. This is my current working code,
```
qb := myDB.Table("table").Select("xx, xxx, xxx, xxx")
rows,... |
2018/03/22 | 671 | 2,336 | <issue_start>username_0: I am trying to start uiautomatorviewer from default sdk installed location using terminal (Ubuntu 16) :
```
>abc@abc:~/Android/Sdk/tools/bin$ ./uiautomatorviewer
```
and I am getting an error as below :
**Error**
```
-Djava.ext.dirs=/home/mukesh/Android/Sdk/tools/lib/x86_64:
/home/abc/And... |
2018/03/22 | 570 | 2,350 | <issue_start>username_0: I would like to register my AuthenticationGuard, which checks for Authentication, globally on my application, so that by default all routes require authentication.
```
const authGuard = app
.select(AuthModule)
.get(AuthGuard);
app.useGlobalGuards(authGuard);
```
What is the best/nest... |
2018/03/22 | 1,591 | 5,036 | <issue_start>username_0: I am stumped on a problem.
This problem requires involves a clue which has missing letters. There is an array of words that are to be matched against the clue, however, the word should only match if it does not already have a letter from the clue.
I am using a regex and it is matching all in... |
2018/03/22 | 880 | 3,173 | <issue_start>username_0: I was following several different Web Sites explaining how to use RetryAnalyzer (they all say basically the same thing, but I checked several to see whether there was any difference). I implemented as they did in the samples, and deliberately caused a failure the first run (which ended up being... |
2018/03/22 | 319 | 1,204 | <issue_start>username_0: Are there any existing services which could help built a simple server for a Unity game? All I want is to make an app to request and receive an image and some text from the web and show it to users. So when I change the image and the text on the server side, all my apps will display new pic and... |
2018/03/22 | 361 | 1,726 | <issue_start>username_0: I am using Firebase to send remote push notification for an iOS app. Now I need to show only badge in app icon without alert when app is not running.
Is it possible to implement something like that?
Thank you<issue_comment>username_1: Request `UIUserNotificationTypeBadge` permission only when... |
2018/03/22 | 806 | 2,566 | <issue_start>username_0: I have a string that is comma separated, so it could be
`test1, test2, test3` or `test1,test2,test3` or `test1, test2, test3`.
I split this in Go currently with `strings.Split(s, ",")`, but now I have a `[]string` that can contain elements with an arbitrary numbers of whitespaces.
How can I e... |
2018/03/22 | 654 | 2,126 | <issue_start>username_0: I’m trying to learn react and was wondering where in the react documentation is using a callback function with setstate described? Specifically the part that explains what the arguments to the callback are? The first argument being state and the second being props?<issue_comment>username_1: You... |
2018/03/22 | 454 | 1,517 | <issue_start>username_0: I recently started working with Imagemagick and I had a problem that needs to be solved.
I have such a thumbnail.

And there is such a mask.

I need to get this image on the output.
](https://i.stack.imgur.com/uSiQo.png)
URL:
**Default (German)**
index.phpid=19&
L=0&
tx\_news\_pi1%5Bnews%5D=1&
tx\_news\_pi1%5Bcon... |
2018/03/22 | 1,281 | 4,316 | <issue_start>username_0: I have created svg from fabric js. While creating card i have applied text-align to object using below code:
```
activeObj.set({
textAlign : 'center',
});
canvas.renderAll();
```
So my svg is look like below:
<https://codepen.io/dhavalsisodiya/pen/BrRbRG>
Now when i changed my {company... |
2018/03/22 | 847 | 3,642 | <issue_start>username_0: I have the following requirement.
I have An Angular service with an BehaviorSubject.
A http request is done and when this is done the BehaviorSubject.next method is invoked with the value.
This value can change during the lifecycle of the single page.
Different subscribers are registered to i... |
2018/03/22 | 839 | 3,409 | <issue_start>username_0: I have this little crazy method that removes decimal places from string value.
```
private double getDoubleFromString(final String value) throws ParseException {
NumberFormat format = NumberFormat.getInstance(Locale.getDefault());
Number number = format.parse(value);
return number.... |