In Ubuntu if I type which more, it will display the path of the more command as /bin/more, indicating it is a file. But I don't see any extension for it nor a type associated, probably because they are simple executables. How can I create such a file which could echo a simple string? I don't want to create a .sh file because if I want to pass the file as a command with another command, I'd have to type .sh as well. TIA
I'd like to know if there is a way to run  program/shell script without typing full path:  /opt/idea/bin/idea.sh
How do I remove all attributes which are undefined or null in a JavaScript object?  (Question is similar to  for Arrays) Parallel universe: in every universe, you are presented with a different decision. Does that mean there are an infinite amount of parallel universes? I.e., if in one universe I choose to go left, I am then presented with different choices vs if i choose right, and that creates more universes with more decisions to be made.  Or does it mean that in the end of one's life we end up in the same place, meaning that its just one parallel universe that eventually collides with the other. To estimate the time for brute-force attack we need to compute keyspace size divided by hash rate, where the hash rate (hash/second) varies depending on the computer's capabilities.  The website  shows the hash rate for different computers.  Can you explain the following two confusing phenomena?   The hash rate decreases as the message size increases. Core i3 has a higher hash rate than Core i7 for SHAKE128. Does an Action Surge grant a second bonus action? We were trying to understand how the "Action Surge" rule works, and after some discussion we came to a standstill.      Starting at 2nd level, you can push yourself beyond your normal limits for a moment. On your turn, you can take one additional action on top of your regular action and a possible bonus action   The keyword "possible" is what threw us off. Half the group thought it meant "additional action or bonus action", and the other half thought it was "additional action and bonus action".  So which is it? Is three hours enough for an international-domestic transfer at Delhi? My International flight will be reaching New Delhi IGI at 2:45 AM and I am planning to book a domestic flight at 5:45 AM.  Is three hours sufficient for me to move from International to Domestic?  I believe there must be a shuttle service inside the airport to transfer me from International to Domestic but still I don't know if Customs time at IGI could cause any delay or not. Google's CDN is nice, but it's not 100% reliable for all users. It occasionally fails to load for me. Other users , and some .  It's one more possible point of failure. It would be preferable if Stack Exchange didn't depend on it.  If you don't want to stop using it, consider adding a fallback if it fails to load. Something like this:  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script&gt;   if (!window.jQuery) {     document.write('&lt;script src="https://cdn.sstatic.net/stackoverflow/content/js/jquery-1.7.1.min.js"&gt;&lt;\/script&gt;');   } &lt;/script&gt; Windows Update not working on Windows 2012 R2 Standard So I've been trying to figure out how to prove the following.     Let $(a_n)$ be a sequence of positive numbers such that $\sum\limits_{n=1}^\infty a_n =\infty$, and define $s_n=\sum\limits_{i=1}^n a_i$. Then $\sum\limits_{n=1}^\infty\frac{a_n}{s_n} =\infty$ as well.   I can prove it by comparing it to $\int_1^\infty \frac{1}{x} \, dx $ if the sequence $a_n$ is bounded by some $M$, but that's as far as I've been able to get. How to download and use any other kernel than the one which is installed by default Review Queues and Ignored Tags Steps to Recreate:   Have enough rep to use some of the review queues. Ignore a popular tag. Go to your profile-> prefs-> check 'hide ignored tags'. Open a review queue.   You will get questions from your ignored tag(s) in the review queue.  Personally, I ignored a tag on Movies.SE (and Scifi.SE) for a film that is out elsewhere in the world, but not locally.  It's a simple way to avoid being exposed to spoilers.  I then load up the First Posts review queue on Movies.SE, and I get an answer to a question about the end of the film.  Can the review queues be altered to skip posts on your ignored tags when you have the 'hide ignored tags' option enabled? Why use coherent state path integral? What is its motivation or goal? In almost all textbooks of quantum field theory for high energy, they insert the position and momentum eigenstate to formulate the path integral. While in condensed matter field theory, they insert the coherent state to get the path integral. What's the motivation or goal to use the latter instead of the former? Let $a$ be an element of a group G. Prove that $a$ commutes with each of its conjugates in $G$ iff $a$ belongs to an abelian normal subgroup of $G$.   My Try:  I proved the backward direction. For forward one, given $g\in G, a(gag^{-1})=(gag^{-1})a$. I was trying to prove that $a\in Z(G)$. In order to prove that, I must show that $ag=ga$. But failed. Am I on the right track? Can anybody please give me a hint? I want to try it myself. How do I stop my 2013 Macbook Air from putting the computer to sleep? Not enough space on /tmp I'm not able to run update manager as I get an error saying that there is not enough free space in the /tmp directory. I've practically cleaned out the tmp directory but the error persists.  here's df-h  /dev/loop0       13G   11G  952M  92% / udev            2.0G  4.0K  2.0G   1% /dev tmpfs           785M  920K  784M   1% /run none            5.0M     0  5.0M   0% /run/lock none            2.0G  584K  2.0G   1% /run/shm /dev/sda6        20G   14G  6.4G  68% /host  overflow        1.0M   16K 1008K   2% /tmp I'm looking to get data such as Size/Capacity, Serial No, Model No, Heads Sectors, Manufacturer and possibly SMART data. Coming from a programming background, where should I start to learn web design? I'm a web developer mainly working in front end developing. My main fields are HTML5, CSS3 and Flash ActionScript 3.0.  Here in Iran, teamwork means nothing for most of the people, but I think it's the most important aspect of our work, especially in web design.   I have poor skills in graphic design and UI design. I always have to work with graphic designers for my websites. They are usually good and skilled designers. But they are all print designers and unfortunately they know nothing about the web and designing for it.  For example, one of the designers that I work with most of the time is a great designer and he won a couple awards for his logo and poster designs. However, he knows nothing about the web and most of my time is spent explaining to him how things work on the web, i.e. in what size he should work, using pixels instead of centimeters, and so on... After all he is a print designer, not a web designer. They often think everything is static and constant, not in motion.  So the best way to work around this is to improve my skills in graphical designing. I just want to be able to design good layouts, make good color selections, and etc for my websites. I do not want to design illustrations and do heavy graphical works. Just design websites with no Photoshop illustrations like posters and etc.  What do you do for your graphic works, and if you do them yourself, which books or references do you suggest I read? Where should I start? By definition $\aleph_1 = 2 ^{\aleph_0}$. And since $2 &lt; \aleph_0$, then $2^{\aleph_0} = {\aleph_1} \le \aleph_0 ^ {\aleph_0}$. However, I do not know what exactly $\aleph_0 ^ {\aleph_0}$ is or how I could compute it. Unknown apps/processes with number only are shown in data usage A mysterious app named &quot;10102&quot; shows up in my data usage. It bears only the standard Android app icon (the Bugdroid logo with a cube on its torso). From what the graph tells me, it has used 36 megabytes of data in the background and zero on the foreground. I think I haven't uninstalled anything for months. Is it malware? I haven't sideloaded anything and only authorized my laptop as a USB debugger. If it's malware, how do I remove it? I have no idea how to find its package name and 10102 isn't in the list of downloaded apps in settings. I'm running stock &amp; never-been-rooted Android 4.4.4 on Nexus 4. How to get sudo to prompt you for a password each time How can I send an email by Java application using GMail, Yahoo, or Hotmail? Is it possible to send an email from my Java application using a GMail account?  I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using Hotmail, Yahoo or GMail are acceptable.