I am travelling from India to Glasgow via Dublin on Etihad Airways. I am an Indian citizen and have a UK standard 6-months visa (which has not been used before).  The flight from Abu Dhabi to Dublin arrives at Terminal 1, and the connecting flight from Dublin to Glasgow (operated by Aer Lingus) departs from Terminal 2. Do I need an Irish visa for this transfer?  If you have taken a similar flight, please share your experience in transiting from T1 to T2 in the Dublin Airport.

I'm a Saudi passport holder with permanent residence in the United States, and I'd like to book a flight from Washington to Edinburgh with a three-hour layover in Dublin. I know there's a Common Travel Agreement between the Republic of Ireland and the UK, and so I was wondering if I need an Irish transit visa to connect to a flight from Dublin to Edinburgh, or if a UK visa is sufficient. And are there any users who traveled US-RoI-UK under the same circumstances with needing a UK visa who can share their experience? Users who aren't visa-free for the UK or Ireland, that is.  From what I've read in these forums and others, it seems like Irish immigration in effect does controls on behalf of the UK government unofficially.  I have also heard concerns from people saying Aer Lingus employees could deny me boarding depending how confused an employee would be when looking up visa requirements on TIMATIC.


Is there a way I can have a continuously running, background process that can be controlled by me (a regular, non-root user)?  All I need to be able to do is start, stop and restart the process. Monitoring by PID and sending SIGHUP or SIGINT for termination is fine. I'm okay with using a complicated bash script, it doesn't have to be something system-wide. Just for me.  I also really need it to not stop when I log off from ssh.  Is there a way I can do this in RHEL 6.4?

I sometimes have long running processes that I want to kick off before going home, so I create a SSH session to the server to start the process, but then I want to close my laptop and go home and later, after dinner, I want to check on the process that I started before leaving work. How can I do that with SSH? My understanding is that if you break your SSH connection you will also break your login session on the server, therefore killing the long running process.


I am studying for the SAT, and I learned just now that the following sentence is grammatically incorrect:     Hopefully, we will be able to complete the building before the rainy season sets in.    The reason why it's incorrect is given in my study book: hopefully is an adverb, and yet it is not modifying a verb in this sentence.  I don't see how this is the case, because hopefully is modifying the verb complete. And why is that according to Google Dictionary, the following sentence is correct:     Hopefully, it should be finished by next year.

Is the word "hopefully" unjustly treated? We don't like the sentence:  "Hopefully, my ship is just over the horizon and due in real soon now."  But we don't mind saying:  "Happily, the tree fell on that eyesore shed."  "Sadly, the swallows have not returned."  Why is "hopefully" so unwelcome at the adverb party?  ObJoke: From The New Yorker a few years ago, to illustrate proper use of "hopefully:"   Dad (shaving):   Ouch! Damn! Son:             What's wrong? Dad:             I cut my chin! Son (hopefully): Off?


What is the difference between "jit" and an "execution engine"? I've heard that both of them are a part of jvm but what role do they play in the machine code generation, are they one at the same or do they have their own unique roles?

What does a JIT compiler specifically do as opposed to a non-JIT compiler? Can someone give a succinct and easy to understand description?


Is there a way to check the bios battery life from the command line?

I have found myself in situtations where the internal battery has been used frequently. How do I check its status without diving into the mountain of directories?  NOTE I need to know about the CMOS battery. not the laptop's power supply, so this isn't a duplicate of those questions


I have a Campagnolo Chorus 9-speed rear derailleur. I am trying to determine the largest cassette I can use. The main question I have is how do I determine what size cage I have. It is not a new derailleur. I have 50-36 chain rings and currently a 23-11 cassette. Would like to go a little bigger on the largest cassette cog if possible.

I'm selling the rear derailleur off this bike, and someone asked whether it's short or long cage. I assume it's long. Is this correct?


I have 2 elements in my div container.   The first element has an fixed height, example:   element1 {height: 40px;}   What I want to do is to fill the rest of the 100% minus the height of the first element by the second element that is:   element2 {height: 100% - 40px;}   How can I achieve this with only CSS ?

I am working on a web application where I want the content to fill the height of the entire screen.  The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill the rest of the page to the bottom.  I have a header div and a content div. At the moment I am using a table for the layout like so:  CSS and HTML    #page {     height: 100%; width: 100% }  #tdcontent {     height: 100%; }  #content {     overflow: auto; /* or overflow: hidden; */ }

...

...

     The entire height of the page is filled, and no scrolling is required.  For anything inside the content div, setting top: 0; will put it right underneath the header. Sometimes the content will be a real table, with its height set to 100%. Putting header inside content will not allow this to work.  Is there a way to achieve the same effect without using the table?  Update:  Elements inside the content div will have heights set to percentages as well. So something at 100% inside the div will fill it to the bottom. As will two elements at 50%.  Update 2:  For instance, if the header takes up 20% of the screen's height, a table specified at 50% inside #content would take up 40% of the screen space. So far, wrapping the entire thing in a table is the only thing that works.


I am putting together a book using pdfTeX (from the TeX Live distribution on OSX), and part of the book involves a fictional dictionary for a constructed language. What I would like to do is define a command called, say, \conlang which switches to what is essentially a symbol font for the duration of that command. The .ttf also needs to be embedded in the .pdf.  I have found a number of tutorials on how to change the font family for the entire book, and I have found tutorials on how to change the font when using a package-specified font, but nothing for how to build the commands that actually load the fontfamily and make it available without building an entire package.

I want to use the  font in my pdfLatex document.  What steps should I do for using a downloaded font   Should I download the TTF or the OpenType version? Where should I store the font? Should any font processing be done? How can pdfLatex find this font?   I am using TexLive 2011 installed in a custom location (/somepath/texlive/2011) on Ubuntu


I had Windows 7 and Windows 8 dual booted. I tried to install Ubuntu 14.04 by deleting Windows 8, but unfortunately whole hard disk wiped. Now I have only Ubuntu 14.04 installed using whole hard disk size. I'm at a loss now after losing my project data.  I had 3 NTFS partitions other than the Win 7 and Win 8 partitions.  Can I recover my data? If possible how?  Thanks

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


In Harry Potter and Philosopher Stone Ron is oblivious about the sorting ceremony same as everyone else.      "How exactly do they sort us into Houses?" he asked Ron.    "Some sort of test I think. Fred said it hurts a lot, but I think he was joking."   While it is understandable that Fred and George would lie to make a good laugh, Ron got the whole bunch of other family members who would have passed the sorting ceremony before - including three elder brothers and his parents. Ron definitely knew about different houses in the school and that he'd probably end up in Griffindor as the rest of his family. Have they never ever discussed the sorting in their family? Have he never bothered to ask (anyone except Fred) of such an important part of being accepted to the school? It's just unbelievable. Especially after we see Ron was actually interested in the matter as he was scared by Fred's interpretation:     "So we've just got to try on the hat!"- Ron whispered to Harry.   "I'll kill Fred, he was going on about wrestling a troll."     Hermione seems not to know either:     No one was talking much except Hermione Granger, who was whispering very fast about all the spells she'd learned and wondering which one she'd need.   That implies that information about the Sorting Hat is not in the Hogwarts, A History - and it's also a very strange omission for such a book.   We could assume it's some sort of a secret and those who were accepted to Hogwarts bound not to tell others, but in Harry Potter and Deathly Hallows Albus seems to know about the Hat already:     ..."But if it matters to you, you'll be able to choose Griffindoe over Slytherin. The Sorting Hat takes your choice into account." - "Really?" - "It did for me," - said Harry.

In the first book, Harry Potter and the Philosopher's Stone, just before the Sorting ceremony, all the first years were quite terrified. No one had any idea what was going to follow (even Ron who came from a wizarding family). Why is this?  The ceremony itself is not a secret since most of the wizards in England went through it. Even if there is an unofficial rule not to talk about it, at least some of the kids would probably have heard about it and spread the news.


“You were the seventh Horcrux, Harry, the Horcrux he never   meant to make. He had rendered his soul so unstable that it   broke apart when he committed those acts of unspeakable evil,   the murder of your parents, the attempted killing of a child. But   what escaped from that room was even less than he knew. He   left more than his body behind. He left part of himself latched   to you, the would–be victim who had survived."      Harry Potter: The Deathly Hallows (part 7),  page 592   Murder alone doesn't create a Horcrux it takes intent. This section of the book states that Harry is a Horcrux even though not intended. JKR latter said he isn't officially a Horcrux but considering it is stated that this incident is what caused Harry to be considered like one then why didn't the death of James also fracture Voldemorts soul into a third shard that would have flung off to attach itself to someone or something. There were two murders and a third attempted which should have caused three splits of the soul. Now even though he didn't intend for a Horcrux to be made two were made Harry and the piece that Quirell found. Why isn't there another? This nicely constructive para added by Kevin on my request to clarify the point...  OK, so Voldy can't kill both James and Lily with one single spell.  He must have killed James first, then aimed at Harry when Lily came in between. The reverse can't be true, because the moment he had killed Lily, he would have been destroyed!  So, when he killed James, his soul should have split, or am I missing something?  Why didn't his soul split?

Killing is said to fracture one's soul and Voldemort uses this to create horcruxes.  I always assumed that it was because of the evil intention and the act of killing someone was what caused the soul to split.  Does killing by accident also cause one's soul to splinter?


I'm trying to make a sign that gives you a book that says the following:     Rule 1: Use RELEASER book to release the seeker. This book is obtained by pressing the Hiders button   Rule 2: Don't use commands that weren't provided by the map.   Rule 3:Have fun(jk rage I'm evil HAHAHAH).    The title of the book is Rules and the Author is RebornSquid  This is what I typed in the command block (I'm making a map with a group of friends)  /setblock ~ ~1 ~ wall_sign 0 replace {Text1:"[{\"text\":\"*right click*\",\"color\":\"blue\"}]",Text2:"[{\"text\":\"Rule Book\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"give @p written_book 1 0 {pages:[{\",text\":\"Rule 1: Use RELEASER book to release the seeker. This book is obtained by pressing the Hiders button\\nRule 2: Don't use commands that weren't provided by the map\\nRule 3: Have fun(jk rage I'm evil HAHAHAH)\"}"}\]",title:Rules,author:RebornSquid}\"}}]"}   This is the message I'm getting:  [22:54:04] Data tag parsing failed: Trailing data found at: ...fun(jk rage I'm evil HAHAHAH)\"}"}\<--[HERE]   What does this mean? How do I fix it?

I've been at this for almost two hours and no one seems to have the same problem as I and I doubt this will be solved but I'll try anyway.  this is the code  /tellraw @p ["Would you like to teleport?",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tp @p ~ ~4 ~ "},"hoverEvent":{"action":"show_text","value":{"text":"Confirm"}},{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p{"text":"Come back when you want to teleport"}"}}}]   this part is fine  /tellraw @p ["Would you like to teleport?",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tp @p ~ ~4 ~ "},"hoverEvent":{"action":"show_text","value":{"text":"Confirm"}}   it's just when I add this  ,{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p{"text":"Come back when you want to teleport"}"}}}]   Minecraft gives me the error:     Invalid JSON at line 1 column 203   I've tried to space it out and figure out what column 203 is but I can't, I don't know what I did. Anyone got any ideas?


After being cursed by Voldemort for the second time, Harry spiritually goes to King's Cross and talks to Dumbledore. Is it like a coming back to life scene or is it caused by the dying Horcrux (or rather Voldemot's soul piece) inside him?

Most of this discussion involves events at the end of Harry Potter and the Deathly Hallows so if you haven't read that book and don't want spoilers, then stop reading right now.  Yes, now.  It's not clear whether limbo is something everyone moves through in Harry Potter when they die, but when Harry is killed, he not only ends up there, but Dumbledore is there, waiting for him.  Did Dumbledore wait for him all that time, in limbo, until Harry showed up?  Did he have any way of watching what Harry was doing in that time?  Or did he have a way to enter limbo when Harry did to meet him there?  And once Harry was gone, was Dumbledore able to move on, or would he be stuck there?


$$\frac{\partial \mathcal{L}}{\partial \eta_1}= -\sum_{i=1}^{n}\frac{\frac{\eta_1}{c}-\cos(y_i-\beta_i X_i)}{c-\eta_1\cos(y_i-\beta_i X_i)-\eta_2\sin(y_i-\beta_i X_i)} $$   I need a big denominator and numerator.

What is best practice for typesetting fractions with large objects in the numerator and denominator?  For example, fractions with limits, integrals, summations, etc... cause the expressions to look contracted and somewhat odd.  I understand that it is probably best to leave this as is when writing mathematics inline, but as a stand-alone fraction I feel it would be much less distracting if the symbols were typeset at normal size and the fraction was given more height in which to place itself.  Are there standards (for pure mathematics) regarding this problem? And what are the options - if it's generally permitted - for expanding the fraction size to incorporate large objects?    Example  \frac{\sum_{i=0}^{n} i^2}{\iint_{D}\frac{\partial (x,y)}{\partial (u,v)}\,\mathrm{d}u\,\mathrm{d}v}   Both the summation and the integral look somewhat cramped.


I'm building a String parser that parses a file, gets stuff, and does stuff with the stuff. Mainly, I am trying to reference classes from that file. If that file had some text:  "Class1"  How could I interpret the String as a Class within the program to then invoke a method?

If I have two variables:  Object obj; String methodName = "getName";   Without knowing the class of obj, how can I call the method identified by methodName on it?  The method being called has no parameters, and a String return value. It's a getter for a Java bean.


I have here an Adobe Reader X - If im reading an ebook and closing and restart it the reader doesnt remember the page - it always start on page 1. I would like to continue after a restart there where I stopped. How to do that with the Adobe Reader?

I like to read eBooks, but I tend to have a hard time keeping track on which page I am in which file. Is there a bookmark function or something similar that I'm not aware of?


I installed PasswordSafe 0.93 beta by downloading its deb-package from SourceForge and have it taken care of using Ubuntu Software Center.  Now PasswordSafe asks me every time what psafe3-file to load instead of offering me a default one - as it used to be with the Windows version of it. So I thought about having a look at PasswordSafe and its (probably existing) config files and see if I can edit them appropriately. But this endeavour fails at locating the program and its related stuff.  How do I go about finding it?

Where are executables for programs stored in Ubuntu?  An application (Komodo Edit) is asking me to identify an application to be used as a web browser. I've become used to just entering the application name as a command for situations such as these, but this scenario got me thinking.   I know in Windows it would just be the relevant application folder in the 'program files' folder, but I'm assuming things are a bit different on Linux?  I thought somewhere like bin would be logical but this appears to standard Linux/Unix applications. Where would I find the binary executable for applications stored on my system?


I have a task. Prove that $(\cos(n\alpha), \sin(n\alpha))$, with $n\in\mathbb{N}$ is dense on unit circle.($\alpha$ chosen such that our set is infinite ) We want to show, that for every element's neighbourhood there is an element of that that is in the neighborhood. We know that there all points are different (there is no cycle on the circle). But why can we use pigeonhole principle to prove that if we divide the circle in $k$ arcs then there exists two elements which a closer than $\frac{2\pi}{k}$?  EDIT: Thanks everyone. Now everything is clear. This question is [SOLVED]

Let $q \in \mathbb C$, $|q|=1$ and $q^n \neq 1, \forall n \in \mathbb N$. Show that $\{q^n:  n \in \mathbb N\}$ is dense in $S^1$.  My attempt: As $(q^n)$ is limited, there is subsequence $(q^{n_j})$ convergent. So given $\epsilon > 0, \exists j_0 \in \mathbb N, \quad |q^{n_j} - q^{n_k}| < \epsilon, \quad \forall j,k \geq j_0$. Supose that $n_j > n_k$, then  $|q^{n_j} - q^{n_k}| = |q^{n_k}||q^{n_j - n_k} - 1| = |q^{n_j - n_k} - 1| < \epsilon, \quad \forall j, k \geq j_0$. So, there is a subsequence of $(q^n)$ that converges to $1$.  Using this fact, how can I ensure that for all $w \in S^1$ there is a subsequence of $(q^n)$ that converges to  $w$?


How many proper divisor (that is, divisiors other than 1or 7200) does 7200 have ?

The number of divisors of 9600 including 1 and 9600 are??  Is there any other way of doing this rather than manually finding the divisors?


In the below sentences, do is not present.  My doctor insists that I (do) not eat donuts with chocolate sauce and hamburger patties for breakfast. It's imperative you (do) not sing when your voice hurts.  Why is the do not present in the sentences? Which grammatical rule would be violated if do is included in the sentences?

Why is this sentence correct?     She suggested that he go to the cinema.   I would definitely use goes instead of go.


Why did  about subobjects and the technical way they work get deleted?  It consisted of several long messages in which there were many questions and some detailed answers. I was just about to show it to some of my friends who had the same troubles as me but then we discovered that it is deleted without any reasons given...

I created a chatroom about the Qt Framework some time ago but it seems it's no longer available. The  just says "Page Not Found" and the possible reasons for removal are "spam, off topic, abuse" but I don't think any of this concerns the chatroom (though I was rarely checking it). Any idea what could be the issue?


I wanna have Persian text in the addon code of blender.For example I want to use this code: layout.label(text="سلام"). What should I've done?  Please help me. Thanks in advance.

How can I add text with non Latin characters? I'd like to get text in other languages like Arabic, Russin (Cyrilic), Japanese, Chinese, Malayalam among others, but I get rectangles instead of Arabic letters.


I need to change the tile for the top navigation tabs, to do so I search for these tabs inside the following folder:-  C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Resources  Then I search for these tab titles inside the core & core.en-Us files,  I was able to modify the title for the items,files,browse,document,events, calendar. But I can not find the Page tab title under these files. So can anyone advice where I can find the “Page” tab which is displayed under all the sites pages.  using something such as :-       Custom title....

I have a requirement to change the Top bar titles for my team site and community site. For example I need to change the “Page” to be “Page options”.so from where I can change these titles.? Second question I have three different types of lists inside my team site, and each list have a Page tab, so can I change the title per list, or I only can do this for the whole site. As inside the document management library  I want the Page to be “Document library options”, and for the announcement list I want it to be “Announcement Options “instead of being “Page” for both.    EDIT I have created the following script insde my Style library folder:-  $(document).ready(function(){$("#Ribbon\\.WebPartPage-title span").first().html('PAGE OPTIONS'); $('.ms-cui-tts').click(function() {     $('#Ribbon\\.WebPartPage-title span').first().html('PAGE OPTIONS');  }); $('#Ribbon\\.WebPartPage-title a').click(function() {         $('#Ribbon\\.WebPartPage-title span').first().html('PAGE OPTIONS');});  });   then i reference the script inside my master page as follow , before the  tag :-  <script  type="text/javascript" src="/sites/Intranet/Style Library/JS/changetitles.js" ></script>  </head>   But it did not chnage the title ?


public class Wells {   String str[] = null;    static public void main(String args[]) {      Wells objWells = new Wells();     System.out.println(args.length);// we will NOT  get null pointer exception WHY ?      System.out.println(objWells.str.length); // we will get null pointer exception   }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Show that from any five integers, one can always choose three of these integers such that their sum is divisible by 3.  I wasn't sure how to solve this problem, can someone please help? Thanks!

How do I prove that among any $5$ integers, you are able to find $3$ such that their sum is divisible by $3?$ I realize that this is a number theory question and we use modular arithmetic, but I'm unsure of where to begin with this specific situation.


This system does not see the interface.  I have seen solutions regarding the rtl8821AE device, but I am not sure if that is what I need to do to make this wifi network show up.  The settings reports that there is no wifi card installed.  It looks to me like the modules for rtl8821ae are available, but it doesn't seem to work.  I will continue to search, but I am posting here because I can't figure out exactly what to do.

We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.


All images loaded through the Stack Exchange Imgur API seem to be not working (and the webpage doesn't load either):    When I go to the actual image link I get:    imgur.com still works.

I just wrote a question before this one and had trouble uploading a screenshot. The drop your image dialog throws no warning or error, but after uploading it won't show.  I also noticed that other questions won't load their images. Could this be some issue with imgur or similar?  Example:     When opening the image in a separate tab, Chrome gives a "too many redirects" error:    This might be linked to


I'm using demographic data in California by census tract, and I'd like to be able to group those census tracts into 4 regions with an equal population in each region. Any recommendations for how to do this in QGIS?   I'd like to be able to do something like the process FelixIP takes in the answer to this question but I don't completely understand all of the steps:    Any clarification to that answer as well?

I have a shapefile with 3800 polygons representing the smallest administrative areas in Ireland. Many of these, in rural areas, have tiny populations, under 100 people. In urban areas, all would have adequate populations.  For each area I have a population figure, and various other attributes, all of which can be intelligently summed to give valid results for areas produced by combining the smaller areas.  I need to merge the areas to get say, 500 or 600 areas of reasonable population. I need to leave the larger (in population) areas alone, where possible. I would greatly prefer to do this automatically. This is necessary for model fitting purposes, primarily.  I've looked at a number of the dissolve questions here:   'Batch Dissolve Polygons based on Attributes in QGIS or FWTools' I think would require me to know which areas to merge, when this is what I need to calculate. 'Practical way of managing polygons and unions of them' and 'How do dissolve polygons from shapefile using open source tools?' have the same issue.   Any suggestions?


I started a new course and I'm expected to know this stuff, and I'm having trouble learning some on my own. I'm stuck with this problem: Prove  $1 + 2^3 + 3^3 + ... + n^3 = \frac{((n^2)(n+1)^2)}4$ using induction (the $1+2^3...$ is written in sum notation, although I don't know how to enter that here, sorry). I started substituting $n \rightarrow n+1$ but I don't know what to do next. Any help would be extremely appreciated.

How can I prove that     $$1^3+ 2^3 + \cdots + n^3 = \left(\frac{n(n+1)}{2}\right)^2$$    for all $n \in \mathbb{N}$? I am looking for a proof using mathematical induction.  Thanks


I want to take input of a string and split it into a list of 'n' elements. Then I want to take input 'm' and create number of lists such that each list has 'm' elements.  strng=input() list(strng) n=len(strng) m=input() #program to store 'm' elements of strng in n/m different lists   If strng="abcdefghijklmnopqrstuvwxy" and m=5, I want it to be stored as list1=['a','b','c','d','e']enter code here list2=['f','g','h','i','j']....and so on.

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 want some new memory for my computer and I can't find out what type of memory my computer uses and needs.  When I was using Windows I used Belarc to find out what hardware was on the computer.  Now that I am using ubuntu I am not sure what to use.  I also used Glary utilities.  Can anyone help me?

How shall I find out the frequency and type of my current RAM? My OS is Ubuntu 12.04.


I am trying to make automatic message which will be sent on email but, when i start my program i get :  com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1;   I want it to be sent from localhost not exact email with password and username. code:  import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.*;  import javax.mail.*;  import javax.mail.internet.*;  import javax.activation.*;  import javax.mail.Session;  import javax.mail.Transport;    public class Email   {     public static void main(String[] args) throws IOException {         String recipient = "test@gmail.com";        String sender = "sender@gmail.com";        String host = "localhost";         Properties properties = System.getProperties();        properties.setProperty("mail.smtp.host", host);         Session session = Session.getDefaultInstance(properties);         try {            MimeMessage message = new MimeMessage(session);            message.setFrom(new InternetAddress(sender));            message.addRecipient(Message.RecipientType.TO, new InternetAddress(recipient));            message.setSubject("Test sub");             message.setText("Test MSG");             Transport.send(message);            System.out.println("Sent.");          } catch (AddressException e) {            e.printStackTrace();        } catch (MessagingException e) {            e.printStackTrace();        }     }     }   To run this class i am using javax.mail.jar. Does somebody know where the problem is ?

Is it possible to send an email from my Java application using a GMail account?  I have configured my company mail server with Java app to send email, but that's not going to cut it when I distribute the application. Answers with any of using Hotmail, Yahoo or GMail are acceptable.


While reading Reid's "Introduction to Algebraic Geometry", I came across the following passage:     "A finitely generated $k$-algebra is a ring of the form $A = k[a_1,\cdots,a_n]$, so that $A$ is generated as a   ring by $k$ and $a_1, \cdots , a_n$; clearly, every such ring is isomorphic to a quotient of the polynomial ring,   $A = k[X_1, \cdots ,X_n]/I$"   My question is: why must such ring be isomorphic to a ring of the form $k[X_1, \cdots ,X_n]/I$?

Let $k$ be a field and let $A \neq 0$ be a finitely generated $k$-algebra, and $x_1, \cdots, x_n$ generate $A$ as a $k$-algebra. Is there any relationship(inclusion, homomorphism, etc.) between $A$ and $k[x_1,\cdots,x_n]$?  How about the case if $x_1,\cdots,x_n$ are algebraically independent over $k$?


My first paper has been accepted to a CS conference, it went through a double blind peer-reviewed process. Soon it will appear in conference proceedings from Springer. How to add it to my CV? Also, should I make an arxiv print available ?

Assume a search committee is reading my CV and in the publication section they notice some of my papers are only submitted or claimed to appear in a journal (or accepted for publication in a journal). Sometimes the journal which has accepted the paper for publication lists the title of accepted articles before actually publishing them, but in the rest of cases there is no evidence to prove that the referee process of the paper is over and the journal has accepted the paper for publication. Also assume preprints of my papers are available in ArXiv. So, my questions are:   How a search committee interprets and evaluates those papers which are just submitted or are claimed to appear?  Does a search committee consider these types of publications less valuable than the published ones (assuming the same quality)?  Does a search committee refer to my preprints in ArXiv to evaluate my submitted or accepted papers?


I have string and it is more than 1000+ character.. my character like this.

d Paola all 👜💼👛👝🛍 joined the company after the war, and took oin 1966 to a young designer – the then-unknown, Paris-based Karl Lagerfeld – who took over the aesthetics of the family company and now works with Silvia Venturini Fendi, Anna’s daughter.
        ---- more 1000+ character  <div class="footer   My actual string too long then I showed an example, you may notice, in the string, there is some special character. and in entire string, too many special characters like these 👜💼👛👝🛍  I am trying to grab <div class='a-body__content to <div class="footer  I know I can grab that special character with .* but after an space, it cant match next character after space, but if I do like .*\s.*\s.*, my patter becomes too long and it will work only for this string and will not works other string of this type, so I need a solution to grab any character between <div class='a-body__content to <div class="footer and so that it works for any other string of this type.  Can anyone help me with this case?

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


Define the unit square $0 \leq \Re(z) \leq 1$, $0 \leq \Im(z) \leq 1$. Using the argument principle, show there is a unique $z_0$ in the unit square such that $f(z_0)=0$ for $f(z)=\sum_{-\infty}^\infty e^{2\pi inz}e^{-\pi n^2}$.   Just by looking at the series, I have deduced that $f(z+1) =f(z)$ and $f(z+i) = e^\pi e^{2 \pi i z} f(z)$ for all $z$.  Since $f(z)$ doesn't vanish on the unit square, we may apply the Argument Principle. Between the two vertical lines of the square, $f$ stays on the real line. On the horizontal lines, the endpoints are the same.  How do we deduce the change in the argument over the horizontal lines? Obviously, the series in question has some relation to fourier analysis, but I don't know anything about that. What other properties of this series can we use to make use of the Argument Principle?

There are three parts of the question, the first two which I proved.   $a.$ Proving $f(z)$ is entire analytic.  $b.$ $f(z+1) = f(z)$ and $f(z+i) = e^{\pi}e^{-2\pi iz}f(z)$  $c.$ Inside the unit square in the 1st quadrant, prove that $f(z)$ has a unique $z_0$ such that $f(z_0)=0$  I need some help regarding the $c.$ part of the question. I don't understand how to apply the argument principle here (which is a hint). It is also given that $f(z)$ does not vanish on the boundary of the square.  What I could do:  $$f(0) = f(1) = 1+2\sum_{n=1}^{\infty}e^{-\pi n^2}$$  and   $$f(i) = f(1+i) = e^{\pi}\big(1+2\sum_{n=1}^{\infty}e^{-\pi n^2}\big)$$  Using the hint given below by a user: I end up with $$\dfrac{1}{2\pi i}log f(z)$$ and the integral evaluates to -1/2 and 1/2 on the two vertical sides and 0 on the horizontal lines. Resulting in the closed integral to 0. Any ideas where I might be going wrong?  Any idea how to proceed?


According to Longman's English grammar's book:      We can use two objects after verbs like give and buy.   Instead of: Give the book to me, we can say: Give me the book.   lnstead of: Buy the book for me, we can say: Buy me the book.   2 Some verbs combine with TO: bring, give, lend, pay, post, sell, send, show, tell, write:   Bring that book to me. -, Bring me that book.   3 Other verbs combine with FOR: buy, choose, cook, cut, do, fetch, find, get, make, order:   Please order a meal for me. -, Please order me a meal.   4 We can put it and them after the verb: Give it to me. Buy them for me. Do it for me.   With e.g. give and buy, we can say: Give me it. Buy me them. (But not 'Do me it')   We say: Give it to John. Buy them for John. (Not *Give John it4*Buy John them') "   Neither the preposition can be dropped nor the construction's placement can be altered if the indirect object is a noun and the direct object is a pronoun:    I bought John them - Wrong I bought them for John - Correct   Did I get it right??

I have been studying Longman's English grammar book, and something is really confusing me:   We can put it and them after the verb: Give it to me. Buy them for me. Do it for me. With e.g. give and buy, we can say: Give me it. Buy me them. (But not *Do me it.) We say: Give it to John. Buy them for John. (Not *Give John it - *Buy John them.)   Why can't I say Buy John it or Give John them?  There is another post related to it that talks about the same topic: . However, the most voted answer was, indeed, useful for me, but didn't get everything clear.  What's the main rule for inverting the position and dropping the preposition?  As far as I managed to understand, if the direct object is it or them and the indirect object is a pronoun, the normal construction's placement is necessary, i.e.: Subject + Verb + Direct object + To/For + Indirect object  Is this right?


Good day, I have a potentially easy question. I am in the process of developing an application for my mother. She teaches a Sunday-school class, has been teaching it for many years now, and as you can guess, has a ton of information kept hard copy. She also has complex grading styles, a store where kids can buy stuff with their good grade points (called talents).  Anyway, I come from a background where I used a database to store massive amounts of information, but the database was always static. Meaning I would open MySQL, add an instance of our local DB, and then just connect to it whenever I need to. But the problem arises, how do I distribute an application that exists statically (ie you have to put all connection details into the program) be flexible enough to where I can install my App onto any computer and it would work without a specific database connection. In other words, is there a lightweight database that can be attached to a program that will be distributed?   I don't want to store information like Students in an array list, I am bent on using a database, unless someone can convince me. (also because with a database, it is easier to make the data persistent, it seems to me)  SO the question again, how do I develop an application that will use a database, but will also exist when you distribute the application to other computers without having a network database that has to be connected to every time the app is run?  I'm sorry if it is a basic question, I come from an HMI/SCADA background, things work a little differently...

I intend to develop a small (Java) application for managing my finances. I believe I need to use an embedded database, but I have no experience regarding this issue. I tried to look at , but I can't decide which one would be more suitable for me. , ,  and  seem to be good candidates, but I still don't see how they compare to each other. I appreciate your help comparing them and helping me decide which one to use.  I intend to use Hibernate for my application (unless you would recommend using DBMS-provided API), but I also want to have the ability to edit the database easily using a SQL browsing tool (modifying schema and changing data).  Thank you.


I am currently developing a messaging application that uses rsa end to end encryption. The client generates permanent rsa keys, and sends the public key to my server for account management. As it currently is, my program will take any keys, without validation. This is a big security risk, so I need to validate the keys in some way, without knowlege of the private keys. How would I go about doing this?

If I have a 1024-bit number, and someone is telling me that it is in fact a valid RSA public key, is there any way I can quickly validate that it is indeed so (without cracking RSA)?  (I suppose I am asking if it's possible to quickly tell if a number only has 2 prime factors)


The documents checklist at the Austrian embassy page for Schengen visa says I need to submit all the old passports as well for the visa. I have been issued 4 passports in my lifetime. 3 of them are expired.  I have the current one and the last two passports. However I have misplaced the first passport, which was issued when I was 5 years old. Should I just write in my cover letter that that passport was misplaced or should I file a police complaint? The lost passport expired 12 years ago and was not used to travel outside the country at any time. (India)

I am a British resident and applying for Schengen visa to France. I am preparing my documents for application and as stated they require old passports and previous issued Schengen visa. However I realised I have lost my old expired passport which has my 3 previous (expired) Schengen Visas issued in the past 3 years.   Can I still apply in this case? Will I get rejected?


I have a dell inspiron 1525, and it has already installed Windows 7. The problem is that the disk can't be partitioned, and I wanted to install ubuntu without uninstalling Windows 7.   Is it possible to have both installed on the same partition?

The Ubuntu installer does not allow me to install on NTFS partitions, but certain circumstances requires me to do so. Is it possible?


I don't think that's the best way to word that title but I can't think of a better way to word it. Here's my problem: I have to write a method that compares in several different ways. If the last names are the same, I then need to compare by first name. If the first names are the same, then I need to sort by section. What would be the most effective way to sort a data structure in this hierarchy? Here's what I've currently got and I think I understand why it doesn't work but I can't come up with a different way to write this function:  //Student class structure, each field has a public get/set method public class Student implements Comparable<Student> {   private String fname;   private String lname;   private int section; }  //My current compareTo method @Override public int compareTo(Student s) {   /*     -compare by last name     -if the same, compare by first name     -if the same, compare by section   */    String slast = s.getLastName();    if(lname.compareTo(slast) == 0)   {     String sfirst = s.getFirstName();      if(fname.compareTo(sfirst) == 0)     {       int sclass = s.getSection();        return Integer.compare(section, sclass);     }      else     {       return fname.compareTo(sfirst);     }   }    else   {     return lname.compareTo(slast);   } }

Assume you have some objects which have several fields they can be compared by:  public class Person {      private String firstName;     private String lastName;     private String age;      /* Constructors */      /* Methods */  }   So in this example, when you ask if:  a.compareTo(b) > 0   you might be asking if a's last name comes before b's, or if a is older than b, etc...  What is the cleanest way to enable multiple comparison between these kinds of objects without adding unnecessary clutter or overhead?   java.lang.Comparable interface allows comparison by one field only Adding numerous compare methods (i.e. compareByFirstName(), compareByAge(), etc...) is cluttered in my opinion.   So what is the best way to go about this?


Okay, say I want to create an RPG similar to and takes inspiration from such games as Final Fantasy, The Elder Scrolls, Shin Megami Tensei, Pokemon, etc. and I would like to use familiar names in some cases because the names simply fit from a design perspective (like from anything as mundane-but-aptly-named as "Water" or "Waterfall" to something like "Ultima" or "Souleater"). For the sake of the question I want to make it clear I'm not attempting a parody or the sort (it's going to be its own franchise), just most ability/spell names I can think of tend to come from video games or board games I've played.

Most games build on other games' successes and many are downright clones. Where is the limit of imitation before legal issues come into play? Is it down to literary or graphic work like characters and storyline that cause legal problems, or can someone actually claim to own gameplay mechanics?  There are so many similar clone games out there that the rules are probably very slack or nonexistent, but I'd like to hear the views of more experienced developers / designers.


I am creating a pdf file with MiKTeX editor. I am including a figure as follows:  \begin{figure}     \centering     \includegraphics[width=0.9\textwidth]{MonitoringConcept.JPEG}     \caption{Monitoring concept for energy and comfort}     \label{MonitoringConcept} \end{figure}   In the header, I have added these packages:  \usepackage{lineno,hyperref,subfig,graphicx}   However, in the compilation time I get an Error. The message is the next one:  ! LaTeX Error: Cannot determine size of graphic in MonitoringConcept.JPEG (no BoundingBox).    Do you know what the problem could be? Thank you very much in advance!

There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which?  Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation.  Can anyone explain this?


Could any please help me convert this to python? I don't how to translate the conditional operators from C++ into python?  Math.easeInExpo = function (t, b, c, d) { return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?


The number of boys- countable or uncountable? I'm confused with this sir.

Possible Duplicate:          From the grammatical view both are correct, but please explain the difference in meaning:   The number of students in the class is fifteen. A number of students were late for class.


I'm playing around with WIA Automation and I`m struggling to scan more than page at a time. Can anyone give me some hints on how to achieve this? Below is a sample of code I use to scan a document/image:  public static byte[] ScanImage(int colourType, string formatId, int dpi)     {       _dialog = new CommonDialogClass();       _scanner = _dialog.ShowSelectDevice(WIA.WiaDeviceType.ScannerDeviceType, false, false);         foreach (Property item in _scanner.Items[1].Properties)   {     switch (item.PropertyID)     {       case 6146: //4 is Black-white,gray is 2, colour 1            SetProperty(item, colourType);         break;       case 6147: //dots per inch/horizontal             SetProperty(item, dpi);         break;       case 6148: //dots per inch/vertical                   SetProperty(item, dpi);         break;       case 6149: //x point where to start scan            SetProperty(item, 0);         break;       case 6150: //y-point where to start scan           SetProperty(item, 0);         break;       case 6151: //horizontal extent                 SetProperty(item, (int)(8.5 * 100));         break;       case 6152: //vertical extent                      SetProperty(item, 11 * 100);         break;     }   }    try   {     TempPath = System.IO.Path.GetTempPath() + "temp" + DateTime.Now.Ticks;      ScannedImage = (ImageFile)_scanner.Items[1].Transfer(formatId);     //System.IO.File.Delete(TempPath);     ScannedImage.SaveFile(TempPath);      //Convert image to binary     Vector vector = ScannedImage.FileData;     byte[] imgBin = (byte[])vector.get_BinaryData();     ScannedImageBinary = (byte[])vector.get_BinaryData();      //ImageFromFile = Image.FromFile(TempPath);   }   catch (Exception ex)   { }    return ScannedImageBinary; }

I want to implement a paperless filing system and was looking to use WIA with C# for the image acquisition. There are quite a few sample projects on CodeProject, etc. However, after downloading every one of them that I can find, I have run into a problem.  In each and every one of them, the reference to WIALib is broken. When I go to add "Microsoft Windows Image Acquisition" as a reference, the only version available on my development workstation (also the machine that will run this) is 2.0.  Unfortunately, every one of these sample projects appear to have been coded against 1.x. The reference goes in as "WIA" instead of "WIALib". I took a shot, just changing the namespace import, but clearly the API is drastically different.  Is there any information on either implementing v2.0 or on upgrading one of these existing sample projects out there?


How can i make a samsung phone, go through setup wizard again so the end user may personalize the phone?  I tried the factory reset but it wipes all data and applications installed, my interest is to keep applications and only wipe existing user data.  Is there any way to run it through ADB?... (this way i can only turn the phone off and let the end user handle the rest)

I am looking for a way to use ADB to trigger Setup Wizard at next boot. I know I can run the following command and get it to pop up. However, I can't figure out what triggers it to start at boot.  adb shell am start -a android.intent.action.MAIN -n com.google.android.setupwizard/.SetupWizardTestActivity   The phone I am currently using is stock and I would like to keep it that way.   I've read the  question:


I switch my laptop on then it's intro is normal then suddenly it appears for me somestuff written and at the end written failed Then after 1 minute/lesser a list of commands or operating text appears for me then they want me to type some commands I tried holding shift or lshift and no grub menu appeared  Please help me

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.


i need a help !!  what do you suggest for my question:  I need to make a backup of a SSD 240 GB (that was with Win10). What tool do you recommend me to do on Linux (Ubuntu) in the cloud?  thank you

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   Backup is incredibly important. Obviously there's no best backup tool, but a comparison of the options would be very interesting.   Graphical Interface? Command line? Incremental backups? Automatic backups? Install method: In standard repositories? PPA?


I am using the following environment to write axioms in my thesis  \theoremstyle{definition}   \newtheorem{myax}{Axiom}   As expected, if I write    \beging{myax}[Axiom of Choice] \end{myax}   I get   Axiom 1(Axiom of Choice)  I was wondering if I could display bold the text in [ ], hiding the rest (Axiom 1)  Thanks in advance   I am using the folllowing code  \usepackage{amsthm}  \theoremstyle{plain} \newtheorem{myth}{Theorem}[section] \newtheorem{myprop}[myth]{Proposition} \newtheorem{mylemma}[myth]{Lemma}  \theoremstyle{definition} \newtheorem{mydef}{Definition}[section] \newtheorem{myax}{Axiom}  \theoremstyle{remark} \newtheorem{myrmk}{Remark}[section] \newtheorem{myex}{Example}[section]   Code with ntheorem  \usepackage[amsmath,thmmarks]{ntheorem} \theoremheaderfont{\bfseries\upshape} \theorembodyfont{\itshape} \theoremseparator{. } %%%%%%%%% \theoremstyle{emptybreak} \theorembodyfont{\upshape} \setlength{\labelsep}{0pt} \newtheorem{myax} %%%%%%%%%% \theoremstyle{plain} \newtheorem{myth}{Theorem}[section] \newtheorem{myprop}[myth]{Proposition} \newtheorem{mylemma}[myth]{Lemma} %%%%%%%%%% \theoremstyle{plain} \theorembodyfont{\upshape} \newtheorem{mydef}{Definition}[section] %%%%%%%%%%%%%%%%%     \makeatletter \newtheoremstyle{remark} {\item[\hskip\labelsep\theorem@headerfont ##1\ \textup{##2}\theorem@separator]} {\item[\hskip\labelsep \theorem@headerfont ##1\ \textup{##2}\ (##3)\theorem@separator]} \makeatother \theoremstyle{remark} \theoremheaderfont{\itshape} \newtheorem{myrmk}{Remark}[section] \newtheorem{myex}{Example}[section] %%%%%%%%%%%%%%%%%     \theoremstyle{nonumberplain} \theoremheaderfont{\itshape} \theorembodyfont{\normalfont} \theoresymbol{\ensuremath\square} \newtheorem{proof}{Proof}  \usepackage{cleveref} \crefname{myth}{Theorem} \crefalias{Myth}{myth} \crefname{myprop}{Proposition} \crefalias{Myprop}{myprop} \crefname{mylemma}{Lemma} \crefalias{Mylemma}{mylemma} \crefname{mydef}{Definition} \crefalias{Mydef}{mydef} \crefname{myrmk}{Remark} \crefalias{Myrmk}{myrmk} \crefname{myex}{Example} \crefalias{Myex}{myex} \crefname{myax}{Axiom} \crefalias{Myax}{myax}  \begin{document} \begin{myth}  My theorem. \end{myth} \end{document}

Is it possible to have single theorems without numbering? I would like to be able to switch them off individually with asterisk-* or have a nono-theorem environment.  \newtheorem{theorem}{Theorem} \newtheorem{nono-theorem}{Theorem}[]


I am writing a paper and am using Bibtex to create the bibliography. Everything works fine except that the capital letters in the titles of my references is not preserved in the PDF. For example, in my .bib file I have an item like this:  @article{harsanyi1988general,   title={A General Theory of Equilibrium Selection in Games},   author={Harsanyi, John C and Selten, Reinhard},   journal={MIT Press Books},   volume={1},   year={1988},   publisher={The MIT Press} }   But the title in the PDF generated when compiled is:  A general theory of equilibrium selection in games.  Only the first capital letter is respected. How can I make it respect all the other ones?  If you need it, the code I have in my .main for creating the bibliography is:  \bibliographystyle{plain} \bibliography{mybibliography.bib}   Thank you.

Titles of articles I'm about to cite contain upper case letters and when using BibTeX it converts them to lower case ones. This happens only in the title and only the first letter conserves its case. For example, when I cite an article about HF, the reader won't know if it is about Hafnium (Hf) or fluorine acid (HF).  I know that I can fix it manually in the .bbl file but I would like to avoid it, or fix it automatically.


Currently I am working on a section where I need to fetch records from oracle database function in spring framework. I am using package and function inside it and trying to access the same in a jdbc template  PackageName  - mypakg  FunctionName - myfunc(:parm) //:parm= 3728  SQL: regn.gd.selectupdatesync= SELECT mypakg.myfunc(?) from dual // Gives correct result in SQLDeveloper via SELECT mypakg.myfunc(3728) from dual;  However in java code, when compiler reaches inside BaseService.java at dQueryForStringPS, it throws exception java.lang.NullPointerException  Logs  Exception message :null (e.getMessage()) Exception StackTrace:  org.prj.cos.state.online.common.dao.BaseDao.getPsJdbcTemplate(BaseDao.java:589), org.prj.cos.state.online.common.dao.BaseDao.dQueryForStringPS(BaseDao.java:171),  org.prj.cos.state.online.common.service.BaseService.dQueryForStringPS(BaseService.java:387)   I am unable to understand the exact cause of exception and why spring is not able to call a Oracle function viz this way. Is this correct alternative way or should I need to so something else?  Code inside Implementation class- ServiceImpl.java  String strId =  dQueryForStringPS("regn.gd.selectupdatesync", new Object[]{gdEntryFormBean.getPsCd()});   dQueryForStringPS is available inside BaseService.java   public String dQueryForStringPS(String query, Object[] paramValues) {     return baseDao.dQueryForStringPS(query, paramValues); }   BaseDao.java  public String dQueryForStringPS(String query, Object[] paramValues) {      return getPsJdbcTemplate().queryForObject(SQLSelector.getQuery(query),                                               String.class, paramValues); }  protected JdbcTemplate getPsJdbcTemplate() {     return TransactionLocal.getContext().getPsJdbcTemplate(); }   TransactionLocal.java  public static TransactionContext getContext() {     return THREADLOCAL.get(); }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


When an object reflects light and if it enters our eye, our brain interprets the light and make us see the point of reflection i.e., the object. But in case of image formation , the intersection of light rays makes us see the image as if it is at the point of intersection. Here, we see the image at point of intersection,  not at point of reflection. Why? What makes us see an image when light rays intersect?

Why is an image formed when two light(one to the focus and one to the lens perpendicularly from the top of the object) rays coming from an object intercept?


I have accidentally dropped a specific table and I don’t want to restore whole database (it is huge) but instead I want to recover only that table from a backup?   What would be most simplest solution?

on SQL Server 2005, we do a weekly full backup with nightly incremental backups.   I want to know if it is possible to restore a single table from a backup, either to the source database or a different one.   I can not find any clear answer online.   Thanks in advance.


I'm using Ubuntu 16.04 LTS. I downloaded and installed Geogebra 5 as a deb package. Since then, whenever I do anything with apt, a message is displayed saying:  W: http://www.geogebra.net/linux/dists/stable/InRelease: Signature by key 98272894F6478AA4434B41D3C072A32983A736CF uses weak digest algorithm (SHA1)   I tried uninstalling Geogebra and purging its repository with ppa-purge (but this didn't work since I couldn't find the repository). There was no entry for Geogebra in my installed software list in GNOME (Ubuntu) Software even before I uninstalled.  How should I solve this? I am aware that this is a problem on Geogebra's server's end but since I don't need to use it anymore, I need a way to remove the repository. Thanks!

I started setting up by adding repositories and then went to run a sudo apt-get update again before I started installing other software, and I get the Signature key lines and it stops. So it essentially won't let me update any packages now.  d@EliteBook:~/Downloads$ sudo apt-get update Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://dl.google.com/linux/chrome/deb stable Release                      Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease               Get:5 http://ca.archive.ubuntu.com/ubuntu xenial InRelease [247 kB] Hit:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:7 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease Fetched 247 kB in 0s (256 kB/s)                    Reading package lists... Done W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by  key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1) d@EliteBook:~/Downloads$   I've never seen this before whenever I setup and start installing things in Ubuntu. Is there something else I can do?


If I want to open downloads in terminal like cd downloads, it says no such file or directory.

How do I change directories to downloads, from the home folder, in the latest version Ubuntu 12.10? I tried cd /downloads, but it gave an error saying that there is no such directory.


It seems sometimes 'if' really means 'if and only if' (abbreviated as iff), and sometimes 'if but not necessarily only if'.   Is there a better usage with 'if' than the regular/default way?  Should I be more careful when writing technical writings?

I wonder if "iff" is considered a real word (as  says) or is it just an abbreviation (as in )?


What are the actual effects of voting on questions? All the documentation I could find just says that voting "moves things up" and "gives people reputation". I get the second part, and I get how voting "moves things up" for answers, but how exactly does voting move things up for questions? Does it make them appear higher on the main page? On in-site search results? On Google search results?

Possible Duplicates:             Voting on questions played a big role in the site when we didn't have the option to comment on, close, migrate, flag, or edit questions which did not fit the site or required modification to be useful and usable.  As it is, question votes are not much more than a popularity contest, and a lot of bandwidth is taken up on Meta regarding question votes.  Notably:        In most cases a downvote is being given where a good edit should be used instead, or a comment indicating that the question user needs to provide more information.  People are also downvoting in the case of duplicates (or suspected duplicates) when they don't want to do the work of finding the duplicate.  There is no need to downvote to 'alert' other users that a question isn't worth spending time on - if it's bad enough that it can't be fixed, and so bad that you want to be sure others avoid it then it's not worth keeping open.  These are all situations where the person downvoting should be taking a different action.  , and several questions have thrown ideas at how to increase question upvoting artificially, and a  was even implemented to encourage this behavior.  Given all this, I am now convinced that voting on questions is an unnecessary distraction.  Voting no longer provides any useful information about a question, and there are more than adequate means of fixing or removing questions that need work.  Voting makes more sense for sites like Meta where questions aren't really questions, but suggestions and discussions.  For purely Q/A sites such as SO, SF, SU, the voting is superfluous.  The only two possible positive things voting now provides are:   A way for users at lower rep levels to have a voice when they are unable to perform many of the other functions that are needed to fix a question (I contend this is useless, but perhaps they need some sort of outlet) A 'hook' to get new users into the reputation game (which fails frequently because questions aren't getting upvotes, especially questions from new users)   If that is truly the case, then we should consider removing question voting altogether, or removing the effect of question votes on reputation.   Am I wrong? What obvious and explicitly important role does question voting play in our community?


I've a Omen , I try  and this is the result  About Minimum system requirements ⚪ =  , ✔ = My system pass , ❌ = My system failed 💻 Processor ⚪ 1 gigahertz (GHz) with 2 64-bit processor or System on a Chip (SoC) ✔ Intel® Core™ i7-7700HQ (2.8 GHz base frequency, up to 3.8 GHz with Intel® Turbo Boost Technology, 6 MB cache, 4 cores) 💽 Memory and Storage ⚪ 4 GB RAM and 64 GB storage ✔ 16 GB RAM and 256 SSD + 4TB HHD ⚙ Firmware and TPM ⚪ UEFI, Secure Boot capable and TPM v2.0 ✔ UEFI and Secure Boot are enable on bios and TPM is 2.0 right ? ( in according with image or maybe wrong ???)  🖥 Graphics card and Monitor ⚪ DirectX 12 compatible graphics / WDDM 2.x and Display >9” with HD Resolution (720p) ✔ DirectX 12 with WDDM and first display 15" fullhd ( notebook ) and external 23" fullhd How to understand what missing for pass PC Health ?

Windows 11 requires this features:  Processor 1 GHz or faster with 2 or more cores on a compatible 64-bit processor or System on a Chip (SoC) Memory 4 GB RAM Storage 64 GB or larger storage device System firmware UEFI, Secure Boot capable TPM Trusted Platform Module (TPM) version 2.0 Graphics card DirectX 12 compatible graphics / WDDM 2.x Display >9” with HD Resolution (720p) Internet connection Microsoft account and internet connectivity required for setup for Windows 11 Home  I have a 15-ay108nh laptop. As far as I know, it supports all the required features. It has 8GB ram, 256GB storage, UEFI support, TPM 2.0 ( I enabled it in the BIOS ), DirectX 12 compatible graphics / WDDM 2.x, and 1080p screen. I installed the , but for some reason, I get this result:  How is it possible to find out exactly, why it fails?


Let T be a linear transformation on $\Bbb R^n$ that leaves a subspace $E\subset \Bbb R^n$ invariant and let T(x) = Ax with respect to the standard basis for $\Bbb R^n$. Show that if x(t) is the solution of the initial value problem $$x' = Ax$$ $$x(0) = x_0$$ with $x_0 \in E$ , then $x(t) \in E$ for all $t \in \Bbb R$. My thoughts: I understand that the subspace being invariant means that for all $x \in E$, $T(x) \in E$. The matrix A in this case is the transformation T on x. I'm struggling to see how to structure this proof though. The solution manual for this particular textbook gives a proof using sequences, but it feels like there should be a simpler route. Does anyone want to take a stab at explaining how to go about this? Thank you :)

Consider the linear dynamical system $\dot{x} = Ax $ in $V$ a finite dimensional vector space.  The definition of an invariant subspace $U$ is as follows:  For all $x_0 \in U$, (initial condition), the solution $x(t)$ with initial condition $x(0)=x_0$ lies in $U$, i.e. $x(t) \in U$ for all $t \in \mathbb{R}$. Intuitively, it means if we start in a subspace we never leave that subspace.  Prove that a subspace $U \subset V$ is an invariant subspace if and only if $AU \subset U$.


I want to open the same set of directory locations in one terminator window as multiple terminals every time by default (or when I run a script). I think it could be done via profiles or layouts.  was not very helpful.

Terminator is very powerful at organizing several computers or servers due to the split window and group all function. But here's the deal: I created my own Layout and would appreciate it to load at startup of terminator. Is that possible?


I'm looking for a word that would describe something like a modern phone that retains a rotary dial.  The dial's design was originally functional, but phone's function doesn't rely on the dial any more - it's just an aesthetic choice.

Possible Duplicate:          Ok, messy title. Sorry, but I have a memory of reading an article (possibly on Boing Boing) that mentioned this word. Essentially, it refers to the way visual elements in man-made objects are copied from predecessors.  Examples are how cellphones have a phone icon for the classic AT&T phone design that hasn't been used for decades. Or a DVD player/media player that uses a cassette tape icon. And yet another example is the injection molded plastic chairs you can buy at Wal-Mart where they imprint them with fake weave patterns, to mimic the old woven grass style of patio furniture.  Hopefully someone has a clue what I'm thinking of because I can't for the life of me recall this term.


I read in a physics today paper,  The electron can have nonvanishing EDM only if nature violates symmetry under time reversal (T) and under the combined operations of charge conjugation (C), which replaces particle by antiparticle (as we all know), and parity inversion (P).  I checked . So it will be nice if you can show me qualitatively and quantitatively about the above mentioned point.  Note: Simplicity in explanation is always nice. (I don't have much idea of these big words)

I am wondering if the mass density profile $\rho(\vec{r})$ has been characterized for atomic particles such as quarks and electrons. I am currently taking an intro class in quantum mechanics, and I have run this question by several professors. It is my understanding from the viewpoint of quantum physics a particle's position is given by a probability density function $\Psi(\vec{r},t)$. I also understand that when books quote the "radius" of an electron they are typically referring to some approximate range into which an electron is "likely" to fall, say, one standard deviation from the expectation value of its position or maybe $10^{-15}$ meters.  However it is my impression that, in this viewpoint, wherever the particle "is" or even whether or not the particle "had" any position to begin with (via the Bell Inequalities), it is assumed that if it were (somehow) found, it would be a point mass. This has been verified by my professors and GSIs. I am wondering if its really true.  If the particle was truly a point mass then wherever it is, it would presumably have an infinite mass density. Wouldn't that make electrons and quarks indistinguishable from very tiny black holes? Is there any practical difference between saying that subatomic particles are black holes and that they are point masses? I am aware of such problems as Hawking Radiation although at the scales of the Schwarchild radius of an electron (back of the envelope calculation yields $\tilde{}10^{-57}$ meters), would it really make any more sense to use quantum mechanics as opposed to general relativity?  If anyone knows of an upper bound on the volume over which an electron/quark/gluon/anything else is distributed I would be interested to know. A quick Google Search has yielded nothing but the "classical" electron radius, which is not what I am referring to.  Thanks in advance; look forward to the responses.


I'm new to the community and I have no clue about where to look for an answer to this question. I'm also new in Blender. I have a MacBook Air (2017) with a 1,8 GHz Intel i5 and an Intel HD Graphics 6000. My issue is the following: I can't use GPU compute because in the system preferences under system, my graphics card isn't displayed.

Why is it that Blender will only allow me to render with a CPU (GPU choice is unavailable)? Or is it until I acquire a graphics card that is specially built for such a task?  The images below show a Dell System Diagnostics (Video calibration) and GPU-Z results.      Platform: Dell Inspiron 3521 notebook with Core i3 Intel HD Graphics 4000


I was wondering as I read about characteristic of a ring: Is there an infinite ring with nonzero characteristic? We have $1+1+\ldots+1=0$, but that doesn't seem to imply that the number of elements in the ring is finite.

For curiosity: can a ring of positive characteristic ever have infinite number of distinct elements? (For example, in $\mathbb{Z}/7\mathbb{Z}$, there are really only seven elements.) We know that any field/ring of characterisitc zero must have infinite elements, but I am not sure what happens above.


I have updated to LTS 20.04 and tried to update GIMP to no avail because I get this message. I also tried through Software but it did not work either. The following packages have unmet dependencies:  gimp : Depends: libgimp2.0 (>= 2.10.18) but it is not going to be installed         Depends: libgimp2.0 (<= 2.10.18-z) but it is not going to be installed         Depends: libgegl-0.4-0 (>= 0.4.22) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  I tried the fix command but it didn't help. Did I miss something in my updating to LTS 20.04? Thanks for the help. I first made sure I had the repository with sudo add-apt-repository ppa:otto-kesselgulasch/gimp then sudo apt install gimp when i got the error message I did sudo apt-get update --fix-missing I hope this is a better description of my problem. As suggested I used Synaptic to fix the issue and tried to install Gimp sudo apt install gimp and now it is typing over and over Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 15511 (synaptic) and It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. trying to upgrade by typing first sudo apt-get update then sudo apt-get upgrade I get the following messages E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 15511 (synaptic) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? I also tried replacing apt by aptitude as suggested in previous and this command is no longer existing in LTS 20.04 apparently

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


I use  in Windows to access Internet via WiFi and create a WiFi hot-spot to share Internet with my other devices.  Since Connectify isn't available for Ubuntu, are there any ways that I can gain the same functionality?

How to setup an Access Point (AP) mode Wi-Fi Hotspot?  Point to be noted: Wireless access points aren't the same as ad hoc networks. They differ significantly. In short, ad hoc networks aren't supported on newer devices and most Android, Windows Phone and Blackberry devices (and maybe iOS devices too), whereas AP mode Wi-Fi hotspots are. To get an idea about AP mode hotspots, ad hoc networks and their difference, refer to .


Do these sentences need question mark?  How To Repair and Restore Windows 10   (?)  Or  How to fix java.lang.NoClassDefFoundError: Failed resolution of: Ljava/beans/Introspector error     (?)  (this is a programming question)

I found the following blog title without a question mark from :     How to ease Afghanistan’s progress in cricket   Is it grammatical, if we don't put question mark in questions of titles? I think this blog title should have been like this:     How to ease Afghanistan’s progress in cricket?   I also found the following blog title from  without a question mark:     Election rigging 101: How to steal a mandate   However, I found a question mark from other blog title of :     Elections 101: What is the ECP and what does it do on election day?


I have downloaded Mavericks from the App Store. Now I have the installation image, but I am afraid to install it because it might delete my files and programs under Mac OS X Lion 10.8.4. If I install Mavericks, will it all be deleted?

I'm downloading the update right now and I would like to know if any of my files or app gets deleted after this update... I'm sure many people here already installed the update so what can you say?


I would like to ask a question on Stack Overflow which includes a table of data from a MySQL database. What is the best way to include a table of data in a question?

It seems like a lot of people try to display tables in Stack Overflow questions, but don't do a very good job. Is there Markdown syntax that supports creating a proper table?


So I downloaded Ubuntu 12.10 on a Dell mini Inspiron 910. Had problems with wifi, but I bought a wireless adapter and so I fixed that. But when I try installing flash, with sudo apt-get install flashplugin-installer gsfonts-x11 it gives me:  Reading package lists... Done Building dependency tree        Reading state information... Done Package gsfonts-x11 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Unable to locate package flashplugin-installer E: Package 'gsfonts-x11' has no installation candidate   which I don't really understand.

I have an EC2 instance running Ubuntu 12.10 and I'd like to install Flash Player on it. However, when I try to install it as follows, I'm unable to. Some hint on how I could proceed? Thanks.  $ sudo apt-get install flashplugin-installer Reading package lists... Done Building dependency tree        Reading state information... Done Package flashplugin-installer is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'flashplugin-installer' has no installation candidate   I haven't set up VNC yet, so I'd very much prefer a CLI solution for the same.


For a few days now, when I add a comment, SO will (sometimes) show my comment and indicate that there are one or more new comments, and on showing the new comments, it is just my comment that is shown.  Just now, it told me there were 6 new comments; there weren't — there was just mine.  SO didn't used to get confused about that.  Please fix it so it is unconfused once more.    Specific context: .  I set out to reproduce it — the site recognized that it was under scrutiny and refused to cooperate.  The problem seems to be intermittent, or to depend on the sequence of actions you undertake.  But I've noticed it on and off for most of this week.  I don't think it depends on having a lot of comments; I've seen it with a couple of comments in the question.  I'm not sure whether it is restricted to comments to the question; I think it can occur with comments to an answer too.  I've seen it with both Firefox (23.0.1) and Chrome (29.0.1547.57) on Mac OS X 10.8.4.  Documentary Evidence  Question:   When the question is first loaded there are a number of hidden comments (now 10, was 9 when I started):    When I added a comment, it said there were 8 more to show:    When I tried to show the '8 more comments', they weren't there:    After reloading and redisplaying, the comments available were:    Strictly speaking, the images were generated in the order 2nd ('8 more'), 3rd ('not 8 more'), 1st ('10 more'), and 4th ('look at them all').  I've not tried adding yet another comment.  But this bug is still active a week or more after I reported it, and a month or more after it was first reported.

So I've been experiencing this in the last few days: sometimes when someone replies to my comment, and I reply to the reply, then the "add/show 1 more comment" link appears immediately after I post my comment. However, when I click it, it disappears and nothing is shown.  I don't think it's that OP is posting two comments of which he deletes the second one, because this has happened to me several times, even when I was replying within 2-3 seconds.  I do, however, believe that this is more or less the same bug as , except that I don't have to reload the page in order the link to be gone, and I also seem to be getting the erroneous behavior only if I reply to a comment which is itself a reply to an earlier comment of mine.  Unfortunately, I wasn't careful enough to take a screenshot last time this happened, but here's what I am talking about for those who like visual demonstration better:


I want to force a calling method to implement exception handling.  Java forces a calling method to implement exception handling where it calls another method  that thorws an exception.  Does VB.Net have the same mechanism?

I know Googling I can find an appropriate answer, but I prefer listening to your personal (and maybe technical) opinions. What is the main reason of the difference between Java and C# in throwing exceptions? In Java the signature of a method that throws an exception has to use the "throws" keyword, while in C# you don't know in compilation time if an exception could be thrown.


Determine whether the following series converges: $$\sum_{n=1}^{\infty}\left(\frac{n}{n+1}\right)^{n^2}.$$   I tried to solve it using ratio's test but it leads me nowhere.

Determine whether the series $\sum_{n=1}^{\infty}(\frac{n}{n+1})^{n^2}$ is convergent or divergent.  I've tried applying all the basic tests to no avail. I need to find out what the "trick" for this particular series is.


I have this string:   pass__ = 'HSSSTS00008\4Tech'   However, printing this return this format:  'HSSSTS00008\x04Tech'   Therefore I'd like to remove the special character x and having the same value as pass__ after printing it, since this is a validation for an authentication layer.

I have a string that contains both double-quotes and backslashes that I want to set to a variable in Python. However, whenever I try to set it, the quotes or slashes are either removed or escaped. Here's an example:  >>> foo = 'baz "\"' >>> foo 'baz ""'   So instead of baz "\" like I want I'm getting baz "". If I then try to escape the backslash, it doesn't help either:  >>> foo = 'baz "\\"' >>> foo 'baz "\\"'   Which now matches what I put in but wasn't what I originally wanted. How do you get around this problem?


I'm trying to investigate high RAM use during the use of my Python application. The image below shows the high memory usage. Is there an option when using PyCharm to view memory usage? I have 16GB of system memory.

and other coding contests often have a maximum time to run or people boast of how fast their particular solution runs. With Python, sometimes the approaches are somewhat kludgey - i.e., adding timing code to __main__.  What is a good way to profile how long a Python program takes to run?


Let $a \in \mathbb{C}$ be such that $|a| > e$. Show that the equation $e^z=az^n$ has $n$ solutions in the disk $D_1(0)$ i.e. the unit disk centred at the origin counting multiplicity.   I think I'm supposed to use use Rouches theorem to solve this. Thanks in advance.

Rouché theorem : Let $D \subset \mathbb{C}$ a domain and $f,g: D \to \mathbb{C}$ two holomorphic functions in $D$. Let $C$ a closed path contained in the interior of $D$. If $|f(z)+g(z)| < |f(z)|+|g(z)|$, $\forall z \in \mathbb{C}$, then $f$ and $g$ have the same number of zeroes in the interior of $C$.  Question : Show that if $a>e$, the equation $az^n=e^z$ admit $n$ roots in the unit disk.  So I've taken $f(z)=-az^n+e^z$ and $g(z)= az^n$ in using the closed path $C : |z|=1$. I obtained $|-az^n+e^z+az^n|= |e^z| \leq |-az^n+e^z|+|az^n|$, $\forall z \in C$. How could I prove that $|e^z| \not= |-az^n+e^z|+|az^n|$?


I have and asp.net mvc web app  my issue is I have to change the DB connection string manually in web.config when i try to publish to dev or production server.  <!--i comment this when i publish to prod server--> <add name="HRCornerDbEntities1" connectionString="urlToDevServer" providerName="System.Data.EntityClient" />  <!--i comment this when i publish to dev server--> <add name="HRCornerDbEntities1" connectionString="urlToProdServer" providerName="System.Data.EntityClient" />   is there any approach so the web.config connectionString automatically know when i publish to dev or prod server

I need to use different database connection string and SMTP server address in my ASP.NET application depending on it is run in development or production environment.   The application reads settings from Web.config file via  property.  I use Build/Publish command to deploy the application to production server via FTP and then manually replace remote Web.config with correct one.  Is it possible somehow simplify the process of deployment? Thanks!


this is what happens when I try to update, update manager (Requires installation of untrusted packages) how can I fix this  please

It didn't fixed the error. So, how do I fix my GUI update?  For every software I have to install it from command line because I got same error when install software from Ubuntu Software Center.


Hi all,   Currently trying to build this into salesforce. I need to have a picklist field which is automated on the results of two previous options that are manually selected. They are all on the same object.  Field 1 - Probability: High, Medium, Low  Field 2 - Risk: High, Medium, Low  Field 3 - Automated answer: Minor, Moderate, Critical  Do I need to use visualforce to do this, or can it be done using a validation rule? I have tried using numerous options but can't quite work it out as of yet.

I have 3 picklist in an object Test1, Test2, Test3  1. Test2 is dependent on Test1  2. Test3 is dependent on both.. Test1 and Test2    I want to have Test3 picklist showing values accordindly. i.e  if U selected Test1 = First and Test2 = SA . I should be able to see "IST,ABC and PQR" in Test 3.   Is this possible???


I'm using both algorithm2e (for pseudo code) and listings (for SQL-statements) in my bachelor thesis. But I won't have a lot of entries for both so a full page for the list of algorithms / listings is wasting space.  Somewhere between \listofalgorithms and \lstlistoflistings a new page is inserted, even though there is enough space to fit both on the same page:   How can I prevent the new page?  This is a MWE to reproduce the image above:  \documentclass[11pt, a4paper]{report} \usepackage[utf8]{inputenc} \usepackage{algorithm2e} \usepackage{listings}  \begin{document} \tableofcontents  \chapter{My first chapter} This is my content... Talking about algorithm \ref{alg:algo} and listing \ref{lst:listing}  \begin{algorithm}[htbp] \ForEach{lines in code}{     \tcp{do something} } \caption{My algorithm} \label{alg:algo} \end{algorithm}  \begin{lstlisting}[caption={My Listing}, label={lst:listing}]     DO; SOMETHING; \end{lstlisting}  \listofalgorithms \addcontentsline{toc}{chapter}{List of Algos} \lstlistoflistings \addcontentsline{toc}{chapter}{List of Listings}  \end{document}

My document has a table of content in it. As i found out, after inserting one (\tableofcontents) LaTeX does a \clearpage by default.  A method to ignore \clearpage is the command \let\clearpage\relax, witch ignores it till the end of the document. Although i have no other command in my doc, my last page got erased. So i want to reactive \clearpage right after the toc was generated.  I am searching for something like:  \let\clearpage\relax \tableofcontents \*reactive it*   One try to do it with \begingroup failed.  \begingroup \let\clearpage\relax \tableofcontents \endgroup   Any ideas?


I lent my mom my backup iPhone running iOS 9 after she lost her Android.  She created an iCloud account in order to turn on Find My iPhone so she wouldn't lose it. Never linked the account to an email and proceeded to forget the password and lock herself out of the account. She doesn't really remember what she wrote as her birth date but thinks (thinks!!!) she might have given the correct answers to the security questions. Which is irrelevant unless I can come up with whatever birth date she gave the server.  Right now I have normal access to the phone including connecting to iTunes with my own account, just unable to do anything or disconnect from her account within iCloud.  I have an old backup from the same phone in iTunes created with my own Apple ID when I upgraded from iOS 8 to iOS 9. If I used this backup to restore, will I finally be able to connect to iCloud using my own account? I have a feeling it won't work but I had to ask. PS: She was sent a 6 digit code to input in a trusted device, but the only trusted device for that account is still the same phone.

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


When I select an object, it does not show it as selected, same for faces and vertices. I tried updating blender to the latest version, but it seems that the problem is only in the project because it doesn't happen on other ones. Would anybody know how to fix it ? (in the picture, you can see on the right panel that a part is selected but it ain't shown)

I can't select anything in the 3D viewport, and I don't see the gizmos axis or selected objects.


I have two tables. One for users and one for posts. The users table has the following fields:   id, username, password, created_at, modified_at   The posts table has the following fields:  id, user_id, title, body, created_at, modified_at   When I use a query like:  SELECT * FROM `users` LEFT OUTER JOIN `posts` ON users.id=posts.user_id   And fetch the results using PDO:  $sth = $this->$default_connection->prepare($query); $sth->execute(); $sth->fetchAll(PDO::FETCH_ASSOC);   The returned array overwrites all the columns with the same names like id, created_at, modified_at like this:   Array (     [0] => Array         (             [id] => 1             [username] => johnSmith             [password] => 2348r7edf8s79aa0230             [created_at] => 0000-00-00 00:00:00             [modified_at] => 0000-00-00 00:00:00             [user_id] => 18             [title] => First Post             [body] => Just testing...         ) )   The id field for the user is not shown, instead overwritten by the id of the post. Same goes for the created_at & modified_at fields.   I believe I can solve this problem by either using aliases or something like this:      SELECT         users.id,         users.username,         users.password,         users.created_at,         users.modified_at,         posts.id AS postId,         posts.user_id,         posts.title,         posts.created_at AS postCreatedAt,         posts.modified_at AS postModifiedAt    FROM `users`        LEFT OUTER JOIN `posts` ON (users.id=postId)   Or something similar, but I was wondering if there was a way to do this without manually writing out the name of every single column or an alias for every time I want to distinguish between two columns of the same name?  Is it possible to do something like:  SELECT users.* AS User and posts.* AS Post from `users` LEFT OUTER JOIN ON (User.id=Post.user_id)   And have it automatically use aliases for every column? Or is there any other faster/more convenient way to do this? Or can I do this without having to define any aliases myself?  Thank you

I have two tables in my database:  NEWS table with columns:   id - the news id  user - the user id of the author)   USERS table with columns:   id - the user id   I want to execute this SQL:   SELECT * FROM news JOIN users ON news.user = user.id    When I get the results in PHP I would like to get associative array and get column names by $row['column-name']. How do I get the news ID and the user ID, having the same column name?


How should I correct the following issue?  The following code works on a JTable with 4-columns without tripping a Null Pointer Exception:   public void setSubject() {     try {           int row = table_SPAssignList.getSelectedRow();         String prop_addr1_ = (table_SPAssignList.getModel().getValueAt(row, 0)).toString();         String prop_id_ = (table_SPAssignList.getModel().getValueAt(row, 3)).toString();           /*          * UPDATE TriTier to set Subject Property          */         dbConn = sqliteConnection.dbConnector();         String query = "UPDATE TABLENAME SET sp_id = " + prop_id_ + " where id = " + tID;         PreparedStatement pst = dbConn.prepareStatement(query);         pst.execute();         pst.close();          /*          * Display Subject Property Information on Panel          *           */         String addr = prop_addr1_ ;         label__SPAssignDBID.setText(prop_id_);         label_SPAssignAddress.setText(addr);      } catch (final Exception getProperty) {         getProperty.printStackTrace();     } }   However, if I insert the following code, between the getValueAt(row, 0) and getValueAt(row, 3) lines of code a null pointer error seems to occur if the field does not contain data:  String prop_addr2_ = (table_SPAssignList.getModel().getValueAt(row, 1)).toString(); String prop_zip_ = (table_SPAssignList.getModel().getValueAt(row, 2)).toString();   It is very likely that these fields, within the database, do not have any data. Columns 0 and 3, of the table_SPAssignList object will always have values in them.  I am connecting to a SQLite database.  The following posts may be related to my issue  () and ()

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


Let $X$ be a finite dimensional real linear space, or more generally a finite dimensional vector space over a field of characteristic $0$.  Let $(P_i)_{i=1}^n$ be a finite sequence of linear mappings $P_i :X\rightarrow X$ such that    $P_i^2=P_i$ for $i=1,...,n$,  $(P_1+...+P_n)^2=P_1+...+P_n$.   I wish to show that  $$P_i\circ P_j=0 \textrm{ for } i \neq j.$$  I know how to prove it only for $n=2$: if  $(P_1+P_2)^2=P_1+P_2$ then   $$P_1P_2+P_2P_1=0. \tag{$\ast$}$$  By multiplying both sides this equality by $P_1$ from left and by $P_1$ by right and obtain two equalities: $P_1 P_2+P_1P_2P_1=0$ and $P_1P_2P_1+P_2P_1=0$. By subtracting:   $$P_1P_2-P_2P_1=0. \tag{$\ast\ast$}$$  From $(\ast)$, $({\ast}\ast)$, we get $P_1P_2=0$, $P_2P_1=0$.

I am reading Introduction to Quantum Computing by Kaye, Laflamme, and Mosca. As an exercise, they write  "Prove that if the operators $P_{i}$ satisfy $P_{i}^{*}=P_{i}$ and $P_{i}^{2}=P_{i}$ , then $P_{i}P_{j}=0$ for $i\ne j$.''   In the context of this problem, it has been assumed that $I=\sum_{i=1}^{n} P_{i}$, where I suppose that $n$ could be infinite. I have shown that this is true in the trivial case $n=2$, but the general case has been eluding me. How should I attack this?


I’m travelling at the speed of light. If I hold a mirror in front of me could I see my face?

I have looked online to no avail.  There is two competing answers and I am curious to know which one is right.  Someone asked me this question.  If you are traveling at the speed of light can you see your reflection in a mirror in front of you?  My answer to the question is no, I would figure that in order for that to happen the light reflecting off you that would appear in the mirror must travel faster than the speed of light to actually reach the mirror (which we all know is impossible).  He says the answer is yes, that it is all relative to the current frame of reference.   Can anyone validate the correct answer with possible references?


I'm trying to remove every GameObject which meet certain criteria (health<0), completely from every occurrence, so every ArrayList it might be in, and such.   I have a main ArrayList containing every GameObject that may get removed, and I'm trying to iterate through that ArrayList with a For-Each, checking each element for the criteria, and removing it.   This however results in ConcurrentModificationException, which I know the reason to, but do not know how to work around it. Any help would be much appreciated!

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.