input_text_instruct
stringlengths
288
45.8k
output_text
stringlengths
37
33.2k
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Identifying a shape parent in visio<p>Hii i have a visio document which is an BPMN template .In that BPMN document i have placed a BPMN shape and also other ...
<p>I must admit, this is more difficult than I would have expected. The stencils are actually in the documents collection and they do not contain shapes, only masters. Anyway: this is how you get the parent stencil name for each shape of your active drawing:</p> <pre><code>using Visio = Microsoft.Office.Interop.Visio;...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the meaning of "a POST request also has $_GET parameters"<p>Hi i am looking at differences between <code>$_GET</code> and <code>$_POST</code> methods...
<p>Perhaps the simplest way to understand this is that <code>$_GET</code> is simply badly named. All it actually represents is the values of "query string" parameters parsed from the part of a URL after a <code>?</code>. Since every request has a URL, whatever type it is, any request can populate <code>$_GET</code>.</p...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Kendo UI Scheduler disable multiple time-span/range of a single day<p>I have a scheduler which will be used by creators and consumers. Creators will define a...
<p>You can use the <a href="http://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler#events-save" rel="nofollow">save event</a> to prevent creating the events and simply only show the range that is allowed:</p> <pre><code>var startLimit = new Date(); startLimit.setHours(4); startLimit.setMinutes(0); startLimit.set...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Verifying if an app icon is set before sending a build to iTunesConnect using Fastlane<p>I am having this in my Fastfile:</p> <pre><code>default_platform(:i...
<p>There is this library here <a href="https://github.com/fastlane-community/fastlane-plugin-appicon" rel="nofollow noreferrer">github.com/fastlane-community/fastlane-plugin-appicon</a> which will fail as a build step if it can't generate an icon for you however that isn't so much what you've explicitly asked for. Out ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why is this method call on a property causing a stack overflow?<p>I was writing a bubblesort in C# and ran into this problem. Below are my classes and after ...
<pre><code>public List&lt;Person&gt; TheList { get { return TheList; } set { TheList = value; } } </code></pre> <p>This setter refers to itself. Any attempt to read or write to it will cause an infinite recursion.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Initialize dB(sqlite3) with Flask-SQLAlchemy<p>I need to create a dB for testing purposes and I would like initialize it with &quot;some&quot; users.</p> <h2...
<p>I think creating test users inside the model class is the wrong way to do it. This is going to recursively call <code>__init__()</code> if you instantiate a <code>User()</code> instance inside <code>__init__()</code>. A better place would be inside a unittest <code>setUp()</code> method.</p> <p>However, if you re...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: c++ program unable to execute while reading more than 500000 integers<p>I have a project in which I have to store some values and return some results based o...
<p>You <a href="https://stackoverflow.com/questions/737240/c-c-array-size-at-run-time-w-o-dynamic-allocation-is-allowed">cannot declare an array with runtime size on the stack</a> without using a compiler extension. So <code>long long int A[N];</code> is illegal. </p> <p>That being said with a 500000 element array, yo...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Interpolation in a distorted box<p>I want to interpolate in a distorted box. As We have 8 points around a distorted box <code>(p0, p1, p2, ..., p7)</code>, i...
<p>Not answering the original question since in the comment you said that you simply wanted to interpolate a function inside the cube, using the values at the 8 vertices.</p> <p>So in order to do that, you can reason as follow:</p> <p>1) <a href="http://www.baumanneduard.ch/Splitting%20a%20cube%20in%20tetrahedras2.ht...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reduce function to take an undefined initial value<p>I want to create a function (reduce) that does the following:</p> <p>Where:</p> <pre><code>var collect...
<p>This is how I would implement it:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>alert(reduce([1,2,3], add, 3)); // 9 alert(reduce([1,2,3], add)); // 6 function add(a, b) { return a + b; } function red...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I cast an object to a string if that object may be null?<p>I have this code:</p> <pre><code>var answer = (string)parameters[0].Value; </code></pre> ...
<pre><code>var answer = "" if(parameters[0].Value != DBNull.Value) { answer = (string)parameters[0].Value } </code></pre> <p>Or shorter :</p> <pre><code>var answer = parameters[0].Value != DBNull.Value ? (string)parameters[0].Value : "" </code></pre> <p>And your empty result is not null, it is DBNull.Value as y...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: LINQ expression with mulitple count<p>I will appreciate help on writing the following SQL query with multiple <code>count</code> into a <strong>single</stron...
<p>Try this way</p> <pre><code>var totalOrder = Sales.Select(p =&gt; p.MemoNo).Count(); var shop = Sales.Select(p =&gt; p.shopId).Distinct().Count(); var totalAmount = Sales.Sum(p =&gt; p.TotalAmount); </code></pre> <p><strong>Updated</strong></p> <p><a href="https://dotnetfiddle.net/TkxiS5" rel="nofollow noreferrer...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Spring Security Basic Authentication always causes 404<p>I've been building a REST API using Spring. I'm using Basic Authentication with Spring Security (3.2...
<p>I figured it out. The problem came down to Spring and exception handling. I had a class called ExceptionController that looked like:</p> <pre><code>@Slf4j @RestController @ControllerAdvice public class ExceptionController implements ErrorController { // @ExceptionHandler methods here. @Override public Strin...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to fill combobox with database values with method from DAL<p>I have a table called Departments where the column i wish to populate my combobox with is na...
<p>You have mentioned "form1", I assume it is for windows forms. In your form1 cs code, this should do it.</p> <pre><code>DAL dl=new DAL() Datatable dt=DAL.fillDeptCombo() combobox.datasource=dt; combobox.valuemember="deptID" //replace this with your value combobox.displayMember="DeptName" //replace this with your tex...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Returning object from Node.js callback nested in a function<p>say I have the following function which has a synchronous filesystem call enclosed:</p> <pre><...
<p>The normal way to handle this is to make the outer function into an asynchronous function as well. If you don't have control over the lifecycle of the calling function, but do have control over where its return value is used later, you can use a promise to represent the future value of the internal async function, a...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Scala: specifying a generic type that is constructible from another<p>I would like to do something which, more or less, boils down to the following:</p> <pr...
<ol> <li><p>You may use reflection (see @Ben Reich answer for detailed answer)</p> <pre><code>def foo[S:ClassTag](x: String): S = { val runtimeClass = implicitly[ClassTag[S]].runtimeClass val constructor = runtimeClass.&lt;get a constructor with single String argument&gt; constructor(x) .asInstanceOf[S] } </cod...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Selected Visual studio is missing required components and may be not be able to build generate project<p>Build a simple project of unity "hello world", Unity...
<p>Give this a try:</p> <ol> <li>Open the Visual Studio 2017 Installer</li> <li>Click "Modify"</li> <li>Select and install the optional <strong>Package C++ Universal Windows Platform tools</strong> from <strong>Universal Windows Platform development</strong></li> </ol> <p><a href="https://i.stack.imgur.com/BztM5.png"...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I use a custom logging handler with django?<p>I'm trying to integrate logging with loki in my django app like this:</p> <pre><code>handler = logging...
<p>Try this:</p> <pre><code>LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'standard': { 'format': '[%(asctime)s] {%(module)s} [%(levelname)s] - %(message)s', 'datefmt': '%d-%m-%Y %H:%M:%S' }, }, 'handlers': { 'console': ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trouble using ptTimeSelect with jqGrid edit dialog<p>I'm trying to include a <a href="http://pttimeselect.sourceforge.net/example/index.html" rel="nofollow">...
<p>This was caused by ptTimeSelect having a low (10) default z-index, and the jqGrid edit dialog having a fairly high one (950). The solution was to set the z-index for ptTimeSelect much higher.</p> <pre><code>$('#classTable').jqGrid('navGrid', '#classPager', { edit: true, add: true, del: true, search...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Computer Reboots After "sti" Instruction<p>I am trying to implement interrupts in x86 operating system project. However, after loading interrupt descriptor t...
<p>Some things cause exceptions. When the CPU can't start the corresponding exception handler it falls back to a generic "double fault" exception, and when the CPU can't start that exception handler the CPU falls back to a "triple fault" condition which mostly means that the computer is reset.</p> <p>It's likely that ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create adds entry to table multiple times<p>I have a model that has several <code>datetime</code> fields, all of which have the same date, but different time...
<p>First I prefer to use <a href="http://railscasts.com/episodes/196-nested-model-form-part-1" rel="nofollow">nested_forms</a>. Cause a Show has an Artist (Show => (1)(Artist) and if you want to implement an Artist into the Shows' form you should use a nested_form approach</p> <pre><code>class Artist &lt; ActiveRecord...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Connectionstring that an pod should use to connect to an postgresql pod in same cluster?<p>I am currently working on a application which will be running in a...
<p>I am not sure I understand why.. But all my asp. Net core containerized application was not able to resolve the service name..</p> <p>These had to be resolved in a separate step using <a href="https://docs.microsoft.com/en-us/dotnet/api/system.net.dns.gethostname?view=netframework-4.8" rel="nofollow noreferrer">ht...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Which function to use instead of pci_find_bus in esxi<p>I am trying to compile a driver for <strong>esxi</strong> that originally run under linux. When i try...
<p>I get the interface by pci_get_device_all<br/> got the physical address with<br/> pci_resource_start<br/> And finnaly got the virual adderss with ioreamp<br/></p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to delete an Instagram post to a hashtag<p>I'm new to Instagram and Instagram development. My company wants to create a hashtag and have people submit ph...
<p>I don't think it is possible. You cannot control the use of a hashtag by other people in Instagram. Anyone can use your hashtag for 'irrelevant' photo and the only way to get it invisible from the hashtag feed is if the owner of a photo removes the hashtag from that particular photo. </p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Security: SSL Connection vs IP Whitelist for a database<p>I'm setting up an application on Heroku that uses a MySQL database.</p> <p>The client would like t...
<p>Allow me to rephrase your question:</p> <p>What is the advantage of setting up a <em>complex</em> dynamic IP tracker system vs. <em>simply</em> securing the link?</p> <p>An IP can be spoofed, by the way, so this solution is not that secure (right, such an attack requires some non-trivial black magic, but is quite ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# Raise events on another thread<p>I have <code>MainForm</code> class and some <code>Engine</code> class for camera control. In <code>Engine</code> class, I...
<p>I have ran into a similar problem not too long ago. I have dealt with it in C++/CLI so the same approach should also work in C# too.</p> <p>I believe you have the Engine class initialized in your MainForm. If you want to raise events from another thread then this object has to be initialized in another thread.</p> ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Calling method from other class give NullPointerException<p>I have an Activity Class, from where I'm calling a <code>ListView</code> adapter. In the adapter ...
<p>It was actually this simple, and only took me 5 hours to find this question on Google.</p> <p><a href="https://stackoverflow.com/questions/10072495/how-to-let-onclick-in-listviews-adapter-call-activitys-function">How to let OnClick in ListView&#39;s Adapter call Activity&#39;s function</a></p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Execute method on enter key VueJS?<p>I am using vuetify and trying to create a method to add chips from the dropdown. Now i got most of the logic down but as...
<p>Since <code>multipleSelection()</code> is not being called from <code>@keypress</code> on <code>v-slot:item</code>, likely it's not where the event is being captured. </p> <p>Taking a look at events on Vue Dev Tools, can see <code>input $emit by &lt;VCombobox&gt;</code> is the first one after pressing Enter.</p> <...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use regular expression to do a partial replace?<p>I have an email address in Ruby which I need to obfuscate by replacing all characters except the fir...
<pre><code>email.sub(/\A(...)(.*)(...)\z/) {|m| $1 + ("*" * $2.length) + $3 } </code></pre> <p>1 up vote for the non-regexp solution.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Textbox value not being multiplied when checkbox selected (HTML & Javascript/JQuery)<p>My code updates the CPC textbox when options are selected, but when an...
<p>Looks like you are calculatetier function isn't being called during the change of discount. </p> <p>Working Demo: <a href="https://codepen.io/punith/pen/gOpaVxr?editors=1010" rel="nofollow noreferrer">https://codepen.io/punith/pen/gOpaVxr?editors=1010</a></p> <p><strong>HTML code</strong></p> <pre><code>&lt;div c...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Which the best way to use inheritance of tables in postgreSQL?<p>i want to use inheritance in my database (PostgreSQL) so i wrote this code but finally i fou...
<p>With inheritance you cannot have globally unique constraints. If that doesn't bother you, you can use the feature.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Set background-color to div from form in another blade<p>My project contains index.blade.php and create.blade.php. In create.blade.php is a form for creating...
<p>You probably need to do something like this</p> <p>with jQuery: </p> <pre><code> $("#selector").change(function(){ $(".brder1").css('background-color', $(this).val()); }); </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL/PHP | Is a 26 character string ( letters and dashes ) too long for indexed columns?<p>I'd like to set out my websites url path like so:</p> <p><code>h...
<p>Short answer: Don't worry.</p> <p>Long answer:</p> <p>The hard limit on how long an indexed column can be is 191 or 255 or 767 or 3072 bytes or some intermediate values, depending on MySQL version and <code>CHARACTER SET</code>.</p> <p>The practical limit on how long is, again, "don't worry".</p> <p>Indexing sh...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to show parameters hints in Android Studio?<p>Is there a shortcut to trigger the parameters hints in Android Studio as it shows in the following photo:</...
<p>To reveal the <code>Parameter Info</code>, place the cursor in the parameters' location within a method, constructor, etc and:</p> <p>On Mac, use <kbd>Command</kbd>+<kbd>P</kbd> </p> <p>On Windows use <kbd>Ctrl</kbd>+<kbd>P</kbd> </p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Include problems with FreeRTOS Simple Demo on PIC32MX<p>I've been trying to get my hands on freeRTOS at work for a few days now. Since I'm done reading the d...
<p>So.. following what I did in edit1, I thought "hey, what if the project's own directory isn't part of the include folders? naaaah can't be... ok let's be sure and give it a try"</p> <p>And guess what...? it wasn't.</p> <p>I had no clue this could ever happen but maybe that's just because I'm ignorant to some point...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to create 2D ArrayList and add elements<p>I have a small program that hold pairs of states and their capitals in 2D array. Below this program:</p> <pre>...
<p>Here a way easier example :)</p> <p>Notice that I give a fixed initial length to the constructor of the ArrayList as we already know the length of the array.</p> <pre><code>List&lt;List&lt;String&gt;&gt; myListOfListOfString = new ArrayList&lt;List&lt;String&gt;&gt;(answers.length); for(String[] array : answers) ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: TypeScript - calling an API endpoint again and again until we get the desired result - recursion or loop?<p>I have a frontend application and a backend one. ...
<p>RxJS has everything you need. Don't mix up and use imperative ifs together with promises, loops, recursions setTimeouts.</p> <p>To resolve your problem take a look at this <a href="https://blog.strongbrew.io/rxjs-polling/" rel="nofollow noreferrer">article</a></p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why am I getting an exception main "thread" error?<p>I have created two classes (and two interfaces) and then a main code. I just debugged the main code bec...
<p>You're using two <code>Scanner</code>'s on the same stream (<code>System.in</code>). The first being <code>userInput</code> in the <code>main</code> method of your <code>Project03</code> class. The second being <code>inScanner</code> in the <code>readFile</code> method of your <code>SimplePlayList</code> class:</p> ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trigger IBAction in all open NSDocuments<p>I am changing various things like layer background colours, font colours etc etc.. The process starts with an IBAc...
<p>I think, if you want to make the change available to any open document, and the triggering party doesn't know which or how many documents are open, you should post an <code>NSNotification</code>, and have the interested parties listen to it (register to it).</p> <p>So, in addition to the window controllers enacting...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: List of products from the given category<p>I'm just getting started and I have a problem. I want to get in<br> SlugView a list of all products in the given c...
<p>Since your goal to get <code>Products</code> through <code>Category</code> you can filter on M2M related records:</p> <pre><code>products = Product.objects.filter(categories__slug=slug) return render(request,'exercises/slug.html', {'products': products}) </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Custom function to calculate on all events in an Esper window<p>I am wondering what is the best or most idiomatic way to expose all events in a window to a c...
<p>For access to all events at the same time use <code>window(*)</code> or <code>prevwindow(*)</code>.</p> <pre><code>select MyLibrary.computeSomething(window(*)) from ... </code></pre> <p>The <code>computeSomething</code> is a public static method of class <code>MyLibrary</code> (or define a UDF).</p> <p>For access...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there a cleaner solution to counting clicks?<p>Anyone knows a prettier solution to check if a key has been pressed X amount of times regardless of time in...
<p>Another way is to use modulo.</p> <pre><code>int count = 0; int max_allowed = 3; if(clicked) count++; // A count = count % max_allowed; // B </code></pre> <p>A will output <code>1 2 3 1 2 3 1 2 3</code> B will output <code>1 2 0 1 2 0 1 2 0</code></p> <p>Depending on your goal you need to to your logic on A ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Clarification regarding Pending Intent<p>Say I have an application A that uses an intent to launch an application B's component. Then if I wrap that intent i...
<p>Yes, you have the flow correctly described. Note that App B is not specifically involved in this flow. The <code>Intent</code> could point to a component in App A, B, C, D, E, etc. The only specific parties are:</p> <ul> <li><p>App C, which sends the <code>PendingIntent</code>, and</p></li> <li><p>App A, which crea...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to get rid of name of column/axis name showing on top of /above index in dataframe pandas python: Renaming axis<p><strong>Current dataframe</strong></p> ...
<p>You can remove columns name <code>SKU</code> by <a href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rename_axis.html" rel="nofollow noreferrer"><code>DataFrame.rename_axis</code></a>:</p> <pre><code>df = df.rename_axis(None, axis=1) </code></pre> <p>But I think empty row is not remo...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: action without button on swift<p>I’m new at this and I’m wondering if it’s possible in swift or objective-C to make an action without the interaction of a bu...
<p>For my comment above - you could do something like this:</p> <pre><code>class ViewNotLogged: UIViewController { var pickerData1 = [String]() override func viewDidLoad() { super.viewDidLoad() println("My data \(pickerData1)") } } </code></pre> <p>And try not to implements <code>UIPicker...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to send newsletter email direct to mail inbox of any other mail account<p>i 'm .net developer. i just have a task to make newsletter application that can...
<p>In short no, since major email server check for reputation of IP from which mail is being sent. That said check for the reputation of your mail server @<a href="http://multirbl.valli.org/" rel="nofollow">http://multirbl.valli.org/</a> or any other, if you find that (and you will probably find) that it is black liste...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why can't I console log/stringify a whole array on Javascript?<p>so I am struggling trying to access a -somewhat- complex Array on Javascript. </p> <p>On a ...
<p>I assume that you create <code>globalForm</code> as an Array. Arrays in JavaScript only understand <em>integer</em> indices. Since they are still objects, you can of course give them named properties, but those won't fill the array. The equivalence of dot-notation and bracket indexing in JavaScript might have misled...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Build protoc for C++ with CMake<p>I'm currently working on a C++ project that reference gRPC as a git submodule and I'm using CMake to compile the dependenci...
<p>After doing tons of grep in gRPC's CMake files I finally compiled only the c++ version of protoc, protobuf and gRPC. And I did it in 3 steps:</p> <ol> <li>go to grpc/third_party/protobuf/cmake/libprotoc.cmake and remove the lines including csharp, java, ruby, ... (<strong>Be careful to keep cpp and the langage agno...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create a table dynamically using JSON keys and Values<p>I am getting the JSON response from a Ajax call like this below:</p> <pre><code>{"Key1":"Value1" , "...
<p>For this html:</p> <pre><code>&lt;table id="myTable"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;KEY&lt;/th&gt; &lt;th&gt;VALUE&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;/tbody&gt; &lt;/table&gt; </code></pre> <p>this jQuery script:</p> <pre><code>v...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Identify organisation based on its email domain?<p>Is it possible to get identification details about organization based on its email domain?</p> <p>Like, l...
<p>Yes, that's what the WHOIS database is for. </p> <p>You could, for example, execute <code>whois googlemail.com</code> as a system call from Java to get some information about google, and parse the output. </p> <p>You could also use the common Apache toolkit whois client, <code>org.apache.commons.net.whois.WhoisCli...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java OutOfMemoryError with ArrayList<List<Integer>><p>I want to create a very large graph (with ~10 million edges) in Java. I plan to <code>List&lt;List&lt;I...
<p>To let your program use more memory from Eclipse:</p> <p>Go to Run -> Run Configurations. You will see this window <img src="https://i.stack.imgur.com/aeXJl.png" alt="Run Configurations"></p> <p>Click on Arguments <img src="https://i.stack.imgur.com/WTaPV.png" alt="Run Configurations/Arguments"></p> <p>Enter your...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Javascript - Getting propriety from object in var on for loop<p>I'm trying to get a value from an object inside a for loop on Javascript.</p> <p>What I curr...
<p>JavaScript <code>foreach</code> ( <code>for(x in y)</code> ) iterates over keys or indexes, not values so </p> <pre><code>for(var sr in USERS) { console.log(sr + " IS " + USERS[sr].hasOwnProperty("username")); } </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Navigation Bar colides with status bar in swift xcode for iphone 8 simulator<p>I'm working on an iphone app that will be compatible from iphone 6 to the new ...
<p>In your AppDelegate file you can add this:</p> <pre><code> func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -&gt; Bool { { //(by default it is True) UINavigationBar.appearance().isTranslucent = false // it will ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to count the number of (number of duplicates) in a database<p>I am writing some PHP / MySQL to detect excessive site visits. While I find it simple enoug...
<p>Using the <code>HAVING</code> clause, this query will return those having a count higher than 2 - </p> <pre><code>SELECT `VisitIP`, COUNT(`VisitIP`) AS `CountIP` FROM `table` GROUP BY `VisitIP` HAVING `CountIP` &gt; 2 </code></pre> <p>To count the total meeting the condition you can do something like this - </p> ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to add specific number of additional workers to an exisiting multiprocessing pool?<p>In below situation I've created a default pool with two workers and ...
<p>To add more workers during a running pool processing job you can add below function within the while-loop:</p> <pre class="lang-py prettyprint-override"><code> def repopulate(pool, add_workers): current_pool_size = len(pool._pool) # _.pool gets the current pool size. new_pool_size = current_pool_s...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What did I just do by typing x = 'ls' in my Mac terminal?<p>I was watching a tutorial on using the terminal and someone had an example where they set variabl...
<p>You probably started the X server with options <code>=</code> and <code>ls</code>. This will attempt to take over the display and maybe fail because another X server is already running.</p> <p>Starting an X server usually takes a second or two to initialize the display HW, keyboard, mouse, whathaveyou. This is why ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to reference angular controllers through different directories<p>Okay, here goes. I started learning my first node.js/MEAN application last night, and f...
<p>I updated my server config to have <code>app.use(express.static(__dirname + '/app'));</code> and it seems like that fixed it</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: UIView animateWithDuration completion has finished = YES despite being cancelled?<p>I'm running this animation on a user interaction, and sometimes the anima...
<p>So I investigated this further and I think this is an iOS 8 specific thing, due to how animations are now additive by default, which means that the animations will continue and add up to each other rather than being cancelled.</p> <p>In my searching I found <a href="https://developer.apple.com/videos/wwdc/2014/#236...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why won't my @Font-Faces load?<p>My fonts won't appear on my website and I don't know why! The only reason I could really think of is that perhaps I was load...
<p>You need to split each font declaration into separate @font-face blocks</p> <pre><code>@font-face { font-family: MuseoSansRounded100; src:url(fonts/MUSEOSANSROUNDED-100_0.OTF); } @font-face { font-family: MuseoSansRounded300; src:url(fonts/MUSEOSANSROUNDED-300_0.OTF); } ... </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to sort interger value from json using Angular.js<p>I'm trying to use <code>orderBy</code> functionality in angular, and order by <code>RollNo</code> but...
<p>You are doing <code>data.RollNo = parseFloat($data.RollNo);</code> that wont work, you need to loop throw object and do it.</p> <p>You need to convert <code>RollNo</code> property of counrty object to number first then you can apply <code>orderBy</code></p> <p><strong>CODE</strong></p> <pre><code>var newArray = [...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Does rel="home" on an anchor tag (<a>) do anything helpful?<p>I see this a lot on site title links in WordPress themes (probably because Underscores does it ...
<p>The <code>rel="page"</code> was part of an initiative to create <a href="https://en.wikipedia.org/wiki/Permalink" rel="nofollow noreferrer">permalinks</a> (see section 'Permalink detection') as part of a standard in HTML 4.</p> <p>However with HTML 5 it now has no purpose and does not offer any accessibility or SEO...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can I test a React Hooks component by changing useState<p>I have a React hooks functional component that I'd like to test with Jest/Enzyme. I would like...
<p>You don't need to spy <code>useState</code> hook. Which means you should not test these hooks and methods of the component directly. Instead, you should test components' behavior(the <code>state</code>, <code>props</code> and what is rendered)</p> <p>E.g.</p> <p><code>index.tsx</code>:</p> <pre class="lang-js pre...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Sum land area grid based on land class grid in Python<p>I have two grids of equal shape, one is for land class and the other is land area.</p> <p>Examples:<...
<p>You can do as follows:</p> <pre><code>import numpy as np lc=np.array([[1, 4, 3], [3, 2, 3], [1, 3, 3]]) la=np.array([[0.3, 0.8, 2.0], [5.0, 1.5, 0.5], [0.1, 1.0 ,3.2]]) calc_areas = [] for v in np.unique(lc): print(v, np.sum(la[lc==v])) calc_areas.append...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Create strawpoll.me poll with node.js<p>I was trying to create a poll with node.js for discord using the following code:</p> <pre><code>axios.post("https://...
<p>Unfortunately there is nothing you can do to change that.<br>I have researched the <code>strawpoll.me</code>-API and its documentation describes requests that fail to execute.<br>The reason for that lies is on their side.</p> <p>You may look out for another survey provider.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Looping over two arrays for each row in a table<p>I have the following set of json</p> <pre><code>[ { "drink_name": "Ananascocktail", "i...
<p>I solved it by doing the following</p> <pre><code>&lt;tbody&gt; &lt;tr ng-repeat="ingredient in json.ingredients"&gt; &lt;td&gt;{{ingredient}}&lt;/td&gt; &lt;td ng-repeat="alternative in json.alternatives track by $index" ng-if="$parent.$index === $index"&gt;{{alternative}}&lt;/td&gt; &lt;/tr&gt; &lt;...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Why are there so many types of number in Java when long and double work every time?<p>Now I have been trying to learn Java Programming, I want to know why do...
<p>Great question, especially if you're coming from a language like <code>JavaScript</code> which does not make a distinction between types of numbers.</p> <p>Java is a bit more strict than those languages, and everything you write is first compiled to what is called byte code, which is sort of like assembly language, ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: IIS 7.5 only shows homecontroller<p>I have my IIS set up like this:</p> <p><img src="https://i.stack.imgur.com/qAANw.png" alt="Layout"></p> <p>The default ...
<p>Found the sollution:</p> <p>The problem was that the /api worked as root, so /api/api/videos would call the video controller.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Validate a user input string to match specific pattern using regex in java<p>I need to validate a user input string to match specific pattern using regex in ...
<pre class="lang-none prettyprint-override"><code>sv here "sv" is always mandatory (?:32|64) followed by 32 or 64, [ic] then "i" or "c" - then "-" [ab] then "a" or "b" - then "-" and then " " an empty space (?:xxx)+ and then a possible repetition on th...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Deduping a StringBuilder List of Items in C#<p>I have a situation where I need to dedupe a list of columns in a SQL select statement that is being generated ...
<p>Here's another way to do it without having to hard-code the prefix and suffix elements:</p> <pre><code>// Encapsulate the behavior in an extension method we can run // directly on a StringBuilder object public static StringBuilder DeduplicateColumns(this StringBuilder input) { // Assume that we can split into l...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Giving the different distance between two points using wifi and 3G<p>I am calculating the distance between two locations like below</p> <pre><code> ...
<p>You invariably will not get the same location for both. In fact, if you come back to the exact same location tomorrow and turn on location services, you might not get the same latitude and longitude even if you stayed with the same technology.</p> <p>The latitude and longitude you receive from a <code>CLLocationMan...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the .springBeans file?<p>I have created a small Spring project recently and this file appeared in project root folder:</p> <p><strong>.springBeans</...
<p>If you open <code>Spring Explorer</code> tab in Eclipse (you have to select your project afterwards) there you should see <code>Config Files</code> tab. </p> <p>Here you can add your configuration files for example, and everything added in this list which you see will be stored in <code>.springBeans</code> file, wh...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Function returns generator object<p>I am trying to populate a nested dictionary with a path to a file. First I unzip a file bundle for each node in the clust...
<p>The <code>glob.iglob()</code> function is supposed to be used in a memory efficient way, that is it does not create data in memory until evaluation is required. From the documentation:</p> <blockquote> <p>Return an iterator which yields the same values as glob() without actually storing them all simultaneously.</...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unsupported attachment<pre><code> private void sendPdf(String file) { // Uri uri = Uri.fromFile(new File(file)); Uri uri = FileProvider.getUri...
<p>Add <code>android:requestLegacyExternalStorage=&quot;true&quot;</code> at manifest file.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Alfresco Javascript Action to remove all cm:contains but primary parent<p>I have a workflow that will place files into different folders for linking purposes...
<p>Found the answer by using the parent methods instead</p> <pre><code>var primaryParent = document.parent; var parents = document.parents; for(var parent in parents){ if(parents[parent].nodeRef + "" !== primaryParent.nodeRef + ""){ parents[parent].removeAssociation(document, "cm:con...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: multiple buffers using threads<p>I need some algorithm help with a multithreaded program I'm writing. It's basically the cp command in unix, but with a read ...
<p>Being a windows guy who does not use file descriptors I might be wrong with the in's and out's but I think this needs to be done in your main in order to setup the threadData structures.</p> <pre><code>producerData.fd = in; consumerData.fd = out; </code></pre> <p>Then declare ONE SINGLE object of type bufType for...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use minAreaRect() function without getting error?<p>I have a problem that has ruined my project:</p> <pre><code>def extract_candidate_rectangles(imag...
<p>The stack trace shows you the line in which the error occured:</p> <pre><code>min_rect = cv.minAreaRect(cnt) </code></pre> <p>Now, you want to take a look at this line of the error:</p> <pre><code>cv2.error: OpenCV(4.2.0) /io/opencv/modules/imgproc/src/convhull.cpp:137: error: (-215:Assertion failed) total &gt;= ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Property Observers on NSUserDefaults<p>I have a group of buttons, and when two buttons are pressed, then an NSUserDefault is triggered,but I need an observer...
<p>The easiest way to do that is to combine both user defaults and animations on a computed variable as follow:</p> <pre><code>var defaultName:String{ get { var returnValue: NSString? = NSUserDefaults.standardUserDefaults().objectForKey("defaultName") as? NSString if returnValue == nil //Check fo...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to read content of file stored on server using java?<p>How to read file stored on server using java? I have .txt file stored on server, how to read conte...
<p>That code works fine for files found in the file system. Path object is designed specifically for this.</p> <p>When you want to access a remote file, it no longer works.</p> <p>One easy way to read the file is this:</p> <pre><code> URL url = new URL("https://wordpress.org/plugins/about/readme.txt"); String...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Apollo Client is not reading variables passed in using useQuery hook<p>Having a weird issue passing variables into the useQuery hook.</p> <p>The query:</p> ...
<p>[Solved]</p> <p>In reading through the stack trace I noticed the issue was referencing <code>graphql-query-complexity</code> which I was using for validationRules. I removed the validation rules and now everything works! Granted I don't have validation at the moment but at least I can work from here. Thanks to ever...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is [ConcurrencyCheck] decoration non-functional?<p>I am trying to implement Optimistic Concurrency checking in a Core project. I display the record to be edi...
<p>I was reading it wrong enough. I just automatically used SaveChangeAsync without the await and did not consider it would return before the update was completed. I changed it to .SaveChanges and it caught the exception.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to return all IDs that contain non-null values for each date of a date range?<p>I am working with a table which contains monthly readings for a series of...
<p>If I understand correctly, you want to count the months in the overlap period:</p> <pre><code>select dt.id, count(distinct trunc(dt.occurrance, 'MON')) from dates_test dt where dt.occurrance &gt;= trunc(date '2014-03-06', 'MON') and dt.occurrance &lt; add_months(trunc(date '2014-04-06', 'MON'), 1) group by dt...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Reducing size of dSYM files for symbolication<p>We are looking for ways to reduce the size of dSYM files from Apple platforms. We need dSYM files just for sy...
<p>Crashlytics converts dSYMs to cSYMs and uses these cSYMs for symbolication. This conversion happens on client's Macs. You might want to look into the final size of this cSYM file that is actually uploaded to crashlytics.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Firestore permutation explosion of composite index<p>I'm stuck in the composite index of firestore. I have a couple of fields under a user, which are like A(...
<p>There is no tooling that will create all the desired combinations automatically. However, the <a href="https://cloud.google.com/firestore/docs/query-data/indexing" rel="nofollow noreferrer">documentation</a> suggests that you can use the <a href="https://firebase.google.com/docs/cli" rel="nofollow noreferrer">Fireb...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Unwanted space in substring using powershell<p>I'm fairly new to PS: I'm extracting fields from multiple xml files ($ABB). The $net var is based on a patter...
<p>Since your first characters in the first line of <code>$net</code> after <code>$net = $_.Context.PostContext</code> contains the split characters, a blank line will output as the first element of the output. Then when you stringify output, each split output item is joined by a single space.</p> <p>You need to selec...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use part of image as button background in android?<p>I have an .png image where i have formed some buttons in one image . now i want to use those figu...
<p>If the button is the child of your FrameLayout, add this to your FrameLayout in xml.</p> <pre><code> android:background="@drawable/your_png" </code></pre>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: C# SQL Server backup of a remote database to the remote default backup location without direct access to the remote location?<p>TL;DR - I want the server to ...
<p>Thank you @SeanLange </p> <blockquote> <p>Pretty sure you would need to use dynamic sql in this case. Then the path will relative to where the sql is executed.</p> </blockquote> <p>I changed my code to add:</p> <pre><code> private static void WriteBackupSp (Server remoteServer, string dbName, out string storedP...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Setting Apache VirtualHost up for proper SNI handshake<p>I have a problem with an Apache machine that won't match the server name expected from the client, r...
<p>This is not a problem of SNI but of a missing chain certificate. From the report of <a href="https://www.ssllabs.com/ssltest/analyze.html?d=genderize.io&amp;latest" rel="nofollow">SSLLabs</a>:</p> <pre><code>Chain issues Incomplete ... 2 Extra download RapidSSL SHA256 CA - G3 Fingerprint: 0e34141846e7423d37f...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: hash password using aws-crypto<p>I wonder how one would hash a password using aws-crypto (aws-encryption-sdk-javascript). I already used the <code>@aws-crypt...
<p>The aws-crypto client-side library is primarily aimed at encryption/decryption use cases. If I understand your use case, I think a regular salted password hash would be appropriate.</p> <p>The <a href="https://www.npmjs.com/package/bcrypt" rel="nofollow noreferrer">bcrypt</a> package is quite popular and has a good...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django complementary external source authentication<p>I'm trying to build a Django website that will be maintained and used by university students mainly. I ...
<p>To authenticate users using the university API, all you need to do is to write <a href="https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#writing-an-authentication-backend" rel="nofollow">an authentication backend</a>. You can then create a local user for these uni users the first time they login, since...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Python cx_freeze 4.3.4: Setting targetName causes errors<p>I am very new to cx_freeze and I am trying to understand it a bit better, I have this setup.py fil...
<p>Reposting as an answer:</p> <p><code>targetName</code> is the filename of the executable it's going to produce. On Windows, executables must have a .exe extension, so you'll need to set it as <code>'hello.exe'</code> rather than just <code>'hello'</code>.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Using matplotlib on Cloud 9 Ide<p>I'm trying to use matplotlib on Cloud9 ide, but here's what happens:</p> <pre><code> &gt;&gt;&gt; import matplotlib ...
<p>It seems this is an older version of matplotlib.</p> <p>Take a note on commit <a href="https://github.com/matplotlib/matplotlib/commit/f4adec7b569cfd0b30e0f8367ba8618b9e160f92#diff-d40040ae55d9f105fafba8699fc75e16L5" rel="nofollow">f4adec7</a> from Aug 2013 where "import urllib" line has been removed from <code>tex...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: PHP: merge multidimensional, associative arrays (LEFT JOIN simulation - keep duplicates, keep non-existent elements)<p>I got two associative, multidimensiona...
<p>This is an option, since you have this $arrayOffered as a kind of master file I suggest to build a hash with this array and use later on the foreach look for sold array.</p> <pre><code>$arrayOffered = array( 0 =&gt; array('item' =&gt; 'product_1', 'Category' =&gt; 'ABC'), 1 =&gt; array('item' =...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Codesynthesis can't parse xs:anyType c++<p>My xsd element is </p> <pre><code>&lt;xs:complexType name="timeseries"&gt; &lt;xs:sequence&gt; &lt;xs:element n...
<p>Although i have downloaded the latest realease which has an option <code>--generate AnyType</code> i couldn't get the data. Unfortunatelly i had to change the XSD and now i have different sequences with different types (xs:boolean,xs:float, etc) depending on the data.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Leadfoot session object returns promises<p>I am attempting to use the leadfoot module for functional testing with the intern and selenium.</p> <p>For this t...
<p>The <code>this.remote</code> object is a <a href="https://theintern.github.io/leadfoot/Command.html" rel="nofollow">Command</a> object, not a <a href="https://theintern.github.io/leadfoot/Session.html" rel="nofollow">Session</a> or <a href="https://theintern.github.io/leadfoot/Element.html" rel="nofollow">Element</a...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Different Color for Each Cell in a Range<p>I need some help here, I need my macro to color each cell in a range, but each cell has to have a different color ...
<p>You're picking a random colour correctly (albeit maxing out at 51). You're then just applying that one colour to all of your cells. You need to choose a random colour each time you apply it to a cell.</p> <p>If you want to do it without using <code>GoTo</code> etc.</p> <pre><code>Dim RangeX As Range, avoidcolours ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Setting TLS protocol for HTTPSURLConnection<p>I need to work against an F5 machine which uses TLS protocol connection. For that I built a class which uses HT...
<p>I understood that actually I can bypass the certificate issue in order to continue with my activity. So I used <a href="https://code.google.com/p/misc-utils/wiki/JavaHttpsUrl" rel="nofollow noreferrer">this</a> to achieve this bypass.</p>
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Java covariant array bad?<p>I've been told by several people that Java allows covariant array subtyping in other words if A is a subtype of B, then A[] is a ...
<p>Very simple.</p> <pre><code>String strings[] = {"Broken","Type", "system"}; Object objects[] = strings; objects[0] = 5; // compiles fine, but throws ArrayStoreException at runtime </code></pre> <p>Covariant types are not bad as long as you as you take things out, but the moment you put things in, the whole thing ...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Split string returning an extra string at the end of the returned array<p>I am trying to split a string using <code>;</code> as a delimiter.</p> <p>My output...
<p>The <code>string.Split</code> method doesn't remove empty entries by default, anyhow you can tell it to do that, by providing it with the <code>StringSplitOptions</code>. Try to use your method with the <code>StringSplitOptions.RemoveEmptyEntries</code> parameter.</p> <pre class="lang-cs prettyprint-override"><code>...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: select all records by array of parameters<p>I receive an array of parameters from POST request, they look like the following:</p> <pre><code> Parameters:...
<p>After playing with it for a while and with great help of my friend, here is the solution:</p> <p>POST parameters should look like the following:</p> <pre><code>search[0][minor] = 1 search[0][major] = 1 search[0][proximity_uuid] = 1111 </code></pre> <p>...</p> <p>and query should be:</p> <pre><code>result = para...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Connecting Azure public services from on-premise<p>How does network traffic flow from on-premise to the Azure public service if there's a site-to-site VPN-tu...
<p>From <a href="https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways" rel="nofollow noreferrer">what is VPN gateway</a>,</p> <blockquote> <p>A VPN gateway is a specific type of virtual network gateway that is used to send encrypted traffic between an Azure virtual network and an on-p...
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to continue using TestFlight functionality without waiting for App Review<p>TestFlight is closing due to Apple acquisition and I'm in the process of tran...
<p>From what I've seen, only your initial release to external testers is submitted for review. Once it's been reviewed any subsequent uploads shouldn't need to be reviewed. I can't be 100% sure about that though, maybe someone can confirm?</p> <p>Personally though, I've moved over to use Crashlytics (Now Fabric). It m...