date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/13
781
2,133
<issue_start>username_0: I am trying to change the background color from white to black. So i am trying to go through all the pixels and check whether its white or no if so change the value to 0. But something went wrong. **Here is my code** ``` Mat img = imread("t.PNG"); for (int x = 0; x < img.rows; x++) { for ...
2018/03/13
279
951
<issue_start>username_0: I encountered a problem when I tried to migrate from Spring Boot 1.5.10 to 2.0.0.RELEASE. I have implemented the AuthoritiesExtractor interface and it's working in version 1.5.10, but in version 2.0.0 I got this error `class AuthoritiesExtractor not found in path org.springframework.boot.aut...
2018/03/13
716
2,819
<issue_start>username_0: I have created the login page for the user. If They click the submit button, the page will navigate to one component (test.component.ts,test.component.html,..). I need to make that window in full screen mode. like, (video control full screen in html5). ``` submitLogin() { if (this.userName...
2018/03/13
911
3,313
<issue_start>username_0: I want to delete the row of an item when the 'x' is pressed. But after I added an item to the list, it won't react to the .click(function(){}). When I paste the contents of that same item into the HTML it does work, while I can't find a difference in the item itself. The php page: ``` php ...
2018/03/13
293
1,100
<issue_start>username_0: I've managed to scrape websites that require no login using js only and a little help from websites that allow me to pass the CORS issues(like allorigins), but I just couldn't manage to get pass through the login problem. I've seen many posts discussing of doing it using node.js and python beau...
2018/03/13
674
2,906
<issue_start>username_0: I have a pdf having signature enabled, when i tried to render it using iTextSharp the signature got disappear. I have researched this issue on many platforms but not able to find any solution. here is my code ``` private void BuildPDF(ref Document doc, ref PdfWriter writer) { int ...
2018/03/13
1,300
3,819
<issue_start>username_0: I'm a bit out of my element trying to deploy a Laravel (php) application via docker. Everything works great until I try to use SSL certs via Lets Encrypt, which triggers a redirect loop I'm unable to resolve. ``` upstream app { server app1520925178:80; } server { listen 80 default_ser...
2018/03/13
669
2,375
<issue_start>username_0: I want to create a `HashMap` with a nested structure like this convoluted example: ```none { type: boy name: Phineas father: type: man name: Lawrence } ``` In Rust, this would be: ``` use std::collections::HashMap; let mut lawrence = HashMap::new(); lawrence.insert("...
2018/03/13
1,689
6,169
<issue_start>username_0: I'm having a problem with a part of my program and i think I know what the problem is I can't find way to fix it, hence need your help. I think the problem is not with the serialport.list function but more with the way I am using it. This is my code: ``` var getPortsList= ()=>{ var p...
2018/03/13
427
1,606
<issue_start>username_0: Is there any way to perform *'Find and Replace'* in a protected sheet? I tried, but it prompts an error > > ***"You cannot use this command on a protected sheet. To use this command, you must first unprotect the worksheet (Review tab, changes > groups, unprotect sheet button) You may be pro...
2018/03/13
1,210
4,210
<issue_start>username_0: I am unable to install Laravel 5.6 on my [WAMP](https://en.wikipedia.org/wiki/LAMP_(software_bundle)#Variants) server. I have following setup * PHP version 7.1.3 * [Composer](https://en.wikipedia.org/wiki/Composer_(software)) version 1.6.3 2018-01-31 When I am trying to install the Laravel ap...
2018/03/13
1,490
5,681
<issue_start>username_0: I take this intercept function from angular5 documentation. i catch the 401 error bass the request that return 401 i need to recall him or in another way refresh the page the he was going to it. ``` intercept(req: HttpRequest, next: HttpHandler): Observable> { return next.handle(req) .do( e...
2018/03/13
1,037
3,475
<issue_start>username_0: **I have this error:** > > Attempting to resolve dependencies for multiple packages. > One or more unresolved package dependency constraints detected in the existing packages.config file. All dependency constraints must be resolved to add or update packages. If these packages are being updat...
2018/03/13
637
2,181
<issue_start>username_0: ``` a match { case Some(myType) => { // do things } } ``` Here is my some scala code and there is no ``` case None => case _ => ``` line. do I have to add these line for default? Or can skip them?<issue_comment>username_1: ``` a match { case Some(myVal) => // do somethi...
2018/03/13
1,131
3,306
<issue_start>username_0: I am getting response from server in the following format: ``` [{"key":"Idle Time","values":[{"x":"SADSA","y":"4.0"},{"x":"FDDG","y":"6.0"},{"x":"FF","y":"4.15"}]},{"key":"Operational Time","values":[{"x":"SADSA","y":"20.0"},{"x":"FDDG","y":"18.0"},{"x":"FF","y":"19.45"}]}] ``` I need to con...
2018/03/13
768
2,818
<issue_start>username_0: Based on the *Linphone* Windows 10 app [implementation](https://github.com/BelledonneCommunications/linphone-windows10), I am able to view remote and local video by setting the properties `Linphone.Core.NativeVideoWindowId` and `NativePreviewVideoWindowId` to the respective `Name`:s of two `Win...
2018/03/13
1,983
7,713
<issue_start>username_0: I am working with a comment and reply system for my iOS application. I had an issue with showing and hiding a button. I created two XIB cells for my tableView one as a 'commentCell' and other is 'replyCell'. In comment cell I have a button (Reply) so when user clicks on "Reply" it should inser...
2018/03/13
416
1,623
<issue_start>username_0: I need to perform two migrations on a 2 million row Postgres table and need to ensure there will be minimal downtime each time they are run i.e. less than 5s. The migrations are: 1) Add a default value of 0 and change to non null from null to an **existing** bigint column 2) Rename a column ...
2018/03/13
463
1,827
<issue_start>username_0: Up to now (and if I can avoid the slander for not using unobtrusive JS !) I had generally been using anchors (for AJAX loading) in the following form with inline onclick attributes: ``` [Hello Mum](http://example.com/some/specific/link.php?hello=mum) ``` I appreciate this overrides any other...
2018/03/13
342
1,195
<issue_start>username_0: PHP MySQL search word if %100 equals to word I searched "bat" and I saw "batman" in results. I just want to list if title contains "bat", I dont want to list if contains "batman" I'm tried many way. I can't solve this problem. How can be solve this problem? I can't understand why result like t...
2018/03/13
285
1,021
<issue_start>username_0: Does anyone know the way to run git client with github on RedHat 6.4? It stopped working latelty with github see: <https://githubengineering.com/crypto-removal-notice/> > > RedHat < 6.8 is not compatible with the recent changes because it does > not support TLSv1.2. > > > `Error: fatal:...
2018/03/13
268
1,080
<issue_start>username_0: Is there anyway of using bootstrap to have a datetime keeper without using any javascript or jQuery? Bootstrap should have some sort of classes for that but I can't find them?<issue_comment>username_1: I don't think there's something working without Javascript. There's a native HTML5 input type...
2018/03/13
357
1,310
<issue_start>username_0: This is the compare function: ``` def compare(a, b): if a > b: return 1 elif a == b: return 0 else: return -1 a=int(input('Enter first number here:')) b=int(input('enter second number here:')) compare(a,b) ``` --- when I run it, it prompts the user ...
2018/03/13
299
1,160
<issue_start>username_0: I have been trying a lot to create a invisible button which is show after the Ads is loaded actually. Before the Ads load, button will never visible. BUT IF Ads loaded, then Button will be Visible, How to do it in Android Studio ? Can anyone Explain ?<issue_comment>username_1: I don't think...
2018/03/13
623
1,528
<issue_start>username_0: I am new to unix and required some help... I have a file with contents like: ``` 119000 ABC/CSD/NEW/PB/PB1234_PB0001123.CSV 60000 ABC/CSD/NEW/PB/PB14567_PB0001123.CSV 25000 ABC/CSD/NEW/PB/VV/PB16734_PB0001123.CSV 80000 ABC/CSD/NEW/PB/VV/PB2314_PB09820123.CSV 33117 ABC/CSD/NEW/PB/VV/PB45634_...
2018/03/13
449
1,633
<issue_start>username_0: I am new to wordpress, and i am developing a custom theme, while i have registered a navigation menu in the theme. But the menu is showing automatically on the page while there are no items in the menu i have created from wordpress admin panel. ``` register_nav_menu( 'headerLocationMenu', 'Hea...
2018/03/13
679
2,203
<issue_start>username_0: I want to extend my view of users list by: * adding sortable column based on custom field * giving possibility of filtering list by custom field So what i've did: * created custom field via ACF (its name is: opiekun\_klienta) * entered proper values via user settings (so i've picked one of t...
2018/03/13
713
2,024
<issue_start>username_0: I have an array of object which has multiple properties . I want to check before pushing the other object if the objects in array already has the same combination of property values of the new object. ``` [ { "mobile" : "6014834", "cars" : 55, "TV" : 123, "bottle" : "2897621771 - Hand ...
2018/03/13
537
1,850
<issue_start>username_0: I have a large file which I have connected to via a Java InputStream and I will later provide the InputStream to a function as a parameter. > > InputStream inputStream = new FileInputStream( ... ); > > > But I want my InputStream to be reduced / filtered to a subset of the row; my data is...
2018/03/13
408
1,382
<issue_start>username_0: so i have a table that have multiple rows and cell. Its a summary table that i have to populate from mysql database. This is my table:[![Summary Tabe](https://i.stack.imgur.com/8anPa.jpg)](https://i.stack.imgur.com/8anPa.jpg) So my solution was to write an sql query for every single cell. But ...
2018/03/13
1,769
6,544
<issue_start>username_0: So I created a database table called 'cart' and I was originally going to make it more easier by having the 'cartID', one of the fields to auto increment when a user added another item to the cart. However, I realized that as more items are going to be added for that one single cart, I am bound...
2018/03/13
156
629
<issue_start>username_0: I just changed my project's interpreter to python 3.6 and have to install git library again. When i run the command "pip install --proxy=some\_proxy git" i get the following error message: "Could not find a version that satisfies the requirement git (from versions: ) No matching distribution...
2018/03/13
104
361
<issue_start>username_0: How can I add a `shourtkey` for a `menuItem` in `vaadin 8` (8.3)?<issue_comment>username_1: The error means that there is no such package as `git`. Check the name of the package you want to install. Upvotes: 1 <issue_comment>username_2: I was getting the same error. Using ``` pip install gitpy...
2018/03/13
217
635
<issue_start>username_0: Here is my code: ```js var s = '\ value1\ **wsefw**\ value2\ link\'; console.log(s.find(".chosen-single > span:first-child").text()); ``` All I want to get is `value1`. So I want to get the value of the first which is into `a.chosen-single`. How can I do that?<issue_comment>usernam...
2018/03/13
708
2,688
<issue_start>username_0: In my application i want get user City name from **Latitude** and **Longitude**. For this i write below codes, but show me city name fro **English** language such as **"Tehran"** But i want show this city name for **Farsi** , such as **"تهران"** How can i it for change language? **My...
2018/03/13
700
2,329
<issue_start>username_0: I need to check whether an element exists or not, and if it doesn't, then create it using `Jquery`. For example, I have the following HTML code in my page: ``` Awesome Picture Something else Something else ``` I need `g-array-item-image` class div to be inside both `g-array-item` class ...
2018/03/13
825
2,388
<issue_start>username_0: So.. Here is the code: ``` #include #include #include using namespace std; int main() { unsigned long long i,y,n,x=45; unsigned long long factorial = 1; for(n = 0; n <= 5; n++) { y = (pow(-1,n)\*pow(x,2\*n)) / factorial; cout << "COS IS " << y << endl; } for(int i = 1; i <=n; i+...
2018/03/13
1,373
4,638
<issue_start>username_0: I am trying to add Facebook Shimmer on UICollectionViewCell which has multiple UIViews. For **one UIView**, it's working fine with below code: ``` let shimmeringView = FBShimmeringView(frame: imageView.frame) shimmeringView.contentView = imageView backgroundView.addSubview(shimmeringView) s...
2018/03/13
806
2,060
<issue_start>username_0: I have the following data frame: ```r dat <- structure(list(setosa = c(50L, 0L, 0L), versicolor = c(0L, 11L, 39L), virginica = c(0L, 36L, 14L)), .Names = c("setosa", "versicolor", "virginica"), row.names = c("1", "2", "3"), class = "data.frame") dat #> setosa versicolor virginica #> 1 ...
2018/03/13
727
2,469
<issue_start>username_0: Given a situation where I have a method `SetFooInDevice()`, which I call using a property as one of the arguments: ``` public class Program { public static byte Foo { get; set; } public static void SetFooInDevice(System.IO.Ports.SerialPort sp, byte foo) { var txBuffer = n...
2018/03/13
713
2,112
<issue_start>username_0: I'm a rookie and I just got into XSLT. I'm doing a study of a manuscript and I want to get the proper names (@name type ="proper") that are in it. Through the style sheet I only know how to get the value of the names (@name) How could I add the type? Here are the stylesheet XSLT and the XML tha...
2018/03/13
635
1,876
<issue_start>username_0: ``` def mystery11(n): if n < 1: return n def mystery12(n): i = 1 while i < n: i *= 2 return i return mystery11(n/2) + mystery11(n/2) + mystery12(n-2) ``` I have a question about the code above. I completely understand that without the last recursive call to mystery12, ...
2018/03/13
259
911
<issue_start>username_0: Hi there how can I replace from this to this ```js var str = document.getElementById('bos').innerHTML.replace('col_nr', ""); document.getElementById('bos').innerHTML = str; ``` ```html col\_nr[504] ``` I want to be able to take only the number without brackets<issue_comment>username_1: Y...
2018/03/13
901
2,544
<issue_start>username_0: I have a form request which I need to validate . If I dd the $request->all() it shows me the following result. ``` "adults_information" => array:1 [▼ 0 => array:6 [▼ "first_name" => "Luke" "last_name" => "Greer" "dob_day" => "08" "dob_month" => "01" "dob_year" => 1935 "gender" =>...
2018/03/13
1,340
4,324
<issue_start>username_0: I'm trying to support some external configuration file for my spark application using typesafeconfig. I'm loading the application.conf file in my application code like this (driver): ``` val config = ConfigFactory.load() val myProp = config.getString("app.property") val df = spark.read.avro(m...
2018/03/13
931
2,583
<issue_start>username_0: I have a dataframe as follows I need to create a column sum. For each row the sum will be from the month of action. ``` Apr May Jun Jul Aug Sep Oct Nov Action On 4.0 2.0 3.0 2.0 1.5 1.0 0.5 4 July 3.0 4.0 1.0 7.0 2.0 3.0 1.0 2 August 3.0 3.0 1.0 0.5 0.5 1.0 1.0 6.0 September 1.0 1.0 0.5 0...
2018/03/13
907
2,873
<issue_start>username_0: I have a table which contains laboratory results, including 'blind duplicate samples'. These are basically a sample taken twice, where the second sample was given a non-descript label. The corresponding origina; sample is indicated in a separate column ``` Labels = ['A1-1', 'A1-2', 'A1-3', 'A1...
2018/03/13
841
2,936
<issue_start>username_0: I'm using `"react-router-dom": "^4.2.2"`. If I test on `localhost:3000/second` it works perfectly. When I upload this on ubuntu server with nginx and I try `www.website.com`, it works . When I try to use `www.website.com/second` it gives me `404 not found`. I'm using `create-react-app`. *...
2018/03/13
442
1,415
<issue_start>username_0: My code looks something like this and there is data-ng-click for anchor tag. ``` $state.go('routeHere', {parameter : "parameter"} }); ``` I have tried ``` var url = $state.go('myroute', {parameter: "parameter"}); window.open(url,'_blank'); ``` **target="\_blank"** But those are not worki...
2018/03/13
807
3,179
<issue_start>username_0: I am trying to create an infinite scrolling page which contains posts. I have this HTML code: ``` ![](/img/loader.gif)Loading More post ``` When the user scrolls to the div with `id="scroll-to"`. I have created an ajax call to a code which automatically appends the data to div which have `i...
2018/03/13
491
2,085
<issue_start>username_0: I have a friend that found one more problem with the shopping website, her StackOverflow account (Displayed ID name is Ruth) has been used to ask a question for something else today and could not ask another one until two days later. So I have decided to ask the question for my friend. She is ...
2018/03/13
550
2,219
<issue_start>username_0: How can i exclude a complete schema from buffering or cacheing? Each Query for this schema shouldt never buffered in query cache or innoDB Buffer.<issue_comment>username_1: For the disabling of query cache for the specific schema - generally it's not possible, however, you can turn off query ca...
2018/03/13
710
2,072
<issue_start>username_0: ``` $Product = array("aaa","bbb","ccc"); $suppliername = array("S0001","S0002","S0001"); $vals = array_count_values($suppliername); print_r($suppliername); print_r($vals); foreach($Product as $index => $value) { if($vals[$index]>1) { echo $suppliername[$index]."+++"."Multipl...
2018/03/13
474
1,557
<issue_start>username_0: I want to fetch time column from mysql database and to compare with current time. It should execute only if it matches with the current time. Please tell me a MySql query or php code to do this. I am new to php. [![enter image description here](https://i.stack.imgur.com/bJ9tH.png)](https://...
2018/03/13
420
1,232
<issue_start>username_0: Hi I am trying to change my url using htaccess but it didn't work anymore. *`http://localhost:8888/cPanel/abc?page=general-settings`* ``` RewriteRule ^cPanel/([\w-]+)/?$ abc.php?page=$1 [L,QSA] ``` What i am doing wrong anyone can help me here please ? I want to change the url like this: ...
2018/03/13
640
2,480
<issue_start>username_0: I have the following JUnit tests, and can't work out why the second test does not pass, the value of `i` is 1 in both tests. ``` public class TestTest { private AtomicInteger ai = new AtomicInteger(1); @Test public void test1() { int i = ai.getAndIncrement(); Assert.assertEqual...
2018/03/13
306
1,142
<issue_start>username_0: I'm trying to autoplay a video on iOS's Safari (any version) and I'm using this HTML5 tag: ``` ``` For some reason it works on Chrome and on Firefox but when I check the video's `.muted` property on Chrome is set to **true** while in Safari is set to **false**. I'm using Browserstack for deb...
2018/03/13
996
3,657
<issue_start>username_0: I am creating a SP List via REST API, and after the list has been created I'm adding a custom ContentType to that list. So, my custom ContentType should be a default CT on that List. I've already tried this but it doesn't work, probably my contentType has to be an object.. ``` let dfd = new $...
2018/03/13
805
2,852
<issue_start>username_0: There is an element like this in my DOM: ``` whatever ``` And I get its text as well like this: ``` var elValue = $(".myClass1").text(); ``` Now I want to avoid selecting that element when it looks like this: ``` whatever ``` So, the scenario is: get the value of `div.myClass1` whe...
2018/03/13
1,043
3,612
<issue_start>username_0: I am trying to create a parameter for a max allowed processing time, give it a 10 minutes value and then compare the processing times for other processes with the parameter value. This will include creating a new column where it will be mentioned if the parameter time is exceeded. For this I a...
2018/03/13
372
1,487
<issue_start>username_0: I'm trying to process text in German and Spanish languages. Working on English text is straight forward because of myriad NLP packages on this language. But it's not easy for other languages. I Found some packages for German text but I don't know which one is more accurate. Also, It's more diff...
2018/03/13
303
1,181
<issue_start>username_0: I am new to maven and was wondering how to include dependencies that exists in a pom.xml file located in one of my dependencies (without looking into that pom.xml and just doing a copy paste of the depencies into my pom.xml file)? So this is what I want to achieve: My project structure: [![e...
2018/03/13
1,381
4,758
<issue_start>username_0: Hi i am using angular js version 5.2.6. and i am trying to hit a url through service. this url is a image url. means if you click on this url you will get an image file and nothing more than this. i want to know the time taken in hitting that url. when i hit the url i get an error **No 'Access-...
2018/03/13
1,448
4,106
<issue_start>username_0: I've a text blow and I want to match All the text in bold. So without depending on prefix i.e serial numbers, Can I match just bold characters using Regular Expressions? 144. **<NAME>.**, <NAME>., <NAME>., <NAME>., <NAME>.: Forensics: e age written in teeth by nuclear tests. Nature 437(7057) (...
2018/03/13
456
1,710
<issue_start>username_0: Im working on deploying arm templates via VSTS pipeline. I have a powershell script which gets a subnet id and I need to pass this subnet id value into another task in VSTS. How can i pass variables from a powershell script to vsts and then pass this to azure resource group deployment task as a...
2018/03/13
2,453
9,533
<issue_start>username_0: So I am having some confusion understanding dynamic binding vs upcasting. My original understanding was that when you create a `base_class` reference and assign it to a derived class object like: ``` base_class obj = new derived_class(); ``` you can now call the methods/member functions o...
2018/03/13
2,069
7,678
<issue_start>username_0: What is the exact difference between fetch and async data. The official documentation says the following: > > **asyncData** > > > You may want to fetch data and render it on the server-side. Nuxt.js > adds an asyncData method that lets you handle async operations before > setting the compon...
2018/03/13
1,335
4,407
<issue_start>username_0: So, I want to create a page layout what will look like this: [![enter image description here](https://i.stack.imgur.com/bAetX.png)](https://i.stack.imgur.com/bAetX.png) For example, in Bootstrap I can simple write: ``` ``` And everything will be cool. Is there a good clean solution to do s...
2018/03/13
1,815
6,697
<issue_start>username_0: I can not stop updating when I move list to up or to down, RecyclerView is reload items.. how i can stop it? example image: [image 1](https://i.stack.imgur.com/wa2I9.png) when i scrolling: [image 2](https://i.stack.imgur.com/gNSOj.png) [i want to stop update and save item state like image 1]...
2018/03/13
2,321
8,633
<issue_start>username_0: My app, when user click capture button, start camera capture. I use bitmap API. but sometimes memory problem. so I want use `Glide` library. current my source ``` //Run on Preview call from Camera @Override public void onPreviewFrame(byte[] data, Camera camera) { YuvImage image = new YuvIm...
2018/03/13
298
1,121
<issue_start>username_0: I am beginner with android developing, so maybe this question is lame. When I create button, it have some border which is visible, even though I didn´t set any and background is just color. more here in sample: ``` ``` and this is how it looks(i hope its visible, on mobile its even more tha...
2018/03/13
922
3,039
<issue_start>username_0: I am searching for the opposite of [`distinct`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/distinct.html). In a list with `[ "a", "a", "b", "c", "b", "d" ]` I only want to keep `"a"` and `"b"` because they appear multiple times. A solution for this could be the following:...
2018/03/13
824
2,713
<issue_start>username_0: I want to create a basic iOS app that has two buttons. Tap the first button to show view controller 1, tap the second button to show view controller 2. How Can I do this by swift code. I connected the first button to the following code on the root view controller: ``` @IBAction func showView...
2018/03/13
894
3,038
<issue_start>username_0: My dom looks like this: ``` something something else [link](#) **whatever another thing** ``` Now I want to get a sequence of s from the beginning of vale of `div.wrapper` until a tag else than . So here is the result: ``` something something else ``` Is there any idea how can I do ...
2018/03/13
371
1,359
<issue_start>username_0: In my PHP file I have created a function with a parameter which can be of any type. Because of this, I declared this parameter as `mixed`. It seems the `mixed` type is linked to the folder location where the class is headed; `lib\util`. The error says `instance of lib\util\mixed`. ``` protecte...
2018/03/13
1,027
3,251
<issue_start>username_0: I am doing a program on ROS, in which the publisher is subscriber's callback function and all are going well except only thing that I can't see where the data is getting print. The code I wrote is shown below: ``` #include #include class pubsub { private: ros::NodeHandle nh; ros:...
2018/03/13
530
2,279
<issue_start>username_0: And what's the difference about WindowFunction's trigger and ReduceFunction's trigger?<issue_comment>username_1: Triggers apply only to windows. ReduceFunction doesn't need a trigger, it is a transform operation, that calls `processElement()` at each new element. In short: `ReduceFunction` tr...
2018/03/13
471
1,535
<issue_start>username_0: I'm trying to test following strings in VBA. ``` Test String Expected Result 10 TRUE 10.23 TRUE 10.24.01 TRUE 10.24.02 TRUE...
2018/03/13
816
2,615
<issue_start>username_0: I am using the `wp_insert_post()` function to create a post with a customized data but I am unable to add categories and featured image in the post my code is below: ``` $new_post = array( 'post_title' => $leadTitle, 'post_content' => $leadContent, 'post_status'...
2018/03/13
1,433
3,910
<issue_start>username_0: I am using `SQL Server 2012` and I have the following `T-SQL` query running against a table. ``` SELECT ID ,StayDate ,Dateadd(day, -datepart(day,StayDate) + 1, StayDate) as 'MonthOfStay' ,DailyRateAmount ,SUM(DailyRateAmount) OVER (PARTITION BY ID) AS [CummulativeRa...
2018/03/13
272
1,045
<issue_start>username_0: I have a struct containing a bunch of char pointers whose values are used throughout the program's lifetime. Most are overwritten every iteration. Should these values be freed at any point besides program exit? Should the value in the char pointer be freed before overwriting it with `strdup("n...
2018/03/13
700
2,220
<issue_start>username_0: Every time i try to start appium desktop with the iOS capabilities i am getting the following error: > > Unable to launch WebDriverAgent because of xcodebuild failure: "Carthage binary is not found. Install using `brew install carthage` if it is not installed and make sure the root folder, wh...
2018/03/13
696
2,033
<issue_start>username_0: I'm new to the database and my question is how can I use composite primary key for deletion. here is my table structure, ``` CREATE TABLE DevProj ( DeveloperID int NOT NULL, ProjectID int NOT NULL, WorkDate Datetime, WorkingHours int, Overtime int, Descriptions varchar(...
2018/03/13
756
3,001
<issue_start>username_0: I put a debug print codes everywhere when I am fixing codes, when I am done with it I did not remove them but put a comment so that when the bug occurs around here next I would be able to uncomment it and get it to print out data. (I can't get used to breakpoint debugging and inspecting variab...
2018/03/13
1,227
4,315
<issue_start>username_0: excel(XLSM) file starts with first column empty and second column with values and so on it replaces the empty column with immediate column available **XLSM FILE** :Before uploading [![enter image description here](https://i.stack.imgur.com/jpWR8.png)](https://i.stack.imgur.com/jpWR8.png) XL...
2018/03/13
702
2,338
<issue_start>username_0: I have a directory that has two \*.xml files that starts with "L". I tried various LINQ syntax but all returns no files. It should be simple enough but I can't wrap my head about this problem. ``` IEnumerable files = Directory.EnumerateFiles(path) .Where(p => p.Substring(0,1) == "L"); IEnume...
2018/03/13
774
3,310
<issue_start>username_0: I'm making a simple app for my school that the user will rate the service and press submit, which sends the data to firebase, but at the same time, resets the value of the rating bar so the next user can rate again. But I am having some difficulties and misunderstandings. Please Help! Here is m...
2018/03/13
639
2,390
<issue_start>username_0: This is a problem with page redirection in an .htaccess ile, when the pages are idenified by a dynamic PHP string. I'm not sure anyone can help me with this. It may be an insoluble problem. I have just moved a client to a new Web site, in which properties for sale are in one subfolder, and pr...
2018/03/13
270
930
<issue_start>username_0: I want to make a magazine style website and preferably with Bootstrap (if that's possible). I want it to look like this: [![enter image description here](https://i.stack.imgur.com/qkhH4.png)](https://i.stack.imgur.com/qkhH4.png) Can anyone tell me if it's possible to make something like this w...
2018/03/13
473
1,488
<issue_start>username_0: A basic question but I've got a file, say file.csv, in the directory, `C:/Users/User/Desktop/Other/DataAnalysis/CurrentData/file.csv`, and so I've written, `df = pd.read_csv("C:/Users/User/Desktop/Other/DataAnalysis/CurrentData/file.csv")` and I get an error - ``` > FileNotFoundError: File ...
2018/03/13
625
1,714
<issue_start>username_0: I have string which should to be change from numbers to text in my case variable is: ``` $string = '18.3.0-31290741.41742-1' ``` I want to replace everything after '-' to be "-SNAPSHOT" and when perform echo `$string` to show information below. I tried with `LastIndexOf()`, `Trim()` and othe...
2018/03/13
578
2,337
<issue_start>username_0: I need a data structure that supports two operations - delete and search. Now, the delete operation should run in **amortized O(1)** time, while search should run in **O(log n)** time. Search operation should work as follows: look for value specified and if it is here, return value itself. Ot...
2018/03/13
615
1,844
<issue_start>username_0: I have a DataFrame with start\_date column of date type. Now I have to generate metrics for unique values in column1 with start\_date before or equal. Following is a input DataFrame ``` column1 column2 start_date id1 val1 2018-03-12 id1 val2 2018-03-12 id2 val3 ...
2018/03/13
517
1,547
<issue_start>username_0: [https://api.dialogflow.com/v1/query?v=20150910&contexts=shop⟨=en&query=apple&sessionId=12345&timezone=America/New\_York](https://api.dialogflow.com/v1/query?v=20150910&contexts=shop&lang=en&query=apple&sessionId=12345&timezone=America/New_York) Headers: Authorization: Bearer YOUR\_CLIENT\_ACC...
2018/03/13
424
1,246
<issue_start>username_0: I have a (very) large csv file almost around 70GB which I am trying to sort using the `sort` command. As much as I am trying, the output is not being written to file. Here is what I tried ``` sort -T /data/data/.tmp -t "," -k 38 /data/data/raw/KKR.csv > /data/data/raw/KKR_38.csv sort -T /data/...
2018/03/13
638
2,935
<issue_start>username_0: I created a regular expression pattern that matches square bracket, Wiki-type tags like the following: ```none [h1]Some content[/h1] [b]some more content[/b] [i]some more still[/i] ``` Here is a scenario: ```none This [b]sentence[/b] is just an [b][i]example[/i][/b]. ``` Here is the patt...
2018/03/13
1,668
5,489
<issue_start>username_0: I tried to perform the following to exclude `node_modules` from `tslint`. But none of them resolved the issue. I am confused if it is because of the way I call the `node_modules` folder. **First attempt** - Added the following in `tsconfig.json` and `tsconfig-aot.json` ``` "exclude": [ ...
2018/03/13
1,507
5,244
<issue_start>username_0: I'm trying to call Birt report from a controller as following : ``` @RequestMapping(value = "/birtReport", method = RequestMethod.GET) @ApiOperation("Download Report") public void birtReport(HttpServletRequest request,HttpServletResponse response) throws ErrorExceptions, IOException{ H...
2018/03/13
460
1,673
<issue_start>username_0: I have a sencha touch app made for cross platform and its working fine with any device but when I tested with One Plus 5 with Oreo version then it is showing just a blank white screen on launching... nothing else. Does anyone have any idea whats happening here. In the logs I am getting the foll...
2018/03/13
603
1,653
<issue_start>username_0: I am trying to create an animation in css, jquery could be helpful, but it's not giving me desired results. This is the image: ![gif](https://milleniance.com/images/ani2.gif) I am talking about the black phone animation. Animating any piece of html, is easy and I can handle it well, but thi...