text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Does the text of Exodus have anything that indicates that the Ten Commandments were all that God intended to write on stone?
Based upon Exodus 20, God spoke directly to the children of Israel. He provided ten commandments. Being frightened of the theatrics of God, Israel removed themselves and told Moses to speak to Go... | common-pile/stackexchange_filtered |
Is it possible to define a type (string literal union) within a class in TypeScript?
In TypeScript 1.8, they added a new type called a "string literal type" which lets you declare a type that can only be one of a set of finite values. The example that they give is:
type Easing = "ease-in" | "ease-out" | "ease-in-out";
... | common-pile/stackexchange_filtered |
Iterating multiple arrays in shell
I have a set of arrays which are created upon certain ending patterns. I want to add some computed values to it by iterating it one by one.
So far I have tried doing this,
#!/bin/bash
patternBA=()
patternCA=()
patternDA=()
types=(BA CA DA)
for iterator in "${types[@]}"
do
#I need to... | common-pile/stackexchange_filtered |
Search and Edit/Update Data Script for Google Sheets
NOTE: I have abandoned this approach for a different approach that is successful. Thank you though.
I am new to script writing. I am very familiar with regular old functions but not very familiar with script.
This is what I am trying to do.
On the "Enter" tab, as ... | common-pile/stackexchange_filtered |
Problems with aggregating and crosstabulating data
My data looks like this, ca 3300 rows of data:
Year Location Catch
1991 0313 45100
1989 0711 323
1991 0312 1100
1991 0313 45100
1989 0711 323
1991 0312 400
1990 0313 1010... | common-pile/stackexchange_filtered |
type 'string' is not assignable to type ' long short narrow undefined'
I copied following code snippet from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString and tried it in my own project.
const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
const options = { ... | common-pile/stackexchange_filtered |
Visual Studio 2008 doesn't create *.refresh files for external DLL references... what am I missing?
I've got a question about something that's just been irritating me.
A colleague and I are building a support framework for our current client that we want to reference in other projects.
The DLL we want as a reference in... | common-pile/stackexchange_filtered |
Very confused by the Contract API
TL;DR
I'm very confused by the Contract API in web3: https://web3js.readthedocs.io/en/v1.2.6/web3-eth-contract.html
myContract.methods not available in geth console either with Geth 1.9.11-stable and 1.9.12-unstable on Ubuntu 16.0.4 (fast sync'd)
Is that a version issue? Do I have to c... | common-pile/stackexchange_filtered |
Derivative of Log of Summation of exponential function (base e)
A financial formula that I am implementing requires that I find the first derivative of a function to find a local maxima, from scratch. Can someone please help me with finding the first derivative of this function:
$$
f(\theta) = -\log\left(\frac{1}{T}\su... | common-pile/stackexchange_filtered |
How to save sorted column property and reapply on refresh?
I have a grid that when I apply a descending sort it functions perfectly. When I go to refresh the grid, though, the items default to ascending order. How do I save the column's descending order property so that I can apply it back once a refresh has been com... | common-pile/stackexchange_filtered |
What is $D(n,k)$? (dee-en-kay) /ˈdiːˈɛnˈkeɪ/
Is this combinations with repetitions, i.e. ${n+k-1\choose k-1}$ or is this something else entirely? I see this a lot, but with this kind of language no search engine is going to help.
The edit in the title is for SEO
Example:
$$
\left(\frac{1}{1-x}\right)^n = \sum_{k=0}^\i... | common-pile/stackexchange_filtered |
Cannot add my user control to the toolbox from DLL file
I created a custom WinForms control. When I added reference to the control's project for any project in the same solution, the control appeared in a WinForms designer toolbox and I can use it.
But I have problem to use it as an external library.
I built it and got... | common-pile/stackexchange_filtered |
Portable scripting language for a multi-server admin?
Please Note: Portable as in portableapps.com, not in the traditional sense of a language that can be used on multiple architectures or operating systems. Whoever coined this usage of the word portable should be whacked. :)
I'm a DBA and sysadmin, mostly for Windows ... | common-pile/stackexchange_filtered |
What proof do we have that Waiting in the Summer and Onegai Sensei (and Twins by proxy) are set in the same Earth?
Offshot of: Waiting in the Summer and Onegai Sensei seem to plagiarise each other. Is this normal in anime/manga?
It is said that both animes are set in the same Earth (I.E., Waiting in the Summer is a seq... | common-pile/stackexchange_filtered |
How to support resizable widgets?
My app supports this API range
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="14" />
It also has a single basic app widget that could be resizable but since the older APIs do not support android:resizeMode the manifest lists this widget in few predefined sizes.
... | common-pile/stackexchange_filtered |
Which are the countries where vegan diet is more popular?
Are there any statistics measuring what percentage of the population of some countries are following a vegan diet?
Veganism has become popular around decade. Hence there would be very less percentage of populations. If you ask for vegetarians, then there would ... | common-pile/stackexchange_filtered |
Including virtuals in query
I have a schema MySchema on which I have defined virtuals. When I query for documents based on MySchema, the documents' properties do not include the virtual ones. How can I specify that I want my query result to include the virtual properties?
The virtuals are there, they just don't show u... | common-pile/stackexchange_filtered |
Lake World and Water Salinity
I have an idea for a world where land prevails over water and what waters there are are largely relegated to scattered lakes of varying sizes. Some of these lakes would be mega lakes, the size of the Mediterranean. Maritime travel in ancient times was a lot more efficient than overland tra... | common-pile/stackexchange_filtered |
NHibernate: Why would you use <composite-element> over <one-to-many> to map a collection
When using NHibernate, under what circumstances would you choose to map a collection using a composite-element to give a collection of value objects, rather than creating a full-blown entity and mapping it using one-to-many?
You mi... | common-pile/stackexchange_filtered |
Launchd plist runs everyday instead of only weekends
Scenario: I need to force a reboot as a Launch Daemon at a specific time only on Saturdays and Sundays.
Output
The reboot command gets launched at the specific time everyday instead only on Saturdays and Sundays. LaunchControl GUI even reads the plist for Saturdays ... | common-pile/stackexchange_filtered |
WTForms only submits first form
I have a blog page where users can add their replies and that works just fine.
I also have an edit feature, but it isn't working. Just the first one does.
When for example, I submit the second or third form the first one gets always submitted. But when I submit the first one the second ... | common-pile/stackexchange_filtered |
How do I get my windows controls back?
By accident my window top decoration seem to have dissapeared in Unity. Window buttons or application menus are not displayed on the top panel. How can I regain control over this window?
With Compiz running, you should still be able to drag the window around while holding the A... | common-pile/stackexchange_filtered |
Showing that $1-4^{a-1}\le4^{-a}$ in a simple way
Any ideas how to simply show that:
$$1-4^{a-1}\le4^{-a} \quad ,\,0\le a\le 1$$
When looking at the graph of the two functions it seems pretty straight forward, just show that:
They have a single intersection point at $a=1/2$
One of them is convex and the other one is ... | common-pile/stackexchange_filtered |
How to pass Data to viewContainerRef Component in Angular?
How can I pass data to a child component when it gets rendered from viewContainerRef? In my case the EventRegistrationComponent has a navbar with taps and I change ng-template component with my render function below. Every component I can switch to need the sam... | common-pile/stackexchange_filtered |
C: TCP send memory page
I created a memory page using mmap on my server. I'd like to send the data inside that memory page to the client.
Is it possible with tcp socket?
Use send function to do this.
ssize_t send(int sockfd, const void *buf, size_t len, int flags);
After creating the memory page using the mmap you w... | common-pile/stackexchange_filtered |
Sending data from windows service to WCF - MaxArrayLength Error
I've had a problem sending data from a local service to a web service for a while now, and I've tried many articles, but they all dont seem to help...
When I run the app I get the following error:
"The maximum array length quota (16384) has been exceeded w... | common-pile/stackexchange_filtered |
Is there a way to only invisible ItemTemplate of ListView?
I find IsVisible attribute only in the <ListView> itself but don't find in neither <ListView.ItemTemplate> nor <ListView.Header>, So is there a way to only invisible <ListView.ItemTemplate> and keep <ListView.Header> visible?
Why not to remove an item from the... | common-pile/stackexchange_filtered |
AngularJS ng-repeat filter on unformatted date expression
I have some JSON I pull into my Angular application. I use ng-repeat to output the JSON to the page, but I would now like to filter on a date field. I can filter on the necessary field using the ng-model query. However the data that comes from the server is c... | common-pile/stackexchange_filtered |
Add Image to C# DataGridView
As I know The DataGridView control and its related classes are
designed to be a flexible, extensible system for displaying and
editing tabular data. And We can add an Image control in a column of
DataGridView. Setting the column Image property results in that image
being displayed... | common-pile/stackexchange_filtered |
Angular: How to implement mat sorting in mat table with formarray
I'm working on formArray in mat-table and the table can be sort. I just want a simple sorting based on id. Everything working good except sort. Please let me know where I made mistake here. Here is my code:
Stackblitz
It's obvious that you got confused ... | common-pile/stackexchange_filtered |
What do you call a floor made of glass so you can see through the floor?
I am not sure if this has a particular name, but I am thinking it might, because I see it a lot on modern bridges and tall towers that serve as tourist attraction. What is it called, is there a name for such a thing?
I'd call them "terrifying" an... | common-pile/stackexchange_filtered |
Why does std::sort() without prefix "std" not compile in Visual Studio 2010 when using a lambda?
I have encountered a situation where a call to std::sort() works without explicitly writing the namespace. According to Using std::sort() without prefix "std" and also without "using namespace std;" compiles successfully, t... | common-pile/stackexchange_filtered |
mysql random from top 10
I have the mysql query:
SELECT * FROM bigtable WHERE column1='1' ORDER BY column2 DESC LIMIT 10
And then I put everything in an array and use php to choose a random row from this array of 10 items.
Is there a way to do this with a single mysql query instead of mysql+php part?
After take top 1... | common-pile/stackexchange_filtered |
Mysql: Select all data between two dates
I have a mysql table with data connected to dates. Each row has data and a date, like this:
2009-06-25 75
2009-07-01 100
2009-07-02 120
I have a mysql query that select all data between two dates. This is the query:
SELECT data FROM tbl WHERE date BETWEEN date1 AND dat... | common-pile/stackexchange_filtered |
How to catch Rewrite rules then display a specific post?
I'm trying to catch the params sent by the rewrite rules and then display a selected post.
But for now, even if I can retrieve those param, the page redirect to the archive of my custom post type. Where I need to display the post that match a custom query build ... | common-pile/stackexchange_filtered |
Tor fonts not displayed in Panopticlick
Panopticlick detects no fonts on my Tor browser. The standard should be Wingdings2 and Wingdings3.
I have disabled incognito mode and added Self-destructing cookies, uBlock Origin and changed the default font to serif (Firefox default). I tried adding the string font.system.white... | common-pile/stackexchange_filtered |
Skip check text in tables
How to rewrite such code:
Sub sierotkiTXT_zero()
'szukaj sierotek w tekście
Dim NumLines As Long
Selection.EndKey Unit:=wdStory, Extend:=wdExtend
NumLines = Selection.Range.ComputeStatistics(wdStatisticLines)
MsgBox "Lines to check " & (NumLines)
Selection.Collaps... | common-pile/stackexchange_filtered |
How to know whether android app is install from play store without using packageInstaller
Is it Possible to know whether android app is install from play store without using packageInstaller? Every Other question is related to packageInstaller which any one can edit but my question is without using packageInstaller
P... | common-pile/stackexchange_filtered |
Javascript separate window for games
I'm new to JavaScript and want to try and make a word guessing game in a new window like they do at http://www.lutanho.net/stroke/online.html. I don't get how it opens up in its own separate window? I want to write it in a .js file and attach it to an index.html file, so when i clic... | common-pile/stackexchange_filtered |
SelectedIndexChanged event dont fire when create a dropdownlist in code-behind
For two day i try to solve this issue.
I create a dropDownList in code-behind, in selectIndexChange of another dropDownList, and add this new dropDownList to page using a placerHolder, everthing its ok, but new dropdownlist selectIndexChange... | common-pile/stackexchange_filtered |
Calling COM wrapped c# dll from unmanaged c++: how to pass a 'string' and retrieve an updated value
I use COM interop to call functions in a c# dll from my VC6 MFC DLL, and this works fine.
I want to call a function to retrieve string values.
How do I declare a 'string' in my unmanaged C++?
How should the 'string' appe... | common-pile/stackexchange_filtered |
Check if file/folder is in a subdirectory in Ruby
What's the nicest way to check if a given file/directory is in some other directory (or one of its subdirectories)? Platform-independence and absolute/relative path handling would be nice.
One easy way is just to search through the files and check each time, but maybe t... | common-pile/stackexchange_filtered |
Redirect to canonical domain
I'm trying to set up a rule so requests coming from alternative domains are redirected to canonical domain, keeping request path and query string intact. I need to use .htaccess because it's a shared hosting account.
Unfortunately, LiteSpeed documentation is extremely vague when it comes to... | common-pile/stackexchange_filtered |
Umbraco Form - Remove time from Datepicker date in email
I have a form that contains a Datepicker and in the email that is sent on submission the date is formatted with a time.
How do I remove the time from the date?
Thanks
You can either change the property to just Date, without the time element, or you can use ToStr... | common-pile/stackexchange_filtered |
Django user details
I am doing a project in Django. In route /players I have list of all players in my database. On each player's card, I would like to have a link, which redirects me to a player profile, like /players/username. I tried it with some URL parameter but after some attempts I need some help. I know how to... | common-pile/stackexchange_filtered |
How can I save html form input data?
I want to store the data I inserted into this html form on the server side. And afterwards I want to be able to access this data and use it in a Raspberry Pi project.
How can I do that?
<div class='alertBox' id='box'>
<p id='displayDate'></p> <br>
<form>
... | common-pile/stackexchange_filtered |
How can I connect MySQL to Discord.js?
In this code, I tried to connect MySQL to Discord.js, but when I ran the command, I encountered such a result. How can I fix this or can I connect MySQL to Discord.js differently?
const { SlashCommandBuilder } = require("discord.js");
const mysql = require("mysql");
const connecti... | common-pile/stackexchange_filtered |
Static factory method for trait
I'm just learning Rust, so maybe I just didn't get some concepts correctly.
I have a trait with some implementations:
trait Abstract {
fn name(&self) -> &str;
}
struct Foo {}
struct Bar {}
struct Baz {}
impl Abstract for Foo {
fn name(&self) -> &str { "foo" }
}
impl Abstract fo... | common-pile/stackexchange_filtered |
20 days prior to 1st of October, 2018 ("Pandas")
There is a case am working since 2 days to solve the following issue:
end_Date = "1st October, 2018"
end_Date = pd.to_datetime(end_Date)
start_Date = end_Date - pd.Timedelta(days = 20)
df360[(df360.claim_date <= str(end_Date)) & (df360.claim_date >= str(start_Date))['c... | common-pile/stackexchange_filtered |
$L(1,\chi_d)$ for even d
This question concerns the asymptotic maximum of $L(1,\chi_d)/ \log \log d$ when
$d$ is even. I computed it for even $d$ less than 7.5 million. The largest
value is $1.230126$, occurring for $d= 2552806$. This value is never exceeded for the next five million $d$. Languasco (arXiv:2005.0... | common-pile/stackexchange_filtered |
postfix: send a copy of every email to a given email address
I have a postfix email server and there is an issue I want to debug.
How can I configure it to send a copy of every email to my email (in addition to delivering the email to its intended recipients).
http://serverfault.com/questions/407302/how-can-i-configur... | common-pile/stackexchange_filtered |
Headline: "Chemical Company could build a plant in Uzbekistan" vs "Chemical Company may build a plant in Uzbekistan"
Let's say I want to write a news article about a chemical company that plans to build a new plant in Uzbekistan. Which modal verb should I use in the headline - could or may?
Chemical Company may build ... | common-pile/stackexchange_filtered |
How to resolve a "Whitelabel Error Page" in Spring Boot
I have made a "Pets" application using Model View Controller (MVC) Design Pattern in Gradle, with Spring Boot 3 framework, Thymeleaf template engine, in-memory H2 database with JPA, and Post-Redirect-Get design pattern. The program imitates a simple data-driven ap... | common-pile/stackexchange_filtered |
How do some programming languages distinguish between a function and a function pointer?
I'm talking mostly about functional programming languages. For example, the wikipedia article for map has this example in a Haskell-ish language:
map square [1,2,3,4,5]
How does the parser/compiler know that we want to pass the fu... | common-pile/stackexchange_filtered |
Want Sunspot/Solr order_by :random to remain consistent for the session
I am using the Sunspot gem for Solr integration with a Rails 3.2 application. My search is heavily parameterized, so instead of sorting by relevancy, I sort by default using order_by(:random).
The problem is some features of the application return... | common-pile/stackexchange_filtered |
Mimicking iOS notification view
I am trying to mimic iOS 5's notification view (when you swipe down the view appears) for hub with a left swipe in my view. I created a mimic for a single view controller by adding the hubview as subview and changing the origin of view when making swipe. But With this approach I have to ... | common-pile/stackexchange_filtered |
Issues regarding insert_rows_from_dataframe using Big Query
I want to to insert a dataframe into a table in GCP, say the name of the table is table_id. I want to use the following
insert_rows_from_dataframe(table: Union[google.cloud.bigquery.table.Table, google.cloud.bigquery.table.TableReference, str], dataframe, sele... | common-pile/stackexchange_filtered |
C# get value of dynamically created control
I have Label controls in Panel controls that need to be updated. The Panel and Label controls are dynamically created. Now I need to find a way to get the value of 1 Label in a Panel.
C# Code
// Create Panel
Panel newpanel = new Panel();
n... | common-pile/stackexchange_filtered |
Why isn't the Dirichlet Function Riemann Integrable?
Can we find out the upper and lower sums based solely on the domain [a,b] ?
Yes, just use the fact that any non-empty subinterval must contain both a rational and an irrational. So the lower sum must be 0, and the upper sum must be 1.
For any partition of $[a,b]$, ... | common-pile/stackexchange_filtered |
add record if id is not known else update the record
I have the following table in mariadb:
-id = key which shall autoincrement
-price
-amount
-name
-order_id
order_id can appear twice in the table but the combination of name and order_id should be unique. I now have a combination of name and order_id.
What I want to ... | common-pile/stackexchange_filtered |
Calling printk in a simple IRQ handler crashes the kernel
I'm new to kernel programming and I couldn't find enough information to know why this happens. Basically I'm trying to replace the page fault handler in the kernel's IDT with something simple that calls the original handler in the end. I just want this function ... | common-pile/stackexchange_filtered |
"upgrade" the new [rad750] tag to something like [radiation-hardening] or "downgrade" it to the cornfield, or combine with [shielding], or...?
The new question Are there already spacecraft equipped with RAD5500 processors? has a rad750 tag
this is currently the only question where this tag can be found
this question i... | common-pile/stackexchange_filtered |
Programatically adjust Line Labels to not overlap in excel
I need to adjust the overlapping labels of my line graph but only on the showing labels and it should be sorted from highest to lowest.
I have an exisitng macro code that would show and change the color of the label. The help I need is to adjust multiple label ... | common-pile/stackexchange_filtered |
SQL Algorithm to Manipulate a string based on a Code Pattern
My Sql Code is as follows ,
Declare @text nvarchar(max) = 'America,Japan,Indonesia,London'
Declare @Pattern nvarchar(20) = '1001'
So For this Pattern the sql function should return the string as 'America,London'
The String should be manipulated based on t... | common-pile/stackexchange_filtered |
Unable to save form
I'm trying to save a form, and I am so lost on why it refuses to save. Does anybod have a clue what might be wrong?
Here's the form code:
<%= form_for @service, url: services_path do |f| %>
<% @profiles.each do |profile| %>
<%= f.text_field :service_id, value: "#{profile.service_id}" %>
... | common-pile/stackexchange_filtered |
How to restore Meizu Pro 5 Ubuntu Edition to Factory Settings
I tried installing Libertine on my phone to take advantage of installing some legacy apps. The install failed due to some dependency issues. No big deal I thought. But my phone got reset and when I tried to access the on screen keyboard, it no longer existed... | common-pile/stackexchange_filtered |
Aligning bit pattern by most-significant bit
I want to XOR two numbers as follows:
11001110 and 110
However, I need to align the bit patterns as such:
11001110
11000000
Any ideas how to do this? I imagine some bitwise operation might be needed, although how would I know how many bits to shift by?
No, they need to be ... | common-pile/stackexchange_filtered |
LM4871 audio amplifier BTL configuration question
I am reading the datasheet of LM4871 audio amplifier. The typical application looks like:
The datasheet says it is in BTL configuration. The 1st OPA inverts input signal and the 2nd OPA inverts again so we get a differential pair for driving a loudspeaker at output sta... | common-pile/stackexchange_filtered |
probelm in login actoin in ReactJS with GraphQL
I'm having trouble making the login work in my ReactJS app using GraphQL. Even though the server works fine, and my code looks good, the login isn't working.
Here's the GraphQL code for the login:
import { gql } from "@apollo/client"
const LOGIN = gql`mutation Login($user... | common-pile/stackexchange_filtered |
How to add trailing spaces to format specifier in String resource file, in Android?
I have a list view with a list of country codes and country names like below:
+351 (PT) Portugal
+1684 (AS) American Samoa
And I'm using this String resource:
<string name="country_code_picker_item" translatable="false">+%1$d (%2$s) %3... | common-pile/stackexchange_filtered |
Storing text output in variables (bash)
As for bash, is it a bad practice to store text output in variables? I don't mean few lines, but even as much as few MB of data. Should the variables be emptied after the script is done?
Edit: I didn't clarify the second part enough, I wanted to ask whether I should empty the var... | common-pile/stackexchange_filtered |
Using Multi Matrix Variables in Spring MVC
I have a problem that I cannot solve. I try to figure out the matrix variables in Spring MVC. Matrix variable has been enabled. Here is my project structure:
I inspect a handler function in ProductController :
// added in page 102
@RequestMapping("/products/filter/{params}/{s... | common-pile/stackexchange_filtered |
What is an example of the email protocol syntax to include a Text and HTML version within an email?
If I want to include, in an email, both an HTML version and a plain text version (for non html email readers), what is the protocol to include in it to specify each?
I sympathize with the down vote as there is no resear... | common-pile/stackexchange_filtered |
How can I use Bitfields specifically for the following purpose
for the purpose of learning efficient memory management I would like to know how it is possible to use individual Bit fields to represent the values of 8 bool values collectively, and how to evaluate and set each bit.
Reason is in my own program, which I wo... | common-pile/stackexchange_filtered |
Image processing after edge detect in opencv
I use canny to detect edge.But, as the quality of image is bad, a lot of noise is as below:
Origin image is this.
I just want the rectangle edges. As the edge I want to detect is so regular(like bricks). I wonder if there were some image process algorithms that could help ... | common-pile/stackexchange_filtered |
Part of proof that $d^2\omega=0$
The following comes from the proof in differentiable manifolds that $d^2\omega=0$.
Let $f$ belong to the set of $0$-forms. From definition I have that
$\displaystyle df = \frac{\partial f}{\partial x^j}dx^j$
Then from the definition for $d$ of a one-form, apparently we have that
$\disp... | common-pile/stackexchange_filtered |
Understanding testing libraries versions / dependencies
I was looking for a while how to find out dependencies among libraries but I didn't find anything. E.g. in my build.gradle is
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile 'com.android.support:support-annotations:25.4... | common-pile/stackexchange_filtered |
rebinning hist object from linear bins to log(x) bins in scikit-hep hist
I am trying to rebin my hist objects from linear bins to log(x) bins. I see on the UHI read the docs on indexing (https://uhi.readthedocs.io/en/latest/indexing.html#) that it is possible to linear rebin with h == h[::rebin(2)], but this gives all ... | common-pile/stackexchange_filtered |
Is it "correct" to do a binary mathematical operation by converting to decimal?
Is it considered correct in order to do a binary or hexadecimal operation to convert to decimal, do the operation, and then convert back to the original numeral system?
Is the above not advised?
Is the above frawned upon?
The context is a (... | common-pile/stackexchange_filtered |
Auto Property with public getter and private setter
NOTE: This is not a duplicate of VB.NET equivalent of C# property shorthand?. This question is about how to have different access rights on getter and setter of a VB auto-property; e.g public getter and private setter. That question is about the syntax for auto-proper... | common-pile/stackexchange_filtered |
allFilms.map is not a function
I want to get a JSON from a films API,
I get the datas in the variable "data", but my array "allFilms" still empty even after the datas are loaded... (see the code below),
Why my array is still empty please ?
const [allFilms, setAllFilms] = useState([]);
const [pending, setPending] = useS... | common-pile/stackexchange_filtered |
How to add a test condition on Locale
I am trying to translate my app in english, french, spanish and hungarian.
I want to translate the string "1 out of 2" dynamically. So, the "out of" part in a string resource and use code to append and prepend the numbers.
It goes fine for french (1 sur 2) and spanish (1 de 2). Ho... | common-pile/stackexchange_filtered |
Java: Recursively Finding the minimum element in a Stack
public static void removeMin(Stack<Integer> st)
{
if (st.isEmpty())
return;
int min = st.pop();
removeMin(st);
if(min<st.top())
return;
st.push(min);
}
I tried to find the minimum element and remove it, but unfortunately I cou... | common-pile/stackexchange_filtered |
How are U.S. Congress bills assigned their number?
We are currently in the 115th U.S. Congress that started in January of 2017.
How is it that the Tax Cuts and Jobs Act is assigned #1 in its bill name (H.R. 1) when it wasn't introduced until 9 months after this congress began?
From Wikipedia (emphasis mine)
Every tw... | common-pile/stackexchange_filtered |
How can I establish the link between relational records in belongs_to association?
I would like to create a simple belongs_to association between User and CriminalRecord. A user has only one record and a record belongs to a user. So far I have the following in the corresponding files.
model > user.rb
class User < Activ... | common-pile/stackexchange_filtered |
Proof by Induction: $∀n ≥ 5, 2^n + 2n < n!$
I'm having trouble understanding how to solve this question.
Proof by induction: $∀n ≥ 5, 2^n + 2n < n!$
I don't understand how they got those steps that I highlighted in the picture attached below.
Any help is appreciated.
Thanks!
Welcome to Mathematics Stack Exchange! ... | common-pile/stackexchange_filtered |
get the substrings between {} in a string Scala
I have a string str=" {$a}/{$b}/{$c}/{$d}"
I want a function that returns list of strings which are in between { and }
so for fun(str) output should be List($a,$b,$c,$d)
I tried
println("""\}.*\{""".r.split("{$a}/{$b}/{$c}/{$d}").toList)
but I got only List( {$a,$d})
W... | common-pile/stackexchange_filtered |
Is it a good Idea to use a Game Structure Coding Style to build a simple system?
Yes, as what I'm trying to think is that, for example I want to create a simple library system. but my question is it is a good idea to use a game structured system using rendering? Would it give give a performance issue? Also, since I wan... | common-pile/stackexchange_filtered |
How to load filtered data in html table using jquery & .net
I've this structure of c# class
public class test : PageModel
{
public JArray Transactions { get; set; }
public void OnGet(int filterid)
{
Transactions = GetTableValue(filterid);
}
}
actually my table works fine when it's load first time on page load.but w... | common-pile/stackexchange_filtered |
Cannot set imageView in CollectionViewCell
In my code, I am trying to set the imageView of a UICollectionViewCell. The imageView is called cellImageView in the CollectionViewCell class. When the app loads up it tries to initialize this value, but it doesn't work
func collectionView(_ collectionView: UICollectionView, c... | common-pile/stackexchange_filtered |
Does anyone have a PowerShell script that starts and stops aws ec2 instances
Does anyone have a PowerShell script that starts and stops aws ec2 instances?
param
(
[string] $Filter = "xxxxx*"
)
$CurrentDate = (Get-Date -Format "yyyyMMdd.0.0")
$instances = Get-EC2Instance -Filter @(@{name = 'tag:Name'; values = "xxxx"}) ... | common-pile/stackexchange_filtered |
In Github, Actions stopped working at deploy stage while pushing and the error " Error: Process completed with exit code 1" was executed
I pushed my files to github (.github.io) repo. Everything was going smoothly but, suddenly "Actions" stopped working in deploy stage
showing the error
Error: Process completed with e... | common-pile/stackexchange_filtered |
Element.Parse() Throws error
So I am trying to read XML string like this
SaveGrammar[x].Item7 = "<condition><expression value=\"(not empty($20)) and ($20 = '1' or $20 = '2')\" /></condition><string-validity regexp=\".*\" domain=\"all-values\" />"
Using this method
XElement validation = XElement.Parse(SaveGrammar[x].I... | common-pile/stackexchange_filtered |
Delphi Form does not fire onActivate event when its parent is a TPanel
When I click on the form's caption the OnActivate event is not fired. The reason is apparently that the form parent is a TPanel. The form is brought to front when clicking its caption but the onActivate event is not fired.
My solution was radical, I... | common-pile/stackexchange_filtered |
Implicit pattern definition binds no variables when using underscore as identifier
I have a code like the following:
implicit val _ = new MyClass()
And I am getting the following error:
Implicit pattern definition binds no variables
Why?
I am using Scala -> 2.13.3, SBT -> 1.3.13, and Java -> OpenJDK v14.0.2
Related ... | common-pile/stackexchange_filtered |
Passing value of a java method to a javascript variable using Struts 2 tag
I have a JSP file
<%@ taglib prefix="s" uri="/struts-tags"%>
<% response.setContentType("application/javascript"); %>
var collegename = '<s:text name="student.collegename"/>';
student.collegename defined in messages.properties file.
now i can ... | common-pile/stackexchange_filtered |
How to convert comma separated strings into integers?
I have a dictionary:
dic = {"0.0.1": "112,4,087", "00print_lol": "29,551", "021": "2,541", "02":"23"}
The keys are package names and their values are download counts. But the values can't be converted directly into integers as they are separated by comma.
So, if I u... | common-pile/stackexchange_filtered |
Typescript interpretation in Atom IDE
I'm having problems with the Atom IDE. It seems to me that the interpretation of other types of libraries, like Jquery, is not well accepted by the Typescript interpreter of the Atom.
Does anyone know if in Atom, the procedure is different?
At VSC, the interpretation is perfect. Al... | common-pile/stackexchange_filtered |
Calling WebView.getUrl() from preference view returns null
I'm trying to get the current URL of the WebView on my main activity and display it as a TextView for the user in a custom DialogPreference. My difficulty right now is every time I call it, it get a null returned.
Here's my code for the custom DialogPreference... | common-pile/stackexchange_filtered |
Can't find table dbstat
c.execute('select sum(unused), sum(pgsize), sum(payload), count(*) from dbstat')
or
c.execute('select sum(unused), sum(pgsize), sum(payload), count(*) from main.dbstat')
I'm using sqlite3 database, and I'm trying to get the statistics of the database from the dbstat table. This line works fine... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.