text
stringlengths
175
47.7k
meta
dict
Q: Check if multiple values are not in a column? I need to check if a value isn't in a column. Currently I am doing this: WHERE type != 'internal-link' AND type != 'external-link' AND type != 'home-link' .. It goes on. There are 20 types and I need to make sure the type isn't 8 of them. Is there some kind of in_arr...
{ "pile_set_name": "StackExchange" }
Q: Вывод символов в консоли C++ Имеются различные символы, и нужно выводить их в консоли. Например хочу вывести ─╔══╗╔══╦═══╦═══╦но вместо этих символов в консоли выводятся знаки вопроса, я так предполагаю, что дело в кодировке, и я попробовал ее изменить, но результата нет. Как можно реализовать вывод различных симв...
{ "pile_set_name": "StackExchange" }
Q: How to use class type passed as parameter to method to define local variables I have a cache that compartmentalizes by namespace. I would like to use class type to determine which cache to use. The following method gives an idea of what I want to accomplish. I use the word cache loosely. I am more interested in co...
{ "pile_set_name": "StackExchange" }
Q: Testing For Salmonella in raw eggs I purchased eggs from the refrigerator in a local grocery store...When arriving home I missed and left them on the floor in my house in the plastic grocery bag still in the carton for 2 weeks! The temperature in my house stays on 76-78 degrees here in Florida. Is there a test tha...
{ "pile_set_name": "StackExchange" }
Q: Hyper-V uninstall mvEthernet Switch deleted and main ethernet adapter does not have ip I did following thing. Installed Hyper-v quite long ago. When Hyper-V created there is one vEthernet switch get created and that hold ip address information that previously held by main adapter. Now I have uninstalled Hyper-V ...
{ "pile_set_name": "StackExchange" }
Q: How do I send search parameters to Flask server? This is my first question! I am trying to enter a search term into a search box, and when I click Submit, I want the search term inserted into this URL: http://www.hadrians-search.tk/search?search_param=mario?&items_per_page=2&page_number=2 mario would be the searc...
{ "pile_set_name": "StackExchange" }
Q: Operation synchronization different from class synchronization I have a WebService (.svc) class with [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single)] and I want to make some of it operations multiple not single and some single. How can I do it? A: You could mark class as ConcurrencyMode.Multiple, m...
{ "pile_set_name": "StackExchange" }
Q: Why the quotient ring of a proper polynomial ideal is a k-algebra? I'm reading Cox, Little and O'Shea's Ideals, Varieties, and Algorithms on my own. In page 277, the authors define k-algebra as follows: A k-algebra is a ring which contains the field k as a subring. In page 278, the authors say "Examples of k-algeb...
{ "pile_set_name": "StackExchange" }
Q: Block diagram of 16:1 MUX using four 4:1 MUX only As far as I know we can make a 16:1 MUX using five 4:1 MUX. For four 4:1 MUX, I think we have to apply NOT to different selection lines but I am not getting the correct configuration to do that. A: You could've easily found it on the internet if you searched. Th...
{ "pile_set_name": "StackExchange" }
Q: Add a class to div when HTML5 audio file is playing or pause I am working on a audio player. When the page load audio file starts playing . Everything is fine but when audio file play i want to add a class "playing" to audio play/pause button i have following HTML code <div class="player"> <audio id="audio" src="a...
{ "pile_set_name": "StackExchange" }
Q: Tuples not allowed as lvalue in Rust? I have a few methods in Rust that return two elements, and it really makes sense for me in those scenarios to return two elements. Though, when actually calling those methods I noticed that Rust does not allow using tuples as lvalue, so I cannot reassign to them. Assuming test...
{ "pile_set_name": "StackExchange" }
Q: How can I combining the following RegExs into one expression? I'm using the following RegEx to strip HTML tags from a string <[^>]*> This does not get rid of blank lines, however. I found this other RegEx that successfully removes any blank lines: [#Chr(13)##Chr(10)#]+ I tried to combine both as such: ReReplaceN...
{ "pile_set_name": "StackExchange" }
Q: Why doesn't predict return any rows or columns in R? I am very new to R. I have data that looks like this: > head(NB) a s e i 9011 20-30 F Others 10-50K 9012 GT 45 M Others 10-50K I classify it with naiveBayes like this: c = i ~ a + s + e cl = naiveBayes(c, head(NB,1500), laplace = 0) Th...
{ "pile_set_name": "StackExchange" }
Q: Long live access token granting permissions and scopes I obtained access token for my facebook app using graph api explorer and also a long lived access token from server side. But I am unable to edit the permission and scopes I obtained for the long lived access tokens. I have uploaded the screen shots of the ...
{ "pile_set_name": "StackExchange" }
Q: Android Billing: changing the price of a subscription It's possible to change the price of an active subscription item, as described here. However, it is not clear to me whether the developer has to notify the user about the price change, and get their consent, or whether the developer can rely on Google Play to ...
{ "pile_set_name": "StackExchange" }
Q: parsing a html report file I am trying to extract the text content of a html file generated bu some tool. I cant use normal sax or dom parser because html is not properly formed. So i tried using htmlparser http://htmlparser.sourceforge.net/ Now how can i extract the node i required? I used this following code but...
{ "pile_set_name": "StackExchange" }
Q: Resources for learning about Word XML format? What resources would you recommend to learn about the Microsoft's Open Office format (the XML format introduced with Office 2007, not to be confused with OpenOffice.org), specifically for .docx Word files? (Ideally, ones with lots of samples and tutorials.) A: Top 10...
{ "pile_set_name": "StackExchange" }
Q: when call router.post method from url get error 404 not found in express.js I have got a problem with Express, I am trying to use the app.post() function but it's not working and I don't know why... Even though I have included the bodyParser()... It returns 404 page not found error var express = require('express')...
{ "pile_set_name": "StackExchange" }
Q: Why use TAG in most of the Android logging code I can see this is common practice among Android developers. public final class TasksSample extends ListActivity { private static final String TAG = "TasksSample"; private void method() { Log.i(TAG, "message"); } } Will it be easier, if I do it th...
{ "pile_set_name": "StackExchange" }
Q: How can I infer the topology of a quantum state (or band) from its Chern number? Whereas I can calculate the Chern number of a quantum state (or band) from the integration of the Berry curvature in all space. How can I infer the topology of the quantum state from this result? What is the physical meaning of a quan...
{ "pile_set_name": "StackExchange" }
Q: Magento which Catalog Block is used to display custom options? i add new fields into custom options template like. i add Details field following http://magento.ikantam.com/qa/how-add-custom-attributes-custom-options tutorial. i want to Display the Details field value on Product View page. Like in this tutorial sa...
{ "pile_set_name": "StackExchange" }
Q: Discovering keys using h5py in python3 In python2.7, I can analyze an hdf5 files keys use $ python >>> import h5py >>> f = h5py.File('example.h5', 'r') >>> f.keys() [u'some_key'] However, in python3.4, I get something different: $ python3 -q >>> import h5py >>> f = h5py.File('example.h5', 'r') >>> f.keys() KeysVi...
{ "pile_set_name": "StackExchange" }
Q: Why can a local variable be accessed in another thread created in the same class? I couldn't really find anything on this exact topic, so please lead me toward the right direction, if a question already exists. From what I have learned about .NET, it is not possible to access variables across different threads (pl...
{ "pile_set_name": "StackExchange" }
Q: Alternatives to paste( ) to concatenate formatted text expressions on a graph? I'm using pretty10exp() from the sfsmisc package to make the scientific notation look better. For example: library(sfsmisc) a <- 0.000392884 The output of pretty10exp() looks like this: > pretty10exp(a, digits.fuzz=3) #round to display...
{ "pile_set_name": "StackExchange" }
Q: outer join in linq i have 3 table in sqlServer As follows: Cost_Types Id COST_NAME ------------- 1 A 2 B 3 C 4 D 5 E 6 F 7 Z and Request Table Id No ---------- 1 100 2 200 3 300 and Cost_Request (= clearance_cost) RequestId CostId Amount ------------------...
{ "pile_set_name": "StackExchange" }
Q: Implementing BCEWithLogitsLoss from pytorch in keras I have a model that I am trying to train on a dataset which has a class imbalance. The problem is a multilabel classification problem (each sample has 1 or more labels). I also have weights for each class which I have calculated for my dataset. I did see this im...
{ "pile_set_name": "StackExchange" }
Q: How do I know when the background thread is finished with AsyncTask? I take the names and phone numbers of people with string with background thread and use them somewhere. Everything works, but I want to do something. I want to show users something when this thread runs out. But I don't know how to check the cond...
{ "pile_set_name": "StackExchange" }
Q: Gvim shell problem I have been using Gvim for quite sometime and I like it very much. There is a problem I am facing with Gvim. I type "shell" and go to the command line, When I press the up arrow I get some weird symbols and I am not able to use backspace also. The version which I am using. VIM - Vi IMproved 7.2 ...
{ "pile_set_name": "StackExchange" }
Q: A "functional" definition of simple group? We usually give the definition of simple group as follows, Simple Group. A group $(G,\circ)$ is said to be simple if it contains no proper nontrivial normal subgroup of $G$. Where by trivial normal subgroup of a group $G$ we mean $\langle e\rangle$ where $e$ is the iden...
{ "pile_set_name": "StackExchange" }
Q: Add row clearfix after evry three column does any one know how to make it using view? <div class="blog-categories-warp"> <div class="container"> <div class="row clearfix"> <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12"> <h3>General</h3> <ul class="...
{ "pile_set_name": "StackExchange" }
Q: ValueError: Invalid padding bytes when decrypting with AES256 I am trying to rewrite this solution using cryptography library, but in the process of decryption I get padding error i.e. ValueError: Invalid padding bytes. Here is the cipher class I have so far: import os import base64 from cryptography.hazmat.primi...
{ "pile_set_name": "StackExchange" }
Q: Identification: animated TV series 2000-2005, possibly canadian, using "Right here, right now" music Please help me identify a sci-fi cartoon TV series from the 2000. One of the most salient feature of the series was the rock/electronic music used in the background, and especially the famous Right here, right now ...
{ "pile_set_name": "StackExchange" }
Q: Publish Wordpress posts in Google plus? I need a WP plugin that updates my google+ when I write a new blog post. I want something automatic that doesn#t require to +1 the blog post. A: Have a look here: http://en.forums.wordpress.com/topic/sharing-posts-to-google-1 Google+ has specifically disallowed robo-post...
{ "pile_set_name": "StackExchange" }
Q: Fastest C/C++ comparison function for an opaque field containing doubles Description: Write the fastest comparison function for an opaque field containing a double. Here is my example: // Three-way comparison function: // if a < b: negative result // if a > b: positive result // else: zero result inline int ...
{ "pile_set_name": "StackExchange" }
Q: How to cancel the query sent by MediatR? I'm using MediatR in .Net core 3.1 Blazor application. The following are the query and its handler. public class GetSaleQuery : IRequest<SaleVm> { public GetSaleQuery(string id) { Id = id; } public string Id { get; } } public class GetSaleQueryHand...
{ "pile_set_name": "StackExchange" }
Q: CSS justify Text in Table it is a question which has been asked already a few times, but none of the answers seem to work for me. I have a table, in each Datarow I have with a placeholder for a radiobutton and a text. All the lines should be text-align. justify. because it is a story, all the lines should end at...
{ "pile_set_name": "StackExchange" }
Q: NSMutableArray out of bounds error I have this part of a method that is giving me an error. This is a word filter, user types a, all words come up, etc... Error comes when user deletes the searchbar text, and clicks something on the table, I get out of bounds exception. The print out for filteredListContent is a s...
{ "pile_set_name": "StackExchange" }
Q: Windows 10 deleted folders keep reappearing Since last week my Windows 10 refuses to delete folders, regardless of the location. When I shift-delete a folder (or multiple folders), it disappears but after refreshing the folder it's there again. This even occurs when using rmdir through the commandline and when usi...
{ "pile_set_name": "StackExchange" }
Q: Uncountable models for a language $L_Q$ $L$ is first-order language with identity and $L_Q$ a language obtained by adding to $L$ the quantifier $Q$. Definition of $Q$: If $P$ is a formula and $x$ a variable, $QxP$ is a formula of $L_Q$. If $A$ is an $L_Q$-structure, then $A\models QxP$ if and only if $|\{a\in A\...
{ "pile_set_name": "StackExchange" }
Q: JSON Response {"d":"128.00"} but displaying "128" I have been working on a shopping cart that the user can add/remove order items as they please and am returning an updated sub-total via a webservice using jQuery $.ajax Here is how I am calling the webservice and setting the sub-total with the response. //perform ...
{ "pile_set_name": "StackExchange" }
Q: HTML within PHP syntax I'm trying to show a submit button based on a logical statement using PHP and HTML, but I can't figure out the syntax. if(isset($_POST['newSubmit'])){ <input type="submit" name="newSubmit" id="newSubmit" value="Select" />; } This doesn't seem to work. Do I need to use an echo state...
{ "pile_set_name": "StackExchange" }
Q: Prove that "Every subspaces of a finite-dimensional vector space is finite-dimensional" In Sheldon Axler's "Linear Algebra Done Right" 3rd edtion Page 36 he worte:Proof of every subspaces of a finite-dimensional vector space is finite-dimensional The question is: I do not understand the last sentence"Thus the proc...
{ "pile_set_name": "StackExchange" }
Q: http apache server doesn't handle php files In my centos: php -v works gives 5.4 version the httpd server is running and working AddType application/x-httpd-php .php this line of code is in httpd.conf, why the index.php file isn't hanled? is there anyway that I can check if its all ok? output of rpm -qa | grep p...
{ "pile_set_name": "StackExchange" }
Q: sp_dropuser stored procedure vs drop user statement in tsql As the title suggest, which choice is preferable (in what conditions if any) for removing a user from the database: sp_dropuser stored procedure or DROP USER command ? A: sp_dropuser is being deprecated in favour of DROP USER. To quote MSDN here: This ...
{ "pile_set_name": "StackExchange" }
Q: What is the best way to get IIS for XP Pro SP2 if you don't have the CD? I have a work laptop that was purchased new, but it came without the CD. It has XP Pro, but it did not come with IIS installed. This looked to be a good approach: http://ezinearticles.com/?Guide---How-To-Install-IIS-on-Windows-XP-SP2-Without-...
{ "pile_set_name": "StackExchange" }
Q: Problem with PWM interference I have a following code #include <Servo.h> //library for servo drive int MotorAPinA = 9; //pin number for DC drive int MotorAPinB = 10; //pin number for DC drive Servo myservo; //create object myservo, class servo from Servo library void setup() { // put your setup code ...
{ "pile_set_name": "StackExchange" }
Q: "Strategic" downvotes negatively affect the community The point of the reputation system on Stack Overflow (and all SE sites!) is to encourage good answers to rise to the top and bad answers to not be the first seen. However, when reading through some meta-SE posts, I stumbled across this one: Six simple tips to g...
{ "pile_set_name": "StackExchange" }
Q: CakePHP3 custom finder method using contain and does not work when attempt to display the associated model field This is my custom finder method inside DynamicViewsTable.php public function findAccessibleByUser(Query $query, array $options) { if (empty($options['User']['id'])) { throw new E...
{ "pile_set_name": "StackExchange" }
Q: How to process single training file in parallel I have a file train.csv that contains paths to images and their labels. ie: img1.jpg 3 img2.jpg 1 ... After going through the reading data tutorial I came up with some code to go through each image, resize it and apply distortions: def apply_distortions(resized_imag...
{ "pile_set_name": "StackExchange" }
Q: How do I write png hex values stored in a string to a png file in Ruby? I have a png image hex values stored in a string but I want to write this to a new png file to be viewed. I currently using the Ruby code below (with a small png example) but the hex values are slightly off when I check the output in the new p...
{ "pile_set_name": "StackExchange" }
Q: Arduino led on and off program using hc05 bluetooth module. Bluetooth doesn't recieve what I send using bluetooth terminal app I have tried to connect my arduino with hc-05, and run a simple 'LED on and off' program. When I disconnected the rx and tx pins and tried sending the commands using serial monitor in ardu...
{ "pile_set_name": "StackExchange" }
Q: How to avoid duplicating a function call in this JPA/JPQL query? I have the following JPA query that truncates dates to a full hour and counts them: SELECT a.alertconfiguration.id.id, date_trunc('hour', a.date) AS fromDate, count(*) AS count FROM alert a GROUP BY a.alertconfigura...
{ "pile_set_name": "StackExchange" }
Q: What does the phrase “I don’t do X” mean? I have come across versions of this phrase a few times, and I have to say that I’m stumped. Please allow me to cite the following examples. In the show “The Simpsons”, there is an episode titled “Donnie Fatso”. In that episode, Homer Simpson is sentenced to 10 years in jai...
{ "pile_set_name": "StackExchange" }
Q: Jquery live() binding doesn't work on some elements I do this: JQ('body').delegate('a','click',function() {alert('test');}) All links shows alert after click. But one link not shows. How do you think, why? What can cause this? A: I have to assume something like this: http://jsfiddle.net/uAgS4/ is happenning. $...
{ "pile_set_name": "StackExchange" }
Q: Why exactly would "permanently shadowed polar lunar craters... have substantially higher levels of ³He than sunlit lunar surfaces?" Researching this answer led to ³He in permanently shadowed lunar polar surfaces published in Icarus. The abstract is tantalizing but terse: Abstract Because of their cryogenic temper...
{ "pile_set_name": "StackExchange" }
Q: Spring AOP : Can we access bean object by getBean("beanName") method after applying ProxyFactoryBean on that Bean? I have applied a 'BeforeAdvice' through 'ProxyFactoryBean' on a Bean of type "MyXMLApplication" now I am not able to access the Bean object directly{by getBean(MyXMLApplication.class)}, it is giving e...
{ "pile_set_name": "StackExchange" }
Q: Reading a 1-dimensional Matlab array built on pairwise interactions Let's say I have a bunch of data with labels [0-9]. I want to gather information based on all the pairwise interactions of these data. To avoid redundancy, I do something like this: a = zeros(45, 1); pair = 1; for i = 1:9 for j = (i+1):10 a(...
{ "pile_set_name": "StackExchange" }
Q: Getting version number in InstallShield Limited edition in prebuild step I want to extract the "Product Version" number (of the form aa.bb.cccc) that you type in the General settings of an InstallShield Limited Edition deployment project. Specifically I want to do this in a custom pre-build step. Ideally I'd code ...
{ "pile_set_name": "StackExchange" }
Q: On Judgement day, everything will be destroyed in the earth and heavens On the Day of Judgement everything in the heavens and earth will be destroyed, but what if humans would have inhabited other planets or even other galaxies by then, will they be destroyed? A: On the day of judgment, earth will not be the onl...
{ "pile_set_name": "StackExchange" }
Q: Замена Union Всем привет, знатоки MySQL! Чем можно заменить оператор UNION? A: Вообще - никак. Вы бы привели пример, там видно было бы что сделать можно. Там может изначально запрос корявый был, например, такой: SELECT * FROM table WHERE field = 1 UNION SELECT * FROM table WHERE field = 2 Тогда можно заменить т...
{ "pile_set_name": "StackExchange" }
Q: LockDisplay: Unable to load X11 when using JNA to lock display I am trying to lock the display (disallowing the user to use the keyboard and mouse) in Java, using X11 through JNA. However, when I try running the application on Windows, I get this error: java.lang.UnsatisfiedLinkError: Unable to load library 'X11':...
{ "pile_set_name": "StackExchange" }
Q: Allowing certains keys through a numeric textbox's keypress, keyup event Here's my code and it uses asp.net ajax client library to add event handlers function IsDigit(id) { //short variable,args name for best minification if ($get(id)) { var v = function (e) { var r = /\d/; ...
{ "pile_set_name": "StackExchange" }
Q: i18next warn or lint on missing key for a language (not the fallbackLng) My project is using i18next and react-i18next with success so far. No localize or server side involved. Current setup: - default & fallback language: en - additional language: fr I wanted to automate some things related to error checking:...
{ "pile_set_name": "StackExchange" }
Q: Can I avoid the foreign key properties in my entity? I have the following classes: public class Bicycle { public int BicycleId { get; set; } public DateTime YearOfManufacture { get; set; } public int BicycleManufactuerId { get; set; } public BicycleManufacturer BicycleManufac...
{ "pile_set_name": "StackExchange" }
Q: Why am i getting "terminated due to Timeout" here? I'm getting through the first 2 testcases but all the other testcases are failed because of the timeout error. Can you please tell me what i'm doing wrong? Link - https://www.hackerrank.com/challenges/java-1d-array My Code : import java.io.*; import java.util.*; ...
{ "pile_set_name": "StackExchange" }
Q: How to show that SVM is convex problem It's well-known fact that SVM is convex problem $min \frac{1}{2} \left \| w \right \|^2$ s.t. $(wx_i+b)y_i \geq 1$ I don't understand how given the LP formulation of SVM I can coclude that it's indeed convex problem. A: From Wikipedia: "Every norm is a convex function, by ...
{ "pile_set_name": "StackExchange" }
Q: Show math formula in emacs when coding Is it possible that emacs shows real formulas in the editor if they are written in Latex or similiar? I am asking because it would be much more readable if you are coding (in lets say python or C++) and the comments contain real formulas instead of something like this // Calc...
{ "pile_set_name": "StackExchange" }
Q: Purchasing a battery for a 12VDC, 5A device I have a 12V 5A CPAP device that I'm looking to use while camping for 2 nights. Therefore, I'm trying to determine a deep cycle battery to meet my needs without burning a hole in my wallet. Based on calculations I've seen while browsing the net, I need a battery that c...
{ "pile_set_name": "StackExchange" }
Q: Greater than(>) and less than(<) operator not working in XSLT Below is my XSL where I am trying to check the condition if size of the file is greater then the preset value and try to stop the processing, but it looks like the condition is not getting executed. I am not sure if it is not formatted right way. Can an...
{ "pile_set_name": "StackExchange" }
Q: Surjectivity of Lie group covering map I am trying to solve Chapter's 3 exercise 11 in the "Lie Groups, Lie Algebras and Representations" Brian C. Hall's book. It reads as: If $\tilde{G}$ is a universal cover of a connected Lie group $G$ with projection map $\Phi$, show that $\Phi$ maps $\tilde{G}$ onto $G$. I...
{ "pile_set_name": "StackExchange" }
Q: set definition expression based on slider values Using the Esri JavaScript API I want to control the set.DefinitionExpression values based on a user controlled range slider. The data is loaded from REST as ondemand using: var POP_Total = new FeatureLayer("..../services/RPP_15/HEX_Confidence_Scores/MapServer/2", ...
{ "pile_set_name": "StackExchange" }
Q: How to pseudo-randomize trials without repeating same condition more than three times I know there are lots of pseudo-randomization skills but this one, I couldn't search it so I put it on here. I am using MATLAB 2018a. I've been trying to set up a behavior experiment which has 10 conditions. Each condition has 50...
{ "pile_set_name": "StackExchange" }
Q: Terraform: starting a GKE cluster and Ingress app with one apply I am fairly new to Terraform and am attempting to set-up a GCP GKE cluster and then connect it to an Ingress application. I was able to successfully do so following this tutorial: https://www.youtube.com/watch?v=Vcv6GapxUCI. Here is a link to the Git...
{ "pile_set_name": "StackExchange" }
Q: jPanelMenu - Slide In from Right Side I've just stared working with jPanelMenu for the first time. I have it working properly, except I'd like to customize it to slide in from the right edge, rather than the left. I can see what's going on with Firebug and I understand the CSS I need to change in order to have it ...
{ "pile_set_name": "StackExchange" }
Q: Strike could think of little he wanted to do less Strike could think of little he wanted to do less. (Original is on P.S. below) I can guess the meaning in the context, but it’s not clear to me what structure it has. This is the way I think: Strike could think [of little [(that) he wanted to do less]]. The emb...
{ "pile_set_name": "StackExchange" }
Q: iOS - Placing two label together in centre of their super view I have two label, L1 and L2 of variable and nonidentical length. I want to place these two label using constraints in Xcode. If possible i don't want to manipulate constraints programmatically. guidance will be appreciated. Right image should be the e...
{ "pile_set_name": "StackExchange" }
Q: Tools/R-code to create gain/loss-asymmetry plots The gain/loss asymmetry is a well known stylized fact: It basically states that real financial time series take longer for going up than going down. To detect it a heavy statistical machinery is needed: Detrending the time series, calculating the inverse statistics,...
{ "pile_set_name": "StackExchange" }
Q: Connecting to AWS Aurora DB running in private subnet from 'outside world' We have an Aurora DB cluster running in a private subnet, and want to allow read only access to clients originating from a fixed set of ips (our company ips). Our requirements are: The endpoint for DB read calls should be constant so that...
{ "pile_set_name": "StackExchange" }
Q: Derivative for eigenvalue with respect to 1st / 2nd / 3rd invariant of a matrix Definition There is a 3 by 3 matrix $A$ where $Ax=\lambda x$, so the $\lambda$, where $\lambda$ and $x$ are eigenvalues and eigenvectors of matrix $A$. And then we have the invariants of the matrix, $I_1 = tr(A) = A_{11} + A_{22} + A_...
{ "pile_set_name": "StackExchange" }
Q: COM+ Component hosted by Windows Service in C# to control an external device I have a Windows Service written in C# that controls a device connected to the computer by RS232 (gathers data and allows to control the device). It's named DeviceService and it's working properly. Now other applications use it by WCF ser...
{ "pile_set_name": "StackExchange" }
Q: RxSwift Disposable property isDisposed always false or Disposable closure newer called to cancel worker task I need have some worker task in my observable which I want to cancel when there are no any subscriptions to my observable. But even when my observable have no subscriptions and even I got onDisposed event. ...
{ "pile_set_name": "StackExchange" }
Q: Get result from form website operation I want to get a result from the website when I submit a form. There are several things that can go wrong. In a simple scenario I want to return: true - when form was submitted false - when form wasn't submitted null - when we don't know if form was submitted or not I did t...
{ "pile_set_name": "StackExchange" }
Q: Everything inside < > lost the content in ajax-Jquery html I'm doing some live edit on my table and I am trying to print some content inside this < sdfsdfsdfsdfs>. I am not able to print this in html in the jquery html as I'm able to show this content as I give a space before the content then it works fine but wit...
{ "pile_set_name": "StackExchange" }
Q: Does Python doctest remove the need for unit-tests? A fellow developer on a project I am on believes that doctests are as good as unit-tests, and that if a piece of code is doctested, it does not need to be unit-tested. I do not believe this to be the case. Can anyone provide some solid, ideally cited, examples ei...
{ "pile_set_name": "StackExchange" }
Q: How to use Rserve with JSP on Tomcat? (Windows 7) I am trying to write a web page using JSP which can talk to R via Rserve. I have installed R and Rserve and both are running (I have checked in task manager). What I need to to do now is make a connection between the two. I have found examples of JAVA but not JSP. ...
{ "pile_set_name": "StackExchange" }
Q: How do I find out the hostname of my Mac OS X server? I'm trying to connect with mysql_connect using PHP. I was wondering how to find the hostname when I turn my MacBook into a server by turning on the personal webpage. I have Apache, MySQL and PHP enabled. Is the hostname what you ssh into? It says that my comp...
{ "pile_set_name": "StackExchange" }
Q: Build issue with nuget package I am trying to deploy a React App on Visual Studio, but I am having issues with a nuget package. I keep getting the error: Could not load file or assembly 'Microsoft.AspNetCore.Razor.Language, Version=2.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot fin...
{ "pile_set_name": "StackExchange" }
Q: Is it possible to bulk delete from a many-many association with HQL? And if so, what is the syntax? Assume that I want an instance of Foo to be unassociated from all instances of Bar: In SQL it would simply be: delete from FOO_BAR_MAPPING where FOO_ID = ? In HQL, I assumed it would be something like: delete from ...
{ "pile_set_name": "StackExchange" }
Q: What is the difference between normal stickers and foil stickers in CS GO? I bought one normal sticker for pick-em challenge and it cost 0.99$. Now it shows that I can sell it at 0.78$ but in market there are few foil stickers which are more expensive (7$ to 12$) but the stickers are the same. In my case it's team...
{ "pile_set_name": "StackExchange" }
Q: Fomulário dentro de formulário php/ajax/js Bom a primeira vista, o título já demonstra o erro, porém esse é o processo que necessito mas não tenho ideia de como executá-lo. Dado um form simples por exemplo: <form method="post" action="trata_form.php"> <input type="text" placeholder="Insira sua cor"/> <b...
{ "pile_set_name": "StackExchange" }
Q: About positive functions on an infinite set Let $F\in BV([0,1])$, $F\geq 0$, and $F\gt 0$ on an infinite set. Can we have $F=0$ almost everywhere w.r.t. Lebesgue measure? I'd like to say no but I can't prove it... A: I think, we can. Take a kind of Dirichlet-type function $$f(x)=\begin{cases} 1&\hbox{ for } x\in...
{ "pile_set_name": "StackExchange" }
Q: Accesing staic variable from static function C++ class A { public: static int i; static int inc(); }; int A::inc() { i++; return i; } int main() { A::inc(); } As we know that we can access static member variables from static method. But this code is giving me a error "A::i", referenced from...
{ "pile_set_name": "StackExchange" }
Q: Identification of a host from vmware I know a software that is able to identify me as a host even when it runs inside a vm (using vmware running Windows 7 x64, host is Windows 10 x64). They generate some unique signature/hardware fingerprint and it's based on hardware. This fingerprint is the same on host PC and t...
{ "pile_set_name": "StackExchange" }
Q: Target first element inside its parent I'm having trouble targeting the first element inside a list item using :first. <li data-id="321"> <ul> <li data-id="380"> <ul> <li data-id="385"></li> </ul> </li> <li data-id="382"></li> </ul> </li> $("...
{ "pile_set_name": "StackExchange" }
Q: Linear bijection between a normed vector space and its proper subspace Let $X,Y$ be normed vector spaces such that $X$ is a proper subspace of $Y$ (i.e., $X$ is a subspace of $Y$ and $X\neq Y$), and $X$ is dense in $Y$. Is there a linear bijection $T$ from $X$ to $Y$? If it does exist, can $T$ and $T^{-1}$ both be...
{ "pile_set_name": "StackExchange" }
Q: In Rails 3, how can I save user search history to the database with no membership/authentication system? Currently, the site is storing "previously viewed items" via cookies. I need to take that a step further and not only store those items in the database, but save the user's most recent search, so that they ca...
{ "pile_set_name": "StackExchange" }
Q: Possible to make this SQL query faster? Just curious if it's possible to make this query any faster? or if there is any other similar queries that would work better? SELECT id,source FROM posts WHERE id = ANY(SELECT image_id FROM `post_tags` WHERE tag_id = (SELECT id FROM `tags` WHERE tag = _utf8 '$TAG' collate ut...
{ "pile_set_name": "StackExchange" }
Q: Fatal error: Call to undefined function finfo_open() in php I am new to php, i have created code for upload images to sql database and retrieve the image using php. Here is my code: <html> <head><title>File Insert</title></head> <body> <h3>Please Choose a File and click Submit</h3> <form enctype="multipart/form-d...
{ "pile_set_name": "StackExchange" }
Q: Why do I need nginx when I have uWSGI There are many tutorials on how to configure nginx to cooperate with uWGSI when I want to deploy Django application. But why do I need nginx in this kit? uWSGI itself can serve WSGI Python applications, it can serve static files, it can also do SSL. What can nginx do which uW...
{ "pile_set_name": "StackExchange" }
Q: Unique representation and sumsets Let $A$ be a finite, nonempty subset of an abelian group, and let $2A:=\{a+b\colon a,b\in A\}$ and $A-A:=\{a-b\colon a,b\in A\}$ denote the sumset and the difference set of $A$, respectively. If every non-zero element of $A-A$ has a unique representation as $a-b$ with $a,b\in A$, ...
{ "pile_set_name": "StackExchange" }