body1
stringlengths
20
4.1k
body2
stringlengths
23
4.09k
I am wondering how to read and write files to an SFTP server in Python. I tried searching for other Stackoverflow posts, but they all suggested using outdated modules like pysftp, or other modules that rely on pysftp. Does anyone know any SFTP Modules for Python?
I'm working on a simple tool that transfers files to a hard-coded location with the password also hard-coded. I'm a python novice, but thanks to ftplib, it was easy: import ftplib info= ('someuser', 'password') #hard-coded def putfile(file, site, dir, user=(), verbose=True): """ upload a file by ftp to a site/directory login hard-coded, binary transfer """ if verbose: print 'Uploading', file local = open(file, 'rb') remote = ftplib.FTP(site) remote.login(*user) remote.cwd(dir) remote.storbinary('STOR ' + file, local, 1024) remote.quit() local.close() if verbose: print 'Upload done.' if __name__ == '__main__': site = 'somewhere.com' #hard-coded dir = './uploads/' #hard-coded import sys, getpass putfile(sys.argv[1], site, dir, user=info) The problem is that I can't find any library that supports sFTP. What's the normal way to do something like this securely? Edit: Thanks to the answers here, I've gotten it working with Paramiko and this was the syntax. import paramiko host = "THEHOST.com" #hard-coded port = 22 transport = paramiko.Transport((host, port)) password = "THEPASSWORD" #hard-coded username = "THEUSERNAME" #hard-coded transport.connect(username = username, password = password) sftp = paramiko.SFTPClient.from_transport(transport) import sys path = './THETARGETDIRECTORY/' + sys.argv[1] #hard-coded localpath = sys.argv[1] sftp.put(localpath, path) sftp.close() transport.close() print 'Upload done.' Thanks again!
I just noticed that addition. Searching for posts by author does not need the brackets [], and can be clearer as to what "1234" is. A new user may think 1234 is a username example. Tag guideline can be clearer, for example: [tag-name].
There's a new popup helping you with searching, but one of the hints is wrong: Searching for will return answers as well as questions, and it's not the number of (up/down)votes which counts, it's the score. Better would be "posts with a score of 3 or higher" or "questions and answers with a score of 3 or higher".
I'm trying to add the attribute $area. I made a intersection and Tot_aera isn't the good one, so I want to add a new. I made that : from PyQt4.QtCore import * try: if ind==-1: if caps & QgsVectorDataProvider.AddAttributes: res=provider.addAttributes( [ QgsField(nameattr,QVariant.Double) ] ) except: print "FALSE" So I have a new attribute but NULL. So my question : How put "$area" in nameattr?
I'm trying to compute the areas of the new layer I created by intersecting two layers. How can I write a script that does something equivalent to clicking Export/Add geometry columns?
I have Ubuntu 14.04. After having updated the system to kernel 3.13.0-49-generic, I re-booted and now everything freezes! I cannot log in. (Keyboard and mouse do not work as well) I found this line in my kern.log when I first rebooted after kernel update: segfault at 0 ip 00007f2d1fabd0c8 sp 00007f2d02ef7500 error 6 in libcontent.so[7f2d1f178000+141f000] This error appeared once in the first time I wanted to reboot after updating the kernel. I came across . And I uninstalled my chrome browser and rebooted again. But no luck. Anything else that I need to check?
The latest kernel is causing problems with my sound, which worked fine with an older version. As I have only Ubuntu installed, Grub is not getting displayed while booting. How can I manually choose my kernel version while booting?
I have noticed a regrettable trend toward using the short "e" when pronouncing "the" before words beginning with a vowel: "thuh Earth"; thuh older one". This used to be a cultural symbol (e.g., old movies) of illiteracy and still sounds so to me. Is there any specific recommendation on this other than taste and pleasing the ear?
I read that the definite article is pronounced differently depending on the word that follows it. Which is the exact pronunciation of the?
Let $V$ be a finite dimensional vector space. I'm trying to see if any subspace $A$ of $V^*$ must be an annihilator of some subspace in $U$ of $V$. I.e. I'm trying to see if $A=U^0$ for some subspace $U\subseteq V$. So first I let $A$ be a subspace of $V^*$. Then I denote the set of all $v\in V$ such that $\phi(v)=0$ for every $\phi\in A$ by $U$. Lemma: $U$ is a subspace. Proof: Clearly $0\in U$. Let $u,v \in U$ and $\lambda \in \Bbb F$. Then for every $\phi \in A$ $$\phi(u+\lambda v) = \phi(u) + \lambda\phi(v) = 0 \implies u+\lambda v\in U$$ So $U$ is indeed a subspace of $V$. $\square$ Because $V$ is finite dimensional, so is $V^*$ and thus $A$. Let $\{\phi_1, \dots, \phi_k\}$ be a basis for $A$. Let $u\in U$. Then $\phi_i(u)=0$ by definition. Thus $\phi_i\in U^0$ for all $i=1,\dots k$. So $A\subseteq U^0$. So the only part that I still need is to show the reverse inclusion or that $\dim A = \dim U^0$. But I can't figure out how to do it. Here are my problems with the duplicate question (or more specifically its answers): user218931 uses the double dual which is introduced in a later exercise. Rafael Deiga uses $\dim(\operatorname{null}\phi_1 \cap \cdots \cap \operatorname{null}\phi_m) = \dim V-m$ which is proven in a later exercise. Aweygan uses some functional analysis theorem called the Hahn-Banach theorem. So all of the answers use tools that I don't currently have in my mathematical toolkit. And yes, I realize that there's nothing theoretically wrong with using a result from later in the problem set as long as the proof of that result doesn't rely on this one, but I feel like Axler wouldn't have written out the exercises so that you needed to do that. So to me it feels sorta like cheating to do them out of order. Does anyone see a way to finish this problem without using the above three results?
Exercise 26 page 115 of Linear Algebra Done Right by Sheldon Axler is the following: Suppose $V$ is finite-dimensional and $\Gamma$ is a subspace of $V'$. Show that $$\Gamma=\{v\in V:\varphi(v)=0\text{ for every }\varphi\in\Gamma\}^0$$ where $V'$ is the dual space of $V$ and, for any $S\subset V$, $S^0$ is the annihilator of $S$. Attempt: Let $S=\{v\in V:\varphi(v)=0\text{ for every }\varphi\in\Gamma\}$. Clearly, $\Gamma\subset S^0$.I tried to show that $S^0\subset\Gamma$ using some bases of $V$ and $V'$, but I failed. I also tried to show that $\dim{\Gamma}=\dim{V}-\dim{S}=\dim{S^°}$. If $s_1,\dots,s_n$ is a basis of $S$ and $s_1',\dots,s_n'$ its dual, and if $\psi_1,\dots,\psi_p$ is a basis of $\Gamma$, it's easy to see that $s_1',\dots,s_n',\psi_1,\dots,\psi_p$ is a linearly independent list of $V'$. Also, if you extend $s_1,\dots,s_n$ to a basis $s_1,\dots,s_n,v_1,\dots,v_m$ of $V$, then its dual $s_1',\dots,s_n',v_1',\dots,v_m'$ is a basis of $V'$; in fact $S^0=\text{span}\{v_1',\dots,v_m'\}$. Two remarkable facts:$$\forall i\in[1,m],\,\exists j\in[1,p],\,\psi_j(v_i)\neq0$$ because $v_j\notin S$, and $$\forall i\in[1,p],\,\exists j\in[1,m],\,\psi_i(v_j)\neq 0$$ because $\psi_i\neq 0$; in other words the matrix of the inclusion map from $\Gamma$ to $V'$ with respect to the basis of $\Gamma$ and the dual base of the chosen basis of $V$ has no $0$ row nor $0$ column. But this doesn't seem to provide a way to prove that any linear comination of the $(v_i')_{1\le i\le m}$ is a linear combination of the elements of the basis of $\Gamma$. I believe that $v_1,\dots, v_m$ should be chosen more carefuly but I fail to. Could you please help me? Thank you in advance!
I'm confuse with thousand numerals. Especially for 4 distinct digits and 3 distinct digits. For example: How to pronounce 1987? a) one thousand nine hundred eighty seven b) nineteen "and" eighty seven c) nineteen eighty seven d) All correct Is it always allowed to make a partition on a number so we can speak it easily? So, if i have 6 digits number, i can divide it 2 pieces or 3 pieces?. Example: 111222. I will pronounce it as a) Eleven twelve twenty two, or b) one hundred eleven two hundred twenty two Those sound weird to be honest. Or maybe that rule only holds for thousand numerals? Second question if i have 3 distinct digits on thousand numerals. Example: 2003 Which one is true between: a) two thousand three b) two thousand "and" three c) twenty "o" (Read: oh) three, i heard this from facebook video. d) All true? Please explain to me with easy language, because my English isn't good enough. Thanks in advance.
In German, we often use "Elfhundert" (literally, "eleven hundred") for 1100 or "neunzehnhundert" ("nineteen hundred") for 1900; but is this correct in English?
If I am permanently turned into an with and then use the Change Shape trait to become a humanoid again, can I buy new weapons and use them? Can I use my class abilities and my spells like before?
If you are a level 20 Wizard who is True Polymorphed into an Ancient Brass Dragon, can you then use the Dragon's Change Shape ability to turn back into a level 20 Wizard, maintaining all your class abilities, but also gaining the dragon's hit points, and various other statistics listed in the text of Change Shape?
Let $f:\mathbb R \rightarrow \mathbb R$ have derivatives of all orders. Suppose that $a<b$ and that $f(a) = f(b) = f'(a) = f'(b) = 0$. Prove that $f'''(c) = 0$ for some $c \in (a,b)$ $f(a) = f(b)$ and since f is continuous and differentiable, we can use Rolle's Theorem. $\exists c \in (a,b)$ such that $f'(c) = 0$ So surely, differentiating twice more, $f'''(c) = 0$ for some $c \in (a,b)$? Or am I misunderstanding something? Why would the question ask for $f'''$ ? Thanks in advance.
Let $f\colon \mathbb{R} \to \mathbb{R}$ have derivatives of all orders. Suppose that $a < b$ and that $f(a)=f(b)=f'(a)=f'(b) =0$. Prove that $f'''(c) = 0$ for some $c$ in $(a,b)$.
some times in typescript when i pass a variable as a parameter in a function and modify it in the function the original variable also modify can any one explain to me what's happening let mybrew :any[] = [ { id:5, materials:[-1,-1,-1,-1], price:16 }, ] console.log(mybrew); function bestBrew(abrow:any[]){ abrow.forEach( e=>{ for (let i = 0; i < e.materials.length; i++) { e.materials[0] += e.materials[i]; } } ) } bestBrew(mybrew); console.log(mybrew); output [ { id: 5, materials: [ -1, -1, -1, -1 ], price: 16 } ] [ { id: 5, materials: [ -5, -1, -1, -1 ], price: 16 } ]
The primitive types (number, string, etc.) are passed by value, but objects are unknown, because they can be both passed-by-value (in case we consider that a variable holding an object is in fact a reference to the object) and passed-by-reference (when we consider that the variable to the object holds the object itself). Although it doesn't really matter at the end, I want to know what is the correct way to present the arguments passing conventions. Is there an excerpt from JavaScript specification, which defines what should be the semantics regarding this?
Can someone please explain why the graph is linear from the start to the surface?
Would the effect of gravity on me change if I were to dig a very deep hole and stand in it? If so, how would it change? Am I more likely to be pulled downwards, or pulled towards the edges of the hole? If there would be no change, why not?
I'm running Redhat 6.6 and experienced a power failure over the holiday weekend. The / partition is showing 100% full. How do I check to see which files are actually causing the overusage? [root@sms1 ~]# df -H Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_sms1-lv_root 53G 51G 0 100% / tmpfs 34G 0 34G 0% /dev/shm
When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time before any results are returned. Also, this is usually successful in highlighting the worst offender but I've often found myself resorting to du without the sort in more subtle cases and then had to trawl through the output. I'd prefer a command line solution which relies on standard Linux commands since I have to administer quite a few systems and installing new software is a hassle (especially when out of disk space!)
Some keywords defined with the otherkeywords key are not formatted as expected when breaklines is set to true. Here is my MWE: \documentclass[12pt, a4paper]{article} \usepackage{listings} \lstset{ basicstyle=\itshape\ttfamily, keywordstyle=\upshape, } \lstdefinestyle{syntax}{ language=[ANSI]C, otherkeywords={(,)}, breaklines=true, } \begin{document} \begin{lstlisting}[style=syntax] const ( int | float ) text \end{lstlisting} \end{document} The result looks something like this (but nicely monospaced...): const ( int | float ) text If I set breaklines=false, it looks as expected: const ( int | float ) text Am I missing something obvious? As for versions, "This is pdfTeX, Version 3.1415926-2.4-1.40.13 (MiKTeX 2.9)" on Windows (at work, they force me...).
As the title says, the option breaklines=true seems to have an undesired interaction when using literate; in the following example the closing parenthesis doesn't get colorized \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstset{ literate= {)}{{\textcolor{red}{)}}}{1} {(}{{\textcolor{red}{(}}}{1}, breaklines=true, } \begin{document} \begin{lstlisting} () \end{lstlisting} \end{document} Commenting out the breaklines=true option produces the desired result. What is producing this odd behaviour and how can it be prevented?
if we are following some other base other than 10, say 8 and we represent a number its value being 43 ( if this were a decimal then the number would be prime ). but when we convert it in decimals ( as it were not a decimal in the first place ) its value is 35. now the problem arises to me that if we change the base of numbers even primes are no longer primes and the so called special numbers lose their specialty.
we all know that primes are special numbers, but let me ask you one thing that 'if we change the base of our widely used decimal to something else, lets say to octal, would the distribution of primes also change; or it is irrespective of the number system we use ?' also if more basically we adopt binary number system which numbers would we call primes and how would sieve work ? ask me if you are still not getting my question
I am looking for a way to have IE9 open source code in a custom application that I choose by default such as Notepad, Notepad2, or even Word if I want. Note: This is for View Source, not changing what application I use to edit an HTML file. Edit: I do not believe this qualifies as a complete duplicate. The other question specifically asks about IE8. I removed all IE version tags except IE9 and also addressed Windows 7. Since that other question is nearly four years old, it is possible that the asker was dealing with XP or Vista although it wasn't mentioned. Additionally, I could not find that registry key even through a search.
How can I set Internet Explorer 8 the old style "view source" to open with Notepad? (I set HTML editing to Notepad, but I want the Right-Click - View source to open in notepad)
It's not possible to install anything on my Ubuntu 18.04 LTS. When I run sudo apt-get upgrade I get: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: wine32:i386 : Depends: libwine:i386 (= 3.0-1ubuntu1) but it is not installed wine64 : Depends: libwine (= 3.0-1ubuntu1) but it is not installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). When I run sudo apt --fix-broken install I get the error-messages after a while: Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: fonts-wine libwine libwine:i386 The following NEW packages will be installed: fonts-wine libwine libwine:i386 0 upgraded, 3 newly installed, 0 to remove and 10 not upgraded. 15 not fully installed or removed. Need to get 0 B/39,9 MB of archives. After this operation, 375 MB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 373690 files and directories currently installed.) Preparing to unpack .../libwine_3.0-1ubuntu1_amd64.deb ... Unpacking libwine:amd64 (3.0-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libwine_3.0-1ubuntu1_amd64.deb (--unpack): trying to overwrite '/usr/lib/x86_64-linux-gnu/wine/acledit.dll.so', which is also in package wine1.8-amd64 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Preparing to unpack .../libwine_3.0-1ubuntu1_i386.deb ... Unpacking libwine:i386 (3.0-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libwine_3.0-1ubuntu1_i386.deb (--unpack): trying to overwrite '/usr/lib/i386-linux-gnu/wine/acledit.dll.so', which is also in package wine1.8-i386:i386 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Preparing to unpack .../fonts-wine_3.0-1ubuntu1_all.deb ... Unpacking fonts-wine (3.0-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/fonts-wine_3.0-1ubuntu1_all.deb (--unpack): trying to overwrite '/usr/share/wine/fonts/coue1255.fon', which is also in package wine1.8 1:1.8.0-0ubuntu1~ubuntu15.10.1~ppa1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/libwine_3.0-1ubuntu1_amd64.deb /var/cache/apt/archives/libwine_3.0-1ubuntu1_i386.deb /var/cache/apt/archives/fonts-wine_3.0-1ubuntu1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) So something about wine.... Do you have any suggestions?
For example: $ sudo apt-get install curl Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not going to be installed groovy : Depends: libjline-java but it is not going to be installed rhino : Depends: libjline-java but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). I get the same or similar errors when I attempt to install clojure1.3, leiningen, and several other packages. When I try the suggestion made in the error message, this is what happens: $ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: diffstat linux-headers-3.2.0-26-generic linux-headers-3.2.0-26 dh-apparmor dkms html2text libmail-sendmail-perl libsys-hostname-long-perl Use 'apt-get autoremove' to remove them. The following extra packages will be installed: libjline-java Suggested packages: libjline-java-doc The following NEW packages will be installed: libjline-java 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 23 not fully installed or removed. Need to get 0 B/72.0 kB of archives. After this operation, 129 kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 226243 files and directories currently installed.) Unpacking libjline-java (from .../libjline-java_1.0-1_all.deb) ... dpkg: error processing /var/cache/apt/archives/libjline-java_1.0-1_all.deb (--unpack): trying to overwrite '/usr/share/java/jline.jar', which is also in package scala 2.9.2-400 Errors were encountered while processing: /var/cache/apt/archives/libjline-java_1.0-1_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: bsh : Depends: libjline-java but it is not installed groovy : Depends: libjline-java but it is not installed rhino : Depends: libjline-java but it is not installed E: Unmet dependencies. Try using -f.
When you set up a new game in Civ V, it appears that there must always be at least one human player. I was wondering if it was possible to set up a game with no human players - the got me interested to see what would happen if the same thing were attempted in Civ V, and the easiest way to do so would be to allow a game with all-CPU players to run by itself whilst I go to the pub*, and later observe the results. Eternal world peace or Gandhipocalypse? Is it possible to set up this kind of game? I will accept answers that require mods, as I don't believe it's possible with the vanilla game. *(best place to be when casually simulating armageddon)
No human players, just AI and have the ability to scroll around and see what the AIs are doing with the turn management being also automated, so the AIs just end turn when they are done. Oh, and all of this hopefully without any sort of fog of war. This way, I can see how the AI manages resources and units and maybe learn a thing or two as a civ newb.
I downloaded ubuntu-15.10-desktop-amd64. I have never programmed before and I am trying to learn linux. somewhere I saw that I can learn linux on ubuntu (to be honest I don't get that even). anyways after installing I can't seem to open the program.. after I open what i installed, it asks where I want to copy the program or something? please help. thanks
I would like to see a full how-to guide on how to install Ubuntu.
I've just installed Ubuntu Server 16.04.3. During the installing I kept getting the message: select and install software failed I have no idea why. I'm not an expert so I had no idea on how to find any reason why that kept happening. Anyway, the OS seemed to have installed just fine so I figured to just install OpenSSH through command line. First I tried: sudo apt install openssh-server. That resulted in the request of the CD. So I modified etc/apt/sources.list and commented out the cdrom entry as advised here: Of course I did sudo apt-get update after. Which strangly enough returned Reading package lists... Done straight after. After that I tried installing OpenSSH again, which resulted in: Unable to locate package openssh-server. So perhaps there was something wrong with my internet connection, but ifconfig gave me the network interface with the ipaddress I expected. So I think that's working fine. Next I found some advise to run: sudo rm var/lib/apt/lists/* and do sudo apt-get update after. Tried this, but no effect. I have a feeling my installation simply has no repositories listed at all and therefor can't find any packages of course. Unfortunetely, if this is the case, I have no idea on how to fix it. Any advise would be welcome!
There are now errors when updating and I cannot install most software due to a corrupted /etc/apt/sources.list file. Is there a copy I can download to replace it? The file would be for Ubuntu 12.04 (Final Beta) in the United States.
A resposible german executive body (Kultusministerkonferenz) that certain doctorates from the EU grant the right to use the title 'Dr.': Inhaber von in einem wissenschaftlichen Promotionsverfahren erworbenen Doktorgraden, die in [meiner Uni] erworben wurden, können anstelle der im Herkunftsland zugelassenen oder nachweislich allgemein üblichen Abkürzung [...] wahlweise die Abkürzung „Dr.“ [...] führen. Dies gilt nicht für Doktorgrade, die ohne Promotionsstudien und -verfahren vergeben werden (so genannte Berufsdoktorate) und für Doktorgrade, die nach den rechtlichen Regelungen des Herkunftslandes nicht der dritten Ebene der Bologna-Klassifikation der Studienabschlüsse zugeordnet sind. excluding non third cycle qualifications (Bolonga EHEA term) and doctorates that do not require some not further defined sort of studies ("doctoral" studies) with professional doctorates given as example. However, a UK doctor of clinical psychology (DClinPsy) is usually considered to a PhD. So, am I allowed to use Dr. MyName in Germany? And will I be after Brexit?
I'm moving to Germany in a couple of weeks and I'll be setting up as a freelancer. I'm just curious about my title though. I got my PhD in the UK in 2015, it states "Doctor of Philosophy" on the certificate, as usual, but my research was in Computer Science, specifically experimental application of Computer Science techniques to Engineering problems (in fact, my work was actually funded by an automobile company based in Germany whom I visited quite regularly). I'm no longer in academia, but last summer I was briefly at Hannover University, where somebody suggested that I would be eligible for the Dr.-Ing. title instead of the plain Dr. title. Fact is, I would like the Dr.-Ing. given the technical nature of my freelance work, but I am not sure whether I am legally allowed to use it. Can anybody advise me?
If I make an object like a cloud and put it far away, it disappears in the render. Is there any tricks to fix this?
This is meant to solve this problem once and for all. What is every reason an object isn't showing up in a render or viewport in when using the cycles render engine?
I create a page within my custom module with the following code: function mymodule_menu(){ $items['product-detail'] = array( 'title' => t('Product detail'), 'page callback' => '_mymodule_product_detail', 'variables' => array('var1' => "Hello World Attempt #1"), 'type' => MENU_CALLBACK, 'access callback' => TRUE, ); function _mymodule_product_detail(){ // global $var1 = "Hello Workd Attempt #3"; return array('variables' => array("var1" => "Hello World Attempt #2") , '#markup' => '<p>This is some markup content displayed correctly in the page</p>'); } // function It renders the template, sets the title and display the markup (content of the page). However, I would like to fill some variables defined in the page.tpl.php and I don't know how to send these parameters, I tried with the variables key in the code but nothing is written. I want to display the message "Hello World Attempt #?" in the place in page.tpl.php where I have the code <?php if(isset($var1)) print $var1; ?> I have been able to reach my goal with the following code, but using GLOBAL, which is not adequate: function mymodule_preprocess_page(&$variables) { global $var1; if(isset($var1) && $var1 != "") $variables["var1"] = $var1; } The global $var1 is set to $var1 = "HELLO WORLD Attempt #3" in the _mymodule_product_detail() function above (lines commented).
Unifying the questions below, I want to check if the problem and solution is correct: Problem: I want to create a page with hook_menu from my custom module. This page will have a different template to the other pages. Some of the dynamic content of the page will be retrieved by my custom module. Solution: the code below, with these convoluted steps: hook_menu with callback function callback function returns empty array. Based on path, hook_preprocess_page retrieves data and send to page. theme suggestion is set, based on path. What I don't understand is why 3. and 4. cannot be accessed directly from callback function, avoiding to guess what page we are accesing via path. Code: function hook_menu(){ $items['product-detail'] = array( 'page callback' => '_hook_product_detail', 'type' => MENU_CALLBACK, 'access callback' => TRUE, ); function _hook_product_detail(){ return array("#markup" => ""); } // function function hook_preprocess_page(&$variables) { $cp = current_path(); $cp_arr = explode("/", $cp); if($cp_arr[0] == "product-detail"){ $variables['theme_hook_suggestion'] = 'page__product_detail'; // ... get data to populate var1, used in page--product_detail.tpl.php $variables["var1"] = $var1; } // if } Questions unified: and
I tried an in-memory Linux distro and I was shocked by how fast it was. Is there is a way to always cache in memory some (user specified) software like the file explorer so that you can benefit of that speed without having to preload the whole system in the memory (unfeasible if it's your main desktop because there would be not enough memory)
My PC has 8 Gb of ram. Is there any way to make ubuntu use most of it? I mean rarely drop caches and keep once opened programms in ram longer, preload apps on boot, etc.
When somebody touches you in some sensitive areas of your body, like armpits, "it will make you laugh in some kind of way". When you want to tell somebody that you are not going to touch them in that way, you can't say "I won't make you laugh again". What is the proper expression to use instead ?
To make someone laugh, we sometime rub his underarm with our fingers in a way that makes him feel restless and then he starts laughing. My question is: What is the specific vocabulary in the English language for the aforesaid rubbing?
I came to interesting problem when dealing with Java primitive type float I try to subtract 1.0 from Float.MAX_VALUE, strangely it returns the value equals Float.MAX_VALUE. Here is an example: float floatMaxValue = Float.MAX_VALUE; float subtractedMaxValue = Float.MAX_VALUE - 1.0f; System.out.println(floatMaxValue); System.out.println(subtractedMaxValue); Assert.assertTrue(floatMaxValue == subtractedMaxValue); // return true even false expected Could someone explain me why this happens? I guess is some magic with floating point.
Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen?
I am writing my masters thesis. My instructor told me not to use "I, we, us, his, her, he, she" in the thesis anywhere. Are all these words prohibited in thesis writing? I am writing my thesis in cloud security (computer science), specifically homomorphic encryption in the cloud.
Are there written or unwritten rules for avoiding the use of first-person while writing research papers? I was advised at the beginning of my grad school to avoid use of first person - but I still don't know why I should do this. I have seen that, at many places, authors refer to themselves are "the authors" and not "we". At the same time, I have also seen use of first-person to a good extent. Do these things differ in different Journals and Conferences (and in different disciplines as well - mine happens to be CS)?
The Cooper Station is able to sustain a healthy atmosphere and crops. The fundamental motivation to get humanity out of Earth in Interstellar is the blight induced hunger. Moreover, in the movie they show a NASA lab where the corn is being infected with blight and they seem to have no way to stop it. It seems to me that whatever technology they used to achieve this result in Cooper Station would effectively resolve the plot. Do we know how they achieved a healthy atmosphere and crops and why this couldn't be done on Earth?
In Interstellar, there is a Blight destroying all the world's crops. If Plan A involves launching a space colony, presumably full of crops, etc., how could they avoid bringing the Blight with them? At the end of the film we see that they've actually created space colonies. How did they manage to launch and populate them without bringing the Blight with them?
I am selling my laptop with ubuntu OS. How can I make sure that I have deleted all my stuff from the laptop so the new use cannot access any of my stuff. I want to keep ubuntu OS though. Also I am asking I'm not very good with technology and any help will be appreciated!
I have an old laptop that is running Ubuntu. Now I want to give away this laptop, but I want to remove all private data. So what should I remove? I don't want to format the whole system, because the OS will be still in use by the new owner.
An exercise in Real and Complex analysis (exercise 18, page 195,chapter 9) Show that if a function $f$ on the real line $\mathbb{R}$ satisfies \begin{equation*} f(x+y)=f(x)+f(y) \end{equation*} and if $f$ possesses Lebesgue measure, then $f$ is continuous. I can't do this question. Any advice or hints would be appreciated. Thank you in advance.
A function $f:\Bbb R \to \Bbb R$ is additive and Lebesgue measurable. Prove that $f$ is continuous. I know that on $\Bbb Q$, $f$ comes out to be linear. So, if $f$ is to be continuous then $f$ must be linear in $\Bbb R$. But, I'm stuck here. If anyone can please help. Thanks in advance.
I am wondering about the safe or correct way to pass a $variable to a query. I am new to PHP thats why I am asking such beginner question. Here is the example one and two, which one is correct and safer because of symbols? Example one: //here is the line I am asking about. The $identification $query = "SELECT * FROM `members` WHERE `username` = '$identification' LIMIT 1"; Example two: //here is the line I am asking about. The $identification $query = "SELECT * FROM `members` WHERE `username` = '" . $identification . "' LIMIT 1"; I don't need answers about PHP 4 or 5 or PDO. I just need to know what is correct: This '" . $identification . "' Or this '$identification'
If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the user can input something like value'); DROP TABLE table;--, and the query becomes: INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--') What can be done to prevent this from happening?
I try to delete an item from recyclerview and from slqlite data base. These are the activities: 1.The database DatabaseHandler.java public void deleteTask(long position){ SQLiteDatabase db = this.getWritableDatabase(); db.delete(TABLE_TASKS, KEY_TASK_ID + "=" + position, null); db.close(); } The onBindViewHolder from TaskAdapter TaskAdapter.java @Override public void onBindViewHolder(@NonNull ViewHolder holder, final int position) { final Task stringTask = tasksList.get(position); holder.taskText.setText(stringTask.getTaskName()); holder.dateText.setText(stringTask.getTaskDate()); holder.id = stringTask.getID(); holder.deleteButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View view){ tasksList.remove(position); notifyItemRemoved(position); dth.deleteTask(stringTask.getID()); } }); } This is the error: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.example.android.todolistapp.DatabaseHandler.deleteTask(long)' on a null object reference at com.example.android.todolistapp.TaskAdapter$1.onClick(TaskAdapter.java:51) at android.view.View.performClick(View.java:6935) at android.widget.TextView.performClick(TextView.java:12738) at android.view.View$PerformClick.run(View.java:26211) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:7000) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
I'm using the auto hide feature in W8.1, but even using it still leaves a thin amount of the taskbar, presumably to allow you to see pinned icons and such, which really bugs me, is there any way to hide it completely?
My desktop look is empty so all I have is a nice wallpaper. My Windows taskbar has the "Taskbar Appearance" setting to "Auto-hide the taskbar". Although hidden, it leaves a thin top layer so you can still see it a bit, and where the pinned shortcuts are. Is it possible to totally have it hidden without a trace? This is a serious question. It really bugs m.
Can one modify a column's datatype using a very specific conversion format? For example, when converting from datetime to varchar I'd like to use the yyyy-MM-dd hh:mm:ss format, not the system default which is 109 I believe. Is there any way to achieve this without creating a temporary column?
When you attempt to CAST a DATETIME as VARCHAR in SQL Server, the default date formatting style is a fairly inaccurate date format that loses the precision of both seconds and milliseconds. For example: SELECT CAST(GETDATE() AS VARCHAR) -- May 8 2015 9:13AM Is there a way to change the default style used? For example, I would like to use style 126 so that the results look more like this: SELECT CAST(GETDATE() AS VARCHAR) -- 2015-05-08T09:14:19.437 If possible, I would like to only change the default style for the current process or statement; however, I am also willing to change it at the database or schema level. I should note: I am aware of CONVERT and the ability to manually specify the style. However, in this particular situation, I am unable to use CONVERT. I am CASTing a SQL_VARIANT parameter to a scalar-valued function as VARCHAR.
A couple of questions of a similar nature: We all know that -- prints an endash, while --- prints an emdash. But - is not an active character, right? So how does TeX process -- and --- and make them different from three ordinary dashes? `` prints a “. But ` is not an active character, right? So similarly to above, how is this processed? ' is an active character, so I guess no issue there. The character ` plus some character token prints the character number (or whatever the right term is) for that token, as seen e.g. in catcode assignments. What kind of construction is this? Can I change this to some other character? Is there a way to print ` on TeX.SX? Typing ``` doesn’t work.
How does LaTeX implement the differences between the dashes? -, --, and --- all print different dashes, but - is not an active character: it has catcode 12, the same as digits like 2.
I am having trouble making Bluetooth working on my Dell XPS 13 9343, Kernel 3.19.0-50-generic. The output of lspci is 00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09) 00:04.0 Signal processing controller: Intel Corporation Broadwell-U Camarillo Device (rev 09) 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03) 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3) 00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3) 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03) 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03) 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03) 00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03) 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5249 PCI Express Card Reader (rev 01) 02:00.0 Network controller: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter (rev 03) The output of lsusb is Bus 003 Device 002: ID 8087:8001 Intel Corp. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 0bda:5682 Realtek Semiconductor Corp. Bus 001 Device 004: ID 04f3:20d0 Elan Microelectronics Corp. Bus 001 Device 003: ID 0a5c:216f Broadcom Corp. BCM20702A0 Bluetooth Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub The output of dmesg | egrep -i 'firm|blue' is [ 2.208427] Bluetooth: hci0: BCM: patching hci_ver=06 hci_rev=1000 lmp_ver=06 lmp_subver=220e [ 4.264423] Bluetooth: hci0 command 0x0a0a tx timeout [ 12.270801] Bluetooth: hci0: BCM: patch command 0a0a failed (-110) [ 14.272434] Bluetooth: hci0 command 0x1001 tx timeout [ 22.276858] Bluetooth: hci0: HCI_OP_READ_LOCAL_VERSION failed (-110) [ 29.373920] Bluetooth: hci0: BCM: patching hci_ver=06 hci_rev=1000 lmp_ver=06 lmp_subver=220e [ 31.429340] Bluetooth: hci0 command 0x0a0a tx timeout [ 39.431829] Bluetooth: hci0: BCM: patch command 0a0a failed (-110) [ 41.516546] Bluetooth: hci0 command 0x1001 tx timeout [ 49.518964] Bluetooth: hci0: HCI_OP_READ_LOCAL_VERSION failed (-110) Dell XPS 13 9343 Ultrabook - Intel Core i7 5500 Broadwell, 13.3 "LED touchscreen 3200x1800 QHD +, RAM 8GB, Intel HD Graphics 5500, SSD 256 gigabytes, WiFi, Bluetooth 4.0, USB 3.0, backlit keyboard, Windows 8.1 64-bit MUI (2016) Any idea or any solution pls? Now is lsusb [ 1.883011] Bluetooth: Core ver 2.20 [ 1.883030] Bluetooth: HCI device and connection manager initialized [ 1.883034] Bluetooth: HCI socket layer initialized [ 1.883036] Bluetooth: L2CAP socket layer initialized [ 1.883041] Bluetooth: SCO socket layer initialized [ 1.896582] Bluetooth: RFCOMM TTY layer initialized [ 1.896588] Bluetooth: RFCOMM socket layer initialized [ 1.896593] Bluetooth: RFCOMM ver 1.11 [ 1.945389] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 1.945392] Bluetooth: BNEP filters: protocol multicast [ 1.945396] Bluetooth: BNEP socket layer initialized [ 2.027456] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-0a5c-216f.hcd failed with error -2 [ 2.027462] Bluetooth: hci0: BCM: patch brcm/BCM20702A0-0a5c-216f.hcd not found
Bluetooth is on but can't find or be found by any other devices. Output of sudo service bluetooth status: ● bluetooth.service - Bluetooth service Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled) Active: active (running) since ხუთ 2015-06-04 22:33:18 GET; 13min ago Main PID: 26678 (bluetoothd) CGroup: /system.slice/bluetooth.service └─26678 /usr/sbin/bluetoothd -n ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled Output of lsusb: Bus 003 Device 005: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0 How can I fix it?
I have a function: $$\text{sinc}(x) = \frac{\sin(x)}{x}$$ and the example says that: $\text{sinc}(0) = 1$, How is it true? I know that $\lim\limits_{x \to 0} \frac{\sin(x)}{x} = 1$, But the graph of the function $\text{sinc}(x)$ shows that it's continuous at $x = 0$ and that doesn't make sense.
How can one prove the statement $$\lim_{x\to 0}\frac{\sin x}x=1$$ without using the Taylor series of $\sin$, $\cos$ and $\tan$? Best would be a geometrical solution. This is homework. In my math class, we are about to prove that $\sin$ is continuous. We found out, that proving the above statement is enough for proving the continuity of $\sin$, but I can't find out how. Any help is appreciated.
In creating a final exam for my course, I would like to use problems from a textbook that I did not assign to the course. Do I need to reference the source on the final exam paper or is it not necessary?
This question was raised by Dave Clarke . When a textbook author approaches a topic in a novel way or presents a particularly interesting example, I believe that a teacher who creates lecture notes using this novel approach or interesting example would be doing the right thing to cite the originator of the approach or the example. Similarly, whenever I copy a clever (and clearly unique) problem from a textbook and give it as a question in an exam or an assignment, I try my best to indicate (in the exam or assignment paper itself) the source of the original problem. Does anyone know of any written document indicating whether or not it is considered unethical to copy a published problem and put it in an exam or an assignment without citing it?
$X$ is a compact metric space. Let $A \subseteq X$ be a compact set. Let $\{C_n\} \in A$ be a Cauchy sequence. Because it is Cauchy, $\{C_n\}$ must converge somewhere (although it doesn't need to converge in $A$). Let the limit point for $\{C_n\}$ be denoted by $C$. We also have that $A$ is compact $\implies A$ is closed and bounded $\implies$ $C \in A$ (because closed sets include the limit points for all its convergent sequences) $\implies$ A is complete.
I need to prove that every compact metric space is complete. I think I need to use the following two facts: A set $K$ is compact if and only if every collection $\mathcal{F}$ of closed subsets with finite intersection property has $\bigcap\{F:F\in\mathcal{F}\}\neq\emptyset$. A metric space $(X,d)$ is complete if and only if for any sequence $\{F_n\}$ of non-empty closed sets with $F_1\supset F_2\supset\cdots$ and $\text{diam}~F_n\rightarrow0$, $\bigcap_{n=1}^{\infty}F_n$ contains a single point. I do not know how to arrive at my result that every compact metric space is complete. Any help? Thanks in advance.
I have installed Ubuntu 18.04 on VirtualBox and the display is not covering the whole screen of the guest OS.
I tried many ways to make a bigger screen in VirtualBox because I do not like the small size of the guest window? Is there is a way to make it big?
If, in vacuum, light is emitted from a source, would it accelerate really really fast until it reaches the well accepted speed of light $c$? If so, how small an interval does it take for it to do so?
Photons travel at the fastest speed in our universe, the speed of light. Do photons have acceleration?
we want to test the network on all Linux machines after all machines and switches configured to MTU=9000 the reason for that is because inconsistent MTU configuration can cause huge problem so in our hadoop cluster we have ~50 machines and also switches that configured also what are the Linux CLI that can approve that all linux / switches configured with MTU=9000 as all know ifconfig -a , show the MTU value but we want to test it on each machine that MTU is real working
We have some Red Hat servers, cluster servers for a mabri cluster. A few questions: Which Linux command prints the current MTU value? We have not yet configured MTU in the ifcfg file) What is the default MTU value (assuming that we installed the Red Hat machine from an ISO image) In which cases do we need to use high MTU values and what is the maximum value? What is the formula to calculate the MTU?
I have a problem with this question is $(\mathbb{R},*)$, when $a*b=ab+a+b$ a group? If not, can you skip any element $a \in\mathbb{R} $ in that way, that $(\mathbb{R}$\{a}$,*)$ is a group? I can prove, that $(\mathbb{R},*)$ is a binary operation, associative and it's neutral element is $0$. But I couldn't find an inverse element. And I have no idea which element I can skip to get the other group. I tried to skip $a=0$ but it wasn't a good tip. Thank you for your time.
So basically this proof centers around proving that (S,*) is a group, as it's quite easy to see that it's abelian as both addition and multiplication are commutative. My issue is finding an identity element, other than 0. Because if 0 is the identity element, then this group won't have inverses. The set explicitly excludes -1, which I found to be its identity element, which makes going about proving that this is a group mighty difficult.
We are unable to solve the below error in Ubuntu16.04: Permission denied (publickey,password). We have tried . What else can we try?
I just installed Ubuntu 14.04 and LAMP on that. Then, I wanted to configure my server, so tried out tutorial. When I give the command: ssh root@localhost I get : Permission denied, please try again. I have logged in as root user through the command : sudo -i I also tried the same, by logging in through: sudo -s I use the same password as that I used to log in as user, but still am getting the same error message. Could someone help me out here? PS: I looked into but didn't seem to work for me.
i need to execute the following commands AFTER login. sudo hdparm -y /dev/disk/by-uuid/443AFBAD7FE50945 sudo hdparm -y /dev/disk/by-uuid/7ABB49654B799D40 (trying to edit rc.local does not work nor does using hdparm.conf because as soon as I log in the disks start up again). I have tried numerous things like bash files and autossh entries in the startup applications with no luck because sudo is involved. i have tried the rc.local, the .bashrc, the autossh in startup, hdparm.conf. none of these options have worked
I have made a sound based installation using OpenFrameworks and Puredata that runs on Ubuntu 12.10. I need the installation to run continuously for days together. When the power goes off, i need the apps to start automatically on reboot. My problem is, I have got everything installed in the root account because that is how few of them would run. So i need the system to run those programs as root without asking for a password. Somehow it sounds very silly to me but I guess there must be a way to do this. Any help/pointers are appreciated. Thank you
There needs to be a way to identify questions that have been delete voted on the deleted votes page of the 10k moderator tools. It would be nice to see less of the text in the red box: I get it that each question needs to be viewed so it can be voted on. I have 5 votes a day, there are currently 100's of questions in the queue that need to be viewed, I can't remember from day to day which questions I've voted on and which ones I haven't. I am much less likely to actually use the modrator tools to clean up extremely bad questions if it is difficult to do, and I'm not the only one, as the review queue keeps going up from day to day. Could we get an indicator in the delete votes 10k moderator tools to indicate if a question has already been voted on? Something that looks like the image below? That says "Reviewed" or "Voted". A check mark would even suffice. The queues in some of the sites are quite large, I think this is partially because it is hard to vote to delete questions. At the end of the day, there needs to be some way for us who use the moderator tools to know what has been voted on and see less of the red box. The duplicate mark is for a question that is six years old and nothing has been done. And mine is different because I made a suggestion of actual ways this could be implemented. There have been multiple requests for variations of something like this, an there have been zero comments from any of the powers that be that can actually change this to say yea or nay. I would like -- in the least that this be addressed in some way
The close and delete tabs of the can get fairly cluttered, even here on MSO; I imagine it's ten times worse on SO. Could the page be modified to indicate which question(s) you've already voted to close or delete?
Why does this code cause a NullPointerException? ArrayList<OrdersAttr> ls = new ArrayList<OrdersAttr>(); OrdersAttr myOrder = null; String connString = ConnStr.connString; String connString2 = ConnStr.connString2; Connection conn = null; Connection conn2 = null; Statement stmnt = null; Statement stmnt2 = null; String selectString = null; String insertString = null; String insertString2 = null; String updateString = null; int orderId = 0; conn = DriverManager.getConnection(connString); stmnt = conn.createStatement(); selectString = "SELECT A.ORDERID AS ORDERID FROM APP.ORDERS a, APP.CUSTOMER b WHERE ORDERSTATUS = 'NEW ORDER' AND " + " branchid=" + branchid + "and a.CUSTEMAIL = b.EMAIL"; ResultSet rs = stmnt.executeQuery(selectString); while (rs.next()) { orderId = rs.getInt("ORDERID"); myOrder = new OrdersAttr(); myOrder.id = rs.getInt("ORDERID"); myOrder.date = rs.getString("datetime"); myOrder.orderitems = rs.getString("orderitems"); myOrder.orderquantity = rs.getString("orderquantity"); myOrder.ordersizes = rs.getString("ordersizes"); myOrder.address = rs.getString("floor_f") + " " + rs.getString("building_f") + " " + rs.getString("street_f") + " " + rs.getString("area_subdivision_district_f") + " " + rs.getString("city_f"); myOrder.name = rs.getString("firstname") + " " + rs.getString("lastname"); myOrder.status = rs.getString("ORDERSTATUS"); myOrder.contact = rs.getString("CONTACT"); conn2 = DriverManager.getConnection(connString2); stmnt2 = conn2.createStatement(); insertString = "INSERT INTO APP.ORDERS VALUES ('" + myOrder.id + "','" + myOrder.date + "','" + myOrder.orderitems + "','" + myOrder.orderquantity + "','" + myOrder.ordersizes + "','" + myOrder.status + "')"; insertString2 = "INSERT INTO APP.CUSTOMER VALUES ('" + myOrder.id + "','" + myOrder.name + "','" + myOrder.address + "','" + myOrder.contact + "')"; stmnt2.executeUpdate(insertString); stmnt2.executeUpdate(insertString2); updateString = "UPDATE APP.ORDERS SET ORDERSTATUS = 'SENT TO LOCAL BRANCH'"; stmnt.executeUpdate(updateString); } The UPDATE String is executed and it updates the database, but why does it return a NullPointerException and doesn't execute the INSERT statements? Could someone please help me with this problem.
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Let $\alpha$, $\beta$, $\gamma$ be angles of acute triangle. How to prove that $(\tan(\frac{\alpha}{2}))^2 + (\tan(\frac{\beta}{2}))^2 + (\tan(\frac{\gamma}{2}))^2 \ge 1$? Does left side of equation have bigger than 1 bound?
We have an acute triangle with angles $\alpha, \beta, \gamma$ and we need to tell whether the following inequality is true for all such triangles: $$(\tan(\frac{\alpha}{2}))^2+(\tan(\frac{\beta}{2}))^2+(\tan(\frac{\gamma}{2}))^2\geq1$$ We are also asked if $1%$ is the greatest number, for which it is true. I'm having huge problems when trying to solve such optimization calculus problems. I think we must somehow find triangle for which we can prove, that the upper sum is minimum, than evaluate it and prove that it is equal to $1$. As with most optimization problems, it turns out that if $\alpha=\beta=\gamma=\frac{\pi}{3}$, then the sum evaluates to $1$. But how to prove that this is infimum of this sum?
I wish to customize the background color and the weight and color of the border using titlesec (not using mdframed). %-----------------------------------------------------------------------------------% \documentclass[11pt,a4paper,reqno,fleqn,xcolor=x11names]{book} % %---------------------------------------------------------------------------------- % % \usepackage{amsthm,amsmath,amsfonts} % \usepackage{titlesec} % \usepackage[dotinlabels]{titletoc} % more advanced but essential here \usepackage[english]{babel} % \titleformat{\section}[frame] % {\bfseries\itshape\fontsize{12.8}{14}\selectfont} {}{8pt} {\;\;\thesection\hskip 0.7em} \begin{document} \chapter{This is Chapter No 1} \section{A titletec section in a frame - too tall and not shaded} \end{document}
%---------------------------------------------------------------------------------------------------------- % \documentclass[11pt,a4paper,reqno,fleqn,xcolor=x11names]{book} % %---------------------------------------------------------------------------------------------------------- % % \usepackage{amsthm,amsmath,amsfonts} % \usepackage{titlesec} % \usepackage[dotinlabels]{titletoc} % more advanced but essential here \usepackage[english]{babel} % \titleformat{\section}[frame] % {\bfseries\itshape\fontsize{12.8}{14}\selectfont} {}{8pt} {\;\;\thesection\hskip 0.7em} \begin{document} \chapter{This is Chapter No 1} \section{A titlesec section in a frame - too tall and not shaded} \end{document}
Let $f:[0,1]\rightarrow [0,1]$ be a continuous function and $x_1\in [0,1]$. If $x_{n+1}= \frac{\sum_{i=1}^n f(x_i)}{n}$ then prove or disprove that $\{x_n\}$ is convergent. I have proved If $f$ is constant then the limit exists. $\{(n-1)x_n\}$ is monotonic. By compactness $\{x_n\}$ has limit points But I am unable to show whether the sequence is monotonic or not and it has one limit point or more than one limit points. I come to know that a similar question was discussed in the following link But some steps in that solution are not clear to me
I have tried a little bit which as follows- Since $f(x_n)\in[0,1]$, $\{f(x_n)\}$ has a convergent subsequence say $y_n=f(x_{r_n})\ \forall n\in\Bbb{N}$ Let, $\lim y_n=l\implies \lim \frac{y_1+y_2+\cdots+y_n}{n}=l\implies \lim \frac{f(x_{r_1})+f(x_{r_2})+\cdots+f(x_{r_n})}{n}=l$ But I am getting no idea to proceed and prove the convergence of $\{x_n\}$. I have also tried to prove the sequence to be cauchy which goes- $x_{m+1}-x_{n+1}={\sum_{i=1}^m f(x_i)\over m}-{\sum_{i=1}^n f(x_i)\over n}\le {\sum_{i=1}^m f(x_i)\over n}-{\sum_{i=1}^n f(x_i)\over n}$ (since $m\ge n)$ $\implies |x_{m+1}-x_{n+1}|\le \frac{|f(x_m)|+|f(x_{m-1})+\cdots+|f(x_{n+1})|}{n}\le\frac{m-n}{n}$ (since $f([0,1])\subseteq [0,1])$ Now, what will I get if I tend $m,n\to\infty$? But I need to do something more in the 2nd case since I have nowhere used the continuity of $f$. Can anybody give an idea to prove it? Thanks for assistance in advance.
Even on a 5D ISO noise is a challenge. I use PS raw photoshop and Adobe Bridge. I want to minimise loss of image quality.
On the weekend I attended a wedding and took my camera along. I was not the official photographer -- just a guest. My camera is a Canon 5D Mark III, and I was using an EF 50mm f/1.4 USM lens. At the evening reception, which was a dark room with disco lights etc, I was going round taking lots of photographs of all the party people and in order that I didn't have to worry about my camera settings, I shot in Aperture Priority mode, with auto-ISO, and f/number of mostly around f/2 - f/4. I used AI Servo mode so that it would track people dancing etc. Of course, I also shot in RAW. It is a testament to the 5D Mark III that it was able to find focus in such challenging conditions!! However in my stupidity, I didn't change the maximum auto-ISO setting, and most of the shots were taken at a whopping ISO 25,600 -- the camera seeming to prefer to increase the ISO rather than slow the shutter speed to get an exposure. The shutter speed in most shots is probably faster than it really needed to be - around 1/125-1/250th... For a 50mm lens I probably only really needed 1/80th-1/125th to freeze the action? This has resulted in some incredibly noisy and grainy shots, lacking in the detail I'm used to. Note that I don't think it's a focus issue - the focus is fine, and the shots aren't blurry either. Just noisy. I imported all the photos into Lightroom 4, and have been playing with the Noise Reduction and Sharpening sliders, but in order to really get the noise levels to a normal or acceptable level, I've had to push that NR slider all the way up to 80 (choke!!). Normally I'd only apply at most about 40, even in a low-light photo! This much NR has meant that the detail in peoples faces is overly softened, and skin tones are looking almost plasticky. So my question is, what would you say is the best way to "recover" these photos and balance noise reduction against sharpening, or to reduce the noise in another way? I do also have Photoshop Elements 11 at my disposal, though I'm not the best with it. However, if there is another way in which I could use that to achieve the same thing, I'd also appreciate some pointers.
I'm running a command like: parallel --spreadstdin --line-buffered 'some_command 2> `mktemp --tmpdir /tmp/stderr`' | do_something The trick is that parallel creates a lot of processes and they all get a stderr file, most of which is uninteresting because they're empty. How can I make my shell generate a stderr file only if any standard error output actually happened?
How can I rewrite this command to only email if there is output from the mailq | grep? mailq | egrep 'rejected|refused' -A 5 -B 5 | mail -s 'dd' email@email Is this even possible on one line? See for a more general case than sending email.
I am trying to use OpenGL on my Ubuntu 12.04 LTS. I installed OpenGL with the following commands: sudo apt-get install g++ cmake sudo apt-get install freeglut3 freeglut3-dev sudo apt-get install binutils-gold I wrote a simple example in C++ and compiled it with g++ -lGL -lglut main.cpp -o test and then I tested it using ./test. A window opened but it was black and I didn't show anything. So, I installed my nvidia driver using the following commands: sudo apt-add-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update sudo apt-get upgrade sudo apt-get install nvidia-current sudo apt-get install nvidia-settings sudo reboot And now when I try to run again the program it gives me the 2 errors: Xlib: extension "GLX" missing on display ":0". freeglut (./test): OpenGL GLX extension not supported by display ':0' What could be the problem? Also, here is the output of the lspci | grep VGA command: 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1)
I had everything working fine, I use a number of openGL graphics software, example pymol, mgltools, vmd, ballview, rasmol etc. All of these give the error: Xlib: extension "GLX" missing on display ":0". and fail to initialize. I have an i7 asus k53s with nvidia gforce I need these to do my work. I tried the umblebee fix, and just removing all nvidia drivers, or rolling back. I do not know why these were working then stopped, but did notice a new nvidia console in the mu which I assume was from enabling the automatic nvidia feeds, etc? I also played with the xorg, however have no clue what settings are valid. In addition, the display is 50% of the time not recognized now? It just gives a geeic 640x480 and I have to login and out 10 times to get it to return to a normal setting. When I try and set it manual, there is no other setting allowed from the settings menus, and the terminal changes just get re set every time I log out?
On , the "show 1 more comment" link appears. Clicking it makes it disappear and shows no comments. Normally I'd chalk this off to a comment being deleted around the same time, except it persists across page reloads (animated GIF): Note: There's a fragment, #39113657, in that URL. I verified that wasn't related to the issue. It's in the GIF but I continued to see the issue after removing it. So, yeah. Weird.
I noticed (10k only) that there is "show 2 more comments": Clicking it has no effect. Viewing the raw server response, it simply returns the existing comments. This is most likely the result of , which somehow fails to update the comments count on the spammer's posts, in case they wrote comments. (And yes, I am sure those two comments have been written by that user, as I've seen them before the account was deleted.) Can this please be fixed? Not sure if it matters, but as can be seen in the screenshot, the question was deleted before the account has been destroyed.
I have a problem using jQuery Validation forms where I want to put a Integer input only. For example, <div class="form-group"> <label for="interval" >Interval</label> <input name="interval" type="text" class="form-control" id="interval" </div> $("validation-form").validate({ rules: { 'interval': { number: true, required: true, }, It works well, but it is a Float type because it can also take something like 5.6, but I want to have Integer type. The output should be: Integer type is required. How can I do that?
Is there a quick way to set an HTML text input (<input type=text />) to only allow numeric keystrokes (plus '.')?
So I was taught that I should use apostrophes when something possesses something else, but I'm not sure about the use of it's in the following situation: ...and they found their way to a castle. It's walls were made of pure gold. My question is, should I use It's because the apostrophe means that the castle has possession of the wall, or should I not because it's is generally understood to be a concatenation of "it is"? Or perhaps I should use Its' walls?
Probably one of the most frequent grammar mistakes in the English language is: The dog sat on it's mat. Since spelling checkers don't catch it, and it is even logical, since you would correctly write: The dog sat on Fluffy's mat. What is the best way to explain to a learner of English how to choose between it's and its?
Backticked code blocks inside spoilers are almost completely illegible on beta sites:
It doesn't reproduce on Meta, but it will on any beta site. To see an example, check out : Edit: I noticed that on SciFi, English, Area 51, and Electrical Engineering (at least - those are the only ones I've tried), spoilers with monospace will show the monospace part whether or not the mouse is hovering over the block (though the normal font will continue to operate normally). On those sites, however, it hasn't yet joined the Dark Side.
I'm looking for something very specific I read once about unit test reporting for product owners. I'm pretty sure it was in one of the Robert C. Martin series of books and I thought it was in Mike Cohn's book Agile Estimating and Planning, although I wasn't able to find it again. Would a question about this be on-topic on Stack Exchange? Which would be the best site to ask on?
Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.
You lose 10% of your pixels every time you die. Is there anyway to put your pixels away so that when you die you don't lose as many?
I die all the time. My pixel balance hovers around zero as a result. I'm trying to save up for armor but my nonstop deaths are making that difficult. Is there anywhere I can store my pixels so that when I die, I won't lose a bunch of them?
Oftentimes I run into small bash scripts that use this sort of syntax in if statements: some command > /dev/null 2>&1 What is the purpose of outputting to /dev/null like that, and what does the 2>&1 mean? It always seems to work but I'd like to know what it's doing.
I would like a brief explanation of the following command line: grep -i 'abc' content 2>/dev/null
I have a debian system. It has 8GB memory. When I do top it shows 7.9 GB memory used and rest free. I add up the memory usage of all the programs running from top and they hardly sum up to around 50 MB. So, where is rest of the memory being used? Can I have a better detailed info of the memory usage? What is a better way to check the memory usage?
This is a about how Unix operating systems report memory usage. Similar Questions: I have production server that is running Debian 6.0.6 Squeeze #uname -a Linux debsrv 2.6.32-5-xen-amd64 #1 SMP Sun Sep 23 13:49:30 UTC 2012 x86_64 GNU/Linux Every day cron executes backup script as root: #crontab -e 0 5 * * * /root/sites_backup.sh > /dev/null 2>&1 #nano /root/sites_backup.sh #!/bin/bash str=`date +%Y-%m-%d-%H-%M-%S` tar pzcf /home/backups/sites/mysite-$str.tar.gz /var/sites/mysite/public_html/www mysqldump -u mysite -pmypass mysite | gzip -9 > /home/backups/sites/mysite-$str.sql.gz cd /home/backups/sites/ sha512sum mysite-$str* > /home/backups/sites/mysite-$str.tar.gz.DIGESTS cd ~ Everything works perfectly, but I notice that Munin's memory graph shows increase of cache and buffers after backup. Then I just download backup files and delete them. After deletion Munin's memory graph returns cache and buffers to the state that was before backup. Here's Munin graph: Externally hosted image was a dead link.
E:\>javac Cconv.java Note: Cconv.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Here Cconv.java is my main class. These are two errors on command screen.
For example: javac Foo.java Note: Foo.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.
Is this a Bash bug? $ mkdir test && cd test && echo "a" > "some.file" test$ echo '*' * test$ TEST=$(echo '*') test$ echo $TEST some.file Why is the second output the resolution of * into (all) filenames instead of just a literal * output? Looks like a bug in Bash? Tried on Ubuntu 18.04, bash version 4.4.19(1)-release. Expect it will be the same on other OS'es.
Or, an introductory guide to robust filename handling and other string passing in shell scripts. I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names). I encountered a problem such as the following: I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators). What is going on and how do I fix it?
I have the following code block. /// <summary> /// AMethod produces this XML: /// <A><B></B></A> /// </summary> public void AMethod() { } When I do this IntelliSense does not print the XML, if I hover over AMethod. How do I get it to print the XML?
I know this maybe a basic question but I just can't seem to find the answer anywhere. I have a class like this Table<T> {} then I have some code that uses the above class that I would like to comment I would like to be able to do something like: /// <summary> /// blah blah blah Table<String> /// </summary> But I can't use the angle bracket in the comment as it thinks it's a tag and when the help shows up it just has an error about no end tag for . How do I show generic classes in comments in Visual Studio.
I have a Canon 4000D and I would like to take some long exposure photography. It only allows shutter speeds up to 30 seconds and I would prefer to have the ability to take shots that are exposed for 1 minute or more. Is it possible? I'm OK with using 3rd party software like CHDK if I have to.
Is it possible to adjust the Canon Rebel T5's exposure length beyond 30 seconds, and if so how? Thanks in advance.
Let me start with a simpler version of my actual problem. Say I have a partition $\mathbb{N} = \cup_k I_k$ where the $I_k$ are disjoint, and an absolutely convergent series $\sum_n x_n$ in $\mathbb{R}^d$. I want to show the identity $\sum_n x_n = \sum_k \sum_{i\in I_k} x_i$. In this simple situation I can show this using Fubini's theorem, but actually I'm interested in the situation of Banach space valued series that converge unconditionally, so I'd appreciate a more elementary approach that is better suited for generalization.
I'm reading that summability and unconditional convergence are the same. (At least if the index set is countable, so unconditional convergence makes sense.) Then unconditional convergence is nothing else than convergence of the net of all rearranged partial sums. Thus uniqueness of the limit becomes fairly easy as the limit of every net in a Hausdorff space is unique. But the usual proof deals with separating functionals on Banach spaces, which is a much more serious technique. So I think there must be a hook in my reasoning. Can somebody resolve this issue? Thanks a lot! Best Regards, Freeze_S
So I recently broke my monitor and now small part of its bottom is blinking and not displaying correctly. Anyway how could I disable the broken pixels - so that they are not powered? I'm using IPS235. I read the manual and it seems that the only properties that could help me was positioning the picture when in VGA mode (from the monitor menu). But it seems that this option still gives power to the broken pixels and even more - even if we ignore those pixels (maybe place some tape over them so that they are not visible) - I can't move the picture enough that it's not overlapping with them. I'm running various OSes but currently I'm messing with linux. I have nvidia dirvers for my GPU but I don't know - is there some way I could move the picture displayed to the monitor so that it doesn't overlap with the broken pixels? I think that the only possible solution to this problem is on the software side because it's seems that the firmware on the monitor is too basic. So any ideas?
Water was sprayed on my 19" monitor and damaged some parts of it. I need a solution that will let me specify the screen area to be used by Windows, as if it was a smaller monitor. Its default menu doesn't have this option.
This is a not duplicate; I am asking that this "feature" be removed. This Q now has more votes than , thus making this one more valuable. Pinging the name @nick, in chat, also pings all users whose names start with "nick" (like my own). Not only do I get pings while in the chatroom, I also receive notifications on my phone about new pings. In the case of "nick", and room 17 (Javascript), 3 users will get pinged: nick NickAlexeev NickDugger (me) There are other cases of this happening as well, and sometimes with names not as common as above. The importance of this feature was before there was auto-completion, which even mobile now has: Typing in the first few letters and using autocompletion will spell out their full username. This should be encouraged, and this short-name matching should be removed. tldr; Pinging users with a shortened version of their name causes irritation and should be removed.
So apparently there's a feature (undocumented or otherwise) that allows you to ping people based on the first three letters of their name. I guess I can sort of see what went through its developer's mind but it causes a problem. My name is Oli. It's short for Oliver. In the Ask Ubuntu chat room, we've recently had three people who match the @Oli ping, me and two with longer names that start "Oli". There are hundreds of people like this in the network. So when somebody talks to me, they get pinged too. I'm a moderator so people talk to me quite a lot. That means it's got to be pretty hellish if your nick starts with "oli". You're getting loads of pings that aren't actually for you. In reflection (given that there's tab completion), this is a stupid feature. It should be taken out back and shot. This appears to have and got a slight fix but has that since regressed? Today an Oliver was getting pings for me so the full-word-match thing advertised in the answers isn't catching any more. And in terms of making tab-completion a viable option (not all people know about it, not all people have tab keys, eg phones), how about that if you write a possibly ambiguous @name: It works out who based on who's chatting, and/or Offers the user an option for each ambiguous @name used so only the correct people are ever pinged. Or something similar as the username is tapped in...
I know that having a net angular momentum will contradict isotropy of the universe by preferring a specific direction. But is there any experimental data on the total angular momentum of the universe and how much it deviates from zero (perhaps according to the CM frame)?
Suppose in the milliseconds after the big bang the cosmic egg had aquired some large angular momentum. As it expanded, keeping the momentum constant (not external forces) the rate of rotation would have slowed down, but it would never reach zero. What implications would that have to measurments to distant supernova and CMB radiation? Do we have any experimental data that definitely rules out such as scenario? And to what confidence level? Edit A suggests that the universe might indeed be spinning as a whole. Anyone care to poke holes at it? Edit 2 Even more places limits on possible rotation.
It's been asked a lot, and for 2 days, I've tried to resolve, with no success. I am running TFS 2012 Express, on Win7. I have installed VS Express edition on that machine. I can check in fine. I am trying to set up a Continuous Integration build. But, when I force a build on the build server, I get the following error: Unable to create the workspace '2_1_Server' due to a mapping conflict. You may need to manually delete an old workspace. You can get a list of workspaces on a computer with the command 'tf workspaces /computer:%COMPUTERNAME%'. Details: The path C:\Builds\Finance is already mapped in workspace 1_1_Server. (type MappingConflictException) (Not sure where it gets "C:\Builds\Finance" from....) I then try what it says on my dev machine, and it asks me for my login credentials on the build server. I enter them, and it tells me: That seems fine, no? On the server, I check my Build Agent working folder: d:\Builds\$(BuildAgentId)\$(BuildDefinitionPath) I am not sure where the conflict is. Interesting, if I load a different team project on the same server, it builds. I just created a build definition for this project, and it seemed to build successfully. I think it has something to do with the Build Definitions, as these projects were moved from another TFS server..... Can anyone assist?
When creating a new build in Team Foundation Server, I get the following error when attempting to run the new build: The path C:\Build\ProductReleases\FullBuildv5.4.2x\Sources is already mapped to workspace BuildServer_23. I am unable to see a workspace by that name in the workspaces dialog.
The splitting field of $x^4 - 2x^2 - 6$ is $\mathbb{Q}(\alpha, \sqrt{-6}) = \mathbb{Q}(\alpha, \beta)$ where $\alpha = \sqrt{1+\sqrt{7}}$, $\beta = \sqrt{1-\sqrt{7}}$. From the first representation, $x^4 - 2x^2 - 6$ being irreducible (say, Eisenstein for $2$) and $\sqrt{-6}$ being non-real it follows that the extension (and hence the Galois group) has order $8$. Now one can sneakily show that the group is $D_8$ as follows -- it is not Abelian, as then by FTGT any intermediate extension must be Galois, whereas $\mathbb{Q}(\alpha) : \mathbb{Q}$ is not. On the other hand, $(\alpha \to -\alpha)$ (and fix the rest) and $(\sqrt{-6} \to -\sqrt{-6})$ (and fix the rest) are two distinct morphisms of order $2$, hence the group cannot be quaternion. So it must be $D_8$. But what about a set of generators? I think that $(\sqrt{-6} \to -\sqrt{-6})$ can be the reflection one but I can't think of a suitable rotation one. Any help appreciated!
From Hungerford, section V, chapter 4 exercise 9: Let $x^4+ax^2+b$ in $K[x]$ (with char $K\neq $2) be irreducible with Galois group $G$. (a) If $b$ is a square in $K$, then $G = \mathbb{Z}_2\times\mathbb{Z}_2$. (b) If $b$ is not a square in $K$ and $b(a^2-4b)$ is a square in $K$, then $G = \mathbb{Z}_4$. (c) If neither $b$ nor $b(a^2-4b)$ is a square in $K$, then $G = D_4$ (dihedral group). What I've tried With (a): Let be $u_1,u_2,u_3,u_4$ the roots of the quartic, then $b=u_1u_2u_3u_4$ is in $K$ and there exists $a\in K$ with $a^2=b$. On the other hand, $G = \mathbb{Z}_2\times\mathbb{Z}_2$ if and only if $\alpha=u_1u_2+u_3u_4$, $\beta=u_1u_3+u_2u_4$, $\gamma=u_1u_4+u_2u_3$ are in $K$, but I don't find the way to rely those results. With (b) I know that $b=u_1u_2+u_1u_3+u_1u_4+u_2u_3+u_2u_4+u_3u_4$ but again I dont know how to continue. Any help? Thanks.
I can't use a gpu on my vm and it says: Quota 'GPUS_ALL_REGIONS' exceeded. Limit: 0.0 globally all the time and I have premium so how do I fix this?
When I start a instance with gpu on google cloud platform, it shows me the error that You've reached your limit of 0 GPUs NVIDIA K80. Anyone who can give me some tips about this, thanks in advance.
Which version of Ubuntu should I load on my laptop which has 768 MB RAM and just 40 GB hard drive space so that it runs smoothly and looks nice?
For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and such as: with a lighter desktop than the usual Gnome and Unity with the even lighter LXDE desktop Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?
I would like to print computed values in a side bar using a Google Earth Engine app. Currently the output is a dictionary for example if I want the feature name that has been clicked on: var computeValues = function (coords) { // select built-up area from map var point = ee.Geometry.Point(coords.lon, coords.lat); // select the polygon and colour red var selected = bu.filterBounds(point); var id = ee.String(selected.first().get('bua11cd')); // display in side panel bu_name.setValue(['location:', id]); // Create panels to print values. var inspectorPanel = ui.Panel({style: {width: '30%'}}); var bu_name = ui.Label(); inspectorPanel.add(ui.Panel([bu_name], ui.Panel.Layout.flow('vertical'))); Returns this is the side panel: location:,ee.String({ "type": "Invocation", "arguments": { "input": { "type": "Invocation", "arguments": { "object": { "type": "Invocation", "arguments": { "collection": { "type": "Invocation", "arguments": { "collection": { "type": "Invocation", "arguments": { "tableId": "users/philtown81/Builtup_Areas" }, "functionName": "Collection.loadTable" }, "filter": { "type": "Invocation", "arguments": { "leftField": ".all", "rightValue": { "type": "Invocation", "arguments": { "geometry": { "type": "Point", "coordinates": [ -0.4458729125976788, 51.7557470078457 ] } }, "functionName": "Feature" } }, "functionName": "Filter.intersects" } }, "functionName": "Collection.filter" } }, "functionName": "Collection.first" }, "property": "bua11cd" }, "functionName": "Element.get" } }, "functionName": "String" }) is a link to a working example.
I am working on a variable label in Google Earth Engine and noticed that the label as printed in the console is not the same as the label shown on the map. Why is that? Code below: var aoi = ee.Geometry.Polygon([[[-106.75701284923326, 42.31332966408458], [-106.75701284923326, 42.003856624775146], [-106.31755972423326, 42.06913460511273]]]); var chirpsSelect = ee.ImageCollection("UCSB-CHG/CHIRPS/DAILY") .filterDate('1985-01-01','2018-01-01') .filter(ee.Filter.dayOfYear(3,6)) .filterBounds(aoi) var chirpsStartImage = ee.String(chirpsSelect.first().get('system:index')) var dateStartString = ((((chirpsStartImage.slice(6,8)).cat('/')).cat(chirpsStartImage.slice(4,6))).cat('/')).cat(chirpsStartImage.slice(2,4)) var sortChirpsSelect = chirpsSelect.sort('system:index',false) var chirpsEndImage = ee.String(sortChirpsSelect.first().get('system:index')) var dateEndString = ((((chirpsEndImage.slice(6,8)).cat('/')).cat(chirpsEndImage.slice(4,6))).cat('/')).cat(chirpsEndImage.slice(2,4)) var dateTitle = ee.String((dateStartString.cat(' to ')).cat(dateEndString)) print(dateTitle) var dateLabel = ui.Label({ value: dateTitle }) var panel = ui.Panel() panel.add(dateLabel) Map.add(panel)
I still have problems understanding how to prove that a sequence converges, stuck with $a_n=\left(\frac{n^2}{2^n} \right)$ I know that $\lim_{n\to\infty} a_n=0$ but don't know how to proceed. I tried replacing $2^n$ with $\sum_{k = 0}^n { \binom{n}{k}}$ to get $\left(\frac{n^2}{\sum_{k = 0}^n \left(\frac{n!}{k!(n-k)!} \right)} \right)$. Next I want to manipulate the term somehow (don't understand how this could be done) to get $n$ instead of $n^2$ as numerator to show that the denominator is always bigger than $n^2$ starting from some $n_0$. How would I then get the value of $\epsilon$? Is this a valid approach? How can I extrace a $n$ from the sum? Also different approaches are appriciated! @edit forgot to include that I want to show that this sequence converges to $0$, so showing convergence is not enough. In the linked dublicate it's written as fact if $a_n > 0$ and the ratio test $< 1$. Why is this true?
Prove that: $$\lim_{n\rightarrow \infty}\dfrac {n^{2}}{2^{n}}=0$$ I think I need to show $2^n \geq n^3$ $\forall n \geq10$. Is it true? What about: $$\lim_{n\rightarrow \infty}\dfrac {n^{2}}{n!}=0$$ What to do with $n!$?
Your local grocery store just received a large shipment of apples, oranges, pears, and bananas---there are only 5 of each fruit. You are shopping at the store and will purchase your fruit for the week. How many ways can you select $10$ pieces of fruit from your store's supply of apples, oranges, pears, and bananas, if you need at least $2$ oranges and $1$ apple? I understand that there are 17 spots to choose from because 3 have been chosen and there are a total of 20 fruits. Would I use the combination by repetition formula? I can't quite wrap my head around what to do. Any help would be appreciated.
$$x_1 + x_2 + x_3 + x_4 = 10$$ But $x_1 \ge 1$ and $x_2 \ge2$. Finally, $x_1<6, x_2<6, x_3<6$ and $x_4<6$. I started off by finding the total amount that you can get for the original equation. That would be $C (13, 3)$. Then i calculated for the cases of numbers being greater than or equal to 5. I dont know how to incorporate $x_1\ge1$ and $x_2\ge2$. Any help? $x_1, x_2, x_3, x_4$ are all integers that could be >= 0(But $x_1$ and $x_2$ have their own restriction).
How to type theta as shown below? Hope image is clear
I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?
I have peppermint/mint growing in my garden backyard. I want to make mint candies for children and in one of the YouTube videos they have menthol crystal as one of the ingredients for mint candies so I am wondering how to make Menthol Crystal from fresh mint leaves ?
I have peppermint/mint growing in my garden backyard. I want to make Ice Cream for children and they are asking for some flavour paan ice cream in Hindi (mint ice cream) and for that I want Menthol powder to mix into plain ice cream. How can I make Menthol Powder from Mint/Peppermint Leaves?
In my file, i have som tables, which are numbered incorrectly. What I mean by that: I have two tables in chapter 4 and one in chapter 5. They are numbered as 4.1, 4.2 and 5.1, while I want them to be 1, 2 and 3. MWE is here: \documentclass{report} \begin{document} \section{one} ... \section{four} \begin{table} \caption{Table one} %a table \end{table} \begin{table} \caption{Table two} %a table \end{table} \section{five} \begin{table} \caption{Table three} %a table \end{table} \end{document}
Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)? And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering? \documentclass{book}% for "vice versa" variant, replace `book` with `article` \begin{document} \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section` \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure} \end{document} Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?
In the Back to the Future universe, we know what is needed for time travel: a flux capacitor, 1.21 gigawatts and a travel speed of 88 miles per hour (I know there are more requirements than that but I do not want to get bogged down by tiny details). If any one of these three things is absent, per the story's logic, time travel will not occur. Here is my problem. Doc was hovering in the DeLorean when it was struck by lightning, sending him back to 1885. How? He was not traveling 88 mph, he was traveling 0mph. Did the filmmakers just overlook this glaringly obvious problem, or is there an in-universe explanation?
At the end of Back to the Future II, a lightning bolt hits the DeLorean which sends it back to 1885. At the time though, the DeLorean wasn't moving; it was relatively stationary hovering in the storm. Yet, it's emphasised repeatedly that the DeLorean must reach 88 miles per hour (which becomes a key plot point in Back to the Future III). So, considering the DeLorean wasn't traveling at 88mph when the lightning struck the DeLorean sending it to 1885, what is the in-universe explanation of how it travelled there? Some other factors to bear in mind: If a lightning bolt was sufficient to send the DeLorean time traveling, then the 88mph business would be irrelevant Note that there are the firey tracks left after the DeLorean time travels in the '66' shape. The thing to note about this though is that we never see these before the DeLorean disappears. These tracks are always appearing after the DeLorean has traveled away. This would seem to indicate that the DeLorean did move, but following the activation of the time circuits.
Prove by induction that $$\sum_{i=0}^n\binom ni=2^n\text{ where }\binom ni=\frac{n!}{i!(n-i)!}$$ Please explain me step by step. Thank you.
Prove by induction that for all $n \ge 0$: $${n \choose 0} + {n \choose 1} + ... + {n \choose n} = 2^n.$$ In the inductive step, use Pascal’s identity, which is: $${n+1 \choose k} = {n \choose k-1} + {n \choose k}.$$ I can only prove it using the binomial theorem, not induction.
I'm subscribed to the Ubuntu Security Notes, so everytime that I receive an e-mail, a new update is avalable. But in the last update, they wrote something in the end that I coudn't undertand much, so can anyone please tell me what does that means? ATTENTION: Due to an unavoidable ABI change the kernel updates have been given a new version number, which requires you to recompile and reinstall all third party kernel modules you might have installed. If you use linux-restricted-modules, you have to update that package as well to get modules which work with the new kernel version. Unless you manually uninstalled the standard kernel metapackages (e.g. linux-generic, linux-server, linux-powerpc), a standard system upgrade will automatically perform this as well. I tried to ask to my friend (who also uses Linux), but he don't know much about kernel.
As you can see in the , there are update messages like "Bump ABI - Maverick ABI 28". According to the , ABI is something like a bridge between the kernel space and the other modules (my interpretation). Does such an update adds extra features and / or bugfixes? Should I upgrade my kernel to the next version?
I am trying to open Identify Results docked window using qgis plugin. How can i open the identify results window using feature id? I am iterating through active layer, get a specific feature and then open the identify results window automatically within that plugin.
If I select a feature and run self.iface.actionIdentify().trigger() it will open the identify window but won't open the selected feature's data, how can I make it open the data of the selected feature?
What will you do if you find a high priority bug and your client wants to deploy the software after knowing that critical bug and you don't have your Developer to fix that bug he is on vacation?
Suppose the product/application has to deliver to the client at 5.00 P.M, at that time you or your team member caught a high Severity defect at 3.00 P.M (Remember the defect is high severity), but the client won't wait for a long. You have to deliver the product at 5.00 P.M exactly. Then, what is the procedure you follow as a QA in this situation?
Is it possible to use general "is" contractions with regular nouns? Like "The car's white", or "everyone I know's cool". It seems like this could be a logical extensions of the normal rules of contractions, and informally online I find myself typing these out.
When is it correct to create a contraction of words followed by is? For instance is who’s a correct short form of who is?
Open source project currently hosted on java.net (SVN, JIRA) to encourage participation I want to move it to bitbucket (Git, can link to JIRA). This is the only data I need to transfer, things like the java.net mailing list are of little/no interest. How do I transfer the SVN source to Git whilst preserving the history What should I do about the JIRA issues ?
I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple instruction like: SVN repository in: svn://myserver/path/to/svn/repos Git repository in: git://myserver/path/to/git/repos git-do-the-magic-svn-import-with-history \ svn://myserver/path/to/svn/repos \ git://myserver/path/to/git/repos I don't expect it to be that simple, and I don't expect it to be a single command. But I do expect it not to try to explain anything - just to say what steps to take given this example.
I have an Excel spreadsheet which is tens of thousands of entries long but it's not organized. All the data is in a single column with each entry taking up 3 rows followed by a space. For example: Entry 1 Name Entry 1 Address Entry 1 Phone Entry 2 Name Entry 2 Address Entry 2 Phone This goes on for about half a million entries. I need to organizing it better and would like to transpose it to look like this Entry 1 Name Entry 1 Address Entry 1 Phone Entry 2 Name Entry 2 Address Entry 2 Phone I've been trying to figure out how to write a formula that I can auto fill in Excel but I can't figure it out. I'm using MS Office on OSX. But any solution be it Excel or non Excel would be great. Thanks!
I have a movie list with over 1500 entries (A1-A1500), all alphabetized (Thanks to Excel) and I would like to split that into multiple columns of 55 rows each on a separate sheet if possible. So A1-A55 from Sheet1 would go to A1-A55 on Sheet2, and A56-A110 would go to B1-B55 on Sheet2, so on and so on. Each cell is an individual movie name and I would just like them to go from one long column to multiple columns with 55 rows in each.
I have a Nikon DS3100. I have now been given two lenses. Canon Zoom Lens EF 35-80MM TOKINA 28-210MM I have not yet tried them on my Nikon DS3100 and wondered if they are suitable to use. Any help would be appreciated. But please talk in layman terms as I'm not well up on camera and lenses as yet. Thank you
I've got some lenses of brand X, but I've just got a new camera of brand Y. How can I tell if it's possible to use my lenses on my camera? I accept that I may lose a lot of automatic functionality like autofocus, aperture control and metering when using an adapter to connect the two.
I am getting the null object reference of action bar while calling the setTitle function. This is my code import android.app.ActionBar; import android.app.Activity; import android.os.Bundle; import com.example.transport.transport.R; public class registration extends Activity { ActionBar actionbar=getActionBar(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.registrationpage); actionbar.setTitle("ramkumar"); } }
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
So I want to install Windows 10. I followed this tutorial: , but instead of multisystem, I used WoeUSB. I made a bootable USB drive, but when I open the boot menu on my laptop, there is no USB. Does anyone know why? I have a Lenovo V110 - 15ISK laptop.
This question is asked often in Ask Ubuntu, sometimes with few hints about the situation. Please provide a list of possible reasons to help troubleshoot the problem.
I bought a ticket to Thailand I arrive in Bangkok September 2nd, and leave October second. I essentially fly out on my 31st day in the country. I also have bought a one way ticket to Laos near the end of my trip to spend a few days there then was considering just crossing back over the border by bus. I am not a little concerned that I may have an issue without having a visa (although I am going to leave the country for a day or two or more). I have just read so many different views on this. I tried to reach the consult, which seems to be quite challenging. I also live about 7 hours away from the nearest one and I am not in a window now to apply by mail. Any advice?
A friend in Thailand with no visa has been told he has to leave before the end of the month or he will be put in jail. How do I get him home back to the UK?
as my last question this is the same problem but with 2 repeated digits, here is my approach: To solve this problem we need to devide it into 5 cases: 1 The integer contains one 8 and one 6 : 4 x 4 x 3 x 2 x 1 = 96 2- The integer contains one 8 and two 6s or one 6 and two 8s and no 0: (5C2) x 3 x 2 x 1 = 60 3- As same as 2 but containing 0: (4C1) x (4C2) x (3C2) x 2 = 144 4- The integer contains two 8’s and two 6’s with no 0: (5C2) x (3C2) x (2C1) x 2 = 120 5- Same as 4 with 0: (4C1) x (4C2) x (2C2) = 24 The final result would be : 96 + 2(60) + 2(144) + 120 + 24 = 648 but when I used an online tool I got 588 as result. (ii)Find the number of integers in (i) which satisfies “If there is 8, then it is followed by 6”
My question is this : how many distinct two digit numbers can be produced from numbers $4, 3, 3, 1$? When applying the formula $$\frac{4!}{(4-2)!2!}$$ you come up with $6$, yet when doing the problem manually, I come up with $7$ numbers, namely $41, 43, 14, 13, 33, 31, 34$. Can anybody explain this discrepancy? Thanks.
I have this php code $today_date = date('d/m/Y H:i:s'); $Expierdate = '09/06/2017 21:45:03'; $remaindate = date_diff($today_date,$Expierdate); echo $remaindate; and i need result from difference between two date.
How to calculate minute difference between two date-times in PHP?
I'm facing problem with floating elements inside div only , here is the problem: .main{ border-style:solid; border-color:yellow; overflow:auto; } .first { width:200px; height:100px; float: left; border: 10px solid green; } .second { width:200px; height: 50px; border: 10px solid blue; } <div class="main"> <div class="first">test1</div> <div class="second" >test2</div> </div> I need an explanation about the border of second DIV and its content position. Why the border is behind but the content is under the first div? Also according to : One of the more bewildering things about working with floats is how they can affect the element that contains them (their "parent" element). If this parent element contained nothing but floated elements, the height of it would literally collapse to nothing. This isn't always obvious if the parent doesn't contain any visually noticeable background, but it is important to be aware of. I need clarification why this happening. EDIT: I'm asking for explanation for it's behavior for both questions , NOT how to solve it .
Although elements like <div>s normally grow to fit their contents, using the float property can cause a startling problem for CSS newbies: If floated elements have non-floated parent elements, the parent will collapse. For example: <div> <div style="float: left;">Div 1</div> <div style="float: left;">Div 2</div> </div> The parent div in this example will not expand to contain its floated children - it will appear to have height: 0. How do you solve this problem? I would like to create an exhaustive list of solutions here. If you're aware of cross-browser compatibility issues, please point them out. Solution 1 Float the parent. <div style="float: left;"> <div style="float: left;">Div 1</div> <div style="float: left;">Div 2</div> </div> Pros: Semantic code. Cons: You may not always want the parent floated. Even if you do, do you float the parents' parent, and so on? Must you float every ancestor element? Solution 2 Give the parent an explicit height. <div style="height: 300px;"> <div style="float: left;">Div 1</div> <div style="float: left;">Div 2</div> </div> Pros: Semantic code. Cons: Not flexible - if the content changes or the browser is resized, the layout will break. Solution 3 Append a "spacer" element inside the parent element, like this: <div> <div style="float: left;">Div 1</div> <div style="float: left;">Div 2</div> <div class="spacer" style="clear: both;"></div> </div> Pros: Straightforward to code. Cons: Not semantic; the spacer div exists only as a layout hack. Solution 4 Set parent to overflow: auto. <div style="overflow: auto;"> <div style="float: left;">Div 1</div> <div style="float: left;">Div 2</div> </div> Pros: Doesn't require extra div. Cons: Seems like a hack - that's not the overflow property's stated purpose. Comments? Other suggestions?
I am not a professional photographer and use a base SLR camera (Nikon D3100 with the default 18-55mm lens) I am planning to visit Switzerland (Mt. Titlis) this month end (i.e. Jan) and expect the temperatures to be very low (around -10 C or so) I wanted some tips as well as precautions to be taken while shooting in snow; Does the battery life become very low in snow? (My camera is around 1 year old) Do I need any accessory to protect the lenses while shooting in snow ? Should I remove the battery from the camera each time I finish shooting? I just have the standard camera case. Should I carry any zip pouch or extra bags as well?
I’m going to Queenstown, NZ in a couple of weeks and want to take my (very new, very precious) Canon 7D with me. I’ve done a little bit of research on how to protect my baby from cold climate (e.g. ) and found that the biggest problem is probably going to be condensation. Some suggestions have been to place the camera in a plastic bag or letting the camera gradually adjust to the new temperature or placing silica gel in the camera bag to absorb moisture. I am leaning toward the latter at the moment because it sounds like it’s the easiest, so I was just wondering if anyone has had any experience in this matter and could share their wisdom. As an alternative I could take my Canon 350D, as I really wouldn’t care if that got damaged in the snow. However I’m a film student and tend to take just as many videos as photos – hence why I really want to take the 7D. But I would seriously regret it if it got damaged… dilemma! So as I actually haven’t used a question mark in the body of text, I will specify that the question is: What safety precautions should I take when taking photos in the snow? Cheers.
I'm trying to properly render the following formula: This is what I've got so far: aufgel"ost nach $B^A$ ergibt sich \begin{equation} \boxed{B^A = \mathit{VS} \cdot \frac{_{\textbar n}A_x + \mathrm{"a}_{x:n} \cdot \gamma}{(1 - \beta) \cdot \mathrm{"a}_{x:t} - t \cdot \alpha^Z}} \end{equation} bzw. f"ur $t = n$ Rendered result: However, I can't find the symbol for the actuarial angle for the letters n and t in the numerator and denominator in the AMS symbols list.
How do you write this in LaTeX:
I guess most of you missed the point. You're suggesting that I have to exploit the system to farm reputation to be able to start using the site productively, rather than start using the site productively to gain reputation. The system is fundamentally flawed. Yes, it works; of course it works. Sort of. But it works because so many people use it, NOT vice versa. And so many people use it because it was the first to fill this niche, not because it's fundamentally well-designed. This discussion aimed primarily at mathematical (and similar) Stack Exchange sites. What I am saying may not apply to others. How will new users like myself be able to fully participate in Stack Exchange given its current rules and status quo? Most of the features are locked until a significant reputation threshold is met (voting, commenting, ...) Pretty much all "easy" to "moderate" level difficulty questions have already been asked many times on here, which means: New users will find it nearly impossible to gain reputation by asking questions, since all simple/common/general questions have already been asked. This leaves very specific questions to be asked, which, even if they are very good questions, will only glean a few votes/responses. New users will also find it nearly impossible to gain reputation by answering questions, because the new questions that pop up will be very specific in nature (less likely to match our domain of proficiency), difficult to answer (more complicated, deeper), AND we have to compete with a very high volume of users to give an answer that ends up among the best answer(s). As a result, I feel that Stack Exchange is dominated by a small community of users who built their reputation by "farming" easy questions when the question base of the site was relatively sparse (or even asking then answering their own questions during the site's inception). For the rest of us, it is pretty much an encyclopedia. We are cut off from almost all the interactive components unless we expend a great deal of effort, or perhaps find certain sub-sites to exploit for easy reputation farming (I'm not sure exactly how cross-site reputation functions, so I don't know if this is valid - either way, it's a waste of our time and intelligence). @Comments saying the above implies I have nothing to contribute to Stack Exchange so the system is working perfectly: Please think a little more carefully before berating and downvoting this discussion. I can have plenty to contribute just by writing comments to people's answers (often answering other people's questions in the comments to an answer).
I just want to thumbs up a good answer, but I can't. I can't earn reputation because all conceivable simple questions have been asked and answered! Is there a way to usefully earn reputation on a mature site for a non expert? Or am I forever to be locked out of giving thumbs up?
This didn't solve my problem, the situation is exactly the same, it used to work in 16.10 but it's not working now. Is this a bug should I file a bug report?
When I installed Ubuntu Gnome 17.04 , Then it automatically got fixed, now it's generating the Thumbnails but as weird as it may sound, they're all green (or purple or pink but they are all monochromatic for sure). files are not affected by this only the thumbnails. other video file formats are okay as well, .mp4 .flv, just the .mkv's are affected. I've no idea where should I start to fix this. affected .mkv files not affected .mp4 files
I have an Nvidia G84 [GeForce 8600 GT] graphics processor. Does anyone know how to update the graphics driver in Ubuntu 14.04?
I just ordered the Nvidia GTX card. I have a dilemma, though. Should I keep using the driver which is available in "additional drivers" in Ubuntu, or should I install the driver from the Nvidia site? So which driver is the best for me?
During my study to gamma function I find this form but I try to prove but I can't $$\Gamma(x) = \lim_{n\to \infty} \frac {n! n^{x-1}}{x(x-1)(x-2)........(x+n-1)} $$ So I want to know how I can prove this limit ?
During my study I find a form for gamma function it was $\Gamma (x) = \lim_{n\to\infty} \frac{n! n^{x-1}}{x(x-1)(x-2)........(x+n-1)}$ And then by simplify this limit I get $$\lim_{n\to\infty} \frac{n^{x-1}}{{x+n-1\choose n}}$$ then I use Stirling's approximation and evaluate the limit to $\ (x-1)! * e^{x-1} * (\frac{n}{n+x-1})^{x+n-1{\over2}}$$ What next I should do to get Gamma function from this limit ?
As asked in the title, how do the Weyl spinors $(\frac{1}{2},0)$ and $(0,\frac{1}{2})$ differ from dotted and undotted spinors?
I have had an introduction to QFT following the book of Mandl and Shaw. However, I have been asked to write a report on the CPT theorem. For this, the main reference I'm using is PCT, spin and statistics and all that, by Streater and Wightman. I find that the introduction of dotted and undotted indices is really unclear in this book. I also found a reference on dotted indices in Local Quantum Physics by Haag, but I do not understand what he is talking about. Can someone explain, what the indices are, how they are defined and most importantly, how, for a given spinor, do you know what their indices are supposed to be? For example, what is the difference between $\psi$, $\psi_\alpha$, $\psi_\dot{\alpha}$, $\psi^\alpha$, $\psi^\dot{\alpha}$ and $\psi^{\alpha \beta \dot{\gamma}}_{\delta \dot{\epsilon} \dot{\zeta}}$? The problem I think, lies with the fact I have no experience with representation theory, nor has the course I had ever mentioned such things. So if you could give or reference an explanation of these things, without the need for representation theory, that would be most helpful. Thanks!