I want to know my chance of getting a visa to Norway to visit my wife

this is the third time I'm considering applying for a visa to Norway and I have been rejected twice. Firstly, I was rejected because the consider my relationship with my girlfriend that I was to visit as not an esblished relationship since we haven't met in person and we only met online, then my girlfriend visited me we got married she returned then I applied to visit her because she is undergoing surgery in September and she want me to be with her but I got rejected on the following Grounds:  Justification for the purpose of intended stay has not been    provided. Reference is made to the fact that the applicant's and the reference's marriage has not been registered in the Norwegian population system. The applicant wishes to visit his wife. However, the embassy does not consider this a satisfactory reason that outweighs the applicant's necessary tie with his home country. We have noted that the applicant comes from a country with a great potential for emigration due to its social and economic situation. In our experience, many applicants fail from west Africa wish to resettle in other countries. The applicant is relatively young, married and has no children. He has not stated to have property or other financial commitments in his home country. After considering these aspect of the application, the embassy finds that the applicant lack the necessary ties with his country of origin.  These were the reasons that they gave, she is suggesting to get the marriage registered in their population system and to reapply since she is expecting to undergo a surgery on the 5th of September and want me to be with her as she does not have anyone to take care of Can someone help me with solutions that will increase my chance of getting the visa so that I can be with her through her surgery.


Where can i find a texture like this? (Silky thick smoke)

This is my first post so please be kind, however do tell me if i do something wrong :). My Question:  I've been looking for this texture (the one pictured below) for ages and i just can not find out what is called or where i can get it. Can someone help please?   Thank you in advanced :)


There are a few thing that can run directly off of AC power like incandescent light bulbs and and electric motors but it stops there. Most electronics need power converted to DC before it can be applied to a circuit. Is there a fundamental reason why logic circuits that use AC power directly haven't been developed or is it just a lack of ingenuity?


Moving Excel AVERAGE formula over multiple columns

I have a series of quarterly median rent prices over several decades and would like to create a separate list of annual average rents (). To get the 1990 average in the example I have used the following formula:  =AVERAGE(C4:F4)   When I try to drag the formula across though, the start and end cells only move one column over (i.e. D4:G4), rather than the four columns necessary to average the four median rents for 1991.  Is there a simple way to copy the formula over and have the column numbers move four across to average subsequent years?


Nvidia-settings PowerMizer performance-mode on 12.04.4 64-bit

Whenever I try to set the performance mode of my Nvidia 525M gpu from adaptive to performance, it actually works, but only until I reboot my PC. After a reboot/relog I have to do it all over again via nvidia-settings.    What is the official/safest way to make that change permanent?  Why doesn't nvidia-settings save the performance mode it has been set to? Is it a bug?   I am using the official Nvidia 331 drivers provided by Ubuntu 12.04.4 64-bit LTS.  Thanks!


Compare dates - display month/year only once

I want to compare dates and not display the same information twice. i.e. if I have been somewhere from 5/2/19 - 14/2/19 I want to display: "From 5th - 14th February 2019" rather than the long version, but if over the month (or year) it will need to display all. (I need to write these letters often, so automated the document)  \documentclass[a4paper,12p]{article}  \newcommand{\hospital} {London Hospital } \newcommand{\system} {Robot 5} \newcommand{\periodstart} {\newdate{date}{05}{02}{2019}} \newcommand{\periodend} {\newdate{date}{14}{02}{2019}}  \usepackage{datetime} \newdateformat{normal}{%   \longdate \ordinaldate{\THEDAY} \monthname[\THEMONTH] \THEYEAR}  \begin{document}    \null\hfill \normal \today \\      \bigbreak     {\bfseries\large \hospital \par} {\bfseries\large \system \par} {\bfseries\large Trial period: {\periodstart \normal \displaydate{date}} -- \periodend \normal \displaydate{date} \par}  \end{document}


Is it possible to create a windows 10 user who's account has a time restrictions?

I am trying to find out if there is anyway to create a windows user account that has time restrictions set to it.  The problem I am having is I have multiple users that need to use this one computer but I want to restrict their use to only one hour.  What I would like to do is the log the person into the user account and after an hour the computer would automatically log the windows user out of the computer.


So I was cruising around at YouTube and saw this , and as I was watching started to wonder: "How is this possible?".  For a little bit of background, in case you decide to not watch the video, what is happening is an individual can hook out a 'pack' that sucks up water and then shoots the water downward:    This water Jet Levitation (JetLev) causes the rider to be able to fly upward into the air and move about forward, backward, side-to-side and even underwater (you have to watch the video for that).  So my question is:  How exactly is this possible?


Proving of De Morgan's Laws for families of sets

Let $\cal {C} = \{A_i : i ∈ \cal{I}\}$ be a family of sets and let $X$ be another set. Prove the following: $$X \setminus \bigcup C = \bigcap_{i\in \cal {I}} (X\setminus A_i).$$


Given a public key on the P-256 Curve is it correct to say that the public key is 64 bytes long ie. (x,y)?  Secondly is the private key 32 bytes long? if so, how is the private key generated and why is it shorter than the public key?


How is it the Voyagers are a few seconds closer to Earth than earlier?

The  of March 01, 2013 put it's distance at 14 hrs 04 mins 23 secs of light-travel time from Earth. A  (earlier today) tweet says it is 14 hrs 04 mins 22 secs of light-travel time from Earth. An  tweet put it still further out at 14 hrs 04 mins 25 secs of light-travel time.  The Voyager 2 tweets on Voyager 1's proximity to Earth too has reduced similarly to  earlier today from  reported on Feb 28 2013  It could quite simply be a typo ... If not a typo then my curiosity is piqued; I was under the impression the Voyagers are outbound from the Solar System now without any major in-system activities now.   How is it the Voyagers are closer to Earth than before?


Below is my code for a fragment I have, I am trying to set the text of a textView in the view, I was under the impression that as long as you inflate the view first, it would not return null as it has been created. That according to the fragment life cycle.   @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)     {         View loginFragmentView = inflater.inflate(R.layout.login_layout, container, false);         TextView imei = (TextView) loginFragmentView.findViewById(R.id.txt_device_id);         imei.setText("IMEI: ");         return loginFragmentView;     }   This does cause the application to crash with the nullPointerException, does anyone know how to get around this. Is there a method I can override that will only be called one the fragment lifecycle has finished.  I also tried to put it in onResume() as that is right at the end of the lifecycle buthad same result. Any Idea?  EDIT  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent" android:layout_height="match_parent">      <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:textAppearance="?android:attr/textAppearanceMedium"         android:text="Your device ID:"         android:id="@+id/txt_id_title"         android:layout_marginTop="15dp"         android:layout_alignParentTop="true"         android:layout_centerHorizontal="true" />      <TextView         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:textAppearance="?android:attr/textAppearanceSmall"         android:text="Fetching ID..."         android:id="@+id/txt_device_id"         android:layout_below="@+id/txt_id_title"         android:layout_centerHorizontal="true" /> </RelativeLayout>   ERROR LOG  05-22 19:40:02.230 2799-2799/? E/AndroidRuntime: FATAL EXCEPTION: main                                                  Process: alertssystem.rrr.lsa13.rrr_alerts, PID: 2799                                                  java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.widget.TextView.toString()' on a null object reference                                                      at alertssystem.rrr.lsa13.rrr_alerts.login_layout_fragment.onCreateView(login_layout_fragment.java:24)                                                      at android.app.Fragment.performCreateView(Fragment.java:2053)                                                      at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:894)                                                      at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)                                                      at android.app.BackStackRecord.run(BackStackRecord.java:833)                                                      at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1452)                                                      at android.app.FragmentManagerImpl$1.run(FragmentManager.java:447)                                                      at android.os.Handler.handleCallback(Handler.java:739)                                                      at android.os.Handler.dispatchMessage(Handler.java:95)                                                      at android.os.Looper.loop(Looper.java:135)                                                      at android.app.ActivityThread.main(ActivityThread.java:5221)                                                      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:899)                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)


Biblatex: Don't show n.d. when no year is given

I am using biblatex/biber with several bibliographies for my book, and the misc-type, which is also a single bibliography (as a chapter), for legal documents. These documents often do not have a proper date or rather the date is part of the title. However, Latex gives me a "n.d." output, and I am wondering what I can do for it to not give a "n.d." when there is no year given?    To make clear, the reason for why I don't want to use the "year" field is that I deal with very different kinds of documents, which may either have no date or the date is in the title, because of which I prefer to simply "hard-copy" the whole thing in the "howpublished"-section and need to suppress the year, if none is provided.  MWE:  \usepackage[autocite=footnote, language=german, style=authoryear-ibid, sorting=nyt, backend=biber]{biblatex} \usepackage[bottom]{footmisc} \bibliography{lit.bib} \makeindex \begin{document}  Test\autocite[2]{draftnotice}.  \printbibliography[title={EU Legal Documents}, type=misc1]  \end{document}   My lit.bib is as follows:  @misc1{draftnotice,     Author = {{COMMUNICATION FROM THE COMMISSION}},     Howpublished = {Draft Commission Notice of 2014 on the notion of State aid pursuant to Article 107 (1) TFEU}}   Check out my MWE on overleaf


Excel VBA pass one field of a matrix array to a UDF

I have written some code that builds up a matrix of values (strings and numbers). The matrix is always 3 rows and unknown columns and is sized like this:  ReDim MyMatrix(1 To 3, 1 To SelectedPivot.RowFields.Count)   I then populate the matrix with three loops.  I have written a UDF that requires 1st and 3rd row of the matrix, as follows:  Public Function MyUDF(SourceTable As ListObject, Arr1() As Variant, Arr3() As Variant) ... End Function   ...where Arr1() is the first row of 'MyMatrix' and Arr3() is third row of 'MyMatrix'  Back in the main sub, I am trying to use the UDF like this:  Result = MyUDF(SourceTable, MyMatrix(1), MyMatrix(3))   And I get the error 'Type mismatch: array or user-defined type expected'  Any suggestions on how to get this working? I thought 'MyMatrix(n)' in a two-dimensional array gives the nth row


T-SQL Create Comma Separated Array While Keeping Parent Category Information Intact

Say I have a table with ProductID and OrderNumber. There are multiple products each with multiple orders.   What I'm trying to do is turn:   +-----------+-------------+ | ProductID | OrderNumber | +-----------+-------------+ |         1 |           1 | |         1 |           2 | |         1 |           3 | |         2 |           4 | |         2 |           5 | |         3 |           6 | |         3 |           7 | +-----------+-------------+   into:  +-----------+-------------+ | ProductID | OrderNumber | +-----------+-------------+ |         1 |     1, 2, 3 | |         2 |        4, 5 | |         3 |        6, 7 | +-----------+-------------+   It's easy enough to create a comma separated list of all the order numbers like shown here: .   What I have not been able to figure out is how to create the array from rows while still keeping the ProductID information intact.


Does hosting images on a CDN impact SEO?

I manage two sites (foo.com and bar.com) which share image assets. Currently the images are all on the foo.com domain which is a bit confusing if you open the image on bar.com and see a foo.com URL.  I'd like to have a generic domain for these shared resources and I'm planning on using Rackspace Cloud Files (which ) so that we can also benefit from increased performance.  My question is, if we use the Rackspace Cloud Files URLs (e.g. ) what (if any) impact will it have on the SEO performance of foo.com.  Position within Google Image search is of minimal importance to us so I'm particularly interested in any knock-on impact for Web search performance.


How do I restore .bashrc to its default?

I've been trying to install Android developer tools on Eclipse, and I followed the information in .  Like the video said, I added the following two lines of code to the .bashrc file:  export PATH=$(PATH):-/android-sdk/tools/ export PATH=$(PATH):-/android-sdk/platform-tools/   It seems, however, that this did not help me to install the Android files on Eclipse, as I am still having problems with that. What's more, it seems that I can't make any command in the terminal without getting a major error now! Every time I try to make a command in the terminal I get the following message:     The command could not be located because '/usr/bin' is not included in   the PATH environment variable.   Is there away to restore .bashrc to its default?


update manager error-Failed to download repository information

When I run update manager, Ii get following error.    I am using Ubuntu 12.04 LTS, 64 bit. I am new to Ubuntu please help me out.


MySQL autoincrement column jumps by 10- why?

I have a couple tables in which I created an object ID as either an Int or Bigint, and in both cases, they seem to autoincrement by 10 (ie, the first insert is object ID 1, the second is object ID 11, the third is object ID 21, etc).  Two questions:   Why does it do that? Is that a problem?


Let $a,b$ be positive integers. Suppose $(a^n-1)\mid(b^n-1)$ $\forall n\in\mathbb{Z}^+$. Can we conclude that $b$ is a power of $a$?


Family of settled person/citizen visa for UK (above age 18)

Hope y'all doing great? I have a couple of questions   I got a 6-month visit visa in November (Expires May). I am using 2 months on my first visit which ends in January and will be back home shortly.   I would like to come back to the UK in April-June (Another 2 months) for basically the same purpose I got the 6months visit visa for (to visit family), would also like to attend events relating to my business industry/personal growth as well. (Remember my 6months visa would have expired by May so I have to renew to be able to travel April-June)  Is it advisable to apply for a 2-year visa or should I stick to renewal for 6 months?? (Remember I only used 2 months from my 6 months and never overstayed).  Secondly, does anyone know about the category called ''FAMILY OF A SETTLED PERSON VISA''? My parents are UK citizens but I am not and I am above age 18, is there any type of visa that allows me to join them long term that is not a visit visa? I have been seeing stuff about it online but the UK GOV website is a bit ambiguous about people over 18 so I wanted to ask if anyone knows about or has experienced it and how they went about it.  I await your response. Thanks


At 10:30 am car $A$ starts from point $A$ towards point $B$ at the speed of $65$ km/hr, at the same time another car left from point $B$ towards point $A$ at the speed of $70$ km/hr, the total distance between two points is $810$ km, at what time does these two cars meet ?  This is what I have tried,     $t_1 = \frac{810}{65} \,$ km/hr $= 12.46 \, $hr    $t_2 = \frac{810}{70} \,$ km/hr $= 11.57\,$ hr     $t_1-t_2 = 0.89 \,$ hr    $t_1-t_2 = 0.89\cdot 60 = 53.4 \,$ minutes   but this couldn't be the answer because how could these two cars could meet after $53.4$ minutes ?


How do I calculate how long a battery operated product will run?  Here's what I've got:   2 AA, 1.5V, 2700mAH batteries Voltage Regulator with a Iq of 25 uA Voltage Regulator Eff = 80% Active Current = 50mA  Sleep Current = 1uA  Duty Cycle = 99.9% (only active 0.1% of the time)  Active Voltage is 3.3V   I've gone the current route and got an answer.  I went the power route and got a TOTALLY different answer (days vs years different).  How do you do this?


Retrieve Nth records from a file until end of file is reached

How can I retrieve the Nth record of a large text file and insert them into a new file?


Instantiation of NSMutableArray in Obj-C 2.0

Is NSMutableArray *myArray = [[NSMutableArray alloc] init]; any more or less correct than NSMutableArray *myArray = [NSMutableArray new]; in terms of style or efficiency?


How do I visualise the contour integral of a complex function?

I've just learnt about the contour integral of a complex function, but I'm having trouble figuring out what it is calculating visually. I understand it is somewhat analogous to the line integral for real functions so should I be thinking about it like the $\mathbb{R}^2 \rightarrow \mathbb{R} $  version of that (as the complex plane is isomorphic to $ \mathbb{R}^2)? $


Today, I noticed that Chrome was acting strange. Every time I would migrate to a new webpage, or search for something via google, the page would refresh continuously. I disabled all extensions, deleted cookies, cache, etc. and the problem seemed to alleviate for about 30 seconds, and would then start again. I then started using Firefox. I loaded all my settings, added extensions, etc.. The problem started again. I signed out, deleted all data from both browsers and proceeded to reinstall them. I repeated these steps 2 more times. Fed up, and with no help from any forum on the internet, I noticed that once I signed out (I was signing in to the browsers using my g-mail account) these problems halted altogether. I confirmed that the issue was indeed my account by signing in to chrome/firefox on other machines. The page just refreshes. Has anyone else had this problem?


Migrating trigger from MySQL to PostgreSQL

Considering our company had no real relational schema in MySQL and, in the process of trying to transform our schema, we've run into some limitations using MySQL, we decided to import tables and data over to PostgreSQL. We've already done that. One thing I can't figure out (besides not being able to find decent tutorials on PostgreSQL 10 that aren't the documentation), is how to have variables, or if I even need variables for the following situation.  We have a subscribers table. This has a primary key subscriber_id. We have a subscriber_info table, that has a foreign key to the subscriber_id in subscribers. When we delete a subscriber, we just set the active record in the subscribers table to 0. We want this to propagate so that setting the master subscribers record to 0 updates all the references to that subscriber_id and sets their active records to 0. Similarly, if I restore a subscription record's active flag to 1, I want that to propagate as well.   So, I have two tables:  subscribers ------------ subscriber_id (PK) active  subscriber_info ---------------- subscriber_info_id (PK) subscriber_id      (FK) subscriber_name  active datetime_created   (current_timestamp) datetime_modified  (current_timestamp on update current_timestamp)   The following trigger works in MySQL:  DELIMITER $$ CREATE TRIGGER delete_or_restore_subscriber AFTER UPDATE ON subscribers FOR EACH ROW BEGIN   SET @subscriber_id = old.subscriber_id;   IF (new.active <=> 0) THEN     UPDATE subscriber_info     SET subscriber_info.active = 0     WHERE subscriber_info.subscriber_id = @subscriber_id;   ELSEIF (new.active <=> 1) THEN     UPDATE subscriber_info     SET subscriber_info.active = 1     WHERE last_created_record = (       SELECT MAX(subscriber_info.datetime_created)       FROM subscriber_info       WHERE subscriber_info.subscriber_id = @subscriber_id       AND subscriber_info.active = 0     );   END IF; END$$ DELIMITER ;   But in Postgres SET .  Is there a way to re-write this trigger? Is there a decent tutorial on triggers? I'd like some way to verify or test my trigger before actually executing it. Any other books, videos or anything would go a long way in understanding this.


Why does the video recorded by a falling, rotating camera seem to stabilize?

Here is a video of a GoPro falling from a plane:   Any idea what is happening when the image "stabilizes" around 0:35? I think it is because the camera's tangential velocity approaches the speed of the GoPro's rolling shutter.  Follow-up question:    Why is the image skewed with the left side skewed "up" and the right side skewed "down?"   A challenge:    Find the axis of rotation (with supporting diagram and explanation of how it was computed).


Can I legally get hold of a domain name for which I hold a trademark?

I currently have a classified ads domain in the .co.uk extension (say piggybank.co.uk). I am about to register the website and its name as a trademark.  There's also a website with the same name in the .com extension (say piggybank.com) which is currently on sale for several thousands USD.  Once I register the trademark, will I be able to legally get hold of the .com domain on the basis of trademark ownership (through ICANN or smth)?


Exponent of the group $GL(n,\mathbb F_2)$

Let $A\in GL_n(\mathbb F_2)$ be an element of order greater than or equal to $2^n-1$ . Then is it true that order of $A$ is $2^n-1$ ?  I know that $|GL_n(\mathbb F_2)|=(2^n-1)(2^n-2^2)...(2^n-2^{n-1})$. But I'm unable to proceed further.   Please help.


Terminal command for changing ibus keyboard layout?

Is it possible to use terminal commands to switch between keyboard layouts in ibus? I can't see any GUI way to do it in XFCE.


I accidently removed apt-get from my Debian system by issuing:  dpkg --force-depends --purge apt   How can I reinstall it?


How to install the drivers for my samsung ml-1670?

I have the Ubuntu 12.04 LTS version and I downloaded the .tar.gz file from the samsung website, I already extracted it content, but I don't know what to do now to install it.


I wanted to reinstall Ubuntu from the hard drive. I followed the instructions from the official site to install grub and move the Ubuntu iso in the grub folder. After rebooting, the grub>  prompt shows up.  ls shows:  hd0, lvm/ubuntu--vg-root, lvm/ubuntu--vg-swap_1   but there is no /dev/sda1 in hd0 nor in --vg-root  How to fix this? What can be done to boot Ubuntu?


Let $R$ be a commutative ring with identity.For each $a\in R$ there exist $n(>1)\in \mathbb N$ such that $a^n=a$.   Prove that every prime ideal of $R$ is maximal.  My try  Let $I$ be a prime ideal of $R$. Then $R/I$ is an integral domain. If I can show using the hypothesis that $R/I$ is a field then we are done.  Any hints to show this?


How can I programmatically change the active theme?

How can I programmatically change the active Drupal 8 theme?  In Drupal 6, we used the following code.  global $custom_theme; $custom_theme = 'garland';   In Drupal 7, we used hook_custom_theme().  In Drupal 8, what's the correct way to do this?


Is there any existing function to get MAX length of String type in C# library

I know in C# you can do int.MaxValue or long.MaxValue to get the maximum for these two types, I was wondering if there are similar ways to get the maximum length for the string.   I don't see it . Also, I am aware that there are already questions being asked on max string length.   I am asking if there is an existing function that comes in handy where you can use it to set the condition when and when not to truncate your string to avoid program crashing. Or what is the normal approach?  E.g. Maybe something as easy as Max(string.length)?


What is the right method to follow when referencing an article published on a website?  For example, I want to include the below sentence from .      A mere 81.7 seconds later, a chunk of insulating foam tore free from the orange external tank and smashed into the leading edge of the orbiter's left wing at a relative velocity of at least 400 miles per hour (640 kph), but Columbia continued to climb toward orbit.   Is the below a correct way to do so?  "A mere 81.7 seconds later, a chunk of insulating foam tore free from the orange external tank and smashed into the leading edge of the orbiter's left wing at a relative velocity of at least 400 miles per hour (640 kph), but Columbia continued to climb toward orbit."  Under References:   Hutchinson, L, 2016. 'The audacious rescue plan that might have saved space shuttle Columbia, USA, ARS Technicia  Thank you,


Master PDF Editor won't start after installation

I installed Master PDF editor 4 from a .deb file downloaded from the official webpage on Ubuntu 16.04. The installation via Software was successful without any error message. However, when I start the program from the terminal I get the following error message:  masterpdfeditor4: error while loading shared libraries: libsane.so.1: cannot open shared object file: No such file or directory   Does anybody know how to resolve this issue? I already executed  sudo apt install libqt5printsupport5 sudo apt install qt5-default sudo apt install --reinstall libqt4-svg libqt4-script libqt4-scripttools libqt4-sql libqt4-test   as suggested in other forums, but still the same error message appears.


Why is it that if I go to install an add-on from User Preferences > Add-ons > Install from File... and choose a *.ZIP, some add-ons will install, while others will return me to the User Preferences with nothing having happened (as far as I can tell)?  Is there a specific file structure required in the .ZIP? I get many add-ons from GitHub, using the Download Zip button, and even there installation of the actual Zip file only works some of the time.


Meaning of telegraph code in the song "Planetes"

The song Planetes in Guilty Crown begins with some telegraph encoding, which I think is . Here is the . My transcription is: -•-• -••-- •-- --•-- •- --•-• •-•-- -•--•  which decodes to this:  ni-yu-ya a-i-shi-te-ru  Niyuya didn't make sense. Did I get something wrong?


How can I derive effect sizes in lme4 and describe the magnitude of fixed effects?

I have run a mixed effects model with a ln transformed continuous response (seconds) and found a significant effect of the categorical predictor (treatment/control, the only fixed effect in the model).   I want to: 1- Report an effect size (cohen's d, etc) 2- Describe the magnitude of the effect in terms of mean number of seconds that the treated individuals differed from the control individuals, after accounting for the random effects.  I am not sure how to achieve either of these goals. Thank you very much in advance for any advice you can offer.  My code and results are below.  mod1 = lmer(data=data, ln_duration ~ treatment + (1 | id/date/size) +   (1 | visitor), na.action=na.exclude)  Linear mixed model fit by REML  t-tests use  Satterthwaite approximations to degrees of freedom ['lmerMod'] Formula: ln_duration ~ treatment + (1 | id/date/size) +   (1 | visitor)  Data: data  REML criterion at convergence: 248  Scaled residuals:    Min      1Q  Median      3Q     Max  -2.7323 -0.4963 -0.0206  0.5600  3.8502   Random effects:  Groups                             Name        Variance Std.Dev.  display_size:(date:id)             (Intercept) 0.00000  0.0000    date:id                            (Intercept) 0.00000  0.0000    visitor                            (Intercept) 0.03574  0.1891    id                                 (Intercept) 0.01164  0.1079    Residual                                       0.20001  0.4472   Number of obs: 170, groups:   size:(date:id), 130; date:id, 128; visitor, 118; id, 58  Fixed effects:                       Estimate     Std. Error  df t value  Pr(>|t|)     (Intercept)               -0.17012    0.06334  41.63000   -2.686 0.010348 *              treatmenttreatment  0.31172    0.08135  40.27000    3.832 0.000436 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Correlation of Fixed Effects:             (Intr)     trtmnt -0.729


Is it possible to concatenate two BibTeX .bib-files? E.g. to write:  \include{child.bib}   into my parent.bib?


Even after update node -v shows older version

I am trying to update node version. Even after updating node to v10.x it still shows older v8.x. I have added  path where npm and node is installed and node and npm version. I also used nvm. I have installed and removed it multiple times so i don't know where it is installed. I am new to linux and completely clueless. Please help.      amrit@amrits-pc ~ $ whereis npm npm: /usr/bin/npm /usr/local/bin/npm /home/amrit/.nvm/versions/node/v8.11.2/bin/npm  amrit@amrits-pc ~ $ whereis node node: /usr/bin/node /usr/lib/node /usr/local/bin/node /home/amrit/.nvm/versions/node/v8.11.2/bin/node  amrit@amrits-pc ~ $ n 10.16.0    installed : v10.16.0 to /usr/local/bin/node       active : v8.11.2 at /home/amrit/.nvm/versions/node/v8.11.2/bin/node  amrit@amrits-pc ~ $ node -v v8.11.2  amrit@amrits-pc ~ $ npm -v 6.14.4


Declare a VB.net method which will return list of integers

I got an assignment to change some things on vb.net project. Since I'm working with C# most of the time, I'm having some issues with some things.   What I want to know is how can I create a method which will return list of integers, something in C# like private List<int> NameOfMethod().  So I'm trying something like:  Private Sub GetSourcesInfo() As   And this method will need to return list of integers, how can I achieve that in VB.net?


In Delphi (or any Pascal) you can declare sub-range type so if you try assign value from outside allowed range, you would get compiler error.  var     i: 1..8; begin     i := 8; // i := 9 would not work   Can this be done in C#? I can imagine creating custom struct, something like SubrangeType<byte> but I'm looking for something builtin.  EDIT: xanatos's and DavidHeffernan's comments gave me idea for more specific question. Subrange checking in Delphi is available both in run-time and compile-time.  Implementing that on run-time would be possible in C# using custom struct but would it be possible to implement that checking on compile-time in C#?


I have a complete version of Windows 7 on my hard drive and I want to re-install Win 7 on my laptop (after 3 years of constant use).  I can't make my USB stick bootable, so I need to create a bootable DVD. How do I create a bootable DVD?  These are the files I have in the folder:    boot efi install sources  support upgrade autorun.inf bootmgr setup.exe   My Windows is original.


I am curious to know whether PhD is the highest degree one can earn? Is there any other degree beyond that, if so what is it and what are the universities offering the same?


How do you forward an email as an attachment of another email on an iPhone 7?


Can a drug to be used in the clinic to treat a disease that failed a clinical trial?

I am searching for drugs for my uncle who has prostate cancer who is afraid to take corticosteroids. I read about the drug cabozantinib, but it said it failed a 3rd phase clinical trial, even though it was equally as effective as the treatment with corticosteroids, only more expensive. Since it has not been approved due to this, I am wondering if this drug can still be used for prostate cancer?


Problem occured after installing python 3.8..Any help?

E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code   I cannot open my terminal


How to display which mode I'm in while in VI

So learning how to navigate and edit in VI but the tutorial I'm following on Udemy (using Ubuntu) shows a slightly different Vi where if they are in command mode or insert mode, the terminal window will show which mode they're in.  Where can I configure this?  Basically what I would like to know is how can I display terminal to tell me which mode I'm in.  EDIT: using vi, version 8.0.1453 on Kubuntu at the moment  EDIT2: I installed VIM and that'll do what I need, thanks anyway mates


working holiday and tourist visas in schengen

I am an Australian and arrived in the Schengen end of April 2015. I travelled as a tourist around the schengen for 90 days and within the 90 days obtained a Working Holiday Visa in Netherlands. My working holiday visa in Netherlands will expire the beginning of July 2016. My question is, can I travel within the schengen for another 90 days as a tourist ? If so, do I need to somehow reset my stay here by re-entering the schengen as a tourist? I.e. travel to the UK at the end of my visa and re-enter ?


I suppose this is too general of a question, but why does    \underbar{word}    give different answer from    \underbar{ word}    and then additional blanks do not count   \underbar{     word}


I can only ping a computer after the other computer pinged me before

I have two computers, let's call them A (192.168.0.10) and B (192.168.0.11). I want A to ping B. However, A cannot ping B unless B pings A first.  # computer A $ ping 192.168.0.11 # result: Destination Host Unreachable  # computer B $ ping 192.168.0.10 # result: works # 64 bytes from 192.168.0.10: icmp_seq=20 ttl=64 time=1.76 ms  # computer A (after computer B pinged A) $ ping 192.168.0.11 # result: works # 64 bytes from 192.168.0.11: icmp_seq=1 ttl=64 time=2.65 ms   Do you have any idea what happens? Because of this behavior I cannot ssh the computer before B pinged for example.  This happens in my WLAN.


I am trying to solve an infinite series of the form:  $$\sum_{n=1}^{+\infty} 2^{-n} \cdot \frac{1}{n^2}$$  I know about the basel problem and its result: $$\sum_{n=1}^{+\infty} \frac{1}{n^2} = \frac{\pi^2}{6} $$  And wolfram alpha actually tells me that: $$\sum_{n=1}^{+\infty} 2^{-n} \cdot \frac{1}{n^2} = \frac{\pi^2}{12} - \frac{\log^2(2)}{2}$$  But I can't find the steps to this solution, can someone give more details to the solution?


I am getting the following error while install mysql  Steps I did : Downloaded apt file from here  run this command  sudo dpkg -i path   In that there is no option to select 5.5 so I selected 5.6 then   sudo apt-get update sudo apt-get install mysql-server   but it gives error  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:  mysql-server : Depends: mysql-server-5.5 but it is not going to be installed E: Unable to correct problems, you have held broken packages.   /etc/apt/sources.list :   /etc/apt/sources.list.d :   kubuntu-ci-stable-trusty.list kubuntu-ci-stable-trusty.list.save pwntools-binutils-trusty.list pwntools-binutils-trusty.list.save rvm-smplayer-trusty.list webupd8team-java-trusty.list webupd8team-java-trusty.list.save


How to set breakpoints on future shared libraries with a command flag

I'm trying to automate a gdb session using the --command flag. I'm trying to set a breakpoint on a function in a shared library (the Unix equivalent of a DLL) . My cmds.gdb looks like this:  set args /home/shlomi/conf/bugs/kde/font-break.txt b IA__FcFontMatch r   However, I'm getting the following:   shlomi:~/progs/bugs-external/kde/font-breaking$ gdb --command=cmds.gdb... GNU gdb 6.8-2mdv2009.0 (Mandriva Linux release 2009.0) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later  This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.  Type "show copying" and "show warranty" for details. This GDB was configured as "i586-mandriva-linux-gnu"... (no debugging symbols found) Function "IA__FcFontMatch" not defined. Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]    So it doesn't set the breakpoint after all. How can I make it default to answer "y" to set breakpoints on pending future shared library load?  I recall that I was able to do something, but cannot recall what.


Keeping sudo authentication with gnome-terminal

Can sudo sessions be shared across tabs of gnome-terminal, so that once I use sudo in one tab, I won't have to re-enter my password every time I open another tab and use sudo?


Convert inputted time duration to minutes:seconds

I'm working on , and I wish to convert the data in columns C, D, and E from hours and minutes to minutes and seconds.  For example, an inputted 7:08 turned into 07:08:00.000 (hours and minutes, no seconds) when it should be something like 00:07:08.000 instead (minutes and seconds, no hours).  Is there a way to change how Google Sheets to input time by default so that a duration inputted as mm:ss is automatically turned into mm:ss?


NullPointerException on constructor parameters

I have been struggling a lot with a NullPointerException on a class method. The problem is that when I call variables that are initialized on the constructor, they return null. Remember that the KitGUI extends GUI.  package src.foundation.core.game.kit;  import org.bukkit.entity.Player;  import src.foundation.core.GUI; import src.foundation.core.game.Game; import src.foundation.core.game.Kit; import src.foundation.core.util.ItemStackFactory;  public class KitGUI extends GUI {     private Game game;     private Player player;      public KitGUI(Game game, Player player)     {         super(player, "Select Kit", 27);         this.game = game;         this.player = player;     }      public void addItems()     {         for (Kit kit : this.game.getKits())         {             // NullPointerException...             addMenuItem(ItemStackFactory.createItem(kit.getDisplay()));         }     }      public void checkItems()     {         for (Kit kit : game.getKits())         {             if (getClick().getItemMeta().getDisplayName().contains(kit.getName()))             {                 game.selectKit(getPlayer(), kit);                 break;             }         }     } }   And the GUI class:  package src.foundation.core;  import org.bukkit.Bukkit; import org.bukkit.Sound; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.inventory.InventoryClickEvent; import org.bukkit.event.inventory.InventoryInteractEvent; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.ItemStack;  public abstract class GUI extends Module {     private String name;     private int slots;      private Inventory inventory;      private Player player;     private ItemStack choice;      public GUI(Player player, String name, int slots)     {         super("GUI");          this.name = name;         this.slots = slots;         this.player = player;          this.inventory = Bukkit.createInventory(null, this.slots, this.name);          addItems();          this.player.openInventory(inventory);     }      public abstract void addItems();      public abstract void checkItems();      public void addMenuItem(ItemStack item)     {         this.inventory.addItem(item);     }      public Inventory getInventory()     {         return this.inventory;     }      public ItemStack getClick()     {         return this.choice;     }      public Player getPlayer()     {         return this.player;     }      @EventHandler     public void selectChoice(InventoryClickEvent e)     {         this.player = (Player) e.getWhoClicked();         this.choice = e.getCursor();          e.setCancelled(true);          if (!(e.getInventory().getName().equals(this.name)))             return;          if (e.getCurrentItem() == null || !e.getCurrentItem().hasItemMeta() || !e.getCurrentItem().getItemMeta().hasDisplayName())             return;          if (e.getCursor().getItemMeta() == null)             return;          if (e.isCancelled() == true)         {             checkItems();              this.player.playSound(this.player.getLocation(), Sound.CHICKEN_EGG_POP, 1.0F, 1.0F);              this.player.closeInventory();         }     } }   Stack Trace:  Caused by: java.lang.NullPointerException         at src.foundation.core.game.kit.KitGUI.addItems(KitGUI.java:25) ~[?:?]         at src.foundation.core.GUI.<init>(GUI.java:32) ~[?:?]         at src.foundation.core.game.kit.KitGUI.<init>(KitGUI.java:18) ~[?:?]         at src.foundation.core.game.GameManager.lobbyItemsUse(GameManager.java:2 68) ~[?:?]   Any ideas on where the problem might be? Regards.


Setting value of field in all selected rows of table using ArcGIS Desktop?

I have an attribute table in ArcGIS 10 (it's large - around 300,000 elements). I've selected some rows of the table using 'Select by attributes' and I want to set the value of a field for all of those rows.   How should I go about doing this? I'm hoping there will be a nice, easy, GUI-based way - as I'm teaching someone with very little GIS experience.


Relation between rank and number of distinct eigenvalues of a matrix

Let $T : V\to V$ be a linear transformation such that $\dim\operatorname{Range}(T)=k\leq n$, where $n=\dim V$. Show that $T$ can have at most $k+1$ distinct eigenvalues.   I can realize that the rank  will correspond to the number of non-zero eigenvalues (counted up to multiplicity) and the nullity will correspond to the 0 eigenvalue (counted up to multiplicity), but I cannot design an analytical proof of this.  Thanks for any help .


In this sentence is it "you and me" or "you and I"?

I tried reading online articles about this but I'm still not understanding when it is correct.   The sentence:         "Logic is not for people like you and me."      Is this accurate and in which context could this change to "you and I"?  If the word "logic" was replaced by an adjective would that change anything?


Problem accessing Windows 8.1 drive from Ubuntu 15.04

I have a Toshiba Satellite Pro C50 laptop which came with Windows 8.1 pre-installed. I have installed Ubuntu 15.04 (64 bit) alongside Windows as a dual boot system. However, I can't access any of my data on the Windows drive C which has the name TI3125550PA from Ubuntu.  I get the following error message:  Unable to access “TI3125550PA” Error mounting /dev/sda4 at /media/malcolm/TI3125550PA: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000" "/dev/sda4" "/media/malcolm/TI3125550PA"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I had exited Windows properly with 'Shut Down', not 'Sleep' and did that several times.  From within Windows I ran 'chkdsk /f /r /x' which took some time to complete but reported that it had been 100% successful.  From within Ubuntu I used 'GParted' to check the partition which had Windows on.  It quickly completed the task, but still I get the same error message and am unable to access my data on the Windows drive.  Any ideas?


Converting list into a grouped list of tuples?

I have this list:  ['Ben\n', '5 0 0 5 -5 \n', 'Moose\n', '5 5 0 3 0 0 \n', ...]   that carries on like that for a long time.  I need to make this list into a list of tuples like this:  [('Ben', '5 0 0 5 -5'), ('Moose', '5 5 0 3 0 0'), ...] and so on.   I feel like this should be easy. I've already opened the text file and split it into a list by line this way:  e = open("bookratings.txt", "r") elines = e.readlines()   But I don't know where to go from here?


how to open only one window in c# winform

I write a c# windorm application and generate a install file, when I finish the installation, every time I double click the shortcut in desktop, it will open a new window, does anyone can tell me how could I just open the original window when I double click the shortcut in desktop?


What's a single word for a person who doesn't follow the crowd?

I'm looking for a word with a positive undertone to describe a teenager who does her own thing and doesn't cave in to peer pressure.  Any suggestions?  Thanks.  Question edited 1/30/16.  Someone marked this question as a duplicate, but I think the other question is quite different from the one already posted.  The other question is asking about a single word to describe someone who doesn't follow the crowd for the single purpose of being contrary.  A contrary state of mind has nothing to do with what I'm looking for.  I'm writing a recommendation for a teenager who is polite, independent, confident, and doesn't follow the crowd...  NOT out of a sense of being different for the sake of being different, and not because she's ornery and contrary, but because she's her own person, and not swayed by what the other teens are doing.  Can we re-open this discussion?


Install GCC in Git for Windows bash environment

I have Git for Windows installed on a Windows 7 machine (no, sadly I can't switch to W10 on this particular machine). This comes with a bash environment that uses MinGW-64 but only includes some binaries. I'd like to add more, such as GCC.  It seems like there should be someway of adding to the MinGW-64 binaries within the git bash instead of adding a whole other MSYS2/MinGW-64 install. However I'm not exactly clear on what is the best way to go about enabling this. I have tried installing  in the bash install usr/ directory (seemed like the place all the other binaries were). It seems to run OK but it doesn't seem to add anything AFAICT, no executables, no folders, nada... except if I try to run the install again it complains that there are already files there... though they patently aren't.  Thus my question is this: can I use win-builds or some other binary to achieve my aim and if so, how?  Note: There are several questions about this around the net and SE, but most are quite old and so no longer relevant AFAICT due to changes in MSYS2, MinGW and Git for Windows.


Could someone please name the phenomenon regarding the stretch of reflections into infinity between two opposing mirrors, and also explain why the reflections curve away instead of meeting at a perspective point within the reflections?


Remove class of element when anything except that element is clicked

Although I understand this question has been asked on SO many times before, I have tried playing around with this ages but still no success.     So if the element has a certain class (which it will do when is visible on the page), then it listens for a click event - if the click target does not have the id of 'pop-up-bottom-notif' then remove the class of that element.  Any ideas what I could be missing?  Update: Here's a section of the HTML

     View all

   and I have also tried using the .not() method, :not selector amongst other ways - and so the solution must be slightly different from other questions


My favorite chicken-and-mushroom soup recipe incorporates hot peppers and, on upon immediate serving has a lovely kick. However the reheated leftovers are entirely bland, almost as if the "hot" from the peppers dissolves away into the soup.  I've tried using more peppers and hotter varietals, but still can't get the leftovers to have any appreciable level of spiciness.  This is the general recipe that I'm following:   Poach chicken breasts in 6 cups water along with spices and garlic. Remove chicken, strain stock, discard solids. Add chopped mushrooms (hen-of-the-woods or shiitake), chile pepper, chopped ginger, tbsp vinegar, tbsp soy sauce, and simmer. After ~10 minutes, add back chopped up chicken breasts and simmer until meat is warmed through.   The original recipe called for 1 Fresno chile, thinly sliced. I've tried up to 6 Fresno chiles, but also, in separate tries, 6 serrano peppers and 6 habanero peppers. (My local supermarket doesn't carry anything hotter than habaneros.) When I slice the peppers, I retain the seeds and pith.  In all attempts, the broth itself doesn't become spicy, but on the first day the sliced peppers provide an ample "kick" and act like little pockets of spiciness. Regardless of the pepper type or quantity, the peppers in the leftover soup lose their kick, and the broth remains un-spicy.  My first instinct here is to remove the peppers from the broth and use them as a garnish; the fact that they're cooked with the broth however makes me think that the original recipe authors intended for the broth to take on some of the spiciness from the peppers.  Questions:   Why do the peppers lose their spiciness in the leftovers? What are some possibly ways to adjust this recipe to make the broth take on the spiciness of the peppers?1     1 I ask this so that I can try and do what the original recipe author intended by cooking the peppers with the broth: making the broth spicy. If I can manage that, then I can service the hot peppers as a garnish and then not worry about them losing their kick overnight.


Is there a way to typeset the following matrix in LaTeX?    In my attempt, I got to the following:  \begin{equation} C=\left[\begin{array}{cccccccccc} 1 & 1  & 1 & 0 & \ldots & \ldots & -1 & -1 & -1\\ 1 & 1  & 1 & 1 & \ldots & \ldots & \ldots & -1 & -1\\ 1 & 1 & \ldots   & 1 & 1 & \ldots & \ldots & 0 & -1\\ 0 & 1 & \ldots & \ldots  & 1 & 1 & \ldots & 0 & 0\\ \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots \\ \hdotsfor{9}\cr\vdots & \vdots & \vdots & \vdots & \vdots & \vdots & \vdots &\vdots &\vdots  \\ -1 &0 & \ldots & \ldots & 0 & 1 & 1 & 1 & 1\\ -1 & -1 & 0 & \ldots & \ldots & 0 & 1 & 1 & 1\\ -1 & -1 & -1 & \ldots & \ldots & \ldots & 0 & 1 & 1 \end{array} \right] \end{equation}   Would like to know how to add the curly braces.


I've produced a map in QGIS, with various shapefile layers.  I want to share this with a colleague.  If I send him everything, keeping the same file structure, will it open ok on his machine?


Failure to start MySQL on Ubuntu 18.04 LTS using terminal

I am failing to start MySQL on Ubuntu 18.04 LTS mysql -u root mysql don't work and when I use mysql -u root -p , password is required but I didn't set a password.


GTK2 themes do not show up in any tweak tool

I have Ubuntu 14.04 and I would like to download this   I managed to get it to work on 13.10 but since I upgraded to 14.04 it no longer works. When I look in any tweak tool it does not show up. Other themes that I copied into ~/.themes and also /usr/share/themes work just fine. The only difference as far as I can tell is those themes that work have both a gtk-2.0 and a gtk-3.0 folder, while this theme "A New Hope" only has a gtk-2.0 folder.  edit: Well, I guess the theme is just not gtk3 compatible, is the answer. But is there any way around this?


Are data members allocated in the same memory space as their objects in C++?

Say I've got a class like this:  class Test {   int x;   SomeClass s; }   And I instantiate it like this:  Test* t = new Test;   Is x on the stack, or the heap? What about s?


"Trying Ubuntu" Can't install programs! Help!

I'm a brand new user to Ubuntu and need some help installing programs. I can't get them to install and I don't know why. I download them from their websites, such as google chrome download, but after that I can't do anything. I'm starting to think it's because I'm "Trying Ubuntu". Is this true? Thanks for helping! :)


How can I use asymptote language inside an exsheets question?  For example, the code below will compile perfectly fine. But if the asypicture environment is moved inside the exsheets question environment, then errors happen.  (The same behavior is used if asy environment from asymptote package is used.)  \documentclass{article} \usepackage{asypictureB} \usepackage{exsheets}  \begin{document}      \begin{question}         How can I use asymptote inside a question?     \end{question}      \begin{asypicture}{}         import graph3;         import palette;          size3(400,400,200,IgnoreAspect);         currentprojection=orthographic(1,-3,50);          real f(pair r) {return r.x^3-3*r.x*r.y^2;}          real Arg(triple v) {return degrees(cos(v.z),warn=false);}          surface s=surface(f,(-4,-4),(4,4),20,Spline);          s.colors(palette(s.map(zpart),Rainbow()+opacity(0.75) ));         draw(s,render(compression=Low,merge=true),meshpen=black);          real xmin = -5;         real xmax = +5;         real ymin = -5;         real ymax = +5;         pen axisPen = red + 0.75;         draw(Label("$x$",1),(xmin,0,0)--(xmax,0,0),axisPen,Arrow3);         draw(Label("$y$",1),(0,ymin,0)--(0,ymax,0),axisPen,Arrow3);          pen p=fontsize(12pt);         pair P = (2.5,-2);         dot("$P$",(P.x,P.y,f(P)),N,p);          xaxis3("$x$",Bounds,InTicks);         yaxis3("$y$",Bounds,InTicks(beginlabel=false));         zaxis3("$f$",Bounds,InTicks);     \end{asypicture}  \end{document}


Area51: a commitment shows up on the user's profile but not on the proposal itself

According to , user TheBitByte has committed to the Literature proposal at Area 51 (and they hadn't 12 hours ago, so they must be one of the few most recent committers):    But if you look at , TheBitByte doesn't appear there at all:    Seems a bit of a long period (11 hours and counting) to be a caching issue, especially since I've been watching this proposal closely and new committers tend to show up pretty quickly when refreshing the front page of the proposal. So is this some kind of bug? And if so, are there more people who have committed (at least according to their profiles) but aren't showing up on the list of committers?


Is there a common notion of $\mathbb{R}^n$, for non-integer $n$?

This is not a very well-defined question.  Are there any standard constructions of metric spaces, parameterized by real-valued $n \ge 1$, such that:   When $n$ is an integer, the metric space is precisely $\mathbb{R}^n$. When $n$ is non-integer, the metric space can be seen as a reasonable generalization of $\mathbb{R}^n$.  For example, perhaps it has  of $n$.   Alternately, a non-existence result that you can't maintain some of the important properties of $\mathbb{R}^n$ in a generalization like this would be interesting to me.


Add / collate QGIS layer to existing PostGIS table?

With the database manager in QGIS, it is possible to export a QGIS layer to a PostgreSQL database, by creating a new table in the database. For instance, if I have a cities layer in my QGIS project, I can export it to a new table cities in my PostgreSQL database. The tool provides the option of replacing the destination table in the database, if this table already exists (see screenshot below, sorry about the French locale). Now, my question is: is there any way to "concatenate" the data of my QGIS layer cities to the existing citiestable of my PostgreSQL database, instead of erasing the existing table and replacing it by a new one? (assuming of course, that the existing database table and the QGIS layers have the same CRS and the same geometry type)


Dataset transformation for clustering after PCA

I have conducted PCA that has reduced the dimensions of my data from more than 20 to 7 (7 PCAs explain about 85% of the total variation). As a second step, I have to cluster my data based on these new 7 PCAs. My question is: how I should reconstruct/transform my data (cbind/rbind)? As I understand, each PCA is a weighted mix of the original variables. So should I just replace the old variables with the PCAs? Also, how should I interpret the final results? If there was no PCA, each cluster would incorporate all variables in some proportion. But after PCA, how would I describe each cluster? For instance, cluster 1 contains 40% of PCA 1 and PCA 1, in turn, has xxx loading scores? Something like this? Would greatly appreciate any help on interpreting this.


Lagrange Interpolating Polynomial , Error Estimation

Suppose that we got $f\in\mathcal{C}^{n+1}[-1,1]$ and $x_{0},...,x_{n}\in [-1,1]$ , uniformly separated.With $x_{i}=-1+ih, \ \ i=0,..,n$ , $h=2/n$ and $p_{n}\in \mathcal{P}_{n}$(polynomial).  We also know that the approximation of error can be expressed as   $f(x)-p_{n}(x)=\frac{1}{(n+1)!}\Phi_{n+1}(x)f^{(n+1)}({\xi})$, $\xi \in [-1,1] , x\in[-1,1]$  where $\Phi_{n+1}(x)=\prod_{i=0}^{n}(x-x_{i})$  My problem is that in my notes I have that $\left \| \Phi_{n+1} \right \|_{\infty}\leq \frac{n!}{4}h^{n+1}$, but there is no proof and I really don't know how to prove it.


Get Display Name in Generic Enum Editor Template

I am using the following editor template to create drop downs from enums.   It works great. But if possible I'd like to use the DisplayName or Description attributes as a text value, so that the user sees "My Selection" as opposed to "MySelection".   Is this possible?    I have a feeling it might not be because it's a generic enum template, not specific to the type. I'm wondering if there is some reflection magic I can use to achieve this.   @model Enum  @{     var htmlAttributesFromView = ViewData["htmlAttributes"] ?? new { };     var htmlAttributes = Html.MergeHtmlAttributes(htmlAttributesFromView, new { @class = "form-control" }); }   @{      var values = Enum.GetValues(ViewData.ModelMetadata.ModelType).Cast<object>()                      .Select(v => new SelectListItem                         {                             Selected = v.Equals(Model),                             Text = v.ToString(),                             Value = v.ToString()                         }); }
     @Html.LabelFor(model => model, htmlAttributes: new { @class = "control-label col-md-3" })
         @Html.DropDownListFor(model => model, values, "Please Select...", htmlAttributes)         @Html.ValidationMessageFor(model => model)
      model)" data-content="@Html.DescriptionFor(model => model)">


REGEX: how to match each string within double braces in an input string, if it occurs more than once?

Let me take an example to show clearly the issue; say I want to match all alphabetic strings wrapped by double curly braces {{ }} which can contain curly braces as well. here is the expression i tried  /{{([A-Za-z {}()]+)}}/g   but when i give this input  "{{foo}} {{bar}}"   it matches foo}} {{bar and not foo bar as i wanted.  so my quetion is how  do i solve this ?  and is there a way to escape double braces in case i want to explicitly write them and not be considered by the regex ?


Need help in completing the question related to proving these 4 conditions equivalent related to perfect fields

Consider the following question:  (a) The following conditions on a field K are equivalent :So, Prove them   (i) every irreducible polynomial in K[x] is separable ;   (ii) every algebraic closure K of K is Galois over K;   (iii) every algebraic extension field of K is separable over K;   (iv) either char K = 0 or char K = p and $K = K^p$.  (i)=>(ii)  This part I am not able to do. What i am missing is how to prove that for all $\sigma \in Aut_K{\bar K}$ only y$\in K$ gets fixed and rest all are not fixed. (ii)=> (iii) I have done as if  an algebraic extension is galois over K and then the extension is also separable  over K ( This is a theorem). (iii)=>(iv) I tried by assuming that char K $\neq 0$, so, As field is integral domain, so Characterstic must be prime and so, let char K=p but then I am not able to move towards proving $K=K^{p}$. (iv)=>(i) I have solved . So, I don't require help with that. Kindly shed some light on this


Here's my servlet code:  @WebServlet("/Admin") public class Admin extends HttpServlet {  // some code goes here  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {     // TODO Auto-generated method stub     OrdersQuery query = new OrdersQuery();      if (request.getParameter("deleteOrderBtn") != null) {         deleteOrderById(Integer.valueOf(request.getParameter("deleteOrderBtn")));     }else {         Object allOrders = query.getAllOrders();         request.setAttribute("allOrders", allOrders);          RequestDispatcher rd = request.getRequestDispatcher("admin.jsp");         rd.forward(request, response);     } }   }  And my authentication filter:      @WebFilter("/Admin")     public class AdminFilter implements Filter {     public void doFilter(ServletRequest request, ServletResponse response,          FilterChain chain) throws IOException, ServletException {      String login = request.getParameter("adminLogin");     String password = request.getParameter("adminPassword");     if (login.equals(LOGIN) && password.equals(PASSWORD)) {         chain.doFilter(request, response);     }else {         RequestDispatcher rd = request.getRequestDispatcher("error.jsp");         rd.forward(request, response);     }  }   So when I am pressing the deleteOrderBtn button it gives me NullPointerException and refers to the Filter and this line from it:  if (login.equals(LOGIN) && password.equals(PASSWORD)) {   But I have no idea why. So can you please look at my problem?


IndexError: list index out of range - with two exactly equal lists, one raises error and the other doesn't

I'm new to python and I wanted to code a function that sums every k numbers in a list. I need only the results that are equal or less than a given number t, and I'm adding them to a set. The number I need is the max number in that set. Code looks like this: ls = [91, 74, 73, 81, 88] k = 3 t = 245   def choose_best_sum(t, k, ls):      res = []     i = 0     s = set()     aux = [[91, 74, 73, 81, 88], [91, 74, 73, 81, 88], [91, 74, 73, 81, 88]]      while i != k:         for m in range(0, i + 1):             aux[i].pop(0)         for j in range(1, k + 1 - i):             aux[i].pop(0)             res.append([ls[i] + ls[i + j] + x for x in aux[i]])         i += 1     for g in res:         for d in g:             if d <= t:                 s.add(d)     return max(s)  The code is working fine like this, but since the argument list will change, I need an aux that adjust to the given ls. So I coded the aux like this: aux = [] for _ in range(0, k):     aux.append(ls)  If I do this in this example I get the exact same aux, but when I execute it, python gives me the error IndexError: list index out of range, even though the two aux are identical. The error comes on this line: res.append([ls[i] + ls[i + j] + x for x in aux[i]]) (1st 'while' iteration, 2nd 'j' iteration) Any idea on why that happens? Doesn't make sense to me! Thanks guys


For example I have a file '1.mp3', metadata are length, codec, compositor, license, bitrate, etc How can I get that metadata? I want to get metadata from different types of files.


How to sort Google Sheets using a criterion

Background/Business Case  I'm a recruiter who uses spreadsheets to organize the work I've done with candidates with respect to a certain job vacancy.   Like , I would like to have a pipeline that shows how my candidates are going through a certain progression or pipeline. I've put the different statuses of the pipeline here:    In the following figure, you can see that I've entered my candidates data, and I've put conditional formatting so that they are color depending on the status they're in:   Question  Notice how in this screenshot, i sorted the candidates according to the status alphabetically:    However, i want it sorted according to the same order available in the pipeline status depicted above, ie according to this order: - initial contact - interested - discussing - ..  any ideas?


Do I need a comma before which in my short story?

For an English short story one of my sentences has the word which, but I'm not sure if i need a comma. Here's the sentence..... "He was stopped at his locker which of course happened to be right beside mine so I figured I might as well ask." Also, are there any other grammar things I could fix?


Graph of real continuous function has measure zero

Let $f\colon[a,b] \to \mathbb R$ be a continuous function. Show that its graph has measure zero.  I've tried with the following idea but I got stuck:  Let $\epsilon >0$, since $f$ is uniformly continuous, there exists $\delta>0$ such that $ |x-y|< \delta \implies  |f(x)-f(y)|<\epsilon$. Let $P=\{x_0,\dots,x_n\}$ be a partition of the interval $[a,b]$ with $ |x_i-x_{i-1}|<\delta$.   The graph of $f$ is $G(f)=\{(x,f(x)) : x \in [a,b]\}$, and $G(f) \subset \bigcup_{i=1}^n [x_{i-1},x_i]\times[m_i,M_i]$, where $m_i=\min_{x \in [x_{i-1},x_i]} f(x)$,$M_i=\max_{x \in [x_{i-1},x_i]} f(x)$.  We have $ |G(f)|_e \leq \sum_{i=1}^nm([x_{i-1},x_i].m([m_i,M_i])<n\delta\epsilon$. At this point I got stuck, I need to arrive to an inequality with $\epsilon$ times a constant or something of the sort. I would appreciate some help.


Hi I have two Java Files as below:              case 6:                   System.out.println("List All Property Details For Rent >>>"); //              System.out.println(Arrays.toString(Property_list));                 int i=0;                 while(i<count){                     ppty.property_list[i].viewPropertyDetails("RENT");                     i++;                 }                 System.out.println("++++++++++++++++++++++++++++++++++++++++++++++++++++++++");                 break;           }      }         }  }   Guys, This is basically an array of properties, and a Menu to do some operation with the list. I was planning to improve my code with a java ArrayList, because its more dynamic in nature. Could anyone tell me how I can convert this array (property_list) into an ArrayList? What are the changes do I need to make? Thanks in advance.


Why can't I change directory to the current directory with permission denied?

I am trying to restore a database with the following command:  $ sudo -u postgres pg_restore -C -d dvdrental dvdrental.tar  [sudo] password for t:    However, I am receiving the following error message:      could not change directory to "/home/t/mydata/.../relation model/SQL/implementations/Implementations, i.e. relational database management systems/postgreSQL/general/web/postgresqltutorial/databases": Permission denied      pg_restore: [archiver] could not open input file "dvdrental.tar": No such file or directory   I was wondering why I can't change directory to the current directory with permission denied?  File permission bits are:   -rw-rw-r-- 1 t t 2838016 May 26  2013 dvdrental.tar   Is it because one of its ancestry directory is not both readable and executable by any one?  The file has  many ancestry directories, and how can I verify that?


Computer Science (Database/ Data Mining) Conference Evaluation

Can you tell me whether COSN () is a good conference? Its a new conference introduced by ACM with a strong PC committee. Last year, the acceptance rate was around 16%. I have recently finished a manuscript that I would like to try in either COSN, or WISE () which is an established rank A conference. Can you tell me which one will be a better venue in terms of exposure/visibility? My manuscript is on social network mining which is within the scope of both conferences.


QGIS ->ArcGIS Server configuration possible?

Is it possible to connect a QGIS Desktop 1.8.0 to an ArcGIS Server 10.0 ? and of course publish services on it?.   The configuration would be like this Quantum GIS-> ArcGIS Server 10.0 on Amazon EC2+ POstgreSQL (+PostGIS)-> web app.   Is it possible to create a configuration like this? Do you think I could use it for networking?


Multi client (QGIS.ArcGIS Desktop)/ multi-user editing environment

I'm using ArcGIS Desktop 10.6.1 with PostgreSQL 10.3/PostGIS 2.4 and would like to edit PostgreSQL polygon features regardless of client (QGIS/ArcGIS desktop) without having to create an ArcGIS Enterprise Geodatabase.  How can I create a PostGIS database where edits are possible in ArcGIS Desktop?   Note as a test with a different method - I've created a Postgres database (with PostGIS extension enabled), then created an ESRI Enterprise geodatabase on top of this, created a "data_manager" user/schema and proceeded to import a layer (with pg geometry keyword) where I can edit in ArcGIS and QGIS.  However if a QGIS user creates a spatially enabled table in the data_manager schema, it's not registered with the geodatabase in ArcGIS.  Old/related posts (no longer relevant) due to changes of read/write at ESRI Desktop 10.4 then again at 10.6:


As a general rule, a sentence that begins with noun A and noun B should be followed by a "plural" form of the verb. For example, May and Tom are good students.  However, which verb should be used in the following example?  Example     The diagnosis and management of disease X require/requires an   extensive ...   As in the first example, the original sentence can be broken into      May is a good student.      Tom is a good student.      May and Tom are good students.   Following the logic,     The diagnosis of disease X requires ....      The management of disease X requires ....   Shouldn't the diagnosis AND management of disease X be followed by require? Or is there any difference between the diagnosis and management of disease X and THE diagnosis and THE management of disease X, in which the subject in the former is considered singular and that in the latter is plural?


How can I present a file for download from an MVC controller?

In WebForms, I would normally have code like this to let the browser present a "Download File" popup with an arbitrary file type, like a PDF, and a filename:  Response.Clear() Response.ClearHeaders() ''# Send the file to the output stream Response.Buffer = True  Response.AddHeader("Content-Length", pdfData.Length.ToString()) Response.AddHeader("Content-Disposition", "attachment; filename= " & Server.HtmlEncode(filename))  ''# Set the output stream to the correct content type (PDF). Response.ContentType = "application/pdf"  ''# Output the file Response.BinaryWrite(pdfData)  ''# Flushing the Response to display the serialized data ''# to the client browser. Response.Flush() Response.End()   How do I accomplish the same task in ASP.NET MVC?


Matrix representation of linear transformation

I'm having trouble with part of homework exercise. Let $\mathcal{P}_3(\mathbb{C})$ be the vector space of complex polynomials of degree 2 or lower and $\alpha,\beta\in\mathbb{C},\alpha\ne \beta$.  Let $L:\mathcal{P}_3(\mathbb{C})\to\mathbb{C}^2$ given by $L(p)=(p(\alpha), p(\beta))^T$ and I want to find the matrix representation of $L$ with respect to the bases $\{1,X,X^2\}$ and $\{\mathbf{e_1},\mathbf{e_2}\}$.  I usually apply $L$ to the elements of the basis for $\mathcal{P}_3$, but with this definition of $L$ I don't know how to do it. Can someone give me a pointer?


When are additional Dominion actions chosen?

At what point do you need to decide which additional actions to choose?  To make this question explicit, suppose I play the Village (+1 card; +2 actions).  Do I need to decide which two actions I will play immediately, or do I decide on the second action after choosing and completing the first action?  For example, if I play the Smithy (+3 cards) as my first additional action, can my second action be an action I just picked up?


Looking for a Story about an orbiting alien craft harvesting memories

I recall many years ago reading a (possibly short) story that involved an inscrutable alien craft arriving in orbit around earth that stripped a day's-worth of memories from everyone it passed by, so that from an individual's point of view they were going back in time.    Once they realised what was happening they left notes for themselves.  The military tried to mount an attack but they kept forgetting where they were up to.  Divorcees found themselves back in love. A sort of SF horror story.  What was the story?


Do multiple lantern archon's Aura of Menace debuffs stack?

I summoned six . They each have the ability Aura of Menace with a save DC of 13:     Aura of Menace (Su) A righteous aura surrounds archons that fight or get angry. Any hostile creature within a 20-foot radius of an archon must succeed on a Will save to resist its effects. The save DC varies with the type of archon, is Charisma-based, and includes a +2 racial bonus. Those who fail take a –2 penalty on attacks, AC, and saves for 24 hours or until they successfully hit the archon that generated the aura. A creature that has resisted or broken the effect cannot be affected again by the same archon’s aura for 24 hours.   The debuff seems to be untyped. If the enemy fails his save vs all six auras, does he suffer -12 to attacks, AC, and saves?


What precautions should one take in a crowded place such as airport or in the airplane for COVID-19?

I will be travelling for more than 13 hours through South East Asia, most of the time in a crowded environment like airplane or transiting at the airport. What precautions should I take to reduce the chances of contracting any contagious disease, such as Corona Virus COVID-19?


Importing numpy fails with python-dbg but not python

I am trying to debug my Python program so I apt-get install python3.6-dbg. But when I run python3.6-dbg and I try to do import numpy I get:  >>> import numpy Traceback (most recent call last):   File "/usr/local/lib/python3.6/dist-packages/numpy/core/__init__.py", line 16, in <module>     from . import multiarray ImportError: cannot import name 'multiarray'  During handling of the above exception, another exception occurred:  Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/local/lib/python3.6/dist-packages/numpy/__init__.py", line 142, in <module>     from . import add_newdocs   File "/usr/local/lib/python3.6/dist-packages/numpy/add_newdocs.py", line 13, in <module>     from numpy.lib import add_newdoc   File "/usr/local/lib/python3.6/dist-packages/numpy/lib/__init__.py", line 8, in <module>     from .type_check import *   File "/usr/local/lib/python3.6/dist-packages/numpy/lib/type_check.py", line 11, in <module>     import numpy.core.numeric as _nx   File "/usr/local/lib/python3.6/dist-packages/numpy/core/__init__.py", line 26, in <module>     raise ImportError(msg) ImportError:  Importing the multiarray numpy extension module failed.  Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control).  Otherwise reinstall numpy.  Original error was: cannot import name 'multiarray'   If I do that with regular python3.6 it works. numpy was installed through pip3 system-wide before I installed python3.6-dbg.


Developing SharePoint Online master pages

Here's the main question: what is the best practices for designing custom master pages on SharePoint Online?  Here's some background info: I've been designing and developing SharePoint master pages on various on-premises platforms. My usual design and development process is as follows:   Design in HTML Use "Design Manager" to upload and convert the HTML page Use the "Snippet Gallery" to customize web part zones Create page layouts Enable the new master page via "Site Settings" > "Master page"   Is this the best practice for SharePoint Online?   I do a lot of work in Visual Studio and use TFS for source control. In the past, SharePoint 2013 allowed the development of master page and any customized page layouts to be packaged as SharePoint solution file (.WSP) then deployed via SharePoint PowerShell as a farm solution.  Is there a method to do this for SharePoint Online or must I use the "Design Manager" to manage customized branding solutions for the master pages and page layouts?


I am a new user of latex, I got a template to write my thesis in Latex. But in this template the section command does allow me to make more sub-sections. with the help of \section and \subsection command I can only go till 3 subsection. For example:   1. Main section 1.1 first subsection 1.1.1 first sub-sub section   but it does not allow me to do this  1.1.1.1 first sub sub sub section   Thanks


When does the community user review first posts?

I was going through some posts in Ask Ubuntu and found a post which was reviewed by the community user.  Does the community user review first posts once in a blue moon or often? Why is it reviewing posts when a normal user (having access to the review queue) can do it?


In C++, what's an easy way to turn:  This std::string  \t\tHELLO WORLD\r\nHELLO\t\nWORLD     \t   Into:  HELLOWORLDHELLOWORLD


crontab doesn't get bash.bashrc variables

In Ubuntu 16.04 Bash 4.3.46(1) at the end of /etc/bash.bashrc I declared the following variable:  drt="/var/www/html"   I sourced the file (source /etc/bash.bashrc)  I executed crontab -e and added just for testing * * * * * touch /var/www/html/myFile.sh. This worked, while * * * * * touch ${drt}/myFile.sh didn't.  If a variable declared in bash.bashrc is global why it doesn't get processed by crontab?  Update1  I don't want to duplicate the stream drt="/var/www/html" into crontab (or cron.d) to avoid redundancy by principle.  Update2  I followed  and it seems the answer marked as correct didn't solve my problem.   The  was somewhat unclear to me - why to put this conditional statement in (some?) bashrc file.  I also tried the third solution in relation to bash.bashrc (added SHELL=/bin/bash into the very start of crontab, saved the file and sourced bash.bashrc but had no change in a * * * * * touch ~/myfiile test.  I thus ask to reopen this question, or at least, clarify one the answers there.


Combinatorial Proof: $ {a \choose b} {b \choose c} = {a \choose a-c}{a-c \choose b-c}$

Let $0\le c \le b \le a $. Show the identity is true with combinatorial proof.  $ {a \choose b} {b \choose c} = {a \choose a-c}{a-c \choose b-c}$. By using algebra, I can find out that both sides are dividing $a$ into 3 sets $(a-b), (b-c), c$, but I have no clue how to use combinatorial proof. The multiplication part is confusing.   Edit: I didn't know this question has been asked before. After looking at the hint, is it correct to say we choose committee first because we have ${a \choose a-c}$ which is same as  ${a \choose c}$?  Edit: LHS is saying we choose $b$ out of $a$ into group I and then we choose $c$ out of $b$ into group II. RHS is saying we take $a-c$ out of $a$ in the group II. Then group II would be left with $c$. Next we choose $b-c$ out of $a-c$ into group I. Thus, group I and group II have same numbers on both sides. Is this right? And is this a complete proof?


How can the diameter of the universe be so big, if nothing can go faster than light?

The following are facts of the prevailing cosmological model.    The age of the universe is about 13.772 billion years. Nothing with mass can exceed the speed of light. The diameter of the observable universe is 28.5 gigaparsecs, i.e. 93 billion light-years.   How could two particles never exceeding 186,000 miles per second ever end up farther than 27.544 ± light years apart? Is it possible to explain this seeming contradiction in a way that appeals to reason and doesn't require a pencil and paper?


Is it acceptable to copy your own answer verbatim from an off-site resource?

An answer on Stack Overflow was recently brought to my attention as possible plagiarism, but I determined that the source of the suspected plagiarism was actually written and posted by the answerer elsewhere and later copied over to Stack Overflow verbatim.  The question  seems to cover the opposite scenario, where someone might want to copy their Stack Exchange answer onto another SE question or elsewhere on the Internet.  Is this an acceptable practice?  I am assuming:   That the answerer has permission to post the answer here, either because they never gave up the rights to the content or they have retained enough rights to also post it here. That the answer is at least minimum quality and makes an effort to answer the question (that is, it's not simply a rant from the answerer's blog, or random ponderings with nothing to do with the question asked).   In response to Anne Daunted's question, no, they did not disclose that they were copying over content that they had previously written and posted elsewhere. It got brought to chat as a possible plagiarism to be flagged. I investigated and declined to flag, commenting instead that it looked ok enough to not be flagged for summary deletion by a moderator. Instead, I decided it would be best to leave it to voters to decide how useful it is.  While this question is inspired by something that happened on Stack Overflow, it belongs here because it is relevant to every site, and there is no obvious reason that such a policy is or should be different across the network.


Can a person be released from vows of the Night's Watch on the grounds of being unaware of his true identity?

Consider case of Jon Snow. Let's assume if it turns out that      Jon Snow is the last living male of House Targaryen - bastard or no,   Could he petition to be released from his vows? If Daenerys finds out (In the eventuality that she makes it to Westeros) could she make the same request      to have her nephew released from the vows barring him from holding any lands or crowns?   We know that Robb Stark seemed to think he could make the Watch agree to releasing Jon Snow by giving them more men in return. But let's say if the member at hand did not have any bargaining chip except the fact that he didn't know (and he had joined the watch voluntarily rather than forcibly for some crime):   He was heir to some lands.  He was heir to some booming business.  His uncle in Summer Islands left him a small fortune which he could claim if he paid a small processing fees.   Could he ask to be released in those cases, asserting that when he made the decision to take the Black, he wasn't in an informed position to make an educated decision?


How to permanently switch Caps Lock and Esc

How can I permanently switch the Caps Lock and Esc key functions in Saucy? I can use this command to do it temporarily (until reboot):  /usr/bin/setxkbmap -option "caps:swapescape"   I tried adding that command as a Startup Application, but it doesn't seem to do anything.


Origin and of the phrase "problem that needed solved"

I recently listened to a podcast in which the narrator described an unresolved obstacle as a "problem that needed solved." My initial assumption was that he had meant to say "problem that needed to be solved," but had misspoken. However, he used the same phrase again later. I had never encountered this phrase before, so I did a google search for the exact phrase and found a surprisingly diverse set of results including user comments, professional web content, and books. I am now curious. Is this, seemingly grammatically incorrect, phrase commonly used in certain regions or is there some other known origin?


Is $\mathbb Q \times \mathbb Q $ a denumerable set?

How can one show that there is a bijection from $\mathbb N$ to $\mathbb Q \times \mathbb Q $?


Many years back I read a short science fiction story about sold love. If memory serves, a man comes to a pleasure-planet. He passes several attractions, the weirdest one being a place where you can kill women (with guns, hand grenades, etc.). He finally ends up at a place where he is promised to be sold "true love", for a limited time only.  He buys the package and indeed falls in love with the woman presented to him. They share some wonderful days until his time runs out. The woman returns to the company and he's desperately trying to get her back.  Due to his efforts, the salesman of the love-company finally admits that the love sold is controlled by some "effects" and not natural, though in every way the same as true love. Finally the frustrated man walks off and once again passes the place where you can kill women...    I've searched for this story for a while now. I don't think I've grabbed the whole concept of it back when I read it and I really want to read it again.  Any help finding it would be highly appreciated!


How to instantiate a class based on a variable type of the class to be instantiated

Is there a way to do instantiate a class,  but not by it's classname, but using the Class' type? Possibly/probably using  Convert or reflection.?  e.g.  I have a class and typically create an instance of it as per..  TCustDataDetailModel newDataDetail = new TCustDataDetailModel ();   but  I want to be able to do it like ..  public void MyFunction (Type somePassedinParamType) {     somePassedinParamType newDataDetail  = new somePassedinParamType();  }   thx


Spaces whose all their metrizations are complete

Which metrizable topological spaces $(X,\tau)$ posses the following property:  Every compatible metric (i.e one which induces the same topology $\tau$) is complete.  Compact metrizable spaces satisfy this.  Are there any non-compact examples?   Note:  It turns out that if you impose additional structure the answer is yes. In particular, if $M$ is a smooth manifold, and every Riemannian metric on $M$ is complete, then $M$ must be compact.  Reference: Nomizu, Katsumi, and Hideki Ozeki. "The existence of complete Riemannian metrics." Proceedings of the American Mathematical Society 12.6 (1961): 889-891.


Proving the Product Rule for exponents with the same base

For all $ a, b \text{ and } c \in \mathbb{R}$ and $a>1$, Prove that $a^b\cdot a^c=a^{b+c}$  I have come across this question and its  bugging me. Its a basic property that we learn in HS  and I was hoping someone can enlighten me


Custom program to calculate sqare root isn't showing any output

This is a user defined program to print the square root of a number. It is supposed to work for numbers which aren't perfect squares as well. i is incremented by a step of 0.01 each time and the the value of i*i is checked if equal to n. And if equal then the value of i is printed.  #include <stdio.h>  void squareRoot(double);  int main() {     double num;     scanf("%lf", &num);     squareRoot(num);     return 0; }  void squareRoot(double n) {     double i;     for (i = 0; i < n; i += 0.01)     {         //printf("%.2lf\n",i*i);         if (i * i == n)         {             printf("%lf\n", i);             break;         }     } }


I am working on a presentation. My presentation is made like this:  \documentclass[hyperref={ linkcolor=black, urlcolor=black, citecolor=black, colorlinks=true  }]{beamer} \usepackage[utf8]{inputenc} \usepackage{tcolorbox}%installiert pgf, verbatim \setbeamertemplate{headline}{ \begin{tcolorbox}[width=\linewidth*4/5] \hspace{2em} {\large\thesection.\thesubsection.~\insertsubsection} \hspace{2em} \end{tcolorbox} }  \setbeamertemplate{footline}{ \begin{flushright} \hfill\textcolor{red}{\rule{10cm}{.4pt}}\vspace{5pt}\\ \textcolor{gray}{{\tiny{~Name~\vline~\inserttitle~\vline~Folie~insertframenumber~\text{ }}}} \end{flushright} }  \setbeamerfont{footnote}{size=\tiny} \begin{document} bla \end{document}   Now I would like to put my footnotes in the footer. For Example: "My Car is red"^2. And in the footer on the left side I find: ^2 Book about cars, John et al., 2005. On the right  side the text defined in the preamble


Recently I saw some of the developers coding their VOs with nested builder class like   public class User {      private String firstName;     private String lastName;      public String getFirstName() {         return firstName;     }      public void setFirstName(String firstName) {         this.firstName = firstName;     }      public String getLastName() {         return lastName;     }      public void setLastName(String lastName) {         this.lastName = lastName;     }      public static class UserBuilder {          private String firstName;         private String lastName;          public User build() {             User user = new User();             user.firstName = firstName;             user.lastName = lastName;             return user;         }          public UserBuilder withFirstName(String firstName) {             this.firstName = firstName;             return this;         }          public UserBuilder withLastName(String lastName) {             this.firstName = firstName;             return this;         }            }  }   Now, they claim that this makes code more readable. My point is, this has following disadvantages:   I can't simply add fields and expect my IDE to complete code for me, as now I need to update this inner class too. Simple POJOs are carrying code which is not relevant for VO.   I am looking for any advice if I am missing something here. Feel free to add your thoughts about the same.   Sample code after this modification looks like,  User user = new User.UserBuilder()                 .withFirstName("Name")                 .withLastName("surName")                 .build();


How to show two elements in a group are (not) conjugate?

While stuying group theory, I was wondering how to proof two elements in a group are not conjugate? For example, say we're in the symmetric group $S_8$, and I have to show that the two elements $(1354672)$ and $(18967543)$ are not conjugate. I can see that the orders of both elements are not equal. And order should be conserved under the conjugation map $τ:S_8 → S_8$, since this mapping is an isomorphism. So I think I can conclude that these two elements are not conjugate. But how do can you prove two elements are not conjugate when they have the same order? Or does same order imply conjugation? Thanks in advance!


How to allocate less processing power to a video conversion process?

I do a lot of video converting on my laptop, and I notice that during conversion the temperature of the processor is between 90C-99C, which is a bit alarming for me.   I am using Windows 8.1 and I can't find any option in task manager to limit computational resources. My current fix for this is to disable hyper-threading and turbo-boost in BIOS setup which helps to limit CPU temperature around 80C, but it also reduces overall speed of my computer.   Is there another way of doing this within Windows for a single process?


Is there any number which is a perfect square of some number as well as factorial of some number.

Is there any number which is a perfect square of some number as well as factorial of some number?  That is, let x be such a number, then x can be expressed as               x = k^2 (for some k)   and,         x = n! (for some n)  The very trivial answer is 1. But is there any number other than 1?


Comparing overlap with different SRIDs in MSSQL

I am sourcing our GIS data (ESRI ArcGIS) into a data warehouse for reporting. I am trying to join our sites in Table_A (with a point geometry column) to our markets in Table_B (with a polygon geometry column) by using the STContains() function. However, I found that these two columns are using different SRIDs (4326 and 4269 respectively) so the function will not work. I've done a lot of reading, and found that SQL Server has no transform function. So I used the .STAsText() function to store the text and STGeomFromText function to recreate the geometry, but this time matching the SRIDs. Now the STContains() function returns 1 that they do overlap as expected. My concern is I don't fully understand the impact of changing this SRID. By doing so, did I shift the point/polygon from where it should be on the map? Is what I'm doing a valid solution?


Let a be a positive number. Then $\lim_{n \to \infty}[\frac{1}{a+n}+\frac{1}{2a+n}+\cdots +\frac{1}{na+n}]$

Problem :   Let $a$ be a positive number. Then $$\lim_{n \to \infty}\left[\frac{1}{a+n}+\frac{1}{2a+n}+\cdots +\frac{1}{na+n}\right]$$  Please suggest how to proceed in such limit problems, will be of great help thanks.


Can I move the linux subsystem to a different drive?

My C: is a small solid state that's already filling up. I'd like to move WLS to my D: or E: drive. Is this possible?  I imagine I'd have to uninstall then reinstall in order to move it. I'm ok with that if it's possible.


Call a function at the end of an application in .NET

I'm currently working on a web application based on ASP.Net. I need to do some treatments when the application is stopped or is dying.  In the HttpApplication inherited class, I know that I can define some event handler methods, notabily :   Application_Error(object sender, EventArgs e) Application_End(object sender, EventArgs e)   I wondered if I must put my code on the Application_End method AND the Application_Error method, or if the Application_End is fired even on error.


I have always been taught to driver an LED using an MCP using the following method (Driving the pin high) as shown in the diagram below:   However I have recently seen LED's being driven using the following method as shown in the diagram below. I assume in this method the LED is driven when the digital pin is set to low. Which method is best practice and why?


sed command to replace the image in kubernetes yaml file

I have the following Parameters in a shell script  #!/bin/bash DOCKER_REGISTRY=gcr.io GCP_PROJECT=sample ELASTICSEARCH_VERSION=:7.3.1   When i run this command the parameters are all replaced correctly   ELASTICSEARCH_IMAGE=$DOCKER_REGISTRY/$GCP_PROJECT/elasticsearch$ELASTICSEARCH_VERSION echo $ELASTICSEARCH_IMAGE gcr.io/sample/elasticsearch:7.3.1   I need to replace the ELASTICSEARCH_IMAGE on a kubernetes deployment file     containers:     - image: {{ELASTICSEARCH}}                                                       name: elasticsearch    So when i run the below command it is not replaced. The issue is because of "/". I tried various sed command but not able to resolve it   YAML_CONTENT=cat "app-search-application.yaml.template" | sed "s/{{ELASTICSEARCH_IMAGE}}/$ELASTICSEARCH_IMAGE/g"  My intension is to dynamically change the image on kubernetes yaml file with the sed command.


pgfmathanglebetweenpoints always returns 90

I have the following code and I expect the resulting angle to be 135 degrees but whatevet I try, I get 90.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}  \coordinate (A) at (1,0); \coordinate (B) at (-1,1);  \pgfmathanglebetweenpoints{A}{B} \edef\angleAB{\pgfmathresult} \node at (0,0) {\angleAB};  \end{tikzpicture} \end{document}   I also tried the following command without knowing what it means, it also prints 90 except one case. The only working case is when A=(1,0) and B=(-1,0), which it prints 180.  \pgfmathanglebetweenpoints{\pgfpointanchor{A}{center}}{\pgfpointanchor{B}{center}}   Why is that? Couldn't find any reference document for "pgfmathanglebetweenpoints" by the way, that's why I am asking here.  EDIT: B is corrected from (-1,-1) to (-1,1)


Why are "south" and "southern" pronounced with different vowels?

I was wondering why we pronounce the vowels in the words south and southern. They seem to be very closely related to each other. Both refer to the same direction. South is a noun and Southern is an adjective, which I don't think caused them to have a different vowel. Oxford Dictionary shows that south is /saʊθ/ and southern is /ˈsʌð(ə)n/. In short, south has a long vowel and southern has short.


Is it possible to have two background colors for a single html element?

I am trying to add 2 different background colors to the same css class.  .stepwizard-row:before {     top: 14px;     bottom: 0;     position: absolute;     content: " ";     width: 100%;     height: 4px;     background-color: #d6d6c2;     z-order: 0;  }   Is it possible to have one background color for the first 50%(Considering total width) and another background color to the  remaining? If it can`t be achived, can anyone suggest me a trick to achive this?


Can I designate a block device as the internal storage?

Everything was fine as long as I used CyanogenMod 11 (Android 4.4) on my HTC One S. I recently switched to LineageOS 14.1 (Android 7.1.2) and since then couldn't use its non-removable 16-GB sdcard as an internal storage.  Now there is /storage/emulated/0 instead of it. I logged in via ADB and mounted the card inside this directory (mount -t vfat -o rw,uid=0,gid=1015 /dev/block/mmcblk0p36 /storage/emulated/0/sdcard) and could browse it there, but still not on my phone. Permissions are similar for the mounted directory and the rest of the storage.  Any sugestions?


Give $A \in M_n(\mathbb{C})$ such that $A^2=A$, Then Prove that $rank(A)=Tr(A)$  My try:  I took two cases:  Case $1.$ If $A$ is Invertible then we have the only idempotent matrix as $A=I$  $$Rank(I)=n=Tr(I)$$  Case $2.$ If $A$ is Non invertible Then  $Rank(A) \lt n$  But now how to prove it is Trace?