text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Please suggest the correct xpath for the below HTML
<div class="alert ui-pnotify-container alert-warning ui-pnotify-shadow" style="min-height: 16px;"><div class="ui-pnotify-closer" style="cursor: pointer; visibility: hidden; display: none;"><span class="glyphicon glyphicon-remove" title="Close"></span></div><div class=... | common-pile/stackexchange_filtered |
How to modify the default permissions for files saved by DolphinDB "saveText"?
For the files saved by saveText, only the specific user has the write access, other members of the group are not allowed to write to the file. How to modify the configuration to give the write permissions to the group?
By default, the write... | common-pile/stackexchange_filtered |
attribute that will wrap all methods in class with try { } catch
I would like to create an attribute HandleError that I would put on a class like this:
[HandleError]
public class Foo
{
public void Do(){}
...
public void Don(){}
}
and it will wrap all the methods in try catch, so I believe it should be something ... | common-pile/stackexchange_filtered |
Why would a bacterial population show initial growth when it is in unfavorable growth conditions?
This figure shows the anaerobe E. faecalis grown in aerobic conditions, E. coli grown in restricted conditions that are not specified. Why do they show an increase in abundance initially? The black line is growth rate and... | common-pile/stackexchange_filtered |
Can an interface have a templated method name?
I know the answer is probably no, but would still like to confirm.
Can an interface have variable method name? something like
Interface IVariableMethodName //something similar to <T>
{
void T(int param);
void T(string param);
}
I have some classes which would requi... | common-pile/stackexchange_filtered |
How to push all the nodes of Binary Tree into a stack and then print stack content?
This is my attempt to do the same, but I'm getting a "bad_alloc" error.
stack<int>st;
void func(Node * root){
if(root==NULL){
return;
}
while(root!=NULL)
{
func(root->left);
st.push(root... | common-pile/stackexchange_filtered |
How can we receive a global ipv6 subnet?
is it possible to obtain a routed IPv6 subnet? We do not have any nearby IPv6 brokers, nor do our local ISPs support it, but we'd like to build an IPv6 network anyways.
Perhaps there's a way to become an IPv6 broker or to register as an ISP?
You can either register as a LIR (IS... | common-pile/stackexchange_filtered |
How to update a referenced object with PATCH request in spring data-rest
I have 2 connected entities: Project and System. The mapping looks like that in Project class:
@ManyToOne
@JoinColumn(name = "system_id")
@NotNull
private System system;
I'm trying to use spring data-rest to implement the basic rest API for proje... | common-pile/stackexchange_filtered |
Showing values in commas on JTable
I have added a JTable on the panel in Netbeans.
I have some text fields on the panel too, now I am trying to get all the data from text fields and put it on JTable. I have written the code and the data is showing, but it is not in the format of table: it is something like commas etc..... | common-pile/stackexchange_filtered |
Flutter Row with two container with centered image and text above it. Like in image attached
How to create Row with two containers with centered image and text above image also centered.
Like in image attached.
enter image description here
Is this what you are trying to do:
class ExampleDesign extends StatelessWidget ... | common-pile/stackexchange_filtered |
Python read in string from file and split it into values
I have a file in the format below:
995957,16833579
995959,16777241
995960,16829368
995961,50431654
I want to read in each line but split the values into the appropriate values. For example the first line would be split into:
x = 995957
y = 16833579
Since its a ... | common-pile/stackexchange_filtered |
if (a) {b();c();d();} else {c();} - prevent duplicate code c();
I've got the following scenario:
bool bWantToWait = getRandomBool();
if (bWantToWait){
std::future<bool> bSuccesfullWait = this->doStartWait();
}
//lots of lines of code
//even more lines of code
//doExecuteSomethingWithAsyncCallback
if (bWantToWait... | common-pile/stackexchange_filtered |
using a checkbox with php and mysql
I am trying to get a simple true false checkbox working and I am having some trouble.
First off it is using the custom class tep_draw_checkbox_field which is defined as follows:
function tep_draw_checkbox_field($name, $value = '', $checked = false, $compare = '') {
return tep_d... | common-pile/stackexchange_filtered |
Can you make Dojo's query return single node if given #id?
Short question.
Dojo's query module always returns an array of nodes. Is there any way I can config/modify it so that
var contentNode = query('#content')[0];
can be written
var contentNode = query('#content');
instead?
That extra [0] annoys me, especially w... | common-pile/stackexchange_filtered |
Merging feature classes in memory gives ERROR 001156?
arcpy.AddField_management("in_memory/originalfc","ALPHABET","TEXT",1)
arcpy.Select_analysis("in_memory/originalfc","in_memory/A","attr<=0")
arcpy.CalculateField_management("in_memory/A","ALPHABET",'"A"',"PYTHON")
arcpy.Select_analysis("in_memory/originalfc","in_memo... | common-pile/stackexchange_filtered |
PHP upload resulting in blurry image
I'm using the a crop tool that can be found here: https://github.com/sconsult/croppic
I've modified it to suit my needs - apologies for the quantity of code, but I don't know which part of it might be causing an issue.
I first implemented this code around 5 - 6 months ago and it wor... | common-pile/stackexchange_filtered |
A running gene crossover function for a Genetic Algorithm
I'm writing a Genetic Algorithm, and need to write a function that crosses two gene sequences. Basically, I want it to work like this:
(running-cross [1 2 3 4 5 6 7 8 9] ; Gene sequence 1
[11 22 33 44 55 66 77 88 99] ; Gene sequence 2
... | common-pile/stackexchange_filtered |
QSortFilterProxyModel doesn't dynamically update filter?
I have a custom subclass of QSortFilterProxyModel. I overrode filterAcceptsRow with the custom filter I wanted. Then I used it as such:
proxy = new MyFilterModel();
proxy->setSourceModel(...);
proxy->setDynamicSortFilter(true);
proxy->setFilterParams(...); // my ... | common-pile/stackexchange_filtered |
Collecting of count and stored data from api to list in flutter?
I have a json list from api and need to collect count of status in list and stored in a new list.
Json List from api like :
"data": [
{
"_id": "1",
"status": [
{
"status": "A",
... | common-pile/stackexchange_filtered |
Contour integration of: $\int_C \frac{2}{z^2-1}\,dz$
I want to calculate this (for a homework problem, so understanding is the goal)
$$\int_C \frac{2}{z^2-1}\,dz$$ where $C$ is the circle of radius $\frac12$ centre $1$, positively oriented.
My thoughts:
$$z=-1+\frac12e^{i\theta},\,0\leq\theta\leq2\pi$$
$$z'=\frac{i}{2... | common-pile/stackexchange_filtered |
Best way to append data and resubmit a GET request
I have a search results page that comes out as a result of a GET request. I want to append some more GET data and reload the page with that information. What is the best method to do so?
Right now i have these two ideas,
Keep the previous form data in hidden inputs a... | common-pile/stackexchange_filtered |
‘mutex’ in namespace ‘boost’ does not name a type
I get this error when I try to compile the following code:
#include <boost/signals2/mutex.hpp>
class Log
{
private:
boost::mutex m_log;
...
}
The error I get when I try to compile is:
error: ‘mutex’ in namespace ‘boost’ does not name a type
| common-pile/stackexchange_filtered |
How to make Ubuntu kill the problematic process when it goes out of RAM?
So, like most other people, I used to have swap enabled. I'll first describe what was happening when I did.
I'm developing an app that sometimes eats all my RAM. Then what happens is that the system freezes almost completely, which I attribute to ... | common-pile/stackexchange_filtered |
Code in Program.cs after Run() not reached
In MVC Core 2.0 it is recommended (asp-net-core-2-seed-database) that db seeding and other initialization, which is not supposed to run when starting from EF tooling, is placed in Program.cs Main method between call to BuildWebHost and Run.
In order to start up a queue process... | common-pile/stackexchange_filtered |
Nonlinear systems near equilibria
I am trying to understand a method that is used to show well-posedness of nonlinear systems near equilibria.
What I often see is that a system of nonlinear PDEs (usually from physics) is first nondimensionalized, then written as a operator equation. For example , let
$$
F(f_1(t,x),\ldo... | common-pile/stackexchange_filtered |
flash player installed but not working in firefox fedora21 x86_64
I am using fedora 21 x86_64 workstation, Firefox and flash player are updated but in sometime not working.
For example, the game Pet Rescue Saga working fine but Papa Pear Saga not working, it tells me "No Flash Player found", as I know in Ubuntu, there ... | common-pile/stackexchange_filtered |
What was the first anime to have a "please notice me senpai" moment?
This meme has been prevalent in English-speaking part of the internet, but so far no one really knows its true origins. I've searched for something similar in the Japanese sphere of the internet and I haven't really found anything either. So far as I ... | common-pile/stackexchange_filtered |
increasing the performance of OS windows C++ portscanner
I wrote a port scanner in C++ that will work in windows using winsock, everything works the way i wanted it to its just that its very very slow it takes like 10 mins to scan three ports i was just wondering if there was a way to increase its performance!
#define ... | common-pile/stackexchange_filtered |
OAuthv2 authorization grants
I just read this excellent tutorial on OAuthv2 but am still missing some important concepts regarding authorization grants.
I'm fundamentally not understanding the necessity for the two request/response cycles between client app and authorization server, where:
First the user is redirected... | common-pile/stackexchange_filtered |
With deprecation of the `SecurityContextRepository.loadContext(HttpRequestResponseHolder)` method, how do we add `Set-Cookie` to the response?
Context
We have for some time been using Spring-Security to protect our edge Spring-Boot Java applications.
Our system-wide authentication architecture (which is used by Spring-... | common-pile/stackexchange_filtered |
Wicked_PDF templates is missing
I installed wicked PDF and modified my controller :
def show
respond_to do |format|
format.pdf do
render :pdf => "file_name"
end
format.html
end
end
Here is how i link to the pdf : compte_contrat_path(c,:format=>'pdf')
It works for html (without the format) but fai... | common-pile/stackexchange_filtered |
Fetching only user's activity in a specific group
Is it possible to retrieve only user's activity in a specified group using Yammer REST API?
For example I can retrieve user's activity in a specific network using following query:
https://www.yammer.com/{network-name}/api/v1/messages/sent.json
It would be great if some... | common-pile/stackexchange_filtered |
Choose derived class at runtime and run unique class method
Is it possible to choose a derived class at runtime and then execute a method which has different argument number/types? Example, we have base class Fruit
class Fruit{
public:
int weight;
Fruit(int);
};
Fruit::Fruit(int w) : weight(w){};
... | common-pile/stackexchange_filtered |
How do I catch SIGSEGV with sigaction() when using JNI?
I've found a bug, but I'm not sure whether to blame the JVM, JNI, NASM, GCC, or ld.
After several days of carefully shaving my original program down, I've finally got a minimal reproducible example which shows that errors like FATAL ERROR in native method: Static ... | common-pile/stackexchange_filtered |
SwiftUI and Firestore - logic for reading multiple documents from different collections at startup
I'm using Firebase Firestore in my SwiftUI app project. At the start of the app, I want to read multiple documents from various collections.
Let's say I have collection A (1 document), B (2 documents) and C (4 documents).... | common-pile/stackexchange_filtered |
AngularJS: toArray orderBy not working with ng-repeat on key, value pair
The divs are being repeated properly with no errors but they are not in order based on value. I would eventually like to have functionality for the divs to be ordered by max and minimum value via buttons or a checkbox but I am stuck here. Any help... | common-pile/stackexchange_filtered |
kapt2 and butterknife produce lint error: Expected resource of type id
When updating to kotlin 1.0.4 and kapt2 I am getting the following lint-errors:
../generated/source/kapt2/withMapsWithAnalyticsForPlayRelease/org/ligi/passandroid/ui/pass_view_holder/EditViewHolder_ViewBinding.java:20: Expected resource of type id
... | common-pile/stackexchange_filtered |
MySQL server has gone away XAMPP
I'm trying to insert some date from an CSV file from my computer.
I'm using phpmyadmin, mysql, xamp
I inserted this csv without an script. Only like this IMPORT > CHOOSE FILE > I CHOOSE THE FORMAT TO CSV > GO . I don't change the specific format options.
I executed this operation and ... | common-pile/stackexchange_filtered |
How to replace current Ubuntu with an older version without harming the Windows partition?
I have currently Ubuntu 15.10 installed on my system in dual-boot mode alongside Windows 10. As I need to run an older version of OpenFOAM software on my machine, I need to replace the 15.10 with 13.04 version as that(and 12.04, ... | common-pile/stackexchange_filtered |
Change the IP Address on iPhone by using code
My app has to connect to a server which can redistribute a new IP Address for the iOS client device.
How to change the IP Address on iPhone by using code in my app?
The app will not be published on the app store and the iOS devices may be jailbroken if necessary.
Anyone ca... | common-pile/stackexchange_filtered |
how can i slove "Your requirements could not be resolved to an installable set of packages." in laravel8
I use Laravel recently and when i run composer create-project
I'using ubuntu
This is what happens
screen of error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpunit... | common-pile/stackexchange_filtered |
Still Questions on integer promotion, conversions in C
This topic has been heavily discussed in many context. When I search and read some of posts. I was confused by following post.
Signed to unsigned conversion in C - is it always safe?
The following is the original question.
unsigned int u = 1234;
int i = -5678;
unsi... | common-pile/stackexchange_filtered |
How can knitr keep warning messages inside the box?
I'm writing a tutorial using knitr and I want to show some of the warnings and errors that students might encounter. While I'm capable of nicely displaying the code chunks within the box using the tidy=TRUE option, I don't understand how to handle the display of warni... | common-pile/stackexchange_filtered |
Vue.js this.$el.getContext('2d') is not a function
I'm fooling around with Vue.js Version 2 and Charts.js to create a component that I can pass data to and it will display those in a nice way. This is my Code:
<template>
<div class="container">
<canvas width="900" height="400"></canvas>
</div>
</template>
<scr... | common-pile/stackexchange_filtered |
Android ToolBar showAsAction="withText", how to swap icon/text?
Thanks for any help you can give me, I have tried searching this issue but it seems no one else has the issue I have.
My issue currently is while this code works, and puts a checkbox icon with the words "Select/Deselect All" next to it like I want it, it p... | common-pile/stackexchange_filtered |
instagram API: 400 error (APIError)
I tried do request from instagram API console (http://instagram.com/developer/api-console/). I use location search method, but I get API error in last 48 hours.
{
"meta": {
"error_type": "APIError",
"code": 400,
"error_message": "Endpoint temporarily unavailable; plea... | common-pile/stackexchange_filtered |
subtract list first element with second one
Consider that i have list dtArray1 that consist of DateTime items I mean 10.10.2010, 10.10.2015 and so on.
Could u say me how find subract of this element ?
How i can get diffeerence between 2 years?
for (Int32 index = 1; index < dtArray1.Count;index++)
{
if (dtArray1[i... | common-pile/stackexchange_filtered |
MFC CListCtrl displaying a textbox over a cell for user edit
I have a CListCtrl where I display a textbox over a cell to allow the user to edit the cell's text.
This works, but I don't think the textbox will stay at the right location for different UI styles, based on user windows settings.
Does anyone know of a reliab... | common-pile/stackexchange_filtered |
Webpack loading CSS into individual <style> tags
I'm currently using the below Webpack config to import and parse the SCSS imports I make in my React components.
The crux of my issue is with the CSS part of the config. Currently, I'm importing SCSS files using their absolute file paths in their relevant React component... | common-pile/stackexchange_filtered |
Regression - Model looks good overall but R2 unexpectedly negatively high
I have been building a linear regression model with around 150 rows of data. I checked the correlation of the parameters with the target variable and tried to keep only them as I have less data and wanted to have a simple linear model.
The MAE an... | common-pile/stackexchange_filtered |
How to use php select mysql field type of `blob`
I want to use php to connect mysql and select field type of blob , but print result like '羂Z娛爌@c?驀'
What should I do
see picture
Going by the column name, it's encrypted data hence the output you're getting.
Here is the similar question with answers -
http://stacko... | common-pile/stackexchange_filtered |
A question about convergence interval of power series
Could you give me some hint how to solve this problem:
Suppose $a_n$ is sequence defined as $a_1=\frac12,a_{n+1}=\frac12\left({a_n}^2+a_n\right)$.
I managed to prove that $a_n$ is decreasing sequence, $a_n\to0$ and radius of convergence of power series $\sum_{n\ge1}... | common-pile/stackexchange_filtered |
Kivy asyncio and open_settings()
I am trying to work out how to do an open_settings() from a Kivy App that has been created using asyncio.
As expected, this doesn't work:
Button:
text:"Open Settings"
on_release: app.open_settings()
I get the error:
Exception:
'NoneType' object has no attribute ... | common-pile/stackexchange_filtered |
ASP MVC4 / Relation between classes on creation
Hello everybody and thanks for reading and tryin to help.
I'm a beginner in asp.
I Have two classes :
public class Organisation
{
public int OrganisationId { get; set; }
public string Nom_Organisation { get; set; }
public string Adresse_Organisation { get; s... | common-pile/stackexchange_filtered |
About the use of "pretty"
Can I use "pretty" as a degree adverb to describe an adjective that has a negative meaning?
Yes, you can. That's perfectly acceptable. "Pretty ugly" is quite a common phrase, and there's a punk rock song, "We're ... pretty vacant".
This would be a better question if you gave an example.
Yes... | common-pile/stackexchange_filtered |
Rxjs Subject.asObservable() not working but BehaviorSubject works...why?
I have checked out this https://github.com/angular/angular/issues/12129
but I don't see any solution...
Angular 2.0.1 AsyncPipe doesn't work with Rx Subject .
The solution here is to create an observable variable in the component
Which I have b... | common-pile/stackexchange_filtered |
Artin Chapter 2, exercise 2.2: avoiding circularity
I'm worried that my answer to this exercise from Artin's book is trying too hard to balance avoiding verbosity with avoiding circularity. The exercise is:
Let $S$ be a set with an associative law of composition and with an identity element. Prove that the subset cons... | common-pile/stackexchange_filtered |
Using JTextField makes everything else dissappear
I tried to put a text field and a button and label using Swing in Java.I successfully added the label and the button but if I try to add the text field, the hole frame is blank, so nothing shows up, not even the button or the label.
What I am doing wrong?
import java.aw... | common-pile/stackexchange_filtered |
How to nevigate from child tag to parent tag to get the xpath in android mobile automation using web driver
We have requirement to construct the Xpath in android mobile automation using selenium web driver.
Yes, we have resources-id, text to identify the element but, specifically we are looking for constructing the xp... | common-pile/stackexchange_filtered |
is it correct to say "today is rainy" or it is "today, it's rainy"?
I was looking for an answer to another question and I've found an answer on the italki website, which makes unclear about which is the right usage.
Is it syntactically correct to say "today is rainy" or the right phrase is "today, it's rainy" ?
Eithe... | common-pile/stackexchange_filtered |
How to get empty and not empty collections at the same time in Hibernate?
I study Hibernate and have confronted with such problem:
I have two entities
Person class:
@Entity
public class Person {
...
@OneToMany(...)
@Where(clause = "is_completed = false")
private List<Task> tasks;
...
}
Task class:
@Entit... | common-pile/stackexchange_filtered |
Android MediaPlayer Error (100,0)
i have the next problem:
I need to play a sound 6 times in 6 seconds, if i touch a button it will reproduce it again. My app was working well until I test it in a Nexus 5.
After some repetitions appears in the LogCat:
MediaPlayer error(100,0)
MediaPlayer Error(100,0)
and crashes.
I ... | common-pile/stackexchange_filtered |
Problems with displaying list items inline
I have been trying to get the links on this webpage to be displayed inline using:
<style type="text/css">
ul#nav li.top {
display:inline;
}
</style>
However, it only seems to work for some of the links even though they are all li elements with the .top class. If anybody coul... | common-pile/stackexchange_filtered |
How to upload an HTML file to DevOps work item using bearer token in Python?
I’m trying to upload an HTML file as an attachment to a work item in Azure DevOps using Azure DevOps REST API. I’m using Microsoft Entra ID (Azure AD) for authentication, and I’ve managed to get the bearer token working in Python, but I’m not ... | common-pile/stackexchange_filtered |
Count word frequency of all words in a file
I have a text file, from which I have removed symbols and stop words.
I have also tokenized it (broken it into a list of all words) in case operations are easier with a list.
I would like to create a .csv file with frequencies of all words (long format) in descending order. H... | common-pile/stackexchange_filtered |
Scala - union types in pattern matching
I have a trait like this:
trait Identifiable {
def id: Option[Long]
}
and then there are some other case classes which extend the Identifiable trait.
for example:
case class EntityA(id: Option[Long], name: String, created: Date) extends Identifiable
case class EntityB(id: O... | common-pile/stackexchange_filtered |
Falvey: The entropy production during quantum annealing keeps bothering me. When we drive the system from the transverse field Hamiltonian to the problem Hamiltonian, we're generating entropy even in the ideal case.
Juarez: You're thinking about the $\Sigma = \beta_1 \Delta E_1 + \beta_2 \Delta E_2$ formulation? The e... | sci-datasets/scilogues |
Fastcall name decoration in Windows does not port easily
I'm using mingw in Windows to compile code in C and assembly, several functions in which have the fastcall calling convention (as Microsoft defines it). If I use __fastcall in the declaration, mingw does what Windows does and name decorates:
An at sign (@) is pr... | common-pile/stackexchange_filtered |
How to do indexing with ndarray to mask index in numpy?
I have a 4d array to mask and a 2d array to mask index.
i should masking ndarray data using 2d array indices and i dont want to using for-loop.
how should i do?
for example,
mask_arr = np.random.rand(5,10,100)
idx_arr = np.random.randint(10, size=(5,5))
and my ma... | common-pile/stackexchange_filtered |
Can we reach infinity if we remove repeating digits from $a_k=m\cdot a_{k-1}$?
Inspired by Does this sequence reach infinity?, I propose the following generalization:
$F_b(n)$ replaces consecutive repeating digits of $n$ in base $b$, with just one digit.
Find smallest $m\in\mathbb N$ such that sequence $a(0)=1, a(k)=F... | common-pile/stackexchange_filtered |
How to get Room Available between checkin datetime and checkout datetime
I have 3 tables in my database. First table is rooms , second table is booking_details and third is reserved_rooms. i user cakephp4.2, mysql.
rooms Table
enter image description here
booking_details Table
enter image description here
reserved_room... | common-pile/stackexchange_filtered |
How to best utilize DBContext with a Web API application
I have a Web API that uses an Entity Framework DBContext to perform CRUD operations. My question is the following:
Initially, I used a static instance of my DBContext. However, with this format, any changes to the database tables do not display when I query the d... | common-pile/stackexchange_filtered |
Database normalization alternative
I was wondering if there was any other alternative in order to skip the classical three or more steps normalization in Databases Topic.
Somebody told me that if I used the relational graph technique I could get all my database as a normalized database without having to do all the thre... | common-pile/stackexchange_filtered |
How do I get 'onoff' working on a Raspberry Pi 4B?
I am trying to make a 'Coocking-aid'. I am using a Raspberry Pi 4B with the official 7" touchscreen and an active piezo buzzer. The 'program' should run in Chromium (the RPi's webbrowser) and I write it in HTML, CSS and Javascript. I can do some tricks in Javascript bu... | common-pile/stackexchange_filtered |
How can I properly use bell pepper in my meat curry?
I use this chili to cook meat curries. However, I have an exacerbated skin issue due to this chili ingestion. Therefore, I need a substitute that has the same fragrance but is not hot.
I tried to use green bell pepper. However, it doesn't work. Bell pepper is too jui... | common-pile/stackexchange_filtered |
HM-10 BLE Module - connect to other Devices
first of all: What i am trying to do is only for private interest.
I'd like to connect a AT-09/HM-10 BLE-Module with Firmware 6.01 to another device which provides also a BLE Module, which it is not based on the CC254X-Chip,
I am able to communicate with this Device using my ... | common-pile/stackexchange_filtered |
Why is my small DC motor so weak with this N-type MOSFET in this simple circuit and 9V battery?
Here is my simple circuit. Any help is appreciated:
When I press the momentary switch, the motor spins but it is very weak. I'm trying to figure out what I am doing wrong.
When I connect it directly, it spins with a lot mor... | common-pile/stackexchange_filtered |
Getting values from object map inside a hash map in jasper reports
I am using a HashMap field in jrxml file. The key of the map is an Integer and value is another Hash Map. The second Hash Map key is String and value is object. So I need to retrieve the value of Object. How can I retrieve the value in jrxml file?. Fo... | common-pile/stackexchange_filtered |
How do I open a database file located in a specific folder in sqlite3?
I have this chinook.db database file that I have stored in C:\sqlite\db, and everytime I try accessing it using the sqlite shell by the command .open C:\sqlite\db\chinook.db, sqlite creates a sqlitedbchinook.db database file in the home directory. ... | common-pile/stackexchange_filtered |
Why does `psql --file` misinterpret tilde?
Earlier I used pg_dump to create a database backup in my home directory called book_dump.sql.
I want to restore the backup to an empty database called book.
To restore the backup, I tried this command:
psql book --file=~/book_dump.sql
It failed with this message:
~/book_dump.... | common-pile/stackexchange_filtered |
"Look into" vs. "look at" in the 'investigate, explore' sense
Are look into and look at interchangeable? If not what are the differences between the two?
I will look at my options and see what I have.
I will look into my options and see what I have.
I will look into it and let you know. Or the government is going to l... | common-pile/stackexchange_filtered |
Test-resources of dependencies not in classpath?
I have a multi module Spring project that I set up using Maven:
my-root (pom)
- my-logic
- my-webapp (depending on my-logic)
- my-consoleapp (depending on my-logic)
My Test classes inherit from AbstractTransactionalJUnit4SpringContextTests and use @ContextCo... | common-pile/stackexchange_filtered |
matplotlib colormap choose colors
My current code looks like this: R is a 1D vector, Theta is a 1D vector, Phi is also a 1D vector, and E_d is also a 1D vector.
R=np.array(R)
Theta=np.array(Theta)
Phi=np.array(Phi)
E_d=np.array(E_d)
fig = plt.figure(figsize=(9,7))
ax = fig.add_subplot(111,projection='3d')
#I have a ... | common-pile/stackexchange_filtered |
Parsing HTML and Using an xPath Request in Google Scripts
In my spreadsheet, I need to be able to pull HTML from a website, and then use an xPath request on it. To that effect, I've written the following code:
var artistPages = [];
_.forEach(artistLinks, function (d, i) {
var pageHtml = readRemoteXML(d);
Logger.log... | common-pile/stackexchange_filtered |
Proving the continuity of $f(x)=\sum_{n=1}^{\infty}\frac{1}{\sqrt{n}}\bigl(\exp\bigl(-\frac{x^2}{n}\bigr)-1\bigr)$
I would like to prove the continuity of $f(x)=\sum_{n=1}^{\infty}\frac{1}{\sqrt{n}}\bigl(\exp\bigl(-\frac{x^2}{n}\bigr)-1\bigr)$ with $x\in\mathbb{R}$.
The most obvious way to go about this is to first sta... | common-pile/stackexchange_filtered |
Django South - How do I reset migration history and start clean on Django app
This seems to be outdated as the reset command does not seem to be found using the version of South I am using, which is the most recent I believe.
Anyways, say you are in production and things get really messy. What is the best current way ... | common-pile/stackexchange_filtered |
Laravel @can method does not work for all roles
Problem
The user with the role "author" doesnt see the HTML inside the @can ... endcan block.
Description
Developing a Laravel package and restrict the navbar accordingly to the roles. But when i try to make a nav element only for a user with the role "author", it doesnt ... | common-pile/stackexchange_filtered |
Abstract approach to the total electric force on a charged rod
Suppose we have a 1-dimensional system (x-axis) consisting of rod of finite length $l$ and arbitrary charge density of $\lambda(x)$ at rest extending from the origin to $x=l$. And now, suppose we have a distant static source of electric field (the generatio... | common-pile/stackexchange_filtered |
Sanskrit versus Pali and Nagarjuna
I have recently been learning Pali, and have heard that Sanskrit is somewhat similar. With a decent knowledge of Pali, is it possible to read Nagarjuna, for instance, perhaps with just some of the basics of Sanskrit? Or would it be more or less unintelligible?
There is a Wikipedia ar... | common-pile/stackexchange_filtered |
What git strategy for maintaining code that an upstream repository does not welcome
We have a set of DDS adapters written in C++ with necessary callbacks and pub/sub message functions to send data back and forth across messaging buses between two pieces of software.
The maintainers of the adapters are only interested i... | common-pile/stackexchange_filtered |
Example 3, Sec. 30, in Munkres' TOPOLOGY, 2nd ed: A sufficient condition involving basis sets for a space to be Lindelof
Can we state the following?
Let $X$ be a topological space with a basis $\mathscr{B}$ for the topology of $X$. If every covering of $X$ by basis sets from $\mathscr{B}$ has a countable subcollection... | common-pile/stackexchange_filtered |
React hooks - prevent useEffect from updating too fast
I have a datepicker component I'm making. There are three 'dials', for days, months and years, which are moved by dragging the mouse within column divs. It works great, except it updates really fast and the whole thing moves too quickly. How do I make sure it updat... | common-pile/stackexchange_filtered |
Hibernate : Mapping two entities
I have a question regarding mapping entities based on mapping in their tables.
So, we are a team of five working on a project, one of our team mate seem to add mapping between tables in opposite direction, I'll give examples of both to let you understand what I mean.
We have two tables ... | common-pile/stackexchange_filtered |
Updating to latest version of ngx-bootstrap
I have an Angular project that uses Bootstrap 3.4.1. I can't update it to 4 or 5 since it will break all the styles.
I'm also using ngx-bootstrap in the project. After updating to Angualr 17, I can't update ngx-bootstrap to latest since it does not support Bootstrap 3.
What i... | common-pile/stackexchange_filtered |
Server permissions of an activation stored procedure of a Server Broker queue
I have a stored procedure that queries the sys.dm_exec_requests view. In the stored procedure the view only returns one row, while the stored procedure needs to see all of them. The MSDN article on the view says that what is returned depends ... | common-pile/stackexchange_filtered |
Linux timezone not changing
Unable to change the timezone to PST8PDT even after trying all the possible methods
[root@test ~]# date
Tue May 10 07:24:18 EDT 2016
[root@test ~]# ll /etc/localtime
lrwxrwxrwx 1 root root 27 May 10 06:35 /etc/localtime -> /usr/share/zoneinfo/PST8PDT
[root@test ~]# cat /etc/profile | grep TZ... | common-pile/stackexchange_filtered |
Is there a way to see how many users joined my discord bot game?
I am trying to make a discord bot text game. The users on the discord server are supposed to be able to interact with the bot and play a game (based on roles and text). Each player is to be given a role and then the bot will tell a story based on these ro... | common-pile/stackexchange_filtered |
What numerical method should i use for the given example?
PROBLEM: We have partial difference equation u(t): du/dt=sin(t); u(0)=0.
What numerical method should I use to solve the equation, how would i write an algorithm for u(1)?
I thought I could try finite difference method but I could use some guidance.
Please giv... | common-pile/stackexchange_filtered |
Regex to match plain string with only alphabets as well as optional dot character as beginning of match
I have the following regex:
[:?\.](.+)[\|]?
Which successfully matches strings like the below:
The data.mws auth token field is required| lalafa daga.lallala
Or
The data.mws auth token field is required
But I'd al... | common-pile/stackexchange_filtered |
Reference Shared Object AS3
I am trying to reference a shared object (one that saves data), but whenever I try to, I get a crash.
This code works fine:
var var1:Object = { value:1 };
var varRef:Object = var1;
if(var1.value == 1) {
varRef.value = 50;
}
trace(varRef.value); // outputs 50;
trace(var1.value); // outp... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.