I am looking to insert a rectangle using the RGB(217,217,87) color. This color looks like   I use it with TikZ that way {rgb:red,217;green,217;blue,87}  However, when generating the PDF, I get this color output   Why did the color change between the .tex file and the output PDF ?  Full code if needed. The main.tex here is  \documentclass[../main.tex]{subfiles} %main.tex contains : %\usepackage{tikz} %\usepackage{subfiles} %\usetikzlibrary{babel} %Résouds les incompatbilités babel/pgfgantt %\usetikzlibrary{shapes,arrows} %\usetikzlibrary{positioning,calc} %Pour les positionnement absolus sur les couvertures  \graphicspath{{../res/img/}{res/img/}}  %\newcommand{\utbmyellow}[0]{{rgb:red,217;green,217;blue,87}} %\newcommand{\utbmpurple}[0]{{rgb:red,128;green,92;blue,139}}  \newcommand{\drawabsoluterect}[3]{ \draw [draw=#1,fill=#1]($(current page.north west)+(0cm,#2)$) rectangle  ($(current page.north west)+(\paperwidth,#3)$); }  \newcommand{\frontcover}[0]{ \begin{tikzpicture}[remember picture,overlay] %Dessine l'image en haut (Hauteur 9cm) \drawabsoluterect{red}{0cm}{-9cm}  %Dessine le label UTBM (Hauteur 0.8cm) %\draw [draw=black,fill=black]     %   ($(current page.north west)+(-0cm,-9.8cm)$) rectangle ($(current page.north west)+(\paperwidth,-9cm)$);     \drawabsoluterect{black}{-9cm}{-9.8cm}  %Dessine le rectangle violet (Hauteur 2.8cm)     \drawabsoluterect{{rgb:red,128;green,92;blue,139}}{-9.8cm}{-12.6cm}  %Ajoute le nom du projet  %Dessine le rectangle gris (Hauteur 0.95cm) \drawabsoluterect{gray}{-12.6cm}{-13.55cm}  %Ajoute le label de l'UV %Dessine le rectangle jaune (Hauteur 12.5cm) \drawabsoluterect{{rgb:red,217;green,217;blue,87}}{-13.55cm}{-26.05}  %Ajoute le nom du stagiaire %Ajoute le nom de la société %Ajoute l'adresse de la société %Ajoute le nom du tuteur %Ajoute le nom du suiveur %Dessine le logo UTBM en bas à droite %Dessine le logo entreprise en bas à gauche \end{tikzpicture} }  \begin{document} \thispagestyle{empty} \frontcover \end{document}

I believe I've correctly followed the manual in defining a custom background color in the example below.     But as the example shows, the background color is black rather than an extremely pale beige.    Could anybody advise what I'm doing wrong please?  \documentclass{beamer} \definecolor{MyBackground}{RGB}{1.0000    0.9451    0.6549} \setbeamercolor{background canvas}{bg=MyBackground} \begin{document} \begin{frame} Hullo world \end{frame} \end{document}


I had applied twice for a UK visit visa in January for the purpose of sitting the PLAB 2 medical exam , but my applications were refused , though my cousin who is a consultant doctor in UK-NHS sponsored me for the visit.  The first refusal was because I didn't provide a bank statement, and the hotels that I booked were found to be cancelled ( I cancelled the bookings because my cousin advised to do so as he was more aware of better hotels ).  In the second application , I provided my bank statement. But however the application was refused again on the grounds that the statement contained only two transactions and didn't reflect my income and savings.  I am a doctor and live in Iraq . I receive my salary in cash like most governmental employees here. I have tried to make an active bank statement in the last 5 months with numerous cash transactions so that they can mimics my savings and expenditure.  I am looking forward to hearing assistance regarding this soon , it's really frustrating.  Kind regards  Refusal papers 1 & 2

I had applied for a PLAB (Doctors) Visa for the UK to appear in PLAB test. I got refused on the basis of two recent large deposits in the bank statement I provided (my mothers). In reality, these are my own savings which I had deposited in her account to make it more strong. The only objection I got was that I must provide evidence for the source of these deposits. Other than this, I have previously travelled to the UK and USA as well as other parts of the world and my travel history is fine. Can someone please advise on how to proceed and re-apply?


I learned some time ago that in some cases the "characteristic" of an object, like "found" with respect to "data" is put after the object, i.e. if we found some data we should refer to them as "data found" not "found data". Example sentence:     The findData() function returns the data it finds. To use the data found, one must call useData().   I'd like to read more about this construct, but I'm having a hard time trying to formulate a Google query.  Thus my question, what is this construct called?

For a long time I'm having trouble understanding the difference between two kind of expressions like those below in terms of meaning, not grammar:          Excited people are looking forward to seeing this event.   People excited are looking forward to seeing this event.         EDITED TO USE CLEARER EXAMPLES:        "All navigable rivers are being patrolled."   "All rivers navigable are being patrolled."      As a native speaker, how do these expressions in bold sound to you? Is there any difference in meaning between examples #3 and #4? If so what is it, and why is this so?


The Canon EOS 5D Mark IV has a 30.4 megapixel sensor.  Does that mean that it can produce ~30 megapixel images?

I have a Casio EX-S12. It has a setting for image size, but also a separate setting for what it calls "image quality". There are three image quality values: "Fine", "Normal", and "Economy".  The Casio manual is not clear on what image "quality" actually means -- specifically how it's different from image size. All they say is that the "Fine" setting "helps to bring out details when shooting a finely detailed image of nature that includes dense tree branches or leaves, or an image of a complex pattern." I'm confused because isn't this what image size is all about (more pixels = more detail)?  In terms of memory usage, the manual also says that for a 5 megapixel picture, a "Fine" image takes up 2.99 MB, a "Normal" image takes up 1.62 MB, and an "Economy" image takes up 1.12 MB, so this "image quality" setting of theirs is certainly having a significant impact on memory usage.  My question is, what exactly is "image quality", if it's not image size? What is the "thing" that is taking up additional memory?  Thank you.


Hai All,       I am in a problem while doing my new project in WPF using MVVM pattern.As you all know in MVVM all the datas in the entities are directly binding in the XAML in the presentation.In a normal text box we can bind the data by telling the path,but my problem is how can we bind data to a richtext box.

To do DataBinding of the Document in a WPF RichtextBox, I saw 2 solutions so far, which are to derive from the RichtextBox and add a DependencyProperty, and also the solution with a "proxy".  Neither the first or the second are satisfactory. Does somebody know another solution, or instead, a commercial RTF control which is capable of DataBinding? The normal TextBox is not an alternative, since we need text formatting.  Any idea?


I have some conversations in Messages.app that I have previously closed.  I would like to find one of them again.  These were not deleted, merely closed.  How can I get them back once again?

So I can close a conversation in Messages on my Mac and it handily disappears.  I can't seem to figure out how to re-open that conversation manually (as opposed to getting a new message in that conversation, that is).  Closing means on the left panel of Messages. Hover over a person. An X appears in the middle of their "card" on the right. Click it. This closes the conversation and does not delete it.    Does anyone know if reopening these conversations is possible?


I asked , and I specifically detailed in the answer that I needed to do it without a subquery over the full table. I am looking for a way to do it like MySQL does, or use a library that has GROUP_CONCAT() built in as an aggregate function, or if I have to a custom C# CLR .dll. I even outlined why I cannot use a subquery / "The usual workaround for SQL Server" and showed that it would take 4 years to complete.  Someone commented pointing to a 'similar question' that only has subqueries as the answer. I again explained that I was looking for a solution without subqueries. I then got my question downvoted (likely by that user).  Now, despite my efforts, there is a 'Possible Duplicate' banner at the top, again linking to the answer with subqueries. I have edited my question to make it clear both in the title AND in the first sentence that subqueries are unacceptable.  How can I remove the 'Possible Duplicate' banner, or if I need more rep ask it to be removed?

I asked a question regarding a very specific feature of a program and whether or not it works with a larger program.  Within hours someone had marked it with "This question may already have an answer here of a similar question, but not related to my question.  The question I asked IS NOT ADDRESSED in the referred-to question. It's frustrating to spend half an hour putting together an intelligent and specific question, and then have someone mark it as a duplicate (or possible duplicate), which apparently causes people to skip over my question. I haven't received any more responses since the question was flagged.   Two questions:  (1) How do I get this flagging removed and (2) what's the best way to prevent these "helpful" flaggings in the future?


I just started my research career, and I may have made a mistake in the Supporting Information part of one of my papers. Any advice would be greatly appreciated. Long story short: I published two papers, and they are all about mathematical modeling. For the first paper, I put the detailed model setup and parameters in the supporting information. For the second paper, I basically used the same model but expanded model capabilities, and I still listed the model setup and parameters in the SI part. The model setup and configurations for these two papers are basically the same, such as tables, equations, languages, etc. I sort of copy-pasted the key tables and equations from my first paper to my second paper, but they are all in the SI part, and I cited that the model setup and parameters are from the first paper. So I wonder if what I did in my two papers in the SI part represents a plagiarism problem? If yes, are there any ways to make it correct? Please advise me.

I am planning to write several papers exploring various aspects of the same scientific question. Each of these papers must have an introduction which motivates it and explains the relationship between the problem and what others have studied in the past. It would be fantastic if I could simply copy-and-paste the same introduction, or, at least, 90% of it.  This seems to me to be ethically unproblematic. After all, I need to say the exact same things every time, and I certainly don't mind the self-plagiarism. Am I hurting the reader in any way? I suppose I might be, if the reader desired an introduction which consists of original material, but that is an odd desire, isn't it? Its the research, the stuff that follows the intro, that is original. Sadly, I have gotten wind that the majority of the research community apparently does not agree with the sentiments expressed in the previous paragraph. This leads me here to ask a series of related questions:  To what extent is self-plagiarism in non-technical bits considered acceptable? I often see authors recycle paragraphs but I have never seen anyone cut-and-paste the entire section outright. I'd be particularly interested in learning whether norms on this vary across different scientific communities.  How often do scholars find themselves trying to same the same thing in different words to avoid self-plagiarism?  Supposing I insert a sentence to the effect of: "The introductory section 1.2 is taken verbatim from the author's earlier paper [1]." How likely are journal editors and reviewers to complain about this?   By the way, I am fairly certain they would be very likely to complain about a sentence to the effect of "We refer the reader to [1] for motivation to study this problem and a discussion of its relation to prior work."


I was doing a review task and I clicked on add a comment.  This immediately popped up:    This is not the first time that this has happened.  Now I am banned from completing review tasks.  (A) I assume that this is unintentional and should be fixed (B) Is there any way to reinstate my ability to review?

I just failed these   in First Post, I read the question and thought it seemed reasonable but the user was deleted so to be on the safe side I clicked add comment and I failed the audit.  I'm not sure why adding a comment would be considered a negative action, is the correct option to click No Action Needed or edit?  What was I supposed to do in this situation?  Adding a comment should not be a review audit fail.


So basically, I've rendered a scene, and it looked rather dull than what the viewport showed me. Not knowing what exactly caused the problem, I opened up a new blend file and checked to see if my base setup was free of this problem, turns out it wasn't.   Seems the white gets ever so slightly greyish and it's very very annoying. I don't know what could possibly be wrong. Tried to reset my startup file, only to find out, my startup file was the default! What do I do!

I already searched the internet but could not find a solution to this. Maybe it is the same question as  but there was no answer.  I want to render a video with tracking, but the output "loses" color information and gets kind of greyish. I first thought that it is related to the renderer, but it happens in Cycles and Eevee. Therefore i made a sample image, added it to the image sequence editor and rendered it as 1 frame. Resulting in the same problem.  I placed the original image beside blenders output so that you can see the difference. The only idea I came up with is that something with the lighting is not correct but I can't find a setting for that.  I am using Blender 2.80 with the default settings. Only set the output resolution to match the input resolution.


I am planning to go to Spain to celebrate the New Year, but before then, if my visa situation permits, I also plan to go to Croatia in November.   Due to me working abroad, I will only have time to apply for one visa.  The question is, if I state in the visa application to the Spanish Embassy that I am going to Croatia for 5 days in November in the first trip, then leave the Schengen area for a month and then go to Spain for 10 days during the New Year for the second trip, would it be reasonable to expect the Spanish Embassy to provide me with a multiple entry visa starting from November or is this just a pipe dream?  Thanks for your kind help.

In case, if I get a multiple-entry Schengen visa in one of the embassies in Ukraine, Kyiv - should my first trip be to the country which issued the visa?  Any there any requirements of this sort? Does this condition vary depending on embassy which issued the visa?  What are the possible consequences on not visiting that country first? Does it somehow depend on country where the embassy is (i.e. non-Schengen and not EU members)?


I would really like something like  * First Bullet   * third Bullet * Second Bullet  * Fourth Bullet   I've tried using tabular and itemize, but \item does not show the bullet.  How can I achieve this?

When I use following MWE for getting itemized text in two columns, the item in the list sometimes take a "justified" formatting and thus there is significant space in between two words. This produces a poor looking two column list. How can I make them align to the left, thus improving the look?   \documentclass{article}    \usepackage{etoolbox}     \AtBeginEnvironment{itemize}{\begin{multicols}{2}}    %%% this line     \AtEndEnvironment{itemize}{\end{multicols}}            %%% and this one     \usepackage{multicol}     \begin{document}             \begin{itemize}     \item my first item     \item my second item     \item my third item in itemized environment     \item my forth     \item 5     \item 6     \item 7     \item 8     \item 9     \item 10     \item 11     \item 12     \item 13     \end{itemize}     \end{document}


How can I achieve this type of illumination?   This is my result, and it isn't similar as image above  Can anyway tell me the scene setup, and material node setup? Thanks

I need to make a part of a texture glow slightly. Like Killer Crocs eyes (see image below)     How do I do this?  I added a black and white texture (white for the glow. But then this happened.     There are strange colors around the eyes. Also how do I change the white glow to red?


According to this  ( and some other sources I have found ) more bandwidth on a wire means more bit rates per second...   Can someone try to explain why this is so as simple as possible?   This is all I know so far ( that I was able to learn by myself: )   -> Data is sent through a wire using frequency modulation, meaning, the voltage on the wire changes over time. At the end node, this signal is decoded.   -> A voltage in a specific frequency can be sent over a wire. ( Like a voltage change with a frequency of 5 Hz. ) That will be a sinusoidal signal.   -> To represent a data ( something like 10111001 ), you need to mix up a number of voltages in different frequencies so that it looks something more like:   My exact questions are:   -> Can this be done with any frequencies that is chosen? For example, can I achieve the desired signal with using frequencies between 10 - 20 Herz, OR 50 to 60 Herz? Or do I need specific frequencies?   -> How does the bandwidth ( the frequency range I can use ) affect, how fast the signal goes on the wire? ( the bit rate? )   I am all trying to learn this stuff by myself with not much of an Electrical Engineering background, so if you can try to keep it simple, it would be very helpful.  Also any advise on background info that I require first is much appreciated.

In the infamous  the bandwidth of the channel is measured in Hz (Hertz) but the channel capacity is measured in bps (bits per second). So, either I'm missing something obvious or there's a dimensional mismatch in the equation.. Can somebody please help me understand?


I wondered why i can change the title of my current frame after passing it eg. to another class. If i pass my current frame in the constructor of another class by the this reference, why am i able to change the size or the title of the window? I thougt only values were passed by methods and no object instances.  I know this sounds a little confusing but its not a question about programming syntax but about how stuff works in java.  I would be happy if someone could tell me the answer.

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


My php code is not successfully inserting records to my database. Mysql is giving me a syntax error on the line where I specify INSERT INTO     $conn = mysqli_connect($dbhost, $dbuser, $dbpass) or die ($dberror1);       $select_db = mysqli_select_db($conn, $dbsel) or die ($dberror2);      $sql = "INSERT INTO `lit_order_table` (`email`,  name_first,name_last,company,address,apt,city,state,postal_code,country,ord_options,quantity,message)  VALUES ($email,$name_first,$name_last,$company,$address,$apt,$city,$state,$postal_code,$country,$ord_options,$quantity,$message)";   $conn->close();

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


How could I reached the cap with upvotes only more than the times I got at least 200 rep :     days represented 168   rep cap was reached via rep from upvotes only on 14 days   earned at least 200 reputation on 13 days   earned 0 reputation from suggested edits   So...     rep cap was reached via rep from upvotes only on 14 days   This line means I got 200 from Upvotes only so this is eligible in the badge progress.     earned at least 200 reputation on 13 days   This is all the times I got 200 rep regardless.  I mean on the 14th day were I got 200 from upvotes... didn't I reached at least 200 ?

I noticed a minor issue - or does this affect the epic and legendary badge calculation?  I just open the  and noticed:  rep cap was reached via rep from upvotes *only* on 26 days earned at least 200 reputation on 23 days   That is impossible. My rep was capped on 26 days but I reached 200 on only 23 days? It would make sense the other way around.


I would like to explain the twin paradox in SR, but not considering that the paradox is due to the fact that the travelling twin is undergoing acceleration, which makes him a non-inertial observer, not explainable so with $SR$. I mean: let the no-moving twin (S1) and the second moving twin (S2), that moves away from S1 of a constant velocity $v$ until a certain time in which he reverses its velocity from $v$ to $-v$, until he meets again his twin in D. If we suppose $S1$ measure the interval of time associated to the first path as $T$, the total interval of time measured (by symmetry) is $2T$. Instead for the "time dilation phenomenon" the moving twin would measure an interval of time that is $\beta 2 T$, where from Lorentz transformations $\beta=(1-\frac{v^2}{c^2})^{-\frac{1}{2}}$. So since $\beta <1$ this causes that the second twin looks younger than the no-moving twin. But there is a mistake in using the rules of $SR$: it is referred to the turning point $P$. In fact if for the no-moving twin we can adopt the symmetry property to consider as total amount of time $T+T$, it fails for the second twin. In fact he does not adopt the same reference system in the first and second path, where the two paths are differentiated in according to the change of velocity (OP->PD). This means that instantly the straight line of instantaneous event with respect to $P$ rotates (passing from red to green) and so if before the reversing on velocity, the event $B$ was instantaneous to $P$, after it will be $C$. So the length of the segment $BC$ gives us the missing time in $2T$ with respect to $2\beta T$. In P in fact we have to imagine an instantaneous growth by the rate given by $BC$ for the second twin. $\textbf{Questions:}$ 1)First of all do you think I have understood well the situation?  2) With my argument I have  explained that we commit a mistake if we don't consider in total 3 different inertial observers...but what I can't understand is: now what is the conclusion? Is that the difference in time is given by $BC$? Or we can say that if we consider three different inertial observers is no more true that the second twin looks younger once he met again his twin?

I read a lot about the classical twin paradox recently. What confuses me is that some authors claim that it can be resolved within , others say that you need . Now, what is true (and why)?


I just got to chapter 4 where       the gang moves to the swamp   and I bought the gold horse from the stable for $950. I only bought the horse because it was a war/racing horse breed. I did a couple of missions       in Saint Denis   and then I returned to camp to do a Strauss mission when you go and collect debts from people who owe the gang. On the way to a "Catfish Jackson" house I was met with 10+ bandits that in the end they ended up killing me. After I died it put me back in the game but it gave me a Tennessee Walker horse as my main horse. I have died by bandits before and I have always responded back with the horse that I died with and this just confused me. I wasn't too mad because I still have about $7000 but I am just curious of what happened. If you have any idea please respond.

At some point I accidentally ran off a cliff with my War Horse which resulted in a death. After respawning, I noticed my War Horse was gone and the default Tennessee Walker was my main horse.   How did the War Horse disappear and is it possible to retrieve it?


In QGIS 3.2, I want to show text labels on a map that are coming from a polygon attribute - easy enough. But I want to have the flexibility to set the wrap text position in a certain space, not just at all spaces - as the text now looks ugly in that layout with a word on each line. Is there any way that can be done? e.g., make the only text wrap after the word "Regis" in this example: "Newtown Regis and Seckington".

I try to create a multiple lines label for this this polygon:     I red       and tried to use the "wordwrap" function with this expression:  wordwrap('high sensivtity area - red',10  )   and in the output preview (down the Expression string builder) it look fine and this is the result i'm seeking - but when i choose OK - nothing change in the map.  I don't want to use the option to put a space in the 'Wrap on character' section, because i don't want each word i separate line


I'm trying to better understand singular homology groups. Standard examples like spheres and tori make it seem like $H_i(X)$ is generated by a subset that is in bijection with $i$-dimensional holes in $X$. Even more, they make it seem like those groups are freely generated by such subsets, but I guess it would be naive to think THAT might hold generally. Could someone throw some light on the way these groups relate to holes in a topological space? Also a short comment on what changes when we use a ring of coefficients different than $\mathbb{Z}$ would be appreciated.

I am studying homology groups and I am looking to try and develop, if possible, a little more intuition about what they actually mean. I've only been studying homology for a short while, so if possible I would prefer it if this could be kept relatively simple, but I imagine it is entirely possible there is no real answer to my query anyway.   As I said above, I want to gain a little deeper understanding of what the n-th homology group actually means: I can happily calculate away using Mayer-Vietoris but it doesn't really give me a great deal of intuition about what the n-th homology group actually means. For example, with homotopy groups, the fundamental group is in some sense a description of how loops behave on the object in question, and it is obvious to me why that is what it is for say, the torus or the circle. However, I have no idea what, if anything, I am actually saying about a triangulable object when I talk about it having 0-th homology group this or 1st homology group that.  The best I have been able to find online or in my limited book selection is the brief description "intuitively, the zeroth homology group counts how many disjoint pieces make up the shape and gives that many copies of $\Bbb Z$, while the other homology groups count different types of holes". What 'different types of holes' are there, roughly speaking? I appreciate that it may often be completely non-obvious what the low-order homology groups are for some complicated construction, but perhaps in simpler examples it might be more explicable. Are there (simple) cases where I could say, just from looking something like e.g. the torus, what its zero-th or first or second etc. homology group was based on the nature of the object? I guess in the zero-th case it is, as my source () above says, related to the number of disjoint pieces. Can we delve deeper than this for the other homology groups?   Any book/website suggestions would be welcomed (preferably websites as I am nowhere near a library!) - I have Hatcher but not a great deal else, and I haven't gleaned as much as I wish to from that alone. Of course I know that there is a great deal we don't know about homology groups even today, so I don't expect some magical all-encompassing answer, but any thoughts you could provide would be appreciated. I hope this question is appropriate for SE Mathematics, apologies if not! -M


I want to flush my float (after an obviously necessary pre-pagebreak, since otherwise the float would be printed there anyway) and continue the text right below this flushed float with no additional page break after the float. My question is, if I have done this correctly.  The problem:  \documentclass{article}  \usepackage{lipsum} \usepackage{graphicx}  \begin{document}  \lipsum[1-3]  \begin{figure}[h] \includegraphics[width=\textwidth]{example-image-a} \caption{I am a figure} \end{figure}  \lipsum[2]  \end{document}   I was curious, if there exists something like \flush:  \documentclass{article}  \usepackage{lipsum} \usepackage{graphicx}  \begin{document}  \lipsum[1-3]  \begin{figure}[h] \includegraphics[width=\textwidth]{example-image-a} \caption{I am a figure} \end{figure}  \flush %error  \lipsum[2]  \end{document}   My current solution:  \documentclass{article}  \usepackage{lipsum} \usepackage{graphicx} \usepackage{float} %does this only affect the single figure with 'H'?  \begin{document}  \lipsum[1-3]  \begin{figure}[H] %is this the right way? \includegraphics[width=\textwidth]{example-image-a} \caption{I am a figure} \end{figure}  %\clearpage %this is wrong  \lipsum[2]  \end{document}

Is there a command which does the same like \clearpage (typesetting all floats which have not been typeset yet) but then does not insert a pagebreak but continues with the following text/graphics on the same page?


i'm new to python (about a week or less) and I'm using python 2.7.  i'm writing a program to check ip validation and classes and i want to make the output in color, so it will be more readable on terminal to the user.  i have already tried this:  # to make the text purple for example. print '\033[95m' + "This is a purple output" # if i'm writing another simple print after the first one it will be purple too print "Example" # now this statement purple too   but when i use this example the output after the first print method become purple too.  Thank for everyone who try.

How can I output colored text to the terminal in Python?


Generalized linear models have become so central to effective statistical data analysis, however, that it is worth the additional effort required to acquire a basic understanding of the subject. I am a starter in Statistics and I really having trouble understanding the GLMs. I mean how GLMs work and why GLMs are required. Can anyone shed some light on GLMs?

I always have a hard time explaining statistical techniques to audience with no statistical background. If I wanted to explain what GLM is to such audience (without throwing out statistical jargon), what would be the best or most effective way?  I usually explain GLM with three parts -- (1) the random component which is response variable, (2) the systematic component which is linear predictors, and (3) the link function which is the "key" to connecting (1) and (2). Then I would give an example of linear or logistic regression and explain how the link function is selected based on the response variable. Hence it acts as the key connecting two components.


Okay this might not be tricky at all for some but at the moment really screwing up with my head.   First of all i don't know what engine i am dealing with, but it doesn't seem to identify uppercase.   I have a string for example  Circuit Ref      Service Type      A End Address      Z End Address            52GD J32SD41 O2AE EVC001      Evolve Internet   And I am only trying to extract the string "52GD J32SD41 O2AE EVC001". I have already tried quite a few combinations like    [0-9A-Z]{4}\s[0-9A-Z]+\s[0-9A-Z]+\s[0-9A-Z]+ [A-Z0-9]{4}\s\W+\s\W+\s\W+ [A-Z0-9]{4}\s[A-Z0-9\s]*[A-Z0-9\s]*[A-Z0-9\s]*   Nothing seem to work...I want to keep the expression fairly flexible as the expression can change order of the letters and digits. but the pattern is mostly same. Any nudge in a right direction will be greatly appreciated.  Thanks

I've seen lots of examples of making an entire regular expression case-insensitive.  What I'm wondering about is having just part of the expression be case-insensitive.  For example, let's say I have a string like this:  fooFOOfOoFoOBARBARbarbarbAr   What if I want to match all occurrences of "foo" regardless of case but I only want to match the upper-case "BAR"s?  The ideal solution would be something that works across regex flavors but I'm interested in hearing language-specific ones as well (Thanks )  Edit  The link Espo provided was very helpful.  There's a good example in there about turning modifiers on and off within the expression.  For my contrived example, I can do something like this:  (?i)foo*(?-i)|BAR   which makes the match case-insensitive for just the foo portion of the match.  That seemed to work in most regex implementations except Javascript, Python, and a few others (as Espo mentioned).    The big ones that I was wondering about (Perl, PHP, .NET) all support inline mode changes.


I am having issue with my trackpad of MacBook Pro Retina early 2015, As it was working properly a day before, the Hardware Keyboard and other things working properly.   I did tried Reseting SMC, PRAM, but no luck, I am on macOS Sierra 10.12.6.  Any suggestions?

The trackpad on my Macbook Pro of 2 years has suddenly stopped working out of blue.  The trackpad doesn't move, respond to any gestures nor do any clicks work. This is really frustrating as I used gestures a lot to navigate around my laptop, and even though I use a bluetooth mouse it makes using my laptop unnecessarily laborious.  Does anyone know what may be causing the problem, and any solutions?


I'm doing a fairly simple calculation to compute the difference in Business Hours between two DateTimes. This is largely functional, but in the case of short differences (~10 minutes) this gets rounded down to 0. For example, if using a Long value representing 9 minutes (3300000), the following will get rounded to zero:  public static Double diffInBusinessHours(DateTime startTime, DateTime endTime, Id businessHoursId){         Long diffInMilliseconds = BusinessHours.diff(businessHoursId,startTime,endTime);         Double diffInBusinessHours = diffInMilliseconds/(1000*3600); //gets rounded to 0.0         return diffInBusinessHours;     }   while this will correctly return 0.9166666666666666:  public static Double diffInBusinessHours(DateTime startTime, DateTime endTime, Id businessHoursId){         Long diffInMilliseconds = BusinessHours.diff(businessHoursId,startTime,endTime);         Double diffInBusinessSeconds = diffInMilliseconds/1000;         Double diffInBusinessHours = diffInBusinessSeconds/3600;         return diffInBusinessHours;     }   Why is this happening?

Ok I hope I am mising something here as I really don't want this to be a bug.   The following piece of code returns 2. Per my understanding of the ceiling functionality, the result should be 3 because 7/3 is roughly 2.33333 and the ceiling should return 3.   Is this a bug or am I missing something? Thanks.   Integer pageNumber = (Integer) Math.ceil(7/3);   This returns 2 and not 3 as expected.   It works fine on other input. For example:  Integer pageNumber = (Integer) Math.ceil(8/5);   This returns 2 as expected.


Evaluate $$\displaystyle\lim_{x\to 0} \frac{x\cos x - \ln (1+x)}{x^2}$$  Here's my method but that results into an error.   \begin{align} \lim_{x\to 0} \frac{x\cos x - \ln (1+x)}{x^2} &=\lim_{x\to 0}\frac{\cos x}{x} - \lim_{x\to 0}\left(\frac{1}{x}\right)\lim_{x\to 0}\left(\frac{\ln(1+x)}{x}\right)\\ &= \frac{\cos x}{x} - \frac{1}{x} \\ &= \frac{\cos x -1}{x}\\ &= 0 \quad \text{(either by L'hôpital or some manipulations)} \end{align}  I have used the fact that   $$\lim_{x\to 0} \frac{\ln(1+x)}{x}=1$$  And the answer seems to be $\frac{1}{2}$.  I can do it in different ways (L'hôpital precisely) but please point out my error.

I came accross: $$\lim_{x \to\ 0}\frac{x\cos x - \log (1 + x)}{x^{2}}$$  I tried the following please tell me where I 'm wrong:  $$\lim_{x \to\ 0}\frac{x\cos x - \log (1 + x)}{x^{2}} $$  $$\text{(Dividing by }x)$$   $$=\displaystyle\lim_{x \to\ 0}\dfrac{ \cos x - \dfrac{\log (1 + x)}{x}}{x} $$  $$=\lim_{x \to\ 0}\frac{\cos x - 1}{x} $$  $$=\lim_{x \to\ 0}\frac{-2\sin^{2} \dfrac{x}{2}}{x} $$  $$=\lim_{x \to\ 0}\frac{-2x\sin^{2}\dfrac{x}{2}}{(\dfrac{x}{2})^{2}\times 4} $$ $$\lim_{x \to\ 0}\dfrac{-x}{2}=0$$ But Answer given is $\dfrac{1}{2}$  Please Help.


I understand that the , but what is the "H" that sometimes pops up?    Usually my indicator says "3G":    But, in addition to having an "H" now and again, sometimes it has no letters at all:    I assume this is telling something about what kind of data network I'm on, or not on, but what exactly is happening?

The signal indicator on my phone often shows "3G" or "H+" in the signal indicator. When there's no connectivity it doesn't show anything.  I'm referring to the icons in the status bar like these:      What are the different signal icons that are shown in android? I've never used an LTE/4G handset or even been on one of those networks so I'm also curious to see what indicators are used for those.


Using Virtualbox 5.0 with Windows 8.1 as host and Ubuntu 14.04.2 as guest. It is extremely slow. I have tried  1) Increasing the RAM size  2) Used multiple processors in Systems->Processor tab (have IntelCore i7 processor)  3) Enabled 3D Acceleration in Display->Screen tab  4) Increased the video memory   5) Tried enabling/disabling Extended features in the settings  6) Also tried Ubuntu-15.04 (behavior remains the same)  Here's () from a user some time back.  The system is still slow...is there anything to be done in the BIOS? and i doubt it, as my windows is pretty fast. Any help appreciated! (Thanks!)

Short summary: 14.04 is much slower than 12.04 even with more RAM assigned.  I'm using latest VirtualBox 4.3.10 on Mavericks 10.9.2. How can I make it faster?


Compute $\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}^{99}$  What is the easier way to do this other than multiplying the entire thing out?  Thanks

Well, the original task was to figure out what the following expression evaluates to for any $n$.  $$\begin{pmatrix} 1 & 1 \\ 0 & 1\end{pmatrix}^{\large n}$$  By trying out different values of $n$, I found the pattern: $$\begin{pmatrix} 1 & 1 \\ 0 & 1\end{pmatrix}^{\large n} = \begin{pmatrix} 1 & n \\ 0 & 1\end{pmatrix}$$  But I have yet to figure out how to prove it algebraically.   Suggestions?


My wife read a book decades ago where the most feared and vicious alien race in the galaxy is a race that looks kind of like a teddybear. They arrive, and start to descend upon earth to conquer it...with their muskets, cannons and dirigibles. I think it's the US Air Force that intercepts them with fighter jets and, needless to say, blows them away. Other races show up to see what has these 'teddybears' so terrified...figuring if Earthling can terrify the t-bears, then maybe they can help defeat the "scourge of the universe" (which is the t-bears, as they have gunpowder and nobody else has anything even close to that). However, space travel is apparently 'simple' and the alien races are stunned that Earthlings haven't figured it out.  Anybody know what story I'm talking about? I'd like to read it.

I read a short story (I think, but it might have been a novel), where most races discover a very easy way to travel faster than light at a certain point in their technological development.   What I remember:   The guys in wooden ships bounced around subjugating the people without FTL travel. Earth had never figured out the FTL, and so had poured its effort in a different path, achieving present day technology. The aliens were freaking out about handing the humans FTL travel. The story was told from the point of view of the aliens. I read it in the last 10 years, but there is no telling how old it actually was, although I do remember them mentioning F-18s or F-14s.


When I open Sublime Text from the terminal, I have type in   $ sublime_text <filename>   Is there any way I can change it so I can say something like:  $ subl <filename>

How can I achieve the following:  type vdm in the terminal  and that will be replaced by wine Program Files/The VDM++ Toolbox Lite v8.3.1/bin  I also wanted vdm to work in any folder I am whatsoever.


Maybe this is not the best place to ask as this seems to me like a question regarding two fields: marketing and user experience.  Hopefully some of my questions could be solved from the user experience point of view.  I've seen recently many important sites using the mouse hijacking technique to create some full screen scrollable sites, such as:    Apple (in its old iPhone 5C site)       Clearly, besides all the popular believe about the bads of using those kind of sites, there is something GOOD about it.  All those sites are in one way or another an advert kind of site. Trying to sell or show somehow the benefits of their product.  Small texts, big and beautiful images...  They can all be wrong about it, but I like to believe these companies has great UX and marketing teams and that they know what they are doing when they decide to go for one or another design for their products.  Marketing has its own books and rules, and I'm pretty sure there's something good about this design oriented to marketing.  Just wondering if somebody could point me to some articles about the topic or name some benefits from the UX point of view taking into consideration they are all advert sites.  I'm not expecting to read anything about its responsive problems and so on. If the site is designed properly, those shouldn't happen.

There are recently many websites using full screen scrolling pages since Apple launched their own with the iPhone 5C. (website not available anymore, but a reproduction can be found )  Some other examples are:            Is there any study about this practice from the UX point of view? More than about the scroll highjacking, about the use of full screen content?  It seems to me that it's an easy way to present information to the user when used properly and in a simple way, just like a good Power Point presentation. A way to show the user the most important things in a beautiful and smart way.  I see many developers complaining nowadays about this kind of sites, mainly because of the scrolling highjack, but it seems to me users in general, as well as clients, like them.  Any thoughts about this?


Background Images are not showing up in the other views other than the camera view. It will show in the camera view but not in the other orthographic views. I have tried switching the set view that the image is visible in and increasing opacity to 1.0. I am in orthographic view when I am attempting this.   Here are the specs for my computer that I am aware of:    Blender Version: 2.78  Image format: jpeg  Graphics Driver: NVIDIA   OS: Windows 8.1   Edit: Here is an image of the setup. Nothing is changed except for the preset view (using left in this case).

How do I put a backdrop behind the model that I am creating so that I can compare the picture to the model while editing?


Can I travel to Canada end of March to 4 April 2019 if my visa expires with my passport on 29 May 2019

I am from Trinidad, my Trinidadian passport and Canadian visa both expire in July. Can I still travel to Canada in April, using both documents?


I thought it was called an 'alviary' or 'alveary' (poss. 'alvary'), but I can't find anything on any search engines for it (they're mostly interpreted as bee-keeping expressions or names).  I'm sure there is a word that sounds similar, that means 'a list of all (or most) words in a language'.  e.g. a dictionary without the definitions.  Totally stumped on this one.

I really didn't know how to name this thread so I apologize about it. My question is: what is the linguistic term that refers globally to the words "vocabulary", "words", "phrases", "collocations", "expressions", "jargon", "idioms", "lexicon" etc?   I am doing an article on this and in the process of writing my paper when I put the word "vocabulary" I feel like I am referring only to single-words (e.g.: coincidence) opposite to when I write "phrase" which refers to more than one word without a verb/subject (e.g.: many thanks) or when I write "expression/idiom" it refers, generally speaking, to more words with a verb/subject (e.g: She is pulling my leg). The problem is I need to refer to these in one word, what is that word? I was thinking of "lexicon" but I am not sure. Is there something like "linguistic inventory"? I really need this word.  Thank you a lot. I hope that wasn´t so confusing.


The default version of python in my Ubuntu 18.04 is 2.7. I've already used the command:  alias python=python3  but it changes the python version temporarily, as soon as I close the terminal and re-opens it the version again changes to python 2.7.  Is there any permanent solution to this issue?

I would like to create an alias to rm command in order to have a confirmation message after executing this command. So I am creating an alias like this alias rm='rm -i'. But as far as I know this is a temporary alias and it lives until you close the terminal.  As it is explained  to save alias permanently I need to execute ~/.bash_aliases or ~/.bashrc commands in terminal and add my alias there. But when I execute ~/.bashrc I get following error message :  bash: /home/bakhtiyor/.bashrc: Permission denied   When I run ~/.bash_aliases I get another error message like this:  bash: /home/bakhtiyor/.bash_aliases: File or directory doesn't exist.   What is the actual problem and how can I solve it?


I try to cast from Object type to decimal:   Object obj = new Object();  obj = 10;  decimal dec = (decimal)obj;   but in this row  decimal dec = (decimal)obj , I get this Exception:  Specified cast is not valid.  Any idea why this unboxing can't be implemented?  Thank you in advance.

If have this in the setter of a property:  decimal? temp = value as decimal?;   value = "90"  But after the cast, temp is null...  What is the proper way to do this cast?


I'm making an application which edits specific memory addresses of a process chosen by the user. I've to convert a string for example "0x7ffe0030,0x7ffe6000" to a list of strings and for every string in the list I've to paste the plain text of the string as int for example: if the string is "0x7ffe0030", the int must be 0x7ffe0030.  I've trivially tried to do that:  foreach (var address in addressListRaw) {  int a = Int32.Parse(address); }   but it obviously doesn't work.  Console.WriteLine("Select the memory addresses to modify.\n" +             "You can write more than one address separating\n" +             "every address using the character ','\n" +             "example: 0x7ffe0030,0x7ffe6000");   string addressesRaw = Console.ReadLine(); List<string> addressListRaw; addressListRaw = addressesRaw.Split(',').ToList();  foreach (var address in addressListRaw) {  int a = Int32.Parse(address);  Console.WriteLine(a.ToString()); }

uint color;  bool parsedhex = uint.TryParse(TextBox1.Text, out color);  //where Text is of the form 0xFF0000 if(parsedhex)    //...   doesn't work. What am i doing wrong?


I've installed Ubuntu 18.04 Beta 1 on virtual machine and I was a little surprised when I checked the kernel version - it's 4.15.0-10-generic.  Kernel 4.14 is LTS, but kernel 4.15 is non-LTS  I'm new to Linux, but I read that on kernel.org.    So, will Ubuntu 18.04 finally have kernel 4.14 or 4.15?

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


I'm talking about devices for tracing hidden AC mains wires in walls like this one:   Is it correct that it uses capacitive coupling and can be approximated by the following circuit?    SPICE tools require a common ground between the mains side and the device side (resistance in this case) but it reality the device is isolated from the mains, so I'm not sure if this is still a valid approximation because of this.

How does a non contact voltage tester pen detect voltages and/or currents? Are they limited to voltages of a certain range or type (AC or DC)?  Here's some experiments I have conducted that lead to this question: Using a cheap pen I bought for a couple bucks, I can detect the usual 120V AC in an American outlet, but I also have been able to detect voltage in a USB cable connecting a switching power supply to a smartphone (this setup is usually referred to as charging one's phone). Here, of course, the voltage in question is DC with a negligible ripple. I also noticed that while the detector can detect the 5V of a phone charger cable, it cannot detect the voltage in a USB keyboard cable. The only difference between these two scenarios is the current level and perhaps some minor signaling differences.  A final question: In what voltage/current scenario would you have to use a current clamp sensor and not a non contact voltage detector for merely detecting the presence of power non-intrusively?


I am doing msc physics. And we are studying major part of scattering theory. I used Quantum Mechanics by Davydov, Griffiths, etc, to study scattering theory. But I am not understanding it properly, hence I want a specific book which will explain scattering theory very clearly.

I'm really interested in quantum theory and would like to learn all that I can about it. I've followed a few tutorials and read a few books but none satisfied me completely. I'm looking for introductions for beginners which do not depend heavily on linear algebra or calculus, or which provide a soft introduction for the requisite mathematics as they go along.  What are good introductory guides to QM along these lines?


I have been using the sklearn RandomForestClassifier to solve a binary classification problem.  For a particular sample prediction, I would like to be able to know how to change the features values to make the prediction change.   E.g. let's say I have an entry with [size = 15, width = 8, height = 13] and the model gives me aprobability = 0.9 to be of class 1. What I would like to be able to say is "change size from 15 to 10" and then your probability=0.1 for example.  Then optimally, what I would like is the smallest "gradient" in the features values to pass from one class to another (or the one that gives the most change in probability).  Maybe I'm wrong, but from what I've read the packages LIME and treeinterpreter do not provide this kind of information.

Random forests are considered to be black boxes, but recently I was thinking what knowledge can be obtained from a random forest?  The most obvious thing is the importance of the variables, in the simplest variant it can be done just by calculating the number of occurrences of a variable. The second thing I was thinking about are interactions. I think that if the number of trees is sufficiently large then the number of occurrences of pairs of variables can be tested (something like chi square independence).  The third thing are nonlinearities of variables. My first idea was just to look at a chart of a variable  Vs score, but I'm not sure yet whether it makes any sense.    Added 23.01.2012 Motivation    I want to use this knowledge to improve a logit model. I think (or at least I hope) that it is possible to find interactions and nonlinearities that were overlooked.


Let $2 \leq p < \infty$ and consider the function $f : \mathbb{R}^n \to \mathbb{R}$ defined by $$f(x) := |x|^p.$$ Then this function is mid-point convex (in fact strictly), i.e. we have that $$f\left(\frac{x + y}{2}\right) \leq \frac{f(x) + f(y)}{2}$$ holds for all $x,y \in \mathbb{R}^n$. Is there a nice way of showing this?

I'm writing some notes about analysis and want to use the fact that $|x|^p$ is convex for every $p>1$ to prove Minkowski's inequality. However I didn't wrote anything about derivatives nor limits yet. Is there a simple way to prove this?  EDIT: The only non-trivial inequalities proved yet are the triangular inequality and the Cauchy-Schwarz inequality.


I was looking for a program that could return only numbers from a string containing letters and numbers and found the code below. The program works perfectly, but introduces Character.  To my understanding char is a single letter, number or any other sign in java, but I have never heard of Character. Is it the same as char or is it completely different? How do I use it (other than the way shown below)?  and what do I need to do if I want the print in int?  String something = "423e"; int length = something.length(); String result = ""; for (int i = 0; i < length; i++) {     Character character = something.charAt(i);     if (Character.isDigit(character)) {         result += character;     } } System.out.println("result is: " + result);

I was reading  when I came across  saying something about a particular type of programmer knowing the difference between an int and an Integer in Java/C# (Object-Oriented Programming Languages).  So, what is the difference?


Can I use a 12VDC 300mA power supply to run a small 12VDC motor which draws 400mA? Will anything be damaged? Can it start a fire?

I'm new to electrical engineering, and probably asking the wrong question. Not sure how else to phrase it.  For the question, I'm going to use an example layout of simply a 9v battery attached to a toy DC motor.  From my understanding of my , the voltage coming from the battery through the motor will be around 9v. The current will be from 0amps to however much the battery can supply without frying. What decides how much current goes through the motor?


Lets say you have a nice bowl of piping hot soup.  You use your spoon and take a sip and realize its too hot.  So you blow on it a few times and now its cooled enough that it doesnt burn your mouth.  Obviously, blowing on the liquid will reduce the temperature, but is that really what is cooling it?  Or perhaps the heat is moving to the metal spoon?  Is blowing on the liquid cooling the liquid more than the heat being transferred to the metal spoon holding the liquid?

And will it cool off faster if you blow across the top of the cup or directly into the coffee?   Does it have to do with the fact that when you blow across the top of the cup the velocity of the air increases which causes an area of low pressure above the cup, resulting in steam from the coffee to be forced up and out of the cup? Or is that not it?


I was quite baffled by what happened yesterday. On Worldbuilding Stack Exchange there was a line of questions, revolving around alchemists and spoons. Given that it was quite fun, these became quite popular. However,  has been deleted, probably because some people thought they'd have to exert control over the content. Well, I gave an answer which yielded me quite a lot of points... until the question was deleted, which caused me to lose all of them.  The question is this:  What is the reasoning behind punishing answerers for deleted questions? What if an additional aspect is that the question had 40 upvotes which indicates a publicly accepted good question, and was deleted by a moderator?    The points were granted, the questioneer may have gotten the answers he/she was looking for - everybody involved put in effort, and everybody was rewarded who earned it. And all of that can be undone arbitrarily at any time, as it seems (but let's ignore that).  Imagine you work 12 months, earned your paychecks, and then the business is shut down for whatever bureaucratic reason. Now the state is taking your 12 months of wage along with destroying the business - to "undo" your work.  How is this justified? Is the reasoning as simple and technical as "the system just counts existing answers and questions"?

Why are the reputation points one gets for an answer deleted if the question was deleted? I mean, you made the effort of answering the question with valuable information, spending time for it, and then, just because the question wasn't as good as the answers, you lose reputation.  Seems very unfair to me. (I just lost about 100 points on Stack Overflow.)


I don’t know how to do it without calculus, could someone help ? How do I prove it geometrically and/or algebraically ? EDIT: $0 < \theta < \frac{\pi}{2}$ My teacher never explained it. Someone tried explaining it to me with calculus, but I would appreciate a different explanation.

Suppose $x \in (0,\frac{\pi}{2})$ and we want to prove $$x<\frac{\sin x +\tan x}{2}$$I tried to prove it by taking $f(x)=\sin x+ \tan x -2x$ and show $f(x) >0 ,when\space  x \in (0,\frac{\pi}{2})$ take f'$$f'=\cos x +1+\tan ^2 x-2\\=\tan^2 x-(1-\cos x)\\=\tan ^2 x-2sin^2(\frac x2)$$ I get stuck here ,because the last line need to be proved $\tan ^2 x>2sin^2(\frac x2) ,when\space  x \in (0,\frac{\pi}{2})$ $\bf{Question}:$ Is there a geometrical method to prove the first inequality ? (or other idea)  Thanks in advance.    $\bf{Remark}: $I can see the function is increasing $when\space  x \in (0,\frac{\pi}{2})$ like below :


I have Ubuntu Gnome 13.10. In the beginning, the first user account I created was considered as my administrator account. I changed that account to Standard now and I can't make it back to administrator and whenever I make some changes in my computer, it is asking me for a administrator password which I don't have now.

I clean-installed Ubuntu 11.10 today, and then installed VirtualBox.  This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a group, I ran the following command:  sudo usermod -G vboxusers stephane   This is a problem.  I now see what I should have run instead is:  sudo usermod -aG vboxusers stephane   The end result is I'm no longer in the groups I should be in.  Including whatever group is required to run "sudo".  When I run any command as sudo now, I get the following:  $ sudo ls [sudo] password for stephane:  stephane is not in the sudoers file.  This incident will be reported.   Is there a way to fix this, or do I need to re-install from scratch again?


I have a requirement where I should allow 0 after number and decimal number  Is there a way that I can let the user to show the number in $1.0 in this way and decimal number like $1.5 in $1.50 using JavaScript.  I tried this but it did not help me  addZero: function (q)     {         alert(q);         //var a = ("0" + q).slice(-2);         return q;     }   But I don't know how to add 0 after number and after decimal number using JavaScript.

I would like to format a price in JavaScript. I'd like a function which takes a float as an argument and returns a string formatted like this: "$ 2,500.00"  What's the best way to do this?


I'm currently researching bat social calls (not echolocation calls) and have been given a series of samples (in .wav format) and wanted to know if what I can hear is actually the social calls. Below is a Graph representation of the a sample from the data I have:    This looks fine to me. From this, I can clearly tell where the social calls are. If I play at the specific peaks, then it sounds like a bat "chirping." However, I've been told that social calls cannot be played back, and, therefore humans cannot hear them. I'm just trying to figure out what these noises, or, chirps might actually be.    is a link to the .wav file:   Thanks for your help :)

Out of curiosity, I recorded sounds in an area with lots of bats, hoping to be able to "hear" the bats communicating by lowering the ultrasound to a level down to the frequency which can be heard by a human. After a bit of post-processing, I actually hear interesting sounds, but I'm not sure about the origin. It seems that the frequency of the pulses is too low compared to bats. . Are those actual sounds emitted by bats? If not, what other animal could be the source of those sounds? About the audio The sound was recorded at 10 p.m. at  near a river, with more of a dozen bats flying in this zone. There is a bridge nearby, and the sides of the river are flat concrete, which means that there are a lot of opportunity for sound reflection (although high frequency sounds don't reflect well). Zoom H5 with the default XY directional microphone was used. The bitrate was set to 24-bit. Unfortunately, I used the sampling frequency of 48 kHz instead of the maximum 96 kHz. The following transformations were made to the original audio:  The pitch was shifted by -12 semi-tones, which means that the 20 kHz sound becomes 10 kHz, and 15 kHz becomes 7.5 kHz.   All sounds below 6 kHz were removed.  The sound was amplified.  Severe noise reduction was applied to eliminate everything but the actual sounds emitted by the bats.   The empty parts of the audio were removed.  The sound was amplified once again.   Frequency The frequency analysis of the transformed audio a peak around 9 kHz (18 kHz in the original audio), slowly fading to suddenly drop at 16 kHz (32 kHz in the original audio).   contains many sources with different indications about the frequency range of the sounds emitted by bats, only a few referencing the frequencies low enough to be heard by a human:  Frequency Produced 10kHz-120kHz Ramsey, Gabriel, McGuirk, Phillips, Watenpaugh. Holt Physical Science. New York: Holt, Rinehart and Winston Publishers, 1986.  while most agreeing on the fact that bats use frequencies higher than 20 kHz.  Most bats use frequencies in the range 20-80 kHz, only a few bats use frequencies less than 20 kHz. Long, M.R. & Savage, J.G. Mammal Evolution. New York: Harper, 1976: 108.  The observed range of 18..32 kHz seems too low compared to the sources, but I have an impression that the frequencies vary a lot between different species of bats. Pattern When viewing the audio track (see below), each cry consists of several pulses in two to three sub-groups which are in turn in two groups. Each peak is a bit less than 1 ms. The second group occurs from 40 to 200 ms. after the end of the first one. Each sub-group is separated by 5 to 10 ms. The frequency of every pulse doesn't vary, except the very first pulse. The first cry starts by a more quiet pulse at 6 kHz (12 kHz in the original audio). The second and third cries don't follow this pattern.  indicates that there are three categories of sounds emitted by the bats:  Short clicks,  Frequency-swept pulses,  Constant frequency pulses.   It looks like it's still the third category which we are observing here, and the overall pattern looks similar to the one described for the bats. The gap between the left and the right track is mostly irrelevant: at higher frequencies, microphones become more and more directional, and the sound is reflected less, which leads to such difference.     Note: this question was considered to be on-topic at Biology.SE on .


I have multiple user accounts on my Ubuntu Desktop 14.04 install. I have my a Samba share mounted under my administrator account using Nautilus (Ctrl+L) using credentials (smb://user@server/share). I switched to a standard user account and performed the same operation except without credentials (smb://server/share) and I was able to access everything that the administrator account had access to. Is this a bug or a configuration mistake?  Samba Configuration:  [global]    workgroup = WORKGROUP      admin users = nick      log level = all:2      inherit permissions = yes      inherit acls = yes      map acl inherit = yes      server string = %h      dns proxy = no      name resolve order = lmhosts host wins bcast      interfaces = eth0      bind interfaces only = yes      log file = /var/log/samba/log.%m      max log size = 1000      syslog = 0      panic action = /usr/share/samba/panic-action %d      security = user      encrypt passwords = true      passdb backend = tdbsam      obey pam restrictions = yes      unix password sync = yes      passwd program = /usr/bin/passwd %u      passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully*      pam password change = yes      map to guest = bad user      socket options = TCP_NODELAY      usershare allow guests = no    include = /etc/samba/shares.conf  [printers]      comment = All Printers      browseable = yes      path = /var/spool/samba      printable = yes      guest ok = yes      read only = yes      create mask = 0700    [print$]      comment = Printer Drivers      path = /var/lib/samba/printers      browseable = yes      read only = yes      guest ok = yes     Shares Conf:  [Home]    comment = Home Directory      path = /home      guest ok = no      browseable = no      writeable = yes      inherit owner = yes      inherit permissions = yes      valid users = nick,brittany    [Shares]    comment = Default shares      path = /shares      guest ok = yes      browseable = yes      writeable = yes      inherit acls = yes      inherit permissions = no      hide unreadable = yes      directory mask = 755      force directory mode = 1750      force directory security mode = 700      create mask = 755      force create mode = 1750      force security mode = 700      security mask = 077      directory security mask = 077

I have a RAID10 array mounted on Ubuntu Server 12.04. I have created a few folders within the mount point and want the following functionality.  There will be 4 users, 3 of them are windows users: 'one' 'two' & 'three'. 'four' is a media streamer that only needs to access the MEDIA share. One Two and Three need to have full access to the media share and their own personal shares (for documents) which no other users but them can access.  Currently, User Four works perfectly (Has full access to the MEDIA folder and can't access folders owned by other users). The problem is, when logged in as the other user, I can't access either share; (tried using valid users =  and using chmod to add permissions to no avail).  TL;DR: I need to know how to configure Samba properly to restrict access to certain shares for certain users and allow all of them to access one communal folder (all files on a RAID10 mount).


As an example, when using the delete operator on an index of an Array, the index is removed, such as any property of any object would be.  This is proven by:  var arr = ['one', 'two', 'three'];  delete arr[1];  if(1 in arr)     alert("It didn't work!");   If you were to run this block, you will find that the text "It didn't work!" will never be alerted to the user. This is because the property belonging as index 1 on the Array has been deleted.  Now, here is where things get weird...  Although an index is deleted from an Array, the Array length shall remain the same:  var arr = ['one', 'two', 'three'];  alert(arr.length); //will alert '3'  delete arr[2];  alert(arr.length); //will still alert '3'   When looking at the Array arr in the debugger (in Chrome at least), you will see that the index 2 does not even exist, so why does the length still report as 3?

What is the difference between using  on the array element as opposed to using ?   For example:  myArray = ['a', 'b', 'c', 'd'];  delete myArray[1]; //  or myArray.splice (1, 1);   Why even have the splice method if I can delete array elements like I can with objects?


The number of ways of distributing $n$ identical items among $r$ people such that each one of them receives at least one is $\binom{n-1}{r-1}$. Can you please give a simple proof to explain how is this theorem derived ? Thanks .

I am trying to understand the derivation of the stars and bars formula. I understand how a problem can be converted to the stars and bars format, but I am confused about how the problem of choosing all the different ways to put k stars in n sections can be written as ${n+k-1 \choose k}$. Generally "n choose k" is for counting the number of combinations of k objects we can get given n distinct objects right? That I understand since we're doing permutation divided by the number of orderings for each group since order doesn't matter. I need help figuring out how stars and bars fits into this.


Old related post from 8 years ago:   As of now, there's no way to see the tags on a Hot Network question in the sidebar without clicking into it.  We already show the name of the site the question is hosted on when the site icon on the left is hovered over.  Could we add similar hover-text to the title link that will show the tags? Something like:  [feature-request], [tags], [design], [hot-questions], [sidebar]   Especially on sites like Movies & TV, Arqade and SciFi.SE, this would allow users to easily check whether or not the question is about something that interests them without being forced to click in for more context about the title.

When browsing Stack Exchange sites, I often notice questions that may interest me in the Hot Questions column, however they sometimes have titles that don't exactly tell what product/game/software/technology they are about (very frequent for Arqade's questions) and the only way to know that is to open the question - not very efficient in my opinion.  This is my feature request - display all the question's tags in a tooltip for a quick look without needing to open the question :


Can a sorcerer use the Twinned Spell metamagic on the fireball spell and target the same creature with both attacks?  Also, if you can target one with both, would it be double damage?

So me and my DM have been arguing on how Twinned spell works. Twinned spell:  When you cast a spell that targets only one creature and  doesn't have a range of self, you can spend a number of  sorcery points equal to the spell's level to target a second  creature in range with the same spell (1 sorcery point if  the spell is a cantrip).  I argued that "a second creature" can be a the same target as it is not worded as "another creature" For this example counter spell with twinned spell.  A wizard casts fireball on me I use CounterSpell#1 with Twinned Spell Wizard casts CounterSpell on my CounterSpell#1 I use him as the same target for my twinned Spell CounterSpell#2  Result countered Is this possible?


In my website I have changed css of a page and these changes are not reflecting instantly when I open that page in browser. It showing old css styles because browser has a saved copy of my css file and it does not reflecting the new changes.  The new changes are loading in the page when I load the page by pressing (CTRL+F5) then the changes I have done are reflected in the page. So can I make css file which always loaded from server and the changes done that page can reflect immediately on the page.

I have noticed that some browsers (in particular, Firefox and ) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using the cached copy. What is the most elegant way of forcing the user's browser to reload the file when it has changed? Ideally, the solution would not force the browser to reload the file on every visit to the page.  I have found  and  suggestion to be useful. It turns out there is a term for this: auto-versioning. I have posted a new answer below which is a combination of my original solution and John's suggestion. Another idea that was suggested by SCdF would be to append a bogus query string to the file. (Some Python code, to automatically use the timestamp as a bogus query string, was .) However, there is some discussion as to whether or not the browser would cache a file with a query string. (Remember, we want the browser to cache the file and use it on future visits. We only want it to fetch the file again when it has changed.)


I hadn't take care about citation order in my phd. I have used \autocite{} as well as \textcite{}. Now I would like to do this job automaticaly... and order by date. It's possible in a less tricky way than what @Audrey  ?  a short exemple   \documentclass[a4paper,12pt,twoside=semi,openright]{scrbook}%recto-verso  \usepackage[french]{babel} \usepackage[babel=true]{csquotes} % csquotes va utiliser la langue définie dans babel \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{subfigure} \usepackage{setspace} \usepackage{newunicodechar} %pour les caractères speciaux dans les biblio par exemple! \usepackage{layout} \usepackage[   maxcitenames=2,   maxbibnames=99,   style=authoryear-ibid,   backend=biber,     sorting=nyt, %appel biblio par  name year name title ... on peut aussi fair ynt   doi=true,    url=false,    eprint=false,    sortcites=true, %%pour trier ds le texte les citations   %hyperref=true,   firstinits=true,   uniquename=init ]{biblatex}  \DeclareUnicodeCharacter{00A0}{~} %permet d'accèpter les problèmes d'espaces insécable \DeclareUnicodeCharacter{00A0}{ }   \addbibresource{biblio.bib}   \begin{document}     babalbalbablalb \autocite{amblard_modelisation_2006, amo-salas_new_2011, anderson_applications_1999}.  \end{document}   and my .bib  @book{amblard_modelisation_2006,     title = {Modélisation et Simulation Multi-agents Applications pour les Sciences de l'Homme et de la Société},     isbn = {2746213109},     pagetotal = {446},     publisher = {Hermes Science Publications},     author = {Amblard, F. and Phan, D.},     date = {2006-09-05} }  @article{amo-salas_new_2011,     title = {A new model for predicting the flight activity of Lobesia botrana (Lepidoptera: Tortricidae)},     volume = {30},     issn = {0261-2194},     url = {http://www.sciencedirect.com/science/article/pii/S0261219411002912},     doi = {10.1016/j.cropro.2011.09.003},     shorttitle = {A new model for predicting the flight activity of Lobesia botrana (Lepidoptera},     pages = {1586--1593},     number = {12},     journaltitle = {Crop Protection},     shortjournal = {Crop Protection},     author = {Amo-Salas, Mariano and Ortega-López, Vanesa and Harman, Radoslav and Alonso-González, Agustín},     urldate = {2014-10-28},     date = {2011-12},       keywords = {Logistic function, model, Ribera del Duero, Touzeau model},     file = {ScienceDirect Full Text PDF:/home/delaye/.mozilla/firefox/xlpcg1ts.default/zotero/storage/RDS7EKN2/Amo-Salas et al. - 2011 - A new model for predicting the flight activity of .pdf:application/pdf;ScienceDirect Snapshot:/home/delaye/.mozilla/firefox/xlpcg1ts.default/zotero/storage/SRB26DAW/S0261219411002912.html:text/html} }  @book{anderson_applications_1999,     title = {Applications and misapplications of cognitive psychology to mathematics education},     url = {http://act-r.psy.cmu.edu/papers/misapplied.html},     publisher = {{ERIC} Clearinghouse},     author = {Anderson, J. R. and Reder, L. M. and Simon, H. A.},     urldate = {2013-10-16},     date = {1999},     file = {[HTML] à partir de cmu.edu:/home/delaye/.mozilla/firefox/xlpcg1ts.default/zotero/storage/JD7DJUB4/misapplied.html:text/html} }   That give me    and I would like

I want to use more than one type of specification in my bibliography. I want to quote in chronological order but have the bibliography list in alphabetical order.  If I am quoting 2-3 references in the middle of my thesis writing, I want them to be displayed in chronological order.  e.g.          {biblatex}     The human race has had a fast and accelerating growth in terms of technology and communication, in the past decade, [Turner, 2001; Allis   et al., 2007].   {bibliography}    But When the bibliography is displayed at the end of the document, I want them to be displayed in alphabetical order  e.g.    BIBLIOGRAPHY        Allis, C. D., Jenuwein, T., Reinberg, D., and Caparros, M. L. (2007). Epigenetics. Cold Spring Harbor Press   Turner, B. M. (2001). Chromatin and Gene Regulation – Mechanisms in Epigenetics. 2nd Edition, BlackWell Science Ltd.        How should this be achieved given than I use bib latex package? I have not pasted the code of my biblatex line, but I hope that some1 can help me sort this out as not many topics in this forum is handling it.


Let $f_n:[0,1]\to\Bbb R$ be defined by $f_n(x)=n^2x^n(1−x)$.  Show that $f_n(x)$ converges pointwise to $0$ using an epsilon argument from the definition of pointwise convergence.  I've got the following so far:  Let $\epsilon>0$. Then $N >$_______ implies:  $|n^2x^n(1-x)-0|=|n^2x^n(1-x)|\leq n^2x^n(1-x)$...  And I have no idea where to go from here, because I don't see how I can isolate the $n$ so that I can make the expression less than epsilon.   Thank you in advance!  Edit: I'm aware there's been a question posted about this before but the answers given have been expressed in terms of limits/theorems/tests/rules but I'd like to do it purely with an epsilon argument from the definition.

How do I show $f_n(x)=n^2 x^n(1-x)$ pointwise converges to $0$ on $[0,1]$?     I first started with the case $x=1/2$ to try out. We see that $n^2(1/2)^n(1/2)=n^2/2^{n+1}$ which goes to $0$ as $n$ goes to infinity since $n^2 < 2^{n+1}$.  Now I need to generalize. If I take the derivative of $f_n(x)$ then I get, after simplifying, $$f_n'(x)= n^2x^{n-1}(n-(n+1)x).$$  So, we know $x=0$ and $x=n/(n+1)$ are critical points.  I plotted the graph and I see that as $n$ gets larger, the maximum of the function on $[0,1]$ grows and gets closer to $x=1$.


E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component) E: The list of sources could not be read. Go to the repository dialog to correct the problem. E: _cache->open() failed, please report. W: Ignoring file 'ros-' in directory '/etc/apt/sources.list.d/' as it has no filename extension

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.


This question never got answered, I wanted to ask a new question on stack overflow, I had forgotten I had this issue months ago.  The problem is still happening, it prevents me from logging in, as after entering my credentials I get redirected back to the home page in a not logged in state, upon checking console I see a 404 has happened (may be unrelated issue though).

Whenever I attempt to login, I end up getting redirected back to the homepage and not be logged in. I am getting a 404 error:  Failed to load resource: the server responded with a status of 404 (Not Found)


How to find out which process or program changes IPtables (deletes one of it's chains)?   I run Fedora 23 server. I use it, among the others, to share Internet connection and enforce fair, dynamic traffic shaping. For the last I use Niceshaper. It adds it's chains to IPtables.  Recently I have discovered my server was compromised. It was used as DNS server on IPv6. IP6tables were changed. I have cleared all. Proved all /etc/ settings are unmodified. Verify all installed packages and proved they are unmodified.  Unluckily there is still something wrong. Despite the fact the server's configuration didn't changed for months and Niceshaper worked fine, it now started to exit after detecting it's ns_upload chain was removed.  I would like to find out which process removes the chain to fix it.  I will be thankful for your help.

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


I need help on how many attractions I can cover with a layover at Frankfurt for 5 hours. It is a connecting flight from Delhi to Frankfurt, then Frankfurt to Philadelphia. The flight is happening on 8/17/19 or 17/8/19 which is very soon.  Please help quickly.   If I have a 5 hour layover in Frankfurt, how much time do I have to explore the city?

We have a 3 hour layover in Frankfurt, on the way to Rome. My husband wants to leave to get a bite to eat and see a small part of the city. Will we have enough time? Is this a smart idea?


He followed me into my home.   He followed me to my home.      What's the difference in their meaning?

When should 'into', 'in' and 'inside' be used?  What are the differences between the three?   For example, what are the differences between the following statements?  Are any of them incorrect?        The frog jumped into the well.   The frog jumped in the well.   The frog jumped inside the well.


I am trying to replace some HTML Tag with another HTML Tag with php or jquery .   My Current Tag (Default) :
  Home
   I want to replace above HTML tag with
  Home
     Example :   Default tag :
 tag
  Replaced tag :
 tag
  I already search many articles on stackoverflow but didnt founded solution for it.   Thank in advance

I have an element that already has a class: <div class="someclass">     <img ... id="image1" name="image1" /> </div>  Now, I want to create a JavaScript function that will add a class to the div (not replace, but add). How can I do that?


I'm using a hosted Linux machine so I don't have permissions to write into the /usr/lib directory.  I need Spreadsheet::Read and few other modules to be installed. I have all these required libraries in my local home directory.  In the perl code, I am using-  #include local module use FindBin qw($Bin); use lib "$Bin/perl5/lib/perl5"; use lib "$Bin/perl5/lib/perl5/x86_64-linux-gnu-thread-multi"; use Getopt::Long; use Spreadsheet::Read; use Template; use lib "$Bin"; use Register;   So I have Spreadsheet and other libraries in the path ../perl5/lib/perl5/x86_64-linux-gnu-thread-multi. But still when I run, I get this error:     Uncaught exception from user code:           Parser for XLSX is not installed at ./main.pl line 42  at /home/nxf36037/ipxact-register-generator-master/code/perl5/lib/perl5/Spreadsheet/Read.pm   line 416           Spreadsheet::Read::ReadData('reg1000.xlsx') called at ./main.pl line 42   This is my line 42:  my $book  = ReadData($input);   I am unwilling to use local::lib, Could you please help with this issue?

I'm using a hosted Linux machine so I don't have permissions to write into the /usr/lib directory.  When I try to install a CPAN module by doing the usual:  perl Makefile.PL make test make install   That module is extracted to a blib/lib/ folder. I have kept use blib/lib/ModuleName but it still the compiler says module can not be found. I have tried copying the .pm file into local directory and kept require ModuleName but still it gives me some error.  How can I install a module into some other directory and use it?


I need to extract a single file from a tar file to another directory.  So far I have this:  This one extracts a single file to same directory:  tar -xvf filename.tar ./file.txt   I tried this but it's not working  tar -xvf filename.tar /home/dir ./file.txt   or this:  tar -xvf filename.tar -C /home/dir ./file.txt

I need to search for a file inside a tar.gz file without extracting it. After that, I need to copy the file that was searched (if ever there is) to another folder.  So far I have this, but the copy part of this line gives me an error.  gunzip -c file.tar.gz | tar tvf - | grep filename | -exec cp {} /folder/another_folder \;   Or is there a better way to search for a file inside a tar.gz file without extracting it?


If a website's hosting is being transferred and is not online in between for approx. 14 days - would this affect the organic search positions when it's finally transferred? When they've since disappeared entirely from the search results?  NOT A DUPLICATE.

I have been hosting in a server from last 2 years. I am planning to change the hosting server. Before I change the hosting server I would like to know whether it affects my site's rankings or not?


My laptop is currently not being formatted properly.  Every time I try to install any operating system it installs, but before I can move to drive, it crashed and gets back to boot screen, it doesn't even reaches the OS boot menu.  I was wondering If I could be helped to install an OS completely within a pen drive , then access my drives just by connecting my laptop to my pen drive.  Please guide me with this situation, I have some urgent data on one of my drive which I need to recover anyhow.

I have an external Hard disk with 500 GB capacity.  I have data filling almost 300 GB.  I want to install Ubuntu into it.  I have downloaded the iso and have written it to a USB drive as a bootable device.  My laptop runs on Windows 7.  What is the way to install Ubuntu in my external HDD.  I have yet to do any partitioning.  I would not like to lose the data.


I'm trying to validate the local name portion of an email address.   The domain name gets pre-populate so I don't have to worry about that part.   Is there a regex expression that I can use to do this?

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


One or more member state(s) consider you to be a threat to public policy, internal security, public health as defined in Article 2(19) of Regulation (EC) No 562/2006 (Schengen Borders Code) or the international relations of one or more of the member states).   can you give solutions,for this case now what i can do, make appeal or i can make it reapply, why they given this type of reason its mean what reason.

I applied for German Schengen visa as a medical escort to my relative in a different country from  where I reside, but my visa application was refused and the refusal letter  was written in German as the following:        Ein oder mehrere Mitgliedstaaten sind der Auffassung, dass Sie eine Gefahr für die öffentliche Ordnung, die innere Sicherheit, die   öffentliche Gesundheit gemäß Artikel 2 Absatz 19 der Verordnung (EG)   Nr 562/2006 (Schengener Grenzkodex) oder die internationalen   Beziehungen eines oder mehrerer Mitgliedstaaten darstellen.      I was in Germany for nearly a year with my relative during his treatment; I extended my stay there 3 times; and I returned back home two months ago in order to renew my passport. I applied again using the same documents that I used for my extension in Germany.    First, can anyone tell me what the refusal means? Next, is there any possibility that there is a mistake in the assessment?    Note: In English this reason is...     One or more member state(s) consider you to be a threat to public   policy, internal security, public health as defined in Article 2(19)   of Regulation (EC) No 562/2006 (Schengen Borders Code) or the   international relations of one or more of the member states).


I know that there is no set of all sets in ZFC. Is there a way to manipulate the axioms and define a set of all finite sets? I am asking because if you think about it, the cardinality looks a lot like a function. You give me a finite set and I can tell you a number, which is its cardinality. Input-Output. However, in order for this to be a function, it needs to have a domain. So, can this domain be defined? Or do we have to say that there cannot be a function that given a set can return its cardinality?

Proposition: For a set $X$ and its power set $P(X)$, any function $f\colon P(X)\to X$ has at least two sets $A\neq B\subseteq X$ such that $f(A)=f(B)$.   I can see how this would be true if $X$ is a finite set, since $|P(X)|\gt |X|$, so by the pidgeonhole principle, at least two of the elements in $P(X)$ would have to map to the same element.   Does this proposition still hold for $X$ an infinite set? And if so, how does this show that the set of all singleton sets cannot exist?


Have been trying hard to use the VFS website - can I purchase the return label from any UPS store and send the package or does it HAVE to be from the VFS website?- which btw is very difficult to use

I reviewed many answers and the following ones,   The recommendations provided on the site, helped me with the fact that we need separate return label for each of the family member.  We are a family of 4 applying for UK Standard Visitor visa.  As per the instructions on the UK Visa site, we will be sending documents in the UPS  2nd day Air.    My question is on the Return Shipping label - Can I purchase UPS 2nd Day Ground for the return label or should the return label also be UPS 2nd Day (or Next day) Air?    The cost difference between ground and Air is big - Air is almost twice that off ground.  Looking for clarifications before buying the return shipping label.  Browsing this forum saved me a lot of time and anxiety.  Thanks much for providing the proper responses.


Maybe this is a silly question, but I cannot guess how to solve it if it's not creating a method. Maybe there's a "natural way" to do it, like in C for example. Here's the problem:  I have a var:  double a;   And I want to show it only with 2 or 3 decimals. When I try to show it:  Text.setText("Value of a: " + String.valueOf(a));   It gives something like:     Value of a: 5.234966145   And i would want just     Value of a: 5.23   Without changing the real value of a so it shows the approximate number but works with the real number.

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


I misspelt the word "analogous", and I found that the system spellchecker offered "anbalagous" as a possible correction. As far as I can tell, "anbalagous" isn't a real word, so I figured I must have added it to the dictionary at some point by mistake. However, it seems that "anbalagous" isn't in ~/Library/Spelling/LocalDictionary, so it's a bit of a mystery. Out of curiosity, I would like to check which file the word "anbalagous" appears in. So:  where are the spell check dictionary file(s) located on a Mac?  is there any location other than ~/Library/Spelling/LocalDictionary where custom words are stored for the system spell checker?  if (as I suspect) the dictionary is stored in a binary file, is there a way to see the list of words in it?  (Probably not but might as well check) does a Mac's spell checker dictionary contain the word "anbalagous" by default?   In case it makes a difference I'm still on OS X 10.11.

I would like to use the spellchecking dictionaries bundled with OS X from the command line (hunspell), but can't seem to find them. In /System/Library/Spelling there are only 2 files pl_PL.{aff,dic}, and find / -name '*.dic' revealed nothing.  I know I can dowload dictionaries from OpenOffice etc., but I'd like to find the ones bundled with OS X.  EDIT To clarify, there are at least two kinds of dictionaries in OS X:   Definitions used in Dictionary.app. I'm not interested in those. Word lists used by the system spellchecker (red dotted lines). I know OS X uses hunspell because  says so, and there are numerous posts on how to add new ones (, ). Just, I don't want to add new ones but use the English one that obviously comes with the system.


So I'm really new to java and I was trying to practice using while and if statements through a guessing game app.   Everything seemed to work until I'm promped to play again. When I type Y, the loop ends. This isn't supposed to happen as the while argument at the beginning of the code says to keepPlaying if true.   I've tried playing with the argument to make it: while (answer == "Y"). I've played around with it but it always keeps exiting. Please help!!  Here's the code:  import java.util.Scanner; public class GuessingGame  {     static Scanner sc = new Scanner(System.in);     public static void main(String[] args)      {         // TODO Auto-generated method stub         String answer = "Y";         int guess;         int number;         String again;         boolean keepPlaying = true;           System.out.println("Let's play a guessing game!");          while (keepPlaying)         {             System.out.println("I'm thinking of a number between 1 and 10.");             System.out.print("What do you think it is? ");             guess = sc.nextInt();             while (guess > 10 || guess < 1)             {                 System.out.print("I said, between 1 and 10. Try again: ");                 guess = sc.nextInt();             }             number = (int)(Math.random() *10 + 1);             if (guess == number)             {                 System.out.println("You're right!");              }             else             {                 System.out.println("You're wrong! the number was " + number);              }             System.out.print("Play again? (Y or N)");             answer = sc.next();              if (answer == "Y")             {                 keepPlaying = true;             }             else             {                 break;             }          }         System.out.println("Thank you for playing");     }  }

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?