I writing a report in spanish, and I would like the page numbers in the \frontmatter to be numbered with lowercase roman numbers. However, the selection of spanish in the babel package changes the configuration to something else (not sure if uppercase or small caps, but I think is the later).  Here's the MWE  \documentclass[12pt,letterpaper,oneside]{book} \usepackage[english]{babel} \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}  \begin{document} \frontmatter \renewcommand\thepage{\lowercase{\roman{page}}} \tableofcontents \chapter{Introduction} Lorem ipsum dolor sit amet, consectetur adipiscing elit.   \mainmatter \chapter{More stuff} Ut sapien nisl, rutrum eget laoreet blandit, eleifend eu sapien. Cursus non.  \end{document}   That code gives the desired result. But changing the 2nd line to \usepackage[spanish]{babel} puts the page numbers in the frontmatter in a different format. How can I change them back to lowercase roman numbers?  Other questions in this forum deals with inconsistencies between the \tableofcontents and the actual format presented in the document, but I couldn't find the answer to this particular issue. Any help is appreciated. Thanks in advance

I want to use lower-case roman numerals in a list, and I used:  %Redefine the first level \renewcommand{\theenumi}{\Roman{enumi})} \renewcommand{\labelenumi}{\theenumi}  %Redefine the second level \renewcommand{\theenumii}{\roman{enumii})} \renewcommand{\labelenumii}{\theenumii}   But I get upper-case roman numerals for both the first and the second level (I actually get smaller roman numerals for the second level).  Is there a way to use lower-case roman numerals?  Here is an example of the code I used:  \documentclass[letterpaper]{article}  \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[spanish]{babel} \usepackage{parskip} \usepackage{amsmath} \usepackage{amsthm} \usepackage{mathtools} \usepackage{amssymb} \usepackage{fullpage} \usepackage{graphicx} \DeclareMathOperator{\lcm}{lcm}  \newtheorem{mydef}{Definición} \newtheorem{theorem}{Teorema} \newtheorem{lemma}{Lema} \newtheorem{proposition}[theorem]{Proposición} \newtheorem{corollary}[theorem]{Corolario} \newtheorem{remark}{Nota}  %opening \title{Tarea I} \author{Pedro     \and Mateo} \date{11 de Diciembre de 2013}  \begin{document}  \maketitle  %Redefine the first level \renewcommand{\theenumi}{\Roman{enumi})} \renewcommand{\labelenumi}{\theenumi}  %Redefine the second level \renewcommand{\theenumii}{\roman{enumii})} \renewcommand{\labelenumii}{\theenumii}  \begin{enumerate}     \item \     \begin{enumerate}         \item Muestre que $\mathbb{Q}(\sqrt[3]{2})$ no tiene automorfismos no triviales.         \begin{proof}             Dada la extensión de campos $\mathbb{Q} \subset \mathbb{Q}(\sqrt[3]{2}$         \end{proof}      \end{enumerate} \end{enumerate}   \end{document}


I'm trying to figure out the name of this effect and how to achieve it in Lightroom or Photoshop.

Inspired by the question  by , and the response to the subsequent . I would like to ask how to achieve a specific photo effect.  There may be more photographers that pull this off, but I know of two specific ones. The first is the wonderful photographer, . I know that he does lots of post processing, and his talent goes beyond a short list of tips that I can learn from a website, but I think there is something that I can hope to understand.     What is the Dave Hill effect? I have heard people talk about it, but what is it actually and how does one achieve it?   and     On his webpage, the "Nerd ad", "Allen Robinson", and "Jon Heder" shots give the subjects a specific skin tone/saturation. In general, his portrait shots are amazing. The detail and texture mystifies me. How can I pull this eerie feeling off?   Now the second photographer is  from flikr. His shots are also extremely impressive.      Again, he is using some black magic to make skin tone amazing. His subjects look beyond real, and I love it. Three specific examples are , , . Looking at energy, beyond the absolutely phenomenal idea for the shot and execution, and just focusing on the subject, he has this plaster/grey look, and his skin looks wonderful. Similar things are true for those other shots I linked.   Some ideas I have had that might contribute to this are HDR or possibly just phenomenal lighting setups. I have watched the videos on Dave Hill's website, but they just make me think more-so that he sold his soul to Mephistopheles.   I would appreciate any suggestions on how to achieve these results, or even some direction to go in this direction.   Thanks so much!


Light slows down upon entering different transparent objects, and the ratio is taken as  of the object. If light can be slowed down, then is there a limit up to which it can be slowed down? If yes, then what is the minimum speed?

May there be materials yet to be discovered which may have a higher refractive index than today's known materials (for wavelengths within the visible range)?  Is there a theoretical limit for the refractive index of a material?


i just bought a Ryanair plane ticket from Marrakech to Milano-Bergamo, but I see on the ticket that this is not a boarding card and I need a visa. I'm a Moroccan passport holder  who lives in italy, so I have  an italian identity card and an unlimited residence permit, and actually I never needed a visa to travel to/from  Morocco/ Italy. I traveled to Marrakech one month ago with a normal ticket ( with the QR code). So now i have to go back to Italy. I don't know why i received a boarding pass like that.... Can someone help  me, please?

I just bought a Ryanair plane ticket except that I did not see the QR code on the boarding pass, is that normal? the message is : this is not a boarding card go to check-in for visa check and boarding card


I have a little question about variables. My main language is Java (and I'm learning Python) so, I have a problem calling a variable in a function, it doesn't refresh its new value:  # Values global e1x, e1y, e1c, e2x, e2y, e2c, altx, alty, x, y  def getValues():     print("Taking Ax + By = C:")     e1x = float(input("Value of x in first equation: "))     #...     if(confirm()): # A function I ommited 'cause its irrelevant         return e1x, e1y, e1c, e2x, e2y, e2c     else:         getValues()  def calculateValues():     # Stuff with variables   # MAIN getValues() calculateValues()   I tried to write it without the global, tried to use the self word but, It doesn't work. (Using Python 3)  ERROR:   Traceback (most recent call last):    File "E002_GaussSeidel.py", line 41, in <module>       calculateValues()    File "E002_GaussSeidel.py", line 34, in calculateValues       print(str(e1x))  NameError: name 'e1x' is not defined

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I want to download windows 7 and windows 8 properly and like to make a dvd which will help me to format windows 7 and windows 8 and also install window 7 and windows 8. I really very eager to know. I don't have any idea about this...  I want to format my system and install windows 8 but I don't have any dvd or downloaded file....

I obtained a licence key for Windows 8 through DreamSpark. Is there a way to download a Windows 8 ISO image like you could for Windows 7? I am on a non-Windows machine, so I cannot use the Secure Download Manager to download Windows 8 directly using DreamSpark.


Do the rules allow the bonus action shove (special melee attack) from Shield Master to be "converted" to a regular attack for use as an improvised weapon attack?  Since a shove is a special melee attack that replaces a regular attack (at the choice of the player) when you make an Attack action, could one "convert" a bonus-action shove provided by the Shield Master feat into a regular attack using the shield as an improvised weapon?  This would create value for people discouraged by the recent rules clarification regarding the timing of this feat. The value added would be that a class with Extra Attack could take the Attack action, use their first attack to shove, then attack with the rest of their attacks. Having taken the Attack action, you then generate a bonus-action shove, which ideally could also be converted back to an attack using the shield as an improvised weapon.  (I like the flavor of a shield master using his shield for an attack.)

Can a level 3 fighter use their shield as an improvised weapon and attack using their bonus action on top of their regular attack?


I'm using Razor View and i have list . I'm sending this list controller to view and filling inside "div" but when i fill this div's i want to format some numbers in my list?  Do you have any idea?  Here my view code  @{ var statuslist = ViewBag.List; for (int i = 0; i < statuslist.Count; i++) {
@statuslist.Count

         @statuslist[i].StationCode - @statuslist[i].StationName
@statuslist[i].Status - Last Check : @statuslist[i].LastCheck
<input id="alertid_@i" type="text" style="display:none;" value="@statuslist[i].Alert"/>

FUEL - @statuslist[i].TotalWet
 // here i want to format
DRY  - @statuslist[i].TotalDry
 // here i want to format             @if (statuslist[i].Alert == "ONLINE")             {                              }             else if (statuslist[i].Alert == "WARNING")             {                              }             else             {                              }

  } }

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


I have no way of accessing any of my settings on my fresh install of Ubuntu 17.10.  I installed 15 minutes ago, added a few core packages, one of which was wine where dpkg failed and I had to restart it.  And it keeps telling me randomly that an install failed of : libsane1 (experimental).  After I installed those packages, no settings available.  The menus are gone, their icons are gone, they won't load even if they have an icon.    As soon as I got the first error message from dpkg, I did a   sudo apt-get remove libsane1   which went perfectly well and appeared to clear up the error.  Then back and did a   sudo apt-get install libsane1   which also went perfectly fine and no problems seemed to exist.  Only during the installation of wine-hq-staging on my fresh and clean ubuntu does the error appear.  Well it also appears on winehq-stable too but I did not use that this occasion.

System settings is missing. I tried reinstall it as it mentioned , but it seems to be installed and deactivated. This problem occurred when I installed Elementary desktop environment and uninstalled it afterwards.


I am confusing about which one is correct   Mark wrote too slow on the exam. He always writes slowly. Mark wrote too slowly on the exam. He always writes slowly.   Do anyone have an idea about which one is correct.

AFAIK the correct grammar for "speak slow" is "speak slowly" (slowly being an adverb). Please correct me if I am mistaken.  But in daily life I have not heard anyone saying "Speak slowlier".  I think I heard folks saying "Speak slower" but I also think it is incorrect.  Which is the best or correct form to convey the message?  Could that be the longish "Speak more slowly?"


I am trying to create a blackjack game in python and I've come to a standstill. I need to use the sum function in order to check if the player has over 21 or not but when I use .append, it inserts the new value into the player's hand as such. You now have ['K', 8, [4]] Then when sum tries to add it all together, it can't grab the last value. I believe this is because it is in it's own set of brackets. (Which is a list in a list?) Any help would be greatly appreciated! Thank you!  import random deck = [2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9,         9, 9, 9, 0, 0, 0, 0, "J", "J", "J", "J", "Q", "Q", "Q", "Q", "K", "K", "K", "K", "A", "A", "A", "A"] value = {"2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8,           "9": 9, "0": 10, "J": 10, "Q": 10, "K": 10, "A": 1, "A": 11} random.shuffle(deck)  player = [deck.pop() for i in range(2)] dealer = [deck.pop() for i in range(2)]  print("You have", (player)) print("The dealer has", dealer)  def hit():     playing = True     while playing:         hit = input("Do you want to hit or stand ")          if hit == "hit":             player.append([deck.pop()for i in range(1)])             print("You now have" , player)             print("The dealer has", dealer)             if sum(player) > 21:                 print("You bust! The dealer wins and steals all your hopes and dreams!")                 playing = False           elif hit == "stand":             print("It is now the dealer's turn")             playing = False          else:             print("Please choose either ""Hit"" or ""stand")  hit()

What's the difference between the list methods append() and extend()?


I have an app with one In-App Purchase item. When looking at the Payments and Financial Reports the Estimated Amount Owed is > 300 DKK (I'm from Denmark).    However, there's been no payment yet. What am I missing?  I checked in Agreements, Tax, and Banking and I have a Paid Application contract in place with Bank Info.

I'm an iOS developer and I've been selling very few apps on the App Store. I would like to ask some questions about withdrawn money from iTunes Connect.    I already know   Minimum payment: $150 (USD) Apple will fund every month     My question   If I earn over $150 in my account, for example: $500, how much money will I receive? I've known that Apple will fund every month, additionally, after 45 days of the first day of the month, is that correct? I am a little bit confused to calculatate this, for example, I started sale of my app at July 16, 2015, so what day does money arrived to my bank account? In addition, how do I calculate this?


I have been using Stack Exchange(desktop) for more than 4 years and I know all the options in the website. But now installed the Android App of our SE and viewed a question of Webmaster and I can able to see the text 'Edited' in the question asked by the questioner but when I tried click the Edited button nothing is working.   Could only please help me to access the edit history of question or answer in App?  Note: I'm not able to upload my screenshot for this question and I will ask a separate question regarding this one :-P  Additional Note: In case if this has been asked already kindly redirect me to that question instead of down voting ;-)

Basically this suggestion for the Android app:   Many times I'll see that a post has been edited on the Android app. I'll want to see exactly what was edited, and the Android app doesn't show this. Can the revision history be added to the Android app?


I submitted my paper in one of the Energy journal in Elsevier. After 2nd revision of my article, I got no update. So, I gently sent an email. Then after 2 days the status said " Required Reviews completed". But this status did not change for almost 2 months. Should I send another email to the editor? Is there any possibility to reject my article?

I had submitted my paper in an Elsevier journal one year back. Now, status update on the submission tracking says "Required reviews completed." However, for the last two weeks still there is no change in the status.  Should I ask the editor what is going on with my submission?


I'm trying to use the EM to estimate some parameters. I've programmed and it delivers. The problem however is that for each run of my programme, it can take either 5 seconds, 1min, 3min or more to give an estimate. So, I'm looking to accelerate the EM algorithm on the internet and I've find myself swamped with methods. There are so many - like Aitken's method, Louis', generalized conjugate approach, generalized gradient, hybrid methods like the ones based on Newton-Raphson, the ECM, and the ECME... (probably still missing some) - that I do not know which one to choose, and I simply do not have the time to study all of them by myself. Hence, I ask for your help in deciding which one I should study.   I'm sampling from $ Y_n \sim \pi N(\theta_1+\theta_0Y_{n-1},\sigma^2)+(1-\pi)N(\theta_2+\theta_0Y_{n-1},\sigma^2)$ and I'm using the EM to estimate $\theta_1,\theta_2,\sigma,\pi$

Are there any speedy alternatives to the EM algorithm for learning models with latent variables (especially pLSA)? I'm okay with sacrificing precision in favor of speed.


I just downloaded version 12 and after finding out that I had to burn the ISO to a CD (my Win XP computer did not have any burning software on it), when I insert the disc it just wants to run a demo. I want to do a full install (totally replace WinXP and have only Ubuntu). What's the trick?  EDIT: My PC is a clone, built in 2006 by a local PC shop, has an AMD Athlon processor and a Benq CD drive. It runs really slow using Windows XP. I have previous experience with some older PCs - I have installed Ubuntu in the past (I think it was version 10) and it breathed new life into them. I even used one of them for writing an article comparing OpenOffice to MS Office and did a little Drupal development work on it, even after it seemed the computer was essentially dead with Windows.   Anyway, it looks like it is too old to upgrade to Ubuntu so I am giving up on this. Thanks for all of your help. If there is any way to close this post, please feel free to do so.

I would like to see a full how-to guide on how to install Ubuntu.


I have always had this problem and I avoid floating div's because of this problem. The code seems to work but when you inspect the code in Google's developer tools it shows that the Main div is 0px tall. the problem I have with this is what if I want the Main div to have an image or a color. The solution I found to getting this to work is applying a float to every div so Main would also get a float but floating the Main div will break the centering of the main container. Does anyone know of a way to fix the two divs going outside of the main div?   .float-left {   float: left; }  .float-right {   float: right; }  main {   width: 100%;   height: auto;   background-color: darkgray; }  .div1 {   height: 200px;   width: 50%;   background-color: darkgreen; }  .div2 {   height: 200px;   width: 50%;   background-color: darkblue; } <link href="https://meyerweb.com/eric/tools/css/reset/reset200802.css" rel="stylesheet" type="text/css">

Although elements like
s normally grow to fit their contents, using the float property can cause a startling problem for CSS newbies: If floated elements have non-floated parent elements, the parent will collapse. For example:

Div 1

Div 2

    The parent div in this example will not expand to contain its floated children - it will appear to have height: 0. How do you solve this problem? I would like to create an exhaustive list of solutions here. If you're aware of cross-browser compatibility issues, please point them out. Solution 1 Float the parent.

Div 1

Div 2

    Pros: Semantic code. Cons: You may not always want the parent floated. Even if you do, do you float the parents' parent, and so on? Must you float every ancestor element? Solution 2 Give the parent an explicit height.

Div 1

Div 2

    Pros: Semantic code. Cons: Not flexible - if the content changes or the browser is resized, the layout will break. Solution 3 Append a "spacer" element inside the parent element, like this:

Div 1

Div 2

    Pros: Straightforward to code. Cons: Not semantic; the spacer div exists only as a layout hack. Solution 4 Set parent to overflow: auto.

Div 1

Div 2

    Pros: Doesn't require extra div. Cons: Seems like a hack - that's not the overflow property's stated purpose. Comments? Other suggestions?


I'm traveling to Thailand for three weeks and I was hoping to get a local Sim card while there, to be able to contact home, people I meet, and use the internet.  Which networks are available and do any of these offer reliable internet access?  What sort of costs will be involved with getting local mobile access?

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


The  is meant to be used when the loop is going to be called more than once in a page with the same query.  If I call the same loop a second time in the page the result is the same as calling the rewind_posts function just before.   Why is it necessary? Is rewind_posts not calling again the content in the database (cache it somehow) while using the second loop, without using rewind_posts, is?

The incomplete , says very simply:  rewind_posts(): Rewind the loop posts.  As per , with 's answer, I got: <?php // fetch first post from the loop the_post();  // get post type $post_type = get_post_type();   // rewind the loop posts rewind_posts(); ?>  With Ian Stewart's theme development tutorial, I found rewind_posts()'s use in archive.php, category.php, tag.php, author.php: <?php the_post(); ?> <!-- echo page title --> <?php rewind_posts(); ?> <?php while ( have_posts() ) : the_post(); ?>    <!-- echo content --> <?php endwhile; ?>  But in TwentyThirteen theme we can't see something like this, but a simple WordPress loop with conditional: <?php if ( have_posts() ) : ?> <!-- echo page title --> <?php while ( have_posts() ) : the_post(); ?>    <!-- echo content --> <?php endwhile; ?> <?php endif; ?>  So, I just want to know, while I have the WordPress loop to use, and that works with pagination also, then where do I need to REWIND THE LOOP, and why? EDIT Ok, after the first answer, I got a very good article describing the 3 Query-reset functions in WordPress:  »  by Jeff Starr - DigWP.com  I hope with this the answer can be a lot more educative than currently what we got.


In The Empire Strikes Back, Luke Skywalker travels to Dagobah and receives training from Yoda.  But how does he know where on Dagobah Yoda resides? Per Wookieepedia, , making it slightly larger than Earth. In the scene where Luke reaches Dagobah, he says to R2-D2 that there are no signs of cities or technology, but massive lifeforms. He then seemingly descends into the planet's atmosphere at random, loses control and crash lands into a swamp.  Luke then proceeds to transfer equipment and supplies from the X-Wing fighter to dry land to make camp. Soon after, Yoda wanders into Luke's camp. Such a planet would have a surface area of about 600,000,000 square kilometers. It seems quite fortuitous that Luke just happened to crash land right next door to Yoda's home!  Is there any explanation in the canon as to how or why Luke is able to, seemingly at random, crash land within walking distance of Yoda's home?

In The Empire Strikes Back, Luke crashes his X-Wing on Dagobah after scanning the planet for technology and lifeforms.  LUKE (into comlink) I'm not picking up any cities or technology.  Massive life-form       readings, though.  There's something alive down there...  Followed by:  EXT. SPACE - DAGOBAH -  LUKE'S X-WING The X-wing continues its flight through the twilight above the cloud- covered planet. INT.  LUKE'S X-WING - COCKPIT Luke sees the cloud race by as he takes his craft closer to the planet.   He must operate his controls carefully since the cloud cover has  completely obscured his vision.  An alarm buzzes in the background,  Artoo beeps and whistles frantically. LUKE (into comlink) I know, I know!  All the scopes are dead.  I can't see a thing! Just hang on, I'm going to start the landing cycle...   According to , Dagobah has a diameter of 8,900 km, which means that it has approximately 50% of the surface area of Earth. Landing randomly on the planet, it's unlikely he would land within walking distance of Yoda's hut. How did Luke know where to land his X-Wing? From the script, it does not sound like he intentionally landed anywhere. Was he guided by the Force? Did Kenobi's Force ghost tell him where to land off-screen? Something else?


Quick question, why is my Curve: Path flat in some sections and circular in others? How can I make it round again and how did I make it do this in the first place? A quick run down of using it to make hand railing for machinery with less faces would be awesome. This simpler, flatter shape uses a lot less faces than the normal Curve Path does and would be great if only it would stay consistently roundish around the corners. The up and along section over the back of the picture is round, at the first bend it flattens and stays flat the rest of the way. Thanks all.

try scaling, change radius, but its dont work


I want to display a snippet of Python code as a colored framed box in a beamer presentation. Besides, I'd like to save the snippet in a file. The code below gets the job done:   \documentclass{beamer}  \usepackage{xcolor} \usepackage{minted} \usepackage{tcolorbox} \tcbuselibrary{minted}  \newtcblisting{pythoncode}[4][\normalsize]{%   listing engine=minted,minted style=colourful, minted language=python,   oversize, listing only,left=1mm,bottom=1mm,right=1mm,top=1mm,   minted options={fontsize=#1},   listing file={snippets/#2},   colframe=#3,   title={\color {#4} \texttt{#2}}}  \begin{document}  \begin{frame}[fragile] \frametitle{Test} \begin{pythoncode}[\small]{script.tex}{blue}{yellow} def add(x, y):     '''Add two numbers'''     return x + y   result = add(x, y) print(result) \end{pythoncode} \end{frame}  \end{document}     However, if I try to change the extension of the output file from .tex to .py:  \begin{pythoncode}[\small]{myscript.py}{blue}{yellow}   I get the following error:  ! I can't write on file `snippets/myscript.py'. \tcbverbatimwrite ...mediate \openout \tcb@out #1                                                    \tcb@verbatim@begin@hook \... l.2 ...honcode}[\small]{myscript.py}{blue}{yellow}  Please type another output file name ! Emergency stop. \tcbverbatimwrite ...mediate \openout \tcb@out #1                                                    \tcb@verbatim@begin@hook \... l.2 ...honcode}[\small]{myscript.py}{blue}{yellow}  !  ==> Fatal error occurred, no output PDF file produced! Transcript written on mwe.log.   How can I go about this?    EDIT  I tried other file extensions such as .c, .cpp, .m, and .java and the code works like a charm. It's only .py that produces the error.  I'm using MiKTeX 2.9 on a Windows 10 machine.

I have a fresh install of TeX Live 2013 and am attempting to compile a file using the python package. Here is the relevant portion of the file  \begin{python} print 'hi' \end{python}   I've compiled successfully on my linux machine with TeX Live 2013, but cannot get my windows 7 machine to compile successfully. When I run latex --shell-escape pytest.tex I get an error which begins with   pytest.py: Forbidden to open for writing ! I can't write on file `pytest.py'. \@python ...mediate \openout \@out =\@outname .py                                                    \newlinechar ='15 \begingr...   Can anyone help me fix this so I can compile latex documents using python.sty on my windows machine?  Update  So I'm pretty certain the issue has to do with permissions. If that is the case it would be really great if there were a few easy tests I could run to determine why \write18 cannot open files for writing / what it is trying to do. I've seen some problems from searching that were related to the TEXMFOUTPUT environment variable, but I don't know (1) what to set as the value of TEXMFOUTPUT in order to make sure that these temporary python files are created in the current working directory and (2) if setting TEXMFOUTPUT would have anything to do with these \write18 permission problems.  Ok, one new piece of information: So, I've created a minimal example:  \documentclass[letterpaper,10pt]{article} \usepackage{python} \begin{document}  \begin{python} print 'hi' \end{python}  \end{document}    When compiled after the `! I can't write on file pytest1.py' It says (Press Enter to retry, or Control-Z to exit; default file extension is '.tex' Is this error because write18 can only write to a .tex file?  At the beginning of the compile on the second line it just says ` \write18 enabled'. So it is not running with restricted \write18. I feel like I am really close to fixing this.  Solved  The comment  was exactly right. I had .py listed in my PATHEXT environment variable. Removing it allowed the file to compile without error.  Just read meta.tex.SE and will credit JosephWright once answer is up.


I have a view of nodes where the nodes have terms that I want to group them by, but I want to list each term only once and have any node that has multiple terms, listed under each appropriate group. What I have been able to do is group the view by term, but if a node has multiple terms, I get a group that has both terms listed. For example, this is the results I'm getting currently:   Term 1 node1node2 Term 2 node3node4 Term 1, Term2 node5   I need it to look like:   Term 1 node1node2node5 Term 2 node3node4node5   Is there an easier way to accomplish this besides this:   This seems like the same problem I'm having, but I'm not experienced enough to understand this solution.

How do you group a list of nodes by the taxonomy term?  e.g.  Term 1  --- Node 1 --- Node 3 --- Node 7  Term 2 --- Node 6 --- Node 9 --- Node 12   I have tried creating a view with "Node" and "Taxonomy Term" as fields. I then enabled grouping, and grouped by the taxonomy term. Doing this outputs the following:  Term 1  --- Node 1 Term 1 --- Node 3 Term 1  --- Node 7    Term 2 --- Node 6 Term 2 --- Node 9 Term 2 --- Node 12   There is a Drupal 6  that explains how to fix it, but it doesn't work under Drupal 7.   It seems like such a simple task, yet after many days of trying, I can't get it to work! I've found many threads of people asking the question, but no solutions (at lease a solution which doesn't involve installing taxonews).


I have a function with a LINQ query set up as follows:  public List<company> FetchSortedList(string cat) {    var aDTOList = (from s in db.companies                    where s.category == cat                    orderby s.name                    select s).ToList(); }   I now need to change this function to allow the user to pass down another parameter called "field" which will a string value with the name of the property for the list to be sorted by. Is there anyway to do this similar to the above query, i.e.:   public List<company> FetchSortedList(string cat, string prop)  {     var aDTOList = (from s in db.companies                     where s.category == cat                     orderby s[prop]                     select s).ToList();  }   (I know the above code doesn't work, just asking if there is anything akin to doing something like that)  Or will I need to do something else?

I found an example in the  for Dynamic LINQ that allows you to use a sql-like string (e.g. OrderBy("Name, Age DESC")) for ordering. Unfortunately, the method included only works on IQueryable<T>. Is there any way to get this functionality on IEnumerable<T>?


Ex. When someone gets hurt, usually in sports, and someone tells you to "walk it off"

The Avengers 2 just hit China yesterday. The official translation of the line "If you get killed, walk it off!" is "Someone is trying to kill you, run, run for your life" (This is the English version of that Chinese translation). Such a nonsense. But how to understand the original English sentence correctly?


There are two thing on the head of the tripod, one is the screw and the other is this springy thing. I always wondered, what does it do?

Many tripod quick release plates have a plastic or metal peg near the screw.  You can press down on the peg, and then when you release it, it pops back up.  I've looked at photos of many camera bottoms, and I haven't seen any camera that has a hole that the peg would fit into.  What is the purpose of this peg?    I just got a smartphone tripod adapter, and this adapter has some concave areas on the bottom part that sits flush against the quick release plate.  As I was screwing the adapter onto my tripod's quick release plate, the peg on the plate got caught in one of the concave areas and then got ripped out of the plate.  I'd like to know the purpose of this peg before deciding if I can get rid of it.


According to Random Forest algorithm, tress are not supposed to be pruned intuitively, don't bagging on pruned models  give a better final model than the one without pruning?

Breiman says that the trees are grown with out pruning. Why? I mean to say that there must be a solid reason why the trees in random forest are not pruned. On the other hand it is considered very important to prune a single decision tree to avoid over fitting. Is there some literature available to read for this reason? Of course the trees may not be correlated but there still will be a possibility of over fitting.


When the plurality of an item is unknown, the convention is to put (s) after the item. In

Consider the following sentence:     We assume that the individual(s) possesses some general knowledge of the rules of football.   Is "possesses" correct there? Should it be "possess"? Is the rule more complex than always using one or the other?


It's a fact that in many physical formulae $\pi$ (or even multiples of it as far as I can see) and $e$ show up. But why would that be so? Is because the two are "connected" in the well-known formula $e^{i\pi}+1=0$, though this only shows the two in one formula and, I think, can't be seen as an answer because it only shifts the problem.  Also in statistics, they show up: For example, the chance that the needle in  crosses one of the lines is $\frac{2}{\pi}$. Also, $e$ shows up in many statistical formulae.  Another example (this time for $e$, which is not addressed in the question of which this question is supposed to be a duplicate) is the use of $e$ in the calculation of .  Is there something "deep" about these two numbers?  P.S. Also, the  appears in many physical phenomena, as expressed in the many forms that appear in Nature and which has nothing to do (in the case of $\pi$) with spherical symmetry, the volume of n-spheres, trigonometric functions, Fourier analysis, etc. Neither with $e$, so also of $\varphi$ can be said it's another example of one of the most fundamental numbers.   I think we overlook many aspects of Nature if at the heart of mathematics, as suggested by the answer, lay $\pi$ in geometry and $e$ in calculus. Aren't there many areas of math (or math that still has to be developed) in which these numbers don't form "the fundamental heart", but nevertheless can be applied in investigating Nature mathematically? In this case, the answer to my question is likely that the number of formulae which contain $\pi$ or $e$ would be that in fact, the relative number of these formulae ain't that big (though the absolute number is).

We all know this magical mathematical constant.   My question being , how and why pi just shows up in every other physics derivation or formula or even statistics for that matter .    Is it just coincidence or some actual reason?


I'm trying to understand ssh's -t option:     -t      Force pseudo-terminal allocation.  This can be used to execute arbitrary screen-                based programs on a remote machine, which can be very useful, e.g. when implementing                menu services.  Multiple -t options force tty allocation, even if ssh has no local                tty.   So, TTY is a device. A way to refer to a TTY is by descriptor (which is obtained by opening the TTY device). STDIN, STDOUT and STDERR are descriptors. But they do not necessarily refer to a TTY device. -t option forces them to refer to a TTY device. Is this the correct way of reasoning in order to understand what this option does?  And what is so special about TTY which may not be achieved using ordinary STDIN, STDOUT and STDERR?  An example of use case of -t option is welcome.  By which mechanism does ssh allocate that TTY? Does ssh create new TTY on server or on client? How to check this? (a new node in /dev/ must appear or something...) And how this new TTY is tied to existing STDIN, STDOUT and STDERR?

I think these terms almost refer to the same thing, when used loosely:   terminal shell tty console   What exactly does each of these terms refer to?


Toady I read that integral of 0 is C. because integral = antiderivative.  How can this be true, because we know that an integral is the area under a curve...and there is no area under the line x = 0, then how its area will be any Constant(after integrating the curve)

I am trying to convince my friend that the integral of $0$ is $C$, where $C$ is an arbitrary constant. He can't seem to grasp this concept. Can you guys help me out here? He keeps saying it is $0$.


I am trying to make a calculator in android with Java. Where I need to split the strings, to separate the digits and operands. Then, I will do the necessary operations with the digits. I need a regular expression to get it done. I have tried this:  String[] numbers = screenText.split("[+\-/*]";   I am getting an error: Illegal character range.

Pattern pattern = Pattern.compile("^[a-z]+$"); String string = "abc-def"; assertTrue( pattern.matcher(string).matches() ); // obviously fails   Is it possible to have the character class match a "-" ?


i have created a class that have functionality for the == operator, but i would like to test if the values are null, but when i test for this i start a never ending loop. How can i do the following without creating a never ending loop?  public struct MyClass {     private string Value;      public static bool operator ==(MyClass left, MyClass right)     {         if (left == null && right == null)             return true;         if (left == null || right == null)             return false;         return left.Equals(right);     } }

The following will cause infinite recursion on the == operator overload method      Foo foo1 = null;     Foo foo2 = new Foo();     Assert.IsFalse(foo1 == foo2);      public static bool operator ==(Foo foo1, Foo foo2) {         if (foo1 == null) return foo2 == null;         return foo1.Equals(foo2);     }   How do I check for nulls?


I have a text file containing numbers as follows:  one two three four five six seven nine    I want to convert it into its equivalent digits like:  12345679   I got the python program.  Is there any way to do it using shell script?  Thanks in advance.

I need to convert one into 1, two into 2 and so on.  Is there a way to do this with a library or a class or anything?


I have graphics card Radeon HD 7730, I have intel  i5 processor running Ubuntu 14.04 LTS.  Output of fglrxinfo follows:  display: :0  screen: 0 OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile  OpenGL version string: 3.0 Mesa 11.0.2   Output of lshw -c video gives me:   *-display                       description: VGA compatible controller        product: 3rd Gen Core processor Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 09        width: 64 bits        clock: 33MHz        capabilities: vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:29 memory:c1000000-c13fffff memory:b0000000-bfffffff ioport:4000(size=64) WARNING: output may be incomplete or inaccurate, you should run this program as super-user.   This  has an answer lspci -nnk | grep -i vga -A3 | grep 'in use' for its output it gives:  Kernel driver in use: i915 Kernel driver in use: radeon   In my additional driver tab I see 3 drivers:   Using X.ord Xserver -AMD? ATI dispaly driver wrapper from xserver-xorg-video-ati (open source, tested) Using Video driver from AMD graphics accelerators from fglrx-updates (proprietary) Using Video driver for AMD graphics accelerators from flgerx (proprietary)   The 3rd one is selected.  The response of lspci -k | grep -EA2 'VGA|Display' is   00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)     Subsystem: Dell Device 0572     Kernel driver in use: i915 -- 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Chelsea LP [Radeon HD 7730M] (rev ff)     Kernel driver in use: radeon 07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)     Questions:   I want to understand if my AMD card is served as graphics driver or i915? If not how can I make it happen?

I would like to try a different video display driver, but I'm not sure which one I'm currently using.    What's the simple way to see what driver my system is using currently?


I am trying to design the following:

                  eb 3p_2D(V1)
     2019-08-08     94.41 KB
     This does not give me what I am looking for. My code makes the following and not responsive:    How can I make this look like the one in the image?  UPDATE  In mobile, this is how I want the UI to be

Given this HTML:
foo

bar

baz
   How do you make them display inline like this:     foo bar baz   not like this:     foo   bar   baz


To clarify at first, I have very little knowledge in biology and paleontology so there might be very obvious things I overlook.  According to the evolution theory, there must be a graduate evolution process over millions of years such that the skull and the horns of the Triceratops gradually appear over time. However why there is no fossil record of such "intermediate" form between Triceratops and earlier dinosaurs? I mean there must be some intermediate dinosaurs that has a short skull that almost looks like a small mountain on the neck and very short horns. However based on my internet search I can't find any information that confirms existence of such intermediate dinosaurs.   I just want to know is there any such evidence of graduate evolution among paleontologists or the evolution of dinosaurs is still much based on speculation (without firm evidence)?

The problem I've always had with evolution is the actual lack of variation between animals. More specifically, the lack of observable gradual change between species.  Take for example the hammerhead shark. It obviously has a strong connection with a normal shark, but where's the "half-hammerhead" shark? Where's the species that only has a SLIGHTLY wider head?  I really doubt that a single mutation on a normal shark resulted in a head shaped like that, it had to happen gradually. Right? As far as I understand, evolution works by random mutation in a child being somehow slightly beneficial to that animal so it get's to live longer and reproduce more, eventually resulting in it's genetic material in dominating the inferior ones before it. But if it was for whatever reason beneficial to have a slightly wider head, why don't all the sharks have slightly wider heads now? On the other hand, if it wasn't beneficial, how come the hammerhead still exists?  Furthermore, I feel like some characteristics of a certain animal can't really have gradual benefits. There's a lizard that shoots blood out of it's eyes. The original ancestor certainly didn't, and I'm sure that if it's child only bled slightly from it's eyes it wouldn't really help if much in life. So for it to actually become beneficial, it seems to me that there had to be a ton of lizards that had a disadvantage of bleeding slightly. In fact, there had to be so many that they evolved even further in the same direction and kept doing that until they bled so much it's an actual benefit (sorry for this turning so gross). So why did the inbetweeners survive long enough to evolve even more, and why did they THEN die out?


I am new to writing Apex Triggers. I wrote this trigger by referring few examples, but now i end-up with ContactAccessLevel field is not writable Error.  Use Case: In contact object, I have a field called xrx_mf_crm__Region_1__c. If the value of this field matches the public groups name, then the record should be shared with that public group with read/write access.  trigger ContactShareByRegion1 on Contact (After Insert, After Update)  {     Group grp = new Group();     for(Contact ContactObj : [select Id, xrx_mf_crm__Region_1__c from  Contact where Id IN: Trigger.New]){         string Region = ContactObj.xrx_mf_crm__Region_1__c;         List<ContactShare> sharesToCreate = new List<ContactShare>();         if (Region) {             ID groupId = [select id from Group where Name = :Region].id;             ContactShare cs = new ContactShare();             cs.ContactAccessLevel = 'Edit';             cs.ContactId = contactObj.Id;             cs.UserOrGroupId =  groupId.id;             sharesToCreate.add(cs);         }         if (!sharesToCreate.isEmpty())             insert sharesToCreate;     } }

Here's the use case. When a lead is converted to an Opportunity, I want to automatically share the opportunity with the previous owner of the lead. This is needed because upon conversion, the opportunity ownership is granted to someone else but the original lead owner needs ongoing access to the opportunity.  So:   A partner submits/creates a lead and is the lead owner Lead is converted to opportunity and internal sales person gains ownership Original partner needs to have view/edit access on this opportunity   I know you can use Apex Managed Sharing to share a custom object, but I'm hitting a wall trying to do this with an opportunity since the fields in OpportunityShare are not writable. The following won't even compile as a result:  List<OpportunityShare> oppShares = new List<OpportunityShare>(); for(Id i : oppIds) {    OpportunityShare os = new OpportunityShare(OpportunityId = i);    os.OpportunityId = i; // *** ERROR - not writable ***    os.OpportunityAccessLevel = 'Read/Write';    os.UserOrGroupId = oppIdToLead.get(i).OwnerId;    os.RowCause = 'Manual Sharing';    oppShares.add(os); }  Database.SaveResult[] result = Database.insert(oppShares, false);


Let the splitting field of $x^5-3$ over $\mathbb{Q}$ be $L$.  I solved the 3 statement,   $L = Q(\sqrt[5]{3}, w) (w=e^{2\pi i/5})$ $\operatorname{Gal}(L/\mathbb Q)$ has unique normal subgroup $H$ of which the order is $5$, corresponding to $\mathbb Q(w)$ by Galois theory. the fixed field of $H$ is $\mathbb Q(w)$   Then, I hit the following:   Distinguish $\operatorname{Gal}(L/\mathbb Q)$ is abelian or not The number of subgroups of $\operatorname{Gal}(L/\mathbb Q)$ of which order is $4$.   How can I solve this?

I am asked to show that the galois group of $f(t) = t^5 -3 $ over $\mathbb Q$ is solvable, and it is heavily implied that I should be making use of the derived series.   $f$ is irreducible with discriminant not a square, so $Gal(f) \in \{H_{20}, S_5\}$. As $S_5$ is not solvable, it is implied then that $Gal(f) = H_{20}$, however I don't know how to conclusively show this.   Additionally, given that $Gal(f) = H_{20}$ how might I actually go about computing the derived series from here? I am aware that the derived subgroup is containing in any normal subgroup of $Gal(f)$, but I am not aware of what the normal subgroups of $H_{20}$, and trying to find one by hand has been difficult.   Is there any slightly easier way to deal with this?


I am living in Dubai. I would like to know if I can travel to Nepal with my Indian passport without a visa in the COVID-19 situation directly from the UAE.

Due to the outbreak of nCoV-19 (Novel Coronavirus) many Countries have imposed several entry restrictions. But these are quite confusing for a lot of people. Some countries allow transit through parts of China (like Shanghai) but some restrict transit even through Hong Kong/Macau. Philippines restricted passengers coming from Taiwan too, but I think that that was later changed.  Where can one find a list of such restrictions for all the countries, ideally a source that is updated frequently


I keep hearing the term nerf over the internet, specially in Hearthstone discussions.   For example: "Six Hearthstone Cards That Need a Good Nerf". & "Why Blizzard won't nerf Dr. Boom?"  What does it mean in terms of hearthstone? cite an example. Could you explain it in jargon-free way. Sorry for my bad English.  Edit: According to classic definition on , it says: In video gaming, a nerf is a change to a game that makes something less effective or desirable. The word can be used as a verb to describe that change. Which I get it.

How did the word "nerf" develop to its current meaning in MMO/multiplayer games?  I can remember seeing it for a long time to have the same or similar meaning, even before the explosion of MMOs that happened with World of Warcraft.  (I used the terminology tag, as it seemed the closest fit, though I'm not actually asking what the word means.)


I'm trying to write a shell script using bash for the following problem:     Write a loop to go through three values (A B C) and displays each of these values to the screen (hint use a ‘for’ loop).   I figured out it would be something like this but I'm not sure, so any advice would be much appreciated.  For (( EXP1; EXP2; EXP3 )) do      command1      command2      command3 done

In bash, I know that it is possible to write a for loop in which some loop control variable i iterates over specified integers.  For example, I can write a bash shell script that prints the integers between 1 and 10: #!/bin/bash  for i in {1..10} do  echo $i done  Is it possible to instead iterate over a loop control variable that is a string, if I provide a list of strings?  For example, suppose that I have a string fname that represents a file name.  I want to call a set of commands for each file name.  For example, I might want to print the contents of fname using a command like this: #!/bin/bash  for fname in {"a.txt", "b.txt", "c.txt"} do  echo $fname done  In other words, on the first iteration, fname should have the value fname="a.txt", while on the second iteration, fname should have the value fname="b.txt", and so on.  Unfortunately, it seems that the above syntax is not quite correct.  I would like to obtain the output:  a.txt b.txt c.txt  but when I try the above code, I obtain this output:  {a.txt, b.txt, c.txt}  Can you please help me determine the correct syntax, so that I can iteratively change the value/contents of the variable fname?  Thank you for your time.


I just installed Ubuntu 14.4 instead of windows (now this is the only OS on my laptop) I have Broadcom bcm9506 card. How can I fix this? I already looked at a lot of similar questions but non of them help me.    lspci -vnn | grep Network 04:00.0 Network controller [0280]: Broadcom Corporation BCM4312 802.11b/g LP-PHY [14e4:4315] (rev 01)   Thanks

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I was wondering about the functionality of the clear () command, that I can evoke with CtrlL in my Terminal.app on macOS. When executed, it should move my cursor to the top of the screen - what it does. That's great. But it has a side effect as well: It creates a whole lot of white space (depending on the screen size) on top of the command. For example look at this command line history: ➜  ~ some command command output ➜  ~ clear      ➜  ~ # the input line is now on top; but there is a lot of whitespace in the history as well          This is kind of bloating my command line history, when I scroll back. So I'm wondering, why is this white-space on top created?

When I use clear command to clear the screen. It is not cleared (see screenshot when I scroll up a bit after command done)    So I double the command to get right behavior:  $ clear && clear && DD=0 ...     Why do I need to double the command to get cleared screen?  UPD  Actually if I just clear I got cleared screen. But I can scroll up and see last 25lines (if screen is 80x25). When I run clear;clear I got those lines cleared.


I've always been told that most electronic devices such as WiFi/phones/laptops and such emit a non-ionizing radiation which is completely fine as it does not damage human DNA. I've been googling and i see people arguing about it but there seems to be no evidence to back up the fact that it's not damaging. I'm just curious is what I'm saying correct? or can it damage the human body as i see people mention it can lead to pretty serious health problems.

What if any effects are there on brain function from prolonged exposure to electromagnetic or acoustic stimulation?


I just finished watching season 4 and I wanted to start reading the manga from that point on. Could anyone tell me where I should start?

My Hero Academia just finished its fourth season. I wanted to read its manga ahead. So, where does Season 4 end in the manga so that I can start reading from there?


I just want to know how I can solve the disk usage issue that i encounter while using windows 8?

Yesterday, I have downloaded and installed Windows 8 Professional, after downloading it (legally) and burning it to a DVD, on my 3-year-old  (Intel Core Duo 2x2.4 GHz, 4 GB RAM,  hard disk drive).   The installation failed two or three times, each time differently (error codes, for example 0xc000021a, with an infinite boot loop), but finally I completely formatted the hard drive and installed. Seemingly, everything was OK.  However, after booting successfully, the OS is extremely slow. When I open the task manager, it shows that the HDD is at 100% - however, no application or background process or Windows process can be made responsible. I searched the Internet and found that Windows might try to "index" the hard drive, but I did't find a process that isn't also on my second computer, which still uses the Release Preview (restarting every two hours). Also, the startup is empty, and HD Tune and HDD Health show that the drive health is OK, even though I don't know how reliable these two programs are.  I looked for diagnose software from Toshiba, but they only offer tools for "Fujitsu branded Toshiba devices"; I tried it out, and it did not work on my hard drive.  Does this sound like a hard drive failure? The laptop is 3.5-years-old, has been carried around sometimes roughly and was used (and on) most of the time. However, it would have failed exactly the night before installing Windows 8 Profesional, which seems - unlikely.  If this is a software error - then what did I do wrong if this occurs from the moment of installation (even the personalization at the end of installation took half an hour)? How can I fix this?


In David J. Griffiths' Introduction to Electrodynamics - Example $1.3$, the author solves the problem of  Find the gradient of $r = \sqrt{x^2+y^2+z^2}$ . (As in the magnitude of the position vector).  He does $$ \nabla r = \frac{\delta r}{\delta x} \hat{x}+\frac{\delta r}{\delta y} \hat{y}+\frac{\delta r}{\delta z} \hat{z} \tag{1} $$ nothing wrong there, but then he does the following $$ \nabla r = \frac{1}{2}\frac{2x}{\sqrt{x^2+y^2+z^2}} \hat{x}+\frac{1}{2}\frac{2y}{\sqrt{x^2+y^2+z^2}} \hat{y}+\frac{1}{2}\frac{2z}{\sqrt{x^2+y^2+z^2}} \hat{z} \tag{2} $$ which I am confused as to how he got to, I can't seem to understand/find if he just manipulated any of the values: I don't understand why he makes $\delta x$ into $2{\sqrt{x^2+y^2+z^2}}$ for all dimension variables. Can someone elaborate? Thank you.

What is the gradient of $f(x, y, z) = \sqrt{x^2+y^2+z^2}$?  I know that $\nabla f = \left\langle\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z}\right\rangle$ or equivalently $\nabla f = \frac{\partial f}{\partial x}\mathbf{i} + \frac{\partial f}{\partial y}\mathbf{j} + \frac{\partial f}{\partial z}\mathbf{k}$.  Eventually, I am going to evaluate this gradient at a point and then dot it with some given unit vector to find a directional derivative. I think maybe what is troubling me is the radical in $f$. Will I have to use the chain rule in order to find the three partial derivatives?  I tried this:  $$\frac{\partial f}{\partial x} = \frac{1}{2}(x^2 + y^2 + z^2)^{-\frac{1}{2}}2x$$ $$= \frac{x}{\sqrt{x^2 + y^2 + z^2}}$$  That result looks ugly to me. However, if I did that partial derivative correctly, then I think I know what I am doing.


So this is my first time using headers so please be gentle...  I've got a base class defined in a header file (base.h) with its member functions defined in a matching .cpp file (base.cpp). I have another header file with a derived class (derived.h) and again member functions defined in its .cpp file (derived.cpp). For some reason, the linker can't find any of the base class functions when they're used in derived.cpp. I've searched a lot but can only find problems relating to external headers. Where am I going wrong?  base.h:      template <typename T> class base {     /*protected and public member functions and private data*/     protected:          base();     };   base.cpp:      #include "base.h"     template <typename T> base<T>::base() : /*initialise member data*/ {}   derived.h:      #include "base.h"     class derived : public base<double> {     /*public member functions*/     public:          derived();     }   derived.cpp:      #include "derived.h"     #include "base.h"     derived::derived() : base() {}   This gives me the linker error that base<double>::base<double>(void) is an unresolved external symbol when building derived.obj

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


links to RSS (and Atom) feeds of all USNs (Ubuntu Security Notices). I'd love an RSS feed of only security updates to Ubuntu 14.04 LTS. Anyone know if someone has already published one? It wouldn't be hard to filter the RSS down to only the updates that are relevant to me, I'm just surprised if someone hasn't already done this.

The  web page has an option to show only notices for a single release. Is there a way to get notices for a single release as a feed, without setting it up myself? That is, is there an official feed containing all and only Ubuntu 12.04 (for example) security notices?  The end goal is a tool which warns when any of a set of packages (not necessarily the ones installed on a system) for a single Ubuntu release are affected by a security notice.


Recently, I have installed ubuntu 13.04, and updated it. I want to install skype. I search in "ubuntu software center" but I did not find anything. Therefore, I search on internet. I found out some commands for skype installation. Then, I open the terminal and type the command. it request for password. The problem is that when i want to enter my password, my keyboard did not work and I can not type my password. How can I fix that?  Thanks

When I'm about to install a program in the terminal it wants the password:  [sudo] password for xxx:   But when I start to type my password nothing happens. What should I do?


Two lists that are identical by comparison but declared differently also update differently as well.  Can someone help explain why?  L1 = [[0] * 2] * 2 L2 = [[0 for _ in xrange(2)] for _ in xrange(2)] assert(L1 == L2) for i in xrange(2):     L1[0][i] = 1     L2[0][i] = 1 print L1 print L2   The end result is   >>> [[1, 1], [1, 1]] >>> [[1, 1], [0, 0]]

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


Hey I am still having issues with my citations.  It is the very last thing I need to do before my thesis is complete, but I have to turn in in by Thursday!  I am getting multiple warnings for a number of my citations saying: Citation `Bibtexkey' on page '6' undefined. Some of my citations are fine while others will not work and show up as ( ?) in the pdf. There is nothing wrong with my bibtex file within JabRef that I can see, so I do not no what is causing this to happen.  I am using TeXStudio. Here is a MWE. nuthesis is a class designed for my universities graduate students. I don't believe it has anything to do with the issue as I know many many people who have used this document class successfully. I've tried using different styles as well but no luck. I have a lot of other packages involved, but not sure if they may be affecting the bib. I've seen people talk about how you compile matters, i.e. latex bibtex latex latex, which I believe I am doing correctly but I still get errors.      \documentclass[print,double]{nuthesis}     \usepackage{amssymb}     \usepackage{natbib}     \usepackage[       unicode=true,       urlcolor = blue,       colorlinks = true,       citecolor = blue,       linkcolor = blue]{hyperref}      \begin{document}      \citep{MeroLiu}      \citep{Bonse}     \citep{Keldysh}      \bibliography{Thesis_BIB}     \bibliographystyle{aipnum4-1}  \end{document}   MeroLiu and Bonse are examples of two citations that give warnings.  Keldysh is my most cited reference and cites correctly throughout my entire thesis.  Here are the bibtex sources:  @ARTICLE{Keldysh,   author = {L. V. Keldysh},   title = {Ionization in the field of a strong electromagnetic wave},   journal = {Soviet Physics Jetp},   year = {1965},   volume = {20},   pages = {1307-1314},   owner = {Chris Ferris},   timestamp = {2014.02.18} } @ARTICLE{MeroLiu,   author = {M. Mero and J. Liu and W. Rudolph and D. Ristau and K. Starke},   title = {Scaling laws of femtosecond laser pulse induced breakdown in oxide     films},   journal = {Physical Review B},   year = {2005},   volume = {71},   pages = {1-7},   owner = {Chris Ferris},   timestamp = {2014.02.18} } @ARTICLE{Bonse,   author = {J. Bonse and J. M. Wrobel and J. Kruger and W. Kautek},   title = {Ultrashort-pulse laser ablation of indium phosphide in air},   journal = {Applied Physics A},   year = {2001},   volume = {72},   pages = {89-94},   owner = {Chris Ferris},   timestamp = {2014.04.07} }   Any and all help is greatly appreciated! Thank you!

Hey so I am having issues with my citations.  I am getting multiple warnings for a number of my citations saying: Citation `Bibtexkey' on page 6 undefined.  Some of my citations are fine while others will not work and show up as ( ?) in the pdf.  There is nothing wrong with my bibtex file within JabRef that I can see, so I do not no what is causing this to happen.  I am using TeXStudio.  Here is a MWE.  nuthesis is a class designed for my universities graduate students.  I don't believe it has anything to do with the issue as I know many many people who have used this document class successfully.  I've tried using different styles as well but no luck.  I have a lot of other packages involved, but not sure if they may be affecting the bib.  I've seen people talk about how you compile matters, but I'm not sure what is meant by this.    \documentclass[print,double]{nuthesis} \usepackage{amssymb} \usepackage{natbib} \usepackage[   unicode=true,   urlcolor = blue,   colorlinks = true,   citecolor = blue,   linkcolor = blue]{hyperref}  \begin{document}  \cite{Mero}  \cite{Schaffer} \cite{Keldysh}  \end{document}  \bibliography{Thesis_BIB} \bibliographystyle{aipnum4-1}   Any and all help is greatly appreciated! Thank you!


I am running into lag when loading many sprites onto the screen. If I have less than 12 on the screen it runs smoothly until I add a couple more and then it bogs down.  I currently have this as my detection code;  public void Collision(Sprite sprite, Rectangle newRectangle, bool passable, bool speedRestricted, int xOffset, int yOffset)         {// Tile boundaries             if (sprite.Bounds.Top(newRectangle) && passable == false)             {                 animation.Position = new Vector2(sprite.Position.X, (newRectangle.Y - sprite.Bounds.Height));             }             if (sprite.Bounds.Left(newRectangle) && passable == false)             {                 animation.Position = new Vector2((newRectangle.X - sprite.Bounds.Width), sprite.Position.Y);             }             if (sprite.Bounds.Right(newRectangle) && passable == false)             {                 animation.Position = new Vector2((newRectangle.X + sprite.Bounds.Width), sprite.Position.Y);             }             if (sprite.Bounds.Bottom(newRectangle) && passable == false)             {                 animation.Position = new Vector2(sprite.Position.X, (newRectangle.Y + sprite.Bounds.Height));             } }   It is called in like this;  foreach (var tile in map.CollisionTiles)         {             player.Collision(player, tile.Rectangle, tile.Passable, tile.SpeedRestricted, map.Width, map.Height);              foreach (var sprite in sprites)             {                 sprite.Collision(sprite, tile.Rectangle, tile.Passable, tile.SpeedRestricted, map.Width, map.Height);             }         }   Now collision detection works perfectly so I don't have an issue there it's just when there are lots of sprites in my List<Sprite> sprites does it lag. If I remove the collision detection from the code I can load thousands of sprites onto the map.  Question: How do I limit the detection area for the sprites so it only compares the tiles around the sprite instead of all the tiles on the map for each sprite.  I have looked through the other questions and found none when it comes to multiple sprite detections for tile maps, just the main player's collision detection.

I'm well aware of how to detect if two or more 2D objects collide but I'm interested in how to decide whether to check for a collision. In previous projects, I just had every object check against every other object (I know, O(n^2) level of stupidity) and it created a less than fluid gameplay.  Various forums hail the greatness of Quadtrees, B-Trees, and any other kind of tree or structure you can think of.  What is the most efficient structure for determining whether a collision should be checked?


In those days you don't want to set your system time manually. But even though my system is configured to do auto time updates the time is sometimes very inaccurate (more than a minute off). When I realize it I force Windows to "Update now" in the Internet Time Settings but often this update fails. What do you propose to do? My goal would be that I don't have to care about the time. My system shall care about it and keep it in sync.

I have a few PCs that are losing time and I'd like Windows to sync them more often with the Internet time.  I think the Windows default attempts to update only once per day, and does not update if the time server is not available (which seems to happen quite often) meaning the PCs can end up 20 or 30 seconds out.  I'd like to create a scheduled task to do this say every 5 minutes and if the default time server is not available use mul


Was wondering if there is an automated way to re-position shapes to minimize the space between them. Besides manually trying to guess the optimal configuration.  I am trying to achieve some layouts like the following

Is there any way to distribute spacing equally in every object?    Is there any option to do? I want 2MM spacing in every geometrical shape.  Thanks in advance.


My father has visa till July 2016, and when we came to US in March 2016, immigration officer put date of Sept 2016.  Now, I have to know that, can he stay till Sept 2016, or he has to leave US before July 2016?

I've heard that i can travel to the US any time before my tourist visa expiry.  Is that true?  (please advise)


I got NPE when trying to call getter. It is a @OneToMany mapped property. It works when I call via other than the current object.   It is not working for the below code.   @PostMapping("/updateservice")     public void updateService(@ModelAttribute ServiceTyping serviceTyping, BindingResult bindingResult, HttpServletRequest req, HttpServletResponse res) throws IOException {  if(serviceTyping.getServiceEntryAttributes().containsKey(ServiceConstants.outsourcer)) {             LOG.info("**INFO OUTSOURCER FOUND*******");         } }   But working when I accessed from other object  @PostMapping("/updateservice")     public void updateService(@ModelAttribute ServiceTyping serviceTyping, BindingResult bindingResult, HttpServletRequest req, HttpServletResponse res) throws IOException {  ServiceTyping st = entryService.findTypingEntryById((long) 194);   if(st.getServiceEntryAttributes().containsKey(ServiceConstants.outsourcer)) {             LOG.info("**INFO OUTSOURCER FOUND*******");         } }   I tried with hot-coding below code, I mean directly pass the current object's id. It also doesn't work.  @PostMapping("/updateservice")     public void updateService(@ModelAttribute ServiceTyping serviceTyping, BindingResult bindingResult, HttpServletRequest req, HttpServletResponse res) throws IOException {  //here 176 is the id of the entity ServiceTyping st = entryService.findTypingEntryById((long) 176);      //checking the object which has the 176 is found are not     if(entryService.findEntryById((long) 176)!=null) {             LOG.info("**INFO OBJECT FOUND*******");            if(entryService.findEntryById((long) 176).getServiceEntryAttributes().containsKey(ServiceConstants.outsourcer)) {          LOG.info("**INFO OUTSOURCER FOUND*******"); }      }   }    I'm not saying it is not working for the particular id 176. It doesn't working for any other objects. but it works in the case when I access through the object other than the same object found in public void updateService(@ModelAttribute ServiceTyping serviceTyping)  From the code and attached table, I have proven two things. 1) the object through which I try to access is not null; 2) the value which I trying to get is found and it is also not null.   Let me know if I'm confusing

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


I checked that their pronunciations are /ster/ and /der/ But I can't hear the difference between them! Can anyone tell me the difference and how to pronounce them separately?

I recently found some words but I got confused and don't know whether to say sd or st. I am sure the following are pronounced as st:   sister caster ancestor master   But the following are pronounced as sd:   mysterious destiny stable staple   Is there a rule for changing the pronunciation of t to d following an s?


Every time my Nexus S attempts to update Chrome, It displays an error stating "Insufficient storage available". According to "Manage apps" I have 412MB of internal storage available, which should be more than enough.  Searching Google turns up plenty of people with the same issue, but no definitive answer.  How do I get Chrome to update?

After one of the latest updates (not sure if it was the last one or a previous one) of the Google Play app, I am having an error trying to update a large app (42MB). It says:     Error Downloading . There is insufficient space on the device.   My device is a Samsung P1000 running Froyo. It's rooted, but the error was there before rooting it.  A quick Google search showed several Samsung users having the same problem (the app in question that was giving me the headache is Smurf's village). Some said that removing the updates to the Android Market (Google Play) app would fix it, but to me it was of no avail.  I also tried the procedure in  to no avail.  Now I am stuck with a prehistoric version of the Market (that works on small apps) and still cannot update Smurf's Village or install big apps. How can I fix this?  EDIT: device has over 2GB of internal SD storage, 27GB of external SD card, so space is not an issue.


I'm aware there are similar questions, but the key word is similar all these are related and I didnt see a question that explains them in a single place. I'm curious as to what the a semantic use is for each and I'm hoping for some a example, as reading the mdn has left me a bit confused. Also the mdn says the b tag is basically used to style, so I assuming using this tag is bad practice, yet html5 seems to support it, why is this?  html html html html

What's the difference between <b> and <strong>, <i> and <em> in HTML/XHTML? When should you use each?


Home due to COVID.  I looked at  and installed it. Found that it slowed down anything I was typing or sending. How do I uninstall DWService on my desktop?

What are the differences between apt-get, aptitude, and synaptic, and which one is the recommended choice for normal day-to-day package management?  This is a basic question, but I think it'd be good information to have on the site, and besides I am relatively new to Ubuntu so I could use an expert explanation.


In order to prevent Windows from downloading updates automatically and make my online games lag, I have set my connection as "metered connection". Yet this does not seem to prevent all updates from downloading. I was playing today and noticed that my game is lagging so I knew Windows was downloading an update. I opened "windows update" and indeed I found that "2021-05 Cumulative Update for Windows 10 Version 20H2 for x64-based Systems (KB5003173)" was being downloaded. This is very annoying and unacceptable from Microsoft. How do I prevent all windows updates from downloading?

We've upgraded some machines to Windows 10 and realized there were some updates which updated as required. However, I realized there was no option available to stop the download similar to that on Windows 7 and 8.1. The only way I could stop the download was to stop the Windows Update service.  My question is does anyone know of a way to stop auto updates or is stopping the service is the only solution?


Solve in $\mathbb N$: $ 2^x\equiv 1 \bmod{x}$.   1) first we showed that for all $ m $ and $ n \in\mathbb N$ if $\gcd(m,n)=d$ then  ($2^m\equiv 1 \bmod{p} $ and $2^n\equiv 1 \bmod{p} $) implies that $2^d\equiv 1 \bmod{p}$ for all $p$ $\in\mathbb N^*$.  2) if we consider that $p$ is the smallest prime number dividing $x$ we would have $\gcd(x-1,p) = 1$ and $2^{p-1} \equiv 1 \bmod{p} $ (using Fermat) and $ 2^x \equiv 1 \bmod{p}$.  Can I deduce something from this ?

If $k$ is a positive integer, how to prove that there is no solution for $n$ in positive integers except $n = 1$ for $2^n = nk + 1$


What is more acceptable?     There are more sodium ions outside the cell   or     There are more sodium ions outside of the cell

Sentence:      A set of deer antlers lying on a flat stone just inside [of?] one cave reveals more recent visitors.   Should we use preposition -of- in that case?  I have checked Corpus of Contemporary American English and have found examples of both usages:        ...to plant another 20 acres of vines, finish building the inside of   an on-site cave, and work on building a retail tasting room (Fiction)   However, opened and remained blue as the inside of an ice cave, paler   than the shell of a robin's egg (Fiction)   It looked like the wall on the inside of a cave: flat and kind of   scale (Fiction)   ...-To protect the inside of the cave. " // He stepped inside, leaving   the gate open.  (Fiction)     Views outside and inside of Wind Cave in South Dakota (Magazine)   Above, Black Hills grasslands and, right, boxwork inside of the cave   (Magazine)   You can see Bill Elliott's great photos of what you can see inside a   cave. (Spoken)   So, when I am asked, what was your feeling inside the cave? (Spoken)   At some point, we found a small river running through the inside the cave (Spoken)   We were gathered around a small fire inside the cave (Fiction)   About 700 feet inside El Sidrn cave, a research team including   Lalueza-Fox excavated 1,700 bones (Academy)      I still cannot come up with a clear pattern why we are using -of- in some cases but are not using it in other. Is it more a question of style rather then a grammar? Or it has something with how speaker/writer sees things around and perceives a reality? Does absence of -of- make things sound weird/wrong for native speaker? Thanks.


I have the following Python code I am trying to execute but the interpreter is returning prematurely. I believe it is because I am trying to combine two dictionaries as if they were lists:  both = {} one = {"A" : 0} two = {"B" : 0} both = one + two    // Returns prematurely here   How can I combine two dictionaries into one?

I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union).  The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11}  How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)


What's the easiest way to get a LINQ query (from an SQL database - does that matter?) to order strings naturally?  For example, I'm currently getting these results:   Project 1 Project 10 Project 2   What I'd like is to see is this:   Project 1 Project 2 Project 10   The query I'm using is this:  return from p in dataContext.Projects     orderby p.Name     select p;

Anyone have a good resource or provide a sample of a natural order sort in C# for an FileInfo array?  I am implementing the IComparer interface in my sorts.


Have a dieline I need printed. Do I send a preserved pdf? Or a full packaged folder?

We get a lot of questions in regards to what should my file spec be, what should I do with X and Y, how should I do my black etc. etc. and a large majority of the time we suggest to ask the printer which is an accurate assumption.  Even though I think this is an accurate answer I think we should have a question that would help educate designers on what questions they should ask the printer.  Knowing the right questions can help determine if the printer is professional and if you can meet the requirements.  So my question is when print designing what questions should I ask to make sure my designs are compatible and high quality for print?


W:Failed to fetch http://ppa.launchpad.net/shakaran/ppa/ubuntu/dists/precise/main/source/Sources  404  Not Found W:Failed to fetch http://ppa.launchpad.net/shakaran/ppa/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found E:Some index files failed to download. They have been ignored, or old ones used instead.

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I've experienced some strange problem with NTFS. The easiest way to reproduce it contains 3 steps.   Creating file foo.txt in arbitrary place, remembering its creation timestamp (it can be found in properties dialog for this file) Removing it with shift + delete Quickly recreating file with the same name, again looking at properties window. Creation timestamp didn't change since the first file creation (though modified timestamp is other).   This effect causes a great headake in implementing some complex logic in my Qt application. I am simply writing  QFile::remove(file);   but it is pretty clear that file removal must be some kind of flushed. What I want to know is an explanation of this effect and some tips how to aviod it. A way to correctly implement it in Qt (instead of simply writing) will be much appreciated. I have reproduced this effect on Windows 8.1.

Trying this I have found a strange problem:     Delete an old file.   Create a new file and name it the same as the old file.     Then the "created time" property of the new file is set to the "created time" of the old file. Why does that happen? And how?


I was trying to prove that $\mathbb{Z}[x]$ is noetherian, so every ideal in $\mathbb{Z}[x]$ is finitely generated.  I feel that all ideals in $\mathbb{Z}[x]$ are essentially generated by two elements - a polynomial and the smallest integer belonging to the ideal.  Let $a(x) \in I$, where $I$ is an ideal in $\mathbb{Z}[x]$, be a polynomial whose degree is the least. Let $b(x)$ be another polynomial whose degree is more than $a(x)$ then $r(x)=a(x)-b(x)q(x) \in I$ becomes the polynomial of the smallest degree (we first assume that $r(x)$ is a non constant polynomial). So $r(x)$ has to be zero.  If $r(x)$ is a constant in $\mathbb{Z}$ and  let $r $ be the least positive integer in $\mathbb{Z}[x]$. If $r(x) \in (r)$ then we are done, or let $d=(r(x),r)$ then I will be generated by $(a(x),d)$. What I think is that I am going wrong in the last paragraph. Can someone point out my mistake.

Let $I$ be any ideal of $\mathbb {Z}[x]$, and $I=\left<{f_1,f_2 , ...}\right>$.  Without loss of generality, $f_1$ has minimal (absolute value) coefficient of constant term (if there exist).  Then, let $g$ be any element of $I$ .  We have for some integer $m$ that $g - mf_1$ is element of $I$ (minimal coefficient and division algorithm).  I guess this process terminate finitely, but I don't know how can I do next step.  ( ex. $g-mf_1, g-mf_1-nf_2, ...$)  Please help me and thanks for in advance.


I think I read this around 20 years ago, but I may be off on that.  It's a series about a future human society where people can go into tanks to regrow their bodies according to various commercial templates. The templates have largely replaced other types of fashion and status symbol. IIRC the protagonist is a detective of some kind who investigates unlicensed and illegal templates. There's a key plot point around some kind of illegal form (possibly giant lizards?) being found at the bottom of the Mariana Trench.

I read this in the early 1990s when I was a teenager and I have no idea whether it was old or new at the time.  Changing your body involves going in to a tank of liquid. People wear bodies of many and various different types (probably chosen mainly for fashion reasons) but certain body types are prohibited although I don't really remember any of the reasons why.  The main character is persuaded by someone to change his body to an illegal type. Perhaps he becomes involved in some kind of secret underground organization. The new body is of a type that he has never seen before. The main thing that I remember about it is that it has a panel of lights built into the chest and after he has learned how to he is able to communicate with other people in bodies of this type at incredible speed by flashing these lights.  I've spent considerable time web searching with no joy whatsoever. I'd love to re-read this book... the image of the flashing-chest-array communication has been stuck in my head ever since I read it but I can't remember whether anything else about it was noteworthy.


For playing the videos with .mkv extension, I installed vlc player in ubuntu 14.04.   Now, while installing the vlc plugins, it is giving the following error:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package vlc-plugin-libde265

I have seen that the new  shows off H.265/HEVC playback, the successor of H.264. I wonder how I may get this support in Linux. Is there a need to install a codec specific for this format? How?


I read this short story in an anthology, most likely in the 80s, possibly in the 90s.  The setting is a future in which the living no longer fear death.  One consequence of that is that they are disinterring cemeteries to recover the land and (possibly) cremating the remains.  The protagonist is a dead man who has been disturbed by being disinterred and, somehow animated, is wandering.  He has an interaction with a little girl in which he learns that people no longer fear death; he may have killed the little girl.  The protagonist is "caught" when someone offers him a ride, and a cigarette, and the lack of breathing became obvious due to the cigarette.

What Ray Bradbury story contains the line...     ..."Autumn was burning the land down into winter.  The smoke of the burning, thick, blue, and invisible...."   Since I cannot google it up, I suspect I may remember it incorrectly, but I would bet that it is close to this.


I have an error in:   for (int i = 0; i <listfiles.length; i ++) {   I do not understand it because, if I already have all the permissions.  public static ArrayList<String> getFilePaths(String directory){     ArrayList<String> pathArray = new ArrayList<>();     File file = new File(directory);     File[] listfiles = file.listFiles();     for(int i = 0; i < listfiles.length; i++){         if(listfiles[i].isFile()){             pathArray.add(listfiles[i].getAbsolutePath());         }     }     return pathArray; }   Permission     Checking if the permits have been obtained.      Error:  java.lang.NullPointerException: Attempt to get length of null array

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


I am trying to install Android Studio in Ubuntu 12.04 following the directions from here: . When I run studio.sh from android-studio/bin/ I get the following error-message: "OpenJDK 6 is not supported. Please use Oracle Java or newer OpenJDK."  Then I tried to update or install the openjdk using: "sudo apt-get install openjdk-6-jdk" and "sudo apt-get install openjdk-6-jre", but nothing works.  Any help you could provide I would really appreciate it. Thanks in advance.

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?  Before release Java 7, I followed  to install Java 6.  But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?


In a simple circuit, composed only of a lamp, a generator and a switch that connects the generator to the lamp. What happens with electric current when the switch is open? Electrons turn around? They go in the air scattered in infinity (lol)? I would like to know (I am a beginner).

Say I have an open circuit with a battery. I have a wire connected to the negative terminal and a wire connected to the positive terminal. The wires aren't connected.  In this scenario, would their be electron flow for a very short amount of time? Would the electrons from the negative terminal flow through the wire connected to it, since the potential would decrease between the electrons?  To clarify what I mean, consider the first diagram in this image:    In the first diagram there a large amount of electrons in the negative terminal. Would the electrons in the negative terminal distribute themselves through the wire to minimize the force between them?


I have a problem, having purchased 2x4 gb ram of the 2666 mhz vengeance corsair (CMK8GX4M2A2666C16), when I go to insert the two rams together in the asus prime 320m-k motherboard, the PC restart continuously, while inserting  a single  ram(4gb) the pc is fine. The error I can't tell you which one it is because nothing appears to me, the pc gives me the screen to choose whether to enter the bios, and then it starts up again.

I'm looking at rather short QVL lists from manufacturers, and I'm wondering what is the underlying cause of RAM incompatibility aside from the obvious: Obvious Reasons for Incompatibility  RAM Generation (DDR, DDR2, DDR3, DDR4) Form Factor / pin count RAM Type (ECC vs Non-ECC, Registered vs not, Buffered vs not) Minimum speeds on a board that cannot adjust the memory frequency Non-standard voltage range on a board that cannot adjust the memory voltage Channel count (single vs dual vs quad) Bad or inoperable module Mismatched set  Not Obvious Reasons  Brand SKU Max Capacity Speed too high  As in, why can't motherboard manufacturers just list the specifications of the RAM they will accommodate, and support every memory chip of that category instead of listing specific SKUs from specific brands? What happens electrically/physically that causes boards to fail to POST / operate with RAM that is otherwise 'compatible' with all of the specifications of RAM that is on the QVL?


I am Indian citizen male residing in Saudi Arabia with my family.  I applied for UK visitor visa to attend a 3-day long technical training course.  The length of the visit was for 16 days, because I planned to sightsee after attending the training.   I have already visited the UK before twice. This time, I was going to the UK alone, and my family was to remain in Saudi Arabia. My family is financially dependent on me.  This visit was financially supported/sponsored by my employer, and a supporting letter was included with the application.   Given the above details, I got rejected due to not providing provenance of funds, as follows:     I had secured a personal loan in August 2016 from a bank in Saudi Arabia. My salary is deposited in the same bank account.  I had attached my account bank statements with the application. However, I did not mention the loan in the application. Also, I had not attached a separate statement from the bank about the loan, which appears as a credit on the account statement.  Is it wise to reapply?    I have approached the bank, but it refuses to provide a statement regarding the loan.   What should I do to increase the chance of succeeding with a second application? Should I attach any additional supporting document?  Is there an option for lodging complaint. Is it advisable?

I have applied recently for a general visitor visa to the UK to spend 10 days during Christmas with my British unmarried partner and it has been turned down.   The Entry Clearance Officer stated on his refusal notice the following:     I note that you have never previously travelled to the UK or any country with similar immigration requirements and you therefore do not have a history of travel and compliance to consider.      You have submitted an employment letter to confirm your occupation in KSA but I am required to also assess your personal, domestic and economic circumstances in determining whether you are genuine visitor travelling to the UK for the period and purpose you state.      You claim an income of SAR ........ per month which equal ........ GBP and from the evidence submitted this appears to be your sole source of income.   I note that this monthly income is reflected on your bank statements. However, the bank statement you have presented show a recent large deposit that are in excess of your stated income and inconsistent with the account history. You haven't provided evidence toward the origin of this recent deposit and in the absence of reasonable evidence I am not satisfied that these bank statements accurately reflect your personal circumstances.      In view of the above, I am not satisfied you have demonstrated that your circumstances are as you claim and therefore I am not satisfied that you're travelling to the UK for the period and purpose you stated. 41(i)and(ii).   Its true that I have deposited that sum of money right before I apply and it was a commission I received from work earlier this month.   So, could you please give me your advice on the above as I am planning to apply again soon. and how to avoid my application being refused again?


I had brewed one gallon and I let it ferment and then let it sit... I think it has been two months or so after the recommended fermentation of this particular brew. I know it won't continue to ferment or anything but I am wondering if you just let it sit for that long does anything bad happen? Or could I just bottle it like normal and not get sick or anything!? Thank you!

What's the maximum amount of time for primary fermentation, assuming the beer is going straight to bottles next? Will it over ferment and then fail to carbonate, if left too long in a carboy?


I have dual boot setup Windows 8 and Ubuntu 16.04 LTS. I have two NTFS partitions - C(system drive having windows 8) and D. I want to access D drive on Ubuntu and don't want to disable hibernation.  NOTE: I have created another NTFS partition from Ubuntu (E drive) and I can read/write it from Ubuntu even if windows hibernation is on. So why I can't D drive?  Is it possible? Can I remove hibernation from D drive? Or is there any other solution?  Thanks!

Whenever I boot Ubuntu, I get a message that it cannot mount my windows partition, and I can choose to either wait, skip or manually mount.  When I try to enter my Windows partition through Nautilus I get a message saying that this partition is hibernated and that I need to enter the file system and properly close it, something I have done with no problem so I don't know why this happens.    Here's my partition table, if any more data is needed please let me know.     Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048    20000767     9999360   83  Linux /dev/sda2        20002814   478001151   228999169    5  Extended /dev/sda3   *   478001152   622532607    72265728    7  HPFS/NTFS/exFAT /dev/sda4       622532608   625141759     1304576   82  Linux swap / Solaris /dev/sda5        20002816   478001151   228999168   83  Linux


I'm trying to understand how many bases there can be in a vector space. According to my understanding so far, for example in the vector space $\Bbb R^2$ every pair of linearly independent vectors can build a basis for that vector space. So, generally speaking, can any number $n$ of linearly independent vectors $\{v_1, v_2,...v_n\}$ make up a generator for the vector space $V \in \Bbb R^n$?

Basically does a vector set that is linearly independent in $R^n$ automatically span $R^n$?  My initial thought is yes, but is there some counterexample that can disprove this?


The current directory contains file1 and file2. How do you explain this output:  [root@server test]# command='*'; [root@server test]# echo $command file1 file2   Why is * expanded? I expect it not to be because it's quoted.

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


I finished my dissertation and I have now been asked to add a list of abbreviations/glossary just after the table of contents. I have searched several examples but all seem to require extra packages that do not work on my mac (using texpad on mac os x maverick) so I was wondering if some generous soul could guide me through how to do that on a mac. It could also be done manually without packages as long as there is a good formatting.   Thanks in advance.

I would like to make a list of symbols and abbreviations without using any special packages like nomencl and alike. What I would like is just left-aligned two columns once for the symbols and one for the abbreviations.   Should I start with the following?  \begin{flalign*} Symbol_1 &: Meaning of Symbol_1 \\ Symbol_2 &: Meaning of Symbol_2 : : \end{flalign*}   Would be very grateful for any help!