Can I apply for Schengen visa from German consulate (Germany will be my entry port)though I will be staying for more nights in Poland?

I have booked a package tour for travelling in Europe from Bangalore. My entry port will be Germany where I will be staying for 2 nights and I will be staying in Poland for 3 nights. I want to know if I can apply for Visa from Germany( can apply for Visa in Bangalore) instead of Poland since we have to travel to Mumbai from Bangalore in order apply for Visa.


I want to submit certain web pages to Google so they can be indexed after they have been added or updated, but currently Google seems to be requiring a web master to login to do this.  I do not want to login to Google to submit my pages.  Is there any way to submit web pages to Google for indexing without logging in?


Please put '[tag]' behind titles on Android

On the main site, on can see [on hold] or [duplicate] or alike tags behind a title in the question overview, which determines the question is not open for answers.  However, when looking on the Android app, this does not occur. For example, this is a closed question:    ...this is the overview (with that question as topmost) in the Android app:    ...and this is the view on the (mobile) site:    We can clearly see the question has been closed as a duplicate, and while the site shows [duplicate] in the title, the app doesn't. As multiline question titles are clearly not a problem, can we have these few characters behind them as well?


For some reason, there appears to be a cut-off point on my stage beyond which nothing renders. I run into it when I'm rotating the camera around my objects (I keep the "camera fixed to view" option on so I don't get lost so easily).    It's as if there was a curtain or something there, impeding the view, but I can find no obvious reason for it.  Any ideas?


PhP json_encode not working with array from mysql

I did my first question  abour populating an array to json_encode and pass it to my javascript on client side, but what I figured out is that the problem seems to be related to json_encode and the values that come from my table. The table is filled with varchars, so it's a table with common categorys, like restaurant,shopping,etc.   I'm doing this loop to fill the array ( I had the while loop before but this one got me to understand the error)  $id=array(); for($i=0;$i<$nmr;$i++){   $row = mysql_fetch_assoc($sql);   $id[$i]=$row['Tipo']; } echo json_encode($id);   So, if I do it like this, my PhP page returns nothing. But if a print_r($id) it prints me the array with all the strings. If I echo $id[1]; it outputs one of the categorys, so I guess it's the json_encode no? I already set my DB to utf-8 because I noticed that json works that way, so what would be the prblem now?  Thanks  EDIT:  Forgot to mention that if I do this:    $id[0]="ola";   $id[1]="ccc";   $id[2]="sd";    json_encode($id);    output: ["ola","ccc","sd"]   it gives me the array on the output. So it only happens when I try to encode the array filled with values from my DB.  2nd Edit  I said this above but I guess it's better if I show it. The array is being populated because if I print_r($id) right after the json_encode($id) I get the populated array.  Array ( [0] => Restaurantes [1] => Cafés [2] => Shopping [3] => Eventos [4] => Hoteis [5] => Oficinas [6] => Combustiveis )


Second jQuery Function In Script Doesn't Execute

I have a script, with two jQuery click functions in. The first one works perfectly, but the second doesn't work at all. Even though they follow similar code pretty much, just with different selectors. Anyone got any ideas? Thanks in advance! <script type="text/javascript"> jQuery('li.inactive').click(function() {     var letter = jQuery(this).attr("id");     jQuery('li.active').addClass('inactive');     jQuery('li.active').removeClass('active');     jQuery(this).removeClass('inactive');     jQuery(this).addClass('active');     jQuery('div.profile-mini').hide();     jQuery("div#" + letter).show(); }); jQuery('li.active').click(function() {     jQuery(this).removeClass('active');     jQuery(this).addClass('inactive');     jQuery('div.profile-mini').show(); });


Unsetting element of array during recurssion in PHP outputs error

I have recursive method in PHP merging values of array.  If array has more than 2 elements it sum up first two values to first one and removes second value. It does again and again until is only 1 value. Whole sum of these operations is result of function. However I get nesting error for that method:     PHP Fatal error:  Uncaught Error: Maximum function nesting level of '256' reached, aborting   I think that problem lies in removing second element of array. It seems that it doesn't remove it properly.  function mergeList($A) {     $arraySize = count($A);     if ($arraySize < 2) {         return 0;     } else {         $A[0] = $A[0] + $A[1];         unset($A[1]);         return $A[0] + mergeList($A);     } }   Example of method:  $A = [1, 2, 3, 4];   Output should be 19, because [1,2,3,4] -> [3,3,4] -> [4,6] -> [10]  Sum of operations 3 -> 6 -> 10 = 19


I think it would be really nice to see if an answerer has tag-related badges on those tags that have been applied to the question. For example, if I asked a question with the tags [php], [symfony-2.0] and [doctrine], and the person who answers my questions has a golden [php] badge and a bronze [symfony-2.0] badge they would be shown in the same place as the user's picture, reputation and badge count.


Is $ f \colon (1, +\infty) \to \mathbb{R} , f(x) = \sin \frac{1}{x} $ uniformly continuous?

Is $$ f \colon (1, +\infty) \to \mathbb{R} ,  f(x) = \sin \frac{1}{x} $$ uniformly continuous? I think it could be but can't prove it. Would appreciate the help. Edit: I'm looking for an answer in which mean value theorem and boundedness of the derivative isn't used. So, I'm left with the definition and Lipschitz


I've been trying to resolve some edge cases with who can use which spell scrolls. As the DMG says in the Spell Scroll entry on page 200:  "If the spell is on your class's spell list, you can use an action to read the scroll and cast its spell without having to provide any of the spell's components. Otherwise, the scroll is unintelligible."  The issue here is the meaning of "class's spell list". It seems straightforward; surely a class's spell list is simply what is listed in the back of the PHB, from pages 207 to 211? But of course it isn't quite that simple, as clerics, druids and warlocks each get additional spells that aren't specified in these lists through domains, circles and patrons respectively. These class features seem to expand their personal spell lists directly. As an example, both Light domain clerics and Fiend patron warlocks can get the fireball spell, which isn't on the spell list of either class. On page 109 of the PHB the warlock's Fiend patron Expanded Spell List literally says:  "The following spells are added to the warlock spell list for you."  Which shows that Fiend patron warlocks have fireball in their spell lists, and so should be able to use spell scrolls of fireball. For clerics (and druids, which have almost identical phrasing), the Domain Spells class feature on PHB page 58 says:  "Each domain has a list of spells - its domain spells - that you gain at the cleric levels noted in the domain description. Once you gain a domain spell, you always have it prepared, and it doesn't count against the number of spells you can prepare each day. If you have a domain spell that doesn't appear on the cleric spell list, the spell is nonetheless a cleric spell for you."  So for a Light domain cleric, fireball is a cleric spell. These spells don't say that they're added to the cleric spell list, but they are cleric spells. So the question becomes: Are cleric spells another name for spells which are on the cleric spell list? To potentially shed some light on this, on PHB page 52 the cleric's Spellcasting feature says:  "You prepare the list of cleric spells that are available for you to cast, choosing from the cleric spell list. When you do so, choose a number of cleric spells equal to your Wisdom modifier + your cleric level (minimum of one spell). The spells must be of a level for which you have spell slots."  Which shows that clerics get cleric spells from the cleric spell list, so all spells on the cleric spell list must be cleric spells. But does that make all cleric spells part of your cleric spell list? Which leads us to: Can clerics use spell scrolls for spells they receive through their Divine domains? And would this mean a Light domain cleric could use a spell scroll of fireball?


Python how to iterate over a list 200 elements at a time until I reach all elements?

guys  I am currently writing to a time series but the limit for the list of points I can send is 200 elements at a time. Currently the length of my list is 1586 elements. how do I process the first 200, then the next 200, until I reach the full length of 1586 elements ? Lets say my dummy list has 1586 elements, what will be an appropriate  way of doing this? dummy_list = [99,245, 69,00,27.. ,.., .., .., n]


Error while installing netbeans 8.2 in Ubuntu 18.04 ￼

Can anyone explain how to install it?  This is the error I get while trying to install netbeans:


How do you work with JSON with unique keys?

I'm trying to run through JSON, but some of the keys are random numbers and have otherwise unique names. I understand that you can select keys and their values if the key is predictable, but I'm unsure how to work with keys that aren't predictable.  Here is an example of some JSON:  { "10193939": {     "3948493": {         "predictable_key1": "value1",         "predictable_key2": "value2",         "predictable_key3": [{             "inner_predictable_key1": "value1"         }]     },     "9898483": {         "predictable_key1": "value1",         "predictable_key2": "value2",         "predictable_key3": [{              "inner_predictable_key1": "value1"         }]     } }   Now, I had some ideas, such as using a for each loops and remapping the inner unique keys to a new variable to bypass the outmost key. Is there an easy way to do this?


Phishing warning with Chrome about answer.

I just posted and answer at S.O. and the answer link when I visit it with chrome I get a phishing warning.   Someone should check:


What is a rigorous, mathematical way to obtain the shortest confidence interval given a confidence level?

After reading the great answer for  by @Ben, I am a bit confused by the part " set the relative tail sizes as a control variable, and then you find the formula for the length of the confidence interval conditional on that variable". I understand this means you need to compute the length of the confidence interval as a function of the relative tail sizes and then minimize the function. However, what exactly is relative tail sizes? Is it the ratio between the areas of the two tails? Also, is there another way to find shortest CI for a given confidence level? For those who are interested, I know there are somewhat relevant results allowing us to compute sample size such that the length of a CI, say 95% CI, does not exceed a certain bound.


Why does my 'word' variable not update at the end of my Hangman program?

The following is only part of my code. Im having an issue in my hangman game where the "hanging" method doesn't seem to be working. For example if the word to guess was 'banana' and you guess 'a' the word would then appear as 'a_a_a' but instead what I'm getting is just '_____'. Using system.out.print I found out that at the end of the hanging method 'word' does actually equal '_a_a_a' but when it prints again in the main method it goes back to just underscores. Anyone sure why this is happening? public class Hangman {     private static int lives = 7;          public static void main(String[] args)     {         Scanner sc = new Scanner(System.in);                  System.out.println("Player 1, please enter a word.");                  String str = sc.nextLine();         String word = UnderscoreWord(str);         char[] ar = word.toCharArray();                  while(lives > 0)         {             System.out.println("Player 2, please guess a letter");             System.out.println(word);                          char guess = sc.next(".").charAt(0);                          hanging(guess, word, ar, str);         }                  sc.close();     }          public static void hanging(char guess, String word, char ar[], String str)     {         String newWord = "";                  for(int i = 0; i < word.length(); i++)         {             if(str.charAt(i) == guess)             {                 ar[i] = guess;                                      newWord += ar[i];             }             else if(word.charAt(i) != '_')             {                 newWord += str.charAt(i);             }             else             {                 newWord += "_";             }         }                  if (word.equals(newWord))         {             System.out.println("Wrong!");             lives--;             alive(lives);         }         else         {             word = newWord;         }                if (word.equals(str))          {             System.out.println("You win!");         }     }          public static String UnderscoreWord(String str)     {         String underscore = new String("");         int length = str.length();                  for(int i = 0; i < length; i++)         {             underscore += "_";         }                  return underscore;     } }


Should I leave the U.K. the day before my work visa expires?

I've a U.K. work visa that expires in several months.  Can I leave the country the exact day the visa is marked as "valid until"?  Or should I depart a day earlier?


Is it possible to customize the alerts or badges (either will be okay) for the Mail application so that it displays Delete upon a mouse-over instead of Options --> Delete? I receive a lot of mails daily which I need to delete etc and it will be very handy to have such a simple feature. I am using MacOS Big Sur on MacBook Air M1. .


Let $\nabla f(x) = 0$. Show that $f$ is a constant function.

Let $f:\mathbb{R^2} \to \mathbb{R}$ and $\partial_1f(x,y)=0, \partial_2f(x,y)=0$ for all $x,y \in \mathbb{R^2}.$ Show that $f$ is a constant function.  From the problem statement I got that $\nabla f(x) = (\partial_1f(x,y), \partial_2f(x,y)) = (0,0).$ And now $$f(y)-f(x) = \nabla f(x)\cdot(y-x)+||y-x||\varepsilon(y-x)$$ which will result in $$f(y)-f(x)=0\cdot(y-x)+||y-x||\varepsilon(y-x) =||y-x||\varepsilon(y-x).$$ What should I do with the term $||y-x||\varepsilon(y-x)$ that I'm left with? By the definition $\varepsilon(y-x)$ goes to $0$ when $y\to x$, but how do I show this?


Database design for eCommerce website with multiple products having huge specifications index

I am designing a web site for online shopping and I have a question related to that. As you know that shopping website may have different product with different statistic/specification. What is the best way to design a database? Below are the thoughts which comes to my mind   Creating different tables for different product type. Ex. Phone, Tv, Video Games, Watches, Clothes, Computer etc.      Concern:   but let's say a to show mobile specification [just like  example] I need to have around 40-50 columns to store a mobile specification. And let's say tomorrow one new feature comes to mobile then I probably have to add one more column which will hold the value for that specific model and for every other mobile that column will be NULL.   2: Having major product tables ex. Electronics, clothing and accessories, health etc.. and a separate specification table for each table. Ex. Electronics table will hold the master details for tablets, mobile, land line etc. and Electronics_Spec will contains the columns with related specification.     Concern:   There are many characteristic between products which does not match with others. Ex. land line phone will have a specification about wire length while as tablets won't.      General concerns:   There are certain products which has quite less specifications. Ex: bed, toys , footwear.  Is there any other better way to design a database to hold huge specifications related to multiple products?   My intention is to save database space to the best. I sincerely apologize for my bad English.


How to execute a remote command and pass in local file as input?

Is it possible to do this:  ssh user@socket command /path/to/file/on/local/machine   That is to say, I want to execute a remote command using a local file in one step, without first using scp to copy the file.


How to make applications start at boot? I have at least 2 which I'd like to start automatically but they don't (I need to manually start them to have services run in background):


Very easy but bit more thinking is making it complicated. What is the argument of $0$? The number $0$ can be written as $0+0i$ thus its argument is $\tan^{-1}(0/0)$ which is undefined; so, is the argument of $0$ undefined?


Just try to learn Invoke/BeginInvoke, I encountered in that problem.         // Update UI        public void UpdateForm(string value) {         txtLog.AppendText(value + "\r\n");        }          // Thread function        private void readSocket() {         string row = "";          while (socket.Connected) {                             row = socket.readLine();                          if (IsControlValid(this))                 BeginInvoke((MethodInvoker)delegate { UpdateForm(String.Copy(row)); });                              }     }   Using Invoke method my UI update with the correct text, instead if I use BegineInvoke I see wrong text, ie some text repeatedly a lot of time. I know that call  BeginInvoke((MethodInvoker)delegate { UpdateForm(row); });     maybe "row" can be behavior like a shared variable rather than  BeginInvoke((MethodInvoker)delegate { UpdateForm(String.Copy(row)); });                       I think that each BeginInvoke call create a "new" delegate, so using String.Copy must create another instance of string, but I see always wrong value (duplicates, ecc).  Where I'm wrong?


Show for all primes $p>11$ there are two consecutive quadratic residues

I am supposed to use this fact to help prove it.  If $p$ is an odd prime, then at least one of the numbers $2,5,10$ is a quadratic residue mod $p$  I can prove this by saying let $(\frac{10}{p}) = 1$ Then $(\frac{2}{p}) = -1$  $(\frac{5}{p}) = -1$  let $(\frac{10}{p}) = -1$ Then $(\frac{2}{p})$ or $(\frac{5}{p}) = 1$  So to start off we know that p is a odd prime $>11$ $2,5$ or $10$ is a quadratic residue of p  I am assuming the best way to start this is to say  Let $(\frac{2}{p}) = 1$ where $p>11$ Then try to show that  $(\frac{3}{p}) = 1$ where $p>11$ is a quadratic residue  Then do the same for the other two.  But i am unsure about how to go about this


Asynchronously redirect std output and err output to file

I am trying to redirect the output of certain program with threads to certain file.  I have tried running command > file 2&>1 but if command has not stopped running, file will still be empty.  Is there any way to asynchronously dump the output to file?  Example python snippet:  import _thread  def run():     raise ValueError('plah')  _thread.start_new_thread(run, ()) while True:     pass   Running python program.py 2> log.txt does not yield an output in log.txt until the program is manually stopped.


Using "of" after a coordinating conjuction

How should I say this?        The color of the chair and the table ...   The color of the chair and of the table ...      Why should that option be used (apart from being the correct one)?


How show that $|a_{n}-1|\le c\lambda ^n,\lambda\in (0,1)$

I'm looking for proof that  Let $a_{0},a_{1}>0$,and such $$a_{n+2}=\dfrac{2}{a_{n+1}+a_{n}}$$  show that: there exist $\lambda,c>0$ such $$|a_{n}-1|\le c\lambda ^n,\lambda\in (0,1)$$  I tried using induction, but i'm not sure how it would work ,Thanks in advance.


Setting up a virtual subdirectory to display identical content as root directory

We have a standard Wordpress installation being used as a CMS. We're using standard pages with basic permalinks (e.g., /page/ or /parent/page/).  We'd like to have that exact same content mapped to a virtual subdirectory as well (e.g., /vip/page/ or /vip/parent/page/).  Now, obviously, I could duplicate the pages in Wordpress, but that's too much of a pain to manage. The content in both versions would be identical, but we'd do a few minor things in the Wordpress template to display things slightly differently based on the detected URL.  I'm fairly certain there should be a way to do this using .htaccess, but I can't find the right combination of Google keywords to find my answer. Can someone point me in the right direction?  EDIT: It's also worth noting that I'm aware of the potential penalties for SEO, but I plan on supplying canonical meta tags for Google's purposes. The separate URL system is predominantly for marketing and tracking purposes only.


Is it implied that Porpetina and Queenie Goldstein are Jewish?

J.K Rowling has said on Twitter that Porpetina and Queenie Goldstein are ,  J.K. Rowling @jk_rowling Well, I think it's widely known that that characters of (Porpen)tina and Queenie are sisters, but not that their surname is Goldstein. Mark @marklynch2012 any rlation to Anthony Goldstein J.K. Rowling @jk_rowling Yes (but distant).  whom she has previously .  ben @benjaminroffman @jk_rowling my wife said there are no Jews at Hogwarts. I’m a Jew so I assume she said it to be the only magical 1 in the family. Thoughts? J.K. Rowling @jk_rowling Anthony Goldstein, Ravenclaw, Jewish wizard.  Was she trying to say that they are Jewish as well?


Current status "minor review" what is next?

I submitted a paper in a journal under Taylor and Francis and after the first review the status of the paper is "minor review". Both of the reviewers said that my manuscript can be accepted with some minor revisions. I am currently editing the paper according to their suggestions. My question is after I submit again will it go to the same reviewers or new reviewers will be assigned? How long will it take from a minor review to acceptance? I have no problem if it goes through multiple minor reviews but my main concern is to get acceptance notice since it is mandatory for my thesis defense, even "acceptance with minor review" status will work.


In my grammar book (English Grammar, HarperCollins Publishers), I read that none is occasionally treated as plural, but it is usually regarded as singular. Can you give me an example of sentence where none is used as plural pronoun?


Slow boot time on fresh minimal install of 18.04

I'm running Ubuntu 18.04 minimal fresh install with dual boot Windows 10 on a Samsung 850 EVO SSD.  $ systemd-analyze time               Startup finished in 17.129s (firmware) + 3.573s (loader) + 3.058s (kernel) + 22.988s (userspace) = 46.750s graphical.target reached after 22.981s in userspace  $ systemd-analyze blame | head -n 10          20.674s plymouth-quit-wait.service           5.077s bolt.service           3.252s NetworkManager-wait-online.service           1.483s docker.service            863ms dev-sda4.device            820ms snap-gnome\x2dlogs-31.mount            787ms fwupd.service            742ms systemd-resolved.service            690ms snap-gnome\x2dsystem\x2dmonitor-39.mount            546ms dev-loop2.device   Any ideas why boot time takes so long? Even my Windows 10 partition boots up faster.


Is there a way to know which GTK version is installed using the command line?   I am working on Ubuntu 11.10.


Deleting a suspicious malware (imklaunchagent) in Mac

I have a MacBook Pro (macOS Mojave) laptop and have recently noticed a suspicious process in Activity Monitor with this name : imklaunchagent    I checked this folder: /System/Library/Frameworks/InputMethodKit.framework/Versions/A/Resources/imklaunchagent and it seems imklaunchagent and its related files cannot be removed. I tried to remove it via Terminal and this message showed up: "Operation not permitted". However, in "Security and Privacy" of "System Preferences", I chose Terminal to have full disk access, still can't delete the file and the same message appears.  I installed the free version of Combo Cleaner and it detected other viruses, none of which are imklaunchagent. Is imklaunchagent a malware? How can it be deleted?


Microscopic interpretation of pressure in liquids

Pressure can be explained at microscopic level for a gas with kinetic theory of gases. From that the pressure $p$ is linked to the velocity of molecules (and it is caused by the high amount of collisions in the gas).  $$p=\frac{m N_a}{V} \frac{\bar{v}^2}{3}$$  Where $m$ is the mass of a molecule, $N_a$ Avogadro's number, $V$ volume, $\bar{v}^2$ the quadratic average velocity of molecules.   Nevertheless I did not find a similar microscopic interpretation in the case of liquids. In that case molecules are not as free as in a gas, so it looks like pressure is not linked to the higher or lower velocity of molecules. So what is responsible for liquid pressure, at a microscopic level?  Is there a quite simple microscopic description for pressure in liquids, as there is in the kinetic theory of gases?


Is there a way to see a prepared query as it will be executed on the database?

Possible Duplicate:          I'm using the mysqli extension in PHP and I'm wondering, is there possibly any way to see a prepared query as it will be executed on the server, e.g. The query is something like this  select * from table1 where id = ? and name = ?   but I want to see the query after the values are filled in, like this:  select * from table1 where id = 20 and name = "John"


Question on Gravity and the old "all objects free fall at the same rate regardless of their mass"  I "drop" three objects,  one at a time, towards the earth   First object has less mass than the earth  Second object has  mass equal to the earth   Third object has greater mass than the earth    in all cases as Gravity "pulls" the two together. The greater mass object wins this simple "tug of war" due to inertia and is moved relatively less. The lighter mass object moves relatively more. You could plot a curve (heavier moves less) with the object of equal mass at center.  So what am I missing in the semantics of "all objects free fall at the same rate regardless of their mass" is popularly taught and I think the average person understands they are being told?


How is the capacity of a harddisk faked?

I was reading about . How would this be done? The post talks about a 'looped mode' and comments suggest having a different controller to lie to the OS.  I went and bought one of these devices, tried it and it worked as advertized (overwriting data when it was full), although when I formatted it, it started showing its 'true' capacity.  How is this achieved?


Moderncv and left Margin - How to shrink the column with the dates?

I have tried to reduce the left margins with the package geometry:  \usepackage[scale=0.90, top=0.5cm, bottom=1cm]{geometry} but cannot shrink the column where we have the dates in the experience section. I'm new with LaTeX and cannot find a proper solution?  \documentclass[11pt,a4paper,sans]{moderncv}    \moderncvstyle{classic}  \moderncvcolor{orange}     \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{color} \usepackage{lmodern} \usepackage{enumitem} \usepackage{eurosym} %\usepackage[super]{nth} \usepackage[scale=0.90, top=0.5cm, bottom=1cm]{geometry} %If you want to change the page margins, you simply need to change this line  \setlength{\hintscolumnwidth}{2.5cm}   \name{David}{Doe} %\title{Audit, Risk and Compliance\newline{}PMP®, ITIL, CRISC}  \title{PMP®, ITIL, CRISC}  %\address{}{}{} \phone[mobile]{+XXXXXXXX}  \email{emil.com}   \social[linkedin][WWWWW]{ZZZZ} \photo[80pt][0pt]{David_linkedn}    \renewcommand{\cventry}[7][.25em]{%   \cvitem[#1]{#2}{%     {\bfseries#3}%     \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%     \ifthenelse{\equal{#5}{}}{}{, #5}%     \ifthenelse{\equal{#6}{}}{}{, #6}%     .\strut%     \newline{\small\strut #7 \par}}}  \renewcommand{\cvitem}[3][.25em]{%   \begin{mycvlist}     \item[#2] #3     \end{mycvlist}     \addvspace{#1}}  \newlist{mycvlist}{description}{1} \setlist[mycvlist]{labelwidth=\hintscolumnwidth,labelsep=\separatorcolumnwidth,leftmargin=!,align=right,font=\normalfont}  \usepackage{lipsum} %Just for dummy text  %\title{Resum\'e title}    %---------------------------------------------------------------------------------- %            content %----------------------------------------------------------------------------------  \begin{document}  \makecvtitle \section{Professional Statement }  ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd   \begin{itemize}     \item  \begin{center} item1 \end{center}     \item  \begin{center} item2 \end{center}     \item  \begin{center} item2 \end{center} \end{itemize} %I'm seeking new challenge and opportunity to leverage that experience in a Global Pharmaceutical Company.     \section{Experience}  \cventry{Since \linebreak March 2019}{ DDDDDDDDDDDDDDDDDD}{\href{http://www.DDD.com//}{DDDDDA}}{SSSSS}{}{LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL  Main achievements:% \begin{itemize}%     \item \textit {\textbf{GGGGGGGGGGGGGGGGGGGGGGGGGGGGggg }} \begin{itemize}%   \item \textbf{Key Highlight}: GGGGGGGGGGGGGGGGGGGGGGGGGGgggg   \item \textbf{Purpose}: GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG   \item \textbf{Results}:     \begin{itemize}     \item KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK     \item GGGGGGGGGGGGGGGGGGGGGGGGGGGgg     \item GGGGGGGGGGGGGGGGGGGGGGGGgggg     \end{itemize}   \end{itemize}


Transfer from JFK Terminal 2 to Terminal 4

I have family who does not speak English.  They are changing planes in JFK Airport and will most likely be transferring from Terminal 2 (Delta) to Terminal 4 (China Southern Airlines).  At first I thought that directing them to use the Airtrain would be best.  However, in doing more reading my understanding is that the Airtrain would mean they would need to go through security again.  I found this on Delta's site:   If they use the JITNEY Shuttle to change from Terminal 2 to Terminal 4, does that mean they would not need to re-clear Security?  Edit: They are flying TO China. They are going from Tampa -> NY JFK -> China.


Is it possible to pass some linux capabilities using sudo. Like this: sudo -u web-server --capabilities CAP_NET_BIND_SERVICE -H ./server  Without setting the capabilities on the file. Using setcap


How can I create an image of a partition (ext4) and later mount it to browse/restore files?

I'd like to backup my current Debian 9 server OS partition so I can install a clean version of Debian 10.  However, after installing Debian 10, I'd like to mount my old OS image so I can browse and restore files as needed.  I thought I would use CloneZilla but apparently you can't directly mount the images that it creates?


What would happen if the Grid computer was turned off? Would the programs and users die?

I'm wondering what would happen if Flynn's computer (or any computer running the Grid) was turned off?  Would the programs and users simply die?


Why did Hermione use Levicorpus of all spells?

, it was asked, why did Hermione whisper Levicorpus, instead of using it non-verbally. This is in the scene in The Deathly Hallows, where the trio are in the Lestrange Vault, trying to steal Helga Hufflepuff's cup. Harry couldn't reach the cup, so Hermione used the Levicorpus spell.  However, as shown when Harry first used that spell on Ron, and when James used it on Snape, that this particular spell lifts up the target by his ankle. Which would obviously cause the target to swing completely upside down if he is standing up. That's why James used it to embarrass Snape. Of course, then you'd have the difficulties of being upside down.   In the Lestrange Vault, Griphook warned the trio that Geminio and Flagrante curses had been added to everything, so the treasures would burn and multiply if touched. Ron demonstrated this by touching a cup. So subsequently, everyone avoided touching anything as far as possible. Now, Hermione knew that the effect of Levicorpus is to hoist the target up by his ankle, and at the same time, swinging him upside down. As shown in the book, Harry actually did hit something after being yanked up.  So out of all the spells, why did she use Levicorpus, and risk Harry hitting more things? She certainly could have used another spell, like Wingardium Leviosa. After all, she had mastered the spell before anyone else in their class. And it would definitely have given her more control of where Harry would move, so he wouldn't have hit anything. Why use Levicorpus and not Wingardium Leviosa?


A confusion about the parameter "-print" in the command "find"

I am new bee for Linux. I have a question about the command find. When I search a file under a directory, I would like to skip a sub-directory named publish  find ./ -path ./publish -prune -o -iname rdesvc -type f -print   It works fine:  ./release/apps/rdeSvc/server/linux/rdeSvc   But, if I remove the parameter -print:  find ./ -path ./publish -prune -o -iname rdesvc -type f   It will output the sub-directory name with the search result:  ./publish ./release/apps/rdeSvc/server/linux/rdeSvc   I feel confusion. Why the sub-directory name publish is outputted if I removed the parameter -print?  My distribution is CentOS 6.6 64 bit.


Suppose you’re on a game show, and you’re given the choice of five doors: Behind one door is a car; behind the others, goats. You pick a door, and then the host, opens two of the doors, which guaranteed have goats. He then says to you, “Do you want to switch to other door?” What is the probability of winning if you decide to switch


Correct course of action when an answer is nearly word-for-word copied without attribution?

I was searching "C++ returning array from function" on Google when I noticed that the top two results - Stack Overflow and Tutorialspoint - had exactly the same short description beneath the search result.  I compared the  to the  and see that they're almost the same, but not exact copies.  I read  about what to do if plagiarism is suspected, so I thought to check the  to see how old the Tutorialspoint page is, and found it's been . The Stack Overflow answer is from October 2016.  It seems to me that this answer is on the borderline of Stack Overflow etiquette so, more for my own enlightenment, I'm curious as to what Stack Overflow pros think of this.  In favor of the answerer:   An attempt is made to sculpt the Tutorialspoint example to the question asked Links to other pages seems to be frowned upon in answers, so perhaps the answerer thought this was the best way to share what he found to be a good resource This is the only answer the answerer has given so there's no pattern of these type of answers   Against the answerer:   The top part of the SO answer is word-for-word copied from the Tutorialspoint page There's no link to the Tutorialspoint page The attempt to sculpt the Tutorialspoint example mostly involves renaming variables The answer itself doesn't add anything above and beyond the other 20-someodd answers to the question   Again, I'm mostly curious about how a seeming edge case like this is handled.


How many 6-digit numbers contain exactly 4 different digits?

my solution is---->  NUMBER can be 777210 this i denote by aaabcd                 ------   this can be done in ---> 10*1*1*9*8*7*[6!/3!]                   {1 for a thrice}  NUMBER can be 772210 this i denote by aabbcd ------  this can be done in ------------> 10*1*9*1*8*7*[6!/(2!*2!)]            {1 for a and b }  and then multiply the answer by 0.9 to remove 0 case at unit place  but correct solution is  C(10, 4)* [C(4, 2)* 6!/(2!)2 + C(4, 1)* 6!/3!]  294840


Viewport pivot point changed from scene objects to around viewport camera origin

I am starting to learn using blender, and at some point I managed to do something to the 3D view camera.  Usually the camera orbits around an object, but now the rotation seems to happen (atleast very close to) around the "camera's origin". Neither the input setting in "User Preferences", the pivot point selection nor Ctrl-Alt-Shift-C (as suggested on some forum) do anything to the issue.


Ubuntu 12.04 lts crashed. how to access the files in home folder?

I am new with Ubuntu. I had installed 12.04 LTS 64 bit version. I had installed all the important updates it showed. Later on I selected some files manually in the recommended updates section. it was about 13-14mb. by default it showed some 140mb files. So I downloaded and installed it and then restarted my laptop and then the grub came. I selected Ubuntu and then it shows a blank screen. I went to the terminal using F1 key and tried commands like startx, then root startxand then sudo startx but nothing works. I don't know what all I installed exactly. another difference I observed is previously it used to show Ubuntu with Linux 3.0.0-23 now its showing Ubuntu 3.0.0-40 at the grub. Also i have my ubuntu password protected. What should I do? I have got files inside Ubuntu and do not have its backup. how to recover them?


Is a black hole singularity a single point?

General relativity is expressed in terms of differential geometry, which allows you to do interesting things with the coordinates: multiple coordinates may refer to a single point, eg. the  has whole lines at the top and the bottom that correspond to the North and South poles, respectively; or a single coordinate may refer to multiple points, for example by using inverse geometry the origin refers to all the points infinitely far away.  So, is the singularity just a single point in the curved spacetime, or can it be a more extended object, described by a single coordinate?


I have a strange problem when positioning table in a big file. I use the option h! to put the table exactly where the code is written.   \begin{table}[h!] ... \end{table}   The problem is, in the big file, I have 4 table, at different places 'supposodely' separated by pages (with a lot of text in between). At the end, all the tables are regrouped at the end of the chapter, sometimes 5 pages after their supposed placement!  This bothers me very much, and I don't understand why. With figure the option h! comes in handy, the figure is always placed as close as possible from the point where I put it... Does it not work in the same way with tables?  Thank you very much. Claude.


I have a small landscaping business and I advertised through Facebook.   Some guy reached out to me via text message, asking me to do a job for him.  He asked for a quote  for installing sod in his front yard and I replied with $3,175. He agreed  to  that price.  He then asked me to assist him with with the ex-owner of the house. I asked him, what needs to be done? He said that he owes the ex-owner $10,000  and that the ex-owner  has no way of receiving it.  For he only has a credit card to pay with he has to do it as a transaction he will will send me $12,100. Once the money clears I have to Zelle or PayPal the ex-owner   the $10,000 and keep $2,000 as down payment for the job and $100 for a tip.    I thought that this was some kind  of joke so I agreed.  He asked if I could manually process his card.  I said no but I can invoice you.  So I did and to my surprise, he actually paid. I think that I’m being scammed.  What should  I do?


Extracting multiple labels from a string with java regex

I have the following input   [a:xxxx] [b:yyy] [z:ddd]   I would like to extract using regex the values: a,b,c.   I tried using   Pattern tm = Pattern.compile("\\[(.*?):.*\\]",Pattern.CASE_INSENSITIVE |  Pattern.UNICODE_CASE);    Matcher m = tm.matcher(inputString); ArrayList<String> res= new ArrayList<String>(); while (m.find())       res.add(m.group(1));   However what I get is only a.  Any suggestions?   Thanks.


How to make a Sprite have multiple armors/weapons/Accesories

I am currently developing a game that involves a multitude of weapons, armors, etc. I am using UE4 currently as an engine because I found that easy to use. Currently in development I have found myself unable to figure out how to make it so my character has the ability to equip different items. Does anyone know of any way that I can get this to work?


set open terminal's title only by typing into same open terminal (no .bashrc edit)

without closing and reopening terminal, without opening a new tab, without editing bashrc and without installing software nor already having added extra software that would not ship with Ubuntu 19.04.... How do you change an open  terminals tab using only commands typed into said open terminal tab.


iOS 9.3 on iPhone 5 (Night Shift option is unavailable)

I recently updated my iPhone 5 to iOS 9.3 and there is a new functionality introduced as "Night shift" option.  However it is not available on my iPhone 5 Any thoughts as to why?


Why am I not appearing on the Ranking page?

This question has probably been asked before, but I just can't find my name. , but the reason that he didn't find his name is because he had less than 200 reputation on Stack Overflow, at the time.  Now, I currently have more than 200 reputation on Stack Overflow; but for some reason, I can't find my name in the .


Does all the subsequent itinerary on a round-the-world ticket get invalidated if you are denied an entry?

I am considering using a RTW ticket but I wonder what happens if I get denied entry for a country in the midst of the whole itinerary.  Usually these programs set a rule such that once the itinerary is decided or once the trip started, you cannot change the route, yet you can change the date for free.  In this case, if you are denied an entry for a country, will you get deported to the departure country or to the next (or another) country by changing the date of the next flight at the border control? And is the subsequent itinerary still valid or does the one denial make all of the subsequent flights invalid?  If the specific program is required, it is the Star Alliance RTW redeemed on the ANA mileage program. But I would like to get a general answer, if possible.


Proper escape sequence for a non-standard file name

I'm trying to remove a file I made by mistake using --exclude with tar. I ended up making a tar file named --exclude=*.tar Now I want to delete it but I'd like to rename it first. How do I escape it correctly?


Standard deviation of binned observations

I have a dataset of sample observations, stored as counts within range bins. e.g.:  min/max  count 40/44    1 45/49    2 50/54    3 55/59    4 70/74    1   Now, finding an estimate of the average from this is pretty straight forward.  Simply use the mean (or median) of each range bin as the observation and the count as a weight and find the weighted average:  $$\bar{x}^* = \frac{1}{\sum_{i=1}^N w_i} \sum_{i=1}^N w_ix_i$$  For my test case, this gives me 53.82.  My question now is, what's the correct method of finding the standard deviation (or variance)?  Through my searching, I've found several answers, but I'm unsure which, if any, is actually appropriate for my dataset.  I was able to find the following formula both  and .  $$s^{2*} = \frac{ \sum_{i=1}^N w_i (x_i - \bar{x}^*)^2 }{ \frac{(M-1)}{M} \sum_{i=1}^N w_i }$$  Which gives a standard deviation of 8.35 for my test case.  However, the Wikipedia article on  gives both the formula:  $$s^{2*} = \frac{ \sum_{i=1}^N w_i}{(\sum_{i=1}^N w_i)^2 - \sum_{i=1}^N w_i^2} \sum_{i=1}^N w_i(x_i-\bar{x}^*)^2$$  and  $$s^{2*} = \frac{1}{(\sum_{i=1}^N w_i) - 1} \sum_{i=1}^N w_i(x_i-\bar{x}^*)^2$$  Which give standard deviations of 8.66 and 7.83, respectively, for my test case.  Update  Thanks to @whuber who suggested looking into Sheppard's Corrections, and your helpful comments related to them.  Unfortunately, I'm having a difficult time understanding the resources I can find about it (and I can't find any good examples).  To recap though, I understand that the following is a biased estimate of variance:  $$s^{2*} = \frac{1}{\sum_{i=1}^N w_i} \sum_{i=1}^N w_i(x_i-\bar{x}^*)^2$$  I also understand that most standard corrections for the bias are for direct random samples of a normal distribution.  Therefore, I see two potential issues for me:   These are binned random samples (which, I'm pretty sure, is where Sheppard's Corrections come in.)  It's unknown whether or not the data is for a normal distribution (thus I'm assuming not, which, I'm pretty sure, invalidates Sheppard's Corrections.)   So, my updated question is; What's the appropriate method for handling the bias imposed by the "simple" weighted standard deviation/variance formula on a non-normal distribution? Most specifically with regards to binned data.  Note: I'm using the following terms:     $s^{2*}$ is the weighted variance   $N$ is the number of observations.  (i.e. the number of bins) $M$ is the number of nonzero weights.  (i.e. the number of bins with counts) $w_i$ are the weights  (i.e. the counts) $x_i$ are the observations.  (i.e. the bin means) $\bar{x}^*$ is the weighted mean.


Receiving new privilege notification before reaching threshold

I'm getting this notification: "Congrats, you've gained the privilege – talk in chat and 2 other privileges learn more." However, I only have 11 reputation and I cannot talk in chat since this requires 20.  Checking "show removed posts" does not show any downvotes but even if this was the case I would not expect to get the notification. Note that if i remove the notification (click on the X) and click again on my username I get the notification again.  Is this a bug?


Let $$x_n=\frac{1}{1^2}+\frac{1}{2^2}+\ldots+\frac{1}{n^2},\;\forall n\geq 1.$$ Show that $$\frac{1}{x_1^2}+\frac{1}{4\cdot x_2^2}+\ldots+\frac{1}{n^2\cdot x_n^2}\leq \frac{3n-2}{2n-1}.$$   I tried to prove it by induction  but I got a contradiction.


Getting the sum of strings converted to float issue

I have the following javascript code which does a sum of strings converted to floats:  $(document).on("change", ".changeValue", function (e) { $(this).closest(".mdl-textfield--floating-label").find(".emptyRateError").css("display", "flex").css("visibility", "hidden"); var elemClass = $(this).Get_Attr_Regex('optionValue_', 'class'); var elemSum = $(".optionSum_" + elemClass.substring(elemClass.indexOf("_")+1, elemClass.length)); var sum = 0; $("." + elemClass).each(function (index) {     sum += parseFloat($(this).val()); }); elemSum.val(sum);   });  However, at times, when I have values "1.2" and "4.4", the value returned as sum is 5.6000000000000005.  Any idea why I am getting this behaviour? Thanks


Prove that there are no integers $a,b \gt 2$ such that  $a^2{\mid}(b^3 + 1)$ and $b^2{\mid}(a^3 + 1)$.


Bluetooth not working and always disabled. What is the problem?

My bluetooth of Dell Inspiron 3521 running Ubuntu 16.04 LTS is always turned off and never working.    Output of rfkill list is:  phy0: Wireless LAN Soft blocked: no Hard blocked: no  brcmwl-0: Wireless LAN Soft blocked: no Hard blocked: no  hci0: Bluetooth Soft blocked: no Hard blocked: no   The output for dmesg | grep -i bluetooth is surprisingly too long, but the   starting lines are:  [   13.604878] Bluetooth: Core ver 2.21 [   13.604893] Bluetooth: HCI device and connection manager initialized [   13.604897] Bluetooth: HCI socket layer initialized [   13.604899] Bluetooth: L2CAP socket layer initialized [   13.604903] Bluetooth: SCO socket layer initialized [   16.255339] Bluetooth: hci0 command 0x1001 tx timeout [   24.251910] Bluetooth: hci0: BCM: Reading local version info failed (-110) [   24.260749] Bluetooth: hci0: BCM: chip id 70 [   24.276755] Bluetooth: hci0: BCM43142A [   24.276761] Bluetooth: hci0: BCM (001.001.011) build 0000 [   24.435842] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [   24.435879] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [   29.649634] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   29.649640] Bluetooth: BNEP filters: protocol multicast [   29.649645] Bluetooth: BNEP socket layer initialized [  807.637085] Bluetooth: hci0 command 0x1001 tx timeout [  815.628818] Bluetooth: hci0: BCM: Reading local version info failed (-110) [  815.636981] Bluetooth: hci0: BCM: chip id 70 [  815.652959] Bluetooth: hci0: BCM43142A [  815.652974] Bluetooth: hci0: BCM (001.001.011) build 0000 [  815.653017] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [  815.653023] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found


Are magical exchange programmes possible in the Wizarding World?

Would it be possible that someone from Ilvermorny comes to study at Hogwarts or vice versa? Like an exchange program?


I have a String, which contains a lot of commas. I want to count all the commas in the String but I don't know how. I'm using (split(",")-1) But the problem is that if I input a String like this: One,Two,Three,Four,,, Then it returns only 3 while I want it to be 6. I think it is because split(",") returns a String[] that does not include null or empty values. Is there any way to solve this problem?


The problem is     how to get the maximum repeated String in an array using only operations on the arrays in java?   so i got into this question in a test and couldn't figure it out. lets suppose we have an array of string.  str1[] = { "abbey", "bob", "caley", "caley", "zeeman", "abbey", "bob", "abbey" } str2[] = { "abbey", "bob", "caley", "caley", "zeeman", "abbey", "bob", "abbey", "caley" }    in  str1 abbey was maximum repeated, so abbey should be returned and   in str2 abbey and caley both have same number of repetitions and hence we take maximum alphabet as the winner and is returned(caley here).  c > a   so i tried till  import java.util.*; public class test {     static String highestRepeated(String[] str) {         int n = str.length, num = 0;         String temp;         String str2[] = new String[n / 2];          for (int k = 0;k < n; k++) {  // outer comparision             for (int l = k + 1; l < n; l++) { // inner comparision                 if (str[k].equals(str[l])) {                     // if matched, increase count                     num++;                 }             }              // I'm stuck here         }          return result;     }      public static void main(String[] args) {         Scanner sc = new Scanner(System.in);         System.out.println("enter how many votes");         int n = sc.nextInt();         String[] str = new String[n];         for (int i = 0; i < n; i++) {             Str[i] = sc.nextLine();          }         String res = highestRepeated(str);         System.out.println(res + " is the winner");     } }   so, how should i take the count of occurrence of each string with and attach it with the string itself.  All this, without using a map and any hashing but just by using arrays?


I'm copy-editing a long text with lots of double whitespaces in between words and am wondering whether the latex compiler will remove these automatically, or whether I'll need to replace them with single whitespaces manually.  If it doesn't (remove them automatically), is there a way to make it do so?


How quickly should I try to accept an answer?

It seems clear to me that when I'm in a community with "hard questions" (ie. ones that have clear answer) it makes sense to me that I should accept the best and fastest answer.   However, for a community with more "soft questions" (ie. ones that do not have clear answers) I am wondering if there are some guidelines to follow, or some common practice, for how quickly to accept answers.


If the gravity well steepens to infinity at the point of a singularity, then so does the "time well".  Understandingly, the inward falling energy/matter is not aware of this change in time relative to the "outside" universe, locked as it is in its local reference.  How does the inward falling energy/matter ever "physically" reach the singularity?  It seems like the man counting to 100, going half way each time.  He gets closer and closer, but never actually arrives 100% there.


I recently upgraded to Ubuntu 12.04 and after doing some updates and such my application launcher and title bars (for window dialogues) are missing. Basically the entire Unity GUI is missing!  Not sure what happened so I installed GNOME 3 and it was missing a launcher too, but did have title bars. In addition the bar found at the top that lets you know what's open and allows GNOME extensions to be displayed is not interactive. I can't click, right click, alt + click (right or left), alt + super click (right or left) anywhere! I even installed an application menu from the GNOME site and it is not interactive either. However, since there is no way to launch applications I have to use terminal and if I minimize an app it will disappear completely.  Then I decided to try Unity 2D and it is incredibly messed up. Black background, launcher is there but icons and top bar while on desktop are completely distorted. They're not just pixelated; they're all sorts of funky colors and when I open something from Unity 2D launcher it will show it's opened in the launcher but nothing appears on my screen.  When trying to view videos on YouTube the video is distorted and looks just as Unity 2D does. Strange enough: the audio works fine, just not videos. Pictures loads, but not ads that stream video.  Any suggestions to get my launcher and the Unity GUI back? I tried reinstalling GNOME, Unity 3D, and Unity 2D from terminal. No change. Also reinstalled Unity desktop and tried resetting it: nothing happened.


Let $X_i \sim \exp(\lambda)$ for $i= 1, ..., N$ and i.i.d. Hence $\mathbb{E}(X_i) = \frac{1}{\lambda}$. What can we say about $\mathbb{E} \left(\frac{1}{\sum_{i=1}^N X_i}\right)$? I think that $\sum_{i=1}^N X_i \sim \exp(\lambda)$, but I am not sure we can say $\frac{1}{\sum_{i=1}^N X_i} \sim \exp(\lambda)$


When a drop of water falls into water, where do the splashes come from?

When a drop of water falls into a reservoir of water from a high enough altitude, water droplets will splash ():    My question: Does the water in those droplets come from the original drop or from the reservoir?


I need driver for D-link DWA-185(rtl8822b) for ubuntu 20.04 to be installed

I have some issues with wifi adapter D-link DWA-185 (rtl8822b). This adapter didn't work on my ubuntu 20.04 (kernel was 5.4 but I upgraded it to 5.9.12) when I switch it on. Then I went to support site and found driver for linux . It's a bit wierd but I couldn't find similar information about this goods at main dlink site . Then I run into some difficulties when try it to setup. I couldn't find any executable sh-file to run installation for ubuntu(linux), a lot of possible variants (a lot of android and so on) but what should I do if I want to install it on ubuntu? Could you share with me the info how to setup driver for such kind of stuff?  lspci  04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 16)  when I attach TL-WN722N (works well) lsusb Bus 001 Device 017: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n   when I attach DWA-815 lsusb  Bus 001 Device 016: ID 0bda:b812 Realtek Semiconductor Corp. 802.11ac NIC    On Windows 10 adapter DWA-815 works well.


How can I store a function into a variable when my function has user input

I want to store a python function which has an input function [eg: a = input("Item number: ")], into a variable.  So when I call that variable, it should initiate the main function stored in it.   I tried to make a sample function:   Which takes input from a user and returns it.  Stored that function into a variable, let's say x.       def user_input():         item_number = input("Item number: ")         return item_number     x=user_input()   -Now when I'm calling that variable x, it is returning the value which was   given to the function as input.  -What I want is, it should initiate the function stored in it and ask the user   for input.


How to fix? Lubuntu had installed to boot partition now "Disk near full"

On old Dell Dimension 2400, with 40 Gb hard drive and 1 Gb RAM, had installed via USB drive--Lubuntu 14.04 (NO dual boot). Previously had Windows XP, Service Pack 3 on this hard disk. Obviously, I am not very thorough and did not check to see where Lubuntu had downloaded onto hard disk. Had already downloaded several Lubuntu apps updates in the past, but when trying to set up download for current apps updates, get error message saying disk is almost full. The lightbulb went on and I went to look at disk data.     It appears all of Lubuntu is in boot disk.    How do I fix this? Why would Lubuntu have installed to boot disk and not into boot AND  extended partitions? (I don't remember the specifics of my install as it was some time ago).


How to list first 10 rows in each category in Hive SQL

I have a table that contains a column with categorial data (let's call it 'category') and another column that contains arbitrary strings (let's call it 'text').  Now i would like to see few examples of text for every category, in other words: For each category show first 5 values of text. The text values don't need to be sorted by any criteria (i don't want the top 5 longest strings or anything like that), just the first encountered (random) ones.  The result should look something like this:  +----------+------------------+ | category | text             | +----------+------------------+ | cat A    | random string 1  | | cat A    | random string 2  | | cat A    | random string 3  | | cat A    | random string 4  | | cat A    | random string 5  | | cat B    | random string 6  | | cat B    | random string 7  | | cat B    | random string 8  | | cat B    | random string 9  | | cat B    | random string 10 | | cat C    | random string 11 | | ...      | ...              |   I cannot afford quadratic complexity, since the table is really huge, tens of milions of rows.  I also would like to avoid unioning subqueries for each category manually  select ... where category = catA union  select ... where category = catB union select ... where category = catC union ...   because there is like 50 different categories.  And to the top of it, i cannot use any database-specific featues, because my database isn't any of the traditional relational databases, but an Apache Hive, that only supports basic SQL syntax.  A lot of strict requirements, i know. But if someone knew how to solve this in plain SQL, that would help me a lot. Thanks.


As I was attempting to update my computer from the update manager this popped up on my screen:     Not enough disk space, the upgrade needs a total of 81.8 m free space   on disk' /boot '.   I emptied my trash and typed sudo apt-get clean into the terminal as recommended to no effect. How do I safely and easily free up space on my disk?   I have looked at other answers to similar questions and the answer are too complicated for an inexperienced fellow such as I. So to be more specific, are there any free programs I can download that will help me manage my disk space, or...


Writing regression test cases for already developed application

We have a web application which has been developed in last 8 months now released to production. Now we are adding new features and doing bug fixes. However the existing QA team has not written any test cases for this application. They just did high-level test to this application. Now management want to write test cases for this application. What sort of a approach we need to follow to write regression test cases. We have small team and they need to focus functional test as well for sprint


Move different file types to separate folders

I have a large collection of photos in separate folders for each event e.g. holiday in Italy, holiday in France for example.  Within each folder e.g. P:\Italy there are multiple file types: JPEG, CR2, MOV.  How could I separate thes files so I end up with the following  P:\Italy\JPEG P:\Italy\CR2 P:\Italy\MOV  I have multiple sets of photos in my P:\ drive so any script will have to recurively go through each folder and create the subfolders also.


Failed to install pidgin-whatsapp in Ubuntu 14.10 (Error - Failed to fetch PPA)

I am a new Ubuntu user. In the process of installing WhatsApp into Ubuntu 14.10, and while I have successfully installed Pidgin, I am facing problems when installing whatsapp-purple plugin for Pidgin.  When I ran:   sudo add-apt-repository ppa:whatsapp-purple/ppa sudo apt-get update   I got this error message:   Failed to fetch http://ppa.launchpad.net/whatsapp-purple/ppa/ubuntu/dists/utopic/main/binary-amd64/Packages  404  Not Found Failed to fetch http://ppa.launchpad.net/whatsapp-purple/ppa/ubuntu/dists/utopic/main/binary-i386/Packages  404  Not Found   And then after running sudo apt-get install pidgin-whatsapp I got this error message:   Building dependency tree        Reading state information... Done Unable to locate package pidgin-whatsapp   Do you have any suggestions for how to solve this?


Why is the word 'Hello' used frequently when starting a phone call?

Why is the word 'Hello' used universally to begin a phone call? What was the origin of it?


solve $(a + b \cos(x))\sin(x) = p$ for $x$

This is another trigonometric equation I can’t solve.  I tried using $t= \tan(\frac{x}{2})$ but got a 4th order poynomial I couldn’t solve. I can’t See how to simplify into similar terms to allow me to solve. I could do it if $p = 0$. This is a different question than that asked previously as it contains a cos and a sin term.


Who owns the copyright to S[OFU] content?

What with  today, possibly this is a good time to ask: who actually owns the copyright to questions, answers and comments submitted to StackOverflow and relatives?  Over in , we have the OP reaching the conclusion that SO owns the copyright and is licensing it under CC-Attribution-Sharealike, with no apparent confirmation or denial from staff, and in  we have a moderator asserting that Jeff owns the copyright to SO content.  As I note in a comment on the latter, though (which was met with deafening silence), I'm failing to find any evidence that this is the case.  I've looked for any kind of terms of service I may have agreed to indicating that I am signing over ownership of my words when I hit submit, and I can't find one.  Certainly the fact that I'm agreeing to CC-Attribution-Sharealike licensing is clear enough, but it seems to me as if I am retaining copyright while agreeing to those licensing terms, and S[OFU] is using what I have written under that license.  What's the deal?  Did I forget about something that I agreed to in the signup process (and if so, why can't I find it afterward)?  Do the owners and administrators of S[OFU] believe that they own copyright to the UGC?  Just what is going on here?  Edit as to why this matters (from answer comment thread): If I retain copyright, I can also choose to license the original content to other parties under other terms (such as using a zero-requirements license, using an attribution-required license without sharealike, etc). If SO has the copyright, I can't.


Add file to PATH only when in specific directory

Is it possible to make executable appear in the global search path when I am entering to the some specific directory and get it removed once directory changed again?


Implementing Lightning App for an org with some classic users and some lightning experience users

I have built a new lightning application that allows users to complete a certain process that is defined by the business.  If I was building this purely for classic users, I would embed the lightning app into  Visualforce Page and use either  formula field or a detail button to open the page in a new tab (this is the outcome I am looking for). However, roughly half of the users in this org are currently using Lightning Experience which I am not nearly as familiar with.  This question comes with 2 parts:  a) is there a way for me to implement that if you are in classic it will open the VF page with the lightning app embedded, and if you are in lightning it will open the lightning app?  b) how do you navigate from a standard page to a lightning app in the lightning experience whilst still displaying the header (Salesforce logos and tabs etc)?  Hopefully someone can help me out. Lightning applications are a brilliant way to build applications but it is not much use to me if it is this difficult to implement  This is unique to the similar question that exists as it advises to use SLDS with a Visualforce page, however I have developed an actual lightning app using lightning component. Whether I render the wrapper VF page, the direct VF page OR straight to the lightning app URL it never displays the header and side bar in the Lightning Experience. The simple question would be how do I navigate from a standard record to a lightning app that is built to perform a process on the data within that record, whilst maintaining the header and sidebar?


Test whether the study population come from a normal or log-normal distribution based on mean, median, and number of subjects

I have MEAN, MEDIAN, NSUB (number of subjects) and SD data coming from different studies and different populations. These are the only available information in the studies. My data set contains the following columns:  STUDY   NSUB   MEAN   MEDIAN   SD 1       10     1.5    1.7      0.4 2       20     1.5    1.55     0.3 3       7      2.6    3        0.5 4       15     3      3.01     0.1    And so on.  I want to judge whether the mean and median are significantly different at significance level (alpha=0.05). This is so I can make a decision whether the data from each study were come from a normal or log-normal distribution.   I thought of doing a two sided t-test. My hypothesis would be:  NULL: H0: MEAN=MEDIAN  Alternative: HA: MEAN doesn't equal MEDIAN  The standard error of the mean (SEM) can be calculated as SD/NSUB where NSUB is the number of subjects. The degree of freedom would be NSUB-1. The scenario I am presenting here is as if I am comparing two means that have the same standard deviation (SD).  Is there a way where I can apply this automatically in R for the set of data that I have and have the result added to the data as t.test.result being TRUE/FALSE (significantly different/insignificantly different). Something close to this:  STUDY   NSUB   MEAN   MEDIAN   SD     t.test.result 1       10     1.5    1.7      0.4    RESULT1? 2       20     1.5    1.55     0.3    RESULT2? 3       7      2.6    3        0.5    RESULT3? 4       15     3      3.01     0.1    RESULT4?   Also, is there a better way to test whether each study population was come from a normal or log-normal distribution?


Two infinite dimensional spaces whose Banach-Mazur distance equal to 1(details in the proof)

Sorry for this "duplicated" question. Two years ago, there was a  concerning about Banach-Mazur distance between infinite dimensional spaces and the answer was accepted. But I am really a beginner for Banach space theory and don't quite understand the answer given there.  The question is      Let $(p_n)$ and $(q_n)$ be two disjoint sequences, dense in $[1,1.5]$ such that $p_1=1$. Take $X=\left(\sum \ell_{p_n}^5\right)_2$ and $Y =\left(\sum \ell_{q_n}^5\right)_2$. Show that $X$ and $Y$ are isomophic but not isometric to each other and $d_{BM}(X,Y)=1$.   He gives a hint to the proof of $d_{BM}(X,Y)=1$:     The Banach-Mazur distance is $1$ because for every $\epsilon>0$ the interval $[1,1.5]$ can be partitioned into subintervals of size $\epsilon$, each of which meets both sequences countably many times.    I know we are supposed to find an isomophism $T:X\rightarrow Y$ such that $\|T\| \cdot \|T^{-1}\|\le 1+\epsilon$. But there are two maps $T \text{ and } T^{-1}$ here, which makes the proof very difficult . Maybe I should fix $\|T^{-1}\|=1$ by scaling, but this doesn't reduce any workload for me.  For the proof of the non-isometric part, he was trying to show that $Y$ is not strictly convex. However, I don't believe that the second half of the following inequality is true:     $$\sum \left\|\frac{y_n+z_n}{2}\right\|_{q_n}^2 \le \sum \left( \frac{\|y_n\|_{q_n}+\|z_n\|_{q_n}}{2}\right)^2 \le    \frac14 \sum \left\|y_n\right\|_{q_n}^2 + \frac14 \sum \left\|z_n\right\|_{q_n}^2 \tag2$$   I think it should be      $$\sum \left\|\frac{y_n+z_n}{2}\right\|_{q_n}^2 \le \sum \left( \frac{\|y_n\|_{q_n}+\|z_n\|_{q_n}}{2}\right)^2 \le    \frac12 \sum \left\|y_n\right\|_{q_n}^2 + \frac12 \sum \left\|z_n\right\|_{q_n}^2 \tag2$$   But then his proof doesn't seem to work.  Every answer and helpful hint will be appreciated! And if you know any other examples for the same purpose, please feel free to post them.


I'm working on a classification task, where the target can be one of many (30k+) categories, and I know some of these categories are much closer to each other than the others (but I don't know exactly which ones).  It seems the cross entropy loss may not be the best choice because it treats every category independently.  For instance say there're five almost indistinguishable categories, and my prediction is 0.2 for each and zero for others, which I think is a very good prediction, but it still gets a large cross entropy loss. I'm thinking maybe I can modify the loss to something like "if the predicted probability is above 0.2 for the ground truth category, it causes no loss", will that work?  What should be a proper loss in my case? or what else can I do (to impose the assumption that some categories are similar)?    Update One thing I thought of is to just set the loss of top K predicted categories to zero. I think it has similar effect as early stopping, since they both don't encourage the model to be too confident of their predictions (overfit) as opposed to a cross entropy loss.  As January has suggested, I think it makes sense to apply a hierarchical clustering method first, then the "degree of difference" between categories can be weighted according to the hierarchy.    Update Not the same as  The linked question is about using categorical attributes as inputs, not targets.


Some Windows 10 UWP icons not displaying on search, or in settings

Some, but not all, icons for UWP apps are not displaying in search or settings. They do, however, display on the start menu when not searching. Icons for all non UWP apps display correctly, every time. UWP app icons are always present on the taskbar.   UPDATE: Many locally stored image thumbnails fail to appear in start menu search results either, no matter what image format.  The reason I have posted this as a separate question from , is for the following differentiating reasons:   Not all UWP app icons fail to display The issue is specifically present on the start menu only during search UWP apps never fail to display their icons on the taskbar   I have tried:    Resetting the icon cache The solution  involving the windowsapps folder Creating a new user account Deleting iconstream registry keys Changing performance settings to save thumbnails Changing default app for PNGs Changing default app for all images in windows settings Changing windows explorer view settings Updating graphics drivers   Screenshots:


Why I can't call the initial function when I assign the initial function(a function declaration) to a variable?

I'm learning javaScript through the book" Professional JavaScript for Web developers 3rd Edition". And In section 7.1 of Chapter 7, the author puts an example to realize the decoupling between executing function and the function name:      var factorial = (function f(num) {     if (num <= 1) {         return 1;     } else {         return num * f(num - 1);     } });     The code above does well whether in strict mode or not. As I saw before, the code worked in two steps:  First: declare the function f  function f(num) {     if (num <= 1) {         return 1;     } else {         return num * f(num - 1);     } }   Second: assign the function name f to the variable factorial  var factorial = f;   So I thought it's feasible to call the function f directly in the example below.    var factorial = (function f(num) {     if (num <= 1) {         return 1;     } else {         return num * f(num - 1);     } });  f(5);     But in fact, it doesn't work. The console said "f is not a function"; Why? Is there any thing to do with closure?


Why aren't users notified when their questions are closed?

On a few occasions, I've noticed that I haven't gotten any kind of notification when my own questions was closed. For example, when  was closed as "off-topic", I didn't see any kind of notification in the Stack Exchange navigation bar, and I only noticed the change after I did a Google search for the question, and realized that it had been closed earlier.  I think users should be notified when their questions are closed so that they will at least be given a chance to improve their questions. Since no notification is given for question closures, some question closures continue to unnoticed until months have passed. By then, the questions may either be too old to migrate to the correct site, or may , depending on the specific closing reason.  I think notifications for closed questions should be implemented for all of the above reasons. The original poster of a question ought to be given a chance to improve and reopen their question, before it's too late for them to make any changes.


Are the Magic Items Compendium and Spell Compendium both 3.5e?

Are the Magic Items Compendium and Spell Compendium both for 3.5e, or are they based in 3rd version and need conversion before being used in 3.5?


Pros and cons of having dedicated application pools over keeping web applications in one default app pool

What are pros and cons of having dedicated application pools over keeping web applications in one default app pool?


Does order matter when casting a cantrip with a casting time of a bonus action and another spell?

When casting a spell as a bonus action, you can't cast another spell on the same turn except a 1-action cantrip - can the order be "reversed"? Can you cast a cantrip first as a bonus action, then any other spell? If not, would it be broken to allow it?  I'm thinking a Sorcerer casting a Quickened true strike, then casting a leveled spell requiring a touch attack. Seems like a great use of the cantrip + Metamagic feature, but it seems like it is not allowed.


What does this triangle/diamond schematic symbol represent?

Could someone please tell me what the symbol ringed in red represents?     I know it has ON Switch pointing to it, but the symbol has other lables in different parts of the document.


How to show this bipartite graph has a matching saturating X?

Let $G$ a bipartite graph with partitions $X$, $Y$ such that all degrees in $X$ are at least one, and if $x\in X$ has an edge to $y$ then $d(x)\geq d(y)$. Show that there's a matching saturating X.  I think I need to use Hall's theorem, but my attempts to show Hall's condition holds for such graphs always ended up in cyclic arguments. Also, I've noted that if $k$ vertices from $X$ share a neighbour, their neighbourhood has size at least $k$ (the neighbour has degree $\geq k$, thus all of the vertices have degree at least $k$), yet I'm not sure how to use it to show Hall's condition in general. (Note: this is not the same question as , as here we have $d(x)\geq d(y)$ guaranteed only if $x$ has an edge to $y$)


Could you tell me what "would" function" here?  Questioner: hello. I've got a doubt concerning a statement to talk about the future: do we say the best student will win a prize or The best student is winning a prize?  Answer: The correct fom here WOULD be "will win". You WOULD say  "is winning" when you are describing the present - i.e. when you are watching the prize-giving ceremony


How can i allow enter button to submit form

Hi i am trying to send form using enter button usually by default when i click enter the form will submit but in this oage i am unablr to proceed to form submit when i press enter button.  i can submit the form only by using mouse click on "login" i am sending with ajax  hi this my llogin form:  <form  class="form-horizontal" id="loginForm" >
         <input type="text" class="form-control" placeholder="Email" name="login_email" id="login_email">

         <input type="password" class=" form-control" placeholder="Password" name="login_password" id="login_password">

                         <input type="button" name="login_button" id="login_button" class="btn btn-default btn-block btn-primary" value="LOG IN">

           Forgotten account Password?

             CREATE AN ACCOUNT
 </form>


Is it possible to type easily polytonic greek in XeTeX?

Some years ago, I used polutonikogreek option of the babel package to insert acutes, graves and other symbols in the text. For example, with \textgreek{fu/sis} => φύσις. The problem is that I cannot use \usepackage{fontspec} together with inputenc and babel packages. Is there any "textgreek" alternative command  to insert easily polytonic greek in XeLaTeX (using simple characters like  >, ' ,<,  | etc of polutonicgreek option)?


Where does the energy for osmosis come from?

A thought experiment:     A U-shaped tube with semi-permeable membrane at the base. The tube is completely thermally isolated from its surroundings. The liquid (solvent) is at some temperature $T$. When solute is added to one side of the tube the fluid level on that side rises until the increased pressure due to gravity ($\rho gh$) equals the osmotic pressure.   If I understand correctly, osmotic pressure could be used to do work (i.e. lift a weight as the solvent level in one side of U-shaped tube increases). Where does this energy come from? I guess it must be from the internal energy of the fluid.  At this point has the temperature of the fluid decreased?? If so, has it decreased by exactly the work done against gravity divided by the specific heat of the fluid? What does the quantitative treatment of this problem look like?


SHA1 hash for OSX 10.10 Yosemite public release?

I have a less-than-reliable internet connection, so my download of Yosemite over the App Store has been broken over several tries. I would like to know if my download is intact. If you can run this command in Terminal:  shasum /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg   and share your result. This way we can agree on what a clean copy looks like.


I have a new construction home with a gas fireplace (Copreci VCS-ECOMOD) that won't stay on when lit. If I leave the pilot on, the pilot is stable and stays lit indefinitely. Once I light the fireplace, the fireplace will come on and run for about 5-10 minutes then shut off. When this happens, the pilot also shuts off. After 3-5 seconds the pilot will come back on, and then I can light fireplace again. After a few cycles of this, I get a double beep, which looking at the manual is telling me there is unstable pilot. The fireplace is turned on manually through a control panel or via a simple remote. The fireplace has only a thermocouple (no thermopile). Visually, the flame touching the thermacouple when only pilot is lit, or when fireplace is lit looks blue and healthy and largely covering the thermacoupler. Trouble shooting steps I've taken so far:  Cleaned out the holes use air compressor where flames come out, including at igniter and thermocouple. Used sand paper to clean the thermocouple thoroughly. Used a voltmeter to measure a healthy 18mA from the thermocouple. Ensured there are new batteries (although not needed) in the power backup box. Adjusted flame so that it is blue coming out with yellow tips - does not have the "soot" appearance.  Any help of what to try next would be highly appreciated!


What are the limitations of healing magic?

While reading Sorcerer's Stone, I just finished the chapter where Harry walks in on Snape and Filch bandaging Snape's leg.  In a previous chapter Neville falls off of his broom and we see that magic can easily heal his broken wrist.  If magic can heal an injury like broken bones, why wouldn't Snape heal his leg, which was just torn up by a 3-headed dog?  My initial thought was that only certain people specialize in healing magic, but while poking around this site I came across this question:   This shows that Snape had at least some healing abilities.  So why didn't he heal his own leg?  Are there limitations that prevented Snape from healing his own wounds?


switch statement in C# and "a constant value is expected"

Why does the compiler say "a constant value is required" for the first case...the second case works fine...    switch (definingGroup) {     case Properties.Settings.Default.OU_HomeOffice:           //do something           break;     case "OU=Home Office":           //do something         break;     default:         break;  }   also tried...  switch (definingGroup) {     case Properties.Settings.Default.OU_HomeOffice.ToString():           //do something         break;     case "OU=Home Office":         //do something         break;     default:         break;  }   ...same error  Here's the Properties.Setting code  [global::System.Configuration.ApplicationScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("OU=Home Office")] public string OU_HomeOffice {     get {         return ((string)(this["OU_HomeOffice"]));     } }


How to pass a variable within a regex expression

Let's say I have the ff regex:  var str = 'hi there I am';  function testing(input, int){    var par = input.match(`/.{1, ${int}}/g`);   console.log(par); }  console.log(testing(str, 5));   How can I passed in the argument/variable nto make it work on the regex?  Is there a way to do that?


messed up my /user directory permissions an now cannot run sudo or gksu

while changing the permissions for the /usr folder of owner to root read and write of group to root read and write of other to read and write  i ignoratly checked to  box to propagate to all contained directories/files  now I cannot run sudo or gksu,  how can i fix this? the error message when trying to run sudo on a command is:  sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy' sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins  help!


I'm currently working in the following excercise:     Find all subgroups of $(\Bbb Z,+)$   I know a subgroup of $(\Bbb Z,+)$ is the multiple of a Natural number $n $ and it has the form: $n\Bbb Z$={$na|n \in \Bbb N, a \in \Bbb Z$}.  But is that the form to describe all subgroups of $(\Bbb Z,+)$? Am I missing something?   Thanks in advance for any hint or help and for taking the time to read my question.


Which method is best method to amplify 3.3 v output to 10 v to drive MOSFET Switches with Low RDs ? NPN transistor or DC-DC boost Converter?

Iam using STM32F401 microcontroller to drivie mosfets for bidirectional current control for safe charging and discharging operation of a Battery pack.  My microcontroller maximum PWM output to drive mosfets are 3.3v . i would like to amplify 3.3v to 10v to drive the mosfets with low Rds for power consumption.  So when i search in internet i came up with two results to amplify 3.3v to 10v . one is NPN transistor common emitter configuration. another is DC-DC boost converter.  I would like to know which is the best method to amplify 3.3 v to 10 v to drive Mosfets.  My Circuit:   In the above circuit i have used NPN transistor just for an understanding and completion of the circuit.  but I would like to know which method is best and efficient to use DC-DC boost converter or NPN Transistor


Unclear how to use this forum correctly, but my question is simple. That said, I can't find the info anywhere. What time did TOM4656 land on 18 Jan 2020? Could someone find the info and give me a link or screen grab so that I can prove to my travel insurance that this flight was delayed about 7 hours and 20 minutes. WHen we finally landed I turned on my phone and of course received a message from Vodfone, and that was at 18:04 (instead of the planned arrival of 10:40). tx.


Superscript and subscript together in text mode

I want to use super and subscript at the same time in text mode. I cannot use math mode because I created macros which only work in text mode.  I found this question:   But the suggested answer does not work because the width of the resulting text is based only on the subscript, if the superscript is longer the text overlaps with the content afterwards.  I created the following versions for longer sub / superscripts but i need them combined:  \documentclass{scrartcl} \usepackage[english]{babel}  \def\SPSBbottom#1#2{\rlap{\textsuperscript{#1}}\textsubscript{#2}} \def\SPSBtop#1#2{\rlap{\textsubscript{#2}}\textsuperscript{#1}}  \begin{document}  prefix\SPSBbottom{long}{1}text \\[1cm] prefix\SPSBbottom{1}{long}text \\[1cm] % Working combination prefix\SPSBtop{long}{1}text \\[1cm] % Working combination prefix\SPSBtop{1}{long}text \\[1cm]  \end{document}   If I could place two text at the same place and the width is taken from the longer one than using \textsuperscript{#1 'and' \phantom{#2}}\textsubscript{#2 'and' \phantom{#2}} could work but I do not know how to do this.  Alternatively one could use the math form $A^{top}_{bottom}$ where top and bottom are in a nested normal mode (\text{} does not work). But I found no way to do this as well.  Thanks in advance :-)


I'm interested in learning about topological QFT including Chern Simons theory, Jones polynomial, Donaldson theory and Floer homology - basically the kind of things Witten worked on in the 80s. I'm looking for pedagogical reviews rather than original articles. Though these things sit at the interface of mathematics and physics I'm interested in them more as a physics student. I remember someone asking for a suggested . The suggested papers were almost uniformly rigorous mathematics written by mathematicians. I am not looking for something like that.


I want to retrieve image from firebase store using the alert dialog with recycle view but it always returns a message error. I can upload an image to firebase store, but to upload it I want it to retrieve alert dialog. I still confusing about the adapter for alert dialog  This is the error message that I get after run the application:  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setHasFixedSize(boolean)' on a null object reference   This is my AlertDialog function in DisplayAllActivity:  private RecyclerView mRecycleView; private ImageAdapter mAdapter; private List<Upload> mUpload;  private void showUpdateDialog(){      AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);      LayoutInflater inflater = getLayoutInflater();      final View dialogView = inflater.inflate(R.layout.location_dialog, null);      dialogBuilder.setView(dialogView);      mRecycleView = findViewById(R.id.recycler_view);     mRecycleView.setHasFixedSize(true);     mRecycleView.setLayoutManager(new LinearLayoutManager(this));      mUpload = new ArrayList<>();      databaseReference = FirebaseDatabase.getInstance().getReference("Upload");      databaseReference.addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(@NonNull DataSnapshot dataSnapshot) {             for (DataSnapshot postSnapshot : dataSnapshot.getChildren()){                 Upload upload = postSnapshot.getValue(Upload.class);                 mUpload.add(upload);             }              mAdapter = new ImageAdapter(DisplayAllActivity.this, mUpload);              mRecycleView.setAdapter(mAdapter);         }          @Override         public void onCancelled(@NonNull DatabaseError databaseError) {             Toast.makeText(DisplayAllActivity.this, databaseError.getMessage(), Toast.LENGTH_SHORT).show();         }     });      final AlertDialog alertDialog = dialogBuilder.create();     alertDialog.show();  }   Here is my ImageAdapter java class for the image to be retrieved form firebase store  public class ImageAdapter extends RecyclerView.Adapter<ImageAdapter.ImageViewHolder> {  private Context mContext; private List<Upload> mUploads;  public ImageAdapter(Context context, List<Upload> uploads) {     mContext = context;     mUploads = uploads; }  @NonNull @Override public ImageViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) {     View v = LayoutInflater.from(mContext).inflate(R.layout.image_location_image, viewGroup, false);     return new ImageViewHolder(v); }  @Override public void onBindViewHolder(@NonNull ImageViewHolder imageViewHolder, int i) {     Upload uploadCurrent = mUploads.get(i);     imageViewHolder.textViewName.setText(uploadCurrent.getName());     Picasso.get().load(uploadCurrent.getImageUrl()).fit().centerCrop().into(imageViewHolder.imageView); }  @Override public int getItemCount() {     return mUploads.size(); }  public class ImageViewHolder extends RecyclerView.ViewHolder {      public TextView textViewName;     public ImageView imageView;      public ImageViewHolder(@NonNull View itemView) {         super(itemView);          textViewName = itemView.findViewById(R.id.text_view_name);         imageView = itemView.findViewById(R.id.image_view_upload);      } }}   This is XML for RecycleView that will be used by the ImageAdapter to display the image from firebase store.  <android.support.v7.widget.RecyclerView     android:id="@+id/recycler_view"     android:layout_width="match_parent"     android:layout_height="match_parent" />


Is there a way to cut fruit ahead of time (prep) and avoid browning or changing the flavor?

Recently, I purchased a lot of meal prep containers. I want to keep my refrigerator organized, so I've been measuring food ahead of time. When it comes to fruits, some are easier to prep than others. For example, I can take my grapes, weigh them and put them in containers creating my own serving sizes. Watermelon is also easily portioned. Some fruit, however, can be problematic. How can I, if possible, portion fruits which brown (such as apples, pears, etc.) ahead of time without affecting their flavor?


Edit and reopen - shows reopen popup but doesn't let me edit

I've just seen a question in the new Reopen queue that needed editting - the user had added code, but it was missing linebreaks.  I clicked on Edit and Reopen. I got the 'Nominate this question for reopening' popup; clicked on OK; and my vote was then counted without me getting the Edit box.


How can the orbit of Jupiter's moons be used to calculate the speed of light? It seems this was one of the first methods and goes back to 1656.


As most of you might know, the Pigeonhole Principle basically  that      If $n$ items are put into $m$ containers, with $n>m$, then at least one container must contain more than one item   It always surprises me how this trivial - and at the same time powerful - idea might be the key in order to solve extremely complicated math olympiad-problems...  Quick and beautiful solutions are characteristic of pigeonhole problems, which are often a three-part process   Recognize that the problem requires the Pigeonhole Principle Figure out what the pigeons and what the pigeonholes might be After applying the pigeonhole principle, there is often more work to be done   I'll illustrate this with an example I've always liked...     (Example-)Problem: Given a $n\times n$ square, prove that if $5$ points are placed randomly inside the square, then two of them are at most $\frac{n}{\sqrt2}$ units apart.   Step 1: This problem can be solved with the Pigeonhole Principle  Step 2: We divide the $n\times n$ square into four $\frac{n}{2}\times\frac{n}{2}$ squares (pigeonholes). Consequently, at least two points (pigeons) are inside the same $\frac{n}{2}\times\frac{n}{2}$ square.  Step 3: The maximal distance between two points in an $\frac{n}{2}\times\frac{n}{2}$ square is the diagonal, which has the length $\frac{n}{\sqrt2}\qquad\square$  Another problem which can be solved with the Pigeonprinciple is the following:     IMO $1972/1$           Prove that from a set of ten distinct two-digit numbers (in the decimal system), it is possible to select two disjoint subsets whose members have the same sum.      At this point, you might have noticed how useful the Pigeonhole Principle can be, if you know how to recognize and use it.     Question: I would like to work on this amazing principle with my students for a week and was, therefore, gathering problems related to the Pigeonhole Principle with beautiful solutions.   Could you suggest some more?


Ubuntu HP laptop getting overheated while playing DOTA 2

I am running DOTA 2 on lowest graphics and with GPU enabled and the temp is getting (I am not joking) 90-95 °C. What to do it's getting too hot!  My Laptop specs:   processor: Intel i3 3rd gen Ram: 4 GB  GPU: Nvidia 850 m (1gb)


Book: industrialist with private island hires woman computer expert to talk to his self-aware computer

I’m currently trying to find the name of a book that wasn’t very old that I read about 10 years ago. It had a super genius industrialist, who reminded me of Bill Gates, who hired a woman computer expert to come and investigate his supercomputer which was becoming self-aware. His large company and home were on an island and he had his own rocket port. He was going to harvest asteroids and the government sent the military to try to stop him.


Using Euler Phi function to show that there are infinitely many primes

I know Euclid's clever way of proving that there are infinitely many primes but while I was studying, I also saw a sentence on the book: "Euler-phi function can also be used to show that there are infinitely many primes." but could not figure out how. Could you please help me to understand it?  Regards


Making a Comment on a page without being on that page?

I have a built a Wordpress site that enables comments on pages and I am using them as reviews, what I would like to do is for someone to be able to make a comment on a page without being on that page.    On the link above, the top right, there is a link that says have your say about a university, it would be good to have a HTML form and then a dropdown box of all the child pages of university-guide; which is where all the universities are stored, and then I can put my comments.php file into this.  So my HTML form appears and when a page is picked from a dropdown box, the comment will then be assigned to that page.  Any help or direction?    New Question for Toscho:  Below is your tweaked plugin to fit into my website, as you can see I have added the select option yearSelect and need this to appear when the comments appear. How would I go about doing this? - Could you provide ay help please?      <?php /* Plugin Name: haveyoursay */  /**  * Call the form in your template with:  * do_action( 'wpse_67527_comment_form' );  */ add_action( 'wpse_67527_comment_form', 'wpse_67527_comment_form' );  /**  * Create a review form.  *  * @return void  */ function wpse_67527_comment_form() {     $select_id = 'page_select';     $url = 'http' . ( is_ssl() ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];     $url = esc_url( $url );     ?> <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post">
Leave us your student perspective

         <?php _e( 'Name' ); ?>&nbsp;&nbsp;&nbsp;&nbsp;         <input id="author" name="author" type="text" size="40" />

         <?php _e( 'Email' ); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;         <input id="email" name="email" type="text" size="40" />

         <label for="<?php echo $select_id; ?>">

             Pick a university from the list: &nbsp;&nbsp;                  <?php         // Ordered by page name automatically         wp_dropdown_pages(             array (                 'name' => 'comment_post_ID',                 'id'   => $select_id,                 'child_of' => 2,             )         );         ?>

Please select your year of study: &nbsp;&nbsp;     <select name="yearSelect">     <option value="1st">First Year</option>     <option value="2nd">Second Year</option>     <option value="2nd">Third Year</option>     </select>

         <textarea name="comment" cols="45" rows="8"></textarea>

         <?php         wp_nonce_field( 'unfiltered-html-comment_' . get_the_ID(), '_wp_unfiltered_html_comment_disabled', FALSE );         ?>         <input type="hidden" name="redirect_to" value="<?php echo $url; ?>" />         <input type="submit" style="margin:15px 0px 0px 0px; padding:4px 10px;" />
 </form>     <?php }  add_filter( 'comment_post_redirect', 'wpse_67527_redirect' );  /**  * Strip '#comment-number' from redirect url.  *  * @param  string $url  * @return string  */ function wpse_67527_redirect( $url ) {     $parts = explode( '#', $url );     return $parts[0]; } ?>


Present perfect or present perfect continuous with a participle?

I'm trying to figure out what tense (or tenses) are involved when you have a participle with "to be."  Examples:  Ballet is performed in the theatre. Decorum is maintained in the ballroom. English is used in the classroom.  It seems to me like present perfect continuous but I always thought those involved gerunds, not participles.  Passive present perfect?  EDIT:  I'm aware of that present passive is formed with -ed but was wondering if the above examples were somehow different from, say, He is intoxicated.  He is intoxicated indicates his present state of being, not how he was yesterday and how he will be tomorrow.  The decorum in the ballroom, on the other hand, indicates that decorum is, has been and will be maintained--that's why I wondered if these examples were some form of perfect tense.EDIT


This is a very basic question, and maybe a silly one, but I'm struggling to understand  the actual definition of a probability distribution.  In Wasserman's "All of Statistics", for example, he says that "if $\Omega$ is finite and if each outcome is equally likely, then $\mathbb{P}(A) = |A| / |\Omega|$, which is called the uniform probability distribution."   This suggest to me that a probability distribution refers specifically to the probability measure chosen, i.e. a probability distribution is the measure associated with a probability space. Yet on Wikipedia and elsewhere online, a probability distribution is only defined within the context of some random variable, e.g. "A probability distribution is a function that describes the possible values of a random variable and their associated probabilities". So my question is, is a probability distribution the measure on a given space, or is it the pdf/pmf of a given random variable? When we say we "draw a random variable" from a probability distribution, does that mean we construct a random variable from a given probability space with that probability measure, or that our random variable has that pdf/pmf? Is this a meaningful distinction?