date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/02
462
1,597
<issue_start>username_0: I have a number of text files with a layout like below, ``` heading subheading info1 info2 info3 ``` where the character count of each line will vary from file to file. For each file, I'd like to store line 2 as a Python variable. I can load the whole file into a variable, ``` with open('d...
2018/03/02
677
2,528
<issue_start>username_0: This is driving me crazy. I have finished a new version of an app that is on the app store. The current version that is for sale is 1.68. I want my new version to be 1.8. I have the new version in all the right places in my app (I've checked this dozens of times). But after I create an archive,...
2018/03/02
457
1,781
<issue_start>username_0: I use Apache-Poi to programmatically create an Excel spreadsheet, but it doesn't support adding macros. Is there a way to add a macro to a spreadsheet with Java. Im happy to create the Macro manually within Excel if there was a way I could export it and then programmatically import/add it to a...
2018/03/02
470
1,785
<issue_start>username_0: Assume there is `applicationId com.example.application` in `build.gradle`. This name is shown after "<https://play.google.com/store/apps/details?id=>". I want to change it to another, for instance, "org.domain.app". Should I also change `package name` in AndroidManifest and rename package folde...
2018/03/02
986
3,311
<issue_start>username_0: I have a plain test list of words e.g: Aardvark Bear Cat Dog Elephant Giraffe I want to turn this into an object with the format: ``` var array: [NSArray] = [["Aardvark", false, 0], ["Bear", false, 1],["Cat", false, 2], ["Dog", false, 3], ["Elephant", false, 4], ["Giraffe", false, 5]] ``` ...
2018/03/02
1,654
6,504
<issue_start>username_0: I am running MaterialUI-Next and I've tried all variants of the drawer but I can't get it to close when an item in the drawer has been clicked. I know the temporary variant allows me to do that but it closes when anything is clicked. I need it to close only when a ListItem is clicked. In my ca...
2018/03/02
940
3,276
<issue_start>username_0: i'm trying to get vehicle data from `vehicles`, however I need to display the vehicle make even if it does not exist within `vehicles` if the make ID is within a certain range. **vehicles** ``` group: 1996 make: 8 group: 1996 make: 6 group: 1996 make: 3 ``` **make** ``` id: 01 code: 8 d...
2018/03/02
495
1,710
<issue_start>username_0: This is my mat-button: ```xml Edit Client ``` How can I control it and make it disabled or not based on whether a select form is emtry or not? Here is my field form: ```xml {{food.company}} ```<issue_comment>username_1: use [disabled] atttribute with button ``` Edit Client ``` Upvote...
2018/03/02
1,725
5,953
<issue_start>username_0: I have a branch and a tag both named `test`. If I have an unambiguous ref like `heads/test` or `refs/heads/test`, how can I checkout without going into detached state? ``` git checkout heads/test ``` I want to save the current HEAD state and later return to it: ``` # Exit if dirty # Save H...
2018/03/02
911
3,435
<issue_start>username_0: I know that the [operator +](http://www.cplusplus.com/reference/string/string/operator+/) for `std::string` is not overloaded for two `const char*`. Thus, ``` std::string str = "Hello" + " World"; ``` does not work; Whereas, the following code works perfectly. ``` std::string hello = "Hell...
2018/03/02
759
3,108
<issue_start>username_0: Can someone explain the difference in behavior between these two ways of stopping a thread and then continue it again?. ``` Sleep(); //from Win32 std::this_thread::sleep_for(); ``` I remark in **terms of multithreading behavior** not in systems compatibility.<issue_comment>username_1: Whil...
2018/03/02
429
1,427
<issue_start>username_0: I'm appending HTML code into a div, it's an unordered list. So first I do: ``` $('.placeholder').append(''); ``` This works as expected. Then I do a loop for the list items: ``` $.each(headings, function(index, heading){ $('.placeholder').append('- ' + heading + ' '); }) ``` Then appe...
2018/03/02
1,322
4,072
<issue_start>username_0: I am using primefaces with JSF2.3 here is the way my dependencies are ``` dependencies { providedCompile 'javax.servlet:javax.servlet-api:4.0.0' compile group: 'javax.faces', name: 'javax.faces-api', version: '2.3' compile group: 'org.glassfish', name: 'javax.faces', version:...
2018/03/02
466
1,604
<issue_start>username_0: I have a use case where there can be HTML or PHP file in a folder but the user will only access HTML file. I was looking for htaccess redirect only if HTML file is missing. After some research, I tried below code which always redirect to php file no matter file exists or not. So if there is a f...
2018/03/02
625
1,774
<issue_start>username_0: I'm trying to align the column values, but they are of different lengths. I can't just use `Print '123' (+1, 9)` and then `Print '123456' (+1, 9)` because it'll look something like this: ``` 123456790123456790123456790123456790123456790123456790 <- Ignore this line 123 123456 ``...
2018/03/02
651
2,189
<issue_start>username_0: I am trying to make an array sorter. But I get an error: `Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7` I don't know how to fix it. If I delete the line with the arrow then the code works, but then it doesn't swap. What did I do wrong? Thanks for your help! ``` p...
2018/03/02
725
2,274
<issue_start>username_0: ``` def accessRecord(filePath: String, recordSize: Long, offset: Long): Int = { val fs = FileSystem.get(SparkHadoopUtil.get.conf) val stream = fs.open(new Path(filePath)) val bytes = Array.ofDim[Byte](recordSize) stream.readFully(offset, bytes) stream.close() bytes...
2018/03/02
624
1,753
<issue_start>username_0: I have the following data ``` ID v1 v2 v3 v4 v5 1 1 3 6 4 2 4 2 3 3 1 8 5 4 2 5 3 1 ``` Can I rearrange the data so that it will automatically create new columns and assign binary value (1 or 0) according to the value in each variable (v1 to v5)? E.g. In first row, I ha...
2018/03/02
336
1,314
<issue_start>username_0: **I do this, but on the mobile iPhone it does not work. Works everywhere except iPhone** ``` @HostListener('document:click', ['$event.target']) public onClick(targetElement: HTMLElement): void { if (!targetElement) { return; } const clickedInside = this...
2018/03/02
978
4,205
<issue_start>username_0: Suppose I have a machine. It can be a single production server, one of production nodes in a cluster, some kind of staging server, a server or a cluster for testing or a developer workstation. Or something different. Now I want to deliver app to the machine and run it. I can `git pull && docke...
2018/03/02
999
3,926
<issue_start>username_0: I'm trying to call some function that includes adding element to vector ( argument passed by value ): ``` std::vector vec; void fun( Val v ) { ... vec.push\_back(std::move( v )); ... } ``` The question is: are there any benefits from move **semantics**? I'm confused about variable will...
2018/03/02
1,599
5,630
<issue_start>username_0: I am encountering problems in understanding the static identifier in the specific case of this program. The context of this program is a lecture about "pointers". This program's job is to create a new name for a temporary file, it accomplish this (with the help of `static int sequence`) by cre...
2018/03/02
450
1,608
<issue_start>username_0: How can I use '&' VB operator in C# Asp.net SQL query from the following code. The below code is of VB. ``` query = "select top 1 * from Name Where ID=" & Order(0) ``` My code: ``` SqlCommand cmd = new SqlCommand("select top(1) * from Name where ID=", & order[0], con) ``` Which throws me...
2018/03/02
1,315
4,148
<issue_start>username_0: Have a text file, I used a split method to cut. All is okay except that by formatting I have problems. Expected output format: > > Ime: John , Prezime: Davidson , Datum rodjenja: 05.maj.1988, Mesto > rodjenja: Belgrade > > > Date must be "05.may.1988". Instead I get it as `05051988` as i...
2018/03/02
1,741
6,179
<issue_start>username_0: So I have two dropdownlists, the second dropdown is dependent on the first one, hence the cascading style requirement. I have the first dropdownlist populated through a stored procedure but I'm unsure how to pass the ID value of the first dropdown to a stored procedure in order to populate the ...
2018/03/02
2,513
7,903
<issue_start>username_0: I've configured an AWS Glue dev endpoint and can connect to it successfully in a pyspark REPL shell - like this <https://docs.aws.amazon.com/glue/latest/dg/dev-endpoint-tutorial-repl.html> Unlike the example given in the AWS documentation I receive WARNings when I begin the session, and later ...
2018/03/02
360
1,412
<issue_start>username_0: I'm using laravel gates in my web.php, where i add middleware for can as follows ``` Route::post('/sellproducts', 'ProductController@Sell')->middleware('auth')->middleware('can:admin'); ``` i want to add another rule for example can:admin or can:moderator so either of them is true, gate will...
2018/03/02
595
1,856
<issue_start>username_0: Here is my data ``` COUNTYID POLLUTANT TYPE EMISSION 1 A 1 1 A 2 1 B 1 1 B 2 2 A 1 2 A 2 2 B 1 2 B 2 3 A 1 3 A 2 3 B 1 3 ...
2018/03/02
1,279
4,811
<issue_start>username_0: i'm trying to create flask web application on google app engine python 3 flexible env with oauth2 authentication on custom domain. So, the problems are following : 1)I have added custom domain to my project, and also added SSL to that custom domain. In google cloud console everything seems ...
2018/03/02
861
3,143
<issue_start>username_0: When I try to run my unit tests, I get the following output ``` $ npm test > @ test C:\workspace\project > mocha -r ./testhook.ts app/**/*.spec.ts C:\workspace\project\app\common\product\price.model.ts:92 export class Price extends AbstractPrice { ^ ReferenceError: __extends is not defined ...
2018/03/02
1,501
5,486
<issue_start>username_0: I would like to be able to programmatically generate an id token for iap using the user default credential on a dev environment (i.e. my own laptop with google cloud sdk installed and logged in). When following the [documentation](https://cloud.google.com/iap/docs/authentication-howto#authenti...
2018/03/02
1,129
4,039
<issue_start>username_0: I've been tasked with modernising a web application developed in 2009. It is written in VB.NET and using ASP.NET WebForms. I would like to use the latest language constructs in VB.NET. I get helpful pointers saying "Visual Basic 10.0 does not allow string interpolation", which was what I was ...
2018/03/02
834
2,689
<issue_start>username_0: It's easy to replace spaces with (say) underscores: ``` y = x.replace(/ /g, '_'); ``` It's also easy to remove leading spaces: ``` y = x.replace(/^ +/, ''); ``` But is there a good way to replace only the initial spaces with underscores?<issue_comment>username_1: > > I want to replace ea...
2018/03/02
472
1,431
<issue_start>username_0: I would like to create a new column in my dataset, which is a difference in years between today and a another column already in the dataset, filled up with dates. the code above: ``` df['diff_years'] = datetime.today() - df['some_date'] df['diff_years'] ``` give me the following output (ex...
2018/03/02
540
1,910
<issue_start>username_0: In my module, I want to create a button in a tree view that shows the items grouped by month. So to create this button I added this code: ```xml Month ``` And I added this javascript: ``` odoo.define('randa_gamification.filter', function (require) { "use strict"; var ListView = require('...
2018/03/02
1,089
4,359
<issue_start>username_0: I've 2 db tables like as Family and Cars and have a class named Families. They connected eachother by a foreign key. **Family** ID | Surname | Address **Cars** ID | FamilyID | Name A family can have multiple cars. I want to bind this to a grid and I wrote this query: ``` var data = from ...
2018/03/02
1,810
4,831
<issue_start>username_0: I have two data frames: 1). ``` 2017 Hours name Month a January 199.25 February 203.25 March 220.75 April 203.50 May 242.50 June 261.25 ...
2018/03/02
648
2,342
<issue_start>username_0: In our Datalake (Hadoop/Mapr/Redhat) we have a directory which contains more than 40M of files. We can't run a ls command. I've tried to launch hadoop command getmerge to merge the files, but I have no output. Hadoop fs -rm don't work too . Is there another way to view the contenent of thi...
2018/03/02
436
1,567
<issue_start>username_0: I would like to count number of subdirectories in depth 2, but ignore the parent directories of depth 1 in the bash script. **Example:** ``` root_dir ---|--ignore_dir ---|--count_dir | |--count_dir ---|--ignore_dir | |--ign...
2018/03/02
818
2,499
<issue_start>username_0: I have searched for solutions around the internet, and everyone suggested using `position: relative` and `top: -2px` or `margin-top: -2px`. And both solutions indeed move the text inside the container, but also move the container itself up/down (or increases the height?): [![Example](https://...
2018/03/02
769
1,984
<issue_start>username_0: I have the following array `[681, 845, 787, 681]`. I want to return true only if both 681 and 845 are present. I feel like this should work: ``` registered_courses # => [681, 845, 787, 681] registered_courses.all? {[842, 681]} # => true ``` I would have expected this to return false since 84...
2018/03/02
837
2,679
<issue_start>username_0: I have the following image of a logo, which is a PNG file with an alpha (transparency) channel. Very common format for logos, but here is the Reuters logo as an example: [![enter image description here](https://i.stack.imgur.com/vGEHl.png)](https://i.stack.imgur.com/vGEHl.png) I'm using OpenC...
2018/03/02
920
3,600
<issue_start>username_0: I have set up an API token for my users which they can optionally provide when accessing API routes for additional data to be returned. This is my *auth.php* configuration: ``` 'defaults' => [ 'guard' => 'web', ], 'guards' => [ 'web' => [ 'driver' => 'session', ...
2018/03/02
743
2,803
<issue_start>username_0: I am noob .NET programmer so I tried to use ListView and display my items which I read from database. I tried to create column headers but the property Column is not available in System.Windows.Controls.ListView and it is in Forms.ListView. Can somebody tell me that is the difference and which...
2018/03/02
1,479
4,335
<issue_start>username_0: I'd like to know how to rewrite multiple paramaters into /param1/param2 Let's assume I have included a file called account.php with <http://myurl.com/index.php?p=account>. It works just fine and is rewritten to <http://myurl.com/account> but let's say I want to have multiple parameters...
2018/03/02
528
1,709
<issue_start>username_0: I have this code which applies force to the bullet node and make it move towards the enemy. This case the rocket is always faces upwards. My question is how can i rotate this bullet to face to the direction where the node is head. ``` let asd=SKSpriteNode(imageNamed: "nuke") asd.zPositi...
2018/03/02
648
1,883
<issue_start>username_0: Trying to flatten the aliases key out from Json ``` { "name": "<NAME>", "aliases": ["Rocky", "Champ"], "physical": { "height_in": 67, "weight_lb": 150 }, "Fights": 49 } ``` to like this below ``` { "name": "<NAME>", "aliases.0": "Rocky", "alia...
2018/03/02
868
2,710
<issue_start>username_0: I have a web application that receives location data via web sockets. I have installed rabbitmq on my mac via homebrew to run the web sockets locally. I am trying to enable rabbitmq\_web\_stomp but I get this error : ` ``` rabbitmq-plugins enable rabbitmq_web_stomp Error: {:plugins_not_found,...
2018/03/02
2,084
6,367
<issue_start>username_0: I'm querying an API using an example script I've made a few changes to from their documentation. The function I'm using looks like this ``` def info(vm, depth=1): if hasattr(vm,'childEntity'): if depth > MAX_DEPTH: return vms = vm.childEntity for child ...
2018/03/02
979
3,053
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/jRZM7.png)](https://i.stack.imgur.com/jRZM7.png) ...but with objects. for example : ``` one = {a: false, c: false, e: false}; two = {a: true, b: false, c: false, d:false}; result = somethingJavascriptHas.ObjectAnd(one, two); consol...
2018/03/02
716
2,813
<issue_start>username_0: Android studio. So basically I MainActivity I have NavigationDrawer that I use to go to fragments. When I open this fragment I need it to display a Listview. The problem is in order for listview to work I need to extend to listactivity, but in order to open fragment from menu I need to extend t...
2018/03/02
790
2,736
<issue_start>username_0: I am trying to pass a struct back into my Python from a c file. Let's say I have a file pointc.c like this: ``` typedef struct Point { int x; int y; } Point; struct Point make_and_send_point(int x, int y); struct Point make_and_send_point(int x, int y) { struct Point p = {x, y}; ...
2018/03/02
773
2,617
<issue_start>username_0: So I'm using a CMS that doesn't allow me to apply an onclick on the a tag or use an onclick. So it basically outputs in code like the following: ``` * [Something1](1) * [Something2](2) * [Something3](3) * [Something4](4) * [Something5](5) ``` What I need to be able to do is apply a class sho...
2018/03/02
703
2,114
<issue_start>username_0: So I have this task to write `isUniform()` function, which takes an array as an argument and returns true if all elements in the array are identical. This is what I wrote: ``` var array = [1, 2, 3, 4]; isUniform(array); console.log("- - - - - ") isUniform([1, 1, 1, 1]); function isUniform(a...
2018/03/02
397
1,184
<issue_start>username_0: I want to set custom shadow to `Toolbar`. Currently is shown default shadow, but it not appropriate for me. So how can I set a custom shadow? Activity layout: ``` ```<issue_comment>username_1: You need to display the result of the function. You could check just every element against the fir...
2018/03/02
413
1,250
<issue_start>username_0: I have found a nice add-in for Word 2013 (VSTO) and I installed it from an admin account, but it doesn't show up in the other local account. How can I transform the installation for the local user only into installation for all users?<issue_comment>username_1: You need to display the result of...
2018/03/02
303
990
<issue_start>username_0: ```js [### COOL LINK](someCoolLinkText.com) ``` What is best way to find and click on this link?<issue_comment>username_1: You can use this xpath :- `//h3[text()='COOL LINK']` Upvotes: 0 <issue_comment>username_2: Try to locate required node by its link text: ``` element(by.linkText('COO...
2018/03/02
1,039
2,829
<issue_start>username_0: I am trying to display some points using matplotlib, Although I can display them using print command but matplotlib gives error. The command that works is also there(commented). ``` import pandas as pd import numpy as np import matplotlib.pyplot as plt %matplotlib inline data = np.array([[-1,...
2018/03/02
615
2,169
<issue_start>username_0: I would like my categories to show all items in that category including descendant categories, so the parent category contains all items for subcategories. I have tried adding this method to my Category class in models.py ```py def get_all_products(self): # To display all items from all s...
2018/03/02
1,385
4,026
<issue_start>username_0: Wrestling the whole day with this issue: I Want to access data on Hadoop (through Hive). And installed the ODBC package. I'm able to make connection with the server: ``` con <- dbConnect(odbc:: odbc(), "hadoop") ``` And I am able to see the table that I want to get in R: ``` dblistTa...
2018/03/02
3,766
13,565
<issue_start>username_0: Trying to register a user on my site, and getting this error when submitting. `OperationalError: no such table: auth_user` i've run makemigrations and migrate as suggested in other posts but it hasn't helped. if i go to the accounts/sign\_up page (which calls the sign\_in view), enter the u...
2018/03/02
1,556
5,273
<issue_start>username_0: I want to make my application, which is purely in X11, high DPI aware. In order to do this, I need a way to find out the system scale factor that is configured in the display settings. Is there any way to get this system scale factor from an X11 app without resorting to higher level APIs like G...
2018/03/02
845
3,134
<issue_start>username_0: For a recent assessment that I have completed in my studies, I have a piece of code that **asks the user for four integers**. Then the program must **count and display the number of odd and even numbers in the entries**. The code is as follows: ``` # xx assignment 02 question 2 a = int(input("...
2018/03/02
504
1,862
<issue_start>username_0: I have a problem with a database connection pool in Spring Boot 2, where connections are not returned to the pool even though they are neatly wrapped in `@Transactional`. Upon opening the home page, I run a query and then open an SSE stream: ``` @GetMapping("") public SseEmitter home() { de...
2018/03/02
1,334
5,136
<issue_start>username_0: I am going to do batch processing with Google Cloud Platform. Now we are making batch processing with Cloud Functions, but these have a time limit of 540 seconds. Our batch process will take about 1 hour a day, once a day. I also tried parallel processing on Cloud Functions, but because it doe...
2018/03/02
1,558
5,678
<issue_start>username_0: I have a column which holds string datatype. I don't understand why the number of character is still 10 after removing the spaces or is there something I am missing out? ``` select top(5) [SECOND OCCURANCE] as [Date 2], len([SECOND OCCURANCE]) as [CharDate2], len(REPLACE([SECOND OC...
2018/03/02
907
3,252
<issue_start>username_0: The following code: ``` import scala.concurrent.{Await, Future} import scala.concurrent.duration.Duration import scala.util.DynamicVariable import scala.concurrent.ExecutionContext.Implicits.global object Main { def main(args: Array[String]) = { val a = new DynamicVariable(1) a.with...
2018/03/02
693
2,598
<issue_start>username_0: I am trying to insert some value into dbo.Course table but unfortunately I getting the following error, I tried to find a solution but I didn't understood how can I apply it on my Code. My exception is: **The INSERT statement conflicted with the FOREIGN KEY constraint "FK\_dbo.Courses\_dbo.St...
2018/03/02
412
1,707
<issue_start>username_0: I have a Javascript code to change the sidebar color with a colorpicker ``` var colorWell; var defaultColor = "#0078c0"; window.addEventListener("load", startup, false); function startup() {   colorWell = document.querySelector("#colorWell");   colorWell.value = defaultColor;   colorWell.addE...
2018/03/02
359
1,197
<issue_start>username_0: Im trying to send a string of different variables combined together to a different server using sockets. However i use ',' to split the data up. like this: ``` string stringToSend = (connectionType + "," + ownerID + "," + currentIP + "," + connectionOS); SendString(stringToSend); ``` so th...
2018/03/02
1,269
4,583
<issue_start>username_0: I'm facing an issue with some simple C# code which I would easily fix in C/C++. I guess I'm missing something. I want to do the following (modifying items in a list -- in place): ``` //pseudocode void modify(List a) { foreach(var item in a) { if(condition(item)) { item = somethingElse; ...
2018/03/02
645
1,890
<issue_start>username_0: Controller: ``` @user_location = Country.joins(:user).order(:name).compact.uniq ``` View (haml): ``` - @user_location.each do |user| %li= user.name ``` At this point, all duplicate elements of the array are deleted (`uniq`). How can I display the number of repetitive elements in the ar...
2018/03/02
296
911
<issue_start>username_0: I am trying to use below command to curl to the pod itself using podip as currently I don't want kubelet to request my pod for health check. ``` livenessProbe: exec: command: - curl - $POD_IP:9990/admin/ping initialDelaySeconds: 3 periodSeconds: 5 ``` but the env variable $...
2018/03/02
801
2,854
<issue_start>username_0: I want to enable access from my server to an extern data. I have this error : ``` No 'Access-Control-Allow-Origin' header is present on the requested resource ``` I've seen many answers about that thing, mainly unsecured solutions where Chrome protections are disabled, but I want to keep th...
2018/03/02
727
2,505
<issue_start>username_0: The [Qt documentation](http://doc.qt.io/qt-5/threads-modules.html#threads-and-implicitly-shared-classes) states: > > Beginning with Qt 4, implicit shared classes can safely be copied across threads, like any other value classes. > > > Thus, `getText()` from the below example will be threa...
2018/03/02
721
3,000
<issue_start>username_0: I'm using a CloudFormation stack that deploys 3 EC2 VMs. Each needs to be configured to be able to discover the other 2, either via IP or hostname, doesn't matter. Amazon's private internal DNS seems very unhelpful, because it's based on the IP address, which can't be known at provisioning tim...
2018/03/02
1,038
3,715
<issue_start>username_0: I'm working on a macOS cocoa-app in Swift where I import several different file types into the app for the user to interact with. I'm currently trying to determine if it's possible to implement the "Open file with" feature, so that the user could open those files in a different program if the...
2018/03/02
1,695
5,505
<issue_start>username_0: I feel like my Delphi background is destroying my ability to figure this out. I'm trying to create an empty array (no data, just structure) in Powershell where each item has two properties. The end result would look something like this: ``` $WIP[0].signature = 'data' $WIP[0].PID = 'data' # oth...
2018/03/02
629
2,582
<issue_start>username_0: Have looked for an answer to this question online everywhere but I haven't managed to find an answer yet. I've got a SystemVerilog project at the moment where I've implemented a circular buffer in a separate module to the main module. The queue module itself has a synchronous portion that acq...
2018/03/02
1,512
5,904
<issue_start>username_0: I am working with a java example using annotations, I created a simple POJO (java bean) using annotations to its attributes. I want to have the ability to create new objects of this type and retrieve the values of its attributes using the annotations created. My POJO : ``` import java.io.Seri...
2018/03/02
980
3,393
<issue_start>username_0: I'm stuck for few days with this error, and I don't know how to solve it. I have 2 models in my app : `User` and `Team`. user.ts : ``` import { Team } from './team'; export class User { id: string = null; name: string = null; email: string = null; settings: any = {}; team: Team = null; c...
2018/03/02
1,668
6,648
<issue_start>username_0: I'm trying to create UserScope with <https://google.github.io/dagger/android> I have `@Singleton`, `@ActivityScope`, `@FragmentScope` and `@UserScope`. **AppComponent** ``` @Singleton @Component( modules = [ AndroidSupportInjectionModule::class, ActivityBindingModule::class, Ap...
2018/03/02
1,138
4,707
<issue_start>username_0: I have a Word 2016 VSTO that I developed using VS2015 and deployed to a Windows 10 machine using InstallShield. If I set the LoadBehavior to 3 it loads and works fine. What I need is for it load on demand. I've tried just setting LoadBehavior to 9 but no dice. The web application that is creat...
2018/03/02
1,489
5,154
<issue_start>username_0: ```js function count() { $("input:radio")[1].html = alert("We're from the same site"); $("input:radio")[0][2][3].html = alert("We are not from the same site"); } ``` ```html jQuery Script Select one campus ================= Belfast Jordanstown Magee Coleraine ``` ...
2018/03/02
406
1,536
<issue_start>username_0: I did a web (angular 5) page host locally, I used datatable(jquery)to add some extra feature(like sort, filter, search..etc) to my table on html. When I try it first, the datatable works as I expected, but when I reload the page, its ui changes too, then all the datatable function does not work...
2018/03/02
636
2,282
<issue_start>username_0: When the function involves reallocation, I found some compilers may save the address before the function call. It leads the return value stored in the invalid address. There is an example to explain behavior in above description. ``` #include #include using namespace std; vector A; int f...
2018/03/02
1,904
5,637
<issue_start>username_0: I would like to make a website with mouse parallax effect like in this page <http://brightmedia.pl> background mouse parallax is so smooth.. I have two questions: 1. When you mouseover on a container from, let's say, the top left corner, the image jumps. How can I make a smooth animation? 2. ...
2018/03/02
792
2,979
<issue_start>username_0: I am trying to write VBA code so that whenever I open any file in excel, it automatically goes to Cell A1 in all sheets (no matter what cells were selected when it was last saved). I found something online that suggested putting the following code in my Personal .xlsb project: ``` Sub kTest() ...
2018/03/02
1,305
3,999
<issue_start>username_0: ``` void foo(int a) { cout << "Hello" << a << '\n'; } ``` according to rule of decltype, the type of decltype(foo) should be "void foo(int)", but it seems we can do nothing with it: ``` void (& f_ref)(int) = foo; void (* f_ptr)(int) = foo; cout<<< ```<issue_comment>username_1: You can u...
2018/03/02
853
3,078
<issue_start>username_0: New to codeigniter so unsure of route. I have a user logging in to their dashboard and they can add contacts. these contacts are displayed on their dashboard, however so far it displays different user's contacts, as oppose to just the current Users ID based on their session.. my sessions are se...
2018/03/02
972
3,561
<issue_start>username_0: I know there are many posts about this one, but there are a few things that none of them answered so far. Not here or on the Laracast forum. **No.1**: What is the best practice to do this? I saw couple different ways of doing this. Should I set it in Model or in the Controller? Is there an au...
2018/03/02
636
2,081
<issue_start>username_0: I have 2 lists of object in Java ``` List list1 List list2 Object1 has fields: - fieldA - fieldB - fieldC - fieldsD Object2 has fields: - fieldB - fieldE - fieldF ``` So, both Object1 and Object2 has same field “fieldB”. What I wanted to do is to implement some kind of “LEFT JOIN” , that ...
2018/03/02
838
3,044
<issue_start>username_0: I am new to Thymeleaf.I am creating a spring-boot app using thymeleaf in view part. Please find below my pom.xml file[only the dependencies part]: ``` org.springframework.boot spring-boot-starter-parent 1.5.10.RELEASE 1.8 UTF-8 org.springframework.boot spring-boot-starter-web org....
2018/03/02
504
1,528
<issue_start>username_0: I'm trying to get the upper and lower limit for my pagination buttons. I want there to always be 9 buttons. So initially with a current page index of 1 it would be: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | So my lower would be 1 and my upper would be 9. When the current page index gets to 8 I ...
2018/03/02
1,626
4,035
<issue_start>username_0: I have a df ``` set.seed(123) df <- data.frame(loc.id = rep(1:9, each = 9), month = rep(1:9,times = 9), x = runif(81, min = 0, max = 5)) ``` This is a dataframe which has 9 locations. For each location, I have 9 months and for each month, there is a value of x. For each l...
2018/03/02
1,136
4,329
<issue_start>username_0: table description ``` # \d invites; Table "public.invites" Column | Type | Modifiers -----------------------+-----------------------------+--------------------- id | integer ...
2018/03/02
620
2,530
<issue_start>username_0: Write a query to display all the countries those shipped products: Sir Rodney's Scones. The productname 'Sir Rodney's Scones' and the countries are in different tables. this is what I have tried so far: ``` select country from customers where country =any (select productname from ...
2018/03/02
590
2,296
<issue_start>username_0: I have an question that seems simple but is stumping me. My time series data looks like: ``` Year Percentile Value 1990 p.10 20 1990 p.50 30 1990 p.90 40 ``` I am trying to select the Value observations that correspond to the 10th percentile (e.g., p.10).<issue_comment>username_1: try ``` s...
2018/03/02
991
3,082
<issue_start>username_0: I am unable to launch the UI Automator viewer can anyone help me ?how can I launch it? when I double click on "uiautomatorviewer" for some time black window opens but closed automatically even I had set variables in windows path variable ANDROID\_HOME%\tools; %ANDROID\_HOME%\platform-tools; ev...
2018/03/02
978
3,230
<issue_start>username_0: The program below is supposed to read a `txt` file and put the data in a struct. But it gives an pointer error. It gives an error in `strcpy()` about pointers. I'm new in C. Whats wrong? ``` #include #include int main() { struct citydata { char city[20]; int temp; }; struct citydata v...