Being a completely newcomer in linux world, I'm trying to make some development using ubuntu features. I wanted to add some alias to .bashrc but couldn't find it. There is an answer on this qustion, but its not a duplicate, because while working on an older versions of windows on my 1803 system it's doesn't work.
I feel stupid asking, but I can't seem to find the answer to this anywhere. I'm trying to follow  to edit my bash prompt, but there is no .bashrc in either my user directory (~/.bashrc), or in my home directory, or in the main file system directory.   There is no .bashrc in /etc/ (there is a bash.bashrc, however).   Do I create a .bashrc file in my user or home directory? Is there a better, more recent set of instructions for modifying the bash prompt?
I have two JSON objects with the same structure and I want to concat them together using Javascript. Is there an easy way to do this? How to pluralize an acronym which ends in 'S' correctly? When using the acronym package, how can you  an acronym which ends on 'S'?  Take the acronym: OS - operating system  It should be pluralized as OS's, but is pluralized as OSs when using \acp. How do I remove the proprietary ATI drivers? I've installed 11.10 and the proprietary ATI drivers using "additional drivers" The performance of my system is absolutely awful and it shouldn't be. I tried to remove the proprietary drivers using the Additional Drivers tool and it appears to remove them. However after I reboot I cant get back into my desktop properly (the panel and launcher go missing). This doesn't seem to be an isolated problem in 11.XX.  covers how to restore the desktop (panel and launcher), but the guide doesn't fix my problem though.   Whenever I do sudo unity --reset it runs through its normal processes until it hangs at setting update "run_key" and never gets past that. I must reinstall the proprietary drivers using jockey-text or jockey-gtk in order to get back to my proper desktop.   Interestingly enough the system performance seems improved while it is in its "broken" state (missing panel and launcher).  I think restoring the default drivers may solve my problems but I cant figure out how to do it. Displaying and/or searching across thousands of contacts? The Need  Our application has a chat feature that allows our users to chat with other users within their database.   However, we're adding a feature that allows clients to share data between multiple databases as an "Enterprise" configuration, and we've been asked to update the design of the chat feature to allow users to chat with other users within any of those databases.   We've looked at the numbers of possible users in these scenarios, and the number of chat users in these shared database environments can be as many as 5,000.   Users need to be able find people they need to chat with out of these thousands of contacts. However, up til now, we've had a list of contacts the users can browse. Since that is a user expectation, we were hoping to still maintain a browse-able list of contacts. We have ruled out trying to display a list of 5,000 contacts, as this doesn't seem to be anywhere close to useful or usable.   We've come up with three approaches to solve the problem:  Option One  Show a list of contacts from the local database that user's can browse. Have a second tab that allows users to search the "Full Directory", returning results from multiple databases.     Pros:   Allows us to show a browse-able list of relevant contacts  Clearly indicates to users that another source of chat contacts are available   Cons:   Search would be limited to the current tab, meaning users would have to be in the right tab to return the right result Adds a possible source of user confusion: whats the difference between "contacts" and the "full directory"? Adds another tab to what should be a simple chat list     Option Two  Show a list of contacts from the user's local database, but if they search for a contact, include results from other databases as well.     Pros:   Maintains a list of contacts the user can browse Avoids adding adding another tab One search field searches all sources   Cons:   Searching a finite contact list and returning results that weren't in the contact list may defy user's mental model of how the search will work. Not clear that another source of contacts exist. May need to add explanatory text that says "Search to see contacts from the full directory".      Option Three  Add a dropdown that allows a user to select a what to search in: the local database, or the full directory.     Pros:    No additional tab required Indicates to users that another source of chat contacts are available, though not as clearly as option 1   Cons:    Search still isn't universal: the right search category must be selected to return the right result Users may not notice the dropdown or understand intuitively what its function is. May require explanatory text in search results, reminding the user they can expand the search to the full directory     Thoughts?  Right now I'm leaning towards option two, but is there another option I'm not considering here? Is there another alternative worth considering?   Thanks! I am a Saint Lucian and will be traveling to Manchester, UK soon about which I am a bit nervous.  Run Down:   I own a small business in my country (in the Caribbean), I have a certificate mentioning the details of the business from my Government. I pay rent in my country, but I do not have any loans (I hate owing). I pay life insurance in my country. I have a US B-1/B-2 visa (Visitor &amp; Business). I have visited the US once (last year November) on my US B-1/B-2 visa.   What I will be doing in the UK:   I plan to spend three months out of the six months which would be granted if I get leave to enter stamp. I plan to skydive in the first week and spend a few nights at an Airbnb. I plan to visit the Manchester Football Club stadium, I'm not the biggest of football fans but since I'm in Manchester, why not! I plan to do some more sightseeing and enjoy my time there. After the first week I will be staying with my female friend who owns an apartment for the rest of the time showing me around and helping me experience the UK lifestyle until June.   Why I'm leaving in June:   I am a WordPress enthusiast (I'm a Programmer) and WordCamp EU will be happening in France this year so I plan to fly from the UK to Paris where I will spend three days then take another flight from there to my country.   How my flights will be:   I will be taking a one-way Thomas Cook flight from my country to Manchester but will be purchasing my ticket for Manchester to France ahead of time so I could show Thomas Cook as well as Immigration that I don't plan to stay.   My concerns, could someone address them point by point please?:   I have a bank account but I just use it for collecting easy payments from my clients and pay for expenses. I store my savings in a credit union because of higher interest rates paid than the bank. When I applied for my US visa I showed a credit union statement showing my total balance. I'm seeing online that I should provide statements but these statements would look very bad since I my bank account is just for expenses... I mean it sometimes gets as low as $30 then, when my monthly earnings come in from clients, I withdraw savings to the credit union and leave what I need in the account for expenses. I read another post and it said people with bank statements showing poor spending might have difficulty but it's simply because the account is used for expenses not savings. For the later stages of my visit (after the first week) I will be staying with my friend. I will simply be staying with her to save on cost of Airbnbs for the next two months three weeks, even though they could be cheap, free is better right? I will be booking the Airbnb, skydiving and tours prior to traveling to the UK, will that help? Is my stay too long for staying with someone? I won't be depending on her for anything since I have my own funds...it's just convenient that she has a place where I could stay. If it is then I don't have a problem shortening my stay to 1-2 weeks and just head back to my country and take a separate flight to Paris in June.   I am nervous because I really want to visit the UK and see my friend, I am also not sure if the minimum amount of time that could be given to a visitor is six months? What if I get a round trip for two weeks and the Immigration officer gives me exactly two weeks stay, is that possible? Or is the minimum they could give six months?  Your help is very much appreciated, I want soon to try backpacking (nomad life) but I don't think my poor heart could take the stress of worrying about immigration :(  Update  Since people in the comments are asking about my relationship with the friend I plan to stay with even though she's from my country originally but now a UK citizens and we are simply friends. Merging folders with mv? After discussion with colleagues regarding the use of the 'var' keyword in C# 3 I wondered what people's opinions were on the appropriate uses of type inference via var?  For example I rather lazily used var in questionable circumstances, e.g.:-  foreach(var item in someList) { // ... } // Type of 'item' not clear. var something = someObject.SomeProperty; // Type of 'something' not clear. var something = someMethod(); // Type of 'something' not clear.   More legitimate uses of var are as follows:-  var l = new List&lt;string&gt;(); // Obvious what l will be. var s = new SomeClass(); // Obvious what s will be.   Interestingly LINQ seems to be a bit of a grey area, e.g.:-  var results = from r in dataContext.SomeTable               select r; // Not *entirely clear* what results will be here.   It's clear what results will be in that it will be a type which implements IEnumerable, however it isn't entirely obvious in the same way a var declaring a new object is.  It's even worse when it comes to LINQ to objects, e.g.:-  var results = from item in someList               where item != 3               select item;   This is no better than the equivilent foreach(var item in someList) { // ... } equivilent.  There is a real concern about type safety here - for example if we were to place the results of that query into an overloaded method that accepted IEnumerable&lt;int&gt; and IEnumerable&lt;double&gt; the caller might inadvertently pass in the wrong type.  var does maintain strong typing but the question is really whether it's dangerous for the type to not be immediately apparent on definition, something which is magnified when overloads mean compiler errors might not be issued when you unintentionally pass the wrong type to a method. Calculate the last digit of $3^{347}$ I think i know how to solve it but is that the best way? Is there a better way (using number theory). What i do is: knowing that  1st power last digit: 3 2nd power last digit: 9 3rd power last digit: 7 4rh power last digit: 1 5th power last digit: 3    $3^{347} = 3^{5\cdot69+2} = (3^5)^{69} \cdot3^2 = 3\cdot3^2=3^3=27 $ so the result is $7$. Why do you lose reputation for downvoting answers? Why this :$\sum\limits_{n=1}^\infty\frac1{n\sin n}$ is not harmonic series and is convergent? I'm confused how this series :$$\displaystyle \sum_{n=1}^\infty\frac1{n\sin n}$$ is a convergent series as wolfram show  and it's not harmonic series in the same time .  My question here is:  Why this :$$\displaystyle \sum_{n=1}^\infty\frac1{n\sin n}$$ is not harmonic series and is convergent ? Did any Quidditch games ever end by agreement of the Captains? The game can only end when the Snitch has been caught, or by mutual agreement of the two teams' Captains; the latter is very rare, however, as one team would have to lose. (source: HP Wikia on Golden Snitch)   Is there an example from canon of this resolution to the game ever happening? Time Manager (QGIS) date format I've been through associated answers but cannot quite seem to find something which works!  I'm having trouble getting TimeManager to recognise a simple data field (this is in QGIS2 - but I've had this error in earlier versions). I have these fields formatted in what appears to be one of the acceptable formats:    ... here is a screenshot of the field properties:    The format appears to be recognised in QGIS as I've worked out days difference between two dates (the "Time on Market" field shown in the image).  However ... I always end up with:   The Twitter.shp file works fine as a test, so I don't think this is an issue with the install / phyton conflict.  Any thoughts welcome! Why we won't extract heat from air temperature? How to delete pre-installed apps in Catalina? I want to delete the pre-installed apps, like Music, Books, Siri etc. from my iMac running Catalina. How do I do this?  (NOTE:  asks the same thing but was closed as a duplicate of . Annoyingly, the supposed duplicate doesn’t give an obvious answer to the question, and the original was locked can’t be answered, hence a new question. I can’t add an answer to  either) What conditions are necessary for a Wither Skeleton to spawn naturally, and can I manipulate those conditions to increase the chance of them spawning?  I want to make a Wither Skeleton spawning pad in the Nether but I'm having trouble finding Wither Skeletons. I've only heard that they spawn in Nether Fortresses. How long does it take for reputation on Stack Overflow Careers to be updated? Just curious how this works:  My Stack Overflow reputation on my Stack Overflow CV shows an amount X, which is less than my actual Stack Overflow reputation Y. It's been this way for a few days. In addition, some of my 'favorite answers' on my CV have a lower # of votes than they do in reality.  How long does it take for this (I assume cached) value to be updated? Do numbers exist independently from observers? How do high traffic sites service more than 65535 TCP connections? Please recommend undergraduate-level textbooks on electrodynamics which emphasize practical applications and real life examples. Please describe the book's level and contents and its intended audience in as much detail as possible.   Please provide both applications from everyday life for curious students as well as engineering applications from a physics perspective. Repeated error  I have been repeatedly encountering the following error when my laptop freezes. It may occur multiple times during the day, and should take several minutes to recover.  Source Windows  Summary Hardware error  Date ‎11/‎1/‎2018 10:11 AM  Status Not reported  Description A problem with your hardware caused Windows to stop working correctly.  Problem signature Problem Event Name: LiveKernelEvent Code:   144 Parameter 1:    3003 Parameter 2:    ffffad8c0b1a75c8 Parameter 3:    40010002 Parameter 4:    0 OS version: 10_0_17134 Service Pack:   0_0 Product:    256_1 OS Version: 10.0.17134.2.0.0.256.48 Locale ID:  1033   More details  Per my best reflection, the hardware error occurs when I am using the laptop on its docking station. Here is what I observe:   While using the laptop as normal, the "freeze" will occur and I can hardly operate the laptop: mouse cursor won't move continuously and Alt+Tab won't be able to switch across two windows. Shortly after (usually several minutes), things will go back to normal. Upon inspecting through the Performance tab in Task Manager, there had been no spike in anything, be it CPU, Memory or Disk. When I open the View reliability history tool, I will find another entry of Windows Hardware Error   Machine specification:   Thinkpad T480, i7-8650U (newly replaced module thanks to the manufacture)   With the same pair of docking stations, an older unit of T480 has had exactly the same problem.  Docking station: . Same issue has occurred on two identical docks with  slightly different monitors and accessories. OS specification: OS build 17134.376. Most recent collection of "reliability report":    Possible solutions   First, I would like to learn what exactly went wrong, hardware-wise: the manufacturer's support team did not bother too much with the precise error messages, and have ordered me to reinstall the Windows OS up to 5 times in total. [This is what they called "debugging".]   Please advise if you can decipher the recurrent "Hardware error".   Secondly, I will try to push the manufacturer to replace the docking stations, and see if the same "freezing problem' persists.