text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
How to get the default Equalizer to work with my current Audio Session ID
I want to make the users default equalizer work with my app, but I can't seem to get my app audio session to connect with the equalizer even though I am passing it my Audio Session ID etc.
Here is my code:
Intent i = new Intent(AudioEff... | common-pile/stackexchange_filtered |
All Exceptions breakpoint not finding "unrecognized selector sent to instance" error
I am getting the following error:
[__NSCFNumber length]: unrecognized selector sent to instance
I understand what the error means, but I am not able to find where it is coming from. Turning on the All Exceptions breakpoint is not help... | common-pile/stackexchange_filtered |
Policy for dead letter exchange routing back to queue
I've successfully set up a dead letter exchange policy where the dead-letter-exchange is blank, which will return the message to the original queue. However this only happens if the message was published to the default exchange, or with a routing key of the queue na... | common-pile/stackexchange_filtered |
How to estimate the parameters of a mixture model in OpenTURNS?
I would like to estimate the parameters of a mixture model of normal distributions in OpenTURNS (that is, the distribution of a weighted sum of Gaussian random variables). OpenTURNS can create such a mixture, but it cannot estimate its parameters. Moreover... | common-pile/stackexchange_filtered |
React Js With Laravel API Sanctum User Register 419 Error
I am new to react js and am trying to register a new user into my database with my react js frontend using Laravel API Sanctum and I am getting this error:
Request failed with status code 419
AxiosError: Request failed with status code 419
at settle (http://... | common-pile/stackexchange_filtered |
Blackberry simulator not creating COD file
This is an answer to anyone having problems getting a program to appear in the Blackberry simulator or problems generating a COD file.
I have been programming in JAVA using the Eclipse IDE and my program was working fine in the BB simulator. After creating a new package and ad... | common-pile/stackexchange_filtered |
OCS Error after Upgrade from Debian Stretch to Buster
After an upgrade from Debian 9 to 10 we've got the following Errors in Apache2's error.log
Can't locate Apache/Ocsinventory/Plugins/Apache.pm in @INC (you may need to install the Apache::Ocsinventory::Plugins::Apache module) (@INC contains: /etc/perl /usr/local/li... | common-pile/stackexchange_filtered |
C/C++ an int value that isn't a number?
Can this ever happen ?
3 asserts, where one should activate.
int nr = perform_calc();
assert( nr == 0);
assert( nr > 0);
assert( nr < 0);
Can there be a case when the program doesn't activate the asserts on g++ 3.4.4.
And no I don't have the possibility to change the code in ord... | common-pile/stackexchange_filtered |
Is it possible to select HTML elements which appear anywhere after another HTML element using pure CSS?
Is it possible to select any/all <h1> element(s) which appear(s) after an <h2> element using pure CSS?
I have combed through pages of documentation for all of the CSS selectors and pseudo-classes and am unable to det... | common-pile/stackexchange_filtered |
What do the operators + * and : do in gls function
My code looks like this:
Endo.v.Mass_Extant_Stages<-gls(log.Endo~log.Mb+Stage, data = CrocOntogenyData)
My results change based on whether I'm using a +,*, or : between log.Mb (continuous) and Stage (categorical). Does anyone actually know what these operators are doi... | common-pile/stackexchange_filtered |
Lenovo Screen broken (not physically)
My screen of my Lenovo Ideapad S400 recently stopped working.
It is less than a year old, and Lenovo/Medion state that it is not covered by warranty since it looks like having been damaged. Nothing the like has happened. I just sent it to sleep the previous day, then the next morni... | common-pile/stackexchange_filtered |
Finding general solution using Euclid's extended algorithm
I have a problem where I'm supposed to find the general equation to $242x+1870y=66$.
I used Euclid's extended algorithm to find $x=8$ and $y=-1$, but am not sure how to find all possible solutions using this information.
Is there a formula I can plug into? or c... | common-pile/stackexchange_filtered |
kernel density with weighted observations in r
I have coordinates of road accident data and I want to use 2d kernel density with weighted observation by severity of accident:
For example, I want fatal accident to be counted 3 times and damage only accident to be counted 1 time. How do I add it to the function? I notice... | common-pile/stackexchange_filtered |
Is solenoid magnetic field formula at an axial point exactly valid?
Learning about derivation of solenoid as equivalent bar magnet I came across a step raising some doubt. The first step is to take circular element of thickness $dx$ and then to calculate $B$(the magnetic field) at the point due to this element and fina... | common-pile/stackexchange_filtered |
Extracting element from span with beautifulsoup
I am trying to extract the element that are circled in red in the picture below from this website:
https://eresearch.fidelity.com/eresearch/markets_sectors/sectors/sectors_in_market.jhtml?tab=learn§or=25
However, it keeps giving me this error "ResultSet object has no... | common-pile/stackexchange_filtered |
Get value from one future and use it in another future, with Flutter
I have a favourites collection saved under a users collection. Each of the favourite documents has one field which contains a product_Id. I want to retrieve this product_id value and use it to query another collection. This second collection holds the... | common-pile/stackexchange_filtered |
Exception in thread "main" java.lang.UnsupportedClassVersionError (Trying run Alda on OS X)
I've hit a wall with trying to get Alda to run on OS X.
It's an executable I downloaded from here; then, as per the installation guide on GitHub, I ran chmod +x alda on it, and then moved it to my /usr/local/bin. After that, th... | common-pile/stackexchange_filtered |
Why should the Discount Curve be risk-free?
I have read up about the discount curve that is being used to value securities. The multi-curve methodology for valuing derivatives was mainly adopted because LIBOR was no longer seen as a proxy for risk-free yield (and hence the OIS curve is now used).
What I am trying to un... | common-pile/stackexchange_filtered |
Tkinter Control- and Double- numbers above 5 keybindings work, but not a whole lot else
Original Post
I'm trying to implement keyboard shortcuts in Tkinter with something other than Control- (as in Control-x), but have discovered that not a whole lot works on my machine. In the sample code below, only the Control and D... | common-pile/stackexchange_filtered |
Filter choice for the signal with the possible time jitter in sampling and frequency aliasing
I'm trying to filter data from the force sensor mounted on the end effector of the industrial robot arm. Mechanical vibration caused by the robot's motion (possibly by actuators, reductors, etc.) generates noise in the force s... | common-pile/stackexchange_filtered |
How can i get an image from one div and put it in an image tag?
I need some help.
How can i get an image from one div and put it in an image tag with j query?
i mean some thing like this:
$('.myclass').click(function(){
//put Image from div1 to img 1
});
Below code might server your purpose, looks like on... | common-pile/stackexchange_filtered |
How to upgrade program?
Trying to upgrade a program I constantly bump into the following error:
$ solana program deploy ./target/deploy/c003_low_level.so
=============================================================================
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` ... | common-pile/stackexchange_filtered |
Bond prices and Brexit
Hope this isn't too simple a question.
I read an article that stated that the UK government and EU have reached a draft agreement for a Brexit deal, leading to the following market movements after the announcement.
1) GBP rose against USD
2) Yields increased for 10-year British government bonds ... | common-pile/stackexchange_filtered |
How to make a different margin on the pages itext 7?
For example, on even pages, the indent is 100, on odd indentation - 150.
page #1:
doc.setleftMargin(100);
page #2:
doc.setleftMargin(150);
page #3:
doc.setleftMargin(150);
page #4:
doc.setleftMargin(100);
This does not work:
for (int i = 1; i < 5; i++) {
... | common-pile/stackexchange_filtered |
Android- play animated gifs from a file
I have found tutorials about how to play animated gifs in android by reading it from an asset or using a drawable object. But what I want is to read a gif file from sdcard.
I have changed the project reading gif from assets a little bit.
In the main activity, I basically create ... | common-pile/stackexchange_filtered |
urllib2 error stops program
I am running a program for an alarm clock displaying weather data from wunderground, but sometimes I get the urllib2 error message:
URLError: <urlopen error [Errno -2] Name or service not known>
and the raspberry stops, so next morning I will not wake up.
Code:
while True:
if time.strf... | common-pile/stackexchange_filtered |
Abstract Data Type Issue
I am fairly new to the concept of abstract data types an was looking for clarification because I could not find any good examples online.
From my understanding, the sub class inherits all methods and variables from the abstract but I think I am misunderstanding this. For example, I am creating ... | common-pile/stackexchange_filtered |
AutoMapper - Nested mapping whilst preserving selected child properties
So i have this;
public class Parent
{
public string SomeProperty { get; set; }
public Child ChildProperty { get; set; }
}
public class Child
{
public string ChildProperty { get; set; }
public string OtherChildProperty { get; set; }
}
public... | common-pile/stackexchange_filtered |
Remove all spaces before a character in a line
I have this peculiar requirement where I need to remove all space characters before a specific character which is a pipe'|'.
I have written a test code for it which is actually printing the right output but additionally gifting me a core file :(
My code is below:
int main(... | common-pile/stackexchange_filtered |
How to build and deploy GeoExplorer on jboss 5.1.x?
I am trying to deploy opengeo GeoExplorer on jboss 5.1.x by using this command:
ant deploy -Dcargo.host=localhost -Dcargo.port=8080 -Dcargo.container=jboss51x -Dcargo.username=abc -Dcargo.password=abc123
but GeoExplorer fails to build successfully.
Here is the log c... | common-pile/stackexchange_filtered |
Neo4j server locks database. Why?
I just started to discover the world of Neo4j and stumbled right into an issue, I have problems to grasp.
I installed Neo4j and started it via bin/neo4j start.
In the next steps I wrote a ruby script that creates new nodes, after installing jruby and the neo4j gem. Everything fine unti... | common-pile/stackexchange_filtered |
displaying certain payment methods for customer groups
I am very new to the magento checkout process so forgive my lack of knowledge. Is there a way of displaying certain payment options for certain customer groups. For example i have changed the "purchase order number" to "30 day credit account" but this is only avail... | common-pile/stackexchange_filtered |
MarkLogic Semantic Sparql
I am trying to query semantic content in a MarkLogic database using Query Console, with MINUS in the query. QC shows an error like this:
XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected , expecting }
The error highlights the MINUS keyword. The SPARQL Query standard s... | common-pile/stackexchange_filtered |
What does my recruiter want to know when they ask for "availability at the earliest opportunity"?
So a recruiter emails me asking me for my availability and provides me with details of the interview which involves a test. I tell the recruiter that I am able to attend the interview on so and so day at so and so time.
th... | common-pile/stackexchange_filtered |
API call by HTTP POST method without using parameter name for the body
I'm using Java. How I can make a HTTP POST call API and inform in body only "JSON" value (without parameter name)?
Per example call this URL: https://api.nimble.com/api/v1/contact?access_token=12123486db0552de35ec6daa0cc836b0 (POST METHOD) and in bo... | common-pile/stackexchange_filtered |
How do we call an android path like com.example.HelloWorld.MainActivity?
I need to call the path of one of my views in my main_activity.xml, under the form "com.blah.blah.view1". For this I need to know its path under that precise form, and not the directory form ( C:/.../.../view1.java ).
Which leads me to this questi... | common-pile/stackexchange_filtered |
Are there any super villains in "The Boys"?
(I am only 3 episodes into The Boys, nor have I read the comics, so I don't know if this is answered later on).
In The Boys (2019 TV series) it seems that the world has an immense number of superheroes, even to the point that Vought desires to have a Supe in basically every ... | common-pile/stackexchange_filtered |
How to selectively append to end of line using visual block mode?
I am trying to use visual block mode to append a , to the end of root_dir, where [] is the cursor.
lspconfig.html.setup{
root_dir = root_di[r]
}
lspconfig.cssls.setup{
root_dir = root_dir
}
I tried to enter visual block mode, go down until I am on a... | common-pile/stackexchange_filtered |
How to get the fans of a page I am admin of?
I am admin of a page which has over 1000 likes. I want a list of all my fans. Is it possible to do this ? If yes how ?
I have been checking the facebook documentation and FQL but am not able to figure out anything. Please help.
What I want is a query like "select uid from ... | common-pile/stackexchange_filtered |
Rescheduling of node.js tasks
I am now writing a node.js socket application.
As it involves some CPU intensive tasks, it would be quite troublesome for multi-connections tasks.
Here is what the problem is:
Let task A be the CPU intensive tasks, it is invoked by connection A.
Let task B be the very lightweight tasks, it... | common-pile/stackexchange_filtered |
What do I need to read before understanding "Kierkegaard: Attack upon Christendom"?
So far I have read "Either/or", "Repetition", Plato's dialogues, "Nicomachean Ethics", "Meditations" by Marcus Aurelius and I'm quite familiar with Christianity. Which other primary texts or some kind of secondary source do I need to be... | common-pile/stackexchange_filtered |
Is storing filename in varchar datatype column good?
Is storing filename in varchar datatype column good? Is there other way on handling files for your software like creating a folder by numeric Id and just checking if a file exists in the folder in your application logic?
Thanks!
Filenames are strings and should be s... | common-pile/stackexchange_filtered |
open docx from c# using Microsoft.Office.Interop.Word and save changes after closeing msword
im using Microsoft.Office.Interop.Word to open my docx using this code:
Microsoft.Office.Interop.Word.Application ap = new Microsoft.Office.Interop.Word.Application(); Document document = ap.Documents.Open(System.Windows.Forms... | common-pile/stackexchange_filtered |
TCP connection drop/ or unable to recieve data over TCP
I have a client PC sending me data over TCP using a TCP_client program that I wrote. Basically, I am sending a "Hello Message" to the server.
class Program
{
const int ourPort = 9090;
static IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("<IP_... | common-pile/stackexchange_filtered |
Automapper: Custom mapping for multiple source arrays to a single destination array
I have a source dto object being mapped to a configuration object. My Source object (ConfigDto) has several arrays of various types:
'''
public class ConfigDto
{
public DogDto[] Dogs { get; set; }
public CatDto[] Cats { get; set... | common-pile/stackexchange_filtered |
Adding usercontrol each time on ButtonClick event
I am trying to add an instance of UserControl each time on button_click event, it works for the first time only. I am adding IDs to user control by appending integers from ViewState.
Why does it not add work for subssequent clicks. Here is the simplified version with t... | common-pile/stackexchange_filtered |
How to show a dialog form while main app works?
I want to have a loading form showing up while the main app connects to db and fetching initial data. Because this can take up 5-10 secs I want to inform the user that something is happening.
This is what I have come up with:
frmStart _frmStart = new frmStart();
Thread t ... | common-pile/stackexchange_filtered |
Unsaved Transient Instance Hibernate
Although there are several questions related to this exception, Folks, this is not a possible duplicate . Iterating through multiple excel sheets using APACHE POI , I have to use JPA to perform a many to one relation
for (int i = 0; i < wb.getNumberOfSheets(); i++) {
HSS... | common-pile/stackexchange_filtered |
Concatenation vs Interleaving
I cannot understand the difference between interleaving and concatenation
Interleaving
proc sort data=ds1
out=ds1;
by var1;
run;
proc sort data=ds2
out=ds2;
by var1;
run;
data testInterleaving ;
set ds1 ds2 ;
run ;
Concatenation
data testConcatenation; ... | common-pile/stackexchange_filtered |
https Dynamic URL without an index.php
i am using wordpress with the whmcs-bridge plugin... the problem is that my links are not seo friendly... the whmcs-bridge plugin produces urls like this
https://mysite.com/whmcs-bridge/?ccce=cart&a=add&pid=1
notice there is no index.php? just the ?...
I have tried mod rewrite to... | common-pile/stackexchange_filtered |
html "selected" does not work with ajax
I have a piece of code where users get car model based on car make with Ajax. It works well. However, when the user enters to "edit car" page the make of the car is selected automatically, but, the model not.
How can I fix it? Here is my ajax file:
<script type="text/javascript... | common-pile/stackexchange_filtered |
Hund's rules in Helium level scheme
If I am not wrong, Hund's rules state that:
I) The highest $2S+1$ has the lowest energy.
II) For a given $S$, the lowest $L$ has the highest energy.
However, I have found in various textbooks the level scheme for Helium, where the order is $D > P > S$. (See the image below for the $n... | common-pile/stackexchange_filtered |
Can we use mundane for objects?
According to dictionary mundane means:
ordinary and not interesting or exciting
but all examples are about job, work, tasks and other abstract things. I wonder if I can use mundane for things such as my laptop:
I had been using a mundane laptop for a couple of years before I bought m... | common-pile/stackexchange_filtered |
How do I transfer data from one oracle database to another oracle database with airflow
i'm trying to transfer data from one oracle_db1.table1 to another oracle_db2.table1. I've already installed the backport-provider: https://pypi.org/project/apache-airflow-backport-providers-oracle/.
Import works fine now. But tryin... | common-pile/stackexchange_filtered |
A nice way to see that $(\ell^\infty,d_\infty)$ is not separable
Let $(X,d)$ a metric space such that $\exists A\subseteq X$ uncountable and $\exists \epsilon\gt0$ such that $\forall x,y \in A,x\neq y\Rightarrow d(x,y)\gt\epsilon$. Prove that $X$ is not a separable space and and use this result to show that $(\ell^\in... | common-pile/stackexchange_filtered |
WHY does my cpu usage goes to 99%, when my C# application starts listening on tcp socket?
I created a TCP socket listening application . As I run my program, CPU usage goes up to 99%
NetworkStream nStream = tcpClient.GetStream();
ASCIIEncoding ascii = null;
while (!stopRecieving)
{
... | common-pile/stackexchange_filtered |
Replace row values with other row values from same df based on conditions
I have the following dataset:
df = pd.DataFrame( {'user': {0: 1, 1: 1, 2: 1, 3: 2, 4: 2, 5: 2, 6: 2},
'date': {0: '1995-09-01', 1: '1995-09-02', 2: '1995-10-03', 3: '1995-10-04', 4: '1995-10-05', 5: '1995-11-07', 6: '1995-11-08'},
'x': ... | common-pile/stackexchange_filtered |
Interrupt routine in Arduino library never called
I am trying to write an Arduino library that uses an interrupt routine. Everything seems OK, no compilation error is thrown, but it does not work, as the isr routine is never called.
In this simplified version the while loop runs forever, despite the correct interrupt t... | common-pile/stackexchange_filtered |
Is there a compiler warning in gcc that will be more particular about mismatches between declaration and definition signatures?
I have a class that has a member function declaration:
void doSomething(int a);
and a function definition:
void doSomething(int const a) { ... }
As covered in Mismatch between constructor de... | common-pile/stackexchange_filtered |
Monochrome Bitmap
Should be an easy one.
I'm working on Scala trying to handle long sequences of binary data. That is long lists of 0's and 1's. What is the 'best' way to store/access this kind of data.
The important point here is memory optimisation, so I would like to avoid using an entire byte to store a boolean. Al... | common-pile/stackexchange_filtered |
Regex - replace end of line, not string?
I am slowly building a FoxPro to C# conversion and replacing common FoxPro syntax to now work in C#.
'If' becomes 'if ('
'Else' becomes '} else {'
'Endif' becomes '}'
Now I need to be able to identify the end of a line on an If statement so I can close it with ) {. How can I... | common-pile/stackexchange_filtered |
jQuery / wordpress issue with .addClass based on url
I'm have some issues adding a class to 2 navigation links on a theme.
I need to add a class based on a url string as i'm redirecting the page to another.
I'm using the following code:
<script type="text/javascript">
if (window.location.pathname.indexOf('/category/blo... | common-pile/stackexchange_filtered |
Anthropomorphism and AI
The human brain and computer based AI are vastly different systems. Although both may perform similar functions, the mechanisms are different: one is purely electrical and assembled, the other is bioelectrochemical and grown. If form follows function and the function of human existence is differ... | common-pile/stackexchange_filtered |
If $R$ is a rng, show that $R\times \mathbb{Z}$ contains a subset in one to one correspondence with $R$.
Let $(R,+,\cdot)$ be a rng (satisfies all the axioms of a ring except multiplicative identity). Define addition and multiplication in $R\times\mathbb{Z}$ by: $(a,n)+(b,m)=(a+b,n+m)$ and $(a,n)\cdot(b,m)=(ab+ma+nb,nm... | common-pile/stackexchange_filtered |
How many different ways are there for five lawyers and seven businessmen to sit around a circular table?
Question:
How many different ways are there for five lawyers and seven businessmen to seat around a circular table, where exactly five businessmen sit together (by together, it means that they sit side by side and t... | common-pile/stackexchange_filtered |
What is Kaohsiung and Taipei like 1 week after Chinese New Year
May I know what is the condition after 1 week of Chinese new year in Kaohsiung and Taipei? Will it be crowded with a lot of people?
I am planning to go to Kaohsiung and Taipei next year February 6 to 15 and I was wondering if there will be people to help ... | common-pile/stackexchange_filtered |
If objective reality does not exist, is the universe different for everyone?
A recent study says that objective reality doesn’t exist and that each persons subjective experience differs. Now I don’t think that the laws of physics work differently for me or anything like that but my qualia is very different than someone... | common-pile/stackexchange_filtered |
Mean Square Error of Sample Variance
Define the sample variance of $n$ measurements as $V_{n}=\sum\limits_{i=1}^{n}\,\frac{(X_{i}-M_{n}(X))^2}{n}$, where $M_n({X})$ is the sample mean, for the random variable X. I was trying to find the mean squared error for this estimator, I did by opening the squares and the expand... | common-pile/stackexchange_filtered |
CNF with Nested Quantifiers
I have the following statement:
$$\
\forall Z \forall X ((A(Z) \land S(Z,X)\land (\exists Q (P(Q) \land E(Z,Q)))) \implies E(X,Z))
$$
Which (I hope) can be read as "For all X and Z, if A(Z) and S(Z,X) and there exists a Q with P(Q) and E(Z,Q)) then E(X,Z))
In the process of reducing to CNF... | common-pile/stackexchange_filtered |
How do you derive the soft iron matrix for magnetometer calibration?
Can someone send reliable sources for how this is derived? I understand the diagonal values are for scale, but how do you determine all 6 values needed for this matrix? I would also like to normalize the radius to 1 while doing so. I've found many pap... | common-pile/stackexchange_filtered |
Moving/spilling water inside a cup of glass
I made a glass of water but there are somethings i didnt know how to do well, what i did is i put a mesh on the top of the glass to represent the surface of the water but it doesnt really work well with glass because if you look from the sides you wont really see that there i... | common-pile/stackexchange_filtered |
Importing .mat file to pgfplots
I am using pgfplots to create figures, and I have a (large) set of simulation data generated from Matlab. It is in the .mat format. The data are of the form (two column)
(1,0.2)
(1,0.3)
...
(1,0.2)
...
(2,0.4)
(2,0.1)
...
A scatter plot in pgfplots would be appropriate. I want to... | common-pile/stackexchange_filtered |
Are we too fast in closing questions as unclear?
I've seen many a times questions are put on hold as unclear within some hours of posting. For example, this question was closed within 3 hours of posting.
Suppose in some country there is a user who posted a question and slept. Meanwhile his question was put on hold aft... | common-pile/stackexchange_filtered |
I access 2d array data from model to controller in codeigniter but i want to save data in variable?
my controller function:
function view_story($story_id)
{
$this->load->model('m_signup');
$data['template_data'] = $this->m_signup->get_template($story_id);
var_dump($data);
// here i want 'template_name'... | common-pile/stackexchange_filtered |
curl effect on landscape mode
i am trying to implement curl effect by using below code snippet
curl down
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.95];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown
forView:self.view cache:YES];
[UIView setAnimationDidStopSelector:@sel... | common-pile/stackexchange_filtered |
How to create dynamic query to fetch data from custom setting
I want to create a generic component on which I will pass custom setting name as parameter and also list of fields which I want to get from custom setting.
So can we do this in Salesforce?
What did you try to do about this?
You can implement it yourself u... | common-pile/stackexchange_filtered |
Why does valgrind report different results (no leaks are possible / still reachable) just by running the program multiple times?
While debugging a random segmentation fault, I ran valgrind, running the same program multiple times I get different results. Here is a simplified version of the program (I did not get a a ra... | common-pile/stackexchange_filtered |
multiCurl with Generators in Python
To be frank, I am quite new to Python.
I did go through official documentation several times.
I didn't get everything I want to know about generators in Python.
Here is what I wanted to learn.
I don't want to fill information with full library which is quite long.
I created a library... | common-pile/stackexchange_filtered |
R - How to repeat data frame manipulation 100x with new random numbers and plot removals
I am a new user to R and am trying to create multiple subsamples of a data frame. I have my data assigned to 4 stratum (STRATUM = 1, 2, 3, 4), and want to randomly keep only a specified number of rows in each stratum. To achieve th... | common-pile/stackexchange_filtered |
ActionScript Drawing Code From Vector Graphic?
is there a common way to convert a drawn vector graphic in Flash Professional to code for the Drawing API?
the code of these drawn or imported vector graphic assets are available in the source files (.xfl) as XML data. for example, the following drawn vector graphic is th... | common-pile/stackexchange_filtered |
PHP Mail Script working but email not arriving
I've written the following PHP script to send an email based on a forms input:
<?php
$to=$_POST["email"];
$subject=$_POST["subject"];
$message=$_POST["message"]."<br />".'<img src=imgdir/'.$_POST["banimg"].'"/><br /><br />'.'<img src=addir/'.$_POST["adimg"].'"/><br /><b... | common-pile/stackexchange_filtered |
TypeError while searching through a list
The project I am working on takes and opens the wiki homepage, opens every link on the page that is a Category, then takes the first 10 links on every category page and writes them to a file.
Code:
url_list = open('url_list', 'w')
counter = 0
urls = []
html = urllib.request.... | common-pile/stackexchange_filtered |
Fitting models with multivarient time series data
My main question is how do shape data to fit multivarient time series data on a model. My current code looks something like this:
def diff_stats_mod (X_train, X_test, y_train, y_test):
################init########################
score_dict = {}
n=0
###... | common-pile/stackexchange_filtered |
simplejson ImportError when I try to create a new conda environment or install a package
I'm trying to use Conda as I usually do in order to create a new environment and install a new package, but I receive this error message:
/cluster/home/2530631/mambaforge/lib/python3.10/site-packages/_distutils_hack/__init__.py:33:... | common-pile/stackexchange_filtered |
is there a way to check for existence of a key in JSONObject of org.json java package?
Essentially its as the title says, I want to check if key "error" exists in the JSONObject but guarding it with try catch as a part of normal control flow seems to be a very bad and dirty thing to do, so surely it cant be the intende... | common-pile/stackexchange_filtered |
Bootstrap tooltip not working with error 'tooltip is not a function' (MVC)
I am implementing tooltip using bootstrap. My code looks like:
View:
<div class="CompleteRegistrationHeadingText glyphicon glyphicon-question-sign" data-toggle="tooltip" title="Test!"></div>
Script:
$(document).ready(function () {
$('[data-... | common-pile/stackexchange_filtered |
Why do I have Apple certificates in my keychain?
Today, i looked over my keychain and was surprised to find out that i have several apple certificates as part of it. I wonder .. what is the significance of them and how could i have possibly gotten them? (I am not a registered apple developer)
OS X ships with at lea... | common-pile/stackexchange_filtered |
Maximum is attained on the boundary
Let $f_1, ... , f_n$ be holomorphic on a bounded domain $\Omega$, continuous on $\overline{\Omega}$. Let $g = |f_1| + \cdots + |f_n|$. The problem I couldn't get is to show that the maximum of $g$ is attained on the boundary of $\Omega$. This should be some obvious application of ... | common-pile/stackexchange_filtered |
Database Query Is not working in batch file
@echo off
set user_name=username
set password=
set sid=sid
@echo select distinct scid, to_char(dlog_on_timestamp,'dd-Mon-YYYY hh:mi:ss') from table where dlog_on_timestamp > sysdate-7; | sqlplus -s %user_name%/%password%@%sid% >> C:\Users\test.txt
While running this batch ... | common-pile/stackexchange_filtered |
Multiple Sizes and respective quantity
I have products with different sizes and their availability varies.
Like Product A is available in S, M, L, XL and the respective availability is 0,2,5,1
How to configure it in Magento.
The inventory is managed through each associated simple product.
Simple Product A - Size S: ... | common-pile/stackexchange_filtered |
Realtime and Offline voice recognition?
Most voice recognition solutions on Android seem to rely on remote servers. I'm interested in allowing the player to issue simple "left", "right" and "turn back" commands to a vehicle. The recognition would need to be very fast (internet is thus out of the question), but only nee... | common-pile/stackexchange_filtered |
Remove glued gasket from swing-top bottle stoppers
I would like to remove gaskets around ceramic/porcelain swing-top bottle stoppers (also called flip-top or Quillfeldt stopper).
It cannot be cut easily and seems strongly glued. I tried boiling water to soften the glue, but it did not work. I would be interested to ... | common-pile/stackexchange_filtered |
js fill array than replace with value
My goal is start with an array
with null values than if an other
array has entries replace accordingly
just to do en example
const a = [...[null,null,null, null], ...[1,2,3,4]]
I want an array [1,2,3,4]
at start the second array could be also empty like
const a = [...[null,null,nu... | common-pile/stackexchange_filtered |
Best method for numerically solving Schrodinger equation for quantum tunneling w/ arbitrary potential
Goal: to compute accurate tunneling probabilities with an arbitrary barrier using numerical solutions to Schrodinger's equation.
Main question: what method is best for generating a robust numerical solution to Schrodin... | common-pile/stackexchange_filtered |
How to include third party classes into the Android apk?
I have a couple of third party classes which serve as a library I can build my application upon. They are contained in a folder which was added Java Build Path -> Libraries (in Eclipse) with "Add Class Folder". It works fine so far an my app compiles. But the pro... | common-pile/stackexchange_filtered |
If I do everything on my page with Ajax, how can I do Search Engine Optimization?
How is the relationship between crawlers and ajax applications?
Do the web crawlers or browsers read dynamically created meta tags?
I thought about:
adding anchors to the page
creating permalinks to the content
dynamically adding meta ta... | common-pile/stackexchange_filtered |
How should we [title] tags?
I recently noticed that the titles tag is being used inconsistently. The tag wiki excerpt says:
Questions dealing with title/honorifics of certain characters in SFF works.
But while some of the tagged questions are indeed about titles of fictional characters:
Why are Stannis and Renly nev... | common-pile/stackexchange_filtered |
Using external javascript libraries in angular 2 lazy loaded module, not index.html
So I want to include an external JS library, a carousel slider in the is case, to my Angular 2 app. I have seen a lot of tutorials that show how it can be added I have done that successfully, but referencing the library on index.html.
... | common-pile/stackexchange_filtered |
What's the geometric (or representation independent) definition of central charge of Lie algebra $\mathfrak{g}$?
There is a common way described in Weinberg's Quantum Field Theory Vol.1 (P83) for introducing the concept of the central charge which I find difficult to grasp. This method uses a unitary projective represe... | common-pile/stackexchange_filtered |
Storybook initial config for react throws error
I initialized storybook for react app with npx storybook init command, then run nr storybook and it throws an error:
ERROR in ./.storybook/preview.js-generated-config-entry.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
TypeError: /Users/igormakow... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.