body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I was trying to create a map in Folium using a custom map built tile layer created with Mapbox Studio (using 3 different datasets and a satellite basemap). I was wondering if there is a simple way to add it with Folium? I read in the documentation that style layers and datasets had to be called separately. I tried with the following (and a few variations), but each time it loaded the Python data with no base map. folium_map = folium.Map(location=[-8.907970, 33.433200], zoom_start=7, tiles='http://{s}.tiles.mapbox.com/v4/(username).(mapid)/{z}/{x}/{y}@2x.png?access_token=(access token)', attr='Mapbox') I was using Mapbox (instead of loading the datasets independently) because my datasets are pretty big (up to 100MB, upwards of 100,000 points) and that causes the Leaflet map to lag tremendously.
I cannot find correct usage for using custom mapbox tilesets with folium. From the documentation, "Folium also supports Cloudmade and Mapbox custom tilesets- simply pass your key to the API_key keyword" (). The docs provide this example... folium.Map(location=[45.5236, -122.6750], tiles='Mapbox', API_key='your.API.key') So I have tried... #Create Map my_map = folium.Map(location=[45.372, -121.6972], zoom_start=12, tiles='Mapbox', API_key = 'pk.xxxxxxxxxxxxxxxxxxxxxxxxxxx') #mapbox map id #Create Map my_map = folium.Map(location=[45.372, -121.6972], zoom_start=12, tiles='Mapbox', API_key = 'pk.xxxxxxxxxxxxxxxxxxxxxxxxxxx')#mb api key #Create Map my_map = folium.Map(location=[45.372, -121.6972], zoom_start=12, tiles='user.2fb7fc73', API_key = 'pk.xxxxxxxxxxxxxxxxxxxxxxx', attr='Mapbox Data Attribution') I have not been able to find any more example usage or explanation in the documents. If anyone has had success please advise?
I don't really care about encoding and stuff, as long as I get back the exact same byte array. So to sum up: How do I convert a byte array into a string, and then that string back into the same byte array I started with?
How do I convert a string to a byte[] in .NET (C#) without manually specifying a specific encoding? I'm going to encrypt the string. I can encrypt it without converting, but I'd still like to know why encoding comes to play here. Also, why should encoding even be taken into consideration? Can't I simply get what bytes the string has been stored in? Why is there a dependency on character encodings?
In Lord of the Rings: The Return of the King on the way to returning to the Shire Gandalf tells the hobbits that: But if you would know, I am turning aside soon. I am going to have a long talk with Bombadil: such a talk as I have not in all my time. He is a moss gatherer, and I have been a stone doomed to rolling. But my rolling days are ending, and now we shall have much to say to one another. So does this mean Bombadil is also a maiar like Gandalf? Has his reason been fulfilled and so he is now in rest?
The most iconic of Middle-earth questions: Who or what was ? Was he an elf? Was he akin to Gandalf, and one of the wizardly stock? Was he something… else?
I am speeking about graph, that shows a big probability mass. This is the way that it finally shows with some data I found online and used to understand Latent Dirichlet Allocation topic modeling. As far as I understand, this graphic is ideal to give out final names to each topic according to the frequency or relevance of each term given the topic but I've got two questions: 1. What would you simply say about topic 8 position on the graph? Meaning that I can't tell what each square represent in this graph, I can't tell in plain words what's the difference between topic 1 and 10, or topic 8 and 3, given their position on this graph. 2. What can you tell about the big gray line in comparisson to the red filling when lambda is 0? I mean, I think I get that when lambda is 1, it's meaning about plain frequency of the term in the whole corpus vs the frequency of the terms in that topic, but I'm not sure I get it with putting more wight in the ratio from red to gray, what is the gray line saying about that term and how is red contransting?
I write about that shows a big probability mass. It's a web-based interactive visualization of topics estimated using Latent Dirichlet Allocation that is built using a combination of R and D3; the default for scaling the set of inter-topic distances defaults to Principal Components, but other algorithms are also enabled. This is the way that it finally shows with some data I found online and used to understand Latent Dirichlet Allocation topic modeling. As far as I understand, this graph is ideal to give out final names to each topic according to the frequency or relevance of each term given the topic but I've got two questions: 1. What would you simply say about topic 8 position on the graph? Meaning that I can't tell what each square represents in this graph, I can't tell in plain words what's the difference between topic 1 and 10, or topic 8 and 3, given their position on this graph? 2. What can you say about the big gray line in comparison with the red filling when lambda is 0? I think I get that when lambda is 1, it's meaning about plain frequency of the term in the whole corpus vs the frequency of the terms in that topic, but I'm not sure I get it with putting more weight in the ratio from red to gray: what is the gray line saying about that term and how is red contrasting? You can get this for a model named lda_model$plot() found . I am looking for the main idea at least. If there is info I need to add please tell me.
Can somebody help how message signal (words spoken near microphone) is modulated using LC circuit and how lc circuit oscillates at particular frequency by applying dc voltage. In the below circuit l1 is 0.1 uH and capacitor is vc10-100 pf. Actually in frequency modulation increase in voltage of message signal increases the frequency of carrier frequency and decrease in the voltage of message signal decreases the carrier frequency .I want that concept to be linked to the circuit. Thanks in Advance
– Schematic created using This is a minimalist FM transmitter I've found from I'm a bit confuse about three things 1)How does this modulates the base input signal to frequency modulation ? Because I don't see any change happening neither in Inductance nor in Capacitance of that LC tank oscillator. Is that because of C1 somehow ? 2) For what purpose capacitor C5 is used ?
I have rendered an object using hdri and lamp lights. Using render layers i want to have object and shadows only. I show you my nodes. I need to know how to transform white pixels to alpha channel using nodes.
I am trying to render an animation in cycles without the background. However, every time I have it render, the background still shows up. I used the compositor to add a background image so I can animate the object around the background. I set the output to RGBA and set the film to transparent. Now I want to use it in After effects and I simply want to export/render it without the background and make it transparent. How do I do that?
Q.Prove: $A=(A\cap B)\cup (A-B)$ I want to prove it using set laws. But I am lacking of any hint to break L.H.S into any usable result. Any hints will be appreciated.
Prove $A = (A \setminus B) \cup (A \cap B)$ Logically, this is clearly true. I can explain why: start with $A$, remove all elements in $B$ and then add in any elements in both $A$ and $B$, which restores you back to $A$. That's an explanation, but AFAIK, it's not a proof in the formal proof sense. I submitted a proof by a truth table which considers the four possible scenarios where an element is in/not in $A$/$B$. My professor asked me to redo the proof without a truth table. My question is what mechanisms and strategies can I use to prove this in a acceptable formal proof sense?
I want to know to browse files from iPhone with Bash Terminal or other tools on Mac. Does anybody of you know how to do this ? Thank you for your answers
What method of browsing the root filesystem is least likely to make any modifications to it? Hooking to a pc is an option. Jailbreaking is not an option for this question.
Example: I wasn't sure if it was A, B, or C. [...], I still knew I would fail. I thought of either way but I think is not grammatically correct. What should I chose if I'm referring to two or more options?
Does β€œeither . . . or” apply to only two options? For example, can I say, β€œIt can provide either 100, 150, or 400 amps of power”? Or should it just be β€œIt can provide 100, 150, or 400 amps of power”?
i want to execute youtube-dl command in python. So that i can save my favorite videos. Something like that: import os youtube-dl any_link
How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?
I just found something weird and I have no idea where it is wrong. I used two different approaches. $\int _0^x(t^3-2t+3)\ dt=4\implies \frac{1}{4}x^4-x^2+3x=4\implies$ approximately $x=1.63$ or $x=-3.09$. By the fundamental theorem of calculus, $\frac{d}{dx}\int _0^x(t^3-2t+3)\ dt=\frac{d}{dx}4\implies x^3-2x+3=0\implies$ approximately $x=-1.89$. Could anyone tell me where it went wrong?
Suppose we have $x^2+4x+3=0$ We differentiate both sides to get $2x+4=0$. So $x=-2$ But $(-2)^2+4(-2)+3=0$ $4-8+3=-1$ is not equal to $0$. Which tells that we cannot differentiate equalities. But in many proofs, like in integral calculus, differentiating both sides occurs. So, where is the fallacy?
How can I prove that every prime except 2 and 5 divide infinitely many of the following integers $11, 111, 1111, ...$ ?
Prove that every number ending in a $3$ has a multiple which consists only of ones. Eg. $3$ has $111$, $13$ has $111111$. Also, is their any direct way (without repetitive multiplication and checking) of obtaining such multiple of any given number( ending with $3$) ?
If Frodo successfully redeemed Smeagol, who did not fall back into becoming Gollum again, then would Smeagol - technically a Ring-bearer - be permitted into Valinor like Frodo and Sam after the Ring is destroyed?
If Gollum had not died in Mount Doom, would he have been allowed to join the elves, Bilbo, and Frodo in the Undying Lands? He was, after all, by far the longest-lasting bearer of the One Ring (not counting Sauron himself before it was taken from him), which is the reason given for Frodo, Bilbo, and Sam’s being allowed to go there. And would his being or not being allowed to go to the Undying Lands be affected by whether or not the Gollum part of him would vanish after the destruction of the Ring, leaving only SmΓ©agol behind? Note: As Richard’s answer (with comments) points out, there are various logistical practicalities that would likely get in the way of Gollum ever getting anywhere. However, what I am asking here is whether whoever decides who is and isn’t allowed to go to the Undying Lands would consider Gollum, as a Ringbearer, qualified to go there.
The first image is from Windows 10 v1511 (Build 10586.218), and the "All apps" menu item is tucked into the lower left corner, out of sight & mind. This image is from a Surface Pro 4 running v1607 (Build 14393.321). The All Apps menu is taking up a ton of real estate and not contributing anything to society. How can I move it down to the lower corner like in the green start menu above?
This question has two parts: I've Googled but cannot find anything about this. Is there a way to make that "All Apps" section disappear completely from the Start Menu? (The section to which I refer is labelled as #2 .) I kept coming across posts that addressed how to remove individual apps from that grouping - but that's not what I'm trying to do... Also, I'd honestly rather uninstall all of those "Metro" apps altogether. I found it quite surprising when I'd right-click on an app shortcut and "uninstall", it was only for that user. I found help online how to use PowerShell to remove them. But that wasn't too effective - in particular I remember the XBox just wouldn't go away. I ended up taking ownership of the folder that contains all of those "lovely" apps and renaming some of them with some prefix like "REMOVED___"... Is there a way to actually blow all of these away completely?
I created a new group and user so it can connect to server using SFTP. This user's directory is set to /var/www. Running ls -ld gave me following result: drwxr-xr-x 4 root sftponly 4096 Aug 12 04:05 /var/www/ sftponly is the group and mysftpuser is the user which is part of this group. I was able to successfully connect using SFTP client but was unable to delete any file inside www. So I ran following command to change permission: sudo chmod 775 /var/www/ Now running ls -ld gives me following result: drwxrwxr-x 4 root sftponly 4096 Aug 12 04:05 /var/www/ But now when ever I try to connect to SFTP using user mysftpuser I get error in auth.log fatal: bad ownership or modes for chroot directory "/var/www" What did I do wrong and how to fix this issue? EDIT sshd_config Match group sftponly ChrootDirectory /var/www X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp
I've been trying to configure sftp in a debian server.sshd_config: Subsystem sftp internal-sftp UsePAM no Match User sftpUser ChrootDirectory /users/sftp/sftpUser ForceCommand internal-sftp AllowTcpForwarding no X11Forwarding no Directories: drwxr-xr-x 3 root root 4096 Oct 20 10:59 users drwxr-xr-x 3 root root 4096 Oct 20 11:00 sftp drwxr-xr-x 2 root root 4096 Oct 20 11:00 sftpUser cat /var/log/auth.log Oct 20 10:58:22 w1 sshd[24634]: Accepted password for sftpUser from 201.156.103.213 port 34106 ssh2 Oct 20 10:58:22 w1 sshd[24636]: fatal: bad ownership or modes for chroot directory component "/" sftpUser no home, bin/falseand member of user group. In the client side I'm getting the famous Write failed: Broken pipe and then the connection is dropped. Commenting the ChrootDirectorycommand in sshd_config makes the connection, but get's the user loose. What am I doing wrong ?
I read this about 30/40 years ago. I don't remember if it was a short story or book. What I remember of it : Some aliens arrive at earth; they don't find any living humans, just empty cities. They go to one museum and revive an Egyptian mummy. When it's alive, it keeps asking where his servants are. They don't get any information from the mummy so they kill him again. Later on they revive another human, who turns out to be more intelligent than the aliens. I don't remember much of what happened from this point on, except: In the end the human starts to revive other humans. Some one can tell me what story, name of book.
I'm trying to locate a short sci-fi story I read years ago about a human that is "resurrected" by an arrogant and malignant alien species that discovers him in a "museum" on an earth where the inhabitants, though very advanced, had been wasted by a close encounter (I believe) with a neutron star. He is the third or fourth human they "reconstruct" and it turns out that he is an advanced mentalist, disappearing at the moment of his "resurrection". He outwits the aliens and eventually tricks them into plunging their ship into the sun in order (they think) to prevent him from finding out where they come from. Any suggestions?
The maximum value of $\int_0^1(f(x))^3 dx$ is $\frac pq$ if $|f(x)|\leq 1$ and $\int_0^1 f(x)dx=0$. Find $p+q$, given that $p,q$ are relatively prime. This question has been previously asked before but all the answers are too complicated for me as I haven't been taught inequalities in integrals. So if anyone could solve it in a simpler way it would be really helpful. Edit: the answer is $p+q=5$. Edit 2: Since the question is/was closed, this is to provide "additional context". The source of the problem is: Advanced Problems in Mathematics for JEE Main & Advanced by Vikas Gupta and Pankaj Joshi, Subjective Exercise of Chapter 5, Indefinite and Definite Integration, Question Number 12. My work: If $g(x)\leq f(x)$, for $a\leq x\leq b$, then $\int_a^b g(x)dx\leq \int_a^b f(x)dx$ My gut says that the problem will probably use this, because when $0\leq f(x)\leq 1, \left(f(x)\right)^3 \leq f(x)$ and the inequality reverses when $-1\leq f(x)\leq 0$. But I'm not able to put it to work. Relevance: Following is a picture showing the syllabus I have to study under Integral Calculus. UNIT9:INTEGRAL CALCULUS Integral as an anti - derivative. Fundamental integrals involving algebraic, trigonometric, exponential and logarithmic functions. Integration by substitution, by parts and by partial fractions. Integration using trigonometric identities. Evaluation of simple integrals of the type $\int \frac{d x}{x^{2} \pm a^{2}}, \int \frac{d x}{\sqrt{x^{2} \pm a^{2}}}, \int \frac{d x}{a^{2}-x^{2}}, \int \frac{d x}{\sqrt{a^{2}-x^{2}}}, \int \frac{d x}{a x^{2}+b x+c}$ $\int \frac{d x}{\sqrt{a x^{2}+b x+c}}, \int \frac{(p x+q) d x}{a x^{2}+b x+c}, \int \frac{(p x+q) d x}{\sqrt{a x^{2}+b x+c}}$ $\int \sqrt{a^{2} \pm x^{2}} d x \int \sqrt{x^{2}-a^{2}} d x$ Integral as limit of a sum. Fundamental Theorem of Calculus. Properties of definite integrals. Evaluation of definite integrals, determining areas of the regions bounded by simple curves in standard form. (Transcribed from ) Since it does not involve higher level inequalities used by the solutions in the attached link, and the fact that this problem is posed to us under the above syllabus, there has to exist a simple solution (though lengthy, probably) to the question.
Find the maximum value of $\int_0^1 f^3(x)dx$ given that $-1 \le f(x) \le 1$ and $\int_0^1 f(x)dx = 0$ I could not find a way to solve this problem. I tried to use the cauchy-schwarz inequality but could not proceed further $$\int_0^1 f(x) \cdot f^2(x) dx \le \sqrt{\left(\int_0^1f^4(x)dx\right) \left( \int_0^1 f^2(x) dx\right)}$$ Any hints/solutions are appreciated.
I am writing a class file and want to use fontspec and unicode-math if the compiler is luatex or xetex. If the compiler is pdftex I would like to define default fonts like cmr and phv instead. I am trying to use \sys_if_engine* in the cls-file but getting the error: sys not defined or somethins like that. Can I get around this?
How can I detect inside a TeX file which engine (pdftex/xetex/luatex) is used to compile the file? Is there a LaTeX package that provides this functionality?
I have asked this question , and asking it once again, as it was marked as duplicate, although it is different from the links that were pointed to be the same as the question. So, how can I create a table that looks like the following using LaTex? Thanks.
I'm new to LaTex, and would like to create a table that looks as follows: How can this be done in LaTex? Thanks.
Using my Samsung Galaxy Tab3 10.1 (4.4.2) I have just started using Chrome as the default browser instead of the built in "Internet". I have recreated many of the bookmark links on the home screen without issue, and they open Chrome as expected. However if I open and then "Add to Home Screen", the bookmark opens Chrome as a webapp meanng there are no tabs or any ability to use it like a normal browser. How on earth can I stop it opening as a webapp, and make it open as a normal tab?
Goal: Have a desktop shortcut that opens , ignoring the contained web app manifest that otherwise "overrides" the saved shortcut to and with "display": "standalone". I had this working previously on an older Android phone before a replacement / upgrade. Prior to the upgrade, I was able to long-press and open individual articles in new tabs - as well as copy link shortcuts to specific articles, as well as all of the other features and functionality that Chrome has to offer. Here is just a partial selection of references of other users complaining about the same: Using provides a temporary successful work-around. However, I can't find a successful way to add a link for this to my home screen. The "Add to Home screen" option within Chrome instead saves a link to - and in such a way that it opens as a web application instead of a web page within Chrome: On a desktop operating system, this would be a non-issue. (Create shortcut, enter desired URL, done.) Attempt 1: Provide my own Manifest So I created my own manifest - editing to change the start_url attribute to https://news.google.com/news/i#0, and the display attribute from standalone to browser. I then created my own HTML page that simply contained the below - then self-hosted both on a local web server: <html> <head> <Title>Google News</Title> <link rel="manifest" href="/news/manifest.json"/> </head> <body> Test </body> </html> However, this doesn't work: Despite the shortcut being saved with the desired name and icon, it links back to my self-hosted HTML page, and not the indicated start_url. Unfortunately, it appears that cross-domain URLs are not allowed per the manifest intent - as per and . Attempt 1b: MITM website Within the confines of my own local network, I figured I could try to (MITM) the website to temporarily provide a desired manfiest to use for addition to the home screen. Unfortunately, the website uses here, which appropriately blocks the attempt. Regardless - this is way too much work for what should be a simple effort. Attempt 2: Widget Bookmark Unfortunately, it looks like the 1x1 bookmark widget was removed in Chrome 48, as per . The suggested work-around is to use the "Add to Home screen" feature within Chrome. Goto 10 / see beginning. Attempt 3: Use the default-provided "Internet" browser Unfortunately, using "Add shortcut on Home screen" in the default-provided "Internet" browser produces the same result as Chrome. Consideration 4: Use a custom app / widget Could probably write and install a custom application or widget that could be added to the home screen to meet the goal. Or don't re-invent the wheel, and use an existing one. Some possibilities: "More Shortcuts": "Shortcut Customizer": Conclusion How can someone create a desktop shortcut to an arbitrary URL, ignoring a provided web app manifest?
What is the command line to run a console application with input argument fed from text file? text_file: This is a simple text file with characters and other symbols including tabs and new lines The console should get $./myapp "This is a simple text file with characters and other symbols including tabs and new lines"
So usually I start a mongod process with 2 arguments like this ~$ mongod --dbpath /media/nhuyvan1106/0CB6-189A/linux/mongodb/data --logpath /media/nhuyvan1106/0CB6-189A/linux/mongodb. But I don't want to specify the arguments every time, so I saved them to a text file called mongo.txt with this following content. --dbpath /media/nhuyvan1106/0CB6-189A/linux/mongodb/data --logpath /media/nhuyvan1106/0CB6-189A/linux/mongodb Then I cat that file and pipe it through mongod like this ~$ cat mongod.txt | mongod But it does not work, mongod still uses the default value /data/db for the argument --dbpath and same for the other argument. Does any know how I can achieve this?
I am converting between coordinate systems where Z is the vertical axis in one, and Y in another. I have the rotation values represented as a quaternion. I see this related issue but it's switching the handedness (DirectX and OpenGL): How would I go about swapping these values? I'd prefer not to convert to a vector3, modify and convert back again.
I have a quaternion, coming from a system with the following:(intertial sensor) Right handed. Forward direction: Y axis Right direction: X axis Up direction: Z axis I need to convert this into a coordinate system that is: (Unreal engine) left-handed. Forward direction: X axis Right direction: Y axis Up direction: Z axis I have tried negating the axis, and angle, I have tried switching values, i cannot get this to work. All help greatly appreciated! I am working in C#, with Microsoft.Xna.Quaternion.
How do i add my root user name to sudeors file in my Ubuntu operating system, because i can not have access as a root user now.
I clean-installed Ubuntu 11.10 today, and then installed VirtualBox. This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a group, I ran the following command: sudo usermod -G vboxusers stephane This is a problem. I now see what I should have run instead is: sudo usermod -aG vboxusers stephane The end result is I'm no longer in the groups I should be in. Including whatever group is required to run "sudo". When I run any command as sudo now, I get the following: $ sudo ls [sudo] password for stephane: stephane is not in the sudoers file. This incident will be reported. Is there a way to fix this, or do I need to re-install from scratch again?
I am following a networking course from udacity. In one of the tutorials, the professor says that loopback address is almost always 127.0.0.1 So, it means it can be other than 127.0.0.1. Can it be changed ? If yes, how ? And also, at one moment, a machine can have only 1 loopback address, is it right ?
I want to add two more loopback interfaces. I used the following command: ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up and type in ifconfig, i can see the loopback address was added. But if i want to add one more interface... (for example 127.0.0.3) the previous interface (127.0.0.2) was overwritten. Also when i look in /etc/network/interfaces i see no entry. How can i add multiple loopback interfaces permanently?
I need to know I name of this one cartoon. There are monsters, some of them have blue, some of them have red and some of them have yellow energy and when they are tired they return to their tubes. They are in their tubes and when a character says name of a monster SPIN!!! The character uses their fingerprint when they spin the tube, and then the monster comes out. I hope you can help me with this, any suggestions would be awesome, thanks in advance. There is one monster called Lock, but I'm not sure on the spelling
It’s a lot like PokΓ©mon, but instead of pokeballs, there are blue cylinders and I remember this one creature that was a giant white bear with blue crystals on its back. I think the main guy is trying to find his father?
Ubuntu was my first OS. After that, i created another 2 partitions in my HDD and set up Windows 8. Now Windows 8 is running automatically. There is no dual boot option left. Is there anyway to get my Ubuntu system back? or at least save my files? I cannot find the partition that had Ubuntu
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?
I'm a UK national passport holder living in Peru, do I need a Canadian visa for a 3/4 hour stop over to connect to a UK flight?
I'm passing through Canada, on my way to somewhere else. I'm staying only a short time. Is there a website, or some other way of find out out if I need a visa?
I have made some progress in AnyDice showing the probability for dice resolution system in the RPG system I've been working on. Here is the link to what I have so far: I need particular help on when a roll gets a 2 or 3 that that die can be rerolled once. I am interested to see how this alters the probability of success.
I am joining a D&D group. To generate each ability score, the DM has us roll 4d6, reroll any 1 or 2, and then drop the lowest die. If the reroll is a 1 or 2, then reroll again and again until the result is 3 or higher. I am curious about the distribution, and wonder if AnyDice could do it. How can I calculate the distribution of this ability score generation method in AnyDice?
If I have a 200mm lens, and want to focus at, say, 450mm from the camera, two questions: can I (do I need to) use bellows to achieve this? is there a formula for how to work out how much extension I need on the bellows to achieve the minimum focal length?
There must be a mathematical description of the difference that an extension tube makes to a lens -- is it something that can be easily described? (For example, with teleconverters you can say things like "a 2x teleconverter will turn a Y-mm lens into a 2Y-mm lens, and will lose you 2 stops." Is there something similar for extension tubes?) If there's nothing much you can say about magnification, in general, what about the change in closest focal distance? Is that also lens-dependent? What about if we factor out the lens: is there any general way to compare the effects of (say) a 12mm and a 24mm extension tube on the same lens?
I would like to personalize my list, to make it more compact. In part I managed, in fact I was able to reduce the space between the item but the problem I have now is that when in the same item the sentence is indented the space is too much space between the lines, I had to put the spacing of my whole document set at 1.5 (\renewcommand{\baselinestretch}{1.5}) but in the list I would like it to be 1 ... Specifically, in the picture below, in the second item, I would like to reduce the space between the first and second line Below is my code begin{itemize}[topsep=0pt,itemsep=-2ex] \item exterior orientation file (EO): it describes the position of the camera when the images are acquired; \item interior orientation file (IO): it describes the internal geometry of a camera, i.e., the camera and distortion parameters; \end{itemize} Thanks!
What is the best way to globally change the amount of vertical space between items in list environments?
So this has been a wild ride of a day, I started by trying to remove Ubuntu, messed up and removed GRUB, tried to fix it using a Windows 10 repair loaded onto a USB, that didn't work, reinstalled Ubuntu, discovered that GRUB was no longer loading. So I looked around found the Boot-Repair tool, used it. Now I have GRUB but it only lists UBUNTU and Advanced UBUNTU Options. Link to my fdisk -l and parted -l results
I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install. What can I do to fix this?
I seperated the one cylinder to two parts for texturing (The reason why is it separated, Δ± don't have idea "how can Δ± different texturing on the one part?") Now,I want combine the different two parts like in the beginning(like one cylinder) Thank you for helps :)
Situation I have obtained some blender files & licences for 3d models of transit vans and some trucks. Currently, when I export these objects to .obj files they are rather large, take a while to render and look to have been built in segments. Problem These models need to be used on Android devices and they need to be observable through one .obj file. What is happening is when I open the .obj I am not seeing the same model as I do in Blender. The doors and wheels of the vans for instance don't appear. End Product I need to find a way of reducing these models to be just one single object. Items on the interior of the van don't matter, seats for example. The file would ideally also be around 200kb, and exportable in a single .obj file. Can anybody shed some light on how I would go about doing this?
Clicking and doubling clicking with the mouse doesn't work.
After a recent update, ttf-mscorefonts-installer prompted me to accept its license agreement. β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ Configuring ttf-mscorefonts-installer β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ TrueType core fonts for the Web EULA β”‚ β”‚ END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE β”‚ β”‚ IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement β”‚ ("EULA") is a legal agreement between you (either an individual or a β”‚ single entity) and Microsoft Corporation for the Microsoft software β”‚ accompanying this EULA, which includes computer software and may include β”‚ associated media, printed materials, and "on-line" or electronic β”‚ documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your β”‚ rights to make and use copies of the SOFTWARE PRODUCT, you agree to be β”‚ bound by the terms of this EULA. If you do not agree to the terms of β”‚ this EULA, you may not use the SOFTWARE PRODUCT. β”‚ β”‚ <Ok> β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Screenshot: For some reason my terminal will not allow me to accept, or for some reason I am pressing the wrong hotkey... I've tried every letter on the keyboard and Enter among others... I'm sure there is a very simple and obvious solution to this. I've also just tried to remove the package completely however the terminal states that due to the package not being correctly installed, I should reinstall the package before removing it. Very frustrating! Essentially, because I cannot successfully install this package, I can't really ever upgrade my system because I always have to end up terminating the terminal with the license agreement (thus the upgrade fails).
I'm using the biblatex-chem bundle by @Joseph Wright. It works fine for entries in my bibliography that have three or fewer authors. But if there are four authors, instead of getting the numeric superscript, I get the superscripted indentifier and the warning "citation "x" on page 5 undefined on input line 97". There are no discrepancies or spelling mistakes in my code and .bib file (I checked and checked). The problem goes away when I remove a couple of authors. That doesn't seem like something I should do to my bibliography. Is there some other fix or a reason why this occurs? Here is my preamble etc. : \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{gensymb} \renewcommand{\baselinestretch}{1.4} \usepackage[backend=biber,style=chem-acs]{biblatex} \addbibresource{export1.bib} \title{\stuff} \author{person} \date{time} \begin{document} stuff \printbibliography \end{document} and example of a .bib entry that has this issue: @article{wsb, author = {Jing Wang,Patrick J. Bisson,Joam M. Marmolejos,Mary Jane Shultz}, title = {{Nonlinear interferometer: Design, implementation, and phase-sensitive sum frequency measurement}}, issn = {0021-9606}, doi = {10.1063/1.4997736}, pmid = {28810790}, abstract = {Sum frequency generation (SFG) spectroscopy is a unique tool for probing the vibrational structure of numerous interfaces. Since SFG is a nonlinear spectroscopy, it has long been recognized that measuring only the intensityβ€”the absolute square of the surface responseβ€”limits the potential of SFG for examining interfacial interactions and dynamics. The potential is unlocked by measuring the phase-sensitive or imaginary response. As with any phase, the phase-sensitive SFG response is measured relative to a reference; the spatial relationship between the phase reference and the sample modulates the observed interference intensity and impacts sensitivity and accuracy. We have designed and implemented a nonlinear interferometer to directly measure the phase-sensitive response. If the phase of the reference is known, then the interferometer produces an absolute phase of the surface. Compared to current configurations, phase accuracy and stability are greatly improved due to active stabilization of the sample-reference position. The design is versatile and thus can be used for any system that can be probed with SFG including buried interfaces and those with high vapor pressure. Feasibility and advantages of the interferometer are demonstrated using an octadecyltrichlorosilane film on fused silica.}, pages = {064201}, volume = {147}, journal = {The Journal of Chemical Physics}, year = {2017} }
I use to store all articles I need and bibtex4word add-on (in MS Word) to maintain the reference list. So, I would like to know how to properly fill the "author" field in Jabref with multiple authors to appear them correct in the reference list. For example, I've got the article with several authors: E. Orti, J.L. Bredas, C. Clarisse And I would like them to appear in this manner. But instead I get this: C. C. E. Orti, J. L. Bredas
\documentclass{article} \usepackage{} \usepackage{makecell, multirow, tabularx} \begin{document} \begin{table}[h!] \setlength\extrarowheight{2pt} % for a ever so slightly more open "look" \begin{tabularx}{\textwidth}{X |c |c |c |c |} \cline{2-5} & Mean & N & Std. Deviation & Std. Error Mean \\ \hline Testing123 Testin123 Testing123 Testin123 & 23\% & 10\% & 279\% & 233\% \\ \hline \end{tabularx} \caption{Testing123 Testin123Testing123 Testin123} \end{table} Outcome: I had added in multicolumn \begin{table}[h!] \setlength\extrarowheight{2pt} % for a ever so slightly more open "look" \begin{tabularx}{\textwidth}{X |c |c |c |c |} \cline{2-5} & Mean & N & Std. Deviation & Std. Error Mean \\ \hline \multicolumn{1}{|c|}{Testing123 Testin123 Testing123 Testin123} & 23\% & 10\% & 279\% & 233\% \\ \hline \end{tabularx} \caption{Testing123 Testin123Testing123 Testin123} \end{table} Outcome: and I wanted to make "Testing123 Testin123 Testing123 Testin123 " into 2 row.
\documentclass{article} \usepackage{tabularx} \usepackage{multirow} \begin{document} \begin{table}[h!] \setlength\extrarowheight{2pt} % for a ever so slightly more open "look" \begin{tabularx}{\textwidth}{c X | c | c | c |} \cline{3-5} & & \multicolumn{3}{c|}{Paired Differences} \\ \cline{3-5} & & Mean & Std. Deviation & Std. Error Mean \\ \hline Pair 1 & Testing 1 and Testing 2 and Testing 3 & 4.20\% & 44.6\% & 4.54\% \\ \hline \end{tabularx} \caption{Testing 123} \end{table} \end{document} Outcome: I cannot figure out. If I added \begin{tabularx}{\textwidth}{|c X | c | c | c |} It will not be working
The story is basically a very positive tale of aliens on the way to our solar system to meet us and promising the solution to some big problems of us humans like the cure for cancer, cheap, clean energy etc.. The twist at the very end is they also are very happy to be able to offer the cure for the caucasians amongst us. Made me laugh and think at the time and would love to be able to put a title/ Author to this, so i could properly attribute it and share it in it's original. If anyone knows this, many thanks in advance! Editted right after posting : Wow great site people, found it already in an already answered linked post! I was thinking of Reunion by Arthur C. Clarke : We have a simple remedy for the offensive yet harmless genetic plague that afflicted so many of the colonists. […] People of Earth, you can rejoin the society of the universe without shame, without embarrassment. If any of you are still white, we can cure you. :)
I am trying to track the title of a short story which is written as a message from an alien race to the original colonisers of earth apologising for the collapse of the experiment and advising the colonisers they will be rescued soon. It turns out the message is meant for a particular race of people. Any help greatly appreciated. Thanks
So I have a bunch of varchars that I need to sort in a certain way, first be alpha, and then treat the following number as a whole number (i.e. A2 would be before A10). That's the main problem, and then I have some with 'sub' letters after like A1M. Don't want to have to add a new column just for sorting, so I wanted to see if a more complex ORDER BY statement might be able to handle something like this. They should be sorted like this: A1 A1M A2 A6 A6B A9 A10 A15 A16 AS10 But it currently sorts like this (standard ORDER BY): A1 A10 A15 A16 A1M A2 A6 A6B A9 AS10
Is there an elegant way to have performant, natural sorting in a MySQL database? For example if I have this data set: Final Fantasy Final Fantasy 4 Final Fantasy 10 Final Fantasy 12 Final Fantasy 12: Chains of Promathia Final Fantasy Adventure Final Fantasy Origins Final Fantasy Tactics Any other elegant solution than to split up the games' names into their components Title: "Final Fantasy" Number: "12" Subtitle: "Chains of Promathia" to make sure that they come out in the right order? (10 after 4, not before 2). Doing so is a pain in the a** because every now and then there's another game that breaks that mechanism of parsing the game title (e.g. "Warhammer 40,000", "James Bond 007")
Can someone explain how the Gallant-Lambert-Vanstone method works (or which literature explains it)? It is also unclear to me how the Frobenius endomorphism can be used in some cases for a speedup. Also: how does it make sure that an attack remains infeasible (by using this method)? (I am especially interested because of the sec256k1 curve which uses the method)
Is there the way to generate new Koblitz curves, over $\mathbb F_{2^n}$ and $\mathbb F_p$? The says: The recommended parameters associated with a Koblitz curve were chosen by repeatedly selecting parameters admitting an efficiently computable endomorphism until a prime order curve was found. What does "efficiently computable endomorphism" mean? Maybe it means that trace of the Frobenius map should be equal 1? I am confused about all the Frobenius maps, endomorphisms, traces, etc. So, is there the way to generate Koblitz curves, or find efficiently computable endomorphisms?
VHDL code is finally converted into hardware equivalent when it is synthesized. What happens to data operator type "variable" when it is synthesized?
I know two ways in which a VHDL variable is synthesized by synthesis tool: Variable synthesized as Combinational logic Variable synthesized as a Latch unintentionally (when an uninitialized variable is assigned to a signal or another variable) What are the other ways in which a VHDL variable can be synthesized ? (Example: can it be interpreted as a FF ? )
Is there a way to execute batch & .exe files with a Python Code ? Because i try to write a programm what should execute a batch and later a .exe file at different paths.
How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?
I chose the wrong reason for closing a question (I blame my fat fingers), so I decided it was only fair to retract my vote. Now I cannot vote to close the question using the correct reason. It got me wondering if I had missed something, like an option to change my reason after voting. Does anybody know of any mechanism to do this?
For example... I closed a vote for 'too broad'. But then I realized I wanted to close it as a specific duplicate of another question instead. So I retracted my close vote. That worked. But I can't now vote to close as duplicate and the title says I already voted to close. Maybe this is intentional but it doesn't feel that way.
I have collected all the blue eyes and given them to the creature to grow proper eyes but it will not give me the star ring.
I'm stuck underground. I've collected all remaining elements (water, sun and forest), and now I'm trying to get that "star" element: I guess I should find an eye or something to put on that blind tentacle, but I've looked throughout the level and found nothing. How I can solve this puzzle?
What is the difference between class A {}; class Z: public A {}; and class A {}; class Z: virtual public A {};
I want to know what a "virtual base class" is and what it means. Let me show an example: class Foo { public: void DoSomething() { /* ... */ } }; class Bar : public virtual Foo { public: void DoSpecific() { /* ... */ } };
Using Excel's correlation function I get a correlation of -7% between data sets A & B. Data set C has a 92% correlation to A and an 84% correlation to B. How can C be strongly correlated to A and B, but A and B are slightly negatively correlated to one another? What other tests can I perform to help me better understand the relationships between A, B & C?
I know empirically that is the case. I have just developed models that run into this conundrum. I also suspect it is not necessarily a yes/no answer. I mean by that if both A and B are correlated with C, this may have some implication regarding the correlation between A and B. But, this implication may be weak. It may be just a sign direction and nothing else. Here is what I mean... Let's say A and B both have a 0.5 correlation with C. Given that, the correlation between A and B could well be 1.0. I think it also could be 0.5 or even lower. But, I think it is unlikely that it would be negative. Do you agree with that? Also, is there an implication if you are considering the standard Pearson Correlation Coefficient or instead the Spearman (rank) Correlation Coefficient? My recent empirical observations were associated with the Spearman Correlation Coefficient.
can I connect one GFCI ,and one non GFCI, outlet along with 2 lights and an exhaust fan on a 20 amp circuit fed by a 12/2 wire? I notice that some experts suggest a dedicated circuit for a GFCI outlet. Does this mean I must run a separate feed e.g. 14/2 to the lights in the bathroom?
In my rebuilding project I have counted 18 outlets and lights on one bedroom circuit that travels through 3 rooms. Is that ok?
I would like to create a script that navigate to 2 project folder, and execute 2 terminal that remain open, so that I don't have to do it everyday. I tried the following : #!/bin/bash cd Repository/project1/ && npm run start:debug cd Repository/project2/local && chmod -x already_made_script.sh but nothing happen. I did : Create file with script chmod u+x myscript.sh tried to call the script or double click on it. what can I fix. Sorry.
I'd like to write a script for opening multiple programs (servers) simultanously in separate terminals - doesn't matter which one - and assign different commands to different terminals with commands "landing" inside the correct terminal. Is this possible? Maybe, something like this: open terminal1 open terminal2 //simultanously with 1. command1 //execute in terminal1 without opening a new terminal window command2 //execute in terminal2 without opening a new terminal window ... Can I somehow label terminal windows so commands are executed inside correct terminal? I'd also like to watch all terminals while their programs are running - my programs have an argument for printing trace/debug to terminal. So I'd like to see what messages are exchanged between them. NOTE: I'm less concerned about security of exchanged data since this script should serve as a "simulation". I've configured each server to run from an allocated port on localhost.
I have to plot something like that (the function I have to integrate is more complicate than this) How can I do that? Which pst package do I need? Thanks!
how to plot the function $f:x\mapsto \int_x^{2x}\frac{4}{\sqrt{1+t^4}}\, \textrm{d}t$ with TikZ?
This weird glitch with the lighting occurs when i switch to rendered in the viewport, i'm a beginner at this so i'm not too sure why this is happening. Glitch in Rendered Solid
I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?
/summon EntityHorse ~ ~1 ~ {Tame:1,Saddle:1,Attributes:[{Name:generic.movementSpeed,Base:.32},{Name:horse.jumpStrength,Base:1}]} I'm trying to make a custom horse in Minecraft 1.11.2, but it keeps saying "unable to summon object". I'm using the command above, and old commands don't seem to work?
when I try to use type=ArmorStand in a command in minecraft 16w38a it says Entity Type 'minecraft:armorstand is invalid' is this a known bug or just me? example command i'm using: /kill @e[type=ArmorStand] or /entitydata @e[type=ArmorStand] {}
Show that the sequence $\left(\frac{2^n}{n!}\right)$ has a limit. I initially inferred that the question required me to use the definition of the limit of a sequence because a sequence is convergent if it has a limit $$\left|\frac{2^n}{n!} - L \right|{}{}<{}{}\epsilon$$ I've come across approaches that use the squeeze theorem but I'm not sure whether its applicable to my question. While I have found answers on this site to similar questions containing the sequence, they all assume the limit is $0$. I think I need to show $a_n \geq a_{n+1},\forall n \geq 1$, so $$a_{n+1} = \frac{2^{n+1}}{(n+1)!}=\frac{2}{n+1}\frac{2^{n}}{n!}<a_n$$ A monotonic decreasing sequence is convergent and this particular sequence is bounded below by zero since its terms are postive. I'm not sure whether or not I need to do more to answer the question.
Why is $$\lim_{n \to \infty} \frac{2^n}{n!}=0\text{ ?}$$ Can we generalize it to any exponent $x \in \Bbb R$? This is to say, is $$\lim_{n \to \infty} \frac{x^n}{n!}=0\text{ ?}$$ This is being repurposed in an effort to cut down on duplicates, see here: Coping with duplicate questions. and here: .
I have a problem with a function Execution , I call a function inside another function but it appears an error like "Invoice is not defined" I tried some methods but didnt' work , also some value from objects not appearing on table when i want to post Any solution for this ? It will helps me so much Thanks let bill = [ { name : "Sandra", price : 50, payment : "visa", cardnumber:"1234 xxxx xxxx xxxx" }, { name : "Johnson", price : 200, payment : "master", cardnumber:"1234 xxxx xxxx xxxx" }, { name : "Maria", price : 500, payment : "master", cardnumber:"1234 xxxx xxxx xxxx" }, { name : "Bueno", price : 1000, payment : "american-express", cardnumber:"1234 xxxx xxxx xxxx" }, ] let get = document.querySelector(".get"); let first = document.querySelector(".first"); let second = document.querySelector(".second"); let third = document.querySelector(".third"); let counter = document.querySelector("b"); let add = 0; let table = document.querySelector("table"); table.style.display="none"; let fourth= document.querySelector(".fourth"); let result = document.querySelector("h2"); let reven = document.querySelector("strong"); GetBills = () => { get.addEventListener("click" , ()=> { table.style.display = "flex"; UpdateDOM(); let invoice= bill[Math.floor(Math.random()* bill.length)]; let store = parseInt(bill[0].price) + parseInt(bill[1].price + parseInt(bill[2].price + parseInt(bill[3].price))); add++; if(add>bill.length) { add--; result.innerHTML = `You have only ${bill.length} Bills,</br>buy to store to add more` ; reven.textContent = `Total Revenue from bills:${store} $ `; } else { console.log("Very Good") } }) } GetBills(); UpdateDOM = () => { GetBills(); counter.innerHTML=add; first.innerHTML = invoice.name; second.innerHTML = invoice.price; third.innerHTML = invoice.payment; fourth.innerHTML = invoice.cardnumber; if(get) { console.log("Invoice Transacted") } else { console.log("Invoice not transacted") } } console.log(UpdateDOM()); body { font-family:"Lato",sans-serif; display : flex; align-items:center; justify-content:center; background-color:#f4f4f4; flex-direction:column; } .get { border:1px solid lightgray; padding:10px 50px; background-color:white; box-shadow:2px #fff; margin:20px 0; } <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>repl.it</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <h1> Get latest Bill </h1> <button class="get">Get</button> <table > <tr> <th>Name</th> <th>Price</th> <th>Payment</th> <th>Card Number</th> </tr> <tr> <td class="first"></td> <td class="second "></td> <td class="third"></td> <td class="fourth"></td> </tr> </table> <h1> All Bills: <b>0</b>; <h2> Result </h2> <h3> <strong></strong> </h3> </h1> <script src="script.js"></script> </body> </html>
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
I am splitting up my code into separate files, but have a problems with variables within the sub files (I am sure it's something simple, but cannot work out what is wrong. When I run the code I get an "UnboundLocalError: local variable 'avglightlevel' referenced before assignment" error. I thought the variables would be local to the sub file, I have tried using global variables in each file and still cannot it working. How do I a variable in the sub file to keep a running total of the avg values? #main.py import datacalc datacalc.init(0) #Read sensors & process the data datacalc.complielightlevel(lightlevel) # delay for 10 seconds and keep repeat ====================================================== #datacalc.py def init(avg): avglightlevel = 0 avgCO2level = 0 avgtemperaturelevel = 0 #================================================ def complielightlevel(lightlevel): if(lightlevel > 0): avglightlevel = avglightlevel + lightlevel
How can I create or use a global variable in a function? If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?
I am facing one weird situation. I am about receive check for my kid’s summer camp refund. Summer camp agency issued a check and it was never delivered to me. When I contact them they said its already paid to me, also the same information showing in their system. Tragedy is I never received a check. Please guide me what to do in this situation. I am in Queens NY.
I moved out of a place and I was supposed to receive my last pay check there. I think my housemate deposited it in his account. I know banks are not supposed to, but it's in a small town so people trust people more. Also, my housemate and I worked at the same place. He and the boss are best friends. It's a Minit Mart gas station where we worked, and the boss will not tell me my Paycor access code for payroll or email it to me. Human Resources won't call back but the boss said the check should have already arrived. So I called his bank to see if my check was cashed there. The man on the phone took all my information and put me on hold, then he came back and said, "I can't tell you that information." I asked, "What if I come in, bring all my identification?" He still said, "No". Do I have the right to know if my check was deposited in my housemate's account without my permission? My name was never with his bank account and I don't have a bank account of my own.
I use Linux Mint which uses the same repository as Ubuntu. Recently I've installed a software from a .deb file. But, I want to uninstall it now. I know that typing the following command in terminal will do the work, sudo apt remove </path/to/file_v3.31.deb> But, after updating the software this method isn't working. So, I searched in the internet, I found this: Someone answered that The command to facilitate that is: sudo dpkg -r package_name Also if you need to remove them forcefully sudo dpkg -r --force-all pkg_name But, how do I get this package name?
Suppose I download a .deb package from a website and install it. (I assume that when I double click the .deb file, the package is installed through a GUI that interfaces with dpkg right?) How can I uninstall it?
There was an episode of The Twilight Zone involving time travel and as it turned out some things can be changed but other events can't and it seems to me it's possible to avoid the time paradox. For example, at first someone else was the father and Sarah raised him by herself. At some point Skynet is created starts the war and after losing sends the terminator back in time to kill her. Kyle goes back in time and becomes the father of John creating the time loop.
The Terminator movies leave us with a sort of "chicken or the egg" problem. Let's review some key facts In 2029, Skynet sends a T-800 back to kill Sarah Connor In 2029, John Connor sends Kyle Reese back to 1984 to protect Sarah Connor In 1984, it is heavily implied (though I don't recall any explicit confirmation) that Kyle Reese impregnates Sarah Connor who later gives birth to John Connor. In the final battle, the Terminator is destroyed but one of his processors and hand survive. In 1995, it is revealed that Cyberdyne recovered/acquired the remnants and Miles Dyson is on his way to creating the first version of Skynet. So, in this scenario, we are led to believe we are in a time loop. John sends Kyle -> Kyle fathers John and inadvertently leaves technology responsible for Skynet -> John sends Kyle... round and round we go. But much like the chicken or the egg, someone had to have created Skynet before the time loop actually started. Has this ever been addressed? Corollary: Who was John's father in this original timeline?
I am trying to install KVM in ubuntu 16.04 using following command: sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils and getting following error: Reading package lists... Done Building dependency tree Reading state information... Done Package bridge-utils is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'bridge-utils' has no installation candidate Can anyone help me to install KVM in ubuntu OS?
I am trying to install KVM on Ubuntu 16.04, but I am getting stuck at very beginning. I am unable to find the packages. Can someone help me? I did sudo apt-get update sudo apt-get install qemu-kvm libvirt-bin Reading package lists... Done Building dependency tree Reading state information... Done Package libvirt-bin is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Unable to locate package qemu-kvm E: Package 'libvirt-bin' has no installation candidate
Prove by induction (weak or strong) that: $$\sum_{k=0}^{n-1}(k + 1)^2= \frac{n(n + 1)(2n+1)}{6}$$ My base case is: $n = 1$, which is true. In my Inductive Step, I assume that: $$S(n)=\frac{n(n + 1)(2n+1)}{6}$$ holds for an arbitrary value of $n$. Proving it then holds for $n+1$: $$ S(n+1)=\frac{(n+1)((n+1)+1)(2(n+1)+1)}{6}$$ $$ \phantom{S(n+1)}=\frac{(n+1)((n+2)(2n+2+1)}{6}$$ $$ \phantom{S(n+1)}=\frac{(n+1)((n+2)(2n+3)}{6}$$ $$ \phantom{S(n+1)}=\frac{2n^3+9n^2+13n+6}{6}$$ but can't see how my definition of $S(n)$ can be substituted into this final equation? [EDIT] This isn’t a duplicate because the original summation of $(k+1)^2$ is what I’m originally provided with. The apparent duplicate question also doesn’t have a correct proof by induction answer associated with it.
I am just starting into calculus and I have a question about the following statement I encountered while learning about definite integrals: $$\sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}$$ I really have no idea why this statement is true. Can someone please explain why this is true and if possible show how to arrive at one given the other?
Product Name: Probook 4540s Operating System: Microsoft Windows 8 (64-bit) Hi, HP Probook 4540, Hard disk 500 GB, RAM 4 GB, Video Card integrated simple. DVD ROM/Writer is corrupted. My brother purchased this laptop like 3 years ago, so the product is not in warranty. He used to sign-in through Hp protect tools fingerprint. Now these tools automatically set password for BIOS users. But he didn't set the BIOS administrator password back then. I tried to set BIOS Admin password thru BCU, it set the password but the option BIOS administrator was still not showing up. He used laptop for 3 years, now its hard disk is problematic, system was hanging at boot where hp logo shows. I replaced the hard disk with a new one, it booted fine, but when I try to boot it from USB having an operating system, it says no bootable image found. I pressed f9 and to select the USB boot from boot options, there is no other option available then UEFI. UEFI is not working either. I can not get into BIOS as no password for BIOS Administrator was set before using HP protect tools. I can get into BIOS through simple users created by HP Protect tools, but it is not showing the boot options in BIOS. I also tried this recently "power-button+Window logo key+b" Hold them for like 3-5 seconds left it, and a message appeared after automatic resetart saying that a system bios recover has occurred. Then I tried to get into BIOS but the simple users are still there. Please help me solve this issue. Contacting HP support is not possible as the product is no longer in warranty.
I’m locked up beyond BIOS of my HP ProBook 4530s. Long time ago I put a password on it, But now I don’t remember it. I have to reset the BIOS password, But I found that it doesn't relate to the CMOS battery. My ProBook is out of warranty too. What should I do?
#include <iostream> using namespace std; int main() { string str="-1.2300"; double d = stod(str); cout<<d<<"\n"; } output: -1.23 i am expecting output as following -1.2300
In my I was printing a double using cout that got rounded when I wasn't expecting it. How can I make cout print a double using full precision?
When I am in texture mode one of my objects looks like it is in solid mode. The model is textured like all other models in the scene, but it doesn't look like it is in texture mode. Screenshot will explain better: What this model looks like. What all models should look like in texture mode.
I can't figure out what is causing this I tried removing the materials for the objects as well as re-assigning new materials and flipping normals I don't know what is causing this issue for the model. The head seems to be working like it should but the body doesn't turn white in textured mode or black in material mode. I'm using default blender render
I need to prove that $b_n = \frac{1}{\sqrt{n^2 + 1}} + \frac{1}{\sqrt{n^2 + 2}} + \dotsb + \frac{1}{\sqrt{n^2 + n}} \to 1$ as $n \to \infty$ My initial thoughts are to sandwich this (seems sensible to me). Finding the above inequality $b_n < 1$ was easy, since clearly $\frac{1}{\sqrt{n^2 + k}} < \frac{1}{n}$ for integer k. But I'm stuck on how to compare it with something from below. A hint I've been given is that if $a_n \to a$, then $\sqrt{a_n} \to \sqrt{a}$ as $n \to \infty$, though I'm struggling to see a way of applying this.
We have to show that $$ \lim_{n\to\infty} \left( \dfrac 1 {\sqrt{n^2 +1}} +\dfrac 1 {\sqrt{n^2 +2}} + \dfrac 1 {\sqrt{n^2 +3}} + \ldots + \dfrac 1 {\sqrt{n^2 +n}} \right) = 1$$ Now, I thought of doing it as a definite integral, however the terms don't translate into a function of $\left(\dfrac r n\right)$. I tried searching wolfram-alpha, but it used Hurwitz-zeta function, of which I have no clue. (This is an assignment problem)
I need help because I want to build a slime farm I have found chunks using a slime chunk finder. I have built it below level 40 at 14, It's a 16 by 16 area and I have triple checked my coordinates -177 -833 to -192 -848 and seed 5545643967389872387 using this website. . I have placed jack o' lanterns spaced out on it. It is in fact 3 blocks tall. I at one point left the area more than 25 blocks away and less than 40 for about 4 hours! and not a single slime has spawned. What can I do or what am I doing wrong.
I dug a large room to specifications, 3 blocks tall and 16 blocks wide as well as long. I dug it at 10 levels above bedrock, in a location {(-240, 0) -> (-224, 16)} specified by slime finder app. I am definitely more than 24 blocks away and less than 32 away from the spawn room, as specified by the wiki . Yet, no slimes. I have been sitting in my location patiently listening for the moist slapping sounds of slime. I have gone in to the room every time I heard a phantom slap but still nothing. Am I just being dumb somehow or do the minecraft lords just hate me? If it helps/anyone cares here's my seed: 6405460532872068998
How to prove the following relation if $a>0$ $$ \int_0^\infty \frac{\sin(ax)}{x^b}dx\,=\,\frac{1}{2}\pi\,a^{b-1}\frac{1}{\Gamma(b)\sin(\frac{b\pi}{2})}, \,\,\,\, 0< \operatorname{Re} b <2 $$
How can I calculate the following integral: $$\int_0^\infty x ^{-\frac{1}{3}}\sin x \, dx$$ WolframAlpha gives me $$ \frac{\pi}{\Gamma\Big(\frac{1}{3}\Big)}$$ How does WolframAlpha get this? I don't understand how we can rearrange the formula in order to apply the gamma-function here. Any helpful and detailed hint/answer is appreciated.
The Android application for Stack Exchange doesn't show page views, the time on which it was asked and its state.
There should be an indication about Total Question views, it should be either under Question title or votes. One more thing, it would be looking good if question views can be accommodated inside every question row in questions list screen.
I know it's probably the most stupid question there is, but why do they fly are the clouds lighter than air? What's keeping those tiny ice structures floating miles about the ground? I've been looking all over the internet and I can't find acceptable answer to this basic physical question. Can you please help me? This question was marked as answered - but I don't believe it has been explained satisfactory. Please bare with me on this one.
Clouds are made up of tiny water or ice droplets, depending on temperature. This implies that cloud density is greater than that of dry air. Why don't clouds sink through their surrounding atmosphere rather than float by in a variety of formations?
@EDIT: I want the function to be able to search without me saying what are the variables that it should be searching. For example, I want the same function to search for minimumClients + Location and give me all that contain those values, but if the user only chose pricePerNight + roomsQuantity then it should search on the same list for different variables without me telling it which variables to search. I do not want to add inside the function ".getLocation().equals(location)", I want to make it so it compares the values passed as an argument that are != from NULL to the objects inside the list. List<Property> properties = new ArrayList<>(); // Let's say I want to look for properties with the minimumClients = 4; // I would do Property p = new Property(); p.setMinimumClients(4); properties = getPropertyList(p); // That would give me the Property 3 // But if I want to look for properties with pricePerNight = 30 and location = "Portugal" I would: Property p = new Property(); p.setPricePerNight(20); p.setLocation("Portugal); properties = getPropertyList(p); // This would give me the Property 1 using the same function above. I do not want to specify what I am looking for, I want to make it so it knows what I am looking for. This is what I mean: I have the following class public class Property() { private int minimumClients; private int maximumClients; private float pricePerNight; private String location; private int roomsQuantity; } I'll be needing to search for properties, meaning I can either search: For a location For a price per night For a location and number of rooms For a location, with given number of rooms and a given price For a location and a minimum number of clients etc. I'll be having a list of properties in another class called Repository public class Repository() { private List<Property> properties; } What I want to know is: Due to the huge amount of searching possibilities on a property, is there any way I can send an object containing only the information I want to search for, and while iterating through the properties list only return the properties that contain all the object information? Example: public class Repository() { private List<Property> properties; // Assume a constructor exists // I'll be using a foreach here // property contains location = "Spain" and roomQuantity = 2 // The rest is null, I want to add to the list properties that are located in spain and contain 2 rooms public List getPropertiesList(Property property) { List<Property> newList = new ArrayList<>(); for(Property p : this.properties) { // Is there any function I can use here to check if it contains the info I'm searching for, not caring if others are different? if(p.containsEqualInfo(property)) { newList.add(p); } } return newList; } } Basically: I want to search (for example) and return a list of all the properties that are located in Spain and have a number of rooms equal to 2, not caring about the other variables values. Property1 0 3 30 Portugal 2 Property2 0 3 30 Spain 2 Property3 4 7 120 Spain 2 Property4 0 10 300 Spain 3 If I had the above list inside the repository, once I called the function (getPropertiesList(p), p = the object that only contains spain and 2) the returned list would contain: Property2 + Property3
I want to filter a java.util.Collection based on a predicate.
Suppose I have the following DataFrame: d = {'col1': [1000, 2, 3, 2400000]} df = pd.DataFrame(data=d) which results in col1 1000 2 3 2400000 Suppose I would like to have this DataFrame formatting in thousands or millions, depending on the current value, how would I do this? Say I would like the result to be col1 1K 2 3 2.4M I know how to do it when I'd like the whole column to be formatting into millions or thousands, but not when it comes to separate values.
What is an easy way in Python to format integers into strings representing thousands with K, and millions with M, and leaving just couple digits after comma? I'd like to show 7436313 as 7.44M, and 2345 as 2,34K. Is there some % string formatting operator available for that? Or that could be done only by actually dividing by 1000 in a loop and constructing result string step by step?
i will start a new hosting company but i dont know what hardware will be the best for this. I'm looking for something cheap and can carry about 200-300 hosting accounts. The server will be using for web, mail and hosting server. QUAD CORE AMD BULLDOZER FX-4130 3.9GHZ 1TB HDD 8GB DDR3 RAM USB 3.0 HDMI, VGA,DVI Is this hardware is good for about 300 pounds and can this work for me? Thanks!
This is a about Related: I have a question regarding capacity planning. Can the Server Fault community please help with the following: What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?
It is known that the chromatic number of a complete graph is equal to the number of its vertices, that is $\chi(K_n)=n$. My question is can we get a graph $G$ not containing $K_n$ but with $\chi(G)\geq n$, for $n\geq 3$?
I found this exercise in Bollobas: Modern Graph Theory "Construct a triangle-free graph of chromatic number 1526" It is added not to use results from the chapter about Ramsey Theory. Now my qestions: (1) Is there a nice way to construct such a graph? (2) If yes then what is so special about this specific graph? My ideas: GrΓΆtzsch's theorem states that every triangle-free planar graph may be 3-colored, so we know that we can exclude planar grpahs and focus on non-planar graphs. I read something about the Mycielskian on I think this is the key to the solution but I do not see how to follow a concrete construction.
How can I pass string parameter with table-value for stored procedure in SQL Server (using c#). My code: C# SqlParameter tvpParam = cmd.Parameters.AddWithValue( "@inoper", "'New York','Boston'"); tvpParam.SqlDbType = SqlDbType.NVarChar; Stored procedure: ... WHERE City IN (@inoper)... What am I missing here?
How do I parameterize a query containing an IN clause with a variable number of arguments, like this one? SELECT * FROM Tags WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DESC In this query, the number of arguments could be anywhere from 1 to 5. I would prefer not to use a dedicated stored procedure for this (or XML), but if there is some elegant way specific to , I am open to that.
I Want To Edit Some Files In C:\Program Files\WindowsApps Folder But I Cant Do So. I Changed The Owner To Everyone And Also Given Every User Full Access. But When I Try To Edit Files Or Create Some New Files I Cant. It Shows Me Error. Please Help Me. I Think This Is Due To The Entry In win://sysappid Which Is Shown As Curropted. If Yes, Then Please Tell How Can I Fix It.
Lately, I've been quite annoyed at the fact that I can't edit files in C:\Program Files\WindowsApps folder. I've used the takedown command, in elevated CMD, and changed permissions, to allow admins to have full control (I am an admin), and changed owner to Administrators. I can delete files/folders, yet, whenever I try to edit files, or add files, I get the error message "Access is denied." How do I enable creating files and editing files in WindowsApps?
I'm currently writing a program that checks for the multiplicity of a number by a factor of 10. However, this program is violated by what I assume is a double-precision error in python. I have attached an example below. # correct representation in line with expectation >> 71885 / 71.885 = 1000.0 # this fails, when we should be reporting 10^6 (1000000) >> 310888679 / 310.888679 = 999999.99999999
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
Confused why happening pls respond I’ve done the Ganon fight twice it never saves
I'm close to maxing out my character and I want to beat Ganon solely for the TRUE ending, but I'm too scared of losing some of my personal favorites from the Guardian Spear++ to fighting those damned Guardians (it was so fun). So, after beating Ganon Do monsters disappear? - Including the corrupted Guardians, but also the blood moons, I don't want to just face off against the Yiga Clan... Am I gonna run out of resources? - As a survival game Zelda BOTW has some emphasis on the survival genre but to me it is a survival-esque action-adventure game. Are special weapons still available when you max out? - Like the Savage Lynel Spears or Swords)
My dict is like, {'A':4,'B':10,'C':0,'D':87} I want to find max value with its key and min value with its key. Output will be like , max : 87 , key is D min : 0 , key is C I know how to get min and max values from dict. Is there is any way to get value and key in one statement? max([i for i in dic.values()]) min([i for i in dic.values()])
I have a dictionary: keys are strings, values are integers. Example: stats = {'a':1000, 'b':3000, 'c': 100} I'd like to get 'b' as an answer, since it's the key with a higher value. I did the following, using an intermediate list with reversed key-value tuples: inverse = [(value, key) for key, value in stats.items()] print max(inverse)[1] Is that one the better (or even more elegant) approach?
Disclaimer: New to stack overflow. In the Julia language the eval(parse()) ability comes in very useful. Example: eval(parse("x = 5")). I'm wondering if there is an equivalent in python, I get the consensus that this is a no. If it is a no why? Surely it would be a useful addition to the language.
How do I execute a string containing Python code in Python?
I am having trouble with this Natural Deduction question $$(βˆ€xβˆƒy (P(x) β†’ Q(y))) β†’ (βˆƒyβˆ€x(P(x) β†’ Q(y)))$$
I have working on this formula $(\forall x \exists y (P(x) \supset Q(y))) \supset (\exists y \forall x (P (x) \supset Q(y)))$ to either prove or disprove it. First, I tempted to disprove it, but I changed my mind. I wrote down "for all x that there exists some y satisfies corresponding condition", and "there exists some y that for all x satisfies corresponding condition." I think these statements refer to the same idea. Any suggestions?
I purchased a ticket from Seattle to Tokyo with a 3 hour layover in Incheon airport in Seoul, South Korea. After purchase the airline canceled the ICN-HND flight and replaced it in my itinerary with a Gimpo to Haneda flight; however, the new flight leaves only 1 hour 50 minutes after the first is scheduled to land. Transferring via a separate airport will require not only the transit time between airports, but going through immigration and customs at ICN, and checkin and security at GMP. Is 2 hours enough time for that process? covers the mechanics of transferring between the airports but not the minimum time to do so.
I am travelling from UAE to South Korea (Gwangju). I have a flight to Seoul (Incheon airport) then from that airport to Gimpo Airport in order to fly to Gwangju Return ticket will be from Gimpo to Incheon airport. I am trying to find the different possibilities car/bus/train to go from Incheon to Gimpo like duration as I am afraid to miss flight, and cost. Which one might be better?
I would like to draw a Sydnone with chemfig. How do I get the -+ into the ring? \documentclass{article} \usepackage{tikz} \usepackage{chemfig} \begin{document} \chemfig{N**5(-[,,1]\chembelow{N}{H}-[,,1]-[,3,1](=[,1,1]O)-[,3,]O-[,3])} \end{document}
I would like to draw in chemfig the following picture: But I am struggling with the "+" sign in the middle of the circle. Is there a way to draw it? Thank you! What I have so far is this: \documentclass{article} \usepackage{chemfig} \begin{document} \chemfig{ N**[0,-150,dash pattern=on 2pt off 2pt]5( (-R)-(-R^1)-[,,1,2]{+\hspace{0.3cm}}|{O}-[,,2,1]-- ) } \end{document} which does the work, but I really don't like the way it is done (e.g. it does not scale).
I've been using Math.round and everything seemed fine until I noticed that any number that ended in "5" wasn't rounded. double roundtotal = Math.round(total * 100.0) / 100.0; Which rounds to 2 decimal places, but doesn't round 46.565 to 46.57 for example Can anyone help?
What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations. I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes. I know one method of doing this is to use the String.format method: String.format("%.5g%n", 0.912385); returns: 0.91239 which is great, however it always displays numbers with 5 decimal places even if they are not significant: String.format("%.5g%n", 0.912300); returns: 0.91230 Another method is to use the DecimalFormatter: DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385); returns: 0.91238 However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this: 0.912385 -> 0.91239 0.912300 -> 0.9123 What is the best way to achieve this in Java?
Show that $E[x]=\int_0^\infty(1-F_X(x))dx$ The solution is as follows: $$\begin{align} \int_0^\infty P(X>x)dx &=\int_0^\infty \int_x^\infty f_X(y)dydx\\ &=\int_0^\infty \int_0^y dxf_X(y)dy\\ &=\int_0^\infty yf_X(y)dy\\ &=E[X] \end{align}$$ I don't understand step 3 in the solution, specifically while the limit of integration changed from $\infty$ to $y$.
Let $X$ be a continuous non-negative random variable (i.e. $R_x$ has only non-negative values). Prove that $$E(X) = \int_{0}^{\infty} P(X>x)\,dx = \int_{0}^{\infty} (1-F_X(x))\,dx$$ where $F_X(x)$ is the CDF for $X$. Using this result, find $E(X)$ for an exponential ($\lambda$) random variable. I know that by definition, $F_X(x) = P(X \leq x)$ and so $1 - F_X(x) = P(X>x)$ The solution is: $$\int_{0}^{\infty} \int_{x}^{\infty} f(y)\,dy dx = \int_{0}^{\infty} \int_{0}^{y} f(y)\,dy dx = \int_{0}^{\infty} yf(y) dy.$$ I'm really confused as to where the double integral came from. I'm also rusty on multivariate calc, so I'm confused about the swapping of $x$ and $\infty$ to $0$ and $y$. Any help would be greatly appreciated!
This is what my baked AO texture looks like (not in all places -- for most faces it looks fine): What is the cause of this? What can I do to resolve it? I do not have any overlapping UVs and my mesh is manifold. Here is the mesh if you would like to take a look: Thank you all for your help!
I was following on creating a watch and noticed that when I rendered the watch, some pieces were messed up. I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture: Other examples: I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it?
Since light particles travel at the speed of light, we know it's possible for something to travel at that speed. However, since all things are relative, and if time does stop at the speed of light, then we can not measure the velocity in conventional terms. Consider from the perspective of the light particle, how long does it take to travel a "light year"? If time stops at the speed of light, then how can we rationalize the definition of a "light year"? There is no time from the perspective of the light particle. So, why would not it be transported instantaneously?
Quite a few of the questions given on this site mention a photon in vacuum having a rest frame such as it having a zero mass in its rest frame. I find this contradictory since photons must travel at the speed of light in all frames according to special relativity. Does a photon in vacuum have a rest frame?
I have already generated a report successfully but now I need to know which font is used; font type = ?
What is the font that LaTeX uses as default for: the notmal text, the \bfseries, the \itshape etc and all commands and definitions in the table 43 at page 131 of guide? I have found some fonts in this directory: C:\texlive\2011\texmf-dist\fonts\opentype\public\lm. I suppose that the default font for math is lmmath-regular.otf, right?
We have an Ubuntu VM with a MAAS controller and only 1 node. We are not able to install juju. Is there a minimum node requirement for MAAS?
I've browsed through so many different sites and found so much contradictory information. As I am getting tired of this and do belive this question affects many other users, so I would like to collect the "once and for all times" answer. Unfortunately, the documentation on MaaS and Juju is ... well, not the best, sorry to say that. What are the minimum system requirements for setting up a MaaS cluster, which is going to be orchestrated with juju-jitsu? Do they need to have the exact system specifications or can I just combine different hardware? What are the minimum requirements for the master machine? E.g. "You need at least 8GB of RAM, a dual core CPU with at least 3.0 GHz." How many machines to I need to deploy MaaS on? I've read six machines, nine machines, and so on. I clearly want to know: "You need one for the Master and e.g. five nodes." Do I need to attach as many NICs (network interface cards) to my master machine as there are nodes, or can I simply attach two NICs and a switch? One NIC for connecting to the internet, one for handling the MaaS tasks, connected to a switch, which connects my nodes to the master? Is Juju now ready for local deployment? The last time I experimented with juju and had to reboot my machine, the services orchestrated by juju were gone. This was an issue I also found on the official juju site. Unfortunately, as mentioned above, the documentation is not the best, so I could not find the necessary info on that again. So: Can I use juju on a local environment or will a reboot break my setup?
How do I make parameter that will accept (x => x.Value) like .Sum(x => x.Value) or .Average(x => x.Value). I'm thinking I need it to be a Func<> but I'm not sure. I don't know what the method signature should look. Here's what my current extension method looks like: public static double StdDev(this IEnumerable<double> values) { //code } Here's my overload extension so far based (I know this isn't right): public static double StdDev(this IEnumerable<double> values, Func<double, bool> filter) { IEnumerable<double> data; if (filter != null) { data = values.Where(filter); } else { data = values; } return data.StdDev(); } Here's my unit test: [TestClass] public class IEnumerableExtensions_StdDev { [TestMethod] public void StdDev_Success_Lambda() { var dataSet = new List<TestType> {new TestType(35.2), new TestType(54.43)}; //This Line compiles fine but the following one does not. var test = dataSet.Sum(x => x.Value); var stdev = dataSet.StdDev(x => x.Value); stdev.Should().BeInRange(13.5, 13.6); } } public class TestType { public double Value { get; set; } public TestType(double value) { Value = value; } } The unit test does not compile. It gives me an error that reads: 'List' does not contain a definition for 'StdDev' and the best extension method overload 'IEnumerableExtensions.StdDev(IEnumerable, Func<double, bool>)' requires a receiver of type 'IEnumerable' I don't want to change the test I want to change the overload method signature and/or body but I don't understand what I need to change in my code to make this work.
Note: This question was asked at a time when C# did not yet support optional parameters (i.e. before C# 4). We're building a web API that's programmatically generated from a C# class. The class has method GetFooBar(int a, int b) and the API has a method GetFooBar taking query params like &a=foo &b=bar. The classes needs to support optional parameters, which isn't supported in C# the language. What's the best approach?
How can I change background image's size in compositor? The following screenshots are showing my node setup and the current size of the background image.
The Backdrop Image in my compositor is too zoomed in because my image is high res. How can I zoom out?
I want to disable USB access to root and enable it when it is required. I need to restrict users to copy and paste anything using external drives. Can anyone help me on this?
I'm using Ubuntu 12.04 and I want to block usb storage on it. What is the correct way to do this?
...essentially, why would someone want to look at a logarithmic scale graph? What can be derived from a logarithmic scale graph that makes it worthy of presentation in addition to a linear scale version? At there is a graph in "linear scale" (the default) and a tab with a "logarithmic" scale version. Here they are:
I am trying to gain a more intuitive feeling for the use of logarithms. So, my questions: What do you use them for? Why were they invented? What are typical situations where one should think: "hey, let's take the $\log$!"? Thanks for the great comments! Here a short summary what we have so far: History: Logarithms were first published 1614 by John Napier (mathematician/astronomer) . He needed them for simplifying the multiplication of large numbers. Today’s uses: In regression analysis: If you expect a predictor variable to follow a power/exponential law, take the corresponding logarithm to linearize the relationship. In finance to calculate compound interests. Or more general: to calculate the time variable in growth/decay functions. (Nuclear decay, biological growth…) In computer science to avoid underflow. (Cool trick! But seriously: 32-bit? Take a double ;-) In the Prime Number Theorem For handling very large/small numbers (pH, etc.) Plotting (if your scale gets too large)
Just now I flagged a comment on that said nothing other than ~"thank you, that's helpful" and it was deleted immediately. I did not know this was a feature. Moreover, I didn't find any documentation on this feature here at meta.SE. Question: I flagged a "thank you" comment as it's "no longer needed" and it was auto-deleted: was there a change I'm unaware of? I'd be particularly interested in understanding precisely how this feature works. This comment was not offensive nor was it spam, just a run-of-the-mill "thank you" comment. I don't recall this happening for previous "it's no longer needed" flags. I'm sure it was a single flag that caused this, because it's a 5-month old post. If I knew precisely what was going on, I'd pay a bit more attention to flagging these.
Across the Stack Exchange network you may leave comments on a question or answer. How do comments work? What are comments for, and when shouldn't I comment? Who can post comments? Who can edit comments? How can I format and link in comments? My comment doesn't contain some of the text I typed in it; why? My comment appears to be long enough, but I can't post it because it's too short; why? Who can delete comments? When should comments be deleted? Why can't I comment on specific posts even if I have enough reputation to comment? When can comments be undeleted? What are automatic comments? How can I link to comments? Anything else I should know about comments? Also see the FAQ articles on and .
What is the difference in meaning between 'into' and 'in to'? Is there a difference in meaning or with usage? I was unable to find anything on other websites.
"Into" (one word) and "in to" (two words) are frequently confused. In what situations should the former be used? The latter?
I have a button: <div id="save-submit" class="save-submit"> Submit Code </div> When its clicked it checks for an input, if the input is correct i rename the button to continue: $('.save-submit').click(function(e){ var button = document.getElementById("save-submit"); button.className="next-task"; button.innerHTML="Continue"; button.id="next-task-id"; }); When the continue button is pressed it should load new tasks, but its going back to the save-submit aka trying to rename the button. $('.next-task').on('click', function (e) { e.preventDefault(); GetTask(); }); What am i doing wrong? Thanks!
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.
My original question was closed because it's assumed this thread () answers my question, so I am rephrasing my question and title. The author in the linked post makes no mention of whether he intends partitions to be copied (just "files") and neither do the responses. Will "dd" accept the disk's partitions, and its various volume formats? I have some 10 partitions, with some being HFS+, some APFS, one ExFAT. Will these formats also be copied with dd? Would appreciate some help, thank you!
What is the best way to clone a disk between two Macs? I ask this every couple years or so and every time I get the same answer. "Use ", they say. But the unfortunate fact is that CCC is a file-level copy between disks. When I migrate to my new Mac, sure all the files are there but there are quirks here and there (including file dates being different etc). So, really now, once again: how do you clone the disk over byte-for-byte?
Is there a test for testing the difference between two confusion matrices?
I want to compare the classification performance of two heuristics: $h_0$ and $h_1$. I have around 700 samples for which I know the output class $c$ and the results of the two heuristics $c_{\textit{h_0}}, c_{\textit{h_1}}$. That is, for each sample I have $\text{sample}_{\textit{id}}, c, c_{\textit{h_0}}, c_{\textit{h_1}}$. $h_0$ has around ~71% correct predictions of the output class and $h_1$ has around ~77% correct. What I want to calculate now is whether this performance difference is just by chance or if the prediction performance of $h_1$ is statistical significant better than that of $h_0$. I have found , but I don't know whether I can just put my data in there like the following matrix to calculate a p-value. $$ \begin{matrix} & h_0 & h_1 \\ \text{correct prediction} & 497 & 539 \\ \text{wrong prediction} & 203 & 161 \end{matrix} $$ I don't know if I can calculate the p-value like that or if I'm completely on the wrong track. I would really appreciate it if someone could point me in the right direction.
I have been trying to figure out how to detect renamed items in someone's inventory. I've been able to use /execute if to detect an item, but I can't figure out how to detect a renamed item. This is what I tried: execute if entity @a[name=(username),nbt={Inventory:[{id:"minecraft:music_disc_far",tag:{display:{Name:"another username"}}}]}]
I am in 1.13 Pre-Release 7 trying to make a one command creation and I need an item with a specific name. The command I use is /give @p diamond_sword{display:{Name:"Sword of Power"}} and it gives my a diamond sword, but it doesn't have the name. This is me running the command. This is the command not working.
Suppose I have a sequence in a normed space. In this space, the Cauchy-ness and convergence of the sequence is determined completely by the specific norm defined on the space, correct? So when showing that a given sequence is Cauchy on this normed space, one would not be able to use any information about the sequence from an outside context (for example, that the sequence convergences under the standard absolute value norm in $\mathbb{R}$)? As you can see, I am a little confused about non-standard norms on vector spaces. If we have one, is that the ONLY norm we can have there? Or can we have many different norms, including the standard one, on the space simultaneously? I hope that makes sense.
Let $V$ be a real vector space. Suppose that $\Vert \cdot \Vert_1$ and $\Vert \cdot \Vert_2$ are two norms on $V$ which are equivalent. I suspect the following to be true. Let $(x_n)_{n=0}^\infty$ be a sequence in $V$. Then $(x_n)_n$ is a Cauchy sequence w.r.t. $\Vert \cdot \Vert_1$ if and only if $(x_n)_n$ is a Cauchy sequence w.r.t. $\Vert \cdot \Vert_2$. Is it true? I'm looking for a good way to explain why "equivalence" of norms is the right way of "comparing" norms without mentioning anything from topology besides "convergence".
After installing 800+ upgrades in ubuntu 12.04 and after restart there is no launch bar on the left side. The screen has only the background image. What to do? Many thanks!
When I login, nothing happens. I am presented with my desktop wallpaper. No Dash, no Launcher, nothing.
How do I have to format the drive in order to create a bootable USB? I'd appreciate it if I could get an answer soon... Thanks!
How do I make an Bootable Ubuntu USB containing the the latest version of Ubuntu? For completeness, how would I be able to do this on Ubuntu, Windows, OS X or another Linux distro?
I have a HashMap like this LinkedHashMap<K, V> = new LinkedHashMap<>(); this map is used as cache to implement LRU (least recently used) In this cache I want to save results from functions that have no "side-effect" so for the same input they will always produce the same output. Im also using Bi-Functions that have <T,U,R> T and U are generic types. Here comes the Pair<T,U> into play. How do I save a Pair like this as a key into my Hash-Map? And can someone explain how exactly the overwriting of the equals(Obj o) and hashCode() function is supposed to help with this problem?
I like how Java has a Map where you can define the types of each entry in the map, for example <String, Integer>. What I'm looking for is a type of collection where each element in the collection is a pair of values. Each value in the pair can have its own type (like the String and Integer example above), which is defined at declaration time. The collection will maintain its given order and will not treat one of the values as a unique key (as in a map). Essentially I want to be able to define an ARRAY of type <String,Integer> or any other 2 types. I realize that I can make a class with nothing but the 2 variables in it, but that seems overly verbose. I also realize that I could use a 2D array, but because of the different types I need to use, I'd have to make them arrays of OBJECT, and then I'd have to cast all the time. I only need to store pairs in the collection, so I only need two values per entry. Does something like this exist without going the class route? Thanks!
This code is always alerting out "null", which means that the string does not match the expression. var pattern = "^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$"; function isEmailAddress(str) { str = "[email protected]"; alert(str.match(pattern)); return str.match(pattern); }
Is there a regular expression to validate an email address in JavaScript?
I find a list of bam files using $bams=$(find /data/and/ -type f -regex ".*\.bam") #/data/DNA128441.bam #/data/DNA128442.bam #/data/DNA128443.bam And wanted to feed in a script test.sh #!/bin/bash bam="$@" echo "You provided the arguments:" ${bam} s=${bam##*/} r1=${s%.bam}_R1.fastq r2=${s%.bam}_R2.fastq echo $r1 echo $r2 But when I run: $bams=$(find /data/and/ -type f -regex ".*\.bam") ./test.sh $bam You provided the arguments: /data/and/DNA128441.bam /data/and/DNA128342.bam /data/and/DNA128343.bam DNA128343_R1.fastq DNA128343_R2.fastq My question is how to make it process one by one such like a desired output: $bams=$(find /data/and/ -type f -regex ".*\.bam") ./test.sh $bam You provided the arguments: /data/and/DNA128341.bam DNA128341_R1.fastq DNA128341_R2.fastq You provided the arguments: /data/and/DNA128342.bam DNA128342_R1.fastq DNA128342_R2.fastq You provided the arguments: /data/and/DNA128343.bam DNA128343_R1.fastq DNA128343_R2.fastq
I have a complex command that I'd like to make a shell/bash script of. I can write it in terms of $1 easily: foo $1 args -o $1.ext I want to be able to pass multiple input names to the script. What's the right way to do it? And, of course, I want to handle filenames with spaces in them.