How to create a wifi hotspot using wifi connection I am very new to ubuntu . I am using ubuntu 14.04.01 and i am  using a wifi connection and i don't have a lan connection. I want to create a wifi hotspot using this connection. I searched on sites but i only get the methods to create it with lan.   I tried   thanks in advance.
How do I create a WiFi hotspot sharing wireless internet connection (single adapter)? I know how to create a hotspot when connected to a wired network, but when I am using internet from a WiFi connection, this disconnects the wireless connection the moment I activate the hotspot.  In Windows I can use , which enables me to share the internet connection from the same wireless adapter as I am creating an access point on. As you can read on the :     Access Point mode allows you to create a hotspot using the same Wi-Fi card that you are using to access the Internet.   How do I do this on Ubuntu?
When should one use final for method parameters and local variables? I've found a couple of references () that suggest using final as much as possible and I'm wondering how important that is. This is mainly in the the context of method parameters and local variables, not final methods or classes. For constants, it makes obvious sense.  On one hand, the compiler can make some optimizations and it makes the programmer's intent clearer. On the other hand, it adds verbosity and the optimizations may be trivial.  Is it something I should make an effort to remember? Identify a movie in which aliens believed a sci-fi TV show to be true documentary I remember watching a sci-fi movie in the early 00s. It was full of comedy. Here are the details I recalled:   There was a space opera TV show in the movie. It seemed a true copy of Star Trek (they used to pilot a ship and there were captain, first officer, science officer etc on bridge). The name of the TV show was possibly the name of the movie. Once the main crew of the TV show were celebrating some achievement, they were approached by humans having weird behavior (they were actually aliens in disguise; in reality, they looked like octopus). The alien race was innocent. They couldn't comprehend the concept of art, lies etc. So, they believed that the TV show (they got the EM waves) was true historical documentary of mankind. So, they came looking for help from the brave captain of the show. From the TV show details, they had built a starship which really worked. The aliens needed the TV show crew to pilot the ship to defeat another alien race which terrorized them. The TV show crew didn't have any problems piloting the ship as the controls were familiar, only these controls were real.   Can you please identify the movie? Do badges get calculated in real time, or do they get calculated by an external service? How long does it take for a badge to be awarded, once its requirements are met?  Does Stack Overflow use any external services to do things, like maintenance, e-mailing or badge calculation? Why does the connection time out when connecting to a server? My friend had hosted a Minecraft server before and brought it back up today with my help. He and anyone in his LAN can connect. However we have had a few people try to connect, including me, and when we try to connect it gives the message:  Failed to connect to the server Connection timed out: connect  What does this exactly mean? How do we fix this? I am interested in good integer approximation from below and from above for binary Log(N!).  and  provides only a general idea but not exact values. In other words I need integers A and B so that  A &lt;= Log(N!) &lt;= B Can any one help me with this?  Determine all integer triples $(x,y,z)$ such that $1 ≤ x ≤ y ≤ z$ and $x + y + z + xy + yz + xz = xyz − 1$.  I thought of Vieta's formula but don't let me lead you into a dead end. Is this correct: "Our listeners are what make X"? Summarizing flatness of county with statistic Elevation variance per square mile I need to classify every county in the US as either hilly, moderately hilly, or flat. Accuracy is not critical, just a rough classification. I used R and followed the advice in  answer to import elevation and counties and calculated the zonal variance. This was inherently biased towards larger counties since they have more surface for hills, so I need to divide by area. If I divide variance by square miles does that reasonably represent hilliness? The preliminary results seem decent, with the highest values being places like Colorado, Hawaii, Montana, etc. Connect two computers with SSH in a home LAN I have two ubuntu computer shared the same wifi and desire to reach another from one's terminal.  First create an user on the second computer named "Second" and hostname "Algorithms"    Then tried to reach it from the other with SSH,  but get error report as   $ ssh second@Algorithms   ssh: Could not resolve hostname algorithms: nodename nor servname provided, or not known   The solution I tried is based on   What's the problem with my experiment? A children's book series about a farm that grows massive food There was a series of illustrated children's books that I was introduced to as a child in the late 1980's early 1990's.  The main character was a farmer - I can't remember the name, but I think it was Mc or Mac something. He bought his farm from a sleazy character who was trying to cheat him. The farmland was originally some kind of swampy land, but this industrious character (and his family) discovered that the land would grow plants to a massive size - radishes the size of basketballs, etc.  There were some pretty fantastic stories and adventure that the character would get into, such as one winter the weather got so cold that the wind (not the air) outside froze. They went out and cut it up and stored it in the icebox and would thaw out some of the cold breeze later in the hot summer.  The sleazy character made a constant appearance, trying to swindle this family out of the farm.  My Google-Fu seems to fail me at every turn. Do you know what this series is? How to set a command block with a command inside using the setblock command Does someone know how to set a command block with a command inside using the setblock command?  I have created this code /setblock &lt;x&gt; &lt;y&gt; &lt;z&gt; command_block {TileEntityData:{Command:"testfor @p[_=1]"}} but it doesn't works.  Do someone know how to do that? Are the XBLA and PC versions of Minecraft compatible? How to run grep with multiple AND patterns? I would like to get the multi pattern match with implicit AND between patterns, i.e. equivalent to running several greps in a sequence:  grep pattern1 | grep pattern2 | ...   So how to convert it to something like?  grep pattern1 &amp; pattern2 &amp; pattern3   I would like to use single grep because I am building arguments dynamically, so everything has to fit in one string. Using filter is system feature, not grep, so it is not an argument for it.    Don't confuse this question with:  grep "pattern1\|pattern2\|..."   This is an OR multi pattern match. Why are accepted answers not included in the tag badge calculation? For the 400 votes tag badge, does it take into consideration answers marked as the accepted answer?  The description indicates it does not.  I would think an accepted answer would be worth more, or at least the same amount, towards getting a tag badge than just a simple upvote?  Lots of users mark answers as accepted and do not bother giving an upvote since the 15 points is like and upvote and a tip.  So it's possible for a user to have 400 accepted answers with no upvotes and not get a badge where a user with 400 answers (which could be right or wrong) with a single upvote and no accepted answers ever would get the badge.  Just seems a little odd or does accounting for accepted answers make the badge calculation too complicated / slow?  Edit: Questions you ask and submit an answer to shouldn't be counted towards the total for accepted answers.  Edit: It just seems to me that the most important thing in the system is an accepted answer yet there are no badges for achieving more than one accepted answer.  If up votes were more important, and therefore far more worthy of a badge, then why do the top voted answers not appear above the accepted answer?  When it come to badges, accepted answers are second class citizens as compared to a possibly random upvote.   I have seen many upvotes on completely wrong answers but rarely do I see an accepted answer that was completely wrong. How to use "fit" to frame the nodes and labels I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit}  \begin{document} \begin{tikzpicture}   \node [label=label1,draw] (node1) {Node1}; \node [label=label2,draw] (node2) at (4,2){Node2};  \node[fit=(node1)(node2), draw] {}; \end{tikzpicture} \end{document}     How to fit the rectangle also around the node labels? I came across the following problem in a book:  Give a combinatorial proof of  $$ {n \choose 0} + {n \choose 2} + {n \choose 4} + \, \, ... \, = {n \choose 1} + {n \choose 3} + {n \choose 5} + \, \, ...$$ using the "weirdo" method (i.e., where one of the elements is chosen as special and included-excluded -- I'm sure you get the idea).  After days of repeated effort, the proof has failed to strike me. Because every time one of the elements is excluded, the term would be ${n-1 \choose k}$ and not $ {n \choose k}$, which is not the case in either of the sides of the equation. Arithmetic progression topology My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code:  NSString* stringer = [NSString stringWithFormat: @"Test"]; NSLog(@"%@", [stringer class]);   The log says that the class is NSCFString, not NSString. What's going on here? Why doesn't my screen lock in XFCE? A user just posted his question a second time here on meta after the first was closed as a duplicate. I wrote a comment on the second post, explaining that the answer to his question is in the linked duplicate and that he shouldn't circumvent the closure process by asking a second identical question.  When the second post was closed as a duplicate my comment was automatically deleted. As far as I understand this is a heuristic that removes obsolete comments, which it considers every comment that contains a link to one of the duplicates.  This heuristic is too aggressive and removes comments that go beyond "Duplicate here: link". I suggest that it should be changed to only remove the default duplicate comment, and not any comment that was edited by the owner nor any free-form comment that happens to include a link to the duplicate.  This also triggers for any comment that contains the word "duplicate" and link to any question, not only the question being chosen as duplicate, which makes this much worse.