date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/19
519
1,841
<issue_start>username_0: I am building a web application and I am using Dropwizard 1.3.0, which has a dependency on jetty-io 9.4.8. This dependency has conflicts with another package (dropwizard-websocket-jee7-bundle 2.0.0), because it seem to fetch the wrong version number. I looked into tha package, and found the m...
2018/03/19
1,086
3,708
<issue_start>username_0: how do i remove the text li created in the JavaScript. the li was created in the javascript and on click on each button in front of them it should only remove that li and not all ```js function addBook() { var userInput = document.getElementById('books').value; if (userInput === "") { ...
2018/03/19
804
2,940
<issue_start>username_0: is there any way to change button style (colvis, copy, print, excel) in angularjs datatables. ``` vm.dtOptions = DTOptionsBuilder.newOptions().withButtons([ 'colvis', 'copy', 'print', 'excel' ]); ``` Only way I can do this is directly in source code, but this is not good way...
2018/03/19
436
1,234
<issue_start>username_0: I needed to fetch first block in "*.*" string (i.e '\*') in shell script. I found that instead of printing the string it is displaying list of all file in current directory. How overcome this issue? main purpose is change string "asterisk.asterick" (this read from /etc/rsyslog.conf) to "\*.d...
2018/03/19
403
1,169
<issue_start>username_0: On my homepage I have a set of tabs. When I click on the + icon, a new page (AddReportPage) is being pushed (this.navCtrl.push(AddReportPage)). On this new page I want to display a new set of tabs with different icons and different functions(see image 2). But when I use the ion-tabs, they're...
2018/03/19
383
1,317
<issue_start>username_0: I have a document in solr which is already indexed and stored like ``` { "title":"<NAME>", "url":"http://harrypotter.com", "series":[ "sorcer's stone", "Goblin of fire", ] } ``` My requirement is,during query time when I try to retrieve the document it should ...
2018/03/19
857
3,746
<issue_start>username_0: I tried creating an object in PHP for PHPMailer to be used in development enviroments. ``` class Configuration function __construct() { // creating an object for configuration, setting the configuration options and then returning it. return $config = (object) array( ...
2018/03/19
1,269
4,444
<issue_start>username_0: I want to make a query in sql-server which can make the following output as like column \_B from column\_A.Columns are varchar type. ``` Column_A column_B karim,karim,rahim,masud,raju,raju karim,rahim,masud,raju jon,man,jon,kamal,kamal ...
2018/03/19
560
1,554
<issue_start>username_0: I have a dataframe that contains some duplicates, around 100 of them, the data is displayed like this: ``` Data V1 V2 V3 V4 Cellulomonas uda 0.2 0.0 0.0 0.1 Cellulomonas uda 0.0 0.1 0.3 0.1 ``` But I would like to find...
2018/03/19
570
1,524
<issue_start>username_0: I've done this RLE code a while back and I seem to be blind on what is going on wrong. The expected output of encode() should be 'a1b2c3' but instead I'm getting the value 'None'. ``` def encode(text): if not text: return "" else: last_char = text[0] max_index = len(text) i = 1...
2018/03/19
965
3,512
<issue_start>username_0: I want to make "camera follow" effect on feature while its moves along path. The feature is moved using `requestAnimationFrame`, here is the example code: ``` var lastFrame = +new Date; var updateSlider = function () { var now = +new Date, deltaTime = now - lastFrame; trackValue += del...
2018/03/19
1,148
3,070
<issue_start>username_0: Given my list of dictionaries ``` dict_nomi = [ {'first_name': 'Luca', 'last_name': 'Rossi'}, {'first_name': 'Stefano', 'last_name': '<NAME>'}, {'first_name': 'Luca', 'last_name': 'Bianchi'}, {'first_name': 'Luca', 'last_name': 'Rossi'}, ] ``` I'd like to count the occurrence...
2018/03/19
2,079
7,094
<issue_start>username_0: I am getting 'TypeError: Cannot convert undefined or null to object' while trying to access the length of json object in nodejs. Following is how my data looks like: ```js { "college": [ { "colleges": [], "department": [ 1, 2, 3 ], "genera...
2018/03/19
592
1,948
<issue_start>username_0: I have 2 columns in gridview I want to check if the column is null then the column will hidden .. I used many ways but I can't get the right result here is my code ``` protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.Cells[8].Text == "") { ...
2018/03/19
674
2,297
<issue_start>username_0: When I use `resolveAttribute()` to find out a color value of `?attr/colorControlNormal`, I got `236`: ``` TypedValue typedValue = new TypedValue(); getTheme().resolveAttribute(R.attr.colorControlNormal, typedValue, true); int color = typedValue.data; // 236 ``` --- But when I use an XML la...
2018/03/19
395
1,548
<issue_start>username_0: I am working on android Tv, In our Fragment there the two Horizontal Recyclerview, when I scroll First Recyclerview using D-pad in Right direction, it scrolls well and when I come to last focus item of its Recycler view, Focus automatically goes down to second Recycler view item. How to preve...
2018/03/19
1,252
2,946
<issue_start>username_0: I am learning C++ and came upon this problem while trying to use a formula to calculate the current. ![formula](https://i.stack.imgur.com/qpktk.png) And I got: `0.628818` where the answer should be: > > f=200 Hz > > > R=15 Ohms > > > C=0.0001 (100Β΅F) > > > L=0.01476 (14.76mH) > > > ...
2018/03/19
515
1,727
<issue_start>username_0: I have an array of objects and when I try to access to it, I get an error saying: > > TypeError: Cannot set property 'ID' of undefined > > > My code is the following: ``` export class Carimplements OnInit { pieces: Piece[] = []; test(pos){ this.pieces[pos].ID = "test"; } } ``...
2018/03/19
941
2,338
<issue_start>username_0: I have imported the first three columns of a .csv file named as *Time, Test 1* and *Test 2* in my python program. ``` import pandas as pd fields = ['Time', 'Time 1', 'Time 2'] df=pd.read_csv('file.csv', skipinitialspace=True, usecols=fields) ``` [Here](https://i.stack.imgur.com/zNAGx.jpg) i...
2018/03/19
717
2,651
<issue_start>username_0: How can I update my state value inside child component in this property `{this.state.username}` using of this function `this.messageSubmit` and how can I re-render the child render for displaying changed state values. Please help me anyone how can I update my state value inside and chat box bec...
2018/03/19
152
656
<issue_start>username_0: I want to migrate wordpress to new host and new domain. Could you please let me know why I have this message? "Apache is functioning normally" <https://preloved-bazaar.stilgut.pl/> How to fix it?<issue_comment>username_1: Because your are using a SSL Certificate and there are pages linked wi...
2018/03/19
657
2,038
<issue_start>username_0: I would like to access a json child using Angular2, here is what I tried: **my json :** ``` orderList= { "ref1": { "Id": "57987" "order": [ { "amount": 4900, "parent": "CIDPT8AO" } ] } } ``` **in the view:** ``` | {{orde...
2018/03/19
710
2,337
<issue_start>username_0: ``` Async.each(asd, (items, callback) => { req.models.aswdf.find({id: items.id}, function (err, result){ category.push(result[0].asd); }); callback(); }, (err) => { if (err) next(err, null); }); return done(null, {displayName: people[0].full...
2018/03/19
1,814
6,678
<issue_start>username_0: I've spent a long time trying to figure this out to no avail. I've read a lot about passing back HtmlResponse and using selenium middleware but have struggled to understand how to structure the code and implement into my solution. Here is my spider code: ``` import scrapy from selenium import...
2018/03/19
966
3,853
<issue_start>username_0: I have the following code ``` public static void main(String[] args) { new Thread() { public void run() { try { employee1(); } catch (Exception e) { Logger.LogServer(e); } finally { ...
2018/03/19
1,128
4,712
<issue_start>username_0: I am working on an angular 4 Application, writing Unit Cases, I am facing below Problem. **component.ts** ``` ngOnInit() { this.service.getData().subscribe(res => { console.log(res); this.data= JSON.parse(res._body); this.addFormControls(); }, error => { ...
2018/03/19
1,593
6,150
<issue_start>username_0: I am learning react-router and I need help in the following problem: I am iterating through an array of strings called nameArr. I would like to create a list of clickable links of the strings using react-router so that each link will navigate though a route defined in route.js. The array nam...
2018/03/19
444
1,472
<issue_start>username_0: So I performed a sentiment analysis using tidy principles. I would like to plot the results in a comparison cloud (positive VS negative sentiments). This is my code: ``` library(reshape2) library(tidytext) dtm_tidy %>% filter() dtm_tidy %>% inner_join(get_sentiments("bing"),by=c(term="word"...
2018/03/19
321
1,137
<issue_start>username_0: I am using Angular 4 and I want to play video.My code is given below ``` ``` When I am using this it's showing me an error Error parsing header X-XSS-Protection: 1; mode=block; report=: insecure reporting URL for secure page at character position 22. The default protections will be applied....
2018/03/19
518
1,836
<issue_start>username_0: ``` line = "Hello, world" sc.parallelize(list(line)).collect() ``` I obtain the following error `TypeError: parallelize() missing 1 required positional argument: 'c'` I also have an other issue when creating a dataframe from a list of strings with only one column: ``` from pyspark.sql.type...
2018/03/19
755
3,087
<issue_start>username_0: I'm defining the Swagger specification of a REST service to be implemented. Since the response document represents a tree-like structure where several nodes repeat multiple times, I'd like to define them in the beginning of a document and then reference them by means of JSON Pointer notation. ...
2018/03/19
1,747
6,229
<issue_start>username_0: I have a multidimensional array in the following format : ``` array ( 0 => array ( 'manual' => 1, 'cancelled' => 1, 'expired' => 1, 'earned' => 1, 'user' => array ( 'user1' => 1, 'user2' => 1, 'user3' => 1, 'user4' => 1, ), 'transfe...
2018/03/19
425
1,321
<issue_start>username_0: Using this code inside my `validation.php`, I was able to translate the translate the values of the `edit_type`-field: ``` 'values' => [ 'edit_type' => [ '1' => 'Intern', '2' => 'Kunde' ], 'every_day' => [ 'true' => 'ausgewΓ€hlt', 'false' => 'nicht au...
2018/03/19
997
3,406
<issue_start>username_0: I am trying to update single object inside an array that exist inside another array (nested array) but what happen that all records are removed and the new records are inserted instead this is the structure I am using: ``` "summary_mark" : [ { "target_id" : "5aa27e77967c552b10ea725...
2018/03/19
544
1,826
<issue_start>username_0: Very new to HTML and JS combined with Bootstrap. I use the Cyborg-theme and I use the Nav tabs in my HTML-file. The problem that I'm getting is that whenever I click on a tab, I want that tab to become the "active" tab. But that doesn't work, instead the only tab that I set to active in the H...
2018/03/19
1,701
4,804
<issue_start>username_0: I am trying to make a menu from the left with slideout animation. But it does not load the animation, it is not closing or opening, it is staying as normal menu. This is my code, as follows * javascript * -css * -html : ```js $(document).ready(function(){ $(".fa-times").click(function()...
2018/03/19
2,064
5,756
<issue_start>username_0: I can't find anything in the documentation. If I do a git pull, am I guaranteed that the underlying file, resulting of the merge, is atomically written? Some more context about what I am trying to achieve: I have some scripts that periodically do a git pull and I need to know if I can rely on ...
2018/03/19
674
2,679
<issue_start>username_0: I'm working on a Unity game that's to be exported as an iOS project and built with Xcode. We've got an existing Jenkins setup that does the job for me at a click of a button, but recently I've been asked to add WebTrends to my project. The manual process for that is as follows: * Copy over a ...
2018/03/19
479
1,736
<issue_start>username_0: Generally I want to write `.js` files with typescript instead of Flow. I configured the webpack to use `ts-loader` on js extension, and that works just fine. I use `checkJs` on tsconfig file and it check the js file fine. However, VS Code shows an error the error on js files: > > Type annota...
2018/03/19
461
1,620
<issue_start>username_0: i can't display the image in my website, which is fetched from the API. this is my image fetching/showing code. ``` this.state.filteredData.map((data,i) => {data.details.name} ![]() const aStyle={ width:300, height:360 }; ``` [![enter image description here](https://i.stack.img...
2018/03/19
943
3,493
<issue_start>username_0: I have imported class from an external module explicitly. I can create objects of this type, but when used as a parameter i.e. Passing class type to method, the method evaluates the class as 'type'. Using the namespace prefix is non-resolvable too. The method evaluates python base types fine ...
2018/03/19
526
2,002
<issue_start>username_0: I'm trying to verify a server's certificate before obtaining data from it using https. I'm assuming that after `curl_easy_perform` I should use: ``` long out = -1; curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &out) ``` I cannot find any documentation explaining the meaning of the value...
2018/03/19
674
1,960
<issue_start>username_0: I'm trying to write regex to check whether items within a string meet a certain criteria: It needs to be a letter followed by a number: ``` 'a' then a number 0-7 ``` and ``` 'b' then a number 0-6 ``` For example: * String "a7b6" should be valid, but * String "a7b7" should be invalid (b...
2018/03/19
1,024
2,996
<issue_start>username_0: I am trying to use trendline in my website and wants to make it dashed but lineDashStyle is not working under trendline option . Is it possible to make trendline dashed ?<issue_comment>username_1: there are no standard chart options for modifying the trendline dash style however, the chart c...
2018/03/19
736
2,882
<issue_start>username_0: macOS HFS+ supports transparent filesystem-level compression. How can I enable this compression for certain files via a programmatic API? (e.g. Cocoa or C interface) I'd like to achieve effect of `ditto --hfsCompression src dst`, but without shelling out. To clarify: I'm asking how to make un...
2018/03/19
1,269
3,772
<issue_start>username_0: one a integer list and one a string list. The integer list's length will always be a multiple of 8. I would like to put the first 8 integers from my integer list into the first element of a string list, then loop and put the next 8 into the second element of the string list and so on. I have ma...
2018/03/19
813
2,420
<issue_start>username_0: I have a table like below: ``` ID | Name | Ratio | Miles ____________________________________ 1 | ABC | 45 | 21 1 | ABC | 46 | 24 1 | ABC | 46 | 25 2 | PQR | 41 | 19 2 | PQR | 39 | 17 3 | XYZ ...
2018/03/19
810
2,734
<issue_start>username_0: I am reading excel sheet using below code but that gives blank data table. ``` public static DataTable ReadExcel(string fileName) { string fileExt = ".xlsx"; string conn = string.Empty; DataTable dtexcel = new DataTable(); if (fileExt.CompareTo(".xlsx") ==...
2018/03/19
367
1,199
<issue_start>username_0: I have the following macro which copies the values entered on the "Add Course" worksheet to cells on the "Bloggs, Joe" worksheet. How do I change it so it uses the value from C3 in the "Add Course" worksheet instead of the hard coded "Bloggs, Joe"? ``` Sheets("Add Course").Select Range("C4")....
2018/03/19
431
1,629
<issue_start>username_0: I want to output the lastname or firstname using search but only lastname is only displaying when i search firstname it does not show values... I tried using OR but it doesn't work ``` private void search_Click(object sender, EventArgs e) { try { MySqlDataAdapt...
2018/03/19
777
2,320
<issue_start>username_0: I want to pick all the measurement values from below string and need to store into one array. I am getting this type of string from machine whoes name is "Kane". when I connected with this machine using bluetooth at that time I am getting this type of string. I am able to print this string into...
2018/03/19
364
1,141
<issue_start>username_0: Can I pass function and parameters to function as arguments? I can pass only function and it is working ``` function wrap(foo) { foo(); }; wrap(() => { console.log("test") }); ``` But I want to also pass some parameters to function **wrap**. Not only function **foo**<issue_comment>usern...
2018/03/19
906
2,934
<issue_start>username_0: I have a problem with converting a varchar2 fields into a date format. I got 2 columns with the datatyp varchar2, one is called qtime the other is called ztime. Both fields contain strings in this format (f.e. 152015 -> would be a timestamp 15:20:15). For reporting reasons I need to convert th...
2018/03/19
563
1,558
<issue_start>username_0: I'm in need to set a cron in crontab like, a php file should be called according to the below schedule > > Mon-Fri, 9:00AM to 3:30 PM every one minute > > > I tried like below, `*/1 * * * * wget http://example.com/trail.php` Can someone help me how to create a cron for the above requir...
2018/03/19
619
1,622
<issue_start>username_0: I have a data stream with e.g. the following values: ``` Observable.of( [{time: 1000, a: 100}, {time: 1000, b: 100}, {time: 2000, a: 200}] ); ``` And need to merge the values based on `time` to get: ``` [{time: 1000, a: 100, b: 100}, {time: 2000, a: 200}] ``` I can use `map` a...
2018/03/19
829
2,769
<issue_start>username_0: I have multiple strings and string-arrays inside my Model, where they're gathered inside a list. Code: ``` namespace ReinovaGrafieken.Models { [JsonObject(MemberSerialization.OptIn)] public class Graphs { [JsonProperty] public string Names { get; set; } [JsonProperty] p...
2018/03/19
759
2,475
<issue_start>username_0: I need help to this select where class from wordpress database: What I would like to achieve is to display the first 6 newcomer posts/records. The path to the image, image name, property title, property features (How many Bedrooms and Bathroom etc. there is) property price and property price...
2018/03/19
1,063
4,261
<issue_start>username_0: I've been looking for a while through documentation to find a way to accomplish this and haven't been successful yet. The basic idea is, that I have a piece of html that I load through Qt's webview. The same content can be exported to a single html file. This file uses Libraries such as Bootst...
2018/03/19
503
1,488
<issue_start>username_0: I want all text "Text here for test" to be covered in green . Right now only the top is green. Here is my code : ```css .circle { background: #00ff00; width: 10px; height: 10px; border-radius: 50%; } ``` ```html [Text here for test](https://podio.com/abccapitalinvestmentscom/l...
2018/03/19
424
1,353
<issue_start>username_0: I have a question about indexing mechanism using Solr in Java. If I create a documents and i want to find only field "name", solr will be index all fields? Or only index by field "name" in each document?<issue_comment>username_1: Just remove `height: 10px;` from `.circle` class ```css .circle ...
2018/03/19
1,707
4,182
<issue_start>username_0: Trying to learn Scala. I want to initialize a Map of Maps. My Java code would look something like this: **(\* Using computeIfAbsent)** ``` private static void initMap() { mapAdd(new App("ID_A", "Site1", "app_AAA", "A_A_A_A")); mapAdd(new App("ID_B", "Site1", "app_BBB", "B_B_B_B")...
2018/03/19
2,020
5,211
<issue_start>username_0: I am having an issue with json.loads(). When i try to decode a json string I get an error. But if I test it with a similar dummy string, it works. What can be the problem here? Code: ``` dummy_test = """{"state":{"reported": "hum":33.1,"temp":22.3,"relay":false,"pir":10964},"desired":{"hum":3...
2018/03/19
766
1,972
<issue_start>username_0: I'am using SQLite DB and I have "**Date**" column that is VARCHAR I need to extract data between 2 dates... this is what I tried.... ``` SELECT * FROM Table1 WHERE Date BETWEEN '14/03/2017 17:00:10' AND '16/03/2018 17:00:12' SELECT * FROM Table1 WHERE strftime('%d/%m/%y %H:%M:%S', Date) BETW...
2018/03/19
648
2,243
<issue_start>username_0: This is my **SearchForm.js**, `handleKeywordsChange` must handle input `keywords` changes ``` import React from 'react'; import ReactDOM from 'react-dom'; class SearchForm extends React.Component { constructor(props) { super(props) this.state = { keywords: '', c...
2018/03/19
1,046
4,418
<issue_start>username_0: I'm creating an Android app where the scenario is User Sign Up and upon clicking "Sign Up" button , the app sends data to REST API. **activity\_sign\_up\_login.java** ``` xml version="1.0" encoding="utf-8"? ``` **SignUp.java** ``` public class SignUpLogIn extends AppCompatActivity { ...
2018/03/19
617
2,298
<issue_start>username_0: So I can get the values from a certain columns(customer last name and first name) from my database into my combobox in my mainform and it's already loaded when the form is opened using LoadEvent. However I have another form where I insert another row (customer lname, fname, phone, etc.) on the ...
2018/03/19
408
1,346
<issue_start>username_0: I would like to replace some values in input files named " i\_f.xyz " using perl, where i goes from 1 to 19. In my files, I want to change a "6" into a "C". To do so I tried ``` perl -pi -e 's/6/C/g' ${i}_f.xyz ``` , and some other combinations but it doesn't work. Anyone can help me p...
2018/03/19
1,563
4,702
<issue_start>username_0: I had some problem with WordCloud code in python when try to run Arabic huge data this my code: ``` from os import path import codecs from wordcloud import WordCloud import arabic_reshaper from bidi.algorithm import get_display d = path.dirname(__file__) f = codecs.open(path.join(d, 'C:/exampl...
2018/03/19
866
3,226
<issue_start>username_0: Very simply, is the following code safe/portable? ``` #include #include int add(int \*a, int \*b) { return \*a + \*b; } int main() { int x = 2; int y = 3; void \*ptr1 = &x void \*ptr2 = &y fprintf(stdout, "%d + %d = %d\n", x, y, add(ptr1, ptr2)); return EXIT\_SUCCESS; } ``` I'v...
2018/03/19
1,306
5,073
<issue_start>username_0: I've been battling with a simple applying a custom adapter to a listview for a few days now, hopefully, someone can help me where I'm going wrong. I have a ListView (listViewAsItHappens) and I want to use a custom adapter to the view so I can format the look of the ListView. I have read lots o...
2018/03/19
827
3,293
<issue_start>username_0: I am looking for a way through which I can parse .zip file and identify hex data and what fields they represent? eg : In a .zip file local file header signature from initial 4 bytes, but how to identify the rest of hex and what they represent I have goen through <https://pkware.cachefly.net/web...
2018/03/19
489
1,649
<issue_start>username_0: I created a button. The language on it has to be changed whenever required. I wrote the following code to do the task ``` var $button = $( '' ) .attr( 'href', '#' ).prepend( '', ' ' ) .attr( 'data-i18n', 'text' ) .tooltip( { title: 'change item' } ); ``` this successfully change the lan...
2018/03/19
428
1,339
<issue_start>username_0: So... I've been banging my head on the wall over this problem for a few days now, but still couldn't find a solution. I have two ranges of numbers A -> B C -> D A given number (x) is on the A -> B range. I need to find it's equivalent in the C -> D range. eg: A -> B = (2 -> 4) C -> D = ...
2018/03/19
1,764
5,842
<issue_start>username_0: I need to write some custum code using multiple columns within a group of my data. My custom code is to set a flag if a value is over a threshold, but suppress the flag if it is within a certain time of a previous flag. Here is some sample code: ```py df = spark.createDataFrame( [ ...
2018/03/19
673
1,684
<issue_start>username_0: I have a list of tuples: ``` card_list= [(2, (1, S)), (0, (12, H)), (1, (5, C)] ``` This list contains cards: (cardindex, (value, suit)) where cardindex is a index to store the position of the card but irrelevant for this my particular question. So in the example there are 3 cards in the li...
2018/03/19
474
1,386
<issue_start>username_0: I have this HTML code and it works perfect: `[![ALT Text](http://www.example.com.img2.jpg)](www.link.com)` I want to add this code in PHP and replace the link and image urls with this variables: $link, $image\_src1 and $image\_src2. I tried this code: `[![ALT Text](.$image_src2.)](.$link....
2018/03/19
589
1,846
<issue_start>username_0: I need to validate the dates with different formats like `Thursday March 15, 2018, 05-21-1995, 04.03.1934` and I may get Invalid Dates like `N/A, #### etc.,`. I am using the Following Query to validate the date in Stored procedure, here I insert the date into the date column and set Error Flag...
2018/03/19
394
1,661
<issue_start>username_0: I am using MPAndroidChart library to make charts for an android application. I would like to make 3-4 charts and want to swipe them. Is it possible to have swipe functionality using MPAndroidChart library and how can I implement such swipe function?<issue_comment>username_1: Use a [ViewPager](h...
2018/03/19
460
1,814
<issue_start>username_0: I'm trying to create a file inside a Django project on Amazon ElasticBeanstalk WebServer Environment. However it gives me a `Permission Denied` error. Here is the error. ``` Traceback (most recent call last): File "/opt/python/current/app/foo/boo.py", line 25, in create_file input_fil...
2018/03/19
585
2,052
<issue_start>username_0: Given a string: How can I printout all values enclosed in brackets from a string in one line? ``` String str = "java programming (for)all (beginners) is (very) interesting"; String values= StringUtils.substringBetween(str,"(",")"); System.out.print(values); ``` What I need is: for beginner...
2018/03/19
350
996
<issue_start>username_0: How do I print a map of maps? I have written ``` map foreach (x => println (x._1 + "-->" + {x._2 foreach {y=> println( y._1 +" ->"+ y._2)}})) ``` It works. But it looks like a hack. Is there a better way to write it in Scala.<issue_comment>username_1: You can just use `println`. It *w...
2018/03/19
1,461
3,934
<issue_start>username_0: I have the following data structure: ``` var = [['x_A_B', 1], ['x_A_C', 1], ['x_B_A', 1], ['x_B_D', 1], ['x_C_A', 1], ['x_C_D', 1], ['x_D_B', 1], ['x_D_C', 1]] ``` I would like to extract these values as ``` var2 = [('A', 'B'), ('A', 'C'), ('B', 'A'), ('B', 'D'), ('C', 'A'), ('C', 'D'), ('D...
2018/03/19
1,401
3,619
<issue_start>username_0: I am new to CSS grid, I have a nested [grid layout page](https://codepen.io/saravananr/pen/OvbaVK). I could not get a scroll bar for grid child **`div.fieldsContainer`**. ```css html,body, .wrapper{ height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; } .wrapp...
2018/03/19
248
1,063
<issue_start>username_0: Using Multi language(Arabic,English) in Application. If we set Arabic language as language in the app.For Numbers,Text view showing Arabic number.I want English numbers not Arabic number even if we selected English language.**how to show number in English even if language is in Arabic?**<issue_...
2018/03/19
1,006
3,335
<issue_start>username_0: I'm trying to implement the macro-function `OR` in Lisp My attempt: ``` (defmacro or2 (test &rest args) `(if ,test ,test (if (list ,@args) (or2 ,@args) nil)) ) ``` However, if I test with something like this: ``` (or2 (print 1) 2 ) 1 1 1 ``` Whereas with the default `OR`: ``` ...
2018/03/19
602
2,292
<issue_start>username_0: I have enabled a diagnostic storage account for my virtual machine. Now I want to change the diagnostic storage account. How do I do it in portal / PowerShell? I can see that we have a cmdlet - "Set-AzureRmVMBootDiagnostics", however, this is not updating the diagnostic storage account to a ne...
2018/03/19
7,193
30,635
<issue_start>username_0: After upgrading Spring boot from 1.5 to 2.0 we keep getting this exception: ``` [PersistenceUnit: default] Unable to build Hibernate SessionFactory ``` Stack trace: ``` org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springfra...
2018/03/19
571
2,253
<issue_start>username_0: I have this formrequest that contains rules and a withValidator as a second layer of validation. Note: I am aware that having it unique on the rules would supress the need for this example, but I'll need to do further validations here. ``` public function rules(Request $request) { re...
2018/03/19
1,239
4,989
<issue_start>username_0: I have a main component with a child chart component. On connecting to a websocket, the main component updates the state of the child chart component. This however does not redraw. When I click on the chart however, the labels appear, and when I click again, the values appear with the labels. ...
2018/03/19
653
2,702
<issue_start>username_0: I have the following piece of code: ``` // using Windows.Storage; internal static class AppData { private static ApplicationDataContainer container; public static bool FirstTime { get; } = !GetContainer("UserInfo").Values.ContainsKey("complete"); static AppData() { containe...
2018/03/19
1,316
4,907
<issue_start>username_0: I've been going through the angularfire2 documentation to retrieve a downloadURl from storage. I'm hoping I'm missing something simple here. The documentation states: ``` @Component({ selector: 'app-root', template: `![]()` }) export class AppComponent { profileUrl: Observable; const...
2018/03/19
410
1,670
<issue_start>username_0: I have a .NET application on a Windows machine and a Cassandra database on a Linux (CentOS) server. The Windows machine **might be with a couple of seconds in the past** sometimes and when that thing happens, the deletes or updates queries does not take effect. Does Cassandra require all serve...
2018/03/19
612
2,159
<issue_start>username_0: I currently trying to get myself familiar with react and the state of a component. I am trying to create a component, use the constructor to initialise the state, do a get request to the server to get an array of object and finally I am trying to update the state of the component accordingly. ...
2018/03/19
492
2,060
<issue_start>username_0: There is no error But I am unable to configuration httponly status in browser. Can you check my code please. ``` public void ConfigureServices(IServiceCollection services) { services.AddDistributedMemoryCache(); services.AddMvc(); services.AddSession(options => ...
2018/03/19
1,144
3,070
<issue_start>username_0: ``` var foo = { "a": [1,2,3] } var bar = { "b": [7,8,9] } ``` output should look like this ``` [ {a: 1, b: 7}, {a: 2, b: 8}, {a:3, b: 9}] ``` How can I do this using ramda or javascript functional programming ? I have done this using for loop i = 0, is it possible using functional ramda p...
2018/03/19
780
2,503
<issue_start>username_0: I have table: ``` Id Value 1 79868 2 79868 3 79868 4 97889 5 97889 ``` Now, I want to make next select with bool variable that check if table contains difrent values at table column `Value`. Something like this: ``` select v= (select case when exists(...) ...
2018/03/19
777
2,837
<issue_start>username_0: I have written a test that mocks the sumbitChoice() function as this function is responsible for an API call. The function is called on clicking the button, '#buttonOption1'. Currently, the test's assertion fails i.e. 'Expected mock function to have been called.' **App.test.js** ``` import ...
2018/03/19
2,416
9,218
<issue_start>username_0: I'm new in angular. I create new project in-memory-web-api, all worked but i must add method in player.ts who upperCase me player object in app.component.ts the player is a object and i must generate upperCase method in player.ts who upperCase me player object in app.component.ts How i can d...
2018/03/19
1,571
6,264
<issue_start>username_0: I have a worksheet with names and addresses of people. I want to make a Userform that finds a person in Column 1 and then output the data from the following cells in the same row as a list. So the output would look like this: > > John > > > Time Squares 12 > > > New York > > > 012312312...
2018/03/19
655
2,057
<issue_start>username_0: I'm trying to perform a VLOOKUP in VBA, using a table in a different workbook. I've tried: ``` width = Application.VLookup(code, Workbooks("T:\Data\Dimensions.xlsx").Sheets("Main").Range("A61:G1500"), 7, False) ``` where `code` is a variable I've already set, but it just returns "Subscript ...