date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/27
2,183
7,412
<issue_start>username_0: I want to draw a line on screen from the top of the page to the bottom when the user scrolls the page and have an arrow at the bottom of it. I don't want to use fixed position so that its always in the same spot, I want it to indicate where they are on the page by determining the page length et...
2018/02/27
1,584
3,758
<issue_start>username_0: How can I subtract 1 day from this cmd code: ``` %date:~10,4%%date:~4,2%%date:~7,2% ``` Every post I see here says I need to use power shell and etc. I just would like to remove 1 day from here. The cmd returns this: ``` 20180227 ``` And I would like to: ``` 20180226 ```<issue_comment>...
2018/02/27
701
2,574
<issue_start>username_0: The following command works, but I can't reproduce it using python-requests (2.18.4) : ``` curl -X POST -H "Authorization: Bearer ..." \ -H "Content-Type: multipart/form-data" \ -F 'metadata={...} -F 'data=@data.bz2;type=application/octet-stream' ...
2018/02/27
949
3,446
<issue_start>username_0: **Task**: Upload a large(!) user text input from a html/vue client to a node.js server in a performant way. Attempted (currently using) solution: Im using a form input (textarea) and just send it like this (simplified): ``` Analyze ``` and just process it like a normal post request: ...
2018/02/27
1,170
4,069
<issue_start>username_0: I'm struggling to have two conditions met, somehow it seems only one of them works. I'm trying to do : If a user is connected AND NOT at the lock screen, ask for permission. The commands themselves have been verified and work individually but I must be missing something. Here is what i have: ...
2018/02/27
991
3,499
<issue_start>username_0: So i am trying to hide multiple html elements with one checkbox. hiding one element works like a charm, but as soon as i have two it hides only the fist one what matches. Fast demo what i am trying to do : Checkbox : Element what i am able to show: ``` Kliendikaart on olemas! ``` and ...
2018/02/27
1,388
4,722
<issue_start>username_0: I am using the Apache Beam DirectRunner, and I have defined a pipeline as follows: ``` val p = Pipeline.create(options) p.apply(Create.of("/tmp/dc/foo.txt")) .apply(FileLoader()) .apply(SaveLineToRedis()) .apply(AddToRedisIndex()) .apply(MatchTransform()) ...
2018/02/27
880
3,165
<issue_start>username_0: I am trying to delete group in fabric js (version: 2.0.0-beta.7). But its only work for single object, so how to fix it so it can delete all selected objects? ``` $('.delete_object').click(function(){ var activeObject = canvas.getActiveObject(); if (activeObject.type==='activeSelect...
2018/02/27
837
3,450
<issue_start>username_0: In my model, I use GloVe pre-trained embeddings. I wish to keep them non-trainable in order to decrease the number of model parameters and avoid overfit. However, I have a special symbol whose embedding I *do* want to train. Using the provided Embedding Layer, I can only use the parameter 'tra...
2018/02/27
739
2,475
<issue_start>username_0: I'm trying to sort an array. Inside the array are `naamdeelnemer`, `totaalpunten` etc. When I print for a check the array returns `[ ]`. Anyone who can help me? ``` import UIKit import CoreData var userArray:[Punten] = [] override func viewDidLoad() { super.viewDidLoad() userArray....
2018/02/27
473
2,004
<issue_start>username_0: We use JAVA Spring (JPA) and in application we write, modify and delete data in PostgreSQL. How to synchronize data between PostgreSQL and Elasticsearch? So, they will have same data.<issue_comment>username_1: I assume that you are using PosgreSQL as a primary storage to store your data and El...
2018/02/27
705
2,876
<issue_start>username_0: Looking for a solution for ecommerce website: Consider i have a PHP application running in Google APP ENGINE with an "image search" feature like <https://images.google.com>. Now every request that has been send through the PHP Search Query box to the VISION\_API that runs analysis on the Ima...
2018/02/27
1,046
3,340
<issue_start>username_0: On SQL Server 2008+, I am trying to create a query which will be the code of a view (thus, only one statement allowed... right?), that returns one column with all the possible dates (actually `datetime` but with empty time content) between the minimum value and the maximum value of column `insd...
2018/02/27
1,367
4,032
<issue_start>username_0: I have a JSON data as given below ``` { "openingTimes": { "general": { "monday": [{ "opens": "09:00", "closes": "18:00" }], "tuesday": [{ "opens": "09:00", "closes": "18:00" }], "wednesday": [{ "opens": "09:00", ...
2018/02/27
700
2,197
<issue_start>username_0: I need to optimize my answer for the following question without exceeding time limit ([0.5s](https://codefights.com/interview-practice/task/pMvymcahZ8dY4g75q)). This isn't a homework or a competition or my interview question. I'm currently learning programming by my self **for fun** and I found...
2018/02/27
248
1,081
<issue_start>username_0: I am having issues when i try to commit in master using github desktop it shows me this error "Commit failed . exit code 1" i don't know from where it comes from because my teammates did the same thing and it worked fine for them but when i tried to push it, it won't work.<issue_comment>usernam...
2018/02/27
518
1,681
<issue_start>username_0: I have a line in Ubuntu's unattended upgrade file, `/etc/apt/apt.conf.d/50unattended-upgrades`, that I'm trying to swap out entirely from this: ``` // Unattended-Upgrade::Automatic-Reboot false; ``` to this: ``` Unattended-Upgrade::Automatic-Reboot true; ``` If I echo the line like this, ...
2018/02/27
1,206
4,031
<issue_start>username_0: Just a quick disclaimer I have been learning Haskell for about a month and have been reading, watching and searching the web but I just cant get my head around this. So my question is, I want to compare two strings say "p16201348" & "p16202068" and basically check that the first two numbers af...
2018/02/27
937
2,640
<issue_start>username_0: Input with file upload button is: ```css input[type="file"] { margin-left: 10px; border: 1px solid #b5bcc7; width: 360px; vertical-align: middle; margin-bottom: 10px; text-align: left; } input[type="file"]::-webkit-file-upload-button { background: #485dc5; color: #FF...
2018/02/27
903
3,406
<issue_start>username_0: I'm using Sitecore and I'm wanting to make my site multi-regional and multi-lingual. I want the url to be in the following format: <http://www.example.com/ca/fr> (region then language) <http://www.example.com/ca/en> I currently have this in my config: ``` ``` I have one complication in ...
2018/02/27
545
2,074
<issue_start>username_0: I am trying to iterate the Row's I got from executing a structured query using Spark SQL (pyspark). The code looks roughly like this: ``` spark = SparkSession \ .builder \ .appName("Sessions")\ .config(...) \ .getOrCreate() stuff = spark.read.format("parquet").options(mergeSch...
2018/02/27
344
1,305
<issue_start>username_0: How can I make a loading button dynamic ? this my code ``` var $this = $(this); $this.button('loading'); setTimeout(function() { $this.button('reset'); }, 2000); ``` when I click the button its loading for 2 second as define, while aja...
2018/02/27
399
1,148
<issue_start>username_0: i have object of array like this: ``` var arr = [{id: 1, url: 'something'},{id: 2, url: 'something2'}]; ``` i want output like this : ``` [{id:1}, {id:2}] ``` Thanks in advance<issue_comment>username_1: Just use [**Array#map**](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refer...
2018/02/27
489
1,386
<issue_start>username_0: I would like to UPDATE sql by using "except" Conditions but it's not working. This is sql query that I have used: ``` UPDATE `LMS_EMP` SET `email`="<EMAIL>" WHERE NOT `org_abbr_code` IN (HR100, HR101, HR103); ``` Here are my concept: 1.If some of fields `org_abbr_code` have these values `H...
2018/02/27
926
2,347
<issue_start>username_0: Using SQL Server 2014, I am working with a table of dates and a few values. This is how the table looks: ``` Date Number1 Number2 Number3 ----------------------------------------- 2018-01-01 34 54 13 2018-01-01 34 53 13 2018-01-01 30 ...
2018/02/27
550
1,646
<issue_start>username_0: I want to start using MVVM in a Kotlin project. In the `build.gradle` of the app module I have: ``` implementation "android.arch.lifecycle:common-java8:1.1.0" implementation "android.arch.lifecycle:extensions:1.1.0" kapt "android.arch.lifecycle:compiler:1.1.0" ``` In the `build.gradle` of t...
2018/02/27
1,804
6,813
<issue_start>username_0: I'm trying to create a macro or VBA code that checks the spreadsheet for this symbol: ¤. If it find this value, it needs to make the data in the row into blanks, eg. it shouldn't remove the row entirely. I'm using Excel2010 for this, and any help would be much appreciated. Tried editing the...
2018/02/27
1,657
5,918
<issue_start>username_0: I have below select (it will be more union): ``` select column_name,'my_table', count(*) from my_table where col10 = 'TEST' group by column_name having count(*) > 1 union all select column_name,'my_table2', count(*) from my_table2 where col10 = 'TEST' group by column_name having count(*) >...
2018/02/27
1,629
5,924
<issue_start>username_0: I'm trying to load a jquery plugin in vuejs but nothing seems to be doing the trick. I have ``` window.$ = window.jQuery = require('jquery'); // Plugin I'm trying to load require('jcanvas'); ``` The above part seems to work correctly (I think), but however when I try to use the plugin ``...
2018/02/27
427
989
<issue_start>username_0: I want to iterate through a text file and print the occurrence of unicode. In the place of range I want a suitable function. ``` counter = {} x={'0x0985':1,'0x0986':2,'0x0987':3,'0x0988':4,'0x0989':5} for key,value in x.items(): x[key]=0 with open('bengali.txt', 'r', encoding='...
2018/02/27
627
2,340
<issue_start>username_0: my professor told us to create a program that will be able to add , list and delete a employee record and my problem here is that i dont know how i can delete a record from the file . the code that i'm using is its only copying the content of the original file and not the new content. Here's m...
2018/02/27
374
1,340
<issue_start>username_0: Can we set java.util.concurrent.ForkJoinPool.common.parallelism java property? ``` System.out.println("getParallelism=" +ForkJoinPool.commonPool().getParallelism()); System.setProperty("java.util.concurrent.ForkJoinPool.common.parallelism","20"); Thread.sleep(1000); System.out.println("getPara...
2018/02/27
781
3,130
<issue_start>username_0: I am getting started learning Jenkins and am following [this](https://jenkins.io/doc/tutorials/build-a-java-app-with-maven/#fork-sample-repository) "simple" tutorial found within the Jenkins documentation; it's a tutorial which goes through how to get a simple java-maven-jenkins setup working l...
2018/02/27
2,994
8,670
<issue_start>username_0: I have about 18 DataSet each of which contains 10 different columns and 1k~10k rows and I have to do a left join on all of them one by one. When I do: ```scala b = a.join(A, 'one column', 'outer_left').dictinct() c = b.join(B, 'one column', 'outer_left').dictinct() d = c.join(C, 'one column'...
2018/02/27
1,061
3,281
<issue_start>username_0: I am running several mysql queries with PHP to change values in several tables. Basically something like this (simplified pseudocode) ``` $amount = (SELECT amount FROM wallet WHERE id = 1); $amount = somelongcomplicatedtask($amount); (UPDATE wallet SET amount = $amount WHERE id = 23); ``` T...
2018/02/27
851
3,016
<issue_start>username_0: Let Suppose I Have A query As Below ```js $(".categoryCB").change(function(){ if($(this).prop("checked") == true){ var currentVal = $(this).val(); $("#SqlQuerySpan2").append(" AND Category = " + currentVal); } else if($(this).prop("checked") ==...
2018/02/27
2,033
8,518
<issue_start>username_0: I am currently working on app where you can download video files. I am using Download manager for downloading files and everything is working fine as the files are being downloaded properly and I can see the progress of downloading in my notifications. Now I want to show those downloading files...
2018/02/27
2,166
8,630
<issue_start>username_0: Right now I have a first person character with a movement script attached. I use a rigid body and a character controller. The camera controls the transformation of the parent object with the the player object, in this case a capsule. The player object has the movement script on it, and the ca...
2018/02/27
1,594
6,031
<issue_start>username_0: I am trying to find a way to remove the three buttons that pop up when I hoover the product – quick view, add to wish list, add to basket. I have tried with the following code but it only removed the icons, text and the feature itself are still there. CSS: ``` .related.products .yith-wcqv-but...
2018/02/27
767
2,396
<issue_start>username_0: How to delete multiple objects from an array? Currently I have ``` let arry1 = [ { id:0, name:'<NAME>', another:'thing', }, { id:1, name:'<NAME>', another:'things' }, { id:2, name:'<NAME> App', anothe...
2018/02/27
321
1,134
<issue_start>username_0: I want to delete the object from table. The problem is that I do not delete the object I click. I always delete the object above. what am I doing wrong? home.html ``` | V E Are you sure? × Close Yes | ``` Controller ``` @GetMapping("/home/{fingerprintId}/deleteFingerprints") publ...
2018/02/27
763
2,137
<issue_start>username_0: I see that many people ask this there, but I didn't found solution for my problem in given answers. I have very simple situation there. `Lorem ipsum` I need text to be verticaly aligned to the middle od div. This is my recent CSS: ``` #tooltipDesc{ position: absolute; width: 300px; hei...
2018/02/27
1,292
4,165
<issue_start>username_0: I am trying to create a custom MessageBox form. I want to display in a richtextbox greek characters but i get ????. The code to call the custom form: ``` string msg = "Greek: αβγδ NotGreek:abcd"; using (MsgForm frm = new MsgForm("Caption", msg)) { ...
2018/02/27
917
3,947
<issue_start>username_0: I basically have the following: ``` ``` ================================ ``` ``` This is a Eclipse 3.X RCP running using the compatibility layer on Eclipse 4. The problem is that when I open any of my text editors the undo/redo toolbar buttons doesn't become enabled or disabled correctly...
2018/02/27
2,545
9,641
<issue_start>username_0: Hopefully someone can help me with this. I am wanting to create a script that will archive a sheet every 24 hours so far I have a script made that emails it. I am wanting to make a script that if the folder does not exist, create a new folder by "Year" and a sub-folder by "month" inside and pl...
2018/02/27
602
1,808
<issue_start>username_0: Is there a way to do this whitout the preprocessor? ```cpp #include #include namespace ba = boost::hana; template struct FunctionSigCreatorImpl {}; template struct FunctionSigCreator : FunctionSigCreatorImpl { }; #define DEF\_ARG(z, n, data) \ typename decltype(+ba::at(Arguments{}, ba...
2018/02/27
1,213
3,773
<issue_start>username_0: For an exercise, I would like to know how many checkboxes are checked and output the .length of These with a button in an HTML Element. This is as far as I got... **Code:** ```js /*Anzahl*/ function cname() { var canzahl = document.getElementsByClassName('.classes').options; var count...
2018/02/27
1,155
3,750
<issue_start>username_0: I helping to create a framework and i need create a directive `cp-if`, different to `cp-show` because in this case a cannot just only change the visibility of the element to 'none' and after just make visible, in the `cp-if` i need create and delete the DOM object ``` import {MapDom} from '../...
2018/02/27
942
3,003
<issue_start>username_0: In [How do you set the default package and/or diagram in Enterprise Architect?](https://stackoverflow.com/q/43053661/9418831) it's very clearly shown how to set the default diagram for a model, so that all the users would get it opened on load of the project. But how can one disable this settin...
2018/02/27
1,047
2,613
<issue_start>username_0: i have 3 txt files so in each row they have one sentences and i want to print them ``` $a = '1.txt'; $b = '2.txt'; $c = '3.txt'; $a1= file($a); $b1= file($b); $c1= file($c); $id=1; echo ' id: '.$id++. 'lang1: ' . $a1. 'lang2:' . $b1. 'lang3:' . $c1 .' ' ; ``` so result should be id: ...
2018/02/27
1,909
5,193
<issue_start>username_0: This program is about the bubbleSort, insertionSort and qsort time. I run my program and got the Debug Error, ``` HEAP CORRUPTION DETECTED:after Normal block(#152)at 0x006613C0 CRT Detected ``` that the application wrote to memory after end of heap buffer. Then, I delete the last 3 lines...
2018/02/27
5,830
16,719
<issue_start>username_0: I searched through google about this bug and there was a fair amount of people with same problem, but all of their solutions didn't work for me.I would love for you to know that I am not experienced in asking question on this site so if you have any type of feedback on how to improve my questi...
2018/02/27
1,009
3,784
<issue_start>username_0: I am looking whether there is an easier way to achieve the following: ``` var filesCount = files.length; for (var j = 0; j < filesCount; j++) { if (j < 5) { vm.groupFiles.push({ "fileName": fileName, ...
2018/02/27
210
741
<issue_start>username_0: I'm getting too large recording error while trying to open my 60 MB jfr file in JMC console. Please help me on this. Thank you<issue_comment>username_1: Have you tried to run JMC with more memory? ``` jmc -vmargs -Xms1024m -Xmx2048m ``` The other solution is to split the jfr file into smal...
2018/02/27
318
977
<issue_start>username_0: In my file I have my code: ``` for(var question in this.current.questionnaireProfil["p2"]){ this.current=this.current.questionnaireProfil["p2"][question]; } ``` and in my console.log : ``` this.current.questionnaireProfil ={p1: {…}, p2: {…}, p3: {…}, p4: {…}, p5: {…}, …} ``` Each ti...
2018/02/27
619
2,082
<issue_start>username_0: How would `25 % 8 - 9 / 2 => -3.5` be interpreted using cmath? Is it: ``` 25% 8 = 1 ; -9/2 = -4.5 ``` Order of operations: ``` 1 - 4.5 = -3.5 ```<issue_comment>username_1: The easiest thing to do is just to try it. Other than that, you can look at precedence tables like [this one](http://...
2018/02/27
1,493
5,961
<issue_start>username_0: I'm trying to implement authentication and access control with IdentityServer4 on an ASP.NET MVC Core app (.NetCore 2). While it's not the first time I implement a backend, it's the first time with .net, and I'm struggling with some things. I've followed the instructions at <https://identityse...
2018/02/27
1,203
4,853
<issue_start>username_0: Google has a lot on this much discussed subject, yet, i can't find a clear solution to my problem (a probably common one). I have a parent component and a child component (see drawing below), where the child component produces values to be stored somewhere, and the parent has a button triggeri...
2018/02/27
1,234
4,978
<issue_start>username_0: In my wpf application, i have used `DatePicker` control. I am having issue with the format of `DatePicker` control. It doesn't take the form as i specified, instead of that it is taking the default system format. I have set the datetime format in my application startup file like below, ``` st...
2018/02/27
646
2,107
<issue_start>username_0: I'm trying to echo/get the values in my table but I having a ***Message: Trying to get property of non-object*** Like this one ``` | php echo \_l('dev\_oqood\_status'); ? | php echo $developer-dev\_oqood\_status; ?> | | php echo \_l('dev\_contact'); ? | php echo $developer-dev\...
2018/02/27
587
2,136
<issue_start>username_0: Suppose an API requests, that a function `f` must have the signature `void function()`. Does the following code sample satisfy this requirements? ``` void func(int i) { do_something(i); } int main(int argc, char* argv[]) { int i = 3; auto f = boost::bind(func, i); } ``` ...
2018/02/27
1,279
3,916
<issue_start>username_0: I've following documents in search\_analytics collection ``` { "_id" : 1, "keyword" : "24", "found" : 1, "created_at" : "2018-02-27 18:49:07" } { "_id" : 2, "keyword" : "100", "found" : 1, "created_at" : "2018-02-27 18:49:10" } { "_id" : 3, "keyword" : "15032040", "found" : 1, "created_at" : "...
2018/02/27
1,152
4,188
<issue_start>username_0: ``` public class ScenarioResults { public string ProductSubType { get; set; } public string SubBook { get; set; } public decimal? ScenarioValue { get; set; } } ``` I have two lists of "ScenarioResults" objects. I need to get a new list with values which are difference of scen...
2018/02/27
768
2,362
<issue_start>username_0: I'm trying to fetch one particular value from the JSON file provided below. Here is my code. I'm able to fetch all the Month data and store it to an array called `processed_json` and I'm facing an issue while fetching that particular value `D` from all the maps. ``` var processed_json=new Arra...
2018/02/27
940
2,325
<issue_start>username_0: I have a data frame with many columns with binaries representing the presence of a category in the observation. Each observation has exactly 3 categories with a value of 1, the rest 0. I want to create 3 new columns, 1 for each category, where the value is instead the name of the category (so t...
2018/02/27
957
2,405
<issue_start>username_0: I want to display gender as its value from radio button but its getting the whole view Here is the view: ``` Gender\* @Html.RadioButtonFor(model => model.Gender, new { @type = "radio", @name = "Male", value = "Male" })Male @Html.RadioButtonFor(model => model.Gender, new { @type = "radio...
2018/02/27
523
1,603
<issue_start>username_0: is it possible to do a join like this in SQL: [![Sessions and Pageviews](https://i.stack.imgur.com/god9m.png)](https://i.stack.imgur.com/god9m.png) We want to join the two tables on SessionID, but the resulting table should return full table "Pageviews" combined with only **a single** value o...
2018/02/27
416
1,477
<issue_start>username_0: ```js function submit() { var values = []; $("input[type=checkbox]:checked").each(function(){ values.push($(this).next("value").text()); }); alert(values.join()); } ``` ```html Click Me! ``` Above is my code for a couple of simple HTML checkboxes. I created a si...
2018/02/27
986
2,963
<issue_start>username_0: I tried this code, I don't understand how it works ``` a=[1,'a',2,'b','test','exam'] for a[-1] in a: print(a[-1]) ``` output ``` 1 a 2 b test test ```<issue_comment>username_1: Let's change the loop a little: ``` a=[1,'a',2,'b','test','exam'] for temp in a: a[-1] = temp print(...
2018/02/27
1,212
3,932
<issue_start>username_0: When inspecting my code, I get an error in the AndroindManifest.xml saying that > > ".MainActivity" in is not a concrete class. > > > The App is, therefore, crashing in the Emulator of Android Studio. Here is the Java Code of the Application: ``` package de.thi.donotpressthebutton; ...
2018/02/27
1,225
3,765
<issue_start>username_0: I have a stored procedure with a table variable as input: ``` CREATE TYPE [dbo].[IDArray] AS TABLE ([ID] INT NULL); ``` The procedure is ``` CREATE PROCEDURE [dbo].[GetFiltered]( @IDs as IDArray READONLY ) AS SELECT * FROM A JOIN ( B JOIN @IDs ON B.BID = @IDs.ID ) ON A.AID = B.A...
2018/02/27
2,424
7,464
<issue_start>username_0: I am new to Java and Stack Overflow and I have a question about permutation. **Method:** I generate `ArrayList` with objects within an `ArrayList`. Each `ArrayList` has the size from `1` (minium 1 possible) to `infinite` and contains custom generated objects with an unique name-attribute. **Q...
2018/02/27
559
2,022
<issue_start>username_0: I have a VB.NET Core app I'm trying to connect to a remote WCF service. When I try going through the **"Add Connected Service"** routine, no services are listed and a message shows up saying that: > > no connected service is supported for the current project type. > > > I tried installing...
2018/02/27
2,397
5,875
<issue_start>username_0: given this example here ```css #mainPage { width: 400px; height: 165px; margin: 10% auto; } #mainPage>p { text-align: center; } .box { width: 48px; height: 30px; background: red; } #title { letter-spacing: 7px; font-size: 30px; margin-bottom: 30px; } #...
2018/02/27
4,192
11,227
<issue_start>username_0: Right here, I am trying to create a GUI calculator in Python for a class assignment called 'Chocolate Vending Machine'. Basically, students are assigned to create a GUI using Python's Tkinter. We list a couple of chocolate brands such as Snickers, Twix and Mars and put a price tag on each of th...
2018/02/27
879
2,696
<issue_start>username_0: I am currently having a problem when just reading the number from a string. I somehow does not receive the proper value. I need to distinguish between 1 and 2 numbered strings and need to account for it. My Output looks like the following: > > > ``` > 9 > 1 > > ``` > > but it should be:...
2018/02/27
497
2,128
<issue_start>username_0: I have a Controller class that maps request urls. I have an instance of class annotated with `@Service`. For example; ``` @Controller class MainController{ @Autowired private UserService userService; ... } ``` As I know, this instance is created automatically by Spring container, becau...
2018/02/27
316
1,088
<issue_start>username_0: I want to list and describe the tables present in an Oracle database. To do this by connecting to the database with a client such as SQL Plus, a working approach is: 1. List the tables: `select tablespace_name, table_name from all_tables;` 2. Get columns and data types for each table: `desc...
2018/02/27
1,138
3,677
<issue_start>username_0: I'm a newbie in python and pandas . I'm trying to preprocess a big dataframe which consists of both numerical and categorical features and in some columns there are NaN values . first I try to get the feature matrix and then use Imputer to put the mean or median value for Nan values . this i...
2018/02/27
690
2,077
<issue_start>username_0: Just a quick question hopefully. I am using SQL Server 2016. I have a `datetime` column; what's the best way to create an output from this which looks like 4PM, 12AM etc? For example.. 2016-01-03 09:14:23 would become 9AM, and 2016-01-03 00:34:43 would be 12AM? Many thanks for any help!! :)<...
2018/02/27
648
2,527
<issue_start>username_0: I'm trying to find out which one loads faster. Upon checking the audit tab in Chrome both approach result in a slow **First meaningful paint**. I'm using googleapi font to render fonts in my site. Below are the codes I'm comparing ``` ``` vs ``` @font-face { font-family: 'Montserrat'; ...
2018/02/27
599
2,248
<issue_start>username_0: Data Example ***table1*** ``` Value component1 1 456 ``` ***table2*** ``` Value component2 1 555A ``` ***table3*** ``` value component3 2 356 ``` ***Output I get*** ``` Value component1 component2 component3 1 456 ...
2018/02/27
301
928
<issue_start>username_0: I am not able to figure it out. I am trying to calculate the RMSE between test and prediction data. test ``` col1 col2 a 2 b 3 ``` prediction ``` col1 col2 a 4 b 5 ``` I am trying to do this test(col2)-prediction(col2). That is ``` 2-4 =-2 3-5 =-2 ...
2018/02/27
531
1,892
<issue_start>username_0: [EDIT]Editing the code to reflect changes coming from comments I have a problem with one of the stored procedures I'm trying to create in an Oracle database. The goal is to update every table which has an `indiv` column. ``` CREATE OR REPLACE PROCEDURE sp_majUserOnAllK (lastU IN VARCHAR2, ne...
2018/02/27
1,559
4,183
<issue_start>username_0: I got something like this: ``` > d1 = {'System tests': {'failed': 5, 'passed': 0, 'total': 5}, 'Func tests': {'failed': 5, 'passed': 0, 'total': 5}} > d2 = {'System tests': {'failed': 1, 'passed': 1, 'total': 2}, 'Func tests': {'failed': 3, 'passed': 2, 'total': 5}} > d3 = {'...
2018/02/27
849
2,626
<issue_start>username_0: I'm trying to sanitize comments on my page, but I only want to remove html tags etc. from content outside the `[code]` `[/code]` tags. As for content inside the tags, I only want to use `htmlspecialchars($data, ENT_QUOTES, 'UTF-8');` on. So if I have a comment that looks like this: ``` some ...
2018/02/27
899
2,823
<issue_start>username_0: I would like to calculate the difference between two dates and post the result to the view. The table contains the following rows: > > Id, AuthorId, duedate,body > > > I know how to calculate the difference between two dates, but this is for a single row. Now, I'm pulling multiple rows fr...
2018/02/27
798
2,400
<issue_start>username_0: I have 3 tables: ``` Words { wordId, name } WordGroups { wordGroupId, type} WordSets { wordSetId, wordId, wordGroupId} ``` I need to Insert new `Word`, and new `WordGroup` and after that insert `WordSet` with 2 new ids (wordId and WordGroupId). I make this: ``` INSERT INTO `wordgroups`(`ty...
2018/02/27
256
778
<issue_start>username_0: HTML code: ``` [Google](#) ``` CSS code: ``` a:link{color: black;text-decoration:none;} a.hover{textdecoration: underline;} a.visited {color: red;} ``` I try to none of underline and when I hover to this link, it will be show us underline, and font also become red, but it was failed.<...
2018/02/27
754
2,994
<issue_start>username_0: Here i am trying to delete data on button click on AJAX call. But the problem is that on clicking the button there is not hit on controller action even though the parameter to the action i.e id from ajax has a value. Below is my AJAX ``` $(document).ready(function () { $("button#btnDelet...
2018/02/27
907
3,264
<issue_start>username_0: I am trying to resolve these two ESLint errors for the bit of code included below but cannot get my head around it. ``` 9 error Assignment to property of function parameter 'opts' no-param-reassign 10 error Use the rest parameters instead of 'arguments' prefer-rest-params ``` And...
2018/02/27
3,611
10,758
<issue_start>username_0: I'm trying to work out the number of students taking a course, from those able to take a course, not all schools offer computing and different schools offer English, those able to take computing and english will differ. E.g. using the test data below, we'd have: ``` df <- read.csv(text="school...
2018/02/27
474
2,016
<issue_start>username_0: I am getting following strange exceptions. I already saw following thread discussing about downgrading Microsoft.EntityFrameworkCore.Tools to 1.1.1 which I already did, but still these exceptions are appearing. ``` System.ArgumentNullException: Value cannot be null. Parameter name: contentRoo...
2018/02/27
1,469
5,674
<issue_start>username_0: ``` public static void militarySpell() { Console.WriteLine("Type"); string spell = Convert.ToString(Console.ReadLine()); switch (spell) { case("a"): string a = "Alfa"; spell = a; Console.WriteLine(spell); break; c...
2018/02/27
915
2,221
<issue_start>username_0: I have a json data and I want to get value of 'account' key using its value. This is what I mean, ``` >>> vd=vxa.json() >>> vd['outputs'] [{u'account': u'<KEY>', u'value': 83383165, u'vout': 0}, {u'account': u'<KEY>', u'vout': 1, u'chain': 10, u'isMine': True, u'value': 13155, u'chainInd...
2018/02/27
817
2,946
<issue_start>username_0: We have logfile on a server A in a different location (no UNC Path access) and we wish to copy the file to server B. This successfully works with `Copy-Item -FromSession` (run on Server B) as long as the file is closed. So we can successfully copy the previous day's logs but not today's. ``` $...
2018/02/27
639
2,375
<issue_start>username_0: i'm practicing some array manipulation and im wondering why my output is not updating. this should be easy but this is giving me headache. its supposed to be copying the last element to my selected element but no matter what i did my array is not updating. please forgive my noob post. ty ``` #...
2018/02/27
340
1,288
<issue_start>username_0: I would like to change the Error colors in the IPython console in Spyder. Is that possible? I use Spyder 3.6 (if it matters). The error message is a mix of green and yellow... I have no know issues with my vision and I find it quite hard to read. Here is an example: [![enter image description...
2018/02/27
2,062
5,544
<issue_start>username_0: I am trying to run a API service with Apollo(GraphQL), React, Webpack and MongoDB on Windows environment . The service starts success, but when I send the first request the service crashed. I'm using this versions: * npm v5.6.0 * node v8.9.4 * webpack v3.8.1 * webpack-dev-server v3.0.0 * apol...
2018/02/27
672
2,483
<issue_start>username_0: In my Application, I'm using [Moya](https://github.com/Moya/Moya) to make the Api request. Here, I'm having URLRequest but I don't know how to pass it in MoyaProvider. Alamofire Ex: ``` Alamofire.request(urlRequest) ``` Like the Same, I need to implement using [Moya](https://github.com/Moy...