qid
int64
1
74.7M
question
stringlengths
15
58.3k
date
stringlengths
10
10
metadata
list
response_j
stringlengths
4
30.2k
response_k
stringlengths
11
36.5k
517,316
I have to use XP as my development machine so far. But VS 2008's development server does not seem to work, very strange! (VS 2005's working well). Could I use IIS 5.1 to run ASP.NET MVC? Thanks!
2009/02/05
[ "https://Stackoverflow.com/questions/517316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31689/" ]
You can. Check out this post for details about how: <http://blogs.microsoft.co.il/blogs/dorony/archive/2007/12/15/using-asp-net-mvc-on-iis-5.aspx>
Yes I got mine to work. Change the url extensions to .aspx in the routing.
517,316
I have to use XP as my development machine so far. But VS 2008's development server does not seem to work, very strange! (VS 2005's working well). Could I use IIS 5.1 to run ASP.NET MVC? Thanks!
2009/02/05
[ "https://Stackoverflow.com/questions/517316", "https://Stackoverflow.com", "https://Stackoverflow.com/users/31689/" ]
You can. Check out this post for details about how: <http://blogs.microsoft.co.il/blogs/dorony/archive/2007/12/15/using-asp-net-mvc-on-iis-5.aspx>
Url rewriting can help you to solve the problem. I've implemented solution allowing to deploy MVC application at any IIS version even when virtual hosting is used. <http://www.codeproject.com/KB/aspnet/iis-aspnet-url-rewriting.aspx>
708,791
This is not the standard definition, but my topology professor restricted contexts in metric spaces. > > Definition > > > An open set $U$ in a metric space $X$ is a subset of $X$ such that the interior of it and $U$ Itself are identical. (Interior point $x$ of a subset $A$ is a point of which there exists a ball co...
2014/03/12
[ "https://math.stackexchange.com/questions/708791", "https://math.stackexchange.com", "https://math.stackexchange.com/users/122781/" ]
My suggestion is not to bother your professor with this very much. There are theorems whose choiceless proofs are very different than their choice-using proofs. There are theorems whose usual proof can be easily modified by showing that the arbitrary choice has some easy canonical choice instead. When it is the forme...
Setting aside the question of whether his argument uses the axiom of choice, the result doesn’t depend on it, and the proof is basically the same. Define $r(x)=\frac{1}{n}$, where $n$ is the smallest positive integer for which $B(x,\frac{1}{n})\subseteq U$.
212,029
I have a new Lenovo Ideapad Yoga 13. The onboard LAN/Bluetooth device is identified in Linux as 0bda:1724 (via lsusb). No network peripherals are reported from lspci. Online, the vendor:product above looks to be RT2573, however, in Windows, the device is identified as RTL8723A. I am trying to find a Linux kernel modu...
2012/11/05
[ "https://askubuntu.com/questions/212029", "https://askubuntu.com", "https://askubuntu.com/users/104547/" ]
Have you tried the driver suggested in [this post about the Realtek RTL8723AE-BT](https://askubuntu.com/a/165002/56689)? If Windows is correct about the card, this model is very similar. I believe [this is the link to the direct link to the wireless (non-BT) version of this driver](http://dl.dropbox.com/u/57056576/DRIV...
***Some of the puzzle ..*** vendor: **0b05** is "ASUSTek Computer, Inc." vendor: **0bda** is "Realtek Semiconductor Corp." vendor: **0b05**, product: **1724** is an OEM Realtek 'RT2573' *But ..* vendor: **0bda**, product: **1724** is **NOT** a known Realtek product ID
212,029
I have a new Lenovo Ideapad Yoga 13. The onboard LAN/Bluetooth device is identified in Linux as 0bda:1724 (via lsusb). No network peripherals are reported from lspci. Online, the vendor:product above looks to be RT2573, however, in Windows, the device is identified as RTL8723A. I am trying to find a Linux kernel modu...
2012/11/05
[ "https://askubuntu.com/questions/212029", "https://askubuntu.com", "https://askubuntu.com/users/104547/" ]
I've emailed Realtek techsupport, and they've sent me some new driver (zip), that should suit this card. Download - <http://www.mediafire.com/?sanq19s3vv1d9c9> I'm actually trying to get my Yoga's onboard Wi-Fi with this. Hope that helps someone.
***Some of the puzzle ..*** vendor: **0b05** is "ASUSTek Computer, Inc." vendor: **0bda** is "Realtek Semiconductor Corp." vendor: **0b05**, product: **1724** is an OEM Realtek 'RT2573' *But ..* vendor: **0bda**, product: **1724** is **NOT** a known Realtek product ID
212,029
I have a new Lenovo Ideapad Yoga 13. The onboard LAN/Bluetooth device is identified in Linux as 0bda:1724 (via lsusb). No network peripherals are reported from lspci. Online, the vendor:product above looks to be RT2573, however, in Windows, the device is identified as RTL8723A. I am trying to find a Linux kernel modu...
2012/11/05
[ "https://askubuntu.com/questions/212029", "https://askubuntu.com", "https://askubuntu.com/users/104547/" ]
I've emailed Realtek techsupport, and they've sent me some new driver (zip), that should suit this card. Download - <http://www.mediafire.com/?sanq19s3vv1d9c9> I'm actually trying to get my Yoga's onboard Wi-Fi with this. Hope that helps someone.
Have you tried the driver suggested in [this post about the Realtek RTL8723AE-BT](https://askubuntu.com/a/165002/56689)? If Windows is correct about the card, this model is very similar. I believe [this is the link to the direct link to the wireless (non-BT) version of this driver](http://dl.dropbox.com/u/57056576/DRIV...
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
In addition to @Jon post: it provides you possibility to destribute same class **among different** files. So, for example, different developers can work on same big class, *without* jumping into the conflicts on any source control system. We used it often, in case of big classes, bascially Facades, to leave dev group...
A partial class is used when you want to define a class over one or more files. Usually this is used to separate the code that generates the UI from the code that does contains the UI's logic. C# does this for example. Sometimes when I have a huge class that cannot be broken down in other ways I used partial classes ...
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
The main use is to separate *designer-generated* code (e.g. a UI, or entities) from hand-written code; the two are mashed together at compile time, so you still just get a single class, but you don't see the designer cruft when looking at code. It's not the *only* useful situation, but it's the main one I've come acro...
I have seen people using partial classes to separate classes that are too large into separate files - where a better solution would be to split the class up into many separate classes. I consider it an anti-pattern to use partial classes for splitting hand written classes into separate files.
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
1. When working on large projects, spreading a class over separate files allows multiple programmers to work on it simultaneously. 2. When working with automatically generated source, code can be added to the class without having to recreate the source file. Visual Studio uses this approach when creating Windows Forms,...
This might help you out. <https://web.archive.org/web/20211020111732/https://www.4guysfromrolla.com/articles/071509-1.aspx>
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
The most prevalent example is in code-generation. The WinForms designer as of Visual Studio 2005 does this. It allows code-generated code to go into one file, while your hand-crafted code stays in another file. They are glued together at the end by the compiler.
A partial class is used when you want to define a class over one or more files. Usually this is used to separate the code that generates the UI from the code that does contains the UI's logic. C# does this for example. Sometimes when I have a huge class that cannot be broken down in other ways I used partial classes ...
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
The main use is to separate *designer-generated* code (e.g. a UI, or entities) from hand-written code; the two are mashed together at compile time, so you still just get a single class, but you don't see the designer cruft when looking at code. It's not the *only* useful situation, but it's the main one I've come acro...
The most prevalent example is in code-generation. The WinForms designer as of Visual Studio 2005 does this. It allows code-generated code to go into one file, while your hand-crafted code stays in another file. They are glued together at the end by the compiler.
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
1. When working on large projects, spreading a class over separate files allows multiple programmers to work on it simultaneously. 2. When working with automatically generated source, code can be added to the class without having to recreate the source file. Visual Studio uses this approach when creating Windows Forms,...
A partial class is used when you want to define a class over one or more files. Usually this is used to separate the code that generates the UI from the code that does contains the UI's logic. C# does this for example. Sometimes when I have a huge class that cannot be broken down in other ways I used partial classes ...
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
I have seen people using partial classes to separate classes that are too large into separate files - where a better solution would be to split the class up into many separate classes. I consider it an anti-pattern to use partial classes for splitting hand written classes into separate files.
Another use: if you have a giant tab control with many tabs that you want to split into one tab's code per file, you can do that with partials.
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
The most prevalent example is in code-generation. The WinForms designer as of Visual Studio 2005 does this. It allows code-generated code to go into one file, while your hand-crafted code stays in another file. They are glued together at the end by the compiler.
Partial classes are very useful in scenarios , when two or more developers are working on same class. If the Class is not partial then only one developer can be working on the class at a time. But in case of partial classes, you can create a number of files with same class name(full qualified name). partial classes d...
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
Partial classes are very useful in scenarios , when two or more developers are working on same class. If the Class is not partial then only one developer can be working on the class at a time. But in case of partial classes, you can create a number of files with same class name(full qualified name). partial classes d...
A partial class is used when you want to define a class over one or more files. Usually this is used to separate the code that generates the UI from the code that does contains the UI's logic. C# does this for example. Sometimes when I have a huge class that cannot be broken down in other ways I used partial classes ...
6,747,156
I know this seems to be a stupid question, but so far all the answers I found ask me to use html tags. Is there a easier way to do it? The TextArea may change size.
2011/07/19
[ "https://Stackoverflow.com/questions/6747156", "https://Stackoverflow.com", "https://Stackoverflow.com/users/842860/" ]
Partial classes are very useful in scenarios , when two or more developers are working on same class. If the Class is not partial then only one developer can be working on the class at a time. But in case of partial classes, you can create a number of files with same class name(full qualified name). partial classes d...
In addition to @Jon post: it provides you possibility to destribute same class **among different** files. So, for example, different developers can work on same big class, *without* jumping into the conflicts on any source control system. We used it often, in case of big classes, bascially Facades, to leave dev group...
475,331
~~I installed Apache2 and PHP with success, but when I want visit `http://localhost/phpmyadmin` I got the following error:~~ > > Not Found > > > The requested URL /phpmyadmin was not found on this server. > > > Apache/2.4.7 (Ubuntu) Server at localhost Port 80 > > > How can I fix this, because I need it worki...
2014/06/01
[ "https://askubuntu.com/questions/475331", "https://askubuntu.com", "https://askubuntu.com/users/258523/" ]
I did the following to fix it: ``` sudo apt-get purge phpmyadmin -y ``` Followed by: ``` sudo apt-get install phpmyadmin -y ``` Now I can access `http://localhost/phpmyadmin/`
If you used the command... ``` sudo apt-get install lamp-server ``` phpMyAdmin will not automatically install. You need to run: ``` sudo apt-get install phpmyadmin ``` And for future reference, I install lamp servers using this command: ``` sudo apt-get install lamp-server^ phpmyadmin ```
29,562,307
What I am trying to do is to take input of following format from standard input Input: ```none 22|Subject 1|45 23|Subject 2|52 22|Subject 2|51 26|Subject 1|72 23|Subject 2|61 26|Subject 1|81 ``` which is nothing but STUDENT ID|SUBJECT|MARKS Now I want to tokenize these details and store them in structure variables ...
2015/04/10
[ "https://Stackoverflow.com/questions/29562307", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4356951/" ]
Your code runs fine with a couple of fixes. * Reset `j` to `0` after populating subject * You used `std[i].sid` instead of `std[i].marks` when computing the mark To print out all the data at the end: ``` for (i = 0; i < 6; ++i) printf("%d %s %d\n", std[i].sid, &(std[i].sub[0]), std[i].marks); ``` The complete ...
You should use the library functions instead of doing it all by hand, just like this ``` #include <stdio.h> #include <string.h> #include <stdlib.h> struct student { int sid; char sub[35]; int marks; }; int main(void) { struct student std[16]; size_t i; size_t count; char line[100]; i = 0;...
184,602
I want to understand what went wrong, and how to repair it: [![Ceiling above shower cubicle](https://i.stack.imgur.com/8CKRW.jpg)](https://i.stack.imgur.com/8CKRW.jpg) This bathroom in a loft was done in 2012. The plasterwork is really good --- smooth and shiny; but the last year or so the paint (Dulux Trade, 2-3coats...
2020/02/12
[ "https://diy.stackexchange.com/questions/184602", "https://diy.stackexchange.com", "https://diy.stackexchange.com/users/76404/" ]
Here's how you get paint to stick to things. Scuff-sand. ----------- Paint cannot bond to a shiny surface; don't take my word on it, try to paint a mirror and see what happens. Paint wants to see a surface that looks like Swiss Alps on a microscopic level - lots of jaggies and crevasses for paint to flow into and ...
I have fixed paint similar to this in my current house. There were large areas where I could peel it off back to the plaster by hand or with a scraper. Your builder's first coat has failed to adhere to the plaster and now it's peeling off. This could have been caused by: * Painting with full strength paint rather tha...
73,050,736
I have a two dimensional list like : ``` data = [[0,0,0,0,0,1,0,0,0,0], [0,1,0,0,0,0,0,0,0,0]] ``` How can I access the index of the neighbours, where the value equals 1? Expected output: ``` [[4, 5, 6], [0, 1, 2]] ``` For example, the indices of an array data in first row at value 1 is 5, so I need to access it...
2022/07/20
[ "https://Stackoverflow.com/questions/73050736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19580924/" ]
One efficient solution is using FOR loops: ``` for i in range(2): for j in range(10): if a[i][j]==1: print(str(i)+' '+str(j)) ```
If using lists, here is a one approach which identifies the indexes of the neighbours of 1. As a caveat, this will fail with a index out of range, if the 1 value is the first of last element in the list. Input: ``` data = [[0,0,0,0,0,1,0,0,0,0], [0,1,0,0,0,0,0,0,0,0]] ``` Example: ``` [[i-1, i, i+1] for sub in dat...
73,050,736
I have a two dimensional list like : ``` data = [[0,0,0,0,0,1,0,0,0,0], [0,1,0,0,0,0,0,0,0,0]] ``` How can I access the index of the neighbours, where the value equals 1? Expected output: ``` [[4, 5, 6], [0, 1, 2]] ``` For example, the indices of an array data in first row at value 1 is 5, so I need to access it...
2022/07/20
[ "https://Stackoverflow.com/questions/73050736", "https://Stackoverflow.com", "https://Stackoverflow.com/users/19580924/" ]
If I understand description well (please clarify) , maybe you can try this one. Additionally, you can check edge case where there is no 1, or no left or right . ``` import numpy as np a = np.array([ [0, 0, 0, 0, 0, 1, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 0, 0, 0, 0, 0, 0, 0, 0]]) if __name__ == "_...
If using lists, here is a one approach which identifies the indexes of the neighbours of 1. As a caveat, this will fail with a index out of range, if the 1 value is the first of last element in the list. Input: ``` data = [[0,0,0,0,0,1,0,0,0,0], [0,1,0,0,0,0,0,0,0,0]] ``` Example: ``` [[i-1, i, i+1] for sub in dat...
9,948,310
I am implementing an android app in which I want to use some methods from a server (which was not implemented by me). Now when I try to make an http-post where I have to pass only String parameters everything works fine with a code like: ``` List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameVa...
2012/03/30
[ "https://Stackoverflow.com/questions/9948310", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1029406/" ]
One note. Your `find` function might be called `intern`. What it does is reduce a string token to a numeric atom. If it has not seen the string before, it returns a new atom, but it if it is called twice with the same string, it returns the same atom each time. This is called interning which originated in the Lisp lang...
Try with ``` tmp_idList = malloc(strlen(id) +1 ) ``` Also I suggest you using C++ *string* class instead of *char*\*. It's more prone to error for beginners that don't fully understand C pointers and memory allocation (which looks like you do).
3,678,288
I have setup a mail sender with the Codeigniter email library. Everything works fine until a user specifies a gmail or hotmail address as their address. eg ``` $email = $this->input->post('something@gmail.com'); ``` This is just a return address for me to reply to. The email itself is sent from a Godaddy email acc...
2010/09/09
[ "https://Stackoverflow.com/questions/3678288", "https://Stackoverflow.com", "https://Stackoverflow.com/users/84022/" ]
[VS.PHP is what I use](http://www.jcxsoftware.com/download.php) Comes with a free trial and adds support to VS.
[WebMatrix](http://www.microsoft.com/web/webmatrix/) is a free Microsoft product. Though it does not offer a "plug-in" mechanism for Visual Studio, it should give you a lot of what you and others are looking for. ![screenshot](https://i.stack.imgur.com/lbYbW.jpg)
297,375
Let $\mathcal{C}$ be a combinatorial model category and $\mathrm{T}$ a monad on $\mathcal{C}.$ Assume that the model structure on $\mathcal{C}$ lifts to a model structure on the category of $\mathrm{T}$-algebras $\mathrm{Alg}\_{\mathrm{T} }(\mathcal{C}),$ where the weak equivalences and fibrations are those of $\ma...
2018/04/09
[ "https://mathoverflow.net/questions/297375", "https://mathoverflow.net", "https://mathoverflow.net/users/121009/" ]
In Theorem 1.6 in the paper [*Bar constructions and Quillen homology of modules over operads*](https://msp.org/agt/2010/10-1/p04.xhtml), John Harper gave a positive answer to your question when T is the monad of a one-colored symmetric operad O and the underlying category is either symmetric spectra or unbounded chain ...
Denote by U: Alg\_T(C)→C and Free: C→Alg\_T(C) the adjoint functors between Alg\_T(C) and C. Suppose U(j) is a cofibration in C for all j, where j is a cobase change of Free(i) in Alg\_T(C), where i is a generating cofibration in C. In this case the preservation of sifted homotopy colimits follows from the preservatio...
54,224
Suppose that a certain stock is currently worth $S\_0=\$61$. Consider an investor that buys one call with a strike price equal to $K\_1=\$55$, that costs $c\_1=\$10$, buys another call with strike price equal to $K\_3=\$65$, paying for such a call $c\_3=\$5$ and sells two calls with a $K\_2=\$60$ strike price, receivin...
2020/05/19
[ "https://quant.stackexchange.com/questions/54224", "https://quant.stackexchange.com", "https://quant.stackexchange.com/users/47123/" ]
Note that \begin{align\*} \max(S-K, 0) = S-K + \max(K-S, 0). \end{align\*} Then, \begin{align\*} &\ \max(S-K\_1, 0)+ \max(S-K\_3, 0) - 2 \max(S-K\_2, 0)\\ =&\ S-K\_1 + \max(K\_1-S, 0) + S-K\_3 + \max(K\_3-S, 0)\\ &\qquad -2(S-K\_2) - 2\max(K\_2-S, 0)\\ =&\ 2K\_2 - (K\_1+K\_3) + \max(K\_1-S, 0)+\max(K\_3-S, 0)- 2\max(K\...
I'll assume rates to be 0, so any $\text{Call}=\text{Put}+S-K$ so in the end you need to have $p\_1+p\_3-2p\_2$, theoretically
54,224
Suppose that a certain stock is currently worth $S\_0=\$61$. Consider an investor that buys one call with a strike price equal to $K\_1=\$55$, that costs $c\_1=\$10$, buys another call with strike price equal to $K\_3=\$65$, paying for such a call $c\_3=\$5$ and sells two calls with a $K\_2=\$60$ strike price, receivin...
2020/05/19
[ "https://quant.stackexchange.com/questions/54224", "https://quant.stackexchange.com", "https://quant.stackexchange.com/users/47123/" ]
For a given maturity, given three equally spaced option strikes $K\_1,K\_2,K\_3$ a "butterfly" combination consists of shorting 2 of the middle strike calls and buying one each of the "wing" or lateral calls. This position has a positive cost i.e. $c\_1+c\_3-2 c\_2 >=0$ (why? because it has a positive payoff for $S\_T\...
I'll assume rates to be 0, so any $\text{Call}=\text{Put}+S-K$ so in the end you need to have $p\_1+p\_3-2p\_2$, theoretically
115,397
Illustrator is a tool more geared toward artistic purposes, but it has deterministic internals when it comes to most objects features, but sometimes it feels like it lacks certain functionalities. **I'd like to be able to constrain the distance between objects (objects' edges) in a quick way. Is there a way? Or am I l...
2018/09/27
[ "https://graphicdesign.stackexchange.com/questions/115397", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/47727/" ]
I guess you can achieve that by using the align panel : [![enter image description here](https://i.stack.imgur.com/acCn5.jpg)](https://i.stack.imgur.com/acCn5.jpg) Select your various objects to distribute, select " align to : Key object " and define the distance you want between them. That way you will be able to def...
You can create a square object with no fills or strokes which should define this distance. You then go into Outline mode and you move this square around, touching edges, then drag objects until they touch the square on the opposite side. Make sure object snapping is on. Its likely the quickest thing you can do.
115,397
Illustrator is a tool more geared toward artistic purposes, but it has deterministic internals when it comes to most objects features, but sometimes it feels like it lacks certain functionalities. **I'd like to be able to constrain the distance between objects (objects' edges) in a quick way. Is there a way? Or am I l...
2018/09/27
[ "https://graphicdesign.stackexchange.com/questions/115397", "https://graphicdesign.stackexchange.com", "https://graphicdesign.stackexchange.com/users/47727/" ]
I guess you can achieve that by using the align panel : [![enter image description here](https://i.stack.imgur.com/acCn5.jpg)](https://i.stack.imgur.com/acCn5.jpg) Select your various objects to distribute, select " align to : Key object " and define the distance you want between them. That way you will be able to def...
Instead of using Object > Transform > Move, you can instead use Crtl + K to open the Preferences panel, then on the General tab change your keyboard increment. Then hit Enter or OK, and you can move the object that increment with one tap of an arrow key. This can be pretty quick because when you hit Ctrl+K it should au...
5,755,579
I have a DIV with a set height and overflow: hidden . Inside the DIV, there's some content (a P, maybe some IMGs... it's a wordpress post content, by the way). The content is completely unstyled (no css applied to any of it!) Now when I remove the height and the overflow: hidden from the DIV css, the whole content wil...
2011/04/22
[ "https://Stackoverflow.com/questions/5755579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/720543/" ]
Use this instead: ``` .post-text-long { height: 210px; overflow: hidden; width: 100%; } ``` You need to add width to get this code working.
The html/css code is ok - <http://jsfiddle.net/easwee/gXg5w/4/> You are saying that it's a wordpress content - check if there are unclosed divs or any other elements that might break your design once the content is loaded. Open your page in firefox - if you have firebug try to delete out all html content and add in ...
5,755,579
I have a DIV with a set height and overflow: hidden . Inside the DIV, there's some content (a P, maybe some IMGs... it's a wordpress post content, by the way). The content is completely unstyled (no css applied to any of it!) Now when I remove the height and the overflow: hidden from the DIV css, the whole content wil...
2011/04/22
[ "https://Stackoverflow.com/questions/5755579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/720543/" ]
``` .post-text-long { clear: left; } ```
The html/css code is ok - <http://jsfiddle.net/easwee/gXg5w/4/> You are saying that it's a wordpress content - check if there are unclosed divs or any other elements that might break your design once the content is loaded. Open your page in firefox - if you have firebug try to delete out all html content and add in ...
5,755,579
I have a DIV with a set height and overflow: hidden . Inside the DIV, there's some content (a P, maybe some IMGs... it's a wordpress post content, by the way). The content is completely unstyled (no css applied to any of it!) Now when I remove the height and the overflow: hidden from the DIV css, the whole content wil...
2011/04/22
[ "https://Stackoverflow.com/questions/5755579", "https://Stackoverflow.com", "https://Stackoverflow.com/users/720543/" ]
Use this instead: ``` .post-text-long { height: 210px; overflow: hidden; width: 100%; } ``` You need to add width to get this code working.
``` .post-text-long { clear: left; } ```
8,934,528
I am in the process of developing an app with the help of someone else for a site I am developing. This app being developed will require access to the database on the web server. So my question here is typically I would want to keep my servers access limited to specific IP's however. Mobile devices all have there own i...
2012/01/19
[ "https://Stackoverflow.com/questions/8934528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/768392/" ]
Take a look at Caliper CI, I put out version 2.0 yesterday as a Jenkins plugin.
I don't know any separate tools to handle this, but JUnit has an optional parameter called *timeout* in the [@Test](http://junit.sourceforge.net/javadoc/org/junit/Test.html#timeout%28%29)-annotation: > > The second optional parameter, timeout, causes a test to fail if it > takes longer than a specified amount of clo...
8,934,528
I am in the process of developing an app with the help of someone else for a site I am developing. This app being developed will require access to the database on the web server. So my question here is typically I would want to keep my servers access limited to specific IP's however. Mobile devices all have there own i...
2012/01/19
[ "https://Stackoverflow.com/questions/8934528", "https://Stackoverflow.com", "https://Stackoverflow.com/users/768392/" ]
I have just come across <http://scalameter.github.io/> which looks appropriate, works in scala and java.
I don't know any separate tools to handle this, but JUnit has an optional parameter called *timeout* in the [@Test](http://junit.sourceforge.net/javadoc/org/junit/Test.html#timeout%28%29)-annotation: > > The second optional parameter, timeout, causes a test to fail if it > takes longer than a specified amount of clo...
48,865,596
I've managed to create the following column in a new table: ``` CREATE TABLE t_issue_dates as SELECT issue_d, cast(substr(issue_d,5,4) as numeric) as issue_year FROM myDB ``` (The code recodes a year-month variable to a year-only variable) However, i can't add this variable to my existing table "myDB". I've trie...
2018/02/19
[ "https://Stackoverflow.com/questions/48865596", "https://Stackoverflow.com", "https://Stackoverflow.com/users/9380571/" ]
First, many databases support computed or generated columns. That means that you can add a virtual column to the database by doing: ``` alter table t_issue_dates add issue_year as (cast(substr(issue_d, 5, 4) as numeric)); ``` I recommend this approach because `issue_year` is always up-to-date. Second, you can do t...
Assuming you are using MSSQL. It would be worth of reading documentation or a simple google on `how to insert` Adding column : ``` Alter table t_issue_dates Add V_year Int ``` Next step: This will only insert data for this particular column. ``` Insert into t_issue_dates (v_year) SELECT cast(substr(issue_d,5,...
10,944,071
I want to parse a X.509 certificate in php. **The certificate is in DER-encoded X.509 format.** I tried using `openssl_x509_parse method` in php, but its not working. The certificate data is a valid data received after firing a command in mdm for CertificateList. I am using the below code: ``` $data = 'MIIDizCCAnMC...
2012/06/08
[ "https://Stackoverflow.com/questions/10944071", "https://Stackoverflow.com", "https://Stackoverflow.com/users/513335/" ]
Well your certificate is missing the PEM-enclosing. If you add those `BEGIN CERTIFICATE` and `END CERTIFICATE` markers to your certificate it should work: ``` <?php $data = // ... your certificate // Add the missing PEM-enclosing $x509Data = "-----BEGIN CERTIFICATE-----\n" . $data . "\n-----END CERTIFIC...
[phpseclib, a pure PHP X.509 parser](http://phpseclib.sourceforge.net/), works with your string without requiring it be encapsulated in anything. eg. ``` <?php include('File/X509.php'); $x509 = new File_X509(); $cert = $x509->loadX509('MIIDizCCAnMCCQDCpCAUbA2P4TANBgkqhkiG9w0BAQUFADBrMSIw IAYDVQQKDBkqLnNtYXJ0c291c...
4,404,126
Or, should we have a virutal environment and continue to run this on 2.3?
2010/12/09
[ "https://Stackoverflow.com/questions/4404126", "https://Stackoverflow.com", "https://Stackoverflow.com/users/179736/" ]
EDIT: I take it back; porting between different 2.x versions is not trivial. Note that `raise "Oops"` worked in 2.5 but not in 2.6. However, the port should be pretty easy; for one thing, I believe that anything that would break in version `n+1` will warn in `n`, so you should be able to step through the versions. Alte...
You need to weigh up the pros and cons of doing the port 2.5/6/7 gives you better programming structures, more libraries, etc. but you won't know how much work is involved with the port until you try it. I would imagine it's worthwhile spending say a day or two on the port If you feel you are getting nowhere after...
65,194,620
**I want to get this Zoom Meeting's "Mute My Audio" caption on windows using uiautomation with C++** [![enter image description here](https://i.stack.imgur.com/zP07B.jpg)](https://i.stack.imgur.com/zP07B.jpg) this is my calling current code: ``` // Get the handle of the Zoom Meetings window. zoomWnd = ::FindWindow...
2020/12/08
[ "https://Stackoverflow.com/questions/65194620", "https://Stackoverflow.com", "https://Stackoverflow.com/users/11698097/" ]
here the code which worked... ``` IUIAutomationElement *zoom = GetTopLevelWindowByName(L"Zoom Meeting"); ListDescendants(zoom, 2); void ListDescendants(IUIAutomationElement* pParent, int indent) { osFocusZoomWindow(); if (pParent == NULL) return; IUIAutomationTreeWalker* pControlWalker = NULL; IUIAutom...
One solution is you can find all buttons using [`IUIAutomationElement::FindAll()`](https://learn.microsoft.com/en-us/windows/win32/api/uiautomationclient/nf-uiautomationclient-iuiautomationelement-findall), then compare the name with "*Mute My Audio*". The following is an example you can refer to (I assume you alreay ...
6,906,360
Ex: ``` gcc source-file ``` I think it is dynamic but I'm not sure. Is it system dependent?
2011/08/02
[ "https://Stackoverflow.com/questions/6906360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/-1/" ]
It is technically system dependent, but on *most* systems you're likely to develop for, the answer is "dynamic". A few systems (mostly very old, embedded, or otherwise specialized) do not support dynamic linking *at all*, but most developers are unlikely to care about those systems. On those systems, the linker will o...
Most linkers prefer dynamic libraries to static when linking, but normally they have flags to explicitly specify the behaviour. It's definitely system dependent - check your linker documentation for details.
45,672,636
I am creating my own personal website to sell music and help local artists promote their music. However, I am experiencing a problem. I created a registration page where a new user can be registered onto the system. I tried to search first whether the email exists or not from the database so that there are no duplicat...
2017/08/14
[ "https://Stackoverflow.com/questions/45672636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5702726/" ]
remove the elseif condition ``` if($row > 0){ echo "email exists"; }else{ echo "email doesnt exist"; } ```
The response will always be either 1 or 0 it will never be anything else. If the array is null, then this is a different issue, but you shouldnt be putting this in as an else if. ``` if($row > 0){ echo "email exists"; } else{ echo "email does not."; } ``` I would also suggest using PDO <http://php.net/manual...
45,672,636
I am creating my own personal website to sell music and help local artists promote their music. However, I am experiencing a problem. I created a registration page where a new user can be registered onto the system. I tried to search first whether the email exists or not from the database so that there are no duplicat...
2017/08/14
[ "https://Stackoverflow.com/questions/45672636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5702726/" ]
First of all your code is vulnerable to [SQL injection](http://php.net/manual/en/security.database.sql-injection.php) and you need to [to prevent it](https://stackoverflow.com/questions/60174/how-can-i-prevent-sql-injection-in-php) Second, your row `$row = mysqli_fetch_array` will return an array, so comparing `$arra...
The response will always be either 1 or 0 it will never be anything else. If the array is null, then this is a different issue, but you shouldnt be putting this in as an else if. ``` if($row > 0){ echo "email exists"; } else{ echo "email does not."; } ``` I would also suggest using PDO <http://php.net/manual...
45,672,636
I am creating my own personal website to sell music and help local artists promote their music. However, I am experiencing a problem. I created a registration page where a new user can be registered onto the system. I tried to search first whether the email exists or not from the database so that there are no duplicat...
2017/08/14
[ "https://Stackoverflow.com/questions/45672636", "https://Stackoverflow.com", "https://Stackoverflow.com/users/5702726/" ]
This is all you need: ``` if(count($row) > 0) { echo "email exists"; } else echo "email doesnt exist"; } ```
The response will always be either 1 or 0 it will never be anything else. If the array is null, then this is a different issue, but you shouldnt be putting this in as an else if. ``` if($row > 0){ echo "email exists"; } else{ echo "email does not."; } ``` I would also suggest using PDO <http://php.net/manual...
337,612
Assume all other variables the same (same object, same surface area, etc). Someone on Quora claimed the clavicle breaks with 8 pounds of force. When I said it doesn’t break when resting an 8-pound weight they claimed it would be different if it were "an abrupt application of force". I said 8 pounds is already a measu...
2017/06/05
[ "https://physics.stackexchange.com/questions/337612", "https://physics.stackexchange.com", "https://physics.stackexchange.com/users/46483/" ]
The key here is they are talking about an [impact](https://en.wikipedia.org/wiki/Impact_(mechanics)) where you are talking about essentially static forces. Impacts can cause far greater damage than a slowly applied force. This is because the material takes some time to react to the force. If you do it slowly, things h...
A part of the difficulty in the discussions of this question is the misuse of vocabulary. The [reference.com article](https://www.reference.com/science/much-pressure-breaks-clavicle-4f27dab1ab8a3883) states that "it takes approximately 7 pounds of pressure to break a human clavicle." Seven pounds of pressure does not m...
8,739,360
I am not exposed to Spring as yet. I saw the below code in one of the standalone java projects that I have in my system. Can you please help me understand the below code.I am unable to see spring.xml in the project - is it something that must be there and is missing? ``` appContext = new ClassPathXmlApplicationCon...
2012/01/05
[ "https://Stackoverflow.com/questions/8739360", "https://Stackoverflow.com", "https://Stackoverflow.com/users/1042646/" ]
The `classpath*` syntax means that Spring will search the classpath for all resources called `/META-INF/spring.xml` and `myapplication-application-context.xml`, and will amalgamate them into the context. This includes looking through JAR files inside the project, so there may not be any visible within your main project...
The core functionality of Spring revolves around the [ApplicationContext](http://static.springsource.org/spring/docs/1.0.2/api/org/springframework/context/ApplicationContext.html) which is the "Central interface to provide configuration for an application. " This interface is implemented by the [ClassPathXmlApplication...
39,654,850
I have this line of code, which checks the result of the query. I want to have a STATUS ERROR if one of the columns contains a value= '0'. If the condition founds a zero value it will echo: Status: ERROR, [Status](http://i.stack.imgur.com/QF0pJ.png) **PHP CODE**: ``` <?php $query = "SELECT * FROM `inventorybill_tb...
2016/09/23
[ "https://Stackoverflow.com/questions/39654850", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6717951/" ]
I got correct FPS with below line of code : ``` AVAsset * myAsset = [[AVURLAsset alloc] initWithURL: _videoUrl options: nil]; AVAssetTrack * videoAssetTrack = [myAsset tracksWithMediaType: AVMediaTypeVideo].firstObject; NSLog(@"FPS is : %f ", videoAssetTrack.nominalFrameRate); ```
### AVAsset extension for Swift 5 ``` extension AVAsset { /** * Get FPS from AVAsset */ var fps: Float? { self.tracks(withMediaType: .video).first?.nominalFrameRate } } ```
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
[NDepend](http://www.ndepend.com/) is a great tool designed for measuring and visualising code metrics and complexity. Powershell would do it: ``` (dir -Include *.cs -Recurse | select-string .).Count ``` [Counting Lines of Source Code in PowerShell](http://www.leeholmes.com/blog/2006/10/18/counting-lines-of-source-...
What you need is logical lines of code counting as defined here: [How do you count your number of Lines Of Code (LOC)](http://codebetter.com/blogs/patricksmacchia/archive/2007/10/03/how-do-you-count-your-number-of-lines-of-code-loc.aspx) If you use NDepend to count your number of [lines of code](http://www.NDepend.co...
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
[NDepend](http://www.ndepend.com/) is a great tool designed for measuring and visualising code metrics and complexity. Powershell would do it: ``` (dir -Include *.cs -Recurse | select-string .).Count ``` [Counting Lines of Source Code in PowerShell](http://www.leeholmes.com/blog/2006/10/18/counting-lines-of-source-...
In the end I went with [LocMetrics](http://www.locmetrics.com/index.html), unfortunately this didn't really solve my per-solution problem. But the folder structure of the reposiotry maps well enough to solutions so I was decided to use the tool above. Thanks everybody for helping
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
[NDepend](http://www.ndepend.com/) is a great tool designed for measuring and visualising code metrics and complexity. Powershell would do it: ``` (dir -Include *.cs -Recurse | select-string .).Count ``` [Counting Lines of Source Code in PowerShell](http://www.leeholmes.com/blog/2006/10/18/counting-lines-of-source-...
I think [LOCcode](http://archive.msdn.microsoft.com/LOCCounter/Release/ProjectReleases.aspx?ReleaseId=115) is an interesting free tool for counting number of Lines Of Code. It allows to choose which of files must be processed. It counts LOC in all enabled tasks. ![enter image description here](https://i.stack.imgur.co...
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
[NDepend](http://www.ndepend.com/) is a great tool designed for measuring and visualising code metrics and complexity. Powershell would do it: ``` (dir -Include *.cs -Recurse | select-string .).Count ``` [Counting Lines of Source Code in PowerShell](http://www.leeholmes.com/blog/2006/10/18/counting-lines-of-source-...
I liked what Mitch Wheat has said but I don't like some useless information is calculated as 'line of code'. I've written a C# code to find total number of REAL lines in the code here: <http://rajputyh.blogspot.in/2014/02/counting-number-of-real-lines-in-your-c.html> **You need to build a small utility out of that c...
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
What you need is logical lines of code counting as defined here: [How do you count your number of Lines Of Code (LOC)](http://codebetter.com/blogs/patricksmacchia/archive/2007/10/03/how-do-you-count-your-number-of-lines-of-code-loc.aspx) If you use NDepend to count your number of [lines of code](http://www.NDepend.co...
In the end I went with [LocMetrics](http://www.locmetrics.com/index.html), unfortunately this didn't really solve my per-solution problem. But the folder structure of the reposiotry maps well enough to solutions so I was decided to use the tool above. Thanks everybody for helping
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
What you need is logical lines of code counting as defined here: [How do you count your number of Lines Of Code (LOC)](http://codebetter.com/blogs/patricksmacchia/archive/2007/10/03/how-do-you-count-your-number-of-lines-of-code-loc.aspx) If you use NDepend to count your number of [lines of code](http://www.NDepend.co...
I liked what Mitch Wheat has said but I don't like some useless information is calculated as 'line of code'. I've written a C# code to find total number of REAL lines in the code here: <http://rajputyh.blogspot.in/2014/02/counting-number-of-real-lines-in-your-c.html> **You need to build a small utility out of that c...
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
I think [LOCcode](http://archive.msdn.microsoft.com/LOCCounter/Release/ProjectReleases.aspx?ReleaseId=115) is an interesting free tool for counting number of Lines Of Code. It allows to choose which of files must be processed. It counts LOC in all enabled tasks. ![enter image description here](https://i.stack.imgur.co...
In the end I went with [LocMetrics](http://www.locmetrics.com/index.html), unfortunately this didn't really solve my per-solution problem. But the folder structure of the reposiotry maps well enough to solutions so I was decided to use the tool above. Thanks everybody for helping
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
I liked what Mitch Wheat has said but I don't like some useless information is calculated as 'line of code'. I've written a C# code to find total number of REAL lines in the code here: <http://rajputyh.blogspot.in/2014/02/counting-number-of-real-lines-in-your-c.html> **You need to build a small utility out of that c...
In the end I went with [LocMetrics](http://www.locmetrics.com/index.html), unfortunately this didn't really solve my per-solution problem. But the folder structure of the reposiotry maps well enough to solutions so I was decided to use the tool above. Thanks everybody for helping
2,773,055
I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: <http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-count-utility/> <http://www.locmetrics.com/index.html> My problem is that I need to recursively scan a folder contai...
2010/05/05
[ "https://Stackoverflow.com/questions/2773055", "https://Stackoverflow.com", "https://Stackoverflow.com/users/333406/" ]
I think [LOCcode](http://archive.msdn.microsoft.com/LOCCounter/Release/ProjectReleases.aspx?ReleaseId=115) is an interesting free tool for counting number of Lines Of Code. It allows to choose which of files must be processed. It counts LOC in all enabled tasks. ![enter image description here](https://i.stack.imgur.co...
I liked what Mitch Wheat has said but I don't like some useless information is calculated as 'line of code'. I've written a C# code to find total number of REAL lines in the code here: <http://rajputyh.blogspot.in/2014/02/counting-number-of-real-lines-in-your-c.html> **You need to build a small utility out of that c...
35,180
The heart is a vital organ in our body, as it drives blood circulation. I was wondering if a heart keeps beating if it is separated from the body? If yes, then why?
2015/06/12
[ "https://biology.stackexchange.com/questions/35180", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/15862/" ]
**Short version** The heart has the ability to beat independently of the brain as long as it has oxygen. The heart will eventually stop beating as all bodily systems begin to stop working shortly after brain death. Remember the heart can beat, but your diaphragm and lungs won't. Hence the cardiac muscles undergo asphyx...
[Sydney Ringer showed in 1882](http://onlinelibrary.wiley.com/store/10.1113/jphysiol.2004.060731/asset/jphysiol.2004.060731.pdf?v=1&t=iauo2601&s=4ebc14d9a457dfba30a37e922efbb5b577b0e188) that when the heart, when separated from the body and immersed in lactated Ringer's solution, or even isotonic saline solution, will ...
35,180
The heart is a vital organ in our body, as it drives blood circulation. I was wondering if a heart keeps beating if it is separated from the body? If yes, then why?
2015/06/12
[ "https://biology.stackexchange.com/questions/35180", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/15862/" ]
[Sydney Ringer showed in 1882](http://onlinelibrary.wiley.com/store/10.1113/jphysiol.2004.060731/asset/jphysiol.2004.060731.pdf?v=1&t=iauo2601&s=4ebc14d9a457dfba30a37e922efbb5b577b0e188) that when the heart, when separated from the body and immersed in lactated Ringer's solution, or even isotonic saline solution, will ...
> > I was wondering if a heart keeps beating if it is separated from the body? > > > Yes, it does. Here's a video showing it (**don't click if you're squeamish!**): <https://www.youtube.com/watch?v=NEuSCPifKhA> It's a classical physiology experiment to remove a heart and keep it beating for some time in a jar wit...
35,180
The heart is a vital organ in our body, as it drives blood circulation. I was wondering if a heart keeps beating if it is separated from the body? If yes, then why?
2015/06/12
[ "https://biology.stackexchange.com/questions/35180", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/15862/" ]
[Sydney Ringer showed in 1882](http://onlinelibrary.wiley.com/store/10.1113/jphysiol.2004.060731/asset/jphysiol.2004.060731.pdf?v=1&t=iauo2601&s=4ebc14d9a457dfba30a37e922efbb5b577b0e188) that when the heart, when separated from the body and immersed in lactated Ringer's solution, or even isotonic saline solution, will ...
In order to clear some issues with the question and answers I add this one. The question itself was "will a heart keeps beating if it is separated from the body?" The answer to this question as it was asked: **No, the heart removed from the body "as is" will stop beating almost immediately**. Denervation and stopping...
35,180
The heart is a vital organ in our body, as it drives blood circulation. I was wondering if a heart keeps beating if it is separated from the body? If yes, then why?
2015/06/12
[ "https://biology.stackexchange.com/questions/35180", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/15862/" ]
**Short version** The heart has the ability to beat independently of the brain as long as it has oxygen. The heart will eventually stop beating as all bodily systems begin to stop working shortly after brain death. Remember the heart can beat, but your diaphragm and lungs won't. Hence the cardiac muscles undergo asphyx...
> > I was wondering if a heart keeps beating if it is separated from the body? > > > Yes, it does. Here's a video showing it (**don't click if you're squeamish!**): <https://www.youtube.com/watch?v=NEuSCPifKhA> It's a classical physiology experiment to remove a heart and keep it beating for some time in a jar wit...
35,180
The heart is a vital organ in our body, as it drives blood circulation. I was wondering if a heart keeps beating if it is separated from the body? If yes, then why?
2015/06/12
[ "https://biology.stackexchange.com/questions/35180", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/15862/" ]
**Short version** The heart has the ability to beat independently of the brain as long as it has oxygen. The heart will eventually stop beating as all bodily systems begin to stop working shortly after brain death. Remember the heart can beat, but your diaphragm and lungs won't. Hence the cardiac muscles undergo asphyx...
In order to clear some issues with the question and answers I add this one. The question itself was "will a heart keeps beating if it is separated from the body?" The answer to this question as it was asked: **No, the heart removed from the body "as is" will stop beating almost immediately**. Denervation and stopping...
35,180
The heart is a vital organ in our body, as it drives blood circulation. I was wondering if a heart keeps beating if it is separated from the body? If yes, then why?
2015/06/12
[ "https://biology.stackexchange.com/questions/35180", "https://biology.stackexchange.com", "https://biology.stackexchange.com/users/15862/" ]
> > I was wondering if a heart keeps beating if it is separated from the body? > > > Yes, it does. Here's a video showing it (**don't click if you're squeamish!**): <https://www.youtube.com/watch?v=NEuSCPifKhA> It's a classical physiology experiment to remove a heart and keep it beating for some time in a jar wit...
In order to clear some issues with the question and answers I add this one. The question itself was "will a heart keeps beating if it is separated from the body?" The answer to this question as it was asked: **No, the heart removed from the body "as is" will stop beating almost immediately**. Denervation and stopping...
78,994
I've searched this site and google, and I CAN find information about how to back up Hyper-V virtual machines by using Windows Server Backup from the Hyper-V host in Windows Server 2008. You have to set up a registry key to enable the Hyper-V VSS writer, and then you can take online backups of your VMs. However, all th...
2009/10/28
[ "https://serverfault.com/questions/78994", "https://serverfault.com", "https://serverfault.com/users/8806/" ]
It appears that a Windows Server 2008 R2 Hyper-V Host can back itself and all its Hyper-V machines up right out of the box. The shadow copy service appears capable without any additional help.
If you can't get that method to work you can run the server2008 backup from inside the VM's as a batch file. Not really answering the question specifically but will do the trick.
58,998,258
Currently struggling with React. I have a component `Model.Dialog` which is a dependency that I can not modify it directly. The `Modal.Dialog` CSS is: ``` .Modal { position: relative; width: 100vw; height: 100vh; overflow: auto; margin: 0; background: #fff; border-radius: 0; flex-direc...
2019/11/22
[ "https://Stackoverflow.com/questions/58998258", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7589688/" ]
Found the solution. After struggling with the trial and error method, the solution to my problem was a different approach for CSS selector. This did the trick: ``` div[id="PicModal"] { overflow: revert; } ```
I guess one potential way is to use css selector. You can inspect the dom tree and learn the exact path. For example ```css #PicModal > div > p:nth-child(2) { overflow: hidden; } ```
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
[Python 3](https://docs.python.org/3/), 80 bytes ================================================ ```python import os d='.DS_Store' for r,_,f in os.walk('/'): if d in f:os.remove(r+'/'+d) ``` [Try it online!](https://tio.run/##K6gsycjPM/7/PzO3IL@oRCG/mCvFVl3PJTg@uCS/KFWdKy2/SKFIJ14nTSEzDyirV56Yk62hrq@uacWlkJmmkAIST...
find, 38 ======== The previus `find` solution is plain wrong: it's mean to delete everything named `.DS_Store` including directory, links, special file etc. But: ``` find / -type f -name .DS_Store -delete ``` it's the minimal solution using `find`. **DISCLAMER**: I strongly advice against really using this soluti...
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
Ruby: ~~38~~ 33 characters ========================== ```ruby File.delete *Dir['/**/.DS_Store'] ```
find, 38 ======== The previus `find` solution is plain wrong: it's mean to delete everything named `.DS_Store` including directory, links, special file etc. But: ``` find / -type f -name .DS_Store -delete ``` it's the minimal solution using `find`. **DISCLAMER**: I strongly advice against really using this soluti...
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
zsh, 19 ======= ``` rm -f /**/.DS_Store ``` (Make that 16 if it's ok to leave out `-f`.)
Shell, 25 ========= ``` locate .DS_Store|xargs rm ``` Requires working `locate` database.
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
zsh, 19 ======= ``` rm -f /**/.DS_Store ``` (Make that 16 if it's ok to leave out `-f`.)
fish, 16 ======== ``` rm /**/.DS_Store ``` (Make that 19 if `-f` is required to delete `.DS_Store` in read-only directories.)
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
zsh, 19 ======= ``` rm -f /**/.DS_Store ``` (Make that 16 if it's ok to leave out `-f`.)
CMD, 17 ======= ``` del/s "/.DS_Store ``` Pretty straight-forward. `/s` is required for searching within subdirectories as well. `"` is used to escape the `/` char which would otherwise be interpreted as an (invalid) argument.
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
zsh, 19 ======= ``` rm -f /**/.DS_Store ``` (Make that 16 if it's ok to leave out `-f`.)
Ruby: ~~38~~ 33 characters ========================== ```ruby File.delete *Dir['/**/.DS_Store'] ```
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
### Bash\*, 40 30 ``` find / -name .DS_Store -delete ``` ``` find / -name .DS_Store -exec rm -f {} \; ``` This should handle it (not very golfed, not.to.mention marvelously slow). Bash seems right because we don't have to deal with any "import system" nonsense. If you want to require execution in any environment, ...
find, 38 ======== The previus `find` solution is plain wrong: it's mean to delete everything named `.DS_Store` including directory, links, special file etc. But: ``` find / -type f -name .DS_Store -delete ``` it's the minimal solution using `find`. **DISCLAMER**: I strongly advice against really using this soluti...
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
CMD, 17 ======= ``` del/s "/.DS_Store ``` Pretty straight-forward. `/s` is required for searching within subdirectories as well. `"` is used to escape the `/` char which would otherwise be interpreted as an (invalid) argument.
find, 38 ======== The previus `find` solution is plain wrong: it's mean to delete everything named `.DS_Store` including directory, links, special file etc. But: ``` find / -type f -name .DS_Store -delete ``` it's the minimal solution using `find`. **DISCLAMER**: I strongly advice against really using this soluti...
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
### Bash\*, 40 30 ``` find / -name .DS_Store -delete ``` ``` find / -name .DS_Store -exec rm -f {} \; ``` This should handle it (not very golfed, not.to.mention marvelously slow). Bash seems right because we don't have to deal with any "import system" nonsense. If you want to require execution in any environment, ...
Shell, 25 ========= ``` locate .DS_Store|xargs rm ``` Requires working `locate` database.
11,816
Your task is simple: given a number as an input, you have to print the English name of the chemical element with that atomic number, up to and including ununoctium. For example, for an input of 77, your program has to print `Iridium`, and nothing else. You can use any language, but no library (or other, in-built featu...
2013/06/04
[ "https://codegolf.stackexchange.com/questions/11816", "https://codegolf.stackexchange.com", "https://codegolf.stackexchange.com/users/4249/" ]
zsh, 19 ======= ``` rm -f /**/.DS_Store ``` (Make that 16 if it's ok to leave out `-f`.)
[Python 3](https://docs.python.org/3/), 80 bytes ================================================ ```python import os d='.DS_Store' for r,_,f in os.walk('/'): if d in f:os.remove(r+'/'+d) ``` [Try it online!](https://tio.run/##K6gsycjPM/7/PzO3IL@oRCG/mCvFVl3PJTg@uCS/KFWdKy2/SKFIJ14nTSEzDyirV56Yk62hrq@uacWlkJmmkAIST...
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also faced this issue, every thing is fine your DB\_USERNAME or DB\_PASSWORD, if you your password string contains # (for eg. Test123#) "feature"of 5.8 or above it treat # as comment delimiter, so rewrite your password as DB\_PASSWORD='Test123#' and its works. it work for me.
When you make changes in .dev you must to this after this changes `php artisan optimize`
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
It's due to caching. so delete cache file 'config.php' from bootstrap/cache/config.php . Thanks
If everything is ok with the .env file, and you set username and password correct. Then in your project's path open the terminal and use this command, > > php artisan cache:clear > > > I hope it'll be helpful.
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also faced this issue, every thing is fine your DB\_USERNAME or DB\_PASSWORD, if you your password string contains # (for eg. Test123#) "feature"of 5.8 or above it treat # as comment delimiter, so rewrite your password as DB\_PASSWORD='Test123#' and its works. it work for me.
It's due to caching. so delete cache file 'config.php' from bootstrap/cache/config.php . Thanks
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also was facing the same problem! it's due to password string format. all passwords string contains # (for eg. Test123#. test@#, test123$$) must be between quotations laravel 5.8 above need password to be in a quat `DB_PASSWORD='Test123#'` then run `php artisan config:cache` then migrate DB through `php a...
When you make changes in .dev you must to this after this changes `php artisan optimize`
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also faced this issue, every thing is fine your DB\_USERNAME or DB\_PASSWORD, if you your password string contains # (for eg. Test123#) "feature"of 5.8 or above it treat # as comment delimiter, so rewrite your password as DB\_PASSWORD='Test123#' and its works. it work for me.
I also was facing the same problem! it's due to password string format. all passwords string contains # (for eg. Test123#. test@#, test123$$) must be between quotations laravel 5.8 above need password to be in a quat `DB_PASSWORD='Test123#'` then run `php artisan config:cache` then migrate DB through `php a...
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also was facing the same problem! it's due to password string format. all passwords string contains # (for eg. Test123#. test@#, test123$$) must be between quotations laravel 5.8 above need password to be in a quat `DB_PASSWORD='Test123#'` then run `php artisan config:cache` then migrate DB through `php a...
I have encountered the same error. `SQLSTATE[HY000] [1045] Access denied for user 'niyo'@'localhost' (using password: NO)` I found that I did not create user called `niyo` and grant to him all privileges. I configured it in *user accounts* section of `PhpMyAdmin` interface. ### .env file sample ```php DB_CONNECTION=...
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
It's due to caching. so delete cache file 'config.php' from bootstrap/cache/config.php . Thanks
I have encountered the same error. `SQLSTATE[HY000] [1045] Access denied for user 'niyo'@'localhost' (using password: NO)` I found that I did not create user called `niyo` and grant to him all privileges. I configured it in *user accounts* section of `PhpMyAdmin` interface. ### .env file sample ```php DB_CONNECTION=...
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also faced this issue, every thing is fine your DB\_USERNAME or DB\_PASSWORD, if you your password string contains # (for eg. Test123#) "feature"of 5.8 or above it treat # as comment delimiter, so rewrite your password as DB\_PASSWORD='Test123#' and its works. it work for me.
I have encountered the same error. `SQLSTATE[HY000] [1045] Access denied for user 'niyo'@'localhost' (using password: NO)` I found that I did not create user called `niyo` and grant to him all privileges. I configured it in *user accounts* section of `PhpMyAdmin` interface. ### .env file sample ```php DB_CONNECTION=...
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
It's due to caching. so delete cache file 'config.php' from bootstrap/cache/config.php . Thanks
When you make changes in .dev you must to this after this changes `php artisan optimize`
60,364,677
I have a function **mean\_univ** with three parameters and I want that it raises Errors when one of the below given conditions are met, 1. x is not a list 2. x contains other values than int or float, e.g. strings 3. if the string you input as method is not "mean" or "tmean" 4. if alpha isn't between 0 and 1 When I d...
2020/02/23
[ "https://Stackoverflow.com/questions/60364677", "https://Stackoverflow.com", "https://Stackoverflow.com/users/12931396/" ]
I also was facing the same problem! it's due to password string format. all passwords string contains # (for eg. Test123#. test@#, test123$$) must be between quotations laravel 5.8 above need password to be in a quat `DB_PASSWORD='Test123#'` then run `php artisan config:cache` then migrate DB through `php a...
If everything is ok with the .env file, and you set username and password correct. Then in your project's path open the terminal and use this command, > > php artisan cache:clear > > > I hope it'll be helpful.
44,725,862
I want to track when playing song is finished. I tried different solutions from the web but they could not solve my problem. I implemented `audioPlayerDidFinishPlaying` method but it is not working. How can I understand if playing song is finished? I am playing songs with `playSound` function **playSound** **func:...
2017/06/23
[ "https://Stackoverflow.com/questions/44725862", "https://Stackoverflow.com", "https://Stackoverflow.com/users/7880054/" ]
I solved my problem with help of [Leo Dabus](https://stackoverflow.com/users/2303865/leo-dabus). I changed my edited code. I moved `player?.delegate = self` to `playSound` func. Finally, it is working. **playSound & audioPlayerDidFinishPlaying function:** ``` func playSound(name: String ) { guard let url = ...
You are not setting the player's delegate correctly. In viewDidLoad, your player is going to be nil, so this line: ``` player?.delegate = self ``` Will do nothing (The question mark is optional chaining, so if player == nil, it does nothing.) You need to set the delegate after loading the player.
276,197
I am in a very delicate situation. I am at level 4 in Pokemon go and I just need 200 more exp to level up, but the problem is that I have no more pokeballs. Also, there are no pokestops available. What do I do?
2016/07/20
[ "https://gaming.stackexchange.com/questions/276197", "https://gaming.stackexchange.com", "https://gaming.stackexchange.com/users/157117/" ]
The only ways to get more Pokeballs is either by going to Pokestops, which refresh every 5 minutes, or purchasing them in game with coins. Coins can be gained from controlling gyms, or buying them with real money. You also get some by leveling up but not enough to maintain yourself.
You can hatch eggs to receive about 200xp each, or give someone a gift, or buy pokeballs with real money from the pokeshop.
2,933,840
I don't understand exactly how to use a function that returns a boolean. I know what it is, but I can't figure out how to make it work in my program. I'm trying to say that if my variable "selection" is any letter beween 'A' and 'I' then it is valid and can continue on to the next function which is called `calcExchange...
2010/05/29
[ "https://Stackoverflow.com/questions/2933840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/350217/" ]
A bool function should return true or false. I'm guessing your warning is caused by the fact that you're declaring `validData` as bool, but then assign it a different value (returned by `calcExchangeAmt` function). That value is getting converted from its value type (double) to boolean (true or false). So, your IsSele...
The type of 0 is not `bool`; true or false is `bool`. It is telling you that 0 is a double, but it is forcing it to a boolean type.
2,933,840
I don't understand exactly how to use a function that returns a boolean. I know what it is, but I can't figure out how to make it work in my program. I'm trying to say that if my variable "selection" is any letter beween 'A' and 'I' then it is valid and can continue on to the next function which is called `calcExchange...
2010/05/29
[ "https://Stackoverflow.com/questions/2933840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/350217/" ]
This code is seriously confusing and very non-C++ like. We normally expect main() to be the function that drives things and calls other functions, not to have it called from some other place. We generally avoid `do` unless there is a compelling reason (and I don't see one here). I think it's highly unlikely that a func...
The type of 0 is not `bool`; true or false is `bool`. It is telling you that 0 is a double, but it is forcing it to a boolean type.
2,933,840
I don't understand exactly how to use a function that returns a boolean. I know what it is, but I can't figure out how to make it work in my program. I'm trying to say that if my variable "selection" is any letter beween 'A' and 'I' then it is valid and can continue on to the next function which is called `calcExchange...
2010/05/29
[ "https://Stackoverflow.com/questions/2933840", "https://Stackoverflow.com", "https://Stackoverflow.com/users/350217/" ]
A bool function should return true or false. I'm guessing your warning is caused by the fact that you're declaring `validData` as bool, but then assign it a different value (returned by `calcExchangeAmt` function). That value is getting converted from its value type (double) to boolean (true or false). So, your IsSele...
This code is seriously confusing and very non-C++ like. We normally expect main() to be the function that drives things and calls other functions, not to have it called from some other place. We generally avoid `do` unless there is a compelling reason (and I don't see one here). I think it's highly unlikely that a func...
2,468,514
With a standard right triangle, we have the legs $a$ and $b$ and the hypotenuse $c$, where typically $a$ is the shorter leg. I'm curious about the fact that $$a + b > c$$ but $$a^2 + b^2 = c^2$$ [This](https://math.stackexchange.com/questions/920621/an-inequality-related-to-pythagorean-theorem-if-a2-b2-c2-then) di...
2017/10/12
[ "https://math.stackexchange.com/questions/2468514", "https://math.stackexchange.com", "https://math.stackexchange.com/users/78162/" ]
$$y(x)=\frac{1}{x}+\ln(x)$$ When $x\to\infty$ : * $\frac{1}{x}\to 0\quad$. Thus $y(x)$ behaves like $\quad 0+\ln(x)=\ln(x)$. * $\ln(x) \to\infty\quad$. Thus $y(x)\to\infty$ Conclusion : $y(x)\to\infty$ because $\ln(x)\to\infty.\quad$Nothing more. $$ $$ $$ $$ $$y(x)=xe^{-1/x}$$ When $x\to\pm\infty$ : * $-1/x \to 0$...
In the first equation, note that $\lim\_{x\rightarrow \infty}\ln(x) = \infty$. Also $1/x$ is positive for all $x > 0$. Lastly, since $1/x$ and $\ln(x)$ are continuous for $x >0$, $\lim\_{x\rightarrow \infty}(1/x + \ln(x)) = \lim\_{x\rightarrow \infty}1/x + \lim\_{x\rightarrow \infty} \ln(x)$. Therefore, the limit of $Y...
69,168,755
I´m starting to learn about Vue. I´ve researched online, and it looks like the most simple one to start with. At the moment I´ve got two compeonnts: 1. Galleria.vue ==> Where I have a list fetched from data.json. 2. Detail.vue ==> Which is the supposed template to render each item in data.json Well, When I click in ...
2021/09/13
[ "https://Stackoverflow.com/questions/69168755", "https://Stackoverflow.com", "https://Stackoverflow.com/users/6751870/" ]
Open `Settings` (`Cmd+,` on Mac), and search for `theme color`. You will find a `Workbench: Color Theme` setting. Here select `Dark+` or `Light+` and that should help.
Another option if you don't want to use the `Dark+` or `Light+` themes (as a matter of taste e.g., I personally prefer the `Visual Studio Dark - C++` theme) is to add the following to your `settings.json`: ``` "editor.tokenColorCustomizations": { "textMateRules": [ { "scope": ["support.class.da...
32,445,084
I'm making a website using data from Pokemon and trying to execute a dialog box. I've tried using JS newline character in the text: ``` function alertBox(monster) { $("#dialog").dialog(); $("#dialog").dialog("option", "title", monster); $("#dialog").text("Height: " + pokemon.height[monster] + "\n" + ...
2015/09/07
[ "https://Stackoverflow.com/questions/32445084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3981319/" ]
The jQuery [`.text()`](https://api.jquery.com/text/) function automatically escapes HTML entities, so your `<br />` tag is no longer being interpreted as HTML, but instead gets converted to escaped text. To prevent this HTML escaping, you need to use [`.html()`](https://api.jquery.com/html/) instead of [`.text()`](htt...
Consider adding: ``` $("#dialog").css("white-space","pre-wrap"); ``` This will make the `\n` significant, and it will render as such. Alternatively, consider using some actual HTML. For instance, your dialog could be: ``` $("#dialog").html("<ul>" + "<li><b>Height:</b> "+pokemon.height[monster]+"</li>" + "<...
32,445,084
I'm making a website using data from Pokemon and trying to execute a dialog box. I've tried using JS newline character in the text: ``` function alertBox(monster) { $("#dialog").dialog(); $("#dialog").dialog("option", "title", monster); $("#dialog").text("Height: " + pokemon.height[monster] + "\n" + ...
2015/09/07
[ "https://Stackoverflow.com/questions/32445084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3981319/" ]
Consider adding: ``` $("#dialog").css("white-space","pre-wrap"); ``` This will make the `\n` significant, and it will render as such. Alternatively, consider using some actual HTML. For instance, your dialog could be: ``` $("#dialog").html("<ul>" + "<li><b>Height:</b> "+pokemon.height[monster]+"</li>" + "<...
Hope it will help to see how text() val() and html() works ```js $(document).ready(function () { $("#dialog").html("Height: " + 11 + "<br>" + "Weight: " + 22); $("#dialog2").val("Height: " + 11 + "\n" + "Weight: " + 22); $("#dialog3").text("Height: " + 11 + "\n" + "Weight: ...
32,445,084
I'm making a website using data from Pokemon and trying to execute a dialog box. I've tried using JS newline character in the text: ``` function alertBox(monster) { $("#dialog").dialog(); $("#dialog").dialog("option", "title", monster); $("#dialog").text("Height: " + pokemon.height[monster] + "\n" + ...
2015/09/07
[ "https://Stackoverflow.com/questions/32445084", "https://Stackoverflow.com", "https://Stackoverflow.com/users/3981319/" ]
The jQuery [`.text()`](https://api.jquery.com/text/) function automatically escapes HTML entities, so your `<br />` tag is no longer being interpreted as HTML, but instead gets converted to escaped text. To prevent this HTML escaping, you need to use [`.html()`](https://api.jquery.com/html/) instead of [`.text()`](htt...
Hope it will help to see how text() val() and html() works ```js $(document).ready(function () { $("#dialog").html("Height: " + 11 + "<br>" + "Weight: " + 22); $("#dialog2").val("Height: " + 11 + "\n" + "Weight: " + 22); $("#dialog3").text("Height: " + 11 + "\n" + "Weight: ...
53,921,159
i faced an error when using `google_maps_flutter: ^0.0.3+3` plugin with flutter. i done all requirement for using google map both with android `manifest` or ios `runner`. this is my code for map ``` GoogleMap(onMapCreated: (GoogleMapController controller) {}, options: GoogleMapOptions( cam...
2018/12/25
[ "https://Stackoverflow.com/questions/53921159", "https://Stackoverflow.com", "https://Stackoverflow.com/users/4399890/" ]
I had the same problem. What helps to me is: * [Install and set up](https://developers.google.com/android/guides/setup) the Google Play services SDK. * Add to `AnroidManifest.xml` in application section next line `<uses-library android:name="org.apache.http.legacy" android:required="false"/>`
In my case, it was due to the missing permission in `AndroidManifest.xml` Adding the following permission resolved my issue. ``` <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> ``` If you are working on an emulator, make sure your emulator has Google Play Services.
658,088
Hi i have a strange issue with matching specific attribute of xml node. Example code that doesnt work: ``` <xsl:for-each select="../../unit/service/price/season[@name=$period_name]"> <xsl:attribute name="std_bed_price"> <xsl:value-of select="../@amount"/> </xsl:attribute> </xsl:for-each> ``` Exam...
2009/03/18
[ "https://Stackoverflow.com/questions/658088", "https://Stackoverflow.com", "https://Stackoverflow.com/users/68641/" ]
You might try changing it to an apply-templates instead of a foreach. Something like the following should work. ``` <xsl:template match="price"> <xsl:attribute name="std_bed_price"> <xsl:value-of select="@amount" /> </xsl:attribute> </xsl:template> ``` And then call it like: ``` <xsl:apply-template ...
Not seen this before. Could it be an ambiguous @name attribute. Therefore try accessing it like below? ``` select="../../unit/service/price/season[./@name=$period_name] ``` Other than that, sorry, to me it looks like it should work perfectly both ways.
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
Note that if you know the powers of two, then you don't need to know the powers of four, eight, etc. Generally, you need to only learn/become acquainted with the powers of **prime numbers**. Even then, the exponent is generally not even going to be very big - assuming that the numbers you're given are going to be not...
You have done the first part: quickly eliminate which ones are not the answer. Since you know that the first three can be written as an integer to an integer power you can eliminate those and focus on 4 and 5. Now, from here perhaps a factor tree can point you in the right direction. Try quickly factoring 500 and if al...
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
Note that if you know the powers of two, then you don't need to know the powers of four, eight, etc. Generally, you need to only learn/become acquainted with the powers of **prime numbers**. Even then, the exponent is generally not even going to be very big - assuming that the numbers you're given are going to be not...
The best way would be to factor the integer. You already know this for the first three. You should have noticed that $125=5 \times 5 \times 5$ so $125=5^3$. This method is very easy when the number is a power of a prime. Now what about when a number isn't a prime power? Take the number $2500$. $$2500=2^2 5^4$$ We ...
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
Once you are down to $500$ and $2500$, you can note that each has a factor of $10^2=2^25^2$ and no more factors of $2$. This tells you the power must be a square. Then you can just ask which of $5$ and $25$ is a square.
Note that if you know the powers of two, then you don't need to know the powers of four, eight, etc. Generally, you need to only learn/become acquainted with the powers of **prime numbers**. Even then, the exponent is generally not even going to be very big - assuming that the numbers you're given are going to be not...
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
**Hint:** If $n=p\_1^{k\_1} ...p\_i^{k\_i}$ then you can prove that $n$ is a perfect power if and only if $k\_1,..,k\_i$ have a common divisor $ b >1$. This is the same as asking $gcd(k\_1,..,k\_i) \neq 1$.
Note that if you know the powers of two, then you don't need to know the powers of four, eight, etc. Generally, you need to only learn/become acquainted with the powers of **prime numbers**. Even then, the exponent is generally not even going to be very big - assuming that the numbers you're given are going to be not...
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
Once you are down to $500$ and $2500$, you can note that each has a factor of $10^2=2^25^2$ and no more factors of $2$. This tells you the power must be a square. Then you can just ask which of $5$ and $25$ is a square.
You have done the first part: quickly eliminate which ones are not the answer. Since you know that the first three can be written as an integer to an integer power you can eliminate those and focus on 4 and 5. Now, from here perhaps a factor tree can point you in the right direction. Try quickly factoring 500 and if al...
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
**Hint:** If $n=p\_1^{k\_1} ...p\_i^{k\_i}$ then you can prove that $n$ is a perfect power if and only if $k\_1,..,k\_i$ have a common divisor $ b >1$. This is the same as asking $gcd(k\_1,..,k\_i) \neq 1$.
You have done the first part: quickly eliminate which ones are not the answer. Since you know that the first three can be written as an integer to an integer power you can eliminate those and focus on 4 and 5. Now, from here perhaps a factor tree can point you in the right direction. Try quickly factoring 500 and if al...
550,374
1) "If interest rates are low, then housing starts are up. If housing starts are up, then marriage rates are high. If interest rates are low, then the economy is good. The economy is not good. Therefore marriage rates are not high." 2) "If Sajee is not on team A, then Marlon is on team B. If Marlon is not on team B, t...
2013/11/03
[ "https://math.stackexchange.com/questions/550374", "https://math.stackexchange.com", "https://math.stackexchange.com/users/105096/" ]
Once you are down to $500$ and $2500$, you can note that each has a factor of $10^2=2^25^2$ and no more factors of $2$. This tells you the power must be a square. Then you can just ask which of $5$ and $25$ is a square.
The best way would be to factor the integer. You already know this for the first three. You should have noticed that $125=5 \times 5 \times 5$ so $125=5^3$. This method is very easy when the number is a power of a prime. Now what about when a number isn't a prime power? Take the number $2500$. $$2500=2^2 5^4$$ We ...