text
stringlengths
70
452k
dataset
stringclasses
2 values
Using exact same data in two separate react child components. One component allows data to be manipulated, the other component does not In a react site, I pull in data (array of objects, two key-value pairs per object) in a parent component and pass the data to the children in props. I have two pureComponent children w...
common-pile/stackexchange_filtered
Norm induced on a projective module over a Banach algebra I am reading 'K-Theory' by Max Karoubi and am having difficulty understanding some statements in the section I.6.22. (p.33-34) The set-up is as follows : Let $A$ be an arbitrary banach algebra, and let $M$ be a finitely generated projective module over $A$. Thus...
common-pile/stackexchange_filtered
Access Restricted for API Only Users When I attempt to login using SSO, I get prompted for two factor authentication and when I enter the 2fa code, I am greeted with a message that says "Access Restricted for API Only Users - You’re successfully registered for two-factor authentication, and can no longer access the UI....
common-pile/stackexchange_filtered
Best way to connect Dell Precision 5520 laptop to Dell UltraSharp U2717D Monitor My Dell 5520 laptop has multiple display connection possibilities. HDMI Thunderbolt 3 / USB C USB 3.0 My Dell U2717D has: HDMI (MHL) DisplayPort Mini DisplayPort I also have a Kensington SD3500v USB 3.0 Docking Station however, I belie...
common-pile/stackexchange_filtered
Word wrap in FusionCharts Free data labels I use FusionCharts Free to plot some column charts. Some of the data labels (the texts under each column on the x-axis) are long, and end up overlapping with the labels of other columns. Is it possible to make the text wrap? (I know it is possible to rotate labels, but that ...
common-pile/stackexchange_filtered
How to save uuid result with cookies Possible Duplicate: How to set cookies for uuid I have a website with a uniqid() generator. There is a box with the uuid on my site which changes with each page visit. I want to set a cookie which saves the uuid output and loads it the next time a returning visitor vists my site....
common-pile/stackexchange_filtered
How we can manipulate the momentum of a particle? Is there any way to affect a particle's momentum value? The answer I have given below may seem trivial, but if you are somehow thinking that momentum is an intrinsic property of the object than you have gotten hold of a misunderstanding. You apply a (net) force (i.e. ...
common-pile/stackexchange_filtered
Array formula and MAX I'm trying to get peak/max equity from two columns A & B with an array formula. The reason I use the array formula is because I don't want just MAX as an answer in one cell. I want it to update automatically row after row with each new entry without overwriting previous entry. So far I got to this...
common-pile/stackexchange_filtered
Laravel Form return old value I'm using I'm using laravel 5.5 and laravel collective to build my forms. During validation, to manage errors and putting back the old values, I'm using this kind of code: <div class="@if ($errors->has( $question->title )) has-error @endif"> {!! Form::label($question->title, $question...
common-pile/stackexchange_filtered
How to create form for collection or how to read check box value in index.haml (or .erb)? In my project I get data to temporary table and after checking would like to click some check boxes in listing in index.haml and only marked records move to main table. I found a similar solution in here, but it was 8 years ago a...
common-pile/stackexchange_filtered
How to send notification email from AWS to slack Here is our requirement: if any user stops the running EC2 instance, creates the new instance, or terminates any instance, they have to send the notification to the Slack channel. To test this scenario, we have created a new Slack channel. When I ran the curl command fro...
common-pile/stackexchange_filtered
SSRS Oracle Query with Start and End Date Parameters I've found lots of information on SSRS passing parameters but I haven't found one that worked for this query. I'm using SSRS to build a report but my query isn't working. Could someone help me getting the start date and end date parameters to work? The w.startdtm fie...
common-pile/stackexchange_filtered
Connect to IPsec VPN using OpenSwan I'm connected to Internet with a simple ADSL router with NAT. I have a smartphone and a laptop running linux. I need to connect to a IPsec server using OpenSwan. First I tested that it is possible to connect to. I entered connection info into the smartphone and connection was establi...
common-pile/stackexchange_filtered
Converting URLs to have same output We have a URL: http://example.com/index.jsp?hello=1&bye=0 where"1" and "0" are values of the parameter How can I convert the URL to http://example.com/index.jsp/1/0 using form POST methods and javascript? Url rewriting is what you are looking for. This, this or this might help you.
common-pile/stackexchange_filtered
Proving the subspaces in two affine subsets are equal I have a proof for Axler's Linear Algebra Done Right 3.E Q7 but I'm not sure about its correctness or how to simplify it. Q) Suppose $v, x$ are vectors in $V$, and $U, W$ are subspaces of $V$ such that $v + U = x + W$. Prove that $U = W$. My working Let basis of $U$...
common-pile/stackexchange_filtered
Split string to array when some elements are empty I need to process a large amount of csv data in real time as it is spat out by a TCP port. Here is an example as displayed by Putty: MSG,3,1920,742,4009C5,14205994,2017/01/29,20:14:27.065,2017/01/29,20:14:27.972,,8000,,,51.26582,-0.33783,,,0,0,0,0 MSG,4,1920,742,4009C...
common-pile/stackexchange_filtered
Einstein live chat - how to create person accounts using pre chat form data? I am trying to create person accounts with requirements as "a personaccount if non exists and or if it is found it links the personcontact to the transcript and the personaccount as well, enabling chat history" this is the code embedded_svc.s...
common-pile/stackexchange_filtered
Keep getting ValueError with numpy while trying to create array I am trying to create a new array with an existing array's elements. I keep getting:ValueError: Setting void-array with object members using buffer. import numpy as np import datetime date = datetime.date(2013, 4, 5) results = [(date,0,1,2,3), (date,5,...
common-pile/stackexchange_filtered
Measure length in UV EDITOR Is there a way to have something like Edge length but for UV editor ? I am doing texturing manually in photoshop, and the workflow is that I export the UV layout, open it in photoshop and then I know the 'areas' that I need to work on. However, it would be extremely careful if I could know t...
common-pile/stackexchange_filtered
What's the difference between the north and the south pole on a magnet? I was testing out objects with magnets and I didn't understand what made the north pole different from the south pole. I thought the poles were made of different materials, but I realized it wasn't. Can someone tell me what factors differentiate th...
common-pile/stackexchange_filtered
How to insert data with foreign key? What is the best ( I mean the fastest and simplest) way to inserting data with foreign key? My models: public class Package { public Int PackId { get; set; } // some fields // list with other models! public ICollection<Shipment> shipments { get; set; } } public cl...
common-pile/stackexchange_filtered
GDB: Prevent loading of one section with 'load' command I use OpenOCD + GDB to debug the firmware. When I type load it loads the code to the FLASH memory: Loading section ExtFlashSection, size 0x3fe000 lma 0x90000000 Loading section .isr_vector, size 0x1f8 lma 0x8000000 Loading section .text, size 0x19978 lma 0x8000200...
common-pile/stackexchange_filtered
Google App Engine link redirection In my application, I have a form, and when I submit the entered data, the page should be redirected to another link, which has it's own handler. Here's the python code for the same: import os import webapp2 import jinja2 from google.appengine.ext import db import urllib2 import re t...
common-pile/stackexchange_filtered
Wicket DropDownChoice NOT working correctly with PropertyModels I have been trying to debug why my DropDownChoice in a simple form with just the DropDown and a Submit Button hasn't been working correctly for hours now. It has a very weird behaviour. Where the first value selected in the drop down choice is sent success...
common-pile/stackexchange_filtered
How does the (undocumented) return_value argument for unittest.mock.patch work? I've seen examples of unittest.mock.patch() and unittest.mock.patch.object() directly using a return_value argument. Example: with patch.object(ProductionClass, 'method', return_value=None) as mock_method: thing = ProductionClass() ...
common-pile/stackexchange_filtered
Calculate the difference between timestamp I have created registration page and when user click submit button, an activation link is sent to his email and accordingly timestamp is stored in the database. If user click that activation link, I have to check whether that link is clicked before or after 24 hours . my code ...
common-pile/stackexchange_filtered
codeigniter route removing function_name in url I got stack on this in Codeigniter route, What do I want is to remove the function_name in url to be able to have a short url. Here is the example want to have in my url http://mysite.com/controller_name/function_name/id to this http://mysite.com/controller_name/id I...
common-pile/stackexchange_filtered
If $Y \subset O$ and $O$ is open, then $\overline Y \subset O$. Let $X$ be a topological space, $Y \subset X$. Is it true that if $Y \subset O$ and $O$ is open, then $\overline Y \subset O$? If $X$ is a metric space it is true since if $\bar y \in \overline Y \setminus Y$ then $d(\bar y, Y) = 0$. Does the result still ...
common-pile/stackexchange_filtered
Stop GTK from dragging the window when grabbed by background I'm using GTK on Linux. (Both GTK2 and GTK3 exhibit this behavior.) When you grab the window on some free space or menubar, the window itself gets dragged. I'm using the window as a giant OpenGL canvas, and this prevents the primary mouse button presses from ...
common-pile/stackexchange_filtered
amazon load balancer for lambda I am new to use aws. Normally, I use load balance like bottom with 2 servers. For L4 Load balancing, there are more than 2 servers But ALB - Lambda is not I think I am curious about ALB - Lambda relationship Is it 1:1? not like L4 switch? or VPCs stand for the server? And I want to know...
common-pile/stackexchange_filtered
Change the value of a cell whenever the Enter key pressed I have a named range (one cell) called "Indicator" which takes values 0 or 1. I want a piece of code to set the value of Indicator to 0 whenever the user presses the Enter key anywhere in the workbook. Can someone please show me the VBA code to do this? We're n...
common-pile/stackexchange_filtered
Footnote span over two columns without number and long "break line" I am trying to make a footnote, that spans over two columns, has no number and has a long break line. Basically something which looks like in this paper for example. Any idea what's the best way to do this? Thanks in advance! Update The dblfloatfix p...
common-pile/stackexchange_filtered
Change Value in JSON I have the following JSON: { "Sonos": [ { "<IP_ADDRESS>": [ { "Volume": "5", "Extension": null, "Name": "Wohnzimmer" } ] }, { "<IP_ADDRESS>": [ { "Volume": "5", "Extension": null, "Name...
common-pile/stackexchange_filtered
gdb "Attempt to take address of value not located in memory." when calling functions, even const I get errors even though there is no modification on the objects, very simple expression, calling a method: (gdb) p my_unordered_map.count(edge.target_node_id) $6 = 1 (gdb) p my_unordered_map[edge.target_node_id] Attempt ...
common-pile/stackexchange_filtered
Input redirection in WinGHCi I know I can do the following from a command prompt: $ runghc WC < quux.txt How do I do this in WinGHCi? I know I have to first load the file like this: Prelude> :load WC But then what? This doesn't work: *Main> WC < quux.txt <interactive>:1:1: Not in scope: data constructor `WC' <int...
common-pile/stackexchange_filtered
Can I use Content Providers to store files and database entries? I have an application that downloads audio files and stores info about them in the SQLite database as well as downloaded files in the internal storage. I currently add/delete them separately, but can I use ContentProvider to merge these 2 logics together?...
common-pile/stackexchange_filtered
PHP MySQL Prepared Statement returning no result I have an issue with my prepared statement that is being sent through PHP to my database. Can someone tell me why the below statement does not return the result? I'll just describe what I want it to do, what its doing and the code. I have data being sent through a form t...
common-pile/stackexchange_filtered
Printf inconsistent results [The C Programming Language - Chapter 1.6 Arrays] When running the program provided in chapter 1.6 Arrays of The C Programming Language I get some very inconsistent results from the final printf. Here is the program: #include <stdio.h> int main() { int c, i, nwhite, nother; int ndigit[1...
common-pile/stackexchange_filtered
Using a color series in pgfplots cycle list I know that I can define a new cycle list for pgfplots using \pgfplotscreateplotcyclelist if I provide an explicit list of the colors I want to cycle through. How can I instead use a color series defined using xcolor's \definecolorseries, i.e. cycle through that color series?...
common-pile/stackexchange_filtered
Hide DIV on page load I'm trying to hide a DIV element when the page loads and after the Purchase now buton is clicked then the DIV element loads. Right now it shows when the page loads and when clicked it hides, even when i switch the "block" and "none" around in the function it still does not work? Can anyone please ...
common-pile/stackexchange_filtered
How to only display part of content in JTextField in JTable I have a JTextField in a cell of a JTable. It will read a long string, but I need only some key string in the long string show on JTextField. And I also need use the whole long string to output by call tableModel.getValueAt(...) how to do that? BTW: I insert a...
common-pile/stackexchange_filtered
Allow only US users to visit site What is the best .htaccess configuration to allow only US users to visit a site? I can't seem to find a definitive answer that covers all IPV4 and IPV6 users. Have you looked into GeoIP? I will research it more, thank you. I was hoping for a simple .htaccess allow or something more...
common-pile/stackexchange_filtered
notify-send Works From Shell Session, Not From Script I am using at in coordination with notify-send/dunst as a form of reminders for myself. In an interactive bash session, doing: $ echo 'notify-send "Test"' | at 12:45PM works just fine and I see the notification pop up at exactly 12:45PM as expected. However, in a s...
common-pile/stackexchange_filtered
Twig, format date SQL Server I using Twig in a PHP application, The PHP object that I use has an attribute called "date", got from SQL Server. It's look like : "Mar 2 2014 12:00:00:000AM" I try to convert it using Twig for display it, I try with | date("Y-m-d") without success : An exception has been thrown during the ...
common-pile/stackexchange_filtered
Can we call dealloc funcation explicitily in viewController class? I know for sure that we can't but what would be exact explanation for this. Perhaps these may help you Calling dealloc in init? [self release], [self dealloc] or [super dealloc] in init methods? Difference between release and dealloc in objective-c
common-pile/stackexchange_filtered
Mixed Arabic + English formatted date needs to be translated to all English in python I have a Python 3 script that detects Arabic text. I can detect the text and translate it correct for the most part. The issue enters in when I have a mixed Arabic + English formatted date string. I tried using this code to translate ...
common-pile/stackexchange_filtered
User Profiles When Migrating From Stand Alone Server To Domain Controller The Administrator profile on a stand alone (non DC) windows server is a local account. (pls correct me if I'm wrong) So What happens to the (local) Administrator profile when a stand alone server is migrated to a domain controller and that DC is...
common-pile/stackexchange_filtered
How to get the progress of a long pymysql executemany operation? I am using Python to load some big CSVs(about 2G each) into a MySQL database.I tried cursor.executemany() to achieve this, however I find it hard to monitor the progress of this operation. Is there any way to add a progress bar like tqdm on this method? O...
common-pile/stackexchange_filtered
Configure CsvMapper to Inspect Each Value Written I am using jackson-dataformat-csv to export a POJO collection to CSV as follows: CsvSchema.Builder schemaBuilder = CsvSchema.builder() .addColumn("id") .addColumn("name") etc... CsvSchema schema = schemaBuilder.build().withHeader(); CsvMapper mapper = new CsvMappe...
common-pile/stackexchange_filtered
Difference between x = -5.abs() and print(x.abs())? void main() { var x = -5.abs(); print(x); } Will be -5. But: void main() { var x = -5; print(x.abs()); } Will be 5. -5 is an object, and the result of -5.abs() will be connected to x. But we still see -5. Could you please correct me where I wrong? What ...
common-pile/stackexchange_filtered
What to do when a question could belong to multiple stack overflow comunities. e.g SO and Information Security? Since asking questions is a rigurous thing to do and you could get down votes for very simple mistakes and even possibly get question banned if you accumulate enough. What happens if I ask a question which co...
common-pile/stackexchange_filtered
Xcode, textfield delegate, error on line textField.delegate = self It's my first time creating an app with Xcode, and I have come across an error I can't figure out. The fatal error: Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value, occurs on line 29. I've seen other posts w...
common-pile/stackexchange_filtered
Cannot figure out how to format values for for loop print outs I am trying to change the output of a subcommand for a CLI plugin but struggling to get it to work correctly. Currently it shows an ugly printed list; I want to format it into a nice table that's easier to read. Without the table, it works fine...just loo...
common-pile/stackexchange_filtered
Alarmingly low performance with galera cluster My aim is to utilise sufficient cpu resources of both the nodes in my galera cluster so that my end to end stack can support more TPS. Right now, my full stack is constrained by a single mariadb server of 36vcpu and it can go to 10000 TPS. I want to support nearly 20000 TP...
common-pile/stackexchange_filtered
Highlight search results - whole expressions and single words I want highlight whole expresions and single words $text ="text text aaa bbb ccc text aaa text xxaaayy text bbb ccc text bbb cccxxx text"; $words = array('aaa bbb ccc','aaa bbb','bbb ccc','aaa','bbb','ccc'); foreach ($words as $k=>$v){ $text = preg_replace...
common-pile/stackexchange_filtered
How to acknowledge push webservices I have a web-service on my server that pushes the xml data to the clients that are communicating to it over internet. In these cases we have challenge to receive acknowledgement from the client. Specific case like, once client has received the data and before sending the acknowle...
common-pile/stackexchange_filtered
Get element-wise extreme values of multiple arrays Given multiple numpy arrays of same size, I want to create an array of equal size, which contains the extreme values of the arrays. I have a working solution, but want to do this in a more pythonic way without the for loops if possible. MWE import numpy as np a = np.a...
common-pile/stackexchange_filtered
`transp` In Agda I'm still a bit confused about the transp operator in Agda: transp : ∀ {ℓ} (A : I → Set ℓ) (r : I) (a : A i0) → A i1 Is found this paper and I wonder if there is a relation? As far as I understand, the $\mathsf{comp}^i$ operator lets you transport an $n$-dimensional cube along $i$ and if you alre...
common-pile/stackexchange_filtered
Can we realize a super multi-photons entanglement system? Can we find a method to generate super multi-photons entanglement by implementing a special operation which can realize the union of two multi photons entanglement systems ? For example , there have two ten-photons entanglement system and after operating with t...
common-pile/stackexchange_filtered
Python filter function usage I'm trying to understand how filter() function works in Python. Namely, Python 3. I know about list comprehensions, and they work as they should in my example, I just want to understand how filter() function works. Suppose I have a list of integers I'd like to filter once, and then filter o...
common-pile/stackexchange_filtered
Moving a Domain Controller VM from one server to another I have a Hyper-V Virtual Machine that is a Domain Controller, specifically it is our main DC and holds all 5 FSMO roles. If I wanted to move this Virtual Machine to another VM Server than the one it is on currently, is it as simple as taking the .VHD, moving it t...
common-pile/stackexchange_filtered
OpenRasta overwriting Content-Length header in HEAD responses I'm creating a pretty simple HTTP service using OpenRasta. For HEAD requests, the HTTP 1.1 spec states that HEAD requests should have the Content-Length set to "the size of the entity-body that would have been sent had the request been a GET" (section 14.13)...
common-pile/stackexchange_filtered
Flow of data between Angular 2 and Spring I am about to start my first real project for work (new grad), and I was tasked with creating an internal address book for the company (displaying name, phone extension number, email etc). My mentor told me that I need to pull the address data from Active Directory. He also to...
common-pile/stackexchange_filtered
rewrite the seqneighjoin function in matlab I have the task to rewrite the seqneighjoin function in matlab by adding the frequency of all the sequences. After searching, I understand that this function returns a phylogenetic tree object obtained by seqences neighbor joinn method from the wiki http://en.wikipedia.org/wi...
common-pile/stackexchange_filtered
Redirect to the same path in a different domain How can I redirect all https://www.A.net/Page.html requests for some page Page.html to the corresponding page on another domain https://www.B.net/Page.html via the https://www.A.net/404.html? Github/Gitlab Pages redirect all Page-not-found errors to the latter. Is it poss...
common-pile/stackexchange_filtered
Blocking Apache POI While Creating XSSFWorkbook I am using apache POI 3.7 in JDK 1.5 Environment and -Xms256m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=1000M as JVM arguments. I wrote the code to read xlsx file like this, File file = new File("C:\\D\\Data Book.xlsx"); InputStream inputStream = new FileInputStream(file)...
common-pile/stackexchange_filtered
#DEBUG Preprocessor statements in ASPX page I'm trying to use a preprocessor directive in an ASPX page, but the page doesn't recognize it. Is this just something I can't do? Background: I'm trying to include the full version of jQuery in DEBUG mode (for, well, debugging =) ), and the minified version for release. I tri...
common-pile/stackexchange_filtered
How should I make the "close to".. "near by" I would like to make add a feature to my search field. So you can write Close to: Copenhagen (example). It should then take like 5 km range around /inside Copenhagen (copenhagen is capital of denmark), and get the addresses that are within, and show them as results.. So it t...
common-pile/stackexchange_filtered
Number of ways of putting n indistinguishable balls into k indistinguishable groups. http://www.campusgate.co.in/2011/10/permutations-balls-and-boxes-related.html Can someone explain how the recurrence table for Case 4 has been obtained ? The first problem is that the table contains three errors: the correct total for...
common-pile/stackexchange_filtered
Set score for each correct option I am doing quiz app and I need to make the last step but I do not know how. I have array where all data contains, and there is correct option for each array. In the function I compare if index of button is equal to correct option and if button is not clicked, I add 1 point. But when I ...
common-pile/stackexchange_filtered
JSON show actual data based on IDs http://jsfiddle.net/Zyjwb/5/ How can I display actual names of owners, based on the specified id, inside infowindow for each house/condo? So, If a house element has 1 and 3 listed inside owners attribute - turn them into Jim and Peter when infowindow is opened for each marker. The ...
common-pile/stackexchange_filtered
Linear Algebra and Graph theory I haven't done any linear algebra for a long time and currently reading about linear algebra in graph theory and had a few queries. So i'm looking at the definition of a vertex space. Firstly let $G=(V,E)$ be a graph with $n$ vertices and $m$ edges. It then states that "The vertex spac...
common-pile/stackexchange_filtered
React setState is not updating state with value from firebase database I'm trying to read a value from firebase database to check if the currently logged in user is an admin or not, but setState is not updating the isAdmin state. constructor(props) { super(props); this.state = { isAdmin: false }; } ...
common-pile/stackexchange_filtered
Function with union type as argument accepts object which is combination of two types Here I get an error which I understand interface Animal { name:string } interface Human{ firstName:string } let test = (param: Animal )=>{ if("name" in param) return param.name return param.firstName } console.log(test(...
common-pile/stackexchange_filtered
Why Python Multiprocess class doesn't change the attribute? #!/usr/bin/env python from multiprocessing import Process class Signprocess(Process): """docstring for SignThread""" def __init__(self): super(SignThread, self).__init__() self.result = False def run(self): self.result = True print 123...
common-pile/stackexchange_filtered
Improving performance of a generic method for updating batch and to sync with database and cache I'm writing method to update batch using entity manager (Eclipselink as a provider). One approach I found here: Batch updates in JPA (Toplink) and here: JPA - Batch/Bulk Update - What is the better approach?. But I'm not us...
common-pile/stackexchange_filtered
Python Tkinter switch between two buttons I am trying to switch between two buttons with tkinter. I have two buttons which trigger the functions. With changeOne in only want to show ModusAButton and delete ModusBButton. And the opposite for changeTwo. I got this error message: _tkinter.TclError: bad window path name "...
common-pile/stackexchange_filtered
Retrieve specific database cell using Intent I have returned to writing code after a long absence and after a few days am still having problems with my code. I have a prepopulated database in my app that contains two tables. The first is used for the first activity (AllEnglandList) and brings up a list. On clicking a...
common-pile/stackexchange_filtered
Flex 4.5 - how do you detect screen size to center an image on a mobile device? Tried stage.stageWidth and stageHeight on applicationComplete, but for some reason the actual numbers returned do not seem to be accurate - the image always appears off-centered (stageWidth/2 - imageWidth/2). How do you determine the mobil...
common-pile/stackexchange_filtered
Mixins, call_to_user_func not finding the function So I have a class which is designed to "mix" other classes in, via what i call a "bridge" class. So you have your sample classes for example: class A{ public function __construct(){} public function hello_a(){ echo "hello A"; } } class B{ public function ...
common-pile/stackexchange_filtered
Error while opening a file inside a dll I am opening a file inside a dll code. I am using fopen. The pointer returned by fopen is NULL. What am I doing wrong? pFile = fopen("C:\\Users\\bruce\\Desktop\\log.txt","w"); I run the code with the debugger. The file gets created but the pointer returned by fopen is NULL whic...
common-pile/stackexchange_filtered
reproducing kernel hilbert space notation I'm trying to understand reproducing kernel Hilbert spaces (RKHSs) from scientific papers, however I don't find any gentle introduction. However, my main problem, at the moment, seems to be to understand the used notation. I understand that a kernel $k$ is a function which maps...
common-pile/stackexchange_filtered
3 questions over the function $f(x_0,x_1,x_2)=\frac{1}{1+x_0+x_1+x_2}(x_0+x_1,x_1+x_2,x_2+x_0).$ Let $D=\{(x_0,x_1,x_2)\in\mathbb{R}^3|\ 1+x_0+x_1+x_2 =0\}$ the plane in $\mathbb{R}^3$ passing for the points $(-1,0,0)$, $(0,-1,0)$, $(0,0,-1)$ and let $E=\mathbb{R}^3-D$ its complement. Note that $E$ is a open set and is...
common-pile/stackexchange_filtered
Scraping Data with Scrapy in Python I want to help my friend to analyze Posts on Social Networks (Facebook, Twitter, Linkdin and etc.) as well as several weblogs and websites. I have several questions and try to categorize them: When it comes to Scraping Data, my idea is scraping data on social media via APIs and for s...
common-pile/stackexchange_filtered
Switch statement with numeric values Trying simple switch with random number. It does not seem to work. Always getting to default case. var x = 0; x = (Math.random() * 10 + 1); switch(x) { case x >= 5: console.log("the number is bigger than 5"); break; case x <= 5: console.log("the number is smaller ...
common-pile/stackexchange_filtered
Enhanced for loop performance I had an argument with my friend regarding this. Consider the below snippet, for(i=0; i<someList.size(); i++) { //some logic } Here someList.size() will be executed for every iteration, so it is recommended to migrate this size calculation to outside(before) the loop. Now what ha...
common-pile/stackexchange_filtered
Publishing a Spring Boot application on a production server and managing updates I would like to ask about the experience of a production run of a Spring Boot web application, with embeded Tomcat, based on Maven or Gradle. So far I have been working with a vanilla Spring application, deployed on Tomcat, without depende...
common-pile/stackexchange_filtered
Array to saved photos always returned as empty I am trying to create an array of all images from the saved photo album that match a certain criteria. Here is a simplified code for it. I add the photos to myImages array and confirmed via the "Added Image" log that the right images get logged. However the array returned ...
common-pile/stackexchange_filtered
What should we do about Kali Linux questions? It's well-known that we have a quality problem in the kali-linux tag. Some statistics corroborate this perception (though not to the extent that I'd expected): 16.4% of the kali-linux questions have a negative score, compared with 3% for the site as a whole. 39.6% of the k...
common-pile/stackexchange_filtered
Why does width of confidence interval increases with trend I am trying to understand bayesian statistics. I am familiar with machine Learning and the way that best fit is made through loss function. I am stuck with the concept of uncertainty in coefficients. Suppose I have a simple model, where y=trend*x, and the trend...
common-pile/stackexchange_filtered
The seriousness of global warming/ climate change? Why is such an emphasis placed on sea level rise?? As this can be devastating in itself, it can be looked at as a great economic opportunity to put people to work preparing our coastal areas for the inevitable, but slowly progressing future situation. Isn't the disrupt...
common-pile/stackexchange_filtered
$\{X_n\}$ are i.i.d and nonnegative r.v.s such that $\mathbb{E}X_1=+\infty$, prove that $\frac{1}{n}\sum_{i=1}^n X_i \to +\infty$, a.s. I have $\mathbb{P}(\lim_{n\to\infty}\frac{1}{n}\sum_{i=1}^n X_i=+\infty)=0 \ \mbox{or} \ 1$, according to the Kolmogorov 0-1 law. I want to use the method of contradiction: Suppose $\f...
common-pile/stackexchange_filtered
backbone: How to get a particular row from the collection by username rather than id? How can I get a particular row from the backbone.collection by username rather than id? I think the most common case, site.come/#edit_contact/5 But I need to get the item from the collection by username/ email or code, site.come/#edi...
common-pile/stackexchange_filtered
Why do Browsers in their TLS1.3 Client Hello do not request for CCM ciphers? As per TLS 1.3 RFC 8846, following 5 ciphers are supported. TLS_AES_128_GCM_SHA256 TLS_AES_256_GCM_SHA384 TLS_CHACHA20_POLY1305_SHA256 TLS_AES_128_CCM_SHA256 TLS_AES_128_CCM_8_SHA256 But I noticed none of my tested browsers request...
common-pile/stackexchange_filtered
Possible reasons for loss of power, engine shaking, and smell of liquid fuel (not burning)? The car (Renault Megane 1998 1.6e hatchback) lost power (about 500rpm in a bursty rhythm) after I re-ignited on a traffic light, the engine started shaking, and I could smell liquid fuel. There was no obvious place where the fue...
common-pile/stackexchange_filtered
Cannot run Django heroku app locally on Windows So, I want to test my app locally, but something goes wrong. After installing virtualenv, activating it, installing requirements.txt and running collectstatic I try to run app with heroku local web -f Procfile.windows I get [OKAY] Loaded ENV .env File as KEY=VALUE Format...
common-pile/stackexchange_filtered
Determine how much a CALayer has rotated I have a program in which a CALayer has to be rotated to certain value. How can I determine the current rotation of a CALayer? I have a UIRotationGestureRecognizer that rotates the layer: - (void)handleGesture:(UIGestureRecognizer *)gestureRecognizer { if (gestureRecognizer ...
common-pile/stackexchange_filtered
How did Arthurian Legends get to Earth? In Stargate, the Legends of King Arthur happened, but it is clear that Camelot and the various lands were on other planets got there easily via a Stargate on the planet that Camelot is on. That's fine, but Camelot and all that supposedly happened around 1000 or less years ago whi...
common-pile/stackexchange_filtered
MySQL query get total of payments for everyday of the month until current date I'm trying to build a MySQL query to get the total amount for every day of the month until the current date. I'm not sure if it's possible with just one query. It would be something like: Today's date = '2021-02-24' Select SUM(CASE WHEN...
common-pile/stackexchange_filtered
Why does the documentation say that final variables can be changed? The documentation is confusing me, and I was hoping to get a little help. For the final KW it says seemingly contractory things: **Final variables can only be assigned a value once,** either when you declare a variable or in initialization code. You mu...
common-pile/stackexchange_filtered