SQLiteOpenHelper - Where do I store initial data?
Ship an application with a database
Programmatical Setting of 'Store Relative Pathways' for multiple MXDs ArcGIS 10.1 I am looking to move large number of mxds to a different location on the same drive. Many mxds haven't got 'Store relative pathways' option checked therefore this operation will result in broken links to data. I've only started using ArcGIS 10.1 and it is now possible to programmatically update relative pathways for all mxds by using arcPy and setting relativePaths to be "True". I had a go at writing Python script which (in theory) loops through a top folder and searches for all mxds and then updates "Store relative pathways" setting to be on. When I run this script in PyScripter, it fails to complete, I get the following error:  "exceptions.NameError: name 'mxd' is not defined  Can anyone help ?!? Thanks in advance, Magda      import arcpy, os  folderPath = r"C:\My Folder Path\...\...\..."  for filename in os.listdir(folderPath):     fullpath = os.path.join(folderPath, filename)     if os.path.isfile(fullpath):         basename, extension = os.path.splitext(fullpath)         if extension.lower() == ".mxd":             mxd = arcpy.mapping.MapDocument(fullpath)             mxd.relativePaths = 'True'         mxd.save() del mxd If n is such that every element $(\mathbb{Z}/n\mathbb{Z})^{\times}$ is a root of $x^2-1$. Prove that $n$ divides 24. I have a hard time formulating proofs.  For this problem, I  can see that if $n$ is equal to $8,$ this statement is true.  $(\mathbb{Z}/8\mathbb{Z})^{\times}$ includes elements:  $1,3,5,7$, and all of these are roots of $1-x^2 \pmod 8.$  And obviously $8$ divides $24.$  But how do I prove this without depending on number calculations and only using theorems?  Help Please?  I need a step by step walk through of how to do this proof and what theorems would be appropriate to use. Stochastic processes book suggestions. I would like to find a book that introduces me gently to the subject of stochastic processes without sacrificing mathematical rigor. It would be great if the book has lots of examples and that the book is designed for undergraduates. Just like how there are rigorous undergraduate abstract algebra books (I am thinking of GAllian's contemporary modern algebra here).   I already studied measure theory, and prob. theory.  Thank you. Adjust rounded rectangle radii without creating a new one in Photoshop C6 When I create new rounded rectangles, I see the radii and other information in the properties, but after I work on something else and go back to that layer, the information does not show. How do I adjust the radii of the rounded rectangles without deleting and creating a new one? How can I fix the non-stitched seam that is present after applying mirror modifier? Still alive, still alive after kill -9 / SIGKILL An apache2 process got stuck on my server and caused problems with other services. (original problem: kerneloops after USB hardware disconnect)   root@server:~# ps aux | grep apache2 | grep -v grep www-data 12917  0.0  0.1 412148 16156 ?        D    Jun27   0:00 /usr/sbin/apache2 -k start   Naturally, I killd it. it's still alive. so I kill -9d it. It's still "alive".  Now this is where the question gets serverfault/unix&amp;linux-worthy: Is there a way to get port 443 back without doing the obvious thing: rebooting? Iptables is installed.  Update: I could not resolve the Problem withouth rebooting. The general approach (use lsof or /proc/$PID/fd to find out which and get rid of that drive) as described here and in the "duplicate" could well have worked if not for additional (probably) hardware defects. My HP Pavilion laptop has Ubuntu 18 version and I once tried to disable InBuilt webcam just for security reasons. But now it wasn't working and I reinstalled newer version of Ubuntu 20. But even after installing newer version the camera is still not working. When I open cheese it shows this screen. I assumed I might have deleted the drivers as I was doing package installation and removel that time. Please suggest me what should I do to get this working. Multiple (diamond) inheritance compiles without "virtual", but doesn't with I noticed that the paper size invoked by a4paper is not working right in my examples:  \documentclass[a4paper,11pt,oneside]{article} \begin{document} Test \end{document}   I checked with Preview.app and it tells me the paper size is 21.59 cm × 27.94 cm. A4 should be 21.0 cm × 29.7 cm.  When I use \usepackage[a4paper]{geometry} I notice a different size of the paper (it gets narrower) and Preview.app says: 21.01 cm × 29.71 cm, which seems right. I can reproduce this exact behavior with every class: article, book etc., scrartcl, scrreprt, etc., g-brief2 except memoir which gives me 21.01 cm x 29.71 cm    Is there something wrong or am I missing something? Any suggestions for a good undergraduate introductory textbook to statistics? I am hoping you can give me some suggestions. I am teaching in a very diverse (made of minority groups) college and the students are mostly Psychology majors. Most students are fresh from high school but some of them are older returning students above 40. Most of the students have motivational problems and aversion to math. But I am still looking for a book that covers the basic curriculum: from descriptive to sampling and testing all the way to ANOVA, and all in the context of experimental methods. The department requires me to use SPSS in class, but I like the idea of building the analysis in a spreadsheet such as excel.  p.s. the other teachers use a book that I don't like because of the extensive reliance on computational formulae. I find using these computational formulas - rather than the more intuitive and computationally intensive formula that is consistent with the rational and basic algorithm- unintuitive, unnecessary and confusing. This is the book I refer to Essentials of Statistics for the Behavioral Sciences, 7th Edition Frederick J Gravetter State University of New York, Brockport Larry B. Wallnau State University of New York, Brockport ISBN-10: 049581220X Thank you for reading! This is probably a silly question but I need some help. I opened a file that I've been working on for about a month in the new 2.8 version of Blender. However when I tried to reopen the file in version 2.79, the scene is completely empty. Here is where the problem lies for me, I accidentally saved over the original file save while in version 2.8 . Please help. Thanks! In Ubuntu 18.04.1, I would like to use my left Super-key only to simply open the Show Applications menu (aka Dash) like a left click on the dock-icon (with the 9 dots) does and preferably close it again without showing me any open programs.   I can open it with Super + A and even close it again with Super R, but Super L appears to do nothing at all.   In Xfce, something similar was possible by adding a custom keyboard shortcut for Super L and setting the command to xfce4-popup-whiskermenu, which would open and close a menu with favourite applications. Unfortunately, I don't know the command that opens and closes the Show Applications menu.   Is there any way to add such a shortcut in the new Gnome Shell? Replacing a font in many illustrator files I have several hundred Illustrator files that are formatted similarly, and for legal reasons I need to replace a font in all of them. Even with the 'Find font' tool, that's a hell of a lot of fonts to replace by hand.  Is there some way of automating it? For example, using Bridge? Illustrator (CS5) doesn't offer many options in Bridge, compared to the automation options offered by Photoshop. I also don't see any option for running actions on multiple Illustrator files.  Also, creating a repeatable action for replacing the font doesn't seem to work: instead of repeating my action, it brings up the dialog box an waits for me to tell it to replace them.  As a programmer I'm prepared to edit the files directly if it can be done without breaking them.    Update: The 'Batch...' menu item from Illustrator's actions panel menu allows the same action to be performed on a folder of files. It doesn't fix the Find Fonts action waiting for input though. Toggling the dialog off makes the action do nothing at all. How to install LINE (messaging app) on Ubuntu I would like to install  chat platform on my Ubuntu 12.04 LTS system. Please, could anyone provide me the steps to successfully install this software?. I've been trying to install this software using wine but I couldn't succeed it. How do I get a mesh data-block with modifiers and shape keys applied in Blender 2.8? I'm trying to update an exporter to work with Blender 2.8 but can't seem to get a mesh data-block modified by modifiers or shape keys. It always gives me the base mesh.  I'm currently using Object.to_mesh(). But reading Object.data or bmesh.from_mesh(obj) all returns only the base mesh. So what is the new function to call for getting a mesh data-block with the modifiers and shape keys applied? Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux Term or phrase describing action occuring when not watching I am an IT professional. More specifically in automation. I am looking for a term or phrase that describes the event when either:  a. you are watching something closely and the issue doesn't occur  or  b. you are not watching something at all and the issue does occur When do you use Java's @Override annotation and why? underline omitting the descenders I'm very well aware that it is considered best practice not to use underlining other than on typewriters and in handwriting. But sometimes it is needed nonetheless.  In my opinion the typographically least offending way to underline in print is to leave out the descenders. This is also how I learned to do it in handwriting. Very few fonts offer a pre-made underlined variant, but some text-processors (e.g. OS X text-engine) do -- depending on the font used -- an acceptable job at emulating this effect:    How would I tweak any of the existing ways/packages for underlining to do the same?  As a bonus, I'd like to be able to tweak the behaviour (extent of the omitted part, apply to which letters) per font and text style, preferably working with XeLaTeX. Covariant derivative ambiguity I'm studying general relativity and am running into an ambiguity with the covariant derivative. The covariant derivative acting on a scalar is, in a co-ordinate basis, simply $$\nabla_X f = X^a \nabla_a f = X^a \partial_a f $$ whilst when acting on vectors or tensors, the covariant derivative includes extra terms involving the connection coefficients $\Gamma$. My problem is that I'm not sure what happens when the covariant derivative acts on the components of a vector. So the $X^a$ in the above expression are each scalar functions, and so when we write $\nabla_Y X^a$, do we assume the covariant derivative acts on $X^a$ as scalars, or do we include connection coefficient terms?  To clarify, consider $$ \nabla_X Y = X^a \nabla_a(Y^b e_b) = X^a (\nabla_a Y^b) e_b + X^a Y^b (\nabla_a e_b) = X^a (\partial_a Y^b) e_b + X^a Y^b \Gamma^c{}_{ba} e_c $$ As you can see, when the covariant derivative acts on the $Y^b$, it acts as a simple partial derivative, since the $Y^b$ are here considered functions premultiplying the vectors $e_b$.   However, in this equation from  page: $$(\nabla_X \nabla_Y Z)^a = X^c \nabla_c Y^b \nabla_b Z^a = X^c Y^b \nabla_c \nabla_b Z^a + (X^c \nabla_c Y^b) \nabla_b Z^a = (\nabla^2_{X,Y} Z)^a + (\nabla_{\nabla_X Y} Z)^a$$ When the covariant derivative acts on the $Y^b$ term it treats it like a vector.  What's going on here? Thanks.