date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/25
440
1,764
<issue_start>username_0: I want to type something in the textfield and when I click the submit button to dispaly what I typed. For some reason It didn't display what I typed. I have two HTML files. the one file conatin "submited", the other conatins the function. teach.html ``` Document This is my site! ==========...
2018/02/25
447
1,812
<issue_start>username_0: Inside my Index view I have a search bar and a button. I want to get the value from the search bar and call a new method from Home Controller called SearchResults, and pass in the value from the search bar. SearchResults woudl then return a new view with a model that I can display the data retr...
2018/02/25
524
1,808
<issue_start>username_0: I want to convert an array to a string in Laravel. I have already searched and implement the `implode()` function to convert this but got this error ``` ErrorException (E_NOTICE) Array to string conversion ``` **Here is my code in controller** ``` $sliderImageDataArray[] =array( ...
2018/02/25
527
1,865
<issue_start>username_0: I use the MetaTrader Terminal 4, the Strategy Tester, to optimize an Expert Advisor. After a strategy run, I am looking at the individual trades that were executed in that backtest. I jump from the `Results` sub-window at the bottom of the screen to the referring candle stick in the main chart...
2018/02/25
2,856
6,333
<issue_start>username_0: I'm trying to test out the data with 1000 examples while I got 5500 examples for the training data. Although I changed the Placeholder para for (1000,784) for the testing part from (5500, 784) used for the training part, I still got the error ValueError: Cannot feed value of shape (1000, 784) f...
2018/02/25
1,168
3,476
<issue_start>username_0: I am getting all these warnings from Tika when I try to use it: > > Feb 24, 2018 9:24:35 PM > org.apache.tika.config.InitializableProblemHandler$3 > handleInitializableProblem WARNING: JBIG2ImageReader not loaded. jbig2 > files will be ignored See > <https://pdfbox.apache.org/2.0/dependen...
2018/02/25
704
2,471
<issue_start>username_0: Noted that the old method to convert a hex string to a binary string has been removed from swift i.e. : String(hex, radix: 2) -> binary string What is an alternative in swift 4?<issue_comment>username_1: You need first to convert your hexaString to an Array of Bytes `[UInt8]`. Then you can use...
2018/02/25
1,277
4,254
<issue_start>username_0: I am trying format for English characters and Chinese characters left and right alignment Because Chinese characters are different width i cant align with string.format Example: ``` String.Format("{0,-40}{1,8}", "some string", $20.00); String.Format("{0,-40}{1,8}", "些字符串些字符串些字符串些字符串", $20.00...
2018/02/25
571
2,238
<issue_start>username_0: I am trying to finish this middleware in larval that checks to make sure is subscribed to a subscription plan. If the user is not it redirects to the payment page. ``` public function handle($request, Closure $next) { if(Auth::check()){ if (Auth::user()->subscribed('main')) { ...
2018/02/25
1,001
2,857
<issue_start>username_0: I am trying to send a command to another terminal. I've learned that I need to use `sh -c` to send the entire command in once. The command itself is to compress a file using [7-Zip](https://en.wikipedia.org/wiki/7-Zip) (command-line executable `7z`). Here is an example: `7z a Aa.zip Bb.txt` S...
2018/02/25
3,758
12,813
<issue_start>username_0: I have this neural network that I've trained seen bellow, it works, or at least appears to work, but the problem is with the training. I'm trying to train it to act as an OR gate, but it never seems to get there, the output tends to looks like this: ``` prior to training: [[0.50181624] [0.5...
2018/02/25
1,732
6,988
<issue_start>username_0: I'm new to using VBA to write macros within MS Word. I've worked out how to select the cell within the table, but it doesn't appear I can use the paragraph object with it... or, more likely, I'm doing it wrong. Essentially, what I'm trying to do, it look for phrase "as follows:" within all th...
2018/02/25
467
1,700
<issue_start>username_0: I'm trying to incorporate parallax scrolling to my background where it moves at a slower rate relative to the web page content. I've been following tutorials but nothing is working I am stuck. Here is the jsfiddle - <https://jsfiddle.net/batLeeyw/24/> and here is the javascript. Sorry I have a...
2018/02/25
1,588
5,835
<issue_start>username_0: How to detect one button in `UITableviewCell`, I have 10 `UIButton` in `UITableViewCell`, next when I click on `UIButton` then it detects multiple buttons, (as like odd number list). my `UITableView` is with paging enabled. Here is my all code. **TableView** ``` class HomeViewController: UIVi...
2018/02/25
500
1,677
<issue_start>username_0: I have a table that contains 10 million rows, like this: [![enter image description here](https://i.stack.imgur.com/KR5Cc.png)](https://i.stack.imgur.com/KR5Cc.png) I want to group by [CoinNameId] (this column is a foreign key) and get max value of [CreatedAt] for each [CoinNameId] group, but...
2018/02/25
902
2,726
<issue_start>username_0: I was given this question by my school teacher. I was supposed to add in one statement in the C code and achieve this desired output. I have tried but i am stuck. I think the main idea of this question is to establish the relationship between the int x[] and the y[] string as i increases from...
2018/02/25
1,569
4,092
<issue_start>username_0: I've been working with the WRDS/CRSP dataset (a stock price database maintained by UPenn for academic research). I've been downloading the data in Python and inserting it into my local MySQL database. The data looks like this and has primary key on (quote\_date, security\_id): ``` quote_date ...
2018/02/25
509
1,612
<issue_start>username_0: My program was originally set up to pass an array through a function. I have since changed it over to an unordered\_map. How can I pass an unordered\_map through a function as opposed to something like: ``` int function(int array[]) ```<issue_comment>username_1: If you're using MySQL 8, you c...
2018/02/25
951
3,111
<issue_start>username_0: I want to collect some buggy files. So, I found data-set that present which file has a bug. In data set, document said that Tomcat,6.0.389418,org.apache.jasper.compiler.Compiler file has a bug In order to get bug file, i visit apache svn repository. And I found archive tomcat version 6\_0\_3...
2018/02/25
884
2,885
<issue_start>username_0: So I'm trying to figure out how to print numbers that have more even digits than odd digits. This is my code: ``` inVal=(input("Please enter a positive integer: ")) evencounter=0 oddcounter=0 for i in range(1,int(inVal)): for j in range (1,len(str(i))): if(int(str(i)[j])%2==0): ...
2018/02/25
606
2,799
<issue_start>username_0: In an attempt to make my code friendly for unit testing, it seems wise to utilize depenency injection. This requires that any dependent class must implement an interface with the exact same set of methods. I also see advice saying that I shouldn't have an interface for every class, but I don'...
2018/02/25
555
1,657
<issue_start>username_0: I have to code a simple program for my computer science class and my teacher wants me to print out the twelve days of Christmas song using a loop and a switch, i am trying to run this code but the switch is getting skipped over completely. If you can help me out that would be great, thanks! ``...
2018/02/25
406
1,322
<issue_start>username_0: I had a simple sbt project and I ran `sbt package` to generate a jar file. However, it seems my java runtime cannot find the default scala library. May I know how I can fix this issue ? FYI, if I run with `scala client_2.12-0.1.0-SNAPSHOT.jar` everything works fine. Thanks! [![enter image de...
2018/02/25
2,131
7,761
<issue_start>username_0: While going through new C# 7.0 features, I stuck up with *discard* feature. It says: > > Discards are local variables which you can assign but cannot read > from. i.e. they are “write-only” local variables. > > > and, then, an example follows: ``` if (bool.TryParse("TRUE", out bool _)) ...
2018/02/25
340
1,379
<issue_start>username_0: Edited: I am new to react, and so far couldn't find the answer to this question. I have a component, which renders some HTML. ``` import React, { Component } from 'react' class Box extends Component { render() { return ( <NAME> ) } } export default Box ``` On o...
2018/02/25
1,011
3,444
<issue_start>username_0: Our main goal is to move some resources to a different terraform state fle. I am trying to import a policy attachment of a resource ,however seems like it does not support importing of policy attachment . i am getting an error. What is the other alternative if it does not support? i am tryin...
2018/02/25
339
1,305
<issue_start>username_0: I've created a GA tag in GTM. It has "Enable overriding" checked. The Field Name is the Page Path built-in variable, and the value is "/register". So the goal is for this tag to send a virtual pageview when triggered to GA with the page path value of "/register". I can see the tag is triggere...
2018/02/25
248
1,017
<issue_start>username_0: I have a simple line of code that instantiate objects but when I run the game the clones don't go to the indicated position and instead stay in the same position has the father object. When I lock at the clones they have a static position I can't move them ``` Instantiate(object, position, obj...
2018/02/25
766
2,944
<issue_start>username_0: I'm a little confused. I have my \_layout.cshtml page below and it has a bunch of bundles containing .css and .js files. When I first load the site it runs through each file in the bundles. Fine, OK, great! But then on each new view, each line of code from every file gets run through again! (ex...
2018/02/25
780
3,185
<issue_start>username_0: I have a simple python unit test like this... project/ calc/ calc.py calc\_test.py calc.py has two functions sum() and diff(), calc\_test.py has two test cases to test those functions, using python inbuilt unittest framework. I'm using Visual Studio code as my editor. If I set the top-le...
2018/02/25
543
2,188
<issue_start>username_0: I want to send json data to the server but I am not able to do it. I have pasted my payload of json data below please check it and help me. In my Json Data payload so many array and object which creates a problem to me send the server. I have checked all the post in google but not able to do it...
2018/02/25
878
2,757
<issue_start>username_0: I am reading lines from an input file and splitting it into words so I can process each word. I want to get characters from each word at specific indexes. This is what I am trying, which does not work properly, anything greater than word[0] is out of index. I do not understand why it wouldn't w...
2018/02/25
419
1,420
<issue_start>username_0: I'm trying to use `if/else` in ejs but whenever I add the `else` part an error shows up. ``` <% if (user) {%> <%=user.twitter.username%> <%}%> <%=else{%> Hi hi <%}%> ``` The error says: `SyntaxError: Unexpected token else in C:\Users\Adetona\Dropbox\meme.africa\views\pages\index.e...
2018/02/25
559
1,911
<issue_start>username_0: ``` INSERT INTO devices3 (`name`, `ip`, `port`, `switch`) VALUES (name, 255.255.255.255, 55555, 12); ``` You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.255.255, 55555, 12)' at line 1. ``` +--------+-...
2018/02/25
404
1,658
<issue_start>username_0: I have wrote firmware for a BLE device, and it is expecting 40 bytes when receiving a packet. My question is: Is it necessary to receive the event "onMtuChanged()" for my android device to send more than 23 bytes? In other words, does this callback ALLOW my device to send more than 23 bytes? ...
2018/02/25
632
2,092
<issue_start>username_0: I am learning python and i wanted to iterate only specified number of time but using an array variable. I searched over the net that we can use range function for it. But I'm not able to iterate using range() here is my simplified code:- ``` array=[1,2,3,4,5] for record in array: pr...
2018/02/25
787
2,282
<issue_start>username_0: I need help to calculate min, max, average using data criteria. The image below shows two columns of data namely time and speed. I want to calculate the average speed for the range from time 0 (cell 2) to cell 14. Then, calculate the average speed from the next 0 (cell 15) to cell 20, and so fo...
2018/02/25
579
1,863
<issue_start>username_0: ``` # include # include int myvariable\_NOT\_caught\_by\_Wall; int main ( int argc, char \*argv[] ) { int myvariable\_caught\_by\_Wall; return 0; } ``` is it normal for gcc when compiling via **gcc some\_program.c -Wall** for no warning to be issued for unused global variables? Is th...
2018/02/25
717
2,442
<issue_start>username_0: It will be helpful to get some ideas on how to write a JUnit test case with the following code. Not sure if this a proper question to ask but since I am starting to learn JUnit and couldn't understand where to start from. Heres the following code where the program asks a user to input names an...
2018/02/25
605
2,122
<issue_start>username_0: I want to put the variables that are filled in question in the where condition. How can I do with Linq? Running query; ``` query = db.Kisi.Where(item => item.KAYITTIPI == registerType) .Where(item => item.ADI.Contains(name)) .Where(item => item.SOYADI.Contains(surname...
2018/02/25
679
1,773
<issue_start>username_0: I have the following script which logins to a router and execute command. how can i accomplist only the output and not show anything else. ``` #!/usr/bin/expect -f set timeout 3000 log_user 0 spawn ssh -o StrictHostKeyChecking=no ananair@172.20.60.187 expect { "*assword:" { send "anismi@123\n"...
2018/02/25
667
2,496
<issue_start>username_0: For example, say I have a struct that represents a person and contains their name and age. I have an array of people, and now I want to find the person in that array that matches the name "<NAME>". Doing some preliminary research has led me to `Array.Find`, but the way the documentation puts it...
2018/02/25
515
1,911
<issue_start>username_0: For this typescript interface: ``` export interface Person { phone?: number; name?: string; } ``` Does this mean that the name property on class instances of the interface can be null or undefined? For example [this post](https://stackoverflow.com/questions/37632760/what-is-the-...
2018/02/25
486
1,655
<issue_start>username_0: I am trying to create an array of names for a search results page Here is the structure of the json: ``` data = { "artists": [ { "artistName": "a" }, { "artistName": "b" }, { "artistName": "c" }, { "artistName": "d" }, { "artistName": "e" } ] } ``` So far this is my...
2018/02/25
4,276
13,974
<issue_start>username_0: As Angular 6 is here, I want to upgrade or move my angular 5 client application to angular 6, but I'm not getting any tutorial or anything which can guide me through. According to me I just need to run a new Angular CLI and then have to move my older source to new project. I read the Angular ...
2018/02/25
288
1,067
<issue_start>username_0: I'm running a simple file just to test methods are working properly in webservices. while running the file with Get method it is working fine but Postmethod is not working . Below is my code ``` php if($_SERVER['REQUEST_METHOD']== "POST"){ $abc=$_POST['name']; echo $abc; } else{ ...
2018/02/25
429
1,440
<issue_start>username_0: I have similar problem with him: Separately comma delimited column into unique column ``` SELECT id, n.digit, name, SUBSTRING_INDEX(SUBSTRING_INDEX(name, ',', n.digit+1), ',', -1) FROM mytable INNER JOIN (SELECT 0 digit UNION ALL SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT...
2018/02/25
972
4,080
<issue_start>username_0: I am starting to work on an **ASP.NET Core 2.0 Web Api**. I added 2 secrets to the secrets.json file and am trying to read them in through the Configuration property in my Startup file. Each time I called I try to get the value from the `Configuration` variable, it returns null. An example of h...
2018/02/25
148
473
<issue_start>username_0: I want to upload an excel file and the data in Excel file should be displayed in my Angular 2 project. Can anyone help me on this?<issue_comment>username_1: Here is a full tutorial to read a .csv file in Angular 2 <http://javabypatel.blogspot.in/2017/07/read-csv-file-in-angular2.html?m=1> Upvot...
2018/02/25
545
1,682
<issue_start>username_0: I am iterating a object and displaying the result on a table. HTML: ``` SeletedId's {{ selectedIds }} | Select | Name | | --- | --- | | | {{pay.Name}} | ``` Vue: ``` new Vue({ el: '#app', created(){}, data: { message: 'Hello Vue.js!', PaymentType: [{ Id: 1, ...
2018/02/25
439
1,449
<issue_start>username_0: How to store the items checked in a checkbox in an array? I tried using a for loop but it didn't work ``` for(i=0;i ```<issue_comment>username_1: I believe this will serve your purpose. ```js function ShowValue(){ var arrayTemp=[]; $('input[type=\"checkbox\"]:checked').each(function(){ ...
2018/02/25
711
2,612
<issue_start>username_0: I write a simple script `publish.py` for publishing articles written in markdown. so i can use: ``` python3 publish.py -a https://MYNAME.herokuapp.com/publish -p article.md -t MYTOKEN ``` to upload my article and save it in my `sqlite database test.db` my route function: ``` @main.route('...
2018/02/25
1,401
5,730
<issue_start>username_0: I've been playing **Core Data** for the past several days. I'm fetching data with `NSFetchedResultsController`. My entity has such attributes as age (Int), firstName (String), lastName (String), uuid (String). I am able to insert a new record to the database. I am able to delete a record. I am ...
2018/02/25
2,357
8,509
<issue_start>username_0: I am using JPA, Eclipselink and Servlet in the Netbeans IDE and I have three java files: 1.BankAccount.java: This is my entity file and contains the definition of my bankaccount (this basically maps to the tbl\_account table in the database) ``` package banking.entity; import java.io.Serializ...
2018/02/25
944
3,357
<issue_start>username_0: I have an element which has an specific dimensions *(I mean, constant width and height)*. I want to change the font size of the text in it to avoid something comes out of the container. ```css div { border: 1px solid; height: 60px; width: 200px; margin: 30px; } ``` ```html whate...
2018/02/25
376
1,210
<issue_start>username_0: I am doing some very basic code within JavaScipt. I am going through If statements. whenever I enter a number over 100 (either for c or d) I don't get an alert that "You number is over one hundred". What is it that I am missing??? Feel like it's a simple solution I'm just not seeing it. ``` va...
2018/02/25
414
1,712
<issue_start>username_0: Trying to hide every element that has a class of 'shopping-item\_\_checked'. Keeps getting thrown error that $(...).closest(...).find(...).hasClass(...).hide is not a function. Thanks for the help in advanced, ``` function handleCheckBox() { $('input[type=checkbox]').on('change', function...
2018/02/25
860
3,047
<issue_start>username_0: A simple program about storing rivers and their respective locations in a dictionary. I was wondering how I would go about looping through a dictionary key and looking if the dictionary key (or value) contains a certain word, if the word is present in the key, remove it. EX: `rivers_dict = {'m...
2018/02/25
748
2,656
<issue_start>username_0: I have JavaScript function to return list of google analytics account names for a given email address. I want to get view Id by giving account name or account Id.Is there any API or way to do this?<issue_comment>username_1: Use the enumerate function that will count all the words like looping i...
2018/02/25
1,071
4,064
<issue_start>username_0: Today, multiple developers on my team started seeing this error when they attempt to run any Gradle task. ``` * Where: Build file 'C:\dev\src\my_app_name\app\build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.applic...
2018/02/25
656
2,242
<issue_start>username_0: ``` In sdk/build-tools folder i have 22.0.1 24.0.0 24.0.1 25.0.1 26.0.0 ``` I have imported a project which has gradle:2.2.2 Error is Failed to build tools revision 23.0.3 **How can i resolve this issue without installing build tools 23.0.3**<issue_comment>username_1: The problem turned out t...
2018/02/25
670
2,516
<issue_start>username_0: when the maven build is triggered, i see nekohtml and log4j-slf4j libraries being downloaded. but when i check my pom i don't see any where these jars mentioned. i want to change version of these jars. are these being downloaded because of some other jars..? some time when i clear my local repo...
2018/02/25
747
2,264
<issue_start>username_0: I want to break selection (B3, B4..etc) into new row.. Please help me. for a example= If I select B3 cell, I wanna add more 3 Rows and 2nd to 4th line should be move down. Always not same line break in each cell. ![Please see attached picture](https://i.stack.imgur.com/IDbkH.jpg)<issue_commen...
2018/02/25
640
2,260
<issue_start>username_0: I have configued a pipeline script in jenkins . In one stage , I need to run a perl script with arguments ,like : ``` pipeline{ agent any stages { stage('First Stage') { steps { dir ("path_to_script") sh "#!/usr/bi...
2018/02/25
2,617
7,412
<issue_start>username_0: I know the version issues of mat files which correspond to different loading modules in python, namely `scipy.io` and `h5py`. I also searched a lot of similar problems like [scipy.io.loadmat nested structures (i.e. dictionaries)](https://stackoverflow.com/questions/7008608/scipy-io-loadmat-nest...
2018/02/25
611
2,029
<issue_start>username_0: I want to look only at distinct files which have a certain word in their text. ``` current_directory$ git grep 'word' ``` shows each line of the file which has a matching word. So I tried this ``` current_directory$ git grep 'word' -- files-with-matches current_directory$ git grep 'word' -...
2018/02/25
3,102
8,467
<issue_start>username_0: I want to remove the new line character in CSV file field's data. The same question is asked by multiple people in SO/other places. However the provided solutions are in scripting. I'm looking for a solution in programming languages like PYTHON or in Spark(not only these two) as I have pretty b...
2018/02/25
747
2,238
<issue_start>username_0: I followed the kubernetes-engine tutorial, used local gloud in terminal. Looks everything is working, but I can't reach exposed external-ip <http://192.168.127.12/> in my browser, as the tutorial said. Thank you! $ kubectl get service ``` NAME TYPE CLUSTER-IP EXTERNAL-I...
2018/02/25
1,357
4,240
<issue_start>username_0: So im making a compass in node-red, it should have course in degrees (int) as input and string(course) as output: [![enter image description here](https://i.stack.imgur.com/2NwDQ.jpg)](https://i.stack.imgur.com/2NwDQ.jpg) So i need function that takes in integer and gives me heading in string....
2018/02/25
955
3,765
<issue_start>username_0: I am using Threading module in python. How to know how many max threads I can have on my system?<issue_comment>username_1: > > I am using Threading module in python. How to know how many max > threads I can have on my system? > > > There doesn't seem to be a hard-coded or configurable MAX ...
2018/02/25
804
2,960
<issue_start>username_0: I am developing a Unity 2D game where a user can select a language on the home screen and then the subsequent game should be played in the selected language itself. The language specific changes include audio files, sprites and text on Canvas UI elements. How can I approach this problem?<issue_...
2018/02/25
633
1,919
<issue_start>username_0: ``` body{ max-width:1366px; margin:0 auto; } ``` My website is `1366px` max width. My phone (two years old) is 1920 x 1080. Phones of my friends are simmilar - 960px width and higher. I cannot find any phone on my environment with smaller resolution. On the other side, Google has ...
2018/02/25
754
2,556
<issue_start>username_0: currently, i am working on an assignment for web development course. these are the instructions: First Line and Drop Cap Styles Jakob wants the first line from the article to be displayed in small capital letters. Go to the First Line and Drop Cap Styles section and create a style rule for t...
2018/02/25
1,917
5,383
<issue_start>username_0: I am facing an issue with counting number of occurrences by date, suppose I have an excel file where the data is as follows: ``` 1/1/2001 23 1/1/2001 29 1/1/2001 24 3/1/2001 22 3/1/2001 23 ``` My desired output is: ``` 1/1/2001 3 2/1/2001 0 3/1/2001 2 ``` Though `2/1/2001` does't appear i...
2018/02/25
1,471
4,918
<issue_start>username_0: I am trying to run NodeJS behind Apache and so far I am stuck with Socket.io issue. I have no issue accessing the application directly, but whenever I accessed through my domain, I get this error thrown from socket.io: ``` Firefox can’t establish a connection to the server at wss://example.co...
2018/02/25
1,059
4,499
<issue_start>username_0: The following link says the port can be overridden by command-line argument `dotnet run --urls "http://*:8080"`. <https://learn.microsoft.com/en-us/aspnet/core/fundamentals/hosting?tabs=aspnetcore2x#overriding-configuration> The following is my `Program` class of my Asp.Net core app. However...
2018/02/25
1,177
4,364
<issue_start>username_0: I have been trying to create a test program that just displays a bitmap image on the screen for a while now. Ideally, the image would be translucent (have an alpha channel) and "click throughable." However, I have not found any way to do this. The application that I have for this is a keyboard...
2018/02/25
1,147
3,578
<issue_start>username_0: I am new to python. And I want to install some modules, but it kept telling me the wheel is not supported. Could anyone help me? Thank you. Details: ``` python ver. 3.6.4 x64 Pillow-5.0.0-cp36-cp36m-win_amd64.whl ``` Here is what I got when I tried to install the module via `pip`. ``` C:\P...
2018/02/25
886
3,796
<issue_start>username_0: I created an empty activity in my Android project, and added one TextView and one Button to it, like so: ``` xml version="1.0" encoding="utf-8"? ``` My *MainActivity.java* file is: ``` public class MainActivity extends AppCompatActivity implements View.OnClickListener { @Override p...
2018/02/25
379
1,518
<issue_start>username_0: What are some good simple projects for practicing PHP and mysql work?? Also implementing Ajax?? I am fairly new to PHP and mysql, and would like to gain more experience, I also enjoy using Ajax and xml<issue_comment>username_1: Don't re-initialize your views in onClick method i.e., remove these...
2018/02/25
199
797
<issue_start>username_0: I am new to TypeScript. Currently I am trying to understand some code related to testing and I came across this code, ``` instance.nav.setRoot = ((() => true)); ``` What is the meaning of the outermost parentheses? What is the result of this assignment?<issue_comment>username_1: The a type ...
2018/02/25
401
1,624
<issue_start>username_0: I am developing an iOS app. (iOS 11.2) I am developing audio recording and moving to another view when I press STOP. But the following function is not working. (audioRecorderDidFinishRecording) I tried Google search, but I am wandering a lot in short English skills. Please give a lot of advice...
2018/02/25
729
1,962
<issue_start>username_0: I'm about to throw R out of the window. R is lovely, but sometimes a little problem takes hours to get solved. Got this df: ``` Product <- c("Basket", "Basket", "Basket", "Apple", "Apple", "Apple", "Corn", "Corn", "Corn", "Basket") Place <- c("America", "Europe", "Africa", "America", "Europe"...
2018/02/25
518
1,945
<issue_start>username_0: Can anyone tell what is the way of making pure JS anology of please: ``` window.addEventListener('scroll', _.throttle(callback, 500, { leading: true, trailing: false})); ```<issue_comment>username_1: Here is the source : `https://github.com/lodash/lodash/blob/master/throttle.js` ``` function...
2018/02/25
646
2,369
<issue_start>username_0: I am facing a strange error with laravel under ubuntu using PostgreSql. Its NOT a PDOException. The database migration is successful so all driver are set and PDO connection is also established. But why this error? Didn't find much about it in google. I am attaching the screenshot. This is NO...
2018/02/25
817
2,966
<issue_start>username_0: **Tables in SQL Query** 1. Likes(cname, pizza) 2. Customers(cname, area) 3. Restaurants(rname, area) 4. Sells (rname, pizza, price) Refer to: sqlfiddle.com/#!9/5be81e/1 (Consist of code and database schema) **Expected Results**: A list of restaurants that fulfill the below conditions **Cond...
2018/02/25
1,182
4,505
<issue_start>username_0: I'm using React with Redux Saga. When I try to execute a Saga Effect in my component with this.props.dispatch({type: CreateActionType.CREATE\_ASYNC}); nothing happens, it is not executed. And when I console.log this.props.data in index.js, it's null Please let me know if missing necessary inf...
2018/02/25
893
3,337
<issue_start>username_0: I have added custom cities to Woocommerce checkout and each city represents a rate. However, I would like to have a dropdown of cities in the shipping calculator as I have done with the checkout page. The city field in the shipping calculator is a text field. Currently, I have been only able t...
2018/02/25
854
2,892
<issue_start>username_0: The following plsql code is for finding a prime number. Whenever I run this code, I am getting following message: > > ORA-24344: success with compilation error\*\* > > > ``` create or replace function pf (x in number) return varchar2(25) as f varchar2(25); begin for i in 2..r...
2018/02/25
755
2,760
<issue_start>username_0: I'm sorry if this has been posted before/similarly, I wasn't sure how to structure my question to find proper results. Essentially, I have 2 tables. `Customers` and `Orders`. I'm trying to pull the customer name from the Customers table, `customerName`, and the amount of orders each customer h...
2018/02/25
354
1,053
<issue_start>username_0: I have an array of values ``` [{"date":"2018-02-25 06:49:00.006","minute":"0","hour":"0"} {"date":"2018-02-28 06:49:00.000","minute":"0","hour":"0"} {"date":"2018-02-27 06:49:00.000","minute":"0","hour":"0"}] ``` When i'm trying to delete the element using the array key using the splice met...
2018/02/25
275
974
<issue_start>username_0: I have added react js in django using webpack loader ``` WEBPACK_LOADER = { 'DEFAULT': { 'BUNDLE_DIR_NAME': 'bundles4/', 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'), } } ``` First time all things are OK. But when I change any code in react then don't c...
2018/02/25
575
2,189
<issue_start>username_0: Can someone teach me how to test the sample code below? How to I write espresso test for this? Since no view action is required? ``` public class SampleActivity extends AppCompatActivity { @Override public void onCreate(@Nullable Bundle savedInstanceState) { Intent intent = ne...
2018/02/25
625
2,273
<issue_start>username_0: So I have this search, example I have this in my table "Test Building" and I can only search the first part of the name and its case sensitive like I input Test but I cant search if I type Building which is my problem so how do I correct this? here's what I did.. building.blade.php ``` $("...
2018/02/25
1,079
3,693
<issue_start>username_0: I have a list of 185 data frames called `WaFramesNumeric`. Each dataframe has several hundred columns and thousands of rows. I want to edit every data frame, so that it leaves all numeric columns as well as any non-numeric columns that I specify. Using: ``` for(i in seq_along(WaFramesNumeric)...
2018/02/25
3,472
11,527
<issue_start>username_0: Normally, Dim should be done first and then Set should be done in vba code, like the below code. ``` Dim xWs1 As Worksheet Dim xWs2 As Worksheet . . . Dim xWsN As Worksheet Set xWs1 = Worksheets("A") Set xWs2 = Worksheets("B") . . . Set xWsN = Worksheets("NNN") ``` If I need to Dim and Set ...
2018/02/25
655
2,493
<issue_start>username_0: I know that `threading.Lock()` is equal to `threading.Semaphore(1)`. Is also `threading.Lock()` equal to `threading.BoundedSemaphore(1)` ? And newly I saw `threading.BoundedSemaphore()`, what is the difference between them? For example in the following code snippet (applying limitation on thr...
2018/02/25
539
1,861
<issue_start>username_0: I'd like my class to be set to `saved` when its value `$event.target.value` is equal to my **Vuex** state variable `this.$store.state.company.name`. How should I set it ?<issue_comment>username_1: Check out [Class and Style Bindings](https://v2.vuejs.org/v2/guide/class-and-style.html#Binding-...
2018/02/25
812
2,816
<issue_start>username_0: I am using [angular2-tinymce](https://github.com/Ledzz/angular2-tinymce) library to work with tinymce editor in my Ionic/Angular project. Now i want to strike through the content of the editor based on one some logic. My attempts are below: Attempt-1: ========== I tried to assign a `strikethr...
2018/02/25
799
2,694
<issue_start>username_0: I have a series of clickable div elements and I want to fetch the contents of a text element within based on each div's unique id. ``` "Text I want to fetch" ``` I'm using jquery to detect when the square class is clicked, fetch the id associated with it, and then grap the text class conte...