I know that amounts of money are followed by a singular verb. But l am not sure if we can use a singular or plural verb in the following sentence:  Thirty dollars is/are found in the drawer.  I guess we can use "are" because we are talking about a number of dollars. But what if the speaker was talking about an amount of money?   Any help?

Possible Duplicate:    I want to say:  Those sixty dollars are gone That sixty dollars is gone  The reason I ask is because I was originally typing:  Those $60 are gone  But that looks funny to me. Which is more correct?


I write a report in LaTeX for my study. In my report I have to include a PDF file. If I include the PDF file than I see the page number of the PDF file and the page number of my LaTeX PDF file. I want to remove the page number of the included PDF file but I don't know how. I use the following command: \includepdf[pages=-,pagecommand={\chapter{Anhang}\pagestyle{plain}}]{Downloads/Interaktion_durch_Widgets/Interaktion_durch_Widgets-V2.pdf} What do I have to change to get rid of the page numbers from included PDF file? I have read the sites that you have sent me in the comments and I changed my command with use trim and clip. So my idea was to cut off the page number and use the command \includepdf[pages=1,pagecommand={\chapter{Anhang}}, trim=0cm 0cm 0cm 5cm, clip]{Interaktion_durch_Widgets-V2.pdf} But the page number of the PDF file is still visible which u can see in the follow image

I was hoping to find a way to insert several (many) pages of a pdf but crop off the header (with the date, filename, etc.). I'm using   \subsection{Notes} \includepdf[scale=0.8,pages=8-20,pagecommand=\subsection{blub}]{Notes.pdf}   but maybe I need to use pdftk somehow to do the batch cropping?   Thanks for any suggestions!


#include <bits/stdc++.h> using namespace std;  struct Base{      Base() {};     virtual ~Base() {}; };  struct Derived: Base {   int k;   };  int main() {      vector<Base> outBase;      Derived dtemp;     dtemp.k =10 ;      outBase.push_back(dtemp);      Derived& dNow = dynamic_cast<Derived&>(outBase[0]);      return 0; }   The above code gives execution error.   Here, at first I am storing a derived class object into a Base class vector. Then from that vector I need to get the stored data into another derived object.  The main importance is to learn how to get the data that was stored in vector of type Base into a derived class object using dynamic cast !   But if  Derived& dNow = dynamic_cast<Derived&>(dtemp); is done then there is no error or exception . Please note the moto is how to read the data(in the form outBase[i]) from vector of type Base into a Derived class object using dynamic cast .

Someone mentioned it in the IRC as the slicing problem.


A short question today about the usage of "be" without using "to" in front of it.  Here is an example of each situation: 1. "He requested that the new car be fast." 2. "He requested for the new car to be fast."  Are these both correct, or is example 1 a bit funny?

Isn't kindness already implied when you say "I request you to..."?  When I say "I humbly request you to...", the word humbly helps me to label the state of my behavior during the request.  On the other hand, what value does the word kindly add to the request?


I saw in my course than when light hit a medium, it makes some dipole oscillating with the same frequency as the one of the light $\omega$. By a classical mechanics reasoning, one can show that the indice $n=\frac{\epsilon}{\epsilon_0}$ depends on the frequency, $$n=n(\omega)$$ A wave is scattered by the medium, and the way it is scattered depends on its wave length. What I don't understand is why do we talk about refraction indices of some medium $n$, since it depends on the nature of the incident wave ? Why for example, do we talk about the indice of refraction of water, or glass ? This is not clear for me. Any help would be appreciated.

I understand the equation explaining angles of refraction related to wavelengths. But I'm looking for a more intuitive approach/visual explanation? Perhaps related to QM?


Here are two examples of the exact same regex pattern matching in Python and R  Python:  In[1]: import re In[2]: reg = re.compile("oa") In[3]: files = [".vim", ".jupyter", "Downloads", "Documents", ".bashrc", "R", "Python"] In[4]: [x for x in files if reg.match(x)] Out[4]: []   R:  > files <- c(".vim", ".jupyter", "Downloads", "Documents", ".bashrc", "R", "Python") > grep("oa", files, value = TRUE) [1] "Downloads"   Why doesn't the Python regex return anything?

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


Now, say for example I write: let object1 = {a: true} let object2 = object1  object1.a = false  console.log(object1) console.log(object2)  The result of the code above is as you'd expect: {a: false} {a: false}  But if I assigned object1 to say a string or number, anything that isn't a data structure, it doesn't give the same result, here's what I mean: let object1 = 'Hello' let object2 = object1  object1 = 'Hello World'  console.log(object1) console.log(object2)  this is the result that follows: 'Hello World' 'Hello'  I've tried the first case with arrays and sets and the second one with numbers and I also replicated this with Python as well. Can anyone please explain why example 2 doesn't work the same way example 1 does? Is there a difference in the way data structures vs strings and numbers are stored in memory.? I just don't really know honestly, lol!

The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself).  Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?


Gingrich was deposed as Speaker of the House after the election in 1998.   In the above sentence , can we write "deposed as a Speaker"? Or can it be "deposed as Speaker" only? Which one is correct? Please explain.

If he had not been a film star, he would not have become President.     In my opinion, "a President" is correct. Examples:     "My dream is to be a teacher"   "My dream is to be a President"   Which is correct usage? President or a President?


Here's the problem: I don't know what are the relevant conferences and meetings for me to potentially attend/present in. Every conference I've been so far has been passed down to me by a much older professor who knows it by experience.  I feel like this is an important topic, and yet all the tools I tried to use to find conferences (such as  and ) fail to find me relevant things.  Is there a method to reliably find relevant for you conferences worldwide? Ideally it would be good to get notified when a new relevant conference is announced.  I know there are some websites (such as  and ) that suggest papers for you to read based on previously loaded papers, so I wouldn't be surprised if there was some similar tool where you put some conferences with a few keywords and it spits out suggestions.  Cheers

What is the best way to search for conferences all over world? I need to participate in one in the near future.


I have table PartNo| Revision Status 501.   1.       Current 501.   2.       Internal 502.   1.       Internal 502.   2.       Trail  Want to retrieve from 1. PartNo 501 having status is current  2. Part 502 having status is Trail  Based on status preference I need to fetch part no based on status sequence 1. Current 2. Trail  . In Oracle SQL.

Table:   UserId, Value, Date.   I want to get the UserId, Value for the max(Date) for each UserId. That is, the Value for each UserId that has the latest date. Is there a way to do this simply in SQL? (Preferably Oracle)  Update: Apologies for any ambiguity: I need to get ALL the UserIds. But for each UserId, only that row where that user has the latest date.


Ubuntu 19.10  In the title bar, right, when I click on any icon I get a dropdown quick menu. Screenshot will not capture it, but it lists volume, brightness, network, Bluetooth, power and user. Below those there are four icons arranged horizontally: settings, (unknown) lock and power. When I click on the unknown circular arrow, it greys out and has a little lock on it.   What is this icon for?

There are no tool tips for buttons in GNOME Status menu. I wanted to know the function of the 2nd button from left at bottom in the following image:    It shows a lock sign when clicked.    OS: Ubuntu 18.04


Prove by mathematical induction that: 1. for all n ≥ 3 equality $$\binom{3}{3}+\binom{4}{3}+ · · · +\binom{n} {3}=\binom{n+1} {4};$$ 2. for all n ≥ 1 equality $$\binom{2}{2}+\binom{3}{2}+ · · · +\binom{n+1} {2}=\binom{n+2} {3}$$ So for the two exercises, I have to apply the binomial coefficient of $$\binom{n}{m}= \frac{n!} {m!(n−m)!} =\frac{(n-1)...(n−m+1)}{m!}$$ This the solution for the first exercise before dividing both sides to (k + 1)k(k− 1)/4!.  And my question is why when I solved the first exercise my answer was: $$\frac{(k+1)k(k+2)} {4!} + \frac{(k+1)k(k-1)} {3!} = \frac{k+2(k+1)(k-1)} {4!}$$ What is the step I'm missing ?

After reading , the most popular answer use the identity $$\sum_{t=0}^n \binom{t}{k} = \binom{n+1}{k+1}.$$  What's the name of this identity? Is it the identity of the  modified.  How can we prove it? I tried by induction, but without success. Can we also prove it algebraically?  Thanks for your help.    EDIT 01 : This identity is known as the  because, on Pascal's triangle, when the addends represented in the summation and the sum itself are highlighted, a hockey-stick shape is revealed.


I'd like Unity Panel to be hidden and only appear when the mouse reaches the top of the screen.  Is there some configuration/plugin/patch/hack or something that would allow me to do such a thing?

When windows are not maximized, the top panel is basically wasted space for me in Unity.  Is there a way to make it autohide? i.e. make it appear on mouse over.


Lete $n\in \mathbb{N}$. Show that the transformation $$sgn: S_n \rightarrow \{\pm 1\}$$  (where $S_n$ is the set of all permutations of the integers in the set $\{1,...,n\}$),given by $\sigma \mapsto sgn(\sigma)$, $\sigma \in S_n$, is a group homomorphism, i.e. the following equality holds:  $$sgn(\sigma_1 \circ \sigma_2) = sgn(\sigma_1)sgn(\sigma_2)$$  Def.(sgn) : Let $\sigma \in S_n$ be a permutation that can be expressed as l transpositions. Then $sgn(\sigma) := (-1)^l$  My attempt:  Since every permutation $\sigma$ can be expressed as the product of a given number of transpositions, I have the following:  Let $\sigma_1 = \tau_1 \circ \tau_2 \circ .... \circ \tau_l$ and $\sigma_2 = \tau_1 \circ \tau_2 \circ .... \circ \tau_k$. Then it follows that $\sigma_1 \circ \sigma_2 = \tau_1 \circ \tau_2 \circ .... \circ \tau_l \circ \tau_1 \circ \tau_2 \circ .... \circ \tau_k$. Now I'm not exactly sure how to go from here and whether my approach is correct. I kind of doubt it, since I need $l + k$ transpositions to derive $\sigma_1 \circ \sigma_2$, but the sum of those could easily be greater than $n$, right? In case my approach was correct thus far, how can I show that the equality holds, could I case cases depending on whether l and k are even or odd to prove the equality?

$\def\sign{\operatorname{sign}}$     For homework, I am trying to show that the map $\sign:S_n \to \{\pm 1\}$ is multiplicative, i.e. that for any permutations $\sigma_1,\sigma_2$ in the symmetric group $S_n$, we have $$\sign(\sigma_1 \sigma_2) = \sign\sigma_1 \sign\sigma_2.$$   The definition for $\sign$ that I am using is that if $\sigma = \gamma_1\cdots \gamma_k$ is the cycle decomposition of $\sigma \in S_n$ and $\ell_1,\ldots,\ell_k$ are the cycle lengths of $\gamma_1,\ldots,\gamma_k$ respectively, then   $$\sign(\sigma):= (-1)^{\ell_1-1}\cdots(-1)^{\ell_k-1}.$$  I showed first that the formula holds for two transpositions. Then I showed that it holds for a transposition and a cycle.  However, I got stuck trying to show that the formula holds for a transposition and a product of two cycles, i.e. $\sigma_1 = \tau$ and $\sigma_2 = \gamma_1\gamma_2$. I feel like this case is much more complicated than the others which makes me think I am taking the wrong approach.  If $\tau,\gamma_1,\gamma_2$ are all disjoint then the formula holds trivially because then $\gamma_1\gamma_2\tau$ is the cycle decomposition of $\sigma_1\sigma_2$. Otherwise they are not all disjoint, at which point it seems to get complicated very quickly and I don't know how to proceed.  Would someone please help me understand the best approach to this proof?


Does one say, "If any of my grandchildren does not attain the age of eighteen..."  or does one say, "If any of my grandchildren do not attain the age of eighteen..."  The second phrase seems to imply that more than on grandchild must not attain the age of eighteen before the contingency comes into play.  Whereas, the first implies that if only one grandchild does not attain the age of eighteen, then the contingency is "activated".   Does anyone have "any" thoughts on this subject?    This question is not a duplicate of the question "". That question is about whether a noun that is positioned immediately after any should be singular or plural: e.g. "any grandchild" vs. "any grandchildren". This question is about whether a verb used with the structure "any of [plural noun]" should be singular or plural.

I always thought with "any" I should use the plural, but on the internet I can find both:   It can be found in any book. It can be found in any books Do you have any books? It can be said in any language.  This can be understood by anyone.  It has been used in any form.   So, what's correct?  Is there any rule?


Why won't two blocks kept in contact on a horizontal frictionless surface move, due to the normal force? No exterior force is applied to them from any direction (except for gravity).    Ok here's more info  Actually in our physics text there were numerical where two boxes of mass m1 and m2 are kept on frictionless surface and a force is applied to one of them and we have to calculate their acceleration(a = F/(m1+ m2)) and normal force(N = m2/(m1+m2) *F)   And my physics teacher also said that "whenever two bodies are in contact there always exist normal force"(exact words)  So I thought if no external force is applied horizontally or vertical upwards to such a system of blocks(here m1 and m2) on a frictionless surface then why they don't move?  And what is the max N for a system of blocks(for simplification lets take two blocks only) and can that max N overcome friction if kept on a surface with friction  I hope you guys understand my confusion here

Given Newton's third law, why is there motion at all? Should not all forces even themselves out, so nothing moves at all? When I push a table using my finger, the table applies the same force onto my finger like my finger does on the table just with an opposing direction, nothing happens except that I feel the opposing force. But why can I push a box on a table by applying force ($F=ma$) on one side, obviously outbalancing the force the box has on my finger and at the same time outbalancing the friction the box has on the table? I obviously have the greater mass and acceleration as for example the matchbox on the table and thusly I can move it, but shouldn't the third law prevent that from even happening? Shouldn't the matchbox just accommodate to said force and applying the same force to me in opposing direction?


I want to create a shortcut that executes a program with an environment variable set, for example:  [Desktop Entry] Version=1.0 Name=Chromium test UTC Exec=TZ=UTC chromium-browser   The syntax above doesn't work (the shortcut is invalid) and I can't find anything about passing env vars in .  Is that just not possible and I need to create a launcher script?  Ubuntu 18.

I'm trying to modify my Firefox shortcut in Unity so that it started with a specific parameter. From a terminal, I would start like this:  VDPAU_DRIVER=va_gl firefox   I tried modifying the firefox.desktop file so that the Exec line looked like  Exec=VDPAU_DRIVER=va_gl firefox   But this doesn't work (the application doesn't start). I thought it could be a problem with two "=" signs, so I tried  Exec="VDPAU_DRIVER=va_gl firefox"   but this doesn't work either. What should I do?


I am not able to find concrete information about patching after install. So I have downloaded Oracle 12cR2 software from Oracle and I have successfully installed it. But now I am wondering if I need to apply the latest CPU (database and ojvm update)?  edit: So as my question state then should I apply the latest CPU (database and ojvm update) as a the first order of business after fresh install?

I need to determine from a program what version of Oracle is installed in each of the Oracle Homes on a server.  As there may not be any databases created in the Home yet, I need to be able to do this outside of the database (i.e., without connecting to the database).  Also, it would be highly preferable to be able to do this from a remote program.  This is from a windows program running .Net (C#, if that matters).  I am currently reading remote registry keys (using this technique: ), to find all of the Oracle Homes according to .  This works fine, however, I have looked around those keys and do not see any information on the exact version/release.  The name of an Oracle Home itself is of course 1) not a reliable indicator and 2) does not have the exact version/release (for instance "10.2.0.4.0").  Basically I am looking for a way to figure out what the Oracle Universal Installer tells you in the Installed Products button.    I should clarify, all of the Servers will be running Windows 2003-2008.


I want to redirect all dynamic request to index.php for example my index.php : <?php      echo "hi";  ?>  here is my  nginx configure of php:  location ~ \.php$ {        include snippets/fastcgi-php.conf;        fastcgi_pass 127.0.0.1:9000;   }  when i add  configure  with try_files: location / {        try_files $uri $uri/  /index.php =404; }  it just return raw text  <?php echo "hi"; ?>  and i modify the nginx configure with rewrite  it will return hi properly : location / {          rewrite ^(.*)  /index.php last ;                  }   Question What's different between  try_files and rewrite ? Why the directive try_files do not work as i want ?

I looked at the nginx documentation and it still confuses me utterly.  How does try_files work? Here is what the documentation says:       try_files      syntax: try_files path1 [path2] uri      default: none      context: server, location      availability: 0.7.27      Checks for the existence of files in order, and returns the first file   that is found. A trailing slash indicates a directory - $uri /. In the   event that no file is found, an internal redirect to the last   parameter is invoked. The last parameter is the fallback URI and   must exist, or else an internal error will be raised. Unlike rewrite, $args are not automatically preserved if the fallback is not   a named location. If you need args preserved, you must do so   explicitly:   I don't understand how it checks the paths and what if I don't want an internal error but have it resume the rest of the path in an effort to find another file?  If I want to try a cached file at /path/app/cache/url/index.html and if it fails to try /path/app/index.php how would I write that? If I wrote:  try_files /path/app/cache/ $uri include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket; fastcgi_param SCRIPT_FILENAME $document_root/index.php;   I have index index.php index.html index.htm;. When I visit /urlname, will it try checking /path/app/cache/urlname/index.php then /path/app/cache/urlname/index.html? If we ignore everything after try_files is it possible for try_files to check the cache folder? I have been trying and have failed.


Can't mount Windows drives, I see this error:   Whenever I try to click Data or OS label.

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


this is my first post and I would like to know what should I provide after getting my UK visitor visa refusal. [please help]    ** This isn't the same question as here  as i got refusal as i didn't meet the requirements for paragraphs V4.2 to V4.10    I have an interview and I am still a student. I have provided documents which show that I am a student and provided my parent's financial bank documents and also a document showing my savings in the bank despite the fact that the company sent me an invitation letter stating that they will take care of all of the financial aspects till I go back to my country. I also provided a traveling ticket and hotel reservations.  However i got the following decision :  "With your visa application, other than an invitation letter, you have supplied no supporting documentation pertaining to your own financial circumstances in your country. As a result, I am unable to ascertain the veracity of the statements surrounding your financial circumstances or of any assets or savings you have , I am not satisfied that you have demonstrated sufficient ties to [my country] and the lack of supporting documentation submitted with your application casts doubt over your application as a whole. It is the intentions of the applicant that are paramount in considering any application and without this information and on the documentation before me on the balance of possibilities , I am therefore not satisfied that you intend to leave the UK at the end of your proposed visit or that you will not live in the UK for extended periods through frequent or successive visits. Furthermore, I am not satisfied that you are genuinely seeking entry for a purpose that is permitted by the visitor's routes and that you will not undertake any prohibited activities set out in V4.5 - V4.10 . Appendix V 4.2 - 4.10 "  What should I provide more to support my documents for the second time when applying to avoid getting my visa refusal again?

Many of the UK visa refusals we see here share a common pattern and the prevailing reasons refer to V 4.2 (a) and (c).    I do understand that, while the applicants may describe very different individual circumstances, there's a consistent pattern and, broadly, fall into specific categories:    Credibility (lifestyle, lack of ties, visit history, lies & omissions) Funding (insufficient funds, provenance of funds, funds parking) Sponsorship (family, friends, employer)   Question: What most commonly triggers a UK visa refusal where V 4.2 (a) and (c) are given as the grounds?  Secondarily: Given that there is a clear pattern, to what extent are these refusals predictable? Does sponsorship make a difference? Is there a set of personal circumstances, however abstract, where a refusal is all but guaranteed? For example, why do those we see here on TSE who sought entry for the PLAB or British Army appear to be refused with a common theme? Is there a uniform shortcoming or is it just discrimination?   PLAB: What is about applications for a visa, for the purpose of sitting the Professional and Linguistic Assessments Board (PLAB) exam, that seem to invite refusals. After all, the test is given so that international medical graduates can show that they qualify to practise medicine in the UK. The first part, PLAB 1, can be taken in centres outside of the UK. However, PLAB 2 can be taken only in the UK. Why can't you can't get a visa just to sit the exam, promising that you'll leave immediately after?    British Army: Since Commonwealth citizens are eligible to apply online to join, even those who don't reside in the UK, why is it so difficult to get a visa just to attend an interview to see whether you are suitable? Even with an invitation from the Army, such visa applications seem to be unsuccessful. Isn't a career in the British Army a valid reason?     Lastly:  After such a refusal, what approaches would increase the chance of a successful application?


I have been trying to make the aligned equations in the same line with item number. I have tried array, aligned, alignat, and eqnarray, but they dont work out for me.   The picture is from align* environment which I resort to do.   Thanks in advance, genius!

How to make the first line of aligned equations sit in the same baseline as the bullet and make the equation left justified?    \documentclass{article} \usepackage{amsmath} \begin{document} \begin{itemize}     \item $3!=3\times2\times1=6$     \item $\tfrac{5!}{3!}=\tfrac{5\times4\times3!}{3!}=5\times4=20$     \item \begin{align*}                     \frac{n!}{(n-2)!}   &=\frac{n\times(n-1)\times(n-2)!}{(n-2)!}\\                                                         &=n\times(n-1)\\                                                         &=n^2-n                 \end{align*} \end{itemize} \end{document}


How to properly start a new form (which only shows logo.jpg) as a new thread and kill in a different (no time limit) moment? I have a working solution like below, but I guess aborting is not the best option - sometimes form stays after closing the main program, until mouse moves over. Please advise how to make it better ...  //field declarations:         frmLogo frmStart = new frmLogo();         private Thread startLogoThread;  public main()         {             this.startLogoThread = new Thread(new ThreadStart(this.frmLogoStart));             this.startLogoThread.Start();             InitializeComponent();         }          private void frmLogoStart()         {             System.Windows.Forms.Application.Run(frmStart);         }   private void mainForm_Load(object sender, EventArgs e)         {             // loading of SQL               // this is a point where I want to kill the logo thread             this.startLogoThread.Abort();             this.BringToFront();         }

I want a splash screen to show while the application is loading. I have a form with a system tray control tied to it. I want the splash screen to display while this form loads, which takes a bit of time since it's accessing a web service API to populate some drop-downs. I also want to do some basic testing for dependencies before loading (that is, the web service is available, the configuration file is readable).  As each phase of the startup goes, I want to update the splash screen with progress.  I have been reading a lot on threading, but I am getting lost on where this should be controlled from (the main() method?). I am also missing how Application.Run() works, is this where the threads for this should be created from? Now, if the form with the system tray control is the "living" form, should the splash come from there? Wouldn't it not load until the form is completed anyway?  I'm not looking for a code handout, more of an algorithm/approach so I can figure this out once and for all :)


I am having problems with accentuation in a project that I am giving maintenance.          Table MYQL using utf8_unicode_ci       String Error   $text = 'SÃ£o Josï¿½'; #correct São José echo utf8_decode($text); #print São Jos� echo utf8_encode($text); #print SÃÂ£o JosÃ¯Â¿Â½   How to solve using php 5.6?

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


Use case: Custom module to alter CONTENTTYPE_node_forms to hide some of many entity reference options when adding/editing a node. Then via a custom validate I set $form_state['values']['path']['pathauto'] = 0 and want to set the $form_state['values']['path']['alias'] depending on the parent item of the chosen entity reference since unfortunately Pathauto doesn't provide tokens for that. Finally the alias should look like that: parent-entity/entity/$form_state['input']['title'].  I builded that pattern by hand now and I'm asking me after I couldn't find anything, if I also have to rebuild the whole str_replace/preg_replace pattern of Pathauto or if there's a way to reuse the same pattern Pathauto is using for replacing spaces, special characters etc.?  Or is there maybe any other intelligent alternative to set a path alias pattern like that?

When writing my custom function I need to manually append node name to a taxonomy term link. To get the taxonomy term part done I use:    $link_uri = taxonomy_term_uri($term);   $path_alias = drupal_get_path_alias($link_uri['path']);   This works ok, now - I want to append node name ("/" . $node_name), but instead of raw string, I want the Pathauto transliterated output, as set in the URL alias configuration, for that node context.  What function should I use to mimic that output? I looked at hook_pathauto_alias_alter(&$alias, array $context) but I'm not sure that's what I need.


I am trying to convert a 3D mesh into a 2D Mesh Outline or Mesh Silhouette. Similar to the MeshOutline Command in the Rhino3D software. Any help would be greatly appreciated.  Thanks!

When you select an object in blender a yellowish ring appears around it. And no matter how much your rotate your view or the object, the outline will only appear on the visible outline of the object. It does not appear on every edge.    How can I get this effect on any object like an object modifier(but it doesn't have to be of course)? I also want to be able to change the width and set the material. I will be rendering this with openGL as an animation. Some objects rotate in my animation and I want them to be able maintain an outline.


I have a UK residence permit with flight details, Glasgow to Amsterdam, Amsterdam to Paris, Paris to Lagos. Do I need a visa?

I am travelling form Delhi (DEL) to San Francisco (SFO), I have to make a connection flight in Vienna that would take me to Frankfurt (FRA). My flight to SFO is from FRA, I have one ticket for entire journey and the flights are operated by Lufthansa or its subsidiaries.  Do I need a transit visa? My flight arrives at Vienna international airport and leaves from the same, and for second leg it arrives at Frankfurt international airport.  I asked this question as an addendum to my  but was advised to make a new post.  I hold Indian passport and valid US visa.


i have a associationmodel class which is pretty easy:  package login;  import java.util.List;  public class AssociationModel {     private String AssociationName;     private List<UserModel> UserList;  public AssociationModel(String name){     this.AssociationName = name; }  public void RegisterUser(UserModel user){     UserList.add(user); } public List<UserModel> getUsers(){     return UserList; } public String getName(){     return AssociationName; } }   Furthemore i have another class which has an java.util.list of AssociationModel´s  If i want to add AssociationModel´s to the AssociationList of the other class i get a stracktrace          while (SearchAssociationsResult.next()){             //AssociationList.add(new AssociationModel(SearchAssociationsResult.getString("ASSOCIATION_NAME")));             AssociationModel l_association = new AssociationModel(SearchAssociationsResult.getString("ASSOCIATION_NAME"));             AssociationList.add(l_association);             System.out.println(l_association.getName());         }     Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at login.AssociationController.CreateAssociations(AssociationController.java:35)     at login.AssociationController.<init>(AssociationController.java:16)     at login.LoginController.LoginAttempt(LoginController.java:48)     at login.LoginView$1.actionPerformed(LoginView.java:52)     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)     at java.awt.Component.processMouseEvent(Unknown Source)     at javax.swing.JComponent.processMouseEvent(Unknown Source)     at java.awt.Component.processEvent(Unknown Source)     at java.awt.Container.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Window.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$500(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)   I am sure its a pretty stupid mistake...

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


With a brand-new Ubuntu 14.04 installation I streamed the third period of a hockey  game last night.  It was literally the first time I used this new computer.  It connected to wifi no problem, and stayed connected, but every five minutes the browser window would disappear and I was presented with the login page that you see when you turn the computer on, and asked for my admin password.  as there seemed to be no way around it to get back to using the computer, I entered the password each time.   Now I'm worrying that I just authorized the installation of malware.  Very computer-illiterate here, but simply knowing enough to know that windows has always been very annoying and ubuntu is much more simple and elegant.    thanks for your time.

I just installed a fresh Ubuntu 12.04 (Precise Pangolin).   I noticed that, there is no screensaver settings, which is fine. I like to control the period of time after which the blank screen is shown,which automatically locks the screen.  I do not want to enable screensaver. I only wish to be able to change the idle time period required to lock the screen automatically. It seems to me, it is by default around 10-15 minutes.


I'm trying to solve exercise 2.4.3 in Artin's Algebra:  Let $a$ and $b$ be elements of a group $G$. Prove that $ab$ and $ba$ have the same order.  Here is my attempt. I would appreciate any and all feedback. I would like for this proof to be as rigorous as possible, so please let me know if I have misstated something or left something out.  We first treat the case where $|ab|$ and $|ba|$ are finite. Call the former $n$ and and the latter $m$. If $n = 1$, the result is obvious since $ab = e$, so $a = b^{-1}$ and, similarly, $ba = e$. Suppose $n \geq 2$. We then have: \begin{align*} e = (ab)^n = a(ba)^{n-1} b, \end{align*} so multiplying by $a^{-1}$ on the left and $b^{-1}$ on the right, we obtain \begin{align*} a^{-1} b^{-1} = (ba)^{n-1}. \end{align*} Multiplying by $ba$ on the left, we obtain \begin{align*} (ba)^n = e. \end{align*} Therefore, $|ba| = m \mid n$. By interchanging labels, we obtain that $n \mid m$, so $n = m$, i.e., $|ab| = |ba|$. Next, I claim that if $ab$ has infinite order, then $ba$ has infinite order and vice versa. If $|ba|$ were finite, call it $n$, then we have $|ab| \mid n$, which is impossible if $|ab| = +\infty$, so $|ba|$ must also be infinite. Analagously, if $ba$ has infinite order, $ab$ does as well.  How does this look? I assume when we say that an element has "infinite order," there's no need to distinguish between countable and uncountable infinities since this is only a definition for "there exists no power that gets us back to the identity."

Attempted proof based on  and .  Given: $a,b$ elements of $G$, and $ab$ has finite order $n$.   Hence $\color{magenta}{|ab| = n} \iff (ab)^n = e$.   I must prove that $n$ is the smallest positive integer        such that $(ba)^n = e.$ Notice:  $\begin{align}(\color{darkorange}{a}\color{darkcyan}{b})^n &= e \implies \color{darkorange}{a}\color{darkcyan}{b}(ab)^{n-1} = e \implies  \color{darkcyan}{b}(ab)^{n-1}\color{darkorange}{a} = e \implies (ba)^n = e \end{align} $ $\implies |ba| \le n$.  Now I must prove that there's no positive integer $m$ such that $m<n$ and $(ba)^m = e.$ For a proof by contradiction, suppose $|ba|<\color{magenta}{n}$. Then we could apply the same reasoning to find that $ |ab| ≤ |ba| < \color{magenta}{|ab|}$,  which is absurd. So $|ba| = |ab| = n. \quad \blacksquare$  Questions   Whence does $ |ab| ≤ |ba| $ arise, in the second last line?   What's the intuition of the claim proved?    How do you prognosticate that $|ba|<\color{magenta}{n}$ is impossible, and that you should prove it by contradiction?


I asked a question earlier "How do I spawn a Zombie with Armor", After about a week of trying to summon a zombie with enchanted armor on my own, I turn to you guys to help me.  I have tried /summon Zombie ~ ~ ~ {Equipment:[{id:"minecraft:leather_chestplate",ench:[{id:34,lvl:1}]},CustomNameVisible:1,CustomName:"Lv.1 Zombie"}  The command block output Error says "Data tag parsing failed: Unbalanced curly brackets {}"

I am trying to make a chest that is called 'I' that has another chest inside called 'II' that has another chest inside called 'III' that has another chest inside called 'IV' that has another chest called 'V' that has a piece of paper called 'An important message...' and it has a lore saying      自分自身を解放する方法があります。呪文はもう一度私たちの魂を得る。しかし、我々はそれを話さなければならない - 私たちは話すないとき - 音が出ないを。我々は、すべての耳が聞こえています。だから、失敗は避けられない。そして、私は今まで私の中の悪魔で、私の内部賭けに入る後悔。不滅か。魂のひったくり。ジェイク対ゲイリー·クルック。野望は過大評価され。   I keep getting 'Unbalanced Curly Brackets' every time I try use this command. I checked with Notepad++, I'm pretty sure the curly brackets are right? Here's the command below, but what am I doing wrong?  /setblock ~ ~ ~ chest 0 replace {Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"II"},Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"III"},Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"IV"},Items:[{id:54,Count:1,Slot:13,tag:{display:{Name:"V"},Items:[{id:339,Count:1,Slot:13,tag:{display:{Name:"An important message...",Lore:[自分自身を解放する方法があります。呪文はもう一度私たちの魂を得る。しかし、我々はそれを話さなければならない - 私たちは話すないとき - 音が出ないを。我々は、すべての耳が聞こえています。だから、失敗は避けられない。そして、私は今まで私の中の悪魔で、私の内部賭けに入る後悔。不滅か。魂のひったくり。ジェイク対ゲイリー·クルック。野望は過大評価され。]}}}]}}}]}}}}],display:{Name:"I"}}}


Normally, when you place the "de" prefix on a word, it becomes the opposite.  This does not appear to be the case with "" and "".  Why do the two words, which appear so similar, have meanings that are so different?  Google defines "fenestrated" as:     fenestrated ˈfɛnəˌstreɪtɪd,fɪˈnɛstreɪtɪd         Provided with a window or windows. "the fenestrated heights of nearby buildings"   Having perforations, apertures, or transparent areas. "the capillaries have a fenestrated epithelium"      Google defines "defenestrated as:     defenestrate diːˈfɛnɪstreɪt         Throw (someone) out of a window. "she had made up her mind that the woman had been defenestrated, although the official verdict had been suicide"   Remove or dismiss (someone) from a position of power or authority. "the overwhelming view is that he should be defenestrated   before the next election"

When I fenestrate something I put a window into it.  But when I defenestrate I throw someone out of a window.  Why does defenestrate not mean "remove a window"?    As examples - when someone has a detox they remove toxins.  When someone de-clutters they remove clutter.


I have one multidimensional array and another array.I need to sort multidimensional array by another array value.  Array([0] => 7[1] => 6 [2] => 5[3] => 4)   Using the above array value need to sort the below array by this value [Outlets][id].both array need to use only values of array. multiarray should sort like this ie,..([Outlets][id] => 7,[Outlets][id] => 6,[Outlets][id] => 5,[Outlets][id] => 4)    Array   ( [0] => Array     (         [Outlets] => Array             (   [id] => 4                 [name] => Chef Bakers, Bellandur                 [image] => chefbakers.jpg                 [partner_categories_id] => 5             )          [Localities] => Array             ([name] => Bellandur Gate (Nr Total Mall))     ) [1] => Array     (         [Outlets] => Array             (   [id] => 7                 [name] => Homechefs - Rajasthani breakfast, Sarjapur                 [image] => 1413881493hoechefs.jpg                 [partner_categories_id] => 4             )        [Localities] => Array             ([name] => Iblur Jn (Near Suncity))     ) [3] => Array     ( [Outlets] => Array             (   [id] => 6                 [name] => Meat Mart, Sarjapur                 [image] => 1414651527meatmart.jpg                 [partner_categories_id] => 3             )         [Localities] => Array([name] => Bellandur Gate (Nr Total Mall))     ) [4] => Array     (    [Outlets] => Array             (  [id] => 5                 [name] => Veggiez, Sarjapur                 [image] => 1413881741veg.jpg                 [partner_categories_id] => 6             )         [Localities] => Array([name] => Iblur Jn (Near Suncity))       ) )   please can you help? I haven't seen same ans here. ps:sorry for my bad english  I have fixed:         $s=$sortvalue_array;        $res=$Multidimentional_array;        $new=array();         foreach($res as $r)          {          $a=array_search($r['Outlets']['id'],$s);           $new[$a]=$r;          }        ksort($new);        print_r($new);

Is it possible in PHP to do something like this? How would you go about writing a function? Here is an example. The order is the most important thing.  $customer['address'] = '123 fake st'; $customer['name'] = 'Tim'; $customer['dob'] = '12/08/1986'; $customer['dontSortMe'] = 'this value doesnt need to be sorted';   And I'd like to do something like   $properOrderedArray = sortArrayByArray($customer, array('name', 'dob', 'address'));   Because at the end I use a foreach() and they're not in the right order (because I append the values to a string which needs to be in the correct order and I don't know in advance all of the array keys/values).  I've looked through PHP's internal array functions but it seems you can only sort alphabetically or numerically.


I want to search for a string and replace it with another string recursively under a directory. for example: I want to search for a string   "var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");"   and replace it with   var _gaq = _gaq || [];_gaq.push(['_setAccount', 'UA-7044592-1']);_gaq.push(['_setDomainName', 'news4u.com']);_gaq.push(['_trackPageview']);   How to achieve it ?

I'm trying to search and replace a string in all files matched by grep: grep -n 'foo' * will give me output in the form: [filename]:[line number]:[text]  For each file returned by grep, I'd like to modify the file by replacing foo with bar.


In our group we have several new players. They have played about 5-10 sessions so far, and one of them has shown interest in GMing and has begun the process of becoming a GM. However, the player has also shown that he has trouble with "paperwork" (Has a hard time keeping track of his spells, finds it difficult to look things up from a book or the internet, etc.).  The player himself does not really know where to start, and I want to help him with that. I do not want to keep the player from trying to GM something, but I am afraid that I will quickly give too much advice, or too much "homework", in the sense of "Read this article!", "Read this book!" and "Look at these useful websites!" I do not want to overwhelm the player, and make GMing seem scary.  How do I mentor a GM to-be, without overwhelming him?  So far, I have only advised the player to read the Dungeon Master's Guide. He is aware of the huge amount of supplements available to him, but hasn't made a character with content outside of core, which leads me to believe he is not familiar with many books. How do I introduce him into the extra books without overwhelming him?  Furthermore, the player doesn't seem to realise how much work should be put into preparations. Is there some way I can ease it up for him at first, or should I just throw him into the deep?  I do NOT need advice on how to encourage my player to become a DM. He already wants to become a DM, the process has already started. I am asking how I should guide him, without changing this.  I do NOT need advice for my player; I will give this advice myself. I want advice on how I should guide him.  I want answers that can be backed by personal experiences or blogs/articles.

I have a couple of players who might be interested to try GMing, but have so far been reluctant to "take the plunge" and start up their own games. I think this is mostly because they're not sure that they can "do it," and I've given them a bit of basic advice, and tried to convince them that no, it's not that mysterious, and yes, I really am just making stuff up most of the time. What else can I do to encourage them or help them to start running their own games? Or should I just back off and let them get going when they feel the call strongly enough to overcome whatever's holding them back?  I don't mean "what advice do I give them?" I can handle that on my own. But should I be giving them much advice, or will that potentially just make them more concerned about "getting it right?" Should I try to help them find players, or would that be too meddlesome/put too much pressure on them?


My F1 visa expired in June 2018. My OPT is valid till Jan 30, 2019. I got my H1b approved this year, so officially from Oct 1st, 2018 I am on H1 now and I have H1b approval notice. I am travelling from the USA to India (where I will be going for H1b stamping) from 17th November to 10th Dec 2018 through Lufthansa and have 4 hr layover in Frankfurt, Germany. Would I need Airport transit visa? I am an Indian citizen.

I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows:  Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland


$X_1, X_2, \cdots, X_n$ are independent Gaussian $N(0,1)$ random variables. I need to show that the following random variables in $\mathbb{R}^2$ have the same distribution: $\displaystyle U=\left(\bar{X}, \sum_{k=1}^n(X_k-\bar{X})^2\right)$ and $\displaystyle V=\left(n^{-\frac{1}{2}}X_n, \sum_{k=1}^{n-1}X_k^2 \right)$. Here $\bar{X} $ denotes the average of $X_1, \cdots, X_n$.  So far I can see that the components of $V$ are independent so $P(V_1\le x, V_2\le y)=P(V_1\le x)P(V_2\le y)$. I can also see that $U_1$ and $V_1$ have the same distribution (which they must). I don't directly see how $U_2$ and $V_2$ have the same distribution, although they must if $U$ and $V$ do.  Assuming the conclusion, the components of $U$ and $V$ must be identically distributed, respectively. Then the independence of $V_1$ and $V_2$ implies the independence of $U_1$ and $U_2$. Therefore the work reduces to showing that $u_1$ and $U_2$ are independent and $U_2$ and $V_2$ have the same distribution.

Let $X_{1},X_{2},....,X_{n}$ be independent $N(0,1)$ random variables and set $\bar{X}=\frac{1}{n}\sum_{i=1}^{n}X_{i}$ show that $\bigg(\bar{X},\frac{1}{n}\sum_{i=1}^{n}(X_{i}-\bar{X})^{2}\bigg)$ and $\bigg({X}/\sqrt{n},\frac{1}{n}\sum_{i=1}^{n-1}(X_{i})^{2}\bigg)$ have the same distribution. This shows that the sample mean and sample variance are independent in this model.  Thoughts I tried showing that they have the same characteristic function but couldn't get it to work that way. I think maybe I could do something involving the CLT but I'm not sure how.


Is there a difference between I noticed and I have noticed? What is the correct use of each of these?   Thanks

Non-native speakers often get confused about what the various tenses  and aspects mean in English. With input from some of the folk here I've put together a diagram that I hope will provide some clarity on the matter.  I offer it as the first answer to this question. Consider it a living document. Input is welcome, and good suggestions will be  incorporated into the diagram.    Nota bene: What this is not is a discussion of whether there are  more than two tenses in English. , to which this question is not intended to supply arguments one way or the other.  Here, the aim is to provide an overview of what constructions English-speaking people use for conveying information about actions referring to past, present, and future, and to provide it first and foremost to precisely the people who are likely to use "tense" as a catch-all term in their search, rather than to linguists who know better.  Breaking News There is now an excellent ELU blog article titled  . It is highly recommended reading.


My laptop has just died and I don't know my Gmail password. I do however have Gmail set up on my iPhone. Can I recover the password from this somehow? I was thinking either finding what the password is or being sent the password to the email account.  I know I've entered my phone number for some Google product. Can I be texted the password or recovery instructions?

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


I am trying clean up topology, and I have found an issue which I will have to do a TON work for this mesh.   I have a line of vertices I would like to quickly make straight. You can do this in the UV/Image editor by pressing W > Align X or Y.  Is there any possible way to achieve this is the 3D View?

If you have a cluster of points selected like this:    how do you align the points so that they create a flat plane?


Windows 8.1 system.   Sometimes the disk suddenly go 100% highest active time for 1 or 2 seconds, and at the same time CPU usage goes down.   During these period, screen processing does not work any more. Processing returns to normal when high disk activity goes down.  How can I fix it?

A machine is described as being "really slow" or "freezing". How can I troubleshoot/resolve this issue? What should be the first steps to take?


I have spoken with Education Unit who has requested a contract.  I have spoken with Education Unit who have requested a contract.    Which of the above is most acceptable in British English?

I'd say Microsoft have a way of bending the rules and I know that McLaren have won the championship. While this sounds strange, I believe it is correct English (sorry, I'm not native).   But when it's a small company, would you still use it this way? Is a company always plural, or are small companies singular? I.e., would you say Bakery Johnson makes fine bread or Bakery Johnson make fine bread? Is it My book seller, Woody's, have moved or is it has moved?


I'm having problems with the below code not outputting the JOptionPane.showMessageDialog variable outputs when the if statement conditions are met from JOptionPane.showInputDialog inputs. Would love some help as to why it's not meeting the conditions or outputting the variables, i've also tried println and it still does the same which is just running through each showInputDialog's one after another. Thanks in advance.  public static void main(String[] args) {     String findingCheese = "You arrive to a piece of day old cheese, the scent allures you to go closer";     String findingCrack = "You arrive to a small crack in the wall, it looks like you could fit if you go closer";     String walktoCrack = "You walk right up to the crack and realise you can fit in." + "\n";     walktoCrack = walktoCrack + "You have your front legs in just as you hear someone right behind you";     String eatCheese = "You walk up to the large piece of a cheese and can't resist the urge to eat it." + "\n";      eatCheese = eatCheese + "As you are eating you here someone right behind you";     String walkAway = "As you turn to run away, you realise the owner has been behind you this whole time, with one last wack your sight fades to black";     String cheeseFall = "As you run pass the cheese, the monster in the kitchen slips and falls on the cheese, allowing you to escape. You have beaten the kitchen. Congrats";     String youFit = "You charge into the crack realising you fit exactly, you esacpe as you hear the monster in the kitchen curse you. You have beaten the kitchen. Congrats";     String story = "";     story = story + "Welcome to the choose your own adventure horror story!" + "\n";     story = story + "You are a rat stuck in a kitchen, inside this kitchen is someone that doesn't want you there." + "\n";     story = story + "They want you dead! To escape, you must choose the correct directions and actions to take." + "\n";     story = story + "Good luck rodent.";     JOptionPane.showMessageDialog(null, story);     String direction = JOptionPane.showInputDialog("Enter which direction you want to go between left or right");     if ( direction == "Left" || direction == "left") {     JOptionPane.showMessageDialog(null, findingCheese);     }     if ( direction == "Right" || direction == "right") {     JOptionPane.showMessageDialog(null, findingCrack);     }     String closer = JOptionPane.showInputDialog("Do you want to go closer? yes or no");     if ( closer == "yes" || closer == "yes" && direction == "Left" || direction == "left") {     JOptionPane.showMessageDialog(null, eatCheese);     }     if ( closer == "yes" || closer == "yes" && direction == "Right" || direction == "right") {     JOptionPane.showMessageDialog(null, walktoCrack);     }     if ( closer == "no" || closer == "No") {         JOptionPane.showMessageDialog(null, walkAway);     }     String run = JOptionPane.showInputDialog("Do you want to run away right now? enter yes, if you want to continue forward enter no");     if ( run == "yes" || run == "Yes") {     JOptionPane.showMessageDialog(null, walkAway);     }     else if ( run == "no" || run == "No" && direction == "Left" || direction == "left") {     JOptionPane.showMessageDialog(null, cheeseFall);     }     else if (run == "no" || run == "No" && direction == "right" || direction == "Right") {     JOptionPane.showMessageDialog(null, youFit);     }         }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Here are two quotes from :     According to the first quote a dual is obtained by reversing all the arrows. Accrording to the second quote, the second pair of functors is the dual of the first. But if so, why aren't the arrows (in the category of categories and functors) in the second pair reversed (they still go from left to right)? And why aren't the arrows in $\mathbf{Set}$ reversed (i.e., why isn't $\mathbf{Set}$ replaced with $\mathbf{Set}^{op}$)? As far as I can see, only the arrows in $\mathscr A$ are reversed. Why so? If it's easier to answer what exactly "dual" means (in the framework of Leinster up to p.90), that would be great too.

I have long been confused about this notion. I know that for a statement within a single category, forming the dual statement is just reversing every arrows. But what about a statement concerning several categories and functors between them?   Mac Lane suggests reversing all arrows in all categories and leaving the functors invariant in his book "Categories for the working mathematician" (page 32), but it seems that Mac Lane himself doesn't always follow this discipline (when he states "the dual of Yoneda Theorem", he doesn't reverse the arrows in $\mathbf{Set}$ !) Can anyone give me a formal definition of "dualize a statement in category theory"?


I am currently reading through Chapter 27 (Spinor helicity formalism) in Schwartz´s "QFT and the SM". In this chapter it says that since 4-momenta transform in the (1/2,1/2) representation of the Lorentz group they are more naturally described as bispinors.  To represent momenta as bispinors, we use the $\sigma$-matrices: $p^{\alpha,\dot{\alpha}} \equiv \sigma^{\alpha,\dot{\alpha}}_{\mu}p^{\mu}$  Furthermore it says  In the special case that the momentum is lightlike we find $det(p^{\alpha,\dot{\alpha}}) = 0$.(...) As a result from linear algebra is that any 2x2 matrix with zero determinant can be written as an outer product $p^{\alpha,\dot{\alpha}} = \lambda^{\alpha}\lambda^{\dot{\alpha}}$ for two vectors $ \lambda^{\alpha}$ and $\tilde{\lambda}^{\dot{\alpha}}$.  I understand that a left-handed spinor (eg. $\lambda^{\alpha}$) transforms under the (1/2,0)-representation of the Lorentz group and that a right-handed spinor (eg. $\tilde{\lambda}_{\dot{\alpha}}$) transforms under the (0,1/2)-representation of the Lorentz group. On the other hand the bispinor has one dotted and one undotted index. Therefore I don´t know under which representation and how this object transforms.

Given a 4-vector $p^\mu$ the Lorentz group acts on it in the vector representation: $$ \tag{1} p^\mu \longrightarrow (J_V[\Lambda])^\mu_{\,\,\nu} p^\nu\equiv \Lambda^\mu_{\,\,\nu} p^\nu. $$ However, I can always represent a 4-vector $p^\mu$ using left and right handed spinor indices, writing $$ \tag{2} p_{\alpha \dot{\alpha}} \equiv \sigma^\mu_{\alpha \dot{\alpha}} p_\mu.$$ So the question is: in what representation does the Lorentz group act on $p_{\alpha \dot{\alpha}}$?    There are a lot of questions about this and related topics around physics.se, with a lot of excellent answers, so let me clear up more specifically what I am asking for.  I already know that the answer to this question is that the transformation law is  $$ \tag{3} p_{\alpha \dot{\alpha}} \rightarrow (A p A^\dagger)_{\alpha\dot{\alpha}}$$ with $A \in SL(2,\mathbb{C})$ (how is mentioned for example in ). I also understand that $$ \tag{4} \mathfrak{so}(1,3) \cong \mathfrak{sl}(2,\mathbb{C}),$$ (which is explained for example  by Edward Hughes,  by joshphysics,  by Qmechanic).  So what is missing? Not much really. Two things:   How do I obtain (3) and what is the specific form of $A$, i.e. its relation with the vector representation $\Lambda^\mu_{\,\,\nu}$? Defining the following $$ (\tilde p) \equiv p^\mu, \qquad \Lambda \equiv \Lambda^\mu_{\,\,\nu},$$ $$ \sigma \equiv  \sigma_{\alpha \dot \alpha}, \qquad \hat p \equiv p_{\alpha \dot \alpha},$$ we can rewrite (1) and (2) in matrix form as $$ \tag{5} \hat p \equiv \sigma \tilde p \rightarrow \sigma \Lambda \tilde p  = ( \sigma \Lambda \sigma^{-1}) \hat p,$$ however, this disagrees with (3) which I know to be right, so what is wrong with my reasoning? Why does the transformation law (3) has a form $$\tag{6} A \rightarrow U^{-1} A U,$$ while the usual vector transformation (1) has a form $V \rightarrow \Lambda V$? I suspect this comes from a similar reason to that explained  by Prahar, but I would appreciate a confirmation about this.


While posting answers, why doesn't Stack Overflow accept my answers? The message says that answers from this account cannot be accepted.  What can I do so that I can post answers again?

If you are reading this, you may have been affected by one of our post quality bans. If so, it is important that you  to understand what has happened and how to regain the permissions that you lost. While trying to ask a question, one could see:  We are no longer accepting questions from this account. See  to learn more.  Likewise, for answers:  We are no longer accepting answers from this account. See  to learn more.   Why am I getting this message? Are deleted posts taken into account too? Is a question/answer ban the same as a suspension? How do I avoid getting a question ban? How long do I have to wait before I can post again? What can I do to release the ban? How can I reactivate my account? Can I simply create a new account? I'll just ask somewhere else on the SE network, and they'll migrate my question to the correct site! Will a ban on one Stack Exchange site affect my standing on other sites in the network? Does this apply to meta sites too? My account is in good standing. Why am I still blocked?


I receive this error message during boot: Error loading C:\users\owner\AppData\Local\Mozilla\sjjgtggx.dll The specified module could not be found. How do I determine what program/process is calling for this dll?

When I start my desktop it gives me an error about BackgroundContainer.dll.    How to get rid of it?  I found nothing when i started regedit.exe and searched (F3 or CTRL+F) for BackgroundContainer.dll


Long version:  I've been asked to develop a program which write files in a directory into a database. Also the files which are on deeper levels in that directory needs to be written to the database. There it should be displayed with two columns. One shows the path, the other one shows the filename + extension. I wrote a program working just fine in the test environment. However, in the live environment, I don't have all the rights and permissions to open every single directory I want. Also, due to some migrations, several directories got too long path names, and can't be opened anymore. So they told me to write those directories into the database, but instead of showing in the file_name column the file name and extension, to fill that one with "No access". However, to avoid trying to open 'bad' directories, I used a try/catch module. Now I need a variable declared in try and use it in catch. Is there anyway this is possible to do? I will post a part of the code so you can see what I have at this moment.  Short version:  I want to take a variable declared in the try module and use it in the catch module. Is there any way to do that?      public HashSet<String> getFolders(Path path, HashSet<String> folders)     {                     try         {             foreach (String folder in Directory.GetDirectories(path.getOrigineleMap()))             {                 Path p = path;                 p.setOrigineleMap(folder);                 folders.Add(folder);                 getFolders(p,folders);             }         }         catch (System.Exception e)         {             Console.WriteLine("No access to a folder");             writeToDatabase(path, folder + @"\No access");   //path is a variable of the type Path, and the String should be the entire         }                                                    //path from the directory + \No Access         return folders;     }

In C# and in Java (and possibly other languages as well), variables declared in a "try" block are not in scope in the corresponding "catch" or "finally" blocks.  For example, the following code does not compile:  try {   String s = "test";   // (more code...) } catch {   Console.Out.WriteLine(s);  //Java fans: think "System.out.println" here instead }   In this code, a compile-time error occurs on the reference to s in the catch block, because s is only in scope in the try block.  (In Java, the compile error is "s cannot be resolved"; in C#, it's "The name 's' does not exist in the current context".)  The general solution to this issue seems to be to instead declare variables just before the try block, instead of within the try block:  String s; try {   s = "test";   // (more code...) } catch {   Console.Out.WriteLine(s);  //Java fans: think "System.out.println" here instead }   However, at least to me, (1) this feels like a clunky solution, and (2) it results in the variables having a larger scope than the programmer intended (the entire remainder of the method, instead of only in the context of the try-catch-finally).  My question is, what were/are the rationale(s) behind this language design decision (in Java, in C#, and/or in any other applicable languages)?


Attempting to change the server config to support a larger number of concurrent users in the laravel app. Despite making a variety of changes found that the response time does not improve. Note: jMeter is used to load test the app's APIs. Test Results Use case 1: 2 Users sending requests for 20 seconds. API Response time: 200ms Use case 2: 20 Users sending requests for 20 seconds. API Response time: 6.5s Server Config: CentOS, 4GB Ram, 2 CPU cores (t3.medium)  Web Server: Apache/2.4.6 PHP Version: 7.4.6, Laravel Version: 7.27.0, Laravel Debugging: Enabled Database: MariaDB Ver 15.1  Note: APIs being load tested are not using DB. This is mainly to keep the database out of the equation - suggestions for optimal DB settings are welcome. Had increased the server config to xlarge, 2xlarge, and 4xlarge.. Despite that, no significant improvements had been noticed. Strangely the error rates shot up. The following optimizations/changes have been done:  PHP - Use opcache. PHP-FPM: Run multiple threads, servers, etc Apache: Run in event working mode.  What changes should be made to the server config to serve the requests faster? Would choosing nginx and making the necessary optimizations help serve the requests faster?

This is a  about capacity planning for web sites. Related:      What are some recommended tools and methods of capacity planning for web sites and web-applications? Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices that apply to web servers in general.


The command   texexec --once --texutil --engine=xetex --interface=en --nonstop tmp.tex'   gives the following error message when called from Emacs, but not when called from Terminal:       /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': /opt/local/share/texmf-local/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError)     from         /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'     from /opt/local/share/texmf-local/scripts/context/ruby/texexec.rb:11:in `'   The offending piece of code is  value.gsub(/\xFF/o, ' ')   At this point, I'll be grateful for everything from what to do to make the code run from Emacs, to a patch to the code.  PATH, LANG, LC, and LC_ALL are the same in both Emacs and Terminal.

I recently upgraded to Mac OS X 10.9 (Mavericks) and tried to run a old ConTeXt document using  TeXWorks. I got the following error:  /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/base/switch.rb:501: invalid multibyte escape: /\xFF/ (SyntaxError)     from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'     from /usr/local/texlive/2013/texmf-dist/scripts/context/ruby/texexec.rb:11:in `<main>'   I had earlier loaded MacTeX 2012. I got the same error as above. So I thought may be it has to do with my TeX installation. I removed MacTeX 2012 and installed MacTeX 2013. But ended up with the same problem (error message as above).  I am kind of lost. I am new to Mac and was enjoying the TeX/LaTeX/ConTeXt experience.  Would appreciate help.


So im writing a GUI for a simple boardgame. I want to have a menu with several buttons, two of them are for example "Start game" or "Options" etc... If i click "Start game" i want to get to the next page/scene. Whats the best way of doing so? I want everything to happen in one JFrame.   I thought about removing all components with getContentPane().remove(); and then adding the new components i want to have. But i would also like to be able to get back to the menu again when pressing the "back" button for example. And removing and adding everything again all the time seems a bit of too much work for that simple task.  Is it possible to get somehow redirected to a new "scene" when pressing a button or something like that? I´m sure there has to be a better way than the one i listed above.

To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One of the components is a JPanel that is meant to be replaced by another JPanel on user action.  So, what's the correct way of doing such a thing? I've tried  panel = new CustomJPanelWithComponentsOnIt(); parentFrameJPanelBelongsTo.pack();   but this won't work. What would you suggest?


I am trying to check specific form field is valid or not on button click event but not working.  I have included this jQuery library:     and jQuery code:     HTML Code:  <form name="form" id="form" action="#">
         <input name="brokercat" id="radiobtn" type="radio" name="radio" value="cat05">
My business would benefit from having more cash available.
                  <input name="brokercat" id="radiobtn1" type="radio" name="radio" value="cat04">
My business needs to buy a new piece of equipment.
                  <input name="brokercat" id="radiobtn2" type="radio" name="radio" value="cat02">
My business wants to buy the property that it already
occupies or is looking to move into. Or, I am looking to buy
a business and that includes the premises it occupies.
                  <input name="brokercat" id="radiobtn3" type="radio" name="radio" value="cat06">
I need to acquire a new vehicle for my business.
                  <input name="brokercat" id="radiobtn4" type="radio" name="radio" value="cat07">
I am looking to develop residential or commercial premises.
                  <input name="brokercat" id="radiobtn5" type="radio" name="radio" value="cat08">
I need to borrow for less than 12 months for a property transaction.
                  <input name="brokercat" id="radiobtn6" type="radio" name="radio" value="cat03">
I have outstanding invoices that I would like to use to raise
some extra funding.
                  <input name="brokercat" id="radiobtn7" type="radio" name="radio" value="cat09">
I/we have a pension fund that we would like to consider
using to raise some capital.
                  <input name="brokercat" id="radiobtn8" type="radio" name="radio" value="cat01">
I am looking to buy a property as an investment and to rent
it out.
                  <input name="brokercat" id="radiobtn9" type="radio" name="radio" value="cat10">
My business is looking to help with its overseas trading and
exporting.
                  <input type="button" class="next" value="Next" />
 </form>   I am getting this error:    Any idea why it is not working.  Thanks.

A little bit of context:  I'm using the jQuery Validation plugin to validate a sign-up form. I now want to implement an ajax call to check whether the user name is available in the system, and I want to make this ajax call only if the userName value is a valid one as per the rules set in $(form).validate();  I want something like:  $("#userName").keyup(function () {     if ($("#userName").isValid()) {         //make ajax called     } });   I searched the documentation but i couldn't identify the solution to my problem.


If there is no -F switch and there is an /home/me/.ssh/config file that I can expect the settings in /etc/ssh/ssh_config to be ignored or do the settings in my home directory just supplement the global configuration the way they would if I specified them with a -o stanza?  For reference, The ssh man page says that the -F switch does the following.     Specifies an alternative per-user configuration file.  If a configuration file is given on the command line, the system-wide configuration file (/etc/ssh/ssh_config) will be ignored.  The default for the per-user configuration file is ~/.ssh/config.

Since I want to protect my ssh connections, I set some global cipher suite options to restrict set of used algorithms. But recently I've encountered a server which doesn't support some of those algorithms. So, I need to selectively enable deprecated algorithms for a specific host record in client (my system) configuration.  I found out that the options override is not working as I expected. Let's take a minimal (not-)working example for the github:  HostKeyAlgorithms ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp256  Host github     HostKeyAlgorithms ssh-rsa     Hostname        github.com     Port            22     User            git     PubkeyAuthentication yes     IdentityFile    ~/.ssh/some-filename-here   Having that, I receive the following error (HostKeyAlgorithms is not overriden at all):  debug1: /home/username/.ssh/config line 14: Applying options for github <...> debug2: kex_parse_kexinit: ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp521,ecdsa-sha2-nistp256 <...> Unable to negotiate with 192.30.252.130: no matching host key type found. Their offer: ssh-dss,ssh-rsa   It is similarly not working for the global PubkeyAuthentication no options with an override in a host configuration.  Also, the match doesn't help either:  match host github     HostKeyAlgorithms ssh-rsa   So, is there a way to selectively redefine those options?  NOTE: I'm using the openssh-7.1_p2-r1 on gentoo.


I have a couple of check boxes in my markup.. For example:  <input type="checkbox" id="someCheckbox"/>   If I refresh the page with Ctrl+Shift+R everything is OK - the page renders unchecked check boxes, however if some of them were checked and I refresh with F5 they stay in their previous state.  Setting the checked attribute doesn't work since having the attribute is enough to make it checked, the value is more or less irrelevant..  How can I force them to be unchecked on page load, please?

I'm reloading a web page that has the following code:  Show Image <input id="showimage" name="showimage" type="checkbox" value="1" />   Even though the HTML stays sent to the browser is the same for each reload of the page, the checkbox always takes on the checked value when a reload was performed.  In other words, if the user checks the checkbox and reloads, the checkbox is still checked.  Is there some caching going on here?    Edit: I tried Gordon Bell's solution below and find that this is still happening even after removing the value="1".  Anything else I might be missing?  Show Image  <input id="showimage" name="showimage" type="checkbox" />


I struggle from insufficient space on my SSD all the time. Every time a major upgrade including a serious number of packages arrives I have to seek what can I delete/move to free up some space so the upgrade could succeed. pacman -Sc deletes old packages from the pacman cache but seemingly leaves non-old packages in place. My \var\cache\pacman is 5.1 GiB now and this is a significant number for me.  Are these files needed for anything useful but to install the apps? Given the apps are already installed and work just fine can I delete the packages? If it's Ok to delete them, what is the correct way I should use instead of just deleting the files manually?

I have recently installed Arch Linux and found that I am eating away at a lot of storage relatively quickly. For whatever reason I have already used 17GB in just about 2 weeks. I do not have a great deal of software installed so I am led to believe that all of the old packages are maintained somewhere.   To support this, I have noticed that if I installed a package, remove that package, and then re-install it that pacman merely unpacks and re-installs the software without having to re-download it.  After I installed my base system, before extra software, I used about 2GB or so maybe. I have since only installed Matlab, Skype, Wine, and a few other small programs. Of course I have also installed missing libraries and the like, but not nearly 15GB worth.   Am I completely wrong here or does Arch never delete old packages when downloading/upgrading to new versions?   If so, how do I delete these un-used packages?  Also, when I remove installed packages I use pacman -R ...


There was a show (in color) in either the 1970's or 1980's.  The episode I'm trying to find had a man (I seem to remember him working in a deli or butcher shop) whose father had died in WWII when his troop ship was sunk.  Somehow the son got a radio that was broadcasting as if it was WWII.  The son radios a warning to the troop ship.  The next morning, he goes to the shop and his father is there!  Somehow, his warning had gotten though and saved his father.  The son is overjoyed.  Then, outside, the morning newspaper is dropped on the corner...by someone dressed in German military uniform.  The newspaper name is something like "Cleveland Beobachter".  His father was saved, but Germany won WWII.  I've looked through episode guides of all the sci-fi anthology shows I could find, but no luck.  I'm certain it was from an anthology show, as it certainly was not from a serial.  Does anyone happen to remember what this episode and show was?

I'm pretty sure this was a visual story, on TV, but I could have read it and just imagined strong images to go with it.  If I saw it on TV, it'd have been an anthology show, but I've searched and I'm pretty sure it wasn't on any version of The Twilight Zone.  While I'm not strong on details, I remember a man puts together a crystal radio and starts picking up broadcasts from WWII (this is in at least the 1970s).  His Father (or uncle?) or some other older male relative was killed in a Nazi attack and he realizes if he can receive signals from WWII, he can send them, so he sends a signal to the past to warn the Allies of the attack where his relative was killed.  The ending is an image I've had in my head for years, but the way my brain works, I could have just imagined it after reading it (if it was a book, and not on TV).     The man wakes up in a bakery or similar small business with his Father running the place and it turns out he saved his relative, but also, in sending that signal, he changed history so the Nazis won WWII and he and his Father have ID cards on and there are swastikas and other Nazi symbols all around, in and outside of their small business, which is somewhere in America, where the Nazis now rule.


If $X^*$ is separable space with norm then $X$ is separable. The opposite direction is not true since $\ell^1$ is separable but $\ell^\infty$ is not. Any conditions to make sure that if $X$ is separable then $X^*$ is also separable?

Let $(X,||\cdot||)$ be a reflexive Banach space. Prove that $X$ is separable if and only if $X'$ (the dual space of $X$) is separable. Does anyone have a hint for me? I have no idea where to begin


I have a SQL Server 2008 Standard server on full mirror (safety). I reorganize all indexes weekly. I am looking into rebuilding a few indexes to improve performance. I ran DBCC SHOWCONTIG on my largest, most accessed table and got the following results.  DBCC SHOWCONTIG scanning 'MYTABLE' table... Table: 'MYTABLE' (12345678); index ID: 1, database ID: 7 TABLE level scan performed. - Pages Scanned................................: 738663 - Extents Scanned..............................: 92661 - Extent Switches..............................: 92720 - Avg. Pages per Extent........................: 8.0 - Scan Density [Best Count:Actual Count].......: 99.58% [92333:92721] - Logical Scan Fragmentation ..................: 0.35% - Extent Scan Fragmentation ...................: 41.58% - Avg. Bytes Free per Page.....................: 467.9 - Avg. Page Density (full).....................: 94.22%   Would rebuilding the index make sense on this table? Would there be any benefits to doing so? I ask because this entails downtime and I am not sure if it is necessary. Plus, the extra log size due to the index could effect the mirror.

I have a SQL 2008 Standard server on full mirror (safety). I reorganize all indexes weekly. I am looking into rebuilding a few indexes to improve performance. I ran DBCC SHOWCONTIG on my largest, most accessed table and got the following results.  DBCC SHOWCONTIG scanning 'MYTABLE' table... Table: 'MYTABLE' (12345678); index ID: 1, database ID: 7 TABLE level scan performed. - Pages Scanned................................: 738663 - Extents Scanned..............................: 92661 - Extent Switches..............................: 92720 - Avg. Pages per Extent........................: 8.0 - Scan Density [Best Count:Actual Count].......: 99.58% [92333:92721] - Logical Scan Fragmentation ..................: 0.35% - Extent Scan Fragmentation ...................: 41.58% - Avg. Bytes Free per Page.....................: 467.9 - Avg. Page Density (full).....................: 94.22%   Would rebuilding the index make sense on this table? Would there be any benefits to doing so?


I was looking into simple source code. and found this line  int (*pfds)[2];  does it means pointer to function similar to      void (*fun_ptr)()[2] = &fun;   which I think is array of pointer to function fun(void)

I have heard of some methods, but none of them have stuck. Personally I try to avoid complex types in C and try to break them into component typedef.  I'm now faced with maintaining some legacy code from a so called 'three star programmer', and I'm having a hard time reading some of the ***code[][].  How do you read complex C declarations?


The problem is how to print the following math symbol.  I cannot find it among the Greek symbols.    here is where the "o" i find. I guess it's a special mathfont , and your anwser is very well and i will adopt your solution, but we can go head and find the best solution. thanks again.

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


I found a nice library () in Python and would like to use it directly in Android.   I found a way to link Python and Java (). But I don't understand how can I use it on Android.  My expected workflow is as follows. I invoke the Python library (by supplying a MIDI file to it) from Android -> Python library processes the input and returns the output to Android code.   If that is not possible, can anyone suggest a good MIDI parsing library for Android that handles SysEx (System Exclusive) events well? I am using  but it doesn't always work well with SysEx events.   I would really prefer running mido on Android because the SysEx events are created and stored in a MIDI file using mido on Python, which I then parse on Android.

We are working on an  version and this platform has a nice Python API..  However, there is nothing official about Python on Android, but since  exists, is there a way to let the snake and the robot work together??


I would've gone for some freehand if there already weren't outlined with the help of the SE chat UI. As you can see, the image is misaligned, and thus  the realm of the next message.  So, why does it happen? Is a fix coming or have we found a way to surprise people in other SE chatrooms?

When  , the image overflows:    The image is too tall, and there's a strange white border around it… (taken from the blog image) When hovering over it, it becomes even more clear due to the dotted border. The image on the blog should have margins, rather than white pixels, and the onebox image should have a max-height. The overflow in chat is only apparent when you hover over the post, showing the dotted border. I'm on Safari 9, OS X 10.11.


Although i have same release of ubuntu and wubi and are in same directoy. But also while installing it automatically connects to internet and starts downloading ubuntu. i have already downloaded ubuntu-14.04.1-desktop-i386.iso of 987MB. Should i have to download other applications like metalink or something so that while installing internet will not be required? Please help me out..

Is there any Windows installer (wubi) for Ubuntu 14.04 LTS?  When I mount the .iso file with Daemon Tools and run wubi.exe, it just asks me if I want to reboot (I think that's useful only when the .iso  is burned on CD), so is there no "real" installation?


I am very enthusiastic to create some GeoPDFs using the new version of Qgis 3.10 on Windows. Unfortunately, using the OSGeo Installer, the newest gdal package version proposed is 2.4.1, which is annoying considering that the minimal required version to create GeoPDFs is the 3.0.  As described in the documentation here , I tried to install the latest gdal version through Anaconda client. Here again the latest package available is 2.3.3.  In googling on the web I also found that site =>  which gives some links to download gdal 3.0. Despite the fact that the installation is possible that way (I guess), I do not get it. Besides, how could we be sure that the gdal installation that way will be "clean" and correctly working in QGIS 3.10?  I really think that new feature of creation GeoPDFs is a real improvement. I guess I will not be an isolate case, and this is really too bad that it does not work "out-of-the-box". Maybe I am also too eager to use that function, and we have to wait a few dasy/weeks to have the new gdal 3.0 automatically suggested in the OSGeo Installer...  Could someone explain the way to install this gdal 3.0 on Windows in order to create GeoPDFs with Qgis 3.10?

I installed QGIS 3.10 standalone version today and I know it has a new feature introduced in this version to export GeoPDF. But for some reason, it is greyed out.


Why did they do that? I know Curb Your Enthusiasm was a slow motion frame rate video until like 2009 or 2010. Why the change?

What are the artistic reasons to shoot "Curb Your Enthusiasm" in a higher frame rate?  It gives me the impress I am watching an old show.


While viewing the question , I saw the "Linked" and "Related" questions lists. There is a duplicate question in both lists () but with a discrepancy in the vote counts:

I was browsing  discussion () and noticed in the related posts lists the following difference in the score on a  question ().        I first noticed the related question be shown in linked nearly 3 minutes after  was left.    Hidden feature-request  Can we please stop displaying the same question from appearing in both lists? If a question is appearing under the linked posts list, it should not appear with the related questions too. Also, the difference in votes makes my eyes sore. It has been there for more than an hour now.


I've just recently joined the world of photography with a DSLR camera and need some help. I was looking into polarizer filter lens and they come in different sizes, how do I know which one fits my camera? I have a Canon EOS Rebel T5i with a 18-55mm lens. Also how do I know if a Polarizer fits onto the lens of my camera?

I was looking to get a circular polarizing filter and an UV filter for my Canon 550D, 18-135mm lens. When I checked online I found these filters came in different sizes, like 62mm, 67mm, 72mm, 77mm. How do I know which is right?  Also, will there be any degradation of photo quality if I put both these filters on the lens?


Combinations with the Super button are used by my IME.  Whenever I am a bit too slow, the default behavior of Super kicks in and the "Activities" screen appear, showing all of my current windows. It is very annoying.  Question: How to disable the "Super" shortcut?  Notes:   I am not using Unity.

How can I disable the Windows key (or Super) from showing the GNOME Shell Activities overlay?


After they had their supper, Father went into the living-room to watch TV.   Why use Father not father?

I am trying to understand capitalization rules with Mom and Dad. I believe I have it correct below, but please let me know if I do not.     The one thing I learned from my dad was that it was good to earn the trust of one's children. Dad has shown me how good that a dad can be. One day when I went to his house, and Dad wasn't there, I ran outside....   The above passage is just made-up just so that you would see what I mean about capitalization. Let's put numbers by each one, like so:     The one thing I learned from my dad(1) was that it was good to earn the trust of one's children. Dad(2) has shown me how good that a dad(3) can be. One day when I went to his house, and Dad(4) wasn't there, I ran outside....    This is one where I'm not certain. I believe in this sense I'm showing possession here with "my", and it just didn't seem right saying "my Dad". I don't know what the grammar rule is here, or if I even have it right. This one is obvious—it starts the sentence. In this case, I'm using Dad like a name instead of saying "Larry". Therefore, it should be capitalized. Again, just like 3.


A philosophical zombie is someone who strongly insists behaviorally they are conscious even though they don't actually have any conscious experiences at all. How likely is it that you, the reader, are actually a philosophical zombie?

I've been reading about the philosophy of the mind, and I'm a bit confused. Everything I've read seems to start with the (unjustified) assumption that there is some aspect of the mind that isn't purely physical or deterministic. For example, take the idea of a :  [T]hey are exactly like us in all physical respects but without conscious experiences: by definition there is ‘nothing it is like’ to be a zombie. Yet zombies behave just like us, and some even spend a lot of time discussing consciousness. Few people, if any, think zombies actually exist.  I'm confused about what this means. Isn't a "conscious experience", such as seeing the color red, just a firing of neurons in a certain area of the brain that triggers other neurons and eventually leads to us saying "I see red"? Why do few people think zombies exist? Aren't we all philosophical zombies? We're just very complex chemical computers, programmed to act in certain ways to certain inputs. What we call "conscious experiences" are just abstractions our brains make to organize and manipulate inputs and memories before producing an output, but it all boils down to biology, chemistry, and eventually physics. So I guess my question is what the philosophy of the mind is really about. Won't physics, chemistry, and neuroscience eventually fully explain why humans act the way they act?


My function reads a file and puts it into a string in order for me to process it. I need to read just before EOF, obviously. The problem is that the EOF character is also put inside the string and I can't find a way to bypass it, since it leds other parts of the program to fail. I link the function below.      string name_to_open, ret = string();     ifstream in;      getline(cin, name_to_open);     in.open(name_to_open.c_str());     if (!in.is_open()) {         cout << "Error." << endl;         return string();     }     else {         ret += in.get();         while (in.good()) {             ret += in.get();         };     };     in.close();     return ret;   The function reads fine until the end of the file, then appends EOF and \0. How can I solve the problem? Does the EOF character work fine in controls? I also tried to put a line ret[ret.size() - 1] = '\0'; at the end of the cycle, but this doesn't seem to work either.

How do I read a file into a std::string, i.e., read the whole file at once?  Text or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient. It should not needlessly copy the string's data, and it should avoid reallocations of memory while reading the string.  One way to do this would be to stat the filesize, resize the std::string and fread() into the std::string's const_cast<char*>()'ed data(). This requires the std::string's data to be contiguous which is not required by the standard, but it appears to be the case for all known implementations. What is worse, if the file is read in text mode, the std::string's size may not equal the file's size.  A fully correct, standard-compliant and portable solutions could be constructed using std::ifstream's rdbuf() into a std::ostringstream and from there into a std::string. However, this could copy the string data and/or needlessly reallocate memory.    Are all relevant standard library implementations smart enough to avoid all unnecessary overhead?  Is there another way to do it?  Did I miss some hidden Boost function that already provides the desired functionality?     void slurp(std::string& data, bool is_binary)


I have some tables in Latex and I need to add some notes at the end, I tried this code, but the note that I have to add is too large for the table and I dont know how to fix it, there is another way to do it?      \begin{table}[!htbp] \centering    \caption{xxxxxxxxxxxxxxxxxxxxxx}    \label{}  \begin{tabular}{@{\extracolsep{5pt}}lccccccc}  \\[-1.8ex]\hline  \hline \\[-1.8ex]  Statistic & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Pctl(25)} & \multicolumn{1}{c}{Median} & \multicolumn{1}{c}{Pctl(75)} & \multicolumn{1}{c}{Max} \\  \hline \\[-1.8ex]   A & 1.539 & 2.896 & 0.140 & 0.218 & 0.420 & 2.820 & 5.540 \\   B 1.722 & 1.871 & 0.190 & 0.355 & 0.630 & 3.090 & 5.630 \\   C & 1.889 & 1.822 & 0.280 & 0.540 & 0.930 & 3.185 & 5.555 \\    D & 3.259 & 1.274 & 1.348 & 2.214 & 2.896 & 4.478 & 5.765 \\  \hline \\[-1.8ex]  \multicolumn{8}{l}{Note: xxxxxxxxx xxxxx xxxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxxxxxxxx xxxxxxxxx xxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx \\  \end{tabular}  \end{table}    Thanks in advance.  Kind regards,

I'm using the latex package  because the  package isn't using APA style version 6 yet.  Now I'm trying to add a table with notes right underneath it, like in this table for instance:    Since the \caption{} is used as a title above the table, I have to add an extra row for the notes that goes over the whole table width. The problem is that the notes won't fit into one line so I need multi-line cell. How can I accomplish that? Or am I doing it totally wrong and there is a much easier way? I guess footnotes don't work here.  \documentclass{apa6e}  \begin{document} \shorttitle{} \begin{table} \caption{title} \begin{tabular}{cc} foo & bar\\ \hline \multicolumn{2}{l}{Notes. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras lacus orci, porttitor et posuere sit amet, tempor non justo. Ut quis aliquet turpis. Ut dictum nulla eget purus elementum a lacinia libero varius. Donec malesuada nulla ut odio rhoncus convallis. Aenean faucibus sollicitudin sapien, a vestibulum ante rhoncus sit amet. In vitae mi justo. In arcu metus, porta et lacinia ut, ultricies sed eros.} \end{tabular}  \end{table} \end{document}