text
stringlengths
181
35.5k
meta
dict
Q: Convex Optimization: Gradient of $\log \det (X)$ In Boyd's CVX book, there is a step by step analysis of the gradient of so called log det function Three confusions: Is the determinant for positive definite matrix exactly equivalent to the sum of eigen values is equal to the trace? There is the claim that becau...
{ "pile_set_name": "StackExchange" }
Q: Replace image when mouse hovers I have this setup here for when my mouse hovers over another photo. For some reason the bootply http://www.bootply.com/HoZBYvFSpx isn't working with it, but here is the code there anyway. When I run it, it runs very slow and when I scroll by it, it slows the whole browser down. Is t...
{ "pile_set_name": "StackExchange" }
Q: How to integrate SQLAlchemy and a subclassed Numpy.ndarray smoothly and in a pythonic way? I would like to store NumPy arrays with annotations (like name) via SQLAlchemy within a relational database. To do so, I separate the NumPy array from its data via a data transfer object (DTONumpy as part of MyNumpy). NumP...
{ "pile_set_name": "StackExchange" }
Q: Law of Demeter can easily be bypassed? Is it always possible to work around the Law of Demeter simply by creating more methods? Some people mention that this is not valid (http://wiki.c2.com/?LawOfDemeterIsHardToUnderstand), but it seems like it should be valid, since the Law of Demeter allows sending messages to ...
{ "pile_set_name": "StackExchange" }
Q: How can I get value in values of item of checkboxlist ? c# I want to match the values from reader and checkbox to change selected values of item of checkboxlist. But it does not work and I don't know what to do? Thanks. while (reader.Read()) { CheckBoxList1.Items.FindByValue(reade...
{ "pile_set_name": "StackExchange" }
Q: What exactly triggers a row enhance awakening? The row enhance awakening says it gives a 10% damage boost when you match a row of 6 orbs of its color. Do the orbs really have to be in a row? What if I match 6 orbs of its color in an L-shape, or in a 2x3 block? Assuming they don't have to be in a row, does it have...
{ "pile_set_name": "StackExchange" }
Q: FXML set percentWidth on target node directly Is it possible to set the percentWidth in the target node directly? I tried but im getting many errors if I do so: <GridPane> <Button fx:id="node" id="node" text="fooBar" GridPane.columnIndex="1" GridPane.hgrow="always" GridPane.percentWidth="25"/> </GridPane> ...
{ "pile_set_name": "StackExchange" }
Q: Wrong consistency when making "after eight" chocolate I am following a very simple recipe for making peppermint-stuffed chocolate, like the "After Eight" kind. I have a problem with the uniformity of the mint mass and am looking for advice. A few spoons of egg white is hand-mixed with 60 g flormelis (icing sugar)....
{ "pile_set_name": "StackExchange" }
Q: convert class string to class I have the code below in my ASP.NET app, I would like to convert converterName variable to Class and pass it to FillRequest<T> method. Is it possible? var converterName = HttpContext.Current.Items["ConverterName"] as string; FillRequest<Web2ImageEntity>(Request.Params); Alternativel...
{ "pile_set_name": "StackExchange" }
Q: Concat two columns with Pandas Hey I'm trying to combine two columns in Pandas, but for some reason I'm having trouble doing so. Here is my data: OrderId OrderDate UserId TotalCharges CommonId PupId PickupDate Month Year 0 262 1/11/2009 47 $ 50.67 TRQKD 2 1/12/2009 1 2009 1 278 1/20/20...
{ "pile_set_name": "StackExchange" }
Q: Redirect from CustomProductDisplayCmd to 404 page if unavailable product My custom implementation of a ProductDisplayCmd looks like this... public void performExecute( ) throws ECException { super.performExecute(); (my code here) Now, if a product is unavailable, the super throws an ECApplicationException...
{ "pile_set_name": "StackExchange" }
Q: checkBox is checked ? Looping inside checkbox elements int count = listView.getChildCount(); for (int i = 0; i < count; i++) { View child = list.getChildAt(i); //check that child.. } I wanted to use the following code to see if the total number of checkBox(es) were checked or not. Like if I have 3 checkBo...
{ "pile_set_name": "StackExchange" }
Q: Erlang: Finding my IP Address I'm attempting to complete a Load Balancer / Login Server / Game Server setup using Redis for some parts. Load balancing is one of them. In my Redis load balancing instance I'm using ordered sets. The key is the application name, the members are the IP addresses of the game servers. H...
{ "pile_set_name": "StackExchange" }
Q: Error : There is already an open DataReader associated with this Command which must be closed first I am creating a register form and I have to check if the email is valid and already used in my database. I figured out one method but I have errors in my code. If it's showing "something wrong" and after I try to us...
{ "pile_set_name": "StackExchange" }
Q: default copy constructor Can the (implicit)default copy constructor be called for a class that has already user-defined constructor but that is not the copy constructor? If it is possible then, suppose we define the copy constructor for the class explicitly, now can the (implicit)default constructor be called? A...
{ "pile_set_name": "StackExchange" }
Q: Javascript Factorialize returns incorrect result Just wondering if anyone can tell me why this returns 100 and not 120? It should calculate the total number of the factor. function factorialize(num) { for(var i = 1; i <= num; i++ ) { var fact = i+i; total = fact * fact; } return total; } factor...
{ "pile_set_name": "StackExchange" }
Q: Issue with SELECT from database with php <?php try{ include("dbconnectie.php"); $query = $db->prepare("SELECT * FROM shop WHERE id_u = :id"); $query->bindParam("id", $_SESSION['id_u']); $query->execute(); $result = $query->fetchALL(PDO::FETCH_ASSOC); echo "<table...
{ "pile_set_name": "StackExchange" }
Q: Personal Valgrind Anomaly First I would like to thank in you in advance for any help in this matter. The Valgrind output pasted below is stemming from the following single line of C code. for( j=i;j<list->size-1;j++ ) s3->delete_tail( s3 ); However, if I change the line to lets say, for( j=i;j>=0;j-- ) s3->delete...
{ "pile_set_name": "StackExchange" }
Q: Does 3>&1 imply 4>&3 5>&3 etc.? I'd expect echo foo | tee /proc/self/fd/{3..6} 3>&1 to fail with errors like /proc/self/fd/4: No such file or directory etc., but to my surprise, it outputs foo foo foo foo foo It's like 3>&1 causes all following descriptors to be redirected to stdout, except it doesn't work if I ...
{ "pile_set_name": "StackExchange" }
Q: Count distinct on elastic search How to achieve count distinct function on elastic search type using sql4es driver? Select distinct inv_number , count(1) from invoices; But it returns the total count of the particular invoice number. A: Elasticsearch doesn't support deterministic DISTINCT counts (source). It su...
{ "pile_set_name": "StackExchange" }
Q: Dissipative time-stepping scheme for first order in time system When solving semi-discrete equations (originating from finite element models, for example), which are second-order in time of the form \begin{equation} M\ddot d + C\dot d + Kd = F, \end{equation} where $d$ is the solution vector, $M$, $C$ and $K$ are ...
{ "pile_set_name": "StackExchange" }
Q: TokenMismatchException in VerifyCsrfToken.php line 46 ocassionally showing I already set the token in the form: <form action="{{ route('user.store') }}" method="post"> <input type="hidden" name="_token" value="{!! csrf_token() !!}"> <legend>Agregar nuevo usuario.</legend> <div cla...
{ "pile_set_name": "StackExchange" }
Q: Is there a read only memory in the stack for const variable declared in a function? I know global const is stored in .rodata Also, I know variables declared in functions are stored in the stack. However since const is supposed to be only read only, is there a special section in stack for them? how are accesses to ...
{ "pile_set_name": "StackExchange" }
Q: How to change the trigonometric identity to sec^2(x)? Evaluate the definite integral: $$\int_{\frac{\pi}{8}}^\frac{\pi}{4}(\csc(2\theta)-\cot(2\theta)\ d\theta$$ Finding the derivative gives me this, which is confirmed by the steps in Wolfram Alpha. This is the answer as the last step that I also got. $$-2\csc(2\t...
{ "pile_set_name": "StackExchange" }
Q: Erro unexpected end of file no cakephp Estou com um projeto em cakephp que está na versão 1.3.15 e estou tentando rodar no Xampp mas está dando esse erro como o print em anexo e essa linha corresponde ao fechamento da minha tag html. Alguém sabe como eu devo proceder? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 ...
{ "pile_set_name": "StackExchange" }
Q: What does a number in a module name mean in Intellij IDEA project view? I believe that is "static web" module. Please notice "6" number on the screenshot. I don't know when it appeared and what it means. A: It's a bookmark. To show and edit bookmarks use the following menu: Navigate > Bookmarks > Show bookmarks...
{ "pile_set_name": "StackExchange" }
Q: how to script out the user defined table types? I can Get name and definition of all table types using either of the following scripts: SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED IF OBJECT_ID('TEMPDB..#RADHE') IS NOT NULL DROP TABLE #RADHE CREATE TABLE #RADHE ( RADHE SYSNAME, COLUMN_NAME SYSNAME, TYP...
{ "pile_set_name": "StackExchange" }
Q: why jenkins source code management configuration none? While i am trying to configure my project on jenkins. i need to provide git. but in source code management option default none. how to add git. kindly some one help me, thank you A: Read how to install a plugin: https://wiki.jenkins-ci.org/display/JENKINS/P...
{ "pile_set_name": "StackExchange" }
Q: Why $\sqrt{\sin^2 x}<0.5$ can be transformed in $|\sin x|<0.5$? Why $\sqrt{\sin^2 x}<0.5$ can be transformed in $|\sin x|<0.5$. Then $|\sin x|<0.5$ can be transformed in $-0.5<\sin x<0.5$? What is the proof of the inequality? A: It's hard for me to guess what you mean by "be mentioned", but: $$b>0\;\;\Longrighta...
{ "pile_set_name": "StackExchange" }
Q: Sidekiq WARN: uninitialized constant ViewDBWorker Rails 4 I'm using Rails 4.1.5 and Sidekiq 3.3.0. I have set the recurrence of this worker to execute after every one minute. It works fine on local but throwing an error on production and staging environments. Although the worker is doing its job and saving records...
{ "pile_set_name": "StackExchange" }
Q: Sudden collapse of kableExtra in [R] I should probably point out that I am still fairly new to working with RMarkdown and the kableExtra R package, but I have a document that was knitable last week and now no longer knits despite no physical changes to the document. The error message I receive is the following Er...
{ "pile_set_name": "StackExchange" }
Q: Check database connectivity using Shell script I am trying to write a shell script to check database connectivity. Within my script I am using the command sqlplus uid/pwd@database-schemaname to connect to my Oracle database. Now I want to save the output generated by this command (before it drops to SQL prompt) ...
{ "pile_set_name": "StackExchange" }
Q: How to get total count for each star rating? I'm using Woocommerce and I'm trying to get the total for each star rating using the post id (just like in the image below). Each rating is stored on my database as a number from 1 - 5 I just don't know how to go about retrieving the total count for each rating. Any hel...
{ "pile_set_name": "StackExchange" }
Q: Deploying to iOS 3.0 with XCode 4.4 Does anyone know where I can get a simple project template for deploying apps to iOS 3.0 while using XCode 4.4? edit: Or any other way to create apps with a deployment target of 3.2 or lower with XCode 4.4? edit: And what is the current minimum deployment target the AppStore all...
{ "pile_set_name": "StackExchange" }
Q: Woocommerce show product I am a little confused as to that the issue is here, I am trying to pick out a specific product by doing this: <?php ini_set('max_execution_time', 0); //I saw maximum execution time error on your image - this is for that $args = array( 'post_status' => 'publish', 'post_type' ...
{ "pile_set_name": "StackExchange" }
Q: check if the given date(in string format) has past present date using JS I have a date range like 12/20/12-12/24/12(start date-end date) in string format . I need to check if start date has past the present date. Can it be done using JS or j-query? the date range is in string ? A: Use the power of the Date objec...
{ "pile_set_name": "StackExchange" }
Q: LINQ to SQL, ExecuteQuery, etc This might all be a bit subjective: Our organization has made a strong attempt to adopt LINQ to SQL as our primary data access method and for the most part this works well. (Let’s leave the EF out of the discussion.) Some of our developers find LINQ difficult and migrate back to trad...
{ "pile_set_name": "StackExchange" }
Q: Overwrite default XMLRPC function from plugin I want to overwrite the "metaWeblog.newMediaObject" xmlrpc call so the file is saved remotely. From mw_newMediaObject in class-wp-xmlrpc-server.php, i see that there is a hook: do_action('xmlrpc_call', 'metaWeblog.newMediaObject'); So I should be able to do something...
{ "pile_set_name": "StackExchange" }
Q: Rails 3 Auto Select from Collect_select I have the following associations: Town -> has_many :outlets User -> belongs_to :town Outlet -> belongs_to :town, has_many :problems Problem -> belongs_to :outlet In the Outlets Page, I want to be able to click a button that will take me to the New Problem page. In the 'New...
{ "pile_set_name": "StackExchange" }
Q: What framework combination to choose for developing Windows 8 hybrid application? I am planning to develop a hybrid application for Windows tablet. Which framework or tool I should use. Currently, I am thinking to go for PhoneGap/Sencha combinations but not 100% confident about it as I haven't got much read about ...
{ "pile_set_name": "StackExchange" }
Q: SQL How to select the value of the end of season(every three month) Supposed I have some data as below: code vol val num test_date ------------------------------------------ 1 00001 500 0.1 111 20180105 2 00001 1000 0.2 222 20180304 3 00001 200 0.1 ...
{ "pile_set_name": "StackExchange" }
Q: Errors prevented isopacket load: While loading isopacket `constraint-solver`: Cannot call method 'slice' of null When launching my meteor app with the following command: MONGO_URL="mongodb://localhost:27017/vision-test" PORT=8282 ROOT_URL="sertal.esb.local:8383" meteor -p 8383 I get following error: Errors preven...
{ "pile_set_name": "StackExchange" }
Q: Matrix over a finite field? I am trying to solve the following problem: Given is a $3\times 3$ matrix $M$ over $\mathbb{F}_{7}$, such that for every vectors $v,w\in \mathbb{F}_{7}^3\setminus \{0\}$ there exists an integer $n$ with $M^{n}v=w$. Find this $M$. Well, i think i have to look for matrices with full rank...
{ "pile_set_name": "StackExchange" }
Q: Sqlite Transaction with read and write is it possible to use a transaction in android to read value that will be deleted later in the same transaction? Something like this: SQLiteDatabase db = helper.getReadableDatabase(); db.beginTransaction(); String whereClause = "COL1 = ? AND COL2 = ?"; // make a SELECT Quer...
{ "pile_set_name": "StackExchange" }
Q: Uniqueness of differential equation solutions I need to solve this DE $$y'' - 2x^{-1}y' + 2x^{-2}y = x \sin x \tag{*}$$ I found the complementary functions to be $x^2$ and $x$, and also noticed by guessing that the particular integral is $y = - x \sin x$ so the general solution is $$y = Ax + Bx^2 + -x \sin x$$ But...
{ "pile_set_name": "StackExchange" }
Q: Using speedglm on a data frame with a deleted factor I am trying to use the speedglm package for R to estimate regression models. In general the results are the same as using base R's glm function, but speedglm delivers unexpected behavior when I completely remove a given factor level from a data.frame. For exampl...
{ "pile_set_name": "StackExchange" }
Q: What is the correct relationship between light intensity and wavelength? So we looked at the emission line spectra of noble gases in the lab today (hydrogen, neon, helium). And I noticed that the brightest spectral line in the helium spectrum is the yellow one and the faintest was the violet/blue. But isn't wavele...
{ "pile_set_name": "StackExchange" }
Q: Enviar notificación cuando se edite una pregunta que voté para cerrar Me ha pasado mas de una vez: Veo una pregunta con un contenido interesante, pero que falla en las formas: mal explicada, sin código de ejemplo, difícil de entender, ... En definitiva, una pregunta que estoy interesado en contestar. Voto para ce...
{ "pile_set_name": "StackExchange" }
Q: Change element content with onClick in React In my application I have multiple blocks generated dynamically and each one of them has an onClick event. My goal is to be able to change the contents of the div when the click happens. Is there a way to do this thru event.target property of the onClick event? Or shou...
{ "pile_set_name": "StackExchange" }
Q: Storing data to NSUserDefaults In my iPhone app, I have a class called Contact which consists of an ABRecordRef to serve as a reference to a particular contact. I need to store groups of these contacts in NSUserDefaults, but things aren't working out so well since Contact is a custom class. Any ideas of what to d...
{ "pile_set_name": "StackExchange" }
Q: Do Indus texts potentially have the oldest Indo-European text that we know of? There are some texts left by an ancient civilization in India. They were written around 2700-1800 BCE. They have not been able to decipher them yet. Is it possible that the texts were Indo-European? Or, could some of the later texts be ...
{ "pile_set_name": "StackExchange" }
Q: Selecting a table row who's siblings are hidden I have a html table with the following structure: <table> <tbody> <tr><th>heading1</th></tr> <tr style="display: none"> <td>data1</td></tr> <tr style="display: none"> <td>data1</td></tr> </tbody> <tbody> <tr><th>heading2</th></tr> <tr> <td>data1</td></tr> ...
{ "pile_set_name": "StackExchange" }
Q: Does "old" literally mean "old" in this context, or is it an intensifier?    "Haven't I told you he's not going?" he hissed. "He's going to Stonewall High and he'll be grateful for it. I've read those letters and he needs all sorts of rubbish –– spell books and wands and ––"    "If he wants ter go, a great Mu...
{ "pile_set_name": "StackExchange" }
Q: How to get user_authenticatedID in Application Insights for Azure Functions App? I have been going through several different resources to add this but it does not seem to be working. I would like to record the authenticated user as a request is made to my Azure function. I can obtain the authenticated user from th...
{ "pile_set_name": "StackExchange" }
Q: Display WordPress Shortcode as Plain Text Is there any way to display WordPress shortcode as a plain text on the post? For example to show [gallery] just as this. Thank you A: I think the easiest way is to double the brackets, but you could also replace the brackets as following: [ with &#91; ] with &#93;
{ "pile_set_name": "StackExchange" }
Q: Method can be made static, but should it? Resharper likes to point out multiple functions per asp.net page that could be made static. Does it help me if I do make them static? Should I make them static and move them to a utility class? A: Performance, namespace pollution etc are all secondary in my view. Ask you...
{ "pile_set_name": "StackExchange" }
Q: Constraints on sliding windows Let $L\subseteq \Sigma^*$ be a language of finite words and $n>0$ some integer. I would like to know if anything is known on the time and space complexity with respect to $n$ to check for membership in $L$ for a sliding window of size $n$ over an infinite stream. Here I mean the incr...
{ "pile_set_name": "StackExchange" }
Q: Python csv not writing to file I am trying to write to a .tsv file using python's CSV module, this is my code so far file_name = "test.tsv" TEMPLATE = "template.tsv" fil = open(file_name, "w") # Added suggested change template = csv.DictReader(open(TEMPLATE, 'r'), delimiter='\t') new_file = csv.DictWriter(fil, fi...
{ "pile_set_name": "StackExchange" }
Q: Compute running sum in a window function I have issues with this running sum in Redshift (uses Postgres 8): select extract(month from registration_time) as month , extract(week from registration_time)%4+1 as week , extract(day from registration_time) as day , count(*) as count_of_users_registered , sum(count(*...
{ "pile_set_name": "StackExchange" }
Q: Unbelievable strange file creation time problem I have a very strange problem indeed! I wonder if the problem is in the framework, OS or maybe it's just me, misunderstanding things... I have a file, which might be created a long time ago, I use the file, and then I want to archive it, by changing it's name. Then I...
{ "pile_set_name": "StackExchange" }
Q: If formula show diffrent result I need formula to show me different result "if" O18>O16 =IF($O$18>$O$16;O19);IF($O$16>=A27;$O$17+A27;"") But it is not working. Thanks in advance. A: So you want IF O18>O16 THEN O19 ElSE IF O16 > A27 then O17+A27 ELSE "" ? =IF(O18>O16,O19,IF(O16>A27,O17+A27,""))
{ "pile_set_name": "StackExchange" }
Q: What's an alternative to GWL_USERDATA for storing an object pointer? In the Windows applications I work on, we have a custom framework that sits directly above Win32 (don't ask). When we create a window, our normal practice is to put this in the window's user data area via SetWindowLong(hwnd, GWL_USERDATA, this),...
{ "pile_set_name": "StackExchange" }
Q: Algolia: How to implement customized Featured Products in a results page? I want to feature (move to top of results) certain products on only certain search result pages. With only a single search performed. A Custom Ranking Attribute would boost a product's ranking for all pages, instead of certain pages. A somew...
{ "pile_set_name": "StackExchange" }
Q: Wordpress Uploaded Images Show Broken Link I can upload images via the WP Photo Seller Plugin, but all the links to the images show as broken. Anyone know what I can change to get them to show? I checked the folder permissions and they seem to be fine. Here is a link: http://pics.teamdance.com/photogallery/gall...
{ "pile_set_name": "StackExchange" }
Q: How do I overload the << operator to print a class member? Here is the class class graph { public: graph() {}; // constructor graph(int size); friend ostream& operator<< (ostream& out, graph g); private: int size; bool** grph; }; This is how I generate the g...
{ "pile_set_name": "StackExchange" }
Q: Why do the following program leaks memory? I tried to write my first GTK+-program. Compilation went fine but valgrind says that there are memory leaks. I'm unable to find those so could anyone say what am I doing wrong? Or is it possible at all to write graphical Linux programs without memory leaks? #include <gtk/...
{ "pile_set_name": "StackExchange" }
Q: How to restrict the drag and drop area in a canvas I have a canvas,lets say of dimensions 500x600.I have some controls inside that canvas.User can rearrange the controls by drag and drop.But I want to restrict the drag and drop within that canvas. For example:There is a button in the canvas.User can drag and drop...
{ "pile_set_name": "StackExchange" }
Q: Inheritance - Return extended class from parent class I want to make a super class for database access called DataModel. I have also a SQLiteOpenHelper with generic methods. My problem is to convert the type of result on parent class. I will explain with generic code. Supose an all() method in parent class: public...
{ "pile_set_name": "StackExchange" }
Q: Grails 3 change default service scope In grails 3, the default service scope is Singleton, the documents show it's easy to override this by defining static scope='request' in the service class. Is it possible to change the default service scope for an application similar to the way it is done for controllers in ...
{ "pile_set_name": "StackExchange" }
Q: Pointer with java and string variable I gave a value (as variable) to a String variable. The problem is that when I change this value, it doesn't change the other variable : Code : String test = "hello"; String myname = test; test = "how are you ?"; The output of myname is "hello" I want that the output be "h...
{ "pile_set_name": "StackExchange" }
Q: How does the addition of のか to the end of a sentence affect the meaning? I've always had trouble understanding か (question particle) in casual speech. I read that in casual situations, か can be used to give the sentence an exasperated or sarcastic tone. Like in: 負けっかよ! As if I'd lose! I think that I understand th...
{ "pile_set_name": "StackExchange" }
Q: devExtreme TreeView Expand, ScrollTo and Focus is it possible to expand a treeview, scroll to a node and focus it on one function? $("#buttonTest").dxButton({ text: "Test", onClick: function () { editTreeView.expandItem(editTreeView.element().find(".dx-treeview-item")[0]) var currentN...
{ "pile_set_name": "StackExchange" }
Q: Real time chart using jquery Flot that shows time accurately? I am trying to use Flot: http://www.flotcharts.org to create a realtime chart that is updated via ajax. I am basing my code on the following: var cpu = [], cpuCore = [], disk = []; var dataset; var totalPoints = 100; var updateInterval = 5000; var now =...
{ "pile_set_name": "StackExchange" }
Q: How can I maintain consistent DB schema accross 18 databases (sql server)? We have 18 databases that should have identical schemas, but don't. In certain scenarios, a table was added to one, but not the rest. Or, certain stored procedures were required in a handful of databases, but not the others. Or, our DBA ...
{ "pile_set_name": "StackExchange" }
Q: How can I move a Label with a KeyEvent? (JavaFX) I just learned how to make a GUI application with JavaFX with a FXML file. There is one thing that I don't understand though. When I try to add a KeyListener to a Label or the layout in my FXML file, the code doesn't get executed. It is a simple task like System.out...
{ "pile_set_name": "StackExchange" }
Q: Paradox regarding phase transitions in relativistic systems The main question I would like to ask is whether quantities such as density are dependent on the frame of reference. I have searched several forums and the answer is somewhat controversial. Some answers use the concept of relativistic mass to justify that...
{ "pile_set_name": "StackExchange" }
Q: Tough Moment of Inertia Problem About a Super Thin Spherical Shell Using Spherical Coordinates I need to compute the moment of inertia of a spherical shell with radius $R$, constant density $\rho$, and total mass $M$ throughout some (any) axis through the origin. The question specifies that this should be a doubl...
{ "pile_set_name": "StackExchange" }
Q: Are some motherboard brands, per se, of lower quality? I have heard in different occasions that some motherboard brands (such as PC Chips and ASRock) are cheap, in both senses: less expensive and of lower quality, because the manufacturers use components that don't reach certain standars and/or have been discarded...
{ "pile_set_name": "StackExchange" }
Q: script/plugin install for rails 4 (daemon generator) I am new to rails and am trying to get up and running with the daemons gem by following railcasts http://railscasts.com/episodes/129-custom-daemon. I am using linux Mint 17 and my Gemfile looks like so: source 'https://rubygems.org' gem 'rails', '4.1.1' gem 'pg...
{ "pile_set_name": "StackExchange" }
Q: $L(M) = L$ where $M$ is a $TM$ that moves only to the right side so $L$ is regular Suppose that $L(M) = L$ where $M$ is a $TM$ that moves only to the right side. I need to Show that $L$ is regular. I'd relly like some help, I tried to think of any way to prove it but I didn't reach to any smart conclusion. what is...
{ "pile_set_name": "StackExchange" }
Q: File cannot be accessed because it is being used by another program I am trying to remove the space at the end of line and then that line will be written in another file. But when the program reaches to FileWriter then it gives me the following error Process can't be accessed because it is being used by another p...
{ "pile_set_name": "StackExchange" }
Q: Gradle couldn't execute npm command I'm trying to run a npm command inside of gradle task but I'm getting a strange error: Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'npm' at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27) at ne...
{ "pile_set_name": "StackExchange" }
Q: Singleton Overuse I was considering using a Singleton pattern in a winforms application that I am working on, but a lot of people seem to think that singletons are evil. I was planning on making a "Main Menu" form which is a singleton. I can't think of any reason that I would want multiple instances of my Main Men...
{ "pile_set_name": "StackExchange" }
Q: How to load a partial view in a new window? I have an MVC partial view. I try to load it using window.open by calling the controller name and the action name. I got from the action the related partial view back but there are no links to stylesheets and scripts because this is a new window. How can I fix this issue...
{ "pile_set_name": "StackExchange" }
Q: Setar atributos em um único bloco JS Existe alguma maneira de fazer isso? Eu to repetindo muito código com o setAttribute em um único elemento, então estou pesquisando se existe alguma forma de fazer isso de um jeito mais organizado e otimizado, mas não achei ainda. Abaixo vai um EXEMPLO do que to fazendo e um EXE...
{ "pile_set_name": "StackExchange" }
Q: Navigate to contact's profile I want to open the default windows phone contact's profile out of my own app. I use the following code to receive all contacts: Contacts contacts = new Contacts(); contacts.SearchCompleted += HandleContactsSearchCompleted; contacts.SearchAsync(string.Empty, FilterKind.None, null); Th...
{ "pile_set_name": "StackExchange" }
Q: Creating form with fieldset legend is generating errors I am experiencing some issues when trying to generate a form using 'inputs' <?php echo $this->Form->create('Post'); echo $this->Form->inputs(array( 'legend' => 'Personal information', 'name', 'nickname', 'age', 'email')); echo $this->Form->inputs(arra...
{ "pile_set_name": "StackExchange" }
Q: Sieve Of Erastothenes using Java have started learning Java recently and was looking into some easy algorithms. I found the Sieve Of Erastothenes algorithm here I am trying to get better at writing good code for my solutions. Please give me your suggestions. import java.util.Scanner; public class SieveofErastothe...
{ "pile_set_name": "StackExchange" }
Q: Problems with sprockets when deploying Rails 3.1.rc4 I'm sure that I am just overlooking something simple here but this has been driving me crazy all night! When trying to deploy a Rails 3.1.rc4 application to the Cedar stack on Heroku (I did this successfully a month ago with a similar Gemfile) I am receiving thi...
{ "pile_set_name": "StackExchange" }
Q: Why can't SBT's thread context classloader load JDK classfiles as resources? lihaoyi test$ tree . └── Foo.scala 0 directories, 1 file lihaoyi test$ cat Foo.scala object Main{ def main(args: Array[String]): Unit = { println(getClass.getClassLoader.getResourceAsStream("java/lang/String.class")) println(g...
{ "pile_set_name": "StackExchange" }
Q: Why does the android app freeze while copying files? I am making a simple file explorer for Android. So, the problem is that when I copy files or folders to any place of file system, the app just freezes until the file/folder is copied. I have to notice that the app doesn't crash, doesn't send errors to the Logcat...
{ "pile_set_name": "StackExchange" }
Q: Why is a .bak so much smaller than the database it's a backup of? I just took a backup of a SQL Server database. The MDF and LDF files together total around 29 GB, but the .bak file was only 23 GB, about 20% smaller. My first guess when one version of a set of data is smaller than another version containing the s...
{ "pile_set_name": "StackExchange" }
Q: Remove 0-byte (UTF-8) characters in String I am currently programming a multi-player game, and I am working on the networking side of it all right now. I have a packet system set up, and the way it works (with Strings at least) is that it takes a number of characters to a maximum of "X" characters. The characters ...
{ "pile_set_name": "StackExchange" }
Q: Error: In this configuration Angular requires Zone.js I'm trying to run a Grails 2.3.9 application that use inside Angular 5. For this i create a new Grails project and a new angular project with angular-cli (ng new app). After this i made these steps. Build the angular project to get the resources bundles: ng bu...
{ "pile_set_name": "StackExchange" }
Q: How to check Facebook login status in android application.? As i checked in previous answers they suggest to use Session to check the Facebook logon status, but that class got removed in new versions, any one can you help me out to resolve this. How can i find my current login status - facebook API android A: yo...
{ "pile_set_name": "StackExchange" }
Q: How should/must Catholics handle, transport, and use holy water? Some shrines, like the Shrine of Padre Pio Chapel in Quezon City, distribute holy water in bottles for Catholics who want some. So far the only guideline I saw in getting holy water from a basin is that to get one, you use a clean pitcher to scoop th...
{ "pile_set_name": "StackExchange" }
Q: How do I get associated models to run __construct? Little history; I hate the fact that I can't use enums in CakePHP, but I get it. However, another pet peev I have is that my Booleans return 0 or 1 and there is no way to universally turn them to yes' and no's. So I though I would create a little function in the ...
{ "pile_set_name": "StackExchange" }
Q: VB.net connection string to sql databse After using the following code, no errors are shown, but my database is not updated once i have made a change using my management system application. Any recommendations ? Dim constring As String = Application.StartupPath.ToString() + "\mydatabaseName.mdf" Public c As String...
{ "pile_set_name": "StackExchange" }
Q: What code will close a the command line window when 'Cls' does not? I have a batch file that launches standalone Hangouts, but the cmd console window does not close, not even when 'CLS' or 'ECHO OFF' is the last line. What code would close the command line window ? I have the answer - I just need to precede the ex...
{ "pile_set_name": "StackExchange" }
Q: Regex to match "a string of length less than X resides between two ">" symbols" The have text in this form: >xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxx >xxxxxxxxxxxxxx xxxxxxxxxxx > I need regex to match all >xxx... if there is less than, say a 100, amount of x in between > symbols. How can I do t...
{ "pile_set_name": "StackExchange" }