I had been preparing for a tennis event since March, but it has been postponed until next year.  Question: Can "it has been postponed" be replaced with "was postponed" grammatically without changing its meaning?  One of my friends (Canadian) received this question from a Chinese learner, and she asked me for help.


Window Batch: Echo redirecting to `\n` as literal then new line

Please read question slowly, its strange, but true.  In windows command prompt, I want echo redirect to print \n as new line to output file, but takes as literal(\n) instead of new line.  echo  "A\nB\n\C\n" > temp.txt  If I open the temp.txt, I see output as     A\nB\n\C   rather then,  A B C   There is similar questions, like  and  on  Stack Overflow. However, none of answer serves my purpose.  I tried, various other options, but didn't work are:  echo  $'A\nB\nC' > temp.txt  echo  $'A\\nB\\nC' > temp.txt   etc.  So, my question, is there to achieve new line I want to achieve in redirect?


Lightning Web Components: navigate to the 'new' object page passing in specific record type Id?

I am using LWCs to display lightning cards in a list.  The list shows information about Programs.  Each Program card has a button, and this button needs to take the user to the 'new object' screen of the Application object.  Here is my code:   applyToProgram(event) {     // The recordTypeId is coming from the .html     // I have verified that the value is correct.     var rtId = event.target.id;      // How do I use rtId below?     this[NavigationMixin.Navigate]({         type: 'standard__objectPage',         attributes: {             objectApiName: 'Application__c',             actionName: 'new',             nooverride: '1',             recordTypeId: rtId  // This does not work         }     }); }   This is not working.  The user is presented with the 'new object' screen for the object's default record type and NOT the one specified in rtId.  I tried putting 'nooverride' and 'recordTypeId' in the state:{} argument, and I also renamed 'recordTypeId' to just 'recordType'.  None of these worked.  Can anyone help me with the correct syntax?  Is this even possible in LWCs?  Thanks, Jeff


What is the relationship between binding energy, energy released, and mass defect?

Im learning about fission/fusion and cant get mass defect, binding energy, and energy released to fit together in my head. The three are all equal in magnitude if I understand it correctly? When, for example, $4$ hydrogen fuse into $\mathrm{He}$, mass is lost - this mass is converted into energy, via $E = mc^2$, which is released. So then how can the binding energy also increase? there seems to be "too much energy" on one side of the equation for me. If the mass lost is converted into energy, which is released, where is the extra energy coming from to also increase the total binding energy? Can't make it work in my brain, and have to teach high school physics this year so would like to understand it properly!


Why does plain RSA not work with big messages ($m>n$)?

From what I can remember, RSA is something like this:   Generate 2 distinct prime numbers $p$ and $q$ that have similar bit length. Compute $n=pq$ and $\phi(n)=(p-1)(q-1)$ Compute $e$ such that $1<e<\phi(n)$ and $\gcd(\phi(n),e)=1$. It is optimal for $e$ to be prime Compute $d$ such that $ed\equiv1\pmod{\phi(n)}$ To encrypt a message $m$ into cipher $c$, compute $c=m^e\pmod{n}$ To decrypt a cipher $c$ into message $m$, compute $m=c^d\pmod{n}$   But for large $m$ values, this does not necesssarily work.  Let me use an example to demonstrate what I mean:   Let $p=1999$, $q=2039$, and $e=65537$ (note, all of $p$, $q$ and $e$ are prime) Compute $\displaystyle n=pq=1999\times2039=4075961$ Compute $\displaystyle \phi(n)=(p-1)(q-1)=1998\times2038=4071924$ Compute $d$ such that $65537d\equiv1\pmod{4071924}$  by solving the Linear Diophantine Equation $\displaystyle 65537x-4071924y=1$   Steps to solve (using a bad implementation of the Extended Euclidean Algorithm)  $\displaystyle 65537\times63-1\times4071924=56907$  $\displaystyle 1\times65537-1\times56907=8630$  $\displaystyle 1\times56907-6\times8630=5127$  $\displaystyle 1\times8630-1\times5127=3503$  $\displaystyle 1\times5127-1\times3503=1624$  $\displaystyle 1\times3503-2\times1624=255$  $\displaystyle 1\times1624-6\times255=94$  $\displaystyle 1\times255-2\times94=67$  $\displaystyle 1\times94-1\times67=27$  $\displaystyle 1\times67-2\times27=13$  $\displaystyle 1\times27-2\times13=1$  Therefore, these things can be substituted:  $\displaystyle 1\times27-2\times(1\times67-2\times27)=5\times27-2\times67=1$  $\displaystyle 5\times(1\times94-1\times67)-2\times67=5\times94-7\times67=1$  $\displaystyle 5\times94-7\times(1\times255-2\times94)=19\times94-7\times255=1$  $\displaystyle 19\times(1\times1624-6\times255)-7\times255=19\times1624-121\times255=1$  $\displaystyle 19\times1624-121\times(1\times3503-2\times1624)=261\times1624-121\times3503=1$  $\displaystyle 261\times(1\times5127-1\times3503)-121\times3503=261\times5127-382\times3503=1$  $\displaystyle 261\times5127-382\times(1\times8630-1\times5127)=643\times5127-382\times8630=1$  $\displaystyle 643\times(1\times56907-6\times8630)-382\times8630=643\times56907-4240\times8630=1$  $\displaystyle 643\times56907-4240\times(1\times65537-1\times56907)=4883\times56907-4240\times65537=1$  $\displaystyle 4883\times(63\times65537-1\times4071924)-4240\times65537=303389\times65537-4883\times4071924=1$  Through calculation, we conclude that $\displaystyle d=303389$ because $\displaystyle 65537\times303389\equiv1\pmod{4071924}$  Example 1  Encryption  Let $m=113$, then, $c\equiv(113^{65537})\pmod{4075961}=3345792$  Decryption  Let $c=3345792$, then, $m\equiv(3345792^{303389})\pmod{4075961}=113$  It works this time! Good!  Example 2:  Encryption  Let $m=33555553$, then, $m\equiv(33555553^{65537})\pmod{4075961}=2621940$  Decryption  Let $c=2621940$, then, $m\equiv(2621940^{303389})\pmod{4075961}=947865$  It does not work this time! What the ----?  Is this message too big to be encrypted? If so, how do we make it smaller?


Finding a injective mapping to prove the countability of $ \mathscr{P}_{\text{fin}}(\mathbb{N}) $.

I have an assignment due Friday, and I have been struggling with one of the problems, which seemed to be easy enough at first glance. I have been working on it for a few days now and still cannot come up with any smart ideas.  I am asked to find an injective mapping  $$ \varphi_k : \mathscr{P}_k(\mathbb{N}) \to \mathbb{N}^k $$ where $ \mathscr{P}_k(\mathbb{N}) $ is the set of all subsets of the natural numbers with exactly k elements. From there I am supposed to proceed to prove that $ \mathscr{P}_{\text{fin}}(\mathbb{N}) $, the set of all finite subsets of the natural numbers, is countable.  I do not have a problem with the latter part, but I have tried to find such a mapping for days, but I seem to be missing some key concept.   I have tried all commutative operations, but always end up with two function values being the same for different sets. Vectors obviously don't work, at least not in a straight forward way, since  $$ \varphi_2(\{1, 2\}) = (1, 2) \neq (2, 1) = \varphi_2(\{2, 1\})$$ and $ \{1, 2\} = \{2, 1\}$. Can anyone get me on the right track?  Your help is most appreciated, thanks in advance!


I am new to QGIS. The version I am trying to get used to is v3.6. I have been trying to sort this table in map layout but still ending up as displayed in the table below. Need help to sort in ascending order.


Position of punctuation in proper title with quotes

Take the following sentence with punctuation purposefully omitted:  Do we have an Italian restaurant right next to the Video Outpost "Too"  Video Outpost "Too" is a proper title, specifically the name of a store. In American English, we are taught that when ending a quote, if said quote is at the end of a sentence, the final punctuation goes inside of the ending quotation mark, such as in the example below.  He said, "today is a nice day."  However, does this rule still apply when the quotation marks are not part of a quote but are a stylistic choice on the part of the name? More specifically, which of the two forms below is correct or most correct?  Do we have an Italian restaurant right next to the Video Outpost "Too"? Do we have an Italian restaurant right next to the Video Outpost "Too?"  Forgive me if this is a duplicate. I've found questions regarding actual quotes, but nothing for this particular situation. Edit: I would appreciate answers for both the American and British conventions, if possible. I believe this question will be of help to a wider audience if both conventions are provided, assuming there are multiple conventions. Edit 2: As  noted, this is similar to the question of whether punctuation goes inside or outside of quotation marks, however the  only covers cases when the quotation marks are used as markers of a quotation. This specific question refers to quote marks that are part of a proper name and are not used as quotation marks.


other SE boards selection list when moving questions

I wanted to close "" and suggest move to  but the other sites choices did not contain the Unix board. How are the choice selection lists for moving questions made? How can I move a question to the actually on-topic board?


How to convert extracted .csv file from SFMC Data Extension to FTP location with UTF 8 Encoding?

I am successful in extracting data into .csv from data extension to ftp location using Data Extension Extract API. The issue I am facing here is extracted .csv file is having some other Encoding type and I need only UTF-8 encoding. Just a quick note is I am not using any GUI, I am using SOAP API for Data Extension Data Extract. Can anybody please help me with this issue ? Data Extension Data Extract :


Am I the only one whos athletic career bared fruit?    Is this sentence correct grammatically?


Delphi: How do I stop TAction shortcut keys autorepeating?

I'm using a Delphi TActionList, with Shortcut Keys for some actions.  I want to prevent certain actions from being triggered multiple times by keyboard auto-repeat, but I do not want to affect auto-repeat operation globally. What's the best way of doing this?  Clarification: I still need to handle multiple fast keypresses - it's only the keypresses generated by auto-repeat that I want to ignore.


If I wanted to start a mini studio for fashion photography, what equipment will I be needing as basics?


Does there necessarily have to be a beginning to time?

Although, I can conceive of a potentially infinite amount of time ahead of me, for it is not actual as it remains to be experienced, I can't conceive of a potentially infinite amount of time behind me, for having been experienced it is actual, and being actual it is finite, as I can't conceive of actual infinities.   Hence there is a beginning to time.  Has anyone discussed this argument in the literature?


Sorry if this question has already an answer somewhere, but I've just started to play with Unity and now I'm stuck. :(  I've tried a few things ( from  ,  and  and others ) but none of them work, I'm sure that I do something wrong but I don't know what.  I have this code:  public class SceneManager : MonoBehaviour {      public Image myButtonImage;      private Button switchBtn;      // Use this for initialization     void Start () {          switchBtn = GameObject.Find("switchBtn").GetComponent<Button>();         myButtonImage = Resources.Load<Image>("switchCameraImg");          switchBtn.image = myButtonImage;     } }   and this are my objects:    where cameraSwitchObj is a GameObject and switchBtn is the button itself.  SceneManager is the script attached to MainCamera  I receive this error :   NullReferenceException: Object reference not set to an instance of an object SceneManager.Start ()   for this line : switchBtn.image = myButtonImage; but according to what i read from different posts this is all i must do. What I am missing?


How can I type a Grave Accent (`) on the iPad’s Virtual Keyboard?

I’ve started using my iPad more and more (especially here on Ask Different) and I’ve found that I can’t find the grave accent character (also known as the "back tick" or "opening single quote"; it's the un-shifted ~ key on the standard US keyboard.  Where can I find this character on the iOS keyboard?


How do I Sort a Multidimensional Array in PHP

I have CSV data loaded into a multidimensional array. In this way each "row" is a record and each "column" contains the same type of data.  I am using the function below to load my CSV file.  function f_parse_csv($file, $longest, $delimiter) {   $mdarray = array();   $file    = fopen($file, "r");   while ($line = fgetcsv($file, $longest, $delimiter))   {     array_push($mdarray, $line);   }   fclose($file);   return $mdarray; }   I need to be able to specify a column to sort so that it rearranges the rows.  One of the columns contains date information in the format of Y-m-d H:i:s and I would like to be able to sort with the most recent date being the first row.


Is it okay to pronounce "ask" as /æks/, swapping the /s/ and /k/?

I know the correct pronunciation (I think) of the words "ask" and "asked", but I quite often hear them pronounced as "ahks" and "ahksed" (almost like an "r" sound). I've heard it both in conversation and on television shows (both Australian and American).   Are these pronunciations due to dialect, or are they alternative pronunciations or incorrect pronunciations? If they are the correct pronunciation, should I use them or the "normal" pronunciation?


I found the similar  for renaming some of the keywords, but they were for revtex4-1. Since my document is giving me strange errors when I'm using revtex4-1, and not when I'm using revtex4, this solution didn't help.   I also found  about revtex4 and there I found this:     The optional argument allows the user to override the text that will   be typeset along with the date; the default value of that text is   itself a localized macro.   1156\renewcommand*\date[2][\Dated@name]{\def\@date{#1#2}}% 1157\def\@date{}%   But this isn't working (or I don't understand how to use this)  Here's the 'mwe'  \documentclass[onecolumn,prb,floats,amsmath,amssymb,superscriptaddress,nofootinbib,12pt]{revtex4}  \usepackage{graphicx} \usepackage{bm} \usepackage[croatian]{babel} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[dvipdfm,colorlinks=true,bookmarks=false,urlcolor=DarkOrchid,citecolor=ForestGreen,linkcolor=Cerulean,pdfstartview={XYZ null null 1.00}]{hyperref} \usepackage{extarrows} \usepackage{subfigure} \usepackage{caption} \usepackage{mathtools} \usepackage{bbm} %\usepackage{float} \usepackage{psfrag} \usepackage{url} \usepackage[all]{hypcap} \usepackage{subfigure} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{listings} \usepackage{array} \usepackage[paperwidth=210mm,paperheight=297mm,centering,hmargin=2cm,vmargin=2.5cm]{geometry} \usepackage{enumitem} \setlist{nolistsep} \makeatletter  \gdef\@ptsize{0}% 10pt documents  % or:  %\gdef\@ptsize{1}% 11pt documents  %\gdef\@ptsize{2}% 12pt documents  \let\@currsize\normalsize  \makeatother  \usepackage{setspace}  \onehalfspacing  \renewcommand*\date[2][\Dated@name]{\def\@date{#1#2}}% \def\@date{Datum:}%  \renewcommand{\tocname}{Sadržaj}  \makeatletter \renewcommand{\thesection}{\arabic{section}} \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} \makeatother   \DeclareCaptionFont{white}{\color{white}} \DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}} \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}  \newcolumntype{y}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \renewcommand*{\arraystretch}{1.2}   \begin{document}  \title{Random title} \author{Random guy} \affiliation{Random place, 99999 Randomville} \date{\today}  \begin{abstract}  \end{abstract}  \maketitle  \begingroup \hypersetup{linkcolor=black} \tableofcontents \endgroup   \section{Intro}  \section{Bla}  \subsection{Bla1}   \section{Bla!}   \end{document}


Two suggestions to mitigate abusive downvoting

The current functionality of [practically] unlimited downvoting encourages abusive users to engage in conduct that is shady and coward. Although downvotes also decrease voter's reputation score, the truth is that it ultimately allows for unwarranted censorship of anything that does not fit that voter's ego or [capricious] liking. Two suggestions that seem straight-forward to implement may solve this issue.   No user with privilege to vote down should be allowed to issue more than 'n' downvotes during a period (for instance, a month or a quarter). The same limit should apply across a site, regardless of users' reputation score in that site. Implementing this suggestion (by adding two columns to user's "header" table: one for downvote_count, one for renewal_date) would take care of serial downvoters. Limit the number of times user X can downvote user Y during one same period. Implementation of this suggestion will involve creating a new database table with the four following fields: (1) voter (primary key); (2) downvoted user; (3) date/timestamp; and (4) question/answer where downvoting took place.   Some (luckily few) users are obsessed about downvoting specific contributors. This happens to me in Law SE, where one self-portrayed attorney shows a recurrent impulse to downvote my answers even though his comments (when it pleases him to make any) turn out to be inaccurate, redundant, or absurd. By now I have accumulated a few screenshots reflecting that decreases of my reputation match [date-wise] equivalent increases of that user's count of downvotes.  Clearly, the purpose of SE voting is to reflect the effort or value of a contributor's posts. It is not aimed at suppressing any and all disagreements with someone else's valid, informed points. Downvoting for the sake of egotistical censorship is an abuse of SE's reputation mechanism.


In QGIS 2.13.2 I have a google map and a shapefile. Now I want to print it with all the necessary items, but I have a big problem with the coordinates. First of all, the coordinates just appear when I use the WGS84 / Pseudo Mercator (EPSG: 3857). If I try to use the normal WGS 84 nothing appears. Why is that?  The other problem is, that my coordinates show something completely different than they should be. I looked them up and its somewhere in Africa, although I need the coordinates for a place in Germany. Did I make a mistake with georeferencing the shapefile?


Correct punctuation when "I was wondering..." (or similar) is used to imply or restate a question?

What is the correct punctuation when repeating a question as a statement? See the following example, and my best guess:  John: Sorry I missed your phone call. What's happening? Bob: I was wondering if you wanted to get some lunch.  My discomfort with Bob's response is the following: Bob's response very strongly alludes to an underlying question, but because it is technically a statement, it doesn't get punctuated with a question mark. Question: If I wanted to communicate this response but include a question mark (to more obviously visually communicate that there is a question that needs answering), how could this be done? My best idea is to simply restate the question in its entirety and join with a colon. For example (please correct me if any part of is incorrect):  I was wondering: "Do you want to get some lunch?"


Why does Cellular Data usage summary include WiFi data?

Under Settings -> Cellular Data there is a nice break out of how much data each app has used.  I expected this to allow me to identify which specific apps were using the most cellular data so I avoid overage fees.  My carrier tells me how much data I have used, but only gives a general category of where my data is going, which is useless for this purpose.  However, I have only had the phone a couple of weeks, and it is claiming I have already used 17.4GB of data.  However, per my carrier, I have actually used only 150MB.  It is obviously counting WiFi in the cellular figures.  But why?  Am I looking at the wrong spot?  Is there a bug in iOS?  Something I am doing wrong?  Something I need to enable? Could it be counting previous months on a different phone and need a reset somehow? Shouldn't it reset every month?


How to enable auto logon for Windows 10 Pro

I am running Windows 10 Pro on an Intel ComputeStick (Mod # STK1AW32SC). Ideally, I would like to automatically log into a standard user account (an Assigned Access account for running just one app) whenever it restarts or boots, such as when there is a power outage.   I have found , however, I am confused about step 3. In \Winlogon I see two more directories GPExtensions and VolatileUserMgrKey, as well as two files?: AlternateShells and AutoLogonChecked.   I do not see the ones the documentation says: AutoAdminLogon, DefaultUserName or DefaultPassword.   I've never done this before so I don't want to screw anything up, thanks!  For reference I'm pretty sure this Windows version is 32 bit.


Are groups of order $p^2$ abelian, $p$ prime?

Okay so say you have a group of order p ( p a prime ) I know that this means that this group is isomorphic to $C_p$ ( the cyclic group of order p) and hence abelian. But what about groups of order $p^2$ are they isomorphic to $C_p\times C_p$ and also abelian because of this ?


Finding an example of $\sigma:F\rightarrow F; a\mapsto a^p$ not surjective

I have the following question,     Let $F$ be a field of characteristic $p\neq 0$. Find an example where the homomorphism    $$ \begin{align*} \sigma :  &F\rightarrow F\\ & a\mapsto a^p \end{align*} $$   is not surjective.   Trying a lot of things I found that if I take $a\in Ker(\sigma)$ then, $a^p=0 \Rightarrow a^{p-1}a=0$, so $a$ would be a zero divisor and that contradicts $F$ being a field. So $\sigma$ is injective. Then if $F$ is finite, $F$ is an automorphism! That gives me a hint, I must find an infinite field of characteristic $p>0$.  The only infinite field in that fashion that I know is $\mathbb{Z}_p(x)=\{\frac{p(x)}{q(x)}| \ p(x),q(x)\in\mathbb{Z}_p[x], q(x)\neq0\}$, so I was trying to prove $\sigma$ is not surjective.  If I take $a=p(x)\in\mathbb{Z}_2[x]\subset\mathbb{Z}_2(x)$ then, $\sigma(p(x))=p(x)^2$ and therefore, $$deg(\sigma(p(x)))=2deg(p(x))$$  So all the images of $\sigma$ would have even degree (for $a\in\mathbb{Z}_p[x]$), but I'm not sure if I can generalize that for every $a\in\mathbb{Z}_p(x)$. I'm not sure about what's the degree of $\frac{p(x)}{q(x)}$ or if I'm going in the right way.    Any help would be awesome. Or any other example for this case (since I only know one case of infinite fields of possitive characteristic. Thanks in advance.


Init ignores .rc in the /system/etc/init

on boot     iptables blah --blah     iptables blah --blah  service myservice /system/bin/myarm64binary --config /path/to/conf.cfg     class main     user root   According to the documentation:      / init.rc is the most important. RC file. It is loaded by init process   at the time of initialization. It is mainly responsible for system   initialization. It will import / init.${ro.hardware}.rc, which is the   main. RC file provided by system-level core vendors.      When the mount_all statement is executed, the init process loads all   files in the /{system,vendor,odm}/etc/init/ directory, which will   serve Actions and Services when the file system is mounted.   Is there something I'm missing? service list does not list my app and iptables not appended. Even if I test-edit init.rc and import my .rc directly it still does nothing.


Did anyone in the Star Wars universe wear effective armour?

The Storm Troopers are the main case here, they get killed easily by blasters and even the Ewok arrows go straight through their 'armour'.   The AT-ST and AT-AT use armour to repel blasters of different strengths so they don't pass through all materials. I understand though that the armour used on these is likely much heavier.   From the prequel trilogy we also have the , which have a shield when not moving. Does anyone other than these droids use this technology?   You may use any of the Scrapped EU, Current EU and the normal U to answer.


Toshiba pendrive shows 4 MB instead of 8 GB; what could have happened to it?

I have a Toshiba 8 GB pendrive. All of a sudden, it's showing total space 4 MB. I have tried diskpart and various other software, but no gain. The disk management is also not showing unallocated space. Can someone suggest what happened to the pendrive?


Is there a way to get QGIS to write out a world file (.wld/.pgw/.jpw) etc rather than an aux.xml. I see the aux.xml is in general better but it isn't supported by the other software I am using.  I can manually write the .wld based on the aux.xml but that is a bit of a faff.


If $V = \text{null}(\textsf{T}-\lambda\textsf{I}) \oplus \text{range}(\textsf{T}-\lambda\textsf{I})$, then prove that $\textsf{T}$ is diagonalizable

If $\textsf{V}$ is a finite-dimensional complex vector space, $\textsf{T}\in\mathcal{L}(\textsf{V})^1$, $\lambda$ is arbitrary in $\mathbb{C}$ and if    $$\textsf{V} = \text{null}(\textsf{T}-\lambda\textsf{I})  \oplus \text{range}(\textsf{T}-\lambda\textsf{I})$$   then prove that $\textsf{T}$ is diagonalizable.   Attempt : I am solving Axler's 3 edition book in Exercise $5c.$ The book hasn't introduced the Jordan normal form or the generalized eigenvectors. Could someone please give a direction to move ahead.  Thanks a lot for your help.    $^1$ $\mathcal{L}(\textsf{V})$ is the set of all linear maps from $\textsf{V}$ to itself.


I need a program that can make me multiple accouts stored in different files. This is what I've done so far but for some reason ("test" + userName + ".txt", "a"); does not work. Thank you for your time!    int main() {  char choice[10]; printf("create accout (1)"); printf("\nlogin to accout (2)\n"); scanf("%s", &choice); getchar();  if (strcmp(choice, "1") == 0) {     char userName[1000];      FILE *myFile;     myFile = fopen("test" + userName + ".txt", "a");     if (myFile == NULL)      {         printf("file does not exist");     }      else      {         printf("Enter your username: ");         gets(userName);         fprintf(myFile, "%s", userName);         fclose(myFile);     } }


Identifying the series $\sum\limits_{k=-\infty}^{\infty} 2^k x^{2^k}$

I came across following  bi-infinite sum:  $\sum_{k=-\infty}^{\infty} 2^k x^{2^k}$  Is this a known series? After some plotting I have the feeling that it could be equal or very similar to  $-\frac{1}{\ln(2) \ln(x)}$  for all $x\in(0,1)$. Is my assumption correct?


tasks package: items are in two line with 4 columns and 4 items

I write some choice questions into beamer frame, after some research, here is my code:  \documentclass[aspectratio=169]{beamer} \usetheme{Berkeley} \usepackage{tasks,CJK} \begin{document} \begin{CJK*}{utf8}{bsmi} \begin{frame} \transwipe 1.Which one you want to choose? \begin{tasks}[counter-format=tsk[A].,debug=true](4) \task A \task B \task C \task D \end{tasks} \end{frame} \end{CJK*} \end{document}   output with pdflatex:  But I don't want the D choice goto the second line, I want them stay in one line, what should I do?


Particles don't collide with collision object?

I have an object with a Mirror, Subsurface, and Solidify modifier.  I gave it Collision in the Physics panel, but the particle system just goes through the object. I have not baked the particles before.   I tried adding a new object without any modifiers and the collision works. Does collision of the particle can be done in original object, or any something wrong with my scene?  I just wanna to make this:      This is what is happening   And my particle setting


I think a possibility of highlighting sections of the text, equations, or code in the posts by the community members might add to the quick-readability of the questions and answers. I mean a mechanism similar to what is currently possible in :    More succinctly, community members would read a post and highlight some parts. Such highlightings will be visible to any viewer of the post. A highlight has an owner (its creator), and can be removed by its owner or the moderators. Moderating highlights will not be a burdensome task, since highlighting does not entail a modification of contents (as for editing), and no mistake or offence is possible -- only there could be inept highlighting by some user.  This could be a feature that can be turned on and off by a viewer. Generally, it would help a viewer to get an idea of the major points of a post (question or answer) from the highlighted sections provided by the community members.


Currently, what is the largest publicly known prime number such that all prime numbers less than it are known?

So recently, an absurdly large prime number was found, but a lot of prime numbers less than it are still not known. I am wondering up to where we know all the primes.  I put "currently publicly known" because there is a chance that some government agency has a longer list for crypto reasons or something like that.


This has been troubling me for days, I have a table with auto-increment, what I want is that the value of the increment value will be inserted in the same row. The problem is that when concurrent users are accessing the query, it will not copy the correct value.  Below is my table:  CREATE TABLE tblTransactions   (      dctransno     INT IDENTITY PRIMARY KEY,      vcDescription VARCHAR,      dcTransNoCopy INT NULL,      user          VARCHAR           )   and my query:  BEGIN TRAN  INSERT INTO tblTransactions             (dctransno,              user) VALUES      (@vcDescription,              @user);   SET @identity = @@IDENTITY -- get the identity  UPDATE tblTransactions SET    dcTransNoCopy = @identity WHERE  dcTransNo = @identity        AND user = @user; -- insert  COMMIT TRAN    What I want to achieve is that I can have a grouped transaction like below example. The problem is that my above query doesn't take ownership. Assuming userA and userB are simultaneously using the system:         dcTransNo      Description     dcTransNoCopy      User           1          Transaction1      1                userA           2          Transaction2      1                userA           3          Transaction3      1                userA           4          Transaction1      3                userB       ---> not correct, ClonetransNo value for userB should be 4 not 3.   Please help, thanks in advance.


How can I cast artificially darker shadows?

I want to make certain shadows more prominent (using Cycles) without further illuminating the rest of the scene.  Example: I have a simple studio with a bowl of fruit and 3-point lighting.  The light looks great so I don't want to change it but I want the bowl to cast a darker shadow on the ground (without dimming the back-light).  Alternatively, and this would be really cool, an anti-light source.  Like a spot light that throws darkness instead of light. (Am I crazy for wanting this?)  Thanks!


Suppose that $f(x) \in \Bbb Z_p[x]$ and is irreducible over $\Bbb Z_p$, where $p$ is prime.  If $\deg f(x) = n$, prove that $\Bbb Z_p[x] / \langle f(x) \rangle$ is a field with $p^n$ elements.   I can see that $\Bbb Z_p[x] / \langle f(x) \rangle$ is a field because $\Bbb Z_p$ is a field and $f(x)$ is irreducible, but I can't figure a way to show that it has $p^n$ elements.  I know I can write any $g(x) + \langle f(x) \rangle$ as $q(x)f(x) + r(x) + \langle f(x) \rangle$ where $r(x)$ is the remainder upon division, but I can't seem to figure what the remainder would be when dividing arbitrary elements.


Applying Economics Ph.D/Agricultural/Applied Economics Ph.D programs with low GRE

I am trying to apply for Ph.D. programs in either economics or agricultural/applied economics. I believe the other aspects of my application are good. I have high GPAs in both undergraduate and graduate education. I have 3 years of research experiences working at the think-tank. And, I have one publication related to my research interest. My GRE quant score is only 77th percentile. I am now trying to apply a school. The school's admission website describes that there is no minimum GRE requirement but those I am competing will have GRE quant 85th percentile or above. Can some people suggest me if I should still apply that school? I am afraid of my application being filtered out. Your thoughts would be highly appreciated. Thanks.


How to setup QGIS Master and Stable in parallel on one Linux system?

I mainly use the QGis Master (nightly build) for my Debian Linux and I'm quite happy with it. But for educational and demonstration purposes, I now have to work with the Stable(1.8) version.  How can I run a stable QGis 1.8 version in a way that it won't interfere with my other QGis build? The ideal solution will be to run everything just from a folder. This is possible for  (QGis on a Stick), but I haven't found any way to do this on Linux systems. I don't want to use any live-distributions or whole Operating Systems.  I tried to compile QGis stable as shown , but if I try to run it crashes saying:  Warning: !!! prefix path was requested, but it is not valid - we do not run from installed path !!! Segmentation Fault   Most likely it tries to read the configuration files from my .qgis config folder in the home-directory and fails because it can't work with the 1.9dev configurations and prefixes.  How can I work around this?


How much XP should you award if the encounter was not solved via battle?

I have created an encounter with monsters, with their relevant CR and XP. Normally, when the party kills everyone, they are rewarded the XP. If the party chooses to, and succeeds in, resolving the encounter without combat, do they get the XP they would've received for killing the monsters, or do you award XP based on the task they performed to defeat the encounter (and maybe use the DMG's easy/medium/hard XP reward for non-combat encounters)?  The possible solutions that come to mind:   They avoid the area (0 XP, as they didn't interact with situation) They talk their way out of it (Does this get the combat encounter's XP?) They find a very clever way to avoid fighting, with risk of being caught/killed/fall to their deaths (here I'm not sure if there needs to be a different set of XP values for what they're trying to accomplish).   I understand that a lot of people will say "I can do what I want", but I'm asking to find out what is the "standard".      I am not asking whether or not I should award the XP. I believe I should, and the DMG says I can/should too. I am asking if the XP awarded should be the same as if the PCs killed all the monsters, or at the difficulty of the "method" they thought of using.  For example, if they avoided the encounter by running through them stealthily and the monsters didn't see them (has risk) or by going overhead using the beams (risk of falling into the fight), should I award the full "killed-the-monsters" XP or a lesser XP because it's not difficult to go over the beams in a stealthy manner.


TermGroup, TermSet, name and label max length

I was wondering what the max. length restrictions are for SharePoint Online Managed Metadata Service:  - TermGroup name  - TermSet name  - Term/Label name/value  I could not find anything on MSDN. A link to a source or reference would be fantastic, too.


Geometric meaning of the determinant of a matrix

What is the geometric meaning of the determinant of a matrix? I know that "The determinant of a matrix represents the area of a rectangle." Perhaps this phrase is imprecise, but I would like to know something more, please.  Thank you very much.


How to prove the following using mathematical proof by induction?  $\phi^n = \phi\times F_n + F_{n-1}$  $\phi = 1 + \sqrt 5 /2$  Fn is the Fibonacci number.  I tried solving this using induction but then again I get stuck when solving for the proof of n=k+1.   Thank you


What would happen if something *rotated* with a tangential velocity near speed of light?

There's length contraction and time dilation when traveling in a straight line, but what if a spherical object like a white dwarf through some interaction rotated at a speed near the speed of light? What would be the effects? Would it appear smaller from all directions or just along its equator? Would time slow down around it or just its surface? Or would nothing happen at all because angles aren't dimensional units?


Intuitive reason for why $\left(\displaystyle\sum_{i=0}^n i\right)^2 = \displaystyle\sum_{i=0}^n i^3$

Is there any intuitive reason or deeper meaning to why the following equality holds?  $$\left(\sum_{i=0}^n i\right)^2 =  \sum_{i=0}^n i^3$$  I'm not looking for a proof of this, I'm looking for some explanation for this equality if it isn't just a coincidence.


Getting "You can only post once every 40 minutes." on my first post of the day (to any SE site)

On my very first post to any SE site today, I was blocked by the "You can only post once every 40 minutes" message. I haven't posted to any SE site in at least 24 hours.  I have read  and other linked duplicates, but they explain that posting on any SE site starts the timer.


Compactness, why is $(0,1)$ not compact? I need the "thought process"

See, I am told that $(0,1)$ is not compact as a subspace of $\mathbb{R}$. Question is, how do I conclude that?  The hint says      $(\epsilon,1)_{\epsilon>0}$ does not have a finite subcover.   But I am unsure why $(\epsilon,1)$ does not have a finite (open) subcover for $(0,1)$. The right end point is fixed to $1$ so all I can do is move around $\epsilon$. So some $\epsilon$ as close as possible to zero $(\epsilon,1)$ where $\epsilon \to 0$ alone would be an open cover of $(0,1)$.  Any other $\epsilon>0$ I choose would be redundant. $(1/2,1),(1/60,1),(8/7,1)...$ whatever. These are already covered by $(\epsilon,1)$ where $\epsilon \to 1$. So that means, the open cover by $(\epsilon,1)$ is finite on its own to start with. namely, just one open subset $(\epsilon,1)$ of $\mathbb{R}$ covers $(0,1)$.  I can come up with loads of other open covers, sure, but as I said, any other open cover apart from $\epsilon \to 0$ can be removed and still be an open cover of $(0,1)$. e.g. $\{(\epsilon,1)_{\epsilon \to 0},(23/81,1)\}$ is an open cover of $(0,1)$ but I can get rid of $(23/81)$ if I want to since that still leaves me with an open cover of $(0,1)$. So the same for any infinite open cover $\{(\epsilon,1)_{\epsilon \to 1},(1/2,1),(2/5,1),(1/3,1),...\}$ I can get rid of everything that follows $(\epsilon,1)$ and be left with an open cover i.e. finite subcover.    I need some clarification here and most probably; I am mistaken with something so blatantly obvious to those with experience. Think I am a super stupid human being and explain from possible the $1+1=2$s of this bizarre world of compactness if necessary. I think someone needs to fix some basic but esoteric notion for this one.


I need US zipcode areas (polygons) for a web map implementation. Can you tell me where to find it (free or paid)?


How do I reduce the space allocated to Ubuntu?

I have installed Ubuntu 12.04 , but now I am not satisfied as it has taken more space 100 GB. Since I have to use Windows more often, I found that I am unable to see the files of Ubuntu when I open the Window. Therefore I want to give smaller file system (repartition). Please guide me so that I can reduce the volume of my Ubuntu file system.


Show that in ℝ[x], no polynomial of odd degree > 1 is irreducible.

I think that logically, I understand the concept because no matter what polynomial you have you can always factor it into something with a x to a power plus or minus some real number, and that real number can be a fraction, or an irrational number, or a whole number. However, I am not sure how to write this in a reasonable mathematical way.


How to add or remove subscriber from auto suppression list using php sdk

I don't see a method built in the existing php sdk to add or remove subscriber from the auto suppression list, can somebody please share the same if you have it developed


Did Ripley age between Alien and Aliens?

When Ripley was in Cryo-sleep between Alien and Aliens did she age at all? The person in Cryo is still alive, reduced heart rate etc, but given that you wouldn't normally be 'asleep' for so long any small ageing would be unnoticeable surely one as long as 57 years would show some ageing on Ripley? (Looking 7 years older due to filming dates doesn't count)


Weird behavior of Partial TOC with titletoc

I have been looking for two hours for an explanation to the problem I am facing, and so far I found no hint.  In a document of the book class, I am trying to include partial TOC at the beginning of my chapters after some text introducing the chapter. I was using the minitoc package successfully for that purpose. However, I needed the [toctitles] option of package titlesec to fix problems due to wide titles in headers. As minitoc complained that the use of titlesec was not compatible, I tried to get titletoc to generate my partial TOCs.  Here is a test document demonstrating my problem:  \documentclass[12pt,a4paper]{book}  \usepackage[hidelinks]{hyperref} \usepackage{titletoc} \usepackage[toctitles]{titlesec}  \newcommand{\PartialToc}{\vspace*{2pc}\hrule\vspace*{1pc}% \startcontents[chapters]\vbox{\bf\Large Outline} \printcontents[chapters]{}{1}{}\vspace*{1pc}\hrule}  \begin{document}  \chapter{First Chapter}  Text Text Text Text Text Text Text Text Text Text Text Text Text  \PartialToc  \section{First Section} \section{Another Section} \subsection{One Subsection} \subsection{Two Subsection}  \chapter{Second Chapter}  Text Text Text Text Text Text Text Text Text Text Text Text Text  \PartialToc  \section{Last Section} \subsection{Three Subsection} \subsection{Four Subsection}  \end{document}   This results in the following partial TOC for chapter 1   Notice the lines "chapter.1" and "section.2.1 subsection.2.1.1 subsection.2.1.2" before and after the TOC. I think this text comes from the last argument of the \contentsline instructions in the .ptc file, but I have no idea why they show up ...  Anyone knows how to get rid of them ?


Minecraft crashes after opening my world that was viewed in NBTExplorer

I used NBTExplorer to check my seed. I made no changes that I am aware of, however my save file now crashes when opening.  ---- Minecraft Crash Report ---- // Oh - I know what I did wrong!  Time: 11/22/13 12:09 PM Description: Rendering screen  java.lang.RuntimeException: Failed to check session lock, aborting     at ajt.h(SourceFile:45)     at ajt.<init>(SourceFile:31)     at ajp.<init>(SourceFile:16)     at ajq.a(SourceFile:83)     at net.minecraft.client.Minecraft.a(SourceFile:1363)     at axu.e(SourceFile:166)     at axv.a(SourceFile:218)     at axt.a(SourceFile:175)     at axu.a(SourceFile:191)     at bfq.b(SourceFile:768)     at net.minecraft.client.Minecraft.K(SourceFile:597)     at net.minecraft.client.Minecraft.run(SourceFile:526)     at java.lang.Thread.run(Unknown Source)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Stacktrace:     at ajt.h(SourceFile:45)     at ajt.<init>(SourceFile:31)     at ajp.<init>(SourceFile:16)     at ajq.a(SourceFile:83)     at net.minecraft.client.Minecraft.a(SourceFile:1363)     at axu.e(SourceFile:166)     at axv.a(SourceFile:218)     at axt.a(SourceFile:175)     at axu.a(SourceFile:191)  -- Screen render details -- Details:     Screen name: bkf     Mouse location: Scaled: (152, 116). Absolute: (305, 247)     Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2 Stacktrace:     at bfq.b(SourceFile:768)     at net.minecraft.client.Minecraft.K(SourceFile:597)     at net.minecraft.client.Minecraft.run(SourceFile:526)     at java.lang.Thread.run(Unknown Source)  -- System Details -- Details:     Minecraft Version: 1.5.2     Operating System: Windows 7 (x86) version 6.1     Java Version: 1.7.0_45, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation     Memory: 474041104 bytes (452 MB) / 519110656 bytes (495 MB) up to 1037959168 bytes (989 MB)     JVM Flags: 2 total; -Xms512m -Xmx1024m     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used     Suspicious classes: No suspicious classes found.     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     LWJGL: 2.4.2     OpenGL: GeForce 8300/PCI/SSE2/3DNOW! GL version 3.1.0, NVIDIA Corporation     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Texture Pack: Default     Profiler Position: N/A (disabled)     Vec3 Pool Size: ~~ERROR~~ NullPointerException: null


Recording computer sound and microphone through one device?

I have always been able to record computer sound and microphone input through stereo mix. I have done this on Windows XP and on Windows 7, but I re-installed Windows on my system and now I cannot figure out how to do this.  My recording software is Camstudio and sometimes I use Hypercam2. I can only select one recording device at once; that is why I need to put my mic and computer sound through one channel. One thing that worked was letting the speakers "listen" to the microphone but I hate the side effect of hearing myself through my speakers or headset.  I was hoping I could find the answer here. If not, I would like to hear some work arounds like other screen/sound recording software that can record sound from two devices at once. Perhaps I need one that can compress on the fly. Preferably free since I got really awesome video quality with the free programs I mentioned above.  -edit- I forgot to mention that if I default my microphone my stereomixer goes "currently unavailable" and vice versa. A lot of people have exactly the same problem as I do but no answers anywhere. First they could run stereo mix and a microphone alongside each other just fine and upon reinstalling OS problems start to happen.


On Windows, is there any way to make some USB ports to be charge-only? I do not want to alter the settings of the devices; I want to change the settings of the USB ports on Windows, so that any device I connect to those ports will be only charged.  Is this possible?


What really happened to the USS Voyager in "Living Witness"?

In Star Trek: Voyager, episode 23 of season 4 (), the episode begins with a civilization unknown until now. They claim to hold the ruins of the USS Voyager, which has otherwise contributed to the history of this civilization in a negative way, whereby Captain Janeway formed an alliance with the enemies of the people in question.  In the historical reconstructions of this event, we see many parts belonging to the ship, such as the Doctor.  This one -- having been deactivated during all these years -- still seems to be several centuries ago. The Doctor is therefore considered as the last "living" witnesses of this war.  The USS Voyager was considered a heavily armed warship with a restless and violent crew. The Doctor has done everything to set the truth about that time, and finally, all ends well, history is approved.  However, what is really going on? In the other episodes, the Doctor is always present, as well as the crew members, and the USS Voyager. At the end of the series, they all return to Earth.  What about this episode that seems to be out of the scope of the story?    I couldn't find any explanation about this episode, except that we could consider it as a separate story, but it doesn't really make sense to put an episode that has nothing to do with it in the middle of the series (even if it's very good and fits in pretty well).  I don't think this question is a duplication of , because this one is about the whole episode, as well as what really happened to the crew.


External HDD not unmounted properly and now not working correctly

I recently gave my external HDD away to a Windows user and now I can't write anything to it nor read files on it, but it still shows folders and filenames in the file manager. I think he did not unmount the drive. I would just format it, but I want to keep the Data and I can't copy anything from it. What should I do?


Why if condition giving same out put on success or unsucess?

I have a script named temp.sh. I am running it from another script like...  sh temp.sh | tr '|' '\n' > sel-employee count=`wc -l sel-employee`  if [ '$count' == 0 ] ; then  echo "ERROR" else echo "SUCCESS" fi   when I run this script if file  sel-employee has zero line OR more then zero line in both cases it is output  SUCCESS. I can not understand why?


What can I do to increase passive HF RFID read range?

I am working on a prototype, one function of which is to detect whether an object is "in range" by a few cm. Right now I'm just using an Arduino and a cheap  that operates at 13.56 MHz:    I've successfully gotten it to detect the tag, but only at a distance of about 3-4 cm when the tag is oriented parallel to the antenna.  According to my  , the HF band allows read ranges of between 10 cm and 1 m for passive tags, depending on factors like antenna size, tag size and orientation, and transceiver power.  I realize this inexpensive reader is not up to task as-is, but I'm interested in building something that achieves read ranges of 15-20 cm.  Some criteria:   No need to read multiple tags; only whether one tag is in range or not. No need to write to the tag. Cannot use an active tag.   I'm not experienced with RFID reader construction (yet) but am interested in knowing what I should pursue.  Here are some things I've considered:   Ditch the embedded antenna on the cheap RFID reader and construct my own, larger antenna. I'd need to see if the onboard  is up to the task of providing additional power. Look for a different IC around which to build a reader from scratch. Find a ready-made solution instead of trying to build one (more cost-effective?). Use something other than RFID for simple proximity detection.   I am experienced with microcontrollers and basic electronics, and have made audio and lighting projects, but this is a first with RFID. Since I don't need to read multiple tags, which RFID is suitable for, I've considered maybe some sort of magnet and hall-effect sensor, but the range does not seem adequate. I considered using an ultrasonic proximity detector, but the application calls for detecting the tagged object while ignoring untagged ones (ultrasonic would produce false positives on untagged objects). I've considered some sort of reflective surface placed on the object, and detecting reflected light, but the object orientation is not reliable enough to maintain alignment.  So, in a nutshell, What modifications can I make to my existing reader, or what alternate technology should I pursue to achieve 15-20 cm detection of a passively tagged object?  I plan on connecting whatever proximity detector is used to a microcontroller using SPI.


I'd like to know if in Python I can write something similar:  FILE *file = fopen(path, mode); char tmp[block_size] = {0};  while(ftell(file) < file_length) {     fread(tmp, 1, (file_size - fw.tell()) > block_size ?                      block_size : (file_size - ftell(file)), file);      // do something }  fclose(file);


Absolute value of a measurable function is measurable

Let $(X , \mathscr{M}, \mu)$ be a measure space. Prove that if $f$ is measurable, then $|f|$ is measurable.    A function $f$ is measurable if $f^{-1}((a , \infty)) = \{x : f(x) > a\} \in \mathscr{M}$ for every $a \in \mathbb{R}$.   Ok so this is what I have so far:  Consider two cases: $a < 0$ and $a \geq 0$. If $a < 0$, then we have $$|f|^{-1}((a , \infty)) = \{x : |f(x)| > a \} = X \in \mathscr{M}$$ since $\mathscr{M}$ is a $\sigma$-algebra. I am confused on how to prove the case when $a \geq 0$. If $a \geq 0$, we have $$|f|^{-1}((a , \infty)) = \{x : |f(x)| > a \} = ?$$ I am assuming we will have to use that fact that $f$ is measurable.  Any help will be appreciated!


Follower disappeared after the "A Night To Remember" quest

Not long ago I did the 'A night to remember' quest. You will be teleported into another dimension then  when completed, you will be teleported back to the bar you found Sam.. But when I was there Jordis sword maiden was there with me to be my follower but when I was teleported she was not with me.. I tried to teleport her to me using commands and even going back to the same place but to no avail.. What do I do?


I would like to confirm  my answers for these questions before carrying out with more studying--since there are no answers, and I'm worried I will be practicing incorrectly.  Let F(x)="x is friendly", T(x)="x is tall" and A(x)="x is angry" note: ~ = negation  Ex 1. Some people are not angry  My answer:  ∃x~A(x)  Ex 2. All tall people are friendly  My answer: ∀xT(x) -> F(x)  Ex 3. No friendly people are angry  My answer: ∀xF(x) -> ~ A(x)  I'm feel confident the answers are correct, but just in case.


I am not quite sure what non-manifold geometry is. I thought non-manifold geometry was just floating vertices and hole in a mesh. From my experience this is not always the case however. What is non-manifold geometry and what are the types of it and how do I avoid it? Is there a case where it is acceptable?


SQL Server: having separate tables vs adding columns (db design)

I have this table:  CREATE TABLE [Entree] (     [RowId] [int] IDENTITY(1,1) NOT NULL,     [Name] [nvarchar](250) NOT NULL,     [Description] [nvarchar](250) NULL,     [FK_InspirationSource] [int] NOT NULL,     [Type] [int] NOT NULL,     [PriceRangeType] [int] NOT NULL,     [SoldCount] [int] NOT NULL,     [HolidaySpecial] [bit] NULL,     [DiscountApplicable] [bit] NULL,     [DateCreated] [datetime] NULL,     [LastModified] [datetime] NULL,     [Enabled] [tinyint] NOT NULL,     [BirthDate] [smalldatetime] NULL,     [IG_Int1] [int] NULL,     [IG_Int2] [int] NULL,     [IG_Int3] [int] NULL,     [IG_Int4] [int] NULL,     [IG_Int5] [int] NULL,     [IG_Int6] [int] NULL,     [IG_Int7] [int] NULL,     [IG_Int8] [int] NULL   and in C# code, corresponds to a Entree object with the respectable fields. IG_Int s specify bunch of other properties of the entree in cooking process.  Now, we want to have Derived_Entree objects. In the code, DerivedEntree is an Entree too. So DerivedEntree : Entree.   DerivedEntree has more columns. ParentEntreeId (FK to Entree), ExtraProcessingStep.   So for example, an entree would be "Snail Ravioli" and Derived Entree would be "Broiled snail ravioli".   If there were a separate table, it would be  CREATE TABLE [DerivedEntree] (     [RowId] [int] IDENTITY(1,1) NOT NULL,     [FK_Entree] [int] NOT NULL,     [ExtraProcessingStep] [int] NOT NULL )   and add FK_DerivedEntree in Entree table.  So whenever a new entree is entered, a row is inserted to the Entree table, and when a new DerivedEntree is entered, it is inserted to both tables. This is to satisfy the requirement that every Entree has to have a unique Id (which will be a RowId in Entree table)  Instead of adding a separate table, another option is to add those two columns (FK_Entree and ExtraProcessingStep) to the Entree tables and store them there.  What is a more standard practice? I thought about adding additional table because of FK_Entree but perhaps having a foreign key to itself is a common practice?


Realtek Semiconductor RTL8723DE Device d723 issue - problems with the solution

My wifi device Realtek Semiconductor RTL8723DE Device d723 is not recognized by Ubuntu. The solution  seems to fit perfectly to my issue, but  did not work for me and I do not understand why.  Executing the fourth step,  sudo dkms build rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414, I get the output  Building module: cleaning build area... 'make' all KVER=4.15.0-22-generic...(bad exit status: 2) ERROR (dkms apport): binary package for rtl8723de: 5.1.1.8_21285.20171026_COEX20170111-1414 not found Error! Bad return status for module build on kernel: 4.15.0-22-generic (x86_64) Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.   It seems to me that there is possibly some part of the package missing(?), and this did not get fixed by deleting the files and downloading again (in case the downloaded file was damaged).  I do not know what to do about that issue, as all the solutions I found seem to be some kind of the same, and lead to similar problems for me.   I am an inexperienced user, please tell me if there might be some important information missing.


How to permanently chmod a+w to usb scanner?

chmod a+w /dev/bus/usb/xxx/xxx    allows  simple-scan or iscan to work, but each time the scanner is turned on it claims a new bus:devnum  How can I get the scanner to use the same bus:devnum each time?  Or is there a better way?    There's lots of posts about scanners not working.  Eventually most of them seem to land on the permissions issue.  I haven't been able to find something that will work more than this manual tweak each time the scanner is turned on.  As many others have noted, adding saned to scanner, or even (!) to root did not help.  The 'manual' solution: Find the bus:devnum of your scanner, chmod it.  lsusb sudo chmod a+w /dev/bus/usb/xxx/xxx   Example:  > lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 046d:c080 Logitech, Inc.  Bus 001 Device 003: ID 04b8:014a Seiko Epson Corp.  Bus 001 Device 002: ID 17ef:6047 Lenovo  Bus 001 Device 007: ID 0b05:185c ASUSTek Computer, Inc.  Bus 001 Device 006: ID 0b05:1872 ASUSTek Computer, Inc.  Bus 001 Device 005: ID 0bda:5411 Realtek Semiconductor Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >  > sudo chmod a+w /dev/bus/usb/001/003 [sudo] password for gato:  >


I am doing a very rough render for a school project and when I try to render it it comes out completely different than in the 3d view     I suspect this is because of the yellow/gold dimensions bars on the right but I have no idea what they are or how to change them.


Accessing legacy BIOS following Windows 10 install

So I have just recently installed Windows 10 and I'm needing to get into my BIOS (legacy, not UEFI BIOS). I have turned off Fast Startup and Hybernation and I have tried the Advanced Startup. The only problem with Advanced Startup is that it only gives the option for UEFI access, not BIOS. I've also tried removing the hard drive with the OS to just boot to it; that didn't work. I also tried putting in the install disk (USB) to see if I could get to it. That didn't work either. Thanks for any help.  Specs: Windows 10 Enterprise (10240) 64Bit Processor: Intel Core i7-3770 RAM: 12GB Motherboard: Pegatron Corp. 2AD5 (v.1.03)


How can we find the value to which the following series converges, if it converges to a finite number? If else, how can we prove that it is divergent?$$1+\frac{1}{2+\frac{1}{3+......}}$$


Don't allow questions with close votes to be bountied

Since , the current solution is to .  Why should mods need to be involved? We don't allow questions with bounties to receive close votes. It should go both ways. For similar reasons,   The answer was that:  The questions that, usually, go through multiple, swift, close/reopen cycles are those that are currently being discussed on meta or new ones, i.e. those that are not yet eligible for a bounty.  It then went into the "flag for mod" answer.  I'm not familiar with other sites, but on Gaming, we close two day old questions all the time.  If a question slips through the cracks and doesn't get closed right away, it is usually days or even weeks before the issue is brought back up. The "flag for mod" answer works, but it seems unnecessarily complicated.  What if a mod isn't around?  It would be much simpler to simply disallow bounties on questions with close votes.  Now that , we don't even have to wait if a question with close votes gets fixed.


SPUtility Show Hide Field Based on Value from another field Custom Form

I followed the steps in the link  to Show/Hide a field in a form, based on the value of another field.  What I am having an issue with now is getting this to work on a New List Form, that I created from SharePoint Designer. I have SharePoint foundation 2013, so no access to InfoPath or conditionally hiding a field. The New form needs to be created because of other restraints found within SharePoints default forms.  Any help is appreciated. Thank you


Dynamically printing fully qualified class name along with method name

I want output com.iland.Action.LoginAction.doLogin()  The code should be effective for any class  for example  package com.iland.Action  Class LoginAction{    void doLogin()   {       System.out.println("");//what contens should be printed in sop   } }   I would like to print dynamically fully qualified class name and the method name which is being executed.


Showing that if $A_{1},A_{2},...$ are all algebras then the union of all of them is an algebra

I am not sure how to show this. It seems obvious but maybe its not. The help would be greatly appreciated!


i have installed Ubuntu 20.04 and after installing application like CodeBlocks and Zoom i have an issue that the apps are shown in a very tiny windows and icons, i tried different resolution but it does not help, i like how the desktop and everything looks, the problem is only on couple application. I got lenovo yoga 730 with 4k resolution.    Thanks !


How to change the working directory of invoking shell using a script?

Possible Duplicate:          I am trying to create few scripts that would change the working directory of the main shell/terminal. Not able to do so. I tried the following  File p1.sh  #!/bin/bash cd /home/mtk/work/project1   File code.sh  #!/bin/bash cd /home/mtk/templates/resusable/sampleCodes   But I am aware that the above would change it only for itself i.e. the one running currently, which would be p1.sh or code.sh in this case.  Please let me know, how would I be able to change the current working directory for the parent calling shell.  Example Run and expectation:  $ pwd /home/mtk $ p1.sh $ pwd /home/mtk    ### --> Expected /home/mtk/work/project1   Note  My use case is: I would like to do some processing and then place the prompt to a pre-defined directory.  EDIT  I see why it would not work. And alias seems to be the solution for such case. But I would like to expand, my question:  I need to create a script that would change the working dir of the parent shell dynamically. The script will be say mycd.sh . It would have command line arguments as  mycd.sh -c/-p1/-p2/ or some other user defined arguments.  Giving -c would switch the shell working dir to the respective dir. File mycd.sh would look like  .. some processing # parameter parsing if [ $param1 -eq "c" ]; then     # change working dir of parent here else  ... other conditions   I guess, there must be some way to change the shell working directory.  Please let me know, if anything is not clear.


Position footer at bottom of page having fixed header

I want to position the footer at the bottom of the page which having a fixed header also...   Not with position: fixed - I don't want it to remain on the screen, it should just be at the end of the page and behave normally when scrolling. Not at the bottom of the visible screen - At the bottom of the page, i.e; after all other content.     Here's a diagram to explain better:      Here's the code:   I have prepared a demo:  Or see below
Header

Some content...

Footer
   body{     /* Just to enable scrolling in JSFiddle */     height: 1000px; }  #header{     width: 100%;     height: 100px;     position: fixed;     top: 0px;     z-index: 1; }  #content{     width: 100%;     position: absolute;     top: 100px; /*Height of header*/     z-index: 0; }  #footer{     width: 100%;     height: 100px;     position: absolute;     bottom: 0px; }  /*For demo only*/ #header, #footer{     border: 3px dashed #333333;     background: #FFFFFF; }  #content{     background: #CCCCCC;     height: 200px; }


Result from Search Console and Google Analytics were not tally

Did you found that the overall click, impression, etc from Google Search Console was not tally the result shown in Google Analytics under user behavior (time, duration etc)  So what is the main caused to this problem?


Why is 'no connection' error appearing while accessing Google Play store?

I have this common, annoying problem while trying to access Google Play Store from my phone. It just shows 'no connection', and won't load, even though the internet access is surely working. The suspected cause is a synchronization error of my Google account, likely due to incorrect time settings (it's reported while running WhatsApp for example). Here's what I've done so far:   Set the time automatically Manually set the time, without using the network Clearing cache of Google Play store application Reinstalling Google Play store manually using .apk Logging out and back in with my Google account Rooting the phone and using ClockSync app to set the time Doing a factory reset of my device Making sure Freedom application is not installed   I'm slowly running out of ideas...if anyone has the smallest hint, I'll be really grateful. I'm using Android 4.2.2.


I'm using Drupal CKEditor module 7.x-1.13 and CKEditor 4.3.2. Everything is installed and appears to work fine... except that there are some buttons that don't appear despite being configured to do so, notably "Select All" and the justify left/right/centre/justified buttons. Here are the buttons as configured:    And here are the buttons as they appear:


Can we execute a shell script by clicking

Is it possible to double click and execute a shell script instead of executing the following "./xxxx.sh" notation from command prompt ?


Who is the "Nameless One" and why is he called that way?

"Nay", they said, "not if the Nameless One himself should come, not even he could enter here while we yet live." But some answered: "While we yet live? How long? He has a weapon that has brought low many strong places since the world began. Hunger. The roads are cut. Rohan will not come."   The Lord of The Rings, The Return of The King - The Siege Of Gondor   From other fantasy works (Askir, Discworld series has a version of him too), I know the Nameless One as the "evil" god that is the pattern of all thieves, assailants and up-to-no-goods, the antagonist of all other gods.   In some religious systems, his name was banished by a collaborative effort of all other gods (similar to how names of Roman Emperors were banished).        Who is the Nameless One and why is he called that way?


I have a big problem it keeps telling me this while I check everything and everything is good here is the code of the page in question. If I'm ever currently training that dates back 7 years so I think some thing doesn't work anymore so can be that the mistake comes from the. include '../lib/includes.php';  if(isset($_POST['name']) && isset($_POST['slug'])){     checkCsrf();     $slug = $_POST['slug'];     if(preg_match('/^[a-z\-0-9]+$/', $slug)){         $name = $db->quote($_POST['name']);         $slug = $db->quote($_POST['slug']);         $category_id = $db->quote($_POST['category_id']);         $content = $db->quote($_POST['content']);         if(isset($_GET['id'])){           $id = $db->quote($_GET['id']);           $db->query("UPDATE works SET name=$name, slug=$slug, content=$content, category_id=$category_id WHERE id=$id");         }else {           $db->query("INSERT INTO works SET name=$name, slug=$slug, content=$content, category_id=$category_id");         }         setFlash("La réalisation a bien été ajouté", 'success');         //header('Location:work.php');         die();     }else {         setFlash("Le slug n'est pas valide", 'danger');     } }  if(isset($_GET['id'])){   $id = $db->quote($_GET['id']);   $select = $db->query("SELECT * FROM works WHERE id=$id");   if($select->rowCount() == 0){     setFlash("Il n'y a pas de réalisation avec cet ID", 'danger');     header('Location:work.php');     die();   }   $_POST = $select->fetch();  }  $select = $db->query('SELECT id, name FROM categories ORDER BY name ASC'); $categories = $select->fetchAll(); $categories_list = array(); foreach($categories as $category){     $categories_list[$category['id']] = $category['name']; }  include '../partials/admin_header.php'; ?>```


How to vertically center a div inside another div that does not have pre determined height? (has height auto)

So I already have done this once in this page:   In this page I was able to vertically center the text displayed on the image:   That column has 2 codes that make the text centered: This one is added to the mother div  .academy-pc .one-third.mcb-wrap {     float: none;     display: table-cell;     position: relative; }   and this one is on the child div that has the text:  .academy-pc .vertic-center {     position: absolute;     top: 50%;     transform: translate(0, -50%); }   I've been trying to apply the same logic on this page but without success:   I wanted to vertically center the text in this image bellow but I just can't find a way.   Any help? thanks in advance


SQL Row concatenation with XML PATH and STUFF giving aggregate sql error

I am trying to query two tables and get results like the following:  Section    Names shoes      AccountName1, AccountName2, AccountName3 books      AccountName1   The tables are:  CREATE TABLE dbo.TableA(ID INT, Section varchar(64), AccountId varchar(64));  INSERT dbo.TableA(ID, Section, AccountId) VALUES (1 ,'shoes','A1'), (2 ,'shoes','A2'), (3 ,'shoes','A3'), (4 ,'books','A1');  CREATE TABLE dbo.TableB(AccountId varchar(20), Name varchar(64));  INSERT dbo.TableB(AccountId, Name) VALUES ('A1','AccountName1'), ('A2','AccountName2'), ('A3','AccountNAme3');   I saw a few questions answered saying to use "XML PATH" and "STUFF" to query the data to get the results I am looking for, but I think there is something missing.  I have tried the below query and get the error message:     Column 'a.AccountId' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.   I don't have it in the SELECT clause of either query, but I assume the error is because AccountId is not unique in TableA.  Here is the query I am currently trying to get working correctly.  SELECT section, names= STUFF((     SELECT ', ' + Name FROM TableB as b  WHERE AccountId = b.AccountId FOR XML PATH('')), 1, 1, '') FROM TableA AS a GROUP BY a.section


Interaction between line of sight, enemy reach and opportunity attacks

The basic rules state for opportunity attacks:     You can make an opportunity attack when a hostile creature that you can see moves out of your reach.   RAW seems to imply that by circling around the enemy before leaving his reach oppportunity attacks are completely prevented. That would mean that in most situations for medium sized enemies, characters could easily leave the reach of them without using the disengage action or provoking opportunity attacks - am I wrong?


Positive definite matrix must be Hermitian

Is there a simple way to show that a positive definite matrix must be Hermitian?  I feel there is a long drawn out proof of this to be had by taking unit vectors and applying the positive definiteness property, and brute forcing it.  But is there some simple clever proof why a positive definite matrix is necessarily Hermitian?


How do I FORCE restart a iPhone 4s with a broken sleep/wake button AND notification area stuck midway!

Here are the details   MY iphone 4s have a broken sleep/wake button!   The notification area is stuck midway and I can't do anything! I have assistive touch I have iTunes Phone have no passcode and I can use the Control Center and Siri    I need to force restart!  Please help!


how can remove part of figure caption from list of figure in latex?

I have this caption of figure: \caption{these are my figure. (a):aaaaa. (b): bbbbbb.} that appear in below of figure in text. All part of this caption appear in list of figure. I want only appear this : these are my figure. in list of figure. is there any way ?


Why is it that a force is not required for a body to move at constant velocity?

A body continues in its state of motion unless a force is applied to it. But how does an object stay in motion in the first place? A force must have caused it to move right?


How to view parts of a window limited by screen resolution?

Window manager is MATE. OS is Debian 10. In certain applications, I'm stuck with windows I can't resize. Working on laptops, screen resolution is sadly limited, so the lower parts of these unresizable windows are cut off. (I have two laptops with this issue, and my friend has a third)  How can I just move the window upwards so I can reach these parts of the window? Unfortunately MATE will not let me move the window off the screen using the alt+f7 shortcut.  Happy to use a different window manager temporarily just to get this to work.


NullPointerException error when calling a Method with openFileInput from a different class

New to android programming - apologies for incorrect jargon.  My app can save data entered to EditText fields. It then can load this data and set the values of this data to String Variables. Then it preforms a POST HTTP request with these strings.  I'm loading/saving string files using openFileInput and openFileOutput  I've created Methods:  public String LoadMethod() public String SaveMethod()   These Methods work fine when the Method is in same class as the Activity calling it.  My problem is that 2 Activities need to be able to run the public String LoadMethod()  So what i did was create 2 java class files for Loading and Saving data. Some commenting is in the files as I've been trying to debug.  LoadUserDetails.java  public class LoadUserDetails extends AppCompatActivity {     public static String sSavedName;     public static String sSavedCompany;     public static String sSavedPhone;     public static String sSavedCarRegistration;     String sNameFile = "name_file";     //private Context context;      public String LoadMethod(){      /* OPEN DETAILS FROM INTERNAL STORAGE*/          //context = getActivity();         /*NAME*/         try {              String sOpenName;             FileInputStream fileInputStream = openFileInput("name_file");             InputStreamReader inputStreamReaderName = new InputStreamReader(fileInputStream);             BufferedReader bufferedReaderName = new BufferedReader(inputStreamReaderName);             StringBuffer stringBufferName = new StringBuffer();             while ((sOpenName = bufferedReaderName.readLine()) != null) {                 stringBufferName.append(sOpenName + "\n");             }              sSavedName = (stringBufferName.toString());          } catch (FileNotFoundException e) {             e.printStackTrace();         } catch (IOException e) {             e.printStackTrace();         }   The code repeats for opening the other 3 string files.  I Launch this method from my UserDetails.java Activity and MainActivity.java Activity using this code:  //Load User Details         LoadUserDetails load = new LoadUserDetails();         load.LoadMethod();   This is the error I get in logcat:  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.visitorrego.oem.smartsigninvisitor/com.visitorrego.oem.smartsigninvisitor.UserDetails}: java.lang.NullPointerException   ..........  Caused by: java.lang.NullPointerException             at android.content.ContextWrapper.openFileInput(ContextWrapper.java:191)             at com.visitorrego.oem.smartsigninvisitor.LoadUserDetails.LoadMethod(LoadUserDetails.java:31)             at com.visitorrego.oem.smartsigninvisitor.UserDetails.onCreate(UserDetails.java:37)   I've tried using Context and the ContextWrapper error disappears but i still get the others :(  I know its something to do with calling a method using OpenFileInput from a different class. I don't have an issue with calling the postrequest method in my webrequest class...  Any ideas?  Can post more code if needed.


What is more acceptable—"Hopkins's" or "Hopkins'"?

The title is fairly self-explanatory, but I was wondering how one would write/say the possessive form of the name "Hopkins". Is it " Hopkins's " or " Hopkins' " or are both acceptable?


How to hide console while running a batch file on windows

In my project i am using the btach file to start the exe file. This batch file is triiggered from an external source(may be another exe). It works as expected. But it opens a console. We don't want any conosole to displayed.  Is there any way where we can hide this console.  We tried with -- console suppress, could not get the desired results.


Let $f$ be polynomial in $n$ variables. If we have $f(a_1,\ldots,a_n) = 0, a_i \in S_i$ and $S_1,\ldots,S_n$ are infinite subsets of a field $k$, how can I show that $f=0$?


NullPointerException in Java with HashSet

This program basically iterates a hashset collection of greetings. The greetings are stored in the manager class in a hashSet called greeters. What I have to do is create a method that iterates a over the greeters and prints it out depending on a set of variables (isHappy and greetTimes). Is happy determines whether or not the greetings will have an exclamation point or not and the greetTimes determines the number of times the greeting will show up. However, when I run the allGreet method I keep getting a null pointer exception. Any help is appreciated :) Here is the exact text of the error message:  java.lang.NullPointerException     at Manager.allGreet(Manager.java:51)  Here are the classes:  import java.util.HashSet; import java.util.*; /**  * Class manager  */ public class Manager {  /**  * Constructor for objects of class Manager  */ public Manager() {     HashSet <Object> greeters = new HashSet<Object>();      // add elements to the hash set     greeters.add("Hola");     greeters.add("G'Day");     greeters.add("Ciao");     for(Object greeter : greeters){         System.out.println(greeter);     } }  /**  * all the different greetings for the Greeter  */ public static void main(Object args[]) {     Manager hi = new Manager();     hi.allGreet(); }    public String greeting = "Bonjour"; public int greetTimes = 6; public boolean isHappy = true; public HashSet greeters;  /**  * allGreet Method   */ public void allGreet()  {          if(greetTimes < 0) {             System.out.println("Invalid number of greetings!");         }          else {             if(isHappy == true){                 for(Object greeter : greeters){                     System.out.println(greeter + "!");                 }             }             else {                 for(Object greeter : greeters){                     System.out.println(greeter);                 }             }         }     }   }   /**  * Class Greeter:  *  * Hello-world program to demonstrate BlueJ.  */ class Greeter { /**  * Method that does the work   */ public void go() {     if(greetTimes < 0) {         System.out.println("Invalid number of greetings!");     }     else {         if(isHappy == true){             for (int i = 0; i < greetTimes; i++) {                 System.out.println(greeting + "!");              }         }         else {             for (int i = 0; i < greetTimes; i++) {                 System.out.println(greeting);              }         }     } }  public String greeting = "Bonjour"; public int greetTimes = 6; public boolean isHappy = true;  public Greeter(String greeting, int greetTimes, boolean isHappy) {     this.greeting = greeting;      this.greetTimes = greetTimes;     this.isHappy = isHappy;  }  public Greeter() {     this.greeting = greeting; }  /**  *  main method for testing outside BlueJ   */ public static void main(String[] args) {     Greeter hi = new Greeter();     hi.go(); }  public String getGreeting() {     return greeting; }  public void setGreeting(String greeting) {     this.greeting =  greeting; }  public int getgreetTimes() {     return greetTimes; }  public void setgreetTimes(int greetTimes) {     this.greetTimes = greetTimes; }  public boolean getisHappy() {     return isHappy; }  public void setisHappy(boolean isHappy) {     this.isHappy = isHappy; }  }


Editing X,Y of point in shapefile using ArcGIS for Desktop?

Using ArcMap 10.1, I edited the coordinates within a shapefile.   They are long/lat but the point will not move to that new coordinate on the map.   I've tried clicking on the Longitude column in the attribute table and 'calculating geometry' but still nothing occurs.


Quick way to subtract white outline from knotwork pattern in Illustrator?

I am working with a pretty complex traced AI that I received, and I want to basically make it so that all the visually black stuff is shapes, and all the white outlines (invisible here) are removed. Most of the spaces when a line crosses over another is created by a white outline.   I know about expanding appearance and the pathfinder tool, but because there are so many lines that are crisscrossing, I haven't had an easy way of minusing the fronts away. I could expand appearance and sort every object carefully, but I feel like there may be a quicker way of doing this.  If I put it in Photoshop as a smart object in 'screen' mode, it looks right.. I could put that back in Illy and trace it, but I don't want to complicate the paths.


Why can't you decrypt an encrypted message with just the public key?

How does asymmetric crypto work? For example, if you use PGP in emails, you generate a private key that is known only to you and a public key, which is available to everyone. Is there a simple way to explain, why you need a private key and why no one can decrypt the message with just the public key? I think of an explanation like for example with prime numbers:  If you multiply two large prime numbers, you get a huge non-prime number with only two (large) prime factors. Factoring that number is a non-trivial operation, and that fact is the source of a lot of Cryptographic algorithms. (See  for more information.) The product of the two prime numbers can be used as a public key The primes themselves as a private key. So the private key is the knowledge of two very large prime numbers  for easy understanding lets take the simple example (very large) prime numbers: 3 and 5:  private key: the knowlege of 3 and 5 the public key is just those numbers multiplied: 15 you cannot find out 3 and 5, so the message encrypted with 15 is ...  Here is a quite good explanation already, but it is not clear enough:  Can you please add an example with those numbers?


here is result  when I typed Can anyone solve my problem? after doing execute command of following   install libavcodec-extra   I realized that vlc and golden dict disappeared.  some other apps may also be affected by the command but so far i have confirmed were the two.  I executed command sudo apt-get autoremove that removed some files.  but still I am not able to restore my vlc and golden dict.  apt-get install vlc Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  vlc : Depends: vlc-nox (= 2.1.2-2build2) but it is not going to be installed        Depends: libvlccore7 (>= 2.1.0) but it is not going to be installed        Recommends: vlc-plugin-notify (= 2.1.2-2build2) but it is not going to be installed        Recommends: vlc-plugin-pulse (= 2.1.2-2build2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.       When I do apt-get update I will get error of PUBLIC KEY  W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32


I have a Canon 60D and a Yongnuo YN560-III flash, everything works fine normally, but when i go in live view mode the flash doesn't fire Why is that?


Can anyone help me in converting a english sentence into logical expression?

The propositions are given as below.  P: Grizzly bears have been seen in the area. Q:Hiking is safe on the trail. R:Berries are ripe along the trail.   Now tell me, what will be the logical expression of this, and why:  "If berries are ripe along the trail, hiking is safe if and  only if grizzly bears have not been seen in the area."  The problem is from the book "discrete mathematics and its application" by Keeneth H.Rosen page no.17 in its sixth edition.   Now I had tried to do myself. And I finished with $((R\rightarrow Q)\leftrightarrow(\neg P))$. But in my book the ans was  $(R\rightarrow(Q\leftrightarrow(\neg P)))$, but I can't understand why this is the answer. I think the answer should be $((R\rightarrow Q)\leftrightarrow(\neg P))$ because $\rightarrow$ has precedence over $\leftrightarrow$.  Could anyone please tell me what is the right answer is and why.


Should I always restart the system when I see "System restart required"?

These two nice SE posts  comment on restarting one's ubuntu machine but they leave me with a few questions:   How do you actually do the restart (I'm a beginner and using 12.04.1 LTS)? Should I always restart the system when prompted to? Does restarting the system affect access to it via SSH or there any other caveats one needs to think about before doing this?


My child has transferred phones. I now have his old phone and want to repurpose it, sell it, donate it, give it to a co-worker, use it myself, etc.  The FRP protection prevents me from doing that. I understand the point of FRP but the logic behind it is somewhat flawed and doesn't cover a multitude of legitimate scenarios. I own this phone, not my child!  My child is not present to provide credentials to bypass this feature. How do I reset this essentially bricked device without having to use hacking software?    Note: this question does look a bit like a duplicate of , but none of the answers there are acceptable or work.


Show that $\lim_{n \to +\infty} \frac{\sum^n x_i}{\sum^n y_i}=a.$

Let $\{y_n\}$ a sequence so that $\sum y_i=+\infty$ and $$y_n>0, \forall n \in \mathbb{N}.$$  Show that if  $$\lim_{n \to +\infty} \frac{x_n}{y_n}=a$$ then $$\lim_{n \to +\infty} \frac{\displaystyle \sum^n x_i}{\displaystyle \sum^n y_i}=a.$$


How can you determine a point is between two other points on a line segment?

Let's say you have a two dimensional plane with 2 points (called a and b) on it represented by an x integer and a y integer for each point.  How can you determine if another point c is on the line segment defined by a and b?  I use python most, but examples in any language would be helpful.


I had browse for this issue in the forums, but the answers I found are not concrete or refers to older version of ubuntu.   I am using ubuntu 14  (3.13.0-35-generic #62-Ubuntu x86_64 x86_64 x86_64) and the RAM usage usually reach the 100%. even with a just-booted system, it is more than 50%.  is this normal in this version of ubuntu? for a 4 GB RAM machine it would be better to switch to lubuntu or other desktop with less RAM requirements?   $ free -h             total       used       free     shared    buffers     cached Mem:         3.9G       2.3G       1.6G       23M       318M       1.0G -/+ buffers/cache:      1.0G       2.9G Swap:        4,0G         0B       4,0G


I've just bought a stick to download the latest version of Ubuntu Desktop. I downloaded the program from Ubuntu and it is now on the stick. I downloaded it and I see both the file and the ISO file. I open the file folder and all files are listed include "Install" I click on that file and a mt86plus comes up....  I am then asked how do you want to open this file, I tried opening it with 7-Zip and nothing...  Any suggestions?


Creating QGIS copy-paste features between two layers using PyQGIS?

i want to create a QGIS action which copies features between two points layers using pyqgis .  i have read  and i try to use this code:  # only QGIS < 2.0 iface = qgis.utils.iface # Make the source layer active iface.setActiveLayer( sourceLayer ) # Set the selection on the source layer (Could also be done manually with the selection tools sourceLayer.setSelectedFeatures( [ 1, 5, 10 ] ) # Copy iface.actionCopyFeatures().trigger() # Set destination layer active iface.setActiveLayer( destinationLayer ) # Turn on editing on destination layer, so we can paste destinationLayer.startEditing() # Paste features iface.actionPasteFeatures().trigger() # Uncomment to automatically save edits # destinationLayer.commitChanges()   but in my case i dont need to copy selected features but i need to copy all features from sourceLayer to destinationLayer,and i need to transfer common attributes from sourceLayer to destinationLayer .  What changes do I need in this code?


This if-elif is simple and straightforward. index is a 1-D array with values of 0-5 only. As you can see from the image, the only correct if-elif is only for index[i]==0 and index[i]==1. For index[i]==5, it was supposed to print f but the result was printed as d. What went wrong?  Current output:    for i in index:     print(i)     if index[i]==0:       print(" :a")     elif index[i]==1:         print(" :b")     elif index[i]==2:         print(" :c")     elif index[i]==3:         print(" :d")     elif index[i]==4:         print(" :e")     elif index[i]==5:         print(" :f")


Searching a file for a list of regexs, Python

I'm having a bit of trouble searching a file using python regex.  I would like to input a list of regexs and return the lines of the file that match one of them in a jagged list that is indexed in the same way was the rexex list, i.e. if a line matches the 1st regex it will be added with: results[0].append(line) and if the second is matched: results[1].append(line) and so on...  import re  def search(path, regex_list):      reg_list = [re.compile(regex) for regex in regex_list]      results = reg_list.__len__()*[[]]      with open(path, 'r') as fp:          for line in fp:              for i, reg in enumerate(reg_list):                  if reg.search(line):                      results[i].append[line]     return results  print(search("./log", ['1234', '1233']))   I woud like my output to be:  [['log entry 1234\n'], ['log entry 1233\n']]  but what I really get is:  [['log entry 1234\n', 'log entry 1233\n'], ['log entry 1234\n', 'log entry 1233\n']]  I'm pretty new to python so I could be doing something really stupid, any ideas what it is?


2D open world MMORPG; big map memory problem

I am developing an 2d open world mmorpg game for learning purposes, and have a issue with big maps.  A year ago i developed 2d open world single player / co-op game. It saved map in chunks, and AI for NPCs starts 'ticking' when specified map chunk is loaded.  In my mmorpg game, NPCs AI is handled by server, and its always 'ticking' in some specified interval. That is where my troubles begin. I want NPC to walk in random directions. For this to work, I have to check map collision for every step, so my NPC wouldn't end up in wall. Problem is when I have big map, for example 10000x10000, and every tile is represented with 6 bytes, that is about 572MB of map data my server must hold in memory all the time, and i cant load just few map chunks, like in my single player RPG because of lot NPCs AI needs to be updated all the time, even if player is not located near by.  My goal is to archive map size of 50000x50000 tiles. I know its possible because i seen 2d mmorpgs with huge open worlds, a lot bigger then 50000x50000, and I doubt that their server have 20GB of ram to waste just on maps.   If anyone have any ideas how I can lower memory usage, I woud like to hear you.   Thanks in advance, and sorry for my bad english


Removing leading zeroes from a field in a SQL statement

I am working on a SQL query that reads from a SQLServer database to produce an extract file. One of the  requirements to remove the leading zeroes from a particular field, which is a simple VARCHAR(10) field. So, for example, if the field contains '00001A', the SELECT statement needs to return the data as '1A'.  Is there a way in SQL to easily remove the leading zeroes in this way? I know there is an RTRIM function, but this seems only to remove spaces.


I’m looking for internationally applauded  textbooks on fundamental biology. Books that are a must for a pre-medicine student/high school advanced. Currently, I study Biology by Neil Campbell, Jane Reece(and team) and I really like it. What I’m looking for is 21st century pedagogy and a modern writing style(as opposed to a stiff, unfriendly writing style that reads like a fact presentation pamphlet); books so good you don’t need an amazing teacher(which I definitely do not have.) Thanks.  P.S.- If you have come across amazing books in branches of biology like say biochemistry or neuroscience or immunology, even those suggestions are welcome. P.P.S- My question is distinct from the “Books for beginners” question asked by user31782 because: 1.cost is no bar 2.I am not a beginner in biology, I’m studying pre medicine; and 3.All the resources suggested in the answers, I already know about them/have used them.


Incorporate single WordPress page into an existing static website

I have a static website and I recently created one single WordPress page, or template, that I am trying to incorporate into my existing static site. I am having trouble. My single WordPress page looks exactly like my static site. The WordPress page can be found at . I am ultimately trying to get the WordPress page to take the place of 3elementsreview.com/submit (the submit page is temporarily not there as i have taken it down trying to get the wordpress php page to replace it). In addition, I would like my Wordpress page to have the extension submit.html as the static page has. Where am I going wrong with this?  Thanks


Problem on $\operatorname{Hom}(\mathbb Z_6,R^*\oplus C^*)$

If  $\mathbb R^*$ and $\mathbb C^*$ be respectively multiplicative groups of non-zero real and complex number then whether $\operatorname{Hom}(\mathbb Z_6,R^*\oplus C^*)$  is  isomorphic to $\mathbb Z_{12}$? or $\mathbb Z_6$? or $\mathbb Z_6\oplus \mathbb Z_2$?


Use the Division Algorithm to show the square of any integer is in the form $3k$ or $3k+1$

Use Division Algorithm to show the square of any int is in the form 3k or 3k+1   What confuses me about this is that I think I am able to show that the square of any integer is in the form $X*k$ where $x$ is any integer. For Example:  $$x = 3q + 0 \\ x = 3q + 1 \\ x = 3q + 2$$  I show $3k$ first $$(3q)^2 = 3(3q^2)$$ where $k=3q^2$ is this valid use of the division algorithm?  If it is then can I also say that int is in the form for example 10*k  for example  $(3q)^2 = 10*(\frac{9}{10}q^2)$  where $k=(\frac{9}{10}q^2)$  Why isn't this valid? Am I using the div algorithm incorrectly to show that any integer is the form 3k and 3k+1, if so how do I use it? Keep in mind I am teaching myself Number Theory and the only help I can get is from you guys in stackexchange.


The question is the well-known      If there are so many/infinite stars, in every direction, why is it dark at night? Where goes all the light we don't see?    Discussing with a friend we found different answers.   The first (my friend's answer) is that given the fact that in a finite amount of time (in this case, the age of the universe), light can travel only a certain, finite, distance, we cannot see, if they actually exist, stars farther than such distance (about 13 billions of years, I guess). Then he states (or better, I got him notice he implicitly does this)  that within this radius there aren't enough stars to fill the night sky, and that's why we have darkness without sun's light.   The second answer (mine, or anyway the one I heard from a minutephysics YouTube video) is that despite of the big size of the observable universe, cosmological expansion red shifts most of the light out of the visible radiation range, so that the majority of light can't be seen by our eyes at night, while if we use, for example, an infrared camera, we should see a brighter sky, and lenghtening more and more the wavelength at which we observe the sky, we come to the uniform background radiation.  So my question is, what is the right answer? Is it one of the above-mentioned or even a third one?  EDIT: I've seen both answer may be acceptable, but what is the main contributing phenomenon?


Why $\mathbb Z/2\mathbb Z\oplus \mathbb Z/2\mathbb Z$ is used instead of $\mathbb Z/2\mathbb Z\times \mathbb Z/2\mathbb Z$?

Since both notations are the same, why $\mathbb Z/2\mathbb Z\oplus \mathbb Z/2\mathbb Z$ is used instead of $\mathbb Z/2\mathbb Z\times \mathbb Z/2\mathbb Z$ ?


How to use custom VF component in managed visualforce email template

I am trying to use custom vf component in managed vf email template but it is giving me an error saying unknown component. My vf component is set to global already and all the attributes are also set to global.


The switch opcode in CIL is quite limited compared to what C# offers. It accepts a single jump table containing a sequence of labels to where to jump if the argument is equal to the index of the label. So, unlike C#, you can only switch on a non-negative integer, and only for all cases from 0 to n. On the other hand, C# switch can be used on strings and even negative numbers. I have done some tests, and for strings, it seems a simple == equality is employed, so despite a popular belief, switch is not faster than if/else if in that case. == calls Equals, which does ordinal comparison (i.e. bytewise). Also if seems that if the cases are "sequential enough", it is compiled to a real switch opcode. The compiler is even so clever it finds the minimum of the cases and subtracts it from the value, effectively making the cases start from 0. If there are some cases outside the sequential range, it turns them to normal comparisons, but keeps the switch. If there are gaps in the switch, it makes them point to the next instruction (default:). So I wonder, what is the full set of rules the compiler considers when compiling the switch statement in C#? When does it decide to turn it to the switch opcode, and when is it transformed only to normal comparisons? Edit: Looks like for large amount of strings in switch, it caches them in a static Dictionary<string, int>.


What did I do that caused the face of the mesh to glitch out like this? And how do I remove/fix it? I'm not sure if it is two faces ontop of each other?