Read Data From File Using Command Line Java As I am new here and I have search some questions but not able to full fill my requirement, so please help me for this.  How can I allow user to enter the path of file as command line argument and then I can read the content of file and display from that file,  Also If file is not there then it should display appropriate message for that.  Please help me for this as I am new to tech and site both.
Java Command line arguments I am trying to detect whether the 'a' was entered as the first string argument.
The last two digits of $9^{9^9}$ I tried to calculate the last two digits of $9^{9^9}$ using Euler's Totient theorem, what I got is that it is same as the last two digits of $9^9$.   How do I proceed further? I am using Ubuntu 12.10.  Please outline the different ways I can upgrade to 13.04. Creating flow maps in QGIS I have several records from a survey and would like to show flow map from places mentioned in the survey. I have all places mentioned georeferenced and some records mentioned no places and others mentioned up to 16 places. I made a graphic so I can make myself clearer. I'm trying to find a way to automatically clean/delete the temporary files from C:\Documents and Settings\user\Local Settings\Temp\ at shutdown/boot on my Windows XP Professional x64 SP2 machine.  The main reason for this is to clean Local Settings/Temp to remove old junk automatically. (I had thought I had this covered through Firefox settings, but I was only clearing temporary Internet files). Currently, there's around 3&nbsp;GB of temporary files, and I'd like to prevent this build up without having to remember to do anything on my part.  I have already looked at using  (explained in Super User question ), but it doesn't seem to touch that directory.  I'm aware of programs such as , but I would ideally like to use a solution that doesn't require additional software (so, I expect, something using a scheduled BAT/CMD script would be what I'm looking for).  One of the potential issues, I believe, is that there may be legitimate files in the Temp folder that may be needed on the next boot (for software installations or updates, for example) and the perfect solution would be able to distinguish those and leave them until they weren't needed (Note: I realise this perfect solution may not be reasonably possible).  I've already set up Disk Cleaner on a shutdown script, but when cleaning temporary files, Disk Cleaner doesn't clean this particular directory, and so I'm looking for alternative options (see Super User question  for a little more detail).  So, what are my options for automatically deleting the temp files from C:\Documents and Settings\user\Local Settings\Temp? Is Force lightning from the feet plausible? In all the canons of Star Wars, there has not been one instance of a Force-user projecting Force lightning from their feet. Why? Is it implausible? How do lexical closures work? While I was investigating a problem I had with lexical closures in Javascript code, I came along this problem in Python:  flist = []  for i in xrange(3):     def func(x): return x * i     flist.append(func)  for f in flist:     print f(2)   Note that this example mindfully avoids lambda. It prints "4 4 4", which is surprising. I'd expect "0 2 4".   This equivalent Perl code does it right:  my @flist = ();  foreach my $i (0 .. 2) {     push(@flist, sub {$i * $_[0]}); }  foreach my $f (@flist) {     print $f-&gt;(2), "\n"; }   "0 2 4" is printed.  Can you please explain the difference ?    Update:   The problem is not with i being global. This displays the same behavior:  flist = []  def outer():     for i in xrange(3):         def inner(x): return x * i         flist.append(inner)  outer() #~ print i   # commented because it causes an error  for f in flist:     print f(2)   As the commented line shows, i is unknown at that point. Still, it prints "4 4 4". How to draw neat polygons around scatterplot regions in ggplot2 Messed up my PATH environment variable and can't login to desktop To get an maven environment variable to run, I tried several options. Basically, I followed some options from , such as ~/.pam_environment, /etc/bash.bashrc and I don't really know anymore. Within them I exported sth like export PATH=/opt/apache-maven-3.6.0/bin:$PATH (I'm being so unconcrete because I cannot look it up).   Afterwards, I did run gnome-session-quit and my machine got stuck.   So after hard restart I try to login again, but I'm not able to do that: I see my username, enter the password, hit enter, screen turns black and after 2 seconds I'm back at the login screen.   So, that very strange and worrying. Next step: Login via tty (Strg + ALT + F3). Within there I can login, but can not do much. I thought about sth like . But whatever I do: The command could not be located because '\bin' is not included in the PATH environment variable. I think, altogether thats alarming and I'm getting really nervous.  Executing export PATH="/usr/bin:$PATH seems to work and echo $PATHgives an output starting with /usr/bin:/usr/bin:/usr/bin:/home/user/Documents/.../esper/examples/transaction/etc:/home/user/anaconda3/bin:/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin:/opt/apache-maven-3.6.0/bin:/opt/apache-maven-3.6.0/bin:/opt/apache-maven-3.6.0/bin but does not really help.  I'm running an Ubuntu 18.04 on an Lenovo G50-70.   Can you help me accessing my desktop again and/or fixing my PATH issue? In the Monster Manual, gargoyles, golems, helmed horrors, and xorns all enjoy either immunity or resistance to:     bludgeoning, piercing, and slashing damage from nonmagical weapons that aren't adamantine   Is it actually possible to obtain a nonmagical adamantine weapon?   Although the Dungeon Master's Guide describes adamantine armor (p.150) and Daern's instant fortress (p.160) as being made of this metal, and provides an AC for destructible adamantine objects (p.246), there's no mention of adamantine weapons. The creation spell (PH p.229) can produce an adamantine weapon that lasts for a single minute. The true polymorph spell (PH p.283) can't turn a regular weapon into adamantine, but it might be able to  for an hour. The only way to obtain a (somewhat) permanent adamantine weapon in the game seems to be to loot one from drow elves (MM p.127). A PC (perhaps even a drow) with proficiency in smith's tools could presumably craft a nonmagical adamantine sword during downtime at 5gp per day (PH p.187), except that unlike silvered weapons, there's no pricing for adamantine.   It's seeming like mugging an NPC drow is the only by-the-book way to tool up against gargoyles. Loading PyQt5 modules from QGIS3/PyQGIS I am trying to talk to the PyQGIS API for use in a 3rd party application using the offical .dmg image provided on the QGIS homepage.  After setting PYTHONPATH to /Applications/QGIS3.4.app/Contents/Resources/python and initializing everything as stated in , I am facing the following error when running from PyQt5.QtGui import or from qgis import *:    ImportError: dlopen(/Applications/QGIS3.4.app/Contents/Resources/python/PyQt5/QtGui.so, 2): Library not loaded: @executable_path/../Frameworks/QtGui.framework/QtGui   Referenced from: /Applications/QGIS3.4.app/Contents/Resources/python/PyQt5/QtGui.so   Reason: image not found   Looks like I need to set some linkers or similar?   Side facts: - I have no problems when using the homebrew version of QGIS). - I am on macOS 10.14.6 (Mojave) Highlight the difference between two strings in PHP What is the easiest way to highlight the difference between two strings in PHP?  I'm thinking along the lines of the Stack Overflow edit history page, where new text is in green and removed text is in red. If there are any pre-written functions or classes available, that would be ideal. Javascript Array.sort implementation? Which algorithm does the JavaScript Array#sort() function use?  I understand that it can take all manner of arguments and functions to perform different kinds of sorts, I'm simply interested in which algorithm the vanilla sort uses. Showing a compact metric space has a countable dense subset What is butterfly lighting, and when do I use it? I often hear the term 'Butterfly Lighting' used when discussing high-fashion and glamor photography. How do I set up Butterfly Lighting, and when do I use it? Reading the question posted  left me with a more general question:  Given the professional title and name: Dr. (First Name)(Last Name), is there some way to differentiate between the holder of a philosophical doctorate and a medical doctor? Wouldn't it be more appropriate for a PhD holder to have the title (First Name)(Last Name), PhD? Number Theory: $p!+p=n^2$, $p$ = prime Best practice when analysing pre-post treatment-control designs How do I change extension of multiple files recursively from the command line? Why is the relationship between atomic number and density not linear? Custom Button on Lightning Experience I created a custom button Send Email in Lightning Experience. The problem is that button in visible in feed section layout, but I want to put it in the upper right corner of page layouts near Edit, Clone, Delete ecc....  How Can I do that? Thanks  I add an image that explain the situation.    EDIT: I would like to explain you better my problem.  I have created three custom quick action:   I have added them to the case page Layout as you can see    I would like to understand the reason why I don’t see these three custom action in the Page Layout in the section in the top right