My husband has a Schengen visa from the French consulate issued in 2012, multiple entry, valid till 2017. We visited France in 2012 for 12 days, we visited Italy in 2013 for 11 days (no issues), now we want to visit Switzerland for 12 days using the same visa (still valid).  Will there be any problems ?

I have a multiple entry Schengen business visa issued by Switzerland which will expire in July. Can I travel to Switzerland next week for work and then travel again to France for work at the beginning of July for a week? Or do I have to apply for another visa at the French Consulate?


I believe this book was published in the 1970s or 1980s. What I remember is that it was about a boy whose DNA was modified (using insect DNA?) before birth by his father, who was a genetic researcher.   These genetic modifications made the boy incredibly strong, strong enough that he was able to single handedly cut and carry large stone blocks, which he used to build (in the forest near his home?) a large fort/fortress.  The fort/fortress was subsequently discovered by archeologists/anthropologists, who wrongly concluded the fort must have been built hundreds of years ago, and claimed it as a protected archeological/historical site (evicting the boy from his fort).   I believe this only describes the first few chapters, but I don't recall anything about the rest of the book (covering the boy's adulthood?), except (possibly) that he was on the run from a government(?) agency.

In the military, his powers manifest and there are episodes where he carries cannons, leaps into battle against the enemy with speed and super strength, and is brought to the notice of commanding generals who seek to utilize him to their advantage.


How can I install the Ubuntu OS on a PC running Windows 7?  Is it possible to use both Ubuntu and Windows 7 at the same time?  Can I return back to Windows 7 later on?

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


This applies to Ubuntu 14.04 running in a VMWare environment on a OS X host.  Everytime I press the apple command key to e.g. command-tab to another (OS X) application, the HUD comes up in Ubuntu. Not the regular (small search box) HUD, but the big mondo one that looks a bit like the Apple launchpad, and is about equally useless.  I've tried disabling/changing the key binding in the system settings to use e.g. the backslash key. That works fine, on backslash, the HUD comes up. But on apple command key press, that big mondo special search HUD still comes up, no matter what I do.   Any help anyone?

I don't want to use the Super for that, I want to use Alt+Space instead.


I'm just trying to count the occurrences of a word without writing an iteration file by file. I don't mind which kind of file it is. The closest I got is: COUNT=$(grep -r -n -i "theWordImSearchingFor" .) echo $COUNT  I thought about splitting that by spaces, but the problem is the output does not contain just the filename and the line but also the content (and that may have tons of spaces). w.g. I got: ./doc1.txt:29: This is the content containing theWordImSearchingFor but also other stuff   ./doc1.txt:43: This is another line containing theWordImSearchingFor  ./dir123/doc2.txt:339: .This is another...file...theWordImSearchingFor....  Any idea on how to keep it simple? TIA

I have a bunch of log files. I need to find out how many times a string occurs in all files.  grep -c string *   returns  ... file1:1 file2:0 file3:0 ...   Using a pipe I was able to get only files that have one or more occurrences:  grep -c string * | grep -v :0  ... file4:5 file5:1 file6:2 ...   How can I get only the combined count? (If it returns file4:5, file5:1, file6:2, I want to get back 8.)


Can someone give me a good reason why users are using ifmodule in their htaccess ? <IfModule mod_headers.c>    Header set Cache-Control "max-age=290304000, public" </IfModule> # Else, doesn't matter. It's fine anyway. Making business #  Isn't this a bad practice ? Why using ifmodule if they should be definitively sure they want to use some rules ? Anyway, is it possible that a module freezes/block/disable suddenly without knowing ?

Recently I noticed that many people post .htaccess files here with:  <IfModule mod_rewrite.c>   Sometimes this even appears several times in the file! It obviously checks to see if mod_write is in fact enabled but the statements it protects are necesary to those sites anyway. So if the IfModule fails, the website is broken anyway.  Is there an advantage in having the <IfModule mod_rewrite.c> fail rather than the RewriteRule statements below it?  mod_write now is so essential and ubiquitous that I do not check for it anymore. Might this cause a vulnerability of some kind?


I've been reading my GARCH class notes and I found some discussions about stationarity.   "In Finance, stationarity of order 2 is often considered as more restrictive than the strict stationarity, because the financial returns often display distributions with fat tails (and thus only low-order moments are likely to exist)."  I don't see why stationarity of order 2 is more restrictive than strict stationarity ?? I mean strict stationarity implies the joint distribution of any moments (including moments of order two) of any degree within the process is never dependent on time.

Looking for a mathematical proof which shows that a Strict Sense Stationary (SSS) process is necessarily a Wide Sense Stationary (WSS) process.


I am using an Olympus M. Zuiko 45mm f/1.8 Camera, I have to calculate the distance at which the lens should be present so that it captures the complete object at once.  I know that the field of view of the camera is 27 degrees, and the aspect ratio is 4:3. Assuming that they are talking about the diagonal field of view.  I want to ensure that the camera at least captures the complete width of the object, so suppose if the camera is capturing a width w, it will be capturing the length 4w/3, therefore the diagonal would come out to be 5w/3.  now, I use simple trigonometry to calculate the desired distance  tan(field_of_view/2) = (diagonal_length/2) / (desired_distance)  so, desired_distance = diagonal_length / (2 * tan(field_of_view / 2))  Although the math looks correct to me, somehow the results do no match the actual phenomenon, can someone please go through this and suggest corrections?

I am thinking about buying a new lens specifically to take photos of distant targets (birds, bears, etc). I currently own the Canon 70-300 IS USM, which is a nice lens, but I find that if I want to take a photo of anything further away than about 10 meters, the target does not fill a large amount of the frame (meaning I have to significantly crop in post production).  I am currently looking at the Canon prime 400mm, however I would like to determine at what distance an object will fill a reasonable proportion of the frame.  Is there a formula or rule of thumb I can apply that will help me in this situation? I realise the size of the target I am shooting will play a role here, so if we need to make an assumption about the size of the target please let me know.


I have an entire macro that searches for every cell in a column and sets the font color of any text between the two parenthesis () or two square brackets []. What i would like to know is what is the regEx.Pattern if i want to set the font color between two vertical bars (pipes) such as "| colored font goes in here |". And while am at it what about a regEx>Pattern that does the same thing but for the less than and greater than symbols, such as < colored font goes here >. Here is the regEx.Pattern for the parenthesis: "\([^)]*\)" Here is the regEx.Pattern for the square brackets: "\[[^]]*\]" I tried replacing the second symbol from the left and the fifth symbol from the right (excluding the quotation marks) with the vertical bars or the less than and greater than symbols but it doesn't work. I searched for a solution on the net but could no find one. All i need is the two regEx.Patterns. Any help would be appreciated. Thank you.

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


Cooked (over-easy) a duck egg this morning. When cleaning up I noticed black mold inside the shell of the egg I had just eaten. Was it safe to eat?

I bought a tray of eggs recently. They aren't old, I have them in the fridge, and the date stamped on the egg says they are good for another month.  In two eggs that I cracked open today, there were dark green spots inside the shell (looked like mold maybe?), and floating around the egg white.   Any idea what that is? Is it a sign that the whole tray may be contaminated with something??  I only noticed the green on the shell after I mixed one of the eggs into a bread dough, and now I need to know if I should throw the dough out or not (it's a huge batch of dough).


Why is blood drawn from veins? Is it because veins have a large lumen? Or is it because the blood is flowing at a lower pressure and makes discharge easier? Is it safer to draw blood from veins?

Why draw blood from veins rather than arteries? Is it more convenient or safer?


Account News is a standard component, I want to add this in Custom LWC Component.

I have a form that needs to let the user select 3 out of 5 products, something similar to Order > Add Product (Modal). I was wondering if there was a way to bring that piece into my component (markup) and add some sort of filter that only shows the products I want to show.  What I found so far:  <lightning:listView objectApiName="Products2" listName="productsView" showActionBar="true" enableInlineEdit="true" showRowLevelActions="true"/>   But Product2 is not supported for that component.  also these from browser inspector:  forceMultiAddUsingLVM forceListViewManager   These are data-aura-class attributes when rendered.  I'm looking for directions here. Thanks in advance.


Really, this is one of the things which makes me most reluctant to review posts. I practically never find the stackexchange site which I believe is most appropriate for migration on the automatically-generated list of migration options. And I can't mark the question for migration unless I select something on that list. Clearly, it would be counter-productive to mark it to be migrated to the wrong site. So I end up frustrated and the ill-placed question remains where it is.  All that is needed is to add an "Other" field which accepts a stackexchange site. In addition to lowering my frustration level, this would also give SE developers some feedback on the autoatically-generated alternative site lists, which might result in improvements. So an all-round win.

Earlier, I voted to close  as off-topic.  The question has since been closed.  There is an , but it didn't show up in the list when I selected "off-topic".  The options were:   Meta Stack Overflow Server Fault Super User Webmasters Programmers   Questions:   Should Wordpress appear in this list? Are there any other sites that should appear in the list?   Should all non-beta sites appear in that list by default?


This is a setup I have on my site photo directory pages:    On the desktop site, Users can choose to select one from a maximum of 100, 200 or 500 photo thumbnails per page.   I feel now at the rate technology is moving and because the pages load very fast, I'm tempted to eliminate the choices and allow users to select one from up to 500 photo thumbnails per page.  While this pleases a large number of guests on the site, I'm not sure how much it pleases Google because as of the first decade of the year 2000, they indicated that websites should have no more than 100 links per page and the 500 thumbnails means 500 links. I think they also indicated back then that a page that exceeded 100kb won't get processed.  How do all the major search engines respond to 500 links per page today? would they still happily accept it or would that exceed their internal link or page size limits?

Let's have some fun shall we??  At the bottom of the content for about 1/3rd of my pages, but not in the footer, I create an internal link for each related IP address to the page on my site for that IP address. This was fine 6 months ago, but now that my database has grown so large, I discovered that it was not uncommon to create 700+ links within this section with one page having 2600. Ooopppsss!! ;-) Houston, we have a problem!  Now this is easy enough to fix. For right now, I put a limit 100 on the query. But this got me thinking and searching for a definitive answer. So far... no luck.  Please understand I do fully know the effects regarding SEO. Most of you know that already. I am not looking for a lesson- just an idea of a range.  Q: How many internal links per page is too many?  There are a lot of answers on the net culled from various nether regions and I have a number in mind (also culled), but I was thinking that there has to be an authoritative answer somewhere. Google says reasonable and MOZ's answer seemed to very arbitrary to me. Some so-called SEO experts say as little as 6 and as much as 200. Yeah. That is useful! One said there is no limit. I know there is a semi-flexible practical limit. I remember reading about this years ago, but cannot remember the mechanics behind it right now. I would have to think on this for a while.  Bonus Q: If given a choice of creating links from a random query (and yes I can do this) or first 100 or so (using limit), which would you prefer/advise and why? Again, I have an idea in mind (again, culled). Is there anything definitive in this regard as well?  My primary concerns are UX, download speed, and lastly, Giigle. (<= please do not edit to change)


I have 8051 MCU and I use keil to program it with C. But in some functions when the function ends and it gets to the return line the MCU is restated. For example a piece of my code is   while(!ctsWentHigh)     {         radio_comm_PollCTS();     }   while returning  radio_comm_PollCTS()  the MCU is restarted. If I change the code to    while(!ctsWentHigh)     {         cstvals = radio_comm_PollCTS();     }   it works and the MCU is not restarted. But this solution does not work in all cases and some other functions return and reset the MCU. (not all of them)  I have a doubt that the problem might be for the tool chain integration   Linker settings  CODE REMOVEUNUSED CLASSES(BIT(0x20.0-0x2F.7), DATA(D:0-D:0x7F), IDATA(I:0-I:0xFF), XDATA(X:0-X:0xFFF), CODE(C:0-C:0xFBFF), CONST(C:0-C:0xFBFF))  compiler settings   DB OE BR Small OPTIMIZE(11, SIZE) DEFINE(SILABS_PLATFORM_WMB912) DEFINE(SILABS_WMCU_SI106x)  Assembler settings   XR GEN DB EP NOMOD51  Kindly help if you know the answer I am in urgent situation.  Thanks

I have an 8051 MCU which I use keil to program it with C. My problem is that the micro-controller restarts at the end of some functions while they should return.  Using a debugger I tried to check it line by line. And I figured out the the MCU is not restated right after the end of the function. The PC(progam counter) goes to somewhere else (sometime somewhere that there is not any code to execute) and then it increases one by one until the end of code. It is very strange for me because I write my code in C and never seen the type of error previously.    I think this problem might be related to the compiler settings and thus I post the settings here:   Assembler settings: XR GEN DB EP NOMOD51  Compiler settings:  DB OE BR LARGE OPTIMIZE(11, SIZE) DEFINE(SILABS_PLATFORM_WMB912) DEFINE(SILABS_WMCU_SI106x)  Linker settings: CODE REMOVEUNUSED CLASSES(BIT(0x20.0-0x2F.7), DATA(D:0-D:0x7F), IDATA(I:0-I:0xFF), XDATA(X:0-X:0xFFF), CODE(C:0-C:0xFBFF), CONST(C:0-C:0xFBFF))  I tried both large and small settings but the problem remains. Kindly help me if you know the reason.


I'm very new to LaTeX and I need to create a conference-style poster for a module i'm currently doing. I've been looking around trying to find out how I should best apporaoch this but I can't really find anything concise. I was wondering if anyone would be able to gudie me in how I can approach making an a0 poster in LaTeX?  I've read that I could use the a0poster document class but then i've also seen alot about beamerposter, this doesn't need to be a massively complex poster but I would like it to look nice and professional as it's going to count for 20% of my grade. I'm using MiKTeX and Texmaker. Any help or advice would be great, thanks!

I want to create posters for my poster presentation on a conference. What tools or LaTeX classes are available for preparing posters ?


Current network setting page:    I use pppoe connection and have recently switched to Ubuntu, I am having a hard time setting up the pppoe connection. Isn't there suppose to be a Wired + on the top right?  Wireless works perfectly.      $ sudo lshw -c network     *-network                         description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0.1        bus info: pci@0000:02:00.1        logical name: enp2s0f1        version: 12        serial: 80:ee:73:dd:70:49        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:16 ioport:e000(size=256) memory:df114000-df114fff memory:df110000-df113fff   *-network        description: Wireless interface        product: Wireless 3165        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:03:00.0        logical name: wlp3s0        version: 81        serial: 0c:54:15:5d:c6:77        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-33-generic firmware=29.1044073957.0 ip=192.168.0.105 latency=0 link=yes multicast=yes wireless=IEEE 802.11        resources: irq:130 memory:df000000-df001fff     $ dkms status rtlwifi-new, 0.6, 4.15.0-33-generic, x86_64: installed

In 17.04 I could create DSL Connections in the network settings. In 17.10 the option is not available anymore. How can I create a DSL connection?


There is a finite undirected graph in which the degree of every node is at least 3.   How to prove that this graph contains a cycle containing at least 4 nodes.  No need to prove that a cycle with a chord, only need to show is that it contains a cycle containing at least 4 nodes.

By simple graph I mean a graph with no loops or double edges.  If $C$ is a cycle and $e$ is an edge connecting two non adjacent nodes of $C$, then $e$ is called a chord.  I realize that one plan of attack is to choose any node, say $v_0$.  Then, since the degree of $v_0$ is $3$ there are $3$ other nodes connected to it.  Repeating this argument we will eventually have to reach a node that is connected by an edge to one of the previously used nodes.    I just don't see how this guarantees the existence of a chord.


How find that limit $\lim_{x\to 0}\frac{\sin\left(x\sin\frac{1}x\right)}{x\sin\frac{1}x}$? Its $\lim_{x\to 0}\frac{\sin\left(x\sin\frac{1}x\right)}{x\sin\frac{1}x}=1$?

Alright, scratch everything below the line. Let me present one cohesive question not marred by repeated edits.  The limit $\lim_{x\to a}f(x)=L$ exists iff for every $\epsilon>0$ there is a $\delta>0$ such that $|f(x)-L|<\epsilon$ when $0<|x-a|<\delta$.  Thus, $\lim_{x\to0}\sin\left(\frac1x\right)$ does not exist because, being that it oscillates infinitely near $0$, there is no $\epsilon,\delta$.  On the other hand, with the limit$$\lim_{x\to0}\frac{\sin\left(x\sin\left(\frac1x\right)\right)}{x\sin\left(\frac1x\right)}\\\lim_{x\to0}x\sin\left(\frac1x\right)=0\\y=x\sin\left(\frac1x\right)\\\lim_{y\to0}\frac{\sin y}{y}=1\\\lim_{x\to0}\frac{\sin\left(x\sin\left(\frac1x\right)\right)}{x\sin\left(\frac1x\right)}=1$$  this proof can be shown. However, since $\sin\left(\frac1x\right)$ oscillates infinitely, by the same definition of limit we used to show the above, the limit does not exist. How do I resolve this discrepancy?


i want to reverse 2-dimension array so if i have       int [,] Y = new int [3,4] {                                {0, 1, 2, 3} ,                                  {4, 5, 6, 7} ,                                  {8, 9, 10, 11}    };   how i can make the reverse of this array to be like                                  {3, 7, 11}                                 {2, 6, 10}                                 {1, 5, 9}                                 {0, 4, 8}   i just wanna know the logic in any language

Inspired by , say you have a 4x4 two dimensional array, write a function that rotates it 90 degrees. Raymond links to a solution in pseudo code, but I'd like to see some real world stuff.  [1][2][3][4] [5][6][7][8] [9][0][1][2] [3][4][5][6]   Becomes:  [3][9][5][1] [4][0][6][2] [5][1][7][3] [6][2][8][4]   Update: Nick's answer is the most straightforward, but is there a way to do it better than n^2? What if the matrix was 10000x10000?


Consider the real numbers contained in the interval $(5,6)$ and having a decimal expansion with only $4$s and $7$s to the right of the decimal point. How would I prove that there are uncountably many such numbers?

I just prove $$S_1=\{0.4,0.8\}$$ $$S_2=\{0.04,0.08,0.44,0.48,0.84,0.88\}$$ ... So I can calculate the number of elements in $S_n = 2 \times 3^{n-1}$  I just prove it is countably infinite.


I'm wanting to submit a PHP form and not refresh the page so that i can display the form data for preview before sending the inputs to the db. To better my JavaScript skills, this project is supposed to be only vanilla JS but the only thing I've seen online is to use jQuery and Ajax for async functions. Is that only possible with jQuery? Thanks for your time.

I'm trying to direct a browser to a different page. If I wanted a GET request, I might say  document.location.href = 'http://example.com/q=a';   But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not dynamically generated, I might use the HTML  <form action="http://example.com/" method="POST">   <input type="hidden" name="q" value="a"> </form>   Then I would just submit the form from the DOM.  But really I would like JavaScript code that allows me to say  post_to_url('http://example.com/', {'q':'a'});   What's the best cross browser implementation?  Edit   I'm sorry I was not clear. I need a solution that changes the location of the browser, just like submitting a form. If this is possible with , it is not obvious. And this should not be asynchronous, nor use XML, so Ajax is not the answer.


I have data about patient purchases - specifically, how late their fulfillment of prescriptions are, or if they filled them at all.  I want to feed this data into a neural network to classify them. Getting examplars is quite easy.  I have two ideas:  One, generate a variable-length array of floats, each representing the % lateness (so if it's a drug that should be filled every 30 days, 15 days would be a .5. I would also then feed in the purchase-period as an integer.  Second, generate a variable-length array of binaries, each representing whether a prescription was filled on that day. Again, there would be an integer representing the period.  Which of these options are preferable? Further, how can I deal with a variable-length time series? Do I need to make a different network for each different period of time? Do I just add leading or trailing zeroes, and make the input layer the size of the largest time series I could expect?

Theoretically, the training of RNN doesn't require that the samples must have the same time length, but it seems to me that some software or open-source requires that the input data has the same time length, for example, some packages in R. Can anyone give me an affirmative answer about this and some tools can treat inputs of different length? Thanks a lot!


I have a square matrix with elements $A_{i,j} = b^{|i-j|}$ where $0 < b < 1$.  I want to prove that it is positive definite.  The matrix looks like this: $$ A_{n\times n}:=\left( \begin{array}{cccc}     \;1  &  b &  b^2&\ldots& b^{|1-n|}\\      b  &  1 &  b  &\ldots & b^{|2-n|}\\     b^2& b &   1 & \ldots& b^{|3-n|}\\     \vdots& \vdots & \vdots &\ddots\\      b^{|n-1|} &  b^{|2-n|}&  b^{|3-n|} &\ldots  b^{|n-n|}      \end{array}\right) $$ Can anyone show it is positive definite?

The exponential kernel is defined by:  $$k(x,z) = e^{-\alpha\|x-z\|}$$ where $\alpha>0$, $x,z\in \Bbb{R}^d$, $\|x\|$ is the 2-norm.  The kernel matrix is defined by $K_{ij} = k(x_i,x_j)$, $i,j\in[1\ldots n]$.  How to prove that $K$ is a positive (semi-positive) definite matrix?


I'm trying to insert data into a mysql database, with the code below. Problem is, my json code containing the value "R\u00f8nde" is changed to "Ru00f8nde" after I insert it into the database.  What is the best way to avoid this?  INSERT INTO jos_payplans_user(user_id, params) VALUES ('24882', '{"modtager":"Anders And","adresse":"Paradisaeblevej 111","postnr":"1234","by":"R\u00f8nde","telefon":"12345678","user_notes":""}')

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?


Latex classes are really useful as they provide ready and easy to use implementation of complex formatting, styling and rendering methods. In fact, it is one of the most interesting feature of the latex system.  Choosing a class (and packages) is thus a critical issue prior to write any latex document. Choosing THE class suited for your project's needs may save you a lot of time wasted to implement basic features and manage packages incompatibilities and limitations.  Actually, I am using only a limited and general set of classes: article, beamer, report and book. But these classes do not allow me to do all I'd like to, at least in a rapid and easy way.  Searching for specific solutions to my problems one by one as the arise in the writing process has not been a satisfactory strategy and generated a lot of frustration. As my problems maybe be complex, multiple, interrelated and evolve during my writing projects, specific solutions found are often incompatible with my previous work or need a complete redesign of my implementation or are ugly-and-drawback-prone patches.   My question is: Is there a comprehensive overview of the different latex classes?  By comprehensive I mean: not necessarily the most complete and detailed ressource, but concise informations focused on existing classes' capabilities, forces/weakness, limitations, use of packages and incompatibilities with other packages.

Some of the available classes of documents in LaTeX are well known and widely used, such as the  and beamer classes, while others are not so well known, such as the  class.   I found  (edit: transcribed)     article for articles in scientific journals, presentations, short reports, program documentation, invitations, ...   proc a class for proceedings based on the article class.   minimal is as small as it can get. It only sets a page size and a base font. It is mainly used for debugging purposes.   report for longer reports containing several chapters, small books, thesis, ...   book for real books   slides for slides. The class uses big sans serif letters.   memoir for changing sensibly the output of the document. It is based on the book class, but you can create any kind of document with it    letter  For writing letters.   beamer  For writing presentations (see ).   which lists the main classes and is a good starting point, but the description is too short and still leaves one wondering when it would be more suitable to choose one class over the other and what the characteristics of each class is. Furthermore, the list is not exhaustive I think, given that I know at least one more document class that is not there (the standalone class, as I mentioned).  So my question is: what are the available classes of documents in LaTeX, and could you provide a brief description of the class and the situations where it would be recommended?   Please give only one class per answer.


Which preposition should I use in the sentence "He is an assistant professor in English" or should i use "He is an assistant professor of English"?

In my cover letter I want to write that I am a graduate student in statistics. But I am not sure about the "in". So what is correct?     I am a graduate student in statistics.      I am a graduate student of statistics.


If I go to Programs > Programs and features on my computer, I have Microsoft Visual C++ Redistribuable item installed several times, for the same year and for the same CPU target (x86 or x64). Sometimes, even version is the same (only install date is different).    Is this OK or, should I uninstall the duplicates (and only keep latest version ?)

I have a number of Microsoft Visual C++ 2005 and 2008 Redistributable and I would like to know which ones are safe to remove, because there are actually more than 10 installed on my computers.   Microsoft Visual C++ 2005 ATL Update kb973923 - x64 8.0.50727.4053 Microsoft Visual C++ 2005 Redistributable Microsoft Visual C++ 2005 (x64) Microsoft Visual C++ 2008 ATL Update kb973924 - x64 9.0.30729.4148 Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.17 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4148 Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4974 Microsoft Visual C++ 2010 x64 Runtime - 10.0.30319   It could be that these versions are all different, but a confirmation of that is fine for me as well. Thanks in advance.  PS. I'm using an x64 machine one windows 7.


I'm wanting to work out how many solutions there are to an equation of the form $x^2 = 1 \pmod {1155}$ in $\mathbb Z/1155\mathbb Z$, and I'm a little unsure of what the correct way to work this out is. I've attempted it several times now and know that I'm not answering it correctly, so I'm hoping someone on here will be able to help me. A step by step method would be really really really helpful!!

Next is what I have worked out to the moment.   $1$ and $-1$ are roots for all $n$.  $x \in \mathbb{Z}/n\mathbb{Z},\ $ $x^2\equiv1 \Leftrightarrow (x-1)(x+1)\equiv0 \Leftrightarrow \exists k \in \mathbb{Z}/n\mathbb{Z}: k(k+2)\equiv0 $. But how can it be applied to find other roots?


I would like to create a custom message when user did unexpected error it should show this message  Invalid parameter please enter correct values . It should not show this message.   The website encountered an unexpected error. Please try again later.  I would like to create    try {     ...      }       catch{         Invalid parameter please enter correct values;     }   please help with simple example

How do I override the template used for a 500 error? Is there any way to achieve this from a module?


I'm a third year maths undergrad doing a project on minimal surfaces. However I'm really struggling to understand what the PMT is trying to explain?  Could anyone help explain this (as simply as possible)

I'm currently a third year undergrad writing about Minimal Surfaces. In particular, trapped surfaces and black holes.  What does the  have to do with this? And does the theorem directly predict the existence of black holes?


It is well known that in Ridge or LASSO regression we add a regularization term to penalize large regression coefficients. What if the true relationship between the response and covariates relies on a large coefficient? Let's say, the true relation is given by $y=2.5x_1+1.5x_2+200x_3$, where the third term will get unfairly penalized in regression for its large but true coefficient. One way to avoid that is to standardized the data. But is that always necessary? Thanks in advance!

I am working with a lasso regression with the glmnet package. I read these threads: ,  and .  Based on the responses I decided that I need to standardize my data before using it. I do have some questions however:   Do I need to standardize the predictors and the responses or only the predictors? I am using the function scale(myData, center = TRUE, scale = TRUE) for building the model, but I am wondering what do I do when I want to do predictions with a test data set. I think I should also standardize and center the test data, but how to I do that? Substracting the mean from the initial (training) dataset and the dividing it by the standard deviation of the initial dataset?  When I get a result do I need to "backscale" it (using the original mean and standard deviation) or do I already get the "final" result?


I’m wondering if it’s possible to use regex to find all occurrences of a repeating string in another string  For a simple example find aaa in aaaaaaaaaaaaaaa   If I’ve counted properly it happens 13 times so an answer that finds 13 rather than 5 occourances would be good.   Another example   abcabc in abcabcabcabc where it repeats 3 times

I can't seem to find an answer to this problem, and I'm wondering if one exists. Simplified example:  Consider a string "nnnn", where I want to find all matches of "nn" - but also those that overlap with each other. So the regex would provide the following 3 matches:   nnnn nnnn nnnn   I realize this is not exactly what regexes are meant for, but walking the string and parsing this manually seems like an awful lot of code, considering that in reality the matches would have to be done using a pattern, not a literal string.


I try to display windows explorer view as a static web page. We have to read a root folder and display all the folders and files as a static webpage. We have to use only client side programming. I know it is possible with the help of server side programming. My question is, is it possible to achieve it in front end without involving backend. I have only one problem which is reading the folder structure. How can I do it? I need to load a html file(ex..C:\workspace\treeview\index.html) in the browser and it should display all the files and folder. Also share your suggestions to achieve the above scenario?

Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with no install footprint like requiring .  Specifically, I'd like to read the contents from a file and write those contents to another file. At this point I'm not worried about gaining permissions and am just assuming I already have full permissions to these files.


I searched a lot for this but couldn't find an answer. Say I have two equations that are 2 lines long each. I can align each equation at their equality sign using equation-aligned or gather-split, like this:  \begin{gather} \begin{split}   a &=b \\     &=c \end{split} \\ \begin{split}   k &=l+55 \\     &=d+401 \end{split} \end{gather}   However, I can't find a way to align the equality signs of both sets of code. Any solutions?

I am trying to align a set of long equations, that are themselves align environments as most of them are spreading on multiple lines.   Currently I just have a sequence of align environments, with each equation inside in order to align the pieces of each equations. I am attaching a screenshot of the result:    What would like to get instead is something looking more like    which is the same set of equations after going through the copyediting office of a journal and looks much better.  Here is a MWE. I would like all three equations to align on the equal sign.  \documentclass{article} \usepackage{amsmath}  \begin{document} \begin{align} a & =  b + c + d \nonumber \\   & \qquad + e + f + g \label{eq:1} \end{align} \begin{align} k & = l + m + n + m + n + m + n \nonumber \\   & \qquad + o + p + q \label{eq:2} \end{align} \begin{equation} r = s + t (u + v + w) \label{eq:3} \end{equation} \end{document}


I have a generic class which in I also have a struct. Like this:  template <class T> class Octree {     public:      struct node     {         typename  T value;         node *child[8];     };      Octree();     template <class T> Octree();     ~Octree();     void clear(T t);      node* root; };   the .cpp file :   template <class T> Octree<T>::Octree() {     root = new node;     root->value = 0;      for (int i = 0; i < 8; i++)         root->child[i] = 0; }  template <class T> Octree<T>::~Octree() {     clear(root); }   and the main:   using namespace std;  int main() {     Octree <int> fasz;     Octree <char> fasz2;     return 0; }   I've just created an object of my tree and I got this error:     Error  LNK2019 unresolved external symbol "public: __thiscall Octree::Octree(void)" (??0?$Octree@H@@QAE@XZ) referenced in function _main Zz  c:\Users....Source.obj   I have tried to write the template declaration in a header file, then implement the class in an implementation file (for example .cpp), and include this implementation file at the end of the header but then I've got an error:     Error  C2995   'Octree::Octree(void)': function template has already been defined   I have seen this link question but it's not what I need.  Have you any idea what the problem is?

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


Step 1: Create Table  CREATE TABLE [dbo].[AAA]( [id] [int] IDENTITY(1,1) NOT NULL, [name] [nchar](10) NOT NULL, [last] [nchar](10) NOT NULL)   Step 2: Insert Correct Value  insert into aaa values ('lkj', 'lkj')   This will Generate ID - 1  Step 3: Try to Insert Incorrect Value  insert into aaa values ('lkj', NULL)   This will error and no record will be inserted  Step 4:  insert into aaa values ('lkj', 'lkj')   This will insert again, But ID generated will be - 3 (Not 2) Because ID 2 was generated at Step 3 but no record was inserted.  I want that when I next enter any record ID generated should be 2 and not 3. I have searched and found solution for MySQL below, but I want it in SQL Server:  alter table tablename auto_increment =1   OR  alter table tablename auto_increment =#   Also there is another solution I found...  declare @max int; select @max = max(key) from table; dbcc checkident(table,reseed,@max)   This code is good and it works. But I have to execute this every time there is a skipped ID... Isn't there a permanent fix for this problem? I want something like "execute it once and then forget about it..." I am facing this problem on production server so I want a permanent solution. I am using entity framework for inserting data so i cant use this query every time.  Please let me know any way to fix it. Either in SQL Server 2012 or in Entity Framework 6. Thanks in Advance.

I've deleted some records from a table in a SQL Server database. The IDs in the table look like this:  99 100 101 1200 1201...  I want to delete the later records (IDs >1200), then I want to reset the auto increment so the next autogenerated ID will be 102. So my records are sequential, Is there a way to do this in SQL Server?


I was watching a tutorial on making glass, and it included this node, however I wasn't able to find it anywhere, is it an add-on or am I just missing it?

A lot of people recommend to use the maximum node for glass setup, but I can't find that node. Nothing comes up when I search for it.  Where do I find it?


I  have a Lenovo IdeaPad 100s that  came  with  win 10 installed. That  os occupies the  majority  of  the ssd  drive. Constant persistant  ridiculous  harrassment  to  upgrade  win10 which  requires  8 gigs when there is  only  1.8 gigs  free space despite  no  significant  files has  led  me to  want to  eliminate  win10 in favour of  Linux. But despite  having a verified  usb iso  win10  seems  to  overide  any attempt at an external boot. I would like  someone  to point  me to a download os  wiper that is  simple to use.

I have installed bootable ubuntu on hard disks but now I can not format them with Disk Utility program. When I try to format it says "One or more partitions are busy on /dev/sdb" for both hard disks. Is there any way to format these drives?  EDIT: With "Disk Utility" program when I select one of the hard drives It shows 3 volumes;  99 MB FAT 111 GB EXT4 9 GB UNKNOWN   I can not format this unknown volume.  With Gparted program, It doesn't shows Unknown volume only shows 111GB EXT4.


I was wondering what could be the major difference between a library and framework. When can we use a library in our application and when can we go for a framework.

What is the difference between a framework and a library?   I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of application development (i.e. database access); and a framework on the other hand as a collection of libraries centered on a particular methodology (i.e. MVC) and which covers all areas of application development.


I Need the Logged User Name in Column  C  When he enter the cell from drop down list Selection in Column D In Google Sheet I have number of users to use one sheet they Have a list of drop down selection in Column D When they fill the column one by one I should get the logged user name in Column C one by one.  In Column D3 D4 and D5 ...... if he select the cell value I should get his name in Column C3 C4 and C5 ...... Hope some one will help me out

I have a spreadsheet in Google Sheets that is shared with five people.  Only a few columns are edited; all of the other columns are locked.  We need the ability to track changes to these editable columns, so, , I added a script in Apps Script like this:  function onEdit() {  if( s.getName() == "MySpecialSheet" ) { //　Set to sheet name    var r = s.getActiveCell();    var col= r.getColumn();    if( col == 3 ) { // Check the column      var nextCell = r.offset(0, 1);       var datetime = new Date();      datetime = Utilities.formatDate(datetime, "GMT+9", "yyyy/MM/dd, hh:mm:ss"); // +9 for Tokyo      nextCell.setValue(datetime);    };  }; }   This automatically inserts the time when the relevant cell was edited, which is great.  However, I also want to add a way to tell who edited the cell.  I checked the  in the apps script documentation, but it seems the only method is getEmail(), which:     is not available in any context that allows a script to run without   that user's authorization, like a simple onOpen(e) or onEdit(e)   trigger, a custom function in Google Sheets, or a web app deployed to   "execute as me" (that is, authorized by the developer instead of the   user).   Since my script uses onEdit(), I have no way to get the email address.  Is there a way to get any kind of ID (I don't need the email address-- it could be the name of the account or a number) for the person editing a cell, and then insert that into another cell?  If not, I suppose I can create a column that people can just type their initials into, but people tend to forget so I would prefer an automated solution if possible.


I found strange System.AttributeTargets value - AttributeTargets.Module. I searched it's usages and found this C# code:  [module: ContractNamespace("http://tempuri.org")]   It is an attribute on a something called "module".  What does this module mean in C#? Why can't I find it in the ? Isn't it a keyword? When is it used?

What exactly is a module? What is the difference between a module, a class and a function? How can I access a module in C#?  I am asking this because I want to calculate a checksum of the IL code of only some particular functions, at runtime (without using code signing).


What is acceptable form sentence in the spoken English?      1) I will see you in another time   or     2) I will see you at another time

I have found the following usage of "on", "at" and "in" on the internet. Is there any other exception and/or rule for that?  Prepositions of Time Use in for  Months: in April / in September / in that month Seasons: in (the) summer / in (the) winter Years: in 1332 / in 1984 / in that year / in the next year Long Period(s) of Time: in former century / in 90's / in the Ice Age / in the past / in the future  Exceptions: in the morning / in the evening Use at for  Time: at 8 o'clock / at 9:30 / at bedtime / at sunset / at dinnertime / at 5:33:10 AM  Exceptions: at Christmas (= during the Christmas holidays but not necessarily on December 25th) / at Easter  / at noon / at night / at the weekend / at the present time / at the moment Use on for  Days: on Monday / on Friday / on Christmas Day (= on December 25th) / on Easter Sunday / on Independence Day Dates: on February 18th / on her birthday / on 21 March 2015 / on  Notice:  We have in the morning and on Monday but we say on Monday morning, not in Monday morning, and so on. When we say last, next, every, this we do not also use at, in, on: She runs next Tuesday. (not on next Tuesday) / He leaves us every Easter. (not at every Easter) / I See you this evening. (not in this evening) Look at these examples for the combination of times in a sentence: We will meet next week at six o’clock on Monday. / I heard a funny noise at about eleven o’clock last night. / It happened last week at seven o’clock on Monday night.   Look at  as well which says:  This all hints at a coherent metaphor: hours and other short periods of time are places; days are surfaces; months and longer time periods are containers.


I want to append an element from another Blend file by a script. I found the Blender operator bpy.ops.wm.append which should do what I want. However, the API documentation is a bit unclear:  filepath  – File Path, Path to file directory – Directory, Directory of the file filename  – File Name, Name of the file   So what exactly is expected here?

I'm searching a way to append a group in Python.  It should behave exactly like the Append function (ShiftF1) works, all objects should be local and editable. The idea is to append a character (with rig etc.) via Python and not Link it (to be able to modify it without making everything local one by one).  Thanks


ls -t1 |  head -n 1 will give me the latest updated file so I want to tail that latest updated file in shell. How do I do that?

I want to run a java command once for every match of ls | grep pattern -. In this case, I think I could do find pattern -exec java MyProg '{}' \; but I'm curious about the general case - is there an easy way to say "run a command once for every line of standard input"? (In fish or bash.)


It is thought the universe is expanding because of the red shift of most galaxies but if all the matter in the universe was actually falling into a massive black hole wouldn't most galaxies still be red shifted because the black hole would accelerate every galaxy and every galaxy that was nearer the black hole would be accelerating away from us and we would be accelerating away from any galaxy that was further from the black hole than us. There must be something wrong with this thought can you tell me what it is?

Recently I've read that  as proposed by Hubble. Therefore is it possible that instead of space expanding in all directions all matter is falling toward some distant barycentre? Galaxies already closer to it than our own would be accelerating faster and thus we'd observe them redshift. At the same time, our galaxy would be accelerating faster than galaxies which are farther away than us from the "universal centre of mass" which should also result in observing them move away from us. Assuming we have only seen a small part of Universe and in particular only space on one side of the supposed centre so far, all galaxies except the ones on the same sphere around the distant centre as ours would look redshifted to us. For example when looking at  one can see a big purple arc which could be due to galaxies having the same distance as we do from the centre.


My laptop died, but the hard drive is fine. I would like to buy a new laptop and move the hard drive to the new laptop, keeping my windows installation, with all its installed programs. Is this possible? Since the old laptop is toast, using sysprep is impossible. Is there any other way?

My laptop running Windows 7 Ultimate (non OEM) died on me today and it has tonnes of stuff on it - my projects, Visual Studio and office installations, etc. etc.  I am getting a new laptop from somewhere and was wondering if I could just unplug the hard disk from my original (dead) machine and plug it into the new one.  I remember trying this once with Windows Xp (on a desktop) and the OS crashed on boot and I had to reinstall everything again.  I have read about  but by the looks of it, it can be used only when the host computer is alive and kicking -- which mine isn't.  My old laptop was a Compaq Pressario v3000 (3 years old) on an AMD and the new one is going to be a new dual core Intel HP laptop.  Any ideas?  Thanks!


I know I will be doing many calculations with the basis vectors (1,0) and (0,1) so I'm trying to define a command so I can write this vector inline. However, I'm getting the following error: "LaTeX Error: Missing \begin{document}."  Here is my code:  \documentclass[11pt]{article} %  \usepackage{fullpage} \usepackage{graphicx} \usepackage{graphics} \usepackage{psfrag} \usepackage{amsmath,amssymb} \usepackage{enumerate} \usepackage{amsthm} \usepackage{scrextend} \usepackage{float}  \setlength{\textwidth}{6.5in} \setlength{\textheight}{9in}   \newcommand{\basis0}{\bigl[ \begin{smallmatrix}1\\0\\ \end{smallmatrix}\bigr]} \newcommand{\basis1}{\bigl[ \begin{smallmatrix}0\\1\\ \end{smallmatrix}\bigr]} \begin{document}    The vectors $|0\rangle = \basis0$ and $|1\rangle = \basis1$ are useful for...   \end{document}

I would like put picture into table, and my idea is define new command as below>   \newcommand{\EJ471}{\includegraphics[scale=0.150]{EJ_471.jpg}}   But compiler reports an error. If I use the command name for example \EJa, everything is all right. I've read similar questions as      But still I don't understand why it does not work.


Thank you for your patience I am new to linux and I wanted some help understanding how I can parse the output of the cut command.  So, currently I have a variable   x=$(discover nginx --human=nood | cut -f1,6)  So my output to echo "$x is a list of like      instanceID IPAddress   In my program I want to run a for loop over each row of x and extract the first and the second variables separately.  Eg: if it was an array a[0] = instanceID and a[1]= IPAdderess  Please can someone guide me how to extract the elements separately. I know that I can run a loop in $x and do a cut within that but I am looking to understand if there is a better way of doing it.

So I am trying to extract an output similar to   x=($discover nginx --human=nood)   which gives me an output like      i-03099   nginx   IP  noodlefish      pip b4b966d280546c6b070f5f952c281d3294308048   Further I want to extract the pip column in another variable.  When I do  echo "$x" | cut -f6   I get my desired output, but when I try.  y= "$x" | cut -f6    I get a blank output.   Please can you explain me why is this happening and how can I get the result I want. Thank you in advance.


I installed Ubuntu on my laptop, and now I want to partition my hard drive, but I'm not sure how to partition after Ubuntu is already installed.  How can I partition my hard drive?

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


I have 2 hard drives on automount that I could access perfectly. Then I installed Windows 10 and repaired GRUB to get dual boot. I don't know if that's the cause but now I can't paste any files into any drive other than my Xubuntu partition. I googled it but didn't find a solution so I really need some help here. Thank you very much in advance.

Until recently both my Windows Partition (C:) and my Data Partition (E:) would mount as read/write. Now both seem to only mount as read-only.    GParted Resize (Error)  ntfsresize v2.0.0 (libntfs 10:0:0) Device name : /dev/sda4 NTFS volume version: 3.1 Cluster size : 4096 bytes Current volume size: 86207623680 bytes (86208 MB) Current device size: 86207627264 bytes (86208 MB) New volume size : 78662066688 bytes (78663 MB) Checking filesystem consistency ... Accounting clusters ... Space in use : 62126 MB (72.1%) Collecting resizing constraints ... Needed relocations : 1606868 (6582 MB) Schedule chkdsk for NTFS consistency check at Windows boot time ... Resetting $LogFile ... (this might take a while) Relocating needed data ... ERROR: Extended record needed (1032 > 1024), not yet supported! Please try to free less space.   chkdsk Output:     Checking file system on E: The type of the file system is NTFS. Volume label is Data.  A disk check has been scheduled. Windows will now check the disk.                            99482 file records processed.   495 large file records processed.                        0 bad file records processed.                            0 EA records processed.                                  0 reparse records processed.                             104412 index entries processed.                          0 unindexed files processed.                             99482 security descriptors processed.                    2466 data files processed.                              CHKDSK is verifying Usn Journal...   4479208 USN bytes processed.                                      Usn Journal verification completed. Windows has checked the file system and found no problems.  84187132 KB total disk space.   60479688 KB in 69969 files.      15520 KB in 2467 indexes.          0 KB in bad sectors.     174336 KB in use by the system.      65536 KB occupied by the log file.   23517588 KB available on disk.       4096 bytes in each allocation unit.   21046783 total allocation units on disk.    5879397 allocation units available on disk.  Internal Info: 9a 84 01 00 00 1b 01 00 fc 1a 01 00 00 00 00 00  ................ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 42 00 00 00 52 73 5c 77 b0 e7 1d 00 b0 df 1d 00  B...Rs\w........   fstab  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    nodev,noexec,nosuid 0       0 # / was on /dev/sda5 during installation UUID=8213cc89-2438-41b9-899f-13b4c5b299af /               ext4    errors=remount-ro 0       1 # swap was on /dev/sda6 during installation UUID=45873767-d9ae-4f0c-baab-ffc2726ac24e none            swap    sw              0       0   Checked the drive in GParted, GSmartControl and with ntfsfix, all completed successfully, no change.  Partitions  dev/sda1 NTFS WinRE dev/sda2 NTFS Windows C: dev/sda3 Extended dev/sda4 NTFS Data E: dev/sda5 EXT4 Ubuntu dev/sda6 linux-swap    I am looking for an explanation of:    Internal Info: 9a 84 01 00 00 1b 01 00 fc 1a 01 00 00 00 00 00  ................ 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................ 42 00 00 00 52 73 5c 77 b0 e7 1d 00 b0 df 1d 00  B...Rs\w........   and    Resetting $LogFile ... (this might take a while) Relocating needed data ... ERROR: Extended record needed (1032 > 1024), not yet supported! Please try to free less space.


I'm a newbie using QGIS 2.12 and I'm trying to split a line in QGIS and place points every x meters. There is a tool in ArcGIS (divide by length add in). How to achieve this in QGIS?

Does exist some plugin with it is possible to Splitting lines at a specified distance in Qgis?


Suppose I have:  srting s="C:\\someIllegalChars\\בלה.xlsx"; FileInfo fi = new FileInfo(s);   This gives:  Illegal characters in path. :::  ::: System.ArgumentException: Illegal characters in path.    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)    at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)    at System.IO.FileInfo.Init(String fileName, Boolean checkHost)    at ...   I need a function that will fix this type of Illegal  strings, something like:  string Fixer(string){ return fixed string; }

I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am I missing?  using System; using System.IO;  namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args)         {             string illegal = "\"M<>\"\\a/ry/ h**ad:>> a\\/:*?\"<>| li*tt|le|| la\"mb.?";              illegal = illegal.Trim(Path.GetInvalidFileNameChars());             illegal = illegal.Trim(Path.GetInvalidPathChars());              Console.WriteLine(illegal);             Console.ReadLine();         }     } }


In Android Kitkat 4.4, is there a way to invert screen colors, that is make all colors negative? One would assume this would be a basic accessibility feature in today's world.

iOS has a nice option in the accessibility menu that allows you to invert the screen colors. Does Android have anything like this?


Let see this sentence:  a person needs to change his / her mind so that he /she can become good.   or a person needs to change his mind so that he can become good  is the second one incorrect?  I've never seen anyone write like this a person needs to change her mind so that she can become good

Is this sentence grammatically correct?  Anyone who loves the English language should have a copy of this book in their bookcase.  or should it be:  Anyone who loves the English language should have a copy of this book in his or her bookcase.


I have a class called MainUI that extends JFrame, it has this code :  //Constructor public MainUI(){  // components/panels are already defined and initialized here.  setBackground(Color.decode("#EFF4E4")); }  @Override public void setBackground(Color colorbg){ //a method to set the same background color for all the components I ave  getContentPane().setBackground(colorbg);  decisionPanel.setBackground(colorbg);  adbRadio.setBackground(colorbg); fastbootRadio.setBackground(colorbg); commandRadio.setBackground(colorbg);  pushPanel.setBackground(colorbg); uninstallPanel.setBackground(colorbg); pcPanel.setBackground(colorbg); phonePanel.setBackground(colorbg); }   however, when I compile, it gives a NullPointerException at the line [ decisionPanel.setBackground(colorbg); ]  I tried not overriding the setBackground method and renamed it and the code worked fine, I don't know why overriding setBackground method causes a problem?  I'm sure all the panels/components are initialized before the call to the method, it's obvious since the code did work just ater I've renamed the method.

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


I have this code:  if($key == 'b306') {     $fieldType = 'date';   }   In my PHP Storm debugger, it says that key = 0 (integer). When I leave it as a ==, the code does pass into the if. Only if I change it to === does it skip it, as expected. Why? I thought that the difference between == and === is that === matches type and value, vs == only does value. But this shouldn't allow 0 to be equal to 'b306'.

What is the difference between == and === in php. I am unsure when to use both.  Updated note: So that it shows up in StackOverflow search, the difference between == and === is the same as the difference between != and !==.


I remember a show airing on Cartoon Network or on demand of this "mon" genre. Warriors summoned giant monsters using rocks covered in runes.

Can you please help me find this animated show? There is a four member team with two boys and two girls. The boys can summon, with their stones, a rock golem (black wearing summoner) and a robot (orange wearing summoner). The two girls can summon something like a dragonfly (green wearing summoner, little girl) and the blue girl, I don't remember what she can summon.  I don't know where the animated show comes from.  By throwing the stone, they activate the stone's power. Each stone has different characters on it. When you don't match them correctly, you get a rebound effect.


I am a Bangladeshi citizen, residing in Nigeria for 13 years. I am currently working in Nigeria for over wo years. I intend to go to UK alone in April, 2017 for one month in order to participate in PLAB 2 examination for doctors. My father, who is also a practicing doctor in Nigeria, will be my financial sponsor.  Will I need to submit my own bank statements alongside my father's bank statements while applying for the visa?  Also, do I need to submit police verification report and TB clearance report for UK Standard Visitor visa?

The UK Visas and Immigration Directorate publishes  that provides helpful tips that can result in successful visa applications. Section 2 of this guidance opens is entitled "other documents you may want to provide" (emphasis mine).  Section 2: other documents you may want to provide – all visitors This section provides guidance on the types of documents that you may want to provide to help us consider your application against the Immigration Rules. Previous travel documents/passports, which show previous travel. Financial documents showing that you have sufficient funds available.  These must clearly show that you have access to the funds, such as:  bank statements building society book proof of earnings such as a letter from employer confirming employment details (start date of employment, salary, role, company contact details) where a third party (who is either in the UK or will be legally in the UK at the time of your visit) is providing financial support to you e.g. a business, a friend or a relative, documents to show that they have sufficient resources to support you in addition to themselves and any dependant family should be provided   The first item is "bank statements" and this ties in with the , which says...  evidence that you can support yourself during your trip, eg bank statements or payslips from the last 6 months  (Note 'eg' is a Latin abbreviation meaning "for example"; this appears to be optional rather than a fixed requirement.) Question: How should someone interpret this such that the chances of success are maximized? How many statements should I submit? What are they looking for and what do my bank statements tell about me?


Let $A=\mathbb R[X,Y]$. Is it easy to classify the $\operatorname{Spec}A$? I guess it contains at least $(0)$ and $(p)$ for primes $p\in A$ but maybe some else sets. Is it easy to classify those?  Edit. Yes. I forgot maximal ideals. I think those are given in  I'm not sure but I guess those can be written as $(p,q)$ where $p=X-a$ and $q=Y-b$ for $a,b\in \mathbb R$ or $p$ is linear and $q$ is $X^2+xX+d$ or $Y^2+cY+d$ where $c,d\in\mathbb R$ and $c^2<4d$.

Suppose that $k$ is an algebraically closed field. Then what do the prime ideals in the polynomial ring $k[x,y]$ look like?   As far as I know, the maximal ideals of $k[x,y]$ are of the form $(x-a,y-b)$ where $a,b\in k$. What can we say about the prime ideals? Are there similar results? And what about $k[x,y,z], k[x,y,z,w]$ and so on. Would someone be kind enough to give me some hints or referrence on this topic? Thank you very much!


Something just came up on a news bulletin, and I'm a bit puzzled.        I was unaware of everything that happened that night.   I wasn’t aware of anything that happened that night.      "Not aware" and "unaware" mean the same thing, a lack of awareness (as far as I am aware!), and yet the everything and anything are not interchangeable.  Am I right in this? If so, can anyone explain the intricacy?

As a non-native speaker, when I read the books about grammar, I learn that usually the word "everything" is used in a positive sentence and that the word "anything"is used in a negative or interrogative sentence. But I often see sentences in some magazines and articles like:   We'll do almost anything for our beloved animals.   What's the difference between them, and is it changing the meaning in sentence?


Hello i have problems with this prove Let $X$ be a topological space and consider a subset $A \subset X$ with the induced topology of $X$. A continuous function $r: X \longrightarrow{} A$ is called the retraction function if $r (a) = a $ for all $a \in A$. Prove that every retraction function is an identifying function. I do not know how to start

I have to proof that every retraction is a quotient map.. I have no idea where to start or what to use! A retraction $r:X \rightarrow A$  is a continuous map s.t. $r(a)=a$ for every $a\in A$.


Please tell me, how can I install a backdoor so that I can reset the password from recovery mode, as well as from terminal. I would prefer that this be something that can only be done while installing and that it would notify you for a few days after installing that there is a backdoor so that you can't install Ubuntu on someone's computer with a backdoor to hack/crack there information.

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


A standing wave is the result of the interference of 2 opposing waves right? Then how can this diagram on the upper left be true?  One sound wave is created by the musician, the other is supposed to come as a reflection, how?  And if the second, opposing wave is somehow generated by reflection, shouldn't the point where it was created be a node, not an anti node?

We know that standing waves are created when any wave traveling along the medium will reflect back when they reach the end. But in an open organ pipe, there is nothing to oppose the wave and reflect it back. So then how are standing waves created in such a case? In standing waves where is the pressure greater, at nodes or anti-nodes?


I am Eritrean traveling from Sudan to Italy. I have got a Schengen  visa to Italy, my question is, can I transit through UK without any other additional visa, mean with that Italian schengen visa only.

I am travelling to Budapest and therefore have a Schengen Visa. I hold an Indian passport and a valid US visa. I'm travelling from Chicago-Heathrow-Budapest and returning by Budapest-Dublin-Chicago.  Would I need a transit visa for UK/Ireland?  UPDATE  Hoping this will help someone someday.   I was not allowed to board my return flight (BUD-DUB-ORD) because I do not hold an overnight Irish Transit Visa. They said I could have transited happily if the connecting flight was in the same day, but because I would have to originally land at 10 PM and catch the connecting flight next morning at 10 AM, I needed a transit visa. Well, I thought it was BS, but couldn't help comply with the rules. I booked another last minute ticket and flew via Warsaw via LOT.


I have found the following entry in a user crontab:  */5  * * * *  ~/bin/php /path/to/phpscript &> /path/to/logfile   What is the meaning of the & (ampersand) here? Has it still the meaning of running in background? Does it make sense in a cronjob?

I often see tutorials online that connect various commands with different symbols. For example:  command1 |  command2 command1 &  command2 command1 || command2     command1 && command2   Others seem to be connecting commands to files:  command1  > file1 command1  >> file1   What are these things? What are they called? What do they do? Are there more of them?    .


So I have a C: partition, and windows says that it has 92.5 GB worth of data in it.    However I've selected every fodler in C: (including hidden folders), and clicked properties to check how much space does it take up, and it is just 57GB.    Now, is Windows displaying wrong information, or may I doing it wrong.   Is the properties of C: where it shows how much of the disk is being used   Is the properties of all the files in C:

I have two hard drives (same size, same partitions, same model) that have been synchronized using FreeFileSync. They are used to store data, not the system. After sync, the drives should report same free and used disk space but it is not the case.  First drive (used for storage) reports 781 GB of used disk space, while second drive (backup) report only 778 GB. To get that information, I right clicked on the disk then choose properties.  First, I was thinking that synchronising tool was not doing is job (by excluding some files) but using other file synchronisation tools (like SyncToy or DirSyncPro) give me same result (no difference in files reported justify a delta of 2 GB).  Also: if I go to drive root folder, select everything (all files and folders) and right click then choose properties, total reported files size is 778 GB on both drives. If i look closer at the numbers, there is a small difference of a few megabytes between the two drives however.   Notes :   Computer have been restarted several times. Recycle bin have been emptied on both drives (if I go to $RECYCLE.BIN folder, both are almost empty (only a few KB). Shadow copy is disabled. vssadmin list shadows doesn't report anything. Windows Explorer folder settings have been modified to display system files and hidden files.  I have run "Error checking" tool (with "Automatically fix file system" enabled) on both disks.   Why is there a difference in used and free space between the two drives? How can I solve this?


The gravity field is determined by the metric $\eta_{\mu \nu}$ we impose on a flat (Minkowskian) spacetime, for which the metric has diagonal elements only: $(1,-1,-1,-1)$. Solving the Einstein equation gives you the space- and time components of the metric if a stress-energy tensor $T_{\mu \nu}$ is present. Time variations in the metric represent gravitational waves. So we can say that the gravity field is a metric field defined on a flat (Minkowskian) spacetime and from this we can calculate what the real (non-Minkowskian) spacetime looks like (if a stress-energy tensor is present). How can we say that locally this curved spacetime is Minkowskian if a Minkowskian metric is only there in Minkowskian spacetime? Isn't it Minkowskian everywhere if it's locally so? Of course, by looking close enough, you can say the curved spacetime looks flat (like a function can be approximated by a linear function for small values of its argument). If curved spacetime looks flat locally, then why will mass move in curved paths?

I imagine a point-like particle can only experience the local properties of spacetime. But locally there is no curvature and no gravity, as it is often stated that     Locally, as expressed in the equivalence principle, spacetime is Minkowskian, and the laws of physics exhibit local Lorentz invariance. ()   But if this is the case how does a point-like particle know, which direction it should follow in a gravitational field?   Can this be a seen as a hint that point-like particles cannot be used as underlying concept for a field theory like general relativity?


I have some input files of different mimetypes that get uploaded and then dynamically routed. The dynamic routing is determined by the mimetype of the input file. These types goes beyond standard things like application/json, xml and extend to geospatial file mimetypes, etc.   My question is, how do I determine the mimetype from an input file? Does the browser somehow auto-resolve it when it gets uploaded? Do I need to parse the input stream in my backend code using some fancy IO lib?

How do you get a Media Type (MIME type) from a file using Java?  So far I've tried JMimeMagic & Mime-Util. The first gave me memory exceptions, the second doesn't close its streams properly. How would you probe the file to determine its actual type (not merely based on the extension)?


Or are they completely independent? Can you have autocorrelation and non-stationarity and vice versa? Or not?

What is the relationship between autocorrelation and non-stationary?  Is it true that non-zero autocorrelation $\implies$ non-stationary, but not vice versa?


I'm using the shortcut Win + D a lot, becuase it's very useful for quickly minimizing all windows. Recently, I got a notebook and a monitor. I mainly work on the screen, and the laptop is only for outlook. When I use Win + D it minimizes all windows, but I want only to minimize the windows on the monitor, and keep outlook on the notebook.  Is there a way to map the Win + D action to the primary monitor?

I'm looking for a way to use a keyboard shortcut to minimize all the windows on the monitor that currently has my mouse on it. I found this page:  but that appears to be hardcoded to minimize windows on a specific monitor, rather than the active monitor. Plus, I have no idea how to compile that code (not a VB coder). Anybody know a way that I can make this happen? I'm on Windows 7 ultimate, 3 monitors.


How can I send a shapefile to an SQL Server table?   I have searched and found a tool called  but I am developing a c# Windows application so I am looking for an Open Source solution.

I am new to ArcGIS and trying a few things..   I'm trying to read shapefile (which is supplied as an input) using C# and I want to generate a PDF file which contains underlying metadata information (similar to the Identify tool) ?


Check  for example:        This affects at least Stack Overflow on Russian too.  :        It seems it happen when the tag description contains the tag name itself.

When you search on any of the SE network sites, with a tag (so that a description is shown); it shows the tag info content box, with the highlight-search-term span elements.  For eg. I searched ; ; and the results are as shown:                  Notice the <span class='search-highlight'> boxes around searched tag terms.


I know it's already been covered that , but suppose the following situation occurs:  Useful answer that should have been a comment   - Useful comment with upvotes   Naturally, the answer gets converted to a comment. In the process, I check the box that says "move comments" because they're useful and should be kept. But the upvotes on that comment, which are genuine and deserved, don't get carried over.  So if the answer had upvotes, it doesn't get to keep those. (And really, it shouldn't have had them if our methodology says it should be a comment.) But the comment was a good comment and deserved the upvotes it received. Shouldn't it retain the votes that IT has? Sure, AnswerVotes != CommentVotes, but shouldn't CommentVotes == CommentVotes?  Am I missing something here? Is this an oversight or is it intentional?

When the moderators convert some answers to comments based on flag requests from other users, I think it should also convert no. of upvotes to the corresponding comment votes.  Eg:- If an answer with 5 upvotes and 2 downvotes is converted to a comment, then the comment should get 3 upvotes automatically during conversion.  Since the comments do not have any downvote concept, the answers which get cummulative negative votes can be ignored when they are converted to comments.


I'm certain this question must have been asked/answered, but I just can't find it.    I'm running ArcGIS Server and want to build a basic viewer that points to my locally hosted services.  I'm not interested in doing anything with ArcGIS.com; however all the examples hosted at esri illustrate interfacing with ArcGIS.com.    How can I point to my local map?  Alternatively, can you point me to where I can find the answer (as I'm certain this must have been asked already)

I am looking for basic viewer for ArcGIS JSAPI  but not  getting  proper sample/example.  I am going through  also but looks like its not working.  Going through  question also.  Checking out  example and getting confused that what is difference between Viewer template and layout?  So any help regarding this will be great!


Is there any way to convert a collection of objects into a single new object using LINQ?  I want to use this within another LINQ to SQL expression.

I have the following string array:  var sa = new string[] {"yabba","dabba","doo"};   I can convert it to "yabba, dabba, doo" it using string.Join() but what is the super-cool LINQ way of doing it?  The Join extension method seems promising but for a novice like me very confusing.


I have done the following test on Visual Studio 2017:  1) Created new repo with master branch:    It just has a gitginore file:    2) Created Branch1 with file1:      3) Checkout master branch again, and opened 'Show folder view':      Why on earth am I seeing file1 in master branch?

I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that same file is shown as modified.   For example:  git status in git-build branch:  # On branch git-build # Changes to be committed: #   (use "git reset HEAD <file>..." to unstage) # #       modified:   cvsup_current #   Switch to master branch  [root@redbull builder_scripts (git-build)]# git co master M       builder_scripts/cvsup_current Switched to branch "master"   git status in master branch  [root@redbull builder_scripts (master)]# git status # On branch master # Changes to be committed: #   (use "git reset HEAD <file>..." to unstage) # #       modified:   cvsup_current #   Why is that the file is shown as modified in master branch even though it was modified in git-build branch?   My understanding was that the branches are independent of each other and when I change from one branch to another the changes do not "spill over" from one branch to another. So I am obviously missing some thing here.   Anyone got a clue stick?


I need access a visual force page with out using salesforce credentials.

I came across  and wanted my own page to be publicly view-able without any logins. How can I do this?  Thanks MnZ


How would one go about finding all of the ideals of this ring? (with addition and multiplication defined component-wise)

I am trying to solve this problem:      Let $ R_1,...,R_n$ be rings with identity. Every ideal of $R=\prod_{i=1}^n R_i$ is of the form $\prod_{i=1}^n I_i$  where $ I_i$ is an ideal of $R_i$.    The first part is clearly if $J$ an ideal of $R$ then $J\subset \prod_{i=1}^n I_i$, but i can complete the rest..any help..


So I am trying to update a listbox from some data I'm receiving over my local network.  I know there is something fundamental I'm missing. Could anyone explain what I might be doing wrong here? I realize that you cannot update UI from any thread other than the UI thread. I guess my issue is that I do not know how to specify that I want the UI thread to update the values.  You can see in the monitor thread what I am trying to accomplish.  namespace FrontEnd {     public partial class Form1 : Form     {         TcpClient clientSocket = new TcpClient();         //CommandQueue commandqueue;         private List<String> COMMANDS = new List<String>();         private object m_lock = new object();         delegate void AddListItemDelegate(string text);          public void enqueue(string command)         {             lock (m_lock)             {                 Debug.WriteLine("Enqueue");                 COMMANDS.Add(command);             }         }          public string dequeue()         {             lock (m_lock)             {                 string tmp = COMMANDS.First();                 COMMANDS.RemoveAt(0);                 return tmp;             }         }           public void monitor()         { // need a better mechanism              while (true)             { // bad algorithm                 lock (m_lock)                 {                     if (COMMANDS.ToArray().Length > 0)                     { // if queue is not empty                         do                         { // this is okay                             string dequeued = dequeue();                             string command = dequeued.Split(':')[0];                             string data = dequeued.Split(':')[1];                             if (command.Equals("add"))                             { // add student                                 Debug.WriteLine("adding item to listbox");                                  //lbStudents.Items.Add(data);                                 //lbStudents.Update();                             }                         } while (COMMANDS.ToArray().Length > 0);                     }                 }             }         }          public Form1()         {             InitializeComponent();         }         public void launchThread()         {              Form1 f1 = new Form1();                         Thread oThread = new Thread(monitor);             oThread.Start(f1);             while (!oThread.IsAlive) ;             Debug.WriteLine("THREAD LAUNCHED");         }          private void cleanResponse(string response)         {             string[] responses = response.Split(':');             string command = responses[0];             string[] data = responses.ToList().GetRange(1, responses.Length - 2).ToArray();             for (int i=0;i<data.Length;i++)             {                 Debug.WriteLine("thing in here debug");                 try                 {                     enqueue(command + ':' + data[i]);                 }                 catch (Exception e)                 {                     Debug.WriteLine("EXCEPTION: " + e);                 }             }         }          private void Form1_Load(object sender, EventArgs e)         {             launchThread();             lblStatus.Text = "Connecting...";             clientSocket.Connect("10.108.45.120", 9001);             Stream stm = clientSocket.GetStream();             byte[] ba = new ASCIIEncoding().GetBytes("start");             stm.Write(ba, 0, ba.Length);             byte[] bb = new byte[100];             lblStatus.Text = "Connected!";             stm.Read(bb, 0, bb.Length);             string response = System.Text.ASCIIEncoding.UTF8.GetString(bb);             cleanResponse(response);             clientSocket.Close();             grpbxSparseMatrix.ForeColor = Color.White;         }     } }

Which is the simplest way to update a Label from another Thread?   I have a Form running on thread1, and from that I'm starting another thread (thread2).  While thread2 is processing some files I would like to update a Label on the Form with the current status of thread2's work.   How could I do that?


I have a computer (HP-e010nr) that dual-boots Linux Mint 18.3 (Cinnamon, 64-bit) and Windows 8.1 (64-bit). Both are installed via BIOS compatibility mode (the Windows installer refused to use UEFI). My issue is:  When I start Linux, it sees that the system clock is not UTC, so it changes it to UTC (and then displays it 7 hours back to keep the right time). When I start Windows, it expects the system clock to be normal time (not UTC). It displays the clock as 7 hours ahead of my time zone, making timestamps wrong.  I can change the hardware clock to normal time after shutting down Linux, but this is very annoying to do. I would like them to both display the same time if I shut down Linux and booted Windows.  Is it possible to stop Linux from changing the hardware clock so that other operating systems (Windows and Android) will display the correct time?

I have Arch Linux + Windows 8 on my laptop.  In previous versions of Windows, there is a DWORD in the registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal) that switches between localtime and UTC, but this doesn't seem to be working in Windows 8 anymore.  I am now getting UTC time in Windows since it thinks BIOS gives it localtime which is actually UTC time, and after reboot into Arch Linux, the clock becomes localtime-0400, because Arch thinks BIOS is having the correct UTC time.  I do not want to let Arch Linux use localtime.  Under this prerequisite, is there any possible solution?


I was trying to solve   When i create a char * and pass it into scanf:  char* input = ""; scanf("%s", input);   It behaves . However, when i change the definition and initalize 1000 chars to \0:  char input[1000] = { '\0' };   It behaves properly. Why is it that way?

The following code receives seg fault on line 2:  char *str = "string"; str[0] = 'z';  // could be also written as *str = 'z' printf("%s\n", str);   While this works perfectly well:  char str[] = "string"; str[0] = 'z'; printf("%s\n", str);   Tested with MSVC and GCC.


I'm thinking about using feeds from Stack Exchange, and I can't seem to find what type of feeds I can acquire.  I know that if iIgo to  I'll see questions with the ability to filter it, but what else exist? Can I get tags, user questions, notifications, etc.?  I failed to find any page explaining this, but I've never used feeds before so it might be something well known which I just don't know.  I thought this could be good resource on available feeds in general.

I know about finding the RSS feed icon at the bottom of any "Top Questions" page, giving access to , , ,  &  questions feeds. I also know that you can get RSS feeds from tags such as  and even construct searches with . Also, I have  that you can get  and by inference a full , and even , but I don't know what other user related feeds are available. As far as I can tell, Stack Exchange only supports the  and the  just returns the same as the hot questions feed. Also, Stack Exchange doesn't appear to support user feeds, which is a shame as that . So, to summarise what feeds I can identify so far:  http://stack exchange site/feeds ( ) http://stack exchange site/feeds/featured ( ) http://stack exchange site/feeds/hot ( ) http://stack exchange site/feeds/week ( ) http://stack exchange site/feeds/month ( ) http://stack exchange site/feeds/tag/tag ( ) http://stack exchange site/feeds/tag/tag1+tag2 ( ) http://stack exchange site/feeds/tag/tag1+or+tag2 ( ) http://stack exchange site/feeds/tag/tag1+-tag2 ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=newest ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=featured ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=hot ( ) http://stack exchange site/feeds/tag?tagnames=tag&sort=votes ( ) http://stack exchange site/feeds/tag?tagnames=tag1+tag2 (+an optional &sort= term) ( ) http://stack exchange site/feeds/tag?tagnames=tag1+or+tag2 (+an optional &sort= term) ( ) http://stack exchange site/feeds/tag?tagnames=tag1+-tag2 (+an optional &sort= term) ( ) http://stack exchange site/feeds/user/user id ( ) http://stack exchange site/feeds/user/user id/responses ( ) http://stack exchange site/feeds/question/question id ( ) https://stackexchange.com/feeds/questions ( ) https://stackexchange.com/feeds ( )  While the following inferred possible RSS feeds don't work:  http://stack exchange site/feeds/votes ( ) https://stackexchange.com/feeds/user/user id ( )  So, what other RSS feeds are available? So far I have been unable to find any canonical list of what is available, just the occasional meta post containing partial information. So far there have been no responses to  while the  references a question which is no longer appears relevant (as far as I can see).


I got a question concerning the standardization of a student t distribution. I see that the "plain vanilla" t distribution has density $f(x|\nu)=\frac{\Gamma(\frac{\nu+1}{2}) }{\sqrt{\pi\nu}\Gamma(\frac{\nu}{2})}\bigg(1+\frac{x^2}{\nu}\bigg)^{\frac{-(v+1)}{2}} $ with $\nu$ being the df parameter. This distribution has a variance of $\nu/(\nu-2)$, iff $\nu>2$.   If my data has e.g. $\nu = 6$ it follows that the variance of it is equal 1.5. If I want to standardize it, I have to transform the data like $z= \frac{x-\mu}{\sigma}$.   What I don't know is how this works if I want to apply the transformation to the density function?   I found the following definition: $f(x|\mu,\sigma^2,\nu) = \frac{\Gamma(\frac{\nu + 1}{2})}{\Gamma(\frac{\nu}{2})} \frac{1}{\sqrt{\pi (\nu - 2)}}  \frac{1}{\sigma} \bigg( 1 + \frac{1}{\nu - 2} \left( \frac{x - \mu}{\sigma}\right)^2 \bigg)^{-\frac{\nu + 1}{2}}$,  where $\sigma^2$ is the variance and $\mu$ is the mean.  But I don't know how the transition from the first equation to the second works. Why is there an adjustment of $\nu - 2$?  I've read a lot of text books but unfortunately I couldn't find the answer.  I really appreciate your help, thanks a lot in advance!

I'm having difficulty wrapping my head around scale parameters.  How exactly do they work?  Why are they sometimes ignored?  (in other words, when is it important to preserve them in a calculation?)   Thank you for any simple, lay explanations.     UPDATE: What motivated the question was the Gamma distribution; in reading of it with relation to Poisson priors, I saw it described as simply $\propto  x^{\alpha-1}  e ^{-x /\beta }$    However, the question is more of a general nature.  While I get the concept of proportionality, I do not yet fully grasp when it is important for items to be equal versus simply proportional; or rather why so often in the literature I see items referred to as proportional with the scaling factor dropped.


I have a 1TB disk and only partitioned 10Gib for my / directory and now I want to add the remaining .9Tib or so to that partition. It is currently sitting as unallocated space. Attached is a picture of my GParted screen so you can see how the table is partitioned. I have GParted launched as an ISO so that the main directories are unmounted, but I still have no luck resizing.

My dual-boot machine has partitions as follows:   sda1 50 GB NTFS sda2 15 GB unallocated sda3 20 GB ext3 sda4 20 GB ext4   I would like to allocate the unused space on sda2 to my Ubuntu partition on sda4, hopefully leaving the other two partitions untouched, leaving this configuration:    sda1 50 GB NTFS sda3 20 GB ext3 sda4 35 GB ext4   Is this possible? If so, how can it be done, preferably using GParted?


In photoshop I created this image that is supposed to represent the folds of a curtain:    I, however, only want the shading aspect of this so that I can export that to a PNG and display it over any color on the Web.  So my question then is how do I get only the shading part of this image into a PNG?

I want to replace the whiteness in pixels with transparency in the same way as described in  - i.e. for lighter pixels to be made proportionally as transparent. All solutions found via google are based on magic wand or other methods that do not work for my needs.  I'm sure there used to be a way to do this in earlier version of Photoshop (a simple functions to replace a colour with transparency), but I can't seem to do it in CS6.  Replace Colour has no alpha options..


Does the spawn chance of the keywardens in acts 1-4 depend on the difficulty, e.g. they spawn only if difficulty >= Torment I? Additionally, does a higher difficulty yield higher spawn chances? If so, what are the chances in numbers?

In order to obtain a Hellfire Ring or Amulet, one has to work their way through the Uber Boss system of harvesting machines and organs to produce a legendary ring or amulet ().  To create the infernal machine required to open the portals to the Ubers, the keys are drops from mobs nick named Key Wardens.  Where are the various key wardens?  Are there any requirements for making the machines drop? What's the drop rate on different difficulty settings?


Problem : Let $f$ be a real valued continuous function on $[-1,1]$, such that $f(x)=f(-x)$ for all $x \in [-1,1]$. Show that for every $\epsilon \gt 0$  there is a polynomial $p(x)$ with rational coefficients such that for every $x \in [-1,1]$, $$|f(x)-p(x^2)| \lt \epsilon$$.  This problem had appeared in ISI JRF exam, 2017.  I know that the set of polynomials with rational coefficients over $[-1,1]$ is dense in the set of real valued continuous functions on $[-1,1[$. So I'm directly using it here.  So for every $\epsilon \gt 0$ three exists a polynomial with rational coefficients $q(x)$ such that for all $ x \in [-1,1]$, $|f(x)-q(x)| \lt \epsilon$.  Since $f(x)=f(-x)$ for all $x \in [-1,1]$, we have $|f(x)-q(|x|)| \lt \epsilon$ for all $x \in [-1,1]$.  I am stuck here. What can be done next? Applying Stone-Weierstrass again to get $p$ as required? Thanks.

Proposition      Let $\mathcal{P_e}$ be the set of functions $p_e(x) = a_o + a_2x^2 +  \cdots + a_{2n}x^{2n}$, $p_e : \mathbb{R} \to \mathbb{R}$      Show that all $f:[0,1]\to\mathbb{R}$ can be uniformly approximated by   elements in $\mathcal{P_e}$   Attempt:    Since we are talking about polynomials let's try play with Weierstrass Theorem  By definition $\mathcal{P_e}$ is dense in  $C^0([0,1], \mathbb{R})$ , if for every funciton $f \in C^0([0,1], \mathbb{R})$, $\exists p_e \in \mathcal{P_e}$ such that $\forall \epsilon > 0, \forall x \in [0,1], ||p_e-f||< \epsilon$  So we want to show $\|p_e - f\| < \epsilon$  Try something like...since every continuous function is approximated by polynomials i.e. $\forall \epsilon > 0,\ \|f - p\| < \epsilon$, therefore let $p$ be a polynomial, $p = a_0 + a_1x + a_2x^2 + a_3x^3 + \cdots$  $$\|p_e - f\| \leq \|f - p\| + \|p - p_e\|$$  $$\Rightarrow \|p_e - f\| < \epsilon + \|p_o\|,$$ where $p_o$ is an odd polynomial  $$\Rightarrow \|p_e - f\| < \epsilon + \sup_x|a_1+a_3+\cdots+a_{2_n+1}|$$  Stuck.   In any case, $p$ and $p_o$ is poorly defined. What would be the standard approach to prove the proposition?


I understand the basics of pointers and references, but the biggest issue I have is in deciding when they should be used (and which). The main example I will give is one of a basic game. Assume the setup is something like:   new World  Camera Map    World is a pointer because every time the game starts a new save or loads an existing one, it deletes world and loads a new one. But inside of World, only one existence of Camera and Map should ever exist and only for the duration of World. If World is destroyed, then obviously they should be as well. However.. lets say Map needs to access camera (but so do other objects), should Camera be passed by reference into Map or as a pointer, or? For instance, if its supposed to be by reference, should it be:  map = Map(&camera); (inside map class) Map(Camera camera) {...}   Or more like:  map = Map(camera); (inside map class) Map(Camera &camera) {...}   Also, lets say Map holds a 2D vector of tiles called grid. Something like:   std::vector< std::vector< Tile > > > grid;   Now lets say I have a PathFinder class that needs that grid passed in. It needs to edit the tiles directly to change f, g, etc values (for pathfinding). Should that 2D vector be just a normal 2D vector of Tile's and the entire thing passed by reference to the PathFinder? Or should it be a 2D vector of Tile pointers?  Also, NPC's and Player will have a currentTile which is the tile they currently are on. They will need to have a reference or pointer to that tile so they can also set themselves as an occupant on that tile via something like this inside the NPC/Player classes:  currentTile = tile; currentTile->SetOccupant(this);   The other concern comes in when I then destroy that grid to load a new map, how do I easily handle making sure nothing is pointing to Tiles that no longer exist. Do I simply have to loop over those classes and set the currentTile to NULL?  This is where I started to really get confused by this stuff. Any help is appreciated as I'm obviously pretty nooby. @_@; And sorry if this isn't really game topic related. If it needs moved to a different stackexchange, just let me know or move it (if you can). >_<

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


Give a single command line for searching a file ‘datafile’ for the string “Internet”, sending the output of the command to a file called ‘Internet.freq’ and any error message to a file ‘error.log’. Rewrite the command line so that both the output of the command and any error message go the a file called ‘outerrfile’  this is the question..the command i wrote is  grep "Internet" datafile >Internet.freq 2>error.log | tee outerrfile   but outerfile is always empty

While using nohup to put a command to run in background some of content appear in terminal.  cp: error reading ‘/mnt/tt/file.txt’: Input/output error cp: failed to extend ‘/mnt/tt/file.txt’: Input/output error   I want to save that content to a file.