date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/12
1,903
6,376
<issue_start>username_0: Preface: Extremely new at Python, but thankful for the SO help! Below is a code snippet where I'm trying to execute a SQL query against a MSSQL server table, and post it back to Google Sheets. I am able to retrieve data and headers, and I think I almost have it figured out. However, I'm having...
2018/03/12
1,767
5,407
<issue_start>username_0: I'm having issues displaying contents from an array (which can be between 0 and 3 elements) in html by using jquery. All of this is within the same php file. ``` php ... other code $watchlistArray = array(); while ($row = mysqli_fetch_assoc($result)) { $watchlistArray[] = $row; } ? ``` T...
2018/03/12
1,443
4,751
<issue_start>username_0: I'm trying to select the most recent row (Interest Rate `IntRate`) based on two dates. The most priority date is `EffDate` while the second is `LastMaintenance`. `EffDate` has the date the `IntRate` was put into effect. So the format has something like this, `MM/DD/YYYY`. The `LastMaintenance` ...
2018/03/12
3,607
8,883
<issue_start>username_0: Ok, so I'm a complete amateur in Python. I know this code is not good nor is it correct. But it makes sense to me. I wanted to see what I'm doing wrong. Since I have to find the max product of 4 adjacent numbers in this grid, I just made it go through each number and calculate the 3 adjacent n...
2018/03/12
367
1,383
<issue_start>username_0: I use `pyenv` to manage Python versions in `Mac OSX High Sierra`, works fine. A new version of an important piece of software for me, `QGIS v3`, requires that `Python 3.6` exist on the system but looks for it only in `/Library/Frameworks`, which pyenv doesn't use. So the install fails. My ques...
2018/03/12
1,161
4,016
<issue_start>username_0: I am trying to implement the OMDB API in a development application and in the console I continue to get a 401 Unauthorized error. I have an active `apikey` from the OMDB API website, but I must say the usage is confusing me. What I got in the email looked like this: <http://www.omdbapi.com/?...
2018/03/12
838
2,883
<issue_start>username_0: After studying the docs I cannot find the answer to this. I have a directory structure: ``` views/ __init__py view1.py view2.py ``` In view1 and view2 are my view-functions. What do I have to do to be able to import all view functions from view1.py and view2.py with one single import: ...
2018/03/12
700
2,509
<issue_start>username_0: I'm remediating some deference and redundant null findings and am just curious when someone should use an AND or an OR in a if statement. One of the findings is at this if statement ``` String firstName = db.getString("FIRST_NAME"); if(!((firstName == null) || firstName.equals(""))){ ... } ...
2018/03/12
1,272
4,472
<issue_start>username_0: I created this base class for non-copyable classes: ``` class non_copyable { public: non_copyable(const non_copyable&) = delete; non_copyable& operator=(const non_copyable&) = delete; virtual ~non_copyable() = default; protected: non_copyable() = default; }; ``` Then I cr...
2018/03/12
3,085
11,532
<issue_start>username_0: I am in some software project in which we store our code on GitHub. There's a repo with master and development branch. I was on my laptop without an internet connection and I wanted to start working on another feature, so I did the following: ``` git init git remote add origin git://repo_adres...
2018/03/12
1,194
3,667
<issue_start>username_0: I'm running node on ubuntu and I keep getting the "error opening port: 8080...", the EADDRINUSE error. I understand basically what the problem is, but when I search for search for solutions, I basically get debates about the best way to kill the process. The other thing is people saying that y...
2018/03/12
714
2,506
<issue_start>username_0: In tween.js is there a built in way to know when the tween restarts? Or perhaps a way of knowing which # repeat you're currently on? ```js var foo = {}// some object var bar = {}// some other object var tween = new TWEEN.Tween(foo, fooGroup); tween.to(...
2018/03/12
501
1,873
<issue_start>username_0: Is it possible to select multi cursor select to brackets altogether via single action? e.g. ``` void func1(....){ // Region 1 } void func2(....){ // Region 2 } void func3(....){ // Region 3 } void func4(....){ // Region 4 } ``` in those functions where the cursors are I would like to sel...
2018/03/12
328
1,225
<issue_start>username_0: I want to get a certain value out of a list with report. I try to do it with the following code: ``` to go print get-list [3] end to-report get-list [val] let list-name [1 2 3 4 5 6] report item val list-name end ``` However, I get the following error message "ITEM expected input to ...
2018/03/12
899
3,437
<issue_start>username_0: Here is my code. It fires the first time but then stops. I would like it to repeat. ``` new Handler().postDelayed(new Runnable() { int i = 0; String[] myStrings = { "http://192.168.1.199/jax.html", "http://192.168.1.199/jor.html" }; ...
2018/03/12
1,836
7,843
<issue_start>username_0: I want to isolate the "account" tables from "data" tables for reusing on another application. I trying to use .NET Core 2.0 + Angular template, creating 2 connection strings, but when a create the another AbpDbContext, I couldn't set the connection strings for the context. The example of ...
2018/03/12
538
1,740
<issue_start>username_0: I wrote a simple function to overwrite an array as follows: ``` function overwrite(arr) { let temp = [3, 2, 1]; arr = temp; } let myarray = [1, 2, 3]; overwrite(myarray); console.log(myarray); [ 1, 2, 3 ] ``` The console output still shows the original array. How come? By the way, ...
2018/03/12
688
2,420
<issue_start>username_0: im learning by my own and making a little Selling system... I have a method who (in theory) gives me the amount of "X" item in a DataBase. I tryied in different ways but i cant get it work. ``` public int cantidadVenta (Bebidas vo){ int cantidadVenta = vo.getCantidadCarrito(); DBCon c...
2018/03/12
989
3,984
<issue_start>username_0: I've created a database schema very similar to the documentation on time series data [here](https://www.mongodb.com/blog/post/schema-design-for-time-series-data-in-mongodb). I ended up with the following documents: ``` { "_id" : "unique_name_1", "data" : { "2017" : { ...
2018/03/12
484
1,930
<issue_start>username_0: i have a modal with input, i digit some emails and add to a list, later i want to pass this list of emails to my function that send emails. ``` var listEmails = []; document.getElementById("addEmail").onclick = function () { var text = document.getElementById("recipient-em...
2018/03/12
563
1,535
<issue_start>username_0: For example I have a vector `'H2DH2DH'`, is there a way to count the number of `'H'` scalars that appear?<issue_comment>username_1: I assume you mean you have the character vector `'H2DH2DH'` and want to count how many scalar `'H'` characters are in there. `'H'='H2DH2DH` will give you a Boolea...
2018/03/12
698
2,333
<issue_start>username_0: I have this statement in an Oracle stored procedure ``` select regexp_substr('hello,world', '[^(,|;|\s|&)]+', 1, level) from dual connect by regexp_substr('hello,world', '[^(,|;|\s|&)]+', 1, level) is not null; ``` However, the compiler complains that I need a "into" clause. I tried (and kne...
2018/03/12
1,041
3,441
<issue_start>username_0: Is there anyways I can stop from having to stay Convert twice? ``` allObjects.Where(x => Convert.ToDateTime(x.MyDate).DayOfWeek != DayOfWeek.Saturday && Convert.ToDateTime(x.MyDate).DayOfWeek != DayOfWeek.Sunday).ToList() ``` Assume I can't change the type of "MyDate" to datetime to sto...
2018/03/12
786
2,382
<issue_start>username_0: I'm trying to write a function that essentially acts like a dictionary in R. The mapping I'd like is: 'one' -> '1', 'two' -> '2', 'three' -> '3', 'four' -> '4' and the function combines the results in a string (I can do this using `paste()`). So, when the function is given the input `x <- c(...
2018/03/12
2,614
9,339
<issue_start>username_0: If I have a list: ``` list_1 = ["apples", "apricots", "oranges"] ``` and I append an new item to the list : "berries" ``` list_1 = ["apples", "apricots", "oranges", "berries"] ``` Under-the-hood (so to speak), I thought I remember reading that Python creates another list (list\_2) and poi...
2018/03/12
645
1,762
<issue_start>username_0: Have a program to get a date count down. I don't want to print the milliseconds, please help here is my program in python: ``` import time import datetime while (datetime.datetime.now() != datetime.datetime (2018,5,5,19,30)): print (datetime.datetime (2018,5,5,19,30) - datetime.datetime.no...
2018/03/12
1,130
3,702
<issue_start>username_0: i found a error > > System.FormatException: 'Input string was not in a correct format.' > > > in my c# project. i want to convert my decimal value to round but if value is "7.99" it's output is 7 only which is at "b". i use this function but i failed. ``` void Calculation() { ...
2018/03/12
1,105
4,071
<issue_start>username_0: Ordering a Vyatta router on #SoftLayer #BlueMix and the order JSON is the following ``` gatewayOrder = { 'orderContainers': [{ 'quantity': 2, # high availability is 2 quantity 'hardware': [ { 'hostname': vyatta_fr_hostname, 'domain': vya...
2018/03/12
398
1,317
<issue_start>username_0: To try and make an everyday task for myself easier, I've been attempting to use: `=CONCATENATE(A1:A9)` Basically I have to grab groups of cells and wrap the text to fit in an attribute box elsewhere. I figured doing it right in Excel would be easier than writing something original with, say, ...
2018/03/12
1,811
5,883
<issue_start>username_0: I have to produce a list of combinations which are indicators to fields as I am trying to produce some conditions to interrogate data.I have some code for the combinations from [here](https://www.mrexcel.com/forum/excel-questions/435865-excel-vba-combinations-permutations.html). In the example...
2018/03/12
681
2,522
<issue_start>username_0: **What I want to do** I want to create a toggle function that allows a user to click on or off checkboxes by either adding them to an array (my state object), or if they're already there, removing them from the array. **What I expect to happen** with the following code, if the checkbox isn't...
2018/03/12
1,393
5,343
<issue_start>username_0: I have Lambda function `tranportKickoff` which receives an input and then sends/proxies that input forward into a **Step Function**. The code below *does* run and I am getting no errors but at the same time the step function is NOT executing. Also critical to the design, I do not want the `tr...
2018/03/12
3,080
9,056
<issue_start>username_0: I have a program that is expected to fail with an error. I am writing the logic to handle those errors. The program fails while doing, pipeline.set\_state(Gst.State.READY). The return code confirms that. What I am looking for is a means of identifying the error source. I am trying to register...
2018/03/12
578
1,996
<issue_start>username_0: I'm having problems with the Bootstrap-Table plugin: <https://github.com/wenzhixin/bootstrap-table> I have a hidden ID column in the table I need to hide. But I can't do ``` ID | ``` because that deletes it from the DOM. I need to **keep the ID in the DOM**, since it's used in form submis...
2018/03/12
704
2,321
<issue_start>username_0: I started the server using `python -m SimpleHTTPServer` I am a complete beginner to web development and was using Python SimpleHTTPServer 2.7 in ubuntu. While trying to **shutdown** the server, `ctl + c` gives me a traceback complaining about being interrupted. After looking at threads: 1....
2018/03/12
898
2,772
<issue_start>username_0: I'm having some trouble verifying the HMAC parameter coming from Shopify. The code I'm using per the [Shopify documentation](https://help.shopify.com/api/getting-started/authentication/oauth#verification) is returning an incorrect result. Here's my annotated code: ``` import urllib import hma...
2018/03/12
1,360
3,913
<issue_start>username_0: As anyone had this issue with parsing from html file with setting values that contain spaces in the value? If the value contains spaces ColdFusion isn't able to find the data match in the parsed html file. For example: ``` ` ``` The html file has the value "LGT RAIN", but due to the way ...
2018/03/12
1,522
6,292
<issue_start>username_0: How does one share temporary objects across component graphs executed at different times? I have a state engine from some old legacy code. Each state is represented by an IState and is responsible for creating the next state in a process. ``` public interface IState { Guid Session { get;...
2018/03/12
514
1,454
<issue_start>username_0: I need to process a python list as below: ``` PGPrimary=['VDD', 'VSS', 'A', 'Y'] ``` I need to change this list to below format: ``` //PG PRIMARY ("VDD") ("VSS") ("A") ("Y") ``` I tried below code but it doesn't work: ``` PGPrimary=['VDD', 'VSS', 'A', 'Y'] print("1:PGPrimary:",PGPrimary...
2018/03/12
284
858
<issue_start>username_0: I have a `li` which has `white` as a primary class. **HTML** ``` - ``` **JQUERY** ``` setTimeout(function() { $('li').removeClass("white").addClass("blue"); },4000); ``` I want the class change made a transition between both colors. Otherwise this script just h...
2018/03/12
401
1,483
<issue_start>username_0: I know what code I need to change to do this but I am not sure how to change it. So lets say you input a parameter search of DUA and your table looks like this ``` Name ----- Duane Dakdua Olpdua Poduaia ``` what I want this code to do is take the number of letters searched, in this case th...
2018/03/12
519
1,857
<issue_start>username_0: Since Variable is deprecated in RxSwift 4, what is the equivalent way for `BehaviorSubject` to do the following? ``` let observable = Variable<[Int]>([]) observable.value.append(1) ```<issue_comment>username_1: *BehaviorRelay* is a replacement for *Variable* in newer versions *RxSwift*, which...
2018/03/12
717
2,809
<issue_start>username_0: I have a function that creates a div with two buttons and returns the ids of the wrapper and the buttons. When I use .text() to find the text of the button it works fine, but when i use .text() within the on method it gives me a TypeError. ``` function generateTwoBtns(answerSpace, btn...
2018/03/12
2,697
10,406
<issue_start>username_0: I'm trying to implement wrapper class which will simply connect to TCP server and wait for data. Once data submitted from server - I will receive this data and pass it onto subscribers of my class. All this works. Now I want to add external functionality to "reset" this class on a timer (force...
2018/03/12
1,234
5,241
<issue_start>username_0: I am in the process of testing a TFS 2013 to TFS 2018 onprem upgrade. I have installed 2018.1 on a new system (and upgraded a copy of my TFS databases). I have installed a build agent on a new host which shows up under Agent Queues (as online and enabled). I'm now trying to create a build. I ...
2018/03/12
660
2,434
<issue_start>username_0: Using logback 1.2.3 and Java 9... Googled around trying to find a built-in way to alter the log message before it hits an appender. Is the only way through an encoder slash layout? Basically looking for the something like enrichment as provided by Serilog where you can alter a message (event) ...
2018/03/12
1,296
5,016
<issue_start>username_0: I have a C# Asp.Net Core (1.x) project, implementing a web REST API, and its related integration test project, where before any test there's a setup similar to: ```cs // ... IWebHostBuilder webHostBuilder = GetWebHostBuilderSimilarToRealOne() .UseStartup(); TestServer server = new TestSe...
2018/03/12
2,267
8,270
<issue_start>username_0: How do I know when I can use a New Lines/Carriage returns in my Powershell scripts? All of the search results when searching for this answer all point to the Output. I don't care about the output in this case. I am more interested in my ability to format my Powershell scripts for readability. ...
2018/03/12
344
1,232
<issue_start>username_0: I'm working on a Unity 3D C# project on Windows 10, and starting a new repository I add into my `.gitattributes` file: ``` # These files are text and should be normalized (convert crlf => lf) * text=auto *.cs text diff=csharp ``` I expected that when I add and commit files, git would convert...
2018/03/12
438
1,411
<issue_start>username_0: I have an object with variables "price", "title", and "city". I want to order them by price: ``` itemlist.sort(key = lambda x: x._price) for i in itemlist: print(i._price, i._title, i._city) ``` Assuming I have prices `["$1", "$3", "$22", "$12"]`. It sorts them `["$1", "$12", "$22", "$3"...
2018/03/12
1,125
5,102
<issue_start>username_0: I'm unable to get my `NSFetchedResultsControllerDelegate` methods called when setting the `NSFetchedResultsControllerDelegate` up with a `concurrencyType` value of `privateQueueConcurrencyType`. Consider this example: ``` fileprivate lazy var fetchedResultsController: NSFetchedResultsControll...
2018/03/12
628
2,068
<issue_start>username_0: Assume a dataframe `df` with a single column (say `latency`, i.e. a uni-variate sample). The exceedance function is calculated and plotted as follows: ``` sorted_df = df.sort_values('latency') samples = len(sorted_df) exceedance = [1-(x/samples) for x in range(1, samples + 1)] ax.plot(df['late...
2018/03/12
575
2,011
<issue_start>username_0: I have an assignment to make the Full Adder, it was chosen for us to practice the loops and conditinals in C. So i did the easiest part of checking wether the number is in Base-2 and printing C-Out and Sum. But for Base-16 and Base-8 I couldn't figure out how to convert them to a smaller bases....
2018/03/12
334
1,287
<issue_start>username_0: I have a Git repo and project on Eclipse. I am trying to share project on github. But i always get this error: ``` Can't connect to any URI: https://github.com//.git (https://github.com//.git: authentication not supported) ``` I have tried the solutions of people who have encountered thi...
2018/03/12
777
3,108
<issue_start>username_0: I've created a drop-down menu that is supposed to pass data to a view that'll help filter a queryset. However, it doesn't seem like the data is actually being passed to the view. Below is the relevant code I've written. template.html ``` {% csrf\_token %} {% if current\_user\_meters %} ...
2018/03/12
719
2,539
<issue_start>username_0: I am unable to save my files using Pycharm and I'm not sure how to fix this problem. I have tried doing a fresh install of Pycharm using JetBrains Toolbox to make sure that it is set up correctly with default settings, but still no luck. Here is the full log below: <https://pastebin.com/W2jT...
2018/03/12
869
3,000
<issue_start>username_0: I am basically trying to compare a cell within Excel against another cell within another worksheet using PowerShell. This is the code I am using: ``` # Define location $crs = "C:\temp\CRSENGCY_PS.xlsx" $english = "English" $welsh = "Welsh" $SubSection = "SubSection" # Create instance $objExce...
2018/03/12
581
2,251
<issue_start>username_0: I'm learning Python (3.6) to work with API data returned in JSON (which is also new to me). The API call returns 26 files which comprise the entirety of our data set - Page 1 of 26, Page 2 of 26 etc. I'm able to iterate through a single dictionary to get the required parsed results but need t...
2018/03/12
486
1,939
<issue_start>username_0: I am try to learn how to use this to post properly. I am just starting on Laravel.... recently Why this is NOT Working? ``` public function getFunctionFromUserGroup(Request $request) { try { $abc = $request->get('usertypeid'); return response() -> ...
2018/03/12
886
2,065
<issue_start>username_0: If I have 2 numpy arrays: ``` a = [1, 2, 3, 4, 5, 6] b = [a, b, c, d, e, f] ``` How can I get the following 2D array of tuples using numpy? ``` ab = [[(1,a), (2,a), (3,a), (4,a), (5,a), (6,a)], [(1,b), (2,b), (3,b), (4,b), (5,b), (6,b)], . . [(1,f), (2,f), (3,f), (4,...
2018/03/12
944
3,359
<issue_start>username_0: this is my first question, and I am very much a beginner in coding in Java, and I have a question about this topic. If there is a string s, that contains a roman numeral (i, v, x, l, c, d, m), the job of the program is to return the index of the first occurring roman numeral... For example, a...
2018/03/12
707
2,829
<issue_start>username_0: When performing model binding to objects, it seems that the framework will return null if there are type mismatches for any of the object's properties. For instance, consider this simple example: ``` public class Client { public string Name { get; set; } public int Age { get; set; } ...
2018/03/12
601
2,294
<issue_start>username_0: I'm trying to edit the position of a dropdown element but I can't seem to get it to work. I'm using Bootstrap 4 with Popper.js and I just added a default dropdown without any alternative styles to my page, but it automatically adds the following to the style attribute of the dropdown: ``` posi...
2018/03/12
542
1,780
<issue_start>username_0: I've scoured for a typo and tried several fixes I've found across this site and my styles still aren't being applied. The directory structure is as follows: ``` ResumeSite ----/static --------/img ------------img1.jpg ------------img2.jpg --------style.css ----/templates --------index.html ap...
2018/03/12
295
973
<issue_start>username_0: Our repositories directory path = **/srv/git/repositories/group\_name/subgroup\_name/project.git** We would like to execute a script If group name starts **'es-'** right after **repositories** in the path name. I have tried below command to find pattern Can anyone please help me to get the o...
2018/03/12
369
1,304
<issue_start>username_0: Is there any way to create a new keyspace in cassandra with gocql ?<issue_comment>username_1: Did you try to execute `CREARE KEYSPACE ....` with `session.Query`? Keyspace creation is just another CQL statement... Upvotes: 1 <issue_comment>username_2: I dont think there is any specific command i...
2018/03/12
1,227
4,475
<issue_start>username_0: First time Firebase and RN user here, trying to figure out how to transmit the Device ID/Token of the app user. I'm using something basic like this to transmit information to my firebase database right now (using `firebase.database().ref()`). ``` updateDB = (timestamp_key, item_name, item_...
2018/03/12
688
2,684
<issue_start>username_0: I am trying to create a system whereby users can only access a certain page at a time which they have booked. Users who have not booked access to this time will not be able to access the page. Essentially the page will only be available to users once they have booked! I am trying everything I ...
2018/03/12
1,403
4,728
<issue_start>username_0: Still getting the hang of PHP and would like some guidance on the best way to make this code loop. I have got the php code that generates the html code working, it creates a checkbox for each entry in my MySQLi database using a WHILE command. I need to do something similar with this code. ``` ...
2018/03/12
1,199
4,261
<issue_start>username_0: I am receiving "The credentials supplied to the package were not recognized" message when attempting to send a push notification from a site in IIS. I have a console application that runs exactly the same code on the server which runs fine, it is just when it is from IIS. I have tried the sol...
2018/03/12
2,437
6,701
<issue_start>username_0: I'm tried do a HTTP POST to my php server, but i got a wrong request in server log: ``` :192.168.1.15 - - [12/Mar/2018:17:46:16 -0300] "POST \xa9\x020\x91\xa7\x020\x93\xa9\x02 \x93\xa7\x02.\xea2\xe0\xa2\xeb\xb2\xe0\xf9\x01B\x91\x84\x0f\x91\x1dN\x91\x8c\x93f#\x11\xf0@\x83\x01\xc0\x10\x82\x89/\...
2018/03/12
1,034
3,556
<issue_start>username_0: How can I initialize a floating or unsigned multidimensional dynamic array in C++? I tried the following and got a seg fault, ``` float **array = NULL: array = new float* [rows]; for(unsigned int i = 0; i < rows; ++i) { array[i] = new float [cols]; } ``` Thanks in advance.<issue_commen...
2018/03/12
1,024
3,560
<issue_start>username_0: I have this TCL expression: ``` [string toupper [join [lrange [file split [value [topnode].file]] 1 1]]] ``` This retrieves `companyName` value from `c:/companyName...` and I need to split that value before the first capital letter into `Company Name`. Any ideas? Thanks in advance.<issue_co...
2018/03/12
968
3,420
<issue_start>username_0: I want to display a message in a modal using angular 4.0.0 and ng-bootstrap 1.0.0-beta.4 but it does not display the modal. app-module.ts ``` @NgModule({ // ... declarations: [ LoginComponent ], imports: [ // ... NgbModule.forRoot() ], entryComponents: [LoginComponent], }) export class A...
2018/03/12
1,146
3,829
<issue_start>username_0: I am trying to write something to check the data type of a `Map`, for some reason, it is not working, can someone point what I am doing wrong Here is the code ``` def mapTest() { var map= Map(1->"abc",2->20,3->(1 to 10 toList)) map.foreach(a=>{a match {case a:(Int,String)=>"Int,String";c...
2018/03/12
608
2,423
<issue_start>username_0: I have a class like that: ``` public class Student implements Serializable{ private String name; private int age; private Image img; } ``` I store a few students in an ArrayList and write them to a file. When I restart the application I load them from that file again. However, the `Ima...
2018/03/12
726
2,677
<issue_start>username_0: After a user logged in, I'm trying to redirect him to the same page that he was before the login. Example: If the user was on the home page before he clicked on the login link, I would like to send him back to the home page if he successfully logged in. (And do the same for every page a user c...
2018/03/12
737
2,545
<issue_start>username_0: When I run the following in Chrome, I get an "Uncaught (in promise) failure" error message: ```js var p = new Promise(function(resolve){ throw "failure"; }) p.then(function(){ console.log("success"); }) p.catch(function(err){ console.log(err); }); ``` I don't get an error if I ru...
2018/03/12
929
3,398
<issue_start>username_0: I'm developing a web api using .NET Core 2 on a Windows laptop. I'm trying to access my S3 bucket and am getting an Access Denied error. Interesting thing is that it works with the AWS CLI. My appSettings.Development.json file: ``` "AWS": { "Profile": "my-profile", "Region": "us-east...
2018/03/12
535
1,962
<issue_start>username_0: I would like to remove the purple gap in my preference screen: [preference](https://i.stack.imgur.com/iEbJX.png) so that it should look like this: [Google Play Store example](https://i.stack.imgur.com/grWOs.png) I'm using Xamarin Android and c# to develop my app. The preference screen is an P...
2018/03/12
924
3,160
<issue_start>username_0: I am creating PDF files using blobs in Google Apps Script from a HTML code, but the problem is that HTML code has an image (referenced by "http") but the created pdf can't show it. This is my code ``` function createBlobPDF(myMessage,myTitle){ var blobHTML = Utilities.newBlob(myMessage, "text...
2018/03/12
1,871
7,224
<issue_start>username_0: I recently read part of a C++ tutorial about [pointers to data structures](http://www.cplusplus.com/doc/tutorial/structures/#pointers_to_structures), whose struct is defined as: ``` struct movies_t { string title; int year; }; movies_t * pmovie; ``` It mentioned how `(*pmovie).title...
2018/03/12
952
2,830
<issue_start>username_0: I have some trouble getting my query right for a specific output. My table looks like this: ``` ID | meta_value | field_id | item_id ------------------------------------ 1 | Steve | 75 | 5 2 | Johnsson | 76 | 5 3 | Sick | 705 | 5 4 | John | 75 | 6...
2018/03/12
573
2,380
<issue_start>username_0: **Bakground:** I want to develop a multi-tenant application in ASP.NET Core and have been looking into <NAME>ers [Saaskit](https://github.com/saaskit/saaskit) library which seems to provide good solutions for common problems in multitenancy applications. **Problem:** The SaasKit have a `UsePer...
2018/03/12
755
2,777
<issue_start>username_0: My app has three tabs: * Tab1 * Tab2 * Tab3 On Tab2, the user has progressed an order to completion. At this point, I want to clear the navigation stack for Tab2, and I want to navigate the user to a page that normally sits under Tab3. Currently, this is what I've got: ``` this.navCtrl.p...
2018/03/12
800
2,285
<issue_start>username_0: I want to automatically add rel attribute (nofollow noopener noreferrer) for all of my links. For content (the\_content) I use this code and it works well: ``` function add_nofollow_content($content) { $content = preg_replace_callback( '/]\*href=["|\']([^"|\']\*)["|\'][^>]\*>([^<]\...
2018/03/12
501
1,837
<issue_start>username_0: lets say I have a grandparent class in angular that has an html that looks like this: ``` ``` The parent has a variable that the child needs to render and it is passed by the parent to the child which binds it into it's own predefined html. How can I accomplish this? ViewChild and ContentChi...
2018/03/12
922
2,627
<issue_start>username_0: Let's have example of array full of numbers greater than 0: ``` let prices = [10,6200,20,20,350,900,26,78,888,10000,78,15000,200,1280,2000,450]; ``` After we add all the numbers and get total amount (in example it is `33770`) we want take some % (part) from this total amount. Let's say 5% (`...
2018/03/12
1,248
4,307
<issue_start>username_0: Look about this code (for example) : ``` #include void print(unsigned int value); void print(float value); int main() { print('a'); print(0); print(3.14159); return 0; } ``` I get the next error: > > 'print(char)' is ambiguous > > > What is really the problem here? I understoo...
2018/03/12
543
1,581
<issue_start>username_0: I want to make a vector of valarray-types inside a class, in which each element of said vector references an element of a vector of some struct-type inside the same class. Schematically, I have ``` struct particle{ valarray x(2); //x has 2 components }; class SPH{ vector ps(1000); //ps h...
2018/03/12
940
3,276
<issue_start>username_0: Wrap the long lines in the given text to the given length. Example: `'To be or not to be-that is the question', 5 => To be or not to be -that is the quest ion`<issue_comment>username_1: This solves your problem: ``` max_length = 5 result = "" word_array = 'To be or not to be-that is...
2018/03/12
455
1,585
<issue_start>username_0: I must be doing something wrong. I'm working on a codepen that makes a call to a REST endpoint for beer information, then I loop over it and display some of the info. Nothing fancy and it's not complete yet in terms of nice looking CSS etc. but the looping over my array of beers doesn't work: ...
2018/03/12
425
1,302
<issue_start>username_0: I'm try to convert an array of 50 numbers to an array of 25 elements with two properties, prop1, and prop2, which contains even and odd numbers. I've written this code that works correctly ```js /* jshint esversion: 6 */ const numbers = [...Array(50).keys()]; const total = { evens: nu...
2018/03/12
364
1,426
<issue_start>username_0: I have been putting together a macro for combining the first worksheet of a group of workbooks. I have been grabbing bits of code here and there, and have a semi-functional subroutine. However, right now it is adding all worksheets from all of the selected workbooks. How do I modify the followi...
2018/03/12
1,018
4,109
<issue_start>username_0: I created an Anaconda Python Conda environment and exported a spec file so I could re-install the exact same environment at a later date if necessary using the command `conda list --explicit`. That day is today, but I'm disappointed to see that one of the files isn't available and was replaced ...
2018/03/12
1,032
3,697
<issue_start>username_0: I'm new to Webpack, Visual Studio, and Task Runner, but these are what I have been told to install/use at work so I'm struggling through figuring out how to make it all work. I just used NPM to globally install a fresh copy of webpack and webpack-cli. I installed the Task Runner plugin to Visua...
2018/03/12
2,772
9,219
<issue_start>username_0: I have a triangle, defined by its 3 (suppose integer) coordinates, say: ``` A(ax, ay) B(bx, by) C(cx, cy) ``` how can I "enlarge" the `ABC` triangle to obtain a new one (`DEF`) that is the **minimum** (smallest area) triangle with integer coordinates which contains all the vertices of the pr...
2018/03/12
1,467
6,174
<issue_start>username_0: I know that many asked for DISABLE RIGHT CLICK option on wordpress, I'm not a great supporter of right click option, it's a must have on a website. On the other hand, it would be good to protect direct media link and image save option on wordpress. Advanced users can definitely find a way to ...
2018/03/12
1,277
5,324
<issue_start>username_0: I am using `self.classForCoder` to log class name using print statement. I want to log class name in class methods as well without hard-coding. Is there any dynamic way like `self.classForCoder` to log class name in class method as well?<issue_comment>username_1: They made them 'background' im...
2018/03/12
1,463
6,067
<issue_start>username_0: I'm writing a program in java that makes monkey test on an android virtual device. In this program I run the following three commands. ``` Runtime rt = Runtime.getRuntime(); Process clear = rt.exec("/Users//Library/Android/sdk/platform-tools/adb logcat -c"); Process monkey = rt.exec("/Users//...