How should I answer the questions in the "Employment and Income" section of a UK visa application?

On the "Employment and Income" section of the visa application, the following questions are listed:   What is the cost to you personally of your trip in GBP(£)? The total amount of money you have for this trip How much will they [the person paying for my trip] be paying towards your trip (in GBP £)? What is the total amount in GBP(£)?   My Father will be paying for the whole trip for me, so I assume No 3. will be how much he will be paying me - £1,500 I don't need much money because I will be hosted by the friend I am visiting, so I just need money for the flight (£533) and some extra to spend on various non-essential things. Food and accommodation will be free for me).  Also, I assume the total amount (No 4.) will be £1,500 too, because that's the amount of money I'll be spending overall.   However, is it OK for me to answer No 1 and 2 with £0?


Integral closure of $\mathbb{Z}$ in $\mathbb{C}$ is not finitely generated as a $\mathbb{Z}$-module?

Let     $$ \mathbb{Z}^{'}_{\mathbb{C}}=\{ z \in \mathbb{C} | \exists f \in \mathbb{Z}[X] \text{ monic such that } f(z)=0\} $$   be the integral closure of $ \mathbb{Z} $ in $ \mathbb{C} $. Prove that $ \mathbb{Z}^{'}_{\mathbb{C}} $ is not finitely generated as a $ \mathbb{Z} $-module.  My attempt: Suppose $ \mathbb{Z}^{'}_{\mathbb{C}}=\mathbb{Z}\alpha_{1}+...+\mathbb{Z}\alpha_{n} $ for some $ \{ \alpha_{i}\}_{i=\overline{1,n}} \subset \mathbb{Z}^{'}_{\mathbb{C}} $. I know that given $ \alpha , \beta \in \mathbb{Z}^{'}_{\mathbb{C}} $ with minimal polynomials of degrees $ m $ and $ n $ respectively, then we can construct a monic polynomial with integral coefficients $ P(z)=\prod(z-(\alpha_{i}+\beta_{j})) $ where $ \alpha_{i},\beta_{j} $ are the conjugates of $\alpha $ , $\beta $ and therefore the minimal polynomial of $ \alpha + \beta $ has degree $ \leq mn $.   I was thinking that then the degrees of the minimal polynomials of the elements of $ \mathbb{Z}\alpha_{1}+...\mathbb{Z}\alpha_{n} $ could be somehow bounded by a certain constant, whereas $ \mathbb{Z}^{'}_{\mathbb{C}}$ contains elements whose degrees of the minimal polynomials are arbitrarily large, take $ 2^{\frac{1}{n}} $ for example,$ n\geq 2$. I think this works when we are asked to prove that the set of all algebraic numbers $ \overline{\mathbb{Q}} $ is not a finitely dimensional $\mathbb{Q}$-vector space, but I don't know how to proceed in my case.  I would really appreciate any ideas, hints or solutions. Thank you very much!


This is the name of a company:     Taobao Network Co., Ltd.   Is it correct that every first letter is capitalised? Also, why is there a comma?


Two finger swipe to go back in browser in precise?

Have tried various things but I can't find a good solution to enable two finger swipe to go 'back' in a browser. Two finger vertical scrolling works fine, but it's side-swipe back/foward I'm after.  ginn seems like it might do it, but it fails in precise with unity saying 'error subscribing to gestures', and the fix seems complicated - seems to involve fiddling with source and recompiling.  easystroke is another possibility, but it requires a mouse button to be held down and so doesn't give proper two finger swipe, this isn't what i'm after.  In case it's relevant, my touch pad is identifed as 'CyPS/2 Cypress Trackpad'  Thanks!


E: GPG error: http://www.geekconnection.org karmic/ InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)   "I am constantly encountering above error while updating. Please help me to solve this problem."


How much do I tell new players about new monsters?

Background  I am a brand-new DM, about to lead a game for brand-new players.  I have a lot of knowledge of rules from playing Baldur's Gate and Neverwinter Nights over and over, leafing through a friend's books, and finally buying the three basic books for myself.    Question  How much information should I give to my players about monsters they encounter?  Should I essentially read the entire MM entry to them, or let them figure out how the enemies operate through experience, or (as I assume), something in the middle? Keep in mind, only one of them has even peripheral experience with D&D (they are very good sports for giving it a shot!), so they won't be bringing background knowledge to the table.  For example, do DMs generally let players know what immunities creatures have, or do they let them figure it out by trial and error?  What about offensive abilities?  For example, if a player has a potion of fire resistance, should I give them a heads-up about the fact that the chimera they're facing has a fire breath attack?


Ubuntu GNOME 17.04: wi-fi not working -- mac address keeps changing?

My Panda USB wi-fi adapter works just fine on 16.10, but when I try to connect to my wi-fi router in 17.04, GNOME network manager reports "Connection failed." I did some tinkering, and noticed that my MAC address for my wifi adapter, according to GNOME, is DIFFERENT every time I make it forget my wifi settings and try to reconnect. Any leads on a possible fix or work-around?   I'm running Ubuntu GNOME 17.04, kernel 4.10.0-19-generic, GNOME 3.24.0.


The TV show depicts the Dome as being perfectly round/circular when viewed from above but I'm sure in the book, it is portrayed as somehow following the shape of the town limits. That always seemed very arbitrary - how would the perpetrators (deliberately avoiding spoilers) know?  This question:  asks about the 3D shape of the Dome, but doesn't discuss what the basic 2D shape being extruded is.


List ALL contents Taxonomy Terms with Views

I am trying to figure out how to use views to list out ALL my taxonomy terms that are grouping node titles. Example:  Taxonomy Term 1 - Node Title 1 - Node Title 2  Taxonomy Term 2 - Node Title 3  Taxonomy Term 3 -Message: There are currently no Node titles at this time, please check back  Taxonomy Term 4 - Node Title 4 - Node Title 5   like :


How to download file from CentOS server on terminal through ssh server

Recently, I started working on a CentOS server and got access via ssh. I have root privilege through ssh. How can I download a file from server into my PC and upload to another server through ssh?


Transit Visa in Suvarnabhumi airport in Thailand

I am travelling from Kunming to Bangalore via Bangkok - swarnabhumi airport.  My itinerary is as below 14 JAN 20 23:00 15 JAN 20 00:45 Kunming Bangkok MU2583 40* 40* MU MTQP5F 2h 45m | Kunming, KMG - Suvarnabhumi International, BKK LAYOVER 3h 40m 15 JAN 20 04:25 15 JAN 20 06:55 Bangkok Bangalore 6E76 1* INDIGO NMEM4K 4h 0m | Suvarnabhumi International, BKK - Kempegowda International Airport, BLR Do I need a transit visa as my stay in Bangkok air port is only 3hr. 40 minutes. I am an indian national studying in China.  Please help and guide me.  Thanks


The decision for refusal  Please advise me on when next to apply and how to go about a fresh application without getting refused again, in a few weeks' time I'm going to be through with my university undergraduates course.


Does Gauss law hold in all cases, including the ones where charges are moving at speeds comparable to light? What I think: Gauss law does not hold true when charges are moving at very high speeds. For example, assume a sphere and a charge kept midway between the center and a point on the sphere. If the charge moves towards A, then, the increase in electric field is communicated to the region near A quicker than the decrease in the field near the diametrically opposite end of A is communicated, so the flux should be more than expected at that time. Obviously, this is just a thought and may be wrong.


Listen to click events on elements that aren't appended

I want to listen to click events on elements that are dynamically created and aren't appended. See this example:    document.addEventListener('click', function(e){   if(e.target.tagName == 'BUTTON'){     console.log('Click');   } }); document.createElement('button').click(); <button>Test</button>     The listener isn't called when creating an element and using the click method on  it.  Why is this and how can I listen to those events?  Thanks!


can't use type=ArmorStand in minecraft 16w38a, is this a bug or an error on my part?

when I try to use type=ArmorStand in a command in minecraft 16w38a it says Entity Type 'minecraft:armorstand is invalid' is this a known bug or just me?  example command i'm using: /kill @e[type=ArmorStand] or /entitydata @e[type=ArmorStand] {}


Can I put more applications in a Unity icon?

Is it possible to 'enclose' more than one application in a single Unity icon/button? In order to keep under control the number of buttons on launcher, it will be very useful to me to store some applications of the same type (e.g. small accessory applications like take screenshot or web application etc. ) in a single button as that is possible with the xfce panel...


Show that $e^{-\beta} = \frac{1}{\sqrt{\pi}} \int_{0}^{\infty} \frac{e^{-u}}{\sqrt{u}} e^{-\beta^2 / 4u} du$.  I'm not really sure of how I should proceed to show this, and it's pretty un-intuitive as well.  I've managed to manipulate the RHS into  $$\frac{e^{4\beta}}{\sqrt{\pi}} \int_0^\infty \frac{1}{\sqrt{u}} e^{-(\beta+2u)^2/4u} du$$ which now vaguely resembles a Gaussian. However, substituting $v = \beta + 2u$ in in order to to get something like $e^{-x^2}$ doesn't particularly help. I got $$ \frac{e^{4\beta}}{\sqrt{2\pi}} \int_0^\infty \frac{1}{\sqrt{v - \beta}} e^{-v^2/2(v-\beta)} dv. $$  I'm really unsure of how I should proceed; any help would be appreciated.


Why clearly MSO-oriented questions are migrated to MSE?

There is a certain number of Meta Stack Overflow-oriented questions here:        Why was they migrated to Meta Stack Exchange? Should we do something with them?


What happened to the Imperial Fleet after the destruction of the second Death Star?

We see in the film, that once the Death Star has blasted into oblivion, the Rebel Fleet heads for the surface of Endor. When Ackbar orders the Rebel Fleet to break off the engagement and move away from the battle, why didn't the Imperials give chase and keep attacking? Did the Imperials leave as soon as they saw the destruction or were they caught in the blast or something else?


Globbing and find command. Difference between encapsulating globbing in " " and not

Why does find . -name "*.jav" work while find . -name *.jav does not work if there are more than 1 .jav files? What do the " " do and why is the "*.jav" not interpreted as a literal string?


Explaining p-value to a sophisticated layman

I think I understand the concept of p-value but unfortunately I still have to exert a lot of brain cycles to get my arms around it.  I would like to get an explanation of the p-value that is rigorous enough for a sophisticated layman - something that would be intuitive.


Characteristic of a non unital integral domain

Theorem: the characteristic of a non unital integral domain must be $0$ or a prime.   Assume that $mn$ is the characteristic of a the integral domain for every $a$ in the integral domain we have $(mn)a^2=(ma)(na)=0$ then $ma$ or $na$ must be zero.  So for every $a$ in the integral domain $na$ OR $ma$ is zero but I can't say one of $m$ and $n$ works for every $a$ !


Some time ago Dropbox began to warn me about supporting ext4 as FS only. As a happy BTRFS user I wasn't happy, but have done this:  dropbox stop dd if=/dev/zero of=~/dropbox.img bs=1M count=4096 mkfs.ext4 ~/dropbox.img echo "${HOME}/dropbox.img ${HOME}/Dropbox ext4 rw,async 0 2" | sudo tee -a /etc/fstab rm -rf ~/Dropbox/* sudo mount "${HOME}/Dropbox" sudo chown "${USER}:" "${HOME}/Dropbox"   Everything worked without errors, but Dropbox still says that I should use ext4 for its folder. What am I doing wrong?


Using brackets as delimiters for matrix in TikZ-PGF Matrix Library

The TikZ-PGF manual is clear that for the matrix library, the delimiters are parentheses and braces:     Delimiters are parentheses or braces   to the left and right of a formula or   a matrix.   I would like to use brackets as delimiters for a matrix of math nodes. I have tried \left[ and \right] but they do not work.  Is there any way to get brackets as delimiters for a matrix of math nodes?  Thanks.


Elementary set theory equivalent statements

Let $A, B\subset M$. Prove the following statement:  $A\subset B \iff A^c\cup B = M$  M is universal set and $A^c$ is complement of A.  I can kind a solve this using bunch of reasoning but in no real way using set laws or using arbitrary elements to prove that $A^c\cup B \subset M$ and $M\subset A^c\cup B$. I'm pretty sure its very trivial but I'm just looking for a very formal way to prove.


What's the correct version of this "product rule" is topology?

An exercise asks me to do the following:     $(x_1,\tau_1), (X_2,\tau_2)$ are two topological spaces. $A_i\in X_i, i=1,2.$ Show that $\partial(A_1\times A_2)=(\partial A_1\times A_2)\cup(A_1\times \partial A_2)$, given that $X_1\times X_2$ has the product topology.   I think the result is wrong. I believe it should be $\partial(A_1\times A_2)=(\partial A_1\times \bar{A_2})\cup(\bar{A_1}\times \partial A_2)$, where bar denotes closure and $\partial$ denotes boundary.  Am I right?


How can I export the privileges from MySQL and then import to a new server?

I know how to export/import the databases using mysqldump & that's fine but how do I get the privileges into the new server.   For extra points, there are a couple of existing databases on the new one already, how do I import the old servers privileges without nuking the couple existing of ones.  Old server: 5.0.67-community  New server: 5.0.51a-24+lenny1  EDIT: I've got a dump of the db 'mysql' from the Old Server & now want to know the proper way to merge with the 'mysql' db on the New Server.  I tried a straight 'Import' using phpMyAdmin and ended up with an error regarding a duplicate (one that I've already migrated manually).  Anyone got an elegant way of merging the two 'mysql' databases?


Cannot boot windows anymore / grub not detecting windows

Some info first:   I have 2 SSDs Windows 10 is installed on disk 1 Ubuntu is installed on disk 2 Boot/BIOS is set to "Legacy" and not "UEFI"   First time I tried to install Ubuntu to the second disk I chose Something else in , then created 2 mountpoints (for / and for /home) on disk2. However during the installation I got this error   The 'grub-efi-amd64-signed' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot.  When I clicked ok, the installation was aborted and a bug report opened (don't have the URL anymore). On this bug report was something written like "it will work if you select 'Erase disk and install Ubuntu'".  (Note that after this failure Windows could still boot).  So because of this the first thing I tried was to convert my Windows . However executing mbr2gpt /validate always gave me: Cannot find OS partition(s) for disk 0 (also tried the other disks, didn't work too). Anyway I then decided to not continue pursuing this, because I don't really care if I have UEFI or not.  So I did the following:   Since I have the luxury of having an entire disk anyway, I restarted the installation, selected 'Erase disk and install Ubuntu', then selected the correct disk (yes I'm positive that I did ;) ) and the installation run through.  My Ubuntu can now happily boot.  However the GRUB menu does not appear and  also doesn't help:  patrick@patrick-ubuntu:~$ sudo update-grub [sudo] password for patrick:  Generating grub configuration file ... Found linux image: /boot/vmlinuz-4.15.0-32-generic Found initrd image: /boot/initrd.img-4.15.0-32-generic Found linux image: /boot/vmlinuz-4.15.0-29-generic Found initrd image: /boot/initrd.img-4.15.0-29-generic Adding boot menu entry for EFI firmware configuration done   Anyway I'm still positive it should somehow be possible to still boot Windows right? Since I'm pretty sure that my original Windows 10 disk is still untouched.  However I have no idea how to proceed. Any help is appreciated :)  Edit:  Boot report:


How can I make content disappear when a user logs in?

I am working in Wordpress, and I would like to make certain elements disappear once a user logs in. How can I do this?  I have social icons on my page that I positioned to the center of my menu bar at the top of my website.  those icons are generated by a plugin  that is what i want to disappear


How to search OR download all previous facebook posts

Basically the ultimate goal is to search my old posts for something rather obscure (it was something like '1 + 2 + 3')  If I had a giant webpage it would be very easy to do a quick search.  Indeed I have done that by downloading my personal facebook archive.  Unfortunately, facebook changes so quickly that information on their pages, and esp stackexchange is outdated.    What I have tried:  Downloading  1) Facebook archive of data:    No longer does this include wall posts.  Nor does the 'enhanced archive' download either.  2) Firefox FBarchive plugin    As far as I can tell both Firefox and Facebook have changed so much that this plugin no longer works.  I don't even get the option to 'capture'.  Search  3) Searching facebook directly:  I could go to my 'activity log' to see all my posts, but these are fetched dynamically (by ajax?) and since I don't see all the posts, I can't do a browser text search.  You might think that the 'search' bar actually searches your posts, but I see no way to do this.  There is a Graph Search option, but this is in beta.    4) Third party app:  Id rather not trust my data to a 3rd party webapp if possible, but as far as I know there aren't even any great webapps that grab all your content either.  Though the API, as far as I can tell, does support it.    5) Start scrollin'  As far as I know the only way is to scroll all the way to the bottom of your first post to make all the calls necessary to the server to load all the content.  That really isn't a viable solution for me.  Any suggestions?


I'm looking for folks thoughts on hashing v encrypting as is done in this article    I had previously used hashing on SQL passwords which I thought worked quite well.  Is one better than the other?  Should this not be used due to the same encryption key being used?  Any opinions welcome, thanks


Explaining to an 8-year-old why nothing can travel faster than light

It is a well known fact, that nothing can travel faster than light. I have discussed that fun fact numerous times with my 8 year old son. One day he asked "why?", and I realized that I didn't know the answer myself. So... Why is the speed of light the upper speed limit of everything?  Can it be explained in a way that an 8 year old can understand?


How to redirect output to screen as well as a file?

My aim is to log all output from a script into a directory that the script is going to create.  For example, I have:  ~/.abc.sh:  #! /bin/bash rails new myapp   When I run...  cd ~/code . ~/.abc.sh   ...that will create a new Rails app in directory ~/code/myapp.  When Rails is creating an app, it outputs a whole lot of text that I want to capture and store in a log file in the same directory the rails command newly created. I also want to display that text in the terminal as well.  How do I go about doing this?


Why does this equality hold when solving linear congruence?

I am quite confused about specific equality that is used when solving linear congruences. In the example provided, it is the jump from the second to last equation to the final equation. I cannot seem to find any theorem or even reasoning as to why this works. I am trying to use the method of solving for the inverse, then using this inverse to find the answer.   For example, to solve  $3x \equiv 4$  $($$\mod 7$$)$  first, we can find the inverse of $3$ modulus $7$. This inverse is equal to $-2$.   Therefore, we can multiply both sides by $-2$, getting $(-2) \cdot3x \equiv (-2)\cdot4$  $($$\mod 7$$)$, or  $-6x \equiv -8$  $($$\mod 7$$)$  This is where I am confused. I don't understand why this allows us to say that since   $-6x \equiv -8$  $($$\mod 7$$)$,   $x \equiv -8$  $($$\mod 7$$)$  I have been looking through every proof I could find and I cannot figure why this second to last step implies the final step.


How do I evaluate $\lim_{n\rightarrow \infty}\frac{1}{\sqrt{n}}\sum_{k=1}^{n}\frac{1}{\sqrt{k}}$?

How do i evaluate this limit : $$\displaystyle \lim_{n\rightarrow \infty}\frac{1}{\sqrt{n}}\left(1+\frac{1}{\sqrt{2}}+\frac{1}{\sqrt{3}}+............+\frac{1}{\sqrt{n}}\right)$$ ?  Thank you for any help .


Why am I getting a blank page on mobile after adding a comment?

I encountered this situation a few times before, but I didn't care much. This is a bit annoying for mobile users, me alike.  Yesterday I added a comment to  using the Stack Exchange iOS mobile app, which was for my own question. After that, I was greeted with a blank page, which you can see below. Commenting was successful, and it's there. Why is this happening?  EDIT: I was made aware that this question already has an answer , but it doesn't. The OP probably put their comment as an answer.  .  I am running version 1.6.6.2 of the app.


I have a group of shapefiles already loaded into QGIS. How do I export them to a .shp, .dpf, and .shx file that I can put into a folder and load onto another instance of QGIS?


How can I send a live notification when a user gets leveled up?

This question is about how to implement a live notification if the user gets leveled up. My leveling system consists of 100 levels, so every time a user levels up, a notification will pop up into their profile.   while($user->curr_exp >= $user->exp_needed){       if($user->level == 10 || $user->level == 15 || $user->level == 20)       {       $user->reward_token += 1;       }       $user->curr_exp -= $user->exp_needed;          $user->prev_exp = $user->exp_needed;       if($user->level <= 19){       $user->exp_needed = $user->prev_exp * 1.4;       }       elseif($user->level >= 20 && $user->level <= 39){       $user->exp_needed = $user->prev_exp * 1.1;       }       elseif($user->level >= 40 && $user->level <= 59){       $user->exp_needed = $user->prev_exp * 1.05;       }       elseif($user->level >= 60 && $user->level <= 79){       $user->exp_needed = $user->prev_exp * 1.04;       }       elseif($user->level >= 80 && $user->level <= 99){       $user->exp_needed = $user->prev_exp * 1.03;       }       elseif($user->level == 100){       $user->exp_needed = $user->exp_needed * 0;       }       $user->level += 1;       $user->save();      }   Edit:  I have already added a toaster to my profile.blade.php here is the script:  <script type="text/javascript">     $(document).ready(function(e){      $.toast({         text: 'You level up!',         heading: 'Congratulations',         icon: 'info',         position: 'top-right',         bgColor: '#d4af37',         textColor: 'black'     });    })   </script>   Now, everytime i refresh the profile.blade.php, the toastr pops up in the right corner, nonetheless, it's still a static functionality, what I want to happen is when the user gets the exp and gets leveled up, that will be the time the toastr will pop up. Any ideas on how do I call this up?


$ ls -l total 28 drwxrwxrwx 1 t t 4096 May  8  2018  dir1 drwxrwxrwx 1 t t    0 Mar 12  2015  dir2 drwxrwxrwx 1 t t 4096 Jan 17  2014  dir3 drwxrwxrwx 1 t t 4096 Jun 12  2017  dir4 drwxrwxrwx 1 t t    0 Aug 24  2012  dir5   Why is the size  of  a directory either 0 or 4096?  Is the size of a directory 0 because the entries in it can fit into its inode?  Is the size of a directory not 0 because the entries in it can't fit into its inode and thus need some data block(s)?  Why is the nonzero size of a directory always 4096?   Thanks.  Note my observation is the same in ext4 filesystem and in NTFS filesystem. Does it mean both filesystem types implement directories in a similar way?


Evaluate $\lim_{n\to\infty}n\sin(2\pi \mathrm en!)$

Evaluate $$\lim_{n\to\infty}n\sin(2\pi \mathrm en!)$$


I'm trying to run multiple AND combination in grep command, I was able to run using two patterns:  grep -E 'pattern1.*pattern2' filename  Is it possible to use three or four patterns using the above method?


Unexpected goods delivery - is this a scam, and what kind of scam?

My wife received a small package, containing a pair of Ray Ban sunglasses (whether original or fake I don't know) in a nice leather-looking case. It is addressed to her, correct name, street, postcode, and her mobile phone number printed on it. Declared with a value of $15 printed on it, and coming from a company in China. Everything fine, except she never ordered any sunglasses, and she never paid for any sunglasses. I know there are scams where scammers send rubbish items to random people, and that entitles them to post fake reviews on Amazon, for example. The only thing is, this isn't a rubbish item. Even if these sunglasses are fake, they would be worth some money. Does anyone have an idea how either (a) a company in China could send goods to a random real person by mistake, or (b) what kind of scam would make it worth while to send an item that would probably cost £10 to £20 on Amazon?


"Open In Terminal" action in Nautilus in Ubuntu 14.04?

I've gotten used to the "Open In Terminal" option when right clicking in Nautilus.  I used it a lot in 12.04, but it seems to have disappeared in 14.04.  $ sudo apt-get update [...] $ sudo apt-get install nautilus-open-terminal Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package nautilus-open-terminal $ sudo apt-get install nautilus-actions Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package nautilus-actions   How do I get this feature in 14.04?


My ubuntu partition was deleted and I can't boot from either a DVD or USB

It's my first time installing ubuntu. I have Windows 7 and 8 before in my laptop (Acer Aspire 4752z). After Ubuntu (12.04) installed in my laptop, the Windows boot loader didn't recognize my Ubuntu so I updated grub from a live USB.   And after grub updated, Ubuntu was booting perfectly but my Windows wasn't listed in the grub menu. So I follow someone instruction to update grub again. And after reboot, the grub menu didn't show anymore.   After searching about this problem on the net and trying to update grub again and again, I decided to delete the Ubuntu partition from live USB. And shortly after, I booted to Windows with Hiren boot and I used mbrfix. But i think it failed. Now i cant show my BIOS setup or boot from DVD or USB.   After that, the only screen i can see after booting is:  error: unknown filesystem grub rescue>


How to cycle windows of the same app on Czech keyboard layout

cmd+tilde does not work as the key below Esc is mapped to '<' character on my layout. I cannot find any preferences to remap this. Franky I am surprised this does not work, this mapping should be bound to a key and not a character. Is this a bug that should be opened at Apple? Thanks


Chapter Title in rotated vertical box at the margin

I am using the book document class. I would like to have Chapter name (Interduction, Results, Discussion, ...conclusion...) to appear in every page, in the right side small vertical (color filled) box (box size, let say 3cm). So, instead of chapter name in the header or footer, I want it to keep it in right side color filled box ..... sometime we see the style in Dairy, and also in many books as well.  For the first chapter, this right side box will appear at the upper top right margin....then in next chapter the box will be little lower and will have different color.  Is there anyone who can help me on this?


How to omit form's validation at AJAX button click?

I have an AJAX button that should update form fields according to data already provided by user:   'ajax_button' => array(     '#type' => 'button',     '#value' => t("Scan for tags"),     '#ajax' => array(       'callback' => 'ajax_tag',       'wrapper' => 'dynamic-tags-fieldset',       'method' => 'replace',       'event' => 'click',       'prevent' => 'submit click mousedown',     ),   ),   It works, but only if form is valid. Of course I do not want to validate it just yet. I don't care if all fields are filled, I only need my form to be updated at this very moment. How can I make form api not to invoke hook_form_validate() and not test #required fields?


Display the size of the dot based on the value

I import a CSV File and for each coordinate, I get a point in the map. Can I set a column for the value. Then the size should based on the value have a special size. Or based on all values, it should display from max to min value.


Should log file streams be opened/closed on each write or kept open during a desktop application's lifetime?

Should log classes open/close a log file stream on each write to the log file or should it keep the log file stream open throughout the application's lifetime until all logging is complete?    I'm asking in context of a desktop application.  I have seen people do it both ways and was wondering which approach yields the best all-around results for a logger.


Fallout Shelter has a new feature where your Dwellers can also have a Pet. Is there a way to get more pets without purchasing them? Can you find them in the wasteland?


Can't realize alias/substitution function for my .bashrc

I'm trying to colourize my find command so I've added this alias function to my .bashrc.  # liberate your find function find {     command find $@ -exec ls --color=auto -d {} \; }   But there is unexpected behavior using this code. It drops my quotes.  GNU bash, version 4.4.23(1)-release (x86_64-pc-linux-gnu)  Use my function:  find ./ -name '*.pl' -or -name '*.pm'   Result:  ./lib/cover.pm ./lib/db.pm   Using the same find function but built-in:  command find ./ -name '*.pl' -or -name '*.pm'   Result:  ./auth.pl ./index.pl ./title.pl ./lib/cover.pm ./lib/db.pm ./fs2db.pl   So the second variant didn't eat my quotes and works as it should.


Does google search index by IP address or domain name?

I'm thinking of moving a mostly static website from homestead to heroku (using their free dyno plan to save monthly hosting costs). All else equal (e.g. let's say the content and files all remain as is), will simply moving from one host to another damage existing google search results?  The site has been around and hosted on homestead for about a decade and I want to avoid issues with google search indexation.


Applying categorized symbol to each feature using PyQGIS

I want to apply unique symbol to each feature. I have used following code for doing that from qgis.core import * from PyQt4.QtGui import * # supply path to where is your qgis installed QgsApplication.setPrefixPath("/path/to/qgis/installation", True) # load providers QgsApplication.initQgis()  # Get the active layer (must be a vector layer) layer = qgis.utils.iface.activeLayer(); iter = layer.getFeatures(); for feature in iter:     geom = feature.geometry()     print "Feature ID %d: " % feature.id()     qgis.utils.iface.mapCanvas().setSelectionColor( QColor("yellow") );     layer.setSelectedFeatures([feature.id()])     qgis.utils.iface.mapCanvas().zoomToSelected( layer )     qgis.utils.iface.mapCanvas().refresh()     selected_features = layer.selectedFeatures()     for i in selected_features:        attr =i.attributes()     chaltano= str(attr[layer.fieldNameIndex('test')])     renderer = QgsCategorizedSymbolRendererV2("test")     layer.setRendererV2(renderer)     symbol = QgsSymbolV2.defaultSymbol(layer.geometryType())     symbol.setColor(QColor("red"))     cat = QgsRendererCategoryV2(feature.id(), symbol,str(feature.id()))     renderer.addCategory(cat)  Symbol is applying to only last feature. Here, "test" is attribute.


how to ls -l on each file in a directory

Saying that I want to execute ls -l on each file in the directory /usr.  Here is how I did:  cd /usr find . -type f | ls -l   But it doesn't work as expected. The commands above will list all of directories in the /usr:  drwxr-xr-x  11 root root  4096 Mar  6 03:48 ./ drwxr-xr-x  23 root root  4096 Mar  6 02:32 ../ drwxr-xr-x   2 root root 36864 Mar  6 04:37 bin/ drwxr-xr-x   2 root root  4096 Apr 13  2016 games/ drwxr-xr-x  51 root root  4096 Mar  6 05:00 include/ drwxr-xr-x  73 root root  4096 Mar  6 04:34 lib/ drwxr-xr-x   3 root root  4096 Mar  6 03:48 libexec/ drwxr-xr-x  10 root root  4096 Mar  6 02:30 local/ drwxr-xr-x   2 root root  4096 Mar  6 04:34 sbin/ drwxr-xr-x 147 root root  4096 Mar  6 04:34 share/ drwxr-xr-x   6 root root  4096 Mar  6 04:00 src/   Why does the command give me such an output? How to list each file using ls -l in the /usr?


Is a function declared in the global scope a closure?

I am preparing for a job interview as a JS developer and I bumped into this closure definition:     A closure is a function defined inside another function (called the parent function), and has access to variables that are declared and defined in the parent function scope.   Let's consider two different pieces of code:  function a() {     const temp = 1;      function b() {          console.log(temp);      }         }     So obviously function b is a closure, because it was declared inside function a and has access to its variable temp.  But what if I declare just a function just like that, without an IIFE:  function c() {     alert("Hi") // a function taken from the global scope }   My c function wasn't declared inside any function, yet it has access to the global scope. Can it be called a closure, or should it be specifically declared inside another function to be called one?


Quite often, I have lists with short items, e.g.:  \documentclass[a4paper,9pt]{scrartcl} \usepackage{braket}         % for \Set{}  \begin{document} adsfasdf \begin{itemize}     \item $\Set{A}$     \item $\Set{A, B}$     \item $\Set{A, B, C}$     \item $\Set{A, B, C, D}$     \item $\Set{B}$     \item $\Set{C}$ \end{itemize} test text tex \end{document}   which looks like this:    I know that I can get this with tables and three lists. But can I also achieve the same result simpler?


How do we use drupal_add_library(), drupal_add_css() and drupal_add_js()?

How do I use drupal_add_library(), drupal_add_css() and drupal_add_js() in Drupal 8?  I am porting a module that uses those functions. I am following what reported in , which says these functions have been removed in favor of #attached, but I am not able to attach these files to my configuration page.  The error I am getting is the following:     Uncaught PHP Exception LogicException: "You are not allowed to use js in #attached"   How do I attach CSS and JavaScript to a page?


As I understand this is a somewhat common issue; but common fixes aren't helping. Minecraft is currently not allowing me to connect to any servers. It does not appear to be a firewall issue as disabling the firewall does not change results, I added a rule to the firewall also, but could have easily messed that up. I believe the issue is due to a VPN which enables a firewall when it protects my network. I have tried to disable the VPN and even uninstalled it to no benefit. I have tried restarting my internet and connecting to a different internet. Nothing helps. I am incredibly not tech savvy pls help.  Edit: tried changing versions, which I assume would avoid the issue listed in this very similar post: , that is to taken with a grain of salt however this is so very not my forte.  Edit: Minecraft has been uninstalled and reinstalled to no avail.


Creating Volumetric lights from a mesh in cycles?

is it possible / / how do i make an object give off "godrays" so that, for instance you can see it through slits in a wall?   I'm trying to make this, (an icosphere with a sphere inside, the inner sphere gives off a blue glow) into a sort of "disco ball" is the best i can describe it. but i'm fairly new to anything blender and have no clue how to achieve this.   I read somewhere that the only object that could give off volumetric light is a spot lamp, but the thread was like 3 years old.  Edit: thanks for the help, what you said to do worked, just can't have a material output and lamp at the same time apparently :D but that's fine it looks good now!


Is there a way to only delete the chat profile?

A user profile on the site can be deleted via  in the settings. Is there a way to delete only a chat profile? If the user can’t do it by himself/herself, can the moderators?


Replace string with HTML equivalent. Apart from  tags

How could I go about replacing a string:  Hello my name is max!     with  Hello my name is max!  &lt;script&gt;alert("DANGEROUS SCRIPT INJECTION");&lt;/script&gt;     I can easily have all the <,> replaced with &lt;,&gt; with:  string = string.replace(/</g, "&lt;").replace(/>/g, "&gt;");   but I still want to be able to have  links.    I have also looked into preventing script injection with:  var html = $(string.bold());  html.find('script').remove();   But I want to be able to still read the script tags rather than them being removed.


What is the best chain and gear lubricant used by pro cyclists either for maintenance or for racing and how often is it recommended to apply? I have limited knowledge and so I have always simply used a product named .


How many parameters are in a gated recurrent unit (GRU) recurrent neural network (RNN) layer?

The title says it all -- how many trainable parameters are there in a GRU layer? This kind of question comes up a lot when attempting to compare models of different RNN layer types, such as long short-term memory (LSTM) units vs GRU, in terms of the per-parameter performance. Since a larger number of trainable parameters will generally increase the capacity of the network to learn, comparing alternative models on a per-parameter basis is an apples-to-apples comparison of the relative effectiveness of GRUs and LSTMs.


is Le creuset pan 22 cms enamelled or not

I bought an old pan on ebay and I wish to know if it is enamelled or raw. Inside of pan has a black layer and a spot patch 6 by 3 cms of different layernature. How do I find out out if pan is raw cast iron. The thin black layer is difficult to identify. The seller says that pan is not enamelled. But I doubt it.


Does this series converge or diverge? $\sum_{n=1}^\infty\ln\left(1+\frac1{n^2}\right)$

I have a series here, and I'm supposed to determine whether it converges or diverges. I've tried the different tests, but I can't quite get the answer.     $$\sum_{n=1}^\infty\ln\left(1+\frac1{n^2}\right)$$


I know that to convert from int to bytes you have to do this, for example:  >>>a = bytes(4) >>>print(a) b'\x00\x00\x00\x00'   But what do I do if I want to revert it and convert bytes to int or float?  I tried using:  int.from_bytes( a, byteorder='little')      and  int.from_bytes( a, byteorder='big', signed=True)    but it did not work.


Blender export fbx file holes in mesh deformed

After learning that booleans were apparently "bad" in my past question of this same problem, I decided to learn to use the knife tool instead to cut windows and doors in my ship.  Old thread:   Unfortunately, despite using the knife tool and everything looking allright in Blender, when exporting to fbx and using in ClothingToolCHECKED of the Nvidia apex cloth simulation, the cut outs were extremely deformed. This is the second time this has happened, even though I'm not using booleans!  This is very frustrating, as it took me a long time to redo the parts of my ship that had booleans in them.  Here are images of what I mean:  Blender:    fbx export:


how to get the unique id of a dynamic element in selenium webdriver

How can I get the unique id of the element in selenium webdriver. For example email id creation: Each time the system creates a unique id for the email id. How can we use that specific id in selenium webdriver for testing when it is constantly changing ?


GCD of $a+b$ and $\frac{a^p + b^p}{a+b}$

In Ivan Niven's book on "Introduction to the theory of numbers", there is a question in the first chapter that has been boggling me.   Given $p$ is an odd prime and $(a,b) = 1$ where $(a,b) = \gcd(a,b)$, show that $$ \left(a+b,\frac{a^p + b^p}{a+b} \right) = 1 \mbox{ or }p$$  To gain intuition, I started with $p=3$ case. I was able to prove the result by eventually showing that the above gcd was equal to $(a+b,3)$. My guess therefore is that we should be able to show that this gcd is equal to $(a+b, k(a+b)+p(u))$ where $(u,a+b)=1$. However I have not been successful in this endeavor. Perhaps there is an alternate strategy...  I would appreciate any hints/tips/ideas on how to proceed. If I get it, i'll post my method as an answer.


What is this symbol, and how to reproduce it? (vertical bar with small footer)

How to reproduce this symbol, using Latex, that consists of a long vertical bar, on the right hand side of an expression, and some small text at the bottom, that defines some condition?    How to reproduce this symbol using latex?


What exactly causes quantum wave function collapse?

I've heard many things, such as the wave function collapses when the particle or system it determines is observed. But then I've heard that if we consider that to be the case, it's incomplete. What truly does cause wave functions to collapse? Maybe consciousness is one of many things that can cause wave functions to collapse? What component of observation causes collapse?


How to make a x versus on text and math mode?

For example, Voltage X Current. X and versus are understandable, but a slightly different X would be better.


I want to know what the Krull dimension of this ring $\mathbb C[x,y]_p/(y^2-x^7,y^5-x^3)$ is, where $p\neq (0,0)$. I know the dimension of it in the origin point, but I don't know other cases.


Order a List naturally using a property of T naturally

I am attempting to sort a List of fuses by the Designator property of the fuse.  The Fuse Model:  public class Fuse {     public string Designator { get; set; }      public string Rating { get; set; }      public string Type { get; set; } }   Example Data  This is an example of what a list of fuses would look like.    What I have tried:  fuses = fuses.OrderBy(f => f.Designator).ToList();   The above code sort of works, but it puts the F10 before F2. Does anyone know of a way to sort a List by the designator appropriately? I have read about natural sorting algorithms but not quite sure how to apply them correctly.  Any help would be greatly appreciated.  Thank you,


Using a Convection oven. Do I use the same temperature as a Fan oven?

I am using a Convection oven. Do I set the temperature the same as a fan oven? (Eg instructions only mention 190c Fan or 200c Electric for 25-30minutes) Unable to find a basic temperature conversion chart. Just Electric/Fan!


l.28    \oiint              \phi \cdot \hat{nmath} dS, ?   This is my error. I cannot figure out what is wrong. This equation is nested in a \begin{equation} \end{equation}, so that is why i do not have the $$. Thanks.


When rendering, I only get a grey image.


Stack Exchange for Popular Music and Music Videos

Is there a Stack Exchange where questions can be asked regarding musical artists, music videos, etc?  For example, if someone was wondering about how a band formed, which artists hail from a certain country, the meaning of lyrics, mentions of a town in songs, etc.  This question comes from the fact that I have a music video where it seems like the artist's voice is cut out at certain times and I was wondering what the missing words were.


Science Fiction Novel depicting a society where people are paid to shop and pay to work

I am looking for the author and title for a Science Fiction novel depicting a society where people are paid to obtain necessities and pay to work. It may be a Heinlein, Asimov, or Clark title. Does anyone remember that subplot?


How to move file from on folder to another folder as a different user?

how to move file from on folder to another folder as a different user.  I am general user I don't have write access, hence I cant write or modify or paste any file in specific folder (C:\test).  If I login as admin user I can write or modify or paste the files in (C:\test)  I wanted to write python code which can do this activity.  I tried, shutil but not help following is my code:  shutil.move(source+f, dest1)   Could someone help to paste file from one folder to another folder as a different user?


Is liquid cooling necessary for high CPU performance over extended periods?

I'm planning on building a system for high CPU and memory performance.  Graphics performance is not a major concern, as I do not plan to use it for gaming.  I noticed that liquid cooling seems to have become common since my last build, and I am wondering if it is needed in my case.  I do not plan to overclock any of the components.  The intended use for the system is primarily development and occasional compute-intensive tasks that will run on all cores continuously for several days to a week.  The system will not normally be in continuous usage like this, but it needs to be capable of occasional extended periods of continuous use at full capacity.  I have included the main components below.  CPU: i7-5960X  Memory: 64GB DDR4  Graphics card: Nvidia GeForce GT 730 2GB  Drive 1: 1TB SSD  Drive 2: 4TB 7200RPM HDD  Power supply: 700W  Is liquid cooling needed for the above build?  If not, is there any advantage in using it?  I have read reviews that mentioned liquid cooling unit failures that resulted in leaks, so I would rather not use it if it is not necessary.  Thanks!


I am not a native speaker, but I noticed that sometimes people use Bachelor or Bachelor's in some context, although I don't understand the difference:  See for instance also this question   For instance I would call myself a Bachelor student, but do I do my Bachelor's studies or my Bachelor studies?   Actually, I don't understand the difference between Bachelor and Bachelor's and I don't know when to use one or the other. Could anybody help me with that?


Install Windows 10 on external hard drive.. but

i want to install windows 10 to my external disk drive on this early 2008 iMac, but when i follow some tutorials online, when booting to windows 10 setup i only get this message "no bootable device found -- insert boot disk and press keys" so i am in a loophole now. please help me


I've heard the total energy is zero, but I've also heard it cannot be said to be zero since there's so much unknown stuff in the universe. Is that true?


Can cited works hold grammatical positions in sentences?

Though I read this style quite often, I was recently told unambiguously by a reviewer that I was NOT supposed to use citations "as if they are objects in a sentence."  The following sentence is an example of what the reviewer considered unacceptable:       We analyzed the data using the Wilmerding method, guided by [12].   The references section might include the following:      [12] Smith, D., Marshawn, J., & Devenshaw, A. 2011. Techniques and   Procedures for Applying the Wilmerding Method.  Prince Publications,   Inc, New York, NY.   The Wilmerding method1 is not a step-by-step algorithm that can be precisely followed as if by a machine, and thus [12] does not provide a step-by-step algorithmic description but rather guidance for using  the method. [12] is a relatively slim but authoritative textbook about how to use the Wilmerding method.  Within this question, for the purpose of discussion, I have intentionally put [12] in grammatical positions where it's an important element of the sentence and the sentence would make less sense without the reference.  Sometimes that seems to be the most efficient way to communicate the intended message.  Is using a reference as a grammatical sentence element like this OK?   Why might this not be considered acceptable?   Should I be rewording those sentences?  Is it enough of a violation to be worth passing the note on to authors of papers I review?   I considered posting this on  but it seems more specific to academia than general English usage, and the comment came from a content reviewer rather than a copy editor.   is related but it seems to be more about when to put authors names' in vs. outside of the parentheses in an APA-like style.   The numbered citation style (as opposed to following APA, for example) is required by the venue.  1: Fictionalized for the purpose of this discussion


MySQL and PHP: UTF-8 with Cyrillic characters

I'm trying to insert a Cyrillic value in the MySQL table, but there is a problem with encoding.  Php:  <?php  $servername = "localhost"; $username = "a"; $password = "b"; $dbname = "c";  $conn = new mysqli($servername, $username, $password, $dbname);  mysql_query("SET NAMES 'utf8';");  mysql_query("SET CHARACTER SET 'utf8';");  mysql_query("SET SESSION collation_connection = 'utf8_general_ci';");   if ($conn->connect_error) {     die("Connection failed: " . $conn->connect_error); }   $sql = "UPDATE  `c`.`mainp` SET  `search` =  'test тест' WHERE  `mainp`.`id` =1;";  if ($conn->query($sql) === TRUE) {    } $conn->close();  ?>   MySQL:                                       | id |    search   |             | 1  |   test Ð°Ð² |   Note: PHP file is utf-8, database collation utf8_general_ci


Wiring 2 ac to DC power adapters together

I have a mini amp and several powe adapters. Can I wire 2 6 volt DC power supplies together for the required 12v DC the amp needs? If so, how? And it suggests 2 amps. Are amps cumulative, and does it matter if they are different? the only relevant video i could find on you tube didnt quite fit my situation and i ended with more questuins than answers


Positive integers less than 1000 without repeated digits

How many integers from 1-999 do not have any repeated digits?  The answer is explained in this , but why is the last set 9*9*8? Why not 9*9*9?


Group generated by $x,y$. With relations $x^3=y^2=(xy)^2=1$.

Let $G$ be a group generated by $x,y$ with the relations $x^3=y^2=(xy)^2=1$. Then show that the order of $G$ is 6.   My attempt: So writing down the elements of $G$ we have $\{1,x,x^2,y,\}$. Other elements include $\{xy, xy^2, x^2y\}$ it seems I am counting more than $6$. Are some of these equal? how do I prove that?


If $p,q$ are prime, solve $p^3-q^5=(p+q)^2$.

If $p,q$ are prime, solve $$p^3-q^5=(p+q)^2$$  I can't think of a nice idea for the solution. Since there's a solution $(7;3)$, consisting of two distinct numbers, I really doubt modular arithmetic would help here in any way. I wonder if there's an interesting and simple approach. Thanks.


Let $A$ be an n×n matrix with eigenvalues $\lambda_1,\dots,\lambda_n$. Show that $\lambda_1^k,\dots,\lambda_n^k$ are the eigenvalues of $A^k$.  I don't know where to start.


I am executing Skyrim through Steam Big Picture with the controller but when I select Play on Big Picture, the launcher of the game appears and I have to use the mouse to start to play. This is very annoying and I would like to start to play avoiding this step.  I have seen that you can set parameters to the laucher on Big Picture mode.  This question seems to be duplicate, but this problem is slightly different because I need to open the game through the current executable to be able to get new achivements and to accumulate playing hours.  UPDATE: I am using a computer just to play games, so Steam opens at start with Big Picture Mode, so I Boot the computer and I can start to play only using my controller. The problem is that the launcher doesn't work with the controller and I have to use the  mouse just for it.


Case insensitive regular expression without re.compile?

In Python, I can compile a regular expression to be case-insensitive using re.compile:  >>> s = 'TeSt' >>> casesensitive = re.compile('test') >>> ignorecase = re.compile('test', re.IGNORECASE) >>>  >>> print casesensitive.match(s) None >>> print ignorecase.match(s) <_sre.SRE_Match object at 0x02F0B608>   Is there a way to do the same, but without using re.compile. I can't find anything like Perl's i suffix (e.g. m/test/i) in the documentation.


Is it possible to activate an iPhone 4 without a SIM?

So we bought an iPhone 4 from the Apple store. But we didn't get a micro-SIM as there are no PAYG tariffs on micro-SIM available.  Is there anyway to activate the device without getting hold of a SIM? I don't want to sign up to a contract just to develop with.


I have the following code:  \widetilde{\text{trunc}(\Delta_\mathbf{tot}(X))}   and the output in codecogs is     How Can I do to extend \widetilde? How Can I do to have the following formula:


Unable to understand the logic of the part to the right of assignment operator when creating object of inner class

I did not find my answer in the questions I searched , that's why I am asking it .  class outer  { class inner  // non static . { } }  For creating object of inner class I am unable to understand the logic of the part to the right of assignment operator .  outer o = new outer () ; outer.inner y = o. new inner () ; //  I have doubt in this line .   Here outer.inner is the return type but what about the right portion ?  Thing I know : We cant write outer.inner y = new outer.inner () ; since inner is non static .


Error log is:  016-02-21 21:22:34 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" .... .... 2016-02-21 21:22:37 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:22:37 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:22:37 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:22:37 GET LOG:  CreateProcess call failed: A blocking operation was interrupted by a call to WSACancelBlockingCall.       (error code 299) 2016-02-21 21:22:37 GET LOG:  could not fork new process for connection: No error 2016-02-21 21:22:37 GET LOG:  incomplete startup packet 2016-02-21 21:22:38 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:22:38 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:22:42 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:22:42 GET DETAIL:  Connection matched pg_hba.conf line 83: "host    all             all             ::1/128                 md5" 2016-02-21 21:24:26 GET LOG:  could not receive data from client: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. 2016-02-21 21:24:26 GET LOG:  incomplete startup packet 2016-02-21 21:24:29 GET FATAL:  password authentication failed for user "postgres" 2016-02-21 21:24:45 GET PANIC:  could not write to log file 000000010000000100000041 at offset 4259840, length 8192: Invalid argument 2016-02-21 21:24:45 GET STATEMENT:  COMMIT 2016-02-21 21:24:53 GET LOG:  server process (PID 470944) was terminated by exception 0xC0000409 2016-02-21 21:24:53 GET DETAIL:  Failed process was running: COMMIT 2016-02-21 21:24:53 GET HINT:  See C include file "ntstatus.h" for a description of the hexadecimal value. 2016-02-21 21:24:53 GET LOG:  terminating any other active server processes   Can anyone help to solve the problem? I spent many hours but didn't find a solution.   Postgres version 9.4 Operating System: Windows  postgresql.conf is:  listen_addresses = '*' port = 5432  max_connections = 100 shared_buffers = 128MB   dynamic_shared_memory_type = windows   pg_hba.conf is:  # IPv4 local connections: host    all             all             127.0.0.1/32            md5 host    all             all             0.0.0.0/0               md5


Which word should one use -- "to", "as", or "into", or another word or phrase-- in sentences such as this one: "[Idiom] translates [to, as, into] [translation]? For example, "Piece of cake" translates [to, as, into] easy task." Or is there a better word choice than "translate"?


Can anyone tell me why the following code is generating a Null Pointer Exception?

I'm working on a project where I must write a class SeparateChainingMap that represents a separate chaining hash table and implements the Map interface.Every time that I run my code I am getting a Null Pointer exception caused by my insert method. Can anyone provide guidance on what I am doing wrong?  I've included all of my code so far below. The NullPointerException is being thrown when I call the insert method.   import java.util.LinkedList; import java.util.*;   public class SeparateChainingMap<K extends Comparable<? super K>, V>   implements Map<K,V> {  public static final int INITIAL_SIZE = 10; private int currentSize; private LinkedList<Pair<K,V>>[] table;   @SuppressWarnings("unchecked") public SeparateChainingMap() {     table = (LinkedList<Pair<K,V>>[]) new LinkedList[INITIAL_SIZE];  }  @SuppressWarnings("unchecked") public SeparateChainingMap (int size) {     LinkedList<Pair<K,V>> [] table = new LinkedList[INITIAL_SIZE];     for (int i=0; i<table.length; i++) {         table[i] = new LinkedList<Pair<K,V>>();     } }  //Introducing the hash function private int myHash(Pair<K,V> x) {     int hashValue = x.hashCode();     //divide the hashValue by mod table length     hashValue %= table.length;      if(hashValue<0) {         hashValue += table.length;     }     System.out.println(hashValue);     return hashValue; }  //rehash function @SuppressWarnings("unchecked") private void rehash() {     LinkedList<Pair<K,V>>[] oldTable = table;      //Create new double-sized empty tables     table = (LinkedList<Pair<K,V>>[]) new LinkedList[2 * table.length];      for (int j=0; j< table.length; j++) {         table[j] = new LinkedList<>();     }       //Copy table over     currentSize = 0;     for (int i=0; i<oldTable.length; i++) {         for(int j=0; j<oldTable[i].size(); j++){             insert(oldTable[i].get(j));          }      }         }  //Find an item in the hash table. returns true if x is found public boolean contains(Pair<K,V> x) {     LinkedList<Pair<K,V>> thisList = table[myHash(x)];     return thisList.contains(x); }  //Method for inserting a pair into the hash table public void insert(Pair<K,V> x) {     LinkedList<Pair<K,V>> thisList = table[myHash(x)];      if(!thisList.contains(x))     {         thisList.add(x);     }      if (++currentSize > table.length) {         rehash();     }   }  public void remove (Pair<K,V> x) {     LinkedList<Pair<K,V>> thisList = table[myHash(x)];      if(thisList.contains(x)) {         thisList.remove(x);         currentSize--;      } }  public void makeEmpty() {     for(int i = 0; i<table.length; i++) {         table[i].clear();     currentSize = 0;     } }  //map functions @SuppressWarnings("unchecked") public V get (K key) {     Pair<K,V> pair = new Pair<K,V>(key,null);     int i = myHash(pair);      for(int j=0; j<table.length; j++) {          if(i == j) {             for(int k=0; k<table[j].size(); k++)             {                 if(key.equals(table[j].get(k).key)){                     V value = table[j].get(k).value;                     return value;                 }             }           }      }       return null; }  public void put(K key, V value) {     Pair<K,V> pair = new Pair<K,V>(key, value);     insert(pair);  }   public static void main(String args[]) { @SuppressWarnings("unchecked")  SeparateChainingMap<String,Integer> SCM = new SeparateChainingMap<>();  SCM.put("Alice", 243);   }


How to work with TreeSet in Java as the value of TreeMap?

I have the Java app which takes some rdf dataset as input and works on this data. I used TreeMap in which the key is instance name and the value is TreeSet including the list of properties that instance have and the int which let us .  static TreeMap<String, TreeSet<PropertyIsTyped>> instanceListPropertiesTreeMap = new TreeMap<String, TreeSet<PropertyIsTyped>>();  String instancemapKey = s[0]; TreeSet<PropertyIsTyped> setOfPropertiesPerInstance = new TreeSet<PropertyIsTyped>(); if (instanceListPropertiesTreeMap.get(instancemapKey) == null) {     setOfPropertiesPerInstance.add(new PropertyIsTyped(s[1], 1));     instanceListPropertiesTreeMap.put(instancemapKey, setOfPropertiesPerInstance); } else if (instanceListPropertiesTreeMap.get(instancemapKey) != null         && !setOfPropertiesPerInstance.contains(s[1])) {     setOfPropertiesPerInstance = instanceListPropertiesTreeMap.get(instancemapKey);     PropertyIsTyped currentListproperties = new PropertyIsTyped(s[1], 1);     setOfPropertiesPerInstance.add(currentListproperties); }   On the other hand my PropertyIsTyped class is like:   public class PropertyIsTyped {      public int isTyped;      public List<String> PropertySet;      public PropertyIsTyped(String properties, int typevalue) {         // this.propertyId = id;         if (properties != "")             PropertySet.add(properties);         if (typevalue == 1) {             this.isTyped = 1;         } else {             this.isTyped = 0;         }     }  }   Problem: When I give my data set when it wants to insert my new propeties in my List PropertySet it gives my the NullpointerExceptionError  Any Ideas?


Why can't I review suggested edits on beta site but lower-rep users can?

I currently have the second-highest rep on , which just went public beta.   says, "You need at least 1k reputation to review suggested edits."  Presently only one user has that much rep.  But the queue shows that users with less than 100 rep are reviewing suggested edits.  What is going on?


The set of differences for a set of positive Lebesgue measure

Quite a while ago, I heard about a statement in measure theory, that goes as follows:     Let $A \subset \mathbb R^n$ be a Lebesgue-measurable set of positive measure. Then we follow that $A-A = \{ x-y \mid x,y\in A\}$ is a neighborhood of zero, i.e. contains an open ball around zero.   I now got reminded of that statement as I have the homework problem (Kolmogorov, Introductory Real Analysis, p. 268, Problem 5):     Prove that every set of positive measure in the interval $[0,1]$ contains a pair of points whose distance apart is a rational number.   The above statement would obviously prove the homework problem and I would like to prove the more general statement. I think that assuming the opposite and taking a sequence $\{x_n\}$ converging to zero such that none of the elements are contained in $A$, we might be able to define an ascending/descending chain $A_n$ such that the union/intersection is $A$ but the limit of its measures zero. I am in lack of ideas for the definition on those $A_n$.  I am asking specifically not for an answer but a hint on the problem. Especially if my idea turns out to be fruitful for somebody, a notice would be great. Or if another well-known theorem is needed, I surely would want to know. Thank you for your help.


What is the difference between add_action and add_filter

I just want to know what is the difference between the add_action and add_filter. I just could not get it enough in the documentation of wordpress. Can anyone explain it more broader and simpler. Thank you in advance.


I have configured a new Ubuntu installation in a Notebook to use a swap file, instead of using a swap partition.   By default is not possible to get Ubuntu to hibernate using a swap file, so I tried , but it is specific to grub1, and Ubuntu now uses grub2.   Does anybody know how to do this?


Is it worth it going to academic conferences as undergraduate without any research to present?

In particular, I would like to focus on CS Theory conferences like STOC or FOCS.  I am interested in the presented topics and, of course, it would be useful to learn more about it for potential graduate research. But on the other hand, one can always read the presented papers when they are published. It seems that the most important part of conferences is networking, however, I do not see myself being efficient in networking at this point yet.


In my site I use a View Model for each page. Each View Model consists of properties only, nothing else. Several of the pages use the same group of properties. What I would like to do is create a single class for each group of properties and then use the relevant groups on each pages View Model.  example property groups:  public class GroupCar {     public string CarName { get; set; }     public string CarColour { get; set; }     public string CarLink { get; set; } }  public class GroupSport {     public string SportName { get; set; }     public string SportLocation { get; set; }     public string SportLink { get; set; } }  public class GroupFood {     public string FoodName { get; set; }     public string FoodPrice { get; set; }     public string FoodLink { get; set; } }   Now in my View Model I would have several properties for this page and I would also like to use some properties from these groups.  I can Inherit one of the groups easily   public class VMMyPage : GroupCar {     //My Bespoke Properties }   How do I inherit multiple groups though...something like:  public class VMMyPage : GroupCar, GroupSport, GroupFood {     //My Bespoke Properties }   I know you can't do this in C# but is there a workaround? I've read several articles about using an interface class but there are no examples of exactly what I'm trying to achieve?


Last night I was toying a bit with the performance difference between managed and unmanaged code. Here I am refering to C# and C++. To put it simply I was pretty shocked with the difference, and wanted to share this experience and perhaps get enlightened if I am doing something wrong.  My testing application was calculating up to a million primenumbers.  My testing machine was a Intel i-7 920, overclocked to 3.81Ghz.  Disclaimer: I didn't do any algorithm optimization of any sort. The algorithm is taken from a previous stackoverflow topic. The code is 100% identical, and I have not taken any parallel advantage on purpose, to make the test equal. Please taken in account I am not a C++ programmer, it is my first time playing with C++. I mainly only do C# and Java. I wrote the C++ part as a DLL file, which I will invoke in C# with Pinvoke.  C++:  #include <stdio.h>  extern "C" {     __declspec(dllexport) long FindPrimeNumbers(int n)     {         int count = 0;         long a = 2;         while(count < n)         {             long b = 2;             int prime = 1;             while(b * b <= a)             {                 if(a % b == 0)                 {                     prime = 0;                     break;                 }                 b++;             }             if(prime > 0)                 count++;             a++;         }         return (--a);     } }   C#:  static long PrimeNumbers(int n)         {             int count = 0;             long a = 2;             while (count < n)             {                 long b = 2;                 int prime = 1;                 while (b * b <= a)                 {                     if (a % b == 0)                     {                         prime = 0;                         break;                     }                     b++;                 }                 if (prime > 0)                     count++;                 a++;             }             return (--a);         }   Please remember, I will compile the C++ method in C#.  [DllImport("myDLL.dll", CallingConvention = CallingConvention.Cdecl)] public static extern long FindPrimeNumbers(int n);           static void Main(string[] args)         {             const int numbersToFind = 1000000;             Stopwatch sw = new Stopwatch();             sw.Start();             PrimeNumbers(numbersToFind); //C#             sw.Stop();             Console.WriteLine(sw.Elapsed);             sw.Restart();             FindPrimeNumbers(numbersToFind); //C++ Pinvoke             sw.Stop();             Console.WriteLine(sw.Elapsed);             Console.ReadLine();         }   There is a HUGE difference in the result, between these two codes:  C# = 00.00.32.6975885 C++ = 00.00.10.5427109   I know there can be made optimization for the algorithm such as using the parallel for loop provided by the .NET, but this is not the point. I just want to know, if this is a normal performance behavior between unmanaged and managed code? Or that I have maybe skipped something? I tried to search on Google yesterday, about the performance difference between C# and C++ and there was so many topics where people could swear by their graves, that the performance between these two languages are identical.


Taking back control of Windows 8 Machine: Exhausted Options

I have a Dell Windows 8.1 with lost administrative accounts' passwords. I have exhausted the following options:   chntpw: I have tried both booting chntpw and a live CD boot to install and run chntpw. I enable and blank password for the built-in administrator account and also blank the password for the regular administrator account. Upon reboot, I notice no changes. Strangely, chntpw claims that the password is "already blank" when booting chntpw from USB stick. NOTE: I have used chntpw several times in the past on Windows 7 and older OSs. This is, however, the first time I have used it on 8.1. Ophcrack: I am not familiar with this software, so I might have been using it wrong. The software seemed to not even be able to recognize that the accounts had passwords.  Perhaps there is no local password, but rather a Microsoft account password? There seems to be no indication of this. The option on the sign-on screen to "reset password" mentions no Microsoft account, only to insert a recovery USB stick. Trinity Rescue Kit: I could not figure it out. I kept running into issues I couldn't find support for online. I'd rather not go that route. Reset to factory settings: No luck. There is no recovery partition (no option to "reset this PC" from login or from troubleshooting boot screen). Creating a recovery ISO requires an admin password. I tried to create a recovery ISO from Dell's website, but they do not have any images for this device.   At this point, I do not know what to do. The only option left I can think to do is to buy a new Window's license and install, but I naturally do not want to go that route. Fellow technicians, are there any options I have not attempted? What else can I do from the options I have tried? At this point, any destruction of data is fine, save for Windows itself, which I would like to keep!  As described in my question, I have tried the solutions listed in the similar question.


If I try to login to a GUI via lightdm or sddm, no problem. If I try to login to a virtual terminal (ctrl+alt+F1 or F2...) it lets you type a username and press enter but it then acts like something has been entered into password and cursor goes to the next line and says invalid login 4 times in a row before "resetting" to the top of the screen as if no login attempt has occurred.  Basically, if I had to guess, I think the upgrade must have broken something with .bashrc or related files. I do not know where to look to diagnose the issue.  This issue is immediately following an upgrade from ubuntu 16.04.whatever the latest was to 18.04.2 Things may have been interrupted during the upgrade, I'm not sure. (I did it overnight and slept while it upgraded and it had rebooted when I came back) I reran do-release-upgrade to make sure and it asks if I want to go to 18.10 and nothing else seems wrong. Give me a hand please?


How to change a certain parameter of all principled shaders in my blend file?

I have like 100 objects, each with its own material, different mesh, own texture and UV maps. I want to immediately adjust only one parameter for all the materials, say: metallic but I want to keep separate textures, so I won't just link materials. I found that "copy to selected" does not work for material properties (this would be a cool feature, by the way). I also watched a tutorial about group nodes and yeah, it's cool to control many materials with a single node, but I would sooner move 100 sliders manually, rather than set up a node tree for each material. If there's no tool for it, I would be happy with a simple python script that takes all materials in the model and changes them one parameter.


Remove Power Options From Start Menu but Keep them in GINA Screen

Please do not close as a duplicate.  does not solve this problem. I want to see the power options on the GINA screen. The title basically sums it up. I want to remove the Power Options in the Start Menu, just to prevent accidental shutdowns due to muscle memory. I still want to be able to shutdown, without using a command prompt/desktop script, to shut down or restart. So I want to keep the power options on the GINA (ctrl+alt+del) screen. The Remove and prevent access to the Shut Down, Restart.. group policy removes it from both. As far as I can tell the registry entries under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Start\ also remove them from both. Is there any way to remove from just Start?


Why electrons flow through a wire connected to a battery?

I would like to know why does electrons flow through a wire connected to a battery as said in .It tells that "the electrons that are stripped from the carbon electrode is collected on the zinc can" and then tells     The electrons at the negative terminal want to go to positive terminal, they just need a way to get there. In our light bulb circuit, the way to get there is through the wire.   Why couldn't the electrons go to the positive terminal through the electrolyte(potassium hydroxide) instead of going through the wire?


Comparing smoothing splines vs loess for smoothing?

I wish to better understand the pros/cons for using either loess or a smoothing splines for smoothing some curve.  Another variation of my question is if there is a way to construct a smoothing spline in a way that will yield the same results as using loess.  Any reference or insight are welcomed.


Word to describe when someone describes something in too much detail

In American psycho the main character describes how he kills and what he does when he kills in so much detail.


Exception in thread "main" java.lang.NullPointerException?

I am a beginner in java programming. I am trying to recreate a simplified version of the card game war. I ran my program which is posted below and it came back with this error:   Exception in thread "main" java.lang.NullPointerException  at cardgame.BuildDeck(cardgame.java:36)  at cardgame.main(cardgame.java:60)  I have been trying to solve this issue on my own through research, but I could not solve it. I was wondering if anyone can help me. If you do need any other information about my program, please just ask. Thanks in advance!  -FGxMatta   public class cardgame  { static class TheCard {     // Java getter & setter     private String CardName;     private int CardRank;     private int Chosen;      public TheCard(int rank, String name)     {         this.CardName = name;         this.CardRank = rank;         this.Chosen = 0;     } }   @SuppressWarnings("null") private static TheCard[] BuildDeck() {     TheCard[] TheDeck = null;     String[] Cards =  {"2","3","4","5","6","7","8","9","10","Jack","Queen","King","Ace"};     String[] Suits = {"Spades","Hearts","Diamonds","Clubs"}; int[] Rank = {2,3,4,5,6,7,8,9,10,11,12,13,14};     int cardnumber = 0;     for (int i = 0; i < Cards.length; i++)     {         for (int j = 0; j < Suits.length; j++)         {             String deckcard = Cards[i];             String suitcard = Suits[j];             String cardname = deckcard + "-" + suitcard;             TheDeck[cardnumber] = new TheCard(Rank[i], cardname);               cardnumber++;         }     }     return TheDeck; } private static TheCard GetRandomCard(TheCard[] OrderedDeck)  {     TheCard thecard;     int random = (int) (51*Math.random ());     thecard = OrderedDeck[random];     if (thecard.Chosen == 0 )       // if available...      {         thecard.Chosen = 1;         // mark it taken...         return thecard;     }     else     {         return GetRandomCard(OrderedDeck);     } }  public static void main(String args[]) {     TheCard[] OrderedDeck = BuildDeck();     System.out.println ("Welcome, Prepare for War!");     int decksize = OrderedDeck.length;     int player1wincount = 0;     int player2wincount = 0;     int tiecount = 0;     for (int cardcount = 0; cardcount < decksize;)     {         TheCard Player1 = GetRandomCard(OrderedDeck);         cardcount++;         TheCard Player2 = GetRandomCard(OrderedDeck);         cardcount++;         System.out.println ("Player 1's card is: " + Player1.CardName);         System.out.println ("Player 2's card is: " + Player2.CardName);         if (Player1.CardRank > Player2.CardRank)         {             System.out.println("Player 1 wins this hand");             player1wincount++;         }         if (Player1.CardRank < Player2.CardRank)         {             System.out.println("Player 2 wins this hand");             player2wincount++;         }         if (Player1.CardRank == Player2.CardRank)         {             System.out.println("Player 1 and Player 2 played the same valued card");             tiecount++;         }     }     System.out.println ("Player 1 won " + String.valueOf(player1wincount) + " hands");     System.out.println ("Player 1 won " + String.valueOf(player2wincount) + " hands");     System.out.println ("There were " + String.valueOf(tiecount) + " ties"); } }


Does anyone of you know a QGIS-Plugin for Versioning PostGIS-Data? I know there was pgVersion of Horst Düster but as far as I know this was not updated for QGIS 2.x (at least not for the "normal" QGIS aside from QGIS Enterprise. The searched functionality is: Setting up versioning for a Layer Managing conflicts that were detected (resulting from concurrent editing)  old Plugin pgVersion:


Mahlzeit community, i've a new question :D Does it makes any difference where i write the * when i wanna declarate a pointer? E.g. void loopsWithCStringsV2() {     const char*  str1 = "i love learning";     const char * str2 = "i love learning";     const char  *str3 = "i love learning";          std::cout << "str1: " << str1 << std::endl;     std::cout << "str2: " << str2 << std::endl;     std::cout << "str3: " << str3 << std::endl;      std::cout << "&str1: " << &str1 << std::endl;     std::cout << "&str2: " << &str2 << std::endl;     std::cout << "&str3: " << &str3 << std::endl;      std::cout << "*str1: " << *str1 << std::endl;     std::cout << "*str2: " << *str2 << std::endl;     std::cout << "*str3: " << *str3 << std::endl; }  will result in: str1: i love learning str2: i love learning str3: i love learning &str1: 006FFAA8 &str2: 006FFA9C &str3: 006FFA90 *str1: i *str2: i *str3: i  Enjoy your day :)


The other day I got one of my question on the hot question list, it mad it all the way to the top, in fact :)    So I got thinking how do these get chosen. I noticed there is a number next to the question in the hot questions tab but I could not figure out what this was. this number seems to be a ranking of some sort as the higher it is the higher up the list but it does not match anything I can see like up votes or views.   This got me thinking is there some kind of vote system like the close system that users can vote for a hot question but I cannot see one so maybe it is for high rep users?


Using functions in a class keeps returning NullPointerException error - Java

I am having a weird issue where the function in my class keep returning NullPointerException, Here is my code below where I am referring to the cashRegister class and each time I use the functions (cashRegister.add() or cashRegister.toString()) it returns nullPointerException. Does anyone know how to fix? private void sell() {         Product product = product(readName());         System.out.println("Selling " + product.getName());         int number = readNumber();         if (product.has(number)) {             double sale = product.sell(number);             cashRegister.add(sale);         }         else {             System.out.println("Not enough stock");         }     } private void viewCash() {     System.out.println(cashRegister.toString()); }   import java.text.*;  public class CashRegister {     private double cash;      public CashRegister() {     }      public void add(double money) {         cash += money;     }      @Override     public String toString() {         return "Cash: $" + formatted(cash);     }      private String formatted(double amount) {         return new DecimalFormat("###,##0.00").format(amount);     } }


jQuery get the rendered height of an element?

How do you get the rendered height of an element?  Let's say you have a <div> element with some content inside. This content inside is going to stretch the height of the <div>. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:    var h = document.getElementById('someDiv').style.height;   Is there a trick for doing this? I am using jQuery if that helps.


How can I create a Windows bootable USB stick using Ubuntu?

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


Windows Server Datacenter Edition - Unlimited Virtual Machines

Need some clarification on the following.  Datacenter Edition description lists:      Can be used as virtualization guest: Yes, unlimited virtual machines,   plus one Hyper-V host per license     The way I understand it is, that I can create unlimited guest virtual machines without additional keys.   Is my understanding correct?  If not, please explain.   If yes, how do I go about creating guest virtual machines from the host's license?  This is not a general licensing question, more specifically regarding guest OS activation.


Shrinking drive space, need help! Ok I don't know how to word this nor have any searches produced results I need, i checked for the hyperfil.sys (no go btw) as i cleared that out, and i think this is a virus (unplugged my network cable), and what leads me to think virus is that my drive space (free) is literally shrinking in front of my eyes as im watching it...and I know i have a masive drive so i should have a few hundred gigs still left free...so what do you all think is going on here? virus or something else? i don't want to try and download any thing or install anything till i sort this out.


I can prove it converges but I don't know at what value it converges. $\sum_{x=1}^{\infty} \frac{(x-1)}{2^{x}}$


What is the smallest possible value of $\lfloor (a+b+c)/d\rfloor+\lfloor (a+b+d)/c\rfloor+\lfloor (a+d+c)/b\rfloor+\lfloor (d+b+c)/a\rfloor$?

What is the smallest possible value of  $$\left\lfloor\frac{a+b+c}{d}\right\rfloor+\left\lfloor\frac{a+b+d}{c}\right\rfloor+\left\lfloor\frac{a+d+c}{b}\right\rfloor+\left\lfloor\frac{d+b+c}{a}\right\rfloor$$  where $a,b,c,d>0$?


Star Wars: Flying a spaceship, or, when is a movie scene NOT canon?

EDIT: Subsequent to a fascinating discussion with @Wad Cheber and @Mazura, I would have actually deleted the question, not because it's a dupe but because it moves into "unsolveable" issues regarding canonicity.   As we all know, it's canon that the Star Wars movies constitute the highest level of canon in the saga.  Using only the canonical movies, I wonder how to align one example, the issue of   Spaceship controls  with their contradictory portrayal.  Taking only entering and leaving hyperspace, there must be a several methods the Millennium Falcon uses.  Harrison Ford (a RL pilot, after all) himself one stated, when asked     “I said, ‘Just make shit up!’” Ford remembered in an interview with   Entertainment Weekly’s Anthony Breznican. “I mean, it’s a movie, man.   It’s space. You don’t fly in space the way you do in an atmosphere.”   I can recall at least 4 shown ways of how the Falcon gets into and out of hyperspace:   A handful of closely spaced levels at the top of the instrument panel. Same levers also seems to control speed in atmospheric flight. Get up out of your seat and throw a bunch of switches in a panel above the pilot to leave hyperspace. Do nothing obvious and just wait for the computer to finish calculations Have your droid undo some Imperial sabotage and get thrown into hyperspace without so much as a safety pop-up asking "are you really sure?"   If the movies are "infallible" and immovable canon, yet see a portrayal such as this, is there a canon explanation?  One would be the official declaration that "we're retelling the history of The Star Wars, but we take artistic liberties and our goal isn't to provide flight lessons for YT class feighters"?  Another would be quasi-technical canon explanation "controls have variable functions depending on flight situation and surrounds. Also there's more than one way to skin a cat."


Is this the right way to format foot notes?

Using the command   \newcommand\@makefntext[1]{% \noindent\makebox[.02\columnwidth][l]{\@thefnmark}% \parbox[t]{.98\columnwidth}{#1}}   I got the desired result for the foot notes, as shown in the image below.   I'd like to know if my code is the best way to do this.    edited: using footmisc with the option hang as suggested, the format of the foot number is different so the vertical space around the foot note is changed.


After using `cat` on a binary file, why are letters and numbers left over?

This appears to be an easy concept, but I'm having difficulty finding out what is going on via Google:  I have a binary file generated by a C program, example_binary.   After using cat example_binary, the output looks like a typical output after running cat on a compressed file.   However, after cat has finished, letters and numbers remain on the command line. In this case, I see 1;2c.   $ cat example_binary ... $ 1;2c   Why would there be leftover numbers and letters remaining on the command line? What does 1;2c mean?


I have downloaded the Ubuntu (desktop) ISO file and copied it to a USB drive. When I try to boot from it, I get a disk error. When I try to open the file within Windows, it launches my CD Burning program.   I have a 386 machine (IBM Thinkpad) running XP.


How to extend hard disk partition backwards (to the left) without third-party tools?

I'm trying to extend  the D: partition using unallocated 30.91 GB space at its left side.   states it can't be done using Disk Management's UI and it suggests using 3rd-party tools.  However, how can we do this natively (e.g. diskpart) without installing/downloading additional software?


How to migrate documents with metadata to another site collection

Environment: SharePoint 2013  How to migrate documents with Metadata and Content types to another site collection?


How many ways are there to form a sequence of 10 letters from 4 a's, 4 b's, 4 c's, and 4 d's if each letter must appear twice?  So typically I would use the theorem like  16! / 4! 4! 4! 4!  (if I was choosing a sequence of 16 and exactly 4 each)  For this example though I would have to lock the spots of 2 of each in place so aabbccdd _ _ and those two extra spots would have 4 choices each, so 4 x 4.  Would it be: (10! / 3! 3! 2! 2!) x 16 ?  Any help would be appreciated!


In my reputation  tab there  Shows 3 events. But 4 upvote


Did Tolkien ever discuss why rings were chosen?

With years of reading the books and watching movies, especially with the success of the Peter Jackson movies, the fact the main magical items of The Lord of the Rings are the rings seems straightforward, but thinking about it, it is definitively an odd choice.  Most fantasy novels I’ve read tend to feature more prominent magical items (sword, shields, staffs, armours), most of which have a direct combat related side. Most magical items I can remember from The Lord of the Rings seem to have more subtle properties. This includes weapons and the rings themselves.  Did Tolkien ever discuss his reasons to specifically choose rings, whether it was something that just “happened” or whether it was a fully thought out idea?


I have been awarded the Yearling badge 3 times in the last 2 days

I'm not complaining but I suspect a bug. I've been awarded the Yearling badge 3 times now in the last two days. Is it a bug?


What should we consider for next year's Winter Bash?

At this point, I am relatively confident that Winter Bash will become an annual event. The event is oodles of fun for our communities, and almost everything we do as employees in putting the event together is done with an eye toward repeatability and automation.   With that in mind, I see a lot of feature requests come through on MSO and child metas that are great ideas, but simply not possible (or not worthwhile) to implement for this year's event. The same happens with minor bugs that give Winter Bash a few rough edges without disrupting functionality - they often get left behind on the "eh, maybe next year, if there's time" list.   Reader, this is that list.   What tweaks and feature requests have come up this year that we should keep in mind for next year?


I have a database table that contains a list of contacts, some of those contacts might have multiple records, e.g.  CustomerID, CustomerName, Vehicle 1, Dan, Mazda 1, Dan, Suzuki 2, John, Ford 3, Dasha, Volvo 3, Dasha, Ford   Can I write a select query to return the distinct customerID and CustomerName, and a list of vehicles in 1 record? i.e.  1, Dan, Mazda+Suzuki 2, John, Ford 3, Dasha, Volvo+Ford   Thanks


elsevier 5p document make a single column page in document

I have a document using the elsarticle with \documentclass[5p]{ elsarticle}. Which is fine for the main document body. However, for an appendix I need a single column page, but have been unable to find out how to do this. Can someone tell me how to do this?


I used to have Windows 8.1 - Linux Mint dual boot. I succesfully removed Windows from the system but Grub still shows Windows in boot options:    I would like to configure the system the way, that on start up I directly load into Linux Mint without seeing Grub screen options at all.  What I tried so far:   sudo update-grub sudo sed -i 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=0/' /etc/default/grub  sudo update-grub Deleted Windows entry using  efibootmgr; it was entry Boot0003, it is no more there:  BootCurrent: 0002   Timeout: 0 seconds   BootOrder: 0002,0004,2003,2001,2002   Boot0000* EFI Network 0 for IPv6 (70-54-D2-8C-E9-B5)    Boot0001* EFI Network 0 for IPv4 (70-54-D2-8C-E9-B5)    Boot0002* ubuntu   Boot0004* Ubuntu   Boot2001* EFI USB Device   Boot2002* EFI DVD/CDROM   Boot2003* EFI Network    3 followed by deleting directory Microsoft from /boot/efi/EFI. Currently /boot/efi/EFI has three dirs left: Boot  toshiba  ubuntu   Is there anything else I could do?


i think im being scammed by a sugar daddy

so i'm female 18 and i was looking on a website for a sugar daddy, i started talking to one and we moved to texting, he then asked for my banking info which i turned down and asked if he used paypal. he said no and that he had been scammed threw that before so he doesn't use that anymore. after talking to him for a little i stupidly gave him my info. we had talked about amounts before and he was going to send me a couple hundred but then all of a sudden he said he was going to send me extra so that i could go buy him some gift cards and send him the codes. i said no, changed my password and told him i didn't want to be his sugar baby anymore and blocked him. he then made a new phone number and proceeded to somehow get back into my account and send me almost 1000 dollars and is now threatening me. saying that i need to go buy him some steam gift cards 450 dollars worth scratch off the back and send him the codes. i said no and told him that i would go to the police. he all of a sudden gave my a paypal email and said to send him the money back but i'm scared it'll be a fraud and it'll make my account go into the negatives. so i was stupid and panicking and i sent him 450 to get him to stop constantly calling my phone with new numbers and harassing me. i was only on the websites because my family is struggling to pay our bills. my paychecks have been going to my parents and my savings is almost wiped out because of it and im supposed to move in august.


Correlate nominal/metric data with ordinal data?

I am currently finishing my bachelors thesis and have a couple of questions regarding correlation in spss. I have a questionnaire that generates metric data, nominal data and ordinal data. I used Spearman to correlate all the ordinal datasets and I am quite comfortable that this is fine. Now comes the hard part: How do I correlate the metric data with my ordinal data? Metric data consists of age and kilomenters driven per year. Ordinal data consists of "agree", "agree partly", "neither agree nor disagree", "disagree partly", "disagree". Is it possible to turn my metric data into ordinal data with 3 values (e.g. "young", "middle aged", "old" and then use spearmen to correlate it to the other ordinal data with spearman?  Additionally I would like to ask how I can correlate the ordinal data with the nominal data (being "yes" and "no")? Unfortunately I don't have any idea on how to do that.


How does energy exist if it can't be created or destroyed?

I saw this in a science book and it's been bugging me lately because how can energy exist if it can't have any creations?  How do eternal things exist if they have no beginning or ending, like energy?


Why is it acceptable to cite unpublished works?

If an article, theorem, etc. is unpublished, presumably the work is only available to people who track down the author and get a draft copy. Today we have arXiv and can find many preprints on the Internet, but people have been citing unpublished works longer than arXiv has been around. It seems like an unscrupulous author could claim anything he wants, cite an unpublished work that doesn't support his claim (or even one that doesn't exist), and get away with it unless the bad claim is caught in the review process.  I suppose the reviewers could ask for a copy of the cited work, but I recently saw a citation that was just "private communication 1981" for a paper published in 1985, and that could easily have been a phone call where no record could be provided to a reviewer.  I've never published anything myself, so maybe I'm unaware of a part of the review process that is meant to catch this, but what prevents authors from making bad citations of unpublished works?


I'm writing the following documents. As you can see it's shown only on one page, so in order not to make it a colorful painting I have switched off the colored rectangle around the many links displayed in the final PDF.    I want to display a colored rectangle only on some of these links. How can I do this? Based on my knowledge the option is an on/off one to be set in the preamble.  Here a MWE  \documentclass[11pt, a4]{article}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[hidelinks]{hyperref} \usepackage{fullpage} \usepackage{fancyhdr} \pagestyle{fancy} \lhead{} \chead{} \rhead{} %\includegraphics[width=2.5cm]{Logo}} \lfoot{\href{www.facebook.com}{www.facebook.com/mypage}} \cfoot{} \rfoot{\href{mailto: mymail@fmail.it}{mymail@fmail.it}} \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.0pt} \setlength\parindent{0pt} \usepackage{lipsum}  % ----------------------------------------------------  \begin{document}  \thispagestyle{fancy}  \begin{center} \includegraphics[width=200pt]{Image} \\[10pt] \Huge \textbf{My Name} \\[5pt] \Large My home town \\ My Birthday \\ \end{center}  \textbf{BIOGRAFY} \\  \lipsum[3]  \parbox{0.5\textwidth}{}  \vfill  Text with one hyperlink \href{www.facebook.com}    {www.facebook.com/mypage}  \\[10pt]  \textbf{Link with a colored rectangle} - \href{http://goo.gl}{www.goo.gl} \\ \textbf{Link with a colored rectangle} - \href{http://goo.gl}{www.goo.gl} \\[10pt]  \end{document}


System requirements for Ubuntu 20.04 LTS has a minimum space on hard drive requirement of 25 GB. So is it ok if i only give a 15gb partition to install it or will it show error?


How to get the length of a json returned data and run a for loop

I have this ajax call which its result is in a json format  $.ajax({     url: link,     dataType: "json",     success: function(data){         console.log(data); //C.L-1         console.log(data.length); //C.L-2     } })   And here is the result  $users_arr = array(); //After a successful query from my database While($sql = mysqli_fetch_array($query)){     $user_id = $sql['id'];     $user_age = $sql['age'];     $user_name = $sql['name'];     $users_arr[$user_id] = $user_id.','.$user_name.','.$user_age; } echo json_encode($users_arr);   Now the C.L-1 returns true but the C.L-2 returns undefined. I thought the data returned is an array on it's own so I want to run a for loop for each user like this  for(var i = 0; data.length > i; i++){     eachUser = data[i];     userInfo = eachUser.split(',');     userId = userInfo[0]; // and so on for the other info     $('div#age'+userId).html(userAge); }   But the problem is that the data.length returns undefined which prevents me for running my for loop. Please any better help?  Edit here are some data from C.L-1  Object {8: "8,debbie,23", 3: "3,doggie,20", 7: "7,dini,22"}


Does an Indian with a UK Tier 2 visa need to book flights before applying for a Schengen visa? [

I am an Indian currently with a UK Tier 2 ICT (Work visa). From UK with family (wife and 3-year-old son) I am planning a visit as tourists to Budapest, Hungary and Prague, Czech Republic.   Do I need actually to book the flights before applying for a Schengen visa, or would just the hotel reservations (via booking.com) do?


While taking refuge from the , I ended up on my profile page, whereupon I came across the most awful bug.       There should be  space in there!


find the maximum weighted path in a directed acyclic graph using 2 traversal

Given a directed acyclic graph the task ith positive edge weight is to find the maximum weighted path between 2 nodes u and v using 2 traversal meaning after the first traversal from u to v find the first path let its weight be v1 and replace the edges along the path with 0  again do the second traversal from u to v in the modified graph and find a path let its value be v2. The task is to maximize the sum of v1 and v2. The solution I thought of is to use the classic Dynamic programming algorithm to find longest weighted path for the first traversal and replace edges by 0 along the path again run same algorithm in the modified graph and the value of value from 1st and second traversal is result. But this approach is not yielding an optima solution can anyone give example where it is failing and a possible solution to the problem?