Can anyone give me a detailed description on how to use different types of maps(eg: albedo,opacity, normal, displacement,et cetera et cetera ); which all maps are to be set to non-color data or sRGB; if I should use a certain shader node to connect some maps(like how we use a normal map node to connect a normal map to the principled BSDF; and yes, I do know we have to use a normal map node for that). If you guys know a video or a website which explains it all(emphasis on all), then I'm all ears. Thank you UwU

I created some texture maps in MindTex to use in Blender, but I can't figure out how to properly hook them up. The maps I have:  - Diffuse  - Normal  - Height   - Specular   - Gloss   - Self Illumination  - Reflection  - Ambient Occlusion   MindTex (left) vs. Blender (right)  As you can clearly see it's a pretty big difference.  is my material node setup in Blender. In the examples I don't actually use self illumination or reflection images, but including this in the answer would be helpful.


Is it possible to query 2 databases that are on 2 servers? So I'd have 2 connections like this:  $con1 = mysqli_connect("192.168.0.1","my_user","my_password","db1"); $con2 = mysqli_connect("123.456.7.8","my_user","my_password","db2");   But I'm then not sure how the query would work, because I normally use the connection to query the database:  $con1->query("SELECT...");   Is it possible to connect to 2 databases in the same connection?

I am trying to generate a report by querying 2 databases (Sybase) in classic ASP. I have created 2 connection strings:  connA for databaseA connB for databaseB  Both databases are present on the same server (don't know if this matters) Queries: q1 = SELECT column1 INTO #temp FROM databaseA..table1 WHERE xyz="A" q2 = SELECT columnA,columnB,...,columnZ FROM table2 a #temp b WHERE b.column1=a.columnB followed by: response.Write(rstsql)
 set rstSQL = CreateObject("ADODB.Recordset")
 rstSQL.Open q1, connA
 rstSQL.Open q2, connB  When I try to open up this page in a browser, I get error message:  Microsoft OLE DB Provider for ODBC Drivers error '80040e37' [DataDirect][ODBC Sybase Wire Protocol driver][SQL Server]#temp not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output).  Could anyone please help me understand what the problem is and help me fix it? Thanks.


Based on the film and television events, it seems early shows had Klingon, Romulan, Vulcan, Breen, and Starfleet ships having nacelles placed far away from the hull on struts or wings. On the other hand, Ferengi and Cardassian ships have their warp coils in or near the ship's hull.  Note this question asks about distance, like "why not put nacelles close to the body" rather than  used. Why do most Starfleet ships stick their nacelles out so far. Please avoid answers talking about counting engine parts unless somehow the number of nacelles requires them to be far apart.  Aside from "coolness," why are nacelles kept away from the hull in Starfleet vessels? Some races can incorporate the nacelles within the hull, others agree with Human design. I'm interested if anything in-universe (not extended universes) gives us an explanation for the way we see these ships on screen.  I grant that even in the real world some engineers disregard safety. That would be my blind guess.  It just sort of looks vulnerable.

In Star Trek, the vast majority of Starfleet vessels (and prior warp-capable Earth vessels) are equipped with two warp nacelles.  Those very familiar with the Star Trek universe need no convincing about this, but for those whose Trek awareness is a little more tangential, some examples include:  The Phoenix  (first warp-capable Earth vessel)    Enterprise NX-01    USS Enterprise NCC-1701    USS Reliant NCC-1864 (with one nacelle blown off)    USS Grissom NCC-638 (about to meet its end)    USS Enterprise NCC-1701-A    USS Excelsior NCC-2000    USS Enterprise NCC-1701-D    USS Voyager NCC-74656    USS Defiant NX-74205    Even shuttlecrafts and runabouts have two nacelles:    On occasion, we have seen one nacelle...    ...and three nacelles...    ...and even four nacelles...    ...but these instances are most definitely in the minority.  This leads to the question:  Why are two nacelles optimal?  Equivalently:  If two are better than one, then why are three not better than two?  For answering, I'd like to stay in-universe wherever possible.


The album Ultra Beatdown by the power metal band Dragonforce contains 11 total songs. 8 of those are on the main album, 2 are bonuses for the special edition and one of them, E.P.M., is only on the Japanese edition of the album. What possible reason could there be for doing such a thing?

Just as the title says: Why are bonus tracks so common in japanese versions of a release?


I was thinking about this:  $[0,1]$ can be partitioned into a countable union of uncountable sets. Write $[0,1]=(0,1]\cup \{0\}:$  $$(0,1]=\bigcup_{n=1}^{\infty}\Big(\frac{1}{n+1},\frac{1}{n}\Big]$$  $[0,1]$ can be partitioned into an uncountable union of countable sets. Write $[0,1]=(0,1]\cup \{0\}:$  $$(0,1]=\bigcup_{x\,\in \,(1,2]}\Big\{\frac{x}{2^n}:\;n\in\mathbb{N}\Big\}$$  I cannot find a partitioning of $[0,1]$ and into an uncountable union of uncountable sets though. Does one exist? I was maybe thinking of taking a union of Cantor-like sets, but maybe I've missed an easy one.

The title says it all: Is there a partition of $[0,1]$ into uncountably many dense uncountable subsets ?


I have disabled the services "Windows Update" and "Windows Update Medic Service" in using services.mcs. Furthermore, I made changes to the registry, creating a key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU with a DWORD (32-bit) Value "AUOptions" with value set to 2. I still see frequent queries to ctldl.windowsupdate.com sent to my DNS server. Which services need to be disables to completely shut this down?

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


I would like to make a very large print of a photo I have taken, of about 60 inches wide, and about 36 inches high (though the actual aspect ratio of the cropped file would imply a 34 in height).  The size of the image is 4858x2733 pixels.  Is it possible to make a print of that size and have it look okay without additional post processing?  What's the largest print I could comfortably make without printing on canvas?  Thanks so much, Tom

What size images do I need for common print sizes, such as wallet size, 8x10, and 16x20?  Is there a general formula?  How could that size change if, for example, a 16x20 was printed on canvas rather than photopaper?


I'm trying to turn a string into an array using RegExp. I have this string:  const str = "Hello, bold(username!). How are you?"  And I want that array:  ["Hello", "bold(", "username!", ")", ". How are you?"]  I have this code:  const reg = /(bold\(|italic\(|\))/; str.split(reg);   The return is correct, but when I try that one:  const str = "Hello, bold((username!)). How are you?"  The return is:  ["Hello", "bold(", "(username!", ")", "", ")", ". How are you?"]  What can I do to get the result as below?  ["Hello", "bold(", "(username!)", ")", ". How are you?"]  EDIT:  The array must have this structure:  [..., "bold(", inside_text, ")", ...]  where inside_text is every text inside main parentheses.

I need a regular expression to select all the text between two outer brackets.  Example: some text(text here(possible text)text(possible text(more text)))end text  Result: (text here(possible text)text(possible text(more text)))


Evaluate:  $$\lim_{n \to \infty}\frac1n\sum_{k=0}^{[\frac{n}{2}]}\cos\left(\frac {k\pi}{n}\right)$$ Where $[\frac {n}{2}]$ denotes Largest Integer not exceeding $\frac{n}{2}$.  I thought much about this problem but couldn't found any way to handle this,So I need your help to handle this. Thanks in advance.

Evaluate the limit $$\lim_{n\to \infty}\frac{1}{n}\sum_{k=0}^{[n/2]}\cos \left(\frac{k\pi}{n}\right)$$  I tried through considering two cases : (i) When $n$ is even (ii) when $n$ is odd.  When $n$ is even then the limiting value is $\frac{1}{\pi}$. But when $n$ is odd then ??  Case 1 : $n$ is even..  Then , take $n=2p$ where $p$ is positive integer. Then $$\lim_{n\to \infty}\frac{1}{n}\sum_{k=0}^{[n/2]}\cos \left(\frac{k\pi}{n}\right)$$  $$=\lim_{p\to \infty}\frac{1}{2p}\sum_{k=0}^{p}\cos\left(\frac{k\pi}{2p}\right)$$  $$=\frac{1}{2}\int_0^1\cos(\pi x/2)\,dx$$  $$=\frac{1}{\pi}.$$  Case 2 : When $n$ is odd.  Take, $n=2p+1$ , where $p$ is a positive integer. Then ,   $$\lim_{n\to \infty}\frac{1}{n}\sum_{k=0}^{[n/2]}\cos \left(\frac{k\pi}{n}\right)$$  $$=\lim_{p\to \infty}\frac{1}{2p+1}\sum_{k=0}^p\cos\left(\frac{k\pi}{2p+1}\right)$$  From here how I proceed ?


I've installed gnome desktop and now I don't have unity desktop.  How can I reinstall it?

I wanted to try gnome-shell in 11.10 (also 12.04 now)  I removed it, however, classic Gnome is still there and the battery icon is changed (too big and can't use a icon pack on it like faenza)   Also, numerous applications were added and the entries remain on the login screen.    How can I remove it completely, rolling back all changes made when installing gnome-shell?


There's a great early SciFi book by George R R Martin called "Tuf Voyaging". In one of the chapters he uses his spaceship "Seed Ship" to create a bunch of alien monsters for a planet that fights it wars through monster arena battles.   He create a large cat like creature called a "cobalcat", it has infared eyes, and psionic abilities.   Has this cat creature turned up in any of his other short stories?   I'm sure I can remember a story about a human manned spaceship that crashes? or lands on an alien planet. While there they come across one of these cats that tricks them into thinking its harmless and benign. But eventually kills them once they take off with it on the ship? I think thats how it goes. I'm a bit murky on the details. Any help would be great. Thanks.

Plot Summary/Details  A human spacecraft lands on an alien world.  I'm not sure if they are exploring, or touched down for repairs. The world is a foreboding place, and home to a vicious predator that somewhat resembles a panther, or other big terrestrial cat. The creature is quite cunning, and ambushes several crewmen when they are scouting the planet or doing some other activity that would have them isolated and away from the ship. It sticks in my mind the creature is very strong, and able to bite through the heavy spacesuits the men wear with ease.  The creature has an unusual nutritional requirement of some sort. As such, it doesn't eat its victims, but somehow drains them of a particular element or chemical substance. I can't remember what it is, though I think it had something to do with the skeletal structure of the men. Calcium, maybe?  I have only very general recollections of how the story ends/is resolved. The humans become aware of the threat, and I believe they ultimately slay the beast. I can't recall anything more specific than that, unfortunately.  Timeframe of Publication  This one is old, I'm sure of that. I can remember the writing style and some of the descriptions being very "old school" - spacemen, rocketship, that sort of thing. Almost like something you'd see in an old sci-fi movie serial, to use a film analogy. If I had to guess, I'd say 1950's at the latest.


I'm am attempting to change the rewrite argument after it has been defined and passed as an argument for 'register_post_type' in a plugin. My issue is that I am utilizing a plugin that defines a custom post type. I can manually edit the rewrite argument in the plugin; however, doing so will mean that I have to do this every time the plugin updates. I was wondering if there is a way that I can change this with some code in another plugin or functions.php file.  I was thinking there might be a function that would allow me to alter these arguments or a way in which I could unregister and reregister the custom post type.  Any ideas?

Very similar to this previous question:   I am trying to make MarketPress Products hierarchical - I can do it with hacking the plugin files, but I would like to stay away from them if I can.  Is it possible to change arguments of a custom post type after it has been registered, but before all the internal rewrite stuff has been done?  UPDATE: Here's the solution  And as it usually happens, I find the answer a few minutes after posting the question...  So here's what I did in my theme's functions.php file to solve my problem:  function modify_products() {     if ( post_type_exists( 'product' ) ) {          /* Give products hierarchy (for house plans) */         global $wp_post_types, $wp_rewrite;         $wp_post_types['product']->hierarchical = true;         $args = $wp_post_types['product'];         $wp_rewrite->add_rewrite_tag("%product%", '(.+?)', $args->query_var ? "{$args->query_var}=" : "post_type=product&name=");         add_post_type_support('product','page-attributes');     } } add_action( 'init', 'modify_products', 1 );   Everything works: hierarchy, rewriting, etc :)


Assume that you have any two real numbers $a$ and $b$, and $1\leq k <\infty$, $k \in \mathbb{R}$.  How would you prove the inequality $|a+b|^k \leq 2^{k-1} (|a|^k+|b|^k)$?

I have a small question that I think is very basic but I am unsure how to tackle since my background in computing inequalities is embarrassingly weak -   I would like to show that, for a real number $p \geq 1$ and complex numbers $\alpha, \beta$, I have \begin{equation} |\alpha + \beta|^p \leq 2^{p-1}(|\alpha|^p + |\beta|^p) \end{equation}  I thought it would be best to rewrite this as  \begin{equation} \left|\frac{\alpha + \beta}{2}\right|^p \leq \frac{|\alpha|^p + |\beta|^p}{2} \end{equation}  but then I am unsure what to do next - is this a sensible start anyways ? Any help would be great !  (P.S. this is not a homework question - I am currently trying to brush up my knowledge of $L^p$ spaces, and this inequality came up as a statement. I thought it might be worthwhile to  make sure I can fill in the gaps to improve my skills in computing inequalities.)


Ah from my previous question,  I made stupid assumption that $G$ is finite.   Assume arbitrary $G$. of finite order $a,b$ i mean,  Let $a,b\in G$, Assume the order of element $|a|$, $|b|$ is finite, then what i want to know is $|ab|$ finite?

Let $G$ be a group and let $a,b$ be two elements of $G$. What can we say about the order of their product $ab$?   says "not much":     There is no general formula relating the order of a product $ab$ to the orders of $a$ and $b$. In fact, it is possible that both $a$ and $b$ have finite order while $ab$ has infinite order, or that both $a$ and $b$ have infinite order while $ab$ has finite order.   On the other hand no examples are provided. $(\mathbb{Z},+), 1$ and $-1$ give an example of elements of infinite order with product of finite order. I can't think of any example of the other kind! So:   What's an example of a group $G$ and two elements $a,b$ both of finite order such that their product has infinite order?     Wikipedia then states:     If $ab = ba$, we can at least say that $\mathrm{ord}(ab)$ divides $\mathrm{lcm}(\mathrm{ord}(a), \mathrm{ord}(b))$   which is easy to prove, but not very effective. So:   What are some similar results about the order of a product, perhaps with some additional hypotheses?


we have troubles regarding querying from a dynamic view in SQL Server. We basically check for an existing object lock on a table (CHANGELOG) from sys.dm_tran_locks with the @@spid in a stored procedure which does a few other things too. In some cases, this leads to blocking of random pages, tables rids etc. In the "SentryOne" Tool, we have blocking situations looking like this  As there is no actual way to find out all locks from @@spid, how can it be possible that a simple select from a dynamic view actually blocks other tables? We execute the select in READ UNCOMMITED The query that is displayed in  line 170: if exists (select NULL from sys.dm_tran_locks l with (nolock)         where   l.resource_associated_entity_id = object_id('[dbo].[CHANGELOG]')    and             l.request_session_id = @@spid and             l.resource_type = 'OBJECT')  Does anyone have an idea how to avoid these blocks? Or are we missing some point and the select is not even the real reason for the block?

Querying the sys.dm_tran_locks DMV shows us which sessions (SPIDs) are holding locks on resources like table, page and row.  For each lock acquired, is there any way to determine which SQL statement (delete, insert, update or select) caused that lock?   I know that the most_recent_query_handle column of the sys.dm_exec_connections DMV gives us the text of the last query executed, but several times other queries ran before under the same session (SPID) and are still holding locks.  I already use the sp_whoisactive procedure (from Adam Machanic) and it only shows the query that is on the input buffer at the moment (think DBCC INPUTBUFFER @spid), which not always (and in my case usually never) is the query that acquired the lock.  For example:   open transaction/session exec a statement (that holds a lock on a resource) exec another statement on the same session open another transaction/session and try to modify the resource locked at step 2.   The sp_whoisactive procedure will point out the statement at step 3, which is not the responsible for the lock, and thus not useful.  This question came from doing an analysis using the Blocked Process Reports feature, to find the root cause of blocking scenarios in production. Each transaction runs several queries, and most of time the last one (that is shown on input buffer at BPR) is rarely the one holding the lock.  I have a follow-up question:


As a retention incentive, I was granted stock (about $60,000) in my employers privately owned company.  The stock grant went through payroll in December and had FICA taken out but no income tax. I anticipate a huge tax bill when I file ($20,000+).  Is the IRS going to clobber me for this? Will I have penalties for not paying quarterly taxes or be forced to pay quarterly taxes this year even though this was a one-time thing? Should I do anything now or handle it all when I file?  Someone asked "Can you confirm this is outright stock grant and not the more commonly granted options?". I'm not sure what the difference is. I was given 200 shares of restricted stock. The value of those shares shows up on my paystub and W2 as income paid to me. From the outside, it looks like my company paid me a $60,000 bonus and then I gave it back to them for 200 shares.     Mod note - this question was merged from  as the OP lost access to the account that posted it and wanted to make changes.


I was wondering what 'c' stands for in the below command result.   rohith@rohith-pc:~$ ls -ld /dev/null crw-rw-rw- 1 root root 1, 3 Jul  8 06:31 /dev/null rohith@rohith-pc:~$    I could see that this 'c' is present on most of the files in /dev directory. So can I assume that these just mean that the file is a device file?  Thanks in advance! :)

I'm very familiar with linux file permissions, and special perms (sticky bit, suid, guid) But I don't know what the c stands for? Is it a permission, or something else? I've done some googling with and can't figure it out. Here's the device file that has it. steven@A215:~$ ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Dec 29 20:58 /dev/null   Image Reference:


What is  the value of $\lim_{n\to \infty}(\frac{1}{n}+\frac{1}{n+1}+\frac{1}{n+2}...+\frac{1}{2n})$?  Please give some hints to proceed .

$$\lim_{n\rightarrow\infty}\sum_{k=1}^{n}\frac{1}{k+n}$$  Could you please give me a hint how to find this limit?


Whats the difference between baggage and luggage  Or is there any difference bw those?

I have the feeling that luggage is more closely associated with vacation travel, whereas baggage is for general transportation.  Or... are they just exact synonyms?


If G is a simply connected Lie Group then why is every G-bundle over an orientable 3-manifold trivial? (Why is orientability important?)

It is said that      If G is a simply connected compact Lie group, then a G bundle on a   3-manifold is necessarily trivial, see e.g. .   I think, this means that a bundle or fiber bundle is trivial if it is isomorphic to the cross product of the base space and a fiber.   How do we show this? Is this below true that       "If G is a simply connected compact Lie group, then a G bundle on any $d$-manifold is necessarily trivial?" For $d=1,2,3,4,...$? What is the limitation of $d$?    What is the criteria of trivial G bundle on a $d$-manifold? (Other than saying the definition that the bundle is the cross product of the base space and a fiber.)


I have this MySQL query:  SELECT DAYOFYEAR(`date`)  AS d, COUNT(*)  FROM  `orders`  WHERE  `hasPaid` > 0 GROUP  BY d ORDER  BY d   Which returns something like this:  d  | COUNT(*) | 20 |  5       | 21 |  7       | 22 | 12       | 23 |  4       |   What I'd really like is another column on the end to show the running total:  d  | COUNT(*) | ??? | 20 |  5       |   5 | 21 |  7       |  12 | 22 | 12       |  24 | 23 |  4       |  28 |   Is this possible?


I'm an amateur statistician. I do it mostly for fun. I'm finishing up on my first semester stats class that covers up to hypothesis testing. I'm planning on beginning learning simple regression testing by myself so I can be prepared for the next level class when I have a free slot in my schedule again.  Anyway, I have some data I would like to test to see if it's normal. Or, at least I can assume it to be normal with reasonable certainty. I have access to tons of samples but I cannot see the whole population. I understand that I can take a large enough sample from any type of population and treat the sampling distribution as normal by the central limit theorem but I'm actually trying to gain insight into the population itself.   Reading around here I've realized that I need to do some hypothesis testing. From what I understand I need to set up the null hypothesis to be that the population is not normal and then try to disprove it.   However, I don't know where to go from there. Can anyone suggest any reading I can do before I undertake this? Steps I should take?

I have a large dataset (500000 data, V1 column include all the data).  x <- read.csv("mydata.csv", header=F) hist(x)   Which gives:    Looking at the data, I believe it is not a normal distribution. As a further check, I constructed a qqplot:  x_norm <- (x$V1 - mean(x$V1))/sd(x$V1) qqnorm(x_norm); abline(0, 1)   which gave:    To check the goodness of fit of x$V1 (rawdata) to a normal distribution, I used:  rnorm <- rnorm(500000, mean(x$V1), sd(x$V1)) cc <- cbind(rnorm, x$V1) g <- goodfit(cc, method="MinChisq") summary(g)           Goodness-of-fit test for poisson distribution               X^2 df      P(> X^2) Pearson 914.5227 17 1.679266e-183 Warning message: In summary.goodfit(g) : Chi-squared approximation may be incorrect   With plot(g) giving:    Does this seem correct? Can I confidently conclude my dataset X$V1 is or is not a normal distribution?  Based on the above analysis, what other distribution should I test?


Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


this is the output thrown when i typed java -version he program 'java' can be found in the following packages:  * gcj-4.4-jre-headless  * gcj-4.5-jre-headless  * openjdk-6-jre-headless Try: sudo apt-get install   please suggest me an alternative to install java on my machine.

How do I install Java, including in my browser, so websites with Java work?


I have gone through a number of forums and looked at a number of solutions that have worked for others, but nothing seems to be working for me. This is what I have tried so far:   Changed /etc/NetworkManager/NetworkManger.conf as per . I have also executed sudo apt-get full-upgrade I have also tried upgrading the driver of my wireless card (Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter)   However nothing seems to be working. Would appreciate if someone could help me here please.

I have a HP 14-AN001NA laptop. It came with Windows 10 installed on which the Wi-Fi worked fine anywhere in the house.   However I removed Windows 10 and installed Ubuntu 16.04 instead and since I have had terrible Wi-Fi anywhere aside from about three foot away from the router. I don't know if it's relevant but my Wi-Fi is not called wlan0 but wlo1 for some reason (I didn't change it).  When running lspci -knn | grep Net -A3     I get the following output:  05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723] DeviceName:   Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:81c1] Kernel driver in use: rtl8723be Kernel modules: wl, rtl8723be


As following example  var m="hello"   or var m="50"  check the string whether the string got Numeric Value or Alphabet's  i am using this but it is not working  var check=parseInt(m);  if(Number(check)==NaN)  {     alert("this is Not a Number ");   }  else{     alert("This is Number ");  }

I'm hoping there's something in the same conceptual space as the old VB6 IsNumeric() function?


For the problem below, my first step was to rewrite the right side as  $$\big(x^4+x^3+x^2+x+1\big)S(x)=\frac{x^5-1}{x-1}S(x)$$  From there I can isolate $P(x^5)$ which gives me  $$P(x^5)=\dfrac{S(x)(x^5-1)-x(x-1)\big(Q(x^5)-xR(x^5)\big)}{x-1}$$  I'm not sure how to move forward.  To get $P(x)$ should I rewrite all the $x^5$ as $x$ and take the $5^{th}$ root of each $x$?  The questions prior used the idea of roots of unity so perhaps I can use that somehow.    Thanks

$P,Q,R,S$ are polynomials such that: $P(x^5)+xQ(x^5)+x^2R(x^5)=(x^4+x^3+x^2+x+1)S(x)$ , then prove that $P(x)$ is divisible by $x-1$   I thought a lot on this but no result!! By the way,one idea is to insert some values for $x$ and try to produce a system of equations for the given polynomials,but I'm not sure it works.


I have used OledbConnection in two places in my solutions, one that reads Access and another that reads Excel. The one that reads Access is fine, but the one that reads excel is giving me error - The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.  This is my method where I read Excel and return Datatable.  string CONSTRSTRING = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=<FILENAME>;Extended Properties=\"Excel 12.0;HDR=Yes;IMEX=1\";"; using (OleDbConnection objConnection = new OleDbConnection(CONSTRSTRING.Replace("<FILENAME>", fullFileName))) {     DataSet dsImport = new DataSet();     try     {         objConnection.Open();         DataTable dtSchema = objConnection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);         if ((null == dtSchema) || (dtSchema.Rows.Count <= 0))         {             throw new Exception("Excel doesn't contain any readable table/tab");         }         new OleDbDataAdapter("SELECT * FROM [" + sheetName + "]", objConnection).Fill(dsImport);     }     catch (Exception ex)     {         throw ex;     }     finally     {         objConnection.Close();     }     return dsImport.Tables[0]; }   Other thing is that if I run the code from VS Debug, it works, but it doesn't when run from the IIS. This only happens for this code, other one for connection access works fine.  ps reading access:  try {     string sAccessConnection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filename + ";Persist Security Info=False;";     using (System.Data.OleDb.OleDbConnection con = new System.Data.OleDb.OleDbConnection(sAccessConnection))     {         con.Open();         //doing stuffs         con.Close();     }  } catch (Exception ex) {     throw ex; }   EDIT No, It doesn't have answer there. There it says how to register Microsoft.ACE.OLEDB.12.0. My solution has it working for Access(which means, it is registered) but doesn't work for Excel file. The question is why it is different for Excel and Acces?  And also, if I install x64 Access Driver I get following excetion  Retrieving the COM class factory for component with CLSID {73A4C9C1-D68D-11D0-98BF-00A0C90DC8D9} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

I have a Visual Studio 2008 solution with two projects (a Word-Template project and a VB.Net console application for testing).  Both projects reference a database project which opens a connection to an MS-Access 2007 database file and have references to System.Data.OleDb.  In the database project I have a function which retrieves a data table as follows   private class AdminDatabase    ' stores the connection string which is set in the New() method    dim strAdminConnection as string     public sub New()    ...    adminName = dlgopen.FileName    conAdminDB = New OleDbConnection    conAdminDB.ConnectionString = "Data Source='" + adminName + "';" + _        "Provider=Microsoft.ACE.OLEDB.12.0"     ' store the connection string in strAdminConnection    strAdminConnection = conAdminDB.ConnectionString.ToString()    My.Settings.SetUserOverride("AdminConnectionString", strAdminConnection)    ...    End Sub     ' retrieves data from the database    Public Function getDataTable(ByVal sqlStatement As String) As DataTable         Dim ds As New DataSet         Dim dt As New DataTable         Dim da As New OleDbDataAdapter         Dim localCon As New OleDbConnection           localCon.ConnectionString = strAdminConnection          Using localCon             Dim command As OleDbCommand = localCon.CreateCommand()             command.CommandText = sqlStatement             localCon.Open()             da.SelectCommand = command             da.Fill(dt)             getDataTable = dt         End Using      End Function End Class   When I call this function from my Word 2007 Template project everything works fine; no errors. But when I run it from the console application it throws the following exception     ex = {"The 'Microsoft.ACE.OLEDB.12.0'   provider is not registered on the   local machine."}   Both projects have the same reference and the console application did work when I first wrote it (a while ago) but now it has stopped work.  I must be missing something but I don't know what.  Any ideas?


I got a text from a wrong number saying "This is Adam...off tomorrow". Why did my phone say Maybe: Adam?

I got a call from a phone number that is not stored in my address book, and in the call log, under the number, a name was suggested: "Maybe: X" (where X is the guessed name).  Where is this guess coming from?


Why does the following code does'nt work when i am using PDFLaTeX or just LaTeX ? I tried it in different editors as well.  This is the code   $\{f^'_n\}$   Surprisingly it works on Math.SE site


It is evident from Fibonacci sequence mod(3) $$ 1,1,2,0,2,2,1,0,1,1,2,0,...$$ that every fourth term of the Fibonacci sequence is a multiple of $3$.  Similarly for mod(5)  $$1,1,2,3,0,3,3,1,4,0,4,4,3,2,0,2,2,4,1,0,1,1,2,....$$ suggests that every fifth term in the Fibonacci sequence is a multiple of $5$.  It has been shown that every positive integer n divides the terms of the Fibonacci sequence periodically. The period depends on n .  Question: Is it possible to express the period p as a function of n? For example we have to get p(3)=4 and p(5)=5.

About this Fibonacci sequence, is it true that the remainders when divided by three repeat along with the sequence like this:  Fibonacci sequence:  $1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946\cdots$  Remainder when divided by $3$ sequence:  $1, 1, 2, 0, 2, 2, 01, 00, 01, 01, 02, 000, 002, 002, 001, 000, 0001, 0001, 0002, 0000, 00002\cdots$  I made each one the same number of digits to align them to avoid confusion.  Is it true that it happens every eight numbers?  If so, how and why does this happen?


I have what seems like a simple question, but I haven't been able to find the answer in the QGIS documentation.   I have a raster that is 250 m resolution, and I want to resample it to 1000 m resolution. This means that for every 16 pixels in my original raster, I will have 1 pixel in my new raster. I would like to retain the mode (most frequent value) of the 16 pixels.   Based on the suggestion from Radim , I am using this approach:   Load raster into QGIS Right click on layer name, select 'Save as' Change the resolution in the dialog box from 250 to 1000:    However, I haven't been able to figure out what technique is used to go from 16 cells (at my original resolution) to 1 cell (at my new resolution). Based on inspecting some specific pixels, it doesn't appear to be either the mean or the mode.   (Note: I would like to use the mode, so if anyone has a better technique, I am all ears)

I received a raster that was resampled using the Save as dialog in QGIS. Now I need to describe the resampling process in a report. But I could not figure out the method used in the resampling. Is it Nearest Neighbor? Bicubic?  This question has been asked before () but the answer does not specify the method used.   I also tried looking at the QGis source code in GitHub, but unfortunately, I could not find where the magic takes place (I'm not a programmer)


My guess is, it only holds one way i.e. $A>B$ then $\sqrt{A}>\sqrt{B}$ but not otherwise. Any proof or counterexample would be appreciated.

I remember reading somewhere about the following properties of non-negative definite matrix. But I don't know how to prove it now.  Let $A$ and $B$ be two non-negative definite matrices. If $A^2\succ B^2$, then it necessarily follows that $A\succ B$, but $A\succ B$ doesn't necessarily leads to $A^2\succ B^2$.  How can you prove it? Thanks!


Is there a way to export query results from the query editor in the developer console to a file?

I'm a huge fan of the  in the SFDC Developer Console:    Is there a way to export the table of results as JSON/csv/excel or in some format that can be consumed by Excel?  (I know that I can replicate the functionality in DemandTools or other tools, but sometimes when I've thrown up a query for debugging, it would be really handy to be able to export and manipulate the results.)


I can't figure out how to "uncurve" those UV wrapping projections. Any idea?

How can I straighten ALL the vertical UV lines at once? Is there a hot keyshort cut? Or if I have to do them one by one .. is there at shortcut for that? Thank you!


Prove that the volume of the tetrahedron whose coterminus edges are $\vec{a},\vec{b},\vec{c}$ is given by $\frac{1}{6}\vec{a}.(\vec{b}\times\vec{c})$    I could not prove it.Please help me.

I drew a parallelepiped that is spanned by three vectors, and we know the volume is given by the absolute value of the determinant of the matrix - with the three vectors arranged in rows (or columns, since $detA = detA^T$).  How can I draw the tetrahedron from this parallelepiped to convince myself it is indeed 1/6th of the volume, i.e., 1/6 * |detA|?  Thanks,


Another question that I completely botched and scored 0 points on. The method I tried to use didn't even use all of the assumptions because I had no clue. The assignment goes as follows.   $f:X\rightarrow Y$ is a function with $X$ and $Y$ being topological spaces. Suppose $\mathcal{A}$ is a collection of closed subsets in $X$ and we have that $\cup_{A\in\mathcal{A}}A=X$. Let $f\vert_A:A\rightarrow Y$ be the restriction from $A$ to $Y$ that is cnt. for all $A\in\mathcal{A}$. Suppose for every open neighbourhood $U$ of $x\in X$ that $U\cap A\neq\emptyset$ for only finitely many $A\in\mathcal{A}$. Show that $f$ is continuous.

Hello I am doing this exercise where we let X and Y be topological spaces and $f:X\to Y$ a function. We suppose that $\mathcal{A}$ is a collection of closed subsets of X, such that $\bigcup_{A\in\mathcal{A}} A = X$. We assume that for every $A\in \mathcal{A}$ the restriction $f_{|A}: A\to Y$ of f to A is continuous. Furthermore we suppose that for each $x\in X$ there exists a neighborhood U of x such that the intersection $A\cap U$ is non-empty for only finitely many $A\in\mathcal{A}$. And I have to show that f is continuous. I know that since $f_{|A}: A\to Y$ is continuous we have that for all open subsets $O\subseteq Y$ the inverse image $f^{-1}(O)$ is an open subset of A. And to show that $f: X\to Y$ is continuous I am thinking of showing that for each open subsets $O\subseteq Y$ the inverse image $f^{-1}(O)$ is an open subset of X, but this would be obvious wouldn't it since for all open $O\subseteq Y$ we have $f^{-1}(O)\subseteq A\subseteq X$?


I can't understand why this works with if statement and not switch:  if ((int)typeOfHall == 1) {//LocalHall     NSFetchRequest *request = [NSFetchRequest fetchRequestWithEntityName:@"Game"];     NSPredicate *p = [NSPredicate predicateWithFormat:@"player_id == %@ ",[[NSUserDefaults standardUserDefaults] valueForKey:@"LoggedUserId"]];     request.predicate = p; }   The code bellow it will not work (compile error: Expected expression (on NSFetchRequest)):  switch ((int)typeOfHall) {     case 1:         NSFetchRequest *request = [NSFetchRequest fetchRequestWithEntityName:@"Game"]; //Error Expected expression         NSPredicate *p = [NSPredicate predicateWithFormat:@"player_id == %@ ",[[NSUserDefaults standardUserDefaults] valueForKey:@"LoggedUserId"]];         request.predicate = p;         break;     default:         break;              }   I don't know why this happens. I suppose that switch and if statements are similar, but in this case it seems that are very different.  Do you have any clue why this happens?

I've always wondered this - why can't you declare variables after a case label in a switch statement?  In C++ you can declare variables pretty much anywhere (and declaring them close to first use is obviously a good thing) but the following still won't work:  switch (val)   {   case VAL:     // This won't work   int newVal = 42;     break; case ANOTHER_VAL:     ...   break; }     The above gives me the following error (MSC):     initialization of 'newVal' is skipped by 'case' label   This seems to be a limitation in other languages too.  Why is this such a problem?


I have a page for example:
 ...  ...
 ...     My {the name can be different}.js script block can be inserted anyware and contains:  (function () {     window.addEventListener("DOMContentLoaded", function() {       var scripts = document.getElementsByTagName('script'),       element = scripts[scripts.length - 1];       console.log(element)        // ? How to get current script tag    }, false);  })();   This code always get the latest  tag. Is it possible to get current script tag without any script id?  Thanks!

How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script type="text/javascript" src="scripts.js"></script>   There is a script in "scripts.js" which needs to be able to do on-demand loading of other scripts. The normal method doesn't quite work for me because I need to add new scripts without referencing the HEAD tag, because the HEAD element hasn't finished rendering:  document.getElementsByTagName('head')[0].appendChild(v);   What I want to do is reference the script element that loaded the current script so that I can then append my new dynamically loaded script tags into the DOM after it.  <script type="text/javascript" src="scripts.js"></script> loaded by scripts.js--><script type="text/javascript" src="new_script1.js"></script> loaded by scripts.js --><script type="text/javascript" src="new_script2.js"></script>


After extensive research into the subject I have reached a brick wall.  All I want to do is add a collection of .wav files into a byte array, one after another, and output them all into one complete newly created .wav file. I extract all the .wav data into a byte array, skipping the .wav header and going straight for the data, then when it comes to writing it to the newly created .wav file I get an error like:  Error1: javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input stream Error2: could not get audio input stream from input stream  The code is:      try     {     String path = "*********";     String path2 = path + "newFile.wav";      File filePath = new File(path);     File NewfilePath = new File(path2);      String [] folderContent = filePath.list();      int FileSize =  0;      for(int i = 0; i < folderContent.length; i++)         {             RandomAccessFile raf = new RandomAccessFile(path + folderContent[i], "r");             FileSize = FileSize + (int)raf.length();          }      byte[] FileBytes = new byte[FileSize];      for(int i = 0; i < folderContent.length; i++)         {             RandomAccessFile raf = new RandomAccessFile(path + folderContent[i], "r");             raf.skipBytes(44);             raf.read(FileBytes);             raf.close();          }      boolean success = NewfilePath.createNewFile();      InputStream byteArray = new ByteArrayInputStream(FileBytes);      AudioInputStream ais = AudioSystem.getAudioInputStream(byteArray);      AudioSystem.write(ais, Type.WAVE, NewfilePath);      }

Given an InputStream called in which contains audio data in a compressed format (such as MP3 or OGG), I wish to create a byte array containing a WAV conversion of the input data. Unfortunately, if you try to do this, JavaSound hands you the following error:  java.io.IOException: stream length not specified   I managed to get it to work by writing the wav to a temporary file, then reading it back in, as shown below:  AudioInputStream source = AudioSystem.getAudioInputStream(new BufferedInputStream(in, 1024)); AudioInputStream pcm = AudioSystem.getAudioInputStream(AudioFormat.Encoding.PCM_SIGNED, source); AudioInputStream ulaw = AudioSystem.getAudioInputStream(AudioFormat.Encoding.ULAW, pcm); File tempFile = File.createTempFile("wav", "tmp"); AudioSystem.write(ulaw, AudioFileFormat.Type.WAVE, tempFile); // The fileToByteArray() method reads the file // into a byte array; omitted for brevity byte[] bytes = fileToByteArray(tempFile); tempFile.delete(); return bytes;   This is obviously less desirable. Is there a better way?


How does Capital Gains Term work in this scenario?  Buy x amount of xyz stock and hold for over a year. Then buy z amount of the same asset and hold for less than a year.  Questions:  If I sell the initial x amount of xyz stock (held > 1 yr) after purchasing z amount of zyx (held < 1 yr) for a profit, is it taxed at long term capital gains? If I sell all in the scenario is it all taxed as short term? or is it X amount taxed long term and Z is tax short term?  Any Documentation would be appreciated as well.

Two years ago, I bought 100 shares of XYZ.  Yesterday, I bought another 100 shares of XYZ.  Today, I sold 100 shares of XYZ.  Which 100 shares did I actually sell? If it were the 100 shares from 2 years ago, then that contributes to my long term capital gains tax. If it were the 100 shares from yesterday, then that contributes to my short term capital gains tax.


I am really stuck with my math problem, would appreciate the answer below.     A particle moves on a line away from its initial position so that after $t$ hours it is $s = 4t^2 + t$ miles from its initial position. Find the average velocity of the particle over the interval $[1, 4]$. Include units in your answer.

This is a question from my Calculus book.  I was showed the correct answer but I really need to learn what the process is to achieve the answer.  Here is the question:  If a ball is thrown into the air with a velocity of $40 \frac{ft}{s}$, its height in feet $t$ seconds later is given by $y=40t - 16t^2$ .  Find the average velocity for the time period beginning when $t = 2$ and lasting   (i) 0.5sec   (ii) 0.1sec   (iii) ...


when i'm trying to download the torrent file to download some video,it was asking me select the application to open that torrent file.  Could you pelase help me on that

Every time I download a torrent file (.torrent), Firefox thinks I should open it with a text editor. How can I get it to open with Transmission? In Edit -> Preferences -> Applications, there's no setting for torrent files, and no apparent way to add a new filetype.


I ALWAYS WANTED mods but i don't have the mine craft folder i don't know why and how so please help                                                                                for mine craft 1.7.4

I have a friend who is playing with me on a server we've created. Unfortunately, he is on a  Mac whereas I am on a Windows machine. I told him that I should be able to compile and send a .minecraft folder to him so that we can both play. Unfortunately, he can't find his .minecraft folder where it is supposed to be. Is it hidden and how can I unhide it?


For the maroon underline, I thought that the existence of partial derivatives did not imply f was differentiable?  For the green part I can't fathom which theorem the lecturer is talking about, so I don't follow this part either.

How does one prove that if function's partial derivative respect to every variable that the function defines over is zero function is constant function? I just noticed it, but I cannot prove it.


In line with the proposal of , I think we should also teach reviewers to search for plagiarization whenever they hit a tag wiki/excerpt edit. So, I suggest that audits geared towards this end are also imparted to +5k rep reviewers that use the Suggested Edits queue.  The objective is to make reviewers aware that dumping articles from Wikipedia et al is unuseful and potentially harmful for the site, and transmit the same sentiment to editors.

Yes, it's time for me to complain about plagiarism again.  We already have Suggested Edit audits, but I would like to see Tag Wiki and Tag Wiki Excerpt audits that specifically introduce copied content for that tag without including the appropriate source(s), and warn people who approve it that they just approved a tag with plagiarized text.  For example, an audit for the  tag could be:     Microsoft SQL Server is a relational database management system developed by Microsoft. As a database, it is a software product whose primary function is to store and retrieve data as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). There are at least a dozen different editions of Microsoft SQL Server aimed at different audiences and for different workloads (ranging from small applications that store and retrieve data on the same computer, to millions of users and computers that access huge amounts of data from the Internet at the same time). Its primary query languages are T-SQL and ANSI SQL.   Anyone who spends 15 seconds Googling this will see where it came from -- the problem is, most people don't.  I know with Suggested Edit Audits, it's just random text to catch the most egregious reviewers; for this, you would have to most likely select a small sample of tags, and then create their copy-and-paste entries for audits.    The whole point of this would be to raise awareness for people who have figured out how to recognize and pass Suggested Edit audits, but still don't understand the finer nuances of reviewing.


This question is related to      I have what I thought is a fairly simple problem: Count non-negative   integer solutions to the equation      $$x_1 + x_2 + x_3 + x_4 + x_5 = 23$$      such that $0 \leq x_1 \leq 9$.   The difference here is on the constraint. It bounds all the $x_i$ under 10 : $\forall i\le5$ ,  $0 \leq x_i \leq 9$.  $8+8+0+0+7=23$ is accepted but not $18+3+0+0+2=23$ or $11+0+0+0+12=23$ . In other words all the $x_i$ must be usual digits.  Note that bad solutions may include one or two bad $x_i$. It is the main difficulty.  What is the count of combinations ?  Edit : this question includes a double bounds and a supplemental difficulty to find the right solution.

I'm working on an assignment in which I have to count the number of solutions for this particular equation: $$x_1+x_2+x_3+x_4=20$$for non negative integers with $x_1<8 $ and $x_2<6$   I'm aware that this kind of a task isn't that complicated, but I don't get combinatorics in general that well.  So I've tried two following approaches to get this done.  Firstly I tried to substitute the variable x:  $x_1+x_2+x_3+x_4=20 \Leftrightarrow y_1+y_2+y_3+y_4=34$  in which $y_1=x_1+8$ and $y_2=x_2+6$ (casue $x_1=y_1-8$ and $x_2=y_1-6$) Following this approach the total number of possible solutions would be  $${34+3 \choose 3} $$  But I'm not sure if its the right solution.  The second approach is to sum all of the possible values that $x_1$ and $x_2$ could possibly take, also $x_1=0,1,2,3,4,5,6,7$ and $x_2=0,1,2,3,4,5,6$ And then  count all the possibilities for each of the variables $${20 -x_1-x_2+1\choose 1}$$ and sum them together like this: $${21\choose 1}+{20\choose 1}+{19\choose 1}+{18\choose 1}+... $$ and so on...  I'm sure I'll get the correct number with this one, but I'm not feeling like summing all of this possibilities. There's got to be a better, more elegant way to deal with this.  My professor gave me a hint that I should do it using the complement.


I am reading an engineering mathematics book whose author says that the term mapping and function have the same meaning and whether one calls $f:X\rightarrow Z$ a function or mapping is a matter of choice. Nevertheless, I do remember from calculus course that the two terms cannot be used interchangeably and I think that mapping is a more general term than function. So, what am I missing here? Is the author right?

I wonder if there is any difference between mapping and a function. Somebody told me that the only difference is that mapping can be from any set to any set, but function must be from $\mathbb R$ to $\mathbb R$. But I am not ok with this answer. I need a simple way to explain the differences between mapping and function to a lay man together with some illustration (if possible).  Thanks for any help.


I'm new at web development, I have a question, Thank you all for your answers.  I made a website with HTML5 and CSS, I Published my website on my website host using FTP (FileZilla Client), But when I open my pages, I mean when I open About page Or home page of my website the url is: www.mywebsite.com/index.html www.mywebsite.com/about.html  Now I want to remove That html extensions from all pages of my website. What is the simple  methods and solution?  Thank you all!  .

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to finding information that is that is covered by the question should be closed as a duplication of this question. .  Whats the point in this question? The idea while not perfect is catch the most commonly asked questions regarding redirects using the  htaccess on the Apache platform either on  some type of lamp or a live server. The type of answers should be generally those that you could imagine are used by 100,000’s of sites world-wide and are constantly asked here at Pro Webmasters repeatedly over and over in various forms.  A few examples of the type of answers we are looking for:   How can I redirect non-www to www? How can I redirect a sub domain to the main domain? How can I redirect a sub folder from domain to a root or a subdomain?  How can I redirect an old URL to a new URL?   A few examples of the types of answers that we are not looking for:   Answers that do not involve a redirect. Any answers relating to NGinx, IIS or any other non-Apache platform. Answers that involve custom and complex string or query removals.   Resources for Advanced to Complex Mod_Rewrite Rules:      Please note: that this question is still in construction and may need some refining either by myself or a real moderator of Pro Webmasters, if you have any concerns or questions .


I can't understand this code ,especially how value of x in "myfunc" takes up the value when called.... what does thois line of code means "var multiplyBy3 = makeMultiplier(3);" Please note console returns result 30.  // Function factory function makeMultiplier(multiplier) {   var myFunc = function (x) {     return multiplier * x;   };    return myFunc; }  var multiplyBy3 = makeMultiplier(3); console.log(multiplyBy3(10));

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


I'm having some troubles to pass a JS variable to a PHP variable and then to a sql query.. take a look at the code:  The following val() method displays the selected value of the combobox and passes the js variable to a php variable properly:  <script>   function val() {     player = document.getElementById("combo").value;     document.getElementById("demo").innerHTML = "<?php $player_name = '"+player+"'; echo "Player selected: "; echo $player_name;?>";   } </script>   Ok, so now $player_name is the option selected in the combobox.  <form method="POST">   <select onchange="val()" id="combo"">   <?php       foreach($names as $namearray => $value) {    ?>   <option value="<?php echo $value;?>"><?php echo $value;     ?></option>   <?php      }    ?>    </select>   <input type="hidden" name="selected_text" id="selected_text" value="" /> </form>   Now, that's what's gonna happen after the user clicks the Send Button: ($player_name will be null, therefore, the sql query won't be executed properly)    <?php     if(isset($_POST['send'])) {       $sql = "SELECT roleid FROM listrole WHERE name = '$player_name'";       $result = $conn->query($sql);        // output data of each row       while($row = $result->fetch_assoc()) {         $role_id = $row['roleid'];         echo $role_id;       }   ?>    <input style='height:30px;' type='submit' name='send' value='Send'> </form>

How do I pass have a Javascript script request a PHP page and pass data to it? How do I then have the PHP script pass data back to the Javascript script?  client.js:  data = {tohex: 4919, sum: [1, 3, 5]}; // how would this script pass data to server.php and access the response?   server.php:  $tohex = ... ; // How would this be set to data.tohex? $sum = ...; // How would this be set to data.sum? // How would this be sent to client.js? array(base_convert($tohex, 16), array_sum($sum))


For all $x, y \in \mathbb{R}$ define that $x \equiv y$ if $x^2 = y^2$. Then $\equiv$ is an equivalence relation on $\mathbb{R}$, there are infinitely many equivalence classes, one of them consists of one element and the rest consist of two elements.  Answer:  True.  Reflectivity:  To show that $\mathbb{R}$ is reflexive we need to show that  $\forall x \in \mathbb{R} : x \equiv x$. Let $x \in \mathbb{R}$, $x \equiv x$ if $x^2 = x^2$, which is obvious.  Symmetry: Let $x,y \in \mathbb{R}$ with $x \equiv y$, so we have $x^2=y^2$ and trivially we get $y^2=x^2$, hence $y \equiv x.$  Transitivity: Let $x,y,z \in \mathbb{R}$ with $x \equiv y$ and $y \equiv z$. We now show that $x \equiv z$: Since $x^2=y^2$ and $y^2=z^2$ we get by transitivity of equality $x^2=z^2$ and therefore $x \equiv z.$  Is the answer to the question correct?  And please tell me how I can prove that there are infinitely many equivalence classes one of them consists of one element and the rest consist of two elements. If it's not correct then please provide the correct answer.

For all $x,y\in\Bbb{R}$ define that $x\equiv y$ if $x^2=y^2$ . Then $\equiv$ is an equivalence relation on $\Bbb{R}$ , there are infinitely many equivalence classes, one of them consists of one element and the rest consist of two elements.  Solution  True. To show that $\equiv$ is reflexive we need to show that $\forall x\in\mathbb{R} :x\equiv x$. Let $x\in\mathbb{R} , x\equiv x \mbox{ if } x^{2}=x^{2}$, which is obvious.  $[x] ={y\in\mathbb{R} |x\equiv y} =[0]={y\in\mathbb{R}|0\equiv y}={0}$. Hence $y^{2} =0^{2} =0$ which implies that $y=0$.  Can anyone please give me correct answer to this question.


From my 10k reputation point of view:  locked questions (and possibly merged questions too)   can't vote, but shows vote arrows can't edit, but shows edit button shows the flag button shows "comments disabled on deleted / locked posts / reviews" in grey   historically locked questions   can't vote, and hides vote arrows can't edit, and hides edit button hides the flag button shows "comments disabled on deleted / locked posts / reviews" in blue   examples  Those are just locked:       Those are historically locked:       What explains this difference of UI? Is there a change at higher reputation?

A post can be locked.   What does it mean to lock a post? Who can lock a post? When should a post be locked?


I'm getting answer of $\frac{2}{(1-x)^3}$ , but online calculators suggest it's $\frac{-2}{(1-x)^3}$. I've tried it as $(1-x)^{-2}$, which results $-2*(1-x)*-1 = \frac{2}{(1-x)^3}$. Same result with $(\frac{f}{g})'=\frac{(f'*g-f*g')}{g^2}$ . Any help please?

Wolfram Alpha is telling me that the answer is $$-\frac2{(x-1)^3}.$$ But I thought that by using the chain rule you multiply the front by $2$ then subtract the exponent by $1$ then multiply by the derivative of the inside ($-1$) to get $$\frac2{(1-x)^3}.$$ Wolfram Alpha is never wrong so please tell me what I'm missing its giving me a real headache.


Is it acceptable to use references as a subject in a sentence (in the context of academic writing, preferably in computer science)?  For example:     An extensive research has been done on eye capture by [Bérard   et al. 2014].   Versus:     An extensive research has been done on eye capture by Bérard   et al. [Bérard et al. 2014].   I feel like it removes tautology and makes the text easier on eyes. Moreover, I have seen published papers where authors write like this (although not many). However, it is considered to be bad style by a couple of people who I have asked. Their reasoning is that a reference should be an additional information and if you remove all references from the text, the text should still be complete and make sense. I understand this reason, but I feel like there are no real cases when this can be needed.

Though I read this style quite often, I was recently told unambiguously by a reviewer that I was NOT supposed to use citations "as if they are objects in a sentence."  The following sentence is an example of what the reviewer considered unacceptable:       We analyzed the data using the Wilmerding method, guided by [12].   The references section might include the following:      [12] Smith, D., Marshawn, J., & Devenshaw, A. 2011. Techniques and   Procedures for Applying the Wilmerding Method.  Prince Publications,   Inc, New York, NY.   The Wilmerding method1 is not a step-by-step algorithm that can be precisely followed as if by a machine, and thus [12] does not provide a step-by-step algorithmic description but rather guidance for using  the method. [12] is a relatively slim but authoritative textbook about how to use the Wilmerding method.  Within this question, for the purpose of discussion, I have intentionally put [12] in grammatical positions where it's an important element of the sentence and the sentence would make less sense without the reference.  Sometimes that seems to be the most efficient way to communicate the intended message.  Is using a reference as a grammatical sentence element like this OK?   Why might this not be considered acceptable?   Should I be rewording those sentences?  Is it enough of a violation to be worth passing the note on to authors of papers I review?   I considered posting this on  but it seems more specific to academia than general English usage, and the comment came from a content reviewer rather than a copy editor.   is related but it seems to be more about when to put authors names' in vs. outside of the parentheses in an APA-like style.   The numbered citation style (as opposed to following APA, for example) is required by the venue.  1: Fictionalized for the purpose of this discussion


Prove that $AB=BA$ for all $B \implies A=c \cdot I $ for some $c$ where $I$ is an identity matrix.    Both $A,B\in M_{n \times n}.$ I don't know how attempt proof.

The question is from Axler's "Linear Algebra Done Right", which I'm using for self-study.  We are given a linear operator $T$ over a finite dimensional vector space $V$. We have to show that $T$ is a scalar multiple of the identity iff $\forall S \in {\cal L}(V), TS = ST$. Here, ${\cal L}(V)$ denotes the set of all linear operators over $V$.  One direction is easy to prove. If $T$ is a scalar multiple of the identity, then there exists a scalar $a$ such that $Tv = av$, $\forall v \in V$. Hence, given an arbitrary vector $w$, $$TS(w) = T(Sw) = a(Sw) = S(aw) = S(Tw) = ST(w)$$ where the third equality is possible because $S$ is a linear operator. Then, it follows that $TS = ST$, as required.  I am, however, at a loss as to how to tackle the other direction. I thought that a proof by contradiction,  ultimately constructing a linear operator $S$ for which $TS \neq ST$, might be the way to go, but haven't made much progress.   Thanks in advance!


How to execute bash script with parameters:  ./foo.sh a b c   When it's compressed (e.g. using xz).   xzcat foo.sh | bash <<how_to_supply_here_parameters?>>   Specific usecase:  I produced very big rmlint.sh file and store it compressed:  time rmlint -o sh:stdout -c sh:hardlink|tee >( xz > rmlint.sh.xz )   Therefore I would normally execute   ./rmlint.sh -d -x -p   However, file is too big to be uncompressed. Therefore I would love to do same by pipe-ing it to bash:  xzcat rmlint.sh.xz | bash ...

Right now I have one-liner like this:  curl -fsSL http://git.io/vvZMn | bash   It is downloading script and passing it to bash as stdin file. I would like to run this script with additional argument print.  Maybe something like this?  curl -fsSL http://git.io/vvZMn | bash -- print   But this doesn't work.


I have two independent variables: $X$ follows from standard Gaussian distribution $N(0,\sigma^2)$; $Y$ follows from Rademacher distribution, i.e., $Y$ can be either $-1$ or $1$ with the same probability.  My question is:  For a new random variable of $Z=XY$, What is the probability density function?   Or can we have some concentration inequalities for $Z$ (e.g., show how $Z$ approaches its expectation, etc.)?

Let $X$ and $Z$ be independent, with $X\sim N(0,1)$, and with $\textbf{P}(Z=1)=\textbf{P}(Z=-1)=\frac{1}{2}$. Let $Y=XZ$ (i.e., $Y$ is the product of $X$ and $Z$).   (a) Prove that $Y\sim N(0,1)$.  (b) Prove that $\textbf{P}(|X|=|Y|)=1$.   (c) Prove that $X$ and $Y$ are not independent.   (d) Prove that $\textbf{Cov}(X,Y)=0$.  (e) It is sometimes claimed that if $X$ and $Y$ are normally distributed random variables with $\textbf{Cov}(X,Y)=0$, then $X$ and $Y$ must be independent. Is that claim correct?   My Work: (a) Is really where I am a little stuck. In order to show that $Y\sim N(0,1)$, I want to show that they have the same distribution laws. Thus, I want to show that $\mathcal{L}(Y)=\int_{-\infty}^\infty \frac{1}{\sqrt{2\pi}}e^{-\frac{t^2}{2}}\textbf{1}_B(t)\lambda(dt)$ given that $\mathcal{L}(X)=\int_{-\infty}^\infty \frac{1}{\sqrt{2\pi}}e^{-\frac{t^2}{2}}\textbf{1}_B(t)\lambda(dt)$.   However, I don't know how to go about that. Another approach I have considered is to show that for any Borel measurable function $f:\mathbb{R}\to\mathbb{R}$,$\space$ $\textbf{E}(f(X))=\textbf{E}(f(Y))$ for which each is well defined. Which approach do you think is better and How should I start. Any help will be appreciated.


I am trying to get an idea of how to get a list of all the MAC/IP's near my network. I've tried arp -a commands (What I found from some previous searching.) but those are not showing any of the iPhones or iPads that I know are for sure in range. The goal is to get all available devices, not only ones that are already connected. I have zero programming or networking experience so please be as simple as you can with a response. This is for a business meeting I have coming up with some IT guys, and I would like to have a general idea of how this can work before I get there.

Is there some easy way to find out mac address of all machines on my network rather than doing an SSH into each and ifconfig | grep HWaddr if there are 300 machines on network I really need some easy solution.


Given a list of numbers in ascending order. It is necessary to leave only elements to get such a list where the difference between the elements was greater or equal than a certain value (10 in my case).  Given:  list = [10,15,17,21,34,36,42,67,75,84,92,94,103,115]   Goal:   list=[10,21,34,67,84,94,115]

I would want to do something like:  >>> lst = [1, 2, 3, 4, 5] >>> lst.find(lambda x: x % 2 == 0) 2 >>> lst.findall(lambda x: x % 2 == 0) [2, 4]   Is there anything nearing such behavior in Python's standard libraries?  I know it's very easy to roll-your-own here, but I'm looking for a more standard way.


#include <iostream> using namespace std;  struct Foo{     Foo(){}     Foo(int){}     void fun(){} };  void main() {     Foo a(10);     a.fun();     Foo b();     b.fun();//error     Foo c = Foo(); // this is the right way to use default constructor?     c.fun(); }   The code has an error when compiling, because b is not a type of class, who can tell me what is b? And the meaning of Foo b()?

Is there any good reason that an empty set of round brackets (parentheses) isn't valid for calling the default constructor in C++?  MyObject  object;  // ok - default ctor MyObject  object(blah); // ok  MyObject  object();  // error   I seem to type "()" automatically everytime. Is there a good reason this isn't allowed?


Four cards are face down on a table. You are told that two are red and two are black, and you need to guess which two are red and which two are black. You do this by pointing to the two cards you’re guessing are red (and then implicitly you’re guessing that the other two are black). Assume that all configurations are equally likely, and that you do not have psychic powers. Find the probability that exactly j of your guesses are correct, for j = 0, 1, 2, 3, 4.  I know the answers and calculations for each of the five probabilities: j=0: 1/6, j=1: 0, j=2: 2/3, j=3: 0, j=4: 1/6 but I do not understand where the numbers are coming from. What do the j numbers have to do with anything? Can someone please explain to me the thinking process of solving this problem? I am just extremely confused as to what the js have to do with anything and why the probability is only zero on odd numbers and why j=2 is different than j=0 and j=4.

Four cards are face down on a table. You are told that two are red and two are black, and you need to guess which two are red and which two are black. You do this by pointing to the two cards you’re guessing are red (and then implicitly you’re guessing that the other two are black). Assume that all configurations are equally likely, and that you do not have psychic powers. Find the probability that exactly j of your guesses are correct, for j = 0, 1, 2, 3, 4. Hint: Some probabilities are 0. My professor worked out this example in class and I know the answers for j = 1 and j = 3 are zero, j = 0 is 1/6, j = 2 is 2/3, and j = 4 is 1/6 but I do not understand the process or concept behind the question. I do not understand where the numbers are coming from and why only the even js have a probability but not the odd js. The j guesses and pointing is confusing me. Can someone please help explain the question, I would appreciate it.


When I give a model texture or colour, it stays grey. It also has a weird shade inside that goes smaller when I zoom in. I tried to make the world colour white but it stays grey and whenever I change the colour to texture, nothing happens to it even on the material preview or render preview. This image here is what it looks like. There's only an orange outline and 2 smaller shades inside the white cube. There's a grey cube inside and a darker shape inside of it if you look carefully. I even tried giving it a colour, light blue as you see on the bottom right and it's still white. I need to make these thumbnails for a project and I need it like urgently! Also the same thing wrong here too. It's another version. Idk if it's 2.79 or 2.9 something

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


Do I need my passport to travel from California to Seattle? I'm planning to travel on October 7,  2019.  I need an answer if I don't need my passport to travel seattle or do I just need ID to present to travel Seattle.  I am US citizen.

I am a foreigner studying in California under an F-1 visa. I will be traveling by plane to Chicago, DC and New York and I was wondering if my California ID Card would be enough, or if I should also carry my passport and I-20?


I want to execute a process on multiple servers. I am using the following wrapper script.  The script moves to servers one at a time.  I would like to change it so it can execute on multiple servers. Is there way to do it?  #!/bin/bash for ip in $(<ALL_SERVERS_IP); do     # Tell the remote server to start bash, but since its     # standard input is not a TTY it will start bash in     # noninteractive mode.     ssh -q "$ip" bash <<-'EOF'         printf "%s\n" ================== "$(hostname) ::: Current date : $(date)" \                             ==================         ./remote      EOF done

I would like to install some software on a linux-machine that I have run in VirtualBox. Then I would like to do the same thing on a linux-VPS.  I think that I can save all commands that I run using the history command. Is there any way I could run these commands on another machine? Or what is the way to do such things?


Let $E_1$, $E_2$ connected metric spaces. Let $A_1\subseteq E_1$ and $A_2\subseteq E_2$ proper subsets. Show that the complement of $A_1\times A_2$ $$(E_1\times E_2)-(A_1\times A_2)$$ is connected.  I have tried to perform the test using the result that says if $A, B$ are connected and $A\cap B\neq \varnothing$ then $A\cup B$ is connected.  Note that  $$(E_1\times E_2)-(A_1\times A_2) = \left[E_1\times(E_2-A_2)\right]\cup\left[(E_1-A_1)\times E_2\right]$$ So it suffices to prove that the sets $E_1\times(E_2-A_2)$ and $(E_1-A_1)\times E_2$ are related and non-empty

I'm reading topology of Munkres and I have a problem that stuck me for a while. I'm so greatful if anyone can help me with this.     Let $A$ be a proper subset of $X$, and let $B$ is a proper subset of $Y$. If $X$ and $Y$ are connected, show that $$(X\times Y) \setminus (A\times B)$$ is connected.   Thanks so much for your consideration ^^


Is there any word or any rule that we can use instead of writing his/her all the time for possessive determiners  E.g: Student can come with his/her bag. - Student can come with their bag.   Is it grammatically correct if I can write their instead of his/her?

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


I have implemented this algorithm in MATLAB and when I produce plots I notice that using Euclidean distance, I usually get presented with a clear pattern (sum of squares decreases with the number of iterations). However, when I run the algorithm using the modified Pearson correlation distance (1 - r, where r is the Pearson correlation coefficient), sometimes I would see no trend at all. In fact, on some occasions the sum of squares seems to increase with the number of iterations.   Is there a reason for this? Also I know that Euclidean distance is the preferred metric for this algorithm, but does it have any drawbacks?

Is there a specific purpose in terms of efficiency or functionality why the k-means algorithm does not use for example cosine (dis)similarity as a distance metric, but can only use the Euclidean norm? In general, will K-means method comply and be correct when other distances than Euclidean are considered or used?  [Addition by @ttnphns. The question is two-fold. "(Non)Euclidean distance" may concern distance between two data points or distance between a data point and a cluster centre. Both ways have been attempted to address in the answers so far.]


I need to insert two captions (in polish and exactly the same translated into english) under each of the figures and above each of the tables in my document.  Once captions were defined I would like to have control whether only one or both captions will be displayed in the whole document through boolean variable.  What is the most elegant / smart way to do that?    EDIT  According to suggestions in comments, I used bicaption to define two captions.  \usepackage{polski}  \usepackage[english, polish]{babel}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usepackage[lang=english]{bicaption}  \begin{figure}[H]     \includegraphics[width=0.5\textwidth]{Einrad}      \bicaption{Polish caption here with special letters: ĄĆŹŚÓŁ}{English caption just below}      \label{Fig:FIgBicycle} \end{figure}   However, I don't like:   that I needed to use babel to have properly labelled captions ("Rysunek" for polish and "Figure" for english), because in my document I'm already using many packages and I wish to avoid potential conflicts, the big space between two captions, that I can't see an option to control whether only the first, second or both captions were displayed     EDIT 2  Minimal Working Example:  %\documentclass[review,authoryear]{elsarticle} \documentclass[oneside,12pt]{mwbk}  \usepackage{polski}  \usepackage[english, polish]{babel}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}  \usepackage[lang=english]{bicaption}  \usepackage{graphicx,float,multirow} \graphicspath{ {figures/} }  \usepackage[caption = false]{subfig} \usepackage{lineno,hyperref,amsmath} \usepackage[normalem]{ulem}  \linespread{2}  \begin{document}  \linenumbers  \section{Some text}  \subsection{Some subsection}  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vulputate nisi dolor, vitae eleifend sem vehicula a. Nulla libero mi, scelerisque et dapibus at.  \begin{figure}[H]     \includegraphics[width=0.5\textwidth]{Einrad}      \bicaption{Polish caption here with special letters: ĄĆŹŚÓŁ}{English caption just below}      \label{Fig:FIgBicycle} \end{figure}   \begin{table}[H]     \centering     \bicaption{Polish caption here with special letters: ĄĆŹŚÓŁ}{English caption just below}     \label{my-label}     \begin{tabular}{|l|l|}         \hline         1st col   & 2nd col \\ \hline         some text & ---     \\ \hline     \end{tabular} \end{table}   \end{document}

I use 's  package to setup bilingual captions.  bicaption needs babel's \selectlanguage to set the different caption names for different languages. However, I cannot use the faculty of babel/polyglossia since it doesn't work for east Asian languages.  It is easy to set a name option for the two captions, but I can't set different names for different types of floats. For example,  \documentclass{article} \usepackage{caption}[2012/02/19 v3.2f] \usepackage{bicaption}[2011/10/30 v1.0a] \captionsetup[bi-first]{name=Foo} \captionsetup[bi-second]{name=Bar}  \begin{document}  \begin{figure}   \centering FIGURE   \bicaption{XXX}{YYY} \end{figure}  \begin{table}   \centering TABLE   \bicaption{XXX}{YYY} \end{table}  \end{document}   I tried  \captionsetup[bi-first,figure]{name=Foo}   there's no effect. And I tried  \captionsetup[bi-first]{figurename=Foo}   then I got an error     ! Package caption Error: Can be used only in preamble.   So what can I do? Is there a simple way to use bicaption without babel?  In an older version of caption package (e.g. 2011/11/10 v3.2e), figurename and table options can be used in document environment, but the latest caption allows them only to be used in the preamble. I cannot see any advantage to set \@onlypreamble\caption@SetName. However, even if I use the old version of caption, I still cannot set the name for user-defined (via newfloat package) floats in bilingual captions.    Note: I do not like the \bicaption provided by ccaption package, it is complicated to use. And I have the ability to define my own version of \bicaption, but it seems also a bad option.  Currently I can use this weird trick:  \captionsetup[bi-first]{font=bi-first} \captionsetup[bi-second]{font=bi-second} \DeclareCaptionFont{bi-first}{%   \def\tablename{Table}%   \def\figurename{Figure}} \DeclareCaptionFont{bi-second}{%   \def\tablename{Alter-table}%   \def\figurename{Alter-figure}}


Suppose that $f$ is a holomorphic function in the unit circle $B(0,1)$ and $f(B(0,1))\subseteq B(0,1)$. Prove that $$\left| f(z)-\frac{f(0)(1-|z|^2)}{1-|f(0)|^2|z|^2} \right| \leq \frac{|z|(1-|f(0)|^2)}{1-|f(0)|^2|z|^2}$$ I know that I probably need to construct another holomorphic function and use the  or the , but I don't know how.

Set $f \in H(B(0,1)),f(B(0,1)) \subset B(0,1)$，prove that $$|f(z)-\frac{f(0)(1-|z|^2)}{1-|f(0)|^2||z|^2}| \le \frac{|z|(1-|f(0)|^2)}{1-|z|^2|f(0)|^2}$$  I think this problem is supposed to be proved by Schwarz-Pick theorem, I tried hard but failed to build a function to prove it. I even doubted that this problem is wrong, so I want to whether this problem can be proved or be falsified, and how.  Any help would be appreciated.


As part of hardening a standalone/dedicated MySQL 5.6 server running on Ubuntu 12.04 LTS, unnecessary services and packages will have to be removed.  For a server that is serving only as a MySQL server, what services and packages should we remove? Is there a list of services/packages that we can use?  Here's a list of services running (?). Which are the ones them look like they could be stopped and their packages removed?  [ ? ]  acpid [ ? ]  anacron [ ? ]  atd [ - ]  bootlogd [ ? ]  console-setup [ ? ]  cron [ ? ]  cryptdisks [ ? ]  cryptdisks-early [ ? ]  cryptdisks-enable [ ? ]  cryptdisks-udev [ ? ]  dbus [ ? ]  dmesg [ - ]  grub-common [ ? ]  hostname [ ? ]  hwclock [ ? ]  hwclock-save [ - ]  keymap.sh [ ? ]  killprocs [ ? ]  module-init-tools [ ? ]  network-interface [ ? ]  network-interface-container [ ? ]  network-interface-security [ ? ]  networking [ ? ]  ondemand [ ? ]  passwd [ ? ]  plymouth [ ? ]  plymouth-log [ ? ]  plymouth-ready [ ? ]  plymouth-splash [ ? ]  plymouth-stop [ ? ]  plymouth-upstart-bridge [ ? ]  procps [ ? ]  rc.digitalocean [ ? ]  rc.local [ ? ]  resolvconf [ - ]  rsync [ ? ]  rsyslog [ ? ]  sendsigs [ ? ]  setvtrgb [ + ]  ssh [ - ]  stop-bootlogd [ - ]  stop-bootlogd-single [ ? ]  sudo [ ? ]  udev [ ? ]  udev-fallback-graphics [ ? ]  udev-finish [ ? ]  udevmonitor [ ? ]  udevtrigger [ ? ]  umountfs [ ? ]  umountnfs.sh [ ? ]  umountroot [ - ]  unattended-upgrades [ - ]  urandom

This is a  about Securing a LAMP stack   What are the absolute guidelines for securing a LAMP server?


Macos mojave locked up, forcing me to reboot. I was then presented with the prohibitory symbol indicating that the OS can no longer load. It was caused by APFS being corrupted, confirmed by disk utility in recovery mode. Disk utility did nothing to repair the problem.  I reinstalled the OS and restored everything from a backup. One day later macos locked up again, and I once again had to reboot. It now stops booting after filling the progress bar while loading the OS. APFS has once again managed to corrupt itself, evident both when staring in verbose mode and when running disk utility in recovery mode. A checksum for some object is invalid. Disk utility once again makes no attempt to actually fix anything and I have found no evidence of any other APFS tools from apple for this purpose.  I'm not resizing partitions or anything advanced when it happens, just using Firefox and getting a beach ball.  I can't think of any other solution to the situation other than to get rid of APFS:   Reinstalling the OS onto an HFS+ partition. I tried this -- the installer ignores the existing file system and created APFS anyway. Install an older version of the OS on HFS+ Use some hack to force mojave onto HFS+ Use a different OS   The SSD is a 500 GB, less than a year old Samsung 860 EVO that boots Windows 10 with seemingly no problems so the hardware does not seem to be the problem.  Are there any other obvious options that I have missed in my list? (buying new hardware because the file system is useless doesn't qualify)

At WWDC 2018 macOS 10.14 or macOS Mojave was disclosed.  I am currently on macOS Sierra (10.12) and am looking forward to upgrading to macOS Mojave once its released.  I was wondering if it will be possible to update to macOS Mojave without converting to APFS, similar to  trick from OS X Daily on how to upgrade to macOS High Sierra (10.13) without converting to APFS with the command /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall --converttoapfs NO.


I have Indian passport and currently residing in US. I still haven't given my visa interview at French embassy but I have a rough idea about my itinerary. I plan to visit France twice in the next couple of months strictly for tourism and meeting friends (total duration less than 30 days). I will be staying and traveling mostly in France. Maybe a few days to other Schengen countries that I have not figured yet.  While booking the visa interview date I selected the itinerary and got documents (the airline ticket, medical insurance, hotel stay) for the date ranges (for 2 separate trips) that seemed best at the time although now I feel I should've selected something in the future.   Unfortunately, there's no way to "Update" the travel dates in my visa application online and I will have to cancel my application and book another appointment even later and forfeit my air tickets (that I booked to go to the consulate) etc etc. So the plan is to give the visa interview with the itineraries presented at the moment and try to follow them the best I can as I don't intend to violate any rules. Other posts that I read related to this:   . This does not help me much as my question is not about which country I will spend most time in or enter through, but about changing the travel dates itself.  The question I have is what happens if the itinerary is changed? If I take one trip but don't take the other do they care (as long as I stay mostly in France)? If I throw in some other Schengen countries that I had not stated in the travel itinerary and remove some others does that make a difference? Do they keep a record of my movements and any deviation is noted (at the borders etc)? And some posts say "if found it can affect your future visas". Does this mean once I present them with the itinerary it's set in stone? Will changing itineraries have negative impact on current/future schengen visas?  It seems like a catch 22 situation where the embassy themselves state "don't buy tickets just book them because you don't know if visa will be issued", which means I cannot buy (cheap) tickets ahead of time and plan itineraries in advance (cheap hotel bookings in advance) and then I shouldn't be changing them once I get the visa?

I applied and got approved for a Schengen visa with multiple entries to the Netherlands. On my application I noted a planned trip to Romania as well. Due to changes in itinerary (the trip is being paid for by my company) I'm now only traveling to Romania. Flights and hotels are booked and have been paid for by my company.  However, I have an extra weekend in Romania and I was thinking of flying to Rome overnight only: leave Romania on Saturday to travel to Rome, leave Rome on Sunday and travel back to Romania to complete my trip.  Can I use my Schengen multiple-entry visa despite not having the Netherlands as part of my itinerary anymore?


Have rim brakes on my two month old road bike , and they are starting to howl when used. Cleaned the tires and rims but that didn't solve the problem

My V brakes make a lot of noise when I brake! I am annoyed by such noise, not to mention the pedestrians. My mechanic said that it will not make this noise after using it for couple of days, but it is not happening, it's already been about a month.  Should I grind the pads and then use it (I don't want to do this, it's a expensive set)? Or there is some other way?  I did see  but the answer was not quite helpful.


I have a script that enables artists to edit their profile. One thing is proving to be a problem. I cannot how to sanitize what the user has entered. Everytime a ' is put in the data is not shown as it cuts the php short.   Here is my form for bio:  username = $_SESSION['username'];     $pass = $_SESSION['password'];     include ("../database.php");    $result = mysql_query("SELECT * FROM members WHERE username='$username' AND     password='$pass' AND artist='Y'");  while($row = mysql_fetch_array($result)){         echo '
<form action="phpscripts/artistupdate.php" method="post">        <textarea name="bio" rows="10" cols="80" name="bio" value="'. $row['bio']. '" class="bio">'. $row['bio']. '</textarea>

<t1>Everything is still in the beta stage so there are bound to be a few problems. If you spot one please tell us about it.</t1>

';   Here is the script that uploads to database;  $username = $_SESSION['username'];      $pass = $_SESSION['password'];       $artistname = $_POST['artistname'];      $bio = $_POST['bio'];     include ("../database.php"); mysql_query("UPDATE members SET  bio='$bio', artistname ='$artistname' WHERE username='$username' AND password='$pass'  AND artist='Y'");  $artisturl = mysql_query("SELECT * FROM members   WHERE username='$username' AND password='$pass'  AND artist='Y'");  while($row = mysql_fetch_array($artisturl)){ if (isset($_POST['submit'])) {header("location:../artists/artist.php?    artist=".$row['artistname']."");} }  } else echo'<p1>You must be an artist to use these features.</p1>';   Yes, I am aware i need to upgrade to mysqli and I am aware I need to use prepared statements. Need to sort this out first though.

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?


Takes place in a tree plantation, maybe Vietnam. Locals and main character of the story drink a potion that slows down their bodies to the  point that to others they appear to be frozen in place but they themselves perceive tree branches and roots as moving fast. The trees and other plants try to ensnare and kill the main character. Read it in some best-of-science-fiction paperback for 1958, 59 or thereabouts.

I'm looking for the title of a short story by Ursula Le Guin about a scientist (?) who is given a drug that slows the timescale of his perception enormously, so that he can perceive that an alien (?) forest is actually behaving as a sentient being, reacting to current events, but at an enormously slow (from a normal human point of view) timescale. It might be in , but I don't remember the title (and it doesn't jump out at me from the list of titles) and don't have access to that collection right now. It is not "The Word for World is Forest", nor "Direction of the Road" (from ), nor "Vaster than Empires and More Slow", the latter two of which look at similar plant perception/time-scale issues. Update: it turns out that the description was right, but I had most of the details wrong: not Le Guin, not alien, not a scientist ...


I an array like this  @observable data = [{a: 1}, {b: 1}, {c:1}];  @observable sampleData = [];   I want to do a slice   this.sampleData = this.data .slice(0, 1);  this.sampleData[0].a = 2;    I want "2" to effect the the record in "sampleData" not in the "data" array what is happening now.

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


Without using Rx, how do I invoke a standard LINQ operator asynchronously?  If the operators on IQueryable<T> don't support asynchrony, then that would steal from us the real benefits of making their callers async as most of the cost would be inside of these operators.

After I read a bunch of LINQ related stuff, I suddenly realized that no articles introduce how to write asynchronous LINQ query.   Suppose we use LINQ to SQL, below statement is clear. However, if the SQL database responds slowly, then the thread using this block of code would be hindered.  var result = from item in Products where item.Price > 3 select item.Name; foreach (var name in result) {     Console.WriteLine(name); }   Seems that current LINQ query spec doesn't provide support to this.  Is there any way to do asynchronous programming LINQ? It works like there is a callback  notification when results are ready to use without any blocking delay on I/O.


According to the answers to , the reason why Lily's sacrifice created a protective aura around Harry, but James' did not, was because Lily was given the chance to flee and refused.  Showing mercy seems pretty unusual for Voldemort, which leads me to my question:  Was there any other reason (other than Snape's request) that prevented Voldemort from simply killing Lily at the first opportunity?

In one of Harry's dementor-induced flashbacks, he presumably hears his mother protesting against Voldemort:  Harry was falling again through thick white fog, and his mother’s voice was louder than ever, echoing inside his head – ‘Not Harry! Not Harry! Please – I’ll do anything –’ ‘Stand aside – stand aside, girl –’ ‘Harry!’  Voldemort tells her to stand aside - why did he not just kill her?


I know what degrees of freedom are, the definition that is and it's application. I know it's intuition as well. However as far as t-distributions go, can anyone explain what was the need of including degrees of freedom in the t-table? Can anyone explain the actual intuition of degrees of freedom in inference statistics with any example or something? Like how does degrees of freedom fit in our hypothesis?

From , there are three interpretations of the degrees of freedom of a statistic:     In statistics, the number of degrees of freedom is the number of   values in the final calculation of a statistic that are free to vary.      Estimates of statistical parameters can be based upon different   amounts of information or data. The number of independent pieces of   information that go into the estimate of a parameter is called the   degrees of freedom (df). In general, the degrees of freedom of an   estimate of a parameter is equal to the number of independent scores   that go into the estimate minus the number of parameters used as   intermediate steps in the estimation of the parameter itself (which,   in sample variance, is one, since the sample mean is the only   intermediate step).      Mathematically, degrees of freedom is the dimension of the domain of a   random vector, or essentially the number of 'free' components: how   many components need to be known before the vector is fully   determined.   The bold words are what I don't quite understand. If possible, some mathematical formulations will help clarify the concept.  Also do the three interpretations agree with each other?


I need help removing the second material from all objects in a collection. All the objects have two slots with the second one being of no apparent use. I'm not well versed in python, but I've managed to achieve this for singular objects using this: o.active_material_index = 1 bpy.ops.object.material_slot_remove()  All I need now is a way to apply this to all objects inside a particular collection.

I am trying to write a little script that checks if mesh has more than one material, and if it does, remove materials until there is only one left on the item. Here is what I have so far: import bpy for ob in bpy.data.objects:     number_of_mats = len(ob.material_slots.items())     if number_of_mats > 1:         for i in range(number_of_mats-1):             # remove material here?  I cannot seem to figure out the method to remove a mat at this point. Any suggestions?


Does an attack roll that 'hits' according to an the attack roll, but deals zero damage (perhaps through damage reduction or through poor rolls and resistances, as in ) still count as a hit for the purposes of things like  or ?  Does it count if the target is immune?  I found a similar question -  - but that's for Pathfinder rather than 5e.

I'd like to clarify whether were-creatures need to do damage in order to have a chance of inflicting the lycanthropy curse.  Considering the creature stats in isolation it would appear the answer is no. E.g. For the werewolf (all other lycanthropes are similar):     Bite ... Hit: 6 (1d8 + 2) piercing damage. If the target is a humanoid, it must succeed on a DC 12 Constitution saving throw or be cursed  with werewolf lycanthropy.   From the above, the possibility of being afflicted applies whenever the bite attack hits. So if damage reduction or immunities kick in, and the target takes zero damage, there's still a possibility of getting the curse.  However, page 206 of the MM also states:     Curse of Lycanthropy. A humanoid creature can be afflicted with the curse of lycanthropy after being wounded by a lycanthrope.   The keyword here is wounded, which implies that the attack must actually deal damage.  The problem though, is that as far as I can tell: wounding isn't established in game terminology. Can we assume it really is synonymous with damage > 0? Or am I reading a little too much into the explanatory text?


It's part of my blog's logo. I have logo image and text inside the div. Now, the image is aligned middle but the text is not in the middle of the div. How can I do this without using margins? Here's my code:
            PORTFOLIO

Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; }
      Doesn't work.


I have an empty hard drive that I want to get Ubuntu on for a dual boot system. I don't know how to just get it on that free drive without touching my Windows drive since both are showing on that screen. I tried the automagic dual boot install option but it only took half of my HDD (no sliders are actually offered on that step) and then botched the installation with a known "third party drivers checkbox" error. I had to fix my drive, stop a GRUB terminal from booting up first, and now there's a residual Ubuntu marker that does nothing somewhere when I choose to boot to UEFI or from removable drives on that blue Windows screen. So now that it's mostly fixed and I can't trust the auto install settings, how do I do all of those manual /root /boot / things just on the drive that I want them on? It's visible on the list but I can't just click on it and press Install and I'm not an expert on what all of those /sda entries and other stuff are supposed to mean.

I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no pictures).  I'd like to cover such situations:     If your disk contains other systems:


When apt-get is setting up a package or processing triggers for a package what actually happens in the background?

What are post-installation triggers?  These are executed when upgrading software.


An electron at rest creates a static distribution of an electric field around it. Wherever the particle moves, it carries or drags the field with itself. Does this electric field contribute to the mass/inertia of the particle? A particle can have mass even if it does not have any electric charge. Does the presence of a field modifies its mass or inertia? Please do not give mechanical analogies.

In his  Feynman calculates the field momentum of a moving charged sphere with charge $q$, radius $a$ and velocity $\mathbf{v}$. He finds that the total momentum in the electromagnetic field around the charged sphere is given by:  $$\mathbf{p} = \frac{2}{3} \frac{q^2}{4\pi \epsilon_0} \frac{\mathbf{v}}{ac^2}.$$  He calls the coefficient between the field momentum, $\mathbf{p}$, and the velocity, $\mathbf{v}$, the electromagnetic mass:  $$m_\textrm{elec}=\frac{2}{3} \frac{q^2}{4\pi \epsilon_0 a c^2}.$$  He claims that this electromagnetic mass $m_\textrm{elec}$ has to be added to the standard "mechanical mass" of the sphere to give the total observed mass of the object.  Would this view be accepted by most physicists today?  Have any experiments been performed that show the effect of the additional electromagnetic mass on the dynamics of a macroscopic charged object?  I guess the problem is that such an effect would only be large enough to be observable for charged particles like electrons. In that case it would be difficult to distinguish mechanical mass, presumably due to the Higgs field, from electromagnetic mass. Maybe one could perform a high energy/short length scale experiment on an electron that excluded the effect of the electromagnetic mass?