title stringlengths 10 150 | body stringlengths 17 64.2k | label int64 0 3 |
|---|---|---|
How to estimate 2D similarity transformation (linear conformal, nonreflective similarity) in OpenCV? | <p>I'm trying to search a specific object in input images by matching SIFT descriptors and finding the transformation matrix by RANSAC. The object can only be modified in scene by similarity transform in 2D space (scaled, rotated, translated), so I need to estimate 2x2 transform matrix instead of 3x3 homography matrix ... | 0 |
SweetAlert2: Set dialog height | <p>for sweetAlert2 I noticed there's no "height" property but there is a "width" property, is there a way to set the height of the dialog to be 80%?</p>
<p>Thanks</p>
<p><a href="https://limonte.github.io/sweetalert2/" rel="noreferrer">https://limonte.github.io/sweetalert2/</a></p> | 0 |
"ORA-01733: virtual column not allowed here" when inserting into a view | <p>I created a view called "view_employee" like this:</p>
<pre><code>CREATE VIEW view_employee AS
SELECT employee.surname || ', ' || employee.name AS comp_name, employee.sex, sections.name AS section_name, employee_age
FROM sections, employee WHERE employee.section = sections.sect_code;
</code></pre>
<p>And I would l... | 0 |
Vuetify : throttle / debounce v-autocomplete | <p>I'm using the Vuetify Autocomplete with remote data, and I would like to to throttle / debounce the API calls (wait 500 ms to call the API when the user is typing text in the autocomplete). How can I do that?</p>
<p>I saw a Stack OverFlow post about the <code>debounce-search</code> attribute, but it didn't work for... | 0 |
How to use SF Symbols in iOS 12 and below? | <p>I am updating the icons in my app. After I heard Apple released an icon font named <code>SF Symbols</code> with iOS 13, I was wondering if I can only use them in iOS 13 or if it is possible to use them in lower versions of iOS too.</p>
<p>If I want to use them, do I have to implement a fallback for older versions?<... | 0 |
loading an image on web browser using Promise() | <p>I'am trying to learn how to make SuperMario in JavaScript from <a href="https://www.youtube.com/watch?v=g-FpDQ8Eqw8&list=PLS8HfBXv9ZWWe8zXrViYbIM2Hhylx8DZx" rel="noreferrer">here</a>
Can someone explain flow of the below function LoadImage ?</p>
<pre><code>function loadImage(url) {
return new Promise(r... | 0 |
Using Genymotion emulator with Ionic framework | <p>I've downloaded and installed <strong>genymotion</strong> and created and built my ionic application.</p>
<p>When I try to run the genymotion emulator using the following command:</p>
<pre><code>ionic run android
</code></pre>
<p>I get the following response:</p>
<blockquote>
<p>No target specified, deploying ... | 0 |
Failed to decode downloaded font | <p>This is an error I am getting in Chrome and unfortunately searching for it hasn't given me much results. The font itself is appearing correctly. However I still get this error/warning. More specifically, this is the full warning:</p>
<blockquote>
<p>"Failed to decode downloaded font:
<a href="http://localhost:8... | 0 |
Where do javascript and css files go in a laravel project | <p>Where should static javascript and css files in a Laravel 4 application. For the sake of my own understanding, I'm not interested in using any sort of assets or packages yet.</p>
<p>I tried putting them under <code>public/js</code> and <code>public/packages</code> to no avail, getting the following 404 errors in m... | 0 |
Search and scroll to word on page | <p>My client wants to add a search box on specific pages that will allow their user to search for a product and it will scroll to that text. This way it's easier for her to direct her clients to the right part of the page.</p>
<p>This is easily done using Ctrl-F with the browsers search function. Unfortunately the cli... | 0 |
What is the difference between the Maven Surefire and Maven Failsafe plugins? | <p>What is the difference between Maven Surefire and Maven Failsafe plugins?<br>
I have searched all over web, but did not get the answer.</p> | 0 |
How can we write in existing file(.txt)in sdcard in android | <p>I want to edit a .txt file which is stored on an sd card. In my app I have to write user activity data. </p>
<p>So, whenever a user opens the app and does something, the .txt file should be updated with new data.</p> | 0 |
How to make images appear in Javascript | <p>I'm not very fluent in javascript, and I feel like this is really basic, but I can't seem to find it online <strong>anywhere</strong>. </p>
<p>I want to create a link that will trigger a javascript function that makes an image appear in a separate div. It can't be in flash, otherwise I have no objection to the cod... | 0 |
Convert Date to string using PHP | <p>I have date <code>2012/09/26</code>. I want to convert it to string using PHP.How do I fix this.Anyone help me please,Thanks.</p> | 0 |
Disable all dialog boxes in Excel while running VB script? | <p>I have some code in VB that saves all XLSM files as XLSX. I already have the code that will do that for me, but dialog boxes show up for every action. This was fine for a few dozen files. However, I'm going to use this on hundreds of XLSM files at once, and I can't just sit at my computer all day clicking dialog box... | 0 |
How to pass "this" to window setInterval | <p>Suppose I have a function a: </p>
<pre><code>function a() {
this.b = 1;
this.set = setInterval(function() {console.log(this.b);}, 200);
}
</code></pre>
<p>So when a.set() is called the anonymous function will be called. But this won't work as this at that time when the function is triggered points to the ... | 0 |
Oracle 11g : When declaring new TYPE as TABLE, must I add "INDEX BY PLS_INTEGER"? | <p>What is the diffecence between adding <code>INDEX BY PLS_INTEGER</code> and not at end of declaration of new table type. Look at this example:</p>
<pre><code>DECLARE
GC_BULK_LIMIT CONSTANT INTEGER := 500;
CURSOR CUR_CLIENTS IS SELECT C.ID, C.NAME FROM CLIENTS C;
TYPE RT_CLIENTS IS TABLE OF CUR_CLIENTS%R... | 0 |
How to change the opacity of an image. | <p>I have an background image set to an <code>ImageView</code>, Now i want to change the opacity of an image without, for that i write this code to change the opacity of ImageView, but when i do so it remove the background image from the image view, So my question is how can i change the opacity of ImageView without re... | 0 |
Matplotlib backend missing modules with underscore | <p>I've been using matplotlib for some time without problems. It's been a while since i needed the interactive plot functions (for which Tkaag was used). Since then i updated matplotlib a few times.</p>
<p>I tried to use it today, but it spawned an error.</p>
<pre><code>/usr/local/lib/python2.7/dist-packages/matplotl... | 0 |
What command opens Ruby's REPL? | <p>What command opens Ruby's REPL?</p>
<p>In Python, you simply open <code>python</code> without any arguments.</p> | 0 |
Cannot connect to MySQL using MySQLi_connect | <p>I am trying to fetch results using ajax,php and MySql. However I am getting following errors on my server side script.</p>
<blockquote>
<p>Warning: mysqli_select_db() expects parameter 1 to be mysqli, resource
given in D:\htdocs\classes\xxx on line 10</p>
<p>Warning: mysql_query(): supplied argument is not... | 0 |
Python - How to parse and save JSON to MYSQL database | <p>As the title indicates, how does one use python to elegantly access an API and parse and save the JSON contents onto a relational database (MYSQL) for later access?</p>
<p>Here, I saved the data onto a pandas object. But how do I create a mysql database, save the json contents onto it, and access the contents for l... | 0 |
How to refresh Material-Table (Material-ui) component in ReactJS when data changes | <p>I am using material-table in my ReactJS project, and I checked it documentation and I don't have a clue how to refresh the table when the data is continuously changing (like every 500ms or so). I appreciate any information. </p>
<p>The below code is of the data table that I am trying to use. After creating the data... | 0 |
converting double values for making a Point type | <p>I want to draw a curve (a diode curve) in a picturebox using imagefrom bitmap. I have a problem now and it is my point data are saved as Double and it is really important to keep the precesion.</p>
<p>for example a point in the plot I have is like this:</p>
<blockquote>
<p>Voltage: -0.175 Current: -9.93062... | 0 |
Waiting for URLDownloadToFile() to end | <p>I want to make the program that downloads page from internet and makes some parsing on it. Second part is easy, problem is first.</p>
<p>I want to use URLDownloadToFile() function. But by default it doesn't wait for completing the download. MSDN says that the last param is sort of callback function, but I can't fin... | 0 |
How to show error messages for min and max values of an input field with number type? | <p>How do I set/show error messages for min and max values that I set on an input field with number type using angular js. </p>
<pre><code><input type="number" min="0.1" max="30"/>
</code></pre> | 0 |
How to get video thumbnail from url in React Native | <p>I have videos that I'd like to present as thumbnails before a user clicks on them for the full video. They are not local, I only have the url, like this: <a href="https://filev4.subiz.com/fiqbjssxydufxauruqxi-video_test.mp4" rel="noreferrer">https://filev4.subiz.com/fiqbjssxydufxauruqxi-video_test.mp4</a> . Is there... | 0 |
How do I check if a CGPoint has been initialised? | <p>I would like to initially set a CGPoint property to a particular point (middle of screen). Other methods may subsequently wish to change this property. My thoughts were to initialise it if empty in the getter, but I get the message invalid argument type 'struct CGPoint' to unary expression. I also tried using if pro... | 0 |
How to generate random numbers from a normal distribution with specific mean and variance? | <p>I need to generate a Gaussian random sample of <code>n</code> numbers, with mean 0 and variance 1, using the <code>randn</code> function.</p>
<p>In general, how would I generate a Gaussian random sample <code>X</code> of <code>n</code> numbers, with mean <code>mu</code> and variance <code>v</code>, using the <code>... | 0 |
How to save a spark DataFrame back into a Google BigQuery project using pyspark? | <p>I am loading a dataset from BigQuery and after some transformations, I'd like to save the transformed DataFrame back into BigQuery. Is there a way of doing this?</p>
<p>This is how I am loading the data:</p>
<pre><code>df = spark.read \
.format('bigquery') \
.option('table', 'publicdata.samples.shakespeare') \... | 0 |
Can an Ms Access database create a backup of itself while it's open using vba? | <p><strong>Background:</strong> I have a process that links Quickbooks to Ms Access. If a button is pressed, some information will be queried from Quickbooks and then updates Ms Access. If the power goes out, or if the user forces Ms Access to close during the sync process, it can cause some of the information to be co... | 0 |
Passing multiple values for a single parameter in Reporting Services | <p>I have several Multi-Select parameters in my report. I am trying to find a way to pass in multiple values for a single parameter in the web query string? If I pass in a single value, it works fine.</p>
<p>The report runs fine selecting multiple choices for a single param. My trouble lies in the web query string.</p... | 0 |
How can I Remove .DS_Store files from a Git repository? | <p>How can I remove those annoying Mac OS X <code>.DS_Store</code> files from a Git repository?</p> | 0 |
Why does from scipy import spatial work, while scipy.spatial doesn't work after import scipy? | <p>I would like to use <code>scipy.spatial.distance.cosine</code> in my code. I can import the <code>spatial</code> submodule if I do something like <code>import scipy.spatial</code> or <code>from scipy import spatial</code>, but if I simply <code>import scipy</code> calling <code>scipy.spatial.distance.cosine(...)</co... | 0 |
I don't understand what does java.util. mean | <p>What does <code>java.util.*;</code> do? Why do we include it at the beginning of our files?</p> | 0 |
Displaying POST AJAX Response in new window | <p>I send POST data through ajax using jQuery and it returns the binary data of a PDF file.</p>
<p>I'd like to do something with this data. Either by providing a link to download, or opening it a new tab/window.</p>
<p>I know sending a user to a website and using GET variables would be easier but there is a lot of da... | 0 |
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure | <p>I have the following connector configuration in <code>server.xml</code>:</p>
<pre><code><Connector SSLEnabled="true" clientAuth="true"
keystoreFile="${user.home}/kstore.jks" keystorePass="1234567"
maxThreads="150" port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
scheme="http... | 0 |
How to use function to connect to database and how to work with queries? | <p>I am using functions to work with database.. Now the way i have defined the functions are as follows:-</p>
<pre><code>/**
* Database definations
*/
define ('db_type', 'MYSQL');
define ('db_host', 'localhost');
define ('db_port', '3306');
define ('db_name', 'database');
define ('db_user', 'root');
define ('db_pass... | 0 |
Get the title of a window of another program using the process name | <p>This question is probably quite basic but I'm having difficulty cracking it. I assume that I will have to use something in <code>ctypes.windll.user32</code>. Bear in mind that I have little to no experience using these libraries or even <code>ctypes</code> as a whole.</p>
<p>I have used this code to list all the wi... | 0 |
firebase cloud function post request body | <p>I am making an http request from an angular form like that:</p>
<pre><code> this.http.post(this.endPoint, formData, { responseType: 'text' }).subscribe(
res => {
console.log(res);
}
)
</code></pre>
<p>And I have a simple cloud function:</p>
<pre><code>const functions = require('firebase-functi... | 0 |
Add task dependency to existing Gradle task | <p>I'm going to lose my mind about this. I have a <code>build.gradle</code> file that looks something like:</p>
<pre><code>apply plugin: 'idea'
task blah{
// do something
}
idea{
// some stuff
dependsOn blah
}
</code></pre>
<p>and I'm getting this:</p>
<pre><code>Could not find method dependsOn() for arguments... | 0 |
Select2 initSelection | <p>I have a problem to set the method initSelection with an ajax call, I returns "undefined".
I checked and the ajax call returns the correct result ..
I donot understand the method how to set the callback method to make sure that you select 'the preset value.</p>
<pre><code> function mediaFormatResult(media) {
... | 0 |
Creating Vector Graphics with PHP | <p>Im trying to create vector graphics in PHP. Ive tried Cairo and I havn't been able to get it to work. I understand that imageMagick has vector functionality but the documentation on php.net is very poor can some one lead me in the right direction? The ideas is to be able to save the graphic to EPS. I also need to be... | 0 |
ASP.Net page enter key causing post back | <p>I have an aspx page that postsback when it should not. there are two text boxes, two listboxes and two buttons on the page. if at any-point the enter key is pressed the first button is given focus and "clicked" resulting in a loss of selection within the listboxes.</p>
<p>How do I disable this? There are tons of tu... | 0 |
regex to match any character or none? | <p>I have the two following peices of strings;</p>
<pre><code>line1 = [16/Aug/2016:06:13:25 -0400] "GET /file/ HTTP/1.1" 302 random stuff ignore
line2 = [16/Aug/2016:06:13:25 -0400] "" 400 random stuff ignore
</code></pre>
<p>I'm trying to grab these two parts;</p>
<pre><code>"GET /file/ HTTP/1.1" 302
"" 400
</code... | 0 |
jupyter notebook installation issue using pip | <p>I had a problem with jupyter notebook. Every time I started a notebook, kernel died.</p>
<p>So, I decided to uninstall jupyter notebook using pip:</p>
<pre><code>pip uninstall jupyter notebook
</code></pre>
<p>After successful uninstallation, I installed again, using same pip:</p>
<pre><code>pip install jupyter ... | 0 |
dataframe to dict such that one column is the key and the other is the value | <p>I have the dataframe</p>
<pre><code> ID A B C
0 p 1 3 2
1 q 4 3 2
2 r 4 0 9
</code></pre>
<p>And I want to create a dict where ID is the keys and B is the values so it will be:</p>
<p><code>d["q"] = 3 , d["r"] = 0</code></p>
<p>What is the best way to do so?</p>
<p>It is di... | 0 |
ModuleNotFoundError: No module named 'serial' after pip install pyserial | <p>When trying to run a .py file from a command prompt I am getting the error, </p>
<blockquote>
<p>File "C:\Users\mayna\Anaconda3\lib\site-packages\lucidIo\Com.py", line 7, in
import serial
ModuleNotFoundError: No module named 'serial' </p>
</blockquote>
<p>This is even after I have installed the pyserial ... | 0 |
How to use datediff equivalent in Oracle with YYYYMMDD formatted number? | <p>I have Oracle database columns with the <code>number</code> format <code>YYYYMMDD</code>. I have not been successful in using this format with <code>datediff</code> to get the difference between two dates. The <a href="http://www.w3schools.com/sql/func_datediff.asp" rel="nofollow">documentation</a> I've read online ... | 0 |
Crashlytics not uploading mapping file | <p>I'm able to see crashes for a release build in Crashlytics but they are still obfuscated. I'm using:</p>
<pre><code>implementation "com.google.firebase:firebase-core:16.0.5"
implementation "com.google.android.gms:play-services-base:16.0.1"
implementation "com.crashlytics.sdk.android:crashlytics:2.9.6"
</code></pre>... | 0 |
Typescript build getting errors from node_modules folder | <p>I am running a typescript build and getting errors in node_modules. Why isn't it ignoring this folder? I have it in the exclude section of my tsconfig.json. The really strange thing is that I have another project that I have done a file comparison with and it does not throw these errors even though gulpfile.js, t... | 0 |
Start a process in a new window from a batch file | <p>I have written a batch file (.bat) in windows. I want to execute a particular process in a new window. How do I do this?</p>
<p>Example</p>
<pre><code>a.py -s 3 -l 5
b.py -k 0 -> I want to start this in a new window and let the original batch file continue
C:\program.exe
...
....
</code></pre> | 0 |
React passing parameter via onclick event using ES6 syntax | <p>How to pass extra parameters to an onClick event using the ES6 syntax?</p>
<p>For instance:</p>
<pre><code>handleRemove = (e) => {
}
render() {
<button onClick={this.handleRemove}></button>
}
</code></pre>
<p>I want to pass an id to the <code>handleRemove</code> function like this:</p>
<pre... | 0 |
How to detect tap and double tap at same time using UITapGestureRecognizer? | <p>For example I have a view where I want two different gestures:</p>
<p>tap to do action A.
double tap to do action B.</p>
<p>The problem is with UITapGestureRecognizer I can only set minimum required tap count. The single tap gesture recognizer recognizes a tap before the double tap gesture recognizer recognizes th... | 0 |
How to pass data between sibling components without using $scope? | <p>I am making a component that contains 3 child components in this way: </p>
<pre><code><header-component>
<side-component>
<main-component>
</code></pre>
<p>The main component contains list of heroes.
The header component contains two buttons that are suppose to switch the view on the main compo... | 0 |
jsTree disable moving some nodes | <p>I have a single jsTree and I want some of its nodes to be moveable. The root node and its immediate children cannot be moved.</p>
<p>I am using crrm and it works as expected but it still allows me to drag all nodes, even those nodes (immediately below root) that cannot be dropped anywhere. I don't want them to be d... | 0 |
EPPlus, Find and set the value for a Named Range | <p>I've been pulling my hair out trying to set the value of a named range (in this case, a single named cell) using the ExcelPackage (3.0.1) library, it should be a simple as this:</p>
<pre><code>ExcelNamedRange er = xlPackage.Workbook.Names["Customer"];
er.Value = "Foo Bar";
</code></pre>
<p>I'm obviously doing it w... | 0 |
Ruby on rails 3: link_to :remote => true treats "remote" as a URL parameter | <p>I'd like to know what the link_to syntax is supposed to be for making ajax requests (or other ideas on what might be going wrong here). Currently I have</p>
<pre><code><%= form_tag "save_sets", :remote => true, :name => "set_form" do %>
</code></pre>
<p>in a file and it works perfectly. However, in t... | 0 |
How to fix permission denied for .git/ directory when performing git push? | <p>I have set up a git repository on my server. Created a new user 'git'. My repos are located in <code>/srv/git/example.git</code>. I was able to <code>git remote add origin git@domain/srv/git/example.git</code> then I added and committed my changes.</p>
<p>However when I tried <code>git push origin master</code> it ... | 0 |
Scrapy Crawl URLs in Order | <p>So, my problem is relatively simple. I have one spider crawling multiple sites, and I need it to return the data in the order I write it in my code. It's posted below.</p>
<pre><code>from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from mlbodds.items import MlboddsItem
class MLB... | 0 |
Read More button in android | <p>I have looked through few read more button questions but I didnot get a kind of solution that I was looking more. I want to display only certain part of layout and only when user presses the Read more button would display the rest of the layout with drop down animation. Something of this sort:
<a href="https://i.st... | 0 |
How to set Java.util.calendar to a specific time period in the future | <p>I'm using Java's calendar to set an alarm at a specific date and time. I know how to make this work when the user selects a <em>specific</em> date and time. For example, if the user wants to set an alarm on July 17th, 2013 at 10:45AM, I'm using the following code:</p>
<pre><code>//Get the calendar instance.
Calenda... | 0 |
PHP combine two associative arrays into one array | <pre><code>$array1 = array("$name1" => "$id1");
$array2 = array("$name2" => "$id2", "$name3" => "$id3");
</code></pre>
<p>I need a new array combining all together, i.e. it would be</p>
<pre><code>$array3 = array("$name1" => "$id1", "$name2" => "$id2", "$name3" => "$id3");
</code></pre>
<p>What is... | 0 |
Showing image in WPF using the URL link from database | <p>i saved the URL in the database like this </p>
<blockquote>
<p>~/Images/Questions/drink.png</p>
</blockquote>
<p>So when i retrieve it in my WPF application i tried to do this :</p>
<pre><code> Image img = new Image();
img.Width = Double.NaN;
img.Height = Double.NaN;
// ... | 0 |
OpenCV Straighten an Image with Python | <p>Is there any way that I can straighten this image using OpenCV with Python? I was figuring it out using the different transformations but I cant get it.</p>
<p><a href="https://i.stack.imgur.com/fq8MR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fq8MR.jpg" alt="Image"></a></p>
<p>Here is my c... | 0 |
how to handle key events in iphone | <p>Hi
I am working on an iphone application and want to handle keyboard events in iphone. In Mac, there is a class NSEvent which handles both keyboard and mouse events, and in ios (iphone/ipad) the counterpart of NSEvent is UIEvent which handles only touch events. I know ios API does not provide this functionality, but... | 0 |
Move all files of a git directory into subdirectory and maintain history | <p>How can I move all the files of my current directory into a new directory and retain the history.</p>
<p>I have tried:</p>
<pre><code>git mv . old_app
</code></pre>
<p>But I get:</p>
<pre><code>fatal: bad source, source=, destination=old_app/
</code></pre> | 0 |
Send iOS Push notification in php with .p8 file | <p>Apple has updated their push notification service and the certificate file received is now a .p8 file. There are many examples online of how to send a push notification with the .pem file but I can't find anything for a .p8 file. Does anyone have any code that works with the .p8 file?</p> | 0 |
How to remove the last character of a string in Golang? | <p>I want to remove the very last character of a string, but before I do so I want to check if the last character is a "+". How can this be done?</p> | 0 |
How do I dynamically set the "required" status of fields in Acrobat? | <p>I have an Acrobat PDF that a colleague would like some form validation added to beyond the simple options that Acrobat gives you without using javascript. From what I can tell, Javascript will be required to do this. I <strong>think</strong> the behavior should be able to be done via the "Add an Action->MouseDown->R... | 0 |
git - apply a commit on another branch to the working copy | <p>so I have a commit that has a helpful code change, but on another branch.</p>
<p>I would like to apply this commit in the other branch to my working copy on my current branch (not as another commit).</p>
<p>Is this possible? How would I do this?</p>
<p>Thought I'd share this is related to my previous question but... | 0 |
Can you recommend a Windows based Network emulator? | <p>I'm looking for a Windows network emulator that can emulate the packet-loss & latency characteristics of a 3G wireless network. </p>
<p>I used to use a tool from GIPs that has been end-of-life'd. I've also tried Shunra Virtual Enterprise but found it a bit too basic</p> | 0 |
The best way to get a count of IEnumerable<T> | <p>Whats the best/easiest way to obtain a count of items within an IEnumerable collection without enumerating over all of the items in the collection?</p>
<p>Possible with LINQ or Lambda?</p> | 0 |
How can I find encoding of a file via a script on Linux? | <p>I need to find the encoding of all files that are placed in a directory. Is there a way to find the encoding used?</p>
<p>The <a href="https://linux.die.net/man/1/file" rel="noreferrer"><code>file</code></a> command is not able to do this.</p>
<p>The encoding that is of interest to me is <a href="https://en.wikipedi... | 0 |
How do I make list group item active without anchor tags? | <p>I want to style a <a href="http://getbootstrap.com/components/#list-group-basic" rel="nofollow noreferrer">basic list-group</a> item <code>active</code> to highlight it (change background color etc). Bootstrap supports the <code>active</code> class just through <a href="http://getbootstrap.com/components/#list-group... | 0 |
Are Java random UUID's predictable? | <p>I would like to use a cryptographically secure primary key for sensitive data in a database - this cannot be guessable/predictable and it cannot be generated by the database (I need the key before the object is persisted).</p>
<p>I understand Java uses a type 4 UUID with a cryptographically secure random number gen... | 0 |
Debugging Java code line by line | <p>Is it possible to debug code line by line in Eclipse showing which line is executing so that I understand the logic of the code? I'm new to programming, please give me suitable advice.</p> | 0 |
FileReader class in C# | <p>I am looking for fast class for to work with text files and comfortable reading different object (methods like NextInt32, NextDouble, NextLine, etc). Can you advice me something?</p>
<p><b>Edit:</b> BinaryReader is bad class in my case. Format of my data is not binary. I have file like</p>
<pre><code>1 2 3
FirstTo... | 0 |
How to duplicate a sheet with protected ranges? | <p>I have built a template sheet that I will duplicate every week. I noticed that when I go to duplicate it, none the protected ranges are copied along with it. Is it possible to use a Google Apps script to copy the exact same protected ranges into the duplicated sheet? It would save me lots of time every week. </... | 0 |
Determining Midpoint Between 2 Coordinates | <p>I am trying to determine the midpoint between two locations in an <code>MKMapView</code>. I am following the method outlined <a href="https://stackoverflow.com/q/4656802">here</a> (and <a href="https://stackoverflow.com/questions/4164830/geographic-midpoint-between-two-coordinates">here</a>) and rewrote it in Objec... | 0 |
Umbraco 7 + Razor: How to get a Document/Node by ID? | <p>In the sample code, this is how you get the Home page from a .cshtml file</p>
<pre><code>var homePage = CurrentPage.AncestorsOrSelf(1).First();
</code></pre>
<p>Now, how do I get a specific page/node (not related to current page, eg. the News page) by its ID?</p> | 0 |
How to show a text when hovering? | <p>I have a footer in which I have different icons for my social media. Now, I want to create a hover effect, which displays the name of hovered icons. </p>
<p>For example: My mouse is over the facebook icon, and then the text 'Facebook' should come up in a div, located in a div below!</p>
<p>I know how to create thi... | 0 |
How to clear an object of the session scoped managed bean? | <p>I am developing a login based application in JSF with primefaces. In that I kept the logged user info in session scoped managedbean and I need to clear that details when he logged out, So How to clear those details which are in SessionScoped ManagedBean object?</p> | 0 |
How do you use MySQL spatial queries to find all records in X radius? | <p>I have a table in a MySQL database with a spatial geometry column of type POINT. I'd like to be able to take a point at the center of a map and find all records within X miles (or whatever distance) of it. I can't seem to find a good example or explanation of how to do this that doesn't get heavily into geometric ma... | 0 |
Interpreting Weibull parameters from survreg | <p>I am trying to generate an inverse Weibull distribution using parameters estimated from survreg in R. By this I mean I would like to, for a given probability (which will be a random number in a small simulation model implemented in MS Excel), return the expected time to failure using my parameters. I understand the ... | 0 |
Android. How play video on Surface(OpenGL) | <p>Need to help</p>
<ol>
<li><p>How play video on <code>Surface(OpenGL)</code> in Android?
I tried playing video in <code>mySurfaceView extends SurfaceView</code> with help method <code>setSurface()</code> in <code>MediaPlayer</code>.</p>
<pre><code>SurfaceTexture mTexture = new SurfaceTexture(texture_id);
Surface m... | 0 |
List of currently running process in Go | <p>How can I get the list of currently running processes in Go?</p>
<p>The OS package provides some functions: <a href="http://golang.org/pkg/os/" rel="noreferrer">http://golang.org/pkg/os/</a>
but doesn't give anything to see the list of running processes.</p> | 0 |
Efficient way to count unique pairs in int array | <p>This is my first post, hope it complies with posting guidelines of the site.
First of all a generic thanks to all the community: reading you from some months and learned a lot :o)</p>
<p>Premise: I'm a first years student of IT.</p>
<p>Here's the question: I'm looking for an efficient way to count the number of un... | 0 |
spl_autoload_register not working | <p>I have created 5 folders containing 5 classes (Ad_Class, Blocked_Class, Friend_Class, Image_Class, Profile_Class) in the main directory. I also created the respective classes within the mentioned folders with the exact name as the folders. i.e. if folder name is Ad_Class then the class within the folder is also the ... | 0 |
Future[Option] in Scala for-comprehensions | <p>I have two functions which return Futures. I'm trying to feed a modified result from first function into the other using a for-yield comprehension. </p>
<p>This approach works:</p>
<pre><code> val schoolFuture = for {
ud <- userStore.getUserDetails(user.userId)
sid = ud.right.toOption.flatMap(_.schoolI... | 0 |
Make VS code read webpack.config and recognize path with alias? | <p>I'm working with Webpack and Visual Studio Code and in order to avoid things like:</p>
<pre><code>import { AuthenticationService } from '../../../services/authentication/service';
</code></pre>
<p>I've created aliases on my webpack.config so I can use:</p>
<pre><code>import { AuthenticationService } from 'service... | 0 |
Read data from excel and write to feature file using specflow | <p>I am currently using specflow for my unit testing, however my complexity is in the fact that I want to read(retrieve) my input data from an excel spread sheet, before running my tests.</p>
<p>For example:</p>
<p>When I get a customers product in <code>XXXXX</code> with product number <code>1234567</code></p>
<p>T... | 0 |
How to enable port 5000 on AWS ubuntu | <p>I have a flask app running on AWS Ubuntu server on port 5000 (flask runs default on port 5000). But when I try to access the server on that port, it never connects.</p>
<p>I added a security group on AWS console as <code>Custom TCP</code> on port <code>5000</code> for any ip address <code>0.0.0.0/0</code>, but stil... | 0 |
Adding ripple effect for View in onClick | <p>Hello I am trying to add a ripple effect onClick method for View, but this one no working. All my items having an ID, but I don't know how to call it</p>
<p>Here is a code.</p>
<pre><code> @Override
public void onClick(View v) {
int[] attrs = new int[]{R.attr.selectableItemBackground};
TypedArray typedArra... | 0 |
How to handle redirect response properly when using Nginx as proxy server, django as backend | <p>I have a Django application and recently I need to launch a beta version. I want to keep the current running application untouched, and redirect all request starts with "/beta" to the beta app, with the help of Nginx. Here is my conf</p>
<pre><code> location / {
proxy_pass_header Server;
proxy_set_header... | 0 |
qMake: How exactly does qmake interpret the "CONFIG(debug, debug|release)" syntax | <p>I read though <a href="https://wiki.qt.io/Technical_FAQ#What_does_the_syntax_CONFIG.28debug.2Cdebug.7Crelease.29_mean_.3F_What_does_the_1st_argument_specify_and_similarly_what_is_the_2nd_.3F" rel="noreferrer">HERE</a>, yet I still don't understand the syntax of the <code>qmake CONFIG</code> variable. for example, if... | 0 |
How can i remove index.php?route=common/home from OpenCart Version 1.5.1? | <p>I am currently using opencart version 1.5.1
SEO URL is set to "yes"</p>
<p>However for the homepage and a few other links; how do I remove?</p>
<p>index.php?route=common/home</p>
<p>Any opencart expertise can help me as soon as possible???</p> | 0 |
Koin Android: org.koin.error.NoBeanDefFoundException | <p>Got that message error</p>
<pre><code>java.lang.RuntimeException: Unable to create application com.app.name.application.MainApplication: org.koin.error.BeanInstanceCreationException: Can't create bean Bean[class=com.app.name.general.preferences.Preferences] due to error :
org.koin.error.NoBeanDefFoundException:... | 0 |
Android variables in strings.xml | <p>Somewhere I read how to use variables in XML document. They said it's very simple and I guess it was. I successfully used it that way in Android strings.xml file. I was using it that way the whole day until suddenly android stopped to parse it and stopped to treat it like a variable.</p>
<p>I used it in this way:</... | 0 |
Polly timeout policy clarification | <p>I am trying to get the timeout policy to work correctly.
I have the following requirements while integrating an api.</p>
<ol>
<li>Create an http request to invoke endpoint1 and pass the transactionID and capture the result</li>
<li>if the http request does not receive an answer in 20 seconds then send a cancel reque... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.