text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
No 'Access-Control-Allow-Origin' header is present - Food2Fork API call with AJAX
My group and I are starting our first project, and ten minutes into API testing, I hit a wall and have been unable to create a successful access control header. Can anyone help me work through this error?
var userSearch = "chicken"
fun... | common-pile/stackexchange_filtered |
DialogFlow - Returning a long response from the webhook via paged results
I have a custom DialogFlow that on fulfilment, processes the user input and extracts a search keyword. DialogFlow then sends the search keyword to my Webhook.
My Webhook looks up the search keyword in a database that I have, and returns the resul... | common-pile/stackexchange_filtered |
Difference between two datetime with Excel formula
I have 4 columns : Date1, Time1, Date2, Time2.
My objective is to know the time difference between two datetime in format hh:mm:ss.
Some examples :
Date1 | Time1 | Date2 | Time2 | ExpectedResult
12/11/2019 | 12:00:00 | 16/11/2019 | 15:00:00 | 99:00:00... | common-pile/stackexchange_filtered |
Wildfly 10 Clustering does not work when a project's new release deployed with Infinispan Cache
I have a cluster environment on AWS with Wildfly 10. It consists of two nodes. When 2 exactly same war in two nodes, environment works perfect. But when some changes happens on a project I want to shutdown one of the nodes a... | common-pile/stackexchange_filtered |
Set hours in 00:00:00 in react-datepicker
How set from Thu Sep 24 2020 14:59:41 GMT+0300 (Eastern European Summer Time) on Thu Sep 24 2020 00:00:00 GMT+0300 (Eastern European Summer Time) ?
A date picker shouldn't generate a time component in the first place. Where did 14:59 come from?
For initial date i use new Date... | common-pile/stackexchange_filtered |
DateTime<Utc> compiles but not DateTime<Local> querying a table with a column defined as timestamp with time zone
I have a postgresql-table with a column defined as timestamp with time zone. The table is mapped to this struct:
#[derive(Serialize, Queryable)]
pub struct Location {
pub publication_time: DateTime<Utc>... | common-pile/stackexchange_filtered |
Search_tweets() (rtweet package) does not return all expected columns
I'm using the rtweet package and it's not returning the database with all columns with the search_tweets() function. The database has only 35 columns and no columns "screen_name" and "mentions_screen_name". Please how to get the rest of the columns? ... | common-pile/stackexchange_filtered |
jquery not serving partial correctly
This should be an easy question for anyone who has served a rails partial via jquery.
This line of code:
$('div#status-chg-form').html('<%= escape_javascript(render(:partial => statusform)) %>').dialog('open');
is part of a script to serve a partial in a modal dialog. When the dial... | common-pile/stackexchange_filtered |
How can I use extended bootstrap 5 colors on Angular?
I'm using Bootstrap 5 on an Angular 12 project (with scss), and I can't find a way to use the new extended bootstrap 5 color pallete (like indigo-300 or pink-200 etc.) I don't know if I need to import them somehow or how can I do that on Angular.
After asking and c... | common-pile/stackexchange_filtered |
How to make modal warning on blogger?
I want put modal on blogger when my website is open (on homepage), the warning I want is something similar like this.
You might need to use a javascript plugin like SweetAlert
| common-pile/stackexchange_filtered |
EventListener for a fresh app startup after being fully shut down
What are the Ti.App.addEventListener for when a app start up from being totally shut down(iPhone: Double click on home button and removed from apps running in background mode). I need a listener for this new/fresh start up of The app. ‘resume’ don’t work... | common-pile/stackexchange_filtered |
LOB Windows store App Quality and Crash Reports
I am working with LOB windows store app, which will not go to the store, it will be used by the company employees. My Question, Is there any way to report when the app crash? , something like the app dashboard when the app is published to the store.
Thanks for help.
You ... | common-pile/stackexchange_filtered |
How to change format of current paragraph without using Selection
I have the code below without using Selection.
Sub Format paragraph()
Dim wdDoc As Document
With wdDoc.Range.Find
.Font.Size = 12
.Text = "?"
.Execute
End With
End Sub
When the character with font size = 12 is found, h... | common-pile/stackexchange_filtered |
What is your first TDD test when building a robust file importer?
I've read a lot lately about TDD, but I've only seen small examples.
Now I have to start with a (not large, but more than just a single class) file importer which has to be robust, so it has to check whether the file is present (on the FTP server), if it... | common-pile/stackexchange_filtered |
Trouble installing Visual Studio 2013 Express for Windows (error with vcredist?)
update: the same issue is happening with the visual c++ redistributables
I'm having trouble installing Visual Studio 2013 for Windows (the version for developing apps). I'm trying to install this on the Surface Pro 2 256GB edition running ... | common-pile/stackexchange_filtered |
Nested Interval Theorem: Another part
Let [a1, b1] ⊇ [a2, b2] ⊇ · · · be a sequence of intervals. If lim(bi − ai) → 0, then ∩[an, bn] is a singleton set.
I have proved the first part which says that the infinite intersection of such subsets is not empty and is a closed interval. But how do I prove this part? I tried so... | common-pile/stackexchange_filtered |
Maven package error
I am working on a project which requires a geotools dependency. Before I was getting the following error:
Exception in thread "main" java.lang.IllegalStateException: cannot initilize transformation: Authority "EPSG" is unknown or doesn't match the supplied hints. Maybe it is defined in an unreachabl... | common-pile/stackexchange_filtered |
How do I calculate two text boxes and display the answer in another?
I am trying to add the two text boxes and show the result in a third, whenever I try to add the third box, it makes it invalid. Any suggestions?
Here is my code!
<br>
<br>
<p4>Calculate Two Fields</p4>
<p4 id="answer"></p4>
<br>
... | common-pile/stackexchange_filtered |
Why is Class not appearing in blue in Xcode?
I have a class called PlayingCard. I am trying to use it in a class called PlayingCardDeck.
I have imported PlayingCard.h in PlayingCardDeck.h
#import "PlayingCard.h"
@interface PlayingCardDeck : Deck
@end
When I try to call a class method in PlayingCardDeck.m it doesn't ... | common-pile/stackexchange_filtered |
Programmatically Labeling a Signal in Simulink
I'm attempting to write a script that generates a basic Simulink model and I'd like to know if there's a way to programmatically label a signal line. I've looked at the add_line function (which is what I'm using to add the lines), but I don't see an option for defining an... | common-pile/stackexchange_filtered |
Grp and Ab are not equivalent as categories
I am trying to understand an example leading to the notion of adjoint.
Let $\mathbf{Grp}$ and $\textbf{Ab}$ denote the category of groups and abelian groups, respectively. Further, suppose that $U: \textbf{Ab} \to \textbf{Grp}$ denotes the forgetful functor and $F: \textbf{Gr... | common-pile/stackexchange_filtered |
Opening a new form using windows form c++
I'm a new programmer trying to have a multiple form.
I tried to open a new form using a button:
{
//This will open the ordering widow
NewOrder^ order = gcnew NewOrder;
order->Show();
//This one is to hide the current form
this->Hide();
}
but it gives me an error message says ... | common-pile/stackexchange_filtered |
Drag behavior not working right?
I'm trying to find the problem with the drag behavior setup that I have in my program, because it seems like the drag won't even activate. I'm using http://jsfiddle.net/da37B/317/ as the reference code for my program.
Here's the relevant code:
vis.selectAll(".nodes")
.data(node... | common-pile/stackexchange_filtered |
Phantom unreadable drives, hd0 through hd4, are causing errors
In Grub, in addition to hd5, which is my actual drive, there are hd0 through hd4. Trying to ls them says they have an unknown filesystem. When grub loads, it prints several pages of
error: failure reading sector 0x80 on hd0
error: failure reading sector 0x... | common-pile/stackexchange_filtered |
Observability inequality for the 1D transport equation
Let $(a,b) \subset (0,1)$. Consider the following transport equation
$$z_t+z_x=0, \ (t,x)\in(0,T)\times(0,1), \\z(t,0)=0, \ z(0,x)=z_0(x).$$
It is clear that the solution to the above equation is given by $z(t,x)=z_0(x-t),\ \text{if} \ x-t\in (0,1)$ and $0$ otherwi... | common-pile/stackexchange_filtered |
Unable to Install Tensorflow , tensorflow-base-1.12 error
I am trying to conda install tensorflow in an environment which I created.
The downloading and extracting of packages starts but one particular package named 'tensorflow-base-1.12' only gets 76% downloaded and "FileNotFoundError(2, 'No such file or directory')" ... | common-pile/stackexchange_filtered |
Run-time Error 3075 in MS Access while appending email distribution to table via SQL
I have the following function defined in MS Access VBA:
Function SendToEMail(iTo As String, iFrom As String, icc As String, ibcc As String, iSubject As String, iBody As String, iSystem As String, iAttachments As String)
strSQL = "INSER... | common-pile/stackexchange_filtered |
Close gmail after sent an email
My App send email via intent and works very fine.
The problem is, after the first email, i can't send further email because gMail (in this case) although it seems to work perfectly, does not send anything, because, i think, it remain opened in background.
So, I have to close my app, kil... | common-pile/stackexchange_filtered |
Regenerate Windows default hostnames
I am looking for a way to re-generate the default hostname on Windows, or to know how it is been generated to set it as hostname when it has been changed already.
Those usually looks like DESKTOP-ABCDEFG where the 2nd part is like a serial number.
The last Name of a Windows Worksta... | common-pile/stackexchange_filtered |
getFragmentManager from ArrayAdapter
I have a listView fulled from my custom ArrayAdapter. In each view there is a button. I want to change the current fragment when the button is clicked. This is my code:
public class CheckInSArrayAdapter extends ArrayAdapter<JSONObject> {
@Override
public View getView(int p... | common-pile/stackexchange_filtered |
Load dynamic content from php on submitting a form
I have created a page "index.php" with a lot of divs and I need to refresh only one of the divs when the form is submitted.
This div loads the content from chat_window.php which is as follows:
<div id="chatbox">
<?php echo $res; ?>
</div>
<!-- Chat user input fo... | common-pile/stackexchange_filtered |
Ubuntu 19.04 lm-sensors functions only partially
After upgrading from Ubuntu 18.10 to Ubuntu 19.04 (Disco Dingo) the command /usr/bin/sensors -A no longer shows the fan information. Before upgrate I get this kind of information:
fan1: 334 RPM (min = 0 RPM)
fan2: 864 RPM ... | common-pile/stackexchange_filtered |
How can i send data from my forms to a summarypage in React?
I am currently learning react and I want to send data from user input in my forms. I want the data to be collected on a new page. I also want the total price for my getCartTotal component to been shown up at the same page.
Do you have any tips for me?
here i... | common-pile/stackexchange_filtered |
What replaces SecurityTokenCache in .NET 4.5
When WIF was separate, you could create SessionSecurityTokenHandler and specify a token cache for use in something like a web farm scenario. Now, SessionSecurityTokenHandler in .NET 4.5 doesn't have that constructor parameter. Is there something equivalent in .NET 4.5?
Foun... | common-pile/stackexchange_filtered |
What will be the sum of the numbers in the $100^{\text{th}}$ step?
So this question states that a triangle is found where in between every $2$ numbers, their sum will be found in the next step, an example can be found below for the first $3$ steps. The question asks what will be the sum of the numbers in the $100^{\tex... | common-pile/stackexchange_filtered |
Get and act on dynamically-added controls in WPF
I'm programatically adding a series of controls based on a dictionary describing the controls various settings. Here are two of the entries as an example (I truncated the rest to save space):
// Translation array from fix shortname to various data about them
... | common-pile/stackexchange_filtered |
Query takes very long time
I'm a newbie to POSTGIS and I wonder if someone could help me out.
I have loaded all postal codes with their geographical coordinates (geography) and created an index on this coordinate.
When I run the following query it works just fine (within a few millisecond over a few million instances)... | common-pile/stackexchange_filtered |
Spring security and Tomcat
I'm facing a problem while trying to add j_spring_security_check as an action in my login.jsp
' method="POST">
This is my form, but when I type my default acc/pw admin/admin, instead of getting redirected to the users page, I get the following error
type Status report
message /java-blog/%3Csp... | common-pile/stackexchange_filtered |
Copy temp file before it's deleted
I had an idea to write some useful code so that the recently downloaded temp files like installation files and other media files can be copied to somewhere safe location before it gets deleted.
string dir = "c:\\Users\\neal\\appdata\\Local\\Temp";
string newdir = "D:\\";
var directo... | common-pile/stackexchange_filtered |
Selenium is not calling the website
I'm trying selenium for the first time. My code is as follows:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.by import By
import selenium.webdriver.support.ui as ui... | common-pile/stackexchange_filtered |
Speed Up Visual Studio Publish Web Process
I am using Visual Studio 2012 Professional to deploy my ASP.Net MVC website.
The problem is that when I use the one click publish feature, my web application comes to a screeching halt and it takes about 5 minutes for the website to respond normally again.
What are some thing... | common-pile/stackexchange_filtered |
*Overwrit*labels
If you've ever tried adding labels to a really dense plot, then you'll realise that sometimes labels will overlap one another, making them hard to read. We're going to do something similar but in 1D.
Input will be a sequence of (label, x-coordinate) pairs, and output will be the result of drawing each ... | common-pile/stackexchange_filtered |
javafx 8 overlapping layers eventhandling
I have two layers in my program with different elements in each layer. The two layers are overlapping but the elements in the layers are not. I want to show a tooltip when the mouse hovers over a node in each layer but right now the top layer only gets the event.
Below is attac... | common-pile/stackexchange_filtered |
Not able to use setState() outside of scaffold in flutter
I have created one method outside the scaffold in the build method but not able to setState() from there.
I have written code like this :
@override
Widget build(BuildContext context) {
//Method that returns alert dialog
method(){
se... | common-pile/stackexchange_filtered |
How to add options to the menu item that is asosiated with your component.
I Have created a component in Joomla 2.5, I have succesfully installed it, and now I need to add some options that will be configured at the menu view. So when a user ads a new menu item to a menu and the menu type is my component, then he can a... | common-pile/stackexchange_filtered |
Web scraping (Graph Scraping) with BeautifulSoup
I want to scrape the below web page.
https://stadt-aachen.e2watch.de/details/objekt/175
I want to get the graph of the page for any specific date. I am not understanding which class should I write for the scraping.
I am using the below code but getting empty strings.
imp... | common-pile/stackexchange_filtered |
Restore Windows Server 2008 R2
Earlier today, I tried to restore my Windows Server 2008 R2 server from a Windows Server backup file. The process it followed (which I had used in the past on Server 2003) was
Do quick load of OS from CD
Restore backup from external drive.
When I went to restore, I didn't see an optio... | common-pile/stackexchange_filtered |
What is command to look list of redirect rules, iptables
im using command like this :
iptables -t nat -A PREROUTING -p tcp -d <IP_ADDRESS> --dport 4080 -j DNAT --to-destination <IP_ADDRESS>:4088
My question what is command to look all rules in the selected chain. I'm using iptables -L but it doesn't display anything. B... | common-pile/stackexchange_filtered |
pyalgotrade trouble with exit-order-event (onExitOk)
Struggelig a bit with my trading algo. It seems that the orders cant finish before the next onBars() is called, and the quantities become a mess. Im using the enterLongLimit() to enter a trade, which calls onEnterOk() when it finishes - but im using limitOrder to exi... | common-pile/stackexchange_filtered |
Sylow subgroups of quotient groups
Could somebody explain in detail the steps required to solve this problem?
Let $p$ be a prime dividing $o(G)$. Show that every Sylow $p$-subgroup of $G/K$ is of the form $PK/K$, where $P$ is a Sylow $p$-subgroup of $G$.
I'll sketch some steps for you:
(i) Suppose $|K| = p^a m$ and ... | common-pile/stackexchange_filtered |
Featured Questions
There is no section saying 'Featured Questions' in the 'Unanswered Questions Tab'.
How do I find those questions that have active bounties on them?
The "Featured" tab only appears if there are featured questions to show. Currently, I don't think we have any active bounties, which is why the tab isn'... | common-pile/stackexchange_filtered |
Changing screen in Skyrim?
So I started Skyrim and I noticed that the screen doesn't fully fit on my TV. I can't find an option to change this though. I have it on Xbox 360 and is there a way to make it fit the screen perfectly?
Go to Settings>System Settings>Display> and play with the setting to see if that works. Fo... | common-pile/stackexchange_filtered |
integrate $2\int _0^2\:r^2\sqrt{(1-(r-1)^2)} dr$
I have to solve the integral $\int _0^2\:\int _{-arccos\left(r-1\right)}^{arccos\left(r-1\right)}\: r(rcos(\theta)+rsin(\theta)) d\theta dr$. I have to do it in this order specifically, so I can't change it to $drd\theta$ .
I got to $2\int _0^2\:r^2\sqrt{(1-(r-1)^2)} dr... | common-pile/stackexchange_filtered |
How to Display Hidden Characters While Typing?
How can I configure vim to display hidden characters like tabs or spaces ONLY while those characters are typed? I do not want tabs and/or space replaced with special characters like ">" or "_" when the file is written.
You're quite welcome, dan0! Too bad you didn't stick ... | common-pile/stackexchange_filtered |
Globally asymptotic stable gradient system has unstable point
Given a gradient system
$$\frac{d\theta_1}{dt}=-\sin(\theta_1-\theta_2)$$
$$\frac{d\theta_2}{dt}=-\sin(\theta_2-\theta_1)$$
The system is a gradient system since
$$\frac{d\vec \theta}{dt}=-\nabla V(\vec\theta) = -\nabla(1-\cos(\theta_1-\theta_2))$$
Since the... | common-pile/stackexchange_filtered |
pandas dataframe loop through rows
I have a 6000*5 dataframe which is like:
0 1 2 3 4
0.001 0.020 0.502 0.773 0.332
0.021 0.120 0.202 0.113 0.000
0.001 0.420 0.432 0.003 0.123 ...
Now I want to loop through each of those 6000 rows and compare values in the same row to get the largest ele... | common-pile/stackexchange_filtered |
LWJGL - Text's color changes background's color
I have a serious problem with my LWJGL program.
If I set one of my text's colour, the background's color changes, too.
I think I know why, I just put all of the drawing things in an infinite loop, and maybe that's the reason.Can you help me with this? Am I correct with ... | common-pile/stackexchange_filtered |
"'toolchain' unexpected" in go.mod file
I just recently pulled changes in my project that included the toolchain directive. The issue is that GoLand does not recognize it as a valid directive. The image shows the output from the IDE as well as the red underlining with it; note that I am still able to run everything fi... | common-pile/stackexchange_filtered |
How can I reduce "follow me" ads in adsense for publishers?
On pages I publish, I have adsense display ads, which often seem to show "follow me" or "remarketing" ads (relevant to the user's recent searches) rather than contextual ads (those relevant to the page in question). My ad block in this case is 250x250.
How ca... | common-pile/stackexchange_filtered |
Jumping to a specific point/with a specific offset in assembler for a ARM7 processor
As an assignment for my class i have to implement a code in assembler allowing to jump a specific distance for our arm7 processor we are simulating. My question is, how do we specify the distance we want to jump in code?
I currently ha... | common-pile/stackexchange_filtered |
How to delete mail form sent folder after sending?
I am currently writing code using vbscript to automate sending of email.
How do I delete that very same email that I sent in the sent folder?
Below is my code:
Dim ToAddress
Dim FromAddress
Dim MessageSubject
Dim MyTime
Dim MessageBody
Dim MessageAttachment
Dim ol, ns,... | common-pile/stackexchange_filtered |
Azure SQL DB find all Tables in all Databases
Perhaps this is not even possible but I am interested in seeing all Tables across all my Azure SQL DB Databases.
I can use sys.databases to get a list of Databases and sys.tables to get a list of Tables but cannot seem to figure out the correct combination to return Tables ... | common-pile/stackexchange_filtered |
Extracting Related Date and Location from a sentence
I'm working with written text (paragraphs of articles and books) that includes both locations and dates. I want to extract from the texts pairs that contain locations and dates that are associated with one another. For example, given the following phrase:
The man lef... | common-pile/stackexchange_filtered |
How does electron-forge/publisher-github work?
I have my created my github token and set GITHUB_TOKEN value in my env, but I get to the "distributables" step which is strangely misspelled and then it dies. Its like its looking for a release version 1.0.2 which does not exist. I assume this publish action will create t... | common-pile/stackexchange_filtered |
How to open a VBScript file with a variable?
I'm starting a VBScript sometimes from a Windows batch file:
FOR /F %%i IN (list.txt) DO vbscript.vbs
and I want to receive the %%i variable in the VBScript.
Run the VBScript with %%i as its argument:
FOR /F %%i IN (list.txt) DO vbscript.vbs %%i
and assign the argument to... | common-pile/stackexchange_filtered |
Implement Angular Caching conditionally on requests
Implement Caching in Angular with interceptor only for a few requests & not every request conditionally through a boolean.
I have been checking for online solutions about caching only few requests and not all. Sadly there's not any apt solution for this purpose.
Hence... | common-pile/stackexchange_filtered |
Outlook password encoding for email services (IMAP, SMTP)
I’m trying to make sense of how different mail clients log onto IMAP and SMTP
services. There are the normal ones and then there is Outlook.
Outlook seems to unconditionally encode passwords as Latin-1; when I enter the
password tösttöst it logs onto the server ... | common-pile/stackexchange_filtered |
Searching google news articles Python
im currently thinking about writing about a script which is looking out for new articles from google news search.
So I want to download the first 10-20 articles and safe it into a folder.
Best would be only the main text not the whole html file.
So as an example:
Searchterm "FC Bar... | common-pile/stackexchange_filtered |
Ruby cronjob not working with RVM
According to the RVM docs
/home/vagrant/.rvm/wrappers/ruby-2.1.3@global/ruby /home/vagrant/workspace/crons/Test.rb
should work.
When I punch this line into my console it executes the script. However the crontab line
* * * * * /home/vagrant/.rvm/wrappers/ruby-2.1.3@global/ruby /home/va... | common-pile/stackexchange_filtered |
Can't read and write files fast enough for my script to recognize changes
Im writing a script that will eventually be able to tweet form a twitter account when my favourite YouTuber Casey Neistat uploads a new video. However, in order to do that, I wrote a program that (should) be able to compare a 'output.txt' file of... | common-pile/stackexchange_filtered |
unable to update wget version
I want to update my wget version to 1.22 which is currently 1.19 using the command :
curl -O https://ftp.gnu.org/gnu/wget/wget-1.21.tar.gz
but getting following error:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Up... | common-pile/stackexchange_filtered |
using a media query to only target tablet and dektop
I am trying to use the NOT operator in media queries
like this
.media{
@media screen and not (max-width: 600px){
display: flex;
flex-direction: row;
align-items: stretch;
}
}
but its not working, i am getting an error, any clue anyon... | common-pile/stackexchange_filtered |
changing value 0/nan to max distance (urg/hokuyo node)
Trying to map a quite big open space but some values returned from the node is 'nan' which i suspect are areas which has no obstacle or whatsoever at max distance. How can i turn this 'nan' into a defined value so gmapping can mark it as free space?
Originally po... | common-pile/stackexchange_filtered |
SQL Server : UPDATE, SET with apostrophe in data
The update statement below is throwing an error because of the ' within the ''
UPDATE Table
SET [Company Name] = 'O'Donald Media Inc'
WHERE [Company Name] = 'O'Donald Media Inc'
Does anyone have a way to handle this?
Thanks
When writing SQL by hand, use 'O''Donald ... | common-pile/stackexchange_filtered |
'API' object has no attribute 'search' using Tweepy
I am trying to scrape Twitter profiles for a project I am doing. I have the following code
from tweepy import OAuthHandler
import pandas as pd
"""I like to have my python script print a message at the beginning. This helps me confirm whether everything is set up corr... | common-pile/stackexchange_filtered |
SetWindowsHookEx is injecting 32-bit DLL into 64-bit process and vice versa
I've been working on an application that requires monitoring thread specific mouse activity (WH_MOUSE) on another process and encountered something very curious.
After finding out that this is not possible via exclusively managed code if I don'... | common-pile/stackexchange_filtered |
Get value for each day in month
I have a table :
+--------------+
| stat |
+--------------+
| date |
| onlineUsers |
| messagesSent |
+--------------+
I gather statistics every 10 minutes and save them to db. How can I get date, max(OnlineUsers), sum(messagesSent) for each day in period of time with s... | common-pile/stackexchange_filtered |
Monomorphisms in $\mathcal{C}\!at_\infty$
I'm trying to work through what the $(-1)$-truncated morphisms are in $\def\Catinf{\mathcal{C}\!at_\infty} \Catinf$.
BLUF: The correct characterization is that $F : C \to D$ is a (-1)-truncated map of $\infty$-categories iff, on hom spaces, $C(X,Y) \to D(FX, FY)$ is a (-1)-tru... | common-pile/stackexchange_filtered |
explain the command `printf -- "#!${opt_E}"`
I am not able to understand this command and getting confused :
here are things i executed on linux trying to undertand its working
[root@testgfs2 final_scripts]# printf -- "#!${opt_E}"
printf -- "#reset{opt_E}"
#reset{opt_E}[root@testgfs2 final_scripts]# printf -- "#!${opt... | common-pile/stackexchange_filtered |
How to create tabs with linebreaks?
I want to create tabs with jQuery and CSS that are capable to contain text with linebreaks.
I tried several jQuery tab plugins including jQuery Ui's tabs, but all of them are messing around the layout, when you insert a line break (e.g. with "br"-tag) into the tab heading.
Now I use ... | common-pile/stackexchange_filtered |
R - Perform Function on Matrix Values using Value Location
I'm building a software that takes advantage of R's matrix calculations to build a heat map. Assuming I've got the following as my starting matrix:
-1.8784 -1.8783 -1.8782
53.5919 0 0 0
53.592 0 50 0
53.5921 0 ... | common-pile/stackexchange_filtered |
Two colors ordered heatmap
In this example
R heatmap ggplot2 ordered as data file
I've changed data input to this one where for the second column every value is 0 so it should we filled in white
people,1,2,3
Ej1,1,0,0
Ej2,0,0,1
Ej3,0,0,1
Ej4,1,0,0
Using the same code as in the post
library(reshape2)
library(ggplot2)
... | common-pile/stackexchange_filtered |
Linux; How do I find logs if a program I'm running uses certain ports?
I am running CentOS 5 with csf firewall. I'm running a program that can't connect to another server (using some port that is blocked by csf I presume). Where is the log file for 'ports'?
You may have better luck on http://serverfault.com/
Hi:Thi... | common-pile/stackexchange_filtered |
For Here or over "there?" - ex deo nascimur in christo morimur per spiritum sanctum reviviscimus?
I am uncertain about this ... so I'm asking on meta first. Over on Christianity.SE, I posted this question:
ex deo nascimur in christo morimur per spiritum sanctum reviviscimus?
Which for ease of access, I'll just repost ... | common-pile/stackexchange_filtered |
Dependency Injection and code maintainability
I am working on a (vb.net/asp.net) project that is using interfaces to provide dependency injection. But to me, it feels like the maintainability of the code has been killed. When I want to read through the code, I can't simply jump to the code of a related class that is us... | common-pile/stackexchange_filtered |
Update content of popup on a polygon click event in Leaflet?
I work with Leaflet.js v 1.7.1 and have stuck with a problem of updating popup content data of data The data set is on a local disk Currently I have a local set of data:
var data =[
{
type: "Feature",
properties: {
id: "1",
type: "type1",... | common-pile/stackexchange_filtered |
Why to take the absolute value of the wave function before squaring it?
For obtaining the probability distribution we should take the absolute value of the Schrodingër Wave Function 'Ψ'and then square it. But why to take first the absolute value if the square is going to give us a positive number anyways?
see for det... | common-pile/stackexchange_filtered |
Conditional serving of web pages based on "Accept" header with express?
I understand that you can serve static content over express with:
app.use(express.static(__dirname + "../../../public_html"));
However, I'm trying to have express change the presentation of the content it delivers based upon the "Accept" header t... | common-pile/stackexchange_filtered |
What is the functionality of .dart_tool folder in a Flutter application?
I am new to flutter and I encountered this folder .dart_tool. I am able to find the uses of each folder and files, except this one. I want to know what purpose does this folder serves.
As @Shri noted in his answer, the Flutter documentation says... | common-pile/stackexchange_filtered |
R count variable in Vector by split/Group?
I have the following Dataset (not the real Dataset)
The Dataframe has lots of players (player2, player3 etc) and Dates and reported status. I am trying to summarize the Number of Fails in each date for each player.
Players <- rep("player1", 24)
Date <- c(rep("2020-10-22", 6),... | common-pile/stackexchange_filtered |
Creating bean using annotation on-demand
I have a service that can have multiple jobs running simultaneously, all these are long running jobs, thus i have a requirement of statistics showing how these jobs are working, i am using MXbeans for this. As of now i have single bean that encapsulates the stats for all the run... | common-pile/stackexchange_filtered |
Django: How to dynamically set view cache timeout value?
Within the view itself, I want to be able to set the cache timeout value upon returning a result. The reason for this is if the view returned an error, I want the timeout to be shorter.
Right now, I have the timeout set as static:
url(r'^view/(.+)/', cache_page(2... | common-pile/stackexchange_filtered |
WPF: Datagrid is updating header after adding or removing item at binding collection
I have binded a ObservableCollection (loaded from an ORM) to a WPF-DataGrid and on programm start I'm changing the header titles, adding self-developed AutoFilters to the column headers and setting some columns to visibility collapsed.... | common-pile/stackexchange_filtered |
Unexpected gaps in IDENTITY column
I'm trying to generate unique purchase order numbers that start at 1 and increment by 1. I have a PONumber table created using this script:
CREATE TABLE [dbo].[PONumbers]
(
[PONumberPK] [int] IDENTITY(1,1) NOT NULL,
[NewPONo] [bit] NOT NULL,
[DateInserted] [datetime] NOT NULL DE... | common-pile/stackexchange_filtered |
Python FastCGI under IIS - stdout writing problems
I'm having a very peculiar problem in my Python FastCGI code - sys.stdout has a file descriptor of '-1', so I can't write to it.
I'm checking this at the first line of my program, so I know it's not any of my code changing it.
I've tried sys.stdout = os.fdopen(1, 'w'),... | common-pile/stackexchange_filtered |
Continuity of Fourier series with decay condition on coefficients
Let $\theta \in \ell^2(\mathbb{N})$ satisfy
$$
\sum_{j=1}^n \theta_j^2 a_j^2 \leq Q
$$
for some $Q > 0$ where
$$
a_j = \begin{cases}
j^\beta & \text{$j$ even}\\
(j-1)^\beta & \text{$j$ odd}
\end{cases}
$$
for some $\beta > 1/2$. Let $\{\varphi_j\}_{j=1}^... | common-pile/stackexchange_filtered |
Trying not to repeat myself with Rails data manipulation
I'm fairly new to rails, an an intermediate programmer in general, but I'll try to be as clear as I can.
I have a database table for Products, which owns a field called category. Category has two possible values, call them Category1 and Category 2. The goal is to... | common-pile/stackexchange_filtered |
Change image display from base64 to src according to the email client
I want to view the images inside the email signature on all email clients.
Initially I created my signature using the classic:
<img src="https://drive.google.com/uc?export=view&id=1e0siJmU...">
This worked great for gmail and apple mail but outlook ... | common-pile/stackexchange_filtered |
Accessing shared SqlContext in spark 2.1
I am creating sqlContext at one time and just accessing it every other time.
I have created sqlcontext using this syntax :
class A {
static SparkConf conf = new SparkConf().setMaster("local").setAppName("SparkApp");
static JavaSparkContext sc = new JavaSparkContext(conf)... | common-pile/stackexchange_filtered |
Add multiple arrays in Python
What I have created so far
I have created an 18x18 square matrix of zeros called ‘master_matrix’.
I have created an array called ingreso_datos, whose column 0 [col 0] indicates the data label.
I have created a for loop where:
For each data label I will have a little_matrix whose values wil... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.