How to Change Cursor Theme, Speed and Size on Login Screen The question is that:  I've changed the cursor theme with Tweaks putting the cursor theme folder inside the:     /usr/share/icons   I also changed the speed (with dconf Editor) in:     /org/gnome/desktop/peripherals/mouse/speed   and the size (with dconf Editor) in:     /org/gnome/desktop/interface/cursor-size   But... The login screen keeps showing me a default cursor theme, size and speed.
Change cursor color after log out on ubuntu 18.04.2 LTS I've set my cursor color on gnome-tweaks to be DMZ-Black, which works fine when I log in and lock the computer. But, after I log out, the cursor color changes to white.  Is there a way to change the color of the cursor after log out?  My gnome-tweaks setting:
Is there a way to make bash more TAB friendly? I use bash on both my Mac and as my cygwin shell. Overall, I'm quite pleased with it.  My one complaint however is that its TAB completion isn't as good as Windows Command Line TAB completion.   For example, if there are two files with the same prefix, then bash just beeps at me when I try to TAB complete. If I keep nailing TAB, then it will eventually show me a list of potential files.  I definately prefer how Windows will cycle through potential files right on the command line.   Is there a way to get bash to operate similar to Windows Command Line in this regard?  If there isn't (I do not want to switch shells), am I missing something about TAB completion in bash? Is there a more efficient way to use it? Do lens hoods need to be matched to focal length? Is it true that not all generic lens hoods work on all lenses (provided the filter diameter matches, of course)? I read that the focal length plays a role in it - but I cannot find such readings on any lens hoods I see available online. Does a Vietnamese citizen need a transit visa for South Korea? I am a Vietnamese passport holder. I'm going back to Viet Nam from Montreal this December, and I will transit at Incheon Airport for a few hours. Do I need a Korean visa just for transiting, either from Montreal to Hanoi or from Hanoi back to Montreal? Why does this Excel file keep asking to save? I'm having trouble restarting a 2D game when the user presses the "New Game" button.  Structure of my game:  The game has several 'screens': Opening screen, instructions screen, main game screen, and a game-over screen.  Each screen is an instance of a class: OpeningScreen class, GameScreen class, etc.  There is a class named Main. This class has three roles.   It's the JFrame (the window) of the program. It has the main method - first class to run. It has a method that change's screens.   When the program starts, this class runs. When it first runs:   Creates a new instance of itself (it's a JFrame-type class). Creates an instance of every 'screen-class'. The constructor of each 'screen-class' takes the instance of Main as an argument: (aka: GameOverScreen gameOverScreen = new GameOver(this)). Creates a new JPanel named mainPanel, and adds it to the JFrame. Any screen to be displayed will be contained in this JPanel (The screens are also JPanel-type classes).   How the changeScreen() method works:  The signature of changeScreen() is this: changeScreen(JPanel from, JPanel to).  Whenever a screen needs to be changed, the current screen that is displayed calls this method, like so: main.changeScreen(this, main.InstructionsScreen). It removes the previous screen from mainPanel and adds the new screen to mainPanel. As said, these screens are created when the program launches.  This is the method that changes screens:   public void changeScreen(JPanel from, JPanel to){      mainPanel.remove(from);     mainPanel.add(to);      mainPanel.revalidate();     mainPanel.repaint();  }   My problem:  After a game is finished, the Game class calls the changeScreen method: main.changeScreen(this, main.GameOverScreen) .  This replaces the game screen with a game over screen. Pressing the "New Game" button in the game-over screen, calls main.changeScreen(this, main.GameScreen) .  The problem: Pressing the "New Game" button in the game-over screen, indeed displays once again the instance of the Game class. But this is the old instance, so the game is not restarted. It's already finished.  I tried to do the following changes in changeScreen():  public void changeScreen(JPanel from, JPanel to){      mainPanel.remove(from);      if(to.equals(gameScreen)){         gameScreen = null;         gameScreen = new GameScreen(this);     }     mainPanel.add(gameScreen);      mainPanel.revalidate();     mainPanel.repaint();  }   This should reset the gameScreen object. But this creates a delay of about 10 seconds when pressing the "New Game" button.  What would be a good way of restarting the game?  Thank you Understanding 74LVC245 datasheet and current source/sink I'm using a SN74LVC245A () to shift 5V TTL down to 3.3V so I can read the signals with a Raspberry Pi.  However I am getting really weird results (a 60Hz input signal is picked up by the Pi at anything between 110Hz and 320Hz) and I'm really confused about how to read the datasheet to figure out whether I need pullup or pulldown resistors.  The datasheet says on page 4 the "high-level output current" is -24mA, and the "low-level output current" is 24mA.  So to me this means that when the device is outputting a high signal, it is able to sink 24mA of current (since outputting a negative amount of current suggests the current is going into the device instead.)  But then if you're outputting a positive voltage, isn't that sourcing current?  Why is the figure listed as a negative value?  Is anyone able to explain what these figures actually mean?  When I disconnect the 74LVC245 output from my GPIO pin, I still get weird signals from the floating input pin so I am assuming this means the 74LVC245 output is also floating in one state, but I don't know in which state it is (i.e. is it left floating on a high output signal or a low one?)  It doesn't really make sense to be floating on a high output signal since it's a level converter and the whole point is to maintain the correct 'high' voltage, so do I need pulldown resistors to handle the low output?  If so, why does the datasheet seem to suggest the chip can both source and sink current?  (In my mind, source current means the device can output a current with a positive voltage, while sinking current means the device takes in anything and connects it to GND, so perhaps that is where I am going wrong.)  Anyway I'm quite confused so any clarification would be much appreciated! Let $a\in \mathbb{Z}$ be such that $a=b^2+c^2$ where, $b,c \in \mathbb{Z}-\{0\}$. Then $a$ cannot be written as    $pd^2$ where $d \in \mathbb{Z}$ and $p$ is prime with $p \equiv 1~(mod~4)$ $pd^2$ where $d \in \mathbb{Z}$ and $p$ is prime with $p \equiv 3~(mod~4)$ $pqd^2$ where $d \in \mathbb{Z}$ and $p,q$ are primes with $p \equiv 1~(mod~4)$ and $q \equiv 3~(mod~4)$ $pqd^2$ where $d \in \mathbb{Z}$ and $p,q$ are primes with $p,q \equiv 3~(mod~4)$   The similar question with some part missing is asked , but I want to discuss additional options too.  Here, I got 1) is false Since $13=3^2+2^2$ For other options What should I do How do I root my Android device? My PC (Lenovo Ideapad z580) is overheating while running Ubuntu GNOME 16.04 LTS.  $ uname -a Linux Mahadev 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux  $ lspci -nnk|grep -A2 VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)   Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:3977]   Kernel driver in use: i915   $ sensors acpitz-virtual-0 Adapter: Virtual device temp1:        +52.0°C  (crit = +104.0°C)  coretemp-isa-0000 Adapter: ISA adapter Physical id 0:  +54.0°C  (high = +72.0°C, crit = +90.0°C) Core 0:         +54.0°C  (high = +72.0°C, crit = +90.0°C) Core 1:         +54.0°C  (high = +72.0°C, crit = +90.0°C)  update vivek@Mahadev:~$ stress -t 300 -c $(getconf _NPROCESSORS_ONLN) &amp;&amp;  sensors stress: info: [4408] dispatching hogs: 4 cpu, 0 io, 0 vm, 0 hdd stress: info: [4408] successful run completed in 300s acpitz-virtual-0 Adapter: Virtual device temp1:        +73.0°C  (crit = +104.0°C)  coretemp-isa-0000 Adapter: ISA adapter Physical id 0:  +72.0°C  (high = +72.0°C, crit = +90.0°C) Core 0:         +69.0°C  (high = +72.0°C, crit = +90.0°C) Core 1:         +72.0°C  (high = +72.0°C, crit = +90.0°C)  update     vivek@Mahadev:~$ sudo lshw -C cpu     [sudo] password for vivek:    *-cpu                             description: CPU         product: Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz         vendor: Intel Corp.        physical id: 0        bus info: cpu@0        version: Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz        serial: To Be Filled By O.E.M.        slot: CPU Socket - U3E1        size: 1302MHz        capacity: 2400MHz        width: 64 bits        clock: 100MHz        capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr  pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx  fxsr sse sse2 ss ht tm pbe syscall nx rdtscp constant_tsc arch_perfmon  pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni    pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid    sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer xsave avx f16c lahf_lm    epb tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt     dtherm arat pln pts cpufreq           configuration: cores=2 enabledcores=2 threads=4  Update This time I edited the sensors , htop command result in image. It's getting overheated, my laptop is getting hang cause of overheating, please watch and reply. Thanks. Using round function in QGIS expression? How do I use a particular font for a small section of text in my document? The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text?   How do I find the right name of the font? How do I select the font? How do I restrict the scope of the font change?     There are separate answers for different flavors of TeX (quick links): How does the speed of electrons change around a circuit? I have been thinking about ways of teaching electronics and I'm wondering if the following is true...  For starters, when we talk about voltage as energy per unit charge, is this energy manifest simply as the kinetic energy of the electron?  So, all other things being equal, will the electrons coming out of a 4 volt battery will have twice the velocity of electrons coming out of a 1 volt battery because of ${1 \over 2}mv^2$?  This would seem to imply that the voltage drop across different parts of the circuit is essentially a comparison of the electron speeds at those points.  Furthermore doesn't this imply that the electrons are nearly halted by the time they reach the positive terminal of the battery? This makes intuitive sense to me, it seems pedagogically sound, and it provides an explanation for how electrons "know" to give up their energy across the circuit -- electrostatic repulsion communicates later resistances to earlier parts of the circuit.  How much of the above is correct? The one things that makes me suspicious is that, in this picture, electron density at the positive terminal of the battery is very high, and repulsive forces would prohibit this. On the other hand, if the Joules per Coulomb are not coming from kinetic energy, then what? The field? But wouldn't that just dissipate as light?  Something is wrong but I don't know what. Why doesn't 'find' show this file? Using find with grep, one can locate files that match a pattern:  # find | grep error ./solr-modifiedSolr4/SolrPhpClient/phpdocs/errors.html ./error_log ./includes/classes/error_log   However, using find alone the first file is not found:  # find . -name error* ./error_log ./includes/classes/error_log   Why doesn't find locate the errors.html file when not used with grep? How is find used to show this file as well? Basic Electronics Book I need basic electronics books  (diodes,transistors,current.. etc) as I am just starting out with electronics and want to have something to read over the holiday.  Any suggestions of good beginners' books? I asked this question  but I haven't gotten a useful answer. Could you tell me the difference in meaning between these sentences?        Do you think you will visit them next week?     Will you visit them next week?     Are you going to visit them next week?     Are you visiting them next week?     Are you going to be visiting them next week?     Are you planning to be visiting them next week?     Do you plan to visit them next week?      Will there be any difference in the answers?        I think I will visit them next week.     I will visit them next week.     I am going to visit them next week.     I am visiting them next week.     I am going to be visiting them next week.     I am planning to be visiting them next week.     I plan to visit them next week.      Can I use "planning to" instead of "going to"?  (E.g. "Are you planning to visit them next week? — Yes, I am planning to visit them next week.") Which of these sentences show that the subject of conversation has already been discussed? For example, I talked with a friend of mine about my plans to visit somebody. So my friend is aware of my plans.  And my last question. Which of these seven sentences express that the action will certainly take place? What I'm trying to understand is, to what degree does the status/rank of the University (where one completes his/her Ph.D) matter while shaping his/her career after graduation? I would like to know the weight given to one's school in both the following cases:   While applying for post-docs/faculty positions in academia While applying to industrial research labs   For instance, I've read on some forums (I can't locate the link now) that while considering prospective applications for tenure-track faculty positions, very few Universities accept a candidate who has completed his/her Ph.D from a lower ranked school having a lesser "brand" value, irrespective of the fact whether he/she has published equally original work as his/her counterpart from an Ivy league college. How much truth is in this statement? It would be really great if someone already in academia, either as a newly-accepted faculty or someone on the Faculty Hiring committee could share their experiences/statistics on this regard. I'm simply interested to know the answer, without commenting at all on whether such a practice is justifiable.  Similarly, what about recruitment to internationally acclaimed research labs (like  or ) - what importance do they place on the pedigree of a candidate's college, before taking into consideration what they published ?  I'm personally interested in answers related to the field of Computer Science (theory), but the question is applicable to any prospective grad student in any discipline in my opinion. Feel free to share your personal experiences post-Ph.D in detail, as that would give me (and future viewers of this question) about what its like to carve a career once you are out of school! Is ¬¬(¬¬P → P) provable in intuitionistic logic? msbuild, defining Conditional Compilation Symbols I'm possibly just blind, but is there a command line to specify conditional compilation symbols in MSBUILD?  I currently have this Line in my buildscript:  SET MSBUILD=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe SET CONFIG=Debug %MSBUILD% /p:Configuration=%CONFIG% /p:OutputPath=..\..\output source\MyProject\MyProject.csproj   And I'd like to add a condition. In Visual Studio, i can just go into Project Properties => Build => Conditional compilation symbols, but I have not seen that option for msbuild?  Bonus Karma if you know if I can completely override all symbols already specified in the .csproj files to make sure that only the conditionals from my Buildscript go in. Is there a way to find the number of files of a specific type without having to loop through all results inn a Directory.GetFiles() or similar method? I am looking for something like this:  int ComponentCount = MagicFindFileCount(@"c:\windows\system32", "*.dll");   I know that I can make a recursive function to call Directory.GetFiles , but it would be much cleaner if I could do this without all the iterating.  EDIT: If it is not possible to do this without recursing and iterating yourself, what would be the best way to do it? Super+D key shortcut does not show desktop I recently installed Saucy Salamander on my computer. Previously in Ringtail, Super+D used to show the desktop. However for this release, the Super+D does not seem to work properly... Is it a bug?