text
stringlengths
70
452k
dataset
stringclasses
2 values
Directory size calculation difference I need to get the size of directory in terminal for signing purposes. I'm using following command: du -s /path/to/dir I'm multiplying the result by traditional UNIX block size (512 bytes) and get actual directory size in bytes. However, the Finder's "Get Info" dialog window shows ...
common-pile/stackexchange_filtered
show Done button on number pad for multiple UITextFields @Luda's answer is a great answer, but I got stuck when I needed to use it for multiple text fields so I edited it as the following: First, I get IBOutlets for each one of my textFields, say: textField1, textField2 Then I edited the code as - (void)viewDidLoad { ...
common-pile/stackexchange_filtered
controlling the number of edges in a "object in curve" (Sverchok) How I might control the number of edges in the "X" direction for this surface? The edges in "Y" axis are controlled by the "Float series count" Everything nodes :D Yes! I'd do it this way, it gives you separate control over the 0..1 range between U an...
common-pile/stackexchange_filtered
Creating list from predicate I have a predicate as: delta(q1,a,q2). delta(q1,b,q3). delta(q2,a,q4). delta(q2,a,q3). delta(q3,a,q1). and I want to convert them to list like this: nfatodfa([(q1,a,q2),(q1,b,q3),(q2,a,q4),(q2,a,q3),(q3,a,q1)],L) How can I do that? I think what you might want to use is findall/3 to constr...
common-pile/stackexchange_filtered
What does jerry means here by the line,and to whom? It's a clip from a cartoon Rick&Morty, with the link down below. After Jerry (Morty's father) stroke struck the monster (don't exactly know what that's called) down with a poker, he said this: Well, look where being smart got you. What does it mean? to whom he said...
common-pile/stackexchange_filtered
The team should be able to send an email to the Underwriter with related recommendations Create a Custom workflow assembly for Audit entity Look for Coverholder asscociated with Audit record. Find all Binder Sections where Expiry Date is not greater than todays date plus 6 months. Retrieve all Underwriter Contacts rec...
common-pile/stackexchange_filtered
What is equivalent of taskset on powershell? What is equivalent of taskset on powershell ? I mean if you don't know what is taskset, the command to start a process/application on dedicated pool of CPU cores. I didn't find anything similar, does it exist that possibility ? sorry for so basic question but I m out of Wind...
common-pile/stackexchange_filtered
Selecting rows where datetime column is a certain day I'm trying to write a SQLite query in Android where I select all rows from a table where the day component of the datetime column (stored as ISO 8601 strings) equals a given day. Basically, I want to select all rows with a certain date, disregarding the time. How ca...
common-pile/stackexchange_filtered
Does prefetching work with Service Bus Trigger? I have a Durable orchestration client which is Service Bus Topic triggered. [FunctionName("ServiceBusTrigger")] public static async Task ServiceBusTrigger( [ServiceBusTrigger("topicname", "subscriptionname", Connection = "MyServiceBusKey")]string mySb...
common-pile/stackexchange_filtered
Linq Expression works on Desktop but errors on Server This is the strangest thing I've ever seen, but hopefully someone else has because I am clueless. I have the following code: DataTable dt = (DataTable)dataGridView1.DataSource; List<InvoiceItem> itemList = new List<InvoiceItem>(); int listSize = 30...
common-pile/stackexchange_filtered
Xamarin iOS app with WKWebView not allowed by Apple I already made everything that google says, even some stackoverflow posts... But, Apple does not allow my app. I created a Custom Renderer, but it makes reference to WebView anyway. So, the app is not allowed. Is there someway to use the WKWebView without any referenc...
common-pile/stackexchange_filtered
Timer is not counting down in Fixed position I am developing one game app in HTML5 for android devices. In that game I am using simple count down method with setInterval method and I am displaying that counter in timer div. When I make div element position is fixed then count down is not running whenever I touched the ...
common-pile/stackexchange_filtered
rmarkdown encrypted output loses plotly and leaflet plots I want to generate an Rmarkdown document with a password. One possible solution is to encrypt the html output with encryptedRmd. I tried this: --- title: "test" author: "John Doe" date: "18/11/2020" output: encryptedRmd::encrypted_html_document: css: them...
common-pile/stackexchange_filtered
Is it possible to talk about the distance of two random variables? Suppose that $X, X^\prime$ are two random variables with the same distribution $\mathcal{N}(\mu, \sigma^2)$. Is there anything that we can say about the "distance" between the two random variables? e.g., $\|X - X^\prime\|$ The thing is that I don't know...
common-pile/stackexchange_filtered
datatable loop performance I have a question about loop DataTable in C# I have a DataTable has about 20.000 rows and 60 columns I want to write a SQL query to insert all of data in DataTable to database I'm using My Sql this is my SQL syntax: "Insert into a values (...), (...), (...), ..." "(...)" is all data in one ...
common-pile/stackexchange_filtered
List distinct values based on a condition List Distinct Value in Alphabet Column where all Alphabets that has RID 101 only Shall be eliminated from the list. RID Alphabet 100 A 101 B 102 B 101 C 104 D 101 D 106 E 102 F 108 C 108 A 104 E Output Column shall be Alphabet A E F ...
common-pile/stackexchange_filtered
Google chrome does not prompt authentication box inside an iFrame I have a website where iFrames are auto generated inside a webpage to show the video from IPCAM, but the IP camera is secure. Google chrome does not prompt the authentication box inside the iFrame, I googled it but could not find the solution. See here I...
common-pile/stackexchange_filtered
Include Images with Reply in Mail? In Mail (connected to my work Exchange server, if that matters), when I forward an email which contains inline images they are preserved. However, if I reply to the email then they are not preserved. They are instead replaced with something like this: <image001.jpg> Is there a way ...
common-pile/stackexchange_filtered
title on the list activity my question is how i can add a title on ListActivity I used the following code final boolean customTitleSupported = requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); if ( customTitleSupported ) { getWindow().se...
common-pile/stackexchange_filtered
How to rename a file on the SFMC FTP? I am looking for a way to rename a file on the SFMC FTP using an automation. I have tried using the substitution strings %%FILENAME_FROM_TRIGGER_BASE%% and %%BASEFILENAME_FROM_TRIGGER%% with the "enhanced move and copy" data extract. Sadly it didn't do anything. Is there a way to d...
common-pile/stackexchange_filtered
python call function, when I click on button I want to call the function "function3", when I click on button b1 (in init). Thank you. class myClass(): def __init__(self): b1 = Button(self.ram2C, text="Aaa", command=???function3???) def function1(self, event=None): command1 def functio...
common-pile/stackexchange_filtered
My keyboard on Latitude D520 stopped working I had Win 7 on the machine. The keyboard stopped working after being unused for 3 months. I installed Win10 without a problem. Still the same problem. I have an external keyboard, wireless. Same problem. I tried FN-keys and Num-lock key. No change. What is next? Since it is ...
common-pile/stackexchange_filtered
Ionic routing breaks when navigating to url twice When navigating through a page stack i've discovered that when i visit the same page twice the <ion-back-button> does not behave as expected. Here is a graphic of the issue. It seems that Ionic does not navigate back from the last data of Page 1 but rather of the first...
common-pile/stackexchange_filtered
Problems accessing the Tomcat directory I have problems accessing the Tomcat directory, mkdir says file exists but when I try to change directory is says no such file. Seems like a weird contradiction. Please help me with this. Spoorthys-MacBook-Pro:Library spoorthy$ mkdir Tomcat mkdir: Tomcat: File exists Spoorthys-Ma...
common-pile/stackexchange_filtered
Using a variable inside the Math.random function I am working on a piece of code which make an array full of numbers with the amount of numbers i want, but instead of this beeing static with 16 numbers i tried to change 16 to a variable but the math.floor/randome cant read it it only spits out Not a number wierdly enou...
common-pile/stackexchange_filtered
Windows Service will not start as Local User EDIT 2: I now believe this is an issue with the machine I'm attempting to run the service on. I tried moving the service to a different machine that is setup similarly and the service was able to start successfully even as a Local User. Now I just need to figure out what's d...
common-pile/stackexchange_filtered
Sort array of objects by nested property with lodash I have an array of objects like this [{ ‘a’: { id: 4 }}, { ‘b’: { id: 3 }}, { ‘c’: { id: 2 }}, { ‘d’: { id: 5 }}] I want to know with lodash the sorting of the objects according to the id. I would expect to receive something like [‘d’, ‘a’, ‘b’, ‘c’]. I tried to sear...
common-pile/stackexchange_filtered
How do I ask LaTeX to exactly fill up a page? I understand that I can control interline spacing in LaTeX in a number of ways. The commands like \baselineskip, \baselinestretch, \linespread come in handy in controlling the interline spacing. Each has its own speciality and circumstances of usage, as we can find in thes...
common-pile/stackexchange_filtered
Cool White LED bulbs: Are they "full-spectrum"? I don't have much knowledge on LED lights and find the technology quite fascinating (yes, I know, it is not that new!) I have read that in order to create "white" light, LEDs actually need to emit light from all spectrums. My question(s): How do LED light bulbs (cool whi...
common-pile/stackexchange_filtered
Backbone.js model not passing to view I'm starting out with backbone.js building my first project with backbone-boilerplate. I have a module named Navitem with a view called Sidebar: Navitem.Views.Sidebar = Navitem.Views.Layout.extend({ template: "navitem/sidebar", tagName: 'ul', beforeRender: function() ...
common-pile/stackexchange_filtered
Empty SDL2 window taking lots (40%+) GPU to render? I've been trying to learn how to use SDL2, and am trying to follow the tutorials here for that. From example 7 (texture loading / hardware rendering), I've put together this stripped down example. As far as I can tell, the code is only calling SDL_RenderClear() and SD...
common-pile/stackexchange_filtered
A UI/UX developer with color-blindness. Good or Bad idea or maybe a challenge? I'm working as a front-end developer. I used to work on JavaScript technologies. But when it comes to UX and about choosing colors and stuff which I'm not able to understand well due to color blindness. I wanted to create good UI designs wi...
common-pile/stackexchange_filtered
Trigger click after time delay with jQuery I would need to trigger a pop by replicating a click event after 10 sec using the following HTML with jQuery only once for the user. Any click trigger snippet that might do? and if possible to set cookie in the code so not to show the pop again for the same user? thanks. <a hr...
common-pile/stackexchange_filtered
Parsing a string representing a float *with an exponent* in Python I have a large file with numbers in the form of 6,52353753563E-7. So there's an exponent in that string. float() dies on this. While I could write custom code to pre-process the string into something float() can eat, I'm looking for the pythonic way of ...
common-pile/stackexchange_filtered
UIStackView resizing my views Im making a custom keyboard, and wanting a label and a textField centered in the space left over the keyboard, I figured the proper way would be to incorporate them in a UIstackView, and then centering the stack. However, i'm having som issues with the stack resizing my textField, causing ...
common-pile/stackexchange_filtered
How can I keep the visitor on an empty custom post-type archive page in WordPress and prevent archive.php from loading? My WordPress post-type archive page renders archive.php when there are no posts. When my custom post-type has a pubished post, the archive-post-typeX.php is loaded correctly. However, when there are n...
common-pile/stackexchange_filtered
Is there an example of a group with cardinality $\aleph_1$? There are many simple examples of groups with infinite cardinality which are known outside of set theory, such as $\mathbb Z$, which has cardinality $\aleph_0$, and $\mathbb R$, which has cardinality $2^{\aleph_0}$. Assuming the continuum hypothesis, $\mathbb ...
common-pile/stackexchange_filtered
Swiftui Button image not changing on clicking until i click on another button I know someone has asked a similar question already, but I still haven't solved the problem. I have a HStack with 2 buttons that changes image upon click. The first button does not change on clicking until I click the other button, the second...
common-pile/stackexchange_filtered
How to implement text auto-completion of commands using dbgeng.h? I am working on a front end for windbg which uses the pretty well documented dbgeng.h API. However there is some functionality that I don't know how to implement, such as tab auto-completion. I believe what I need are the following APIs: IDebugAdvanced3:...
common-pile/stackexchange_filtered
How do I create a Stored Procedure if it doesn't exist in TSQL I have tried this: if object_id('a_proc22') is not null CREATE PROCEDURE a_proc22 AS SELECT 1 go but it gives me a syntax error. But this seemed to compile: if object_id('a_proc22') is not null EXEC('CREATE PROCEDURE a_proc22 AS SELECT 1') go Why is the f...
common-pile/stackexchange_filtered
How to determine the longest timeperiod and exclude other rows in Excel or R? In my dataset I have information of the ZIPCODE of 600K+ ID's. If ID's move to a different addressess, I want to determine at which zipcode they lived the longest and put a '1' for that specific year in that row (no need to combine rows as I ...
common-pile/stackexchange_filtered
Can I map IP addresses to allow 2 site to site VPNs with same IP range using Microsoft TMG I have a Microsoft TMG server with a number of site-2-site VPNs which all have different IP address ranges. Now a client has asked for another site-2-site VPN but their IP range clashes with an existing range. Is it possible to ...
common-pile/stackexchange_filtered
:after pseudo element is not showing up I have simplified my question to this: HTML <div class="dropbox"> </div> CSS .dropbox { border:2px solid #ff0000; height:200px; width:50%; margin:auto; } .dropbox:after { content:''; width:10px; height:10px; background:#ff0000; top:100%; l...
common-pile/stackexchange_filtered
future got attached to different loop Task <Task pending name='Task-11' coro=<Queue.get() running at C:\Users\Administrator\anaconda3\lib\asyncio\queues.py:166> cb=[_release_waiter(<Future pendi...15C1F7220>()]>)() at C:\Users\Administrator\anaconda3\lib\asyncio\tasks.py:416]> got Future <Future pending> attached to a ...
common-pile/stackexchange_filtered
Identify waterside building / skyline Among a friend's photos on Facebook I spotted an interesting skyline with a distinctive waterside building that looks like it's just being completed: I've travelled to over fifty countries and I can't tell where this is. Can somebody identify the city and/or the building? (Yes I k...
common-pile/stackexchange_filtered
Setting window.innerHeight Can someone please explain me why does setting height viewport property: <meta name="viewport" content="width=480px, height=120px"> doesn't work? The window.innerWidth reports 480px BUT window.innerHeight 210, not just 120px! As so what's the point in setting height property? What is the wid...
common-pile/stackexchange_filtered
Random Presentation Topic Picker returns null Today my teacher asked me to program a random presentation topic picker for him. The idea was, that the student goes to the pc and clicks on the message Dialog which then randomly generates a number between 1 and the max index of the topics and then prints the according top...
common-pile/stackexchange_filtered
Add header to graphql response I'm building a graphql server with Spring and graphql-spring-boot-starter. To solve a very specific issue, I'd like to add a HTTP header to the graphql HTTP response. How can I achieve that? You can add the add the headers in ResponseEntity. public ResponseEntity<Object> callGraphQLServi...
common-pile/stackexchange_filtered
how to add custom callback URL to Coinbase I'm using Coinbase service to dealing with Bitcoin gateway. I know i can put callback url in the merchant settings page of my account. But i need to update it in each order. It can be done using API. but it's so boring. I need something like this : Adding data-callback="custo...
common-pile/stackexchange_filtered
Use default parameter for templated function I have two functions which look very similar to me : template <typename Predicate> vector<int> FindTopItems(const string& query, const Predicate& predicate) const; vector<int> FindTopItems(const string& query, ...
common-pile/stackexchange_filtered
What is the binary operations in $\mathbb{D}(n)$ I am using Joseph A gGallian for group theory.I came across something named Dihedral group $\mathbb{D}(n)$. The author uses only Caley table and does not describe the binary operation of this group algebrically.I searched on internet and came across different defnitions ...
common-pile/stackexchange_filtered
How to launch PHP on Atom? While changing file from .html to .php extension it shows me message that there is no PHP interpreter found at php. And it is not about script support it is should launch on the browser. Clicking the "the set PHP" button it shows me the ide-php package. And I see no way how to set the Path. A...
common-pile/stackexchange_filtered
Binding Gridview With Different Names Regardless of Property names public class Emp { public int ID { get; set; } public string Name { get; set; } } List<Emp> lstEmp=new List<Emp>(); lstEmp....
common-pile/stackexchange_filtered
Common mistakes: subject-verb agreement The counselor recommended that he go to a community college. I found the above example here. What is the context and why not goes after he? Certain verbs in English work like that in the third person. Those verbs of advice are: recommend, suggest and advise. In the simple pres...
common-pile/stackexchange_filtered
Merge dataframes including extreme values I have 2 data frames, df1 and df2: df1 Out[66]: A B 0 1 11 1 1 2 2 1 32 3 1 42 4 1 54 5 1 66 6 2 16 7 2 23 8 3 13 9 3 24 10 3 35 11 3 46 12 3 51 13 4 12 14 4 28 15 4 39 16 4 49 df2 Out[80]: B 0 32 1 42 2 13 3 24 4 3...
common-pile/stackexchange_filtered
How to show only a certain part of the entry title? Working on a project that I'm running into a snag about... I have a page title using the_title() ... that has a location in the title such as this: "Adventure Dental - Colorado Springs, CO" However, further down on the same page, that title needs to be u...
common-pile/stackexchange_filtered
cv2.face' has no attribute 'LBPHFaceRecognizer I am creating a face recognition system using Python and idle on these versions:Python 3.6.1 :: Anaconda custom (64-bit),Anaconda 4.4,idle When I try to train the face recognizer I am getting an error like: AttributeError: module 'cv2.face' has no attribute 'LBPHFaceRecogn...
common-pile/stackexchange_filtered
Black Jack Probability Theoretical vs Simulation I am comparing the probability of winning blackjack by theoretically calculating it with probability equations and running realistic simulations in matlab. If I assume 3 decks are used, dealer sits at 18, and only the player's cards are considered in calculations, I ca...
common-pile/stackexchange_filtered
Problem burning mp3s to CDs I am having a problem writing mp3s to CDs that will play in my car CD player. (It is mp3 capable.) I have used Verbatim CD-RWs successfully in the past to write mp3s that play in my car. I have used Brasero,XfBurn, and K3B. And am writing it as a data disk because I can get more songs on it....
common-pile/stackexchange_filtered
JASIG External Redirect in AuthenticationHandler I'm at the end of my rope here and figure someone here might be able to help me. I'm working with the newest versions of JASIG CAS and Java and I've hit a wall. I have an implementation of an AuthenticationHandler and I'm trying to redirect to an external URL on authenti...
common-pile/stackexchange_filtered
php + sql server login & sessions Hello i am trying to create a login and session script with php to use for sql server and i cannot get it to work, it seams like no mater what i put into the login form aslong as it validates it will work, i cannot figure out what is wrong with the code however, i've just resently star...
common-pile/stackexchange_filtered
Is there a way to programmatically determine how long a conference room resource has been available for a given time slot? For example, let's say a conference room was booked for a 12-1pm meeting. At 9am that same morning, a user cancelled that meeting, freeing up the conference room. Is there any way to programmatical...
common-pile/stackexchange_filtered
Dreamweaver Regex - Unmatched ) in regular expression The Issue The issue I am tackling is that past developers of some code I am working on set variables like $_GET[name] or sometimes like $_GET['name']. Trying to make the code uniform, I want to make all of them like $_GET['name'] Attempted Solution In a custom Dream...
common-pile/stackexchange_filtered
Git clone fails with "SSLRead() return error -980641" I'm trying to clone a project from an open git repo. I got this error. I was trying to find out the reason and found that. Running brew install git --with-brewed-curl --with-brewed-openssl got this: curl: (56) SSLRead() return error -9806 Error: Failed to download ...
common-pile/stackexchange_filtered
Angular Variable undefined result I've been trying to solve this my self but i think i need help. It's been hours of searching for a solution but i can't seem to solve this myself. I'm learning asp.net core 2.2 web api. And i'm following a tutorial i found on youtube The webapi works using PostMan. I was able to save i...
common-pile/stackexchange_filtered
RTC initialisation in an MCU - why use a global callback The code below is related to the initialization of an RTC in an MCU. Would anybody know the rational for passing NULL to rtc_init() and then setting a global callback global_rtc_cb equal to it. Why would you use a global callback at all when there is an other f...
common-pile/stackexchange_filtered
face tracking or "dynamic recognition" What is a best approach for face detection/tracking considering following scenario: when person enters in scene/frame it should be detected and recognized in every next frame until he/she leaves the scene. also should be able to do this for multiple users at once. I have experien...
common-pile/stackexchange_filtered
Contact functionality for Mailing's I am evaluating code in my Salesforce Instance. I stumbled across some code in which is on Contact. With that said I am unsure of what MailingStreet, MailingCity, MailingPostalCode, MailingState and MailingCountry is... I found that these fields can be found in the Developer Console ...
common-pile/stackexchange_filtered
How to test React ErrorBoundary New to React, but not to test applications. I'd like to make sure every time a component throws a error the ErrorBoundary message is displayed. If you don't know what I mean by ErrorBoundary here is a link. I'm using Mocha + Chai + Enzyme. Let's say we need to test React counter example ...
common-pile/stackexchange_filtered
Console Application return value I am New in console application .I Need to pass two command line arguments to the console application from a web application and get the returned result from console app. here I tried in we Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Di...
common-pile/stackexchange_filtered
How many translation units in one module? Does a module with multiple source files (.cpp) have one or multiple translation units? My understanding is that every single source file (.cpp) will be its own translation unit unless it is included, and #pragma onced (which I guess is a malpractice), but I don't know how that...
common-pile/stackexchange_filtered
WPF application difference in behavior for touch versus mouse/stylus I have an application that shows the user a message through a messagebox. After the user clicks okay, it restores the focus to an ItemsControl above in the visual tree. The weird behavior I'm running into: using your finger, you have to press twice ...
common-pile/stackexchange_filtered
Multithreaded quicksort or mergesort How can I implement a concurrent quicksort or mergesort algorithm for Java? We've had issues on a 16-(virtual)-cores Mac where only one core (!) was working using the default Java sorting algo and it was, well, not good to see that very fine machine be completely underused. So we w...
common-pile/stackexchange_filtered
Area under curve and its volume as solid of revolution I would like to know if there is some more "elegant" way to write these 3 functions. Any tip or idea is welcome. open System module Calculus = let area f a b = let dx = 0.001 seq { for x in a .. dx .. b -> (f x) * dx } |> Seq.sum l...
common-pile/stackexchange_filtered
Error in R: x must be numeric i try to write a program in r "generate a random sample from any distribution using function". but it shows "Error in hist.default(xbars) : 'x' must be numeric" my program is here sim.clt <- function(n, ran.func,..., simsize,...) { xbars<-vector() for(i in 1:simsize=simsize) { x<...
common-pile/stackexchange_filtered
mac term + tmux, send left ctrl + cmd + up/down arrow keys I recently started using a mac at work and I migrated over my dotfiles which work great on a linux setup. I have my Tmux shortcuts to resize the current pane. Which works fine for left right arrow, but up/down arrow are not working. Seams like max os is swallow...
common-pile/stackexchange_filtered
Keyboard and Bluetooth killed when establishing FTDI USB Serial connection Okay, when I establish a connection using LabVIEW or Python to my Arduino Duemilanove (ATMega328) either my Bluetooth or keyboard is killed. I am simply trying to establish a connection to /dev/cu.usbserial-A9007UZh (or tty.usbserial-A9007UZh,...
common-pile/stackexchange_filtered
Why is VPN not a protocol? Is VPN a layer 3 concept? says "VPN is not a protocol". Is VPN an application instead? Why is VPN not a protocol? How can I tell if something is a protocol or not? Thanks. A protocol is a set of rules for how to accomplish something, and network protocols are sets of rules for how to commu...
common-pile/stackexchange_filtered
Knowing one $0$ of a quadratic trin., can I determine some necessary ( or sufficient) condition regarding the second root, in terms of the first one? Suppose I am given this equation : $x^2 - 12x - 28$ = 0. Using the rational root theorem, I find that the possible rational roots are ( if I am correct): $$1/1, 2/1,7...
common-pile/stackexchange_filtered
DB::raw('MAX gives only values from 1 to 9 This function gives only values from 1 to 9 and i don't know why. I've got column proformnumber with numbers from 1 to 10 but this function gives 9. When i deleted some rows it worked correctyly for numbers less than 10. $autoyear = date('Y'); $automonth = date('m'); $autonum...
common-pile/stackexchange_filtered
Google App Engine and SAML (Okta) We're trying to setup a web app (django) in Google App Engine connected via SAML to our idP, Okta. It has to be done as a Custom Flexible App because of a binary requirement, making it basically a container deployment. Running it locally with gunicorn (including SSL configuration) work...
common-pile/stackexchange_filtered
Answered: With what probability do $4$ points placed uniformly randomly in the unit square of $\mathbb{R}^2$ form a convex/concave quadrilateral? I have this problem that I've struggled with for a while. If you place $4$ points randomly into a unit square (uniform distribution in both $x$ and $y$), with what probabilit...
common-pile/stackexchange_filtered
Prove that Petersen's graph is non-planar using Euler's formula Prove that Petersen's graph is non-planar using Euler's formula. I know that $n - m + f = 2$. But should I count $f$ and prove that the summation does not equal to two or solve to get $f =7$ and argue that it is impossible??? We know the Petersen graph...
common-pile/stackexchange_filtered
how we can edit stored procedure in sql*plus so that i can correct it create or replace procedure minvalue(x in number,y in number,z in number) as begin if x< y then z := x; else z:= y; end if; end; / compilation error. in this code, x and y are parameters which takes values when user run this procedure and z...
common-pile/stackexchange_filtered
Ajax refreshing page in MVC I'm using Ajax to pass some data to a Controller and save to database, and it works, the issue that is refreshing the page with every POST and I need to prevent that. Ajax: function AddComment(commet, auto) { $.ajax({ type: "POST", url: '/bff/SaveComment', data: {...
common-pile/stackexchange_filtered
Can every positive rational number be written as the finite sum of distinct reciprocal primes? Inspiration for this question: Can every number be represented as a sum of different reciprocal numbers? My question: Can every positive rational number $\frac{m}{n}\in\mathbb{Q}$ be written as the finite sum of distinct (i.e...
common-pile/stackexchange_filtered
Difference of "Training Data Set", "Testing Data Set" and "Validation Data set" I have 250 human face images and with those I am going to train the model. for the sake of convenience, what I am going to do is to pick first 10 images and use leave-one-image-out cross validation to train the model so that each image ge...
common-pile/stackexchange_filtered
Cast from '[Any]?' to unrelated type '[String : String?]' always fails issue I use this code to store app settings via UserDefaults: var appSettings: [String: String?] { set { // On attempt to set new value for the dictionary UserDefaults.standard.set(newValue, forKey: "AppSettings") UserDefaults.s...
common-pile/stackexchange_filtered
How do I use a Branch Template in Sitecore? I have a "Default Template" consisting of a bunch of sublayouts, most importantly the "ContactForm" sublayout. I want to create a Branch Template of the Default Template so that I can change the ContactForm sublayout to a "PressForm" sublayout. What I'm struggling with is exa...
common-pile/stackexchange_filtered
Is the python keyword "is" the same as the function id(), in the context of unittesting? I have tried reading the docs but couldn't get a clear answer. Is id(a) == id(b) the same as a is b Likewise is import unittest unittest.TestCase.assertNotEqual(id(a), id(b)) therefore the same as import unittest unittest.Test...
common-pile/stackexchange_filtered
Can BeEF also work in public? Is it possible to run the tool called BeEF to do penetration testing on real domains like example.com? As far as I know, BeEF can only be used within localhost. I can only test my site for XSS on the real domain because of the database running. Yes, it's absolutely possible to use this to...
common-pile/stackexchange_filtered
List of lists with various lengths and items - change numbers So my problem, to which I have been searching a solution for hours now, is, that I have a list of list with lists of various lengths and different items: list_1=[[160,137,99,81,78,60],[132,131,131,127,124,123],'none',[99,95,80,78]] Now I want to change the ...
common-pile/stackexchange_filtered
Windows Task Scheduler Batch File - Whose permissions does commands in batch file take? I'm running Windows Datacenter, and I'm setting up a scheduled task to create a folder on another server on the network using the md command. Here is my setup. I have 'user A' who has access to log into the server, but does not ha...
common-pile/stackexchange_filtered
How to get value from node? SQL Server XML dml @x xml:' <a number="1"> <b>1</b> </a>' I want use query() to get value (can't use value()) @x.query('string(/a[1]/b[1])') is ok. @x.query('string(/a[@number="1"]/b)') throws an error. Do you have any solution? I want use [@number="1"] to get value. You can try this....
common-pile/stackexchange_filtered
Directive in pop up window angularjs I've a simple single page application. I want to implement tear off windows like functionality, like if I've a directive with a button in the tool bar that when clicked hides the directive in the main app, opens a pop up window (not a modal) and opens that directive in the popup win...
common-pile/stackexchange_filtered
Calculation FLOPs of adaptive_avg_pool2d I found several definitions of FLOPs in countering the flops for adaptive_avg_pool2d: From fvcore , it defines the FLOPs as 1 * prod(input) which is , 1 x N x C_in x H_in x W_in. Another definition is from the output perspective. I found one from here : It first calculate t...
common-pile/stackexchange_filtered
Run nightly jobs on multibranch pipeline with declarative Jenkinsfile without deprecated feature 'Suppress automatic SCM triggering' Jenkins ver. 2.150.3 I have a multi-branch pipeline set up. I am using a declarative Jenkinsfile. I have a set of jobs which take a long time to run. I want these to run over night for an...
common-pile/stackexchange_filtered
Is there way to show disk i/o read/writes per process in real time? I am struggling to find out what process is eating away my Mac performance, and disk i/o is the culprit. Activity Monitor frequently shows megabytes of read/write, but unfortunately, it does not show the per process value (only total written by given p...
common-pile/stackexchange_filtered
Inserting HTML tags using PHP I want to be able to dynamically insert an HTML tag, by first copying it to a textarea and then submitting it. This is my first attempt. <!DOCTYPE html> <html> <head> <title>Tag Parser</title> </head> <body> <form name="tagInput" method="post" action="<?php echo $_SERVER['PHP_SELF']; ...
common-pile/stackexchange_filtered
Ideal way to identify encoding of a content in HTTP request? I have a need to develop REST-based API that can accept either binary or base64 encoded content, and possibly other contents. It has to require that the encoding of the file is identified; otherwise it is assumed to be binary. I don't want to auto-guess based...
common-pile/stackexchange_filtered