text
stringlengths
70
452k
dataset
stringclasses
2 values
How to change an NA value in a specific row in R? I am very new in R and still learning. My data is the Titanic.csv which has 891 observation and 13 variables. I would like to change the NA value on the 62 observation of PassengerID 62 in column 12 (column_name "Embarked") from NA to "S" and 830 observation to "C". I ...
common-pile/stackexchange_filtered
Raychaudhuri equation for black holes Since the Raychaudhuri equation is defined only for timeline and null geodesic congruences, is it valid to use his equation to describe the null generators of the event horizon of a black hole? Assuming that it is valid, if the black hole is stationary, the expansion parameter, $\...
common-pile/stackexchange_filtered
Regex for a word followed by multiple numbers in a sequence I am trying to create a general regular expression that returns a boolean if it sees one word followed but more than one set of numbers. If should report a TRUE for the following test cases: "AB 40<PHONE_NUMBER> 1296 1496 1722 1847 1915 1979 2018 2056 2106 224...
common-pile/stackexchange_filtered
How to pre-populate WTForm FileField with current image file name? When a user wants to update a post using a WTForm, how I can I pre-populate the FileField input on the form so that it displays the current image name? Currently, the user has to upload the same image every time that they update other aspects of the pos...
common-pile/stackexchange_filtered
How do you backup all your emails, by copying the 'Outlook' folder? (Outlook 2013) [PC Advisor UK:] [...] All versions of Outlook use pst files, but the disk location has changed over the years. Right-click your email account on the left in Outlook and select Data File Properties. Click Advanced to see the filename. O...
common-pile/stackexchange_filtered
pod spec lint error: "unexpected '@' in program" I am creating a podspec file for an open-source project I created, and I am utilizing Apple's UIImage+ImageEffects.h/.m for a blur effect, and inside there, they use the new @import Accelerate; syntax versus #import <Accelerate/Accelerate.h>. When I run pod spec lint SFS...
common-pile/stackexchange_filtered
Count and concatenate MySQL entries Essentially, I have a table that is like this: FirstName, LastName, Type Mark, Jones, A Jim, Smith, B Joseph, Miller, A Jim, Smith, A Jim, Smith, C Mark, Jones, C What I need to do is be able to display these out in PHP/HTML, like: Name | Total Count Per Name | All Type(s) Per Name ...
common-pile/stackexchange_filtered
Same relation for two fields in one data type can I write something like this: type User { primaryStory: Story! @relation(name: "userStory") secondaryStories: [Story] @relation(name: "userStory") } type Story { user: User! @relation(name: "userStory") } Basically what I want is to have a single relation name for bo...
common-pile/stackexchange_filtered
Yet another Classpath java Hello ive some trouble with CLASSPATh and compiling in Java. I have this test code: package prova; import cat.almata.daw.utils.Log; public class ProvaUtils { public static void main(String[] args) { try{ System.out.println("------ Testing DAW Utils ---"); ...
common-pile/stackexchange_filtered
Creating a complex data structure by parsing an output file I'm looking for some advice on how to create a data structure by parsing a file. This is the list i have in my file. '01bpar( 2)= 0.23103878E-01 half_life= 0.3000133E+02 relax_time= 0.4328278E+02', '01bpar( 3)= 0.00000000E+00', '02epar( 1)= 0.49998963E+...
common-pile/stackexchange_filtered
Web component Light DOM slot equivalent for injecting dynamic content into specific element Im struggling to do something that seems like it should be simple. I am creating my first web component and it cannot be within the shadowDOM. I need it to receive some dynamic content and inject it into the correct div like so:...
common-pile/stackexchange_filtered
How to generate multiple xml files based on rowcount I am able to successfully generate a large xml file for a million records using the below code. cmd.CommandText = "SELECT PARTNER_NO FROM T1 WHERE YEAR LIKE '%2011-2012%'"; XmlWriter myWriter = XmlWriter.Create("C:/Test/BookInfo.xml") myWriter.WriteStartDocumen...
common-pile/stackexchange_filtered
Mapping an action name to a class type in C++ I want to link a bunch of 'action' strings to single 'parent' string but there could be multiple strings that own 'action' strings. map<string, string> ctType; ctType.insert(pair<string, string>("1")("default")); ctType.insert(pair<string, string>("2")("register")); ctTyp...
common-pile/stackexchange_filtered
Why does time.Now().UnixNano() returns the same result after an IO operation? I use time.Now().UnixNano() to calculate the execution time for some part of my code, but I find an interesting thing. The elapsed time is sometimes zero after an IO operation! What's wrong with it? The code is running in Go 1.11, and use the...
common-pile/stackexchange_filtered
Highlighting strings between [ and ] in lstlistings I want to use lstlisting to present a file like this: #comment [keyword] key1=value1 key2=value with RegEx [keyword:NewKeyword] key1 = value1 key2=value with RegEx and this is my language definition: \lstdefinelanguage{myLang}{ sensitive=false, morestring=[b...
common-pile/stackexchange_filtered
grok vs. django comparison What are the smashing (pun intended) features of grok that makes it better than django? how do I know when my project needs grok+zope, or it can just be developed with django ? Zope was the first object publishing framework evah, and the Zope community has a long experience with Doing Thing...
common-pile/stackexchange_filtered
IdentityServer4 FindByNameAsync always null I am using IdentityServer4 v4.1.1 in a .Net Core 3.1 project and having issues with FindByNameAsync - it always returns null. This works and returns the user: var user = await userStore.Context.Users.FirstOrDefaultAsync(u => u.NormalizedUserName == userManager.NormalizeName(m...
common-pile/stackexchange_filtered
text on back of spinning image I'm trying to code a gallery page, which contains nine pictures in a three-by-three grid. when someone clicks on an image, I want the image to spin on the Y-axis and display white text on a black background. The problem is that I don't know how to spin the image. I think it has something ...
common-pile/stackexchange_filtered
What is the maximum height of USAF fighter pilot? In response to this comment: Three days later I happened to meet a commercial pilot at school who has flown F4s during Vietnam. He gave me the worst news of my life. My 6'3" ass was too tall to ever fly a fighter. Is this actually true? A cursory search seems to c...
common-pile/stackexchange_filtered
Profiling / Code optimizing tool Please let me know which tool (GNU or 3rd party tool) is the best we can make use for profiling and optimizing our code. Is gprof an effective tool? Do we have dtrace tool ported in Linux? Usually profiling tools are language specific. What language are you targeting? What kind of appl...
common-pile/stackexchange_filtered
is this some kind of optimization? if (1) { ... } else (void)0 Possible Duplicate: Why are there sometimes meaningless do/while and if/else statements in C/C++ macros? In the source code of OpenJDK I found this macro: #define PUTPROP(props, key, val) \ if (1) { \ // some code } else ((void) 0) It is us...
common-pile/stackexchange_filtered
JavaScript audio analyze phonetics I'm able to analyze audio data using the AudioContext API in JavaScript and draw the waveform to a canvas. The question is, after loading the audio data, I have about a 1024-long Uint8Array data points representing the wavelength (per frame), how do I guess what sounds this is making ...
common-pile/stackexchange_filtered
Storing multiple arrays of strings in a command I have modified the answer in Storing an array of strings in a command in order to allow multiple \storedata\mydata commands. That's the MWE: \documentclass[12pt]{article} \newcount\tmpnum\tmpnum=0 \def\storedata#1#2{\edef\tmp{\string#1}\storedataA#2\end} \def\storedataA#...
common-pile/stackexchange_filtered
Passing partial array to a function This is really a question about efficiency I guess... I have a device that gives me (image) data in an array that I then pass to a third party library as follows: Private Sub NewData(TheData() as ushort) LibraryFunction(TheData) End Sub This works just fine, EXCEPT that for th...
common-pile/stackexchange_filtered
npx create-react-app myapp doesn't work. Aborting installation When tried create new project npx create-react-app my-app - got this Aborting installation. I have node v14.17.1 And then I switched the latest version 16.4.0, and the problem is the same. sudo npm cache clean --force not resolved my problem I am reinstal...
common-pile/stackexchange_filtered
Implementing a brute force algorithm for detecting a self-intersecting polygon I initially implemented the Hoey-Shamos algorithm, however it is too complex for future maintainability (I have no say in this), and it wasn't reporting correctly, so an optimized brute force algorithm is what I'm going to use. My question i...
common-pile/stackexchange_filtered
Association name expected, 'badge' is not an association I have a problem with override document (mongodb) and generator.yml Parent document: <php namespace Acme\DemoBundle\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; /** * @ODM\Document */ class Product { /** * @ODM\ReferenceOne(targetD...
common-pile/stackexchange_filtered
Extract emails from a web page in python I have found the following code that crawls a website (I think all the website) for emails import re import requests import requests.exceptions from urllib.parse import urlsplit from collections import deque from bs4 import BeautifulSoup # starting url. replace google with your...
common-pile/stackexchange_filtered
Apache access to example.com/app from different root directory For now, I have following directories: WordPress directory is connected with example.com domain. I would like to access my Zend app by example.com/app URL, but it is in separated directory. I tried to add rewrite rule in htaccess file in WordPress director...
common-pile/stackexchange_filtered
nginx can't execute many requests I have a question about nginx tune. I have an application which I want execute 200 times every second. I created bash file and used wget with bqO switch for execute. But it has a problem. When the number of requests is greater than 100. nginx not responses to another request and stuck ...
common-pile/stackexchange_filtered
I am getting a "Trying to get property of non-object" error from my controller I am getting a "Trying to get property of non-object" error whenever I try to process a deposit in my controller Here is my controller users::where('id',$user->id) ->update([ 'confirmed_plan' => $deposit->plan, 'activated_at' => \Carb...
common-pile/stackexchange_filtered
Why is there a "±" in lea rax, [ rip ± 0xeb3]? I just started learning about assembly language in Kali Linux in VMware. I have a Ryzen 5 CPU. In the below code snippet, I have a few things I don't understand. What is the meaning of lea rax, [rip ± 0xeb3] at <main + 17>? I understand what lea does, but what is the mean...
common-pile/stackexchange_filtered
Making ridges method on a cube mesh I have a wooden box in my example which looks like its made out of different wooden pieces. I'm trying to find a good method how to make it look its from separate pieces. So In my example I made loop cuts, and extruded the faces along the normals. would this be the right approach, or...
common-pile/stackexchange_filtered
VS2019: WF: Add Second Form don't work, it tries to add a class I created a windows form application and it has a form1.cs file which has also designer mode. but when I try to add->"new form", then the VS2019 only adds an empty class! not a new form. Am I Missing something? Does this answer your question? How to add...
common-pile/stackexchange_filtered
creating 3x3 sobel operator in opencv2 C++ Im trying to create my own sobel edge detection based off of the gx and gy matrices on three channels i have in my code below. [[0,1,2], [-1,0,1], [-2,-1,0]] and [-2,-1,0], [-1,0,1], [0,1,2]] I edited the variables j and i in my code further down but it is no...
common-pile/stackexchange_filtered
How to I split a column (of Strings) in MariaDB I´m new to MariaDB. I have imported a Json.file in my MySQL Workbench. But e.g. the authors are all in one line instead each author in one line. Is there a way to split them up, so each author gets a new line like this: Lucinda Riley\n Margit Steinborn\n product_author: [...
common-pile/stackexchange_filtered
XMLHttpRequest Status 0 for Firefox 49.0.2 Add On There is a XMLHttpRequest in the content script of my Firefox WebExtensions add on. Q: why is the status of this request is always 0? This is the JavaScript code making the request: var query = "http://api.wolframalpha.com/v2/query?appid=[MY-APP-ID]&includepodid=Compari...
common-pile/stackexchange_filtered
Can AngularJS directive pre-link and post-link functions be customized? I have seen many references to AngularJS pre- and post-link functions in literature about AngularJS. I am not sure however whether these can be customized or are internal to the framework. In other words, as an AngularJS developper, can I provide ...
common-pile/stackexchange_filtered
Why does shadowing change the mutability of a variable in this code? In thie following code, fn main() { let mename : String = String::from("StealthyPanda"); println!("{mename}"); let mename = displayswithhere(mename); println!("{mename}"); let mename = addshere(mename); println!("{mename}"); ...
common-pile/stackexchange_filtered
NumberFormatException when trying to convert JTextField to int in this part of my code, i'm creating an object of the class Dizionarioand writing it to a file, first calling the construcor, accepting 3 parameters, (Path, String, int). I am getting these 3 parameters from 3 JTextField and particulary, the last one (JTex...
common-pile/stackexchange_filtered
Have same radio group input located on two different location of same form Is there some way to locate in two different locations the same radio group inputs and if they change one of them, also the other changes automatically? For two location, I mean two different places on a same submit form. I edited the post to be...
common-pile/stackexchange_filtered
Get a list of persistent objects stored in database I should insert a list of objects in a database using a workflow for each object, the inserting process could take several time and waiting for some external input so I have to save persistent state in db, and it works correctly. Now I need to show pending objects in ...
common-pile/stackexchange_filtered
Program to find the result of primitive recursive functions I'm writing a program to solve the result of primitive recursive functions: 1 --Basic functions------------------------------ 2 3 --Zero function 4 z :: Int -> Int 5 z = \_ -> 0 6 7 --Successor function 8 s :: Int -> Int 9 s = \x -> (x + 1) ...
common-pile/stackexchange_filtered
Find duplicates in a list and return list with position of duplicates I know that there are tons of posts that deal with finding duplicates in a list. Here is one Find continuous duplicates in a List What I would like is something more: returning a list in which are the positions of the string duplicates. If the list i...
common-pile/stackexchange_filtered
how to use uppercase method with do not allowed turkish character? I have the following code: <input type="text" style="text-transform: uppercase" /> The string gets transformed to uppercase, but ü for example, will transform to Ü. I want ü to transform to U, e.g. Gülay should become GULAY. Does anyone have any idea h...
common-pile/stackexchange_filtered
The significance of the number in front of a series? I believe I have solved the series to $-4/9$ however I'm not sure of the significance of the 9 in front of sigma. Is this simply multiplying the final result or is it something different? The series in question is $$9\sum_{n=1}^\infty\left(-\frac{4}{5}\right)^n$$ I ...
common-pile/stackexchange_filtered
Getting Active Directory Users and looping through them to return a new list using F# I have tried several ways to get this to work, I am thinking I need to some kind of recursive function but haven't been able to wrap my head around it. Looked at folds and catamorphism and don't really get how I could apply it this th...
common-pile/stackexchange_filtered
DT::datatable on grouped dataframe within Rmarkdown report (HTML) I have a grouped data frame output that I want to visualize as a DT::datatable with Download buttons (csv,excel) in Rmarkdown report (HTML). It works fine when I'm constructing the Rmarkdown, but shows an error saying that there is no group by method app...
common-pile/stackexchange_filtered
CSVReader headerReader = new CSVReader(new FileReader(this.getClass().getResource(filePath).getPath()), delimiter); i am working on java Maven framework and using CSVReader to read files but i dont understand, How "this.getClass().getResource(filePath).getPath()" fetches the absolute path of the file and also what the...
common-pile/stackexchange_filtered
Reloading data with chart.dataSource.reloadFrequency adds the data to the chart in stead of replacing it I've added this code chart.dataSource.reloadFrequency = 60000; to live reload the chart data. It works, the network tab is showing that, and the data is loaded, but it looks like it's added and not replaced. The d...
common-pile/stackexchange_filtered
Two programmers debug a type checker late evening. Dyer: This equality checker keeps failing on supposedly identical functions. They should be the same. John: But are they really the same? In Martin-Löf's system, we don't just ask if two things are equal - we need a witness, a proof of that equality. Dyer: Right, th...
sci-datasets/scilogues
Get the value of sys.argv[1] and concatenate it with some string literals I simply want to get the value of sys.argv[1] and concatenate it with some string literals. This is my script: import sys myValue = sys.argv[1] out = 'a' + myValue + 'c' print (out) When i run the python script with the parameter "b", i expect...
common-pile/stackexchange_filtered
Prove that $\text{Tr}(M|ψ\rangle\langleϕ|)=\langleϕ|M|ψ\rangle$ Question: I am studying alone, and I found p.76 of the book quantum computation and quantum information of nielsen &c huang that: $$\text{Tr}(M |\psi\rangle \langle\psi)=\langle\psi| M |\psi\rangle\,.$$ I want to be sure that my understanding of the formul...
common-pile/stackexchange_filtered
How to get negative timestamp? I need to convert dates before 1970 to timestamps. I have a correct tm structure but Microsoft's std library mktime can't convert it to negative timestamps. Is there any standard way (no Qt, WinAPI) to get it? have you tried to use std::chrono? i recommend using this header only library ...
common-pile/stackexchange_filtered
How to get all ROS log messages from rostest? I am trying to debug a problem with a rostest that it is probably failing due to multithreading, as the result of the test is always different. That aside, my problem is that I cannot get to see the complete ROS logs. More specifically, I can see the logs but for only the f...
common-pile/stackexchange_filtered
How to find min max values in Array - Scanner class I was trying to take user input, store the values in the Arrays, and then find min max values. My code works fine in case the array is initialized with values, but when I take user input it always returns 0 as min value. See the code: import java.util.Arrays; import j...
common-pile/stackexchange_filtered
Is it good to emphasize that one obtained a PhD from a prestigious university I was wondering whether it is a good practice for someone to emphasize that he obtained his degree from a prestigious university by including the name of his university always after his title, something like: Name, PhD (Caltech) I have seen...
common-pile/stackexchange_filtered
How to find the least number that can be written as the sum of two cubes in two different ways? Find the least number that can be written as the sum of two cubes in two different ways. Find the number and show steps in deriving it. This is one of mathematician's Srinvasa Ramanujan's challenge problems. See this relev...
common-pile/stackexchange_filtered
Can I make a flash like hash in rails? I'm a ruby/rails newbie and need to make a hash which can be manipulated anywhere in the rails application and can be accessed by all views just like the flash[:notice] hash. Is this possible? This may help http://stackoverflow.com/questions/3598785/where-to-put-global-variables-...
common-pile/stackexchange_filtered
Google dataflow: AvroIO read from file in google storage passed as runtime parameter I want to read Avro files in my dataflow using java SDK 2 I have schedule my dataflow using cloud function which are triggered based on the files uploaded to the bucket. Following is the code for options: ValueProvider <String> getInpu...
common-pile/stackexchange_filtered
Php: how to get video urls in my vimeo account I have a vimeo api keys and i uploaded videos this url https://vimeo.com and get my all videos link from this link https://vimeo.com/home/myvideos. Now i got response for all my video links details. <?php $urls = array(); $videos = array(); // vimeo test ...
common-pile/stackexchange_filtered
How to open a Slack huddle directly from the command line? I would like to join a daily Slack Huddle meeting from crontab. How should I call slack? The URL obtained via Copy huddle link (starting with "https://app.slack.com/huddle/..."), that works with the web browser indeed, doesn't work when applied directly to the...
common-pile/stackexchange_filtered
Grafana :: Cannot login to http://localhost:3000/login I freshly installed Grafana and I cannot login at http://localhost:3000/login All documentation shows that the default user/password should be admin/admin but I'm locked out. If I go to check into the file C:\Program Files\GrafanaLabs\grafana\defaults.ini the valu...
common-pile/stackexchange_filtered
I have Error in paypal phonegap plugin after enter buyer mailid I have Error in paypal phonegap plugin after enter buyer mailid "The application is not approved to use the following parameter with this type of payment" what is the mean of this error I think my error is here var obj = { server : 'ENV_SANDB...
common-pile/stackexchange_filtered
Golang race with sync.Mutex on map[string]int I have a simple package I am using to log stats during a program run and I found that go run -race says there is a race condition in it. Looking at the program I'm not sure how I can have a race condition when every read and write is protected by a mutex. Can someone explai...
common-pile/stackexchange_filtered
How can I delete Safari cookies via Terminal on 10.7.2? I would like to delete all Safari cookies from terminal on Mac OS 10.7.2. I tried to delete ~/Library/Cookie/Cookies.binarycookies (this is the only file in ~/Library/Cookie), but it didn't help. Please advise. I have a file Cookies.plist in ~/Library/Cookies, wh...
common-pile/stackexchange_filtered
Making a dataframe where new row is created after every nth column using only semi colons as delimiters I have the following string in a column within a row in a pandas dataframe. You could just treat it as a string. ;2;613;12;1;Ajc hw EEE;13;.387639;1;EXP;13;2;128;12;1;NNN XX Ajc;13;.208966;1;SGX;13;.. It goes on lik...
common-pile/stackexchange_filtered
How do I export a remote graph to json using tinkerpop gremlin and neptune? I'm trying to export an entire remote graph into json. When I use the following code, it results in an empty file. I am using Gremlin-driver 3.3.2 as this is the same version in the underling graph database, AWS Neptune. var traversal = Empty...
common-pile/stackexchange_filtered
Range of standardized coefficients in a discriminant analysis I want to run a discriminant analysis on different motion capture measures to see which of the measures distinguishes best between my two conditions. The problem is that some of the standardized discriminant function coefficients are >1 and <-1. How is that ...
common-pile/stackexchange_filtered
How to invert the selection while keeping the previous selection? How can I select the same faces on the right side, which are selected on the left side? I know I can select the rest of the faces little by little with "shift", "c", or "b", but I would like to know if there is something easier, so I can apply it in futu...
common-pile/stackexchange_filtered
not able to create index aws elasticsearch from laravel application using scout elasticsearch laravel I am trying to connect from an ec2 instance to AWS Elasticsearch using scout-elasticsearch-laravel but it is failing. my steps :- added host to .env SCOUT_DRIVER=elastic ( I tried elasticsearch also ) SCOUT_ELASTIC_HOS...
common-pile/stackexchange_filtered
Bitwise XOR in C using 64bit instead of 8bits I consider how to make efficient XORing of 2 bytes arrays. I have this bytes arrays defined as unsigned char * I think that XORing them as uint64_t will be much faster. Is it true? How efficiently convert unsigned char * to this uint64_t * preferably inside the XORing loo...
common-pile/stackexchange_filtered
using urlrewrite for a domain with parameters I want to rewrite example.com/index.php?post_id=1&seri_id=5 to example.com/seri-name/post-name I found this: Store the following in your web roots .htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f Rewrite...
common-pile/stackexchange_filtered
Code to find the existence of file with partial filename I have a file as c:\sai\chn_20151019_5932.txt . Here 5932 is minutes and seconds format. 59 mins 32 secs. When we run again the package on the same day the existed file in the folder should deleted but , due to the seconds I am unable to delete the file. I need ...
common-pile/stackexchange_filtered
ActionScript 3 - How do I get my String to convert to a Number? I have a Budget field (called txtBudget) where I want users to enter a number value. I then want to store what they entered as a variable (totalBudget) so that I can perform calculations based on it later. My problem right now is that when I go to a differ...
common-pile/stackexchange_filtered
Linear Combinations and solutions [Columnwise Description of Matrices] Let $A$ be a $5\times 3$ matrix. If $b = a_1 + a_2 = a_2 + a_3$ where $a_1, a_2, a_3$ are columns of $A$ then what can we conclude about the number of solutions of the linear system $Ax = b$? Same Question for: when $b = a_1+a_2+a_3+a_4$ This quer...
common-pile/stackexchange_filtered
require.resolve not resolving dependency I was working on a node module, where I would have to check if the user had installed an specific package (that's the logic I have to follow) and if not, install that using child_process.exec. That's where the problem appears, even though my script installed the package (node_mo...
common-pile/stackexchange_filtered
Azure SDK - List Subscription Diagnostic Settings I want to use this API: Subscription Diagnostic Settings - List, But I have not been able to find it in the Azure SDK. Tried to looking into the @azure/arm-monitor but found only DiagnosticSettings which do not apply to the subscription resource, moreover they don't eve...
common-pile/stackexchange_filtered
show jira issues in bitbucket issue tracker im trying to setup some projects in jira, we have existing bitbucket repos. Our jira projects have issues we have put in, is it possible to view these jira issues in bitbucket You can link JIRA to BitBucket by following this tutorial: Linking Bitbucket and GitHub accounts to...
common-pile/stackexchange_filtered
Is using GIADDR when relaying DHCP requests beneficial? I am setting up three Juniper EX3200 switches simply named 1,2, and 3. Switch 2 will have two VLANs, one being the internet uplink from the Firewall and one being the gateway for the Workstations. Switch 1 will be on a VLAN on the same subnet as Switch 2. Switch...
common-pile/stackexchange_filtered
Account Linking redirect in Actions on Google simulator I'm building an app utilizing the new Action on Google Java API. As I understand from dealing with account linking in Alexa, the initial flow (when the userId in the JSON request is null) should redirect to a sign in form to elicit user consent: @ForIntent("R...
common-pile/stackexchange_filtered
CSS not getting applied to <label> I am developing a form and setting a size for the label and aligning it right so as to look decent. However the CSS is not getting applied. Here is my code: label{ width: 50%; text-align: right; } Fiddle How do I get this working? it is working mate => http://jsfiddle.net/46...
common-pile/stackexchange_filtered
Expectation of Quadratic Form with Two Random Vectors Assume I have two independent $(N \times 1)$ random vectors, $\epsilon_{1} \sim N(0,\Sigma_1)$ and $\epsilon_{2} \sim N(0,\Sigma_2)$. We could assume $\Sigma_1=\Sigma_2$ for my purposes but a general answer would be better. What is the solution then of $\mathbb{E}\b...
common-pile/stackexchange_filtered
Cup product of Euler classes: What happens to the corresponding bundles? It should be clear that $H^k(B)$ corresponds to the set of all $\mathbb{S}^{k-1}$-bundles over $B$ up to isomorphism via the Euler class. For $k=2$, the addition of Euler classes should correspond to the fibrewise complex tensor product of the bun...
common-pile/stackexchange_filtered
Raspberry pi network over usb Hi I am very new to the Raspberry pi but I have experience with the beaglebone. I am just wondering if its possible to do something like network-over-USB like on beaglebone , but for the raspberry pi using the micro usb power connector. Since it would be much easier to connect to SSH and p...
common-pile/stackexchange_filtered
Re-display invalid data entry when expecting a number upon validation error Let us say that the user submits a form. One of the fields was invalid, so the form gets re-rendered. When in the process of re-rendering the form: I check to see if the submitted value for that attribute was invalid. If so: then show that i...
common-pile/stackexchange_filtered
Creating a default object for Entity Framework navigation property I have a class Client as it follows public class Client { public int UniqueLoginsPerDay { get; set; } public virtual Limit Limit { get; set; } public int LimitId { get; set; } } And then I have a Limit class public...
common-pile/stackexchange_filtered
Has numerosity-preserving functions between structures been studied before? Isomorphisms are bijective functions between structures that preserve the constants, relations, and functions of the structure. I wonder, has a notion of "strong isomorphism" between structures been studied before in the mathematical literature...
common-pile/stackexchange_filtered
How to infer dayfirst for dateutil.parser.parse based on pytz timezone to parse string date Trying to parse string dates to datetime.date that might be in the format DD/MM/YY or MM/DD/YY. The only info I have is the pytz.tz to help me figure out the format of the string date. I am using dateutil.parser.parse which has ...
common-pile/stackexchange_filtered
double tabs printed when writing single tab in c++ strings i'm using strings in c++ with tabs inside when the word before the tab char is less than 7 letters a normal tab is printed when it's more it prints double tabs can anyone tell me the solution ? i'm using linux and c++ 98 the line that prints code bool list::s...
common-pile/stackexchange_filtered
Ubuntu Touch SDK - qmake problem I've recently tried installing the Ubuntu SDK but with no luck! I followed the Developer Instructions , and when I launch the QtCreator Ubuntu SDK and create anew project I don't have any options for creating a new touch project. Also worth noting that some options on the left are gre...
common-pile/stackexchange_filtered
Bootstrap 4 Select2 jQuery Not working in Ajax Calls I am using Bootstrap 4 and Select2 jQuery plugin in my webpage. It is working perfectly in my website. But when calling an another page contenting Select2 class of select input is not working. Plugin Initiated at main page as - <script type="text/javascript" language...
common-pile/stackexchange_filtered
Combining non-contiguous polygons in ArcGIS Pro I am trying to combine non-contiguous polygons that are close but not touching one shape. As if you were to draw a line around these five parts connecting them into one. Originally these were part of a multipart feature that I exploded. I have tried merge (which combines...
common-pile/stackexchange_filtered
Suspending a bash script running in the background I have a bash script running in the background, and it executes in a loop every 5 seconds. This effects the commands that are being executed at the shell itself. Is there a way, i can suspend the script execution until the shell is not executing other commands. thank...
common-pile/stackexchange_filtered
How advanced would Lanka under Ravana (and thus the Rākṣasas/Yakṣas) have to be to supply a 100 billion population of meat eaters? The population of Lanka under Ravana is 100 billion, over 10 times the world population now (see my answer here for details), in a space of one, not that big country, and the population eat...
common-pile/stackexchange_filtered
Failed to install Tk module of Perl in Windows7 At first,I tried to use ppm and cpanm to install Tk module.But failed to download whth the reason which i don't konw(yet i can install image module) .So I tried another way.I downloaded the Tk-804.030 from the cpan website.And unpacked it.Then I type "perl makefile.pl" in...
common-pile/stackexchange_filtered
In Chrome, after submitting a form and navigating back, its values are autofilled after DOMContentLoaded. Is it possible to listen for this change? See an example here: https://large-platinum-ethernet.glitch.me. Using Google Chrome (using v81 as of May 2020): Open your console. Select a value other than "Option 0." Cl...
common-pile/stackexchange_filtered
bash: assign to an array in bash from a function called with the & control operator I'd like to know why this works: arr=() fun() { arr[$1]=$2; } fun 1 2 echo ${arr[1]} # echoes '2' but this doesn't: arr=() fun() { arr[$1]=$2; } fun 1 2 & wait echo ${arr[1]} # echoes a blank line By running fun in the background in ...
common-pile/stackexchange_filtered
What's wrong with this pipeline communication code? I'm trying to implement in my code with pipeline communication. Build success but my code doesn't work. My Pipeline communication code is : int CTssPipeClient::Start(VOID) { m_uThreadId = 0; m_hThread = (HANDLE)_beginthreadex(NULL, 0, ProcessPipe, LPVOID(thi...
common-pile/stackexchange_filtered
Is it better to open different ports or one port with identifiers (or else)? I'm coding a system in which there are three different java applications that interact with eachother via TCP-IP. Two of these apps connect with the other one, called Directory, through a ServerSocket. One of the apps connects with it only to ...
common-pile/stackexchange_filtered