Once again I have to turn to these boards for help :) We are implementing a web based RIA where users need to fill in a form and build a list of Products on it. The list of products is build by selecting desired products from the big products database. Each Product is characterized by only two attributes: Code and Name.   ATM we have a "type ahead" field which is used for Products' selection.  The field works similarly to the google search, i.e. users type fragment of the Product name or code and app suggests in a drop down the products which contain said fragment. For performance / screen real estate reasons the number of entries displayed in the drop down is limited to about 20.  But we found out that users have problems building the products lists as they need to know beforehand pretty well the products' names / codes (or fragments thereof).  Additionally, at the moment the type ahead does not support fuzzy / wildcard matching so users cannot make any misspellings when typing.  The first improvement proposed is to implement the wildcard / fuzzy search on the type ahead which would solve the issue of misspellings. But it would not solve the issue of users not knowing what they are looking for...   So the second improvement which was proposed was to implement a multi selection modal lookup of products, which would allow the users to scroll up / down and do a quick narrowing searches. As the products have only code / name, the product list would look like a very long list of phone contacts. The problem is that the large number of products (over 1.000) makes it hard to fit it on several manageable screens. Also, performance of such list might be a concern in web environment.  The question I have is: do you know of better ways of displaying / lookups on large data sets than long vertical scrollable lists?

The Need  Our application has a chat feature that allows our users to chat with other users within their database.   However, we're adding a feature that allows clients to share data between multiple databases as an "Enterprise" configuration, and we've been asked to update the design of the chat feature to allow users to chat with other users within any of those databases.   We've looked at the numbers of possible users in these scenarios, and the number of chat users in these shared database environments can be as many as 5,000.   Users need to be able find people they need to chat with out of these thousands of contacts. However, up til now, we've had a list of contacts the users can browse. Since that is a user expectation, we were hoping to still maintain a browse-able list of contacts. We have ruled out trying to display a list of 5,000 contacts, as this doesn't seem to be anywhere close to useful or usable.   We've come up with three approaches to solve the problem:  Option One  Show a list of contacts from the local database that user's can browse. Have a second tab that allows users to search the "Full Directory", returning results from multiple databases.     Pros:   Allows us to show a browse-able list of relevant contacts  Clearly indicates to users that another source of chat contacts are available   Cons:   Search would be limited to the current tab, meaning users would have to be in the right tab to return the right result Adds a possible source of user confusion: whats the difference between "contacts" and the "full directory"? Adds another tab to what should be a simple chat list     Option Two  Show a list of contacts from the user's local database, but if they search for a contact, include results from other databases as well.     Pros:   Maintains a list of contacts the user can browse Avoids adding adding another tab One search field searches all sources   Cons:   Searching a finite contact list and returning results that weren't in the contact list may defy user's mental model of how the search will work. Not clear that another source of contacts exist. May need to add explanatory text that says "Search to see contacts from the full directory".      Option Three  Add a dropdown that allows a user to select a what to search in: the local database, or the full directory.     Pros:    No additional tab required Indicates to users that another source of chat contacts are available, though not as clearly as option 1   Cons:    Search still isn't universal: the right search category must be selected to return the right result Users may not notice the dropdown or understand intuitively what its function is. May require explanatory text in search results, reminding the user they can expand the search to the full directory     Thoughts?  Right now I'm leaning towards option two, but is there another option I'm not considering here? Is there another alternative worth considering?   Thanks!


I was wondering if I can flash Ubuntu touch on my Wiko Cink Slim android phone.  Specs:  •Dual SIM/ Dual Standby  •4.0-inch WVGA (480x800) IPS Display  •233ppi with 5-point multi-touch feature  •Android 4.1 (Jelly Bean)  •1GHz dual-core MT6577 processor  •PowerVR SGX531 GPU  •512MB of RAM  •4GB of internal storage (2.5GB usable)  •microSD card slot up to 32GB  •5MP autofocus camera with LED flash  •720p HD video recording  •VGA (0.3MP) front camera  •HSDPA 7.2 Mbps; HSUPA 5.76 Mbps  •Bluetooth v2.1 with A2DP and EDR  •WiFI 802.11b/g/n, WiFi HotSpot  •GSM Triband / 3G Dualband  •GPS with A-GPS support  •TV-Out support / LED Notification  •3.5mm headset jack / microUSB  •Proximity / Ambient light / Motion Sensor  •Li-ion 1,600mAh battery  •Standby time up to 200 hours  •Talk time up to 9 hours  •127.5 x 65.5 x 10.3mm (dimension)  •125g (weight)

With the announcement of the Ubuntu Phone OS I'd like to know what phone (and tablet) models are supported at this time.  Note from foss & Oli: We are making this the master question for all future "Will this work on <insert random tablet/phone/device here>?!" questions


I am using Ubuntu 18.04 in windows subsystem for linux. I was trying to set up a ruby on rails project. But I encountered and error that sqlite3 is not found. I tried several answers online, nothing seems to work. I hereby add some of the command outputs for reference. sangeeth_tech@DESKTOP-D2E7B1G:~$ sudo apt install sqlite3 Reading package lists... Done Building dependency tree Reading state information... Done Package sqlite3 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'sqlite3' has no installation candidate   sudo apt-cache policy sqlite3 sqlite3:  Installed: (none)  Candidate: (none)  Version table:  I tried sudo apt-get update and sudo apt-get upgrade. Still same result. I don't know what is the issue. Can anyone help me? Edit 1: Here is the output of sudo apt update sangeeth_tech@DESKTOP-D2E7B1G:~$ sudo apt update Hit:1 https://deb.nodesource.com/node_12.x bionic InRelease Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease Hit:3 https://cli-assets.heroku.com/apt ./ InRelease Hit:4 https://download.docker.com/linux/ubuntu bionic InRelease Hit:5 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease Hit:6 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease Get:7 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB] Fetched 17.1 kB in 12s (1,412 B/s) Reading package lists... Done Building dependency tree Reading state information... Done 1 package can be upgraded. Run 'apt list --upgradable' to see it.

There are now errors when updating and I cannot install most software due to a corrupted  /etc/apt/sources.list   file. Is there a copy I can download to replace it?  The file would be for Ubuntu 12.04 (Final Beta) in the United States.


I am looking at setting up several Centos machines in my network and would like to have them update from a centralised server on the network. I am hoping to save bandwidth by not having to update each OS from the internet.  The solutions I have found require me to mirror the entire centos repository, which I find to be a terrible waste of storage considering that I would only ever be using a fraction of the packages available.  The solution I am looking for would allow all machines to point to a local yum server for packages and if the latter doesn't have the requested package, get it from the www and cache it for the next request.

Does a caching proxy for yum exist, similar to approx for Debian repositories? Is there a way to have reprepro behave the same as approx? I have heard that approx was not as stable; besides, I would prefer the use of reprepro so that I could use my existing web server to serve the repository.


I'm new to blender, I started about a week ago. I'm currently designing a human head. As for the details, like lines, little molds etc., I thought of using sculpt mode. So bsc. what I did was, editing my object, or rather it's vertices, make it more "high poly" with a subdivision modifiers, editing again, subdivision again, and so on.  Now I ran into a problem. When trying to use the sculpt tools, literally nothing happened. i searched the interenet for answers, all I found was the tip to turn on "Dyntopo". I did. After that the sculpting tools had effect, but the effect wasn't the one I wished for, neither the one it should be. It was more like little cracks in my model, I can't even describe it properly, but I'll add images.  Any ideas what I'm doing wrong? What settings should I use? Is there a way to finalize my model, so that the PC doesn'T take it as editable object anymore, in order to improve performance when sculpting? Kind of locking the vertices? I'm running a GTX 980 and an I7 3770K and 16GB RAM, still it lags like hell...          Thank you very much, I hope this is the right place to ask this kind of question!

I've created a simple mesh consisting of a cube that has been modelled out into a corner by extrusion:    I'm now trying to sculpt detail onto it in sculpt mode using dynotopo, however I'm getting different results on different sides of the mesh.  The bottom of the mesh (which was the original cube that I extruded from) sculpts nice and smoothly as expected, however the other side is jagged and distorted which I can't sculpt as nicely. Why is this? The original faces appear to be the same.


today I noticed in my Taskmanager some new entries of HyperV Virtual Network. I never turned Hyper V on, that entry is still on "off" in the Windows Features List, and I dont use any virtual machines or vpns. I think it might be because of the newest big Windows Update 20H2, or maybe even a virus. What do you think? Thank you in advance.   Edit: To clarify I never used any Virtual Maschines or HyperV, so its a little scary to see it pop up from itself

This morning I upgraded my system to Windows 10 2004, the upgrade went smooth and was through Windows Update. I am using Hyper-V as my virtualization program for virtual machines and to provide extra layer of protection to the system through core isolation. After the upgrade, I noticed that a new Virtual Switch was created with the name "vEthernet (Ethernet)" where "Ethernet" within the parentheses is the name of my primary network adapter. Also noticed this behavior has a specific pattern of creating new vSwitches correspond to the adapters you have, e.g. if you created a new Virtual Switch and restarted the system, a new additional switch will appear with the name "vEthernet (your-new-switch-name)". Tried to remove Hyper-V and reinstall it but no luck. I am aware of a similar  on SuperUser but has no answers on it. Any clues for the root of the problem?


I am making a web chat application in which I have added some cool features like clear chat buttons and all...  But I am facing this problem.. Whenever I append more messages which exceed the div height, it shows the scroll bar but does not scroll down to show the client a new message. Can somebody help me fix that please. Here is its index.html code:(I can not send the server.js code since it runs by node.js)      var socketio = io();      function update(list)      {         for(var i = 0; i < list.length; i++)         {             $("#users").append("" + list[i] + ", ");         }      }     // block     $("#login-form").submit(function(event){         event.preventDefault();         if($("#username").val() == "" || $("#username").val() == " ")         {             alert("Please enter a valid username.");         }         else         {             $username = $("#username").val();              $("#total").hide();             $("#chat-area").show();             $("#messages").html("");             socketio.emit("has connected", $username);         }     });     $("#message-form").submit(function(event){         event.preventDefault();         if($("#message").val() == "" || $("#message").val() == " ")         {             alert("Please enter a message.");         }         else         {             socketio.emit("new message", {username: $username, message: $("#message").val()});             $("#message").val("");         }     });         socketio.on("has connected", function(data) {             $("#users").html("");             update(data.usersList);             $("#messages").append("
"+ data.username +" has connected
");         });         socketio.on("has disconnected", function(data) {             $("#users").html("");             update(data.usersList);             $("#messages").append("
"+ data.username +" has disconnected
");         });         socketio.on("new message", function(data) {             if(data.username == $username)             {             $("#messages").append("
You: " + data.message +  "
");             }             else             {             $("#messages").append("
" + data.username + ": " + data.message +  "
");             }         });   Can someone edit it to make it scroll automatically when new messages are appended to the
 in the a
 tag. NOTE: The id of that
 is "messages".

I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom without much luck. I am wrapping everything in this div: #scroll {     height:400px;     overflow:scroll; }  Is there a way to keep it scrolled to the bottom by default using JS? Is there a way to keep it scrolled to the bottom after an ajax request?


I have a dropdown with 3 options ( critical , major, minor ) .Now if I select critical then the date should be todays date + 3, for example, today is 16-05-2019 so if I select critical the date displayed in the datepicker input should be 19-05-2019 and if I select major the date picker should show (todays date + 7) so it will show 23-05-2019    $(document).ready(function() {    $("#date-in").datepicker().datepicker("setDate", new Date());    $('#priority').on('change', function() {     changeDate();   }); });  function changeDate() {   var date = $('#date-in').datepicker("getDate");   var pvalue = $('#priority').val();    if (pvalue === 'Critical')     pvalue = 3;   if (pvalue === 'Major')     pvalue = 7;   if (pvalue === 'Minor')     pvalue = 30;    date.setDate(date.getDate() + parseInt(pvalue));   $("#date-in").datepicker("setDate", date);  } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script   src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"   integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="   crossorigin="anonymous"></script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <select class="form_line_only form-control" name="ho_night" id="priority">   <option selected> none </option>   <option> Critical </option>   <option> Major </option>   <option> Minor </option>  </select> <input type="text" class="date_c" id="date-in">     So I am able to increase the date but it adds on the current value displayed

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?


As per this screenshot, from the Home page:  It says that the Community bot asked that question.  But why does it say, when you visit the question, from this screenshot:  That it was asked by user825151?  And that, when you hover over the username, it doesn't take you to the profile page?  Shouldn't it say Community?  The community bot didn't ask a question, then delete its account, did it?

I see the  on the user page.  It seems to edit posts sometimes.  What is it? And why has it downvoted over 1800 times? See also:


I tried using hide all normal windows but it doesn't do anything after the first time, and after looking through some previous questions I tried to find hide all windows and show desktop but couldn't find that option.  I'm looking for something like what windows+d does in Windows.

I recently installed Saucy Salamander on my computer. Previously in Ringtail, Super+D used to show the desktop. However for this release, the Super+D does not seem to work properly... Is it a bug?


A rogue receives a bonus Cunning Action, and one option is to Dash. My understanding is a Dash allows a player to move up to twice his speed for his turn.  If a rogue is using a regular action to Dash (hence, is already dashing) can he also use his cunning action as a bonus to Dash again — effectively moving 4 times normal speed in a turn?

The Dash action gives you extra movement for the current turn (equal to your speed). If I have an effect (like the Expeditious Retreat spell or the monk's Step of the Wind feature) which allows me to dash as a bonus action, can I also dash as my regular action, for triple movement?


Ok, so I tried to go catch Azelf yesterday. I live in a place with EST so it was around 5pm I went to catch him. I click on the hoopa ring and It just gives me a quote and nothing else. Then I try again later that night around 2 am in the morning and it does the same thing? I don't why. I know the requirements is to have 3 pokemon with max friendship and you come at certain times but even then, I can't start the battle. I already have Mespirit and Uxie, but I can't access Azelf. Help?

There are a lot of legendaries available in ORAS, however a lot of them will only show up/be available if certain prerequisites are met.  I know Groudon/Kyogre are available through the Story, and      Rayquaza & Deoxys   through the postgame Delta episode, but what about the other available legendaries? What do I need to do to catch them?


Let $k[x,y]$ and $k[z_0,z_1,z_2]$ be polynomial algebras over a field, and let $$k[x,y]_{2\bullet}:= k[x^2, xy, y^2]$$ be the subalgebra of polynomials with terms of even degree.  Then we clearly have a k-algebra hom $$k[z_0,z_1,z_2]\rightarrow  k[x,y], ~~z_i\mapsto x^iy^{2-i}$$ whose kernel contains the ideal $(z_2z_0-z_1^2)$.    Why is this ideal precisely the kernel?    Motivation: this imbeds $\mathbb{P}^1\hookrightarrow \mathbb{P}^3$ as the conic $z_2z_0-z_1^2$.

How do I show that $\frac{k[x,y,z]}{\langle xz-y^2\rangle}$ is not isomorphic to $k[x,y,z]$? (I want to understand the coordinate ring of this surface) Is there a 'natural' evaluation map that realizes $\langle xz-y^2\rangle$ as its kernel?


The method for roots of a scalar function $f$ alternates Newton steps ($x_k\mapsto z_{k+1}$) and simplified Newton steps ($z_{k+1}\mapsto x_{k+1}$).  I think I need to Taylor expand all the f, but I do not know how to deal with the $f(z_{k+1})$ term. Seems like Taylor expanding that is very hard. Any help is appreciated.

Find the order of the iteration is given by  $$y_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} \quad x_{n+1} = y_{n+1} - \frac{f(y_{n+1})}{f'(x_n)}$$  Assuming $f(r) = 0$, $f'(r) \neq 0$ and the initial guess is close to r.  I know the iteration is a third order method because if I let $Y(x) = x - \frac{f(x)}{f'(x)}$ and $I(x) = Y(x) - \frac{f(Y(x))}{f'(x)}$. We end up with  $$\frac{dI(x)}{dx}|_r = 0$$ $$\frac{d^2I(x)}{dx^2}|_r = 0$$ $$\frac{d^3I(x)}{dx^3}|_r \neq 0$$  This way however is very messy when evaluating all of the derivatives. I was wondering if there is another way to prove that the above methods order of convergence?


Searching for  doesn't unroll the tags in search input (top bar + page specific):        Eliminating the  from the search query will unroll the tags in the top bar search input (page specific search input is not visible at all):        Is there a reason for such a different behaviour?

After performing a search on the  with only tags in the search box I get redirected to tagged questions page:        The search-string on the top of the page in this case gets unfolded:      When I do the search with some extra data - I remain on the search page. And the search string stays unmodified.


I've got a plane with its Base Color set to a texture (let it be 100x100 pixels). When I scale this plane the texture gets scaled too, which is not what I want. How do I make Blender not to scale this texture no matter how big the plain is? I don't want it to be scaled beyond 100%.

I just recently got into the nodes system, my knowledge on the subject is limited. I can't seem to find out how to tile textures using my current node setup, because it doesn't tile the them on its own. I know that I could be using a Vector Mapping node, but the way I'm modeling this requires that I texture each part of the building individually. If I use a Vector Mapping node, I'll have to manually adjust each individual part myself. The nodes I'm currently using  The problem that I'm having is that if I use the same nodes for a mesh with different dimensions they get stretched.  I want to avoid the need of using Vector Mapping nodes and just give it the ability to tile the texture so that it goes over a mesh of any size without stretching.


I've tried all the suggestions on this website and the output is incomplete. File 1 showing list of proteins I'd like to search in file 2 and extract the complete set of lines containing the information I need. Q14157 Q14444 P23246 Q96EP5 Q9UN86 Q14011 Q7Z739 Q9Y383 Q96I24 Q9NP61 P29558 P51116 P00441 Q2TBT7 Q9NZI8  File 2 containing (incomplete paste here on this section) the info to be extracted from the list in file 1. P21796  260 Phosphoserine   S   1 P21796  266 N6-acetyllysine K   4 P21796  266 Ubiquitination  K   3 P21796  274 N6-acetyllysine K   1 P21796  274 Ubiquitination  K   3 P18848  45  Sumoylation K   1 P18848  45  Ubiquitination  K   2 P18848  53  Sumoylation K   1 P18848  55  Ubiquitination  K   2 P18848  69  Phosphoserine   S   4 P18848  75  Ubiquitination  K   2 P18848  88  Ubiquitination  K   2 P18848  107 Phosphothreonine    T   1 P18848  114 Phosphothreonine    T   1 P18848  115 Phosphothreonine    T   1 P18848  119 Phosphothreonine    T   1 P18848  213 Phosphothreonine    T   1 P18848  215 Phosphoserine   S   1 P18848  219 Phosphoserine   S   4 P18848  224 Phosphoserine   S   3 P18848  231 Phosphoserine   S   1 P18848  235 Phosphoserine   S   1 P18848  245 Phosphoserine   S   3 P18848  248 Phosphoserine   S   3 P18848  267 Sumoylation K   1 P18848  277 Ubiquitination  K   1 P18848  293 Phosphothreonine    T   1 P18848  295 Phosphotyrosine Y   1 P18848  335 Ubiquitination  K   2 P18848  343 N6-acetyllysine K   1 P18848  348 N6-acetyllysine K   1 P23246  7   Dimethylation   R   1 P23246  7   Omega-N-methylarginine  R   2 P23246  8   Phosphoserine   S   3 P23246  9   Asymmetric dimethylarginine R   1 P23246  9   Dimethylation   R   1 P23246  9   Methylation R   1 P23246  9   Omega-N-methylarginine  R   3 P23246  19  Dimethylation   R   1 P23246  19  Methylation R   1 P23246  19  Omega-N-methylarginine  R   2 P23246  25  Dimethylation   R   1 P23246  25  Methylation R   1 P23246  25  Omega-N-methylarginine  R   2 P23246  32  Dimethylation   R   1 P23246  32  Methylation R   1 P23246  33  Phosphoserine   S   8 Q14011  17  Phosphothreonine    T   1 Q14011  21  Phosphoserine   S   1 Q14011  33  Phosphoserine   S   1 Q14011  47  Methylation R   1 Q14011  71  Phosphoserine   S   3 Q14011  84  Ubiquitination  K   2 Q14011  94  Dimethylation   R   1

I have file 1 which have those lines:  ATM 1434.972183 BMPR2 10762.78192 BMPR2 10762.78192 BMPR2 1469.14535 BMPR2 1469.14535 BMPR2 1738.479639 BMS1 4907.841667 BMS1 4907.841667 BMS1 880.4532628 BMS1 880.4532628 BMS1P17 1249.75 BMS1P17 1249.75 BMS1P17 1606.821429 BMS1P17 1606.821429 BMS1P17 1666.333333 BMS1P17 1666.333333 BMS1P17 2108.460317 BMS1P17 2108   And file 2 have a list of words:  ATM BMS1   So, the output will be like this:  ATM 1434.972183 BMS1 4907.841667 BMS1 4907.841667 BMS1 880.4532628 BMS1 880.4532628   I know it's really a duplicate question, but I tried all types of grep and sed and awk, maybe it will works with you guys with this tiny example  but I have a very huge file > 1M lines and all previous way doesn't help  it return part of the lines that containing those words although there are other words in file 2 that matches the lines from file 1


I have been trying in various ways to give more left margin to the content of an environment and the only way that works for me is to apply \hspace{2.5in} on each line. How can I do it from the environment firstcite? The code works and the output is as expected but I would like to simplify: % !TeX program = lualatex \documentclass[ebook,11pt,twoside,openright,showtrims]{memoir} % -------------------------------------------------------Packages \usepackage{fontspec} \usepackage{xcolor}   \usepackage{alltt}   \setsansfont{Ubuntu}  \newenvironment{firstcite} {%      %\hspace{2.5in}     \begin{alltt}\sffamily\tiny\hspace*{2.5in}}     {\end{alltt}}     \setmainfont{Ubuntu}  \begin{document}  \mainmatter          \begin{firstcite}          \begin{vplace}                  \hspace{2.5in}{Yo repuse: }         \hspace{2.5in}   «¡Ay, Señor, Dios mío!          \hspace{2.5in}    Mira que no sé hablar, que solo soy un niño».          \hspace{2.5in}Y el Señor me contestó:          \hspace{2.5in}   «No digas que eres un niño,          \hspace{2.5in}    pues irás adonde yo te envíe          \hspace{2.5in}    y dirás lo que yo te ordene». (\ldots)          \hspace{2.5in}El Señor extendió la mano,          \hspace{2.5in}tocó mi boca y me dijo:          \hspace{2.5in}   «Voy a poner mis palabras en tu boca».                   \hspace{2.5in}(Jeremías 1, 6-7.9)                 \end{vplace}  \end{firstcite}      \end{document}

How do I indent a whole paragraph at the same distance from my left margin, with the simplest command or environment?


I'm trying to upgrade to the latest version of ubuntu, it isn't working and I'm also not seeing any error messages... so I'm not really sure what the issue is or where to start looking... Any help would be appreciated.  $ sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 12.04.5 LTS Release:    12.04 Codename:   precise $

What are the different ways I can use to upgrade Ubuntu from one release to another?


I went through several websites and  found that the easiest way to peel tomato is to boil them . So, How long do we need to boil tomatoes so that you can easily peel them?

I have a  that calls for peeling tomatoes. I've found elsewhere that this is often done by boiling them and letting the skin lift away during that process.  Is there anything else that can make this easier? Even after boiling, they are still difficult to peel.


I know that we can hide the standard page button using HTML area home page component. But as per summer 14 release, unsupported html, javascript functions will be disabled from summer 15 and old components will work till then. so i do not want use this approach.      May i know is there any other work around to hide the custom button in standard page layout.  Edit:  answer is here

Reading through this doc:      We replaced the rich text editor in HTML Area home page components   with a new version that supports more markup but doesn’t allow HTML to   be manually entered.      In Summer ’15 we will start removing unsupported code from HTML Area   home page components. As a result, components that contain JavaScript,   CSS, iframes, or other unsupported markup might stop working properly.   To use JavaScript or other advanced HTML elements in your home page   component, we recommend that you use a Visualforce Area component   instead.   With Visualforce homepage component the best we could do is design fancy home page components, which has not been the big use of sidebar amongst developers. How do we do the fancy hack we do today using html components since visualforce is hosted in a different domain will the sidebar hacks even work after summer 15?     You can include JavaScript in your Visualforce page, but because the   component is rendered in an iframe on the home page layout, the   JavaScript can’t interact with the page that contains the component.   Finally why this move :(?


I would like to know, the easiest way to clarify my beer. To avoid chill Haze if there's a way to avoid that. Any and all help be greatly appreciated.

What is Chill Haze?How Do I get rid of Chill Haze?


Does gravitational force of black hole attract the light? Or is it something else?

Light is clearly affected by gravity, just think about a black hole, but light supposedly has no mass and gravity only affects objects with mass.  On the other hand, if light does have mass then doesn't mass become infinitely larger the closer to the speed of light an object travels. So this would result in light have an infinite mass which is impossible.  Any explanations?


Random English exercise for myself because I like words:   Those who hold the plant will die.  Those whom hold the plant will die.    Which sentence is grammatically correct?  Opinion: It is the first sentence because it sounds better... but who 'm I to judge? (Sorry for the pun :P) I tried to structure the two sentences differently like the following, and see which sounded better:   He who holds the plant will die. Him who holds the plant wil die.   From what I can tell, "he" refers to "who" and "him" refers to "whom". In my opinion, these both sound ok... but when I change "he" to "she" and "him" to "her", the second sentence sounds awful:   Her who holds the plant will die. (yikes!)   So I believe the first sentence most above is correct (i.e. the one with "who" as opposed to "whom").  Made-up word: Enshadow: verb  1. envelop in shadow (e.g. The moon will enshadow us once the eclipse begins.)  2. hide something discreetly (e.g. We thought he was honest, but the truth was enshadowed.)

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


My daughter came out as "transgender" to me  and my husband in a family therapy session. I don't want to call her by her "preferred pronouns" of he/him because if it's a phase i'll be making a fool of myself. She also wants to change her name? What do i do, should i just wait this out?

My daughter, 13, has said she wants to be a boy. A little background: we moved to a new state a year and a half ago. In her new school, she felt isolated among her peers until she met a girl in art, and became good friends. She joined the drama club, and made  friends with some 8th graders. They joined “the diversity club”. This club is a LGBT club. The kids put on a play they wrote and starred in, which had homosexual connotations. “Romeo and Juliet”, but script  rewritten to include  2 females as the couple, for instance.   My daughter got so wrapped up in it, that her life was as if she was copying the play. She’s no longer friends with the friend from art, but remains close with the 8th grade crowd. They all labeled themselves. One week, my daughter said she was gay, then, changed to bi, then onto pan. (I had to google that one). Now she is emphatic about being disgusted with her body and wants to be a boy. She wants to donate all the “girly” clothes she picked out last year, and tossed out all the makeup she bought a few months ago.   All her life, she was the classic girly girl. She had crushes on boys, and she and this boy were inseparable since first grade. She was sad when it came time to move away. When we settled here, she became sullen and angry, putting herself down. She now sees a therapist who she really likes. We’ve been working on her self esteem issues. She’s wanting us to call her “he” and by a male name. I can’t do that. She’s my daughter. She is female. Had we seen this coming, maybe I could come to accepting. But it happened out of the blue.  Sometimes the old her comes back-I got a makeup sample and she was interested in trying it, looked at me, then quickly put it down and said “ewww, makeup”—just a few months ago, she bought a bunch. She’s now wanting to wear boys clothes and talks of wearing a suit to her prom. She is very impressionable, and seems affected by viral YouTube videos about kids coming coming out to their mothers, and the mothers gleefully embrace with happy tears. She has told me when she’s 18, she’s having her breasts removed.    Nothing seems normal to me anymore-in terms of how she always was-this new situation just doesn’t fit.  My gut tells me this is a phase.  I’m hoping it’s a phase. But with all I’m seeing in the media about this, I’m not sure. I love her; this is too much for me to process. I’m a stay at home mom; we were inseparable. I knew her. Until now.:(  She cut off all her beautiful hair, and wears boys shorts, baggy tee shirts, and bought this awful men’s deodorant spray. Please help me sort this out. I’m at my wits end.  Do you think this is a phase? Is this common?


I am developing an algorithm, and I want to compare its performance with various existing state-of-the art methods. I would like to contact the authors of these methods and ask if they can send me the code for their methods.  What should I tell them? Should I say that I am developing a method that is in some way an alternative to their method? Or is enough to ask to say that I want to do generic comparisons?

I am in the field of computer science. It is often the case when I am reading a paper I start to wonder, "Wow stunning results, however, I would like to prove that." or "How exactly did he get these amazing results? He/she just wrote a rough overview of the real methodology used in this paper.". As you can see, a lot of times the small things have a huge impact on the overall performance of the underlying methodology. Often they are not part of the paper or not revealed at all.  My idea would be to contact the paper writer, to ask for his research programs to recreate them and understand them. Can/should I do that?   I personally think that there are probably not a lot of researchers, who would let somebody else "look at their cards". What's your experience with that?


Do you use "in this list" and "on this list" in the following way?  a) In this list, when talking indirectly about the contents of the list.  Example:   Have you participated in this list? (Not this one)   This one: - I do not see any problem in this list.  b) On this list, when talking directly about the contents of the list.  Example:   The individuals on this list are from this town.

In the following sentence, should I use in or on?     If I ever make a list, not only will you be in/on it, you'll top it, too.


I am trying to find two subsets $E,F$ of $\mathbb{R}$ that satisfy $\underline{\text{dim}}_{B}(E\cup F)>\max\{\underline{\text{dim}}_{B}(E),\underline{\text{dim}}_{B}(F)\}$, where $\underline{\text{dim}}_{B}$ is the lower box-counting dimension.  I've been given the hint: Let $k_{n}=10^{n}$ and adapt the Cantor set construction by deleting at the $k$-th stage, the middle $1/3$ of intervals if $k_{2n}<k\leq k_{2n+1}$ and the middle $3/5$ of intervals if $k_{2n-1}<k\leq k_{2n}$. But I'm not even sure what it means when it says "if $k_{2n}<k\leq k_{2n+1}$".

Here the lower box dimension and the upper box dimension are exactly what Falconer talks about in his book "Fractal Geometry". I already know that the upper box dimension is finitely stable since $N_\delta(A\cup B)\le N_\delta (A)+N_\delta(B)$, where $N_\delta(A)$ is defined as usual, and Falconer gives an example to show the box dimension may not be countably stable. (We know that, however, the Hausdorff dimension is countably stable).  But now I want to find the example to show the lower box dimension may not even be finitely stable.It seems that we can use von Koch curve to illustrate this, but what is the explicit explanation for this? Since the lower box dimension is monotonic, we need to find set A and B and show that   $\underline{\dim}_B(A\cup B)>\max\{\underline{\dim}_B(A),\underline{\dim}_B(B)\}$.


I am trying to make a minigame where mobs spawn in random places in a set area, how can I do this with command blocks?

I was wondering if it is possible for you to make a command block spawn hostile mobs in random places in a specified area?   I need the mobs spawned on different Y coordinates too because you need to fight your way up a tower to the top and I want the mobs to vary on each level to have specialty to each floor every time you play the mini game.


i know i can use grep to find files however i am wondering what the particular difference between these common commands ? They all seems to be equal in meaning to me.   egrep  fgrep grep  find locate   as windows search and find command.

Can anyone tell me the technical differences between grep, egrep, and fgrep and provide suitable examples?  When do I need to use grep over egrep and vice versa?


I'm interested to know exactly what's happening under the bonnet when passing a variable or object into a function.  When passing an object or variable into a function, is a new copy of the object/variable created in the new scope? (A set of parentheses constitutes a scope in java right?). Or is the reference to the existing variable/object in memory passed in? Although that would only make sense for a global object/variable?

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


Hoping folks are tolerant of rank beginner questions. I recently downloaded QGIS 3.12.3 running on a pc with windows 10. I have my first project and map which looks good in print layout, but it looks very different when exported as a pdf or image file. For example way more fine (but unreadable) detail items showing up (like tiny city names and such). If I could just get an export that looked like what I see on my screen I'd be set. Thanks

I use tiled background map, from online source with 512-pix tiles and try to use it as background for printed map, using Print Layout and PDF export features. Problem: it seems that the choice of tile zoom levels depends automatically from the DPI setting.  Basemap layer is defined simply as "XYZ tiles" layer with following URL: http://1.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}@2x.png    In the preview it uses screen dpi (70 perhaps), and I see this map on both map window and Print Layout. Tiles are here from zoom 16. And the street names are big and readable, as I need.  Now for for print I need 600 (or more) DPI PDF-s. When I set this as Export resolution of Layout and create PDF, then suddenly exporter takes tiles from zoom 18, so exported PDF has different map, as below. Probably QGIS tries to match print resolution with tile raw resolution, but this is bad idea for such raster tiles, as you end up with very small texts. This rescaling probably makes sense for satellites, but not with maps with scale-dependent styles like texts. The pattern is that with 300 DPI there is +1 zoom, with 600 +2 zoom etc.    In screenshots here the difference is not maybe so visible as it is in real printouts, but it is quite terrible.  Question: is there a way to adjust this multi-resolution raster layer resolution matching magic in QGIS Print Layouts?  This WMS question seems similar, maybe core issue is same:   Btw, my quick remedy is now to use raster screenshot from Print Layout, but then I loose PDF vector with this, which would give much clearer vector texts and SVG vector icons on top of map.


I'm trying  to fit the distribution to the data. I started with histogram. Note that y axis is in logarithmic scale since the histogram is very steep.   (source: )    How should proceed to find actual distribution. Should I modify my data first? Any guesses what could the actual distribution be?

Suppose I want to see whether my data is exponential based on a histogram (i.e. skewed to the right).   Depending on how I group or bin the data, I can get wildly different histograms.   One set of histograms will make is seem that the data is exponential. Another set will make it seem that data are not exponential. How do I make determining distributions from histograms well defined?


Find all functions $f:\mathbb{R^*}\to\mathbb{R^*}$ that satisfy $$f(x)f(\frac{1}{x})=1\hspace{1 em}\forall x\in\mathbb{R^*}$$  I only found that every function $f(x)=x^n, n\in\mathbb{N^*}$ is a solution. Can you find all the solutions to this?

Find the functions $f:\Bbb R_*^+ \to \Bbb R_*^+$ such that:  $$f(x)f \left(\frac{1}{x}\right)=1$$


Why do I get a NullPointerException when I try this:  ArrayList<String> longsToStrings() throws IOException {     LinkedList<Long> longNumbers = populateArrayWithLongs();     ArrayList<String> strings = null;     for (Long l : longNumbers) {         strings.add(l.toString());     }     return strings; }   When I try to print the results to console, I get NullPointerException. populateArrayWithLongs() function returns array with longs: [1488758722000, 1488773070000, 1488787530000, 1488801890000]

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?


Is there a way to make Geocode or location address based on a shapefile streets, without using a web service and using QGIS or some open source software?

I am curious if there are any tools for QGIS to facilitate geocoding tabular data using a local linear features layer (ie, a street map with street name and address ranges - similar to geocoding in ArcGIS). I am aware of Alessandro Pasotti's GeoCoding plugin, but it queries Google Maps/OpenStreetMap rather than interpolating along line segments of a user-provided layer.  One reason I am interested in this approach is that for some projects it is desirable to have geocoded points placed exactly on features from other project-specific layers, such as the street maps provided by local services or municipalities, which may not necessarily match the positions returned by web services.  Any ideas - or any input in case I have a go at writing a solution from scratch?


How would I go about merging two cylinders in order to achieve a result similar to the joint in the highlighted part in this image?

I'm working on making a triple glazing corner sample, and I want to be able to mitre the profile at 45 degrees so I can duplicate it, rotate it and join them to make an elbow. I've muddled through making the profile, but now I'm stuck on how to get that 45 degree angle.  I've had a look around Google, perhaps I'm not phrasing my question correctly but I cant find any answers. I did try creating a cube to use as a sort of cutting form, but Blender wouldn't let me use a Boolean modifier to do it. Any thoughts?  Thank you!  What I'm trying to achieve:    What I have at the moment:


I am trying to extract the date from this '2025-03-21T12:54:41Z' text using python regular expression.  date=re.match('(\d{4})[/.-](\d{2})[/.-](\d{2})$', date[0]) print(date)   This give output as None  also, I tried this code   date_reg_exp = re.compile('\d{4}(?P<sep>[-/])\d{2}(?P=sep)\d{2}') matches_list=date_reg_exp.findall(date[0]) for match in matches_list:   print match   This gives output as - only   Please help

I need to parse  strings like "2008-09-03T20:56:35.450686Z" into Python's datetime type.  I have found  in the Python standard library, but it is not very convenient.  What is the best way to do this?


I created a hole in the top of my door using a Cube and a Boolean modifier. I show you several screenshots of my Blender in various Viewuport shadings, where you can see right through the hole, into the blue colored hallway with a lamp in it.  When I press Render image F12, this hole is closed with a plane of some sort.  I do not understand this, in all other 3D views there is no face at all, no plane, it's a hole, why is there a plane visible in the final ender Image? I updated with an extra image in Solid View where I put the normals view on. This could explain something?  Thank you! Regards.  Pictures:         Final F12 render Image shows plane:    Normals view on:

Have Blender on about 4 machines rendering animations. Just spotted on one of the machines its rendering something different from the actual scene that I have setup.    Top window shows a different set of layers objects to whats actually being rendered in the rendering window below.  In my scene contents, layers objects 1-5 are not visible, but these are the ones that look like they are being rendered.  The only thing I can assume is that perhaps it might be because I did not save the document before clicking render, but I would not have expected that behaviour (you dont need to save your word document before printing it).  Can anyone confirm why this is happening?


What's wrong with the following equations?  $$1 = 1^{-i} = (e^{2πi})^{-i} = e^{-i2πi} = e^{2π}$$  My guess would be the third equation, but I can't really tell why... in the first equation, we use the fact that $1^z$ is still $1$ for any $Z \in C$; in the second step, we insert Euler's Identity... and in the last equation, we simply use $-i2πi = 2π$. But if I'm right with my suspicion, why is the third equation wrong? Can't we use the power rules for complex numbers?


I’m very curious to know whether gravity exists in higher dimensions. Because it follows the inverse square law it seems to me that it should be 3D only (just intuition). Is there any mathematical evidence of your answer or any experiment that can test it?

Coulomb's Law states that the fall-off of the strength of the electrostatic force is inversely proportional to the distance squared of the charges. Gauss's law implies that the total flux through a surface completely enclosing a charge is proportional to the total amount of charge. If we imagine a two-dimensional world of people who knew Gauss's law, they would imagine a surface completely enclosing a charge as a flat circle around the charge.  Integrating the flux, they would find that the electrostatic force should be inversely proportional to the distance of the charges, if Gauss's law were true in a two-dimensional world. However, if they observed a $\frac{1}{r^2}$ fall-off, this implies a two-dimensional world is not all there is. Is this argument correct? Does the $\frac{1}{r^2}$ fall-off imply that there are only three spatial dimensions we live in? I want to make sure this is right before I tell this to my friends and they laugh at me.


work = force x displacement. Here displacement is infinity? so then potential at a point?

Why is the work done on a charge calculated from infinity to a point? Why not from one particular point to other?


Problem: Let $A$ be a $2\times 2$ real matrix with exactly one eigenvalue $\lambda \in \mathbb{R}$, but that $A \not= \lambda I $, show that there exists an invertible matrix $P$ such that    $$ P^{-1}AP = \pmatrix{\lambda&1\\0&\lambda}$$   What I have at most:   Firstly, if $\lambda \in \mathbb{R}$ is an eigenvalue, then $(A - \lambda I )\mathbf{v} = 0$ for a nonzero vector $\mathbf{v} \in \mathbb{R}^2$. And if $A - \lambda I \not = 0 $, this means the eigenspace of $\lambda$ is precisely of dimension $1$.   Therefore, exists $\mathbf{t}$ such that and $\mathbf{t}$ and $\mathbf{v}$ are linearly independent, and $A \mathbf{t} \not= \lambda \mathbf{t}$. So $A \mathbf{t} = \alpha \mathbf{v} + \beta \mathbf{t} $. where $\alpha \not= 0$ (since otherwise $\beta$ would be an eigenvalue). Giving,  $$ A \frac{\mathbf{t}}{\alpha} = \mathbf{v}  + \beta \frac{\mathbf{t}}{\alpha}$$  Thus, letting  $$P = \big[ \mathbf {v} \quad \frac{1}{\alpha}\mathbf{t} \big]$$ where they are column vectors, yields   $$ P^{-1}AP = \pmatrix{\lambda&1\\0& \beta/\alpha}$$  What am I missing - may someone give a hint? Thank you!   edits: Thank you for the solutions. (Also made minor edits as in the comments.)

Struggling to find a place to start with this proof- just began learning about Jordan normal.  Given a 2-by-2 matrix $A$ and a Jordan normal form matrix $J_{\lambda}$, there exists a matrix $S = [v1, v2]$ s.t. $$S^{-1}AS = J_{\lambda}$$ That is, $J_{\lambda}$ is similar to $A$.  WTS: $$(A - \lambda I)v_{1} = 0 $$ $$(A - \lambda I)v_{2} = v_{1}$$    I was going to try to start with the similarity condition and work into producing the two statements below.  Transform the similarity condition to: $$(A = SJ_{\lambda}S^{-1}) * v_{1}$$  Rewrite our first statement to prove as: $$Av_{1} = \lambda I v_{1}$$   Substitute: $$\lambda I v_{1} = SJ_{\lambda}S^{-1}v_{1}$$  But I've been continually getting stuck.  Tried a few ways other than this.  What intuition am I missing?


I have an Acer Aspire computer that contains:   Intel Atom CPU 1.33 GHz x 2 2.0 GB RAM Gallium 0.4 on llvmpipe (LLVM 3.4, 128 bits) Disk 243.9 GB   I thought that Ubuntu would run faster than Windows 7, so I installed Ubuntu 14.04. The result was terrible, it runs super slow, even the animation of closing a window runs in slow motion, about 1 FPS. I know its not the best PC, but it stands on the recommended requirements and still works slow as hell.  Any ideas why it is happening, and how to fix it? I thought it was maybe due to power saving mode being on, but I can't find the way to check it.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I'm trying to install git using  sudo apt-get install git-all   but I'm getting an error message which ends as follows:  Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried purging runit, git-all, and git, autoremoving, and re-installing as suggested in , but I still get the same error message. Any ideas on how to fix this?

I am using 15.04.   So I'm working with git and I installed the standard version. I set up the ssh keys and was able to clone one of my repositories to the correct folder. Everything was working great and then I decided it was a good idea to install more packages. I ran sudo apt-get install git-all. I'm looking at error codes now having to deal with upstart.  start: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused No apport report written because the error message indicates its a followup error from a previous failure. dpkg: error processing package runit (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of git-daemon-run:  git-daemon-run depends on runit; however:   Package runit is not configured yet.  dpkg: error processing package git-daemon-run (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  runit  git-daemon-run E: Sub-process /usr/bin/dpkg returned an error code (1)   This is what happens when I even update/upgrade my system. At this point all I'm looking to do is be able to install software and update my current software. Is there any way I can potentially reverse this issue or at least correct it?   Edit: Thankfully this issue was solved only a day or two after it happened. The accepted answer worked perfectly and took care of my issue


I tried doing this  Optional command for temporary root privileges. So you won't need to keep typing sudo.  $ sudo su   enter password. (Note. This is not required, you can continue to use sudo, if you choose.)  First step, make sure your current Ubuntu Version's installed packages are up to date.  $ sudo apt-get update && dist-upgrade   Y when prompted  After that finishes...  $ sudo apt-get install update-manager-core   Next up  $ sudo do-release-upgrade   But it brings me this error 'The package 'linux-headers-3.13.0-generic' needs to be reintalled, but it is impossible to find some appropriate archives'

From time to time, Ubuntu users encounter errors from  or , of the form:  The package some-package needs to be reinstalled, but I can't find an archive for it.  I want to know what causes this error so that I can reproduce it and try to find safe ways of fixing it, even when the broken package is important and has many dependencies.  of the  might give a bit of a clue, but I don't know how packages get the status that causes the error.  How can I produce this error for testing on my (Ubuntu MATE 17.10) system?  This is prompted by  and my long-standing discomfort with closing questions about this error against , whose answer uses dpkg --force-all to remove the offending package.  suggests this solution has worked for many users, but I am not confident that using --force-all won't cause later problems, or that it's a good idea to use this method to remove important packages like APT.


I've seen tons of problems with Alt-Tab and the desktop cursor showing up.   But my problem is that the desktop cursor shows up without ever tabbing out. It seems like it happens when I'm running (shift) and moving (w) forward and/or turning (a).  When I do that, my computer beeps and the Windows cursor shows up. That makes it seem like a Sticky Keys problem, but I don't have Sticky Keys turned on. Is there something I'm missing?  I'm using dual monitors and have Windows 8.1.

Since I've installed Dawnguard and Hearthfire, when ever I do an Alt-Tab and come back to the game I get the windows cursor and the game cursor. And both are not sync over each other so it's kind of annoying. How can I fix this bug ?


When i click button, i want to add new note to my db.So when i click add_note button, a textbox  and save button appears. When i click save button nothing change. I check the web concole but there is no error . What should i do ?     jquery   $("#add_note").each(function() {     $(this).on("click", function() {         $("#not").html('<input type="text" id="note" />');         $("#buton").html('<button  class="btn btn-primary btn-sm " id="save">Save</button>');      }); });   $("#save").each(function() {     $(this).on("click", function() {         alert("dsfasdfasdfasd");     }); });      html   	      <button class="btn btn-primary btn-sm " id="add_note"> Add New Note</button>

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


I am currently migrating a website, and my usual method is working with mail clients, and copy the old mailbox to the new server mailbox.  But, if you have a website, with multiple mailboxes, and those mailboxes have numerous folders, the work usually takes all day.   I have searched the Internet for a far more easy and faster way, preferably open-source, but most tools are ancient, and the .  Wat is the faster and easier way of migrating mailboxes?  Paid tool:      Free Tool      Note:    I have root access on the destination server, and not on the source. I downloaded the e-mails with the following settings   mail.DONAINNAME.com: IMAP (for receiving)  smtp.DOMAINNAME.com: SMTP (for sending)

I'm trying to copy of IMAP emails from one server to my new server but after Googling for hours and trying several tools, nothing is working. Is there a tool that actually works?  I am copying hundreds of thousands of emails so using a email client is out of the question, I tried it, and at the rate of a email per 2 seconds, it would take a few weeks or months!  www.linux-france.org/prj/imapsync/ is commonly mentioned, however, the tool is no longer available.  I tried www.athensfbc.com/imap_tools/ which just hangs and does nothing.  Any migration tools that work?


Ubuntu 18.04 LTS is booting very slow after a recent update. Below is systemd-analyze blame output:  6min 36.404s plymouth-quit-wait.service     3min 36.636s snapd.seeded.service          35.386s snapd.service           6.287s NetworkManager-wait-online.service           1.780s dev-sda5.device           1.255s dev-loop4.device           1.233s dev-loop3.device           1.229s dev-loop0.device           1.220s dev-loop2.device           1.216s dev-loop7.device           1.216s dev-loop5.device           1.216s dev-loop1.device           1.202s dev-loop8.device           1.200s dev-loop6.device           1.157s dev-loop9.device            744ms fwupd.service            650ms apparmor.service            476ms systemd-rfkill.service            402ms udisks2.service            333ms systemd-journal-flush.service            297ms networkd-dispatcher.service            275ms plymouth-start.service            255ms accounts-daemon.service   Kindly help  Thank you

I'be been running 18.04 since a clean SSD install on the day of it's official release, without issues. Power on to login was seconds (max 10)  Then, I did a regular upgrade this morning:  $ sudo apt update && sudo apt dist-upgrade   The packages installed/upgraded were:  Install: linux-headers-4.15.0-24:amd64 (4.15.0-24.26, automatic), linux-headers-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-extra-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-image-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic) Upgrade: gnome-control-center-data:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-headers-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-image-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), linux-signed-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center-faces:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-generic:amd64 (4.15.0.23.25, 4.15.0.24.26)   I rebooted once the upgrade had completed, and noted a 2-3 minute delay on the Ubuntu loading/splash screen (prior to login) (without any progress/activity indicated on the dots).  I powered off and tried to boot again, but am getting this delay consistently now. Also close down is much slower too.  Update #1 (2018-07-03): Analysis on systemd:  $ sudo systemd-analyze blame 3min 53.073s plymouth-quit-wait.service     2min 20.699s snapd.seeded.service          49.949s snapd.service           6.186s NetworkManager-wait-online.service           1.148s dev-sda2.device           1.098s plymouth-start.service   Showing that plymouth-quit-wait.service (which I now believe is related to the Ubuntu loading/splash screen) and snapd.seeded.service were by far the longest running services to initiate. So I compared the times before the dist-upgrade and after:  $ journalctl -u plymouth-quit-wait.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:38:05 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:15:46 user-laptop systemd[1]: Started Hold until boot process finishes up. -- Reboot -- Jul 03 04:21:17 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:24:52 user-laptop systemd[1]: Started Hold until boot process finishes up.   Before the upgrade plymouth-quit-wait.service took 3 seconds. After the upgrade it took 3 minutes 35 seconds  $ journalctl -u snapd.seeded.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:42:14 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:15:43 user-laptop systemd[1]: Started Wait until snapd is fully seeded. -- Reboot -- Jul 03 04:22:47 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:24:49 user-laptop systemd[1]: Started Wait until snapd is fully seeded.   Before the upgrade snapd.seeded.service took 0 seconds. After the upgrade it took 2 minutes 2 seconds.  Update #2 (2018-07-06): This morning's boot saw the return of the delay. So I guess we're still waiting for the kernel/plymouth/snapd update.  Update #3 (2018-07-12): The problem seems to be resolved, but I didn't see any update to snap or plymouth, and I'm still running 4.15.0-24 kernel. So I'm not sure which package update fixed the problem, or if it just resolved itself somehow. Reading the bug updates on launchpad it's unclear to me what was done (or is being done) to what package/s. If anyone can clarify that would be very useful.


I was wondering how to change the settings so it shows the battery as critical (red) at 10% instead of 30% since 30% is still over an hour of usage on my laptop. Thanks!

I would like my laptop to hibernate itself when the battery level is 10% to be sure it has enough power to complete the operation properly. Actually if I don't pay attention my laptop informs me it will hibernate when it's too late, so instead it brutally shuts down. This kills lithium batteries and is not acceptable.


I'm looking for extremely flexible flight search engines.  Here are the features I'd like to be able to utilize:   More flexible date search, specifically, I want to be gone between 7 and 12 days, but I'm good with leaving and arriving any time within two months. I can search on a site like kayak, but only within a few days, and it won't preserve my trip length. "Super long" layovers, rather than 3-8 hours in a layover, I'd like a longer layover, more like 16-48 hours.  Sometimes these pop up in the searches, but I can't figure out how to locate them specifically.   Is there any site that works well and has more options than a site like kayak?  For what it is worth, I'm looking to travel from DSM to RIO in September or October of this year.

Several airline and trip planning sites will allow you to check "I am flexible with my dates" or a similar option.  Is there any way to also search more broadly for location?  For example, if you wanted to leave from YYZ or YKF and arrive at any airport in California, can a search for such flights be done somehow?  I ask because when I plan plane trips, I want the lowest price.  I'm OK with leaving a day or two later if I save $200 (same with the return trip).  There are 3 airports within 80 km of me, I'll leave from the one with the cheapest flight. And I'm also OK with changing the trip to spend time exploring San Francisco instead of lying on the beach near San Diego, and that sort of thing.  Normally this would take dozens of searches, but I'd like to see it all at once.


$$\sum_{k=0}^{r} \binom{m}{k}\binom{n}{r-k} = \binom{m+n}{r}$$  Nice, so I've proven some combinatorial identities before via induction, other more simple ones by committee selection models.... But this one is weird, induction doesn't even seem feasible here without things getting nasty, and the summation on the left is not making things easier. Can anyone help?

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


In drupal 7, what are some methods to stop botnets hammering your site? I have captcha protecting my registration page, but this doesn't stop them from bootstrapping my site when they land on the page. If enough load can be put on that page, it would lag my server. What are some tricks or modules that can prevent this scenario?

I have a Drupal 7 website on a shared hosting account that uses an Apache server. It is getting continuously battered by spam bots who try to post junk comments and create fake accounts. What methods can I use to block them from accessing the site and/or doing any operations there.  Currently, I have the following modules installed to block and combat spam:  Spambot -   Spamicide -   Hashcash -   AntiSpam -   Cloudflare -   I tried installing Bad Behavior (), but there appears to be some error in its installation procedure.  I do not want to use captcha to block spambots.


Let $a_n$ be a Sequence such that $a_{n+1} = \frac{1}{k}(a_n+\frac{k}{a_n}), k>1, a_1>0$, show that $\{ a_n \}$ converges to $ \sqrt {\frac{k}{k-1}}$   My attempt  case 1: $a_{n+1}-a_n \leq 0 \\ \frac{1}{k}(a_n + \frac{k}{a_n})-a_n \leq 0 \\ a_n^2+k-ka_n^2 \leq 0 \\ a_n \geq \sqrt {\frac{k}{k-1}}$  Here sequence is decreasing and bounded below by $\sqrt {\frac{k}{k-1}}$. so $a_n$ is convergent  Case 2: if $a_{n+1} - a_n \geq 0,$ i get  $a_k \leq \sqrt {\frac{k}{k-1}}$  Here sequence is increasing and bounded above.  SO given sequence is convergent. Let the convergence limit be l, then $l=1/k (l+ k/l)$ gives given limit.  can you pls tell me is this correct approach?

Let $$ a_{n+1} =  \frac{1}{k} \left(a_{n} + \frac{k}{a_n}\right) ; k>1, a_1>0 $$ The problem is to show that it converges.  Attempt: The sequence is not monotone but it has a lower bound. It seems that odd terms subsequence and even term subsequence are monotonic sequences (I wrote some basic code to make this observation) though I am not able to prove it analytically. I also know that if odd subsequence and even subsequence converge to same limit then the sequence also converges. So, that tells me that I am on the right track.  Please provide any hints.


Where does Scripting ends and Programming begins? ActionScript 3 and JavaScript/JScript are so different...

What makes a language a scripting language? I've heard some people say "when it gets interpreted instead of compiled". That would make PHP (for example) a scripting language. Is that the only criterion? Or are there other criteria? See also:


I am having 4 models in Django: Products, Orders,lines_Orders, and Invoice. Based on these models, I would like to create a form that will generate the invoice given an order number. But I don't know how the views could be and how to combine these models into one form.  class Product(models.Model):     # productId=models.IntegerField(auto_created=True)     customerId=models.ForeignKey(Customers, on_delete=models.CASCADE)     productNumber=models.CharField(max_length=15, unique=True)     productDescription=models.CharField(max_length=25)     unitPrice = models.FloatField()     storageQuantity=models.FloatField()  class Orders(models.Model):     orderID=models.AutoField(primary_key=True)     customerID = models.ForeignKey(Customers, on_delete=models.CASCADE)     oderDate = models.DateTimeField()  class Order_lines(models.Model):     oderID = models.ForeignKey(Orders, on_delete=models.CASCADE)     productNumber=models.ForeignKey(Product, on_delete=models.CASCADE)     quantity = models.FloatField(default=0.00)  class Invoice(models.Model):     dateInvoice=models.DateField()     receiveDate=models.DateField()     OrderNumber=models.ForeignKey(Orders, on_delete=models.CASCADE)   Please assist

I'm building a support ticket tracking app and have a few models I'd like to create from one page. Tickets belong to a Customer via a ForeignKey. Notes belong to Tickets via a ForeignKey as well. I'd like to have the option of selecting a Customer (that's a whole separate project) OR creating a new Customer, then creating a Ticket and finally creating a Note assigned to the new ticket.  Since I'm fairly new to Django, I tend to work iteratively, trying out new features each time. I've played with ModelForms but I want to hide some of the fields and do some complex validation. It seems like the level of control I'm looking for either requires formsets or doing everything by hand, complete with a tedious, hand-coded template page, which I'm trying to avoid.  Is there some lovely feature I'm missing? Does someone have a good reference or example for using formsets? I spent a whole weekend on the API docs for them and I'm still clueless. Is it a design issue if I break down and hand-code everything?


I'm developing an Android/iPhone application. My translator for English localization uses a lot of capitalization. For example, in the app menu, it suggests:  |Export Data to Folder| |Prevent Screen Lock  |   I would simply use  |Export data to folder| |Prevent screen lock  |   What is the best choice?

I am wondering if we should use  or  for buttons and headings in websites and web/mobile apps? Title Case: Manage my Account Delete my Account  Sentence case: Manage my account Delete my account  In  I found the recommendation 'choose your style and be consistent'. This is it? Aren't there any other (additional) recommendations or sources. Like for specific use cases or apps where the one style would be preferred over the other? Edit: The question refers primarily to English, but differences in other languages are also good to know.


I have a path for example C:/desktop and i wanna know if in this path are any folders named like folder A, folder B... i dont care whats in them i just need to know if they exist. ive seen the similar questions being asked but they were about splitting the path name, but the only path name i have is the most basic one, in those other question the path name was like, c:/desktop/folderA/folderB i wanna just know if C:/desktop/folderA exists or not and do it with a bunch of other folder names

My path is \\server\folderName1\another name\something\another folder\  How do I extract each folder name into a string if I don't know how many folders there are in the path and I don't know the folder names?  Many thanks


When I enter the command:  sudo apt-get install libmysqld-dev  I get this message:  Reading package lists...  Done Building dependency tree Reading state information...  Done Some packages could not be installed.  This may mean that you have requested an impossible situation or if you are using the  unstable distribution that some required packages have not yet been created or been moved out of Incoming.  The following information may help to resolve the situation:  The following packages have unmet dependencies: libmysqld-dev : Depends: libmysqlclient-dev (>= 5.5.32-0ubuntu0.12.04.1)  E: Unable to correct problems, you have held broken packages.   How do I solve this problem?

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


I want to install xcode on vmware image mac os x lion 10.7 .. I went to app store but it won't let me download because it's the latest version which not compatible with lion 10.7 .. I don't have an developer account ..  So, is there any way to install an old xcode ?

I upgraded to Xcode 8 and now I really regret it. I'm trying to download Xcode 7.3.1 here:    It is a 4.8 GB file.  After three attempts - the download appears to finish around the 1-2 GB mark - and then I can't open or resume the download:    How do I download this without the download being disrupted? Is there another place to download older version of Xcode?


I want to write HTML codes of two pages side by side in LaTeX like as follows:  <html>   <html> <head>   <head> </head>  </head> <body>   <body>  ...      ... </body>  </body> </html>  </html>   I know how to include HTML code in LaTeX but I have no clue how will I achieve it. So if anyone please help me regarding this I will be grateful. Thank you.  EDIT: I have tried it with the help of table as shown below, but it is giving errors.  \begin{table}[htb] \parbox{.45\linewidth}{  \centering  \begin{tabular}{c}   \begin{lstlisting}[language=html]  <html>  <head>  </head>  <body>   ...  </body> </html>  \end{lstlisting} \end{tabular}    } \hfill \parbox{.45\linewidth}{ \centering \begin{tabular}{c}  \begin{lstlisting}[language=html] <html> <head> </head> <body> ... </body> </html> \end{lstlisting} \end{tabular}    } \end{table}

I have two XML outputs from a program that I would like to include in a LaTeX document. I would like them to appear side-by-side each in its own box. So that a reader can compare the two outputs while reading the document. Can't seem to find a way to do this, without making images for each output and adding both as images/graphics. Could there be a better option?


I've got a bucket of water in which a heating coil made of copper is submerged with a temperature Tc and because of a heating liquid inside the coil, the copper stays at that temperature Tc. How much water (Tw = 25°C) can be evaporated per hour per surface area of copper?  Is there a formula to insert different temperatures and area rates of the heater to find the evaporation rate if the water is heated?   For simplicity: Airtemperature equals room temperature and the air pressure is 1 atm. The water surface area = 0,06m².

So I'm guessing it has to do with temperature of surface water, temperature of surrounding, surface area, humidity,... I always wondered if there was an equation to describe evaporation, never learned one in high school.


I want to use justifying command from this package but it could not be installed. Everytime I use \usepackage{ragged2e} I get this error:     File `ragged2e.sty' not found. \usepackage.   How could I install it or align the text another way?  It's beamer presentation

I used these packages:  \documentclass{beamer} \usepackage{mathtext} \usepackage{amssymb,amsmath} \usepackage[T1,T2A]{fontenc} \usepackage{sidecap} \usepackage[cp1251]{inputenc} \usepackage[bulgarian,english]{babel} \usepackage{hyperref} \usepackage[font=small,labelfont=bf]{caption} \usepackage{mdframed} \usepackage{color} \setbeamerfont{caption}{size=\tiny} \usepackage{xcolor} \usepackage{framed} \usepackage{systeme} \usepackage{graphicx} %\usepackage{wrapfig} \usepackage{float} \usepackage{physics} \usepackage{appendix} \usepackage{mathtools} \usepackage{beamerthemesplit} \captionsetup[figure]{labelformat=empty}   Every time I run the Tex editor I get a message The requested package is unknown then details name="ragged2e" and after this window there is a window for intalling ragged2e.sty. I click install and this occurs again and again. How I get rid of it? Thanks!


I am stuck on whether to use 'frame' or 'frames' of reference. Example sentences: This study seeks to add value to the theologies of the Hebrew Scriptures in both its Hebrew and Greek frame/frames of reference. and ... exploring beliefs and ideologies when reference is made to the Divine in both its Hebrew and Greek conceptual frame/frames of reference.

In a scientific paper I submitted, a reviewer suggested that I change the sentence     The operation just substitutes "(m, l)" with "m" on both the sender and the receiver side.   to     The operation just substitutes "(m, l)" with "m" on both the sender and the receiver sides.   by changing the last word from singular to plural.  There is only one sender side and only one receiver side, so my intuition tells me to use the former version, since   one would clearly write "...both the sender side and the receiver side" and I'd also write "The green and the blue box are standing on the table" (instead of "boxes").   However, I failed to find a grammatical rule for this, and English is not my main language. Is the reviewer right? And why?


I am a U.S. citizen traveling to Hong Kong for one week, My friend is a Chinese citizen and lives in Beijing. Is she allowed to freely travel to Hong Kong for five days? If not, what does she need to do in order to visit Hong Kong?

I and my girlfriend (a mainland Chinese citizen) are planning to visit Hong Kong from Malaysia (where we both have MSC working visas), and will also be returning to Malaysia. I have been surprised at all of the restrictions placed on mainland Chinese citizens; it seems that there is a lot of bureaucracy required before a mainland Chinese citizen can enter Hong Kong. I am trying to find out if there is some way that she can enter Hong Kong for 3-4 days with me (a British citizen) without having to go through the hassle of trying to get a visa. After a little while reading, I found :  Chinese passport holders who are in transit through Hong Kong from another country, region or territory may be granted a stay of 7 days without the prior need to obtain an entry permit, with the condition of possession of valid Chinese passport and confirmed onward air tickets for the overseas journey. If Chinese passport holders will go for mainland China or Macau via Hong Kong, onward air tickets are not compulsory.  It seems that this could be used to allow her visaless entry to Hong Kong, as we only plan to go for 3-4 days. So here are my questions based on that 7-day exemption clause:  Does the "onward air tickets" stipulation apply when flying from and returning to Malaysia, or would it only apply if we were flying on to another country entirely? If "onwards air tickets" may not apply in that situation, does flying back to Malaysia via Macao or mainland China permit her to enter without a visa? Does simply entering mainland China without flying (for example, using the Hong Kong–Shenzhen Western Corridor to drive there) also entitle her to this entry?  I have contacted the Chinese embassy in Malaysia about these questions, but they advised me that they do not know the answer to them (which I find a little surprising).


I have a zip file ( which is named ccnx-0.7.0.tar.gzip) and a related sha file( which is named ccnx-0.7.0.tar.gz.SHA1). i downloaded them from ""  how can i extract this file in ubuntu?  thanks in advanced

I received a huge .tar.gz file from a client that contains about 800 mb of image files (when uncompressed.) Our hosting company's ftp is seriously slow, so extracting all the files locally and sending them up via ftp isn't practical. I was able to ftp the .tar.gz file to our hosting site, but when I ssh into my directory and try using unzip, it gives me this error:  [esthers@clients locations]$ unzip community_images.tar.gz Archive:  community_images.tar.gz   End-of-central-directory signature not found.  Either this file is not a zipfile, or it constitutes one disk of a multi-part archive.  In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. note:  community_images.tar.gz may be a plain executable, not an archive unzip:  cannot find zipfile directory in one of community_images.tar.gz or community_images.tar.gz.zip, and cannot find community_images.tar.gz.ZIP, period.   What command do I need to use to extract all the files in a .tar.gz file?


I'm making some dishes for an event. Due to constraints in my schedule I'm thinking of making them ahead of time.   The first is a Buffalo Chicken Dip, it is mainly a bought cooked rotisserie chicken and cream cheese. The second is Kimchi-ppang which contains pork, kimchi and dough.  I'd like to assemble it to the point of a final bake (the dip is mixed, the pork is cooked and the dough unbaked) for both and then store it in the fridge for about 3 days. Will this be safe to do? I may be able to make it fresh on the day, but I'd have to rush a lot.

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


It would often be convenient to see how the site is behaving for a user at any lower reputation (and without moderator privileges) without having to make a bunch of sockpuppets (which carry risks of accidentally doing things you shouldn't).  (Other privileges like gold tag privileges should also be able to be turned off.)  Presumably the only additional privilege over a user with the nominated reputation would have would be the ability to go back to normal.  I'd envisage something where you choose the reputation and click to remove any other privileges that could change, and that it would be replaced with a button that would undo that change.   Things like votes on posts would still count as votes by that user when they went back to being themselves, posts would still be posts, comments still comments and so on.

To be honest I find it hard to keep up with all the changes, and very frequently I have to go look at the privileges list to see whether a user (that I'm looking at, so I have his reputation value) has a certain privilege or not.  However, I still don't know what that user will actually see or how the site actually behaves for that user.  There's quite a number of posts here on meta about "where did this go" and "why can't I" and I can't really tell either way how a site behaves for a user with a reputation level of 2500.  So, I propose the following functionality:   For all users, be able to view the site as though you had less reputation than you actually have Bonus-feature: For all users, be able to use the site at that reputation level, unless some features of low-level users conflict with your actual functionality For mods, be able to view the site as a specific users (be able to see all he sees, exactly the way he sees it), but of course not pose as that user (ie. things I do would still be me)   The UI could be merged into the mod menu and the privileges menu:    (Note, I chose a user randomly, Olivier Pons is in no way related to this question or flags, or whatever that I know of.)


I'm trying to separate (with a vertical spacing) the word "Me" from "Prof: My professor", basically putting the latter on a new line. This works fine, but I've got a warning:      Package hyperref Warning: Token not allowed in a PDF string (Unicode):   (hyperref) removing `\vskip' on input line 31.   Should I care? How can I remove the warning, mantaining the vertical spacing?  % titlepage settings \title[My title]{My long title} \author[Me]{Me \vskip25pt \footnotesize Prof: My professor} \institute{University of Foo\\My title} \date{18 luglio 2013}

Possible Duplicate:          The following code:  \subsection{The classes $\mathcal{L}(\gamma)$}   generates the errors:  Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `\gamma' on input line 1938.   Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref)                removing `math shift' on input line 1938.   What do I have to do to keep \gamma in the subsection, so that it is also listed in the table of contents?


Rakesh Godhala said:      You can select the partition as ntfs, resize the partition to 470GB.   So I click the /dev/sdb4, "change..." button, comes up "edit partition" dialog.  But after selecting "use as" to "NTFS" , there is no option for me to resize the C partition to 470GB.  So, what should I do to create a 10GB free space disk?  Could you please tell me which buttons I should hit to get over this problem?  All buttons are showed in the pictures I have uploaded at:  .  OK, I chose "something else" , because I cannot choose "replace windows 8 with Ubuntu".  I click "continue", so I faced the dialog (as the two pictures in previous question show).  I do not know which buttons should I hit.  This is the picture:

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


I have the following test code for a class:  /**  * Test Class  */ public class GeneratorTestTest {     private Generator generator;     private static BufferedImage testImage;     private BufferedImage rotatedImageTestResult;      @Before     public void setUp() throws Exception {         generator = new Generator(null, 0);          File inputFile = new File("src/test/resource/picture.jpg");          testImage = ImageIO.read(inputFile);     }      /**      * Test method      */     @Test     public void testRotateImageRotateImage() {         //Line 39         rotatedImageTestResult = generator.rotateImage(testImage, 0);         assertTrue(imageEquals(testImage, rotatedImageTestResult));     }   I am get a NullPointerException on the Test method when I try to run it. How can I pass the Junit test?  Here is a full log of the Exception:     line 39 is "rotatedImageTestResult = generator.rotateImage(testImage, 0);

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


I'm completely new here, and trying LaTeX to write my PhD dissertation (in the humanities, mind you!). I have to write in several languages, and especially French. It is therefore much easier to type the French characters directly on the keyboard. I have a mac with OS 10.8.5. I used the tip given here on the Tex stack exchange (\usepackage[applemac]{inputenc}) and it worked really fine. But, now it suddenly does not work any more without me touching anything when I run it in PDF. I set the following in my configuration:   \usepackage[applemac]{inputenc}               \usepackage{etoolbox} \usepackage{fontspec}  \usepackage{polyglossia}          \setdefaultlanguage[british,ordinalmonthday=true]{english}  \setotherlanguage[spelling=old,latesthyphen=true,babelshorthands=true]{german}  \setotherlanguage{french}  \setotherlanguage{italian}  \usepackage{xspace}  \usepackage[style=british,autostyle=true,strict=true,english=british,autopunct=true,parthreshold=true,german=guillemets]{csquotes} \setquotestyle{british} \SetBlockThreshold{3}

Until now, I have been compiling my LaTeX documents with pdfLaTeX. My standard document preamble includes the "usual suspects" for non-English speakers (, , ) and a bunch of other packages. Assuming I were to convert to XeLaTeX, what modifications of my preamble are advisable? I'm aware that the expansion=true option of the  package is not (yet) available for XeLaTeX, and that  is sort of a default package for OpenType fonts. What other packages (and package options) should be removed and, vice versa, incorporated when switching from pdfLaTeX to XeLaTeX?


My university need toc to look like the image uploaded how to do it in latex especially how to put starting and end page number of chapter against the chapter in toc

Can you give me some advice for how to obtain the following format of the TOC?        Chapter’s heading 1-7   Chapter’s heading 9-10   Chapter’s heading 11-15


I have a sony dslr camera thats about 10 years old, it doesn't take as good quality photos as newer cameras. I want to know if i should buy a lens or a new camera. What affects the quality more?

I read somewhere on this site itself that you should spend more on your lenses and less on your camera bodies.  Is it a myth or a fact that mostly it is the lenses which make your photographs not the camera bodies? If it is true, then on what basis?


While working on other networking issues, I discovered my Mac, running El Capitan, was trying to make a TCP connection to 10.0.1.2:7000. What is trying to make that connection, why, and how do I turn it off?  Note: 10.0.1.2 is a "private" IPv4 address and should not be used by any site on the internet. None of our local networks use anything on 10.x.x.x, they are in other private subnet ranges.   Also note: the Mac is trying to initiate this outgoing connection. There is no inbound traffic. netstat shows nothing listening on 10.0.1.2:7000 (and indeed the traffic is being forwarded to a router, which is how I discovered it) and I have not been able to get lsof to show me any information about it.   Update/Answer  Not really a duplicate of the linked question (that question was about LittleSnitch and why it was complaining, and problems with its filtering rules regarding local networks), but related to the same issue. I would prefer to post the following as an answer but cannot while this is closed as duplicate.  Using tcpdump -k NP (from ) as suggested by klanomath confirmed that this is coming from AirPlayXPCHelper.  provides a list of AirPlay related ports. In particular, port 7000 is used for AirPlay Video, 5000 for Audio, and 5001 for Audio-related Events.

After upgrading to El Capitan, I've started noticing annoying connections from the AirPlayXPCHelper to 192.168.1.0/24 subnet (my home network isn't in 192.168.1.0/24 subnet, it's in 172.16.0.0/12 subnet).  Questions are:   Why AirPlayXPCHelper goes out to this network on port 5000 and 7000? Is there a way to limit it's desire to go there?   Thank you.


In an article, several sections have an enumerate environment. What is the easiest way to let the counter continue across all the different environments?  It is obviously possible to use   \begin{enumerate}    \setcounter{enumi}{5}    % last item of previous enumerate   at the start of every subsequent environment, but then one has to change all these numbers in the subsequent environments whenever an item is added in some section. Is there a better, automatic and simple way to do this?

I'd like to be able to resume an enumerated list, continuing the old numbering, after some intervening text which should not be formatted like a list item.  Is there a nice way to do this?    In particular, I don't want to start a second list with a hard-coded initial counter value, because that will break if I change the number of items in the first list.


Suppose $U$ and $W$ are $k$-vector spaces with bases $\{u_{i}\}_{i=1}^{n}$ and $\{w_{j}\}_{j=1}^{m}$.  How to prove that $\{u_{i} \otimes w_{j}  \}_{i , j}$ forms a basis for $U \otimes W$ ?

Suppose $V_1$ and $V_2$ are $k$-vector spaces with bases $(e_i)_{i \in I}$ and $(f_j)_{j \in J}$, respectively. I've seen the claim that the collection of elements of the form $e_i \otimes f_j$ (with $\left(i,j\right) \in I \times J$) forms a basis for $V_1 \otimes V_2$. But I seem to get stuck with the proof.  My question: What's the easiest way to see that the above set is indeed linearly independent?


I have a class file which when i compile shows me Null pointer exception in a particular line all the time. I handled null check as below.  108    doc = Jsoup.parse(html, brandUrl);  109    Element div = doc.getElementById("eventTTL"); 110    String attr = div.attr("eventTTL"); 111    Date closingDate = new Date(Long.parseLong(attr)); 112    Elements mainForm = doc.select("div#main-form"); 113    Elements mainDivs = mainForm.select("DIV");   java.lang.NullPointerException     at com.textT.at.Chickyur.main(Chickyur.java:110)  if(div != null) String attr = div.attr("eventTTL");    Also tried   if(div.attr("eventTTL") != null)  String attr = div.attr("eventTTL");    Still i keep getting the exceptions. What is wrong? any thoughts?


Let $F_n$ be the Fibonacci sequence with $F_0=0,F_1=1,F_n=F_{n-1}+F_{n-2}, n\geq2\\ Use\;the\;mathematical\; Induction\; show\;that\;\sum_{i=0}^{n}(-1)^iF_i= (-1)^n F_{n-1}-1, For\;every\;positive\;integers$

Let $f_n$ be the Fibonacci numbers, defined by $f_0 = 0$ and $f_1 = 1$ and $f_n = f_{n-1} + f_{n-2}$ for all $n \ge 2$.  Show that $f_0 - f_1 + f_2 - \cdots - f_{2n-1} + f_{2n} = f_{2n-1} - 1$ when $n$ is a positive integer.  Just some homework help. Need to prove. Thank you in advance.


I am trying to create a debug version of the eglibc to allow step by step debugging in a program that crashes in the eglibc.  I want the created ".so" file to be as close as possible to the eglibc that comes with my version of Ubuntu (14.04 x64) (with the same options, patches, etc.) with the exception of the debugging facilities.  So far I am having a hard time finding an exact procedure to do that. It is becoming frustrating and time-consuming, so would anybody be kind enough to provide that procedure to me, please?

How do I get the source code for eglibc in a format that will allow stepping through the source with gdb?    I have tried using apt-get source libc6-dev and that works for getting the source code, but I think that since the pre-processor directives were not applied that the line numbers that gdb has does not match with the source I downloaded. This makes it less useful when trying to step through the source and look at how functions in libc are working.


I am searching for a Apple Script command which is similar to Visual Basic Script Sendkeys command. I want to let a programm type something at itself.

how can I use applescript to type in a specified area on the screen? I've tried the 'keystroke' command, but it doesn't seem to work. also, how can I use applescript to display an image? thanks a lot if you answer. here's the code I have so far:  set theText to text returned of (display dialog "Put what you want to autotype here." default answer "" buttons {"OK", "cancel"} default button 1) display dialog "select where you want me to type " & theText & " Your text will be typed in the area selected. you have 10 seconds to select once you click 'OK'" buttons {"OK"} delay 10 say "typing" --command for typing here end end end


Does this interact like Lucky, wherein both Portent rolls cancel each other out and the original, untampered roll is used, or would the diviner that replaces the roll later, override the other that tried to replace the roll earlier?

I have a player with a Divination School Wizard. He has used his Portent ability upon the Big Bad several times to great effect. My Big Bad is a smart person however, and is seeking to hire a rival diviner to account for this monkey wrench in his plans.  I'm not sure of the proper way to adjudicate dueling Portents. Does the first Diviner state their intent, followed by the second diviner, with the second diviner trumping the first? (my first instinct). Should their be a skill challenge of some sort? Higher level diviner? The first diviner cannot expend his second Portent die to trump the trumper, since the ability specifies only one usage per turn.  The difficulty here is that it's a very meta ability as written. There's no action economy other than once per turn, no range, no requirement to see or even be aware of the target or its intent. As far as I can tell, a diviner can even use the ability when surprised.  I don't think there's a RAW answer to this, but something supported by or induced from RAW would be be appreciated.


In an online English test I found that "bad news seem" is wrong, the correct would be "bad news seems" as in the sentence:     Bad news seems to be more attractive than good news.    I'm considering news is a plural, but I could be wrong. Someone said about uncountable nouns. Other said about news being singular. Could anyone explain to me why the use of the "s" and also if news is both singular what and uncountable and how can I tell if any other word follows the same conjugation?

Sentence that needs correction:      Sensationalism in television shows masquerading as "news" programs are making it difficult for serious journalism to compete for ratings.   The correction should be sensationalism...is. I don't see how the use of are is incorrect. What's wrong with the sentence above?


Across SE chat, oneboxes appear to be broken.   And feed items are being posted differently:  Can we please have our oneboxes back to normal?

I opened the Android app and was met by the "Loading stack exchange sites" splash screen. The spinner froze, then a black screen appeared, then the entire app froze. I tried a few more times and was met with the same results.  The full site also works fine on my phone, so it appears to just be the app.   On the iPhone app, I keep getting a "Request timed out. Tap to retry." message when loading the question body. The title gets loaded, as is the HNQ list and my own notifications, but no posts. The mobile site is working.    Requests to the API never load:


I have some 401k money in a former employer plan.  It is doing really well, I like their funds and their Financial Engines program.  I hesitate to touch it.  My new employer has a good plan.  The way I see it:   rollover into new employer plan so all my money is compounding.  it will cost about $50 to execute the transfer.  But I lose those great funds. Keep it in former employer plan since it is setup to balance my funds for my target retirement age.  Probably take a hit on administrative fees, but the profits are worth it.   Any thoughts?

Are there any valid reasons to not rollover a former 401(k) when changing jobs?  I have several little ones that I never quite got around to rolling together - with an upcoming job change, should they all be combined into my new employer's retirement plan?  If not, what else might be considered?


Is it true that every infinite finitely generated group contains an element of infinite period?  I think it is true, but I can't prove it.

I am in need of examples of infinite groups such that all their respective elements are of finite order.