text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Sum of two squares - Number of steps in Fermat descent
If a prime $p$ can be written as the sum of two squares, then one can construct this representation via Fermat descent if we know an $x$ such that $x^2 \equiv −1 \mod p$. Is there a possibility to say how much steps the Fermat descent will have without just going t... | common-pile/stackexchange_filtered |
Cron on Ubuntu AWS with Python/Anaconda Virtual Environment
Previously was using Fedora, and I was calling cron jobs using this method, which worked perfectly:
source /home/me/miniconda/bin/activate me_dev; python /home/me/avant_bi/g_parse.py
Now this throw an error in the cron logs:
/bin/sh: 1: source: not found
I'v... | common-pile/stackexchange_filtered |
OpenGL - strange SSAO artifact
I followed the tutorial at Learn OpenGL to implement Screenspace Ambient Occlusion. Things are mostly looking okay besides a strange artifact at the top and bottom of the window.
The problem is more obvious moving the camera, when it appears as if top parts of the image are imprinted on t... | common-pile/stackexchange_filtered |
Object oriented design. What better?
I have a Printer class that should print a number and text. The number never changes for each Client class. I have more Client objects with different number values.
What design is better?
In the sample1 the number sends to print() method as argument, therefore all Client objects use... | common-pile/stackexchange_filtered |
Implementing normal user/pass, Twitter & Facebook auth
I have created a public facing website which allows you to login using a username/password, or with Twitter, or with Facebook.
When logging in with Twitter for the first time (for example), a user is created in my database with a nickname matching the Twitter scree... | common-pile/stackexchange_filtered |
In an integral domain $R$, are principal ideas always equal to $R$ ??
If we define:
1) $R$ is a ring, $I$ is an ideal. We say that $I$ is prime if $I$ is not equal to $R$ and whenever $ab$ belongs to $I$ then either $a$ is in $I$ or $b$ is in $I$.
2) Let $R$ be a commutative ring and let a be an element of $R$. The se... | common-pile/stackexchange_filtered |
What Thunderbolt 3 docks are backwards compatible with legacy Thunderbolt 2 and Thunderbolt 1 Macs
This is the case where you are running an older Mac with a Thunderbolt 1 or 2 port, and you would like to get a dock to add some faster ports like usb 3, but are finding it hard to find an original dock to match the obsol... | common-pile/stackexchange_filtered |
Make file Doesn't detect changes in source files
I am very much new to make files , I am facing very basic problem , My Makefile doesn't detect changes I made to source files . The problem is , when I first time generate consoleapp binary from my source file i get expected output . But When I change source file again ... | common-pile/stackexchange_filtered |
upgrading from <IP_ADDRESS> to <IP_ADDRESS>
I am new to magento. If I use the Package upgrade available through magento connect downloader do I need to backup and overwite my custom files as in the upgrade roadmap when upgrading a full magento installation?
For modules such as Lib_Magento, Lib_Mage & Lib_Unserialize ,,... | common-pile/stackexchange_filtered |
Modify catcode in the preamble or in the \AtBeginDocument?
I want to modify the catcode of comma, with the following code
\documentclass{article}
\AtBeginDocument{%
\catcode`\,=\active
\protected\def,{...}%
}
\begin{document}
a,b,c $a,b,c$.
\end{document}
I get the following error message:
! Missing control sequen... | common-pile/stackexchange_filtered |
Is there a definition of the words: Quotient, Fractions and Ratio?
I'm curious, do we have a definition of quotient, fraction and ratio?
The Wikipedia page is very unclear. To be honest I've used those words interchangeably to mean any expression of the form $$\frac{A}{B}, \ \ A:B, \ \ AB^{-1}$$ where $A$ and $B$ are w... | common-pile/stackexchange_filtered |
Stat struct "Field 'st_size' could not be resolved
I'm having problems with st_size of stat struct in a simple program for Raspberry Pi.
I write the code in Eclipse C/C++ IDE (CDT) with a Macbook, and then compile it in the Raspberry Pi. I didn't have problems until I started using fstat and stat structure.
I test th... | common-pile/stackexchange_filtered |
How to handle a project in git with the same code but different templates?
I have a project where the only difference are the templates.
The question is how should I manage this with git now?
At the moment I have 3 different git Repos, but it's hard to maintain all 3 of them.
What would be a good solution for this prob... | common-pile/stackexchange_filtered |
Matching a string between two sets of characters without using lookarounds
I've been working on some regex to try and match an entire string between two characters. I am trying to capture everything from "System", all the way down to "prod_rx." (I am looking to include both of these strings in my match). Below is the f... | common-pile/stackexchange_filtered |
How can i make the common function/view for servinf downloadble files in django python
I am displaying the list of objects in the html table.
i have the download link in front of every row which i want them to download the linked file.
I have made this function
def make_downloadable_link(path):
#Prepare the form fo... | common-pile/stackexchange_filtered |
Hi, i have problem with my code, i want to create a new list from the list
The elements of the list are integers and strings, I want to convert them to integers first, but the program ignores the command int(i) and outputs a list with the same elements as the first list.
lista = [2,3,4,'5','6','7']
lista_2 = []
for i i... | common-pile/stackexchange_filtered |
bibtex-style "angewandte" and double citations
I would like to use double citations with the BibTeX style angewandte (chemie). In the readme file this is explained:
For double citations in the style of Angewandte Chemie (German of international edition) the second literature citation can be given with the BibTeX field... | common-pile/stackexchange_filtered |
histogram for every variable in pandas dataframe grouped by 1 specific variable
I am trying to create a histogram plot for every column in my pandas dataframe, but for each of the separate plots to have a separate color coding for each of the 2 values in 1 of the columns.
I can successfully create a histogram if you ig... | common-pile/stackexchange_filtered |
Why two thread accessing same data while reading from database?
Here the code i tried but multiple thread are accessing same data in database ....
MY XML
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:batch="http://www.springframework.org/schema/batch... | common-pile/stackexchange_filtered |
SQL Server - CDC - Log-Scan Process failed to construct a replicated command from log sequence number (LSN)
CDC is enabled on the database and multiple tables are included for cdc. We had been receiving the below alert intermittently, monthly once which is causing the changes not written on the CT tables. We do not hav... | common-pile/stackexchange_filtered |
Load website with v-navigation-drawer closed
Is it possible to load the website with the Navigation Drawer closed and open just after the click, like a mobile menu?
I am using Vuetify:
<template>
<v-app toolbar--fixed toolbar footer>
<v-navigation-drawer
temporary
v-model="sideNav"
enable-resize-watch... | common-pile/stackexchange_filtered |
Siunitx: Suppressing decimal alignment for an integer row in a table
How can I align the figures in the column of the following MWE?
The figure in the N row is always an integer, so I don't want that to be aligned on the decimal place like the coefficients above: it's too far to the right. Is there any alternative to p... | common-pile/stackexchange_filtered |
`react-hover` npm package not in production build but working fine in development
I want to make use of the npm package react-hover (here's the github link) in my project and when I develop locally in dev build it works just fine. When I run the npm run build command and serve the production version the components I wa... | common-pile/stackexchange_filtered |
How to exclude Facebook Pixel and Google Analytics from firing on one Wordpress page
I'm trying to setup an email opt in page that can load as fast as possible.
At the moment, it takes a second to load my Facebook Pixel and Google analytics which make the page a bit slower.
I need the tracking on all other pages, but... | common-pile/stackexchange_filtered |
Arm Roast after 5 hours still tough
When I make a Arm or Chuck Roast always after 5 hours it is still tough, the beef is grass feed. I have give up making them. My wife wants me to make another Arm Roast again and I want it to come out month watering and not tough. My wife has ALS and it really needs to be very tender ... | common-pile/stackexchange_filtered |
Multiple python versions under apache+mod_wsgi
I have several virtual hosts configured under the same apache instance on redhat:
apache-2.2.15
mod_wsgi-3.5 compiled with default system python-2.6
For every virtual host WSGIScriptAlias setting is pointed to the python file where the virtual environment is activated:
... | common-pile/stackexchange_filtered |
Jcheckbox always returnig false in Swing Java
I am using Java and Swing, all I want to de is to test if the Jcheckbox is selected and if so adding its text to a list of Strings, the problem is that the isSelected fuction is always returning False even if the checkbox is selected.
Here is the code I wrote:
List<JCheckBo... | common-pile/stackexchange_filtered |
MPJPEG Expected boundary '--' not found
I get the following error when streaming from a video camera.
"[mpjpeg @ 00555000] Expected boundary '--' not found, instead found a line of n bytes"
When debugging, the above error is written to the console multiple times a second. As a result i can only get a frame every many s... | common-pile/stackexchange_filtered |
Git - folder not pushed to repo
I have been trying to push an entire folder to my repo on Bitbucket and I kept getting following when I view the source:
I also check the commit to find it empty, Nothing was pushed. The folder was initially named ChartNew.js as result of a clone, so I tried renaming it mutiple times bu... | common-pile/stackexchange_filtered |
Sequelize special query that involves "last inserted row id"
I have the following database structure (expressed in SQLite dialect):
CREATE TABLE `Clocks` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT, `time` DATETIME);
CREATE TABLE `Operations`
(
`_id` UUID NOT NULL PRIMARY KEY,
`finished` TINYINT(1) NOT NULL DEFAUL... | common-pile/stackexchange_filtered |
Windows phone 8 download then unzip to isolated storage
I'm writing a windows phone 8 application that have following functions
Download a zip file from the internet
Extract it to the isolated storage
I'm looking for a solution to deal with it but haven't found once. If you have any suggestion please help.
Thanks in ... | common-pile/stackexchange_filtered |
Multiple variable className in next js
How to apply multiple className in Next js, in which there are variable classsnames as well ?
I'm using component level css approach
Here's my code and what I want to do:
import styles from "./ColorGroup.module.css";
const colors = ["red", "sky", "yellow", "green", "golden"];
c... | common-pile/stackexchange_filtered |
Java JAX-RS CORS/Tomcat Conflict : javax.servlet.ServletException
I am currently running my own web-app and it usually does not give me any issues to set up my environment. However, this is a new machine set up with Tomcat 9.0 and JDK 8. Only difference between this one and others which work properly is the version of ... | common-pile/stackexchange_filtered |
Convert org.w3c.dom.Node into Document
I have a Node from one Document. I want to take that Node and turn it into the root node of a new Document.
Only way I can think of is the following:
Node node = someChildNodeFromDifferentDocument;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.set... | common-pile/stackexchange_filtered |
Add .js in Magento
I'm trying to add my own .js to a Magento project, but I can't do it...
I've followed the steps here, but I still can't do it.
I did the following:
Frontend: Opened page.xml and inside the block: block type="page/html_head" name="head" as="head", I included my .js file: lib/query.js.
Backend: I mod... | common-pile/stackexchange_filtered |
How do I write a non Velocity test that uses Mongo?
I got Velocity to work, and it's cool, but I wish I could run tests on the command line without starting up Meteor. Restarting is slow
I have managed to write simple unit tests that I can run with npm test, but they don't have access to any Meteor or package code, so ... | common-pile/stackexchange_filtered |
Chrome extension with content script on extension icon
I want to put something to work but I am totally confused about googles "isolated worlds". I searched a lot but I cannot find the answer to my needs.
Workflow: User clicks on extension icon -> a javascript will search on DOM tree for a div "xpto and get its content... | common-pile/stackexchange_filtered |
Data Source Explorer is missing in Eclipse Juno 4.2.2
I am using eclipse juno 4.2.2 version.
I am unable to open perspective for Data Source Explorer.
Is any software is missing in my eclipse. Can you please provide steps to install if it is missing.
Data source explorer is not available in (JUNO)Eclipse classic 4.2.... | common-pile/stackexchange_filtered |
Are inline virtual functions really a non-sense?
I got this question when I received a code review comment saying virtual functions need not be inline.
I thought inline virtual functions could come in handy in scenarios where functions are called on objects directly. But the counter-argument came to my mind is -- why ... | common-pile/stackexchange_filtered |
How to run T-SQL queries using LINQ to Entities?
I want to execute some T-SQL. I want to use existing L2E connection configurations, I don't want to add a new SqlClient provider connection configuration to my .config file. How do I do that? ObjectContext seems to have only methods that return results with classes from ... | common-pile/stackexchange_filtered |
Continuum limit for volume
Given the probability density
$$\rho = \frac{i\hbar}{2mc^2}(\psi^*\partial_t\psi - (\partial_t\psi^*)\psi) = |\mathcal{N}|^2|\Xi|^2$$
where $\mathcal{N}$ is a (real) normalization constant and $\Xi$ does not depend on $\vec{x}$.
If we want to normalize it such that we find one particle in a v... | common-pile/stackexchange_filtered |
I need to call ACTION METHOD in button click using MVC angular JS
The script file which im using. While Im running it on IE it shows javascript runtime error angular is undefined.
alert("hi");
var myapp = angular.module('myapp', []);
alert("xxxxx");
myapp.controller("myctrl",
function ($scope, $http, $location) {
aler... | common-pile/stackexchange_filtered |
Proving a sum of a polynomial is convergent
Let $p(x)$ be a nonzero polynomial. I want to prove that the series $\sum_{n=1}^{\infty}\frac{p(n)}{a^n}$ in convergent for every $a>1$. I thought it might be useful to prove that $lim_{n\to\infty}\sqrt[n]{p(n)}=1$.
Hint. The polynomial has just finitely many terms. Think ab... | common-pile/stackexchange_filtered |
"Where we headed?" or "Where we heading?"; which one is correct?
I had to pick one of my friends for a movie. She didn't know where we would go, so the moment she sat in the car, she asked "So, where we headed?" I told her the multiplex name. But I thought she should have asked, "where we heading (= going)"?
Why peopl... | common-pile/stackexchange_filtered |
IS there any way to load balance traffic on both links configured with OSPF
Branch network is connected with DC through two point -point leased lines of different bandwidth . I want both links to be in active -active mode. How can use both link in active -active mode we are using OSPF as routing protocol..
That is a... | common-pile/stackexchange_filtered |
Can we apply ANN to cryptography?
If a group of computers have identical ANN with exact same set of learning data and all have functionality of encryption and decryption, would there be any way for interceptors to interpret encrypted data?
+
Applying the fact that people with more background information obtaining more ... | common-pile/stackexchange_filtered |
Masking in footage something that comes into view and leaves
I have footage where the camera pans and e.g. a carpet rod comes into view and then leaves the view. I want to create a mask to later remove the rod with e.g. inpaint.
Objects which are there for all the time of the footage can be tracked, then (if necessary)... | common-pile/stackexchange_filtered |
COCOS2D Touch detection after application minimisation by gesture(iPad)
Currently I'm fixing an old Cocos2D game. There is a strange problem with it: when the application is being sent to background by the four-finger gesture(iPad) after returning it behaves like the touch began and didn't end, and there no way to end ... | common-pile/stackexchange_filtered |
Probability distribution of log(1+exp(X)) for Gaussian RV
I am interested in the theory of random variables $Y$ of the form $Y = \log(1+\exp(X))$ with Gaussian $X\sim\mathcal N(\mu, \sigma^2)$.
In particular, I'm interested in results on the cumulative distribution function, the moment generating function, and the cumu... | common-pile/stackexchange_filtered |
Call C Functions from Haskell at runtime
I'm building an interpreter for a dynamic programming language in Haskell. I'd like to add a simple mechanism to call C functions. In the past, I've used the Haskell FFI to call C functions that I had explicitly declared the name and type of; this approach won't work here becaus... | common-pile/stackexchange_filtered |
Nginx as a Load balance while login to application its saying invalid user id/password
I have configured nginx successfully. When I made a load balance with my two application servers (spring boot), when my application opens with the load balance IP, the application asks for a userid and a password. If I give the corr... | common-pile/stackexchange_filtered |
Excel: How to update multiple tables at the same time
I have these 2 tables in two different sheets in excel. They both have common tabs but the only one I am concerned about is the student ID. What I would like to do is make changes to the student ID in the first table and have it reflected in the second tables studen... | common-pile/stackexchange_filtered |
pagination link is not working for me
When I'm on the first page I click on pagination link(2),link(3), link(4) page pagination link not working.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Pagination extends CI_Controller
{
public function __construct() {
paren... | common-pile/stackexchange_filtered |
Multiple Column Dropdown in Details View control
I have created a dropdown list in a DetailsView control
I want to make that dropdown have multiple columns. Is that possible? If So how?
I've done a lot of searching and cant seem to find the solution.
Below is the code for my dropdown template:
<asp:TemplateField Heade... | common-pile/stackexchange_filtered |
If $f\in L^{\infty}(E)$,then $\|f\|_{ \infty}=\lim_{p\to \infty}\|f\|_{ p}$.
Let $E$ be a measurable set with $m(E)< \infty$.Then
$L^{\infty}\subset L^p(E)$ for each $p$ with $1\le p\lt
\infty$.Furthermore,if $f\in L^{\infty}$,then $$\|f\|_{
\infty}=\lim_{p\to \infty}\|f\|_{ p}$$
.
Proof:Let $f\in L^{\infty}(E)$ ... | common-pile/stackexchange_filtered |
How to set width of a inline element?
I want to design a tab header. The html code is,
<div class="tab-header">
<a href="" class="current">tab1-title</a>
<a href="">tab2-title</a>
</div>
Now I need to apply a background image to the current class, too make effect like this,
But the inline element a is not bi... | common-pile/stackexchange_filtered |
Can I use a map's iterator type as its mapped type?
I have a tree whose nodes are large strings. I don't really need to navigate the tree other than to follow the path from a node back to the root, so it suffices for each node to consist of the string and a pointer to its parent. I also need to be able to quickly fin... | common-pile/stackexchange_filtered |
Proper way to Mock repository objects for unit tests using Moq and Unity
At my job we are using Moq for mocking and Unity for an IOC container. I am fairly new to this and do not have many resources at work to help me out with determining the best practices I should use.
Right now, I have a group of repository interfac... | common-pile/stackexchange_filtered |
What's the correct way to bind this interface?
I'm having a hard time to come up with the correct way to translate the last part (<GPUImageInput>) into the binding. Any suggestions?
@interface GPUImageFilter : GPUImageOutput <GPUImageInput>
Start here : http://docs.xamarin.com/guides/ios/advanced_topics/binding_objec... | common-pile/stackexchange_filtered |
HOW to find last SUNDAY DATE through batch
How to find 'last SUNDAY DATE' through batch command?
what I was trying is
echo %date:~4,2%%date:~7,2%%date:~10,4%
this is good for current date
but for last Sunday date... can anyone suggest any logic through batch.
To get add/sub functionallity for dates try a look at Ho... | common-pile/stackexchange_filtered |
Using Kakutani's Theorem to prove that reflexivity is invariant under homeomorphism.
I was reviewing an exercise which is
Exercise: Let $E$ and $F$ be normed spaces and suppose that $T:E \to F$ is an homeomorphism. Show that if $E$ is reflexive, then $F$ is reflexive.
I already did the exercise using the definition of ... | common-pile/stackexchange_filtered |
php dechex with dark colors only
I am using php's dechex function to generate random colors as per requirements.Here is my working code.
dechex(rand(0x000000, 0xFFFFFF));
Howerver, I want to use dark colors only. I have found this code so far which generated only light colors thanks for this and this article.
However... | common-pile/stackexchange_filtered |
What is the status of Stack Overflow Cities?
There used to be a section in Stack Overflow Careers called "Cities." But it seems to have disappeared with the merge into the regular stackoverflow.com website. I enjoyed browsing it to discover other tech hubs (some of which I had no idea were tech hubs) and enjoyed the im... | common-pile/stackexchange_filtered |
Textarea on change with delay
I would like to scan QR-Codes with a scanner. I already have a scanner and when I put the focus in a hidden textarea he places the text in the textarea when I scan a QR-Code.
I would like to do something with the data outputted in the specific textarea. Now I have in my jQuery the followin... | common-pile/stackexchange_filtered |
System.Threading.Timer callback is never called
My System.Threading.Timer (which has a callback) never fires reliably. This is part of my programming assignment where I input the amount of time the timer is supposed to run from a textbox.
The timer is declared like this:
System.Threading.Timer timer = new System.Thread... | common-pile/stackexchange_filtered |
un-focus parent
When I am using focus parent ($mod+a) I find I am unable to return the focus to the child that had it before. Instead focus remains on the parent. To remove focus from the parent I have to manually click inside a child container or switch to another workspace and back again. What can I use instead?
In ... | common-pile/stackexchange_filtered |
ModuleNotFoundError: No module named 'mysql' even when mysql.connector installed
I am having problems getting a program to import the mysql.connector
Note: Running on a Windows 10 machine.
I have done the following
1) Installed anaconda (install properly)
I checked that the anaconda paths are in my pathname variab... | common-pile/stackexchange_filtered |
Is there any easier and shorter way to do this code? [PHP, Loops, Arrays]
I have a code to modify the data that comes up from external API. However, I didn't like my code. I believe that there is a shorter way to do.
let me explain the flow:
I request to an api endpoint to get currency short codes. I mean $results con... | common-pile/stackexchange_filtered |
Jasperreports Indent after the first line
I am producing reports with jasper 6.6.0 in PDF and docx.
The problem that I am facing is that I can not have a paragraph indention after the first line. The input text is a paragraph separated by new lines from a XML file:
<Literatur>Bjelland, EK; Wilkosz, P; Tanbo, TG; Eskild... | common-pile/stackexchange_filtered |
Selenium Headers in Python
how can I change my headers in Selenium like I do in requests
,I want to change my cookies and headers .
from myCookie import cookie
from selenium import webdriver
from selenium.webdriver.common.by import By
import time
headers = {
"Host": "mbasic.facebook.com",
"User-Agent": "Mozilla/5.0 (... | common-pile/stackexchange_filtered |
PermissionError: [Errno 13] Permission denied when saving HoloMap to GIF
I am trying to create an animated gig from a series of heat maps with HoloViews.
I need to do this in a Python script, i. e. specifically not in a Jupyter notebook.
When saving the image, Python throws an error because it cannot create a temporar... | common-pile/stackexchange_filtered |
Intercept display change on hover?
I have some elements that, upon hover, toggle the display (none/block) of a child ul. Unfortunately, I can't transition a fade via CSS with display. Using opacity won't work either since the hover area expands onto the opacity: 0 ul, and a combo of both (transition opacity, but still ... | common-pile/stackexchange_filtered |
search mysql database for value
I would like to search the database row by row for an IP address and for a poll number. They need to be on the same row (yes they are in their own columns).
If the IP address and poll are on the same page I would like to show some code. If not I would like to show a different set of code... | common-pile/stackexchange_filtered |
browserHistory undefined with React Router 2.00 release candidates
With React Router 2.0.0rc1-5 I have been getting browserHistory as undefined after import:
import { browserHistory } from 'react-router'
The package seems to be installed correctly, but regardless of the version and whether on server or client, I have g... | common-pile/stackexchange_filtered |
Get JScrollPane to move based on current item?
I currently have a JScrollpane which has a list of buttons that run off the bottom of the container and cause the vertical scroll bar to appear (which is intended). At pre-defined intervals on a timer these buttons will become "selected". If one of the buttons selected is ... | common-pile/stackexchange_filtered |
Bug? JsNumber toFixed returns different values in SuperDev and JS
I'm using GWT 2.8.2.
When I run the following code in SuperDev mode, it logs 123.456, which is what I expect.
double d = 123.456789;
JsNumber num = Js.cast(d);
console.log(num.toFixed(3));
When I compile to JavaScript and run, it logs 123 (i.e. it does ... | common-pile/stackexchange_filtered |
How can I solve burst damage problem when rolling group initiative?
Problem
The PHB states, at p. 189
The DM makes one roll for an entire group of identical creatures, so each member of the group acts at the same time.
Honestly, I usually ignored this one, except for really large groups of weak monsters. But in a 4 g... | common-pile/stackexchange_filtered |
How to detect a timeout when using asynchronous Socket.BeginReceive?
Writing an asynchronous Ping using Raw Sockets in F#, to enable parallel requests using as few threads as possible. Not using "System.Net.NetworkInformation.Ping", because it appears to allocate one thread per request. Am also interested in using F#... | common-pile/stackexchange_filtered |
onRestoreInstance() is not getting called
I am using onRestoreInstance() for retrieving the data saved in onSaveInstance, but in my application it is not being called when coming back to the activity again.
While my activity is running, I press Home key. Then if I am again starting the activity, onRestorInstance() is n... | common-pile/stackexchange_filtered |
How does heatmap3 go from value to colour?
I'm using the heatmap3 package for R to generate some gene expression data heatmaps.
My question is: how are the values for the gene expression being "mapped" to colours?
As an example of the same (reproducible) problem, lets use the example code in the vignette on the mtcars... | common-pile/stackexchange_filtered |
Jacobi vs tidal radius for star cluster
The tidal radius is defined in King (1962) as:
the value of r (the radius) at which f (the density profile) reaches zero...
This also referred by King as the "limiting radius" written as (Eq 3):
$$r_t=R_{GC}\left(\frac{M}{2M_g}\right)^{1/3}$$
where $R_{GC}$ is the galactocentri... | common-pile/stackexchange_filtered |
Finding a bijection from $\{1,2,...,nm\}$ to $X \times Y$
I'm trying to prove that for two finite sets $X,Y$, where $|X|=n$, $|Y|=m$, $|X||Y|=|X \times Y|$. I know that there exists bijections $f:\{1,2,...,n\} \rightarrow X$ and $g:\{1,2,...,m\} \rightarrow Y$ and I'm trying to find a bijection $h:\{1,2,...,nm\} \right... | common-pile/stackexchange_filtered |
Menu rollover images and text only working on one
I have a rollover menu that displays the days of the week. They originally sat happily side by side each other with an image that appeared when hovered over. Now I'm trying to get text and an image to appear when you hover over a day. The text works on the first day ("T... | common-pile/stackexchange_filtered |
MediaPlayer seekTo method is not accurate
I want to seek to a specified position on mp3 file, my proplem is the MediaPlayer seek to about 31 seconds ahead, for example I want to seek to 136540 mSeconds which means 2 Minutes and 16 Seconds, the MediaPlayer seek instead to 1 Minutes and 45 Seconds
here is my code
File[]... | common-pile/stackexchange_filtered |
Getting Dynamic UIColor from SwiftUI Color (light and dark mode)
It is possible through an easy initialiser to get the UIColor from a SwiftUI Color as follows:
let primary = UIColor(Color("primary"))
I added the Color with a light and dark mode in an Asset Catalogue.
If primaryis used in UIKit Code it unfortunately on... | common-pile/stackexchange_filtered |
Find IP address of local DHCP device other than through Powershell
I'm developing an application for my own use which, though I'm developing it on Windows is destined for a Raspberry PI, if it works. This needs to make a TCP connection to another device on my local network (a solar inverter) to collect data.
I hoped th... | common-pile/stackexchange_filtered |
How to know if a user is previously loged in in django but with firebase database
how do we know this in HTML and python both?
When we open the django website it should show different things for logged user.
please give some examples with a code with comments
but dont use django authtentcation system ..
| common-pile/stackexchange_filtered |
How can I detect Empty Content as input content in SwiftUI?
I have a CustomView which has a simple logic! If this CustomView get a non EmptyView should return an HStack, and If this CustomView get an EmptyView should return a Circle, how could I find out the right option depending on input content?
for example it shou... | common-pile/stackexchange_filtered |
My little,small program has problems (Ubuntu 14.04, Qt5, Code::Blocks)
Ok i am going to post a series of pictures i took, with some red annotations on them:
Picture 1 : My Main.cpp
Picture 2 : Qt5.3 Directory on Ubuntu
Picture 3 : Additional include directories on Code::Blocks
Picture 4 : Linker Directory i’ve inc... | common-pile/stackexchange_filtered |
jQuery resize function doesn't work on page load
How do I get this function to not only run on window resize but also on initial page load?
$(window).resize(function() {
...
});
This solution is now deprecated since jQuery 3.0: https://api.jquery.com/bind/#bind-eventType-eventData-handler
You'll want to use:
$(docu... | common-pile/stackexchange_filtered |
Deploying git repo to "production" server
I have a git repo where a group of developers and I are collaborating on project code. occasionally, we'd like to copy the git repo to a VPS (setup as Linux server) that has an external IP address (w.x.y.z).
I can go into an SFTP client and navigate up the folder hierarchy to t... | common-pile/stackexchange_filtered |
Sex: How much is too much?
Regardless of genre, at what point does sex stop becoming art and become the erotic blubbering of a perverse mind?
Ever since middleschool my writing has had a sensual twist, and it has become more detailed with age and ... experience. But now I am concerned that the story line might start to... | common-pile/stackexchange_filtered |
How to use asp.net sessions in javascript?
I have a form in Asp.Net with 3 pages by going with a next button to the next page.
What I've done so far in C# is I created sessions like this:
Session["FirstName"] = txtFirst.Text;
Session["LastName"] = txtLast.Text;
Than what I did is on that Next button I called a javasc... | common-pile/stackexchange_filtered |
Are there biblical passages supporting a "quasi-incarnation" attributed to the mystical union of the Holy Spirit and Mary?
The Logos or the Incarnate Word became flesh in what known to be "hypostatic union". Jesus Christ the Second Person of the Most Holy Trinity became flesh and dwelt among us having two nature both f... | common-pile/stackexchange_filtered |
What is WebViewTransport in Android?
What is exactly is WebViewTransport and what is it used for?
| common-pile/stackexchange_filtered |
Check for host protected area and device configuration overlay
I'd like to know whether any sectors on my solid state drive are inaccessible due to
the host protected area (HPA)
or the device configuration overlay (DCO)
Is there a file in /proc/ I can read or any tool I can use to find out about HPA and DCO?
I'm on A... | common-pile/stackexchange_filtered |
Symfony create new service as a new instance
I have a service defined with several dependency injections in the constructor. At some point I want to get the service as a new instance instead of the same instance already created. Note that normally I want the service to be shared, but on an edge case I want to create a ... | common-pile/stackexchange_filtered |
Can't use malloc twice in a function
I'm trying to write a simple HTTP server.
I wrote a simple function called 'handleConnection' to handle incoming connection.
I use two malloc functions. First one is to receive the GET header and second one is to extract the path from GET header and second one cause malloc(): corrup... | common-pile/stackexchange_filtered |
What is the most efficient way to manage multiple level relationships using WordPress Pods CMS
This is my first time using Pods in Wordpress, so forgive me if this is a bit of an easy question to answer. I've done a bit of searching for an answer to this problem, but haven't found anything that answers my question spe... | common-pile/stackexchange_filtered |
Choosing activation and loss functions in autoencoder
I am following this keras tutorial to create an autoencoder using the MNIST dataset. Here is the tutorial: https://blog.keras.io/building-autoencoders-in-keras.html.
However, I am confused with the choice of activation and loss for the simple one-layer autoencoder (... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.