body1
stringlengths 20
4.1k
| body2
stringlengths 23
4.09k
|
---|---|
I would like to set the speed of my Box2D revolute joint on every update such that it rotates to a desired angle and stops. It should ramp down as its angle approaches the desired angle. My first thought was just to set the speed to +max or -max based on the difference between the current angle and the desired angle. However, I think this might cause a see-saw effect as the joint overshoots its target angle. What torque should I apply (each tick) to a joint to achieve a rotation to a specific angle and then rest? | I'm trying to make the joint rotate smoothly around the center of the canvas, toward the angle of mouse pointer. What I have works, but I want it to animate the shortest distance possible to get to the mouse angle. The problem occurs when the value loops around at the horizontal line (3.14 and -3.14). Mouseover that area to see how the direction switches and it takes the long way back around. Relevant Code // ease the current angle to the target angle joint.angle += ( joint.targetAngle - joint.angle ) * 0.1; // get angle from joint to mouse var dx = e.clientX - joint.x, dy = e.clientY - joint.y; joint.targetAngle = Math.atan2( dy, dx ); How can I make it rotate the shortest distance, even "across the gap"? |
I've only used the app to post a few times, but when I do this always happens: I submit the question, the app seems to try to take me to my new question, and I get a failure message with a "retry" button, which doesn't change anything. However, my question really was posted, as confirmed in a browser on a computer. Is this normal? (Maybe my connection is dicey and the timing is unforgiving?) The first time it happened I was alarmed because I thought I'd lost my work. | Upon typing out on my Android device, I was greeted with the following screen when clicking to submit the question: When clicking Cancel, I was taken back to the questions page with my question nowhere to be seen. Fortunately when checking here on my PC I could see the question, but if this had indeed failed to submit it offered me no way of getting back to the question I'd just typed out. Could this be changed so that if the app thinks the question failed to submit it offers the ability to copy the content to the clipboard? I probably wouldn't have bothered to type it out again any time soon had it indeed failed to submit and been lost completely. |
I've installed updates and noticed that my Ubuntu 16.04 changed it's recognition to elementary OS. There is elementary everywhere, in grub (no more Ubuntu) In the settings menu: I mean, it's not a huge issue, by I love Ubuntu and would not like to see it anywhere | Recently I had installed Pantheon (Elementary OS desktop environment). I didn't like it, so I uninstalled it, but Elementary OS Desktop still appear in the title bar. And in the shutdown button menu, Ubuntu Help is replaced by Elementary OS Help. I want that it says Ubuntu Desktop and Ubuntu Help. How do I fix it? The output of lsb_release -a is: No LSB modules are available. Distributor ID: elementary Description: elementary OS 0.4 Loki Release: 0.4 Codename: loki For installation, I use: sudo add-apt-repository ppa:elementary-os/daily sudo add-apt-repository ppa:elementary-os/os-patches sudo add-apt-repository ppa:elementary-os/testing sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install elementary-theme elementary-icon-theme elementary-default-settings elementary-desktop For uninstallation, I remove each repository manually, then sudo apt-get autoremove. And the rest with Synaptic Package Manager. |
I found this integral And the person says this equals $ \frac{\pi ^2}{12}$ But I tried to solve this and could not do it and I was unable to find any thing online. I tried many ways but could not even go through variable transformation by assuming ${(x^x)}^{{(x^x)}^{.^{.^.}}} = t$ How should I proceed? | How can it be shown that $$\lim_{p\to\infty}I(p)= \lim_{p \to \infty}\int^{1}_0 (x^x)^{\scriptscriptstyle {(x^x)^{(x^x)^{(x^x)^{(x^x)^{(x^x)...(p \; times)}}}}}} dx= \frac{\pi^2}{12}$$ $I(1)=\int^{1}_0 x^x dx=\sum_{n=0} ^{\infty} \frac{1}{n!}\int^{1}_0 \ln(x)^nx^n dx$ also $\int^{1}_0 \ln(x)^nx^n dx=(-1)^n (1+n)^{-1-n}n!$ . I don't know how to calculate $I(p)$ beyond $p=1.$ Note: This integral was proposed on Romanian Mathematical Magazine and two solutions can be found . |
Let $a$ and $b$ denote integers. To find $\frac{\mathrm{LCM}(a,b)}{a},$ we can use: $$\frac{\mathrm{LCM}(a,b)}{a} = \frac{b}{\mathrm{HCF}(a,b)}$$ and compute $\mathrm{HCF}(a,b)$ with the Euclidean algorithm. Question. Is there a similar formula that allows us to find $$\frac{\mathrm{LCM}(a,b,c)}{a}$$ using only arithmetical operations and highest common factors? | If I know the GCD of 20 numbers, and know the 20 numbers, is there a formula such that I input the 20 numbers and input their GCD, and it outputs their LCM? I know that $$\frac{\left| a\cdot b\right|}{\gcd(a,b)} = \text{lcm}(a,b).$$ So is it$$\frac{\left| a\cdot b\cdot c\cdot d\cdot e\cdot f\right|}{\gcd(a,b,c,d,e,f)}?$$If not, what is it? |
I'm getting the following error I followed instructions from this video: | I installed Ubuntu on a Dell XPS 13 laptop that had Windows 10 preinstalled on it. I installed it from a USB flash drive on a partition. When I boot my computer I can only boot into Windows 10 and Ubuntu is nowhere to be seen. If I boot into my USB then I can see that Ubuntu is installed, but I can't get to it from the BIOS boot menu. |
Where can I find guides to learn particular parts of Blender? By guides I mean collections of tutorials within a certain topic, . For me personally, the topic would be a walkthrough through the user interface. But a place where guides to specialized sections like animation, rigging, rendering etc. can be found, are also fine. | Since asking for tutorials, videos, resources, links to other content or downloads is considered off topic here, this is a specifically created Community Wiki which gathers resources for Blender and it has been approved by the . Just write in the appropriate answer/section. If you have concerns, questions, post a question, so we don't clutter the comments, but you can link your meta question from the comments. Questions regarding such resources are not allowed anymore, except for very specific and on topic requests (ask on if you're unsure about your question). Follow the instructions made in the question about how to post, what can be posted, etc. Learning Assets (also see: ) Reference Images/Blueprints (also see: ) Tools (also see: ) Other Special Interest () Also see the . |
Question is, if my title tag and meta description is getting some of content or text from DB how would this effect SEO? e.g. Isuzu D-Max 4x2 LS MT - Specs, Specification and Price List Where "Isuzu D-Max 4x2 LS MT" was fetch from DB, thus this still count as complete or good title? TIA! | I am developing a website which is fully dynamic. If I load metas and other information of the website from database, will it affect my website's SEO? |
I have to compare geometries anywhere in the world; mainly between 65N and 40S but also in the Arctic latitudes. I need "commercial accuracy" - not military or navigational. For example does a line intersect with a polygon and - if so - so they intersect for 50 km rather than 55 km. I store the lat and lng of these geometries. Can anyone please tell me how to select the most suitable cartesian projection (from spatial_ref_sys) to transform the coordinates into before compare any line with any polygon ? I have tried to use the lng of the centre of the line to select one of the SRIDs between 32601-32660 and 32701-32760. As many of you will know, these are based on the equator every 6 degrees and the 601-660 are for northern hemisphere while the 701-760 are for the southern hemisphere. To test whether this works, I check whether the ST_Intersects() function detects that a point in Asia at 36.9417, 75.4083 intersects with a polygon of Asia after both are transformed with SRID 32643 whose central_meridian is 75 degrees. Sadly the ST_Intersects() function doesn't detect that the point is right in the middle of Asia, but when I use SRID 32644 whose central_meridian is 81 degrees, ST_Intersects() function detects an intersection between point and polygon. There are many other examples of my "calculated" SRID being the wrong one. Maybe I'm overcomplicating ? I originally used SRID 4326 anywhere worldwide before testing with ST_Intersects(), and things seem fairly accurate except in high northern latitudes, so I was hoping to minimize inaccuracies by using different cartesian SRIDs at different longitudes. Perhaps I need to find SRIDs which centre on the latitude of the geometries - not just the longitude ? Maybe I'm overcomplicating ? Many thanks for your initial welcoming response. I hope that gives good information. | I am trying to customize an Albers and a Hotine Oblique Mercator (HOM) projection to minimuze distortion in the region I am analyzing. The region extends from about 51 to 62 degrees latitude, covering an area about the size of the Ukraine. The region is oriented NW - SE. I want to make sure I am using correct methods for determining the two projection parameters: lat/long of the projection center, and centerline azimuth. I am using ArcMap v10. Here's the procedure I've followed so far: Created a single polygon that defines the analysis region (by, generally, creating a convex hull around the extent of the watersheds covering the region). This polygon is the area I am customizing the projection for. Projected the polygon to Geographic/NAD 83. Used Jeff Jenness' Tools for Graphics and Shapes () to determine the polygon's center of mass on the GRS80 spheroid. The resulting coordinates are what I used for the "projection center" parameter. To determine the centerline azimuth, I first projected the polygon to an azimuthal equidistant projection, specifying the projection center at the coordinates determined in Step 3. Then I drew a polyline (in the azimuthal equidistant projection), snapped to the projection center point, representing the directional trend of the region polygon. To get the azimuth at the projection's center, I used Jeff Jenness' Tools for Graphics and Shapes to determine the beginning azimuth of the geodesic curve at the central point. For the Albers projection I am using the longitude for the projection center, as determined in step 3. Am also using the awesome spreadsheet created by Bill Huber () to determine where to place the standard parallels to minimize the scale distortion within the polygon region. If needed to know, I am using ArcMap's version of the HOM that uses a central line defined by one point at the projection's center and its angle of azimuth. ESRI calls this the "Hotine_Oblique_Mercator_Azimuth_Center". In EPSG, I believe this is the Oblique Mercator, Hotine Variant B, EPSG method code 9815. I am hoping there are some projection experts out there that can tell me if the above procedure, especially Steps 3 and 4, is a correct way to determine the needed projection parameters. Am I on the right track? Is it correct to be determining the center on the spheroid and the angle of the geodesic from the center point (instead of a "2d" geometric center and azimuth)? I hope the problem description was clear. I'm eagerly looking forward to any answers, tips, discussion, etc.! |
I would like to invite someone in a comments discussion underneath an answer to continue in Chat, but it doesn't seem to be a problem of that it is It seems more that until now there is no possibility to create the room and invite someone before having exchanged at least 9 comments in turns (as tested below) Please add an option to create a chatroom and link to it in a comments flow right away. | When comments get too chatty the move-to-chat feature asks if you'd like to move it out. But this often happens after the fact and thus doesn't prevent it. I propose that: Move-to-chat be provided as a button along side so that a user who knows their question or conversation may become drawn out may elect to preempt and take the conversation "off-line" |
I downloaded calibrated/corrected Landsat 8 data (Level 2) from ESPA () to do land cover classification. But there are many corrections and calibrations can be done as listed below and maybe more, such as: - Surface Reflectance - Top of Atmospheric - sensor zenith and azimuth - solar zenith and azimuth - geometric - radiometric I am not sure all of them were processed on the scene. What are the must do corrections/calibrations for Land cover classification analysis? | There is a neat Surface Reflectance product of Landsat imagery. I know the difference between SR and raw products: SR presents calculated values, that are supposed to represent state of the Earth surface, while "normal" products are disturbed by all kinds of scattering on the way from the Sun to the surface and back to the sensor. Now, I'm performing a land classification of terrain to extract boundaries between two types of land use. I have many images and this is unsupervised classification. Do I really need SR product here? Would I need it, if it was supervised classification? I suppose it's no in both cases, as I don't directly compare any values between images. I just need to know exact position of this boundary. |
When I right-clicked into an .exe file then chose Open with... and I select choose a program then I selected the wrong program. I checked the checkBox that has the label Always use the selected program to open this kind of file. Now all of the .exe files have changed into the wrong program after I did this, so all .exe file opened with this program. How do I revert the .exe file associations to do my regular work? | After (hopefully) scrubbing viruses out of a Windows 7 installation (after deciding not to simply run over the laptop repeatedly with my car), I've got everything almost back to normal. The only lingering issue I have is that for my non-admin users, the ".exe" file extension doesn't work. That is, clicking on the various desktop application links results in a "How do you want to open this?" dialog. I've been through the alleged registry fixing from "winhelponline" and that had absolutely no effect. I've tried running "assoc" for the affected users, but it reports the .exe association to be "exefile" even though it persistently does not work. Right-clicking on a desktop icon and then choosing "start" does successfully open an application, but that's clearly a terrible situation. For my admin user, things seem to work fine. What do I need to do to get things working? |
This is my first question on the Photography stack. So please forgive me if I dont sound too technical. I have a Nikon D5100 and a 18-50 mm F 1.8 Lens. I enjoy taking pictures of my 13 month old son who is constantly on the move as he just started walking. I usually try to use the Manual mode and set the aperture > F2.5 and shutter speed(usually 1/2 or 1/8) to suit the light. But I usually have a problem when I encounter low light. If I use the lowest F stop, I get blurry images owing to lower shutter speeds (I dont have a tripod yet). I have used the Sport mode with some good results, but I would like to have more control of my images. My question is, what other modes I can use to remove the bluriness and if having an external flash would help. | I'm a mom who is obsessed with taking photos of my now 2 year old daughter. I currently have a Nikon j1 which I like, but I find the shutter speed is still a bit slow and when you're trying to take photos of a speedy little girl, I end up with a lot of blurry images. So I'm looking for a camera with a very fast shutter speed that will allow me to take good photos of a very fast moving child. Also that can take photos in low light. I've been looking at the canon eos rebel but I'm not sure. Would like it to be able to take videos as well. Any advice? |
Suppose that $mn$ people of a marching band are standing in a rectangular formation of $m$ rows and $n$ columns in such a way that in each row each person is taller than the one to his or her left. Suppose that the leader rearranges the people in each column in increasing order of height from front to back. Show that the rows are still arranged in increasing order of height from left to right. EDIT: Thanks. I didn't know that this question was already here, only differently phrased. | $m \times n$ persons stand as a rectangle of $m$ rows and $n$ columns. Each one is taller than the one next to his left. Now, if commander orders each column to sort by height, prove that after such sorting, each one is still taller than the one next to his left. I'm reading a Combinatorics book on my own, but some exercises I can't solve... many thanks! |
How can I get unmodified output from $() in bash? I need to have bash return the results of command substitution (via $(command) or `command`), but bash treats the left square bracket as the test builtin and evaluates the text. > echo "This shows an IP in brackets [127.0.0.1] when not in the command substitution context." This shows an IP in brackets [127.0.0.1] when not in the command substitution context. > echo $(echo "This should show an IP in brackets [127.0.0.1] but instead evaluates to '1'.") This should show an IP in brackets 1 but instead evaluates to '1'. > echo $(echo "The subtle addition of a space causes [127.0.0.1 ] to behave differently.") The subtle addition of a space causes [127.0.0.1 ] to behave differently. Background Please note that the use of echo above to provide a minimal example is just that; my ultimate use will be including output from ping or tracert to show the IP of a host as seen by that host (i.e. respecting any hosts entries). In this usage, I have little control over the string being output by the command. > grep -E "^[^#].*stackoverflow" /c/Windows/System32/drivers/etc/hosts 127.0.0.1 stackoverflow.com > tracert -h 1 -w 1 stackoverflow.com | awk '/Tracing/' Tracing route to stackoverflow.com [127.0.0.1] > ping -n 1 -w 1 stackoverflow.com | awk '/Pinging/' Pinging stackoverflow.com [127.0.0.1] with 32 bytes of data: # Using dig or nslookup would show a real IP rather than the forced IP from the hosts entry. > dig @ns1 +nocmd stackoverflow.com +noall +answer stackoverflow.com. 118 IN A 151.101.129.69 stackoverflow.com. 118 IN A 151.101.193.69 stackoverflow.com. 118 IN A 151.101.1.69 stackoverflow.com. 118 IN A 151.101.65.69 > echo $(ping -n 1 -w 1 stackoverflow.com | awk '/Pinging/') Pinging stackoverflow.com 1 with 32 bytes of data: > echo $(ping -n 1 -w 1 stackoverflow.com | awk '/Pinging/ {print $3}') 1 > ping -n 1 -w 1 stackoverflow.com | awk '/Pinging/ {print $3}' [127.0.0.1] | It's high time to solve this conundrum that's been bothering me for years... I've been meeting this from time to time and thought this is the way to go: $(comm "$(arg)") And thought my view was strongly supported by experience. But I'm not so sure anymore. can't make up its mind too. It's both: "$(dirname $0)"/stop.bash ^-- SC2086: Double quote to prevent globbing and word splitting. And: $(dirname "$0")/stop.bash ^-- SC2046: Quote this to prevent word splitting. What's the logic behind? (It's Shellcheck version 0.4.4, btw.) |
I have had a frequent problem in Excel 2013 and Excel 2010 on several different computers, where Excel would freeze for 10-20 seconds when I copied a few cells into 3 or more locations. I frequently want to copy data into every other row, so I end up hitting paste repeatedly on the same set of copied data, until Excel freezes and I have to wait for it. I'm hoping someone else has encountered this same problem and has a workaround or solution for this, as when I have to fill in a hundred columns of data this really slows me down. I've had this problem on three different computers, in both Office Excel 2013 and Office Excel 2010, so it doesn't seem specific to any particular computer setup. I've attached an example where Excel froze during a copy, and a list of my addins installed. | When cutting/copying some cells to paste them into another sheet/page, sometimes Excel freezes/locks up and fades out. At the top toolbar it says in brackets "not responding". Eventually, I must click 'X' to close the program. It offers to wait for the program to respond, but never does – it just does nothing until I finally close it, where it offers to recover files etc. Is there an issue with memory here? What can I do to stop it locking up? |
When I move an object, I can only move from one place to another, not smoothly. Why? What can I do to make it smooth? When I try moving a torso, I can only move it from a spot to another, not to anywhere I want. | My cursor is moving by every selection by large increments! Normally when I use Blender, I am able to select and move objects to any coordinate. Now, all of the sudden, when I select an object or mesh the selection moves by an inch or so in each direction. How do I reset it to normal? |
I am returning a list of values, and I would like to assign each one to an enum for better search. I have few fields - such as Desc, Value and so on.. I would like each of them to have an assigned enum value. So Desc would be 10, Value 20 and so on. I am returning values like this var articleData = new List<Article>(); foreach (var textField in result.TextResult) { var data = new Article { Desc = textField.Name + ":", Value = textField.Value, Type = .... }; articleData.Add(data); } public enum Type { None = 0, Value = 10, Desc = 20, Title = 30, .... } public class Article { public string Value {get; set; } public string Desc {get; set; } public Type Type {get; set; } } Do you have any ideas? | What's the best way to convert a string to an enumeration value in C#? I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and convert it to the corresponding enumeration value. In an ideal world, I could do something like this: StatusEnum MyStatus = StatusEnum.Parse("Active"); but that isn't a valid code. |
raised a question for me During the Chamber of Secrets while Harry is in Riddle's memory he is described as gliding alongside Riddle, watching whatever Riddle saw (however this not really being the pensieve, riddle might be explicitly directing what Harry could see) Again, when Harry is in Snape's memory in Order of the Phoenix, it is described that Harry hoped Snape would go out of the exam hall in such a way that his parent's would stay in view, so that he could watch them, because otherwise if Snape went in the wrong direction, he would not see his parent's in the memory either But then again, in the answer linked in that comment, although the memory is from hokey, when she leaves the room, Harry and Dumbledore do not glide out of the room with her, but instead stay in there and see and hear the events that happened between Riddle and Hepzibah Smith What is the extent of the pensieve's power for showing the world not seen by the original owner of the memory? | For example, if I revisit a memory of mine where I'm inside a castle and talking to someone, can the present-me explore different parts of the castle meanwhile the past-me continues her conversation? Is that possible? |
I am a linguist and not a mathematician. If I was an expert mathematician, I wouldn't need your help. In response to a query in a comment about when if P, Q is true, I recently was told by @amWhy: "If P then Q" (P→Q) is true whenever P is false, or Q is true (or both). This was in response to a comment on this question here: (You will only be able to see this post if you have a very large reputation score) Now this interpretation is one of many mathematical (not all very simple) interpretations of when If P, Q is true. What I would like to know is whether the following sentence is true, if it is said about a particular number which as been written down on a specific piece of paper: If the number written on the paper is divisible by 9, it is divisible by 3. In particular, suppose the number which is written on the paper is 4, is the sentence true? | I am not a mathematician, I'm a linguistics PhD student. As part of my research I need to put various convoluted sentences through various syntactic transformations and see then check whether people think they are true or not. Mathematical statements (well, some of them) suit my purposes very well, because they are less context dependent and can be straightforwardly assigned a truth value (i.e. be deemed true or false). The problem is that I'm not a mathematician. When these sentences get a bit convoluted, I have a bit of a problem knowing whether they are true or false myself (before they undergo various syntactic transformations). I have a particular sentence which states that if a given number is: an integer divisible by 7 (meaning it will yield an integer if divided by 7) a square number then it is divisible by 49. I intuitively believe this to be correct (although I can't explain why). Is this actually true? I don't want to waste everybody's time by starting with an untrue untransformed sentence. |
I recently installed Ubuntu with dual-boot setup. I was dumb enough to just give Ubuntu 8GB with diskplace, and now it's critical. I need more and I have a good space in my SSD. How to I extend the diskplace? | Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers. Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions). Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space. How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions? |
I am a relative python novice. I have a simple function here that takes in a list and removes an element of the list. However, I noticed that the function actually alters the list outside of the function. For example, def test(lista): lista.remove(1) return(lista) def main(): a = [1,2,3] print(a) x = test(lista=a) print(a) It turns out that the first call to print(a), I get [1, 2, 3] as expected, but the second call to print(a), I get [2, 3] which doesn't quite make sense to me because I'm not sure why the function test would remove the element from a. I understand that I pass a in as a parameter, but I'm not sure why lista.remove(1) would remove the element 1 from both a and lista. Thanks! | I'm trying to understand Python's approach to variable scope. In this example, why is f() able to alter the value of x, as perceived within main(), but not the value of n? def f(n, x): n = 2 x.append(4) print('In f():', n, x) def main(): n = 1 x = [0,1,2,3] print('Before:', n, x) f(n, x) print('After: ', n, x) main() Output: Before: 1 [0, 1, 2, 3] In f(): 2 [0, 1, 2, 3, 4] After: 1 [0, 1, 2, 3, 4] |
I was wondering how can you prove that $\mathbb{N}^\mathbb{N} \sim 2^\mathbb{N}$ (where $\mathbb{N}^\mathbb{N}$ is the set of all functon $f:\mathbb{N}\rightarrow \mathbb{N}$). I think I can show that $2^\mathbb{N} \sim n^\mathbb{N}$ for some $n\in\mathbb{N}$ with a tedious bijection, but I'm not sure what to do with $\mathbb{N}^\mathbb{N}$. I apologize if the question lacks details/notation, I have only studied elementary set theory and we haven't mentioned $\mathbb{N}^\mathbb{N}$'s cardinality at all (I usually ended up finding injections/bijections to/from $2^\mathbb{N}$, but now I'm curious as to why the above correct). Thanks in advance. | My motivation for asking this question is that a classmate of mine asked me some kind of question that made me think of this one. I can't recall his exact question because he is kind of messy (both when talking about math and when thinking about math). I'm kind of stuck though. I feel like the set $A^{\mathbb{N}} = \{f: \mathbb{N} \rightarrow A, f \text{ is a function} \}$ should have the same cardinality as the power set of A, if A is infinite. On the other hand, in this , it is stated that the sequences with real coefficients have the same cardinality as the reals. It's easy to see that $A^{\mathbb{N}} \subseteq P(A)$, but (obviously) I got stuck on the other inclusion. Is there any general result that says anything else? References would be appreciated. EDIT To clarify the intetion of this question: I want to know if there are any general results on the cardinality of $A^{\mathbb{N}}$ other that it is strictly less than that of the power set of A. Also, I was aware that the other inclusion isn't true in general (as the post on here I linked to gave a counterexample), but thanks for pointing out why too. :) |
I just tried out PVS-Studio on my C# project and it pointed out this function that screens for valid hexadecimal characters. Originally the logic allowed all characters, but after fixing it I can't shake the feeling that there is a better way to do this. string ValidHex() { string str = foo.Value; for (int index = 0; index < str.Length; index++) { if (Char.IsDigit(str[index]) == false) { if ((str[index] >= 'A' && str[index] <= 'F') || (str[index] >= 'a' && str[index] <= 'f')) continue; else return "Invalid Hex value"; } } return null; } I know I can't improve the time complexity, but is there a less awkward way to screen these ASCII values? | What is the most efficient way in C# 2.0 to check each character in a string and return true if they are all valid hexadecimal characters and false otherwise? Example void Test() { OnlyHexInString("123ABC"); // Returns true OnlyHexInString("123def"); // Returns true OnlyHexInString("123g"); // Returns false } bool OnlyHexInString(string text) { // Most efficient algorithm to check each digit in C# 2.0 goes here } |
How to show that, $(x+y)^p\leq x^p+y^p$, where for $0\leq p\leq 1,x\geq 0, y\geq0?$ Any suggestion how to prove it? Thanks in advance. | If $p,q$ are positive quantities and $0 \leq m\leq 1$ then Prove that $$(p+q)^m \leq p^m+q^m$$ Trial: For $m=0$, $(p+q)^0=1 < 2= p^0+q^0$ and for $m=1$, $(p+q)^1=p+q =p^1+q^1$. So, For $m=0,1$ the inequality is true.How I show that the inequality is also true for $0 < m < 1$. Please help. |
Is it possible to tell latexmk to execute mpost paper.mp after each compilation run if paper.mp has changed? I tried to create a custom latexmkrc rule: add_cus_dep('mp', '1', 0, 'mpost'); sub mpost { system "mpost $name" ; popd(); return 0; } But this does not seem to work | Background The latexmk tool can be used to automatically process your LaTeX files enough times to generate the output. As discussed and , latexmk now supports setting out_dir which passes the -output-directory to pdflatex and places build products in this alternate location. Unfortunately, this makes it difficult to use latexmk with feynmp. Question How can I configure latexmk to call mpost for processing Feynman diagrams generated by feynmp? Especially using the new out_dir configuration? Partial Answer 1 One can try to add a custom rule to the latexmkrc file like add_cus_dep('mp', '1', 0, 'mpost'); sub mpost { system("mpost $_[0]"); } but this fails in three ways: 1) if there are multiple images, then the extensions .1 changes and it is not clear how to specify all the dependences. 2) I don't know how to tell latexmk that pdflatex needs to be run again after the figure is generated. 3) Even if out_dir is specified, latexmk still runs the mpost command in the source directory, thereby missing the generated .mp files. Partial Answer 2 As suggested , one can use the -shell-escape option of pdflatex to allow the figures to be processed by the call to pdflatex. Unfortunately, the call to mpost still takes place in the top-level directory. Is there some way of using -output-directory to ensure that shell commands are executed in the appropriate place? Here is a MWE demonstrating this second attempt: latexmkrc mkdir _build; $out_dir = '_build'; $pdflatex="pdflatex -shell-escape -interaction=nonstopmode %O %S"; tst.tex \documentclass{scrbook} \usepackage{feynmp} \usepackage{etoolbox} \DeclareGraphicsRule{*}{mps}{*}{} \makeatletter \show\endfmffile \preto{\endfmffile}{\let\the@fmffile\thefmffile} \appto{\endfmffile}{ \ifnum\pdfshellescape=\@ne \immediate\write18{mpost \the@fmffile}% \else \message{ Run pdf(la)tex with -shell-escape to generate feynmp diagrams} \fi \let\the@fmffile\relax } \makeatother \begin{document} \begin{fmffile}{title} \begin{fmfgraph}(40,25) \fmfleft{i1,i2} \fmfright{o1,o2} \fmf{fermion}{i1,v1,o1} \fmf{fermion}{i2,v2,o2} \fmf{photon}{v1,v2} \end{fmfgraph} \end{fmffile} \end{document} |
I am from India and travelling to Germany on a Schengen visa. On my way back to Mumbai from Munich, I have a layover of 9 hrs in Zurich. Can I travel in Zurich on the same documents or I need anything more? | I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows: Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland |
I've been using this newcommand for ages and it always worked perfectly: \newcommand{\comment}[1]{\textit{\small\textcolor{red}{ #1}}} However, in my new latex document it returns an error: Undefined control sequence. \comment{ciao} This is the heading I'm using, but I can't find any incompatibility: \documentclass[twocolumn,aps,prl,showpacs,superscriptaddress,notitlepage]{revtex4-1} \usepackage[a4paper,top=3cm,bottom=3cm,left=1.cm,right=1.cm]{geometry} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{booktabs} \usepackage{amsmath} \usepackage{mathtools} \usepackage{braket} \usepackage{multirow} \usepackage{setspace} \usepackage[separate-uncertainty=true]{siunitx} \DeclarePairedDelimiter\abs{\lvert}{\rvert} \newcommand{\comment}[1]{\textit{\small\textcolor{red}{ #1}}} \newcommand{\oos}{\omega_s} \newcommand{\ooi}{\omega_i} \newcommand{\oop}{\omega_p} \newcommand{\ooa}{\left( \oos,\ooi\right)} \makeatletter \let\cat@comma@active\@empty \makeatother I'd like to ask you if you can see where the problem is! Thanks | I am trying to create a very simple new command such as follows: \newcommand{\rvm}[1]{\textcolor{red}{#1}} My text is organized in a main tex file and the sections are in other files. I call them using \input in the main .tex file. However, no matter when I call it, the \newcommand is undefined. The tex editor returns the following error: Undefined control sequence. \rvm{test} Is it something about the template I am using? I tried it in other documents and it works. How can I solve this issue? |
Almost all the books of algebra or group theory give following types of applications of Sylow theorems: A group of order $...$ is not simple. A group of order ... has normal Sylow subgroup. Even in math.stackexchange, there are many questions with above title and they involve questions which are related to proving above type of statements. Are there any other type of applications of these theorems of Sylow? | The theorems of Sylow are very well known and almost every mathematician learns in his undergraduate course. The applications of Sylow theorems given in books are of the kind "If $|G|=....$ then show that $G$ is not simple/ $G$ is solvable/ ..." I would like to know if there are some other, interesting, applications of this theorem. |
In older galactic wars, when lightsabers are prevalent on both fronts, it was the norm for militaries, private security forces, bounty hunters and other adventurers alike to arm themselves with weapons and armour protected by a cortosis weave. So cortosis is not exactly rare, since it can be used in mass manufacturing by the war industry and is accessible to common use by private individuals too. Since the Separatists are preparing for war with the Republic and its Jedi guardians, and the Sith plan to use the Clone Wars to help wither the Jedi down by attrition, why aren't lightsaber resistant troops more prevalent? I would expect super battle droids or at least more elite droids like destroyers, commandos, magnaguards etc to be so. | The Storm Troopers are the main case here, they get killed easily by blasters and even the Ewok arrows go straight through their 'armour'. The AT-ST and AT-AT use armour to repel blasters of different strengths so they don't pass through all materials. I understand though that the armour used on these is likely much heavier. From the prequel trilogy we also have the , which have a shield when not moving. Does anyone other than these droids use this technology? You may use any of the Scrapped EU, Current EU and the normal U to answer. |
For university, i like to print out my professors scripts. They usually use beamer- or powerpoint presentations throughout the lectures. My goal is to have two presentation sheets on one A4 page. With Adobe Acrobat, this seems to be not so big of a deal but since i switched to Linux completely, i would like to find a solution that works fine without having to use acroread, pdfstudio or another closed source program. I tried printing with evince, okular and several other applications (which all feature multi-page-printing-options), but the results were often not rotated incorrectly or where scaled much too small. Not having a print-preview doesn't make things easier. So my newest idea would be to create a new .pdf with imagemagick and have two sheets on one page, one above the other so that i can print it out as big as possible. Imagemagick should be capable of doing that, but i don't know the right commands! If there's anyone knowing other/better solutions to the problem, you're of course welcome to share! | I have a PDF with 100 pages. How can I make a new PDF that displays 4 pages on one? I know that I can do it with Chrome by printing the PDF to new PDF and change this in the options. But I want to make it for a lot of files and put it as a script. |
I have a disk image named: disk.img. I cannot mount this because I think it's messed up from Windows. Here are some commands I've run: sudo mount -o loop,offset=135266304 ./disk.img /mnt/temp The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/loop8': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option. sudo ntfs-3g -o remove_hibernation ./disk.img /mnt/temp NTFS signature is missing. Failed to mount './disk.img': Invalid argument The device '*' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? sudo ntfsfix ./disk.img Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk. file ./disk.img ./disk.img: DOS/MBR boot sector MS-MBR Windows 7 english at offset 0x163 "Invalid partition table" at offset 0x17b "Error loading operating system" at offset 0x19a "Missing operating system"; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 4294967295 sectors fdisk -l ./disk.img Disk ./disk.img: 279.5 GiB, 300069052416 bytes, 586072368 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: * Device Start End Sectors Size Type ./disk.img1 264192 586072063 585807872 279.3G Microsoft basic data I really don't know what to do. I don't have access to Windows. Anyone have any ideas? | Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount. When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens. Here's my partition table, if any more data is needed please let me know. Device Boot Start End Blocks Id System /dev/sda1 2048 20000767 9999360 83 Linux /dev/sda2 20002814 478001151 228999169 5 Extended /dev/sda3 * 478001152 622532607 72265728 7 HPFS/NTFS/exFAT /dev/sda4 622532608 625141759 1304576 82 Linux swap / Solaris /dev/sda5 20002816 478001151 228999168 83 Linux |
final = decimal; figure('Name','Final EMBEDED Image'),imshow(final); [image path] = uiputfile({'*.jpg';'*.bmp';'*.tif'},'Save Encoded File As'); final is the altered image. I have to store that image by giving the path and name of the image dynamically. for this i have tried uiputfile. the function is working but not serving the purpose. | I want to read an image into MATLAB, draw a rectangle on it, and then save the image. Also, I'm just learning MATLAB--please be gentle. It seems like it should be simple, but I can't seem to do it. im = imread('image.tif'); imshow(im); rectangle('Position', [100, 100, 10, 10]); imwrite(im, 'image2.tif'); Even though I can see the rectangle on the image, the saved image does not display the rectangle. How can I save the image and have the rectangle show up? FWIW, I've already tried saveas(), but that gives me a HUGE image. Is there a way to use saveas() and make the saved image the correct size? |
Let $f$ be a real-valued function on $A$ in $E^n$. Show that is $∫_Af$ exists, then so does $∫_A|f|$. I have been given an outline of what I need to do, however, I have been unable to actually formulate it into a rigorous proof. Here is the outline: By definition, Riemann integrable functions are bounded. Note that for every partition $P$ and every cell $c$ in $P$, $\sup_c|f|−\inf_c|f|⩽\sup_c f−\inf_c f$ hence $U(|f|,P)−L(|f|,P)⩽U(f,P)−L(f,P)$, this should show that $|f|$ is Riemann integrable. EDIT: The hint above was given . | Let $f$ be a real-valued function on $A$ in $E^n$. Show that is $\int_A f$ exists, then so does $\int_A |f|$ and $\left | \int_A f\right | \le \int_A |f|$. I am trying to finish Rosenlicht's Introduction to Analysis and the last chapter is awful. But I do want to finish it because I have come this far. Could someone show me how to do this, so I can at least have some example problems to understand the material. This chapter (Multiple Integrals) really just left more confused than before I started reading the chapter. Thank you in advance. |
I currently use Dropbox for storing my TeX projects, but have been tempted to switch to a "real" revision control system, like Mercurial or Git, lately. If it is worthwhile to switch, what would be some tips and pointers? My top switching question is should I use GitLab or Bitbucket to host in a private repository, or should I set up the remote repository on my server? | I'd like to be able to use latexdiff with git. At the moment I have an alias in my .gitconfig file for a word-based diff: [alias] wdiff = diff --color-words but is it possible to make an alias that will use latexdiff then compile the output and open the created dvi/pdf file? Probably the best approach to this is using git difftool, but has anyone already made an appropriate script? |
is $p=\frac{h}{\lambda}$ only true for massless particles? because generally $E=\sqrt{p^2c^2+m^2c^4}$, then if we equate it to $h\nu$ we get $$p=\sqrt{\frac{h^2}{\lambda^2}-m^2c^2}\neq\frac{h}{\lambda}$$ | I'm curious where the $p=\frac{h}{\lambda}$ comes from? I know that for light (which has no rest mass), the following is true: $E=pc$ and $E=hf$ so, $$pc=hf \Rightarrow p=\frac{hf}{c}=\frac{h}{\lambda}$$ But how is the expression $p=\frac{h}{\lambda}$ obtained for a massive particle where $E\neq pc$? I've read some people claim that the expression can be derived, and others saying it's an experimentally verified relationship. |
I want to refer to parties that are hosted for players. Which of the following phrases is grammatically correct? "Player Parties" "Players Parties" "Players' Parties" "Player's Parties" A sentence where I might use this phrase is as follows: "We host [...]" Intended usage: I want to use the phrase in a promotional clip alongside a party that is taking place. The clip will show the party happening, and the phrase will appear over the video to describe the event taking place in the clip. The parties are put on for players to provide an opportunity for them to socialize, meet other players and relax. cites the two main uses of the apostrophe that we are all familiar with (the possessive and to indicate omitted letters). In the context I have used the phrase, do the parties belong to the players? Which of the four above phrases would best match my intended meaning? This is most certainly not a duplicate of the question related by Edwin, I am referring to the specific case I have outlined above, which is dependent on the correct meaning to be ascribed to this phrase, as per my intended usage. | I've read a great article about the . But there are still some points that are unclear. Why do we say... school project but not school's project? car service but not car's service or even cars' service (plural form)? apostrophe usage but not apostrophe's usage or apostrophes' usage? |
From what I've read, the "volatile" keyword in java ensures that a thread always fetches the most up-to-date value of a particular pointer, usually by reading/writing directly from/to memory to avoid cache inconsistencies. But why is this needed? To my knowledge, this is already done on a hardware level. If I remember correctly from my system architecture class, A processor-core that updates a memory location, sends an invalidation signal to the other processor's caches, forcing them to fetch those lines from memory when the time comes to do so. Or, if it was the other way around - if a processor fetches memory, it will force cached (but not written) lines of other caches to be flushed to memory first. My only theory is that this actually has nothing to do with caches at all, despite all the explanations I've read. It has to do with that data in JVM can reside in two places - a thread's local stack and the heap. And that a java thread may use its stack as a kind of cache. I'll buy that, but that also means that using volatile on data that reside on the heap is useless, since it's shared by all threads and abides by hardware implemented coherence? Eg: public final int[] is = new int[10]; accessing the is's data will always result in getting the most up-to-date data, since the data resides on the heap. The pointer, however, is a primitive and might fall victim to the stack problem, but since it's final we doesn't have this problem. Are my assumptions correct? Edit: This is not a duplicate as far as I can tell. The alleged duplicate thread is one of those misleading answers that says that it has to do with cache coherence. My question is not what volatile is used for, nor how to use it. It's testing a theory and more in depth. | At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found . Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword in the correct manner? |
As a Beginner, i am performing Manual Testing very well. But when it comes to automated testing, I have struggled somewhat. I have used Load Runner fairly well. i am trying to learn more about using Selenium which seems very popular. how to be excellent in automated testing? I tried selenium, but have had some difficulties in checking conditions. How can i improve my abilities as an automation tester? Is there an easier tools or approach I could use? | I've just started automating all the tests our team has (~5000). I'm using Telerik Test Studio for the Silverlight automation. I have some tests written, but I'm quickly realizing that with each test it's becoming harder to maintain. Here are some things I'm wondering: In Telerik, each test seems to have its own Elements Page, even though they're testing the same Silverlight page. Can I not just reference another test's Elements Page? That would make copy/pasting steps a lot easier since then I wouldn't have to add the elements to each test's Element Page individually. Does automation allow for running tests on different computers? We have some tests that find folders through a SL directory browser dialog, but even though I'm navigating to tests through object name (not by point/click mouse movement) if I run these tests on another computer it won't properly navigate to that directory. Are there any good books that can help a beginner learn best practices so I don't create 5k automated tests that aren't maintainable? |
After upgrade from Xenial to Bionic and after first restart, no letters in any window. How can I fix it? Thanks for your help. | I don't know what I did wrong in my Ubuntu 18.04 OS. For some reason some of my apps look like this: This also happens to other gnome apps like pdf-reviewer and Logs. Window title, menu bar etc. are all blank, display only squares. *Problem solved: I downloaded Google Fonts, saved them in a new folder, they can be applied system-wide, but after I did some font settings using Google Fonts it didn't work. I changed the font of Interface with Tweaks-Tool, that was what causing the problem. |
Win7 won't finish loading on my laptop, and I'm trying to find a way to get any tool, like smartctl, onto a USB stick so that I can check the hard drives. I've used wmic which says the drives are OK, but I wanted to see if I could dig any deeper. The problem with smartctl is that I can only download the Windows setup exe, which is no help since I've only got my laptop and a linux machine to work with. Obviously I should have installed smartctl before I had this issue :( hdtune would have been good as well, but I can't run it from the command prompt, even if i could get it installed. This question is a result of my earlier question I've seen this question below but can't use any of the solutions (except wmci) | How can I read the S.M.A.R.T. state of my HDDs while using Windows 7, either automatically or manually? |
I am trying to access my FAT32 USB drive. There is an error when I try accessing it. I just want to access it read-only. The error I get is: Error mounting /dev/sde at /media/mink/34D2-84FB: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sde" "/media/mink/34D2-84FB"' exited with non-zero exit status 32: mount: unknown filesystem type 'exfat' What commands should I use to access this drive? | When trying to mount an exfat filesystem, I get the following error: Error mounting /dev/sda6 at /media/gkp/Backup: Command-line `mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda6" "/media/gkp/Backup"' exited with non-zero exit status 32: mount: unknown filesystem type 'exfat' Exfat is used on some USB sticks and camera sd cards. What can I do to mount this type of filesystem? |
Recently I came to know that black hole are the object which concentrate large amount of mass in small volume. what are the requirements to create this if possible? | A black hole is so powerful to suck everything into itself. So is it possible that mini black holes can be created? If not then we could have actively disproved the rumors spread during LHC experiment. |
I have a new arch install with Gnome Window Manager and Cinnamon. I created ~/.xinitrc with the command start cinnamon, and restarted the computer. Now the system boots into the login screen for Gnome and Cinnamon, but there is no command line shell available in the GUIs, and I'm unable to boot the computer into command line mode either. | My xorg session is on tty1 and if I want to issue a command from tty (because I cannot do it from xorg session for some reasons), I press Ctrl+Alt+F2, for example, and type a command. But I cannot start graphical applications from any tty except first since there is no xorg session in it. Then I am curious how can I switch to tty1 where xorg session is running and back to the session? |
Hi Visualforce experts: Is it possible to dynamically resize a Visualforce Page based on a specific condition? For example, on my page - warning #2 is displayed only when a condition is met. If this condition is not met, the warning is not shown. Warning #1 is always static/does not change. I would like to essentially resize my page when the condition is not met. <apex:page standardController="Opportunity" extensions="OpportunityControllerExtension"> <apex:stylesheet value="{!$Resource.alerts}"/> <apex:stylesheet value="{!$Resource.infoIcon}"/> <warning> <img src="{!$Resource.infoIcon}" border="0"/> <apex:outputLabel value="Opportunities may be submitted for Approval and/or Resource Assignment at Stage 3 or later."> </apex:outputLabel> </warning> <apex:form rendered="{!Opportunity.Account.NumberOfEmployees == 0}"> <apex:stylesheet value="{!$Resource.alerts}"/> <apex:stylesheet value="{!$Resource.infoIcon}"/> <warning> <img src="{!$Resource.infoIcon}"border="0"/> <apex:outputLabel value="Please populate the Number of Employees on the "><a href="/{!opportunity.AccountId}/e?retURL={!opportunity.Id}" title = "Click here to go Edit the Account" target="_blank">{!opportunity.Account.Name}</a> Account before moving forward. </apex:outputLabel> </warning> </apex:form> </apex:page> | Since it seems to me, that a lot of people still need sidebar workarounds, I would be interested to learn about the use-cases, experienced challenges and (most important) possible strategies to avoid them by using different approaches. This is related to the methods discussed here: In my experience there are a few extremely important and constantly repeating patterns, which to my knowledge are still very hard to be solved using more official techniques. I will also contribute my own top-N use-cases, which are mostly related to UX and UI concerns. You are very welcome to add your own scenarios as answers and add comments on how you would avoid a workaround. My dream would be to team-elaborate strong and repeatable solution-patterns for the most common use-cases. Finally I would be interested in the experiences of all of you who participate in the Aura pilot, which hopefully could make this kind of workarounds obsolete. |
so I need to obtain the conditional distribution of a multivariate normal. However, I can only find it for the bivariate case: $$(x_1|x_2=a) \sim N(\bar{\mu}, \bar{\Sigma})$$ $$\bar{\mu}= \mu_1 + \Sigma_{12}\Sigma_{22}^{-1}(a-\mu_2)$$ $$\bar{\Sigma}= \Sigma_{11}-\Sigma_{12}\Sigma_{22}^{-1}\Sigma_{21}$$ is the example given in more depth. However, how would these formulas look like if I would have 3 or 4 variables instead of 2? Edit: I would like the conditional for $(x_1| x_2=a,x_3=b)$ given I have mulitvariate distribution with 3 variables. | gives details on the conditional distribution of the multivariate normal: If $\mu$ and $\Sigma$ are partitioned as follows $\boldsymbol\mu = \begin{bmatrix} \boldsymbol\mu_1 \\ \boldsymbol\mu_2 \end{bmatrix}$ $\boldsymbol\Sigma = \begin{bmatrix} \boldsymbol\Sigma_{11} & \boldsymbol\Sigma_{12} \\ \boldsymbol\Sigma_{21} & \boldsymbol\Sigma_{22} \end{bmatrix} \quad$ then, the distribution of $x_1$ conditional on $x_2= a$ is multivariate normal $(x_1|x_2=a) \sim N(\bar{\mu}, \bar{\Sigma})$ where $\bar{\boldsymbol\mu} = \boldsymbol\mu_1 + \boldsymbol\Sigma_{12} \boldsymbol\Sigma_{22}^{-1} \left( \mathbf{a} - \boldsymbol\mu_2 \right) $ and covariance matrix $\overline{\boldsymbol\Sigma} = \boldsymbol\Sigma_{11} - \boldsymbol\Sigma_{12} \boldsymbol\Sigma_{22}^{-1} \boldsymbol\Sigma_{21}. $ How can I prove this result? Wikipedia cites Eaton, Morris L. (1983). Multivariate Statistics: a Vector Space Approach. John Wiley and Sons. pp. 116–117., but I don't have this book handy... |
So, I'm mapping some features using Leaflet and want to be able to filter by date of the feature and also, when clicked, the feature will display some properties about it. I have yet to implement the date portion so I'm using a static date to filter through my data set and I'm struggling with getting each point to display information about it when clicked. All other solutions that I've looked through use the portion where I've implemented the filter but I need that. <html> <head> <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/> <script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script> <div id="mapid"> </div> <style type="text/css"> #mapid { height: 650px; width: 650px; } </style> <script type="text/javascript"> var map = L.map('mapid').setView([33.7490, -84.3880], 13); L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', { attribution: 'Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Imagery © <a href="https://www.mapbox.com/">Mapbox</a>', maxZoom: 18, id: 'mapbox/streets-v11', tileSize: 512, zoomOffset: -1, accessToken: 'pk.eyJ1IjoiYnJhbmRvbm5vbGwiLCJhIjoiY2tpdDd6YWk4MDY5dzJ1cGhvaXkzNDB5diJ9.F9L1fxelJr61uJHB7VJ9DA' }).addTo(map); var myPoints = { "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -84.42313, 33.72328 ] }, "properties": { "report_number": "153572281", "occur_date": "2015-12-22", "shift_occurence": "Evening Watch", "ucr_literal": "BURGLARY-RESIDENCE", "neighborhood": "Oakland City", "lat": "33.72328", "long": "-84.42313" }]}; /* this is just a snippet of the data */ var filtered_points = L.geoJson(myPoints, {filter: dateFilter}).addTo(map); filtered_points.bindPopup(filtered_points.properties.report_number); function dateFilter(feature) { if (feature.properties.occur_date === "2015-12-22") return true /* finished product will take input for the date */ } </script> </head> <body> </body> </html> I've gotten all of the points to display "Hello" when clicked using: filtered_points.bindPopup("Hello); But I haven't been able to get them to display properties about each respectively. | This is my simple GeoJSON with Leaflet map. I want to display properties as popup but I don't know why it is empty. Can you tell me my mistake? <html> <head> <title>A Leaflet map!</title> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <style> #map { width: 960px; height: 500px; } </style> </head> <body> <div id="map"></div> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <script> var map = L.map('map',{ center: [49.833352, 18.163662], zoom: 10 }); L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); var data ={ "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 23.4850463378073, 46.7440954850672 ] }, "properties": { "f1": 11793, "f2": "BT" } } ] }; var layer = L.geoJson(data, { }).addTo(map); layer.bindPopup('<h1>'+feature.properties.f1+'</h1><p>name: '+feature.properties.f2+'</p>'); </script> </body> </html> |
How to algebraically prove that $$n!=\sum\limits_{r=0}^n (-1)^r \binom{n}{r} (n-r)^n$$ I was trying to find number of onto functions from $A$ to $A$ containing $n$ elements. Using the inclusion-exclusion principle I am getting $$\sum\limits_{r=0}^n (-1)^r \binom{n}{r} (n-r)^n.$$ We can also do it by simple combinatorics, as every element has to have a pre-image and number of elements in the domain equal to the number of elements in the codomain, the number of functions is $n!.$ Is there an algebraic way to prove these two are equal? | $$n!=\sum_{k=0}^n \binom{n}{k}(n-k+1)^n(-1)^k$$ Could anyone give the proof of the above equation? Thanks in advance! |
I am trying to merge two dictionaries of dictionaries in aws lambda python 3 This does not work, I am using boto3 a = {'Action': 'DELETE', 'ResourceRecordSet': {'AliasTarget': {'HostedZoneId': 'BLABLABLA', 'EvaluateTargetHealth': False, 'DNSName': 'BLABLA'}, 'Type': 'A', 'Name': 'BLABLABLA'}} b = {'Action': 'UPSERT', 'ResourceRecordSet': {'TTL': 60, 'Type': 'CNAME', 'Name': 'BLABLA', 'ResourceRecords': [{'Value': 'blablabla'}]}} c = a_dictionary.update(b_dictionary) print(c) The print command prints none | I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union). The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11} How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.) |
I'm doing a FileCreator script: #!/bin/bash echo "Welcome to the file creator! Please type the directory name:" read dirName mkdir $dirName #Now I want to change directory to that new $dirName that will be run from Terminal. My question is now, how to change the path to this new directory dirName that is visible on Terminal. So, at the end, path should be: /home/my_user_name/SCRIPTS/dirName when I run this script ... Please, just a suggestion? :) | I just want to write a script which changes my directory. I put the below commands in the file /home/alex/pathABC #!/bin/sh cd /home/alex/Documents/A/B/C echo HelloWorld I did chmod +x pathABC In the Terminal, while in /home/alex, I ran ./pathABC, but the output is just HelloWorld and the current directory is not changed. So what is wrong? |
The following question has been on the hot questions list for what seems like awhile: It's also currently locked. Shouldn't this disqualify it from the hot questions list? | appeared on the hot network question list for me, even though it was locked 7 hours ago due to off-topic comments. Questions that have a problem severe enough to warrant a moderation lock shouldn't appear on the hot question list - that'd only add fuel to the fire once they are unlocked. Instead, show it to people for the first time once it's been fixed up. This is different from in that that question had a historical question lock, not an off-topic-comments moderation lock. This is still happening in February 2017, with appearing on HNQ. |
I accidentally stopped the installation of mysql while setting the root password and now I can't, neither open the application, nor uninstall it. sudo apt-get remove --purge mysql* returns E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 10071 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? can anyone please help me? | I'm trying to run this command in the terminal: sudo apt install software-properties-common This is the error message I get: E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? |
As we know, at the end of Goblet of Fire, Voldemort takes Harry's blood into his new body, thus binding Harry to life so long as Voldemort lives due to his mother's sacrifice. My question is, then, at the end of Deathly Hallows, when Voldemort's curse yet again rebounds, how could Voldemort die if he is still anchored to life because Harry still lives? Aren't they still connected through Harry's blood? | I know that when Lily sacrificed herself for Harry, Voldemort could no longer touch him and any attempted Avada Kedavra on Harry by Voldemort would rebound onto himself, until, of course, he took some of Harry's blood and put it into himself. Now Harry and Voldemort share Lily's sacrifice and protection and also share Voldemort's soul since Harry is a Horcrux. When Voldemort tried to kill Harry in the Forbidden Forest, Harry was kept alive by his own blood which ran through Voldemort's veins. When Harry then challenged him a second time, Voldemort's killing curse rebounded onto him yet again since the Elder Wand won't kill its master. But Voldemort shouldn't have been able to die since Lily's blood sacrifice lived in him and Harry should never be able to die either... shouldn't they both be immortal? I don't get it, someone help! |
Prove that $$\sum_{k = 0}^n k\binom nk^2 = n \binom{2n-1}{n-1}$$ I have to prove it in a combinatorically. No induction or algebra. | [Corrected question] I'm struggling at proving the following combinatorical identity: $$\sum_{k=0}^{n}k{n\choose k}^2 = n{2n-1 \choose n-1} $$ I would like to see a combinatorical (logical) solution, or an algebraic solution. |
I installed Ubuntu on the wrong partition, and lost a lot of important data. What can I do to recover as much of the lost data as possible? I already booted into a live USB and I have read that it is good to use Foremost, but I don't really know how to use it. So I'd be really grateful for some guidance. | I am on Ubuntu 12.04 64-bits I accidentally deleted a NTFS 255 GB partition using Gparted, and yes it contains LOTS of important data. Upon realizing the deletion I haven't yet created any file-system on it. So it still shows Unallocated. I tried Testdisk , but it shows entire partitions created from the beginning. This sdb is my secondary drive with Xubuntu and Kubuntu on it. And that 255 GB NTFS partition was cross platform storage drive. I am currently in sda with Ubuntu and Win7 in dual boot, which enables me to use it as Safe recovery option rather then Live USB drive. First , should i allocate it to ? file-System for better recovery . Second , i really need to recover data from this drive so please give me possible suggestions and proven methods of data recovery. Third ,does Testdisk requires deleted partition to be allocated for its recovery . I am currently trying the answer seen here with Testdisk scanning for partition second time, hoping to recover it. It looks a duplicate but i can't confirm if the OP got it right. Since my first doubt is to allocate it or not. If any clarification required please do comment ,i will add it. Edit: TestDisk deeper search results. The following partitions can't be recovered: Partition Start End Size in sectors > HPFS - NTFS 22241 107 11 55592 3 27 535777280 FAT32 LBA 274460 158 19 460576 228 16 2989957948 NTFS, 274 GB / 255 GiB & for FAT32 LBA 1530 GB / 1425 GiB |
Consider the following sentence. We are selling ___ 1,800 sq ft office. I would write an, because I say eighteen hundred. But someone else would say a, because they say one thousand eight hundred. For 2,000 it's easier, because it's always two thousand. For 2,100 it can again be twenty one hundred, or two thousand one hundred. So what is grammatically correct, what do I write so that I don't confuse my readers? | Possible Duplicate: I got the following sentence from the book I'm reading: You can take a database-first approach by first creating a SQL Server database schema. From what I learned, I think it should be "an SQL Server database schema", not "a SQL Server database schema". So which one is correct? |
that creates a centered list of buttons. Unfortunately at the top of the page. <html> <head> <style> #test { display: table; margin: 0 auto; bottom: 5em; } .mybtn .button { background-color: orange; border: 1px solid green; width: 120px; color: white; font-size: 14px; padding: 10px; text-align: center; text-decoration: none; display: block; } </style> </head> <body> <div id="test"> <div class="mybtn"> <button class="button">Result</button> <button class="button">Result</button> <button class="button">Result</button> <button class="button">Result</button> </div> </div> </body> </html> any reason why bottom: 5em does not work ? as a beginner in css I would appreciate any hint on why I need also to set .mybtn make the css work ! | Given the following HTML: <div id="container"> <!-- Other elements here --> <div id="copyright"> Copyright Foo web designs </div> </div> I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning? |
I just installed Ubuntu Server on a VPS. To configure the server I'm reading the Ubuntu Server Guide. But the Ubuntu Server Guide doesn't tells me everything. E.g. The Ubuntu Server Guide doesn't tell me about how to secure SSH, which is, in my opinion, an important thing to do after installation of a server. I know that I've to secure SSH access, but I might forget things to configure. Because I don't know what I don't know. Does a complete guide exists which tells me which important things I've to after installing Ubuntu server? If not, can anyone tell me those things? | I have a project to secure Ubuntu Server as much as I can. The server is a web hosting server. The server will be running LAMP , Mail , and DNS. |
In the Last Jedi Leia gets blown into space and then force-flies (like Mary Poppins) from space back into the Raddus. Leia's survival is answered here: There seems to be plenty of SW canon for force-flying here: This post implies Vader didn't even use the force to throw Palpatine down the shaft: So why didn't Emperor Palpatine force-fly to stop himself falling down the shaft in Return of the Jedi? | Palpatine tossed around Senate "pods" with no problem, Yoda picked up X-wings and such, and there are many other examples of pretty impressive levitation feats. So why couldn't Sidious/Palpatine stop himself from falling to his death? Why couldn't Maul levitate himself away instead of falling to his (assumed for a while until The Clone Wars) death? Is it a Sith thing? |
During study , I am encountered with this two Inverter symbols . Sometimes this two symbols are usedn in same logic circuit. Though they are working as inverter, I'm guessing there must be some charecteristic differences indicated by this two symbols.Or there is no logic to use two different symbols in same circuit. Is this symbols indicated different kind of inverters or some different physical properties ? | See , page 2: the internal logic diagram for the MM74HC138. The diagram shows logic inverters with bubbles at the input or at the output. Is there an actual difference between them? |
I'm working on a homework question which states: Show that the real Heisenberg group H= \begin{bmatrix} 1 & a & c\\ 0 & 1 & b\\ 0 & 0 & 1 \end{bmatrix} for a,b,c $\in \mathbb{R}$ is nilpotent. I've shown the center of $H$ to be matrices of the form \begin{bmatrix} 1 & 0 & c\\ 0 & 1 & 0\\ 0 & 0 & 1 \end{bmatrix} and I am now trying to calculate the center, $Z_2(H/Z(H))$, for the ascending central series. I think the center is supposed to be all of $H/Z(H)$, so I am trying to show these cosets are abelian, and I think that is where my issue is. For two cosets, $hZ(H)$ and $gZ(H)$, $(g,h \in H)$ I am confused what this looks like and how to show they commute. Any help on this is appreciated. I know there are other ways to do this, but I would like to use the ascending central series since that is the way I am learning it. Thanks! In response to the duplicate, I understand this is the same question, but I think my approach is different. Looking at the other question, they are using a method I am unfamiliar with. I think I can show that the cosets are abelian, but am unsure how to proceed from there. Thanks for the feedback! | This time I want to show that $H(R)$ ( the heisenberg group attached to a conmutative ring $R$ is nilpotent). But I dont know how to proceed, I was thinking in first serch the normal subgroups if the Heisenberg group and then try to figure out the quotient group of that, from there get the centre, etc, but I dont think it would be a good idea (In fact I thought to use Gap, but I dont know how to ask this questions in Sage), Is there a better way to do this? Thanks a lot. For me $H(R) = \left \{ \begin{pmatrix} 1 & a & c \\ 0 & 1 & b \\ 0 & 0 & 1 \end{pmatrix}: \ \ a,b,c \in R \right \}$ For a conmutative ring $R$ |
If I have an instance at SQL Server 2016 SP1-CU7-GDR (KB4057119) and want to jump over to the latest SP2 path, which patch or patches do I have to run? SP2 = KB4052908 SP2-CU2 = KB4340355 SP2-CU2-GDR = KB4458621 Do I run all 3 of these in order, do I run just #1 and #3, or can I just run #3 all by itself? It’s a bit confusing, but would appreciate the help. Thanks, Robert | I have given an RTM version of SQL Server 2014 and I need to apply the latest SP (currently SP2) and CU (currently CU8). Do I need to apply SP1 first? Or can I straight move to SQL Server 2014 SP2 CU8 without applying the old Service Pack 1 and the related Cumulative updates? |
Hi i am pretty new to blender but i was practicing with this logo but only the first two objects i made are rendering. however everything seems to render fine in my camera preview. if somebody could look at my file and help me out i would appreciate it. file > File is here: | Really odd on this... using Blender 2.75... I started modelling and lost the objects from the 3d view, but they were still showing in the object lists on the outlier... I was able to copy them and continued working... when I did a test render I discovered that only the original lost objects were rendering and nothing that I had modelled over the previous 2/3hrs was showing up... I have no idea what I did but I created another 3d view and the original bits showed up along with the layer buttons which had been missing from the screen which I thought was just a new feature from 2.75...! Picture to show the 2 screens, top one doesn't render but bottom one does Any idea's what I've done? |
It has happened to me a lot that when I am searching for an item in aisle in a supermarket and somebody says "excuse me" and passes me. What is a natural response to excuse myself here? What should I say? | What is a proper reply for excuse me? Like for thank you, you can say no problem or welcome. I don't know what a proper reply for excuse me would be. |
In There was an example of using Bibilography: \begin{thebibliography}{9} \bibitem{latexcompanion} Michel Goossens, Frank Mittelbach, and Alexander Samarin. \textit{The \LaTeX\ Companion}. Addison-Wesley, Reading, Massachusetts, 1993. \bibitem{einstein} Albert Einstein. \textit{Zur Elektrodynamik bewegter K{\"o}rper}. (German) [\textit{On the electrodynamics of moving bodies}]. Annalen der Physik, 322(10):891–921, 1905. \bibitem{knuthwebsite} Knuth: Computers and Typesetting, \\\texttt{http://www-cs-faculty.stanford.edu/\~{}uno/abcde.html} \end{thebibliography} What does {9} do here? As explained in the article: A parameter inside braces, 9 in the example, indicates the number of entries to be added; this parameter can not be greater than 99. However, in a previous document with over 50 citations/entries. I only needed to do {1} and not {50}. Can someone solve this contradiction to me? | I was reading the explanation about and was totally confused: The thebibliography environment has an argument which should be a string at least the length of the widest entry label in the source list. Instead of using the numbers generated by the environment as entry labels, you can specify your own by using an optional argument to \bibitem, but remember to increase the length of the argument to the thebibliography command. What does "widest entry label" mean? Practically, what should I put as the argument in \begin{thebibliography}{?} or is the argument not necessary? |
How can the below code be changed to use the trampoline function? Thanks. var count = function (n) { if(typeof n !== 'number' || n % 1 !== 0) return null; if(n < 3) { return 1; } console.log(n) return count(n - 1) + count(n - 3) } | During recent discussions at work, someone referred to a trampoline function. I have read the description at . It is enough to give a general idea of the functionality, but I would like something a bit more concrete. Do you have a simple snippet of code that would illustrate a trampoline? |
Re-posting it again because it was marked as a duplicate even though it wasn't. Just got a Russian Transit visa. The visa pages in my passport are numbered 7-33, with only page 7 having stamps in it. I sent a yellow post-it note to the visa application centre asking that the visa be put on page 8 ("please put the visa on page 8"). Still, the consulate put it on page 22. I know most countries put visas on the first empty page, but what about Russian embassies specifically? The reason why it annoys me is because I truly want my passport to be neat and orderly, to make it easier to find stuff. Although it's the first time so far, I'd still like to know for future applications. Could it even have been that my post-it note had the opposite effect? Would be good to know so I don't make that mistake again. | I'm running low on blank passport pages which are sometimes needed for full page visas such as those issued by Armenia, India, and Vietnam. When I crossed the border into Turkey the other day I got my visa-on-arrival and stamp, but instead of putting it on a partly used page, which I have many, the guy at customs and immigration put them on a previously blank page. Now I have one fewer! What can I do to prevent or at least reduce the chances of this happening? It's worth remembering that there's likely to be a language barrier and it's always best to be ultra-nice to these border officials. Has anybody heard of any trick such as sticking bit of paper in your passport, either blank, or looking a bit like visas? I have noticed that nobody ever stamps a page that has a remnant of something once stapled in there in Japan. There is a kind of stub that had its major part torn off along a perforation. Might I be able to emulate this somehow or would that even be worse making the blank pages invalid for full page visas due to having holes from staples? I know some things can get very picky when it comes to customs and immigration. |
I have a single method which is really comprehensive. Within this method couple of other methods are called and each method depends on the previous one. My question is: What is the best approach to test this complex method using JUnit? Can I just create one single @Test Method and calling the other methods within this method? For example: @Test public void testRun(){ testMethod1(); testMethod2(); ... } testMethod1(){ assertNotEquals(); ... } I can´t believe that it is that easy. Wouldn´t it be better to test each method on their own? But how can I implement that? Are their any best practises? But maybe this is the right way. Thanks for any suggestions !:) | What is the best way to unit test a method that calls into multiple methods, for example: modify(string value) { if(value.Length > 5) replaceit(value); else changeit(value); } This pseudo code has a modify method that (currently) calls either replaceit() or changeit(). I have already wrote tests for replaceit and changeit, so writing a new test for modify will be 99% the same set of code. I need to test it thought because it may change in the future. So do I copy paste the existing test code? Move the test code to a common function? Any other ideas? I'm not sure of the best practice here. |
I like the math font set used in the picture very much, so what is the math font set name and where can I find the font set package or LaTeX Release, thanks. PS: Is is not the MathTimeProII. | Is it possible to identify the font used in a specific document/picture? Answers to this question should identify: Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y"). This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's tag. |
I have this form.js code. Please help me to redirect back to contact.html form after successful or error message. $(function() { function after_form_submitted(data) { if (data.result == 'success') { $('form#reused_form').hide(); $('#success_message').show(); $('#error_message').hide(); } else { $('#error_message').append('<ul></ul>'); jQuery.each(data.errors, function(key, val) { $('#error_message ul').append('<li>' + key + ':' + val + '</li>'); }); $('#success_message').hide(); $('#error_message').show(); //reverse the response on the button $('button[type="button"]', $form).each(function() { $btn = $(this); label = $btn.prop('orig_label'); if (label) { $btn.prop('type', 'submit'); $btn.text(label); $btn.prop('orig_label', ''); } }); } //else } $('#reused_form').submit(function(e) { e.preventDefault(); $form = $(this); //show some response on the button $('button[type="submit"]', $form).each(function() { $btn = $(this); $btn.prop('type', 'button'); $btn.prop('orig_label', $btn.text()); $btn.text('Please Wait Sending ...'); }); var formdata = new FormData(this); $.ajax({ type: "POST", url: 'handler.php', data: formdata, success: after_form_submitted, dataType: 'json', processData: false, contentType: false, cache: false }); }); }); | How can I redirect the user from one page to another using jQuery or pure JavaScript? |
Under /var/log/hive we have a lot of log files we want to remove all files exclude the following that should be not removed hivemetastore.log hiveserver2-report.json.tmp hivemetastore-report.json.tmp | I want to remove all files in a directory while leaving just some specified files, they don't have anything in common by name. How could I achieve that? For example, the file names I want to keep are: file_1.png, another_file.jpg, some_music.mp3 |
I am using this plugin - to check whether an element is visible on the viewport (to check if posts has been viewed or not). But is it possible to have a callback of some sort so that instead of having a setTimeOut and checking the visibility of each and every post every time, fire a callback when the respective element is visible? Or is there any other library I can use to do this? I am talking about the visual viewport. (Not css visibility) | Is it possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()? How would you test if an element is visible or hidden? |
I have a checkbox in a panel. I have assigned a toggle hotkey to it. But when i press the hotkey then the checkbox does not change its state until you move with the mouse over the checkbox. How can i force a redraw at the checkbox when i press the hotkey? To reproduce, add keymap item with wm.context_toggle and the Context Attribute window_manager.deselect_bool The script: import bpy from bpy.props import BoolProperty class LayoutDemoPanel(bpy.types.Panel): bl_label = "Demo Panel" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' def draw(self, context): layout = self.layout wm = context.window_manager # Our bool is in the windows_manager layout.prop(wm, "deselect_bool") # Our checkbox def register(): bpy.types.WindowManager.deselect_bool = bpy.props.BoolProperty( name="Checkbox", description="A checkbox", default = False) bpy.utils.register_module(__name__) def unregister(): del bpy.types.WindowManager.deselect_bool # Unregister our flag when unregister. bpy.utils.unregister_module(__name__) if __name__ == "__main__": register() | I have a self made checkbox in a script. Now I want to create a hotkey in the Input manager to toggle it. What I have done so far is to create a keymap item with wm.context_toggle. But I cannot get the Context Attribute to work. I grab the one from my script, the Python term in the tooltip. Which is WindowManager.deselect_bool and with that I get an error that the "Object has no attribute WindowManager". What is the proper Context Attribute term here? Is it even possible to do it this way? If not, what is the proper way to assign a toggle hotkey for my custom checkbox? Script: import bpy from bpy.props import BoolProperty class LayoutDemoPanel(bpy.types.Panel): bl_label = "Demo Panel" bl_space_type = 'VIEW_3D' bl_region_type = 'UI' def draw(self, context): layout = self.layout wm = context.window_manager # Our bool is in the windows_manager layout.prop(wm, "deselect_bool") # Our checkbox def register(): bpy.types.WindowManager.deselect_bool = bpy.props.BoolProperty( name="Checkbox", description="A checkbox", default = False) bpy.utils.register_module(__name__) def unregister(): del bpy.types.WindowManager.deselect_bool # Unregister our flag when unregister. bpy.utils.unregister_module(__name__) if __name__ == "__main__": register() |
This is new right? I heard running sites over https was avoided because of issues with ads but now it looks like the entire network has it. Connection doesn't run over https by default though, at least not on iOS safari. You have to type in the url manually, anybody know why? *EDIT I guess this is somewhat of a duplicate but I checked the original thread and couldn't find anything anything about typing https manually into the url. I'd still like to know if it's normal to have to do this or if stack exchange should be connecting automatically over https. | So it looks like Stack Exchange now supports HTTPS (to some extent). Which is awesome! But there are a few problems, the main one being that some content is delivered over the CDN, which is plain HTTP. This causes browsers to complain about "unsecured content": |
I've just started using Ubuntu (or any Linux distro, for that matter). I just bought this computer (), and I've installed the latest Canonical LTS version of Ubuntu (20.04). My battery life is, quite frankly, abysmal. I was told the battery should be lasting 7-8 hours, but it's barely lasting 3. I assumed it might be a driver issue with the NVIDIA GPU, and, as per the instructions , I examined the "Additional Drivers" tab, where I saw that the "Using NVIDIA driver metapackage from nvidia-driver-440 (proprietary, tested)" radio button was already selected: So now I'm at a bit of a loss as to what's going on. Again, I'm new to Ubuntu and to Linux, even though I do have some rudimentary knowledge of the command line--does anyone have any recommendations of next-step diagnostics? | This question is present as a matter of historical interest. While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the . It is possible to greatly extend the usage time of a laptop or netbook running on battery by disabling various services and installing various packages. What tricks or tips do people have for getting an extra hour or two out of their batteries? |
The bronze effect is with the help of quixel textures and there is an HDR image in the background. How do I preserve those effects and bronze texture in a render animation or image? I'm using the shader mode and I have checked the transparency also, in the film section of the render properties. For the Render, I´m using Cycles with CPU toggled on. | Blender 2.8 contains a number of HDRi's in it by default for the LookDev. I'd like to know how to use them in final renders (EEVEE or Cycles), because quite frankly they appear fantastic. |
Basically the point of the code is that its a dropdown. The dropdown is initially displayed to none and when it is clicked a active dropdown class is added on to it. The problem is that once its added its not working when I try to use jquery to hear for a click. html <button onclick="dropdown_btn()" type="button" style="background: none; border:none; font-size: 25px; font-weight: bold; position: relative; top: 29%; cursor: pointer; outline: none" id="user-page" class = 'user-dashboard-dropdown'> <img width="50" src="{% static 'imgs/user-icon.png' %}"> </button> <div class="dropdown-for-user" style="display:none"> <ul style="list-style-type: none;"> <li><a href="{% url 'profile' %}">Profile</a></li> <li><a href="{% url 'account' %}">Account</a></li> <li><a href="{% url 'saved-items' %}">Saved Items</a></li> <li><a href="{% url 'listed-items' %}">Listed Items</a></li> <li style="border-bottom: none;"><a href="{% url 'logout' %}">Logout</a></li></ul></div> jquery/javascript function dropdown_btn(){ $('.user-dashboard-dropdown').addClass('active-dropdown'); $('.dropdown-for-user').css('display', ''); } $('.user-dashboard-dropdown.active-dropdown').click(function(){ alert('ran'); $(this).removeClass('active-dropdown'); $('.dropdown-for-user').css('display', 'none'); }); | I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option. |
Can anyone show me how to prove this statement? I'm very confused. I have tried substitute numbers into each x, k and m, it seems this statement is true but it needs to be proved by mathematical methods. Thank you! | Can someone please show me how to prove this statement? $$\forall x\in\mathbb N (x > 1\to\exists k\in\mathbb N\exists m \in\mathbb N (m \equiv 1 (\text{mod }2) \wedge x = 2^km))$$ I can only assume $m = 3$ and when $x > 1$. |
When I am visiting , I see only some questions as highlighted. Why so? "Ruby on rails" is added in my favorite tag list. So it should highlight all the questions.. A preview (see full image ): | On SO, when I'm scrolling through "questions" some have a yellow background. Is this intuitive to everyone but me? What is the yellow background trying to tell me about this particular question? |
I'm working on this problem "Find all entire functions $f(\frac{1}{p})=\frac{1}{1+p}$ for all prime $p$." My approach is using identity theorem. But in this case it does not seem good. We have $$f(1/p)=\frac{1/p}{1+1/p}$$ So naturally, I set $g(z)=f(z)-\frac{z}{z+1}$. Consider the plane excluded a circle around $z=-1$. Then $g$ is analytic in that region. And $g=0$ on the set of $\{1/p\}$ which has a limit point. So $g=0$ on the constructed given. But how do I extend it to $-1$? Or I can't? | Let $U$ be an open connected neighborhood of $0$ in $\Bbb{C}$ and $f$ a holomorphic function on $U$. The exercise is to prove that if $f(\frac{1}{n})=\frac{1}{n+1}$ for all $n\ge 1$ then $f(z)=\frac{z}{z+1}$ on $U$. So I did it using the function $g:\Bbb{C} \setminus\{-1\}\to \Bbb{C}$ such that $g(z)=\frac{z}{1+z}$ so $g$ is holomorphic on $\Bbb{C} \setminus\{-1\}$, now as $U$ is open we can find a disc $D(0,r)\subset U$ for $r$ so that $r<1$. Therefore, using analytic continuation we have $f=g$ on $D(0,r)$. My main problem is now to prove that $U\subset\Bbb{C} \setminus\{-1\}$. Perhaps, I can say that if $-1\in U$ we can find a path from $0$ to $-1$ but not sure how can I continue. |
Is there a way to flag a revision for a moderator? The edit on this answer, , should be rolled back but I don't have that option and don't see a way to flag just the edit. | Have a look at revision 6 of . How about adding "flag" buttons for individual revisions? Or should I just flag the question itself, category "other", and specify the revision in the text? (That's what I ended up doing.) |
I tried to create my own hand-made symbol by modifying the standard symbol "{". It works... but not always. LaTeX barfs at me when my hand-made symbol is inside a caption environment in a figure. \documentclass{report} \newcommand{\bmark}{\raisebox{.53ex}{\rule{.2em}{.1ex}}} \newcommand{\bopen}{{\ooalign{\{\cr\hfil\bmark\hfil\cr}}} \begin{document} \begin{figure} \caption{My caption. $\bopen$} \end{figure} \end{document} How can I fix this? Is there a better way of doing this? | I am trying to implement a custom version of the \ref command. I found out that in order for me being able to redefine this command I need to do so via \AtBeginDocument as otherwise my change seemed to get overwritten by something else. It works now as expected except when using \ref inside a \caption which will produce the following error: Argument of \@caption has an extra }. \caption{Test here \ref{sec:Section}} Paragraph ended before \@caption was complete. \caption{Test here \ref{sec:Section}} Here is a MWE reproducing the problem: \documentclass{article} \usepackage{xstring} \AtBeginDocument{% \let\refCopy\ref \renewcommand{\ref}[1]{% \IfBeginWith{#1}{eq:}{ (\refCopy{#1}) }{ \refCopy{#1} } } } \setcounter{errorcontextlines}{999} \begin{document} \section{Section} \label{sec:Section} \begin{figure} \caption{Test here \ref{sec:Section}} \end{figure} \end{document} If I remove my custom implementation of \ref the document compiles just fine. What is causing this problem and how can I avoid it? |
There are several answers regarding the use of dual passports when traveling between the US and the EU. But here is a twist. I have a flight booked from Amsterdam -> London -> US (and return). As far as I can see, I should use the US passport for airline passenger information for the whole ticket. US passport to be shown going into and out of the US (I realize going out of the US, this is shown only at the airline's desk). Dutch passport control, going in or out, show EU passport. What should I do for London in transit? I would assume the US passport going out (consistent with airlines), but is that right? Coming back, should it be the information on the airline manifest (which would be US passport) or the EU passport? (again, my best guess is to use the EU passport). | I am a citizen of two different countries, and have two passports. How should I use my passports when traveling? |
I want to create a matrix with LinkedLists anf fill all the cells with 0. private LinkedList<LinkedList<T>> matrix; private int rows; private int columns; // constructor public Matrix(int rows, int columns){ this.rows = rows; this.columns = columns; for(int i=0; i<rows; i++){ for(int j=0; j<columns; j++){ matrix.get(i).add(0); // here I get the NullPointerException } } } What am I doing wrong? | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
Suppose that $$ f (x_0) = g(x_0) $$ and that $$ f'(x)\le g'(x), \qquad x \ge x_0. $$ Then show that $$ f(x)\le g(x), \qquad x \ge x_0. $$ This is an "obvious" fact if one assumes that the second equation means that $g$ grows faster than $f$ on $[x_0, \infty)$ (or at least as fast). But how would you go about to prove this from the definitions? Thanks in advance! | I have to do the following exercise: Let $f$ and $g$ two differentiable functions such that $f(0)=g(0)$ and $f'(x)\leq g'(x)$ for all $x$ in $\mathbb{R}$. Prove that $f(x)\leq g(x)$ for any $x\geq0$. Now, I know this is true because the first derivative of a function is the angular coefficient of the function in a point $x$. So, $f'(x)\leq g'(x)$ means, in other words, that the function $g(x)$ grows faster than $f(x)$. I think this is the base for a more formal proof, could someone help me to figure out a more formal proof? |
I have installed windows 10 on my pc and I had Ubuntu before I install that. But after windows installation I couldn't boot Ubuntu since grub2 menu doesn't appear and it will directly boot to Windows. I need a way to get grub2 menu. | I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu. How can I get Ubuntu back? |
The problem is that Ctrl+Shift+v or Ctrl+Shift+c do not work in eclipse or thunderbird when Ctrl+Shift is set for changing layout. It is true as for ubuntu 17.10 and 18.04. thank you for advices! | Can I use Ctrl+Shift for changing languages? I can't set this hotkey for changing keyboard languages. At this moment Alt+Shift switch languages, but I can't see this hotkey in keyboard hotkeys list or in gsettings list-recursively org.gnome.desktop.wm.keybindings | sort | more output. |
When users wear a large hat above the border of their profile picture, it sometimes hides the Activity tab button, which makes it impossible to visit their profile activity page directly. Here are a couple of example using my own profile: In the example on the left, the "Activity" button is completely hidden, and cannot be clicked. In the example on the right, the "Activity" button is still partially visible, but it's impossible to click it. When I visit other people's profiles wearing such hats, I can't go to their activity page directly. I have to use some alternative link (such as the links to view all the questions or answers). | Depending on how a user places his hat it may become hard to impossible to click e.g. the "Activity" button on a users profile-page - like e.g. here: When trying to click the visible part of "Activity" I always end up on that users hat-list. |
I am trying to setup password less login from my Mac OS X to to Ubuntu VM created by Virtual-box. I am using NAT->port forwarding option in VM and have host port as 3022. When I do ssh -p 3022 [email protected] from my local and I can able to login to ubuntu with password, and this works vice versa. Now I have created public/private key file in my Mac and copied the pub key to VM (ubuntu/.ssh/authorized_keys) So now when I do: ssh -p 3022 [email protected] and it's asking for the password again. I verified the key from id_rsa.pub vs VM authorized_keys and key is same in both places Can someone tell me if I am making any mistake in my steps? | How do I set up SSH so I don't have to type my password when connecting to a host? |
I want to view the PDF output from TeXnicCenter with the latest version of Adobe Acrobat or Adobe Reader. How do I configure TeXnicCenter accordingly? | How to configure TeXnicCenter to work with Adobe Reader DC? When I building and view current file .tex the following error "Can not execute the command" shows up and the PDF is not generated. If there are any related post, could help. Thanks a lot! |
First of all I'd like to say that I have looked for the answers to my specific question and have not found it in the existing topics. The question is fairly simple. Say, we need to prove statement P by the method of contradiction. Assuming that $\lnot P$ holds, using the list of statements proven earlier to hold or derived by us during the proof, we arrive to P being $true$. $$\lnot P \to A_1 \to\ ... \ \to A_n \to P$$ $$\lnot P \to P \iff \lnot(\lnot P) \lor P \iff P $$ We can therefore add P to the list of our proven statements, because it was derived. Most of the proofs contain something in the lines of "the obtained contradiction proves that our initial assumption ($\lnot P$) was wrong and so $P$ holds". What I don't understand is, if the initial assumption ($\lnot P$) is thus proven to be false, then why can we be sure that anything derived from it holds (in particular, that P holds)? On the other hand, if it cannot be derived then the assumption ($\lnot P$) can in fact be true. Can someone explain why this type of argument cannot be used? | Let's say that I prove statement $A$ by showing that the negation of $A$ leads to a contradiction. My question is this: How does one go from "so there's a contradiction if we don't have $A$" to concluding that "we have $A$"? That, to me, seems the exact opposite of logical. It sounds like we say "so, I'll have a really big problem if this thing isn't true, so out of convenience, I am just going to act like it's true". |
See this picture and kindly clear my doubt thanks for your help | I am trying to find a small enough microcontroller for a project, but I am not familiar with the notation used to denote the sizes in this image: What does that mean when it says 12,20/11,80 SQ and 7,50 TYP. The image is from . OR is this not where I find the physical dimensions? If these do not denote the physical dimensions of the part, then where in the datasheet is that written? |
I want to prove that:$$\int_{-\infty}^\infty f(x)dx=\int_{-\infty}^\infty f\left(x-\frac1x\right)dx$$ And use the result of this proof to evaluate:$$\int_{-\infty}^\infty\frac{x^2}{x^4+1}dx$$ | If $f(x)$ is a continuous function on $(-\infty, +\infty)$ and $\int_{-\infty}^{+\infty} f(x) \, dx$ exists. How can I prove that $$\int_{-\infty}^{+\infty} f(x) \, dx = \int_{-\infty}^{+\infty} f\left( x - \frac{1}{x} \right) \, dx\text{ ?}$$ |
My html+js+form.html: I have also a css, but its not important now. So my problem is, when i insert a new row, it wont be highlighted, just the others which is i created the table in the beginning. I tried: $("#shipmentTable tr").click(function(){ $(this).addClass("selected").siblings().removeClass("selected"); }); and css for the table: .member tr.selected { background-color: rgba(41, 103, 182, 0.89); color: #FFF; } but what i said i isnt working correctly. Can anyone helps to me? | I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option. |
On the pages of many modern web services (including stackexchange webpages), there is a black header. What is the psychological effect of this? Is there any significance of it being black? Is there an optimal width for this header? | Been reading about . It's funny that ReadWrite, as well as StackExchange, has chosen a dark navbar as well. Why this trend to choose dark navbars? |
Is there a significant quality difference between lenses made by Canon and those made by Sigma or Tamron? Specifically, I have been looking at : but if the Sigma or Tamaron equivalent lenses offer similar quality I would love to save a few thousand dollars. | I am just another guy who just taken up photography as a social hobby who enjoys taking pics of everyday life, social events / parties & some portraits. Need camera for short overseas trip (2-3 times a year), maybe some landscape pics. I have done some research and have come up a list of main lenses that I am considering and hope you guys can offer some advice / comments to whether I should make those purchases. Main reason why I chose "third party lenses" 'cos apparently they cost less, newer and are "award winning" - so I don't see the point of spending more for the original canon lens (which some maybe quite old - ie 3-5 yrs). Sigma 17-70mm F2.8-4 DC MACRO OS HSM Lens (day to day lens) Sigma 85mm F1.4 EX DG HSM (for portrait & bokeh effects) Wide angle lens (any suggestions) Main questions / comments please... Q1) What do you think of the lens choices that I have decided to build my kit? Q2) Any wide angle lens that you will recommend? (third party or canon) or should I get wide angle zoom lens ? Q3) What are your thoughts that I chose all my lens from Third Party instead of Official Canon ones... is that a "smart move"? |
I want to travel to Berlin several times in the next few months. I want to avoid the busiest times, when there are big events like IFA or Berlin Marathon because hotels get more expensive then. Is there a reliable and comprehensive list of (only) big events that influence hotel availability and prices considerably? Sure I can find lists of all events, but then I don`t know which are the dangerous ones... | Is there a resource that warns me for (almost) any city / destination when my travel dates coincide with some big event there? Illustrative example: Say I want to travel to Frankfurt and I'm fairly flexible in my dates. Once a year Frankfurt hosts the international automobile trade fair IAA and during that time most hotels in the city are booked up, even hostel bed prices triple well beyond EUR60 a night and you can figure 1-2 hours to wait for a dinner table if you did not book days in advance. Since I am flexible I would like to avoid this hassle and travel another time, so I want to know, what are the times to avoid? Now for Frankfurt I do know this and could look up the dates of the IAA and avoid those, but then there are thousands of other small or big conferences or trade fairs in Frankfurt every year and I don't know how for every single event how big of an impact it has. And in fact I am looking for a resource that could tell me for any city which are the dates to avoid, i.e. not only trade fairs in Frankfurt but also say Oktoberfest time in Munich. These are all examples I know to avoid, but I seek similar information for places I am not familiar with. Some ideas: One could One could contact the local tourist info, but that means asking and waiting for a reply and I would prefer to look it up right on a website. A good guidebook might have that info but I was more looking for an online-resource. |
My DM says that the wolf's bite attack causes a Str save or be knocked prone regardless of whether it hits or not. The attack is: Bite. Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 7 (2d4 + 2) piercing damage. If the target is a creature, it must succeed on a DC 11 Strength saving throw or be knocked prone. I thought it was implicit in the reading that the attack must first hit? | I'd like to clarify whether were-creatures need to do damage in order to have a chance of inflicting the lycanthropy curse. Considering the creature stats in isolation it would appear the answer is no. E.g. For the werewolf (all other lycanthropes are similar): Bite ... Hit: 6 (1d8 + 2) piercing damage. If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed with werewolf lycanthropy. From the above, the possibility of being afflicted applies whenever the bite attack hits. So if damage reduction or immunities kick in, and the target takes zero damage, there's still a possibility of getting the curse. However, page 206 of the MM also states: Curse of Lycanthropy. A humanoid creature can be afflicted with the curse of lycanthropy after being wounded by a lycanthrope. The keyword here is wounded, which implies that the attack must actually deal damage. The problem though, is that as far as I can tell: wounding isn't established in game terminology. Can we assume it really is synonymous with damage > 0? Or am I reading a little too much into the explanatory text? |
When doing substitution problems in integration, I've often come across things like $\mathrm{d}x/\mathrm{d}\theta =\cos \theta$ and so $\mathrm{d}x=\cos\theta \mathrm{d}\theta$, which seems like $\mathrm{d}x$ divided by $\mathrm{d}\theta$? I've asked it in a comment, by I got a complicated answer which I can't understand as I am a newbie in calculus. So could anyone give me a simple and step by step answer to explain why is that the case? | I just finished taking my first year of calculus in college and I passed with an A. I don't think, however, that I ever really understood the entire $\frac{dy}{dx}$ notation (so I just focused on using $u'$), and now that I'm going to be starting calculus 2 and learning newer integration techniques, I feel that understanding the differential in an integral is important. Take this problem for an example: $$ \int 2x (x^2+4)^{100}dx $$ So solving this... $$u = x^2 + 4 \implies du = 2x dx \longleftarrow \text{why $dx$ here?}$$ And so now I'd have: $\displaystyle \int (u)^{100}du$ which is $\displaystyle \frac{u^{101}}{101} + C$ and then I'd just substitute back in my $u$. I'm so confused by all of this. I know how to do it from practice, but I don't understand what is really happening here. What happens to the $du$ between rewriting the integral and taking the anti-derivative? Why is writing the $dx$ so important? How should I be viewing this in when seeing an integral? |
I've read in a pdf written by Ayantika Chatterjee and Khin Mi Mi Aung whose title is "Fully Homomorphic Encryption in Real World Applications" that it is possible to implement a bubble sort algorithm using certain Fully homomorphic libraries to be able to compare and sort messages while they are encrypted, here is a snippet of the pdf: The FHS circuit depends on two main operations: subtraction operation and decision making based on the subtraction result. Fully Homomorphic subtraction, which is implemented by performing homomorphic addition of one ciphertext with 2’s complement of another ciphertext. For two plaintext numbers a and b, subtraction can be computed as: a − b = a + 2’s complement of b Now a homomorphic subtraction of a' and b' which are the encryptions of a and b respectively is computed using the homomorphic addition as follows: a' − b' = a' + Encrypt(2’s complement of b) The 2’s complement of b in the encrypted domain is obtained as follows: Encrypt((2's complement of b), pk) = b' ⊕ Encrypt(11 . . . 1, pk) ⊕ Encrypt(1, pk) They also say that: The MSB (most significant bit) of the substraction output is further fed to the decision making module as a selection line. The following equations represent how the swap operation takes place between two elements A[i] and A[i + 1] depending on MSB (represented here as bt): temp = bt ∗ A[i] + (1 − bt) ∗ A[i + 1] A[i + 1] = (1 − bt) ∗ A[i] + bt ∗ A[i + 1] A[i] = temp So they make very clear that its the MSB of the substraction that determines which encrypted message is the biggest/smallest. So my question is how were they able to determine that is only the MSB which determines the answer because i know that if we have the number 2 which is smaller than the number 3 after encryption we don't have a guarantee that Enc(2) is smaller than Enc(3) | I am actually trying to study homomorphic encryption (on lattices) but I'm facing a problem. Every paper that I have read so far talk about writing the function to evaluate on ciphertexts as a circuit, either boolean or arithmetic according to our scheme if I understood this part well. My problem is that I couldn't find explicit documentation on how to turn a function to a circuit. Especially, in circuits, we can't have loops or conditions and I would have liked to apply my FHE scheme to the weights of a neural network, but I'm kinda stuck on how to represent the activation function (I think I would use the sigmoid, that can be represented with its Taylor expansion) and simple gradient descent. Does anyone have a clue or a good paper to help me understand how to write such functions to circuits? |
Subsets and Splits