text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
C function float argument takes different value inside the function
I am sure I'm missing something obvious here but just can't figure out what it is. In my repository, I have a file called ddpoly_2.c which contains a function called "ddpoly2". I call this function from the main function in tst5.c. If you look at the ... | common-pile/stackexchange_filtered |
Take Case/Somebody To Trial
I have a question about the usage of the noun "trial". Most dictionaries say the following usages:
The case went to trial.
The case came to trial.
He was brought to trial.
are standard English. But I found on the web the following usages:
The case was taken to trial.
He... | common-pile/stackexchange_filtered |
Mapping a single entity to multiple tables of same schema in hibernate using annotations
I have a class CustomerProfile which is mapped to a table CUST_PROFILE. We have requirement to maintain the closed profiles in a separate table which will have the same schema.
I have read many questions in SO especially the below ... | common-pile/stackexchange_filtered |
What does "2- place real function" mean?
What does "2-place real function" mean?
This comes up in the context of copulas, as here.
I'd guess, it's a function of two variables. e.g. $f:\Bbb R^2\rightarrow\Bbb R$.
You're going to have to include more context. It probably means a function mapping two real number inputs ... | common-pile/stackexchange_filtered |
In jsp how we compare string value in If condition
We can write
if (usermailid != null)
It is working but
if (usermailid =="Ram")
is not working .
You can use expression language to compare strings (yes it works with strings!), just like this: ${usermailid == "Ram"}
As Brijesh pointed out, == checks equality ... | common-pile/stackexchange_filtered |
Is function $f:\{1,2\}\rightarrow\{1\}$ continuous?
Under "regular" topology in $\mathbb{R}$, is function $f:\{1,2\}\rightarrow\{1\}$ continuous? Here $f$ is a function defined on $\{1,2\}$ and $f(1)=f(2)=1$.
I think it is. According to the definition of continuity, the pre-image of any open set is open. The only open ... | common-pile/stackexchange_filtered |
How to put folders to different branches?
I haven't used git for 2 years and it is giving me a hard time now when I look back my at old work. :(
Basically, I have one folder (the main folder) which I want to push to a branch called source and there is a folder inside the main folder named _deploy which I want to push ... | common-pile/stackexchange_filtered |
Firestore security rule doesn't detect phone number from token when on real device
I have an issue where the firestore security rules is unable to filter out users based on their phone number. The rule is set up perfectly and it works well with the simulator but not when I test it out on a real device.
I have a collect... | common-pile/stackexchange_filtered |
Make random curvy lines or segments for paths on Canvas
Here is the code that I tried:
var myPath = new Path();
myPath.strokeColor = 'red';
myPath.strokeWidth = 5;
myPath.dashArray = [20, 5];
myPath.add(new Point(1800, 120));
function onFrame(event) {
if(event.count%10 == 0) {
var angle = Math.random(0, 1)... | common-pile/stackexchange_filtered |
Trouble with Jasper and getCallerClassLoader()
I'm trying to get a runtime reference to a compiled subreport that lies in the same directory as my main report. After hours of googling, I've tried to get the file reference as a URL using the following:
new String(
ClassLoader.getCallerClassLoader().toString().substri... | common-pile/stackexchange_filtered |
Chromedriver TypeError: 'NoneType' object is not subscriptable
I am using Chrome 76.0.3809.132 and chromedriver 76.0.1.
I am getting error while converting from HTML to PDF.
Chromedriver TypeError: 'NoneType' object is not subscriptable
Sometimes it works and sometimes it doesn't work.
Is there any solution for this?
... | common-pile/stackexchange_filtered |
MySQL to PostreSQL and Named Scope
I've got a named scope for one of my models that works fine. The code is:
named_scope :inbox_threads, lambda { |user|
{
:include => [:deletion_flags, :recipiences],
:conditions => ["recipiences.user_id = ? AND deletion_flags.user_id IS NULL", user.id],
:group => "msg_threads.id"... | common-pile/stackexchange_filtered |
Audit Trail Design using Table Storage
I'm considering implementing an Audit Trail for my application in using Table Storage.
I need to be able to log all actions for a specific customer and all actions for entities from that customer.
My first guess was creating a table for each customer (Audits_CustomerXXX) and use a... | common-pile/stackexchange_filtered |
Rails 4: unable to view the show page in heroku
My restaurant review app works in Localhost but when i try this on heroku and click on the link to show the reviews i get We're sorry, but something went wrong. heroku logs shows the following information with the error ActionView::Template::Error (undefined method `capit... | common-pile/stackexchange_filtered |
Delphi XE2: firemonkey playing video with libvlc?
I am still trying to play video on firemonkey using directx api with libvlc! I have played video using by different way already but I want to play video on directx surface.
please looked this link first : http://forum.videolan.org/viewtopic.php?f=32&t=82618
someone writ... | common-pile/stackexchange_filtered |
Entity Framework and string as NCLOB on oracle Db
I have this model:
public class Teacher
{
public int TeacherID { get; set; }
public string Name { get; set: }
public string Surname{ get; set; }
}
and when Model First run, it creates my Teachers table and DbSet, but for Name and Surname (which are string) ... | common-pile/stackexchange_filtered |
How to republish SharePoint 2013 workflows via Powershell farm-wide
I have a SharePoint farm with Dedicated WFM farm which is working fine, Now i am splitting SharePoint farm in to two farms (Farm A and Farm B) but workflow manager farm will be remain same. Everything is working fine after the split expect SharePoint 2... | common-pile/stackexchange_filtered |
how to set nutch to extract content of only urls present on seed file
I am using nutch 2.3 and I am trying to get the html content of some urls present on seed.txt file which I pass to nutch into HBase.
So the problem is as below---
First crawl:
Everything runs fine and I get the data into HBase with url as the row key... | common-pile/stackexchange_filtered |
Continuous Function and use of IVP
Let $\;f:[0,1]\to[0,1]\;$ be continuous function such that $f(0)=f(1)$ and
let $A =\{t,s ∈ [0,1]\times[0,1]\; |\; t \neq s ,\;f(t) =f(s) \}$
then prove that number of elements in A is infinite.
I feel I have to prove it a constant function using intermediate value property but not ge... | common-pile/stackexchange_filtered |
Ionic to signed apk with neo4j driver
I'm actually working on a Ionic projet and i'm using neo4j driver to use my neo4j database.
And i wanted to know if the connection with my database won't stop working after creating my apk
Thanks :)
Welcome! Can you add more details about what you're trying to do? What's the relat... | common-pile/stackexchange_filtered |
How to add legend in WFS OpenLayers
How can I publish WFS OpenLayers with legend, have tried different examples such as http://api.geoext.org/1.0/examples/vector-legend.js. But when I tried using this Firebug shows an error=> GeoExt.MapPanel is not a constructor and the polygon for which the legend is defined in the ru... | common-pile/stackexchange_filtered |
Reloading bind entity cause "An object with the same key already exists in the ObjectStateManager"
This has been asked before, but none of the available answers seem to fit to my case.
In order to perform some validation, I have to reload from DB the same entity, which already bound to the model. The following causes t... | common-pile/stackexchange_filtered |
getting unexpected result while adding two numbers in a program written in assembly
I wrote a program in assembly to ask the user to enter two numbers one by one and print the result on the console after performing addition on the two numbers.
after compiling the program in x86 architecture, when I run the program, the... | common-pile/stackexchange_filtered |
Sqlite: How to insert text entered by the user into a sqlite table using Node/Express
I am trying to find out how to pass client (HTML form) data to a Node/Express/sqlite back-end - not sure how to package up the request on the client side and/or extract the request on the server side.
Client code:
// listen for the fo... | common-pile/stackexchange_filtered |
Why is sympy.arg() function not returning the expected output?
I am trying to extract the phase of a complex number in sympy but the .arg() method is not returning useful or expected results for even simple cases.
import sympy as s
A, theta = s.symbols('A theta', real = True)
expr = A*s.exp(theta*s.I)
angle = s.arg(... | common-pile/stackexchange_filtered |
Uniform Distribution: finding the probability between two variables
Q: In a uniform density $\mathcal{U}(a,b)$ with $a=-0.025$ and $b=0.025$, what is the probability that an error will be between 0.010 and 0.015?
A: From the density function, I didn't know how $d$ and $c$ (constants) were related to 0.010 and 0.015, $P... | common-pile/stackexchange_filtered |
rm - command not found
I recently wanted to use the rm command in Terminal on my Mac. To my surprise, it just reponds with:
-bash: rm: command not found
I can use mv, cp, cd, ls etc. However rm somehow doesn't work. I can't use /bin/rm either.
Any ideas what is wrong?
Does the file /bin/rm acually exist?
You didn't ... | common-pile/stackexchange_filtered |
Methods of modern web development
Have just finished my first web based application using Ruby on Rails. It was fine and I feel like i have a good general understanding of RoR now.
I want to try a different method of web design next but don't want to start learning outdated methods, I want to stay current.
I understand... | common-pile/stackexchange_filtered |
Are the flutter third party plugins safe?
I am new to flutter development so I am using plugins from pub.dev.. I don't know whether those third party plugins safe or not..can someone hack or access the user data or database transactions through flutter plugins / can a plugin act as a malware? Please help
Here is somet... | common-pile/stackexchange_filtered |
The formula of ScoreDoc.score. in Lucene
I want to create a research engine using Lucene. From Lucene documentation, I noticed that ScoreDoc.score gives the similarity score between the document and query.
I want to know how the similarity score is calculated?
Please help me..
Similarly score is calculated based on t... | common-pile/stackexchange_filtered |
PyCharm cannot "Check out from Version Control"
I'm trying to check-out a public project from GitHub into Windows 10/PyCharm, but getting the error message: "Unable to create temporary file ... No such file or directory. Index pack failed". See attached screenshot.
I think it has something to do with permissions, but... | common-pile/stackexchange_filtered |
How to retrieve all charges for a customer in Stripe and dump them into Datatables using ajax?
I am using Stripe for my payment gateway and my application is in Classic ASP and I am using DataTables as a table to store all of the charges that a customer has had. What I need to do is retrieve all of the customer metadat... | common-pile/stackexchange_filtered |
gnuplot xvalue of maximum of y
I have a file made of three columns, x, y1 and y2. I need to know the value at which y2 has a maximum. To find the maximum of y2 is easy:
stats 'test2-EDB.dat' u 3
from which I know that the y2 has a maximum on the 6779th line of the file
STATS_index_max = 6779.0
However, what I need it... | common-pile/stackexchange_filtered |
How long can I power my device using a battery?
Lets say I have a battery that has 100mAh, and I am using it to power an IC that according to it's datasheet, consumes 1mA.
I understand that if I were to connect my IC to a bench power supply I would see it consumes 1mA (if it has a display), and theoretically I could le... | common-pile/stackexchange_filtered |
Could/Should I use static classes in asp.net/c# for shared data?
Here's the situation I have: I'm building an online system to be used by school groups. Only one school can log into the system at any one time, and from that school you'll get about 13 users. They then proceed into a educational application in which they... | common-pile/stackexchange_filtered |
How to convert the Timestamp in millis to Date with TimeStamp in Rest ful service?
I am trying to do to convert the Date in millis to Date in timestamp by using Jersey Converters. but I am not able to convert. Pleae help me .
Entity class:
@JsonSerialize(using=JsonDateSerializer.class)
@Column... | common-pile/stackexchange_filtered |
PHP : How to set timer to every night 12:00am
I have a PHP function that sets the timer for every 24 hours from the current time, and i'm using that function in my website as time() + 24 * 60 * 60 but i want the timer to be reset every night at 12:00am how can i do this?
If you are running Linux/nix, create a crontab ... | common-pile/stackexchange_filtered |
How to properly stop all the threads in Android?
In the code below, I maintain the "isFound" boolean variable to determine whether a thread should run or not. However, when I set the "isFound" to true. My threads will run exactly one more time. In other words, they will not stop properly which also causes the UI to not... | common-pile/stackexchange_filtered |
River red gum seedlings developing new leaves at stem sign of stress?
I am growing river red gums (eucalyptus camaldulensis) from seeds. They are now about two months old and approximately 10cm (4 inches) tall.
After only growing in one direction, they have suddenly both started developing new leaves at the stems of th... | common-pile/stackexchange_filtered |
How to replace two propellers on the same aircraft reaching the time limit?
When both propellers of the aircraft reach the time limit (60 month) and need to be replaced, can both propellers be replaced at the same time and perform only one flight test to reduce time on ground or should they be replaced one at a time ju... | common-pile/stackexchange_filtered |
replacing line in a document with Python
I have the following file and I would like to replace #sys.path.insert(0, os.path.abspath('.'))
with sys.path.extend(['path1', 'path2'])
import sys
import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path her... | common-pile/stackexchange_filtered |
Django rest auth email instead of username
I have a django project in which I am using Django-rest-auth to do authentication. I want to use email with password to authenticate the user and not the username+password.
I have following settings in my settings.py but it didn't do anything for me:
REST_SESSION_LOGIN = True
... | common-pile/stackexchange_filtered |
Rails: how to output pretty html?
I use SASS as views engine with built-in prettyfying option in config/application.rb:
Slim::Engine.set_default_options :pretty => true
Nevertheless, not only usage of rdiscount for posts rendering breaks all that beauty, but typical commands do that, e.g.:
title
= "#{t "title.main"}... | common-pile/stackexchange_filtered |
Combining multiple database table and converting rows to column - SQL Server
I have this 3 tables and I need to combine it together.
tblSites
| Site_Code | Site_Name |
AA AaaaaA
BB BaaaaB
CC CaaaaC
tblWeb
| WebID | AppName | AppUrl | ServerName |
1 aWeb www.aW... | common-pile/stackexchange_filtered |
Hash Passwords php
I have a very basic logon system, that authenticates users by the means of a user table in a mysql database with php.
can someone explain what the point of hashing passwords it, how to do it with php, and what is actually stored in the database.
Thanks
see http://stackoverflow.com/questions/3505346/... | common-pile/stackexchange_filtered |
ValueError: Must pass DataFrame with boolean values only
Question
In this datafile, the United States is broken up into four regions using the "REGION" column.
Create a query that finds the counties that belong to regions 1 or 2, whose name starts with 'Washington', and whose POPESTIMATE2015 was greater than their POP... | common-pile/stackexchange_filtered |
Copying cells with Range.Copy
I'm writing an Excel workbook to take data for a research study, analyze each day's worth, then send the entered data and its 7 summary computations into a workbook (named test subject 1, and worksheet test med 1) for archive and analysis.
The range.copy command correctly copies the rang... | common-pile/stackexchange_filtered |
How to get rows exactly like they are displayed in react mui datagrid? (filtered and sorted in the same way?)
Im making selected row move up and down on arrow clicks and for that I need to get rows from mui datagrid preferably using useGridApiRef hook. It's crucial that rows are filtered and sorted so they match what's... | common-pile/stackexchange_filtered |
Trying to read a specific line in c++ but nothing is displaying anything
So i'm writing some test code for a bigger project that will display specific data when a code and address has been entered, but currently nothing is running and i'm not getting any output at all.
#include <iostream>
#include <string>
#include <fs... | common-pile/stackexchange_filtered |
How to override property "sites.email.membership.reply.body" in liferay
I want override the following properties in my portal-ext.properties:
sites.email.membership.reply.subject=com/liferay/portlet/sites/dependencies/email_membership_reply_subject.tmpl
sites.email.membership.reply.body=com/liferay/portlet/sites/depend... | common-pile/stackexchange_filtered |
How do I preserve colors in the console when running a script from a spawned child process?
I have a mocha file full of Selenium tests. When I run mocha from the command line like normal, I get this nice formatted and colorized output thanks to the colors module.
This looks great and works wonderfully, but running man... | common-pile/stackexchange_filtered |
Alternative way to "preload" attribute
Hi everyone and sorry for my bad english. I'm writing code for an exam at my university.The exam it's about coding with HTML4 and JavaScript. The point is : i have a set of sounds to play when some events occours but the machines where my project will be examinated are SO old. I t... | common-pile/stackexchange_filtered |
PERSISTENT message have much slower performance than NON_PERSISTENT message
I found that PERSISTENT message have much slower performance than NON_PERSISTENT message.
I sent and received non_persistent messages and the performance is as follows.
Method Number of Msg Elapsed Time
Sending - 500 messages - 00:... | common-pile/stackexchange_filtered |
Sagepay - making the billing address visible in VPS form
The billing address being sent by our system used to be visible when the system reached the VPS Form - so that it can be adjusted by the user at the time of entering their card details.
It is no longer visible since Sagepay updated their UI a few weeks ago.
This ... | common-pile/stackexchange_filtered |
Dynamic Enabled = true in C# chart
I have a database witch contains values of different tracks.
For example:
Track 1:
Sensor 1
Sensor 2
Sensor 3
Sensor 4
Sensor 5
Sensor 6
Sensor 7
Sensor 8
Track 2:
Sensor 1
Sensor 2
Sensor 3
Sensor 4
Sensor 5
Sensor 6
Sensor 7
Sensor 8
Sensor 9
Sensor 10
Sensor 11
Sensor 1... | common-pile/stackexchange_filtered |
Does France have addressing products similar to British AddressBase?
In Britain people can license the Ordnance Survey's AddressBase product, which provides a list of almost all the country's addresses, with good building location accuracy even for remote country buildings. This is obviously useful for address suggest... | common-pile/stackexchange_filtered |
Is Myhill-Nerode equivalence class of a language which contains all palindrome pairwise distinct?
In my formal language class, we define a language called PAL, which is on a alphabet set $\Sigma = \{0,1\}$. $PAL = \{w \in \{0,1\}^* : w = w^R\}$. We have proved that every string in this language will be pairwise inequiv... | common-pile/stackexchange_filtered |
Yaw problem in my wall following algorithm
Hi,
I'm trying to create a wall following algorithm, but I'm having some problem. Essentially my code use laser to extract a line and calculate the slope (locally to the robot, so from 0 to 2*pi) but to make the control I need the robot yaw (0 to 3.14 and -3.14 to 0) so when ... | common-pile/stackexchange_filtered |
Group commutator relations and the neutral element.
In Serge Lang: Algebra it is stated on page 69 that for a group $G$ that, if for $x,y,z\in G$ $y=[x,y]:=xyx^{-1}y^{-1}, z=[y,z], x=[z,x]$ is satisfied, we have $x=y=z=e$.
I see that $y=[x,y]$ directly implies $y=x^{-n}y^{2^n}x^n$ for $n>0$, but I need a hint why it is... | common-pile/stackexchange_filtered |
If statement seems to be ignored
I have an if statement, as soon as it is true I will redirect to another page. It does not seem to work for me.
<?php
require 'includes/config.php';
session_start();
if ( !empty($_POST['username'] && $_POST['password']) ){
$gebruikersnaam = $_POST['username'];
$w... | common-pile/stackexchange_filtered |
Numerically solving a large dimensional non-standard quadratic matrix equation
I need to solve a system of two coupled matrix equations in $X$ and $P$,
$$
X = A_1 + A_2P \\
P = A_3X + A_4PX.
$$
In the above equations, $A_1$-$A_4$ are known matrices and $X,P$ are unknown. All matrices are squares of dimension $n\times n... | common-pile/stackexchange_filtered |
X11 Forwarding request failed
I'm trying to use ssh -Y/X ManjaroHost from my Mac, but get "X11 Forwarding request failed". I've searched for the solution for two weeks, and have tried many methods suggested by similar posts. It would be a great help to point out my mistakes!
Here are some experiments I've done. To make... | common-pile/stackexchange_filtered |
Query using geom_bar() of ggplot2 - R
I have a similar data frame as follows:
mapDF <- structure(list(var = c(11L, 3L, 4L, 15L, 19L, 17L, 1L), approvals = c(10.5233545765422,
67.9809421770218, 9.66394835013545, 2.93736399165075, 3.36787205222721,
4.0168261757783, 1.50969267664431)), .Names = c("var", "approvals"
), r... | common-pile/stackexchange_filtered |
Getting an Error trying to add a user to mongodb 2.6.5
I have spent a majority of my day trying to add a user to mongodb 2.6.5. I installed & re-installed Mongo via macports.
Try #1 ( addUser(); ):
1. # switching to the admin user
> use admin
2. # db.addUser("admin", "password");
When use the addUser(); I get t... | common-pile/stackexchange_filtered |
Convert pressure cooker recipes for 8 psi
I have a new electric multi cooker, it works at 8PSI and I am having difficulty at finding out how to convert stove top pressure cooker times at 15PSI down to 8PSI, hoping for your help.
Regards
Joan
| common-pile/stackexchange_filtered |
Straight or Drop handlebars?
Can someone explain to me the pros/cons of drop or straight? I've never used drops before and have never owned a good road bike (just cheap mountain bikes) - I am buying a decent single speed soon and unsure if I am better to go with straight or drop bars.
I am not an experienced cyclist an... | common-pile/stackexchange_filtered |
Multisites - Select homepage based on location
Would it be possible to have index.php of domain.com to be a dropdown to choose the homepage based on whether the user is in city x or city y? I'd then like a cookie to be set that remembered the user's choice.
| common-pile/stackexchange_filtered |
Controller action alias in ASP.NET MVC CORE
I have an action called /Telemetries/Page2 . I wish that /Telemetries/Index was an alias of the aforementioned action.
I added to startup.cs/Configure the following lines:
app.UseMvc(routes =>
{
routes.MapRoute(
name: "alias_route_... | common-pile/stackexchange_filtered |
Execute Hive Query with IN clause parameters in parallel
I am having a Hive query like the one below:
select a.x as column from table1 a where a.y in (<long comma-separated list of parameters>)
union all
select b.x as column from table2 b where b.y in (<long comma-separated list of parameters>)
I have set hive.exec.pa... | common-pile/stackexchange_filtered |
Is this the best way to handle storage of uploaded files in Django?
I'm not sure if I should use something like fs.save() or another method, such as chunking, to handle file uploads in Django. So far this is my method:
def handle_uploaded_file(uploaded_file):
filename = uploaded_file.name
filepath = os.path.joi... | common-pile/stackexchange_filtered |
Cancelling an AngularJS ng-click event from a directive
I've written a directive that should allow text to be selectable when inside on an element with an ng-click on it. When the mouse is pressed and then moved past a threshold the click event is cancelled.
Right now this only partially works and I can't figure out wh... | common-pile/stackexchange_filtered |
Currency table in CSS
I have a table and I need to format the currency in order for the . to be displayed always under each other.
This is the table:
<table class="data" cellspacing="0" cellpadding="5" border="0">
<thead>
<tr>
<th>Date</th>
<th>Description</th>
<th>Field1</th>
<t... | common-pile/stackexchange_filtered |
Can you use "Ich habe es geknickt" to mean "decided against having done" something?
I'm familiar with the expression "kannst du knicken" to mean "forget it", but can "Ich habe es geknickt" be used to express the idea of deciding against something (in the past tense)?
No. But I can’t elaborate on why.
I added the coll... | common-pile/stackexchange_filtered |
jquery find('[id*=operator]') does not work in asp .net
What might be the reason that this code does not work
There is DataList and inside asp:Menu with id Operator is located.
I use jQuery in order to get
$('#<%= DataList.ClientID %>').find('[id*=Operator]').each(function () {
strEnd = strEnd + ' ' +$... | common-pile/stackexchange_filtered |
Is there a database programming language with encapsulation to prevent the injections?
One of things that annoys me about SQL is that it can't think in terms of objects and it's lack of encapsulation makes me constantly have to escape commands to prevent injections.
I want a database language that can be polymorphic an... | common-pile/stackexchange_filtered |
Select rows based on date and time range
I am querying a table based on two columns date and time to return the rows:
tx_creation_date [date] and tx_creation_time [time(7)]
With the following query statement:
public interface PurchaseRepository extends PagingAndSortingRepository<Purchase, BigDecimal> {
@Query(v... | common-pile/stackexchange_filtered |
Improving performance on SQL query
I'm currently having performance problems with an expensive SQL query, and I'd like to improve it.
This is what the query looks like:
SELECT TOP 50 MovieID
FROM (SELECT [MovieID], COUNT(*) AS c
FROM [tblMovieTags]
WHERE [TagID] IN (SELECT TOP 7 [TagID]
... | common-pile/stackexchange_filtered |
Event bus message not received when executing blocking code
Here's the thing, let's say there are 2 verticles in a cluster over Hazelcast. Verticle 1 is sending loads of messages via event bus to Verticle 2. V2 consumes these messages, splits their contents into bulks and inserts these bulks into a database. The proble... | common-pile/stackexchange_filtered |
PHP preg_replace_callback match string but exclude urls
What I'm trying to do is find all the matches within a content block, but ignore anything that is inside tags, for use inside preg_replace_callback().
For example:
test
<a href="test.com">test title</a>
test
In this case, I want the first line to match, and the ... | common-pile/stackexchange_filtered |
AvFoundation takes black image from camera in Iphone
I am newbie to iPhone and have made a demo using AVFoundation for taking pics. I am taking 5 max images but issue is when I am taking 1st image it always come as compare to other images. Can anybody help me to resolve it? Code is as below:
AVCaptureSession *session =... | common-pile/stackexchange_filtered |
Skip attributes in XML Deserialization
Currently I use the following approach to deserialize a RESTful XML return:
[DataContract(Name = "Part", Namespace = "")]
public class Part
{
[DataMember(Order = 1)]
public string ItemId { get; set; }
[DataMember(Order = 2)]
public string ItemDescription { get; set; }
... | common-pile/stackexchange_filtered |
how to find the "UIImagePickerControllerOriginalImage" and "UIImagePickerControllerReferenceURL" when downloading the image from net
I want to get UIImagePickerControllerOriginalImage and UIImagePickerControllerReferenceURL when i download and save image to the photo album..
Can anyone suggest the proper method to find... | common-pile/stackexchange_filtered |
Tangent vector definition
I'm reading the book "Semi-Riemannian Geometry with Applications to Relativity", which defines a tangent vector at a point $p$ in a manifold $M$ to be a function $v : \mathcal{F}(M) \to \mathbb{R}$ (where $\mathcal{F}(M)$ is all smooth functions $M \to \mathbb{R}$), which is:
Linear: $v(af + ... | common-pile/stackexchange_filtered |
UnauthorizedAccess Exception with File.Copy on a ReadOnly file
Simple question really...
How can I copy a ReadOnly file?
When running a debug build of my very simple Windows Forms app, I'm getting the UnauthoriazedAccess Exception when trying to copy a read-only file from one directory to another:
FileInfo newFile = ne... | common-pile/stackexchange_filtered |
Login details security using salt n hash and a login role in postgresql
I am coding up the security for a website in express.js and postgresql db. Now I have been reading about salting and hashing and I have the code set up with pdkdf2 using the crypto module, but my issue is how I will structure the account table in t... | common-pile/stackexchange_filtered |
The notion of orientation in vector spaces
Do Carmo's Curves and Surfaces book states that "two ordered bases $e = \{e_i\}$ and $f = \{f_i\}$, $i = 1,\ldots,n$, of an $n$-dimensional vector space $V$ have the same orientation if the matrix of change of basis has positive determinant."
This same concept of "orientation"... | common-pile/stackexchange_filtered |
Difference between two values in choices tuple
Below I have a Car class, I have a tuple for choosing from a list of brands. My question is what is the difference between the two values?
In ('DODGE', 'Dodge') can I just name both Dodge or does one need to be uppercase?
class Car(models.Model):
BRAND_CHOICES = (
('... | common-pile/stackexchange_filtered |
Prove that a.e. convergence on a $\sigma$-finite measure space $(X,\mathcal{M},\mu)$ implies uniform convergence on a sequence of measurable sets.
I am currently reading the book "Modern Real Analysis" by Ziemer and have come to an exercise I am having trouble with. The exercise appears in the chapter on measurable fun... | common-pile/stackexchange_filtered |
Scala errors "value toInt is not a member of String" and "not found: type"
I've set up Scala project using Maven. It does not compile however. I get strange errors like something very basic is missing. Some of them are:
[ERROR] /home/victor/Work/Projects/Own/Scraper/src/main/scala/me/crawler/Node.scala:17: error: not f... | common-pile/stackexchange_filtered |
implementation of attention r2unet network in Keras - tf 2.x
I want to perform segmentation of optic disc from fundus images using attention networks. The architecture of the model is picked from "https://github.com/lixiaolei1982/Keras-Implementation-of-U-Net-R2U-Net-Attention-U-Net-Attention-R2U-Net.-" (courtesy, cre... | common-pile/stackexchange_filtered |
how to upload image created using php to users timeline on facebook
I have developed a facebook application that contains following files
1) index.php
2) cap3.php
where cap3.php generates an image using GD in PHP.
index.php displays this image using following code
<img src="cap3.php">
now I want this generated image ... | common-pile/stackexchange_filtered |
Decipher LINQ to Objects query involving strings
(Disclaimer: I am new to LINQ, and I did do my homework, but all my research came up with examples that deal with strings directly. My code deals with an ObservableCollection of objects where each object contains a string.)
I have the following code:
public class Word
{... | common-pile/stackexchange_filtered |
Add shortcode to woocommerce product short description
I'm trying to add a shortcode that will be placed on all single product posts. Specifically on the product's short description. I went to woocommerce templates and found a file "short-description" and I tried placed following code, but it's not working:
<?php echo ... | common-pile/stackexchange_filtered |
Parenthesis Checking Using Stack Python
I am learning data structures in Python and working on stacks. I am trying to create a code that uses stacks to match the parenthesis in an expression, however I am not getting the right answer. This needs to be done without the use of Python libraries.
class Stack():
def __i... | common-pile/stackexchange_filtered |
how do I fix the filter map and mapWithState function
I am a new scala corder, I have a flatMap function which return a FlatMappedDStream object, it is a sparking streaming job, the handle function return a Map[String, Any], the code is below:
val parseAction = filterActions.flatMap(record => ParseOperation.parseMatch(... | common-pile/stackexchange_filtered |
Is AskDifferent the right place for bash questions?
If I had a question solely bash or bash-related, would AskDifferent be the right place to ask? Or is there another community more appropriate for that?
As bash is a part of OSX then Ask Different is a place to ask as can be seen by the bash and shell tags.
For OSX s... | common-pile/stackexchange_filtered |
ecpg insert null with host variable (psotgreSQL)
I want to insert a null value into psql table with ecpg host variable, but I have no idea how to do this, it is a simple example below:
EXEC SQL BEGIN DECLARE SECTION;
char var1;
int var2;
EXEC SQL END DECLARE SECTION;
int main(){
EXEC SQL CONNECT TO .....
create()... | common-pile/stackexchange_filtered |
Docbook - more images in one figure
Is there in Docbook something similar to Subfig from LaTeX?
I want to put two images in a figure, side by side - how is this done in Docbook?
Try my answer and the examples provided here:
http://tex.stackexchange.com/questions/68001/side-by-side-minipage-figures/193104#193104
You ... | common-pile/stackexchange_filtered |
Java Runtime.getRuntime().exec unable to catch all output
My shell script run.sh
echo "Running my.r"
Rscript /opt/myproject/my.r
Output of run.sh from command line
Running my.r
2019-06-14 job starts at 2019-06-13 16:52:21
========================================================================
1. Load parameters from ... | common-pile/stackexchange_filtered |
Promotion of products and suggestions for illegal product usage
In the last couple of questions I filed in here at AE I was advised to solve my issues by acquiring a Microsoft Windows licence.
I have been struggling to get TWRP to boot on one of my devices and on a first a reaction a user directed me to do it with Win... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.