dbaccess.php file have below code.  <?php    Class Connection {    private  $server = "mysql:host=localhost;dbname=cloudways";    private  $user = "root";    private  $pass = "";    private $options  = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,PDO::ATTR_DEFAULT_FETCH_MODE     => PDO::FETCH_ASSOC,);    protected $con;          public function openConnection()          {            try              {               $this->con = new PDO($this->server, $this->user,$this->pass,$this->options);               return $this->con;               }            catch (PDOException $e)              {                  echo "There is some problem in connection: " . $e->getMessage();              }          }     public function closeConnection() {     $this->con = null;    }  } ?>   I have been trying to select records from my table with LIKE operator using below code.  <?php    include_once 'dbaccess.php';  $vaddr   = $_POST['addr'];  $database = new Connection(); $db = $database->openConnection();  $statement = $db->prepare("SELECT  address,                                    studentno,                                     deptno                          FROM       student                         WHERE      address  like :vaddr");  $statement->execute(array(':vaddr' => $vaddr));             while ($row = $statement->fetch(PDO::FETCH_ASSOC))      {         $vaddr = $row['address'];         $type = $row['type'];         echo "$vaddr has the type $type<br>";     }  ?>;   If anyone can let me know how this works with PDO prepare statement. Connection is proper and it gets connected successfully. The issue is with the way I wrote this code.

Here's my attempt at it:  $query = $database->prepare('SELECT * FROM table WHERE column LIKE "?%"');  $query->execute(array('value'));  while ($results = $query->fetch())  {     echo $results['column']; }


State the binomial expansion of $(1+x)^n$  So I can do this $$(1+x)^n=\sum_{i=0}^{n} {n\choose i}x^i$$  Then given $n=2k$ is even. Derive an expression for   $$\sum_{i=0}^{2k} (-1)^i{2k\choose i}$$ this is where I am stuck cause this is the same as above with $x=-1$ so is the answer just  $$(1+(-1))^{2k}=\sum_{i=0}^{2k} {2k\choose i}(-1)^i=0^{2k}=0 ~\forall k\in \mathbb{N}$$?

Let $n$ be a positive integer. Prove that   \begin{align} \sum_{k=0}^n \left(-1\right)^k \binom{n}{k} = 0 . \end{align}   I tried to solve it using induction, but that got me nowhere. I think the easiest way to prove it is to think of a finite set of $n$ elements, but I can't find the solution.


I have a PC running with windows 7 ultimate 64 bit version with 4 gig Ram. I have a 320 gig hard disk , in which I have allocated 120 gig for windows 7, 100 gig for NY files(named ashwin in windows) and rest 80-90 gig partitioned but empty NTFS partition.Now where do I install Ubuntu so that windows and data is safe.  I got the option install with windows I selected it , it then shows select drive(SCSI1 (0,0,0) (sda) -320.1 GB ATA WDC WD3200AAJS-6) and allocate driver by dragging the divider below which shows 66.5gb and 59.3 GB respectively. Which one do I go with?  I clicked advance partitioning it shows five devices:  device   , type, m.point ,size.(mb), used(mb)......... /dev/sda1, NTFS,          104 ,      35 (windows 7 loader) /dev/sda2, NTFS,          104752,    23604 /dev/sda3, NTFS,          125829,    10161 /dev/sda5, NTFS,          89382,     3221   when I checked size in properties it showed  name of drive according to windows,                              used.Gb,   free,   total. ashwin,     10.2,      115.7,  125.8  c drive,    23.6,      81.1,   104.8 new volume, 92.6mb,    89.3,   89.4   except mentioned everything in gigabytes.ignore the last dots.  I want to install it in new volume or using that space how do I do it?  Explain in detail I'm a beginner.

I have a formatted 55GB partition as NTFS, the other part of the hard disk has Windows 7.  Is NTFS the right format for Ubuntu? If not how should I format it and with what format?  Once I finish preparing the partition, how do I install Ubuntu on that partition? I'm not sure how to set up dual-boot Ubuntu and Windows.


I read question from someone who was having monitor with 90 W power, 19 V and 3.32 A rating. When calculated using volt and power the amp came out to be 4.74 A. I didn't understand why is there requirement to find amp rating. If we consider 3.32 A as a minimum then we can take any ampere rating higher than 3.32 A.  Is there any need of any calculation? By reading the posts what I understood is that there is no harm in having a higher amp rating as power supply will draw only the required and discard the rest.

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


I am booting Windows, Ubuntu, and Manjaro and I have a problem in bootloader. Is it ideal to have separate EPS partition for each OS like one EFS in Windows, one in Ubuntu, and one in Manjaro? Or I can use the EPS partition of Windows for all OSes?

I'm trying to do a dual-boot installation of Ubuntu and I've noticed that there is already an EFI partition in my SSD. Do I need to create a new one for my Ubuntu Partition?


Guys im really panicking... So im making a GFX and im using blender 2.79, but when i start rendering, only one object show up and the background is transparent. When i press the render preview, it shows all of the objects.

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?


Prove  A−(B−C)=(A-B)-C  Could someone help me to walk it through?

This is what I have so far:   First, we will attempt to show $A-(B-C) \subseteq (A-C) - C.$     Let $x \in A -(B-C)$.      Then $x\in A$ and $x \notin (B-C)$. By DeMorgan's we have that  $$x \notin (B-C) = x \notin B \vee x \in C.$$     We have that $x \in A \wedge (x \notin B \vee x \in C)$.      Then we have that $(x \in A \wedge x \notin B) \vee (x \in A \wedge x \in C)$.  So by definition of $\cup$ and $\cap$, we have $x \in (A-B) \cup (x\in (A \cap C))$. I'm kind of stuck here.  I can see a contradiction here in that LHS says $x \in C$ but the RHS says $x \notin C$.   Can anyone tell me what to do from here? I'm not quite sure how to formally state that the statement is false. I feel like I'm not being complete here.


Arrays are not a  in Java, but they , so are they passed by value or by reference? Does it depend on what the array contains, for example references or a primitive type?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


The PC is Windows. I wanted the ubuntu environment, I put the ubuntu iso file on the USB. After that, if I try to restart and start ubuntu, I get an error like the following.  The details of the error are the two statements below. (initramfs) Unable to find a medium containing a live file system[figure ex.)  135.392108] usb 3-4: device descriptor ewad / all, error -110I   tried variously, but it was useless. (I tried BIOS etc. but it was useless.What I want to do is to have Ubuntu portable on the USB. However, I want to prevent any Windows from being broken. I do not know the meaning of 2.0 / 3.0 on the USB drive side and socket side. The one that I use is USB 3.0. Ubuntu version is 18.04.2. The iso. file was loaded with Universal-USB-installer. I tried both UEFI and LEGACY mode with BOOT on the BIOS screen, but it was useless. PC is VersaPro made by NEC. I did it with both Universal USB installer and rufus, but it was useless. md5sum, I did not check it.

Error message:  (initramfs) unable to find a live medium containing a live file system   I got this error while trying to install Ubuntu 10.10 from a bootable USB stick on to Asus X64J series laptop. After getting this error the installation fails to start.  I have used the same USB stick on some other laptops and the installation started as usual. Any help will be appreciated.


Existing SHA-256, how to update it with another or multiple different data types      BigInteger d = new BigInteger("773182302672421767750165305491852205951657281488");     BigInteger r = new BigInteger("1354751385705862203270732046669540660812388894970");     String R_ID = "id_b";     String C_ID = "id_b";      MessageDigest sha_c = MessageDigest.getInstance("SHA-256");     sha_c.update(r.toByteArray());     sha_c.update(d.toByteArray());     sha_c.update(C_ID.getBytes());     System.out.println(Arrays.toString(sha_c.digest()));      MessageDigest sha_b = MessageDigest.getInstance("SHA-256");     sha_b.update(r.toByteArray());     sha_b.update(d.toByteArray());     sha_b.update(R_ID.getBytes());     System.out.println(Arrays.toString(sha_b.digest()));   Same results: result with update with sha_c.update(C_ID.getBytes());     [114, -62, 50, -44, -118, 20, -29, 34, -112, 99, -17, -6, 97, -64,   -121, 20, 30, -55, 110, 54, 9, -90, 100, 125, -28, 75, 106, -15, -87, -109, -51, 46]   result with update with sha_b.update(R_ID.getBytes());     [114, -62, 50, -44, -118, 20, -29, 34, -112, 99, -17, -6, 97, -64,   -121, 20, 30, -55, 110, 54, 9, -90, 100, 125, -28, 75, 106, -15, -87, -109, -51, 46]

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


Is it just me or is it a bit illogical that  \documentclass[a4paper]{article} \begin{document} \makeatletter \@ifundefined{chapter}{}{} \makeatother \ifdefined\chapter chapter\else no chapter\fi \end{document}   returns chapter. So basically \@ifundefined actually ends up defining the macro (making it equal to \relax)

I am using the article class, and I discovered that the tocloft package defines \chapter, which will mess up with my other stuff. How does this happen? Can I make \chapter "undefined" again after loading tocloft? Here is an MWE:  \documentclass{article} % loading tocloft will make \chapter defined \usepackage{tocloft}  \begin{document}  \ifdefined\chapter    chapter is defined in the current \texttt{article} document.     \chapter{This is not a chapter, but will be typeset as plain text} \else    chapter is \emph{not} defined. \fi  \end{document}


I've seen similar discussions for the inner horizons of Kerr and Reissner-Nordstöm metrics, but I've never seen mention for the simple maximally extended Schwarzschild geometry: As an infalling observer coming from one of the exterior regions (U) crosses the future horizon of the black hole, does the observer start seeing the entire history of the other exterior region (U')?         I+ ~~~~~~ I+          /\    /\         /  \  /  \     I0 /    \/    \  I0        \ U' /\ U  /         \  /  \  /          \/    \/        I- ~~~~~~ I-   In the Penrose-Carter diagram for the spacetime, null geodesics starting at past timelike infinity in the other exterior region would just "ride along" the white hole horizon (bottom-left I- to top-right I+), which is the black hole horizon on the future that our observer crosses; any light emitted later than at past infinity would meet the infalling observer a little further on her way into the interior region.  If this is the case, would that mean that the energy density at the future horizon is infinite and that the horizon should be unstable (notwithstanding the fact that this metric models empty space)?  (Similar energy divergence has been described and analyzed at the inner (Cauchy) horizon of  the other, more complicated black-hole geometries that feature time-like singularities.)

This question was prompted by . Notoriously, if you calculate the Schwarzschild coordinate time for anything, matter or light, to reach the event horizon the result is infinite. This implies that the universe ages by an infinite time before someone falling into the black hole reaches the event horizon, so could that person see the universe age by an infinite time?  To be more precise, suppose the observer starts falling from rest at time $t = 0$ and some initial distance $r > r_s$. If we wait for some time $T$ then shine a light ray at the falling observer. Will the light ray always reach the falling observer before they cross the event horizon? If not, what is the formula for the longest time $T$ that we can wait and still be sure the ray will catch the observer? If $T$ is not bounded it implies that observer could indeed see the end of the universe.  I can think of a qualitative argument for an upper limit on $T$, but I'm not sure how sound my argument is. The proper time for the observer to fall to the event horizon is finite - call this $\tau$. The proper time for the light ray to reach the horizon is zero, therefore the light ray will reach the observer before they cross the event horizon only if $T < \tau$. Hence $T$ is bounded and the observer won't see the end of the universe.  I think a more rigorous approach would be to determine the equations of motion (in the Schwarzschild coordinates) for the falling observer and the light ray, and then find the condition for the light to reach the falling observer at some distance $\epsilon$ from the event horizon. Then take the limit as $\epsilon \rightarrow 0$. In principle this seems straightforward, but in practice the algebra rapidly defeated me. Even for a light ray the radial distance:time equation isn't closed form (Wolfram claims it needs the $W$ function) and for the falling observer the calculation is even harder.


For my very simple registration page, I designed a very simple code for registration:    one textfield to enter the desired registration name and one button to submit it and run the phpscript which connects to sql   But for some reason the button is dead. Clicking on it doesnt do anything.  If i enter a name however and press enter w. keyboard, the code runs fine...  what am i missing?  thank you in advance for your help!!  <form action="#" method="post">         <div class="register">                 <input type="text" placeholder="username" name="name" class="field required" />                 <input type="button" value="register" />                         </div></form>  <?php if(!empty($_POST['name'])): ?> . . . go on

When looking at most sites (including SO), most of them use:  <input type="button" />   instead of:  <button></button>    What are the main differences between the two, if any? Are there valid reasons to use one instead of the other? Are there valid reasons to use combine them? Does using <button> come with compatibility issues, seeing it is not very widely used?


Let $A$ be a subset of $\mathbb N$  Prove that $\sum_{n\in A} \frac{1}{n}$ converges $\implies \frac{1}{n} $ #$(A \cap[1,n]) \to_{\infty} 0 $  For the moment, I can see the reciprocal is false by taking the set $A$ of all primes. (The question was to study the link between the two statements).  Do you have an idea for that? Reasoning by contradiction does not seem easy to write.

In this  to a question about a series, a theorem was stated:     If $A= \{a_i \}$ is a set such that $\sum_{i = 1}^{\infty} \frac{1}{a_i}$ converges, then $d(A) = 0$, where $d(A)$ is the  of the set.   My background in number theory is basically zero and all my attempts to prove this have been utterly unseccessful; would anyone please help me, or at least provide me with a hint to prove it?


I want the software to have the following features   resize pictures  Reduce picture quality change pictures format (Example png to jpg) Crop the photo   Most of these tasks should be done together  Sorry, my English language is faint

I want something similar to "preview" in macs.  For example: I want an image editor that ONLY does simple adjustments like increase/decrease contrast, saturation, exposure, color tinting.... rotate, flip vertically, flip horizontally, make black and white, change size or format, crop.  THATS IT.  I know gimp can do all those things but its a bit overkill.  I just want to right click an image, open it with this magical program i just described, do a few quick adjustments, and then save and exit.  Nothing really fancy.  Anyone know of anything like this?  Btw I am using ubuntu 12.04 :) It rocks and I am glad I switched from mac, i just need to replace this one piece of software.


In my book on functional analysis it is defined that a Universal Set is the union of all sets.  Is "union" used in the same sense as "set containing all sets"?  In other words, is the "set of all unions of sets" equivalent to "set containing all sets"?

I've heard of some other paradoxes involving sets (i.e., "the set of all sets that do not contain themselves") and I understand how paradoxes arise from them.  But this one I do not understand. Why is "the set of all sets" a paradox?  It seems like it would be fine, to me.  There is nothing paradoxical about a set containing itself. Is it something that arises from the "rules of sets" that are involved in more rigorous set theory?


Since updating to to 15.04 my spotify will not open. Any thoughts? I have tried the lib 11 solution but that has not worked

Yesterday I updated my Ubuntu from 14.10 to 15.04 but sadly i had to conclude that Spotify doesn't work anymore. Today I installed 15.04 and Spotify again but nothing has changed - Spotify isn't working.  For installing Spotify I have used the instructions on this Page:    How can I fix this?  (Sorry for my bad English, but I hope, this is understandable...)


The following code fragment is the core of a twitter bot using Twython.  I would like to know if I can combine the file read into the list comprehension as it seems rather convoluted to read a line in as a one-item list only to then create another multi-item list from that.  I've checked around and found some examples where a whole file is read in using readlines() for instance, but not one where slicing is involved too.  with open(tweet_datafile,'r') as smstweets:     bigtweet = smstweets.readline().strip()      text_entire = [ bigtweet[i:i+140] for i in range(0,len(bigtweet),140) ]  for line in range(len(text_entire)):     twitter.update_status(status=text_entire[line])   Notes:  Python 2.7, Linux. Python 3.5 is installed & available if needs be.   readline().strip() is used because I want to be able to read a file with lines  of arbitrary length and remove any EOL and whitespace (the last item of the list  could end up as spaces only; twitter will reject a status update of spaces, and I  haven't yet written any error-handling for this).   I read only the first line of the input file and then later in the code write the file back out minus that line. I decided this was the simplest solution for my limited skills as the bot won't run 24/7     I'm not a programmer, I've hacked this together using scraps of example code I  found lying about on Stack Overflow and elsewhere.  I'm trying to use quite simple  code and not rely on 3rd party libs apart from Twython. Generators and iterators appear as sorcery to me.

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


I have an Edirol UA-101 worked perfect on windows 10 and on Mac El Capitan. Now I switched to an Imac 2010 I5 8GB ram with high sierra but the system doesn't see it. How can i install the driver? In the system report i can see the UA-101 Connected on my USB port

I have an Edirol UA-101 and have recently upgraded to Mojave. I was running of High Sierra which supported the audio interface, however I am struggling to make it compatible with Mojave. Is there a driver that exists or a workaround?


I was recently told that in physics, if your equation contains an infinity, it usually suggests that something is wrong. As an example, the infinity around black holes (also) tells us that general relativity isn't the full picture of gravity. How true is this? And what logic underlies this methodology of verifying a theory? Edit to suffice  The answers don't seem to explain why; there is no analytical or empirical grounding as to why 'limits are(n't) okay'.

I'm a little confused about how to handle infinities in physics. On the one hand, I always here things like infinities are not physically tenable answers. GR can't answer anything about the origin of the universe because of singularities. Throw away the radial solution that gives an infinite potential when solving the Laplace equation in spherical coordinates. But then there are other times that the infinities are okay. For instance, it is usually okay to set the reference point for your potential at infinity. There are certain times in David Tong's quantum field theory lecture notes where he seems to almost to hand wave away infinities. So, philosophically, physically, and mathematically when are infinities okay, and when are they not okay?


We have about 15 people with more joining in. We'll have our overview group & several subprojects. We need tools to coordinate ourselves. Where do I ask about tool ideas? I've looked around and PM and alternatives to Basecamp seem to cost per user. We can afford to pay a flat year fee but that's all. Need: Chatting at top level, that shows up in member's email and stays on the tool. Chatting for each project, separate from the top level. Ideally, subtopic conversations within each project. File storage or area to put links to google docs & spreadsheets. List of members Search ability to search emails, search for a member's info. Pleasant, pretty easy to use interface. Most members aren't overly tech sophisticated. I've looked through the stack applications and found project management, but it was about how to, not tools to. I've looked through meta questions, but haven't seen any the seem related.

I have a list of requirements for a program, but I don't know what program meets these criteria. That's about general-purpose software, for example, not a programming IDE or statistical workbench, questions about which would certainly go to respective sites.  Is this question appropriate on Stack Overflow? Where should I ask about it? On Super User or elsewhere?


I am sure I hit some button or command by mistake. now when I'm trying to move a single vertex from object, it de-shapes the object instead of moving vertex and faces around it. here is the screenshot   Arrow is showing the pixel that I am moving. object is a simple cylinder divided from center.

My problem is that I sometimes lose the ability to independently translate or otherwise transform any parts of a single mesh. If I try, for example, to just translate several faces, edges, or vertices, then the entire mesh will stretch and displace itself in order to follow the translation. Or, alternatively, if I try to translate just one face then the whole mesh will move as if I'm translating in Object Mode.  I'm not really sure I know how to describe this problem properly. I don't even know how to reliably reproduce it. It seems to happen to any given mesh at random, and it doesn't stop happening to that mesh unless I delete and remake it.  I assume that I must be doing something wrong to cause this to happen. Does anyone have any ideas? Thanks.


I'm trying to make a level 1 Cleric. I'm going to use the Life Domain; at level 1 it says the Domain spells are Bless and Cure Wounds.  It also says they are always prepared and don't use up a spell slot when cast.    Can I use these two Domain spells as often as I use cantrips, or do I have limited number of uses per day/long rest?

I'm a little bit confused with the whole spell system and additions to them. If I pick for instance Tempest Domain Spell, are the spells additional to the other ones? (2 at level 1) So do that make it 3 spells? Does the domain add slots too?  And also, I've read about people choosing multiple domains, is that possible?


Let $f$ be a function $\mathbb R \to \mathbb R$ continuous on the   right at every point of $\mathbb R$. Show that the set of points of   continuity of $f$ is dense in $\mathbb R$.   Does anyone have a hint ? Using only basic results.

If $f:\mathbb{R}\to\mathbb{R}$ is a left continuous function can the set of discontinuous points of $f$ have positive Lebesgue measure?  I wondered this today, but made little progress. Thank you.


I am new to Python and I am using the Python console in QGIS 3.10 to make the coordinate grid on a vector layer. I had lots of vector files which are basically square shaped of 500 meters but all are of different location. I want to export this vector file but after making grid on top of that. I want to do it in Python as I can loop it and do all the process at once. My workflows goes like this:  Load vector layer Open map canvas Display vector layer in map canvas Make coordinate grid on top of that Export that as image  Here is my code and in output it is nit creating the grids am new to Python and I am using the Python console in QGIS 3.10 to make the coordinate grid on a vector layer. I had lots of vector files which are basically square shaped of 500 meters but all are of different location. I want to export this vector file but after making grid on top of that. I want to do it in Python as I can loop it and do all the process at once. My workflows goes like this: Load vector layer Open map canvas Display vector layer in map canvas Make coordinate grid on top of that Export that as image Here is my code and in output it is nit creating the grids fn = r"C:\Users\Asus\OneDrive\Documents\map secien\360m\parent  > grid\grid_no_A1.shp" layer = iface.addVectorLayer(fn, '', 'ogr') >  > from qgis.PyQt import QtGui   layers = > QgsProject.instance().mapLayersByName('grid_no_A1') layer = layers[0]  > project = QgsProject.instance() manager = project.layoutManager() > layoutName = 'Layout1' layouts_list = manager.printLayouts() > # remove any duplicate layouts for layout in layouts_list: >     if layout.name() == layoutName: >         manager.removeLayout(layout) layout = QgsPrintLayout(project) layout.initializeDefaults() layout.setName(layoutName) > manager.addLayout(layout)   > # create map item in the layout map = QgsLayoutItemMap(layout) map.setRect(20, 20, 20, 20) >  > # set the map extent ms = QgsMapSettings() ms.setLayers([layer]) # set layers to be mapped rect = QgsRectangle(ms.fullExtent()) > rect.scale(1.0) ms.setExtent(rect) map.setExtent(rect) > map.setBackgroundColor(QColor(255, 255, 255, 0)) > layout.addLayoutItem(map)   map.attemptMove(QgsLayoutPoint(5, 20, > QgsUnitTypes.LayoutMillimeters)) map.attemptResize(QgsLayoutSize(180, > 180, QgsUnitTypes.LayoutMillimeters)) >  >  > #grid = QgsLayoutItemMapGrid(layout) out = QgsLayoutItemMap(layout) grid = QgsLayoutItemMapGrid("hr", out ) grid.annotationEnabled() > grid.setIntervalX(0.1) grid.setIntervalY(0.1) > grid.setAnnotationEnabled(True) >  >  >  > layout.addLayoutItem(out) >  > layout = manager.layoutByName(layoutName) exporter = > QgsLayoutExporter(layout)   fn = > r'C:\Users\Asus\OneDrive\Documents\map secien\layout_export.jpeg' > exporter.exportToImage(fn, QgsLayoutExporter.ImageExportSettings())

I am new to Python and I am using the Python console in QGIS 3.10 to make the coordinate grid on a vector layer. I had lots of vector files which are basically square shaped of 500 meters but all are of different location. I want to export this vector file but after making grid on top of that. I want to do it in Python as I can loop it and do all the process at once. My workflows goes like this:  Load vector layer Open map canvas Display vector layer in map canvas Make coordinate grid on top of that Export that as image  The sample image of what i want is like this: Initial Vector layer:  After making Grids on that  Here is my code and in output it is nit creating the grids ` fn = r"C:\Users\Asus\OneDrive\Documents\map secien\360m\parent grid\grid_no_A1.shp" layer = iface.addVectorLayer(fn, 'grid_no_A1', 'ogr')  from qgis.PyQt import QtGui layers = QgsProject.instance().mapLayersByName('grid_no_A1') layer = layers[0]  project = QgsProject.instance() manager = project.layoutManager() layoutName = 'Layout1' layouts_list = manager.printLayouts()  # remove any duplicate layouts for layout in layouts_list:     if layout.name() == layoutName:         manager.removeLayout(layout)  layout = QgsPrintLayout(project) layout.initializeDefaults() layout.setName(layoutName)         manager.addLayout(layout)  # create map item in the layout map = QgsLayoutItemMap(layout) map.setRect(20, 20, 20, 20)  # set the map extent ms = QgsMapSettings() ms.setLayers([layer])  # set layers to be mapped rect = QgsRectangle(ms.fullExtent()) rect.scale(1.0) ms.setExtent(rect) map.setExtent(rect) map.setBackgroundColor(QColor(255, 255, 255, 0)) layout.addLayoutItem(map) map.attemptMove(QgsLayoutPoint(5, 20, QgsUnitTypes.LayoutMillimeters)) map.attemptResize(QgsLayoutSize(180, 180, QgsUnitTypes.LayoutMillimeters))   grid = QgsLayoutItemMapGrid(layout) out = QgsLayoutItemMap(layout) grid = QgsLayoutItemMapGrid("hr", out) grid.annotationEnabled() grid.setIntervalX(0.1) grid.setIntervalY(0.1) grid.setAnnotationEnabled(True)  layout.addLayoutItem(out) layout = manager.layoutByName(layoutName) exporter = QgsLayoutExporter(layout) fn = r'C:\Users\Asus\OneDrive\Documents\map secien\layout_export.jpeg' exporter.exportToImage(fn, QgsLayoutExporter.ImageExportSettings())


I'm trying to troubleshoot proofs for an article in a Springer (linguistics) journal. It'd be useful to test out some potential solutions myself rather than describing what I want to the typesetters and asking them to figure things out.  However, I can't figure out how to approximate the Springer math font. It looks similar in some respects (e.g., delimiters) to newtxmath, but other things look unlike any package I'm familiar with (e.g., the Greek letters, mathsf/mathtt).  Is there any way to approximate Springer's latex style (in particular, the math font), or is this impossible without whatever proprietary tools they're using?  Editing to add a photo of a representative formula. The delimiters and the alphabetic letters are very newtxmath, the \lambda and binary/relational operations are not.

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


From time to time, I run across questions . When I do, I usually vote to close (as I did here), but actually that does not seem sufficient to me.  I thought about whether it made sense to rollback the last edit to at least restore the question that was asked? Or maybe just leave a comment noting that you can delete your own questions? Or maybe flag it as very low quality? Or maybe just do what I did and wait till the question is deleted some time in the future?  Since I ran across some of these already, there probably is some consensus on how to deal with these.

I've just answered .  After accepting the answer, the OP then changed his question to another problem - which I know I shouldn't have answered (I should have requested as new question) but I updated my answer anyway.  The OP has now edited his question to remove the essence of either the original or new problem, and instead has a statement saying that the problem has been fixed.  What is the correct thing to do here?  Roll the question back so it's in its original state? Roll it back to the "new problem" state? Leave it and let him continue to get downvoted and/or closed by people who didn't see the original question?


I am leaving graduate school in May with a Master of Science in Mathematics.  For the past few weeks, I have been applying to full-time instructor/lecturer positions (mostly 2-year with a few 4-year).  I started with a list of ~40 and after whittling it down, have completed applications for 18.  The past few days I've been reading application blog posts and how-tos and the writers talk about applying to dozens of schools (even ).  And these are PhD holders with a lot more experience, which is making me worried.   There's a lot of information for PhD required professor positions so I wanted to ask-just how competitive is the teaching only scene?  I know that "applying to more places equals higher probability of getting a job" but I've more or less applied to everywhere I'd like to go.  However, I don't want to regret not lowering my standards and being unemployed for an entire year.

Since the start of the hiring season, I've seen around 20-30 job openings that looked interesting for assistant professor positions in my area of computer science.  However, it's somewhat awkward to ask my recommendation letter writers to send letters to 20 different places. (Is it not?) How many places do people usually target simultaneously?


Let be $a,b,c$ real numbers from $\left[ -1,1 \right]$ satisfying : $$1+2abc\ge a^{2}+b^{2}+c^{2}$$ Show that  : $$\forall n\in \mathbb{N} \ \ \ \ 1+2\left( abc \right)^{n}\ge a^{2n}+b^{2n}+c^{2n}$$ I tried using induction but I can't find  way to lower the term $a^{2n+2}+b^{2n+2}+c^{2n+2}$ properly. Any suggestions or hints This problem was on IMC 2010.

This problem was in IMC 2010.  Assuming $x,y,z\in [-1,1]$, suppose that $$1+2xyz\geqslant x^2 + y^2 + z^2$$ Can we infer from this that $$1+2(xyz)^n\geqslant x^{2n} + y^{2n} + z^{2n}$$ for any positive integer $n$?


Since stars and other objects are much closer to one another towards the centers of galaxies where dark matter tends to be found, it seems that it would follow that events forming gravitational waves (like LIGO detected) would occur more frequently. Since gravitational waves carry mass-energy, is it possible that a whole bunch of them interacting is responsible for all the mass that dark matter is said to be responsible for?

Dark matter is said to be present in the galaxies which helped galaxies to exist in the first place forming the glue to attach all the matter in the galaxies.  Given that dark matter never been seen or detected and only effect of which could be felt why do we believe it would be a particle? We have universe (almost) equally distributed in all directions with dark matter forming the skeleton for all the matter that could be seen. Can the dark matter be a illusion of gravitational waves interfering with each other forming this uniform interference pattern of galaxies/matter that is seen by us?  That would also explain the repulsive dark energy which would be the troughs in the gravitational waves indicating desructive interference in the gravitational waves.  Can we hope to simulating the above to come to the possible conclusion of source(two or many) of these gravitational waves that could give rise to skeleton of dark matter and dark energy which may be present in some higher dimentions?


Why is "ough" pronounced so differently in rough and though and thought?

There are cough, tough, bough, through, and though (and "hiccough", if you're not from the U.S.); each of which has a different pronunciation for the ending "-ough".  Why is this?  Edit for clarification: I'm trying to figure out why cough is spelled with an "-ough", if it's pronounced with an "-off".  And then tough, pronounced "tuff".  Why is that not spelled "tuff"?  Bough, through, and though should be spelled "bow", "thrue" (or "thru"), and "thoe".  Where did "-ough" come from?  And then hiccough.  Since that derives from cough, it should be pronounced "hickoff", but it isn't.


I frequently hear that galaxies are moving apart (in some instances, faster than the speed of light) because the fabric of spacetime is expanding.  The common analogy is two people standing on the surface of an expanding balloon. However, this makes no sense.  Since we are made of matter that exists within spacetime, shouldn't we (and all of our unit lengths) be expanding at the same rate?  In the balloon analogy, if the people are drawn onto the balloon, they will expand at the same rate as its surface. If you draw a coordinate grid onto the balloon, distances measured using those coordinates will stay constant as the balloon expands. So what's really going on?  Note: Astrophysicist Nick Lucid from Science Asylum  that it's because electromagnetic force holding our atoms together is so strong, it keeps us at the same size while spacetime expands. But that explanation makes no sense because it would mean the electromagnetic force gets stronger over time (drops off by less than $\frac{1}{r^2}$), and also doesn't explain why galaxies would be spreading apart.

I have looked at other questions on this site (e.g. "why does space expansion affect matter") but can't find the answer I am looking for.  So here is my question: One often hears talk of space expanding when we talk about the speed of galaxies relative to ours. Why, if space is expanding, does matter not also expand? If a circle is drawn on balloon (2d plane), and the balloon expands, then the circle also expands. If matter is an object with 3 spatial dimensions, then when those 3 dimensions expand, so should the object.  If that was the case, we wouldn't see the universe as expanding at all, because we would be expanding (spatially) with it.  I have a few potential answers for this, which raise their own problems:   Fundamental particles are 'point sized' objects. They cannot expand because they do not have spatial dimension to begin with. The problem with this is that while the particles would not expand, the space between them would, leading to a point where the 3 non-gravity forces would no longer hold matter together due to distance Fundamental particles are curled up in additional dimensions a la string theory. These dimensions are not expanding. Same problems as 1, with the added problem of being a bit unsatisfying. The answer seems to be (from Marek in the previous question) that the gravitational force is so much weaker than the other forces that large (macro) objects move apart, but small (micro) objects stay together. However, this simple explanation seems to imply that expansion of space is a 'force' that can be overcome by a greater one. That doesn't sound right to me.


Why was this question protected when no one answered? There are no 'thanks' 'me too' answers and my answer was posted today.

Questions can be protected (i.e. marked "highly active").   What does it mean for a question to be protected? Why are some questions protected? Who can protect and unprotect questions? Who can answer a protected question? How are protected questions displayed? When should I protect or unprotect a question? When does the Community user protect a question?


An article is to be placed inside the html file instead of {{post.content}} but the html file does not display the results correctly htmlcode: {% block body %}   {%set fname = 'img/' + post.img_file%}

{{ post.title }}

{{post.tagline}}
          Posted by            Admin            on {{post.date}}

  {% endblock %}  -- article in database-- FORTNITE: BATTLE ROYALE Price: Free Fortnite by Epic Games has been a great game over the years. Streamers, mostly on Twitch and YouTube play this game very often. It is a battle royale game in which 100 players come in one battlefield to fight against each other. The fun fact is that, this is the first ever battle royale game in which players can build walls to protect themselves from their opponent. This game also has different characters with different abilities. The thing that makes this game more interesting is that, this game has many emotes which are fun to watch.  Pros:  --article in flask app output-- FORTNITE: BATTLE ROYALE Price: Free Fortnite by Epic Games has been a great game over the years. Streamers, mostly on Twitch and YouTube play this game very often. It is a battle royale game in which 100 players come in one battlefield to fight against each other. The fun fact is that, this is the first ever battle royale game in which players can build walls to protect themselves from their opponent. This game also has different characters with different abilities. The thing that makes this game more interesting is that, this game has many emotes which are fun to watch. why is it so?why is the price line coming inder the fortnite heading? why does it render empty spaces as only 1 space character

For the longest time, I have wanted to understand why the browser adds an empty space between rendered HTML elements when there is a NewLine between them, for example:  HelloWorld   The html above will output the “HelloWorld” string without a space between “Hello” and “World”, however in the following example:  Hello World   The html above will output a “Hello World” string with a space between “Hello” and “World”.  Now, I have no problem accepting that this is just the way it works period, but the thing that bugs me a little is that I was always under the impression that spaces (or newlines) between the html elements would not matter at the time when the browser rendered the html to the user.  So my question is if anyone knows what the philosophical or technical reason behind this behavior.  Thank you.


Which one is correct when referring to a group of people that perform quality assurance? I can see that both are used in the Internet: QA:  QA are the gatekeepers, but everyone in the agile team should have the same responsibility for the quality of the product. DevOps and QA are often working side by side. If there are no unit tests, QA are left to test as much of the affected code as they can.  QAs:  It's important to note that QAs are interested in making any product user-friendly. QAs are responsible for improving the quality of the development process. The objectives of the QAs are to promote quality assurance at an organisational level.

In computer science we discuss an abstract machine called a "deterministic finite automaton". The standard initialism for this term is "DFA". This makes sense in the singular usage of the initialism.  However, the pluralization of the word "automaton" is "automata". One speaks of "an automaton" or "many automata". Consequently, it seems intuitive to form an initialism of the phrase "deterministic finite automata" as "DFA".   This does not seem correct, as "DFA" could be either plural or singular. On the other hand, "DFAs" also does not seem correct because it would seem to expand to "deterministic finite automatons", a phrase which no self-respecting computer scientist would ever utter.   This appears to be a duplicate of the question here   But that question was never clearly resolved. What to do?


My problem is that the ToC is appearing as a section inside the ToC and I have no idea why since it has never happened in previous documents.    Preamble:  \documentclass[a4paper,11pt]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{array} \usepackage{multirow, array} \usepackage{amsmath} \usepackage{mathtools} \usepackage{epstopdf} \usepackage{cancel} \usepackage{listings} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{tensor} \usepackage{amscd} \usepackage{xy} \usepackage{psfrag} \usepackage{cite} \usepackage{xcolor} \usepackage{enumerate} \usepackage{calc} \usepackage{graphics} \usepackage{epsfig} \usepackage{miniplot} \usepackage{graphicx} \usepackage{wrapfig} \usepackage{subfigure} \usepackage{rotfloat} \usepackage{mathrsfs} \usepackage{pdfpages} \usepackage{nicefrac} \usepackage{float} \usepackage{booktabs} \usepackage{lscape}  \usepackage[hidelinks]{hyperref} \usepackage{indentfirst} \usepackage{anysize} \papersize{29.7cm}{21cm} \marginsize{4.5cm}{3.0cm}{2cm}{1.5cm} \usepackage[output-decimal-marker={,}]{siunitx} \usepackage{titlesec} \usepackage{subfigure} \usepackage[dotinlabels]{titletoc} \titlelabel{\thetitle.\ } \textwidth=175mm \usepackage{fancyhdr} %%cabeceras \usepackage[square,numbers,comma,sort&compress]{natbib} \usepackage{nomencl}                  \usepackage{ifthen} \renewcommand{\nomgroup}[1]{%     \ifthenelse{\equal{#1}{G}}{\item[\textbf{Greek Symbols}]}{%      \ifthenelse{\equal{#1}{L}}{\item[\textbf{Latin Symbols}]}{%     \ifthenelse{\equal{#1}{A}}{\item[\textbf{Acronyms}]}{}}}} \makenomenclature \pagestyle{fancy} \usepackage{lipsum} \usepackage{caption} \usepackage{tocbibind} \usepackage[toc,page]{appendix} \captionsetup{labelsep = period} \renewcommand{\figurename}{Fig.} \renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}} \newcommand{\un}[1]{\;\mathrm{#1}} \renewcommand{\contentsname}{TABLE OF CONTENTS} \renewcommand\listfigurename{LIST OF FIGURES} \numberwithin{equation}{section} \begin{document} \tableofcontents \newpage \listoffigures   Thank you

I want to remove the self-reference of the ToC in Latex book class as in the picture below    Can you help me?


var gh = new List<SomeClass>>();  Let's say    string SomeClass="Car";  How can I intialize this list using only name I am trying to do something like gh = new <List<Car>>();

The title is kind of obscure. What I want to know is if this is possible:  string typeName = <read type name from somwhere>; Type myType = Type.GetType(typeName);  MyGenericClass<myType> myGenericClass = new MyGenericClass<myType>();   Obviously, MyGenericClass is described as:  public class MyGenericClass<T>   Right now, the compiler complains that 'The type or namespace 'myType' could not be found." There has got to be a way to do this.


In a board, you have $13$ White round pieces, $15$ Black round pieces, and $17$ Red round pieces. In each round you can choose two different color pieces and change them with two other pieces of the remaining color. Doing this every round, it's possible to get all the pieces to be the same color ?   I think is not possible, and I think that it has to be with the case that the number of pieces is separated by $2$. That is, let $3x$ be the number of total pieces divided 3, that is $x=15$. The problem I see is that:  In this case $White=x-2,Black=x,Red=x+2$ $$(\underbrace{x-2}_\text{White},\underbrace{x}_\text{Black},\underbrace{x+2}_\text{Red})$$  In this configuration is not possible to get to $$(x,x,x)$$   From this I can get to all from $1 $ Color $$(3x,0,0)$$

There are 10 red, 11 blue, 12 green chameleons. Sometimes, two   chameleons meet. If they are the same color, nothing happens. If they   are different colors, they will both change to the third color. Can   all chameleons ever be the same color?   Doesn't seem like it is possible but not quite sure how to prove it. Seems like it might have something to do with modular arithmetic.


On some SE sites, the vote counts for linked and related questions get wrapped. I cannot remember seeing it before.  Not affected are Stack Overflow and Server Fault. Affected are:  Askubuntu:    Sec.SE ():    Browser: Firefox 28 on Arch Linux.

The score for the 4 questions are 111, 1218, 261 and 5 respectively, but they display 2 digits per line. This is an obvious bug in design.


I just checked one random edit and saw this:  I think the reputation should be shorted to 889k. Anway that bronce badges are overflowing the box.

The user card in the revision list, for example , shows the exact amount of reputation:  This is not consistent with how the flair works on (all?) other places in the site, e.g. under a post. There, the amount is displayed in units of thousands (k):  (or, in , millions (m).) It used to be consistent, see e.g. :


Im not a computer geek, but i wish someone will help me to install the latest ubuntu os to my lenovo laptop with windows 8 pre installed. If i removed windows 8 as my os can i still use my other programs such as autocad, photoshop, sketch up with ubuntu?

Can .exe and .msi files (Windows software) be installed in Ubuntu?


Hello i want to do a text with where is changing number . but when its big number you cant read it . so i want to make it every 3 digits will space.  For example 32874123 will be 32 874 123 . Thank you . Ive seen it there:  but its in javascript .  I have trying to do it with lenght or something but it didnt work for me .  Thank you for all your help .

I want to add a comma in the thousands place for a number.     String.Format()?


Recently, I purchased a lot of meal prep containers. I want to keep my refrigerator organized, so I've been measuring food ahead of time. When it comes to fruits, some are easier to prep than others. For example, I can take my grapes, weigh them and put them in containers creating my own serving sizes. Watermelon is also easily portioned. Some fruit, however, can be problematic. How can I, if possible, portion fruits which brown (such as apples, pears, etc.) ahead of time without affecting their flavor?

Apples and bananas start to blacken and sour in taste soon after cutting, which spoils the presentation of dish, especially in fruit salads. How can I avoid this?  Also, does browning impact nutritional value?


I want to use UBUNTU in my computer.      ASUS EEE PC   Intel Atom dual core processor   1GB RAM 360GB HDD  Will it work without glitches and slow performance with this?

I'm thinking about installing Ubuntu Desktop, but I don't know what flavor is the best for my system. What are the minimum and recommended hardware requirements? What kind of CPU? How much memory? Should I have Hardware Acceleration? What flavor should I use?  This is an attempt of a canonical answer. My answers have the "official  requirements", the recommended are a mix of official sources and opinion based (along with the answer it's told the source). You can comment or edit if you feel that the information is obsolete or incomplete. It is a good rule of thumb that any system capable of running Windows Vista, 7, 8, x86 (Intel) OS X will almost always be a lot faster with any Ubuntu flavor even if they are lower-spec than described below.


I'm currently making a mind map of the Harry Potter universe, but when I got to filling in the houses of Hogwarts, I realised that I barely know any names.  What are the names of everyone from Harry's year?

J. K. Rowling had released ( and then ) the original draft for the names of the students in Harry's year.  Not counting the ones crossed out, these are the original forty names:   Abbott, Hannah Bones, Susan Boot, Trevor Brocklehurst, Mandy Brown, Lavender Bulstrode, Millicent Corner, Michael Cornfoot, Stephen Crabbe, Vincent Davis, Tracey Entwhistle, Kevin Finch-Fletchley, Justin Finnigan, Seamus Goldstein, Anthony Goyle, Gregory Granger, Hermione Greengrass, Queenie Hopkins, Wayne Jones, Megan Li, Sue Longbottom, Neville MacDougal, Isobel Macmillan, Ernest Malfoy, Draco Malone, Roger Moon, Lily Nott, Theodore Parkinson, Pansy Patel, Madhari Patel, Mati Perks, Sally-Anne Potter, Harry Rivers, Oliver Roper, Sophie Runcorn Smith, Sally Thomas, Gary Turpin, Lisa Weasley, Ronald Zabini, Blaise   Which ones ended up becoming characters? What were their final names? Which ones have yet to be appear?


I want to use itoa() in C . Which library do I have to download?  I would prefer to include a specific library instead of using my own code, but that may be wrong.  I have seen several examples of how to use itoa() but my problem is how to get the library file.

itoa() is a really handy function to convert a number to a string. Linux does not seem to have itoa(), is there an equivalent function or do I have to use sprintf(str, "%d", num)?


According to my , I have voted 41 times today.  The site is only two days old, so this isn't some accidental mis-allocation of previous votes -- 80 should be the maximum number of votes for the life of the account, but I have apparently voted 81 times.  I wasn't paying close attention, but nothing stands out in my memory, like odd behavior when casting votes.    How is this possible?

And by someone, I mean that evil feline WesleyDavid:        That screenshot was taken just before 4pm PST, i.e. just before 0000 UTC.  That shows KittehHead's votes for the month, which is the same as for the day since it's March 1st.  Just to be sure it wasn't that SE had the time wrong, I tried upvoting something and got the expected "Daily Vote Limit Reached, Please Vote Again in 6 minutes."  So how did Kitteh^H^H^H^H^H^HWesley get 42 votes in one day?  ADDED: It's getting worse... Now it's March 2nd, and Wesley/Cat has 3 extra votes:        Now I finally got an extra vote (take that evil kitteh!), but it hasn't helped me understand why:


The main question is how to make space in root (/). After this I want to resize the root partition, this topic can be found on:  or elsewhere.  I'm a little bit confused. No command seems to work for there is no space. I tried some random easy-way solutions but the problem persists. Here is the description of what I did:  1) It started giving me advices of “Little space on root, try uninstall software”  2) I removed some, and the Software Update continued working.  3) Eventually the root filled and now and for over two weeks the update software isn't working. I forced to upgrade with sudo apt-get update and sudo apt-get upgrade and not working. It gives me this message (auxiliar repositories):    4) At some point I tried to do some random reading on forums and enter command like this: sudo apt-get clean  and gave me a file in: /var/cache/apt/archives/lock.txt and problems with dependencies, repositories and dpkg.  5) When I run sudo apt-get -f install this is the current exit:  $$$$$$$$:~$ sudo apt-get -f install [sudo] password for $$$$:  Leyendo lista de paquetes... Hecho Creando árbol de dependencias Leyendo la información de estado... Hecho Corrigiendo dependencias... Listo Se instalarán los siguientes paquetes extras:   linux-headers-3.13.0-61 linux-headers-3.13.0-61-generic Se instalarán los siguientes paquetes NUEVOS:   linux-headers-3.13.0-61 linux-headers-3.13.0-61-generic 0 actualizados, 2 se instalarán, 0 para eliminar y 60 no actualizados. 2 no instalados del todo o eliminados. Se necesita descargar 0 B/9.575 kB de archivos. Se utilizarán 76,5 MB de espacio de disco adicional después de esta operación.    ¿Desea continuar? [S/n] s dpkg: aviso: falta el fichero de lista de ficheros del paquete "gnome-power-manager", se supondrá que el paquete no tiene ningún fichero actualmente instalado dpkg: aviso: falta el fichero de lista de ficheros del paquete "qtdeclarative5-qtfeedback-plugin:i386", se supondrá que el paquete no tiene ningún fichero actualmente instalado dpkg: aviso: falta el fichero de lista de ficheros del paquete "libio-string-perl", se supondrá que el paquete no tiene ningún fichero actualmente instalado (…) And continues with 2369 problems like this (all packages not found?)  6) Over this point I realized I had the root full and needed to liberate space and maybe extend the size of partition, for which I read I will need some 200 MB of free space. I don't remember how but I entered two commands that told me how much used/total space I had, noting it was full.  7) And now when I try to not mess with commands I don't really know (late), trying to uninstall software gives me this exit:  $$$$$$$$$:~$ sudo apt-get --purge remove openshot [sudo] password for $$$$: Leyendo lista de paquetes... Hecho Creando árbol de dependencias Leyendo la información de estado... Hecho Tal vez quiera ejecutar «apt-get -f install» para corregirlo: Los siguientes paquetes tienen dependencias incumplidas:  linux-headers-generic : Depende: linux-headers-3.13.0-61-generic pero no va a instalarse E: Dependencias incumplidas. Intente «apt-get -f install» sin paquetes (o especifique una solución).  Any suggestions? I have installed programs not found on Software Center and took me some time and effort, I would like not to format or reinstall Ubuntu if possible. Thanks in advance.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


For last few days I am trying to figure out the ways of implementing this type of integration using OAuth.  I've got a community from which I wanna make requests to JIRA to create/get/delete/edit issues. I have no problem with making these requests, using basic authentication, but I am tasked to do it, using OAuth.  So, I've got several questions:   What needs to be configured (on org and on JIRA side)? What data do we need to store in org for that?   Thanks, in advance.

I am banging my head against the wall from the last couple of weeks to just set up the authentication between JIRA cloud and salesforce, I didn't get any proper documentation to create a connected application in Jira to generate client Id and secret so that I can set up an auth provider in salesforce to use it with the named credentials, if I am not following the right path, please feel free to correct me.       In one of my unsuccessful attempts, I tried to generate OAuth credentials (currently in beta in Jira) and used the same in AUTH provider in salesforce but still, when I save named credentials I get identity provider error and also I am not sure on what exactly I need to pass for Authorization Endpoint URL and Token End Point URL       I would highly appreciate if someone would help me to generate client id secret from JIRA other then generating the same by clicking on generate OAuth credentials button on Jira as this has limited access and also I would be very grateful if someone also helps me with Authorization Endpoint URL and Token End Point URL  here is my Auth provider     Named Credentials:    And when I save the named credentials I get below error     I have generated client id secret by clicking on OAuth credentials beta and this doesn't seem the right way to generate client id and secret as it is in beta and provides only limited access.  JIRA Documentation is not at all helpful.    If I generate my client id and secret from the below link     then I get a different error as shown below.


It has recently occurred to me that I have been in intermittent contact with a second cousin who shares my father Y-DNA (subject to any mutations in the last two generations, which should be slight).  I don't believe he has ever had or considered Y-DNA, and I would like to pay for a test for him, as I have no other identified direct male descendants of my father's male line. My father, his siblings, their father and their father are all deceased and I can't identify any other candidate.  What should I say when broaching the subject to him to reassure him about his privacy/keeping control of the results and persuade him to test?   This is similar to  but the difference from that question is that I would particularly like to describe to him clearly and simply what the real risks of DNA testing are, and why some perceived risks are not risks at all. Some of these risks might be privacy risks; others might be risks from what he learns.

In my family we have a DNA contradiction – two cousins (at about the 4th cousin level) took a Y-DNA test, but did not match and had two completely different haplogroups.   Since then, I have traced living cousins with the same surname – the only ones left living that I am aware of – and I would love to pay to have them tested to see if we can figure out where the non-paternity event (NPE) or other event happened (i.e. this new cousin could help us determine which line the NPE occurred in depending on which cousin he matches).   Does anyone have a sample letter, or know the best way to go about asking a distant cousin for DNA?   I have their address and am planning to write a letter, but I can't imagine receiving such a letter, so I am not quite sure how to ask without scaring them off.


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

I've seen examples like this:   public class MaxSeconds {    public static final int MAX_SECONDS = 25; }   and supposed that I could have a Constants class to wrap constants in, declaring them static final. I know practically no Java at all and am wondering if this is the best way to create constants.


I use archlinux and manjaro. I recently bought an external 2TB toshiba stor.E canvio, and I planned to use it as back up. I used gpt layout and partitioned it with luks and ext4. Dolphin reports 6% full, whilst only 20kb are used. why is it so? I decided to use encrypted zfs/btrfs on it, but I don't know any of it's basis and jargon. what's the easiest way to do so.

When I'm using the command "df -h" I'm having the following output :   Filesystem                 Size   Used  Avail Use% Mounted on /dev/mapper/fedora-root    20G    9,4G  8,8G  52% / devtmpfs                  1,9G       0  1,9G   0% /dev tmpfs                     1,9G    1,2M  1,9G   1% /dev/shm tmpfs                     1,9G    1,0M  1,9G   1% /run tmpfs                     1,9G       0  1,9G   0% /sys/fs/cgroup tmpfs                     1,9G    108K  1,9G   1% /tmp /dev/sda1                 477M    129M  319M  29% /boot /dev/mapper/fedora-home   916G    279G  591G  33% /home   Or it says my root is of 20G with 9.4 used and 8.8 still available it's 2G that disappeared. I know a very similar question as been answered here  and I'm just wondering if the reason could be the same here since I'm using LVM.  If not is there any way to reclaim that space that disappeared because for home there is an amazing 46G that disappeared.


I tried going to the the links mentioned below. I tried changing the servers. Still i am getting the Hash Sum MisMatch Error. I tried updating using the terminal and using the software updater.  How do i proceed to  update?

When I check for updates, I get a "Failed To Download Repository Information" error.   This is what comes up under details:   W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources  Hash Sum mismatch,  E: Some index files failed to download. They have been ignored, or old ones used instead.


I made a png file in Photoshop that only has R/G/B/A channel like this:  Then I'm going to use this as my texture in Blender in shader editor:  The final result is like this all black, where the text should've been in the red area,because I only unwrapped the center face   Why is mesh all black, even the left corner dots that represents all the rest faces, are black, the area in the texture is transparent, did blender treat transparent area as Black? The Png image doesn't have Alpha channel, only R/G/B, can some one help me to understand。 Edit:This is my original image,with only R/G/B channel, no Alpha channel, you can check how it looks in Photoshop from above checkerboard screen shot, the background is transparent, though no Alpha channel, no 4Th channel, it 's transparent and I suppose the RGB for the transparent is NULL, I'm not sure if transparent pixel can be R:null,G:null,B:null, if you know what I mean, it is common to control by using Alpha channel, but Photoshop can save transparent as NO RGB VALUE

I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be.    I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this:    So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this:    (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position).  I also tried UV mapping, but then the whole object became black with the features repeated all over.   Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1).


I had several ideas of proving that My main idea was to prove we gonna have same numbers that we just gonna summarize in different order. (Which, in fact, wasn’t correct) Firstly I was trying to prove that there don’t exist a tournament that has two vertexes with equal $\operatorname{indeg}$. In fact, I found easy counterexample. Secondly I was trying to prove that there always exist “asymmetrical” vertex. What I mean is: let first vertex have $\operatorname{outdeg}$ that equals $a$, then (by my assumption) there exists vertex that has $\operatorname{indeg}$ that equals $a$. Found counterexample pretty easy either. So, I got stuck... All help will be much appreciated!

Let $G$ be a directed graph with $n$ vertices. Assume that if we forget the directions of the edges of $G$, then we obtain the complete undirected graph $K_n$. Let $v_1, v_2, \ldots, v_n$ be the $n$ vertices of $G$. Prove that: $(od(v_1))^2+(od(v_2))^2+ \cdots + (od(v_n))^2 = (id(v_1))^2+(id(v_2))^2+ \cdots + (id(v_n))^2$  Here, "od" means "outdegree" and "id" means "indegree".


After reading this , is there any possibility to list out all the suspended users from StackOverflow and their suspension days?

Can users be filtered by their "suspended" status? I'd like to see a list of all users who are currently suspended.


I was asked this in an interview.WHat is the complexity of this method??  static int magic(int n) {     System.out.println( count+" "+ n);     count++;     return (n < 2) ? n : magic(n - 1) + magic(n - 2); }

I understand Big-O notation, but I don't know how to calculate it for many functions. In particular, I've been trying to figure out the computational complexity of the naive version of the Fibonacci sequence:  int Fibonacci(int n) {     if (n <= 1)         return n;     else         return Fibonacci(n - 1) + Fibonacci(n - 2); }   What is the computational complexity of the Fibonacci sequence and how is it calculated?


I would like to know how to put text in a textbox when the page loads. Example: If I have a login page, I would have 2 textboxes named "username" and "password". When the page loads I want the the textbox to load with "username" written inside, so I won't have to put a label for that outside. But when the user clicks inside textbox it should disppear. How do I do this?

I want the search box on my web page to display the word "Search" in gray italics. When the box receives focus, it should look just like an empty text box. If there is already text in it, it should display the text normally (black, non-italics). This will help me avoid clutter by removing the label.  BTW, this is an on-page  search, so it has no button.


It's a great story I read several years ago, and was written in the form of newspaper articles and short narrative.  The humans receive a transmission from an alien race asking for help, and they put their differences aside and use all the nukes to make a spaceship. The ship gets to the coordinates only to find that the planet isn't there, but a galactic organization appears and says that this was all a test to see if the humans were suitable to enter the galactic affairs.

I read a story years ago whose major themes stuck with me but I can't remember the name or author. I'm almost certain it was a short story. From what I can remember, the plot went roughly as follows:  Humans (on Earth?) receive a distress signal in the form of a video transmission from a peaceful race. They may have looked like cute furry elephants or something. I think they were from Barnard's star system but this story isn't listed in Wikipedia's page of stories associated with each system. Humans then mounted a huge rescue/aid effort and built a ship and sent it out to the planet. When they got there, they realize they were deceived and the transmission was fake. They get taken into a giant ship or something and are addressed by a huge federation of different alien races. The federation was peaceful but I think they had some strange policy that made them do this. That's all I remember.


I am running Ubuntu 13.04 64-bit on Intel® Core™ i5-2500K CPU @ 3.30GHz × 4 PC.  When I go to system settings and click on sound, the screen keeps flashing between Analog Output and Headphones in the Play sound through section of the Output tab. The screen doesn't stay fixed, and I cant click on any of the buttons.   When I try to play music the sound is extremely choppy. In terminal I opened alsamixer, and the Surround, Center LFE and Side bars keep alternating between 0 and 100 (regardless of if my Logitech X-540 5.1 surround sound speakers are plugged in or not).   I know the speakers work fine because I have windows 7 installed on the same PC and it worked immediately without any configuration.   The ALSA Information Script from my PC can be found here:   I have tried uninstalling and reintalling alsa-base and pulse audio but that is not working. I also tried several suggestions including: .  Any ideas?

After installing 12.04 Precise on my PC, I have encountered some problems with audio output which did no occur when using Lucid.   The sound is choppy and distorted in the lower tones. As I have no experience in setting/testing and doing anything with Audio Devices, I need help even to diagnose the problem.  Update  $ sudo lshw -c multimedia    *-multimedia           description: Audio device        product: Radeon X1200 Series Audio Controller        vendor: Hynix Semiconductor (Hyundai Electronics)        physical id: 5.2        bus info: pci@0000:01:05.2        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi bus_master cap_list        configuration: driver=snd_hda_intel latency=32        resources: irq:19 memory:fdafc000-fdafffff   *-multimedia        description: Audio device        product: SBx00 Azalia (Intel HDA)        vendor: Hynix Semiconductor (Hyundai Electronics)        physical id: 14.2        bus info: pci@0000:00:14.2        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm bus_master cap_list        configuration: driver=snd_hda_intel latency=32        resources: irq:16 memory:fe024000-fe027fff   Update 2  It has something to do with the volume. If the audio is quiet it is not choppy, if the sound is loud then it begins to be choppy.


Suppose $\{a_n\}_{n=1}^{\infty}$ is a sequence of real numbers (suppose also positive for simplicity) so that $$\sum_{n=0}^{\infty} a_n^2 = \infty$$ i.e. the sum diverges.  Can you necessarily find a square summable sequence $\{b_n\}_{n=1}^{\infty}\in\ell^2$ so that $\sum_{n=0}^{\infty} a_n b_n = \infty$ ?

I'm trying to prove the following:     If $(a_n)$ is a sequence of positive numbers such that $\sum_{n=1}^\infty a_n b_n<\infty$ for all sequences of positive numbers $(b_n)$ such that $\sum_{n=1}^\infty b_n^2<\infty$, then $\sum_{n=1}^\infty a_n^2 <\infty$.   The context here is functional analysis homework, in the subject of Hilbert spaces.  Here's what I've thought:  Let $f=(a_n)>0$. Then the problem reads: if $\int f\overline{g}<\infty$ for all $g>0,g\in \ell^2$, then $f\in \ell^2$. This brings the problem into the realm of $\ell^p$ spaces.  I know the inner product is defined only in $\ell^2$, but it's sort of like saying: if $\langle f,g\rangle <\infty$ for all $g>0,g\in \ell^2$ then $f\in \ell^2$.  I read this as: "to check a positive sequence is in $\ell^2$, just check its inner product with any positive sequence in $\ell^2$ is finite, then you're done", which I find nice, but I can't prove it :P  From there, I don't know what else to do. I thought of Hölder's inequality which in this context states: $$\sum_{n=1}^\infty a_nb_n \leq \left( \sum_{n=1}^\infty a_n^2 \right)^{1/2} \left( \sum_{n=1}^\infty b_n^2 \right)^{1/2}$$  but it's not useful here.


I have a client who is a event organizer and his clients are both corporates as well as individuals. I have a few questions on how should i organize his accounts   When should one use person accounts?   Do we need to specifically enable person accounts? If so how can we do it? When a lead is converted how does it decide if the account needs to be a person account or Business account?   Thanks

A stock Salesforce org is geared toward B2B companies, but I work in Higher Ed and we're B2C-focused.  There seem to be three main B2C options available:   Person Accounts Nonprofit Starter Pack (NPSP) 1-to-1 model NPSP bucket model   Why would I choose one option over the other?


Could you please explain for me what's the difference between model prediction and model estimation ?  What is the difference between a prediction interval and an estimation interval?

For example, I have historical loss data and I am calculating extreme quantiles (Value-at-Risk or Probable Maximum Loss). The results obtained is for estimating the loss or predicting them? Where can one draw the line? I am confused.


For $\left(a,b\right)) \in \left(\mathbb{R}^{*+}\right)^2$. Let $\left(I_n\right)_{n \in \mathbb{N}}$ be the sequence of improper integrals defined by $$ \left(\int_{a}^{b}e^{-nt^2}\text{d}t\right)^{1/n} $$ I'm asked to calculate the limit of $I_n$ when $ \ n \rightarrow +\infty$.  I've shown that $$ \int_{x}^{+\infty}e^{-t^2}\text{d}t \underset{(+\infty)}{\sim}\frac{e^{-x^2}}{2x} $$ However, how can I use it ? I wrote that $$ \int_{a}^{b}e^{-nt^2}\text{d}t=\frac{1}{\sqrt{n}}\int_{\sqrt{n}a}^{\sqrt{n}b}e^{-t^2}\text{d}t $$ Hence I wanted to split it in two integrals to use two times the equivalent but i cannot sum them so ... Any idea ?

Could someone help me prove that given a finite measure space $(X, \mathcal{M}, \sigma)$ and a measurable function $f:X\to\mathbb{R}$ in $L^\infty$ and some $L^q$, $\displaystyle\lim_{p\to\infty}\|f\|_p=\|f\|_\infty$?    I don't know where to start.


I'm modelling a minigolf hole but when i create the hole with boolean modifier i see a little drop around it. This cause the ball in the game not rolling straight as it should. How can i solve this problem?

If I wanted to add a hole into an object e.g. Create a tube  Is there an easy way to do that?  I haven't seen anything regarding negative space so far in Blender, and it would be really helpful for my project  Thanks in advance!


Need help in proving (by induction or by combinatorics) the following statement   Is it possible to do it by induction? there are 3 veriables and I think I cannot easily do it by induction. Correct?  I am not sure from where even to begin...

A known identity of binomial coefficients is that $$ \sum_i\binom{m}{i}\binom{n}{j-i}=\binom{m+n}{j}. $$ Is there a combinatorial proof/explanation of why it holds? Thanks.


I'm trying to using submit post in ajax ( properly jQuery .load() function ) but I have a problem because after the page .load (see below) submit  button >>to .click(function() doesn't work. Does anyone have any idea how to solve that? Here is my entire code: <script src="{$sitepath}/scripts/jquery.min.js"></script>      <div id="newswhite">          <form name="cform0" id="cform0" method="post" enctype="multipart/form-data">     <textarea name="text1" class="form-control"></textarea>     <input type="submit" id="submit_comment" class="btn" name="submit" value="comment">     </form>          </div>               <script>     $("#submit_comment").click(function() {         var url = "some.php";          $.ajax({                type: "POST",                url: url,                data: $("#cform0").serialize(),                 success: function(data)                {                     $("#newswhite").load(" #newswhite >*");             //$("#newswhite").html(data);               }              });         return false;     });     </script>  It all works just once. After .load I have to refresh the page by browser... Any idea?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I'm fairly new to python so I'm sorry if this is a fairly noob question. But I'm writing a 2D list composed of data from .txt file with a for loop (all that code works), but the loop seems to be overwriting all my previously written data each time to passes though even though I'm   This isn't my actually code, but sum up the problem I'm having.  stuff = [[None]*3]*10  for index in range(10):     stuff[index][2]=index  print(stuff)  [[None, None, 9],[None, None, 9],[None, None, 9],[None, None, 9],[None, None, 9],[None, None, 9],[None, None, 9],[None, None, 9],[None, None, 9]]   Why are all the values being returned as 9, why what do I have to do to get it to return as  [[None, None, 1],[None, None, 2],[None, None, 3],[None, None, 4],[None, None, 5],[None, None, 6],[None, None, 7],[None, None, 8],[None, None, 9]]

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I added a subdiv modifier, but some parts of my mesh still look bad; in the preview, however, it looks a lot better. Why is this?

I wonder if this is a bug, or if I missed something... When a light hits tangentially convex surfaces with "smooth shading", the shadow on this surface seems to "partially ignore" the smoothness of the surface. Here is an example with a simple cylinder :    On the left, a cylinder with "flat shading". Everything's ok. On the right, the same with "smooth". We can see an edge, bad shadowed.  With or without the "Edge split" modifier, no matters, the edge is still there. The shader is a simple white diffuse shader with no texture nor displace.  I have to add a subsurf modifier with at least 2 levels, which will insanely increase the vertex count... And I can't do that for my project.  I hope someone already saw it, and have a little tip to share. Or if someone already know it's a bug, or a limit of the current Cycles renderer ?


For how long should alerts be displayed? By alert I mean messages such as "You are now logged out." in this page:    Normally, they disappear when the user clicks on some link and the page reloads, but this is a single-page-application, the page never reloads (unless the user decides to do so manually).  So, for how long should it be displayed? Any amount of time feels both very short and very long. Leaving it forever (until the user closes it) might not be a good idea either.

For our intranet application we have little notification messages (toasts) that indicate successful operations like "information saved," "logged out" etc. Most of them are not important enough to require a modal operation (like Stack Exchange's "click to close" windows) so they close automatically after 2500ms and I'm trying to make them disrupt the user as little as possible. They are however important to present as users need confirmation an action was successful as it may be part of a repetitive or complex workflow.  I want to make sure they're readable and understandable within the time frame so I was wondering if there was any research on how long it takes people to read information especially in a "pop up" style context. It's not actually a pop up window, more like SE's notification bar but it automatically goes away. If I could ballpark how long to expect reading to take it would help tune the duration of the message and the length of messages.


-- start reading from the edited part --  When running a multinomial regression the two values we are really interested in are the values 'B' and B(Exp)'.  Let's say we have (fictive numbers):   B: .098 ; B(Exp): 1.98 B: -.098 ; B(Exp): 1.98   The B(Exp) is the same for both examples. But in one case the B is positive in the other negative. For the first I suppose it means the odds 'increase' by 1.98, but what about the second?   The odds 'decrease' by 1.98?  ------ edited from here ----- (forget the above). Clearly I should have been more specific. I will use actual numbers now.  So let's assume I have a dependant variable D with three categories. And I have 2 explanatory variables E with 3 categories and sex with 2 categories.  D:   D1 D2 D3 (reference)   These are the results of parameter estimates in SPSS for the category D1:  E:   E1: B= -.111 ; Exp(B)= .895 E2: B= 2.264 ; Exp(B)= 9.622 E3: (reference)   Sex:   F: B= 1.514 ; Exp(B)= 4.546 M: (reference)   Are the following statements correct?   For females the odds of being in category D1 rather than in D3 'increase' by a factor 4.546 compared to males. For E1 the odds of being in category D1 rather than in D3 'decrease' by a factor .895 compared to E3. For E2 the odds of being in category D1 rather than in D3 'increase' by a factor 9.622 compared to E3.   In addition if the Exp(B) is lower than 1 it's decrease and otherwise increase? What statement would be correct for males?

This is somewhat of a beginner's question, but how does one interpret an exp(B) result of 6.012 in a multinomial logistic regression model?  1) is it 6.012-1.0 = 5.012 = 5012% increase in risk?  or  2) 6.012/(1+6.012) = 0.857 = 85.7% increase in risk?  In case both alternatives are incorrect, can someone please mention the correct way?  Ive searched many resources on the internet and I get to these two alternatives, and I am not entirely sure which one is correct.


I'm using Adobe Photoshop.  I noticed that there are other questions similar to this one.   However, the reason I'm posting my question is, when I followed the instructions in the  about removing the background from a signature, it was not working for me on this document. I needed to select several times for each letter. Many times I was also getting parts of the background with the letters.  Is there some shortcut?  It looks like it will take me a whole day to select all the text, letter by letter.  Perhaps the reason the Magic Wand tool is not working well is because the text is handwritten and the edges are not well defined?  So, here's the picture.  (I thought I uploaded it the first time, I'm trying again now)    Basically, I would like guidance on how to remove the background and put the text on a solid white background. (If possible in an easier more efficient manner than selecting each letter one by one)  P.S. For those curious, this is a handwritten marriage document in the Hebrew language written on parchment with a quill.

I need to upload my signature in a PDF document, but I do not know how to edit the background of this image.   I wish to remove the bluish-tint background, and make it pure white.   Can anyone help me with this, please?


My Scenario:  i have running apache severing my UI and i have my node api running on port 2000 and i have a reserves proxy on apache to proxy request to api and i have configure ssl as well and i want to redirect http to https. this is my following config  <VirtualHost *:80>          ServerAdmin admin@example.com         ServerName example.com         ServerAlias www.example.com         DocumentRoot /var/www/example.com/public_html           RewriteEngine on         RewriteRule ^/api/v1/(.*) http://localhost:2000/api/v1/$1 [P,L]          RewriteEngine on         RewriteCond %{HTTPS} off         RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]           ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined   </VirtualHost>   SSL config  <IfModule mod_ssl.c>     <VirtualHost _default_:443>         ServerAdmin admin@example.com         ServerName example.com         ServerAlias www.example.com         DocumentRoot /var/www/example.com/public_html               ErrorLog ${APACHE_LOG_DIR}/error.log         CustomLog ${APACHE_LOG_DIR}/access.log combined              SSLEngine on           SSLCertificateFile  /etc/apache2/ssl/example.com.crt         SSLCertificateKeyFile /etc/apache2/ssl/pkey.key              <FilesMatch "\.(cgi|shtml|phtml|php)$">                 SSLOptions +StdEnvVars         </FilesMatch>         <Directory /usr/lib/cgi-bin>                 SSLOptions +StdEnvVars         </Directory>       </VirtualHost> </IfModule>   i'm getting too many redirects, how can i solve this?

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


After googling I've learned that it's not possible unless you do it manually. Take this code for example:  public struct SEverything {     public int[] arrayOfHouseNumbers;     public string nameOfOwner; }   I only know of a very cumbersome way to copy it and that's to create a new struct and do it like this:  private void CopySEverything() {     sEverythingCopy = new SEverything();     sEverythingCopy.nameOfOwner = sEverythingOriginal.nameOfOwner;     sEverythingCopy.arrayOfHouseNumbers = new              int[sEverythingOriginal.arrayOfHouseNumbers.Length];      for (int i = 0; i < sEverythingCopy.Length; i++)     {         sEverythingCopy[i] = sEverythingOriginal[i];     } }   I'm using a much more complicated struct and it would be really annoying to do the above for a big struct, not to mention that if the structure of the struct is changed, the code has to be rewritten. Any advice is very welcome.  e: is serializing and deserializing a good option?

I want to do something like:  MyObject myObj = GetMyObj(); // Create and fill a new object MyObject newObj = myObj.Clone();   And then make changes to the new object that are not reflected in the original object.  I don't often need this functionality, so when it's been necessary, I've resorted to creating a new object and then copying each property individually, but it always leaves me with the feeling that there is a better or more elegant way of handling the situation.  How can I clone or deep copy an object so that the cloned object can be modified without any changes being reflected in the original object?


I am trying to find the top speed of each Flash in any continuity.  What is the fastest that we have seen Barry Allen travel?  I'm interested in the issue number and page (image if possible) that he actually travels at his top speed rather than a quote saying "because of this power he can travel at this speed".

Barry Allen, a forensic scientist for the Central City Police Department (C.C.P.D.) was struck by lightning and bathed in chemicals which later granted him super-speed and the power to tap into the Speed Force (essence of speed).  Flash runs at the speed of light for sure, but it never mentions in the Flash series how fast he really is. If anyone knows the answer please tell me. I'm talking about both the new CW TV show "The Flash" and the comics.


Let $A$ be a bounded, nonnegative operator on a complex Hilbert space $H$. Prove that the spectrum $$\sigma(A)\subset[0,+\infty].$$ We say that an operator $A$ is nonnegative if it is self adjoint and  $$ \langle Au,u\rangle \geq 0 \ \ \  \forall u \in H.$$ It is exercise 9.5 page 240 from .  A more general question, there is a theorem that for a self-adjoint operator $$ \sigma(A)\subset\left[-\|A\|,\|A\|\,\right],$$ but is it true that  $$ \sigma(A)\subset[\underset{\|u\|=1}{\inf}\langle Au,u\rangle,\underset{\|u\|=1}{\sup}\langle Au,u\rangle ]?$$

Let $T : \operatorname{dom}(T) \rightarrow H $ be a positive self-adjoint operator, is it then true that $\sigma(T) \subset [0,\infty)$? This is something that sounds natural and I guess that it is true. For bounded operator, this can be easily shown, but the only proof I know cannot be adapted to unbounded operator, so I was wondering if anybody here knows how to show this?


How do i select a few rows in SQL using the WHERE IN and the set of numbers is an input variable  I want to do the following  select datacolumn from datatable where primarykey in (1, 2, 3)   I tried the following procedure but it doesn't work  declare @ids NVARCHAR(MAX)  select datacolumn from datatable where primarykey in (@ids)   I use Sql Server 2008

How do I parameterize a query containing an IN clause with a variable number of arguments, like this one?  SELECT * FROM Tags  WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DESC   In this query, the number of arguments could be anywhere from 1 to 5.  I would prefer not to use a dedicated stored procedure for this (or XML), but if there is some elegant way specific to , I am open to that.


I am new to LaTeX and was wondering whether anyone knew how to apply the conversion. I've attached the following code as a reference:   \documentclass[12pt]{article}  \usepackage[margin=1in]{geometry}  \title{Rules} \author{Mohamed Mirza} \date{}  \begin{document} \maketitle  \section{Essentials}  \end{document}

I have a typical scientific manuscript in a LaTeX .tex file, and I need to convert it to MS Word .doc file.  The reason for having to convert to MS Word is I'm submitting the manuscript to an academic journal and they only accept MS Word (I know...)  The manuscript includes title page, figures, tables, equations (inline and in their own align environment), footnotes, bibliography, and an annex.  The tables are in their own separate tables.tex file, which I include using the \include{tables} command.  Most tables take up a whole landscape page, and were generated sing the package pdflscape.  I am using Windows 7 Professional.    My plan is to use pandoc to go from .tex to .odt, open the latter in Libre Office, and convert to .doc.  I have read a related  but it is too general.  Similarly the examples in the Pandoc  are too simple.  I have played around but I am unable to accomplish what I want.  This is surprising since converting a scientific manuscript is probably the most common use case for Pandoc. Here are some sample failures:  Example 1  I open a command line in the project folder, and execute the following:  pandoc -s document.tex -o document.odt   I get this error message:  pandoc: figure1: openFile: does not exist <no such file or directory>   where figure1 is the name of a figure file (e.g. figure1.png) in the project folder referenced in a line as \includegraphics[width=5.8in]{figure1}.  I suspect pandoc expects a .png extension but not sure how to provide it.  Example 2  Next I try .html, and excute the following:  pandoc -s document.tex -o document.html   The program executes fine.  I open HTML file.  Footnotes are there but figures are missing, tables are displayed as LaTeX, bibliography is missing, in-line math displays well, but math in align environment does not, section labels are displayed, and some other minor issues.  So given that mine is probably a typical use case scenario, my question is this: What commands should I use to get the .odt file I want?  I could not find a fully worked out example on the web.    Here is a specific list of errors.  I'll update how I corrected them based on community suggestions:   Figures not rendering.  Solved by adding .png extension to .tex file in \includegraphics command.  Now figures are included but they are huge, with half of each figure outside the page. No bibliography.  Solved. First, I have one huge consolidated Latex .bib file where I keep all my citations.  I manage it using .  This was giving me problems as I do not keep the cleanest .bib file in town.  So I reduced the problem by using a neat trick in JabRef that allows you to subset your master .bib file using the .aux file generated by Latex when compiling your manuscript.  In JabRef click on Tools > New Subdatabase based on AUX file.  This way I generated a much smaller biblio.bib file with only the articles referenced in my manuscript.  Running pandoc -s document.tex -o document.odt --bibliography=biblio.bib did the trick. Display math. Math in \begin{align} environment displayed in verbatim \latex;  (A partial solution is to use the  Libre Office extension.  Copy and paste the latex math code in the .odt file created by Pandoc into the equation editor, and so on.  Surely this could be built into a macro that can post-process all remaining math.)  UPDATE: Display math works very well using --mathjax extension. Inline math. Inline equation do not always render properly.  Bold math is a problem.  E.g. $\Sigma=\sigma^2\bm{I}$ displays as $\Sigma=\sigma^2\bm{I}$; Labels are displayed (e.g. section labels show as [sec:empirical] blah blah]; All tables display as raw latex.


I have been trying to install Ubuntu 14.04.3 for a while now and I always get the same error when I select the install Ubuntu option, which is the next one:    It has to be related with the graphics card for what I have seen in other questions, my laptop has a Nvidia GTX 960m.  I have been looking for solutions but I have not found anyone so far. Could anybody help me or give me some hints about what to do?  Thanks in advance.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


My question is same as the ones I already found on SO ,  and . But, for me nohup doesn't work. compiling screen gives errors and for disown, Control+Z does not make the process "stopped".  I run a data generation binary which writes data into a file and also prints status messages on the screen (stdout). I tried the following  nohup ./sp2b <options for sp2b> > output &   When I logout of the terminal and login back, the process is already killed. I actually would like to time it as well, so want to do  nohup time ./sp2b <options for sp2b> > output &   Why is nohup not working in my case?

I'm working on a Linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirecting stdout to a file.  To my surprise, that doesn't work. As soon as I close the Putty window, the process is stopped.  How can I prevent that from happening??