What is the connection between regularization and the method of lagrange multipliers ?

To prevent overfitting people people add a regularization term (proportional to the squared sum of the parameters of the model) with a regularization parameter $\lambda$ to the cost function of linear regression. Is this parameter $\lambda$ the same as a lagrange multiplier? So is regularization the same as the method of lagrange multiplier? Or how are these methods connected?


So I'm checking the md5 hash of my files with this as my output:  657cf4512a77bf47c39a0482be8e41e0  ./dupes2.txt 657cf4512a77bf47c39a0482be8e41e0  ./dupes.txt 8d60a927ce0f411ec94ac26a4785f749  ./derpina.txt 15f63928b8a1d5337137c38b5d66eed3  ./foo.txt 8d60a927ce0f411ec94ac26a4785f749  ./derp.txt   However, after running find . -type f -exec md5sum '{}' ';' | uniq -w 33 to find the unique hashes I get this:  657cf4512a77bf47c39a0482be8e41e0  ./dupes2.txt 8d60a927ce0f411ec94ac26a4785f749  ./derpina.txt 15f63928b8a1d5337137c38b5d66eed3  ./foo.txt 8d60a927ce0f411ec94ac26a4785f749  ./derp.txt   From my understanding, only one of either derpina.txt or derp.txt should be showing up since their hashes are the same. Am I missing something? Can anyone enlighten me as to why it outputs like this?


Can differential forms be generalized to (separable) Banach spaces?

This thought occurred to me earlier and I'm surprised I hadn't considered it previously. I get the feeling that no meaningful generalization can occur in a non-separable Banach space but on the surface it seems like a meaningful generalization can be had if the Banach space is separable. Even if it's possible, convergence and other issues likely severely complicate the matter.


How not to ignore KeyboardInterrupt in try and except

How to break only when KeyboardInterrupt is raised? I have a something function that is not fully debugged that it can have a lot of random exceptions that I don't know about. But I want to ignore them except when I interrupt the process. Then I use a try...except... for it. For example counter = 0 data = [] while True :      try :         data.append(something())        counter+=1     except :         continue      if counter % 100 == 0 :         yield data        data = [] yield data  How do I break it when I KeyboardInterrupt it?


How can I update to firefox 42? There's nothing on the about page to update. I would like to update and keep all my settings and stuff. How can I go about doing this? I'm on Ubuntu 14.04 and currently using firefox 41. I'd like to avoid reinstalling but I guess I could if that would still save all my stuff. Thanks in advance for any help!


I'm still a beginner and decided to model a lightsaber from a CG GEEK tutorial linked .  I've been having some trouble joining two faces after running into trouble from double vertices in my mesh. I noticed it when I applied a subdivision surface and I've been having trouble solving it. The biggest detail that I've noticed is that the new vertices that were created when I tried to fill in the gap with the fill tool, aren't recognized as a face by Blender. Thank you for your advice.


Why should I use Runnable instead of Thread?

I just learn the theory about thread. And there is Thread and Runnable.  class A extends Thread{     public void run(){             while(true) {                 System.out.println("Hi");             }                    }     }     class B implements Runnable{     public void run(){         System.out.println("Hi");     } }   Thread is good with rich API, so why would I use Runnable instead of Thread?  Thanks.


ERROR Undefined control sequence `\includegraphics`

My question has been asked severals times on the forum but nothing works for me.  I would like to insert a picture. Here's a simple example that should work but which doesn't.  \documentclass{article}  \usepackage{graphicx}  \begin{document}  \includegraphics{dessin}   \end{document}   I receive those error messages    Does someone have an idea?    I must add that a dessin.jpg file is present in the same directory as my .tex file. Finally, this topic  doesn't work for me either


Is my keyboard faulty or are my settings screwed?

Something is wrong with my keyboard or Mac settings for key repeat rate and delay.  My Keyboard settings are as follows:    Yet when I hold down my keys one of two things happens.    A) The character only appears once or   B) I get foreign character options such as:    I tried the terminal commands from  to no avail.  I tried resetting the NVRAM to no avail.  I tried rebooting my Mac to no avail.  What does work is I can use the Keyboard Viewer and if I click on a character (such as ’S’) I do get sssssssssssssssss, but if I press the physical S key the Keyboard Viewer shows the keypress but I only get the same foreign character options again.  So, is this a physical fault on my keyboard or what??


I want to create a simple struct that stores the RGB-values of a color. r, g and b are supposed to be double numbers in [0,1].   struct Color  {   Color(double x): r{x}, g{x}, b{x} {     if (r < 0.0) r = 0.0;     if (r > 1.0) r = 1.0;     if (g < 0.0) g = 0.0;     if (g > 1.0) g = 1.0;     if (b < 0.0) b = 0.0;     if (b > 1.0) b = 1.0;   } }   Is there a better way than using those if statements?


How do I automatically remap buttons on my mouse at startup?

I struggled with this over the weekend, and need to remap my mouse buttons.


QGIS 1.8 or 2.01 select entries in .shp file that match a field entry

I've got a .shp file with 40k points (trees) in it. One field is the species name. Is there a way to select those entries that match a desired field name e.g. 'black walnut' so I can move them to a new layer?


How to batch import Wavefront OBJ files?

Is it possible to batch import Wavefront .obj to blender? I'm working on 2.69. If I select multiple .obj files, only one gets imported. Also if I hit A on file selection window to select all files (.obj and .mtl) I get an error, nothing gets imported. I have to import several hundreds of .obj into the blender file, is this possible?


I often read the expression “would of” used instead of “would have”. Each time I read it I get annoyed so I googled it and found out -as I expected- that it is an incorrect way to say “would have”. Now, there are a lot of brilliant slang words/expressions, so my question is, why do people use this one? It’s so annoying to read, stupid and clearly wrong, it is pointless, why did they come up with this expression?    Edit:  I don't think my question is a duplicate as I didn't ask how can somebody use it (since I know it's incorrect and I know that I can use it with commas giving it a different meaning) but I asked why and how people came up with this expression.


Add a toggle for disabling diff markup when reviewing

I review suggested edits on Stack Overflow that contain lots of alterations to back-tick code tags. It can be quite difficult to get a feel for how the edited post looks once those changes have been made.   If I use the "rendered output" page, the coloured diff markup can confuse matters. If I use the "markdown" page, you lose the ability to judge whether the edit looks pleasant.  I would propose the diff colouration becomes a toggle-able feature, as suggested in the image below. When the toggle is unchecked, the colouration will vanish, thus showing the real rendering of the edit.    I see no reason this preference should be stored on a per-user basis - I would be happy for it to default to being checked every time the dialog is opened.   I also believe this would have benefits beyond my back-tick example above - other formatting requires one to really look at the finished product. After all - why do we show the original editor the review pane?


Deliberate misspellings in titles to get around 'probelms' with banned words?

It's very irritating to go around dealing with titles that are misspelled only to find that the misspelling is there because of the banned words stuff.  Can't we get some AI into the title parsing?  Case in point:   .   Yes, I rewrote the title to avoid the misspelling, but it is a nuisance.  Granted, you probably can't get around every misspelling, but simple 'two letters in wrong order' misspellings should be spottable.


Phantasmal Force can be used to place a delusion inside a creature's head for the duration. I understand that the spell is worded very openly to encourage creative usage, but I'm not sure about how I should be ruling it case-by-case. I understand the purpose of most other illusion spells, but I just can't seem to get my head around certain aspects of this particular one.      The phantasm includes sound, temperature, and other stimuli, also evident only to the creature. (PHB pg.264)   Does this mean you could use the illusion to impart status effects on creatures? For example, would you blind the creature by putting a bag over his head that it wouldn't be able to remove? Would you be able to deafen a creature with an extremely loud auditory illusion? I'm assuming restraining the creature with illusory chains wouldn't work, considering it would probably struggle to escape only to find that it's not actually physically being detained, but I'm sure there is something you could add to the illusion to try and prevent them from escaping or moving.  Question: Can Phantasmal Force apply conditions (Blinded, Deafened, Restrained etc.), and if so which ones would it be able to?  It seems to me that the spell shouldn't be able to place conditions on creatures, but that would only be because of how strong and flexible this might make it relative to other spells if it's level. Is this how it is intended? I don't want to accidentally gimp the spell by ruling it too harshly, but it seems difficult to me to consistently judge it fairly.


Example of a non-splitting exact sequence $0 → M → M\oplus N → N → 0$

Recently, someone stated that every short exact sequence (of, say, modules) of the form $$0 → M → M \oplus N → N → 0$$ splits. I think this is false in general because the arrow $M → M \oplus N$ might not be the natural inclusion. (The difference pointwise isomorphic/diagramwise isomorphic.)  Maybe one can realize an arrow $M\oplus N → N$ with a kernel isomorphic to $M$, but not being an (internal) direct summand of $M \oplus N$? I tried something along the lines of $ℚ$ and $ℚ/ℤ$, but I have been unsuccessful so far.  Can anyone provide me with a counterexample?


Is there a way to fix "Attempt to invoke virtual method"?

I created my app and now I'm trying to add AdMob Ads but I'm stuck with an instant crash and a problem and I don't know how to fix it.  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.glitchrun.sapphire/com.glitchrun.sapphire.PTPlayer}: java.lang.NullPointerException: Attempt to invoke virtual method void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest) on a null object reference     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)     at android.app.ActivityThread.-wrap11(Unknown Source:0)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)     at android.os.Handler.dispatchMessage(Handler.java:105)     at android.os.Looper.loop(Looper.java:164)     at android.app.ActivityThread.main(ActivityThread.java:6944)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)  Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference     at com.glitchrun.sapphire.PTPlayer.onCreate(PTPlayer.java:68)     at android.app.Activity.performCreate(Activity.java:7183)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)   I tried to remove import com.google.android.gms.ads.AdView; but after that ads are not showing in the app. BUT I still have requests in AdMob and matchrate even if ads are not showing. How to solve the problem?  import com.google.android.gms.ads.MobileAds; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView;  AdView mAdView = findViewById(R.id.adView); AdRequest adRequest = new AdRequest.Builder().build(); mAdView.loadAd(adRequest);`


Integral Representation of the Zeta Function: $\zeta(s)=\frac1{\Gamma(s)}\int_{0}^\infty \frac{x^{s-1}}{e^x-1}dx$

How does one get from this $$\zeta(s)=\sum_{k=1}^{\infty}\frac1{k^s}$$ to the integral representation $$\zeta(s)=\frac1{\Gamma(s)}\int_{0}^\infty \frac{x^{s-1}}{e^x-1}dx$$ of the Riemann Zeta function?  I can see that it can be rewritten as  $$\Gamma(s)\zeta(s)=\int_{0}^\infty \frac{x^{s-1}}{e^x-1}dx$$ and the Gamma function as an integral yields  $$\zeta(s)\int_{0}^\infty \frac{x^{s-1}}{e^x}dx=\int_{0}^\infty \frac{x^{s-1}}{e^x-1}dx$$  But this approach does not work as the right integral does not converge.  So how does one go from the summation to the integral representation?


Evaluating and negotiating a start-up package

I've been offered an academic position, and am now in the fortunate, but unfamiliar position of negotiating the offer.  I've seen a few blogs/comments/posts on this process.  However, I have no real idea how to evaluate the offer that's been made.  Coming from the position of a postdoc, the package seems impressive (given that, as a postdoc, my "package" consists of a very modest salary and health benefits).  However, I also realize the importance of maximizing (within reason) my initial offer, as this sets the baseline for, at least, the first few years of my faculty career and could provide support that would prove very important in the initial year or so while I'm trying to obtain grant funding.  In particular, I'm looking for two types of information.  First, what types of startup packages are standard for tenure-track assistant professors of Computer Science at a public RU/VH (i.e. Research) university?  This is just to give me some point of comparison.  Second, what types of changes are reasonable to negotiate?  Can I ask for more summer salary support while still conveying to them my desire to obtain grant funding as quickly as possible?  The offer already includes a reduced teaching load for the first few years --- is it also reasonable to ask for an extra semester off prior to a tenure review?  I understand these are fairly broad questions, but any input or suggestions would be very helpful.  I'm definitely interested in the job; I really liked the department and think it's a great opportunity.  I don't want to alienate anyone by pushing too hard, but at the same time, I want to make sure that I make every reasonable effort to maximize my chances for academic success, which includes maximizing my available resources by negotiating the best startup package I can.


I was trying to think of a proof of the following proposition:     Let $K$ be a field. Then $R=K[x_1,...,x_n]$ is not a PID for $n>1$.   So here's what I've written so far:   Suppose $R$ is a PID and consider the ideal $I=\langle x_1,x_2 \rangle$. Then $I=\langle f \rangle$ for some $f \in R$. In particular, we have $$(1) \space x_1=gf$$ $$(2) \space x_2=hf,$$  for $g,h \in R$. But then, from (1), we must have $\deg_{x_2}(f)=0$ and $\deg_{x_1}(f) \in \{0,1\}$. Analogously, from (2) it follows that $\deg_{x_1}(f)=0$ and $\deg_{x_2}(f) \in \{0,1\}$. In conclusion, $\deg_{x_1}(f)=0=\deg_{x_2}(f)$.  So the polynomial $f$ must be a non zero constant in $K$ or it must be a polynomial which doesn't have $x_1$ or $x_2$ as one of its variables. For the first case, I know how to arrive to a contradiction, for if $f=k \in K \setminus \{0\}$, then $1 \in \langle x_1,x_2 \rangle$, so $$1=hx_1+hx_2$$  Evaluating at $(x_1,...,x_n)=(0,...,0)$, we conclude $1=0$, which is absurd.  I am not sure what to do in the other case, I don't even know a notation to express an arbitrary polynomial of several variables. I would appreciate some help to conclude the proof. Thanks in advance.


The property of positive fourier series.

This is the problem in the book 'Classical and multilinear harmonic analysis, volume 1'  Let $f(x)=\sum_{n=0}^{N}[a_{n}\cos{2\pi nx}+b_{n}\sin{2\pi nx}]$ be a nonnegative function defiend on $[0,1]$. Show that there exists an complex sequence $\{c_{n} \}_{n=0}^{N}$ such that $$f(x)=|\sum_{n=0}^{N}c_{n}e^{2\pi inx}|^2$$  I have no idea. How can we use the property that $f$ is a positive function?


I need to clip a large and very detailed shapefile in QGIS showing environmental data similar to a temperature map.   Is there something like the very simple crop tool like in Adobe Photoshop where you can drag a rectangle over an area of interest and crop the shapefile to this area only?  I do have an additional shapefile of neighborhoods/districts that I could also use for cropping but I do not know how to specify "extract a shp/kml only within the borders of district X, row xxxxx in the attribute table of districts.shp"  How can I extract the data primitively within a rectangle of choice or per district?  I need smaller pieces from the large map that has been provided by an environmental geo-institute to be implemented into an mobile Application (Android) to view the quite heavy data in a lighter way.   I made some screenshots of the data and posted them here: .  You can see the districts and the data layers. I need to have every district as a separate file / separately export every dataset per district to KML.


Sometimes it’s possible to use either a noun adjunct or the possessive case.     the shop door   the shop’s door   However, in certain phrases it’s not OK to do so.     the ship’s crew (the ship crew is wrong)   The questions are:   How can one find out what to use in such cases as “the shop(’s) door” when a noun adjunct option and the possessive case option are available?  How can one know which option is wrong in order to avoid the construction “ship crew”? Is there a difference in meaning between (a) the shop door (b) the shop’s door?


LED accent light that slowly dims when removed from power source

We've all played with different transformers and power supplies that have an LED indicator that dims before going out entirely when the power supply is unplugged.  I'm working on designing an accent light which would involve a translucent crystal light source (probably made of resin or glass if I can find a cheap supplier) containing LEDs and certain electronics, and a base which would supply electrical current. For gamers, it might appear somewhat like a Welkynd Stone. My question is what is the simplest way to cause the LEDs to dim slowly (say over 2-10 seconds) when the crystal is removed from the base? Similar to the unplugged transformer, but with an intentional and controlled dimming.  I just purchased some LEDs and plan to build a test system over the next month or two. These LEDs are in a 5 meter strip divided into 3 LED series run in parallel and rated at 12v. I do not know the amp rating of the LEDs, but I'm guessing in the 20ma range (what I've read is average for bright white). I will probably use 4 series totaling 12 LEDs in the test build.   If I have the transformer from AC power built into the base, I was guessing I could use a number of capacitors in parallel with a resistor to store electricity and slowly discharge it into the LEDs. But I'm a self-taught enthusiast so I honestly don't know if this would actually work. Nor do I know the number and ratings of capacitors and resitor that I would need.  If I have the transformer built into the crystal, the transformer and rectifier would retain a small amount of electricity, but I don't think it would be nearly enough to provide the effect I'm looking for, so something else would have to be added to make it last for several seconds.  A nicad battery with control electronics is literally my last resort for achieving this effect, and I'll probably give up on the idea before I go programming my own circuit board.  That's my main question. If anyone wants to toss in some thoughts on how to connect the crystal to the base, I'm open to suggestions. My original plan was to simply have a direct copper to copper connection with the base. But I've recently been considering an EM charging system (akin to a powermat or  my dad has). The concern with the wireless is providing consistent power to the LEDs, though it is safer. I've also learned quite a bit already about constructing the power supply from perusing this SE site, but if anyone has any suggestions for that, too, I'm all ears. For the test build I'll probably hook it up to a computer power supply, or a laptop power supply if I can find a 12v one at Goodwill or the local electronics parts store.  If I get the test model to work, I plan on building possibly a dozen of these for accent lighting around my home.


Series with non-negative terms: $\sum_{n=1}^{\infty} \frac{|\cos n|^n}{n}$

Given the following series:  $$\sum_{n=1}^{+\infty} \frac{|\cos n|^n}{n}$$  (being a series with non-negative terms), does it converge or diverge?  Unfortunately, I can't prove in any way or convergence or divergence of this series. Any ideas?


Do SEO activities on a certain webpage affect the whole domain or just that one page?

I recently read an SEO blog post where the author was giving examples of how to improve the SEO of an e-commerce page.   One of the points the author made was to have a blog, such as blog.example.com where updates can be made.   I thought this would only have an effect on blog.example.com and not example.com/product-1.  Similarly do other areas of SEO work in the same way.  For example does a link to blog.example.com have an effect on example.com/product-1?


in  I've found how to make text unselectable, which works as expected when used inside a div and stuff. However i can not get it to work inside an iframe.   showing my problem, the text inside the div with the unselectable class is indeed unselectable as expected, but the lorem ipsum on the website is still selectable, despite having the same unselectable class  Is this because elements inside iframe do not inherit the classes like <p> does inside <div>?   If that is the case is there a way to make any text inside the iframe unselectable (html/css/javascript)? Or can this only be done from the source code of the page displayed inside the iframe?   setting pointer-events: none is not an option either since buttons and stuff should still be interactable  Thank you for your time.  -Remy  Edit: Thanks for pointing me to , this does indeed also work for disabling selecting.


Looking for the name of a SciFi film with a lamp that shows invisible snake-like creatures floating in the air

This film was a turn of the century 1900s time frame color film. It was a movie not a TV show. British I think. It was about the invention of a projector / lamp that would show creatures that were invisible floating in mid air. The creatures were snake like. The longer the projector was on the more aggressive the creatures became and eventually would have crossed over to our dimension. I can't remember the film and cant find any images on Google. May be a Lovecraft type film


Why is my mesh inversed when Imported to Unity?

So I modeled this sword and all the parts were separate meshes. I used a mirror modifier when I was modeling and then I applied the modifier when I was done to make the parts into solid meshes. Put a UV map on everything and it all looked good in Blender.  Then I put it into Unity and I got what you see in the picture. Part of the sword is inversed. Oddly, the inversed part actually maintains the proper silhouette. It maintains the correct shape, but then is shaded like the front half is missing.  Does anyone have an idea of what's going on and how to fix it?  Thanks, James


Let $\omega$ be a complex number such that $\omega^5 = 1$ and $\omega \neq 1$. Find   $$\frac{\omega}{1 - \omega^2} + \frac{\omega^2}{1 - \omega^4} + \frac{\omega^3}{1 - \omega} + \frac{\omega^4}{1 - \omega^3}.$$   I have tried adding the first two and the second two separately, then adding those sums but how do I get a numerical value as the answer?   Thanks


Should virus or illegal-activity related questions/code be allowed?

I've seen posts pop up every once in a while on virus coding, and I went to flag them, but I didn't see a category under which to do so. After further investigation, I've had no luck finding rules against it, so I presume this means that there are no rules against it (correct me if i'm wrong). So my question is, why is this allowed, is it even legal, and should we allow it?


I'd like to know what the difference is between shutdown -H (halt the machine) and shutdown -P (poweroff the machine). I understand what poweroff means; it's rather self-explanatory. But what exactly is "halt"?  Background:  I need to turn off my PC with a terminal-command because otherwise the shutdown/reboot hangs.  I found the command shutdown -H -P +0 . It seems to be combination of the two options and it really works fine.  P.S. I have Lubuntu 18.04.2, 64 bit


Which algorithm is used by Google Maps to estimate travel time?

I am able to find the sources of data used by Google Maps for travel time estimation but what is the actual algorithm used by Google Maps to calculate estimated travel time?


$\textit{Why}$ the cases in 4 $\nmid n^2 - 3?$ (bases cases in modular induction)

This question has already been answered . My question is, when we suppose the hypothesis is not true (proof by contradiction), namely that $4 \mid (n^2 - 3)$, we get $n^2 - 3 = 4k$ for some integer $k$ and then we have two cases. But where does the two cases come from? In addition, why does putting them into two cases work to prove the statment? My thought process would be to try to prove this statement by contradiction and somehow figure out a way to produce a contradiction similar to how $\sqrt{2}$ is proved by contradiction. Any help is great! Let me know if I need to clarify more!


If I turn my router off for 24 hours or more I am always assigned a new dynamic IP address once I turn it on again.   Theoretical question for you guys; Does that mean I don't actually have an assigned IP address if I turn my home router off for a few days (given that it changes when when the router is off for 24 hours)


How to test a crystal resonator in board?

I have 2 quartz crystal resonators in my pcb board: 32.768 kHz & 20 MHz. They are connected to a Freescale MC12311 transceiver IC, which has an HCS08 micro-controller embedded in it. I want to test if these crystals are working properly or not.  Available tools: Oscilloscope, Frequency-Meter (Digital Counter), Digital Multimeter.  How should I use these tools to test the crystals in board?   Note: The capacitive load-effect of probes should probably be considered. If not, the measurement would not be accurate, or even worse, the crystals would not work at all.     Edit1: I used both the oscilloscope and the frequency-meter (with x10 probes), but unfortunately there was nothing monitored at all.


Discrete and compact subset must be finite

Show that a discrete and compact subset $D \subset \mathbb{C}$ must be finite. Does this conclusion hold if $D$ is just discrete and bounded? How about discrete and closed?  Compact is the usual (for these simple spaces), closed and bounded, where closed is contained under the limit operation/contains all limit points.  Bounded it can be contained in a ball of some radius around the origin.  $D \subset \mathbb{C}$ is a discrete subset if $\forall z \in D$ there exists a ball of radius $r>0$ such that $D \cap B_r(z)$ = $\{z\}$.  Okay, for bounded set: why is discrete required? Can you give mme an example of a bounded set that is NOT finite?


Can we draw a distribution via LaTeX code inside a table?

I would like to draw graphs in a table similar to Table 1 (page 4), "Distribution" column as given in this paper -   Is this an image or can this be drawn using some math LaTeX code?


Why do clouds appear only and only red at night

I have till now in my life I have always seen clouds only white or black or grey in day but in night why they are always red I could never found it's reason. And also sometimes in day time I see patches in sky like colourful as if any oil stain is there in sky.


Contextually grey out panel element in python 2.8

I have a panel with split column.  In the 2nd row is 3 boolean variables. I want to grey out the 2nd and 3rd option by default. I want the 2nd to be changeable if 1st is true, and 3rd to be changeable if both 1 and two are true. I've read something about "poll()" but not how to actually use it, or set conditions. Physics should only be enablable if singleMesh, and destructable only if physics enabled.      # Create two columns, by using a split layout.     split = layout.split()      # First column     col = split.column()     col.label(text="Building Size:")     col.prop(bpy.context.scene.user_vars, 'buildingHeight')     col.prop(bpy.context.scene.user_vars, 'buildingWidth')     col.prop(bpy.context.scene.user_vars, 'buildingDepth')      # Second column, aligned     col = split.column()     col.label(text="Dynamics:")     col.prop(bpy.context.scene.user_vars, 'singleMesh')     col.prop(bpy.context.scene.user_vars, 'enablePhysics')     col.prop(bpy.context.scene.user_vars, 'destructable_Building')  #EDIT This is what the specific solution to my example looks like. col = split.column() col.label(text="Dynamics:") col.prop(vars, 'singleMesh') sub = col.row() sub.enabled = vars.singleMesh sub.prop(vars, 'enablePhysics') sub = col.row() sub.enabled = vars.enablePhysics sub.prop(vars, 'destructable_Building')


How do I move this batch choice description to a newline?

I have a batch script template that includes a choice in it, I want to have the question for what the end-user wants to do, and the choice description(s) below the question. Here is my template:  @ECHO OFF Color __ TITLE %TITLE% ECHO. :choice set /P c=Do you want to %CHOICE%? & ECHO.(%DESCRIPTION%) if /I "%c%" EQU "Y" goto :choice_yes if /I "%c%" EQU "C" goto :choice_cancel goto :choice :choice_cancel echo %CHOICE% has been cancelled. :choice_yes :: Insert additional commands or code here. pause @ECHO OFF   As you can see in the script, I have already attempted & ECHO.(%DESCRIPTION%) among other methods that insert a new line. I believe there needs to be an additional ECHO before the actual choice question with the above method, but due to the structure of the code I don't know where to place it. What am I doing wrong? Is there perhaps a character that needs to be escaped due to syntax?


Add 3D content to an image using blender

I have an image of a scene and I extracted the projection matrix from that, so I have the camera calibration. Now, I want to add some 3D objects to this scene. I have already coded something with OpenGL. You can see the results here (the white wall is added in OpenGL):    Now, I want to achieve the same thing with Blender, because it's easier to work with complex models and complex scenes. Can anyone give me any pointers on how to convert from OpenGL camera to Blender?


how do you describe someone who enjoys intellectual arguments?

Is there a term that describes someone who enjoys intellectual arguments, e.g. how physicists would like debating about theories they're working with or how people enjoy arguing over the meaning of a literary text? For example,      This student in my class is ____ - they get along with others while stimulating discussion.   Everything I've found so far seems to have negative connotations. Is there any word that has neutral or positive connotations?


"He likes writing poems" or "He likes to write poems"

I think both of the following are grammatically correct, aren't they?        He likes writing poems.    He likes to write poems.       but which form is more common in daily conversation use? like + ing or like + to infinite ?   Update:  Is there any different in meaning between them (like + ing and like + to infinite)? when can use each one of them?


How does LIGO remove the effects of environmental noise?

Since LIGO is dealing with readings at nanometers, events such as vehicles driving nearby, and constant (but extremely minor) tremors of the earth can cause movement with the mirrors at nanometers.  Such tiny movements are extremely difficult to measure, but can easily cause errors when using such a small scale.  How does LIGO remove these factors, and take precautions to prevent false readings due to noise?


I play Minecraft on PE edition. I want to get a sharpness 500 sword with a command block. How do I do this? I have already tried /enchant @p sharpness 500 while holding the sword, but that didn't work. If it needs a mod, please tell me the mod name.


Staying in Canada beyond eTA and passport expiration

Is it allowed to stay in Canada beyond the date on which an eTA (and the passport it is linked to) expires? I haven't yet entered, so it's hypothetical, but if I wasn't limited by CBSA on entry I would be allowed to stay for 6 months. If my passport and eTA expired in a month from my date of entry, could I still stay for 6 months?


Objects invisible in Viewport and Renders

I'm new-ish to Blender. I just built a Ryzen 9 PC for graphic design applications and unfortunately Blender 2.83 LTS does not seem to be functioning properly. What happens, right from the jump, is that objects do not appear in the viewport or in renders, but they appear as normal during modeling, sculpting, and UV editing. Instead, all I see if they are selected is an outline (and in renders what appears to be a black hole). See my photos for examples. I've tried some of the solutions offered elsewhere including: changing the clipping distance, checking that the object's visibility is properly set, various alt-this and alt-thats, nothing is working. Sometimes I can get things to appear in the viewport if I mess around with the object in modeling first, but this is not a sustainable solution. And for just a bit more context, I can get 2.79 to work fine(but as I said, I'm new and still learning, and it's too bid of a difference in layout and function to easily follow along with tutorials), but 2.9 crashes immediately upon startup. Oddly enough, I can also get 2.8 to function in Linux, but this is also not an ideal solution as I was hoping to use downtime during work to get more practice so I can't be switching OS's all the time. Finally, it's definitely worth noting that I'm using a pretty old AMD Firepro 5900 (2GB GDDR5) as I suspect that might be where the issue lies. It's the only card I had lying around, and given that even older GTX cards are going for three times their reasonable market value, I just can't bring myself to spend $$$ on another card until the GPU shortage works itself out. Any help would be appreciated. Thanks!!


Using Image exportToDrive in Google Earth Engine?

I want to export image to drive for my roi. For this i have specified a geometry(roi). But exported map doesn't cover the area specified and it's not showing the color palette. Is there any possible way to export a colored image (which shows in my layer) to Drive? Why it's not covering the region I have specified. Problem is in export.To.Drive section. But all the codes are given to check error that i did.  Code was:    var region = ee.FeatureCollection('users/karmakersourav/shape')   .filter(ee.Filter.eq('NAME_1', 'Chittagong'));   var addNDVI = function(image) {     var ndvi= image.normalizedDifference(['B4', 'B3']).rename('NDVI');     return image.addBands(ndvi);   };    var cloudMask = function(image) {     var clouds = ee.Algorithms.Landsat.simpleCloudScore(image).select(['cloud']);     return image.updateMask(clouds.lt(25));   };   // Select the land mask.   var landMask = function(image) {   var datamask = hansenImage.select('datamask');   // Create a binary mask.   var mask = datamask.eq(1);   return image.updateMask(mask);   };     // Load a Landsat collection, apply the NDVI and cloud/water masking functions over it.   var collection1 = ee.ImageCollection('LANDSAT/LE07/C01/T1_RT_TOA')     .filterBounds(region)     .filterDate('2008-01-01','2008-12-31')     .map(addNDVI)     .map(cloudMask)     .map(landMask)     .select('NDVI') ;   print(collection1);     //reducer   var annualNDVI = collection1.reduce(ee.Reducer.median());   var region_NDVI = annualNDVI.reduceRegions({     collection: region,     reducer: ee.Reducer.median(),     scale: 30 // the resolution of the dataset   });     var ndviParams = {min: -1, max: 1, palette: ['blue', 'white','green']};   var boundParams = {palette: ['black']};   Map.addLayer(annualNDVI.clip(region), ndviParams, 'NDVI', 1);    Map.addLayer(region, boundParams, 'LA', 1);    //here's the problem  Export.image.toDrive({    image: annualNDVI,    description: 'CTG_NDVi',    scale: 30,    region: roi,    fileFormat: 'GeoTIFF',    maxPixels: 1e12,    formatOptions: {       cloudOptimized: true     }   });     My imports was:  var image = ee.Image("UMD/hansen/global_forest_change_2015_v1_3"),       region = ee.FeatureCollection("users/karmakersourav/shape"),       hansenImage = ee.Image("UMD/hansen/global_forest_change_2015"),       roi = /* color: #98ff00 */ee.Geometry.Polygon(           [[[91.26571433292804, 22.382447200369512],           [91.70516745792804, 22.24015355729955],           [91.81503073917804, 21.50608889294255],           [91.99081198917804, 21.158146277513005],           [92.36434714542804, 20.74775339022756],           [92.38631980167804, 21.362918378188724],           [92.68868864595584, 21.285515736407884],           [92.66671598970584, 22.12251851402064],           [92.42501677095584, 22.964696114885136],           [92.43600309908084, 23.237540932485988],           [92.31515348970584, 23.620600408965007],           [92.21627653658084, 23.781555321668222],           [92.04049528658084, 23.691042604440895],           [91.90865934908084, 23.731278240693108],           [91.89767302095584, 23.47960242153599],           [91.75485075533084, 23.28800680321665],           [91.77682341158084, 23.08602889002461],           [91.61202848970584, 22.99503954262493],           [91.46920622408084, 23.277915158047364],           [91.34835661470584, 23.308187798303887],           [91.22750700533084, 23.600467103459394],           [91.28243864595584, 23.872005072934794],           [91.32638395845584, 24.082808607079368],           [91.24947966158084, 24.263221977268092],           [91.06271208345584, 24.223152164577193],           [90.73312223970584, 23.88205115062075],           [90.63424528658084, 23.660857737733508],           [90.54635466158084, 23.328365731356676],           [90.65621794283084, 22.83312931280329],           [90.98580778658084, 22.437667249990497],           [90.98580778658084, 22.071621721722586]]]);


Proving an infinite number of primes of the form 6n+1

The proofs given on other sites weren't that clear and used different methods that I have yet to learn.    Prove that there are an infinite number of primes of the form 6n+1.  The hint that was given was: Let p = p1, p2, ..., pk + 1, where p1 = 2, p2 = 3,...pk are the first k primes.  Show that p is prime.  (p1 means p sub 1, p2 means p sub 2, and pk is p sub k.  Wasn't sure how to write it on this.)    Can someone explain this hint on how they came about of p1 = 2, p2=3, etc, and prove this please?    Also, how would the proof change if the form changed?  ("Prove that there are infinite number of primes of the form....")


What does dot (.) mean in a struct initializer?

static struct fuse_oprations hello_oper = {   .getattr = hello_getattr,   .readdir = hello_readdir,   .open    = hello_open,   .read    = hello_read, };   I don't understand this C syntax well. I can't even search because I don't know the syntax's name. What's that?


How do I search a text keyword in a Facebook Page

I once liked one text post from one FB Page without clicking its like button (because basically I like every text post from this page).  Now, I have to refer that text post in my writing, but the thing is I forgot which post that has that text keyword, I tried searching that keyword by including the name of my FB Page and the keyword on the Search textbox at the right of Facebook's Earth icon, but that didn't work.  How can I search a text keyword in a Facebook Page? So that I can get its post, the one and only, just like when I got a twitter status that has the text keyword I searched.


Connecting from incoming international to domestic flight at LAX, where will I pass immigration?

I'm connecting from an incoming international flight (Hong Kong - LA) to a domestic flight (LA - Austin) at LAX. Both flights are with American Airlines, booked under one ticket. I have a 2 hour layover, and I have Global Entry.  Will I pass through immigration and customs at LA or Austin? Will I need to check out my luggage at LAX and check them back in?


What counts as "observation" in Schrödinger's Cat, and why are superpositions possible?

So if I understood correctly, Schrödinger's Cat is a thought experiment that puts a cat inside a box, and there's a mechanism that kills the cat with 50% probability based on a quantum process. The argument is that the cat now must be in a superposition of dead and alive.  This makes sense at first, but the state of the cat inside the box will affect the outside world in an observable way, right? For example if the cat dies, it might meow loudly which would be audible. If it didn't meow, it would produce a thud on the ground when it dies. And even if the ground was very solid, the redistribution of mass inside the box will affects its gravity field which means the whole universe theoretically immediately observe's the cat's death.  So extending this argument to all superpositions, the different states would cause different effects on the rest of the universe, usually a slight change in the gravity field is the minimum. This gravity perturbation would propagate throughout the universe, and even all the experimenters go to sleep with thick, thick earplugs, somebody or something in the universe is going to inadvertently observe the event and the superposition immediately collapses. Thus superpositions cannot exist beyond an extremely short amount of time.  What's wrong with my reasoning?


I am running Debian kFreeBSD wheezy. Accidentally I mounted my zfs pool directly into /mnt. When I try to unmount I get an error:  zfs unmount myzfspool cannot unmount '/mnt': Device or resource busy   How could I fix that?


I bought the CD version of The Walking Dead and realized there is no CD key printed anywhere. I'd like to play it on Steam and earn achievements, so are the CD version and the Steam version different?


reduced oxygen levels is / are a problem?

I'd like to know whether "is" or "are" should be used in the following on standardized tests:     Reduced oxygen levels in the river is / are a problem for aquatic life.   I'd appreciate your help.


If $\chi(M)=0$ then $M$ admits a nowhere-vanishing vector field

Let $M$ be a compact manifold, then I am trying to prove that if $\chi(M)=0$ then $M$ admits a nowhere vanishing vector field.  To do this I am told to use the following 2 facts  If $\phi : S^{n-1}\rightarrow S^{n-1}$ has degree zero then it's homotopic to a constant map.   Given a finite collection of points $C=\{p_1,...,p_N\}$ we can find a diffeomorphism which sends $C$ to an open ball in $M$.  Now my attempt is the following : So we know that $M$ admits vector field $X$ with a finite number of zeros , $p_1,..,p_N$, and by the second statement we can assume that they are contained in an coordinate ball $(U,\phi)$.  Now by the Poincare-Hopf theorem we know that $\chi(M)=\sum_{i=1}^{N}Ind_{p_i}X=0$. By definition we have that $Ind_{p_i}X=Ind_{\phi(p_i)}\phi_*X$ and this will be the degree of the map $G: S^{n-1}\rightarrow S^{n-1}$ that sends $p\rightarrow \frac{\phi^{-1}_* X(p)}{||\phi^{-1}_* X(p)||}$. Now we have that for every $p_i$ this map $G$ is the same and so we get that $Ndeg(G)=0$ and so $deg(G)=0$. This tells us that $G$ is homotopic to a constant and so we have an extension $G':\phi(U)\rightarrow S^{d-1}$, with this we construct the vector field that is $X$ outside $U$ and is $G'\circ \phi$ in $U$. (I am assuming the homotopy is smooth, but I guess an argument of differential topology would fix this problem if it wasn't). What do you guys think ? Thanks in advance.


Is the set of all of possible uncountable cardinalities uncountably or countably infinite?

I assume that the number of unique possible cardinalities that are uncountably infinite is either uncountable or countable because it is possible to take the powerset of each set, resulting in an uncountable number of elements; thus, there would be an infinite number of uncountable cardinalities. However, is this number of uncountable cardinalities going to be uncountable or countable?   Thanks!


How to create a user that can only use scp?

I want to create a user (named as guest) in my server where I can share my files with others, I only give the guest permission to use scp to get the file with the password I provide, he can't log in to the shell nor do anything else.


Discrete Mathematics ordered pairs and equivalence relations

a) Given a set $S$ with the $n$ elements, find the number of ordered pairs $(A,B)$ such that i) $A \subseteq B \subseteq S$ ii) $A \subset B \subseteq S$ b) Let n be a positive integer and S a set of size n. How many relations $\approx$ on S are there that are: i. an equivalence relation and a partial ordering? ii. an equivalence relation and a total ordering? Normally the topic that I ask about I have a general understanding of (Calculus) but I am having a really tough time with Discrete Maths... Any idea what I should do here?


How to write 1, 2, ... as a subscript to a letter?

I have two theta angles, one is \theta -1, other one is \theta -2. How can I write that properly? I want to give numbers to the thetas, putting the numbers at the bottom right end of the letter.


Using Rouché's theorem to bound zeroes of partial sums of $e^z$

I'm having trouble with a question from an exam I'm studying for:  " Prove that all roots of the polynomial $\sum\limits_{k=0}^n \frac{z^k}{k!}$ (for $n\geq 1$) are in the annulus $\{z: \frac{n}{e}<\vert z\vert<2n \}$. Hint: use the inequality $n^ne^{-n}<n!$"  These kind of questions are usually solved by using Rouché's theorem, so I assume that's the case here as well, but I'm having trouble choosing the right functions to use and bounding their norms correctly. I feel like I should be comparing $e^z$ and $\left(e^z - \sum\limits_{k=0}^n \frac{z^k}{k!}\right)$ on the circle with radius $\frac{n}{e}$ since e^z has no roots there, so maybe that will imply the polynomial also has no roots there. And then maybe using some other argument to show that all the polynomial's roots are inside the larger disk of radius $2n$.


Moderator Elections: new questionnaire UI

As part of our project to make it easier for our  to run moderator elections for our Stack Exchange sites, we've just released new functionality related to creating, answering and reading the candidate questionnaire. For most elections, we ask the community to contribute questions they want the moderator candidates to answer in a . The community managers compile these suggestions into a  that the candidates respond to. Until now, using the questionnaire was inefficient and inconvenient for all involved:  Community managers had to manually copy and paste the suggested questions into a separate Meta post that contained the final questionnaire. Candidates were asked to fill out a form to create their intro statement, then go to the questionnaire Meta post to answer the questionnaire (which involved copying and pasting) and then manually edit their intro statement to include a link to their questionnaire answers. Voters were asked to switch back and forth between the Election page where voting takes place and the questionnaire Meta post as they made their decisions.  We've introduced functionality to solve all three issues. Community managers can now generate the questionnaire with a button click We've built a UI for the community managers that lets them pull in the top questions from the community and quickly edit them into the final questionnaire.  Instead of living in a separate Meta post, the final questionnaire is now published directly on the Election page.  Candidates can now answer the questionnaire in one place When candidates nominate themselves or edit their nomination, their candidate statement and questionnaire appear in the nomination UI.  Voters can now see questionnaire answers in context As voters evaluate the candidates on the Election page, the candidates' questionnaire answers appear underneath their intros. Because the answers can get lengthy, we show a snippet of each questionnaire, along with a "Read more" link that expands it.  More to come We are continuing to work on this project and will be releasing additional features in the coming weeks. Look for updates with the   and  tags.


Note on this question having a duplicate: My question happens to be an answer to the question linked-to as being a duplicate. However the answers on that question to NOT answer my question here.   I'm setting up a new server that has 24 GB of RAM. One of the many ways I'm taking advantage of that, is by storing some heavily used files on a RAM disk. The idea is a startup script creates the disk, and copies the files to it, a shutdown script copies the files off the RAM disk and back to the HDD at shutdown time, and a backup script runs periodically to make a copy of the RAM disk.  The current server I'm setting up is running 10.11.6.  The script I use to create the RAM disk works, but you'll notice the sleep 10 at the top. It only works if you include that. If you don't include that line, the script will create and fill the ram disk, but it won't be mounted. The diskutil mount ... line will do nothing. Once the system is booted, you can manually mount the unmounted RAM disk and there are all the files ready to go, but that's not going to work.  It would seem that some system service is required for mounting the RAM disk, and is not ready yet when LaunchD runs this startup script. But it's in /Library/LaunchDeamons so you'd think all of the system stuff would be up and running by the time it gets to my script?  function create_ramdisk()     {     sleep 10      ## make a ram disk that is approximaly 4GB in size     DISK_ID=$(/usr/bin/hdiutil attach ram://8000000 -notremovable -nomount)     /usr/sbin/diskutil erasevolume HFS+ "webfolder" $DISK_ID     /usr/sbin/diskutil mount $DISK_ID      ## copy contents of the ramdisk backup to the ramdisk     cp -R /webfolder-backup/ /Volumes/webfolder/      ## permissions stuff     chown -R me /Volumes/webfolder/     chmod -R 777 /Volumes/webfolder/     }   Ram disks aren't very popular these days, so it's hard to find info on them. I'd like to be able to create and mount mine without the delay. Ideally, if I knew what service was needed, I could wait for it to be available and then immediately create the RAM disk. But I don't know how to determine that.


Prove a set with this associative operation is a group

Suppose we have a non-empty set $X$ with an associative binary operation, so that for all $x \in X$ there exists a unique $x'$ such that $xx'x=x$. Prove the set under this operation is a group.  Of course, associativity is already given, and unique inverses are obvious, but I have no idea how to go about showing an identity element exists, nor how to show the set is closed with respect to the operation. How can one go about this?


Here is the Context :  I try to code a mapper for converting my DomainModel Objects to ViewModel Ojects dynamically. The problem I get, it's when I try to invoke a method of generic class by reflection I get this error :  System.InvalidOperationException : Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true.  Can someone help-me to figure out where is the fault ? It would be greatly appreciated  Here is the Code (I tried to simplified it) :  public class MapClass<SourceType, DestinationType> {      public string Test()     {         return test     }      public void MapClassReflection(SourceType source, ref DestinationType destination)     {         Type sourceType = source.GetType();         Type destinationType = destination.GetType();          foreach (PropertyInfo sourceProperty in sourceType.GetProperties())         {             string destinationPropertyName = LookupForPropertyInDestinationType(sourceProperty.Name, destinationType);              if (destinationPropertyName != null)             {                 PropertyInfo destinationProperty = destinationType.GetProperty(destinationPropertyName);                 if (destinationProperty.PropertyType == sourceProperty.PropertyType)                 {                     destinationProperty.SetValue(destination, sourceProperty.GetValue(source, null), null);                 }                 else                 {                         Type d1 = typeof(MapClass<,>);                         Type[] typeArgs = { destinationProperty.GetType(), sourceType.GetType() };                         Type constructed = d1.MakeGenericType(typeArgs);                          object o = Activator.CreateInstance(constructed, null);                          MethodInfo theMethod = d1.GetMethod("Test");                          string toto = (string)theMethod.Invoke(o,null);                  }                 }             }         }       private string LookupForPropertyInDestinationType(string sourcePropertyName, Type destinationType)     {         foreach (PropertyInfo property in destinationType.GetProperties())         {             if (property.Name == sourcePropertyName)             {                 return sourcePropertyName;             }         }         return null;     } }


How to make a block in the center of the screen?

How to make the main-block always in the center of the screen horizontally and vertically, even if you scaled down the window in the browser? Structure and adaptive design of code must be not edited.  Tried to do on the guide , did not help.   .title {   margin: 10px auto 25px; }  .block-row {   margin: auto;   display: flex;   flex-wrap: wrap;   flex-direction: row;   justify-content: space-between;   width: 100%;   padding-left: 30px;   padding-right: 30px;   max-width: 700px; }  .box {   position: relative;   width: 320px;   text-align: center;   align-items: center;   justify-content: center;   margin-bottom: 20px; }  .block {   position: relative;   width: 300px;   height: 400px;   margin: 0 auto;   border: 1px solid red; }

Title of this page

         some text in block

         text there

         some text in block

         text there


Two trips on a multiple-entry Schengen visa for a 30-day stay

I have obtained a multiple-entry  Schengen visa for Italy from 9 August to 22 September, 30 day-stay. I'm going on a holiday to Rome from 10-16 August and returning back to Dubai.  Can I use the same visa to travel to Portugal from 12 to 16 September?  Total duration for both trips is less than 15 days.


When resaving JPEGs, the file size increases, but the quality is not changed – why?

I was experimenting with JPEG quality loss upon resaving and noticed that not only (even after four resaves) did the quality not degrade (down to pixel level), but the file sizes actually increased by 200 kb or so each time.  Can anyone give an explanation for this?  Where is this newly created information that increases the file size even coming from?  I would have expected at least slight degradation and a decrease in file size. I saved using Photoshop’s save for web function and 100 % quality.      *Original (top) - 798kb *After 5 saves (bottom) - 1020kb


How do I input a 'bar' for a letter, say, d?

Just like the 'bar' in the reduced Planck constant, in physics people need to use the same 'bar' across differential sign $d$ to indicate a imperfect differential in, say, a quasi-static process. How do I type it? For example,


How to add text overlay effect on hover using CSS with text?

I would like to add an overlay effect to all images, with text overlaying the image. I tried tutorials but could not get it to work. All the images are located in main.js.  const petsData = [{     name: "Purrsloud",     species: "Cat",     favFoods: ["wet food", "dry food", "any food"],     birthYear: 2016,     brick: "brick",     photo: "https://learnwebcode.github.io/json-example/images/cat-2.jpg"   },   {     name: "Barksalot",     species: "Dog",     birthYear: 2008,     photo: "https://learnwebcode.github.io/json-example/images/dog-1.jpg"   },   {     name: "Meowsalot",     species: "Cat",     favFoods: ["tuna", "catnip", "celery"],     birthYear: 2012,     photo: "https://learnwebcode.github.io/json-example/images/cat-1.jpg"   } ];      function petTemplate(pet) {   return `

${pet.name} (${pet.species})

             `; }  document.getElementById("app").innerHTML = `
Pets (${petsData.length} results)
             ${petsData.map(petTemplate).join("")}                `;  .img {   max-width: 400px;   position: relative; }  .app-title {   text-align: center;   font-weight: normal;   font-size: 2.6rem; }  .animal {   max-width: 650px;   padding: 20px;   margin: 30px auto;   background-color: #fff;   box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);   overflow: hidden; }  .animal h4 {   margin: 0 0 6px 0; }  .pet-photo {   float: left;   width: 100%;   display: block;   transition: all linear 0.7s;   margin-right: 15px;   position: relative; }  .pet-name {   font-size: 2rem;   font-weight: normal;   margin: 0 0 1rem 0; }  .species {   font-size: 0.9rem;   color: #888;   vertical-align: middle; }

   Thank you. Edit - Want it to look something like this  need to show the text on hover with a black overlay appearing on the back of the text (when hovered on)


Partial display of figure captions in the list of figures

Consider the below figure and the caption.  Now I want to display only part of the caption in the list of figures instead of the entire caption. For example, here I would like to display "Figure 1.3: Burke-Schumann flame structure in mixture fraction space", only in the list of figures. Is there a way to do this?


Can I make any injective function bijective by patching the codomain?

I have a function $f$ that is injective from $\mathbb R \to \mathbb  R$ but not surjective, i.e., the image $f$ is not all of $\mathbb R$. Can I make $f$ bijective by patching the codomain and removing any parts that are not in the image?


Prove that $f_n$ converges uniformly on $\mathbb{R}$

Suppose that $f$ is uniformly continuous on $\mathbb{R}$. If $\displaystyle \lim_{n\to\infty} y_n =0$ and $f_n(x) := f(x + y_n)$ for $x \in \mathbb{R}$, prove that $f_n$ converges uniformly on $\mathbb{R}$.


How to find the length of a line in a tetrahedron

I apologize the poor image quality and that I don't know how to rotate the image, please see image below.    In this tetrahedron, angle α and β are known and the following are true: AC=BC; AO=BO; OC is perpendicular to plane ABC  As a result, the following are true: angles: CAB=CBA=(180-α)/2; OAB=OBA=(180-β)/2  The question is: what is the length of OC?  (In terms of other lengths and angles)


how to use SLDS icon at visualforce page

I need a picture at my visualforce page and I tried to add the slds-icons. The version with the "{!URLFOR(..." works, but I can't use the settings like slds-icon_x-small, if I use the version without "{!URLFOR(..." the picture doesn't appear.    <svg class="slds-icon slds-icon-text-default slds-icon_x-small" aria-hidden="true">     <use xlink:href="**{!URLFOR($Asset.SLDS, 'assets/icons/utility-sprite/svg/symbols.svg#announcement')}**"></use>   </svg>    <svg class="slds-icon" aria-hidden="true">     <use xlink:href="**/assets/icons/standard-sprite/svg/symbols.svg#account**"></use> </svg>   What is the mistake?


Migrate from SQL Server 2000 to 2012 without a 2005 or 2008 instance

I have come across three old databases sitting on SQL Server 2000 which I need to move to 2012. I believe the standard approach is to restore into a 2005 or 2008 instance, update, re-export and finally restore into 2012.  Fine, except we have no 2005 or 2008 instances available.  Are there any workarounds or other methods that might be worth trying?  For information, the databases only contain 15-20 tables and a few views, they appear very simple and the backups are only 100-200MB in size.


I am trying to watch Netflix on Firefox 50.0 on my Ubuntu 12.04. Netflix keeps asking for Silverlight and HTML 5. I tried to download Chrome but found out much to my dismay that Chrome installation package for 32 bit Ubuntu has been discontinued. My Ubuntu is a 32 bit. So what do I do now? Please please help.


Commas always trip me up. I feel that I use them far too often, and I most likely do. Can anyone set my mind at ease in regards to the following sentence:     Neutrogena is a family-oriented brand producing a large array of   health and beauty products, such as acne wash, hair treatments, and   sunscreen.   The comma in question is the one between "products" and "such." I feel like it can go either way, but I would like a second, third, or even fourth opinion.   Thanks a ton.


Prove that there is an unique $z$ s.t. $f(z) = z$ where $z$ is a complex number

Let $f$ be analytic on the closed unit disk centered at the origin and $|f(z)| < 1$ for $|z| = 1$. Show that $f$ has exactly one fixed point inside the open unit disk. That is, there exists a unique number $z_0$ with $|z_0| < 1$ such that $f(z_0) = z_0$. We must prove 1 there exists at least on solution, 2 there is at most one solution.  1) Having problems with at least one solution. 2)By definition a is a fixed point if f(a) = a. Assume that f has more then one fixed point a,b and that a


Can someone tell me how to make a sentence with "none but"?  None but they/them is/are responsible for it.


simple field calculator question in QGIS

I'm quite new to QGIS and I guess my question is quite simple but yet I couldn't find out how to do this successfully  I Have a 'roads' string column with text such as:  primary  secondary  etc.  and I want to make a new column/layer that which I give an integer value such as:  1  2  Respectively  So I can later Rasterize the layer  Any Ideas?


Simplify the sum $ \sum_{i=0}^{k}(-1)^i i \binom{n}{i} \binom{n}{k-i}$

How to deal with combinatoric interpretation (or just solving it in algebraic way) when we have $(-1)^i$ factor in our sum?  Example task:  Simplify the sum: $$ \sum_{i=0}^{k}(-1)^i i \binom{n}{i} \binom{n}{k-i} \text{ for } 0\le k \le n $$  For task without $(-1)^i$  $$ \sum_{i=0}^{k} i \binom{n}{i} \binom{n}{k-i} = n \binom{2 n-1}{k-1} $$ I can write that interpretation:    I have $n$ rabbits and $k$ slots Each rabbit can be in both slot of first type and second type slots of first type + second type = $k$ Lets double rabbits I choose one rabbit as an king and it will be also a rabbit to slot of first type so I need to choose $2n-1$ rabbit for $k-1$ slots  But I don't know how to deal with $(-1)^i$


I am trying to show that $X^n-Y^m$ is irreducible in $\Bbb{C}[X,Y]$ iff $\gcd(n,m)=1$ where $n,m$ are positive integers.    I showed that if $\gcd(n,m)$ is not $1$, then $X^n-Y^m$ is reducible. How to show the other direction. Please help.


says      The /proc/self/ directory is a link to the currently running process.   There are always multiple processes running concurrently, so which process is "the currently running process"?  Does "the currently running process" have anything to do with which process is currently running on the CPU, considering context switching?  Does "the currently running process" have nothing to do with foreground and background processes?


Where did the original Enterprise bridge sounds come from?

I was watching an episode of , specifically  made in 1957 and there was a short scene with background sounds that were very close to the sound loop used for the bridge background sounds in .  ()  Anyone who was watching TV in the 1960s and 1970s heard this sound loop re-used in shows like .  (And I think I remember hearing it used in , but I'm not sure.)  Was this sound loop created for Star Trek originally?  Or had it been used previously?  Is there any documentation on where it came from and how it was made?  If it was used before Star Trek, where was it used and when was it made?    I'll add that I just saw the episode Elegy in The Twilight Zone, which aired in 1960, and the same sounds are used in the first scene while the astronauts are still on their ship.


My iPhone 4S is stuck on the "Connect to iTunes" screen after trying to install the iOS 8 update.Why is my iPhone screen stuck on the 'connect to iTunes' screen


if i have an opened graphical program , and can't tell its name or PID to kill or process other commands on using $ ps aux , how can i get its name or pid without having any background info about it ?


How to add keywords to this paper, after abstract

I have tried several methods given on internet but nothing works. Can someone help. I am posting my preamble below. I am also fine with adding keywords in footnote, but if I can add them after abstract, it would be better.    \documentclass[12pt,a4paper]{amsart} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{amsmath} \usepackage{amscd} \usepackage[latin2]{inputenc} \usepackage{t1enc} \usepackage[mathscr]{eucal} \usepackage{indentfirst} \usepackage{graphicx} \usepackage{graphics} \usepackage{pict2e} \usepackage{epic} \numberwithin{equation}{section} \usepackage [left=2.7cm, right=3.0cm, top=3.5cm, bottom=4.0cm,]{geometry} \usepackage{epstopdf}  \def\numset#1{{\\mathbb #1}}  \theoremstyle{plain} \newtheorem{Th}{Theorem}[section] \newtheorem{Lemma}[Th]{Lemma} \newtheorem{Cor}[Th]{Corollary} \newtheorem{Prop}[Th]{Proposition}  \theoremstyle{definition} \newtheorem{Def}[Th]{Definition} \newtheorem{Conj}[Th]{Conjecture} \newtheorem{Rem}[Th]{Remark} \newtheorem{?}[Th]{Problem} \newtheorem{Ex}[Th]{Example}  \newcommand{\im}{\operatorname{im}} \newcommand{\Hom}{{\rm{Hom}}} \newcommand{\diam}{{\rm{diam}}} \newcommand{\ovl}{\overline} %\newcommand{\M}{\mathbb{M}}   \begin{document}  \title{dddfdgs}  \author{sds Ssdasgh} \author{Basdishth}     \address{se \\ University of dsdsDshid \email{dssdasdsogy@gmail.com} \address{Univsasa\\ Deparsastics} \email{sadr@gmail.com}   \begin{abstract} lipsum \end{abstract}    \maketitle   \section{Introduction} blablbalab  \end{document}


I was just going through the close votes and was confronted with this close vote audit:  ()  In my opinion, this falls under 'Off topic, recommend or find a tool, library or favorite off-site resource':     Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.   As this question is clearly asking for a library (or off-site resource).


How do I get a block with data to place myself?

Are you looking for how to use /setblock with blocks with data? See .  How do I get a block with data in my inventory so I can place it myself? In Java Edition, these commands work: give @s chest{BlockEntityTag:{Items:[{id:"diamond",count:10b}]}} give @s sign{BlockEntityTag:{Text1:"{\"text\":\"foo\",\"bold\":true}"}}  How can I do this in Bedrock Edition, where there is no access to NBT tags from commands?


Integrate via substitution and derivation rule

I have to solve     $$\int_{-r}^{+r}\int_{-\sqrt{r^2-x^2}}^{+\sqrt{r^2-x^2}} \sqrt{1-\frac{x^2+y^2}{x^2+y^2-r^2}} \operatorname d y \operatorname d x$$  with substitution and then the trick that $\dfrac 1 {\sqrt{1-x^2}} = \dfrac{\mathsf d\;\arcsin(x)}{\mathsf d\;x\qquad\quad\;\,} $  can someone give me a tip on what I should substitute in order to continue?


I have an HTPC with a user that has no password and autologin.  I want to be able to connect to it via Remote Desktop without a password, so I can login with the original user. (I don't want to add another user just for the mstsc)  Is there a way of doing that?  The OS is Windows 7, 32bit.


How are side-channel attacks executed? What does an attacker need to execute a side channel attack?

I've been reading about side-channel attacks  and it seems that some of these can only be executed on the victim's computer. (I am specifically asking about the side-channel attacks listed on the Wikipedia page and any more that are theoretically possible) What would an attacker need to execute each side channel attack? How are side-channel attacks executed?


What is the adjective to describe someone who views or represents someone/something as a stereotype?

What I want to know is whether there is an adjective within the same word family as "stereotype" for that.  So, if it exists, it would be something like "stereotypist" or "stereotyping".  I know that "stereotypist" exists as a noun and "stereotyping" exists as a present participle but I wonder whether either (or both) of them has/have also been used in literature as an adjective.


parameter estimation by the method of moments

Let $X_1,X_2,\dots X_n$ be a random sample from the density $$f(x;\theta)=\theta x^{-2}, \quad 0<\theta \le  x<\infty$$ Find the method of moments estimator of $\theta$. My attempt $ E(X) = \int_{\theta}^{\infty}\theta x^{-2} = 1 $ I think that the integral bounds aren't correct.


I am trying to save a GeoJSON file in QGIS as EPSG:4326, but it keeps being saved as CRS84.   EPSG:4326 and CRS84 are the same except CRS84 saves coordinates as long, lat - and EPSG:4326 saves them as lat, long.   When I open the saved file in QGIS it's read as EPSG:4326, but really the file is CRS84. I know this because when I open the GeoJSON file in notepad it's listed as CRS84, and when I load the file in Shapely it's recognized as CRS84.   What's going on here?  I've tried this on both QGIS 3.6.3 and QGIS 3.4.8 with the same result.


I'm new at Java and I don't understand why my program doesn't work correctly

Why is it showing that my password is wrong even when it is the same as I type in? The password is pass and I wrote pass, but it shows me that it's wrong.  import java.util.Scanner; public class App {     public static void main(String[] args)     {         System.out.println("Guess the word: ");         Scanner test = new Scanner(System.in);          String guessThePassword = test.nextLine();         System.out.println("You wrote: " + guessThePassword);          String correctPasswordIs = "pass";         System.out.println("The correct password is: " + correctPasswordIs);          if  (guessThePassword == correctPasswordIs)             {             System.out.println("The password you wrote is right");             }         else              {             System.out.println("The password you wrote is wrong");             }         test.close();     } }


Fibonacci addition law $F_{n+m} = F_{n-1}F_m + F_n F_{m+1}$

Question: Let $F_n$ the sequence of Fibonacci numbers, given by $F_0 = 0, F_1 = 1$ and $F_n = F_{n-1} + F_{n-2}$ for $n \geq 2$. Show for $n, m \in \mathbb{N}$: $$F_{n+m} = F_{n-1}F_m + F_n F_{m+1}$$   My (very limited) attempt so far: after creating a small list of the values $F_0=0, F_1=1, F_2=1, F_3=2, F_4=3, F_5=5, F_6=8, F_7=13, F_8=21, F_9=34, F_{10}=55$ i can see that yes it does seem to work for instance $F_{6+3}=F_5 F_3 +F_6 F_4 = 10 +24 = 34 = F_9$. However, I really don't know where to begin as showing that this must hold in general terms. Should I be looking to use limits? Or perhaps induction? What is the best way to solve this?


let $K(u) = \frac{\sin(u)}{\pi u}$   show that Fourier transform of $K$ is  $ \hat{K}(\omega) = \textbf{1}_{|\omega|\leq 1} $  Some help would be appreciated


MY canon D1200 doesn't take a picture in AF mode

So my new canon d1200 doesn't take pictures in AF mode , my both lenses(50mm and 18-55mm) I have tried searching but up till now there is no solution. My canon takes picture in manual mode but in auto focus mode the lenses rotate (to focus) but don't take a picture it shows busy and no picture is taken but when i take the picture in auto focus, live mode (seeing through the screen) the picture is taken. i don't understand what the problem is . i have tried cleaning the lenses , still no use. ya, when i take pictures of tube lights , the pictures are taken .


OLS regression problem in R, where intercept is function of the other parameters

I'm having problems doing OLS in R using the lm() function on the following linear model: $Y_t = \bar{Y} \cdot (1-a-b-c) + a \cdot X_{1t} + b \cdot X_{2t} + c \cdot X_{3t} + \varepsilon_{t}$ where $\bar{Y}$ is the sample mean. Moreover, the parameters need to satisfy the following constraints: $a,b,c\geq 0$ and $a+b+c<1$ in order for $Y_t$ to be valid. To be completely honest, I'm not sure this is even a linear regression problem, due to the inequality constraints. However, in the textbook I'm following, it is vaguely specified that the above problem can be estimated using OLS, however I'm open to other suggestions. Also, if you use another method, I would like to know how to acquire the standard errors from the estimation procedure. Feel free to cook up an example using random data.


is it possible to play a Japanese Xbox 360 game on a US Xbox 360 console?

If I were to buy a Japanese Xbox 360 game and have it shipped, would I be able to play it on an US console out of the box?  If not, how would I go about doing so, if it's possible all?


Installing Ubuntu 18.04 on an iMac with a blank hard drive

I have an iMac 2009 model, and a new hard drive. I wanted to know what's the easiest way to get ubuntu installed on it.  I've looked everywhere and found only old answers, or things that don't apply. I'm guessing my e2b USB drive won't be useful here. I have other usb drives, but no idea how to get started.  Thanks for your help, and have a great day.


Why is there a gap between my image and its containing box?

When my browser renders the following test case, there's a gap below the image. From my understanding of CSS, the bottom of the blue box should touch the bottom of the red box. But that's not the case. Why?  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   <title>foo</title>


In the Old Republic, where do little Jedi come from?

In Return of the Jedi, Luke tells Leia, "The Force is strong in my family. My father has it. I have it... My sister has it."  This implies that Force sensitivity is a hereditary trait.  In The Phantom Menace, upon realizing that young Anakin is strongly force-sensitive, the first question Qui-Gon asks his mother is who the father is, which implies that Force sensitivity is a hereditary trait and the Jedi know it.  In Attack of the Clones, we learn that it is contrary to Jedi philosophy for Jedi to fall in love and marry.  This idea is taken even further in Revenge of the Sith, when Padme expresses worry that if the Council finds out Anakin has fathered a child with her, he would be expelled from the Jedi Order.  If Jedi are officially forbidden to marry and have children, and the Order knows that Force-sensitivity is a hereditary trait, this is functionally equivalent to a selective breeding policy to cull Force-sensitivity from the populace, and yet we see plenty of Younglings in the Jedi Temple in the prequel trilogy movies.  If the Jedi are actively not having kids, where do all the little Jedi come from?


Noetherian localizations and extra-condition implies Noetherian

I'm trying to solve this question but I'm stucked:  If a ring $R$ satisfies the following two conditions: i) For every maximal ideal $M$ of $R$, if $S = R\setminus M$ then $S^{-1}R$ is Noetherian, ii) For every $x \in R$, $x\neq 0$, the set of maximal ideals that contains $x$ is finite, then $R$ is Noetherian.  I tried to show that every ideal of $R$ is finitely generated but I don't get anything with this. Thank you for any help.


Can we get by as English speakers visiting Iceland?

We're going to Iceland for the first time in September. Will we be able to get around ok just speaking English, or should we try to learn some rudimentary Icelandic? And is that even what their language is called?


How to redirect example.com/company to example.com?name=company?

I have a web application running in JBoss on www.example.com:8080/webapp. I want users to be able to use the URL www.example.com/company and have that redirected to www.example.com:8080/webapp?name=company in order to present company specific logos and names for each client.  Can I do this using the rewrite engine? and use Apache as the redirect to JBoss?


Automatically add borders around nonempty cells

I'm looking to have cell borders automatically applied when a cell is not empty. I thought I could use conditional formatting for this, but it doesn't seem to be an option.


How can I use two similar usepackages for many similar commands?

For example I want to use \iint from ams package  and also mathabx package in one file together. Actually I want a command that neutralizes ams package effect and replace it with mathabx package effect from here on in my file. Thanks for your responsibility.  This is my example minimal file:  \documentclass[12pt,a4paper]{report} \usepackage{amsmath}  \usepackage{mathabx}  \begin{document} i want this one in ams style:        \[ \iiint\,\iiint\, \iiint\,\oint\, \] text text text text text text text text text text text text   and this one in mathabx style:   \[ \iiint\,\iiint\, \iiint\,\oint\, \]   but both of them are the same and i don't like it ..... \end{document}


Can you ready an action after you've already used your bonus action?

Like say, you use the rogue's cunning action to disengage, then you ready your action to shoot at the enemy when an ally gets within 5 feet of them.  Would this work?


Is it possible to hide a javascript function code?

Let's say I have a normal function:  function coolsecretalgo() {     return 42; }   I tought of hiding it's code by using this function:  function hide(fname) {     var fn=self[fname]     Object.defineProperty(fn,"toString",{"value": ()=>fname+"() { [native code] }"})     Object.defineProperty(fn.toString,"toString",{"value": ()=>"toString() { [native code] }"})     Object.defineProperty(fn.toString.toString,"toString",{"value": fn.toString.toString}) }   Is there any way to unhide such hidden function?  hide("coolsecretalgo") undefined coolsecretalgo ƒ coolsecretalgo() { [native code] } coolsecretalgo.toString ƒ toString() { [native code] } coolsecretalgo.toString.toString ƒ toString() { [native code] } coolsecretalgo.toString.toString.toString ƒ toString() { [native code] }   Are there better ways to do it?  I mean: is it possible to write a function like:  function unhide(funcname) { ...some code.. }   and then  unhide("coolsecretalgo")   and get back the original code?


When and Why would I use Zipper Data structure

Im new to Haskell. I was reading through the Zipper data structure from learnyouahaskell.com . I am simply not able to understand when and why would I use a Zipper for trees or lists or anything


I have the following code which i have been refining for a school assignment, but there is a null pointer exception that is driving me crazy.  Here is my code:  public static <AnyType extends Comparable<? super AnyType>>      void difference(List<AnyType> L1, List<AnyType> L2, List<AnyType> Difference){          if(L1 == null){             Difference = null;         }         else if(L2 == null || L1.isEmpty() || L2.isEmpty()){             Difference = L1;         }         else{             Iterator<AnyType> iterator1 =L1.listIterator();             Iterator<AnyType> iterator2 =L2.listIterator();              AnyType a = iterator1.next();             AnyType b = iterator2.next();              while(a!=null || b!=null){                 int comp = a.compareTo(b);                 if(comp > 0)                     b =(iterator2.hasNext()) ? iterator2.next(): null;                  else if(comp < 0){                     Difference.add(a);                     a = (iterator1.hasNext())? iterator1.next(): null;                  }                 else {                     a = (iterator1.hasNext())? iterator1.next() : null;                     b = (iterator2.hasNext())? iterator2.next() : null;                 }             }             if(b==null){                 while(a!=null){                     Difference.add(a);                     a = iterator1.next();                 }             }         }         System.out.println("Difference Set: " + Arrays.toString(Difference.toArray()));     }   On the while loop, when a is null the program keeps going into the while and that is not supposed to happen. Can anyone tell me why is this happening?  The data i am using to test is:  List<Integer> list3 = Arrays.asList(1,2);         List<Integer> list4 =Arrays.asList(5,17);         List<Integer> listR = new ArrayList<>();          ListsSets.difference(list3, list4, listR);   after a is null the while is supposed to not be executed again but it somehow happens.


Is it appropriate to use the term "mileage" to refer to distance that is not measured in the literal units of miles?  For example, would you say that a car "has a lot of mileage on it" in a country that measures distance in kilometers?  Is there a more unit-neutral term that is better to use universally?


Show that these 5 lines are concurrent using vectors

Pentagon $ABCDE$ is inscribed in a circle. For any edge of $ABCDE$, we can draw the line perpendicular to that edge that contains the centroid of the remaining three vertices. Show that these 5 lines are concurrent.  I'm supposed to use vectors for this problem since I just finished a unit on vectors. I have no idea where to start. Can I get some starter tips?


how remove the first item on drop down with javascript

here is my code:  <select id="List" name="UserType" onChange ="hide">        <option value="0" disabled="disabled" selected="selected">Tipo de Usuario</option>        <option value="1" onclick="hide">Administrador</option>        <option value="2" onclick="hide">Moderador</option>        <option value="3" onclick="hide">Usuario Comun</option> </select>   when i click some value (not zero) in the the drop down, i need remove the first item from this (Tipo de Usuario).  Some code in javascript able to do that?


I'm using Ubuntu 16.04 LTS. I downloaded and installed Geogebra 5 as a deb package. Since then, whenever I do anything with apt, a message is displayed saying:  W: http://www.geogebra.net/linux/dists/stable/InRelease: Signature by key 98272894F6478AA4434B41D3C072A32983A736CF uses weak digest algorithm (SHA1)   I tried uninstalling Geogebra and purging its repository with ppa-purge (but this didn't work since I couldn't find the repository). There was no entry for Geogebra in my installed software list in GNOME (Ubuntu) Software even before I uninstalled.  How should I solve this? I am aware that this is a problem on Geogebra's server's end but since I don't need to use it anymore, I need a way to remove the repository. Thanks!


Getting null pointer exception when setting spinner view text

Below is the code invoked onItemSelected in a spinner. At times I am getting a null pointer exception even when the app is closed. The image of the bug is attached in this post.          /**          * Store the selected product          * @param parent          * @param view          * @param position          * @param id          */         @Override         public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {              QuickListItem selectedSpinnerProduct = productAdapter.getItem(position);              if (selectedSpinnerProduct != null) {                 mgrApp.storeSharedPrefLong(ConstantsQuickList.SHARED_PREF_PRODUCT_ID,                         selectedSpinnerProduct.getId());             }              SpannableStringBuilder builder = getPendingCallCount(products,                     selectedSpinnerProduct);              ((TextView) view).setText(builder, TextView.BufferType.SPANNABLE);              //Hide the performance tracker as product will change             ViewProspects.crdvPerformanceTracker.setVisibility(View.GONE);             populateSalesTracker(typeOfOperation,ConstantsProspects.INVALID_STRING);          }


alternative (or the same?) as javascript prototype

I want to understand prototyping in javascript. For example:  1)  var MyObject = function() {     this.a = "a";     return this; }  MyObject.prototype.fn = function() {console.log('1');}   var obj1 = new MyObject1();   2)  var MyObject = function() {     this.a = "a";     this.fn = function() {console.log('1');}     return this; }  var obj2 = new Object2();   I get obj1 and obj2 as the same. So, what I am doing in 2) is also prototype'ing? Or not? What am I missing about prototype?


Do I need a visa for a connecting international flight in Guangzhou, China?

I am a US citizen and I will be flying New York → Guangzhou → Seoul. The only thing I plan to do in Guangzhou is get off one plane and get on to another. Will I need a visa for this?


Why frequency does not change when light passes through the denser medium?

as far as I noticed always people in physics have a predefined assumption that frequency is constant. whereas we know that the c is the outcom of product of wavelength and frequency. we have different wavelength and frequency iv whit light. the energy depends on both of them wavelength and frequency. if you consider the speed of light as a global constant parameter then both attribute of that must have that properties. but we know when light passes through a glass for example; it loses energy as we can measure the changes in temperature of glass that is increased. then I think the change of speed of light is because of interaction between light as an electromagnetic wave and fields inside the material would occure and frequency and wavelength both would change by 1 divided on square root of $n$ or refracting index. by the way we lose the speed but when the light enters the air again it behaves as before then we have the same speed. you van not measure the speed at the boundary condition as speed needs distance and time to be measured. then why we must suppose frequency is constant?


Provide an example and explanation of an inner class in Java i need an real example where it going to use

please dont send link please give me programming example where Inner class going to use and why we should use inner class


Is this sentence grammatically correct ? Can 'a / an' follows 'are'?

Can someone help me understand what's happening here? I don't think I have seen this before, thank you so much!  "The takeaway is clear: cats are a growing environmental concern because they are driving down some native bird populations."


How to disable Align to Pixel Grid in Illustrator

When I create a new document, this option is available, but how to disable it, when the document is already created?   I can select shapes and disable it via the transform panel but not for newly created shapes. When selecting symbol this option is greyed out, Illustrator realigns the paths anyway.


Does right continuity imply only countably many discontinuities? That is, if $f:\mathbb{R}\rightarrow \mathbb{R}$ is right continuous then does it only have countable many discontinuities?  Thanks


I want my laptop to shutdown when I close the laptop lid.  But in the power settings I can only choose between:   Suspend Do nothing Hibernate (Disabled)   Is there any way to configure it with more options?


How can I validate the user input by using scanf. Right now I have something like this, but doesn't work.  NOTE: I have the atoi just to validate that the scanf validation works.  scanf("%[0987654321.-]s",buf);  i = atoi(buf);  if(i)     index = i;


Allow moderators to undelete the comments deleted after being flagged by a single user

See  for more details. In short, two comments have been probably deleted after a single user flagged them as obsolete because they contained accept or accepting in a sentence.  I found out that, as moderator, I cannot undelete those comments for which the deletion threshold is lowered to 1 flag.    Since on Drupal Answers users could ask a question about a module for accepting answers, the word accept could be contained in a comment, even though the comment is not saying anything about the user not accepting answers given to his questions. For example, the comment could be "What is your module supposed to do when you accept your own answer?" or "You can accept your own answer, and the module doesn't consider that possibility!" In that case, a single user who flags the comment as obsolete would cause the deletion of the comment, even if the comment is not obsolete at all. As moderator, I cannot do anything to reverse that.  Moderators should be able to undelete those comments for which the system decides they can be deleted after being flagged from a single user.


What is the CR/XP-Character Level relationship for opponents?

I can't seem to find information in the Monster Manual for how to design an opponent with class levels of an appropriate challenge for my 7th-level party. Perhaps this appears in the DMG? I want to make a human assassin entirely using class levels, rather than using the premade assassin in the back of the book. What is the CR/XP vs. character level relationship for creating opponents in 5e?


JavaFX- try to getImage and setImage again

I am a newbie in JavaFX and I try by clicking on one imageview (ImageView1)get its image and set another imageview (ImageView2) with that image.  BufferedImage actualBufferedImage= SwingFXUtils.fromFXImage(ImageView1.getImage(), null); WritableImage actualImage= SwingFXUtils.toFXImage(image, null); ImageView2.setImage(actualImage);   But I got NullPointerException. This exception happens in setImage line. I can not find out why actualImage is null after toFXIamge.


Black screen after suspend-after moving to the nvidia official drivers (not priority)

So, when I used the priority drivers, the suspend worked normal. But the official drivers works better, so I installed the official driver. Then suspend won't work.  Should I change any text/documants to make it work? Any solution will be aprreciated, thanks you all!


Okay, so this is how I understood it: They found some drops of blood that Ripley lost during the third film (Alien3). So, they clone her. Easy peasy, far future, get it.  Now, that newly cloned human winds up with a clone of the parasite that infested the original human. From a drop of blood.  In addition: The parasite would age at the same speed as the host. They didn't wait a lifetime for Ripley to mature. I would guess it took only a couple years, given that the scientists didn't appear to have aged noticeably. Anyway, Aliens hatch rather quickly. It doesn't take them decades, it doesn't take them years, it doesn't take them days.  How does this make any sense?


Difficulty seeing through transparency on images as planes

I'm trying to import images as planes to make a diorama in blender, and with Cycles, the images have this strange artifact where you can't see through some of them: The black part in the image below. Right now i have them all as blend mode: Alpha blend, and shadow mode: alpha hashed. Does anybody know what could be going on?  Below is what the same setup looks like in Eevee with a reflection plane, was wanting to use cycles to try to make the reflection they're standing on like water and add some ripples and things. Any idea what could be happening? Thank you!!!


Power Options: Turn off harddrive. Effective or dangerous?

I keep a PC running 24x7 as it handles several light (processor-wise and disk-wise) tasks and acts as a jumping point into my network from outside. I'd like to keep it as energy efficient as possible.  I've always wondered about the "Turn off harddrive after XX mins inactivity" type settings. I can imagine on Win 3.1 that this might work well for unattended PCs, but I figured that in more modern OSes there are so many background tasks running and likely touching the disk periodically that this setting is pretty ineffective.  However, I'm more concerned/interested in knowing whether it is dangerous. I can imagine that spinning down the harddrive every 20 mins just to have it get spun right back up again (and maybe worse, spun up while it is spinning down) might be bad for the drive. I've definitely seen some TCO figures from way back about lab machines used only during the day but cheaper to leave them running since the drive failures are increased with spin up/down (and they seem to occur during power on).  Any tips?


I suggested using which to confirm whether a command works only as a .  cd is an example of a command that works as a shell builtin.  It would be much harder to implement the same function as a binary...  So why does my Fedora system have a binary /usr/bin/cd?  It doesn't implement the magic necessary to affect the shell (parent process) working directory, to match the behaviour of the cd builtin.  My Debian 8 system doesn't have /usr/bin/cd.  $ command -v sudo /usr/bin/sudo $ command -v cd cd $ which sudo /usr/bin/sudo $ which cd /usr/bin/cd $ rpm -q --whatprovides /usr/bin/cd bash-4.3.43-4.fc25.x86_64 $ (. /etc/os-release && echo $PRETTY_NAME) Fedora 25 (Workstation Edition) $ pwd /home/alan $ cd /home && pwd /home $ /usr/bin/cd /home/alan && pwd /home $ cd --help bash: cd: --: invalid option cd: usage: cd [-L|[-P [-e]] [-@]] [dir]   The full list of binaries provided by the bash package is     $ rpm -q --dump bash|grep /usr/bin|cut -f 1 -d ' '|cut -f 4      alias   bash   bashbug   bashbug-64   bg   cd   command   fc   fg   getopts   hash   jobs   read   sh   type   ulimit   umask   unalias   wait


Showing just color ramp in legend without values

I'm using ArcMap 10.3.1.   Is there a way to show, on the legend, just the color ramp as a single patch instead of with each group of values?   I don't really need to show those values on the legend.  This is what it looks like now:    I would prefer to have it look like the ramp in the properties window and somehow note that the green area is less concern, while red is more concern.   Such as this:


linspace c++ vs matlab floating point precsion

I'm trying to implement Linspace in c++ I created some random tests and have a problem with precision I don't understand why.  c++ implementation   std::vector<double> libcalc::linear_space(double a, double b, unsigned int n) {     std::vector<double> array(n,a);     //return an empty array if number of spaces is 0     //return a if number of spaces is 1     if (n <= 1 || fabs(a - b) < std::numeric_limits<double>::epsilon())     {         return array;     }      //we want to be sure we get exactly b in the end     for (unsigned int i = 0; i < n-1; ++i)     {         array[i] = a + ((b - a)*i)/(n-1);     }     array[n - 1] = b;     return array; }   Catch unit test frame work test  auto reverse = [](std::vector<double> const& x) {     std::vector<double> output(x.size());     std::reverse_copy(x.begin(), x.end(), output.begin());      return output; };  SCENARIO("Any linear space (a, b) with two or more points will be same as"     " the reversed linear space of (b, a)") {     GIVEN("a range of points to check starting from 2")     {         unsigned int starting_point = 2;         unsigned int ending_point = 10;          THEN("the linear space (a, b) is same as reversed linear space (b, a)")         {             for (unsigned int n = starting_point; n < ending_point; ++n)             {                 auto a = any_value();                 auto b = any_value();                  auto x = linear_space(a, b, n);                 auto y = reverse(linear_space(b, a, n));                 INFO("a: " << a);                 INFO("b: " << b);                 INFO("n: " << n);                 REQUIRE(x.size() == y.size());                 CHECK(x == y);             }         }     } }   the c++ code results are     CHECK( x == y ) with expansion:   { -296336583.43100381, 273999144.43620467, 844334872.30341315, 1414670600.   1706216, 1985006328.0378299 }   ==   { -296336583.43100381, 273999144.43620443, 844334872.30341291, 1414670600.   1706214, 1985006328.0378299 } with messages:   a: -2.96337e+008   b: 1.98501e+009   n: 5   the matlab results have better precision for forward or reverse linspace  linspace(-296336583.4310038, 1985006328.0378299,5)  ans =  1.0e+09 *    Columns 1 through 4    -0.296336583431004   0.273999144436205   0.844334872303413   1.414670600170622    Column 5     1.985006328037830   linspace(1985006328.0378299,-296336583.4310038,5)  ans =     1.0e+09 *    Columns 1 through 4     1.985006328037830   1.414670600170621   0.844334872303413   0.273999144436204    Column 5    -0.296336583431004   as you can see the number are very much a like but... not exactly the same.  Can you please help why is this?


Why doesn't C#'s String.Join use StringBuilder at one point?

As can be seen , one of String.Join's overloads works with raw pointers and uses something called UnSafeCharBuffer. Why is this? Is it a performance optimization?


If a player uses Dodge every attack made against it gets disadvantage, but a Nat 20 is considered an auto hit.  Would this mean that the 20 would have to be rerolled or would the attack make it through the dodge?


Suppose that f(0) = f(1) = 0 and x ∈ (0, 1). Prove that there exists c ∈ (0, 1) such that f'(c) = f(x).

Let f be a function continuous on [0,1] and differentiable on (0,1)  My attempt:  I have tried solving using Rolle's theorem for f'(c) = 0  I let c<x then by Mean Value Theorem, f'(c) = (f(x)-f(0))/(x-0) = f(x)/x since f'(c) = 0, f(x) = 0 Hence f'(c) = f(x)  Similarly, I let c>x and by Mean Value Theorem again, f'(c) = (f(1)-f(x))/(1-x)       = f(x)/(1-x) since f'(c) = 0, f(x) = 0 Hence f'(c) = f(x)  I feel like this proof is wrong because I don't know how to continue with the case where c=x