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:
Docusign JWT application access token fails when creating and sending envelop<p>following docusign documentations I have written code to send and downloaded ... | <p>Here are the things that you must ensure:</p>
<ol>
<li><p>You have an Integration key (clientID) that is configured correctly.</p></li>
<li><p>You have an RSA Private key. that key was copied/pasted exactly as given to your configuration file. New lines must be preserved</p></li>
<li><p>Your URLs are matching the e... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Localhost, subdomain, using XAMPP<p>I am a web developer and frequently want to view different projects on my local machine. Currently my localhost is set to... | <p>When creating more than one virtual host on the same port, you must specify each host name. Otherwise you only have one site bound to port 80, and all localhost calls will direct to the folder you specified.</p>
<p>Here is the missing code, add just before or after similar code in c:\xampp\apache\conf\extra\httpd-v... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
error: The method 'signInWithPhoneNumber' isn't defined for the class 'FirebaseAuth'<p>i can't find <code>signInWithPhoneNumber</code> method with firebaseAu... | <p>no method for <code>signWithPhoneNumber</code> in <code>FirebaseAuth</code> </p>
<p>to sign with phone number after code sent to user use <code>signInWithCredential</code> method </p>
<p>as example : this method will return <strong>firebaseUser</strong> if code passed is true and <strong>null</strong> if not </p>
... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
convert firestore timestamp to date into different format<p>the timestamp variable is stored in the firestore , and when extracted it is then in the format o... | <p>You should use the <a href="https://firebase.google.com/docs/reference/js/firebase.firestore.Timestamp.html#todate" rel="noreferrer"><code>toDate()</code></a> method of the Firestore <a href="https://firebase.google.com/docs/reference/js/firebase.firestore.Timestamp" rel="noreferrer"><code>Timestamp</code></a>:</p>
... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is there a way to make a dictionary global in TCL 8.4<p>I build a dictionary in tcl 8.4 inside a procedure. How do I use the constructed dictionary in anothe... | <p>You can use the <a href="https://www.tcl.tk/man/tcl8.4/TclCmd/global.htm" rel="nofollow"><code>global</code></a> command to make a variable or array a global one.</p>
<p>For instance:</p>
<pre><code>proc a {} {
global test
set test(key1) "value1"
set test(key2) "value2"
lappend keylist "key1"
l... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to Send email with High Importance in asp.net VB<p>How do I set the code below to generate email with high priority in the subject line? Thank you for an... | <p>I believe you can set the <code>Priority</code> property on the <code>MailMessage</code>. See <a href="https://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.priority(v=vs.110).aspx" rel="nofollow">MSDN</a> for more details.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I add an EventListener, to delete an li after being clicked on?<p>This is my code so far: </p>
<p><div class="snippet" data-lang="js" data-hide="fals... | <p>What you can do is:</p>
<ol>
<li>bind one event to the container (the list)</li>
<li>ensure the element clicked (target) is what you want (e.g., an LI)</li>
<li><code>remove()</code> that element, if so</li>
</ol>
<p>This can be done with:</p>
<pre><code>document.querySelector('#list').addEventListener('click', f... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
downgrade to Xcode 6.0.1 is giving compiler error in code<p>I just downgraded from Xcode 6.1.1 to 6.0.1 because in the latest version indexing took way to lo... | <p>Your reference "<code>pianoButtonsSoundNames[button]</code>" is failing because your UIButton object "<code>button</code>" isn't an integer type, and instead should have an integer index (between 0 and whatever). </p>
<p>I suspect that what you really wanted to do here was something like:</p>
<p>"<code>pianoButto... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Makefile- How to define variables in a target that creates other targets?<p>I don't fully understand how to use target-specific variables to act as targets t... | <p>You cannot change the value of make variables depending on the target you're building; they are processed before all that. You can, however, have rules with multiple targets and produce your desired behavior with them. For example:</p>
<pre><code>VAR = progName otherProgName
ATARGET: progName
echo Do actions f... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Passport js authenticate by url<p>I'm using Express JS and Passport JS for my app.</p>
<p>I want to give a new user the opportunity to automatically login, ... | <p>Maybe <a href="https://github.com/yarax/passport-url" rel="nofollow">https://github.com/yarax/passport-url</a> strategy will be useful for you</p>
<p>Base logic is getting argument from url </p>
<pre><code>UrlStrategy.prototype.authenticate = function(req, options) {
var self = this;
function verified(err... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Cannot import python module (shared object) in Windows 10, but can do so in Linux<p>I am trying to set up my Windows 10 dev environment same as my Linux, as ... | <p>I had similar issues when I switched to pycharm as well. To me is seems like the environment (Project Interpreter) that we selected affects what we install and how. Have to tried to conda install them and see if that works?</p>
<p>There is also a possibility that AquisATP is available only on Linux and not on Windo... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using a button inside an iframe to reload a div outside the iframe<p>I currently have: </p>
<pre><code><script>
var btn = document.getElementById("doR... | <p>Ok, so the problem is that your form is submitting before the timeout executes the function.</p>
<p>You should use jQuery to submit the form (<a href="http://api.jquery.com/submit/" rel="nofollow">jQuery submit</a>) with event.preventDefault() to stop the submit-button from actually reloading the page.</p>
<p>this... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
VHDL-Switches Proper Code<p>Hello I want to get this done</p>
<p><a href="https://i.stack.imgur.com/xh5fB.jpg" rel="nofollow noreferrer"><img src="https://i... | <p>This is an approximation of what your code would look like as valid VHDL:</p>
<pre><code>library ieee;
use ieee.std_logic_1164.all;
entity alarm is
port (
on_off, motion_sensor, light_sensor,
sound_sensor, camera_sensor, ip_sensor,
temperature_sensor: in std_logic;
... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
AWS iOS SDK Cognito Developer Authentication (Swift)<p>I am having a hard time figuring out how to return developer credentials provided by my server (via AW... | <p>I believe I have figured it out. I needed to utilize BFTask which is built for handling background tasks with completion.</p>
<p>For people struggling with a Swift implementation of developer authentication with Cognito who might have a similar setup to me, this is how I accomplished it:</p>
<pre><code>class Examp... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Binary Tree- How to delete elements; java<pre><code>node root=null;
public node delete(node node, int val) {
if(node == null) {
return node;
}... | <p>Your code should work. Maybe something is wrong with how you are inserting elements. Can you please share your full code?</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How best to handle multiple .tfvars files that use common .tf files?<p>I am going to be managing the CDN configurations of dozens of applications through Ter... | <p>I found the best way to handle this case (without any 3rd party tools is to use) Terraform workspaces and create a separate workspace for each <code>.tfvars</code> file. This way I can use the same common <code>.tf</code> files and simply swap to a different workspace with <code>terraform workspace select <worksp... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Githib is putting my branched commits in to my master branch. Is this expected behavior?<p>I've done some experimenting with git branching and one particular... | <p><strong>Merge was using fast-forward</strong></p>
<p>I am using the follwoing code instead:</p>
<pre><code>git merge --no-ff
</code></pre>
<p>I looked at the documentation on: <a href="https://www.atlassian.com/git/tutorials/merging-vs-rebasing#the-golden-rule-of-rebasing" rel="nofollow noreferrer">Attlasian</a> ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
unsupported pseudo: mobile-pagecontainer<p>I'm trying to setup a function <code>beforeshow</code> on a page container. Reading the jquery mobile docs. The ... | <p>I think the problem was because I was trying to bind to a jquery mobile event before jquery mobile was initiated.</p>
<p>Moving <code>$(':mobile-pagecontainer').pagecontainer()</code> inside a <code>pageinit</code> function fixed the issue for me:</p>
<pre><code>$(document).on("pageinit", "#settings", function(e) ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Delay when changing screen in libGDX<p>I'm new member in libGDX . i want delay screen when changing screen
Here my code</p>
<pre><code>myStage.addAction(Act... | <p>Depending on when you want it to be done, you need to call:</p>
<pre><code>myStage.act();
</code></pre>
<p>And an example to get the output your looking for would be:</p>
<pre><code>if(player.isDead()) {
myStage.act();
}
</code></pre>
<p>But note, this is not an effective way to transition screens.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Securing a site's data and combating spam and click bots<p>I've recently began coding with AJAX and AngularJS and async GET and POST requests are really cool... | <p><strong>Security</strong></p>
<p>The first magic word would be <code>Prepared Statements</code>. No need for <code>mysqli_real_escape_string</code>.</p>
<p>With prepared Statements, you define your input as input. No chance, that there would ever mysql injection happen then.</p>
<p>Also never trust a user's input... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Check if first word in string pleases condition in SQL<p>I am trying to filter <a href="https://support.google.com/webmasters/answer/1061943?hl=en" rel="nofo... | <p>The SQL <code>LIKE</code> operator in fact can check for something beginning a string:</p>
<pre><code>SELECT *
FROM sessions
WHERE user_agent LIKE 'AdsBot-Google%';
</code></pre>
<p>Note that this would only match records where the user agent field begins with <code>AdsBot-Google</code>; it would not match <code>A... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Find the name of the invoked method of a Func delegate<p>I have a simple invoker where, in order to be able to use a cache library , I need to know the name ... | <p>You need an expression to parse the method's call name, but you can introduce some kind of two-level cache: one for the actual method call (which does not expire), and one for the method's call result (which may expire).</p>
<p>I think, your second solution goes into the right direction; just compile the expression... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to refresh DOM when props change in Svelte?<p>I have a grid-like structure with a pointer object coming from a parent. Now with some operation, the point... | <p>With your code, the value of <code>activeBox</code> is in fact propagated to the child, but you don't see it because there is no reactive code that use it in the child. </p>
<p>Reactive code is re-executed and re-evaluated when the value of the variables it depends upon change, but only for the variables immediatel... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I edit the permissions that Adobe Media Server creates directories with?<p>OS: CentOS 6.6 AWS-provided AMI found <a href="https://aws.amazon.com/marke... | <p>Editing the <code>Mask</code> property of <code>Server.xml</code> will do it. I set it to <code>000</code>, and it worked.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Getting bad request and unexpected token in json at position 0<p>I am creating a attendance manger when I call checkin api I get error for unexpected token a... | <p>You never transform your data to JSON format, that's why the string is not a valid JSON string (and the parser tells you exactly that).</p>
<p>So you need to convert it to a JSON string, simply calling <code>JSON.stringify</code> on your object, giving you this instead of your call:</p>
<pre class="lang-js prettyp... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How do I insert a cookie in Python for web scraping?<p>I'm making a web scraper that I will host on my Raspberry Pi B, but the website I need to scrape from ... | <p>This is how you can do it using the urllib.</p>
<pre><code>import urllib2
handler = urllib2.HTTPHandler(debuglevel = 1)
req = urllib2.Request('http://www.example.com/')
req.add_header('Cookie', (".ROBLOSECURITY=26D59EEB62BB82BA679D88E391F5E43448FDC5EEE74BEBBFD9879204EABA2813E4C00248E65D7ADBFE0B91F1B"
"140E4DD6... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
For Each xxx in Column not working as expected<p>I am trying to convert all string dates to number for an entire column. Based on <a href="https://stackover... | <p>In general, when you are looping through something, it is always a good idea to <code>Debug.Print iterator.Address</code>, or in the case of the OP's code <code>Debug.Print rngCell.Address</code>.</p>
<p>Adding a <code>.Cells</code> at the loop of column would make it work:</p>
<pre><code>Sub TestMe()
Dim myC... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does Safari allow a scroll-based video to work as expected, while other browsers don't?<p>I am trying to replicate <a href="https://codepen.io/ollieRoger... | <p>I found an older <a href="https://stackoverflow.com/questions/13419409/html5-video-play-by-scrolling-with-the-mouse-wheel">question</a> that contains a key comment by lalengua which I'll just quote here:</p>
<blockquote>
<p>It's important to mention that the video has to be encoded with Keyframes every half or qu... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Append one column from fileB onto end of FileA<p>This is similar to </p>
<p><a href="https://stackoverflow.com/questions/17095306/how-to-add-a-column-from-a... | <p>One simple way, using bash process substitution</p>
<pre><code> paste file1 <(cut -f5 file2)
</code></pre>
<p>Without bash extensions:</p>
<pre><code> cut -f5 file2 | paste file1 -
</code></pre> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
List of library versions in stable releases<p>I am developping a free software, and this software is using a shared library from the system.</p>
<p>Unfortun... | <p>I have found <a href="http://www.philippwesche.org/200811/whohas/intro.html" rel="nofollow">whohas</a>, which is a tool that does what I was looking for.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I send HTTP headers on an FTP URL?<p>Is there any possibility to send HTTP headers on an ftp:// URL? How would I go about it?</p>
<p>What I want is HTTP... | <p>It's NOT doable.</p>
<p>You cannot redirect <code>ftp://</code> URL to <code>http://</code> URL. The FTP protocol has no redirects. FTP protocol does not even know what URL is. Nor does a web browser (acting as an FTP client) send "user agent" or anything similar to the FTP server.</p>
<p>There are also no headers... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Obtain the smoothed hazard estimates<p>How can I obtain a data set or table with the smoothed hazard estimates and the 95% confidence intervals with time whi... | <p>The outsurv data set contains the hazard function estimates and the confidence interval. </p>
<pre><code>Proc lifetest data=Melanoma outsurv=hazards;
</code></pre>
<p>EDIT:
The above generates an estimate for the hazard function, not the smoothed estimate and only works for method=LT.</p>
<p>To obtain the smooth ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
#undef seems to have no effect on macro redefinitions (warning C4005)<p>Trying to fix the following "macro redefinition" warning:</p>
<pre><code>1>Path\t... | <p>If you really have to use two libraries with overlapping identifier names (poor you, I feel with you) then the only clean way is to use them from separated .c files.<br>
I.e. make one .c file which includes the header for one lib and a second .c file which includes the header of the other lib.<br>
Problems with over... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Problems with AS3 scrollbar script<p>I have this symbol for a scrollbar in adobe flash:<br />
<img src="https://i.stack.imgur.com/cLgdz.png" alt="scrollbar s... | <p>To fix 1-st issue add <code>e.updateAfterEvent</code>:</p>
<pre><code>protected function _dragHandle(e:MouseEvent){
_moveHandle(mouseY - _mousePrevPos);
_mousePrevPos = mouseY;
e.updateAfterEvent();
}
</code></pre>
<p><strong>UPDATE</strong></p>
<p><code>mouseY</code> returns <code>Number</code> not <... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't open VSCode with other user<p>Well basically i created another user, and i'm tring to open a node project, but i can't use "code ." (i think it's becau... | <p>I had the same issue. I was able to finally get it to work by running ...</p>
<pre><code>sudo code . --user-data-dir='.'
</code></pre>
<p><strong>OR</strong></p>
<p><code>sudo code --user-data-dir /home/fregie/.config/Code/</code> doesn't work because it needs to be a new user data directory, one whose permission... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Call variable when inside double quotes<pre><code>CRED_DATA = 'randomcred'
payload = "{\n \"password\": \"CRED_DATA\" ,\n \"username\": \"dom\\\\user\"\n}"... | <p>You can try <a href="https://www.geeksforgeeks.org/formatted-string-literals-f-strings-python/" rel="nofollow noreferrer">F-Strings</a> in Python:</p>
<pre><code>CRED_DATA = 'randomcred'
payload = F"{{\n \"password\": \"{CRED_DATA}\" ,\n \"username\": \"dom\\\\user\"\n}}"
print(payload)
</code></pre>
<p>Output:<... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why is CURLOPT_CAINFO defined in the command line, but not in web?<p>I tried running a PHP script that var_dumps CURLOPT_CAINFO in the command line. It gives... | <p>You'll need to enable CURL in the PHP installation that Apache points to. See also: <a href="https://stackoverflow.com/questions/1347146/how-to-enable-curl-in-php-xampp">How to enable cURL in PHP / XAMPP</a>. Check the settings by calling:</p>
<pre><code>phpinfo();
</code></pre>
<p>in your script and look at the d... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Read a file after cloning a repository with go-git<p>I want to be able to do run-time <code>git</code> manipulations with <code>go</code>.</p>
<p>I recently... | <p><a href="https://godoc.org/gopkg.in/src-d/go-git.v4#Clone" rel="noreferrer">From the docs</a>:</p>
<blockquote>
<p>Clone a repository into the given Storer and worktree Filesystem with the given options, <em>if worktree is nil a bare repository is created</em>.</p>
</blockquote>
<p>Don't pass a nil filesystem if... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to Validate the non active record models in rspec?<pre><code>#item class
class Item
include ActiveModel::Model
#validations from activemodel class
... | <p>Ensure that you have the <code>shoulda</code> gem in your <code>Gemfile</code>. And check the syntax, shoulda expectations should look like this:</p>
<pre><code>describe Item do
it { is_expected.to validate_presence_of(:url) }
end
</code></pre> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Is LAMP messing up with my PHP?<p>I'm trying to fix a website, with a slider in front page. When I see it in local, there is no problem whatsoever. Once onli... | <p>It can be caused by 2 main reasons:</p>
<ol>
<li>Case sensitivity. Linux is case sensitivity to it's files. while Windows is not. so if you have defined path like <code>folder/image.png</code> when the real name is actully <code>Folder/image.png</code>. it will only work in windows.
make sure you defined in your fi... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Does sshd sends data into stdin after SSH_MSG_CHANNEL_REQUEST exec<p>I am writing part of the software that has to execute remote shell command. This command... | <p>With the help of the <a href="https://stackoverflow.com/users/13317/kenster">Kenster</a> I have found the answer.</p>
<h3>Yes, sshd sends data into <em>stdin</em> after 'SSH_MSG_CHANNEL_REQUEST exec'.</h3>
<p>But you need to be careful with what you are sending. In my case, the methods that formed the response mes... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to get key position from a HashMap in Java<p>How can I get the key position in the map? How can I see on which position is "Audi" and "BMW"?</p>
<pre><c... | <p>As other answers state you need to use a structure like <code>java.util.LinkedHashMap</code>. LinkedHashMap maintains its keys internally using a <code>LinkedEntrySet</code>, this does not formally provide order, but iterates in the insertion order used.</p>
<p>If you pass the <code>Map.keySet()</code> into a List ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Show a Client Alert After the codebehind has been processed. ASP.NET<p>I have this code behind in my ASP.NET 4 Web Forms app:</p>
<pre><code>Protected Sub B... | <p>I do something similar. I've hacked some working code to simplify it as an example for your particular use:</p>
<pre><code> private void RegisterJavascriptForUpdatePanelExample(UpdatePanel myUpdatePanel, string myMessage)
{
const string JAVASCRIPT_TEMPLATE = "javascript: jQuery(function($) {{ alert({... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
assigning date to each element of a column vector in R<p>I have a column vector, which embodies the mean monthly rainfall data. I want to assign a date to ea... | <p>You can create sequences of dates with <code>seq.Date</code> (which is a <code>seq</code> method that's automatically deployed on <code>Date</code> objects) or with <code>timeBasedSeq</code> from the <code>xts</code> package.</p>
<p>If you're working with <code>xts</code> anyway, I'd suggest <code>timeBasedSeq</cod... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Sending an email when a thread completes in coldfusion<p>So I have this ridiculously long process that calls a third party API, parses the data of over 3000 ... | <p>Um, unless I'm crazy, why can't you just put the cfmail at the end of the thread? ie before the closing cfthread tag?</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
find_by with json array executing a query with IN instead of searching for the whole array<p>i have a model (area) with a jsonb field (coordinates):</p>
<pr... | <p>Is this what you are looking for?</p>
<pre class="lang-rb prettyprint-override"><code>Area.find_by("coordinates = '[1, 2]'")
</code></pre> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to force foreign key generation between an @Entity and a @ElementCollection?<p>Here is my code:</p>
<pre><code>@Entity
@Table(name="POSTS")
public class... | <p>Unfortunatelly you cannot instruct Hibernate to generate a foregin key, as it tries automatically to generate them. Because they are generated in other contexts (like for <code>@ManyToOne</code> annotations or when you leave out the <code>@CollectionTable</code> annotation), I am pretty sure it is a bug.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How can I prepopulate the structure of a complex nested form on the Create button in a List view in react-admin?<p>The <code>List</code> View of react-admin ... | <p>So it looks like you need default values for create form.</p>
<p><strong>Documentation</strong>: <a href="https://marmelab.com/react-admin/CreateEdit.html#default-values" rel="nofollow noreferrer">https://marmelab.com/react-admin/CreateEdit.html#default-values</a></p>
<pre><code>const postDefaultValue = { created_... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular ng-show Still Shows <div> Element When Empty<p>How can I hide/remove the containing <code><div></code> element when the value is empty:</p>
<p... | <p>You are checking value of <code>ID</code> property which is not the <code>ID</code> within <code>info</code> object so use <code>info.ID</code> within the <code>ng-show</code>.</p>
<pre><code><div class="small" ng-show="info.ID">{{ info.ID }} | </div>
<!-- -----------------------^^^^^^^--------------... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't find .ocamlinit file<p>I'm trying to get an OCaml environment set up for the Real World OCaml book.</p>
<p>I need OCaml, OPAM, Utop and the Core libra... | <p>The file is located in your home directory. It is your current directory when you open your terminal.
You don't see this file because it starts with a ".", this it's hidden and finder can't see it. In your terminal you can see all hidden files by </p>
<pre><code>ls -a
</code></pre>
<p>I recommend you use emacs to... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Determining which polygon contains the majority of a line - Oracle Spatial<p>I have an oracle database (11g spatial) that includes a series of area polygons ... | <p>The principle is like this:</p>
<ol>
<li>Correlate mains and areas. Assuming you have many mains and many areas, the most efficient approach is to use SDO_JOIN</li>
<li>For each couple (main/area) returned, compute their intersection (SDO_GEM.SDO_INTERSECTION) and measure the length of that intersection (SDO_GEOM.S... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Array property in JSON object updated via foreach - updates all keys<p>I'm kind of pulling my hair out on this one. I am trying to build an array of JSON obj... | <p>You are referencing the same instance of the array in every object that you build.</p>
<p><code>userSelects[idx].excludedUsers = excludedUsers;</code> does not copy the <code>excludedUsers</code> array into a new array for the object, it assigns a reference to the original array to <code>userSelects[idx].excludedUs... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
At.js Mentions Callbacks and Duplicates<p>Anyone experience with <a href="https://github.com/ichord/At.js" rel="nofollow">At.js</a> that can help out? I'm tr... | <p>I solved this problem by using a custom "<strong>insertTpl</strong>" for the inserted mentioned names:</p>
<pre><code>var at_config = {
at: '@',
data: mentionablesList,
displayTpl: '<li><span>${name}</span></li>',
insertTpl: '<a href="${url}" data-type="mentionable" data-i... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
"expected identifier, found (" when trying to bind a tuple variable<p>I'm playing with Rust a little bit, and got stuck. I've the following function:</p>
<p... | <p>The <code>mut</code> qualifier applies per-variable. When you are destructuring a variable, each variable can be mutable or not:</p>
<pre><code>fn add_one(h: (i32, i32, i32)) -> (i32, i32, i32) {
let (mut x, mut y, mut z) = h;
(x+1, y+1, z+1)
}
</code></pre>
<p>Of course, you don't need mutability here ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Do Laravel and Vue always use RESTful APIs to communicate?<p>After coding for a couple of years, I have implemented many different software services into app... | <blockquote>
<p>why did they mention to use REST API as if it wasn't default option</p>
</blockquote>
<p>For many years, offering an API in the backend for JS frontend consumption was not the default option. Traditional "round trip" applications use a form that submits to the server with a full page refresh, and I'd... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to move a file to another directory and write its filename to a file (create and append) within a loop in C# for SSIS Script Task?<p>Below is the code th... | <p>Start with the namespace:</p>
<pre><code>using System.IO;
</code></pre>
<p>To move the file, it's pretty simple:</p>
<pre><code>File.Move(sourceFilepath, destinationFilepath);
</code></pre>
<p>To write to a file, <a href="http://support.microsoft.com/kb/816149?wa=wsignin1.0" rel="nofollow">taken from MS</a>:</p>... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can I "see" Java Standard Libraries Offline<p>Well, I am using BlueJ. I know I can use them offline for sure. But would it be possible to see the Oracle docu... | <p>You can find the official documentation at oracle's download center.</p>
<p><a href="http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html" rel="nofollow">http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html</a></p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
angularjs typescript error in visual studio<p>h-ii every-body.</p>
<p>I install the angularjs.typescript and jquery.typescript from nuget package. But every... | <p>i found a solution :)</p>
<p>i dint't install the TypeScript 1.4 for VS2013. Fck my mind :D</p>
<p>after installed problem solved. </p>
<p>TypeScript 1.4 for Visual Studio 2013</p>
<p><a href="https://visualstudiogallery.msdn.microsoft.com/2d42d8dc-e085-45eb-a30b-3f7d50d55304" rel="nofollow">https://visualstudio... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to enable logging for @RestController?<p>How can I automatically log any incoming <code>GET</code> url requests on a <code>REST</code> service written wi... | <p>You can just enable log4j org.springframework.security if you are using spring security, but it's very verbose:</p>
<pre><code><category name="org.springframework.security">
<priority value="ALL" />
</category>
</code></pre>
<p>Or you can implement an interceptor:</p>
<pre><code>public class ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Xamarin Forms Ui project (Multiplatform)<p>I am making this UI for a multiplatform app using Xamarin on my Macbook.
I have set FormsUI as startup project.
Xa... | <p>This particular error has been mentioned in the <a href="http://forums.xamarin.com/discussion/24942/cannot-compile-ios-project-since-last-update-failed-to-load-output-manifest-for-ibtool" rel="nofollow">Xamarin Forms forum</a>; basically, something in one of the iOS assets (e.g. a storyboard) is the cause. Unfortuna... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Get referring URL for Flask request<p>When a user visits our site and signs up, how can I capture which website they came from?</p>
<p>Be it search, a PR we... | <p><a href="http://flask.pocoo.org/docs/api/#flask.Request.referrer" rel="noreferrer"><code>request.referrer</code></a> contains the URL the request came from, although it might not be sent by the client for various reasons.</p>
<p>The attribute takes its value from the <code>Referer</code> (not a typo!) header:</p>
... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to zoom in when hover on image but make border stay in place?<p>I'm quite new to CSS and HTML and I want to create an image that zooms in fast when you h... | <p>Place the background image <code>div</code> within a container:</p>
<pre><code><div class="container">
<div class="bolimg"></div>
</div>
</code></pre>
<p>Move the dimensions and border to the container, and give it <code>overflow: hidden</code>:</p>
<pre><code>.container {
width: 200px... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Tableview not reloading custom accessory type<p>I'm trying to implement a "Done" method through a custom slide left on an item in a table view.
<img src="htt... | <p>I think your problem is this line in the block for the definition of the var, completedAction</p>
<pre><code>let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath) as CustomTableViewCell
</code></pre>
<p>This instantiates a new cell that never appears in your table view. Yo... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Rhinos Could not load file or assembly System.Core<p>I'm trying some mocking frameworks for c#.</p>
<p>I created an Windows Phone 8.1 project, then added an... | <p>The problem is because your Windows Phone 8.1 test project can't reference anything that isn't supported by Windows Phone 8.1/Windows Runtime; unfortunately, this includes your mocking framework.</p>
<p>The way I solve this problem is to move all of my unit testable code into a portable class library which I can th... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Windows PATH variable doesn't work if path of the executable isn't on disc C<p>I had some needs in setting up the Windows enviroment variable <code>PATH</cod... | <p>Check PathExt variable. </p>
<p>Your path is too complex. It stops on first error.</p>
<p>Plus there's nothing stopping you typing full paths.</p>
<p>I have ONE extra path to my path statement that isn't standard.</p>
<p>PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.LNK;.URL</p>
<p>[edit : move... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Upload file to hidden field in WedriverIO Using CucumerJS<p>Hi I need to automate a website using cucumberJS and webdriverIO. For that I need to Upload a fil... | <p>I got the solution for this Issue.Using webdriverIO we can execute javascript to change the style display from "none" to "block".</p>
<pre><code>client.execute(function() {
document.getElementById("element_id").style.display="block";
},function(err) {
client.uploadFile(localPath[,callback])
if(err){
console.log... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Delete lines that contain two strings<p>I am trying to delete some lines in a text file using <code>sed</code>. I only want to delete lines that contains two... | <p>This might work for you (GNU sed):</p>
<pre><code>sed '/strA/!b;/strB/d' file
</code></pre>
<p>If the line does not contain <code>strA</code> bail out. If it does and it also contains <code>strB</code> delete it.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Show/hide button in ruby with jQuery<p>I'm having problems with my button used to hide then show a form with jQuery. I put a path to signup in the button to... | <p>Do you need to mention the signup_path in the button, otherwise you could do it:</p>
<p><code><%= link_to "Add Car", 'javascript:void(0)', class: "btn btn-lg btn-primary" %></code></p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
convert CSV lines into Javascript objects<p>I have a simple csv file </p>
<p>people.csv:</p>
<pre><code>fname, lname, uid, phone, address
John, Doe, 1, 444... | <p>By doing this:</p>
<pre><code>arr = bufferString.split('\n');
</code></pre>
<p>you will have an array containing all rows as string</p>
<pre><code>["fname, lname, uid, phone, address","John, Doe, 1, 444-555-6666, 34 dead rd",...]
</code></pre>
<p>You have to break it again by comma using <code>.split(',')</code... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to use custom nib view in ViewController multiple times<p>I am trying to load a custom UIView from nib</p>
<blockquote>
<p>CustomView.swift</p>
</bloc... | <p>The whole point of your view class is that it loads the nib and adds the created view as a subview. It is also defined as the owner of the nib.</p>
<p>So, when your view controller tries to load the nib with itself as the owner it has all the outlet setters called on it, but it doesn't implement them, so it breaks.... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
BufferedReader inputstream blocks only until it receives the first input<p>I am using sockets to implement instant messaging.</p>
<p>I have the following Ja... | <blockquote>
<p>how can I get readline() to block until more input arrives?</p>
</blockquote>
<p>It <em>does</em> block until more input arrives. Your problem is that you're calling it in two nested loops, one of which ignores end of stream</p>
<p>Remove the outer <code>while (true)</code> loop. You're already loop... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Converting int to char in C# not working properly<p>I'm trying to do some basic letters to int and back to chars. Converting <code>char</code> to <code>int</... | <p>Add 64 back before casting to char and printing it out on console. </p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
DynamoDB NOT EQUALS on GSI sort key<p>As the title suggest, I'm in a situation where I need to fetch all records from a dynamo table GSI, given that I know t... | <p>Assuming that your sort key is actually numeric as shown in your example...</p>
<p>Then your best option would be to issue two separate queries..</p>
<p><code>AId = 1 and BId < 2</code></p>
<p><code>AId = 1 and Bid > 2</code></p>
<p>Actually, as I write this...I think it would work regardless of the type o... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to "cast" an Object<p>I have a function that receives an array of Objects.</p>
<p>I also have a class called <code>Rectangle</code> but when I iterate t... | <p>All right, I think we found it - you used square brackets instead of parentheses for the <code>Rectangle</code> constructor. As is, I think you're actually allocating two enormous multi-dimensional arrays of <code>Rectangle</code> objects. <a href="https://msdn.microsoft.com/en-us/library/microsoft.xna.framework.r... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
to make pydata handle string columns<p>I have a dataframe that has a few columns with floats and a few columns that are string. All columns have <code>nan</c... | <p>You can fill each column with the appropriate missing value. E.g.</p>
<pre><code>import pandas as pd
import numpy as np
col1 = [1.0, np.nan, 3.0]
col2 = ['one', np.nan, 'three']
df = pd.DataFrame(dict(col1=col1, col2=col2))
df['col1'] = df['col1'].fillna(0.0)
df['col2'] = df['col2'].fillna('')
df.to_hdf('eg.hdf... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Array size not passing to function<p>When passing an array to a function and using sizeof() in the fuction, it just returns the size of a single element (4).... | <p>You have to pass the array by reference to keep the size info:</p>
<pre><code>void arraysize(int (&arr)[15]);
</code></pre>
<p>with template to auto deduce the size:</p>
<pre><code>template <std::size_t N>
void arraysize(int (&arr)[N]);
</code></pre>
<p>So without template/STL, you have to pass the... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Angular pane splitter where one of the pane having form throwing form validation error<p><br/>
I trying to split the pane in angular js , where in one of th... | <p>A scope cannot see the properties of its children scopes (more generally: descendant scopes); in this case the controller is set in a <em>parent</em> element of the form, thus the scope of the form is a child of the controller. That is why <code>$scope.myForm</code> is undefined in the controller.</p>
<p>The soluti... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Heuristic Function for Rubik's cube in A* algorithm Artificial Intelligence<p>So I am trying to solve a Rubik's Cube by different algorithms using C++. I hav... | <p>IDA* is one of the best algorithms for solving the Rubik's cube because the state space is large and there aren't very many duplicates if you do proper move pruning. To get an efficient solver you need move pruning and good heuristics. Typically there are three moves per face - 90 degrees forward/backwards and 180 d... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Why does this angle calculation return only values of 0 or -1?<p>I am trying to calculate some rough angles on the x-axis from an onboard accelerometer on th... | <p>Besides the minor problems, like use of uninitialized variable here <code>int y2 = y1 * y2;</code>,
You are using <code>int</code> variables for obviously floating point calculations of the angle, which should be a fractional number in radians (which is hinted by the calculation attempt used). You need to work with ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
What is the correct way of loading the static template tag in Django?<p>The documentation is a bit ambiguous..</p>
<p>In <a href="https://docs.djangoproject... | <p>Both ways are correct. But I always use <code>{% load staticfiles %}</code>.</p>
<p><code>{% static %}</code> is the only tag in the <code>staticfiles</code> library so I don't see any reason to use the <code>{% load static from staticfiles %}</code> version.</p>
<p>As for the <code>{% load static %}</code> - thi... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
correct usage of .gitignore (for file types)<p>when I type git status I get the following message:</p>
<pre><code>Changes not staged for commit:
(use "git... | <p>Prefix your extensions with <code>*</code>:</p>
<pre><code>#Ignore all xlsx files
*.xlsx
#Ignore all pdf file
*.pdf
</code></pre>
<p>[Update] Also, <code>.gitignore</code> must be in the root of your project, not under <code>.git</code></p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
PHP - detect STDIO input<p>What I want is being able to <em>optionally</em> pipe STDIO to a PHP script. If not, it'll take input from a file instead. So some... | <pre><code>if(FALSE !== ftell(STDIN))
{
while (FALSE !== ($line = fgets(STDIN)))
{
$customLogArr[]=$line;
}
}
</code></pre>
<p>For STDIN, if nothing can be read, <code>ftell()</code> will return false.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
bash export expression without expanding?<p>I want to do the following</p>
<p><code>export LOGS=//server/log_files/2014_*/server_{1,2,3}</code></p>
<p>so I... | <p>Without <code>export</code>, right hand side of an assignment doesn't go through path nor brace expansion.</p>
<p>With <code>export</code>, though, brace expansion is performed. You can prevent it by quoting the value:</p>
<pre><code>export LOGS='//server/log_files/2014_*/server_{1,2,3}'
</code></pre>
<p>If you w... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to set Max Pagination Size in Spring Boot?<p>I'm developing <em><code>Spring Boot + Spring Data Mongo + Spring HATEOAS</code></em> example. I'm using Spr... | <p>I was able to solve the issue using below code.</p>
<pre><code>@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
PageableHandlerMethodArgumentResolver resolver = new PageableHandlerMet... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Using structs like classes in Arduino<p>I am trying to get use Arduino Structs as an approximation to classes for a program I am writing. This requires inclu... | <blockquote>
<p>Can you tell me how the typedef struct Foo {...} Foo; syntax is
supposed to read?</p>
</blockquote>
<p>To make a long story short, a declaration <code>typedef T Foo;</code> defines <code>Foo</code> to be a synonym for the type <code>T</code>; your example allows to write declarations as e. g.</p>
... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Trigger a "button onClick" with a keypress with jQuery or Javascript<p>I have a button that has the onclick event.
How can I trigger it with a particular ke... | <p>I have created JSfiddle link for the same:-</p>
<p><a href="http://jsfiddle.net/c2S5d/26/" rel="nofollow">http://jsfiddle.net/c2S5d/26/</a></p>
<p>Code:-</p>
<pre><code>$(function() {
$(document).keydown(function(e) {
switch (e.which) {
case 38: // up key
alert("up key even... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
XCode linking static library (GLEW) attempts dylib load<p>I am trying to link the GLEW library to an Xcode project, but I have been running into an issue. W... | <p>It looks like something else was actually happening here.</p>
<p>When I built the static GLEW library, it also built the dynamic version right next to it. Based on some other searches I made online, it seems that Xcode will automatically attempt to load up the dynamic version of a library, if a version of the same... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Javascript - Trying count a sum from 1 to the number that user entered<p>I am very new to javascript, and have limited knowledge. I have just grasped the con... | <p>Try this, you want to loop through all the numbers in between the first and second number and add them to the result</p>
<pre><code>var submit = document.getElementById('submit');
var input = document.getElementById('txtSecondNumber');
function sum() {
var FirstNumber = 1;
var SecondNumber = input.value;
... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Xcode stops at the end of file when using Ctrl+F, instead of starting again<p>I know there is an option somewhere in Xcode to tell it to whenever I'm finding... | <p>Click on the magnifier icon on the left of the search field and select "Edit Find Options...":
<img src="https://i.stack.imgur.com/SREzy.jpg" alt="Select "Edit Find Options...""></p>
<p>Check the "Wrap" option:
<img src="https://i.stack.imgur.com/b5Dbq.jpg" alt="Check "Wrap""></p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
UIGestureRecognizer Delegate method is never called<p>Trying to make some draggable images in a subview of a scrollview. But nothing happens. Anybody got any... | <p>Based on what you have here, it's probably one of two things. Either your image view doesn't have <code>userInteractionEnabled</code> set to yes, or there is another view on top of your image views blocking the gestures.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Yii2 timezones: date column changes value depending on format<p>In my Yii + MySql app, I have a DATE table column like this:</p>
<pre><code>start_date DATE
... | <p>You may need to change <a href="https://www.yiiframework.com/doc/api/2.0/yii-i18n-formatter#$defaultTimeZone-detail" rel="nofollow noreferrer"><code>Formatter::$defaultTimeZone</code></a> to <code>Europe/Madrid</code> - this should specify that date passed to formatter is not UTC but <code>Europe/Madrid</code>.</p> |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
sum with a specific condition in select<p>I have a number for example: 1000 (1)</p>
<p>I have a query that returns different number without any order (2). f... | <p>Not sure if I understood your question fully, but you may be able to achieve this using the windowing clause of analytic functions.</p>
<p>I created a sample table <code>number_list</code> with the values you'd provided. Assuming (2) to be the output from below query ..</p>
<pre><code> SQL> select * from num... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Parsing a simple array with Spray-json<p>I'm trying (and failing) to get my head around how spray-json converts json feeds into objects. If I have a simple k... | <p>Well, as is often the way immediately after posting something to StackOverflow after spending hours trying to get something working, I've managed to get this to work.</p>
<p>The correct implementation of FriendsProtocol was:</p>
<pre><code>object FriendsProtocol extends DefaultJsonProtocol {
implicit val personF... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Can't get this MySQL UDF to Create<p>I'm receiving a variety of error codes when I try to create this function, most recently this one: "1064 - You have an e... | <p>You need to set a different delimiter during your function definition.</p>
<p>So something like this:</p>
<pre><code>DELIMITER $$
CREATE FUNCTION DebtOwed(SearchEmail Varchar(70))
RETURNS FLOAT(10,2)
BEGIN
DECLARE Total Float(10,2);
SELECT Sum(Amount) INTO Total
FROM tblFinances
WHERE email=SearchEmail AN... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
VBA: Checking optional parameters<p>I have two subs and want to pass values from one to the other. </p>
<pre><code>Option Explicit
Sub Test()
Call Hand... | <p>You could handle the whoile thig with a <a href="https://docs.microsoft.com/en-us/office/vba/language/concepts/getting-started/understanding-parameter-arrays" rel="nofollow noreferrer"><code>ParamArray</code></a> and range check the incomoing array</p>
<pre><code>Sub HandleInput(rng As Range, ParamArray RCPairs() A... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Storing an iterator into a string (Conversion, cast, append ?)<p>I'm trying to copy a string into another character by character. The aim is not to copy the ... | <p>why dont you use + operator to concatenate to string like so:</p>
<pre><code>#include <iostream>
#include <sstream>
using namespace std;
int main(void)
{
string str = "Hello world";
string tmp = "";
for (string::iterator it = str.begin(); it != str.end(); ++it)
{
tmp+=(*it); // ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
JSoup how to parse table 3 rows<p>I have a table like this that i want to Parse to get the data-code value of <code>row.id</code> and the second and third co... | <p>Try like this:</p>
<pre><code>URL url = new URL("http://www.myurl.com");
Document doc = Jsoup.parse(url, 3000);
// This should work now
Element tables = doc.select("table tr .id");
// This propably should work too
Element tables2 = doc.select("table tr[class*=id]");
for(Element table : tables)
{
System.out.pr... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target<p>A spring mvc app uses Ja... | <p>The SSL certificate isn't trusted by Java. The certificate may be self-signed, or it may be signed by a CA (Certificate Authority) whose root certificate is not in the Java certificate store. The set of root certificates known by Java isn't as extensive as the set that your web browser knows about.</p>
<p>Assuming ... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
How to read files from my bin directory in my Tomcat folder in a Spring MVC application?<p>How can I read files into an InputStream in my Spring MVC applicat... | <p>You can use a Fie object with a relative (not starting with <code>/</code>) path. This path will be relative to the current work directory of tomcat (typically the start directory the script uses). If it is below the base directory, you can use <code>..</code> to navigate upward:</p>
<pre><code>File f = new File(".... |
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions.
Stackoverflow question:
Click button to change select-element. Script only works in Chrome<p>I'm trying write a script that allows a button click to change selected option in a sele... | <p>You shouldn't use <code>.attr('selected')</code> to change the value of a menu. Just set the value of the menu directly with <code>$('.select-box').val('new-value')</code>.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-overri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.