How to get code to launch the txt that it created?

So I wanted to create code that creates fake steam keys/adobe keys to fool my friends into thinking I can get as many games as I want. So I got everything working as planned, the code generates the steam key and then places it into a .txt file.   However I find it very annoying that I need to keep manually reopening the file after every time I type "y" in the if another == "y": line to access the new key. I was wondering if it is possible to have it open the .txt file for me. I have looked through many websites and can't find anything that actually launches the .txt. Hope someone can help me out here, full code is as follows:  import string import subprocess import sys import random from random import * while True:     def steam():         while True:             min_char = 5             max_char = 5             allchar = string.ascii_letters + string.digits             password1 = str("".join(choice(allchar) for x in range(randint(min_char, max_char))))             password2 = str("".join(choice(allchar) for x in range(randint(min_char, max_char))))             password3 = str("".join(choice(allchar) for x in range(randint(min_char, max_char))))             f = open('Steam Keygen.txt','w')             f.write(password1.upper() + "-" + password2.upper() + "-" + password3.upper())             f.close()             steampath = r'C:\Users\mynamewhichIdontwanttoshare\Desktop\Steam Keygen.txt'             subprocess.Popen(",s ,s" , (steampath))             another = input("Another?")             if another == "y":                 print("Ok!")                 steam()             else:                 sys.exit(0)     def first():          watchuwant = input("What software do you want a code for?")         if watchuwant == "steam":             steam()         elif watchuwant == "adobe":             adobe()         else:             print("This is not available, sorry.")      first()   Note:  The adobe() function doesn't work yet so if you want to run it, just test by typing:  -What software do you want a code for?  steam  -Another?  y


Good day! Can't type my pass in "terminal" to install steam.  Steam installer promt to start it to complete installation I press "Start" A window dubbed "Terminal" pops And there it says "Steam needs to install additional packages: yadayada [sudo] password for username:  Here comes the problem. I can't type there I can't copy-past from elsewhere  What am I doing wrong?


Why does copying individual files take so much longer than one large file?

I was copying a few very very large files to my computer. In total, 28 files and roughly 200GB (meaning each one was . I noticed that it was going at more or less the same speeds the entire time:    However, transferring multiple small files has much larger fluctuations in speeds:    (Yes, this is from google drive but they're all locally downloaded to my computer)


I'm new student with Java and I'm trying to make an app to see if the username and password do exist so I wrote this code and there in the main class I call this method and see if a = true or false.  i tried putting System.out.print statement in the while loop and it didn't show up which means the while loop doesn't works.   public void checkUserName(String username,String password) throws SQLException, ClassNotFoundException {   openconnection(); String query ="SELECT * FROM hema.employee"; Statement stm=(Statement) con.createStatement(); ResultSet rs; rs = stm.executeQuery(query);    while(rs.next()){           String un,pass;           un=rs.getString("UserName");          pass=rs.getString("PassWord");           System.out.println("hi your answer is "+ a);           if(un==username&&pass==password){                System.out.println("if Works");            a=true;            break;                                             }      }    }


Is it recommended to format an external drive to ext4?

I have a new 2TB external hard drive I will be using for additional storage and backup. I will only use it on two Ubuntu machines. Is it recommended to format the drive to ext4? Are there any advantages in doing so?


How to successfully restart a network without reboot?

When I am using Ubuntu, sometimes the network goes down and there is no option to bring back the wired network. There is always option for wireless, but no option for wired network. In such case I try sudo service network-manager restart (using a command line just to start the interface). This works sometimes, sometimes it takes many iterations and other times it never starts. In my country the network goes down without any reason. I even wrote a perl script to run above script for at least 10 iterations and scheduled it using Cron. Since lately I cannot start the network using above command unless I restart the computer. What is the problem with the computer, why can't a network restart become a first class citizen in Ubuntu and needs a computer reboot. Why isn't there an option that never goes down just like wireless network to start wired network. Is there something I am missing. The command sudo /etc/init.d/networking restart does not seem to do anything at all.


"A few" takes a singular or plural verb in present simple tense?

Does "a few" take a singular or plural verb in present simple tense?        A few men lifts the table.   A few men lift the table.   A few frogs jumps out of the lake.   A few frogs jump out of the lake.      I have searched the same question in google, but I see both answers. Which one is correct? How come "a few" is plural? Even though it refers to many, "a" makes "few" a singular, so it should take a singular verb, right?  Should I always put "a" in front of "few"? For example, are the following correct?        Few men lift the table.   Few frogs jump out of the lake.


Find the last three digits of $17^{256}$

Find the last three digits of  $ 17 ^{256} $  We have to check mod $1000$  I tried to check some patterns but in vain.!


Is there a way to mount a disk directly to a specific folder?

Using Mac OS X 10.4  I made a script a while ago for my linux box in order to take archived data off of 300 floppies that automated the process. I would make an image of the floppy and copy the files directly off of the floppy. I managed to install xcode on the machine (in order to install ddrescue)  The thing is on a linux box I mounted each floppy to /media/floppy and unmounted it to ddrescue it and copied it directly to a usb drive.  I'm trying to port my script to the mac, and it seems that it's default behavior is to automatically mount each zip floppy to the /Volumes folder, which is fine, except it uses the volume's name as it's mount point folder name. So if a floppy's volume name is, "Jimmy Bo Bobs" it will mount to /media/Jimmy /Bo /Bobs.   So my question is I need to get the volume name either consistent to one name, or adaptable to the volume's name.   So my initial question is can I some how mount a drive to a specific folder, Like I would normally do in linux?   #Linux  mount /dev/sd1 /media/floppy  #Mac  diskutil mount /dev/disk1s1 /media/floppy #Doesn't work   If it's not possible, is there an easy way to extract the volume's name so that I can then link the script like this.    Volumename=Jimmy Bo Bobs  do stuff to /Volume/$Volumename   I'm guessing if it's not possible I'll have to grep the mount command to the /dev/ pointer and then somehow parse that string which is what I want to avoid since it would require even more research.


Detecting Numbers in a String Variable (In Java)

So, normally for detecting user input, I use int and double variable types.   Example:      Scanner in = new Scanner(System.in);     int selection;     System.out.println("Welcome to RPG! (prototype name)\nIn this game, you do stuff.\nChoose a class:\n1. Soldier\n2. Knight\n3. Paladin\n4. Heavy");     selection = in.nextInt();        if(selection == 1){         System.out.print("you are a soldier");     }     else{         System.out.print(selection);     } }   This technique usually works fine for me, but I noticed that if the user inputs a letter into the int variable, the game will crash because integers can't store letters. (right?) So I tried using a String variable in its place, like this:      Scanner in = new Scanner(System.in);     String selection;     System.out.println("Welcome to RPG! (prototype name)\nIn this game, you do stuff.\nChoose a class:\n1. Soldier\n2. Knight\n3. Paladin\n4. Heavy");     selection = in.next();       if(selection == "1"){         System.out.print("you are a soldier");     }     else{         System.out.print(selection);     } }   This seemed to work at first, but as you can see, I have it set so that if the variable "selection" is equal to 1, that it will print "you are a soldier", yet this did not work, instead it printed out the "selection" variables value (1). Did I do something wrong or should I use a different type of variable?


How to do a line break in a table entry?

I found  but it is not intuitive at all and it's 6 years old. So, I wonder if the answer by gaborous is correct as I am using Lyx 2.2.2 and simple enter does not do the job for me:     @landroni in latest versions of Lyx it seems the shortcut is no longer   necessary, a simple enter is enough to do a linebreak. – gaborous May   31 '16 at 20:54   Is there an easier way to do this? Is the answer by gaborous correct in any circumstance?


Comparing packages which facilitate typesetting exercises and solutions: exercise vs. answers vs. probsoln

Could someone with experience in using these exercise typesetting packages please offer a quick compare and contrast of these packages to help me choose?  Packages under consideration are:         Having read briefly the documentation, they all seem to do the same thing generally, so could you please focus on the differences?  Some differences will not be obvious until I've learnt and used all the different packages but I want to better appreciate the differences now, a priori.


What does it mean for two objects to "touch"?

If you've ever been annoyingly poked by a geek, you might be familiar with the semi-nerdy obnoxious response of      "I'm not actually touching you! The electrons in the atoms of my   skin are just getting really close to yours!"   Expanding on this a little bit, it seems the obnoxious geek is right. After all, consider Zeno's paradox. Every time you try to touch two objects together, you have to get them halfway there, then quarter-way, etc. In other words, there's always a infinitesimal distance in between the two objects.   Atoms don't "touch" each other; even the protons and neutrons in the nucleus of an atom aren't "touching" each other.  So what does it mean for two objects to touch each other?   Are atoms that join to form a molecule "touching"? I suppose the atoms are touching, because their is some overlap, but the subatomic particles are just whizzing around avoiding each other. If this is the case, should "touching" just be defined relative to some context? I.e, if I touch your hand, our hands are touching, but unless you pick up some of my DNA, the molecules in our hands aren't touching? And since the molecules aren't changing, the atoms aren't touching either?  Is there really no such thing as "touching"?


Is there a way to represent a number with higher than 53-bit precision in JavaScript? In other words, is there a way to represent 64-bit precision number?  I am trying to implement some logic in which each bit of a 64-bit number represents something. I lose the lower significant bits when I try to set bits higher than 2^53.  Math.pow(2,53) + Math.pow(2,0) == Math.pow(2,53)   Is there a way to implement a custom library or something to achieve this?


USA refugee travel document to travel to UK

I am planning to visit the UK on a USA travel document but there’s nowhere I am able to find information about visas: I’m a Zimbabwean but using a USA refugee travel document do I need to apply for a UK visa before I travel or I can they just give them on arrival.


Why does Dumbledore die in a way that portrays him as weak?

I have absolutely no intention of being sent to Azkaban. I could break out, of course - but what a waste of time, and frankly, I can think of a whole host of things I would rather be doing.   Dumbledore in the Order of the Phoenix   This, and many more instances, show us that Dumbledore was an immensely powerful wizard and was the only person Voldemort was afraid of.  However, Dumbledore chose to die at Snape's hand rather than suffering through the curse of Gaunt's ring. This would leave the impression that this immensely powerful wizard could not defend himself against Snape and a couple of other Death Eaters.  Since the truth didn't come out until the end, this would leave those who admired him with the belief that Voldemort's forces are far more powerful than they thought, disheartening them and making them less inclined to fight back (if Dumbledore couldn't fight them and win, how could I possibly do so?)  Why would he choose to do this?


Construct a real function with is exactly C^2 such that its first derivative does not vanish everywhere

I need to construct a real function with is exactly C^2 (that is, it is continuous and 2 times differentiable but it is not 3 times differentiable) such that its first derivative never vanishes.  I tried   x^5 Sin(1/x) + Exp(x)  x^(5/2) + Exp(x)  |x|^3 + Exp(x)  all these functions are exactly C^2, but their first derivatives vanish in some point(s).  :(


What equipment is needed for a basic product shoot studio?

Our college is setting up a photo studio in campus. Mostly the we do product shoots. We have some old strobes, softboxes to start with. We need suggestions on the equipments listed below.   Which are the commonly used backdrop screen colors used or say must have colors?  Suggested tripod and head? Colors for reflectors?


How can I change this code to INSERT instead of UPDATE if content doesn't exist?

I have a query that will update a row in the database, which works fine providing there is a row there to begin with.  How could I say; update if exists insert if doesn't?      require_once('../scripts/includePDO.php');      $who = $_SESSION['who'];     $formText = $_POST['protext'];  $sql = "UPDATE tbl_profiles SET proText = :formText WHERE user_id = :who";      $q   =  $conn->prepare($sql);     $q->bindValue(':who',$who,PDO::PARAM_INT);     $q->bindValue(':formText',$formText,PDO::PARAM_STR);     $q->execute();  header("Location: ../settings/?status=Done");


Show that if $(b,c)=1$, then $(a,bc)=(a,b)(a,c)$.

Problem: Show that if $(b,c)=1$, then for any integer $a$ we have $(a,bc)=(a,b)(a,c)$. [Hint: Prove that each member of the alleged equation divides the other.]  This is the way I proved it (without the hint): $(a,b)(a,c)=(a(a,b),c(a,b))=(a^2,ab,ac,bc)=(a^2,bc,a(b,c))=(a^2,a,bc)=((a^2,a),bc)=(a,bc)$  But how should I prove it using that hint or at least a similar proof.


Book: girl with a prototype computer in her head that allows her brain to be broken into multiple personalities

I'm trying to find the name of a book I read about 15 years ago. The cover had a picture of a girl standing in front of a bunch of rockets.  The story was about a girl who finds out that a computer that was surgically implanted in her head is a prototype that allows for her brain to be broken into multiple personalities.   The company or government (I don't remember which) is trying to capture her again but she escapes and gets help from a hacker who helps her unlock her true potential.


I have heard the word medal used as a verb recently by members of the (BBC) Rio 2016 commentary team and on occasion to podium even slipped in - is this a common phenomenon?  Perusal of the internet indicates that to medal is not just a recent occurrence but one that stretches back to the  and a usage in reference to the   (N.B.: Ngrams only looks at written language so it's apparent decline recently is probably not representative of its overall usage)     the OED lists examples of using "medal" as a verb as long ago as Byron, in 1822: "He was medalled." [The modern usage is]  dated by the OED from 1966: "to win a medal (i.e. to come first, second, or third in a sporting event or competition)".   ()   Podium as a verb has no such illustrious history with a more minor usage in mainly athlete circles. My Ngrams search (see above) finds to podium has a small, recent use but podiumed is not found (and is highlighted as a spelling error). It is listed in the OED but as mainly in AmE.       (Of a competitor in a sporting event) finish first, second, or third, so as to appear on a podium to receive an award:     **In the end, my question is:   Are these words mainstream verbs or are they merely seasonal, and don't see use outside of commentary and competitor circles?**


Is there more to the the conventional explanation of 'Why is the sky blue?'?

The differential cross-section of Rayleigh scattering is inversely proportional to the fourth power of wavelength of the radiation incident on the scatterers. More precisely, $$\frac{d\sigma}{d\Omega}=\frac{8\pi}{3}\bigg(\frac{e^2}{4\pi\epsilon_0mc^2}\bigg)^2\frac{(1+\cos^2\theta)}{\lambda^{4}}$$ where $\theta$ is scattering angle. This means that the small wavelength components of light are strongly scattered than the large wavelength components. Thus the white light coming from the sun will suffer more scattering by the atmospheric scatterers in the blue end of the spectrum than the red end. Therefore, when we look at the sky, it appears blue because the scattered light is rich in blue. Here, the conventional explanation stops but it seems to me to be incomplete. Here is why: According to the explanation above, the blue light is scattered away from the observer. But then blue light is not reaching the eyes of the observer. Then why should we see the sky as blue?


"environ" package and nested environments won't work

I'm trying to make a little style package to make some nice blocks with icons and so on. I'm using environ package + tikz. Actually the document compiles and shows me my boxes but with errors saying that some environments are not closed.  I created a "iconbox" environment with environ package that accepts some arguments (title, icon, colors...) and I want to use it to generalize some boxes: info box, danger box...  The problem begins when I want to create a new environment that uses the iconbox I've created.  If I want to use \NewEnviron that calls another one, LaTeX crashes in recursion.  If I use the legacy newenvironment so LaTeX says that I didn't close the iconbox block.  And of course, I tried \beginiconbox and \endiconbox in start and end block but it doesn't work.  Here is a "copy/paste" that should give you the problem  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[francais]{babel} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage[tikz]{bclogo} \usepackage[framemethod=tikz]{mdframed} \usepackage{environ} % NewEnviron \usepackage{fontawesome} % font awesome icons %Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup \usepackage[Sonny]{fncychap}  \usepackage{tikz} \usetikzlibrary{babel} \usetikzlibrary{shadows.blur}  \usepackage{color} \usepackage{pbsi} % for handwriting \usepackage{bera}  \definecolor{m3dorange}{HTML}{ff9966} \definecolor{m3dred}{HTML}{c9453e} \definecolor{m3dgreen}{HTML}{4f9c45} \definecolor{m3dblue}{HTML}{2499d0}  % title, icon, color, title color \NewEnviron{iconbox}[4]{%     \begin{center}         \begin{tikzpicture}         \node [             top color=#3!10,             bottom color = white,             inner sep=2em,             rounded corners=1em,             draw=#3!60,             inner sep=1.2em,             text width=\textwidth*.7,             drop shadow = {opacity=.4},             shadow yshift = -4,             shadow xshift = 4,             font=\par\itshape         ] (frame) at (0, 0)  {\hspace{1.5em}\textbf{\bsifamily{\centering\Large\textcolor{#4}{#1}}}\vspace{.8em}\par\BODY};%         \node [             shape=circle,             top color=#4!90,             bottom color=white!50,             color=white,             circular drop shadow={opacity = .7},             font=\Huge,             inner sep=6pt] at (frame.north west) {\centering\textbf{#2}};         \end{tikzpicture}     \end{center} }  \newenvironment{danger}[1]     {\begin{iconbox}{#1}{\faExclamation}{m3dorange}{red}}     {\end{iconbox}} \newenvironment{success}[1]     {\begin{iconbox}{#1}{\faStickyNoteO}{m3dgreen}{m3dgreen}}     {\end{iconbox}} \newenvironment{info}[1]     {\begin{iconbox}{#1}{\faBookmark}{m3dblue}{m3dblue}}     {\end{iconbox}}  \begin{document} \begin{danger}{Warning} You do it wrong. \end{danger} \end{document}   It generates that kind of box:    But... with errors...  So, how can I do ?  Thanks a lot.


Solution of Friedmann equation in terms of conformal time

We know that for the flat geometry of lamda CDM model, the solution for Friedmann equation is   $$ a(t) = \left\{ \frac{Ω_{m,0}}{Ω_{Λ,0}} \sinh^2 \left[\frac{3}{2} \sqrt{Ω_{Λ,0}} H_0(t - t_0)\right] \right\}^{1/3}, $$   where the scale factor $a$ is a function of cosmic time. If I want to express the scale factor here as a function of conformal time, what will be the equation, i.e., how can I write the solution of the Friedmann equation in terms of conformal time?


sizeof operator macro #define MYSIZEOF(X) ((X*)0 +1)

#include<stdio.h> #define MYSIZEOF(X) ((X*)0 +1) int main() {     printf("%ld", MYSIZEOF(int));     return 0; }   Can any one please explain how it works ? thanks in advance


how to create a flat glowing eyes in blender

Can anyone please help me to create eyes for my model and i didn't  need a normal human eye,like i wanted  a type of wizard eyes.for ex-    And this is my model.


Panasonic Eneloop BK-3MCC (4th gen) - where I can find maximum discharge current?

Im looking for some official information source about maximum current for Panasonic Eneloop BK-3MCC rechargeable batteries.  All I found is , there is just 1 table (nothing about maximum discharge current), charge and discharge characteristics.  UPDATE LINK:   / edited - I fixed my mistake, I meant 6A not 8A /  There is discharge characteristic for 6000mA discharge. So... I can safely draw 6A from that AA cell?


Visualforce RenderAs PDF not supporting SLDS CSS

I have a VF page built on Lightning Design system (LDS) framework. When I add the renderAs="PDF" attribute, pdf does not show the content with LDS CSS/Style.  Reference Link:   Note1: apex:page tag has all the usual attributes which is required for pdf *     (showHeader="false" sidebar="false" standardStylesheets="false"   docType="html-5.0" applyHtmlTag="false" applyBodyTag="false")   Note2: Salesforce supports external stylesheet. That is, CSS file stored in Static resource. Link of example:   I also copied the whole css content from the LDS CSS file (Path: 'assets/styles/salesforce-lightning-design-system-vf.min.css') and applied as inline CSS in VF page. But still, there is no luck.  My styleSheet is referred in VF page as below  apex:stylesheet value="{!URLFOR($Resource.SLDS221,      'assets/styles/salesforce-lightning-design-system-vf.min.css')}"   Page works absolutely fine if it is not rendered as PDF.  Any suggestions?


Difference between ls -l , ls -ltr and ll?

When i am using these commands , i am getting the same output but only order is getting changed for ls -ltr command. Can anyone please tell me what is the difference between the below commands?   ll ls -l ls -ltr


Install Ubuntu on 64-bit PC alongside Win7; Will Ubuntu see Windows partition?

Acer w/ AMD Athlon 64 x2 dual core 3800+ 2.00 GHz, 4 gig RAM, 32 bit Windows 7, originally built for Windows Vista. Added an NVIDIA graphics card.    1 TB barracuda hard drive partitioned into 3, 1 partition [201GB] set aside for Ubuntu,  Win 7 on one and files on the third.   I want to put Ubuntu 12.04 LTS on the empty partition to work alongside Windows. Am also concerned, as I read that Ubuntu 64bit may not see the existing Windows installation – especially if it is a 32 bit program.   Can anyone tell me the safest and most effective means of installation ?


I need some tools to encrypt my directory with passphrase and easily open it with passphrase again


G++ Template instantiation results in "Undefined reference to" error

I've been having some issues lately with my custom written general purpose vector code, which relies on templates for functionality. I am reluctant to include the implementation in the header file (as is common with templates), as this would add significantly to the compilation time. So I have instead manually instantiated the desired class in the .cpp file. However, this still results in an undefined reference error. I have reduced the code to the following snippet, which still generates an error: matrixd.cpp #include "matrixd.h"  namespace math {     template class _vec2<float>;     template<class T> _vec2<T>::_vec2() {} }  matrixd.h #pragma once namespace math {      template <class T>     class _vec2     {     public:         T x, y;         _vec2<T>();         void reset();     };      typedef _vec2<float> vec2; }  test.cpp #include "matrixd.h"  int main() {     math::_vec2<float> v; }  Error message:  In function main': source.cpp:(.text+0x10): undefined reference to math::_vec2::_vec2()' collect2: error: ld returned 1 exit status  Any help would be appreciated! :)


Story about a black hole and a robot therapist

I'm trying to recall a story I read as a child, probably in the late 1980s, though it may well have been written before that. I think it was a short story in an anthology, but I don't remember anything about the book it was in. The plot, as far as I remember, is that a person (probably male) is seeing a counsellor or therapist of some kind, who I'm fairly sure is a robot. The person has been on a space mission that resulted in some other people falling into a black hole while this person escaped, perhaps in an escape pod, and they're trying to deal with the trauma. I remember specifically a scene at the end where the person leaves the therapist's office but then re-enters, finding the room partially reconfigured to match the next client's psychology. The story concludes with the person realising or stating that because of relativistic effects, the people who fell into the black hole are not dead but frozen in time, forever living out the last moments of their lives.


Clicks "restart" in RDP -> Brings back to my local PC -> I don't know when the RDP will fully wake up -> Whenever it's wake up it login automatically

I have 2 programs in the RDP -- 1)A.bat & 2)B.exe Execution process of A.bat is something like -  Step1: Download a file from internet using the command --  powershell -c "Invoke-WebRequest -Uri 'https://laptop-updates.brave.com/latest/winx64' -OutFile 'C:\Users\Administrator\Desktop\B.exe'"   Step2: Modify a RegistryKey so that B.exe can run automatically in the next reboot. Command used for that purpose--  reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce /v runonce /t REG_SZ /d "C:\Users\Administrator\Desktop\B.exe" /f   Step3(Last step): Reboots the RDP. Command used--  shutdown /r /t 0  Execution process of B.exe is not our concern. My problem is when A.bat executes the last command the RDP session closes and returns me to my local pc. RDP takes some time to fully wake up. After waking up it doesn't automatically login to it's desktop. Again i have to login manually to the RDP using Remote Desktop Connection so that B.exe can run. I just want that after reboot, RDP automatically login to the desktop causing B.exe to run in the startup. N.B: Using Windows Server 2019 in Amazon EC2 instance as RDP.


Let $E$ be  a complex Hilbert space. Let $T\in \mathcal{L}(E)$.     It is true that for an arbitrary operator $T\in \mathcal{L}(E)$, we have   $$w(T) := \sup\big\{\;\left|\langle Tu\;|\;u\rangle \right|,\;\;u \in E\;, \left\| u \right\| = 1\;\big\}=0\Longrightarrow T=0?$$   Or $T$ must be self-adjoint operator?   Thank you.


I want to install Windows 10 alongside my Ubuntu

I have an issue where i want to install WIndows 10 alongside Ubuntu 18.04 LTS because i can't play most of my games such as Roblox. If i do so, Windows will eat the GRUB bootloader and i will have to re-nstall Ubuntu but i don't want so. I don't want to do VirtualBox either due to the graphic card drivers and VIrtualBx lags my PC. Anyone know a trick?  Thanks.


How to change the select/input value inside a form loaded in modal window using AJAX

I need to change values inside the input and select field in AJAX loaded form. I have JSON object stored in Local Storage and I am parsing it into a regular object. This object properties called as the select and input fields classes, but jquery can't find them or something. The code is like this: $('#product-edit-popup').find('select.choose').val(JSON.parse(localStorage.getItem(currEdit)).cutName).trigger('change');          let currModalObj =  JSON.parse(localStorage.getItem(currEdit));     delete currModalObj.cutName;     for (let key in currModalObj) {         if (key == 'material' || key == 'thickness' || key == 'cover' || key == 'color' || key == 'colorSide') {             let selectId = 'select.' + key,                 currVal = currModalObj[key];             $('#product-edit-popup').find(selectId).val(currVal).trigger('change');         } else {             let inputId = 'input.' + key,                 currVal = currModalObj[key];             $('#product-edit-popup').find(inputId).val(currVal);         }     }  The first line is working fine, after this select is changed the form is being loaded using ajax, and inside this form jQuery .val() isn't working.


I need to show images and images numbers are unknown - maybe 5 maybe 10 maybe more and I have no idea how I should display them.  This is my code and display only one image.  public class NewClass extends JFrame {      public static void main(String []args) throws IOException{         BufferedImage img=ImageIO.read(new File("D:\\A-programmer-Life.jpg"));         ImageIcon icon=new ImageIcon(img);         JFrame frame=new JFrame();         frame.setLayout(new FlowLayout());         frame.setSize(500,500);         JLabel lbl=new JLabel();         lbl.setIcon(icon);         frame.add(lbl);         frame.setVisible(true);         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);       } }


An old sci-fi story about an Earth ship orbiting Jupiter

Years ago, in the 90's, I read a sci-fi story in an airline mag. It was about an Earth ship orbiting Jupiter where they sent Earth men down to the surface transforming them into these enormous Jupiter beings but were distressed that none of their guys were coming back. I remember a line from the latest guy they sent down; he said "Up there I'll only be a human".


Does 64 bit graphic card work in a 32 bit processor

I don't know much about hardware. My PC has window 8 32-bit installed. And I want to buy a graphic card 2gb ddr3 but I'm confused that it says it has architecture of 64-bit in it. Does it install on 32-bit or should i go for it?  Zotac Nvidia gt 610 2GB ddr3  -opengl 4.2 -64 bit -1066 MhZ


Can we have chaotic motion due to the finite precision of our calculations?

I understand chaotic motion to mean that very small perturbations in the initial starting condition can lead to very different trajectories in phase space. For this reason, we can never predict the motion accurately, because we can never have 100% accurate initial conditions. Can we look at the inability to predict the future states in a different way, related to the precision of our calculations (done on a computer)? Are there situations where we may know the initial conditions with 100% accuracy, but still cannot trust any of the predicted motions, because the motion depends on the accuracy of intermediate calculations, which, being done on a computer, are finite and therefore not perfectly precise? For example, if I needed to calculate a numeric integral as a step towards a final answer, if my integral were computer to 16 floating point vs 32 floating point accuracy, this would correspond to a difference at the sixteenth significant digit, which could then be sufficient to induce wildly different behavior in the subsequent trajectories. We could imagine a case that no matter how accurate your calculations were, additional accuracy in the calculations would cause the trajectory to diverge chaotically. Is this phenomenon known to exist, and are there examples of it?


Can anyone help me with this?  Consider the circle $C = \{f(x,y)\in\mathbb{R^2}: x^2 + y^2 = r^2\}$ and a point P2\in\mathbb{C}. A point P2\in\mathbb{C} is randomly chosen.  Compute the variance of the random variable X measuring the distance between P1 and P2.  The average between two points is 2rsin(θ/2) where θ is in [0,π]. But how can a find the pdf?


How can one turn off spell checking in Notepad++?

Notepad++ recently added built-in support for spell checking, and it is enabled by default.  Where can I turn it off?


Travelling with dual passport and changing at airport entry

I am holding Indian and Portuguese passports, I'm currently in India.   Now I have to travel to the UK, I can't travel on my Indian passport because I would need a visa to travel to the UK. My Portuguese passport I can't show at the airport and immigration in India.   So my plan is the following, please advise:   Book my ticket on my Indian passport and travel to Doha using visa on arrival facilities After arriving at Doha airport switch to Portuguese passport get entry and exit from Doha to the UK by booking flight from Doha to UK   My question: Since I will be exiting on my Indian passport and the departure stamp will be on it, while switching to my Portuguese passport at Doha airport, will the immigration official ask for my departure stamp on the Portuguese passport? Will this be a problem at Doha airport while traveling to the UK?


How to format code in posts on Stack Overflow? I am getting frequent error messages while submitting posts with code. I am getting the following message:  Your Post appears to contain code that is not properly formatted  as code.Please indent all code by 4 spaces using the code toolbar button or the ctrl+k keyboard shortcut.for more editing help , click the ? tool bar icon.  I have tried this by using ctrl+k -->enter code here and entered the code but I am getting the same error message. Also, I have tried using ">" before every line, even then the same message appears.


What's the simplest way to decrement a date in Javascript by 1 day?

I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly.  That is, if I have a date of 'Today', I want to get the date for 'Yesterday'.  It always seems to take more code than necessary when I do this, so I'm wondering if there's any simpler way.    What's the simplest way of doing this?  [Edit: Just to avoid confusion in an answer below, this is a JavaScript question, not a Java one.]


Find exec - Why {} can't be used as the output file name?

I tried this command to compress all the css files in all subdirectories.  find . -iname "*.css*" -exec gzip -c '{}' > '{}'.gz  \;   But it only creates a {}.gz file. I ended up using this:  find . -iname "*.css" -exec sh -c "gzip -c '{}' > '{}'.gz"  \;   which works well.   The question is why the first one didn't work and second one did?  Note: I could easily use gzip -k switch to keep the source files, but gzip on CentOS 7 does not support it.


My bounty didn't get me an acceptable new answer on an already answered question

Existing, already-answered question:   My own unanswered and closed question:   The answers to the existing question don't answer in any way the question I am interested in.  Now, I was told  that I just should start a bounty on the already answered question.  I just did that, and the bounty ended without helping me at all. The default when I don't specify any answer — giving it to the answer with the highest score — does not make sense. That answer does not help me at all. None of the answers do help me.  Now I wonder what I should do. I am still waiting for an answer to my question. My question still is closed. To get traction on it, I would have to start another bounty. I am very short with reputation on Super User, so I can't just always do that again and again.  To not lose the reputation senselessly for the first bounty, I thought I would make a dummy answer and give that dummy answer the reputation. That way, I could keep my question open with further bounties until really got answered. That didn't work for some reason. It seems I just lost the reputation. Was that a bug/problem or is this intended?  How should I handle this? Obviously I cannot just always open bounties again and again until I get an answer. So should I just ignore it and go on to another question/answer site where unanswered questions can stay open?  Or maybe the system should be fixed so I can get the reputation back from bounties that didn't get me an answer I wanted.


I have a table of data like this:  RecID     Name      Value 1         Color     Red 2         Size      Small 3         Weight    20lbs 4         Shape     Square   I need a query that returns the rows as columns, like this:  Color     Size     Weight     Shape Red       Small    20lbs      Square   What would the SQL query look like to do this?  I cannot hard code any values into the query, it just needs to read the Name and Value pairs and re-orient them horizontally.


How to compute the Riemann sum of $x^n$ for any positive integer $n$?

I'm trying to compute the integral $$ \int_{0}^{1}{x^n}~dx $$ for any given positive integer $n$ using ONLY the Riemann sums. I'd really appreciate it if you could help me out. Thanks.


Apply formula to a numeric part of cell value

In a Google Spreadsheet, I have a column of task IDs, with values like T1, T2, T13 (i.e. all values starting with the same text). I would like to use a formula on the values of these cells (for conditional formatting). Can I somehow apply it only to the numeric part of the value, i.e. 1, 2, 13? Something like =max((A1:A100)[2:end])?


Change the default-view of Media Library in 3.5?

When inserting media into a post, is there a way to change the default-view of the Media-Library from "All media items" to "Uploaded to this post"?    There is another thread where this question was extracted from:


Do I need a transit visa for Denmark in addition to my single entry Schengen area visa?

I am a Chinese national holding a US greencard. I am planning on traveling to the UK and the Schengen area to visit France, Germany, and possibly some countries in between. I am applying for a UK visa and a single entry Schengen visa now. On my journey to the UK I am stopping in Copenhagen for a day. Do I need a transit visa for that? Should I apply for a multiple entry Schengen visa, or is that too much? My guess is a transit visa for Denmark and a separate single entry visa would be easier to apply for.


Proving density of $\mathbb{Q}^n$ in $\mathbb{R}^n$

I'm looking for a relatively simple way to prove that $\Bbb {Q}^n$ is dense in $\Bbb{R}^n$ given $\Bbb Q$ is dense in $\Bbb R$   Thanks


I've noticed a psychological effect with my own voting, and am curious to know whether anyone else sees the same thing. Simply put, if I see a correct or good answer, I don't always upvote it, if the answer has some reasonable number of votes already. Similarly, if a post already has several downvotes, I usually don't bother downvoting further (some sort of "they've been punished enough" logic, I suppose).  I think this is because in my head I'm unconsciously thinking of the number of votes as a 'rating' or 'score' indicating the quality of the answer. I then find myself thinking "this answer is correct, and the best one here, but it's not that great, it's worth about 4 points." So I don't upvote. Although it's hard to disentangle from other variables like number of views or age, I suspect the same effect may be a feature on many of my own answers rated by others - the answer reaches some sort of natural level, as judged by the community... and then sits there, with only very minor subsequent increments.  Since becoming aware of this tendency in myself, I've been thinking more carefully about what the vote represents. There are clear problems with using the number of votes as a quality rating, the most obvious of which is that the scale isn't normalised in size, and is also function of time. But, irrational as it is, I still feel this bias against answers with votes (positive or negative)!  To summarise my question:   Has anyone else experienced this? Do you ever find yourself voting in this way, or should a good answer always receive an upvote? Is there a general consensus on what a vote represents?


Free module finite generated with a submodule not finite generated.

Anyone knowns an example of a R-module finite genereted with a submodule not finite generated?  I find the following example: Taking the set of function $f:[0,1]\rightarrow\mathbb{R}$ seen as module of it self. This is finite generated. If we take the subset of functions $f$ such that $f(x)=0$  for all $x\in[0,1]$ except a finite numbers of points then we will get a submodule wich is not finite generated. Why?  This is a different example of the others I saw.   Thanks a lot!!!


Which is better to use for perfomance String or StringBuilder If I don't have any string to concat or Append in c#?

I have a C# Service from Which I get the data from DataBase using Dapper Repository and I don'have SQL query to append it executes in a single statement For Example:  public CreativeMediaTypeViewModel GetCreativeMediaType(string ContractNumber, int SellerID, int CreativeClassID)         {             StringBuilder strSQL = new StringBuilder();             strSQL.AppendFormat(@" SELECT DISTINCT PurchasedSiteTypeMediaType.MediaType_bmID, MediaTypeName,Acronym,@CreativeClassID AS CreativeClassID                                      FROM PurchasedSiteTypeMediaType INNER JOIN MediaType_bm ON MediaType_bm.MediaType_bmID = PurchasedSiteTypeMediaType.MediaType_bmID                                     WHERE ContractNumber = @ContractNumber                                     AND PurchasedSiteTypeMediaType.SellerID = @SellerID                                     AND MediaType_bm.TrackingMethod <> 'Supplies' ");              var _parameters  = new DynamicParameters();             _parameters.Add("@SellerID", SellerID);             _parameters.Add("@ContractNumber", ContractNumber);             _parameters.Add("@CreativeClassID", CreativeClassID);              var result = _creativeDapperRepository.ExecuteQuery<CreativeMediaTypeViewModel>(strSQL.ToString(), _parameters).FirstOrDefault();             return result;         }    In this Method Which is better for better performance string or StringBuilder?


Show that $\frac{1}{k}-\ln\left(\frac{k+1}{k}\right)$ is bounded by $\frac{1}{k^2}$

I want to show that the following inequality holds for all $k\in\mathbb{N},k\geq 1$:  $$ \frac{1}{k}-\ln\left(\frac{k+1}{k}\right)\leq\frac{1}{k^2} $$  I already know that it is bounded. It also know that $1+x\leq e^x$ for all $x\in\mathbb{R}$. and that $e^x\leq\frac{1}{1-x}$ for all $x\in [0,1)$.


NoClassDefFoundError for antlr tokenstream while running JasperReports 6.4.0 with JsonQL

I have a Jasper template that consumes JSON data. I have a JsonQL as language for the datasource. The template compiles fine locally and generates a PDF preview.  But when we try to execute this on the server (standalone app using jasperreports 6.4.0 as a dependency), I get this error message:     org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: antlr/TokenStream       at org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1302)       at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:977)       at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)       at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)   I have checked the pom file for net.sf.jasperreports 6.4.0 and it has this as a dependency:      <dependency>         <groupId>antlr</groupId>         <artifactId>antlr</artifactId>         <version>2.7.5</version>         <optional>true</optional>     </dependency>   So I can't figure out why I get a NoClassDefFoundError for antrl.TokenStream. I found some posts online that say use Antlr 2.7.7 but this is the Jasper engine pom so I can't overwrite it easily. Could there be any other reason?  We have lots of other templates that work just fine. This is the first one that uses JsonQL. Is that a factor?


Securing Cable when installing old work box

I am installing an electrical outlet above a gas fireplace for TV.  I understand that electrical code requires securing the NM cable within 12" of outlet box.  I am curious how one goes about achieving this in a finished wall being that there is really no room to get hand, hammer, drill or screwdriver inside the wall through that box opening.   I am sure this is straightforward for experienced electricians but I have no idea how to go about this.


when I run the command sudo apt-get install build-essential.then error occurred  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package build-essential    I have inter-net connection free from proxy.


Win10 Bootup: Slow bootup, high degradation events in event viewer, with invalid paths

A PC of my family members has a super slow log in process. Once things log in, things are fine, but the login takes around a minute to two minutes which seems abnormal.  Looking at the event log, it looks like there are a bunch of events of "Event ID" 101, 103, and 108 with high "degradation times".    The trick is that a lot of the paths responsible for these events don't seem to have paths that resolve, i.e.:  - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> - <System>   <Provider Name="Microsoft-Windows-Diagnostics-Performance" Guid="{CFC18EC0-96B1-4EBA-961B-622CAEE05B0A}" />    <EventID>101</EventID>    <Version>1</Version>    <Level>2</Level>    <Task>4002</Task>    <Opcode>33</Opcode>    <Keywords>0x8000000000010000</Keywords>    <TimeCreated SystemTime="2017-12-18T23:09:12.400559000Z" />    <EventRecordID>13</EventRecordID>    <Correlation ActivityID="{44BAF9B0-7854-0001-AE04-BB445478D301}" />    <Execution ProcessID="3916" ThreadID="4776" />    <Channel>Microsoft-Windows-Diagnostics-Performance/Operational</Channel>    <Computer>laptop</Computer>    <Security UserID="S-1-5-19" />    </System> - <EventData>   <Data Name="StartTime">2017-12-18T23:02:24.956664000Z</Data>    <Data Name="NameLength">6</Data>    <Data Name="Name">Devic</Data>    <Data Name="FriendlyNameLength">0</Data>    <Data Name="FriendlyName" />    <Data Name="VersionLength">0</Data>    <Data Name="Version" />    <Data Name="TotalTime">56436</Data>    <Data Name="DegradationTime">50436</Data>    <Data Name="PathLength">9</Data>    <Data Name="Path">C:\Devic</Data>    <Data Name="ProductNameLength">0</Data>    <Data Name="ProductName" />    <Data Name="CompanyNameLength">0</Data>    <Data Name="CompanyName" />    </EventData>   </Event>   How do I backsolve these to the actual entities that are failing to load in time, and speed up things?


Finding the expected value of a nonnegative integer valued random variable

If $X$ is a nonnegative integer valued random variable, show that  $$\mathbb{E}(X) = \sum_{i=1}^\infty\mathbb{P}(X\geq i) = \sum_{i=0}^\infty \mathbb{P}(X\geq i). $$  I'm not sure how to do this. I only know the definition that $$\mathbb{E}(X):= \sum_{i=-\infty}^\infty i \mathbb{P}(X=i)\mathbf{1}_{\{X\geq 0\}} = \sum_{i=1}^\infty i \mathbb{P}(X=i). $$


I was studying pn junctions and came across the concepts of diffusion currents. From what I understand is, when the junctions come together, since there is an excess of donors on the n side and an excess of a accdeptor impurities on the p side the concentration gradients force a cross junction diffusion phenomena. Now what I would like to know is that what are the particles that move to create the diffusion currents. The notes from where I'm learning says holes and electrons. Now the actual movement of electrons make sense, because atomic ionization is a pretty ordinary event, but what does it mean when they say that a "hole" crosses the junction from the p side to the n side? Does the entire acceptor atom separate itself from the crystal lattice of the semiconductor and cross the junction? It doesn't really make sense to me? Or is it some exotic effect which I'm unaware of?


How to make ( \section ) flushleft like on article or report?

I'm using \docummentclass{amsart}and when using \section it prints it out in the center of the line how to make it on left I used \begin{flushleft} \section \end{flushlef} but it didn't work.


Prove that exactly $\phi(d)$ elements have order $d$

Let $p$ be a prime number. Prove that among $1,2,\ldots,p-1,$ exactly $\phi(d)$ elements have order $d$, given that $d \mid (p-1)$. (Note: Here $\phi(d)$ denotes Euler's Totient Function.)   I didn't see a way of proving this statement. How can we count solutions $k$ to $k^d \equiv 1 \pmod{p}$?


How to fetch from column where each values are seperated by ","?

I have two tables in the database tbLicence and tbJurisdiction tbJurisdiction has two feilds  - Jurisdiction as PK - JurisdictionX as Jurisdiction Name   tbLicence has three feilds  - Licence as PK - AgentId  - Jurisdiction   Let's us say  tbJurisdiction contains values as  - 1 - Alabama - 2 - Florida - 3 - New York - 4 - Mexico - 5 - New Jersey   tbLicence contains values as  - 1 - 224 - Florida, New York - 2 - 304 - New Jersey, Alabama   Now I want to fetch Jurisdiction and JurisdictionX on the basis of AgentId let us say 224  I want the final output should be like  - 2 - Florida - 3 - New York   I have tried the below query     SELECT L.Jurisdiction,    L.JurisdictionX    FROM   tbJurisdiction L    Join tbLicence P on     Jurisdiction    Where P.AgentId =@AgentId;   Its not working  Please help me !!!


Proof of the Existence of All Phone Numbers in Pi

By way of motivating example, someone came up with a completely evil user interface where the user was required to select their ten digit phone number by moving a sliding window over the digits of pi:    Given that pi is infinite and non-repeating, my gut says that all possible combinations of ten digits must exist somewhere in the digits of pi, but I don't know how to prove that.  Help appreciated.  Best,  Glenn


Dual Boot vs Virtual Machine for programming?

I started programming for a while and the first thing that I did is to install Ubuntu latest version (18.04 LTS) for Linux (via virtual box) environment as other developers recommended.  So, while I started using I realized my Ubuntu doesn't really work as smooth as my main OS is Windows 10. My laptop is really strong enough to handle many tasks (Dell XPS 13 9370) and now I'm not sure if the right choice is to switch for dual boot instead of the virtual box.  What do you think should I do if I want to program for a long time and being more productive?  And if it does necessarily what is the best way to switch. The only thing is to protect my main OS and BIOS and not to harm any functions/features that I already have.  Regards  Niv


X Windows special programs: do some of these still exist? Which ones?

I recall that X11 provided a number of "fun" programs accessible via unix. For instance, if you use the command xeyes, an interface will pop up of cartoon-like eyes which follow your cursor everywhere.  This still works on my most update version of X11.  But I remember so many more of these fun little commands. For instance, there is:  (A) xsnow which causes snow to fall on your desktop, with the santa option  (B) xsol which would begin a solitaire GUI you could interact with  (C) xmille was something similar, and allow you to play the game Mille Borne  (D) xroach caused cockroaches to crawl all over your screen, with the squish option allow you to click/squish these buggers  (E) xphoon would show the moon as it appears today  (F) xpenguins has penguins appear  (G) oneke had something to do with cats and dogs  Question 1: Does anyone else still use these? The only command which still works for me is xeyes. Which updates do I need to use the others?  Question 2: Have I forgotten any of these types of X11 commands?


Can you host the stackexchange software yourself to create a site?

I was wondering if I could create my own site using the software behind stackexchange and link back or retain some stackexchange branding so people know what the site is using?


Obtain the Differential Equation of all circles of radius $r$ .

Equation of circles of radius $r$ :-  $$ {( x-a)}^2 +{(y - b)^2} = r^2 $$  Then I treated $a,b,r$ as arbitrary constants .  And differentiated the equation thrice .  which gave the wrong result   As in the solution in the book equation was differentiated twice .     So why do we not treat $r$ as arbitrary constant and differentiate it twice ?   My question is very different from "" as this question is aking what to do whereas i am asking why do not we take radius as arbitrary.


Find all integer solutions to Diophantine equation $x^3+y^3+z^3=w^3$

Compute all integer solutions to the equation  $$x^3+y^3+z^3=w^3$$


What is the number of real solutions of the equation $ | x - 3 | ^ { 3x^2 -10x + 3 } = 1 $?

I did solve, I got four solutions, but the book says there are only 3.  I considered the cases $| x - 3 | = 1$ or $3x^2 -10x + 3 = 0$.  I got for $x\leq 0$: $~2 , 3 , \frac13$  I got for $x > 0$: $~4$   Am I wrong?  Is $0^0 = 1$ or NOT?  Considering the fact that : $ 2^2 = 2 \cdot2\cdot 1 $   $2^1 = 2\cdot 1$   $2^0 = 1$   $0^0$ should be $1$ right?


Sub-dimensional linear subspaces of $\mathbb{R}^{n}$ have measure zero.

I would appreciate it if someone could refer me to a proof (or simply give one here) for the statement in the title. That is:  If $k<n$, then every $k-$dimensional subspace of $\mathbb{R}^{n}$ has $n-$dimensional Lebesgue measure zero.  I've seen some proofs that use Sard's lemma but I'm not really familiar with that subject and I've never seen a proof of said lemma so I'd appreciate a proof that doesn't use it if possible.  Thanks in advance!


Roll a 6-sided die until the total $\geq M$. Mean amount by which $M$ is exceeded?

Here is the question:  You roll a fair 6-sided dice iteratively until the sum of the dice rolls is greater than or equal to M. What is the mean and standard deviation of the sum minus M when M=300?  Should I write a code to answer these kind of questions?  Please give me some hints on that. thanks!


Null notifications from Android app when the notification is a New Meta question notification

I can see notifications from Stack Exchange app but the title / description is null:null.    I remember that the notification was about a new Meta question posted. I haven't had a chat ping yet, so can't test out. Other notifications(comments/answers) seem to be fine


Can't do SSH public key login under encrypted home

I can't do ssh public key login to my server and I think this issue is related to the fact my home is encrypted. I chose the option "encrypt my home folder" under the Ubuntu install setup. The permissions on /home/MY-USER are 700.  I've tried another workstation and everything works fine. I would be glad if someone help me to get out this without removing the encryption.


Let f,g be bilinear forms on a finite dimensional vector space. Show that there exist unique linear operators

Let f,g be bilinear forms on a finite dimensional vector space.  (a) Suppose g is non-degenerate. Show tha there exist unique linear operators T1, T2 on V such that f(a,b)=g(T1a,b)=g(a,T2b) for all a,b.  (b) Show that this result may not be true if g is degenerate.  My attempt:  Although I am clueless about this question, I was wondering if it has something to do with the adjoint of a linear operator. If we have a linear operator T on a hermitian space V then = and = for all v,w in V. But then how would you relate it to the other bilinear form and how would you use the fact that one of the bilinear forms is non-degenerate?


Windows 7 VPN how to not tunnel internet?

I just put windows 7 on my work laptop and im setting it all up like it used to be. But i cant remember what option i changed to stop my internet traffic being tunneled over the VPN connection. I only want to connect to exchange and intranet over VPN.


Remove option from "open with..." menu item?

I'm using 13.10. I want to remove LibreOffice Writer from my "open with..." menu for html, xml and tex documents, because I almost never use writer (except when someone sends my a word document) and I certainly never use it for html, xml or tex. I have found the following related posts:         (1) Suggests:     Enter the contextual menu of the file and go to the Properties of it. Then, go to Open with tab, right click on the application you want to remove and click on Forget association.   However there is no "Forget association option" in properties > Open With    (2) In re this solution here is the MimeTypes from /usr/share/applications/libreoffice-writer.desktop:  MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template; application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master; application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template; application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word; application/x-doc;application/x-hwp;application/rtf;text/rtf; application/vnd.wordperfect;application/wordperfect; application/vnd.lotus-wordpro; application/vnd.openxmlformats-officedocument.wordprocessingml.document; application/vnd.ms-word.document.macroenabled.12; application/vnd.openxmlformats-officedocument.wordprocessingml.template; application/vnd.ms-word.template.macroenabled.12; application/vnd.ms-works;application/vnd.stardivision.writer-global; application/x-extension-txt;application/x-t602;   (line breaks added for legibility). I do not know whether "I had to manually change all mentions of userapp-xnview.sh-C2F5D4.desktop to XnView.desktop" in (2) means change in .desktop files (i.e. in my case change contents libreoffice-writer.desktop) or change the name of of the desktop file userapp-xnview.sh-C2F5D4.desktop to XnView.desktop. But, there are no mentions of userapp-xnview.sh-C2F5D4.desktop in libreoffice-writer.desktop nor do I have any userapp-xnview.sh-C2F5D4.desktop in ~/.local/share/applications/mimapps.list or /usr/share/applications.  I have not ~/.local/share/applications/defaults.list (should I create one? In which case, what should be its contents; defaults work fine) and here is contents of ~/.local/share/applications/mimapps.list:  [Added Associations] application/xml=komodo-edit.desktop; text/html=komodo-edit.desktop;  [Default Applications] application/xml=komodo-edit.desktop text/html=komodo-edit.desktop   which makes no reference to Writer. I have no /.local/share/applications/libreoffice-writer.desktop file.  (3) Consult response to (2).  Any suggestions?


How to fix "Notification access is not available" on Android Go?

I have a TECNO Spark 2 running on Android 8.1 Oreo (Go Edition). Every time I try to install apps that require notification access, it says that the feature is not available.  How to fix it?


bash script works but give errors: "[: too many arguments" and "8197: command not found"

I tried to to modify an existing script to work..the start option works fine. The "stop" option works ( it does kill the process successfully but gave some strange errors. Please see the output at the bottom. Can anyone please help?   #!/bin/sh   # ckconfig: 35 99 1   ### BEGIN INIT INFO   # Provides: kibana # Required-Start: $syslog $network $named $remote_fs $time networker # Required-Stop: $syslog # Should-Start: $ALL # Should-Stop: $ALL # Default-Start: 3 5 # Default-Stop: 0 6 # Description: Start the kibana application ### END INIT INFO  SCRIPT_NAME="$0"   SERVICE_NAME="kibana"    usage()   {       echo "USAGE: kibana start|stop" 1>&2       exit 1   }   start() {         export kibana_exec="nohup /data/kibana-main/bin/kibana > /data/logs/kibana/kibana.log 2>&1 "         export kibana_parms="&"         if [ ! -f $kibana_exec ]; then                 echo "kibana ERROR"                 RETVAL=1                 return 1         fi         /bin/su - Delk_admin_dev -c "$kibana_exec $kibana_parms 2>&1"         RETVAL=$?         return $RETVAL }  stop() {         export PIDFILE="`(ps -eaf | grep kibana | awk '{print $2}')`"         export pid=$PIDFILE         if [ ! -f $kibana_exec ]; then                 echo "kibana ERROR"                 RETVAL=1                 return 1         fi         /bin/su - Delk_admin_dev -c "kill -15 $pid"         RETVAL=$?         return $RETVAL }   case "$1" in         start)                 start                 ;;         stop)                 stop                 ;;         *)                 /bin/echo $"Usage: kibana {start|stop}"                 ;; esac  exit $?     [Delk_admin_dev@pvmdlr001 ~]$ ./newbash stop ./newbash: line 39: [: too many arguments Password: -bash: line 1: 8197: command not found


Let $P$ be a prime. Show that $\exists$ $x \in \mathbb{N}$ such that $f(x) = p$ then $\exists$ $y \in \mathbb{N}$ such that $g(y) = p$

What is given?  $$\text{Let P be a prime}$$ $$\text{Let} \space f(x)= 3x+1$$ $$\text{Let} \space g(x)= 6x+1$$  Show that: If there exists $x \in \mathbb{N}$ such that $f(x) = P $ , then there exists a $y \in \mathbb{N}$ , such that $g(y) = P$  What have I tried?   Given the question says 'show that', that leads me to believe I need to do a proof of sorts. I'm guessing it might be a proof by either strong induction, or just induction (or maybe just a direct proof?).  I don't even know how to set this up If $f(x) =$ $3x + 1 = $ prime...for any integer $x$, then there exists an integer $y$ such that $g(y) = 6y + 1 = $ prime?   Any hints or starting points would be greatly appreciated.   $$\text{Thanks in advance!}$$


I have FileHandle class:   public class FileHandle { public static String a; public static String b; public static String c;  public void openFile() throws FileNotFoundException {     File dir = new File("C:/Folder/DB");     if (dir.isDirectory()) {         for (File file : dir.listFiles()) {             Scanner s = new Scanner(file);             //String f = file.getName();            // System.out.println("File name:" + f );             while (s.hasNext()) {                 a = s.next();                 b = s.next();                 c = s.next();                 System.out.printf("%s\n %s\n %s\n", a,b,c);             }         }     }   And Constants class:  public class Constants {   FileHandle h = new FileHandle(); public static final String[] LIST_DATA = {FileHandle.a,FileHandle.b,FileHandle.c}; public static final int NEW_ELEMENT_ID = 0;  }   The main question : why in my Constants class i get only last scanned document information. By the way want to mention that FileHandle class scanner is working ok everything is fine. The only real struggle is  with sending variables to Constants class there as i mentioned i get only last scanned document information.


Triple-boot Windows 7/Ubuntu 12.04/OpenSuse/ 12.2

I own a Toshiba Qosmio F60-11H, with features listed here  to which I add that the card integrated DVB-T is produced by Yuan High Tech-although reported as Toshiba. I would like to install on the same computer Windows 7 HP 64bit by default, Ubuntu 12.04 and OpenSuse 12.2, with the help of Super Grub. I would like to have or know of a guide indication to proceed with this triple-boot system, keeping in mind that OpenSuse, rpm distro to my liking in KDE, has the characteristic of being a bit 'pushy and that, therefore, the ignition phase, when offers a choice of OS to boot, it appears as if it were present in several versions but even if it is always the same. Thanks


Choose a default app for opening files with no extension?

Is it possible to set a default application to open files with no extension?  I'm not referring to files with hidden extensions, but those completely lacking an extension -- e.g. README, CHANGELOG, mbox, etc.  "Open With" => "Change All" on these files doesn't work, returning the error shown below:    Ideally, I would like the system to try opening all such files in TextMate.  I know I can drag files onto Dock icons to open them in specific apps, but I'm looking for a more seamless solution than that (especially since I have my Dock auto-hide, which makes it much more cumbersome).  I am familiar with the  QuickLook plugin that can enable QuickLook for some of these files, but I would prefer a solution with selecting/copying/editing capabilities.


Unable to install mesa-common-dev:i386 on my ubuntu system

I am using Ubuntu(12.04 LTS) x86_64 GNU/Linux. I have to setup my build environment on my Ubuntu system. While trying to instal the mesa-common-dev:i386 package, I am facing the following error.  sudo apt-get install mesa-common-dev:i386  Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  mesa-common-dev-lts-quantal : Conflicts: mesa-common-dev:i386 E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.   Please suggest ways to get rid of this.


How many elements of order $k$ are in $S_n$?

I need to find how many elements of order $k$ are in $S_n$ (where $k \leq n$).   So if $k$ is prime, it's easy: $k$ can't be the $\mathrm{lcm}$ of any integers besides itself and one's (which we're omitting). So the length of the cycle then must be $k$, and the number of elements with $k$-length cycle representation in $S_n$ is given by $$\dbinom{n}{k}(k-1)!$$ But it gets really tricky when $k$ is not a prime number... I need to consider every set of integers that can divide $k$, and then, for every set, I need to find how many elements of that form are there... Or maybe I'm missing something here?  I need help figuring that out. thanks in advanced!


How do I detect the file extension of a media file missing its file extension? I accidentally removed it. Self-Answer. The question has been asked already  and , but the questions have been closed.


A subset of the plane such that the distance between two elements is an integer

I know that this a likely a relatively elementary problem, but I am a freshman in High School that needs some help.   Let $A$ be an infinite subset of the plane with the property that the distance between any two elements in the set is an integer. Then $A$ is a subset of a line.


Are both these sentences correct, do they carry the same meaning? Can I place the adverb now in these positions? If not, why?   Tensions submerged earlier have come to the fore, now Tensions submerged earlier have now come to the fore


An exercise from Conway's Complex Analysis on an application of Schwarz's Lemma

Let $f$ be analytic in $B(0;1)$, and suppose that $|f(z)|\leq M$ for all $z\in B(0,1)$. If $f(z_{k})=0$ for $1\leq k \leq n$. Show that  $$|f(z)| \leq M\prod_{k=1}^{n}\frac{|z-z_{k}|}{|1-\bar{z_{k}}z|}$$ for $|z|<1$.  What I have done is proved the result when  $k=1$. That is if $f(z_{1})=0$, with $|f(z)|\leq M$ on $B(0;1)$, I have proved that  $$|f(z)|\leq M \frac{|z-z_{1}|}{|1-\bar{z_{1}}z|}$$ for $|z|<1$.  Now I tried to consider this function:$g:B(0;1)\to \mathbb{C}$  $$g(z)=\frac{f(z)}{\prod_{k=2}^{n}\frac{|z-z_{k}|}{|1-\bar{z_{k}}z|}}$$  Now $g$ has removable singularity at the points $z_{2}, z_{3},.... z_{n}$. So after removing these singularities we can consider $g$ to be analytic. Now wanted to invoke the result I have proved above since $g(z_{1})=0$. But couldn't do so because $g(z)$ might not be bounded by $M$ on $B(0;1)$. How can I work this problem out.   Thanks in advance!!


Does getting hit by a gravitational wave hurt?

Recently a paper in Nature about 2 black holes PG 1302-102 merging and causing a supernova 100 million times more powerful than common ones got me thinking.  How much damage do  gravitational waves do and how close would someone have to be to the source for it to hurt them? or would you not feel a thing from it?  (The link given in comments does not answer whether a gravitational wave would do any damage or whether you would feel it. It does not cover how big a collision would have to be and how far away you would have to be to feel it. What you would feel and how the wave would interact with your body to cause the feeling. There is a +100 bounty still on the question so I assume it has not been answered)


I plan to apply for a tourist visa for Hungary. It will be a Schengen visa. Out of a trip of 6 days, I plan to spend one night in Vienna (Austria) and the rest of the trip in Hungary.  The point of entry and exit will be Hungary.  I will be mentioning in the Schengen visa application form "Hungary and Austria" under the member states of destination.  If I opt for a single entry Hungary Schengen tourist visa, and if I leave for Vienna, will I be allowed back into Hungary? Or is it once you leave a country you cannot go back to it unless it is 2-times entry or multiple-entry visa.  Sorry for this detailed question, and may sound like a noob, but I wanted to check. I am an Indian national and will be travelling from India.


How to select category from Ebay dropdown list?

Hi I'm learning automation testing using Eclipse, Selenium Webdriver, and Java. I'm practicing. I'm trying to select the label 'Consumer Electronics' from the Ebay dropdown menu and search only in that category.  Below script is what I have.  It runs but what I notice is even though it will open the drop down and highlight 'Consumer Electronics', it actually is still searching in 'All Categories'. I'm using css to select 'Consumer Electronics'. What am I doing wrong?  Thanks.  import org.openqa.selenium.By;  import org.openqa.selenium.WebDriver;  import org.openqa.selenium.firefox.FirefoxDriver; public class EbayTest {  public static void main(String[] args) {     WebDriver driver = new FirefoxDriver();     driver.get("http://www.ebay.com/");     driver.findElement(By.name("_nkw")).sendKeys("Klipsch Status");     driver.findElement(By.name("_sacat")).click();     driver.findElement(By.cssSelector("option[value='293']")).click();     driver.findElement(By.xpath(".//*[@id='gh-btn']")).click();   }   }


I recently started using TMUX and found it great i mean for some reason i'm getting addicted to it. But also found 2 itsy bitsy nuisance like  1) While in TMUX if i have a lengthy command and have to jump between words using ctrl+left or ctrl+right arrow key it dont work and i have to travel across character by character    2) While using Vim in TMUX if i press Shift+down or Shift+up arrow key it doesn't work either ...  Any clues to solve them ....  Thanks in advance ...


I'm trying to find the best way to have a good insurance coverage when renting a car without a credit card or car insurance.  Here is my situation:   I've arrived 6 months ago in the US, and am currently building my credit score (now it is 656) I only have a one US credit card with a small ($300) line. I don't have any car and so no car insurance. I have a renter insurance but this does not cover anything when renting a vehicle.   My problem is every time I rent a car, I have to buy the CDW coverage - because I can't use my credit card with such a small credit line - and a liability insurance - because I don't have a car insurance. Last time this has tripled my rental price.  Do you know a way to get the same coverage car rental agencies offer without paying that much?  Also, I'd like to rent more with peep-to-peer (turo.com) or shared (zipcar) services. But from what I found, these companies offers minimum - state required - CDW coverage and no liability coverage.  Is there a way to buy a separated insurance coverage for this companies?  Or maybe it is not worth adding an insurance with these companies?


Electrons have spin 1/2, and as they are charged, they also have an associated magnetic moment, which can be measured by an electron beam splitting up in an inhomogeneous magnetic field or through the interaction of the electrons's magnetic moment with an external magnetic field in spectroscopic measurements.   On the other hand, a photon is neutral - how can one measure its spin if there's no magnetic moment? How do we know it has spin 1?


Find $\gcd(15-15i,7-i)$ in $\mathbb Z[i]$


Exponents and absolute value w/ complex numbers

A simple stupid question that I should already know the answer to:  Is this true: $\left|z^5\right| = \left|z\right|^5$ where z is a complex number with a non-zero imaginary component.  Thanks in advance.


Does the Powerful Build trait stack with the benefit to carrying capacity from the Totem Warrior Barbarian's Aspect of the Beast (Bear) feature?

Does the Goliath's carrying capacity increase from its Powerful Build feature stack with the Barbarian's carrying capacity doubling from its Bear Totem feature? For example, would those two together give a character with Strength 20 a carrying capacity of 1200 lbs?


How to automaticaly delete all cookies BUT cookies from specific white-listed websites in Chrome?

Firefox has the ability to make all cookies session only with exceptions, so you can choose some websites to store cookies and all the other cookies are deleted when you quit Firefox.  How can it be done in Google Chrome?


Show that the element $φ(a)\in G'$ has also order d!

EXERCISE:  Consider that $Φ:G\rightarrow G'$ homomorphism and $a\in G$ which has order d. Show that the element $φ(a)\in G'$ has also order d.  I am sorry i could't appose any attempt here but i don't even know how to start.I have just started to examine homomorphism and i have to clear my mind on them! It would be very helpful if someone can give me some hints or a thourough solution to my problem. I want to learn how i can work with these problems as i don't have many experience with these type of problems! Thanks in advance!


Sometimes I want to refer (using \ref) a \label from some other tex file. What is the right way to do it?  (It's, of course, possible to \include all files in one and then use \includeonly — but it breaks e.g. page and section numbering.)


Error 1962: no operating system found after installing 12.04 (Lenovo ThinkCentre)

I just installed a fresh copy of 12.04 on a new Lenovo ThinkCentere from a USB drive, and when I restarted after installation, the boot sequence didn't find the OS. Instead I got the 'no operating system found' error. When I started Ubuntu from the USB, I could see the HDD and that it had all the installed files. I just couldn't boot into it. It appeared that GRUB was not at the right place... or that there was something funky with the MBR. What is the simplest way to fix these sorts of errors?  Thank you,  EDIT: It appears the problem might have to do with UEFI and GRUB...


Google Fetch Returning 404 Pages That Are Tags With A Web Address Added To The End

I have a Wordpress site that I have set up with Google Fetch and I have been getting a bunch of crawl errors and it has started significantly hurting my Google ranking and site traffic even though it clearly says it shouldn't. The thing that doesn't make sense to me is that the 404 pages are not actually pages that exist. They are Tags and categories on my blog mixed with a site address from one of my other websites that is not actually associated with this blog at all. They are different domains/databases and everything so they shouldn't be connected.   The site was actually giving me the same problem a few weeks ago and I actually switched to a new theme because I noticed the one I had was out of date and thought maybe it was throwing a random error. But now, I have no idea why this would even happen or where Google would come up with this URL.   Here are a few examples:   www.whenlovegrows.com/tag/lactose-free-food/www.deannemroz.com www.whenlovegrows.com/tag/crescent-dogs/www.deannemroz.com www.whenlovegrows.com/tag/turkey-dogs/www.deannemroz.com   Basically any time I add a new tag it seems that Google is crawling it and then adding my other site's web address to the end and claiming it is a 404 page. Has anyone ever experienced anything like this? Is there some way I can help it?  Any insight would be much appreciated. I am at a loss as to how to fix this and it is becoming extremely frustrating since it is affecting my ranking.


Is it possible to create a turret like mesh like this using the bottom mesh and an array modifier? I want to be able to easily change the height of the shown shingle siding pattern. What I am basically looking for is some way to offset the mesh in a similar way to an array modifier, but with a small rotation value.    This is similar to  but has some differences. That question wasn't exactly what I wanted.


The hyphenation of this sentence is throwing me off, and I want to make sure I have them in the right place. Here's the sentence:  Each member of our team is mid- to senior-level.


I am a beginner of ordinals and I don't know any powerful techniques in it. I come across with a problem about the first uncountable ordinal like this.  Let $X$ be a set of uncountable cardinality. Using the Principle of Well Order we have a well ordering $\le$ on X(and $<$ means $\le$ but not euqual). By adding an element, which we denote by $∞$, and introducing the convention that $x < ∞$ for all $x ∈ X$, we will assume that X has a maximum with respect to $\le$.   We define $ω_1 = \text{min} \{ x ∈ X : \{y ∈ X : y < x \} \  \text{is uncountable}\} $  Clearly such a $ω_1$ exists. we define $0 = \text{min} \ X$ and intervels $[0,x], [x,y), (a,b]$ etc. in the usual sense.  Here are my questions:  (1)For any countable $A ⊂ [0, ω_1)$ there is an $x < ω_1$ so that $A ⊂ [0, x]$.(I don't know how to make use of the countability and uncountablity here)   (2)Equipped with the topology generated by open intervals,  $[0, ω_1]$ is compact.   (3)A famous application of the first uncountable ordinal is to find an example of a Borel measure (with respect to the topology in (2)) that is not Radon. So how to construct a finite Borel measure $µ$ on $[0, ω_1]$ which is not a Radon measure?  Any solutions or elementary references will be appreciated!


Exercise with exact sequence in an abelian category

Suppose (in an abelian category) to have two  exact sequences, $0\to A\xrightarrow f B\xrightarrow g C\to 0$ and $0\to A'\xrightarrow {f'} B'\xrightarrow {g'} C'\to 0$, and three arrows $a:A\to A'$, $b:B\to  B'$ and $c:C\to C'$ such that the two squares that arise are commutative. I must prove that if $a$ is an isomorphism, then$$\  \xleftarrow b B\xrightarrow g $$ is the pullback of $g'$ and $c$. I don't  know if it's useful,  but it should  be sufficient to prove the same statement with $A'=A$ and $a=1_A$; however I don't see how, given two maps $h:D\to B'$, $k:D\to C$ such that $g'h=ck$, one could define a map from $D$ to $B$.


Is it possible to get custom heads in Minecraft Bedrock

Before you say      Oh, this is a duplicate of insert thread here   I've already read some of them, they all say something about a component tag thats being added. Well while messing around with commands and typing "/give" the template says this   /give (player: target) (itemName: Item) [amount: int] [data: int] [components: json]   So since those questions were asked awhile go, did they add components, can we get custom heads now?


Can this intuition give a proof that an isometry $f:X \to X$ is surjective for compact metric space $X$?

A prelim problem asked to prove that if $X$ is a compact metric space, and $f:X \to X$ is an isometry (distance-preserving map) then $f$ is surjective. The official proof given used sequences/convergent subsequences and didn't appeal to my intuition. When I saw the problem, my immediate instinct was that an isometry should be "volume-preserving" as well, so the volume of $f(X)$ should be equal to the volume of $X$, which should mean surjectivity if $X$ is compact. The notion of "volume" I came up with was the minimum number of $\epsilon$-balls needed to cover $X$ for given $\epsilon > 0$. If $f$ were not surjective, then because $f$ is continuous this means there must be a point $y \in X$ and $\delta > 0$ so that the ball $B_\delta(y)$ is disjoint from $f(X)$. I wanted to choose $\epsilon$ in terms of $\delta$ and use the fact that an isometry carries $\epsilon$-balls to $\epsilon$-balls, and show that given a minimum-size cover of $X$ with $\epsilon$ balls, that a cover of $X$ with $\epsilon$-balls could be found with one fewer ball if $f(X) \cap B_\delta(y) = \emptyset$, giving a contradiction. Can someone see a way to make this intuition work?


If I evolve a Pikachu wearing a Party hat does the Raichu still wear the hat?

I've been catching Pikachus wear some spiffy looking hats on Pokemon Go. Some of them have party hats, while others have Santa hats. If I decide to evolve them into Raichus, do they get to keep their spiffy hats?


I'm trying to create a bowling animation and I want the ball to hit the pins. I already added the Rigid Body physics to the objects but can't get the ball to move.  Obviously I could just add keyframes but   that seems to interfere with the Rigid Body physics it doesn't look too realistic.   Is there a way to add some kind of motion to the ball?


Prove that if $n$ is composite, then $2^n$ is composite.   I tried the following:  $$2^n-1 = 2^n-1^b = (2-1)(2^{n-1}+2^{n-2} + \ldots + 1) = 2^{n-1}+2^{n-2} + \ldots + 1$$  This is the summation of $n$ numbers and $n$ is composite, hence  $2^n-1$ is composite.  Is this correct?


How to setup synctex with vim, pdflatex and an open-source PDF-viewer under Linux?

Inspired by the  I am curious how to actually setup and use forward/reverse (inverse) search with vim, pdflatex and an open-source PDF-viewer under Linux.  Btw, to give more details:  Forward search means that when you at some location in your text editor you issue some command and auto-magically the PDF-viewer jumps to the corresponding location in the typeset PDF. Perhaps even marks it somehow.  Reverse search means that issuing a command in your PDF-Viewer (e.g. clicking somewhere in the document), instructs the PDF-viewer to send a command to your editor that then jumps to the corresponding source location.  Edit: Currently I am not using any latex plugin in vim. And usually the LaTeX documents I edit with vim make use of \include or \input a lot.


I am trying to find a way to make a copy or duplicate a database, because I want to have a same database from MacOS computer to a Windows computer.   First, I want to use mysqldump but I can't. This related to my other  Output when I tried in Terminal:  So I tried to find another way, I go to /usr/local/mysql/ and attempt to make a copy like you can do with a .mdf file from Windows. But the data folder is restricted and I could not copy or open it.  So is there any alternative to make a copy of structures and its data from a database without mysqldump in MacOS?


How Do I Allow A Standard User to Install Programs?

Yes, I realize that defeats the purpose of standard user. But here is the situation. A friend of mine wants to set up time limits for his home schooled son, and his son needs to be a standard user in order to use Family Safety. But at the same time, his son (who I personally think is way too old to have time limits), needs to be able to update and install some of his games on his computer. So I guess it's just sort of "light" parental control (just something to help him focus and not get distracted with hours of gaming).  It is the basic version of Windows 8.1, so there is no Group Policy editor (gpedit.msc). However, I'm fairly good with computers and I figured out how to install it. But it doesn't have a lot of the features that the "real" gpedit seems to have. Here is an example of what is in my gpedit:


Mapping image's 4 corners to warped 4 corners...

I need to write a script for an illustration program which will take an image, allow the user to outline the rectangular face within the image, and then warp the image so that the rectangular face is actually rectangular to the viewing plane. See the image below.  I do not need to do the actual mapping, the program will do that for me if I give it a new rectangle to 'fit' the image to. Given the set of image corner coordinates (A, B, C and D) and a set of coordinates within the image (E, F, G and H), how do I determine the coordinates of the final transformed image (I, J, K and L)? As far as which rectangle to map E-H to in order to get I-L, let's call those M, N, O, and P. They will be known. I am only looking for help with the mathematics of the transformations. I can handle the programming part once I understand the maths.


I have asked several questions and received satisfactory answers. Is there a way to close out a question or does its status just stay open?


Script working manually but not in cron - not calculating var?

I am making a GFFS backup script for a school assignment but I've encountered some issues with it. It works like this:  /etc/backup/backup.sh PERIOD NUMBER    I have added the following lines in cron:  # m h  dom mon dow   command # Backup for fileserver: #daily: 5 times/week 0   23   *   *    1-5   /etc/backup/backup.sh daily $(date -d "-1 day" +%w) #weekly: 5 times/month 10  23   *   *    7     /etc/backup/backup.sh weekly $((($(date +%-d)-1)/7+1)) #monthly: 12 times/year 20  23   1   *    *     /etc/backup/backup.sh monthly $(date -d "-1 day" +%m) #yearly: each year 0   3    1   1    *     /etc/backup/backup.sh yearly $(date -d "-1 day" +%Y)   The calculations at the end is to know what previous backup to override. This works perfect when triggered manually but when triggered by cron it does something weird. i'm talking about the weekly backup entry. the calculation is supposed to give me the week number in the current month. i did 'grep CRON /var/log/syslog' and found this line:  Dec 19 14:33:01 BE-SV-04 CRON[5445]: (root) CMD (/etc/backup/backup.sh weekly $((($(date +)   It appears as if cron is not executing the calculation correctly. Any help?


When does $d$ mean a differential and when does it mean a derivative?

In a lot of books that I've read about calculus the authors will sometimes use the operator $d$ to mean a differential (an "infinitesimal" change), and sometimes they'll use it to mean an actual derivative. For example they'll write: $d(x_1x_2)=dx_1x_2+ x_1dx_2$ or they'll write $d x^2 = 2x$ when if they at least write it as $d x^2 = 2xdx$ it would make more sense as a derivative notation. When should one interpret this $d$ operator as a "small change" or conversely as a derivative? This mix-up gets even more confusing when manipulating differential equations. Thanks.


Running a cd command after user input in bash script will not change directory

I am trying to create a script whereby I have list of numerical test folders and want users to be able to cd into one of them after inputting the folder number.  The script correctly concatenates the input but on running the script it does not actually execute the cd command to the required directory?  It echo's to the screen but then just sits there as if awaiting a further prompt?  Can anyone advise what I am missing please? Script 'chgdir' is as below:  #!/bin/bash # # Script to move to test##dir (using input from user for dir number) echo "Enter test directory number as ## and hit Return"  read dirnum  echo "cd /home/John/test$dirnum""dir"   However on running the script outputs the command to the screen but does not 'cd' and just remains in ~/bin?  cd /home/John/test01dir  John@John-PC ~/bin  P.S I am completely new to bash scripting as you can tell so any help really appreciated.


When I Import Mysql from local server to web ser it is showng me error 1115 - Unknown character set: 'utf8mb4' in Creating wordpress wp_comment table CREATE TABLE IF NOT EXISTS  `wp_commentmeta` ( // // ) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 AUTO_INCREMENT =1;  #1115 - Unknown character set: 'utf8mb4'  My mysql version is Version information: 4.0.4, latest stable version: 4.4.10 (local version)  Version information: 4.0.10.7, latest stable version: 4.4.10( server version)  Please help me to solve out the error


I am reading a computer science paper and have come across some notation that I am unfamiliar with.  it says to consider functions from $\mathbb{R}^N$ to $]-\infty,\infty]$  is this the same as writing $(-\infty,\infty]$?  to use another example, is this true:  $x \in ]4,6] \iff 4 < x \leq 6$


How do you describe a word that has two, conflicting meanings depending on the context?

There is a single word that can be used to describe these, and I'm having trouble remembering it. I think it might be a '-nym' word or a '-phone', but I can't remember. An example would be handicap, which can be used to describe an advantage or a disadvantage, depending on the context.


I'm working on a custom report (Visual Force) to generate specific charts(using apex:radar chart) to our client. The problem is that we have to export the information to PDF format. Using the technique of include "renderAs" property on APEX tag, the PDF is generated but the chart isn't included on the PDF and the apex tags, used to show detailed information in a table, seem to be unconfigured. Have anyone ever faced this kind of problem?     Thank you!


What happens to engines when mixed with wrong gas

I wanted to know what would happen if I put regular gas in a 2 stroke engine and 2 stroke mix gas into a 4 stroke.


Upcoming badges/privileges feature request

When one opens badges tab, one can see:   Earned Unearned All   Most often All badges is too exhaustive and usually users dont read through everything.  Most often what users are interested in is what badge am I slotted to get.  Is it possible to display something called 'upcoming badges or privileges' like for example, a user with 10 rep would have upcoming badge/privelege at 15 (upvote) and user at 45 rep would have upcoming badge at 50 (discussing). Also the user with 900 edits would have an upcoming badge at 1001st edit (just an example). Most badges are just simple numeric calculations like rep > 30, number of edits > 100, etc. So it is definitely possible to display this without using any machine-learning algorithms.  How useful would it really be? That's up for discussion.


I want to go to Indonesia for 4 months to travel, I am a dutch citizen and getting a 60 days tourist visa in the Netherlands.  I am planning on booking a ticket to Singapore to visit universal studio's and obtain another 60 days tourist visa there.  Will they give out the 60 days tourist visa if I already have a 60 days tourist visa from a couple days back?


Where is the fork() on the fork bomb :(){ :|: & };:?

Warning: Running this command in most shells will result in a broken system that will need a forced shutdown to fix  I understand the recursive function :(){ :|: & };: and what it does. But I don't know where is the fork system call. I'm not sure, but I suspect in the pipe |.


There is an Standard Object is Account.  I need to not allowed a duplicate Account Name Object.  I know the Custom Object to handled but I need to Standard Object.


I'm was using PHP eregi function, but I get the notice that it is deprecated. Here's my code:  !eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))   Therefore I am trying to replace the function with the preg_match, but seems that I am unable to get the correct pattern for the preg_match, as I get error with the following code:  !preg_match("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_POST['email']))   Here's the error I get from above code:  Warning: preg_match(): No ending delimiter '^' found in   Thanks for any help.


Centennial and a half? SemiBiCentennial?

Considering that "semicentennial" refers to 50 years and "centennial" refers to 100 years and "bicentennial" refers to 200 years, what similar word is appropriate for 150 years?


I can not install most of the software as not all of the software has a button to install. is this an error? or dependency problem if so how do i fix it?


Is there a single generic term to refer, either collectively or arbitrarily, to both sunrises and sunsets?  I'm looking for something that could be used in the same vein as twilight can be used (formally or informally) to refer to both the pre-sunrise dawn period and the post-sunset dusk period, without specifying which.  I'm aware of the concept of a  within the photography and cinematography communities, but I'm looking for something which refers more to the specific astronomical event, as a particular instant in time, while still being agnostic to the direction the sun is going.   Edit: To clarify, I'd like something that could describe, even informally, any or all of:   Instants when the sun is exactly at the horizon, or 0°, Periods when the sun is near the horizon on either side, e.g., –2° to +2°, or Periods when the sun is near the horizon, but strictly above it, e.g., 0° to +2°.   I am aware of the , but unfortunately none of them meets any of these.


Why is the ring of integers in $\mathbb{Q}(\sqrt{m}) = \mathbb{Z}[\frac{1+\sqrt{m}}{2}]$ when $m \equiv 1\pmod{4}$?

I'm doing a master's thesis about quadratic fields and I know that for squarefree m, the ring of integers for the quadratic field $\mathbb{Q}(\sqrt{m})$ is $\mathbb{Z}[\sqrt{m}]$ if $m \equiv 2,3 \pmod{4}$ and $\mathbb{Z}[\frac{1 + \sqrt{m}}{2}]$ if $m \equiv 1 \pmod{4}$. My question is this: Why is the ring of integers in $\mathbb{Q}(\sqrt{m}) = \mathbb{Z}[\frac{1+\sqrt{m}}{2}]$ when $m \equiv 1 \pmod{4}$ instead of just $\mathbb{Z}[\sqrt{m}]$?   EDIT: I have seen some of your posts and I know that it has to do with integral closure. My confusion comes when I see that the minimal polynomial of $3 + 6\sqrt{5}$ is $x^2 -6x -171$ even though $3 + 6\sqrt{5}$ does not seem to be an element of $\mathbb{Z}[\frac{1+\sqrt{5}}{2}]$. What I'm looking for is an element of $\mathbb{Z}[\sqrt{m}]$ which is not a quadratic integer. i.e. one whose minimal polynomial has a non-integer coefficient.


Android app crashing when selecting load indicator in the notifications

When you touch the loading spinner in the notification ribbon (on the right) when it is loading, the app just crashes on Android. Version 1.0.31.


I was reading a few articles about how people saved their working files and it got me thinking about my own method. I used to save everything as a PSD, but recently I have started saving my working files as TIFF's. I use Windows, so I don't know if it's different for Apple users but with a PSD, all I can see is that "PSD" icon. But a TIFF file shows up as a normal image (that I can edit), so I found it really great when I have a lot of working files for one project and could just quickly preview it without opening the program.  That being said, I am no expert in which method is better. And I know a lot of people here are pretty seasoned users in all things Adobe, so I was wondering what your two cent on the whole topic is?   Is there really any difference to saving it as a PSD or TIFF? Is there something I should specifically know about saving my files as a TIFF rather than a PSD?


Say I have a framework with characters that can run and walk and of course, stand still.  Am I right in thinking that animation blending is the process of smoothly transitioning between these by generating dynamic animations at runtime?  If so, what is the basic theory of how this works, and how would I implement it?


So my party wanted to try a campaign book so we got the Lost Mine of Phandelver.   Problem is they are blood thirsty idiots and all they care about is killing goblins for xp. This lead to them letting Sildar die so they could make sure no goblins escaped.  At this point they have just had the redbrand encounter in town.   At first I though "oh well they screwed themselves". Sildar is dead, they don't get the reward for rescuing him but the more I read the more he seems to appear in the story. It appears that he is a big part of the campaign and a lot of material is left out without him present.   Seems silly to me that so much of the book is skipped because of an early decision.   Basically I don't know if I should just accept I'm only getting 2/3 of a campaign or if everything he would have done should be shifted to other NPC. If I do this though it makes his death meaningless.


List of communities with base css updates completed

By January 2016, All communities have been updated     The design team has been rolling out design updates to sites as part of network-wide update to a new base css framework. The updates allow us to:   Use .svg sprites for retina displays  Fix layout bugs globally  More easily add new features to all of our sites in the future  Synthesize healthy, nutritive rations to feed employees from a small, battery-powered, toaster-sized device. Roll out the new (2015) Profile/Activity pages    As sites get updated, the designer who did the work posts on the local Meta, so the community knows the change is live, and can provide any relevant feedback.  They'll update this page too.  Done           (Apple)                                              On Deck  (I'm told this is a well-known "sports" metaphor.)  The order of this list is random (it is not the order in which the new design will be rolled out):   Looks like we are all done now...   Not Planned  Not scheduled for the redesign or the new user page:


Trying to boot from USB, but the screen stays on gnu grub version 2.02

How do I fix this so that i get to use the GUI desktop.  I want to run ubuntu 17 from the disk.


Where is the equivalent of Toggle Fullscreen Area (Alt+F10) in Blender v2.8?

Where is the equivalent of Blender 2.79's Toggle Fullscreen Area (Alt+F10)  in Blender v2.8?  Note: I apologize that my original question contained erroneous information. I do NOT need to know how to Toggle Window Fullscreen as that is located in the Window menu. Sorry for the confusion.