date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/12
291
1,114
<issue_start>username_0: I have a class library targeting `net471` and I have set up the information in `Properties->Package`. `Generate nuget package on build` is also checked. I'm also trying to create package manually by right-clicking on the project and selecting `Generate nuget package`. When I build the project...
2018/03/12
522
1,918
<issue_start>username_0: how can set all Pivot Items that start with a certain character to false i currently have a situation where i have a list of pivotitems that my macro has recorded but the problem is the code bombs out when new or different pivotitems are introduced into the data set: ``` With ActiveSheet.Piv...
2018/03/12
301
1,062
<issue_start>username_0: I have the following code: ``` $getDate = $messages->groupBy(function($date) { return Helper::ru_date('%d %b', strtotime($date->created_at->toDateString())); }); ``` This give me messages group by date. I get an array: 14 february => messages items 15 february => messages items W...
2018/03/12
1,833
4,828
<issue_start>username_0: I want to create users on the Azure Active Directory B2C i followed each steps for that in the given link [Here](https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-devquickstarts-graph-dotnet) URL :- <https://graph.windows.net/testinggmail.onmicrosoft.com/users?...
2018/03/12
578
2,121
<issue_start>username_0: we have a production database with thousands of users, in the last release, we have added devise pepper for more security. Now existing users are failed to login to production. but new users which created after release are able to log in. I think the problem is salt used to encrypt the passw...
2018/03/12
1,102
3,008
<issue_start>username_0: I'm trying to make responsive all the content inside a div. The content can be dynamic (tables with paddings and/or margins, tables inside tables, div, text, etc etc). I searched a lot but I didn't find a good solution (eg: [How to make div's inside div responsive](https://stackoverflow.com/que...
2018/03/12
747
2,375
<issue_start>username_0: Facing a very silly issue. I am showing alert message on a button click. It works perfectly at first click but then it is not working on next clicks, Here is my code : <http://jsfiddle.net/nre6fbm5/> HTML ``` Dismissal Alert Messages ------------------------ Send Message × Error! Can ...
2018/03/12
1,102
3,667
<issue_start>username_0: I can search a text in a paragraph using regular expression in JavaScript. What I want is, instead of displaying the searched pattern I want to apply basic styling to the search text, such as yellow background (or bold text)! eg. My name is <NAME> pattern: /M(r|s|rs).?/ Output: My name is **Mr...
2018/03/12
2,338
6,400
<issue_start>username_0: I want to parse itunes:image::href="#" from xml rss feed to json in php. I am able to get the title, PubDate etc. But unable to parse itunes..Please help here is my rssfeed snippet. ``` xml version='1.0' encoding='UTF-8'? The Safina Society Podcast http://www.safinasociety.org Mon, 05 Mar...
2018/03/12
872
2,830
<issue_start>username_0: I have 4 buttons in HTML Bootstrap and one function in PHP (function with an argument). What I need: If user clicks the button, it send special argument to function in PHP. I don't know is it wrong or not, but I think this is possible with Ajax... My code HTML: ``` b1 b2 b3 b4 ``` My PHP ...
2018/03/12
804
2,554
<issue_start>username_0: whats happend setstate is not function?!!! could you please help me for this error ? its just very simple but not work ``` $.ajax({ type: "POST", url: 'http://192.168.1.156:8000/api/v1/reports/', data: {'start':start.toLocaleUpperCase(),'end':end.toLocaleLowerCase()}, success: f...
2018/03/12
986
3,421
<issue_start>username_0: I have a form and when the users enter "Test" it should create a cookie and load the templates using `require` function. As soon as the cookie is enabled it will display the template. If the cookie expires it will require again the password. In other words, i if the password is "<PASSWORD>" i w...
2018/03/12
1,066
3,075
<issue_start>username_0: I try to build a custom image for the EMQ MQTT server. But the script update\_config.sh is not executed by during docker copmose up. **Dockerfile:** ``` FROM emqttd-docker-v2.3.5 # change configuration file ADD update_config.sh /opt/emqttd/etc/update_config.sh ADD ./certs/MyEMQ1.key /opt/emq...
2018/03/12
319
962
<issue_start>username_0: How to assign to Object via destructuring? For example ``` let parameter = {id : 10, username : 'john'} let obj = {} ({id : obj.iduser, username : obj.user} = parameter) ``` Expected : ``` {iduser : 10, user : 'John'} ``` But, i got an error : ``` ReferenceError: obj is not defined ``...
2018/03/12
3,377
9,718
<issue_start>username_0: i am stuck on this problem for like 20h. The quality is not every good because on 1080p video, the minimap is less than 300px / 300px I want to detect the 10 heros circles on this images: ![Minimap](https://i.stack.imgur.com/KJOkE.png) Like this: ![Result Expected](https://i.stack.imgur.c...
2018/03/12
598
2,007
<issue_start>username_0: I want to add metadata to Minio object while adding the file as object to Minio object storage using python. I am able to find accessing metadata of object stored on Minio. but there is no example of adding metadata while adding file to Minio storage. Regards, <NAME><issue_comment>username_1: ...
2018/03/12
254
977
<issue_start>username_0: Is there any difference when using: ``` ![]({% static 'images/someimage.png' %}) ``` and ``` ![](https://s3.us-east-2.amazonaws.com/my-bucket/static/images/someimage.png) ```<issue_comment>username_1: There is no difference as such for the image display. Only thing is in one you are using ...
2018/03/12
279
1,250
<issue_start>username_0: I wrote a shared library in C++ on Linux, which contains a function `f()`. This library is used from multiple programs, calling the function. Now I would like to conduct some debugging with that function, while calling it from program `A`. When calling it from any other program, it should fa...
2018/03/12
211
912
<issue_start>username_0: I want to disable the button ***for every user*** once clicked, but it is getting enabled when I refresh the page. ``` | ``` Is there any way I can disable the button permanently for every user once it has been clicked?<issue_comment>username_1: There isn't a way that can't be gotten around...
2018/03/12
383
1,471
<issue_start>username_0: I have a excel sheet i.e, ``` 0 first |second |third |root 1 credible |credulous |credibility|cred 2 cryptogram|cryptology|cryptic |crypt 3 aquatic |aquarium |aqueduct |aqua ``` i want to import key and value for dictionary from above mentioned excel sheet: ...
2018/03/12
253
982
<issue_start>username_0: ``` booking No Movie Name Guest Name --------------------------------------------- 643042 Horrer Movie MARLON HARRIS 643042 Horrer Movie ALICE HARRIS ``` I want to display this record as below in SQL Server ``` 643042 Horrer Movie ALICE HARRIS / MARLON HARRIS ```<i...
2018/03/12
350
1,389
<issue_start>username_0: Since this feature is relatively new (mongo 3.6) I found very few java examples. My questions: 1. What is the best practices for watching change streams? 2. Does it have to be a blocking call to watch the stream? (This means a thread per collection which is less desired) This is the example I e...
2018/03/12
999
3,745
<issue_start>username_0: I'm making a blog edit page, but my edit page doesn't do anything. Why doesn't my update query work? I'm collecting the data from an old blog and inserting it into my form. And then I'm trying to update it using my update query. I think this is the code you need: ``` php include_once('inclu...
2018/03/12
914
3,384
<issue_start>username_0: I'm building a website in Angular 4. My url server side (Web Api) was <http://localhost:55499/api> My url client side is <http://localhost:4200>. And it worked well. For various reasons I changed the url server to <http://localhost/AAA/api/> and I start to use iis express instead local...
2018/03/12
1,356
4,650
<issue_start>username_0: I often use the following functions of the `Data.Tuple.Extra` library: `first`, `second`, `***`, `&&&`, and `both`. There are equivalent (?) functions in `Control.Arrow`. In fact I prefer `Data.Tuple.Extra` because I'm totally lost with the documentation of `Control.Arrow`. Is there any adva...
2018/03/12
982
4,355
<issue_start>username_0: When writing a project in C, I'm always conflicted whether to use an array with a predefined length with the maximum possible values, or create a dynamic array with the real length of the data. ``` int a1[MAXIMUM_ALLOWED_VALUES]; int *a2; // will be malloced according to the data length ```...
2018/03/12
1,414
5,167
<issue_start>username_0: Is it possible to use the Mojolicious template system to build a static website? I'm trying to use a (skeleton) script like this: ``` use Mojo::Template; use Mojolicious::Plugin::DefaultHelpers; use Mojolicious::Plugin::TagHelpers; my $mt = Mojo::Template->new; print $mt->render_file('index....
2018/03/12
454
1,626
<issue_start>username_0: Hi all having an issue with Chrome Dev Tools device emulation where when I set a device the screen image is cropped to about a third of its correct size leaving the rest of the image with just a pale pink background. See attached. Any ideas? Thanks. [![Odd cropping of screen where top left cor...
2018/03/12
439
1,732
<issue_start>username_0: what is drop-ship and special order in netsuite and how they differ ? I am very confused about these and wants to understand them clearly. Thanks! in advance<issue_comment>username_1: Two links to help you out [NetSuite special orders](https://softwareselect.wordpress.com/2011/06/17/working-w...
2018/03/12
667
2,564
<issue_start>username_0: I need some alternative for the following code to be more readable. `ssrFlightList` is nested list. I tried with `forEach`: ``` ssrFlightList.stream().forEach( x -> x.getSsrPassengerList().stream().forEach( y -> y.getSsrItemList().stream().forEach( ...
2018/03/12
377
1,571
<issue_start>username_0: Is the way to protect overriding native Date object? Or detect that execution environment was changed? For example, someone hack my code and override Date like this: ``` function Date() { this.getMonth = function() { return 13; }; } ``` Thank in advance!<issue_comment>userna...
2018/03/12
699
2,323
<issue_start>username_0: I wanted to implement expand all and collapse all in angular 2 material. Can any one give idea? how to do that?<issue_comment>username_1: 1- You should remove the `mat-accordion` to enable multiple expanded panels. 2- Use the `expanded` parameter to change multiple states at the same time. [H...
2018/03/12
1,673
5,212
<issue_start>username_0: ``` Sequence_ID Dex_ID 1 1 null 2 null 3 2 4 null 5 null 6 3 7 null 8 null 9 4 10 null 11 null 12 3 13 ``` Above is the data set. The null should be updated by the preceding values between the two not nulls. The sequence\_id will not neces...
2018/03/12
1,513
4,843
<issue_start>username_0: I want to get the first name and last name of FB API, during the implementation of Facebook API in Android studio. I am only getting the full name, please help me<issue_comment>username_1: [SQL Fiddle example](http://sqlfiddle.com/#!18/5c3c2/1) ``` UPDATE f1 SET Sequence_ID = x.Sequenc...
2018/03/12
1,614
6,781
<issue_start>username_0: I started a new project (rewrite an existing solution) and wanted to use and explore DDD. It was very hard to at the beginning to ignore the Entity Framework during designing my domain model. It worked very well for smaller aggregates that only have small child collections or that where only CR...
2018/03/12
586
2,004
<issue_start>username_0: I need to display check box and txtMonth in single line. I use bootstrap 3. Here is my html: ``` month: year: excel ``` The check box in view is alwayes going down under month label. Here is [JSFiddle](https://jsfiddle.net/DTcHh/52004/). How can I make checkbox to be in one line w...
2018/03/12
380
1,288
<issue_start>username_0: App is installing while connecting via USB to mobile, but while sending `.apk` file to others it saying "App not Installed" (both debug and release). 1.[How to overcome app not installed error when building from Android Studio 3.0?](https://stackoverflow.com/questions/47035090/how-to-overcome-...
2018/03/12
418
1,705
<issue_start>username_0: In my Android activity, I am loading an image in an `ImageView` using Picasso in my layout. The problem is that the image is showing as blurred. I have tried another image loader like Glide but I'm still getting blurred image. I have tried this code: ``` Picasso.with(this).load(ServiceConst...
2018/03/12
1,328
5,642
<issue_start>username_0: I'm using the `BehaviorSubject` class to update the number of notifications in my global. I have 2 components: the component notification shows a list of notifications and you can set these notifications as read. The header component shows the number of notifications who are not read to let the...
2018/03/12
906
2,815
<issue_start>username_0: Is there any way to write a generic loop whcih iterates over values of both say stl map (associative container) and list (non associateve container). ``` template void foo(T &t) { for (auto iter = t.begin(); iter != t.end(); ++iter) { printf("%d\n", \*iter); // will work for std::list but ...
2018/03/12
1,003
4,253
<issue_start>username_0: I would like to use placeholders in a feature file, like this: ``` Feature: Talk to two servers Scenario: Forward data from Server A to Server B Given MongoDb collection "${db1}/foo" contains the following record: """ {"key": "value"} """ When I send GET "${server1}...
2018/03/12
2,083
5,564
<issue_start>username_0: I am in the progress of transferring a script from a (discontinued) windows server to our Linux one. One of the scripts I need to transfer is a connection with a `MSSQL`-server. The connection with the server is established and I am able to fetch "regular" data from any of the tables, but whe...
2018/03/12
233
739
<issue_start>username_0: Hello I have got this php website to work upon. But I am not able to change the slider to get it displayed horizontally instead of its vertical view. Actually I am not getting what to change. So if anyone can help me out will be appreciated. for reference: <http://www.smsconsortium.com/><issue...
2018/03/12
2,125
8,005
<issue_start>username_0: I have a countdown timer that i want to implement on finish method or some kind of code so that when the timer stops, the text views change to *Time's up* **and another method is initiated (in the activity)**. To clarify, the timer is given a starting number that counts down from, to zero in fo...
2018/03/12
776
2,726
<issue_start>username_0: In case of network partitions, Raft stays consistent. But what does happen if only a single node loses contact *only* to the leader, becomes a candidate and calls for votes? This is the setup, I adjusted the examples from <http://thesecretlivesofdata.com/raft/> to fit my needs: [![enter image...
2018/03/12
1,598
4,846
<issue_start>username_0: I'm trying to plot a pandas `series` with a `'pandas.tseries.index.DatetimeIndex'`. The x-axis label stubbornly overlap, and I cannot make them presentable, even with several suggested solutions. I tried [stackoverflow solution suggesting to use `autofmt_xdate`](https://stackoverflow.com/a/267...
2018/03/12
259
919
<issue_start>username_0: I'm learning spring boot recently and I use angular as the frontend. I'm tired of the thymeleaf, so I try to load the html5 without the module (I put the html, css and js in the package `resource/static`). I can load the `index.html` only when I enter the specific URL `http://localhost:8080/ind...
2018/03/12
194
773
<issue_start>username_0: Creating folder by following code ``` var documents=Environment.GetFolderPath(Environment.SpecialFolder.MyPictures); var directoryname = Path.Combine(documents, "XX"); Directory.CreateDirectory(directoryname); ``` but the folder does not exists in the specific path..M...
2018/03/12
524
1,679
<issue_start>username_0: Basically, what I'm trying to do is loop inside a loop and in arrays. I have no idea how to do it (that's why I'm here) and I've been testing many things. As it sounds very confused I write down the code how it would be, but clearly that's not correct. ***This below is what I've tried.*** ``...
2018/03/12
440
1,505
<issue_start>username_0: I'd like to update multiple documents with query that is made by object array. However I found that only one documents had been changed. ``` var split = num.toString().split(','); var list = new Array; for ( var i in split ) { var pk = { "_id" : split[i], "id" : user.id ...
2018/03/12
296
1,024
<issue_start>username_0: The numpy array which I am storing contains an image. The size of the image is 23.4 KB but the size of the .npy file is 4 MB ``` import numpy as np from keras.preprocessing.image import load_img,img_to_array image=load_img('image.JPEG') array=img_to_array(image) np.save('sample.npy',array) `...
2018/03/12
400
1,437
<issue_start>username_0: I am using HTMLEditorExtender ajax tool in my website. My data save into database in html format and I retrieve it in my project. Everything is working fine. but... When I am trying to do the same thing using jquery ajax I can't get HTML code of my content (with html tags). I am using this l...
2018/03/12
975
3,320
<issue_start>username_0: Is it possible to have **Cscope** return search results for multiple C symbols at once ? I have a huge project with a bunch of `header(.h)` and `.c` files and I want to find all instances of `foo()` and `bar()`( maybe more ) in my project at once. Currently, when I do a `cscope -d`, I am able...
2018/03/12
103
408
<issue_start>username_0: I develop the intellij plugin, but some backgroud color in Windows Theme and Darcula Theme show very different. How to get the intellij theme in plugin code?<issue_comment>username_1: `UIUtil.isUnderDarcula()` does what you need. Upvotes: 3 [selected_answer]<issue_comment>username_2: You can a...
2018/03/12
227
733
<issue_start>username_0: in c language we know there is `(_Bool)` type which is 1 byte. also it's possible to create own boolean type using this structure ``` typedef struct { char value : 1; } boolean_t; ``` and call it like this ``` boolean_t var1; var1.value = 0; ``` but i want to not use (`.value`) and just d...
2018/03/12
762
2,909
<issue_start>username_0: How can I map `List`: ``` public class ProductCategory { public int Id { get; set; } public string Title { get; set; } public int SortOrder { get; set; } public int? ParentId { get; set; } } ``` ... and this viewmodel (The entity class property `Title` should not map to the v...
2018/03/12
340
1,296
<issue_start>username_0: [enter image description here](https://i.stack.imgur.com/RJimt.jpg)I wrote a static website at pages.github.io. Since I did not have a server, I couldn’t realise data interaction, for example as with regard to users’ messages. Therefore, I was wondering if it were possible to use JavaScript to ...
2018/03/12
416
1,481
<issue_start>username_0: When I make a query like this: ``` SELECT payment.customer_id, COUNT(payment.customer_id), SUM(payment.amount) FROM payment GROUP BY customer_id ORDER BY SUM(payment.amount) DESC LIMIT 10 ``` it works perfectly, but when i try to join a field from another table, it fails: ``` SELECT paymen...
2018/03/12
386
1,253
<issue_start>username_0: I am new in ionic and wants to learn it. my question is How to change nav bar color for all the pages in ionic 3. I have been using following code ``` Hello Ionic ``` Is there any way to change nav bar color for all the pages instead of manually doing<issue_comment>username_1: Add follow...
2018/03/12
247
811
<issue_start>username_0: I simply need a mysql/sql query to get the names of all tables of a specific database. Is there a way?<issue_comment>username_1: Found by myself: ``` SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='your db name' ``` Upvotes: 0 <issue_comment>username_2: Query ...
2018/03/12
625
2,299
<issue_start>username_0: I have a `vector v{"First sentence.", "Second sentence.", "Third sentence."};` that I want to concatenate while inserting an end-line delimiter. I don't understand the difference between these three iteration methods: ``` string build() { string ret; for (string s: v) { ret ...
2018/03/12
844
2,689
<issue_start>username_0: I want the tasks in the DAG to all finish before the 1st task of the next run gets executed. I have max\_active\_runs = 1, but [this](https://i.stack.imgur.com/sxe54.png) still happens. ``` default_args = { 'depends_on_past': True, 'wait_for_downstream': True, 'max_active_runs': 1...
2018/03/12
462
1,838
<issue_start>username_0: I'm using to get web address from the code itself. But the code where I'm trying to generate web url is in outer C# class. ``` string url = HttpContext.Current.Request.Url.Scheme + System.Uri.SchemeDelimiter + HttpContext.Current.Request.Url.Host + (HttpContext.Current....
2018/03/12
388
1,434
<issue_start>username_0: ``` public function login() { $login = EmployeeLogin::whereEmail(request()->email_id)->first(); if ($login) { if($login->active == 1){ if (Auth::guard('employer')->attempt(['email' => request()->email_id, 'password' => request()->pwd])) { Auth::guard('employer')->user(); ...
2018/03/12
536
1,913
<issue_start>username_0: Is there any method to hide a button text behind button image like **bring to front** or **send to back** option? I only need to hide or show button image only as I have a code that coverts the original text `CloseButton.text = "&Close";` to `CloseButton.Text = "&Cancel";` to perform another c...
2018/03/12
1,116
3,597
<issue_start>username_0: **sql server 2012** i have created a SP to create view dynamically with Parameter i supplied. below is the code i am not sure why i am getting the below error. **Msg 102, Level 15, State 1, Procedure uspCreateView, Line 10 Incorrect syntax near '@VIEWNM'.** Code: ``` CREATE PROCEDURE uspC...
2018/03/12
791
2,812
<issue_start>username_0: I'm using the "Hotel Datepicker" script from here: <http://lopezb.com/hoteldatepicker/> I'm trying to display the datepicker inline (e.g. displaying all the time and not closing when dates are selected). I've added a function which is called when the datepicker closes to click on the input fi...
2018/03/12
576
2,055
<issue_start>username_0: I am working on Angular 5 application along with Kendo UI. I need Kendo Slider which works fine with hard-coded properties but in my case I need to assign from object as data is coming dynamically. what I found possibly conflicting is square bracket, as Kendo slider I strongly believe expectin...
2018/03/12
373
1,157
<issue_start>username_0: I have a problem with counting elements in HTML below: ``` Zone13 ------ ![](data:image/jpeg;base64) ![](data:image/jpeg;base64) Zone21 ------ ![](data:image/jpeg;base64) ``` As you can see there are two classes named "sort-title sort-zone". I need to check in my test: 1. Is class...
2018/03/12
2,198
7,029
<issue_start>username_0: I have searched in the official Wildfly 10 documentation and searched the net but strangely I didn't find the solution to my problem. When I run the CLI and try to configure an XA-Datasource I can't configure the property **xa-datasource-property**. These are the commands I have tried: ``` /s...
2018/03/12
1,891
5,755
<issue_start>username_0: Trying to implement a LineChart in my expense manager app. Here are my entries from the debug window: ``` entries = {ArrayList@5297} size = 5 0 = {Entry@5367} "Entry, x: 11.0 y: 0.0" 1 = {Entry@5368} "Entry, x: 12.0 y: -5.0" 2 = {Entry@5369} "Entry, x: 1.0 y: 0.0" 3 = {Entry@5370} "Entry, x...
2018/03/12
1,292
4,150
<issue_start>username_0: I was trying to execute below command and its not working. ``` REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ALLOW_DOWNLOAD_TO_DESTINATION_PATH ``` It gives me error `Invalid syntax` But ``` REG ADD HKEY_LOCAL_MACHINE\Software\Microsoft\mykey ...
2018/03/12
1,376
6,108
<issue_start>username_0: I need to find attendee list for a meeting using Google Calendar API. To extract attendee email, I have below code: ``` eventsResult = service.events().list(calendarId='primary',timeMin=tmin,timeMax=tmax,singleEvents=True,orderBy='startTime').execute() events = eventsResult.get('items', []...
2018/03/12
1,175
5,059
<issue_start>username_0: Consider an object which produces data that is consumed by another object to generate a result. The process is encapsulated in a class and the intermediate data is not relevant. In the example below, the process takes place on construction and there is no issue. The type parameter on the const...
2018/03/12
555
1,714
<issue_start>username_0: Hi have used filter with ng-repeat to search records like ``` | ``` filter is only worked when whole text match like I have records user1,user,test1,test2 if i type u or t only it is not showing any result and if I type user1 then it matched record please suggest me any idea thanks in adva...
2018/03/12
589
1,878
<issue_start>username_0: I want to use adb commands with use of java. If any one knows how to use then please help me. My required functionality is as below. 1) I want to install one apk using adb command which is i pasted in external storage of SD card. 2) In demo there is one button and on click of that button app ...
2018/03/12
394
1,178
<issue_start>username_0: im trying this ``` str = "@a@b"; str2 = str.replace(/@/g,'-[' + str + ']'); ``` output should be -[a]-[b]<issue_comment>username_1: You could search for `@` and not `@` as following, then replace the group. ``` /@([^@]+)/g @ look for this character literately ( ) group, ...
2018/03/12
495
1,566
<issue_start>username_0: Is there a limit on the number of items inside the "or" condition in the regular expression? For example, in this example there are 2 elements: ``` (my|your) ``` In this example there are 3 elements: ``` (my|your|their) ``` Is there a maximum number of elements in the condition? 100? 100...
2018/03/12
420
1,356
<issue_start>username_0: I can't figure out why 'onClick' function trigged twice. My html code: ``` Cancel Submit ``` Script is here: ``` $("#btnSubmit").on("click",function () { debugger; alert("Click"); CreateOfficeTypeManager.SaveOfficeType(); }); ```<issue_co...
2018/03/12
848
2,851
<issue_start>username_0: I'm having a terrible MYSQL mental block and for the life of me, can't figure out this simple query. When I see the right answer, I'm sure I'll end-up kicking myself... One of those days. **\* FINGERS CROSSED \*** :) Ok, so don't laugh. `Table Name: urls` ``` id hostname_id url ...
2018/03/12
1,440
5,538
<issue_start>username_0: I have two models, one mongo model extending Jenssegers\Model and other sql model extending Illuminate\Model. This sql model doesn't have connection name defined as we're having multiple database connectivity have same table in each database. **Mongo Model Comment.php** ``` php namespace App\...
2018/03/12
188
816
<issue_start>username_0: I want to immediately change the background image of a PictureBox control when the user hovers his mouse over it. I've implemented the change via the MouseHover and MouseLeave events. However, it takes several seconds for the event to fire, which makes my application look slow and sluggish. ...
2018/03/12
2,037
8,538
<issue_start>username_0: I want to dynamically generate the assembly, which can have functions with different structures. To be more accurate, these functions can be recursive, they can call other functions within the same assembly etc. I found the `System.Reflection` module which theoretically provides tools to do thi...
2018/03/12
831
2,489
<issue_start>username_0: I'm not sure whether it happens to only me or it's a bug of Firefox on Arch Linux. If I open the follow link with Firefox on Arch Linux, it alerts `32`. It alerts `18` when opened with Firefox on Windows 10. <https://jsfiddle.net/jd6088wa/28/> Browser and OS versions: `Firefox Quantum 58.0....
2018/03/12
553
1,933
<issue_start>username_0: I want to get the location of the page I'm on in order to set up conditional rendering. Originally, I had something set up like this ``` const currentPath = window.location.pathname; ... {currentPath} ============= ``` And that would echo out the path as `http://example.com/page`. But sinc...
2018/03/12
538
1,805
<issue_start>username_0: I am new to AWS. As I understand, S3 transfer acceleration uses the Cloudfront edges for fastest uploading, but I can't find the proper documentation for PHP API, for uploading object into transfer acceleration enabled bucket. My code : ``` use Aws\S3\S3Client; $S3_Client = new S3Client([ '...
2018/03/12
1,824
5,578
<issue_start>username_0: I am having a new problem with **SQL JOINS**. Here is my scenario. I have a report, where I need to show sales performance for a specific customer. The report shows the sales performance per month. Please look at my result set: [![AFP035](https://i.stack.imgur.com/ruybP.png)](https://i.sta...
2018/03/12
211
864
<issue_start>username_0: I have two files: `register.php` and `register1.php`. I also have one table: `users_details`. The user will enter data first into the `register.php` file and then it will redirect the page to `regsiter1.php`. Now, here, I want that both the files data should be stored in one table and in same...
2018/03/12
283
1,013
<issue_start>username_0: A beginner unix shell user question: When I call a sh file in terminal: Why do I need to prefix it with self folder and slash: **./** ? What are the alternatives?<issue_comment>username_1: There's a very good description of the difference between running `sh script.sh` and just `./script.sh`...
2018/03/12
377
1,106
<issue_start>username_0: I have the following structure: ``` /foo /foo/pages /foo/pages/page1 file100.txt file101.txt /foo/pages/page1/item1 file199.txt /foo/pages/page2 filefoo202.txt bar3.txt /foo/pages/page3 /foo/bar ``` I want to get every fil...
2018/03/12
630
2,246
<issue_start>username_0: Here is the function prototype in my program: `void FindRepStr(char str[], const char findStr[], const char replaceStr[]);` It find the `findStr[]` in `str[]` and replace it with `replaceStr[]`. Here is my code: ``` void FindRepStr(char str[], const char findStr[], const char replaceStr[]...
2018/03/12
756
2,677
<issue_start>username_0: I have a bit of an challenge before me. Currently I'm trying to accomplish this process: * Feed a decimal, or any number really, into a binary converter * Now that we possess a binary string, we must measure the length of the string. (as in, numstr="10001010" - I want the return to count the ...
2018/03/12
588
1,825
<issue_start>username_0: I have the below if condition. it seems it is not calculating as per my requirement. ``` if(Alert=="0" && Cci<-80 && (RSI=="Sell" || ADX=="Sell") &&(status1=="Strong Sell" || status1=="Sell") ) { } ``` Expected below conditions. > > Alert="0" > > > and > > cci<-80 > > > and > ...
2018/03/12
463
1,580
<issue_start>username_0: Example: `'1234567'` String has : 7 consecutive digits and these are `1234567` Example : `'123456'` String has : 6 consecutive digits and these are `123456` I need both the 1. count 2. the digits sequence as output also Please help, regex or custom function I had used inefficient brute forc...
2018/03/12
267
1,031
<issue_start>username_0: How to convert EDI format file to CSV file using spark or scala?<issue_comment>username_1: Do you mean Cci less than or equal to 80? If so it should be like this: `Cci <= 80` Upvotes: 0 <issue_comment>username_2: There's a couple of comments to make: 1. Use `===` instead of `==`, otherwise ty...
2018/03/12
949
2,030
<issue_start>username_0: Imaging that I have the following matrix `A(5x20)`: ``` A = [6.4475 3.3487 Inf 6.4940 6.5480 3.4857 Inf 6.5030 6.5035 3.5732 Inf 6.4951 6.6372 3.3639 Inf 6.5371 Inf 4.4444 Inf Inf; 6.6761 2.3999 Inf 6.8620 6.5776 2.1963 Inf 6.8535 6.8733 3.1184 Inf 6.8688 6.5918 2.2900 Inf 6.8656 ...
2018/03/12
759
2,778
<issue_start>username_0: I have a selenium test in Java and I am doing some assertions like that: ``` assertFalse(isElementPresent(By.xpath("//td[2]/div"))); private boolean isElementPresent(By by) { try { driver.findElement(by); return true; } catch (NoSuchElementException e) { return false; } ``` It´s the standa...
2018/03/12
871
3,081
<issue_start>username_0: I want to select a single column given as the union of the content in cols 1, 2, 3, 4 of the same table. Since `SUBQUERY` and `CONDITION` are complicated I have the feeling that this is the wrong way to go for it: ``` SELECT COL1 FROM SUBQUERY WHERE CONDITION UNION SELECT COL2 FROM SUBQUERY ...
2018/03/12
918
3,227
<issue_start>username_0: There is a different behaviour between Internet Explorer and Google Chrome for when using async callbacks. For this function I load data from the server with a for-loop for the year 2017 until the current year. The code I have is: ``` for (var y = 2017; y <= crrntYr; y++) { ...
2018/03/12
615
2,243
<issue_start>username_0: I have a simple Spring Boot application in version 1.5.7 and I am trying to migrate it to version 2.0.0. I am almost done but there is one last piece missing and that is Thymeleaf. Everything was working fine in the old version but after the migration, Spring Boot stopped resolving any templat...