I am working with Selenium to input URLs from a list into a form. The form can only accept 10 URLs at a time and my list may contain over 300 URLs. I want to take x items from the list, input into form, and once completed do that again until all elements of the list have been used.  Should I be placing the items into another list, popping them off the old list, input this new list, and then repeat? Suggestions appreciated!

I have a Python script which takes as input a list of integers, which I need to work with four integers at a time.  Unfortunately, I don't have control of the input, or I'd have it passed in as a list of four-element tuples.  Currently, I'm iterating over it this way: for i in range(0, len(ints), 4):     # dummy op for example code     foo += ints[i] * ints[i + 1] + ints[i + 2] * ints[i + 3]  It looks a lot like "C-think", though, which makes me suspect there's a more pythonic way of dealing with this situation.  The list is discarded after iterating, so it needn't be preserved.  Perhaps something like this would be better? while ints:     foo += ints[0] * ints[1] + ints[2] * ints[3]     ints[0:4] = []  Still doesn't quite "feel" right, though.  :-/ Related question:


I made this mesh extruding a svg curve from Ilustrator. The idea, as you can see on the modifiers panel is to bend it. I understand that for this I need to divide the face with edges so that I can bend the face. I did it but still get wrinkles so I took them of and tried to clean every vertice on the mesh.    What I'm asking is if there's a way to fill the face with quads (and if thats the solution) so that I can bend the mesh and correct all the wrinkles in the shading.   Here is the .  Thanks.

The triangulation process of Text to Mesh or Curve to Mesh generates some nasty topology.   I get why, but maybe it could be done a bit nicer? Since text is flat, have ngons instead of hundreds of triangles you'll need to modify anyway?  Another issue is when you then want to use the text as a Volume for particles, which for some reason behave weird when you have unusual topology even though they should be using the volume, not vertex or face positions.


Hello I would like to remove the wall from our family room to kitchen. The wall that I circled in yellow. How can I tell from this blueprint if it is a load bearing wall?

Other than looking up blue prints, which many homeowners may not have, are there ways to determine if a wall is load bearing?  Methods I can think of might include:   Going up in the attic to check if ceiling trusses run perpendicular to the wall If the wall is an exterior wall   Any others?


I have trouble removing the administrator account from my notebook. It was created when I wanted to access some read-only files and I wrote "net user administrator active" in cmd. (didnt work out tho) I tried removing it but there is not an option to do so. The delete account button is not available in user settings and I can not remove it from the settings menu. It seems that its not a real account but when I turn the notebook on I have the option to sign into that account. Any ideas? thx

I accidentally disabled my admin account.  After I login to another account I found I can not get admin rights, because all admin accounts on my computer are disabled.  I clicked on 'run as administrator' but only see a smart card choice (all the admin accounts are disabled so no choice provided)    I don't want to re-install my OS, help!    Details:  I have account A on my computer.    I got a new computer so I want to give the old one to my mother.    Creating a new user account B for her and disable account A.    Logout and restart.    Successfully login B, now I found I could not get admin rights because no account choice is provided.    More informations about my machine:  OS is Windows 10 and my admin account is a Microsoft Account.  I have an arch-linux installed on my computer and dual-boot it using GRUB, so maybe I can not use safe mode.


I need to get rid of that.10^-3 and instead show the actual number, i.e. 0.003:   How can I do that? I also would like to use the style of the markers that you see in this picture:    CODE:  \documentclass{book} \usepackage{multirow} \usepackage{color} \usepackage{layout} \usepackage{subcaption} \usepackage{caption} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.16} %\pgfplotsset{} \usetikzlibrary{decorations.pathreplacing}  \begin{document}    \begin{figure}      \begin{subfigure}[b]{0.5\textwidth}          \begin{tikzpicture}         \begin{axis}[          width=\linewidth,         line width=0.5,         grid=major, % Display a grid         tick label style={font={\tiny }},         legend style={nodes={scale=0.6, transform shape}},         label style={font={\tiny }},         legend image post style={},         grid style={white},         xlabel={$\gamma{1}$},         ylabel={RMSE},         y tick label style={             /pgf/number format/.cd,             fixed,             fixed zerofill,             precision=2         },         legend style={at={(1,0.75)}, anchor=north east,  draw=none, fill=none},         ]          \addplot[mark=oplus*,blue] coordinates         {(0.00,1.1257) (0.001, 0.9556) (0.002,0.9449) (0.003,0.9415) (0.004,0.9399)(0.005, 0.9398) (0.006,0.9396) (0.007,0.9397) (0.008,0.9398)           };         \addlegendentry{Error }          %       \addplot[mark=*,black] coordinates         %       {     (2, 0.9174) (4,0.8977) (6,0.8845) (8,0.8803) (10,0.8683)(12, 0.8606) (14, 0.8524) (16,0.8460) (18,0.8391) (20,0.8326) (22,0.8262) (24,0.8199) (26,0.8141)         %           (28,0.8093)(30,0.8018)(32,0.7987)(34,0.7924)(36,0.7874)(38,0.7819) (40,0.7775)(42,0.7724)(44,0.7674)(46,0.7630) (48,0.7584) (50,0.7543)          %       };         %       \addlegendentry{$\gamma{1}$}         \end{axis}          \end{tikzpicture}          \subcaption{blabla}         \label{sub111}     \end{subfigure}     \begin{subfigure}[b]{0.5\textwidth}         \begin{tikzpicture}         \begin{axis}[          width=\linewidth,         line width=0.5,         grid=major, % Display a grid         tick label style={font={\tiny}},         legend style={nodes={scale=0.6, transform shape}},         label style={font={\tiny }},         legend image post style={},         grid style={white},         xlabel={ $\lambda_{1}$},         ylabel={RMSE},         y tick label style={             /pgf/number format/.cd,             fixed,             fixed zerofill,             precision=2         },         legend style={at={(0.5,0.75)}, anchor=south east,  draw=none, fill=none},         ]         \addplot[mark=oplus*,blue] coordinates         {(0.00,0.9397) (0.001, 0.9394) (0.002,0.9399) (0.003,0.9402) (0.004,0.9399)(0.005, 0.9400) (0.006,0.9406) (0.007,0.9405) (0.008,0.9408)           };         \addlegendentry{Error}          %       \addplot[mark=*,black] coordinates         %       {     (2, 0.8780) (4,0.8569) (6,0.8428) (8,0.8326) (10,0.8249)(12, 0.8175) (14, 0.8114) (16,0.8063) (18,0.8010) (20,0.7950) (22,0.7909) (24,0.7860) (26,0.7821)         %           (28,0.7780)(30,0.7737)(32,0.7700)(34,0.7655)(36,0.7615)(38,0.7587) (40,0.7548)(42,0.7510)(44,0.7481)(46,0.7442) (48,0.7405) (50,0.7372)         %                    %       };         %       \addlegendentry{}          \end{axis}          \end{tikzpicture}           \subcaption{Blabla}       \end{subfigure}      \caption{Performance}     \label{tablex1} \end{figure}  \end{document}

A chart with data in the range of 200,000 and small difference between max and min values, will be assigned a 10^5 multiplier to the entire axis. This results in the ticks becoming meaningless, since all become 2.   Example:-  \begin{tikzpicture} \begin{axis}   \addplot coordinates {   (100,200001)   (200,200003)   (300,200005)   };     \end{axis} \end{tikzpicture}   When this is plotted the y-axis has 5 ticks, all of which are 2. The y-axis has a multiplier of 10^5. This has effectively removed all information from the graph.  I may use the below to set the explicit value of the tick values but this does not implement change in the display "style" of the axis ticks.  ytick = {200000, 200005, 200010}   I have also tried increasing the precision of the tick label to 5. However this only results in the graph showing labels such as 2.00000, 2.00005, 2.00010 with a 10^5 axis multiplier.  yticklabel style={precision = 5,}   My question is "How do I remove/change this 10^5 multiplier, such that the y-axis ticks are displayed in the form 200000, 200005, 200010.


I tried    and it doesn't seem to work  pressing + simulates a right click

Does anyone know a way to configure Windows 7 or use third party software to do this? I would like to click my middle mouse button and have it tell Windows to left click and hold until I click the middle mouse button again. A keyboard key would be fine as well.   Some games and apps have me holding down the left mouse button for a long time and I would like to reduce the stress on my mouse hand. Also, I would like to do a similar thing but have it repeatedly click the left mouse button automatically if possible.  If none of that is possible, how about temporalily setting a keyboard key to achieve a left mouse button emulation?


I edited my empty image in Clip Studio, saved it, and when I go back to Blender, it doesn't refresh. Is there a way to refresh it or do I have to save it as a different file, and then drag it into blender, and then move and scale it to where I want it to be? Thanks.

I am working on a scene, and using CrazyBump to export Displacement and Normal maps; I want to tweak the textures, but currently I need to restart Blender before they update.  Is it possible to refresh them, without restarting Blender?


Recently on Stack Overflow I got privilege to flag a post. So when I try to flag a post as duplicate. The diaglog box is not properly loading.         However I am easily able to use other flag option like "other","spam" or "offensive".   "other"        "spam"        "offensive"        I am using Google Chrome Version 28.0.1500.71 and Win XP Operating System. I have tried in firefox as well but it is showing me same problem.

This is maybe a duplicate like , but the error still appears.    When I try to click "mark as duplicate" a HTTP 404 error occur.  I'm using Firefox 16.0.2 with Firebug on Mac OS X 10.5.8


I'm trying to mix to shaders with the use of an alpha texture. I UV unwrapped the cube and adjusted the mapping but it still doesn't work. On the top of the cube there should be a P with the Glossy Shader.

After converting to nodes in order to render using Cycles I've no idea where to enable the z-transparency. I guess the image textures alpha channel needs to be pluged somewhere but I've no idea which node would be suitable.   The question is how could I correctly setup the nodes to have the same effect as when using z-transparency in BI?      The materials original settings for BI are:    Which renders like:    I had no luck with DarenWs suggestion:


i have a problem with recurrence relations problem.. I need to find a recurrence relation for a number of strings with length $n$ ranging from symbols $0,1$ and $2$ that do not contain two consecutive $0\,$s. Thanks in advance!

Note: Problem from "Kenneth Rosen's DM and it's applications" and solution from "Students solution guide for use with ... applications"  Let P(n) be the number of strings not containg two containing two consecutive zeros or two consecutive ones.  I got the answer  P(n)=P(n-1)+2P(n-2)+2P(n-3)+...+2P(0) +2  but then the book says the sequence also satisfies the recurrence relation  P(n)=2P(n-1)+P(n-2). I am not able to understand this part.


I downloaded this thesis template:    PROBLEM: Citations not working and bibliography not showing:     This is BibTeX, Version 0.99d (TeX Live 2016) The top-level auxiliary   file: main.aux I found no \citation commands---while reading file   main.aux I found no \bibdata command---while reading file main.aux I   found no \bibstyle command---while reading file main.aux (There were 3   error messages)   I am using TexMaker.   I tried several solutions online but nothing worked.

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


Let's just imagine a long series circuit with three bulbs in it and a switch. Which bulb will light up first when the switch is closed? One nearer to the positive terminal or the one nearer to the negative terminal? Is the flow of electrons or flow of current related to it?  Thanks in advance

For a few days, I was thinking of this question.  Lets assume we have a simple circuit that is 100 meters long. And lets say that we have bulbs A, B and C connected to the circuit's 30th, 60th and 90th meter relatively (from the + side). When we switch the system on, would all the bulbs light up at the same time? Or would A light up first and C last (or the opposite)?


Definition Let $\mathcal{C}$ be any category. A graded object in $\mathcal{C}$ is a sequence $(C_n)_{n\in\mathbb{Z}}$ of objects of $\mathcal{C}$ or, equivalently, a functor $C:\mathbb{Z}\to\mathcal{C}$, where the group of integers is considered as a discrete category. A graded morphism $f:A\to B$ of degree $k$ from a graded object $A$ to a graded object $B$ is a collection $(f_n:A_n\to B_{n+k})_{n\in\mathbb{Z}}$ of morphisms of $\mathcal{C}$. Thai is to say, $f$ is a natural transformation from $A$ to $B\circ s^k$, where $s:\mathbb{Z}\to\mathbb{Z}$ sends $n$ to $n+1$. Of course, a morphism $f:A\to B$ of degree $k$ composes with a morphism $g:B\to C$ of degree $l$ to a morphism $g\circ f:A\to C$ of degree $k+l$. Graded objects in $\mathcal{C}$ and morphisms between them form a category we will denote by $\operatorname{Gr}(\mathcal{C})$.  Definition Now let $\mathcal{C}$ be a pointed category and let $0$ be the constant graded object $(0)_{n\in\mathbb{Z}}$. We shall also write $0$ for any morphism (of whichever degree) that factors through $0$. A chain complex $(C,d)$ in $\mathcal{C}$ is a graded object $C$, together with a morphism $d:C\to C$ of degree $-1$ (its differential) such that $d\circ d=0$. A chain morphism $f:(C,d)\to (C',d')$ is a morphism $f:C\to C'$ of degree $0$ such that $d'\circ f=f\circ d'$. Chain complexes in $\mathcal{C}$ and their chain morphisms form a category we will denote by $\operatorname{Ch}(\mathcal{C})$.  I want to view chain complexes as functors. The only thing I could say was this. Consider $\mathbb{Z}$ as a poset category, where $m\geq n$ means there exists exactly one morphism from $m$ to $n$. Then consider the functor category $\operatorname{Funct}(\mathbb{Z},\mathcal{C})$. Then the category $\operatorname{Ch}(\mathcal{C})$ is the full subcategory of  $\operatorname{Funct}(\mathbb{Z},\mathcal{C})$ with the property that $d_n\circ d_{n+1}=0$ for each $n$.   First question: is it correct what I said in the last few lines?  Other ideas I had, but I couldn't formalize, were: since differentials $d$ of chain complexes are themselves graded morphisms of degree $-1$, maybe I can define a chain complex as a functor on $\mathbb{Z}$ to the category $\operatorname{Gr}(\mathcal{C})$ of graded objects in $\mathcal{C}$. Here the main problem for me was that, if to an integer $n$ I associate a pair $(C,d)$, then I don't know what to associate to each morphism in $\mathbb{Z}$ coming from the order relation $\geq$. Probably this approach is wrong.  Last approach I am trying to formalize was the one consisting in using the arrow category of $\mathcal{C}$ or of $\operatorname{Gr}(\mathcal{C})$, but again I am stuck and don't know how to proceed. For instance, I consider the category $\operatorname{Arr}(\operatorname{Gr(\mathcal{C})})$. An object here is a graded morphism. Then I take the full subcategory of graded endomorphisms of degree $-1$ with the property that any two of them compose to the zero morphisms. Do you have any suggestion or just comments?

As the title says, is there some sort of category $\mathsf{C}$ which can be thought of as the "walking chain complex", so that the category of chain complexes in some other category $\mathsf{A}$ can be realized as $\mathsf{A}^\mathsf{C}$ (or perhaps some subcategory thereof)?


How come this sentence works: 'Let me know if you’re available.'  But this one doesn’t: 'Let me know if either of you’re available.'  Because the second one doesn't work, there must be some sort of rule about where contractions are valid. What is it?

I often hear people saying that "I am" is the shortest sentence in the English language.  I know that there are also discussions about sentences using the imperative mood such as "Go." that would be shorter, but my question is this:  Why would we (the people saying "I am" is a full sentence) not accept "I'm" as a complete sentence?  Is there some unwritten rule about contractions that says "I'm" wouldn't be correct?


Let $f$ be a differentiable function satisfying the functional time $f(xy)=f(x) +f(y) +\frac{x+y-1}{xy} \forall x,y \gt 0 $ and $f'(1)=2$  My work   Putting $y=1$  $$f(1)=-1$$ $$f'(x)=\lim_{h\to 0}\frac{f(x+h) - f(x)}{h}$$ But I don't know anything about $f(x+h)$  so what to do in this problem ?

What are some examples of continuous (on a certain interval) real or complex functions where $f(ab)=f(a)+f(b)$ (like $\ln x$?)


I am trying to dynamically make a div fill remaining space in the window based on sibling height.   The idea is that if the header div changes height the page-wrapper will dynamically  change its height based on the remaining space. (avoid overflow if the header div changes height)   Header.sass  .header {   display: flex;   flex-direction: column;   width: 100%;   margin-bottom: 2rem; }   index.html

           ...

         div will fill remaining space

       Current solution  i understand i can achieve this using cal() however this will involve changing the hard coded value for $headerHeight if the header height changes  .page-wrapper {    height: calc(100vh - #{$headerHeight});    background-color: red; }

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

...

...

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


2015-12-03 02:02:18,961 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None' 2015-12-03 02:02:19,303 - softwarecenter.ui.gtk3.app - INFO - building local database 2015-12-03 02:02:19,303 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open() Traceback (most recent call last):   File "/usr/bin/software-center", line 130, in <module>     app = SoftwareCenterAppGtk3(options, args)   File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 313, in __init__     self._rebuild_and_reopen_local_db(pathname)   File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 532, in _rebuild_and_reopen_local_db     rebuild_database(pathname, debian_sources, appstream_sources)   File "/usr/share/software-center/softwarecenter/db/update.py", line 1148, in rebuild_database     cache.open()   File "/usr/share/software-center/softwarecenter/db/pkginfo_impl/aptcache.py", line 261, in open     self._cache = apt.Cache(progress)   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 107, in __init__     self.open(progress)   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 155, in open     self._list.read_main_list() SystemError: E:Malformed line 4 in source list /etc/apt/sources.list.d/google-chrome.list (dist parse)   help me

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


We have been fixing some issues according to the Google Search Console reports. However we have come across an issue that we don't know where to look for fixing. As you can see in the image, google crawls pages with a URL in the end that has never been created. The URL is not our domain but it is one of our client's we used to track their web banner with GA. We removed that banner very long time ago along with the google tracking code. (We use WordPress and track banners with a HTML code added in the widgets.)  If you guys have something in mind about the issue, please let me know. I have checked the sitemap and there's also no such URLs.

In Google Search Console/Webmaster Tools, I found 404 error URLs with this pattern: http://example.com/page-name/example.com  This is happening to all pages, posts, and even category type.  For example:   Here is the .htaccess file:    Does anyone know what might be causing this?


currently it seems like if you want to create a link to a specific answer you have to look in to the source to get the name of the anchor for that answer

Is there a permalink I can use for answers/comments?


Let $X$ be a random variable with values in $[0,+\infty)$  Show that $E(X)=\int_{0}^\infty P(X \geq t) dt$   Hint: first show that the expected value of a random variable with values in $\mathbb{N}_{0}$  is given by $E(X)=\sum_{k=1}^\infty P(X \geq k)$.  I already proved the Hint, but I don't understand how to use it to prove the first statement. My approach would be the following:    from the definition we know that $E(X)=\int_{0}^\infty X dP$ now write $\int_{0}^\infty X dP=\int_{\mathbb{N}_{0}} X dP + \int_{\mathbb{R}_{\geq0}\setminus\mathbb{N}_{0}} X dP$    but here I get stuck because, even if we somehow success to use the hint to solve the first integral, i have no idea how to approach the second, but maybe my approach is totally wrong. I would be very grateful for any help you can give for solving this problem.

Let $X$ be a non-negative random variable and $F_{X}$ the corresponding CDF. Show,   $$E(X) = \int_0^\infty (1-F_X (t)) \, dt$$   when $X$ has : a) a discrete distribution, b) a continuous distribution.   I assumed that for the case of a continuous distribution, since $F_X (t) = \mathbb{P}(X\leq t)$, then $1-F_X (t) = 1- \mathbb{P}(X\leq t) = \mathbb{P}(X>  t)$. Although how useful integrating that is, I really have no idea.


I have noticed graphs like this in few Stack Overflow top user profiles.   Why are some posts not getting reputation? Why are users not getting it, even if they're worth it? Is there any daily limit for reputation? Or any rules?     Then on an another day

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


I am using Stata 13 to estimate a simple regression. Given a rather positive skew of a few of my covariates, I figured to ln-transform the variables.  However, I have a substantial amount of zeroes in the covariates. Ln-transforming the variables thus leads to many missings.  I came across several ways of handling the issue:    Replacing zeroes to a small value (e.g. 0.00000001)  Nottreating the issue Dummying the zeroes in a new variable   I do not like option 1 and 2. Replacing feels somewhat random and just wrong. Not treating the issue results in missing information. I thus prefer option 3. But it does not seem to work for me so far. Here is an example of what I do.   clear clear matrix set more off  sysuse nlsw88  hist tenure  gen ln_tenure=ln(tenure)  gen null_tenure = 1 if ln_tenure==. & tenure!=.   reg wage grade tenure south reg wage grade ln_tenure south  reg wage grade ln_tenure null_tenure south   The nlsw88 example dataset provides us with 51 observation with tenure=0. Simply regressing wage on grade with tenure is hence based on 51 more observations compared to regressing wage on grade and ln_tenure.   To not miss out on the information at tenure=0, I created the dummy null_tenure=1 for all tenure=0. Obviously, null_tenure gets omitted when introducing it to the regression.   I have two questions:    Does this way of handling missings created by ln-transforming data make sense? If so, How can I circumvent the dummy to be omitted ?   /R

If I have highly skewed positive data I often take logs. But what should I do with highly skewed non-negative data that include zeros? I have seen two transformations used:   $\log(x+1)$ which has the neat feature that 0 maps to 0. $\log(x+c)$ where c is either estimated or set to be some very small positive value.   Are there any other approaches? Are there any good reasons to prefer one approach over the others?


I would like to know why I get this following error in the terminal:  Users-MBP:~ user$ javac Testing2.java Testing2.java:18: error: variable result is already defined in method main(String[])     boolean result = true;             ^ 1 error   When I try to run the following program:  public class Testing2 {      private static int TwiceRepetition(int[] elems) {        ///      }         public static void main(String[] args) {          ///     } }   In fact, the desired output is that it prints true if there's a consecutive repetition length two of any element. Otherwise, it prints false.  The error states that variable result is already defined. Yes. But can't you redefine it just like in Python?  For example, in python, I'm allowed to do this (meaning there's no errors that prevent me from redefining the variable result to true if the conditions is satisfied):  def p1(x):       result = False      i = 0      while i < len(x) - 1:        if x[i]== x[i+1]:             result = True        i = i + 1      return result   But in java, it doesn't work, why?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


My client says:      "We are a trusted windows and doors replacement company."   It sounds funny. It seems like it should be singular: window and door.  Although, if it is part of the name "Acme Windows and Doors" it sounds correct.

I wonder whether there are rules or guidelines regarding plural nouns in nominal compounds. For example a compound university students list. If there are many lists and many universities is it grammatically correct to say universities students lists? Must all elements be in the plural form or can some be left in singular, even though the meaning is plural? I've seen an expression universities student lists; is it correct?


I am using the following code, and I am trying to call an action from another action.  // Full code: https://github.com/neorai/Notepad/blob/master/src/notepad/Notepad.java  private void MenuGuardarActionPerformed(java.awt.event.ActionEvent evt) {                                                  if ("nuevo".equals(MenuNuevo.getName())) {          MenuGuardarComoActionPerformed(evt); //<-- problem      }else{          try {              File fileToSave = jFileChooser1.getSelectedFile(); // ruta del archivo a leer              FileWriter escribir;              escribir = new FileWriter(fileToSave.getAbsolutePath(), true);               escribir.write(TextArea.getText()); // escribir en archivo              jTabbedPane1.setTitleAt(0, jFileChooser1.getName(fileToSave)); //establecer el nombre del archivo en pestaña de jtabbedpanel, 0 es la posicion de la pestaña en el array              escribir.close(); //cerrar archivo          } catch (IOException ex) {              Logger.getLogger(Notepad.class.getName()).log(Level.SEVERE, null, ex);          }      } }    How could I call that action from another action?

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?


Many posts around that subject, but this case is a bit specific (I think) since it's not about a migration nor a cloning.   Initially Windows 7 on a 500GB HDD (OEM) then upgrade to Windows 10 (offered by Microsoft)   Now we have a brand new 550GB SSD and would like to install a fresh Windows  on it (and get rid of the old one on the HDD).   Do we have to install the initial (Win 7) or the upgraded (Win 10) on the SSD? What happens with the license, will Microsoft accept the license "transfer" automatically?   We'd prefer to install Windows 7, unless 10 is mandatory (or recommended).  Edit  Actually we'll go for win 10 since we need to switch languages after the install (thanks @Ramhound). Thus the question is back to the classical Win 10 reinstall, and is definitely a dupe . . .

I've been using Windows 10 for a couple of month now (joined the Insider Preview).  Now my hard drive started ticking so I've bought a new SSD and I want to move the windows installation to the new hard drive, which has been connected to the computer (unpartitioned). I don't mind and I even prefer reinstalling it over again.   Since I have the free version of Windows 10 pro, can I still reinstall it anew? Does the windows 10 installation offer disk management and partition like the older Windows installations used to? How should I reinstall Winodws 10 x64 the easiest but still remain on free mode?


Find all of the solutions of $4(x,y) = (1,2)$ in $\mathbb{Z}_3$ x $\mathbb{Z}_8$. What I have so far: $4(x,y) = (1,2) \implies (4x,4y) = (1,2) \implies 4x = 1 \pmod 3$ and $4y = 2 \pmod 8$.

I know how to compute modular multiplicative inverses for co-prime variables $a$ and $b$, but is there an efficient method for computing variable $x$ where $x < b$ and $a$ and $b$ are not co-prime, given variables $a$, $b$ and $c$, as described by the equation below?   $ a x \equiv c \mod b $   For example, given  $ 154x \equiv 14 \mod 182 $, is there an efficient method for computing all the possibilities of $x$, without pure bruteforce?  Please note that I'm not necessarily asking for a direct solution, just a more optimized one.    I do not believe that the Extended Euclidean Algorithm will work here, because $a$ and $b$ are not co-prime.   Edit:  Follow up question, since the first one had a shortcut:  Could the be computed efficiently as well?  $12260x \equiv 24560 \mod 24755$.  $107$ needs to be one of the computed answers.


"Children are subject to colds" vs. "Children are subjected to colds" Q. I've read the answer and comments posted before, concerning a question similar to mine. But I'm not clear yet. I'd like to know whether "be subject to" and "be subjected to" can be interchangeable with each other or not. Are they? Or not?

"Children are subject to colds" vs. "Children are subjected to colds" Q. Is there any difference between "be subject to" and "be subjected to"?


I need to get an LED to switch on once the voltage across a capacitor goes above 40V. It must then remain on from 40V to the maximum voltage reached by the capacitor which is currently 1200V. The circuit has to be independent from any other power source so the circuits must be powered off of the capacitor.   I thought about using a comparitor but that would require an outside power source to power the chip and create a reference voltage.   I am currently working with the idea of using two dc to dc converters as I can't find one that will cover the full range. The first converter has a range of 40 to 180V and the second one has a range of 200V onwards.   I need to build a circuit to switch from one dc to dc converter to the other when the first ones maximum voltage is exceeded. I also need to switch over to another power source when in between the two converters ranges so that the led is constantly lit.   I think this can be done using a relay but I have never worked with one before and I'm not sure how to power it when the max voltage is reached and where to power it from.   If someone could shed some light on a possible solution or point me in the right direction it would be greatly appreciated. Thank you!

I would like to make an indicator to show that DC bus (700VDC) capacitors are charged (be careful!).  What is the best way to make a LED indicator, which will work for a long time from 40VDC to 1000VDC without additional power supply and with minimum power losses?


Ok, so when I run this code, then put in the value "y" as the input value for variable response, I keep getting a printed result of false for the logic statement (response == "y"). What am I doing wrong?  import java.util.Scanner;  class Main {    public static void main(String[] args) {      Scanner UserInput = new Scanner(System.in);        System.out.println("\nResponse:");      String response = UserInput.nextLine();      System.out.println(response == "y");    }  }


Is there any way to check for what the contents of a box are? I see that there's a way to check if it's void, and what type of box it is, but can you check what's in it?  I'm working on a reflowing scheme for double column paragraphed footnotes, and my approach is to reflow the box every time a footnote is added. This has the side effect of reflowing the hyphens at the end of a hyphenated line. So I'm looking for a way to check if the \lastbox on a line is a hyphen, and remove it if it is.  An MWE could be produced if deemed necessary, but the direct question shouldn't need one.

I want to test if two somewhat arbitrary things typeset as exactly the same thing. For example I would like the test to tell me that abc is different from xyz, but is the same as \def\bar{abc}\bar. A poorly designed test and MWE is  \documentclass{article} \makeatletter \newsavebox{\@tempboxb} \newcommand{\iftypesetsame}[4]{\begingroup%     \savebox{\@tempboxa}{#1}%     \savebox{\@tempboxb}{#2}%     \ifdim\ht\@tempboxa=\ht\@tempboxb%         \ifdim\dp\@tempboxa=\dp\@tempboxb%             \ifdim\wd\@tempboxa=\wd\@tempboxb%                 #3%             \else%                 #4%             \fi%         \else%             #4%         \fi%     \else%         #4%     \fi% \endgroup} \makeatother \begin{document} \iftypesetsame{abc}{abc}{same}{different}  \iftypesetsame{abc}{bcd}{same}{different}  \newcommand{\foo}{\begingroup\def\bar{abc}\bar\endgroup} \iftypesetsame{abc}{\foo}{same}{different}  \iftypesetsame{xyz}{zyx}{same}{different} % Test gets it wrong  \iftypesetsame{a\vspace{1in}\par b}{ab}{same}{different} % Test gets it wrong \end{document}   which tests based on the height, width and depth of the box. This is obviously not very robust because two very different things (e.g., xyz and zyx) can have the same width, height, and depth. It also doesn't handle arbitrary inputs (e.g., \par and \vspace}.  While I would like a perfect LaTeX solution, I would be interested in tests that fail less frequently of even LuaTeX based solutions


I have an old desktop PC with following configuration...  AMD Athelon 1.4 GHz 256 MB RAM 40 GB IDE HDD 8-MB shared VRAM USB 1.0 External Sony CD/DVD RW connecting through USB  Which is the best version of Ubuntu live OS that can be used for this PC. The PC currently has a bit unstable version of Windows XP. And I have a Lenovo A10 Ideapad with Android 4.2 Jellybean which does not connect to the USB DVD writer.

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 writing a unit test to evaluate if a case was successfully assigned to a queue. Unfortunately, the SOQL query I'm using to get the case owner type is returning "null". I've validated that the owner is being set successfully, so I'm not sure why I can't retrieve the owner type. How can I access the case owner type in the SOQL query so that I can evaluate it in the System.assert line (2nd to last line)?  Here's my code:      @isTest static void insertByPartner() {     //tests that the partner is added to any cases that they create.          Case[] cases = TestClassUtils.getCases(1);          List<Database.SaveResult> results = new List<Database.SaveResult>();          User partnerTestUser = createPartnerUser();          Test.startTest();         System.runAs(partnerTestUser) {             results = Database.insert(cases, false);         }         Test.stopTest();          Set<ID> caseIdSet = new Set<ID>();         for(Database.SaveResult sr : results) {             System.assert(sr.isSuccess());             caseIdSet.add(sr.getId());         }          List<Case> queueCasesList = [SELECT Id, OwnerId, Owner.Type FROM Case WHERE Id IN :caseIdSet AND Owner.Type = 'Queue'];          for(Case newCase : queueCasesList) {             System.debug('The case owner is: '+ newCase.OwnerId);             System.debug('The case owner type is: ' + newCase.Owner.Type);         }          System.debug('Cases owned by queue when inserted by a partner user = ' + queueCasesList.size());         System.assert(queueCasesList.size() == 1);     }

I'm trying to determine in a trigger, whether a lead belongs to a Queue or a User. What is the best way of going about this?  I tried the method mentioned in a dev. force discussion:  System.debug( lead.Owner.type )   ... but this consistently keeps fetching null.  Alternatively, I was trying to determine by first 3 characters of the OwnerId (005 for User, 00G for Queue). I tried using:  lead.OwnerId.substring( 3 ) == '005'    Trying the above gets me Method does not exist or incorrect signature.  Any bright ideas here?  Thank you.


I'm a little confused about the usage of that and this. For example: My teacher was giving out our predicted grade. When it was my turn, she said:"A, A*" I asked "What does that mean?" She said that "It means we think you will get an A* if you work hard enough" Here, is the usage of 'that' correct? Or should I use 'this' instead? How am I able to tell? Another example is when someone explains to me what a word means, I say "that actually makes a lot of sense" or should it be 'this'? And also when I ask someone about something, should the other person say ''that or this is a good question" ? Is there a common rule?

Learning and using English I'm always confused about what word to use for referring to things that have been described by me a few sentences earlier: "that" or "this".   Confusion comes from the fact that only the equivalent of "this" is always used in my native language for such referring. But I've noticed that in English for such referring "that" is used as often as "this" (or maybe even more often).  Some examples for illustrating (just tried to google something appropriate to convey my idea better):     We assess local... the demographics of the local population. What are the natural traffic drivers in the area. Things like cinemas and pubs and retail and office and all that type of things and we now put together a bit of a matrix and actually give a weighted score to each of the things we know help our business. That helps us decide in a more scientific fashion.   or:     The problem of Cervantes' origin became after that into a tough matter. Some experts believed that the Cervantes from Alcázar, in the times of the Lepanto Battle, was in the age of a child, more concerned about gathering nests and that type of things than about fighting as a soldier.   and for "this":     I believe lot of people who involved fishery industries in Mexico Gulf are suffering now but as for economic issues, U.S government and other countries will support them and give an utmost response to it. Important thing is that we learn from this mistake and make sure this type of things will never happen in the future and protect nature environment thus we have to take this technology to get energy from water very seriously. I really hope this technology will be available and used for everybody as soon as possible.   Is there a rule describing proper usage of these words in cases like this? (or should I have written "..in cases like that"?)


How can I find how many lines a text file contains without opening the file in an editor or a viewer application? Is there a handy Unix console command to see the number?

I'm sure there are many ways to do this: how can I count the number of lines in a text file?  $ <cmd> file.txt 1020 lines


I get an error message each time I use the Software Updater in Lubuntu 16.04, saying I don't have enough space on /boot. I would need 94 MB free space, which I apparently haven't got:  $ df -h /boot Filesystem      Size  Used Avail Use% Mounted on /dev/sda1       236M  156M   68M  70% /boot  $ ls -l total 150379 -rw-r--r-- 1 root root  1240018 jun 24  2016 abi-4.4.0-28-generic -rw-r--r-- 1 root root  1240067 jul 13  2016 abi-4.4.0-31-generic -rw-r--r-- 1 root root  1245659 mar 31 19:14 abi-4.4.0-72-generic -rw-r--r-- 1 root root   189533 jun 24  2016 config-4.4.0-28-generic -rw-r--r-- 1 root root   189558 jul 13  2016 config-4.4.0-31-generic -rw-r--r-- 1 root root   190236 mar 31 19:14 config-4.4.0-72-generic drwxr-xr-x 5 root root     1024 apr 19 11:53 grub -rw-r--r-- 1 root root 38404788 apr 18 17:11 initrd.img-4.4.0-28-generic -rw-r--r-- 1 root root 38387763 apr 18 17:17 initrd.img-4.4.0-31-generic -rw-r--r-- 1 root root 38941335 apr 19 11:53 initrd.img-4.4.0-72-generic drwx------ 2 root root    12288 feb 14  2016 lost+found -rw-r--r-- 1 root root   182704 jan 28  2016 memtest86+.bin -rw-r--r-- 1 root root   184380 jan 28  2016 memtest86+.elf -rw-r--r-- 1 root root   184840 jan 28  2016 memtest86+_multiboot.bin -rw------- 1 root root  3859655 jun 24  2016 System.map-4.4.0-28-generic -rw------- 1 root root  3866473 jul 13  2016 System.map-4.4.0-31-generic -rw------- 1 root root  3882277 mar 31 19:14 System.map-4.4.0-72-generic -rw------- 1 root root  7026864 jun 24  2016 vmlinuz-4.4.0-28-generic -rw------- 1 root root  7047504 jul 13  2016 vmlinuz-4.4.0-31-generic -rw------- 1 root root  7083248 mar 31 19:14 vmlinuz-4.4.0-72-generic   I have already done a sudo apt-get autoremove. Any ideas what else I should do or remove to be able to update?

My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version that came with the automatic updates.  After installing that new version, the partition is nearly full again. So what else can I delete? Are there some other files associated to the old kernel images?  Here is a list of files that are on my /boot partition:  :~$ ls /boot/ abi-2.6.31-21-generic         lost+found abi-2.6.32-25-generic         memtest86+.bin abi-2.6.38-10-generic         memtest86+_multiboot.bin abi-2.6.38-11-generic         System.map-2.6.31-21-generic abi-2.6.38-12-generic         System.map-2.6.32-25-generic abi-2.6.38-8-generic          System.map-2.6.38-10-generic abi-3.0.0-12-generic          System.map-2.6.38-11-generic abi-3.0.0-13-generic          System.map-2.6.38-12-generic abi-3.0.0-14-generic          System.map-2.6.38-8-generic boot                          System.map-3.0.0-12-generic config-2.6.31-21-generic      System.map-3.0.0-13-generic config-2.6.32-25-generic      System.map-3.0.0-14-generic config-2.6.38-10-generic      vmcoreinfo-2.6.31-21-generic config-2.6.38-11-generic      vmcoreinfo-2.6.32-25-generic config-2.6.38-12-generic      vmcoreinfo-2.6.38-10-generic config-2.6.38-8-generic       vmcoreinfo-2.6.38-11-generic config-3.0.0-12-generic       vmcoreinfo-2.6.38-12-generic config-3.0.0-13-generic       vmcoreinfo-2.6.38-8-generic config-3.0.0-14-generic       vmcoreinfo-3.0.0-12-generic extlinux                      vmcoreinfo-3.0.0-13-generic grub                          vmcoreinfo-3.0.0-14-generic initrd.img-2.6.31-21-generic  vmlinuz-2.6.31-21-generic initrd.img-2.6.32-25-generic  vmlinuz-2.6.32-25-generic initrd.img-2.6.38-10-generic  vmlinuz-2.6.38-10-generic initrd.img-2.6.38-11-generic  vmlinuz-2.6.38-11-generic initrd.img-2.6.38-12-generic  vmlinuz-2.6.38-12-generic initrd.img-2.6.38-8-generic   vmlinuz-2.6.38-8-generic initrd.img-3.0.0-12-generic   vmlinuz-3.0.0-12-generic initrd.img-3.0.0-13-generic   vmlinuz-3.0.0-13-generic initrd.img-3.0.0-14-generic   vmlinuz-3.0.0-14-generic   Currently, I'm using the 3.0.0-14-generic kernel.


I am trying to remember what the series 1+2+3+4+5+...+n is equal to in order to determine the series of breaks within the graph of x[x]. I know it obviously diverges as it goes to infinity, but what is the equation for when n is finite?  The sequence for the series goes 1,3,6,10,15,21,28,36,45,55,66,78,...

Possible Duplicate:          I got this question in homework:  Find an expression for the sum      $\sum k = 1 +\cdots + n$.    and prove it using an induction.   I'm not even near finding the expression. What I did notice is that if $n$ is (for example) 5 then the sum would be   $5^2 - 4^2 + 3^2 - 2^2 + 1^2$  So the first number is always positive and from there on the sign changes.  Any tips on how do I contintue from this point on, assuming I'm in the right direction?  Thanks!


I have exported osm data using osm2pgrouting in the database, it has SRID 4326. I want to change projection of all the tables created to a particular SRID in UTM.  I read the post  and , but these are only changing SRID withour transforming the coordinates. I am using the command   select UpdateGeometrySRID('Schema Name', 'mytable', 'the_geom', newSRID) ;

I created a spatial table with SRID:4326. Now I want to change total projection to SRID:32644 into a new table. The old table should remain unchanged.


I Have used Enforce Security With the stripInaccessible Method to Create Record in Account Object List<Account> newAccounts = new List<Account>(); Account a = new Account(Name='Acme Corporation'); Account b = new Account(Name='Blaze Comics'); newAccounts.add(a); newAccounts.add(b);   SObjectAccessDecision securityDecision = Security.stripInaccessible(                                          AccessType.CREATABLE, newAccounts); insert securityDecision.getRecords();  Now I want to get the Record Id of each record inserted in Account Object. Can you help me on this.

I m trying to understand where we use following Database.Methods. I know if we want to insert a record to an object we use DML Statement. What i want to know is why/where we use Database. methods. It might be silly question. Database.saveResults Database.insert Database.query Database.Query Database.error   really appreciate the inputs. Thanks a ton in advance.


As the title states, I need to find a conformal mapping from the vertical strip $\{-1 < Re(z) < 1\}$ onto open unit disk $D$. I'm not sure how to do this.. so do I first have to find a few points? For example, do I want the line $Re(z) = 1$ to map to (0,0) and then $Re(z) = -1$ to map to the $|z| = 1$?  Thanks!

I haven't found a similar question on here, though I suspect the question may be rather well-covered.   I want to find a conformal map from the vertical strip $\{z:-1<Re(z)<1\}$ onto the unit disc.  Under the exponential map the region is taken to the annulus with radii $e$ and $e^{-1}$, but I'm not sure how useful this will be.  Can anyone advise on what the conformal map may be?  Thanks.


I am trying to recreate the suggestion from  but instead of using it on a sPolygondf, to do the same for a sPointdf. All is well, but I get an unexpected output - when I do the difference between my one point feature and the other I get a result of X (59104); when I do the same for the attribute information in order to join these and create a sPointdf for later steps I get a result of Y (59488).   Can anyone explain why this is so?   Code:      #------load data cities_nl <- readOGR('/home/iordamo/Documents/GIS_Workload/DutchCities/allcities_dis.shp') imgs <- readOGR('/home/iordamo/Documents/GIS_Workload/DutchAgriculturalParcels/mapillary-public.geojson')  #------selection imgs <- spTransform(imgs, '+proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +no_defs') imgsdf <- data.frame(imgs)  imgs_in <- imgs[cities_nl,] imgs_indf <- data.frame(imgs_in)  imgs_out <- gDifference(imgs, imgs_in)  imgs_outdf <- setdiff(imgsdf, imgs_indf)      > nrow(imgs_outdf) [1] 59488  > imgs_out class       : SpatialPoints  features    : 59104    So in the case of the spatial operations I am using the gDifference function from the rgeos package and in the other the setdiff from the dplyr package. To my mind these should result in the same number of features in the end.

I have a SpatialPolygoneDataFrame and a SpatialPointsDataFrame I would like to erase the points inside of the polygon, Keeping only the points outside and all of the data. I am new to GIS in R moving from ArcGIS and arcpy.  This is what the Erase Points tool does in ArcGIS 10.4 can this be done in R


New release was released at 21 April, but I can't update yet. I have Ubuntu 14.04.4 LTS but   do-release-upgrade Checking for a new Ubuntu release No new release found   If I add -d flag it found new release but I can't understand why need this option because I want update from LTS to LTS. It's because 14.04.4? Or this update is not yet available?  Every other questions told to add -d option, but from LTS to LTS should update without this options. I'm right?

I'm following the , but on launching the upgrade tool I get this response:  Checking for a new ubuntu release No new release found   Am I doing something wrong? Is there a workaround?


Recently I've got into an argument with a friend of mine about a cliché, "What is the use of philosophy?". Well we didn't discuss it that much but I want to keep the argument based on some philosopher's reasoning rather than my own.  I actually really like the introduction of "History of Western Philosophy by Russell:     “ Science tells us what we can know, but what we can know is little,   and if we forget how much we cannot know we become insensitive to many   things of very great importance. Theology, on the other hand, induces   a dogmatic belief that we have knowledge where in fact we have   ignorance, and by doing so generates a kind of impertinent insolence   towards the universe. Uncertainty, in the presence of vivid hopes and   fears, is painful, but must be endured if we wish to live without the   support of comforting fairy tales. It is not good either to forget the   questions that philosophy asks, or to persuade ourselves that we have   found indubitable answers to them. To teach how to live without   certainty, and yet without being paralyzed by hesitation, is perhaps   the chief thing that philosophy, in our age, can still do for those   who study it.”   But I thought considering the fact that the book has been written in 1945, there might be better and more up to date counter-arguments against this question and maybe even more elaborated ones. I have already browsed , but answers there are either personal opinions (which as I said, I am looking for a reference) or improper from my point of view; Take Delouse's answer; he basically insults the person who asks such a question. I'd rather prefer a more disinterested argument as Russel's.  I am not asking for a book on the subject. But maybe a book that discusses the topic as part of its objective, like Russel's. Does anybody know any reference for it?

Examining the practical, impactful, real-life benefits of getting a degree in philosophy It is often asked, "What is the practical use of philosophy?" or "How will learning about philosophy impact real-life?" It is easy to see why there is such mystery surrounding the topic. Most schools up through high school may only offer 1 or 2 courses on it, if any. It is also often talked about in general conversation as a "wishy-washy" subject, often negatively, as though it contains no answers but only raises an endless series of questions. To add to this, those who hear of the subject but know very little of it may be surprised to see it offered at their university as a major. It is clear to most why some people would want to major in Computer science, Mathematics, or Physics. But what would a degree in philosophy get you?


I want to find the sum of the following expression in terms of $n$. I tried looking for it but couldn't come up with one. Any help will be greatly appreciated.  $$\sum_{i=0}^n \frac{1}{4^i}\binom{2i}{i}$$

Whilst working out  the following summation emerged: $$\sum_{m=0}^n\frac 1{2^{2m}}\binom {2m}m$$ The is equivalent to  $$\begin{align} \sum_{m=0}^n \frac {(2m-1)!!}{2m!!}&=\frac 12+\frac {1\cdot3}{2\cdot 4}+\frac{1\cdot 3\cdot 5}{2\cdot 4\cdot 6}+\cdots +\frac{1\cdot 3\cdot 5\cdot \cdots \cdot(2n-1)}{2\cdot 4\cdot 6\cdot \cdots \cdot 2n}\\ &=\frac 12\left(1+\frac 34\left(1+\frac 56\left(1+\cdots \left(1+\frac {2n-1}{2n}\right)\right)\right)\right) \end{align}$$  and terms are the same as coefficients in the expansion of $(1-x)^{-1/2}$.  Once the solution  $$ \frac {n+1}{2^{2n+1}}\binom {2n+2}{n+1}$$ is known, the telescoping sum can be easily derived, i.e.    $$\frac 1{2^{2m}}\binom {2m}m=\frac {m+1}{2^{2(m+1)-1}}\binom {2(m+1)}{m+1}-\frac m{2^{2m-1}}\binom {2m}m$$  However, without knowing this a priori, how would we have approached this problem?


A person I've been talking to for a while asked me to go into his bank account  and make a transfer to a US beneficiary account. It's a continental account. It showed the  date that the account was opened in 2007 as well as a picture of him.   I trusted him and I did it. Now he is asking me to do it again and this time red flags are coming up. Can someone help me? Is it illegal to go into someone's account and make a transfer for them?

A friend was deported and has money in account here in the us there in Nigeria and want me to open up account so that I can retrieve the money for them from his friend that is also on the account so that he will put the money in my account said o just need 25 us dollars to do do scam or not told me its just for deposits from his friend that's meandering his money


Failed to fetch http: security.ubuntu.com/ubuntu/pool/universe/v/vlc/libvlccore7_2.1.6-0ubuntu14.04.1_amd64.deb 404  Not Found  Failed to fetch http: security.ubuntu.com/ubuntu/pool/universe/v/vlc/libvlc5_2.1.6-0ubuntu14.04.1_amd64.deb 404  Not Found  Failed to fetch http: security.ubuntu.com/ubuntu/pool/universe/v/vlc/vlc-nox_2.1.6-0ubuntu14.04.1_amd64.deb 404  Not Found  Failed to fetch http: security.ubuntu.com/ubuntu/pool/universe/v/vlc/vlc_2.1.6-0ubuntu14.04.1_amd64.deb 404  Not Found  Failed to fetch http: security.ubuntu.com/ubuntu/pool/universe/v/vlc/vlc-plugin-notify_2.1.6-0ubuntu14.04.1_amd64.deb 404  Not Found  Failed to fetch http: security.ubuntu.com/ubuntu/pool/universe/v/vlc/vlc-plugin-pulse_2.1.6-0ubuntu14.04.1_amd64.deb 404  Not Found

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


In Great Expectations, Charles Dickens wrote the following:     We had not gone far when three cannon were fired ahead of us   I always thought the plural of cannon was cannons, as a rule. This usage of cannon as an uncountable noun befuddled me, so I took to the Internet. Many sources listed it as countable, but some sites like the ones  and  say that "cannon" is correct.  My questions:   Have I been using this incorrectly my whole life, or Is this some kind of archaic form that died out? If so,  How does usage of "cannon" over time compare to "cannons"?   So much confusion! Thanks for helping.

I'm reading a novel based in ye olde pirate-times, and I have come across the author's usage of "cannon" (without the "s") to refer to multiple cannons.     The ship boasted 32 cannon onboard.   Is this just an archaic usage that the author is employing for purposes of story-telling? Also, how/why did this evolve to "cannons" in modern usage?


A function $f : [a,b] \to [a,b]$ is continuous for all $x \in [a,b].$ Prove that there exists a $c\in [a,b]$ such that $f(c) = c.$

Suppose that $f$ is a function defined in $[a;b]$ to $[a;b]$ and continuous on $[a;b]$. The problem is I haven't the definition of the function, this is more abstract, but even if how can I prove that $f$ would have a fixed point?


I've got a javaws (JNLP) app that will occasionally give  java.lang.OutOfMemoryError: Java heap space   but right after it happened the customer hit "m" in the console (to get memory usage) and "g" (to trigger an manual full GC) and I see  Memory: 1,013,632K  Free: 167,815K  (16%) ... completed. Garbage collect ... completed. Memory: 1,013,632K  Free: 760,924K  (75%) ... completed.   which to me looks like plenty of free memory even before the GC and tons after. I've already doubled the memory from what it had before (which was plenty in most cases). The stacktrace is different each time. Can anyone suggest what might cause this and how to fix it?  This is not a duplicate of the other OutOfMemoryError questions! Those are pretty generic, this is asking specifically about a strange case where we seem to get the error when not actually out of memory.

I am writing a client-side Swing application (graphical font designer) on Java 5. Recently, I am running into java.lang.OutOfMemoryError: Java heap space error because I am not being conservative on memory usage. The user can open unlimited number of files, and the program keeps the opened objects in the memory. After a quick research I found  and others saying on Windows machine the JVM defaults max heap size as 64MB.  Given this situation, how should I deal with this constraint?  I could increase the max heap size using command line option to java, but that would require figuring out available RAM and writing some launching program or script. Besides, increasing to some finite max does not ultimately get rid of the issue.  I could rewrite some of my code to persist objects to file system frequently (using database is the same thing) to free up the memory. It could work, but it's probably a lot work too.  If you could point me to details of above ideas or some alternatives like automatic virtual memory, extending heap size dynamically, that will be great.


I am looking for a list of standard LaTeX macros which are symbols and available without any packages. Macros like:  \LaTeX, \TeX, \slash, \textbackslash, \dots   Is there a list for such macros?

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


The phenomenon of the deflection of a moving electron in a magnetic field is related to the electrons spin. From which phenomenon it is concluded, that photons have a spin?

Electrons have spin 1/2, and as they are charged, they also have an associated magnetic moment, which can be measured by an electron beam splitting up in an inhomogeneous magnetic field or through the interaction of the electrons's magnetic moment with an external magnetic field in spectroscopic measurements.   On the other hand, a photon is neutral - how can one measure its spin if there's no magnetic moment? How do we know it has spin 1?


Is that possible to create custom commands?Such as when a player type /hi he will get a message "hello!"  I have search on google but the only result i got is using trigger command.

Basically, I'm trying to recreate the Faction plugins /f map in my single-player without mods as my PC doesn't run them very well. (I know it sounds strange.) I am trying to use the /testfor to test if I have written '/f map' in chat, and if I have, it would show me a custom generated map. I don't know how to word this better xD Essentially what I want is for it to test if I have written a command in chat, and if I have, display something.


When choosing a creature to sacrifice (originated from a "sacrifice a creature" instruction), if the creature that is being sacrificed has "sacrifice this creature (for whatever result)", does it trigger?  Does it make any difference if the target creature is a forced sacrifice instead of a volunteered sacrifice?  Example scenario: I play  to draw 2 cards and target  as the sacrifice. Does this trigger Bile Urchin's "Sacrifice Bile Urchin: Target player loses 1 life."?  I may have thought about this for too long and confused myself, so a little clarification would be great.

Say I have a Zombie token, , and  on the battlefield. Can I sacrifice the Zombie token to activate both the Altar's and Seer's abilities?  Similarly, if I have one card in hand, and  and  on the battlefield can I discard the one card to both of their abilities?  If I have a  with 3 charge counters can I activate both of its abilities by tapping it to add a counter, and tapping it to remove 3 counters and destroy a permanent without untapping it in between?


This happened many times with me. Just as an example, I was searching a post with keyword "Can upvotes of comments be rewarded with points", to check if any questions already exists with this topic. This is the result page: . Where you wont find any relevant post. But then when I clicked on Ask Question and put the same in the Title area, I found some more relevant questions, one is this , which matches with my view and this  is the same question which I had in mind.   So, is there any valid reason, why the relevant posts doesn't come in the search results which may come in the duplicate suggestions?

This is a search result for         I realize (from seeing the above search results) that my question hasn't been asked before. But as soon as I start typing, all the relevant results appear in the Questions that may already have your answer (which should've appeared on my first search!!)        Just for fun,         I no longer bother with searching first and just start typing my question instead.   Why does the [Questions that may already...] functionality work better than the search bar?


I have    public Object get(int index)     {         if (index <= 0)             return null;          Node Current = head.getNext();         for (int i = 1; i < index; i++) {             if (Current.getNext() == null)                 return null;              Current = Current.getNext();         }         return Current.getData();     }   this method for a linked list to get something in an index. That something is a Painting object, and I want to get the title of the painting using a getTitle method within the Painting class.  Here is what I tried to do,  for(int i = 0; i < paintings.size(); i++){         Painting x = (Painting) paintings.get(i);         System.out.println((i+1) + ": " + x.getTitle()); }   Unfortunately at x.getTitle() java gets extremely salty and gives a null pointer exception. I've tried multiple ways of doing this with different casts and I'm just personally lost. Any help would be deeply appreciated.

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?


For example , I write a Python program by vim , but how can I run it ? It just show a editor program when I double tap on it .

I need help running python in ubuntu  I can run python without a problem in my terminal but when I create a .py file I can't get it to run.


Is there a way to straighten all the edges of the selected area of a UV map automatically? This means aligning every edge (set of consecutive vertices selectable by AltRMB). Currently I have to do this manually, as illustrated below, by selecting an edge (AltRMB over the edge), hitting S to scale, and X or Y to constrain it to the X or Y axis and then 0 to set the scale to zero, averaging the distance between all points on that axis.    This is the final result that I'm trying to achieve:    As illustrated above, this is extremely slow to do manually. I have tried Follow Active Quads, but in most cases that doesn't result in a straight grid where all the vertices are lined up along the X and Y axes. Is there an automatic way to straighten the edges of a UV map by lining them up along the X and Y axes?

I added a plane to a scene, subdivided it, and deformed it with proportional editing:    I'd like to UV unwrap this plane, making the mapping what the would have been without the edit mode deformations. In other words, I'd like my UV map to look like a square grid.  Is it possible to UV map this deformed plane to a square grid? Or do I need to start from scratch, and make sure I unwrap it before I do the edits?


I have no idea how to fix this. There is a yellow line that appears when i try to move the object. Don't know if that has something to do with it.

When i open the blender file the object seems to move back to origin and scales back down.... I tried to apply location but it gives me an error. Any idea whats happening or what can i do to fix it ?


When I open Terminal Window in Mac OS X, I can type bash and hit enter and I will see:  Last login: Fri Feb 20 14:30:56 on ttys000 Korays-MacBook-Pro:~ koraytugay$ bash bash-3.2$    I can for example run commands such as ls or ls -l both in Terminal and in "bash-3.2$"  What is bash running under Terminal and what is Terminal itself?

I'm confused with the terminology. What is the difference between shell, console, and terminal?


i got 2nd time Visa refusal with almost same reason. but 2nd time it was only one reason "i didnt succeed to demonstrate the willingness to return to home country - the economic rootage in india could not be proved sufficiently/credibly show."  i have proper invitation letter from german family and from my side i showed almost everything(employment contract,pay slip,bank statement, supporting letter from my father , says i am the only son and taking care of family and property, property paper , my father bank statement) .  i am confused now , what they want me to have now ? i dnt own a house , i just have a job . how can i show them exactly my economic rootage. ??  please help me with this problem.

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I am trying to query Products in my controller where the Product Name involves min2 to max4 's(apostrophe s) i.e Product Name = Joy's x & Joy's Y & Joy's Z. I am unable to query this product as apostrophe s is hit, it neglects other characters and throws an error like unexpected token s in query.  As per an article to escape quoted string in query   I tried my SOQL query as   lstproduct = selectstmt + wherecondition;  In wherecondition = ' Product_Name__r.BrandName__c= \'' + brandstring + '\'';  brandstring holds the product name     brandstring = ' Joy's x & Joy's Y & Joy's Z ' -----> Here is the   issue, on hitting the first apostrophe query ends and nothing is   returned in query result.   Please help me resolve this issue. How to change the query to get expected results.

Declared a string and assigned SOQL value as shown below. While running I am getting an error.   String country = 'United States'; String accountQuery = 'SELECT Id,BillingPostalCode,County_Name__c '+      'FROM Account WHERE zipCodeLen__c =9 AND AND BillingCountry = '+ Country;   System.QueryException: unexpected token: 'AND'  System.QueryException: expecting a colon, found 'United'


I have two tables, one for country an the other for the city, and I want a query to get the country with all the cities in a comma-separated which grouped by the countries.  Note:   The second table has a foreign key Fk_CountryId from the primary key of the first table CityId which is a primary key I am using SQL Server    The first table Country looks like this  CountryId | CountryName  ----------+-------------     1     | USA      2     | UK     3     | Germany   The second table City looks like this  CityId | CityName   | Fk_CountryId -------+------------+------- 1      | Los Angeles|   1 2      | Boston     |   1 3      | Cambridge  |   2 4      | Chester    |   2 5      | Berlin     |   3 6      | Hamburg    |   3   The expected DataSet:  CountryId | CountryName  | CitiesNames ----------+--------------+---------------------- 1         | USA          | Los Angeles, Boston 2         | UK           | Cambridge, Chester 3         | Germany      | Berlin, Hamburg

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


Was "bicycle" ever pronounced "bi-cycle" and if so where and when? What's the source?

The word bicycle is pronounced /'baɪsɪkəl/ (bahy-si-kuhl), like sickle. However, the words unicycle and motorcycle both have the -cycle pronounced as /-'saɪkəl/ (sahy-kuhl). Is there some sort of reason for this, or is this just a vagary of English pronunciation?


Some Academy Award categories are pretty easy to figure out, such as Best Actor/Actress and Costume Design. However, one that has always puzzled me is Best Director. While we know that a director is generally considered the author of a film, their exact role is not always clear, involving and affecting elements that are already awarded in separate categories (including writing, acting, cinematography, and sound design).   While the director's contribution might be clear to anybody working on the movie in question, it becomes a completely different matter when outside observers, like the Oscar jury, need to evaluate it. It seems impossible for them to decide, based purely on the finished work, how much was actually down to the director.  Given that much or all of a director's role cannot be clearly separated from those of other crew members and unambiguously observed in the finished work, how does the Oscar jury decide which movies should receive an Oscar for direction?  In other words, how does the jury know that the result is not simply down to the writing, the acting, the cinematography, or anything else that the director cannot necessarily be credited with? Is there some unique task performed only by the director that the jury can also observe? Is it more of an overall assessment of a movie's quality that can also be clearly separated from the more general Best Picture award? Do they consult other sources than just the finished work?  Note that this is not a question about what a director actually does but rather how the Oscar jury, as outside observers, can disentangle the director's role from those of other crew members with overlapping responsibilities.

I do not understand how the best director awards are determined each year. It seems impossible to assess the method of a movie director unless you are part of the crew.  So, how do the nominators/judges assess the directors' performance each year?


It seems that wrong is not only an adjective, but is also a proper adverb ("You're doing it wrong!", right?). There's, however, an adverb wrongly, which probably means the same thing.  Talking about adverbs, when does one use wrong or wrongly?

Which one is the correct use?  She judged him wrong. She judged him wrongly.  Or, are both correct, but have slightly different meanings?


How many ways are there for this mission? Any article about that on the internet. I heard about TODAI made a reprogrammable quantum computer.   Any more ideas are welcome

If I've got an instance of a fundamental particle, how can I separate out the measurements of these four quantities?  (I think) I understand the theory behind them, and why the particles in the standard model are predicted to have the values they do. However, the process of validation of these numbers eludes me. How have they been historically measured?


I have been using Ubuntu 18.04.1 LTS on a Dell Precision 5510 laptop with a Dell Thunderbolt 3 Dock, model TB16, for over two months with no issues. The system is regularly updated with the latest updates.  January 29th 2019, a notification for a new update appeared :   Several unused kernel files to be deleted  (update for Oracle's Virtual Box, seems very irrelevant)   I proceeded to install. However after rebooting, reaching the login screen and entering my password, I only had black screens and a completely unresponsive system.  After several reboots and attempts to diagnose the problem, only when I rebooted the system with the Dell Thunderbolt 3 Dock unplugged that the system successfully booted and displayed the desktop, menu bar...etc. Even then, when I re-plugged the dock, the system became unresponsive with a black screen.  I am currently looking into restoring the pre-update kernel using GRUB.  I'm interested to know if anyone, with a relatively similar setup, is experiencing this issue. Any other insights or ideas that could help are welcome.  Update :   Another report on this issue found (2 posts by the same author), it seems to affect only Dell docks but it is probably not restricted to Dell machines:      For now the issue has been resolved by restoring 4.15.0-43-generic using GRUB. I am holding from updating Ubuntu until the bug gets fixed.

I performed the most recent kernel update on my Dell 5290 2-in-1 earlier today.  But moments after I plug it into its docking station, the screen flickers, blanks and freezes.  The only item left on the screen is the mouse pointer, and it is stuck.   If I leave the tablet not plugged in, it runs just fine.  It seems to be the docking station that triggers the freeze.  That said, I can log into the tablet via ssh even with the screen frozen.  So the system is still running.  But if I try to reboot the tablet via the reboot command, nothing appears to happen. sudo reboot -f will reboot the system, while sudo reboot will not.  Any ideas where I should start looking to identify this problem?


I have a table with a lot of entries, and I'm stuck on how to get the records with the latest "CreatedDate" This is my table:  I would like this to be the result:  Date: Shows which date the quantity belongs to. CreatedDate: Show the latest "Status" update and therefore I only need to latest record based on Createddate.

I have a child table that is something like this:  [Cust Date Table]  | Customer ID | Some Date  | Balance | +-------------+------------+---------+ |           1 | 2012-04-30 |   20.00 | |           1 | 2012-03-31 |   50.00 | |           2 | 2012-04-30 |    0.00 | |           2 | 2012-03-31 |   10.00 |  |           3 | 2012-03-31 |   60.00 | |           3 | 2012-02-29 |   10.00 |   I would like to be able to get a result set like this - one record for each client with the latest date:  | Customer ID | Some Date  | Balance | +-------------+------------+---------+ |           1 | 2012-04-30 |   20.00 |  |           2 | 2012-04-30 |    0.00 | |           3 | 2012-03-31 |   60.00 |   I know that I can do this for each individual "Customer ID" with the following SQL (SQL Server syntax):  select top 1  [Some Date], [Customer ID], [Balance] from [Cust Date Table] where [Customer ID] = 2 order by [Some Date] desc   | Customer ID | Some Date  | Balance | +-------------+------------+---------+ |           2 | 2012-04-30 |    0.00 |   But I'm not sure how to get all three of the records I want.  I'm not sure if this is a situation that calls for a sub-query or something else.    Please note that the max date can be different for any given [Customer ID], (in this example, customer 3's maximum date is 2012-03-31 whereas the other records have a max date of 2012-04-30). I have tried  select [Customer ID], MAX([Some Date]) AS [Latest Date], Balance  from [Cust Date Table]  group by [Customer ID], Balance;    The problem is this doesn't return just the one row for each customer - it returns multiple rows.


How do I copy text from lists without extra invisible characters polluting my clipboard?  With the following text selection copied (not using double-click because it selects the trailing newline),    it pastes junk:    As a software developer, selection auto-expansion drives me nuts so it was one of the very first settings I tracked down to disable (along with ).    I tested the "Use Normal Style for bulletted or numbered lists" option  Is there another setting that controls this behavior?  Thanks.  P.S. Using Office 2013  P.P.S. The highlighted KB number does not exist in the  but I found it as an Windows event saying it configured an update. How is this possible? Perhaps an unannounced security hotfix?

I'm copying quite a bit of text from Word into a text-based application, line by line.  The word text is structured like this:        Topic      a. Item A      b. Item B      When I highlight Item A, copy, and then paste into the text-based application, I get a.    Item A rather than just Item A as desired.  How can I prevent Word from including the bullet letter when copying?


In the proof that $\sqrt{p}$ is irrational where $p$ is a prime number:  We first assume $\sqrt{p}$ is rational.  From this we deduce $\sqrt{p}=\dfrac{a}{b}$, where $a$ and $b$ are co-prime.  Then using other reasonings we deduce $a$ and $b$ are not co-prime.  That is from the wrong statement (i.e. $\sqrt{p}$ is rational), we deduced two contradictory statements.  From a statement, if we apply correct reasonings, we may deduce two results which contradict each other. How can this be reasonable? Can anyone explain with simple examples?  Anyway; from a statement, if we apply correct reasonings, we may deduce a result which contradicts another established result. This seems reasonable to me. And this shows that the statement is wrong.

Let's say that I prove statement $A$ by showing that the negation of $A$ leads to a contradiction.   My question is this: How does one go from "so there's a contradiction if we don't have $A$" to concluding that "we have $A$"?  That, to me, seems the exact opposite of logical. It sounds like we say "so, I'll have a really big problem if this thing isn't true, so out of convenience, I am just going to act like it's true".


I've got two shape files, one contains many point coordinates and the other vector shapes. There are many point coordinates contained within each vector shape.  I would like to perform a spatial join and create a new shapefile of the coordinates but with the attributes of the overlying vector shape.  QGIS spatial join does not seem to work for this. Any ideas? Also setting up a spatial database would be the ideal solution but is not possible in the time frame required.  Thanks Richard

I have gridded depth points in CSV format that I'm trying to add other map data to, in additional columns. I've tried joining fields, hoping that I could link the Shapefile data to the csv, but when I try to display the csv by graduated symbols based on the new fields, it goes blank. I used Nathan's tips from , but imported the csv as csv since I want to add map info to that, rather than adding csv info to a map.  See this picture below for the sea bottom temperature & salinity voronois by month, underneath the csv points (a sample subset), with the joins already made. I added columns on the csv for each of the fields i'm intending to append.    I also tried spatial joins as per  however it says the layers aren't the same CRS (I checked, they are), then gets to 15% and hangs.  I also also tried spatial join through  but it hit a python error. I can try this again and look to debug the problem if this is the right way to go.  In short: appending polygon data as fields on a points-grid csv: what's the best way in QGIS 2.0?


I'm new to CSS and I am working on a blog project for class. I am trying to have it so that I have a picture with text over it on the bottom of the picture. I 'm trying to have it so that both the picture and text are clickable. for some reason it seems like the picture is pushing down the text box and I cant figure out why.     #container{         display: grid;         height: 87vh;         width: 100vw;         grid-template-columns: 40vw 25vw 25vw;         grid-template-rows: 42.5vh 42.5vh;         grid-template-areas:          "left middle right"         "left middleRight bottomRight";         grid-gap: 10px;         padding: 1px;         justify-content: left;         background-color: thistle;     }  #MainblogPost{     border:solid;     border-color: grey;     height: 86vh; } #image{     width: 100%;     height: 100%; } #blogLink{     display: grid;     position: absolute;     bottom: 50px;     font-size: 20px;     color: turquoise; }  HTML

                          Iron man

I want to overlay one image with another using CSS. An example of this is the first image (the background if you like) will be a thumbnail link of a product, with the link opening a lightbox / popup showing a larger version of the image.   On top of this linked image I would like an image of a magnifying glass, to show people that the image can be clicked to enlarge it (apparently this isn't obvious without the magnifying glass).


I'm a college student trying to help everyone out.  We don't have WiFi or any reception here; so trying to access google.com (example) is impossible. But what we do have is 20GB of videos that we made that we want to be able to stream between the rooms.  I want to create a 'network folder' on my windows 10 computer that people can access via a wireless network that other people can see on their phones that looks like a WiFi network but it's only a wireless connection to my computer.So it's completely local.  How can I do this? Would I have to purchase any extra hardware, I'd prefer not to.  Many Thanks

I'm trying to play a video game with my friends that requires a local wifi network that allows UDP broadcasts. The dorm wifi doesn't allow UDP broadcasts, so I'm trying to set up my laptop as a hotspot. Windows 10 by default allows you to share an internet connection over wifi, but you must have an internet connection to do so. Sharing the wifi connection results in a lot of problems such as constant disconnects, and I don't have access to an ethernet connection to share. Is there some way I can set up a wifi network without actually sharing an internet connection?


Currently I have an input box which will detect the URL and parse the data.  So right now, I am using:  var urlR = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)            (?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/; var url= content.match(urlR);   The problem is, when I enter a URL like www.google.com, its not working. when I entered http://www.google.com, it is working.  I am not very fluent in regular expressions. Can anyone help me?

How can I check if a given string is a valid URL address?  My knowledge of regular expressions is basic and doesn't allow me to choose from the hundreds of regular expressions I've already seen on the web.


Flash player works fine with Chrome, but cannot install on Ubuntu Web Browser.  I am on Ubuntu 17.04 and up to date.

The new WebBrowser.app now in Ubuntu 14.04LTS 64bit does not play flash.  I have Adobe flash installed and working both in Firefox and Chrome, but the Browser.app says it is not installed.  When I try to play flash I get the message that I need to install the latest 32bit flash, but I have a 64bit system and 64bot flash is installed..  Any suggestions?


I am writing a high school statistics question that requires students to calculate the reliability of a solution to a system of linear equations by first creating lines of best fit using two data sets. Here is the data:  Data Set 1: x values: {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16} y values: {8,9,5,9,6,7,2,4,3,5,1,3,2,6,1,5} Line of best fit: y=-.36x+7.8 Correlation coefficient of data set 1: -.65  Data Set 2: x values: {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}; y_values: {2,1,6,2,4,3,8,6,5,1,8,7,5,7,9,3} Line of best fit: y=.27x+2.6 Correlation coefficient of data set 2: .48  The solution to the system of linear equations formed by y=-.36x+7.8 and y=.27x+2.6 is (8.3,4.8).  The data sets are both plotted on this graph:   Question: Given the scatter plots show relatively weak correlations, the solution to our system of linear equations is not 100% guaranteed. How do I calculate the [error margin/reliability/confidence] of this solution (8.3,4.8)? The goal for my students is to understand how changes in the correlation coefficients of their observational data upon which they derive their lines of best fit can lower the accuracy of the solution to the system.  Thank you!

I have two datasets, A and B, of weighted (x,y) pairs. I computed the best fit lines, L_A and L_B, respectively, of these datasets, and then computed the intersection of these two lines, (x*,y*).  Now, A and B are drawn from random distributions (of the form y=mx+b+e, where e is a normally distributed error term). I'd like to compute a confidence interval around x*. How can I do this?  A naive approach I tried involved computing confidence intervals for the slope/intercept estimates of L_A and L_B, generating approximate distributions for those 4 parameters, and repeatedly randomly sampling from these distributions. But a given line's slope and intercept estimates are not independent of each other, and I wasn't sure how to salvage this approach to account for that.


When I insert a CD Rhythmbox automatically starts. How can I disable this and make a different program start when a CD is inserted?  I have looked at System Settings and cannot find any options for altering which program is opened when a CD is inserted.

I have updated to ubuntu 11.10. The problem is when I plug in my external harddisk,all the files are trying to get opened with movie player. Also when I click the icon of external harddisk which shows up automatically when we plug in external harddisk in the right side panel, movie player opens up and try to open the files in it.   How can I change this default opening program from movie player to file browser?


I do some photography, and I was trying to copy all of my recent raws (.NEF files, since I use a Nikon camera) from my SD card to an HDD that I have mounted (formatted in NTFS) using the basic copy/paste function in Nautilus. During the file transfer, my system crashed for some unknown reason (this has been happening occasionally recently, although I don't believe the mounted HDD is at fault). When the system rebooted, I attempted to continue the file transfer, but it kept running into an error. I then browsed to the destination folder in Nautilus, and it simply said "Folder is Empty." Concerned, I went to the command line and received this output from ls:  username@localhost:/path_to_main_folder/destination_directory$ ls ls: reading directory '.': Input/output error   Switching to the main folder, I got this output from ls -l:  username@localhost:/path_to_main_folder$ ll | grep destination_directory drwxrwxrwx 1 username username   1036288 Apr 14 15:27 destination_directory/   So, strangely, ls sees that the destination directory must have sizeable contents, but can't actually see what's inside the directory. Similarly, cp also spits out an input/output error. The HDD seems otherwise fine - all other files are perfectly intact, it's just that one folder.  Is there any way I can potentially recover this data from this broken directory?

About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 & Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk.


When loading SE sites in the browser is slow, I see scorecardresearch.com flashing by in the browser status bar.  The page source shows that scorecardresearch.com/beacon.js is retrieved.  What data is collected and why (specifically related to SE sites)?  Their website does not say much:     ... a leading global market research effort that studies and reports on Internet trends and behavior. ScorecardResearch conducts research by collecting Internet web browsing data and then uses that data to help show how people use the Internet, what they like about it, and what they don’t.   and     For web tagging, participating websites agree to deploy a special code throughout their sites

OK, so I noticed that on every page load (at least here and on Stack Overflow but guess on any Stack Exchange site) there is request for that external JS file:   () Who are we signalling to? For what purpose?  Seriously now, this JS is generating a pixel aka  but I couldn't find anywhere what Stack Exchange is doing with this information or who can access it. I went through the  and found reference to Google Analytics which is totally fine, but the beacon or  (beacon host) are not mentioned there. This is a sample of the data passed using the beacon:    The marked number is the same on all sites and doesn't change per page so it's either user based or machine based. Can I get some details about this? Update: following  I checked the page source and indeed c2 appears to be the Stack Exchange ID: _comscore.push({ c1: "2", c2: "17440561" });  So from what I see, they just measure amount of page hits, without actually collect anything user or browser related.


Having a struggle finding a lie algebra homomorphism between these two spaces. So i know that $\mathbb{C} \cong \lambda\left( \begin{array}{ccc} 1 & 0  \\ 0 & 1  \\ \end{array} \right) $, where $\lambda \in \mathbb{C}$. A basis for $sl(2,\mathbb{C})$ is $ \{\left( \begin{array}{ccc} 1 & 0  \\ 0 & -1  \\ \end{array} \right),  \left( \begin{array}{ccc} 0 & 1  \\ 0 & 0  \\ \end{array} \right),  \left( \begin{array}{ccc} 0 & 0  \\ 1 & 0  \\ \end{array} \right) \}$.  The dimension of $< \left( \begin{array}{ccc} 1 & 0  \\ 0 & 1  \\ \end{array} \right), \left( \begin{array}{ccc} 1 & 0  \\ 0 & -1  \\ \end{array} \right), \left( \begin{array}{ccc} 0 & 1  \\ 0 & 0  \\ \end{array} \right), \left( \begin{array}{ccc} 0 & 0  \\ 1 & 0  \\ \end{array} \right)>$ is 4, and so this space generates $gl(2,\mathbb{C})$. So these two spaces are isomorphic as vector spaces, but I can't seem to find a function that would induce a lie algebra isomorphic. I tried defining a homomorphism by   $\varphi : gl(2,\mathbb{C}) \rightarrow sl(2,\mathbb{C}) \oplus \mathbb{C}$  by,  $\varphi(A) = (\varphi_1(A),\varphi_2(A))$  where $\varphi_1(A) = \left( \begin{array}{ccc} a & b  \\ c & -a  \\ \end{array} \right)$  $\varphi_2(A)= tr(A)$  where $ A = \left( \begin{array}{ccc} a & b  \\ c & d  \\ \end{array} \right) $ but this did not preserve the lie bracket. Any insight as to what this homomorphism would be?

Hi I just start learning Lie algebra and there is one hw question I don't really understand how to do, hope somebody give me some hints. $L_1,L_2$ are Lie algebras. $L=\{(x_1,x_2):x_i \in L_i\}$. Lie bracket of $L$ is $$[(x_1,x_2),(y_1,y_2)]=([x_1,y_1],[x_2,y_2])$$ Call $L$ the direct sum of $L_1,L_2$. The question is to prove $gl(2,\mathbb C)$ is isomorphic to the direct sum of $sl(2,\mathbb C)$ with $\mathbb C$, the 1-dimensional complex abelian Lie algebra.  I have think about this for so long, but couldn't find a function that keeps the bracket structure. Can somebody help me with this. Thank you very much.


int main() {         const double PI = 3.1415926536;         cout << PI << endl;         return 0; }   why my output is 3.14159 ? It seems like the output is treated like a float..? I expected the value unchanged with all the decimals.

In my  I was printing a double using cout that got rounded when I wasn't expecting it.  How can I make cout print a double using full precision?


I want to know how to prove $\sqrt{18}$ is irrational using method other than proof by contradiction. I have always been taught to prove irrationality using proof by contradiction. So when I was asked this in my exam I was really surprised. Can anyone think of other methods to prove this? Please help. Thank you.

Per now, I have basically come upon proofs of the irrationality of $\sqrt{2}$ (and so on) and the proof of the irrationality of $e$. However, both proofs were by contradiction.  When thinking about it, it seems like the definition of irrationality itself demands proofs by contradiction. An irrational number is a number that is not a rational number. It seems then that if we were to find direct irrationality proofs, this would rely on some equivalent definition of irrational numbers, not involving rational numbers themselves.   Are there any irrationality proofs not using contradiction?