How can I access the US Google page and doodle from abroad?

I am located in Israel, and would like to access the American Google home page and "Doodle". Even when I choose the "google.com" option on the google.co.il page, the US page it takes me to does not display any of the "doodles" currently on display in the US. Any ideas how I can fix this?


I need to generate a random 2 digit number which will be concatenated to the end of a string. The number MUST be 2 digits (i.e. 00-99, nothing <10 is acceptable).  How can this be done using Java libraries in the simplest way possible?


I bought a new HDD today, and I'd like to make a fresh install of Kubuntu. Unfortunately, the largest storage device I have is 2gb, which is not enough to hold the graphical live installer. But wait! I have a fully functional, running ubuntu installation. Surely I can re-run the live installer, install to my new HDD, and be on my way?  Except... I can't figure out how to. I've grabbed the ubiquity-frontend-kde package, which I think  I want. I tried launching it with ubiquity, ubiquity ubiquity-frontend-kde, and ubiquity --desktop kde_ui, guessing from . However, all my guesses either exit with code 1, or print some combination of the following lines:  /usr/bin/ubiquity:74: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses   import imp The value for the SHELL variable was not found the /etc/shells file  This incident has been reported.   The  is remarkably unhelpful on this front.  Does anyone know how I can run the live installer? 🤔


Let $B$ stand for a brownian motion on a finite interval $[0,1]$. If i am not wrong, i think that there exists a positive constant $c$, such that almost surely, for h small enough , for all $0< t < 1- h$  \begin{align} |B(t+h)-B(t)| < c\sqrt{h\log(1/h)} \end{align} or something like this. As a result   \begin{align} \bigg|\frac{B(t+h)-B(t)}{h}\bigg| < K(h)  \end{align}  Am i correct ?


Is there a word for somebody who cares for his/her child too much?

I have just finished watching the 3rd season of .  I am wonder whether there is a word for somebody who cares for his/her son/daughter/child too much, like Dr. Cal Lightman?


can any one help me out in this.I have created a custom visual force page on "quote " object in a PDF format where the data gets displayed .Now Can we create a summary Report like data with subtotal and grandtotals in a visual force page in a PDF format.Any suggestion plz.   Using an tag as and passing a hard core value in a Visualforce page in a PDF.  <analytics:reportChart ReportId="XXXXXXXXXXXXX" showRefreshButton="true" size="huge" cacheResults="false" />


Long-term (6-8 hour) temperature monitoring for large renders

My question has to do with CPU and GPU overheating. I am starting to do some long animation renders (about 8 hours or so). I don't have any problems with figuring out how to monitor my temperatures. I use CPUID HW Monitor and I know of some other ones like openhardwaremonitor.org and aida64.com.  Most people do long renders while they are sleeping which makes these real time monitoring programs kind of pointless. I want to be able to look at a graph over time of my temperatures to make sure that over the course of a 8 hour render my CPU or GPU temps were fine. Any suggestions out there? I built my own computer and it was my first time so I want to keep my components in really good condition.   Thanks in advance and thanks for the time!  Tyler


continuity of a probability measure if $\mu (\{x\})=0$

Let $\mu$ a probabibility measure in $\mathbb R$ with $\mu\{x\}=0\quad \forall x\in\mathbb R$. Show that for all $\alpha \in [0,1]$ there exists $B_\alpha \in\mathcal B(\mathbb R)$ with $\alpha=\mu (B_\alpha)$.  My thoughts: We have to show that the distribution function $F(y)=\mu(-\infty,y)$ is continous. Then we can apply the intermediate value theorem.  I am not sure how to show that this measure is continous. Some help is welcome!


How to show that the limit of compact operators in the operator norm topology is compact

When I read the item of compact operator on Wikipedia, it said that      Let $T_{n}, ~~n\in \mathbb{N}$, be a sequence of compact operators from   one Banach space to the other, and suppose that $T_n$ converges to $T$   with respect to the operator norm. Then $T$ is also compact.   Can anyone give me a brief proof of this? Thanks in advance.


Trying to dual boot Ubuntu and Kali. While trying to encrypt the Kali partition I mistakenly encrypted both Ubuntu and Kali partitions and also the Ubuntu swap space. When I realized this I tried to undo the changes and deleted the Kali partition.   Then I restarted my PC and I get a filesystem error and grub rescue.  In grub rescue I can't seem seem to find my root partition. I keep getting unknown filesystem on each partition. I have a live gparted disk that shows that the Ubuntu partition is encrypted.  How can I recover my data?


A problem regarding polynomials with only prime powers

$\mathbf {The \ Problem \ is}:$ Let, $f \in \mathbb Q[x]$ be a polynomial of degree $n \gt 0$ and let $p_1,p_2, \cdots p_{n+1}$ be distinct prime numbers . Show that there exists a non-zero polynomial $g \in \mathbb Q[x]$ such that $fg = \sum_{i=1}^{n+1} c_iX^{p_i}$ with $c_i \in  \mathbb Q .$  $\mathbf {My \ approach} :$ Actually, I was thinking to approach by induction with the fact that $g \in \langle x\rangle$ as the rt hand side has no constant term. And, if we consider $f$ to be monic, then $f=x^{n+1}+f_1$ where $deg(f_1) \lt n$, then applying the induction hypothesis, we get a $g$, but then by comparison of co-efficients on both sides, the process becomes lengthy.  Again, $\mathbb Q[x]$ is a principal ideal domain , and for any distinct set of primes $p_1,p_2, \cdots p_{n+1}$, consider the smallest ideal containing $\{X^{p_i} | i=1,2 ...,n+1\}$ and name that ideal by $I_{n+1}$, then $I_{n+1}$ is also principal, but I can't approach using these paths .  A small hint is warmly appreciated .


fingerprint reader Validity sensor 138a:0010 not recognised

my ASUS PU301L has a fingerprint scanner from Validity sensor that is not recognized. Here below details. Any idea on how to get it working?  matteo@PU301LA:~$ lsusb -s 001:006 -v  Bus 001 Device 006: ID 138a:0010 Validity Sensors, Inc.  Device Descriptor:   bLength                18   bDescriptorType         1   bcdUSB               1.10   bDeviceClass          255 Vendor Specific Class   bDeviceSubClass        17    bDeviceProtocol       255    bMaxPacketSize0         8   idVendor           0x138a Validity Sensors, Inc.   idProduct          0x0010    bcdDevice            0.78   iManufacturer           0    iProduct                0    iSerial                 1 a2db4513cc22   bNumConfigurations      1   Configuration Descriptor:     bLength                 9     bDescriptorType         2     wTotalLength           46     bNumInterfaces          1     bConfigurationValue     1     iConfiguration          0      bmAttributes         0xa0       (Bus Powered)       Remote Wakeup     MaxPower              100mA     Interface Descriptor:       bLength                 9       bDescriptorType         4       bInterfaceNumber        0       bAlternateSetting       0       bNumEndpoints           4       bInterfaceClass       255 Vendor Specific Class       bInterfaceSubClass      0        bInterfaceProtocol      0        iInterface              0        Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x01  EP 1 OUT         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x81  EP 1 IN         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x82  EP 2 IN         bmAttributes            2           Transfer Type            Bulk           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0040  1x 64 bytes         bInterval               0       Endpoint Descriptor:         bLength                 7         bDescriptorType         5         bEndpointAddress     0x83  EP 3 IN         bmAttributes            3           Transfer Type            Interrupt           Synch Type               None           Usage Type               Data         wMaxPacketSize     0x0008  1x 8 bytes         bInterval               4 Device Status:     0x0000   (Bus Powered)


Revert an incorrect migration of a question

A question that I had posted on philosophy.stackexchange.com was migrated (incorrectly, according to me) onto meta. Should I post a new question on philosophy or request for a migration back from meta to philosophy and if so, then how?


Hi I want to make thousand separator for integer values I been tried on format('%n',[total]) but not working, it says      wrong argument on %n   also been trying currency format but the result is my country currency format I just want to make 'total' is show as thousand separated


Customise Ubuntu Dock like Unity Launcher Desktop 18.04

I have recently upgraded from 16.04 to 18.04 desktop.  In 16.04 I was able to add to the right-click behaviour of icons in the launcher - eg have a simple icon in the launcher bar, right click to show a list of all libreoffice programs and choose the one I wanted. Also I added programs such as FreeFileSync, Disk, gParted to the right-click list on the nautilus icon.  Is it possible to do this within the GNOME environment?  If not then is there an alternative?  I've already looked at Docky, not sure that it does all I need it to...


transforming numbers from words to digits

I need to build a function that takes word representation of a number as an input and transforms it into a digit. one => 1, threethousandsixtyhundreadtwo => 3602 etc. I have the upper limit for the number (999,999) and I have already done reverse function. I have also all the words that will be used. So far, I am stuck on, how to separate each part of the number, when there are no spaces or anything similar between different parts of the number.   Doing this in python. I didn't find any reasonable method to do it with find().


Top show high CPU on process but idle on load average

I am running FreePBX on DigitalOcean VM. I am facing some call dropping issue in Asterisk. When looking at "htop", "top" and FreePBX GUI, I see different results of CPU utilization and can't understand if my VM is OK or needs attention w.r.t CPU. Load average shows nearly idle system while CPU utilization of Asterisk process is pretty high.  htop result:   top result:   FreePBX GUI result:    Could someone please advise me on this? 74% CPU on a process yet idle system on load average. Can this be an issue causing call dropping on Asterisk?


Vertical Center Text to Scroll Effect Image Issue

I'm struggling to have text vertically centred within a background image which has a scroll effect. I have Top: 34%; at the moment to centre the text on my screen however, that is 34% from the top of the navigation menu. Is there a way for me to set it to 50% from the image that is showing? I'm fine with centring text on a normal image with no scroll effect, however, I feel having background-image (css) with scroll effect rather than a normal img tag on the html page is effecting the result. HTML:   .home-section-image {   /* The image used */   background-image: linear-gradient(     rgba(8, 8, 8, 0.05),      rgba(8, 8, 8, 0.25)   ),url("../images/pexels-photo-258109.jpg");   opacity: .80;   border-top: 1px solid #000;      /* Set a specific height */   min-height: 505px;    max-height: 505px;   margin: auto;      /* Create the image scrolling effect */   background-attachment: fixed;   background-position: center;   background-repeat: no-repeat;   background-size: cover; }  .home-section-image h2 {   position: absolute;   top: 34%;   left: 50%;   transform: translate(-50%, -50%);   color: #fff;   -webkit-text-stroke: black 2px;   text-align: center;    font-size: 5vw; } /* Edits text overlaying image positioning, colour of text and adds stroke */

Kay Park Memorials


How do I choose between "while" and "whilst"?

When should whilst be used instead of while?  For example, should I use the first or the second sentence?      They don't do this whilst they do that.   They don't do this while they do that.   Which would be correct?


I have been trying for days now to get Ubuntu to dual boot with Windows 10, I have it installed but won't show at all looks like it's invisible.


How to make letter shapes by filling in motifs?

How to make a shape by filling in motifs like the effect of the attached image? I know how to clip a pattern to a shape but this one is different. Thanks.


Create an empty object in JavaScript with {} or new Object()?

There are two different ways to create an empty object in JavaScript:  var objectA = {} var objectB = new Object()   Is there any difference in how the script engine handles them? Is there any reason to use one over the other?  Similarly it is also possible to create an empty array using different syntax:  var arrayA = [] var arrayB = new Array()


Deny certain user from updating certain rows

Say I have a table like this:  canModify | name | age  ------------------------     1     | John | 24     0     | Nick | 21   I want to grant update access to a specific user only where canModify=1  I know there is column level security, something like:  DENY UPDATE ON Table(column) TO user;   But I can't find anything like:  DENY UPDATE ON Table To user WHERE Table.canModify = 1   Is there a trigger or something I can set up to do this?


I did a software update on my HP 250 G3, after that the icon of the network manager is gone, connection is gone, if I plug an Ethernet cable in, nothing happens. If I go to settings > network, a pop up shows up   Network services are not compatible with this version of the system  OS is Ubuntu 14.04.     Any idea?


How to deal with poorly written and formatted papers (as a reviewer)?

From time to time I receive papers to peer review that, in my view, fail to attain an acceptable level of writing and text formatting. Examples of usual issues are: common erratum, poor use of English, bad formatted equations, inconsistent use of punctuation marks, spacings, citations, references and so on. Bonus track is when the submission has not been processed in LaTeX and it contains poorly written equations (for the record my field is Mathematics). I do not consider myself an expert in any of these points, but I think everybody know how to reach a decent level, of course if you are willing to invest some time on it.   While in certain situations there are interesting scientific contributions to present, it is certainly hard to focus on them with so many styling distractions around. What is worse, sometimes they are hard to decipher because of an inconsistent use of notation or because a misspelling introduces a key change in the meaning of a statement. In my opinion, these are issues that could have been solved by the authors with a careful revision of the manuscript prior to submission.  For the sake of argument, let's assume a paper as described before, with a legitimate scientific contribution and let's keep apart from the question the scientific part of the report. When I face the review of such a paper, I often have the next dilemma: should I point the authors to all the writing/styling/formatting issues? Or should I briefly mention that there are serious non-scientific issues and encourage the authors to fix them? The two opposite arguments supporting each approach are:   On one hand, I feel that is my responsibility as a reviewer to ensure that the paper is going to have the best scientific/presentation quality possible after the reviewing process. And that includes helping as much as I can in both points. On the other hand, if the authors should have taken care of all the non-scientific issues, I wonder why should I invest so much time pointing towards their improvement. In some sense, I feel they are being a little disrespectful with the reviewers and readers to submit a non-polished manuscript. In addition, maybe this kind of work could be done by the people in charge of the article proofs (assuming that the journal has them and that they do a good job...)   My current approach is to ask for a major revision and reply with a very detailed list of all the non-scientific issues I found, but I wonder whether I am overdoing my referee's duties. In addition, this turns to be also quite time-consuming.  EDIT: I am looking for an answer that involves a discussion on what are the reviewer's duties and limits regarding writing/styling. This is only partially addressed in  question.


What are the possible return values from the following command?  import sys print sys.platform   I know there is a lot of possibilities, so I'm mainly interested in the "main" ones (Windows, Linux, Mac OS)


Windows of an application have minimum size and I can't find the window anymore

I had an application (in case it matters: LibreOffice Calc] in full-size mode. I then clicked the middle of the three buttons of the top right to adjust the size. When I did that, the window became minimum size, literally a vertical line. I panicked and alt-tabbed, and now I can't even find the vertical line anymore. Opening new windows in that application opens all of them hidden to me, and closing/reopening or even restarting the OS doesn't help. I don't know how to resize my invisible windows anymore. Here's the preview of the windows in the application launcher: a vertical line (that I don't find on my screen anywhere if I click this).


Needing assistance with posting apostrophes via PHP POST into a web hosted MySQL DB

When I POST the data from my html form via PHP into a MySQL DB that is web-hosted, it is unsucessful, however, it is working on localhost. New, a little frustrated and thought someone might be able to quickly lend a hand/teach. Thank you in advance!      <?php      if(isset($_POST['insert_post'])){        $sender = addslashes(mysqli_real_escape_string($_POST['sender']));       $receiver =  addslashes(mysqli_real_escape_string($_POST['receiver']));       $feedback = addslashes(mysqli_real_escape_string($_POST['feedback']));       $date = addslashes(mysqli_real_escape_string($_POST['date']));            $insert_product = "insert into feedback(sender,receiver,feedback,date) values('$sender','$receiver','$feedback','$date')";          $insert_pro = mysqli_query($con, $insert_product);          if($insert_pro){           echo "<script>alert('Success!')</script>";          echo "<script>window.open('index.html')</script>";           }      }    ?>   No data is inserted...only the primary key id is appearing upon submit.


Is there a pattern that is able to indetify whether a string is a common word or a regular expression? Or is there a JavaScript tool that does It?  A regular expression can be created from a string and usually have this form: [a-zA-z] * \ d?  And a common word may be: 'cat', 'dog', etc. I want to know whether a value of a string is a regular expression and not a common word.  In another words i can write a regex that indentify a regex?


How do I recover accidentally deleted/canceled meetings in Outlook 2013 calendar?

While trying to remove recurrence of events, I accidentally deleted the meeting requests (sent by others) and canceled the ones (created by me).  I want to recover those items. How can I do that?


How to remove the first element of array without changing its key value?

I have an array in php  <?php $array=array("a"=>"123","b"=>"234","c"=>"345"); array_shift($array); //array("0"=>"234","1"=>"345"); ?>   If I use this function, then key value gets changed. I want my key value to remain the same. How can I remove first element without affecting array key values. My answer should be like  array("b"=>"234","c"=>"345");   Note:Please do not use foreach(); I want to do this by existing array functions in php  array_splice function is working for above array. But consider the below array  <?php $array = Array (     '39' => Array         (             'id' => '39',             'field_id' => '620'          ),      '40' => Array         (             'id' => '40',             'field_id' => '620',             'default_value' => 'rrr',  ));  array_splice($array, 0, 1); print_r($array); ?>   It is showing answer as follows:  Array ( [0] => Array ( [id] => 40 [field_id] => 620 [default_value] => rrr ) )   May I know the reason?? Will array_splice() work only for single dimensional array?? Now key value is reset...


Why I lose reputation when I vote down an accepted answer

I've voted down on a very wrong answer, it was syntax wise and logical wise wrong! still it was accepted by the user who posted the question.  But this cost me reputation down!  Is this an error of some kind ?


HDD light pulsing every few seconds under Kubuntu 18.04.3

I've recently installed Kubuntu 18.04.3 on a new AMD Ryzen 3000-series-based system. The system is installed on a SATA SSD, specifically on an Ext4 partition, with a SATA HDD formatted in NTFS mounted for storage. The system has been in use for a few days, with a maximum uptime of two days (so far).  My issue is this: the HDD indicator light on the case flashes every 1-3 seconds, even when the system is idle, and there is no obvious reason to access the disk. The flashes are not regular: sometimes the light is dark for as long as 3 seconds (obviously it is difficult to time such short intervals -- I am approximating), sometimes there are a few quick pulses less than a second apart. The flashes seem to vary in duration as well -- sometimes very brief, sometimes nearly a second. Unmounting the secondary HDD does not appear to have any effect.  Some searching lead me to try iotop. I ran sudo iotop -Pao, and waited until 10 flashes of the HDD light had occurred. This is the result:    6887 be/4 root          0.00 B      0.00 B  0.00 %  0.02 % [kworker/u64:1-events_power_efficient]   433 be/3 root          0.00 B      0.00 B  0.00 %  0.02 % [jbd2/sda2-8]  6302 be/4 root          0.00 B      0.00 B  0.00 %  0.01 % [kworker/u64:0-events_unbound]   The "kworker" processes seem to switch between various states, such as "events_power_efficient", "events_unbound", and "events_freezable_power_". The jdb2 process does sometimes write to disk, though that was not observed here (even though, as I said, 10 flashes of the HDD light occurred). The computer was otherwise idle during this test.  My searches also lead me to check /var/log. The result of ls -lth | head is as follows:   -rw-r-----  1 syslog adm             951K Aug 27 19:49 kern.log -rw-r-----  1 syslog adm             594K Aug 27 19:49 syslog -rw-r-----  1 syslog adm             528K Aug 27 19:49 ufw.log -rw-r-----  1 syslog adm              53K Aug 27 19:48 auth.log -rw-r--r--  1 root   root             40K Aug 27 19:15 Xorg.0.log -rw-rw-r--  1 root   utmp             79K Aug 27 18:29 wtmp -rw-r--r--  1 root   root              55 Aug 27 16:28 prime-offload.log -rw-r--r--  1 root   root              30 Aug 27 16:28 prime-supported.log -rw-r--r--  1 root   root            1.2K Aug 27 16:28 gpu-manager.log   I have no experience interpreting log files, so I don't know if anything here is out of the ordinary.  If the kernel version is relevant, the output of uname -r is 5.0.0-25-generic.  My questions are, 1. Why is my HDD light flashing, even though there is no obvious disk activity, 2. Does this indicate some kind of problem with my system that needs to be fixed, and 3. If so, how do I fix it? The light itself does not bother me -- if this is just a sign of a normal, healthy Ubuntu install, then no problem. My concern is that something is wrong, and if so, I would like to fix it.  Thanks in advance for your time.


Why is my Canon 70D's liveview autofocus much worse than the viewfinder's?

First of all I came across these questions already:     And they really surprise me because it's basically the opposite of what I experience. I've tried the Yongnuo EF 35mm and the Canon EF-S 10-18mm IS STM, and with both I experience the same: Using the optical viewfinder, I always have blazing fast, accurate AF. However using liveview, it is most of the time impossible to get a focus point at all, forcing me to move around and what not.  The camera is a Canon 70D, supposed to have a good AF system.  In a bright light condition both work perfectly fine so I doubt it's a defect, but in lower light situation I can never get a focus point with LiveView at all - No matter which AF method I select. This surprises me as the answers to the questions I've linked suggest that in low light, the LiveView AF should work even better. Does my camera and its dual-ISO make a difference? If anything I'd assume it'd make it better.  Especially the video AF (which I assume does always use LiveView's CDAF?) for the 70D is praised to be outstanding, compared to its previous models. Again: Can't confirm. I haven't tried video in bright light (I'd assume that'd make it better though), but in low light (it's not that low by the way, it's a single, but bright and close-to-subject lightbulb spotlight) the AF in video is just as bad.  Any explanations/insights/tips/tricks for a DSLR newbie like me?  Additional info: When focusing manually, Magic Lantern's  is able to draw in where the focus is too, and it works by detecting contrasts too. Unless I'm missing something doesn't that mean that Canon's CDAF should be able to find a focus point with CDAF too?  Here is a screenshot of the scene:  It's really not that little light!  Here is me putting the aperature up to F/2 for testing:   Here is my F/11 setting with manually focused:   As you can see, ML has no issues drawing the focus peak into the right spot instantly. In addition to that: I'm sorry I didn't notice this earlier, but the camera actually does drive up the ISO while focusing when in LiveView. I couldn't get a screenshot of that but the subject was clearly visible (and in focus for a split second) during the AF attempt of the camera in LiveView. It just went past the focus point, and back again. Everytime I'd try to focus. The distance to subject is ~0.35m and my lens can focus up to 0.25m (even tho with the viewfinder I can focus as close as 0.15 sometimes). Just to make sure I've tried a longer (~0.5m) distance - Same results.  I've also just tried to AF on my desk keyboard in absolute low-light (on the LCD, I see nothing but pitch black). The camera was able to focus in LiveView properly and it turned up the ISO to the max. during the focus process.  Here's a screenshot made during the AF attempt - The camera sets the ISO to a guessed ~4000 during the failed attempt:    Conclusion: It's not the lowlight environment. What else could be the cause?  Some more hints to "it's not low-light":  The camera is perfectly capable of focusing on this in LiveView.    I couldn't get the screenshot timed right, but this is during focus attempt. The camera was able to find focus on first try, even though the light situation is a lot worse.


Difference in buying two 1x8GB RAM separately and buying a 2x8GB RAM kit

Is there any difference in buying two 1x8GB RAM and a 2x8GB RAM kit? Other than the price.


Understanding permissions properly for cp

I am trying to understand the permission usage for the cp command in unix.   What are the permissions required for copying a file into a directory What are the permissions required for copying out of a directory?   I'm assuming for my first question, the directory will need execute permissions to perform the operation and the file will need read permissions to read the binary of the file and then the output file will need write permissions.  For the second the directory itself would need execute permissions to perform the copy operation and the file would need read permissions to extract the data from the file.  Can anyone tell me if my logic is flawed?


Clone directory tree structure and copy files to the corresponding directories modified after a specific date

I have a folder with more than 30 sub directories and I want to get the list of the files which was modified after a specified date(say sep 8 which is the real case) and to be copied with the same tree structure with only the modified files in that folder   I have say 30 dir from that I have the list of the files I need found using last modified date Find command output  a/a.txt a/b/b.txt a/www.txt etc..   For example I want the folder "a" created and only the a.txt in it...like wise for the other also "a/b" to be created and b.txt inside it...


Dual booting Windows 10 with Ubuntu 16.04 (after repartitioning) on Dell XPS 13 9360

I have a Dell XPS 13 9360 laptop (late 2017 model) (Core i7 8550U, 16GB Ram and 1 TB SSD, BIOS Version 2.1.0, BIOS Mode UEFI). I wish to dual boot it with Ubuntu 16.04.   My hard drive as shown in the Windows File explorer is a 1TB chunk(940 GB to be precise) and I wish to re-partition the drive into multiple drives (with appropriate spaces allocated to them).   What are the exact (working) steps to be followed to  have a successful dual boot system with the above configuration(including driver/software updates and bug fixes)?   I know similar questions have been asked, but they are for different processors and some steps are not very clear (I am a novice and clear working steps  will be much appreciated) and they seem to vary.  Some helpful answers which I referred to before asking the question:   The user has some problems with windows shutting unexpectedly and going blue screen and the steps are for an i5 processor released in 2016.  Answer for Ubuntu 15.04 and not 16.04 (not sure how the steps would vary). The answer was difficult to follow as it had many links. Efforts much appreciated.  No answers.


Can I run Loyal Cathar in my green-white Commander deck?

I'm running a green white Commander deck and wanted to know if I could.


Consider the following snippet:  $$\text{d}_{H}(A,B)  = \max\left\{ \sup_{a\in A} \inf_{b\in B} \text{d}(a,b),\sup_{b\in B} \inf_{a\in A}\text{d}(a,b)\right\}$$     In the output, the text under the inf's is significantly smaller then the one under the sup's. The same happens when I have it in an align environment.  You can see the same problem in the wiki definition of the . How can I have the typeset under the inf's and sup's in the same size?


Windows 7 Laptop Is Locked Out - How Do i reset password

I know how it sounds - but hear me out. My grandmother needs to access her laptop - but can't. We think she might be going senile, and she can't remember her password. Thus, I was given the task of Wiping the computer and creating a new user account for her. I figured that it'd be possible, and I've looked at quite a few links - but it seems like it won't be possible. It appears that I need to make an ISO file but I need a Windows 7 key to do that, and unfortunately I think thats been lost to the ages. Do I need to buy a new Win7 license to fix this - or is there a way around it?


Everyone knows that this is needed to make eigenvalues real,  but still why we enforcing such a structure at first place?  An arbitrary operator can have as complex as real eigenvalues, we can simply throw away the complex one by claiming they are not physical.  I did some search about this,  and it seems,  alike what books usually claims, the real reason hidden in the fact that the eigenvalues should not be just real,  but bounded from below, otherwise there will be no stable quantum systems.  Well, the last paragraph I concluded from reading multiple claims here and there,  if that is true,  can anybody elaborate this in a more rigor/strict way? If wrong please answer on the first part.


When browsing questions for a given tag, a review indicator has recently started showing up that links to the open review tasks for that tag.  For example, this is what I see when viewing :    The number 187 in the screenshot above would link to    However, clicking on that often opens review tasks that do not have the tag in question.  For example, it opened the following on successive attempts:   (c)   (java)  It seems that the filters are broken.  A sample screenshot (note the mention of the filter on the review page):


The Bayesian bootstrap was introduced by  as a Bayesian analog of the original bootstrap. Given dataset $X=\{x_1, \dots, x_N\}$, instead of drawing weights $\pi_{n}$ from the discrete set $\left\{0, \frac{1}{N}, \ldots, \frac{N}{N}\right\},$ the Bayesian approach treats the vector of weights $\pi$ as unknown parameters and derives a posterior distribution for $\pi$. Rubin (1981) used an improper, non-informative prior, $\prod_{i=1}^{n} \pi_{i}^{-1},$ which when combined with the multinomial likelihood, leads to a Dirichlet(1,...,1) distribution for the posterior distribution of $\pi$. In other words, our prior is \begin{equation}     p(\boldsymbol{\pi}) =Dirichlet(\boldsymbol{\alpha}), \quad \text{with}\ \boldsymbol{\alpha} = [0,\dots,0]. \end{equation} and posterior is \begin{equation}     p(\boldsymbol{\pi}|\boldsymbol{x}) =Dirichlet(\boldsymbol{\alpha}), \quad \text{with}\ \boldsymbol{\alpha} = [1,\dots,1]. \end{equation} Now my questions are:  I was asked the following questions which I was not able to answer: How can you have a posterior distribution that a/ does not depend on data and b/ is a uniform distribution?  Are both the prior and the posterior non-informative? I understand that the posterior is a uniform distribution, which is non-informative. Also, I see that the prior is referred to as non-informative prior. Does that mean it's flat?   I believe that section 5 in  addresses these questions, but I do not comprehend that discussion. Any clarification or pointing out what I may be misunderstanding would be appreciated.  EDIT: I just noticed one more issue when computing the posterior. Let $d=\left(d_{1}, \ldots, d_{K}\right)$ be the vector of all possible distinct values of $X$, and let $\pi=\left(\pi_{1}, \cdots, \pi_{K}\right)$ be the associated vector of probabilities $$ P\left(X=d_{i} \mid \pi\right)=\pi_{i}, \quad \sum \pi_{i}=1 $$ Let $x_{1}, \ldots, x_{n}$ be an i.i.d. sample from the equation above and let $n_{i}$ be the number of $x_{j}$ equal to $d_{i}$. If we use improper prior above over the sampling weights $\pi$, we can compute the posterior over $\pi$ \begin{align*}     p(\boldsymbol{\pi}|X) &\propto p(X|\boldsymbol{\pi})p(\boldsymbol{\pi})\\     & \propto \prod_{i}\pi_i^{n_i}\prod_{i}\pi_{i}^{\alpha_i-1}\\     & \propto \prod_{i}\pi_i^{n_i}\prod_{i}\pi_{i}^{-1}\\     & \propto \prod_i\pi_i^{n_i-1}. \end{align*} How does this yield a flat Dirichlet posterior? Are we assuming $n_i=1$ for $i=1,\dots,K$? In that case, is the vector of all possible observations $d=\left(d_{1}, \ldots, d_{K}\right)$ (the original sample that we resample from) our observation?


Minecraft - How do you make a command block respond to chat?

Is it possible to make a command block respond to something being said in the chat? Or even better - make it respond to a message - /msg or /tell. I want to say something in the chat and then a comparator next to the block emits a redstone signal. Is this possible?


Check via apex if current ORG is on deployment

I have a class that update users on success but whenever our release team is doing a deployment on the org this action still retrieves success but doesn't make the update.   Is there a way I can check via apex code if org is on deployment so I can display an error message for users?


Is there any way to use a WHERE clause with the combination of two VARCHAR fields

I'm creating a new PHP page and I have a variable which consists out of the addition of two fields of my MySQL database. I would like to find which row corresponds to the variable, which consists of a combination of two fields.  I was unable to find any answers online, and when I did, none of them seem to work.  Database example:   ID | Name 1  | Name 2 ----+---------+--------  1  | john 1  | doe  2  | jane    | doe  3  | john    | doe  4  | john    | doe 1   My variable which I ought to match to a row is $var = "john doe 1";, and splitting my variable is not an option.  I expect the output of said SQL statement to be the row with ID = 4.  EDIT: I do not believe this to be a duplicate. I'm not having any problems with the CONCAT clause itself, I was consulting about which clause to use and how to use it, not how to fix my current one.


Download Dataset From ArcGIS REST Service

Looking at this information page for a dataset hosted on esri.com:   Trying to figure out how I can get access to the raw data (either raw lat/lng coordinates or SHP).  It looks like the data is available, I just can't figure out how to pull it from this interface.


I'm trying to wipe a bad disk using dd with the following command sudo dd if=/dev/zero of=/dev/sda status=progress, but it exits prematurely and outputs the following:  13160186368 bytes (13 GB, 12 GiB) copied, 481 s, 27.4 MB/s  dd: writing to '/dev/sda': Input/output error 25753561+0 records in 25753560+0 records out 13185822720 bytes (13 GB, 12 GiB) copied, 490.915 s, 26.9 MB/s   How do I get it to ignore I/O errors and continue till the end? If dd isn't able to do this, is there another program that can?  EDIT #1  I'm using dd from a Linux live CD


"Do" vs. "does" with multiple singular subjects

How does serverfault, stackoverflow and other stackExchange sites connect together?   Is that does or do? Because I'm talking about multiple items, it would be do. What is more correct?


Is there an easy way to 'break' the axis in a pgfplots environment? What I'm talking about is something like     Any minimal plot will do as an example...for example  \documentclass{minimal}   \usepackage{tikz} \usepackage{pgfplots}  \begin{document} \begin{tikzpicture} \begin{axis}[ymin=0, ymax=80] \addplot {x*0};  \addplot {x^2+50}; \end{axis} \end{tikzpicture}  \end{document}   For example, in the below plot,    I want to break the axis from around y = 10 to y = 40.   Any ideas? Does PGF have this functionality? A search for `break' in the manual doesn't yield anything.


Suggested edit approved with one approval vote

I have rejected  today which was approved with only one approval vote.  The edit received only three votes with two rejects and one approval.  The editor already  the same edit before which got rejected with three reject votes.  One more thing is, the approved reviewer(Jack Ramzi) name's label has a blue background unlike others.


Existence of a continuous surjective map

I got this question in an exam recently. I haven't been able to solve it. The question goes like this :  Does there exist a continuous surjective map from $\mathbb{R}^3\setminus \mathbb{S}^2$ to $\mathbb{R }^2\setminus \{0\}$?  I was proceeding in kind of a naïve fashion by trying to construct a  suitable map from $\mathbb{R}^3$ to $\mathbb{R }^2$ which vanishes exactly on the unit sphere. But I doubt of that will help. Even though I am not quite sure I think the claim is false and will require some nontrivial use of tricky techniques on topology. Can someone help me with some hints?


Prove the determinant is the product of its diagonal entries

Prove that the determinant of an upper triangular matrix is the product of its diagonal entries.  What I have so far:  We will prove this by induction for an $n$ $\times$ $n$ matrix. For the case of a $2 \times 2$ matrix, let A=$ \left( \begin{array}{ccc} a_{11} & a_{12} \\ 0 & a_{22}  \end{array} \right)$. So det($A$)=$a_{11}a_{22}$ and the statement is true for the case of a $2 \times 2$ matrix. Now suppose that this statement is true for an $n$ $\times$ $n$ matrix. We will show that it also is true for an $(n + 1)$ $\times$ $(n + 1)$ matrix. Let A =$ \left( \begin{array}{ccc} a_{11} & a_{12} & \cdots & a_{1(n+1)}\\ 0 & a_{22} & \cdots & a_{2(n+1)} \\ \vdots & \cdots &  & \vdots\\ 0 & 0 & \cdots & a_{(n+1)(n+1)}\end{array} \right)$.  I don't know what to do after this.


Is it possible to use an IF clause within a WHERE clause in MS SQL?  Example:  WHERE     IF IsNumeric(@OrderNumber) = 1         OrderNumber = @OrderNumber     ELSE         OrderNumber LIKE '%' + @OrderNumber + '%'


I've noticed Dota 2 has a courier unit which I suppose is made for delivering items from the stash/backpack to the hero on the battlefield. How should they be used and in what situations?  Sometimes in the game I find that I often can take my hero back to the base since I also need to heal, so I hit two birds with one stone. Also, sometimes my hero has a better speed than the courier. Thus I don't understand when to use it exactly.  When and how should he be used?


What is the best way to define a set of constants in a web project?

I'm working on an ejb project and I need to define a set of constants that I can use in the whole of my project so I create an interface that hold the set of my constants my question is there a better way in to define constants in web project ?   this an exemple of my constant interface :   public interface ejbConstant {     final String  CONST23= "AB23";     final String  CONST24= "AB24";     // .......... }   Thank you for your suggestion


How could potions be correctly made following the standard instructions?

In Harry Potter and the Half Blood Prince, Horace Slughorn, the former potions master, returns to teach at Hogwarts. In his class, unlike that of Snape's, students follow the standard potions book, Advanced Potion-Making by Libatius Borage.  However, following the instructions from the book, even Hermione is unable to prepare a perfectly correct potion. Only Harry succeeds, and that is just because he follows the instructions given by Snape in his copy of the book.  Given that Slughorn had been the potions master for decades before Snape, and that the book by Libatius Borage was probably followed for a similarly long duration, how did any one in the current generation who worked in the field of potions do it correctly? Wouldn't they have learnt from these texts themselves? If this was not the case, why weren't the standard texts updated?  Or, did the arrival of Snape redefine what "correct" was? If so, and that experienced and respected potioneers like Slughorn could recognize it, why didn't everyone change their way of doing things?


NullPointer exception whenever using synchronized block

protected static Object lock; public void awake(){     synchronized (lock){         if(Thread.currentThread().isAlive()){         Thread.currentThread().notify();         }     } }   I am using this code in a synchronized block so that my main method has a monitor of the thread and doesn't receive a IllegalMonitorStateException.  I don't understand why this is giving me a nullpointer exception. The thread has to be alive to execute the thread.notify command, and the lock is a static object. Nothing can be null. Any ideas?


Passing a Type variable to a generic method

I am aware this question may have been asked a thousand times but haven't managed to find the solution I seek on similar threads.   I have the following method which converts an object type to a generic type provided by the caller of the method.  public static T ConvertValue<T>(object value) {     //conversion code }   I am trying to use this method to convert the value type of an object's properties using Reflection.   Supposing we have the following object:  SomeClass someObject; PropertyInfo myProperty = someObject.GetType().GetProperty("somePropertyName")   The following code works just fine:  string propertyValue = ConvertValue<string>(myProperty.GetValue(someObject));   However this forces me to write down the desired conversion type, while what I'd like to do is:  Type myPropertyType = prop.PropertyType; var propertyValue = ConvertValue<myPropertyType>(myProperty.GetValue(someObject));   I understand usage is not intended by the compiler for various reasons, but I just can't come up with a simple solution for this..  Most solutions I found suggested passing the Type as a parameter and returning an object type.  public static object ConvertValue(object value, Type type) {     //conversion code }   But this seems to defeat the whole purpose as I must then make a cast of the output...


Microphone records only static/white noise

my laptop's built-in microphone records nothing but static/white noise. I'm on Ubuntu 20.04.1 and my laptop is a Lenovo Ideapad 320. Any suggestions on fixing it?


Null Pointer Exception when I print using array

Can't seem to get rid of the error, look at different methods of getting rid of it, but can't really understand.  static Holding[]holding = new Holding[15];  public static void main(String[] args){     sampleData();   //Sample Data from Assignment      int options;     do{          scanner = new Scanner(System.in);          System.out.println("1. Add Holding");         System.out.println("7. Print all Holdings");         System.out.println("13. Exit");          options = scanner.nextInt();         switch(options){          case 1:             addHolding();             break;         case 7:             printHolding();             break;          default:             System.out.println("Please");         }      }while(options != 13);     System.out.println("I'm out");  }  public static void sampleData(){     holding[0] = new Book("b000001", "Intro to Java");     holding[1] = new Book("b000002", "Learning UML");     holding[2] = new Book("b000003", "Design Patterns");     holding[3] = new Book("b000004", "Advanced Java");     holding[4] = new Video("v000001", "Java 1", 4);     holding[5] = new Video("v000002", "Java 2", 6);     holding[6] = new Video("v000003", "UML 1", 6);     holding[7] = new Video("v000004", "UML 2", 4);  }      public static void printHolding(){     int option;     do{         for(Holding h : holding){                h.print();             System.out.println();         }          System.out.println("To exit press '0'");         option = input.nextInt();     }while(option != 0);   }  Exception in thread "main" java.lang.NullPointerException     at s3599741_A2.LibraryMenu.printHolding(LibraryMenu.java:307)     at s3599741_A2.LibraryMenu.main(LibraryMenu.java:71)   The error is  h.print();   and  printHolding();   in the switch statement. As you can see, the array is made from another object, like  holding[i] = new Book("Insert ID", "Insert Title");   I wrote a question like this but got marked as duplicate, I looked at the link    But can't find the problem I have or that I don't have the knowledge yet to understand. Can someone explain what I should do?   The limit of the Holding must be 15, I cannot use ArrayList or List.  The Holding Class:  public abstract class Holding{  private String holdingId; private String title;  public Holding(String holdingId, String title){      this.holdingId = holdingId;     this.title = title;          }  public String getId() {      return holdingId; }  public String getTitle(){      return title; }  public boolean getStatus(){      return active;   }     public void print(){     System.out.println("ID: " + getId());     System.out.println("Title: " + getTitle());      }  }


A user should be able to see their profile without logging out

Given the new profile changes, I'd like to give users a preview, or ability to see their profile as someone else would.  The logout button is not easy to find and I think people should be given the option to "view my profile as another user".  This is especially more prudent since the site is adding text to the user's profile (I think it's fine, but the user needs to know it is there).     is asking the same thing, but it is from 2012. There was accept rate etc back then, and the profile page was very, very different.  Given recent changes to it, this could be left - .


how to get the translated taxonomy term programmatically?

I have tried this  $term = taxonomy_term_load($tid);   and this:  $term = i18n_taxonomy_localize_terms(taxonomy_term_load($tid));   Both return the default language (English) term  I am using D7.


Work done by isothermal expansion from two different viewpoints

Consider an adiabatic system as follows. It consists of a gas in a container and a piston.  Initially, the system is at equilibrium and the gas inside it occupies a volume $V_i$ at a pressure $p_i$ which is equal to the outside pressure. Suddenly, the outside pressure changes and reduces to $p_{atm}$. The piston moves to equalize the pressure and the gas expands isothermally to obtain equilibrium. The gas now occupies a volume $V_f$ at a pressure of $p_f$ which is equal to $p_{atm}$  Now, two textbooks I have define the work done from two different viewpoints.  1: From the viewpoints of the surroundings:   The work done on the system by the surroundings equals $-p_{atm}\Delta V$. Since $p_{atm}$ is pretty much constant for the whole of the whole of the process, we can say that the work done equals:  $$W_1 = -p_{atm}(V_f - V_i)\tag1$$  2: From the viewpoint of the system:  We can write the internal pressure of the system as a function of its volume: $p_{in}(V)$. As during the expansion, the internal pressure changes, the work done by the system equals   $$W_2 = \int_{V_i}^{V_f}p_{in}(V)dV$$  Now, I don't know which definition to use. The work is done by the system (from definition 2) is done on the surroundings. But what about the negative work that the surroundings did on the system? Where did that energy go? Maybe, the two definitions express the same thing: the work done by the system. The negative sign in definition 1 signifies that the work is done by the system. But that would mean that   $$W_1 = W_2$$  We can simplify $W_2$ as follows. Clearly,   $$p_{in}(V) = \frac{p_iV_i}{V}$$  $$W_2 = \int_{V_i}^{V_f}\frac{p_iV_i}{V}dV = p_iV_i \ln{\frac{V_f}{V_i}} \tag2$$  The internal pressure when the volume is equal to $V_f$ is $p_{atm}$  $$\implies p_{atm} = p_{in}(V_f) = \frac{p_iV_i}{V_f}$$  $$\implies V_f = \frac{p_iV_i}{p_{atm}}$$  Putting this into  $(1), (2)$ gives us,   $$W_2 = p_iV_i\ln{\frac{p_{i}}{p_{atm}}}$$  $$W_1 = -p_{atm}\left(\frac{p_iV_i}{p_{atm}} - V_i\right) = -V_i(p_{atm} - p_i)$$  Consider some values. Let $p_i = 5 \ \rm{Pa}, V_i = 1 \ \rm{m^3}, p_{atm} = 1 \ \rm{Pa}$.  $$W_1 = -1\cdot(1-5) = 4$$  $$W_2 = 1\cdot1\cdot\ln{\frac{5}{1}} = 1.609$$  Where am I making a mistake?


What is the meaning for the term kissing cousins?

Example: A nil-nil soccer game being like kissing cousins


Prove by mathematical induction, or otherwise, that for all integers $n\ge 1$

$$\cos(1)+\cos(2)+\ldots+\cos(n-1)= \cos(n)-\cos(n-1)/(2\cos(1)-2 ) -1/2$$  Here is my attempt:  Let $P(n)$ be this statement.   $P(1)$ is true since $0=\cos(1)-\cos(1-1)/(2\cos(1)-2)   -1/2$  Suppose $P(k)$ is true for some integer $k$. Then I have to prove $P(k+1)$ is also true. That is :  $$\cos(1)+\cos(2)+\ldots+\cos(k-1)+\cos(k)=\cos(k+1)-\cos(k)/(2\cos(1)-2) -1/2.$$  By inductive hypothesis, we have $\cos(k)-\cos(k-1)/(2\cos(1)-2 )  -1/2 +\cos(k)$. But how does it equal to the right hand side? Can someone help me with this question please, thank you!


how i can know my graphics card memory size?

I want to know my video memory size and i tried method with   lshw -c display   But it shows    *-display                   description: VGA compatible controller    product: Cedar [Radeon HD 5000/6000/7350/8350 Series]    vendor: Advanced Micro Devices, Inc. [AMD/ATI]    physical id: 0    bus info: pci@0000:01:00.0    version: 00    width: 64 bits    clock: 33MHz    capabilities: pm pciexpress msi vga_controller bus_master cap_list rom    configuration: driver=fglrx_pci latency=0    resources: irq:29 memory:c0000000-cfffffff memory:d1000000-d101ffff ioport:a000(size=256) memory:d0000000-d001ffff   I tried method with sysinfo but program doesn't show my graphics card, with hardinfo same problem  My graphics card AMD Radeon HD 5450


I've got two c++ templates. I want to have h and cpp files. It works with only one template but it doesn't work with two different templates. I receive this error from gcc:  ../Temp1.cpp:16:17: error: definition of ‘Name::Temp1<T>::Temp1()’ is not in namespace enclosing ‘Name::Temp1<T>’ [-fpermissive] ../Temp1.cpp:22:18: error: definition of ‘Name::Temp1<T>::~Temp1()’ is not in namespace enclosing ‘Name::Temp1<T>’ [-fpermissive] make: *** [Temp2.o] Error 1   Here the code for Temp1 header:  #ifndef TEMP1_H_ #define TEMP1_H_  namespace Name {  template<class T> class Temp1 { public:     Temp1();     virtual ~Temp1(); };  #include "Temp1.cpp"  } /* namespace Name */  #endif /* TEMP1_H_ */   Temp1 cpp:  #ifndef TEMP1_CPP_ #define TEMP1_CPP_  #include "Temp1.h"  namespace Name {  template<class T> Temp1<T>::Temp1() {     // TODO Auto-generated constructor stub  }  template<class T> Temp1<T>::~Temp1() {     // TODO Auto-generated destructor stub }  } /* namespace Name */  #endif   Temp2 header:  #ifndef TEMP2_H_ #define TEMP2_H_  #include "Temp1.h"  namespace Name {  template<class T> class Temp2: public Temp1<T> { public:     Temp2();     virtual ~Temp2(); };  #include "Temp2.cpp"  } /* namespace Name */  #endif /* TEMP2_H_ */   Temp2 cpp:  #ifndef TEMP2_CPP_ #define TEMP2_CPP_  #include "Temp2.h"  namespace Name {  template<class T> Temp2<T>::Temp2() {     // TODO Auto-generated constructor stub  }  template<class T> Temp2<T>::~Temp2() {     // TODO Auto-generated destructor stub }  } /* namespace Name */  #endif


How to change NotifyIcon.Text in a running WinForm via command-line-arguments?

This is a tray-icon-only Windows Forms application. I'm trying to use argument to control something and change the text on the form for showing the status information.  But I found when I use argument to call it during it's running, the things I want to change are null (NotifyIcon() and MenuItem()), seems it ran a different application when I using arguments. I also tried Invoke() but there is no this definition in NotifyIcon().  Here is the code I wrote:  static void Main(string[] args) {     if (args.Length > 0)     {         Arg_Call(args[0]);     }     if (new Mutex(true, "{XXX}").WaitOne(TimeSpan.Zero, true))     {         Init_Tray();         Application.Run();     } } private static NotifyIcon trayicon;  private static void Init_Tray() {     trayicon = new NotifyIcon() { Icon = new Icon(@"D:\projects\Icon.ico"), Text = "Waiting", Visible = true };     trayicon.Visible = true;     Application.Run(); } private static void Arg_Call(string args) {     trayicon.Invoke((MethodInvoker)delegate {         trayicon.Text = "OK";     }); //from: https://stackoverflow.com/a/661662/8199423 }   Where am I wrong? How to and what is the best way to change the NotifyIcon.Text property in the running form via command-line-arguments?


Minimal polynomial of $1 + 2^{1/3} + 4^{1/3}$

I am attempting to compute the minimal polynomial of $1 + 2^{1/3} + 4^{1/3}$ over $\mathbb Q$. So far, my reasoning is as follows:   The Galois conjugates of $2^{1/3}$ are $2^{1/3} e^{2\pi i/3}$ and $2^{1/3} e^{4\pi i /3}$. We have $4^{1/3} = 2^{2/3}$, so the image of $4^{1/3}$ under an automorphism $\sigma$ fixing $\mathbb Q$ is determined by the image of $2^{1/3}$: it must equal the square of $\sigma(2^{1/3})$. Therefore, the Galois conjugates of $1 + 2^{1/3} + 4^{1/3}$ are $1 + 2^{1/3} e^{2\pi i/3} + 4^{1/3} e^{4\pi i/3}$ and $1 + 2^{1/3} e^{4\pi i/3} + 4^{1/3} e^{2\pi i/3}$. Therefore, the minimal polynomial is $(x-a)(x-b)(x-c)$, where  $$\begin{align*} a&=1 + 2^{1/3} + 4^{1/3},\\ b&=1 + 2^{1/3} e^{2\pi i/3} + 4^{1/3} e^{4\pi i/3},\text{ and}\\ c&=1 + 2^{1/3} e^{4\pi i/3} + 4^{1/3} e^{2\pi i/3}. \end{align*}$$  However, this polynomial does not seem to have coefficients in $\mathbb Q$! What am I doing wrong?


Prove by induction that $2^{2n} – 1$ is divisible by $3$ whenever n is a positive integer.

I am confused as to how to solve this question.  For the Base case $n=1$, $(2^{2(1)} - 1)\,/\, 3 = 1$, base case holds  My induction hypothesis is: Assume $2^{2k} -1$ is divisible by $3$ when $k$ is a positive integer  So, $2^{2k} -1 = 3m$   $2^{2k} = 3m+1$  after this, I'm not quite sure where to go.  Can anyone provide any hints?


Turned off webapps, now can't relaunch because it requires webapps

I accidentally turned of webapp support in the latest version of the Unity Tweak Tool application. Now I get this error when I try to launch it:    How can I turn webapps back on?


Suppose f(z)=u+iv is analytic. Under what circumstances will g(z)=u-iv be analytic?

Hint: Consider the functions f(z)+g(z) and f(z)-g(z).


How can it be that wizards Apparate into Hogwarts in the trailer to Fantastic Beasts: The Crimes Of Grindelwald?

Hasn't J. K. Rowling read the book "Hogwarts, A History"? According to Hermione and J. K. Rowling herself, apparation has been banned on the Hogwarts grounds since the founding times:     Some rode broomsticks (a difficult feat when carrying trunks and   pets); others commandeered enchanted carts and, later, carriages; some   attempted to Apparate (often with disastrous effects, as the castle   and grounds have always been protected with Anti-Apparition Charms),   others rode a variety of magical creatures.      Source: ; The Hogwarts Express   In the , we see wizards Apparate at Hogwarts grounds. How can that be?


Is there a portable version of Chrome for Ubuntu?

I'm looking for a portable version of Chrome (not Chromium) that I can work with on Ubuntu 14.04 LTS. I can only find Chromium or really outdated versions. Due to limitation on the machine I'm using, I cannot install Wine or utilize any admin features as I am on a standard account. Ideally, I would rather have an official version or at least one that exists in a repository that I can apt-get from.   (I understand that apt-get requires sudo, I can use it for the initial vagrant setup, but that's all. Hence why I would need non-admin methods)


Is it possible to define "Straight-line" logically? If it is possible, How you will define it?

Recently I am studying the "ELEMENTS" of Euclid. It is a translation of SIR THOMAS L. HEATH. In the definition part of the first book, the second definition is, "A line is Breathless length". My question is what we understand by Length And Breadth? Is it not straight line? how we can define line with the help of the concept of straight line? Can we define a "Dimension" logically?


linux group by date column and show count

i have a CSV file that looks like this:  aaa bbb ccc, 2015-01-01 fff ggg ddd, 2015-01-01 ggg hhh sss, 2015-01-02 ddd fff aaa, 2015-01-03 sss kkk www, 2015-01-03   i want to group by the second field (date).  cat myfile.csv | sort -t, k2 |uniq -c  printed 1 next to every line which is wrong.  i want this:  2015-01-01 2 2015-01-02 1 2015-01-03 2


Converting a mountain bike to a urban commuter

While cleaning up our storage room I saw my dad's old bike collecting dust on a corner (he used to bike a lot before) so I asked him if I can have it and he said yes.    So for my question can I transform this bike into a commuter or am I better-off selling it and buying a new commuter bike? Though I really like to keep this one for some sentimental reasons rather than to sell it.   My budget is also limited, still finishing my college degree. I'll be using this going to my university and back, though I live in the city our roads/bicycle lanes here in Manila, Philippines are terrible.


How to configure apache web server to server more than 2000 TPS

I'm on Cent OS 7 and I have installed fresh apache(httpd) server. There is 16 GB memory installed in the server. I created a simple API in PHP at /var/www/html called testAPI.php. PHP code is as bolow. Note that it has 5 second delay in it. <?php        $age = '{"Peter":"Good", "Ben":37, "Joe":43}';        header('Content-Type: application/json');         sleep(5);         echo $age; return; ?>  I did a simple load test with Apache jmeter and I couldn't go beyond 100 TPS. How can I configure the webserver to serve 2000 TPS with reasonable delay profile?


When I'm drawing f(x)=1/x or similar functions, pgfplots draws asymptotes. Do I have to draw the function in two pieces with different domains, or am I missing something?    \documentclass[a4paper]{article} \usepackage{tkz-euclide} \usepackage{pgfplots} \usetkzobj{all}  \begin{document} \begin{center} \begin{tikzpicture} \begin{axis}%     [         grid=major,           x=5mm,         y=5mm,         xtick={-10,-9,...,10},            xmin=-10,         xmax=10,         xlabel={\tiny $x$},         axis x line=middle,         ytick={-10,-9,...,10},         tick label style={font=\tiny},         ymin=-10,         ymax=10,         ylabel={\scriptsize $f(x)$},         axis y line=middle,         no markers,         samples=100,         domain=-10:10,     ]     \addplot[thick] (x,{1/x});     \addplot[dashed] (x,{1/(x-2)}); \end{axis}  \end{tikzpicture} \end{center} \end{document}


Expected value of $\inf\{n|X_{1}+...X_{n}\ge1\}$ for $\{X_n\}$ i.i.d. uniform on $(0,1)$

Let $\{X_{n}\}_{n}$ be a sequence of i.i.d. random variables of uniform distribution on $(0,1)$. Find $E\tau$ if $$\tau=\inf{\{n\mid X_{1}+\dots+X_{n}\ge1\}}$$  Should I compute probability of $\tau$ being equal to $n$ for all $n$'s?


Query to find sql server services currently running

Is there any query to find all SQL services currently running on the server including SSRS, SSIS, SSAS?


Any reasons why the basis case can't be at the end of a mathematical induction proof?

When doing a proof by mathematical induction, I was wondering if there is any logical reason why the assumption (n=k) and induction (n=k+1) steps couldn't be done first, then do the basis case (n=1) afterwards, rather than the traditional way of doing this basis case first? I am teaching this to my students and I think it would make more sense to them to first show that P(k+1) is true if P(k) is true, and then show that P(1) is true, then P(2) must be true, P(3) is true, etc. and P(n) is true for all n. Anyway, I can't see any flaws in the logic? Please advise.


I need to round the edges of this object.  The bottom edges are going to be rounded in conjunction with another object, so, I guess, this should be left out right now.  I tried using the bevel tool (and a bevel modifier) on an edge (series of Blender edges), but I got the problems you see on the images. When selecting all edges, the bevel doesn't know any limit and isn't applied symmetrically.  When selecting only the edges shown (or only the other ones), I can't proceed with the rest of the bevel, and strange little artifacts appear.  FYI: The top surface is derived from an icosphere.    Without the subdivision shown above, a stair comes into existence (bad):    Whole object:


validating an email with regexp multiple conditions

I am looking for a valid regexp for my email validation requirement. I tried several times, but it buggy.  here is my try: .*@[^\W_]+(?:[\w-]*[^\W_])  need to fit with:  xxx@_domain.com => invalid @ starts with _ xxx@domain_.com => invalid domain ends with _  xxx@-domain.com => invalid @ starts with - ( hypen) xxx@domain-.com => invlaid domain ends with - (hypen) -xxx@domain.in => invalid domain start with - (hypen) xxx@111.com => invalid domain only contains numbers xxx@1and1.com => valid domain contains both number and chars xxx@us.com => valid xxx@my-india.com => valid xxx@me2.com => valid xxx@tv.com => xxx@abc_efg.com =>  valid _ inside the chars _muth@tamil.com => valid _ start with    any one help me?


Why circling around blackhole slows the time? In easy language

I have read theories and articles about it but didn't get much(not a scientist though).  Can somebody explain to me, most possibly in easy language and terminology that why a person's time will slow down if he rotates around a blackhole, as compare to the person present on earth?  Thanks before for help and explanation. :-)


Let $p$ be prime.    For an integer $ a \neq 0$ we define:  $ v_p(a) = \max$ { $ n \in \mathbb{N} | p^n $ divides $a$ }  Consider for $x,y \in \mathbb{Z}$: $$ d_p(x,y) = \left\{ \begin{array}{ll} p^{-v_p(x-y)} & x \neq y \\ 0 & x=y \\ \end{array} \right. $$  Now I have to show that $d_p$ is a metric on $\mathbb{Z}$.  attempt/question:  the first property $ d(x,y) = 0 \Leftrightarrow x=y$ holds by definition. Here is nothing to show. We can only mention that $p^{-v_p(x-y)}$ is never $0$.  the second property $d(x,y) = d(y,x)$ holds because if $n$ is the $\max n$, so that $p^n$ divides $x-y$, then $p^n$ divides  $y-x = (-1)(x-y)$. the sign doesn't change the fact that this is our $\max n$ here.  but I'm stuck regarding the third property. I mean I have to show that: $d_p(x,z) \leq d_p(x,y) + d_p(y,z) $. I have consider different cases. the three cases $x=y $, $ x=z$ and $y=z$ were easy. But what can I say about $ x \neq y \neq z $. Here I have to show $p^{-v_p(x-z)} \leq  p^{-v_p(x-y)} +  p^{-v_p(y-z)} $. I don't find a good reasoning here.


Proving $\int_0^\sqrt{2\pi}\sin x^2\,\mathrm dx>0$

Prove that $$\int_0^\sqrt{2\pi} \sin x^{2} \, \mathrm{d}x \gt 0 $$  I thought of changing the variable $y =  x^{2}$. And now I need to change this integral so I can integrate on the interval $[0; \pi]$. But I don't know how to do this so I can evaluate the given interval. What should I do?


how to disable gnome lock screen curtain in ubuntu 17.10?

I have disabled the screen lock which requires a password (settings->privacy) and I have activated the screen blanking which switches off the display (settings->power->blank_screen). But when I want to activate the dark display and touch a key, the display is switched on but there is the picture from the lock screen which I have to remove by hitting escape key. A password is not required. How can I get rid of this lock picture? (It is the same that is used for the screen lock).


Deriving Marginal Distribution of Poisson

How do you find the marginal distribution of a Poisson distribution given a gamma(a,b) prior?


Physical or geometric meaning of complex derivative

The derivative of a real-valued function at a point is the slope of the function at that point.  Similarly, what is the physical or geometric meaning of the derivative of a complex-valued function at a point?


Consider the following hybrid encryption scheme (B3||4 is for concatenated IV and AES-CBC encrypted message):   ------------------------------------------------------------------- |     Encrypted with RSA     | HMAC  |    |                       | |     HMAC_KEY || AES_KEY    |  of   | IV | AES-CBC Encrypted MSG | |   (using PK of recipient)  | B3||4 |    |                       | -------------------------------------------------------------------   Let's say some message was encrypted with AES-128-CBC with a randomly generated secret key and IV. Then the HMAC was calculated for blocks 3-4 concatenated together. And then the HMAC key and AES encryption key was encrypted with RSA using a public key of a recipient (B).  My question is do I need to include HMAC or even any other digest in such a packet that would be transmitted over reliable connection (let's say TCP) from sender (A) to receiver (B)?  Is the following simplified scheme is worse in terms of security?   ----------------------------------------------------------- |     Encrypted with RSA     |    |                       | |           AES_KEY          | IV | AES-CBC Encrypted MSG | |   (using PK of recipient)  |    |                       | -----------------------------------------------------------   My thoughts:   As message will be 100% delivered to a receiver there is not way it can be damaged during the transmission With MITM attack there is no way to alter the encrypted message in a meaningful way so it would be still decryptable with the key from a block 1. There is no better way to manipulate transmitted data then to substitute the whole packet to other one which would hold other message and AES encryption key. In order to prevent altering in the way described above it's enough to sign the AES key in the block 1 with secret key of a sender (and add the signature to the first block). In such a way the receiver can verify that the key was indeed send by the original sender. If with the above tweak MITM would alter 3rd or 2nd block of a packet the decryption would not be possible at all - so there is no way to spoof the message leaving the signed key in the first block as is.   The only thing I can think about is some way to alter the block 3 so it would be still decryptable. Is it possible to accomplish for an attacker?


Where does the (2D) Hilbert curve map a given point to?

If the Hilbert curve maps the interval [0,1] onto the unit square, is there a formula that tells us where a given point $x \in [0,1]$ will be taken?  EDIT: For example, it seems intuitive that $0$ is mapped to $(0,0)$, $1$ is mapped to $(0,1)$, and $\frac{1}{2}$ is mapped to $(\frac{1}{2},\frac{1}{2})$, ...


How to verify traffic and Google search results when purchasing a domain from a private party?

I have my eye on a domain that is for sale. After some research I've determined that traffic is the biggest bargaining chip the owner has. The domain is a 6 character .com and consists of two "keywords", but they combine in a way that not too many would be interested. It sold years ago for 1200 USD and is listed at $3100 now. I'm thinking it's worth more like $500, unless it has an unusual amount of traffic (it's currently hosting a parked "buy this domain" site). How can I find and verify traffic information and Google search results for this domain?


How do you infer the number of clusters in data using unsupervised learning?

Let's say you have a density plot of data in 2D (or even 1D). Surely there are algorithms which infer the number of clusters which exist in the data without users having to explicitly set this number (e.g. like with traditional k-means).  How does one use unsupervised learning to solve this?


I want to remove word "a" from t1 object. Why t2 object also got affected?  Code:  package newproject;  import java.util.ArrayList; import java.util.Arrays;  public class NewProject {      public static void main(String[] args) {               String str[] = {"a", "b", "c"};         ArrayList<String> words = new ArrayList<>();         words.addAll(Arrays.asList(str));          Test t1 = new Test(words);         Test t2 = new Test(words);          System.out.println("Result Before ");         System.out.println("T1 " + t1.getWords());         System.out.println("T2 " + t2.getWords());          // Only T1 remove words, not T2         t1.removeWords("a");          System.out.println("Result After ");         System.out.println("T1 " + t1.getWords());         System.out.println("T2 " + t2.getWords());     }     }  class Test {     private ArrayList<String> words;      Test(ArrayList<String> words){         setWords(words);     }      void setWords(ArrayList<String> words){         this.words = words;     }      ArrayList <String> getWords() {         return this.words;     }      void removeWords(String word) {         this.words.remove(word);     } }


Double is rounding my last NSNumber decimal

For example                      print(message.timestamp!)   gives me: 1470938337.572778                      print(Double(message.timestamp!))   gives me: 1470938337.57278  I need to use the double to convert to NSDate like this:  date: NSDate(timeIntervalSince1970: Double(message.timestamp!))   but I also need the timestamps to be accurate why is it rounding?


itunes connect bank account with a different name

My girlfriend opened an individual developer account with her name because i don't have a credit card;  i wonder if i can put my bank account in the "bank info" in itunes connect with my name or that will be a problem note that the account is of type individual and supposed to be only one owner.  thanks


I've just been installing DDE on ubuntu and I accidentally chose lightdm over gdm3.  What do I do?


What difference it's making when statically allocated memory for pointer vs dynamically allocated memory for pointer deletion?

#include<iostream> using namespace std; class A {    int x;    int *ptr;    int *ptr2;    public:    A(int y)    {      cout<<"para const"<<endl;      x=y;      ptr=&x;           //Static allocation      ptr2=new int;     //Dynamic allocation      (*ptr2)=y;      cout<<"ptr "<<&ptr<<"--"<<ptr<<"--"<<*ptr<<endl;      cout<<"ptr2 "<<&ptr2<<"--"<<ptr2<<"--"<<*ptr2<<endl;    }    void show()    {      cout<<x<<"--"<<(*ptr)<<"--"<<(*ptr2)<<endl;    }    ~A()    {      cout<<"dest"<<endl;      //delete ptr;    //will leads to segmentation fault      delete ptr2;    } }; int main() {    A obj1(10);    obj1.show();    A obj2(20);    obj2.show();    cout<<&obj1<<endl;    cout<<&obj2<<endl; }   OutPut:  para const ptr 0x7ffe27dedbc8--0x7ffe27dedbc0--10 ptr2 0x7ffe27dedbd0--0x2132010--10 10--10--10 para const ptr 0x7ffe27dedba8--0x7ffe27dedba0--20 ptr2 0x7ffe27dedbb0--0x2132030--20 20--20--20 0x7ffe27dedbc0 0x7ffe27dedba0 dest dest   I can see for both the object, the pointers (1. statically allocated stored in stack and 2. dynamically allocated stored in heap) are created in separate memory & holding also separate memory . Then why deletion of ptr leads to segmentation fault and not for ptr2. I believe swallow copy & deep copy is not making any impact here as I am not copying the objects to one another. And also one more thing I am observing is the address of obj1 & obj2 is same as address of ptr & ptr2 , why so ?   Can someone explain me this behavior please ?


Which is correct English, "you have minus one dollar in your account" or "you have minus one dollars in your account"?  Is the rule general?  For example, which is correct, "you have minus one diamond in your account" or "you have minus one diamonds in your account"?    I note that  gives "minus one dollar", and that of course "you have minus two dollar in your account" is wrong while "you have minus two dollars in your account" is correct. Further "please minus one dollar from my account" is correct, while "please minus one dollars from my account" is not.


How to reconnect a split face to its mesh?

I have accidentally pressed the Y key and have split a face from its mesh.  I can undo the action but I would like to know the actual command to do the opposite of split.  Merge tool options did not work (unless I am doing it wrong). Object mode -> Join did not work.


Does Ubuntu provide patched version of openssl for 12.10?

12.10 is right at end of life in April 2014.


Where are all islands and discoverable locations?

After taking off in Simpleplanes and flying around over the ocean for a while, I've found a lots of tiny islands all over the place, and a few really big ones that unlock new spawn locations once found.  Large islands appear to also have many discoverable 'locations' around them as well, like airports, carriers, or landmarks.  These locations automatically become available as start points once discovered.  Where can I find all of these major islands, and once there, where should I look to unlock all of the locations?


Moving internal memory to external sd card

My phones internal memory is full, how do i move it to my secure digital card? How can i get  my files  off my secure digital card if i took it out wrong, I did a factory reset?


How can I find the equation of the tangent line to the curve at the point(−3,f(−3))?

Let f(t)=2/(t+8)  (a) Simplify the following difference quotient as much as possible:  [f(t+h)−f(t)]/h  MY ANSWER (CORRECT): −2/[(t+8)(t+h+8)]  (b) Use your result from (a) and the limit definition of the derivative to calculate  f'(t)=lim_h→zero [f(t+h)−f(t)]/h=  MY ANSWER (CORRECT): −2/[(t+8)^2]  (c) Use your answer from part (b) to evaluate  f'(−3)  MY ANSWER (CORRECT): −2/25  (d) Find the equation of the tangent line to the curve at the point  (−3,f(−3))  y= ?  I have tried the point-slope formula, y−y_1=m(x−x_1), but my answer was incorrect.


What is the condition of Mbeya-Tabora road? Google maps shows the distance as 584 km and estimated travel (driving) time of a whole 10 hours!


I would like to display information of a line feature in parallel. For example, a river line feature with its different qualities. I want to avoid a parallel copy of line features. Is it possible to achieve this with display symbology options in ArcMap? For clearance:   from:


Why magnetic forces MUST exist besides electric forces?

The discovery of electric forces resultet in the discovery of the force mediated by the electric field $\vec{E}$ (this is $\vec{F} = e \vec{E}$) at first. But later, it was observed that charges also exert magnetic forces. My question is:  WHY electrically charged particles exert both electric forces and magnetic forces and not ONLY the electric force?  Lies the answer in gauge theory in quantum mechanics or are there other theories for the existence of both forces?


How do I install Gnome 3.10 in Ubuntu 13.10

Is this possible, or do I need to wait for Ubuntu 14.04?  Please Help


I'm trying to cut back on dairy, and the storebought plant milks are either overpriced, not very good, or both. I figured the coconut flavoured stuff has to be some suspension/emulsion of coconut flesh in water, and tried getting somewhere just blending a can of coconut cream with four times the amount of water. (Any homemade tree nut milk like hazelnut doesn't really work out to save money.) This took a few minutes of blending then waiting to get all the fatty flesh to stop settling immediately, and tasted well enough with a little honey, but overnight it settled again and it's a nuisance to blend out everytime I want to make myself a protein shake. Is there any way I can stabilize this mixture to keep it pourable for a while longer?


How do I know whether my computer's processor is vulnerable to Meltdown and Spectre?

It was discovered that a new class of side channel attacks impact most processors, including processors from Intel, AMD, and ARM ().  The list of  and  is long.  Is there a way (command, script) to check whether a specific computer's processor, e.g your own computer, is vulnerable to Meltdown and Spectre in the first place, regardless whether patches have already been applied?   gives a nice overview on the topic of Spectre and Meltdown for Ubuntu.


Can someone explain me what is __name__ == '__main__'?

I am a beginner at Python, can someone explain me what is the usage of __name__ == '__main__' in Python?


This block works well in MathJax   \begin{align} a+b \end{align}   and causes error in tex.   Is "\begin{align}" a legitimate tag? Do I need to import some package?


Can Ubuntu run on a Microsoft Surface with Windows RT?

My family might be buying a Windows Surface tablet with Windows RT (Nvidia)? I was wondering if I can run Ubuntu or WUBI on it for my homework?


Is there a more pythonic way to generate the following list?


How to show UTF-8 characters from json in PHP

I want create register page and for this i write php codes. but when show result in json, not show UTF-8 characters!  my code:  <?php  require_once 'DBOperations.php';  class Functions{  private $db;  public function __construct() {        $this -> db = new DBOperations();  }  public function registerUser($name, $email, $password) {     $db = $this -> db;     if (!empty($name) && !empty($email) && !empty($password)) {        if ($db -> checkUserExist($email)) {           $response["result"] = "failure";          $response["message"] = "اين ايميل قبلا ثبت شده است";          return json_encode($response);        } else {           $result = $db -> insertData($name, $email, $password);           if ($result) {                $response["result"] = "success";             $response["message"] = "تبريک، در کلوني عضو شدي";             return json_encode($response);           } else {              $response["result"] = "failure";             $response["message"] = "ثبت نام با خطا روبرو شده است";             return json_encode($response);           }       }    } else {        return $this -> getMsgParamNotEmpty();     } }  public function loginUser($email, $password) {    $db = $this -> db;    if (!empty($email) && !empty($password)) {      if ($db -> checkUserExist($email)) {         $result =  $db -> checkLogin($email, $password);         if(!$result) {          $response["result"] = "failure";         $response["message"] = "ايميل يا کلمه عبور اشتباه است";         return json_encode($response);         } else {          $response["result"] = "success";         $response["message"] = "با موفقيت وارد شديد";         $response["user"] = $result;         return json_encode($response);         }     } else {        $response["result"] = "failure";       $response["message"] = "خطا در اطلاعات وارد شده";       return json_encode($response);      }   } else {        return $this -> getMsgParamNotEmpty();     } }  public function changePassword($email, $old_password, $new_password) {    $db = $this -> db;    if (!empty($email) && !empty($old_password) && !empty($new_password)) {      if(!$db -> checkLogin($email, $old_password)){        $response["result"] = "failure";       $response["message"] = "کلمه عبور قبلي نادرست است";       return json_encode($response);      } else {      $result = $db -> changePassword($email, $new_password);        if($result) {          $response["result"] = "success";         $response["message"] = "کلمه عبور با موفقيت تغيير يافت";         return json_encode($response);        } else {          $response["result"] = "failure";         $response["message"] = 'خطا در تغيير کلمه عبور';         return json_encode($response);        }     }   } else {        return $this -> getMsgParamNotEmpty();   } }  public function isEmailValid($email){    return filter_var($email, FILTER_VALIDATE_EMAIL); }  public function getMsgParamNotEmpty(){    $response["result"] = "failure";   $response["message"] = "فيلدها نبايد خالي باشند";   return json_encode($response);  }  public function getMsgInvalidParam(){    $response["result"] = "failure";   $response["message"] = "فيلدها نامعتبر هستند";   return json_encode($response);  }  public function getMsgInvalidEmail(){    $response["result"] = "failure";   $response["message"] = "ايميل نامعتبر است";   return json_encode($response);  } }   How can i show "message" for utf-8 in json?


I'd like a GUI method to set my Windows partition to mount on boot, using the same options as when it mounts by me opening it in nautilus.


Do "This was a test" edit approvals show when you fail?

I've seen a number of requested question edits and votes which were obviously bad, so I turned them down. I'll occasionally see, "This was only a test. You passed!"  My question is: Does StackOverflow show when you fail?


Prove XOR is commutative and associative?

Through the use of Boolean algebra, show that the XOR operator ⊕ is both commutative and associative. I know I can show using a truth table. But using boolean algebra? How do I show? I totally have no clue. Any help please?


Is the use of "not to mention getting a promotion" in the following sentence natual? If not, how to rewrite it? The main idea is: working hard is a must to have a job, getting a promotion needs to work even harder.     It is a hard fact that only diligent employees who devote the majority   of their time and energy on sharping professional skills can get   themselves employed, not to mention getting a promotion


Do edit rollbacks affect explainer/refiner/illuminator badge progress?

I answered a question, was upvoted, and then edited the question. My badge progress was immediately updated. Then I thought better of my edit and rolled it back. My badge progress remained incremented.  Just confirming this is the expected behavior, as opposed to my badge progress being decremented. Would the behavior be different if someone else had rolled back my edit?


First, look at this:  import time  wait = time.sleep  def put(char):     print(char, end='')  def text(*pieces):     for p in pieces:         for c in p:             put(p)             wait(0.25)   I wanted to make a function that prints characters one by one with a delay of 250ms. But the problem is, it doesn't actually print characters one by one, instead, nothing happens until the "for" loop ends, then the given pieces of text is printed directly at once. Can someone tell me another way to do that, as in Undertale, typing/printing/putting characters one by one with a delay? Thanks.


I intend to change only the font of a line using LaTeX Font Catalogue, but the whole of document will be changed

While I intend to change the font of only a line in the document using one of the fonts presented in the LaTeX Font Catalogue () (for example, concmath: ), but the font of the whole of document will be changed.  I do as follows:  \usepackage{concmath} \usepackage[T1]{fontenc} \newenvironment{concmath}{\fontfamily{concmath}\selectfont}{\par}  \begin{document}      The font of this text must be remained as it is by default.     \begin{concmath}             I want to change only the font of this line using one of the fonts in The LaTeX Font Catalogue.     \end{concmath}     The font of this text must be remained as it is by default.  \end{document}   P.S. I am using LNCS as template and TeXstudio as editor.


I have windows 7 in Arabic. Now I dowloaded QGIS 2.14.3-2 in French.  But when I installed it shows Arabic menu/tools...  How can I change the menu language to French?


What is this line at the top of many files?

I have seen many files which have this line as the first line in them. What exactly is this?  #!/usr/bin/env python   What does it mean? Why is it necessary?


How do you find $65^{3903}$ $(\text{mod }81)$? I found that $65^{3903} \equiv 2 \ \text{ (mod } 3)$ with Fermat's Little Theorem. Is that the right first step? I don't know how I would apply the Chinese remainder theorem here.


Do you wait for edits before voting to close a question?

Let's say that there is a question asked in a bad manner, in a way that the question is missing. For example the user shows the code and doesn't explain very well which is the problem.    Usually someone starts digging in the OP mind posting comments and asking him for details. It may happen that the question gets edited and the OP edits it to a valid question.    Do you usually give the OP time to edit the question or you immediately vote to close it?


Given a specific DateTime value, how do I display relative time, like:   2 hours ago 3 days ago a month ago


Can't send windows between monitors with hotkeys (15.04)

I use window management hotkeys constantly, think it's one of the best features of ubuntu. However, I have two problems when I plug in an external monitor. However I cannot send a window, with hotkeys, between monitors. I used to be able to do this on windows, and it was a really useful feature.


I would like to do generate an excel file from the database query results(which are shown in an html), and display those in an downloadable excel sheet on the same page.All this needs to be done using jsf and javabeans(no jsp). The basically i would like to do the java ee equivalent of the following:  header("Content-type: application/vnd-ms-excel");  header("Content-Disposition: attachment; filename=Export_data.xls");   $db_link = db_connect(); $result = odbc_exec($db_link, $query); ?>

     column1	     column2
  <?php   while(odbc_fetch_row($result)){          $col1 = odbc_result($result, 'column1');        $col2 = substr(odbc_result($result, 'column2'),0,30);       echo ('
');       echo ('' . $col1 . '	');       echo ('' . $col2 . '	');  echo ('
');                          }                                  ?>

 <?php   edit: i want to both generate an excel from an html markup on the page, and display a downloadable version on the same page, without using any external plugin/apis.just like shown in the php. So it is not a duplicate of the other post, which doesnt generate excel from the the markup, and doesnt display it on the same page either.


Dealing with questions of nefarious intent

How should we treat questions that are, or have seeds of, evil or malicious purposes and actions, such as writing spambots and malware?    Should they be answered like regular "everybody keeps their pants on" questions? Or should there be some other type of response to this bad behaviour lot?


Let $G$ be a group, $N \triangleleft G$ and $\bar{G} = G/N$.  Prove that for every two elements $\bar{a},\bar{b} \in \bar{G}$ the following is true:  $\bar{a}\bar{b} = \bar{b}\bar{a} \Leftrightarrow a^{-1}b^{-1}ab \in N$  So this looks a lot like the Correspondence Theorem, so I have an understanding as to how these are connected, but I'm at a loss when it comes to the proof of this.  I am supposed to prove this without having that G/N is Abelian.


Is it possible in R (or in general) to force regression coefficients to be a certain sign?

I'm working with some real world data and the regression models are yielding some counterintuitive results. Normally I trust the statistics but in reality some of these things can not be true. The main problem that I am seeing is that an increase in one variable is causing an increase in the response when, in fact in reality, they must be negatively correlated.  Is there a way to force a specific sign for each of the regression coefficients? Any R code to do this would be appreciated as well.  Thanks for any and all help!


Correct comma usage with "but after years of"

I'm wondering if the comma usage is correct in the following sentence ("Brachyura" and "the Twelve" are proper nouns)?  "The priestesses of Brachyura may hold the answers she seeks, but after years of protecting the secrets of the Twelve can they still be trusted?"  Should there not be an additional comma after the "but", or a comma after the word "Twelve", or are these optional? Many thanks


How to Move TempDB Files to a Different Drive or Folder?

How do I move my TempDB Data or Log File(s) from wherever they are now to a different Drive or Folder?


Is there a way to estimate the actual temperature where the yeast ferments without having a sensor inside the carboy?

I was reading  on fermentation temperature control where it says,     However, since yeast growth and fermentations are exothermic and therefore generate heat, figure that the temperature within the fermenter can be as much as 8 °F (4 ºC) higher than outside of the fermenter during the early days of fermentation. So beers that are fermenting in refrigerators set at 65 °F (18 ºC) are most likely fermenting at about 72 °F (22 ºC).   4 ºC is a huge difference!  Right now I have a carboy in a fridge that's temperature controlled to 19 ºC (on the lower side of the optimal range for WLP351). The sensor strip is taped to the glass of the carboy, and consistently reading 19.2 ºC.  I'm wondering if next time I should set the temperature control lower in the first 12 hours, but I realize I have no idea how that translates to change in different sections within the carboy—near the glass, the bottom, the top (where ale yeasts float, correct?), and so on. For example even if it's 19.2 ºC on the outside of the glass, the liquid touching the inside of the glass is probably much warmer due to convection.  Is there a gradient diagram or some rough formula that would help me determine the effective fermentation temperature (where the yeast actually is) from the outside glass temperature? Or, do I have to find a way to stick a (sanitized) sensor strip into the carboy.


Do I have to pay a fee to develop or deploy a .NET application?

I have heard that .NET is not free and that I have to pay Microsoft if I develop a .NET application.  Is this true?  If so:   What do I have to pay? I'm a subscriber to the MSDN via the Academic Alliance (we download a variety of Microsoft Software products for free, like VS2008 and Windows Server 2008). Do I have to pay for the software that I make with these tools? What about web apps with ASP.NET? Is there a payment due when I host my application or do I just pay for the technology?   EDIT:  So what you are saying is that it's the same to develop a web application using ASP.NET or PHP (ignoring technical issues, just payment side), all what I have to pay is the hosting fees?  EDIT 2:  .NET rules :)


Is the www2 non-mirror subdomain affects the SEO?

I have a client with two CMS (Hubspot and WordPress) on two different subdomains.  WordPress: www.domain.tld Hubspot: www2.domain.tld  The WordPress environment is used for the main website and the Hubspot is only used for the blog (yeah, I know, it's strange). The client wants to keep the Hubspot environment, but I'm not sure about the subdomain actually used (www2).  The www2 isn't used like a mirror.  I want to know if a subdomain like www2 affects the SEO.  Thx,


Given the permutation   $$\sigma = \begin{pmatrix} 1&2&3&4&5\\3&1&2&5&4\end{pmatrix}$$  the matrix A is defined to be the one whose i-th column is the $\sigma(i)$-th column of the identity I. Which of the following is correct?   $A=A^{-2}$  $A=A^{-4}$  $A=A^{-5}$  $A=A^{-1}$    I didn't understand what $\sigma(i)$-th means here?


Word for describing the situation of caring about nothing but one thing

I want to describe a situation in which someone gets interested in something/someone to such extent that he forgets other activities and normal life, and just cares and thinks about the beloved activity/person. This is the sentence in which I want to use this word:     I devoted myself to this/her/him so (the word) that ... .   One word that comes to my mind is to use the adjective form of ascetic. But I'm not sure it's the best or even a correct choice.


Can You Two-Weapon Fight With Thrown Ranged Weapons?

A spin-off question from an , can you two-weapon fight with a dart or other thrown ranged weapons?     Two-Weapon Fighting   When you take the Attack action and attack with a light melee weapon that you’re holding in one hand, you can use a bonus action to attack with a different light melee weapon that you’re holding in the other hand. You don’t add your ability modifier to the damage of the bonus attack, unless that modifier is negative.      If either weapon has the thrown property, you can throw the weapon, instead of making a melee attack with it.   –PH page 195  Assuming you have the dual wielder feat which allows you to ignore the "light weapon" clause.  I read the second paragraph to mean that if the melee weapon has the thrown property you can throw the melee weapon.  However, another RPG.SX user reads it as if the weapon has the thrown property, you can throw the weapon, melee or not.


How would Banishment on a gelatinous cube affect an engulfed creature?

If a creature is engulfed by a Gelatinous Cube and a character casts Banishment (or similar teleportation/planar magic) on the Cube, would the engulfed creature be affected even though the spell specifies one creature?


var leftCurrent = leftArray.GetValue(i); var rightCurrent = rightArray.GetValue(i);  var mi = typeof (PropertyCompare).GetMethod("NotEqualProperties"); mi.MakeGenericMethod(leftCurrent.GetType());  var notEqualProps = mi.Invoke(null,new []{leftCurrent, rightCurrent});  if(notEqualProps != null)      result.Add(new ArraysDiffResult(i, notEqualProps as List<string>));   Why does this code throws InvalidOperationException ( Late bound operations cannot be performed on types or methods for which ContainsGenericParameters is true.) ?  NotEqualProperties is static generic method..  UPD : I've already found solution. Just forgot to assign new MethodInfo...(Epic Fail..)  But how about performance?


Can I play D&D 4e without reading the Red Box, as I already have the Player's Handbook, Monster Manual, and Dungeon Master's Guide?


Consider the following Diophantine equation: $x^2 + xy + y^2 = n$

Consider the following Diophantine equation $$x^2 + xy + y^2 = n\,.$$ For a particular positive integer $n$, the number of solutions $\left(x,y\right)$ such that $x$ and $y$ are integers is given by the function $S(n)$. The function $S(n)$ is not one-to-one. For example, each number $n$ in the set $$\{1, 4, 9, 16, 25, 36\}$$ corresponds with $S(n) = 6$. In increasing order, starting from $n = 1$, the first $n$ such that $S(n) = 36$ is $637$.  What is the $500$th $n$ such that $S(n) = 36$?  Any precise approach or hint from where I should start the problem?


How many values of N exist, such that N! ends with exactly 30 zeros?


Chat sucks without the new image upload dialog. It should have the new image upload dialog. The one that allows you to paste images directly into it

The new image upload dialog is awesome and I love it.  Will we get it on chat as well?


Georeferencing vector PDF/SVG/DXF linework using QGIS?

I want to  create a small web application to visualize election results on a per poll site basis for my city. The result is going to be very similar to what has been done for Berlin . Hopefully this helps in understanding what I'm going for.  The election raw data on the scale I need is published and I know how to visualize this on the grounds of a shapefile with separate polygons lining out the election districts. My problem is - as you could probably guess - that something like this doesn't already exist.  What actually is published though, is a PDF file lining out the borders of the districts I'm interested in:   I'm not keen on redrawing the linework myself, so I'm looking for a way to make a shapefile out of this. Luckily, the PDf includes the linework as separate vector objects, I extracted these into a SVG file:   I already tried converting the SVG to a DXF and importing it into qgis 2.0.1. This actually works, but (as expected) places the vectors in the atlantic ocean and I can't find a way to edit it and fix this.  What can I do now to georeference these vectors with open source tools and finally produce a shapefile?


How can I make my shell prompt look like a cheeseburger?

I want my shell prompt to look like a cheeseburger! 🍔🍔🍔  It would be nice if it also displayed: username, hostname, and current directory.


I was fighting bandits in the sewers when one of them went into a "cower" animation, and began screaming about how he had given up.  Given that I found his terror endearing, I deigned to spare him. I tried talking to him, to no effect. Then I tried sheathing my weapon - upon which the brigand thought he had a chance, and resumed hostilities with due haste!  Sadly, he did not offer to yield again before I slew him.  And so, the question remained unanswered: do enemies actually surrender, or was this just a clever ploy to catch me with my pants down?