Let $M$ be a module. Show that if $M$ is not Noetherian then $M$ has a submodule $N$ such that $N$ is not finitely generated whenever $N<A\leq M$.  The question is related to , which only ask about first part of the solution(Zorn's Lemma), but I doubt that it implies the result in an obvious way. Please be aware that is different from my question, we can view that the above question is part 1 and my question is tring to find part 2 of the proof.  The first part of the solution is copied as following:     Let $Y$ be the set of non-finitely-generated submodules of $M$. If $(N_α)$ is a chain in $Y$ then $Q=\bigcup_{\alpha} N_α$ is in $Y$ (else $Q$ is f.g., which implies $Q=N_α$ for some $α$, whence $N_α$ is f.g., contradiction.   Then please complete the proof.

I'm answering this question:     Let $M$  be a module. Show that if  $M$ is not Noetherian then $M$ has a submodule $N$ such that $N$ is not finitely generated but $A$ is finitely generated whenever $N < A ≤ M$.   The solution starts as follows (I'm following a given solution): Let $Y$ be the set of non-finitely-generated submodules of $M$. If $(N_α)$ is a chain in $Y$ then $Q= \bigcup_αN_α $ is in $Y$, else $Q$ is f.g., which implies $Q=N_α$ for some $α$, whence $N_α$  is f.g., contradiction.  I don't understand why if $Q$ is f.g., then $Q=N_α$ for some $α$? Am I missing some fact?  Thanks!


When using an original quote in a document that already includes [] square brackets, how would that be set apart showing that it is the original quote if it already contains the square brackets. What punctuation should be used?

I have a question. If I am quoting a quote which has square brackets in it already, but I want to add square brackets because there are spelling mistakes so I want to add "[sic]". Do I just add it to the quote or do I change the square brackets in the quote?


I'm new to Ubuntu Environment. I'm using Ubuntu 16.04.3 LTS. I'm learning Web Development my own. I heard some good words about using Linux for Web Dev. So I just dual boot my Windows laptop with Ubuntu. After installation and software update. I visit atom.io to install Atom Text Editor. I downloaded the .deb file. I clicked on it and it took me to Ubuntu Software. I clicked on Install button but nothing happened.

I'm unable to get Atom text editor from the Software Center. When I try I get this error:  Package does not exist. Check the spelling of the package name, and that the appropriate repository is enabled.


, and I have discovered the files kbd_backlight and kbd_backlight_timeout in /sys/devices/platform/sony-laptop. Both say '-1' when opened in gedit. What values can I change these text files to, what do these values mean, and where do you go to learn such information?  A comment below indicates .

I installed Ubuntu 12.04 on my Vaio laptop (model VPCSB11FX) last night and one of the issues I'm having is that the keyboard backlighting doesn't work.  I saw  solving a similar problem for 11.10, but the solution suggested there isn't available to me: /sys/devices/platform/sony-laptop/kbd_backlight doesn't exist on my machine.  Is there anything else I can do or try?


I have read from several sources but I didn't fully get it (a similar question was asked in StackExchange  but the answer is not satisfying for me). I have still some questions waiting for the answers. I am referring to specifically the "nodesize" parameter in Braiman's RandomForest package in R.   I understand in general terms, it's a parameter which controls the depth of the tree implicitly, but I am confused when it comes to the details.  In RandomForest package document:     Minimum size of terminal nodes. Setting this number larger causes smaller trees to be grown (and thus take less time). Note that the default values are different for classification (1) and regression (5).   1) What does the "minimum size of terminal nodes" means?  2) Does the nodesize to be 1 for classification mean to split the nodes until the division results in only 1 node, in other words, until the node is pure?  3) If the nodesize 5, the minimum terminal nodes condition cannot be satisfied using a factor attribute which has only 2 levels. Because split using 2-levels-factor attribute results in two leaves at maximum.   I expect you correct where I am wrong.

I do not understand exactly what is meant by node size.  I know what a decision node is, but not what node size is.


I wold like iterating over recordtype in loop. And also I want to change its values sometimes.   In dict for instance it is very easy  some_dict = {} for key, value in some_dict.items():     if not value:         some_dict[key] = 0   I would like to do same in recordtype.  I tried the following cases:  for name in data._fields:     data[name] = 0     p = data.__getattribute__(name)     if not p:          p = 0          data.name = 0   or  for name_field, value in data._asdict().iteritems():     if not value:         data = data._replace(name_field=0)   And none of them are working..  inspired by  I thought it is easy, but what if I do not exactly know what field in recordtype I must change because it depends on if-statement.   So the question is: how to iterate recordtype and after if-statement change some filed ...?  Thank you in advance!

Suppose I have a python object x and a string s, how do I set the attribute s on x? So:  >>> x = SomeObject() >>> attr = 'myAttr' >>> # magic goes here >>> x.myAttr 'magic'   What's the magic? The goal of this, incidentally, is to cache calls to x.__getattr__().


On lottery there are $100$ losing tickets and $20$ winning tickets. We draw with return, until we draw winning ticket. How many times on average do we have to draw to get winning ticket? What's the standard deviation?   So its obviously geometric distribution (Bernoulli) Chance to draw winning ticket is $\frac{1}{6}$ I can put it into the formula but I don't know how to calculate the average. What am I supposed to put as random variable $i$? $P(X=i)=(1-\frac{1}{6})^{i-1}\frac{1}{6}$ Answer: Formula for computing the expected value of a geometric distribution = $\frac{1}{p}$ $p=\frac{1}{6}$ $\frac{1}{\frac{1}{6}}=6$ 6 times on average untill we draw winning ticket.

Suppose we flip a coin until we see a head. What is the expected value of the number of flips we will take?  I am pretty new to expected value, so I tried to evaluate it by multiplying the probability of each scenario with the number of flips it took to get there (like taking the arithmetic mean). This didn't work though, because of the infinite possibilities. I'm really confused, and if someone were to provide an answer, I would really appreciate it if they could go into detail.


Thanks for your time. I want to compare accuracy of several predicting models. I am comparing their MAE. each model use same all or some predictors. Which approach is better MANOVA or repeated measure ANOVA? Why?

What is the difference between a repeated measures ANOVA over some factor (say experimental condition) and a MANOVA? In particular one website I stumbled across suggested that MANOVA does not make the same assumption of sphericity that repeated measures ANOVA does, is that true?     If so, why would one not just always use MANOVA?   I am trying to conduct a repeated measures ANOVA with multiple DVs, what is the appropriate approach?


Some dictionaries say "in back of" means "behind" in American English, as in "there is a garage in back of the house."   There are also dictionaries that say "in back" means "at or in the back", as in "there are three kids sitting in back", presumably in reference to a vehicle.  I'm wondering whether "in back" without "of" can mean "behind", as in "can you see the garage in back?".  I'd appreciate your help.

What's the difference to these expressions, as in "The little girl was hiding in back of the tree" vs. "The little girl was hiding back of the tree" vs. "The little girl was hiding behind the tree"?  In addition, do "in back of" and "back of" have any currency in AE today? Plus, are these idioms safe to use for all proses, even the most formal one?


I'm using eclipse + Android SDK.  I need to round a float value to 2 decimals. I usually use the next "trick" using Math library.  float accelerometerX = accelerometerX * 100;     accelerometerX = round(accelerometerX);     Log.d("Test","" + accelerometerX/100);   But I feel it is not the best way to do it.  Is there a library to do these type of operations?

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


I am a bit confused on how can I handle heapsize to avoid getting a system exception. Based on the below scenario, if I run following script List<Attachment> attLST = new List<Attachment>(); Integer count = 0; for (Attachment a: [SELECT Id,                     Body,                     BodyLength,                     Name,                     Description,                     ParentId                     FROM Attachment]) {     count++;     Attachment att = a.clone();     att.Name = 'Cloned-' + att.Name;     attLST.add(att);     System.debug('Count: ' + count + ', Body Length: ' + a.BodyLength + ' - ' + a.Name);     System.debug(Limits.getHeapSize());     System.debug(Limits.getLimitHeapSize()); }  the logs looks like this, breaking in 111 from 140 in total.  The first row of the loop shows me:  My question is: if the heapsize is 6000000, why it doesnt break on the first record? considering that at that moment the heapsize at that moment based in my logs is already a little bit over 11 times the limit? why it breaks when it has loop 110 times and the heapsize is already 20 times the limit?

i just made a test, to see how much data i can put in a string before i reach the the heapsize limit and i get an unexpected behaviour   string  csvFile = '"XXXXXXX","XXPX XXRXXXX","XXPX BP","XLXXXXR","XXXXVXXX PRXXXDXXXX","XXPX XXXXVXXX","XDRXXXDXX LXGXLX","XXXXRX XXLX","LXXXX XX","DXXX XXXZXX XXXXVXXX","DXXX XXXX XXXXVXXX","XXDXXX BP","XXDXXX XXXXXLX","PXRXXXX XVX","DXXXXXXXZXXXX","XXXX XXRXXXXRX","XXGXXXX XXRXXXXRX","DXXX DX XXXXXXX","LXXGX DX XXXXXXX","PXD","XXXXX XXXXRXXXXXLX","XXXX RXXXPXXX","XXDXRXZZX RXXXPXXX","PRXVXXXXX RXXXPXXX","XXXXXX RXXXPXXX","XXP RXXXPXXX","XXXXRX XXLXXXXX 1","XXXXRX XXLXXXXX 2","XXXXRX XXX","XXDXRXZZX XXXXL","XXDXRXZZX XXRXXXXRX","XXXXXX XXRXXXXRX","PRXVXXXXX XXRXXXXRX","XXP XXRXXXXRX","XXXXX XLXXXXX","XXDXXX PRXXXXX","DXXX XXXXXZXXXX","XXPX DXXXXXXXX","XHXXVX XXXXXRX","DXXX XXXXXXXXX XXXXXRX","DXXX XXXDXXZX XXXXXRX","XXPXRXX XXXXLX","XXPXRXX RXXXDXX XXXXDXXX","PRXXXXXXXXXXXXXXZXXXX PRXXXXXXXXXX","DXXX PRXXXXXXXXXXXXXXZXXXX PRXXXXXXXXXX"';  string  csvFile2='',csvFile3; system.debug(limits.getLimitHeapSize()); system.debug(limits.getHeapSize()); for(integer i=0;i<3618;i++){ csvFile2+='\n'+csvFile; }   system.debug(1.0*limits.getHeapSize()); system.debug((1.0*limits.getHeapSize())/limits.getLimitHeapSize()*100);   with 3618 iteraction i get    Heap size 3001245.0 Which correspond to ~50% of the heap size limit in the Synchronous context   but if i go to 3619 iteractions in the for, i get the error "Apex heap size too large: 6001368".... which surprise me a lot...   I'm not getting out why this behaviour is occurring. Do you have any similar experience? There is a reason for this?  Seems more about limits on strings, in effect the string csvFile2 overcome 3M characters... but i dont know


It’s my turn. It is a two handed game. There is only one card left in the Stock pile. (In two handed canasta, the rule is "if a player draws from the stock, they must draw two cards instead of the normal one") Can I pick up the one card and play my hand or is the game over.

It’s my turn. It is a two handed game of Canasta. I have three cards left in my hand. There is only one card left in the Stock pile. Can I pick up the one card and play my hand?


How to solve the equation $$a^b = b^a$$ if $a ≠ b$. It doesn't have any whole solutions, but are there no solutions at all? And how to prove that?  Any help is appreciated.  Edit: Thanks to Henry & Bernard. It is correct that (2,4) is a solution, but is it the only one? Irracional solutions maybe?

Find the all possible real solutions of $$x^y=y^x$$ $x,y$ both are real numbers.  My attempt:I observed the following solutions  $x=2,y=4$  $x=4,y=2$  $y=x$  Is there any other possible solutions?


I've just had a  and failed it. I wanted to downvote it and then comment, since I had seen that exact question awhile ago, and the answer I had to review was mentioning the exact same approach as what I clearly remembered as the top answer, if not top answers, except it was way less complete than the answer I clearly remembered. I wanted to downvote it for lack of originality (using the same tactic as all the other answers) and I wanted to comment explaining that. I also made sure to check the timestamp, and it said 10 minutes ago.  I'd like to know, is it bad if you don't pass an audit? Also, has anyone else ever been in a situation like this at all?

I recently received this rather amusing message while reviewing a user's first post:  Congratulations! This was only a test, designed to make sure you were paying attention. This post has already been removed, but thanks for taking time to leave feedback for the author.   What is the purpose of this test? How does the audit work? What happens if I fail? Why was the system expecting me to negatively review a good post, or positively review a bad post? A review is obviously an audit. Should I report it? Do review audits count toward the Reviewer badge? Do robo-reviewers dream of electric sheep?


In my , there are few questions with zero favorites.     This is something strange to me. As my knowledge I didn't favorite those questions, so we can't blame caching.  I can see this zero favorites questions in other user's network profile too.

I've noticed that  on Math SE is listed , but not for Math SE account.  I don't recall ever favoriting it, except when I tried favoriting it and unfavoriting it to get rid of it (this did nothing), so I believe it should not be listed as a favorite under any of my accounts (the question also says 0 users have marked it as a favorite). Is this a bug?  If not, what is going on? Note:  (now deleted) since I originally thought is appeared as a favorite on my Math SE account, but I didn't get any answers.


I have a "Windows Server 2008 R2" with the "IIS7.5" and stumble now, when it comes to the topic of SSL: IIS7 does not support SNI.   How can SNI be retrofitted or alternatively how can I install "IIS8" (which does support SNI) on WIN2008R2?  Here what I want in bullet points:   IIS7.5 SNI retrofit?   or how can I   IIS8 Install on WIN2008R2?

On IIS 7.5 I am trying to achieve this with two websites:  Default Web Site is bound to:  (blank host header port 80 - http) (blank host header port 443 - https) go.example.com www71.example.com the IP address of go.example.com  2nd web site "Beta" is bound to:  beta.example.com (blank host header port 443 - https) * using blank only because it doesn't seem to be possible to    bind https to a named host header   And both need to work with SSL.  But I have these problems:   When I type in beta.example.com, I see the go.example.com site instead I can not seem to add the SSL binding to both websites at once (I have a single *.example.com wildcard certificate).  The beta site will not even start if I add the https binding to it.   This is how I have set it up:    What is the correct way to set it up?


I was trying to install the rt8188eu drivers for my USB adapter and while trying to enable the module which I cloned from git, through modprobe sudo modprobe 8188eu it was throwing me a exec format error. While doing insmod 8188eu.kosuccessfully installed the module and my device is working perfectly.. Could anybody point out to me the differences between the two commands

Are there any differences between insmod and modprobe?


I understand the reason for the massively negative feedback to this question. It's not a Stack Exchange bug, I agree. I don't care about the bug, I just wanted to draw attention to it. I thought SE would be a more pleasant place to be if a little workaround was implemented. I thought the SE community enjoyed improving the site in tiny little ways like this...  The issue is that I use FireFox with Adblock Plus and it makes the text appearing below every unanswered question in stackoverflow.com look like this      Know someone who can answer? Share a link to this question via email, , , or .    instead of like this     Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.    Maybe it's possible to detect whether browsers use ad blockers, and change the display accordingly?

The list has several empty strings in it for me right now:


If I want to write for example "Mr. K". I don't want to use just a single letter. Should I write it like "Mr. Kei", "Mr. Kay" or "Mr. Key"?  Update:  Let us imagine there was somebody with name Mr. King given at birth. He doesn't like his surname, but he likes when others address him as "Mr. K". So, he wants to change his surname. But he doesn't want to use just a single letter - it is too short. So is "Mr. Kay" the right way for his purpose?

The English alphabet has a common pronunciation. For example, the letter b is pronounced like the word bee, the letter c like the word see, and the letter i like the word aye.  Is there a formal spelling for the letter names?


Just came across this  (soon to be deleted, don't be surprised to find it gone) It says there:  I then turned to the profile of the OP, there it says:  How is that possible? (and yes, I refreshed the pages)

I've noticed this phenomenon a few times before: find a question that was posted 10 minutes ago, look at the questioner's profile.  Last seen 20 minutes ago.  Does updating last seen happen asynchronously with posting a question?  How long might the lag be?  I'm reluctant to , since the phenomenon is probably short lived, but I just noticed it there.  Here are screen images as of this writing...  On the question:        In the profile, clicked a second later:


Does anyone know if the 2017 5K 27' iMac can support 3 external monitors? Mine is with Radeon Pro 580 8GB graphics, and can't make it work with 3 external monitors. Spec:  Retina 5K, 27-inch, 2017 3.8 GHz Quad-Core Intel Core i5 64 GB 2400 MHz DDR4 Radeon Pro 580 8 GB  My setup:  2 x 1080p 24' HP monitors connected with hdmi cables to a thunderbolt 3 hub which is connected to 1 of the 2 thunderbolt port in my iMac 1x LG ultrawide 29 connected with a USB C to HDMI cable to the other thunderbolt 3 port  The hub, cables and monitors are all working fine. However the 3 external monitors can't be used simultaneously, only 2 can be supported each time. Tried to disconnect and reconnect all the monitors with different orders, the last one (LG or HP) will always show "No Signal". Is it because the iMac 2017 can only support up to 2 external monitors due to hardware / graphic limitation? Is there any configuration I can do to make it work? Regards.

How do I find out the number, type, resolution & refresh rate of additional monitors I can attach to my MacBook or MacBook Pro?  This is an attempt at a canonical QA, as per the Meta QA -   to try prevent the myriad "same but different" questions we get on every possible combination of computers, cable & monitors There are perfectly good resources out there that Ask Different should not have to duplicate the efforts of.


What I am trying to do is add a section the website that automatically assigns a department to a product when an administrator creates a product. For example, if I create a "t-shirt" product then it gets assigned the the "shirts" department.  I need to get the tables connected in the db so that when a department is loaded, all the associated products show up. When I run a join between the two tables this is what I am running:  select d.Name, p.Name        from products p         inner join departments d on p.Id = d.Id   And I'm getting my only two products which I've manually assigned a department.   Can I get some help with what I need to do next to get every product automatically associated with a department?

the two bits of SQL below get the same result  SELECT c.name, o.product   FROM customer c, order o   WHERE c.id = o.cust_id   AND o.value = 150    SELECT c.name, o.product   FROM customer c   INNER JOIN order o on c.id = o.cust_id   WHERE o.value = 150   I've seen both styles used as standard at different companies. From what I've seen, the 2nd one is what most people recommend online. Is there any real reason for this other than style? Does using an Inner Join sometimes have better performance?  I've noticed Ingres and Oracle developers tend to use the first style, whereas Microsoft SQL Server users have tended to use the second, but that might just be a coincidence.  Thanks for any insight, I've wondered about this for a while.  Edit: I've changed the title from 'SQL Inner Join versus Cartesian Product' as I was using the incorrect terminlogy. Thanks for all the responses so far.


Edit:  I have confirmed that my main question is answered in another post. But there are still things that bother me.   Why is there a buzzing sound when the bulbs work? The new bulbs do not light up in another bathroom with the same kind of dimmer switch. Why is that?   I understand these questions are tough nuts to crack without certain details that might be hard to obtain. For example, it might be hard for me to dismantle the existing switches and look under the cover or to know the brand/model of the switch.    I just replaced my bathroom light fixture bulbs with newly bought bulbs (LED, A19, 40W equivalents). What I get is a head-scratcher: the bulbs light up dimly as soon as I screw them on and the switch is off. If I push the switch on, the bulbs function normally, but with a noticeable buzzing sound. Looks like this:    I am trying to figure out if there is something wrong with the new bulbs or the circuit. This is the box that the new bulbs came in.    My previous bulbs are of the same brand and the same kind (LED) but a higher wattage. My money is on that this has something to do with the switch. Most of my switches have a dimmer and a little LED that helps locate the switch in the dark. Does this mean I will have to go back to my old bulbs? Do I need to worry about the circuit?

I have two LED lamps in my corridor, and when I switch them off, they keep emitting light (not very strong, but it's annoying at night).  What can it be? How can I fix it?


A SO style site for math questions seems like it would do well.  It would be a helpful place for questions like  one about the probability of rolling a certain dice combination.  Is there any chance that a math related site will be opened?

I have an idea or subject that should have a Q&A, and want to propose a new site. How can I do this?  Related:


I am getting error as      "This page has an error. You might just need to refresh it. Error in   $A.getCallback() [Cannot read property 'setParams' of undefined]   Callback failed:   apex://QuickCreateOppCtr/ACTION$creatOpportunityRecord Failing   descriptor: {c:QuickCreateOpp}" after saving record.   Record is created but not redirecting opportunity detail page from Account list view but it is redirecting from account detail page  Below is the lightning component controller.  action.setCallback(this,function(result){             component.set("v.isShow",false);             //component.set("v.objDetail.AccountId", component.get("v.recordId"));             //alert('component.get("v.recordId") ---->' +component.get("v.recordId"));             var oppId = result.getReturnValue();             alert('Opportunity is created. oppId -->'+oppId);               var navEvent = $A.get("e.force:navigateToSObject");          navEvent.setParams({               recordId: result.getReturnValue(),               slideDevName: "detail"          });          navEvent.fire();          });         $A.enqueueAction(action);

I am trying to use the "navigateToSObject" to redirect to the detail page. But the method $A.get("e.force:navigateToSObject") is always returning null. I dont have a namespace. SO this isn't namespace related issue I assume.  Here is the code of my component  <aura:component > <aura:attribute name="contactName" type="String"></aura:attribute> <aura:attribute name="lastName" type="String"></aura:attribute> <aura:attribute name="cid" type="String"></aura:attribute>

{!v.lastName}

{!v.contactName}

{!v.cid}

 </aura:component>   Here is the code of my java-script controller      ({     navigateToRecord : function(component, event, helper){         var cid=component.get("v.cid")        console.log('inside navigateToRecord '+cid);       var navEvent = $A.get("e.force:navigateToSObject");        navEvent.setParams({         "recordId": cid,            "slideDevName": "detail"     });      navEvent.fire();  } })   I am getting null in navEvent hence am not able to set parameters into it. The error is "Uncaught error in $A.run() : Cannot read property 'setParams' of null"


I wanted to install arm-none-eabi-gcc and I have encountered the above error. I know that the problem is generic and I need to read lines above that message but after analyzing error lines I still do not know what to do to solve that issue. Here are error lines maybe anyone would be able to help me.   Unpacking gdb-arm-none-eabi (7.6.50.20131218-0ubuntu1+1) ... dpkg: error processing archive /var/cache/apt/archives/gdb-arm-none-eabi_7.6.50.20131218-0ubuntu1+1_i386.deb (--unpack):  trying to overwrite '/usr/share/man/man1/gdb.1.gz', which is also in package gdb 7.7.1-0ubuntu5~14.04.2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Errors were encountered while processing:  /var/cache/apt/archives/gdb-arm-none-eabi_7.6.50.20131218-0ubuntu1+1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

For example:  $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies.   Try 'apt-get -f install' with no packages (or specify a solution).   I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages.   When I try the suggestion made in the error message, this is what happens:  $ sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   libjline-java Suggested packages:   libjline-java-doc The following NEW packages will be installed:   libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack):  trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing:  /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies:  bsh : Depends: libjline-java but it is not installed  groovy : Depends: libjline-java but it is not installed  rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.


Good day to all,  I am an Indian citizen working and living in Germany, and would like to visit the UK for the Christmas holidays. My question is regarding the translation of the supporting documents. Since I live in Germany, all my documents are in German.  Of course, it would cost me an awful lot of money to translate all the documents from German to English. Hence, I would like to know if anyone have the experience of attaining a UK visa from Germany, and if yes, what documents were translated.  Following is the list of documents which I plan to submit in the order of priority:   Work contract (I will translate this). Salary slip (I will translate this too). Bank statements (this would rip me off, if I attempt to translate, as it is around 10 pages). Apartment contract (it is also 5 pages, which is a no-go for translation). City registration (also an additional document, means more translation costs).   If anyone could throw some light in this issue, it would be a huge help for me.  EDIT:  So I applied for the visa.  Here is what I submitted, and the experience of the visa application. First of all, thanks a lot to all those who provided valuable suggestions - @simbabque, @phoog  I submitted following 1.Passport and visa(german) 2.Work contract (German original and English translated) 3.Salary statement(German orignial and English translated) 4.Bank statement (in German WITHOUT translation) 5. City Registration (in German WITHOUT translation)  One caution to all who apply in Germany : The visa application centre has no role in providing any help on which documents to submit. You have to decide yourself and give them all what you think is necessary for the application success. The application centre just takes all the papers that you give, put them in a cover, and send it to the UK. They do not review, do not ask for any document. This is entirely our personal responsibility. It is also well stated by them. So in the end cannot blame anyone if you are not well informed with the process.  I received the visa after two weeks.  Here is my conclusion. As long as the embassy is convinced that your application is genuine, there is no issue with the visa application process. I found the entire process quite straight forward and logical.  I decided to translate work contract and salary statement, as an Officer reading the document in German clearly would have no clue as to what is written in the contract, or what the numbers mean in the salary statement.  For the bank statement, it is very easy to skim through it and clearly see the monthly incoming of the salary and the expeditures. This , according to my logic did not need a transaltion, and I was proven right!! Also, the city registration document, is to verify the address of your stay. Here I took a chance, but as long as you have the same address in all other documents submitted by you (german visa, bank statement, work contract, salary statement) , this is clearly enough.  I did not book any flight, nor submit any flight details.  This also does not make any sense , without having the visa.  Just for credibitlity of my intended dates of travel, I booked a hotel, with an option to cancel any time. Also I submitted a short itinierary of what I plan to do during my visit(this is inside the application).  All in all, the visa application is quite straight forward and logical, as long as you stick to their requirements.   I wish all good luck pursuing the same.  Now I am looking forward to my visit in the UK for the Holidays.  Cheers Everyone!!

I am an Indian living in Italy and I am going to the UK for a leisurely family vacation for about 10 days. Please note, this application is not very straight forward. There are four applicants, one applicant is applying from India another two are applying from Singapore and I am applying from Italy. The checklist at the top has the statement  all documents must be in English translated documents must be certified  I got the proof of accommodation from my commune, but it is in Italian. Getting it translated, isn't such a big deal as the commune itself provides multi-lingual certificates. For the rest of the documents, this is an issue. Such as for "Evidence of being in education", my university provides an online certificate for this purpose which is in Italian. Multiple acquaintances said that they provided their Italian house contract (in Italian) as proof of residency and no requirement came up for translation. Can anyone comment on how strict are they while enforcing the translational requirements of documents in respect to a short term visitor visa?


I would like to synchronize two Bash scripts via a file lock. How to do this? Zsh has zsystem flock call, but is there a more "shellish" method that's also available to Bash?

I have a bash script that makes a cURL request and writes the output to a file called resp.txt.  I need to create an exclusive lock so that I can write to that file and not worry about multiple users running the script and editing the text file at the same time. Here is the code that I expect to lock the file, perform the request, and write to the text file: ( flock -e 200 curl 'someurl' -H 'someHeader' > resp.txt ) 200>/home/user/ITS/resp.txt  Is this the correct way to go about this?  My actual script is a bit longer than this, but it seems to break when I add the flock syntax to the bash script. If someone could explain how these file descriptors work and let me know if I am locking the file correctly that would be awesome!


I have property return variables and economic variables  in natural log form, which are non-stationary in level and stationary in first differences, but are not cointegrated. To my understanding, this rules out the use of the VECM, and so should I estimate the VAR in levels, first differences or something else? Thanks!

My final goal is to generate Impulse Response Functions in R.  I have variables that are non stationary when I set k = 5 in a Unit Root test, and they are cointegrated which to my understanding prompts the use of the VECM, from which the Vec2Var argument is used to then generate IRFs. However, my response functions from this methodology do not decay over time and mostly do not revert to the zero line.  Furthermore, I noticed that when I input first differenced variables into the VECM as opposed to level data above, response function do revert to the zero line. Therefore my first question is: 1) is it appropriate to use differenced variables in a VECM model?  Secondly, as an alternative I am considering restricting the number of lags used in the Unit Root tests so that the variables are not all non-stationary; in this case 2) would the use of VECM be void and the VAR with first differences be a more appropriate model? Again, using differenced data is giving me better response functions that revert to zero in the long run. However, 3) is it ok to use the VAR for stationary/non-stationary data in levels where these variables are still cointegrated?  Also, I am using growth rate variables, 4) should I still long transform all variables and use logs in all tests?  Thank you for the help!


A right triangle has a hypotenuse equal to 10 and an altitude to the hypotenuse equal to 6. Find the area of the triangle.

In a book of word problems by V.I Arnold, the following appears:   The hypotenuse of a right-angled  triangle  (in  a  standard  American  examination) is 10 inches, the altitude dropped onto it is 6 inches. Find the area of the triangle.  American school students had been coping successfully with this problem for over a decade. But then Russian school students arrived from Moscow, and none of them was able to solve it as had their American peers (giving 30 square inches as the answer). Why?  's the book. I assume the answer is some joke at the expense of the Americans, but I don't get it. Possibly a joke about inches? Anyone?


There is a little bug that becomes visible when a page contains realtime-post-deleted-notification banners (that's the CSS classname of these red banners appearing on answers which just got deleted, see screenshot below) and you try to open the flag dialogue above them:    Obviously, the dialogue appears below the banners, which it clearly should not do. It also has no input focus, trying to interact with the dialogue fails and either closes it (clicking outside of the red banners) or reloads the page (clicking on the red banners).  The cause for this is simply the z-index ordering in the site's CSS. Relevant CSS snippets:  .realtime-post-deleted-notification {     position: absolute;     text-align: center;     z-index: 100; }  .popup {     display: none;     padding: 15px;     position: absolute;     z-index: 10; }   So the fix for this minor bug would probably be to raise the z-index of the popup class to something greater than 100.

When a post is deleted and the notification comes through, it scrolls over the inline flag bar:    The entire post also seems to capture clicks instead of letting them get to the flag bar. Looks like someone got a z-index wrong...


Einstein states that a moving object's shape changes due to the length contraction. But people had done such an experiment: Taking photos to a moving object, but they didn't find Lorentz contraction, instead, the object on picture just takes a rotation, which is the aberration. I'm confused about the two effect. Is there self-contradiction？

What shape does the viewer in a reference frame with $v=0$ perceive? I suppose that since the  sphere moves in one direction only (oX only, not oY) its section would change into an ellipse, where the horizontal diameter would be shorter.  However, my textbook says that the viewer still perceives a regular spherical shape. How come?


I am having some trouble with a library and debugging it.  Basically I switched from one version to a forked version, which worked fine locally, but once deployed to the production server didn't work. I then went into the file I thought was being loaded to see what was going on, and put some print()'s, but after restarting apache2 and running my script, none of the prints are showing.  I get the feeling it isn't loading the file I have modified, and so want to confirm where it is making the request from. sys.path isn't tremendously helpful, and in the venv directory I have a ----.dist-info folder for my library, but not the actual src for me to tweak, that has (for some reason) been put elsewhere (I checked this using pip3 list). Any help or suggestions would be appreciated, as not sure how I can debug things with the information I have at present.

I want to detect whether module has changed. Now, using inotify is simple, you just need to know the directory you want to get notifications from.  How do I retrieve a module's path in python?


The company I work for runs a series of ecommerce stores on a VPS. It's a WAMP stack, 50gb storage.  We use an archaic piece of ecommerce software which operates almost entirely client-side. When an order is taken, it writes it to disk and then we schedule a task to download the orders once every 10 minutes.  A few days ago, we ran out of disk space, which caused orders to fail to be written. I quickly hopped on to delete some old logs from the mailserver and freed up a couple of GB pretty quickly, but I wondered how we could fill up 50gb will nothing much more than logs.  Turns out, we didn't. Hidden deep within the c:\System Volume Information directory, we have a stack of pirated videos, which seem to have appeared (looking at the timestamps) over the past three weeks. Porn, American Sports, Australian cooking shows. A very odd collection. Doesn't look like an individual's personal tastes - more like the VPS is being used as a mule.  We have a 5-attempts and you're blocked policy on our FTP server (plus, there is no FTP account with access to that directory), and the windows user account has had it's password changed recently. The main avenues are sealed - and logs can verify that. I thought I'd watch and see if it happened again, and yes, another cooking show has appeared this morning.  I am the only one to know of this problem at my company, and only one of two with access to the VPS (the other being my boss, but no - it's not him).  So how is this happening?  Is there a vulnerability in some of the software on the VPS? Are the VPS owners peddling warez across our rented space? (can they do this?)  I don't want to delete the warez in case it is seen as a hostile action against this outside force, and they choose to retaliate.  What should I do? How do I troubleshoot this? Has this happened to anyone else before?

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


Whenever I run the sudo apt-get install command to install a program, the system also tries to install Popcorn Time. It takes like 5 minutes to give up. It's really frustrating when I'm installing a lot of stuff. How can I reconfigure the installation to avoid that?    I'm attaching an example of an installation:

So I'm just coming back to Ubuntu after some time away, running 14.04 and I've gotten things customized the way I like them, more or less.  At one point I'd attempted to download "Popcorn-Time."  I ran into some issues of some sort and decided to remove it/that it wasn't worth the trouble.    Something from the install process seems to be "stuck" in apt-get though.  I'm having issues getting new packages and I'm getting this message:  Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up popcorn-time (0.3.2~webupd8~6) ... Downloading Popcorn Time... --2015-09-06 11:25:00--  http://cdn.popcorntime.io/build/Popcorn-Time ... Resolving cdn.popcorntime.io ... Connecting to cdn.popcorntime.io (cdn.popcorntime.io)|45.33.69.37|:80... connected. HTTP request sent, awaiting response... 404 Not Found 2015-09-06 11:25:00 ERROR 404: Not Found.  download failed Popcorn Time is NOT installed. dpkg: error processing package popcorn-time (--configure):  subprocess installed post-installation script returned error exit status 1 ...  Errors were encountered while processing:  popcorn-time E: Sub-process /usr/bin/dpkg returned an error code (1)   I've omitted a couple of lines there, but I think you get the idea.  This is occurring when I try to install most packages using apt-get, maybe all packages.  It seems like it's interfering, and frankly I'd like it to not try to install popcorn time every time I install any package.  Any ideas?


I have a Macbook Pro from late 2011 with a failing hard drive that had macOS and Windows 7 installed on it. I just bought a new one and decided to put in a Windows 10 USB to boot from since I never used macOS that often anymore. Once I got everything setup there were no drivers (which was expected), so I downloaded them from the Bootcamp Assistant tool on a friends computer. When I try and launch the drivers setup.exe I get the error "This version of Bootcamp is not intended for this computer model". Is there any way to bypass this error or should I download the drivers from somewhere else?

I'm setting up my MacBook Air for a Windows-only boot setup. This was easy enough. It already had rEFIt on it, I just connected a Windows 7 boot thumb drive, and away I went.  However, it seems Apple does not let you download Bootcamp drivers outside of their assistant tool. Reinstalling OS X just for the drivers is ridiculous.  This laptop no longer has OS X on it at all. How do I get the required drivers? I cannot find them anywhere on Apple's support pages.  Every other manufacturer has their drivers available for download.   How do I download the Windows drivers for my 2010 MacBook Air without the BootCamp Assistant?


's ability is:     Tap three untapped elves, add {G}{G}{G} to your mana pool   Once I play Heritage Druid, can I tap three elves (Heritage Druid being one of them) and get {G}{G}{G} to my mana pool?  Just trying to be specific here, thought that several players might have the same problems and could solve it with this thread. But still, thank you all for reading and trying to answer this problem for me.

Note: this is intended to be a canonical question about summoning sickness.  "Summoning sickness", broadly, is the rule that stops you from attacking or paying {T} costs with a creature that you just played. But how exactly does it work? How does it interact with other rules and effects?  For example, if I'm trying to figure out how a creature is affected:   Does the status matter (tapped/untapped, face down/face up, etc.)? What if it came into play, but I didn't cast it? What if it's a token? What if it was on the battlefield when my turn started, but it wasn't a creature? What if it stops being a creature? What if it's a creature and also another card type? What if it's a double-faced card that just transformed? What if it changes control? What if it's a copy of another creature? Which of the creature's activated abilities can I use? Are any of its other abilities affected? Can I tap the creature to pay a cost that is not a {T} cost?   (These examples are primarily taken from questions about summoning sickness that have already been asked on the site)


So, I'm in a bit of a pinch. I'm on an SMP server, with 1.5 hearts and no food, but all the ingredients. I'm about to prepare some mushroom stew, but alas, I got chased and cornered by a creeper in a grief-protected house. If I open the door, I'm finished, but there's no other way. So, I'd like to wait for a creeper to despawn while I'm offline. How long would it take?

I understand monsters only spawn in a 9 x 9 grid of chunks centered on the player, and I assume they stay around while they remain within that distance of you. But do they despawn as soon as you move away from them? Or do they remain? If so what (if anything) causes them to despawn? Are the rules any different for passive mobs?  Will running far away from an area and then coming right back clear it of monsters?


Some web pages mentioned that LSTM causes the vanishing or exploding gradients if the sequence is too long.  These are one of the pages mention the problem:         However, I couldn't find any paper or formulation for it. Could you please tell me the references for this problem?

LSTM was invented specifically to avoid the vanishing gradient problem. It is supposed to do that with the Constant Error Carousel (CEC), which on the diagram below (from ) correspond to the loop around cell.  (source: ) And I understand that that part can be seen as a sort of identity function, so the derivative is one and the gradient stays constant. What I don't understand is how it does not vanish due to the other activation functions ? The input, output and forget gates use a sigmoid, which derivative is at most 0.25, and g and h were traditionally tanh. How does backpropagating through those not make the gradient vanish ?


If a stock costs $100  and the quarterly dividend is $3, can I expect the stock to drop $3 in value when:   the dividend is announced? the dividend is granted?  the dividend is paid?

As per this :     Because the stock price is expected to drop by the amount of the   dividend on the ex-dividend date,   Why is a stock expected to fall on the dividend date? Does it mean people that bought the stock just for the dividend will sell as soon as the dividend is paid out, leading to a fall in the price?


I was wondering if there were any Python packages out there that detects a regular expression from a string. Conceptually this is easy enough to do but I wanted to see if there was anyone else who has solved this problem.  To the extent that I looked around on my own, I've read the re package docs and didn't find it, and I read the best hits I could find on Stack Overflow and couldn't find one either. I've googled it and the hits I find are how to use regex to parse strings. I've searched through PyPI but the only hit I could find is 'regexgen 1.0' and that didn't seem to lead anywhere...  To be clear, what I am looking for is something to the effect of:  def detect_regex(some_string):     [does stuff..]     return regular_expression   Thoughts would be greatly appreciated. If there aren't any, I can write this myself. I just didn't want to waste time re-creating what's already been done. Thanks!  Edit: I may not have been very clear in my question; the regex 'foo' does match the string 'foo' but my goal is the following -- given the three strings with values foo123abc, abc078963bar, and xyz8940baz, the return would be ^[a-z]+[0-9]+[a-z]+$... hypothetically. So the regex would be "general" to some extent.

Is it possible to detect a valid regular expression with another regular expression?  If so please give example code below.


I need to prove that for $n\in\Bbb{N}$, and zariski topology on $\Bbb{F}^n$:  Normal space if $\Bbb{F}$ is finite Not Hausdorff space for $\Bbb{F}=\Bbb{R}$  What I've tried:  prove that any singleton is close, so because $\Bbb{F}$ is finite I can say that its the discrete topology. prove that any open non-empty group is dense in $\Bbb{F}^n$.  And then I can't find 2 disjoint open groups.  Do you think it's correct? Will appreciate any help

There was an exercise I could not do. So the property is $T_1$ if for every pair of distinct points, $P, Q \in X$, there is an open subset $U$ containing $P$ but not $Q$ and another open subset $V$ containing $Q$ but not $P$.  So I was asked to show if the base field is infinite, then $\mathbb{A}^n$ is $T_1$ but not Hausdorff.  I can show that it's not Hausdorff (I believe this is right). So let $k$ be an infinite field, then we have $U$ and $V$ which are two nonempty subsets which are open, thus $U^c$ and $V^c$ finite so by Demorgan's law we have $(U \cap V)^c =U^c \cup V^c$ which is also finite, so this implies that $U\cap V$ is non-empty so it can't be Hausdorff.  But I can't seem to really show that it's $T_1$  Any ideas how to approach this?  Thank you.


I am using a VPS from Contabo.com, and when using Digitalocean, I didn't have any problems. Now, when trying to install courier-authdaemon, I get an error saying that the package could not be found. Does anybody knows how to solve this problem?

How do I get to the Universe Repository in supported versions of Ubuntu?


How to solve the following integrand:  $$\int^\infty_{-\infty}\frac{\sin x}{x} dx\;?$$ I know how to evaluate it by using the path of a rectangle, but it is too difficult and would make some mistakes.   I am wondering if there is a simpler way to solve questions like this. Thanks！

Recently I had to use the fact that the Dirichlet integral evaluates as  $$\int_{0}^{\infty} \frac{\sin{x}}{x} \ dx = \frac{\pi}{2}$$ a couple of times.   There already is a question that specifically ask for methods to show this result $\textbf{not}$ using complex integration. In this question I am interested in seeing the derivation via contour integration. ( I am aware of the wikipedia entry, but am looking for more detail )


I'm pretty new to photography .. would appreciate if anyone could advise me a little on comparing wide angle lenses. For example, I'm looking at the  Canon EF 24mm f/1.4L II USM and Canon EF 14mm f/2.8L II USM. (I have a full-frame camera.) What are the meaningful differences between the two? What practical difference does a 1.4 have to a 2.8? And how are they better than a much cheaper option like the Canon EF 24mm f/2.8 IS USM? There are so many options; in general, for what situations would I choose one over the other?

My girlfriend owns a D5100 and I own a D7000 for which we both share lenses (or try to when appropriate). I own the 18-55 kit lens, a Nikkor 50mm 1.8g (I may consider buying the inexpensive 50mm 1.8d so that we can both have the 50mm at all times) and a cheap Sigma 70-300 4.5-5.6.  As of right now, I do 65% of my shots using the 50mm, including, most of the time, landscape photography. I just adjust the composition by adjusting my position and only use the kit lens when that's not an option. For some time I've been thinking about acquiring a wide angle lens, but after checking up the prices and different models I couldn't make up my mind.  What is it that you look for in a wide angle lens?  To make it easier to explain where my doubts lay, let's say the Nikkor 24mm 2.8D which sells on amazon for 360 pounds / $450.   Do I really need a fast lens for landscape? I mean, 90% of my shooting with a wide lens is going to be architecture or landscape so why would I need a fast lens? Most of my photography (which tends to be street photography and portraits) is taken with the 50mm or the telephoto (which I'm seriously considering upgrading to something not crappy)... are there other usages for wide angle (other than landscape and architecture) that I'm missing? (I mean things you'll do often, not things that you may do but you never end up really doing). How is it different from the kit lens? I can deduce build quality of the kit lens is not going to be great, but it's still a 18mm f3.5 in the wide side, so wider and reasonably fast... is it really worth it to get the Nikkor 24mm? Why?


I have a cube and I want to apply Bevel. When I apply bevel it comes like this:    But actually I want uniform bevel like below: where radius is equal for all width, height and depth.    Please tell me how to do that

I'll preface this by saying I'm very new to Blender - I'm trying to put a bevel on an edge, looks something like this:    As you can see, the vertical side is much longer than the horizontal side.  When I apply to bevel to the edge there, the bevel stretches proportionally - so there's 'more' bevel on the longer side.  I want to bevel without any 'ratio' like that - just a 45-degree bevel, if that makes any sense.  Do I have to put in a loop cut to make the side lengths equal?  I tried using a sub-surf modifier, but it applies on a bunch of nearby edges, when I just want to round this one corner.


I am not really sure how to tackle this one. Any help is appreciated!  By using the change of variable $u=x+y$ , $v=x$ evaluate $$\iint_{Ta} (x+y) \, dx \, dy$$ where $Ta$ is the region in the $xy$ plane bounded by the $x$ and $y$ axes and the line $x+y = a$.  Update: I have since worked out the Jackobian = -1 so am now onto: $$\iint_{Ta} (x+y) \, dx \, dy$$ $$=\iint_{Ta} (v+u-v) \, du \, dv$$ since $x=v$ and $y=u-v$, so $$\iint_{Ta} u \, du \, dv$$ I am still struggling with what to put as the limits though!

By using the change of variable $u=x+y$ , $v=x$ evaluate $$\iint_{Ta} (x+y) \, dx \, dy$$ where $Ta$ is the region in the $xy$ plane bounded by the $x$ and $y$ axes and the line $x+y = a$.  Update: I have since worked out the Jacobian = -1 so am now onto: $$\iint_{Ta} (x+y) \, dx \, dy$$ $$=\iint_{Ta} (v+u-v) \, du \, dv$$ since $x=v$ and $y=u-v$, so $$\iint_{Ta} u \, du \, dv$$ I am still struggling with what to put as the limits though!


When performing diagnostics on an OLS model, what can make a plot of the predicted responses vs the residuals. Ideally we want a horizontal rectangle shape. But what does it mean when the plot is a tilted rectangle? Some books like Draper and Smith say this indicates an error in the analysis, but they do not elaborate on what this means. Can someone explain what we can infer from this particular case?

Consider the following figure from Faraway's Linear Models with R (2005, p. 59).    The first plot seems to indicate that the residuals and the fitted values are uncorrelated, as they should be in a homoscedastic linear model with normally distributed errors. Therefore, the second and third plots, which seem to indicate dependency between the residuals and the fitted values, suggest a different model.  But why does the second plot suggest, as Faraway notes, a heteroscedastic linear model, while the third plot suggest a non-linear model?  The second plot seems to indicate that the absolute value of the residuals is strongly positively correlated with the fitted values, whereas no such trend is evident in the third plot. So if it were the case that, theoretically speaking, in a heteroscedastic linear model with normally distributed errors  $$ \mbox{Cor}\left(\mathbf{e},\hat{\mathbf{y}}\right) = \left[\begin{array}{ccc}1 & \cdots & 1 \\ \vdots & \ddots & \vdots \\ 1 & \cdots & 1\end{array}\right] $$  (where the expression on the left is the variance-covariance matrix between the residuals and the fitted values) this would explain why the second and third plots agree with Faraway's interpretations.  But is this the case? If not, how else can Faraway's interpretations of the second and third plots be justified? Also, why does the third plot necessarily indicate non-linearity? Isn't it possible that it is linear, but that the errors are either not normally distributed, or else that they are normally distributed, but do not center around zero?


I am facing annoying problem of only HTTPS websites working on my Mac (in all browsers). I can only visit Google, YouTube, Facebook, Yahoo etc.  So far, I tried following:   Websites shows error of: ERR_CONNECTION_REFUSED I have uninstalled Anti-virus Turned off firewall Changed DNS, to 8.8.8.8, 8.8.4.4 (Google), 208.67.222.222, 208.67.220.220 (Open DNS), 0.0.0.0 My network is ipv4 supported (but not ipv6) so most websites should work. I tried ping websites that are not opening on browser e.g: dailymotion.com , but I transmitted and received packets without loss. Reinstalled Yosemite but problem still persists. Everything works when I use VPN (e.g hotspot shield), so my guess is DNS is messed up. I tried flushing DNS using sudo killall -HUP mDNSResponder    P.S Everything works in Safe Mode and using mobile hotspot  Here is , and . So the issue is with only http websites.  When I use sudo pfctl -s nat, I am getting following response: “No ALTQ support in kernel ALTQ related functions disabled rdr pass inet proto tcp from 192.168.1.100 (my IP) to any port = 80 -> 127.0.0.1 port 9882”. By removing port forwarding using sudo pfctl -F all, the websites works for few seconds only  Any suggestions please ?

Trying to open a http website on any web browser (event telnet) gives a ‘ERR_CONNECTION_REFUSED’ or ‘connection timed out’.  However, the same sites can be opened using https. I tried doing a traceroute and it works fine.  I am new to OS X but have experience with Linux. How do I go about troubleshooting this issue?  Update  I think I've tracked down the culprit to a rule in pf (firewall).  The result of sudo pfctl -s nat is:  No ALTQ support in kernel ALTQ related functions disabled rdr pass inet proto tcp from 192.168.0.101 to any port = 80 -> 127.0.0.1 port 9882   192.168.0.101 is the current ip address of the computer.  I tried to remove the rule with sudo pfctl -F all, but it is back after a few seconds. I didn't find the rule in the default configurations (/etc/pf.conf). And disabling pf with sudo pfctl -d has no effect on it.  Is this a malware issue?


I was wondering, if I for example have animated guy that is painting fence. How should I make it look like he is actually painting it? Like only after every stroke, the fence would change color. But I don't think texture change is the right approach. Any suggestions?

For example, make an object glossier after touching another mesh, to make it look wet (dynamic paint?)  Or make it appear burned after being close to a flame simulation? (particles + dynamic paint?)  I know it's possible to change the object color with dynamic paint, but is it possible to do the same sort of thing with a material?  (Perhaps some complex system that uses dynamic paint generated image sequences to mix several shaders and node groups?)


If there is a lamp $1$ meter away from me which is switched on at time $t_1$ and switched off at $t_2$, I'll start receiving the light at time $t_1+\frac{1}{c}$ and stop receiving it at $t_2+\frac{1}{c}$. So there is only a finite time $t_2-t_1$ during which I'll get the light. CMB photons were created at a finite time in the past- the time of recombination when it was $380,000$ years old. If this moment can be compared with the switching on of a cosmic lamp, then from that moment, the CMB photons have started travelling towards us. Will we ever stop receiving these CMB photons here on earth? If not, why?

Will we ever reach a point where all the light that was set free by recombination finally reaches us from our point of view and the CMB stops "shining" for observers on Earth?


I am trying to add a chain to a bezier curve but when I hit fit to curve the chain is much shorter than the curve, and when I apply the curve modifier and parent it with the bezier curve it just places the chain above the curve and stretches the chain, distorting its geometry,  I have set the origin to the volume of the chain, I've set the chain right and where the 3D cursor is but nothing seems to help.

I want to create a simple road. To do this I first want to apply an 'Array Modifier' which fits the curve. So in the Array modifier I changed the 'Fit Type' from 'Fixed Count' to 'Fit Curve'. But now the Path is much shorter than the road it self.  And If I extrude the curve the road goes even longer and longer. Is there a way the road is as long as the path?


My question is clear with an image:    Is there any hotkey to use instead of mouse clicking the network connection icon in the tray?   Without the hotkey, I have to press Win+B, right arrow several times, then Enter, very cumbersome.  That popup is impoooortant because when I want choose a Wifi SSID to connect, that seems to be the only GUI way.    Oh yes, as some veteran user points out, rundll32.exe van.dll,RunVAN is the right answer for me.

Does anyone know how to create a shortcut which opens the wireless networks dialog box in Windows 7?  I'm looking for a shortcut that takes me directly to the window which shows you the available wireless networks around you.


I have around 20 old Sketchup files that need to be converted to Blender 2.9. Is there anyone that would be able to do that for me?

I am new with Blender. I changed to it because now I am using Ubuntu. Previously on Windows I used to work with SketchUp, and I still have many projects, that I would like to import *.skp into Blender to continue modeling and or rendering.  Is there any way how I could import SketchUp's .skp file into Blender?


No. This question in NOT duplicate of    The question asked here is no ways similar to the link described as duplicate.  First question :  I am using const_cast below for two cases. one of it works. the other doesn't.  1. int* const     //Works.  In this syntax the address to which the variable would point to cannot be changed. So i used const_cast as below and it works:  ` int j=3; int *k=&j; int *m=&j; int* const i=k;  const_cast<int*>(i)=m; //OK: since i=m would not work so cast is necessary`   2. const int*  //Doesn't work.  The address being pointed to can be changed however the value cannot be changed(though can be changed by making the variable point to different address). The const_cast i am using doesn't seem to work here:  ` int j=9; int *k=&j; const int* i1=0; i1=k; //OK //*i1=10;//ERROR.`   So i tried to typecast as below through various ways but nothing works:  const_cast<int*>(i1)=10; const_cast<int*>(*i1)=l; *i1=const_cast<int>(l); *i1=const_cast<int*>(10);   Second question: Are all the casts available only for pointers and references? Is the following example not valid where no pointer or reference is in picture?  const int a=9; int b=4; const_cast<int>(a)=b; //cannot convert from 'int' to 'int'. why is compiler                       //trying to convert from int to int anyways or fails                                //when both the types are same.

What are the proper uses of:   static_cast dynamic_cast const_cast reinterpret_cast C-style cast (type)value Function-style cast type(value)   How does one decide which to use in which specific cases?


How can I register to event that let me know when specific file is read in linux?  Can implement in c or in bash /shell script

Is there any way in unix to find out who accessed certain file in last 1 week? It may be user or some script ftp it to some other place. Can I get a list of user name who accessed certain file? How can I find out who is accessing particular file??


I am giving ISTQB Agile extension tester certification exam in next 2 days. I could see single mock test paper roaming around internet. I would like to solve few more mock papers. Can i get these test papers for free anywhere please?  Note:  This exam is different from ISEB foundation level exam.

I recently asked this question on a less active exchange and as a result didn't get the range of opinions I was after so am repeating it here.   I've been working as a tester for the last 6 months (in the UK) and I have just been asked by my employer to work towards the ISEB Certified Tester Foundation Level . My main source material is the following book  .  I was hoping that I could get some input from people who have completed this certification in the past. Do you have any sage advice that I should stick to? or any best practices I should adopt while learning the material?     I realize that this certification is unlikely to make me a better tester but it is something the company wants our testers to pursue, so in essence I would appreciate opinions on how to pass the test as quickly as possible.


I installed drush using composer following the instructions here:   When trying to run drush cc all I get this error:     No Drupal site found, only 'drush' cache was cleared.[warning] 'all'   cache was cleared. [success]   I added this line:  export PATH="/Applications/MAMP/bin/php/php5.6.2/bin:$PATH"   to my .bash_profile and restarted bash and MAMP. Still no luck. Any ideas?   This is my drush status:   Drupal version         :  7.36                                                               Site URI               :  http://default                                                     Database driver        :  mysql                                                              Database hostname      :  localhost                                                          Database port          :                                                                     Database username      :  root                                                               Database name          :  srod                                                     PHP executable         :  /usr/bin/php                                                       PHP configuration      :                                                                     PHP OS                 :  Darwin                                                             Drush script           :  /Users/srod/.composer/vendor/drush/drush/drush.php   Drush version          :  7.0-dev                                                            Drush temp directory   :  /tmp                                                               Drush configuration    :                                                                     Drush alias files      :                                                                     Drupal root            :  /Applications/MAMP/htdocs/srodsite                             Site path              :  sites/default      I'm running it from Drupal project folder.

After much trial and tribulation, I thought I had drush all ready to roar. Much excitement. But then, no joy...  Drush is working. The sites operate fine via MAMP. Regardless, a "drush cc all" command returns:   No Drupal site found, only 'drush' cache was cleared.                                          [warning] 'all' cache was cleared.                                                                       [success]   This question has stumped drupalcon attendees and very experienced developers. Any ideas?  I am on Mac OS 10.9.3 using MAMP (free) Version 3.0.5  Here is my drush status:   Drupal version         :  7.29-dev                                 Site URI               :  http://default                           Database driver        :  mysql                                    Database hostname      :  localhost                                Database username      :  db_user                             Database name          :  db_name                        PHP executable         :  /usr/bin/php                             PHP configuration      :                                           PHP OS                 :  Darwin                                   Drush version          :  7.0-dev                                  Drush temp directory   :  /tmp                                     Drush configuration    :                                           Drush alias files      :                                           Drupal root            :  /Applications/MAMP/htdocs/mysite.dev   Site path              :  sites/default       Have tried executing drush from /Applications/MAMP/htdocs/mysite.dev; from /Applications/MAMP/htdocs/mysite.dev/sites/default; and using drush cc all --uri=http://localhost/mysite.dev  Tried running drush from sites/default. Same result.


Twitter posts are limited to 140 "characters", which turns out to mean  in UTF8 (). Was this determined by a (likely outdated) technical limitation, or is there a published UX rationale?

I am developing an educational website in which students can share luthier learning tips with their classmates. It is important for me to make the posts as small as possible. However, I don't know how small they should be. How can I impose a similar limit on videos or images they upload? I was wondering Why Twitter limits tweets to 140 characters? Why this number? What are pros and cons of this design?


I'm trying to calibrate NEC tablet PC running Ubuntu 14.04. After the calibration using xinput I try to copy the results to the 10-evdev.conf,but cannot save it because of a permission error.

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor.  I'm pretty sure I'm a root user, but how do I make sure? If I am a root user, how do I fix this?


Where an argument is logically valid "if and only if it is not possible for the premises to be true and the conclusion false."  Are there any examples of a logically valid argument where the premises are all true, but the conclusion is false? Or is such an argument automatically logically invalid?   Is there any way for the statement "If all the premises of an argument are true and the conclusion is false, the argument is logically invalid" to be false?

My text book gives the definition of validity as "An argument is valid IFF if the premises are true, then the conclusion must be true". Using a conditional elimination on the RHS of the IFF yields "An argument is valid IFF the premises are false or the conclusion is true".   Yet, this seems strange to me. Am I doing something incorrect with my manipulation or is this definition actually true? Surely the criteria for a valid argument goes beyond a false set of premises or a true conclusion.


We have C#.Net windows application and i need to know how to get the memory consumption details of my application. I already tried System.Diagnostics.Process to get the current process memory information. I need to know how many objects are in memory and also memory consumption details for each objects.

What profilers have you used when working with .net programs, and which would you particularly recommend?


A  has snapped: is there any reason why it can not be bridged via soldering or a butt splice? Kenmore Model 110.66642500

I have a Whirlpool Estate dryer that recently quit drying. I narrowed the problem down to the heating element, then removed the element assembly and found a clean break in the coil at one end. A replacement element is 50 bucks online, which isn't a problem, but I wonder: Can I fix the element myself?  I don't have a lot of tools, but I do have a wrench and some 18 gauge aluminum wire. I thought maybe I could scrape the soot off of the element near the break, then wrap the ends together with the wire. I'm not much of a handyman and I'm certainly not an electrician. But I'd like to fix something for a change, rather than just throwing it away. Can the element be salvaged?  Edit: Thanks for the informative answers, guys. I ordered a .


I'm trying to mount my TV in the wall but it's proving to made much more complicated than expected. My house is from 1908 and has been through multiple renovations. The drywall seems old, and the studs are not laid out using modern standards (e.g. 16" on center). I've tried hollow wall anchors but they ground through the plaster. Any ideas?

I have some plasterboard screws like this:     However, without a drill I have a job getting them into the wall. Am I safe to use normal screws on hangings that aren't going to be taking a great deal of weight? In this case it is a rack of coat hooks.


We are facing an issue with iPhone due to activation lock.  The device was used by an ex-employee of the company.  The email address that was used for this device no longer exists because it looks like 'employeename@company.com'. So we can't use the forgot password or reset password options.  Is there any solution to use this device?

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


Dumbledore teaches us that Voldemort closed his mind from Harry’s intrusion because he found the connection too dangerous.  However, later this connection suddenly reappears. Why would Voldemort ever stop closing his mind, if not to seed Harry’s mind with false leads?  Just because Rowling needed a way for Harry to garner crucial information to see his mission through?  Thanks!

During Order of the Phoenix Harry gets regular insights into Voldemort's thoughts and feelings. He gets snapshots of where Voldemort is and what he's doing. These visions stopped during Half-Blood Prince because Voldemort was practising Occlumency.     "So tell me, Harry," said Dumbledore. "Your scar...has it been hurting at all?"   Harry raised a hand unconsciously to his forehead and rubbed the lightning-shaped mark.   "No," he said, "and I've been wondering about that. I thought it would be burning all the time now Voldemort's getting so powerful again."   He glanced up at Dumbledore and saw that he was wearing a satisfied expression.   "I, on the other hand, thought otherwise," said Dumbledore. "Lord Voldemort has finally realised the dangerous access to his thoughts and feelings you have been enjoying. It appears he is now employing Occlumency against you."   (Half-Blood Prince, Chapter 4, Horace Slughorn).   It seems that at this point Voldemort realises that giving his archenemy intimate access into his mind and his plans isn't such a good idea. Which makes it all the stranger when those visions start up again in Deathly Hallows. Why would he make himself vulnerable in this way?  In Order of the Phoenix, he uses his connection with Harry as a weapon, to trick Harry into going to the Department of Mysteries to retrieve the prophecy. Even though he also gives Harry unintended insights into his plans as well (such as when he interviews Rookwood) he is basically a step ahead of Harry. The connection serves a purpose.  In Deathly Hallows it surely serves no such purpose. It only makes Voldemort vulnerable. Because of the connection Harry is able to keep track of Voldemort's movements and plans, which hindered Voldemort on several occasions. Through the connection Harry was forewarned that Voldemort was on his way to Godric's Hollow and to Malfoy Manor. Through the connection Harry realised that Voldemort was obsessed with the Elder Wand, meaning that Harry could potentially have worked out its location and taken it before Voldemort got there. Through the connection Voldemort showed Harry that he was worried about his Horcruxes being discovered, and in the process revealed to Harry that the last Horcrux was hidden in Hogwarts. And through the connection Harry knew Voldemort was in the Shrieking Shack during the Battle of Hogwarts, allowing Harry to get Snape's last memory. Time after time, Voldemort exposed himself in a way he didn't during the previous book.  Was stopping Occlumency a conscious decision on Voldemort's part? What purpose did it serve?


Which characters have wielded atleast two infinity stones simultaneously in the MCU? Here is a list of all characters who have wielded the infinity stones (atleast one):  Loki wielded the tesseract (space stone) and a sceptor (mind stone) given by Thanos Red Skull/Hydra wielded the tesseract (space stone), Loki's sceptor (mind stone) (in a way, through machines) Ronan wielded the power stone Guardians of the Galaxy (mostly Peter Quill) wielded the power stone Vision wielded the mind stone Thanos, Hulk and Ironman wielded all six infinity stones Dr. Strange wielded the time stone Odin and Hella may or may not have wielded some stones, we are not sure...  (Please add other characters if I missed them) Considering (1) and (2) above, there are characters who have wielded more than one infinity stones at a time. Then why did the Ebony Maw say to Thanos the following while presenting the space stone:  No other being has ever had the might, nay the nobility, to wield not one, but two Infinity Stones  Since, Thanos gave the sceptor to Loki, surely Ebony Maw would know it, right? Or was he merely being a sycophant?

In the very first few minutes Ebony Maw presents Thanos with the space stone and says to him that no one has ever had the power and honor to wield 2 infinity stones at the same time.  Is this a mistake? In the first Avengers movie, Loki DID. He received the scepter that contained the mind stone (which we only discovered during "Age of Ultron") from Thanos himself, in the hopes that Loki would bring back the space stone from earth. Loki wielded both stones for the entire movie.  The question is, am I missing something? Is Ebony Maw wrong? Hard to imagine that being the case, since Thanos was deeply involved in Loki's actions in the first Avengers movie. Is this an oversight by the writers? Has there been any explanation for this?


Let (X,d) be a metric space and A be a closed subset of X. Let B be a compact subset of X such that A$\cap$B=$\phi$. Prove that there exist a $\epsilon$$\gt$0 such that d(a,b)$\ge$$\epsilon$ for all a$\in$A and b$\in$B. I think first I have to show that if b is not in A then there exist a $\epsilon$ such that d(a,b)$\ge$$\epsilon$. And then for each b$\in$B this holds and somehow use the compact ness of B. But I don't understand how to show this. Especially  how to use the compact ness of B here. Thank you.

Claim: Let $X$ be a metric space. If $A,B\in X$ are disjoint, if A is compact, and if B is closed, then $\exists \delta>0: |\alpha-\beta|\geq\delta\;\;\;\forall\alpha\in A,\beta\in B$.  Proof. Assume the contrary. Let $\alpha_n\in A,\beta_n\in B$ be chosen such that $|\alpha_n-\beta_n|\rightarrow0$ as $n\rightarrow \infty$.  Since A is compact, there exists a convergent subsequence of $\alpha_n\;(n\in\mathbb{N})$, $\alpha_{n_m}\;(m\in\mathbb{N})$, which converges to $\alpha\in A$.  We have   $$|\alpha-\beta_{n_m}|\leq|\alpha-\alpha_{n_m}|+|\alpha_{n_m}-\beta_{n_m}|\rightarrow0 \;\;\;as\;\;m\rightarrow\infty.$$ Hence $\alpha$ is a limit point of B and since B is closed $\alpha\in B$, contradiction.  Is my proof correct? I feel as though I am missing something simple which would trivialize the proof.


Throughout all of the Star Wars movies, we see Storm Troopers (and their ilk) wearing their iconic armor.    However, as far as I can remember, in none of the movies does it explain WHY they wear this armor.  It doesn't seem to protect them from blasters at all, as we see a lot of them fall/die when shot.  Is there an explanation (in any canon) as to the functional use/s of stormtrooper armor?

It seems that it didn't actually protect them from any form of attack.   Every direct hit from a laser seemed to kill a stormtrooper outright, and a slice from a lightsaber cuts straight through.


I have the following expression that i would like to simplify further. $\mathbf{e}$ is a unit vector. I have used the BAC-CAB Rule to obtain: $$ \begin{aligned} (\phi \mathbf{e}) \times (\nabla \times \psi \mathbf{e}) & = \phi \mathbf{e} \times (\nabla \psi \times \mathbf{e} + \psi\nabla \times \mathbf{e}) \\  & = (\phi \mathbf{e} \times \nabla \psi \times \mathbf{e}) + (\phi \mathbf{e} \times \psi \nabla \times \mathbf{e}) \\ & = \nabla \psi(\phi \mathbf{e}.\mathbf{e}) - \mathbf{e}(\phi \mathbf{e}. \nabla \psi) +  (\phi \psi \mathbf{e} \times \nabla \times \mathbf{e}) \\ & = \phi \nabla \psi - \mathbf{e}(\phi \mathbf{e}. \nabla \psi) +  (\phi \psi \mathbf{e} \times \nabla \times \mathbf{e}) \end{aligned} $$ I feel $\mathbf{e} \times \nabla \times \mathbf{e}$ should be further reducible. Ideally I would like to have a scalar expression multiplied into one vector that is perhaps a composite expression of $\mathbf{e}$ and/or unit normals to $\mathbf{e}$. I am not interested in higher order tensors.

I'm trying to compute $u \times(\nabla \times v)$. My solution so far is below:  \begin{align*} [u \times (\nabla \times v)]_i& = \epsilon_{ijk}u_j\epsilon_{klm}\partial_lv_m \\ & =\epsilon_{kij}\epsilon_{klm}u_j\partial_lv_m \\  &=u_j\partial_lv_m(\delta_{il}\delta_{jm}-\delta_{im}\delta_{jl}) \\ & =u_j\partial_iv_j-u_j\partial_jv_i \\ \end{align*}  I can see that the second term will give me $(u\cdot\nabla)v$, but I'm not sure what to do with the first term.


I have a slightly unusual requirement for a custom resolution configuration in xorg.conf and need some help to figure out how to achieve it. I have a projector with 1400x1050 native resolution and want to use it in a poor man's Cinemascope mode @ 1400x584. The problem is I still need to feed the projector a full frame signal, while restricting X (or XBMC in this case) to only use a 1400x584 "slice", while outputting black/blank pixels above and below this. Ideally, I'd like to be able to define where the output "window" is positioned vertically within the 1400x1050 frame, but centered would be fine too. I'm pretty sure this should be possible but despite hours of searching I haven't been able to find any good answers - probably because most people aren't stupid enough to only want to use part of their screens... Any ideas?   Edit - These are the reported stats for the projector:   (II) NVIDIA(0): Frequency information for CAI CANON PJ (DFP-1): (II) NVIDIA(0):   HorizSync   : 15.000-80.000 kHz (II) NVIDIA(0):   VertRefresh : 50.000-85.000 Hz  (II) NVIDIA(GPU-0):   1400 x 1050 @ 60 Hz (II) NVIDIA(GPU-0):     Pixel Clock      : 108.000 MHz (II) NVIDIA(GPU-0):     HRes, HSyncStart : 1400, 1448 (II) NVIDIA(GPU-0):     HSyncEnd, HTotal : 1560, 1688 (II) NVIDIA(GPU-0):     VRes, VSyncStart : 1050, 1051 (II) NVIDIA(GPU-0):     VSyncEnd, VTotal : 1054, 1066 (II) NVIDIA(GPU-0):     H/V Polarity     : -/-   Another Edit - After more head-scratching, measuring and testing I've come up with a revised plan:   The projector has a motorized zoom, and what's more, it turns out that if I set the aspect ratio to 16:9 (on the projector) I am able to shift a 788px tall frame up/down within the 1050px tall viewport using the remote. Result! Combining that with the above, and with the help of the answers below, I think the best solution is to set the screen resolution in xorg.conf to 1400x788 (16:9) and use the zoom function to expand the projected image to the full height of the screen when viewing 2.39:1 (Cinemascope) content - thereby pushing the black bars off the screen and onto the masking. This solution has some major benefits:    When viewing 16:9 content I make use of nearly twice the number of pixels (1.1Mp vs. 600kp)  I gain the ability to adjust the vertical position of the image on the fly using the remote  A zoomed in picture is slightly brighter than the fully zoomed out one   The drawback is that to switch aspect ratios I now have to perform three steps: move the masking, zoom the picture and shift it into position vertically, as opposed to just moving the masking - but I can definitely live with that. The only question now is which of these two modelines to use:   Modeline "1400x788@69" 108.00 1400 1432 1840 1872 788 803 812 828 -hsync -vsync Modeline "1400x788@60" 89.66 1400 1432 1768 1800 788 804 812 828 -hsync -vsync   That is, should I go for maximum refresh (69Hz) or standard refresh (60Hz)?

My screen has 1280 x 1024 resolution. But unfortunately, rightmost belt of 200 pixels is damaged and unable do display any image.  How can I set that the Xorg will treat my screen as 1080 x 1024 device?  Now I have tried:  Virtual 1080 1024 Viewport 0 0   It doesn't work right - image is scaled to fit vertically, and horizontally I can pan with the mouse.


I am using ubuntu 14.04 and using vlc media player 2.2.4. I'm unable to play .mkv files using vlc player. While opening .mkv files it is giving some error messages like this.  No suitable decoder module: VLC does not support the audio or video format "VP90". Unfortunately there is no way for you to fix this.

When I play a .webm file using the  in VLC, I get the following error message (and the audio is played):     VLC does not support the audio or video format "VP90". Unfortunately   there is no way for you to fix this.   I can play these files in totem, but how can I play them in VLC?  I'm on Ubuntu 14.04 and VLC is 2.1.6. The package ubuntu-restricted-extras is installed.


I have created my first visualforce email template using apex:repeat. I am not getting any errors but I am not receiving any data. Fields outside of repeat are being populated with data. Any help will be much appreciated.  <messaging:emailTemplate subject="Project: [{!relatedTo.Project__r.Name}] has missing or innacurate information"      recipientType="Contact"      replyTo="test@g.com"     relatedToType="Incident__c">  <messaging:htmlEmailBody >
Dear {!relatedTo.Project__r.Contact__r.Name},

            The items below need attention before continuing with project: {!relatedTo.Project__r.Name}.             Incident numnber: {!relatedTo.Name}.

           Stage	          Type	          Created Date
      <apex:repeat var="pt" value="{!relatedTo.Measure_Rules__r}">
             <apex:outputField > value="{!pt.Rule_Stage_Calc__c}" </apex:outputfield>	             <apex:outputField > value="{!pt.Type__c}" </apex:outputfield>	             <apex:outputField > value="{0, date, MM-dd-yyy}" <apex:Param value="{!pt.CreatedDate}"/> </apex:outputfield>
        </apex:repeat>

           Please call our customer service department at 1-800-xxx-xxxx.

           Thanks,
           TBD Team
                           </messaging:htmlEmailBody>              </messaging:emailTemplate>

Design problem - Implement an approval process on case, which sends email to approver showing some additional info, which should not be visible to case owner/agent (who clicked on "Submit for approval" button).  Possible solution - All that additional info will not be stored on Case (otherwise agent will also be able to see it). I am creating a child object to case, where all that additional info be stored. We can make sure agent does not have access to that child object (lets call it ChildObj).   In the email template used, we can include info about that child object. From what i understand, standard email templates dont allow cross object reference. We probably need to use visualforce email templates.  Questions -  1) Can anyone see/point out any issues with that design? 2) I am very new to salesforce. Can anyone give me any example of how i will access child record's field? I mean there won't be any lookup or anything to child object, right? How do i access a field on the child object? Any clue would be helpful


I am making an adventure map and I need to make villagers who do not take damage and trade items with the CanDestroy and CanPlaceOn tags. How can I do that? All of my command generators don't allow data tags.

I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`


I'm trying to post an avatar but the website says that the resolution needs to be reduced, the image size is already much lower than the sites maximum.

I just tried to make a post on another StackExchange site, but unfortunately, when I tried to take a picture of the problem, I got an error that the image must be less than 2 MB to upload it to StackExchange! The edit button on my Android photos app lets me draw over, crop, change tint/brightness/contrast, and add lots of WACKY EFFECTS to my pictures, but I can't figure out how to shrink the resolution! Thanks in advance.


I'm trying to figure out how to change the fps for when I press the play button in the scene.  It automatically uses 30fps and moves down if the animation uses to much resource.  I want to force it to a specific fps (1fps or 2fps etc)  thanks

Is it possible to play an animation in the viewport at a slow framerate?  Just because of the rather heavy scene it's already going at about 8 fps, but I would like to be able to play it even slower (an in a controlled manner) for the purpose of recording an animation with automatic keyframes.


I have a problem with a MySQL query in PHP when I'm having non English language, it is always returning 0 rows. The query is pretty straight forward and here is the relevant snippet.  // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }  $sql = "SELECT ID, post_content FROM udhay.posts WHERE post_content = 'இ'"; $query = $conn->query($sql);  if ($query->num_rows > 0) {     // output data of each row     while ($row = $query->fetch_assoc()) {         print_R($row);die;     } } else {     echo "0 results \n\n"; }   The only odd thing you could find here is the WHERE condition is having a Tamil character.   I checked even the MySQL error log and found that the right query got executed and tried that query once again directly in the MySQL and it is working perfectly. Also I tried with some English letters and words and it is completely working fine without any issues.  Version Info:  MySQL:      mysql  Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using  EditLine wrapper PHP:      PHP 5.6.28 (cli) (built: Dec 22 2016 01:56:27)      Copyright (c) 1997-2016 The PHP Group     Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies   Any clue on this or solution would really be great.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


My company is using the , and can get an accessToken and refreshToken fine using this flow.  The problem I'm having is that the responses we receive from Salesforce don't have an exp field in them, so we don't know how long an accessToken lives for.  {      "id":"https://login.salesforce.com/id/00Dx0000000BV7z/005x00000012Q9P",    "issued_at":"1278448384422",    "instance_url":"https://yourInstance.salesforce.com/",    "signature":"SSSbLO/gBhmmyNUvN18ODBDFYHzakxOMgqYtu+hDPsc=",    "access_token":"someValue",    "token_type":"Bearer",    "scope":"id api refresh_token" }   Is there a way to find out how long the accessToken lives for?   We can change our request of course to include different scopes if need be.  Note that I've noticed that  that lets you request this information, but it feels to me like something that should be returned with the accessToken and refreshToken.

I have read many places that the access token session length is controlled by the client application and will expire "from time to time", but I cannot find a way for my application to calculate the expiration date/time.  I have used other non-Salesforce systems and they pass along an expires_in value to help determine the expiration.  Salesforce does pass along an issued_at value, which doesn't help me much.  Is there a way to determine when the access token will expire, or is it only based on trial and error?


I have a table of data like this:  RecID     Name      Value 1         Color     Red 2         Size      Small 3         Weight    20lbs 4         Shape     Square   I need a query that returns the rows as columns, like this:  Color     Size     Weight     Shape Red       Small    20lbs      Square   What would the SQL query look like to do this?  I cannot hard code any values into the query, it just needs to read the Name and Value pairs and re-orient them horizontally.

Trying to find some simple SQL Server PIVOT examples.  Most of the examples that I have found involve counting or summing up numbers.  I just want to pivot some string data.  For example, I have a query returning the following.  Action1 VIEW   Action1 EDIT   Action2 VIEW   Action3 VIEW   Action3 EDIT     I would like to use PIVOT (if even possible) to make the results like so:  Action1 VIEW EDIT   Action2 VIEW NULL   Action3 VIEW EDIT     Is this even possible with the PIVOT functionality?