assume that I have a long variable and I want to set 1 or zero for specific bits during my code what is the best way using function or defining Thanks
How do you set, clear, and toggle a bit?
Can we have a list of all the Stack Exchange domains somewhere, for firewall purposes? I work behind an really annoying firewall, and I just want the net admin to add all the SE websites to the whitelist. Right now I've lost access to Stack Overflow's authentication, but not Meta's... so I have to come here before I log in there.  It's driving me nuts. Basically I just want to add an exclusion rule for all SE domains; not only the website domains, but also the content domains such as gravatar.com, quantserve.com, the domain that holds static content, etc... For one of the clients, I have spin up a modern communication site collection and on the landing page of the same, I am seeing 'Get the mobile app' showing up, I was able to hide the 'feedback' button using css but no luck with Get the mobile app button.  Can someone please share css to hide 'get mobile app' button, appreciate the help. My friend, John, and I went shopping.    My friend John and I went shopping.       I believe we need to wrap our friend's name in commas (first sentence example), but wouldn't that make it three people? When looking at a PDF document I often want to zoom-out to scroll quickly to its contents and get an overview.  However, when I zoom-out past a certain threshold (it seems to differ per PDF) Safari thinks I want to see the tab overview:    I have never found a use for this function, so it only causes annoyance.  Can I turn this tab overview off somehow? A solution that uncouples the pinch-to-zoom gesture from the functionality would also work.  I'm on Mountain Lion 10.8.5 with Safari 6.1.3. Why were the people of Rhun and Harad allied with Sauron?  Did they join him out of fear, or did Sauron say he would give them something if they joined him?  I know the men of Dunland were angry at Rohan; did Rhun and Harad have something against Gondor? A high school Olympiad problem Is Autopilot Openstack 16.04 available? Is $D_n$, the dihedral group of order $2n$, isomorphic to a subgroup of $S_n$ ( symmetric group of $n$ letters) for all $n&gt;2$? Ignore folders/files when Directory.GetFiles() is denied access I am trying to display a list of all files found in the selected directory (and optionally any subdirectories). The problem I am having is that when the GetFiles() method comes across a folder that it cannot access, it throws an exception and the process stops.  How do I ignore this exception (and ignore the protected folder/file) and continue adding accessible files to the list?  try {     if (cbSubFolders.Checked == false)     {         string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath);         foreach (string fileName in files)             ProcessFile(fileName);     }     else     {         string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath, "*.*", SearchOption.AllDirectories);         foreach (string fileName in files)             ProcessFile(fileName);     }     lblNumberOfFilesDisplay.Enabled = true; } catch (UnauthorizedAccessException) { } finally {} How to unzip a zip file from the Terminal? How to compare the strings using < (Greater than symbol) Below is my input file:  PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.177, 2 PS Sensor Value = -5.501000 , Min = -5.583000 , Max = -5.319000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.210, 3 PS Sensor Value = 15.996000 , Min = 15.814000 , Max = 16.078000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.231, 4 PS Sensor Value = -16.505000 , Min = -16.587000 , Max = -16.323000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.263, 5 PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:16:46.523.302, 6 PS Sensor Value = 4.002000 , Min = 3.820000 , Max = 4.084000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.481.557, 1 PS Sensor Value = 6.199000 , Min = 6.017000 , Max = 6.281000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.518.691, 2 PS Sensor Value = -5.503000 , Min = -5.585000 , Max = -5.321000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.156, 3 PS Sensor Value = 15.996000 , Min = 15.814000 , Max = 16.078000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.195, 4 PS Sensor Value = -16.505000 , Min = -16.587000 , Max = -16.323000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.221, 5 PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:17:46.523.240, 6 PS Sensor Value = 4.002000 , Min = 3.820000 , Max = 4.084000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.480.644, 1 PS Sensor Value = 6.199000 , Min = 6.017000 , Max = 6.281000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.615, 2 PS Sensor Value = -5.501000 , Min = -5.583000 , Max = -5.319000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.729, 3 PS Sensor Value = 15.996000 , Min = 15.814000 , Max = 16.078000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.765, 4 PS Sensor Value = -16.505000 , Min = -16.587000 , Max = -16.323000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.788, 5 PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2,1,3,/vobs/atlas-idc/src/utils/logger/IDCLogger/IDC.cpp,48,19:18:46.522.810, 6 PS Sensor Value = 4.002000 , Min = 3.820000 , Max = 4.084000   I need to compare the PS Sensor Value, Min and Max value. (Min greater than PS Sensor greater than Max)   I'm expecting the output like below and here I should have only the normal lines.  What is normal lines? :  If Min value greater than PS Sensor value &amp;&amp; PS Sensor value  is greater than Max value then the line is normal lines and that should removed.        Expected Output:                                                                                                                                    PA43410-2  PS Sensor Value = 6.509000 , Min = 6.327000 , Max = 6.591000 PA43410-2 PS Sensor Value = 6.199000 , Min = 6.017000 , Max = 6.281000  Eg:     If   Min &lt; PS sensor value &lt; Max,    // Don’t care the normal  lines.          Throw this line away.    Else           Pull this line to consolidated new file. //Only focus on abnormal lines. How does Meta Stack Exchange work? Meta Stack Exchange seems to have different rules and user behavior than the "regular" Stack Exchange sites.  How is it different?    Individual questions answered below:                Related Is there always an equilibrium point in space for gravity? For instance, for a two-body system, there will always be a point in-between the two in which the forces of gravity completely cancel, and if I were there then I would experience no net force. I believe there is also a point, or a region, for three body systems as well. Assuming we treat the stars or planets as simply point-masses, will there always be, for any number of objects, a point, or a region, of equilibrium? Or no? How can angular velocity be constant even when there is a torque by friction? A cylinder at rest lying on a rough ground is given an impulse which imparts a translational velocity (no angular velocity) to it. The question goes ahead with finding time after which rolling starts etc. etc.  But I have another question: The friction from the ground will decrease the translational velocity but increase the angular velocity (as the torque of friction will be in the direction of rolling). After some time, the translational velocity will become equal to angular velocity and hence pure rolling will start.  After this time work done by friction will be 0 as the point of contact is not moving and hence translational velocity will be constant. Now my doubt is that, when translational velocity is constant, it implies angular velocity will also be constant (as translational velocity is a multiple of angular velocity). But the torque from friction (about the centre of mass) will not be zero which means angular velocity will not be constant. In some book where there was the same problem it was written friction will vanish. How can friction vanish? How can anguluar velocity be constant even when there is a torque by friction? Double-blind review with four references in a row? I've read a lot of answers here about double-blind reviews and thesis or single articles.  My problem comes from having four self-references in my article. I feel that if I include them all, could be very easy to infer that this is the fifth one (It's a 4-year granted project and I have been collaborating in a number of software components inside a bigger architecture, now it's the time to use them all to interact with other applications) . But if I ommit some of them, I could end being accused of self-plagiarism. The other articles have been published in the proceedings of conferences that didn't require double-blind reviews, this is the first submission I make to a conference that asks for it (Maybe because of being CORE A) Also not worthless to mention that I'm going to send it as a short paper, so actually it'd be very helpful to cite rather than to repeat past texts.  What should I do? Prevent applications from opening browser Is there a free application out there that will intercept requests from applications to open a URL and prompt me as to whether or not I want the URL to be opened? (For instance, after Adobe Reader installs, it opens its website to get feedback about the install process.)  Ideally, it would be lightweight software for just this task, but if a larger firewall/security app provides this feature, that would be acceptable.  I'm using windows 7 32-bit.  As stating in a comment below, the idea is that you don't want the browser to open (assume it's not already running), so an extension (e.g. for Chrome, ffox) wouldn't be relevant. Does C# have an equivalent to JavaScript's encodeURIComponent()? In JavaScript:  encodeURIComponent("©√") == "%C2%A9%E2%88%9A"   Is there an equivalent for C# applications? For escaping HTML characters I used:  txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]",     m =&gt; @"&amp;#" + ((int)m.Value[0]).ToString() + ";");   But I'm not sure how to convert the match to the correct hexadecimal format that JS uses. For example this code:  txtOut.Text = Regex.Replace(txtIn.Text, @"[\u0080-\uFFFF]",     m =&gt; @"%" + String.Format("{0:x}", ((int)m.Value[0])));   Returns "%a9%221a" for "©√" instead of "%C2%A9%E2%88%9A". It looks like I need to split the string up into bytes or something.  Edit: This is for a windows app, the only items available in System.Web are: AspNetHostingPermission, AspNetHostingPermissionAttribute, and AspNetHostingPermissionLevel. How to display Trash and Home folder icons? I've googled quite a bit but nothing I've found works. I just want to display the Trash, Home folder, Computer etc icons on my Desktop in Ubuntu.  The closest I've come is installing dconf-tools, running it, going to org -&gt; gnome -&gt; desktop -&gt; background and checking show-desktop-icons then org -&gt; gnome -&gt; nautilus -&gt; desktop and checking the icons I want to show.  Nothing happens.  I've also tried looking in compizconfig-settings-manager and gconf-editor but can't find anything there.  Ideas? Converting ArcGIS (*.mxd) file to QGIS (*.qgs) file? How do I render nodes, now that node_view() has been deprecated? In Drupal 7 I frequently use node_view() for rendering nodes (using view modes) in blocks or pages as follows:  $nids = array(123,456,789); $nodes = node_load_multiple($nids); foreach ($nodes as $node) {   $node_view = node_view($node, 'teaser');   $output .= drupal_render($node_view); } $build['nodes']['#markup'] = $output; return $build;   node_view()/entity_view() has been deprecated and replaced by a view builder as explained in change record . The information is not detailed enough for me to be able to figure out how to achieve the same result.  How can you render nodes in Drupal 8 so that the output can be used in the render array of a block or page?