Count specific days of week between two dates
Count days between two dates, excluding weekends (MySQL only)
Allow [tag:tag-name] syntax to link to any site The tag  and meta-tag  syntax generate much nicer looking results than merely surrounding your tag with [square brackets].    However, they only work when you're talking about the site you're on.  On Area51, in Chat, and on Meta sites, this is frequently not the case, leading to attempts at syntax like [[tag:failure]](https://superuser.com/questions/tagged/failure), which produces:    Hmm, must be some subtle syntax thing:   : [tag:failure](https://superuser.com/questions/tagged/failure) []: [[tag:failure](https://superuser.com/questions/tagged/failure)] : [tag:[failure]((https://superuser.com/questions/tagged/failure))] : &lt;a href="https://superuser.com/questions/tagged/failure"&gt;[tag:failure]&lt;/a&gt; : [tag:failure][1] \n\n [1]: https://superuser.com/questions/tagged/failure : [more text is a [tag:failure] too](https://superuser.com/questions/tagged/failure)   I give up!  How can I create a link to a tag on another site with tag markdown? Even my main monitor is shown as unknown. I have tried setting up dual monitors using Nvidia settings with no joy however it does recognize that I have 2 monitors.  This was not an issue in 11.04. My problem with the Nvidia settings appears to be that my 2 monitors require different resolutions but even when I set them to a resolution that they both can handle, it is then only appearing in cloned mode. I really hope someone can help or I will have to roll back to 11.04.  Why won't Ubuntu 11.10 recognize that I have 2 Monitors?   Here is the contents of my xorg.conf:  # nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings:  version 280.13  (buildd@rothera)  Thu Aug 11 17:28:49 UTC 2011  Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "Screen0" 0 0     InputDevice    "Keyboard0" "CoreKeyboard"     InputDevice    "Mouse0" "CorePointer"     Option         "Xinerama" "0" EndSection  Section "Files" EndSection  Section "InputDevice"     # generated from default     Identifier     "Mouse0"     Driver         "mouse"     Option         "Protocol" "auto"     Option         "Device" "/dev/psaux"     Option         "Emulate3Buttons" "no"     Option         "ZAxisMapping" "4 5" EndSection  Section "InputDevice"     # generated from default     Identifier     "Keyboard0"     Driver         "kbd" EndSection  Section "Monitor"     # HorizSync source: xconfig, VertRefresh source: xconfig     Identifier     "Monitor0"     VendorName     "Unknown"     ModelName      "CRT-0"     HorizSync       30.0 - 83.0     VertRefresh     50.0 - 76.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation"     BoardName      "GeForce 7025 / nForce 630a" EndSection  Section "Screen"     Identifier     "Screen0"     Device         "Device0"     Monitor        "Monitor0"     DefaultDepth    24     Option         "TwinView" "1"     Option         "TwinViewXineramaInfoOrder" "CRT-0"     Option         "metamodes" "CRT: 1280x1024 +1024+0, DFP: 1024x768 +0+0"     SubSection     "Display"         Depth       24     EndSubSection EndSection"   ok I have tried disper -e. Problem is that Nvidia settings appear to be treating both monitors as the same one. so changing the settings to one has no effect, but change the other and it affects both screens identically.  Results of disper -l as follows:      carter@carter-desktop:~$ disper -l display DFP-0: HP vs17  resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 680x384, 640x480, 720x450, 640x512, 800x512, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 1024x768, 1152x864, 1280x960, 1280x1024 display CRT-0: CRT-0  resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 680x384, 640x480, 720x450, 640x512, 800x512, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 1024x768, 1152x864, 1360x768, 1280x960, 1440x900, 1280x1024, 1400x1050, 1600x1024, 1680x1050, 1600x1200, 1920x1080, 1920x1200, 1792x1344 carter@carter-desktop:~$ How to lazy load images in ListView in Android I installed clang-format on Ubuntu 18.04 LTS with sudo apt install clang-format and the installation was successful. I can execute clang-format-6.0 now, but when I use ClangFormat in vim, it tells me that "clang-format is not found". How can I fix the problem? Unknown Column In Where Clause I have a simple query:  SELECT u_name AS user_name FROM users WHERE user_name = "john";   I get Unknown Column 'user_name' in where clause.  Can I not refer to 'user_name' in other parts of the statement even after select 'u_name as user_name'? I'm struggling with my lab report. I have a questionnaire which contains Likert responses (1-7) as well as questions that require only yes or no answers. I want to see if there is a correlation between higher scores on the likert scale and responses to the binary answers to the other questions.   Specifically - the likert response is about anxiety levels. The binary (yes/no) answer is about negative consequences due to alcohol use. I want to just run the one ordinal likert item with all the negative consequence responses to see if there is a relationship. Can anyone help me?     Thanks so much for the fast comments. It definitely assures me that Spearman's Rho can be used but my main problem is the fact that i am mixing binary and ordinal variables together in the one correlation matrix.  I have one ordinal variable (anxiety - 1-7 on likert scale) crossed with 13 dichotomous (0 or 1 representing yes or no) to answers ("have you ever been hospitalised due to your alcohol use?). I get statistically significant answers (&lt;.05 and &lt; .01 but the Correlation coefficients are tiny (i.e o.2) at best.   the hospitalisation is the DV an the anxiety levels the IV.   I just think i'm doing something wrong here. should i collapse the 13 binary variables in to one some how?   i can't see how SPSS will recognise the values between 1-7 when correlating with binary answers. i keep thinking it will just read that there is something in that box (ordinal) but not recognise the value (i.e 1-7) . but people keep saying that SPSS does in fact recognise this difference and account for it. I was surprised recently to find that it's possible to have a return statement in a finally block in Java.  It seems like lots of people think it's a bad thing to do as described in ''. Scratching a little deeper, I also found '' which shows some pretty horrible examples of other types of flow control in finally blocks.  So, my question is, can anyone give me an example where a return statement (or other flow control) in a finally block produces better / more readable code? Shape gets distorted when adding stroke in Illustrator CS6 I very recently started learning how to use Adobe Illustrator (CS6), and just now I noticed something strange. When I add a 1pt stroke to my shape, it gets slightly distorted. This distortion does not disappear if I remove the stroke. (But only if I remove the stroke by setting its weight to 0. Using CTRL+Z does return the shape to its former state.)  After adding and removing the stroke a few times, the difference becomes quite noticable:   Am I doing something wrong? Is it a bug? I can't imagine this being the expected behaviour.  EDIT: I think I figured it out. Appearantly, turning 'Align to pixel grid' off doesn't affect previous shapes. If I turn it off and then recreate my shape from scratch, the problem is fixed.   However, I was wondering if their is a way to disable the effect for existing shapes. In other words, can I 'fix' the shapes I created while 'Align to pixel grid' was still on? Why does light bend towards the normal when passing from a rarer to a denser medium? Whenever light rays are entering a denser medium they bend towards the normal.  Why do rays choose the path towards the normal? Why cannot they choose the path away form the normal? Excel macro to highlight all cells that match value in current cell How can I increment a date by one day in Java? Note: I am very new to the more advanced side of electricity. I do not have a firm grasp on the exact mechanics.  Lets say I have an example circuit:  5V Power Supply -&gt; LED -&gt; Resistor -&gt; Ground  Now the LED is receiving 20ma and 5V. If I were to switch the LED and the resistor however, the LED should receive less voltage but the same current, so wouldn't it be dimmer? Or would it receive the same voltage?  I've looked at these two threads and their answer doesn't help. Specific vocabulary for making someone laugh by rubbing their underarm with finger WMI object to get current sessions with client name? Set myself as owner of /etc with chown command now getting all kinds of errors I needed to edit a .config file (which I know for a fact is not creating these problems, just to clear that up) and it wouldn't let me save it, so I took ownership of /etc and all contents with the command chown -hR username /etc and that let me edit the .config file but now whenever I try to install any packages or use any sudo commands, it doesn't work  (I've checked for errors in the sudo file in sudoers.d and there was nothing wrong with that).   So how do I return it to the previous owner? I've been asked the following question:  What five odd integers from the set  $\{1, 3, 5, 7, 9, 11, 13, 15\}$ that when summed together equals to $30$? Note that any integer can be used more than once.   If my limited knowledge of maths is correct, there should be no answer, as no odd number of odd integers summed together can give an even number. I need to create file with name is the result of the command in Solaris I need to create only one file with name is the result of the command ls -l | head -2. I can't use environment variables. The filename must contain newline symbols.  I've tried to use touch 'ls -l | head -2', but it hasn't worked. For what longest possible time it was possible to hold light in a closed volume with mirrored walls?   I would be most interested for results with empty volume but results with solid-state volume may be also interesting. How can I get numbered classes on rows? I worked briefly with Drupal 7 and I thought it was possible there but in Drupal 8 is it possible to have a view output an increasing numbered CSS classes for Views rows?  This is what I want.  &lt;div class="view"&gt;   &lt;div class="view-row-1"&gt;&lt;/div&gt;   &lt;div class="view-row-2"&gt;&lt;/div&gt;   &lt;div class="view-row-3"&gt;&lt;/div&gt;   &lt;div class="view-row-4"&gt;&lt;/div&gt; &lt;/div&gt;   I know I can add a CSS class to every row and give every row the same class. Is there a cryptographic algorithm which is immune to side channel attacks? Is there any cryptographic algorithm immune to side channel attacks based on scan chain? In VLSI point of view.