date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/08
785
2,913
<issue_start>username_0: I have a DialogFlow agent I am trying to test on Google Assistant. I've created a relatively simple Intent called "Set name" with the following Training phrases: * My name is Ryan. * Bill * I'm Steve * The name's Bond. <NAME>. It has two parameters: * Required: `given-name` with the Entity `...
2018/03/08
878
2,464
<issue_start>username_0: I got the following String > > var intNote = "08.03.2018 09:53:37 - <NAME> (Work notes) Work note internal" > > > which I manipulate the following way: ``` var tempArr = intNote.split('-'); var tempArr2 = tempArr[1].split('(Work notes)'); internalDate = tempArr[0...
2018/03/08
504
1,537
<issue_start>username_0: I have a list, of which I want to extract all elements of certain indices **or** the element in question being in another list: ``` list = ['foo', 'bar', 'spam', 'baz', 'qux'] indices = [0, -1] other_list = ['spam'] processed_list = magic(list, indices, other_list) processed_list == ['foo', 's...
2018/03/08
658
2,294
<issue_start>username_0: How to call a new method which is implemented in the concrete class of an interface I am using structure map IOC container. ``` public interface ICompanyRepository { IEnumerable GetAll(); Company Get(int id); Company Add(Company item); bool Update(Company item); bool Delete(int id); } ...
2018/03/08
370
1,261
<issue_start>username_0: I do not know how to find a string in the html tag and replace it with another one. I will show it on an example. I have something like that ``` ``` And I would like to get such an effect ``` ``` Does anyone have any idea? I'm sorry for my level of English.<issue_comment>username_1: You ...
2018/03/08
894
3,608
<issue_start>username_0: I'm trying to understand and master promise but I ran into an issue which I'm not sure if this would be the right way to do things. I'm using nodejs and I have the following: A database and a module in which I do something with the database. At one point I'm trying to do create a new user in t...
2018/03/08
1,127
4,083
<issue_start>username_0: I am kind of a beginner with Python and have dealt with the concept of a global variable. When I thought I understood the concept, I saw a short code which proved me wrong: ``` message="global" def enclosure(): message="enclosure" def local(): global message mess...
2018/03/08
786
2,801
<issue_start>username_0: Following [this example](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers) I wrote the following function: ``` var rasterToVectorWorker = new Worker( "../../../services/canvas/rasterToVectorWorker.js" ); rasterToVectorWorker.postMessage("message"); rasterT...
2018/03/08
560
1,221
<issue_start>username_0: I want to concatenate two columns of a csv file. I have somme issues with the quotes of the csv. ``` "column one","column two","column three" "A","1","A1" "B","2","B2" "C","3","C3" ``` I use this command line: ``` awk -F, '{$2=$3" - "$x;for(i=1;i<=NF;i++)if(i!=x)f=f?f FS $i:$i;print f;f=""}...
2018/03/08
436
1,368
<issue_start>username_0: I am trying to install AWS SAM (Serverless Application Model) Local on Ubuntu 16.04. I tried to install SAM Local using NPM with the following command. ``` npm install -g aws-sam-local ``` I got the following error. [![enter image description here](https://i.stack.imgur.com/sG0LQ.png)](htt...
2018/03/08
531
2,005
<issue_start>username_0: I have 4 tables: "Cars" table, where every car has an ID. "Operations" table that holds the operations have been done on a car. ``` | ID | CarID | Operation | User | JournalID | | --- | ----- | --------- | ---- | --------- | ``` "Transactions" table that records the costs of the operation...
2018/03/08
1,603
5,882
<issue_start>username_0: I would like to upload an image to my back-end using FormData, but as Ionic DEVAPP and Ionic VIEW does not support file, file-transfer and file-upload plugins, I need to do it using only Angular Http or HttpClient. When using DestinationType.FILE\_URI, i can get the internal url from the file ...
2018/03/08
420
1,529
<issue_start>username_0: So I'm not sure whether I asked the question well. I'm new to laravel and right now I'm building an application where I need to fetch data for a user if certain conditions are met. This is what I'm trying to achieve: Select from database where userid = $user and userstatus = active or inactive...
2018/03/08
581
2,066
<issue_start>username_0: Is it possible to generate a token with a built-in expiration period? And if so, what would be the most secure way to do it? To achieve this the generation datetime has to be encoded in the token in a secure matter.<issue_comment>username_1: If you sign your token, say with HMAC, you can add a...
2018/03/08
692
2,533
<issue_start>username_0: I am trying to use `html2canvas` (<http://html2canvas.hertzen.com>) to take a screenshot of my page that contains a google maps view, but I am running into an issue where the resulting screenshot is white, except for the marker. What (possibly) complicates the issue is that I am (trying to) cre...
2018/03/08
982
3,553
<issue_start>username_0: I have a problem with the word stemming completion of my created corpus using the tm package. Here are the most important lines of my code: ``` # Build a corpus, and specify the source to be character vectors corpus <- Corpus(VectorSource(comments_final$textOriginal)) corpus # Convert to lo...
2018/03/08
611
2,348
<issue_start>username_0: As per <https://curl.haxx.se/libcurl/c/CURLOPT_OPENSOCKETFUNCTION.html>, libcurl document said that this callback can be used for IP address blacklisting, so I decided to use it to block all private IP address. I have tried `raise Exception` directly in my custom callback function, but it won'...
2018/03/08
430
1,818
<issue_start>username_0: I am bit confused of react rendering Logic. Here are the two ways in which we can write the the code for JSX. First to write entire HTML and second to break html to smaller functions that returns the HTML I would like know which way one should procceed in terms of Component performance and co...
2018/03/08
349
1,398
<issue_start>username_0: I am using Echart.js library. var echartLine = echarts.init(document.getElementById('myChart'), theme); In echart option I add : ``` tooltip: { show: true, showContent: true, alwaysShowContent: true, triggerOn: '...
2018/03/08
4,619
15,158
<issue_start>username_0: I'm spending some time in learning how to use templates in C++. I never used them before and I'm not always sure what can be or what cannot be achieved in different situation. As an exercise I'm wrapping some of the Blas and Lapack functions that I use for my activities, and I'm currently work...
2018/03/08
790
3,260
<issue_start>username_0: at first place I'm just staring with iOS so maybe this is some dummy question but I can't figure it out. I'm using `SWRevealViewController` for side bar menu and I used `delegate` to detect `FrontViewPosition` and have this line of code: `self.revealViewController().delegate = self` in `viewDid...
2018/03/08
2,042
3,592
<issue_start>username_0: This is my pandas dataframe ``` time energy 0 2018-01-01 00:15:00 0.0000 1 2018-01-01 00:30:00 0.0000 2 2018-01-01 00:45:00 0.0000 3 2018-01-01 01:00:00 0.0000 4 2018-01-01 01:15:00 0.0000 5 2018-01-01 01:30:00 0.0000 6 2018...
2018/03/08
946
1,866
<issue_start>username_0: I have bean (name=tF) in Struts as of now we are performing operation on its variables using scriplets can someone help in removing scriplets and using jsp tags or Struts tag ``` <%=(lvarin.intValue()/100.00) %> ```<issue_comment>username_1: Use [`between_time`](http://pandas.pydata.org/...
2018/03/08
883
2,573
<issue_start>username_0: I have 50000 rows and 200 columns(on each row) and trying to delete all col objects from each row object, now it's taking 5 seconds to complete entire process. Is there any better way to improve performance? Note : There is chance of skip some objects, in this case don't delete skipRows and ski...
2018/03/08
723
2,280
<issue_start>username_0: I'm using Knex.js. I'd like to create a unique index for my table with WHERE clause: ``` db.schema.createTable('newTable', function(t) { t.increments() t.string('col1').defaultTo(null) t.string('col2').notNullable() t.integer('col3').notNullable() t.unique(['col1', 'col2', 'col3']).w...
2018/03/08
694
2,217
<issue_start>username_0: I have used `slideToggle` to show the popup content: ```js $( "button" ).click(function() { $( "p" ).slideToggle( "slow" ); }); ``` ```css p { width: 400px; } ``` ```html Toggle This is the paragraph to end all paragraphs. You should feel *lucky...
2018/03/08
850
2,978
<issue_start>username_0: I would like to import all methods from a module with altered names. For instance, instead of ``` from module import repetitive_methodA as methodA, \ repetitive_Class1 as Class1, \ repetitive_instance4 as instance4 ``` I'd prefer something along the lines of ``` from module import ...
2018/03/08
1,574
6,408
<issue_start>username_0: I am in this situation where my service interface is being implemented by two service classes. For example, **`IFooService`** is implemented by **`FooService`** and **`FooWithExtraInfoService`** Here is the interface: ``` public interface IFooService { Foo GetEntity(string fieldName, s...
2018/03/08
1,261
5,141
<issue_start>username_0: I'm trying to remove a checked item from a list (by pressing the button 'removeTask') but it only removes the checkbox, leaving the li text. ``` $("#removeTask").click( function(){ $("#taskchecklist li").find(":checked").remove(); } ); ``` Here is the htlm code: ``` 1. Fee...
2018/03/08
518
1,825
<issue_start>username_0: My apologies for such an simple question, but I am new to PHP and cannot find a answer that is specific to my issue. I have a variable: ``` $i = 15 ``` At the beginning of each year on January 1, YEAR increment $i++ So basically on `January 1, 2019, 15` will click up to 16. Thanks!<iss...
2018/03/08
590
1,769
<issue_start>username_0: I have written the code like below to filter out the records from the column named 'Document Type' which contains around 25 categorical values. ``` salesdf.loc[(salesdf['Document type'] != 'AVC') & (salesdf['Document type'] != 'CC') & (salesdf['Document type'] != 'CDI') & (salesdf['Document...
2018/03/08
497
1,794
<issue_start>username_0: I am writing a test case using Mockito, and have to write expectation for a method (signature shown below) ``` public Object process(Employee e); ``` In my test class, I have to simulate my expectations as follows: ``` when(someClass.process("any Employee with id between 1 and 100.").thenRe...
2018/03/08
1,022
3,215
<issue_start>username_0: I'm trying to sort a long list of labels based on a master list, and am struggling to implement this efficiently. As the example below shows, I want to group together all items in the long list which share a common start to the string, then create a new list with these in the same order as the ...
2018/03/08
308
1,094
<issue_start>username_0: I'm currently working on my personal website. By adding devise gems to my code, I'va made a mistake. I've written : ``` rails generate devise MODEL ``` and I want : ``` rails generate devise User ``` I know I could just start over, but I want to know first if it is possible to change t...
2018/03/08
659
2,500
<issue_start>username_0: I have a clojure script that I've been running for several years now. Recently I had to do a reinstall of leiningen and java 8. When I run the code I now get multiple StackOverflowErrors on third party libraries. E.g. StackOverflowError org.apache.commons.math3.util.FastMath.cosQ (FastMath.j...
2018/03/08
698
2,686
<issue_start>username_0: When i create a new div on the same document body, lets say a stack of divs, i loose the references to the .ts funtions on the previous div, i've tryed to emulate this with a button, so i have the div with: ``` Click Me ``` This works.. Now i click on one function on that div that creates a...
2018/03/08
578
2,205
<issue_start>username_0: I'm new to Symfony and I'm following a couple of quick introductions on the Symfony website: the [quick tour](https://symfony.com/doc/current/quick_tour/the_big_picture.html) and [installation guide](https://symfony.com/doc/current/setup.html). Both say you can install a server using: `compose...
2018/03/08
934
3,245
<issue_start>username_0: I have problem with Observium. On CentOS 7 I installed Observium. On this server i also have DirectAdmin and Wordpress. When I login to webpanel Observium, Graphs shows no data (nan). [Graphs no data](https://i.stack.imgur.com/0ZkAd.jpg) ``` php ## Check http://www.observium.org/docs/config_...
2018/03/08
618
2,325
<issue_start>username_0: This my success message but no email received in my email box [![enter image description here](https://i.stack.imgur.com/3yJyt.png)](https://i.stack.imgur.com/3yJyt.png) ``` MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=<EMAIL> MAIL_PASSWORD=<PASSWORD> MAIL_ENCRYPTION=...
2018/03/08
651
2,230
<issue_start>username_0: This code doesn't compile: ``` data Foo = A String | B (List Foo) Eq Foo where (==) (A x) (A y) = x == y (==) (B xs) (B ys) = xs == ys (==) _ _ = False ``` It yields the following error: > > Type checking ./eq.idr eq.idr:11:3-27: | 11 | (==) (A x) (A y) = > x == y | ~~~~~~~~~~~~~~~...
2018/03/08
324
1,297
<issue_start>username_0: I'm currently working with Logic Apps in the designer in VS 2017 in the context of one subscription. How do I switch to another subscription? I can't seem to find where the option is? Cheers,<issue_comment>username_1: So the answer is: I wasn't in the 'quick\_tour' directory that is created in...
2018/03/08
383
1,360
<issue_start>username_0: I need a headless browser for webscraping.Recently i tried 3 different headless browsers(**PhantomJS,Firefox,Chrome**). When using **phantomJS**, it gives some **error (i.e):Armv7 processor needs GUI**. then,am using **Firefox with geckodriver**, it shows **errors in the path and connection r...
2018/03/08
1,046
4,701
<issue_start>username_0: I have an iOS APP and a push notifications system which sends programatically notifications to the storing their token in a database. I have some views which I show or hide in the default View Controller. I would like to make the APP show a specific view when the user taps the notification. I ...
2018/03/08
875
2,497
<issue_start>username_0: So I have a set of data with around 120 parents each with between 8-16 child data entries. Each parent is indexed by number and I'm trying to get each child to have the parents number followed by an alphabetic character e.g. ``` A B 58 Parent entry 58A Child 1 58B Child 2 ``` It curre...
2018/03/08
982
2,747
<issue_start>username_0: I'm new to react and redux-observable. My question is How to define variable in epic? I was told to use const { user } = store.getState().currentUser.user I tried, but it didn,t work. () => request() is API like fetch. before ``` const updateDeviceTokenEpic = (action$: Observable, store: ...
2018/03/08
913
2,453
<issue_start>username_0: Hi I want to count number of rows affected in below script ``` BEGIN TRANSACTION; BEGIN TRY USE db1 PRINT 'DELETING STUFF' DELETE FROM oc WHERE a_col LIKE 'G' AND b_col LIKE '11' AND c_col LIKE 'P' AND d_col LIKE 'N' DELETE FROM oc WHERE a_col LIKE 'Z' AND b_col LIKE '1' AND c_col LIKE 'R' AN...
2018/03/08
205
745
<issue_start>username_0: What is the standard Cypress-way to wait for a 'please wait' modal to close? Easy to check it is there, but without using `cy.wait(ms)`, how can I cause Cypress to keep checking for a period of time, to see if the element has been removed from the DOM, or made invisible?<issue_comment>username...
2018/03/08
831
2,588
<issue_start>username_0: I am using `Import-CSV` to get the data from a csv file that looks like: ``` P1,1,3,4 P2,4,5,6 P3,1,2,3 P4,8.7,6,3 ``` I would like to keep the white-space in front of the text as it indicates the hierarchy. `Import-CSV` returns: ``` P1,1,3,4 P2,4,5,6 P3,1,2,3 P4,8.7,6,3 ``` I...
2018/03/08
469
1,653
<issue_start>username_0: ``` public class ClickBub : MonoBehaviour { int x; int count; TextMeshPro mytext; TextMeshPro soretext; GameObject textobj; // Use this for initialization void Start () { textobj = this.gameObject.transform.GetChild (0).gameObject; mytext = textobj.GetComponent(); ``` in this mytext i...
2018/03/08
1,860
6,393
<issue_start>username_0: I was trying to create a different color bar. For Mon blue, Tue red, Wed green. Please help me how to write it. `Line itemStyle: {normal: {color: 'blue','red', 'green'}}`, did not work. The code comes from the echarts site. ``` var dom = document.getElementById("container"); var myChart ...
2018/03/08
1,154
3,876
<issue_start>username_0: I have two table one which is master table & other is temporary table to store keywords i want keywords/tags in the tempTable to match the records in master table and show relevant result below is the sample structure on [SQL Fiddle](http://sqlfiddle.com/#!18/dd697/19) ``` CREATE TABLE [TestT...
2018/03/08
928
3,021
<issue_start>username_0: I am using Ceedling under Ubuntu 16.04 and Eclipse 4.7.2. So far everything works fine with the exception that I can't make \_ExpectWithArray mocking functions to work. For example I have the following function that I need to mock `void TestFunc(uint8_t * data);`. In my test file I have the fo...
2018/03/08
864
3,242
<issue_start>username_0: I have a queue which I process in a loop ``` while True: # a processing loop batch = [] while True: e = q.get() if e: batch.append(e) else: # the queue is empty break do_something_with(batch) # wait a moment before...
2018/03/08
1,796
7,022
<issue_start>username_0: I have 3 Image or Multiple Images Array whose total size is approx. 29mb or above. I am try to post it on server Side using Ajax with Form data. But It shows error when i try to post large data using FormData in MVC is there any solution. when i try to post data it shows error on client side me...
2018/03/08
264
814
<issue_start>username_0: I am storing multiple posts in a model like: ``` foreach($users as $user) { $post = new Post; $post->user_id = $user->id; $post->save(); } ``` Now if I have `20 users` I will have `20 new Posts`, **Question:** How do I get the 20 posts back after `save()` ?<issue_comment>username...
2018/03/08
2,372
7,378
<issue_start>username_0: I need to force two buttons to the bottom of a container, floating one left and one right. The caveats however are:- * The length of the content in the container may differ. * The width of the containers can not be fixed. This needs to work responsively so at any device-width, the two button...
2018/03/08
975
3,012
<issue_start>username_0: Here is a simplified addition operator overload for matrices that I've wrote, but my IDE (Clion) does not recognise it when I'm trying to use it like this: `m1 = m2 + m3`, and says: "binary operator + can't be applied to the expressions of type 'Matrix' and 'Matrix' " ```cpp Matrix& Matrix::op...
2018/03/08
949
3,786
<issue_start>username_0: i have a toolbar in my content page where there is one item called add , on clicking over add i want to open `DisplayActionSheet` i have created `ContentPage` `Toolbar` in `xaml` and attached `ICommand` to it in view model. Now `DisplayActionSheet` is accessible only in View hence i am not su...
2018/03/08
1,358
5,231
<issue_start>username_0: I need a function to make a comparison between two strings withouth considering the order in oracle. i.e. "asd" and "sad" should be considered as equal. Are there similar functions? Or I need to write my own function?<issue_comment>username_1: Not exactly a rocket science, but works (kind of, a...
2018/03/08
1,100
4,701
<issue_start>username_0: We have been following the official [Java migration guide](http://www.oracle.com/technetwork/java/javase/8-compatibility-guide-2156366.html) to upgrade our application from Java 6 to Java 8. Unfortunately we haven't set source and target version to 1.8 to prevent the usage of new language featu...
2018/03/08
682
2,346
<issue_start>username_0: Can we run shell script with check system mac address validation then process. ``` #!/bin/bash ### here i need to check system mac address ### if mac is not match then script will not run killall gnome-terminal echo "End Of Day Session Complete" ``` plz suggest<issue_comment>username_1: Wh...
2018/03/08
677
2,135
<issue_start>username_0: I want to add nullable `int?` and keep `null` when all values are `null`. I would like this results : ``` 1 + 2 = 3 1 + null = 1 null + null = null O + null = 0 ``` The problem is that if I sum a value with null, the result is null ``` int? i1 = 1; int? i2 = null; int? total = i1 + i2; // ...
2018/03/08
454
1,767
<issue_start>username_0: We want to place an android app in Google Play Store. Is it possible to change the name of the app depending on language or country? I know that it is technically possible (by using "string.xml") but somebody told me that it is not possible to give different names to the same app when placing i...
2018/03/08
331
1,444
<issue_start>username_0: I am creating application for Diabetes log system. I am confused whether database in UML -Use case diagram count as actor or not ? the application is recording the diabetes glucose reading which will be saved in firebase and it can also retrieve the readings for showing the progress in chart ...
2018/03/08
976
3,305
<issue_start>username_0: I've been trying to write a function that takes values of the side of a square and evaluates it's diagonal: ``` def diagonal(side): return side*cmath.sqrt(2) def main(): diagonal(1) # Evaluating for the specific case that side = 1 ``` Question #1: * When I run the code, I don't se...
2018/03/08
1,358
4,161
<issue_start>username_0: When creating a fresh web project using ASP.NET Core and Webpack, I'm getting dependency warnings from yarn about `extract-text-webpack-plugin`. --- My steps to reproduce: 1. `dotnew new web` 2. `yarn init` 3. `yarn add --dev webpack webpack-cli` 4. `webpack init` *The following warning mes...
2018/03/08
303
1,063
<issue_start>username_0: How can I return small html piece by directive. This is what I am trying to do: ``` ``` should be replaced by: ``` ``` And my wrong directive: ``` import { Directive } from "@angular/core"; @Directive({ selector: "[app-icon]" }) export class IconDirective { constructor(value: stri...
2018/03/08
489
1,762
<issue_start>username_0: how can I acomplish to change the view of my list when i select one option on dropdown list, via filter pipe? users I get from service... list is functioning, but it would be nice if I could filter it since it has hundreds of users active and inactive... in app.component.ts ``` inactiveUser: ...
2018/03/08
354
1,344
<issue_start>username_0: I have a task for a `Mule` flow to call an `Oracle` database stored procedure. This procedure has a number of parameters, which are all being passed successfully except the a `boolean` value. I'm getting the following error, no matter what I try: > > java.sql.SQLException: Invalid column type...
2018/03/08
333
1,161
<issue_start>username_0: I have an instance of network stream. When using `ReadLineAsync` no timeout exception is thrown. No problem with `ReadLine`. Why? ``` NetworkStream stream = GetStream(); stream.ReadTimeout = 1000; //1000ms var reader = new StreamReader(stream, Encoding.UTF8, true, BufferSize, true); ``` so:...
2018/03/08
720
3,067
<issue_start>username_0: I can get the value if it's a static test, but whenever I'm trying to get the translated value (using `ngx-translate`), it's empty. ``` {{ 'MENU\_TITLE' | translate | uppercase }} =========================================== ``` **This works** and returns `Test` ``` Test ==== ``` **spe...
2018/03/08
290
765
<issue_start>username_0: I need a help with c++. ``` int *tab1[5]; int tab2[] = {3, 4, 5}; tab1[0] = tab2; ``` It works but I want to have a variable instead of 5 in first line. Any ideas? Thanks you in advance.<issue_comment>username_1: I found an answer, ``` int n = 5; int **tab1 = new int*[n]; int tab2[] = {3, ...
2018/03/08
577
2,234
<issue_start>username_0: I have GUI which contains many QLineEdit, I want it to be cleared as soon as user go to it again to modify his input, I'm using PyQt5 in designing and python 3 in scripting, what signal is needed here?<issue_comment>username_1: A solution for this is to subclass a QLineEdit and override its foc...
2018/03/08
429
1,409
<issue_start>username_0: I am trying to understand how Map interface works in Java. What I am trying to do is: run through the array of strings and for each name in the array `name[]` put a random `grade`between 0 to 5. Then map the `grade`to `name[i]`. However, the map size gets weird, although I have 10 elements in a...
2018/03/08
373
1,210
<issue_start>username_0: The code is in below.I have a string.i want to replace a specific character with its fixed position. ``` $string = 'syeds nomasn shibsly'; $char = 't'; $position = [0,4,10]; foreach($position as $pos) { $str = substr_replace($string, $char, $pos); } echo $str; ``` Output will be `tyedt no...
2018/03/08
454
1,321
<issue_start>username_0: After ajax query I have the next numbers: ``` var a = "5.20"; var b = "7.20"; var c = "11.20"; ``` I have noticed that if compare numbers above `10.00` the condition is false. I do not understand why this happens ``` if (b > a) console.log("higher"); // true if (c > b) console.log("higher")...
2018/03/08
646
2,244
<issue_start>username_0: I'm writing a test for a function, and have to trigger the .catch part of that function, but Jasmine's spiesfor some reason can't do that. Method to be tested: ``` foo(){ doStuff() .catch((error) => { //stuff I still have to test bar() }) ``` } doStuff() returns a Promise (hence the...
2018/03/08
652
2,139
<issue_start>username_0: Trying to pass a custom function to the following function but I have no luck. ``` defmodule M do def custom_fn([head|tail],fnce) do fnce.(head) custom_fn(tail,fnce) end def custom_fn([]), do: nil end ``` Trying to call it like this: ``` M.custom_fn([...
2018/03/08
1,131
4,211
<issue_start>username_0: I have trained a faster rcnn model using the Tensorflow object detection API and am using this inference script with my frozen graph: <https://github.com/tensorflow/models/blob/master/research/object_detection/object_detection_tutorial.ipynb> I intend to use it for object tracking in videos, ...
2018/03/08
1,337
5,088
<issue_start>username_0: **RegisterController.php** I added here an update function so that when the user wants to login with Facebook, he/she will be redirected to a form and then fill the fields so that their information will be stored in the Database. ``` protected function create(array $data) { if ($data['use...
2018/03/08
604
2,456
<issue_start>username_0: I have a program which has multiple independent1 components. It is trivial to add a liveness probe in all of the components, however it's not easy to have a *single* liveness probe which would determine the health of all of the program's components. How can I make kubernetes look at multipl...
2018/03/08
700
2,296
<issue_start>username_0: I'm refactoring my test suite for a clojure application and am trying to figure out if there is a way to save let bindings for reuse to minimize copied code, as many tests require the similar setup but interfere with each other and require their own deftest. Ideally, I would like it to work a l...
2018/03/08
1,043
4,153
<issue_start>username_0: I was trying to understand the hashCode() for Java's Object and saw the following code for Java Object's hashCode() method: ``` package java.lang; public class Object { // Some more code public native int hashCode(); // Some other code } ``` Now, we know that if we create a class it i...
2018/03/08
3,753
12,443
<issue_start>username_0: I'm using `cats` [FreeMonad](https://typelevel.org/cats/datatypes/freemonad.html). Here's a simplified version of the algebra: ``` sealed trait Op[A] object Op { final case class Get[T](name: String) extends Op[T] type OpF[A] = Free[Op, A] def get[T](name: String): OpF[T] = lift...
2018/03/08
243
779
<issue_start>username_0: I work on SQL Server and I want to copy some rows from a tableA to tableB with MyColumnID included. So, on the new table I want (before the copy) to Set Identity\_insert tableB ON and in the end to Set Identity\_insert tableB OFF with IDENTITY(500,1). Below is my code: ``` set IDENTITY_INS...
2018/03/08
1,476
4,372
<issue_start>username_0: I'm using `regexp_like` function in Oracle in order to match the following number format : `xxxyxxx` I'm trying this : ``` select 1 "val" from dual where regexp_like('5553555','^(\d){3}(?!\1)\d\1{3}$') ``` but as I realized, negative lookahead is not supported in Oracle. how to do it w...
2018/03/08
2,078
6,826
<issue_start>username_0: I got this project where I want to check if an e-mail address exists in two or more csv files. The number of files can vary, also their prefix, but they will always be stored in the same directory. I need help with the following 1. A method for finding a match in two or more files. 2. Search ...
2018/03/08
461
1,639
<issue_start>username_0: I have a navbar with links ``` render() { return ( Task 1 Task 2 Task 3 Task 4 ) } ``` And i set the route to call the corresponding component with dynamic `id` to display the contents based on the `id` And my called **Test** component has the following c...
2018/03/08
4,887
17,427
<issue_start>username_0: I might very well be missing something as I'm so new to flutter, but I'm finding ThemeData's options very limited (at least with my understanding of how to implement it). If you look at this random design below from MaterialUp, I'd want to model something *roughly* like: `Themedata.cyclingC...
2018/03/08
1,460
4,764
<issue_start>username_0: I try select all Files from table sys\_files which are linked with a category or the subcategories. On my Example the main category for files has the ID 1 and there are some sub-categories on it. I first created the SQL-Code, to try it out directly on the database: ``` SELECT sys_file.name, ...
2018/03/08
411
1,552
<issue_start>username_0: In angular 5 I am creating an application where user can select quantity and price of products and once they are done the product price with the quantity would be shown in the total price. This is my code, that display only Total 0 My html code: ``` Total {{Price}} ``` Ts code: ``` Pri...
2018/03/08
714
2,588
<issue_start>username_0: I am trying to pull some simple metrics from the google analytics API. When setting the dates manually it returns the result as expected. When i try to set the date using a variable it does not work. the below code works ``` $dateRange = new Google_Service_AnalyticsReporting_DateRange(); $date...
2018/03/08
1,042
3,430
<issue_start>username_0: How can I convert `int[]` to comma-separated String in Java? ``` int[] intArray = {234, 808, 342}; ``` Result I want: ``` "234, 808, 342" ``` Here are very similar reference question but none of those solution provide a result, exact I need. * [How to convert an int array to String with ...
2018/03/08
790
3,052
<issue_start>username_0: when I create my api in nodejs and trying to pushing mongoose return count to new created array, it's not wait for the forEach and execute json.res() and giving null response. when I use **setTimeout()** then it's giving proper result. ```js let newcategories = []; let service = 0; const cate...
2018/03/08
379
970
<issue_start>username_0: I have tried to use the code below but failed. I want to know why it failed and what's the correct (and elegant) way to do that? ``` a <- 1 b <- 2 res <- lapply(ls(), function(x, l) { l$x <- get(x)}, l=list()) ``` I hope I get the result like ``` res # $a # [1] 1 # $b # [1] 2 ``` but wha...
2018/03/08
432
1,721
<issue_start>username_0: I've configured my core editor, and everything works just fine. I can open any file in my editor, from the command line. But, when I get to 'git commit' I'm getting this error: ``` hint: Waiting for your editor to close the file... fatal: cannot run -- unset-all: No such file or directory err...
2018/03/08
350
1,266
<issue_start>username_0: What's the time complexity of the following code in C++: (note that I'm using gcc, so len is taken as an input from the user) `int array[len]; \\array is uninitialized` Is it O(1) or O(len) ? I am a bit confused.<issue_comment>username_1: In general for POD types the time will be O(1). If yo...
2018/03/08
1,888
4,267
<issue_start>username_0: I have a file with the below table: ``` Name AvailableDate totalRemaining 0 X3321 2018-03-14 13:00:00 200 1 X3321 2018-03-14 14:00:00 200 2 X3321 2018-03-14 15:00:00 200 3 X3321 2018-03-14 16:00:00 200 4 X3321 20...
2018/03/08
784
2,938
<issue_start>username_0: I am writing a bash script which bootstraps the whole project infrastructure in the freshly installed server and i want to configure ssl installation with letcecrypt certbot. After I execute line: ``` certbot --nginx -d $( get_server_name ) -d www.$( get_server_name ).com ``` I get prompted ...
2018/03/08
312
1,135
<issue_start>username_0: I have a component called header and another one called sidebar I want to pass data from `Header` to `Sidebar` but there is no relation between them can anyone help me out ?<issue_comment>username_1: You can [Use Prop](https://reactjs.org/docs/render-props.html) ``` var text = "Click the butto...