Given a real $x$ and an integer $N \gt 1$, prove that there exist integers $h$ and $k$ with $0 \lt k \le N$ such that $|kx-h|\lt 1/N$. Hint. Consider the $N+1$ numbers $tx-[tx]$ for $t=0,1,2,\dots, N$ and show that some pair differs by at most $1/N$.  I'm trying to prove this hint. Let $a_t=tx-[tx]$ for $t=0,1,2,\dots, N$, and assume that for every different pair $|a_i-a_j| \ge 1/N$.   I can't lead to a contradiction from this. I would greatly appreciate any help.


How to make Stack Overflow tell you about a new question with certain tag(s) the second it is asked?

For now, it's silly: I just keep pressing F5 button to have a chance of being the one who answers the new question first. I know about RSS but would subscribing to RSS mean that I get RSS updated instantly when a new question is asked? In my Firefox, RSS feeds are updated every 30 minutes and setting it to 1 min or less would be insane.


This was the last question on my exam and it's driving me nuts the answer has to be in degrees  $5\cos(x) = 2\sec(x)-3$  $5\cos^2(x)/2 = -3$  $\cos^2(x) = -6/5$  Since $-6/5$ is negative  The answer $\sqrt{\cos^2(x)}$ could not be correct


Sorry to start a subjective question, but want to understand "own.sty" file.  Other than all \usepackage{} what sort of other commands can be added to the makeyourown.sty file.  Can you include \let command, and \newcommands in it.   What sort of precaution / structure newbies should follow.


JSON result of PHP is not showing how I expect

I have following problem:  I have this code simplifyied:  $contents = $pdo->query($sql); $results = $contents->fetchAll(PDO::FETCH_ASSOC);  foreach($results as $row) {     $string = htmlspecialchars($row['content']);     array_push($all_matches, array("data" => $string, "id" => $row["page_id"])); }  echo json_encode($all_matches);   And in my database I have following content for example:
MRG Beispiel Seite

Ein Beispiel für Einbindung einzelner Felder / Strings aus dem Impressum-Modul:
   And my result is following:  [{data: "", id: "8"}]   My page_id displays but not my content, it stays blank, how do I fix this?  The query:  $sql = "SELECT * FROM `cms_page` WHERE page_id = 8";   When i do echo $row["content"] it actually shows me some content, its a string. The problem is the echo json_encode("data" => $row["content"] its blank  SOLUTION:  I fixed that problem by encoding my string to UTF-8 with:  echo json_encode(utf8_encode($row["content"]));


Python: How do i Remove a CERTAIN amount of decimal in a float

so i had this problem where i generated numbers from 0-1 with a step of 0.01 but the numbers have so many decimals like 0.010101010101.I only need it in the form 0.01 with two decimals.  How do i remove the rest of decimals ?


I have heard two pronunciations for the word tissue. Tishoo and Tisyou. Tishoo is of course the one in common use but what is the current status on Tisyou ? It ''feels'' like an archaic way of pronouncing tissue but that might not be true. It also ''feels'' more British and more formal. I found myself using Tishoo for paper and Tisyou for organic tissue. As in skin tissue. What is the status/useage of the tisyou pronunciation ?


What is the general method for solving congruences of the form $x^2\equiv a \bmod p$, where p is prime?

For example $x^2 \equiv 13 \bmod 29$. The only solution that comes to mind is to just calculate the squares of all of the numbers from 0 to 28, but that's tedious. Is there a better method?  EDIT: the question that this is marked as a duplicate to doesn't contain an answer as to how to solve such congruences, only for determining whether there exists a solution. So while a similar question has been asked, it hasn't been properly answered and IMO it's not duplicate then.


\documentclass{beamer}  \begin{document} \newcommand{\b}{\begin{frame}} \newcommand{\e}{\end{frame}}  \b \titlepage \e  \section{AAA} \b \frametitle{Contents} \e  \end{document}   How to fix this for abbreviation?


An awakened cat with wizard levels has  active, and is melee attacked by a goblin within 5 feet of it. The goblin hits the cat but exceeds the cats AC by 4 or less.   Fire shield states:     In addition, whenever a creature within 5 feet of you hits you with a melee attack, the shield erupts in flame. The attacker takes 2d8 ... damage..   Hooray! That pesky goblin will get their comeuppance. However, the cat does not feel like taking any damage from this attack, so it casts  which has the following cast time and trigger:     1 reaction, which you take when you are hit by an attack or targeted by the magic missile spell   So the cat has clearly been hit by the attack, triggering fire shield and allowing it to take a reaction to cast shield as well. But shield has this effect:     ... Until the start of your next turn, you have a +5 bonus to AC, including against the triggering attack, ...   Which would cause the attack to miss! Now we have Schroedinger's fire shielded cat!  Does the damage from fire shield affect the attacking creature when you also cast shield to negate the attack? Or does negating the hit also negate the trigger which allowed shield to be cast at all?


Connected but no internet on Asus ROG, "operation not permitted" for ping

I have a dual boot ASUS ROG laptop with Ubuntu and Windows. Few days ago internet stopped working on Ubuntu - I am connected to the network, but with no internet, in Windows everything works perfectly.    Output of ls -al /etc/resolv.conf  /etc/resolv.conf -> /run/resolvconf/resolv.conf   I tried  and now I am able to ping ip addresses, but I can't ping using names. After trying using web browser ping starts to say:  send msg: Operation not permitted


Replacing Regular expression matches in Java

I want to replace &sp; in the string below with Z.  Input text : ABCD&sp;EF&p;GHIJ&bsp;KL  Output text : ABCDZEFZGHIZKL  Can anyone tell me how to replace the every instance of &\D+; using java regular expression?  I am using /(&\D+;)?/ but it doesn't work.


Show that if the matrix A has the form $\begin{pmatrix}a &b\\ b& -a\end{pmatrix}$, so $ a^2+b^2= 1 $

I need to prove that if matrix A has the form $\begin{pmatrix}a &b\\ -b& a\end{pmatrix}$, or    $\begin{pmatrix}a &b\\ b& -a\end{pmatrix}$ so $ a^2+b^2= 1 $ I picked a matrix $\begin{pmatrix}a &b\\ c& d\end{pmatrix}$, and I proved for this one.Then I changed $c = b$ and $d = -a$, but I'm not sure if this is correct. I'm not getting the correct answer, I didn't prove it.


I will need to keep an OEM version of XP on one machine to run a number of expensive older programs. I propose to leave that machine unconnected to the Internet so security support is not a problem. The question still remains though, if I need to do a clean re-install of that XP can I re-activate it after April 2014?  Also I need to build a new machine and dual boot another OEM copy of XP Professional (from a discarded machine) with Windows 8.1.  Does anyone see any problems in doing that?


Does English have written words for each letter in the alphabet?

In Spanish or in Catalan (not sure if also true in other Latin languages) we have a word for each letter in the alphabet. For example, letter "H" is written as "hache", in Spanish or "hac" in Catalan. Can you do that also in English? How would you write the name of "H"?


HTML - Center Div not Working with Position Relative

I am trying to center a div on page, but its not working.  I need to use Position: Relative on the style of the div, because if I don't use it, the entire div won't appear on page!  Here is the style right now:  #page-wrap {     width: 720px;     margin: 0 auto;     position: relative;     z-index: 300;     background: rgba(0,0,0,0.7);     overflow: hidden;     padding: 30px 50px;      border-left: 10px solid rgba(255,255,255,0.2);     border-right: 10px solid rgba(255,255,255,0.2); }   The div is appearing on the top of the page, centered horizontally, but I want to center it vertically...  How can I do it?  Thanks alot in advance ;)


There are commercial flavored popcorn (i.e. BetterMade) that aren't topped with flavor but coated like a potato chip.  How do I re-create that coating at home?  Specifically, I'm a fan or the 'hot' style coating (bbq, buffalo chicken, jalapeno, flame).  I've tried oils, tossing in a bowl, spraying from a bottle, but no luck  - it's just regular popcorn with a little chili powder sticking to each kernel.


I am having difficulty understanding which is correct as each seems to be singular and them seems to be plural.


Building vs buying a server for an academic lab

I'm looking for advice on the classic build vs buy question.   We need a new linux server to run Matlab computation on in our lab (academic). Matlab parallel computing toolbox licence allows up to 12 local workers so we are aiming at a 12 core server with 4GB memory per core (total of 48gb). The system will have an SSD for the OS and a raid-5 (4x2tb) for data.    I looked around and found a (relatively) cheap vendor, Silicon Mechanics, that offers a system to our liking (specs below) for $6732. However, buying the components from newegg cost only $4464!  The difference is $2268 which is 50% of the base cost. If buying from a company can be thought of as a sort of insurance, basically my premiums are of 50% of the base cost which to me sounds like a lot.   Of course any downtime is bad, but the work is not "mission critical", i.e. if it takes a few days to fix it when it breaks its no the end of the world. If it takes weeks to months then its a problem. If it breaks 2-3 times in 3 years, not too bad. If it breaks every month not good.   In term of build experience, I set up a linux cluster in grad school (from existing computers) and I build my home pcs but I never built a server before.   The server components I'm thinking about:   1 x SUPERMICRO SYS-7046T-6F 4U Tower Server Barebone Dual LGA 1366 Intel 5520 DDR3 1333/1066/800 ($1,050)  12 x Kingston 4GB 240-Pin DDR3 SDRAM DDR3 1333 (PC3 10600) ECC Unbuffered Server Memory  ($420)  2 x Intel Xeon E5645 Westmere-EP 2.4GHz LGA 1366 80W Six-Core ($1,116)   4 x Seagate Constellation ES  2TB 7200 RPM SATA 6.0Gb/s 3.5" ($1,040)  1 x SAMSUNG Internal DVD Writer Black SATA ($20)  1 x Intel 520 Series 2.5" 180GB SATA III MLC SSD $300  1 x LSI LSI00281 PCI-Express 2.0 x8 MD2 Low profile SATA / SAS MegaRAID SAS 9260CV-4i Controller Card, $695


Question about proof that $(a + b)^p = a^p+b^p$ in a field of characteristic $p$.

Definition charactersitic $p$: a field has characterstic $p$ is its prime field is isomorphic to $\mathbb{Z}/p\mathbb{Z}$.  Proposition: let $K$ be a field of characteristic $p$. Then for any $a, b \in K$ we have $(a + b)^p = a^p + b^p$.  Proof: (from my text) because $p \choose i$ is divisible by $p$ for $0 < 1 < p$ it is zero $\mod p$, so $p \choose i$  $a^{p - i}b^i$ is zero (this is the part I don't understand), so it follows from Newton's binomial law.  I understand that the prime field of $K$ is isomorphic to $\mathbb{Z}/p\mathbb{Z}$, so if $a, b$ are in the prime field, then $p \choose i$  $a^{p - i}b^i$ is zero, but that is not necessarily the case is it?


Let $f_n, f \colon [a,b] \to \mathbb{R}.$ Show that, if $f_n \to f$ uniformly, then the Lebesgue integrals are equal, i.e. $\int f = \lim \int f_n$.  This is clearly true for continuous functions, but how do I handle the case of non-continuous functions?


A click on the banner should go to Area51 *inside* the app, not from the default browser

There is a banner at the top of the page "feeds". At the moment, this banner show up the Area51. But when I click on it, it launch Chrome to view the page. It should go to the Area51 inside the app.


Why do you use Class for multiple elements but ID for one?

I understand you should use class for multiple elements and ID for a single element.   However they can both be used on multiple elements.   So are these two elements (class and id) identical in what they can actually do (as opposed to what they are supposed to do) or am I missing something?  For example I've created both Classes and ID's and applied them both to mutliple elements on my fiddle:  (coded below):    #blueid {     color:blue } .greenclass {     color:green }  p#purple {     color:purple }  p.yellow {     color:yellow }
Hey! I am blue id

I am green class
 Yup, also blue id!

 Yet I am green class

I am purple id

I am yellow class
     So why the two different types?


Aliens searching for help against other aliens find a previously locked-away Earth and ask for help

Back in the '80s I read a short story (which might have been old, then) about aliens in a war with other aliens finding Earth which had previously been locked away, I think, by some kind of lock on the Moon.  After some misgivings, they unlocked Earth and landed to ask for help.  Earth seemed completely pastoral and they almost gave up hope of getting help, but persisted and humans finally agreed to help them.  At the end of the story, they get back in their space ship and wait for Earth's space ships to fly out and help them when the Earth itself grows an engine and flies after them.  I have been looking for this story on and off for a couple of decades and have never found it, but my daughter was asking about some of the short stories I enjoyed as a youngster and this one came up, so I'd really like to find it, now.  I've looked through several hundred old anthologies and haven't found it, yet, but I found StackExchange, so I'm hoping someone here can help me.  I know this isn't much detail to work with, but I'm working from old memories.  Thanks in advance for the help (or attempt).


"Imagine there is ... " or "Imagine that there is ... "? Which option is better?

Which one is the better choice at the beginning of a sentence:     Imagine there is ...     or      Imagine that there is ...


No sound from internal speaker but headphones OK

The problem: The system won't play sound on the internal speaker of the laptop, but only on the headphone. When I put the headphone jack half in and fiddle around with it, then it'll play even on the internal speakers (the system apparently believes, that the headphone are in). What should I do?  The technical data: Laptop modell Medion Erazer X6815  $ sudo aplay -l | egrep ^card card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog] card 0: PCH [HDA Intel PCH], device 1: ALC269VB Digital [ALC269VB Digital] card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]   Ubuntu 12.04 64bit  $ uname -a Linux matatabisama-X6815 3.2.0-30-generic #48-Ubuntu SMP Fri Aug 24 16:52:48 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux


Number of elements in a finite $\sigma$-algebra

I have been asked to prove that the number of elements in a finite sigma algebra over a set $X$ is $2^n$ for some integer $n$. How do I go about this problem? I have no idea where to start. Thanks in advance for any ideas.   Do I need to prove that given a set $F$, $\sigma(F)$ is actually a power set of some set say $S$?


I'm looking for a story that I read as a child. The synopsis is something like: "a science fiction story about scientists who create a personal force field which makes a halo appear around their heads when it is on and they use this like gods or angels to trick a foreign invading military to back down"


I installed steam on Ubuntu Mate 15.10, and i cannot open it. I opened system monitor and I saw steam running, so i closed it and I reopened it and nothing. Its status is sleeping if that helps. I opened it in terminal and heres the output.  Running Steam on ubuntu 15.10 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception handler for appid(steam)/version(0) libGL error: unable to load driver: nouveau_dri.so libGL error: driver pointer missing libGL error: failed to load driver: nouveau libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast


Stack Overflow T-Shirt: where can I get one for now?

I did my search and found only  link, which is broken


Why this integral diverges intuitively speaking

I'm reading Stewart's calculus book and I faced with an intuitive issue.  Intuitively, I don't understand why since both graphs looks like the same up to a zoom in/out. Could someone explain to me this intuitively? For me both should be convergent in this context.  It's difficult to grasp this intuitively because it's like both functions are approaching to zero without the area of the second one approaching to zero, how is that possible?


As a computer science graduate, how can I develop a potfolio?

I am a Computer Science Graduate looking to apply for a job in graphic design. I have completed a few graphic design projects for clients I know who needed work done.   From what I understand, I need a portfolio. What do I need to include in a portfolio (designs only, descriptions, etc.) and where would I display these (on a separate website, LinkedIn or elsewhere)?  How do you showcase real life examples of graphic design work that has already been completed?


jQuery .click not firing for descendant selector

Feeling stupid here. The .click() function is not firing and I have no idea why not. The code is really as simple as below. Note: the spans in the .selector-book div are dynamically loaded by a previous function. Any help is appreciated, as always.  HTML:
                         ...
   JS:  $(document).ready(function() {     $('.selector-book span').click(function() {         console.log('test');         $('.selector-chapter').html('');         var p = $(this).data('book-number');         for (var i = 0; i < myBible[p][2]; i++) {             $('.selector-chapter').append('' + i + '');         }     }); });


How to clone all remote branches in Git?

I have a master and a development branch, both pushed to . I've cloned, pulled, and fetched, but I remain unable to get anything other than the master branch back.  I'm sure I'm missing something obvious, but I have read the manual and I'm getting no joy at all.


What is the meaning of Community response as revised and replaced?

Recently I got many responses from  as shown in below image.  It says action as revised and replaced http://stackoverflow.com/ with https://stackoverflow.com/    I know Community a background process that helps keep this site clean! But, I want to know what is the meaning of this response and why should they do it?


x^3=x implies R commutative (Motivation)

let $R$ be a ring, if every element $x$ satisfies $x^3=x$ then show that $R$ is commutative.  Yes, I have read the other two posts regarding this question, and saw many many solutions, however none seems to explain how they arrive at the solution?  Can someone care to show me some advice on how might one arrive at a solution for these problem? Not just the proof itself but how it could have been deduced?  Or is this one of those problems you just have to try different things until you lead to something that works?  thank you


Does anyone know how the lightning in this video was made?     I need lightning for my scene but I don't know how to make it for Cycles. I only found an old tutorial from Blender Guru for the Blender Render Engine. I would be really happy if anyone could help me.


would devil fruit users be affected in fresh water

The sea stone, which is the weakness of devil fruit users, was said to have the same power as the ocean, and it was said that the sea rejected the devil fruit users. I understand that devil fruit users can't swim, but if they were standing in a river or fresh water of any sort, would they still lose all their strength and be unable to do anything? I tried to search for it, but they closed it and archived it, so can anyone help please?


Make Video Sequence Editor (VSE) playback in real time?

How do I make the Video Sequence Editor (VSE) playback in real time? I have some 4K video clips that I want to edit, however, I'm unable to do so because when I hit play I get about 2 FPS playback (even without any effects/Modifiers applied) instead of the video clips/timelines 25 FPS. I have a pretty powerful computer, and these clips have no problem playing back in, for example, Premiere. I know Blender's VSE isn't the best or most powerful, but there's gotta be a way to playback the video and audio clips you edit in real time?


I am still learning about encapsulation. I have a GrammarList, where every Grammar emcapsulated has an array listRule with all their setters & getters. as seen here:  public class Grammar {  private enum Type {Left, Right, NULL}; private String Nom; private static Type type = null; private static ArrayList<Rule> listRule;  public Grammar(String nom, Type type) {     this.Nom = nom;     this.type = type;     this.listRule = new ArrayList<Rule>(); } ... }   Now in my program, I notice that my array listRule (where are the rules associated with a grammar are added ) is being overwritten each time a new grammar is added. I have been able to identify that the error happens on the line Grammar grammar = new Grammar(parametre[0], null); which empties the content of listRule of all other grammars so listRule seems to be the same for every grammar. Is my array listRule created incorrectly or is my loop?      try {         while ((strLine = br.readLine()) != null) {             String[] parametre = strLine.split(",");             Grammar G = GrammarList.containsNom(parametre[0]);             if (G == null) {                 Grammar grammar = new Grammar(parametre[0], null);                 grammarList.add(grammar);                 for (int i = 1; i < parametre.length; i++) {                     SyntaxCheck check = new SyntaxCheck(parametre[i]);                     if (check.isValid())                         grammar.AddRule(check.Rule, check.Sens);                 }             }         }     } catch (IOException e1) {         e1.printStackTrace();     }


how to get last thursday of month in java

I have to fetch date of last Thursday of month of any year but the problem I'm facing is that for the month of dec'15 last thursday is 31-dec-2015 but I'm getting 24-dec-2015 for the following code:    Date getLastThursday(def month, def year ) {     Calendar cal = Calendar.getInstance();     cal.set( year, month,1 )     cal.add( Calendar.DAY_OF_MONTH, -(cal.get(Calendar.DAY_OF_WEEK )%7+2) );     return cal.getTime(); }   And also explain me how this line of code internally works?  cal.add(Calendar.DAY_OF_MONTH, -(cal.get(Calendar.DAY_OF_WEEK )%7+2))


Change the end of multiple similar filenames

I have many files that look similar to this:  56.mp3?referredby=rss   What I want to do is remove the ?referredby=rss so they'll be like this:  56.mp3   How would I do this?


Do I need to have played Mass Effect 1 or 2 to understand Mass Effect 3's storyline?

I have never played Mass Effect 1 or 2.  Do I need to play the first and second installments to understand the third?  Are there enough story recaps to fill in some of the back story?  Will I be lost?


Maximum power of $2$ which divides $3^{1024}-1$

What is the maximum power of $2$ which completely divides $3^{1024}-1$?  I proceeded thus: $\phi(2^n)=2^{n-1}$ for all $n\ge1$ $$3^{1024}=3^{2^{10}}\equiv1\pmod {2^{11}}$$ $$3^{1024}-1\equiv0\pmod {2^{11}}$$ Since $\phi(2^{11})=2^{10}$.  So, maximum power of $2$ must be $11$. But the answer says it is $12$. Where am I wrong and how to solve it correctly?


Why do droids in Star Wars all have random alphanumeric designations?

R2D2, C3PO, BB8 and so on. Is there an explanation in-universe and out of universe for this naming protocol?


Ubuntu Server: how do I upgrade from 16.04 to 17.04 to get better hardware support?

I need hardware support afforded by the newer kernel, so I'm looking to upgrade, but I have only seen instructions relating to desktop editions and need guidance for upgrading Ubuntu Server.


Comparing two equal Strings after intern() method

Javadoc says that if in the string pool there is an equal String that the intern() method will return the String.   public class Demo { public static void main(String[] args) {     String str1 = "Apple";     String str2 = new String("Apple");      System.out.println(str1.intern() == str2); //false     System.out.println(str1 == str2.intern()); //true }  }   I expected to get true in both cases.


Few days ago I added a cronjob using crontab -e which should run every 6 hours, however I noticed that cron job is not working. When I execute my script manually it works, and it should write some data to a file so I know if it works or not. In order to find what's wrong I executed this command: service cron status and I got this:  Redirecting to /bin/systemctl status  cron.service ● cron.service    Loaded: not-found (Reason: No such file or directory)    Active: inactive (dead)   When I execute service cron start then I get this:  Redirecting to /bin/systemctl start  cron.service Failed to start cron.service: Unit cron.service failed to load: No such file or directory.   Can someone give me a hint what to do here, I'm not an expert on this.  Thanks  EDIT: Output from service crond status:  Redirecting to /bin/systemctl status  crond.service ● crond.service - Command Scheduler    Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)    Active: active (running) since Pet 2016-05-13 13:46:20 EDT; 1 weeks 3 days ago  Main PID: 26127 (crond)    CGroup: /system.slice/crond.service            └─26127 /usr/sbin/crond -n  Maj 13 13:46:20 host systemd[1]: Started Command Scheduler. Maj 13 13:46:20 host systemd[1]: Starting Command Scheduler... Maj 13 13:46:20 host crond[26127]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 88% if used.) Maj 13 13:46:20 host crond[26127]: (CRON) INFO (running with inotify support) Maj 13 13:46:20 host crond[26127]: (CRON) INFO (@reboot jobs will be run at computer's startup.) Maj 17 13:49:01 host crond[26127]: (root) RELOAD (/var/spool/cron/root) Maj 17 13:52:01 host crond[26127]: (mailman) RELOAD (/var/spool/cron/mailman) Maj 24 10:06:01 host crond[26127]: (root) RELOAD (/var/spool/cron/root)   EDIT2:  Output from crontab -l:  0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1 30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1 2,58 * * * * /usr/local/bandmin/bandmin 0 0 * * * /usr/local/bandmin/ipaddrmap 46 13 * * * /usr/local/cpanel/scripts/upcp --cron 40 2 * * * /usr/local/cpanel/scripts/cpbackup 23 21 * * * /usr/local/cpanel/bin/backup 35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check 45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache 30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache 30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1 15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1 15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1 */5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1 37 4 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify 13,28,43,58 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1 19 4 * * * /usr/local/cpanel/3rdparty/bin/freshclam --quiet --no-warnings 0 */6 * * * /usr/bin/php /home/legacy/EssentricTools/src/index.php migrate:sync -c prod   My command is the last one


Minecraft pocket edition restoring skin problem

I updated Minecraft PE so I can have custom skins. I clicked on 'restore skins' without selecting any particular skin, It is now stuck with a  message saying 'we're restoring your skins!' but it has been like that for 20 minutes. Is there a reason why it is like this?


How can I find maximum power transfer using Thevenin equivalent

As I understand it, should maximum power transfer be when $$ R_L=R_{th} $$ then $$ P_L= P_{L(max)} $$    So that this should do the trick:  $$ P_{L}=\frac{V_{th} ^2}{R_{th}} $$  But it seems that I am doing something wrong.


$\lambda=\frac{2h}{p}$ instead of $\lambda=\frac{h}{p}$?

I am studying quantum physics and there is something I don't understand:   I know that for any particle $E=hf$ (Einstein relation) and  $v=\lambda f$ ($v$ is the speed of the particle). I also know that the kinetic energy is $E_k=\frac{mv^2}{2}$.    Solving those 3 equations for $\lambda$:  $$h\frac{v}{\lambda}=\frac{mv^2}{2},$$ I finally find $$\lambda=\frac{2h}{mv}=\frac{2h}{p},$$ which is not consistent with the De Broglie relation $$\lambda=\frac{h}{p}.$$ Where am I wrong in my development?


How to set Powershell Color scheme permanently

With PowerShell 5.0, there are lot of customization options. Presently I have created my own color scheme. But I couldn't figure it out how to set these color options permanently.  Set-PSReadlineOption -TokenKind Operator -ForegroundColor "Magenta" Set-PSReadlineOption -TokenKind Command -ForegroundColor "DarkYellow" Set-PSReadlineOption -TokenKind Parameter -ForegroundColor "Magenta"   Now I kept these commands in Profile script, so that they will be loaded automatically, however it doesn't work in all cases when the shell is reset and if I want to load another Profile. Irrespective of profiles, the background color and other options which are available in PowerShell UI remain consistent. I want the same thing.  How do I permanently set these color options for PowerShell Console.


Using the terms 'theorem 'and 'tautology'

I would just like some clarification on the use of the terms "theorem" and "tautology".  I have read  that a theorem is a "formula for which a zero-premise derivation has been provided".  But  it is a "logical consequence of the axioms".  These definitions seem to be in conflict, as are not axioms just premises (Formulae which are assumed to be true)?  And what about a tautology.  My understanding is that a tautology is the same as the first definition of a theorem.  Or is tautology a semantic thing (i.e. valid) whereas theorem is syntactic (i.e. derivable)?


Citing sources of problems in assignments

This question was raised by Dave Clarke .  When a textbook author approaches a topic in a novel way or presents a particularly interesting example, I believe that a teacher who creates lecture notes using this novel approach or interesting example would be doing the right thing to cite the originator of the approach or the example.  Similarly, whenever I copy a clever (and clearly unique) problem from a textbook and give it as a question in an exam or an assignment, I try my best to indicate (in the exam or assignment paper itself) the source of the original problem.  Does anyone know of any written document indicating whether or not it is considered unethical to copy a published problem and put it in an exam or an assignment without citing it?


My aim is to call source(highlighted by minted package) in one of the input.tex file instead of master tex.  This one does not work :     \documentclass{uoyths} \usepackage{minted} \begin{document} \input{chap0.tex}   %Content      \begin{mainMatterEnv}          \CallMintedCodeFromAnotherFile{}          \end{mainMatterEnv} \end{document}   in chap0.tex file :  \def\CallMintedCodeFromAnotherFile { \begin{minted}{c} int main() {     printf("hello, world");     return 0; } \end{minted} }   This one does work in the same file and same pc, any idea ?  \documentclass{uoyths} \usepackage{minted} \begin{document} \input{chap0.tex}   %Content      \begin{mainMatterEnv} \begin{minted}{c} int main() {     printf("hello, world");     return 0; } \end{minted}                 \end{mainMatterEnv} \end{document}   Error message is :    I found the solution and post it to my blog as well.  The solution is : I have put the piece of code to  hello.cpp instead of directly inside \def and then I read it from this source file inside \def. It works perfectly:  \def\CallMintedCodeFromAnotherFile { \inputminted{c++}{hello.cpp} }


Why my Wordpress is trying to connect to an strange url?

I'm managing a Wordpress site and in the lasts months an strange 502 Bad Gateway error has been appearing. I enabled the log and discovered that it tries to access to strange urls like:   gd-join.com  www.toupiaovip.com  balkanskichat.com  gtaturk.com   The log line is this:     stream_socket_client(): unable to connect to tcp://gtaturk.com:80   (Connection timed out) in   /usr/share/nginx/html/wp-includes/class-http.php on line 1008   What could be the reason?


Can't mount an IDE HDD - "can't read superblock" error message

I'm trying to mount my HDD,  /dev/sdb, which is connected via an enclosure but every time I try do so I get an error message   mount: /dev/sdb: can't read superblock   How do I solve this problem and mount my HDD?


If $\sum a_n^2 n^2$ converges then $\sum |a_n|$ converges

Let's suppose that $(a_n)$ is a sequence so that $\sum a_n^2 n^2$ converges, so I have to prove that $\sum |a_n|$ converges.    By the Cauchy criterion we have that, since $\sum a_n^2 n^2 $ converges if $\varepsilon > 0$ then there is a $k\in\mathbb N$ so for all $m,n$ naturals that satisfy $m > n \geq k$: $$ |n^2 a_n^2 + ... + m^2 a_m^2| < \varepsilon $$ but I can't get $| |a_n| + ... + |a_m|  | < \varepsilon$ to show that $\sum |a_n|$ converges. Could you give me a hint? Is there any way to prove this without resorting Cauchy criterion. Thanks!


Did I mess up my chance to get into grad school?

Throughout my undergrad, I was solely focused on grades, university life, and getting a job. While I did talk to professors outside of class, whether related to class work or my own 'math research' (a hobby), I don't feel I have enough of a connection with any of them to ask for a good letter of accommodation for my grad school application. I'm honestly unsure what everyone else did. Maybe I was suppose to have worked with a professor in their research/teaching? I didn't even take those courses like "Topics in __" that have a small amount of independent study in my first three years. I guess I sort of thought I was suppose really get to know the professors and perhaps dip my feet into the research world in 4th year. Well, it's 4th year now, and it was really hard to get close to any professors with covid19 in the shadows. I have only communicated with them through email and faceless zoom chats. Is it really that bad to get recommendations from professors that don't know you that well? I do have good grades, but perhaps not good enough to scream them to the heavens in some professor's one sentence recommendation... Edit: This is for a university in Canada


Consider $\sqrt{n}$, where $n$ is an integer and $1\le n \le 10$. How many of these ten numbers are irrational?        An integer $n$ is randomly chosen from $1$ to $k^2$, where $k$ is an integer. What is the probability that $n$ is a perfect square?   For the first one I had figured out it was $7$ irrationals numbers but did not know how to prove the second question


I want to compare two String for exemple str="abc" and str2="bca" or str3="bac" are all twins (contains the same char) i have this code   package com.hr.access.chaine;  public class ChaineCaractere {  public static void main(String[] args) {     System.out.println(Solution.isTwin("hello", "world"));// false     System.out.println(Solution.isTwin("abc", "cab"));// true     System.out.println(Solution.isTwin("Lookout", "outlook"));// true }  }   and the other class for Solution.isTwins is there   package com.hr.access.chaine;  public class Solution {  public static boolean isTwin(String a, String b) {     int longA = a.length();     int longB = b.length();     boolean retourneValeur;     if (longA != longB) {         System.out.println("Le deux chaine ne sont pas jumeau");         retourneValeur = false;     } else {          // I want to add the code in this place to compare into two string        retourneValeur = true;     }      return retourneValeur; }}   I want to add the another code in the bloc of else and i will affect this if the two string are twins or no Help me please my friend :)


If we fold a paper and then apply pressure on the newly formed crease, it seems that the paper's surface gets a permanent deformation but what exactly has happened to the paper at a molecular scale?


Is there a way to get the text displayed for the "Recurrence" field on the View Item screen for an OOB "Event" list item through the object model?  For example, I see:  "Every 1 month(s) on the first Tuesday"  Is there maybe a calculated field that I can reference using an SPListItem to get at this string (ensuring it's localized correctly)?  For example:  lblRecurrence.Text = item["RecurrenceText"].ToString();   Response targeted for SP2007, but interested if this carries over to 2010?  Or if there is a way to get at it in 2010 that wasn't there before?


I have both county shape files and all road lines for the state, but I would like to clip the roads based on what county they are in.   How can I do this as a batch or model in the ArcMap application of ArcGIS Desktop 10.6.1?   I cannot use Python and I do not have an advanced license (basic only).


If $L$ is regular, prove that $\sqrt{L}=\left\{ w : ww\in L\right\}$ is regular

Let $L$ be a regular language. Prove that $\sqrt{L}:=\left\{ w : ww\in L\right\}$ is also a regular language.    I suppose I need to modify state machine for $L$ to accept $\sqrt{L}$, but I've been thinking how to do that for a few hours and still don't know. I would be very grateful for help.


Water pressure at the base of two different sized cylinders

Will the water pressures at the base of two different sized cylinders be the same if they are filled to the same height? Sorry for crappy drawing


Getting new files to inherit group permissions on Linux

I am having a problem with permissions on a Linux server. I am used to BSD. When a directory is owned by a group the user who owns it isn't in such as www-data, files created in it will be owned by that group. This is important because I want files to be readable by the webserver (which I will not run as root) but so a user can still put new files in the directory. I can't put the users in www-data because then they can read every other users websites.   I want the webserver to read all websites, I want users to be able to change their own.  The permissions are set like this on the folders at the moment....  drwxr-x--- 3 john www-data 4096 Feb 17 21:27 john   It is standard behavior on BSD for permissions to work this way. How do I get Linux to do this?


What book had a prison planet with people able to communicate with living rock?

A friend of mine as a child lent me a sci-fi book that I enjoyed at the time but lost track of.  I've tried searching for it over the years, but having only a few scant details of the story (and no title/author), I haven't had much luck.  The story takes place on a planet that is a sister planet or moon of the main colonized planet in the system.  It is/was used as a prison planet and is completely colonized by exiled families from the main planet.  The main character in the novel is on some kind of path of discovery, trying to find out the origins of the planet that have been lost in antiquity, if I remember correctly.  I remember that he travels to different portions of the planet, meeting with various inhabitants and picking up pieces of their culture, tech and/or powers.  One such culture teaches him to communicate with the living planet, allowing him to bend the 'earth' itself to his will.  He learns this skill by jumping off of a cliff and allowing the ground to 'swallow' him, cushioning his fall. In one scene he is taken prisoner and is unable to escape, even though the cell is made of stone, because the shaped stone is no longer 'alive' in a way that he can communicate with it.  At another point he uses this power to sink an entire island or continent, killing everyone on it, (to what end I don't recall) and the sounds of their dying haunts his head afterwards.  Unfortunately, these specific pieces are about all I can remember other than some vague impressions.  Hopefully they're recognizable to someone!


Why Doesn't C# Allow Static Methods to Implement an Interface?

Why was C# designed this way?  As I understand it, an interface only describes behaviour, and serves the purpose of describing a contractual obligation for classes implementing the interface that certain behaviour is implemented.  If classes wish to implement that behavour in a shared method, why shouldn't they?  Here is an example of what I have in mind:  // These items will be displayed in a list on the screen. public interface IListItem {   string ScreenName();   ... }  public class Animal: IListItem {     // All animals will be called "Animal".     public static string ScreenName() {         return "Animal";     } .... }  public class Person: IListItem {      private string name;      // All persons will be called by their individual names.     public string ScreenName() {         return name;     }      ....   }


Short story about a car that has to always travel above a certain speed

I'm looking for a story I read in the late 80s or early 90s that featured a guy living in his car in the future. The best thing I remember about it was that the car could never dip below a a certain speed in miles per hour (I think it was around 100). I believe he was also in competition or conflict with other cars somehow. It would have been in one of those sci fi anthologies but it might have been a best of a year's science fiction type thing.   It's possible the car or a computer in it was the protagonist. Sadly I don't remember that detail.  Also the roads were somehow built for these cars or the cars were designed for these freeways and the cars never left them. I believe it would have been set in the United States.


Prove that $\lim_{n \to \infty}\bigg[\int_0^1f(t)^n \text{dt}\bigg]^{1/n}=M$

Suppose that $f$ is a continuous, non-negative function on the interval $[0,1]$. Let $M$ be the maximum of $f$ on the interval. Prove that $$\lim_{n \to \infty}\bigg[\int_0^1f(t)^n \text{dt}\bigg]^{1/n}=M$$  We wrote out some simple examples to show it worked for functions such as $x^2$. We are having trouble finding how to create a general proof. Thanks for any help!


How to quickly and safely defrost chicken?

What is the safest, quick way to defrost chicken? Microwave? Running water over it?


My iPad Pro with iOS version 11++ has been disabled and I only get a screen : "iPad is disabled. Connect to iTunes.". It need to be restored in order to function again properly but all data would be erased. How can I access the data while it is disabled ?


Distance travelled by gameObject and behavior depend on device's performance?

The distance travelled by my gameObject and behavior depend on my device's performance. If the device is slow for example, it takes longer to accomplish a specific task, thus travels at a smaller speed, smaller distance etc. and doesn't end up where it's supposed to. How can I fix this?  Here's the code:  variable1 -= variable2 * Time.deltaTime; transform.position += new Vector3 (13, variable1 * Time.deltaTime, 0);


How do I change the specific tags of the questions and answers I receive in the monthly newsletter? Much appreciated.


How can I disable TLS 1.0 and 1.1 in apache?

Does anyone know why i can't disable tls 1.0 and tls1.1 by updating the config to this.  SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1    After doing this, i reload apache I do an ssl scan using ssllabs or comodo ssl tool, and it still says tls 1.1 and 1.0 are supported. I would like to remove these?


Problem: USB not recognized during boot  Installed Ubuntu Release: 18.04  Platform: Compaq Hp 1910b notebook  USB file layout: As shown below  dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:52 boot dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:52 casper dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:50 dists dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:52 EFI dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:52 install dr-xr-xr-x 1 sqladmin sqladmin 34816 Oct 17 08:52 isolinux -r--r--r-- 1 sqladmin sqladmin 34802 Oct 17 08:53 md5sum.txt dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:50 pics dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:50 pool dr-xr-xr-x 1 sqladmin sqladmin  2048 Oct 17 08:50 preseed -r--r--r-- 1 sqladmin sqladmin   225 Oct 17 08:50 README.diskdefines lr-xr-xr-x 1 sqladmin sqladmin     1 Oct 17 08:50 ubuntu -> .   Is the problem with the file layout? The boot sequence is CD, USB, Disk  Thanks;  Sherman


I'm having a function where an excel file is passed as an argument to it. My function manipulates the passed file and does some calculations from the values of the existing column, writes those values into the new column, and then it writes it as .csv format. Now, I just want to hide this code i.e user should not see the code. I want to run this from a terminal by passing the input file.   I have converted my .py file to .pyc file. now I want to run the .pyc file by passing my input file in anaconda prompt.


Script: assign image texture to Image Texture node

I am trying to assign an image texture to an Image Texture node in 2.80. Very simple script - I'm just starting to learn how this stuff works.  This is what I have. It creates an image and and IT node, but it doesn't assign the one to other. Can anybody help? I've searched around, but can't find it in another question.  import bpy  #create blank image bpy.ops.image.new(name="TestImg", width=1024, height=1024)  #add image texture to object, to hold baked lighting mat = bpy.context.view_layer.objects.active.active_material image_node = mat.node_tree.nodes.new('ShaderNodeTexImage')  #assign image to image texture node image_node.image = "TestImg"   Thanks in advance.


reduce gap between subfigure and subcaption

I am trying to reduce the gap between the subfigure and the subcaption.      \captionsetup[subfigure]{labelformat=empty, aboveskip=10pt}   but the line of code above does not work.  \begin{figure} \captionsetup[subfigure]{labelformat=empty, aboveskip=10pt}     \centering     \subfloat[Ground Truth]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-gt.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[Recurrent Neural Network]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-rnn.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-vrnn.png} }}     \\ \vspace{-0.5\baselineskip} \noindent\rule{14cm}{0.4pt}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-gt.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-rnn.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-vrnn.png} }}     \\ \vspace{-0.5\baselineskip} \noindent\rule{14cm}{0.4pt}         \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-gt.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-rnn.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-1-vrnn.png} }}     \\ \vspace{-0.5\baselineskip} \noindent\rule{14cm}{0.4pt}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-gt.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-rnn.png} }}     \\ \vspace{-1\baselineskip}     \subfloat[]{{\includegraphics[width=\textwidth]{ood-ms/ood-3-vrnn.png} }}     \\ \vspace{-1\baselineskip}     \caption{}     \label{fig:ood} \end{figure}


I have been working on a project involving two computers. I have been using Git to manage the code and sync it, but now, when I try to use Git pull, it fails, saying that there are conflicts and telling me to resolve them.  So, my questions are: What causes this? What is a conflict? How can I fix it? Can I force Git to pull?  Any help is appreciated.  Sorry, I'm kind of a noob...  Also, I'm using Linux.  Thank you!


List.Clear() vs List = new List in C# (possible ByReference issue?)

I was doing the AoC day six challenge when I noticed a bug in my program. In the code below, when using List<string>.Clear() and the end of the loop I had 486 copies of the last List<String>'s values. I found a fix (hack?) but I want to know why .Clear() isn't working on my List<String>. Full program can be found  int result = 0; List<List<string>> groups = new List<List<string>>(); List<string> buffer = new List<string>(); buffer.Clear();  foreach (string s in lineList) {      if (!string.IsNullOrEmpty(s))     {         buffer.Add(s);     }     else     {         groups.Add(buffer);          //// old way         //// was getting 487 copies of the last group         // buffer.Clear          // new way, works but I don't understand why         // byref vs byval issue?         buffer = new List<string>();      }     }


What are the differences between "seems not" and "doesn't seem"?

Are the following sentences correct?     He seems not to want to help us   and         He seems want to help us.   Is it correct if I use "seem" in a negative sentence? Which role does "seem" play?  Is there any difference in meaning between:    It seems not working for me.   It doesn't seem work for me.  It seems not to be working.   Please tell me the differences between the three of them and in which situation I can use them.


Although the meaning of the phrase was provided in ,  in addition to having an entry on ,  how exactly did the idiom originate? From my interpretations, "not but" combined with either "that" or "what" is syntactically incorrect, and so did it evolve from some earlier linguistic construction that may have been syntactically "correct" with reference to earlier English syntactic rules?


Evaluating and proving $\lim\limits_{x\to\infty}\frac{\sin x}x$

I've just started learning about limits. Why can we say $$ \lim_{x\rightarrow \infty} \frac{\sin x}{x} = 0 $$ even though $\lim_{x\rightarrow \infty} \sin x$ does not exist?   It seems like the fact that sin is bounded could cause this, but I'd like to see it algebraically.   $$ \lim_{x\rightarrow \infty} \frac{\sin x}{x} =  \frac{\lim_{x\rightarrow \infty} \sin x} {\lim_{x\rightarrow \infty} x}   = ? $$  L'Hopital's rule gives a fraction whose numerator doesn't converge. What is a simple way to proceed here?


Why aren't Faraday's law of induction and Maxwell-Ampere's law (without sources) symmetric?

I was wondering why Faraday's law of induction and Maxwell-Ampere's law (without sources) are not totally symmetric in the sense that Maxwell-Ampere's law has a $\epsilon_0 \mu_0$ term on the right (in SI units) while Faraday's law doesn't, as symmetry is an important feature in most physical laws.   \begin{align} \nabla\times\mathbf E&=-\frac{\partial\mathbf B}{\partial t} \\ \nabla\times\mathbf B&=\color{blue}{\mu_0\varepsilon_0}\frac{\partial\mathbf E}{\partial t} \end{align}  A popular reference book states the reason being "that we use SI units". Can anyone tell me how using a particular unit can affect the symmetry of physical laws written in their mathematical form?


Assuming photons have no mass, as I believe they don't, how does gravity affect photons in order to bend them?


If I cast Misty Step or Teleport while bound with manacles or ropes (but still able to make somatic gestures), do the manacles or ropes go with me?


Do powers of 256 all end by 6 and if so, how to prove it?

I computed the 10 first powers of 256 and I noticed that they all end by 6.  256^1 = 256 256^2 = 65536 256^3 = 16777216 256^4 = 4294967296 256^5 = 1099511627776 256^6 = 281474976710656 256^7 = 72057594037927936 256^8 = 18446744073709551616 256^9 = 4722366482869645213696 256^10 = 1208925819614629174706176   My intuition is that it is the same for all powers of 256 but I can't figure out how to prove it, any suggestion?  My attempt was to show that $\forall n$ there is a $k$ such that $2^{8n} = k*10 + 6$, $k$ and $n$ being non null integers. I tried to decompose the right member in powers of $2$ but that leaves me stuck.


Link comment flags in the flag history page to the flagged comment, if it still exists

Note: This is not the same as , which is about the moderator tool. I am talking about the flag history page that is accessible through the user profile at .  I tend to have a pretty good hit rate for flags, well above 90% helpful on several sites. I also semi-regularly review the flag history page, both to see the status of any outstanding flags as well as see how flags I raised have been handled. Particularly, whenever a flag of mine is declined, I look over the post I raised the flag against with this new information in mind, to try to determine if I should change my flagging behavior in some way to better match the specific site's scope.  However, comment flags are difficult in this regard. Most often, there is only a binary status: helpful or declined. Helpful comment flags nearly always lead to the comment being deleted, so that obviously could present a bit of a problem, but that's not really relevant because a helpful flag means you should just keep doing what you've been doing. Declined comment flags, on the other hand, usually mean the comment is kept. It's the declined comment flags that I want to learn more about. But there's no way to!  All the flag says is which post it was on, how I flagged a comment, that I was the one to raise the flag (which frankly is rather useless information when you are already looking at your own flags summary), when the flag was raised and whether it's pending, helpful or declined. In a very few cases the moderator handling the flag may leave a helpful return comment.  This can get even more confusing if I raise multiple flags in quick succession against comments on the same question including any answers to it, because they basically all get bundled together.  Even in the case of a declined flag where the comment remains, there is no way to find your way back to the specific comment you flagged! Thus it is very difficult to recognize the error of your ways. Because comment flags (with few exceptions) are handled by diamond moderators only, the lack of feedback about which comment's flag was declined means it's easy to keep wasting the moderators' time without even intending to do so.  Hence my feature request: add a link to the specific comment that the specific flag was raised against, ideally only if that comment remains.


Is it possible to use variables in count braces in Bash?

I'm searching for a solution to a Bash 4 problem I have.  Bash 4 is able to iterate with leading zeros.  For the line:  for i in {001..005}; do echo -n $i" ";done;echo   the output is  001 002 003 004 005   but when I try this:  a="005"; for i in {001..${a}}; do echo $i;done   or something similar, the result is:  {001..005}   What am I missing?


If you use "that" to introduce a full quote from a person is there still a comma and is the first letter of the sentence capitalized?  For example, which one of the following is correct?  Bob once said that "a big fish is a good fish."  OR  Bob once said that, "A big fish is a good fish."


How to display different layers in each 3D View?

How can I show different layers in separate windows? For example, show layer 1 and 2 in one window, and show layer 3 and 4 in another window?  I need this so I can see everything I am doing correctly since I do have a messy rig.


Cannot shrink C: partition: Not enough space

I am trying to create a new partition on my laptop (XPS 12 9Q33, 128GB SSD) by shrinking the C:\ partition. However, despite the fact that it indicates there is enough space, it displays an error message. I have successfully done this on my desktop, but for some reason it fails on my laptop.     There is not enough space available on the disk(s) to complete this operation.   I am trying to shrink C:\ (which has ~25GB free) by 10GB.  I have:   ensured there are no files at the end of the sector (disabling pagefile, etc.). See  for how to do that (and you do need to do that). turned off my antivirus temporarily. disabled BitLocker encryption.   And it still fails. I've even tried Paragon's Partition Manager, which claims there is not enough space on the disk, which is not true.  I have even tried shrinking different sizes (down to 256MB), but to no avail (it still displays the same error).  Screenshots:      Any help would be appreciated.


Why should one use EM vs. say, Gradient Descent with MLE?

Mathematically, it's often seen that expressions and algorithms for Expectation Maximization (EM) are often simpler for mixed models, yet it seems that almost everything (if not everything) that can be solved with EM can also be solved with MLE (by, say, the Newton-Raphson method, for expressions that are not closed).  In literature, though, it seems that many favour EM over other methods (including minimization of the LL by, say, gradient descent); is it because of its simplicity in these models? Or is it for other reasons?


How to choose between multiple math postdocs offers?

I am trying to decide between some math postdoc offers, and I can't decide what is important for a postdoc position. I have talked to several senior mathematicians including my advisor, but they all seem to have different opinions. I just want to hear some more opinions on the following:   How important is prestige? Suppose that I have an offer from school X, which is fairly prestigious (something like top 10, which isn't a well-defined notion). Also suppose that I have an offer from school Y, which is not as prestigious but a better match research-wise. Suppose that the ranking of school Y is approximately n (again, not a well-defined notion). For which values of n should I choose school X over school Y? My goal is to become a tenure-track professor in a PhD-granting institution. What makes a good postdoc supervisor? I can think of the following criteria: compatible research interests, being well-known in one's field, compatible personalities, generous with time, etc. Am I missing anything else?


Logins with only HTTP - are they as insecure as I'm thinking?

Recently I was thinking about how websites like gmail and amazon use HTTPS during the login process when accessing your account. This makes sense, obviously, since you're typing in your account username and password and you would want that to be secure. However, on Facebook, among countless other websites, their logins are done with simple HTTP. Doesn't that mean that my login name and password are completely unencrypted? Which, even worse, means that all those people who login to their facebooks (or similar sites) at a wifi hotspot in public are susceptible to anyone getting their credentials using a simple packet sniffer (or something similar)? Is it really that easy? Or am I misunderstanding internet security?  I'm a software engineer working on some web related stuff, and although at the current time I'm not too involved with the security aspect of our software, I knew I should probably know the answer to this question, since it's extremely fundamental to website security.  Thanks!


How to make a while loop end with a specific input

This is the code I have right now and can't figure out why this while loop isnt ending when there is a period entered. while (emailTxt!="."){   emailTxt = "";   emailTxt = scanner.nextLine();   totalText.add(emailTxt); }


Android timer task when I stop and run it shutdown

I use android java, I have two button, button A is run timer, it can change many vocabulary in 5 second, the Button B is stop timer, when I press button A ,timer run fine, press button B is fine too. But when I press button A->button B->button A, it will shut down,how can I slove this problem? thanks. this is my code:    private Button.OnClickListener handbtn=new Button.OnClickListener(){//ButtonB     @Override     public void onClick(View view) {                   if(timer != null) {             timer.cancel();             timer.purge();             timer = null;         }              url ="https://kei-sei.com/cram/n5.json";             level.setText("N5");                  String result = dbn5.executeQuery(url);         try{                           JSONArray array = new JSONArray(result);                          Random random=new Random();             int tmp=random.nextInt(array.length()-1);             JSONObject jsonObject = array.getJSONObject(tmp);             String word = jsonObject.getString("word");             jp.setText(word);         }         catch(JSONException e) {                      }     } }; public void begin() {       timer.schedule(new MyTimerTask(), SEC*1000, SEC*1000) ;  } public class MyTimerTask extends TimerTask {     public void run()     {              url ="https://kei-sei.com/cram/n5.json";             level.setText("N5");         String result = dbn5.executeQuery(url);         try{             JSONArray array = new JSONArray(result);              Random random=new Random();             int tmp=random.nextInt(array.length()-1);             JSONObject jsonObject = array.getJSONObject(tmp);             String word = jsonObject.getString("word");                           jp.setText(word);         }         catch(JSONException e) {                      }     } };  private Button.OnClickListener autobtn=new Button.OnClickListener(){//ButtonA     @Override     public void onClick(View view) {             begin();                  }               } };


What order are these modifiers applied in? I would think the Armature would be applied first, followed by Lattice. Or is it the other way around?


How to add/subtract months from given date in Excel

Here is my scenario:  I have to populate list with dates and some metadata of upcoming events for the following year in my Excel application. Some of the events are occurring on the same day each month, e.g. the 3rd day of month.  So the question is:  Is there any function so that I can add one month to given date, like:  cell A1: 1/23/2013 cell A2: 2/23/2013 cell A3: 3/23/2013   What did not work: Apparently A3=$A2+30 produces 3/25/2013 which is wrong.


How to license P2V OEM Windows 7 with a retail license with VMware Fusion?

A friend of mine did a P2V of his Acer physical Windows 7 Home Premium to run on his Mac using VMware Fusion.  Now the VM complains it is not properly licensed. Microsoft is directing him to Acer, and Acer to Microsoft.  In the mean time, he bought a new retail Windows 7 Home Premium License and Media, but doesn't want to reinstall his machine. However that license does not work; he gets a Dutch message (that has an error code 0xC004C008 when going to "Details") which I've tried to translate.   Dutch   Geef een andere productcode voor activeren op. De opgegeven productcode kan niet worden gebruikt om Windows op deze computer te activeren.  English   Enter a different product code to activate. The entered product code cannot be used to activate Windows on this computer.    What ways are there to get this machine properly licensed?


When can a file be in use by a process when it is not in use by a process?

Forgive the riddle-like question, but that's what I'm experiencing (I think). What I'm trying to do is delete a specific file. When I originally tried to delete it, Explorer tells me it's in use by System. What I did was to deny Full Control to NT AUTHORITY\SYSTEM (the "user" under which the process "System" was running, as told by ) on the file, and restart the machine.   After restarting, I go to delete the file and get a File In Use dialogue saying "The action can't be completed because the file is open in another program". I return to the ever useful Process Explorer to search for that file name (my default method for finding what process has locked a file) but when searching for Handle or DLL substring, Process Explorer returns 0 results, as if the file is not in use by any process at all. I'm running Process Explorer as Administrator by the way. I was even able to rename the file and restart again, but still cannot delete it.  Can anyone elighten me as to how this happens? How can I find out what process is holding on to that file, so I can kill it and delete the damned thing?  Edit:  suggested this a duplicate of , and although it provides a solution to my specific problem, I would like an answer explaining why I can't find out what process is using the file I wish to delete.


Unknown characters on Greek files on QGIS3

In the attribute table of the shapefile there are some weird characters instead of Greek ones. I tried UTF-8, Windows-1253, Greek and ISO-8857-9 when upload the shapefile on the QGIS 3.1.4. Although nothing seems to work. Any other reccomendation?


Can a maths undergraduate apply for a physics PhD?

Can a maths undergraduate apply for a physics PhD without going into masters program? Given that during his undergraduate course he published a couple of papers on physics in respectable physics journals


Does creating a new SqlConnection in the constructor close it?

Does instantiating a new SqlConnection in the SqlCommand's constructor close it?  For example:  using (SqlCommand comm = new SqlCommand(query, new SqlConnection(connString)) {     // do some stuff }   Will that call .Close() on the connection?


Validity of naively computing the de Broglie wavelength of a macroscopic object

Many introductory quantum mechanics textbooks include simple exercises on computing the de Broglie wavelength of macroscopic objects, often contrasting the results with that of a proton, etc.  For instance, this example, taken from a textbook:     Calculate the de Broglie wavelength for      (a) a proton of kinetic energy 70 MeV      (b) a 100 g bullet moving at 900 m/s   The pedagogical motivation behind these questions is obvious: when the de Broglie wavelength is small compared to the size of an object, the wave behaviour of the object is undetectable.  But what is the validity of the actual approach of applying the formula naively? Of course, a 100g bullet is not a fundamental object of 100g but a lattice of some $10^{23}$ atoms bound by the electromagnetic force. But is the naive answer close to the actual one (i.e. within an order of magnitude or two)? How does one even calculate the de Broglie wavelength for a many body system accurately?


Error joining community: not "trusted in other communities" rep

I received an error message when I tried to join the Super User community.  I followed some instructions  and fixed the issues with my profile. However, I'm still with only 1 reputation point on Super User.  Unlike the linked question, the issue I'm mentioning didn't happen at any point when several users were having this problem. So after 24 hours I don't have much hope that my reputation issue will be solved automatically.  What should I do to get SE to give me the 100+ rep bonus on Super User?  (By the way, I'm aware that issues should be addressed first in the respective communities, but I don't have enough reputation to bring this issue in the Super User meta.)


How do I kill Golem in Pre-Hardmode? I already know how to get into the Lizahard temple. Once I was inside I summoned Golem with the Lizahard power cell, but he has 10000+ health.  What is the easiest way to defeat him?  In this picture it shows I have gone to the temple in Prehard mode.


Eclipse was working as good as anything on 14.04. I did a clean install of 16.04 and installed Eclipse. But it runs a Java program only once after which it just hangs during subsequent attempts before I remove and reinstall it. I have tried many things, since in the beginning I needed CDT as well. Right now, I just want to remove everything related to eclipse and do a fresh install (remove all the configs and dependencies). Please note that I used Eclipse installer to install Eclipse and the eclipse icon image is also not appearing (the default ubuntu ? is appearing).


Interpretation: Further actions to come out of this discussion

In a business email, I found this expression. I wonder how I can make a full sentence from this expression: "Further actions to come out of this discussion." What I'm guessing is: "Further actions will come out of this discussion". If I'm not wrong, how can this short form be applied? Is it possible to use "noun to verb" instead of "noun will verb" always?


I asked a  which I believe according to the criteria      Asked a question with no answers, no comments, and low views for a week   My answer currently has:   Asked 27 days ago Viewed 21 times No Answers, No comments   I expect the reason that I have not received the badge because I have received one upvote on my question, but this is not in the criteria. Or is 21 times too many views?


I am using Ubuntu 12.04 LTS. I have three users - one administrator and two standard users. I changed the password for administrator to 'None'. Later I used passwd command to set the password for the same user. But the password is not getting set.


Does a modern PC require a graphics card to run?

As I can remember, on old systems (Pentium II or III) it was not possible to boot and run the PC if the graphics card was missing (AGP cards were used in those days).    Many years from then, I'm using motherboards with integrated graphics and I have no experience related to this subject, the "graphics card" always was present.  Currently I intend to build a home/private "server" for my purposes and most of the motherboards I want to buy have no integrated graphics (AMD 870 or 970). I can take a normal graphics card from my friends for a few hours/days and use it when installing the necessary software.    Can I boot and run the PC without problems after I install everything I need and the graphics card is removed?  If a general answer cannot be given, at least some examples of manufacturers/MB series/MB models will be helpful.  I think it's obvious, but for completeness, I mean cheap desktop components and not real servers.


Disable automatic iTunes launch when iPhone is plugged in via USB

How do I disable automatic iTunes launch when iPhone is plugged in via USB (for charging)?    In fact, I would like to disable automatic launch of anything when an iPhone is plugged in (including photo sync).


values of all rows is getting changed when I am trying to change the value of just first row of a matrix in python

cost = [[-1]*2]*2   matrix = [[2,3],[4,5]]   for i in range(2):       for j in range(2):            if i == 0:                cost[i][j] = matrix[i][j]           print(cost)   I am expecting output  [[2,3],[-1, -1]], but the actual output is [[2, 3],[2,3]]. I am not understanding that why are second-row elements are getting changed along with the first row?


Book about a boy that enters a medieval fantasy PC computer game

This is a repost with additional info of an older question that was never answered. I have stumbled upon this old question while also trying to find the name of the book series myself, as I dearly wish to read it again but for the life of me, I can't remember the name of it.      This is a long shot but I'm really in need of help for this because      it was an amazing book. It was either a kid's or YA book. A guess      from what year it was published would be 90s-mid 2000s, as I read it      around 2008-2011.         The book cover was in first person view, with the main character   holding a weapon, and was a 3D rendered image inside a dungeon or   cave (that was very reminiscent of early 90s CGI animation), though   there may be variants.    It would have been set around when computer   games were mainstream (maybe around the same time as when it might've   been published) It's about a teenage boy who is bored at home, so he   looks through an old family computer to play a game and finds one   that he has never seen before. When he plays it he gets transported   into the game which is a fantasy-medieval setting.    All that I can   remember about the game and story is that the main character is on a   quest, he rides horses a lot, (to the point where he can ride horses   perfectly in real life), at one point he eats food at an ingame   tavern/restaurant? and he tosses the ingame coin currency at the   server because he's in a hurry, (don't know why I remember that bit   specifically haha), and he meets a gnome/dwarf character who is   helping him on his journey, who has a home in an ingame mountain, and   that time goes faster in the game. (For example, if he spent 5   minutes in the real world, 3 in-game days would have passed)   Sometimes as he's playing something stops him from being able the   play the game for a few weeks, maybe a concerned parent because he's   playing too much or there's a family vacation. I remember during the   time when he's not playing the game he's on a farm and knew how to   ride the horses there.    There was a character in the real world who   was the main character's sibling, relative or friend. They were like   a rival and was also very whiny (to some extent). They were on the   farm as well with him and questioned how the main character knew how   to ride a horse when he had never done it in real life.   This is all I can remember but if you need more specific information I can try and answer. It is definitely not Space Demons or Demons Don't Dream. If anyone knows anything remotely similar please mention it, I would really appreciate it. Thank you!!            Additional info:    It is not an online game or virtual reality game. It was a normal PC game, and all other characters are (I think), just NPCs.  He woke up for the first time in a field/farm and was super confused about what happened and where he was, as he had never played the game before. He is asked a super serious question before starting the game up for the first time, like "are you sure you wish to play ___?", and then he is transported into the game.  He frequently exited the game, to continue his IRL life. And sometimes, he would lose access to the family desktop PC for a couple of days at a time, and when he went back everyone in the game (NPCs), thought he had disappeared because he was gone for ages. I think once, his family when on holidays and he couldn't take the PC, for example.  It was a book series, not a single book. In later books he would play the game again months later in the real world, and years and years would have passed in the game world.  The plot involved 2 main warring sides/factions/countries of humans, but there were fantasy/magical races and characters involved. I vaguely remember something about each side having official colours, one red and one blue. I think the main character was on the blue side.   The original question was never correctly answered, so I'm posting again to see if anyone can remember.   Books that were ruled out in original post: Eden's Gate & Heir Apparent.


Is the series $\sum_{n=1}^\infty {1\over n(n+1)(n+2)}$ convergent or divergent? Justify your answer.

I understand that the serie's limit will be 0 since as the denominator gets bigger it gets smaller, but I do not know how to justify this answer.  I know there are probably a couple ways for this to be justified, and just so you guys know what I understand so far, the chapter name this problem comes out of is "Infinite Sequences and Series." Hopefully, that helps. thank you.


Is a continuous function on a bounded set bounded itself?

If $f\colon A\to\mathbb R$ is continuous and $A$ is a bounded set, does it necessarily follow that $f$ is bounded?


Star Trek Voyager: Why does the Main Computer act less intelligent than a hologram?

Holograms, whether designed to be sentient (To learn and adapt) or as simple pre-designed characters have shown to be capable of rivaling any Human when it came to realism. The Doctor is a late-case of this ingenuity, a relitively new technology at the time -- But Holograms themselves were not.  The Voyagers computer is stiff, it acts too artificial. When it doesn't understand a question it gives off the impression of being unintelligent, compared to a holodeck character who'd likely be capable of discerning what the user was requesting of it fairly quickly.  I could understand this design choice for a stable AI that uses little processing power...  But if the above were a non-issue, I don't understand the design choice of an AI that feels long outdated, despite being state of the art. Can anyone explain this to my satisfaction?  Edit: Long overdue edit. This was not a duplicate of the Question linked, but rather a question as to why the AI acts (Verbally) less intelligent than it is. The link offered that claims this is a duplicate is towards the Federation's lack of using True Artificial Intelligence on their computers (Which is a good move, see most interactions with Sentient AI's and those who think they're Sentient) Mine was towards the lack of User Friendliness. To give the Computer a slight Personality reminiscent of that of a Holodeck Program would make it more user-friendly, capable of responding in other ways outside of "Please restate the Question" which is stiff and gives off the impression of being a simple program. "I am unable to decipher the phenomenon we are witnessing, Captain." Versus "Unknown."


let $x,y,z$ be positive real numbers  $$\frac{x^2}{y+z}+\frac{y^2}{x+z}+\frac{z^2}{x+y} \ge \frac{1}{2}(x+y+z)$$  then how to prove above by Cauchy Schwarz  -Inquality


I am using Ubuntu 12.04 with a dual monitor setup.  I like Firefox to have a specific position and size on my screen. So I resize it and position it like I want it. But when I close and reopen it, it randomly resizes and positions itself as it wants.    Is there a way to make Firefox remember it's size and position?  I have tried compizconfig settings manager but this changes the default behavior of all firefox windows, including pop up dialog boxes.  I'm hoping there is a better method.  Thanks


During development of a data compression routine, I needed to implement $log(x!)$ as it came up in entropy estimation. As $x!$ is impractical to represent as an intermediate result due to its magnitude growing very quickly with $x$, I set out to find an approximation as that's good enough for my use case. My first idea was that $log(x!) \lt log(x^x)$, and thus $x\cdot log(x)$ shouldn't be too far off, just a bit too large. But then I noticed that the difference between the true value and this approximation was very nearly equal to $x$ Thus, my approximation at that point was: $$log(x!) \approx x(log(x) - 1)$$ (Which is honestly good enough for my usecase as-is) However, by plotting the error for large values of $x$, I noticed the error was roughly proportional to $log(x)$ From that, I obtained a better approximation: $$log(x!) \approx x(log(x) - 1) + \frac{log(x)}{2}$$ Again using incrementally larger values of $x$ to see how the error behaved, I noticed the error seemed to decrease as the values grew larger, seemingly converging towards a constant. As I had no idea what the closed form of this constant could be, I put the decimal expansion into a search engine to see if anything probable came up. This was in fact the case, and $log(2\pi)/2$ matches all digits of floating point precision I could obtain. Thus, I finally have: $$log(x!) \approx x(log(x) - 1) + \frac{log(x)}{2} + \frac{log(2\pi)}{2}$$ My question is then:  Can it be shown that this approximation does indeed not stray away from the exact solution even if $x$ grows very large?  (I strongly suspect this must have name since it's immediately useful. Knowing what this approximation strategy is called will most likely solve my problem, since I will then be able to easily look up relevant information)  Has my very informal quest for an approximation missed an exact closed form that could be used instead?


I have taken many screenshots on Minecraft Java edition, but I can't find them in the screenshots folder on my computer. Can you please help me? (I have Windows 10)


Material driver works, but doesn't update in viewport

I'm on Blender 2.79. When using drivers on node properties the material doesn't update on the Rendered/Material viewports until I force reload it.  My drivers are pulling custom object properties from a parent armature and running it through a scripted expression. This driver's output is then fed into the Y Scale of a Mapping node. It works wonderfully, the value updates immediately, but the viewport doesn't.  Starting point:    After changing the parent's custom property, the driver updates, the node value updates, but the material in the viewport doesn't:    After I hit SHIFT+Z twice to exit and reenter the Rendered mode, the material updates:    Another way to force the viewport update is to make a manual change to the material, like disconnecting a random node or changing the texture location, or to the drivers, as changing the type of a second driver. But automatically? No success so far.  What am I doing wrong?


Adding bibliography to table of contents in scrreprt, using biblatex and biber

EDIT: The cause for the problem described below was that     I'm attempting to add my renamed bibliography as an unnumbered top-level (chapter) entry to the table of contents (TOC) in my document, but so far all of my attempts have been unsuccessful. Below is an MWE for my latest and tidiest attempt, plus the output. Does anyone know what my code is missing? I'm using MiKTeX 2.9, Biblatex 2.8, Biber 1.8, and I've made sure all my other packages are up to date as well. I'm using the pdflatex compiler.    Main document  \documentclass[bibliography=totoc]{scrreprt} \usepackage[backend=biber]{biblatex}  \addbibresource{test.bib}  \begin{document}  \tableofcontents  \chapter{Chapter}  Lorem ipsum dolor sit amet \cite{entry}.  \printbibliography[heading=bibintoc,title=References]  \end{document}     test.bib  @article{entry, author = {John Doe}, journal = {TeX Monthly}, pages = {1----10}, title = {{How do I get this to work?}}, volume = {99}, year = {1234} }     Output        I tried working around the problem by adding the line  \addcontentsline{toc}{chapter}{References}   just after the printbibliography command, but this causes the TOC to reference the bibliography one page early. And besides, it is only a workaround, not a solution.


Are there systems in classical mechanics that are provably non-deterministic?

N body problems mostly don't admit any algebraic solutions although they can be solved numerically at least in principle. Determinism basically is the claim that given any system and its initial conditions one could in theory always calculate all the information about that system in any given time. This leads to the concept of deterministic chaos, systems that are very sensitive to initial conditions tend to be for all practical purposes unpredictable and therfore their state undeterminable. But theoretically given any amount of computing power can you determine the state of any classical system, or is classical physics not a completely deterministic theory?  This is not about non uniqueness or some artificial examples. The point is for example the problem of the stability of the solar system. Given a gravitating n body system can you find its state at any time t. Can this be proven to be undecidable.


I'm trying to unbrick my Buffalo WZR-HP-G300NH that had OpenWRT on it (it bricked when I tried to go back to stock.) Windows fixes didn't work so I am trying an Ubuntu 17.10 Live USB, but I am running into problems and don't know much about Linux so I'm stuck  These are the instructions I am following:  sudo apt-get update sudo apt-get install tftp-hpa sudo /etc/init.d/networking stop sudo ifconfig eth0 192.168.11.2 sudo ifconfig eth0 netmask 255.255.255.0 sudo arp -s 192.168.11.1 00:1D:12:34:56:78 #change to the folder where you put the firmware image, if it's on desktop then it's #"/home/ubuntu/Desktop". cd /home/ubuntu/Desktop tftp 192.168.11.1 *from this point, you're under tftp command prompt, the "tftp>" is the prompt tftp gives you, you just need to type the command AFTER that. tftp> verbose tftp> binary tftp> trace tftp> rexmt 1 tftp> timeout 60 tftp> put wzrg300nh-firmware.tftp   and I'm getting stuck at sudo ifconfig eth0 192.168.11.2 because it says  eth0: error fetching interface information: Device not found   I tried the same step with eth1, eth2, etc but it can't find it. I do have internet connection so I know the Ethernet card works  edit: apparently this got flagged because it wasn't specific enough. I guess my question was how to find what my version of eth0 was and chilli555's answer was what worked for me, it turned out to be enp1s0 and I managed to unbrick my router as a result, so thanks!


80s sci-fi/fantasy cartoon where bread is somehow rolled up and used like a bomb

I have been trying to identify this for years with no success. I was born in the early 90s and watched this as a small child, most likely between the years 1996 and 2001. What I remember: English language, but could have been dubbed. Western-style cartoon animation. It did not seem particularly dated at the time (at least to my eyes), so I would guess that it was produced sometime between the 1980s and when I viewed it, probably no earlier. I may have either watched it broadcast on cable (in the United States) or on a VHS tape. It may have been either a full animated movie, or a single episode of some series. The setting seemed to be a mixture of sci-fi and fantasy. There were strong Star Wars vibes: I remember there being both a magical or technologically advanced sword-like weapon as well as an older mentor figure. I remember a lot of green -- possibly some scenes took place in a forest? As far as the plot, I remember almost nothing except for a scene where the 'good guys' are eating some kind of meal at what I believe to be the villain's lair/castle, when one of them rolls up some bread (or similar food) into a ball with his hands and somehow uses it to make a kind of bomb/smoke bomb that helps them escape. As I was very young, some of these details may be inaccurate.


How do I create a multisite with  shared users and nodes?

I want to create a multisite with Drupal 7: Every site works separately but users, and nodes must be shared among the sites.   How do I achieve it?


Could shield of faith cast by multiple casters stack on one creature?


How to look up a symbol or identify a letter from a math alphabet or other character?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


Here's my attempt. Any tips on a better solution?:  // for loop to convert 32 to 16 bits uint32_t i; int32_t * samps32 = (int32_t *)&(inIQbuffer[0]); int16_t * samps16 = (int16_t *)&(outIQbuffer[0]); for( i = 0; i < ( num_samples * 2/* because each sample is two int32 s*/ ); i++ ) {     overflowCount += ( abs(samps32[i]) & 0xFFFF8000 ) ? 1 : 0;      samps16[i] = (int16_t)samps32[i]; }  // Only report error every 4096 accumulated overflows if( ( overflowCount & 0x1FFF ) > 4096 ) {     printf( "ERROR: Overflow has occured while scaling from 32 "             "bit to 16 bit samples %d times",              overflowCount ); }   Here's the part that actually checks for overflow:  overflowCount += ( abs(samps32[i]) & 0xFFFF8000 ) ? 1 : 0;


set a limit on concurrent SSH/SFTP connections to 2 per user

I made the changes in /etc/security/limits.conf   test        hard    maxlogins       2 sftptest    hard    maxlogins       2    After above entries I have tested below scenarios    Open 2 putty sessions when I tried to open 3rd sessions it disconnect automatically (Working fine with ssh user not for sftp user ) Open 2 putty sessions when I am trying to open 3rd session from the filezilla / winscp connection disconnected automatically (Working fine with ssh user ) 3.When I am trying to open 3 sessions in filezilla/winscp I am able to open 3 sessions ( Not working) when I am trying to open 3 sessions in filezilla/winscp with sftp users I am able to open all three sessions  -Is there any difference in putty client and winscp/filezilla ? -SSH users having shell login but sftp users don't have shell login  Is there any chance to  limit the connections 2 for sftp users?   I am pretty new to Linux.


Comma usage in introductory sentences like "for the first two years"

My Office Word programme says that a comma is required in both the following sentences where included (according to Word, these use introductory 'sentences'). However, as English learners, we are unsure in our group whether it is neccessary in each of these sentences.  (1) For the first two years of doing business, we generated our income through a commission we charge on every order.  (2) With the extension towards more business partners, we estimate dramatically raising costs as well as turnovers.   We appreciate your help. Thank you in advance. Greetings from Germany.


Why am I receiving an undefined control sequence for my equation?

I have an equation defined as  $$m^*(E) \leq \sum_{k=1}^{\infty} l(I_k) < m^*(E) + \varepsilon \text{ and } E \subseteq \cup_{k=1}^{\infty} I_k.$$    but I am receiving an uncontrolled sequence error. Is there a special package I need to use \text{ and }? If me equation is   $$m^*(E) \leq \sum_{k=1}^{\infty} l(I_k) < m^*(E) + \varepsilon E \subseteq \cup_{k=1}^{\infty} I_k.$$    I do not receive an error.


Selecting best model based on linear, quadratic and cubic fit of data

I have a Java code that performs a linear regression on a set of data using the Gauss-Jordan elimination. It calculates a linear, quadratic and cubic functions using the least squares method.  My problem is choosing a function out of the three that best models my data. This is ofcourse, without plotting the curve. So lets say I have a set of data {x:1,2,3,4} {y:3,8,910}, and I get a linear, quadratic and cubic function for it using the least squares method.   How do I choose which function is the right model for my data?


How can I prevent my external hard drive from automatically poweríng on right after I unmounted it?

I've got a USB3 external hard drive connected to my laptop running 14.04. Every time I want to disconnect it, using "safely remove", the hard drive turns off, but then immediately turns on again.   I don't want to unplug it, while it's still running. So I'd really appreciate tips on how to solve this.   Thanks.


In the FAQ of the Boomerang decompiler (which currently only decompiles to C-code) they make a brief mention that Visual Basic exes happen to include a lot of metadata, so a Visual Basic decompiler might be able to produce better source code for Visual Basic programs than what Boomerang can give you.  Since the program I'm trying to decompile might actually be a VB 6 program, do you know of any decompilers for VB6 exes?  (Don't worry this isn't for nefarious purposes.  I just have to create a data file this program parses, and getting a sense of the strategy it uses to parse the file will help get the file format right.)


Can I find MLE of probability of X greater than x

such as find  MLE of $P(X>12)$ when $X_i$ ~ $N(\mu,\sigma^2) $


Ladder operators applied to magnetic quantum number

I cannot solve this simple equation, since I cannot find nowhere how ladder operators works on the magnetic quantum number:   $$\langle m|\hat a^\dagger \hat a+\hat a\hat a^\dagger)|m\rangle$$


MODSIGN: Couldn't get UEFI db list Couldn't get size: 0x800000000000000e

Problem on a Mac Mini Mid 2011. I have looked through other articles and couldn't get help. Any help?


This wasn't in the book, so I was wondering: in the second Hobbit movie (The Hobbit: The Desolation of Smaug), when:      the dwarves covered Smaug with liquefied gold   could he actually die?


How can I easily access the markdown text of a comment?

So the query in the answer to the question this has been closed against has exactly the same problem as the query I mentioned in my question - I can't actually see more than the first few words of the comment in the output!  Sometimes I want to copy a carefully formatted and/or link-loaded comment, but, unlike with posts, I can't click anything to show me the markdown text, so all the formatting has to be re-done.  I found  which does print the markdown text, but I have to download the CSV to see the whole comment.  Could I format the output of that query to include the whole markdown text of the comment (nicely wrapped :) )? Or is there another way to access the markdown text of comments? Is there a userscript for this?


I'm completely puzzled by this: I'm trying to create a simple command that will modify a savebox from an enumerate, and I've worked it down to a minimal example of some weirdness:  ... % Create our command \newcommand{\hello}{ \savebox{\tmp}{Works!} } % Setup the box \newsavebox{\tmp} \savebox{\tmp}{Doesn't work!}  \hello  \usebox{\tmp} % Will put: Works!   If I run the command from inside an enumerate, it does not work:  % Create our command \newcommand{\hello}{ \savebox{\tmp}{Works!} } % Setup the box \newsavebox{\tmp} \savebox{\tmp}{Doesn't work!}  \begin{enumerate} \item  Something \hello \end{enumerate}  \usebox{\tmp} % Will put: Doesn't work!   I have absolutely no clue why it does this. No warnings or errors are given, and it does this on both pdfLatex and XeLaTex (the only two I had available to test). Any clues would be much appreciated!


Why are open source and closed source usually not hyphenated? Should they be?

Typically, English writers do not hyphenate open source or closed source when referring to computer software.  Why is this?  Should they be hyphenated or is it best to not use hyphens for these terms?


Prove that the order of an element in $S_n$ equals the least common multiple of the lengths of the cycles in its cycle decomposition.  Proof: Let $\sigma \in S_n$. Then $\sigma = (a_1a_2...a_{m_1})(a_{m_1+1}a_{m_1+2}...a_{m_2})....(a_{m_{k-1}+1}a_{m_{k-1}+2}...a_{m_{k}})$ represents the cycle decomposition of $\sigma$. Suppose $|\sigma| = n$ is the order of an element in $S_n$. So $\sigma^n = 1$. Can someone please help  me?  I don't know how if I am doing this fine. And I am stuck. Thank you for any help.


How do I setup user autostart and properly configure systemd user services?

On my arch server, I was setting up users restricted to their home directories. I ran:  useradd -m -s /bin/bash username and passwd username  I've read   I figured I should use systemd user services to make each user run a node server on startup. So i logged into one user account su username and created a file ~/.config/systemd/user/serve.service containing:  [Unit] Description=One of the servers  [Service] ExecStart=/usr/bin/node /home/username/server.js  [Install] WantedBy=default.target   then I ran systemctl --user enable serve.service which responded with Failed to connect to bus: Permission denied  As far as I understand I should run systemctl --user ... command logged in as a user and not as root.  So what did I miss in this configuration?


In Software & Updates / Livepatch I get this notification "Livepatch requires an internet connection." with a disabled switch in front of it. I am online so internet connection is up & running.  Screenshot Software & Updates:   I tried to enable Livepatch by clicking Learn more in the Livepatch tab, got a token from the   , entered that in terminal according to the code provided:  sudo snap install canonical-livepatch sudo canonical-livepatch enable [insert token here]   Then I get this error:  *2019/04/20 19:41:37 error executing enable:  Livepatchd error: The platform Ubuntu 19.04 is not supported. exiting.*   Any idea what's going on here? I thought Livepatch  in 19.04.


Is recovery mode supposed to hang after fsck?

Ubuntu 12.04.1 LTS I wanted to test running fsck on root file system (ext4) on my home PC before I try to fix a real problem on my work server. I booted into Linux recovery mode, and selected:  fsck - Check all file systems  This produced: fsck for util-linux 2.20.1     /dev/sdb5: 276147/151969160 files (0.2% non-contiguous), 2214857/60774919 blocks   then hung with no disk activity lights flashing. I left it for 10 minutes but no change. Enter or ESC did nothing. Eventally I did Ctrl-C and it booted. I only have 1 file system in /etc/fstab (other than proc & swap). Is this supposed to happen? I searched for other posts in AskUbuntu about recovery mode, and from what I can tell, it should continue somehow after doing the fsck(s). I did find  which seems to have same behavior but in that case the system was unbootable. I also booted from 12.04.1 Live DVD and selected 'Test Linux' and manually ran sudo fsck /dev/sdb5 which ran for about the same time (10 seconds) and also didn't find any errors. My system dual boots Linux & Windows 7 and Windows C: is an SSD.


how to pass section numbers to python in pythontex?

I am writing out some parameters to JSON files using pythontex, but would like to add context information in form of section numbers (for example \thesection or \thesubsubsection, perhaps also the page number or other counters).  Is there a straightforward way to pass the values of the section counters to Python?   Josef


Malformed Entry 1 in list file error for kubuntu Xenial

Upon executing sudo apt-get update, I get the following error:  E: Malformed entry 1 in list file /etc/apt/sources.list.d/gazebo-stable.list (Component) E: The list of sources could not be read.   I have tried to rewrite this file, but it states that I lack write access. Please help. Also, I think that this may also be the reason that the Discover GUI for Ubuntu app store is not running at all as well.  Upon opening the file:  deb http://packages.osrfoundation.org/gazebo/ubuntu-stable xenial main  main main   Can anyone please suggest what is wrong with the above text? I am unable to perform sudo apt-get update...


I've generated some JSON and I'm trying to pull it into an object in JavaScript. I keep getting errors. Here's what I have:  var data = '{"count" : 1, "stack" : "sometext\n\n"}'; var dataObj = eval('('+data+')');   This gives me an error:   unterminated string literal   With JSON.parse(data), I see similar error messages: "Unexpected token ↵" in Chrome, and "unterminated string literal" in Firefox and IE.  When I take out the \n after sometext the error goes away in both cases. I can't seem to figure out why the \n makes eval and JSON.parse fail.


I tried to install an nvidia driver and there was an error saying I must not be in an X terminal when doing so. So I did a Ctrl+Alt+F1.  The resulting terminal did not allow the nvidia driver to be installed and showed the same error message. How do I revert back to the Unity GUI?


Best Way To Digitally Capture a Pencil Sketch

I am building a small app about the human face.  I have an artist that is sketching pencil based illustrations for me. Mostly in black and white (pencil black/grey) with a hint of colour here and there.  What is the best way to digitally capture the sketches/illustrations?  A high resolution scanner I am guessing.  Any suggestions as to the surface he/she should be sketching on?  Apologies for the simple question. Thanks in advance.