I originally had a Windows OS and I wanted to also have a Linux OS. So I added Ubuntu in dual boot with Windows. However, when I start my pc, it doesn't display the boot menu and goes on the Windows OS immediately. I tried to display the boot menu from Ubuntu : for that I edited the /etc/default/grub file by changing hidden to menu in the line GRUB_TIMEOUT_STYLE and then did sudo update-grubto save changes. But it didn't work. I tried to display the boot meny from Windows : for that I went to the bios and tried to configure the UEFI to start from Ubuntu in the boot order to make Grub first position but I cannot do that cause it don't show me Grub. How can I display the Grub menu to choose between Windows/Ubuntu when I start my pc ?  Ubuntu is on the partition number 9 of the image above. PS : Sorry for the image being in French. I think it's still understandable though.

The TL;DR, added in the edit:  The question is: How can I make the BIOS prefer GRUB over Windows Boot Manager on the same UEFI boot partition? The problem is not with Grub; Grub does the right thing when the BIOS starts it. The problem is not with "the disk isn't bootable," because both the Windows UEFI bootstrap and the Grub UEFI bootstrap are bootable. The problem is which UEFI bootstrap the BIOS chooses to boot from.  I'm setting up a new computer, and want it to by default boot into Ubuntu, but have the option to select Windows on boot. This is especially important if power goes out and comes back; I won't even be in the house. I started out by installing Ubuntu 17.04 on my internal NVMe disk, partitioned with GPT to use half the disk, and a separate UEFI boot partition. GRUB boots that just fine, and I see the GRUB boot menu on start-up where I can select whatever items GRUB knows about. Then I installed Windows 10 Pro from a recently downloaded ISO. It installed Windows Boot Manager onto the same UEFI partition, and left the Ubuntu intact (great!) and that boots fine into Windows 10. However, it did "something" that makes the UEFI firmware immediately select the Windows Boot Manager rather than GRUB on power-up. The only way to boot Linux now is to use the BIOS boot manager (F11 on my BIOS) and select the GRUB boot loader manually. The UEFI BIOS knows that there are multiple bootable installs on the UEFI partition, because I can choose between them in the boot manager. However, when I'm in the setup menu in the UEFI BIOS, it just lets me choose "UEFI boot my internal drive" in the boot priority selection -- it doesn't let me choose which particular boot loader on that partition to use. And, by default, it chooses Windows, not GRUB. The internets (and this site) suggests that the old way to fix this is to run update-grub (so GRUB recognizes Windows) and then grub-install (to put GRUB back on the device.) I have done this, but unfortunately, it still has the behavior as described above, where the BIOS by default chooses Windows Boot Manager. (update-grub does find the Windows Boot Manager install, and adds that to the menu, and that menu item works when I manually choose the GRUB partition in the UEFI boot manager.) What can I do to make GRUB the "default" boot on my UEFI boot partition? Using a MSI X399 Carbon motherboard. Second edit: Because the correct answer ends up being mentioned in a comment to a response, I'll repeat it here: "BCDEDIT" in an admin shell on Windows is the working solution. The others don't work.


I'm trying to find the name of a book I read awhile ago. It involved a bunch of gateways that you could sort of fax yourself to. You could have multiple copies of yourself running around and if one of them died they could be recreated from the last time they went through the portal. The story is about someone going around and killing all the copies of this guy, I also remember a part where he found copies of himself and of his attempted murderer that that guy had tortured almost beyond recognition.   Anyone know this book?

In the novel they have worked out teleportation but the data is transmitted, meaning that they can make copies of it and generate multiple copies of a person if they choose to do so, or regenerate them if they get killed or injured.    A big part of the book was the use of micro-black holes as a building material, and the construction of a dyson sphere around the sun, along with terra-forming Venus.


Consider random variable $X$ with continuous, increasing CDF $F_X (x)$. Let $W=F_X (X)$. Characterize the distribution of $W$.  I get $F_W (w)=\mathrm{Pr}(F_X (X) \leq w)=\mathrm{Pr}(X\leq F_X^{-1}(w))=F_X(F_X^{-1}(w))=w$  Can I just impose that $w=1$ and say this is a degenerate distribution? That seems off to me because the question doesn't actually specify a domain for $x$. Did I miss something?

For a CDF that is not strictly increasing, i.e. its inverse is not defined, define the quantile function   $$F^{-1} (u) =\inf \{x: F(x) \geq u \},\quad 0<u<1. $$  Where U has a uniform $(0,1)$ distribution. Prove that the random variable $F^{-1} (u)$ has cdf $F(x)$.  In case of a strictly increasing CDF the proof is quite easy because the inverse is defined. Define $X=F^{-1} (u)$  $$ P\left[X<x \right]=  P \left [F^{-1} (U) \leq x \right]= P \left[U \leq F(x) \right] =F(x)  $$  But how do I accomondate the nondecreasing CDF whose inverse is given by the quantile function? I am a begginer so any help is welcome. Thank you.


I was trying to install software into a CentOS Linux. It shows that I don't have enough space. When I do df -h I get the following result  [root@localhost ~]# df -h Filesystem               Size  Used Avail Use% Mounted on /dev/mapper/centos-root  6.7G  6.7G     0 100% / devtmpfs                 1.4G     0  1.4G   0% /dev tmpfs                    1.4G     0  1.4G   0% /dev/shm tmpfs                    1.4G  8.7M  1.4G   1% /run tmpfs                    1.4G     0  1.4G   0% /sys/fs/cgroup /dev/sda1                497M  157M  341M  32% /boot tmpfs                    282M     0  282M   0% /run/user/0   Then I checked the Virtual Box settings it shows that Virtual size is 59.7 GB but the actual size is 6.84 GB  How do I increase the size to 59.7 GB?

I am running CentOS 7 on a HyperV virtual server. I recently increased the size of the hard disk from 32GB to 64GB and used GParted Live to extend the partition, which seems to have worked as shown here:    However, when checking  Disk Usage Analyser it is reporting it as 28.4GB:    In the terminal, I run df -h and it shows the following:    I have tried xfs_growfs /dev/mapper/centos-root -d but this says data size unchanged, skipping.  I am pretty inexperienced with Linux and, whilst trying to find a solution to this problem, most screenshots of df -h show /dev/sda1 and /dev/sda2. What are the extras shown here (several tmpfs and devtmpfs) and how do I get the system to recognise the full disk space?


If the yes command echos "y" continuously until killed, then it will never get done right? If it will never get done then how does it pipe it's output to the next command??

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


as you may notice, I am new to Ubuntu (actually, Lubuntu). I have a question regarding security when installing software. When using Windows before, what most people do is to download a .exe, scan it with AV or similar, and if it was good, install. Now, in Ubuntu distros you just go "apt install XXX" or "snap intall XXX" or whatever. The question is: why and how is this safe? Is everything installed in that way secure? Everything that comes from apt or snap or others is safe and should only worry about 3rd party repos? Thank you very in advance for making this clear!

I'm unsure what the current procedure for package security for Ubuntu is.  When something ends up in the Ubuntu package repositories, are the package audited by a central, trusted team and if so what level of auditing takes place?  I'm interested on whether packages are checked for:   Regular matching against known vulnerabilities/CVEs (as in, package maintainers are notified in realtime of CVE releases, and packages with unpatched (by vendors) CVEs removed). Obvious malicious code (eg reverse shells, random shell code, trojans) Poor code quality (eg unintended command injection vulnerabilities) Full security audit of all code for vulnerabilities


In the source directory I have some symbolic links. These links point to some paths and data is present in those paths also; but using rsync it is copying only the link files, not the data that is present in the path.  lrwxrwxrwx 1 lafter lafter   58 Sep 26 16:57 8770 -> ../../../../.sites_repository/brest/8770/3.2.08.05.b-b0001 lrwxrwxrwx 1 lafter lafter   59 Sep 26 16:57 bootdvd -> ../../../../.sites_repository/colombes/bootdvd/12.1.013.000   Any solutions?

I want to backup my home directory to an external drive nightly using a cron job to execute rsync.  I am unsure of the exact behavior of rsync's symbolic link flags.   rsync's -a flag includes the -l flag (i.e. "copy symlinks as symlinks").  Does this just mean it will copy the link or that it will follow the link and copy everything in the link-to directory?  I want to avoid that because I have links to directories full of media files that would involve copying hundreds of gigabytes I don't need to back up. Fearing (but not certain) that rsync -a would copy all those media files I instead added the --no-links flag.  This does not seem to be behavior I want.  It just ignores copying any link which is problematic because I do have links I want copied (e.g. links to common header files from different project directories). Assuming #1 above (without the --no-links flag) is what I really want and it just copies the link without copying the linked-to files, will the links break when they are backed up?  For example I may rsync source directory /home/me/projects/misc to /media/extdrive/backup/home/me/projects/misc.  In this case I assume rsync is not smart enough nor does it try to correct the contents of symlinks for the relative directory changes.  Is this correct?  This is okay, it doesn't matter if the links are broken in the backup directories so long as they would be fixed and working if such time comes when they need to be restored.


This happen after the download of Ubuntu 13.04 and I can't even download stuff because of this problem:  root@Viktor-Dator:/home/viktor# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: xserver-common-lts-raring The following packages have been kept back: libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev 0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded. 1 not fully installed or removed. After this operation, 1,646 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 264683 files and directories currently installed.) Removing xserver-common-lts-raring ... Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring' dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed dpkg: error processing xserver-common-lts-raring (--remove): subprocess installed post-removal script returned error exit status 2 No apport report written because MaxReports is reached already Errors were encountered while processing: xserver-common-lts-raring E: Sub-process /usr/bin/dpkg returned an error code (1) root@Viktor-Dator:/home/viktor#    Output off sudo apt-get check  viktor@Viktor-Dator:~$ sudo apt-get check [sudo] password for viktor:  Reading package lists... Done Building dependency tree        Reading state information... Done viktor@Viktor-Dator:~$

I just installed Ubuntu (12.04.4) and I upgraded to 13.10  I have no idea how to fix this :/  $ sudo apt-get install -f  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   xserver-common-lts-saucy 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. 1 not fully installed or removed. After this operation, 1,718 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 175174 files and directories currently installed.) Removing xserver-common-lts-saucy ... Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-saucy' dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with   different file `/usr/lib/xorg/protocol-precise.txt', not allowed dpkg: error processing xserver-common-lts-saucy (--remove):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  xserver-common-lts-saucy E: Sub-process /usr/bin/dpkg returned an error code (1)


By default my system uses gcc 5.4.0 in ubuntu 16.04 to run a specific program l need to switch to gcc 4.8.  My question is the following :   How can l switch to gcc 4.8 before running the program and come back to gcc 4.8.4 once l've finished. The program l have to run is in python :  # what to do befor running the program # python3.6 main.py # how to come back to the gcc version by default    Here are the differents gcc version l have :  dpkg -l | grep gcc | awk '{print $2}' gcc gcc-4.8 gcc-4.8-base:amd64 gcc-4.9 gcc-4.9-base:amd64 gcc-5 gcc-5-base:amd64 gcc-6-base:amd64 gir1.2-packagekitglib-1.0 lib32gcc1 libcaca0:amd64 libgcc-4.8-dev:amd64 libgcc-4.9-dev:amd64 libgcc-5-dev:amd64 libgcc1:amd64 libpackagekit-glib2-16:amd64 libunity-action-qt1:amd64 libwebrtc-audio-processing-0:amd64 qtchooser qtdeclarative5-unity-action-plugin:amd64   EDIT1 Is it correct if l do the following  as suggested    Have l set that correclty ?  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 30  sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 30  sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 40 sudo update-alternatives --set cc /usr/bin/gcc  sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 40 sudo update-alternatives --set c++ /usr/bin/g++   But l stack at the last command :  sudo update-alternatives --config gcc sudo update-alternatives --config g++   do l need to set that as :  sudo update-alternatives --config gcc-4.8 sudo update-alternatives --config g++-4.8   and when l want to come back to gcc 5 l set it to :  sudo update-alternatives --config gcc-5 sudo update-alternatives --config g++-5   Am l right ?   EDIT2 l need to run python3.6 with gcc 4.8.4 . The default gcc version of python3.6 is 4.4.7  root@ahmed-OMEN-by-HP-Laptop:~# python3.6 Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 12:22:00)  [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", "copyright", "credits" or "license" for more information.   How can l change that ?

So I have installed gcc-4.4 and gcc-4.3 (same for g++). Now as far as I remember there is a tool in Ubuntu which sets the symlinks for you if you just tell it which version you want. However it does not seem to work in the newest version, which I find disappointing.  root@nexus:~# update-alternatives --config gcc update-alternatives: error: no alternatives for gcc. root@nexus:~# update-alternatives --config cc There is only one alternative in link group cc: /usr/bin/gcc Nothing to configure.   root@nexus:~# dpkg -l | grep gcc | awk '{print $2}' gcc gcc-4.3 gcc-4.3-base gcc-4.3-multilib gcc-4.4 gcc-4.4-base gcc-4.4-multilib gcc-4.5-base gcc-multilib lib32gcc1 libgcc1   Any ideas?


I am working on an e-commerce website (written in ASP.NET MVC). I want to build a blog for my website to create some content and improve the Search Engine Ranking of the website/ I can think of 2 options for the blog domain:  my-site.com/blog blog.my-site.com  Which option is recommended? Appreciate an explanation.

If I have example.com, and blog.example.com, do search engines see those as one site or two? Will using subdomains hurt SEO? I have some technical reasons why I can't use example.com/blog.


I'm starting to get good at sourdough--the inside if fluffy and I get a good spring, however I cannot seem to master scoring/making the loaf look presentable.  is an ideal loaf in my eyes because theres a big lip and the bread that pulled away from the lip has some texture. My loaves always end up rounded on top regardless of how I score. For reference, I use 500F in a dutch oven, cornmeal on bottom. My recipie is as follows: 1/2 cup starter 2 cups water tbsp salt ~5 cups fl I've had good success with this recipe but as I've said I need advice for getting a good surface.

When slashing bread, how can I produce crusty 'ears' on the places where the slash opens up?  Most of the time they open up, but just end up flush with the rest of the crust.


Given is the hyperbolic PDE $$\frac{\partial^2u}{\partial t^2}-c^2 \triangle u=0$$ in the Domain $\Omega\times\Bbb{R}$ using the Dirichlet boundary condition $u=0$ in $\Omega\times\Bbb{R}$. The initial values of this PDE are the position $u(\vec x,t=0)=u_0(\vec x)$ and the velocity $\frac{\partial u}{\partial t}(\vec x,t=0)=u_1(\vec x)$    Show that it is possible to split the PDE into one ODE for the time $t$, and one eigenvalue equation $$-\triangle X(x)=\lambda X(x)$$ for $x \in \Omega$ and $x=0$ in $\partial\Omega$ by using separation of variables.    I know that I have to put all the $t$'s on one side and all the $x$'s (or $\vec x$'s?) on the other side. For the beginning i have $$\frac{\partial^2u}{\partial t^2}=c^2 \triangle u$$  Let $u$ be in the form of $u(x,t)=X(x)T(t)$ $$\frac{\partial^2u}{\partial t^2}=X(x)T''(t)$$ $$X(x)T''(t)=c^2 \cdot\triangle (X(x)T(t))$$ $$\frac{T''(t)}{c^2}=\frac{1}{X(x)}\cdot\triangle (X(x)T(t))$$  This is how far I got. Is this right? How do I handle the $\triangle$ to get the $T(t)$ from the right side to the left?

I'm trying to teach myself separation of variables and have been following some notes for the wave equation, but there's one part which really confuses me and I'm not exactly sure how it makes the step.  For the wave equation   $$u_{tt} - c^2 u_{xx} = 0$$   with length $l$ and fixed ends, $u(0,t)=u(l,t)=0$ we seek a solution in the form $$u(x,t)=v(x)q(t)$$  and substituting this into the equation gives $$\frac{1}{q(t)}\frac{d^2 q}{dt^2}=c^2 \frac{1}{v(x)}\frac{d^2 v}{dx^2}=-\omega ^2$$   and I understand all of this so far. But when solving the equation  $$q''+\omega ^2 q = 0$$ the general solution is $$q(t)=A \cos(\omega t +\alpha)$$ where $A$ and $\alpha$ are constants - which is the part which I'm not exactly sure on how it gets to.   Could someone explain this step to me? Thanks!


I am making a game in blender and when I press p to test my game, the screen goes white and when I press escape it goes back to normal and I don't know if my game is working or not.

When I press P to play everything shows up white in the BGE. Shading is set to GLSL, and the objects are UV mapped and textured. It seems that vertex paint is overriding the material for the object even though it is unchecked in the material options.   Shading is set to GLSL   Objects have a texture applied


I am using QGIS 2.18.  In the overview map, is it possible to remove attribute labels?    I just want the labels in the primary map, but not the overlay.   All that yellow in the overlay image is the labels for the attributes.

I'm having trouble with the OpenLayers Plugin of Qgis and the map composer:  If I create an OSM-background layer and if I want to export this, the OSM-Layer looks perfectly all right in the normal qgis program window. But in the map composer and after export the layer has shifted relatively to my other shape layers (EPSG:32633 - WGS 84 / UTM zone 33N).  The second thing is that the output resolution of the exported osm-layer is very, very poor.   A really bad way of getting around this whole trouble would be to increase the screen resolution and make a screenshot of the map composition window of qgis. But I don't think this would be very professional. It also would cause a lot of pain :)   I'm using Qgis 1.8.0-Lisboa under Linux. The openlayers plugin is version 0.92.


I'm not exactly sure how the intermediate value theorem can be applied to the following question especially with the defined function $g(x)$ which is provided below. Using the intermediate value theorem with $g(x)=f(x)-x$ and suppose $f:[0,b] \to [0,b]$ is continuous. Prove there is at least one $c \in [0,b]$ such that $f(c)=c$. Thanks

Question: Let $a, b \in \mathbb{R}$ with $a < b$ and let $f: [a,b] \rightarrow [a,b]$ continuous. Show: $f$ has a fixed point, that is, there is an $x \in [a,b]$ with $f(x)=x$.  I suppose this has to do with the basic definition of continuity. The definition I am using is that $f$ is continuous at $a$ if $\displaystyle \lim_{x \to a} f(x)$ exists and if $\displaystyle \lim_{x \to a} f(x) = f(a)$. I must not be understanding it, since I am not sure how to begin showing this... Should I be trying to show that $x$ is both greater than or equal to and less than or equal to $\displaystyle \lim_{x \to a} f(x)$ ?


I have a class named Player. There are a few player objects stored inside this class and every object has a "name", "score" and "color". I made a method that is supposed to set a TextView color according to which object I am dealing with. Here's the code:  public void setTextViewColor(TextView tw, String playerColor){      Log.i("TAG", playerColor);      if (playerColor == "BLACK")     {         tw.setTextColor(Color.BLACK);         Log.i("TAG", "tw color now black");     }     else if (playerColor == "BLUE")     {         tw.setTextColor(Color.BLUE);         Log.i("TAG", "tw color now blue");     }     else if (playerColor == "CYAN")     {         tw.setTextColor(Color.CYAN);     }     else if (playerColor == "DKGRAY")     {         tw.setTextColor(Color.DKGRAY);     }     else if (playerColor == "GRAY")     {         tw.setTextColor(Color.GRAY);     }     else if (playerColor == "GREEN")     {         tw.setTextColor(Color.GREEN);     }     else if (playerColor == "LTGRAY")     {         tw.setTextColor(Color.LTGRAY);     }     else if (playerColor == "MAGENTA")     {         tw.setTextColor(Color.MAGENTA);     }     else if (playerColor == "RED")     {         tw.setTextColor(Color.RED);     }     else if (playerColor == "YELLOW")     {         tw.setTextColor(Color.YELLOW);     } }   Now the problem is that the IF or ELSE statement never gets to execute. This is how I called the method:  setTextViewColor(newTextView, newPlayer.color);   The method is supposed to work because everytime I execute it, I can see the logcat message stating the color (the color is always correct). But I never see the "tw color now black" or "tw color now blue" message so I'm pretty sure there is something wrong with IF statement.  If the tag says the playerColor is "BLACK", then the first if statement is supposed to execute, right? But it doesn't.

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


Considering that "semicentennial" refers to 50 years and "centennial" refers to 100 years and "bicentennial" refers to 200 years, what similar word is appropriate for 150 years?

Is there a prefix or adjective that means "one and a half", as "tri-" or "triple" is for "three"?  The exact usage I have is to describe "18" in terms of a dozen. Where I live they've started making 18-egg cartons, and the local grocer was wondering what name to give them in his computerised cash register, hoping for a single word.  Even slang, informal or invented term would do if there isn't such a term already.


I have a problem printing with google satellite maps in QGIS. In the composer it's all right, but in the pdf file some portions of the image are in a different scale and in a different position.  An image can talk more then 1000 words…    EDIT: My problem isn't misalignment, and the problem occurs independently from size or position. It's something like the bug of which talk about in . How can you watch in the image that I inserted before, the correct image is the portion at the center, while the rest is in a scale smaller (the street above can't be bigger than the houses).


This gives an idea from 2008. I'm curious to see how many orders of magnitude it's changed since:

I'm just curious: how many users are there on Stack Overflow altogether?


I want to write a bot that will only send simple commands. The game is an android game which I run in Bluestacks. Game is very simple. The actions the player can take are very limited and the game does not send/receive any data unless the user takes an action, so I believe that the information sent is simple or imitable at least. I don't want this bot to work with screen-scraping and mouse macros because I need to be able to use the computer meantime. So, after some research, I found that I can imitate the information sent by this game. I believe I first need a network sniffing application to examine the packages sent/received. This is the point I could come so far, could you please show me a starting point explaining what to do next? Which application can I use to examine the transferred information?  Game is running with an android emulator(Bluestacks) under win7.  Just FYI, I checked the game policy and there isn't anything against this bot, it will neither be abusive nor will make me any profits anyway.

I would like to monitor all and any Internet traffic from my home PC to see what programs installed on my home machine are accessing the Internet.  I thought I could use  for this, but I noticed Firefox traffic doesn't show up by default; you need .  What options do I have to monitor all traffic?


I'm writing a interactive application in Java and one of my local variables isn't adding itself into the class variable which is screwing up my final output.  Here is the class variable public static double deduction;  Here is what I'm trying to store into it   System.out.println("Do you want medical insurance?"); String choice = kb.nextLine();        if (choice == "yes") {     medIns =  32.50; } else {     medIns = 0; } System.out.println("Do you want dental insurance?"); choice = kb.nextLine(); if (choice == "yes") {     dentIns = 20.00; } else {     dentIns = 0; } System.out.println("Do you want long-term disability insurance?"); choice = kb.nextLine(); if (choice == "yes") {     lifeIns = 10.00; } else {     lifeIns = 0; } deduction = medIns + dentIns + lifeIns; return deduction;`   Here is what it's finally going into totalpay = gross + (gross * retire) - deduction;  When I put in all the other input it's not storing the local deduction into the class deduction so it can be processed into my totalpay calculation.


This came up because of a question about Halloween this morning and as the daughter of a US Sheriff's Deputy, the mother of a very friendly child, a teacher of other people's children and as a citizen in this world we live in I recognize the supreme importance of this issue for parents.  The question needs to be on this site!    How does one teach their children how to be "safe" out in the world in regard to interacting with strangers, without making them fearful of everyone?

Conventional parenting wisdom tells us to drive the fear of talking to strangers into our kids. Is this at all harmful though? Is there any adverse impact to a child's social development by doing this? How can you balance safety against fear?


I would like to encrypt files / folders in Windows with EFS. In addition — because EFS alone still leaves the files / folders unprotected in case an adversary managers to access my Windows profile — I would like to password-protect those files / folders. But how? On my own, private PC, where I can create any number of (administrator and of course normal) users. I thought of EFS-encrypting the according files / folders under another user of mine, then switching again back to my default user account where I'd now of course be excluded from access to those files / folders. From the other user (used for encryption), however, I imported the EFS certificate into my default user account to regain access. But to no avail: I still I couldn't open those files. Please tell me: is there a way to achieve what I tried to do with (preferrably native) Windows tools like EFS + certificates or other solutions (excluding  Bitlocker, which is only good to encrypt whole drives >30GB)? And possibly in an easier way than I described, e.g. like transferring access to another (administrator?) user of mine which subsequently requires other users to enter a password to open if that's possible way to go? Or anything else, please? If not Windows-native, then at least available from the File Explorer context menu?  Bonus question: although I was not able to open the above-mentioned files / folders, I was very well able to delete them. I imagine that if the other user had actually been someone else this might be a disaster for him — is there a way to prevent unauthorized users from deleting files? I mean I know related permissions can be set in the Windows file properties, but afterwards it only took me (using my default user without read access) to "take ownership" of the file again, and although I still I couldn't read it, I could very well delete it...   Info just in case it surprisingly matters: the used (EFS encryption-) test files and EFS certificate im-/export happened via a Bitlocker-protected USB drive used under both test user accounts).

Windows (10) Professional users on NTFS-formatted drives can benefit from a built-in security option in the context menu to encrypt files and folders, . This would be much more comfortable and elegant than any third party encryption software, which installs additional software, opens unneccessary application windows and shows encrypted folders not as folders, but as drives in new pop-up Windows Explorer windows instead (like e.g. Cryptomator does). Plus such a specifically installed encryption software might raise a flag all by itself. And Windows Bitlocker, on the other hand, "only" encrypts whole drives and partitions, but how should I know beforehand how big that drive or rather partition should be(come) in light of limited SSD memory? So I'd prefer Window's built-in EFS encryption of single folders with flexible, dynamic sizes. The only problem with Microsoft's EFS encryption is that it's useless if someone else but yourself gets access to your Windows profile, because this very user can simply open (and change) the encrypted files and folders just like yourself and without the need of entering a password, as long as (s)he just uses the same user account (which can't be avoided under all thinkable circumstances). I tried the command line cipher /k command to issue another EFS password (that no other person using my Windows profile knows), but this doesn't seem to work this way? But I've also read that under some circumstances, like when an administrator changes a user's (my?) password (I'm my own administrator), the (original) Windows profile user (me) loses access to his/her EFS-encrypted files, but if that user had created a recovery key before, (s)he should nevertheless retain access to the files. Maybe I could also somehow play along Microsoft's strange EFS game rules and create another user account and activate EFS encryption there (so that an adversary with access to my own Windows profile would have no access to (actually but then not officially) my own files, but how could I avoid having the same problem as the adversary then)? Maybe somehow through shared folder access rights with my 'accomplice' user? I'm not sure. I just can't think of a smart, simple way to put this into practice so that I can quicly add confidential files on the go to an EFS-encrypted folder in my own Windows profile, but in a way that only myself and not e.g. my boss who (hypothetically) also has access to my Windows profile has access. Just like encryption was meant to work. Can you? :-)


Problem 1  I have been struggling coming out an efficient way to take notes while reading papers, one commonly-used way is annotate the paper while reading, but some issues include   These notes are hard to organize since they are distributed through the text. There notes usually could not include mathematical formula. However, it is the major part of my notes. When paper is lost in thousands of papers, it is impossible to recover them.   Therefore, I tried to use stand-alone notes written in markdown, but problem 2 arises.  Problem 2  As mentioned in problem 1, there are so many papers (and notes) I need to keep and it is just not feasible to keep hierarchy of folders, which could have up to 5 or even 10 hierarchy. Even though problem 1 is resolved, an effective and easy way to search and retrieve previous papers and notes is still needed.   Finally, any input about your solutions is appreciated.

As a PhD student I generate a lot of pages with calculations, ideas and lecture notes.  Most of them are useful only for a short amount of time, but some may be important for much longer (when writing a paper, or when having new ideas to continue a once abandoned project). Typically I work on a few project simultaneously.  The question is, what is a good practice of taking and keeping notes? (With or without computer apps.)  Writing on single sheets (even if adding date and title) makes it easy to organize by topic, but also easy to loose. Keeping in one notepad makes it harder to collect useful things of one topic in one place.


We learned in class about the Cauchy–Schwarz inequality. Can some one please  give me a geometric intuition or any intuition in general for why this inequality is true? Thank you.

To prove Cauchy Schwarz inequality for two vectors $x$ and $y$ we take the inner product of $w$ and $w$ where $w=y-kx$ where $k=\frac{(x,y)}{|x|^2}$ ($(x,y)$ is the inner product of $x$ and $y$) and use the fact that $(w,w) \ge0$ . I want to know the intuition behind this selection. I know that if we assume this we will be able to prove the theorem, but the intuition is not clear to me.


I created a console application with a Menu System like this,  But since the requirement was different, I need to create a command line application, for example I need to connect to MS SQL Database so, I should do something like this :  If you see, I have a bat file, I will pass some arguments, any suggestion on how to start this development? I heard something called arg4j but not sure how to start with it.

What is a good way of parsing command line arguments in Java?


I noticed that people use tags of technologies/languages that are not present in the actual question:    -> ,   -> , ,   -> ,    (probably all these questions:  and other question that uses similar tags with version numbers embedded)  I was tempted to remove these tags, as they are not relevant for the question and are used to attract attention (in a wrong way IMHO).  But then I was wondering whether they were added to indicate that these technologies/languages are available to answer the question...  My question/discussion is: 'Is it allowed/intended to (mis)use tags for these purposes, or should I remove them?'  Personally, I still tend to remove them, as the answer might or might not use these tags and they are (still) misused. But please correct me if I am wrong!

When entering the title of this query I was pointed to , which has tentatively endorsed this concept, especially once an answer has been accepted.  Can I get a confirmation that it is actually good practice before an answer has been accepted? (IMHO it is not.)  Two examples:   : I didn't need a WCF answer, which I would have assumed if I had seen the question tagged with WCF even if I didn't mention it in the question or title.   : It looks probable that the answer (if there is one) is related to AOP, but the questioner does not require it.


I'm new in Ubuntu aka Linux World. I already installed Ubuntu 14.10 Server on Dell PowerEdge t420. After done the installation it onlyu appears command line? My questions how to login to the desktop like windows or is it for ubuntu server only appear command line.  Thanks

I have Ubuntu server 12.10 and I would like to switch to desktop and would like to know how?   Thanks


I took $\sqrt{3}+\sqrt{7}$ and squared it.  This resulted in a new value of $10+2\sqrt{21}$.  Now, we can say that $10$ is rational because we can divide it with $1$ and as for $2\sqrt{21}$, we divide by $2$ and get $\sqrt{21}$. How do I prove $\sqrt{21}$ to be rational/irrational?  Thanks

Can the expression $\sqrt{n} + \sqrt{m}$ be rational if neither $n,m \in \mathbb{N}$ are perfect squares? It doesn't seem likely, the only way that could happen is if for example $\sqrt{m} = a-\sqrt{n}, \ \ a \in \mathbb{Q}$, which I don't think is possible, but how to show it?


Let $a,b,c>0$, prove that: $$\frac{1}{(2a+b)^2}+\frac{1}{(2b+c)^2}+\frac{1}{(2c+a)^2}\geq\frac{1}{ab+bc+ca}$$  I tried to use the inequality $\frac{a^2}{x}+\frac{b^2}{y}+\frac{c^2}{z}\geq\frac{(a+b+c)^2}{x+y+z} \forall x,y,z>0$ but that's all I can do. I think this inequality is too tight to use AM-GM or Cauchy Schwarz alone.

Let $x,y,z>0$: Prove that:   $\frac{1}{(x+2y)^2}+\frac{1}{(y+2z)^2}+\frac{1}{(z+2x)^2} \geq\frac{1}{xy+yz+zx}$  I tried to apply Cauchy - Schwarz's inequality but I couldn't prove this inequality!


Changed "Secure Boot" and installed ubuntu  At startup, a purple screen, changing "Secure Boot" and the system is switched  "nomodeset" does not eliminate the purple screen  Install the drivers for the video card:  sudo apt-add-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get install nvidia-current   ...changing "Secure Boot" and i see on a black screen cursor to a crosshair  If not change "Secure Boot" will be purple screen

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


can I program in  by just using header files?  I keep trying to do it but getting a problem with this file here.. it keeps saying things like:     Severity  Code    Description Project File    Line    Suppression State   Error LNK2001 unresolved external symbol "private: static int   Engine::frameDelay"   (?frameDelay@Engine@@0HA) Engine  C:\Users\Shadowblitz16\Documents\Visual   Studio 2017\Projects\Zelda Classic 3.0\Zelda Classic 3.0\Test.obj 1   Code:  #pragma once #include "SDL.h" #include "SDL_image.h" #include <iostream>  class Engine {     private:         static int frameTime;         static int frameStart;         static int frameDelay;         static bool running;         static SDL_Window   *window;         static SDL_Renderer *renderer;          static void HandleLoop()         {             while (running)              //Loop             {                 //Start frame                 frameStart = SDL_GetTicks();                 HandleUpdate();                 HandleRender();                  //End frame                  frameTime = SDL_GetTicks() - frameStart;                 if (frameDelay > frameTime) SDL_Delay(frameDelay - frameTime);             }         };         static void HandleUpdate()         {             SDL_Event event;             SDL_PollEvent(&event);             switch (event.type)             {             case SDL_QUIT: running = false; break;             default: break;             }             Update();         };         static void HandleRender()         {             SDL_RenderClear(renderer);             Render();             SDL_RenderPresent(renderer);         }      public:         static void Run(const char* title, int x, int y, int width, int height, bool fullscreen)         {             frameTime  = 0;             frameStart = 0;             frameDelay = 0;              window     = nullptr;             renderer   = nullptr;              running = false;              if (SDL_Init(SDL_INIT_EVERYTHING) == 0)             {                 std::cout << "SDL Initalized!..." << std::endl;                 window = SDL_CreateWindow(title, x, y, width, height, (fullscreen == true ? SDL_WINDOW_FULLSCREEN : 0));                 if (window) std::cout << "Window Created!" << std::endl;                  renderer = SDL_CreateRenderer(window, -1, 0);                 if (renderer) std::cout << "Renderer Created!" << std::endl;                  SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);                 running = true;             }              frameStart = SDL_GetTicks(); //Get this so we can use it in the create event             Create();                    //Run create event              Clean();                     //Run clean event             SDL_Quit();                  //Quit         };          static void Create() {};         static void Update() {};         static void Render() {};         static void Clean()  {};          static bool Running()              { return running;  };         static SDL_Window*   GetWindow()   { return window;   };         static SDL_Renderer* GetRenderer() { return renderer; }; };   I think that its easier to read and debug this way, hopefully this is possiable

What is the best way to initialize a private, static data member in C++?  I tried this in my header file, but it gives me weird linker errors:  class foo {     private:         static int i; };  int foo::i = 0;   I'm guessing this is because I can't initialize a private member from outside the class.  So what's the best way to do this?


Anyone know why ctrl-m and return are the same control chars?

I am confused about how Ctrl-key combinations work in terminal. In bash man page, there are various combinations such as:   C-e - go to end of the line C-f - go one character forward   etc.  But then there are some undocumented shortcuts such as:   C-j (OR C-m) for return key. C-h for backspace C-i for tab etc.   Are these shortcuts just forgotten to be documented? Or, because   C-j is LF C-m is CR C-i is Tab   in ASCII, is this somehow a "default" behavior? In other words, is the behavior for C-j, C-m and C-i not implemented by bash but by something else?  Another question is, when I press C-v and left arrow key, ^[[D appears on screen. I.e, ESC-[-d. But when I press ESC-[-d, the cursor does not move left. What is the reason for this?  EDIT:  Initially, I have thought that when I press C-j, the keyboard directly sends 00001010 to kernel. But then I decided that this is not the case, because using programs such as xev or evtest, I have observed that key presses to Control and j appear as different events. So when I press C-j, the keyboard does not send 00001010, but probably multiple bytes. Then where the conversion of these multiple bytes to 00001010 is done?


I must have read his in the nineties.  I think it was a series of books.  The first book starts off with a woman in a cabin in a modern-day American desert. I think a biker dude turns up, and then a wizard appears with a baby, and transports them to a parallel medieval world. The woman joins the city watch, protecting the baby, and the biker dude becomes an apprentice to the wizard.  I remember one scene where the biker dude casts a spell to change his appearance to a dung beetle, to sneak past some guards thinking it would be inconspicuous, but the locals had never seen a dung beetle before.  The book was written in English.

I'm trying to find the title of an old fantasy book I read at least 20 years ago, but I have very little to help identify it.  Obviously I don't remember the author name, I think it was written in the 80s or late 70s.  It was a classic premise with a modern day man from our world, transported to a fantasy setting. The world I remember was on the brink of an Ice Age and the main character and  wizard mentor found a keep to save the human race.  In the keep they found ancient machinery to produce light, warmth and food.  The magic in this world was glyph based, using the true meaning of word to change reality. Obviously the main character becomes a magician even if not really that skilled.  I think there was also a triangle with the main character, a princess and a dead husband who was not so dead after all, but it's all really foggy.  There were at least two books in the series.


Stack Overflow updated the view (the header link).   In the past, I have seen my total votes for the day, week and remaining votes by clicking the arrow nearest to my username. But in the new look I'm unable to see my daily, weekly and monthly votes. How can see those things in the new look?

What happened with the menu that comes if I hover over my username in the top-bar? It was one of the most used feature on Stackoverflow since I've used it regularly to get a quick overview over my recent activities or reputation changes.  Is it possible to get it back somehow?


This is one of my exercise on my notes. I am still stuck and hope someone can help.  We have $p \in M$ and $V,W\in ˇT_p M$.  Compute the Jacobi fields of the following geodesic variations at $s=0$.  $γ_s(t) = exp_{η(s)}(tV_{η(s)})$, where $η(s) = exp_p (sW)$ and $V_{η(s)} ∈ T_{η(s)}M$ is the parallel transported version of V along η.

Let $(M,g)$ be a  Riemannian manifold, $\gamma:I\rightarrow M$ a geodesic. Let $c:(-\varepsilon,\varepsilon)$ is defined to be another geodesic with  $$c(0)= \gamma(0),\ \ \ c^\prime(0)=X.$$ Let $V(s)$,$W(s)$ be parallel vector fields along $c$.  The derivative that I want to compute is  $$\frac{\partial}{\partial s}\exp_{c(s)} \big(t\cdot(V(s)+sW(s))\big)$$ at $s=0$.  I looked at examples, but there is no such thing as the $c(t)$ there so I can not figure it out.  Thank you very much, I hope it is not a too simple calculation question for this forum.


I need help restarting/shutting down from the root command line, any commands I could use? I don't like hard resetting

How do I reboot a Ubuntu Server from the command line? sudo reboot now never seems to work for me. Because its a server, I don't have a window manager installed, so I can't do it from a GUI (which always seems to work).    I've had the problem for years on different versions of the operating system. It happens in virtual machines and on real metal. The same problem exists with sudo shutdown now, too.  I've lived with it in the past. The difference now is I don't want to just hit the power button because I might lose data.


I was writing a program to resize an image while preserving the aspect ratio. Basically, I'm trying to get the source image into a 20x20 box with the aspect ratio preserved.  float ra= (float)20/image.width(); Size dsize = new Size((int)(image.height()*ra),20); // System.out.println(image.height() + " "+image.width()); //System.out.println((int)(image.height()*ra)+" " + 20); Imgproc.resize(image,output, dsize,ra,ra, Imgproc.INTER_LINEAR);       The input, image is a Mat. image.height()=10, image.width()=28.   The new size would be 7,20. However when i run the code I get a null pointer exception at Imgproc.resize(). I am unable to find the reason. I get the same error even if I run  Imgproc.resize(image,output,dsize);

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


I am a newbie to Web Development and am trying to estimate the server requirements based on my application configuration.  My application will have to perform simple database look-up based on unique keys which are stored as text.   Page Views: 70k /day Page Size : ~200Kb Server: Apache/ mod_wsgi Application Framework: Django Database Server: MySQL Database Rows: ~40K Columns/Row: 10 Data/Row : ~200 Bytes   I want to calculate the RAM and processing speed requirements. Are there any other parameters that i should consider while estimating the server requirement

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


So I’m looking in to automated mobile testing solution and need some suggestions from experience folks who are currently using such tools. So far I’ve evaluated “Silk Mobile” and couple other tools but it seems they all needs to be physically connected to computer via USB. Is there any tool out there which doesn’t requires such USB connection all the times (of course when setting initially is acceptable).

Please suggest me some tools for Android and iPhone app automation testing. I have searched some, like - Appium, Calabash, MonkeyTalk, Selendroid, Robotium, etc.  I am confused to choose any one from above. Please assist me in choosing best automation testing tool so that I can start with better tool which should have following features:   Support for Android and iPhone as well (Android is highly needed, iPhone is optional) Support for Continuous Integration Tool should be Open Source and Free Supported scripting language should have Java Community should be active   Suggest some Android and iPhone mobile app automation tools.


Currently, I am using Ubuntu 12.10. When I open Software Updates, I find new release Ubuntu 13.04 rather than Ubuntu 14.04.  Please Help!

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


Ran into some unexpected but interesting behavior. I was doing a somewhat complex execution when I ran into a situation that from my understanding of how Bash handles characters shouldn't have happened. Smaller example of issue: $ arr=( "$(echo '1 && !/==/')" ) -bash: !/=: event not found  What is going on here? To my understanding, the single quotes should force Bash to interpret all the characters literally without doing any type of expansion. Using Bash 4.1.2. EDIT: Simplified question for reproduction.

I tried to create a script by echo'ing the contents into a file, instead of opening it with a editor  echo -e "#!/bin/bash \n /usr/bin/command args"  > .scripts/command   The output:     bash: !/bin/bash: event not found   I've isolated this strange behavior to the .  $ echo ! !    $ echo "!" bash: !: event not found  $ echo \#! #!  $ echo \#!/bin/bash bash: !/bin/bash: event not found    Why is bang causing this?   What are these "events" that bash refers to?     How do I get past this problem and print "#!/bin/bash" to the screen or my file?


I already know that the value of the limit $$\lim_{n \to 0} n\cot(n)$$ is equal to $1$, but I'm not quite sure how to evaluate it in an airtight way. I tried L'Hopital, but it just becomes circular.  Does anybody have any hints?

How do I find $\lim\limits_{x \to 0} x\cot(6x) $ without using L'hopitals rule?  I'm a freshman in college in the 3rd week of a calculus 1 class. I know the $\lim\limits_{x \to 0} x\cot(6x) = \frac{1}{6}$ by looking at the graph, but I'm not sure how to get here without using L'hopital's rule.  Here is how I solved it (and got the wrong answer). Hopefully someone could tell me where I went wrong.  $\lim\limits_{x \to 0} x\cot(6x) = (\lim\limits_{x \to 0} x) (\lim\limits_{x \to 0}cot(6x)) = (0)((\lim\limits_{x \to 0}\frac{cos(6x)}{sin(6x)}) = (0)(\frac{1}{0}). $ Therefore the limit does not exist.  I am also unsure of how to solve $\lim\limits_{x \to 0} \frac{\sin(5x)}{7x^2} $ without using L'hopital's rule.


Answer: 17 x 4 = 68 + 25 = 93  I have asked the guy who got the answer right , but hadn’t get reply from him. Do we use trial and error?

was found from the Hot Network Questions on the right. A repost of a question in a way (from Mathematica SE), but I was wondering if the following puzzle could be done:  A quick translation:  Can anyone solve this? It's so hard! Fill in the numbers $1–9$ in the boxes, the numbers cannot repeat.  It has already been solved in the given link, the answers being (hidden for those who wish to try and solve it):   $17\times4=68+25=93$  The answer to the Mathematica question stated there's a way to solve it without brute-forcing, but I didn't understand it too well. How would one—if possible—solve this without using too complex softwares?


Suppose we want to calculate a velocity. We identify all the relevant dimensions on which the solution could depend and write out and solve the equation $$l/t= a^x \, b^y \, c^z$$ where $a$, $b$, and $c$ are those relevant dimensions, and $l$ stands for length and $t$ for time.  I am having trouble understanding why this works. My thought process has been as follows; We seem to be looking for some function from $\mathbb{R}^n \rightarrow \mathbb{R}$ where $n$ is the number of relevant units. I guess we can assume this function exists since for any set of values the relevant parameters take we should be able to predict the velocity. If the function has the form written above I would say that it has to be dimensionally consistent since if not the solution would be dependent on the definition of one or more units which is obviously not the case (does someone have a better explanation for this?). I don't understand why we can write this function in the form $a^x \, b^y \, c^z$. How do we know the function doesn't take a different form?

Dimensional analysis, and the notion that quantities with different units cannot be equal, is often used to justify very specific arguments, for example, you might use it to argue that a particular formula cannot possibly be the correct expression for a particular quantity. The usual approach to teaching this is to go "well kids, you can't add apples and oranges!" and then assume that the student will just find it obvious that you can't add meters and seconds.  I'm sorry, but... I don't. I'm not convinced. $5$ meters plus $10$ seconds is $15$! Screw your rules! What are the units? I don't know, I actually don't understand what that question means.  I'm specifically not convinced when this sort of thing is used to prove that certain formulae can't possibly be right. Maybe the speed of a comet is given by its period multiplied by its mass. Why not? It's a perfectly meaningful operation - just measure the quantities, multiply them, and I claim that the number you get will always equal the current speed of the comet. I don't see how "but it doesn't make sense to say mass times time is equal to distance divided by time" can be a valid counterargument, particularly because I don't really know what "mass times time" is, but that's a different issue.  If it's relevant, I'm a math student and know extremely little about physics.


Let's assume a JPG file (or any other image/video file format), that I duplicate the file, and I modify the tags on the copy. Is there a way to verify that the image inside both JPG files is actually the same? I mean, if I do a digest of both files, I will obviously get a different hash. But is there a way to extract from the JPG only the bytes representing the image, so that I can do a digest of these bytes and see that both files are actually the one and same image?  The above is in the context of trying to automate how I manage my photos, i.e. extracting photos from my phone to my pc, detecting duplicates before I back things up, etc. In case it would influence the answers, my home made tools are written in Java, sometimes using external tools like exiftool.  Addendum  There are two other threads ( and ) that appear to be duplicates, but in my opinion, they're not. Firstly, the second thread is all about Mac and about file naming conventions based on EXIF data. That is most certainly not what my question is about. As for the first thread, it asks for tools that can find duplicates. While a plethora of answers were provided, none of the tools were doing exactly what I wanted (and most were not free) except for the very last answer "Dedup-image" (which incidentally had the lowest score in that thread...). When I dug into the script, I found exactly what I wanted, and this happened to be exactly the answer provided by @Kahovius  In short, the answer from @Kahovius:   is free is able to recognize that two files having different hashes (because they have different EXIF metadata) actually contain the exact same image (i.e. exact same bytes) can be automated (in BASH scripts for instance) (as a bonus) can even detect images that are duplicate when the only transformation was a lossless rotation (the actual bytes of the image are the same as the rotation is just a tag that was added to the file).   All other tools mentioned in the first thread were either not free, or would compare files as blobs (i.e. two files with same image bytes but different EXIF metadata would be seen as different), or would do some heuristics when comparing images (e.g. an image which has red eye removed could be considered duplicate of the original image). None of this is what I wanted.

Over the years, I've accumulated a lot of pictures, across a bunch of different machines.  I think I've mostly kept them in a yyyy/mm/ directory structure, but especially with some of the older pictures, there seem to be a lot of duplicates.  What's the best way to identify the duplicates?  Are there good tools to do this, or am I going to have to write something on my own?


I just tried to upload an image as part of answering a question and I get a placeholder indicating that the image isn't present;     If I try and access the image using its URL directly I get the following;     Doing a bit of a further lookup on the IP address reported in this error message (since it changes with each request), these don't even seem to be IP addresses that are related to me at all;  IP Address        198.7.20.199  Host              198-7-20-199.edgecastcdn.net  Location          US US, United States  City              Santa Monica, CA 90405  Organization      EdgeCast Networks   Is this just me experiencing this issue or is this a more general issue with imgur or stackexchange linking to imgur?

^^^^^^ Here is an image.   I've just tried to upload the screen shot for this question and I've seen that the upload image from computer doesn't work.  It must be fixed.  Clicking the image link I receive the following error on the page:     DNS Points to Prohibited IP You've requested a page on a website   (img.stack.imgur.com) that is on the CloudFlare network.   Unfortunately, it is resolving to an IP address that is creating a   conflict within CloudFlare's system. If you are the owner of this   website, you should login to CloudFlare and change the DNS A records   for img.stack.imgur.com to resolve to a different IP address.      Timestamp: Fri, 28-Jun-13 05:23:58 GMT      Your IP address: XXX.X.XX.XXX      Requested URL: img.stack.imgur.com/qhEV9.png0      Error reference number: 1000      Server ID: FL_11F1      Process ID: PID_1372397038.656-1-9635161      User-Agent: ....


I want to store what a user is saying (or get the value of a slot) and store it in a variable. Something like this:   String employee = intent.getSlot("Employee").getValue();   Alexa gives the right speechOutput so it gets the slot, however if i Say "Peter" and then make an if-statement (employee == "Peter") it always seems to be false. Can someone explain what I am missing?  public static SpeechletResponse getFact(final Intent intent, final Session session) {       Map<String, Slot> slots = intent.getSlots();      // Get the employee from the list of slots.     Slot employeeSlot = slots.get("Employee");     String speechText, repromptText;      if (employeeSlot != null) {         String employee = employeeSlot.getValue();          if (employee == "Peter") {             speechText =                     String.format("Pasta is the favorite food of %s.", mitarbeiter);         } else {             // I always end up here         }   ...

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


I would like to transform this data:  (it is Gauss Krüger Zone 3) into WGS 84 / UTM 33N in QGIS.  How do I do it? Just setting to UTM didn't seem to work.

I have a series of layers of lines (shapefiles) in My Project. The CRS of some are different and to merge them they all must have same CRS.  When I use Processing/Toolbox/Qgis_algorithims/Reproject_layer the reprojection only works if it is allowed to save to temporary file somewhere (it will not change the CRS when I reproject if I try to save and replace it in My Project directory);   I must remove the original from the layer list and reproject the temp file (without changing the CRS) to get it into my project and name it appropriately.  Is there a better way to reproject a layer in Qgis?


I download videos in mp4 or flv format but I need to convert them to mpeg 1/2/3 so that I can watch them on my special gadget.  I think I need a program.  any suggestion thanks

I need a good video converter application that can convert from/to many video formats. On Windows I found  to be good. I would like its equivalent or something better on Ubuntu.


I know that doing command &> /dev/null suppresses all output file descriptors.  But I notice that it does not work for commands that request input from the user, most notably ssh:  > ssh blah@blah.org &>/dev/null blah@blah.org's password:    Where is this output coming from? And why is not supressed?  One way I've found is to look up the process ID, and find file descriptors being used via   lsof -p <pid>  which shows (for example) /dev/pts/3, which I can then do   echo -en "\rMy own Custom Password Input Prompt:" > /dev/pts/3  which overrides the prompt, but this is a workaround at best.

I don’t actually need to run the command below, and I am aware of ssh keys if I did want to log in without typing a password. I would just like to know how ssh seems to circumvent my file redirection.  Running the following command, ssh prompts me for a password:  ssh nobody@192.168.1.151 > /dev/null 2> /dev/null < /dev/null   How does this work? stdin, stdout, and stderr are all redirected, but ssh still manages to print a prompt on my screen and read what I type. I tried adding the ssh arguments -t -t and -T (not both at once), to enable or disable pseudo-tty allocation, but it made no difference.  I also tried closing all input and output this way, although I don’t know if I typed it correctly. Still, ssh prompts for a password:  (exec 0<&- 1<&- 2<&- 0>&- 1>&- 2>&-; ssh nobody@192.168.1.151)


Are the following sentences are correct?  Tim is a manufacturer and he is not able to fix the car.  Tim is a manufacturer, and he is not able to fix the car.   I think the first sentence is wrong because it doesn't have the comma before AND, since they both can be independent sentences. Am I correct? I have taken the first sentence from an App (BBC English Learning - Playstore)

I read this sentence on an educational website:     Now times have changed and you are ready for situations involving forces in two dimensions.   Shouldn't there be a comma before and, since the subject of the sentence has changed (things vs. you)?      Now times have changed, and you are ready for situations involving forces in two dimensions.   What is the exact comma rule for joining two clauses with and?


I am programming a Python script, which takes a mesh from a external tool and adds it to the blender scene.  I transmit a texture and the mesh, and it actually works. But I have trouble with the UV coordinates.  The external tool handles the uv-coordinates per halfedge. This results in multiple uv coordinates for a vertex but all referencing the same texture. This is used for hard seams in the texture.  Now I need to reproduce this using Blender. How do I achieve this?  Using the bmesh module I can iterate over the loops of the mesh, but I don't know how to utilize this for my purpose.  Is there a halfedge support in Blender? Or can I set multiple UV-coords per vertex for one texture on a mesh?  Thank you for your help!  Greetings, Dragonseel

I'm currently writing an import script/addon.  The file format is one vertex per line: x, y, z, u, v With 3 lines for each triangle (no quads).  So far I've got vertex's, edges and faces all importing correctly.  Now I just need to import the UV coordinates for each vertex.  However I'm having trouble trying to find a way to do this.  The best result so far was copying code from the UV operator template, which gave me a UV Map, but it puts the whole model at one point.


Is it acceptable to answer a question where no answer has been provided, however a user has answered the question in a comment?  I would assume expending on the comment to answer the question would be acceptable?

I'm trying to go through and provide answers to every unanswered question (search "closed:0 answers:0"), somewhat following the spirit that was blogged about at  .  However, I'm finding this much more difficult than it needs to be, as many of the questions have already been answered without the use of an "answer" - but instead, in the form of a comment by either the OP or another poster. I wouldn't mind reading through and skipping these, as long as there was some appropriate action I could take to at least assist with preventing these questions from being seen again from the same query - either by myself or another SO member.  Is there such an appropriate action?  Should we vote to close?  If so, using what reason? Even if I vote to close, what are the chances that 4 other users will also view the question and also vote to close?  (i.e., will my individual vote even do any good?  Is there any report to show recent close votes, so that others may also review and contribute supporting close votes?) Should we post some sort of an answer - even just something to the effect of "this was already answered by the OP's own comment to his answer (above)"? Would something like this be appropriate to flag for moderator attention, and let the moderators deal with it?  (Or would this be considered too trivial?) Should we rename the question title to something standard that can be used in a search exclusion?  (Maybe "SOLVED:"?)  Basically, how can I help to denote questions as "This question is no longer in active search of an answer - though better answers may still be appreciated."? I've already reviewed , which was closed as a duplicate of  - but this requires effort on part of a user who may very likely no longer be active. Otherwise, is there something I should be doing to improve my search to filter out these types of questions? I've run across this many times, so I don't consider it to be a rare issue.  However, the last question like this I just ran across, prompting this question, was .  In this case, the question was self-answered by the OP in the form of a comment, this question is the OP's only question, the OP has no other visible activity on SO, and the OP hasn't been seen on SO since he registered and posted the question 5 months ago. Another one I just ran across is .  However, here the "answer" comment was posted by a reputable and recently active SO member.  Should I leave a comment directed at him, asking him to re-post his comment as an answer, or should I post my own answer echoing his comment?  (Or something else?) Yet another is .  Interestingly, the OP actually self-edited the question to include the "SOLVED:" prefix on to the question, instead of posting his resolving comment as an answer (and ideally accepting it) as he was asked to do by another comment.  This brings up another good idea - is there a "standard" we should use to rename the titles on these "resolved but unanswered" posts that could be used as a search exclusion?  (Also added to the above list.)


I lost my house and buildings, and spawned very far away. Luckily, my house is rather gaudy, with an enchantment table, crying obsidian; the works. Many, many hours into this world and really don't want to start over. I broke my bed while remodeling and forgot to replace it... Is there a command to teleport to a certain type of block in Minecraft Windows 10 Edition? And if so, what is it?

I was in creative mode on minecraft PE. I made this really awesome house plus a hotel! I was finishing up my house but decided to explore first. I explored for about 10 minutes and then stopped. Suddenly, I started worrying because I didn't know where I was. I couldn't find my house on a map, a compass, and I didn't make a beacon or keep track of what side of the sun it was on either. How can I find my house again???


How do you write the equal-to symbol with delta on top ("delta-equal to")? One similar to . Are special packages required for that? It is supposed to be used for definition of equalities, similar to :=.

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


I know this has been asked many times before but I'm still stumped. I'm obviously missing something but I have been unable to figure out how to successfully escape the apostrophe when sending a mysql query from php. Why does this not work when everything I have read says it should.  <?php $title = "havin' fun"; $con=mysqli_connect($server,$username,$password,$database); if (mysqli_connect_errno())   {   echo "Failed to connect to MySQL: " . mysqli_connect_error();   }  $title = mysqli_real_escape_string($title);   $result = mysqli_query($con,"SELECT id,artist,title FROM songs WHERE title     = '$title'"); if($result) {     while($row = mysqli_fetch_assoc($result)) {     $id = $row['id'];        $artist = $row['artist'];     $title = $row['title'];     echo $id.' - '.$artist.' - '.$title.'<br>';     } }else echo 'No Results'; mysqli_close($mysqli); ?>

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I have constructed this SQL query so far. It works as expected but is incomplete.  SELECT OPERATION.WORKORDER_BASE_ID   As [Work Order]   ,OPERATION.SCHED_START_DATE    AS [Scheduled Start]   ,OPERATION.SETUP_HRS           AS [Approx Setup Hrs]   ,OPERATION.RUN_HRS             AS [Approx Run Hrs]   ,REQUIREMENT.PART_ID           AS [PSU Card] FROM  OPERATION INNER JOIN REQUIREMENT ON REQUIREMENT.WORKORDER_BASE_ID = OPERATION.WORKORDER_BASE_ID     AND REQUIREMENT.WORKORDER_SUB_ID = OPERATION.WORKORDER_SUB_ID     AND REQUIREMENT.WORKORDER_LOT_ID = OPERATION.WORKORDER_LOT_ID WHERE OPERATION.[STATUS] ='R'      AND OPERATION.RESOURCE_ID LIKE '%{Root Container.equipmentName}%'     AND REQUIREMENT.PART_ID LIKE '%PSU%'   The tricky part is that REQUIREMENT.PART_ID actually has 4 columns worth of information. For example. The last column in this current table pulls out values containing "PSU". Another adjacent column would pull out data from the same column containing "PCH" I'm not sure what the best way to handle this is. Would a UNION statement be the best way to go or is this something that could be done with CASE statements?  ::EDIT::  Based on the new information I tried both pivot tables and case statements. I don't quite understand how pivot tables will work for this application without conditional statements. It seems like CASE statements would work. Drawing inspiration from here, , I tried this.  SELECT OPERATION.WORKORDER_BASE_ID   As [Work Order]     ,OPERATION.SCHED_START_DATE    AS [Scheduled Start]     ,OPERATION.SETUP_HRS           AS [Approx Setup Hrs]     ,OPERATION.RUN_HRS             AS [Approx Run Hrs]     ,MAX(         CASE WHEN REQUIREMENT.PART_ID LIKE '%PSU%'          THEN REQUIREMENT.PART_ID ELSE '' END      ) AS [PSU Card]     ,MAX(         CASE WHEN REQUIREMENT.PART_ID LIKE '%PCH%'          THEN REQUIREMENT.PART_ID ELSE '' END      ) AS [DIE #]       FROM  OPERATION INNER JOIN REQUIREMENT ON REQUIREMENT.WORKORDER_BASE_ID = OPERATION.WORKORDER_BASE_ID     AND REQUIREMENT.WORKORDER_SUB_ID = OPERATION.WORKORDER_SUB_ID     AND REQUIREMENT.WORKORDER_LOT_ID = OPERATION.WORKORDER_LOT_ID WHERE OPERATION.[STATUS] ='R'      AND OPERATION.RESOURCE_ID LIKE '%{Root Container.equipmentName}%'     AND REQUIREMENT.PART_ID LIKE '%PSU%'   The error message I get is:  database=FV_VM)@5000ms On: FV_Recipe_Page.Root Container.Table.data caused by GatewayException: Column 'OPERATION.WORKORDER_BASE_ID'  is invalid in the select list because it is not contained in  either an aggregate function or the GROUP BY clause. caused by SQLServerException: Column 'OPERATION.WORKORDER_BASE_ID' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.   Be gentle. I know my syntax is wrong, thats why I'm asking questions. I'm new to SQL and have never successfully used a PIVOT or CASE statement.

Trying to find some simple SQL Server PIVOT examples.  Most of the examples that I have found involve counting or summing up numbers.  I just want to pivot some string data.  For example, I have a query returning the following.  Action1 VIEW   Action1 EDIT   Action2 VIEW   Action3 VIEW   Action3 EDIT     I would like to use PIVOT (if even possible) to make the results like so:  Action1 VIEW EDIT   Action2 VIEW NULL   Action3 VIEW EDIT     Is this even possible with the PIVOT functionality?


Ok, I have bought this game multiple times over the years on different platforms. The only real negative aspect of the game is turning into a vampire. I haven't played this game in about three years and just bought it on the PC for the first time. Somehow I've turned myself into a vampire, AGAIN! I didn't eat vampire dust, so I don't know what it is. My problem is getting rid of it. I've already gone too far in the stages.   Falion is my only hope, but I don't understand how to fill a black soul gem. I've grabbed the Spell Time: Soul Trap and used it, nothing happens. It really pisses me off since it keeps costing me money. Other forums weren't clear on this matter. Can someone please explain exactly how I can fill the black soul gem and cure myself? Please be specific.

I have Sanguinare Vampiris. I don't really want to become a vampire. How can I cure myself?


I know about   However, that and all other related questions appear to be very old, and I'm hoping that there's a new way to do this.  Same question though: I have a laptop, I usually use it with two monitors. Some windows I pretty much always have in the same places. Other windows float, or are temporary.  When I unplug the laptop to go to a meeting, everything goes to the laptop screen. When I plug it back into the monitors, everything is on one monitor, and I have to go around moving everything back...   I'd like it to just remember where it was when I unplugged without having to explicitly save something, because it's not always going to be the same. I just want it to be as I left it...   Reasons the previous answer isn't satisfying:  1) it's 5 years old. What 5 year old answer is still valid in tech?  2) the program suggested: Stay, seems inefficient. It requires that I save a specific window layout each time. I just want it to go back to whatever I had before I unplugged. Stay appears to minimize all windows that weren't part of the saved settings, which is not really what I want.  3) I am REALLY hoping that in the last 5 years, macOS had fixed this problem, so the solution wasn't to use some other program, but to make some settings change.

When I attach a second monitor to my MacBook, I drag many windows onto it.  When I detach the monitor, all the windows move back onto my MacBook's display.  How can I make it so that when I re-attach the monitor, all the windows automatically move back to their position on the second monitor again?  I use my personal MacBook at work where I have the extra monitor.  But this means I need to detach and re-attach the monitor every day.  I have many windows I leave open from the previous day's work, so this is a real pain.  I know about an app called , which is almost exactly what I want.  But I need something that works on OS X 10.5.


I've been noticing an issue recently I (and other users) have tried to access deleted answers, only to get the question and no error message. This behaviour is annoying, would it be possible to have some sort of error message when we try to access a deleted answer (and are <10k)? Something like this:  The current issue is that if some user posts a link to the answer and the answer's deleted, other users may think (and indeed, this has happened to me) that the question is being referred to, and not the answer. Example from today:  Although , the action of  did confuse a couple of users, including myself. This would've been prevented if an error message showing the answer had been removed had been shown when attempting to visit it. I know it's a tiny feature request, but I think it'd be a nice feature to have.

Currently, if you access a deleted question you will get a short message informing you that the question has been deleted. However, if you click on a direct link to a deleted answer or comment (which you can get via notifications), nothing is displayed.  This is naturally quite confusing as you will get the message about a new answer or comment via notifications, click on the link and simply see nothing.  Therefore, I propose to display some sort of message to the user, informing her/him that the answer or question has been deleted. Note that this is different from always showing a deleted answer/comment, as I specifically request it in case you access the specific URL.  One example for a comment would be:   One example for a deleted answer is:   This question is related to ,  but requests a feature to circumvent the problem altogether.


I've been trying to download and install skype 4.2 on my PC for a long time, I have attempted many times but I have failed. The description of my computer is the following:   Dual Booting with Windows 8 (32 bit) Installed Ubuntu 13.04 (64-bit) with Wubi Installed skype app and desktop application for windows I have installed all updates and Ubuntu seems to run smoothly and sexy (as usual).   I have tried to install it from the skype website (), not knowing which distribution to choose, I chose the "Ubuntu 12.04 (multiarch)" Distribution. After downloading I get the "skype-ubuntu-lucid_4.2.0.11-1_i386.deb" package on my downloads folder. After double-clicking it I get the following message from the Ubuntu Software Center: "Wrong Architecture 'i386'" withtout further explanation.  Then I try the "Ubuntu 10.04 (32-bit)" distribution... same results. Then I try the "Dynamic" distribution... get a "skype-4.2.0.11.tar.bz2"And I get the following read me file:     Skype for Linux 4.2 README      INSTALLATION      If you are using one of the distribution-specific packages, simply run the   "skype" executable.  KDE users should find a launcher for Skype in their   Internet menu if Skype has been installed through one of these packages.      If you are using the dynamic and statically linked generic versions, you   will need to choose a path for Skype to exist in.  We recommend copying the   skype binary to /usr/bin and installing sounds/, lang/ and avatars/ into   the /usr/share/skype directory.   Since I don't have a lot of experience with Linux, I haven't accepted tux as my lord and saviour, neither I have been Bourne Again (get it? Bourne Again? anyone? no? okay.), I just know the basic commands. Even though I know them, I couldn't successfully, do what the README file instructed me to do. I tried 'cp' and 'mv' but I miserably failed to do so.   $ cp skype-4.2.0.11.tar.bz2 /usr/bin   I don't think I am doing it correctly because I get the following output:  cp: cannot stat ‘skype-4.2.0.11.tar.bz2’: No such file or directory   I assumed that that wasn't actually the binary file so I just tried inputting the following:  $ cp skype /usr/bin   the file that was in the tar.bz2 with no other description or extension just "skype". and it failed  I am assuming you think I am either a troll, an ignoramus, or just had a sucky teacher... what am I doing wrong? Do I specify where the file is? How do you install the Dynamic distribution?  Anyway, I tried Googling it and I found the following:   I LITERALLY tried every single thing, every input and every suggestion. Nothing worked, most inputs gave me the following output:  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  skype : Depends: skype-bin but it is not installable E: Unable to correct problems, you have held broken packages.   :( I tried the following suggested from:    chalgafe@ubuntu:~$ sudo dpkg -i --force-architecture skype-ubuntu-   this was the input:  lucid_4.2.0.11-1_i386.deb dpkg: error processing skype-ubuntu-lucid_4.2.0.11-1_i386.deb (--install):  cannot access archive: No such file or directory Errors were encountered while processing:  skype-ubuntu-lucid_4.2.0.11-1_i386.deb   I believe that's what he meant with the asterisk right? to put our corresponding distributions?  anyway, it didn't work. What am I doing incorrectly? What can I do?    Other unnecessary details (please, don't let this affect your answer by straying away from the problem)   Skype is the only reason I am still using windows 8 On other forums, people that had windows 8 and skype app for it, couldn't install it either. Is there a correlation? There s no other way of accessing skype unfortunately.

I want to install Skype, but I can't locate it in Software Center or by using Synaptic Package Manager. Can anyone help me?


So, I want to replace my graphics card. The graphics card I have is an Intel 3000, and the minimum requirement for the software I want to run is an Intel 4000. Is that possible on a laptop? Also, if this helps, I have an Intel Core i5 processor and 4GB of RAM. One more thing; I have an HP Elitebook 8460p, which is a business laptop.

As there's no definitive answer to this, and I would prefer not to be too specific about particular models, what are the things that determine whether this is possible or not?   What expansion slots would the laptop require to do this? How can you find out if a motherboard/chipset supports upgrades?  Is heat an issue? Could it void the warranty? How is battery life affected?


Some authors claim the Poisson equation is $$\nabla^2 \psi = -\dfrac{\rho}{\epsilon\epsilon_0}$$ (e.g. ) whereas other ones (e.g. ) claim it is $$\nabla^2 \psi = -4\pi\dfrac{\rho}{\epsilon}.$$ I guess $\epsilon_0$ is taken to be one but how would you explain the absence or presence of the $4\pi$ multiplier? Is it related to some choice of units?

The Coulomb force in SI units reads $\displaystyle  F = \frac{1}{4\pi\varepsilon  }\frac{Q_1\times Q_2}{R^{2}} $. On the other hand, in CGS this reads $\displaystyle F = \frac{Q_1\times Q_2}{R^{2}} $. Why is this? I mean, doesn't it make any difference in dimension? Particularly since $  \varepsilon $ itself has dimension. An identical question holds for the magnetic force.


There's a guy I met randomly and he said he would give me 1000 dollars to my paypal (he also asked if it was in the U.S. and verified to which I said yes) but I would have to send half back to him. I asked him why didn't he just send me half so I didn't have to do the work and he said because "He had to take it out all at once." Anyway, long story short he asked for my address and phone number to "make sure I won't run off with [his] money". I didn't give it to him yet because he said we would do that all tomorrow. He told me to install the application Telegram and add him on there so I did. And basically that's where I'm at right now. I am guessing this is a scam and I'd like to have fun with him. Or would it be potentially dangerous for me? For example, would I get into any legal trouble? Could he hack my paypal? Should I report him? If so, to whom?

Possible Australianism - netbank = a website + app by which an Aussie can do their banking, including transferring money to other people.  A while ago, I ended up with $1000 transferred into my account, which in the description looked like a netbank transfer, not like a cheque, cash deposit etc, and which looked like it had already cleared and landed in my account. Usually when something is still working through the bank's system it displays as 'pending', but did not in this case.  I received a phone call from someone, saying that they had accidentally typed in the wrong account number, and wanting me to send them the same amount of money back via netbank.   Surely bank account numbers have a checksum, which make it relatively difficult for a typo to result in a payment going to the wrong person? What are likely sources of them being able to find my phone number to call me? Obviously, the bank either being hacked, or giving it out in response to a query from this person (but surely the bank is unlikely to tell me my own mobile number if I claim to have forgotten it?). Presumably either my phone, or the phone of someone I have sent money to/received money from could be compromised. Has anyone heard of any instances of this happening?  I then went to my bank, explained the situation and said that I did want to refund the money through the officially sanctioned methodology. After the laughter died down, the bank told me to ask the person to fill out a form, then they would get me to fill out a form that would authorize undoing that exact payment.  I rang up the person to tell them this, and over the course of about a week received an increasingly elaborate story about how that wasn't working, they needed the money immediately, there was a fee to fill out that form and they couldn't afford to pay it etc.  After that, I never heard back from them again. I check my netbank for several weeks after, expecting the money to magically disappear, but it did not. This was probably a year ago, and I'm pretty vague with money so may not have noticed if it disappeared more recently. How were they expecting to benefit?  Were they hoping to get the transfer from me, and undo the transfer to me, to leave them $1k up? If so, how can an internet banking transfer be 'undone' once it has already shown as 'received'. Or was this to do with money laundering? The account they requested me to send money to was the same as the one that the money appeared to come from. This was a scam, right?


How to write the (approximation iniquity) with a letter under it on latex?

Is there a way to do underscripts? By "underscript" I mean a small font underneath the text object like limits or sums have. I don't want it to behave like a math operator though, where it is typeset as a subscript or underscript depending on the environment (like sums). I want there to always be an underscript in math environments with the possibility of adding a subscript in addition to the underscript. Is there anything like an \underscript{X}{a} command?  Is there even something like that that will only work in mathmode? I haven't been able to find it.


On the community moderator election , I see three sets of requirements, in different places. The main body of text says  For the Stack Overflow election, an eligible candidate for the election must have all of the following badges:  Civic Duty  Strunk & White  Deputy  Convention    At the bottom,  You need all of the following badges to nominate yourself as a candidate: Strunk & White, Civic Duty, Deputy, and Convention.  Then off to the side,  In the nomination phase, any community member in good standing with more than 3,000 reputation may nominate themselves to be a community moderator.  I'm not sure if the first one refers to a different event or phase ("election" vs. "nomination"), but the last two certainly seem (to me) to be at odds. Does someone need reputation, badges, or both to be nominated?  This is not a duplicate of , which mentions nothing about 3,000 reputation. If anything, this is a duplicate of (currently unanswered) .

The  says that there is a moderator election occurring.   How does the election work and how can I get involved?


I just installed Ubuntu 14.10 and I can't find the New File option anywhere. The New Folder is there, but I can't create new files except if I run the touch command in the command line.   Is there any method through which I can bring the old New File option back? I think just creating files through a touch command is really a time consuming process....(I loose at least 20-30 seconds doing this with the touch command, as opposed to 5 seconds doing it from the menu the classic way).  Thanks!

The New file operation is missing in Ubuntu 13.04. How can I fix it?  I have only "New Folder". How can I add the New File option again?


Our use case is to relax validation rules in cases where the update is made from an external system.  Each user authenticates individually so unfortunately we cannot look for an API user.

i have scenario like write a trigger avoid insertion of records  from  data loader,only manual insertion trigger will fire?on any object     while Entering records from data loader trigger should not fire?


I want to create folder but it's name date of current day. I know how to make it in terminal by this command:  mkdir $(date -I)   How to add this to right click to be easy?

From time to time I come up with ideas of actions I'd like to have available in the context menu of Nautilus. How do I add them there? Is there something like a Thunar UCA plugin for Nautilus?


How can I give an Object.Freeze on just one object?  Here's the example below where I create a, I replicate a in b, freeze the b, and try to re-assign a value to a. But it is no longer possible. Why? How do I do freeze on just one object?  Thank you!    let a = { "teste" : [1,2,3] }  // I want 'b' freezed const b = a; Object.freeze(b);  a.teste = [4,5,6]  console.log(a)

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


I have recently bought a very expensive new MacBook Pro with 8 GB memory and now I am frustrated by its very fast battery drainage. Often I see only 2 hours left on full battery charge! Right now it is only 2:22 hours with no process above 200MB except 1 GB for kernel_task. Also 4 GB memory is free after a "memory clean" (I am also disappointed that Apple does not properly clean memory by itself). What are possible causes of that low battery performance and how to deal with them? Any help is greatly appreciated. EDIT. I do memory clean with , hope it does what it says and not spreads a virus or likes.  Battery Information:    Model Information:   Serial Number:    D863063R190DGDLBH   Manufacturer: SMP   Device Name:  bq20z451   Pack Lot Code:    0   PCB Lot Code: 0   Firmware Version: 406   Hardware Revision:    2   Cell Revision:    158   Charge Information:   Charge Remaining (mAh):   4976   Fully Charged:    No   Charging: Yes   Full Charge Capacity (mAh):   6696   Health Information:   Cycle Count:  133   Condition:    Normal   Battery Installed:    Yes   Amperage (mA):    2870   Voltage (mV): 12272  UPDATE. I restarted Mac today in the morning and closed all applications - still only 3 hours. In the afternoon I have closed all applications - and miraculously I saw whopping 8 hours! Then launched Komodo and Chrome and back to 4 hours. Really puzzling...

My Macbook Pro lasts me about 1.5 to 2 hours max on a single charge. This feels ridiculously low.  What can I do to increase the battery life on Macbook Pro?  Battery Information:    Model Information:   Manufacturer: SMP   Pack Lot Code:    0000   PCB Lot Code: 0000   Firmware Version: 0201   Hardware Revision:    000a   Cell Revision:    0157   Charge Information:   Charge remaining (mAh):   6079   Fully charged:    No   Charging: Yes   Full charge capacity (mAh):   6930   Health Information:   Cycle count:  3   Condition:    Normal   Battery Installed:    Yes   Amperage (mA):    2139   Voltage (mV): 12492


I am studying Differential Geometry and I am facing with a lemma in which there is a step that I do not understand. In particular, let $G$ be a connected compact Lie group, is used "$\langle\ \cdot , \cdot \rangle$ any $Ad(G)$-invariant scalar product (or equivalently a non-degenerate semi-positive bilinear form) on $\mathfrak{g}$, the Lie algebra of $G$ ". I can't find any such of scalar product.  When a connected compact Lie group $G$ has such a scalar product? I tried with the Killing form that is semi-definite negative bilinear form, that is non-degenerate iff the lie algebra is semisimple, but how I can prove that a compact connected Lie group have semisimple Lie algebra?  I tried also with a proposition (3.6.2) in "lie groups", Duistermaat-Kolk, saying that the killing form of a lie algebra $\mathfrak{g}$ is negative on the complement of the center $\mathfrak{z}$ of $\mathfrak{g}$. Then if I prove that $G$ is centerless, so is $\mathfrak{g}$ and the opposite of the killing form is an $Ad(G)$-invariant scalar product on $\mathfrak{g}$.  $\underline{NOTE}$: The lemma I have to do states "Two maximal tori of a compact connected Lie group $G$ are coniugate", so we can suppose that $G$ is non-abelian.

I am trying to answer the following question:     Which Lie groups have a Lie algebra admitting an $\text{Ad}$-invariant inner product?   First of all, all compact Lie groups satisfy this condition because one can average an arbitrary inner product on the algebra over the group.  This means that all Lie groups that have the same Lie algebra as some compact group also satisfy the condition. Indeed, the group is then locally isomorphic to a compact group, and taking "the same" inner product on the Lie algebra, we see that this inner product is invariant under all $\text{Ad}_g$ for $g$ in some neighbourhood of the identity, but this neighbourhood generates the whole group, from which the claim follows. Another approach would be to show that an inner product is $\text{Ad}$-invariant precisely if it is $\text{ad}$-invariant (like , although there may be an issue with connectedness of the group) and conclude that the Lie algebra completely characterizes whether or not an invariant inner product exists.  I suspect these are all the Lie groups that answer the question, because  (the second property, at "this property characterizes compact Lie algebras"). However, the reference given is just "SpringerLink", which is of no use.     Could somebody confirm that the answer to the above question is "all Lie groups with a compact Lie algebra"?   I have consulted multiple sources, but none of them completely establish the result I'm looking for. For example, Lie groups beyond an introduction by Knapp establishes what I already know (that it works for groups with a compact Lie algebra), and establishes the converse only in case the inner product is actually the Killing form.


My harddrive just crashed and HP is asking me to pay them to get a recovery media in order to re-install Windows on the new hard drive. Now, Windows 10 uses digital licenses tied to out Microsoft Account. So, I guess I should be able to grab a iso of the same edition of Windows online, install it, and then activate it by signing in to my MS Account. Only thing I can't seem to figure out is how do I check if I have a digital license linked to my account.  does show my connected devices but there isn't any option to check my license. Also,found a answer elsewhere stating that this page only shows the devices linked, not the one which have license. What I want to know is , How do I check whether the digital license is there in my MS Account or not ?

I've been using Windows 10 for a couple of month now (joined the Insider Preview).  Now my hard drive started ticking so I've bought a new SSD and I want to move the windows installation to the new hard drive, which has been connected to the computer (unpartitioned). I don't mind and I even prefer reinstalling it over again.   Since I have the free version of Windows 10 pro, can I still reinstall it anew? Does the windows 10 installation offer disk management and partition like the older Windows installations used to? How should I reinstall Winodws 10 x64 the easiest but still remain on free mode?