What will the community's next step be now that SE has declared inactivity and silence towards the current events?

I suppose you all have read  unpopular answer. People have responded critically and sarcastically towards SE's declaration that they "will not be answering any questions or comments about that going forward". Assume SE will hold firmly onto their declaration, all current situations (License change, fired mods, CoC mess) will remain permanently under the status quo, and the community's voice will be constantly ignored, possibly with radical ones removed. It's like we're no longer able to change, or even affect whatever SE's heads have decided or are going to decide.  A harsh comparison for SE is against Hong Kong, where so far only 1 out of 5 demands has been fulfilled and the remaining ones seemingly unreachable. While HK citizens can subvert the government, we most likely won't since SE is a commercial company after all. I've seen attempts to replicate the functionality on a new website (I assert I saw that in a user profile but can't find it now), but I'm not positive towards its future of building another community. What are our next steps at the current situation?  If I must say - I would unwillingly say that we proceed as usual - but I guess many won't accept this "solution".


I am to find the limit of  $$\lim_{x \to - \infty} \left(\frac{4^{x+2}- 2\cdot3^{-x}}{4^{-x}+2\cdot3^{x+1}}\right)$$  so I used: $$\lim_{x \to -\infty} = \lim_{x \to \infty}f(-x)$$  but I just can't solve it to the end.


Notifications not showing up properly in Slack and other Electron apps

I recently upgraded from Ubuntu 15.10 to 16.04. Every this is working fine but I am not getting slack notification properly. I am getting slack notification like alert box like shown in below picture.    Before this it appears upper right corner as shown in below picture.    Can any one help me to resolve this problem.?


Dynamically change the height of the textarea element

I'm trying to dynamically change the height of the textarea element but my code isn't working as expected.  What should happen:   As a new line appears, the textarea's height increases until it reaches its max height.  As you remove lines the textarea's height decreases until it reaches its min height.  What is happening:  The height increases as new lines are added but the textarea doesn't behave as expected when removing lines. It decreases much more slowly and doesn't reach the min height.    let textInput = document.querySelector(".text-input");  textInput.addEventListener('input', function() {   textInput.style.height = 'auto';   textInput.style.height = textInput.scrollHeight + 'px'; }); .text-input {   width: 100%;   max-height: 250px;   min-height: 100px;   resize: vertical;   box-sizing: border-box; } <textarea class="text-input"></textarea>     Edit  from the link posted. A simple fix is to add the following line     textInput.style.height = textInput.scrollHeight + 'px';


C# how to receive system close or exit events in a commandline application

I'm trying, but everything I've found so far seems to centre around GUI's and form apps. That is not what I'm using.  Eventually it'll be a service, but till it is done I'm running it as a normal app, the problem being that if I just close it by accident, it'll leave another service hanging for up to 30 minutes with bad data. I though it would be easy to add a listener to catch the app being closed.  But I just can't figure it out.


How to store a bike outside and still avoid rapid decay?

I've got insufficient space to store my bike inside. I fear however that it will rust away within a few years if I store the bike outside. My question is twofold:   Will storing a bike outside be a problem? What can I do to prevent rust and possibly other types of decay?


Per , it seems like the beta phase of sites is continuing much longer than previously. Currently, pro-temp moderators are nominated when a site is only a few weeks old, when the site is still very new and unshaped. They continue until they are unable to moderate, or the site graduates to a full site. The problem that I'm seeing is that there are now sites that have been in beta for over a year, which is a time period sufficient that many changes can be made in a persons life, that the community has started to take ownership already, and as a whole, seems to be ready to start taking at least some ownership.  So, the question is, should we allow elections for beta sites that have crossed over some considerable amount of time, perhaps 6 months or something around that mark?


What is the difference between "thee" and "thou"?

What is the difference between thee and thou and how are they used?


How to balance last page of two-column layout?

I create a document in two-column-layout with LaTeX (and Koma-Script, if that is relevant). The two-column-layout is defined in documentclass. The last page of an chapter fills the left column first - the result is that both column are of different length. How can I balance that?  EDIT: flushend like mentioned in the answer of TH. doesn't work for me. Maybe it is conflicting with some other package I use?  EDIT 2: OK, after I tested with lipsum like suggested from Joseph Wright I saw it balanced. I tried a little bit and could find out, that flushend only balances the columns in the last chapter, not in all of them. Knowing that, I could see, that it is true for my document too, the last chapter has balanced columns. How can I achieve it for all of them? Here my short example:  \documentclass[a4paper, 10pt, twocolumn, DIV=18]{scrbook}      \usepackage{flushend}     \usepackage{lipsum}      \begin{document}      \chapter{test}          \lipsum         \lipsum      \chapter{second}          \lipsum         \lipsum      \chapter{third}          \lipsum         \lipsum  \end{document}


So whilst going to rescue the Moth Priest 'Dexion Evicus', I think I accidentally might have hit him, not sure how. Anyhow the bearded maniac has taken this as a personal attack and refuses to accept a yield. Because he's so angry with me he'll just not quit, but being a quest NPC he can't die, nor can my companion Mjoll. So aside from the hilarious infinity battle, I thought, fair enough I'll talk to him whilst he's 'downed' and lo, I progressed the quest.  So I go back to the Dawnguard fortress, and he's there in the middle shouting murder and attacking everyone in the fortress! Clearly his rage knows no bounds.    Is there a way to forcibly pacify him without interring him? Or do I need to roll back and do over?


I recently installed Sublime Text 2 on my Ubuntu 12.04. The problem is that whenever I open it, by default it opens up to two files: sublime.desktop and defaults.list. Also, whatever preferences I try to set aren't saved and I always get the default configuration (with these two files opened) every time I start it up. This wasn't the case with Sublime Text 1. It used to save my preferences and open on my last opened files. Why is this happening? How can I make it save my preferences as Sublime Text 1 did?


The notation $ \otimes $ (Tensor product)

Related to the question , could anyone be able to explain to me what the notation $ \otimes $? Some examples were given in the question : $dx\otimes dx+dy\otimes dy = \frac12(dz\otimes d\bar z + d\bar z\otimes dz) = |dz|^2$ or $dw \otimes d\bar{w}$.  Clarification : I think my question is different of , because I would like some details on a specific example.


Find the limit of $\frac{1}{x} \cdot \int_{0}^{x}(1+\sin(t))^\frac{1}{t}dt$

Like I said I need to find the limit  $\lim_{x\to 0} \frac{1}{x} \cdot \int_{0}^{x}(1+\sin(t))^\frac{1}{t}dt$  I think I have to use L'Hospital here since the test will be about it but I can't understand how to solve this exercise at all.


How are unmarketable market orders (other side of the order book is empty) matched with incoming orders?

Note: This question is erroneously marked as a duplicate. It concerns a very specific situation with unfulfillable market orders in very illiquid markets, one that no other discussion here has covered. Related questions are addressed at the end.  TL;DR This is the entire order book:  __________________________________________________ |___________Buy__________|__________Sell__________| |  Time |  Price | Quant |  Time |  Price | Quant | |       |        |       | 10:05 | market |   1   | |       |        |       | 10:00 | $10.00 |   1   | |_______|________|_______|_______|________|_______|   There's an incoming buy order for 1 share, limit price $11. Which order gets matched and at what price?    With the above order book, if someone came in and placed a buy order for 1 share at limit price $9, I assume it matches the market order and trade is executed at $9. Straightforward. If instead the buyer placed a buy order with limit price $11, would it match the limit order or the market order?  Answering by determining "price" of unfulfilled market order  When the incoming order is a market order and there are only limit orders on the books, it's clear how to price it: based on the best bid or ask. But that doesn't help us here.  One option is that if we can figure out what to consider as the "price" for the unfulfilled market order on the books, we can decide based on price/time priority.  The possibilities are:   Price market order at best ask: $10. Now we have two orders at the same price, so the earlier-placed one gets it: the limit order. But this seems unfair. The trader placing the market order is clearly willing to go below $10, so they should get the trade! Price market order at best bid: $11 or undefined? On the one hand, the incoming buy order is at $11, but on the other hand, by definition an incoming order isn't on the books yet, so there is no "best ask". If it were $11, the buy order would be matched with the $10 limit order, even if the market order had been placed first! Seems unfair that an earlier-placed market order would lose out to a limit order. Price market order at last traded price: let's say $11. Again the market order would unfairly lose out to the limit order here. Price market order at $0.01 better than best ask: $9.99. Okay, this works. But we can't simply treat it as limit price $9.99 because this market order would match an incoming buy order with limit price $9.   Always matching market orders first  As @Dheer's answer suggests, one approach is to simply match market orders first no matter what. This makes a lot of sense, though we still need to figure out at what price does the trade executes. Clearly not the buyer's limit price of $11, because they'd get a worse deal than the limit order on the books. So, $10? $9.99? Last trade price, or opening price (but no more than $10)?  What if the incoming buyer placed a market order instead. At what price do you match two market orders - same as the answer to the above?  I guess this comes down to specifications for individual exchanges, but I'm wondering if there's a standard here or a way to approach it from basic rules that clears up all these situations.    Edit: Some specifics of how limit orders are matched is discussed at  This question is not a duplicate of that - my question is specifically about how an incoming limit order is matched when the other side of the order book has an unfulfilled market order. This case is not discussed at all by various existing questions, which only discuss matching incoming orders when there are sufficient limit orders already on the books.  Other relevant discussions that don't directly address these questions but are good background reading:         Another edit:  According to this answer , some or all markets will reject incoming market orders if there are no orders on the books to match it to, so the situation I describe in this question wouldn't be possible in the first place. I don't have any sources to back this up but if someone can confirm or contradict this we can probably settle this question.


Detect with python script if a blend file has packed images

I'm trying to know if a blend file contains images and if it contains to unpack the images out to the directory. So just before I'm running this line: bpy.ops.file.unpack_all(method='USE_ORIGINAL')  to ask if this blend file is with packed images.


I am running Ubuntu 10.04 and I use upstart for daemon management.  My enterprise application is run as a daemon and must be run as root because of various privileges.  E.g.:  sudo start my-application-long-ID sudo stop my-application-long-ID etc   I would like to introduce an alias to abbreviate these commands as something like:  alias startapp='sudo start my-application-long-ID'   and run it as startapp and that works but I would prefer to not have sudo in the alias.  alias startapp='start my-application-long-ID'   does not when run using sudo startapp, returning sudo: startapp: command not found.  However, when I added the alias:  alias sudo='sudo '  sudo startapp now works but I am still curious why sudo ignores aliases.


Quantum mechanical books for mathematicians

I'm a mathematician. I have good knowledge of superior analysis, distribution theory, Hilbert spaces, Sobolev spaces, and applications to PDE theory. I also have good knowledge of differential geometry. I would like to study the Semiclassic Analysis, but perhaps I must first study the foundations of quantum mechanics. So I would like to know what book you recommend me to begin studying quantum mechanics. I'm primarily interested in a mathematical point of view. I have seen some books of this type, but I would like to have some other opinion.  Thanks for every reply


How do I alter the precision of a decimal column in Sql Server?

Is there a way to alter the precision of an existing decimal column in Sql Server?


Find files that a user can write, efficiently with minimal process creation

I am root. I would like to know whether a non-root user has write access to some files - thousands of them. How to do it efficiently while avoiding process creation?


How do I add the widget that shows my total reputation across sites to my profile?

I've noticed that a few users have something like this on their profiles:    It shows their total reputation across all sites.  How can I add that to my profile?


Show that one-sided limits always exist for a monotone function (on an interval)

Show that one-sided limits always exist for a monotone function on an interval $[a,b]$.  Me attempt:  1) If a function is monotone on an interval $[a,b]$, then $f(a)\le f(x) \le f(b)$ for $x\in[a,b]$. Therefore if there exists left-hand (right-hand) limit of this function at a given point, then it must be finite. Now we must show that a both left-hand and right=hand limits exist. We use the fact that if we take a sequence $(x_n)\rightarrow c^{+} \in [a,b]$ then $f(x_n)$ is bounded and monotone and therefore it is convergent.


Semisimple Lie algebras with invariant inner-products give compact Lie groups

Question. Let $\mathfrak{g}$ be a real semisimple Lie algebra admitting an invariant inner-product. Is every connected Lie group with Lie algebra $\mathfrak{g}$ compact?   I know that the converse is true: If $G$ is a compact connected Lie group, then the Haar measure may be used to give an invariant inner-product on $\mathrm{Lie}(G)$. Also, semisimplicity is necessary since $\mathrm{Lie}(\mathbb{R})=\mathbb{R}$ trivially admits an invariant inner-product.


I know there are much posts like this one around but there was no solution that helped me.  I got a viewpager with two fragments and on the second one is my map. But everytime I try to draw a polyline to that map I got a nullpoint exception. Only when I use setContentView it can find my map fragment (but this destroys my viewpager).  Part of my activity:  public void buttonMaps_Click(View view) {         // setContentView(R.layout.fifth_fragment);         SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);         if (mapFragment != null) {             GoogleMap map = mapFragment.getMap();             // map1 = ((SupportMapFragment)             // getSupportFragmentManager().findFragmentById(R.id.map1)).getMap();             Polyline line = map.addPolyline(                     new PolylineOptions().add(mP0, mP1, mP2, mP3, mP4, mP5, mP6, mP7, mP8).width(5).color(Color.BLUE));         }      }   My fragment xml.  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/fifth_fragment"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingBottom="@dimen/activity_vertical_margin"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"    >          <fragment             android:id="@+id/map"             android:name="com.google.android.gms.maps.SupportMapFragment"             android:layout_width="match_parent"             android:layout_height="312dp"             android:tag="lumpeneimer" />          <Button             android:id="@+id/button1"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:layout_below="@+id/map"             android:layout_centerHorizontal="true"             android:layout_marginTop="29dp"             android:onClick="buttonMaps_Click"             android:text="Button" />  </RelativeLayout>   Is there a way to draw the polyline without using setContentView?  Edit: I tried this at my fragment.java:  public class FifthFragment extends Fragment implements OnMapReadyCallback { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstaceState) {         // TODO Auto-generated method stub         SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map);         mapFragment.getMapAsync(this); return (LinearLayout) inflater.inflate(R.layout.fifth_fragment, container, false);  @Override     public void onMapReady(GoogleMap googleMap) {         GoogleMap map = googleMap;         // TODO Auto-generated method stub           Polyline line = map.addPolyline(                 new PolylineOptions().add(mP0, mP1, mP2, mP3, mP4, mP5, mP6, mP7, mP8).width(5).color(Color.BLUE));     }   but still got the NullPoint at:   mapFragment.getMapAsync(this);


Cardinality of the set of differentiable functions

Is the cardinality of  $$X = \{f: \Bbb R \to \Bbb R \;|\; f \text{ is differentiable everywhere}\}$$ the same as $\Bbb R$? How to prove it?


"There exists some people..." or "There exist some people..."?

I know the usage of     This is a new car.   This is singular.     These are some books for you.   These is plural.  Shall we use   There exists some people who agree with me. There exist some people who agree with me.   Which one is the correct usage and why?


Requirements: Ability to contain generic class objects.  I am making a static library (actually several static libraries) to encapsulate OpenGL functionality into reusable classes.  I have a basic resource management class definition (which originally came from an external OGL tutorial site), that defines static maps:  class ResourceManager {     public:     static std::map<std::string, Shader> Shaders;     static std::map<std::string, Texture2D> Textures;     etc...   These have worked fine in the past, but now I am in need of something generic to handle containers of object types that will be declared outside of the scope of this library. Here is what I've managed to piece together after searching over the internet:  ... template <class T> static std::map<std::string, std::map<std::string, T>> MetaMap;  template <class T> static void AddData(T data, std::string name) {     //This line is the real issue     MetaMap[typeid(T)::name()][name] = data; }   As is required, I have another declaration of MetaMap in my .cpp file:  template <class T> std::map<std::string, std::map<std::string, T>>   ResourceManager::MetaMap;   The intended use of this in another project would look like:  ResourceManager::AddData<Shader>(spriteshader, "spriteshader"); ResourceManager::AddData<Texture2D>(spritetexCoin, "cointex"); ResourceManager::AddData<SpriteAtlasAsymetric>(SAasym, "asymatlas"); etc...   The templated AddData() method causes no issues when empty, but when trying to reference MetaMap from inside, causes the error: "C3245 - 'ResourceManager::MetaMap': use of a variable template requires template argument list"  Now, to me, this suggests that I need to place "< T>" somewhere around the reference to MetaMap in AddData.  template <typename T> static void AddData(T data, std::string name) {     MetaMap<T>[typeid(T)::name()][name] = data; }   Doing so clears up the compilation error, but presents a linking error: "LNK2001 - unresolved external symbol..."  This is as close to figuring this one out as I've gotten. Is this functionality actually achievable with C++? Because I've also read that:     "Templates are specialized at compile time so they are not still parameterized types at runtime"    and     "Templates, in contrast, resolve into ordinary types at compile time and the resulting types may not be specialized in other assemblies."   ...which kind of sounds like I'm dead in the water. Can this approach be made to work in the way I desire?  Thanks for your time.  RESOLUTION  I might as well update this question with my solution for the benefit of others. All in the header file:  template <typename T> class Mapper { public:     static std::map<std::string, T> myMap;          static inline void AddData(T data, std::string name) { myMap[name] = data; }// *(new T(data)); }     static inline T GetData(std::string name) { return myMap[name]; }     static inline T* GetData_ptr(std::string name) { return &myMap[name]; }  private:     //Private constructor     Mapper() { }  }; //Must be implemented in header. Linker will not be able to resolve the symbol if inside cpp file. template <typename T> std::map<std::string, T> Mapper<T>::myMap;   After battling this concept, I'm happy to see that the most elegant solution is the correct one.  This can be used from an external project in the following way, and without any need for setup or further initialisation (regarding the above requirement that myMap be implemented inside the header, but outside the class definition) :  Mapper<int>::AddData(6, "myint");  int temp = Mapper<int>::GetData("myint");  Mapper<Texture2D>::AddData(spritetexCoin, "texcoin"); Texture2D temptex = Mapper<Texture2D>::GetData("texcoin");  //Doesn't alter value referenced in Mapper temp = 9; //temp back to 6 again temp = Mapper<int>::GetData("myint");


Vertically move several vertices while keeping their alignment

Here is my current object:    I want to move the selected vertices up the Z axis, I want the vertices on the other side (i.e. top of the object, right of the picture) to stay in place, and I want the vertices in between to move accordingly with there two constraints:   They must keep their horizontal position (only Z displacement). The general left-right edges must stay linear (no angles at a middle vertex).   I tried the following things, nothing worked:   Moving only the selected vertices up, creating a dummy edge between the far left and the far right, moving a middle vertex up with "snap to edge" enabled. → The "snap to edge" isn't precise when moving along Z axis. Moving only the selected vertices up, selecting all the other top faces, and using "scale along local Z" (shortcut S, Z, Z) to size 0. → The local Z is the one for the full object, not the selected vertices normals. Moving only the selected vertices up, with linear proportional editing on. → The bottom vertices are closer from the selected one than some I want to move and it changes the bottom of the shape too.   How can I achieve my goal without too much pain?  EDIT  The final general shape should look like this:


To create a dual-boot system: which OS should I install first?

I want to reset my laptop's hard-drive and create a dual-boot system, using both Windows 10 (for gaming) and Ubuntu 18.04 (for everything else). Currently my PC uses Ubuntu 18.04 as sole operating system.   After formatting the hard-disk, what should I install first? Ubuntu or Windows?  I know that in the second case I need to restore the Ubuntu's GRUB because Windows has this tendency of overwrite the master boot record, but that a minor issue for me.   Thanks!


If $f(x)$ and $g(x)$ are two Riemann Integrable functions on the Interval [a,b] such that $f(x)<g(x)$ on $[a,b]$. Then $\int_a^b f(x)<\int_a^b g(x)$. How can we prove this without using Measure Theory or Lebesgue Integration.


Can I run Ubuntu OS on a Android 4.0 tablet?

I have a cheap Chinese made tablet from Dubai called the Crony Dubai (www.cronydubai.com). It has a micro B, mini HDMI and a USB labeled as "Host" as well as a micro SD slot. It came with a micro B to USB adapter in box, and its running Ice Cream Sandwich. Is there a way to load Ubuntu on it? Also the tablet is very buggy and crashes often, would that be due to the tablet or the OS?


If I take a really big magnet and use it to pull a large metal object then clearly there will be a force pulling this metal object toward the magnet.  But is Newtons third law obeyed here? Will the magnet also have the same force applied to it, pulling it toward the metal object? Or will the magnet experience no force at all, and have the metal object just come toward it?  I'm comfortable with vector calculus and electromagnetism (engineering) but as far as I know there is nothing in any of my textbooks which would explain this interaction, because the magnet isn't really causing a force on the metal object... its just creating the magnetic field which attracts the object because of the magnetic field created by the metal object... which should also attract the magnet.  But is Newton's third law going to hold here?


What do they do with all the plates and cups in Star Trek?

Whenever someone in Star Trek creates food or drink in the replicator it is generated in the bowl, plate, or cup. It seems like after a few months they would have piles of used dishes from replicator food while making more for every meal. What do they do with all the dishes?


How can I write a regular expression to find/replace HTML classes?

I'm trying to write a regular expression that will match each individual class on HTML elements in an HTML file and allow me to append a string onto the end of each one. I'm using Atom, which is a basic text editor that lets you search with regular expressions.  My end goal is that I want to append a string onto each of the HTML classes on the page. I'm not sure what exactly should be matched by the regex to make the replacement easier - maybe match the character after each class and replace it with the new text plus the old character somehow? Is this even possible?  Examples:

         I know I need to use look-aheads and possibly look-behinds somehow, and now I've gone through a couple tutorials on how to use them, but am still struggling to write a regular expression to solve this problem.


Visual Studio C++ - How to avoid Visual C++ Redistributable Packages?

When I run my program on a freshly installed computer, it tells me that Visual C++ Redistributable Package 2015 (namely, MSVCP140.dll) needs to be installed on the computer in order to run my dynamically linked program.  I understand that static linking would solve the problem - however, that just doubles the size of my executable.  Isn't there a way to suppress visual studio features so the redist package is not necessary and still use the visual studio compiler, as I'm not used to the alternatives like mingw etc.  Or does the redist package actually contain the STL? I can hardly imagine that.


Performing Viewshed Analysis in ArcGIS Desktop

I'm wondering if anyone can help me out. I'm trying to carry out a viewshed analysis of wind farms and single turbines on a region of the UK. I have the landform data as well as the coordinates of around 1,600 turbines, I'm looking to create a 3D map, plot these turbines on the map and carry out a viewshed analysis to determine what area is suffering from the highest level of visual impact.   I am using ArcGIS Desktop 10.2.1.


How to prevent corruptions from spreading?

After my world turned to hardmode, hollow and crismon corruption began to spread. I tried destroying them using the clentaimator but after a few hours it starts to spread again.  I don't like my to be filled with corruption. The picture shows that I used solution to clean the crimson but soon after it started to spread once more.  What can i do to keep the crimson and hollow from spreading?


Powering of Peltier Elements and power issues!

I want to power up 4-5 peltier elements TEC 12706 which have maximum voltage of 16.4V and max current of 6.4A (at 50 C). Will a power supply of 12V 30A do the job (I'm thinking about connecting them in parallel). Also in which case peltier is going to take it's maximum current? I have done experiments before, peltier does not sink more than 2A of current. Why so?


Rational numbers are countable. They are also order dense. Intuitively shouldn't it make irrational numbers also countable. I have seen proofs explaining R is uncountable . This along with countability of rationals implies irrationals are uncountable.   Can anyone provide me with good intuitive explanation why irrationals are uncountable? I am a beginner and any help would be greatly appreciated. Thanks.


Add parenthesis as an accepted Markdown ordered list delimiter

The Markdown editor knows that an empty line, followed by a number, followed by a period, followed by a space, is a list item.  This works great It's almost magic  The problem is that I almost always use a close parenthesis for my lists. I think it's a pretty common practice, but the problem is that the editor / Markdown parser doesn't accept parenthesis as an acceptable list delimiter:  This fails horribly This is on the next line I swear


How many Watts DC are equivalent to 1,000 Watts AC?  For instance, my load in AC is 1,000 Watts 220V. Then, how much DC watts would an equivalent load dissipate in 12V or 24V DC system?


Use of the superlative when only two items are present

When speaking with my mother a couple of days ago, I read to her a message I was sending to my cousin on her behalf ending with: "... the birthday of your youngest." [implying her child]  She immediately leapt on this and said that as my cousin only had two children, the use of the superlative was not permitted and the comparative must be used instead: "... the birthday of your younger child."  She was adamant that this was a solid grammatical rule that she was taught throughout her education.  As a younger Briton, I have relatively little formal grammatical education to older people who were better taught in this regard, so I usually defer to her on grammatical rule knowledge.  Is she right?  Are superlatives not permitted when the domain of the object is only two?  To me it seems bizarre.  The minimum or maximum of any set does not only exist when there are different minima and maxima, or indeed something which is neither.


I've run into a bit of a puzzle and haven't had much luck finding a solution. Right now I am (sadly) connected to the net via Verizon 3G. They filter all incoming traffic so it is impossible for me to open ports to accept connections.  I currently have a Linux virtual machine at linode.com, and the thought crossed my mind to install pptpd and attempt to do some iptables port forwarding. I have pptpd installed and my home machine connects happily. That said, here's some general info:  Server (Debian) WAN IP: x.x.x.x on eth0 - pptpd IP: y.y.y.1 on ppp0 - Client VPN IP: y.y.y.100  To verify I wasn't going insane, I attempted some connections from the server to the open ports on the client, and the client does accept the connections via the VPN IP.  What I want to accomplish is this:  Internet -> WAN IP:Port -> Forward to Client VPN IP:Port  So for instance, if I had port 6000 open on my client, a person could telnet in to x.x.x.x:6000, and the server would catch that and forward it to 192.168.3.100:6000.  I have tried at least 20 different Googled up iptables configs and none have worked yet. Does anyone have any ideas, or perhaps even a totally different approach I might not be aware of? The goal here is to listen through a horribly firewalled connection, preferably both TCP and UDP traffic.


What is the noun that corresponds to the verb "to miss"?

Is there a noun that precisely describes the emotion of missing someone/something?  There is longing, but I don't think that's quite right. You can feel longing for something without missing it. I know this word exists in another language (Hebrew - געגוע), but I'm not sure if there is an equivalent in English.


I use this code in order to remove layers that are out of the data frame of the map:  import arcpy,os,sys,string import arcpy.mapping from arcpy import env  env.overwriteOutput = True   env.workspace = r"G:\PROJECTS\kohav_yair_west\gis\aa" for mxdname in arcpy.ListFiles('*.mxd'):         print '---' ,mxdname, '---'           mxd = arcpy.mapping.MapDocument(os.path.join(env.workspace, mxdname))           df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]         print 'REMOVED LYR'         for lyr in arcpy.mapping.ListLayers(mxd, "" ,df):                 if lyr.isGroupLayer == True: continue                 if lyr.isRasterLayer == True: continue                 arcpy.MakeFeatureLayer_management(lyr.dataSource, "lyr")                 frameLyr = r"G:\PROJECTS\kohav_yair_west\gis\layers\frame.shp"             arcpy.SelectLayerByLocation_management("lyr", "INTERSECT", frameLyr)                 if int(arcpy.GetCount_management("lyr").getOutput(0)) == 0:                         arcpy.mapping.RemoveLayer(df, lyr)                         print u'Removed '+unicode(lyr) + ' lyr'         print '---REMAIN LYR---'         for lyr in arcpy.mapping.ListLayers(mxd, "" , df):                 print lyr.name         mxd.save()         del mxd   but i get this error and i don't understand what is the problem?  --- ttl.mxd --- REMOVED LYR  Traceback (most recent call last):   File "G:\desktop\y\yaron\Private\shonot\software\---gis---\tools\YARON_SCRIPTS\SelectLayerByLocation3.py", line 21, in <module> arcpy.MakeFeatureLayer_management(lyr.dataSource, "lyr")   File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 6520, in MakeFeatureLayer raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Features: Dataset F:\GIS\Updating_2014\ttl\arcview\ttl_all_blue_lines_07.05.shp does not exist or is not supported Failed to execute (MakeFeatureLayer).   This route : F:\GIS\Updating_2014\ttl\arcview\ttl_all_blue_lines_07.05.shp exist but the name of the layer is :"ttl_all_blue_lines_07.05.14.shp" and in the error it mention as ttl_all_blue_lines_07.05.shp


How do I remove items from the Places section of the Files sidebar?

I don't use the Music, Documents, Pictures, Video, and Trash folders often enough to warrant them an honorary place on the sidebar of Ubuntu's 13.04 default file manager "Files".    I would like to remove them, but the "Remove" item on the context menu is grayed out. Since Linux distros tend to be configurable I'm guessing there is a way around this.  The Gear menu doesn't seem to have any options to do this:    The Bookmarks menu looked helpful, but it still made no changes.      (This is after I removed all the Bookmarks I wasn't interested in.)  I have also tried the suggestion from  and commented out lines I don't want from user-dirs.dirs, but still no luck:  $ vim ~/.config/user-dirs.dirs <edits> $ xdg-user-dirs-gtk-update   How do you remove these default items from the sidebar?


Java/Swing: How to correctly using FlowLayout to add multiple JPanels on a JFrame?

I want to add two JPanels in a JFrame, I tryied this:  JPanel container; JPanel jp; JPanel jp2; FlowLayout layout = new FlowLayout(FlowLayout.CENTER); container.setLayout(layout); jp = new Drawing(); jp2= new Drawing2(); container.add(jp); container.add(jp2); setContentPane(container) setVisible(true);   container.setLayout gives me      java.lang.NullPointerException   Can you help me please? Thanks you.


NullPointerException on array filled with Objects

As the title states I get the "java.lang.NullPointerException" in my constructor on the following code. I am aware that this means that i am "pointing" at something with value null but I can't see why. The file "mypictures" are located in C:\Users\jon\eclipse-workspace\Memory\src.   I am guessing that the for-loop meant to fill the array is not working but again, I really can't see why.  public class Memory extends JFrame implements ActionListener {      public Memory() {       File folder = new File("mypictures");     File[] pictures = folder.listFiles();      Card[] allCards = new Card[pictures.length];      for (int i = 0; i < pictures.length; i++) {         String path = pictures[i].getPath();         ImageIcon bild = new ImageIcon(path);         allCards[i] = new Card(bild);                }  public static void main(String[] args) {     new Memory(); }   Shouldn't this make an array filled with objects Card and not null? There is probably some novice mistake somewhere but I can't figure it out. I can post the Card code but I believe that the fault is here.   I'm grateful for any responses!


I am writing a mathematical essay and would like to focus on the concept of infinity. I am not sure of any real life applications of infinity to write about or some way to narrow down the topics. Does anyone have any ideas on ways to focus the essay on a section of the topic infinity.


Insert field value into DB without node_save

I need to insert +30.000 field values in one of my client site for 1 content type only. I can not use the standard way (node_load, change, node_save) because when I save node this start a series of events and actions.   So, can I insert my values directly to the db table ? Or is there an other way ?   M.


sort bib entries in alphabetical order of auther, biblatex

I use biblatex to create the formatted bibliography, and I want to order citations in an alphabetical order of auther's name and then publicated year by ascending. I post a picture to show what I want:   As we can see from above, the style is like plain,which is what I want.However, the order of references is not in an alphabetical order of auther.  I found several methods on the forum but none of them satisfy my needs.   I tried this, but it fails:  \documentclass{article} \usepackage[sorting=ydnt]{biblatex} \addbibresource{\ref.bib}  \begin{document} \nocite{*} \printbibliography \end{document}


Display connected via DisplayPort disconnects, reconnects when resuming, resizing windows on display

I have a new , resolution of 2560 x 1080, connected via DisplayPort to my 2012 MacBook Air 13" via a  that reportedly does have pin 20 wired correctly. I had previously tried connecting via HDMI, but as the manual for the display indicates, Macs are apparently unable to use the full native resolution when connected via HDMI.  A negative experience I'm having is that, when the MBA goes to sleep, the display appears to disconnect. This is noticeable only when waking it: the extra screen blanking of the display automatically reconnecting is almost imperceptible, and would otherwise be of negligible consequence, except for the result that all of my windows that were on that display are resized to fit on the MBA's built-in screen's resolution.  So, I find myself having to constantly re-maximize or rearrange windows whenever I walk away long enough for the screensaver to turn on and/or the computer goes to sleep. This is really aggravating, as I do arrange my windows quite particularly.  My options are seemingly thus:   Replace cable - maybe this is a manifestation of the pin 20 problem, but the display does awaken, just dis/re-connects annoyingly. Replace monitor - maybe something is wrong with this unit or this model?   I don't have another DisplayPort monitor easily accessible, but I might be able to borrow one or at least find one I can use in a store just to demonstrate that it's a DisplayPort or OS X problem and not a unit/model problem.  Tweak something in OS X - maybe there's a setting that I can alter that will disable this behavior, without having to disable screensaver or sleep. Suggestions welcome! Replace MBA - I'm already planning to pick up a new Macbook Pro this month, but I don't know if I'll get it in time to be within the display's return period, should I decide to return the display. I have a feeling this is not a reliable solution, because it's unlikely that the new machine wouldn't exhibit this behavior unless the behavior would change between Thunderbolt and Thunderbolt 2. ??? - this is where you ingenious answerers come in.


I have heard/read the term but don't quite understand what it means.  When should I use this technique and how would I use it? Can anyone provide a good code sample?


Does one wing of fly contain harmful microbes and the other contain only antibodies?

There was  study but the conclusion and it's source's relability seemed a bit off. How come a house flies one wing contain all microbe and the other don't.


Why do some people say 'Did you know that Earth is much smaller than Saturn? Why not 'Do you know that Earth is much smaller than Saturn?'?


Bluetooth not working on RTL8723D laptop - hci0 didn't find patch for chip id 2 , firmware error for rtl_bt/rtl8723b_config.bin failed error -2

This is a HP 15-BS576TX laptop which comes with Realtek RTL8723DE Wireless/Bluetooth module. I honestly cannot find a way to bring up the Bluetooth despite, the firmware are all available. The RTL8723DE firmware is recently available in kernel linux-firmware.git tree and I have copied it to the /lib/firmware/rtl_bt directory too.   The error is, it is asking for rtl8723b_config.bin file which is not available. Also, the bluetooth part of this laptop is detected as RTL8723B as per the kernel log. The reply from the firmware maintainer was: "Not all devices need the config file - rtl8723be does not."  lsusb -v -d 0bda:b009   :~# rfkill list all 0: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 4: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   The dmesg relevant parts:  # dmesg  |grep -i bluetooth [   11.325095] Bluetooth: Core ver 2.22 [   11.325111] Bluetooth: HCI device and connection manager initialized [   11.325113] Bluetooth: HCI socket layer initialized [   11.325115] Bluetooth: L2CAP socket layer initialized [   11.325118] Bluetooth: SCO socket layer initialized [   11.414774] Bluetooth: hci0: rtl: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723 [   11.414775] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin [   11.466838] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2 [   11.466840] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin [   11.478765] Bluetooth: hci0: rom_version status=0 version=2 [   11.478767] Bluetooth: hci0: didn't find patch for chip id 2 [   21.410553] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   21.410555] Bluetooth: BNEP filters: protocol multicast [   21.410557] Bluetooth: BNEP socket layer initialized   I have rtl8723D firmware in the directory and still, the kernel is detecting the device as RTL8723B and I cannot bring it up.  hci0:   Type: Primary  Bus: USB     BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0     DOWN      RX bytes:63 acl:0 sco:0 events:6 errors:0     TX bytes:18 acl:0 sco:0 commands:6 errors:0     Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00     Packet type: DM1 DH1 HV1      Link policy:      Link mode: SLAVE ACCEPT   When I tried,   hciconfig hci0 up  Can't init device hci0: Invalid argument (22)  tail -f /var/log/kern.log shows this:  Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.853960] Bluetooth: hci0: rtl: examining hci_ver=08 hci_rev=000d lmp_ver=08 lmp_subver=8723 Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.853970] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_config.bin Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.854019] bluetooth hci0: Direct firmware load for rtl_bt/rtl8723b_config.bin failed with error -2 Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.854024] Bluetooth: hci0: rtl: loading rtl_bt/rtl8723b_fw.bin Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.855913] Bluetooth: hci0: rom_version status=0 version=2 Mar  8 01:51:21 HP-LAPTOP-15-BS00X kernel: [ 3116.855920] Bluetooth: hci0: didn't find patch for chip id 2   And this is how the /lib/firmware/rtl_bt looks like. It has latest firmware for RTL8723D also copied into the directory:  rtl8192ee_fw.bin rtl8192eu_fw.bin rtl8723a_fw.bin rtl8723b_fw.bin rtl8723d_config.bin rtl8723d_fw.bin rtl8761a_fw.bin rtl8812ae_fw.bin rtl8821a_fw.bin rtl8821c_config.bin rtl8821c_fw.bin rtl8822b_config.bin rtl8822b_fw.bin   What is wrong, I cannot figure out. System detects the Bluetooth hardware as RTL8723B, while the wireless module is definitely RTL8723DE as written in the back of the laptop. The driver maintainer commented that the Bluetooth part of RTL8723B and RTL8723D are similar. So, What is the right thing to try? Is there a way to load the rtl8723d firmware and config file instead of rtl8723b firmware, will it fix the problem.


Simple bash script failing when installed on Crontab

EDIT:My script is located at $HOME folder.This is the reason of the issue.More details by the end of the question.In any case,this is not a duplicate question!  I have a quite trivial script deleting some log files.Running perfectly from command line. However,If I install it on crontab,sporadically I get     /bin/sh: 1: $MyScript.sh: not found   I thought that might be related with crontab config so I have installed it into crontab specifically for my user via  sudo vi /etc/crontab   Unfortunately I still keep getting the same error intemittently. Below is my script.  #!/bin/sh NOW=$(date +"%m-%d-%Y-%T") echo "$NOW Starting deleting of  log files" find /$PATH_TO_DIR/logs/* -mtime +30 -type f -delete  if [ $? -eq 0 ] then  echo "$NOW Successfully deleted files" else  echo "$NOW Could not delete files" fi   Any help appreciated.  EDIT: Issue was my home folder being encrypted.That is why it was intemittently working,only when I was logged in to terminal.(Then home folder is decrypted and my schript is found). So I moved my script to somewhere else and it started working.


About writing: From an economical point of view or from an economic point of view?

Is it right to say in an opinion essay, from an economical point of view? (with the final "al" in the word economical?)  Our English teacher claimed this to be wrong in class and that 70% of the students had this wrong in the essay. I wished to get this clarified from a native speaker because she insists that it is "economic" and not "economical"


I am trying to link my CSS file to the HTML but it doesn't seem to work and I do not see any errors on the syntax   <link rel="stylesheet" type="text/css" href="Project Website Styling.css">     Thank you


Is my understanding of the relation between x on y and, y on x, simple linear regression as a vector transformation wrong?

Apologies if this question is too simplistic but I really couldn't find an answer for it on stats or math stackexchange. Considering the simple linear regression (sum of least squares) for bivariate data. We can get a simple linear regression by one of two methods:  Considering x as an independent variable and y as dependent. (i.e. Y on X) Considering y as an independent variable and x as dependent. (i.e. X on Y)  Since the simple linear regression of Y on X can be expressed in following form $y=\alpha_{yx}+\beta_{yx} x$ provided that $\sum_{i=1}^n (y_i - \alpha_{yx} - \beta_{yx} x_i)^2 \rightarrow min$ and similarily for X on Y $x=\alpha_{xy}+\beta_{xy}y$ provided that $\sum_{i=1}^n (x_i - \alpha_{xy} - \beta_{xy} y_i)^2 \rightarrow min$ I interpreted the second case of y being the independent variable to be the same as plotting the values of y on the horizontal and x on the vertical. (if this is wrong then all that follows is wrong so please correct me) Would it then, be correct to say that the linear simple regression as calculated for Y on X can be transformed to the case of X on Y by simply taking the vector associated with the line of best fit and (first) rotating it 90° counterclockwise and flipping it along the vertical axis? I have tried to illustrate this with the following diagram.  This process can also be achieved by simply multiplying the first matrix by $ \begin{bmatrix} 0 & 1\\  1 & 0  \end{bmatrix}$ Is this method of thinking correct or have I misunderstood something about simple linear regression? I wasn't able to clearly explain this doubt to my prof and its been nagging me ever since. Would greatly appreciate any and all input.


Prove that $x^2=-1$ has no solution in $\mathbb Z$.

I have been asked to prove the following proposition:  Proposition 2.10: The equation $x^2=-1$ has no solution in $\mathbb Z$.  Our professor told us that we will need to prove for two cases, when $x=0$ and when $x \ne 0$.   My question is that I don't understand why we need to prove for two different cases. If anybody could shed some light that would be great.


What tool should I buy to cut through very hard plastic?

I have this 55 gallon blue drum that I just picked up from car spa, but the top is not removable. What tool should I buy to remove just the top part of the plastic drum so that I can replace it with a wire mesh?  Update: I just looked into the Dremel tool, maybe this could work?


Renaming large number of image files with bash

I need to rename approx. 70,000 files. For example: From sb_606_HBO_DPM_0089000 to sb_606_dpm_0089000 etc.  The number range goes from 0089000 to 0163022. It's only the first part of the name that needs to change. all the files are in a single directory, and are numbered sequentially (an image sequence). The numbers must remain unchanged.  When I try this in bash it grizzles at me that the 'Argument list is too long'.  Edit:  I first tried renaming a single file with mv:  mv sb_606_HBO_DPM_0089000.dpx sb_606_dpm_0089000.dpx   Then I tried renaming a range (I learned here last week how to move a load of files, so I thought the same syntax might work for renaming the files...). I think I tried the following (or something like it):  mv sb_606_HBO_DPM_0{089000..163023}.dpx sb_606_dpm_0{089000..163023}.dpx


Spoiler text doesn't work with numbered lists - Intended behavior? Workaround?

The spoiler markdown is sometimes cough messed up. Today's edition: Spoiler doesn't work with numbered lists.  >! 1. Foo    2. Bar    3. Baz  renders like     ! 1. Foo      2. Bar      3. Baz   I could instead do  >! 1. Foo >! 2. Bar >! 3. Baz  but that also turns into      1. Foo  2. Bar  3. Baz   Sheesh, it's ugly! I could also insert two spaces in the second version and get "bar" and "baz" in new lines, but that's still not proper or enough indentation.  Can this be fixed please? Are there any good and un-ugly workarounds? (preferably using markdown)


Git merge reports "Already up-to-date" though there is a difference

I have a git repository with 2 branches: master and test.  There are differences between master and test branches.  Both branches have all changes committed.  If I do:   git checkout master git diff test   A screen full of changes appears showing the differences. I want to merge the changes in the test branch and so do:  git merge test  But get the message "Already up-to-date"  However, examining files under each different branch clearly shows differences.  What's the problem here and how do I resolve it?


Prove that for all $z\in\mathbb{C}$, if $|z| = 1$ and $z\neq−1$ then $Re((1-z)/(1+z)) = 0$

What I have so far:  Assume $|z|= 1$ and $z\neq-1$, then $z=1$ or $z=i$ or $z=-i$.  If $z=1$, $Re(1-1)= 0$ as needed, but for trying to prove $z=i$ and $z=-i$ I get $Re(1-i) = 1$ and vice versa...  What am I doing wrong?


After a fresh installation of Ubuntu Gnome 15.10, Qt apps like  or  suddenly stopped inheriting the global GTK theme, in my case . The same is also true for the default Adwaita theme, so most likely it's not the theme's fault. It seems, that these apps always use the Cleanlooks Qt theme, regardless of the present GTK theme. I've never had any problems with theming on previous installations of Ubuntu Gnome. Installing qt4-qtconfig and playing with different settings (GUI style: default, cleanlooks or gtk+) didn't have any effect on these apps. Curiously, the qt4-qtconfig app itself is themed properly. So after selecting a different theme, e.g. "desktop settings (default)" or "windows", the theme of this app changes, but not in qpdfview or QuiteRSS. The trick with installing libgnomeui-0 (mentioned ) didn't help either. Does anyone experience the same and know of a workaround?


I recently changed my computer. So I opened the blender, and I have so many custom parts that I want to transfer the startup backup file to a new computer. I don't know the location of the startup file, but I couldn't find it. So, how can I bring the startup file at new computer


Not getting upvotes on accepted answer after rep cap

IIRC accepted answers are fully immune to the rep cap limit.  I have reached the rep cap before and don't remember not getting the upvotes reflected on my reputation after I reached the limit, but this time I stopped from receiving the upvotes on  after I reached the rep cap.  Is this the expected behavior, I mean, are accepted answers subjected to rep cap or not? if not, what can I do to get the upvotes reflected in my reputation?  Up to now, the expected rep on that answer will be 165, but I only see 135


Non-native speaker here. Be kind :)  From  Book 1, Chapter 7, "In the house of Tom Bombadil"     'Let us shut out the night!' she said. `For you are still afraid,   perhaps, of mist and tree-shadows and deep water, and untame things.   Fear nothing! For tonight you are under the roof of Tom Bombadil.'   I have doubts about the exact meaning of "for" in the previous sentences.    I believe the first time it indicates causation. Something like "Because you are still afraid ...". Am I right?  The second one is more difficult for me. In this case, it could be causation (the reason why the hobbits should not fear is that they are in a safe place), or just used to set  a specific time (tonight) like in . Which one is correct?


I'm working on a project which uses postgresql with glassfish. When I execute Statement PreparedStatement pstmt = conn.prepareStatement(sql) it give me  java.lang.NullPointerException. Here is my code:     String sql = "DELETE FROM blocklist WHERE ? >= time + ?;";          try(Connection conn = this.connect();              PreparedStatement pstmt = conn.prepareStatement(sql))     {         pstmt.setLong(1, System.currentTimeMillis());         pstmt.setLong(2, blocktime);         pstmt.executeUpdate();     }     catch(SQLException ex)     {         Logger.getLogger(RecordManager.class.getName()).log(Level.SEVERE, null, ex);     }  connect() function is here which is being called at Connection conn = this.connect();: private Connection connect() {     Connection con = null;     try     {         con = DriverManager.getConnection(Config.dburl, Config.dbusername, Config.dbpassword);     }     catch(SQLException ex)     {         Logger.getLogger(RecordManager.class.getName()).log(Level.SEVERE, null, ex);     }     return con; }  Here is exception log: Severe:   Exception in thread "AWT-EventQueue-0" Severe:   java.lang.NullPointerException     at urrsm.sng.RecordManager.unblockrun(RecordManager.java:91)     at urrsm.sng.WebScocketEnd$1.actionPerformed(WebScocketEnd.java:45)     at javax.swing.Timer.fireActionPerformed(Timer.java:313)     at javax.swing.Timer$DoPostEvent.run(Timer.java:245)     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)     at java.awt.EventQueue.access$500(EventQueue.java:97)     at java.awt.EventQueue$3.run(EventQueue.java:709)     at java.awt.EventQueue$3.run(EventQueue.java:703)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)     at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


' undefined reference to' error when trying to overload operator =

I bumped in to an error when trying to overload operator =  Not sure what is wrong with the code. Thanks for help!  Here is my code:  matrix.h  namespace MATRIX{   class Matrix{       // other private methods       public:           // other public methods           template < typename T >           Matrix& operator=(std::list<T> & data) ;   } };   matrix.cu  namespace MATRIX{    // other definitions    template < typename T >    Matrix& Matrix::operator=(list<T> & data) {        // method definition    } }   test.cu  #include <list> #include "matrix.h" // other includes int main(void){     using namespace std;     using MATRIX::Matrix;     Matrix k_matrix;     list<double> k_list(100);     // initialize k_list     k_matrix = k_list; }   Build  nvcc -c matrix.cu nvcc -o test test.cu matrix.o   Error on second command     tmpxft_00001f0f_00000000-3_test.cudafe1.cpp:(.text+0x202):   undefined reference to`MATRIX::Matrix& MATRIX::Matrix::operator=<double>   (std::list<double, std::allocator<double> >&)'


"I would rather did it myself" or "I would rather do it myself"?

Which of the following is the correct sentence:        I would rather do it myself.    I would rather did it myself.      When I meant to say that I don't know how to do this work otherwise I am well enough to do it myself.


What is used as a KEY and MESSAGE when using HMAC within a PBKDF2?

I was studying WPA2 and it's security when I came across this problem. I know that WPA2 uses PBKDF2 to generate a Pairwise Master Key. It does something like this;  DK = PBKDF2(prf=HMAC-SHA1, key=password, salt=ssid, DkLen=64, iterations=4096).   I get that. But what I don't is the PRF module itself. HMAC itself is h(k + h(k+m)) So, The rest of the part I get, but within the HMAC,    What goes in as the KEY and the MESSAGE? Are both the same? if not what are they?


If I do a search example.com/?s=london with no wp_query I get results and I can change pages. But if I add a wp_query and do the same search example.com/?s=london if I click to page 2 example.com/page/2/?s=london  I get a 404. Also with a wp_query added if I do a blank search and change pages example.com/page/2/?s= i dont get 404. Its seems that the searched word is doing it but I'm not sure why. Ive tried changing my permalinks so they update but still get the same. This is the wp_query I'm using so you can see.      <?php       $args_a = array(         'post_type'  => 'post',         'meta_query' => array(             array(                 'key'     => 'CurrentLocation',                 'value'   => $searchm,                 'compare' => '=',             ),             array(                 'key' => 'AreaLookingFor',                 'value'   => $areaihave,                 'type'    => '',                 'compare' => '=',                     ),                        ),     'paged' => get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1,     );      $query_a = new WP_Query( $args_a ); ?>      <?php if ( $query_a->have_posts() ) : ?>          <?php while ( $query_a->have_posts() ) : $query_a->the_post();      get_template_part( 'template-parts/post/content', 'excerpt' );            endwhile; ?>       next_posts_link( 'Next', $query_a->max_num_pages );      previous_posts_link( 'Previous' ); ?>          <?php wp_reset_postdata(); ?>      <?php else : ?>
<?php _e( 'No homes matched your criteria' ); ?>
     <?php endif; ?>


Reset graphic cards settings to default / Radeon RX 550X

I bought recently a Lenovo E490. This laptop only comes with Windows 10. So I made a new partition and installed Ubuntu on it. Used manly for programming, but sometimes I playing one or two rounds of CS:GO.  The specs are:   Intel i7, 8th generation 16 gig RAM 512 SSD Radeon RX 550X / Intel UHD 620   But I only could play on ultra low settings with a resolution of 1600x900. I figured out, that Ubuntu doesn't used the dedicated rx500x. So I tried to used switcheroo-control. Didn't changed. I set DRI_PRIME=1 steam. Also didn't brought the beneficial change.  But what all these steps above did, the game crashes without any error and I get thrown to my desktop and the game ended.  I also tried to install the amdgpu-pro driver, but I did that, I couldn't start up ubuntu anymore. Had to remove that from the cli.  So I just want to have the basic setup when I installed Ubuntu 3 months ago. Is there a reset option? Of course without losing my local git branches, etc. I did every week a backup with dejavu.


Please allow downvoting in the LQ review queue

There is much talk of late about the need to downvote rather than close or delete certain content.  I see these come through the low quality review queue frequently. To give them the appropriate treatment, I have to make several extra mouse clicks to open up. It would seems that you would want to optimize and encourage the correct behavior of downvoting by allowing downvoting right there in the LQ review framework.


custom image when blob does not exist (404)

I have a php page that has blobs from my database  i need 404 image to display when there is no blob     <?php $host = "localhost"; $username = "root"; $password = "12345678"; $db = "sis"; $PicNum = $_GET["PicNum"];  mysql_connect($host,$username,$password) or die("Impossível conectar ao banco.");  @mysql_select_db($db) or die("Impossível conectar ao banco.");  $result=mysql_query("SELECT * FROM usuarios WHERE id=$PicNum") or die("Impossível executar a query ");  $row=mysql_fetch_object($result);   Header("Content-type: image/gif");  echo $row->avatar;?>


Proving $\sum\limits_{l=1}^n \sum\limits _{k=1}^{n-1}\tan \frac {lk\pi }{2n+1}\tan \frac {l(k+1)\pi }{2n+1}=0$

Prove that $$\sum _{l=1}^{n}\sum _{k=1}^{n-1}\tan \frac {lk\pi } {2n+1}\tan \frac {l( k+1) \pi } {2n+1}=0$$     It is very easy to prove this identity for each fixed $n$ . For example let $n = 6$; writing out all terms in a $5 \times 6$ matrix, we obtain:  $\begin{matrix}  \tan \dfrac {\pi } {13}\tan \dfrac {2\pi } {13}  &  \tan \dfrac {2\pi } {13}\tan \dfrac {3\pi } {13} & \tan \dfrac {3\pi } {13}\tan \dfrac {4\pi } {13} & \tan \dfrac {4\pi } {13}\tan \dfrac {5\pi } {13} & \tan \dfrac {5\pi } {13}\tan \dfrac {6\pi } {13}  \\  \tan \dfrac {2\pi } {13}\tan \dfrac {4\pi } {13}  &  \tan \dfrac {4\pi } {13}\tan \dfrac {6\pi } {13} & \tan \dfrac {6\pi } {13}\tan \dfrac {8\pi } {13} & \tan \dfrac {8\pi } {13}\tan \dfrac {10\pi } {13} & \tan \dfrac {10\pi } {13}\tan \dfrac {12\pi } {13} \\ \tan \dfrac {3\pi } {13}\tan \dfrac {6\pi } {13} & \tan \dfrac {6\pi } {13}\tan \dfrac {9\pi } {13} & \tan \dfrac {9\pi } {13}\tan \dfrac {12\pi } {13} & \tan \dfrac {12\pi } {13}\tan \dfrac {15\pi } {13} & \tan \dfrac {15\pi } {13}\tan \dfrac {18\pi } {13} \\ \tan \dfrac {4\pi } {13}\tan \dfrac {8\pi } {13} & \tan \dfrac {8\pi } {13}\tan \dfrac {12\pi } {13} & \tan \dfrac {12\pi } {13}\tan \dfrac {16\pi } {13} & \tan \dfrac {16\pi } {13}\tan \dfrac {20\pi } {13} & \tan \dfrac {20\pi } {13}\tan \dfrac {24\pi } {13} \\ \tan \dfrac {5\pi } {13}\tan \dfrac {10\pi } {13} & \tan \dfrac {10\pi } {13}\tan \dfrac {15\pi } {13} & \tan \dfrac {15\pi } {13}\tan \dfrac {20\pi } {13} & \tan \dfrac {20\pi } {13}\tan \dfrac {25\pi } {13} & \tan \dfrac {25\pi } {13}\tan \dfrac {30\pi } {13} \\ \tan \dfrac {6\pi } {13}\tan \dfrac {12\pi } {13} & \tan \dfrac {12\pi } {13}\tan \dfrac {18\pi } {13} & \tan \dfrac {18\pi } {13}\tan \dfrac {24\pi } {13} & \tan \dfrac {24\pi } {13}\tan \dfrac {30\pi } {13} & \tan \dfrac {30\pi } {13}\tan \dfrac {36\pi } {13}  \end{matrix}$  one can notice then, that the first column vanish the fourth one :  $\tan \dfrac {\pi } {13}\tan \dfrac {2\pi } {13}=-\tan \dfrac {12\pi } {13}\tan \dfrac {15\pi } {13}$  $\tan \dfrac {2\pi } {13}\tan \dfrac {4\pi } {13}=-\tan \dfrac {24\pi } {13}\tan \dfrac {30\pi } {13}$  $\tan \dfrac {3\pi } {13}\tan \dfrac {6\pi } {13}=-\tan \dfrac {16\pi } {13}\tan \dfrac {20\pi } {13}$  $\tan \dfrac {4\pi } {13}\tan \dfrac {8\pi } {13}=-\tan \dfrac {4\pi } {13}\tan \dfrac {5\pi } {13}$  $\tan \dfrac {5\pi } {13}\tan \dfrac {10\pi } {13}=-\tan \dfrac {8\pi } {13}\tan \dfrac {10\pi } {13}$  $\tan \dfrac {6\pi } {13}\tan \dfrac {12\pi } {13}=-\tan \dfrac {20\pi } {13}\tan \dfrac {25\pi } {13}$  and the third column vanish the fifth one :  $\tan \dfrac {3\pi } {13}\tan \dfrac {4\pi } {13}=-\tan \dfrac {30\pi } {13}\tan \dfrac {36\pi } {13}$  $\tan \dfrac {6\pi } {13}\tan \dfrac {8\pi } {13}=-\tan \dfrac {5\pi } {13}\tan \dfrac {6\pi } {13}$  $\tan \dfrac {9\pi } {13}\tan \dfrac {12\pi } {13}=-\tan \dfrac {25\pi } {13}\tan \dfrac {30\pi } {13}$  $\tan \dfrac {12\pi } {13}\tan \dfrac {16\pi } {13}=-\tan \dfrac {10\pi } {13}\tan \dfrac {12\pi } {13}$  $\tan \dfrac {15\pi } {13}\tan \dfrac {20\pi } {13}=-\tan \dfrac {20\pi } {13}\tan \dfrac {24\pi } {13}$  $\tan \dfrac {18\pi } {13}\tan \dfrac {24\pi } {13}=-\tan \dfrac {15\pi } {13}\tan \dfrac {18\pi } {13}$  while the second column is self-vanishing:  $\tan \dfrac {2\pi } {13}\tan \dfrac {3\pi } {13}=-\tan \dfrac {10\pi } {13}\tan \dfrac {15\pi } {13}$  $\tan \dfrac {4\pi } {13}\tan \dfrac {6\pi } {13}=-\tan \dfrac {6\pi } {13}\tan \dfrac {9\pi } {13}$  $\tan \dfrac {8\pi } {13}\tan \dfrac {12\pi } {13}=-\tan \dfrac {12\pi } {13}\tan \dfrac {18\pi } {13}$ .  So the equality occurs. But how to generalize the proof?


Getting NullPointerException on calling getter method

I am having three classes StudentMain, StudentService, Student. Student class contains getters and setters method and from StudentMain I'm passing Student object to StudentService. Below is the code:  code for StudentMain:  public class StudentMain { static Student data [] = new Student[4]; static { for (int i = 0; i < data.length; i++)      data [i] =new Student();     data [0] = new Student ("Sekar", new int [] {35, 35, 35});      data [1] = new Student(null,new int[]{11,22,33});     data [2] = null;      data [3] = new Student ("Manoj", null);  } public static void main(String[] args) {     // TODO Auto-generated method stub     StudentService studentService = new StudentService ();     System.out.println ("Number of Objects with Marks array as null =" + studentService.findNumberOfNullMarks (data));     System.out.println ("Number of Objects with Name as null="+ studentService.findNumberOfNullNames(data));     System.out.println ("Number of Objects that are entirely null="+ studentService.findNumberOfNullObjects(data));     }   }  code for Student:  public class Student { private String name; private int marks[]; public void setName(String name) {     this.name=name; } public String getName() {     return name; } public void setMarks(int [] marks) {     this.marks=marks; } public int[] getMarks() {     return marks; } public Student() {  } public Student(String name,int[] marks) {     setName(name);     setMarks(marks); }   }  code for StudentService:  public class StudentService{ Student[] data; public int findNumberOfNullMarks(Student data[]) {     this.data=data;     int count=0;     int i=0;     while(i!=data.length) {         if(data[i].getMarks()==null)             count++;         i++;     }     return count; } public int findNumberOfNullNames(Student data[]) {     int count=0;     int i=0;     while(i!=data.length) {         if(data[i].getName()==null)             count++;         i++;     }     return count; } public int findNumberOfNullObjects(Student data[]) {     int count=0;     int i=0;     while(i!=data.length) {         if(data[i]==null)             count++;         i++;     }     return count; }   }  I am getting exception at if(data[i].getMarks()==null) and if(data[i].getMarks()=null) in StudentService class.


Installing Oracle 11g R2 on Ubuntu 14.04 64-bit

I am trying to install Oracle 11g R2 on Ubuntu 14.04 64-bit using the "silent" installer. I am using an .rsp file with the process but getting this error:   [FATAL] [INS-30501] Automatic Storage Management software is not configured on this system  CAUSE: Prior to configuring a database to use Automatic Storage Management (ASM), you must install and configure Grid Infrastructure, which includes ASM software.  ACTION: Grid Infrastructure can be installed from the separate installation media included in your media pack. Alternatively, it can be downloaded separately from Electronic Product Delivery (EPD) or the Oracle Technology Network (OTN)   Should I install Automatic Storage Management (ASM) and how? Or should I avoid ASM, also how?


Does anyone know how the core, fundamental functionality of a programming language can lose the ability to do calculations properly/precisely?    var html = ''; for(var i = 0; i <= 1; i += 0.01){      html += i + '<br />'; } document.body.innerHTML = html;   My question is simply why does this happen and how can I stop it from happening?  0 0.01 0.02 0.03 0.04 0.05 0.060000000000000005 0.07 0.08 0.09 0.09999999999999999 0.10999999999999999


Show that $(\Bbb N,d_1)$ and $(\Bbb N,d_2)$ are equivalent where $d_1$ is the discrete metric and $d_3(m,n)=|\frac{1}{m}-\frac{1}{n}|$.   My account  In order to show that $(\Bbb N,d_1)$ and $(\Bbb N,d_2)$ are equivalent,take any $x\in \Bbb N$ and consider $B_{d_1}(x,r)$ .We need to find $s>0$ such that $x\in B_{d_3}(x,s)\subset B_{d_1}(x,r)$ and vice versa.  If we choose $s=r$ in the first case then if $y\in B_{d_1}(x,s)\implies d_1(x,y)<s\implies |x-y|<s\implies |\frac{1}{x}-\frac{1}{y}|<s\implies y\in B_{d_3}(x,r)$.  But I am stuck in the other subset inequality.Please help .  Is there any other way to solve this ?


How to construct examples of maps that are open or closed or continuous but not the others?

I came across this exercise, the main problem for me are the restrictions, i need to find examples for maps $f: \mathbb {R}^2 \rightarrow \mathbb {R}^2$ or subsets of them such that $f$ is only one or two of the three at the same time. (I.e $f$ is open but no closed nor continuous) But i don't know How to build such examples, as i also don't see the kind of patologies i should be looking for


which or that? One thing I keep wondering about

How do you decided when to use which as opposed to that?  It never felt too important to me to be able to make this distinction, but now, I do want to get this right.


Which article must be used here, a or an?

Which one is correct: a r-uniform hypergraph or an r-uniform hypergrah?


Given:  $eG=P$, $kG=(r,y)$  ECDSA signature transmits (r,s) and does this calculation:  $u = \frac{z}{s}$, $v = \frac{r}{s}$  $uG+vP=(r,y)$ means the signature is valid  Why do we transmit $s$ and not $s^{-1}$?  Currently, $s=\frac{z+re}{k}$, why not $s=\frac{k}{z+re}$? The equations would all go through:  $u=zs$, $v=rs$  $uG+vP=zsG+rsP=zsG+rseG=(zs+rse)G=s(z+re)G=\frac{k(z+re)}{z+re}G=kG=(r,y)$  Given that finding the inverse is very expensive computationally, what are we gaining by transmitting $s$ instead of $s^{-1}$?


hi I am an iPhone 5s second hand user. When I update my phone, it is locked and I don't know the original owners icloud ID and password. so it is locked and can not open my phone right now. so please tell me the steps to unlock the icloud . I have search in the Google and YouTube but the answer that shown in that is completely fake. so help me


Filter rows according to a string match, when i am unsure of specific column

Can someone help me on SQL Query to filter rows according to a string.   Consider i want to display all rows which contains a string = 'PARIS'. No speicific column to mention. Need filtering at entire row level.  Is it possible?  Thanks in advance.


Using magnetics for single board Ethernet routing

I have two SoCs that are mounted on a the same carrier board using SODIMM connector. The two SoC are mounted very close to each other, the entire carrier board is smaller than 15x15 cm I need to connect the two computers to each other using cross over Ethernet so they can talk back and forth. Given that I am not using any RJ45 or any sort of cables and the Ethernet pins of SoC-A is being directly connected to the Ethernet Pins of SoC-B using traces on the PCB, do I need to use any magnetics? Can I just directly connect the SODIMM pins to each other ? Distance between the two SODIMM pins are about 1 or 2 cm


How to allow a script to run on a single domain with NoScript?

Some forums allow direct embedding of YouTube videos, and this is slowing down my browsing a lot when a user posts several videos in a single post. I want to allow scripts from YouTube only on youtube.com, not anywhere else.  I also want to disable social network tracking so that scripts from sites like Facebook are only allowed on their home domain. How do I set up a blacklist with exceptions or a whitelist with conditions?


Using Ubuntu 11.10, I accidentally deleted a file that was approximately 700 MB. I tried to find it in the in following locations, but couldn't:  /home/user/.local/share /home/user/ <-- there was no folder .Trash /home/user/Desktop/ <-- there was no folder .Trash   So where did .Trash go in Ubuntu 11.10 onward? I use the Gnome environment.


If $A$ is an associative algebra Show that $End_{A}(A)=A^{op}$ the algebra with opposite multiplication

Let $A$ be an associative algebra, And let $V$ be a representation of $A$. By $End_{S}(V)$ one denotes the algebra of homomorphisms of representations $V \to V$  Show that $End_{A}(A)=A^{op}$ the algebra with opposite multiplication.


"drinking a cup of coffee" vs "over a cup of coffee"

We can describe two things we do in one time with a participle construction like the following sentence:     We had a chat drinking a cup of coffee.   However, we may also describe the same situation with "over" as follows:     We had a chat over a cup of coffee.   Is there any difference between these sentences?   I know "over a cup of coffee" is a common expression which means "during [while drinking] a cup of coffee", but "drinking" and "over" are probably different in word class. I would like to understand why these sentences can describe the same situation (or not the same).  Thanks in advance.


My hard disk crashed and I had to reinstall Ubuntu.  I dual booted it using Wubi and I installed it in C: partition.  When I boot into Ubuntu, I can't see my partition (The partition where Windows is installed) but I can see my second partition, D:.  Do I need to mount the partition?


TexStudio editor Math Highlightng in different environment

I would like to customize the settings for text highlighting on TexStudio.  I'm working with lot of big and small equations and using the breqn package. Here is some sample code:  \documentclass{article} \usepackage{amssymb} \usepackage{amsmath}  \usepackage{mathpazo} \usepackage[mathpazo]{flexisym} \usepackage{breqn} \newcommand{\eq}[1]{\begin{dmath}#1\end{dmath}}  \begin{document}     A small inline equation: $small$\\      A regular non-inlined equation:     \begin{equation}         Regular = \omega \times \delta     \end{equation}      A big equation that might need line breaks:     \begin{dmath}         Big = \omega \times \delta + bla + bla + bla + bla + bla  + bla + bla + bla + bla  + bla + bla + bla  + bla + bla + bla       \end{dmath}      The way I'd like to deal with this:     \eq{something = \omega + \delta}     \end{document}   And the result is fine:    However, when working on the text editor of TexStudio, the code looks like this:   My question: Is there a way to get TeXstudio to understand that the dmath environment is an equation environment so that it does not highlights the math symbols in red but use the formatting used in the equation environment? Would it be possible to do the same with the custum command as well?


Gutenberg extend blocks add new class name

I'm trying to add an extra class name to all the blocks by extending them. Documentation:    I'm using blocks.BlockEdit to modify the edit component. I want to add a custom class name.  So far I have this  const withClass = createHigherOrderComponent( ( BlockListBlock ) => {     return ( props ) => {         let wrapperProps = props.wrapperProps;         wrapperProps = {             ...wrapperProps,             className: 'my-custom-class',         };          return <BlockListBlock { ...props } wrapperProps={ wrapperProps } />;     }; }, 'withClass' );   It's working by adding the custom class to the wrapper but it is overwriting the default block class. Is it possible to append to the current classes without overriding?


What happens when you put a +1/+1 counter on a planeswalker?

Some commander decks have Planeswalker commanders.  What happens when you put a +1/+1 counter on one of them, such as with ?


Java - How to find all direct subclasses of a class with reflection?

I need to make a list of all the direct subclasses of a specific class using reflection, is there any way to do it?


Why is it still not possible to cut files to paste them elsewhere in Catalina?

I find it weird that this simple functionality doesn't exist in macOS, as it does in other OS. IIRC, it used to exist in the System 7 era. What would be the rationale to get this simple functionality out of the window (I should say Apple here, I know ;) )?


I've recently come across a divisibility problem that I am unable to solve. I know that most of these types of problems have fairly straightforward proof-by-induction solutions -- but for this particular problem, I don't know how to finish the inductive step. Or perhaps there is another, easier path to a proof?  Anyways here it is:  Prove that ((n+1)^n) - 1 is divisible by n^2 for all positive integers n.  Thanks in advance!


One topic which was covered in university, but which I never understood, is how a spinning top "magically" resists the force of gravity. The conservation of energy explanations make sense, but I don't believe that they provide as much insight as a mechanical explanation would.  The  Cedric provided looks similar to a diagram that I saw in my physics textbook. This diagram illustrates precession nicely, but doesn't explain why the top doesn't fall. Since the angular acceleration is always tangential, I would expect that the top should spiral outwards until it falls to the ground. However, the diagram seems to indicate that the top should be precessing in a circle, not a spiral. Another reason I am not satisfied with this explanation is that the calculation is apparently limited to situations where: "the spin angular velocity $\omega$ is much greater than the precession angular velocity $\omega_P$". The calculation gives no explanation of why this is not the case.


I have a scenario like   VAR = `Some command brings the file path name and assigns it to VAR`   For example VAR can have value like /root/user/samp.txt  I want to grep command like  grep HI $VAR    This doesnt works gives an error saying cannot open /root/user/samp.txt same error when tried cat $VAR.   How to handle this ?  I have given try   echo $VAR | grep HI grep HI "$VAR"   Using korn shell


Use only one function key as standard function key

I'd like F2 to used as a standard function key. (ie, when I press F2 my screen won't brighten it will send an F2 to the application)  At the same time I'd like the rest of the function keys to do their respective special operations, such as lowering/increasing volume.  Is this possible?


here the src code   let mod_src_0 = "str1"; let mod_src_1 = "str2"; let mod_src_array = [mod_src_0,mod_src_1]; let mod_src_export = [];  let mod_obj = function(){      let temp = {};     for(let mod in mod_src_array){         temp.id = mod_src_array[mod];          mod_src_export.push(temp);     }        console.log(mod_src_export)   } mod_obj()   and the result is [ { id: 'str2' }, { id: 'str2' } ] instead of [ { id: 'str1' }, { id: 'str2' } ]  why is this happening? does it have anything to do with the javascript array.push function?


Expanding char by some more chars in C ( no overwriting allowed )

I would like to save more chars in ch[500] then it is already there. I dont want to lose the chars I've saved there before.  Something that would work like this:  ch = ch + ’nextch’;


Does moving a grappled opponent while mounted reduce your mount's speed?

When you move a grappled opponent, your speed is halved. However, while mounted, your mount is moving you. Is your mount's speed halved when you move a grappled opponent ?


$A$ and $B$ are $(n\times n)$ matrices and $AB + B + A = 0$. Prove that then $AB=BA$.  How should I approach this problem?


What about water makes it destroy electronics?

From my understanding water shouldn't really damage electronics, but it does. what about water actually causes damage, and why is water with impurities such as salt make it so much worse?


Scheduled job at a specific time is running at another time as scheduled as well

by monitoring of a batch job, we saw that this job started outside the scheduled time. For example, we scheduled the batch job to run at 9:00 am. However, when we checked the list of apex batch jobs, we saw the job started one at 3:00 am, although we haven't started it at that time.   How can this happen, even when you have scheduled a batch job to run at a specif time, it ran once at another time, and again at the scheduled time?.  I would appreciate your answers, guy, because there are some things in Salesforce which are not documented and no idea what't going on here.  Another point: at the same time another batch job was running, but the parallel running job has to do with Accounts. Our job has to do with a child object, Account vouchers.  It seems to be both collide causing the errors UNABLE_LOCK_ROW.  Does anybody have an idea


I have a power supply of 5 volts @ 1A. I want to reduce the current from 1A to 250mA. Which resistor should be use?   I tried this equation(Ohm's Law):  R = V / I  = 5/(0.75)  = 6.66 Ohms.  I tried the 6.66 Ohm resistor but it only reduce few mili Amps.


How do I change the MAC address of my network card?

I have a local network in a Windows system where the Admin gives permission to the PCs by their MAC address. But he is on vacations and I have a new PC.  How can I change the MAC address of my new PC to have the same MAC address as the old one?  I know this can be used for spoofing the address, but this is local, so I don't think I will have a problem.


Applying different fills simultaneously in illustrator

I have multiple elements with  different stroke colours. I would like to fill all the elements with  their individual outer stroke colours. Is there a way to do this without having to apply outer stroke colour to the fill individually for  each element?


Every real matrix with non-negative entries has a non negative eigenvalue

If $A$ is any matrix $n\times n$ with non negative entries, then $A$ has a non negative eigenvalue.  I know that I have to use the Brower Point fix theorem, but I am not finding the function for that. Could any one help me?  Thanks!


Declaring a math operator for every capitalized word?

I've declared a lot of math operators lately, e.g. \DeclareMathOperator{\Hom}{Hom}, \DeclareMathOperator{\End}{End} and so forth. This is getting a bit annoying and seems automatable: what I'd really like is to have this behavior for every capitalized word, e.g. if I type \Foo in a document I'd like for this to be interpreted as a math operator without having to specify it in advance. Is there an easy way to do this?


Whats the easiest way to move project Java from java.net to bitbucket

Open source project currently hosted on java.net (SVN, JIRA) to encourage participation I want to move it to bitbucket (Git, can link to JIRA). This is the only data I need to transfer, things like the java.net mailing list are of little/no interest.   How do I transfer the SVN source to Git whilst preserving the history What should I do about the JIRA issues ?


How to find the sum of the following infinite series?  $$\frac1{2 \cdot 3 \cdot 4}+\frac1{4 \cdot 5 \cdot 6}+\frac1{6 \cdot 7 \cdot 8}+\cdots$$  I can write its partial sum but am unable to proceed.


I am running Ubuntu 20.04. I'm getting this error while trying to upgrade to Pop!_OS. After this operation, 399 MB of additional disk space will be used. Do you want to continue? [Y/n] y Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 224343 files and directories currently installed.) Preparing to unpack .../pop-gnome-initial-setup_3.36.1~1612193315~20.04~43 67c76_amd64.deb ... Unpacking pop-gnome-initial-setup (3.36.1~1612193315~20.04~4367c76) ... dpkg: error processing archive /var/cache/apt/archives/pop-gnome-initial-s etup_3.36.1~1612193315~20.04~4367c76_amd64.deb (--unpack):  trying to overwrite '/usr/lib/gnome-initial-setup/vendor.conf', which is  also in package gnome-initial-setup 3.36.2-0ubuntu2 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/pop-gnome-initial-setup_3.36.1~1612193315~20.04~4 367c76_amd64.deb


Since when has "J" been sounding like [dʒ] and no longer "Y"

There are words that have "j" where in most languages it would be pronounced like romaji "y".  Take for example "Jesus", "Jehovah", "John". It should be pronounced "Yesus", "Yehovah", "Yohn".  Slavic languages and Esperanto have "j" sound like romaji "y" so if you'd write "Jessica", it would be pronounced "Yessica". Now, why isn't that in English? Why does also in Spanish "j" sound like "h"? How did this transformation start?  Also, why is "halelujah" not written like it's pronounced: "haleluyah"? Ironically "trojan" is not just an English word, but a Croatian word too that sounds like "troyan". Why is the "j" there if it sounds like "g" and not "y"? Why isn't "Troy" "troj"? I'm so confused! When is it "j" and when is it "y"!?


Why do I find no clear answer for the log term in Shannon's theorem?

The explanations about Shannon's theorem speed up all of a sudden when they should tell us why he introduced the log term. They usually range from 'it's useful' to 'it's because there are two choices, then log2 is suitable'. Am I right in thinking that what the log does is 'give a context' to the probability you are measuring the entropy of? If 0.125 was one of two outcomes it's different than if it was one out of ten. Hence, choosing different logs puts this specific option (0.125) in the right ballpark. Am I correct? And is there a more formal proof for this (maybe for the use of log in probability in general). thanks!


What personal food can cross land border from Canada to the USA?

I am crossing the border from Canada into USA with a cooler full of personal food.  After reading  document, I am not fully clear about the restrictions.  I am bringing some processed pepperoni, that I think only contains pork. I am bringing unlabeled fruit, as well as cooked hard boiled eggs. The other contents of my cooler are explicitly allowed.   Will I have any trouble crossing the border? I really hate border stops setting my timelines back.


How to see if certain representation of $SU(2)$ is symmetric/antisymmetric/mixed?

I am looking at the tensor product of $n$ spin halfs (fundamental of $SU(2)$): \begin{equation} \left(\frac{1}{2}\right)^n = \frac{1}{2} \times \frac{1}{2} \times ... \times \frac{1}{2} = \frac{n}{2} + ... \end{equation} For example, for $n = 3$ \begin{equation} \frac{1}{2} \times \frac{1}{2} \times \frac{1}{2} = \frac{1}{2} \times \left(1 + 0\right) = \left(\frac{3}{2}\right)_1 + \left(\frac{1}{2}\right)_1 + \left( \frac{1}{2} \right)_0 \end{equation} where lower indexes on the right hand side specify from which tensor product representation came from. My question is how do I read off if a certain term on the right is a symmetric, antisymmetric or a mixed symmetry representation of $SU(2)$? I came up with two ways of approaching the problem.  First is Young Tableaux. As far as I understand rows of Young Tableaux correspond to symmetric indexes while columns to antisymmetric ones. So, for example, a diagram with just one row (like one that corresponds to the highest spin $\frac{3}{2}$ from the example - three boxes in a row) describes a totally symmetric representation. A diagram that has one column (maximum 2 boxes since we are dealing with $SU(2)$) describes totally antisymmetric representation. Everything that has both rows and columns is a mixed symmetry representation. Following this logic it looks like only the highest representation in the product can be totally symmetric, singlet is antisymmetric and everything in between has mixed symmetry. So, for the example \begin{equation} \left(\frac{3}{2}\right)_1: \text{symmetric rep}\\ \left(\frac{1}{2}\right)_{0,1}: \text{mixed symmetry reps}\\ \end{equation} Is this is a correct logic?  Another way to think about this is the following. Let's build representation the way we do in QM starting from the highest one, when all the spins are up. Then all components of the highest multiplet can be generated by applying lowering operators to the highest state. So, all the relative signs in the expressions are "+" and thus the highest representation is always symmetric as 1. also suggests. Then all the other representations must be constructed by writing down expressions orthogonal to components of the highest multiplet, so they will necessary get some "-" signs and as a result must be either antisymmetric or have mixed symmetry, but can not be totally symmetric.   Is this correct logic? Is it true that only the highest representation in the product can be symmetric and all the others have mixed symmetry or antisymmetric?


I have two Gmail accounts: a personal and a business one. I recently revised my passwords. Things went well. Suddenly Google refuses my passwords. I go through the security steps, but they all require that I access my account with a password, which does not work, or verify my identity with a password. I'm boxed out. How can I fix this?


I know that to learn and to study work differently in non-continuous tenses. I learnt English doesn't mean I studied English. But what about the present? I hear people say "I learn English every day". Does it make sense? Or should it be "I study English every day"? Does the sentence with "learn" sound as if I learned all of the English language but forgot it during the night and learned it again the next day?


I am working on a legacy android codebase which uses OpenCV4Android using the NDK. A particular class of problems I have are of this form :   The ndk c++ method calls an OpenCV function. The opencv function has a CV_Assert (a subclass of std::exception) which fails and throws an exception. The c++ method doesn't catch the exception - but the calling method of the c++ method which called the opencv function handles the exception by logging a message.    The problem is that I don't get information about the method which calls the opencv function. Putting this method in a try catch block is an option but there are a lot of calls like this and I am looking for an alternative.  Void foo() { libfun() // this throws exception .. libfun() .. libfun()}  Void bar() { Try{  Foo()  }  Catch(Exception e)  { Log}


APA6 Class: Manual line-break using "\\" or better solution?

I am writing my master thesis using the APA6 class (see MWE below). I am not a Latex expert and have used \\ as a manual line-break from the beginning. Now I read in a comment to a different topic that you shouldn't use \\. Could you explain this and suggest a better solution for line-breaks in my thesis?  MWE:          \documentclass{apa6}     \begin{document}     Lorem ipsum dolor sit amet, consetetur sadipscing elitr.\\ At vero eos et accusam et justo duo dolores et ea rebum.     \end{document}


D-Link DWA172 (ID 2001:3318) not working

So I followed the steps here:  I always fail on the installation, here is the process: sudo apt-get install git build-essential linux-headers-generic git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git cd rtl8812au  No problem here, I installed everything at their latest version, cloned the driver in my Documents folder and "cded" on it; Added the magic string in os_dep/linux/usb_intf.c under #ifdef CONFIG_RTL8821A section (after /*=== Customer ID ===*/); {USB_DEVICE(0x2001, 0x3318),.driver_info = RTL8821}, /* D-Link DWA-172 */  And then I do: make it spits out some gibberish (much gibberish), and then sudo make install, this is what I get: install -p -m 644 rtl8812au.ko  /lib/modules/5.4.0-42-generic/kernel/drivers/net/wireless/ /sbin/depmod -a 5.4.0-42-generic And theeen i do sudo modprobe 8812au and this is the result: modprobe: FATAL: Module 8812au not found in directory /lib/modules/5.4.0-42-generic  In one comment in the post I was referring this whole time somebody said that he had to do sudo modprobe rtl8812au instead of 8812au only, when I do that it doesn't say anything and I am immediately able to write again on the cli, so I thought that I won, but then after the reboot nothing happened, not even running again modprobe rtl8812au. Any help would be amazing, thanks.


Code: #include <iostream>  class Foo{         int t;     public:         Foo(int t=0):t(t){}         void show(){             std::cout << t;         } };  void Func(Foo foo){     foo.show(); }  int main(){     Func(0);     return 0; }  Output: 0 So apparently when I pass an integer to a function that's supposed to take a Foo type argument, it somehow converts it to Foo(and even takes the integer as a constructor parameter) and works fine. I guess it has something to do with the way constructor works, but I really don't understand why it works that way. I researched a lot but couldn't find anything about it. Any thoughts?


Alternatives to escape(), encodeURI(), and encodeURIComponent() for use in URLs

I am working on a random quote machine and am trying to add a button that tweets the quote displayed on the screen. I can get it to work for basic quotes using encodeURI() but some of my quotes have special characters like brackets, colons, and semi-colons.  I've tried escape(), encodeURI(), and encodeURIComponent(), but none of these work with these characters. Here is what I have for the twitter button (content is the variable that contains the quote I want to tweet). How can I tweet quotes with these special characters?  $("#twitter-share").click(function(){   window.open('https://twitter.com/intent/tweet?text="' + encodeURI(content) + '"', '_blank');


Android, change title of Menu item programmatically

i want to change some titles out of my Activites programmatically. I have some items like  "Show/Hide something1" "Show/Hide something2"  And now i want to change the text to:  "Show something1" and do some action, and change the text of this Menu item to:  "Hide something1" .....     i test this Solution, and get a null Pointer   My Layout:  <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:universal="http://schemas.android.com/apk/res-auto">      <item         android:id="@+id/menu_1"         universal:showAsAction="never"         android:title="Show/Hide Something1" />      <item         android:id="@+id/menu_2"         universal:showAsAction="never"         android:title="Show/Hide Something2" />  </menu>   And my Code:  @Override     public boolean onCreateOptionsMenu(Menu menu) {         // Inflate the menu; this adds items to the action bar if it is present.         getMenuInflater().inflate(R.menu.rallye_menu, menu);         MenuItem item=menu.getItem(R.id.menu_1); // here itemIndex is int         item.setTitle("YourTitle");         return true;     }      @Override     public boolean onOptionsItemSelected(MenuItem item) {         switch (item.getItemId()) {             case R.id.menu_1:                 // do some action                 return true;             case R.id.menu_2:                 // doe other action                 return true;                 default:                 return super.onOptionsItemSelected(item);         } }   Got this Error:  Process: com.packagename.foo, PID: 12441                                                                           java.lang.NullPointerException: Attempt to invoke interface method 'android.view.MenuItem android.view.MenuItem.setTitle(java.lang.CharSequence)' on a null object reference                                                                               at com.sherdle.universal.rallye.MainActivity.onCreateOptionsMenu(MainActivity.java:646)  in this line: MenuItem item=menu.getItem(R.id.menu_1)  Need help :)  EDIT: found another Solution:  but does not work


A complex analysis problem to prove an inequality

$\textbf{Problem.}$ Suppose $f$ is a holomorphic function on $\{z\in\mathbb{C}:|z|<1\}$, the open unit disk, with the property that Re$f(z)>0$ for every point $z$ in the disk. Prove that $|f'(0)|\leq 2\text{Re}f(0)$.  This is a problem that appeared on a qualifying exam in some graduate school. What I tried is, define $\displaystyle\varphi(z)=\frac{z-1}{z+1}$, then this sends the open right half plane onto the open unit disk, so let $\hat{f}=\varphi\circ f(z)$, then its image is contained in the open unit disk. And I wanted to use the Schwarz lemma, but then the origin had to be fixed, so define $\displaystyle\psi(z)=\frac{\hat{f}(0)-z}{1-\overline{\hat{f}(0)}z}$ and let $\tilde{f}=\psi\circ\hat{f}$, then the image of this is still contained in the open unit disk and it fixes the origin so the Schwarz lemma $|(\tilde{f})'(0)|\leq 1$ could be applied. But after all the calculation, I got $$|f'(0)|\leq\frac{|f(0)+\overline{f(0)}+2|f(0)|^{2}|^{2}}{2|f(0)+1|^{2}|f(0)|}$$ but, for example, if the magnitude of the imaginary part of $f(0)$ is quite bigger than the magnitude of the real part of $f(0)$, then this doesn't result the desired inequality but actually means that the desired inequality is wrong instead. I also thought about composing some different function to the RHS of $\hat{f}$ and use the Schwarz lemma but it didn't seem to work.  Maybe I should try something else, but what could be tried instead?