I want to use sed to change a slash into a backslash and a slash, i.e. / -> \/. But it does not work. Here a small example:  #!/bin/bash TEST=/etc/hallo echo $TEST echo $TEST | sed "s/hallo/bello/g" echo $TEST | sed "s/\//\\\//g"   The output of the first three lines is as assumed. But the last one does not work. Why? How to correct the last part?

Take the following script:  #!/bin/sh sed 's/(127\.0\.1\.1)\s/\1/' [some file]   If I try to run this in sh (dash here), it'll fail because of the parentheses, which need to be escaped. But I don't need to escape the backslashes themselves (between the octets, or in the \s or \1). What's the rule here? What about when I need to use {...} or [...]? Is there a list of what I do and don't need to escape?


I need to change the background color of a PNG to a specific color. The background of the lable renders black and I want so set the color by my own.  How can I do it within the node editor?    Here's the PNG and the nodes:      Thanks!

I have added the png transparent image with the setting and its not showing transparent black background is seen. I have the base color aluminum and i want to add that logo of png on to it. The image is black letter with transparent background why its showing in white letters and black background. May i know where im going wrong any suggestion or help.


Suppose $f$ is a periodic function of period $T$ and $g$ is integrable on $[a,b]$. How do I prove that $$\lim_{t\to\infty} \int_a^b f(tx)g(x) \, dx = \frac 1 T \int_0^T f(x) \, dx \int_a^b g(x)\,dx $$  The problem didn't indicate that $f$ is continuous.

Let $f:[0,1] \longrightarrow \mathbb R$ be a continuous function, and let $g:\mathbb R \longrightarrow \mathbb R$ be a continuous and periodic function with period $1$. Prove that   $\displaystyle\lim_{n\to \infty}\int_0^1f(x)g(nx)dx=\left(\int_0^1f(x)dx\right)\left(\int_0^1g(x)dx\right)$.  any Ideas?


I've setup ssl certificate on my domain on 19th of February and redirected all pages to https version with 301 redirect code. From that day all of my indexed http pages are disappearing from results and no https alternative are shown instead of them. It appears that google is indexing my website as a new website and the pages are not ranked in the search engine.   When I search for my site, about 24500 pages are indexed in google but as I said none of them are shown in the search results.  What is the problem, and how can I fix it? Indeed I set up 301 redirect for all pages, none of https version of pages are replacing http version.  I've checked this question "" but the problem in this question is different from my site. In my case all of my https pages lost their rankings almost immediately.

About a week ago I made the switch to https on one of my sites. I'm positive I did everything right. Properly setup 301 redirects from http to https versions. Added and verified https version in Webmaster Tools. Updated all internal links. Submitted new sitemap.  Despite that, many of my pages (about 40%) lost their rankings almost immediately. Those that dropped went from page 1 to nowhere. I can still see them indexed if I search for the URL, but otherwise it's like Google doesn't know they exist.  SSL Labs shows an "A" when I run their test and I have no manual actions showing in Webmaster Tools.  This is really frustrating. I don't actually need SSL, but Google finally scared me into it. Now I'm regretting the switch and contemplating going back to non-secured URLs.  Anything else I could have missed?


I have a text file on a Linux system, and would like to remove every second line, which is "even" numbered. Example: I would like to remove the second line of the file, the fourth, sixth, eighth line, and so on, until you complete filtering of the file completely.  file.txt  86850343 88065952 89381968 89536251 89714939 89826424 90124775 90672109 91408453 92438737   I would like this output:  86850343 89381968 89714939 90124775 91408453

I want to print the odd-numbered and even-numbered lines from files.  I found this shell script which makes use of echo.  #!/bin/bash # Write a shell script that, given a file name as the argument will write # the even numbered line to a file with name evenfile and odd numbered lines # in a text file called oddfile. # ------------------------------------------------------------------------- # Copyright (c) 2001 nixCraft project <http://cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ------------------------------------------------------------------------- # This script is part of nixCraft shell script collection (NSSC) # Visit http://bash.cyberciti.biz/ for more information. # -------------------------------------------------------------------------  file=$1 counter=0  eout="evenfile.$$" # even file name oout="oddfile.$$" # odd file name  if [ $# -eq 0 ] then     echo "$(basename $0) file"     exit 1 fi  if [ ! -f $file ] then     echo "$file not a file"     exit 2 fi  while read line do     # find out odd or even line number     isEvenNo=$( expr $counter % 2 )      if [ $isEvenNo -ne 0 ]     then         # even match         echo $line >> $eout     else         # odd match         echo $line >> $oout     fi     # increase counter by 1     (( counter ++ )) done < $file echo "Even file - $eout" echo "Odd file - $oout"   But isn't there a way to do it in one line?  Yes, use awk, I read.  Even-numbered lines:  awk 'NR % 2' filename   odd-numbered lines:  awk 'NR % 2 == 1' filename   But it doesn't work for me. Both produce the same output, according to diff. When compared to the original file, they are both indeed half as long, and they both contain the odd-numbered lines. Am I doing something wrong?


This is a simple code I wrote in Python for telling if the input is odd or even. It is also probably redundant in some parts(I was just trying so that the program doesn't crash for any input). try:     num = input("Please,\nenter your integer to check if it's odd or even: ")     rem = float(num) % 2     if rem == 0:         print("Your number", int(num), "belongs to the set of even integers!")     elif rem == 1:         print("Your number", int(num), "belongs to the set of odd integers!")     else:         print("Your number", num, "does not belong to the set of integers!") except ValueError:     print("Your input does not belong to the set of integers!")  Such a simple operation gives a wrong result for a 17 digit number. For example Please, enter your integer to check if it's odd or even: 49761934591459137 Your number 49761934591459137 belongs to the set of even integers!  Why is this happening, when python can even perform tetration(repeated exponentiation) of 2 upto 5 times(which is a 19,729 digit number)?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I am hoping to get some insights on how to work with a function on Python. I had a working version of the script that is not great so I tried defining this function that I will use on a different file: def controlfiles():     domain = f'domain'     if os.path.exists(domain):         with open(domain, 'r') as df:             domainoutput = df.readline()     else:             print("Could not load domain control file")             exit()  etc, etc. I open a couple more files and at the end I use: values = [domainoutput, serveroutput, fflavoroutput, toflavoroutput, whooutput, date] worksheet.append_row(values)  But I get: values = [domainoutput, serveroutput, fflavoroutput, toflavoroutput, whooutput, date] NameError: name 'domainoutput' is not defined  I am a total beginner at Python but I read that with open(file) was better than file=open() Besides that I am trying to get the server time + 7 days in RF3339 to set up a Google Calendar Event, so far I have: rtime = datetime.datetime.utcnow() rtformatted = rtime.isoformat("T") + "Z"  Which works for the current time but not for 7 days in the future. I tried deltatime but could not get the right format. Any help is appreciated.

What exactly are the Python scoping rules?  If I have some code:  code1 class Foo:    code2    def spam.....       code3       for code4..:        code5        x()   Where is x found?  Some possible choices include the list below:   In the enclosing source file In the class namespace In the function definition In the for loop index variable Inside the for loop   Also there is the context during execution, when the function spam is passed somewhere else. And maybe  pass a bit differently?  There must be a simple reference or algorithm somewhere.  It's a confusing world for intermediate Python programmers.


The main big hotel search websites I know:    list many "hotels" which also sell single beds in dorm rooms. Try searching for London for 1 person, and sort by price, you'll see that the cheapest offers are mostly single beds in shared dorm rooms. Its impossible to find the cheapest offer for the whole private room without examining each offer manually.   You could filter out "hostel" style properties, but that misses out on many facilities branding as "hostels" but having cheap private rooms, so its not an ideal solution. And on Booking.com even that won't work, as it still leaves many which brand themselves there as a "hotel", but have shared dorm rooms, and prices are shown for a bed in such a dorm room, and not a whole private room.  Is there really not a website which has cheap hotels (regardless of if they call themselves a "hotel" or a "hostel", as often this division is blurry and arbitrary, and doesn't specify what type of rooms the facility has), and sorts the the price of the cheapest whole private room?   The website should list most hotels, and not only hostels - websites like hostels.com hostelz.com hostelsclub.com hostelbookers.com hostelworld.com gomio.com filter by private rooms, but they don't show most real hotels (many of which have sometimes quite cheap offers), only hostels. These hostel websites list only max. 100-300 properties in London, while Booking.com has 2359 and Hotels.com has 1614, so a website listing hotels should have at least a thousand in London, as opposed to only 300 hostels.

I tried the standard tools like  or , but there the cheapest option is always a bed in a dormitory. In particular I was searching for Amsterdam and the first few pages of results (sorted by price ascending) were full of dorms, making the tools useless in practice. How can I efficiently filter on the fact that I want a private room (for whatever number of people I enter)?


I've been looking for a solution for the past 1 day over the internet but no luck. I am really new to the linux. The built in wifi is not working but when i plug in a usb wifi adapter it works. Here the output of the command lshw -c network.  *-network UNCLAIMED               description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0    resources: ioport:1000(size=256) memory:a1100000-a110ffff   The built in wifi adapter and for some reason it just won't work. I've tried installing 3 different linux distros. Please help.

I have recently a purchased Lenovo Thinkpad E480 laptop, I have installed Ubuntu 18.04 on it, everything is working fine except am not able to connect to network via WiFi. Please help.  I followed this , but am unable to solve the issue.  Below are the outputs of some commands.  lsb_release -a  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.1 LTS Release:    18.04 Codename:   bionic   uname -r  4.15.0-33-generic   rfkill list all  0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   lspci -nnk | grep 0280 -A3  05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024] 06:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8621] (rev 01)     Subsystem: Lenovo SD/MMC Card Reader Controller [17aa:5068]   sudo lshw -C network   *-network                         description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 10        serial: 8c:16:45:a3:d9:f1        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.2.2 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:16 ioport:d000(size=256) memory:f1204000-f1204fff memory:f1200000-f1203fff   *-network UNCLAIMED        description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:05:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:c000(size=256) memory:f1100000-f110ffff   It seems I have to clone, compile and install the required WiFi driver, please guide me which WiFi driver to use and how to install (with steps if possible).  P.S.: Let me know if any further information is needed to solve this issue, I will add the required info (if any) in the question as per the guidance given.


I have this mysql ddl Create Temporary Table #empData (     workDate varchar(100)   ,numOfCustomers int   ,numOfSales int   ,avgTimeToGreetCustomer varchar(100) );   Insert Into #empData Values ('07/01/20', 16, 16, '00:12') ,('07/02/20', 6, 6, '00:07') ,('07/03/20', 9, 4, '00:18')  Select * from #empData  DROP TABLE #empData  Now what that DDL I need to create a query that will display the data like this                  07/01/20 --- 07/02/20 --- 07/03/20  numCustomers     16                  6                     9  numSales             16                  6                     4  AvgGreet               00:12             00:07              00:18


i am trying to build datatable where I want to show Product Name as url so that User can go that particular record   JS where i am making my name field as URL    {         let nameUrl;      this.showSpinner = false;      this.allProducts = result.map(row =>{      nameUrl = `/${row.Id}`;      return {...row,nameUrl}   });   Now when I am trying to sort "nameUrl" in my datatable the sort direction stays "asc" and doesn't change to "desc" even after clicking multiple time. I am not able to understand why this is happening. When i am using the same sort function for any other field it works perfectly fine. Can anyone let me know where i am wrong and how i can rectify the same  JS file for my Data Table   export default class SearchProductDataTable extends LightningElement { @api products; @track sortBy; @track sortDirection; @track allProducts; @track prodNameObject = []; cols = columns;   handleSortdata(event){      let sortbyField= event.detail.fieldName;     if(sortbyField ==='nameUrl'){         this.sortBy = 'Name';      } else{         this.sortBy = sortbyField;      }     this.sortDirection = event.detail.sortDirection;     console.log('This is the sort direction ',this.sortDirection);     //Console Log : When nameUrl field is clicked Sort Direction is always 'asc'     this.sortData(this.sortBy, this.sortDirection); }  sortData(fieldName, sortDirection){     let data =  [...this.products];     console.log('This is the sort value of nameurl ',fieldName);     //function to return the value stored in the field     let key =(a) => a[fieldName];      //console.log('This is key value ',key);     let reverse = sortDirection === 'asc' ? 1: -1;     data.sort((a,b) => {         let valueA = key(a) ? key(a).toLowerCase() : '';         let valueB = key(b) ? key(b).toLowerCase() : '';         console.log('This is Value A',valueA);         console.log('This is Value B',valueB);         let vale = (valueA > valueB) - (valueB > valueA);         console.log('This is Vale ',vale);         console.log('This is the value of reverse',reverse);         return reverse * ((valueA > valueB) - (valueB > valueA));     });     this.products = data;  }  get showTable(){     if(this.products.length > 0){         return true;     } else {         return false;     }  }   Data Table Columns :  const columns = [ {     label:'Prd Record Link',     fieldName:'nameUrl',     type:'url',     typeAttributes: {label: { fieldName: 'Name' },                      target: '_blank'},     sortable: true,     wrapText: true }, {     label: 'Product Name',     fieldName:'Name',     type:'text',     sortable:true,     wrapText: true }, {     label: 'Product Code',     fieldName:'ProductCode',     type:'text',     sortable:true,     wrapText: true }, {     label:'Eng Status',     fieldName:'Eng_Status__c',     type:'text',     hideDefaultActions:true }, {     label:'Quotable',     fieldName:'Quotable__c',     type:'text',     hideDefaultActions:true }, {     label:'Quoting Rules',     fieldName:'Quoting_Rules__c',     type:'text',     hideDefaultActions:true }, {     label:'USD Price',     fieldName:'USD_Price__c',     type:'currency',     typeAttributes:{currencyCode: 'USD'},     hideDefaultActions:true }, {     label:'AUD Price',     fieldName:'AUD_Price__c',     type:'currency',     typeAttributes:{currencyCode: 'AUD'},     hideDefaultActions:true }, {     label:'CAD Price',     fieldName:'CAD_Price__c',     type:'currency',     typeAttributes:{currencyCode: 'CAD'},     hideDefaultActions:true }, {     label:'China Price',     fieldName:'China_Price__c',     type:'currency',     typeAttributes:{currencyCode: 'CNY'},     hideDefaultActions:true }, {     label:'EUR Price',     fieldName:'EUR_Price__c',     type:'currency',     typeAttributes:{currencyCode: 'EUR'},     hideDefaultActions:true }, {     label:'GBP Price',     fieldName:'GBP_Price__c',     type:'currency',     typeAttributes:{currencyCode: 'GBP'},     hideDefaultActions:true }];

I'm trying to implement the sorting functionality on a lightning:datatable. Sorting works one way (descending, clicking the column header again and nothing happens). I have followed the documentation and here's my code below:  <aura:attribute name="selectedAccountId" type="Id" access="public" /> <aura:attribute name="accounts" type="Object"/> <aura:attribute name="mycolumns" type="List"/> <aura:handler name="init" value="{! this }" action="{! c.doInit }"/>  <aura:registerEvent name="AccountFilterChange" type="c:AccountFilterChange" />   <lightning:datatable aura:id="lightningTable"                      data="{! v.accounts }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowaction="{! c.handleRowAction }"                      onsort="{!c.updateColumnSorting}"                      hideCheckboxColumn="true" />   Controller:  doInit: function(component, event, helper) {    helper.callServer(component, "c.getAccounts", function(response) {        component.set("v.accounts", response);        })     component.set('v.mycolumns', [         {type: "button", typeAttributes: {             label: '',             iconName: 'utility:add',             name: 'selectRecord',             title: 'selectRecord',             disabled: false,             value: 'edit',             variant: {fieldName: 'variantValue'},         }},         {label: 'Name', fieldName: 'Name', type: 'text', sortable: true},             ]);         },  handleRowAction: function(component, event, helper) {     var account = event.getParam("row")     var action = event.getParam("action");     if (action.name == "selectRecord") {         var event = component.getEvent("AccountFilterChange");          event.setParams({             accountId: account.Id,         });     }  event.fire();  helper.addRow(component, account); },  updateColumnSorting: function(component, event, helper) {     var fieldName = event.getParam('fieldName');     var sortDirection = event.getParam('sortDirection');     // assign the latest attribute with the sorted column fieldName and sorted direction     component.set("v.sortedBy", fieldName);     component.set("v.sortedDirection", sortDirection);     helper.sortData(component, fieldName, sortDirection);     }   Helper:  sortData: function (component, fieldName, sortDirection) {      var data = component.get("v.accounts");      var reverse = sortDirection !== 'asc';      //sorts the rows based on the column header that's clicked      data.sort(this.sortBy(fieldName, reverse))      component.set("v.accounts", data);      },  sortBy: function (field, reverse, primer) {      var key = primer ? function(x) {return primer(x[field])} : function(x) {return x[field]};      //checks if the two rows should switch places      reverse = !reverse ? 1 : -1;      return function (a, b) {          return a = key(a), b = key(b), reverse * ((a > b) - (b > a));      }  }   How would I make this work so both desc/asc will work when clicking the column header?


Prove:  $$ 1+\left( 1-\frac{x}{n}\right)+...+\left(1-\frac{x}{n}\right)^{n-1}=\frac{n}{x}\left(1-\left(1-\frac{x}{n}\right)^n\right)$$  The first part could be rewritten as a series such as:   $$\sum_{n=0}^{n-1}\left(1-\frac{x}{n}\right)^n$$  Maybe it could be transform into a Taylor series, but I just don't know where to start.


I've managed to get my animation to a point where it works properly, now I'm trying to render it. When I go to render, or even to the Camera View in the 3D view, the scene is clipped and none of my objects are visible! I've tried altering the camera's "Clip Start" and "Clip End" values, doing so had no effect.  My scene in the 3D view:   The same scene, from the same perspective, in Camera view:   How do I get it to render correctly, even from the Camera View perspective?  Edit: .blend file available at

I have created a simple model here   When rendering it the end of it is cut off   How can I get the camera to render a longer distance?


I want to type special characters such as □ and ■. The problem is, these aren't on my keyboard. What do I do to type them?  It is understood to press Ctrl + Shift + U, but isn't done to press 25a1 after. I used my left hand to press Ctrl + Shift and right hand to press U. I can't proceed further.

A bit silly, but I can't type this character ಠ, on ubuntu.  Some page say it should be this way  Ctrl+Shift type u0CA0   But it doesnt do anything. Even I find a shortcut for sublime that I didn't know that exist before try this.


I have a mid 2011 iMac, version 10.13.6 with a thunderbolt port. My work recently gave me a 2019 Macbook Pro with a thunderbolt 3 port. Is it possible to use the iMac as an external monitor? If so, what kind of cable(s) would I need? My work also supplied my with a  but not sure if that will help with this or not. Thanks very much!

I have a Surface Pro 4 and an iMac (late 2019). I would like to connect my Surface Pro to the iMac to use the iMac screen as a second monitor.  Is that possible?  What are the requirements to use an iMac as a second screen?


after ajax call and appending data my onclick function isn't working. and also it wont give any error too its just not clickable anymore here is my code AJAX Code:  function get_uni()  { loc_name = document.getElementById('location_name').value; loc_id = document.getElementById('location_id').value;   console.log(loc_name);    jQuery.ajax({      type : "post",      dataType : "json",      url : '<?php echo admin_url("admin-ajax.php"); ?>',      data : {action: "uni_locations", loc_name : loc_name , loc_id : loc_id },      success: function(response) {         if(response.type == "success") {           console.log(response.data);           jQuery('#myList_uni').empty();           jQuery('#myList_uni').append(response.data);         }         else {             console.log(response.error);         }      }   })   }  AJAX Action logic $html = "";  $location_id = $_POST['loc_id'];  $serialize_location =  serialize($location_id); $args = array(      'post_type' => 'universities',      'posts_per_page' => -1,          );  $query = new WP_Query($args);  if ($query->have_posts() ) :      while ( $query->have_posts() ) : $query->the_post();           $html.='
                          '.get_the_title() .'
';   endwhile;  wp_reset_postdata();  endif;            $result['type'] = "success"; $result['data'] = $html; $result['error'] = "error";  onclick jquery $('.field-detination_uni').each(function () {     var parent = $(this);      var dropdown_menu = $('.dropdown-menu', parent);     //console.log(parent);     $('li ', dropdown_menu).on('click', function () {         console.log('cde');         $('.destination', parent).text($(this).find('span').text());        //my_nav         $('.val_in_uni').val($(this).find('span').text());         $('input[name="uni_location_name"]', parent).val($(this).find('span').text());         $('input[name="uni_location_id"]', parent).val($(this).data('value'));         if (window.matchMedia('(max-width: 767px)').matches) {             $('label', parent).hide();             $('.render', parent).show();         }         dropdown_menu.slideUp(50);     }); });  kindly tell me what i am missing .. after appending data onclick not working on li. but before appending li onclick working alright. thanks in advance

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


In the spell description of Leomund's Tiny Hut it says:      All other creatures and objects are barred from passing through it.   What counts as an object? Because isn't everything technically an object according to the laws of physics? So wouldn't that mean that water and gasses can't enter it, correct? Or some sort of weather implement?

In the PHB, on page 193, the Use an Object action is described:     Use an Object      You normally interact with an object while doing something else, such as when you draw a sword as part of an attack. When an object requires your action for its use, you take the Use an Object action. This action is also useful when you want to interact with more than one object on your turn   But what exactly is considered an object?  More specifically:  Is an arrow an object? Are weapons, armors, and shields objects?


I am dba responsible for  several sql boxes running sql2008 standard on Windows 2008r2 datacentre Servers. Every now and again I see a spike in cpu which coincides with the event "The WinHTTP Web Proxy Auto-Discovery Service service entered the running state' and we see a brief degradation in performance, sometimes we briefly loose connectivity with the server. In order to disable this service what will I need to verify before doing so ? I am pretty sure we dont use proxys so is this an indication I can just disable it?

I noticed that this service starts and stops regularly seeking for proxies,  but in the service description says that it implements the HTTP client stack.  Is it used for something more than proxy autodiscover? Will I break something by disabling it?


I'm using BASH, and I don't know how to find a substring. It keeps failing, I've got a string (should this be an array?)  Below, LIST is a string list of database names, SOURCE is the reply, one of those databases. The following still doesn't work:  echo "******************************************************************" echo "*                  DB2 Offline Backup Script                     *" echo "******************************************************************" echo "What's the name of of the  database you would like to backup?" echo "It will be named one in this list:" echo "" LIST=`db2 list database directory | grep "Database alias" | awk '{print $4}'` echo $LIST echo "" echo "******************************************************************" echo -n ">>> " read -e SOURCE  if expr match "$LIST" "$SOURCE"; then     echo "match"     exit -1 else     echo "no match" fi exit -1   I've also tried this but doesn't work:  if [ `expr match "$LIST" '$SOURCE'` ]; then

I have a string in Bash: string="My string"  How can I test if it contains another string? if [ $string ?? 'foo' ]; then   echo "It's there!" fi  Where ?? is my unknown operator. Do I use echo and grep? if echo "$string" | grep 'foo'; then   echo "It's there!" fi  That looks a bit clumsy.


I'm going to propose a thought experiment, based on two ideas.  One: A uniform spherical shell, by the , does not exert any gravitational force on objects existing in the interior of the shell.  Two: A black hole, created by matter dense enough to lie within its , is inescapable, even by light.  Suppose (don't ask how) we create a uniform spherical shell composed entirely of matter dense enough to form a black hole, such that we have a continuous event horizon that appears as two concentric spherical regions. One can think of this as a spherical shell with an infinite number of infinitesimally sized black holes (at least, from a macroscopic point of view, to avoid Pauli's Exclusion Principle), or simply with a very large mass density across the surface (which is allowed thickness in the radial direction, to remain a three-dimensional construct). The overlapping event horizons make this system appear as a single black hole from the outside. Obviously, this system is unstable, and will collapse into a messy crunch fairly quickly, but before it does, its properties seem contradictory.  So, what happens on the inside? This question should probably be addressed for completely overlapping interior event horizons (such that no region inside the shell sits outside of the collective event horizon, and all of the black hole "cores" sit inside of the event horizon of every other black hole), and for some space existing between the event horizons of black holes on opposite sides of the shell, so that an event horizon free region exists within the shell. Will objects on the inside feel the effects of the gravitational force, or will it be a happy island of no external gravity (that is, simply flat space)? Does the answer vary based on what major theory is used to address it?

I was just reading a . It was a trivial question, obviously there is no force felt. But then it got me thinking.  Suppose you had a hollow sphere that was massive enough that outside of it, it became a black hole. It's not hard to imagine a situation where the magnitude of the force of gravity at the surface (while strong) is equal to the magnitude of the force on the particles of the sphere due to some phenomenon involving one of the other 3 forces (just so I can allow this hollow sphere to continue being hollow).  Obviously, I don't have to do the integral to know that any object inside the hollow would experience no net gravitational force due to the shell. However, being a few months short of General Relativity, I am curious to know whether there would be any effects from Gravity observed.  Would an observer inside experience any time dilation? There may not be any net force due to gravity, but one cannot deny that there are still some fairly powerful gravitational fields present that happen to superimpose to zero. Furthermore, (assuming a relatively massless observer) would they have access to any of the information that was "lost" in the black hole? If so, then if they were long-lived enough for the black hole to be able to evaporate around them, does this mean that not only would the black hole radiate that information, but it would also store a copy of it in the hollow?  I want to apologize in advance. I know this question seems a bit more like a discussion than a Q&A thing.  To be clear, I am asking: In my scenario, would there be any effects of gravity on things in the hollow? And would information lost in the black hole be accessible to the hollow (which is essentially its own isolated bubble of the universe)? A good answer can address these two questions. If you want to add in your own opinions/contribute to a discussion about it, that'd be a bonus.


I am looking for the syntax of the $d$ with the apostrophe, as in the picture.   I tried at  but wouldn't find.  Any suggestions?

In math mode one can do $\hbar$, which produces an h with a little line through the top of it. I want to do the same thing, except with the letter d instead. Is there a generalization of $\hbar$ that works for other letters besides just h?


Reading the Wikipedia article on the topic, when you have a defective matrix that lacks a full rank eigenspace, you can form 'generalised eigenvectors' by looking at the equation $(A - \lambda I)v = v_\lambda$, where $v_\lambda$ denotes a true eigenvector and $v$ a generalised one (corresponding to the same eigenvalue).  Opening up the expression, we're looking for a vector that maps to a multiple of itself plus the true eigenvector, ie. $Av = \lambda v + v_\lambda$, which makes some sense when considering an action like a shear transformation, but it's a little hazy.  My questions are: why is this a good definition for these generalised vectors, and why exactly does it guarantee linear independence? If we have, say, n different eigenvalues with certain algebraic multiplicities, what guarantees that their respective generalised vectors do not overlap? Is it something to do with the way the nullspace maps these things?

An ordinary eigenvector can be viewed as a vector on which the operator acts by only stretching (without rotating) it.  Is there a similar intuition behind generalized eigenvectors?  EDIT: By generalized eigenvectors I'm referring to vectors in the kernel of $(T-\lambda I)^k$ for some $k$.


i was coding a program for school in Java with Eclipse and i got a problem with the output, the code is the following:   public class Main {     public static boolean[] cercaK(int k , String[] a){         boolean b[] = new boolean[a.length];         int conta = 0;         for(int i = 0; i < a.length; i++){             b[i] = false;             int j = 0;             while(j < a[i].length()-1 && !b[i]){                     if(a[i].charAt(j)==a[i].charAt(j+1))                         conta++;                     else                         conta = 0;                     if (conta == k)                         b[i] = true;                     j++;             }         }         return b;     }     public static void main(String[] args) {         String[] a = {"accesso","bbtcrryy","ggg"};         int k = 2;         if (k<=0)             System.out.println("Errore!");          boolean[] b = cercaK(k,a);          for(int i = 0; i < b.length; i++)             System.out.print(b);     } }   And the output is really strange:  [Z@106d69c[Z@106d69c[Z@106d69c   I can't understand from where these strings come from. Can anyone please help me? Thanks!  EDIT: I found the error,  for(int i = 0; i < b.length; i++)             System.out.print(b[i]);

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


How do you disable Microsoft Edge in my Packard Bell EasyNote JE69KB?  It is constantly sending pop up videos and games even though it is not my default browser.  I want to disable it if possible.

Is there any possibility to completely disable the new Edge browser? The old IE could be disabled in Settings → Default Programs, but in Windows 10, the checkbox is missing for Edge.  Is there any way to get rid of Edge, or at least to disable all entry-points?


When I try to use  `hi       another text`   it returns me hi       another text - spaces are breaked.

I was trying to put a small line of code in a comment, but I noticed that the multiple spaces in the comment enclosed in backticks(`) were replaced with single ones.  To make it clear, I wrote this as raw data in the comment:  replace("       ", " ")   Note: ^ This is code indented with four spaces    And when I added the comment, it was appearing as this:        The  says:  _italic_ and **bold** text, inline `code in backticks`, and [basic links](http://example.com).   But when the multiple spaces are replaced with single ones, then perhaps, it won't help for code.


I want to describe my character waking up and sensing something is strange, however, can't put a finger on what. For example,      Alice woke up and felt __, something seemed different.    Different like something was wrong and off. I don't mind to have an idiom as well.

Is there a word for a feeling of impending doom or dread?


If a question is not directly "bad", but placed on the wrong SE network (e.g., posted on stackoverflow.com when it should have been posted on superuser.com), in addition to close-voting, should I also downvote the question? Or not?

The upvote tooltip says:      This question shows research effort; it is useful and clear.   The downvote tooltip says:      This question does not show any research effort; it is unclear or not useful.   Sometimes, a question can show research effort, be useful, be clear, but just not in the good place. Voting to close the question and downvoting seems like a double penalty.  Should an off-topic question always be downvoted ?


What would be a way to find a polynomial in  $\mathbb Q[x]$ such that $2^{1/2} + 3^{1/3}$ is a root.

How can I prove that $\sqrt{2}+\sqrt[3]{3}$ is algebraic?  I have been trying various things, and have failed as of now. I know that the degree of the polynomial satisfying this equation has to be $\leq 6$. But that is all I know. Clearly, the simple idea of building the polynomial from the root itself, like in the case of $\sqrt{2}+\sqrt{3}$ does not work here.   Thanks in advance!


This little rounding issue got me puzzled. Admittedly I very rarely work with numbers  and I wouldn't brag about my math skills, but I think 22.68 x 3 should be 68.04, but JavaScript insists on rounding to 68.03999999999999. It does the same thing for multiplicative of  6 and 12, but not 9. I wrote my sample converting a string because it's what I'm doing in my app, but the result doesn't change if we use numbers. I couldn't find a clear explanation and I'm hoping I can get some insight on why this works the way it does so I can avoid making mistakes in the future. Thank you.       $(".canvas").on('click', ".button", function (e) {   var numOne = Number('22.68');   var numTwo = Number('3');   var mathIshard = numOne * numTwo;     $(".result").html(mathIshard);          });

 Click Me

 result

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


This is a newbie question. While travelling, I need to recharge my Galaxy Nexus and my digital camera, both of which are meant to be charged through a micro-USB port, ie. 0,5A.  To reduce charging time, I have an 1A AC adaptor but it only has a single USB port.  Google shows a number of two-port AC adaptors:   one port is 1A, the other is 2,1A (it looks like Apple devices expect 2,1A)  delivers 2A when using a single port, but 1A when using both ports   In case I only need to charge a single device, is it safe to have it fed 2 or 2,1A? I read that a device only uses the intensity it needs, but will it fry if it's fed too much intensity?  Thank you.

My friend and I both have droids and we often user each other's wall chargers out of convenience. I was told that it's possible that my phone might explode if it's charged with a charger that wasn't built specifically for my phone. How true is this across droids?


I am having a challenge with how MSOffice deals with number formats.   While I believe this is similar root cause to:   It is different as this is not a date format and this involves both Excel and PowerPoint with VBA.  I have data that I am pulling out of a dB into CSV files and I am doing a .Replace on certain text markers (e.g. @@ReplaceText@@) in a PPT template. (There is a good post on the site on how to do this I can't seem to locate now)  There is one field I need to deal with which is tracking a metric, this field is text in my dB, but it can contain special characters - specifically $ and %.  e.g. I could see the following values in the CSV file: "increase market share","1234","$10","28%"    I want VBA to treat this all as text, so the % and $ characters are maintained...but...  Excel reads the data as a number and keeps the $ or % sign. PowerPoint removes the $ or % sign and converts 28% to 0.28 and $10 to 10.  Per the above question, adding "=""28%""" to the .csv in Excel, will give me that exact literal text in PowerPoint.  Adding a preceding space or ' character works in forcing Excel to read the data as text string. But PowerPoint ignores it and behaves same as above. Eg 28% to 0.28.   I tried using FORMAT as below, but because the data is variable, I don't know which case to apply.  sCurrentText = Format(sCurrentText, "$#")  or  sCurrentText = Format(sCurrentText, "0.0%")  If statements don't work because the $ or % are not present in what VBA sees (e.g the $ or % character is already gone)  If sCurrentText Like "*$*" Then or If sCurrentText Like "*%" Then  So my question is how do I force VBA to take what is in the CSV file as text and ignore processing $ or % as special characters and just maintain them in the CSV?

Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date?  I'm trying to write a .csv file from my application and one of the values happens to look enough like a date that Excel is automatically converting it from text to a date.  I've tried putting all of my text fields (including the one that looks like a date) within double quotes, but that has no effect.


How can I produce the correct unicode character for í for a name in the bbl file as reference ?  I wrote it like this Mac{\'{i}}as but error still shows.

How to write in bibliography (package natbib) letter "a" with two dots above? Specially, I mean the word Birkhäuser.  Is there a general rule or way how to write such umlauts or other accented letters in bibliographies?


I am new to Ubuntu and recently I bought a new Dell Computer: Inspiron 13 5000 with 256 SSD, model i5379-5893GRY-PUS. I am trying to install Ubuntu.  I did try a lot of configurations, but none was successful. Things I already tried:   Disable fast boot powercfg off AHCI enable Startup windows on safe mode and then restarting Disable security boot Partitioning on windows   I really don't know what else to try.   Commands:  $ fdisk -l  Disk /dev/loop0: 61.6 MiB, 64573440 bytes, 126120 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop1: 318.1 MiB, 333533184 bytes, 651432 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop2: 962 MiB, 1008779264 bytes, 1970272 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/loop3: 426.5 MiB, 447172608 bytes, 873384 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   Disk /dev/sda: 7.4 GiB, 7948206080 bytes, 15523840 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x4f4e129b  Device     Boot   Start     End Sectors  Size Id Type /dev/sda1  *         64 3731283 3731220  1.8G cd unknown /dev/sda2       3731284 3739475    8192    4M ef EFI (FAT-12/16/32)   $ lsblk -f (DONE USING MANJARO)  NAME   FSTYPE   LABEL    UUID                                 MOUNTPOINT loop0  squashfs                                               /run/miso/sfs/livefs loop1  squashfs                                               /run/miso/sfs/mhwdfs loop2  squashfs                                               /run/miso/sfs/desktopfs loop3  squashfs                                               /run/miso/sfs/rootfs sda    iso9660  MJR17110 2018-05-07-20-05-15-00               /run/miso/bootmnt ├─sda1 iso9660  MJR17110 2018-05-07-20-05-15-00                └─sda2 vfat     MISO_EFI FDB1-353B     $ ls -ltr /dev/sda*  brw-rw---- 1 root disk 8, 0 Jul  4 05:36 /dev/sda brw-rw---- 1 root disk 8, 2 Jul  4 05:36 /dev/sda2 brw-rw---- 1 root disk 8, 1 Jul  4 05:36 /dev/sda1   $ ls -ltr /dev/loop*  brw-rw---- 1 root disk  7,   7 Jul  4 05:36 /dev/loop7 brw-rw---- 1 root disk  7,   6 Jul  4 05:36 /dev/loop6 brw-rw---- 1 root disk  7,   5 Jul  4 05:36 /dev/loop5 brw-rw---- 1 root disk  7,   4 Jul  4 05:36 /dev/loop4 brw-rw---- 1 root disk  7,   2 Jul  4 05:36 /dev/loop2 brw-rw---- 1 root disk  7,   1 Jul  4 05:36 /dev/loop1 brw-rw---- 1 root disk  7,   0 Jul  4 05:36 /dev/loop0 crw-rw---- 1 root disk 10, 237 Jul  4 05:36 /dev/loop-control brw-rw---- 1 root disk  7,   3 Jul  4 05:36 /dev/loop3   $ sudo lshw -C storage  *-usb:0                           description: Mass storage device        product: USB Reader        vendor: ChipsBnk        physical id: 1        bus info: usb@1:1        logical name: scsi0        version: 1.00        serial: 110074973765        capabilities: usb-2.00 scsi emulated scsi-host        configuration: driver=usb-storage maxpower=100mA speed=480Mbit/s   *-storage UNCLAIMED        description: SATA controller        product: Sunrise Point-LP SATA Controller [AHCI mode]        vendor: Intel Corporation        physical id: 17        bus info: pci@0000:00:17.0        version: 21        width: 32 bits        clock: 66MHz        capabilities: storage msi pm ahci_1.0 cap_list        configuration: latency=0        resources: memory:d1230000-d1231fff memory:d1234000-d12340ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:d1233000-d12337ff

I would like to see a full how-to guide on how to install Ubuntu.


In an earlier question -  - I was looking for a possibility to have \bibitems appear in in my documents body. This was solved using the bibentry package.  As a follow-up I would now like to have the \bibitem appear in the body only, and not in the regular reference list in the end at all.  Is it possible to define something like a \bibentry* that prevents the entry from being shown? Or any other way to get what I want? I cannot get around using natbib...

This question was , but I think that the only answer didn't quite understand the question so I thought I'd try again. I'm writing a paper in which I need to have references show up in two places:  a special list of "key references" in its own section, and a bibliography containing the rest of the references that were cited in the text. I thought that bibentry would do it, so the document looks something like: \documentclass[11pt]{article} \usepackage{natbib} \usepackage{bibentry} \nobibliography*  \begin{document}  \section{Amazing idea}  Chicken chicken chicken \citep{chicken:2010fj}.  Chicken chicken, chicken \citep{turkey:2010jk}.  \section{Key References}  \begin{enumerate} \item \bibentry{lemur:2009ii} \item \bibentry{gibbon:2011jk} \end{enumerate}  \bibliographystyle{apalike} \bibliography{amazing.bib} \end{document}  Unfortunately, this doesn't quite do it, as the resulting document presents the lemur and gibbon bibentry references correctly in the "Key References" section, but also prints them in the bibliography at the end of the document.  Ideally, the only entries in the bibliography would be the chicken and turkey \citep references.  I'd like it to look like:  Key references  Lemur, L. (2009). Lemur, 12(4):1-7. Gibbon, G. (2011). Gibbon, 135:1002-1009.  References Chicken, C. (2010). Chicken. Chicken Press, Coop. Turkey, T. (2010). Turkey, 7(4):E231.  What it actually looks like:  Key references  Lemur, L. (2009). Lemur, 12(4):1-7. Gibbon, G. (2011). Gibbon, 135:1002-1009.  References Chicken, C. (2010). Chicken. Chicken Press, Coop. Gibbon, G. (2011). Gibbon, 135:1002-1009. Lemur, L. (2009). Lemur, 12(4):1-7. Turkey, T. (2010). Turkey, 7(4):E231.  Is there any way to achieve this with the current method, or is there some other (possibly easier!?) way to do this?


Glossy in camera tracking  I am having some fun with camera-tracking in Blender.  That is my result so far:    My question is: how can I make this table reflect the ship?   Nodes are standard Blender's setup for motion tracking.  There is a plane on Backround layer, receiveing the shadow. I tried adding glossy shader to the plane. But then plane is reflecting surroundings (light and skybox) which is breaking the effect.   Good solution for me would be if plane could reflect only the ship, and be transparent to all the other, but I don't know how to approach this.  Do you know any trick that could help me out?

Andrew Price released a nice tutorial on how to nicely put 3D objects on top of a real image:   I have seen images, such as this:  which have 3D elements over images and have actual reflections from the object showing up on the wet asphalt.  How can this effect be achieved using render passes (or any other way)?  Here is another example (from ):


Show that if $G$ is a non-trivial subgroup of $\Bbb R$ then either $G$ is dense in $\Bbb R$ or $G=l\Bbb  Z$, where $l=\inf\{x\in G:x>0\}$.   My try:  If $G=\Bbb Q$ then $\Bbb Q$ is dense in $\Bbb R$.  If $G=n\Bbb Z$ then $G$ is not dense but $G$ takes the form $G=l\Bbb Z$.  But how should I do the sum for any subgroup of $\Bbb R$?Please help.

Possible Duplicate:          Let $(\mathbb{R},+)$ be the group of Real Numbers under addition. Let $H$ be a proper subgroup of $\mathbb{R}$. Prove that either $H$ is dense in $\mathbb{R}$ or there is an $a \in \mathbb{R}$ such that $H=\{ na : n=0, \pm{1},\pm{2},\dots\}$.  I am not able to proceed.


At the start of your 7 Wonders game how do you decide which wonder each player gets?   What is the intended default rule? Something I'm unsure about is if you are supposed to mix sides A and B. Is it fair and balanced if some players are playing side B? Are there other ways that your group decides how to pick wonders, which work and are fair?

In the rules it is recommended for the first games to use side A of the wonders only. After these first games (if I understand the rules correctly) players play the side that is at the top of the wonder card they draw. So some would play side A and some side B (probably). This question discusses .  I wonder if this is really the best way?  I see several possibilities how to handle which side to play:   randomly drawn wonder cards, but all players use side A (recommended for the first games) randomly drawn wonder cards, but all players use side B randomly drawn wonder cards, all players use the side that is at the top when the card is revealed (the normal rule) randomly drawn wonder cards, all players use the side they like more   I feel like variant 4 would be the best (each player may select the side) for a casual playing group, as otherwise some side A players might feel that the side B players have an "unfair" advantage (as the special abilites on B seem to be better). Would it be problematic/unbalanced to use variant 4?  How does the side get selected in tournaments?    EDIT: The rules also allow that players (if all agree) can choose which wonder to play. In this case, variant 4 is probably used (variants 1 and 2 would be possible, too), while variant 3 would be rather pointless (you'd select a wonder yourself but randomize which side to play). Anyhow, this question is about randomly chosen wonders.


I have a production server running Ubuntu. I would like to setup similar configuration installed on my local machine. I'd like to have same packages installed.  Since bandwidth is a constraint the traditional disk cloning methods won't work for me. Having same packages installed and same users with same passwords created would be wonderful; I'll tweak the rest of the things manually.  Is there a good solution for my requirements?

If I want to make a backup of everything I have done since the fresh install of Ubuntu, what are the possible options? What all should I backup? I want to get all the settings that I changed, all the packages I installed, etc.


Let's say we have a function, x_add:  def x_add(x,y):     k = x + y     return k   And I want a variable to hold the arguments for x,y:  p = (2,4)   Then I want to perform the funciton with this variable as the argument:  x_add(p)   Resulting in:  TypeError: x_add() takes exactly 2 arguments (1 given)   Is there any way to do this?

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


Imagine you are a common man and want to prove that the Earth is Round, how would you prove it without any mathematical derivation or without the theory of the ships.

Assume you've come in contact with a tribe of people cut off from the rest of the world, or you've gone back in time several thousand years, or (more likely) you've got a numbskull cousin.  How would you prove that the Earth is, in fact, round?


It would be easy to do calligraphic letters as:    \mathcal{AABBCCQQZZ}   As   But How can I get a calligraphic \pi or \Pi, I mean capital version of Pi.  I clearly remember that I saw calligraphic capital Pi somewhere.

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


How can I install the google play store app on my Samsung galaxy Ace?

I have recently installed a custom ROM and cannot find the Play Store. It seems like all apps that belong to Google are missing.  How can I install the Google Apps Package (Play Store, ...) on my Android device?


Updates:  For those who still don't get the real meaning of my question ... : #JeSuisBruxelles  ... No matter how many extra downvotes this question will get because of this update.  Would be nice if that enable/disable hats-technology could be used also for indicating support for #JeSuisBruxelles (whatever the default would be).    Consider changing the logic behind "I hate hats" to an implementation with some logic to express something like "Count me in" (feel free to pick whatever label that fits) ... That way somebody who does NOT want to participate does NOT have to go indicate something about "hate" ... during the time of the year that's supposed to be about "peace". Moreover:  you could use such "opt in" as a way to get your very first hat! I can't imagine that SE-marketeers (or whatever) would not be interested in knowing about the thousands (???) of users who pushed some related button (or whatever) as a kind of call-to-action (now they only know about those (fee?) who "do not like" hats).  And I've done my homework ... :  "https://meta.stackexchange.com/questions/270504" is NOT a duplicate about this question ... IMHO ... "https://meta.stackexchange.com/questions/270833" includes "SE makes me hate" ... That's not the case for me (SE will never succeed in that ...). And it states a request like "can we choose NOT to participate", which is the opposite of what I'm suggesting here. It's like asking "where do I end up if I go North?", which can impossibly be considered as a duplicate of "where do I end up if I go South?". So this question is related, but not enough to justify closing (IMHO). It's not about changing a label, but the whole mechanism around it. A possible implementation (I guess) could be as suggested by @Shadow... which is to move this to the user profile under Preferences tab, and in the snowflake menu put something like "Change preferences" (or whatever label that does not include the word "hate").  Note: as per  mentioned in one of the comments to the first answer to this question, it seems that on SO such "opt-in" approach/logic is already implemented. But "I" am not able anymore to verify (QA-test) that, since "I" originally used the approach implemented on Drupal.SE and the opt-in/opt-out choice one makes, seems to apply for all sites together (that choice itself seems to make sense to me).

Why are you, the ever so pink-and-fluffy SE making me hate ?   I don't hate hats. I just don't want to participate because I'm a grumpy old bahumbug kinda guy.   I don't like hating :(  Can we choose not to participate rather than having to hate ?  I am sad.


Sorry of this question is super general, but how would you convert between a 3D pressure limit in $N/m^2$ to a 2D pressure limit in $N/m$ if the boundary is arbitrarily thin? I've heard before that you multiply the pressure limit by the "width" of the boundary, but what about in this case? Thank you!

In 3D the capillary number $Ca$ is defined as: $$Ca=\frac{\nu \rho U}{\gamma}$$ where $\nu$ is the kinematic viscosity ($m^2/s$), $U$ is the velocity ($m/s$)and $\gamma$ is the interfacial tension ($N/m$) and $\rho$ is the density in $kg/m^3$ . However in 2D I will have $\rho$ in units of $kg/m^2$ (2D simulation), so how to find capillary number?


Asked about if you can come to the party and you want to know the number of the people who’ll attend it, which is more commonly used, “How many people are going?” or “How many people are coming?”

When should one use the word "coming" vs. "going"?  For example, is it "I'm coming home." or "I'm going home."? (Ehhh maybe that was a bad example).  "Are you coming?" vs. "Are you going?" may be a better example.  I always get confused by this expression but most people I notice use the word "coming".


I think that avatars on stackoverflow are really cool and I think that it is a fun way to express myself. That being said, when one of my posts becomes a Community Wiki post,  I'm a little sad that my avatar goes away.  Its nice that CW posts keep my name, but avatars make stackoverflow more interesting.  So how about it SO, can we keep our avatars when we create epic CW posts?

Possible Duplicate:             Looking at  , I noticed something peculiar: Community Wiki posts* with only one author have not one, but two different links to the revisions page.    Is this entirely necessary? When clicking on the author's name in this case, I entirely would expect to be brought to the author's profile, rather than to the (potentially one-item-long) revisions list.   *(maybe only answers? couldn't find any good single-author CW question references)


Could someone help me with this?   Let A, B, C, D, L, M, N be distinct points in the plane such that A, B, C, D are the vertices of a square with sides AB, BC, CD, DA and L, M, N lie on the sides AB, CD, BC respectively. If M is the mid-point of CD, then show that △LMN is not an equilateral triangle.

Let A, B, C, D, L, M, N be distinct points in the plane such that A, B, C, D are the vertices of a square with sides AB, BC, CD, DA and L, M, N lie on the sides AB, CD, BC respectively. If M is the mid-point of CD, then show that △LMN is not an equilateral triangle.  I cannot get anywhere with it. I tried to find a contradiction by assuming 60 degree angles, but no luck.   Source: Geometry proof contest math 2b


In a C++ Program, attempting to use templates in a class I'm developing results in my compiler not registering the class constructors declared in the source.  If I remove the template it compile fine, but other that that in the last hour I've made no progress to in what might be wrong (I've tried playing with where and how I declare the template, and namespace syntax's) .  So, what am I failing to understand about C++, please?  rondel.h:  template <typename T> class RondelGauge: public sf::Drawable, public sf::Transformable { private:     //No Default constructor     RondelGauge();      //Used to draw the gauge     virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;      //The data the gauge visualises     T& dataValue;     std::string& label;     std::string& dataUnit;           [Irrelevant code emitted]  public:     //The constructor - No errors thrown in the header.     RondelGauge(T& value, std::string& iLabel, std::string& iUnit); };   rondel.cpp:  #include "rondel.h" #include "stdafx.h"  template <typename T>  //This, and variations of it, fail to reguister. RondelGauge<T>::RondelGauge(T& value, std::string& iLabel, std::string& iUnit) : dataValue(&value), label(&iValue), dataUnit(&iUnit) {     setOrigin(65 / 2, 65, 2);     setPosition() }

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


Does anyone what the largest array is that I can allocate in Visual C++ 2010? The maximum number of elements, I mean. Can I do something like int tarray [unsigned long], where unsigned long is some unsigned number larger than a 32-bit integer?

Is there a max length for an array in C++?  Is it a C++ limit or does it depend on my machine? Is it tweakable? Does it depend on the type the array is made of?  Can I break that limit somehow or do I have to search for a better way of storing information? And what should be the simplest way?  What I have to do is storing long long int on an array, I'm working in a Linux environment. My question is: what do I have to do if I need to store an array of N long long integers with N > 10 digits?  I need this because I'm writing some cryptographic algorithm (as for example the p-Pollard) for school, and hit this wall of integers and length of arrays representation.


I've been trying to light my nether portal but it doesn't work. I have the portal set up correctly but it still won't work. The portal doesn't show up. Can anyone tell me why?

Where do I light my nether portal on Minecraft Pocket Edition 0.10.5?


I am new to Careers 2.0 and I want my background details when I export my CV to PDF. How do I do that?  I found a workaround... but as this question is marked as duplicate I am not able to answer it.  I just copy pasted my background details in the description of my last open source project, and I made it as heading, So by just designing little bit it now appears in pdf as I wanted!!!  May be this will help someone until the feature is added by Stack overflow.

Your Careers 2.0 profile has two 'special interests' sections:    Unfortunately, these are not included in the PDF export, not even as an option. Could these be added?


Sextante for ArcGIS comes with SAGA modules.   I know that I can use GRASS algorithms in Sextante under gvSIG.  But how can I use GRASS algorithms in Sextante under ArcGIS Desktop?   I tried to look for any instructions, but could not find any. Any suggestions?

I have just upgraded to ArcGIS 10.1 from version 10.0.  I am trying to add the SEXTANTE tools to ArcToolbox.  I have followed all the instructions from the SEXTANTE . I have also tried the instructions  and .    No matter what I do, I keep getting little red crosses when I try to run any of the tools in SEXTANTE.   Note, following the instructions in the above links worked for me in version 10.0 but I just can't seem to get it to work in 10.1.    Does anyone know what might be going on?  Are other people having this issue?


To my knowledge my knowledge magnetism comes either from an electric current flowing through an object or from a permanent magnet which can be created by heating certain ferrous metals to specific temperatures for the material. To get to my question: I have been told that the  core is iron and a permanent magnet formed from the process above, I since seen an article reporting that the core of the earth is thought to be 7000° C  yet the curie temperature for iron is about 780°C so this doesn't make sense to me. Could someone explain where this magnetic field originates to me?

What is the reason for the Earth to behave like a bar magnet and have poles (North and South poles)?


Good evening everyone!  I have  problem that I have searched for an answer for a few hours and I can't understand why it is happening! I have installed tinc (a VPN program). I have set it up as advised on the archlinux article for it. I have 2 installations. 1 is on google cloud (Works without errors) 1 is on my own virtual machine with ubuntu 18.04 (error message)  It should work by creating a tun interface. But it gets an error message. Here is the code it is trying to execute, it is contained in tinc-up:  ip link set dev $INTERFACE up ip addr add 10.0.0.2/32 dev $INTERFACE   the $INTERFACE part being /dev/net/tun that is default for tinc program. I tried added it separately instead of $INTERFACE, still the same error.  I am at my wits end. Does anyone have any kind of time to help me with this? It certainly would make my day!  Edit: I forgot the error message. Here is the log which contains the error message:  tincd 1.0.33 starting, debug level 5 /dev/net/tun is a Linux tun/tap device (tun mode) Executing script tinc-up sh: 1: /etc/tinc/vpn/tinc-up: Permission denied Script tinc-up exited with non-zero status 126 Listening on 0.0.0.0 port 655 Ready Trying to connect to vpn (34.72.222.60 port 655) Timeout from vpn (34.72.222.60 port 655) during authentication Could not set up a meta connection to vpn   Error message is: sh: 1: /etc/tinc/vpn/tinc-up: Permission denied  But I run it with sudo tincd. I have also tried sudo -s  Then starting tincd as the root user.

I have a script.sh file and type of this file is shellscript file. I want to make this file as application/x-executable file. How can I make it?


I would like to increase the my Linux disk from 40 GB ( around 3 GB is free) to 60 GB. My Dual boot system (Windows 10 and Ubuntu 18.04) does NOT have Linux swap partition.So, i can not follow the other answers in this forum.    Please advise any thoughts useful.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


When saying simply "until" it includes or excludes what mentioned after it?   For example:      You should make registration until Monday.      "It's best to avoid full-body bathing until the second day after   surgery"

I sent an email to someone and got an auto-reply saying:     I am out of the office until 09/15/2014.   Does this mean he will be available on the morning of the 15th?


I have a dual boot system, and use a NTFS partition as universal storage between Windows 7 and Ubuntu.  Lately, that partition has been throwing CHKDSK prompts on Windows boot, so I thought it was a symptom of a failing drive.  As a result, I cloned the drive to a larger 1TB drive and resized the partitions in Linux.  Still, the CHKDSK prompt is showing up, but this time there were a few filenames printed out in the scan, which later froze at 50% completion.  These files are a set of Perl scripts that I used to create an automated panorama generation script a few years back.  Now, when I try to rm -r * in the folder where the files are held, I get   jason@asus:/media/Storage/Programming/Libraries/Linux$ rm -r * rm: cannot remove `Image-Size-3.232/blib/man3/Image::Size.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile::Comment.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile::Rule.3pm': No such file or directory rm: cannot remove `Panotools-Script-0.26/blib/man3/Panotools::Makefile::Utils.3pm': No such file or directory ... ...   Now, inside Image-Size-3.232/blib/man3/, I executed ls -il which printed out  3723 -rwxrwxrwx 0 root root 25473 Jun 19  2012 Image::Size.3pm   Now, stat 3723 prints out  jason@asus:/media/Storage/Programming/Libraries/Linux/Image-Size-3.232/blib/man3$ stat 3723 stat: cannot stat `3723': No such file or directory   How can I remove these files that have so far proven fireproof to any convential removal function?

I have a directory with images. Suddenly I found out that there's a new image with a new name. The image content is similar to another image in another directory but with a different name. I didn't copy this image to this directory.  Also a directory with the same name as the image suddenly appeared there. I didn't create any of them. When I tried to delete them I got this message "No such file or directory" even though it already existed there. I used the command sudo rm -rf imagename.jpg to delete it but it didn't work.   Can anyone explain why this is happening and how to solve it?  The output of ls -l "large (2).jpg":  -rw------- 1 alaa alaa 2859942 Jun  8 04:01 large (2).jpg   The output of rm "large (2).jpg":  rm: cannot remove ‘large (2).jpg’: No such file or directory   The output of printf %s\\0\\n ./large* | sed -n l  ./large (20).jpg\000$ ./large (26).jpg\000$ ./large (2).jpg\000$ ./large (5).jpg\000$   The filesystem is NTFS.


I have a large slow cooker that I have added chopped potatoes, carrots, onions, aubergines/eggplants, courgette/zucchini to along with five chicken breasts. I added half of the vegetables at the bottom, then layered the chicken breasts, then topped off with the remaining vegetables. It is almost full and I intend to cook it on high for three-four hours, but I can't help but wonder if I need to add any liquid/stock to it before I cook it. What is generally the best approach here?

I have a  that I'd like to cook tomorrow, and I'm planning to do it in my slow cooker.  The recipe as provided online is the same one that is on the turkey packaging:     Slow-Cooker Instructions:   Place THAWED roast, skin side up, flat in 8” diameter slow-cooker. Add 1/2 cup water. Cover, cook on low 7-1/2 hours to internal temperature of 170 degrees as measured with a meat thermometer. After 4 hours, check temperature at center, ends and near top for food safety. Turkey must reach 140 degrees within 4 hours.    Now, I haven't done a lot of slow cooking before, but when I have, I've always added enough liquid to fill the slow cooker up to about 3/4 full.  Half a cup of water will barely cover the bottom of my slow cooker.  I did some research, but found nothing conclusive.   say that slow cookers should always be more than half full,  seem to indicate that it's fine to run them almost empty.  Is there a minimum level of liquid necessary when cooking in a slow cooker?


Basically what the title says. I'm a math/physics double major going into my second year, but I'm much more math oriented. I'll be taking a quantum class in the fall and I'd like a book that approaches the topic from a rigorous mathematical standpoint. If it matters at all, I have a good understanding of linear algebra, abstract algebra, differential equations, and some analysis.

I'm interested in quantum mechanics book that uses high level mathematics (not only the usual functional analysis and the theory of generalised functions but the theory of pseudodifferential operators etc, certainly the modern mathematics). If there isn't something similar please give me a reference to the book that is strictly supported by mathematics (given a set of mathematically descripted axioms author develops the theory using mathematics as a main tool).


Is it possible to reduce the initial log-file size of a DB. See the screen-shoot below, the log-file shouldn't be more than 500 MB with an autogrowth of 100 MB. I dont want to shrink the file, i want to reduce the allocated space to 500 MB. How do i do it?

I've inherited a SQL Server 2008r2 database; the Data file was created with an initial size of 1,000 mb, but the Transaction Log has an initial size of 28,016 mb.  No backups were being performed.  I've implemented full and transaction backups to match our recovery needs, and as a result the transaction file is always ~99.9% empty, never exceeding 30 or 40 mb used.  I'd like to reduce the initial size so I can shrink the log down to a more apprpriate size, 200 mb or so.  Does anyone know how I can redefine the Log file with an Init size of 200 mb?


I have anexo exercise to answer that if for every sequence $x_{n} \rightarrow x$ we have $f(x_{n}) \rightarrow f(x)$ than is f continuous or not. Continuous here means that $f^-1(A)$ is open If $A$ is open I feel that this is false but can neither proof or show a counter example PS: Sorry If duplicate but couldnt find the same question on search

Please give an example of a function $f : X \to Y  $ where $X,Y$ are topological space , such that there exist $x \in X$ such that for every sequence $\{x_n\}$ in $X$ converging to $x$ , $\{f(x_n)\}$ converges to $f(x)$ but $f$ is not continuous at $x$ ; also please give such an example that $f$ is not continuous any where in the domain but for every $x \in X$ and sequence $\{x_n\}$ in $X$ converging to $x$ , $\{f(x_n)\}$ converges to $f(x)$.


I'm new to the Linux OS. And I've choosen Ubuntu as my preferred os for my PC. I want to know. Is it necessary to dual boot windows and Ubuntu. Personally, I'd like to have only Ubuntu installed on my PC as switching between windows and Ubuntu won't be attractive to me.

My laptop is filled with viruses and Windows XP is just becoming impossible to work with.   I've been interested in Ubuntu for a while, so, would I be able to use something like Debian to clear my HDD and OS and then install Ubuntu and start fresh?


Let $A_1 A_2 \dotsb A_{11}$ be a regular 11-gon inscribed in a circle of radius 2. Let $P$ be a point, such that the distance from $P$ to the center of the circle is 3. Find  $PA_1^2 + PA_2^2 + \dots + PA_{11}^2.$

$K_1 K_2 \dotsb K_{11}$ is a regular $11$-gon inscribed in a circle, which has a radius of $2$. Let $L$ be a point, where the distance from $L$ to the circle's center is $3$. Find $LK_1^2 + LK_2^2 + \dots + LK_{11}^2$.  Any suggestions as to how to solve this problem? I'm unsure what method to use.


I have a Xiaomi Mi Note that doesn't come installed with Play Store. I'd like to install an APK for it manually, but all resources I've found on the web require me to install a binary from untrusted sources (e.g., a Mediafile upload).  How can I download the Play Store APK directly from Google?

I can't download apps from the Play Store on my Android device (maybe due to a network issue), so I'm wondering how could I download the APK file of an app on my PC from ?


I've been working on this mushroom to render and the stalk and dome create a seam where there is different materials. Anyone know how to fix this?

I have created this with cycles:  But the edge between the glowing and non glowing materials is very sharp. The material was manually applied to faces in edit mode. Is there any way I can smooth the edge between them in cycles?


Let $R$ be a UFD with $1$, are the following two statements true?   If $S$ is a subring of $R$, then $S$ is also a UFD; if $S$ is a subring of $R$, and $1\in S$, then $S$ is UFD.

Give an example of a UFD having a subring which is not a UFD.  I thought of $\mathbb{Z}[\sqrt{2},\sqrt{3}]$. Could you please explain my question. I am trying grasp the concepts, need help.


My hard disk size is 750 GB  Out of which only 93 GB is only assigned to home directory and root directory has 600 GB . The home directory space 99% is in use.  I've installed GParted but when I right click in home directory resize/move option is not hightlighted.  How can I reduce the size of root directory and add space to home directory?

I've got Ubuntu 10.10 installed to use my whole hard-disk, but would like to use the 130GB of free space I've got to create a new partition and do some development on Unity and Natty.  Can I use gparted to do this?  If so how?


I'm trying to prove the independence of  $x = z_1^2 + z_2^2$ and $y = z_2 / z_1$, with $z_1, z_2$ having a standart normal distribution. Knowing that $z_1$ and $z_2$ are independent from each other.  I know   $x$ is like the $r^2$ of a polar coordinate. And $y$ is like $arctg(\alpha)$. But I still don't know how to use that to prove what I want.  Things I'm trying todo since I posted the question:  Trying to use Jacobian method to at least find $f_{X,Y}$, if I could then find $f_{X}$ and $f_{Y}$ I could prove the independence using the definition.  Things I've done since first posted:  I have found $f_{Z_1,Z_2} (z_1,z_2) = f_{Z_1}(z_1)*f_{Z_2}(z_2) = \frac{1}{2\pi}*e^{\frac{-(z_1^2 + z_2^2)}{2}}$  Some ideas:  I'm stuck trying to find the inverse of the transformation, but if there was a way to find it I'd be closer to know the distribution of $f_{X,Y}$  If I do something along $z_1 = r*cos(\theta), z_2 = r*sin(\theta)$, then I have $X = r^2, Y = tan(\theta)$,  maybe it's better to do two "easy" transformations than a hard one.  That transformation leads to   $z_2/z_1 = tan(\theta)$  $\sqrt{z_1^2 + z_2 ^ 2} = r$  Then going by the jacobian method, saying that g is the transformation. I have that   $f_{R,\theta}(r,\theta) = f_{z_1,z_2}(r*cos(\theta), r*sin(\theta))*J(g^-1(r,\theta)) = f_{z_1,z_2}(r*cos(\theta), r*sin(\theta))*r$  $ = \frac{r}{2\pi}*e^{-r^2/2}$  Then we have the other one,  $x = r^2$  $y = tan(\theta)$  Once again I go with the jacobian method,  $|J(t^{-1}(X,Y)| =   | \begin{bmatrix}                            \frac{\partial \sqrt{x}}{\partial x} &                             \frac{\partial \sqrt{x}}{\partial y}  & \\                            \frac{\partial \arctan(y)}{\partial x} &                             \frac{\partial arctan(y)}{\partial y}                        \end{bmatrix} |                  = | \begin{bmatrix}                            \frac{1}{2*x^{2}} &                             0  & \\                            0 &                             \frac{1}{1 + y^2}                     \end{bmatrix}  | = \frac{1}{2\sqrt(x)*(1+y^{2})}$  $f_{r,\theta}(\sqrt(x),arctan(\theta)) = \frac{1}{2\pi}*e^{-\frac{x}{2}}$  $f_{x,y} = \frac{1}{2\pi}*\sqrt{x}*e^{-\frac{x}{2}}*\frac{1}{2\sqrt{x}}*(1+y^{2}) = \frac{e^{-\frac{x}{2}}}{4\pi*(1+y^2)}$  This is close to the answer, because X has an exponential distribution, and Y another one. But there is a mistake somewhere, because the probability of Y being any number is $1/2$ instead of $1$

I want to solve the following problem:  Suppose that $X$ and $Y$ are two independent, Gaussian variables, with mean zero and common variance $\sigma^2$. Let $R^2 = X^2+ Y^2$ and $Z = \arctan (X/Y)$. I know that in this case $R^2$ has an exponential distribution and $Z$ has a uniform distribution. However, are $R$ and $Z$ independent from each other?


Is there any specific term for someone who has lost something? The person who finds something can be called a finder but what about the person who has lost something? What should the appropriate term be?

Think > Thinker     Draw > Drawer   Can we call a person who loses thing a loser? Of course, I do not mean that they are not successful or failed but what should I call them?


In my PhD, i have 2 chapters published in book chapters published by springer and elsavir. To what extent do you think the importantance of book chapters regarding in the PhD student CV? Does these chapters have a good impact when applying for faculty positions ?  Hint: i have other journal and conference papers.

I have been invited to write a book chapter in an edited volume, relating to my field of work. I have a paper ready that I have not published and was planning to submit it soon. So, I am wondering is it worth to use that article for the book chapter, as both are on the same topic, or is it in a sense a waste of a journal paper, as book chapters might not be seen to have the same academic value? What should I do? Should I, instead, send the ready paper to a journal for a review and write a book chapter, based on a couple papers I have published, for instance?  Generally speaking, where does a book chapter stand? Is it something between a conference paper and a full-fledged journal article? Or, does does it have the same value as either of the above-mentioned publication types, in your opinion?


Can one pls tell a proper to list files within date range on cli. Say between Feb 20 to Mar 2 then mv these files to another dir.  Thanks

How can I list recursively all files that were changed between 22.12.2011 and 24.12.2011?


We are creating a file deploy application for a team with SVN. Here is the new scenario that want us to do,  User creates folder1 and checks it in User creates folder2 and checks it in (rev2 now) User creates folder3 and checks it in (rev3 now)   At this point, the user thinks he needs to go back to revision 1. so we do  svn co -r 1    the user expects to see only folder1, but not folder2 and folder3. Is this doable? We are creating the script on the Linux command line so we won't have the luxury of SVN clients to use. Only the SVN commands.   Thanks for the help.

I've been using various source control systems for a while, but when it comes to reverting changes I'm not yet an expert. Can someone help given this scenario:  Scenario   Given a bug was introduced in revision #5 And 3 files were changed in revision #5 And changes in 2 files were responsible for the bug When the customer discovers the bug in a release of revision #9 (HEAD) Then 2 of the files causing the bug from revision #5 must be reverted to revision #4 And changes from revision #6 to HEAD must be applied to the two files   I expect there must be a way to compare revisions #4 and #5 of the two files and generate a patch that undoes the changes in revision #5, which can then be applied to the HEAD revision to roll-back the defect.


When adding/removing sites from "Your communities", the changes appear while editing, and are still present when clicking "edit" again, but are not visible after clicking "save". It takes a page reload to update the dropdown.

Previously I have posted a bug related to duplication selection community section. Anna Lear has corrected that issue. Now I got another issue in Add/Delete item.  When I try to delete any item. It gets deleted. I did not get any problem. But, after save the deleted item still shows in the list. It only removed after refreshing page. This happens also when I add a new item.  -Stack Overflow community has deleted from the list.   -After save community settings still Stack Overflow shows in the list.   I have noticed that some time it does not give any bug on add/remove item from community list. but, if you try to add and remove multiple time it happens.  EDITED: You can download and see the video. . The file is compressed in rar file.


I have 2 geometric distributions. And I have to compare their means and get the p-value. Is there a statistical test specifically designed for geometric distributions? I already used Mann-Whitney for non-parametric distributions, and resampling. But a test for geometric distributions might yield better results. Is there any solution in python or R?

I'm new to stats and I need some help. Can anybody tell me, in the most "beginner friendly" way, how to perform hypothesis testing with a geometric distribution for 2 samples? please take into account that, until a month ago, Statistics for me was mean, mode and std dev...


Not much information about this story, read in the 60s or 70s in an English-language anthology. Humanoid aliens having superior technology take over the Earth, and people mostly buckle under peacefully. No one knows where the aliens came from. At the end, humans stage a successful coup, capture the space fleet, and threaten retribution on the aliens' home world. When the alien chief smugly tells his captors that they'll never learn where it is, the coup leader says it's Sigma Draconis. The alien is shocked to hear this and demands to know how they found out. It turns out that over the past twenty or so years, humans pointed out one star after another to members of the invasion force, who were always happy to say, "No, that's not our star," and Sigma Draconis was determined by a process of elimination.   Sigma Draconis is a 4.7-magnitude star, only 19 light-years distant from Earth, so it makes a plausible home for alien civilizations. But it's arguable that aliens are unlikely even to learn the terrestrial names for stars.

I am looking for identification of a short story I read as part of an anthology around twenty years ago, and I think it might have been written by Harry Harrison but I am not certain.   Plot line goes like this: evil alien empire invade earth. They've done this many times, they know the routine. The populace resists, is crushed and turned into slaves/subjects of the empire, leader of the invasion retires to a life of luxury as colonial governor. I think the aliens look like humanoid snakes.   But Earth is different. When the invading force arrives, they spot no defenses, no military. When the ships land, the earthlings welcome them with open arms. The aliens are nonplussed and ask if the earthlings realize just what is going on.   Oh yes, the earthlings reply. But they point out that Earth doesn't have FTL technology and clearly the aliens do and could crush them if they resist. But by the same token they must have value, and other out there (whether pirates or other empires) may seek to take their planet by force and kill the populace. And if that happened, the empire would be forced to defend Earth as a valuable colony. Therefore it is in the Earthlings' best interests to be as valuable to their new masters as possible, not fight them.   The aliens point out that they could conceivably be defeated by this hypothetical threat. The humans shrug and agree, then point out that this would simply show that their new masters were even more capable of defending Earth.   Fast forward and the new planetary governor finds himself bored. He is chatting with his second in command who has just come in excitedly for having earned a black belt in human martial arts (I don't remember which one in particular, if it is even mentioned).   The governor is mystified, why didn't his lieutenant simply take this black belt? The lieutenant explains that without earning the belt, it would be meaningless. Instead, it required him to train and master the skill of human martial arts, which are curiously different from the aliens' own form. He explains via example:   In the alien martial arts, if one person shoves against the other, the second person seeks to shove back harder, thereby establishing might and dominance.   In human martial arts, however, the second person would instead seek to grab the first persons arm and guide them in the direction they are already going. By doing so, the first person is thrown completely off balance and at the mercy of the second person.   The governor thinks this sounds insane, ridiculous, and says a lot about a cowardly people like the humans.   Toward the end of the story, this comes back to haunt him. He suddenly finds that none of his men will respond to his command. A coup has occurred and the humans have slaughtered every alien on the planet except him. The humans simply bided their time until they had learned the secret of FTL, how to build and maintain a space navy, and in the meantime the occupying force had become soft and were easily dispatched. Now the humans are taking the navy back to the alien empire and aim to take it down. To replace it or to free the enslaved planets, I don't really remember.


Some avatars (including my own) aren't loading anymore, and instead I get a transparent box. This occurs particularly after I refresh a page.  In my developer tools network tab, every request for an i.stack.imgur.com avatar seems to get a response of 301 (permanently moved) without content, which might explain why those avatars don't load up.  Related:

I just wrote a question before this one and had trouble uploading a screenshot. The drop your image dialog throws no warning or error, but after uploading it won't show.  I also noticed that other questions won't load their images. Could this be some issue with imgur or similar?  Example:     When opening the image in a separate tab, Chrome gives a "too many redirects" error:    This might be linked to


I'm getting tired and irritated of people going to a question and voting to close without bothering to add clarification.   For example, I ask a question and then someone votes to close because it's unclear, fair enough. To me, I have asked exactly what I'm asking, It's clear as day, It's literally the last line in the OP. To simply vote to close like that gives the impression that the person that voted didn't bother to read the entire question.  How exactly is the OP supposed to improve their question so it can be answered  if you just vote to close and then wander off?  Why should the person that voted to close just be able to vote to close without leaving something helpful to improve the question?  I understand that sometimes it's obvious as why the question should be closed and that you don't have the time to to give a reason for every question; but I'd like to point out that even if poorly written the writer took the time to ask the question, the least you can do is give a reason or link to specific thing that would improve the question so that they can get a useful response.  Help them so they can help themselves and so on, aren't we about improvements? How exactly can we be about that if we don't help people to do that or point people in the right direction or give them the correct tools to do that.  So I propose, You can't vote to close a question without leaving some form of critique or a useful link that would improve the question.

Although  is obviously an exceptionally poor question, it still amazes me that 5 people can vote to close and yet not one of them leave a comment to help explain how the poster can improve their question.  I see loads of similar examples where questions from new users are closed and heavily voted down without anyone taking any effort to explain why - not a pleasant experience for new users.  Is there anything that can be done to encourage users to leave comments when voting to close?


i made a flame animation by using smoke effect with UVSphere. everything is okey when i am in blender. but i wanna use this animation in unity3D. But when i exported the animation .fbx, I can see only UVSphere not flames. You can see the image below what i meant. I wanna use this animation in Unity3D. Can anyone help me?

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


I have just bought an ASUS F555L laptop and obviously no linux driver is available for the touchpad and I cant disable it from the settings. In fact, it is not even in the settings. Any ideas why? or if there is a work-around this problem?

I want my touchpad to be disabled when I use my mouse. How can I do that? touchpad-indicator has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and find it buggy.


Following MWE does not work:  \documentclass{article} \usepackage{calc} \newlength{\charwidth} \setlength{\charwidth}{\widthof{$-$}} \begin{document} \centering $\infty$  \centering \hspace{-\charwidth}$-\infty$  \centering \hspace{-\widthof{$-$}}$-\infty$ \end{document}   \hspace{-\widthof{$-$}} throws following error      ! Missing number, treated as zero.   <to be read again>                      \widthof   l.10 \centering \hspace{-\widthof{$-$}}                                          $-\infty$   ?   Is there a possibility to insert negative \widthof into \hspace without defining a newlength?

The following code produces a negative phantom (from the comment in ):   \newcommand{\negphantom}[1]{\settowidth{\dimen0}{#1}\hspace*{-\dimen0}}  However, when used inside an equation like  $$a\negphantom{\inf_{t>0}t^2}b$$  I get an error. The solution is to do  $$a\negphantom{$\inf_{t>0}t^2$}b$$  Is it possible to define negphantom in such a way that it respects being inside an equation or not? (the latter solution is not perfect, since the \inf is not in displaystyle).


I'm using the APS template, apstemplate.tex (found ).  I have a bib file called refs.bib file located in the same folder, and in the tex file if I call   \bibliography{refs}   all the references are generated fine (pdflatex, bibtex, pdflatex x2 yada). Great!  However, once I change the name of the tex file from apstemplate.tex to something else, like "SomeOtherName.tex", then the bibliography is not created in the output!  That is really surprising and weird, why should the ability to create a bibliography be linked to what I call the main tex file? Everything else in the tex file is unchanged.  Here's what's in the body, if it's of any relevance:  \documentclass[aps,prl, reprint, superscriptaddress]{revtex4-1} \pdfoutput=1  % You should use BibTeX and apsrev.bst for references % Choosing a journal automatically selects the correct APS % BibTeX style file (bst file), so only uncomment the line % below if necessary. %\bibliographystyle{apsrev4-1}   \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{bm} \usepackage{color} \usepackage{soul}  \usepackage{amssymb} \usepackage{wasysym} \usepackage{dsfont} %\usepackage[pstarrows]{curve2e} \usepackage{multirow} \usepackage{epsfig} \usepackage{bm} \usepackage{amsmath,amsthm,amssymb} %\usepackage{mathtools} \usepackage{array,booktabs,longtable} %\usepackage{abstract} \usepackage{mathrsfs} %\usepackage[draft]{fixme} %\usepackage[numbers]{natbib} %\usepackage{caption} \usepackage{subfigure} \usepackage{color} \usepackage{tikz} \usetikzlibrary{decorations.markings} \usetikzlibrary{calc,shapes,positioning,arrows,snakes} \usepackage{array} \usepackage{verbatim} %\usepackage{bbold} \usepackage{dsfont} \usepackage{ifthen} %\usepackage{hyperref}   \DeclareMathOperator{\Tr}{Tr}   \makeatletter \newcommand{\thickhline}{%     \noalign {\ifnum 0=`}\fi \hrule height 1.25pt     \futurelet \reserved@a \@xhline } \newcolumntype{"}{@{\hskip\tabcolsep\vrule width 1.25pt\hskip\tabcolsep}} \makeatother   \begin{document}  %Title of paper \title{Test} \author{test name} \begin{abstract} ... \end{abstract}  \maketitle  \section{Section1} I refer to Reference \cite{SomeArticle}.  \bibliography{refs} \end{document}

Hi I am trying to include references into my paper but it keeps showing the following when I compile. I am using texstudio. Message: I'm skipping whatever remains of this command The style file: plain.bst I found no database files---while reading file term paper.aux Warning--I didn't find a database entry for "Astrov"  My code is like this:   \documentclass[letter,scriptaddress,twocolumn, prl,showkeys]{revtex4}  \usepackage{amssymb, amsmath, amstext, amscd, verbatim, mathtools, graphicx, float, caption, subcaption} \usepackage[utf8]{inputenc} \usepackage{natbib} \begin{document} This is my reference\cite[1]{Astrov}. \bibliography{term paper} \bibliographystyle{plain} \end{document}   They are all in the same directory. I am really panicing about this at the moment and apologize if similar questions have been asked before. Thanks in advance for your help!


Trying to move the editing cursor while editing a comment on android using the screen keyboard's arrow keys results in incorrect behavior.  Moving right or left causes the cursor to move in that direction, and jump back to the first/highest line of the comment on the screen.  Moving up works as intended. Moving down does nothing at all.  Using latest SE app on Android 4.2

After I have typed 2 or more lines on comment box, when the cursor is not on the first line, navigating the cursor using keys will bring the cursor to first line. This issue doesn't occur on Question or Answer box, only on comment box. This may be a minor bug, since user can reposition the cursor using touch screen, and not all input methods have navigation arrow.   Stack Exchange: 1.0.12 Android model: Nexus 4 Android version: 4.4.2 Keyboard:


It is possible to do this:  alias tm=cd /opt/tomcat alias tmbin=tm/bin  $ tmbin $pwd    /opt/tomcat/bin   ??  I know that I can do:  alias tmbin=tm;cd bin

How to create an alias that actually extends another alias of the same name in Bash?  Why:  I used to have GREP_OPTIONS set on .bashrc to something like this:  GREP_OPTIONS="-I --exclude=\*~"   I also had a script (let us say, setup-java.sh) which I would call before working on some Java projects. It would contain the line:  GREP_OPTIONS="$GREP_OPTIONS --exclude-dir=classes"   If I also use Sass, then I would call setup-sass.sh which contains the line:  GREP_OPTIONS="$GREP_OPTIONS --exclude-dir=\*/.sass-cache"   But  and apparently the standard solution is either create an alias or some script...


Let $a_1=1$ and $a_n=n(a_{n-1}+1)$ for $n=2,3,\dots$. Define $$P_n=\left(1+\frac{1}{a_1}\right)\left(1+\frac{1}{a_2}\right)\dots\left(1+\frac{1}{a_n}\right)$$Find $$\lim_{n \to \infty}P_n$$   Trial: $$1+\frac{1}{a_n}=1+\frac{1}{n(a_{n-1}+1)}\;.$$ But I can't simplyfy.Please help.