date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/12
480
1,672
<issue_start>username_0: Good evening, I have a bug after several tries I still can not find the solution :(   I would like to see a month click when you click again another month is displayed but not the same you remove it from the list That's my code for the moment Being very novice but looking on google I did no...
2018/03/12
1,425
4,681
<issue_start>username_0: I've been trying to get a background picture to actually be in the back and not in the front. I've tried with z-index, positioning en making divs in divs. But nothing really worked out. The Screenshot of the issue.: <https://gyazo.com/4e9ae692ce1280ba8ea0ec37cb54930b> **The above picture n...
2018/03/12
1,310
4,239
<issue_start>username_0: I have a list of items of variable width inside of a wrappable `flex` box. I want all items to have the same width, so I applied the following CSS attributes: `flex-basis: 0` and `flex-grow: 1`. With that, each item in every column should have had the same width, independently from its origina...
2018/03/12
1,413
4,909
<issue_start>username_0: I have a button that takes a value from a checkbox and inserts it dynamically into a URL parameter. the URL looks like this: `example.com/search?q=searchterm&site=site1&page=1` `&site=site1` is what is being updated dynamically by the value of a checkbox. My code for that looked like below at...
2018/03/12
887
3,076
<issue_start>username_0: I am trying to "fake 3D" in a game in WPF. Think of a road, and that the objects appear somewhere in the distant. As they get closer, they look bigger, and eventually they grow in size very fast. I'm thinking that when the object appears, it's close to 0 in width and height. As it moves toward...
2018/03/12
3,499
7,095
<issue_start>username_0: I'm creating a forum/news feed type application and currently trying to create the actual news feed/forum. So far I have a tableview which is populated by the posts consisting of the user's display name, profile picture and post text. The issue I'm having is that it is not ordered. It display...
2018/03/12
3,623
7,643
<issue_start>username_0: When I tried to find the solution for the challenge I'm facing at the moment, I was provided with many approaches which didn't seem to quite fit my problem. Here's what I'm facing: I have a back-end integrated with `Spring Security` and the front-end is all built using `AngularJS`. We have 2 s...
2018/03/12
1,148
4,039
<issue_start>username_0: I'm trying to map the result of my httpclient and we need to use the new import for RxJs to get the treeshaking working. so i've found 2 map but none work... ``` import { map } from 'rxjs/operator/map'; import { map } from 'rxjs/operators/map'; ``` the old fashion way that we need to remov...
2018/03/12
1,221
4,716
<issue_start>username_0: I'm seeing something that doesn't make sense to me. Here's my code... ``` import Foundation enum SeparatorPaddingLocation{ case beforeSeparator case afterSeparator } struct SeparatorToken{ let separator : Character let formattedSeparator : String let paddingLocat...
2018/03/12
228
815
<issue_start>username_0: When i specify the directory of Glassfish 5.0, i get this message in the IDE : > > No usable default domain. Use Next to create a personal domain. > > > But, there is already a domain (domain1) and i don't want to create another one. My question is : How to solve this problem ?! Or how c...
2018/03/12
635
2,266
<issue_start>username_0: I've got a class which contains these vectors: ``` class MainMenu { private: std::vector vehicles; std::vector instructors; std::vector trainees; std::vector lessons; public: std::vector& getVehicles(); std::vector& getInstructors(); std::vector& getTrainees(); std::vector& ge...
2018/03/12
382
1,470
<issue_start>username_0: I have code like this: ``` private Dictionary> OutboundCommandSetsById; private Dictionary> InboundCommentSetsById; private List MyCommandSet; ``` I would like to declare a custom data type called `CommandSet` that is nothing more than a List of Commands. It's plane old code substitution, ...
2018/03/12
928
3,014
<issue_start>username_0: I have a dataset/table (called **behavioural**) with data from **24** participants - these are named in the format: 's1' to 's24'. The first 6 rows in the table/dataset: ``` head(behavioural)[c(1,17)] subj recognition_order 1 s1 2 2 s1 6 3 s1 ...
2018/03/12
565
1,993
<issue_start>username_0: I want to set a particleSystem position to the first touch position. I use the code below: ``` public ParticleSystem pSystem; Touch firstTouch; void LateUpdate(){ if (Input.touchCount == 1) { firstTouch = Input.GetTouch (0); if (firstTouch.ph...
2018/03/12
1,103
3,733
<issue_start>username_0: So I want to automate a lot of manual work of copy/paste with the help of a Macro. The macro should read all files from folder one by one, copy the content from that source file range "I9:J172" and paste it on the destination file (where the macro is of course) on the column first blank row. `...
2018/03/12
911
3,358
<issue_start>username_0: we need to automate the process of deployment. Let me point out the stack we use. We have our own GitLab CE instance and private docker registry. On production server, application is run in container. After every master commit, GitLab CI builds the image with code in it, sends it to docker regi...
2018/03/12
6,161
19,297
<issue_start>username_0: Recently I tried to update my Spring Boot application version from 1.5.10.RELEASE to 2.0.0.RELEASE **Project Environment** * JDK version 1.8 * jcenter() repository in Gradle * IDE Spring tool Suite (STS) Version: 3.9.2 I have encountered two issues 1. I got the completion issue below. > >...
2018/03/12
1,256
5,166
<issue_start>username_0: I have a **index.pug** with a drop down in it, i want to display the alert window when the user selects any value in the dropdown list. My **index.pug** and **commandLine.js** are in the same directory.But when i am selecting any value from drop down, the alert message is not displaying. I am u...
2018/03/12
1,233
5,007
<issue_start>username_0: Need a help here. I am working on a project where I have to delete elements(keys) when it is not used for a certain time. I tried with both timeToLiveSeconds and timeToIdleSeconds as 60 seconds. Also tried with only timeToLiveSeconds=60 and with only timeToIdleSeconds=60. But I still see that e...
2018/03/12
950
3,991
<issue_start>username_0: I'm developing a chat application in Java. The architecture used is Server - Client(s) architecture. The majority of the code is in Java, JavaFX for the GUI and PostgreSQL as the Database. As this is a chat application (desktop), I'd like to know which is the best way to store chat histor...
2018/03/12
412
1,536
<issue_start>username_0: ``` SELECT department_id, MIN(salary) FROM employees WHERE department_id HAVING AVG(salary) >= (SELECT MAX(AVG(salary)) FROM employees GROUP BY department_id); ``` why it give me the invaild use of group function<issue_comment>username_1: If you w...
2018/03/12
449
1,394
<issue_start>username_0: I'm trying to perform the following operation: ``` double exponent = pow(2.0, -254) ``` The result I get is 'inf', the actual result is: 3.4544e-77, which is a very small number, I would guess that I could get '0' instead but I get 'inf'. I need the actual result, is there a way to improve ...
2018/03/12
708
2,337
<issue_start>username_0: I'm using the ng-pick-datetime picker for my application. I want the selected time to show in 24hr (15:00 instead of 3:00 pm). When the picker opens the time is displayed in the picker correctly, but once selected it changes it to 12hr time format. Is there a way to set the selected time to sho...
2018/03/12
462
1,565
<issue_start>username_0: I've select element like this ``` 1 2 3 ``` on backend I want to select a value, like so. ``` 1 2 3 ``` This should have selected 2nd option, but it doesn't. Does this not happen or is something else is wrong. Chrome/windows **Edit** Had to go with boolean route, i...
2018/03/12
401
1,025
<issue_start>username_0: Please, look this simple code: ``` > x = c(1,2,3,4,5,6,7,8,9) > data = matrix(x,nrow = 3, ncol = 3) > v1 = colMeans(data) > v1 [1] 2 5 8 > v2 = apply(data, 2, mean) > v2 [1] 2 5 8 > identical(v1, v2) [1] TRUE > all.equal(v1, v2) [1] TRUE > isTRUE(v1 == v2) [1] FALSE ``` "isTRUE" show the c...
2018/03/12
283
862
<issue_start>username_0: I have a function that needs to close the camera at the start and re-open it at the end. I know that to close it I do: ``` import picamera camera = picamera.PiCamera() camera.close() ``` How do I re-open it?<issue_comment>username_1: That's correct. ``` > isTRUE function (x) identical(TRU...
2018/03/12
573
1,424
<issue_start>username_0: ``` Table 1: A | B | Q1 1 1/1 20 2 1/1 10 1 1/7 30 2 1/21 30 1 1/10 15 2 1/30 5 Table 2: A | C | Q2 1 1/10 10 1 1/12 10 1 1/17 40 2 1/14 10 2 1/23 25 2 1/25 5 ``` Q1 is the scheduled quantity and q2 is the ...
2018/03/12
453
1,447
<issue_start>username_0: I want to create a new column `(FallCount)` in my dataframe (`TowpathMerge`) if a student is enrolled 20 or more days during the time frame of August 15,2017 to November 30, 2017. If they are, `FallCount` would read yes. If not, `FallCount` would read no. `EffectiveStartDateFS` is when a studen...
2018/03/12
1,160
4,195
<issue_start>username_0: I have an application that is using the standard jwt authentication shown below and copied from the express-jwt readme. ``` app.use(jwt({ secret: 'hello world !', credentialsRequired: false, getToken: function fromHeaderOrQuerystring (req) { if (req.headers.authorization && req.heade...
2018/03/12
920
3,384
<issue_start>username_0: I'm using Xamarin Forms and I tried to format a string (in XAML view) for currency in form: `1.235.436,00` where comma `,` is the decimal separator. At first, I used `StringFormat{0:C2}` and result was: `$1,235,436.00` which is for US. After, I tried `StringFormat{0:#,0.#0}`, result: `1,235,436...
2018/03/12
764
3,081
<issue_start>username_0: I have a `UIScrollview` in my app. Then there's programmatically created content inside of that `scrollview`. Now, is it possible to make my `UIScrollview` scroll e.g. `45px` more to the right then the actual content stretches without dodgy doing something like placing a transparent `UIView` ...
2018/03/12
1,835
6,333
<issue_start>username_0: I am trying to read text from a data file. Each line of text is shown below: ``` Group_5, 4911.66, 4910.274, 13781.725, 2018 ``` I want to parse the string so that I can use the values for my calculations. The string array `Str` is only collecting the first term `Group_5`. ``` private void...
2018/03/12
1,402
5,040
<issue_start>username_0: I have a text file (fileA) that has the same block of text 100 times (approx) I also have a text file (fileB) that has 100 (approx) values, one per line. I want to search fileA, and each time pattern is found, replace pattern with the next line of fileB, i.e. replace the first occurence of pa...
2018/03/12
336
1,285
<issue_start>username_0: We are migrating to webpack 4. We do have dev / prod config files already. We started getting this warning message: ``` WARNING in configuration The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment. ``` We can get aro...
2018/03/12
919
3,916
<issue_start>username_0: I cant seem to figure out why this is throwing an error, and only the first time through. When a user's logs on a sheet for Expense and Income are created for each user the logging in user has access too. It is copied from a Master Expense Page and Master Income Page respectively. On logout, a ...
2018/03/12
328
1,209
<issue_start>username_0: There's no mention of it in the docs it seems, I would like to limit the search to n characters. I can successfully try this in Chrome dev tools by adding a `maxlength` attribute to the input element, but I'm not sure how to tell a react-select component to do that. thanks<issue_comment>user...
2018/03/12
1,022
3,638
<issue_start>username_0: I have a npm dependency (e.g. `ngx-infinite-scroll`) that I'm currently trying to fork (for bug fixes) and include my forked version as a dependency in my application. Below an example of the include in my `package.json`: ``` "dependencies": { "ngx-infinite-scroll": "github:jcroll/ngx-in...
2018/03/12
841
2,801
<issue_start>username_0: I'm trying to figure out how to simply write a string representing a line to a file, where whatever function I call automatically appends a newline character. I've tried using the default NodeJS file system library for this but I can't get this to work in any way without manually appending `'\...
2018/03/12
1,257
4,578
<issue_start>username_0: I am quite new to java streams. Do I need to re-create the stream each time in this loop or is there a better way to do this? Creating the stream once and using the .noneMatch twice results in "stream already closed" exception. ``` for ( ItemSetNode itemSetNode : itemSetNodeList ) { Stream a...
2018/03/12
1,495
5,477
<issue_start>username_0: I'm developing an app in Meteor and I want to know how I do can delete a user's account who is logged into the system? I mean that you can delete your account (like Tinder or Facebook) and the application ejects you because you're already deleted, and you no longer exist. With a simple button ...
2018/03/12
580
1,881
<issue_start>username_0: `var name = $(".column_nr_matching:last").attr("name");` // this gives me `col_nr359` and here I add plus 1 ``` var added_one = name + (+1); ``` When I look with console it gives me this: ``` col_nr3591 ``` I need it to be ``` col_nr360 ```<issue_comment>username_1: You are mixing d...
2018/03/12
1,428
4,842
<issue_start>username_0: My program tries to create a new "record" at an index specified by the user. Once the user creates this new record, all of the old records are overwritten and I'm not sure why. In the code, I'm trying to create two new records, and the first record is no longer in the file but the second one i...
2018/03/12
1,108
4,668
<issue_start>username_0: For starters, please forgive me and please correct me on my terminology. I am quite sure of the correct words to use for what I am trying to accomplish. I have been given the task of building an ASP.Net Razor web site. It is something new to me. I am very proficient in PHP and ASP Classic. Wh...
2018/03/12
1,377
4,377
<issue_start>username_0: I'm having a lay-out like this: [![enter image description here](https://i.stack.imgur.com/Ix1v7.png)](https://i.stack.imgur.com/Ix1v7.png) The left column should scroll down (till the next category) when scroling to bottom. My HTML looks like this: ``` Glas ==== --- Wil je een maxima...
2018/03/12
340
1,408
<issue_start>username_0: Is possible to save a `CharSequence` variable into `Firebase`? Checked out: [Supported Data Types](https://firebase.google.com/docs/firestore/manage-data/data-types), but `charsequence` is not there... I'm getting serializable problems related to this, tried: pro-guard rules, public attribute...
2018/03/12
406
1,427
<issue_start>username_0: I'm working on IONIC 3 app, I have a button When it is pressed, some informations about the user location are sent to firebase .. i want to send the current date/time too with the geolocation informations .. but not the device's date/time of course. any help ? this is my function to send info...
2018/03/12
634
2,502
<issue_start>username_0: I have attached an onclick eventhandler to a button. On click, I want to show data (a todo list). The problem is that every time I click on that button I keep calling the function-adding the same elements to the DOM. I couldn't really find a solution online and nothing I tried worked. Any ideas...
2018/03/12
218
781
<issue_start>username_0: Is there a way to export JetBrains Datalore notebooks to any format (preferably PDF)? I have looked at Jupyter notebook solutions but could not find a way to implement them in Datalore and I also tried to make Jupyter more like Datalore (auto-completing latex and code and side by side view) bu...
2018/03/12
272
969
<issue_start>username_0: I'm trying to dynamically create an image with some text in PHP. The problem that I'm running into is, every way I've seen to do this starts with: imagecreate($h, $w); And then draws the text to the image. I want to have the image be sized around the text. Preferably, I'd like a max-width too...
2018/03/12
1,441
4,236
<issue_start>username_0: Everything works fine in the main header section. What im trying to do is create a simple row with 3 columns after it but they are displaying as 3 different rows and not 1 row with 3 columns? Below is the code. It strange because the header section is working perfect! Thank you for any help and...
2018/03/12
429
1,427
<issue_start>username_0: I am getting more than 100 div container response from the server. The demo code like this, [Jsfiddle](https://jsfiddle.net/kzbbb/807/) ```css .container { border: 2px solid green; padding: 20px; display : flex; } .container > div { border: 1px solid black; backgrou...
2018/03/12
349
1,245
<issue_start>username_0: I have got a tslint error to my for loop when I try to resolve it it says to convert to for-of. I have seen many docs but its not helpful.How can I solve the lint error and I cannot do tslint:disable-next-line:prefer-for-of ``` for (let i = 0; i < this.rows.length; ++i) { if (!this.rows[i]...
2018/03/12
547
2,164
<issue_start>username_0: I have a text file with words and numbers and I need to write a class that creates a new file identical to the first except it shows the average. I just need code that identifies the integers and finds the average of them. The file reads like: blah blah 4 blah blah 2 3 blah 3 blah blah blah ...
2018/03/12
991
3,140
<issue_start>username_0: I'm trying to do a simple select in mongodb with some C# code : ``` "_id" : ObjectId("5aa04a34294f9c8f6c0ead85"), "Categorie" : "smartphone", "Plafond" : 1000.0, "SousCategorie" : [ { "SousCategorieLibelle" : " 100-300 ", "ValeurMin" : 100.0, "ValeurMax" : 3...
2018/03/12
851
2,816
<issue_start>username_0: I am trying to match and replaces all occurrences of my pattern with the following code but it is not working: As far as I understand Regex the pattern should be `/string/g` ``` var text = "ldkfglkfdj {example} fdgfdgfdg {example}"; var List = ["{example}", "string"]; function replace(text) ...
2018/03/12
577
2,140
<issue_start>username_0: Ok, this is my problem simplified: ``` class Group> implements Comparable> { private String id; public Group(String id) { this.id = id; } @Override public int compareTo(Group o) { return id.compareTo(o.id); } } class InnerGroup extends Group { public InnerGroup(String id) { super(...
2018/03/12
883
2,366
<issue_start>username_0: I have a dataset and I want to sum all the columns values after I spread them. For example, if I have the data.frame: ``` data.frame( country = c('US','US','Brazil','Brazil','Canada'), variable = c('v1','v2','v1','v3','v4'), value = c(1,2,3,4,5) ) %>% spread(variable, va...
2018/03/12
835
2,557
<issue_start>username_0: I have a program that is using the PhantomJS [onInitialized](http://phantomjs.org/api/webpage/handler/on-initialized.html) method to set a window global variable that the page can use when it first loads. I haven't been able to find a way to do this with puppeteer yet. Calling evaluate after cr...
2018/03/12
1,910
5,828
<issue_start>username_0: I was trying to plot a series of scatterplots with different sets of variables. In doing so, I use "paste" to combine two (or more) variable names as ``` plot.name <- paste(paste("var1.name", "var2.name",..., sep="_"), "plot.png", sep=" ") ``` Then I use this name in "ggsave" as ``` ggsave...
2018/03/12
1,447
5,652
<issue_start>username_0: Fundamental question about how to navigate between View Controllers. Say I have VC "A" and VC "B", both are embedded in a Navigation Controller. To go from A to B, I use a segue. After I get to B, I click a button that makes some visual change, like the color of the button. Then I hit the Nav C...
2018/03/12
858
2,908
<issue_start>username_0: I'm learning NativeScript and When running `tns platform add android` I receive the following error: I follow this step: 1. Run the command prompt as an Administrator. 2. @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('<https://ch...
2018/03/12
687
1,850
<issue_start>username_0: I have several columns in a DataFrame that I would like to combine into one column: ``` from functools import reduce # python 3.x na=pd.np.nan df1=pd.DataFrame({'a':[na,'B',na],'b':['A',na,na],'c':[na,na,'C']}) print(df1) a b c 0 NaN A NaN 1 B NaN NaN 2 NaN NaN C ``...
2018/03/12
422
1,284
<issue_start>username_0: I'm trying to make JSON data response with PHP So what wrong with my data code? My Code ``` $data = array( 'data' => null, 'status', 'code' => 1005 ); ``` Output ``` "data":null,"0":"status","code":1005} ``` This is what i need in Output ``` {...
2018/03/12
1,385
4,760
<issue_start>username_0: I had implemented the code to get the current app version of my app on play store, so that i can suggest user to upgrade app whenever any new version is there on play store. This code was working fine, but now it is not working. The code to get current app version that I have used is as follow...
2018/03/12
705
2,463
<issue_start>username_0: I want to remove value from an input box with match value. ``` onclick(value){ var array = document.getElementById('related-products-field').value; alert(array); //array = 339,340,339,340,338 // if(value==339) ,339 should be remove } ```<issue_comment>username_1: T...
2018/03/12
2,055
5,495
<issue_start>username_0: I have the following array which is a list of samples, probes, values for the probe, a boolean to describe if its a control (not all controls will contain the word "control") and a molecular weight for the probe. The array is the result of importing using pandas and merging a template and sampl...
2018/03/12
1,461
3,989
<issue_start>username_0: I'm trying to find a way to use a variable number as row and leave a fixed column value, for example: ``` Dim Test As Long Test = 15 Range("N & Test").Select ``` So I'll be able to change **Test** value and the code will change too but will keep the column value. When I use the code above ...
2018/03/12
595
2,184
<issue_start>username_0: I know how add custom login route in the `web.php` like: ``` Route::get('login-whatever', [ 'as' => 'login-whatever', 'uses' => 'Auth\LoginController@showLoginForm' ]); ``` and add to `app/Exceptions/Handler.php` ``` use Illuminate\Auth\AuthenticationException; protected function unaut...
2018/03/12
532
2,054
<issue_start>username_0: I use a simple function to display error messages in a wxPython 4 application. It shows a message and an "OK" button underneath it: ``` dlg = wx.lib.dialogs.ScrolledMessageDialog(self, msg, "Error") dlg.ShowModal() ``` Problem: when the dialog is presented, input focus is on the message, not...
2018/03/12
582
1,943
<issue_start>username_0: I have this table ``` **applications** id user_id company_id shortlisted 1 10 99 0 2 10 100 1 3 10 101 1 4 10 102 0 5 11 99 1 6 12 99 0 6 12 101 0 ``` What I want is to sel...
2018/03/12
519
2,041
<issue_start>username_0: I have a piece of code that is reading in many dataframes and then rbinding them ``` data.files = paths %>% ##takes the names of all the objects that I want to read in map(read.csv) %>% ##this reads all the correctly named .csv files into a list object reduce(rbind) ##reduces them all from...
2018/03/12
279
982
<issue_start>username_0: I'm running into an issue with the following in my spec/controller/admin/locations\_controller\_spec.rb. Specifically here: ``` describe 'create' do it 'should create the record' do expect do binding.pry post :create, params: { location: FactoryBot.attributes_for(:location) } end...
2018/03/12
1,663
6,003
<issue_start>username_0: I'm training 8 models in a for loop and saving each tensorboard log file into a seperate directory. Folder structure is like `Graph` is my main directory for graphs and directories under `Graph` such as `net01` `net02`... `net08` are the ones I'm outputting my event files. By doing this I can v...
2018/03/12
384
1,594
<issue_start>username_0: If I have some base factory that has a bunch of methods I want to extend to a bunch of other factories such as ``` function TestFactory() { var service = {}; service.name = null service.lastname = null service.screech = function() { alert(service.name + service.lastna...
2018/03/12
248
998
<issue_start>username_0: Let's say i want to create an object that is named using a variable? how would i do this? is it even possible? ``` var aName = "obusdiofu"; aName = {check: true, person: false}; console.log(obusdiofu); //gives me the newly created object? ```<issue_comment>username_1: Not sure about this on...
2018/03/12
463
1,339
<issue_start>username_0: Imagine I have a code in HTML: ``` ``` For example I need to move `.up` element `200px` upwards like this: ``` .up { position: relative; top: -200px; } ``` But then I will have `200px` gap between it and lower divs. How can I stick lower `div`'s to `.up` element so when I move it, lo...
2018/03/12
491
1,794
<issue_start>username_0: I am trying to upload the artifact to Nexus repository using the Artifact deployment stage in the Jenkins pipeline. For doing this I am providing Jenkins with the Nexus credentials and the path to find the repository. But, this stage is failed with an error "the connection is refused to nexus"....
2018/03/12
750
2,473
<issue_start>username_0: Is there a way to mimic an 'unclick' event with CSS only? I was able to mimic a 'click' via transition property with time delay value. The action stays put for a long time as if the button has been clicked. How do I make this element 'unclicked', or retract it back to its original state? For in...
2018/03/12
811
2,656
<issue_start>username_0: I have this kind of struct: ``` typedef struct { char a[MAX]; char b[MAX]; int c; } mys; ``` and this functions: ``` mys* search_m(FILE *fp, int m) { mys* s; s=(mys *)malloc(sizeof(mys)); if(s){ for(int i=0;i ``` that's a part of my program. During the input f...
2018/03/12
321
1,166
<issue_start>username_0: I'm trying to run an anime.js when an image or element enters the viewport, but i cant seem to get it working. Im trying it with waypoints.js This is what I have so far, its the 'this' part im having troubles with i think. ``` $('img').waypoint(function() { var CSStransforms = anime({...
2018/03/12
2,121
7,959
<issue_start>username_0: The title is self-explanatory, I tried using .checked(and several other methods that also failed), but it did not work. I want to know how, so I can count the score for a quiz. Here is the html part for it: ``` Formulario ### Qual é o nome do inventor da linguagem de programação Python?...
2018/03/12
939
3,089
<issue_start>username_0: I'm trying to pass view bag to a DropDownList but is not working. **Dropdownlist Error** [![enter image description here](https://i.stack.imgur.com/wZd6m.png)](https://i.stack.imgur.com/wZd6m.png) view ``` @Html.LabelFor(model => model.BanhoTosaId, "BanhoTosaId", htmlAttributes: new { @cl...
2018/03/12
972
2,448
<issue_start>username_0: I am trying to kill a nohup process in an EC2 instance but so far have been unsuccessful. I am trying to grab the process ID (PID) and then use it with the kill command in terminal, like so: ``` [ec2-user@ip-myip ~]$ ps -ef |grep nohup ec2-user 16580 16153 0 19:50 pts/0 00:00:00 grep --co...
2018/03/12
1,094
3,810
<issue_start>username_0: I deployed a surge.sh project and it was published successfully, however, I want to make some updates to the project, the updates have been applied locally and can be seen working but it tried to publish it to the same domain again yet it doesn't appear updated. I also tried to tear down the pr...
2018/03/12
759
2,082
<issue_start>username_0: I have an unknown number of samples that always come in pairs e.g. `11 22` or `33 44`. I store all of the samples in a list `[11, 22, 33, 44]` and then chop it up by pairs `[[11, 22], [33, 44]]` to get a nested list. All this is to use the pairs and display them later on with a specified deli...
2018/03/12
1,830
4,625
<issue_start>username_0: PLEASE NEED HELP This is what I'm doing: ``` var my_array_W:Array = new Array(); my_array_W.push({cor:Acorrect, tem:AnewTime, tab: "TB_A", nom:Aoseasnnombre}); my_array_W.push({cor:Bcorrect, tem:BnewTime, tab: "TB_B", nom:Boseasnnombre}); my_array_W.push({cor:Ccorrect, tem:CnewTime, tab: "TB_C...
2018/03/12
1,216
4,186
<issue_start>username_0: I have created a cluster in MongoDB Atlas and can't seem to be able to write data to it. ``` const uri = "mongodb+srv://myUser:<EMAIL>/portfolio"; ``` I have this as my uri to connect to, and every time I try to write to the database, I get this error: > > { MongoError: not authorized on ...
2018/03/12
1,280
4,391
<issue_start>username_0: I am using json simple this is my code: ``` public static String getDetails() { String name = System.getProperty("user.name"); JSONParser parser = new JSONParser(); File dir = new File("C:\\Users\\" + name + "\\AppData\\Roaming\\.minecraft\\launcher_profiles.json"); if (...
2018/03/12
1,732
5,567
<issue_start>username_0: I asked my students to write a python program in which the results of 100 rolls of a pair of 6-sided dice were stored in a list and then plotted in a histogram. I was treating `random.choice(1,2,3,4,5,6)` as inferior to `random.randint(1,6)`, until I noticed that the histograms of the student...
2018/03/12
812
2,935
<issue_start>username_0: ``` const routes = (app) => { app.route('/contact') .get((req, res, next) => { // middleware console.log(`Request from: ${req.originalUrl}`) console.log(`Request type: ${req.method}`) next(); }, (req, res, next) => { res.send('GET request successful!!!!'); ...
2018/03/12
1,554
4,188
<issue_start>username_0: Need example using SWI-Prolog [./2](http://www.swi-prolog.org/pldoc/doc_for?object=f((%27.%27)/2)). The signature is ``` .(+Int,[]) ``` Also if there is a name for this operator it would be nice to know. Searching for '.' is senseless. The closest to a name is from SWI documentation secti...
2018/03/12
673
2,371
<issue_start>username_0: I'm simply entering "MyMessages/Index" after localhost:51531/ and this popup is being displayed. Seems super weird to me but probably something simple. So I try to navigate to `localhost:51531/MyMessages/Index` in Edge. The controller is `public class MyMessagesController : Controller` The ...
2018/03/12
782
2,727
<issue_start>username_0: I have a form for add Hotel And I Want to select image for AnyHotel I use Ajax to save image directory But I Can not upload image in `public\images` Directory,My Code is Here in Blade: ``` Add hotel $('#AddHotel').click(function (event) { var image = $('#image').val(); var city = $('#city'...
2018/03/12
388
1,450
<issue_start>username_0: I'm using github via eclipse since two years. Everything worked fine all time. Today I tried to push to github and get: ``` cannot open git-receive-pack ``` as an error message. There is also a huge discussion on github concerning that issue. It seems to me that pushing to github is comp...
2018/03/12
410
1,453
<issue_start>username_0: I'm making a website for a project and in the registration form page I have this code in my file: ``` php include 'server.php'; ? ``` And this shows up in the website: > > ?> > > > It shows up in the corner of the website, when I remove the code the ?> goes away, that's how I know that...
2018/03/12
1,608
5,906
<issue_start>username_0: I am currently working on setting up my ionic app in on my MAC but I keep running into an issue where, when I add in cordova-plugin-fcm, using Cordova version 8.0.0 and android version 6.4.0, I get the following error: > > Invalid data, chunk must be a string or buffer, not object > > > P...
2018/03/12
663
2,476
<issue_start>username_0: In C++, if I want to use Polymorphism, I would create a parent class and then derive many child classes from the parent class, and then I would be able to assign an address of a child class object to a pointer variable of the parent class. For example: say that I have a parent class called `An...
2018/03/12
257
888
<issue_start>username_0: I am importing `SparkSession` as follows in PySpark: ``` from pyspark.sql import SparkSession ``` Then I create `SparkSession`: ``` spark = SparkSession.builder.appName("test").getOrCreate() ``` and try to access `SparkContext`: ``` spark.SparkContext.broadcast(...) ``` However, I get ...
2018/03/12
402
1,285
<issue_start>username_0: I have 2 tables : **Table reports** ``` id | name ------------- 1 | test 1 2 | test 2 3 | test 3 ``` **Table reports\_access** ``` id_table | group_id ----------------------- 1 | 1 1 | 2 1 | 3 1 | 4 2 | 1 2 | 2 ...
2018/03/12
442
1,484
<issue_start>username_0: I need **sort** my dictionary by another element who determine your order. ``` unsorted_dict = {'potato':'whatever1', 'tomato':'whatever2', 'sandwich':'whatever3'} ``` This sorting can come as a list or a dictionary, whichever is easier. ``` ordination = ['sandwich', 'potato', 'tomato'] ``...