im working on a problem for like 2 hours and I still cant fix it. My task is to programm  49 Rectangel Squares. so I tried to use a array to make it easier, but it doen'st want to work :'(  without using arrays it works..  Thank you for help!  source code:   package Game;  import javafx.scene.shape.Rectangle;  import javafx.application.Application;  import javafx.scene.Scene;  import javafx.scene.layout.HBox;  import javafx.scene.layout.VBox;  import javafx.scene.paint.Color;  import javafx.stage.Stage;  public class Game extends Application{  public static void main(String[] args) {     launch(args);  }  @Override public void start(Stage primaryStage) throws Exception {     // TODO Auto-generated method stub     VBox vb = new VBox();     VBox vb2 = new VBox();     HBox hb = new HBox();      Rectangle q[] = new Rectangle[4];       q[0].setFill(Color.RED);     q[1].setFill(Color.BLUE);     q[2].setFill(Color.GREEN);     q[3].setFill(Color.YELLOW);      vb.getChildren().addAll(q[0],q[1]);     vb2.getChildren().addAll(q[2],q[3]);     hb.getChildren().addAll(vb,vb2);      Scene sz1 = new Scene(hb);     primaryStage.setScene(sz1);     primaryStage.show();    }   }  my compiler :  > Exception in Application start method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) atcom.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Launcher Impl.java:389) atcom.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.jav a:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source) Caused by: java.lang.RuntimeException: Exception in Application start method atcom.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.ja va:917) atcom.sun.javafx.application.LauncherImpl.lambda$launchApplication$155(Launc herImpl.java:182) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at Spiel.FensterSpiel.start(FensterSpiel.java:29) atcom.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Laun cherImpl.java:863) atcom.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl .java:326) atcom.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java: 295) at java.security.AccessController.doPrivileged(Native Method) atcom.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.j ava:294) atcom.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.ja va:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) atcom.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:19 1) ... 1 more


Run as administrator from command line on Windows 8

I am trying to run Notepad as admin so I can edit my hosts file from the command line.  I have tried runas /user:(myusername)\administrator "notepad c:\windows\system32\drivers\etc\hosts" I then input my password and I get     RUNAS ERROR: Unable to run - notepad   c:\windows\system32\drivers\etc\hosts 1327: Account restrictions are   preventing this user from signing in. For example: blank pa sswords   aren't allowed, sign-in times are limited, or a policy restriction has   been enforc ed.   PS: I know if I give permission to my user account I can edit it without running as admin. But I'd like to know how to do this without having to change permissions on the hosts file.


What is the relationship between bash and xterm?

I read, that bash and xterm is not the same. Bash is a so called shell and xterm a so called virtual terminal. But from my limited perspective I do not get the difference, which makes a difference. It seems to me to be a difference like between granny smith and golden delicious rather than apples and elephants, could some one try to make it clear and point to key terms?


$\lim_{n\to\infty} a_n=a$ if and only if $\forall p\in \Bbb N$, $\lim_{n\to\infty} |a_{n+p}-a_n|=0$

I'm doing exercises. In the related book, there is a claim. Is this right? I'm not sure.     For a sequence $\{a_n\}$, there exists a limit $a$ such that $\lim_{n\to\infty} a_n=a$ if and only if for any $p\in \Bbb N$, $\lim_{n\to\infty} |a_{n+p}-a_n|=0$   If not, could you kindly give some counterexamples?  Thanks.


Perform Dot Product on Both Side of the Equation

the question is find the value of x from $$p\vec{x} + (\vec{x}×\vec{a})=\vec{b}.$$ in this question can i do scalar product on both the sides of the equation like $$p\vec{x}·\vec{x}+\vec{x}·(\vec{x}×\vec{a})=\vec{x}·\vec{b}$$ and then $$ p\vec{x}·\vec{x}=\vec{x}·\vec{b}$$ $$p\vec{x}·\vec{x}-\vec{x}·\vec{b}=0$$ $$\vec{x}(p\vec{x}-\vec{b})=0$$ and then find the value of $$\vec{x}$$


Questions about matrix rank, trace, and invertibility

(a) Prove that a square matrix $T$ of rank one has $\text{tr}(T)=0$ if and only if $T^2=0$.       (b) Consider a matrix $A$ of the form $A=aI+T$, where $a\ne0$, $I$ is the identity matrix,   and $T$ has rank one and zero trace. Find the inverse and the determinant of $A$.       (c) Find the inverse of $A$ as above when $T$ has rank one but nonzero trace $\text{tr}(T)=b$.      For which value of $b$ is $A$ not invertible?    I'm still stuck on part (a), but campus buildings are closing soon, so I'll be working from home but would love to get some hints / comments on this question.  I'll have limited access to this site - on my phone.  For part (a), I've been trying to look at the SVD of matrix $A$, since one can read off the rank very easily - by looking at the number of non-zero singular values of $A$.  Then I am trying some block matrix multiplication to see whether $T^2 = 0$, from assuming that $\text{tr}(T) =0$.  So far, no luck.  Do you think I should stick with this SVD approach, or is it better to play around with the definition and properties of nilpotent operators?  Any other hints for the other parts of the question would be greatly appreciated.  Thanks!


How do I create a full project from a sandbox project?

We have created a module for Drupal 8 on drupal.org, but it is a sandbox project. How do I make it a full project?


If I open a pattern table, the first line looks like: 2 2 .aa6l .ab3a4s What does the numbers mean and the rest of the file?


We recently had some servers hacked (Ubuntu, various flavours) which installed a Monero miner that starts a process called watchbog. We scrubbed them clean and blocked access to where they can update themselves from but on reboot the servers start to rebuild the miners installation (and fails)  It is creating a directory /tmp/systemd-private-d3883bec41f94ab0b3d927e3022873b1-systemd-timesyncd.service-jVvrE0 and some subdirectories and then stops. The random bits are random each time  What I want to know is what is rebuilding this on boot. There does not seem to be anything obvious in the logs or the various boot scripts. Where else can I look?


Xorg primary paste in urxvt/bash has changed

After upgrading Fedora 31->34 pasting PRIMARY into urxvt windows has changed, but only if it runs bash. In all applications it work as it did: middle-click just paste the text. But when it runs bash:  All pasted text is automatically become selected. EOLs are treated as newlines, therefore commands are not executed on EOL, but pasted as a big text. If I paste several lines with EOLs and then press enter they all would be executed one by one.  I do not like both, but I do not even understand what documentation to look at or what config to change to turn things back.


Does casting a spell from an item allow you to apply class abilities that are used when casting a spell?

This question is updated to request additional answers and details in light of information now available in the Dungeon Master's Guide. In the released DM basic rules, Lost Mine of Phandelver, Hoard of the Dragon Queen, and the DMG teaser there are wands, staves, and rings that you can use to cast spells.  Do abilities that trigger from casting a spell activate when casting a spell from an item?  Can the character modify the spell using class abilities when casting a spell from an item?   Examples include:  An abjurer Wizard's arcane ward recovering hit points from a Dispel Magic cast from a Ring of Spell Storing  A sorcerer using Twinned Spell on a ray of enfeeblement from a Staff of Power  An evocation wizard using Sculpt Spell on a fireball from a Wand of Fireballs.   Now that the DMG is out we have some clearer rules on casting spells from items (DMG p. 141):  Some magic items allow you to cast a spell from the item.  The spell is cast at the lowest possible spell level, doesn't expend any spell slots, and requires no components, unless the item's description says otherwise  The spell uses its normal casting time, range and duration, and the user of the item must concentrate if the spell requires concentration. A magic item, such as certain staffs, may require you to use your own spellcasting ability when you cast a spell from the item.  Does whether or not you can apply class abilities to the casting of the spell depend whether the item uses the user's own spellcasting ability (such as the Staff of Fire) versus an item that comes with a fixed spellcasting ability built-in (such as the Wand of Fireballs)? Does it matter if it's something that triggers more or less automatically like Arcane Ward, versus something you have to control, like Careful Spell?


Post score in the Top Network Posts borked somewhere

Noticed in :         is 320, shown 322. Also locked in 2013.  And then :         has a score of 179, shown 180.  has a score of 123, shown 122.  Neither of these posts got any votes recently.


The process behind completing the square

What is the process behind transforming $x^2+x+1$ into $(x+\frac12)^2+\frac34$?  Does that same method works for every time I want to transform an expression like $ax^2+bx+c$ into a square like $(a+b)^2$?  Thanks in advance.


What really is ? Is it just the reemission of EMR? I asked my teacher, he said in quantum sense, it is true. But when I read something about emissivity in Stefan Boltzmann's equation, it states that if an object reflects most light, then it absorbs and reemits less. So what it said means reflection and absorption and reemission are different concepts.


I'm using the latest version of MacTeX 2013 on OS X 10.8.4. All of my Tex Live packages are fully up-to-date. Tex Live also lists the fontawesome package as installed. I'm trying to use the FontAwesome font with XeLatex or LuaLatex and getting font-not-found errors. The exact message is: kpathsea: Running mktexmf FontAwesome ! I can't find file `FontAwesome'.  There's a longer traceback which I am omitting for brevity. Let me know if it's needed to resolve this problem. I have already tried running the following commands, to no avail: sudo -H mktexlsr sudo -H updmap-sys  Other than the above two commands, this is a 100% new out-of-the-box installation, with no modifications whatsoever. Here's a minimal broken example: \documentclass{article} \usepackage{fontawesome}  \begin{document} \faTwitter \end{document}  How can I add this missing font? Edit (Q1 2021): Please see Justin Curry's answer regarding an update to the package name from fontawesome to fontawesome5.


Trying to get getopts to call a function

I'm trying to get it to call a function.   Here is my code  #!/bin/bash while getopts ":a:b:" opt; do     case $opt in          a)             my_function "%e"             ;;         b)             my_function "%s"             ;;        /?)             echo "Invalid option: -$OPTARG"             ;;     esac done  my_function() {     option=$1     //do something here }   When i call: ./myscript.sh -a sshd   This would display ./myscript.sh: line 5: my_function: command not found  What should I do to fix it?


Does $a$ divide $c$ if $a$ divides $b$ and $b$ divides $c$?

Suppose R is a commutative ring with identity. Let $a$, $b$, $c\in R$. If $a\mid b$ and $b\mid c$, does $a\mid c$?   I am able to prove this statement using integers as the set $\mathbb{Z}$ of integers is closed under multiplication but I am not too sure if this statement holds when dealing with Rings. Does this have to do with the associates or units in $R$?


I can not access any drive(like software, movi, raaz) from ubuntu os but i can access from windows os

My Ubuntu was running very nice. I can access all drive.i use two os windows8 and Ubuntu. But when i shut down my Ubuntu os and start with windows 8 and i copy a folder from c(desktop) drive to movies (F drive) and i shut down pc and again start pc with Ubuntu then i can not access any drive. (Software is root Drive).   Unable to access “Software”  Error mounting /dev/sda6 at /media/kalyan/Software: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda6" "/media/kalyan/Software"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sda6': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.    can you give me a solution please?


Document load is being skipped - what document is causing this?

when loading up a solution in VS2008 I get:     An error was encountered while   opening associated documents the last   time this solution was loaded.   Document load is being skipped during   this solution load in order to avoid   that error.   How can I find which document is causing the problem?


When compiling my document I get the following warning message:  Badbox line 1: Overfull \vbox (1.77525pt too high) has occurred while \output is active []   Now from Google I learned that this warning refers to a formatting problem while Latex is adding headers and footers. Therefore I guess the reference to "line 1" in the warning message does not help me in finding what causes the problem. The first line in my document looks like this:  \documentclass[a4paper,oneside]{report}   So my question is this: How can I find what part of my document causes this warning, given the message shown above?


Java Stream - NullPointExeption when filter list

I'm trying to filter from the list objects that field isActive have either set to N or null. Unfortunately, I get NullPointerException in method filter and I don't know what is wrong?  Code:  ... return dictionary.getAllPermissions().stream()             .filter(Objects::nonNull)             .filter(z->"N".equals(z.getIsActive().toString()) || z.getIsActive().equals(null)) //field isActive is Character             .collect(Collectors.toList());


Ubuntu VM shows 50GB, but df -h shows 30GB

I have an Ubuntu VM on VMWare Player, on which I can't increase the virtual disk size. Earlier I built the VM with 30G size, then I used the VMWare expand 'button' to expand to 50G. Now the VMWare image shows 50G. But when I do a df -h inside the OS, I still see it as 30G.  fdisk -l shows disk as 50G, but the sda1 partition still shows 30G. How can I extend my / (everything is on /, just one partition) to the full 50G?  # fdisk -l Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0001183e  Device     Boot    Start      End  Sectors Size Id Type /dev/sda1  *        2048 58722303 58720256  28G 83 Linux /dev/sda2       58724350 62912511  4188162   2G  5 Extended /dev/sda5       58724352 62912511  4188160   2G 82 Linux swap / Solaris   Thank you.


Defiintion of a.s. convergence: sequence of R.V.s $z_1, z_2, ...$ s.t. $P(z_i=1)=P(z_i=-1)=\frac 1 2$

Let $z_1, z_2, z_3,$ ...be a sequence of independent random variables s.t. $P(z_i=1)=P(z_i=-1)=\frac 1 2$. Does this sequence converge almost surely?  I am still bothered by the definition of almost sure convergence. If we define a RV Z($\omega_1$=negative sign)=-1, Z($\omega_2$=positive sign)=1  with sample space {$\omega_1$, $\omega_2$} doesnt this sequence then converge to Z? Since P(lim n→∞ Zi(w))=Z(w)=1? But the answer should be no, so I am confused bout this defintion (apology in advnace as I am new to this.)  I think i know how to use second bernoulli to prove it since sum of probabilities which is 1/2 will be infinite meaning that the sequence does not converge. But would some one please explain the above definition?


Import and render 3d objects with python

I just started learning blender and python. Is it possible to write a script that does this?  imports a 3d model from a folder creates 100 cameras with random positions (the 3d model should fit the picture) creates random exposure renders images from all 100 cameras and saves them does it with all 3d models in the folder


In Windows 7, there is an option to change the fonts for things such as the active title bar, menu, etc. It was found by opening the Window Color and Appearance settings in the Control Panel. I just installed Windows 8 and would like to change the fonts, but I can't find anything to change the actual fonts (there is however a limited drop-down list to change a few font sizes in the appearance settings). Does anyone how to change the fonts used in Windows 8?


Try it yourself. You can't downvote comments. Why? I'm really frustrated when I see tons of crappy comments. They meet the minimum requirement -- no insult, no cursing, just without quality. Not helpful. Not constructive. A waste of space. I wanted to downvote them, but there's no downvote button. Why?


Did svchost.exe behaviour change in Windows 10 Creators Update (Build 1703)?

Today I upgraded to the Creators Update by running setup from the ISO mounted locally. When I got back to my computer I opened Task Manager and saw my memory usage was a lot higher than it was previously (it's now almost 6GB memory usage at idle after logging in instead of 2-3GB with the previous Windows build) - the processes tab revealed that there were upwards of 60 different instances of svchost.exe running. This 6GB figure is just for process memory - not including memory used for caching or "standby".  I ran tasklist /svc to get a listing of which services were in which processes and it lists almost every svchost.exe instance as only having one running service contained within (with the exception of a handful of instances that are running a few system services).  Here's  my output:  Image Name                     PID Services ========================= ======== ============================================ System Idle Process              0 N/A System                           4 N/A smss.exe                       440 N/A csrss.exe                      612 N/A wininit.exe                    700 N/A csrss.exe                      708 N/A services.exe                   776 N/A lsass.exe                      784 KeyIso, Netlogon, SamSs, VaultSvc svchost.exe                    888 PlugPlay svchost.exe                    908 BrokerInfrastructure, DcomLaunch, Power,                                    SystemEventsBroker fontdrvhost.exe                936 N/A svchost.exe                   1000 RpcEptMapper, RpcSs svchost.exe                    104 LSM winlogon.exe                   544 N/A fontdrvhost.exe                420 N/A svchost.exe                   1072 DeviceInstall dwm.exe                       1136 N/A svchost.exe                   1164 BFE, CoreMessagingRegistrar, MpsSvc svchost.exe                   1424 lmhosts svchost.exe                   1432 W32Time svchost.exe                   1440 nsi svchost.exe                   1448 wudfsvc svchost.exe                   1528 hidserv svchost.exe                   1628 Dhcp svchost.exe                   1716 Dnscache svchost.exe                   1748 EventLog WUDFHost.exe                  1792 N/A svchost.exe                   1908 TimeBrokerSvc svchost.exe                   1952 NlaSvc NVDisplay.Container.exe       1968 NVDisplay.ContainerLocalSystem svchost.exe                   1324 Themes svchost.exe                   1596 ProfSvc svchost.exe                   1944 EventSystem svchost.exe                   1052 netprofm svchost.exe                   2116 StateRepository svchost.exe                   2256 SENS svchost.exe                   2296 AudioEndpointBuilder svchost.exe                   2304 FontCache (etc)...   I know you can configure individual services to run in their own instance of svc with the sc config <serviceName> type= own command, but to my knowledge I've never run this command.  I took a quick look at Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and it looks like the Type key values for most of these services is missing the flag bit at 0x10 which controls if a service runs in its own svchost.exe instance or not. I wonder what could have effected this change.  Has anyone else observed this behaviour before or after installing Windows 10 Creators Update? If it is a default configuration change, will it have any implications on system performance or stability?  I suspect it will increase system stability because if a service crashes it won't bring down other services - but this comes at a massive cost of RAM - but I've never experienced a service crashing on me - or at least ever noticed it (instead the worst problem I've had is with wuauserv consuming 100% CPU for hours on end - and that's not a problem process isolation will solve).  (I just noticed: they finally added an address bar to the Registry Editor!)


I hosted multiple websites on a single VPS server, with single IP address when I entered IP address in as url it shows default website page that fine   but i hosted multiple website in a single server by creating different directories for each domain  and hosted  eg1.com at- /var/www/eg1.com  eg2.com at- /var/www/eg2.com   eg3.com at- /var/www/eg3.com    it's wont work in this wa - ip/var/www/eg1.com     how can I access my website eg1.com, eg2.com, eg3.com using my IP address  I want to check website status before changing the DNS   please guys this default answer by editing hosts file in drivers, is not the solution for accessing multiple site form the same ip address  #   129.0.0.2       eg1.com   as this address only one website   Hosted multiple websites in a single ip address server. and have to access multiple site


I can't connect WiFi with Ubuntu 16.04 Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)

I can not connect WFi with Ubuntu 16.04 Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)   alexey@alexey-Compaq-615:~$ lspci -knn | grep Net -A2 06:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Hewlett-Packard Company BCM4312 802.11b/g LP-PHY [103c:1508]     Kernel driver in use: b43-pci-bridge   alexey@alexey-Compaq-615:~$ lspci -vnn -d 14e4: 06:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)     Subsystem: Hewlett-Packard Company BCM4312 802.11b/g LP-PHY [103c:1508]     Physical Slot: 1-1     Flags: bus master, fast devsel, latency 0, IRQ 17     Memory at 92000000 (64-bit, non-prefetchable) [size=16K]     Capabilities: <access denied>     Kernel driver in use: b43-pci-bridge     Kernel modules: ssb   Can somebody give me advice. Thanks in advance Best regards Alex


How can I enable/disable monitors from the command-line?

Are there any tools for Windows 7 that will allow me to enable/disable monitors from the command-line?  For example, my GTX 480 has three outputs (2x DVI and 1x HDMI) but only two displays can be active at any given time.  I'd like for a command-line to allow me to disable one of the DVI monitors and enable the HDMI monitor, etc.  (I've found NirCmd which is an amazing utility but it doesn't seem to support this...)  EDIT: UltraMon seems capable of doing this but I really hoping for a more light-weight command-line solution...


Find the remainder when $x^{100}$ is divided by $x^2-3x+2$

We have to find the remainder when $x^{100}$ is divided by $x^2-3x+2$.I tried to use the remainder theorem but am not just able to solve it.please help.


Asking a question is not necessary when I want to create a note of something new.  Can I post a note?  If yes, then how?  I also wanted to know if there's anything tag-related to Astrology and Geography.


sqlite delete row by onItemLongClick gridview sqlite

i have a gridview that get data from an sqlite database and i want to delete a row by onItemLongClick but i get a error i cannot solve it  @Override public boolean onItemLongClick(AdapterView<?> parent, View view,                                int position, long id) {     dataBase.delete(mDBHelper.TABLE_LIENS, mDBHelper.toString()                                            + "="                                            + mLienList.get(position), null);      mLienList.remove(position);     adapter.notifyDataSetChanged();     Toast.makeText(Main2ActivityAdmin.this, "Lien supprimer", Toast.LENGTH_LONG).show();      return true; }   stack trace is:  E/AndroidRuntime: FATAL EXCEPTION: main Process: PID: 21230 java.lang.NullPointerException: Attempt to invoke virtual method 'int android.database.sqlite.SQLiteDatabase.delete(java.lang.String, java.lang.String, java.lang.String[])' on a null object reference


Minecraft Pocket Edition Multiplayer not working

I bought this Minecraft  (v0.7.6) And since then i've been struggling with getting multiplayer to work in any way. My first attempt was to create a server from here:  which not only suffers from bad program design, but also doesn't seem to do anything with my Minecraft on the phone.  I have disabled firewall completely, made sure that computer(server) and client(phone) is on the same network.  At this point i decided to ditch the host a server thing, and we tried doing a regular network play between 2 phones with no success. Nothing appears in the lobby!  Do they have a support section cause i can't seem to find it...  My phone: Sumsung Galaxy Note 3 (my very first smartphone. Not more than a week old)  Other phone: Sumsung Galaxy S3  My comp: Win7...  Another thing I'd mention is that my friend (the SGS3 owner) claims to have been able to play LAN games with other friends. I have not seen this, and there's probably more to it, but if its true then there's probably something wrong with my device. (A default restrictive policy or something...)


How can I recover photo files from a memory card with a corrupt filesystem?

I know this is not specifically a photography issue but since many of us with prosumer/professional-level DLSRs use Compact Flash cards, it is bound to happen to others as well.  I have a Sandisk 16GB Ultra card that occasionally had the camera reporting inability to access the card. I had to reinsert the card to continue using it. I was able to read the card and transfer the photo files to my computer drive. Today, the same thing happened again, just that nearing the capacity of the card, it failed one last time and the camera was subsequently unable to read it anymore. Despite reinsertion.  My other CF cards never once exhibited this problem, so it's pretty much isolated to this card.  The card is similarly unrecognisable on my computer CF card reader. I think the filesystem is toast, but I suspect the photo files are still intact. I would like to find ways where I can inspect the raw binary data in the card and hopefully recover the photos?


Normalisation of free particle wavefunction

The wavefunction $\Psi(x,t)$ for a free particle is given by  $$\Psi(x,t) = A e^{i(kx-\frac{\hbar k}{2m}t)}$$  This wavefunction is non-normalisable. Does this mean that free particles do not exist in nature?  Why then do we use free particles $\psi(\vec{x}) = e^{ikz}$, for example, in scattering theory?


Looking for a story about a giant lost ecological ship, and the quirky guy who became its captain

I recall reading a book where the nondescript quirky captain of an independent starship was hired to take a group to a possible lost starship. The ship was a giant ecological repository and contained tech which had since been lost. Everyone tried to board, running afoul of various creatures and defenses. The independent captain (thought least likely to survive) wound up somehow managing to become recognized by the ecological ship as its new captain-owner, and spent the rest of the book providing its services, on his terms.  Part of this story also appears as a short story in an Analog magazine.  I probably read this in the late 80s, early 90s.


Traveling to London with a dismissed misdemeanor

So  I am US citizen and I want to travel to the UK but I heard you have to wait 12 months after you have gotten off probation. My misdemeanor only came with a fine, but I wanted to get it removed from my record, so I asked for a withheld judgment which they gave me 6 months of unsupervised probation before I could apply to have it dismissed from my record. So my trip date falls 3 months short of a year from the end of that probation. I want to know that since I got the misdemeanor dismissed will that affect me? Should I wait the year or can I go earlier?


In what order should one apply max HP reduction and damage?

A character at 10/26 HP is hit by a Wraith and fails the Constitution saving throw. They take 21 damage and their maximum HP is reduced to 5.  Are they unconscious because the 11 excess damage is less than 26 or dead because it's greater than 5?


How to make a field appear only when a selection from a drop down list is selected?

I want to make an entry field appear only when a certain selection from the previous drop down list is selected.   For example,   I want the user to select from (laptops, desktops and scanners).  I want a field for the RAM amount to only appears when the user select laptops or desktops only, and keeps hidden (it should be hidden by default) if he selects scanners.


Hello I am studying cardinal arithmetic, and found out that: $$\mathfrak{c}^{\aleph_0} = (2^{\aleph_0})^{\aleph_0} = 2^{\aleph_0 \aleph_0} = 2^{\aleph_0} = \mathfrak{c} $$  However I found this equivalence in :  $$\mathfrak{c}^{\aleph_0} = \aleph_0^{\aleph_0} = n^{\aleph_0} = \mathfrak{c}^{n} = \aleph_0 \mathfrak{c} = n\mathfrak{c} = \mathfrak{c}$$  where $n$ is any finite cardinal $\geq 2$.  I do not know how they got each line of those equivalences. Could somebody help, please?  Thanks


How to capture a series of screenshots in Web Driver using Java

I Just wanted to know that how can we take a series of screenshots / a video recording for a screen using Selenium 2/Web Driver with JAVA ?   Please provide the answer or the link where I can get an idea about it ?


How do you use IN clauses with mysqli prepared statements

I’m moving some old code over to the new msqli interface using prepared statements, I’m having trouble with SQL statements containing the IN clause. I would just normally do this:  $ids = '123,535,345,567,878' $sql = "SELECT * FROM table WHERE id IN ($ids)"; $res = mysql_query($sql);   Converting this to mysqli and prepared statements I have tried a number of solutions:  $ids = '123,535,345,567,878' $ids = implode($ids,','); $result = $msqli->prepare("SELECT foo,blar FROM table WHERE id IN (?)); $result->bind_param("i", $ids); $result->execute();   The above fails and calculating the number of elements in the array and altering number of question marks in the SQL string and calling bind_parm for each element in the array also fails. Just using the comma separated string also fails.  I can find no good documentation in Google on this, so how have you solved the problem?


Aschbacher finite group theory exercise 1.6

I am reading Michael Aschbacher's Finite group theory textbook. Exercire 1.6 makes me confused.   1.6 Let H is normal subgroup in G. Then the map L->L/H is a bijection between the set of all subgroups of G containing H and the set of all subgroups of G/H. Normal subgroups correspond to normal subgroups under this bijection.  It is not clear for me what is L. I perused previous paragraphs but didn't find any relevnt information. I will be really thankful if someone would help me to understandhow to solve this exercise.


Does List with inline initialization guarantee insertion order?

Looking these posts:      is pretty clear for me that the Add method do an ordered insertion. Perfect.  But my question is: when I use the inline initialization, like this:  var l = new List<object> {     object1,     object2,     object3,     object4, };   is the same, right?  Yes, is a silly question, but I can not find anything on .


Is there a way in the Linux command line, to only have a command pipe its output to another, when the command didn't fail?  $ cmda | cmdb   I would like it, so when cmda returns a status code other than 0, its output doesn't get redirected to cmdb.


Is there a camera comparison site similar to GsmArena for phones?

GsmArena has a  for searching and comparing mobile phones. Is there a similar online tool for cameras?


MySQL: LEFT JOIN not working as expected

I have 2 tables: Employees, attendanceIn   When I query using LEFT JOIN   SELECT employees.eno,employees.name,employees.dept,attendanceIn.attIn FROM `employees`  LEFT JOIN attendanceIn ON employees.eno = attendanceIn.eno WHERE date(attIn) like '2016-07-02%'   What I got is,     Whats wrong with my Query? How do I get my Expected result?


Copy all files, folders, subfolders, hidden or not, with long file names

I have 400gb to transfer from my internal drive to an external one. It's a complex hierarchy made of over 60 000 files and folders, with long file names. While creating those files is not a problem for Windows 7's Explorer, copying them is. I get an error, in the middle of the transfer, saying that the file name is too long.  I tried the following command:  xcopy d:\* e:\ \e   which works... except it doesn't copy the hidden files. But when I try:  xcopy d:\* e:\ \e \h   it seems the \e parameter is ignored and only the files from the root folder are copied.


Any way to allow user to select design component options when using a quick action

Given a lightning component with a design component included and said lightning component is used in a quick action....  Is there any way for the sf admin creating the quick action to set the values of said design attributes for the quick action?  I know this can be done if the component was placed in the page layout but the component is designed as a quick action and not meant to be in the page layout.  Just in case this is not possible, I created an  that can be voted on.  Use Case for the above:   Quick action makes a callout (Apex controller) that requires a specific property value to be sent. (ex. "I", "O", or "H")  Said property can be 1 of 3 values and needs to be specified to determine the types of records the endpoint returns. While it does not typically change within an org it could change between orgs Thus a design component specifies the options and the user chooses which value to set the property to when definining the quick action When quick action is executed, the property is set to the choosen value.   Right now all we can do is default the value which make it tough to implement for a large customer base.   Current workaround is to use a custom setting, but that requires significantly more work expecially if there are differing values for different recordtypes, objects, etc.  Update:  Had to abandon the quick action because the size of the modal could not be increased. No way to get a handle on the DOM for the modal. Had to go with a first class component.  Please vote for this idea as well:


I'm pretty new to LaTeX, so sorry for the beginner question. I'm trying to align on equals signs within tabular, however a few rows are blank and don't have equals signs. How can I do this? Thanks!  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{multirow, adjustbox, mathtools} \begin{document}  \begin{table}[htbp] \begin{adjustbox}{width=\columnwidth,center}   \begin{tabular}{|c|c|c|c|c|}     \hline     Force Field & Calculated Energy & Calculated Difference & Experimental Difference & Error \\     \hline      \multirow{4}{*}{OPLS-AA}         & tt = 2.55447 & && \\ \cline{2-5}         & $\text{g}^+\text{g}^+$ = 4.19785 & $\text{g}^+\text{g}^+$-tt = 1.64338 & $\text{g}^+\text{g}^+$-tt = 1.62 & 0.02338 \\ \cline{2-5}         & $\text{g}^+\text{g}^-$ = 5.56306 & $\text{g}^+\text{g}^-$-tt = 3.00859 & $\text{g}^+\text{g}^-$-tt = 3.51 & -0.50141 \\ \cline{2-5}         & tg = 3.36156 & tg-tt = 0.80709 & tg-tt = 0.86 & -0.05291 \\ \cline{2-5}     \hline      \multirow{4}{*}{AM1}         & tt = -37.97281 & && \\ \cline{2-5}         & $\text{g}^+\text{g}^+$ = -36.52659 & $\text{g}^+\text{g}^+$-tt = 1.44622 & $\text{g}^+\text{g}^+$-tt = 1.62 & -0.17378 \\ \cline{2-5}         & $\text{g}^+\text{g}^-$ = -35.85939 & $\text{g}^+\text{g}^-$-tt = 2.11342 & $\text{g}^+\text{g}^-$-tt = 3.51 & -1.39658 \\ \cline{2-5}         & tg = -37.25846 & tg-tt = 0.71435 & tg-tt = 0.86 & -0.14565 \\ \cline{2-5}     \hline      \multirow{4}{*}{PDDG/PM3}         & tt = -34.61227 & && \\ \cline{2-5}         & $\text{g}^+\text{g}^+$ = -33.94462 & $\text{g}^+\text{g}^+$-tt = 0.66765 & $\text{g}^+\text{g}^+$-tt = 1.62 & -0.95235 \\ \cline{2-5}         & $\text{g}^+\text{g}^-$ = -33.29225 & $\text{g}^+\text{g}^-$-tt = 1.32002 & $\text{g}^+\text{g}^-$-tt = 3.51 & -2.18998 \\ \cline{2-5}         & tg = -34.38819 & tg-tt = 0.22408 & tg-tt = 0.86 & -0.63592 \\ \cline{2-5}     \hline   \end{tabular} \end{adjustbox} \end{table}  \end{document}


Repeatedly clicking the edit button causes chaos

Help!!!  I don't know quite what happened, I was getting frustrated, trying to somehow escape the backticks inside the code formatting. I clicked the edit button too many times, and then the above happened. Perhaps I clicked it to fast, I don't know, but I then got lots of boxes.    Edit:  Based on a test case below, the problem is simply caused by pressing edit while you still have an edit box open. They all go away when you press cancel anywhere once. This makes it much easier to reproduce, and, while not very important, perhaps still something to be fixed.  Note on the pattern:  When you click the first time, you get one box, as normal. When you click again, you get one extra empty box at the top, and another normal box above that. At each click, one empty box is added per existing normal boxes, plus one normal box. What is going on?


Convert a number to its expression in words (e.g. 55 -> fifty-five)

Is there a way to convert a number to a string (Apex code, formula field ..)  For example: 5200 > cinq milles deux cents


Why isn't execute permission needed to source a file?

Someone asked  about why they got permission denied when they entered in a Bash shell  /etc/profile   I know this is because the file has no execute permission. Even root cannot execute it (sudo /path/to/file/with/no/execute/bits fails with the uninformative error sudo /path/to...: command not found). I also know that root can enter a directory with no execute bits, so the absolute prohibition on executing non-executable files seems special. In chat,  (presumably, from accidentally executing dangerous code).  I briefly wondered why anyone would want to execute /etc/profile and thought that if anyone did want to execute it, they would probably actually want to source it (because it is a configuration file that sets environment and shell variables). I then realised that execute permission is not needed to source any regular file. But source executes the file in the current shell! The file can contain any command, and . file will go right ahead and execute it.  If execute permission is restricted to prevent accidental execution of potentially dangerous code, why is it possible to execute non-excutable files using the source command?


Why do people say "I met him on the street" instead of "on a street", even though they're talking about a street for the first time and another person doesn't know what exact street they mean?


I am getting java.lang.NullPointerException at FileUploadBean.uploadFile, not sure why as I have data in my list of string fileData.  Java code:  private List<String> fileData;  public void uploadFile(FileEntryEvent event) {     System.out.println("Event: " + event.getSource());     System.out.println("Test");     FileEntry fileEntry = (FileEntry) event.getSource();     FileEntryResults results = fileEntry.getResults();     for (FileEntryResults.FileInfo fileInfo : results.getFiles()) {         if (fileInfo.isSaved()) {             System.out.println("File is saved sucessfully");             fileData.add("FileName: " + fileInfo.getFileName());             fileData.add("FileSize: " + fileInfo.getSize());             fileData.add("FileStatus: " + fileInfo.getStatus());         }     } }  public List<String> getFileData() {     System.out.println("inside getFileData");     List<String> data = fileData;     return fileData; }  public void setFileData(List<String> fileData) {     this.fileData = fileData; }   Exception:      Caused by: java.lang.NullPointerException         at FileUploadBean.uploadFile(FileUploadBean.java:54)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)         at java.lang.reflect.Method.invoke(Method.java:597)         at org.apache.el.parser.AstValue.invoke(AstValue.java:264)         at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)         at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)         at org.icefaces.ace.component.fileentry.FileEntry.broadcast(FileEntry.java:306)         ... 28 more


my app open form at first running i can close this form and the app still running my problem is when i click again on app i need only open form and dont create new procces this code give the procces but how can i opem form from this spesific procces??   public static Process RunningInstance()        {            Process current = Process.GetCurrentProcess();            Process[] processes = Process.GetProcessesByName(current.ProcessName);             //Loop through the running processes in with the same name              foreach (Process process in processes)            {                //Ignore the current process                  if (process.Id != current.Id)                {                    //Make sure that the process is running from the exe file.                      if (Assembly.GetExecutingAssembly().Location.Replace("/", "\\") == current.MainModule.FileName)                    {                        //Return the other process instance.                          return process;                    }                }            }            //No other instance was found, return null.              return null;        }```


As an introduction this is what's written in my textbook:  $Power=\frac{work\ done\ by\ driving\ force}{time}$ $=\frac{Driving\ force×distance}{time}$ (as distance over time = speed) $= Driving\ force×speed$ Note: If the power is constant and the body is accelerating then the speed is changing thus the driving force must also change to keep the power constant.  And in most of the questions we solved in class we assume that the power (of a car) is constant and the "note" in the text I mentioned explains how it will be constant and I understand that. What I don't understand is why will it be constant in the first place? Shouldn't the car exert the same force all the time— so the speed will increase increasing the distance— and thus the work done will increase as time passes and the power will keep increasing? My teacher informed us that we "assume" that the power is constant and that it variates between a certain range. • Yet why does the power have to be limited to a certain range? Why doesn't it increase forever? Or at least increase until it comes to its maximum speed due to air resistance? • Why does speed decrease when the driving force gets bigger even when there's no friction to prevent the car from speeding up forever?


Want to remove \n\t whitespace from my string c++

I have a requirement to remove "\n\t" from the input string? For example, "lorenda bianco" <loredana.bianco@yahoo.co.jp>  is invalid input for me. (just \n) "lorenda bianco"     <loredana.bianco@yahoo.co.jp>  is valid input for me. (\n\t). I tried with isspace, but don't know how to make combination of different whitespaces. I want my output as  "lorenda bianco" <loredana.bianco@yahoo.co.jp>. I am able to get rid of "\n" with the help @404. But still, \t doesn't work neither with his solution nor erase/remove. I am also trying to remove \t with: s.erase(std::remove_if(s.begin(), s.end(), '\t'), s.end());  which somehow doesn't work. But when I print it shows 4 separate spaces instead of a single tab. May be that's why it doesn't work. It expects single tab instead of 4 consecutive space characters. Don't know how to crack it. --- Failed attempt to remove \n\t from string (\n works but \t still exists ) str before ws removal: "lorenda bianco" <loredana.bianco@yahoo.co.jp>  str after ws removal: "lorenda bianco"    loredana.bianco@yahoo.co.jp


Did the Cave Trolls turn to stone when the shadows lifted from Mordor?

Did Sauron's Cave Trolls that roamed about under the shadows in and around Mordor turn to stone when shadows were lifted? Are all Trolls affected like Bert, Tom, and William in The Hobbit?


What are the characteristics of a flip card in my library?

Are the characteristics of a flip card in my library determined by both faces or just the front face?  For example, can I use an  to fetch ? Enlightened Tutor searches for enchantments and artifacts. If Sasaya is only an Enchantment after she's flipped, does that count?


What is the best way to improve Aperture 3 peformance on an iMac?

I've got a 27" 2.8 i7 iMac. I recently moved from iPhoto to Aperture for managing my photos, and am not all that happy with the performance.  With a bit of diagnosis, I've seen that 4GB RAM doesn't really seem to be enough - I'm getting lot of virtual memory page outs. I'm going to go ahead and upgrade to 8GB.  Would moving my Aperture library onto an external firewire hard disk improve performance? It seems like FW800 is fast enough to cope with modern hard drives.     I'd love to hear experiences from anyone who has tried this, and anyone else who has some good advice for improving Aperture performance in general.


how to re-enable first time setup at next boot?

tl;dr: What is the hidden setting that tells the first-time-user-wizard to run? i just want to re-enable that flag so next time the phone boots it shows the new user wizard and UI hints.  A friend gave me his new nexus to install CM11 and a few applications.  To install those applications i created a bogus Google account, downloaded them from the store, configured and then removed my account.  now i want to give the phone back in a way that when it is powered on, it shows the create new account/enable Wifi/etc wizard.  I already tried wiping out data from "one time setup" system application, but that did nothing. Any other ideas?


I need to concatenate 2 variables to print the value

USER_DEV="abcd" ENV="DEV"  Requirement: to print the actual value abcd by substituting 2 variables as below? echo $(USER_$ENV) should return abcd. I get error as below: USER_ENV: command not found  Please suggest.


What form of the verb is used with the word "did" (especially in a interrogative sentence)

Jill did not allow last game to Liz.   Or     Jill did not allowed last game to Liz.   Do we always use the infinitive form of the verb with "did"?


Why linux process with status 'D' can be killed ?

linux process with status 'D' mean TASK_UNINTERRUPTIBLE, so I write a programer to test it on Ubuntu 16.04   My code:  #include <unistd.h> #include <iostream> using namespace std;  int main(void) {     pid_t  pid = vfork();     if (pid == -1) {         cout<<"for error"<<endl;     } else if (pid == 0) {         cout<<"this child is "<<getpid()<<endl;         sleep(1000);     } else {         cout<<"this parent is "<<getpid()<<endl;     }     return 0; }   after I run the programmer, the status of the parent process is 'D'   When I use kill command to kill the parent process, the parent process was be killed successfully, so anything wrong in my code ?   Thanks very much !!!


Why doesn't Hawking radiation add to the mass of a black hole just as much as it subtracts from it?

If 'quantum foam'-generated particles are made of matter and antimatter in equal amounts, why don't the matter particles that fall into the black hole add to the black hole's mass just as much as the antimatter particles subtract from it? How, then, can the black hole evaporate due to Hawking radiation? P.S.: Someone else asked a very similar question, but it was never answered....


how to let part of the regex (that is variable) be matched literally, ignoring control characters?

I got some filenames containing characters that are regex special control ones.  I need to prepare a regex that considers all these characters literally.    Simplified test case:  strFilenameOnDB="some ( file ) name +.ok"; strFilenameToCheck="$strFilenameOnDB"; #code simplification strRegex=".*${strFilenameToCheck}.*"; if [[ "$strFilenameOnDB" =~ $strRegex ]];then echo OK;fi   the above will (of course) fail.  in perl we can use /Q /E () to turn the expanded $strRegex into literal, is there anything like that for bash?  Obs.: I will post what I am already doing, but I wonder if there is a better way?


I am trying to remember the name of a book of short stories. It was a very thin paperback, with only 4 or 5 stories, and the cover was predominantly black. I don’t remember if it had any image on it. It was probably published in the 1970s, or possibly the early 80s. The story I remember best was the first in the collection. It was set in the near future, in which space travel exists, and Mars is being settled from Earth. It is a bleak hostile world, which used to be ruled by a technologically advanced civilisation that mysteriously vanished, leaving various artifacts behind. This would be consistent with the book being from the 70s, as there are no “Martian canals”, but nonetheless conditions are not as harsh as we now know they are. In any case, the story deals with a pair of Earthman treasure hunters who come across an ancient cache of military equipment in a cavern. They first find small arms (but of extreme power), then larger weapons, including something like a laser cannon which had a protective forcefield. Clearly Earth technology had not yet advanced to creating forcefields. Then they found a squad of robot warriors, and finally an unusual helmet. When one of the men puts it on, he realises he can hear his colleague’s thoughts “…yes, with these weapons and this army we can knock over a third world country, then live in luxury for the rest of our lives…” When he hears this, he calmly shoots the man, and remarks “No ambition. With this equipment, I could rule the world.” He sees one last box in the cavern marked something like “The final weapon” in the Martian script. He opens it, and a grey amorphous shape floats out. At first, thinking it was poison gas he runs from it, but the shape condenses around the man’s corpse on the floor and remarks “Still protoplasm. I like still protoplasm.” It then consumes the body in a gulp. It drifts after the remaining man who opens fire on it with the Martian guns to no effect. He operates the forcefield, but the shape just drifts through it. “Live protoplasm. I like live protoplasm” it remarks, and consumes him. It then goes to the surface looking for the many units of live protoplasm, “just as there had been so many centuries ago”. I would really love to know who the author was. Even fifteen years later I can still remember some of the dialogue verbatim  (well… I think I can), so it made a big impression on me. The other stories were less memorable. One was about a man with a very elaborate model train set up, who finds himself shrunk to the scale of the model, and is eventually killed by the trains.


how to change background of nautilus in ubuntu 14.04

As the question goes, How can I change the background of nautilus in Ubuntu 14.04 ??  I have already tried dconf-editor, gtk-tweaker, gnome-tweaker. They change the color of some parts of some pannel but not the background of nautilus in icons view.


Is raising the undead an evil act for lawful good characters?

Situation: A character playing a lawful good (Oath of Devotion) paladin found a wondrous item called "Night caller".  (This item is a whistle that allows you to cast "Animate dead" at night and call forth a skeleton or zombie.)  The paladin wished to keep the item, but some in the group, felt that this is an evil item because it raises the undead.  Question: So by the rules, is raising the dead an evil act or does it depend on what you do with the undead?  (excluding cursed items)


How to convert a one digit number to a two digit number

I have a table that represents a timetable for bus, so each cell contains time of departure as hour followed by minute, both as two digits, but sometimes I don't have two digits,just one so I have to switch eg. from 12 4 -> 12 04. How is it possible?


Calculate intersection of a line with a plane

I was reading something about: “Intersection of a line with a plane”. But I don’t fully understand how to calculate it on their way.  The goal is to calculate where the plane and the line will “cross”. These items are given:   The eye is in position: O(0,0,-10)   A point of a 3D-object is P(10,20,30) The screen has the equation z=0   I have a questions about how they calculate this:    This part is clear. That is the location form the eye (vector representation).   They specify the location of the plane, there is nothing strange here (vector representation).   Now they calculate what part of the line will cross, how did they calculate this? How did they know a = 1/4? And b = 10/4?  This is everything that was given.


Do +1/+1 counters go away with -1/-1 counters?

with one of the main mechanics of Amonkhet being -1/-1 counters, i am worried about how that will affect my +1/+1 counter deck, specifically . if a +1/+1 counter cancels out a -1/-1 counter, will it go away if a creature has both, rendering my creature with  less powerful?


localized at associated prime of an ideal

The problem is as follows:  Let $I\subseteq J$ be ideals in a Noetherian ring. Show that if $I_{p}=J_{p}$ for every associated prime $p$ of $I$,then $I=J$.  It seems reasonable to  consider $J/I\subseteq R/I$ but I couldn't go on.  Let M be an $R-\mathrm{module}$. A prime ideal $p$ is an associated prime of $M$ if there exists nonzero $x\in M$ such that $p=\mathrm{ann}_{R}(x)$.


Different font sizes for Figure and Subfigure Captions

That's what I use  \usepackage{caption} \usepackage{subcaption}   The template I'm using is from a university and uses the Koma Script When adding figures or graphs I do this:  \begin{figure}[h!] \begin{subfigure}[normal]{0.40\textwidth}  \includegraphics[width=\textwidth]{figures/Fig1} \caption{Caption of Fig1} \label{Label of Fig1} \end{subfigure} \begin{subfigure}[normal]{0.40\textwidth} \includegraphics[width=\textwidth]{figures/Fig2} \caption{Caption of Fig2} \label{Label of Fig2} \end{subfigure} \caption{This is the caption for whole graphic} \label{This is the label for the whole graphic} \end{figure}   what I want to know is how to simply adjust different font styles for the captions of the subfigures and figure.  I want especially the captions fonts of the subfigures to be smaller than the captions fonts of the figures.  As far as I googled the problem, I could do this with a Koma script command or by addressing the caption package.  I tried the following:  \captionsetup{font=small,labelfont={bf,sf}}   this affects all captions but how can I adjust the captions of subfigures separately?  I don't understand the difference in the approaches between the komaScript and the captionpackages So I simply want to adjust the Font sizes of the different Caption types separately and uniquely for the whole document and I would like to adjust the space between the captions and the subfigures .....


Open project made on OSX lion on a windows computer with QGIS

I made a project in my personal computer (mac OS Xlion) and now I would like to modify it on my work computer (windows 7), Is it possible?


How to hide the running popup cmd? I installed prometheus in my windows server. when I run it, it will popup the CMD window, but if I close it, the process will shut down.  is there any way to hide it? because that is really easy to close it by mistake.


Just Upgraded to Mojave and started getting the Out of Application Memory box

I have just migrated to Mojave and with no applications open, except whatever runs in the background, I receive the Out of Application Memory panel.  The only app it shows as running is Finder.  I am running on a Mac Mini with 815 Gbytes available on my system drive. I did not have this error before upgrading to Mojave.


How to open a window in background without letting it get the focus?

Scenario:   Open a program that is starting slowly Not wait for it to open, and switch to other window/task. For e.g. selecting some files in a directory to delete While I am working focused on other task (selecting files) that program, after a few seconds, opens and covers everything   The desired behavior:  Do not open on top of all windows and distract me while I am working on other task, instead display a notification in side panel so I will open that window when I'll want (when I'll finish my current task)     What happens instead:  That program doesn't care what I am doing at the moment, it just opens rude in my face and covers everything.    This looks like a very minor problem, but it happens to me almost every day and already started to annoy me.


I understand that one should use me or I the same as they would with out the other person in the sentence. My questions is however, is the sentence "they fixed my wife and I's car" correct? My wife and my car?


Do I need a transit visa to collect and re-check my luggage at Istanbul Ataturk airport?

I'm Egyptian and flying to Cairo from Tbilisi, via Istanbul. The first flight Tbilisi-Istanbul is on Atlasjet, then from Istanbul to Cairo I am flying on Egyptair. For that, I have to recheck in at Istanbul to my Egyptair flight  Will I need to pass passport control at Istanbul airport to collect my bags and check in on Egyptair? Will I need a transit visa for that? Or it can be all done through neutral zone?


How do you switch a site's language by using GET variables? Is there a module?

Currently I'm using  that displays a bunch of nodes on a single page.  And I also have translated content in different languages.  The core functionality to switch a sites language currently creates a prefix in the URL, but is there one for switching the language via a GET variable like www.example.com/node/8?lang=german?


To find the unique path from starting (origin) to end in a M x N matrix I am able to do a backtracking recursion implementation. I tried extending the approach with dynamic programming using the memorization technique. Can some one point to the problem/issue with the below code? class Solution():     def uniquePaths(self, m, n):         """         :type m: int         :type n: int         :rtype: int         """         self.dp = [[-1] * n] * m         return self.getuniquePath(0, 0, m, n)      def getuniquePath(self, row, col, m, n):          if row == m or col == n:             return 0         if row == m - 1 and col == n - 1:             self.dp[row][col]=1             return 1          if self.dp[row][col] != -1:             return self.dp[row][col]         self.dp[row][col] = self.getuniquePath(row + 1, col, m, n)+ self.getuniquePath(row, col + 1, m, n)          return self.dp[row][col]  s1=Solution() print s1.uniquePaths(3,3)


User defined compiler warning or error in C#

Is it possible to have some code let the compiler generate a compile warning or error?  Maybe with Attributes?  ** Having the first answer and a few comments I realize my question is not as a clear as I expected and wanted it to be. I apologize. Hopefully all contributers are still with us. **  So I am more looking towards an internal DSL.  S.Th. like  [MustAssign] public string Val {get; set;]


I'm having trouble understanding the solution presented below (It's from a textbook). I tried to get something similar, but to no avail. Help me find the way he derived those a,b,x2 and y2 expressions.   Point p is a point which we want to reflect (It's a simple structure with two integers x and y representing coordinates on a 2d plane); (x0,y0) and (x1,y1) are coordinates of endpoints of a line.  Expected result is a new point with reflected coordinates.   Point mirror(Point p, int x0, int y0, int x1, int y1) {     double dx,dy,a,b;    long x2,y2;    Point p1; //reflected point to be returned      dx  = (double) (x1 - x0);    dy  = (double (y1 - y0);     a   = (dx * dx - dy * dy) / (dx * dx + dy*dy);    b   = 2 * dx * dy / (dx*dx + dy*dy);     x2  = Math.round(a * (p.x - x0) + b*(p.y - y0) + x0);     y2  = Math.round(b * (p.x - x0) - a*(p.y - y0) + y0);     p1 = Point((int)x2,(int)y2);      return p1;  }


Why not display characters which I typed in tty?

I pressed CtrlAltF1 to enter TTY1. I worked a while mainly on vim, then my shell (bash) stops echoing.  If I type echo abc it does not get display.  Instead I get a screen like this:   How do I fix the problem?


$AB-BA$ invertible and $A^2+B^2 = AB$ then $3$ divides $n$

Let $A, B \in M_n(\mathbb{R})$ such that : $AB-BA$ invertible and $A^2+B^2 = AB$ then prove that : $3 \mid n$.   I tried to manipulate or find some factorisation in order to be able to use efficiently eigenvalues...  but I dind't find anything.   Thank you !


Different linux distros sharing the same /home folder?

What is the best way to share the same /home directories between different linux distribution?   I mean, I want to have both, say, Fedora and Arch, and I want to find my files at home no matter which linux distro I boot into. But if I mount the same partition for /home then I may mess up the configurations saved inside /home directory.  So what can I do?


Photon Emission/Absorbsion from the Photons Perspective

First some assumptions.  1) Photons travel at the speed of light. 2) From the photon's reference spacetime is contracted to 0 length in the direction of photon travel. 3) From the photon's reference it is emitted and absorbed at the same time and in the same place.  Now imagine a setup with 1 emitter and 2 detectors (E, D1, D2).  E emits photons toward the center of D1.  D2 is directly behind D1 in the direction in which E emits (D1 is in the line-of-site of E, D2 is hidden from E behind D1.  E -> D1  D2  From our frame of reference photons are emitted and always absorbed by D1.  From the photon's reference, aren't the emitter and detectors sitting in the same place in its perceived 2D space?  Wouldn't it then be equally valid for the photon to be absorbed by D2, or both D1 and D2? Maybe neither?  Does contracted spacetime maintain some sort of z-order?  It's been my understanding that when things happen doesn't remain constant between reference frames, but the effects, what actually happens does.  Is there a paradox here or am I looking at it wrong?  Is it ever valid to ask what happens in an external frame of reference?


How to have separated but vinculated multiple Ubuntu One accounts?

I would like to use 1 account for keeping private files synchronised and another for business files, which will be read by others. I have different e-mail addresses for business and private.  The private arrangement is between home, office and laptop. The business arrangement is between these plus business partners.  I have tried setting up this arrangement but my efforts are not successful. Is thus possible? If so, how do I instruct the Ubuntu One Manager which folder should be synchronised in which account?


differentiating between the usages of "seem"

I am wondering if the explanations correct and whether what is the difference between different "seems".   He seems happy. He seems a happy fellow. He seems to be a happy fellow. He seems to work hard. He seemed to be happy   "Seem" also enters into an 'impersonal' construction which employs 1) the 'dummy' subject it + an active tensed form with "seem", followed by 2) a that clause (sometimes called a 'content' clause) which expresses the assertion which is hedged or qualified.   It seems that he is happy (but he may not be).  It seemed that he was a happy fellow (but he wasn't).  It will seem that he is working hard (but he will in fact be spending his time answering questions on ELL instead of working).  He is seemed to be something.


What does "do" mean in "They really do exist"?

I was watching an animation last night then I heard a sentence which was strange for me. One of the characters sayed this sentence      "They really do exist"    He sayed it because he saw a creature that he thought they don't exist , so my question is what does do mean here??


How to programatically restart explorer.exe using C#

I been trying to restart explorer.exe so my other script that hides the icons can take effect. I tried to do this by executing a command prompt window through my C# program:  /k taskkill /f /im explorer.exe start explorer.exe   When I run this the first half of it work and the explorer.exe is killed, and my screen is black except the files that were already open, but when the second half of the script is run only the windows explorer (file manager) starts. By the way the above command works if I start cmd on a regular terminal but it doesn't through my C# program. the only way I could turn the explorer back on was using ctl+alt+del to bring up the task manager and run a new task "explorer" no quotation. If you know how to fix this please let me know. Thank you


How do you concatenate strings and integers in C++?

I am trying to concatenate strings and integers as follows:  #include "Truck.h" #include <string> #include <iostream>  using namespace std;  Truck::Truck (string n, string m, int y) {     name = n;     model = m;     year = y;     miles = 0; }  string Truck :: toString() {      string truckString =  "Manufacturer's Name: " + name + ", Model Name: " + model + ", Model Year: " + year ", Miles: " + miles;     return truckString; }   I am getting this error:  error: invalid operands to binary expression ('basic_string<char, std::char_traits<char>, std::allocator<char> >'       and 'int')         string truckString =  "Manufacturer's Name: " + name + ", Model Name: " + model + ", Model Year: " + year ", Miles...   Any ideas what I might be doing wrong? I am new to C++.


How to prove that $a^{x}\leq b^{y}$ for any cardinal number a,b, $x,y$ with a$\leq$b , $x\leq y$?


How to stop my server from bruteforcing another

There are so many resources on how to stop bruteforce attacks on your server, but I can't find any good on bruteforce attacks FROM a shared hosting server. I am getting a lot of reports from many different providers that my servers is attacking theirs. Even after scanning with ClamScan and removing a whole lot of malware. Is there an easy way to see which website(or script) on my server is calling, lets say, "/wp-login.php" on another server?


What's wrong if I fit the auto-regression with OLS?

I am doing auto-regress by usual linear regression package. e.g.  $y_t=φx+ε_t$ with $x =y_{t-1}$  My reason is that, Auto-regression does assumes iid errors, same for linear regression. Linear Regression doesn't have assumption on independent variables. What's different is merely that the independent variables is replaced with lagged dependent variable y.  But I see AR always is fitted by specific methods, I am afraid I'm doing wrong.


Proving $\text{Gal}(K/F) \cong \text{Gal}(K/E_1) \times \text{Gal}(K/E_2)$

Let $K/F$ be a Galois extension. Also, let $E_1$ and $E_2$ be two Galois extensions of $F$ in $K$ with $E_1E_2 = K$ and $E_1 \cap E_2 = F$. Prove that $G = \text{Gal}(K/F) \cong \text{Gal}(K/E_1) \times \text{Gal}(K/E_2)$.  I think this is just an application of results of the Fundamental theorem of Galois theory (and maybe the Chinese Remainder Theorem?), but I'm uncertain on how to prove it.   Since we know $E_1/F$ and $E_2/F$ are Galois extensions, we have $\text{Gal}(K/E_1)$ and $\text{Gal}(K/E_1)$ are normal subgroups of $G$. We get $\text{Gal}(E_1/F) \cong G/\text{Gal}(K/E_1)$ and similarly $\text{Gal}(E_2/F) \cong G/\text{Gal}(K/E_2)$. I don't know what to do from here, or if these statements if even help. Thoughts?


Importing spreadsheet CSV file with coordinates into QGIS

I watched a simple video tutorial on how to accomplish it, but nothing shows up on my project when I add the layer. Even if I try zoom to layer, the screen just shows blue. I'm not sure if it has something to do with my Excel, computer, or program. I really need help as I am new to QGIS.


I am always very hesitant to run kill -9, but I see other admins do it almost routinely.  I figure there is probably a sensible middle ground, so:   When and why should kill -9 be used? When and why not? What should be tried before doing it? What kind of debugging a "hung" process could cause further problems?


How to show that the canonical double-dual map $c_0\to\ell^\infty$ is not surjective?

I have a question regarding dual spaces.  We know that the dual space of $\ell^1$ is isomorphic to $\ell^\infty$, and the dual space of $c_0$ is isomorphic to $\ell^1$. Here $c_0$ refers to the normed space of sequences of (real or complex) numbers that converge to $0$, and the norm is induced by the sup norm of $\ell^\infty$.  How do I show explicitly that the canonical mapping for $c_0$ is not surjective?  Kindly provide the details as I am new to functional analysis.  Thank you very much for the response.


If $\mathcal{A}$ is an abelian category then $\text{Hom}_{\mathcal{A}}(M,-)$ is left exact functor

Let $0\to A\xrightarrow{i} B \xrightarrow{j}C$ be an exact sequence in an abelian category $\mathcal{A}$. For an object $M\in \mathcal{A}$, I want to show that the sequence $0\to \text{Hom}(M,A)\xrightarrow{i_*} \text{Hom}(M,B) \xrightarrow{j_*}\text{Hom}(M,C)$ is exact. I know the proof of this when $\mathcal{A}$ is the category of $R$-modules for some ring $R$, and the same proof applies to show that $i_*$ is injective and $j_*i_*=0$, but I can't see how to show $\ker(j_*)\subset \text{image}(i_*)$. In the case $\mathcal{A}=R$-mod, given $f\in \ker(j_*)$ I may take $i^{-1}f\in \text{Hom}(M,A)$ to get $i_*(i^{-1}f)=f$. How can we show this in a general abelian category?


Computation of integral $\int_{\rho} \frac{dz}{(z-a)(z-b)}$

Let $a,b$ be complex number and  $|a| < r < |b|$, compute.  $\int_{\rho} \frac{dz}{(z-a)(z-b)}$  where $\rho$ is the circle with radius $r$ and the usual orientation.  I've tried the common path $\int_{\rho} \frac{dz}{(z-a)(z-b)} = \int_0^{2\pi}\frac{rie^{i \theta} d\theta}{(re^{i \theta} -a)(re^{i \theta}-b)}$ but in this point I don't know how use the $r$


combine list of lists in python (similar to string.join but as a list comprehension?)

If you had a long list of lists in the format [['A',1,2],['B',3,4]] and you wanted to combine it into ['A, 1, 2', 'B, 3, 4'] is there a easy list comprehension way to do so?  I do it like this:  this_list = [['A',1,2],['B',3,4]] final = list() for x in this_list:      final.append(', '.join([str(x) for x in x]))   But is this possible to be done as a one-liner?  Thanks for the answers. I like the map() based one. I have a followup question - if the sublists were instead of the format ['A',0.111,0.123456] would it be possible to include a string formatting section in the list comprehension to truncate such as to get out 'A, 0.1, 0.12'  Once again with my ugly code it would be like:  this_list = [['A',0.111,0.12345],['B',0.1,0.2]] final = list() for x in this_list:     x = '{}, {:.1f}, {:.2f}'.format(x[0], x[1], x[2])     final.append(x)   I solved my own question:  values = ['{}, {:.2f}, {:.3f}'.format(c,i,f) for c,i,f in values]


ALT + TAB switcher shows preview over icons. How to fix?

The switcher doesn't switch the apps correctly. I think the issue began after I used Unity Tweak Tool.   is the same question but hasn't been answered. I can't comment or upvote the question because of my reputation so here I am posting it again.  Thanks in advance.


Break down a long string into smaller string of given length

I am trying to break down a long given string into a smaller string of given length x,  and it returns an array of these small strings. But I couldn't print out, it gives me error [Ljava.lang.String;@6d06d69c Please take a look at my code and help me out if I am doing wrong. Thanks so much!  public static String[] splitByNumber(String str, int num) {      int inLength = str.length();     int arrayLength = inLength / num;     int left=inLength%num;     if(left>0){++arrayLength;}     String ar[] = new String[arrayLength];         String tempText=str;         for (int x = 0; x < arrayLength; ++x) {              if(tempText.length()>num){             ar[x]=tempText.substring(0, num);             tempText=tempText.substring(num);             }else{                 ar[x]=tempText;             }          }       return ar; }  public static void main(String[] args) {     String[] str = splitByNumber("This is a test", 4);     System.out.println(str); }


I'm having problems settings my JTextField from another class. When i press button "=" it is supposed to do calculations inside AddNumbers class and set JTextField as result of calculations. But for now it is throwing NullPointerException. I can't figure out how to set up JTextField. I have to set it inside AddNumbers due to Chain of Responsibilities Design.  public class AddNumbers implements Chain { private Chain nextInChain; public CalcGui calcgui; int result=0;  @Override public void setNextChain(Chain nextChain) {     // TODO Auto-generated method stub     this.nextInChain=nextChain; }  @Override public void calculate(Numbers request) {     // TODO Auto-generated method stub     if(request.GetCalcWanted()=="add") {         result = request.GetNumber1()+ request.GetNumber2();         this.calcgui.txtWynik.setText(String.valueOf(result)); //NULLPOINTER     }else {         nextInChain.calculate(request);     } }   And here is CalcGui class  public class CalcGui {  private JFrame frame; JTextField txtWynik;  static Numbers request; int x,y; String operation; boolean clicked = false; /**  * Launch the application.  */ public static void main(String[] args) {     EventQueue.invokeLater(new Runnable() {         public void run() {             try {                 CalcGui window = new CalcGui();                 window.frame.setVisible(true);               } catch (Exception e) {                 e.printStackTrace();             }         }     }); }  /**  * Create the application.  */ public CalcGui() {     initialize(); }  /**  * Initialize the contents of the frame.  */ private void initialize() {     frame = new JFrame();     frame.setBounds(100, 100, 270, 361);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.getContentPane().setLayout(null);      txtWynik =new JTextField();     Chain chainCalc1=new AddNumbers();         JButton btneq = new JButton("=");     btneq.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {             request = new Numbers(x,y,operation);             chainCalc1.calculate(request);          }     });


Story about a civilization which repeatedly rises and falls, because individuals can't stop reproducing

I'm looking for a story which has these elements: There is an alien species whose biology compels it to reproduce every couple of years, and they don't have a choice about it.  As they develop technologically, the population rises faster and faster until civilization falls again and a period of darkness comes to the world.  They try various ways to prevent it - drugs, infanticide etc, but they've never been adopted by the whole world, so civilization keeps rising and falling.  There is also some mention of different varieties of the aliens - soldiers, medics, etc. and perhaps trying to eliminate certain versions to reduce the population pressure.  The story takes place during a period of high technology.  The main characters stumble on an ancient subway line which has somehow survived.  I read it in the 90s, but it could have been written quite a while earlier.


How do I get the output to produce random numbers?

This is what I have so far      import java.util.Arrays;  public class Randoms {      public static void main(String[] args) {         int[] array = new int [50];         for (int index = 0; index < array.length; index++) {             int j = (int) Math.random() * 101 + 1;              System.out.println(j);         }      }  }   My output just produces a bunch of 1s. I want numbers from 0-100? Any help would be appreciated. I am fairly new to Java so sorry if this is a really dumb mistake. Thanks in advance.


A book about a rune-based magic adept whose spells don't work

Okay, I've spent too much time looking for this book, it's time to ask for help. Around 10 or more years ago I've read a book about a young person (possibly a girl but I'm not sure). The main theme of the book was that the world's culture was based on magic, which was based on the runes. There was some kind of an earthquake (?) after which the magic stopped to work. It was really weak and had no more use of it. Eventually the hero found out that the runes were basically the map of the world (city?) with added lines, and that the earthquake created an abyss which had to be represented on the 'map' for runes to work. At the end of the book was awesome list (dictionary)  of those runes with drawn symbols and written spells.  I tried everything and can't find this book. I'm desperate. Sorry for any grammar mistakes, not a native speaker.


Vim: How do I search for a word which is not followed by another word?

Pretty basic question, I'm trying to write a regex in Vim to match any phrase starting with "abc " directly followed by anything other than "defg".   I've used "[^defg]" to match any single character other than d, e, f or g.  My first instinct was to try /abc [^\(defg\)] or /abc [^\<defg\>] but neither one of those works.


Scanner changing a string not working - Java

Regardless if i enter "Y" or "N" into the console it always jumps into the else statement, is the scanner set up wrong or what is the problem with this script ?   import java.util.*; import java.lang.*; import java.io.*;  class StartingClass { public static void main(String arg[] ){      System.out.println("The Best Encryption Bot 2016");       StringBuffer passWord = new StringBuffer();      Scanner input = new Scanner(System.in);      System.out.println("Please enter the phrase you want to encrypt: ");     passWord.append(input.nextLine());     System.out.println("Original: " + passWord);      for(int i = 0; i < passWord.length(); i++) {         int temp = 0;         temp = (int)passWord.charAt(i);         temp = (int) (temp * 4);         passWord.setCharAt(i, (char)temp);     }        System.out.println("Encrypted: " + passWord);       System.out.println("Do you want to unencrypt a phrase ? Y/N");     Scanner Encrypt = new Scanner(System.in);      String unencrypt = Encrypt.nextLine();       if (unencrypt == "Y" ) {          StringBuffer deCrypt = new StringBuffer();              Scanner deinput = new Scanner(System.in);              System.out.println("Please enter the phrase you want to Decrypt: ");             deCrypt.append(deinput.nextLine());             System.out.println("Original: " + deCrypt);              for(int i = 0; i < passWord.length(); i++) {                 int temp = 0;                 temp = (int)deCrypt.charAt(i);                 temp = (int) (temp / 4);                 deCrypt.setCharAt(i, (char)temp);                }             System.out.println("UnEncrypted: " + passWord);              } else {                  System.out.println("Ok");              }      }  }   The problem is at the if statement where unencrypt == "Y"


What is a good approach to photographing the Northern Lights with a Canon 60D and kit lens?

I tried to photograph the Northern Lights last night with 60D, kit lens. I had never tried this before. I did figure out the M mode and took some pictures with nice green lights on a 10, 15, 20 and 30 second exposure. I tried the max apertures and a few other settings in the same range-low end. My question with this lens is: what would be a good approach? I noticed I needed to shut off the autofocus or the picture would not be taken, my manual focus was out of focus as I really couldn't see through the camera viewfinder in the dark. Can I use autofocus? And how do I get the camera to take the picture using autofocus? What should I change in my approach?


I was unable to find a previous post about this - perhaps too simple? I just came across the BibTeX and am trying to use it with an EndNote library. I have exported to the .bib file (which looks good as far as I can tell), but no bibliography is printed and the references aren't being cited. Obviously there is something major missing.  My document looks as follows.  \documentclass[11pt, fceqn]{article} \usepackage{epsfig} \usepackage{setspace, titlesec, caption, floatrow}    \usepackage{amsmath, amssymb, amsfonts, amsthm, cite, mathtools, lineno, subfig, natbib}  \begin{document}   Some text \cite{Alo_1}.  \bibliography{bib} \bibliographystyle{plain}  \end{document}   Any thoughts would be greatly appreciated.


#include <stdio.h> #include <stdlib.h>  #define TRUE  1 #define FALSE 0  void recursion (int a) {     if (a != 0) {         recursion(--a); //works         recursion(a--); //does not work         printf("%d\n", a);     }  }  int main (int argc, char *argv[]) {     printf("start\n");     recursion(10);     printf("finished\n");     return 0; }   Why is there a segmentation fault when I recurse (a--) but works fine when I recurse (--a)?  I don't think recursion(a--) is wrong due to undefined behavior because there is only one side effect, which is to decrease a by 1. This side effect is exactly what I wanted. Thanks.


Why do bridge non-Captain officers commonly go on away missions?

Ever since the days of Kirk, Spock, and McCoy, bridge officers in Starfleet have always had a prominent role in away team missions.  However, it would seem more logical to me that such hazardous (and, generally, specialized) duties should fall to lower-ranking and/or more dedicated teams.  Of course, it wouldn't have made for great TV if every away team was comprised of a bunch of red-shirts.  And it would definitely increase the show's budget to have an extra group of main characters whose sole purpose was to handle the away missions.  Still, I'm curious to know if there's ever been a real in-universe explanation for this practice?  I know it's been brought up a few times, in a few series/movies, that the Captain should not be taking part in hazardous away team missions.  But nothing is ever said (that I'm aware of) of the rest of the still valuable bridge crew or other senior officers.


Please help with this contradiction.   $e^{i\pi}=-1$ $e^{i2\pi}=1$ $\ln(1)=i2\pi$ $0=i2\pi$


How could this character survive this action in the Game of Thrones episode "The Long Night"?

In the S08E03 episode of Game of Thrones, we see Daenerys on her dragon standing against the      Night King    and the dragon throws flames at them.  This character survives without harm (even smiling a little). How is that possible?      This should kill even regular people. But he is a White Walker. It should be even deadlier for him.


upgrade from 12.04.01 LTS to 18.04 64 but LTS

Will the upgrade process work all the way from 12.04.1 lts 64 bit to 18.04 lts, or is it better to back up and install 18.04 lts from an iso?  thanks...


Are if else statement equivalent to logical and && or || and where should I prefer one over the other?

I'm learning about decision making structures and I came across these codes:  if [ -f ./myfile ] then      cat ./myfile else      cat /home/user/myfile fi   [ -f ./myfile ] && cat ./myfile || cat /home/user/myfile   Both of them behave the same. Are there any advantages to using one way from the other?


So recently I stopped playing on my vita... ( What a mistake buying that thing). I still have a PlayStation All Stars code for the online features. Is there  a way to find out if the code still works without redeeming it?


Let $R$ be a ring and let $I$ be an ideal in $R$. Prove that the following statements are equivalent.  (1) $I = R$  (2) There exists $u \in R$ such that $u$ is a unit and $u$ belongs to $I$  (3) $1$ belongs to $I$  I only can get that From (1) I know the ring is closed under subtraction and left-right multiplication. And I know I need to prove that equivalent shows that (1) implies (2). Then show (2) implies (3). Could someone help me to finish it? I'd appreciate it.


Why wasn't this upvote counted toward rep?  Screenshot from


I have a data set on which i want to run a machine learning algorithm , some of the columns are skewed. If I apply a transformation (lets say log) to those columns and I want to display the matrix of correlation , should i do it before or after handling skewed columns or should i not do it all ?


How to join Ubuntu Desktop 18.04 to Windows Server 2019 Active Directory?

I tried different guides online but none of them worked. Is there any GUI way to join AD with Ubuntu Desktop 18.04? The error message I always get: couldn't join realm insufficient permissions to join the domain Maybe I should set something on the windows server? I can ping the Windows AD domain controller from the Ubuntu client, Windows Server DHCP gives IP to Ubuntu client after install. I just want to see the Ubuntu machine name in the AD on Windows server.


I'm required to use a complex LaTeX template, and for some reason it's making all my double quotes appear straight. Single quotes (both ` and ') appear in the normal, curly way. Here are all the packages that this template is using. Any idea which one might be causing my straight quote problems? (Sorry, I know it's a lot!) I imagine I could replace all my double quotes with two single quotes, but I'm importing a lot of content from other documents, so that would be a bit pain.  \usepackage{booktabs}  % professionally typeset tables \usepackage{amsmath} \usepackage{graphicx} \usepackage{subfig} \usepackage[table,xcdraw]{xcolor} \usepackage{xspace} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{framed} \usepackage{newfloat} \usepackage{array} \usepackage{makecell} \usepackage[normalem]{ulem} \usepackage{enumitem} \usepackage{hyphenat} \usepackage{multirow} \usepackage{xifthen} \usepackage{pdfpages} \usepackage{dcolumn}% Align table columns on decimal point \usepackage{bm}% bold math \usepackage{cancel} \usepackage{verbatim}% multiline commenting \usepackage{ifthen} \usepackage{url} \usepackage{sectsty} \usepackage{balance}  \usepackage{lastpage} \usepackage[format=plain,justification=RaggedRight,singlelinecheck=false,font=small,labelfont=bf,labelsep=space]{caption}  \usepackage{fancyhdr} \usepackage{abbrevs} \usepackage{etoolbox} \usepackage{units}  \usepackage[sharp]{easylist} \usepackage{array} \usepackage{colortbl} \usepackage{titlesec} \usepackage{placeins} \usepackage{calc} \usepackage{pdflscape} \usepackage{tikz} \usepackage[Rejne]{fncychap} \usepackage{microtype} \usepackage[T1]{fontenc} \usepackage[adobe-utopia]{mathdesign}   (Yes, I know, this is the opposite problem that most people have with double quotes, and it's making it very difficult to find an answer to this question by searching.)


Which is the correct question ("Who has" vs "Who have")?

The situation is that:  We've already read three English novels.  Which is the correct question for that situation?   Who has already read three English novels?  Who have already read three English novels?    Or could both be correct? Please also provide the grammatical reasons for your answers.


Fuzzy border in display for small windows or popups Ubuntu 16.04

On my Asus K53S laptop, when I have a window open which is not maximised, there is a thick border around it consisting of coloured lines and dots.   Unfortunately I dont have enough rep to post a pic. That would show the problem very clearly.   Any idea what is causing this? It is really annoying because that border blocks out other things, and also the 'close', 'minimise', 'maximise' buttons are not visible (its just colourful fuzz).   My laptop has just come back from a repair where the DC power jack was replaced (which entails taking apart most of the laptop). Could this be related?


Qt folder browser opening more than once in QGIS plugin

I have a Qt plugin, and i have a button browse_btn to browse for an output folder.  I use the QFileDialog.getExistingDirectory function and it all works fine. However if I close the plugin and open it again, then click the pushbutton to add a path, the opened window for choosing the path will re-open after I choose a path or close it. If I close the plugin a open it again the 'choose path' window will reopen 3 time and so on...  The similar problem  and  and probably , but since there is no code provided I cannot apply it to solve my problem.  The exact code is following:  self.dlg.browse_btn.clicked.connect(self.set_output)  def set_output(self):     folder_path = str(QFileDialog.getExistingDirectory(self.dlg, u"Pick a folder"))     if not folder_path:         return None   I think this happens because each time I open-close the plugin the separate connection is created with self.dlg.browse_btn.clicked.connect(self.set_output), and it only disconnects after I relaunch QGIS or use


the and thee (I prefer to pronounce it as thuh all the time)

My question is can I always pronounce THE with thuh instead of thee? Because unlike "a" "an" rule, pronouncing "thee" seems cumbersome for some people (including me) Note that I know the "emphasis" and "vowel, consonant" rule about THE but I still prefer to pronounce it as thuh everytime. So can I??


What is the easiest way to disable the touch pad on a laptop?  I have a laptop which lacks a means to turn off the touchpad with a simple Function key sequence.  I would like to disable the touchpad so that it stops detecting movement when I am typing.  This is quite an annoyance as it sometimes results in deletions of sections of a sentence I am typing.  Right now I have a thick piece of paper over the top to decrease the sensitivity.  Any other suggestions on how to do this?


Meaning of "My friend, who lives in Paris, is a teacher" with and without commas

Can anyone help me understand the difference in meaning between these two sentences?        My friend who lives in Paris is a teacher.   My friend, who lives in Paris, is a teacher.      To me it seems they convey the same meaning, however the latter better structures the sentence.  I came across this in the following question:      How would you explain to a learner of English the difference in   meaning between the following pairs of sentences?


Do people tend to be more hostile toward users with default gravatars?

When I signed up, I encountered some hostility, but it seems to have gone down since I added a personalized image. Do people on here tend to be more hostile toward users who have a default gravatar?


How can I use Mac-style shortcuts in Windows?

Is there a way which I can use mac-style shortcuts in Windows?  My personal computer is a Macbook, but my work computer is a Windows PC. Using keyboard shortcuts is a nightmare...  Like the copy command. I want to use Windows + C, not Ctrl + C.  Searching in google just gives me how to use Windows-style shortcuts on Mac, not the opposite.


What does the canonical momentum $\textbf{p}=m\textbf{v}+e\textbf{A}$ mean? Is it just  accounting for electromagnetic effects?


Can this image be fixed? and why has this happened?

When I took this photo it was fine. I looked at it a few times on the camera on my way back home and it was fine. But when I got home and looked at it on the camera again, it was fine for a second but then went like this. It seems to be fine when viewed in files as medium size, but any larger and this happens.  The camera is a Canon IXUS 185


I want to login as root, but when I enter   sudo -s   and enter password, this message is shown: "you are not in sudoers file", and when I enter   su   and enter password, this is shown: "authentication failure".  My os has one account only. about past1 hours ago I log on as root and do some commands , when I logout , I can't login another time!


Let $0 < x_1 < 1$ and $x_{n + 1} = x_n - x_n^{n + 1}$ for $n \geqslant 1$.      Prove that the limit exists and find the limit in terms of $x_1$.   I have proved the existence but cannot manage the other part.  Thanks for any help.


Grammar-checking tool for use with LaTeX?

I am looking for a grammar-checking tool, i.e., something that checks for mistakes such as "two dog" or "a books".  It has to work on Linux (Ubuntu).  Also, since I use macros to generate some of the prose, it has to somehow work with LaTeX.  I don't think that such checkers are LaTeX-aware, so it has to work with some compilation product of LaTeX: DVI or PDF.    If you suggest a grammar checker that checks plain text, please explain how to you extract the text.  catdvi does a nice job, but it leaves some garbage like page numbers.


How does one divide by a vector when calculating pressure?

Sir $P=F/A$ And since $F$ and $A$ both are vectors but $P$ is scalar. So doesn't it violates that "Division is NOT defined for vectors"?


I need to have a dash (or a bar) over a letter in a name, say G\=o ro for Goro, with one o "accented". The TeXBook tells me to do this: \=o for the dash over o. It does not seem to be working. I also tried \={o} which is on AMS website (since I am using AMSTeX), but it is not working either. I am puzzled, because other accents over letter seem to work.   Please note, the claim that the question has been answered before is incorrect, since the answers referred to concern Latex, not AMSTeX. See further discussion down below. Therefore, the problem has not been solved yet.   Minimal example  \input amstex \documentstyle{amsppt} \document   \={o}  \enddocument


Following the way of similar questions for the  and the , I'd like to ask the same for the Demon Hunter.  I know that there's an , but its focus was Nightmare difficulty and none of the answers addressed Inferno.  For a Demon Hunter, high DPS should come natural through a correct itemization. At the moment (I'm still in Nightmare), I'm focusing on damage-increasing skills, since a high-dps grants me an easy dispatch of my enemies, without having to worry of being touched. Is this the main focus even at higher difficulties? Or should I switch to health restoring abilities (as  with , or  with , or ), to balance the higher lethality of the monsters? I'm mainly interested in solo play.  Example builds, with explanation of the choices, would be greatly appreciated.


How can I compile a python 3 program into a standalone executable suitable for naive windows users?

I've looked through the archives and I don't see any solution suitable for sending to a naive user who is used to simply clicking and going.   Also I see that the compiler has been deprecated and removed from Python 3. Does this mean there are 3d party solutions? Would any of them have tutorials? (I'm a pretty naive user myself.)  I have a long list of imports that would have to be included in the executable.


Windows 7 login automically puts "IIIII....." in password, so it is impossible for me to login?

I have no idea why this is happening.  I have ran multiple malware programs, I have run anti-virus programs, I even restored to an early point in time.  The keyboard letter "I" doesn't appear to be stuck, I am using an external keyboard by the way.  When I reboot the computer and get to the login screen, when I press ctrl-alt-del to login, it the password textbox starts putting "IIIIIIIIIIII......", it only stops when I bang on the keyboard.  I also noticed at one point that my caps lock on turned caps off and caps lock off turned caps on and some other weird behavior.  I have tried search online for similar issues, but no luck.


Asking a "Do you have..." question without do-support

Is the following sentence correct English?      Have you the address?   The address in question is obvious to the person being asked.  It's normal to ask such a question as "Do you have the address?" or even "Have you got the address?" But is it acceptable to use just the verb have without do or got?


Mental effect of playing games and watching videos on mobile phones

My 3 years old kid plays games and visits YouTube for kids app on the mobile phone frequently. After some time some effort must be made to remove it from her. It seems like she is addicted to the phone.   Apart from the personal experience, people around me also complain that using phone to play games and watch videos affects kids' mental health.   What are the mental consequences using a mobile phone or tab to teach kids using video games or YouTube videos?


The following are primes,  $$P_1 = 2^2 + 3^3$$  $$P_2 = 2^2 + 3^3 +5^5 + 7^7$$  After these two, the only prime of such form I've found is,  $$P_3 = 2^2 + 3^3 + 5^5 + 7^7 + 11^{11} + 13^{13} +\dots+  83^{83} + 89^{89}$$  Is there a prime number with this form after these three? (I've checked prime numbers up to 5500, but I couldn't find any others.)


Is it acceptable to use plural nouns and mass singular in a list together?

I was taught that when you form a comma-separated list, they should have the same form (singular or plural).  I encountered the sentence below and I can't tell if it is grammatically correct.     I understand that all other company policies, handbooks, standard operating procedures, work instructions, and other mandatory documentation that relates to computer system security is available to me. [emphasis added]   It has a list of pluralized nouns (policies, handbooks, etc). This would usually go with the form are. However the item in this list (documentation) is a mass singular noun and would use the form is.  So in the sentence above:   Is the use of is correct? Can plural nouns and mass singular be used together like this (in other words, sound documentation be changed to documents)?