My mom &amp; I applied for visit visa to attend my sisters wedding. She got hers approved but mine was denied. She needs to be accompanied bec she is old now. The consul said that I lack some documents &amp; my stay in UK doesn't match my mom stay there. I plan to stay in UK for a month or less but mom wants to stay in UK for 1-3 months. I am planning to re-apply, should I also put that I will stay for 1-3 months like my mom? And I have the documents that they needed. I just got my visa refusal letter &amp; passport yesterday. How long should I wait to re-apply? Will it take 3-6 months to re-apply? Thanks
I am from Nigeria and I'm doing a one year Internship program with The Marriott hotel in Wisconsin, I applied for the UK visitor visa two weeks ago to visit my fiance who lives and work in the UK, but I was refused the visa because the letter of my workplace that I provided was back dated of 2014 which they say they are not satisfy it accurately reflects my current employment circumstance. I also provided my pay slips, but they said they were not satisfied with it demonstrating the terms and conditions of my employment, and they also said I did not present any evidence to satisfy me having sufficiently strong ties and commitments in my country of habitual residence or elsewhere to motivate my timely departure from the UK. They said the documents my fiance presented were OK.  How soon can I re-apply for a UK visa after getting a refusal?
Undefined Symbol ___gxx_personality_v0 on link I've been getting this undefined symbol building with this command line:  $ gcc test.cpp Undefined symbols:   "___gxx_personality_v0", referenced from:   etc...   test.cpp is simple and should build fine.  What is the deal? There are 'n' candies and 't' boxes. Find the number of ways to place the candies in the boxes for each of the conditions (given in the problem). There are 'n' candies and 't' boxes. Find the number of ways to place the candies in the boxes for each of the conditions (all the candies must be spread out) : (a) candies and boxes are different; (b) candies of the same diiferent boxes should not be empty cartons: (c) candies equally new, boxes are different; Edit :(d) candies are different, the boxes are the same, there should be no empty boxes; (e) candies of different boxes alike.(Edit : candies are different, boxes are equal) Specify the display type that matches the placement, if possible. My Answers : (a) Each layout is encoded with a word of $n$ letters from the alphabet of 't' letters $\implies$ possible $n^t$ variants. (b) Write, $n$ candies in the form of balls ina line, we need to put $(t-1)$ partition in $(n-1)$ place, but we can't put two partitions on one place, so we get : $^{t-1}C_{n-1}$. (c) First we need to choose a candy in a box (in the first box $n$ ways, in the second box $(n-1)$, $\cdots$ in the $t-th$ : $(n-t+1)$ ways $\implies$ total $n!/(n-t)!$ methods, and then we distribute the remaining $(n-t)$ candies into $t$ boxes, this is encoded with owrds from the alphabets (for each candy $t$ variants) $\implies$ $t^{n-t}$. The Answer is : $\frac {n!}{(n-t)!}*t^(n-t)$ Are my answers (a), (b) &amp; (c) are correct? For (d) &amp; (e) I don't know how to proceed? Please help me. Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags? Can I ignore coefficients for non-significant levels of factors in a linear model? After seeking clarification about linear model coefficients  I have a follow up question concerning non-signficant (high p value) for coefficients of factor levels.  Example: If my linear model includes a factor with 10 levels, and only 3 of those levels have significant p values associated with them, when using the model to predict Y can I choose to not include the coefficient term if the subject falls in one of the non-signficant level?  More drastically, would it be wrong to lump the 7 non-significant levels into one level and re-analyze? I am doing , and am having a few problems with function notation. I understand the form f(x).  What does the form f: x ↦ y mean? Could you also give one or two examples?  And, if possible, state your source. Thank you. Multiple Sub Query using child parent relationship Consider in my basket, I have a package (Main Product-just a holder) which will have 2 standalone products (child) and again the standalone products will have child products (Grand Parent). All these products are from same object called Product Configuration.   We have a child relationship to itself(Parent Configuration) using a custom lookup field. The problem here is, I could only fetch details only up to 1 level (i.e.,package and child details) and I was not able to drill deeper to grand child products.  Query I used to get 1 level of relation ships is below:  SELECT id, name, Access_Type__c, Circuit_Bandwidth_Value__c, QuoteType__c,     Upstream_Speed_Value__c, IP_Address_Type__c, Care_Level__c, Base_Plan_Value__c, Site_Address__c,      cscfga__Quantity__c, Quantity_of_Ip_Address__c, cscfga__Contract_Term__c, Connection_Price__c,      Monthly_Rental_Conga__c, Total_Annual_Rental__c,      (         SELECT id, name,cscfga__Product_Family__c,Upstream_Speed_Value__c, cscfga__Quantity__c, Quantity_of_Ip_Address__c,              Connection_Price__c, Monthly_Rental_Conga__c,cscfga__Parent_Configuration__r.Circuit_Bandwidth_Value__c,Circuit_Bandwidth_Value__c          FROM cscfga__Related_Configurations__r         WHERE cscfga__Parent_Configuration__c &lt;&gt; ''          ORDER BY name     )  FROM cscfga__Product_Configuration__c  WHERE cscfga__Product_Basket__r.cscfga__Opportunity__c='{pv0}'      AND cscfga__Product_Basket__r.csordtelcoa__Synchronised_with_Opportunity__c=True     AND cscfga__Parent_Configuration__c = ''  ORDER BY name   Not sure how to write another sub query to get grand child details. When I tried the below query:  SELECT id, name, Access_Type__c, Circuit_Bandwidth_Value__c, QuoteType__c, Upstream_Speed_Value__c,      IP_Address_Type__c, Care_Level__c, Base_Plan_Value__c, Site_Address__c, cscfga__Quantity__c,      Quantity_of_Ip_Address__c, cscfga__Contract_Term__c, Connection_Price__c,      Monthly_Rental_Conga__c, Total_Annual_Rental__c,     (         SELECT id, name, cscfga__Product_Family__c, Upstream_Speed_Value__c, cscfga__Quantity__c,              Quantity_of_Ip_Address__c, Connection_Price__c, Monthly_Rental_Conga__c, cscfga__Parent_Configuration__r.Circuit_Bandwidth_Value__c, Circuit_Bandwidth_Value__c,         FROM cscfga__Related_Configurations__r         WHERE cscfga__Parent_Configuration__c &lt;&gt; ''          ORDER BY name     ),     (         SELECT id, name, cscfga__Product_Family__c          FROM cscfga__Related_Configurations__r         WHERE cscfga__Parent_Configuration__c &lt;&gt; ''          ORDER BY name     ) FROM cscfga__Product_Configuration__c  WHERE cscfga__Product_Basket__r.cscfga__Opportunity__c='0066E000002Xrr0'      AND cscfga__Product_Basket__r.csordtelcoa__Synchronised_with_Opportunity__c=True      AND cscfga__Parent_Configuration__c = ''  ORDER BY name   I got below error:     MALFORMED_QUERY:  from cscfga__Related_Configurations__r ^ ERROR at   Row:6:Column:6 Cannot follow the same aggregate relationship twice:   cscfga__Related_Configurations__r   Can someone please help here. Note: I am executing these queries in Workbench. In my ~/.bashrc file reside two definitions:   commandA, which is an alias to a longer path commandB, which is an alias to a Bash script   I want to process the same file with these two commands, so I wrote the following Bash script:    #!/bin/bash  for file in "$@"     do     commandA $file     commandB $file done   Even after logging out of my session and logging back in, Bash prompts me with command not found errors for both commands when I run this script.  What am I doing wrong? How can I fuse a lot of cubes? So, I made a mesh with a lot of cubes ( I've created a cube, and copied it, pasted it to make figures ), And, when I've done it, I tried to smooth it, but it looks wierd because it's made with a lot of cubes, so a lot of faces, I already tried Ctrl + J, but faces remain, Is there anyway to fuse those lot of faces in one? Test the convergence of the series For $a&gt;0$, test the convergence of the infinite series: $$\sum a^{\ln(n)}$$ Which test should be better to use here? I tried the D'Alembert's ratio test. $$\lim_{n\to \infty} {\frac{a^{\ln(n)}}{a^{\ln(n+1)}}}= \lim_{n\to \infty}a^{ln{\frac{n}{n+1}}}=a^0=1$$ So the test failed.  UPDATE: I observed that $${a^{\ln(n)}}=e^{{\ln(a)}{\ln(n)}}={n^{\ln(a)}}={{1\over n^{ln({1\over a})}} }$$Further by test of auxiliary series $$\sum \frac{1}{n^p}$$ we know that criterion for convergence is $p&gt;1$. Here $p=ln({1\over a})$.Hence the series will be convergent when $ln(a)&lt;-1$ i.e. when $0&lt;a&lt;1/e$, since $a&gt;0$ is already given.Finally this solved my question. I have an AMD Radeon R7 M265, and when I force OPENCL with the batch file it only shows Iceland, Intel HD and the CPU.  I followed this instructions:   R, type CMD, press &#9166; Enter, go to your blender folder. ex:  cd C:\Program Files\Blender Foundation\Blender  Press &#9166; Enter and then type: set CYCLES_OPENCL_TEST=all Start Blender with blender.exe Inside blender go to File -> User preferences -> System Under compute device select OpenCL and then your card Close the preferences and go to the render panel and select device: GPU Compute.  I have the latest beta driver from AMD, but when I try to change the compute device it only shows this list:     Am I doing something wrong? Is my GPU is not supported? Or is it because it's in development and not every card is supported yet?  I've tried blender v2.74.5, v2.62, and v2.63. Every one gives the same list. How do I report a bug? I found a problem with an application on Ubuntu.   Questions :   How do I best report the issue?  What sort of information should I provide? echo text after curl command on same line #!/bin/bash echo "$(curl -s -I https://google.com|grep Server)" abc   returns:  abcer: gws   and bash -x shows:    ++ grep Server ++ curl -s -I https://google.com ' abco 'Server: gws  abcer: gws   but    echo abc "$(curl -s -I https://google.com|grep Server)"`    returns  abc Server: gws   In other words, if I add text AFTER the curl command, it gets mangled, but it's ok if I add it before curl. What is happening? I cannot figure it out. TexMaker (and TexShop) not working after installation of El Capitan Redirect based on country Let's say I have a site that has multiple versions for different countries, e.g.:  www.example.com/us www.example.com/uk www.example.com/ca   and I want to use IP geolocation to redirect users who go to www.example.com to the appropriate country version of the site.  What is the best way to do that without confusing crawlers such as Googlebot or running into other SEO type trouble? I want to check if points layer that I have intersect with polygons layer that I have, as Boolean column in the points dataframe. I have two GeoPandas dataframes, the first one is many points and looks like this: &gt;&gt;&gt;ID  geometry 0  12  POINT (5.0279 7.4547) 1  45  POINT (6.6539 12.139) ...  and the second dataframe is one layer of many different polygons  that looks something like this: &gt;&gt;&gt;name     code   geometry 0  Desert   12     POLYGON ((5.52013 13.8902, 5.5265 13.892,...) 1  Water    24     POLYGON ((5.53756 13.88472, 5.5291 13.8791,...) ...  I'm trying to check if there is any intersection between the points layer and the regions layer. For that I have determined the crs and then used intersects : regions=regions.to_crs({'init': 'epsg:4326'}) points=points.set_crs({'init': 'epsg:4326'}) inter=points.geometry.intersects(regions.geometry)  A The script runs with the following warnings:  FutureWarning: '+init=:' syntax is deprecated. ':' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6 return _prepare_from_string(&quot; &quot;.join(pjargs)) /opt/conda/lib/python3.8/site-packages/geopandas/base.py:39: UserWarning: The indices of the two GeoSeries are different. warn(&quot;The indices of the two GeoSeries are different.&quot;)  Then when I check the results the only value is False, like all th epoints do not intersect: inter.unique().tolist() &gt;&gt;&gt;[False]  *I saw on QGIS that the there are points that intersect and there are points that do not so there is no way this result is true *I have checked the dtypes - each one of my geodataframes has one column that is geometry and called geometry. My end goal: to add new column in the points geodataframe that will tell if it intersects the regions or not. Why is Sauron called "the Necromancer"? During the time period of The Hobbit, a character is mentioned called the Necromancer.  Radagast even (in the movie) specifically states that the Necromancer can "summon the spirits of the dead."  (It's been a while since I read the book so I don't know if this exact phrasing is used there, but given the name it seems reasonable.) This character is later revealed to be Sauron.  Since when can Sauron summon the spirits of the dead?  He can extend life ad infinitum, like Gollum's, for example, and he can twist people into half-alive monsters, like the Ringwraiths, and he himself seems impossible to kill so long as the One Ring remains, but I can't recall ever actually seeing him "summon" something that was once fully dead.  In fact, the only character I remember doing that was actually Aragorn, though he merely commanded them and didn't raise them himself.  Is this just an unfounded rumor about the power in Dol Guldur, some hushed-whisper nightmare that isn't actually an accurate description, or is there a reason he is called the Necromancer?  It seems like if Sauron could actually resurrect the dead, what little chance Middle Earth had of defeating his hordes would be long, long gone... I can't understand where the final keyword is really handy when it is used on method parameters.    If we exclude the usage of anonymous classes, readability and intent declaration then it seems almost worthless to me.   Enforcing that some data remains constant is not as strong as it seems.    If the parameter is a primitive then it will have no effect since the parameter is passed to the method as a value and changing it will have no effect outside the scope.  If we are passing a parameter by reference, then the reference itself is a local variable and if the reference is changed from within the method, that would not have any effect from outside of the method scope.    Consider the simple test example below. This test passes although the method changed the value of the reference given to it, it has no effect.  public void testNullify() {     Collection&lt;Integer&gt; c  = new ArrayList&lt;Integer&gt;();           nullify(c);     assertNotNull(c);            final Collection&lt;Integer&gt; c1 = c;     assertTrue(c1.equals(c));     change(c);     assertTrue(c1.equals(c)); }  private void change(Collection&lt;Integer&gt; c) {     c = new ArrayList&lt;Integer&gt;(); }  public void nullify(Collection&lt;?&gt; t) {     t = null; } Can anyone explain to me why I would want to use IList over List in C#?  Related question: Calling C/C++ from Python? Any other words that use “dis-” as an amplifying prefix? I remember hearing once about the etymology of disgruntled, probably based around a joke about how people can not be gruntled. The explanation given was that there was never a word gruntled, rather the dis‑  in disgruntled is actually a usage of the old prefix where it acts like an amplifier.   Firstly, is this true?  Secondly, are there any other words that use this prefix in this way?