date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
327
1,167
<issue_start>username_0: I have Jenkins' git plug-in clone my repository to a subdirectory of `WORKSPACE`. Accordingly, I set ``` sonar.sources=my/subdir ``` SCM detection doesn't seem to be informed by the above setting, however; and setting ``` sonar.scm.provider=git ``` …yields: ``` ERROR: Not inside a Git wo...
2018/03/13
619
2,192
<issue_start>username_0: Here is my code: ``` category = $(document).find(".chosen-single:not(.chosen-default) > span:first-child")[0].outerHTML ``` Sometimes it throws: > > Uncaught TypeError: Cannot read property 'outerHTML' of undefined > > > What kind of condition should I put on the way of that?<issue_co...
2018/03/13
659
2,372
<issue_start>username_0: Has anyone come up with a clever work-around for the limit of IoT Edge device modules not supporting cloud-to-device messaging or file-uploading? (ref: <https://learn.microsoft.com/en-us/azure/iot-edge/module-development>) > > Currently, a module cannot receive cloud-to-device messages nor u...
2018/03/13
792
2,268
<issue_start>username_0: ```css .box1{ width:200px; height:200px; background-color: #FFF8DC; position:absolute; top:200px; left:20%; margin-left:-100px; } .box1.hover { -webkit-animation: moving-image 2s 1; } @-webkit-keyframes moving-image { from { -webkit-transform: rotate(0deg) sca...
2018/03/13
602
1,954
<issue_start>username_0: Can I modify InstallShield setup.ilg File? I have install my program in C:\Program Files\MyProg using "InstallSheild". Now I want to copy the "MyProg" folder to some other computer and want my program to reside in D:. I will have to copy the "InstallSheild Installation Information" folder to t...
2018/03/13
1,329
4,660
<issue_start>username_0: I have a modal window with a keyboard in it. Everything's fine, except that I can't remove the scrollbar. I tried adding `overflow:'hidden'` as inline css but still nothing. Also, even when using `container-full padding-0` in bootstrap, the components still won't go till the edge of the scree...
2018/03/13
1,118
4,055
<issue_start>username_0: what should I write in the script to make javascript asynchronously implement firstly ajax method GET and then another simple function(in the order of my script)? because here while debugging I see that getCategories() is implemented before WriteCategories(categories) ``` $.ajax({ url: '/...
2018/03/13
416
1,502
<issue_start>username_0: In thymeleaf we have: ``` Link ``` It becomes: ``` [Link](http://hostname:port/somepath) ``` I want to get the full URL given path like that in controller, like: ``` @GetMapping(path="/") public String index(SomeInjectedClass cls) { String link = cls.someMethod('/somepath'); // e...
2018/03/13
586
1,925
<issue_start>username_0: Let's say I'm implementing a matrix and I want my struct to use `scalar_t`, where `scalar_t` can be `float` or `double`. Then, let's say I want to scan some text file and load it into my matrix: ``` // Inner loop: fscanf(mdata, format, &m->data[i * m->cols + j]); ``` If `scalar_t *` is `flo...
2018/03/13
698
2,234
<issue_start>username_0: My current script goes like: ``` #!/bin/bash victims=*asci* for f in $victims ; do awk /some blah blah here/ ;done ``` so basically takes all files containing *ascii* in their name and performs an action on them. I wanted, however, the filenames be entered as a parameter. Like: `bash mys...
2018/03/13
1,134
3,634
<issue_start>username_0: I am quite new to R and have only basic skills so far and even though I checked functions like `melt()` and `gather()` they somehow do not work for me. What I want to do is transform such data (considering that all options on HAS House /Renting and Homeless are only `1` and `0`and you cannot ha...
2018/03/13
389
1,252
<issue_start>username_0: I'm using pure CSS (Bootstrap 4) to display a tiled gallery. To do this, I'm using the flexbox elements from Bootstrap (`d-flex` and `flex-wrap`). Everything works fine if I only use `![]()`-tags. But I want to wrap the images with an -tag to link to a lightbox. If I do this, the gallery break...
2018/03/13
553
2,293
<issue_start>username_0: I wonder whether there is a way to determine the Connection ID and LocalEndpoint's port used by MySql Connection on the C# side. I know that I can run: ``` select * from information_schema.processlist where id = connection_id(); ``` However, my question is whether I can get these details (o...
2018/03/13
1,061
4,059
<issue_start>username_0: I am trying to implement the full calendar plugin in my webapp using Spring MVC, Java and MySql. I have been getting this error when I try to add a date using "input type = date" in my jsp: ``` Field error in object 'event' on field 'endDate': rejected value [2018-03-13]; codes [typeMismatch...
2018/03/13
353
1,369
<issue_start>username_0: Is it possible to install tensorflow GPU in debian? I am using Nvidia GTX 1070 ti and debian 9.3.0. I have tried several tutorials for Ubuntu but failed as debian doesn't have the same PPA repository supported by Ubuntu, also saw many saying that adding ubuntu's repository to debian is not reco...
2018/03/13
857
2,744
<issue_start>username_0: I'm install MySql on my OsX 10.11 El Capitan. If I try to start my query I have a strange error if my query have Group By. So if I try to execute this query from Terminal: ``` SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); ``` I can execute my query never problem....
2018/03/13
3,841
12,129
<issue_start>username_0: I tested simple string concatenation in Go with “+” and bytes.Buffer (both “`WriteString`” and “`Write(bytes)`”. The result shows that “+” is much slower than the other two, which makes sense. However, when I use the three ways to implement Fibonacci-like string concatenation (i.e. a, b, ab, b...
2018/03/13
1,771
5,969
<issue_start>username_0: Hi so I have been using this node server for some time and it recently stopped working (presumably due to some logical error I mistakenly adjusted), throwing a 404 when I run the server. When I call on it with an http request it throws a 404 as well and shows the same on load from the actual UR...
2018/03/13
145
599
<issue_start>username_0: Is it possible to delete local files by using jQuery? I have tried deleting a local file called `log.html` that is in the same directory as my `index.php` file by using php. This works, but I cannot use this as a function in jQuery, therefore I am looking for a jQuery alternative to this.<is...
2018/03/13
146
507
<issue_start>username_0: i want to convert Strings (for example $2,480.00, $1.22) to float values (expecting results: 2480.00, 1.22). Which way is best to do it? By loop, leaving in string digits and '.' or maybe with regex?<issue_comment>username_1: You can delete a file using jQuery by sending an AJAX request to you...
2018/03/13
1,064
3,305
<issue_start>username_0: so I'm writing this very simple function and I'm trying to return it's result but all I get is `NaN` error. Here is my current code: ```js function m(c) { return Math.max(c) - this.length - 1; } document.getElementById('app').innerHTML = m([1,4,6,8,43,2]); ``` ```html ``` When I `r...
2018/03/13
1,212
4,940
<issue_start>username_0: the Flask app I create only able to work if it outside the time range but return error if it is within the time range (the if path) ``` from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.cache import Cache from datetime import datetime, time app.config['CACHE_TYPE'] = 'simple' app.cach...
2018/03/13
722
3,514
<issue_start>username_0: I have a lot of tables in a docx file and I'm trying to get text from cells from first columns. I have this code for searching in full rows ``` for table in doc.tables: for row in table.rows: for cell in row.cells: for paragraph in cell.paragraphs: re...
2018/03/13
1,080
3,511
<issue_start>username_0: I want to pass an input value to a php session variable. With the code below, I can send the input value to the session but only appears in the alert box or if I refresh the page, which I do not want. I added the line `$ ("# form1") [0] .reset ();` to refresh the form and thus have the value of...
2018/03/13
913
2,951
<issue_start>username_0: I'm trying to achieve a faded effect on the left side and bottom of an image, like this result: [![enter image description here](https://i.stack.imgur.com/4Qztn.jpg)](https://i.stack.imgur.com/4Qztn.jpg) I tried it like this: `box-shadow: inset 0 0 85px 50px #f5f7fc` but on Firefox it doesn't...
2018/03/13
383
1,056
<issue_start>username_0: I've this code : ``` * link 1 > + + * link 2 > + + * link 3 > + + $('.mobile > li > span').click(function(event) { event.preventDefault(); $(this).next('.submenu').toggleClass('active'); }); ``` What I want to do is to toggle a class called "active" when I click on the ...
2018/03/13
1,302
4,001
<issue_start>username_0: when I use both `transition` and`transform`, then the animations are not very smooth on both `chrome` and`firefox`. It *blurs* when you hover over it. The only browser on which it is normal is `IE`. **Chome / FireFox** (Note the text, when the animation starts it start to be blurry. When it fi...
2018/03/13
1,177
3,285
<issue_start>username_0: ``` Dim testvar ``` testvar = ""sqlcmd.exe -S SERVERNAME\INSTANCENAME -U USERNAME -P PASSWORD -r1 -W -Q "select \* from Event.dbo.ALL\_EVENTS where (POLICY\_TYPE!='LOGFILE' and state='OPEN' and Category like 'Windows-High' and not (POLICY\_NAME like 'Level 2 and 3 alerts%') and not (TITLE lik...
2018/03/13
1,101
3,319
<issue_start>username_0: I use this code, i.e. drag & drop folder onto the `.bat` file: ``` set FILE_path="%~1" for /f "usebackq" %%i in (%FILE_path%) do ( set basename="%%~ni" ) echo %basename% pause 99 ``` It should display the folder/file name, but it shows error > > The system cannot find the file. > > ...
2018/03/13
701
2,634
<issue_start>username_0: I have a class countdown timer that I want to reset but when it resets it wont start again. Basicaly when the counter gets to `0` (when the status is "done"), sets `x = 1` and then in the activity checks if `x = 1` , and then the counter resets. When the reset method from within the class is ca...
2018/03/13
334
1,151
<issue_start>username_0: So, i have a little handlebars helper, for example ``` Handlebars.registerHelper('getTest', () => { test: 'test' }); ``` If i call this helper in template, can i use something like this ``` {{(getTest).test}} ``` Trying to use different brackets, like with arrays [ ], didn't helped. I th...
2018/03/13
757
2,502
<issue_start>username_0: I have a string which is somewhat like this: ``` string data = "I have a {apple} and a {orange}"; ``` I need to extract the content inside `{}`, let's say for 10 times I tried this ``` string[] split = data.Split(new char[] { '{', '}' }, StringSplitOptions.RemoveEmptyEntries); ``` The p...
2018/03/13
758
2,504
<issue_start>username_0: I probably did something stupid but when i upload a image with /admin I can't get it to load. I made a for loop to get all post's and everything shows except for the image model: ``` `class Post(models.Model): title = models.CharField(max_length=140) body = models.TextField...
2018/03/13
796
2,740
<issue_start>username_0: I'm joining two tables and I'd like to get some simple statistics describing that operation, i.e.: * how many rows I have **in total** in each of tables, * how many of them will be **joined** * how many will be left **unjoined** I'm sure there must be some smart and simple method to get all t...
2018/03/13
963
3,111
<issue_start>username_0: While executing the below two queries (focus on the part between two asterisks \* \_\_\_\_ \*), I am really wondering how does the position of UNION ALL changes the output. I am unable to understand. Query 1 ``` SELECT 'Jack' AS Name, 100 AS Marks FROM DUAL *UNION All SELECT 'Jack' AS Name...
2018/03/13
959
3,201
<issue_start>username_0: I'm trying to calculate the difference-in-years between 2 dates. ``` time1 <- as.Date(x = "2017-02-14", format = "%Y-%m-%d", origin = "", tz = "") time2 <- as.Date(x = "1972-02-17", format = "%Y-%m-%d", origi...
2018/03/13
264
1,056
<issue_start>username_0: Can I restart a MongoDB server through the mongo CLI client?<issue_comment>username_1: You can shutdown server via client. ``` mongo --host "hostname where server or IP" --port "port of mondodb server" --username "username" --password "<PASSWORD>" use admin db.shutdownServer() ``` [link t...
2018/03/13
1,509
4,851
<issue_start>username_0: I am creating an app using soundcloud api but I am getting error while parsing json object, I am new in this things so don't know what I am doing wrong here Here is my interface **ScService.java** ``` public interface SCService { @GET("/resolve.json?url=https://m.soundcloud.com/kshmr/set...
2018/03/13
480
1,570
<issue_start>username_0: I am generating dynamic id's based on the results from MySQL and this is working ok. However, I need to get value of id and whatever i try, it either comes back undefined or blank. I would appreciate any help if someone could point out my error. Thanks ``` php while ($inboxrow = mysqli_fet...
2018/03/13
1,340
5,293
<issue_start>username_0: Material Design for iOS doesn't look good, especially the **TextField**. So is there any way to create your own ? Or Is ther any way to add some styling to TextField so it will look rounded ?<issue_comment>username_1: You can get desired output with the help of `Container` Have a look.. ``` ne...
2018/03/13
2,301
7,614
<issue_start>username_0: When I run my Vue app, the console shows: ``` You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html ``` So now I want to check if Vue is in development from inside my templates by ...
2018/03/13
2,286
7,527
<issue_start>username_0: I am wondering if there is a good way to get nodes within a deeply nested object to announce their position within the object. For example, if you were to recursively crawl through the example data below (perhaps with help from a library like Lodash), is there a callback function you could pas...
2018/03/13
2,099
6,872
<issue_start>username_0: I'm quite new to Scala so apologies for the very basic question. I have this great on liner that checks if a number is a prime. What I'm trying to do with it is allowing the function to take in an Array and spit out the out the prime numbers. How can I best achieve this? Is it possible to do...
2018/03/13
912
3,378
<issue_start>username_0: I'm using apollo client for graphql. I set up the client in AppApolloModule that I'm importing in AppModule. I'm making a query in a service which is also imported right in the AppModule. Although the service runs before the AppApolloModule runs and hence apollo is not initialized when the quer...
2018/03/13
793
3,374
<issue_start>username_0: ImageView click is not working on custom layout creatd in android service. ``` public class CallService extends Service { String incomingnumber; @Nullable @Override public IBinder onBind(Intent intent) { return null; } @Override public int onStartCommand(Intent intent, int flags, int sta...
2018/03/13
330
1,142
<issue_start>username_0: The website I am developing has a problem showing the background image in Internet Explorer: ```css img { width:100%; height: auto; /*margin-top : -50px;*/ } ``` ```html ![](./images/garri_processing.png) ```<issue_comment>username_1: CSS should be this. ``` body { background...
2018/03/13
771
2,914
<issue_start>username_0: I have a Java program that I need to kill a thread. It does not need to be killed gracefully, I just need the thread to end, as I am calling it to kill a bunch of threads as an action handler for JavaFX on window close. Here is the program in question: <https://github.com/Aashishkebab/Sorting-...
2018/03/13
1,229
3,124
<issue_start>username_0: I am trying to add 9 markers under a common `div` and adding name for each `div`. The code works well, when I am using a 100% width of the page. I would like to adjust it to 80%.Now I see that the markers are not aligned properly with the main div. My code: ```css .wrap { width: 80%; ma...
2018/03/13
985
2,555
<issue_start>username_0: I am new to php and xml. I am trying to build a php login system using xml file but it is not working. I am trying to just verify username but it is not showing anything in the form page. ``` php if(isset($_POST['login'])) { $n=$_POST['username']; $p=$_POST['password']; //echo $n; ...
2018/03/13
1,253
4,511
<issue_start>username_0: This post isn't really a question anymore; I just want to post this to help other people out in the future to avoid lost time. **Goal**: Retrieve the client IP address and set some specific values based on certain octet in IP. I was developing a react web-app for my company and needed to sup...
2018/03/13
942
3,413
<issue_start>username_0: Hey All I have a question about running Jmeter as step in Junit, Is it possible that in Junit to call to JMX file and run it in Jmeter? and all will be done from eclipse? for example: step 1 validate data in DB step 2 get properties step 3 fire data via Jmeter step 4 verify data in Junit<issue...
2018/03/13
1,048
3,832
<issue_start>username_0: I am using Oracle Apex Express 5.1.1.00.08. I have enough room on my table spaces. My workspace has currently 25 database applications and a total file size of 12 MB. I know at some point in the past populating a varchar2(4000) variable worked well. Today is not working anymore. All my variable...
2018/03/13
481
1,827
<issue_start>username_0: How to remove required in hidden fields. It must remain required in visible field.When one of the options is selected, the required field needs to be removed. This form created django framework. For example, when "tuzel" is selected, the required field needs to be removed from the adi field. ...
2018/03/13
503
1,495
<issue_start>username_0: I've got a field in a downloaded CSV like this: October 15th 2017, 12:00:00.000 I want to split this field into a real date field and a time field. Can't find any good solution on how to do this. Any ideas?<issue_comment>username_1: First put this `UDF()` in a standard module: ``` Public Fun...
2018/03/13
756
2,448
<issue_start>username_0: I am following [this](https://doc.qt.io/qt-5.10/qt3d-basicshapes-cpp-example.html) example to make solid objects in `QT`. The example requires a `.pri` file called `examples.pri` which I am unable to locate. [This](https://stackoverflow.com/questions/39747834/couldnt-find-the-examples-pri-fil...
2018/03/13
2,773
6,517
<issue_start>username_0: I have data that looks like the following: ``` library(dplyr) dat<-data_frame(Date=as.Date(c("2012-08-06","2012-08-06","2016-01-01","2016-12-20","2017-02-01","2015-02-03","2014-12-28","2017-06-06","2017-08-04","2017-10-28")),Person=c(1,1,2,2,2,3,3,4,4,4),Type=c("A","B","A","A","A","C","C","A",...
2018/03/13
2,439
6,531
<issue_start>username_0: I need about 200 buttons that act as indicators with different colors and I have a list with true and false and wonder if there is a way to update them without having to write the names of the 200 buttons. Something like this: ``` while (servoNumber != numberOfServos) { if (Convert.ToBoole...
2018/03/13
915
3,192
<issue_start>username_0: I have a list of contact that look like this: ``` contacts = [{ name: 'Albert' }, { name:'Bernard' }, { name: 'Bob'}, { name: 'Robert' }]; ``` Considering the contacts are already ordered alphabetically, how would you go about display each of them in a list categorized by letter like so: A ...
2018/03/13
413
1,447
<issue_start>username_0: I had installed [sparkup](https://github.com/rstacruz/sparkup) plugin in vim.and they say press .I had searched the google a lot and didn't find how to press this key ? please some tell me what do they mean . is it key combination ? a single key ? or something else ?<issue_comment>username_1: (...
2018/03/13
563
1,856
<issue_start>username_0: I just started learning Python. I ran into a problem when I wanted to write a small sample code using the "replace" module. Here is my code: --- ``` char_arr = "Dün değil evvelsi gün" vowel_in_tr = "aeıioöuü" for i in vowel_in_tr: for k in char_arr: #search a vo...
2018/03/13
547
1,792
<issue_start>username_0: In Tab "FISV 03-05" I have values in column C. I want to lookup this same value in Column C of tab "PF Outstandings" and return the value of Column D into the Column D of the "FISV 03-05" tab. It has to be an exact match and I have over 250K rows of data to look up values on (it takes over 20 m...
2018/03/13
171
572
<issue_start>username_0: I want to run this query through Apache Drill. ``` select * from mytable where my_date BETWEEN sysdate-1280 AND sysdate; ```<issue_comment>username_1: You can try `current_date` instead of `sysdate`. See the docs about available time functions here: <https://drill.apache.org/docs/date-time-f...
2018/03/13
309
1,034
<issue_start>username_0: I got a problem My hellow.component.html is: ``` {{hello}} ``` and hellow.component.ts is: ``` import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-hellow', templateUrl: './hellow.component.html', styleUrls: ['./hellow.component.css'] }) export class Hello...
2018/03/13
627
1,968
<issue_start>username_0: I am currently setting up **Amazon S3 storage** with my website built on **Laravel 5.6.11.** I set up the env variables in ***filesystems.php*** file as it ``` 's3' => [ 'driver' => 's3', 'key' => env('<KEY>'), 'secret' => env('2IUTHoHg3_MY_SECRET_K5Rs'), '...
2018/03/13
744
2,283
<issue_start>username_0: I have C++ code defining a `curves` class, a `curve` class and a `point` class, I'm trying to write Python bindings for those classes via pybind11 and use them in Python. The pybind11 bindings for these classes look like this: ``` namespace py = pybind11; PYBIND11_MODULE(mymodule, m) { ...
2018/03/13
470
1,918
<issue_start>username_0: I have a simple Bash shell Script to loop through each file in a directory and check is the copyright message is at the top of the file. If it's not there is should add it. The script is giving an error when I try to use a variable in the sed command. I have looked at other similar questions...
2018/03/13
1,071
3,663
<issue_start>username_0: I'm trying to get rid of some word that is inside a tag. I have a quite long string `string(4687) "~~PB~~ {{:en:iot-open:remotelab:logotyp_1_.png?200|}} testtest ====== RoofTop Thermo Laboratory - intelligent house and heating management ====== The laboratory is located at nowhere, xxx, xxxxx...
2018/03/13
440
2,061
<issue_start>username_0: I am building a continuous deployment pipeline in VSTS. Simplified it looks like this: `Trigger -> Staging -> Approval -> Live` In this case: `Trigger` is everyday at 10:00 (business requirement) `Approval` one of the senior staff needs to review staging and approve the changes for live. V...
2018/03/13
475
2,004
<issue_start>username_0: Here is the code, how I am adding marker into the map: ``` markerOpt = new MarkerOptions(); markerOpt.SetTitle("Shop"); markerOpt.SetPosition(Location); _map.AddMarker(markerOpt).ShowInfoWindow(); Marker aM = _map.AddMarker(markerOpt); listCurrentPostsMarkers.Add(aM); ``` No problem while ad...
2018/03/13
906
3,162
<issue_start>username_0: I am recently reading the MIPS assembly for a little OS running on embedded systems based on MIPSfpga. I have two files, `boot.S` and `boot.h`. I used the command `mips-sde-elf-gcc -c -o boot.o boot.S` to compile it so it would go through the C preprocessor `cpp`. In the file `boot.h`, it de...
2018/03/13
827
2,600
<issue_start>username_0: Given the following table html, I would like to style my table to have only border around table, and border across column excluding border across rows. Here is what I already have: ```html | | | | | --- | --- | --- | | The right-hand thumb "C" | Right-handed thumb "B" | Representatives o...
2018/03/13
915
2,843
<issue_start>username_0: Basically I am creating an array 'string' with some values in it, creating another array ('auxstring'), and then storing all the values of the initial array in reverse order. Finally I print them out. How come when I execute the program as is, I get garbage as the output? However, if I put an...
2018/03/13
1,047
3,160
<issue_start>username_0: Trying to debug and understand a small problem with what seems to be a move constructor, problem appears only in visual studio 2017 15.6.1, release build. Here is the code (minimal to reproduce the problem): --- ``` #include #include #include #include const size\_t kSize = 16; class Sy...
2018/03/13
478
1,429
<issue_start>username_0: I'm having a problem in converting an object ``` var obj={"Id":"1-AQC1Y1S","Root Order Item Id":"1-AQC1RSA","SC Long Description":"6.5" TXL/Qn/"}; ``` In the above object, we have a value like **6.5"** in a string. Please help me out here. Thanks in advance.<issue_comment>username_1: Just es...
2018/03/13
608
2,131
<issue_start>username_0: My question is quite similar to [this question](https://stackoverflow.com/questions/35317721/content-placeholder-for-preloading). I want to achieve progress indicators that use this style: [![https://github.com/michalsnik/ember-content-placeholders](https://i.stack.imgur.com/areKx.png)](https:...
2018/03/13
451
1,413
<issue_start>username_0: Suppose i have this string : `"X1 + X2 = Y3 + Y4 * Y5"` , from this string i wanna get an array `{X1,X2,Y3,Y4,Y5}` My problem is how manage the following case : `"X11 + X2 = Y3 + Y4 * Y5"` , in this case i would get an array : `{X1,X11,X2,Y3,Y4,Y5}` and this is wrong because `"X1"` doesn't exis...
2018/03/13
862
3,246
<issue_start>username_0: On submitting Angular form, there is no error in the individual form controls. Still the form state is `INVALID`. with the following error object. > > > ``` > errors : { > __zone_symbol__state: true, > __zone_symbol__value: null > } > > ``` > > Here is the form group with custom...
2018/03/13
219
717
<issue_start>username_0: I'm using `keycloak` for authentication and authorization with `Spring Boot` and `Thymeleaf`. I'm trying to secure some areas, for example if the user has the role `ROLE_TEC`, I have to hide some part of the view, so I'm doing the following: ``` - //some html ``` The user that I'm using has...
2018/03/13
497
1,863
<issue_start>username_0: I am uploading a private file from localhost to Amazon S3. After uploading, how to download that particular file from front end.(JavaScript)<issue_comment>username_1: You can try s3.getObject some links that can help You: <https://aws.amazon.com/sdk-for-node-js/> Examples: <https://github.com...
2018/03/13
2,972
6,388
<issue_start>username_0: I have tried to make installation to my software, and this Software has some prerequisites. I made a Bootstrapper wix for them and trying to run them alone not in the Main Wix installer seems to work fine. The moment I tried to attach this EXE that I got from the Bootstrapper in my Wix Installe...
2018/03/13
1,044
3,397
<issue_start>username_0: I need to calculate the average of the date difference of all of my rows in `dataGridView`. I implemented NodaTime (which is far more easy than the traditional methods to calculate date difference) and, I did this just to try out: ``` var date1 = new LocalDate(2013, 1, 29); var date2 = new Lo...
2018/03/13
529
1,760
<issue_start>username_0: In the following snippet I want to check whether or not the radio checkbox have been checked: ```js d3.selectAll("input[name='test1']").on("click", function() { // log 'this' console.log("this will always be true", d3.select(this).property("checked")) // log selected property yields d...
2018/03/13
480
1,561
<issue_start>username_0: My project has two dirs `common` and `core`. ``` root |----common | |-----__init__.py | |-----util.py | |------core |-----__init__.py |------iemoji.py ``` In root, I execute `python core/iemoji.py`, an error occurs. > > Traceback (most recent call last): ...
2018/03/13
414
1,211
<issue_start>username_0: I have a warehouse calculation sheet: * In line 2: It is tracking sales and also giving a stock-forecast for every day future. * In line 3: Its possible to plan deliveries and stock correction Now in an overview sheet I would like to know the next date when the warehouse will be empty. I've g...
2018/03/13
730
2,621
<issue_start>username_0: Here is my code and the error: [![enter image description here](https://i.stack.imgur.com/YMqmf.png)](https://i.stack.imgur.com/YMqmf.png) As you can see, I've tested the insert statement like `if ( $inserted )`, but `id` isn't into that object. How can I fix it? --- And here is my code: `...
2018/03/13
452
1,562
<issue_start>username_0: I have a string of text that looks something like this: ``` ?q=search&something=that&this=example/ ``` In that example, I need to grab `that` . I'm using the following regex below: `var re = new RegExp("\&(.*?)\&");` Which going `re[1]` is giving me: `something=that` - but it needs to be ...
2018/03/13
749
2,637
<issue_start>username_0: ``` import csv with open('example.csv', 'r') as f: csvfile = csv.reader(f, delimiter = ',') client_email = ['<EMAIL>', '@moreexamples.com', 'lastexample.com'] for row in csvfile: if row not in client_email: print row ``` Assume code is formatted in blocks pr...
2018/03/13
580
2,087
<issue_start>username_0: Lets say I have a table called Car and with the columns Age and CreationDate. I now want to order so that all cars that have an age greater than 0 are sorted first and then sorted by creationDate in descending order. So it doesn't matter if the cars age is 4,6,7 for example just that it is gr...
2018/03/13
599
2,574
<issue_start>username_0: We are currently running Azure Mobile App backend + Xamarin app as client and it works fine. Soon, we will be creating new mobile backend. However, it would seem that, according to this <https://github.com/Azure/azure-mobile-apps-net-server/issues/227> azure mobile apps is abandoned? Even Ad...
2018/03/13
657
2,649
<issue_start>username_0: So I have this mesh that I generate using perlin noise [![Mesh Screenshot](https://i.stack.imgur.com/c1RZZ.png)](https://i.stack.imgur.com/c1RZZ.png) What I want to do is to be able to click to place an object in the game. My ultimate goal is to have a menu so you can place different objects ...
2018/03/13
708
2,780
<issue_start>username_0: I need some help with async tasks and Firebase. I need to save **n** itens on Firebase Realtime database, but I don't know how to deal with the callback. Here's my code: ``` TagRepository tagRepository = new TagRepository(); for (Tag tag : databaseTags){ if (user.getTags().contai...
2018/03/13
838
2,716
<issue_start>username_0: I have a question regarding importing an `anime.js` into my vue project. I am using vue cli. How do I include `animejs` to my project? I tried it this way: ``` import anime from 'animejs' Vue.use(anime); ``` but I get an error in the console that says: > > **Uncaught TypeError**: a.hasOwnP...
2018/03/13
272
999
<issue_start>username_0: I suppose that "nft list ruleset" only list current rules on my system. Although, when I use... > > nft list ruleset > nftables.conf > > > ...I expected to see the rules on this file, however my file get tottaly blank instead. I suspect this command "nft list ruleset > nftables.conf" is...
2018/03/13
338
757
<issue_start>username_0: I have a dataframe looks like, ``` A B 1 2 1 3 1 4 2 5 2 6 3 7 3 8 ``` If I `df.groupby('A')`, how do I turn each group into sub-dataframes, so it will look like, for `A=1` ``` A B 1 2 1 3 1 4 ``` for `A=2`, ``` A B 2 5 2 6 ``` for `A=3`, `...
2018/03/13
549
1,855
<issue_start>username_0: I am reading and storing CMD commands in an array. The last line in the array is the following string: ``` "[1] success" ``` I want to extract the 'success' part. So I stored the last element in a new variable and did some transformation: ``` var item = line[line.Count - 1]; item = item...
2018/03/13
823
3,310
<issue_start>username_0: Please explain to me why I am getting this crash? > > Thread 1: EXC\_BAD\_INSTRUCTION (code=EXC\_I386\_INVOP, subcode=0x0) > > > in this > > DispatchQueue.main.sync { > print("sync") > } > > > This is my code. ``` override func viewDidLoad() { super.viewDidLoad() pri...
2018/03/13
943
3,555
<issue_start>username_0: I'm trying to build a custom implementation for flutter of the `FloatingActionButton`, something to replace the standard widget on the `Scaffold.floatingActionButton` attribute. The problem is that there is a 16 bottom right margin whatever I try to render within that field, and the only worka...
2018/03/13
274
994
<issue_start>username_0: I stuck in a little problem. I exercised broadcast upload extension with replaykit, I wanted display a error code when occured exceptions. But I couldn't any way for that. Would you teach me a way? [![enter image description here](https://i.stack.imgur.com/MNyPt.png)](https://i.stack.imgur...
2018/03/13
837
2,851
<issue_start>username_0: When user fill up all the fields of form and click submit then I want to show a alert dialog box, but when i call that javascript function then HTML form dont work properly. Means even i left all the input fields blank then also i can submit the form and it shows the alert box on browser. Plz h...
2018/03/13
959
3,493
<issue_start>username_0: The question is very simply yet the solution is quite confusing. My current implementation is that I'm generating random number between 50 to 100 and save it using **`this.setState({...})`** Which I then call it in my render method. But the gotcha is that the random method in itself generates...