What are some tricks for avoiding bash history being logged in a fascist logging environment that does not involve modifying .bashrc or deleting content from within the history file?
More than once I've accidentally run a number of commands and polluted my bash history. How do I close my terminal without saving my bash history? I'm using Fedora.
Is there a way to override class variables in Java? A No-Nonsense Introduction to Quantum Field Theory 14.04 - Network manager stopped working When I started my laptop, there was no network service, and also no network icon in the top bar. It gives an error when I start OS like "Sorry, Ubuntu 14.04 experienced an internal error". When I click details, it says the error is occurred in the executable path usr/sbin/NetworkManager. Also, when I try to enter Network in the System Settings, it says "the system network services are not compatible with this version"  How can I solve this shocking issue?  p.s. I didn't install any third party packages/apps related with networking. Only system updates are installed. My client wants me to write a formula field to return the duration(in months and days) between two date fields.  For ex:    If start date is "January 1st 2016" and end date as "December 31st 2016" then it should return value as "12". If start date is "January 1st 2016" and end date as "November 20th 2016" then it should return value as "11.67".   From the sample formulas given on the salesforce , I see that there is a formula date_1 — date_2 to calculate number of days between two dates.  But should I update the formula to (date_1 — date_2)/30 or (date_1 — date_2)/31 to get what I need?  Is this something really doable using formula or am I better off solving this using Apex? bash history for current session Maybe I'm overlooking something but is there a way to get your current bash history for the current session you are using like  if i run  ssh host $ pwd $ ls $ cd /tmp   I just want to see those 3 commands and nothing else How are NFL matchups determined for each season? During the 2012 NFL Season, the Pittsburgh Steelers and Baltimore Ravens play each other in weeks 11 and 13, two weeks (in both NFL schedule and time) apart. To me, that seems too close for comfort.   I do know that teams play other teams in their division twice. How does the NFL schedule procedure work? Why do we multiply the magnetic flux by the winding number? Wi-Fi only works after waking MacBookPro7,1 from sleep Been having some issues with the STA drivers from bcrmwl-kernel-source. While the drivers do function, they only seem to function after putting the laptop to sleep, by either closing the lid, or manually putting it to sleep, and waking it up. The laptop here is a MacBookPro7,1 (Mid 2010 13-inch MacBook Pro), running Ubuntu 17.04.  While the issue isn't bad enough to deter me from using the laptop, it is not an elegant solution, and I believe that there can be a solution found somewhere.  For reference, here are the outputs from the Wireless Info script for both before and after: , . Hopefully these are of some use. If you need additional information about the computer, I will be happy to answer. align xticks in PGFPlots du wrongly reports empty directory I'm using these commands:    du -sh --apparent-size ./* du -sh ./*   both reporting:    4.0K    ./Lightroom_catalog_from_win_backup 432M    ./Lightroom catalog - wine_backup   while those directories contain:    $ll ./"Lightroom catalog - wine_backup" total 432M -rwxrwx--- 1 gigi gigi 432M Mar 18  2018 Lightroom 5 Catalog Linux.lrcat -rwxrwx--- 1 gigi gigi  227 Nov 21  2015 zbackup.bat $ll ./Lightroom_catalog_from_win_backup total 396M -rwxrwx--- 3 gigi gigi 396M Dec 17 09:35 Lightroom 5 Catalog Linux.lrcat -rwxrwx--- 3 gigi gigi  227 Dec 17 09:35 zbackup.bat   Why du is reporting 4.0K for ./Lightroom_catalog_from_win_backup and how could I make it to report correctly?  PS: other system information:    $stat --file-system $HOME   File: "/home/gigi"     ID: 5b052c62a5a527bb Namelen: 255     Type: ext2/ext3 Block size: 4096       Fundamental block size: 4096 Blocks: Total: 720651086  Free: 155672577  Available: 119098665 Inodes: Total: 183050240  Free: 178896289  $lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.5 LTS Release:        16.04 Codename:       xenial Why do I keep getting told I posted less than 15 characters when I posted more than 15? I tried to post the following comment and it claims it was less than 15 when it was more.  Based on Tim's comment and testing I believe it would not let me post because with @Shadow removed it is less than 15. However, the characters left message indicates I have passed the 15 character minimum thus it is wrong.  This is the bug I'm reporting:  The characters remaining message and the characters left message do not take into account striping out @name prefixes. How to insert an item into an array at a specific index (JavaScript)? I am looking for a JavaScript array insert method, in the style of:  arr.insert(index, item)   Preferably in jQuery, but any JavaScript implementation will do at this point. Can it be proven that : If $a_n&gt;0$ and $\sum a_n$ converges then $na_n \to 0$ (without assuming $a_n$ is decreasing)  Please note This question does not require $a_n$ to be decreasing as condition,  Is it possible to prove $na_n \to 0$ without requiring $a_n$ to be decreasing? I keep thinking that $a_n&gt;0$ and $\sum a_n$ converging then that implies that $a_n$ must be decreasing anyway(not monotonically decreasing necessarily )  Is it possible that $a_n&gt;0$ and $\sum a_n$ converges then $na_n \not \to 0$?  There are already answered questions that assume $a_n$ to be decreasing as a requirement: (this question does not assume $a_n$ is decreasing)       was the post that made me ask this question, a counter example of monotonoic decreasingness of $a_n$ was given in comments by the OP. I would like to see a full how-to guide on how to install Ubuntu. How to set JAVA_HOME to point to a JDK installation? I installed sun-java6-jdk.  I need to find its home directory. JAVA_HOME must point to a JDK installation, not JRE. Is it still possible to install Ubuntu to an external harddrive with UEFI? It looks like  isn't possible with UEFI, where as with MBR there wasn't a big difference between external and internal. Is that true or is it still possible?  Is it even possible to combine both boot methods? I have the following text:    A   Hello   world   B   Hello   world   C   Hello   world   I know that I can replace Hello by Hi using sed:  sed 's/Hello/Hi/g' -i test   but this replace each Hello with Hi:    A   Hi   world   B   Hi   world   C   Hi   world   what I really want is to replace only the Hello after B:    A   Hello   world   B   Hi   world   C   Hello   world   so I have tried this:  sed 's/"B\nHello"/"B\nHi"/g' -i test   but nothing happened, How can I do this?  Note: There are some white-spaces on the beginning of each line of the file. In Windows I used command-line clipboard copy-and-paste utilities...      pclip.exe and gclip.exe     These were UnixUtils ports for Windows (but they only handled plain text). There were a couple of other native Windows utilities which could write/extract any format.    I've looked for something similar in Synaptic Package Manager, but I can't find anything.    Is there something there, that I've missed? ... or maybe this is available in Bash scripting?    The type of utility I'd like will be able to read/write via std-in/std-out or file-in/file-out, and handle Unicode, Rich Text Format, picture, etc. clipboard formats...    NB: I'm not after a clipboard manager. How to AutoSize the height of a Label but not the width Automating "Stay Awake" I use my personal Android smartphone for development. Every morning, I go to Settings \ Developer Options \ Stay Awake and check the box.  At the end of the day, I uncheck the box — since otherwise any notification (including the "fully charged" one) will trigger the screen on, and it will stay on from that point on.  How can these two operations be automated?