Is Google Cloud Mumbai - Asia-south1-a/b/c facing issues due to COVID ? Unable to Create or Start an instance since 1 month

Hi Is Google Cloud Mumbai (Asia-South1) facing issues due to COVID situation in Mumbai ? I am unable to create a new Compute Instance or start my old instance in all of the zones in Asia-South1 Mumbai region for over a month now in Zone A,B or C. I keep getting "Not Enough Resources available in this Zone". I am trying to create a 8GB RAM - 4 VCPU on E2 Platform instance with Cent OS 7 & 20GB SSD Disk space. I have waited for almost one month now and still no resolution of this issue. If this doesn't resolve soon it will cause a huge problem for my company from our clients. Kindly help please !


Showing two wavefunctions are proportional to one another

I am struggling to answer the following question:  Let ψ₁(x) and ψ₂(x) be normalisable energy eigenfunctions for a particle of mass m in one dimension moving in a potential V(x).  Suppose that ψ₁ and ψ₂ have the same energy eigenvalue E. By considering ψ₁ψ₂' - ψ₂ψ₁', show that these wavefunctions must be proportional to one another.  I tried differentiating the Schrödinger equations and multiplying them together appropriately, but this just yielded a lot of messy algebra with no useful outcome.  I'm also wondering if there is a physical interpretation of this? Does it mean that the wavefunction for a normalisable energy eigenstate in one dimension always be chosen to be real?


How to run command line on startup ubuntu server

I want to run vncserver on startup How I can do it in startup file directly or create a custom Command via alias if possible


Kindle for PC installed via winetricks won't sync

I am a new user to Ubuntu 16.04 and used winetricks to install the Kindle app and it starts up just fine, Amazon makes it a little hard to register by generating a random one time new password, which I did and it seemed to be successful and Amazon verifies the existence of this new Kindle for PC app but when I try to sync the library it gives me an unable to connect message.  If I close the app and restart, it goes to the registration process again, creates yet another Kindle for PC version and repeats the entire frustrating process.  I'm hoping someone has already solved these problems and can tell me what I need to do to make it work.


When to use a hyphen to coin a new word and when to omit a hyphen?

Someone has asked for answer to these topics. However, I still want someone to provide me with simple and universal answers. I recently read a sentence from the English-speaking person. It is in an article. It is, ' The available options for mitigating pad cratering are not universally effective (see link below), but they may be helpful on a case by case basis until more crack resistant laminates are developed and become available.  '  If I am to write this, I will use 'a case-by-case basis until more crack-resistant laminates'   Can anyone tell me when to use a hyphen to coin a new word?


encryption of string and shorten to smaller length

the below code gives me string like this  "3TA3cATum2VMStTsnJ6DPz5Xx5JH2SoZDdevsd2WJrYapJQjcTOOQ==" but what I want is to encrypt mystring(strr) in a shorter form  (need to convert something like tiny URL)            private byte[] key={}; private byte[] IV={18,52,86,120,144,171,205,239}; public string prvtkey="!#$a54?3"; string strr="placeesOFPrj/modulesNamee/mypagesss/ds2.aspx"; key = System.Text.Encoding.UTF8.GetBytes(prvtkey); DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = Encoding.UTF8.GetBytes(strr); MemoryStream ms = new MemoryStream(); CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(key, IV), CryptoStreamMode.Write); cs.Write(inputByteArray, 0, inputByteArray.Length); cs.FlushFinalBlock(); txt.Text=Convert.ToBase64String(ms.ToArray());


Take two i.i.d. Gaussian R.V.s $X$ are $Y$ both of which are $~N(0,a\sigma)$.  Define a new R.V. $D = \sqrt{X^2 + Y^2}$.  What's the expected value $E(D)$?  In researching this I'm seeing references to chi-squared distributions and chi distributions (of different degrees of freedom?), but I haven't learned about those yet. Do they apply here? What are their means and how does the original mean/variance carry through?


The code  \documentclass[a4paper]{article} \usepackage{multirow} \begin{document}  \begin{tabular}{|l|l|l|l|l|l|l|}   \hline   \multirow{2}{*}{Color Type} & \multirow{2}{*}{Channels} & \multicolumn{5}{c}{Bits per     channel} \\       \cline{3-7}   & & 1 & 2 & 4 & 8 & 16 \\       \hline \end{tabular}  \end{document}   Results in the table    How may I fix this code so that a vertical line is also added after "Bits per channel"?


How to exclude latest x posts from a paginated query?

I have a WordPress loop, that is part of an AJAX call. Every time a button is clicked, this function is called, runs the below loop and outputs the next 6 posts. There are already five posts shown by default. How can I exclude the five latest (most recent published) posts from the Wordpress loop? So that page 1 of the loop starts with the 6th, 7th, 8th, 9th, 10th & 11th post?  This is the loop that I use. It would be great if someone could tell me how to alter it so that it starts with the 6th post. Thanks in advance!  $args = array(     'post_type' => 'post',     'post_status' => 'publish',     'posts_per_page' => '4',     'paged' => $paged, //Starts with 1 (or a different number if that's better) ); $query = new WP_Query( $args ); ?>  <?php if ( $query->have_posts() ) : ?>         <?php while ( $query->have_posts() ) : $query->the_post();?>

                        <img class="amb-home-thumbnail-container override" src="<?php echo the_post_thumbnail_url(); ?>">
<a href='<?php the_permalink() ?>'><?php the_title() ?>

<?php the_excerpt() ?>

           <?php endwhile; ?> <?php endif;


Transit visa at Frankfurt international airport

I am traveling New Delhi to San Francisco and back to New Delhi by Lufthansa. In my return, I will break the journey at Frankfurt International Airport to fly to UK by a different airline, and stay there for a week. I have the USA and the UK visas. After a week-long stay in UK, I'll fly back to Frankfurt International Airport and take my Lufthansa flight back to New Delhi. Do I need any Schengen or airport transit visa to do the above?


How to remove the WordPress version from some .css/.js files

I know that I can use the following function to remove the version from all .css and .js files:  add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999 ); add_filter( 'script_loader_src', 'sdt_remove_ver_css_js', 9999 ); function sdt_remove_ver_css_js( $src ) {     if ( strpos( $src, 'ver=' ) )         $src = remove_query_arg( 'ver', $src );     return $src; }   But I have some files, for instance style.css, in the case of which I want to add a version in the following way:  function css_versioning() {     wp_enqueue_style( 'style',         get_stylesheet_directory_uri() . '/style.css' ,         false,         filemtime( get_stylesheet_directory() . '/style.css' ),         'all' ); }   But the previous function removes also this version. So the question is how to make the two work together?


appending to a filename w/ a date from within a cron job

I have read that we can determine the current date in Bash with the date command like follows:  NOW=$(date +"%Y-%m-%d")   In my crontab I append logs to files, and wanted to use this to put dates at the end of my file names, like follows:  cd /x/y/z/ && mycommand &>> /x/y/z/logs/mylog_$(date '+%Y%m%d').txt   However, this doesn't work as expected. I get the below error message, which I don't understand... I have no idea what it's referring to. I'm pretty new to using cron jobs.  /bin/sh: -c: line 0: unexpected EOF while looking for matching `'' /bin/sh: -c: line 1: syntax error: unexpected end of file


What should be the criteria to select features using correlation factors between features?

For the titanic dataset, I have done some feature engineering (one-hot encoded the features) and now I have developed a heatmap to view the correlation between different features.    I'm not able to understand what to do with them. Lets say two features are highly correlated, eg, in the image, Name_title_mr and sex_0 (ie. male) are having correlation factor of 0.84. So, does that mean I should drop Name_title_mr, since sex_0 is a very important feature. (This we know with experience, that sex in titanic is very important but is there any way we could view this as well by just observing the heatmap?). One more doubt I have is: How would I know that I can just add two features, like sibsp and parch ? I have seen many kernels where they just create one feature with no_of_family_members by just adding sibsp and parch.   Will that adding of two features helpful? and should I drop the individual features sibsp and parch in that case?   sibsp_1 and sibsp_0 (sibsp_1 is when sibsp=2 and sibsp_0 is when sibsp=1) seems to be highly negatively correlated. Should I consider some action on this as well?


I have a big problem to figure how the security model in papers about side-channel are relevant (briefly the attacker has a partial access to the hardware).  Why these breaches are so seriously considered?  Is there any known and famous story of a system attacked with these techniques?


Contradiction in Ohm's Law and relation $P=VI$

Ohm's law states that  electric current is directly proportional to voltage provided that physical conditions like temperature remain constant i.e. $$V = IR$$  On the other hand,  $$\text{Power = Voltage} \times \text{Current}$$  So here it seems that the higher the voltage, the lower the current, provided that the power remains constant (i.e. current is inversely proportional to the voltage here which is against Ohm's Law.).   Now my question is how do physicists explain this apparent contradiction? Or maybe this not a contradiction because I am analysing things incorrectly?   P.S.: I am a tenth grade student so please refrain from the usage of highly complicated terminologies in your answers.


How do I get "restart" option in the shutdown menu in Unity?

The dropdown menu I get when I click on the gear link in the top right corner only shows these options:   Lock Computer Logout Suspend Hibernate Shutdown   There is no "restart" or "reboot".  How can I make that option available?  Bonus question: Can I remove Hibernate, Lock, and Suspend?


Based on  I shouldn't need to give the lang- prefix when specifying a language for a tag, however this doesn't appear to be the case for CSS.  This is the result of specifying just <!-- language: css --> on a block of code:    Notice how the IDs (#) are being treated as comments rather than style declarations, and there is no nice formatting on the property names.  This is the result of specifying <!-- language: lang-css --> on the same block of code:    I'm not 100% sure if this is a problem, but if it is: can this be fixed?


Identification card for foreigners in trains in Germany

I want to go to Berlin to Gottingen by train. I found that to avail myself of the “savings fare”, I have to book a ticket at least one day in advance. And I saw a requirement on the Bahn website to have a identification card for online tickets.  I am a foreigner in Germany, so does my passport count as valid identification in German trains?


What does "Auto" setting of white balance do? I know what it is supposed to do but how does it actually work? Does it chose from the various Sunny, cloudy,incandescent white balance settings you have already entered and use one of them?or does it work independently, then applies the adjustment hues you have entered?


Sandbox JavaScript in C# Code and execute it

Is it possible to sandbox a JavaScript function in C# code, execute it by passing in an argument such as an array, and return a result. No web browser involved here, this is not an Ajax or 'registerstartupscript' type of question.


Proving that $f(x+y) = f(x) + f(y)$ and $f$ being continuous at one point implies that $f$ is continuous on ${\bf R}$

Suppose $f(x+y)=f(x) + f(y)$ for all $x,y \in \mathbb R$ and $f$ is continuous at a point $a \in \mathbb R$. Prove that $f$ is continuous at every $b \in \mathbb R$.   I know that in order to prove continuity we can use the definition that states that $\lim_{x\to b}f(x+y)=f(b)$ then the function is continuous however I do not know how to show that the limit will be $f(b)$ for the function. Thanks in Advance.


I am having some problems when I type     sudo apt-get update   Error occurs saying the following      E: The repository ' bionic Release' does not have a Release file.   N: Updating from such a repository can't be done securely, and is therefore disabled by default.   N: See apt-secure(8) manpage for repository creation and user configuration details.   Please help.


The alternating series test (AST) says, briefly, that if   $a_k>0$ $a_k \geq a_{k+1}$, and $a_k \to 0$ as $k \to \infty$   then $\sum_k (-1)^k a_k$ converges.  This seems to be a one-way test (that is, if an alternating series fails the test, we don't know that it diverges).   document says so explicitly. It then gives an example of an alternating series which fails the AST. That doesn't prove the series is divergent (but it turns out to be divergent, anyway, by $n$th term test).  Is there a convergent, alternating series that fails the AST?  Of course, if the series fails condition 3, then it also fails the $n$th term test, and must diverge. And if it fails the first condition, then it's not strictly alternating, anyway.  So it must be a series that is not getting smaller (condition 2), but still converges.


On my profile page, the "track the next badge let us pick" thing overlaps with the buttons. Is this a bug, and has it been seen before?  Edit: I clicked "let us pick" and earned another badge, but it happened again


Show that $({\mathbb{Q}},+)$ is not finitely generated using the Fundamental Theorem of Finitely Generated Abelian Groups.

Can anyone please help me out on how to use the fundamental theorem of finitely generated abelian groups to prove that $({\mathbb{Q}},+)$ is not finitely generated?


Is developerquestion.com a Stack Exchange ripoff, or is there some valid connection to SE? I.e. does it use the Stack Exchange framework (it really looks very similar)?  Interestingly, it mirrors all the questions of the Stack Exchange sites. Unfortunately, the site does not contain any "about" info at all.


What is the difference between the ApplicationSettings section and the AppSettings section?

Can someone please explain to me the difference between the AppSettings and ApplicationSettings sections in the App.Config file. Why are there two different sections that apparently do the same thing??


{chemstyle package} how to reference the graph number label in the text part?

I am using chemstyle or chemescheme package to automatically generate labels of compounds in the scheme. It took me a long time to make it work after I notice that it require --shell-escape to display the .esp file in the pdflatex mode.   However, I get all of the compounds labeled correctly, but how can I reference them in the text part? I tried to use \schemeref{label}, but it does not work.


Does every Abelian group admit a ring structure?

Given some Abelian group $(G, +)$, does there always exist a binary operation $*$ such that $(G, +, *)$ is a ring? That is, $*$ is associative and distributive:  \begin{align*} &a * (b * c) = (a*b) * c \\ &a * (b + c) = a * b + a * c \\ &(a + b) * c = a * c + b * c \\ \end{align*}  We also might have multiplicative identity $1 \in G$, with $a * 1 = 1 * a = a$ for any $a \in G$. Multiplication may or may not be commutative.  Depending on the definition, the answer could be no in the case of the group with one element: then $1 = 0$. But the trivial ring is not a very interesting case. For cyclic groups the statement is certainly true, since $(\mathbb{Z}_n, +, \cdot)$ and $(\mathbb{Z}, +, \cdot)$ are both rings. What about in general? Is there some procedure to give arbitrary abelian groups ring structure?


how to get user location based on IP address using javascript?

how to get user location based on IP address using javascript ? how to display checkbox if user is coming from other country and hide the checkbox if the user is not coming from other country ?


What is the term for replacing a name or brand with a funny pejorative / sardonicism?

What is the term for when one replaces a well-known name [(Proper) noun, company, brand, etc.] with one that tries to be funny yet pejoratively descriptive, different but similar enough that one's audience can likely understand the replacement?  For example: Whole Foods ===> Whole Paycheck; Comcast ==> Scumcast; Starbucks ==> Charbucks; Kinko's == Stinko's; eBay ==> Evil Bay  I tend to use sobriquet don't believe this explicitly implies funny as well as insulting. Moniker again is close but not specific to the above description.  There is a similar question which proposes tortonym and malapropsim, but it does not seem to settle the argument definitively:   Another answer here proposes dysphemism, but to me it isn't a full fit:  because it doesn't cover the humor aspect.


How can I find out what version of Debian a particular version of Ubuntu is based on?

My understanding is that Ubuntu is based on Debian. For example, on the Wikipedia page for Ubuntu it states "" How can I find out what version of Debian a particular version of Ubuntu is based on (if any)?  For example, the current stable release of Ubuntu is "" (17.10) which announces that it is based on the Linux 4.13 kernel, but does not seem to say anything about the Debian version.  The current stable release of Debian is code named "" (9.2) which advertises a 4.9 kernel (on the afore-linked Stretch page). How can I find out the details of the relationship between them? Is there a particular command that will reveal this information?


As the question states, is kimchi still safe to eat after spending a few hours unrefrigerated, the time it takes me to get home ?  I'm mostly concerned because my commute home involves time in a heated bus


Wifi not working (Intel) on HP Spectre x360 13

I've been trying to follow around to fix my wifi problems, however I don't know how to find out my actual wifi device name. The problem is that on Ubuntu (14.04) there seems to be no indication that the computer is aware it has a wifi adapter (it definitely has one) and it can't connect to or see wireless networks.  I guess it could be a device driver problem, but I can't find out the name of my adapter, other than that it is either one of the two:  Intel Corporation Device 24fd (rev 78) Subsystem: Intel Corporation Device 1010   Which don't seem to match with what I need to figure out which driver to install.   Here is the output Network Controller part of the output of lspci -v  01:00.0 Network controller: Intel Corporation Device 24fd (rev 78)     Subsystem: Intel Corporation Device 1010     Flags: bus master, fast devsel, latency 0, IRQ 11     Memory at dc100000 (64-bit, non-prefetchable) [size=8K]     Capabilities: <access denied>   And here is the lsusb output  lsusb Bus 004 Device 003: ID 0bda:8153 Realtek Semiconductor Corp.  Bus 004 Device 002: ID 05e3:0617 Genesys Logic, Inc.  Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 003: ID 0835:2a01 Action Star Enterprise Co., Ltd  Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 8087:0a2b Intel Corp.  Bus 001 Device 002: ID 064e:3401 Suyin Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   UPDATE - When trying to install the new kernel:   linux-headers-4.8.14-040814-generic depends on linux-headers-4.8.14-040814; however:   Package linux-headers-4.8.14-040814 is not installed.  dpkg: error processing package linux-headers-4.8.14-040814-generic (--install):  dependency problems - leaving unconfigured


pgfplots, tikz, node, pin: Change Anchor

I annotate special points in my diagram and use a node/pin approach:  \documentclass[border=3mm,tikz]{standalone} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture} \begin{axis}[     axis lines = middle,     xlabel = {$x$},     ylabel = {$y$},         ]     \addplot [domain=0:10]{x};     \node[coordinate, pin={[align=left,pin distance = 10mm]-30:{Test Text Test\\ Text Test}}]                at (axis cs:4,4) {}; \end{axis} \end{tikzpicture} \end{document}   I want to change the anchor for the pin line / pin egde -- here are two possibilities:       Is that possible?


How big is the world in Minecraft Pocket Edition?

I'm currently building a town in Minecraft Pocket Edition and I'm wondering how many blocks long and how many blocks wide the world is.


MULTIPLE INSERT VALUES with INSERT into another table

I have 2 tables, events and event_users:  Events  id      int   type    int date    date      time    time        Event_users  event_id    int user_id     int user_role   int ...   Events can have many event_users (one-to-many relationship).  When I insert more than one event in the Events table, the query is:  INSERT INTO events     (type,date,time) VALUES     (1,12-02-14,08:15:00),     (1,13-02-14,08:15:00),     (1,14-02-14,08:15:00),     (1,15-02-14,08:15:00)   But at the time I know the events table info, I also know some of the event_users table info.  So, because I need the events.id to write the event_users record, how can I insert the events and the event_users records in one query? The database is MySQL.


As I am writing the manuscript of my PhD thesis, I am facing a `LaTeX' obstacle. Chapter 2,3 and 4 of my thesis will, each, be a copy of a published article. For so, I would like each of this chapter to end with the bibliography of the article.  I also want a bibliography at the end of thesis for the references I used in the introduction ( chapter 1), and in the chapters 5 to 7, plus the appendices.  I could use a \includepdf for the articles but that will remove the hyperref link inside the chapters and for so I would like to avoid that.  How can I have multiple bibliographies in a single tex document.  ps: I don't mind merging all my .bib files into one, there should be no conflict.


Can I get reputation without giving any answer to question or without asking any question?

I have just seen the profile of .  This person has not asked any question and not given any answer but he has 101 rep. How's that?


Why don't we define neighbourhoods to be open sets?

There seems to be two common definitions of neighborhoods of a point- an open set containing the point, or an set containing an open set which itself contains that point. Why don't we just use the former definition, it seems so much simpler? What do we gain from the latter?


What are the parallels between The Force Awakens and previous Lucas films (excluding Episode IV)?

Everyone has their own opinions but to me Star Wars: The Force Awakens felt like it was previous movies stitched together.  How many scenes are essential copy cat ideas of previous films (excluding A New Hope)?  Possible scenes      The Millenium Falcon being sucked up and Rey and Finn hiding under the bridge (same as Luke and Han Solo), the BB-8 essentially having secret information (R2-D2 & C3P-O had similar information), and the death planet being blown up (similar to the Death Star).    is rather similar although I am explicitly excluding "A New Hope" so it should be different.


Is Email Verification on Mobile App Sign up a bad UX?

We have a user sign up form in our product. In web version we have a email verification process. We will send a verification mail with an activation link after sign up.   Now we have a mobile app for the same product.I feel like following the same process is not good on a mobile because it makes the sign up process longer and user needs to use his mail client and browser to complete sign up process.  A "loooong" process in mobile is really bad, How can we solve this issue.


How to set superscript footnote mark in the text body but normalsized in the foot?

I want the footnote mark to be superscripted in the text body (e.g. Footnote mark²), but normalsize in the foot, to be shown like:  ________________ 2. Some footnote text   Also, it would be nice if the mark appeared hanging in the left margin, like     ________________ 2. Some footnote text   (That is recommended by Bringhurst in his Elements of Typographic Style)


How can I reproduce commands run on one machine on another machine?

I would like to install some software on a linux-machine that I have run in VirtualBox. Then I would like to do the same thing on a linux-VPS.  I think that I can save all commands that I run using the history command. Is there any way I could run these commands on another machine? Or what is the way to do such things?


How do we refer Bulk Data Load Jobs in Apex

I have a requirement where, we need to send an Email on the status of failed Bulk Data Load jobs. But I am not sure the Object Name or how to refer those jobs programatically in my APex code. When I use 'AsyncApexJob', it's referring to Scheduled Apex Jobs. But I want the reference of Bulk Data Load Jobs. (Bulk Data Load jobs will be submitted by Mule ESB process using Salesforce Connectors.) Any info on this helps. Thanks.


What does colon (':') in bash variable resolution syntax mean?

I need to decode this assignment:  jvm_xmx=${jvm_xmx:-1024}


Make a gold badge to encourage more tag wiki edits

My main site is . I'm not sure how many tag wikis I've edited, but probably not many more than it took to get the shiny silver  badge for editing 50 tag wikis that's also been earned by twelve other users on our site.  Good tag wikis are important and I know I should be writing them, but inevitably I put it off in favour of some other work... a badge would make the difference between getting round to it and not getting round to it.  I know writing and improving tag wikis is a slog and most people won't do it even though there are badges, but that's ok. A site only needs a few badge-pursuers enthusiastic wiki-makers to make a big difference.  So I think there should be a gold badge for making, say, 200 tag wiki edits. It could be called Doctorate (because of the research required), for example.


Canon CAPT Driver v2.4 was to be download from a link posted , but when I write this the link is dead.  I had the driver and have uploaded it .  But I suppose the driver and even a newer version should be available. Is it?


How many ways are there to define sine and cosine?

Sometimes there are many ways to define a mathematical concept, for example the natural base logarithm. How about sine and cosine?  Thanks.


Is Earth's orbit around the Sun affected by the ~8 minutes light delay?

Gravitational change occurs at the speed of light. As a consequence, we experience on Earth the gravitational attraction of the Sun based on its position relative to us ~8 minutes ago. How does this delay affect the geometry of Earth's orbit compared with the classical Newtonian model?  Nordvedt postulated that a gravito-magnetic component makes it appear as if the interaction is instantaneous  (i.e.) classical Newton with infinite speed of interaction. Was Nordvedt correct?


Let $H$ be a normal p-subgroup of a group $G$. Proof $H$ is contained in $S$ for all $S$ Sylow p-subgroup of G.

Let $H$ be a normal $p$-subgroup of a group $G$. Proof $H$ is contained in $S$ for all $S$ Sylow $p$-subgroup of $G$.   I'm having trouble trying to understand what is that I have to proof. I don't fully understand the problem so this is what I've got so far.  On my notes I have that: Every p-subgroup is contained in a $S_{p}$-subgroup.  An $S_{p}$-subgroup is the same as a Sylow $p$-subgroup?  Also there's a Lemma that states: If $S$ is a $S_{p}$-subgroup of $G$ and $H$ is a p-subgroup then $H\subset N_{G}(S)$ if and only if $H\subset S$.  I'm pretty lost so any help would be very appreciated.


Sort "A-1" before "A-10" in .net SortedDictionary *without* LINQ

I'm sure this is an FAQ, but the first 12 items Google returned do not have this question in it. I have a SortedDictionary(of String, String) where the first item is an apartment number and the second a tenant name. I populare, then loop over the results and print, and I get something like... A-10  Bob Smith A-12  John Taylor A-1   Alice Monroe A-2   Janice O'Dell  I am at a complete loss as to what this sorting is trying to do, but in any event, I need this list to be A-1, A-2, A-10, A-12 (etc.) We are forbidden from using LINQ (above my pay grade), so is there some easy way to change the sorting to be as expected?


How to do weight paint on one side, even with mirror modifier

I would like to rig a mesh (for example Susanne, the monkey) manually, using 3 bones, and this object uses a mirror modifier and a subsurf modifier. The left bone has 0 vertices assigned yet and the right bone has a few vertices assigned. Because of the mirror modifier, when I weight paint the right side, the left side will also be painted, which means that both sides are controlled by the right bone. How can I solve that only the right side is weight painted with mirror modifier, without applying the mirror modifier?     But when I first select the monkey, then the armature, press CtrlP, automatic weights, then only one side is weight painted, even with mirror modifier     How can I solve that only the right side is weight painted with mirror modifier, without applying the mirror modifier? I know this is a duplicated question of , but I don't want to apply the mirror modifier, because I may want to edit the mesh later and the mirror modifier is then convenient. Thanks :)


Why is controlling FDR less stringent than controlling FWER?

I have read that controlling FDR is less stringent than controlling FWER, such as in :     FDR controlling procedures exert a less stringent control over false discovery compared to familywise error rate (FWER) procedures (such as the Bonferroni correction). This increases power at the cost of increasing the rate of type I errors, i.e., rejecting the null hypothesis of no effect when it should be accepted.   But I was wondering how it is shown to be true mathematically?  Is there some relation between FDR and FWER?


Is it reasonable to ask update on recommendations letter twice?

It is important to know that I have requested about 7/8 letters per professors ( 3 total ). I have told them that I was conscious that it was a lot of letters to write so I was content with a general letter for most of the schools I wanted to get in and maybe one letter that was a bit more personalized for the school they felt I would have the highest chances of admission.  The nearest deadline is 10 days away. I have asked about this in late January and I haven't gotten anything yet.  I asked for an update in early March and the profs were either working on it or were being bottlenecked by the administration. But since then I got nothing.  The deadlines are approaching quickly and I hope you understand how stressed I feel about this. Would it be too petty to ask for a second update?  I need at least 3 letters, and I have only asked to 4 professors, one of which didn't answer so I think he doesn't want to write me one (for a reason I ignore). I may have made a mistake and should've asked more professors, that's on me. The point is I don't want to upset because if at least one of them decides that I am too annoying I can already cross half of the schools I wanted off the list.


How variables inside braces are evaluated

I'm new to shell scripting and I came across these expressions   ${var:-val} and ${var-val}  ${var:+val} and ${var+val}  ${var:=val} and ${var=val}  so how are they evaluated and what are the differences between them


Definition of Dedekind-infinity: Bijection or Injections?

I have been using the following definition of infinity (from Dedekind): Set $S$ is infinite iff there exists a proper subset $S'$ of $S$ and bijection $f: S\rightarrow S'$. Occasionally, I have seen "injection" used instead of "bijection." Exactly why is this wrong? Can anyone give me a counterexample demonstrating why these are not equivalent definitions?  Follow-up 8 years later: See my formal proof of the equivalence using a form of natural deduction and basic set theory at:


I asked a question about an hour ago via my iPhone and the official SE app, though On The Road hasn't been awarded yet.  Is it broken?


Is it acceptable (or possible) to use an IP Address as a nameserver entry for a domain name?

I am attempting to use bind9 on my linux VPS to "host" the zone files for my domain name. My confusion is that my VPS's hostname is that domain name. If a client were to look up ns1.mydomain.com and my VPS is serving that zone file, the client would never be able to access the zone file of example.com to solve ns1.example.com.  So here's my question: Is it acceptable to use an IP Address in a domain name's "Nameserver" field instead of a domain name? I've never seen it done before and I am wondering if there is a reason for that.


In c code , return and exit from main behaving same ?  int main (int argc , char* argv[]) {     exit(2); }   and  int main (int argc , char* argv[]) {     return 2; }   when both of code called from another c , both of them will return 2 ?


Can I insert elements to the beginning of an element using .appendChild()?

If the user selects an option in a dropdown box, there must be added a label and a textbox. Using appendChild, these elements get added to the end of the container.  var newFreeformLabel = document.createElement('label'); newFreeformLabel.innerHTML = 'Omschrijving:';  var newFreeformField = document.createElement('input'); newFreeformField.className = 'textfield'; newFreeformField.name = 'factuur_orderregel[]';  var newFreeformSpacer = document.createElement('div'); newFreeformSpacer.className = 'spacer';  container.appendChild(newFreeformLabel); container.appendChild(newFreeformField); container.appendChild(newFreeformSpacer);   The issue is that these elements should be inserted at the beginning of container, not at the end.  Is there a solution to this in PrototypeJS?


How does database connection actually works?

I am wondering, on a practical level : what is a database connection?  What does it represent for PHP/Java/Ruby/etc to have an opened connection for instance? What about the MySQL deamon? Does it materialize in some way?   From PHP side, I can guess it is an object like any other. I can imagine a similar concept from MySQL's point of view. But is there an "in between" handled by one or both sides that actually materializes the connection in some way?  My apologies if the question sounds very vague. I am so used to speak of PDO "database connections", I realize now that I am not sure at all what that is. I understand what it does, but how it does it just seems very foggy.  Many thanks for every clarification of this concept.  Pointing me towards a good reading is considered a valid explanation :D


UNEXPECTED INCONSISTENCY : RUN fsck MANUALLY  The root filesystem on /dev/sdb9 requires a manual fsck  BusyBox v1.21.1(Ubuntu 1:1.21.0-1ubuntu1) built in  shell(ash)  (initramfs)_


How to find the 'sizeof' (a pointer pointing to an array)?

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


Let $k$ be a field of characteristic $\neq 2$, and $n\geq m\geq 3$. Then $k[x_1,\ldots,x_n]/\langle x_1^2+\ldots+x_m^2\rangle$ is integrally closed.

I wish to show that $B:=k[x_1,\ldots,x_n]/\langle x_1^2+\ldots+x_m^2\rangle$ is a normal domain -- that is to say, it is integrally closed in its ring of fractions. Unfortunately, I don't know of any theorems about quotients of normal domains being normal. The best I can say so is that $B$ is an integral domain, that is to say, $x_1^2+\ldots+x_m^2$ is irreducible.


Should I waive my right to view my recommendation letters?

Most graduate applications provide a choice for applicants to view their recommendation letters at a later date. There is a mention of some US mandate alongside.   Is it a better option to forgo this choice in the application? Will the recommending professor feel more secure then? What is the procedure for the applicant to see his/her recommendation letters? Does the university readily show them when asked? How ethical is it for the student to ask for the same, especially, for example, after being rejected from a program?


Is it possible to have data backup? If so how long?   Except Google Earth is there any other authentic system that can provide cultivations image data of a field for last few years?


Language specific settings for field formatters

I've created a custom field formatter widget for numeric fields. The formatter has A LOT of settings to customize the visual output of that number, to whatever designers/marketing wants (adding a lot of HTML markup, with[out] leading/trailing zeros, zeros as dash, one or two fractions, rounding, prefixes/infixes/suffixes,... ).  Some of those settings are language-dependant though, so I'd like to enter different formatter settings in  /en/admin/structure/types/manage/MY_CONTENT_TYPE/display /de/admin/structure/types/manage/MY_CONTENT_TYPE/display /fr/admin/structure/types/manage/MY_CONTENT_TYPE/display  I've noticed that there is a $langcode parameter in   but I don't know how to make  language-aware.  Is it possible at all to have language-specific settings in a field formatter? If yes, how to I store and retrieve those settings in the correct language?


Need help proving A $\subseteq$ B or B $\subseteq$ A.

Prove for any sets A and B if $\mathcal{P}$(A) $\cup$ $\mathcal{P}$(B) = $\mathcal{P}$(A $\cup$ B) then A $\subseteq$ B or B $\subseteq$ A Scratch work: If $\mathcal{P}$(A) $\cup$ $\mathcal{P}$(B) = $\mathcal{P}$(A $\cup$ B) then $$\tag1 \forall x (x \in (\mathcal{P}(A) \cup \mathcal{P}(B)) \iff x \in \mathcal{P}(A\cup B)). $$ If A $\subseteq$ B then we are done. If A $\nsubseteq$ B then we must show B $\subseteq$ A. We can first assume y $\in$ B. Then there exists a set Z such that Z $\subseteq$ B and y $\in$ Z. Since Z $\subseteq$ B, Z $\in$ $\mathcal{P}$(B) and obviously Z $\in$ $\mathcal{P}$(A) $\cup$ $\mathcal{P}$(B). By (1), Z $\in$ $\mathcal{P}$(A $\cup$ B). Thus Z $\subseteq$ A $\cup$ B. Since y $\in$ Z, y $\in$ A $\cup$ B. Since y was an arbitrary element of B, B $\subseteq$ B or B $\subseteq$ A. It doesn't seem then that B is necessarily a subset A.


I could swear I've seen the function (or method) that takes a list, like this [3, 7, 19] and makes it into iterable list of tuples, like so: [(0,3), (1,7), (2,19)] to use it instead of:  for i in range(len(name_of_list)):     name_of_list[i] = something   but I can't remember the name and googling "iterate list" gets nothing.


How to show a screen can be scrolled down?

Back in the old days scroll bars were used to show if and how much a page can be scrolled down. I'm working on a smartphone app and the settings screen takes up more than one screen and needs to be scrolled. The trouble is, from the top it looks like it could be all there is and the user is given no indication they can scroll down for more settings. Scrolling is done, in the normal smartphone way, where a finger can drag to move the container.


$p=4n+3$ never has a Decomposition into $2$ Squares, right?

Primes of the form $p=4k+1\;$  have a unique decomposition as sum of squares $p=a^2+b^2$ with $0<a<b\;$, due to .  Is it correct to say that, primes of the form $p=4n+3$, never have a decomposition into $2$ squares, because sum of the quadratic residues $a^2+b^2$ with $a,b\in \Bbb{N}$ $$ a^2 \bmod 4 +b^2 \bmod 4 \le 2? $$  If so, are there alternate ways to prove it?


I have a website lets say xyz.com for which i have the sitemap index at xyz.com/sitemap.xml  Within the sitemap index file there are multiple sitemap links which are hosted on a subdomain of xyz.com lets say sitemap.xyz.com.  So the structure of sitemap index file  is as follows  <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc> https://sitemap.xyz.com/sitemap1.xml </loc> </sitemap>  <sitemap> <loc> https://sitemap.xyz.com/sitemap2.xml </loc> </sitemap> </sitemapindex>   Also i have submitted the sitemap index file in Google search console and google correctly shows the total count of pages from all sitemaps  Is this structure recommended or will there be any issue with this architecture   PS This question is not about cross domain sitemaps


Binomial coefficients that are powers of 2

I would like a proof that $$ {{n}\choose{k}} = \frac{n!}{k!(n-k)!} = 2^m $$ for $n,k,m\in \mathbb{N}$, only if $k=1$ or $k=n-1$.  It seems to me that this must be true since for other values of $k$ the numerator contains more factors that are not powers of 2 than the denominator. Furthermore, the numerator also contains larger factors than the denominator and thus can't all be cancelled. Nevertheless, I have been unable to form an elegant, watertight proof.


What are the game playing impacts of allowing players to take turns out of initiative order?

As per a previous question I asked RAW do not allow players to go later in initiative order in 5E as they could in earlier editions of DnD and other roleplaying systems. What are the potential things to consider if I choose to home brew changes to this behavior as part of my own rules? The rule I am considering is as follows. In a players turn they may either hold an action based on a trigger as per RAW or they can choose to delay there entire turn until after another stated players turn. A player may only delay once per round and cannot name a player Or NPC higher in initiative order to wait for. E G a 5 character combat 4 players and NPC roll initiative and are in order players 1 to 4(high to low) with the NPC sitting after player 3 Player 1 can choose to delay their turn and take it after players 2-4, or the NPC, they state they will go after player 3 On player 3 go they may choose to either go after player 4 or now, they cannot decide to go directly after player 1 Player 1 now takes their turn and must have a turn they may not choose to delay again. Next round the players return to original initiative order. In order to stick to stack guidelines I am looking for specific examples from players and GMs who have tried this rather then opinions.


A more polite/formal way of saying "contact us, we will get back to you"

I'm doing some language correction for my mom's company website. While my English is much better than hers, I'm not a native speaker, and I've never really focused on business English in my studies. I'm rewriting a short introduction to the company, and I came across a sentence that basically means "contact us, tell us what you want, we'll make you an offer asap". So far I have   "We will get back to you with our offer in the shortest time possible."   For some reason, the "We will get back to you" part strikes me as not very formal. It feels colloquial. It doesn't seem to fit with the style and and the level of formality required by the context.  I may be wrong about this, it's just a hunch. Again, I'm not a native speaker. So is there a way to say this more politely? Or is this form acceptable?  EDIT: the answer to the other question suggests I use "contact you". And since the preceding sentence reads "Don't hesitate to contact us", I'd end up with "contact us ... we'll contact you", which is just bad stylistics.  Another suggested answer is "reach out" but again, this doesn't have the right connotation (of back-and-forth) with regards to the preceding sentence. I realize now I should have included that sentence in the original question. So really what I need is to transform "Contact us, we'll get back to you" to "Contact us, we'll [...]", [...] being the more formal version.


/*A value has even parity if it has an even number of 1 bits.  *A value has an odd parity if it has an odd number of 1 bits.  *For example, 0110 has even parity, and 1110 has odd parity.  *Return 1 iff x has even parity.  */  int has_even_parity(unsigned int x) {  }   I'm not sure where to begin writing this function, I'm thinking that I loop through the value as an array and apply xor operations on them.  Would something like the following work? If not, what is the way to approach this?  int has_even_parity(unsigned int x) {     int i, result = x[0];     for (i = 0; i < 3; i++){         result = result ^ x[i + 1];     }     if (result == 0){         return 1;     }     else{         return 0;     } }


How do I prove the diagonal element of the hat matrix, $h_{ii}$ (leverage)

Consider the simple linear regression model $y_i = \beta_0 + \beta_1x_1 + \text{error}, i = 1,2,\ldots,n$  $h_{ij}$ denotes the $[i,j]$ element of the hat matrix.  How can I show that $h_{ii} = 1/n + (x_i - \bar{x})^2/S_{xx}$  $h_{ii}$ is the leverage but what kind of observation of $x_i$ would have the lowest/highest leverage?


I'm a beginner photographer. I'm 13. I'm not thinking photography for a job, but for a VERY nice hody. My father also loves photography, he is an expert but he don't have time in the last years to improve his hobby... (Is a doctor)  So he has stayed a little bit far from the thing and he can't answer me all my questions. :)   So, my question is:  1) Best camera for an expert-beginner guy. (Around 350-400  € ).   2) Best sources to learn all important stuff in cameras and in their settings  .....etc.  Thanks!!


How can I prove that $(a_1+a_2+\dotsb+a_n)(\frac{1}{a_1}+\frac{1}{a_2}+\dotsb+\frac{1}{a_n})\geq n^2$

I've been struggling for several hours, trying to prove this horrible inequality: $(a_1+a_2+\dotsb+a_n)\left(\frac{1}{a_1}+\frac{1}{a_2}+\dotsb+\frac{1}{a_n}\right)\geq n^2$.  Where each $a_i$'s are positive and $n$ is a natural number.  First I tried the usual "mathematical induction" method, but it made no avail, since I could not show it would be true if $n=k+1$.  Suppose the inequality holds true when $n=k$, i.e.,  $(a_1+a_2+\dotsb+a_k)\left(\frac{1}{a_1}+\frac{1}{a_2}+\dotsb+\frac{1}{a_k}\right)\geq n^2$.  This is true if and only if  $(a_1+a_2+\dotsb+a_k+a_{k+1})\left(\frac{1}{a_1}+\frac{1}{a_2}+\dotsb+\frac{1}{a_k}+\frac{1}{a_{k+1}}\right) -a_{k+1}\left(\frac{1}{a_1}+\dotsb+\frac{1}{a_k}\right)-\frac{1}{a_{k+1}}(a_1+\dotsb+a_k)-\frac{a_{k+1}}{a_{k+1}} \geq n^2$.  And I got stuck here.  The question looks like I have to use AM-GM inequality at some point, but I do not have a clue. Any small hints and clues will be appreciated.


How do I enable the "partner" repository?

I keep seeing places refer to the "partner" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line.


What does gold badge icon near user marked question as duplicate mean

Recently  was marked by duplicate. Screenshot:        I see an icon of gold badge near user marked question as duplicate (j08691). And how did he marked it as duplicate alone, not being a moderator?


What is the real radius of earth?    Google says 6378.1 km Wiki says 6371 km And there are references for 6378.7 km   I'm using maximum radius 6378.7 km in distance calculation in spherical law of cosines formula. What would be the impact of using maximum radius rather than average radius which is 6371 km. When does using one over the other make sense?


Which one of these examples is correct?  Types of metal Types of metals  Do they have different meanings?


To pdfjoin without rotation and addition of white space

I have 4 scanned documents which contains 3x3 pictures. I run in the folder of files  pdfjoin *   I get some pages automatically rotated such that much white space around. This is annoying.  All pages in 4 files are in the right rotation. Documents should only by joined together without changing their rotation or adding white space.  How can you do pure pdfjoin without rotation and addition of white space?  Differential solution used nowadays by OP  LaTeX because you can automate but some work still in process for 5% of pictures, see the thread  where you just loop through the images and adjust them to the document; you can also do there cropping, captions etc - - which works much better than any combination of terminal approaches with pdfjoin.


Column name or number of supplied values does not match table definition. What shoul I do?

create table employee_tbl ( EmpID int primary key, FirstName varchar(50), LastName varchar(50), Salary float, MobileNo varchar(15) )  create table employeeaudit_tbl ( EmpID int primary key, AuditData varchar(50) )  select * from employee_tbl select * from employeeaudit_tbl  create trigger tr_employee_tbl_forinsert on employee_tbl for insert as begin         declare @EmpID int         select @EmpID = EmpID from inserted          insert into employeeaudit_tbl         values('New employee with EmpID = ' + CAST(@EmpID as nvarchar(5)) +'is added at ' + CAST(GETDATE() as nvarchar(50))) end


bash - "for i in *.mp4" how to not print "*.mp4" if it doesn't find any files?

I'm writing a script to print resolutions of my media files using MediaInfo. I hard coded the marvel directory in just for testing and getting the cuts right.   Code:  #!/bin/bash  for i in /mnt/D/tv/"Marvel (MCU)"/{*.mp4,*.mkv,*.avi,*.m4v}; do      mediainfo "$i" > temp     H=`cat temp | grep "Height" | cut -d ":" -f 2 | cut -c 2- | cut -d "p" -f 1`     W=`cat temp | grep "Width" | cut -d ":" -f 2 | cut -c 2- | cut -d "p" -f 1`     printf "%-50s %s x %s \n" "$(basename "$i")" "$W" "$H"     rm temp done   Output:  1. Iron Man.mp4                                    1 920  x 800   10. Guardians of the Galaxy.mp4                    1 280  x 536   ...  8. Thor The Dark World.mkv                         1 920  x 800   9. Captain America The Winter Soldier.mkv          1 280  x 534   *.avi                                               x   *.m4v                                               x     There are only .mp4 and .mkv files in this folder, so it printed "*.avi" and "*.m4v." How can I suppress the printing of the extensions that it didn't find?


Can a  element's href attribute be relative?

Can I use:  <link rel="alternate" hreflang="en" href="?l=en" />   to link pages with different languages for SEO (recommended for )? Can that URL be relative as in the example above, or does it have to be full (start with http://example.com)?


I'm running CentOS in Linux text mode. When I run the command ls /usr/, the output is too hard to read (dark blue on black). How can I change the text coloring?


Does that expression mean "I'm totally sure" or "I'm almost sure"? I always thought the first option was correct, but once I saw in a series episode a character who said that, and his interlocutor expressed skepticism about it (something like "Are you sure or pretty sure?"). Does that depend on context, or does it always mean the same?


What references cover DDR3 layout considerations?

I'm looking for succinct yet correct guidelines for evaluating a DDR3 memory PCB layout.  I know that trace length matching, via style and back-drilling, and signal grouping all matter.  I know that each group of 8 data bits plus two associated control lines need to be length matched.  I'm seeking a good summary of all the issues, or people's experience, especially if it covers both multi-chip modules and single point to point (one CPU and one memory chip) layout.  How critical is all this stuff for small single board CPU's?  I have read  and


For complicated reasons (not C#'s fault I love that language very much) I have to learn Java. I hate learning new langages and i dont wanna have to learn what I already know from C#.   What are some resources that teach whats different without learning it all?


For a large cash deposit, do you have to answer where it came from?

To start off, I should say I am not trying to do anything illegal - quite the opposite.  I am in the US and I have a decently large amount of cash - above the $10,000 reporting threshhold (approximately $20,000). I would like to put this in the bank, and as tempting as it is to deposit it a little at a time, that's basically textbook structuring, and I don't want to commit a felony just to avoid a possible unpleasant interaction with the government.  That said, I'm not sure exactly what happens when you deposit >$10,000 cash into a bank. I know that a  is generated, and there's some possible that this will trigger an investigation (though this is a one-time thing, so I doubt they'll see any sort of pattern).  My question is: I have heard, over and over again, , even when you are completely innocent. I am worried that if questioned about the source of the money, I will accidentally waive my "right to remain silent" by trying to explain the source of the money only to find I've accidentally broken some obscure financial law. Similarly, I don't want to break some law I don't know about by refusing to talk about the source of the money if questioned by a bank employee or IRS person.  My question is this: Is there some requirement that I disclose the source of a large cash deposit to a bank teller, if asked? (I'm assuming here that if I'm actually approached by a real government agent, I will need a lawyer, or at least an accountant).  And as a bonus question - how likely is it that I'll actually be seriously grilled about this, as opposed to just having the CTR go in without me knowing it?


Ubuntu boots to black screen after Update to Ubuntu 18

I have just tried to upgrade my Ubuntu to Ubuntu 18, and at one moment I had to choose if it should install new version of a certain file or keep the old one, and I selected to see the difference. After which, I didn´t know how to close the window and return to upgrade so I pressed  Ctrl+X which terminated the process completely.   At first I could continue using Linux without any problems, but after I rebooted,  it started making problems. It shows a black screen where I can move with my mouse, but I can´t do anything else.  So I looked up online what I can do about it, and after trying everything with Booting in recovery mode, I have decided to install a new version of Ubuntu, while keeping the old data on the drive. But it seems that was not the solution either.    Any ideas ?


combine 2 fields in 1 to use it in the "group by" section of the reports

is it possible to combine two fields in one and use that field to group by in reports? for example, i would like to combine ee id and ee name fields in 1 and show as 1 field in the "group by" section on reports.


Phantom comment persisting across refreshes

On , the "show 1 more comment" link appears. Clicking it makes it disappear and shows no comments.  Normally I'd chalk this off to a comment being deleted around the same time, except it persists across page reloads (animated GIF):    Note: There's a fragment, #39113657, in that URL. I verified that wasn't related to the issue. It's in the GIF but I continued to see the issue after removing it.  So, yeah. Weird.


Find $\lim_{n \rightarrow \infty } 2^{n} \sqrt{2-\sqrt{2+\sqrt{2+...+\sqrt{2}}}}$

$\lim_{n \rightarrow  \infty } 2^{n} \sqrt{2-\sqrt{2+\sqrt{2+...+\sqrt{2}}}}$ where the 2 inside the roots appear n times. For example if n = 2 :  $2^{2} \sqrt{2-\sqrt{2}}$ I discovered this. Has this been already developed/made before?


Is there a way to append a list in a pandas dataframe?

I have a column in a pandas dataframe dfr in which there is a empty list. When I try to append it, the entire column is changed.   Below is the code attached.  N = 10 Nr = list(range(10)) dfr = pd.DataFrame(Nr,columns = ['ID']) dfr['Assignment'] = [[]] * dfr.shape[0] for i in range(N):     dfr.loc[i][1].append(i)     dfr   Now when I run this, the whole assignment column changes. Can anyone help me here. I just need to have 1 value of i in the list in each row.


Example sentences:   I think that studying another day will help me to get a higher mark in the test I think that studying another week will help me to improve my qualities   This is how I would say these sentence, but now I am unsure whether this form is correct or not, because I see many people use the other form ("help me get").


Role of multiple domain controllers in a domain

I wanted to know the use of having multiple domain controllers for one domain And some more questions related to it are:  If there are multiple domain controllers can computer information in one domain controller visible to others? If there are two computers having a saame domain name  shown as xyz in control panel is there a possibility of them to be in a different domain?  PS:I am new to AD and could not find straight forward answer.


Why didn't they make Harry change into another person in the Battle of the Seven Potters?

I never thought much about the Battle of the Seven Potters at the beginning of Harry Potter and the Deathly Hallows: Part 1 when watching it the first time. Now after rewatching, I'm wondering why The Order didn't use a double decoy instead...to make Harry change to another person while the rest changed to 7 Harrys. If they were so adamant to keep Harry alive, wouldn't this way be the safest since the Deatheaters would still have 1/7 of a chance to get to the real Harry?


Isomorphic free groups $F(A),F(B)$ induce bijective sets $A \cong B$

I need help trying to solve this problem. Let $A, B$ be sets, and $F(A), F(B)$ the corresponding free groups. Assume $F(A) \cong F(B)$. If $A$ is finite, prove that so is $B$, and $A \cong B$ as sets.


Why shouldn't a domain controller use itself as its primary DNS server?

According to  , it's considered a best practice to configure a domain controller to use another DC as its primary DNS server, and itself as the secondary one. However, according to  , the reverse is true, or should at least work anyway without problems.  What are the pros and cons of both solutions? What risks can each solution have? What is the potential issue with replication everyone keeps talking about without actually never explaining it?    And, last but not least, which solution should be used?


remainder of the division of $\overbrace{11\ldots1}^{124 \text{ times}}$ by 271 .

We have to find the remainder when $\overbrace{11\ldots1}^{124 \text{ times}}$ is divided by 271 .   In this I thought of using chinese remainder theorem or congruency/modular arithmetic .   But I could not get any good start .  I found a similar question .      But in that I could not understand how they got the idea that of 271x41


Virtualbox -> Can't add 2nd adapter to network for VM

I have a Debian Wheezy VM running in virtual box with the 1st adapter being NAT. However I want to also add a Host-only network but I can't add 2nd adapter to network for VM, it is grayed out.  Any ideas?


How to solve $\int_0^\infty \frac{\sin(2x)}{e^x} dx$?

I am stuck at this integral. Can anybody help or give me a hint what to do? I have tried to use integration by parts but keep getting stuck. $$\int_0^\infty \frac{\sin(2x)}{e^x}dx$$


SelectSingleNode with XPath not working - works in online test tool

I have the following XML (only part of it, can't share it all as its confidential):  <?xml version="1.0" encoding="utf-8"?> <Report xsi:schemaLocation="Aircraft_SpecSheetDetails" Name="Aircraft_SpecSheetDetails" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="Aircraft_SpecSheetDetails">     <Aircraft_SpecSheet_SUB_SpecificData>         <Report Name="Aircraft_SpecSheet_SUB_SpecificData">             <table8 Textbox29="No">                 <Detail_Collection>                     <Detail OperWeightType_Description="Maximum Landing Weight" AcrftOperWeight_Current_KG="43000" AcrftOperWeight_Current_LBS="94799" />                     <Detail OperWeightType_Description="Maximum Take Off Weight" AcrftOperWeight_Current_KG="50300" AcrftOperWeight_Current_LBS="110893" />                     <Detail OperWeightType_Description="Maximum Zero Fuel Weight" AcrftOperWeight_Current_KG="40800" AcrftOperWeight_Current_LBS="89949" />                     <Detail OperWeightType_Description="Basic Empty Weight" AcrftOperWeight_Current_KG="27841" AcrftOperWeight_Current_LBS="61379" />                 </Detail_Collection>             </table8>         </Report>     </Aircraft_SpecSheet_SUB_SpecificData> </Report>   I want to grab the Detail element with a specific value in the OperWeightType_Description attribute.  My XPath looks like this: //Detail[@OperWeightType_Description='Maximum Landing Weight']  It works using this tool:   But in C#, the code below doesn't work - the weightNode remains NULL.  private int? ImportWeightValue(XmlNode report, string weightDescription) {     XmlNode weightNode = report.SelectSingleNode($"//Detail[@OperWeightType_Description='{weightDescription}']");      if (weightNode != null)     {         return weightNode.ReadInt("AcrftOperWeight_Current_KG");     }      return null; }   The report XmlNode in the parameter is the DocumentElement -- the <Report> element of the XML.


If development on the Stack Exchange iOS/Android apps has ceased indefinitely, what should we do to their bug reports and feature requests?

It's been a while since the Stack Exchange team last had an iOS or Android developer, and the development job on the apps have not had any insights for years.  That, however, doesn't deny the fact that there are still many users to them. As a consequence, people are continuing to submit bug reports and sometimes feature requests about them.  If development on iOS/Android apps has ceased indefinitely, what should we do to their bug reports and feature requests?  Are we going to keep them with the hope that development on apps will resurrect one day, or just ignore them and telling users that development has frozen?


jQuery event delegate and appended DOM objects

I've created an element that can be cloned multiple times. Each clone has a remove button that removes it from the DOM. I'm listening on a parent for the click on the cloned remove button but I only get the event for the original button. No event is detected for any other remove buttons.   To clone I use:  var $original = $(originalElementSelector); $newCopy = $original.clone() $original.after($newCopy);   My listener looks like this:  $(parentElement).on('click', '[data-clone-remove]', onRemoveClicked)  The original element is a descendant of the parent element. If I change it to $(document).on(... then it works but it is listening for events from the whole document which is not what I want. The listeners are attached on document ready and the parent definitely exists at that point. The first remove button that exists on page load works as expected but no others do.  Any idea where I'm going wrong?


Inserting a (jpg) picture into a cell in Microsoft Excel 2007

Is it possible to insert a jpg image inside a cell, or do Excel cells only display alphanumeric characters (or references)?


Is the following argument correct?     If $(x_n)$ is bounded and diverges, then there exist two subsequences   of $(x_n)$ that converge to different limits.   Proof. Assume $(x_n)$ is bounded and diverges, then by Bolzano-Weierstrass theorem it follows that $(x_n)$ contains a subsequence $(x_{n_k})$ such that $(x_{n_k})\to\beta$ for some $\beta\in\mathbf{R}$. Now assume that every subsequence converges to the same limit, but then $(x_n)\to\beta$, a contradiction, thus we must have another subsequence $(x_{n_r})$ such that $(x_{n_r})\to\alpha$ and $\alpha\neq\beta$.   $\blacksquare$


How can I find the limit of the following sequence $\frac{1}{2} . \frac {3}{4} ....... \frac {2n - 1}{2n} $?

How can I find the limit of the following sequence:  $$\frac{1}{2} . \frac {3}{4} ....... \frac {2n - 1}{2n} $$  The problem for me is that they are multiplied and not added, also I can see that the numerator is the set of odd numbers and the denominator is the set of even numbers but then what?


I'm having trouble with induction. Prove $1 + 2^3 + 3^3 + ... + n^3 = \frac{((n^2)(n+1)^2)}4$

I started a new course and I'm expected to know this stuff, and I'm having trouble learning some on my own. I'm stuck with this problem: Prove  $1 + 2^3 + 3^3 + ... + n^3 = \frac{((n^2)(n+1)^2)}4$ using induction (the $1+2^3...$ is written in sum notation, although I don't know how to enter that here, sorry). I started substituting $n \rightarrow n+1$ but I don't know what to do next. Any help would be extremely appreciated.


Is there a way to install the Ubuntu Software center offline?

I am using 16.04 lts, and after it wasn't working I deleted it on accident and now I do not have the Software Center nor any of my apps, (Inkscape, Blender, misc games.) My steam is running and programs that I downloaded before work.


cardinality of a set of finite sequences of natural numbers

I recently got into set theory and i was wondering what is the cardinality of a set of all finite sequences of natural numbers? I know that it is N for natural numbers and 2^N is for real numbers but how can i prove it?


May I apply for a US visa from Australia or must it be from Pakistan?

I am a Pakistani national who is migrating to Australia in December 2016 on State sponsored business visa through the government of Australia. I intend to visit the USA in April 2017 and return to Australia.    Can I apply for a US visa from Australia, or do I need to apply from Pakistan?


Terminology: "L1 regularization" even if I'm using mean instead of sum?

In my loss function I'm using the mean of the log-cosh error between the predictions and targets, as well as an additional regularization term that scales as the mean of the absolute value of another quantity in my calculation.     My understanding is that L1 strictly refers to using the sum of absolute values, not their mean, so saying I'm doing "L1 regularization" could be misleading.   My question is, what terminology should I use to refer to such a regularization term?  "L1 divided by the number of elements" seems long & pedantic.   PS- The quantities in the error and the quantity in the regularization do not have the same number of elements, so I'd feel odd saying "I calculate the (regularized) loss and divide by the number of elements."  The reason I'm using the mean instead of the sum is so that I don't have to re-engineer the regularization coefficient every time I change the problem size.   EDIT: In response to comment, here's the question in mathematical form:   If, strictly speaking, an "L1 regularization" term is applied via something like  $${\rm Loss} = {\rm (other\ \,terms)} + \lambda  \sum_{i=1}^N |y_i| $$,   and instead I'm doing  $${\rm Loss} =  {\rm (other\ \,terms)} + \lambda {1\over N} \sum_{i=1}^N |y_i| $$,  what is the appropriate terminology to refer to this?  I supposed one might say "It's still L1, it's just that you're using a different value for your coefficient."


How does DES decryption work? Is it the same as encryption or the reverse?

If DES decryption is the same as encryption done in reverse order, then how can the reversed S-Box convert 4 bits into 6 bits?


The following experiment is performed: An observation is made of a Poisson random variable $N$ with parameter $ \lambda $. Then $N$ independent Bernoulli trials are performed, each with probability $p$ of success. Let $Z$ be the total number of successes observed in the $N$ trials. What is the distribution of $Z$?   My attempt:  So I managed to work out $E(Z) = \lambda p$ and $V(Z) = \lambda p(1-p) + p^{2} \lambda$. I'm not sure how to proceed to get the distribution of $Z$. Assistance would be appreciated.


Order of an Element Under a Homomorphism

I was reading an example about describing homomorphisms and I'm having a bit of trouble with this one.  Show there is no group homomorphism $f : \mathbb{Z}_{10} \to \mathbb{Z}_{25}$ such that $f(1) = 3$. The first step of the proof is  $|1| = 10$ in $\mathbb{Z}_{10}$, so $|f(1)| \in\{ 1, 2, 5, 10\}$.  Does this mean that $|f(1)|$ can be $1$, $2$, $5$ or $10$? I see that $|1| = 10$ since $1$ is a generator of $\mathbb{Z}_{10}$, and that $|f(1)|$ seems to be a factor of $10$. If $f(1)$ is the image of $1$ under $f$, how would I find the order of $f(1)$?  Thanks for your help.


How to extract data for a specific area from OSM?

I need to extract all streets available on a particular area of a City. I'm able to extract all streets name using this query:  select distinct P2.* from  planet_osm_polygon P1, planet_osm_line P2 where P2.name is not null AND P1.osm_id = -80277 and ST_Intersects(P2.way, P1.way)  order by P2.name   (in this casa -324211 is the city of Toronto). Now, I need to extract the streets name of only a particular subarea of the City. I can found the information about the subarea on planet_osm_point table but, how can I extract only the line or rows are in one particular subarea?  With this I can extract all subarea of Toronto:  select  P2.osm_id, P2.boundary, P2.name from  planet_osm_polygon P1, planet_osm_point P2 where P2.name is not null AND P1.osm_id = -324211 and ST_Intersects(P2.way, P1.way)  and P2.place = 'suburb' order by P2.name   is there a way to do that?  --- UPDATE ---  One solution is, starting from a point, create a square or round polygon and extracts all streets that intersect this new polygon, something like that:  select asText(way) from planet_osm_point where osm_id = 349354234   and, when I use the results here:  select  P2.* from  planet_osm_line P2 where P2.name is not null AND ST_Intersects(P2.way, (ST_Buffer('POINT(-8840304.91218709 5429889.22642508)', 50) ) )   I get this error message: Operation on mixed SRID geometries  On a blog I read how to update my SRID table geometry column but, is it the right way to fix that?  thanks for your help! Any suggestion (not only a solution) will be accepted and very helpful!  Andrea  PS: I imported data using osm2pgsql but, if I understand well (I'm newbie here) I can found more information using osmosis, correct?


I want to get " By [16, Proposition 4.2]" in my article,  but when I input "[\cite{16}, Proposition 4.2]" in my article, then pdflatex-bibtex-pdflatex-pdflatex, what I get is "[[16], Proposition 4.2]". If I input "\cite{16}, Proposition 4.2", what I get will be "[16], Proposition 4.2". What needed to point is I will use the reference [16] at least twice, so I can't name it 16, Proposition 4.2.


Linux equivalent to PowerShell's "one-to-many" remoting

Coming from Windows administration, I want to dig deeper in Linux (Debian). One of my burning questions I could not answer searching the web (didn't find it) is: how can I achieve the so called "one-to-many" remoting like in PowerShell for Windows?  To break it down to the basics I would say:  My view on Linux:    I can ssh into a server and type my command  I get the result. For an environment of 10 servers I would have to write a (perl/python?) script sending the command for each of them?   My experience from Windows:    I type my command and with "invoke-command" I can "send" this to a bunch of servers (maybe from a textfile) to execute simultaneously and get the result back (as an object for further work). I can even establish multiple sessions, the connection is held in the background, and selectively send commands to these sessions, and remote in and out like I need.   (I heard of chef, puppet, etc. Is this something like that?)    Update 2019: After trying a lot - I suggest Rex (see ) - easy setup (effectively it just needs ssh, nothing else) and use (if you know just a little bit perl it's even better, but it's optional) With  you can do adhoc command and advance it to a real configuration management (...meaning: it is a CM in first place, but nice for adhoc tasks, too) The website seams outdated, but currently (as of 01/2019) it's in active development and the IRC-Channel is also active.  With Windows' new  there are even more possibilities  you can try: rex -u user -p password -H 192.168.1.3 -e 'say run "hostname"'


Assigning value to array at certain index

Hi am trying to write a script that updates a row read from file , Every thing is working fine so far except the following mentioned  line at the end  here is my script :  #!/bin/bash       #INITIALIZE PATHS DB_PATH=${1}       DATA_PATH="$DB_PATH/data/" METADATA_PATH="$DB_PATH/metadata"     #LOAD THE META DB FILE AND READ DATABASE NAME IN DB_NAME  #READ ALSO COLUMNS IN AN ARRAY CALLED TABLE_NAMES                       METADATA_LOAD=$(<"$METADATA_PATH/DB") IFS=$'+' read -a NAMES <<< "$METADATA_LOAD"    #PROMPET FOR TABLE TO UPDATE echo "" echo "" echo "" echo "You Currently Working with Database ${NAMES[0]}"  echo "" echo "You Have The Following Tables to Choose From :" IFS=' ' for token in ${NAMES[@]:1} do echo "  $token" done echo "" echo "" echo "" echo "Please Write The Name Of The Table You Want To Update :" read CURRENT_TABLE   #Form META DATA TABLE FILE PATH TABLE_DATA_PATH="$DB_PATH/data/$CURRENT_TABLE" TABLE_METADATA_PATH="$DB_PATH/metadata/$CURRENT_TABLE"   #PROMPET WHICH COLUMN IS NEEDED TO CHECK FOR EQUALITY echo "" echo "" echo "" echo "The Table You Selected Have The Following Columns" i=0  TABLE_METADATA=$(<"$TABLE_METADATA_PATH") IFS='+' read -a CURRENT_TABLE_META <<< "$TABLE_METADATA" IFS=' ' for token in ${CURRENT_TABLE_META[@]:1} do i=$(($i+1)) echo $i $token done echo "Please Enter The Number Column to Check For Equality" read TEST_COLUMN_NUM echo "" echo "" echo "Please Enter The Column Value to Check For Equality" read TEST_COLUMN_VAL  echo "Please Enter The Column Number to Modify" read MODIFY_COLUMN_NUM  echo "Please Enter The New Column Value" read MODIFY_COLUMN_VAL  #Form DATA TABLE FILE PATH TABLE_DATA=$(<"$TABLE_DATA_PATH")    IFS=' ' read -a ROWS_ARRAY <<< "$TABLE_DATA"       for CURRENT_ROW_INDEX in ${!ROWS_ARRAY[@]} do    IFS=':'   read -a COLUMNS_ARRAY <<< "${ROWS_ARRAY[CURRENT_ROW_INDEX]}"     for CURRENT_COL_INDEX in ${!COLUMNS_ARRAY[@]}     do         if [[ ${COLUMNS_ARRAY[$CURRENT_COL_INDEX]} == $TEST_COLUMN_VAL  &&  $CURRENT_COL_INDEX -eq $(($TEST_COLUMN_NUM-1)) ]]        then             IFS=' '            COLUMNS_ARRAY[$MODIFY_COLUMN_NUM] = "ABC"           fi        done done   I did not finish the script yet but I have an error at the line :   COLUMNS_ARRAY[$MODIFY_COLUMN_NUM] = "ABC"   it gives me Error     ./Update: line 91: COLUMNS_ARRAY[3]: command not found   I want to assign to the array at the given index replacing the old value, please help me to know the reason of error and how to solve it


I wonder if I can do simple arithmetics with coordinates. Can I do substraction of coordinates like 2.570801 (lng) 46.89023 (lat) / 17.424316 (lng) 55.15377 (lat)?! Or will that get messy without a CRS?!


I am trying to prove the following: Suppose that $\{a_n\}$ converges to some $a>0$. Prove that there exists $N$ such that $a_n>0$ for all $n\geq N$.\ I'm a little stuck because by the definition of convergence, for any $\epsilon>0$, there exists an $N\in\mathbb{N}$ such that for all $n\geq N$, $|a_n-a|<\epsilon$. This definition already tells us that an $N$ exists, so I'm not sure how to go about the proof.


I have an <img> that I want to have alternate between 4 pictures using javascript. How can I go about doing this in a way that will still allow me to click on other parts of the page while the images are changing. Do I need a thread of some sort?


How to turn on the light in the dark room on candy box 2?

Ive read that it is "in the middle" of the room but I cannot for the life of me find the light switch.  Can someone be more descriptive on how to turn this light on?  Is it near the fire? Above or below? perhaps a screenshot??  Thanks!


Math Expressions on computer vs iPhone displayed differently

I use the Mathematics and Mathematica sites sometimes, to ask questions displayed in nice mathematical textbook script.  In the following screenshot from iPhone you can see that math expression is shown in code.  I think it is Mathjax.  In any case, when on my computer I see the nice type script without the code.  Is it possible to see nice typescript on my iPhone?  Or is this reserved for computers only?


Find the value of $\binom{2000}{2} + \binom{2000}{5} + \binom{2000}{8} + \cdots \binom{2000}{2000}$     I've seen many complex proofs. I am looking for an elementary proof. I know the fact that $\binom{2000}{0} + \binom{2000}{1} + \binom{2000}{2} + \cdots \binom{2000}{2000} = 2^{2000}$. This may help here.


Incomplete rendering of code blocks in Android app

I'm running the Stack Exchange app v1.0.95 on a Samsung Galaxy S7 Edge running Android v7.0.  Over the last few days, I'm noticing that the app doesn't fully render code blocks anymore. It renders only the first ~65 lines of code, then the rest of the block is blank, even though space has been set aside for the full code.  However, this only happens when viewing a question. Previewing a question that is being edited renders the full code.  Does anyone else see this?


March 2021 CERN discovery? What would be the properties of the new particle/force from decaying bottom (beauty) quarks?

This question is directed mostly at people who are expert in (beyond) standard model(s) of elementary particles, but input by other physicists or students is very much appreciated. A friend asked me about a  that I wasn't aware of it until now. Let me explain  first. Quarks can decay into leptons and the standard model predicts that bottom (beauty) quarks would decay into muons at the same rate as they do into electrons. But, the experimental results of CERN reveal that the quarks appeared to decay into muon less often than they decayed into electrons (around 85 muon decays for every 100 electron decays). This evidence signals that some before unseen particle or a new force are involved in the decay process! As they claimed, this means the need for a better theory beyond the standard theory will become clearer. If the experimental data are correct (according to , results are really strong since the uncertainty of the result is over three sigma, but not enough yet), what will be the properties of the new particle or (perhaps) the new force? This observation cannot be explained within the current state of physics?


How to make longtable width to textwidth?

I am trying to center a side longtable using \makebox[\textwidth]{ it worked for a normal table.  \documentclass[a4paper]{article} \usepackage{array} \usepackage{longtable} \usepackage{lipsum}  \begin{document} \lipsum[1]  \noindent\makebox[\textwidth]{     \begin{longtable}         {>{\centering\arraybackslash}m{0.55\textwidth} >{\centering\arraybackslash}m{0.55\textwidth}}         \lipsum[2] & \lipsum[3] \   \end{longtable} }  \lipsum[4] \end{document}   I use sharelatex and get the error Missing \endgroup inserted..  edit: I saw  but LTcapwidth didn't help


I just recently got into the nodes system, my knowledge on the subject is limited. I can't seem to find out how to tile textures using my current node setup, because it doesn't tile the them on its own. I know that I could be using a Vector Mapping node, but the way I'm modeling this requires that I texture each part of the building individually. If I use a Vector Mapping node, I'll have to manually adjust each individual part myself. The nodes I'm currently using  The problem that I'm having is that if I use the same nodes for a mesh with different dimensions they get stretched.  I want to avoid the need of using Vector Mapping nodes and just give it the ability to tile the texture so that it goes over a mesh of any size without stretching.


What is the quickest way to get a car from London to Iceland?

I am considering going to Iceland and was wondering if it is feasible to take there my car with me. The only way to get there by ferry that I could find is described , which suggests getting to Denmark first (which is in the opposite direction), and then getting a slow ferry from there. Is there a better way?


Determine all integers (bigger than 1) such that $\frac{2^n+1}{n^2}$ is an integer

Determine all integers $k>1$ such that $$ \dfrac{2^k+1}{k^2}\in\mathbb{N}$$   I have tried to solve for even numbers $(k=2n)$ and for odd numbers $(k=2n+1)$, but i couldn't find any answer to this. I think i have to begin by saying that $$2^k+1\equiv 0 \pmod{k^2} $$ but i don't know how to continue.


Change page number style and position in landscape mode

I have a document in which I use landscape environment but I also have many pages in vertical orientation. I want to do two things:  -change numbering style from 1 2 3 to S1 S2 S3 for all pages  -for pages in landscape mode, change the position of page number so that it is not perpendicular to the text but parallel as on a regular page


What's the difference between the terms Electronics and Electrical?

So can anybody tell about what's the difference between the terms Electronics and Electrical ? How do we differentiate them from one another?


While attempting to upgrade (sudo apt-get upgrade) Ubuntu 12.04, I had a pair of packages that would throw the following apt-get install errors for the dbus dependency:  dpkg: error processing dbus (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of accountsservice:  accountsservice depends on dbus; however:   Package dbus is not configured yet. dpkg: error processing accountsservice (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                                                                                Errors were encountered while processing:  dbus  accountsservice E: Sub-process /usr/bin/dpkg returned an error code (1)


How can I highlight text before a character with listing?

All is in the title. I would like to add a color to the text before a character with listing package.  For example, I would like to add a color to text between the beginning of a line and : or =, in a makefile.  I tried to use moredelimiters but I did not succeed.    \documentclass{article}  \usepackage{listings} \usepackage{xcolor} \definecolor{keycolor}{RGB}{172, 42, 42} \definecolor{mbleu}{RGB}{64,96,127} \definecolor{vimvert}{RGB}{46, 139, 87}  \lstdefinestyle{global}{   basicstyle=\ttfamily\scriptsize\color{black!90},%   stringstyle=\itshape\color{magenta},%   showstringspaces=false,%   keywordstyle={\bfseries\color{keycolor}},%   commentstyle=\color{blue}\slshape,%   framexleftmargin=1mm,%   backgroundcolor=\color{black!2},% }  \lstdefinestyle{makefile}{   style=global,%   morecomment=[l][commentstyle]{\#},%   emphstyle={\color{vimvert}},%   moredelim=[s][emphstyle]{\$(}{)}% }  \begin{document}  \begin{lstlisting}[style=makefile] .SUFFIXES: .inc .f .f90 .F  # all CPP processed fortran files have the extension .f90 SUFFIX=.f90  #----------------------------------------------------------------------- # this release should be fpp clean # we now recommend fpp as preprocessor # if this fails go back to cpp CPP_=fpp -f_com=no -free -w0 $*.F $*$(SUFFIX)  vasp: $(SOURCE) $(FFT3D) $(INC) main.o      rm -f vasp     $(FCL) -o vasp main.o  $(SOURCE)   $(FFT3D) $(LIB) $(LINK) makeparam: $(SOURCE) $(FFT3D) makeparam.o main.F $(INC)     $(FCL) -o makeparam  $(LINK) makeparam.o $(SOURCE) $(FFT3D) $(LIB) zgemmtest: zgemmtest.o base.o random.o $(INC)     $(FCL) -o zgemmtest $(LINK) zgemmtest.o random.o base.o $(LIB) dgemmtest: dgemmtest.o base.o random.o $(INC)     $(FCL) -o dgemmtest $(LINK) dgemmtest.o random.o base.o $(LIB)  ffttest: base.o smart_allocate.o mpi.o mgrid.o random.o ffttest.o $(FFT3D) $(INC)     $(FCL) -o ffttest $(LINK) ffttest.o mpi.o mgrid.o random.o smart_allocate.o base.o $(FFT3D) $(LIB) kpoints: $(SOURCE) $(FFT3D) makekpoints.o main.F $(INC)     $(FCL) -o kpoints $(LINK) makekpoints.o $(SOURCE) $(FFT3D) $(LIB)  clean:       -rm -f *.g *.f *.o *.L *.mod ; touch *.F \end{lstlisting}  \end{document}


how to write Junit test case with an exception for below code?

how do I test an IllegalArgumentException exception with junit? public static double divide(int dividend, int divisor) {         if (divisor == 0)             throw new IllegalArgumentException("Cannot divide by zero (0).");         return dividend / divisor;     }


I'm importing meshes to do some retopologisation on but blender just can't handle it without me having some sort of quadro card. Do I have to use mudbox or something similar to do work with such poly counts?


I've got many java processes running with different jar files. I want to kill on explicit jar file process.  the following command doesn't work successfully:  sudo kill $(ps -ef | grep example.jar | awk '{print $2}')  It finds the correct PID, but can't kill it.


QGIS for Mac: How to restore menu bar and tool bar in print composer

I managed to hide both the tool bar and the menu bar in my print composer (Mac version 1.8.0). To get the tool bar back I saw you need to click on the menu bar. What then when you also miss the menu bar?    Here what I see. I right-clicked everywhere. I can't get the the check-box has described .


How to set default homepage in safari 6?

Since downloading mountain lion and safari 6 I have lost the ability to set my home page.  in safari preferences there is the ability to tell it what you want for a home page but it does not take.  instead I always get this:  .  I want to know how to get rid of this and get my preference working instead.


what are keypoints for good wedding photography?

I am soon going to make my first wedding shot. I am scared as I dont know what is important and what to look for. What are the keypoints at wedding photography? What should I be aware of?  What gear do I need?


Polynomials vanishing on an infinite set

I'd like some help making this argument complete and rigorous (if it's correct - if not, help with that would be nice).  Here $k$ is a field.     Let $A_1,\ldots,A_n \subseteq k$ be infinite subsets. Then any polynomial in $k[x_1,\ldots,x_n]$ that vanishes on $A_1\times\cdots\times A_n\subseteq k^n$ must be $0$ (as a polynomial).   This is what I have ...  For the case $n=1$, a non-constant polynomial can only have as many roots as its degree, and in particular, it must have a finite number of roots. The only polynomial in one variable that has an infinite number of roots is $0$, so if a polynomial in $k[x_1,\ldots,x_n]$ vanishes on an infinite subset then it must be $0$.  For the inductive step, suppose the proposition is true for less than $n$ subsets and variables. Let $p\in k[x_1,\ldots,x_n]$ vanish on $A_1\times\cdots\times A_n$. Fix $x_n$ as some $a\in A_n$, and we have a polynomial in $n-1$ variables that vanishes on the set $A_1\times\cdots\times A_{n-1}$, so by the inductive hypothesis it must be identically $0$.  (Now it gets sketchy). Since this is true for any of the infinite values in $A_n$, and , $p$ must be $0$.


Is there a Linux command that does nothing, but never exits?

I'm looking for a Linux command that does literally nothing, doesn't output anything, but stays alive until ^C.  while true; do; done is not a good solution, because it is CPU intensive.


How can I solve this question on Quadratic Equations and Arithmetic Progression?

Let $P (x) = ax^2 + bx + c$ where $a,b,c$ are in arithmetic progression and are positive constants. Let $P (x) = 0$ for $t$ and $r$, where  $t$ and $r$ are integers. Find $t + r +tr$.  Answer is : $7$  I tried it as follows : $t + r = -b/a$ ; $tr = c/a$ ; $t + r + tr = -b/a + c/a = (c-b)/a = (b-a)/a= b/a - 1$    Therefore, $2t + 2r + rt = -1$  I could not figure out what to do next. Please help.


I have the following table where I would want to delete the column $2 \neq \Box$ but had no luck as it keeps giving error when I compile it.  \documentclass{article} \setlength{\textwidth}{16cm} \setlength{\oddsidemargin}{0pt} \setlength{\evensidemargin}{0pt} \setlength{\parskip}{3mm} \setlength{\parindent}{0mm} \usepackage{amsmath} \usepackage{amsthm} \DeclareMathOperator{\lcm}{lcm} \DeclareMathOperator{\ord}{ord} \usepackage{tabularx,ragged2e,booktabs,caption} \usepackage[figuresleft]{rotating} \usepackage{rotating} \newcolumntype{C}{>{\Centering\arraybackslash}X} \newcommand\swb{{\scriptstyle\Box}} % "small white box" \usepackage{amssymb,bm} \usepackage{upgreek} %use uptau greek letter  \begin{document} \begin{sidewaystable} \setlength\tabcolsep{6pt} % default value: 6pt \begin{tabularx}{\textwidth}{@{}*{14}{C}@{}}  \toprule  $\delta_\mu$ & $2 \neq \swb$ & \multicolumn{4}{c}{$5 \cdot 29 \neq \swb$} & \multicolumn{4}{c}{$13 \cdot 1789 \neq \swb$} & \multicolumn{4}{c}{$5333 \cdot 97324757 \neq \swb$}\\ \cmidrule(lr){3-6} \cmidrule(l){7-10} \cmidrule(l){11-14}     &   & $5=\swb$ & $29\neq\swb$ & $5\neq\swb$ & $29=\swb$ & $13=\swb$ & $1789\neq\swb$ & $13\neq\swb$ & $1789=\swb$ & $5333=\swb$ & $97324757\neq\swb$ & $5333\neq\swb$ & $97324757=\swb$ \\ \midrule Primes that satisfy the \footnote{Refer Appendix A for the PARI code to find the complete list of $G_1, G_2, G_3, G_4, G_5, G_6$} condition $\delta_\mu \neq \swb$  &  $q\equiv\pm3\pmod{8}$ &  $q\equiv\pm1\pmod{5}$ &  $q\equiv 2,3,8,10,\allowbreak11,12,14,\allowbreak15,17,18,\allowbreak 19,21,26, \allowbreak 27\pmod{29}$ &  $q\equiv\pm2\pmod{5}$ &  $q\equiv 1,4,5,6,\allowbreak7,9,13,\allowbreak 16,20,\allowbreak 22,23,\allowbreak 24,25,28\pmod{29}$ &  $q\equiv 1,3,4,9,\allowbreak10,12\pmod{13}$ &  $q \equiv$ $G_1$ \text{(mod} \allowbreak $1789$) &  $q\equiv2,5,6,\allowbreak 7,8,11\pmod{13}$ &  $q \equiv$ $G_2$ \text{(mod} \allowbreak $1789$) &  $q \equiv$ $G_3$ \text{(mod} \allowbreak $5333$) &  $q \equiv$ $G_4$ \text{(mod} \allowbreak $97324757$) &  $q \equiv$ $G_5$ \text{(mod} \allowbreak $5333$) &  $q \equiv$ $G_6$ \text{(mod} \allowbreak $97324757$) \\ \midrule  Period of $w_k$  & $24$ & $30$ & $102$ & $30$ & $102$ & $30$ & $2670$ & $30$ & $2670$ & $750$ & $97306362$ & $750$ & $97306362$ \\ \midrule  $\ord(\widetilde{P})$  &  & $5$ & $17$ & $5$ & $17$ & $10$ & $890$ & $10$ & $890$ & $125$ & $48653181$ & $125$ & $48653181$ \\ \midrule $k$ which satisfies $w_k$ \footnote{Refer Appendix B for the lists of sets $A_{2}$, $A_5$, $A_{29^*}$, $A_{5}^*$, $A_{29}$, $A_{13}$, $A_{1789}^*$, $A_{13}^*$, $A_{1789}$, $A_{5333}$, $A_{97324757}^*$, $A_{5333}^*$, $A_{97324757}$} &  $A_{2}$ : 10 elements & $A_5$ : 21 elements & $A_{29^*}$ : 37 elements & $A_{5}^*$ : 9 elements & $A_{29}$ : 65 elements & $A_{13}$ : 22 elements & $A_{1789}^*$ : 1304 elements & $A_{13}^*$ : 8 elements & $A_{1789}$ : 1362 elements & $A_{5333}$ : 421 elements & $A_{97324757}^*$ : 48584207 elements & $A_{5333}^*$ : 329 elements & $A_{97324757}$ : 48722155 elements\\ \bottomrule \end{tabularx}\captionof{table}{Summary of the congruence conditions for $\mu \in Y = \{-4, -3, -2, -1, 0, 3\}$} \label{summary}  \end{sidewaystable} \end{document}


OAuth2 token request using JSON fails - grant type not supported

I'm building a small application in Go that will access Salesforce using REST. I chose to use the full OAuth webflow.   Documentation for the   I'm able to do the full flow when I use urlencoded form data in the token request (number 3 in the flow chart in the documentation).   func httpPostXCoded(c appengine.Context, theUrl string, attrs map[string]string, OAS OAuthSecurity) (body []byte, err error) {     var myUrlEncoded = ""     for key, val := range(attrs) {         if len(myUrlEncoded) > 0 {             myUrlEncoded += "&"         }         myUrlEncoded += key + "=" + url.QueryEscape(val)     }     req, err := httpRequest("POST", theUrl, bytes.NewReader([]byte(myUrlEncoded)))     if err != nil {         return     }     req.Header.Add("Content-Type", "application/x-www-form-urlencoded")     res, err := httpClient(c).Do(req)      // cut code }   I would however like to use a JSON-formatted request - I changed the code to look like this  func httpPostXCoded(c appengine.Context, theUrl string, attrs map[string]string, OAS OAuthSecurity) (body []byte, err error) {     var rbody []byte     var req *http.Request     if rbody, err = json.Marshal(attrs); err != nil {         return     }     req, err = httpRequest("POST", theUrl, bytes.NewReader(rbody))     if err != nil {         return     }     req.Header.Add("Content-Type", "application/json")     res, err := httpClient(c).Do(req)      // cut code }   Salesforce won't send me a token but an error message like this  {"error_description":"grant type not supported","error":"unsupported_grant_type"}   As you can see in the code snippet above I am setting the Content-Type to json. In both cases I have a key in the map called "format" with the value "json". The working urlencoded request will, correctly, give me json formatted data back.   An example of the json data I'm sending is   {"client_id":"","client_secret":"","code":"","format":"json","grant_type":"authorization_code","redirect_uri":"http://localhost:8080/callback"}   Please note some field has intentionally been emptied.


Plotting latitude and longitude coordinates (from Bing Maps) in ArcGIS

I have an excel spreadsheet containing latitude and longitude values for a set of businesses.  I want to plot the businesses in ArcMap.  I was told the latitude and longitude values were obtained from Bing Maps, which I believe uses the coordinate reference system WGS84 (I found this info on various forums, so it may be wrong!).    However when I plot the data using WGS84 (using the 'display xy data' function), the points do not appear to plot correctly. The points look to be systematically displaced west and slightly north.   Indeed, when I manually geocoded the food businesses (using the postcodes of the food businesses) this systematic displacement was evident (see image).  Does anyone know what might be going wrong?


I'm trying to achieve something relatively simple using an RNN:  1) My input is any value between 0 and 1.  2) My output must be a simple Gaussian Curve, whose parameters depend on the input amplitude. (I am modeling this by using return_sequences=True in Keras and Time Distributed layers)  Currently, my model does not seem to be working well and I fear my approach to the problem is wrong. The reason I have not disclosed my model is because I am looking for completely fresh ideas. I would be very grateful if someone could point me to any references that would help me achieve this task.  I am required to use only a simple RNN model and not an LSTM.


When I just used pipe in bash, I didn't think more about this. But when I read some C code example using system call pipe() together with fork(), I wonder how to understand pipes, including both anonymous pipes and named pipes.  It is often heard that "everything in Linux/Unix is a file". I wonder if a pipe is actually a file so that one part it connects writes to the pipe file, and the other part reads from the pipe file? If yes, where is the pipe file  for an anonymous pipe created? In /tmp, /dev, or ...?   However, from examples of named pipes, I also learned that using pipes has space and time performance advantage over explicitly using temporary files, probably because there are no files involved in implementation of pipes. Also pipes seem not store data as files do. So I doubt a pipe is actually a file.


Thomae function is continuous at $x\notin\mathbb Q$, discontinuous at $x\in\mathbb Q$

Let f be the  aka the popcorn function. Use the epsilon-delta to prove that f is continuous for all irrational numbers and discontinuous for all rational numbers.


Formula or way for the number expressed as sum of two squares in two different ways?

Number which can be expressed as sum of two squares in two different ways -  e.g - a). $85 = {2^2} + {9^2} = {6^2} + {7^2}$ b). $125 = {2^2} + {11^2} = {5^2} + {10^2}$  I do not need more example. I just need way/formulas. So, Can anyone tell me the way/formulas through which I can find infinitely many such numbers?


How to get appropriate lib package name for a specific header file

It's common problem that we get some error like "abc.h no such file" when compile source. Only way to find the solution(as i know) is search in internet. What i need to do, compile the source, it will give me some errors and then i have to install the dev by searching in internet.  Is there any way that i can get lib package name by the header file name? Assume i need crypto.h file, libssl-dev contains this file.   But how could i know? Where should i search for it? Is there any reference site or program?


Why do we prefer "Lagrangian and Hamiltonian mechanics " over the newtonian mechanics?

Basically, I just want to know the advantages of Lagrangian and Hamiltonian mechanics over Newtonian mechanics, that made it much more preferable and widely used!


Finding the general integrals of functions like $\frac1{x^n+1}$, $\cos^nx$.

This question is just a soft question, about can we compute a general formula for everything? Or it has some restrictions?  Like $\int x^ndx=\frac{x^{n+1}}{n+1}+C$.  I am not able to deduce a formula for both.  I dont know where to start, so please guide me?


I have the following code:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{caption} \usepackage{graphicx}  \begin{document} \listoffigures  \begin{figure}   \caption{Example picture}   \centering     \includegraphics[width=0.5\textwidth]{example-image-b}  \end{figure}   \end{document}   Is it possible to get Figure prefix in list of figures like shown in this image:    Thank you


I'm very new to Blender and I'm trying to make a water vortex like this.(may be not the easyest first project for a newbie)     I watched several tutorial on liquids particle etc but I'm not sure what is the best aproach. What I tried  until now:   I made a particle system with a vortex force field. It looks good, but I'm not able to add the right material.      I played around with the fluid physics, the water looks good but if I add a vortex force field it does nothing.   I would be very grateful if somebody could point me in the right direction because I'm definitely stocked.


How to identify mac book pro product manufacturing year? And not the product release date. example is mac book pro series launched in 2012 but what is its product manufactured date?