date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
1,188
3,784
<issue_start>username_0: I am trying to write a deployment script which after copying the new release to the server should perform a few sudo commands on the remote machine. ``` #!/bin/bash app=$1 echo "Deploying application $app" echo "Copy file to server" scp -pr $app-0.1-SNAPSHOT-jar-with-dependencies.jar nuc:/tmp/...
2018/02/28
787
3,444
<issue_start>username_0: I don't have much experiences with Android development and I have a doubt about the dependencies using Gradle. For example: If I construct an Android app using Gradle dependecies and the package provider (for example picasso) remove the package from the repository, what will happens with my pr...
2018/02/28
424
1,521
<issue_start>username_0: Android XML, Activity Edit Text. i have EditText in XML and tried to define the Edit text in LaunchActivity.java But the android studio is not showing me EditText in intellisense [![enter image description here](https://i.stack.imgur.com/1tnTo.png)](https://i.stack.imgur.com/1tnTo.png)<issue_...
2018/02/28
828
2,929
<issue_start>username_0: I should write an extension that can change a color for a word in web page, this code can replace words but can't change their background color See below code : **content.js** ``` walk(document.body); function walk(node) { var child, next; switch ( node.nodeType ) { ...
2018/02/28
638
2,163
<issue_start>username_0: I have the following table: ``` class OverallAdvise(mixins.OrdMixin, mixins.EqMixin, models.Model): section = models.ForeignKey('quest.Section', on_delete=models.CASCADE, related_name='section_owner') range_start = models....
2018/02/28
492
1,776
<issue_start>username_0: I would like to know that the Python interpreter is doing in my production environments. Some time ago I wrote a simple tool called [live-trace](https://github.com/guettli/live-trace) which runs a daemon thread which collects stacktraces every N milliseconds. But signal handling in the inter...
2018/02/28
351
1,256
<issue_start>username_0: I'm using pycharm.2017.1.2. I installed anaconda2 with py3 environment. in Pycharm, I'm using Python3 interpreter, and the code is simply: ``` print(__name__) ``` In Python console in Pycharm, it prints `builtins`. If I click the 'run' button, it prints `main` as expected. Why does the PyC...
2018/02/28
1,155
3,572
<issue_start>username_0: I'd like to create a rule that writes `"100%"` in column A whenever I write `"end"` in column B. So it would be something like this: ``` [] X 100% end [] Y ``` The brackets represent an empty cell. I've tried: ``` IF(B1:B3="end",100%,"") ``` but I would like to leave the cells...
2018/02/28
1,233
4,584
<issue_start>username_0: I have one problem in understanding of Java 8 associated with reference to methods as a parameter to static methods. There is my code where I can't find how to send a reference to a method which doesn't have any parameters and must be a method for an object of the definite class. So, I want th...
2018/02/28
1,021
3,605
<issue_start>username_0: I want to assign folder names on `dirs` list to variables from `vars` list. Main problem is that `var` have stable number of items, but `dirs` can be changed by user. ``` import os, sys path = "C:\BAR_PREK" dirs = os.listdir( path ) vars = ['VAR0.Value', 'VAR1.Value', 'VAR1.Value', 'VAR3.Valu...
2018/02/28
1,283
4,304
<issue_start>username_0: I have code for copying a text file (not binary) into an array of chars. I am trying to copy the contents of a `.txt` file into a `char*` array. ``` #include #include #include #include bool is\_not\_binary(const void \*data, size\_t len) { return memchr(data, '\0', len) != NULL; } int ...
2018/02/28
496
1,616
<issue_start>username_0: slightly confused about all of these redirect codes. So I have a website that has been live on > > <https://domainA.com/subfolder> > > > I have recently duplicated the site, but need to move it to a new domain > > <https://domainB.com/subfolder> > > > However, if people still visit...
2018/02/28
482
1,319
<issue_start>username_0: Let's consider this as our hash `c = {:test => {:foo => true}}` Normally, if we would like to print value of foo, we would access the hash like this `c[:test][:foo]` but I would like to access it dynamically based on my variable. Therefore, let's consider the following variable `path = [[:te...
2018/02/28
527
2,025
<issue_start>username_0: I have an class called Product, which can be available in 1 or more countries (but rarely all of them). I want to include in my query something that makes the my search/query only return products that is sold in that country. My best bet would be to have a list in my product object, with Coun...
2018/02/28
354
1,347
<issue_start>username_0: I've got a asp.net web site on windows with rather over the top server side caching of files that never change. Unsurprisingly the files have changed. How do I reset the server side cache? I've see lots of how to do it in code but I don't want to add a new page that will clear the cache unless ...
2018/02/28
344
1,197
<issue_start>username_0: I've read a file with NPOI and in one column I have some number values and some char values. I need to check if this Cell contains a char value (like "stop"), and if so then I don't want to read this. This is what I've tried: ``` if (sheet.GetRow(row) != null and sheet.GetRow(row).GetCell(2).S...
2018/02/28
2,077
6,633
<issue_start>username_0: I'm trying to do a simple example of recursion functions (Both Direct and Indirect) and I can't seem to get it to end can you please help me and explain why? (Also I'm trying to do both Direct and Indirect in this program) Thank you for your help. ``` int Print(); int main() { Print(); ...
2018/02/28
591
1,863
<issue_start>username_0: I'm trying to prove my XML is well formed on Nifi. I already validate it against some schema, but sometimes I do not have a schema and so wish to just confirm it is well formed. However all the XML processers seem to require a schema or such and don't just show it being well formed. Can anyo...
2018/02/28
616
1,616
<issue_start>username_0: I'm able to get approximate time without milliseconds by query ``` SELECT UNIX_TIMESTAMP(NOW()); ``` but how to get precise current timestamp with milliseconds? For example, after executing the above query I get `1352717640` value, but I want to get `1352717640xxx` value. **UPD** And othe...
2018/02/28
494
1,329
<issue_start>username_0: Is there possible to use something like ``` scope :state, ->(state) { merge(where("start_time <= ? and end_time >= ?", Time.now.utc.beginning_of_day, Time.now.utc.beginning_of_day)) if state.include?("open") merge(where("end_time < ?", Time.now.utc.beginning_of_day)) if state.include...
2018/02/28
440
1,399
<issue_start>username_0: I would like to limit the number of decimals the user can write in the input. The field isn't shown in error when I write 850,9560 for exemple, here is my field : ``` { xtype: 'numberfield', fieldLabel: 'My field label', name: 'montant_sm', id: 'montant_sm_', decimalPrecisi...
2018/02/28
396
1,610
<issue_start>username_0: I have seen that in ios 11 we can connect to wifi using SSID and a password. However, I'm trying to find out if we can disconnect from that network as well. The requirement for my application is to connect to a specific wifi network using SSID, perform some operations, and then disconnect and ...
2018/02/28
600
1,990
<issue_start>username_0: I have a text file which contains values such as > > [GetLeagueStandingsResultDto(team=Celtic, teamId=54, played=28, playedAtHome=14, playedAway=14, won=19, draw=7, lost=2, numberOfShots=691, yellowCards=32, redCards=1, goalsFor=56, goalsAgainst=18, goalDifference=38, points=64, leagueName=nu...
2018/02/28
792
3,034
<issue_start>username_0: I got a logical problem. I got an object that needs to be cloned. The object is|has a result of a calculation. The object has a runtime. In some cases it is faster to clone the object instead of calculating the result again *(f.e. same parameter ^= same result)*. **But** the runtime must...
2018/02/28
646
2,181
<issue_start>username_0: **SITUATION**: I am building a support ticket system where the employee can respond to a ticket. This gets displayed within a sort've chat display, which also includes the time the post was made at. The date gets stored within a database, and gets saved as a timestamp. I currently am wonderi...
2018/02/28
648
2,257
<issue_start>username_0: I've been following [this tutorial](http://www.c-sharpcorner.com/article/single-page-application-using-web-api-and-angularjs/) and have the following controller: ``` (function (app) { var MusicListController = function ($scope, $http) { $http.get("/api/Musics").then(function (data) { ...
2018/02/28
688
2,448
<issue_start>username_0: I am using Amazon's php sdk. I use Amazon SNS service to send direct sms. When I send an sms from my php application it gives me a message ID. I have to track the delivery status of each of my message. I have enabled cloud watch logs for `Text Messaging` using `Manage text messaging prefere...
2018/02/28
554
2,054
<issue_start>username_0: All the docs for `map` use braces but the code below and most examples I see when dealing with React use parenthesis. I'm trying to figure out exactly what the difference is and what the code is doing. When using braces, nothing renders unless I specifically add `return`. So my take is that t...
2018/02/28
379
1,502
<issue_start>username_0: I am trying to export my whole Zabbix configuration. I managed to export everything except the dashboard. I didn't find anything related to this in the Zabbix resources nor on the web. Is there any way I can do it ? Thank You.<issue_comment>username_1: Nothing to do with React, It is all about...
2018/02/28
2,133
6,549
<issue_start>username_0: I am using Keycloak 3.4.3 and protecting Spring based Rest service. Below is Keycloak client configuration: ``` Client Protocol: openid-connect Access Type: public Standard Flow Enabled: ON Implicit Flow Direct Access Grants Enabled: ON Authorization Enabled: OFF ``` Is it ...
2018/02/28
550
1,969
<issue_start>username_0: I am trying to fetch stock item from TallyErp 9. I am able to get particular item details using xml tags but now I require item should come same as that of Tally,i.e on entering search param it should give all stock item related to my search keyword. My Current code to fetch single stock item ...
2018/02/28
2,432
10,006
<issue_start>username_0: I am trying to pass data from one fragment to another but I am facing issue with sending data from parcelable from one fragment to another. ``` class MainFragment : Fragment() { companion object { public val KEY_PARSE_DATA = "parseData" } private var parseData: ParseData...
2018/02/28
737
2,865
<issue_start>username_0: Is there a way to add a custom property called `filterMode` using the form builder in Angular? I'm creating a search form, but want to be able to tie a filter type to it like startsWith, contains, equal, etc. I'd like to have access to this value for each form control when I get the `FormGroup`...
2018/02/28
994
3,357
<issue_start>username_0: When I execute Run As -> Java application my Spring Boot application class on Eclipse, I get Spring Boot logo and version in logs but it halts and stops after few seconds: ``` . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \...
2018/02/28
1,395
4,797
<issue_start>username_0: Angular 5, Typescript 2.7.1 I can't seem to get the checkbox to be checked when returning a boolean, I've tried, `item.check` returns either true or false. ``` | | | ``` The checkbox is always checked when checked is written inside input. And it does not get unchecked when `checked="false"...
2018/02/28
800
2,915
<issue_start>username_0: I am using SendGrid email extension to trigger a custom email notification after the CI/CD process is complete in VSTS. This email task has HTML content in it which includes some content fetched using standard build/release variables (<https://learn.microsoft.com/en-us/vsts/build-release/concep...
2018/02/28
880
3,144
<issue_start>username_0: I cannot understand the parsing error below. You can use <https://jsonformatter.org/> to get errors: ``` {"lookup": "defaultStatelessKieSession", "commands": [ "insert": { "object": { "myteam.hello_kie_server_2.SMS": { "sendMessage" ...
2018/02/28
1,700
5,591
<issue_start>username_0: I have searched for all posible answers but i didn't find the right one. I have an html page where i want to show up the modal form. This form is in another page written in php. The modal is working and also it is the connection with the database. But when i click on the submit button and the i...
2018/02/28
5,124
14,935
<issue_start>username_0: I read every where that we write source code (High level language), the compilers converts it into a machine code (Low level language). Then i read that there is an assembler, which converts assembly code into a machine code. Then When differentiating compiler and interpreter, i read that compi...
2018/02/28
779
2,795
<issue_start>username_0: I am working on Angular 5 project with @ngrx/store. The way to integrate ngrx/store into my application is following. I have CoreModule which includes store. In the store directory, there are directories named search and user, and also reducer.ts and index.ts. ``` src - app - core - store - ...
2018/02/28
1,587
5,517
<issue_start>username_0: I am trying to mane hibernate OneToOne relationships work lazily. My setup is spring-data-jpa using hibernate and Gradle. Even this is a well-documented problem/feature and there is a lot of good reads out there, I have come to realise that most of them are dealing with maven. Fortunately, t...
2018/02/28
747
2,879
<issue_start>username_0: For automation purposes, I am working on creating a script that finds a row in a table. This row is clickable and opens a new tab/adress. With selenium, I am now able to find the table row, click on the link, and the new tab opens. The problem is that I can't find any way to switch the focus ...
2018/02/28
625
2,192
<issue_start>username_0: Why is mySql throwing the error "#1054 - Unknown column 'this.revenue' in table field list"? Please see the attached image of the database table structure and the SQL statement below. [![enter image description here](https://i.stack.imgur.com/1rX7F.png)](https://i.stack.imgur.com/1rX7F.png) By...
2018/02/28
583
2,038
<issue_start>username_0: I'm currently working with a data set containing raw text which I should pre-process: ``` from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from nltk.stem import SnowballStemmer from nltk.stem.wordnet import WordNetLemmatizer stop_words = set(stopwords.words('english'...
2018/02/28
758
1,977
<issue_start>username_0: I would like to extract using a specific pattern from a column of worksheet names which were extracted from excel spreadsheets, and only retrieve the last result from the list of results. For example: ``` "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" ``` I want to extract the twelve from 201...
2018/02/28
468
1,895
<issue_start>username_0: In a Spring Java project I have the following class: ``` @SuppressWarnings({"PMD", "Checkstyle"}) @SpringBootApplication public class ToolBoxApplication { public static void main(final String[] args) { SpringApplication.run(ToolBoxApplication.class, args); } } ``` Building u...
2018/02/28
888
3,067
<issue_start>username_0: I want to know how to get the length of a `long long`. I have a simple function where I am trying to get the length of a `long long` and I also get an error. ``` while (numberArray[i].length() > MAX_INPUT) { cout << "ERROR: Program can only take in a number length " << MAX_INPUT << " or l...
2018/02/28
1,714
6,769
<issue_start>username_0: When trying to run my .NET Core 2.0 app from IIS Express, I get the following error: ``` System.Data.SqlClient.SqlException: 'Failed to generate SSPI context.' ``` This occurs when trying to access the DB on the SQL 2012 DB server using the following connection string (username and password ...
2018/02/28
627
2,080
<issue_start>username_0: map returns an array but I get this ``` , a b ``` instead of expected ``` a, b, ``` ```js let names = ["a", "b"]; template = ` ${names.map(name => `| ${name} | `)} ` let div = document.getElementById("container"); div.innerHTML = template; ``` ```html ```<issue_comment...
2018/02/28
569
2,016
<issue_start>username_0: When a job builds, ususally jenkins prints out all the revisions that were built within the "Changes" section. Is there a quick and easy way to use that as an env variable perhaps? Or any other convenient way that is.<issue_comment>username_1: Because `map` returns an array, and the templating ...
2018/02/28
838
2,596
<issue_start>username_0: I am writing a simple chat app that consists of scrollable div containing chat messages (each chat message is a paragraph < p>chatmessage< /p>). Upon loading a page div displays 10 most recent messages. What I want to achieve is if I scroll the chat div up, it would prepend 10 previous messages...
2018/02/28
504
1,466
<issue_start>username_0: I tried to get the wkt of circle in the mapbox. but not sure how to get the geojson of circle in the mapbox. I thought I can use following sample btw the problem is geojson. ``` var bounds = turf.bbox(markers); ``` Please help me!<issue_comment>username_1: GeoJSON doesn't support Circles. Yo...
2018/02/28
731
1,656
<issue_start>username_0: I [know](https://dockyard.com/blog/2016/02/01/elixir-best-practices-deeply-nested-maps) [how](https://stackoverflow.com/questions/43716688/updating-a-nested-map-in-elixir) to put, get, and update nested maps in Elixir, using `put_in`, `get_in`, and `update_in`, but how do I "`delete_in`"? Let...
2018/02/28
1,436
4,904
<issue_start>username_0: I have an implicit class defined in a class injected in other classes like this ``` class A { implicit class B(s: String) { def b = ??? } } class C(a: A) {} ``` Is there a way to access implicit class B (and in particular its method b) from the class C, without importing it explicit...
2018/02/28
1,634
5,057
<issue_start>username_0: I have the following document ``` { "userid": "5a88389c9108bf1c48a1a6a7", "email": "<EMAIL>", "lastName": "abc", "firstName": "xyz", "__v": 0, "friends": [{ "userid": "5a88398b9108bf1c48a1a6a9", "ftype": "SR", "status": "ACCEPT", "_id": ...
2018/02/28
1,346
4,857
<issue_start>username_0: I have been searching A LOT to find a simple way to loop through an array (I haven't used javascript much) and I just can't seem to make sense of the examples I've seen. I also want to retrieve data from an array... The following example I can understand: <https://www.w3schools.com/js/js_loop...
2018/02/28
856
2,989
<issue_start>username_0: I created a stored procedure in SQL Server to feed SSRS to allow it to accept multiple values. I have created it and when I used it in my report or execute it in SQL Server I get the following error message. > > Msg 207, Level 16, State 1, Line 35 > > Invalid column name 'London'. > > >...
2018/02/28
590
2,202
<issue_start>username_0: I've setup a VM and installed IIS. I checked that the firewall rules were enabled for HTTP and HTTPS. Furthermore, in Azure Portal, I've enabled the two predefined inbound security network group rules for HTTP and HTTPS. When in the VM, I can go to localhost and see the default Web page of II...
2018/02/28
1,106
3,728
<issue_start>username_0: My `trophies` table: ``` public function up() { Schema::create('trophies', function (Blueprint $table) { $table->increments('id'); $table->integer('tournament_id')->unsigned()->nullable(); $table->foreign('tournament_id') ->references('id') ...
2018/02/28
1,556
5,483
<issue_start>username_0: I have a problem. I'm creating a CSV in runtime, then giving the user the ability to save it or open it, but it does not do anything to me, what am I doing wrong? Can someone help me? ``` public void WriteToCSV(List list, string filename) { string attachment = "attachment; filename=" + filen...
2018/02/28
237
903
<issue_start>username_0: I have a while loop and based on flag loop will terminate, but even after making the flag true loop is not exiting. In debug mode its working fine and in release mode with qDebug also its working. How to trace this problem ``` while (1) { if(isFlagUpdated) { isFlagUpdated = fa...
2018/02/28
729
2,800
<issue_start>username_0: I have to modify some old code in an application that someone before me made. Looking at the variable below whose result goes into "test", I have two tables (which are set up with relational models). In the variable "test2", I have rewritten the query in the more SQL syntax (which I'm used to)....
2018/02/28
1,684
5,955
<issue_start>username_0: I have a value in column A on the transactions sheet which contains an Identifier for a Deal. To be able to find out the customer information for this Deal I look in another sheet called Deal Information. Here there is a value in Column F which matches a value in Column A on the transactions s...
2018/02/28
1,599
5,482
<issue_start>username_0: I have a variable, let's say `xx`, with a list of index 0 and index 1 values. I want to modify a script (not mine) which previously defines a function, `pptable`, i.e., ``` proc pptable {l1 l2} { foreach i1 $l1 i2 $l2 { puts " [format %6.2f $i1]\t[format %6.2f $i2]" } } ``` ...
2018/02/28
1,964
6,784
<issue_start>username_0: I'd like to change displayed text when there's an error while someone is trying to login on my website. I found where are the current displayed messages that I'd like to change. They are on the user.php file (`wp-includes/user.php`). Specifically: ``` function wp_authenticate_email_password( ...
2018/02/28
2,401
10,124
<issue_start>username_0: So, the normal POSIX way to safely, atomically replace the contents of a file is: * `fopen(3)` a temporary file on the same volume * `fwrite(3)` the new contents to the temporary file * `fflush(3)`/`fsync(2)` to ensure the contents are written to disk * `fclose(3)` the temporary file * `rename...
2018/02/28
2,255
9,578
<issue_start>username_0: I want to give access to my developer to set up EC2 and MongoDB for my app. Basically, moving everything from his server to my on AWS. I created a Group called "Developer" and set the Policy to "PowerUserAccess". I have added a User to this group, meaning he now has "PowerUserAccess" access...
2018/02/28
3,738
9,223
<issue_start>username_0: Here is the data that I'm practicing with ``` import pandas as pd df = pd.read_csv("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/tips.csv") ``` I want to filter individual rows by a grouped valued. I know I can do the following to filter groups ``` df.groupby("day").filter(...
2018/02/28
526
1,703
<issue_start>username_0: I'm working on a simple image slider component. In the template I'm using `v-for` to create the `img` tags and `ref` to keep a reference to each one of them. ``` Vue.component('slide', { template: ` ![]() `, data() { return { currentImage: 0, images: [], ...
2018/02/28
645
2,338
<issue_start>username_0: Is there any extension method in C# for IEnumerable that would return items from collection with predicate until it reaches some given limit? For example: ``` string[] source = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" }; var result = source.Take(2, item...
2018/02/28
416
1,295
<issue_start>username_0: In a foreach i select all the first item from a list type `List` using this line: ``` var selectData = arrayList.Select(x => x.First()); ``` Where z is a List I want to use the same method to remove all the first item but because int[] is not a delegate type it's not working ``` arrayList.R...
2018/02/28
396
1,397
<issue_start>username_0: I have the following setup: ``` class Company has_many :users end class User belongs_to :company end ``` I need to get all companies that doesn't have a user with specific name, let it be 'David'. It's easy to do the opposite, find all companies that have a user named David: ``` Comp...
2018/02/28
563
2,049
<issue_start>username_0: I want to return a selection from my database whenever a user specifies an id. I have a laravel 5.5 API with in the api.php the following route. ``` Route::get('companytasks/{id}','TaskController@showOfCompany'); ``` In my TaskController i have the following function: ``` public function s...
2018/02/28
237
913
<issue_start>username_0: Int64RangePartitionInformation - how can I create object? I want to use object in my unit test. When I attempt to create object using var c = new Int64RangePartitionInformation(); compiler throws me error 'Int64RangePartitionInformation' does not contain a constructor that takes 0 arguments" ...
2018/02/28
221
762
<issue_start>username_0: ``` webView.evaluateJavaScript("getLangs()", completionHandler : { (value, error) in print(value as Any) }) ``` result ``` Optional(["English","Հայերեն","Русский"]) ```<issue_comment>username_1: ``` if let array = value as? [String]{ prin...
2018/02/28
396
1,258
<issue_start>username_0: I have a template with an HTML body. I want to include a line depending on the value of the Value of cell F. If in cell F it is written "incomplete" then it shall include the phrase "Your payment is incomplete" into the e-mail text. If in cell F it is written "complete" a space is added to th...
2018/02/28
2,019
7,388
<issue_start>username_0: I want to apply the pagination on this aggregated data (all the documents which matched and project with both collection 2 and 3). I have tried multiple queries, i am passing limit 25 but it will get only 20 document, which changes require in this query for pagination ``` var pipeline = [{ ...
2018/02/28
1,131
3,883
<issue_start>username_0: I try to show the page without CSS to make loading faster, and I have managed to disable images and javascript using the following code: ``` option = webdriver.ChromeOptions() prefs = {'profile.default_content_setting_values': {'images': 2, 'javascript': 2}} option.add_experimental_option('pre...
2018/02/28
1,289
4,412
<issue_start>username_0: ``` SELECT Rec.[Reg_ID] ,Rec.[Reg_No] ,Rec.[Case_ID] ,Det.Deleted AS CaseDeleted ,[Status].[Status] ,Det.[Unit_Submission_Date] AS [Signature] ,TD.TargetDate AS [Target] ,TD.TargetID FROM [dbo].[Regestrations] Rec LEFT JOIN [dbo].[Reg_...
2018/02/28
446
1,636
<issue_start>username_0: It is seen that when I submit a form on Angular 4, it makes 2 calls for a single call. When I check the log it is came to know that it is hitted two times. How can I over come this.? When I submit all forms it inserted two times the same form data [Component on project](https://i.stack.imgur.c...
2018/02/28
896
2,807
<issue_start>username_0: I have a list of integer pairs that I want to store in a persistent way, using Qt Framework. I thought of using `QList< QPair < int,int>>` as type for the list and to store them on an .ini file using `QSettings`. Unfortunately, the function `QSettings::setValue` raises an error: ``` no mat...
2018/02/28
1,281
5,462
<issue_start>username_0: I'm doing some R&D to move a product catalog into CosmosDB. In it's simplest terms a Product document will have: * Product Id (GUID) * Product Name * Manufacturer A manufacturer will log into this system and will only be able to query their own data so there will always be a `ManufacturerId...
2018/02/28
879
3,316
<issue_start>username_0: I'm a bit confused about the best way to securely allow a VSTS build to have write access to a Git repository when SSO is involved. I want a VSTS build task to use a limited scope PAT to push the files, rather than use the provided OAuth token $(System.AccessToken). I'm on the DevOps team and ...
2018/02/28
459
1,752
<issue_start>username_0: I've created the following package tree: ``` /main_package /child_package version.py ``` where version.py contains a single string variable (VERSION) Inside my script in child package I'm importing version.py by the following line: ``` from main_package.version import VERSION ``` ...
2018/02/28
793
2,783
<issue_start>username_0: I am working on a Unity project within a team and naturally, we use Github for version control. Unfortunately we have a problem where inspector settings aren't being Version Controlled, this results in all of our GameObjects losing their outlets to Scripts and all connections are lost wheneve...
2018/02/28
602
2,060
<issue_start>username_0: I am running a query using `OleDbCommand` in a database in Excel, containing the following columns: ``` name, city, inhabitants ``` My code: ``` Cmd = new OleDbCommand(); Cmd.Connection = Conn; Cmd.Parameters.AddWithValue("@city", city); Cmd.CommandText = "Select City, count(habitants)...
2018/02/28
336
1,450
<issue_start>username_0: Environment: Introduction to Java class programming labs. Is it possible to force Java to throw an exception if any imports for banned classes are used? For example, I have a lab where I specifically want them to calculate some geometry and I do not want them to just use built-in libraries. C...
2018/02/28
892
3,203
<issue_start>username_0: I have the following HTML code: [![enter image description here](https://i.stack.imgur.com/3jSov.png)](https://i.stack.imgur.com/3jSov.png) I need to refer to the span element (last element in the tree) in order to check if it exists. The problem is, I can't find the right XPath to it and was...
2018/02/28
715
2,651
<issue_start>username_0: I've just inherited a fairly large DB, and been just informed that the table structure does not match between Dev and Prod. This is causing us problems since the code developed for Dev ends up crashing in Prod which is causing some pretty catastrophic releases. So, I'd like to find a way to ...
2018/02/28
606
1,942
<issue_start>username_0: I have this as my render function and I'm trying to pass the "{this.state.poster}" through it so it will load what ever random film poster it has received from the api. the console.log will show as /q2Y2EuDSaNCH88ETlyiu8bZc5TT.jpg for example but when I try to add that to the image with {this.s...
2018/02/28
1,137
4,103
<issue_start>username_0: To start, here's my migration script: ``` const bluebird = require("bluebird"); const mongoose = require("mongoose"); mongoose.Promise = bluebird; mongoose.connect("mongodb://localhost:27017/app", { useMongoClient: true }); const schema = { uid: { type: String, }, ...
2018/02/28
1,227
3,950
<issue_start>username_0: How do you send an **encrypted** and **html-formatted** email through the command line? Here is the code I have so far: ``` # Encrypt email with a certificate openssl cms -encrypt -in "/tmp/email_to_be_sent.html" -out "/tmp/encrypted.txt" -from $SENDER -to $RECEIVER -subject "Test: Encrypt...
2018/02/28
587
1,955
<issue_start>username_0: Hi I am using spring boot version - 2.0.0.RC1. I have simple service running @port 9400. My application.properties have below configuration: ``` spring.main.banner-mode = CONSOLE spring.profiles.active = ${profile:local} server.compression.enabled = true server.compression.min-response-siz...
2018/02/28
233
1,138
<issue_start>username_0: What do we achieve by creating AbstractFactory when we already have Factory? I mean by using Factory also we can directly create concrete objects than why should we use AbstractFactory and get Factory and than create object.<issue_comment>username_1: A factory is there for creating concrete ob...
2018/02/28
585
2,278
<issue_start>username_0: > > This is an issue in MacBook Pro. I figured out the problem after few > hours of debugging > > > I am using the following code to create a media player and play an mp3 file. I am using the built-in emulator in Android Studio. Any suggestions for debugging? ``` import android.media.Med...
2018/02/28
773
3,003
<issue_start>username_0: I am using FOSUserBundle with Symfony 3.4 to login my users. When they enter a wrong password the following message is displayed: [![enter image description here](https://i.stack.imgur.com/bNcUa.png)](https://i.stack.imgur.com/bNcUa.png) I would like to **add** a check for the user type and a...
2018/02/28
1,181
3,646
<issue_start>username_0: I am beginner to Clojure, while trying to read about [Reducers](https://clojure.org/reference/reducers) I found something called **foldable collection**. They are mentioning that vectors and maps are foldable collection, but not the list. I am trying to understand what is foldable collection,...
2018/02/28
442
1,780
<issue_start>username_0: AWS claims that it allows Lambda functions to be executed in devices via AWS GreenGrass. I was trying to understand whether we can execute the Lambda functions in other VMs in my data center too. But couldn't find any infromation on it. Please note this is not testing the Lambda functions local...
2018/02/28
606
2,134
<issue_start>username_0: I have mostly black and white image, with some parts in color (let's say it's yellow and green). **I would like to find out those colors.** For that, I suppose I might convert image to black & white, and then compare b & w image with original one to find the difference. But I'm not quite sure ...
2018/02/28
981
3,649
<issue_start>username_0: This is my first time attempting to make anything resembling an "AI". Basically, all I want is for a capsule to occasionally choose a location in the world, raycast to see if there are any obstacles in the way, and if there are none then move to that location. My first attempt was like below e...