How to make a list as searchable list and make a selection onclick

I have a requirement where I need to search for list of items in a lwc and make a selection when clicked on a row.  Below is the thing that I've achieved so far.  Apex Class:  public with sharing class LwcMapIterationController {     @AuraEnabled(cacheable=true)     public static map<string, string> getAllObjects(){         map<string, string> objectList = new map<string, string>();         for ( Schema.SObjectType o : Schema.getGlobalDescribe().values() )         {             Schema.DescribeSObjectResult objResult = o.getDescribe();             objectList.put(objResult.getName(), objResult.getLabel());         }         return objectList;     }  }   LWC HTML:  <template>

Operation
             <lightning-radio-group name="Operation"                                     options={options}                                    value={value}                                    type="radio"></lightning-radio-group>

Objects

Object Name (Key)

                     <template for:each={mapData} for:item="mapKey">

{mapKey.key}

                     </template>

 </template>   LWC .js:  import { LightningElement, wire, track } from 'lwc'; import fetchMapData from '@salesforce/apex/LwcMapIterationController.getAllObjects';   export default class LwcMapIteration extends LightningElement {     value = '';      get options() {         return [             { label: 'Insert', value: 'option1' },             { label: 'Update', value: 'option2' },         ];     }     @track mapData= [];      @wire(fetchMapData)     wiredResult(result) {         if (result.data) {             //mapData = [];             var conts = result.data;             for(var key in conts){                 this.mapData.push({value:conts[key], key:key}); //Here we are creating the array to show on UI.             }         }     } }   Below is the screenshot of my output:    Now in my objects section, i need to wrap the list in a small list along with a search box. When any object name is searched in the search area/box, the related object needs to be displayed below and onclick,  a selection has to be made.  Can anyone please suggest me the possible solution here.


In scholar we can list our fields of interest. Whenever you click them, scholar shows the most cited researchers in that field like . Is there a way to sort google scholar profiles by country, in a given field?


Environment variables Mac OS Sierra location

I'm trying to set global environment variables in my mac so that they can be seen from anywhere. I've tried setting them in both /profile and /.bash_profile but still when I run my script from blender then call echo $MY_LIB_PATH and echo $MY_PRO_PATH only one of them $My_PRO_PATH exists, I'm not sure why, looks like there is another location where $My_PRO_PATH is set where I need to set $My_LIB_PATH as well. Any advice please?  this is my /etc/profile:  # System-wide .profile for sh(1)  if [ -x /usr/libexec/path_helper ]; then     eval `/usr/libexec/path_helper -s` fi  if [ "${BASH-no}" != "no" ]; then     [ -r /etc/bashrc ] && . /etc/bashrc fi  export MY_LIB_PATH=/usr/local/mypro/mylib/ export MY_PRO_PATH=/usr/local/mypro/   this is my bash_profile:  export MY_LIB_PATH=/usr/local/mypro/mylib/ export MY_PRO_PATH=/usr/local/mypro/


When will my device get the Android 4.4 update (KitKat)?

Android 4.4 (KitKat) was officially announced on October 31, 2013.  (You can review  at the official Android Developer's site or the .)  Of course, not all devices will get this update right away and others won't get it at all. Each manufacturer and carrier often choose to add their custom modifications which tend to delay the official release.  When will each device get Android 4.4, either officially or unofficially, if ever?  See also:


Can we have calculus without axiom of choice

Do we need axiom of choice for all the theorems studied in basic courses like calculus 1 and linear albgebra? could we build this theory just by using ZF axioms?


Is there any significant difference in how the new DOM element is created? Are there any advantages/disadvantages of using one way over another or does it come down to personal preference? I usually use the first way and only recently found out about the second one.  var test1 = $('div#test1'),     test2 = $('div#test2') ; // first way $('<div/>')     .addClass('mainClass subClass')     .attr('id', 'someId2')     .attr('data-extra', 'extraInfo')     .text('some text')     .appendTo(test2) ;  // second way $('<div/>',    {       'class': 'mainClass subClass',       'id': 'someId1',       'data-extra': 'extraInfo',       'text': 'some text'   })     .appendTo(test1) ;


Capturing Multiple Bracketed Sequences with Regex, Python 3

I'm using Python 3 and working with title strings that have a bracketed tag with a pair of names separated by a +. Like this: [John+Alice] A title here.  I've been using the regex expression re.search('\[(.+)\]', title) to get the tag [John+Alice], which is fine, but it's a problem when encountering a title with more than one bracketed tag:  [John+Alice] [Hayley + Serene] Another title.   That gives me [John+Alice] [Hayley + Serene], when I would prefer [John+Alice] and [Hayley + Serene].   How can I modify the regex to give me all bracketed tags that have + between [ and ]? Thanks.


Kubuntu - can not enter wifi credentials after adding external wifi card

My ethernet connection is quite unreliable (It uses powerline adapters) so I bought an external wifi adapter. I have plugged it in and run the command sudo ip address add 192.168.0.39/24 brd + dev enp7s0, and KDE has detected it. Unfortunately, it doesn't seem to realise it is a wireless network and therefore needs credentials. Where I could normally find a place to enter credentials (the network widget, system settings) there are none. KDE reports that the device is connected in the UI. How do I make it work out that it is wireless and therefore needs credentials? Edit: With ethernet plugged out, (USB) adapter plugged in: $ ip address show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000     link/ether 04:d9:f5:8a:f5:e0 brd ff:ff:ff:ff:ff:ff  With ethernet plugged in, adapter plugged in: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000     link/ether 04:d9:f5:8a:f5:e0 brd ff:ff:ff:ff:ff:ff     inet 192.168.0.51/24 brd 192.168.0.255 scope global dynamic noprefixroute enp7s0        valid_lft 863988sec preferred_lft 863988sec     inet6 fe80::7eb1:eca2:96a0:fe5c/64 scope link noprefixroute         valid_lft forever preferred_lft forever  With just ethernet: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: enp7s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000     link/ether 04:d9:f5:8a:f5:e0 brd ff:ff:ff:ff:ff:ff     inet 192.168.0.51/24 brd 192.168.0.255 scope global dynamic noprefixroute enp7s0        valid_lft 863960sec preferred_lft 863960sec     inet6 fe80::7eb1:eca2:96a0:fe5c/64 scope link noprefixroute         valid_lft forever preferred_lft forever  With nothing: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host         valid_lft forever preferred_lft forever 2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000     link/ether 04:d9:f5:8a:f5:e0 brd ff:ff:ff:ff:ff:ff  lsusb, adapter plugged in: Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 1d57:32da Xenta 2.4GHz Receiver (Keyboard and Mouse) Bus 001 Device 004: ID 0bda:b812 Realtek Semiconductor Corp. 802.11ac NIC Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  I'm not adding it with it plugged out because it's obviously the Bus 001 Device 004: ID 0bda:b812 Realtek Semiconductor Corp. 802.11ac NIC. There were no restarts between any of these changes.


Security benefit of using a 'standard' user account?

As the sole user of my macbook, are there any security benefits of using a standard user account for day-to-day usage and entering in the admin password if needed? I have found years old, inconclusive, forum arguments, but would be good to hear an updated view. Thanks!


Good and thorough online and/or free Matroid Theory references?

I'm studying a course on Matroid theory. Sadly, I can't really afford buying the textbook, so I only use the lecture notes, which aren't enough for me.   Are there any good and thorough online and or/free references on Matroid theory?   Thanks in advance for any assistance!


Do I have to use image name to import it with SDL 2.0?

Lets say i have folder with images and I want to import all of those images with IMG_Load or SDL_LoadBMP no matter what the names of those images are and no matter how many of those images are in that folder. For instance, if I have 10 images in folder "Images" I need to use IMG_Load 10 times, and every time to write name of every single image in IMG_Load function. So if I add another 10 pictures with different names this obviously wont work. So my question is how can I import images from folder with arbitrary amount of those images in it using SDL? So to be precise, is there a way to import those images with integers or array? I mean to sort names of those images ascending and call them by numbers. IMG_Load(1), IMG_Load(2), ...


Is it safe to delete the recovery partition of Windows 8.1?

I have a convertible laptop, Asus Transformer T200TA, which came with Windows 8.1 preinstalled (unfortunately)  I'd like to try setting up Ubuntu there but all the space is taken by the Windows stuff.  There's a 8G recovery partition which contains whole lot of weird files which previously were on USB drives I booted from.  Is it safe to remove the recovery partition? Does it serve any reasonable purpose if I have already done a backup with Clonezilla?


"grep string | grep string" with awk without pipe

Is there a way  to do: output | grep "string1" | grep "string2"   BUT with awk, WITHOUT PIPE? Something like: output | awk '/string1/ | /string2/ {print $XY}'  Result should be subset of matches, if tha makes sense.


Hard Limit to SQL Server 2012 Memory Usage

It seems that even in SQL Server 2012, the maximum memory usage settings is not a hard limit. I've read some SQLOS Team blogs about this, and those as well as several MSDN articles seem to state that the maximum memory usage is just that - a maximum.  But that doesn't appear to be accurate.  I have a QA environment and the app and SQL are on the same server (this is typical for our application). I've tried setting maximum memory usage to both 8GB and 4GB, but eventually, usually within 24 hours, SQL is utilizing about 13GB (all available) of memory.  Is there an actual way to hard limit SQL Server to not use more than x GB of memory?  Edit: is it possible that the databases themselves being in SQL Server 2008 compatibility mode is causing this?  Target Memory (Performance Counter) is 100% of the 4GB maximum memory value I gave it. Now, of course, it's currently lower because I had to restart SQL Server services to allow anything else to work properly.  select * from sys.dm_os_process_memory:


My sister hates being late for work. She likes to arrive __________ time.  I know the answer is "on". What about "in"? Can we also use it in this case?


Java Propertie File not found when running on command line

In my program, a Java8 application library, written on NetBeans, when I go to the dist folder and run Project.jar using the command:  java -jar Project.jar   I get the following error:  Sorry, unable to find config.properties Exception in thread "main" java.lang.NullPointerException   It seems it cannot create the input stream necessary to read the properties file.  Here is the class I use to read the properties:  public class PropertyAccess {      public static String getPropertyFromFile(String propertyName){         String ret = "";         //System.out.println(propertyName);         InputStream input = null;         Properties prop  = new Properties();          try {             String filename = "config.properties";             input = PropertyAccess.class.getResourceAsStream(filename);             if(input == null) {                     System.out.println("Sorry, unable to find " + filename);             }              //input = PropertyAccess.class.getResourceAsStream("/config/config.properties");             //input = new FileInputStream("config/config.properties");              input = PropertyAccess.class.getClassLoader().getResourceAsStream("config/config.properties");              prop.load(input);             ret =  prop.getProperty(propertyName);         } catch (IOException ex) {             ex.printStackTrace();         } finally {             if (input != null) {                 try {                     input.close();                 } catch (IOException e) {                     e.printStackTrace();                 }             }         }          return ret;     } }   There is a bad design/implementation where I load the prop file every time I need to read a property from file, this will be corrected before the main release, but this is not what is causing the issue.  Can someone explain how to fix this?  I've tried to add the file to the classpath, but  it also doesnt work.


Distributed - across multiple databases or servers - Transactions

I have some doubts related to transactions in SQL. I perform below steps.   Connection 1 open for DB1 database Begin transaction for Connection 1 Run the commands on Connection 1 Connection 2 open for DB2 database Begin transaction for Connection 2 Run the commands on Connection 2 Commit transaction for Connection 2 Commit transaction for Connection 1   If  commit transaction on Connection 1 fails(rollback) then transaction on connection 2 should rollback. Is it possible? How it can be done?


timing out when trying to connect to my own server using Hamachi

Recently I've been unable to connect to my Minecraft server which I play on with a friend. It seems my friend has been able to access it just fine, but every time I try to connect I get the error:     connection lost: timed out   The strange thing is, this happened seemingly out of nowhere while I was playing two days ago. I lost my connection to the server while I was playing, and then when I tried to reconnect, I got this error. I've looked all over the internet for a solution, but I've tried everything that was suggested: my firewall is completely turned off, and I have set both inbound and outbound rules for hamachi. Resetting the server doesn't seem to help, nor does restarting my machine. Does anyone have a solution to this problem?  I've seen a somewhat similar problem raised in , but all of its answers either don't work for me, or are not applicable because I'm using Hamachi instead of port forwarding. My firewall settings have not changed since I was previously able to connect--same for my router/modem settings. IPconfig is not applicable because I'm using the IP address given to me by Hamachi, not the IP address of my machine. I didn't specify a port when I was initially able to connect. Additionally, the IP address of the Hamachi network I'm using hasn't changed since I was able to connect. And I can confirm that I do indeed have a working internet connection. Therefore I conclude that my problem is an entirely separate one from the one raise in .


Difference between fermi energy level in metals and semiconductors

It is not exactly a question its a kind of confusion ... Here my confusion starts... what is meant by Fermi energy level?? The only definition that i found was the energy level at which the probability of finding of electron is 50%..  First question is whether this definition applicable to all the materials or only for metals or only for semiconductors??  But in semi conductors the Fermi energy level is in mid of the valency band and the conduction band...   So my second question was in semi conductors whether the Fermi energy level is the maximum energy that the electron in that material is having or it is a particular energy that 50% of the electrons are having the energy more than that level ??  sorry if i am messing up the topic i am keeping all the confusions that are having in my mind in to words.  Last question was in if electron is in the highest energy level of the conduction band what does it mean ?? electron is having the energy only equal to the energy level????


Two digits after decimal point [Float number]

I've tried to cut a float number to get the number with only two digits afer decimal point using this method:  private float two_digits_converter(float f) {         DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();         symbols.setDecimalSeparator('.');         DecimalFormat decimalFormat = new DecimalFormat("#.##", symbols);         return Float.valueOf(decimalFormat.format(f));     }   But this method doesn't work in all devices. I keep getting this exception on some devices:  java.lang.RuntimeException:    at android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:941)   at android.os.Handler.handleCallback (Handler.java:739)   at android.os.Handler.dispatchMessage (Handler.java:95)   at android.os.Looper.loop (Looper.java:145)   at android.app.ActivityThread.main (ActivityThread.java:6117)   at java.lang.reflect.Method.invoke (Native Method)   at java.lang.reflect.Method.invoke (Method.java:372)   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1399)   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1194) Caused by: java.lang.NumberFormatException:    at java.lang.StringToReal.invalidReal (StringToReal.java:63)   at java.lang.StringToReal.initialParse (StringToReal.java:164)   at java.lang.StringToReal.parseFloat (StringToReal.java:323)   at java.lang.Float.parseFloat (Float.java:306)   at java.lang.Float.valueOf (Float.java:343)   at com.great.two_digits_converter (GreatService.java:908)   at at com.great.GreatService.access$100 (GreatService.java:70)   at com.great.GreatService$4.onReceive (GreatService.java:433)   at android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:931)   The exception is on this line:  return Float.valueOf(decimalFormat.format(f));  Would be great if you can share some more general methods that works better.  UPDATE:  I ended up doing it this way :    private float two_digits_converter(float f) {         String new_s = String.format(Locale.US,"%.2f", f);         return Float.valueOf(new_s);     }


My Pc suddenly had Bootmgr missing following up with a "Reboot and select proper boot device or insert boot media in selected boot device

Hi guys I today started up my pc today(like any other day) and suddenly on desktop my pc freezes completely ctrl+alt+del doesn't work.  So I restarted my pc and suddenly it gave me the bootmgr is missing error, I then unplugged my ext hdd(not that it normally gave me issues) to then get the next issue which is "Reboot and select proper boot device or insert boot media in selected boot device and press a key".  I have no idea where this issue came from, it's all so sudden.   What I did so far is:  Restart it a few times. Check my bios for the boot priority(My SSD is all of a sudden missing) only my disk drive is detectable. Noticed my Bios build is 1107, My motherboard is the Asus P8H67M-Pro, went to the site and saw the latest build 1502 so it's quite outdated although it doesn't reach windows since my ssd is missing so I can't safe start to update my bios.  My SSD is by the way not new, I didn't add anything to my pc external nor internal and my SSD brand is OCZ Vertex 4 120gb. Also I opened up my pc because I read my ssd should be on the sata 0 but I don't see any numbers on the cables for I'm also uncertain which it needs plugged in.  Please help me, thanks in advance.


Can time pass for a photon if it's moving in a medium?

If time does not pass for a photon traveling at the speed of light, which can only occur when traveling in a vacuum, what happens when it is slowed down by traveling through non vacuum space like water, does it time pass for it then?


How to reinstall Windows 8 after it has been deleted?

I have a laptop on which a Ubuntu 14.04 installation removed my complete Windows 8 installation.   How can I install Windows again? I do not have any CDs or DVDs for Windows.


how to recover a laptop which has been formatted and a new windows is installed on it?

My mistakenly without getting a backup installed a new windows on it and actually I have formatted the disk during windows installation as well, is there a live bootable tool to recover my files in my laptop disk?


Is Force lightning from the feet plausible?

In all the canons of Star Wars, there has not been one instance of a Force-user projecting Force lightning from their feet. Why? Is it implausible?


Does Blender support other languages, such as ML-IN(malayalam) for the text curve?

I was trying to trying to create a text curve in my language( ML-IN(malayalam)) and it didn't even show up please anyone know how to make it work?


Nagios NRPE unable to read output on remote system only

I'm running NRPE on a server with the check_disk command. I have setup sudo and the command works ok as the nagios user on the server.  command[check_disk]=/usr/bin/sudo /usr/local/nagios/libexec/check_disk -w 10% -c 5% -x /dev/cdrom -x /dev/shm -x /nfs01 -x /nfshome -x /mnt/hlmon01/shared -x /mnt/hlmon01/shared -A -i '.gvfs'  /usr/bin/sudo /usr/local/nagios/libexec/check_disk -w 10% -c 5% -x /dev/cdrom -x /dev/shm -x /nfs01 -x /nfshome -x /mnt/hlmon01/shared -x /mnt/hlmon01/shared -A -i '.gv fs'  DISK OK - free space: / 44730 MB (93% inode=98%); /boot 351 MB (78% inode=99%); /var/lib/xenstored 5593 MB (99% inode=99%); /poolfsmnt/0004fb0000050000577933960ee5846b 102134 MB (99% inode=99%); /OVS/Repositories/0004fb0000030000755a9cd0ee8ac4da 1736686 MB (33% inode=33%);| /=2962MB;45241;47754;0;50268 /boot=95MB;428;452;0;476 /var/lib/xenstored=0MB;5033;5313;0;5593 /poolfsmnt/0004fb0000050000577933960ee5846b=265MB;92160;97280;0;102400 /OVS/Repositories/0004fb0000030000755a9cd0ee8ac4da=3506194MB;4718592;4980736;0;5242880   When I run this command on the nagios server I am getting the following error:  ./check_nrpe -H test_server -c check_disk  NRPE: Unable to read output   Can anyone help me out on how to debug this?  Thanks


Irreducible polynomials of degree 3 and 5

Two part question:  1) There are three irreducible cubic polynomials $\mathbb F_2$  Aproach: Bruteforce, there are not as much cubic polynomials, just 8 of them:  $x^3$  $x^3+1$  $x^3+x$  $x^3+x+1$  $x^3+x^2$  $x^3+x^2+1$  $x^3+x^2+x$  $x^3+x^2+x+1$  Only three of them are irreducible(??): $x^3+1$,$x^3+x+1$ and $x^3+x^2+1$  Reality check - do i miss point of irreducible polynomial here, and should consider adding $x^3+x^2+x+1$ to irreducible list? It is reducible, bit different way then other polynomials: $x^3+x^2+x+1=(x+1)^3$  2) Only irreducible polynomial of degree 2 over $\mathbb F_2$ is $x^2+x+1$. Does it help, with conjuction of part 1, to find all irreducible polynomials of degree 5?


How can the number of genes increase through evolution?

I am aware of the basics of evolutionary theory, however I don't understand how mutations can add genes over time.   Am I correct in thinking that creatures within the same species who mutate to have an additional gene in their genome would normally be infertile?  Or am I misunderstanding that?  Can someone explain the process of the creation of genetic material through evolution?  Citation to a decent academic paper or book on the matter would be appreciated too.


I want to send a pdf file to server using ajax.But I couldn't find any examples or codes for   this problem.How can i get the solution?Please help me


What is the distinction between a professional and amateur photographer?

I describe myself as an amateur photographer to other photographers and avoid using qualifiers like "pro" or "amateur" when talking to clients, but after reading a number of articles in Rangefinder that really attacked amateurs I started wondering where the line is.  So what is the distinction between a professional and amateur photographer?  I describe myself as an amateur because I have had no art training and photography is not my primary occupation.  Side note:  I'm disappointed that people consider "professional" or "amateur" descriptions of the quality of a photographer's work.  Pros can take some pretty crummy pictures and amateurs can take some spectacular ones.


Is philosophy the foundation for theology or is theology the foundation for philosophy?

Possibly also known as the question of which comes first, epistemology or metaphysics?  My worldview is conservative Protestant.  Any resources are welcome that delve into this.


Close button on question page on mobile version of SO has recently stopped functioning

I'm using mobile version of stackoverflow.com every now and then and have been able to spot a problem that close button on question page is not functioning: close dialog doesn't open.  The problem has been reproduced in the latest versions of Chrome mobile and Opera Mini browsers on iPhone 4G. The problem might be connected with the recent update of close dialog functionality, as it had been working before that update. Switching to 'full site version' yields correct functionality.  Technically, the close button sends a redirect with a hash sign appended to the current URL with no subsequent action undertaken. Probably there might be an error in the JavaScript engine used on SO.  Any clues on such behaviour?


How can I prove that compact subset iff sequentially compact in second countable topological spaces?

Let $X$ be a second countable topological space. Then $A \subset X$ is a compact subset of $X$ if and only if every sequence $\{x_{n}\}_{n \in \mathbb{N}} \subset A$ has a convergent sub-sequence with a limit point $x \in A$.  I can prove it when $X$ is a metrizable space, but I'm having trouble when $X$ is only second countable.  I'll appreciate any help. Thanks!


How to host a serious discussion on a complex economic subtopic like President Trump's trade policy

Paul Krugman will try to answer questions submitted to a NY times Facebook page in his opinion column.   See  .  Already many subsidiary intelligent questions have been posted as comments.    This appears as a discussion worthy of, basically an online open, lightly moderated discussion/course, which might vastly overflow The NY Times Facebook page.     Stackexchange seems to have a good evolvable design structure for this.    The questions do not necessarily appear worthy of their own Stack, (e.g. like math or economics).     Should it just start as one giant question and evolve from there?     Are there substacks in SE?    Suggestions? Thanks, -sg


I am looking for startup.blend file on linux debian. As explained , it should be under config folder. but I did not find it. Any help?


When I launch an FTP transfer from a client machine, it fails because it cannot connect to the server. With tcpdump I can see that the client sends a SYN to the server, and I can also see that the server received the SYN but it does not respond.    I made sure that the source/destination MAC address is correct, same for IP address.  There is absolutely no firewall rules whatsoever.  Any ideas how I can debug the issue?


How do I install a fingerprint reader on Lenovo ThinkPad?

I have a  with a fingerprint reader:    How to make Ubuntu recognise it and use it for login?  I already tried:  sudo add-apt-repository ppa:fingerprint/fingerprint-gui sudo apt-get update   ... but this GUI did not recognizes my device. Does anyone knows any other option?


Show that $f$ attains its absolute minimum if $\displaystyle\lim_{x\to\pm\infty}f(x)=+\infty$

Let $f\in C(\mathbb{R})$  be a function that satisfies $\displaystyle\lim_{x\to\pm\infty}f(x)=+\infty$. Show that $f$ attains its absolute minimum, i.e. there is a point $x_0\in\mathbb{R}$ such that $f(x)\geq f(x_0)$ for all $x\in\mathbb{R}$.  I was thinking about studying the set $M=\{L\in\mathbb{R}: f(x)\geq L, \forall x\in\mathbb{R}\}$. But I'm not sure if this is the right way to proceed.


Why isn’t singular ‘they’ used with 3Sg verb forms?

There are many (duplicate) questions about the acceptance, popularity and history of singular they (and their, them and themself) around here, it even got a tag of its own. If I didn’t miss anything, however, the proper verb form hasn’t been questioned yet.  As we all know, English third person singular pronouns (it, she, he and one, +body), names (Alice, Bob, …) and nouns (student, teacher, …) demand the +(e)s suffix be added to the finite verb form in simple present, where some auxiliary verbs have a “special” form (is < *bes / *ares and has < *haves). All other subjects don’t, including plural third person pronoun they.  When the plural you replaced thou (with thee, thy / thine), the other marked verb form that had remained in English – i.e. suffix +(e)st or +t – vanished, too. The first and second persons only ever appear as pronouns (I, we; you), not names or nouns, so there was no strong inclination to keep the verbal inflection.  The second person precedent would suggest that singular they be used with uninflected verb forms which is how it’s usually encountered in the wild. Assuming that they someday replaces he and she (and maybe it) it would lead to disagreement with the words the pronoun stands in for:        Alice         goes to her   place  by herself.   Bob           goes to his   place  by himself.   Alice and Bob go   to their place  by themselves. – (common)   Alice and Bob go   to their places by themselves. – (separate)                  She  goes to her   place  by herself.   He   goes to his   place  by himself.   They go   to their place  by themselves.   They go   to their places by themselves.                  They ?goes to their place  by themself.   ditto   They  go   to their place  by themselves.   They  go   to their places by themselves.                  They ?go to their place  by ?themselves.   ditto   They  go to their place  by  themselves.   They  go to their places by  themselves.      So why doesn’t singular they afford s on present-tense verbs like all other third person singular subjects do?   I learned about singular they only long after I had been taught English as a second language in school. That’s why it’s still a conscious decision to use it and hence I could easily adapt to use s forms with it, but would that sound and look funny / strange / wrong to native speakers?


If I write the following class:  public class Example {        int j;       int k;        public Example(int j, int k) {            j = j;            k = k;       }        public static void main(String[] args) {            Example exm = new Example(1,2);            System.out.println(exm.j);            System.out.println(exm.k);       }  }   The program compiles, but when I run the program, the main method will print out two 0s. I know that in order to say that I want to initialize the instance variables in the constructor I have to write:  this.j = j; this.k = k;   But if I don't write it, then which variable is evaluated (or considered) in the constructor (on the left and on the write hand side of the expressions)? Is is the argument or the instance variable? Does it make a difference?  Are there other cases where the use of this is obligatory?


How Do You Test Method For Thread Safety With JUnit

I have a implemented a class that acts as a Cache for objects. It has a DelayQueue for removing objects from cache.   class mySingletonClass {   ConcurrentHashMap map<String,MyObject>();   DelayQueue queue <MyObject>();     boolean alreadySeen(MyObject myObject) {     MyObject obj = map.putIfAbsent(myObject.getID(),myObject);     if(obj != null) return true;     queue.add(myObject);     return false; }   It works fine for single threaded. I am trying to test it with multiple threads concurrently. I have tried to reason about if this method is thread safe but I am unsure. I have tried the static analyzer FindBugs plugin. I am unsure how to unit test this. I have never used java.util.concurrent nor worked with threads so I am trying to learn it all relatively quickly.   My thoughts for unit testing were create an AtomicInteger and run multiple threads trying to add the same object to the map. If the method returns true increment the integer. This integer should equal one if successful. As my second test I was thinking similarly with AtomicInteger try to have maybe 10? threads with each thread adding a list of 5 unique objects and ensure the total after all threads are done is 5.  I have been playing with Executors and creating Runnable methods but I am getting NullPointerExceptions and I am not sure exactly what I am doing.  I'm looking for:   Is this method thread safe? If not is there a way to make it thread safe (other than just making the method synchronized)? How to I implement the two unit tests with multiple threads in junit4?


Stack Exchange iOS app - Badge reputation difference between site and app

When I go on my profile, I've got different reputation badge than on the application.  For example , on the site, for the iOS tag, I've got 59, but on the iOS app, I've got 72  Website profile :    Mobile profile :


Adding a column vector inside figure's caption, problem

I want to add a column vector inside a figure's caption, but it just doesn't work. However, I could write math inside captions, normally.  \documentclass[12pt]{article} \usepackage{tikz} \usepackage{amsmath}  \begin{document}  \begin{figure} \centering \begin{tikzpicture}[scale=1.5] \draw [step=0.5, thin, gray!40] (-1.4,-1.4) grid (1.4,1.4);  \end{tikzpicture} \caption{I want to add a column vector in here} %\caption{the vector $\left(\begin{smallmatrix}k \\ m\end{smallmatrix}\right)$} \end{figure}  \end{document}   I have commented the line which gives me the error.


Whenever I download a model on DeviantArt I get a .blend in my model, what is that?


Let $\omega = e^{(\frac{2\pi i}{n})}$ why $1+ \omega + \omega^{2} + ... + \omega^{n-1} = 0 $?  I saw this on a algebra PPT slice. However the teacher did not explain why this equation is correct, can somebody show me some clue?   Thank you for your honest help!


Maintaining attributes in feature class in memory using ArcPy?

i am trying to feature to line conversion  that are not multipart lines and Merge output feature class but its loses the attributes.  Here is my code:  arcpy.env.workspace="in_memory/"  with arcpy.da.SearchCursor(LINEFEATURECLASS,['shape@']) as sip:     i=0     for row in sip:            geom=row[0]            if not geom.isMultipart:               op="polyLine"+str(i)             arcpy.FeatureToLine_management(geom,op,"0.001 Meters","ATTRIBUTES")                                   i=i+1     fclist=arcpy.ListFeatureClasses("","Polyline")     Merge=arcpy.Merge_management(fclist,"D://Merge_Polyline")    Tool working but it losing attributes.


May I please have the ability to flag posts just for my attention?

In short, can we have (or somebody tell me of an existing way) the ability to flag posts for personal review?  The reason for this is because I often see posts (mainly answers) that I feel need to be removed, but because I mainly check out the new questions I often avoid flagging a lot of them because I want to give the user a chance to improve the post. It would be nice if I could flag them for personal use, and then I could check my list for posts that are a few days old see if they still justify flagging to be removed.  Maybe "flagging" is the wrong term, I wouldn't want to have a feature that is specific for such a small number of users (or even just me). Perhaps something more generic like "memorable posts" or whatever. I don't really care what it's called, only that it would fit my needs.  Any thoughts?  EDIT: What I mean by "existing way" is an actual proper way to do it. Not a hack-around. If I wanted that I would create a Google doc and fill it with links. I think based on current replies that it is safe to say there is no decent feature for this so far


Can I activate an ability if that ability has no legal targets?

If an opponent gains control of my turn using  could they spend all my mana on  if I don't have any creatures in my graveyard?


If I cannot get sufficient recommendation letters, what can I do?

I know you should build a good network with your professors as early as possible, not only it will help your study, but also you can get great recommendation letter from them.   But not all students aim at graduate school when they start their undergraduate, for example, I only became interest in research and decide on going to graduate school after my third year of undergraduate. At that time, I have done a research project with a professor and certainly I can ask him for one. However, most schools require 2-3 recommendation letters.  I know a good recommendation letter should speak about the candidate research potential instead of 'did well in my class', but in my case, only my undergraduate adviser can speak about that. What should I do besides asking recommendation letter from professors I get A grade in their classes?


Projectile motion equations @ very (!) high starting velocity

I've already searched Physics StackExchange for some similar question but I didn't find anything about this.  Assumptions:   Earth is a perfect sphere with it's core (X,Y,Z) -> (0,0,0) as a reference-frame center Air resistance can be ignored Earth rotation can be ignored Moon gravity-effect can be ignored   And if I know (projectile starting properties):   Current Earth GPS-coordinates Starting angle Starting direction (relative to (0,0,0)) Starting velocity (can be larger than Earth-escaping speed) (mass of the projectile is irrelevant (I guess) when we know starting velocity of the projectile)   How could I calculate aprox. coordinates of a projectile landing somewhere around the Earth globe (OR detect that projectile will "leave" the Earth)?  EDIT: I've found tons of links on the net about projectile trajectories when starting velocities are quite small (& Earth can be considered like a flat plane), but non about upper situation.


How much of the world can one see in a pensieve that the original owner of the memory did not?

raised a question for me    During the Chamber of Secrets while Harry is in Riddle's memory he is described as gliding alongside Riddle, watching whatever Riddle saw (however this not really being the pensieve, riddle might be explicitly directing what Harry could see)     Again, when Harry is in Snape's memory in Order of the Phoenix, it is described that Harry hoped Snape would go out of the exam hall in such a way that his parent's would stay in view, so that he could watch them, because otherwise if Snape went in the wrong direction, he would not see his parent's in the memory either      But then again, in the answer linked in that comment, although the memory is from hokey, when she leaves the room, Harry and Dumbledore do not glide out of the room with her, but instead stay in there and see and hear the events that happened between Riddle and Hepzibah Smith    What is the extent of the pensieve's power for showing the world not seen by the original owner of the memory?


I can not get my DVD's to work. Crashing VLC player

I can not get my DVDs to work in vlc or any other player. How do I fix this? I have tried to install vlc gremlin and other players.


How does the step argument work in Slicing?

How does this works? print("string"[1::-1])  According to me: If I consider one part of the slicing, then its print(string[1:]), which in my observation should produce tring. And now the -1 step should reverse the slicing produced to gnirt, but it doesn't happens. Instead the first two items of the string are reversed that is ts. What am I lacking in my understanding?


By mistake ran command on terminal and Xubuntu is started

I am new at Ubuntu and by mistake, I ran a command to install Xubuntu OS while I was trying to install sound drivers by taking help from . As a result, I lost my root account on Ubuntu, and Xubuntu is started on my laptop. Is there any way to get back to Ubuntu and get access to my user account which I have lost and in which I have all of my data? Commands that I ran: sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils sudo apt-get install linux-sound-base alsa-base alsa-utils sudo apt-get install gdm ubuntu-desktop sudo apt-get install gdm xubuntu-desktop sudo reboot


Let $1<p<\infty,$show that  $$\bigg(\int_{0}^{\infty}\bigg(\frac{1}{x}\int_{0}^{x}|f(t)|dt\bigg)^{p}dx\bigg)^{\frac{1}{p}}\le\frac{p}{p-1}\lVert f\rVert_{L^{p}(0,\infty)}$$  Here is my attempt :  \begin{align} \bigg(\int_{0}^{\infty}\bigg(\frac{1}{x}\int_{0}^{x}|f(t)|dt\bigg)^{p}dx\bigg)^{\frac{1}{p}}&\le\int_{0}^{\infty}\bigg(\int_{t}^{\infty}\frac{|f(t)|^{p}}{x^{p}}~dx\bigg)^{\frac{1}{p}}dt\\ &\le\int_{0}^{\infty}\bigg(|f(t)|^{p}\int_{t}^{\infty}\frac{1}{x^{p}}~dx\bigg)^{\frac{1}{p}}dt\\ &=\int_{0}^{\infty}\bigg(|f(t)|^{p}\frac{t^{1-p}}{p-1}\bigg)^{\frac{1}{p}}dt \end{align}  ,where the first I used minkowski inequality of integral form.  Then I stuck with it . But I got a hint to apply the convolution with some function .  Is there anybody that can show more details ? Thanks for considering my request .


What is the request to "Confirm Mac Password" about?

Since changing my Mac password I constantly see the message "" in my iCloud settings.    What is this for:   What does providing this password do?  What does not providing this password not to (e.g., are there features I'll miss out on)? Can I safely ignore it?  Is it something I should worry about (and if so, how do I get rid of it)?


calling setter function ruby (see comment after fname=(fname)

#Creating a class that will count words in any object file class File_handling   attr_reader :fname    def initialize(fname)     #@fname = fname     if File.exist? fname       @fname = fname     else       fname=(fname)#why this doesnt work to call the function below     end   end    def fname=(finame)     if File.exist? finame       @fname = finame     else       p "Enter a good file name >>> "       filename = gets.chomp       @fname=(filename)     end   end    def printfile()     File.foreach(@fname) do |line|       puts line.chomp     end   end end  f1 = File_handling.new('text.txt') f1.printfile()  def printfiles(fname)   File.foreach(fname) do |line|     puts line   end end  p printfiles('test.txt')   I'm new to Ruby and trying to understand a few things. I'm not really finished with the class but I would like to know why calling the fname= function above does not work I never get the else message no matter what file name I enter


Solve $660x\equiv 1$ mod $43$   I found $660\equiv 15$ mod $43$  So I want to solve $15x\equiv 1$ mod $43$  I tried some low numbers but none of them worked. I'm not sure what to do now.


Update Parent Case from the Child Case fails

I am trying to create a trigger to update the parent casestatus when a child case is created. I have the below trigger on after insert like below trigger setTISStatusFromTGS on Case (after insert) {                         ID recordTypeTGS                = Schema.SObjectType.Case.getRecordTypeInfosByName().get('TGS').getRecordTypeId();             ID recordTypeTIS                = Schema.SObjectType.Case.getRecordTypeInfosByName().get('TIS').getRecordTypeId();                         Set<Id> parentIds = new Set<Id>();              List<Case> csParentList = new List<Case>();                 for(Case newCase : trigger.new){                 if(newCase.RecordTypeId == recordTypeTGS && newCase.ParentId != '')                 {                     parentIds.add(newCase.ParentId);                 }            }                        if(!parentIds.isEmpty())             {                 csParentList = [Select Id, Status From Case Where Id In :parentIds and RecordTypeId =: recordTypeTIS ];             }                        List<Case> csUpdateList = new List<Case>();            for (Case cs : csParentList)            {                if(cs.Status != 'Closed' && cs.Status != 'Closed as Duplicate' )                {                    cs.Status = 'Pending-Internal';                    csUpdateList.add(cs);                }            }                     if(csUpdateList.size()>0) {                 update csUpdateList;             } }  But when I tried to create the child record I get the error like below Review the errors on this page. setTISStatusFromTGS: execution of AfterInsert caused by: System.StringException: Invalid id: ()  Can anyone please suggest what I am missing here.


I am creating a log-in website where users use username and password to log-in and write their dairy. I have created a SQL database named 'diary' which can be accessed using the following on my localhost.  $dbhost = 'localhost:3306'; $dbuname = 'diary'; $dbpass = 'guest123';   Inside the database diary I created a table which stores 3 information of type VARCHAR i.e.   user_id  password (I just used plain-text for tutorial purpose) name   In the above example I provided the password and the name of the database in the following code, to have access to the database.  $conn = mysqli_connect($dbhost, $dbuname, $dbpass);   My question is, it is safe to hard-code the password of the database (eg. password of database diary)? Considering an online application, if a hacker can hack into the server, then he will have full access to the database, because I have hard-coded the password in my program.   What I have assumed in the above example is that I have one database diary that stores all the users log-in information.     Another alternative is that every user has their own database which is created when they sign-up. However, I believe that this option is not an ideal  because all the databases of individual users are dis-joint and it may be difficult to manage.   I just need some explanations of this issues as I am new to this part, especially SQL. Say I have 1 million users, Which approach is better way to implement this example?


How to find $\lim_{n \rightarrow +\infty } \left(\sqrt[m]{\prod_{i=1}^{m}(n+{a}_{i})}-n\right)$?

I think it is zero; $$\lim_{n \rightarrow +\infty } \left(\sqrt[m]{\prod_{i=1}^{m}(n+{a}_{i})}-n\right)$$ we can make that steps: $$\lim_{n \rightarrow +\infty } \left(\sqrt[m]{{n}^{m}\prod_{i=1}^{m}\left(1+\frac{a_i}n\right)}-n\right)$$ and then: $$\lim_{n \rightarrow +\infty } \left(n \cdot \sqrt[m]{\prod_{i=1}^{m}\left(1+\frac{{a}_{i}}{n}\right)}-n\right)$$ each bracket aspires to unit so we have:  $$\lim_{n\rightarrow \infty} (n-n)$$ and..  $$\lim_{n\rightarrow \infty} (0) = 0$$


When should a verb be followed by a gerund instead of an infinitive?

Some verbs are followed by ing, e.g. I enjoy swimming. We can't say I enjoy to swim. Likewise, some verbs are followed by to, e.g. I decided to make a plan.   Which particular verbs are followed by ing and to? Can you please provide a list for that?  Moreover, which verbs can be followed by both without having the meaning changed?


Install older version of software and dependencies

I need to install R 3.0.2 because a needed library isn't compatible with 3.0.3 yet (the latest).   I can install the older version of R like so:  sudo apt-get install r-base=3.0.2-1precise0   However all the dependencies of r-base try and install with 3.0.3  root@foo:~# apt-get install r-base=3.0.2-1precise0 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  r-base : Depends: r-recommended (= 3.0.2-1precise0) but 3.0.3-1precise0 is to be installed E: Unable to correct problems, you have held broken packages.   How can I install r-base 3.0.2 and all the dependencies as 3.0.2 ?


How do I get JQuery UI themes to show up in CakePHP?

I'm having problem showing JQuery UI themes for my CakePHP application. I placed the theme at app/webroot/lib/jquery.ui/ . Now on my layout I imported the theme using :   echo $html->css('/lib/jquery-ui/theme/ui.all');   I'm usingthe DatePicker widget. On my page, I can see that the my textbox was showing the date picker when focused, but the theme was not applied properly. I can't see the background images. I know that the theme (or css) has been imported since I can see some changes in the DatePicker (fonts, spacings, etc.). I just couldn't see the background images.   I don't know if this has something to do with my problem, but I'm also using YUI.


If $r_1,r_2$ be the length of the perpendicular chords drawn through the vertex of a parabola $y^2=4ax$, then show that $$(r_1r_2)^{4/3}=16a^2(r_1^{2/3}+r_2^{2/3})$$


$f$ is discontinuous $\iff$ kernel($f$) is dense in X

Problem: Let $X$ be a normed space and $f$ be a non-zero linear functional on $X$. Then prove that $f$ is discontinuous $\iff$   kernel($f$) is dense in $X$.   I have proved that if $f$ is discontinuous, then kernel($f$) is dense in $X$. How to prove the other way?


footnote in the figure caption (through \footnotetext , footnotemark) does not appear in the same page as the figure

I have several figures in my thesis which need a footnote in their caption. However, I could not find an efficient way to do it looking into the others' inquiries in the forum. In fact, using the \footnotetext , \footnotemark as the following code, makes the footnote to be appeared in the page before the float. I tried some suggestions such as the minipage, \clearpage, etc., to adjust the problem, but they did not work. Anyone could help me? Would appreciate it!  \begin{figure}  \centerline{\includegraphics[width=6.5cm]{./chapter2/Figures/couche2.png}}  \caption{Lithostratigraphic profile of clay \protect\footnotemark.}  \label{fig:couche2} \end{figure} \footnotetext{Lithostratigraphic ....}


How to solve the following recurrence relation question?

Solve the recurrence relation  $$f(n) = f(n - 1) + f(n - 2)$$ with initial conditions $f(0) = 2, f(1) = 1$. Give full details.  The following is what I have done: - try $f(n) = r^n$, for some fixed $r$. - $r^n = r^{n - 1} + r^{n - 2}$  - equation = $r^2 - r - 1 = 0$, if $n = 2$


So, I always just right-clicked and pressed "save picture" to save a post. But recently they changed something, and I couldn't do anything to a picture without opening source& What could have been changed?


find a $3 \times 3$ matrix $A$ such that $A \neq I_3$ and $A^{197}=I_3$.


Why is $\oint_S \mathbf{E}\text d\mathbf{s}=q_{in}/\epsilon_0$ valid when finding electric field inside charged sphere(charges are inside sphere)?

Let $r < R$, where $r$ is the distance to a point from the center of the sphere where we want to find electric field and $R$ is the radius of the sphere.  Why can we use $\oint_S \mathbf{E}\cdot\text d\mathbf{s}=q_{in}/\epsilon_0$ ($S$ is the surface of a Gaussian surface) when there are charges outside of the Gaussian surface? Aren't charges outside of the Gaussian surface affecting the electric field?


Using Google Location History to add GPS tags to Lightroom photos?

I import photos through Lightroom, and I'd like to tag them with GPS coordinates, can someone suggest a good workflow for this? Years ago, I used to get GPS tracks from my Google Location History, then run a tool to automatically apply tags to these photos, but those scripts are likely obsolete.


This is a follow up question to this question:    when you write a code like:  using (SqlConnection connection = new SqlConnection(connectionString))         {             connection.Open();             using (SqlCommand cmd = new SqlCommand(queryGetPcPrintDetails, connection))             {                 using (SqlDataReader reader = cmd.ExecuteReader())                 {                     if (reader != null)                     {                         while (reader.Read())                         {                             //do stuff                         }                     }                 } // reader closed and disposed up here              } // command disposed here         }   Is there a need to catch an exception in order to close the connection? For example, if there's some problem in the second using or in the do stuff section.. do I need to somehow do try/finally and close the connection?


Pass variable values in the RegExp Javascript

I want to pass variable values in the rule expression . Someone any way ? like is :  var a = 'khuya'; var regex = /{a}/;


What is the origin of the term "the whole nine yards"? I have read many explanations, including one that nine yards refers to the length of the belt of wing-mounted machine guns in US fighter aircraft. Thus to "give him the whole nine yards" meant that the pilot fired off a long burst.


I mistakenly thought that RSA keys could only be powers of two(1024, 2048, 4096 etc.) but a few days ago read about a 1536-bit and 1160-bit RSA key. I am wondering is it possible to have an RSA key of any bit length?(e.g 1025-bit RSA key, 1234-bit RSA key etc.) thank you.


UART in open drain causes mosfet switching voltage spikes

I'm using an ATMEGA3208 and I have configured the UART peripheral to open drain mode. I'm using an external pullup 1KΩ. I'm experiencing switching voltage spikes that goes negative. They are about 0.4V 500ns.  The spikes are only on receiver's side. The baud rate is 9600bps. The logic '1' is 3.3V.  I tried to increase the resistors to: R1 = R2 = 3KΩ. And R3 = R4 = R5 = R6 = 130Ω and the undershoot goes away. Of course that affects the logic '0' but it's still well below the threshold (0.3 x VCC).  They are exactly like . However this answer doesn't help me as the mosfet is internal in the mcu. What can I do in this case?  EDIT: The undershoot is present even with 0.5m cables (multi copper standard wire 0.75mm)  Why does impedance matching matter in this case? Doesn't it matter only when the cables are much longer than signal's wavelength?         – Schematic created using


Panicking: Used all my Schengen days and need to transit

I am on a gap year and have completed exactly 90 days in the Schengen area. I then flew to Morocco and have been here for 2 months. In 3 days I fly to London for another 2 months, and then will fly to the Czech Republic for a period of exactly 90 days. So, 90 days in, 4 months out, 90 days in.  The problem may be that the flight from Morocco to London has a connection in Madrid. It goes Morocco to Madrid Terminal 4s, then terminal 4 to Gatwick. I believe there is a shuttle bus between terminals 4s and 4.  I'm flying in three days time. (Don't know why I just thought of this now.) From what I've just read here and in other places I think I might be in trouble as I may not be able to enter Schengen as I will fall foul of the 90 days in 180 days rule.  From early comments it looks like my only option is to bin the (non-refundable) indirect tickets and buy direct flights (ouch!). I'm on a backpacker budget and any suggestions would be gratefully received.  Update: The flights are: IB8191 operated by Air Nostrum and  IB3718 operated by Iberia Express, both flights on a single Iberia ticket.    I tried calling Iberia but they couldn't put me through to anyone who spoke English. I called MAD airport, and was given a number to ring (not sure exactly who) and explained the issue (Countries, terminals etc). They said I would go through immigration but it would be fine. I again said that I had used all my Schengen days but they said it didn't matter.   Assuming that I rely on this information and continue with my original arrangements I'll post back here to say how it went, which gaol I landed up in etc.


As, set of real numbers make group under multiplication but why we ignore zero in multiplicative groups.We can use zero as a counter example to disproof that its inverse doesn't lie in the set??


Difference between 'ls -ltr abc*' and 'find ./ -name abc*' command?

To search a file in a directory, I found two commands as below:   ls -ltr initialfilename*  find ./ -name initialfilename*   Sometime, first command gives me the search result but sometime I used to execute second command. What is the difference between these two set of Linux command? Please specify your answer around the major difference only.


How to stop .bashrc from running sub-command in alias at startup?

I have added an alias command to kill my guake terminal to my .bashrc  alias killguake="kill -9 $(ps aux | grep guake | head -n -1 | awk '{print $2}')"   But the problem is, the sub-command i.e. ps aux | grep guake | head -n -1 | awk '{print $2}' is executed at the time of terminal startup and killguake is set to kill -9 result_of_subcommand.  Is there any way to set it like so, that the sub command is run/calculated  every time I run killguake? So that it can have the latest PID for the guake.  I have also tried piping to the kill using xargs but that also result in same, that is calculating everything at startup. Here is what I tried with piping  ps aux | grep guake | head -n -1 | awk '{print $2}' | xargs -I{} kill -9 {}


How do I convert WKT geometry from 3D to 2D

I'm working with kml files using Python gdal.ogr module. When I extract feature's geometry using feature.GetGeometryRef(), I get:  POLYGON ((44.184069865521963 41.971859752507207 0,44.355248797385123 41.976261187945859 0, ...  However, I do not need this Z value - I need just a plain 2D WKT. After hours of searching I found  method, but feature.GetGeometryRef().FlattenTo2D() returns None  So how do I convert 3D WKT to 2D?


How to create design without applying float in parent div or without adding clear both in div?

We want design like #2 but we are facing #1 design issue. when we are apply float left in parent div (gray border div) then its work fine. if any one have solution without applying float in parent div or without adding clear both in div then please let me know.  For more information please check attached image.(Float.jpg)


Site recommendation for hardware problem

I have a problem with my brother DCP-1510 printer and need to ask to some wise folks of stackexchange about it. In particular, it was supposed to be a multipurpose printer(allowing scanning as well) but now there were issues with the driver installation. I was able to search for the driver using the device manager, but the scanning function is not functional. Please, recommend me the site in which I can ask this question.


Counter-example for prime ideals in a non commutative ring.

Algebra, by T. W. Hungerford, page 127. Theorem 2.15. ''If $P$ is an ideal in a ring $R$ such that $P \neq R$ and for all $a, b \in R$ \begin{equation} \label{1}  ab \in P \Rightarrow a \in P \mbox{ or } b \in P, \hspace{2cm} (1) \end{equation} then, $P$ is prime. Conversely if $P$ is prime and $R$ is commutative, then $P$ satisfies condition $(1)$''  Remark: Commutativity is necessary for the converse.   If I understood it correctly, there should exist a ring $R$ which is not commutative, with a prime ideal $P$ with the following property: $ab \in P$ and $a \notin P$ and $b \notin P$.   This is the example I had asked for in the previous version of my question.   PS: Definition of prime ideal, according to Hungerford:  ''An ideal $P$ in a ring $R$ is said to be prime if $P \neq R$ and, for any ideals $A, B$ in $R$, $$AB \subset P \Rightarrow A \subset P \mbox{ or } B \subset P. $$


Simple enough question. Why not use a  in a target circuit or anyone's target circuit? What are the reasons not to use it? What might be the reasons to still choose this part?


UPDATE: Apparently this ad  and its relative mertis have been discussed. But the official decision was, apparently, to remove the ad from Stack Exchange:    Has the Careers 2.0 collective changed its mind, or was this an accident?  Looks like this ad was :   (Emphasis mine)   I'm not 100% sure this is the appropriate place to discuss Careers 2.0 advertising, but I found this ad to be a bit... uh... weird.  Are those power cables electrocuting that unsupervised baby?!? Somebody call family and children services!


MySql - ERROR 1071 Specified key was too long; max key length is 1000 bytes while restoring dump

while trying to restore a MySql Dump, i get the following error:  ERROR 1071 (42000) at line 25: Specified key was too long; max key length is 1000 bytes   any ideas?


Is there a way to protect a file in such a way that even root cannot delete it or rewrite it after creating it? I have a file which is created by root under /var/log/ and I want to restrict all users (including root) so that they can just read this particular file after it has been created.


Show that $d(z,w)=\lvert \frac{z-w}{1-\overline{w}z}\rvert$ is a metric function on the unit disk

Stein‘s book “Complex Analysis” contains some outline of “pseudohyperbolic distance”：$$d(z,w)=\lvert \frac{z-w}{1-\overline{w}z}\rvert$$ My problem is that does it is a metric function. That is, does it satisfies the three axioms of metric? The difficulty is how to prove the triangle inequality? I have tried too many times, but I failed. Thank you for your attention.


Where is the bug in this implementation of a Binary Search Tree?

I am testing a bit of code in main() and for some reason I am getting "7" instead of "7 8". This is a very basic implementation of a Binary Search Tree, and I can't figure out what the problem is.  public class BSTNode{ public static void main(String [] args) {     BSTNode root = new BSTNode(7);     BSTNode.insert(root, 8);     BSTNode.print(root); }  public Integer val; public BSTNode left = null; public BSTNode right = null;  public BSTNode(Integer val) {     this.val = val; }  public static void print(BSTNode root){     if(root == null) return;     print(root.left);     System.out.print(root.val + " ");     print(root.right); }  public static void insert(BSTNode root, Integer val){     if(root == null) root = new BSTNode(val);     else {         if(val <= root.val) insert(root.left, val);         else insert(root.right, val);     } }   }


Return counts for multiple ranges in a single SELECT statement

I have a Postgres database table foo that, among other things, has a column for score that ranges from 0 - 10. I want a query to return the total number of scores, the number of scores between 0 and 3, the number of scores between 4 and 6, and the number of scores between 7 and 10. Something like the following:  SELECT   COUNT(*) as total,   COUNT(     SELECT * from foo where score between 0 and 3;   ) as low,   COUNT(     SELECT * from foo where score between 4 and 6;   ) as mid,   COUNT(     SELECT * from foo where score between 7 and 10;   ) as high FROM foo;   I tried this, but got an error with the SELECT in the COUNT statements. Any ideas how I can do this? I'm sure there's a super simple way in Postgres. I just can't figure out the correct terms to Google for.


Why is the following code possible? (Just an example I just came up with while working on other code)  public String getLogIdentifierFromFile(final File file) {     //this.file = null; //Gives compiler error as obviously expected     nullify(file);     return ""; }  public void nullify(Object object) {     object = null; }   And how can I ensure that the final from the top function actually has an effect? This time it is me making the nullify method, but it can also be anyone's code that my method needs to call.


How to compute $\lim_{n\rightarrow\infty}\frac1n\left\{(2n+1)(2n+2)\cdots(2n+n)\right\}^{1/n}$

If $\displaystyle f(n)=\frac1n\Big\{(2n+1)(2n+2)\cdots(2n+n)\Big\}^{1/n}$, then $\lim\limits_{n\to\infty}f(n)$ equals: $$ \begin{array}{} (\mathrm{A})\ \frac4e\qquad&(\mathrm{B})\ \frac{27}{4e}\qquad&(\mathrm{C})\ \frac{27e}{4}\qquad&(\mathrm{D})\ 4e \end{array} $$ I couldn't get the right way to start off with this problem. But, as the options include the constant $e$ I think I will have to work out with logarithms.   So, this is what I did.  $$ \lim_{n \to \infty} f(n)\\ =\mathrm{exp}\left(\ln\left(\lim_{n \to \infty} f(n)\right)\right)\\ =\mathrm{exp}\left(\lim_{n \to \infty}\left[\ln\left(f(b)\right)\right]\right)\\ =\mathrm{exp}\left(\lim_{n \to \infty}\left[\frac{1}{n^2}\left(\ln(2n+1)+\ln(2n+2)+\ldots+\ln(2n+n)\right)\right]\right) $$ I'm not able to proceed further. In case my method is correct please give me hints on proceeding further and in case it is wrong give me the same on another method.


Saving images to MySQL Database? Yes? Or not?

I'm trying to store images directly in a sql table using PHP. I have a table: CREATE TABLE `products` (      `id` INT UNSIGNED AUTO_INCREMENTS PRIMARY KEY,      `date` DATE,      `img` LONGBLOB,       `path` VARCHAR(255) );  Using php I try to save the image to a mysql table .: <?php  // snippet of main part of php code // query string $query = "INSERT INTO `produkt` (`id`, `date`, `img`, `path`)"; $query .= " VALUES('', date('d.m.Y'), ?, ?)";  // prepare query  $stmt = $conn->prepare($query);  //  bind  params $stmt->bind_param("bs", $img, $path); $img = addslashes(file_get_contents($_FILES['img']['tmp_name'])); $path = $_FILES['img']['tmp_name'];  // execution of the prepared statement $stmt->execute();  ?>  All data comes to the database, except for the img column, where the image does not want to be saved. I find that this sql database image management logic will probably be a bad idea, how can I manage images using a sql database as efficiently as possible without unnecessarily burdening my MySQL database? Can you describe a simple example? Thank you.


Google ignoring our page title / meta desc after moving to SPA (SSR) architecture

Ever since we moved our site to a SPA architecture (SSR based, Vue+Nuxt), google chose to completely ignore our carefully written page titles and meta descriptions. Obviously we checked the sources, all html tags are correct in the right places, but google chose to completely ignore / change them. (other search engines show correct titles/descs).  Weirdly, in most cases, when it comes to page titles, it uses parts of of what we provide, but moves the kw which is used as first word, and creates a suffix from it.  This might explain us jumping up and down in serps for our 3 main keywords.   Here is an example: One of our pages, where 'Fotowoltaika' is the main KW, and title we set is  "Fotowoltaika - kalkulator opłacalności w 2020 roku"  Google result:    Meanwhile, in source of this very page:    Page itself:   On this particular page, description is preserved, but on dozens other pages they're completely ignored. Which is quite common on all sites, when google thinks it's smarter than content writers, but I've never seen Google changing titles like this. In most cases google-changed titles do not make any sense grammatically, for sure affecting our CTRs.  Has anyone ever come across a situation like this? Any help, hits, ideas would be greatly appreciated..


i want to install java on Ubuntu 13.04, but i got this type of problem during installing java

problem is that:  apt-get install default-jre E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   before that i 've already run update command it was ok but at last i got this type of message:  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Why does my list of PropertyInfo shows count=0

I have a class called "summoners" with properties :  public string Name; public string Id; public int summonerLevel; public string division;  public string tier; public int leaguePoints;   To debug, i wanted to create a List<PorpertyInfo> and store every property name in it, i have :          public void listProperties()     {         List<PropertyInfo> t = new List<PropertyInfo>();          foreach (var attr in this.GetType().GetProperties())         {             t.Add(attr);         }     } //-> breakpoint   I placed a brakepoint and it tells me that there is no value in "t"


I am very new to blender (2.81) and have been following a number of different tutorials to produce this file.   Rendered images (cycles) were working fine but suddenly they now come up as black screens. I don’t understand as the rendered viewport view shows everything correctly!  I found a forum help post that gave a long list of things to try and fix this issues and I have attempted tthose I understood but none have worked.   Blend file:   If any of you kind folk could take a look and tell me what stupid mistake I have made I would be eternally grateful


i want to try Ubuntu on my 11 year old laptop (Dell). I don't get the latest system requirements, but maybe you can help me find an older version that i can try. My favorite would be Ubuntu, but if it isn't going to work i will also try Lubuntu. (Btw: is Lubuntu made by Cannonical, too?) My system requirements:  DELL Laptop, 64-Bit CPU: Intel Celeron CPU 900 @ 2.20GHz GPU: ATI Mobility Radeon HD 4300 RAM: 2 GB  Thanks for your help!


Text is white coloured after Beamer note pages when compiled with xelatex

I have a Beamer presentation with note pages, in which everything renders just fine with pdflatex.   However, when the file is compiled using xelatex (I need to use fontspec), texts in frames after a note page are not visible -- they are rendered in white colour. This problem is reproducible when using Beamer v3.33.  %% Compile with xelatex \documentclass[handout]{beamer}  \mode<handout> { \setbeameroption{show notes} \RequirePackage{pgfpages} \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] }  \begin{document} \begin{frame} A test, A test! \note{ } \end{frame}      \begin{frame} This text does not appear! \note{ } \end{frame} \end{document}   While this problem can be solved by compiling with lualatex, I'm wondering if there's any thing one can do to make it work for xelatex?


If I have an instance at SQL Server 2016 SP1-CU7-GDR (KB4057119) and want to jump over to the latest SP2 path, which patch or patches do I have to run?   SP2 = KB4052908 SP2-CU2 = KB4340355 SP2-CU2-GDR = KB4458621   Do I run all 3 of these in order, do I run just #1 and #3, or can I just run #3 all by itself?  It’s a bit confusing, but would appreciate the help.  Thanks,  Robert


What is way to measure relationship between independent categorical variable on dependent variable (categorical/continuous)?

If both dependent and independent are continuous then we can find correlation and we know which column can be more influential. But if independent variable is categorical, how will i know how much it is influencing dependent variable?


Using getopts to process long and short command line options

I wish to have long and short forms of command line options invoked using my shell script.  I know that getopts can be used, but like in Perl, I have not been able to do the same with shell.  Any ideas on how this can be done, so that I can use options like:  ./shell.sh --copyfile abc.pl /tmp/ ./shell.sh -c abc.pl /tmp/   In the above, both the commands mean the same thing to my shell, but using getopts, I have not been able to implement these?


How can I map a key for my hero to start walking towards the fountain?

In particular when I play Puck and I need to escape, I phase shift, wait for my blink dagger to get out of cooldown, and blink away (usually double tapping it which makes me blink in the direction of the fountain).  This keeps the screen in the old position and not centered on my Hero, so I'd like to map a key for him to start walking away until I can re focus and manually direct him.  Since I can be Dire or Radiant, the fountain location can vary.  How can I do that?


I have Maverick and the option to Upgrade to OS X El Capitan pops up. I don't want to do this. Ever. How do I disable this notification?


Why does power increase as a constant force accelerates a body?

If a constant force is being applied to a body, without any other external forces, F = ma says that that body will accelerate at a constant rate. This acceleration will continuously increase the body's velocity. According to P = Fv, since the force is constant and the velocity is continuously increasing, the power required by the force will continuously increase. I understand all the maths, but am trying to get a better intuitive understanding of this. I cannot seem to come to terms with the fact that a constant force will need to supply an increasing power. What is this power being represented by, if the force is constant? What typical inner-workings of such a force would require its power to increase, even though its ultimate "output" is the same? What actually constitutes "power" and "force" at the "force-side" of things?


How to prove that eigenvectors from different eigenvalues are linearly independent

How can I prove that if I have $n$ eigenvectors from different eigenvalues, they are all linearly independent?


I want to prove the fact that  If $W\subseteq V$ is a vector subspace of $V$ than   $dim(W)=dim(V)=n \implies W=V$   Without using the fact that if $dim(V)=n$ any set of $n$ indipendent vectors in $V$ is necessarily a basis of $V$, neither the fact that a basis of $\mathscr{L}=(\vec{v_1},...,\vec{v_n})$ is necessarily the set $\big\{ \vec{v_1},...,\vec{v_n} \big\}$. (Since these two facts are consequences of the proof).  By hypotesis I have that $W\subseteq V$ which means that all the vectors in $W$ are in $V$. I must prove the opposite inclusion $V\subseteq W$: all the vectors in $V$ are a linear combination of $n$ vector of a basis, but I don't know how to prove that all the vectors of that basis are contained in $W$.  Can I say that they must belong to $W$ since $W$ has $n$ vectors in its basis too? (But I think in this way I'm assuming the facts listed above).  Can you help me to finish the proof?   Thanks for your help


Prefix argument for starting chromium with hardware acceleration

I wanted to enable the hadware acceleration of the chromium browser and therefore followed . At first it didn't work, but then I discovered a comment in the comment section which suggested to use the command LIBVA_DRIVER_NAME=i965 chromium-browser to start the chromium browser via terminal with hardware acceleration enabled and it worked! Then I thought to create a new custom desktop file for chromium to include this prefix automatically. I copied the existing dekstop file from /usr/share/applications to /home/myUser/.local/share/applications. Then I edited the desktop file and infront of every Exec Keyword I added LIBVA_DRIVER_NAME=i965. The resulting .dekstop file looks so now: [Desktop Entry] Version=1.0 Name=Chromium Web Browser Name[ast]=Restolador web Chromium ... Exec=LIBVA_DRIVER_NAME=i965 chromium-browser %U Terminal=false X-MultipleArgs=false Type=Application Icon=chromium-browser Categories=Network;WebBrowser; MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https; StartupNotify=true Actions=NewWindow;Incognito;TempProfile X-AppInstall-Package=chromium-browser  [Desktop Action NewWindow] Name=Open a New Window Name[ast]=Abrir una Ventana Nueva Name[bg]=Отваряне на Нов прозорец ... Exec=LIBVA_DRIVER_NAME=i965 chromium-browser  [Desktop Action Incognito] Name=Open a New Window in incognito mode ... Exec=LIBVA_DRIVER_NAME=i965 chromium-browser --incognito  [Desktop Action TempProfile] Name=Open a New Window with a temporary profile Name[ast]=Abrir una ventana nueva con perfil temporal Name[bg]=Отваряне на Нов прозорец с временен профил ... Exec=LIBVA_DRIVER_NAME=i965 chromium-browser --temp-profile  But now chromium browser is not found anymore by the launcher, so it seems like my .desktop file is somehow wrong. Can somebody explain to me what the problem could be here? PS: I'm using Ubuntu 20.04.


Does Apex lead conversion trigger Contact before/after insert triggers?

I have some updates I'd like to make on converted leads. I had it in my lead code - first convert the lead, then query for the converted contact and update. However, that was triggering CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY.  I refactored it out to update custom fields on lead, mapped them to contact, and put the contact updates in a Contact trigger.  My tests are failing, indicating that the contact updates aren't happening. When I query the mapped fields, they are updated as expected.  I put some debugging in to both triggers - the before insert on lead, after insert on lead which runs the conversion, and before insert on Contact. I don't see that the contact triggers are firing!  Does anyone know what the order of execution is with Lead conversion/contact triggers?


Seems to be an easy question, but I can't find the right direction.  Let $G$ connected graph on at least 4 vertices, such that every edge in it, participates in a perfect matching. Prove that $G$ is 2-connected.  Any help will be appreciated.  Thanks in advance.


Formula to add minutes to date+time in Excel

If I have a cell formatted as date+time in Excel, how can I add to this in terms of minutes? It would need to work whether I was adding 20 minutes, or 2,500 minutes.   So, for example if I had this spreadsheet, what formula could I put in B5 to get a result of 2013-09-22 09:10?    I tried using =B4+TIME(0,B3,0), but it gives 2013-09-21 09:10 which is a day off. It works fine though if B3 is less than a day's worth.


How can I install persistent Ubuntu 13.04?

i can't install persistent ubuntu 13.04 on my 4gb using Universal usb installer. it acts as live usb not persistent usb it gives me setup every boot. i used to install persistent ubuntu using Universal USB installer


i know $ |z_1 -z_2 |^2 =  |z_1 |^2 + |z_2 |^2 - 2|z_1 | |z_2 | \cos \alpha $ where $ \alpha $ is angle between $z_1$  and $z_2 $. Similarly i get $ |z_1 -z_2 |^2 + |z_2 -z_3 |^2 + |z_3 -z_1 |^2 = 2(4+9+16) - 2(6 \cos \alpha+8 \cos \beta+12\cos \gamma)$ What will be minimum value of $ 6 \cos \alpha+8 \cos \beta+12\cos \gamma $ if  $ z_1  , z_2, z_3   $ lie on the 3 given circles


I need to show that any open interval is homeomorphic to the real line.  I know that $f(x)=a+e^x$ will work for the mapping $f:R \to (a,\infty)$ and $f(x)=b-e^{-x}$ will work for the mapping $f:R \to (-\infty,b).$  Without using two functions, how can I prove the result in general?


In how many ways can we put n indistinguishable balls into m distinguishable boxes, where m > n?


The full user guide  states "If you find any bugs, please report them with our bug tracker, accessible via the little bug icon in the lower right-hand corner of each page."    However, I was unable to find this bug icon. The arrow seen in the screenshot only returns you to the top of the page.  Then I found a link under "Documentation and Support" for bug reports. However, the link brought me to a page that told me "This invite link is no longer active."      To conclude, I am trying to report a typo on the 'Introduction to Quantum Circuits'.    See    - This is the same as a dot product right?


Prove that a fraction that has terminating decimals has its denominator as a multiple of only 2 and 5's.

this is a number systems question and I am currently trying to prove this statement :  "A fraction $\frac{a}{b}$ (with $a, b \in \mathbb{Z}$, where $b\neq0$) in lowest terms has a terminating decimal if and only if the prime factorization of b has only factors of 2 and factors of 5."  I am not sure how to start the proof is it's very general so any tips are much appreciated.Thank you very much in advance !


Do I need multiple versions of Windows Visual C++ Redistributable installed?

I stumbled upon the fact that I had about 8 different versions (I started uninstalling them) of Windows Visual C++ Redistributable installed.  I wonder, can I remove all except the latest one? Why isn't Windows itself taking care of this? I work a lot with Python. Is there a specific reason I'd need an older version?  Thanks! Ronny


I'm looking at this sentence, and I wonder how to label the grammar, specifically the italic part.  I want to see the robot drill through the ice.  In typical present tense, the verb would conjugate as "drills".  ... the robot drills ...  So why is it "drill" here? And what is this grammar called? It's confusing that many similar sentences all use different verb forms (conjugated, or not, or infinitive, or gerund) in the second noun+verb part.  I want to see that the robot drills ... I want to see if the robot drills ... I want the robot drilling ... I want the robot to drill ...  That last one seems ambiguous. It could be that I want the robot because I want to drill something. Or it could be that I my "want" is about the robot itself. Ie, I want that the robot drill. Anyway, I'm digressing. What is going on in that first sentence? If it's easy to also relate it to the others sentences, I'm curious, but maybe it's better to be narrowly focused in a question on this forum. (Also: sorry, I don't know how to title this question well. If you have advice on this, I'm happy to edit the title.)


I'm interested in knowing some geometric interpretation of matrices. Can you suggest any lecture note or textbook or anything else about it? I've just finished an undergraduate course in linear algebra, so do not suggest any linear algebra book please, I just want to know more about this topic. Examples of what a mean by "geometric interpretation" are  and .


Proving convergence of sequence from subsequence without contradiction argument

Let a sequence $(t_{n})_{n\in\mathbb{N}}$ in $\mathbb{R}$ and for any subsequence $(t_k)_{k\in\mathbb{N}}\subset(t_{n})_{n\in\mathbb{N}}$ there exists another subsequence $(t_l)_{k\in\mathbb{N}}\subset(t_{k})_{n\in\mathbb{N}}$s.t. $t_{l}\to t$ as $l\to\infty$. Then, $t_{n}\to t$ as $n\to\infty$.  I know how to prove this using contradiction argument but I am considering a direct proof for this argument. Is there any hint to prove the claim above without contradiction?  Any help is much appreciated!


Is the  real? It is a well-known statement that a butterfly, by flapping her wings in a slightly different way, can cause a hurricane somewhere else in the world that wouldn't occur if the butterfly had moved her wings in a slightly different way. Now, this can be interpreted as a figure of speech, but I think it's actually meant to be true. I can't imagine though that this is true. I mean, the difference in energy (between the two slightly different wing flaps), which actually can be zero (the only difference being the motion of the air surrounding the close neighborhood of the two slightly different flapping pairs of wings), is simply too small to cause the hurricane 10 000 miles away. So how can this in heavens name be true? By asking I'm making the implicit and realistic assumption that in the atmosphere no potential energies can be released when a small difference in the air conditions occurs (like, for example, the release of energy contained in the water of a dam when the water has reached a critical level and a small perturbation can cause the dam to break, with catastrophic consequences).


Array instantiation calls a constructor?

When new keyword is encountered in java an object is created and a constructor is called.  So which constructor is called when an array object is created.  Eg int[] a = new int[];  We know that array are Objects.


How do I find out command line arguments of a running program?

I'm looking for a tool or method to find out what command line parameters have been passed to a program, for example when it was run by another program (launcher-application scenario).


How to store Cloudflare IP as an additional FastCGI parameter in Nginx?

I need to be able to know the Cloudflare IP for connections made to my server.  This is so I can determine if a connection is made through Tor. To do that, I need to send the tool the IP that the client CONNECTED TO. That is NOT my server's IP, that is the IP of the Cloudflare entry proxy, which is why I'm trying to pass the Cloudflare IP through fastcgi.   I have a block that looks like this:  # Preserve Cloudflare IP fastcgi_param CF-Proxy-IP $remote_addr; fastcgi_param TEST "abc123";  # CloudFlare set_real_ip_from 199.27.128.0/21; set_real_ip_from 173.245.48.0/20; set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 141.101.64.0/18; set_real_ip_from 108.162.192.0/18; set_real_ip_from 190.93.240.0/20; set_real_ip_from 188.114.96.0/20; set_real_ip_from 197.234.240.0/22; set_real_ip_from 198.41.128.0/17; set_real_ip_from 162.158.0.0/15; set_real_ip_from 104.16.0.0/12; set_real_ip_from 172.64.0.0/13; set_real_ip_from 2400:cb00::/32; set_real_ip_from 2606:4700::/32; set_real_ip_from 2803:f800::/32; set_real_ip_from 2405:b500::/32; set_real_ip_from 2405:8100::/32; real_ip_header CF-Connecting-IP;   But it's not going through and the dummy headers I set do not get seen in phpinfo(). I'm not sure what else I can do because after the real_ip_header goes through, all original CF data is lost.


Django: how to get parameters value passed in url?

I have a path:  path('update/<int:pk>/<int:projet>', UtilisateurUpdateView.as_view(), name='update', ),   I want to be able to get value of parameters 'projet' in my UtilisateurUpdateView but don't know how  for example, if my url is  I would like to be able to recovered 8 corresponding to parameters 'projet'  class UtilisateurUpdateView(UpdateView):     model = Utilisateur     fields = ['uti_nom','uti_pre','uti_mai','uti_sit','uti_pro']     print('projet POST',self.request.POST['projet'])     def get_context_data(self, **kwargs):         data = super(UtilisateurUpdateView,self).get_context_data(**kwargs)          if self.request.POST:             data["utilisateur"] = self.request.user.username             # data["projet"] = get_object_or_404(Projet, pro_ide = self.request.POST['projet'])             data["user_profil"] = self.request.session.get('user_profil')             data["application"] = ApplicationFormset(self.request.POST, instance=self.object)         else:             data["application"] = ApplicationFormset(instance=self.object)         return data      def form_valid(self, form):         context = self.get_context_data()         application = context["application"]         user_profil = context["user_profil"]         # print('projet',context["projet"].pro_nom)         if user_profil == 'investigateur':             self.object.uti_val = 0 # demande modifiée par investigateur -> repasse à non validée + envoie de mail         elif user_profil == 'moniteur':             self.object.uti_val = 1 # demande validée par moniteur -> validée + envoie de mail             self.object.uti_val_dat = timezone.now()         else:             self.object.uti_val = 0         self.object = form.save()          if application.is_valid():             form.instance = self.object             application.save()             # informations nécessaires pour l'envoi d'un mail             utilisateur_nom = form.data['uti_nom'] # nom de l'utilisateur pour lequel une demande est créée             utilisateur_prenom = form.data['uti_pre']             utilisateur = utilisateur_nom+' ,'+utilisateur_prenom             applications = [app.app_app_nom for app in Application.objects.filter(uti_ide=self.object.uti_ide)]             # email('modification',context["utilisateur"],'j.lecarrou@hotmail.fr',utilisateur,context["projet"].pro_nom,applications)         return super().form_valid(form)      def get_success_url(self):         return reverse("project:index")


I am not able to show this case of Vandermonde's Convolution without using induction. Can someone help me?  $$ \binom{n}{m} = \sum_{k=0}^{m} \binom{n-p}{m-k} \binom{p}{k}. $$  I thank now.


How to show that the $\sum_{i=1}^{n}|A[i]-x|$ is minimal for $x=m$ with median $m$?

I am trying to solve this question, but have no idea how one can prove it:  Let $m$ be the median of the array $A$ with $n$ real numbers. Show that $$\sum_{i=1}^{n}\bigg|A[i]-x\bigg|$$ is minimal for $x = m$.  Thank you for your help!


How to give only a part of an object a ring texture

I managed to give a ring texture to an object, but I only want to restrict that texture to a part of an object, as highlighted in the picture.  How can I do that? I tried to mix in some color ramps as factors, min/max settings in the coordinate mappings but couldn't get it to work.


Unaccepted answers lead to mismatches in the daily reputation displays

When one of my answers is unaccepted, the box showing the daily/weekly/monthly reputation change gets out of sync with the reputation page. In the picture below, note the daily reputation in the box at the top of the screen incorrectly displays 290, while the reputation tab correctly displays 275. I noticed that this happens only on the days when one of my answers is unaccepted.


I tried using the same trick as $\lim\limits_{n\to\infty}\frac{n!}{n^n}$, where you compare the terms one to one.  $(\frac{1}{n})(\frac{2}{n})(\frac{3}{n})...(\frac{n}{n})\cdot e^n$ = $(\frac{e}{n})(\frac{2e}{n})(\frac{3e}{n})\cdots(\frac{ne}{n})$  I can't really figure out what to do after this.  Some of the terms are less than one and some are greater than one.  It would be great if someone could lead me in the right direction of what to do here.


Please let me know which sentence is proper?     Summer has always been an imaginative time for Jamie and me.   Summer has always been an imaginative time for Jamie and I.


As the title says,  Is there a way to write custom fractions in this format: ½, ⅘, ⅞, etc.?  by adding some packages or so?


Example process waiting an input sent to background  $ read -p "Input text and hit ENTER to exit" &   I try to write to stdin (fd/0) with \n  $ echo -e "ok\n" > /proc/$!/fd/0   but  $ fg  read -p "Please hit ENTER"   so the process is still running, then string "ok\n" never reach it  How can I send a string+ENTER to another process STDIN?


List view adapter onclick method use in oncreate

My main activity      public void removefunction(){     List<CartItem> cartItems = getCartItems(cart);     cart.remove(cartItems.get(position).getProduct());     cartItems.remove(position);     cartItemAdapter.updateCartItems(getCartItems(cart));     cartItemAdapter.notifyDataSetChanged();     tvTotalPrice.setText(Constant.CURRENCY+String.valueOf(cart.getTotalPrice().setScale(2, BigDecimal.ROUND_HALF_UP))); }   Adapter code    btnremove= (Button) convertView.findViewById(R.id.btnrem);      btnremove.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {              ((ShoppingCartActivity) context).removefunction();           }     });   Cause null pointer exception in tvTotalPrice.setText      FATAL EXCEPTION: main                                                                             Process: com.android.tonyvu.sc.demo, PID: 7601                                                                             java.lang.NullPointerException: Attempt to invoke virtual method 'void   android.widget.TextView.setText(java.lang.CharSequence)' on a null   object reference at   com.android.tonyvu.sc.demo.ShoppingCartActivity.removefunction(ShoppingCartActivity.java:263)                                                                                at   com.android.tonyvu.sc.demo.adapter.CartItemAdapter$1.onClick(CartItemAdapter.java:98)                                                                                at android.view.View.performClick(View.java:6205)                                                                                at android.widget.TextView.performClick(TextView.java:11103)


What is the range of the validity of Coulomb's law?

What is the smallest and biggest distance in which  is valid?  Please provide a reference to a scientific journal or book. Just saying that this law is valid from this range to that range is not enough. Which experiments did result to these ranges?


Wrong X coordinate with the local coordinate system?

I would like a little bit of help with Blender 2.8. I don't know why the X coordinate of the highlighted vertex is -2 in the local coordinate system ? I think it should be something like -3.4 ? Y and Z seems ok, but not the X.


I have to finish a quest on Tatooine with Andronikos revel as my companion, but I can not summon him.   This appears to be a similar issue to  except I already had Andronikos as a vompanion, and he has simply dissapeared from the available companions list.  This was not an issue before update 4.0. I have double checked that I can not access him from the companion list (N) or the crafting panel (B).  How can I summon my companion?


Dealing with quickly edited, copied answers?

Edit: This question isn't a duplicate of . The quote in the highest voted answer on that question is "Bottom line: if you want to get up-votes, WRITE A GREAT ANSWER." that works well in that question. But in this question the situation is that the potentially great answer could just be copied and made to look as if the author of the answer was the one who did the copying. This is not the same situation.  This isn't a huge issue, but it's something I've witnessed more than once now.  Take this question for example:   When I posted  about using jQuery's on change event listener there was one other answer which only said something along the lines of, "you can use AJAX for this", nothing more - not helpful at all, especially as AJAX wouldn't be used for this anyway.  After posting my answer I commented on the other answer saying that AJAX wouldn't be used and a few minutes later  was changed to also use the on change event.  The problem here is that as this edit was done so shortly after the answer was submitted, the original content doesn't appear in that answer's .  Anyone looking at the two answers would think hey, this guy [edited answer] posted the correct solution first so this answer should be accepted.  How would this be dealt with? What's in place to stop people making a really quick invalid answer then editing it as soon as somebody else has posted up a working solution to replicate that?


What keys do I need to click to go into user ortho and left ortho?


Recently I've noticed more and more sign-in / sign-up workflows defaulting to the sign-up option first and providing a minimal "Sign-In / Login" action somewhere else on the page. What's the reason behind this practice?  Examples where I've seen this recently:


What is the smallest number of elements necessary to generate S(5)?

I know that S(5) is not cyclic.   If $S(5) = (1 2 3 4 5)$, you could say $(1 2 3 4 5) = (2 3)(3 4)(4 5)(1 5) = (1 5)(1 4)(1 3)(1 2)$, giving us various sets of four 2-cycles.   Is 4 the smallest number of elements needed to generate S(5)? Is there a different way to generate $S(5)$ using a smaller number of elements?


How to determine which type of quadrilateral is by giving the four points of the quadrilateral?

I am developing a crop image tool. After I get the coordinates of the four points, I want to judge whether the quadrilateral is convex quadrilateral.  But I am not good at geometry, so I want to ask for your help.  I hope that the answer can be easy to understand, you can think I know little about geometry. Something like a process.("1. Calculate the angle   2. Whether the degree of the four corners is equal to ...")  Sample image:    Related:


How to download youtube videos as a best quality audio mp3 using youtube-dl

I want to download YouTube videos as mp3 files in its best quality. The below code helps to download youtube videos as m4a but not us mp3  youtube-dl -f bestaudio --audio-quality 0 --audio-format mp3 https://www.youtube.com/playlist?list=PLYRruMbyFRcBVdVN8v4FNkIKkXvL-bZn_   can you tell me how to use bestaudio parameter to download YouTube video as mp3


What to type in after (initramfs) for Ubuntu 20.04?

I am currently working on my new XPS laptop. I just realized that I can't have two operating systems on my laptop since I have low SSD which is 256 GB. I am in the process of installing 2T SSD. At the moment I am trying to get the laptop back to normal and save everything on my External Drive before I open up the laptop and install 2T SSD. What do I need to do? I am not sure if I accidentally installed Linux Mint in first. Since then I have not been able to get back to normal where I see all other programs on the monitor. When I first ordered XPS It came with Ubuntu and I planned to get MS Windows 10 Pro later. The next thing I planned to order Windows and get Product key. I was told if I did that, it would wipe Ubuntu out. I contacted Dell and they told me about the GParted program that will allow Ubuntu and Windows work together. I did not get Windows yet and my laptop is on full black screen with (initramfs) and I do not know what to type in next.