I am using ArcMap 10.5 with an Advanced level license. I am wanting a portion of my text box to be bold. I clicked Insert --> Text. When I type <bol> it literally shows up on my text box as <bol>. I have searched everywhere for recommendations, tried adding quotation marks and nothing works.

I am using a Label Expression to label a parcel layer.  The expression is:  "<FNT name=""Arial"" size=""12"">" & [Owners_Nam] & "</FNT>"   This works correctly for some labels, but any [Owners_Name] field that has an "&" in it, such as between two owners names (Smith, John & Sue), does not show up correctly.  The parcel is labeled as:  <FNT name="Arial" size="12">Smith, John & Sue</FNT>   Is there any way to solve this without removing the "&" from the [Owner Name] field?    I know how to replace the & in Field Calculator; I would just like to preserve the original field text.  I've had this same problem in the past using the <BOL> tag too.


I'm working on a program that requires the PC to stay online at all times.  I want to allow my program to run while the monitor turns off but prevent sleep mode.  For example if I have auto sleep set to enable after 2 minutes of inactivity I'd like this process to begin and the monitor to turn off but the CPU stay active and allow my program to utilize the CPU.  I thought this line would do it but sleep mode still occurs.   SetThreadExecutionState(ES_SYSTEM_REQUIRED);   What am I doing wrong?

I have to stop windows from going into sleep when my program is running.  And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep. Therefore SetThreadExecutionState is not enough.  Or...I don't actually have to prevent the sleep completely, only delay it 5-10sec to allow my program to finish a task.  (I know that this is bad program behavior but it's only for personal use.)


EDIT  Answer was found here:   By user: s_ha_dum    I'm dynamically creating sidebars and registering them for every top level page:    The problem is, I want to test if a sidebar doesn't exist for that page, to use default:  if(is_dynamic_sidebar(get_the_title()))                     dynamic_sidebar(get_the_title());                 else                     dynamic_sidebar('Default');   I've tried to test  if(is_dynamic_sidebar(get_the_title()) && dynamic_sidebar(get_the_title()) but this just repeats the sidebar content twice for some reason. I also tried:  if(is_dynamic_sidebar(get_the_title()) && is_active_sidebar(get_the_title()) but this just removes all my sidebars or if I change the && to || it will display normally except never uses default. So pretty much on my subpages, it uses no sidebar. Anybody have suggestions on what I can do?  Updated Code thanks to @Ravs   if(!is_active_sidebar(get_the_title()))     dynamic_sidebar(get_the_title()); else      dynamic_sidebar('Default');

I've never gotten is_active_sidebar() to work, no matter if there's widgets in the sidebar or not I always get false returned. Currently I'm creating a sidebar for each top level page:    I create my own widget(s):    And I'm testing whether the sidebar is active like so:  if(is_active_sidebar(get_the_title()))     echo 'active'; else     echo 'not active';   Even when I manually put the title in: is_active_sidebar('Test'); it always returns false. Am I using the conditional wrong? Do I need to add some sort of setting? Why would is_active_sidebar() fail?


I am new at this, but I am trying to make a .BAT file that can delete all files in a folder that is older then X days. I am able to do this using the Command Line, but when i use it inn a .BAT file it does't do anything.  My example:    @echo off ForFiles /p “C:\Users\Username\Pictures\2018-03” /s /d -1 /c “cmd /c del @file” end   If I use the line: ForFiles /p “C:\Users\Username\Pictures\2018-03” /s /d -1 /c “cmd /c del @file” in cmd it will delete all files older then 1day.

I am looking for a way to delete all files older than 7 days in a batch file.  I've searched around the web, and found some examples with hundreds of lines of code, and others that required installing extra command line utilities to accomplish the task.  Similar things can be  in just a couple lines of code. It seems that something at least remotely easy could be done for batch files in Windows. I'm looking for a solution that works in a standard Windows command prompt, without any extra utilities. Please no PowerShell or Cygwin either.


An element $x$ in a ring $R$ is called nilpotent if $x^n=0$ for some $n\in \mathbb N$. Let $R$ be a commutative ring and $N=\{x\in R\mid \text{x is nilpotent}\}$.  (a) Show that $N$ is an ideal in $R$.   (b) Show that the quotient ring $R/N$ has no non-zero nilptoent elements.  What's the steps to prove (a) and (b)?

Possible Duplicate:          An element $a$ of a ring $R$ is nilpotent if $a^n = 0$ for some positive integer $n$. Let $R$ be a commutative ring, and let $N$ be the set of all nilpotent elements of $R$.  (a) I'm trying to show that $N$ is an ideal, and that the only nilpotent element of $R/N$ is the zero element.  (c) What are the nilpotent elements of $R = \mathbb{Z}_{24}$? And what is the quotient ring $R/N$ in that case? (what known ring is it isomorphic to?)


so, I am creating a cel-shaded RPG, and I created this low poly character for now so I can get the base animations and stuff done in unity. I rigged the character following a tutorial by Royal skies LLC on youtube, and the armature does not move with the mesh. can someone please tell me how to fix this? also it is worth mentioning that I am new to blender but pretty comfortable with unity.

I'm trying to animate a character that I have created with blender 2.71, but something doesn't work well. As you can see from the screenshot, I have created the bones, I pressed Ctrl + P and then I have chosen the option 'With Automatic Weights'.     However, when I right click on a bone and I try to move it, the meshes of the character don't move; Only the bones do it. What am I doing wrong?


I want to compare the performance of various volatility models like GARCH, eGARCH, and gjrGARCH from actual volatility (computed using high frequency data). I found three common performance evaluation measures used profoundly in literature, i.e. Root Mean Square Error (RMSE), Mean Absolute Error (MAE), and Mean Absolute Percentage Error (MAPE). But I found conflicting results from the above three criteria, like I found RMSE is minimum for GARCH model, MAE is minimum for eGARCH model, and MAPE is minimum for gjrGARCH model.   I want to know which one is the best measure for evaluating performance and which results should I report? If all three are equally valid then how can I interpret the results? Is there any other way to compare the performance of various volatility models other than performance measures?

I am evaluating different forecasting models and their ability to forecast index volatility during period of market turmoil, using two measurements, Root Mean Square Error and Mean Absolute Error. For the previous evaluated models, ARMA (1,1) as an example, I was able to obtain the residuals and calculate the RMSE quite easily in Stata.   When estimating the GARCH (1,1) model in Stata I am however not able to correctly obtain the residuals in the post estimation procedure, no option to directly obtain the RMSE is available. Perhaps I have misunderstood how one should evaluate the forecasting ability of GARCH models, since the models specifies the conditional variance unlike ARMA which specifies the conditional mean.   Does anyone have a suggestion on how to obtain these evaluation measurements after estimating a GARCH model? And preferably how to do it in Stata.


Visual Studio is showing two things for boolean type like:  Boolean and bool  And for double type:  Double , double  Why so? Two are in different colors and will they both are same? What is the difference?

What is the difference between bool and Boolean types in C#?


I never upgraded to Mountain Lion or Mavericks and now that Yosemite has arrived  I thought of upgrading but I find that some of my software will not work with it. So I would like to upgrade to Mavericks for now. Is it still possible to get the free upgrade? I no longer see it listed in the Mac App Store.

I think I would like to install Mavericks over Snow Leopard on my Intel Core 2 Duo MacBook Pro because I imagine it is more stable than Yosimite and I'm doing a lot of development on it, for which I want Port Tree (Fink in my case) packages to be available for items like Python, PostgreSQL, etc.  But Mavericks doesn't seem to be available on the App store anymore. Tried downloading from CNET, but all I seemed to be finding was an update.  I am tempted to just install Yosemite and would love to get some input.


The question is: prove that  $$\int^{\infty}_0\frac{x\sin(rx)}{a^2+x^2}dx=\frac{\pi}{2}e^{-ar}$$  This is what I've got so far:  Let $I(r)=\int^{\infty}_0\frac{x\sin(rx)}{a^2+x^2}dx$  $I'(r)=\int^{\infty}_0\frac{x^2\cos(rx)}{a^2+x^2}dx$ = $\int^{\infty}_0\cos(rx)dx-\int^{\infty}_0\frac{a^2\cos(rx)}{a^2+x^2}dx$  $I''(r)=\int^{\infty}_0-x\sin(rx)dx+\int^{\infty}_0\frac{xa^2\sin(rx)}{a^2+x^2}dx$  $I''(r)=\int^{\infty}_0-x\sin(rx)dx+a^2I(r)$  I think I'm supposed to form a differential equation and solve it by letting $I(r)=c_1e^r+c_2e^{-r}$, but the problematic part is this: $\int^{\infty}_0-x\sin(rx)dx$. I don't believe it simplifies to any constant and the differential equation doesn't solve nicely.   Hints/suggestions appreciated!

I'm asked to show  $\int_0^{\infty} \frac{x\sin ax}{x^2+t^2}dx = \frac{\pi}{2}e^{-at}$ when $t,a > 0$. I tried using integration by parts integrating $\frac{x}{x^2+t^2}$. But it seems that $\frac{x\sin ax}{x^2+t^2}$ has no antiderivative. What should I try?


I am trying to add bullets to each item. However, the itemize isnt showing the bullets. Could someone tell me what the issu is?  Also how do I get the item to automatically fill the box and wrap?  % EPC flow charts % Author: Fabian Schuh \documentclass{minimal}  \usepackage{pgf} \usepackage{tikz} %%%< \usepackage{verbatim} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}% %%%>  \begin{comment} :Title:  EPC flow charts :Grid: 1x2   \end{comment} \usepackage[utf8]{inputenc} \usetikzlibrary{arrows,automata} \usetikzlibrary{positioning}   \tikzset{     state/.style={            rectangle,            rounded corners,            draw=black, very thick,            minimum height=2em,            inner sep=2pt,            text centered,            }, }  \begin{document}  \begin{tikzpicture}[->,>=stealth']   % Position of QUERY   % Use previously defined 'state' as layout (see above)  % use tabular for content to get columns/rows  % parbox to limit width of the listing  \node[state] (QUERY)   {\begin{tabular}{l}   \textbf{Query}\\   \parbox{4cm}{\begin{itemize}    \item Start    \item Parameter $Q$    \item Zufallszahl aus \mbox{$[0, 2^Q-1]$} in Slotzähler $SC$   \end{itemize}   }\\[4em]   \textbf{QueryAdjust}\\   \parbox{4cm}{\begin{itemize}    \item Variiere Q    \item neue Zufallszahl   \end{itemize}   }  \end{tabular}};  \end{tikzpicture} \end{document}

In a comment to my , Peter Grill said that he read that the minimal class should not be used for a Minimal Working Example. I wonder why, and which class should I use instead?  BTW: Is it preferable to use article or scrartcl, i.e. the standard classes or the ones form the KOMA-Script bundle?


I have just downloaded a Windows10 image:  $ du --bytes Win10_1709_German_x64.iso 4710961152  Win10_1709_German_x64.iso   It is slightly too large to burn it to a dvd (4.7gb) with .     Is there a way to force burning the disc, using some additional space on the disc or shrinking the iso?

I'd like to create a Windows bootable USB stick, but I don't have a Windows machine with me at the moment to do so. How could I achieve the same using Ubuntu?


What does "made to last" means in this sentence: made to last since nineteen eighty two?

There is a song but I am not sure about the meaning of "make it last" in that song. Please let me know what it means and which situation I should use this?  Make it last - Tim Mc Morris


The exponential distribution is well-known and widely used but defined for a continuous variable. Is there a discrete version of it?

I don't really understand the difference between exponential and geometric distribution.


I use the  to do many things, one of which is to serve local websites utilizing the  which is a fork of . I write the code in R Studio and preview the site utilizing the blogdown::serve_site() command. This is the easiest way I know of previewing static HTML sites. Utilizing  R Studio coerces my browser to go to the 127.0.0.1:XXXX location and my local site is previewed before my eyes.  Can I serve local sites natively with Ubuntu 18.04? How? I imagine it should be very simple. Searching online I can't find any simple way to do it though. If I simply open the static HTML files directly in my browser they showup wonky. All image links are immediately broken. Formatting of headings, hyperlinks, etc is not the same as when I serve the page locally with .  EDIT - I did not really define my term 'simplicity'. There are two different approaches (so far) in the answers, one that is simplest to the end user, and one that is simple with regard to operations being performed by my computer. I like both approaches and will welcome answers utilizing any approach as I test them. Thank you.

I am writing a small website, but I do NOT want to figure out how to install and configure complete LAMP stack to test the website from my ~/home directory. That will be completely disruptive and unnecessary.  All I want is to have a directory, e.g. ~/home/Documents/Website and run a small web server from that folder as the website's "home" folder.  I know  can do something similar, but it only seems to work with Ruby/Jekyll-based sites that it builds and configures.  Isn't there some small web server program that I can easily install and then just run very simply?  For instance, if I just needed to run something like e.g. simple-server serve ~/home/Documents/Website from a command line and then navigate to e.g. localhost:4000 or whatever to test the site, that would be perfect.  If this is already possible in Ubuntu and I just don't know how, please let me know.


I have two files:  file1 contains:  1 2 3 4   file2 contains:  John Sam George Ken   I want to combine these files to create one file(file3)  1, John 2, Sam 3, George 4, Ken   My thought was to use nested loops and add the comma for each line,  for x in file1 do echo "$x" >> file3 for y in file2 echo ",$y" >> file3 done done   Is there a command I need to use? How do I get it to x and y to appear on one line for each entry in both files?

Standard cat concatenates files line by line (row by row, if you will). I find myself needing a horizontal cat command more and more often recently; i.e. a command that takes a list of files and concatenates them horizontally, column by column. So far I’ve used ad-hoc workarounds but I’d like to know if there exists a good solution for this.  To clarify, consider the following comparison between cat and hcat of two files:  $ cat a.dat 1.dat a b c d 1 2 3 4 $ hcat -s ' ' a.dat 1.dat a b 1 2 c d 3 4   (Unlike for cat we need to specify a separator since by convention UNIX files don’t have a column separator at the end.)


I have a here a java swing program that would act as a simple phonebook. i've used single dimension array to hold the inputted values. but when i selected delete to delete a record it would give me and error. i really have no idea about it.  here is the function used to delete the record       public void delete()         {     delname = (String) JOptionPane.showInputDialog(null, "Enter name to                 delete", "Delete", JOptionPane.QUESTION_MESSAGE);      for(int ctr=0; ctr<index; ctr++)     {         if(name[ctr].equals(delname))         {             name[ctr]= "";             name=rem(delname,name);             lisroutnum.remove(ctr);             JOptionPane.showMessageDialog(null, "Contact Deleted!", "Succesful", JOptionPane.INFORMATION_MESSAGE);             setVisible(true);         }         else         {             JOptionPane.showMessageDialog(null, "Name doesn't Exist!", "Error", JOptionPane.ERROR_MESSAGE);             setVisible(true);         }     } }`   here is the rem function      public String[] rem(String delname, String[] name) {     int x= name.length-1, i=0;     String[] newname = new String[x];      for(int c=0; c< x; c++)     {         if(!name[c].equals(delname))         {             newname[c]= name[c];         }     }     return newname; }   here is the error  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at Project.Project.rem(Project.java:263) at Project.Project.delete(Project.java:243) at Project.Project.actionPerformed(Project.java:375) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6527) at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) at java.awt.Component.processEvent(Component.java:6292) at java.awt.Container.processEvent(Container.java:2234) at java.awt.Component.dispatchEventImpl(Component.java:4883) at java.awt.Container.dispatchEventImpl(Container.java:2292) at java.awt.Component.dispatchEvent(Component.java:4705) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462) at java.awt.Container.dispatchEventImpl(Container.java:2278) at java.awt.Window.dispatchEventImpl(Window.java:2739) at java.awt.Component.dispatchEvent(Component.java:4705) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) at java.awt.EventQueue$4.run(EventQueue.java:719) at java.awt.EventQueue$4.run(EventQueue.java:717) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:716) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   Please help me out!

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Unable login to my account from GUI interface, only as Guest. When trying to login, within a few seconds I'm sent back to the login screen. Further, after trying some fixes, when trying login as admin, login screen is not returning back, get only a blank screen and it does not proceed further. Can only Guest login. Login from tty4 terminal is OK.  .xsession-errors contains only these lines:  Can't save user-dirs.dirs Script for ibus started at run_im. Script for auto started at run_im. Script for default started at run_im. init:/home/username/.config/upstart: Unable to load configuration: Permission denied init: dbus pre-start process (4902) terminated with status 1

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


How to find the model number (serial number) or any other useful information about such device that all information deleted on it (on the device).   I had USB  Wireless and no information exist on the device, when I plug in to my PC, Windows can't find proper driver even enabling searching for driver from Windows Update.   I don't want the answer for my device, I need to know if OS can provide any information when the device plugged in? then using this information for finding the driver.

I reinstalled windows on a new machine and the drivers are not present for the product network card.   When in device manager all I get is the question mark and I am unable to figure out the actual name of the vendor or model of the card. This is making my search to find the correct driver hard.   Anyone know how I to find out more about the hardware that does not have drivers?


I need to find the equation of the plane through the point $(−1,.5, 3)$ with normal vector $𝐢 + 4𝐣 + 𝐤$. I know that the equation will look something like this: $1 (x + 1) + 4 (y - .5) + 1 (z - 3) = 0$.

I have come across this question that I need a tip for.     Find the equation (general form) of the plane passing through the point $P(3,1,6)$ that is orthogonal to the vector $v=(1,7,-2)$.   I would be able to do this if it said "parallel to the vector"  I would set the equation up as $(x,y,x) = (3,1,6) + t(1,7,-2)$ and go from there.  I don't get where I can get an orthogonal vector. Normally when I am finding an orthogonal vector I have two other vectors and do the cross product to find it.  I am thinking somehow I have to get three points on the plane, but I'm not sure how to go about doing that.  Any pointers?  thanks in advance.


when i select the records in vf page ,after click on the VF Button the conga should be call along with id for generating the PDF but on button click the window is opening but showing error that "ID Parameter is missing" ?  VF Page:  <apex:commandButton value="Generate Invoice" action="{!GenerateInvoice}"  onclick="openConga()" reRender="table1"/>  <Script Language="JavaScript">               function openConga()                  {                      window.open('{!URLFOR($Action.Payment__c.Generate_PDF, Payment_Id)}', '','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes, toolbar=no,location=yes,status=yes');          </Script>     Controller:  public PageReference GenerateInvoice()              {             selectedEsr = new List<Payment__c>();             for(wrappayment wp : paymentList)                 {                     if(wp.selected == true)                      {  Payment_Id=wp.pay.id;   }         }          return null;             }

when i select the records in vf page ,after click on the VF Button the conga should be call along with id for generating the PDF but on button click the window is opening but showing error that "ID Parameter is missing" ? how to over come the issue? your reply will be appricated ,please reply asap.  vfpage:  <apex:commandButton value="Generate Invoice" action="{!GenerateInvoice}"  onclick="openConga(setOfIds)" reRender="table1"/>  <script> function openConga(setOfIds){   if(setOfIds !=Null){   var Formastring=setOfIds.splits(',');   var joinIds=Formastring.join("'|'");   var removeSpace=joinIds.replace(" ","");   var removeLeft=removeSpace.replace("[","");   var removeRight=removeLeft.replace("]","");   var finalSetIds=removeRight;    var CongaUrl ="/apex/APXTConga4__Conga_Composer?sessionId={!$API.Session_ID}" +"&serverUrl={!$API.Partner_Server_URL_290}&Id={!Payment_Id}" +"&QVar1Id=[sql1221]a186C0000007yB3?pv1=" + finalSetIds +"&TemplateId={QVar1}";  window.open(CongaUrl, "Conga","menubar=no,height=600,width=800");    } } </script>   controller:  [28-01-2019 12:13]  Sakhare, Ankita:   public PageReference GenerateInvoice() {     selectedEsr = new List < Payment__c > ();     for (wrappayment wp: paymentList) {         if (wp.selected == true) {             Payment_Id = wp.pay.id;          }     }      return null; }


start out with a universal translator that works on one target within 30 feet - the  feature (PHB, p. 110):     Starting at 1st level, your alien knowledge gives you the ability to   touch the minds of other creatures. You can communicate telepathically   with any creature you can see within 30 feet of you. You don't need to   share a language with the creature for it to understand your   telepathic utterances, but the creature must be able to understand at   least one language.   This "universal translator" ability appears to be just as powerful as the 3rd level spell "Tongues," and possibly more so in limited situations because it is always on.  A warlock can also get  as a 2nd-level spell:     You suggest a course of activity (limited to a sentence or two) and magically   influence a creature you can see within range that can hear and   understand you.   So it seems to me that a Great Old One warlock who speaks only Common could get within 30 feet of a goblinoid who speaks only Goblin, and communicate telepathically with Awakened Mind while speaking suggestion as a 2nd level spell.  The goblinoid can hear the voice, and the goblinoid can understand the telepathy.  However, I suspect that some DMs would rule that the Warlock must be able to be understood just from the spoken words and not from any additional telepathy.  Does this work? Can a Great Old One warlock use Awakened Mind as a universal translator for Suggestion spells?

Can the warlock class feature "awakened mind" be used in conjunction with the suggestion spell, allowing the warlock to make the suggestion telepathically?  Awakened Mind, Player's Handbook p. 110:     You can telepathically speak to any creature you can see within 30 feet of you. You don't need to share a language with the creature for it to understand your telepathic utterances.   Suggestion, Player's Handbook p. 279:     You suggest a course of activity (limited to a sentence or two) and magically influence a creature you can see within range that can hear and understand you.   If it works with suggestion, would it also work with mass suggestion?  To be clear, I am not asking about the verbal component of the spell, only the method the caster "suggests a course of activity".


I have a document which are previously compiled with regular pdflatex with \usepackage{times}, the typographic quote symbols are generated correctly as:    And once I started to use LuaLatex with:  \usepackage{fontspec} \setmainfont{Times}   The quote symbols are generated as:    How come and how to fix this? Thanks!!

Using XeLaTeX the following document produces the correct result if \setmainfont{Arial} is never called (the quotation marks are proper left- and right-quotation marks). Once I try to set a font (even if it has the proper glyphs!) the output appears improperly as ``Quote me!''.  \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} ``Quote me!'' \end{document}


I have a dataset that is made of a set of points, each representing a sensor that measures air quality. The data has a location, value for emissions and time (one measurement per hour).      What I'm trying to do is visualize the area that is being measured by creating an interpolation (I was thinking of IDW) of the area for each time period. Then I would like to be able to use the time slider in ArcMap (or perhaps Qgis) to see the difference through time.   My question is how do I create an interpolation for each time period? By just applying the IDW tool on my dataset I seem to be getting a static image: I can't scroll through it using the time.

I'm trying to calculate average rainfall value from a number of points using Inverse Weighted Distance tool in ArcGIS 9.3.   My problem is that: each point has it own time series, therefore the interpolation process should be able to carry out for all years (kind of iteration so to speak).   Following is a sample attribute table:  ID X Y Name Rain1990 Rain1991 Rain1992 Rain1993 .... Rain2010  1 xx1 yy1 AA 1210 1189 1863 1269 ......   2 xx2 yy2 BB 1492 1502 2187 1923 ...... ......   Could anybody show me how to do that?    Edit 1: I finally did this by using C++ code which required ArcGIS mask grid, data files & locations of all the points.    Edit 2: I recently used R to do this interpolation task. You can use either hydroTSM, gstat or spacetime packages. Few example links below:             Edit 3: Added a working example below for future readers


I need to write a rest service that offers batch validation for pdf documents.   The basic validation workflow is as follows:  Files are uploaded via rest api one file at a time. Documents have sizes between 10- and 150 Megabytes on average. Once a batch is complete validation starts: Every document is successively taken from storage, validated, a report is being generated and the originally uploaded document will get deleted afterwards.  The platform to be used for development is Java EE (Jersey and EJB). Since EJB doesn't allow for saving data directly to disk as a file, I've considered using a database via JPA to temporarily save the files until processing.  Is this a sound choice or would you prefer a different solution that I haven't thought of?   Is using a database for this scenario a bad idea performance wise?  We're expecting batches of up to 4000 documents. I'm especially worried about performance bottlenecks and resource consumption (ram, disk space).....

So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB.  What do you think are the pros/cons?


I have an OBJ file that has two meshes mapped to two different texture files.  After cropping the meshes in Blender, I realized that most of the original image portions in the texture jpegs are not being used.  Hence I want to combine two textures into a single texture and export the meshes into a OBJ file.  How can I do this in Blender?

After applying to a small studio and making a model of an axe with two pieces which meant separate UV maps. After submitting the model and textures, I was told that both the blade and handle of the Axe should be in one texture. I don't really know how to do this in Blender, so any help would be appreciated.


I'm trying to create a large but optimal circle that covers two intersecting circles. For that, I need to calculate new radius and new center point. I'm able to get the optimum radius by how can I get the new center point coordinate? I think we need to travel some X miles from one point to another. I have the calculation for X miles, but how to get the coordinate? See below illustration. I have points A and B as geo coordinates. I wanted to travel x miles (let's say 10 miles) from Point A to Point B and get the co-ordinate of point P. We can easily get the midpoint coordinates by (x1 + x2) / 2 formula which is 50% traveled from A to B but what if I want to travel 10% from point A towards point B?

I would like to know how to find a set of coordinates on a small circle some distance from another point.   For example, lets say A = (39.73, -104.98) #Denver  B = (39.83, -106.06) #point approximately 50 nautical miles away from A along the great circle track to C  C = (40.75, -111.88) #Salt Lake City, approximately 323 nautical miles away from A  How do I get the set of orange coordinates when I don't know the angle but I do know the cross track distance?  For concreteness, lets say the outer points near B have a cross track distance of +- 30 nautical miles and the inner points have a cross track of +- 15nm.  And the points near C have a cross track of +- 25 nm.  Also I have an initial bearing from A to C of -1.34 #radians


I'am looking for social network datasets for determining the strength of (acquaintance, friendship, family ,professional,...) relationships can any one help me to find it  thanks in advance

I am looking for social network datasets (twitter, friendfeed, facebook, lastfm, etc.) for classification tasks, preferably in arff format.   My searches via UCI and Google weren't successful so far... any suggestions?


How can I determine whether a script executes in iframe or not? The solution should work in Android, iOS, Windows Mobile browsers.  Is it possible or not?

I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser?


Is there any way to resize the search box in unity, I'm not sure exactly what it is called but I have provided a picture to show my meaning. QUICK EDIT: I don't mean maximize it fullscreen, but resize it like you do with a normal window by dragging the corner or something like that.

When I open the Unity Dash from the launcher, the Dash takes up the whole screen and doesn't give me the ability to resize it. This makes it impossible to see my desktop and drag and drop icons to it in order to create shortcuts. I've seen some screen where the dash has maximize and minimize buttons, but I do not have anything like that on my 11.10 install.


Given two symmetric matrices $A,B \in \mathbb{R}^{n\times n}$ which are positive definite, and positive semidefinite respectively.  Can I conclude that   $$x^T(AB)x \ge0, \mbox{for all } x\in \mathbb{R}^n$$

I see on Wikipedia that the product of two commuting symmetric positive definite matrices is also positive definite. Does the same result hold for the product of two positive semidefinite matrices?  My proof of the positive definite case falls apart for the semidefinite case because of the possibility of division by zero...


I am trying to use gedit to see a file inside a mini-pc I connected through ssh but it get:     (gedit:3864): Gtk-WARNING **: Locale not supported by C library.     Using the fallback 'C' locale. Failed to connect to Mir: Failed to   connect to server socket: No such file or directory Unable to init   server: Could not connect: Connection refused      (gedit:3864): Gtk-WARNING **: cannot open display:   Is there a way to see the file contents inside gedit in host computer?

I have a machine running Ubuntu which I SSH to from my Fedora 14 machine. I want to forward X from the Ubuntu machine back to Fedora so I can run graphical programs remotely. Both machines are on a LAN.  I know that the -X option enables X11 forwarding in SSH, but I feel like I am missing some of the steps.  What are the required steps to forward X from a Ubuntu machine to Fedora over SSH?


As seen above, I built a surface mushroom biome with several house but the truffle won't spawn. Is there something else I need to do?

I currently find myself in a pickle because even after I've built the mushroom biome and met all other requirements, the Truffle NPC won't move in.   I've defeated not only the Wall of Flesh but Ocram already. Created a surface mushroom biome. Built a house made out of mushrooms with mushroom furniture.   I have no idea how long it takes for the NPC to move in or if I'm wrong in any of the steps.


I have a severe permissions' issue. I hope there are some really clever people out there, who might know how to solve this using the Terminal, expert-level hacking or in some really simple way so I at least can backup my data despite the faulty permissions.  This is the cause of the issue  Being a curious person, in Finder I right-clicked my User and hard-drive unit and removed "staff" as well as changed permissions for "everyone" under permissions. After this my Mac (Macbook Pro, 13 ", early 2013, latest version of Yosemite) hung and every time I try to start it up, it gets stuck loading before the login screen.  This is what I have tried and all have failed   Booting the faulty computer and letting it be to see if it would finish loading. Rebooting it with cmd+r, entering disk utility, repairing permissions. This outputs  User differs on private/var/db/displaypolicyd; should be 0; user is 244. Group differs on private/var/db/displaypolicyd; should be 0; user is 244. Repaired "private/var/db/displaypolicyd"   However, when I reboot the permissions' issue remain and when entering Disk Utility again, I get the same permissions' repair messages. Rebooting it and creating a new ACL. Using another Macbook Pro, mounting the faulty one with the help of rebooting it in Target Mode. However, the permissions' issue doesn't permit me to access the drive this way. In Disk Utility, I can select the drive with the faulty permissions, but I can't select the option repair permissions. Using another Macbook Pro, mounting the faulty one with the help of rebooting it in Target Mode and creating a new image (dmg) of its hard-drive to the functional computer. Looked at the answers in , but they don't help in solving my problem   This I need help with   How can I repair the permissions considering this specific case and what has been tried already? Or (if there is no easy way out of this) is it possible to make a backup of the drive so I can reinstall everything without loosing data?

My issue is that I've seriously busted all of the owners and permissions on my user folder and subfolders and it's causing lots of issues using lots of applications.  The initial cause was that I had renamed a user by following the Apple support instructions at   After the new user was set up, Mozy backup wouldn't backup any more and lots of my applications couldn't update themselves automatically. The application usually started working again if I deleted the offending program and reinstalled it. I thought it was because the permissions were wrong and I found some places where GetInfo indicated that permissions were referencing the old user. Sometimes the dialog just said "Fetching" for the username and never updated to anything else.   I ran Onyx "fix permissions" and Disk Utility "Repair Permissions" with no results. With "Repair Permissions", it keeps throwing some info warnings about unexpected ACLs, but the info I could find online didn't think those would be causing issues like this.  I tried to recursively run some command line scripts on the user folders (both logged in as root and using sudo). chmod got lots of errors about the owner of the files being wrong. chown after that gave me other errors (I can't remember exactly what they were). In a fit of panic, I right-clicked the entire user folder and chose to apply it's permissions to all children.   From what I can tell, when I did that, I set everything to Read&Write for that user and Read-Only for "everyone" and "staff". Now, I'm worse off than before. Firefox crashed and it can't even update it's own settings so it brings up the "Do you want to restore these tabs" every single time it launches, even after repeatedly saying "Start New Session".  Basically, everything in my user folder is broken with regards to owner and permissions and I need to know what they are supposed to be. Who is the owner of the files in each directory supposed to be (Downloads, Applications, etc.) and what should the permissions be? Given those permissions and owners, what is the best way to go about setting those all right?  I saw a question similar to this at  but it only addresses permissions, not owners, which has been an issue already.  I'm not sure if reinstalling the OS over the copy I have right now would fix anything and I'm close to calling Apple Support if I can't figure anything out in the next few days. Thanks for any help.


I accidentally left two half hams in a storage locker in a basement for four days. They were in packaged in plastic and packed in ice, but the ice would have melted by the end of the second day. They were at room temperature when I found them. The hams were from a grocer, sealed in plastic. One is semi-cooked. The other is fully cooked, smoked and salted. Are they safe to eat if I cook them to 160 degrees + or, as I suspect, do they need to be thrown out?

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


Could somebody help me please? I've done this     Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException   at Frame.Painter.paint(Main.java:399) at   sun.awt.RepaintArea.paintComponent(RepaintArea.java:264)  at   sun.awt.RepaintArea.paint(RepaintArea.java:240)   at   sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:358)   at   java.awt.Component.dispatchEventImpl(Component.java:4965) at   java.awt.Component.dispatchEvent(Component.java:4711) at   java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at   java.awt.EventQueue.access$500(EventQueue.java:97) at   java.awt.EventQueue$3.run(EventQueue.java:709) at   java.awt.EventQueue$3.run(EventQueue.java:703) at   java.security.AccessController.doPrivileged(Native Method) at   java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)   at   java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)   at java.awt.EventQueue$4.run(EventQueue.java:731) at   java.awt.EventQueue$4.run(EventQueue.java:729) at   java.security.AccessController.doPrivileged(Native Method) at   java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)   at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at   java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)   at   java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)   at   java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)   at   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)   at   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)   at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)   and code in row 399 is :  class Painter extends Canvas{     Image image;     private URL url;     public void setImage(String file) {         url = null;         try {             url = new File(file).toURI().toURL();         } catch (MalformedURLException ex) {             System.out.println(ex.toString());         }         image = getToolkit().getImage(url);         repaint();     }     public void paint(Graphics g) {         double d = image.getHeight(this) / this.getHeight();         double w = image.getWidth(this) / d;         double x = this.getWidth() / 2 - w / 2;         g.drawImage(image, (int) x, 0, (int) (w), this.getHeight(), this);     } }   I dont know exactly what's going on there. My program work correctly but I felt disturbing with this error every run. Please tell me what should I do.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


It is very well established how to derive conserved charges associated to the symmetries of Lagrangian using the Noether's theorem. Also in the Hamiltonian formulation, we know how to derive the charges associated to symmetries of the Hamiltonian action, using the symplectic structure etc. My question: Suppose I have a set of equations without knowing the explicit action or Hamiltonian. I realize that the equations of motion are invariant or covariant under some transformation. Is there a way to associate conserved charges (or better conserved currents) associated to this symmetry transformation without using Lagrangian or Hamiltonian? This question was answered  for the very special case of a system of particles where the equations of motion take a "natural form" $m_i\ddot{{\vec x}}_i=-{\vec\nabla} V(x^j)$. However, this is very limited and does not apply to a field theory or a gauge theory in general (e.g. consider general relativity without any special gauge condition). Application A good example of this issue is the Electric-magnetic duality symmetry. Remind that Maxwell equations are invariant under the electric-magnetic duality $(E,B)\to (B,-E)$. With some effort, this symmetry can be also realized at the level of the action as shown originally by Deser and Teitelboim (). Then using the Noether procedure, it turns out that the Noether charge corresponding to duality is helicity which is a physical observable. In linearized GR same thing happens. The eom is duality symmetric. One can also find a duality invariant action () However, the problem becomes more interesting in full GR. In this case, the Einstein equations still have an electric-magnetic duality under rotating the electric and magnetic parts of the Weyl tensor into each other (see e.g.  or section 7.2 of the book by Christodoulou and Klainerman). However, this symmetry cannot be realized at the level of the action. Indeed there is a no-go theorem by Deser et al. () showing that the duality symmetry cannot be realized at the level of the action. So the question is whether there is a conserved quantity that correspond to the duality symmetry in GR or not?

It is well known from Noether's Theorem how from continuous symmetries in the Lagrangian one gets a conserved charge which corresponds to linear momentum, angular momentum for translational and rotational symmetries and others.  Is there any elementary argument for why linear or angular momentum specifically (and not other conserved quantities) are conserved which does not require knowledge of Lagrangians? By elementary I mean, "if this is not so, then this unreasonable thing occurs".   Of course, we can say "if we want our laws to be the same at a different point in space then linear conservation must be conserved", but can we derive mathematically the expression for the conserved quantity without using the Lagrangian?  I want to explain to a friend why they are conserved but he doesn't have the background to understand the Lagrangian formalism.


I'm trying to parse a big JSON file, which has all kinds of languages (russian, swedish etc). I read this JSON file using PHP, make queries out of the data, save the queries into a text file and load the data into a mysql database from this sql file.  It all seems to work, except for the special characters.  If I cat the sql file (on a mac terminal), I can see the characters correctly. If I open the file in vi, the characters are all jumbled up. And if I try to load the SQL file into mysql, I get errors.  My table is set to UTF8. What other steps do I need to take to fix this problem?

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


The following statement is written in :  if the g flag is not used, only the first complete match and its related capturing groups are returned. In this case, the returned item will have additional properties as described below.  Then, below the "Additional properties" subchapter is stated this:  As explained above, some results contain additional properties as described below.  groups: An array of named capturing groups or undefined if no named capturing groups were defined. See Groups and Ranges for more information. index: The index of the search at which the result was found. input: A copy of the search string.   However, when I execute the , the console.log output doesn't seem to be what is expected in the snippet comments.   var str = 'For more information, see Chapter 3.4.5.1'; var re = /see (chapter \d+(\.\d)*)/i; var found = str.match(re);  console.log(found);  // logs [ 'see Chapter 3.4.5.1', //        'Chapter 3.4.5.1', //        '.1', //        index: 22, //        input: 'For more information, see Chapter 3.4.5.1' ]  // 'see Chapter 3.4.5.1' is the whole match. // 'Chapter 3.4.5.1' was captured by '(chapter \d+(\.\d)*)'. // '.1' was the last value captured by '(\.\d)'. // The 'index' property (22) is the zero-based index of the whole match. // The 'input' property is the original string that was parsed.    Why the additional properties of String#match (or RegExp#exec, as the result is said to be same) are not in the returned result? Is this feature planned but not implemented today?  Found out that's the SE Overflow's snippet console that doesn't output these properties. An issue has been opened on .

I want to match a portion of a string using a  and then access that parenthesized substring:  var myString = "something format_abc"; // I want "abc"  var arr = /(?:^|\s)format_(.*?)(?:\s|$)/.exec(myString);  console.log(arr);     // Prints: [" format_abc", "abc"] .. so far so good. console.log(arr[1]);  // Prints: undefined  (???) console.log(arr[0]);  // Prints: format_undefined (!!!)   What am I doing wrong?    I've discovered that there was nothing wrong with the regular expression code above: the actual string which I was testing against was this:  "date format_%A"   Reporting that "%A" is undefined seems a very strange behaviour, but it is not directly related to this question, so I've opened a new one, .    The issue was that console.log takes its parameters like a printf statement, and since the string I was logging ("%A") had a special value, it was trying to find the value of the next parameter.


ALT+SHIFT+ARROWS in Word or Powerpoint, helps in moving a particular paragraph or line up or down. What is the corresponding shortcut in excel.  I am not looking at cut, copy, paste or mouse drag or macro solutions. Is there a shortcut, as simple as that.

I have to do some manual reordering or rows in Excel and cut/paste is too hard to use. I'm looking for something that would enable me to use drag'n'drop or to add some buttons to move-up/down move-top/bottom.


I know in Harry Potter and the Prisoner of Azkaban Harry and Hermione go back in time, save Buckbeak and free Sirius Black. However, in the actual movie before this event, Harry sees - according to what's figured out later - himself casting the Patronus.  (Harry sees his future self casting the Patronus.)  But in the actual timeline, Harry, Hermione and Ron see Buckbeak getting executed. Why didn't they see the events from the time-turning event at that point, but later when Sirius and Harry are being attacked by the dementors, see his future self casting the Patronus?  Also, how can Harry see his future self casting the Patronus before the time-turning event happened?

When Harry, Ron and Hermione were first trying to complete their task "strange" things kept happening, such as being hit with rocks, saving Buckbeak (whether he was actually killed the first time, or it was just implied, however the wincing look on the trios face upon witnessing the execution would suggest that he was) howling to distract the transformed Prof. Lupin and casting a physical stag Patronus.      It was later revealed that these were in fact caused by their future selves via use of the Time Turner to try and change how events went down.   After using the time turner, the "present" Harry and Hermione (as opposed to their future selves) were now the ones committing these acts. The same disruptions seemingly took place, yet the timeline somehow changed.  How is this possible?


I want to run apps like Google Chrome in my lab PC where I don't have administrator access meaning I can't run sudo command to do any thing. Is it possible to make apps run from removable drive like the portable apps in windows? Is there any way of doing so?

I'm looking for a portable version of Chrome (not Chromium) that I can work with on Ubuntu 14.04 LTS. I can only find Chromium or really outdated versions. Due to limitation on the machine I'm using, I cannot install Wine or utilize any admin features as I am on a standard account. Ideally, I would rather have an official version or at least one that exists in a repository that I can apt-get from.   (I understand that apt-get requires sudo, I can use it for the initial vagrant setup, but that's all. Hence why I would need non-admin methods)


I have 10,000 machines (to make jute-bags), and each machine needs to send data to a remote server every 2 seconds. The data consists of machine id, machine state(on, off, error, needs human intervention, etc) and various other information collected from different sensors. I have successfully integrated the ESP8266 WiFi module with the machine. It collects all necessary data, and transmits it to the router, which then uses the internet to send that data to my remote server. As a demonstration to the factory management, I successfully sent data of 10 machines(through 1 single router) , every 2 seconds. But now, I have to do the same task for 10,000 machines. I have absolutely no idea as to how much bandwidth I need and how many machines I can connect to a single router? If my question seems incomplete, please feel free to ask me more questions. Thanks in Advance!

I'm going to buy a new router, but, I've just realised that for nearly all routers I've looked at (Belkin, Netgear, D-Link) don't state the maximum number of devices which can connect concurrently.   I have a  and have now looked on their website, and through the manual and also find no mention of the limit (which I really need to know if there is one due to debugging another issue).   The new router will be a gift for a friend... The issue is, they have 12 devices in their house, all of which will require WiFi and another 3 devices which are to be hard wired.  Since the router websites don't mention any limitations, can I assume there is a general limit on what the number of concurrent connected devices can do or is the issue more about understanding the more devices connected, the less the performance will be due to the sharing of the resource?  My question is, without trying to determine the limit my self manually (plugging in devices until it's maxed out), is there any way to know that a certain device will work with a given number of concurrent connected devices?


I've got pathfinding working on a simple 2D grid map. NPCs can now move around the board and avoid areas they cannot travel. This works well, and is carried out by a single sweep of the board to calculate the path.  If there is no path to the destination, I want the entities to move as close as possible. I have also accomplished this, and have been able to reuse my pathfinding code for this purpose. Essentially, if the initial sweep fails to find a path, the reverse sweep is carried out, which essentially identifies every area which is reachable by the entity. The distance from each cell to the intended destination is already calculated by the pathfinding algorithm. So then I just sort the array of accessible cells by their distance from the destination, and the first one is the closest to the destination. Then I use the pathfinder function again to calculate a path to that closest point.  This does work flawlessly, but it seems inefficient. The process of a failed path find in summary is:   Sweep the board for a path to the destination (which fails) Sweep the board a second time to find all cells accessible by the entity Sweep the board a third time to calculate the path from the entity to the cell which is closest to the destination   I suspect the answer is that this is the only way to accomplish what I want; I need to calculate all three pieces of information ((1) whether a path exists, (2) which cell is closes, and (3) how to get to the closest cell), but I'm far from an expert on these algorithms so if there is a better way I would love to know!

I've implemented AStar in Java and it works ok for an area with obstacles where the chosen destination is reachable.  However, when the destination is unreachable, the calculated "path" is in no way to the closest location (to the unreachable location) but is instead some random path.  Is there a feasible way to tweak AStar into finding the path to the closest location to an unreachable destination?


I have a MacBook Pro which I use for work. I have a lot of software installed and configured which I do not want to have to re-install/configure in the event my MacBook Pro is stolen or damaged.   I’d like to somehow “clone” the drive in a way that if something were to happen I could just go buy a new MacBook Pro, use the clone program to load my HD image and instantly be back where I was before the old computer broke or got stolen.   I know there is a time machine backup built into Mac OS X but that is only good for backing up individual files like documents or pictures - which I do not care about. I want to be able to get back all my installed apps with their custom configurations so I don't lose time from working - hence the HD clone - image idea.   What is the best way to do this?

How do you make an image of whole Mac disk drive and tranfer it to another Mac?  What is the best software to do this?   I am looking to make an exact duplicate copy of my machine to reload on a new Mac with the same hardware then reformat the older computer.  Acronis like software or something?


How do I disable this annoying spam??  I've never used Apple Pay, nor do I have any intention of doing so. But apparently, after upgrading to an iPhone 6, Apple's gonna spam me every 24 hours?  There was some other garbage spam I had to disable too, but can't figure this one out... Pretty annoying that Apples so aggressively peddling their services these days. You'd think a simple opt in/out during onboarding would suffice.  Anyone have any ideas how to disable this? Thanks

Since upgrading iOS to 11.2.1, my iPhone has aggressively prompted me to setup Apple Pay. Every time I decline to set it up.  Now, there is this persistent badge ("1") on my Settings app, which makes me think there is some kind of iOS update to install, but instead, it is a prompt to setup Apple Pay ("Finish Setting Up Your iPhone"):    How can I turn off prompts/notifications/badges asking me to setup Apple Pay?  This is not the same as disabling Apple Wallet notifications, as asked and answered at . Disabling Apple Wallet notifications does not disable the Apple Pay spam (specifically, the Settings badge icon). This question is different as it is about Apple Pay and the Settings badge icon (not notifications specifically), and the solution in the purported "duplicate" question does not solve this problem.


The  appears to be blank for .        Code:     Not sure why that happens.

When a user just crossed 200, or 200+ reputation, the ranked div (i.e., top 10% overall) is trying to display. But rank calculation can be done on end of the UTC day. So instead of the ranking div, there is a blue colored hyphen is visible to users, it may be the initial loader for the ranking div.  I saw this UI issue previously too for the same scenario. Can this be fixed?


Just what the title says, Do Blink, Blur, normal concealment & Displacement stack? Do any of them stack? Do all of them stack? Which ones, if any?

Say a paranoid magic user has Blurring bracers of armor, Mirror Image, Blink, Invisibility, Wings of Cover, and Etherealness going. How to calculate the miss chances versus a normal attack, magic attack, force attack, and so forth?


I found this answer  but it simply doesn't work - it did not rename any file for unknown to me reason  Before I started to search around I thought that it should be easy task even for novice penguin, but it doesn't seem so for me.  For example, I simply can't tell ls to list all *.txt in all subfolders, which was surprise to me (without grep or similar). Then I found find and find . -name name_1.txt lists files fine, but    for f in $(find . -name name_1.txt) ; do echo "$f" ; done    splits whole file paths with space as separator, so it's unusable to pass that output to some command like mv or rename  I want to ask whats wrong with above command and if possible some nifty oneliner so I can recursively rename name_1.txt to name_2.txt

I have many files with .abc extension and want to change them to .edefg How to do this from command line ?  I have a root folder with many sub-folders, so the solution should work recursively.


I would like to know if my logic is sound.   We know that in every principal ideal domain, every ideal is multiplicatively generated.   Thus, for $a \in R$ we have: $aR = ${$ra: r \in R$}  Thus every ideal has a limit on size, right? So eventually our ascending chain of ideals will have to be the same for some ideal eventually?  Is that correct? It seems a bit too easy

Every principal ideal domain $D$ satisfies  (ascending chain condition on principal ideals) Proof. Let $(a_1) ⊆ (a_2) ⊆ (a_3) ⊆ · · ·$ be a chain of principal ideals in $D$. It can be easily verified that $I = \displaystyle{∪_{i∈N} (a_i)}$ is an ideal of $D$. Since $D$ is a PID, there exists an element $a ∈ D$ such that $ I = (a)$. Hence, $a ∈ (a_n)$ for some positive integer $n$. Then $I ⊆ (a_n) ⊆ I$. Therefore, $I = a_n$. For $t ≥ n$, $(a_t) ⊆ I = (a_n) ⊆ (a_t)$. Thus, $(a_n) = (a_t)$ for all $t ≥ n$.  I have prove $I$ is an ideal in the following way:- Let $ x,y\in I$. Then there exist $i,j \in \mathbb{N}$ s.t. $x \in (a_i)$ & $y \in (a_j)$. Let $k \in \mathbb{N}$ s.t $k>i,j$. Then  $x \in (a_k)$ & $y \in (a_k)$. as $(a_k)$ is an ideal $x-y \in (a_k)\subset I$ and $rx,xr \in (a_k)\subset I$. So $I$ is an ideal. Is it correct?


I made these changes to resolv.conf today and when i restarted my laptop i cannot connect to the internet. It says server cant be found. These commands were given to me by unoDNS when trying to delete it from my system.  sudo mv /etc/resolv.conf /etc/resolv.conf.bak echo "nameserver 8.8.8.8" | sudo tee  /etc/resolv.conf echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf   Any suggestions as to what went wrong. I am using Ubuntu 14.04 LTS.

I recently tried to delete unoDNS from my laptop. A member of their team gave me some commands to input in a terminal. It looked like it changed the nameserver address back to 8.8.8.8. But after I restarted my laptop I cant connect to internet at all. I am using ubuntu 14.04. Please help.


I bought this new HP laptop which is shipped with windows 10.  so I am thinking to do a dual boot with windows 10 and Ubuntu . can Ubuntu work properly on HP?

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I'm trying to find a story set on a planet/sun moving through our solar system with alien life experiencing many generations for a human generation. I recently found a reference to it online but I misplaced it.  I think it was set on a neutron star that was hurtling through our solar system. The races consists of very small individuals ( ~ nm ) and their life span is very rapid such that thousands of their generations pass for a humans.  Humans help them develop and they quickly surpass human development.  Anyone got any ideas?

A book I once owned and read back in late-80's or early-90's that I have not been able to identify title & author for:  It was a SF story concerning tiny native lifeforms, living on either a planetoid or possibly a dead/neutron star, that evolve at a seemingly accelerated time rate. Most of their story is told in the few days of observation (from orbit) by a human expedition to the planet, during which time-frame the race below progresses from stone-age tech level to being more advanced than the human observers, and eventually flying up to meet the humans in small advanced craft powered by micro-singularities... one of which accidentally 'disintegrates' the tip of a human scientist's nose in the process.


Is there any way to link an object from another scene, but be able to work with its materials?  For example, I have a model of an airplane which our modeler made. I want to link the model to a new scene where I will setup lighting and shaders and then render. But if we want to make some modifications in geometry, we could go to the original scene and do it.

I want to have a Cube in scene A, and linked in scene B, but with different material.  The solution for this problem was found on .     click the material tab and you will see a little drop down that says "dat" or "Data". Click that and change it to "Object". Now you can assign the material to the object instead of the mesh or "Data Block".   But what if I have 5000 Cubes in scene A, and I want 4999 of them to be in scene B with different material X, and 1, with material Y.  If I try to "link material" in scene B, with new material, it won't copy "Object" selection. I would have to go over 4999 cubes and change them to "object" in material tab.  I can't join them, and then separate - all objects are in a mess after that (and blender crashes anyway).  Material override for whole scene won't work for me.  Is there any option to override materials in groups? That would solve the problem in some way.


I've been messing around in Python for about a month and a half at this point, and I was wondering: is there a way to print the values of one class variables for all objects in that class? e.g. (I was working on a mini-game kinda thing):  class potions:      def __init__(self, name, attribute, harmstat, cost):             self.name = name             self.attribute = attribute             self.harmstat = harmstat             self.cost = cost  Lightning = potions("Lightning Potion", "Fire", 15, 40.00)  Freeze = potions("Freezing Potion", "Ice", 20, 45.00)   I'd like to be able to print a list of all the names of the potions, but I couldn't find a way to do that.

With a class in Python, how do I define a function to print every single instance of the class in a format defined in the function?


I'm wondering if I'm handling CASE WHEN appropriately below. I have optional parameters and want to make sure this is the best way to handle them.  Postgres version 9.3.14.  CREATE FUNCTION sp_contacts_get_all_by_id (user_id integer DEFAULT NULL::integer, vendor_id integer DEFAULT NULL::integer, filter_contact_type integer DEFAULT NULL::integer)    RETURNS TABLE(...)     LANGUAGE plpgsql AS $$    BEGIN      IF($1 IS NULL AND $2 IS NULL) THEN        RAISE EXCEPTION 'userId or vendorId is required!';     END IF;      RETURN QUERY       SELECT         *       FROM         myapp_contacts       JOIN myapp_contacts_assoc ON         myapp_contacts_assoc.contact_id=myapp_contacts.contact_id       WHERE         (CASE WHEN $1 IS NOT NULL THEN myapp_contacts_assoc.user_id=$1 END) AND         (CASE WHEN $2 IS NOT NULL THEN myapp_contacts_assoc.vendor_id=$2 END) AND         myapp_contacts.expired_at IS NULL AND         (CASE WHEN $3 IS NOT NULL THEN myapp_contacts.type=$3 END);   END; $$

In PostgreSQL I am trying to build a where clause in a function that uses an inbound parameter to determine the contents of the IN  For example:   select fld1, count(fld1) from xyz where fld1 in (     case $1         when 1 then 'Value1'         when 2 then 'Value2'         when 3 then '''Value1'',''Value2'''         when 4 then '''Value4'',''Value5'',''Value6'''     else NULL ) group by fld1   Value 1 works fine as does Value2, Values 3 and 4 fail not syntactically but no rows are returned.


How can I prove that $2017 \mid 1^{2017}+2^{2017}+\dots+2017^{2017}$? I tried proving it with the use of modulo, however it was to no avail. Afterwards, I  tried researching, for possible theorems, that may help, but that bore no fruit, either. Can you guys please help me proving it, as I am stuck? Thanking you in advance.

proof the integer: From Fermat's little theorem, if $\gcd(a,p) = 1$, then we have: $a^p \equiv a \pmod p$. Since $p$ is only divisible by itself and 1, so we have: $1^p+2^p+3^p+...+(p-1)^p \equiv 1+2 + ...+ p-1 \pmod p$  $\equiv p(p-1)/2$. Since p is odd prime, $p -1 = 2k$. So we have:  $p(p-1) = kp\equiv 0 \pmod p$. Therefore $L_p$ is an integer.  The question is how can I generalize the integer $L_p$ for all odd integers $p$. That is, in the expression for $L_p$ replace the exponent $p$ with another non-constant quantity depend on $p$ in a way that $L_p$ remains an integer for all odd integer $p$, and justify the choice of exponent.


I added these repos to sources.list: deb http://archive.ubuntu.com/ubuntu focal main restricted universe deb http://archive.ubuntu.com/ubuntu focal-security main restricted universe deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe  And then: $ apt update $ apt upgrade $ apt dist-upgrade  Will it be enough? do-release-upgrade doesn't work.

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


I recently bought a new Western Digital 1TB HDD and have used it one month ago - just copied some back up pictures.   I plugged it in again yesterday [after 1 month] and saw that I was unable to create a new folder. That option was disabled. I clicked onto the folder I had created one month back and inside that I was able to create new folders. So I created one here. [i.e inside the folder I had created one month back] I copied some data into this new folder As the copy was inprogress, I started to see why I wasn't able to create a new folder in HDD's main directory At one point, while the copy was in progress, I forcely removed the HDD from the USB port [My mistake] From then on the HDD is not mounted by Ubuntu     :~$ lsusb Bus 002 Device 003: ID 1058:25e1 Western Digital Technologies, Inc.  :~$ ls /dev/ | grep sdc sdc sdc1  :~# fdisk -l /dev/sdc  WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util  fdisk doesn't support GPT. Use GNU Parted.   Disk /dev/sdc: 1000.2 GB, 1000170586112 bytes 256 heads, 63 sectors/track, 121122 cylinders, total 1953458176      sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x16f2a91f  Device Boot      Start         End      Blocks   Id  System /dev/sdc1               1  4294967295  2147483647+  ee  GPT  root@Krishna:~# dmesg | tail -n20 [  110.163583] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [  110.163585] sd 5:0:0:0: [sdc]   [  110.163586] Sense Key : Medium Error [current]  [  110.163589] sd 5:0:0:0: [sdc]   [  110.163591] Add. Sense: Unrecovered read error [  110.163592] sd 5:0:0:0: [sdc] CDB:  [  110.163593] Read(10): 28 00 00 00 08 40 00 00 08 00 [  110.163599] end_request: critical medium error, dev sdc, sector      2112 [  110.163603] Buffer I/O error on device sdc1, logical block 8 [  113.011433] sd 5:0:0:0: [sdc]   [  113.011439] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [  113.011441] sd 5:0:0:0: [sdc]   [  113.011443] Sense Key : Medium Error [current]  [  113.011447] sd 5:0:0:0: [sdc]   [  113.011449] Add. Sense: Unrecovered read error [  113.011452] sd 5:0:0:0: [sdc] CDB:  [  113.011453] Read(10): 28 00 00 00 08 40 00 00 08 00 [  113.011462] end_request: critical medium error, dev sdc, sector  2112 [  113.011466] Buffer I/O error on device sdc1, logical block 8   But I really couldn't proceed after this - since I don't understand much from these logs.    I connected it to WINDOWS.  Troubleshooted it -which showed "no problems" I tried opening the drive - it asked me to format it to make usable  again I did try to format it, but it just threw an error that "Windows couldn't format it" - I'm not much of a windows guy.   The HDD is still under warranty - just 3 months since I bought it. I can contact WD support as well.   But I'd like to know if I can try to fix this by myself.  Thanks in advance for helping me out

I've run across (personally or by proxy) a bunch of storage media that exhibited physical problems during their life. Hard disks, solid state drives and other flash storage media all fail after some time. The situation is worse with USB flash drives and flash cards because of the large amount of suppliers with inferior flash cell and flash controller quality.  How can I reliably detect if a storage drive suffers from physical damage?  Note that this question isn't about file system integrity (which can be checked with ).


I've completed my 3 years bachelor degree in B.Sc.Hons in Computing from Nepal affiliated to London Metropolitan University and i am planning to do Ms in Germany. Am i eligible to enroll directly in master program in Germany?

I am a Nepali citizen and I have completed a 3 year bachelors from my country. I am planning my masters degree in Germany. Can I directly start my masters or do I have to do some courses?


Some of my Asian friends soak their beef stew meat in water or even boil it to "get rid of the blood and the bad smell", as they say.  It is my understanding that the red juices in the meat is not blood but myoglobin. The cow has been drained for day, extracting all the blood from the capillaries, so there should not be any blood left.  Why do they believe that they are getting rid of bad smell and blood? Are there differences in the way animals are slaughtered in Asia compared to the West?

I've begun cooking Asian food in the past year or so, and in many Korean and Chinese beef recipes, I see instructions to soak beef in water. Just plain water, not salt water or anything. And every recipe seems to have a different  time - from 5 minutes to like, multiple hours.  I inquired about this and was given various reasons for this step, including "to remove the blood (because it is simply undesirable", "To remove the blood, because it gives the meat a bad taste" or "To soften the beef".  I'm wondering:   Does soaking meat in water really remove that much blood? How much of a flavor component is blood and why would it give it a bad taste (especially since i've never soaked beef before and I've like the taste just fine)? What is the action of solute-free water on a piece of beef immersed in it? Can it really tenderise it to any degree, or is there any osmosis occurring or other such physical/chemical action?


In my addStudent method I am trying to add students(objects) in an object array, but I receive nullPointerException when I add even one object there.  package task2;  public class StudentGroup {     String groupSubject;     Student[] students;     int freePlaces;      StudentGroup(){         Student[] students = new Student[5];         freePlaces = 5;     }     StudentGroup(String subject){         this();         this.groupSubject = subject;     }      void addStudent(Student s){         if(freePlaces > 0 && s.subject.equals(this.groupSubject)) {                     this.students[this.freePlaces-1] = s;                                      //check mistake?             freePlaces--;         }         else{             System.out.println("Student isn't from same subject or there aren't any free spaces!");         }     }      void emptyGroup(){         Student[] students = new Student[5];         freePlaces = 5;     }      String bestStudent(){         double highestGrade = students[0].grade;         String name = students[0].name;         for (int i = 1; i < students.length; i++) {             if(students[i].grade > highestGrade){                 highestGrade = students[i].grade;                 name = students[i].name;             }         }         return name;     }      void printStudentsInGroup(){         for (int i = 0; i < students.length; i++) {             System.out.println(students[i].name + "-" + students[i].grade);         }     } }   I am also not sure if I can just call 5 times the method and fill every student in the array or I have to loop over the array to do so. Most of the info on Internet is with ArrayList, but I can't use it.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a server on AWS, GuardDuty started send me notifications:  *** "type":"Backdoor:EC2/C&CActivity.B!DNS", *** {"domain":"libcurl.so","protocol":"UDP","blocked":false} *** is querying a domain name associated with a known Command & Control server. ***   I've checked the server with all possible security tools and nothing found. With tcpdump -A I saw that my server send such kind of request about this domain. I have turned on auditd. But nothing strange was found.  My question is, how to determine, which process exactly send this request?

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


Recently, I asked my first question on retrocomputing.stackexchange.com .  I later attempted to ask a second question there, but when I clicked the "Post Your Question" button, a div element with a red background appeared, containing the error message, "You can only post once every 40 minutes." However, this was more than 60 minutes after my first question, so the error message did not seem to make sense.  It turned out that the error message was missing some . It did not make clear that although the timeout only applied to the current site (e.g. retrocomputing.SE), the "40 minute" timer is measured from the user's most recent question asked anywhere on the Stack Exchange network. The absence of this information risks the user continuing to post elsewhere within the Stack Exchange network (as I had done), unaware that each time they do so, this would restart the timer and thereby extend the timeout arbitrarily, resulting in a negative user experience.  To fix the discrepancy between the error message and the actual behaviour, either the timeout code should be re-written to match the error message, or the error message should be re-written to correctly communicate to the user how the timeout works.  Related: , .

I noticed that I can only perform certain actions such as commenting a finite number of times in a given period of time. Obviously, rate limiting is in place to prevent accidental misuse or intentional abuse of certain features.  Where else is rate limiting applied on Stack Exchange sites, and what are the limits?


Recently I have been learning about the primary differences between AC and DC current and, as an extrapolation, the reasons for where they are used in technology. One of the primary benefits given for AC power in power transmission is that through the use of transformers we can step-up the voltage (and by the same token step down the current) so that less energy is lost due to Ohmic heating. In doing this, given the formula for power being, $P = I^2R$ , and so the formula for Ohmic heating becomes $P = I^2R$.   Where my confusion lies, then, is in the fact that this can be re-written as $$P = V^2/R$$ As we step  down the current to lower ohmic heating, we at the same time are stepping up the voltage, which the above equation seems to imply will have the same effect as not having changed it at all. The way I see this as working is that given the circuit is in series (imagining a very simplified model of a city, the power grid and transmission wires), current will be constant throughout the circuit, regardless of where we look, whereas potential difference will not. However I'm having a little trouble visualizing this - why exactly this inconsistency vs consistency will effect the results for Ohmic heating in the transmission wires - that is, why does stepping up the voltage change anything at all if the formula can also be written as $P = V^2/R $ ? Would this mean that circuits connected in parallel would experience different effects - If anyone could help clarify this that would be great. I found this question a little hard to phrase so if it needs further clarification please let me know.

please could someone tell me why Ohmic losses are always referred to as $I^2 R$ losses? Here is my problem. If the power coming from a power station is fixed then you can either deliver this power as high voltage, low current or high current, low voltage. But isn't $I^2R$ equal to $V^2 / R$, therefore if R is constant doesn't the power depend on the square of the voltage so surely it doesn't matter whether it is high voltage or high current. The only way I can reconcile this is that a high current must cause a greater heating effect than a high voltage. I can't figure why though. If this is the case then is there a reason why a high current causes more heating than a high voltage?


I would like to know how files are handled in a auto-dnssec environment.  My current setup (non-DNSSEC) places the zones files in /var/named/data. These files are then read by the bind server.  If I enable auto signing, will the zones files change? Or will bind just keep the signed zones internally? If the former thing happens, Puppet might not be a good idea to deploy dns zones anymore.

Could anybody provide a step-by-step procedure to set up DNSSEC under BIND 9.7? I think the version is relevant because it is supposed to make life easier. In fact, there is a document published by ISC called , which I used as a starting point, though it's not quite a tutorial.  The main reason I'm using 9.7 (say, instead of the brand new 9.9) is that it is the stable version under Debian 6. I should mention that I have a basic BIND configuration up and running.  What I tried:   Included inside the appropriate curly brackets in /etc/bind/named.conf.options the line  dnssec-enable yes;   and restarted BIND. Ran dnssec-keygen example.com Ran dnssec-keygen -fk example.com Tried dnssec-signzone –S example.com   However, the last step gives me the error  dnssec-signzone: fatal: No signing keys specified or found.   I can see this is a likely error, as there seem to be missing options indicating where my keys are, but on the hand the referred guide by ISC cites specifically this last example. Indeed, the flag -S stands in fact for "smart signing", so I was hoping having the keys in the same directory from where I execute the last command (/etc/bind) could suffice.  Since this is a toy, non-production project, I don't mind repeating these steps, say, every 30 days, but I'd like to keep them as simple as possible and... get them right!  Any ideas/pointers? Thanks in advance.


I need help on counting days. If I will visit Norway 28.11-30.11 (counting like 3 days right?), I don't need visa but have 90 days within 180 to stay in schengen zone.  After that I want to entry again in 3.3.18 I will have 87 days but I need a little more so I want to go out in 26.5 for 2 days and then the 180 days counting will be reset. After that I have another 90 days to be in Norway? Does it work like that? The dates is not 100% accurate but you get the idea. Cheers

I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation?


Can we use "what do you do?" to mean "what activity are you engaged in at the moment?" And not asking about someone's job. My teacher once used it not to mean asking my classmate's job. Was my teacher correct? Can we also use "how do you do?" to mean "how someone is doing something?" like cooking a meal, rather than an expression used in greetings?

Do we always have to use the question how do you do? fixed in greeting people? Can we ask it in other situations rather than greetings? Like when we are wondering how someone is doing the given task.  Do we always have to use the question what do you do? for asking about sojeone's job? Can we use it sonetimes instead of ** what are you doing?**


Whenever I put a meal in the microwave which contains cheese, why does the cheese get hot before the rest of the meal is heated through?

When I eat hot pizza or a melted cheese sandwich, the cheese feels a lot hotter than the crust or bread: in particular, the cheese might scald the roof of my mouth. but the crust will not. Is this   my imagination, or because the crust cools a little faster than the cheese, so has already cooled a bit by the time I eat it, or because the cheese cools a little faster than the crust, so transfers heat to the roof of my mouth a bit more, or what?


How can I prove Euler's Theorem:   $$x^{\phi(m)+1} \equiv x \pmod m$$   is still true when $x$ is not relatively prime to $m$?  Edit: when m=pq where p and q are distinct primes

I want to know a proof of an alternative form of Fermat-Euler's theorem   $$a^{\phi (n) +1} \equiv a \pmod n$$   when $a$ and $n$ are not relatively prime.   I searched some number theory books and a cryptography book and internet, but there were only proofs of the original theorem  $a^{\phi (n)} \equiv 1 \pmod n$ or in case n=pq which is used for RSA. So I would be very thankful if someone show me a proof or book I should read.


I've seen the following sentence in the book which teaches English as a corrected sentence. My question is why the word passenger -in the following sentence- is referred as a singular while almost never airliners isn't aimed for a singular passenger... therefore should it not be "passengers airliners"? In addition why there is not an indefinite article before the word 'long'?      "To fly big passenger airliners calls for long training and   experience"

So I was taught that you should almost always use singular form of an adjective instead of plural form. But recently, I've seen people using plural form and it sounds quite weird and I don't know if it is correct.  For example,   "Salary tax" instead of "Salaries tax" "Office supplies" instead of "Offices supplies" "Product demo" instead of "Product demo"   In the above cases, the word "Salary" is used as an adjective to describe the type of "tax", so it will be in singular form. But I saw people using salaries tax and not sure if it is grammatical.  So my question is if there are any general rules on how to use the singular/plural form of an adjective?


Consider the following protocol for two parties to flip a fair coin:   Trusted party $T$ publishes her public key $p_k$ A chooses a random bit $b_A$, encrypts it under $p_k$, and announces the ciphertext $c_A$ to $B$ and $T$ $B$ does the same and announces a ciphertext $c_B$ $T$ decrypts $c_A$ and $c_B$, and announces the results. Both parties XOR the results to obtain the random value $b_A \oplus b_B$.   Suggest what type of encryption scheme would be appropriate to prevent $B$ from cheating.    I would say that an appropriate scheme to use here would be Cramer-Shoup or RSA+OAEP. How can we define an appropriate notion of security and prove that it achieves this definition?

I quote Bobby's question here since I encountered the same one...    Consider the following protocol for two parties to flip a fair coin.   Trusted party $T$ publishes her public key $K_{pub}$ $A$ chooses a random bit $b_A$, encrypts it under $K_{pub}$, and announces the ciphertext $c_A$ to $B$ and $T$ $B$ does the same and announces a ciphertext $c_B$ (where $c_B \neq c_A$) $T$ decrypts $c_A$ and $c_B$, and announces the results. Both parties $XOR$ the results to obtain the random value $b_A\oplus b_B$.   It was shown that  was not appropriate for the encryption scheme.  seems to fail to work also. Since $c_A=m^e \mod N$. Then if $m=1$, $c=1$. If $B$ receives $A$'s cipher he will know the exact value of $m$.   So what should the appropriate encryption scheme be?


int main() {          char* string = "Hello world";         string[2] = 'd';          printf("%s\n", string);          return 0; }     int main() {          time_t now;         time(&now);                                                                                $                 char* time = ctime(&now) + 11;         time[8] = '\0';                                                                               printf("%s\n", time);          return 0; }  Like in the second example I am able to modify a particular index of the array for the pointer to terminate the string with the NULL character. However, with the first one I just try to change the character at index 2 to the letter 'd' but it refuses to print the output and I a Segmentation fault error! My guess is that in the second one there is some very slight difference where the ampersand is used to get the contents of the address in memory to where the pointer points to but that's just my guess. Would love if someone could give me a clear and not overly confusing explanation as to why this is... Thanks!

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


How to copy complete content on terminal to a text file using commands .

How do I keep logs of all the work done via terminal? For example, I want a record of all the work done on database via terminal.


Which one is correct?  1) Pick those pieces of your heart which still wants to be happy , or  2) Pick those pieces of your heart which still want to be happy.

Recently at work I was writing the following, and I have not been able to get a firm answer on which version is the most grammatically correct. The sentence is:     We would like to use one of the cables that _________ between rooms.   Is the correct conjugation run or runs?  I think 'run' is correct, because I think that the verb in the prepositional phrase is referring to 'cables' not 'one.' However, a number of colleagues have said that 'runs' is correct because one is singular.


I am getting the error: “SQLDeveloper.app” can’t be opened because Apple cannot check it for malicious software.

I'm running macOS 10.15 Catalina Beta.  When I try to install Spotify I see the following error:    Is this a Spotify issue or a Catalina issue?  Thanks.


Stretching my budget for a new 70D body.  Seems to be exactly what I'm looking for.  Am I wasting my money only purchasing an EF lens to go with it?  The EF-S is well out of my price range.

I have a Canon 550D which I've been using for around a year now. I really love it and have learned a great deal with this and the 18 - 135mm kit lens. But now with experience I feel the need to get some better glass. I won't be buying a new body any time soon because I figure investing in some good glass is more important.   As I have looked around, I see quite a few good used L lenses I can get in ebay for good bargain prices. But I know that the EF lenses don't have the same focal length in the cropped sensors. Is it a wise decision to buy these EF lenses or buy the cropped sensor alternatives?  I have the following lenses in mind that I am looking to buy down the line from the canon range over the next several months.  16-35mm f/2.8L, 24-70mm f/2.8L, 70-200 f/4L.  Are these apt choices for cropped sensors? I know most pros with FFs use these but I am a bit skeptic that they will serve the same purpose for me. If so what are the alternatives for this that have almost as good image quality?


I am new to LaTeX. I have to add C code in my document, I looked for examles and found the following way to add it. But the problem is there is no proper color displying like comments and code is displaying in the same color. Could you please tell me how to fix it?  Here is an example based on C code display in eclipse.   \begin{lstlisting}  int abc = 3; //Variable for reference  \end{lstlisting}

I am using lstlisting to show some code in my PDF. The problem is that when I use:    basicstyle=\fontfamily{pcr}\selectfont\footnotesize\color{red},   to change the code color (not only the language keywords), the frame color changes too. What I want to achive is to have the source code all red and the frame black. Here my lstset:  \lstset{      language=C++, % choose the language of the code     basicstyle=\fontfamily{pcr}\selectfont\footnotesize\color{red},     keywordstyle=\color{black}\bfseries, % style for keywords     numbers=none, % where to put the line-numbers     numberstyle=\tiny, % the size of the fonts that are used for the line-numbers          backgroundcolor=\color{darkgray},     showspaces=false, % show spaces adding particular underscores     showstringspaces=false, % underline spaces within strings     showtabs=false, % show tabs within strings adding particular underscores     frame=single, % adds a frame around the code     tabsize=2, % sets default tabsize to 2 spaces     rulesepcolor=\color{gray}     captionpos=b, % sets the caption-position to bottom     breaklines=true, % sets automatic line breaking     breakatwhitespace=false,  }


In this problem even if I relax the condition that $F$ is a field,then it still remains true, I guess, because if $p$ is reducible, then $p=fg$ where $f,g$ are both nonunit polynomials. Now $fg$ is in $(p)$ but none of $f$ and $g$ are in $(p)$ which contradicts that $(p)$ is prime.  Here the only requirement is that $F$ be an integral domain so that $f(x)$ and $p(x)$  can be associate.

In a principal ideal domain, prove that every non trivial prime ideal is a maximal ideal  Attempt: Let $R$ be the principal ideal domain. A principal ideal domain $R$ is an integral domain in which every ideal $A$ is of the form $\langle a \rangle = \{ar~~ | ~~r \in R\}$  Let $ \langle a \rangle $ be a prime ideal $\implies R/A $ is an integral domain.  A finite integral domain is a field . Hence, if we prove that $R/A$ is finite, then $R/A$ is a field $\implies A$ is a maximal ideal.  Now, $\langle a \rangle = \{ar~~ | ~~r \in R\}$  Since, R is an integral domain, there are no zero divisors and cancellation is allowed $\implies ar_1 = ar_2 \implies r_1=r_2 \implies ar_i$ maps to a different member of $R$ for each different $r_i \implies \langle a \rangle$ represents the elements of $R$ in some random order.  $\implies \langle a \rangle = R$ and hence, $R/A \approx {0}$ is finite and hence $A$ is maximal.  Is my attempt correct?